@automate.ax/catalog 0.163.3 → 0.164.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,15 @@
1
1
  export declare const automateTriggerDefinitions: {
2
+ readonly automateAccountUnhealthy: {
3
+ readonly account: {
4
+ readonly connectionOptions: readonly [{
5
+ readonly connectionMethodId: "organization-api-key";
6
+ readonly requiredScopes: readonly ["account:read"];
7
+ }];
8
+ readonly planDefaultBinding: false;
9
+ readonly serviceId: "automate";
10
+ };
11
+ readonly type: "automate.account.unhealthy";
12
+ };
2
13
  readonly automateActionFailed: {
3
14
  readonly account: {
4
15
  readonly connectionOptions: readonly [{
@@ -19,9 +19,23 @@ const AUTOMATE_DEPLOYMENT_READ_ACCOUNT = {
19
19
  planDefaultBinding: false,
20
20
  serviceId: "automate",
21
21
  };
22
+ const AUTOMATE_ACCOUNT_READ_ACCOUNT = {
23
+ connectionOptions: [
24
+ {
25
+ connectionMethodId: "organization-api-key",
26
+ requiredScopes: ["account:read"],
27
+ },
28
+ ],
29
+ planDefaultBinding: false,
30
+ serviceId: "automate",
31
+ };
22
32
  const AUTOMATION_CONFIG_SCHEMA = z.object({ automation: z.string() });
23
33
  const DEPLOYMENT_CONFIG_SCHEMA = z.object({ projectId: z.string() });
24
34
  export const automateTriggerDefinitions = {
35
+ automateAccountUnhealthy: {
36
+ account: AUTOMATE_ACCOUNT_READ_ACCOUNT,
37
+ type: "automate.account.unhealthy",
38
+ },
25
39
  automateActionFailed: automationTrigger("automate.action.failed"),
26
40
  automateActionIndeterminate: automationTrigger("automate.action.indeterminate"),
27
41
  automateActionRetryScheduled: automationTrigger("automate.action.retryScheduled"),
@@ -9344,6 +9344,17 @@ export declare const triggerDefinitions: {
9344
9344
  };
9345
9345
  readonly type: "asana.task.unassigned";
9346
9346
  };
9347
+ readonly automateAccountUnhealthy: {
9348
+ readonly account: {
9349
+ readonly connectionOptions: readonly [{
9350
+ readonly connectionMethodId: "organization-api-key";
9351
+ readonly requiredScopes: readonly ["account:read"];
9352
+ }];
9353
+ readonly planDefaultBinding: false;
9354
+ readonly serviceId: "automate";
9355
+ };
9356
+ readonly type: "automate.account.unhealthy";
9357
+ };
9347
9358
  readonly automateActionFailed: {
9348
9359
  readonly account: {
9349
9360
  readonly connectionOptions: readonly [{
@@ -10652,6 +10663,17 @@ export declare const triggerCatalog: ({
10652
10663
  value: string;
10653
10664
  }[];
10654
10665
  type: "automate.execution.settled";
10666
+ } | {
10667
+ name: string;
10668
+ account: {
10669
+ readonly connectionOptions: readonly [{
10670
+ readonly connectionMethodId: "organization-api-key";
10671
+ readonly requiredScopes: readonly ["account:read"];
10672
+ }];
10673
+ readonly planDefaultBinding: false;
10674
+ readonly serviceId: "automate";
10675
+ };
10676
+ type: "automate.account.unhealthy";
10655
10677
  } | {
10656
10678
  name: string;
10657
10679
  account: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/catalog",
3
- "version": "0.163.3",
3
+ "version": "0.164.0",
4
4
  "description": "Shared integration service and trigger definitions for Automate.ax.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://docs.automate.ax",
@@ -23,10 +23,25 @@ const AUTOMATE_DEPLOYMENT_READ_ACCOUNT = {
23
23
  serviceId: "automate",
24
24
  } as const satisfies TriggerAccountRequirement
25
25
 
26
+ const AUTOMATE_ACCOUNT_READ_ACCOUNT = {
27
+ connectionOptions: [
28
+ {
29
+ connectionMethodId: "organization-api-key",
30
+ requiredScopes: ["account:read"],
31
+ },
32
+ ],
33
+ planDefaultBinding: false,
34
+ serviceId: "automate",
35
+ } as const satisfies TriggerAccountRequirement
36
+
26
37
  const AUTOMATION_CONFIG_SCHEMA = z.object({ automation: z.string() })
27
38
  const DEPLOYMENT_CONFIG_SCHEMA = z.object({ projectId: z.string() })
28
39
 
29
40
  export const automateTriggerDefinitions = {
41
+ automateAccountUnhealthy: {
42
+ account: AUTOMATE_ACCOUNT_READ_ACCOUNT,
43
+ type: "automate.account.unhealthy",
44
+ },
30
45
  automateActionFailed: automationTrigger("automate.action.failed"),
31
46
  automateActionIndeterminate: automationTrigger(
32
47
  "automate.action.indeterminate",