@relayfile/adapter-core 0.3.26 → 0.3.28

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 (41) hide show
  1. package/dist/src/cli.js +44 -0
  2. package/dist/src/cli.js.map +1 -1
  3. package/dist/src/index.d.ts +1 -0
  4. package/dist/src/index.d.ts.map +1 -1
  5. package/dist/src/index.js +1 -0
  6. package/dist/src/index.js.map +1 -1
  7. package/dist/src/scope-keys/catalog-generator.d.ts.map +1 -1
  8. package/dist/src/scope-keys/catalog-generator.js +5 -1
  9. package/dist/src/scope-keys/catalog-generator.js.map +1 -1
  10. package/dist/src/triggers/catalog-generator.d.ts.map +1 -1
  11. package/dist/src/triggers/catalog-generator.js +5 -1
  12. package/dist/src/triggers/catalog-generator.js.map +1 -1
  13. package/dist/src/vfs-client/index.d.ts +113 -0
  14. package/dist/src/vfs-client/index.d.ts.map +1 -0
  15. package/dist/src/vfs-client/index.js +172 -0
  16. package/dist/src/vfs-client/index.js.map +1 -0
  17. package/dist/src/writeback-paths/catalog-generator.d.ts +51 -0
  18. package/dist/src/writeback-paths/catalog-generator.d.ts.map +1 -0
  19. package/dist/src/writeback-paths/catalog-generator.js +264 -0
  20. package/dist/src/writeback-paths/catalog-generator.js.map +1 -0
  21. package/dist/src/writeback-paths/catalog.generated.d.ts +470 -0
  22. package/dist/src/writeback-paths/catalog.generated.d.ts.map +1 -0
  23. package/dist/src/writeback-paths/catalog.generated.js +737 -0
  24. package/dist/src/writeback-paths/catalog.generated.js.map +1 -0
  25. package/dist/src/writeback-paths/index.d.ts +3 -0
  26. package/dist/src/writeback-paths/index.d.ts.map +1 -0
  27. package/dist/src/writeback-paths/index.js +3 -0
  28. package/dist/src/writeback-paths/index.js.map +1 -0
  29. package/dist/src/writeback-paths/resolver.d.ts +24 -0
  30. package/dist/src/writeback-paths/resolver.d.ts.map +1 -0
  31. package/dist/src/writeback-paths/resolver.js +59 -0
  32. package/dist/src/writeback-paths/resolver.js.map +1 -0
  33. package/dist/tests/vfs-client/vfs-client.test.d.ts +2 -0
  34. package/dist/tests/vfs-client/vfs-client.test.d.ts.map +1 -0
  35. package/dist/tests/vfs-client/vfs-client.test.js +49 -0
  36. package/dist/tests/vfs-client/vfs-client.test.js.map +1 -0
  37. package/dist/tests/writeback-paths/catalog-generator.test.d.ts +2 -0
  38. package/dist/tests/writeback-paths/catalog-generator.test.d.ts.map +1 -0
  39. package/dist/tests/writeback-paths/catalog-generator.test.js +56 -0
  40. package/dist/tests/writeback-paths/catalog-generator.test.js.map +1 -0
  41. package/package.json +9 -1
