@automate.ax/catalog 0.112.0 → 0.112.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- export { integrationScope, type IntegrationAccountConnectionOption, type IntegrationAccountRequirement, type IntegrationScopeRequirement, type ScopeRequirementGroup, type TriggerDefinition, } from "./types.js";
1
+ export { integrationScope, type IntegrationAccountConnectionOption, type IntegrationAccountRequirement, type IntegrationScopeRequirement, type ScopeRequirementGroup, type TriggerAccountRequirement, type TriggerDefinition, } from "./types.js";
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { airtableService, anthropicService, apolloService, asanaService, automateService, brevoService, cerebrasService, chatgptService, cloudflareService, closeService, codexService, cohereService, convexService, deepinfraService, deepseekService, firecrawlService, fireworksService, getIntegrationService, githubService, googleGenaiService, googleService, groqService, huggingfaceService, integrationCatalog, jobNimbusService, linearService, microsoftService, millionverifierService, mistralService, notionService, openaiService, onePasswordService, openrouterService, perplexityService, postgresService, resendService, scrapflyService, slackService, stripeService, tidycalService, togetheraiService, trelloService, vercelAiGatewayService, vercelService, webflowService, whatsappService, xaiService, type IntegrationServiceId, } from "./catalog.js";
2
- export { defineIntegrationCatalog, defineIntegrationService, integrationScope, type IntegrationAccountConnectionOption, type IntegrationAccountRequirement, type IntegrationConnectionDefinition, type IntegrationConnectionNotice, type IntegrationFormField, type IntegrationScopeRequirement, type IntegrationServiceDefinition, type ScopeRequirementGroup, type TriggerDefinition, type TriggerPresentation, type TriggerPresentationContext, type TriggerPresentationDetail, type TriggerScopePresentation, type TriggerPresentationValue, } from "./types.js";
2
+ export { defineIntegrationCatalog, defineIntegrationService, integrationScope, type IntegrationAccountConnectionOption, type IntegrationAccountRequirement, type IntegrationConnectionDefinition, type IntegrationConnectionNotice, type IntegrationFormField, type IntegrationScopeRequirement, type IntegrationServiceDefinition, type ScopeRequirementGroup, type TriggerAccountRequirement, type TriggerDefinition, type TriggerPresentation, type TriggerPresentationContext, type TriggerPresentationDetail, type TriggerScopePresentation, type TriggerPresentationValue, } from "./types.js";
3
3
  export { getDashboardRunEndpoint, getDashboardRunEndpointKey, getHttpTriggerEndpoint, getHttpTriggerEndpointKey, getMailhookAddress, getMailhookAddressKey, DASHBOARD_RUN_CONFIG_SCHEMA, getTriggerDefinition, getTriggerName, getTriggerPresentation, isTriggerVisible, PLATFORM_EMAIL_DOMAIN, triggerCatalog, triggerDefinitions, type DashboardRunConfig, type DashboardRunEndpointOptions, type DashboardRunField, type HttpTriggerEndpointOptions, type HttpTriggerScope, type MailhookAddressOptions, type MailhookScope, type TriggerType, } from "./triggers/index.js";
@@ -5,6 +5,7 @@ export declare const automateTriggerDefinitions: {
5
5
  readonly connectionMethodId: "organization-api-key";
6
6
  readonly requiredScopes: readonly ["project:read"];
7
7
  }];
8
+ readonly planDefaultBinding: false;
8
9
  readonly serviceId: "automate";
9
10
  };
10
11
  readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
@@ -19,6 +20,7 @@ export declare const automateTriggerDefinitions: {
19
20
  readonly connectionMethodId: "organization-api-key";
20
21
  readonly requiredScopes: readonly ["project:read"];
21
22
  }];
23
+ readonly planDefaultBinding: false;
22
24
  readonly serviceId: "automate";
23
25
  };
24
26
  readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
@@ -33,6 +35,7 @@ export declare const automateTriggerDefinitions: {
33
35
  readonly connectionMethodId: "organization-api-key";
34
36
  readonly requiredScopes: readonly ["project:read"];
35
37
  }];
38
+ readonly planDefaultBinding: false;
36
39
  readonly serviceId: "automate";
37
40
  };
38
41
  readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
@@ -47,6 +50,7 @@ export declare const automateTriggerDefinitions: {
47
50
  readonly connectionMethodId: "organization-api-key";
48
51
  readonly requiredScopes: readonly ["project:read"];
49
52
  }];
