n8n-nodes-base
Version:
Base nodes of n8n
48 lines (42 loc) • 1.61 kB
text/typescript
/**
* Bitbucket Trigger Node - Version 1
* Handle Bitbucket events via webhooks
*/
export interface BitbucketTriggerV1Params {
/**
* Authentication
* @default password
*/
authentication?: 'password' | 'accessToken' | Expression<string>;
resource?: 'repository' | 'workspace';
/**
* The repository of which to listen to the events. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @displayOptions.show { resource: ["workspace", "repository"] }
*/
workspace?: string | Expression<string>;
/**
* The events to listen to. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @displayOptions.show { resource: ["workspace"] }
* @default []
*/
events?: string[];
/**
* The repository of which to listen to the events. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @displayOptions.show { resource: ["repository"] }
*/
repository?: string | Expression<string>;
}
export interface BitbucketTriggerV1Credentials {
bitbucketApi: CredentialReference;
bitbucketAccessTokenApi: CredentialReference;
}
interface BitbucketTriggerV1NodeBase {
type: 'n8n-nodes-base.bitbucketTrigger';
version: 1;
credentials?: BitbucketTriggerV1Credentials;
isTrigger: true;
}
export type BitbucketTriggerV1ParamsNode = BitbucketTriggerV1NodeBase & {
config: NodeConfig<BitbucketTriggerV1Params>;
};
export type BitbucketTriggerV1Node = BitbucketTriggerV1ParamsNode;