n8n-nodes-base
Version:
Base nodes of n8n
55 lines (51 loc) • 1.61 kB
text/typescript
/**
* Twist Node - Version 1
* Discriminator: resource=channel, operation=create
*/
interface Credentials {
twistOAuth2Api: CredentialReference;
}
/** Initiates a public or private channel-based conversation */
export type TwistV1ChannelCreateParams = {
resource: 'channel';
operation: 'create';
/**
* The ID of the workspace. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
workspaceId?: string | Expression<string>;
/**
* The name of the channel
*/
name?: string | Expression<string> | PlaceholderValue;
/**
* Additional Fields
* @default {}
*/
additionalFields?: {
/** The color of the channel
* @default 0
*/
color?: 6 | 1 | 4 | 0 | 7 | 9 | 5 | 11 | 8 | 3 | 2 | 10 | Expression<number>;
/** The description of the channel
*/
description?: string | Expression<string> | PlaceholderValue;
/** Whether the channel will be marked as public
* @default false
*/
public?: boolean | Expression<boolean>;
/** The temporary ID of the channel. It needs to be a negative number.
* @default -1
*/
temp_id?: number | Expression<number>;
/** The users that will participate in the channel. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @default []
*/
user_ids?: string[];
};
};
export type TwistV1ChannelCreateNode = {
type: 'n8n-nodes-base.twist';
version: 1;
credentials?: Credentials;
config: NodeConfig<TwistV1ChannelCreateParams>;
};