53
+ readonly planDefaultBinding: false;
50
54
  readonly serviceId: "automate";
51
55
  };
52
56
  readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
@@ -61,6 +65,7 @@ export declare const automateTriggerDefinitions: {
61
65
  readonly connectionMethodId: "organization-api-key";
62
66
  readonly requiredScopes: readonly ["project:read"];
63
67
  }];
68
+ readonly planDefaultBinding: false;
64
69
  readonly serviceId: "automate";
65
70
  };
66
71
  readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
@@ -75,6 +80,7 @@ export declare const automateTriggerDefinitions: {
75
80
  readonly connectionMethodId: "organization-api-key";
76
81
  readonly requiredScopes: readonly ["project:read"];
77
82
  }];
83
+ readonly planDefaultBinding: false;
78
84
  readonly serviceId: "automate";
79
85
  };
80
86
  readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
@@ -89,6 +95,7 @@ export declare const automateTriggerDefinitions: {
89
95
  readonly connectionMethodId: "organization-api-key";
90
96
  readonly requiredScopes: readonly ["project:read"];
91
97
  }];
98
+ readonly planDefaultBinding: false;
92
99
  readonly serviceId: "automate";
93
100
  };
94
101
  readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
@@ -103,6 +110,7 @@ export declare const automateTriggerDefinitions: {
103
110
  readonly connectionMethodId: "organization-api-key";
104
111
  readonly requiredScopes: readonly ["deployment:read"];
105
112
  }];
113
+ readonly planDefaultBinding: false;
106
114
  readonly serviceId: "automate";
107
115
  };
108
116
  readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
@@ -117,6 +125,7 @@ export declare const automateTriggerDefinitions: {
117
125
  readonly connectionMethodId: "organization-api-key";
118
126
  readonly requiredScopes: readonly ["deployment:read"];
119
127
  }];
128
+ readonly planDefaultBinding: false;
120
129
  readonly serviceId: "automate";
121
130
  };
122
131
  readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
@@ -131,6 +140,7 @@ export declare const automateTriggerDefinitions: {
131
140
  readonly connectionMethodId: "organization-api-key";
132
141
  readonly requiredScopes: readonly ["deployment:read"];
133
142
  }];
143
+ readonly planDefaultBinding: false;
134
144
  readonly serviceId: "automate";
135
145
  };
136
146
  readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
@@ -145,6 +155,7 @@ export declare const automateTriggerDefinitions: {
145
155
  readonly connectionMethodId: "organization-api-key";
146
156
  readonly requiredScopes: readonly ["deployment:read"];
147
157
  }];
158
+ readonly planDefaultBinding: false;
148
159
  readonly serviceId: "automate";
149
160
  };
150
161
  readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
@@ -159,6 +170,7 @@ export declare const automateTriggerDefinitions: {
159
170
  readonly connectionMethodId: "organization-api-key";
160
171
  readonly requiredScopes: readonly ["deployment:read"];
161
172
  }];
173
+ readonly planDefaultBinding: false;
162
174
  readonly serviceId: "automate";
163
175
  };
164
176
  readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
@@ -173,6 +185,7 @@ export declare const automateTriggerDefinitions: {
173
185
  readonly connectionMethodId: "organization-api-key";
174
186
  readonly requiredScopes: readonly ["project:read"];
175
187
  }];
188
+ readonly planDefaultBinding: false;
176
189
  readonly serviceId: "automate";
177
190
  };
178
191
  readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
@@ -187,6 +200,7 @@ export declare const automateTriggerDefinitions: {
187
200
  readonly connectionMethodId: "organization-api-key";
188
201
  readonly requiredScopes: readonly ["project:read"];
189
202
  }];
203
+ readonly planDefaultBinding: false;
190
204
  readonly serviceId: "automate";
191
205
  };
192
206
  readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
@@ -201,6 +215,7 @@ export declare const automateTriggerDefinitions: {
201
215
  readonly connectionMethodId: "organization-api-key";
202
216
  readonly requiredScopes: readonly ["project:read"];
203
217
  }];
218
+ readonly planDefaultBinding: false;
204
219
  readonly serviceId: "automate";
205
220
  };
206
221
  readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
@@ -6,6 +6,7 @@ const AUTOMATE_PROJECT_READ_ACCOUNT = {
6
6
  requiredScopes: ["project:read"],
7
7
  },
