@automate.ax/catalog 0.102.0 → 0.103.0

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,4 +1,60 @@
1
1
  export declare const automateTriggerDefinitions: {
2
+ readonly automateActionFailed: {
3
+ readonly account: {
4
+ readonly connectionOptions: readonly [{
5
+ readonly connectionMethodId: "organization-api-key";
6
+ readonly requiredScopes: readonly ["project:read"];
7
+ }];
8
+ readonly serviceId: "automate";
9
+ };
10
+ readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
11
+ label: string;
12
+ value: string;
13
+ }[];
14
+ readonly type: "automate.action.failed";
15
+ };
16
+ readonly automateActionIndeterminate: {
17
+ readonly account: {
18
+ readonly connectionOptions: readonly [{
19
+ readonly connectionMethodId: "organization-api-key";
20
+ readonly requiredScopes: readonly ["project:read"];
21
+ }];
22
+ readonly serviceId: "automate";
23
+ };
24
+ readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
25
+ label: string;
26
+ value: string;
27
+ }[];
28
+ readonly type: "automate.action.indeterminate";
29
+ };
30
+ readonly automateActionRetryScheduled: {
31
+ readonly account: {
32
+ readonly connectionOptions: readonly [{
33
+ readonly connectionMethodId: "organization-api-key";
34
+ readonly requiredScopes: readonly ["project:read"];
35
+ }];
36
+ readonly serviceId: "automate";
37
+ };
38
+ readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
39
+ label: string;
40
+ value: string;
41
+ }[];
42
+ readonly type: "automate.action.retryScheduled";
43
+ };
44
+ readonly automateActionAttemptEvent: {
45
+ readonly account: {
46
+ readonly connectionOptions: readonly [{
47
+ readonly connectionMethodId: "organization-api-key";
48
+ readonly requiredScopes: readonly ["project:read"];
49
+ }];
50
+ readonly serviceId: "automate";
51
+ };
52
+ readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
53
+ label: string;
54
+ value: string;
55
+ }[];
56
+ readonly type: "automate.actionAttempt.event";
57
+ };
2
58
  readonly automateAutomationDisabled: {
3
59
  readonly account: {
4
60
  readonly connectionOptions: readonly [{
@@ -111,4 +167,46 @@ export declare const automateTriggerDefinitions: {
111
167
  }[];
112
168
  readonly type: "automate.deployment.succeeded";
113
169
  };
170
+ readonly automateExecutionEvent: {
171
+ readonly account: {
172
+ readonly connectionOptions: readonly [{
173
+ readonly connectionMethodId: "organization-api-key";
174
+ readonly requiredScopes: readonly ["project:read"];
175
+ }];
176
+ readonly serviceId: "automate";
177
+ };
178
+ readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
179
+ label: string;
180
+ value: string;
181
+ }[];
182
+ readonly type: "automate.execution.event";
183
+ };
184
+ readonly automateExecutionFailed: {
185
+ readonly account: {
186
+ readonly connectionOptions: readonly [{
187
+ readonly connectionMethodId: "organization-api-key";
188
+ readonly requiredScopes: readonly ["project:read"];
189
+ }];
190
+ readonly serviceId: "automate";
191
+ };
192
+ readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
193
+ label: string;
194
+ value: string;
195
+ }[];
196
+ readonly type: "automate.execution.failed";
197
+ };
198
+ readonly automateExecutionSettled: {
199
+ readonly account: {
200
+ readonly connectionOptions: readonly [{
201
+ readonly connectionMethodId: "organization-api-key";
202
+ readonly requiredScopes: readonly ["project:read"];
203
+ }];
204
+ readonly serviceId: "automate";
205
+ };
206
+ readonly getDetails: ({ config }: import("..").TriggerPresentationContext) => {
207
+ label: string;
208
+ value: string;
209
+ }[];
210
+ readonly type: "automate.execution.settled";
211
+ };
114
212
  };
