feat(tlon): add ownerShip to setup flow

ownerShip should always be set as it controls who receives
approval requests and can approve/deny actions.
This commit is contained in:
Hunter Miller
2026-02-19 12:24:47 -06:00
committed by Josh Lehman
parent a7f3113d63
commit 89ec723ec9
2 changed files with 3 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ export type TlonAccountFieldsInput = {
groupChannels?: string[];
dmAllowlist?: string[];
autoDiscoverChannels?: boolean;
ownerShip?: string;
};
export function buildTlonAccountFields(input: TlonAccountFieldsInput) {
@@ -21,5 +22,6 @@ export function buildTlonAccountFields(input: TlonAccountFieldsInput) {
...(typeof input.autoDiscoverChannels === "boolean"
? { autoDiscoverChannels: input.autoDiscoverChannels }
: {}),
...(input.ownerShip ? { ownerShip: input.ownerShip } : {}),
};
}

View File

@@ -86,6 +86,7 @@ type TlonSetupInput = ChannelSetupInput & {
groupChannels?: string[];
dmAllowlist?: string[];
autoDiscoverChannels?: boolean;
ownerShip?: string;
};
function applyTlonSetupConfig(params: {