8
8
  ],
9
+ planDefaultBinding: false,
9
10
  serviceId: "automate",
10
11
  };
11
12
  const AUTOMATE_DEPLOYMENT_READ_ACCOUNT = {
@@ -15,6 +16,7 @@ const AUTOMATE_DEPLOYMENT_READ_ACCOUNT = {
15
16
  requiredScopes: ["deployment:read"],
16
17
  },
17
18
  ],
19
+ planDefaultBinding: false,
18
20
  serviceId: "automate",
19
21
  };
20
22
  const AUTOMATION_CONFIG_SCHEMA = z.object({ automationId: z.string() });
@@ -5599,6 +5599,7 @@ export declare const triggerDefinitions: {
5599
5599
  readonly connectionMethodId: "organization-api-key";
5600
5600
  readonly requiredScopes: readonly ["project:read"];
5601
5601
  }];
5602
+ readonly planDefaultBinding: false;
5602
5603
  readonly serviceId: "automate";
5603
5604
  };
5604
5605
  readonly getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5613,6 +5614,7 @@ export declare const triggerDefinitions: {
5613
5614
  readonly connectionMethodId: "organization-api-key";
5614
5615
  readonly requiredScopes: readonly ["project:read"];
5615
5616
  }];
5617
+ readonly planDefaultBinding: false;
5616
5618
  readonly serviceId: "automate";
5617
5619
  };
5618
5620
  readonly getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5627,6 +5629,7 @@ export declare const triggerDefinitions: {
5627
5629
  readonly connectionMethodId: "organization-api-key";
5628
5630
  readonly requiredScopes: readonly ["project:read"];
5629
5631
  }];
5632
+ readonly planDefaultBinding: false;
5630
5633
  readonly serviceId: "automate";
5631
5634
  };
5632
5635
  readonly getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5641,6 +5644,7 @@ export declare const triggerDefinitions: {
5641
5644
  readonly connectionMethodId: "organization-api-key";
5642
5645
  readonly requiredScopes: readonly ["project:read"];
5643
5646
  }];
5647
+ readonly planDefaultBinding: false;
5644
5648
  readonly serviceId: "automate";
5645
5649
  };
5646
5650
  readonly getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5655,6 +5659,7 @@ export declare const triggerDefinitions: {
5655
5659
  readonly connectionMethodId: "organization-api-key";
5656
5660
  readonly requiredScopes: readonly ["project:read"];
5657
5661
  }];
5662
+ readonly planDefaultBinding: false;
5658
5663
  readonly serviceId: "automate";
5659
5664
  };
5660
5665
  readonly getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5669,6 +5674,7 @@ export declare const triggerDefinitions: {
5669
5674
  readonly connectionMethodId: "organization-api-key";
5670
5675
  readonly requiredScopes: readonly ["project:read"];
5671
5676
  }];
5677
+ readonly planDefaultBinding: false;
5672
5678
  readonly serviceId: "automate";
5673
5679
  };
5674
5680
  readonly getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5683,6 +5689,7 @@ export declare const triggerDefinitions: {
5683
5689
  readonly connectionMethodId: "organization-api-key";
5684
5690
  readonly requiredScopes: readonly ["project:read"];
5685
5691
  }];
5692
+ readonly planDefaultBinding: false;
5686
5693
  readonly serviceId: "automate";
5687
5694
  };
5688
5695
  readonly getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5697,6 +5704,7 @@ export declare const triggerDefinitions: {
5697
5704
  readonly connectionMethodId: "organization-api-key";
5698
5705
  readonly requiredScopes: readonly ["deployment:read"];
5699
5706
  }];
5707
+ readonly planDefaultBinding: false;
5700
5708
  readonly serviceId: "automate";
5701
5709
  };
5702
5710
  readonly getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5711,6 +5719,7 @@ export declare const triggerDefinitions: {
5711
5719
  readonly connectionMethodId: "organization-api-key";
5712
5720
  readonly requiredScopes: readonly ["deployment:read"];
5713
5721
  }];
5722
+ readonly planDefaultBinding: false;
5714
5723
  readonly serviceId: "automate";
5715
5724
  };
5716
5725
  readonly getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5725,6 +5734,7 @@ export declare const triggerDefinitions: {
5725
5734
  readonly connectionMethodId: "organization-api-key";
5726
5735
  readonly requiredScopes: readonly ["deployment:read"];
5727
5736
  }];
