@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,208 +0,0 @@
1
- {
2
- "$schema": "https://friggframework.org/schemas/capability-manifest/v0.1.json",
3
- "module": "notion",
4
- "label": "Notion",
5
- "package": "@friggframework/api-module-notion",
6
- "version": "1.3.0",
7
- "auth": "oauth2",
8
- "objects": {
9
- "page": {
10
- "label": "Page",
11
- "fields": [
12
- {
13
- "name": "id",
14
- "type": "id",
15
- "readOnly": true
16
- },
17
- {
18
- "name": "parent.database_id",
19
- "type": "string"
20
- },
21
- {
22
- "name": "properties",
23
- "type": "json"
24
- },
25
- {
26
- "name": "url",
27
- "type": "string",
28
- "tag": "record.url",
29
- "readOnly": true
30
- },
31
- {
32
- "name": "created_time",
33
- "type": "datetime",
34
- "tag": "record.createdAt",
35
- "readOnly": true
36
- },
37
- {
38
- "name": "last_edited_time",
39
- "type": "datetime",
40
- "tag": "record.updatedAt",
41
- "readOnly": true
42
- },
43
- {
44
- "name": "archived",
45
- "type": "boolean"
46
- }
47
- ]
48
- },
49
- "database": {
50
- "label": "Database",
51
- "fields": [
52
- {
53
- "name": "id",
54
- "type": "id",
55
- "readOnly": true
56
- },
57
- {
58
- "name": "title",
59
- "type": "richText"
60
- },
61
- {
62
- "name": "properties",
63
- "type": "json",
64
- "readOnly": true
65
- },
66
- {
67
- "name": "url",
68
- "type": "string",
69
- "readOnly": true
70
- }
71
- ]
72
- }
73
- },
74
- "events": {
75
- "page.created": {
76
- "delivery": "webhook",
77
- "object": "page",
78
- "description": "Integration webhook (configured once on the public integration); routed by workspace_id.",
79
- "payload": {
80
- "id": "7f2c3b8a-91c5-4b1d-8e0f-2a6f1d3c9e41",
81
- "timestamp": "2026-10-20T15:50:02.000Z",
82
- "workspace_id": "13950b26-c203-4f3b-b97d-93ec06319565",
83
- "subscription_id": "29d75c0d-5546-4414-8459-7b7a92f1fc4b",
84
- "integration_id": "0ef104cd-477e-4c15-a1e4-5c1bd3dbd0a0",
85
- "type": "page.created",
86
- "entity": {
87
- "id": "153104cd-477e-809d-8dc4-ff2d96ae3090",
88
- "type": "page"
89
- },
90
- "data": {
91
- "parent": {
92
- "id": "13950b26-c203-4f3b-b97d-93ec06319565",
93
- "type": "database"
94
- }
95
- }
96
- },
97
- "record": "entity"
98
- }
99
- },
100
- "webhook": {
101
- "scope": "app",
102
- "topic": "{{body.type}}",
103
- "eventId": "{{body.id}}",
104
- "account": "{{body.workspace_id}}",
105
- "verify": "verifyWebhookSignature"
106
- },
107
- "capabilities": {
108
- "page.create": {
109
- "kind": "write",
110
- "method": "createPage",
111
- "input": {
112
- "parent": {
113
- "type": "object",
114
- "required": true
115
- },
116
- "properties": {
117
- "type": "object",
118
- "required": true
119
- },
120
- "children": {
121
- "type": "array"
122
- },
123
- "icon": {
124
- "type": "object"
125
- }
126
- },
127
- "output": "page"
128
- },
129
- "page.get": {
130
- "kind": "read",
131
- "method": "retrievePage",
132
- "input": {
133
- "pageId": {
134
- "type": "string",
135
- "required": true
136
- }
137
- },
138
- "output": "page"
139
- },
140
- "page.update": {
141
- "kind": "write",
142
- "method": "updatePage",
143
- "input": {
144
- "pageId": {
145
- "type": "string",
146
- "required": true
147
- },
148
- "properties": {
149
- "type": "object",
150
- "required": true
151
- }
152
- },
153
- "output": "page"
154
- },
155
- "block.append": {
156
- "kind": "write",
157
- "method": "appendBlockChildren",
158
- "input": {
159
- "blockId": {
160
- "type": "string",
161
- "required": true
162
- },
163
- "children": {
164
- "type": "array",
165
- "required": true
166
- }
167
- },
168
- "output": "block[]"
169
- },
170
- "database.query": {
171
- "kind": "search",
172
- "method": "queryDatabase",
173
- "input": {
174
- "databaseId": {
175
- "type": "string",
176
- "required": true
177
- },
178
- "filter": {
179
- "type": "object"
180
- },
181
- "sorts": {
182
- "type": "array"
183
- },
184
- "pageSize": {
185
- "type": "number"
186
- }
187
- },
188
- "output": "page[]"
189
- },
190
- "database.list": {
191
- "kind": "read",
192
- "method": "searchDatabases",
193
- "input": {
194
- "query": {
195
- "type": "string"
196
- }
197
- },
198
- "output": "database[]"
199
- }
200
- },
201
- "options": {
202
- "database": {
203
- "capability": "database.list",
204
- "label": "{{item.title[0].plain_text}}",
205
- "value": "$.item.id"
206
- }
207
- }
208
- }
@@ -1,511 +0,0 @@
1
- {
2
- "$schema": "https://friggframework.org/schemas/capability-manifest/v0.1.json",
3
- "module": "phone",
4
- "label": "Phone",
5
- "package": "@friggframework/api-module-phone",
6
- "version": "2.1.0",
7
- "auth": "api_key",
8
- "objects": {
9
- "contact": {
10
- "label": "Contact",
11
- "fields": [
12
- {
13
- "name": "id",
14
- "type": "id",
15
- "readOnly": true
16
- },
17
- {
18
- "name": "defaultFields.firstName",
19
- "type": "string",
20
- "tag": "person.givenName"
21
- },
22
- {
23
- "name": "defaultFields.lastName",
24
- "type": "string",
25
- "tag": "person.familyName"
26
- },
27
- {
28
- "name": "defaultFields.company",
29
- "type": "string",
30
- "tag": "organization.name"
31
- },
32
- {
33
- "name": "defaultFields.emails[0].value",
34
- "type": "email",
35
- "tag": "contact.email"
36
- },
37
- {
38
- "name": "defaultFields.phoneNumbers[0].value",
39
- "type": "phone",
40
- "tag": "contact.phone"
41
- },
42
- {
43
- "name": "externalId",
44
- "type": "string",
45
- "tag": "record.externalId"
46
- },
47
- {
48
- "name": "source",
49
- "type": "string"
50
- }
51
- ],
52
- "sync": {
53
- "id": "id",
54
- "updatedAt": "updatedAt",
55
- "list": {
56
- "capability": "contact.list",
57
- "cursor": "pageToken",
58
- "limit": "maxResults",
59
- "items": "data",
60
- "next": "nextPageToken"
61
- },
62
- "get": {
63
- "capability": "contact.get",
64
- "id": "id"
65
- },
66
- "search": {
67
- "capability": "contact.search"
68
- },
69
- "create": {
70
- "capability": "contact.create"
71
- },
72
- "update": {
73
- "capability": "contact.update",
74
- "id": "id"
75
- }
76
- }
77
- },
78
- "call": {
79
- "label": "Call",
80
- "fields": [
81
- {
82
- "name": "id",
83
- "type": "id",
84
- "readOnly": true
85
- },
86
- {
87
- "name": "direction",
88
- "type": "enum",
89
- "values": [
90
- "incoming",
91
- "outgoing"
92
- ]
93
- },
94
- {
95
- "name": "status",
96
- "type": "enum",
97
- "values": [
98
- "completed",
99
- "missed",
100
- "voicemail",
101
- "busy"
102
- ]
103
- },
104
- {
105
- "name": "participants",
106
- "type": "phone[]",
107
- "tag": "contact.phone"
108
- },
109
- {
110
- "name": "duration",
111
- "type": "number"
112
- },
113
- {
114
- "name": "createdAt",
115
- "type": "datetime",
116
- "readOnly": true
117
- },
118
- {
119
- "name": "answeredAt",
120
- "type": "datetime"
121
- },
122
- {
123
- "name": "userId",
124
- "type": "string",
125
- "tag": "record.owner"
126
- }
127
- ]
128
- },
129
- "message": {
130
- "label": "Text message",
131
- "fields": [
132
- {
133
- "name": "id",
134
- "type": "id",
135
- "readOnly": true
136
- },
137
- {
138
- "name": "from",
139
- "type": "phone",
140
- "tag": "contact.phone"
141
- },
142
- {
143
- "name": "to",
144
- "type": "phone[]",
145
- "tag": "contact.phone"
146
- },
147
- {
148
- "name": "text",
149
- "type": "text"
150
- },
151
- {
152
- "name": "direction",
153
- "type": "enum",
154
- "values": [
155
- "incoming",
156
- "outgoing"
157
- ]
158
- },
159
- {
160
- "name": "createdAt",
161
- "type": "datetime"
162
- }
163
- ]
164
- },
165
- "summary": {
166
- "label": "Call summary",
167
- "fields": [
168
- {
169
- "name": "callId",
170
- "type": "id"
171
- },
172
- {
173
- "name": "summary",
174
- "type": "text[]"
175
- },
176
- {
177
- "name": "nextSteps",
178
- "type": "text[]"
179
- }
180
- ]
181
- }
182
- },
183
- "events": {
184
- "call.completed": {
185
- "delivery": "webhook",
186
- "object": "call",
187
- "subscribe": "webhook.create",
188
- "payload": {
189
- "id": "EVc0a1",
190
- "type": "call.completed",
191
- "data": {
192
- "object": {
193
- "id": "AC9x",
194
- "direction": "incoming",
195
- "status": "completed",
196
- "from": "+15125550142",
197
- "to": "+15125550100",
198
- "participants": [
199
- "+15125550142"
200
- ],
201
- "duration": 312,
202
- "userId": "US1",
203
- "answeredAt": "2026-10-18T14:02:00Z",
204
- "completedAt": "2026-10-18T14:07:12Z"
205
- }
206
- }
207
- },
208
- "record": "data.object"
209
- },
210
- "call.missed": {
211
- "delivery": "webhook",
212
- "object": "call",
213
- "subscribe": "webhook.create",
214
- "payload": {
215
- "id": "EVc0a2",
216
- "type": "call.completed",
217
- "data": {
218
- "object": {
219
- "id": "AC9y",
220
- "direction": "incoming",
221
- "status": "missed",
222
- "from": "+15125550142",
223
- "participants": [
224
- "+15125550142"
225
- ],
226
- "userId": "US1",
227
- "createdAt": "2026-10-18T15:00:00Z"
228
- }
229
- }
230
- },
231
- "record": "data.object",
232
- "match": "call.completed",
233
- "when": "$.record.status == 'missed' || $.record.status == 'voicemail'",
234
- "description": "Phone reports a missed call as call.completed with status missed (or voicemail); this event is that subset."
235
- },
236
- "call.summary.completed": {
237
- "delivery": "webhook",
238
- "object": "summary",
239
- "subscribe": "webhook.create",
240
- "payload": {
241
- "id": "EVs01",
242
- "type": "call.summary.completed",
243
- "data": {
244
- "object": {
245
- "callId": "AC9x",
246
- "status": "completed",
247
- "summary": [
248
- "Asked about renewal pricing"
249
- ],
250
- "nextSteps": [
251
- "Send the renewal quote by Friday"
252
- ]
253
- }
254
- }
255
- },
256
- "record": "data.object"
257
- },
258
- "message.received": {
259
- "delivery": "webhook",
260
- "object": "message",
261
- "subscribe": "webhook.create",
262
- "payload": {
263
- "id": "EVm01",
264
- "type": "message.received",
265
- "data": {
266
- "object": {
267
- "id": "ACm1",
268
- "from": "+15125550142",
269
- "to": [
270
- "+15125550100"
271
- ],
272
- "text": "Can we move tomorrow to 3pm?",
273
- "direction": "incoming",
274
- "createdAt": "2026-10-18T16:00:00Z"
275
- }
276
- }
277
- },
278
- "record": "data.object"
279
- },
280
- "contact.updated": {
281
- "delivery": "webhook",
282
- "object": "contact",
283
- "subscribe": "webhook.create",
284
- "payload": {
285
- "id": "EVk01",
286
- "type": "contact.updated",
287
- "data": {
288
- "object": {
289
- "id": "CT7",
290
- "defaultFields": {
291
- "firstName": "Dana",
292
- "phoneNumbers": [
293
- {
294
- "value": "+15125550142"
295
- }
296
- ]
297
- }
298
- }
299
- }
300
- },
301
- "record": "data.object"
302
- }
303
- },
304
- "webhook": {
305
- "scope": "installation",
306
- "topic": "{{body.type}}",
307
- "eventId": "{{body.id}}",
308
- "verify": "verifyWebhookSignature",
309
- "note": "Standard Webhooks (current) or a legacy signature header, chosen by header. Implemented in api-module-library 659b90d; needs the module release that includes it."
310
- },
311
- "capabilities": {
312
- "contact.get": {
313
- "kind": "read",
314
- "method": "getContact",
315
- "input": {
316
- "id": {
317
- "type": "string",
318
- "required": true
319
- }
320
- },
321
- "output": "contact",
322
- "args": [
323
- "id"
324
- ]
325
- },
326
- "contact.search": {
327
- "kind": "search",
328
- "method": "searchContacts",
329
- "input": {
330
- "phone": {
331
- "type": "string"
332
- },
333
- "email": {
334
- "type": "string"
335
- }
336
- },
337
- "output": "contact[]",
338
- "status": "unimplemented",
339
- "note": "Api has no contact search; listContacts filters by externalIds and sources only."
340
- },
341
- "contact.list": {
342
- "kind": "read",
343
- "method": "listContacts",
344
- "input": {
345
- "pageToken": {
346
- "type": "string"
347
- },
348
- "maxResults": {
349
- "type": "number"
350
- }
351
- },
352
- "output": "page<contact>"
353
- },
354
- "contact.create": {
355
- "kind": "write",
356
- "method": "createContact",
357
- "input": {
358
- "defaultFields": {
359
- "type": "object",
360
- "required": true
361
- },
362
- "externalId": {
363
- "type": "string"
364
- },
365
- "source": {
366
- "type": "string"
367
- }
368
- },
369
- "output": "contact"
370
- },
371
- "contact.update": {
372
- "kind": "write",
373
- "method": "updateContact",
374
- "input": {
375
- "id": {
376
- "type": "string",
377
- "required": true
378
- },
379
- "defaultFields": {
380
- "type": "object"
381
- }
382
- },
383
- "output": "contact",
384
- "args": [
385
- "id",
386
- "$rest"
387
- ]
388
- },
389
- "call.list": {
390
- "kind": "read",
391
- "method": "listCalls",
392
- "input": {
393
- "participant": {
394
- "type": "string",
395
- "required": true
396
- },
397
- "maxResults": {
398
- "type": "number"
399
- }
400
- },
401
- "output": "call[]"
402
- },
403
- "call.recording": {
404
- "kind": "read",
405
- "method": "getCallRecordings",
406
- "input": {
407
- "callId": {
408
- "type": "string",
409
- "required": true
410
- }
411
- },
412
- "output": "recording[]",
413
- "args": [
414
- "callId"
415
- ]
416
- },
417
- "message.send": {
418
- "kind": "write",
419
- "method": "sendMessage",
420
- "input": {
421
- "to": {
422
- "type": "array",
423
- "required": true
424
- },
425
- "from": {
426
- "type": "string",
427
- "required": true
428
- },
429
- "content": {
430
- "type": "string",
431
- "required": true
432
- }
433
- },
434
- "output": "message"
435
- },
436
- "message.list": {
437
- "kind": "read",
438
- "method": "listMessages",
439
- "input": {
440
- "participants": {
441
- "type": "array",
442
- "required": true
443
- },
444
- "maxResults": {
445
- "type": "number"
446
- }
447
- },
448
- "output": "message[]"
449
- },
450
- "phoneNumber.list": {
451
- "kind": "read",
452
- "method": "listPhoneNumbers",
453
- "input": {},
454
- "output": "phoneNumber[]"
455
- },
456
- "user.list": {
457
- "kind": "read",
458
- "method": "listUsers",
459
- "input": {},
460
- "output": "user[]"
461
- },
462
- "webhook.create": {
463
- "kind": "subscribe",
464
- "method": "createUnifiedWebhook",
465
- "input": {
466
- "url": {
467
- "type": "string",
468
- "required": true
469
- },
470
- "events": {
471
- "type": "array",
472
- "required": true
473
- }
474
- },
475
- "output": "webhook"
476
- },
477
- "webhook.delete": {
478
- "kind": "delete",
479
- "method": "deleteWebhook",
480
- "input": {
481
- "id": {
482
- "type": "string",
483
- "required": true
484
- }
485
- },
486
- "output": "void",
487
- "args": [
488
- "id"
489
- ]
490
- }
491
- },
492
- "options": {
493
- "phoneNumber": {
494
- "capability": "phoneNumber.list",
495
- "label": "{{item.name}} {{item.number}}",
496
- "value": "$.item.number"
497
- },
498
- "user": {
499
- "capability": "user.list",
500
- "label": "{{item.firstName}} {{item.lastName}}",
501
- "value": "$.item.id"
502
- }
503
- },
504
- "ui": {
505
- "placements": [
506
- "conversation.sidebar",
507
- "contact.panel"
508
- ],
509
- "renderer": "phone-integrations-panel"
510
- }
511
- }