/**
 * 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 &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt;.
 * @displayOptions.show { resource: ["workspace", "repository"] }
 */
    workspace?: string | Expression<string>;
/**
 * The events to listen to. Choose from the list, or specify IDs using an &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt;.
 * @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 &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt;.
 * @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;