5737
+ readonly planDefaultBinding: false;
5728
5738
  readonly serviceId: "automate";
5729
5739
  };
5730
5740
  readonly getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5739,6 +5749,7 @@ export declare const triggerDefinitions: {
5739
5749
  readonly connectionMethodId: "organization-api-key";
5740
5750
  readonly requiredScopes: readonly ["deployment:read"];
5741
5751
  }];
5752
+ readonly planDefaultBinding: false;
5742
5753
  readonly serviceId: "automate";
5743
5754
  };
5744
5755
  readonly getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5753,6 +5764,7 @@ export declare const triggerDefinitions: {
5753
5764
  readonly connectionMethodId: "organization-api-key";
5754
5765
  readonly requiredScopes: readonly ["deployment:read"];
5755
5766
  }];
5767
+ readonly planDefaultBinding: false;
5756
5768
  readonly serviceId: "automate";
5757
5769
  };
5758
5770
  readonly getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5767,6 +5779,7 @@ export declare const triggerDefinitions: {
5767
5779
  readonly connectionMethodId: "organization-api-key";
5768
5780
  readonly requiredScopes: readonly ["project:read"];
5769
5781
  }];
5782
+ readonly planDefaultBinding: false;
5770
5783
  readonly serviceId: "automate";
5771
5784
  };
5772
5785
  readonly getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5781,6 +5794,7 @@ export declare const triggerDefinitions: {
5781
5794
  readonly connectionMethodId: "organization-api-key";
5782
5795
  readonly requiredScopes: readonly ["project:read"];
5783
5796
  }];
5797
+ readonly planDefaultBinding: false;
5784
5798
  readonly serviceId: "automate";
5785
5799
  };
5786
5800
  readonly getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5795,6 +5809,7 @@ export declare const triggerDefinitions: {
5795
5809
  readonly connectionMethodId: "organization-api-key";
5796
5810
  readonly requiredScopes: readonly ["project:read"];
5797
5811
  }];
5812
+ readonly planDefaultBinding: false;
5798
5813
  readonly serviceId: "automate";
5799
5814
  };
5800
5815
  readonly getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5908,6 +5923,7 @@ export declare const triggerCatalog: ({
5908
5923
  readonly connectionMethodId: "organization-api-key";
5909
5924
  readonly requiredScopes: readonly ["project:read"];
5910
5925
  }];
5926
+ readonly planDefaultBinding: false;
5911
5927
  readonly serviceId: "automate";
5912
5928
  };
5913
5929
  getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5922,6 +5938,7 @@ export declare const triggerCatalog: ({
5922
5938
  readonly connectionMethodId: "organization-api-key";
5923
5939
  readonly requiredScopes: readonly ["project:read"];
5924
5940
  }];
5941
+ readonly planDefaultBinding: false;
5925
5942
  readonly serviceId: "automate";
5926
5943
  };
5927
5944
  getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5936,6 +5953,7 @@ export declare const triggerCatalog: ({
5936
5953
  readonly connectionMethodId: "organization-api-key";
5937
5954
  readonly requiredScopes: readonly ["project:read"];
5938
5955
  }];
5956
+ readonly planDefaultBinding: false;
5939
5957
  readonly serviceId: "automate";
5940
5958
  };
5941
5959
  getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5950,6 +5968,7 @@ export declare const triggerCatalog: ({
5950
5968
  readonly connectionMethodId: "organization-api-key";
5951
5969
  readonly requiredScopes: readonly ["project:read"];
5952
5970
  }];
5971
+ readonly planDefaultBinding: false;
5953
5972
  readonly serviceId: "automate";
5954
5973
  };
5955
5974
  getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5964,6 +5983,7 @@ export declare const triggerCatalog: ({
5964
5983
  readonly connectionMethodId: "organization-api-key";
5965
5984
  readonly requiredScopes: readonly ["project:read"];
5966
5985
  }];
5986
+ readonly planDefaultBinding: false;
5967
5987
  readonly serviceId: "automate";
5968
5988
  };
5969
5989
  getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5978,6 +5998,7 @@ export declare const triggerCatalog: ({
5978
5998
  readonly connectionMethodId: "organization-api-key";
5979
5999
  readonly requiredScopes: readonly ["project:read"];
5980
6000
  }];
6001
+ readonly planDefaultBinding: false;
5981
6002
  readonly serviceId: "automate";
