@friggframework/core 2.0.0--canary.700.80ec1cc.0 → 2.0.0--canary.702.047d3c4.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 (130) hide show
  1. package/database/documentdb-utils.js +1 -6
  2. package/errors/index.js +0 -4
  3. package/generated/prisma-mongodb/edge.js +4 -52
  4. package/generated/prisma-mongodb/index-browser.js +1 -49
  5. package/generated/prisma-mongodb/index.d.ts +60 -3506
  6. package/generated/prisma-mongodb/index.js +4 -52
  7. package/generated/prisma-mongodb/package.json +1 -1
  8. package/generated/prisma-mongodb/schema.prisma +0 -65
  9. package/generated/prisma-mongodb/wasm.js +4 -52
  10. package/generated/prisma-postgresql/edge.js +4 -52
  11. package/generated/prisma-postgresql/index-browser.js +1 -49
  12. package/generated/prisma-postgresql/index.d.ts +94 -3824
  13. package/generated/prisma-postgresql/index.js +4 -52
  14. package/generated/prisma-postgresql/package.json +1 -1
  15. package/generated/prisma-postgresql/schema.prisma +0 -63
  16. package/generated/prisma-postgresql/wasm.js +4 -52
  17. package/handlers/WEBHOOKS.md +0 -29
  18. package/handlers/app-definition-loader.js +9 -2
  19. package/handlers/app-handler-helpers.js +2 -5
  20. package/handlers/integration-event-dispatcher.js +3 -7
  21. package/handlers/routers/integration-webhook-routers.js +38 -26
  22. package/index.js +0 -2
  23. package/integrations/integration-base.js +1 -162
  24. package/integrations/integration-router.js +1 -6
  25. package/integrations/repositories/integration-mapping-repository-documentdb.js +0 -50
  26. package/integrations/repositories/integration-mapping-repository-interface.js +0 -15
  27. package/integrations/repositories/integration-mapping-repository-mongo.js +0 -29
  28. package/integrations/repositories/integration-mapping-repository-postgres.js +0 -30
  29. package/integrations/repositories/integration-mapping-repository.js +0 -29
  30. package/integrations/repositories/integration-repository-documentdb.js +2 -6
  31. package/integrations/repositories/integration-repository-interface.js +0 -3
  32. package/integrations/repositories/integration-repository-mongo.js +5 -20
  33. package/integrations/repositories/integration-repository-postgres.js +1 -5
  34. package/integrations/repositories/process-repository-mongo.js +1 -1
  35. package/integrations/use-cases/create-integration.js +4 -14
  36. package/integrations/use-cases/delete-integration-for-user.js +4 -4
  37. package/integrations/use-cases/get-integration-for-user.js +2 -4
  38. package/integrations/use-cases/get-integration-instance.js +4 -4
  39. package/integrations/use-cases/get-integrations-for-user.js +4 -4
  40. package/integrations/use-cases/get-possible-integrations.js +2 -7
  41. package/integrations/use-cases/update-integration.js +4 -4
  42. package/package.json +6 -6
  43. package/prisma-mongodb/schema.prisma +0 -65
  44. package/prisma-postgresql/schema.prisma +0 -63
  45. package/queues/queuer-util.js +2 -9
  46. package/errors/mapping-already-exists-error.js +0 -14
  47. package/handlers/workers/integration-triggers.js +0 -25
  48. package/infrastructure/scheduler/recurrence.js +0 -204
  49. package/integrations/definitions/README.md +0 -278
  50. package/integrations/definitions/canonical.js +0 -11
  51. package/integrations/definitions/capabilities/AUDIT.md +0 -480
  52. package/integrations/definitions/capabilities/acmeerp.capabilities.json +0 -633
  53. package/integrations/definitions/capabilities/asana.capabilities.json +0 -279
  54. package/integrations/definitions/capabilities/calendly.capabilities.json +0 -385
  55. package/integrations/definitions/capabilities/docusign.capabilities.json +0 -314
  56. package/integrations/definitions/capabilities/fathom.capabilities.json +0 -238
  57. package/integrations/definitions/capabilities/github.capabilities.json +0 -585
  58. package/integrations/definitions/capabilities/hubspot.capabilities.json +0 -822
  59. package/integrations/definitions/capabilities/jira.capabilities.json +0 -391
  60. package/integrations/definitions/capabilities/klaviyo.capabilities.json +0 -503
  61. package/integrations/definitions/capabilities/linear.capabilities.json +0 -378
  62. package/integrations/definitions/capabilities/netsuite.capabilities.json +0 -535
  63. package/integrations/definitions/capabilities/notion.capabilities.json +0 -208
  64. package/integrations/definitions/capabilities/phone.capabilities.json +0 -511
  65. package/integrations/definitions/capabilities/pipedrive.capabilities.json +0 -430
  66. package/integrations/definitions/capabilities/quickbooks.capabilities.json +0 -635
  67. package/integrations/definitions/capabilities/salesforce.capabilities.json +0 -568
  68. package/integrations/definitions/capabilities/shopify.capabilities.json +0 -1128
  69. package/integrations/definitions/capabilities/slack.capabilities.json +0 -373
  70. package/integrations/definitions/capabilities/stripe.capabilities.json +0 -630
  71. package/integrations/definitions/capabilities/webflow.capabilities.json +0 -196
  72. package/integrations/definitions/capabilities/zendesk.capabilities.json +0 -422
  73. package/integrations/definitions/compile.js +0 -80
  74. package/integrations/definitions/config-form.js +0 -137
  75. package/integrations/definitions/examples/acme-erp-quickbooks.definition.json +0 -467
  76. package/integrations/definitions/examples/asana-slack.definition.json +0 -219
  77. package/integrations/definitions/examples/calendly-salesforce.definition.json +0 -459
  78. package/integrations/definitions/examples/docusign-salesforce.definition.json +0 -305
  79. package/integrations/definitions/examples/fathom-hubspot-notion.definition.json +0 -575
  80. package/integrations/definitions/examples/github-linear.definition.json +0 -322
  81. package/integrations/definitions/examples/hubspot-slack.definition.json +0 -427
  82. package/integrations/definitions/examples/klaviyo-hubspot.definition.json +0 -336
  83. package/integrations/definitions/examples/phone-hubspot.definition.json +0 -633
  84. package/integrations/definitions/examples/pipedrive-hubspot.definition.json +0 -136
  85. package/integrations/definitions/examples/pipedrive-phone.definition.json +0 -340
  86. package/integrations/definitions/examples/records/phone-hubspot.definition-version.json +0 -652
  87. package/integrations/definitions/examples/records/phone-hubspot.integration.json +0 -86
  88. package/integrations/definitions/examples/records/phone-hubspot.mappings.json +0 -39
  89. package/integrations/definitions/examples/records/phone-hubspot.workflow-run.json +0 -62
  90. package/integrations/definitions/examples/shopify-klaviyo.definition.json +0 -488
  91. package/integrations/definitions/examples/shopify-netsuite.definition.json +0 -622
  92. package/integrations/definitions/examples/stripe-quickbooks.definition.json +0 -476
  93. package/integrations/definitions/examples/webflow-hubspot-slack.definition.json +0 -262
  94. package/integrations/definitions/examples/zendesk-jira.definition.json +0 -604
  95. package/integrations/definitions/expressions.js +0 -229
  96. package/integrations/definitions/index.js +0 -45
  97. package/integrations/definitions/integration-runtime.js +0 -763
  98. package/integrations/definitions/interpreter.js +0 -104
  99. package/integrations/definitions/manifests.js +0 -177
  100. package/integrations/definitions/renderers/common.js +0 -67
  101. package/integrations/definitions/renderers/html.js +0 -129
  102. package/integrations/definitions/renderers/hubspot.js +0 -59
  103. package/integrations/definitions/renderers/preview.js +0 -154
  104. package/integrations/definitions/renderers/slack.js +0 -146
  105. package/integrations/definitions/repositories/definition-version-repository.js +0 -67
  106. package/integrations/definitions/repositories/workflow-run-repository.js +0 -80
  107. package/integrations/definitions/router.js +0 -170
  108. package/integrations/definitions/runtime.js +0 -268
  109. package/integrations/definitions/schema/capability-manifest.v0.1.schema.json +0 -549
  110. package/integrations/definitions/schema/installation.v0.1.schema.json +0 -130
  111. package/integrations/definitions/schema/integration-definition.v0.1.schema.json +0 -909
  112. package/integrations/definitions/schema/records.md +0 -105
  113. package/integrations/definitions/schema-check.js +0 -58
  114. package/integrations/definitions/scripts/check-manifests.js +0 -220
  115. package/integrations/definitions/scripts/validate.js +0 -66
  116. package/integrations/definitions/steps.js +0 -123
  117. package/integrations/definitions/sync-engine.js +0 -297
  118. package/integrations/definitions/tests/helpers-fake-crm.js +0 -49
  119. package/integrations/definitions/transforms.js +0 -91
  120. package/integrations/definitions/use-cases/definition-use-cases.js +0 -245
  121. package/integrations/definitions/validate.js +0 -436
  122. package/integrations/definitions/versioning.js +0 -176
  123. package/integrations/definitions/webhooks.js +0 -119
  124. package/integrations/integration-types.js +0 -64
  125. package/integrations/triggers.js +0 -244
  126. package/integrations/use-cases/run-trigger-tick.js +0 -155
  127. package/integrations/use-cases/run-trigger.js +0 -77
  128. package/prisma-postgresql/migrations/20261018000000_add_data_defined_integrations/migration.sql +0 -66
  129. package/prisma-postgresql/migrations/20261019000000_workflow_run_waits/migration.sql +0 -7
  130. package/prisma-postgresql/migrations/20261019120000_definition_workspace/migration.sql +0 -5