@@ -20,6 +20,10 @@ const AUTOMATE_DEPLOYMENT_READ_ACCOUNT = {
20
20
  const AUTOMATION_CONFIG_SCHEMA = z.object({ automationId: z.string() });
21
21
  const DEPLOYMENT_CONFIG_SCHEMA = z.object({ projectId: z.string() });
22
22
  export const automateTriggerDefinitions = {
23
+ automateActionFailed: automationTrigger("automate.action.failed"),
24
+ automateActionIndeterminate: automationTrigger("automate.action.indeterminate"),
25
+ automateActionRetryScheduled: automationTrigger("automate.action.retryScheduled"),
26
+ automateActionAttemptEvent: automationTrigger("automate.actionAttempt.event"),
23
27
  automateAutomationDisabled: automationTrigger("automate.automation.disabled"),
24
28
  automateAutomationEnabled: automationTrigger("automate.automation.enabled"),
25
29
  automateAutomationStateChanged: automationTrigger("automate.automation.stateChanged"),
@@ -28,6 +32,9 @@ export const automateTriggerDefinitions = {
28
32
  automateDeploymentEvent: deploymentTrigger("automate.deployment.event"),
29
33
  automateDeploymentFailed: deploymentTrigger("automate.deployment.failed"),
30
34
  automateDeploymentSucceeded: deploymentTrigger("automate.deployment.succeeded"),
35
+ automateExecutionEvent: automationTrigger("automate.execution.event"),
36
+ automateExecutionFailed: automationTrigger("automate.execution.failed"),
37
+ automateExecutionSettled: automationTrigger("automate.execution.settled"),
31
38
  };
32
39
  /**
33
40
  * Defines an automation-scoped lifecycle trigger.
@@ -4252,6 +4252,62 @@ export declare const triggerDefinitions: {
4252
4252
  };
4253
4253
  readonly type: "asana.task.removed";
4254
4254
  };
4255
+ readonly automateActionFailed: {
4256
+ readonly account: {
4257
+ readonly connectionOptions: readonly [{
4258
+ readonly connectionMethodId: "organization-api-key";
4259
+ readonly requiredScopes: readonly ["project:read"];
4260
+ }];
4261
+ readonly serviceId: "automate";
4262
+ };
4263
+ readonly getDetails: ({ config }: TriggerPresentationContext) => {
4264
+ label: string;
4265
+ value: string;
4266
+ }[];
4267
+ readonly type: "automate.action.failed";
4268
+ };
4269
+ readonly automateActionIndeterminate: {
4270
+ readonly account: {
4271
+ readonly connectionOptions: readonly [{
4272
+ readonly connectionMethodId: "organization-api-key";
4273
+ readonly requiredScopes: readonly ["project:read"];
4274
+ }];
4275
+ readonly serviceId: "automate";
4276
+ };
4277
+ readonly getDetails: ({ config }: TriggerPresentationContext) => {
4278
+ label: string;
4279
+ value: string;
4280
+ }[];
4281
+ readonly type: "automate.action.indeterminate";
4282
+ };
4283
+ readonly automateActionRetryScheduled: {
4284
+ readonly account: {
4285
+ readonly connectionOptions: readonly [{
4286
+ readonly connectionMethodId: "organization-api-key";
4287
+ readonly requiredScopes: readonly ["project:read"];
4288
+ }];
4289
+ readonly serviceId: "automate";
4290
+ };
4291
+ readonly getDetails: ({ config }: TriggerPresentationContext) => {
4292
+ label: string;
4293
+ value: string;
4294
+ }[];
4295
+ readonly type: "automate.action.retryScheduled";
4296
+ };
4297
+ readonly automateActionAttemptEvent: {
4298
+ readonly account: {
4299
+ readonly connectionOptions: readonly [{
4300
+ readonly connectionMethodId: "organization-api-key";
4301
+ readonly requiredScopes: readonly ["project:read"];
4302
+ }];
4303
+ readonly serviceId: "automate";
4304
+ };
4305
+ readonly getDetails: ({ config }: TriggerPresentationContext) => {
4306
+ label: string;
4307
+ value: string;
4308
+ }[];
4309
+ readonly type: "automate.actionAttempt.event";
4310
+ };
4255
4311
  readonly automateAutomationDisabled: {
4256
4312
  readonly account: {
4257
4313
  readonly connectionOptions: readonly [{
@@ -4364,6 +4420,48 @@ export declare const triggerDefinitions: {
4364
4420
  }[];
4365
4421
  readonly type: "automate.deployment.succeeded";
4366
4422
  };
4423
+ readonly automateExecutionEvent: {
4424
+ readonly account: {
4425
+ readonly connectionOptions: readonly [{
4426
+ readonly connectionMethodId: "organization-api-key";
4427
+ readonly requiredScopes: readonly ["project:read"];
4428
+ }];
4429
+ readonly serviceId: "automate";
4430
+ };
4431
+ readonly getDetails: ({ config }: TriggerPresentationContext) => {
4432
+ label: string;
4433
+ value: string;
4434
+ }[];
4435
+ readonly type: "automate.execution.event";
4436
+ };
4437
+ readonly automateExecutionFailed: {
4438
+ readonly account: {
4439
+ readonly connectionOptions: readonly [{
4440
+ readonly connectionMethodId: "organization-api-key";
4441
+ readonly requiredScopes: readonly ["project:read"];
4442
+ }];
4443
+ readonly serviceId: "automate";
4444
+ };
4445
+ readonly getDetails: ({ config }: TriggerPresentationContext) => {
4446
+ label: string;
4447
+ value: string;
4448
+ }[];
4449
+ readonly type: "automate.execution.failed";
4450
+ };
4451
+ readonly automateExecutionSettled: {
4452
+ readonly account: {
4453
+ readonly connectionOptions: readonly [{
4454
+ readonly connectionMethodId: "organization-api-key";
4455
+ readonly requiredScopes: readonly ["project:read"];
4456
+ }];
4457
+ readonly serviceId: "automate";
4458
+ };
4459
+ readonly getDetails: ({ config }: TriggerPresentationContext) => {
4460
+ label: string;
4461
+ value: string;
4462
+ }[];
4463
+ readonly type: "automate.execution.settled";
4464
+ };
4367
4465
  readonly airtableRecordCreated: {
4368
4466
  readonly account: {
4369
4467
  readonly connectionOptions: readonly [{
@@ -4486,6 +4584,62 @@ export declare const triggerCatalog: ({
4486
4584
  readonly serviceId: "airtable";
4487
4585
  };
4488
4586
  type: "airtable.record.updated";
4587
+ } | {
4588
+ name: string;
4589
+ account: {
4590
+ readonly connectionOptions: readonly [{
4591
+ readonly connectionMethodId: "organization-api-key";
4592
+ readonly requiredScopes: readonly ["project:read"];
4593
+ }];
4594
+ readonly serviceId: "automate";
4595
+ };
4596
+ getDetails: ({ config }: TriggerPresentationContext) => {
4597
+ label: string;
4598
+ value: string;
4599
+ }[];
4600
+ type: "automate.action.failed";
4601
+ } | {
4602
+ name: string;
4603
+ account: {
4604
+ readonly connectionOptions: readonly [{
4605
+ readonly connectionMethodId: "organization-api-key";
4606
+ readonly requiredScopes: readonly ["project:read"];
4607
+ }];
4608
+ readonly serviceId: "automate";
4609
+ };
4610
+ getDetails: ({ config }: TriggerPresentationContext) => {
4611
+ label: string;
4612
+ value: string;
4613
+ }[];
4614
+ type: "automate.action.indeterminate";
4615
+ } | {
4616
+ name: string;
4617
+ account: {
4618
+ readonly connectionOptions: readonly [{
4619
+ readonly connectionMethodId: "organization-api-key";
4620
+ readonly requiredScopes: readonly ["project:read"];
4621
+ }];
4622
+ readonly serviceId: "automate";
4623
+ };
4624
+ getDetails: ({ config }: TriggerPresentationContext) => {
4625
+ label: string;
4626
+ value: string;
4627
+ }[];
4628
+ type: "automate.action.retryScheduled";
4629
+ } | {
4630
+ name: string;
4631
+ account: {
4632
+ readonly connectionOptions: readonly [{
4633
+ readonly connectionMethodId: "organization-api-key";
4634
+ readonly requiredScopes: readonly ["project:read"];
4635
+ }];
4636
+ readonly serviceId: "automate";
4637
+ };
4638
+ getDetails: ({ config }: TriggerPresentationContext) => {
4639
+ label: string;
4640
+ value: string;
4641
+ }[];
4642
+ type: "automate.actionAttempt.event";
4489
4643
  } | {
4490
4644
  name: string;
4491
4645
  account: {
@@ -4598,6 +4752,48 @@ export declare const triggerCatalog: ({
4598
4752
  value: string;
4599
4753
  }[];
4600
4754
  type: "automate.deployment.succeeded";
4755
+ } | {
4756
+ name: string;
4757
+ account: {
4758
+ readonly connectionOptions: readonly [{
4759
+ readonly connectionMethodId: "organization-api-key";
4760
+ readonly requiredScopes: readonly ["project:read"];
4761
+ }];
4762
+ readonly serviceId: "automate";
4763
+ };
4764
+ getDetails: ({ config }: TriggerPresentationContext) => {
4765
+ label: string;
4766
+ value: string;
4767
+ }[];
4768
+ type: "automate.execution.event";
4769
+ } | {
4770
+ name: string;
4771
+ account: {
4772
+ readonly connectionOptions: readonly [{
4773
+ readonly connectionMethodId: "organization-api-key";
4774
+ readonly requiredScopes: readonly ["project:read"];
4775
+ }];
4776
+ readonly serviceId: "automate";
4777
+ };
4778
+ getDetails: ({ config }: TriggerPresentationContext) => {
4779
+ label: string;
4780
+ value: string;
4781
+ }[];
4782
+ type: "automate.execution.failed";
4783
+ } | {
4784
+ name: string;
4785
+ account: {
4786
+ readonly connectionOptions: readonly [{
4787
+ readonly connectionMethodId: "organization-api-key";
4788
+ readonly requiredScopes: readonly ["project:read"];
4789
+ }];
4790
+ readonly serviceId: "automate";
4791
+ };
4792
+ getDetails: ({ config }: TriggerPresentationContext) => {
4793
+ label: string;
4794
+ value: string;
4795
+ }[];
4796
+ type: "automate.execution.settled";
4601
4797
  } | {
4602
4798
  name: string;
4603
4799
  account: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/catalog",
3
- "version": "0.102.0",
3
+ "version": "0.103.0",
4
4
  "description": "Shared integration service and trigger definitions for Automate.ax.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -25,6 +25,14 @@ const AUTOMATION_CONFIG_SCHEMA = z.object({ automationId: z.string() })
25
25
  const DEPLOYMENT_CONFIG_SCHEMA = z.object({ projectId: z.string() })
26
26
 
27
27
  export const automateTriggerDefinitions = {
28
+ automateActionFailed: automationTrigger("automate.action.failed"),
29
+ automateActionIndeterminate: automationTrigger(
30
+ "automate.action.indeterminate",
31
+ ),
32
+ automateActionRetryScheduled: automationTrigger(
33
+ "automate.action.retryScheduled",
34
+ ),
35
+ automateActionAttemptEvent: automationTrigger("automate.actionAttempt.event"),
28
36
  automateAutomationDisabled: automationTrigger("automate.automation.disabled"),
29
37
  automateAutomationEnabled: automationTrigger("automate.automation.enabled"),
30
38
  automateAutomationStateChanged: automationTrigger(
@@ -41,6 +49,9 @@ export const automateTriggerDefinitions = {
41
49
  automateDeploymentSucceeded: deploymentTrigger(
42
50
  "automate.deployment.succeeded",
43
51
  ),
52
+ automateExecutionEvent: automationTrigger("automate.execution.event"),
53
+ automateExecutionFailed: automationTrigger("automate.execution.failed"),
54
+ automateExecutionSettled: automationTrigger("automate.execution.settled"),
44
55
  } as const satisfies Record<string, TriggerDefinition>
45
56
 
46
57
  /**