5982
6003
  };
5983
6004
  getDetails: ({ config }: TriggerPresentationContext) => {
@@ -5992,6 +6013,7 @@ export declare const triggerCatalog: ({
5992
6013
  readonly connectionMethodId: "organization-api-key";
5993
6014
  readonly requiredScopes: readonly ["project:read"];
5994
6015
  }];
6016
+ readonly planDefaultBinding: false;
5995
6017
  readonly serviceId: "automate";
5996
6018
  };
5997
6019
  getDetails: ({ config }: TriggerPresentationContext) => {
@@ -6006,6 +6028,7 @@ export declare const triggerCatalog: ({
6006
6028
  readonly connectionMethodId: "organization-api-key";
6007
6029
  readonly requiredScopes: readonly ["deployment:read"];
6008
6030
  }];
6031
+ readonly planDefaultBinding: false;
6009
6032
  readonly serviceId: "automate";
6010
6033
  };
6011
6034
  getDetails: ({ config }: TriggerPresentationContext) => {
@@ -6020,6 +6043,7 @@ export declare const triggerCatalog: ({
6020
6043
  readonly connectionMethodId: "organization-api-key";
6021
6044
  readonly requiredScopes: readonly ["deployment:read"];
6022
6045
  }];
6046
+ readonly planDefaultBinding: false;
6023
6047
  readonly serviceId: "automate";
6024
6048
  };
6025
6049
  getDetails: ({ config }: TriggerPresentationContext) => {
@@ -6034,6 +6058,7 @@ export declare const triggerCatalog: ({
6034
6058
  readonly connectionMethodId: "organization-api-key";
6035
6059
  readonly requiredScopes: readonly ["deployment:read"];
6036
6060
  }];
6061
+ readonly planDefaultBinding: false;
6037
6062
  readonly serviceId: "automate";
6038
6063
  };
6039
6064
  getDetails: ({ config }: TriggerPresentationContext) => {
@@ -6048,6 +6073,7 @@ export declare const triggerCatalog: ({
6048
6073
  readonly connectionMethodId: "organization-api-key";
6049
6074
  readonly requiredScopes: readonly ["deployment:read"];
6050
6075
  }];
6076
+ readonly planDefaultBinding: false;
6051
6077
  readonly serviceId: "automate";
6052
6078
  };
6053
6079
  getDetails: ({ config }: TriggerPresentationContext) => {
@@ -6062,6 +6088,7 @@ export declare const triggerCatalog: ({
6062
6088
  readonly connectionMethodId: "organization-api-key";
6063
6089
  readonly requiredScopes: readonly ["deployment:read"];
6064
6090
  }];
6091
+ readonly planDefaultBinding: false;
6065
6092
  readonly serviceId: "automate";
6066
6093
  };
6067
6094
  getDetails: ({ config }: TriggerPresentationContext) => {
@@ -6076,6 +6103,7 @@ export declare const triggerCatalog: ({
6076
6103
  readonly connectionMethodId: "organization-api-key";
6077
6104
  readonly requiredScopes: readonly ["project:read"];
6078
6105
  }];
6106
+ readonly planDefaultBinding: false;
6079
6107
  readonly serviceId: "automate";
6080
6108
  };
6081
6109
  getDetails: ({ config }: TriggerPresentationContext) => {
@@ -6090,6 +6118,7 @@ export declare const triggerCatalog: ({
6090
6118
  readonly connectionMethodId: "organization-api-key";
6091
6119
  readonly requiredScopes: readonly ["project:read"];
6092
6120
  }];
6121
+ readonly planDefaultBinding: false;
6093
6122
  readonly serviceId: "automate";
6094
6123
  };
6095
6124
  getDetails: ({ config }: TriggerPresentationContext) => {
@@ -6104,6 +6133,7 @@ export declare const triggerCatalog: ({
6104
6133
  readonly connectionMethodId: "organization-api-key";
6105
6134
  readonly requiredScopes: readonly ["project:read"];
6106
6135
  }];
6136
+ readonly planDefaultBinding: false;
6107
6137
  readonly serviceId: "automate";
6108
6138
  };
6109
6139
  getDetails: ({ config }: TriggerPresentationContext) => {
package/dist/types.d.ts CHANGED
@@ -87,9 +87,14 @@ export interface IntegrationAccountRequirement<TServiceId extends string = strin
87
87
  connectionOptions: readonly IntegrationAccountConnectionOption[];
88
88
  serviceId: TServiceId;
89
89
  }
