@automate.ax/catalog 0.75.0 → 0.77.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.
Files changed (63) hide show
  1. package/dist/authoring.d.ts +1 -0
  2. package/dist/authoring.js +1 -0
  3. package/dist/catalog.d.ts +142 -74
  4. package/dist/catalog.js +74 -13
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/triggers/airtable.js +1 -2
  8. package/dist/triggers/asana.js +1 -2
  9. package/dist/triggers/brevo.js +1 -2
  10. package/dist/triggers/core-dashboard.d.ts +374 -0
  11. package/dist/triggers/core-dashboard.js +202 -0
  12. package/dist/triggers/core-http.d.ts +30 -0
  13. package/dist/triggers/core-http.js +43 -0
  14. package/dist/triggers/core-invocation.d.ts +9 -0
  15. package/dist/triggers/core-invocation.js +15 -0
  16. package/dist/triggers/core-mailhook.d.ts +35 -0
  17. package/dist/triggers/core-mailhook.js +63 -0
  18. package/dist/triggers/core-schedule.d.ts +9 -0
  19. package/dist/triggers/core-schedule.js +17 -0
  20. package/dist/triggers/core.d.ts +15 -426
  21. package/dist/triggers/core.js +16 -346
  22. package/dist/triggers/github.js +4 -5
  23. package/dist/triggers/google.d.ts +143 -0
  24. package/dist/triggers/google.js +92 -5
  25. package/dist/triggers/index.d.ts +347 -74
  26. package/dist/triggers/index.js +2 -1
  27. package/dist/triggers/linear.js +1 -2
  28. package/dist/triggers/microsoft.js +3 -4
  29. package/dist/triggers/name.d.ts +13 -0
  30. package/dist/triggers/name.js +31 -0
  31. package/dist/triggers/resend.js +1 -2
  32. package/dist/triggers/slack.js +3 -4
  33. package/dist/triggers/trello.js +1 -2
  34. package/dist/triggers/vercel.d.ts +27 -27
  35. package/dist/triggers/vercel.js +10 -11
  36. package/dist/triggers/whatsapp.js +1 -2
  37. package/dist/types.d.ts +1 -1
  38. package/dist/types.js +3 -3
  39. package/package.json +118 -5
  40. package/src/authoring.ts +8 -0
  41. package/src/catalog.ts +76 -13
  42. package/src/index.ts +2 -0
  43. package/src/triggers/airtable.ts +1 -2
  44. package/src/triggers/asana.ts +1 -2
  45. package/src/triggers/brevo.ts +1 -2
  46. package/src/triggers/core-dashboard.ts +361 -0
  47. package/src/triggers/core-http.ts +69 -0
  48. package/src/triggers/core-invocation.ts +18 -0
  49. package/src/triggers/core-mailhook.ts +83 -0
  50. package/src/triggers/core-schedule.ts +21 -0
  51. package/src/triggers/core.ts +38 -544
  52. package/src/triggers/github.ts +4 -5
  53. package/src/triggers/google.ts +93 -5
  54. package/src/triggers/index.ts +2 -1
  55. package/src/triggers/linear.ts +1 -2
  56. package/src/triggers/microsoft.ts +3 -4
  57. package/src/triggers/name.ts +37 -0
  58. package/src/triggers/resend.ts +1 -2
  59. package/src/triggers/slack.ts +3 -4
  60. package/src/triggers/trello.ts +1 -2
  61. package/src/triggers/vercel.ts +10 -11
  62. package/src/triggers/whatsapp.ts +1 -2
  63. package/src/types.ts +4 -4
@@ -1,7 +1,7 @@
1
1
  import { airtableTriggerDefinitions } from "./airtable.js";
2
2
  import { asanaTriggerDefinitions } from "./asana.js";
3
3
  import { brevoTriggerDefinitions } from "./brevo.js";
4
- import { coreTriggerDefinitions, sentenceCase } from "./core.js";
4
+ import { coreTriggerDefinitions } from "./core.js";
5
5
  import { githubTriggerDefinitions } from "./github.js";
6
6
  import { googleTriggerDefinitions } from "./google.js";
7
7
  import { linearTriggerDefinitions } from "./linear.js";
@@ -11,6 +11,7 @@ import { slackTriggerDefinitions } from "./slack.js";
11
11
  import { trelloTriggerDefinitions } from "./trello.js";
12
12
  import { vercelTriggerDefinitions } from "./vercel.js";
13
13
  import { whatsappTriggerDefinitions } from "./whatsapp.js";