@@ -0,0 +1,470 @@
1
+ /**
2
+ * Generated by `adapter-core writeback-paths generate`.
3
+ *
4
+ * Writeback path templates are emitted verbatim from each adapter's
5
+ * `resources.ts` (`{ name, path }`) — the same source the writeback worker's
6
+ * `classifyWrite` routes drafts against. A consumer resolves a concrete draft
7
+ * path with `writebackPath(provider, resource, params)`.
8
+ */
9
+ export declare const WRITEBACK_PATH_CATALOG: {
10
+ readonly asana: {
11
+ readonly projects: readonly [{
12
+ readonly path: "/asana/projects";
13
+ readonly params: readonly [];
14
+ }];
15
+ readonly sections: readonly [{
16
+ readonly path: "/asana/projects/{projectId}/sections";
17
+ readonly params: readonly ["projectId"];
18
+ }, {
19
+ readonly path: "/asana/sections";
20
+ readonly params: readonly [];
21
+ }];
22
+ readonly tasks: readonly [{
23
+ readonly path: "/asana/tasks";
24
+ readonly params: readonly [];
25
+ }];
26
+ };
27
+ readonly "azure-blob": {
28
+ readonly blobs: readonly [{
29
+ readonly path: "/azure-blob/blobs";
30
+ readonly params: readonly [];
31
+ }];
32
+ readonly "event-subscriptions": readonly [{
33
+ readonly path: "/azure-blob/event-subscriptions";
34
+ readonly params: readonly [];
35
+ }];
36
+ };
37
+ readonly box: {
38
+ readonly files: readonly [{
39
+ readonly path: "/box/files";
40
+ readonly params: readonly [];
41
+ }];
42
+ readonly webhooks: readonly [{
43
+ readonly path: "/box/webhooks";
44
+ readonly params: readonly [];
45
+ }];
46
+ };
47
+ readonly clickup: {
48
+ readonly comments: readonly [{
49
+ readonly path: "/clickup/tasks/{taskId}/comments";
50
+ readonly params: readonly ["taskId"];
51
+ }];
52
+ readonly folders: readonly [{
53
+ readonly path: "/clickup/spaces/{spaceId}/folders";
54
+ readonly params: readonly ["spaceId"];
55
+ }];
56
+ readonly lists: readonly [{
57
+ readonly path: "/clickup/folders/{folderId}/lists";
58
+ readonly params: readonly ["folderId"];
59
+ }, {
60
+ readonly path: "/clickup/spaces/{spaceId}/lists";
61
+ readonly params: readonly ["spaceId"];
62
+ }];
63
+ readonly tasks: readonly [{
64
+ readonly path: "/clickup/lists/{listId}/tasks";
65
+ readonly params: readonly ["listId"];
66
+ }];
67
+ };
68
+ readonly confluence: {
69
+ readonly pages: readonly [{
70
+ readonly path: "/confluence/pages";
71
+ readonly params: readonly [];
72
+ }, {
73
+ readonly path: "/confluence/spaces/{spaceIdOrKey}/pages";
74
+ readonly params: readonly ["spaceIdOrKey"];
75
+ }];
76
+ };
77
+ readonly dropbox: {
78
+ readonly files: readonly [{
79
+ readonly path: "/dropbox/files";
80
+ readonly params: readonly [];
81
+ }];
82
+ readonly folders: readonly [{
83
+ readonly path: "/dropbox/folders";
84
+ readonly params: readonly [];
85
+ }];
86
+ readonly "shared-folders": readonly [{
87
+ readonly path: "/dropbox/shared-folders";
88
+ readonly params: readonly [];
89
+ }];
90
+ readonly "shared-links": readonly [{
91
+ readonly path: "/dropbox/shared-links";
92
+ readonly params: readonly [];
93
+ }];
94
+ };
95
+ readonly gcs: {
96
+ readonly notifications: readonly [{
97
+ readonly path: "/gcs/notifications";
98
+ readonly params: readonly [];
99
+ }];
100
+ readonly objects: readonly [{
101
+ readonly path: "/gcs/objects";
102
+ readonly params: readonly [];
103
+ }];
104
+ };
105
+ readonly github: {
106
+ readonly "issue-comments": readonly [{
107
+ readonly path: "/github/repos/{owner}/{repo}/issues/{issueNumber}/comments";
108
+ readonly params: readonly ["owner", "repo", "issueNumber"];
109
+ }];
110
+ readonly issues: readonly [{
111
+ readonly path: "/github/repos/{owner}/{repo}/issues";
112
+ readonly params: readonly ["owner", "repo"];
113
+ }];
114
+ readonly merge: readonly [{
115
+ readonly path: "/github/repos/{owner}/{repo}/pulls/{pullNumber}/merge.json";
116
+ readonly params: readonly ["owner", "repo", "pullNumber"];
117
+ }];
118
+ readonly reviews: readonly [{
119
+ readonly path: "/github/repos/{owner}/{repo}/pulls/{pullNumber}/reviews";
120
+ readonly params: readonly ["owner", "repo", "pullNumber"];
121
+ }];
122
+ };
123
+ readonly gitlab: {
124
+ readonly comments: readonly [{
125
+ readonly path: "/gitlab/projects/{projectPath}/issues/{issueIid}__{slug}/comments";
126
+ readonly params: readonly ["projectPath", "issueIid", "slug"];
127
+ }];
128
+ readonly discussions: readonly [{
129
+ readonly path: "/gitlab/projects/{projectPath}/merge_requests/{mergeRequestIid}__{slug}/discussions";
130
+ readonly params: readonly ["projectPath", "mergeRequestIid", "slug"];
131
+ }];
132
+ };
133
+ readonly gmail: {
134
+ readonly drafts: readonly [{
135
+ readonly path: "/gmail/drafts";
136
+ readonly params: readonly [];
137
+ }];
138
+ readonly threads: readonly [{
139
+ readonly path: "/gmail/threads";
140
+ readonly params: readonly [];
141
+ }];
142
+ readonly watches: readonly [{
143
+ readonly path: "/gmail/watches";
144
+ readonly params: readonly [];
145
+ }];
146
+ };
147
+ readonly "google-calendar": {
148
+ readonly events: readonly [{
149
+ readonly path: "/google-calendar/calendars/{calendarId}/events";
150
+ readonly params: readonly ["calendarId"];
151
+ }];
152
+ };
153
+ readonly "google-drive": {
154
+ readonly channels: readonly [{
155
+ readonly path: "/google-drive/channels";
156
+ readonly params: readonly [];
157
+ }];
158
+ readonly files: readonly [{
159
+ readonly path: "/google-drive/files";
160
+ readonly params: readonly [];
161
+ }];
162
+ };
163
+ readonly granola: {
164
+ readonly folders: readonly [{
165
+ readonly path: "/granola/folders";
166
+ readonly params: readonly [];
167
+ }];
168
+ readonly notes: readonly [{
169
+ readonly path: "/granola/notes";
170
+ readonly params: readonly [];
171
+ }];
172
+ };
173
+ readonly hubspot: {
174
+ readonly companies: readonly [{
175
+ readonly path: "/hubspot/companies";
176
+ readonly params: readonly [];
177
+ }];
178
+ readonly contacts: readonly [{
179
+ readonly path: "/hubspot/contacts";
180
+ readonly params: readonly [];
181
+ }];
182
+ readonly deals: readonly [{
183
+ readonly path: "/hubspot/deals";
184
+ readonly params: readonly [];
185
+ }];
186
+ readonly tickets: readonly [{
187
+ readonly path: "/hubspot/tickets";
188
+ readonly params: readonly [];
189
+ }];
190
+ };
191
+ readonly intercom: {
192
+ readonly companies: readonly [{
193
+ readonly path: "/intercom/companies";
194
+ readonly params: readonly [];
195
+ }];
196
+ readonly contacts: readonly [{
197
+ readonly path: "/intercom/contacts";
198
+ readonly params: readonly [];
199
+ }];
200
+ readonly conversations: readonly [{
201
+ readonly path: "/intercom/conversations";
202
+ readonly params: readonly [];
203
+ }];
204
+ };
205
+ readonly jira: {
206
+ readonly comments: readonly [{
207
+ readonly path: "/jira/issues/{issueIdOrKey}/comments";
208
+ readonly params: readonly ["issueIdOrKey"];
209
+ }];
210
+ readonly issues: readonly [{
211
+ readonly path: "/jira/issues";
212
+ readonly params: readonly [];
213
+ }];
214
+ readonly projects: readonly [{
215
+ readonly path: "/jira/projects";
216
+ readonly params: readonly [];
217
+ }];
218
+ readonly transitions: readonly [{
219
+ readonly path: "/jira/issues/{issueIdOrKey}/transitions";
220
+ readonly params: readonly ["issueIdOrKey"];
221
+ }];
222
+ };
223
+ readonly linear: {
224
+ readonly comments: readonly [{
225
+ readonly path: "/linear/issues/{issueId}/comments";
226
+ readonly params: readonly ["issueId"];
227
+ }];
228
+ readonly issues: readonly [{
229
+ readonly path: "/linear/issues";
230
+ readonly params: readonly [];
231
+ }];
232
+ };
233
+ readonly notion: {
234
+ readonly comments: readonly [{
235
+ readonly path: "/notion/databases/{databaseId}/pages/{pageId}/comments.json";
236
+ readonly params: readonly ["databaseId", "pageId"];
237
+ }, {
238
+ readonly path: "/notion/pages/{pageId}/comments.json";
239
+ readonly params: readonly ["pageId"];
240
+ }];
241
+ readonly content: readonly [{
242
+ readonly path: "/notion/databases/{databaseId}/pages/{pageId}/content.md";
243
+ readonly params: readonly ["databaseId", "pageId"];
244
+ }, {
245
+ readonly path: "/notion/pages/{pageId}/content.md";
246
+ readonly params: readonly ["pageId"];
247
+ }];
248
+ readonly pages: readonly [{
249
+ readonly path: "/notion/databases/{databaseId}/pages";
250
+ readonly params: readonly ["databaseId"];
251
+ }, {
252
+ readonly path: "/notion/databases/{databaseId}/pages/{pageId}.json";
253
+ readonly params: readonly ["databaseId", "pageId"];
254
+ }, {
255
+ readonly path: "/notion/pages/{pageId}.json";
256
+ readonly params: readonly ["pageId"];
257
+ }];
258
+ readonly properties: readonly [{
259
+ readonly path: "/notion/databases/{databaseId}/pages/{pageId}/properties.json";
260
+ readonly params: readonly ["databaseId", "pageId"];
261
+ }, {
262
+ readonly path: "/notion/pages/{pageId}/properties.json";
263
+ readonly params: readonly ["pageId"];
264
+ }];
265
+ };
266
+ readonly onedrive: {
267
+ readonly items: readonly [{
268
+ readonly path: "/onedrive/items";
269
+ readonly params: readonly [];
270
+ }];
271
+ readonly subscriptions: readonly [{
272
+ readonly path: "/onedrive/subscriptions";
273
+ readonly params: readonly [];
274
+ }];
275
+ };
276
+ readonly pipedrive: {
277
+ readonly activities: readonly [{
278
+ readonly path: "/pipedrive/activities";
279
+ readonly params: readonly [];
280
+ }];
281
+ readonly deals: readonly [{
282
+ readonly path: "/pipedrive/deals";
283
+ readonly params: readonly [];
284
+ }];
285
+ readonly organizations: readonly [{
286
+ readonly path: "/pipedrive/organizations";
287
+ readonly params: readonly [];
288
+ }];
289
+ readonly persons: readonly [{
290
+ readonly path: "/pipedrive/persons";
291
+ readonly params: readonly [];
292
+ }];
293
+ };
294
+ readonly postgres: {
295
+ readonly listeners: readonly [{
296
+ readonly path: "/postgres/listeners";
297
+ readonly params: readonly [];
298
+ }];
299
+ readonly rows: readonly [{
300
+ readonly path: "/postgres/rows";
301
+ readonly params: readonly [];
302
+ }];
303
+ };
304
+ readonly reddit: {
305
+ readonly posts: readonly [{
306
+ readonly path: "/reddit/subreddits/{subreddit}/posts";
307
+ readonly params: readonly ["subreddit"];
308
+ }];
309
+ readonly subreddits: readonly [{
310
+ readonly path: "/reddit/subreddits";
311
+ readonly params: readonly [];
312
+ }];
313
+ };
314
+ readonly redis: {
315
+ readonly keys: readonly [{
316
+ readonly path: "/redis/keys";
317
+ readonly params: readonly [];
318
+ }];
319
+ readonly listeners: readonly [{
320
+ readonly path: "/redis/listeners";
321
+ readonly params: readonly [];
322
+ }];
323
+ };
324
+ readonly s3: {
325
+ readonly objects: readonly [{
326
+ readonly path: "/s3/objects";
327
+ readonly params: readonly [];
328
+ }];
329
+ readonly queues: readonly [{
330
+ readonly path: "/s3/queues";
331
+ readonly params: readonly [];
332
+ }];
333
+ };
334
+ readonly salesforce: {
335
+ readonly accounts: readonly [{
336
+ readonly path: "/salesforce/accounts";
337
+ readonly params: readonly [];
338
+ }];
339
+ readonly cases: readonly [{
340
+ readonly path: "/salesforce/cases";
341
+ readonly params: readonly [];
342
+ }];
343
+ readonly contacts: readonly [{
344
+ readonly path: "/salesforce/contacts";
345
+ readonly params: readonly [];
346
+ }];
347
+ readonly leads: readonly [{
348
+ readonly path: "/salesforce/leads";
349
+ readonly params: readonly [];
350
+ }];
351
+ readonly opportunities: readonly [{
352
+ readonly path: "/salesforce/opportunities";
353
+ readonly params: readonly [];
354
+ }];
355
+ };
356
+ readonly sharepoint: {
357
+ readonly items: readonly [{
358
+ readonly path: "/sharepoint/items";
359
+ readonly params: readonly [];
360
+ }];
361
+ readonly subscriptions: readonly [{
362
+ readonly path: "/sharepoint/subscriptions";
363
+ readonly params: readonly [];
364
+ }];
365
+ };
366
+ readonly slack: {
367
+ readonly "direct-messages": readonly [{
368
+ readonly path: "/slack/users/{userId}/messages";
369
+ readonly params: readonly ["userId"];
370
+ }];
371
+ readonly messages: readonly [{
372
+ readonly path: "/slack/channels/{channelId}/messages";
373
+ readonly params: readonly ["channelId"];
374
+ }];
375
+ readonly reactions: readonly [{
376
+ readonly path: "/slack/channels/{channelId}/messages/{messageTs}/reactions";
377
+ readonly params: readonly ["channelId", "messageTs"];
378
+ }];
379
+ readonly replies: readonly [{
380
+ readonly path: "/slack/channels/{channelId}/messages/{messageTs}/replies";
381
+ readonly params: readonly ["channelId", "messageTs"];
382
+ }];
383
+ };
384
+ readonly teams: {
385
+ readonly messages: readonly [{
386
+ readonly path: "/teams/{teamId}/channels/{channelId}/messages";
387
+ readonly params: readonly ["teamId", "channelId"];
388
+ }, {
389
+ readonly path: "/teams/chats/{chatId}/messages";
390
+ readonly params: readonly ["chatId"];
391
+ }];
392
+ readonly replies: readonly [{
393
+ readonly path: "/teams/{teamId}/channels/{channelId}/messages/{messageId}/replies";
394
+ readonly params: readonly ["teamId", "channelId", "messageId"];
395
+ }];
396
+ };
397
+ readonly zendesk: {
398
+ readonly comments: readonly [{
399
+ readonly path: "/zendesk/tickets/{ticketId}/comments";
400
+ readonly params: readonly ["ticketId"];
401
+ }];
402
+ readonly tickets: readonly [{
403
+ readonly path: "/zendesk/tickets";
404
+ readonly params: readonly [];
405
+ }];
406
+ readonly users: readonly [{
407
+ readonly path: "/zendesk/users";
408
+ readonly params: readonly [];
409
+ }];
410
+ };
411
+ };
412
+ export declare const ADAPTERS_WITHOUT_WRITEBACK_PATHS: readonly [{
413
+ readonly packageName: "@relayfile/adapter-airtable";
414
+ readonly packagePath: "packages/airtable";
415
+ readonly provider: "airtable";
416
+ readonly reason: "No resources.ts with writeback path templates";
417
+ }, {
418
+ readonly packageName: "@relayfile/adapter-calendly";
419
+ readonly packagePath: "packages/calendly";
420
+ readonly provider: "calendly";
421
+ readonly reason: "No resources.ts with writeback path templates";
422
+ }, {
423
+ readonly packageName: "@relayfile/adapter-docker-hub";
424
+ readonly packagePath: "packages/docker-hub";
425
+ readonly provider: "docker-hub";
426
+ readonly reason: "No resources.ts with writeback path templates";
427
+ }, {
428
+ readonly packageName: "@relayfile/adapter-fathom";
429
+ readonly packagePath: "packages/fathom";
430
+ readonly provider: "fathom";
431
+ readonly reason: "No resources.ts with writeback path templates";
432
+ }, {
433
+ readonly packageName: "@relayfile/adapter-mailgun";
434
+ readonly packagePath: "packages/mailgun";
435
+ readonly provider: "mailgun";
436
+ readonly reason: "No resources.ts with writeback path templates";
437
+ }, {
438
+ readonly packageName: "@relayfile/adapter-mixpanel";
439
+ readonly packagePath: "packages/mixpanel";
440
+ readonly provider: "mixpanel";
441
+ readonly reason: "No resources.ts with writeback path templates";
442
+ }, {
443
+ readonly packageName: "@relayfile/adapter-segment";
444
+ readonly packagePath: "packages/segment";
445
+ readonly provider: "segment";
446
+ readonly reason: "No resources.ts with writeback path templates";
447
+ }, {
448
+ readonly packageName: "@relayfile/adapter-sendgrid";
449
+ readonly packagePath: "packages/sendgrid";
450
+ readonly provider: "sendgrid";
451
+ readonly reason: "No resources.ts with writeback path templates";
452
+ }, {
453
+ readonly packageName: "@relayfile/adapter-shopify";
454
+ readonly packagePath: "packages/shopify";
455
+ readonly provider: "shopify";
456
+ readonly reason: "No resources.ts with writeback path templates";
457
+ }, {
458
+ readonly packageName: "@relayfile/adapter-stripe";
459
+ readonly packagePath: "packages/stripe";
460
+ readonly provider: "stripe";
461
+ readonly reason: "No resources.ts with writeback path templates";
462
+ }, {
463
+ readonly packageName: "@relayfile/adapter-x";
464
+ readonly packagePath: "packages/x";
465
+ readonly provider: "x";
466
+ readonly reason: "No resources.ts with writeback path templates";
467
+ }];
468
+ export type WritebackProvider = keyof typeof WRITEBACK_PATH_CATALOG;
469
+ export type WritebackResource<P extends WritebackProvider> = keyof (typeof WRITEBACK_PATH_CATALOG)[P];
470
+ //# sourceMappingURL=catalog.generated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.generated.d.ts","sourceRoot":"","sources":["../../../src/writeback-paths/catalog.generated.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAspBlC,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEnC,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,sBAAsB,CAAC;AACpE,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,iBAAiB,IACvD,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC"}