@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,503 +0,0 @@
1
- {
2
- "$schema": "https://friggframework.org/schemas/capability-manifest/v0.1.json",
3
- "module": "klaviyo",
4
- "label": "Klaviyo",
5
- "package": "@friggframework/api-module-klaviyo",
6
- "version": "1.1.0",
7
- "auth": "oauth2",
8
- "objects": {
9
- "profile": {
10
- "label": "Profile",
11
- "fields": [
12
- {
13
- "name": "id",
14
- "type": "id",
15
- "readOnly": true
16
- },
17
- {
18
- "name": "attributes.email",
19
- "type": "email",
20
- "tag": "contact.email"
21
- },
22
- {
23
- "name": "attributes.phone_number",
24
- "type": "phone",
25
- "tag": "contact.phone"
26
- },
27
- {
28
- "name": "attributes.first_name",
29
- "type": "string",
30
- "tag": "person.givenName"
31
- },
32
- {
33
- "name": "attributes.last_name",
34
- "type": "string",
35
- "tag": "person.familyName"
36
- },
37
- {
38
- "name": "attributes.organization",
39
- "type": "string",
40
- "tag": "organization.name"
41
- },
42
- {
43
- "name": "attributes.title",
44
- "type": "string",
45
- "tag": "person.jobTitle"
46
- },
47
- {
48
- "name": "attributes.external_id",
49
- "type": "string",
50
- "tag": "record.externalId"
51
- },
52
- {
53
- "name": "attributes.location.city",
54
- "type": "string",
55
- "tag": "address.locality"
56
- },
57
- {
58
- "name": "attributes.location.region",
59
- "type": "string",
60
- "tag": "address.region"
61
- },
62
- {
63
- "name": "attributes.location.country",
64
- "type": "string",
65
- "tag": "address.country"
66
- },
67
- {
68
- "name": "attributes.location.zip",
69
- "type": "string",
70
- "tag": "address.postalCode"
71
- },
72
- {
73
- "name": "attributes.subscriptions.email.marketing.consent",
74
- "type": "enum",
75
- "tag": "contact.emailConsent",
76
- "values": [
77
- "SUBSCRIBED",
78
- "UNSUBSCRIBED",
79
- "NEVER_SUBSCRIBED"
80
- ],
81
- "readOnly": true
82
- },
83
- {
84
- "name": "attributes.properties.lifetime_value",
85
- "type": "number",
86
- "tag": "customer.lifetimeValue"
87
- },
88
- {
89
- "name": "attributes.properties.shopify_tags",
90
- "type": "string",
91
- "tag": "record.tags"
92
- },
93
- {
94
- "name": "attributes.properties.hubspot_lifecycle_stage",
95
- "type": "string",
96
- "tag": "contact.lifecycleStage"
97
- },
98
- {
99
- "name": "attributes.created",
100
- "type": "datetime",
101
- "tag": "record.createdAt",
102
- "readOnly": true
103
- },
104
- {
105
- "name": "attributes.updated",
106
- "type": "datetime",
107
- "tag": "record.updatedAt",
108
- "readOnly": true
109
- }
110
- ],
111
- "sync": {
112
- "id": "id",
113
- "updatedAt": "attributes.updated",
114
- "list": {
115
- "capability": "profile.list",
116
- "cursor": "pageCursor",
117
- "limit": "pageSize",
118
- "since": "updatedSince",
119
- "items": "data",
120
- "next": "links.next"
121
- },
122
- "get": {
123
- "capability": "profile.get",
124
- "id": "id"
125
- },
126
- "search": {
127
- "capability": "profile.search"
128
- },
129
- "create": {
130
- "capability": "profile.create",
131
- "body": "attributes"
132
- },
133
- "update": {
134
- "capability": "profile.update",
135
- "id": "id",
136
- "body": "attributes"
137
- }
138
- }
139
- },
140
- "list": {
141
- "label": "List",
142
- "fields": [
143
- {
144
- "name": "id",
145
- "type": "id",
146
- "readOnly": true
147
- },
148
- {
149
- "name": "attributes.name",
150
- "type": "string",
151
- "tag": "list.name"
152
- },
153
- {
154
- "name": "attributes.created",
155
- "type": "datetime",
156
- "readOnly": true
157
- }
158
- ]
159
- },
160
- "event": {
161
- "label": "Event",
162
- "fields": [
163
- {
164
- "name": "id",
165
- "type": "id",
166
- "readOnly": true
167
- },
168
- {
169
- "name": "attributes.metric_name",
170
- "type": "string"
171
- },
172
- {
173
- "name": "attributes.properties",
174
- "type": "json"
175
- },
176
- {
177
- "name": "attributes.value",
178
- "type": "number"
179
- },
180
- {
181
- "name": "attributes.time",
182
- "type": "datetime"
183
- },
184
- {
185
- "name": "attributes.unique_id",
186
- "type": "string"
187
- }
188
- ]
189
- }
190
- },
191
- "events": {
192
- "list.subscribed": {
193
- "delivery": "webhook",
194
- "object": "profile",
195
- "subscribe": "webhook.create",
196
- "description": "Webhook topic event:klaviyo.subscribed_to_list. $.record is the profile; the list is in data.attributes.event_properties.",
197
- "payload": {
198
- "id": "01JAEXAMPLE7Q9VK3D6M2N8P4R",
199
- "topic": "event:klaviyo.subscribed_to_list",
200
- "created_at": "2026-10-18T16:02:11Z",
201
- "data": {
202
- "type": "event",
203
- "id": "4vRpBT",
204
- "attributes": {
205
- "metric_name": "Subscribed to List",
206
- "datetime": "2026-10-18T16:02:10Z",
207
- "event_properties": {
208
- "list_id": "Y6nRLr",
209
- "List": "VIP Customers",
210
- "method": "Shopify"
211
- }
212
- },
213
- "profile": {
214
- "type": "profile",
215
- "id": "01HV6N2Y4K9JQ3ZB8XWQ7T5R2M",
216
- "email": "dana.reyes@example.com",
217
- "phone_number": "+15125550142",
218
- "first_name": "Dana",
219
- "last_name": "Reyes",
220
- "organization": "Reyes Coffee Co",
221
- "external_id": "7012345678901"
222
- }
223
- }
224
- },
225
- "record": "data.profile",
226
- "match": "event:klaviyo.subscribed_to_list"
227
- },
228
- "profile.unsubscribed": {
229
- "delivery": "webhook",
230
- "object": "profile",
231
- "subscribe": "webhook.create",
232
- "description": "Webhook topic event:klaviyo.unsubscribed (email marketing). Global unsubscribe, not one list.",
233
- "payload": {
234
- "id": "01JAEXAMPLE7Q9VK3D6M2N8P4R",
235
- "topic": "event:klaviyo.unsubscribed",
236
- "created_at": "2026-10-18T16:02:11Z",
237
- "data": {
238
- "type": "event",
239
- "id": "4vRpBT",
240
- "attributes": {
241
- "metric_name": "Unsubscribed",
242
- "datetime": "2026-10-18T16:02:10Z",
243
- "event_properties": {
244
- "channel": "email",
245
- "method": "Unsubscribe link"
246
- }
247
- },
248
- "profile": {
249
- "type": "profile",
250
- "id": "01HV6N2Y4K9JQ3ZB8XWQ7T5R2M",
251
- "email": "dana.reyes@example.com",
252
- "phone_number": "+15125550142",
253
- "first_name": "Dana",
254
- "last_name": "Reyes",
255
- "organization": "Reyes Coffee Co",
256
- "external_id": "7012345678901"
257
- }
258
- }
259
- },
260
- "record": "data.profile",
261
- "match": "event:klaviyo.unsubscribed"
262
- },
263
- "profile.updated": {
264
- "delivery": "poll",
265
- "object": "profile",
266
- "description": "Polled from GET /api/profiles?filter=greater-than(updated,<cursor>).",
267
- "payload": {
268
- "type": "profile",
269
- "id": "01HV6N2Y4K9JQ3ZB8XWQ7T5R2M",
270
- "attributes": {
271
- "email": "dana.reyes@example.com",
272
- "first_name": "Dana",
273
- "last_name": "Reyes",
274
- "updated": "2026-10-18T17:00:00Z"
275
- }
276
- }
277
- }
278
- },
279
- "webhook": {
280
- "scope": "installation",
281
- "topic": "{{body.topic}}",
282
- "eventId": "{{body.id}}",
283
- "verify": "verifyWebhookSignature"
284
- },
285
- "capabilities": {
286
- "profile.get": {
287
- "kind": "read",
288
- "method": "getProfile",
289
- "input": {
290
- "id": {
291
- "type": "string",
292
- "required": true
293
- },
294
- "additionalFields": {
295
- "type": "array"
296
- }
297
- },
298
- "output": "profile"
299
- },
300
- "profile.search": {
301
- "kind": "search",
302
- "method": "getProfiles",
303
- "input": {
304
- "email": {
305
- "type": "string"
306
- },
307
- "phone_number": {
308
- "type": "string"
309
- },
310
- "external_id": {
311
- "type": "string"
312
- }
313
- },
314
- "output": "profile[]"
315
- },
316
- "profile.list": {
317
- "kind": "read",
318
- "method": "listProfiles",
319
- "input": {
320
- "updatedSince": {
321
- "type": "string"
322
- },
323
- "pageCursor": {
324
- "type": "string"
325
- },
326
- "pageSize": {
327
- "type": "number"
328
- }
329
- },
330
- "output": "page<profile>"
331
- },
332
- "profile.create": {
333
- "kind": "write",
334
- "method": "createProfile",
335
- "input": {
336
- "attributes": {
337
- "type": "object",
338
- "required": true
339
- }
340
- },
341
- "output": "profile"
342
- },
343
- "profile.update": {
344
- "kind": "write",
345
- "method": "updateProfile",
346
- "input": {
347
- "id": {
348
- "type": "string",
349
- "required": true
350
- },
351
- "attributes": {
352
- "type": "object",
353
- "required": true
354
- }
355
- },
356
- "output": "profile"
357
- },
358
- "profile.upsert": {
359
- "kind": "write",
360
- "method": "createOrUpdateProfile",
361
- "input": {
362
- "attributes": {
363
- "type": "object",
364
- "required": true
365
- }
366
- },
367
- "output": "profile"
368
- },
369
- "profile.lists": {
370
- "kind": "read",
371
- "method": "getProfileLists",
372
- "input": {
373
- "id": {
374
- "type": "string",
375
- "required": true
376
- }
377
- },
378
- "output": "list[]"
379
- },
380
- "profile.subscribe": {
381
- "kind": "write",
382
- "method": "subscribeProfiles",
383
- "input": {
384
- "listId": {
385
- "type": "string",
386
- "required": true
387
- },
388
- "email": {
389
- "type": "string"
390
- },
391
- "phoneNumber": {
392
- "type": "string"
393
- },
394
- "channels": {
395
- "type": "array"
396
- }
397
- },
398
- "output": "void"
399
- },
400
- "profile.unsubscribe": {
401
- "kind": "write",
402
- "method": "unsubscribeProfiles",
403
- "input": {
404
- "email": {
405
- "type": "string",
406
- "required": true
407
- },
408
- "listId": {
409
- "type": "string"
410
- }
411
- },
412
- "output": "void"
413
- },
414
- "list.list": {
415
- "kind": "read",
416
- "method": "getLists",
417
- "input": {},
418
- "output": "list[]"
419
- },
420
- "list.addProfiles": {
421
- "kind": "write",
422
- "method": "addProfilesToList",
423
- "input": {
424
- "listId": {
425
- "type": "string",
426
- "required": true
427
- },
428
- "profileIds": {
429
- "type": "array",
430
- "required": true
431
- }
432
- },
433
- "output": "void"
434
- },
435
- "event.create": {
436
- "kind": "write",
437
- "method": "createEvent",
438
- "input": {
439
- "metric": {
440
- "type": "string",
441
- "required": true
442
- },
443
- "profile": {
444
- "type": "object",
445
- "required": true
446
- },
447
- "properties": {
448
- "type": "object"
449
- },
450
- "value": {
451
- "type": "number"
452
- },
453
- "time": {
454
- "type": "string"
455
- },
456
- "uniqueId": {
457
- "type": "string"
458
- }
459
- },
460
- "output": "void"
461
- },
462
- "webhook.create": {
463
- "kind": "subscribe",
464
- "method": "createWebhook",
465
- "input": {
466
- "name": {
467
- "type": "string",
468
- "required": true
469
- },
470
- "endpointUrl": {
471
- "type": "string",
472
- "required": true
473
- },
474
- "topics": {
475
- "type": "array",
476
- "required": true
477
- },
478
- "secretKey": {
479
- "type": "string"
480
- }
481
- },
482
- "output": "webhook"
483
- },
484
- "webhook.delete": {
485
- "kind": "delete",
486
- "method": "deleteWebhook",
487
- "input": {
488
- "id": {
489
- "type": "string",
490
- "required": true
491
- }
492
- },
493
- "output": "void"
494
- }
495
- },
496
- "options": {
497
- "list": {
498
- "capability": "list.list",
499
- "label": "{{item.attributes.name}}",
500
- "value": "$.item.id"
501
- }
502
- }
503
- }