14
+ import { sentenceCase } from "./name.js";
14
15
  import { getIntegrationService } from "../catalog.js";
15
16
  export { getDashboardRunEndpoint, getDashboardRunEndpointKey, getHttpTriggerEndpoint, getHttpTriggerEndpointKey, getMailhookAddress, getMailhookAddressKey, PLATFORM_EMAIL_DOMAIN, DASHBOARD_RUN_CONFIG_SCHEMA, } from "./core.js";
16
17
  /** Plain shared definitions for every public trigger type. */
@@ -1,11 +1,10 @@
1
- import { linearService } from "../catalog.js";
2
1
  const LINEAR_ACCOUNT = {
3
2
  connectionOptions: [
4
3
  {
5
4
  requiredScopes: ["read"],
6
5
  },
7
6
  ],
8
- serviceId: linearService.id,
7
+ serviceId: "linear",
9
8
  };
10
9
  export const linearTriggerDefinitions = {
11
10
  linearCommentCreated: {
@@ -1,4 +1,3 @@
1
- import { microsoftService } from "../catalog.js";
2
1
  const OUTLOOK_ACCOUNT = {
3
2
  connectionOptions: [
4
3
  {
@@ -10,7 +9,7 @@ const OUTLOOK_ACCOUNT = {
10
9
  ],
11
10
  },
12
11
  ],
13
- serviceId: microsoftService.id,
12
+ serviceId: "microsoft",
14
13
  };
15
14
  const TEAMS_CHANNEL_MESSAGE_ACCOUNT = {
16
15
  connectionOptions: [
@@ -27,7 +26,7 @@ const TEAMS_CHANNEL_MESSAGE_ACCOUNT = {
27
26
  ],
28
27
  },
29
28
  ],
30
- serviceId: microsoftService.id,
29
+ serviceId: "microsoft",
31
30
  };
32
31
  const TEAMS_CHAT_MESSAGE_ACCOUNT = {
33
32
  connectionOptions: [
@@ -40,7 +39,7 @@ const TEAMS_CHAT_MESSAGE_ACCOUNT = {
40
39
  ],
41
40
  },
42
41
  ],
43
- serviceId: microsoftService.id,
42
+ serviceId: "microsoft",
44
43
  };
