@automate.ax/catalog 0.55.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 (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/dist/catalog.d.ts +1106 -0
  4. package/dist/catalog.js +349 -0
  5. package/dist/index.d.ts +3 -0
  6. package/dist/index.js +3 -0
  7. package/dist/triggers/airtable.d.ts +62 -0
  8. package/dist/triggers/airtable.js +36 -0
  9. package/dist/triggers/asana.d.ts +65 -0
  10. package/dist/triggers/asana.js +39 -0
  11. package/dist/triggers/brevo.d.ts +111 -0
  12. package/dist/triggers/brevo.js +65 -0
  13. package/dist/triggers/core.d.ts +50 -0
  14. package/dist/triggers/core.js +74 -0
  15. package/dist/triggers/github.d.ts +228 -0
  16. package/dist/triggers/github.js +136 -0
  17. package/dist/triggers/google.d.ts +126 -0
  18. package/dist/triggers/google.js +143 -0
  19. package/dist/triggers/index.d.ts +2598 -0
  20. package/dist/triggers/index.js +97 -0
  21. package/dist/triggers/linear.d.ts +110 -0
  22. package/dist/triggers/linear.js +59 -0
  23. package/dist/triggers/microsoft.d.ts +40 -0
  24. package/dist/triggers/microsoft.js +60 -0
  25. package/dist/triggers/resend.d.ts +110 -0
  26. package/dist/triggers/resend.js +59 -0
  27. package/dist/triggers/slack.d.ts +41 -0
  28. package/dist/triggers/slack.js +53 -0
  29. package/dist/triggers/trello.d.ts +56 -0
  30. package/dist/triggers/trello.js +35 -0
  31. package/dist/triggers/vercel.d.ts +279 -0
  32. package/dist/triggers/vercel.js +163 -0
  33. package/dist/triggers/whatsapp.d.ts +65 -0
  34. package/dist/triggers/whatsapp.js +39 -0
  35. package/dist/types.d.ts +134 -0
  36. package/dist/types.js +59 -0
  37. package/package.json +70 -0
  38. package/src/catalog.ts +403 -0
  39. package/src/index.ts +68 -0
  40. package/src/triggers/airtable.ts +39 -0
  41. package/src/triggers/asana.ts +42 -0
  42. package/src/triggers/brevo.ts +68 -0
  43. package/src/triggers/core.ts +93 -0
  44. package/src/triggers/github.ts +142 -0
  45. package/src/triggers/google.ts +149 -0
  46. package/src/triggers/index.ts +128 -0
  47. package/src/triggers/linear.ts +62 -0
  48. package/src/triggers/microsoft.ts +65 -0
  49. package/src/triggers/resend.ts +62 -0
  50. package/src/triggers/slack.ts +58 -0
  51. package/src/triggers/trello.ts +38 -0
  52. package/src/triggers/vercel.ts +170 -0
  53. package/src/triggers/whatsapp.ts +42 -0
  54. package/src/types.ts +219 -0
@@ -0,0 +1,35 @@
1
+ import { trelloService } from "../catalog.js";
2
+ const TRELLO_ACCOUNT = {
3
+ connectionOptions: [
4
+ {
5
+ requiredScopes: [],
6
+ },
7
+ ],
8
+ serviceId: trelloService.id,
9
+ };
10
+ export const trelloTriggerDefinitions = {
11
+ trelloBoardEvent: {
12
+ account: TRELLO_ACCOUNT,
13
+ type: "trello.board.event",
14
+ },
15
+ trelloCardArchived: {
16
+ account: TRELLO_ACCOUNT,
17
+ type: "trello.card.archived",
18
+ },
19
+ trelloCardCommented: {
20
+ account: TRELLO_ACCOUNT,
21
+ type: "trello.card.commented",
22
+ },
23
+ trelloCardCreated: {
24
+ account: TRELLO_ACCOUNT,
25
+ type: "trello.card.created",
26
+ },
27
+ trelloCardMoved: {
28
+ account: TRELLO_ACCOUNT,
29
+ type: "trello.card.moved",
30
+ },
31
+ trelloCardUpdated: {
32
+ account: TRELLO_ACCOUNT,
33
+ type: "trello.card.updated",
34
+ },
35
+ };
@@ -0,0 +1,279 @@
1
+ export declare const vercelTriggerDefinitions: {
2
+ readonly vercelDeployment: {
3
+ readonly account: {
4
+ readonly connectionOptions: readonly [{
5
+ readonly connectionId: "oauth";
6
+ readonly requiredScopes: readonly ["deployment:read"];
7
+ }];
8
+ readonly serviceId: "vercel";
9
+ };
10
+ readonly name: "Vercel deployment event";
11
+ readonly type: "vercel.deployment";
12
+ };
13
+ readonly vercelDeploymentCanceled: {
14
+ readonly account: {
15
+ readonly connectionOptions: readonly [{
16
+ readonly connectionId: "oauth";
17
+ readonly requiredScopes: readonly ["deployment:read"];
18
+ }];
19
+ readonly serviceId: "vercel";
20
+ };
21
+ readonly type: "vercel.deployment.canceled";
22
+ };
23
+ readonly vercelDeploymentCreated: {
24
+ readonly account: {
25
+ readonly connectionOptions: readonly [{
26
+ readonly connectionId: "oauth";
27
+ readonly requiredScopes: readonly ["deployment:read"];
28
+ }];
29
+ readonly serviceId: "vercel";
30
+ };
31
+ readonly type: "vercel.deployment.created";
32
+ };
33
+ readonly vercelDeploymentFailed: {
34
+ readonly account: {
35
+ readonly connectionOptions: readonly [{
36
+ readonly connectionId: "oauth";
37
+ readonly requiredScopes: readonly ["deployment:read"];
38
+ }];
39
+ readonly serviceId: "vercel";
40
+ };
41
+ readonly type: "vercel.deployment.failed";
42
+ };
43
+ readonly vercelDeploymentPromoted: {
44
+ readonly account: {
45
+ readonly connectionOptions: readonly [{
46
+ readonly connectionId: "oauth";
47
+ readonly requiredScopes: readonly ["deployment:read"];
48
+ }];
49
+ readonly serviceId: "vercel";
50
+ };
51
+ readonly type: "vercel.deployment.promoted";
52
+ };
53
+ readonly vercelDeploymentReady: {
54
+ readonly account: {
55
+ readonly connectionOptions: readonly [{
56
+ readonly connectionId: "oauth";
57
+ readonly requiredScopes: readonly ["deployment:read"];
58
+ }];
59
+ readonly serviceId: "vercel";
60
+ };
61
+ readonly type: "vercel.deployment.ready";
62
+ };
63
+ readonly vercelDeploymentSucceeded: {
64
+ readonly account: {
65
+ readonly connectionOptions: readonly [{
66
+ readonly connectionId: "oauth";
67
+ readonly requiredScopes: readonly ["deployment:read"];
68
+ }];
69
+ readonly serviceId: "vercel";
70
+ };
71
+ readonly type: "vercel.deployment.succeeded";
72
+ };
73
+ readonly vercelIntegrationConfiguration: {
74
+ readonly account: {
75
+ readonly connectionOptions: readonly [{
76
+ readonly connectionId: "oauth";
77
+ readonly requiredScopes: readonly [];
78
+ }];
79
+ readonly serviceId: "vercel";
80
+ };
81
+ readonly name: "Vercel integration configuration event";
82
+ readonly type: "vercel.integration-configuration";
83
+ };
84
+ readonly vercelIntegrationConfigurationPermissionUpgraded: {
85
+ readonly account: {
86
+ readonly connectionOptions: readonly [{
87
+ readonly connectionId: "oauth";
88
+ readonly requiredScopes: readonly [];
89
+ }];
90
+ readonly serviceId: "vercel";
91
+ };
92
+ readonly name: "Vercel integration permission upgraded";
93
+ readonly type: "vercel.integration-configuration.permissionUpgraded";
94
+ };
95
+ readonly vercelIntegrationConfigurationRemoved: {
96
+ readonly account: {
97
+ readonly connectionOptions: readonly [{
98
+ readonly connectionId: "oauth";
99
+ readonly requiredScopes: readonly [];
100
+ }];
101
+ readonly serviceId: "vercel";
102
+ };
103
+ readonly type: "vercel.integration-configuration.removed";
104
+ };
105
+ readonly vercelIntegrationConfigurationScopeChangeConfirmed: {
106
+ readonly account: {
107
+ readonly connectionOptions: readonly [{
108
+ readonly connectionId: "oauth";
109
+ readonly requiredScopes: readonly [];
110
+ }];
111
+ readonly serviceId: "vercel";
112
+ };
113
+ readonly name: "Vercel integration scope change confirmed";
114
+ readonly type: "vercel.integration-configuration.scopeChangeConfirmed";
115
+ };
116
+ readonly vercelIntegrationConfigurationTransferred: {
117
+ readonly account: {
118
+ readonly connectionOptions: readonly [{
119
+ readonly connectionId: "oauth";
120
+ readonly requiredScopes: readonly [];
121
+ }];
122
+ readonly serviceId: "vercel";
123
+ };
124
+ readonly type: "vercel.integration-configuration.transferred";
125
+ };
126
+ readonly vercelProject: {
127
+ readonly account: {
128
+ readonly connectionOptions: readonly [{
129
+ readonly connectionId: "oauth";
130
+ readonly requiredScopes: readonly ["project:read"];
131
+ }];
132
+ readonly serviceId: "vercel";
133
+ };
134
+ readonly name: "Vercel project event";
135
+ readonly type: "vercel.project";
136
+ };
137
+ readonly vercelProjectCreated: {
138
+ readonly account: {
139
+ readonly connectionOptions: readonly [{
140
+ readonly connectionId: "oauth";
141
+ readonly requiredScopes: readonly ["project:read"];
142
+ }];
143
+ readonly serviceId: "vercel";
144
+ };
145
+ readonly type: "vercel.project.created";
146
+ };
147
+ readonly vercelProjectDomain: {
148
+ readonly account: {
149
+ readonly connectionOptions: readonly [{
150
+ readonly connectionId: "oauth";
151
+ readonly requiredScopes: readonly ["domain:read"];
152
+ }];
153
+ readonly serviceId: "vercel";
154
+ };
155
+ readonly name: "Vercel project domain event";
156
+ readonly type: "vercel.project-domain";
157
+ };
158
+ readonly vercelProjectDomainCreated: {
159
+ readonly account: {
160
+ readonly connectionOptions: readonly [{
161
+ readonly connectionId: "oauth";
162
+ readonly requiredScopes: readonly ["domain:read"];
163
+ }];
164
+ readonly serviceId: "vercel";
165
+ };
166
+ readonly type: "vercel.project-domain.created";
167
+ };
168
+ readonly vercelProjectDomainDeleted: {
169
+ readonly account: {
170
+ readonly connectionOptions: readonly [{
171
+ readonly connectionId: "oauth";
172
+ readonly requiredScopes: readonly ["domain:read"];
173
+ }];
174
+ readonly serviceId: "vercel";
175
+ };
176
+ readonly type: "vercel.project-domain.deleted";
177
+ };
178
+ readonly vercelProjectDomainMoved: {
179
+ readonly account: {
180
+ readonly connectionOptions: readonly [{
181
+ readonly connectionId: "oauth";
182
+ readonly requiredScopes: readonly ["domain:read"];
183
+ }];
184
+ readonly serviceId: "vercel";
185
+ };
186
+ readonly type: "vercel.project-domain.moved";
187
+ };
188
+ readonly vercelProjectDomainUnverified: {
189
+ readonly account: {
190
+ readonly connectionOptions: readonly [{
191
+ readonly connectionId: "oauth";
192
+ readonly requiredScopes: readonly ["domain:read"];
193
+ }];
194
+ readonly serviceId: "vercel";
195
+ };
196
+ readonly type: "vercel.project-domain.unverified";
197
+ };
198
+ readonly vercelProjectDomainUpdated: {
199
+ readonly account: {
200
+ readonly connectionOptions: readonly [{
201
+ readonly connectionId: "oauth";
202
+ readonly requiredScopes: readonly ["domain:read"];
203
+ }];
204
+ readonly serviceId: "vercel";
205
+ };
206
+ readonly type: "vercel.project-domain.updated";
207
+ };
208
+ readonly vercelProjectDomainVerified: {
209
+ readonly account: {
210
+ readonly connectionOptions: readonly [{
211
+ readonly connectionId: "oauth";
212
+ readonly requiredScopes: readonly ["domain:read"];
213
+ }];
214
+ readonly serviceId: "vercel";
215
+ };
216
+ readonly type: "vercel.project-domain.verified";
217
+ };
218
+ readonly vercelProjectEnvironmentVariable: {
219
+ readonly account: {
220
+ readonly connectionOptions: readonly [{
221
+ readonly connectionId: "oauth";
222
+ readonly requiredScopes: readonly ["global-project-env-vars:read"];
223
+ }];
224
+ readonly serviceId: "vercel";
225
+ };
226
+ readonly name: "Vercel project environment variable event";
227
+ readonly type: "vercel.project-environment-variable";
228
+ };
229
+ readonly vercelProjectEnvironmentVariableCreated: {
230
+ readonly account: {
231
+ readonly connectionOptions: readonly [{
232
+ readonly connectionId: "oauth";
233
+ readonly requiredScopes: readonly ["global-project-env-vars:read"];
234
+ }];
235
+ readonly serviceId: "vercel";
236
+ };
237
+ readonly type: "vercel.project-environment-variable.created";
238
+ };
239
+ readonly vercelProjectEnvironmentVariableDeleted: {
240
+ readonly account: {
241
+ readonly connectionOptions: readonly [{
242
+ readonly connectionId: "oauth";
243
+ readonly requiredScopes: readonly ["global-project-env-vars:read"];
244
+ }];
245
+ readonly serviceId: "vercel";
246
+ };
247
+ readonly type: "vercel.project-environment-variable.deleted";
248
+ };
249
+ readonly vercelProjectEnvironmentVariableUpdated: {
250
+ readonly account: {
251
+ readonly connectionOptions: readonly [{
252
+ readonly connectionId: "oauth";
253
+ readonly requiredScopes: readonly ["global-project-env-vars:read"];
254
+ }];
255
+ readonly serviceId: "vercel";
256
+ };
257
+ readonly type: "vercel.project-environment-variable.updated";
258
+ };
259
+ readonly vercelProjectRemoved: {
260
+ readonly account: {
261
+ readonly connectionOptions: readonly [{
262
+ readonly connectionId: "oauth";
263
+ readonly requiredScopes: readonly ["project:read"];
264
+ }];
265
+ readonly serviceId: "vercel";
266
+ };
267
+ readonly type: "vercel.project.removed";
268
+ };
269
+ readonly vercelProjectRenamed: {
270
+ readonly account: {
271
+ readonly connectionOptions: readonly [{
272
+ readonly connectionId: "oauth";
273
+ readonly requiredScopes: readonly ["project:read"];
274
+ }];
275
+ readonly serviceId: "vercel";
276
+ };
277
+ readonly type: "vercel.project.renamed";
278
+ };
279
+ };
@@ -0,0 +1,163 @@
1
+ import { vercelService } from "../catalog.js";
2
+ const VERCEL_DEPLOYMENT_ACCOUNT = {
3
+ connectionOptions: [
4
+ {
5
+ connectionId: "oauth",
6
+ requiredScopes: ["deployment:read"],
7
+ },
8
+ ],
9
+ serviceId: vercelService.id,
10
+ };
11
+ const VERCEL_INTEGRATION_CONFIGURATION_ACCOUNT = {
12
+ connectionOptions: [
13
+ {
14
+ connectionId: "oauth",
15
+ requiredScopes: [],
16
+ },
17
+ ],
18
+ serviceId: vercelService.id,
19
+ };
20
+ const VERCEL_PROJECT_ACCOUNT = {
21
+ connectionOptions: [
22
+ {
23
+ connectionId: "oauth",
24
+ requiredScopes: ["project:read"],
25
+ },
26
+ ],
27
+ serviceId: vercelService.id,
28
+ };
29
+ const VERCEL_PROJECT_DOMAIN_ACCOUNT = {
30
+ connectionOptions: [
31
+ {
32
+ connectionId: "oauth",
33
+ requiredScopes: ["domain:read"],
34
+ },
35
+ ],
36
+ serviceId: vercelService.id,
37
+ };
38
+ const VERCEL_PROJECT_ENVIRONMENT_VARIABLE_ACCOUNT = {
39
+ connectionOptions: [
40
+ {
41
+ connectionId: "oauth",
42
+ requiredScopes: ["global-project-env-vars:read"],
43
+ },
44
+ ],
45
+ serviceId: vercelService.id,
46
+ };
47
+ export const vercelTriggerDefinitions = {
48
+ vercelDeployment: {
49
+ account: VERCEL_DEPLOYMENT_ACCOUNT,
50
+ name: "Vercel deployment event",
51
+ type: "vercel.deployment",
52
+ },
53
+ vercelDeploymentCanceled: {
54
+ account: VERCEL_DEPLOYMENT_ACCOUNT,
55
+ type: "vercel.deployment.canceled",
56
+ },
57
+ vercelDeploymentCreated: {
58
+ account: VERCEL_DEPLOYMENT_ACCOUNT,
59
+ type: "vercel.deployment.created",
60
+ },
61
+ vercelDeploymentFailed: {
62
+ account: VERCEL_DEPLOYMENT_ACCOUNT,
63
+ type: "vercel.deployment.failed",
64
+ },
65
+ vercelDeploymentPromoted: {
66
+ account: VERCEL_DEPLOYMENT_ACCOUNT,
67
+ type: "vercel.deployment.promoted",
68
+ },
69
+ vercelDeploymentReady: {
70
+ account: VERCEL_DEPLOYMENT_ACCOUNT,
71
+ type: "vercel.deployment.ready",
72
+ },
73
+ vercelDeploymentSucceeded: {
74
+ account: VERCEL_DEPLOYMENT_ACCOUNT,
75
+ type: "vercel.deployment.succeeded",
76
+ },
77
+ vercelIntegrationConfiguration: {
78
+ account: VERCEL_INTEGRATION_CONFIGURATION_ACCOUNT,
79
+ name: "Vercel integration configuration event",
80
+ type: "vercel.integration-configuration",
81
+ },
82
+ vercelIntegrationConfigurationPermissionUpgraded: {
83
+ account: VERCEL_INTEGRATION_CONFIGURATION_ACCOUNT,
84
+ name: "Vercel integration permission upgraded",
85
+ type: "vercel.integration-configuration.permissionUpgraded",
86
+ },
87
+ vercelIntegrationConfigurationRemoved: {
88
+ account: VERCEL_INTEGRATION_CONFIGURATION_ACCOUNT,
89
+ type: "vercel.integration-configuration.removed",
90
+ },
91
+ vercelIntegrationConfigurationScopeChangeConfirmed: {
92
+ account: VERCEL_INTEGRATION_CONFIGURATION_ACCOUNT,
93
+ name: "Vercel integration scope change confirmed",
94
+ type: "vercel.integration-configuration.scopeChangeConfirmed",
95
+ },
96
+ vercelIntegrationConfigurationTransferred: {
97
+ account: VERCEL_INTEGRATION_CONFIGURATION_ACCOUNT,
98
+ type: "vercel.integration-configuration.transferred",
99
+ },
100
+ vercelProject: {
101
+ account: VERCEL_PROJECT_ACCOUNT,
102
+ name: "Vercel project event",
103
+ type: "vercel.project",
104
+ },
105
+ vercelProjectCreated: {
106
+ account: VERCEL_PROJECT_ACCOUNT,
107
+ type: "vercel.project.created",
108
+ },
109
+ vercelProjectDomain: {
110
+ account: VERCEL_PROJECT_DOMAIN_ACCOUNT,
111
+ name: "Vercel project domain event",
112
+ type: "vercel.project-domain",
113
+ },
114
+ vercelProjectDomainCreated: {
115
+ account: VERCEL_PROJECT_DOMAIN_ACCOUNT,
116
+ type: "vercel.project-domain.created",
117
+ },
118
+ vercelProjectDomainDeleted: {
119
+ account: VERCEL_PROJECT_DOMAIN_ACCOUNT,
120
+ type: "vercel.project-domain.deleted",
121
+ },
122
+ vercelProjectDomainMoved: {
123
+ account: VERCEL_PROJECT_DOMAIN_ACCOUNT,
124
+ type: "vercel.project-domain.moved",
125
+ },
126
+ vercelProjectDomainUnverified: {
127
+ account: VERCEL_PROJECT_DOMAIN_ACCOUNT,
128
+ type: "vercel.project-domain.unverified",
129
+ },
130
+ vercelProjectDomainUpdated: {
131
+ account: VERCEL_PROJECT_DOMAIN_ACCOUNT,
132
+ type: "vercel.project-domain.updated",
133
+ },
134
+ vercelProjectDomainVerified: {
135
+ account: VERCEL_PROJECT_DOMAIN_ACCOUNT,
136
+ type: "vercel.project-domain.verified",
137
+ },
138
+ vercelProjectEnvironmentVariable: {
139
+ account: VERCEL_PROJECT_ENVIRONMENT_VARIABLE_ACCOUNT,
140
+ name: "Vercel project environment variable event",
141
+ type: "vercel.project-environment-variable",
142
+ },
143
+ vercelProjectEnvironmentVariableCreated: {
144
+ account: VERCEL_PROJECT_ENVIRONMENT_VARIABLE_ACCOUNT,
145
+ type: "vercel.project-environment-variable.created",
146
+ },
147
+ vercelProjectEnvironmentVariableDeleted: {
148
+ account: VERCEL_PROJECT_ENVIRONMENT_VARIABLE_ACCOUNT,
149
+ type: "vercel.project-environment-variable.deleted",
150
+ },
151
+ vercelProjectEnvironmentVariableUpdated: {
152
+ account: VERCEL_PROJECT_ENVIRONMENT_VARIABLE_ACCOUNT,
153
+ type: "vercel.project-environment-variable.updated",
154
+ },
155
+ vercelProjectRemoved: {
156
+ account: VERCEL_PROJECT_ACCOUNT,
157
+ type: "vercel.project.removed",
158
+ },
159
+ vercelProjectRenamed: {
160
+ account: VERCEL_PROJECT_ACCOUNT,
161
+ type: "vercel.project.renamed",
162
+ },
163
+ };
@@ -0,0 +1,65 @@
1
+ export declare const whatsappTriggerDefinitions: {
2
+ readonly whatsappMessageDelivered: {
3
+ readonly account: {
4
+ readonly connectionOptions: readonly [{
5
+ readonly requiredScopes: readonly ["whatsapp_business_messaging"];
6
+ }];
7
+ readonly serviceId: "whatsapp";
8
+ };
9
+ readonly type: "whatsapp.message.delivered";
10
+ };
11
+ readonly whatsappMessageFailed: {
12
+ readonly account: {
13
+ readonly connectionOptions: readonly [{
14
+ readonly requiredScopes: readonly ["whatsapp_business_messaging"];
15
+ }];
16
+ readonly serviceId: "whatsapp";
17
+ };
18
+ readonly type: "whatsapp.message.failed";
19
+ };
20
+ readonly whatsappMessagePlayed: {
21
+ readonly account: {
22
+ readonly connectionOptions: readonly [{
23
+ readonly requiredScopes: readonly ["whatsapp_business_messaging"];
24
+ }];
25
+ readonly serviceId: "whatsapp";
26
+ };
27
+ readonly type: "whatsapp.message.played";
28
+ };
29
+ readonly whatsappMessageRead: {
30
+ readonly account: {
31
+ readonly connectionOptions: readonly [{
32
+ readonly requiredScopes: readonly ["whatsapp_business_messaging"];
33
+ }];
34
+ readonly serviceId: "whatsapp";
35
+ };
36
+ readonly type: "whatsapp.message.read";
37
+ };
38
+ readonly whatsappMessageReceived: {
39
+ readonly account: {
40
+ readonly connectionOptions: readonly [{
41
+ readonly requiredScopes: readonly ["whatsapp_business_messaging"];
42
+ }];
43
+ readonly serviceId: "whatsapp";
44
+ };
45
+ readonly type: "whatsapp.message.received";
46
+ };
47
+ readonly whatsappMessageSent: {
48
+ readonly account: {
49
+ readonly connectionOptions: readonly [{
50
+ readonly requiredScopes: readonly ["whatsapp_business_messaging"];
51
+ }];
52
+ readonly serviceId: "whatsapp";
53
+ };
54
+ readonly type: "whatsapp.message.sent";
55
+ };
56
+ readonly whatsappMessageStatusEvent: {
57
+ readonly account: {
58
+ readonly connectionOptions: readonly [{
59
+ readonly requiredScopes: readonly ["whatsapp_business_messaging"];
60
+ }];
61
+ readonly serviceId: "whatsapp";
62
+ };
63
+ readonly type: "whatsapp.message.statusEvent";
64
+ };
65
+ };
@@ -0,0 +1,39 @@
1
+ import { whatsappService } from "../catalog.js";
2
+ const WHATSAPP_ACCOUNT = {
3
+ connectionOptions: [
4
+ {
5
+ requiredScopes: ["whatsapp_business_messaging"],
6
+ },
7
+ ],
8
+ serviceId: whatsappService.id,
9
+ };
10
+ export const whatsappTriggerDefinitions = {
11
+ whatsappMessageDelivered: {
12
+ account: WHATSAPP_ACCOUNT,
13
+ type: "whatsapp.message.delivered",
14
+ },
15
+ whatsappMessageFailed: {
16
+ account: WHATSAPP_ACCOUNT,
17
+ type: "whatsapp.message.failed",
18
+ },
19
+ whatsappMessagePlayed: {
20
+ account: WHATSAPP_ACCOUNT,
21
+ type: "whatsapp.message.played",
22
+ },
23
+ whatsappMessageRead: {
24
+ account: WHATSAPP_ACCOUNT,
25
+ type: "whatsapp.message.read",
26
+ },
27
+ whatsappMessageReceived: {
28
+ account: WHATSAPP_ACCOUNT,
29
+ type: "whatsapp.message.received",
30
+ },
31
+ whatsappMessageSent: {
32
+ account: WHATSAPP_ACCOUNT,
33
+ type: "whatsapp.message.sent",
34
+ },
35
+ whatsappMessageStatusEvent: {
36
+ account: WHATSAPP_ACCOUNT,
37
+ type: "whatsapp.message.statusEvent",
38
+ },
39
+ };