@@ -1,373 +0,0 @@
1
- {
2
- "$schema": "https://friggframework.org/schemas/capability-manifest/v0.1.json",
3
- "module": "slack",
4
- "label": "Slack",
5
- "package": "@friggframework/api-module-slack",
6
- "version": "2.0.0",
7
- "auth": "oauth2",
8
- "objects": {
9
- "message": {
10
- "label": "Message",
11
- "fields": [
12
- {
13
- "name": "ts",
14
- "type": "id",
15
- "readOnly": true
16
- },
17
- {
18
- "name": "channel",
19
- "type": "string"
20
- },
21
- {
22
- "name": "text",
23
- "type": "text"
24
- },
25
- {
26
- "name": "user",
27
- "type": "string",
28
- "tag": "record.owner"
29
- },
30
- {
31
- "name": "thread_ts",
32
- "type": "string"
33
- },
34
- {
35
- "name": "blocks",
36
- "type": "json"
37
- },
38
- {
39
- "name": "metadata.event_type",
40
- "type": "string"
41
- },
42
- {
43
- "name": "metadata.event_payload",
44
- "type": "json"
45
- }
46
- ]
47
- },
48
- "channel": {
49
- "label": "Channel",
50
- "fields": [
51
- {
52
- "name": "id",
53
- "type": "id",
54
- "readOnly": true
55
- },
56
- {
57
- "name": "name",
58
- "type": "string",
59
- "tag": "channel.name"
60
- },
61
- {
62
- "name": "is_private",
63
- "type": "boolean"
64
- },
65
- {
66
- "name": "is_archived",
67
- "type": "boolean",
68
- "readOnly": true
69
- },
70
- {
71
- "name": "num_members",
72
- "type": "number",
73
- "readOnly": true
74
- }
75
- ]
76
- },
77
- "user": {
78
- "label": "User",
79
- "fields": [
80
- {
81
- "name": "id",
82
- "type": "id",
83
- "readOnly": true
84
- },
85
- {
86
- "name": "real_name",
87
- "type": "string",
88
- "tag": "person.fullName"
89
- },
90
- {
91
- "name": "profile.display_name",
92
- "type": "string"
93
- },
94
- {
95
- "name": "profile.email",
96
- "type": "email",
97
- "tag": "contact.email"
98
- },
99
- {
100
- "name": "profile.phone",
101
- "type": "phone",
102
- "tag": "contact.phone"
103
- },
104
- {
105
- "name": "tz",
106
- "type": "string",
107
- "tag": "person.timezone"
108
- },
109
- {
110
- "name": "is_bot",
111
- "type": "boolean",
112
- "readOnly": true
113
- }
114
- ]
115
- }
116
- },
117
- "events": {
118
- "interaction.block_actions": {
119
- "delivery": "webhook",
120
- "object": "message",
121
- "description": "Interactivity request (block_actions) from a button in a message the app posted. App-level: Frigg routes it to the installation by team.id; no per-install subscription.",
122
- "payload": {
123
- "type": "block_actions",
124
- "trigger_id": "8171092340291.5283910.ab4c1f",
125
- "team": {
126
- "id": "T09B191G5HA",
127
- "domain": "acme"
128
- },
129
- "user": {
130
- "id": "U04A8KX2P1Q",
131
- "username": "dana",
132
- "name": "dana"
133
- },
134
- "channel": {
135
- "id": "D06QX0B7Z3L",
136
- "name": "directmessage"
137
- },
138
- "message": {
139
- "type": "message",
140
- "ts": "1760800000.001200",
141
- "channel": "D06QX0B7Z3L",
142
- "text": "Due today: Send renewal quote to Acme",
143
- "metadata": {
144
- "event_type": "hubspot_task",
145
- "event_payload": {
146
- "taskId": "94512"
147
- }
148
- }
149
- },
150
- "actions": [
151
- {
152
- "action_id": "frigg.mark-task-done",
153
- "block_id": "frigg",
154
- "value": "94512",
155
- "type": "button",
156
- "action_ts": "1760800042.112233"
157
- }
158
- ]
159
- },
160
- "record": "message",
161
- "idPath": "trigger_id"
162
- },
163
- "app_mention": {
164
- "delivery": "webhook",
165
- "object": "message",
166
- "description": "Events API app_mention. App-level, routed by team_id.",
167
- "payload": {
168
- "token": "example-verification-token",
169
- "team_id": "T09B191G5HA",
170
- "api_app_id": "A0AS07TUM6H",
171
- "event": {
172
- "type": "app_mention",
173
- "user": "U04A8KX2P1Q",
174
- "text": "<@U0LAN0Z89> what closes this week?",
175
- "ts": "1760800100.000300",
176
- "channel": "C08SALES01",
177
- "event_ts": "1760800100.000300"
178
- },
179
- "type": "event_callback",
180
- "event_id": "Ev08MFMKH6",
181
- "event_time": 1760800100
182
- },
183
- "record": "event",
184
- "idPath": "event_id"
185
- }
186
- },
187
- "webhook": {
188
- "scope": "app",
189
- "unwrap": "payload",
190
- "topic": [
191
- "{{body.event.type}}",
192
- "interaction.{{body.type}}"
193
- ],
194
- "eventId": [
195
- "{{body.event_id}}",
196
- "{{body.trigger_id}}"
197
- ],
198
- "account": [
199
- "{{body.team_id}}",
200
- "{{body.team.id}}"
201
- ],
202
- "verify": "verifyWebhookSignature",
203
- "handshake": {
204
- "when": "$.body.type == 'url_verification'",
205
- "status": 200,
206
- "body": {
207
- "challenge": "$.body.challenge"
208
- }
209
- },
210
- "note": "Slack signing secret: v0 HMAC over v0:timestamp:raw body, 5 minutes. Implemented in api-module-library 659b90d; needs the module release that includes it."
211
- },
212
- "capabilities": {
213
- "message.post": {
214
- "kind": "write",
215
- "method": "postMessage",
216
- "label": "chat.postMessage",
217
- "input": {
218
- "channel": {
219
- "type": "string",
220
- "required": true
221
- },
222
- "text": {
223
- "type": "string",
224
- "required": true
225
- },
226
- "blocks": {
227
- "type": "array"
228
- },
229
- "thread_ts": {
230
- "type": "string"
231
- },
232
- "metadata": {
233
- "type": "object"
234
- },
235
- "unfurl_links": {
236
- "type": "boolean"
237
- }
238
- },
239
- "output": "message"
240
- },
241
- "message.update": {
242
- "kind": "write",
243
- "method": "updateMessage",
244
- "label": "chat.update",
245
- "input": {
246
- "channel": {
247
- "type": "string",
248
- "required": true
249
- },
250
- "ts": {
251
- "type": "string",
252
- "required": true
253
- },
254
- "text": {
255
- "type": "string",
256
- "required": true
257
- },
258
- "blocks": {
259
- "type": "array"
260
- }
261
- },
262
- "output": "message"
263
- },
264
- "message.postEphemeral": {
265
- "kind": "write",
266
- "method": "postEphemeral",
267
- "label": "chat.postEphemeral",
268
- "input": {
269
- "channel": {
270
- "type": "string",
271
- "required": true
272
- },
273
- "user": {
274
- "type": "string",
275
- "required": true
276
- },
277
- "text": {
278
- "type": "string",
279
- "required": true
280
- },
281
- "blocks": {
282
- "type": "array"
283
- }
284
- },
285
- "output": "message"
286
- },
287
- "message.permalink": {
288
- "kind": "read",
289
- "method": "getMessagePermalink",
290
- "label": "chat.getPermalink",
291
- "input": {
292
- "channel": {
293
- "type": "string",
294
- "required": true
295
- },
296
- "message_ts": {
297
- "type": "string",
298
- "required": true
299
- }
300
- },
301
- "output": "string"
302
- },
303
- "channel.list": {
304
- "kind": "read",
305
- "method": "listChannels",
306
- "label": "conversations.list",
307
- "input": {
308
- "types": {
309
- "type": "string"
310
- },
311
- "exclude_archived": {
312
- "type": "boolean"
313
- },
314
- "limit": {
315
- "type": "number"
316
- }
317
- },
318
- "output": "channel[]"
319
- },
320
- "user.list": {
321
- "kind": "read",
322
- "method": "listUsers",
323
- "label": "users.list",
324
- "input": {
325
- "limit": {
326
- "type": "number"
327
- },
328
- "cursor": {
329
- "type": "string"
330
- }
331
- },
332
- "output": "user[]",
333
- "args": [
334
- "$rest"
335
- ]
336
- },
337
- "user.lookupByEmail": {
338
- "kind": "read",
339
- "method": "lookupUserByEmail",
340
- "label": "users.lookupByEmail",
341
- "input": {
342
- "email": {
343
- "type": "string",
344
- "required": true
345
- }
346
- },
347
- "output": "user",
348
- "args": [
349
- "email"
350
- ]
351
- }
352
- },
353
- "options": {
354
- "channel": {
355
- "capability": "channel.list",
356
- "label": "#{{item.name}}",
357
- "value": "$.item.id"
358
- },
359
- "user": {
360
- "capability": "user.list",
361
- "label": "{{item.real_name}}",
362
- "value": "$.item.id"
363
- }
364
- },
365
- "ui": {
366
- "placements": [
367
- "message.actions",
368
- "app.home",
369
- "modal"
370
- ],
371
- "renderer": "frigg-slack-blocks"
372
- }
373
- }