45
44
  export const microsoftTriggerDefinitions = {
46
45
  outlookEmailReceived: {
@@ -0,0 +1,13 @@
1
+ import type { TriggerDefinition } from "../types.js";
2
+ /**
3
+ * Resolves a definition's display name without loading the global catalog.
4
+ *
5
+ * @param definition - Trigger definition to name.
6
+ */
7
+ export declare function getTriggerDefinitionName(definition: TriggerDefinition): string;
8
+ /**
9
+ * Converts a stable identifier to a sentence-cased display name.
10
+ *
11
+ * @param value - Stable identifier to format.
12
+ */
13
+ export declare function sentenceCase(value: string): string;
@@ -0,0 +1,31 @@
1
+ const NAMESPACE_DISPLAY_NAMES = {
2
+ github: "GitHub",
3
+ whatsapp: "WhatsApp",
4
+ };
5
+ /**
6
+ * Resolves a definition's display name without loading the global catalog.
7
+ *
8
+ * @param definition - Trigger definition to name.
9
+ */
10
+ export function getTriggerDefinitionName(definition) {
11
+ if (definition.name)
12
+ return definition.name;
13
+ const [namespace = definition.type] = definition.type.split(".");
14
+ const inferredName = sentenceCase(definition.type);
15
+ const namespaceDisplayName = NAMESPACE_DISPLAY_NAMES[namespace];
16
+ return namespaceDisplayName
17
+ ? inferredName.replace(sentenceCase(namespace), namespaceDisplayName)
18
+ : inferredName;
19
+ }
20
+ /**
21
+ * Converts a stable identifier to a sentence-cased display name.
22
+ *
23
+ * @param value - Stable identifier to format.
24
+ */
25
+ export function sentenceCase(value) {
26
+ const words = value
27
+ .replaceAll(/([a-z\d])([A-Z])/g, "$1 $2")
28
+ .replaceAll(/[._-]+/g, " ")
29
+ .toLowerCase();
30
+ return words.charAt(0).toUpperCase() + words.slice(1);
31
+ }
@@ -1,11 +1,10 @@
1
- import { resendService } from "../catalog.js";
2
1
  const RESEND_ACCOUNT = {
3
2
  connectionOptions: [
4
3
  {
5
4
  requiredScopes: [],
6
5
  },
7
6
  ],
8
- serviceId: resendService.id,
7
+ serviceId: "resend",
9
8
  };
10
9
  export const resendTriggerDefinitions = {
11
10
  resendEmailBounced: {
@@ -1,11 +1,10 @@
1
- import { slackService } from "../catalog.js";
2
1
  const SLACK_APP_MENTION_ACCOUNT = {
3
2
  connectionOptions: [
4
3
  {
5
4
  requiredScopes: ["app_mentions:read"],
6
5
  },
7
6
  ],
8
- serviceId: slackService.id,
7
+ serviceId: "slack",
9
8
  };
10
9
  const SLACK_MESSAGE_ACCOUNT = {
11
10
  connectionOptions: [
@@ -23,7 +22,7 @@ const SLACK_MESSAGE_ACCOUNT = {
23
22
  ],
24
23
  },
25
24
  ],
26
- serviceId: slackService.id,
25
+ serviceId: "slack",
27
26
  };
28
27
  const SLACK_REACTION_ACCOUNT = {
29
28
  connectionOptions: [
@@ -31,7 +30,7 @@ const SLACK_REACTION_ACCOUNT = {
31
30
  requiredScopes: ["reactions:read"],
32
31
  },
33
32
  ],
34
- serviceId: slackService.id,
33
+ serviceId: "slack",
35
34
  };
36
35
  export const slackTriggerDefinitions = {
37
36
  slackAppMentioned: {
@@ -1,11 +1,10 @@
1
- import { trelloService } from "../catalog.js";
2
1
  const TRELLO_ACCOUNT = {
3
2
  connectionOptions: [
4
3
  {
5
4
  requiredScopes: [],
6
5
  },
7
6
  ],
8
- serviceId: trelloService.id,
7
+ serviceId: "trello",
9
8
  };
10
9
  export const trelloTriggerDefinitions = {
11
10
  trelloBoardEvent: {
@@ -2,7 +2,7 @@ export declare const vercelTriggerDefinitions: {
2
2
  readonly vercelDeployment: {
3
3
  readonly account: {
4
4
  readonly connectionOptions: readonly [{
5
- readonly connectionId: "oauth";
5
+ readonly connectionMethodId: "oauth";
6
6
  readonly requiredScopes: readonly ["deployment:read"];
7
7
  }];
8
8
  readonly serviceId: "vercel";
@@ -13,7 +13,7 @@ export declare const vercelTriggerDefinitions: {
13
13
  readonly vercelDeploymentCanceled: {
14
14
  readonly account: {
15
15
  readonly connectionOptions: readonly [{
16
- readonly connectionId: "oauth";
16
+ readonly connectionMethodId: "oauth";
17
17
  readonly requiredScopes: readonly ["deployment:read"];
18
18
  }];
19
19
  readonly serviceId: "vercel";
@@ -23,7 +23,7 @@ export declare const vercelTriggerDefinitions: {
23
23
  readonly vercelDeploymentCreated: {
24
24
  readonly account: {
25
25
  readonly connectionOptions: readonly [{
26
- readonly connectionId: "oauth";
26
+ readonly connectionMethodId: "oauth";
27
27
  readonly requiredScopes: readonly ["deployment:read"];
28
28
  }];
29
29
  readonly serviceId: "vercel";
@@ -33,7 +33,7 @@ export declare const vercelTriggerDefinitions: {
33
33
  readonly vercelDeploymentFailed: {
34
34
  readonly account: {
35
35
  readonly connectionOptions: readonly [{
36
- readonly connectionId: "oauth";
36
+ readonly connectionMethodId: "oauth";
37
37
  readonly requiredScopes: readonly ["deployment:read"];
38
38
  }];
39
39
  readonly serviceId: "vercel";
@@ -43,7 +43,7 @@ export declare const vercelTriggerDefinitions: {
43
43
  readonly vercelDeploymentPromoted: {
44
44
  readonly account: {
45
45
  readonly connectionOptions: readonly [{
46
- readonly connectionId: "oauth";
46
+ readonly connectionMethodId: "oauth";
47
47
  readonly requiredScopes: readonly ["deployment:read"];
48
48
  }];
49
49
  readonly serviceId: "vercel";
@@ -53,7 +53,7 @@ export declare const vercelTriggerDefinitions: {
53
53
  readonly vercelDeploymentReady: {
54
54
  readonly account: {
55
55
  readonly connectionOptions: readonly [{
56
- readonly connectionId: "oauth";
56
+ readonly connectionMethodId: "oauth";
57
57
  readonly requiredScopes: readonly ["deployment:read"];
58
58
  }];
59
59
  readonly serviceId: "vercel";
@@ -63,7 +63,7 @@ export declare const vercelTriggerDefinitions: {
63
63
  readonly vercelDeploymentSucceeded: {
64
64
  readonly account: {
65
65
  readonly connectionOptions: readonly [{
66
- readonly connectionId: "oauth";
66
+ readonly connectionMethodId: "oauth";
67
67
  readonly requiredScopes: readonly ["deployment:read"];
68
68
  }];
69
69
  readonly serviceId: "vercel";
@@ -73,7 +73,7 @@ export declare const vercelTriggerDefinitions: {
73
73
  readonly vercelIntegrationConfiguration: {
74
74
  readonly account: {
75
75
  readonly connectionOptions: readonly [{
76
- readonly connectionId: "oauth";
76
+ readonly connectionMethodId: "oauth";
77
77
  readonly requiredScopes: readonly [];
78
78
  }];
79
79
  readonly serviceId: "vercel";
@@ -84,7 +84,7 @@ export declare const vercelTriggerDefinitions: {
84
84
  readonly vercelIntegrationConfigurationPermissionUpgraded: {
85
85
  readonly account: {
86
86
  readonly connectionOptions: readonly [{
87
- readonly connectionId: "oauth";
87
+ readonly connectionMethodId: "oauth";
88
88
  readonly requiredScopes: readonly [];
89
89
  }];
90
90
  readonly serviceId: "vercel";
@@ -95,7 +95,7 @@ export declare const vercelTriggerDefinitions: {
95
95
  readonly vercelIntegrationConfigurationRemoved: {
96
96
  readonly account: {
97
97
  readonly connectionOptions: readonly [{
98
- readonly connectionId: "oauth";
98
+ readonly connectionMethodId: "oauth";
99
99
  readonly requiredScopes: readonly [];
100
100
  }];
101
101
  readonly serviceId: "vercel";
@@ -105,7 +105,7 @@ export declare const vercelTriggerDefinitions: {
105
105
  readonly vercelIntegrationConfigurationScopeChangeConfirmed: {
106
106
  readonly account: {
107
107
  readonly connectionOptions: readonly [{
108
- readonly connectionId: "oauth";
108
+ readonly connectionMethodId: "oauth";
109
109
  readonly requiredScopes: readonly [];
110
110
  }];
111
111
  readonly serviceId: "vercel";
@@ -116,7 +116,7 @@ export declare const vercelTriggerDefinitions: {
116
116
  readonly vercelIntegrationConfigurationTransferred: {
117
117
  readonly account: {
118
118
  readonly connectionOptions: readonly [{
119
- readonly connectionId: "oauth";
119
+ readonly connectionMethodId: "oauth";
120
120
  readonly requiredScopes: readonly [];
121
121
  }];
122
122
  readonly serviceId: "vercel";
@@ -126,7 +126,7 @@ export declare const vercelTriggerDefinitions: {
126
126
  readonly vercelProject: {
127
127
  readonly account: {
128
128
  readonly connectionOptions: readonly [{
129
- readonly connectionId: "oauth";
129
+ readonly connectionMethodId: "oauth";
130
130
  readonly requiredScopes: readonly ["project:read"];
131
131
  }];
132
132
  readonly serviceId: "vercel";
@@ -137,7 +137,7 @@ export declare const vercelTriggerDefinitions: {
137
137
  readonly vercelProjectCreated: {
138
138
  readonly account: {
139
139
  readonly connectionOptions: readonly [{
140
- readonly connectionId: "oauth";
140
+ readonly connectionMethodId: "oauth";
141
141
  readonly requiredScopes: readonly ["project:read"];
142
142
  }];
143
143
  readonly serviceId: "vercel";
@@ -147,7 +147,7 @@ export declare const vercelTriggerDefinitions: {
147
147
  readonly vercelProjectDomain: {
148
148
  readonly account: {
149
149
  readonly connectionOptions: readonly [{
150
- readonly connectionId: "oauth";
150
+ readonly connectionMethodId: "oauth";
151
151
  readonly requiredScopes: readonly ["domain:read"];
152
152
  }];
153
153
  readonly serviceId: "vercel";
@@ -158,7 +158,7 @@ export declare const vercelTriggerDefinitions: {
158
158
  readonly vercelProjectDomainCreated: {
159
159
  readonly account: {
160
160
  readonly connectionOptions: readonly [{
161
- readonly connectionId: "oauth";
161
+ readonly connectionMethodId: "oauth";
162
162
  readonly requiredScopes: readonly ["domain:read"];
163
163
  }];
164
164
  readonly serviceId: "vercel";
@@ -168,7 +168,7 @@ export declare const vercelTriggerDefinitions: {
168
168
  readonly vercelProjectDomainDeleted: {
169
169
  readonly account: {
170
170
  readonly connectionOptions: readonly [{
171
- readonly connectionId: "oauth";
171
+ readonly connectionMethodId: "oauth";
172
172
  readonly requiredScopes: readonly ["domain:read"];
173
173
  }];
174
174
  readonly serviceId: "vercel";
@@ -178,7 +178,7 @@ export declare const vercelTriggerDefinitions: {
178
178
  readonly vercelProjectDomainMoved: {
179
179
  readonly account: {
180
180
  readonly connectionOptions: readonly [{
181
- readonly connectionId: "oauth";
181
+ readonly connectionMethodId: "oauth";
182
182
  readonly requiredScopes: readonly ["domain:read"];
183
183
  }];
184
184
  readonly serviceId: "vercel";
@@ -188,7 +188,7 @@ export declare const vercelTriggerDefinitions: {
188
188
  readonly vercelProjectDomainUnverified: {
189
189
  readonly account: {
190
190
  readonly connectionOptions: readonly [{
191
- readonly connectionId: "oauth";
191
+ readonly connectionMethodId: "oauth";
192
192
  readonly requiredScopes: readonly ["domain:read"];
193
193
  }];
194
194
  readonly serviceId: "vercel";
@@ -198,7 +198,7 @@ export declare const vercelTriggerDefinitions: {
198
198
  readonly vercelProjectDomainUpdated: {
199
199
  readonly account: {
200
200
  readonly connectionOptions: readonly [{
201
- readonly connectionId: "oauth";
201
+ readonly connectionMethodId: "oauth";
202
202
  readonly requiredScopes: readonly ["domain:read"];
203
203
  }];
204
204
  readonly serviceId: "vercel";
@@ -208,7 +208,7 @@ export declare const vercelTriggerDefinitions: {
208
208
  readonly vercelProjectDomainVerified: {
209
209
  readonly account: {
210
210
  readonly connectionOptions: readonly [{
211
- readonly connectionId: "oauth";
211
+ readonly connectionMethodId: "oauth";
212
212
  readonly requiredScopes: readonly ["domain:read"];
213
213
  }];
214
214
  readonly serviceId: "vercel";
@@ -218,7 +218,7 @@ export declare const vercelTriggerDefinitions: {
218
218
  readonly vercelProjectEnvironmentVariable: {
219
219
  readonly account: {
220
220
  readonly connectionOptions: readonly [{
221
- readonly connectionId: "oauth";
221
+ readonly connectionMethodId: "oauth";
222
222
  readonly requiredScopes: readonly ["global-project-env-vars:read"];
223
223
  }];
224
224
  readonly serviceId: "vercel";
@@ -229,7 +229,7 @@ export declare const vercelTriggerDefinitions: {
229
229
  readonly vercelProjectEnvironmentVariableCreated: {
230
230
  readonly account: {
231
231
  readonly connectionOptions: readonly [{
232
- readonly connectionId: "oauth";
232
+ readonly connectionMethodId: "oauth";
233
233
  readonly requiredScopes: readonly ["global-project-env-vars:read"];
234
234
  }];
235
235
  readonly serviceId: "vercel";
@@ -239,7 +239,7 @@ export declare const vercelTriggerDefinitions: {
239
239
  readonly vercelProjectEnvironmentVariableDeleted: {
240
240
  readonly account: {
241
241
  readonly connectionOptions: readonly [{
242
- readonly connectionId: "oauth";
242
+ readonly connectionMethodId: "oauth";
243
243
  readonly requiredScopes: readonly ["global-project-env-vars:read"];
244
244
  }];
245
245
  readonly serviceId: "vercel";
@@ -249,7 +249,7 @@ export declare const vercelTriggerDefinitions: {
249
249
  readonly vercelProjectEnvironmentVariableUpdated: {
250
250
  readonly account: {
251
251
  readonly connectionOptions: readonly [{
252
- readonly connectionId: "oauth";
252
+ readonly connectionMethodId: "oauth";
253
253
  readonly requiredScopes: readonly ["global-project-env-vars:read"];
254
254
  }];
255
255
  readonly serviceId: "vercel";
@@ -259,7 +259,7 @@ export declare const vercelTriggerDefinitions: {
259
259
  readonly vercelProjectRemoved: {
260
260
  readonly account: {
261
261
  readonly connectionOptions: readonly [{
262
- readonly connectionId: "oauth";
262
+ readonly connectionMethodId: "oauth";
263
263
  readonly requiredScopes: readonly ["project:read"];
264
264
  }];
265
265
  readonly serviceId: "vercel";
@@ -269,7 +269,7 @@ export declare const vercelTriggerDefinitions: {
269
269
  readonly vercelProjectRenamed: {
270
270
  readonly account: {
271
271
  readonly connectionOptions: readonly [{
272
- readonly connectionId: "oauth";
272
+ readonly connectionMethodId: "oauth";
273
273
  readonly requiredScopes: readonly ["project:read"];
274
274
  }];
275
275
  readonly serviceId: "vercel";
@@ -1,48 +1,47 @@
1
- import { vercelService } from "../catalog.js";
2
1
  const VERCEL_DEPLOYMENT_ACCOUNT = {
3
2
  connectionOptions: [
4
3
  {
5
- connectionId: "oauth",
4
+ connectionMethodId: "oauth",
6
5
  requiredScopes: ["deployment:read"],
7
6
  },
8
7
  ],
9
- serviceId: vercelService.id,
8
+ serviceId: "vercel",
10
9
  };
11
10
  const VERCEL_INTEGRATION_CONFIGURATION_ACCOUNT = {
12
11
  connectionOptions: [
13
12
  {
14
- connectionId: "oauth",
13
+ connectionMethodId: "oauth",
15
14
  requiredScopes: [],
16
15
  },
17
16
  ],
18
- serviceId: vercelService.id,
17
+ serviceId: "vercel",
19
18
  };
20
19
  const VERCEL_PROJECT_ACCOUNT = {
21
20
  connectionOptions: [
22
21
  {
23
- connectionId: "oauth",
22
+ connectionMethodId: "oauth",
24
23
  requiredScopes: ["project:read"],
25
24
  },
26
25
  ],
27
- serviceId: vercelService.id,
26
+ serviceId: "vercel",
28
27
  };
29
28
  const VERCEL_PROJECT_DOMAIN_ACCOUNT = {
30
29
  connectionOptions: [
31
30
  {
32
- connectionId: "oauth",
31
+ connectionMethodId: "oauth",
33
32
  requiredScopes: ["domain:read"],
34
33
  },
35
34
  ],
36
- serviceId: vercelService.id,
35
+ serviceId: "vercel",
37
36
  };
38
37
  const VERCEL_PROJECT_ENVIRONMENT_VARIABLE_ACCOUNT = {
39
38
  connectionOptions: [
40
39
  {
41
- connectionId: "oauth",
40
+ connectionMethodId: "oauth",
42
41
  requiredScopes: ["global-project-env-vars:read"],
43
42
  },
44
43
  ],
45
- serviceId: vercelService.id,
44
+ serviceId: "vercel",
46
45
  };
47
46
  export const vercelTriggerDefinitions = {
48
47
  vercelDeployment: {
@@ -1,11 +1,10 @@
1
- import { whatsappService } from "../catalog.js";
2
1
  const WHATSAPP_ACCOUNT = {
3
2
  connectionOptions: [
4
3
  {
5
4
  requiredScopes: ["whatsapp_business_messaging"],
6
5
  },
7
6
  ],
8
- serviceId: whatsappService.id,
7
+ serviceId: "whatsapp",
9
8
  };
10
9
  export const whatsappTriggerDefinitions = {
11
10
  whatsappMessageDelivered: {
package/dist/types.d.ts CHANGED
@@ -78,7 +78,7 @@ export declare const integrationScope: {
78
78
  };
79
79
  /** One connection method accepted by an integration account requirement. */
80
80
  export interface IntegrationAccountConnectionOption {
81
- connectionId?: string;
81
+ connectionMethodId?: string;
82
82
  requiredScopes: readonly IntegrationScopeRequirement[];
83
83
  }
84
84
  /** One normalized integration account requirement. */
package/dist/types.js CHANGED
@@ -33,10 +33,10 @@ export function defineIntegrationService(service) {
33
33
  if (emptyFormConnection) {
34
34
  throw new Error(`Integration service ${service.id} has no fields for form connection: ${emptyFormConnection.id}`);
35
35
  }
36
- const duplicateConnectionId = service.connectionMethods.find((connection, index) => service.connectionMethods.findIndex(({ id }) => id === connection.id) !==
36
+ const duplicateConnectionMethodId = service.connectionMethods.find((connection, index) => service.connectionMethods.findIndex(({ id }) => id === connection.id) !==
37
37
  index)?.id;
38
- if (duplicateConnectionId) {
39
- throw new Error(`Integration service ${service.id} has duplicate connection ID: ${duplicateConnectionId}`);
38
+ if (duplicateConnectionMethodId) {
39
+ throw new Error(`Integration service ${service.id} has duplicate connection method ID: ${duplicateConnectionMethodId}`);
40
40
  }
41
41
  if (service.preferredConnectionMethodId &&
42
42
  !service.connectionMethods.some(({ id }) => id === service.preferredConnectionMethodId)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/catalog",
3
- "version": "0.75.0",
3
+ "version": "0.77.0",
4
4
  "description": "Shared integration service and trigger definitions for Automate.ax.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -18,7 +18,26 @@
18
18
  },
19
19
  "zshy": {
20
20
  "exports": {
21
- ".": "./src/index.ts"
21
+ ".": "./src/index.ts",
22
+ "./authoring": "./src/authoring.ts",
23
+ "./triggers/airtable": "./src/triggers/airtable.ts",
24
+ "./triggers/asana": "./src/triggers/asana.ts",
25
+ "./triggers/brevo": "./src/triggers/brevo.ts",
26
+ "./triggers/core-dashboard": "./src/triggers/core-dashboard.ts",
27
+ "./triggers/core-http": "./src/triggers/core-http.ts",
28
+ "./triggers/core-invocation": "./src/triggers/core-invocation.ts",
29
+ "./triggers/core-mailhook": "./src/triggers/core-mailhook.ts",
30
+ "./triggers/core-schedule": "./src/triggers/core-schedule.ts",
31
+ "./triggers/github": "./src/triggers/github.ts",
32
+ "./triggers/google": "./src/triggers/google.ts",
33
+ "./triggers/linear": "./src/triggers/linear.ts",
34
+ "./triggers/microsoft": "./src/triggers/microsoft.ts",
35
+ "./triggers/name": "./src/triggers/name.ts",
36
+ "./triggers/resend": "./src/triggers/resend.ts",
37
+ "./triggers/slack": "./src/triggers/slack.ts",
38
+ "./triggers/trello": "./src/triggers/trello.ts",
39
+ "./triggers/vercel": "./src/triggers/vercel.ts",
40
+ "./triggers/whatsapp": "./src/triggers/whatsapp.ts"
22
41
  },
23
42
  "cjs": false,
24
43
  "conditions": {
@@ -30,7 +49,6 @@
30
49
  "@types/bun": "latest",
31
50
  "@typescript/native": "npm:typescript@^7.0.2",
32
51
  "@zachsents/oxlint-config": "^0.4.1",
33
- "concurrently": "^10.0.4",
34
52
  "eslint": "^9.39.5",
35
53
  "oxlint": "^1.76.0",
36
54
  "oxlint-tsgolint": "^7.0.2001",
@@ -38,8 +56,8 @@
38
56
  },
39
57
  "scripts": {
40
58
  "typecheck": "tsc --noEmit",
41
- "lint": "concurrently --success all --kill-others-on-fail \"oxlint --type-aware\" \"bun --bun eslint .\"",
42
- "lint:fix": "concurrently --success all --kill-others-on-fail \"oxlint --type-aware --fix --fix-suggestions\" \"bun --bun eslint . --fix\"",
59
+ "lint": "oxlint --type-aware --threads=2 && bun --bun eslint . --cache --cache-strategy content",
60
+ "lint:fix": "oxlint --type-aware --threads=2 --fix --fix-suggestions && bun --bun eslint . --fix --cache --cache-strategy content",
43
61
  "check": "bun run typecheck && bun run lint",
44
62
  "test": "bun test --timeout 10000",
45
63
  "build": "zshy",
@@ -62,6 +80,101 @@
62
80
  "bun": "./src/index.ts",
63
81
  "types": "./dist/index.d.ts",
64
82
  "default": "./dist/index.js"
83
+ },
84
+ "./authoring": {
85
+ "bun": "./src/authoring.ts",
86
+ "types": "./dist/authoring.d.ts",
87
+ "default": "./dist/authoring.js"
88
+ },
89
+ "./triggers/airtable": {
90
+ "bun": "./src/triggers/airtable.ts",
91
+ "types": "./dist/triggers/airtable.d.ts",
92
+ "default": "./dist/triggers/airtable.js"
93
+ },
94
+ "./triggers/asana": {
95
+ "bun": "./src/triggers/asana.ts",
96
+ "types": "./dist/triggers/asana.d.ts",
97
+ "default": "./dist/triggers/asana.js"
98
+ },
99
+ "./triggers/brevo": {
100
+ "bun": "./src/triggers/brevo.ts",
101
+ "types": "./dist/triggers/brevo.d.ts",
102
+ "default": "./dist/triggers/brevo.js"
103
+ },
104
+ "./triggers/core-dashboard": {
105
+ "bun": "./src/triggers/core-dashboard.ts",
106
+ "types": "./dist/triggers/core-dashboard.d.ts",
107
+ "default": "./dist/triggers/core-dashboard.js"
108
+ },
109
+ "./triggers/core-http": {
110
+ "bun": "./src/triggers/core-http.ts",
111
+ "types": "./dist/triggers/core-http.d.ts",
112
+ "default": "./dist/triggers/core-http.js"
113
+ },
114
+ "./triggers/core-invocation": {
115
+ "bun": "./src/triggers/core-invocation.ts",
116
+ "types": "./dist/triggers/core-invocation.d.ts",
117
+ "default": "./dist/triggers/core-invocation.js"
118
+ },
119
+ "./triggers/core-mailhook": {
120
+ "bun": "./src/triggers/core-mailhook.ts",
121
+ "types": "./dist/triggers/core-mailhook.d.ts",
122
+ "default": "./dist/triggers/core-mailhook.js"
123
+ },
124
+ "./triggers/core-schedule": {
125
+ "bun": "./src/triggers/core-schedule.ts",
126
+ "types": "./dist/triggers/core-schedule.d.ts",
127
+ "default": "./dist/triggers/core-schedule.js"
128
+ },
129
+ "./triggers/github": {
130
+ "bun": "./src/triggers/github.ts",
131
+ "types": "./dist/triggers/github.d.ts",
132
+ "default": "./dist/triggers/github.js"
133
+ },
134
+ "./triggers/google": {
135
+ "bun": "./src/triggers/google.ts",
136
+ "types": "./dist/triggers/google.d.ts",
137
+ "default": "./dist/triggers/google.js"
138
+ },
139
+ "./triggers/linear": {
140
+ "bun": "./src/triggers/linear.ts",
141
+ "types": "./dist/triggers/linear.d.ts",
142
+ "default": "./dist/triggers/linear.js"
143
+ },
144
+ "./triggers/microsoft": {
145
+ "bun": "./src/triggers/microsoft.ts",
146
+ "types": "./dist/triggers/microsoft.d.ts",
147
+ "default": "./dist/triggers/microsoft.js"
148
+ },
149
+ "./triggers/name": {
150
+ "bun": "./src/triggers/name.ts",
151
+ "types": "./dist/triggers/name.d.ts",
152
+ "default": "./dist/triggers/name.js"
153
+ },
154
+ "./triggers/resend": {
155
+ "bun": "./src/triggers/resend.ts",
156
+ "types": "./dist/triggers/resend.d.ts",
157
+ "default": "./dist/triggers/resend.js"
158
+ },
159
+ "./triggers/slack": {
160
+ "bun": "./src/triggers/slack.ts",
161
+ "types": "./dist/triggers/slack.d.ts",
162
+ "default": "./dist/triggers/slack.js"
163
+ },
164
+ "./triggers/trello": {
165
+ "bun": "./src/triggers/trello.ts",
166
+ "types": "./dist/triggers/trello.d.ts",
167
+ "default": "./dist/triggers/trello.js"
168
+ },
169
+ "./triggers/vercel": {
170
+ "bun": "./src/triggers/vercel.ts",
171
+ "types": "./dist/triggers/vercel.d.ts",
172
+ "default": "./dist/triggers/vercel.js"
173
+ },
174
+ "./triggers/whatsapp": {
175
+ "bun": "./src/triggers/whatsapp.ts",
176
+ "types": "./dist/triggers/whatsapp.d.ts",
177
+ "default": "./dist/triggers/whatsapp.js"
65
178
  }
66
179
  },
67
180
  "dependencies": {
@@ -0,0 +1,8 @@
1
+ export {
2
+ integrationScope,
3
+ type IntegrationAccountConnectionOption,
4
+ type IntegrationAccountRequirement,
5
+ type IntegrationScopeRequirement,
6
+ type ScopeRequirementGroup,
7
+ type TriggerDefinition,
8
+ } from "./types"