@superdurable/connector-buffer 0.0.0-stage → 0.2.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.
@@ -0,0 +1,814 @@
1
+ {
2
+ "connectorId": "buffer",
3
+ "releaseTag": "connectors/buffer/go/v0.2.0",
4
+ "package": {
5
+ "ecosystem": "npm",
6
+ "name": "@superdurable/connector-buffer",
7
+ "version": "0.2.0"
8
+ },
9
+ "factories": [
10
+ {
11
+ "name": "newCreateIdeaStep",
12
+ "kind": "mutation",
13
+ "operationId": "createIdea",
14
+ "inputType": "CreateIdeaInput",
15
+ "description": "Create a text idea in one organization.",
16
+ "fields": {
17
+ "stepType": "stepType",
18
+ "annotations": "annotations",
19
+ "connectionName": "connectionName",
20
+ "resultAttribute": "resultAttribute"
21
+ },
22
+ "branches": [
23
+ {
24
+ "id": "created",
25
+ "field": "created",
26
+ "optional": false
27
+ },
28
+ {
29
+ "id": "providerRejected",
30
+ "field": "providerRejected",
31
+ "optional": true
32
+ },
33
+ {
34
+ "id": "uncertain",
35
+ "field": "uncertain",
36
+ "optional": true
37
+ },
38
+ {
39
+ "id": "defect",
40
+ "field": "defect",
41
+ "optional": true
42
+ }
43
+ ],
44
+ "inputSchema": {
45
+ "additionalProperties": false,
46
+ "description": "CreateIdeaInput creates an idea in an organization visible to the API key.",
47
+ "properties": {
48
+ "organizationId": {
49
+ "description": "OrganizationID is returned by ListOrganizations.",
50
+ "type": "string"
51
+ },
52
+ "text": {
53
+ "description": "Text is the nonempty idea body.",
54
+ "type": "string"
55
+ },
56
+ "title": {
57
+ "description": "Title is the nonempty idea title.",
58
+ "type": "string"
59
+ }
60
+ },
61
+ "required": [
62
+ "organizationId",
63
+ "text",
64
+ "title"
65
+ ],
66
+ "type": "object"
67
+ }
68
+ },
69
+ {
70
+ "name": "newListIdeasStep",
71
+ "kind": "query",
72
+ "operationId": "listIdeas",
73
+ "inputType": "ListIdeasInput",
74
+ "description": "List one page of idea IDs, titles, and text in an organization.",
75
+ "fields": {
76
+ "stepType": "stepType",
77
+ "annotations": "annotations",
78
+ "connectionName": "connectionName",
79
+ "resultAttribute": "resultAttribute"
80
+ },
81
+ "branches": [
82
+ {
83
+ "id": "listed",
84
+ "field": "listed",
85
+ "optional": false
86
+ },
87
+ {
88
+ "id": "providerRejected",
89
+ "field": "providerRejected",
90
+ "optional": true
91
+ },
92
+ {
93
+ "id": "invalidResponse",
94
+ "field": "invalidResponse",
95
+ "optional": true
96
+ },
97
+ {
98
+ "id": "defect",
99
+ "field": "defect",
100
+ "optional": true
101
+ }
102
+ ],
103
+ "inputSchema": {
104
+ "additionalProperties": false,
105
+ "description": "ListIdeasInput selects one page of ideas in an organization.",
106
+ "properties": {
107
+ "after": {
108
+ "description": "After is an opaque cursor; blank begins at the first page.",
109
+ "type": "string"
110
+ },
111
+ "first": {
112
+ "description": "First is the page size from 1 to 100; zero uses 20.",
113
+ "type": "integer"
114
+ },
115
+ "organizationId": {
116
+ "description": "OrganizationID is returned by ListOrganizations.",
117
+ "type": "string"
118
+ }
119
+ },
120
+ "required": [
121
+ "first",
122
+ "organizationId"
123
+ ],
124
+ "type": "object"
125
+ }
126
+ },
127
+ {
128
+ "name": "newListOrganizationsStep",
129
+ "kind": "query",
130
+ "operationId": "listOrganizations",
131
+ "inputType": "ListOrganizationsInput",
132
+ "description": "List organization IDs and names available to the API key.",
133
+ "fields": {
134
+ "stepType": "stepType",
135
+ "annotations": "annotations",
136
+ "connectionName": "connectionName",
137
+ "resultAttribute": "resultAttribute"
138
+ },
139
+ "branches": [
140
+ {
141
+ "id": "listed",
142
+ "field": "listed",
143
+ "optional": false
144
+ },
145
+ {
146
+ "id": "providerRejected",
147
+ "field": "providerRejected",
148
+ "optional": true
149
+ },
150
+ {
151
+ "id": "invalidResponse",
152
+ "field": "invalidResponse",
153
+ "optional": true
154
+ },
155
+ {
156
+ "id": "defect",
157
+ "field": "defect",
158
+ "optional": true
159
+ }
160
+ ],
161
+ "inputSchema": {
162
+ "additionalProperties": false,
163
+ "description": "ListOrganizationsInput requests organizations available to the API key.",
164
+ "properties": {},
165
+ "type": "object"
166
+ }
167
+ },
168
+ {
169
+ "name": "newListChannelsStep",
170
+ "kind": "query",
171
+ "operationId": "listChannels",
172
+ "inputType": "ListChannelsInput",
173
+ "description": "List channel IDs, names, and services for an organization.",
174
+ "fields": {
175
+ "stepType": "stepType",
176
+ "annotations": "annotations",
177
+ "connectionName": "connectionName",
178
+ "resultAttribute": "resultAttribute"
179
+ },
180
+ "branches": [
181
+ {
182
+ "id": "listed",
183
+ "field": "listed",
184
+ "optional": false
185
+ },
186
+ {
187
+ "id": "providerRejected",
188
+ "field": "providerRejected",
189
+ "optional": true
190
+ },
191
+ {
192
+ "id": "invalidResponse",
193
+ "field": "invalidResponse",
194
+ "optional": true
195
+ },
196
+ {
197
+ "id": "defect",
198
+ "field": "defect",
199
+ "optional": true
200
+ }
201
+ ],
202
+ "inputSchema": {
203
+ "additionalProperties": false,
204
+ "description": "ListChannelsInput selects an organization.",
205
+ "properties": {
206
+ "organizationId": {
207
+ "description": "OrganizationID is returned by ListOrganizations.",
208
+ "type": "string"
209
+ }
210
+ },
211
+ "required": [
212
+ "organizationId"
213
+ ],
214
+ "type": "object"
215
+ }
216
+ },
217
+ {
218
+ "name": "newGetPostStep",
219
+ "kind": "query",
220
+ "operationId": "getPost",
221
+ "inputType": "GetPostInput",
222
+ "description": "Read one post's ID, text, and channel ID.",
223
+ "fields": {
224
+ "stepType": "stepType",
225
+ "annotations": "annotations",
226
+ "connectionName": "connectionName",
227
+ "resultAttribute": "resultAttribute"
228
+ },
229
+ "branches": [
230
+ {
231
+ "id": "found",
232
+ "field": "found",
233
+ "optional": false
234
+ },
235
+ {
236
+ "id": "notFound",
237
+ "field": "notFound",
238
+ "optional": true
239
+ },
240
+ {
241
+ "id": "providerRejected",
242
+ "field": "providerRejected",
243
+ "optional": true
244
+ },
245
+ {
246
+ "id": "invalidResponse",
247
+ "field": "invalidResponse",
248
+ "optional": true
249
+ },
250
+ {
251
+ "id": "defect",
252
+ "field": "defect",
253
+ "optional": true
254
+ }
255
+ ],
256
+ "inputSchema": {
257
+ "additionalProperties": false,
258
+ "description": "GetPostInput selects one Buffer post.",
259
+ "properties": {
260
+ "postId": {
261
+ "description": "PostID is returned by create or list operations.",
262
+ "type": "string"
263
+ }
264
+ },
265
+ "required": [
266
+ "postId"
267
+ ],
268
+ "type": "object"
269
+ }
270
+ },
271
+ {
272
+ "name": "newListPostsStep",
273
+ "kind": "query",
274
+ "operationId": "listPosts",
275
+ "inputType": "ListPostsInput",
276
+ "description": "List a page of post IDs and text for an organization.",
277
+ "fields": {
278
+ "stepType": "stepType",
279
+ "annotations": "annotations",
280
+ "connectionName": "connectionName",
281
+ "resultAttribute": "resultAttribute"
282
+ },
283
+ "branches": [
284
+ {
285
+ "id": "listed",
286
+ "field": "listed",
287
+ "optional": false
288
+ },
289
+ {
290
+ "id": "providerRejected",
291
+ "field": "providerRejected",
292
+ "optional": true
293
+ },
294
+ {
295
+ "id": "invalidResponse",
296
+ "field": "invalidResponse",
297
+ "optional": true
298
+ },
299
+ {
300
+ "id": "defect",
301
+ "field": "defect",
302
+ "optional": true
303
+ }
304
+ ],
305
+ "inputSchema": {
306
+ "additionalProperties": false,
307
+ "description": "ListPostsInput selects a bounded page of organization posts.",
308
+ "properties": {
309
+ "after": {
310
+ "description": "After is an opaque cursor; blank begins at the first page.",
311
+ "type": "string"
312
+ },
313
+ "first": {
314
+ "description": "First is the page size from 1 to 100; zero uses 20.",
315
+ "type": "integer"
316
+ },
317
+ "organizationId": {
318
+ "description": "OrganizationID is returned by ListOrganizations.",
319
+ "type": "string"
320
+ }
321
+ },
322
+ "required": [
323
+ "first",
324
+ "organizationId"
325
+ ],
326
+ "type": "object"
327
+ }
328
+ },
329
+ {
330
+ "name": "newCreatePostStep",
331
+ "kind": "mutation",
332
+ "operationId": "createPost",
333
+ "inputType": "CreatePostInput",
334
+ "description": "Add a text post to one channel queue.",
335
+ "fields": {
336
+ "stepType": "stepType",
337
+ "annotations": "annotations",
338
+ "connectionName": "connectionName",
339
+ "resultAttribute": "resultAttribute"
340
+ },
341
+ "branches": [
342
+ {
343
+ "id": "created",
344
+ "field": "created",
345
+ "optional": false
346
+ },
347
+ {
348
+ "id": "providerRejected",
349
+ "field": "providerRejected",
350
+ "optional": true
351
+ },
352
+ {
353
+ "id": "uncertain",
354
+ "field": "uncertain",
355
+ "optional": true
356
+ },
357
+ {
358
+ "id": "defect",
359
+ "field": "defect",
360
+ "optional": true
361
+ }
362
+ ],
363
+ "inputSchema": {
364
+ "$defs": {
365
+ "PostAsset": {
366
+ "additionalProperties": false,
367
+ "description": "PostAsset references one publicly hosted image, video, or document.",
368
+ "properties": {
369
+ "thumbnailOffsetMs": {
370
+ "description": "ThumbnailOffsetMs selects a video thumbnail frame in milliseconds.",
371
+ "type": "integer"
372
+ },
373
+ "thumbnailUrl": {
374
+ "description": "ThumbnailURL is optional for images and required for documents.",
375
+ "type": "string"
376
+ },
377
+ "title": {
378
+ "description": "Title is required for documents.",
379
+ "type": "string"
380
+ },
381
+ "type": {
382
+ "description": "Type is image, video, or document.",
383
+ "type": "string"
384
+ },
385
+ "url": {
386
+ "description": "URL is a direct public HTTPS file URL without credentials or a query string.",
387
+ "type": "string"
388
+ }
389
+ },
390
+ "required": [
391
+ "type",
392
+ "url"
393
+ ],
394
+ "type": "object"
395
+ }
396
+ },
397
+ "additionalProperties": false,
398
+ "description": "CreatePostInput queues a post with text or public media on a connected channel.",
399
+ "properties": {
400
+ "assets": {
401
+ "description": "Assets are publicly hosted images, videos, or documents.",
402
+ "items": {
403
+ "$ref": "#/$defs/PostAsset"
404
+ },
405
+ "type": "array"
406
+ },
407
+ "channelId": {
408
+ "description": "ChannelID is the target channel ID.",
409
+ "type": "string"
410
+ },
411
+ "text": {
412
+ "description": "Text is post content; at least one asset is required when blank.",
413
+ "type": "string"
414
+ }
415
+ },
416
+ "required": [
417
+ "channelId",
418
+ "text"
419
+ ],
420
+ "type": "object"
421
+ }
422
+ },
423
+ {
424
+ "name": "newCreateScheduledPostStep",
425
+ "kind": "mutation",
426
+ "operationId": "createScheduledPost",
427
+ "inputType": "CreateScheduledPostInput",
428
+ "description": "Create a text post scheduled for a specific UTC time.",
429
+ "fields": {
430
+ "stepType": "stepType",
431
+ "annotations": "annotations",
432
+ "connectionName": "connectionName",
433
+ "resultAttribute": "resultAttribute"
434
+ },
435
+ "branches": [
436
+ {
437
+ "id": "created",
438
+ "field": "created",
439
+ "optional": false
440
+ },
441
+ {
442
+ "id": "providerRejected",
443
+ "field": "providerRejected",
444
+ "optional": true
445
+ },
446
+ {
447
+ "id": "uncertain",
448
+ "field": "uncertain",
449
+ "optional": true
450
+ },
451
+ {
452
+ "id": "defect",
453
+ "field": "defect",
454
+ "optional": true
455
+ }
456
+ ],
457
+ "inputSchema": {
458
+ "$defs": {
459
+ "PostAsset": {
460
+ "additionalProperties": false,
461
+ "description": "PostAsset references one publicly hosted image, video, or document.",
462
+ "properties": {
463
+ "thumbnailOffsetMs": {
464
+ "description": "ThumbnailOffsetMs selects a video thumbnail frame in milliseconds.",
465
+ "type": "integer"
466
+ },
467
+ "thumbnailUrl": {
468
+ "description": "ThumbnailURL is optional for images and required for documents.",
469
+ "type": "string"
470
+ },
471
+ "title": {
472
+ "description": "Title is required for documents.",
473
+ "type": "string"
474
+ },
475
+ "type": {
476
+ "description": "Type is image, video, or document.",
477
+ "type": "string"
478
+ },
479
+ "url": {
480
+ "description": "URL is a direct public HTTPS file URL without credentials or a query string.",
481
+ "type": "string"
482
+ }
483
+ },
484
+ "required": [
485
+ "type",
486
+ "url"
487
+ ],
488
+ "type": "object"
489
+ }
490
+ },
491
+ "additionalProperties": false,
492
+ "description": "CreateScheduledPostInput creates a post at a specific UTC time.",
493
+ "properties": {
494
+ "assets": {
495
+ "description": "Assets are publicly hosted images, videos, or documents.",
496
+ "items": {
497
+ "$ref": "#/$defs/PostAsset"
498
+ },
499
+ "type": "array"
500
+ },
501
+ "channelId": {
502
+ "description": "ChannelID is the connected channel ID.",
503
+ "type": "string"
504
+ },
505
+ "dueAt": {
506
+ "description": "DueAt is the publish time as an RFC 3339 timestamp with a UTC offset.",
507
+ "type": "string"
508
+ },
509
+ "text": {
510
+ "description": "Text is post content; at least one asset is required when blank.",
511
+ "type": "string"
512
+ }
513
+ },
514
+ "required": [
515
+ "channelId",
516
+ "dueAt",
517
+ "text"
518
+ ],
519
+ "type": "object"
520
+ }
521
+ },
522
+ {
523
+ "name": "newPublishPostNowStep",
524
+ "kind": "mutation",
525
+ "operationId": "publishPostNow",
526
+ "inputType": "PublishPostNowInput",
527
+ "description": "Create a text post for immediate publishing.",
528
+ "fields": {
529
+ "stepType": "stepType",
530
+ "annotations": "annotations",
531
+ "connectionName": "connectionName",
532
+ "resultAttribute": "resultAttribute"
533
+ },
534
+ "branches": [
535
+ {
536
+ "id": "created",
537
+ "field": "created",
538
+ "optional": false
539
+ },
540
+ {
541
+ "id": "providerRejected",
542
+ "field": "providerRejected",
543
+ "optional": true
544
+ },
545
+ {
546
+ "id": "uncertain",
547
+ "field": "uncertain",
548
+ "optional": true
549
+ },
550
+ {
551
+ "id": "defect",
552
+ "field": "defect",
553
+ "optional": true
554
+ }
555
+ ],
556
+ "inputSchema": {
557
+ "$defs": {
558
+ "PostAsset": {
559
+ "additionalProperties": false,
560
+ "description": "PostAsset references one publicly hosted image, video, or document.",
561
+ "properties": {
562
+ "thumbnailOffsetMs": {
563
+ "description": "ThumbnailOffsetMs selects a video thumbnail frame in milliseconds.",
564
+ "type": "integer"
565
+ },
566
+ "thumbnailUrl": {
567
+ "description": "ThumbnailURL is optional for images and required for documents.",
568
+ "type": "string"
569
+ },
570
+ "title": {
571
+ "description": "Title is required for documents.",
572
+ "type": "string"
573
+ },
574
+ "type": {
575
+ "description": "Type is image, video, or document.",
576
+ "type": "string"
577
+ },
578
+ "url": {
579
+ "description": "URL is a direct public HTTPS file URL without credentials or a query string.",
580
+ "type": "string"
581
+ }
582
+ },
583
+ "required": [
584
+ "type",
585
+ "url"
586
+ ],
587
+ "type": "object"
588
+ }
589
+ },
590
+ "additionalProperties": false,
591
+ "description": "PublishPostNowInput creates a post for immediate publishing.",
592
+ "properties": {
593
+ "assets": {
594
+ "description": "Assets are publicly hosted images, videos, or documents.",
595
+ "items": {
596
+ "$ref": "#/$defs/PostAsset"
597
+ },
598
+ "type": "array"
599
+ },
600
+ "channelId": {
601
+ "description": "ChannelID is the connected channel ID.",
602
+ "type": "string"
603
+ },
604
+ "text": {
605
+ "description": "Text is post content; at least one asset is required when blank.",
606
+ "type": "string"
607
+ }
608
+ },
609
+ "required": [
610
+ "channelId",
611
+ "text"
612
+ ],
613
+ "type": "object"
614
+ }
615
+ },
616
+ {
617
+ "name": "newEditPostStep",
618
+ "kind": "mutation",
619
+ "operationId": "editPost",
620
+ "inputType": "EditPostInput",
621
+ "description": "Replace one queued post's text.",
622
+ "fields": {
623
+ "stepType": "stepType",
624
+ "annotations": "annotations",
625
+ "connectionName": "connectionName",
626
+ "resultAttribute": "resultAttribute"
627
+ },
628
+ "branches": [
629
+ {
630
+ "id": "updated",
631
+ "field": "updated",
632
+ "optional": false
633
+ },
634
+ {
635
+ "id": "providerRejected",
636
+ "field": "providerRejected",
637
+ "optional": true
638
+ },
639
+ {
640
+ "id": "invalidResponse",
641
+ "field": "invalidResponse",
642
+ "optional": true
643
+ },
644
+ {
645
+ "id": "defect",
646
+ "field": "defect",
647
+ "optional": true
648
+ }
649
+ ],
650
+ "inputSchema": {
651
+ "$defs": {
652
+ "PostAsset": {
653
+ "additionalProperties": false,
654
+ "description": "PostAsset references one publicly hosted image, video, or document.",
655
+ "properties": {
656
+ "thumbnailOffsetMs": {
657
+ "description": "ThumbnailOffsetMs selects a video thumbnail frame in milliseconds.",
658
+ "type": "integer"
659
+ },
660
+ "thumbnailUrl": {
661
+ "description": "ThumbnailURL is optional for images and required for documents.",
662
+ "type": "string"
663
+ },
664
+ "title": {
665
+ "description": "Title is required for documents.",
666
+ "type": "string"
667
+ },
668
+ "type": {
669
+ "description": "Type is image, video, or document.",
670
+ "type": "string"
671
+ },
672
+ "url": {
673
+ "description": "URL is a direct public HTTPS file URL without credentials or a query string.",
674
+ "type": "string"
675
+ }
676
+ },
677
+ "required": [
678
+ "type",
679
+ "url"
680
+ ],
681
+ "type": "object"
682
+ }
683
+ },
684
+ "additionalProperties": false,
685
+ "description": "EditPostInput replaces the text of one Buffer post.",
686
+ "properties": {
687
+ "assets": {
688
+ "description": "Assets replace attached media when nonnil.",
689
+ "items": {
690
+ "$ref": "#/$defs/PostAsset"
691
+ },
692
+ "type": "array"
693
+ },
694
+ "postId": {
695
+ "description": "PostID is the post to edit.",
696
+ "type": "string"
697
+ },
698
+ "text": {
699
+ "description": "Text is replacement content; at least one asset is required when blank.",
700
+ "type": "string"
701
+ }
702
+ },
703
+ "required": [
704
+ "postId",
705
+ "text"
706
+ ],
707
+ "type": "object"
708
+ }
709
+ },
710
+ {
711
+ "name": "newDeletePostStep",
712
+ "kind": "mutation",
713
+ "operationId": "deletePost",
714
+ "inputType": "DeletePostInput",
715
+ "description": "Delete one Buffer post by ID.",
716
+ "fields": {
717
+ "stepType": "stepType",
718
+ "annotations": "annotations",
719
+ "connectionName": "connectionName",
720
+ "resultAttribute": "resultAttribute"
721
+ },
722
+ "branches": [
723
+ {
724
+ "id": "deleted",
725
+ "field": "deleted",
726
+ "optional": false
727
+ },
728
+ {
729
+ "id": "providerRejected",
730
+ "field": "providerRejected",
731
+ "optional": true
732
+ },
733
+ {
734
+ "id": "invalidResponse",
735
+ "field": "invalidResponse",
736
+ "optional": true
737
+ },
738
+ {
739
+ "id": "defect",
740
+ "field": "defect",
741
+ "optional": true
742
+ }
743
+ ],
744
+ "inputSchema": {
745
+ "additionalProperties": false,
746
+ "description": "DeletePostInput selects one post for deletion from Buffer.",
747
+ "properties": {
748
+ "postId": {
749
+ "description": "PostID is the post to delete.",
750
+ "type": "string"
751
+ }
752
+ },
753
+ "required": [
754
+ "postId"
755
+ ],
756
+ "type": "object"
757
+ }
758
+ },
759
+ {
760
+ "name": "newGetChannelStep",
761
+ "kind": "query",
762
+ "operationId": "getChannel",
763
+ "inputType": "GetChannelInput",
764
+ "description": "Return a connected channel's ID, name, and service.",
765
+ "fields": {
766
+ "stepType": "stepType",
767
+ "annotations": "annotations",
768
+ "connectionName": "connectionName",
769
+ "resultAttribute": "resultAttribute"
770
+ },
771
+ "branches": [
772
+ {
773
+ "id": "found",
774
+ "field": "found",
775
+ "optional": false
776
+ },
777
+ {
778
+ "id": "notFound",
779
+ "field": "notFound",
780
+ "optional": true
781
+ },
782
+ {
783
+ "id": "providerRejected",
784
+ "field": "providerRejected",
785
+ "optional": true
786
+ },
787
+ {
788
+ "id": "invalidResponse",
789
+ "field": "invalidResponse",
790
+ "optional": true
791
+ },
792
+ {
793
+ "id": "defect",
794
+ "field": "defect",
795
+ "optional": true
796
+ }
797
+ ],
798
+ "inputSchema": {
799
+ "additionalProperties": false,
800
+ "description": "GetChannelInput selects a connected Buffer channel by opaque ID.",
801
+ "properties": {
802
+ "channelId": {
803
+ "description": "ChannelID is the ID returned by Buffer channel queries.",
804
+ "type": "string"
805
+ }
806
+ },
807
+ "required": [
808
+ "channelId"
809
+ ],
810
+ "type": "object"
811
+ }
812
+ }
813
+ ]
814
+ }