90
+ /** Account-selection behavior for one public trigger type. */
91
+ export interface TriggerAccountRequirement<TServiceId extends string = string> extends IntegrationAccountRequirement<TServiceId> {
92
+ /** Whether omission plans the project's default binding. Defaults to true. */
93
+ planDefaultBinding?: boolean;
94
+ }
90
95
  /** Runtime-neutral metadata for one public trigger type. */
91
96
  export interface TriggerDefinition<TType extends string = string, TServiceId extends string = string> {
92
- account?: IntegrationAccountRequirement<TServiceId>;
97
+ account?: TriggerAccountRequirement<TServiceId>;
93
98
  description?: string;
94
99
  /** Adds labeled secondary details to this trigger's presentation. */
95
100
  getDetails?(context: TriggerPresentationContext): TriggerPresentationDetail[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/catalog",
3
- "version": "0.112.0",
3
+ "version": "0.112.4",
4
4
  "description": "Shared integration service and trigger definitions for Automate.ax.",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/authoring.ts CHANGED
@@ -4,5 +4,6 @@ export {
4
4
  type IntegrationAccountRequirement,
5
5
  type IntegrationScopeRequirement,
6
6
  type ScopeRequirementGroup,
7
+ type TriggerAccountRequirement,
7
8
  type TriggerDefinition,
8
9
  } from "./types"
package/src/index.ts CHANGED
@@ -60,6 +60,7 @@ export {
60
60
  type IntegrationScopeRequirement,
61
61
  type IntegrationServiceDefinition,
62
62
  type ScopeRequirementGroup,
63
+ type TriggerAccountRequirement,
63
64
  type TriggerDefinition,
64
65
  type TriggerPresentation,
65
66
  type TriggerPresentationContext,
@@ -1,4 +1,4 @@
1
- import type { IntegrationAccountRequirement, TriggerDefinition } from "../types"
1
+ import type { TriggerAccountRequirement, TriggerDefinition } from "../types"
2
2
  import * as z from "zod/mini"
3
3
 
4
4
  const AUTOMATE_PROJECT_READ_ACCOUNT = {
@@ -8,8 +8,9 @@ const AUTOMATE_PROJECT_READ_ACCOUNT = {
8
8
  requiredScopes: ["project:read"],
9
9
  },
10
10
  ],
11
+ planDefaultBinding: false,
11
12
  serviceId: "automate",
12
- } as const satisfies IntegrationAccountRequirement
13
+ } as const satisfies TriggerAccountRequirement
13
14
 
14
15
  const AUTOMATE_DEPLOYMENT_READ_ACCOUNT = {
15
16
  connectionOptions: [
@@ -18,8 +19,9 @@ const AUTOMATE_DEPLOYMENT_READ_ACCOUNT = {
18
19
  requiredScopes: ["deployment:read"],
19
20
  },
20
21
  ],
22
+ planDefaultBinding: false,
21
23
  serviceId: "automate",
22
- } as const satisfies IntegrationAccountRequirement
24
+ } as const satisfies TriggerAccountRequirement
23
25
 
24
26
  const AUTOMATION_CONFIG_SCHEMA = z.object({ automationId: z.string() })
25
27
  const DEPLOYMENT_CONFIG_SCHEMA = z.object({ projectId: z.string() })
package/src/types.ts CHANGED
@@ -112,12 +112,19 @@ export interface IntegrationAccountRequirement<
112
112
  serviceId: TServiceId
113
113
  }
114
114
 
115
+ /** Account-selection behavior for one public trigger type. */
116
+ export interface TriggerAccountRequirement<TServiceId extends string = string>
117
+ extends IntegrationAccountRequirement<TServiceId> {
118
+ /** Whether omission plans the project's default binding. Defaults to true. */
119
+ planDefaultBinding?: boolean
120
+ }
121
+
115
122
  /** Runtime-neutral metadata for one public trigger type. */
116
123
  export interface TriggerDefinition<
117
124
  TType extends string = string,
118
125
  TServiceId extends string = string,
119
126
  > {
120
- account?: IntegrationAccountRequirement<TServiceId>
127
+ account?: TriggerAccountRequirement<TServiceId>
121
128
  description?: string
122
129
 
123
130
  /** Adds labeled secondary details to this trigger's presentation. */