@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,378 +0,0 @@
1
- {
2
- "$schema": "https://friggframework.org/schemas/capability-manifest/v0.1.json",
3
- "module": "linear",
4
- "label": "Linear",
5
- "package": "@friggframework/api-module-linear",
6
- "version": "1.1.0",
7
- "auth": "oauth2",
8
- "objects": {
9
- "issue": {
10
- "label": "Issue",
11
- "fields": [
12
- {
13
- "name": "id",
14
- "type": "id",
15
- "readOnly": true
16
- },
17
- {
18
- "name": "identifier",
19
- "type": "string",
20
- "tag": "record.displayId",
21
- "readOnly": true
22
- },
23
- {
24
- "name": "title",
25
- "type": "string",
26
- "tag": "task.title",
27
- "required": true
28
- },
29
- {
30
- "name": "description",
31
- "type": "text",
32
- "tag": "task.description"
33
- },
34
- {
35
- "name": "priority",
36
- "type": "enum",
37
- "tag": "task.priority",
38
- "values": [
39
- 0,
40
- 1,
41
- 2,
42
- 3,
43
- 4
44
- ]
45
- },
46
- {
47
- "name": "state.name",
48
- "type": "string",
49
- "tag": "task.state"
50
- },
51
- {
52
- "name": "state.type",
53
- "type": "enum",
54
- "values": [
55
- "triage",
56
- "backlog",
57
- "unstarted",
58
- "started",
59
- "completed",
60
- "canceled"
61
- ],
62
- "readOnly": true
63
- },
64
- {
65
- "name": "labelIds",
66
- "type": "string[]",
67
- "tag": "record.tags"
68
- },
69
- {
70
- "name": "assignee.email",
71
- "type": "email",
72
- "tag": "record.owner"
73
- },
74
- {
75
- "name": "team.key",
76
- "type": "string",
77
- "readOnly": true
78
- },
79
- {
80
- "name": "attachments[0].url",
81
- "type": "string",
82
- "tag": "record.externalUrl"
83
- },
84
- {
85
- "name": "url",
86
- "type": "string",
87
- "tag": "record.url",
88
- "readOnly": true
89
- },
90
- {
91
- "name": "createdAt",
92
- "type": "datetime",
93
- "tag": "record.createdAt",
94
- "readOnly": true
95
- },
96
- {
97
- "name": "updatedAt",
98
- "type": "datetime",
99
- "tag": "record.updatedAt",
100
- "readOnly": true
101
- }
102
- ],
103
- "sync": {
104
- "id": "id",
105
- "updatedAt": "updatedAt",
106
- "get": {
107
- "capability": "issue.get",
108
- "id": "id"
109
- },
110
- "create": {
111
- "capability": "issue.create"
112
- },
113
- "update": {
114
- "capability": "issue.update",
115
- "id": "id",
116
- "body": "input"
117
- }
118
- }
119
- }
120
- },
121
- "events": {
122
- "issue.created": {
123
- "delivery": "webhook",
124
- "object": "issue",
125
- "description": "OAuth-app webhook configured once on the application; routed by organizationId. No per-install subscription.",
126
- "payload": {
127
- "action": "create",
128
- "type": "Issue",
129
- "createdAt": "2026-10-19T10:01:00.000Z",
130
- "organizationId": "b0c1d2e3-f4a5-4b6c-8d7e-9f0a1b2c3d4e",
131
- "webhookTimestamp": 1760868060000,
132
- "url": "https://linear.app/acme/issue/ENG-142",
133
- "data": {
134
- "id": "5f1a2b3c-4d5e-4f60-8a7b-9c0d1e2f3a4b",
135
- "identifier": "ENG-142",
136
- "title": "Webhook retries double-post comments",
137
- "priority": 2,
138
- "state": {
139
- "name": "Todo",
140
- "type": "unstarted"
141
- },
142
- "team": {
143
- "key": "ENG"
144
- }
145
- }
146
- },
147
- "record": "data",
148
- "match": "Issue.create"
149
- },
150
- "issue.updated": {
151
- "delivery": "webhook",
152
- "object": "issue",
153
- "payload": {
154
- "action": "update",
155
- "type": "Issue",
156
- "createdAt": "2026-10-20T12:00:00.000Z",
157
- "organizationId": "b0c1d2e3-f4a5-4b6c-8d7e-9f0a1b2c3d4e",
158
- "webhookTimestamp": 1760961600000,
159
- "data": {
160
- "id": "5f1a2b3c-4d5e-4f60-8a7b-9c0d1e2f3a4b",
161
- "identifier": "ENG-142",
162
- "title": "Webhook retries double-post comments",
163
- "priority": 2,
164
- "state": {
165
- "name": "In Progress",
166
- "type": "started"
167
- }
168
- },
169
- "updatedFrom": {
170
- "stateId": "1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
171
- }
172
- },
173
- "record": "data",
174
- "match": "Issue.update"
175
- }
176
- },
177
- "webhook": {
178
- "scope": "app",
179
- "topic": "{{body.type}}.{{body.action}}",
180
- "eventId": [
181
- "{{headers.linear-delivery}}",
182
- "{{body.webhookId}}:{{body.webhookTimestamp}}"
183
- ],
184
- "account": "{{body.organizationId}}",
185
- "verify": "verifyWebhookSignature",
186
- "note": "Linear-Signature HMAC of the raw body, webhookTimestamp within 60 s. Implemented in api-module-library 659b90d; needs the module release that includes it."
187
- },
188
- "capabilities": {
189
- "issue.get": {
190
- "kind": "read",
191
- "method": "issue",
192
- "input": {
193
- "id": {
194
- "type": "string",
195
- "required": true
196
- }
197
- },
198
- "output": "issue",
199
- "args": [
200
- "id"
201
- ]
202
- },
203
- "issue.byIdentifier": {
204
- "kind": "read",
205
- "method": "issueByIdentifier",
206
- "input": {
207
- "identifier": {
208
- "type": "string",
209
- "required": true
210
- }
211
- },
212
- "output": "issue",
213
- "args": [
214
- "identifier"
215
- ]
216
- },
217
- "issue.search": {
218
- "kind": "search",
219
- "method": "searchIssues",
220
- "input": {
221
- "teamId": {
222
- "type": "string"
223
- },
224
- "stateType": {
225
- "type": "string"
226
- },
227
- "updatedBefore": {
228
- "type": "string"
229
- },
230
- "first": {
231
- "type": "number"
232
- }
233
- },
234
- "output": "issue[]",
235
- "args": [
236
- "teamId",
237
- "stateType",
238
- "updatedBefore",
239
- "first"
240
- ]
241
- },
242
- "issue.create": {
243
- "kind": "write",
244
- "method": "issueCreate",
245
- "input": {
246
- "teamId": {
247
- "type": "string",
248
- "required": true
249
- },
250
- "title": {
251
- "type": "string",
252
- "required": true
253
- },
254
- "description": {
255
- "type": "string"
256
- },
257
- "priority": {
258
- "type": "number"
259
- },
260
- "stateName": {
261
- "type": "string"
262
- },
263
- "labelIds": {
264
- "type": "array"
265
- }
266
- },
267
- "output": "issue",
268
- "args": [
269
- "teamId",
270
- "title",
271
- "description",
272
- "priority",
273
- "stateName",
274
- "labelIds"
275
- ]
276
- },
277
- "issue.update": {
278
- "kind": "write",
279
- "method": "issueUpdate",
280
- "input": {
281
- "id": {
282
- "type": "string",
283
- "required": true
284
- },
285
- "input": {
286
- "type": "object",
287
- "required": true
288
- }
289
- },
290
- "output": "issue",
291
- "args": [
292
- "id",
293
- "input"
294
- ]
295
- },
296
- "comment.create": {
297
- "kind": "write",
298
- "method": "commentCreate",
299
- "input": {
300
- "issueId": {
301
- "type": "string",
302
- "required": true
303
- },
304
- "body": {
305
- "type": "string",
306
- "required": true
307
- }
308
- },
309
- "output": "comment",
310
- "args": [
311
- "issueId",
312
- "body"
313
- ]
314
- },
315
- "attachment.link": {
316
- "kind": "write",
317
- "method": "attachmentLinkURL",
318
- "input": {
319
- "issueId": {
320
- "type": "string",
321
- "required": true
322
- },
323
- "url": {
324
- "type": "string",
325
- "required": true
326
- },
327
- "title": {
328
- "type": "string"
329
- }
330
- },
331
- "output": "attachment",
332
- "args": [
333
- "issueId",
334
- "url",
335
- "title"
336
- ]
337
- },
338
- "team.list": {
339
- "kind": "read",
340
- "method": "teams",
341
- "input": {},
342
- "output": "team[]",
343
- "args": []
344
- },
345
- "workflowState.list": {
346
- "kind": "read",
347
- "method": "workflowStates",
348
- "input": {
349
- "teamId": {
350
- "type": "string",
351
- "required": true
352
- }
353
- },
354
- "output": "workflowState[]",
355
- "args": [
356
- "teamId"
357
- ]
358
- }
359
- },
360
- "options": {
361
- "team": {
362
- "capability": "team.list",
363
- "label": "{{item.name}} ({{item.key}})",
364
- "value": "$.item.id"
365
- },
366
- "workflowState": {
367
- "capability": "workflowState.list",
368
- "label": "{{item.name}}",
369
- "value": "$.item.name",
370
- "inputs": {
371
- "teamId": {
372
- "type": "string",
373
- "required": true
374
- }
375
- }
376
- }
377
- }
378
- }