unitpost 0.4.0 → 0.5.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.
@@ -13,6 +13,7 @@ module Unitpost
13
13
  {
14
14
  operation_id: "apiKeys.create",
15
15
  resource: "apiKeys",
16
+ credential: "workspace",
16
17
  method_name: "create",
17
18
  http_method: "POST",
18
19
  path: "/api-keys",
@@ -27,6 +28,7 @@ module Unitpost
27
28
  {
28
29
  operation_id: "apiKeys.delete",
29
30
  resource: "apiKeys",
31
+ credential: "workspace",
30
32
  method_name: "delete",
31
33
  http_method: "DELETE",
32
34
  path: "/api-keys/{id}",
@@ -41,6 +43,7 @@ module Unitpost
41
43
  {
42
44
  operation_id: "apiKeys.list",
43
45
  resource: "apiKeys",
46
+ credential: "workspace",
44
47
  method_name: "list",
45
48
  http_method: "GET",
46
49
  path: "/api-keys",
@@ -52,9 +55,160 @@ module Unitpost
52
55
  is_list: true,
53
56
  list_item_schema: "ApiKey"
54
57
  },
58
+ {
59
+ operation_id: "apiKeys.usage",
60
+ resource: "apiKeys",
61
+ credential: "workspace",
62
+ method_name: "usage",
63
+ http_method: "GET",
64
+ path: "/api-keys/{id}/usage",
65
+ path_params: ["id"],
66
+ query_params: [],
67
+ has_body: false,
68
+ request_schema: nil,
69
+ response_schema: "ApiKeyUsage",
70
+ is_list: false,
71
+ list_item_schema: nil
72
+ },
73
+ {
74
+ operation_id: "branding.get",
75
+ resource: "branding",
76
+ credential: "workspace",
77
+ method_name: "get",
78
+ http_method: "GET",
79
+ path: "/branding",
80
+ path_params: [],
81
+ query_params: [],
82
+ has_body: false,
83
+ request_schema: nil,
84
+ response_schema: "Branding",
85
+ is_list: false,
86
+ list_item_schema: nil
87
+ },
88
+ {
89
+ operation_id: "branding.removeLogo",
90
+ resource: "branding",
91
+ credential: "workspace",
92
+ method_name: "removeLogo",
93
+ http_method: "DELETE",
94
+ path: "/branding/logo",
95
+ path_params: [],
96
+ query_params: [],
97
+ has_body: false,
98
+ request_schema: nil,
99
+ response_schema: "Branding",
100
+ is_list: false,
101
+ list_item_schema: nil
102
+ },
103
+ {
104
+ operation_id: "branding.setLogo",
105
+ resource: "branding",
106
+ credential: "workspace",
107
+ method_name: "setLogo",
108
+ http_method: "PUT",
109
+ path: "/branding/logo",
110
+ path_params: [],
111
+ query_params: [],
112
+ has_body: true,
113
+ request_schema: "ImageUpload",
114
+ response_schema: "Branding",
115
+ is_list: false,
116
+ list_item_schema: nil
117
+ },
118
+ {
119
+ operation_id: "branding.update",
120
+ resource: "branding",
121
+ credential: "workspace",
122
+ method_name: "update",
123
+ http_method: "PATCH",
124
+ path: "/branding",
125
+ path_params: [],
126
+ query_params: [],
127
+ has_body: true,
128
+ request_schema: "BrandingUpdate",
129
+ response_schema: "Branding",
130
+ is_list: false,
131
+ list_item_schema: nil
132
+ },
133
+ {
134
+ operation_id: "brandkits.acceptImport",
135
+ resource: "brandkits",
136
+ credential: "workspace",
137
+ method_name: "acceptImport",
138
+ http_method: "POST",
139
+ path: "/brand-kits/imports/{id}/accept",
140
+ path_params: ["id"],
141
+ query_params: [],
142
+ has_body: true,
143
+ request_schema: "BrandImportAccept",
144
+ response_schema: "BrandImportAccepted",
145
+ is_list: false,
146
+ list_item_schema: nil
147
+ },
148
+ {
149
+ operation_id: "brandkits.addGraphic",
150
+ resource: "brandkits",
151
+ credential: "workspace",
152
+ method_name: "addGraphic",
153
+ http_method: "POST",
154
+ path: "/brand-kits/{id}/graphics",
155
+ path_params: ["id"],
156
+ query_params: [],
157
+ has_body: true,
158
+ request_schema: "BrandKitGraphicAdd",
159
+ response_schema: "BrandKitGraphicAdded",
160
+ is_list: false,
161
+ list_item_schema: nil
162
+ },
163
+ {
164
+ operation_id: "brandkits.cancelImport",
165
+ resource: "brandkits",
166
+ credential: "workspace",
167
+ method_name: "cancelImport",
168
+ http_method: "POST",
169
+ path: "/brand-kits/imports/{id}/cancel",
170
+ path_params: ["id"],
171
+ query_params: [],
172
+ has_body: false,
173
+ request_schema: nil,
174
+ response_schema: "BrandImport",
175
+ is_list: false,
176
+ list_item_schema: nil
177
+ },
178
+ {
179
+ operation_id: "brandkits.create",
180
+ resource: "brandkits",
181
+ credential: "workspace",
182
+ method_name: "create",
183
+ http_method: "POST",
184
+ path: "/brand-kits",
185
+ path_params: [],
186
+ query_params: [],
187
+ has_body: true,
188
+ request_schema: "BrandKitCreate",
189
+ response_schema: "BrandKit",
190
+ is_list: false,
191
+ list_item_schema: nil
192
+ },
193
+ {
194
+ operation_id: "brandkits.delete",
195
+ resource: "brandkits",
196
+ credential: "workspace",
197
+ method_name: "delete",
198
+ http_method: "DELETE",
199
+ path: "/brand-kits/{id}",
200
+ path_params: ["id"],
201
+ query_params: [],
202
+ has_body: false,
203
+ request_schema: nil,
204
+ response_schema: nil,
205
+ is_list: false,
206
+ list_item_schema: nil
207
+ },
55
208
  {
56
209
  operation_id: "brandkits.get",
57
210
  resource: "brandkits",
211
+ credential: "workspace",
58
212
  method_name: "get",
59
213
  http_method: "GET",
60
214
  path: "/brand-kits/{id}",
@@ -66,9 +220,40 @@ module Unitpost
66
220
  is_list: false,
67
221
  list_item_schema: nil
68
222
  },
223
+ {
224
+ operation_id: "brandkits.getImport",
225
+ resource: "brandkits",
226
+ credential: "workspace",
227
+ method_name: "getImport",
228
+ http_method: "GET",
229
+ path: "/brand-kits/imports/{id}",
230
+ path_params: ["id"],
231
+ query_params: [],
232
+ has_body: false,
233
+ request_schema: nil,
234
+ response_schema: "BrandImport",
235
+ is_list: false,
236
+ list_item_schema: nil
237
+ },
238
+ {
239
+ operation_id: "brandkits.import",
240
+ resource: "brandkits",
241
+ credential: "workspace",
242
+ method_name: "import",
243
+ http_method: "POST",
244
+ path: "/brand-kits/imports",
245
+ path_params: [],
246
+ query_params: [],
247
+ has_body: true,
248
+ request_schema: "BrandImportCreate",
249
+ response_schema: "BrandImport",
250
+ is_list: false,
251
+ list_item_schema: nil
252
+ },
69
253
  {
70
254
  operation_id: "brandkits.list",
71
255
  resource: "brandkits",
256
+ credential: "workspace",
72
257
  method_name: "list",
73
258
  http_method: "GET",
74
259
  path: "/brand-kits",
@@ -80,9 +265,55 @@ module Unitpost
80
265
  is_list: false,
81
266
  list_item_schema: nil
82
267
  },
268
+ {
269
+ operation_id: "brandkits.reset",
270
+ resource: "brandkits",
271
+ credential: "workspace",
272
+ method_name: "reset",
273
+ http_method: "POST",
274
+ path: "/brand-kits/{id}/reset",
275
+ path_params: ["id"],
276
+ query_params: [],
277
+ has_body: false,
278
+ request_schema: nil,
279
+ response_schema: "BrandKit",
280
+ is_list: false,
281
+ list_item_schema: nil
282
+ },
283
+ {
284
+ operation_id: "brandkits.setDefault",
285
+ resource: "brandkits",
286
+ credential: "workspace",
287
+ method_name: "setDefault",
288
+ http_method: "POST",
289
+ path: "/brand-kits/{id}/set-default",
290
+ path_params: ["id"],
291
+ query_params: [],
292
+ has_body: false,
293
+ request_schema: nil,
294
+ response_schema: "BrandKit",
295
+ is_list: false,
296
+ list_item_schema: nil
297
+ },
298
+ {
299
+ operation_id: "brandkits.update",
300
+ resource: "brandkits",
301
+ credential: "workspace",
302
+ method_name: "update",
303
+ http_method: "PATCH",
304
+ path: "/brand-kits/{id}",
305
+ path_params: ["id"],
306
+ query_params: [],
307
+ has_body: true,
308
+ request_schema: "BrandKitUpdate",
309
+ response_schema: "BrandKit",
310
+ is_list: false,
311
+ list_item_schema: nil
312
+ },
83
313
  {
84
314
  operation_id: "contactFields.create",
85
315
  resource: "contactFields",
316
+ credential: "workspace",
86
317
  method_name: "create",
87
318
  http_method: "POST",
88
319
  path: "/contact-fields",
@@ -97,6 +328,7 @@ module Unitpost
97
328
  {
98
329
  operation_id: "contactFields.delete",
99
330
  resource: "contactFields",
331
+ credential: "workspace",
100
332
  method_name: "delete",
101
333
  http_method: "DELETE",
102
334
  path: "/contact-fields/{id}",
@@ -111,6 +343,7 @@ module Unitpost
111
343
  {
112
344
  operation_id: "contactFields.get",
113
345
  resource: "contactFields",
346
+ credential: "workspace",
114
347
  method_name: "get",
115
348
  http_method: "GET",
116
349
  path: "/contact-fields/{id}",
@@ -125,6 +358,7 @@ module Unitpost
125
358
  {
126
359
  operation_id: "contactFields.list",
127
360
  resource: "contactFields",
361
+ credential: "workspace",
128
362
  method_name: "list",
129
363
  http_method: "GET",
130
364
  path: "/contact-fields",
@@ -139,6 +373,7 @@ module Unitpost
139
373
  {
140
374
  operation_id: "contactFields.rename",
141
375
  resource: "contactFields",
376
+ credential: "workspace",
142
377
  method_name: "rename",
143
378
  http_method: "POST",
144
379
  path: "/contact-fields/{id}/rename",
@@ -153,6 +388,7 @@ module Unitpost
153
388
  {
154
389
  operation_id: "contactFields.update",
155
390
  resource: "contactFields",
391
+ credential: "workspace",
156
392
  method_name: "update",
157
393
  http_method: "PATCH",
158
394
  path: "/contact-fields/{id}",
@@ -164,9 +400,40 @@ module Unitpost
164
400
  is_list: false,
165
401
  list_item_schema: nil
166
402
  },
403
+ {
404
+ operation_id: "contacts.activity",
405
+ resource: "contacts",
406
+ credential: "workspace",
407
+ method_name: "activity",
408
+ http_method: "GET",
409
+ path: "/contacts/{id}/activity",
410
+ path_params: ["id"],
411
+ query_params: ["limit"],
412
+ has_body: false,
413
+ request_schema: nil,
414
+ response_schema: nil,
415
+ is_list: true,
416
+ list_item_schema: "ContactActivity"
417
+ },
418
+ {
419
+ operation_id: "contacts.addresses",
420
+ resource: "contacts",
421
+ credential: "workspace",
422
+ method_name: "addresses",
423
+ http_method: "GET",
424
+ path: "/contacts/{id}/addresses",
425
+ path_params: ["id"],
426
+ query_params: [],
427
+ has_body: false,
428
+ request_schema: nil,
429
+ response_schema: nil,
430
+ is_list: true,
431
+ list_item_schema: "ContactAddress"
432
+ },
167
433
  {
168
434
  operation_id: "contacts.cancelImport",
169
435
  resource: "contacts",
436
+ credential: "workspace",
170
437
  method_name: "cancelImport",
171
438
  http_method: "POST",
172
439
  path: "/contacts/imports/{id}/cancel",
@@ -181,6 +448,7 @@ module Unitpost
181
448
  {
182
449
  operation_id: "contacts.create",
183
450
  resource: "contacts",
451
+ credential: "workspace",
184
452
  method_name: "create",
185
453
  http_method: "POST",
186
454
  path: "/contacts",
@@ -195,6 +463,7 @@ module Unitpost
195
463
  {
196
464
  operation_id: "contacts.delete",
197
465
  resource: "contacts",
466
+ credential: "workspace",
198
467
  method_name: "delete",
199
468
  http_method: "DELETE",
200
469
  path: "/contacts/{id}",
@@ -206,9 +475,25 @@ module Unitpost
206
475
  is_list: false,
207
476
  list_item_schema: nil
208
477
  },
478
+ {
479
+ operation_id: "contacts.export",
480
+ resource: "contacts",
481
+ credential: "workspace",
482
+ method_name: "export",
483
+ http_method: "POST",
484
+ path: "/contacts/export",
485
+ path_params: [],
486
+ query_params: [],
487
+ has_body: true,
488
+ request_schema: "ContactsExport",
489
+ response_schema: "Job",
490
+ is_list: false,
491
+ list_item_schema: nil
492
+ },
209
493
  {
210
494
  operation_id: "contacts.get",
211
495
  resource: "contacts",
496
+ credential: "workspace",
212
497
  method_name: "get",
213
498
  http_method: "GET",
214
499
  path: "/contacts/{id}",
@@ -223,6 +508,7 @@ module Unitpost
223
508
  {
224
509
  operation_id: "contacts.getImport",
225
510
  resource: "contacts",
511
+ credential: "workspace",
226
512
  method_name: "getImport",
227
513
  http_method: "GET",
228
514
  path: "/contacts/imports/{id}",
@@ -237,6 +523,7 @@ module Unitpost
237
523
  {
238
524
  operation_id: "contacts.import",
239
525
  resource: "contacts",
526
+ credential: "workspace",
240
527
  method_name: "import",
241
528
  http_method: "POST",
242
529
  path: "/contacts/imports",
@@ -251,11 +538,12 @@ module Unitpost
251
538
  {
252
539
  operation_id: "contacts.list",
253
540
  resource: "contacts",
541
+ credential: "workspace",
254
542
  method_name: "list",
255
543
  http_method: "GET",
256
544
  path: "/contacts",
257
545
  path_params: [],
258
- query_params: ["limit", "after", "before"],
546
+ query_params: ["limit", "after", "before", "q", "status", "phone", "segment_id", "segment_subscription"],
259
547
  has_body: false,
260
548
  request_schema: nil,
261
549
  response_schema: nil,
@@ -265,6 +553,7 @@ module Unitpost
265
553
  {
266
554
  operation_id: "contacts.listImports",
267
555
  resource: "contacts",
556
+ credential: "workspace",
268
557
  method_name: "listImports",
269
558
  http_method: "GET",
270
559
  path: "/contacts/imports",
@@ -276,9 +565,40 @@ module Unitpost
276
565
  is_list: true,
277
566
  list_item_schema: "ContactImport"
278
567
  },
568
+ {
569
+ operation_id: "contacts.listSegments",
570
+ resource: "contacts",
571
+ credential: "workspace",
572
+ method_name: "listSegments",
573
+ http_method: "GET",
574
+ path: "/contacts/{id}/segments",
575
+ path_params: ["id"],
576
+ query_params: [],
577
+ has_body: false,
578
+ request_schema: nil,
579
+ response_schema: nil,
580
+ is_list: true,
581
+ list_item_schema: "ContactSegment"
582
+ },
583
+ {
584
+ operation_id: "contacts.retryImport",
585
+ resource: "contacts",
586
+ credential: "workspace",
587
+ method_name: "retryImport",
588
+ http_method: "POST",
589
+ path: "/contacts/imports/{id}/retry",
590
+ path_params: ["id"],
591
+ query_params: [],
592
+ has_body: false,
593
+ request_schema: nil,
594
+ response_schema: "ContactImport",
595
+ is_list: false,
596
+ list_item_schema: nil
597
+ },
279
598
  {
280
599
  operation_id: "contacts.update",
281
600
  resource: "contacts",
601
+ credential: "workspace",
282
602
  method_name: "update",
283
603
  http_method: "PATCH",
284
604
  path: "/contacts/{id}",
@@ -293,6 +613,7 @@ module Unitpost
293
613
  {
294
614
  operation_id: "email.batch",
295
615
  resource: "email",
616
+ credential: "workspace",
296
617
  method_name: "batch",
297
618
  http_method: "POST",
298
619
  path: "/email/batch",
@@ -307,6 +628,7 @@ module Unitpost
307
628
  {
308
629
  operation_id: "email.campaigns.cancel",
309
630
  resource: "email.campaigns",
631
+ credential: "workspace",
310
632
  method_name: "cancel",
311
633
  http_method: "POST",
312
634
  path: "/email/campaigns/{id}/cancel",
@@ -321,6 +643,7 @@ module Unitpost
321
643
  {
322
644
  operation_id: "email.campaigns.create",
323
645
  resource: "email.campaigns",
646
+ credential: "workspace",
324
647
  method_name: "create",
325
648
  http_method: "POST",
326
649
  path: "/email/campaigns",
@@ -335,6 +658,7 @@ module Unitpost
335
658
  {
336
659
  operation_id: "email.campaigns.delete",
337
660
  resource: "email.campaigns",
661
+ credential: "workspace",
338
662
  method_name: "delete",
339
663
  http_method: "DELETE",
340
664
  path: "/email/campaigns/{id}",
@@ -346,9 +670,25 @@ module Unitpost
346
670
  is_list: false,
347
671
  list_item_schema: nil
348
672
  },
673
+ {
674
+ operation_id: "email.campaigns.duplicate",
675
+ resource: "email.campaigns",
676
+ credential: "workspace",
677
+ method_name: "duplicate",
678
+ http_method: "POST",
679
+ path: "/email/campaigns/{id}/duplicate",
680
+ path_params: ["id"],
681
+ query_params: [],
682
+ has_body: true,
683
+ request_schema: "CampaignDuplicate",
684
+ response_schema: "Campaign",
685
+ is_list: false,
686
+ list_item_schema: nil
687
+ },
349
688
  {
350
689
  operation_id: "email.campaigns.get",
351
690
  resource: "email.campaigns",
691
+ credential: "workspace",
352
692
  method_name: "get",
353
693
  http_method: "GET",
354
694
  path: "/email/campaigns/{id}",
@@ -363,20 +703,67 @@ module Unitpost
363
703
  {
364
704
  operation_id: "email.campaigns.list",
365
705
  resource: "email.campaigns",
706
+ credential: "workspace",
366
707
  method_name: "list",
367
708
  http_method: "GET",
368
709
  path: "/email/campaigns",
369
710
  path_params: [],
370
- query_params: ["limit", "after", "before"],
711
+ query_params: ["limit", "after", "before", "archived", "topic_id", "segment_id"],
371
712
  has_body: false,
372
713
  request_schema: nil,
373
714
  response_schema: nil,
374
715
  is_list: true,
375
716
  list_item_schema: "Campaign"
376
717
  },
718
+ {
719
+ operation_id: "email.campaigns.listAffected",
720
+ resource: "email.campaigns",
721
+ credential: "workspace",
722
+ method_name: "listAffected",
723
+ http_method: "GET",
724
+ path: "/email/campaigns/{id}/quality/affected",
725
+ path_params: ["id"],
726
+ query_params: ["limit", "after"],
727
+ has_body: false,
728
+ request_schema: nil,
729
+ response_schema: nil,
730
+ is_list: true,
731
+ list_item_schema: "CampaignAffectedRecipient"
732
+ },
733
+ {
734
+ operation_id: "email.campaigns.listRecipients",
735
+ resource: "email.campaigns",
736
+ credential: "workspace",
737
+ method_name: "listRecipients",
738
+ http_method: "GET",
739
+ path: "/email/campaigns/{id}/recipients",
740
+ path_params: ["id"],
741
+ query_params: ["status", "limit", "after"],
742
+ has_body: false,
743
+ request_schema: nil,
744
+ response_schema: nil,
745
+ is_list: true,
746
+ list_item_schema: "CampaignRecipient"
747
+ },
748
+ {
749
+ operation_id: "email.campaigns.listStats",
750
+ resource: "email.campaigns",
751
+ credential: "workspace",
752
+ method_name: "listStats",
753
+ http_method: "GET",
754
+ path: "/email/campaigns/stats",
755
+ path_params: [],
756
+ query_params: ["ids"],
757
+ has_body: false,
758
+ request_schema: nil,
759
+ response_schema: nil,
760
+ is_list: true,
761
+ list_item_schema: "CampaignStats"
762
+ },
377
763
  {
378
764
  operation_id: "email.campaigns.pause",
379
765
  resource: "email.campaigns",
766
+ credential: "workspace",
380
767
  method_name: "pause",
381
768
  http_method: "POST",
382
769
  path: "/email/campaigns/{id}/pause",
@@ -389,36 +776,69 @@ module Unitpost
389
776
  list_item_schema: nil
390
777
  },
391
778
  {
392
- operation_id: "email.campaigns.reschedule",
779
+ operation_id: "email.campaigns.removeAffected",
393
780
  resource: "email.campaigns",
394
- method_name: "reschedule",
781
+ credential: "workspace",
782
+ method_name: "removeAffected",
395
783
  http_method: "POST",
396
- path: "/email/campaigns/{id}/reschedule",
784
+ path: "/email/campaigns/{id}/quality/remove-affected",
397
785
  path_params: ["id"],
398
786
  query_params: [],
399
- has_body: true,
400
- request_schema: "CampaignReschedule",
401
- response_schema: "Campaign",
787
+ has_body: false,
788
+ request_schema: nil,
789
+ response_schema: "CampaignQualityRemoval",
402
790
  is_list: false,
403
791
  list_item_schema: nil
404
792
  },
405
793
  {
406
- operation_id: "email.campaigns.resume",
794
+ operation_id: "email.campaigns.requestReview",
407
795
  resource: "email.campaigns",
408
- method_name: "resume",
796
+ credential: "workspace",
797
+ method_name: "requestReview",
409
798
  http_method: "POST",
410
- path: "/email/campaigns/{id}/resume",
799
+ path: "/email/campaigns/{id}/quality/request-review",
411
800
  path_params: ["id"],
412
801
  query_params: [],
413
802
  has_body: false,
414
803
  request_schema: nil,
415
- response_schema: "Campaign",
804
+ response_schema: "CampaignReviewRequest",
416
805
  is_list: false,
417
806
  list_item_schema: nil
418
807
  },
419
808
  {
420
- operation_id: "email.campaigns.send",
809
+ operation_id: "email.campaigns.reschedule",
810
+ resource: "email.campaigns",
811
+ credential: "workspace",
812
+ method_name: "reschedule",
813
+ http_method: "POST",
814
+ path: "/email/campaigns/{id}/reschedule",
815
+ path_params: ["id"],
816
+ query_params: [],
817
+ has_body: true,
818
+ request_schema: "CampaignReschedule",
819
+ response_schema: "Campaign",
820
+ is_list: false,
821
+ list_item_schema: nil
822
+ },
823
+ {
824
+ operation_id: "email.campaigns.resume",
825
+ resource: "email.campaigns",
826
+ credential: "workspace",
827
+ method_name: "resume",
828
+ http_method: "POST",
829
+ path: "/email/campaigns/{id}/resume",
830
+ path_params: ["id"],
831
+ query_params: [],
832
+ has_body: false,
833
+ request_schema: nil,
834
+ response_schema: "Campaign",
835
+ is_list: false,
836
+ list_item_schema: nil
837
+ },
838
+ {
839
+ operation_id: "email.campaigns.send",
421
840
  resource: "email.campaigns",
841
+ credential: "workspace",
422
842
  method_name: "send",
423
843
  http_method: "POST",
424
844
  path: "/email/campaigns/{id}/send",
@@ -430,9 +850,40 @@ module Unitpost
430
850
  is_list: false,
431
851
  list_item_schema: nil
432
852
  },
853
+ {
854
+ operation_id: "email.campaigns.stats",
855
+ resource: "email.campaigns",
856
+ credential: "workspace",
857
+ method_name: "stats",
858
+ http_method: "GET",
859
+ path: "/email/campaigns/{id}/stats",
860
+ path_params: ["id"],
861
+ query_params: [],
862
+ has_body: false,
863
+ request_schema: nil,
864
+ response_schema: "CampaignStats",
865
+ is_list: false,
866
+ list_item_schema: nil
867
+ },
868
+ {
869
+ operation_id: "email.campaigns.unschedule",
870
+ resource: "email.campaigns",
871
+ credential: "workspace",
872
+ method_name: "unschedule",
873
+ http_method: "POST",
874
+ path: "/email/campaigns/{id}/unschedule",
875
+ path_params: ["id"],
876
+ query_params: [],
877
+ has_body: false,
878
+ request_schema: nil,
879
+ response_schema: "Campaign",
880
+ is_list: false,
881
+ list_item_schema: nil
882
+ },
433
883
  {
434
884
  operation_id: "email.campaigns.update",
435
885
  resource: "email.campaigns",
886
+ credential: "workspace",
436
887
  method_name: "update",
437
888
  http_method: "PATCH",
438
889
  path: "/email/campaigns/{id}",
@@ -447,6 +898,7 @@ module Unitpost
447
898
  {
448
899
  operation_id: "email.campaigns.validate",
449
900
  resource: "email.campaigns",
901
+ credential: "workspace",
450
902
  method_name: "validate",
451
903
  http_method: "GET",
452
904
  path: "/email/campaigns/{id}/validate",
@@ -461,6 +913,7 @@ module Unitpost
461
913
  {
462
914
  operation_id: "email.cancelBatch",
463
915
  resource: "email",
916
+ credential: "workspace",
464
917
  method_name: "cancelBatch",
465
918
  http_method: "POST",
466
919
  path: "/email/batches/{id}/cancel",
@@ -475,6 +928,7 @@ module Unitpost
475
928
  {
476
929
  operation_id: "email.domains.create",
477
930
  resource: "email.domains",
931
+ credential: "workspace",
478
932
  method_name: "create",
479
933
  http_method: "POST",
480
934
  path: "/email/domains",
@@ -486,9 +940,25 @@ module Unitpost
486
940
  is_list: false,
487
941
  list_item_schema: nil
488
942
  },
943
+ {
944
+ operation_id: "email.domains.createSender",
945
+ resource: "email.domains",
946
+ credential: "workspace",
947
+ method_name: "createSender",
948
+ http_method: "POST",
949
+ path: "/email/senders",
950
+ path_params: [],
951
+ query_params: [],
952
+ has_body: true,
953
+ request_schema: "SenderCreate",
954
+ response_schema: "Sender",
955
+ is_list: false,
956
+ list_item_schema: nil
957
+ },
489
958
  {
490
959
  operation_id: "email.domains.delete",
491
960
  resource: "email.domains",
961
+ credential: "workspace",
492
962
  method_name: "delete",
493
963
  http_method: "DELETE",
494
964
  path: "/email/domains/{id}",
@@ -500,9 +970,25 @@ module Unitpost
500
970
  is_list: false,
501
971
  list_item_schema: nil
502
972
  },
973
+ {
974
+ operation_id: "email.domains.deleteSender",
975
+ resource: "email.domains",
976
+ credential: "workspace",
977
+ method_name: "deleteSender",
978
+ http_method: "DELETE",
979
+ path: "/email/senders/{id}",
980
+ path_params: ["id"],
981
+ query_params: [],
982
+ has_body: false,
983
+ request_schema: nil,
984
+ response_schema: nil,
985
+ is_list: false,
986
+ list_item_schema: nil
987
+ },
503
988
  {
504
989
  operation_id: "email.domains.diagnose",
505
990
  resource: "email.domains",
991
+ credential: "workspace",
506
992
  method_name: "diagnose",
507
993
  http_method: "GET",
508
994
  path: "/email/domains/{id}/diagnose",
@@ -517,6 +1003,7 @@ module Unitpost
517
1003
  {
518
1004
  operation_id: "email.domains.get",
519
1005
  resource: "email.domains",
1006
+ credential: "workspace",
520
1007
  method_name: "get",
521
1008
  http_method: "GET",
522
1009
  path: "/email/domains/{id}",
@@ -528,9 +1015,25 @@ module Unitpost
528
1015
  is_list: false,
529
1016
  list_item_schema: nil
530
1017
  },
1018
+ {
1019
+ operation_id: "email.domains.getSender",
1020
+ resource: "email.domains",
1021
+ credential: "workspace",
1022
+ method_name: "getSender",
1023
+ http_method: "GET",
1024
+ path: "/email/senders/{id}",
1025
+ path_params: ["id"],
1026
+ query_params: [],
1027
+ has_body: false,
1028
+ request_schema: nil,
1029
+ response_schema: "Sender",
1030
+ is_list: false,
1031
+ list_item_schema: nil
1032
+ },
531
1033
  {
532
1034
  operation_id: "email.domains.list",
533
1035
  resource: "email.domains",
1036
+ credential: "workspace",
534
1037
  method_name: "list",
535
1038
  http_method: "GET",
536
1039
  path: "/email/domains",
@@ -542,9 +1045,25 @@ module Unitpost
542
1045
  is_list: true,
543
1046
  list_item_schema: "Domain"
544
1047
  },
1048
+ {
1049
+ operation_id: "email.domains.listSenders",
1050
+ resource: "email.domains",
1051
+ credential: "workspace",
1052
+ method_name: "listSenders",
1053
+ http_method: "GET",
1054
+ path: "/email/senders",
1055
+ path_params: [],
1056
+ query_params: ["limit", "after", "before", "domain_id"],
1057
+ has_body: false,
1058
+ request_schema: nil,
1059
+ response_schema: nil,
1060
+ is_list: true,
1061
+ list_item_schema: "Sender"
1062
+ },
545
1063
  {
546
1064
  operation_id: "email.domains.update",
547
1065
  resource: "email.domains",
1066
+ credential: "workspace",
548
1067
  method_name: "update",
549
1068
  http_method: "PATCH",
550
1069
  path: "/email/domains/{id}",
@@ -556,9 +1075,25 @@ module Unitpost
556
1075
  is_list: false,
557
1076
  list_item_schema: nil
558
1077
  },
1078
+ {
1079
+ operation_id: "email.domains.updateSender",
1080
+ resource: "email.domains",
1081
+ credential: "workspace",
1082
+ method_name: "updateSender",
1083
+ http_method: "PATCH",
1084
+ path: "/email/senders/{id}",
1085
+ path_params: ["id"],
1086
+ query_params: [],
1087
+ has_body: true,
1088
+ request_schema: "SenderUpdate",
1089
+ response_schema: "Sender",
1090
+ is_list: false,
1091
+ list_item_schema: nil
1092
+ },
559
1093
  {
560
1094
  operation_id: "email.domains.verify",
561
1095
  resource: "email.domains",
1096
+ credential: "workspace",
562
1097
  method_name: "verify",
563
1098
  http_method: "POST",
564
1099
  path: "/email/domains/{id}/verify",
@@ -573,6 +1108,7 @@ module Unitpost
573
1108
  {
574
1109
  operation_id: "email.get",
575
1110
  resource: "email",
1111
+ credential: "workspace",
576
1112
  method_name: "get",
577
1113
  http_method: "GET",
578
1114
  path: "/email/{id}",
@@ -587,6 +1123,7 @@ module Unitpost
587
1123
  {
588
1124
  operation_id: "email.getBatch",
589
1125
  resource: "email",
1126
+ credential: "workspace",
590
1127
  method_name: "getBatch",
591
1128
  http_method: "GET",
592
1129
  path: "/email/batches/{id}",
@@ -601,20 +1138,52 @@ module Unitpost
601
1138
  {
602
1139
  operation_id: "email.list",
603
1140
  resource: "email",
1141
+ credential: "workspace",
604
1142
  method_name: "list",
605
1143
  http_method: "GET",
606
1144
  path: "/email",
607
1145
  path_params: [],
608
- query_params: ["limit", "after", "before", "status", "campaign_id", "batch_id", "created_after", "created_before"],
1146
+ query_params: ["limit", "after", "before", "status", "to", "contact_id", "campaign_id", "batch_id", "created_after", "created_before", "q", "source", "outcome"],
609
1147
  has_body: false,
610
1148
  request_schema: nil,
611
1149
  response_schema: nil,
612
1150
  is_list: true,
613
1151
  list_item_schema: "Email"
614
1152
  },
1153
+ {
1154
+ operation_id: "email.listBatches",
1155
+ resource: "email",
1156
+ credential: "workspace",
1157
+ method_name: "listBatches",
1158
+ http_method: "GET",
1159
+ path: "/email/batches",
1160
+ path_params: [],
1161
+ query_params: ["limit", "after", "before"],
1162
+ has_body: false,
1163
+ request_schema: nil,
1164
+ response_schema: nil,
1165
+ is_list: true,
1166
+ list_item_schema: "Batch"
1167
+ },
1168
+ {
1169
+ operation_id: "email.listEvents",
1170
+ resource: "email",
1171
+ credential: "workspace",
1172
+ method_name: "listEvents",
1173
+ http_method: "GET",
1174
+ path: "/email/{id}/events",
1175
+ path_params: ["id"],
1176
+ query_params: ["limit", "after", "before"],
1177
+ has_body: false,
1178
+ request_schema: nil,
1179
+ response_schema: nil,
1180
+ is_list: true,
1181
+ list_item_schema: "EmailEvent"
1182
+ },
615
1183
  {
616
1184
  operation_id: "email.receivedAttachmentUrl",
617
1185
  resource: "email",
1186
+ credential: "workspace",
618
1187
  method_name: "receivedAttachmentUrl",
619
1188
  http_method: "GET",
620
1189
  path: "/email/received/{id}/attachments/{attachmentId}",
@@ -629,6 +1198,7 @@ module Unitpost
629
1198
  {
630
1199
  operation_id: "email.receivedGet",
631
1200
  resource: "email",
1201
+ credential: "workspace",
632
1202
  method_name: "receivedGet",
633
1203
  http_method: "GET",
634
1204
  path: "/email/received/{id}",
@@ -643,20 +1213,52 @@ module Unitpost
643
1213
  {
644
1214
  operation_id: "email.receivedList",
645
1215
  resource: "email",
1216
+ credential: "workspace",
646
1217
  method_name: "receivedList",
647
1218
  http_method: "GET",
648
1219
  path: "/email/received",
649
1220
  path_params: [],
650
- query_params: ["limit", "after", "before"],
1221
+ query_params: ["limit", "after", "before", "to", "thread_id", "created_after", "created_before"],
651
1222
  has_body: false,
652
1223
  request_schema: nil,
653
1224
  response_schema: nil,
654
1225
  is_list: true,
655
1226
  list_item_schema: "ReceivedEmailSummary"
656
1227
  },
1228
+ {
1229
+ operation_id: "email.receivedRaw",
1230
+ resource: "email",
1231
+ credential: "workspace",
1232
+ method_name: "receivedRaw",
1233
+ http_method: "GET",
1234
+ path: "/email/received/{id}/raw",
1235
+ path_params: ["id"],
1236
+ query_params: [],
1237
+ has_body: false,
1238
+ request_schema: nil,
1239
+ response_schema: "ReceivedEmailRaw",
1240
+ is_list: false,
1241
+ list_item_schema: nil
1242
+ },
1243
+ {
1244
+ operation_id: "email.retry",
1245
+ resource: "email",
1246
+ credential: "workspace",
1247
+ method_name: "retry",
1248
+ http_method: "POST",
1249
+ path: "/email/{id}/retry",
1250
+ path_params: ["id"],
1251
+ query_params: [],
1252
+ has_body: false,
1253
+ request_schema: nil,
1254
+ response_schema: "Email",
1255
+ is_list: false,
1256
+ list_item_schema: nil
1257
+ },
657
1258
  {
658
1259
  operation_id: "email.send",
659
1260
  resource: "email",
1261
+ credential: "workspace",
660
1262
  method_name: "send",
661
1263
  http_method: "POST",
662
1264
  path: "/email",
@@ -671,11 +1273,12 @@ module Unitpost
671
1273
  {
672
1274
  operation_id: "email.stats",
673
1275
  resource: "email",
1276
+ credential: "workspace",
674
1277
  method_name: "stats",
675
1278
  http_method: "GET",
676
1279
  path: "/email/stats",
677
1280
  path_params: [],
678
- query_params: ["days"],
1281
+ query_params: ["days", "from", "to", "grain", "tz", "domain_id"],
679
1282
  has_body: false,
680
1283
  request_schema: nil,
681
1284
  response_schema: "EmailStats",
@@ -685,6 +1288,7 @@ module Unitpost
685
1288
  {
686
1289
  operation_id: "email.templates.create",
687
1290
  resource: "email.templates",
1291
+ credential: "workspace",
688
1292
  method_name: "create",
689
1293
  http_method: "POST",
690
1294
  path: "/email/templates",
@@ -699,6 +1303,7 @@ module Unitpost
699
1303
  {
700
1304
  operation_id: "email.templates.delete",
701
1305
  resource: "email.templates",
1306
+ credential: "workspace",
702
1307
  method_name: "delete",
703
1308
  http_method: "DELETE",
704
1309
  path: "/email/templates/{id}",
@@ -710,9 +1315,40 @@ module Unitpost
710
1315
  is_list: false,
711
1316
  list_item_schema: nil
712
1317
  },
1318
+ {
1319
+ operation_id: "email.templates.duplicate",
1320
+ resource: "email.templates",
1321
+ credential: "workspace",
1322
+ method_name: "duplicate",
1323
+ http_method: "POST",
1324
+ path: "/email/templates/{id}/duplicate",
1325
+ path_params: ["id"],
1326
+ query_params: [],
1327
+ has_body: true,
1328
+ request_schema: "TemplateDuplicate",
1329
+ response_schema: "Template",
1330
+ is_list: false,
1331
+ list_item_schema: nil
1332
+ },
1333
+ {
1334
+ operation_id: "email.templates.fromLibrary",
1335
+ resource: "email.templates",
1336
+ credential: "workspace",
1337
+ method_name: "fromLibrary",
1338
+ http_method: "POST",
1339
+ path: "/email/templates/from-library",
1340
+ path_params: [],
1341
+ query_params: [],
1342
+ has_body: true,
1343
+ request_schema: "TemplateFromLibrary",
1344
+ response_schema: "Template",
1345
+ is_list: false,
1346
+ list_item_schema: nil
1347
+ },
713
1348
  {
714
1349
  operation_id: "email.templates.get",
715
1350
  resource: "email.templates",
1351
+ credential: "workspace",
716
1352
  method_name: "get",
717
1353
  http_method: "GET",
718
1354
  path: "/email/templates/{id}",
@@ -727,6 +1363,7 @@ module Unitpost
727
1363
  {
728
1364
  operation_id: "email.templates.list",
729
1365
  resource: "email.templates",
1366
+ credential: "workspace",
730
1367
  method_name: "list",
731
1368
  http_method: "GET",
732
1369
  path: "/email/templates",
@@ -738,9 +1375,55 @@ module Unitpost
738
1375
  is_list: true,
739
1376
  list_item_schema: "Template"
740
1377
  },
1378
+ {
1379
+ operation_id: "email.templates.listVersions",
1380
+ resource: "email.templates",
1381
+ credential: "workspace",
1382
+ method_name: "listVersions",
1383
+ http_method: "GET",
1384
+ path: "/email/templates/{id}/versions",
1385
+ path_params: ["id"],
1386
+ query_params: ["limit", "after"],
1387
+ has_body: false,
1388
+ request_schema: nil,
1389
+ response_schema: nil,
1390
+ is_list: true,
1391
+ list_item_schema: "TemplateVersion"
1392
+ },
1393
+ {
1394
+ operation_id: "email.templates.render",
1395
+ resource: "email.templates",
1396
+ credential: "workspace",
1397
+ method_name: "render",
1398
+ http_method: "POST",
1399
+ path: "/email/templates/{id}/render",
1400
+ path_params: ["id"],
1401
+ query_params: [],
1402
+ has_body: true,
1403
+ request_schema: "TemplateRenderInput",
1404
+ response_schema: "TemplateRender",
1405
+ is_list: false,
1406
+ list_item_schema: nil
1407
+ },
1408
+ {
1409
+ operation_id: "email.templates.restoreVersion",
1410
+ resource: "email.templates",
1411
+ credential: "workspace",
1412
+ method_name: "restoreVersion",
1413
+ http_method: "POST",
1414
+ path: "/email/templates/{id}/versions/{version}/restore",
1415
+ path_params: ["id", "version"],
1416
+ query_params: [],
1417
+ has_body: false,
1418
+ request_schema: nil,
1419
+ response_schema: "Template",
1420
+ is_list: false,
1421
+ list_item_schema: nil
1422
+ },
741
1423
  {
742
1424
  operation_id: "email.templates.testSend",
743
1425
  resource: "email.templates",
1426
+ credential: "workspace",
744
1427
  method_name: "testSend",
745
1428
  http_method: "POST",
746
1429
  path: "/email/templates/{id}/test-send",
@@ -755,6 +1438,7 @@ module Unitpost
755
1438
  {
756
1439
  operation_id: "email.templates.update",
757
1440
  resource: "email.templates",
1441
+ credential: "workspace",
758
1442
  method_name: "update",
759
1443
  http_method: "PATCH",
760
1444
  path: "/email/templates/{id}",
@@ -766,9 +1450,85 @@ module Unitpost
766
1450
  is_list: false,
767
1451
  list_item_schema: nil
768
1452
  },
1453
+ {
1454
+ operation_id: "email.templates.usage",
1455
+ resource: "email.templates",
1456
+ credential: "workspace",
1457
+ method_name: "usage",
1458
+ http_method: "GET",
1459
+ path: "/email/templates/{id}/usage",
1460
+ path_params: ["id"],
1461
+ query_params: [],
1462
+ has_body: false,
1463
+ request_schema: nil,
1464
+ response_schema: "TemplateUsage",
1465
+ is_list: false,
1466
+ list_item_schema: nil
1467
+ },
1468
+ {
1469
+ operation_id: "email.threads.delete",
1470
+ resource: "email.threads",
1471
+ credential: "workspace",
1472
+ method_name: "delete",
1473
+ http_method: "DELETE",
1474
+ path: "/email/threads/{id}",
1475
+ path_params: ["id"],
1476
+ query_params: [],
1477
+ has_body: false,
1478
+ request_schema: nil,
1479
+ response_schema: "EmailThreadDeleted",
1480
+ is_list: false,
1481
+ list_item_schema: nil
1482
+ },
1483
+ {
1484
+ operation_id: "email.threads.get",
1485
+ resource: "email.threads",
1486
+ credential: "workspace",
1487
+ method_name: "get",
1488
+ http_method: "GET",
1489
+ path: "/email/threads/{id}",
1490
+ path_params: ["id"],
1491
+ query_params: ["limit", "before"],
1492
+ has_body: false,
1493
+ request_schema: nil,
1494
+ response_schema: "EmailThreadDetail",
1495
+ is_list: false,
1496
+ list_item_schema: nil
1497
+ },
1498
+ {
1499
+ operation_id: "email.threads.list",
1500
+ resource: "email.threads",
1501
+ credential: "workspace",
1502
+ method_name: "list",
1503
+ http_method: "GET",
1504
+ path: "/email/threads",
1505
+ path_params: [],
1506
+ query_params: ["q", "limit", "after"],
1507
+ has_body: false,
1508
+ request_schema: nil,
1509
+ response_schema: nil,
1510
+ is_list: true,
1511
+ list_item_schema: "EmailThread"
1512
+ },
1513
+ {
1514
+ operation_id: "email.threads.reply",
1515
+ resource: "email.threads",
1516
+ credential: "workspace",
1517
+ method_name: "reply",
1518
+ http_method: "POST",
1519
+ path: "/email/threads/{id}/reply",
1520
+ path_params: ["id"],
1521
+ query_params: [],
1522
+ has_body: true,
1523
+ request_schema: "EmailThreadReplyRequest",
1524
+ response_schema: "EmailThreadReplyResult",
1525
+ is_list: false,
1526
+ list_item_schema: nil
1527
+ },
769
1528
  {
770
1529
  operation_id: "email.topics.create",
771
1530
  resource: "email.topics",
1531
+ credential: "workspace",
772
1532
  method_name: "create",
773
1533
  http_method: "POST",
774
1534
  path: "/email/topics",
@@ -783,6 +1543,7 @@ module Unitpost
783
1543
  {
784
1544
  operation_id: "email.topics.delete",
785
1545
  resource: "email.topics",
1546
+ credential: "workspace",
786
1547
  method_name: "delete",
787
1548
  http_method: "DELETE",
788
1549
  path: "/email/topics/{id}",
@@ -797,6 +1558,7 @@ module Unitpost
797
1558
  {
798
1559
  operation_id: "email.topics.get",
799
1560
  resource: "email.topics",
1561
+ credential: "workspace",
800
1562
  method_name: "get",
801
1563
  http_method: "GET",
802
1564
  path: "/email/topics/{id}",
@@ -811,6 +1573,7 @@ module Unitpost
811
1573
  {
812
1574
  operation_id: "email.topics.list",
813
1575
  resource: "email.topics",
1576
+ credential: "workspace",
814
1577
  method_name: "list",
815
1578
  http_method: "GET",
816
1579
  path: "/email/topics",
@@ -825,6 +1588,7 @@ module Unitpost
825
1588
  {
826
1589
  operation_id: "email.topics.listTopics",
827
1590
  resource: "email.topics",
1591
+ credential: "workspace",
828
1592
  method_name: "listTopics",
829
1593
  http_method: "GET",
830
1594
  path: "/contacts/{id}/topics",
@@ -836,9 +1600,25 @@ module Unitpost
836
1600
  is_list: true,
837
1601
  list_item_schema: "ContactTopic"
838
1602
  },
1603
+ {
1604
+ operation_id: "email.topics.optOut",
1605
+ resource: "email.topics",
1606
+ credential: "workspace",
1607
+ method_name: "optOut",
1608
+ http_method: "POST",
1609
+ path: "/email/topics/{id}/opt-out",
1610
+ path_params: ["id"],
1611
+ query_params: [],
1612
+ has_body: true,
1613
+ request_schema: "TopicOptOut",
1614
+ response_schema: "Job",
1615
+ is_list: false,
1616
+ list_item_schema: nil
1617
+ },
839
1618
  {
840
1619
  operation_id: "email.topics.setTopic",
841
1620
  resource: "email.topics",
1621
+ credential: "workspace",
842
1622
  method_name: "setTopic",
843
1623
  http_method: "POST",
844
1624
  path: "/contacts/{id}/topics",
@@ -853,6 +1633,7 @@ module Unitpost
853
1633
  {
854
1634
  operation_id: "email.topics.update",
855
1635
  resource: "email.topics",
1636
+ credential: "workspace",
856
1637
  method_name: "update",
857
1638
  http_method: "PATCH",
858
1639
  path: "/email/topics/{id}",
@@ -864,9 +1645,25 @@ module Unitpost
864
1645
  is_list: false,
865
1646
  list_item_schema: nil
866
1647
  },
1648
+ {
1649
+ operation_id: "email.topics.updateTopics",
1650
+ resource: "email.topics",
1651
+ credential: "workspace",
1652
+ method_name: "updateTopics",
1653
+ http_method: "PATCH",
1654
+ path: "/contacts/{id}/topics",
1655
+ path_params: ["id"],
1656
+ query_params: [],
1657
+ has_body: true,
1658
+ request_schema: "ContactTopicsUpdate",
1659
+ response_schema: "ContactTopicList",
1660
+ is_list: false,
1661
+ list_item_schema: nil
1662
+ },
867
1663
  {
868
1664
  operation_id: "email.update",
869
1665
  resource: "email",
1666
+ credential: "workspace",
870
1667
  method_name: "update",
871
1668
  http_method: "PATCH",
872
1669
  path: "/email/{id}",
@@ -878,9 +1675,100 @@ module Unitpost
878
1675
  is_list: false,
879
1676
  list_item_schema: nil
880
1677
  },
1678
+ {
1679
+ operation_id: "files.create",
1680
+ resource: "files",
1681
+ credential: "workspace",
1682
+ method_name: "create",
1683
+ http_method: "POST",
1684
+ path: "/files",
1685
+ path_params: [],
1686
+ query_params: [],
1687
+ has_body: true,
1688
+ request_schema: "FileCreate",
1689
+ response_schema: "File",
1690
+ is_list: false,
1691
+ list_item_schema: nil
1692
+ },
1693
+ {
1694
+ operation_id: "files.delete",
1695
+ resource: "files",
1696
+ credential: "workspace",
1697
+ method_name: "delete",
1698
+ http_method: "DELETE",
1699
+ path: "/files/{id}",
1700
+ path_params: ["id"],
1701
+ query_params: [],
1702
+ has_body: false,
1703
+ request_schema: nil,
1704
+ response_schema: nil,
1705
+ is_list: false,
1706
+ list_item_schema: nil
1707
+ },
1708
+ {
1709
+ operation_id: "files.get",
1710
+ resource: "files",
1711
+ credential: "workspace",
1712
+ method_name: "get",
1713
+ http_method: "GET",
1714
+ path: "/files/{id}",
1715
+ path_params: ["id"],
1716
+ query_params: [],
1717
+ has_body: false,
1718
+ request_schema: nil,
1719
+ response_schema: "File",
1720
+ is_list: false,
1721
+ list_item_schema: nil
1722
+ },
1723
+ {
1724
+ operation_id: "files.list",
1725
+ resource: "files",
1726
+ credential: "workspace",
1727
+ method_name: "list",
1728
+ http_method: "GET",
1729
+ path: "/files",
1730
+ path_params: [],
1731
+ query_params: ["limit", "after", "before", "purpose"],
1732
+ has_body: false,
1733
+ request_schema: nil,
1734
+ response_schema: nil,
1735
+ is_list: true,
1736
+ list_item_schema: "File"
1737
+ },
1738
+ {
1739
+ operation_id: "jobs.cancel",
1740
+ resource: "jobs",
1741
+ credential: "workspace",
1742
+ method_name: "cancel",
1743
+ http_method: "POST",
1744
+ path: "/jobs/{id}/cancel",
1745
+ path_params: ["id"],
1746
+ query_params: [],
1747
+ has_body: false,
1748
+ request_schema: nil,
1749
+ response_schema: "Job",
1750
+ is_list: false,
1751
+ list_item_schema: nil
1752
+ },
1753
+ {
1754
+ operation_id: "jobs.download",
1755
+ resource: "jobs",
1756
+ credential: "workspace",
1757
+ method_name: "download",
1758
+ http_method: "GET",
1759
+ path: "/jobs/{id}/download",
1760
+ path_params: ["id"],
1761
+ query_params: [],
1762
+ has_body: false,
1763
+ request_schema: nil,
1764
+ response_schema: "JobDownload",
1765
+ is_list: false,
1766
+ list_item_schema: nil
1767
+ },
881
1768
  {
882
1769
  operation_id: "jobs.get",
883
1770
  resource: "jobs",
1771
+ credential: "workspace",
884
1772
  method_name: "get",
885
1773
  http_method: "GET",
886
1774
  path: "/jobs/{id}",
@@ -893,41 +1781,59 @@ module Unitpost
893
1781
  list_item_schema: nil
894
1782
  },
895
1783
  {
896
- operation_id: "segments.addMember",
897
- resource: "segments",
898
- method_name: "addMember",
1784
+ operation_id: "jobs.list",
1785
+ resource: "jobs",
1786
+ credential: "workspace",
1787
+ method_name: "list",
1788
+ http_method: "GET",
1789
+ path: "/jobs",
1790
+ path_params: [],
1791
+ query_params: ["limit", "after", "before", "status", "kind"],
1792
+ has_body: false,
1793
+ request_schema: nil,
1794
+ response_schema: nil,
1795
+ is_list: true,
1796
+ list_item_schema: "Job"
1797
+ },
1798
+ {
1799
+ operation_id: "jobs.retry",
1800
+ resource: "jobs",
1801
+ credential: "workspace",
1802
+ method_name: "retry",
899
1803
  http_method: "POST",
900
- path: "/segments/{id}/contacts",
1804
+ path: "/jobs/{id}/retry",
901
1805
  path_params: ["id"],
902
1806
  query_params: [],
903
- has_body: true,
904
- request_schema: "SegmentMemberAdd",
905
- response_schema: "SegmentMember",
1807
+ has_body: false,
1808
+ request_schema: nil,
1809
+ response_schema: "Job",
906
1810
  is_list: false,
907
1811
  list_item_schema: nil
908
1812
  },
909
1813
  {
910
- operation_id: "segments.create",
911
- resource: "segments",
1814
+ operation_id: "libraryImages.create",
1815
+ resource: "libraryImages",
1816
+ credential: "workspace",
912
1817
  method_name: "create",
913
1818
  http_method: "POST",
914
- path: "/segments",
1819
+ path: "/library-images",
915
1820
  path_params: [],
916
1821
  query_params: [],
917
1822
  has_body: true,
918
- request_schema: "SegmentCreate",
919
- response_schema: "Segment",
1823
+ request_schema: "LibraryImageCreate",
1824
+ response_schema: "LibraryImage",
920
1825
  is_list: false,
921
1826
  list_item_schema: nil
922
1827
  },
923
1828
  {
924
- operation_id: "segments.delete",
925
- resource: "segments",
1829
+ operation_id: "libraryImages.delete",
1830
+ resource: "libraryImages",
1831
+ credential: "workspace",
926
1832
  method_name: "delete",
927
1833
  http_method: "DELETE",
928
- path: "/segments/{id}",
1834
+ path: "/library-images/{id}",
929
1835
  path_params: ["id"],
930
- query_params: [],
1836
+ query_params: ["force"],
931
1837
  has_body: false,
932
1838
  request_schema: nil,
933
1839
  response_schema: nil,
@@ -935,302 +1841,1404 @@ module Unitpost
935
1841
  list_item_schema: nil
936
1842
  },
937
1843
  {
938
- operation_id: "segments.get",
939
- resource: "segments",
1844
+ operation_id: "libraryImages.get",
1845
+ resource: "libraryImages",
1846
+ credential: "workspace",
940
1847
  method_name: "get",
941
1848
  http_method: "GET",
942
- path: "/segments/{id}",
1849
+ path: "/library-images/{id}",
943
1850
  path_params: ["id"],
944
1851
  query_params: [],
945
1852
  has_body: false,
946
1853
  request_schema: nil,
947
- response_schema: "Segment",
1854
+ response_schema: "LibraryImage",
948
1855
  is_list: false,
949
1856
  list_item_schema: nil
950
1857
  },
951
1858
  {
952
- operation_id: "segments.list",
953
- resource: "segments",
1859
+ operation_id: "libraryImages.list",
1860
+ resource: "libraryImages",
1861
+ credential: "workspace",
954
1862
  method_name: "list",
955
1863
  http_method: "GET",
956
- path: "/segments",
1864
+ path: "/library-images",
957
1865
  path_params: [],
958
1866
  query_params: ["limit", "after", "before"],
959
1867
  has_body: false,
960
1868
  request_schema: nil,
961
1869
  response_schema: nil,
962
1870
  is_list: true,
963
- list_item_schema: "Segment"
1871
+ list_item_schema: "LibraryImage"
964
1872
  },
965
1873
  {
966
- operation_id: "segments.listMembers",
967
- resource: "segments",
968
- method_name: "listMembers",
1874
+ operation_id: "libraryImages.update",
1875
+ resource: "libraryImages",
1876
+ credential: "workspace",
1877
+ method_name: "update",
1878
+ http_method: "PATCH",
1879
+ path: "/library-images/{id}",
1880
+ path_params: ["id"],
1881
+ query_params: [],
1882
+ has_body: true,
1883
+ request_schema: "LibraryImageUpdate",
1884
+ response_schema: "LibraryImage",
1885
+ is_list: false,
1886
+ list_item_schema: nil
1887
+ },
1888
+ {
1889
+ operation_id: "logs.list",
1890
+ resource: "logs",
1891
+ credential: "workspace",
1892
+ method_name: "list",
969
1893
  http_method: "GET",
970
- path: "/segments/{id}/contacts",
1894
+ path: "/logs",
1895
+ path_params: [],
1896
+ query_params: ["limit", "after", "before", "status", "api_key_id", "method", "path_prefix", "request_id", "created_after", "created_before"],
1897
+ has_body: false,
1898
+ request_schema: nil,
1899
+ response_schema: nil,
1900
+ is_list: true,
1901
+ list_item_schema: "RequestLog"
1902
+ },
1903
+ {
1904
+ operation_id: "organization.planQuotes.confirm",
1905
+ resource: "planQuotes",
1906
+ credential: "organization",
1907
+ method_name: "confirm",
1908
+ http_method: "POST",
1909
+ path: "/organizations/{id}/workspaces/{workspace_id}/plan-quotes/{quote_id}/confirm",
1910
+ path_params: ["id", "workspace_id", "quote_id"],
1911
+ query_params: [],
1912
+ has_body: true,
1913
+ request_schema: "OrganizationPlanQuoteConfirm",
1914
+ response_schema: "OrganizationPlanQuote",
1915
+ is_list: false,
1916
+ list_item_schema: nil
1917
+ },
1918
+ {
1919
+ operation_id: "organization.planQuotes.create",
1920
+ resource: "planQuotes",
1921
+ credential: "organization",
1922
+ method_name: "create",
1923
+ http_method: "POST",
1924
+ path: "/organizations/{id}/workspaces/{workspace_id}/plan-quotes",
1925
+ path_params: ["id", "workspace_id"],
1926
+ query_params: [],
1927
+ has_body: true,
1928
+ request_schema: "OrganizationPlanQuoteCreate",
1929
+ response_schema: "OrganizationPlanQuote",
1930
+ is_list: false,
1931
+ list_item_schema: nil
1932
+ },
1933
+ {
1934
+ operation_id: "organization.planQuotes.get",
1935
+ resource: "planQuotes",
1936
+ credential: "organization",
1937
+ method_name: "get",
1938
+ http_method: "GET",
1939
+ path: "/organizations/{id}/workspaces/{workspace_id}/plan-quotes/{quote_id}",
1940
+ path_params: ["id", "workspace_id", "quote_id"],
1941
+ query_params: [],
1942
+ has_body: false,
1943
+ request_schema: nil,
1944
+ response_schema: "OrganizationPlanQuote",
1945
+ is_list: false,
1946
+ list_item_schema: nil
1947
+ },
1948
+ {
1949
+ operation_id: "organization.sharedPlan.addWorkspace",
1950
+ resource: "sharedPlan",
1951
+ credential: "organization",
1952
+ method_name: "addWorkspace",
1953
+ http_method: "PUT",
1954
+ path: "/organizations/{id}/shared-plan/workspaces/{workspace_id}",
1955
+ path_params: ["id", "workspace_id"],
1956
+ query_params: [],
1957
+ has_body: true,
1958
+ request_schema: "OrganizationSharedPlanWorkspaceAdd",
1959
+ response_schema: "OrganizationSharedPlanWorkspace",
1960
+ is_list: false,
1961
+ list_item_schema: nil
1962
+ },
1963
+ {
1964
+ operation_id: "organization.sharedPlan.get",
1965
+ resource: "sharedPlan",
1966
+ credential: "organization",
1967
+ method_name: "get",
1968
+ http_method: "GET",
1969
+ path: "/organizations/{id}/shared-plan",
971
1970
  path_params: ["id"],
972
- query_params: ["limit", "after", "before"],
1971
+ query_params: [],
1972
+ has_body: false,
1973
+ request_schema: nil,
1974
+ response_schema: "OrganizationSharedPlan",
1975
+ is_list: false,
1976
+ list_item_schema: nil
1977
+ },
1978
+ {
1979
+ operation_id: "organization.sharedPlan.listWorkspaces",
1980
+ resource: "sharedPlan",
1981
+ credential: "organization",
1982
+ method_name: "listWorkspaces",
1983
+ http_method: "GET",
1984
+ path: "/organizations/{id}/shared-plan/workspaces",
1985
+ path_params: ["id"],
1986
+ query_params: [],
973
1987
  has_body: false,
974
1988
  request_schema: nil,
975
1989
  response_schema: nil,
976
1990
  is_list: true,
977
- list_item_schema: "SegmentMember"
1991
+ list_item_schema: "OrganizationSharedPlanWorkspace"
978
1992
  },
979
1993
  {
980
- operation_id: "segments.removeMember",
981
- resource: "segments",
982
- method_name: "removeMember",
1994
+ operation_id: "organization.sharedPlan.removeWorkspace",
1995
+ resource: "sharedPlan",
1996
+ credential: "organization",
1997
+ method_name: "removeWorkspace",
983
1998
  http_method: "DELETE",
984
- path: "/segments/{id}/contacts/{contact}",
985
- path_params: ["id", "contact"],
1999
+ path: "/organizations/{id}/shared-plan/workspaces/{workspace_id}",
2000
+ path_params: ["id", "workspace_id"],
986
2001
  query_params: [],
987
2002
  has_body: false,
988
2003
  request_schema: nil,
989
- response_schema: nil,
2004
+ response_schema: "OrganizationSharedPlanRemoval",
990
2005
  is_list: false,
991
2006
  list_item_schema: nil
992
2007
  },
993
2008
  {
994
- operation_id: "segments.update",
995
- resource: "segments",
996
- method_name: "update",
2009
+ operation_id: "organization.sharedPlan.updateWorkspace",
2010
+ resource: "sharedPlan",
2011
+ credential: "organization",
2012
+ method_name: "updateWorkspace",
997
2013
  http_method: "PATCH",
998
- path: "/segments/{id}",
999
- path_params: ["id"],
2014
+ path: "/organizations/{id}/shared-plan/workspaces/{workspace_id}",
2015
+ path_params: ["id", "workspace_id"],
1000
2016
  query_params: [],
1001
2017
  has_body: true,
1002
- request_schema: "SegmentUpdate",
1003
- response_schema: "Segment",
2018
+ request_schema: "OrganizationSharedPlanWorkspaceUpdate",
2019
+ response_schema: "OrganizationSharedPlanWorkspace",
1004
2020
  is_list: false,
1005
2021
  list_item_schema: nil
1006
2022
  },
1007
2023
  {
1008
- operation_id: "sms.brands",
1009
- resource: "sms",
1010
- method_name: "brands",
2024
+ operation_id: "organization.usage.list",
2025
+ resource: "usage",
2026
+ credential: "organization",
2027
+ method_name: "list",
1011
2028
  http_method: "GET",
1012
- path: "/sms/brands",
1013
- path_params: [],
1014
- query_params: ["limit", "after", "before"],
2029
+ path: "/organizations/{id}/usage",
2030
+ path_params: ["id"],
2031
+ query_params: ["period", "limit", "after", "before", "external_id"],
1015
2032
  has_body: false,
1016
2033
  request_schema: nil,
1017
2034
  response_schema: nil,
1018
2035
  is_list: true,
1019
- list_item_schema: "SmsBrand"
2036
+ list_item_schema: "OrganizationWorkspaceUsage"
1020
2037
  },
1021
2038
  {
1022
- operation_id: "sms.campaigns.cancel",
1023
- resource: "sms.campaigns",
1024
- method_name: "cancel",
2039
+ operation_id: "organization.webhooks.create",
2040
+ resource: "webhooks",
2041
+ credential: "organization",
2042
+ method_name: "create",
1025
2043
  http_method: "POST",
1026
- path: "/sms/campaigns/{id}/cancel",
2044
+ path: "/organizations/{id}/webhooks",
1027
2045
  path_params: ["id"],
1028
2046
  query_params: [],
2047
+ has_body: true,
2048
+ request_schema: "WebhookCreate",
2049
+ response_schema: "WebhookCreated",
2050
+ is_list: false,
2051
+ list_item_schema: nil
2052
+ },
2053
+ {
2054
+ operation_id: "organization.webhooks.delete",
2055
+ resource: "webhooks",
2056
+ credential: "organization",
2057
+ method_name: "delete",
2058
+ http_method: "DELETE",
2059
+ path: "/organizations/{id}/webhooks/{webhook_id}",
2060
+ path_params: ["id", "webhook_id"],
2061
+ query_params: [],
1029
2062
  has_body: false,
1030
2063
  request_schema: nil,
1031
- response_schema: "SmsCampaign",
2064
+ response_schema: nil,
1032
2065
  is_list: false,
1033
2066
  list_item_schema: nil
1034
2067
  },
1035
2068
  {
1036
- operation_id: "sms.campaigns.create",
1037
- resource: "sms.campaigns",
1038
- method_name: "create",
2069
+ operation_id: "organization.webhooks.flush",
2070
+ resource: "webhooks",
2071
+ credential: "organization",
2072
+ method_name: "flush",
1039
2073
  http_method: "POST",
1040
- path: "/sms/campaigns",
1041
- path_params: [],
2074
+ path: "/organizations/{id}/webhooks/{webhook_id}/flush",
2075
+ path_params: ["id", "webhook_id"],
1042
2076
  query_params: [],
1043
2077
  has_body: true,
1044
- request_schema: "SmsCampaignCreate",
1045
- response_schema: "SmsCampaign",
2078
+ request_schema: "WebhookFlush",
2079
+ response_schema: "WebhookFlushResult",
2080
+ is_list: false,
2081
+ list_item_schema: nil
2082
+ },
2083
+ {
2084
+ operation_id: "organization.webhooks.get",
2085
+ resource: "webhooks",
2086
+ credential: "organization",
2087
+ method_name: "get",
2088
+ http_method: "GET",
2089
+ path: "/organizations/{id}/webhooks/{webhook_id}",
2090
+ path_params: ["id", "webhook_id"],
2091
+ query_params: [],
2092
+ has_body: false,
2093
+ request_schema: nil,
2094
+ response_schema: "Webhook",
2095
+ is_list: false,
2096
+ list_item_schema: nil
2097
+ },
2098
+ {
2099
+ operation_id: "organization.webhooks.list",
2100
+ resource: "webhooks",
2101
+ credential: "organization",
2102
+ method_name: "list",
2103
+ http_method: "GET",
2104
+ path: "/organizations/{id}/webhooks",
2105
+ path_params: ["id"],
2106
+ query_params: ["limit", "after", "before"],
2107
+ has_body: false,
2108
+ request_schema: nil,
2109
+ response_schema: nil,
2110
+ is_list: true,
2111
+ list_item_schema: "Webhook"
2112
+ },
2113
+ {
2114
+ operation_id: "organization.webhooks.listDeliveries",
2115
+ resource: "webhooks",
2116
+ credential: "organization",
2117
+ method_name: "listDeliveries",
2118
+ http_method: "GET",
2119
+ path: "/organizations/{id}/webhooks/{webhook_id}/deliveries",
2120
+ path_params: ["id", "webhook_id"],
2121
+ query_params: ["limit", "after", "before", "status", "event_type", "workspace_id", "external_id"],
2122
+ has_body: false,
2123
+ request_schema: nil,
2124
+ response_schema: nil,
2125
+ is_list: true,
2126
+ list_item_schema: "OrganizationWebhookDelivery"
2127
+ },
2128
+ {
2129
+ operation_id: "organization.webhooks.replayDelivery",
2130
+ resource: "webhooks",
2131
+ credential: "organization",
2132
+ method_name: "replayDelivery",
2133
+ http_method: "POST",
2134
+ path: "/organizations/{id}/webhooks/{webhook_id}/deliveries/{delivery}/replay",
2135
+ path_params: ["id", "webhook_id", "delivery"],
2136
+ query_params: [],
2137
+ has_body: false,
2138
+ request_schema: nil,
2139
+ response_schema: "WebhookDeliveryReplay",
2140
+ is_list: false,
2141
+ list_item_schema: nil
2142
+ },
2143
+ {
2144
+ operation_id: "organization.webhooks.rotateSecret",
2145
+ resource: "webhooks",
2146
+ credential: "organization",
2147
+ method_name: "rotateSecret",
2148
+ http_method: "POST",
2149
+ path: "/organizations/{id}/webhooks/{webhook_id}/rotate-secret",
2150
+ path_params: ["id", "webhook_id"],
2151
+ query_params: [],
2152
+ has_body: false,
2153
+ request_schema: nil,
2154
+ response_schema: "WebhookSecretRotated",
2155
+ is_list: false,
2156
+ list_item_schema: nil
2157
+ },
2158
+ {
2159
+ operation_id: "organization.webhooks.test",
2160
+ resource: "webhooks",
2161
+ credential: "organization",
2162
+ method_name: "test",
2163
+ http_method: "POST",
2164
+ path: "/organizations/{id}/webhooks/{webhook_id}/test",
2165
+ path_params: ["id", "webhook_id"],
2166
+ query_params: [],
2167
+ has_body: false,
2168
+ request_schema: nil,
2169
+ response_schema: "WebhookTestResult",
2170
+ is_list: false,
2171
+ list_item_schema: nil
2172
+ },
2173
+ {
2174
+ operation_id: "organization.webhooks.update",
2175
+ resource: "webhooks",
2176
+ credential: "organization",
2177
+ method_name: "update",
2178
+ http_method: "PATCH",
2179
+ path: "/organizations/{id}/webhooks/{webhook_id}",
2180
+ path_params: ["id", "webhook_id"],
2181
+ query_params: [],
2182
+ has_body: true,
2183
+ request_schema: "WebhookUpdate",
2184
+ response_schema: "Webhook",
2185
+ is_list: false,
2186
+ list_item_schema: nil
2187
+ },
2188
+ {
2189
+ operation_id: "organization.workspaceKeys.create",
2190
+ resource: "workspaceKeys",
2191
+ credential: "organization",
2192
+ method_name: "create",
2193
+ http_method: "POST",
2194
+ path: "/organizations/{id}/workspaces/{workspace_id}/api-keys",
2195
+ path_params: ["id", "workspace_id"],
2196
+ query_params: [],
2197
+ has_body: true,
2198
+ request_schema: "WorkspaceKeyMint",
2199
+ response_schema: "MintedWorkspaceKey",
2200
+ is_list: false,
2201
+ list_item_schema: nil
2202
+ },
2203
+ {
2204
+ operation_id: "organization.workspaces.close",
2205
+ resource: "workspaces",
2206
+ credential: "organization",
2207
+ method_name: "close",
2208
+ http_method: "POST",
2209
+ path: "/organizations/{id}/workspaces/{workspace_id}/close",
2210
+ path_params: ["id", "workspace_id"],
2211
+ query_params: [],
2212
+ has_body: false,
2213
+ request_schema: nil,
2214
+ response_schema: "OrganizationWorkspace",
2215
+ is_list: false,
2216
+ list_item_schema: nil
2217
+ },
2218
+ {
2219
+ operation_id: "organization.workspaces.create",
2220
+ resource: "workspaces",
2221
+ credential: "organization",
2222
+ method_name: "create",
2223
+ http_method: "POST",
2224
+ path: "/organizations/{id}/workspaces",
2225
+ path_params: ["id"],
2226
+ query_params: [],
2227
+ has_body: true,
2228
+ request_schema: "OrganizationWorkspaceCreate",
2229
+ response_schema: "OrganizationWorkspace",
2230
+ is_list: false,
2231
+ list_item_schema: nil
2232
+ },
2233
+ {
2234
+ operation_id: "organization.workspaces.get",
2235
+ resource: "workspaces",
2236
+ credential: "organization",
2237
+ method_name: "get",
2238
+ http_method: "GET",
2239
+ path: "/organizations/{id}/workspaces/{workspace_id}",
2240
+ path_params: ["id", "workspace_id"],
2241
+ query_params: [],
2242
+ has_body: false,
2243
+ request_schema: nil,
2244
+ response_schema: "OrganizationWorkspace",
2245
+ is_list: false,
2246
+ list_item_schema: nil
2247
+ },
2248
+ {
2249
+ operation_id: "organization.workspaces.list",
2250
+ resource: "workspaces",
2251
+ credential: "organization",
2252
+ method_name: "list",
2253
+ http_method: "GET",
2254
+ path: "/organizations/{id}/workspaces",
2255
+ path_params: ["id"],
2256
+ query_params: ["limit", "after", "before", "external_id"],
2257
+ has_body: false,
2258
+ request_schema: nil,
2259
+ response_schema: nil,
2260
+ is_list: true,
2261
+ list_item_schema: "OrganizationWorkspace"
2262
+ },
2263
+ {
2264
+ operation_id: "organization.workspaces.restore",
2265
+ resource: "workspaces",
2266
+ credential: "organization",
2267
+ method_name: "restore",
2268
+ http_method: "POST",
2269
+ path: "/organizations/{id}/workspaces/{workspace_id}/restore",
2270
+ path_params: ["id", "workspace_id"],
2271
+ query_params: [],
2272
+ has_body: false,
2273
+ request_schema: nil,
2274
+ response_schema: "OrganizationWorkspace",
2275
+ is_list: false,
2276
+ list_item_schema: nil
2277
+ },
2278
+ {
2279
+ operation_id: "organization.workspaces.update",
2280
+ resource: "workspaces",
2281
+ credential: "organization",
2282
+ method_name: "update",
2283
+ http_method: "PATCH",
2284
+ path: "/organizations/{id}/workspaces/{workspace_id}",
2285
+ path_params: ["id", "workspace_id"],
2286
+ query_params: [],
2287
+ has_body: true,
2288
+ request_schema: "OrganizationWorkspaceUpdate",
2289
+ response_schema: "OrganizationWorkspace",
2290
+ is_list: false,
2291
+ list_item_schema: nil
2292
+ },
2293
+ {
2294
+ operation_id: "segments.addMember",
2295
+ resource: "segments",
2296
+ credential: "workspace",
2297
+ method_name: "addMember",
2298
+ http_method: "POST",
2299
+ path: "/segments/{id}/contacts",
2300
+ path_params: ["id"],
2301
+ query_params: [],
2302
+ has_body: true,
2303
+ request_schema: "SegmentMemberAdd",
2304
+ response_schema: "SegmentMember",
2305
+ is_list: false,
2306
+ list_item_schema: nil
2307
+ },
2308
+ {
2309
+ operation_id: "segments.allContacts",
2310
+ resource: "segments",
2311
+ credential: "workspace",
2312
+ method_name: "allContacts",
2313
+ http_method: "POST",
2314
+ path: "/segments/all-contacts",
2315
+ path_params: [],
2316
+ query_params: [],
2317
+ has_body: false,
2318
+ request_schema: nil,
2319
+ response_schema: "Segment",
2320
+ is_list: false,
2321
+ list_item_schema: nil
2322
+ },
2323
+ {
2324
+ operation_id: "segments.create",
2325
+ resource: "segments",
2326
+ credential: "workspace",
2327
+ method_name: "create",
2328
+ http_method: "POST",
2329
+ path: "/segments",
2330
+ path_params: [],
2331
+ query_params: [],
2332
+ has_body: true,
2333
+ request_schema: "SegmentCreate",
2334
+ response_schema: "Segment",
2335
+ is_list: false,
2336
+ list_item_schema: nil
2337
+ },
2338
+ {
2339
+ operation_id: "segments.delete",
2340
+ resource: "segments",
2341
+ credential: "workspace",
2342
+ method_name: "delete",
2343
+ http_method: "DELETE",
2344
+ path: "/segments/{id}",
2345
+ path_params: ["id"],
2346
+ query_params: [],
2347
+ has_body: false,
2348
+ request_schema: nil,
2349
+ response_schema: nil,
2350
+ is_list: false,
2351
+ list_item_schema: nil
2352
+ },
2353
+ {
2354
+ operation_id: "segments.get",
2355
+ resource: "segments",
2356
+ credential: "workspace",
2357
+ method_name: "get",
2358
+ http_method: "GET",
2359
+ path: "/segments/{id}",
2360
+ path_params: ["id"],
2361
+ query_params: [],
2362
+ has_body: false,
2363
+ request_schema: nil,
2364
+ response_schema: "Segment",
2365
+ is_list: false,
2366
+ list_item_schema: nil
2367
+ },
2368
+ {
2369
+ operation_id: "segments.list",
2370
+ resource: "segments",
2371
+ credential: "workspace",
2372
+ method_name: "list",
2373
+ http_method: "GET",
2374
+ path: "/segments",
2375
+ path_params: [],
2376
+ query_params: ["limit", "after", "before", "archived"],
2377
+ has_body: false,
2378
+ request_schema: nil,
2379
+ response_schema: nil,
2380
+ is_list: true,
2381
+ list_item_schema: "Segment"
2382
+ },
2383
+ {
2384
+ operation_id: "segments.listMembers",
2385
+ resource: "segments",
2386
+ credential: "workspace",
2387
+ method_name: "listMembers",
2388
+ http_method: "GET",
2389
+ path: "/segments/{id}/contacts",
2390
+ path_params: ["id"],
2391
+ query_params: ["limit", "after", "before"],
2392
+ has_body: false,
2393
+ request_schema: nil,
2394
+ response_schema: nil,
2395
+ is_list: true,
2396
+ list_item_schema: "SegmentMember"
2397
+ },
2398
+ {
2399
+ operation_id: "segments.preview",
2400
+ resource: "segments",
2401
+ credential: "workspace",
2402
+ method_name: "preview",
2403
+ http_method: "GET",
2404
+ path: "/segments/{id}/preview",
2405
+ path_params: ["id"],
2406
+ query_params: [],
2407
+ has_body: false,
2408
+ request_schema: nil,
2409
+ response_schema: "SegmentPreview",
2410
+ is_list: false,
2411
+ list_item_schema: nil
2412
+ },
2413
+ {
2414
+ operation_id: "segments.previewFilter",
2415
+ resource: "segments",
2416
+ credential: "workspace",
2417
+ method_name: "previewFilter",
2418
+ http_method: "POST",
2419
+ path: "/segments/preview",
2420
+ path_params: [],
2421
+ query_params: [],
2422
+ has_body: true,
2423
+ request_schema: "SegmentPreviewRequest",
2424
+ response_schema: "SegmentPreview",
2425
+ is_list: false,
2426
+ list_item_schema: nil
2427
+ },
2428
+ {
2429
+ operation_id: "segments.removeMember",
2430
+ resource: "segments",
2431
+ credential: "workspace",
2432
+ method_name: "removeMember",
2433
+ http_method: "DELETE",
2434
+ path: "/segments/{id}/contacts/{contact}",
2435
+ path_params: ["id", "contact"],
2436
+ query_params: [],
2437
+ has_body: false,
2438
+ request_schema: nil,
2439
+ response_schema: nil,
2440
+ is_list: false,
2441
+ list_item_schema: nil
2442
+ },
2443
+ {
2444
+ operation_id: "segments.update",
2445
+ resource: "segments",
2446
+ credential: "workspace",
2447
+ method_name: "update",
2448
+ http_method: "PATCH",
2449
+ path: "/segments/{id}",
2450
+ path_params: ["id"],
2451
+ query_params: [],
2452
+ has_body: true,
2453
+ request_schema: "SegmentUpdate",
2454
+ response_schema: "Segment",
2455
+ is_list: false,
2456
+ list_item_schema: nil
2457
+ },
2458
+ {
2459
+ operation_id: "segments.updateMember",
2460
+ resource: "segments",
2461
+ credential: "workspace",
2462
+ method_name: "updateMember",
2463
+ http_method: "PATCH",
2464
+ path: "/segments/{id}/contacts/{contact}",
2465
+ path_params: ["id", "contact"],
2466
+ query_params: [],
2467
+ has_body: true,
2468
+ request_schema: "SegmentMemberUpdate",
2469
+ response_schema: "SegmentMember",
2470
+ is_list: false,
2471
+ list_item_schema: nil
2472
+ },
2473
+ {
2474
+ operation_id: "sms.addBrandDocument",
2475
+ resource: "sms",
2476
+ credential: "workspace",
2477
+ method_name: "addBrandDocument",
2478
+ http_method: "POST",
2479
+ path: "/sms/brands/{id}/documents",
2480
+ path_params: ["id"],
2481
+ query_params: [],
2482
+ has_body: true,
2483
+ request_schema: "SmsBrandDocumentCreate",
2484
+ response_schema: "SmsBrandDocument",
2485
+ is_list: false,
2486
+ list_item_schema: nil
2487
+ },
2488
+ {
2489
+ operation_id: "sms.addContact",
2490
+ resource: "sms",
2491
+ credential: "workspace",
2492
+ method_name: "addContact",
2493
+ http_method: "POST",
2494
+ path: "/sms/{id}/contact",
2495
+ path_params: ["id"],
2496
+ query_params: [],
2497
+ has_body: true,
2498
+ request_schema: "SmsAddContact",
2499
+ response_schema: "Contact",
2500
+ is_list: false,
2501
+ list_item_schema: nil
2502
+ },
2503
+ {
2504
+ operation_id: "sms.addJoinKeyword",
2505
+ resource: "sms",
2506
+ credential: "workspace",
2507
+ method_name: "addJoinKeyword",
2508
+ http_method: "POST",
2509
+ path: "/sms/numbers/{id}/join-keywords",
2510
+ path_params: ["id"],
2511
+ query_params: [],
2512
+ has_body: true,
2513
+ request_schema: "SmsJoinKeywordCreate",
2514
+ response_schema: "SmsJoinKeywordCreated",
2515
+ is_list: false,
2516
+ list_item_schema: nil
2517
+ },
2518
+ {
2519
+ operation_id: "sms.billing.listResources",
2520
+ resource: "sms.billing",
2521
+ credential: "workspace",
2522
+ method_name: "listResources",
2523
+ http_method: "GET",
2524
+ path: "/sms/billing/resources",
2525
+ path_params: [],
2526
+ query_params: ["limit", "after", "before"],
2527
+ has_body: false,
2528
+ request_schema: nil,
2529
+ response_schema: nil,
2530
+ is_list: true,
2531
+ list_item_schema: "SmsBillableResource"
2532
+ },
2533
+ {
2534
+ operation_id: "sms.brandDocumentUrl",
2535
+ resource: "sms",
2536
+ credential: "workspace",
2537
+ method_name: "brandDocumentUrl",
2538
+ http_method: "GET",
2539
+ path: "/sms/brands/{id}/documents/{documentId}/url",
2540
+ path_params: ["id", "documentId"],
2541
+ query_params: [],
2542
+ has_body: false,
2543
+ request_schema: nil,
2544
+ response_schema: "SmsBrandDocumentUrl",
2545
+ is_list: false,
2546
+ list_item_schema: nil
2547
+ },
2548
+ {
2549
+ operation_id: "sms.brands",
2550
+ resource: "sms",
2551
+ credential: "workspace",
2552
+ method_name: "brands",
2553
+ http_method: "GET",
2554
+ path: "/sms/brands",
2555
+ path_params: [],
2556
+ query_params: ["limit", "after", "before"],
2557
+ has_body: false,
2558
+ request_schema: nil,
2559
+ response_schema: nil,
2560
+ is_list: true,
2561
+ list_item_schema: "SmsBrand"
2562
+ },
2563
+ {
2564
+ operation_id: "sms.campaigns.cancel",
2565
+ resource: "sms.campaigns",
2566
+ credential: "workspace",
2567
+ method_name: "cancel",
2568
+ http_method: "POST",
2569
+ path: "/sms/campaigns/{id}/cancel",
2570
+ path_params: ["id"],
2571
+ query_params: [],
2572
+ has_body: false,
2573
+ request_schema: nil,
2574
+ response_schema: "SmsCampaign",
2575
+ is_list: false,
2576
+ list_item_schema: nil
2577
+ },
2578
+ {
2579
+ operation_id: "sms.campaigns.create",
2580
+ resource: "sms.campaigns",
2581
+ credential: "workspace",
2582
+ method_name: "create",
2583
+ http_method: "POST",
2584
+ path: "/sms/campaigns",
2585
+ path_params: [],
2586
+ query_params: [],
2587
+ has_body: true,
2588
+ request_schema: "SmsCampaignCreate",
2589
+ response_schema: "SmsCampaign",
2590
+ is_list: false,
2591
+ list_item_schema: nil
2592
+ },
2593
+ {
2594
+ operation_id: "sms.campaigns.delete",
2595
+ resource: "sms.campaigns",
2596
+ credential: "workspace",
2597
+ method_name: "delete",
2598
+ http_method: "DELETE",
2599
+ path: "/sms/campaigns/{id}",
2600
+ path_params: ["id"],
2601
+ query_params: [],
2602
+ has_body: false,
2603
+ request_schema: nil,
2604
+ response_schema: nil,
2605
+ is_list: false,
2606
+ list_item_schema: nil
2607
+ },
2608
+ {
2609
+ operation_id: "sms.campaigns.duplicate",
2610
+ resource: "sms.campaigns",
2611
+ credential: "workspace",
2612
+ method_name: "duplicate",
2613
+ http_method: "POST",
2614
+ path: "/sms/campaigns/{id}/duplicate",
2615
+ path_params: ["id"],
2616
+ query_params: [],
2617
+ has_body: true,
2618
+ request_schema: "CampaignDuplicate",
2619
+ response_schema: "SmsCampaign",
2620
+ is_list: false,
2621
+ list_item_schema: nil
2622
+ },
2623
+ {
2624
+ operation_id: "sms.campaigns.get",
2625
+ resource: "sms.campaigns",
2626
+ credential: "workspace",
2627
+ method_name: "get",
2628
+ http_method: "GET",
2629
+ path: "/sms/campaigns/{id}",
2630
+ path_params: ["id"],
2631
+ query_params: [],
2632
+ has_body: false,
2633
+ request_schema: nil,
2634
+ response_schema: "SmsCampaign",
2635
+ is_list: false,
2636
+ list_item_schema: nil
2637
+ },
2638
+ {
2639
+ operation_id: "sms.campaigns.list",
2640
+ resource: "sms.campaigns",
2641
+ credential: "workspace",
2642
+ method_name: "list",
2643
+ http_method: "GET",
2644
+ path: "/sms/campaigns",
2645
+ path_params: [],
2646
+ query_params: ["limit", "after", "before", "archived", "topic_id", "segment_id"],
2647
+ has_body: false,
2648
+ request_schema: nil,
2649
+ response_schema: nil,
2650
+ is_list: true,
2651
+ list_item_schema: "SmsCampaign"
2652
+ },
2653
+ {
2654
+ operation_id: "sms.campaigns.listRecipients",
2655
+ resource: "sms.campaigns",
2656
+ credential: "workspace",
2657
+ method_name: "listRecipients",
2658
+ http_method: "GET",
2659
+ path: "/sms/campaigns/{id}/recipients",
2660
+ path_params: ["id"],
2661
+ query_params: ["limit", "after", "before", "q"],
2662
+ has_body: false,
2663
+ request_schema: nil,
2664
+ response_schema: nil,
2665
+ is_list: true,
2666
+ list_item_schema: "SmsCampaignRecipient"
2667
+ },
2668
+ {
2669
+ operation_id: "sms.campaigns.pause",
2670
+ resource: "sms.campaigns",
2671
+ credential: "workspace",
2672
+ method_name: "pause",
2673
+ http_method: "POST",
2674
+ path: "/sms/campaigns/{id}/pause",
2675
+ path_params: ["id"],
2676
+ query_params: [],
2677
+ has_body: false,
2678
+ request_schema: nil,
2679
+ response_schema: "SmsCampaign",
2680
+ is_list: false,
2681
+ list_item_schema: nil
2682
+ },
2683
+ {
2684
+ operation_id: "sms.campaigns.reschedule",
2685
+ resource: "sms.campaigns",
2686
+ credential: "workspace",
2687
+ method_name: "reschedule",
2688
+ http_method: "POST",
2689
+ path: "/sms/campaigns/{id}/reschedule",
2690
+ path_params: ["id"],
2691
+ query_params: [],
2692
+ has_body: true,
2693
+ request_schema: "SmsCampaignReschedule",
2694
+ response_schema: "SmsCampaign",
2695
+ is_list: false,
2696
+ list_item_schema: nil
2697
+ },
2698
+ {
2699
+ operation_id: "sms.campaigns.resume",
2700
+ resource: "sms.campaigns",
2701
+ credential: "workspace",
2702
+ method_name: "resume",
2703
+ http_method: "POST",
2704
+ path: "/sms/campaigns/{id}/resume",
2705
+ path_params: ["id"],
2706
+ query_params: [],
2707
+ has_body: false,
2708
+ request_schema: nil,
2709
+ response_schema: "SmsCampaign",
2710
+ is_list: false,
2711
+ list_item_schema: nil
2712
+ },
2713
+ {
2714
+ operation_id: "sms.campaigns.send",
2715
+ resource: "sms.campaigns",
2716
+ credential: "workspace",
2717
+ method_name: "send",
2718
+ http_method: "POST",
2719
+ path: "/sms/campaigns/{id}/send",
2720
+ path_params: ["id"],
2721
+ query_params: [],
2722
+ has_body: true,
2723
+ request_schema: "SmsCampaignSend",
2724
+ response_schema: "SmsCampaign",
2725
+ is_list: false,
2726
+ list_item_schema: nil
2727
+ },
2728
+ {
2729
+ operation_id: "sms.campaigns.unschedule",
2730
+ resource: "sms.campaigns",
2731
+ credential: "workspace",
2732
+ method_name: "unschedule",
2733
+ http_method: "POST",
2734
+ path: "/sms/campaigns/{id}/unschedule",
2735
+ path_params: ["id"],
2736
+ query_params: [],
2737
+ has_body: false,
2738
+ request_schema: nil,
2739
+ response_schema: "SmsCampaign",
2740
+ is_list: false,
2741
+ list_item_schema: nil
2742
+ },
2743
+ {
2744
+ operation_id: "sms.campaigns.update",
2745
+ resource: "sms.campaigns",
2746
+ credential: "workspace",
2747
+ method_name: "update",
2748
+ http_method: "PATCH",
2749
+ path: "/sms/campaigns/{id}",
2750
+ path_params: ["id"],
2751
+ query_params: [],
2752
+ has_body: true,
2753
+ request_schema: "SmsCampaignUpdate",
2754
+ response_schema: "SmsCampaign",
2755
+ is_list: false,
2756
+ list_item_schema: nil
2757
+ },
2758
+ {
2759
+ operation_id: "sms.campaigns.validate",
2760
+ resource: "sms.campaigns",
2761
+ credential: "workspace",
2762
+ method_name: "validate",
2763
+ http_method: "GET",
2764
+ path: "/sms/campaigns/{id}/validate",
2765
+ path_params: ["id"],
2766
+ query_params: [],
2767
+ has_body: false,
2768
+ request_schema: nil,
2769
+ response_schema: "SmsCampaignValidation",
2770
+ is_list: false,
2771
+ list_item_schema: nil
2772
+ },
2773
+ {
2774
+ operation_id: "sms.consentSetups.list",
2775
+ resource: "sms.consentSetups",
2776
+ credential: "workspace",
2777
+ method_name: "list",
2778
+ http_method: "GET",
2779
+ path: "/sms/consent-setups",
2780
+ path_params: [],
2781
+ query_params: ["limit", "after", "before"],
2782
+ has_body: false,
2783
+ request_schema: nil,
2784
+ response_schema: nil,
2785
+ is_list: true,
2786
+ list_item_schema: "SmsConsentSetup"
2787
+ },
2788
+ {
2789
+ operation_id: "sms.createBrand",
2790
+ resource: "sms",
2791
+ credential: "workspace",
2792
+ method_name: "createBrand",
2793
+ http_method: "POST",
2794
+ path: "/sms/brands",
2795
+ path_params: [],
2796
+ query_params: [],
2797
+ has_body: true,
2798
+ request_schema: "SmsBrandCreate",
2799
+ response_schema: "SmsBrand",
2800
+ is_list: false,
2801
+ list_item_schema: nil
2802
+ },
2803
+ {
2804
+ operation_id: "sms.get",
2805
+ resource: "sms",
2806
+ credential: "workspace",
2807
+ method_name: "get",
2808
+ http_method: "GET",
2809
+ path: "/sms/{id}",
2810
+ path_params: ["id"],
2811
+ query_params: [],
2812
+ has_body: false,
2813
+ request_schema: nil,
2814
+ response_schema: "Sms",
2815
+ is_list: false,
2816
+ list_item_schema: nil
2817
+ },
2818
+ {
2819
+ operation_id: "sms.getBrand",
2820
+ resource: "sms",
2821
+ credential: "workspace",
2822
+ method_name: "getBrand",
2823
+ http_method: "GET",
2824
+ path: "/sms/brands/{id}",
2825
+ path_params: ["id"],
2826
+ query_params: [],
2827
+ has_body: false,
2828
+ request_schema: nil,
2829
+ response_schema: "SmsBrand",
2830
+ is_list: false,
2831
+ list_item_schema: nil
2832
+ },
2833
+ {
2834
+ operation_id: "sms.getBrandDocument",
2835
+ resource: "sms",
2836
+ credential: "workspace",
2837
+ method_name: "getBrandDocument",
2838
+ http_method: "GET",
2839
+ path: "/sms/brands/{id}/documents/{documentId}",
2840
+ path_params: ["id", "documentId"],
2841
+ query_params: [],
2842
+ has_body: false,
2843
+ request_schema: nil,
2844
+ response_schema: "SmsBrandDocument",
2845
+ is_list: false,
2846
+ list_item_schema: nil
2847
+ },
2848
+ {
2849
+ operation_id: "sms.getNumber",
2850
+ resource: "sms",
2851
+ credential: "workspace",
2852
+ method_name: "getNumber",
2853
+ http_method: "GET",
2854
+ path: "/sms/numbers/{id}",
2855
+ path_params: ["id"],
2856
+ query_params: [],
2857
+ has_body: false,
2858
+ request_schema: nil,
2859
+ response_schema: "SmsNumber",
2860
+ is_list: false,
2861
+ list_item_schema: nil
2862
+ },
2863
+ {
2864
+ operation_id: "sms.list",
2865
+ resource: "sms",
2866
+ credential: "workspace",
2867
+ method_name: "list",
2868
+ http_method: "GET",
2869
+ path: "/sms",
2870
+ path_params: [],
2871
+ query_params: ["limit", "after", "before", "direction", "status", "from", "to", "participant", "contact_id", "campaign_id", "created_after", "created_before", "sender_id", "q", "type", "tag"],
2872
+ has_body: false,
2873
+ request_schema: nil,
2874
+ response_schema: nil,
2875
+ is_list: true,
2876
+ list_item_schema: "Sms"
2877
+ },
2878
+ {
2879
+ operation_id: "sms.listBrandDocuments",
2880
+ resource: "sms",
2881
+ credential: "workspace",
2882
+ method_name: "listBrandDocuments",
2883
+ http_method: "GET",
2884
+ path: "/sms/brands/{id}/documents",
2885
+ path_params: ["id"],
2886
+ query_params: [],
2887
+ has_body: false,
2888
+ request_schema: nil,
2889
+ response_schema: nil,
2890
+ is_list: true,
2891
+ list_item_schema: "SmsBrandDocument"
2892
+ },
2893
+ {
2894
+ operation_id: "sms.listJoinKeywords",
2895
+ resource: "sms",
2896
+ credential: "workspace",
2897
+ method_name: "listJoinKeywords",
2898
+ http_method: "GET",
2899
+ path: "/sms/numbers/{id}/join-keywords",
2900
+ path_params: ["id"],
2901
+ query_params: [],
2902
+ has_body: false,
2903
+ request_schema: nil,
2904
+ response_schema: "SmsJoinKeywordList",
2905
+ is_list: false,
2906
+ list_item_schema: nil
2907
+ },
2908
+ {
2909
+ operation_id: "sms.messagingPrograms.create",
2910
+ resource: "sms.messagingPrograms",
2911
+ credential: "workspace",
2912
+ method_name: "create",
2913
+ http_method: "POST",
2914
+ path: "/sms/messaging-programs",
2915
+ path_params: [],
2916
+ query_params: [],
2917
+ has_body: true,
2918
+ request_schema: "SmsMessagingProgramCreate",
2919
+ response_schema: "SmsMessagingProgram",
2920
+ is_list: false,
2921
+ list_item_schema: nil
2922
+ },
2923
+ {
2924
+ operation_id: "sms.messagingPrograms.delete",
2925
+ resource: "sms.messagingPrograms",
2926
+ credential: "workspace",
2927
+ method_name: "delete",
2928
+ http_method: "DELETE",
2929
+ path: "/sms/messaging-programs/{id}",
2930
+ path_params: ["id"],
2931
+ query_params: [],
2932
+ has_body: false,
2933
+ request_schema: nil,
2934
+ response_schema: nil,
2935
+ is_list: false,
2936
+ list_item_schema: nil
2937
+ },
2938
+ {
2939
+ operation_id: "sms.messagingPrograms.duplicate",
2940
+ resource: "sms.messagingPrograms",
2941
+ credential: "workspace",
2942
+ method_name: "duplicate",
2943
+ http_method: "POST",
2944
+ path: "/sms/messaging-programs/{id}/duplicate",
2945
+ path_params: ["id"],
2946
+ query_params: [],
2947
+ has_body: false,
2948
+ request_schema: nil,
2949
+ response_schema: "SmsMessagingProgram",
2950
+ is_list: false,
2951
+ list_item_schema: nil
2952
+ },
2953
+ {
2954
+ operation_id: "sms.messagingPrograms.get",
2955
+ resource: "sms.messagingPrograms",
2956
+ credential: "workspace",
2957
+ method_name: "get",
2958
+ http_method: "GET",
2959
+ path: "/sms/messaging-programs/{id}",
2960
+ path_params: ["id"],
2961
+ query_params: [],
2962
+ has_body: false,
2963
+ request_schema: nil,
2964
+ response_schema: "SmsMessagingProgram",
2965
+ is_list: false,
2966
+ list_item_schema: nil
2967
+ },
2968
+ {
2969
+ operation_id: "sms.messagingPrograms.list",
2970
+ resource: "sms.messagingPrograms",
2971
+ credential: "workspace",
2972
+ method_name: "list",
2973
+ http_method: "GET",
2974
+ path: "/sms/messaging-programs",
2975
+ path_params: [],
2976
+ query_params: ["limit", "after", "before", "archived"],
2977
+ has_body: false,
2978
+ request_schema: nil,
2979
+ response_schema: nil,
2980
+ is_list: true,
2981
+ list_item_schema: "SmsMessagingProgram"
2982
+ },
2983
+ {
2984
+ operation_id: "sms.messagingPrograms.update",
2985
+ resource: "sms.messagingPrograms",
2986
+ credential: "workspace",
2987
+ method_name: "update",
2988
+ http_method: "PATCH",
2989
+ path: "/sms/messaging-programs/{id}",
2990
+ path_params: ["id"],
2991
+ query_params: [],
2992
+ has_body: true,
2993
+ request_schema: "SmsMessagingProgramUpdate",
2994
+ response_schema: "SmsMessagingProgram",
2995
+ is_list: false,
2996
+ list_item_schema: nil
2997
+ },
2998
+ {
2999
+ operation_id: "sms.numbers",
3000
+ resource: "sms",
3001
+ credential: "workspace",
3002
+ method_name: "numbers",
3003
+ http_method: "GET",
3004
+ path: "/sms/numbers",
3005
+ path_params: [],
3006
+ query_params: ["limit", "after", "before"],
3007
+ has_body: false,
3008
+ request_schema: nil,
3009
+ response_schema: nil,
3010
+ is_list: true,
3011
+ list_item_schema: "SmsNumber"
3012
+ },
3013
+ {
3014
+ operation_id: "sms.quotes.confirm",
3015
+ resource: "sms.quotes",
3016
+ credential: "workspace",
3017
+ method_name: "confirm",
3018
+ http_method: "POST",
3019
+ path: "/sms/quotes/{id}/confirm",
3020
+ path_params: ["id"],
3021
+ query_params: [],
3022
+ has_body: true,
3023
+ request_schema: "SmsQuoteConfirm",
3024
+ response_schema: "SmsQuote",
3025
+ is_list: false,
3026
+ list_item_schema: nil
3027
+ },
3028
+ {
3029
+ operation_id: "sms.quotes.create",
3030
+ resource: "sms.quotes",
3031
+ credential: "workspace",
3032
+ method_name: "create",
3033
+ http_method: "POST",
3034
+ path: "/sms/quotes",
3035
+ path_params: [],
3036
+ query_params: [],
3037
+ has_body: true,
3038
+ request_schema: "SmsQuoteCreate",
3039
+ response_schema: "SmsQuote",
3040
+ is_list: false,
3041
+ list_item_schema: nil
3042
+ },
3043
+ {
3044
+ operation_id: "sms.quotes.get",
3045
+ resource: "sms.quotes",
3046
+ credential: "workspace",
3047
+ method_name: "get",
3048
+ http_method: "GET",
3049
+ path: "/sms/quotes/{id}",
3050
+ path_params: ["id"],
3051
+ query_params: [],
3052
+ has_body: false,
3053
+ request_schema: nil,
3054
+ response_schema: "SmsQuote",
1046
3055
  is_list: false,
1047
3056
  list_item_schema: nil
1048
3057
  },
1049
3058
  {
1050
- operation_id: "sms.campaigns.delete",
1051
- resource: "sms.campaigns",
1052
- method_name: "delete",
1053
- http_method: "DELETE",
1054
- path: "/sms/campaigns/{id}",
3059
+ operation_id: "sms.recordSmsConsent",
3060
+ resource: "sms",
3061
+ credential: "workspace",
3062
+ method_name: "recordSmsConsent",
3063
+ http_method: "POST",
3064
+ path: "/contacts/{id}/sms-consent",
1055
3065
  path_params: ["id"],
1056
3066
  query_params: [],
1057
- has_body: false,
1058
- request_schema: nil,
1059
- response_schema: nil,
3067
+ has_body: true,
3068
+ request_schema: "SmsConsentRecord",
3069
+ response_schema: "SmsConsentRecorded",
1060
3070
  is_list: false,
1061
3071
  list_item_schema: nil
1062
3072
  },
1063
3073
  {
1064
- operation_id: "sms.campaigns.get",
1065
- resource: "sms.campaigns",
3074
+ operation_id: "sms.registrations.get",
3075
+ resource: "sms.registrations",
3076
+ credential: "workspace",
1066
3077
  method_name: "get",
1067
3078
  http_method: "GET",
1068
- path: "/sms/campaigns/{id}",
3079
+ path: "/sms/registrations/{id}",
1069
3080
  path_params: ["id"],
1070
3081
  query_params: [],
1071
3082
  has_body: false,
1072
3083
  request_schema: nil,
1073
- response_schema: "SmsCampaign",
3084
+ response_schema: "SmsRegistration",
1074
3085
  is_list: false,
1075
3086
  list_item_schema: nil
1076
3087
  },
1077
3088
  {
1078
- operation_id: "sms.campaigns.list",
1079
- resource: "sms.campaigns",
3089
+ operation_id: "sms.registrations.list",
3090
+ resource: "sms.registrations",
3091
+ credential: "workspace",
1080
3092
  method_name: "list",
1081
3093
  http_method: "GET",
1082
- path: "/sms/campaigns",
3094
+ path: "/sms/registrations",
1083
3095
  path_params: [],
1084
- query_params: ["limit", "after", "before", "archived"],
3096
+ query_params: ["limit", "after", "before"],
1085
3097
  has_body: false,
1086
3098
  request_schema: nil,
1087
3099
  response_schema: nil,
1088
3100
  is_list: true,
1089
- list_item_schema: "SmsCampaign"
3101
+ list_item_schema: "SmsRegistration"
1090
3102
  },
1091
3103
  {
1092
- operation_id: "sms.campaigns.pause",
1093
- resource: "sms.campaigns",
1094
- method_name: "pause",
3104
+ operation_id: "sms.registrations.remove",
3105
+ resource: "sms.registrations",
3106
+ credential: "workspace",
3107
+ method_name: "remove",
1095
3108
  http_method: "POST",
1096
- path: "/sms/campaigns/{id}/pause",
3109
+ path: "/sms/registrations/{id}/remove",
1097
3110
  path_params: ["id"],
1098
3111
  query_params: [],
1099
- has_body: false,
1100
- request_schema: nil,
1101
- response_schema: "SmsCampaign",
3112
+ has_body: true,
3113
+ request_schema: "SmsRegistrationRemove",
3114
+ response_schema: "SmsRegistration",
1102
3115
  is_list: false,
1103
3116
  list_item_schema: nil
1104
3117
  },
1105
3118
  {
1106
- operation_id: "sms.campaigns.reschedule",
1107
- resource: "sms.campaigns",
1108
- method_name: "reschedule",
3119
+ operation_id: "sms.registrations.replace",
3120
+ resource: "sms.registrations",
3121
+ credential: "workspace",
3122
+ method_name: "replace",
1109
3123
  http_method: "POST",
1110
- path: "/sms/campaigns/{id}/reschedule",
3124
+ path: "/sms/registrations/{id}/replace",
1111
3125
  path_params: ["id"],
1112
3126
  query_params: [],
1113
3127
  has_body: true,
1114
- request_schema: "SmsCampaignReschedule",
1115
- response_schema: "SmsCampaign",
3128
+ request_schema: "SmsRegistrationReplace",
3129
+ response_schema: "SmsRegistration",
1116
3130
  is_list: false,
1117
3131
  list_item_schema: nil
1118
3132
  },
1119
3133
  {
1120
- operation_id: "sms.campaigns.resume",
1121
- resource: "sms.campaigns",
1122
- method_name: "resume",
3134
+ operation_id: "sms.registrations.requestNumber",
3135
+ resource: "sms.registrations",
3136
+ credential: "workspace",
3137
+ method_name: "requestNumber",
1123
3138
  http_method: "POST",
1124
- path: "/sms/campaigns/{id}/resume",
3139
+ path: "/sms/registrations/{id}/number",
1125
3140
  path_params: ["id"],
1126
3141
  query_params: [],
1127
- has_body: false,
1128
- request_schema: nil,
1129
- response_schema: "SmsCampaign",
3142
+ has_body: true,
3143
+ request_schema: "SmsNumberRetry",
3144
+ response_schema: "SmsNumberRequest",
1130
3145
  is_list: false,
1131
3146
  list_item_schema: nil
1132
3147
  },
1133
3148
  {
1134
- operation_id: "sms.campaigns.send",
1135
- resource: "sms.campaigns",
1136
- method_name: "send",
3149
+ operation_id: "sms.registrations.resubmit",
3150
+ resource: "sms.registrations",
3151
+ credential: "workspace",
3152
+ method_name: "resubmit",
1137
3153
  http_method: "POST",
1138
- path: "/sms/campaigns/{id}/send",
3154
+ path: "/sms/registrations/{id}/resubmit",
1139
3155
  path_params: ["id"],
1140
3156
  query_params: [],
1141
3157
  has_body: true,
1142
- request_schema: "SmsCampaignSend",
1143
- response_schema: "SmsCampaign",
3158
+ request_schema: "SmsCampaignResubmit",
3159
+ response_schema: "SmsRegistrationResubmission",
1144
3160
  is_list: false,
1145
3161
  list_item_schema: nil
1146
3162
  },
1147
3163
  {
1148
- operation_id: "sms.campaigns.update",
1149
- resource: "sms.campaigns",
1150
- method_name: "update",
1151
- http_method: "PATCH",
1152
- path: "/sms/campaigns/{id}",
3164
+ operation_id: "sms.releaseNumber",
3165
+ resource: "sms",
3166
+ credential: "workspace",
3167
+ method_name: "releaseNumber",
3168
+ http_method: "POST",
3169
+ path: "/sms/numbers/{id}/release",
1153
3170
  path_params: ["id"],
1154
3171
  query_params: [],
1155
3172
  has_body: true,
1156
- request_schema: "SmsCampaignUpdate",
1157
- response_schema: "SmsCampaign",
3173
+ request_schema: "SmsNumberRelease",
3174
+ response_schema: "SmsNumber",
1158
3175
  is_list: false,
1159
3176
  list_item_schema: nil
1160
3177
  },
1161
3178
  {
1162
- operation_id: "sms.campaigns.validate",
1163
- resource: "sms.campaigns",
1164
- method_name: "validate",
1165
- http_method: "GET",
1166
- path: "/sms/campaigns/{id}/validate",
1167
- path_params: ["id"],
3179
+ operation_id: "sms.removeBrandDocument",
3180
+ resource: "sms",
3181
+ credential: "workspace",
3182
+ method_name: "removeBrandDocument",
3183
+ http_method: "DELETE",
3184
+ path: "/sms/brands/{id}/documents/{documentId}",
3185
+ path_params: ["id", "documentId"],
1168
3186
  query_params: [],
1169
3187
  has_body: false,
1170
3188
  request_schema: nil,
1171
- response_schema: "SmsCampaignValidation",
3189
+ response_schema: "SmsBrandDocumentDeleted",
1172
3190
  is_list: false,
1173
3191
  list_item_schema: nil
1174
3192
  },
1175
3193
  {
1176
- operation_id: "sms.get",
3194
+ operation_id: "sms.removeJoinKeyword",
1177
3195
  resource: "sms",
1178
- method_name: "get",
1179
- http_method: "GET",
1180
- path: "/sms/{id}",
1181
- path_params: ["id"],
3196
+ credential: "workspace",
3197
+ method_name: "removeJoinKeyword",
3198
+ http_method: "DELETE",
3199
+ path: "/sms/numbers/{id}/join-keywords/{keywordId}",
3200
+ path_params: ["id", "keywordId"],
1182
3201
  query_params: [],
1183
3202
  has_body: false,
1184
3203
  request_schema: nil,
1185
- response_schema: "Sms",
3204
+ response_schema: nil,
1186
3205
  is_list: false,
1187
3206
  list_item_schema: nil
1188
3207
  },
1189
3208
  {
1190
- operation_id: "sms.list",
1191
- resource: "sms",
1192
- method_name: "list",
1193
- http_method: "GET",
1194
- path: "/sms",
1195
- path_params: [],
1196
- query_params: ["limit", "after", "before", "direction", "status", "from", "to", "participant", "contact_id", "campaign_id", "created_after", "created_before"],
1197
- has_body: false,
1198
- request_schema: nil,
1199
- response_schema: nil,
1200
- is_list: true,
1201
- list_item_schema: "Sms"
1202
- },
1203
- {
1204
- operation_id: "sms.numbers",
3209
+ operation_id: "sms.requestSmsOptIn",
1205
3210
  resource: "sms",
1206
- method_name: "numbers",
1207
- http_method: "GET",
1208
- path: "/sms/numbers",
1209
- path_params: [],
1210
- query_params: ["limit", "after", "before"],
1211
- has_body: false,
1212
- request_schema: nil,
1213
- response_schema: nil,
1214
- is_list: true,
1215
- list_item_schema: "SmsNumber"
3211
+ credential: "workspace",
3212
+ method_name: "requestSmsOptIn",
3213
+ http_method: "POST",
3214
+ path: "/contacts/{id}/sms-opt-in-request",
3215
+ path_params: ["id"],
3216
+ query_params: [],
3217
+ has_body: true,
3218
+ request_schema: "SmsOptInRequest",
3219
+ response_schema: "Sms",
3220
+ is_list: false,
3221
+ list_item_schema: nil
1216
3222
  },
1217
3223
  {
1218
- operation_id: "sms.recordSmsConsent",
3224
+ operation_id: "sms.resubmitNumber",
1219
3225
  resource: "sms",
1220
- method_name: "recordSmsConsent",
3226
+ credential: "workspace",
3227
+ method_name: "resubmitNumber",
1221
3228
  http_method: "POST",
1222
- path: "/contacts/{id}/sms-consent",
3229
+ path: "/sms/numbers/{id}/resubmit",
1223
3230
  path_params: ["id"],
1224
3231
  query_params: [],
1225
3232
  has_body: true,
1226
- request_schema: "SmsConsentRecord",
1227
- response_schema: "SmsConsentRecorded",
3233
+ request_schema: "SmsTollFreeResubmit",
3234
+ response_schema: "SmsNumberResubmission",
1228
3235
  is_list: false,
1229
3236
  list_item_schema: nil
1230
3237
  },
1231
3238
  {
1232
3239
  operation_id: "sms.send",
1233
3240
  resource: "sms",
3241
+ credential: "workspace",
1234
3242
  method_name: "send",
1235
3243
  http_method: "POST",
1236
3244
  path: "/sms",
@@ -1245,6 +3253,7 @@ module Unitpost
1245
3253
  {
1246
3254
  operation_id: "sms.smsConsent",
1247
3255
  resource: "sms",
3256
+ credential: "workspace",
1248
3257
  method_name: "smsConsent",
1249
3258
  http_method: "GET",
1250
3259
  path: "/contacts/{id}/sms-consent",
@@ -1259,6 +3268,7 @@ module Unitpost
1259
3268
  {
1260
3269
  operation_id: "sms.stats",
1261
3270
  resource: "sms",
3271
+ credential: "workspace",
1262
3272
  method_name: "stats",
1263
3273
  http_method: "GET",
1264
3274
  path: "/sms/stats",
@@ -1273,6 +3283,7 @@ module Unitpost
1273
3283
  {
1274
3284
  operation_id: "sms.templates.create",
1275
3285
  resource: "sms.templates",
3286
+ credential: "workspace",
1276
3287
  method_name: "create",
1277
3288
  http_method: "POST",
1278
3289
  path: "/sms/templates",
@@ -1287,6 +3298,7 @@ module Unitpost
1287
3298
  {
1288
3299
  operation_id: "sms.templates.delete",
1289
3300
  resource: "sms.templates",
3301
+ credential: "workspace",
1290
3302
  method_name: "delete",
1291
3303
  http_method: "DELETE",
1292
3304
  path: "/sms/templates/{id}",
@@ -1301,6 +3313,7 @@ module Unitpost
1301
3313
  {
1302
3314
  operation_id: "sms.templates.get",
1303
3315
  resource: "sms.templates",
3316
+ credential: "workspace",
1304
3317
  method_name: "get",
1305
3318
  http_method: "GET",
1306
3319
  path: "/sms/templates/{id}",
@@ -1315,6 +3328,7 @@ module Unitpost
1315
3328
  {
1316
3329
  operation_id: "sms.templates.list",
1317
3330
  resource: "sms.templates",
3331
+ credential: "workspace",
1318
3332
  method_name: "list",
1319
3333
  http_method: "GET",
1320
3334
  path: "/sms/templates",
@@ -1326,9 +3340,25 @@ module Unitpost
1326
3340
  is_list: true,
1327
3341
  list_item_schema: "SmsTemplate"
1328
3342
  },
3343
+ {
3344
+ operation_id: "sms.templates.testSend",
3345
+ resource: "sms.templates",
3346
+ credential: "workspace",
3347
+ method_name: "testSend",
3348
+ http_method: "POST",
3349
+ path: "/sms/templates/{id}/test-send",
3350
+ path_params: ["id"],
3351
+ query_params: [],
3352
+ has_body: true,
3353
+ request_schema: "SmsTemplateTestSend",
3354
+ response_schema: "SmsTemplateTestSendResult",
3355
+ is_list: false,
3356
+ list_item_schema: nil
3357
+ },
1329
3358
  {
1330
3359
  operation_id: "sms.templates.update",
1331
3360
  resource: "sms.templates",
3361
+ credential: "workspace",
1332
3362
  method_name: "update",
1333
3363
  http_method: "PATCH",
1334
3364
  path: "/sms/templates/{id}",
@@ -1340,9 +3370,55 @@ module Unitpost
1340
3370
  is_list: false,
1341
3371
  list_item_schema: nil
1342
3372
  },
3373
+ {
3374
+ operation_id: "sms.templates.usage",
3375
+ resource: "sms.templates",
3376
+ credential: "workspace",
3377
+ method_name: "usage",
3378
+ http_method: "GET",
3379
+ path: "/sms/templates/{id}/usage",
3380
+ path_params: ["id"],
3381
+ query_params: [],
3382
+ has_body: false,
3383
+ request_schema: nil,
3384
+ response_schema: "SmsTemplateUsage",
3385
+ is_list: false,
3386
+ list_item_schema: nil
3387
+ },
3388
+ {
3389
+ operation_id: "sms.testDestinations.delete",
3390
+ resource: "sms.testDestinations",
3391
+ credential: "workspace",
3392
+ method_name: "delete",
3393
+ http_method: "DELETE",
3394
+ path: "/sms/test-destinations/{id}",
3395
+ path_params: ["id"],
3396
+ query_params: [],
3397
+ has_body: false,
3398
+ request_schema: nil,
3399
+ response_schema: nil,
3400
+ is_list: false,
3401
+ list_item_schema: nil
3402
+ },
3403
+ {
3404
+ operation_id: "sms.testDestinations.list",
3405
+ resource: "sms.testDestinations",
3406
+ credential: "workspace",
3407
+ method_name: "list",
3408
+ http_method: "GET",
3409
+ path: "/sms/test-destinations",
3410
+ path_params: [],
3411
+ query_params: ["limit", "after", "before"],
3412
+ has_body: false,
3413
+ request_schema: nil,
3414
+ response_schema: nil,
3415
+ is_list: true,
3416
+ list_item_schema: "SmsTestDestination"
3417
+ },
1343
3418
  {
1344
3419
  operation_id: "sms.topics.create",
1345
3420
  resource: "sms.topics",
3421
+ credential: "workspace",
1346
3422
  method_name: "create",
1347
3423
  http_method: "POST",
1348
3424
  path: "/sms/topics",
@@ -1357,6 +3433,7 @@ module Unitpost
1357
3433
  {
1358
3434
  operation_id: "sms.topics.delete",
1359
3435
  resource: "sms.topics",
3436
+ credential: "workspace",
1360
3437
  method_name: "delete",
1361
3438
  http_method: "DELETE",
1362
3439
  path: "/sms/topics/{id}",
@@ -1371,6 +3448,7 @@ module Unitpost
1371
3448
  {
1372
3449
  operation_id: "sms.topics.get",
1373
3450
  resource: "sms.topics",
3451
+ credential: "workspace",
1374
3452
  method_name: "get",
1375
3453
  http_method: "GET",
1376
3454
  path: "/sms/topics/{id}",
@@ -1385,6 +3463,7 @@ module Unitpost
1385
3463
  {
1386
3464
  operation_id: "sms.topics.list",
1387
3465
  resource: "sms.topics",
3466
+ credential: "workspace",
1388
3467
  method_name: "list",
1389
3468
  http_method: "GET",
1390
3469
  path: "/sms/topics",
@@ -1396,9 +3475,25 @@ module Unitpost
1396
3475
  is_list: true,
1397
3476
  list_item_schema: "Topic"
1398
3477
  },
3478
+ {
3479
+ operation_id: "sms.topics.optOut",
3480
+ resource: "sms.topics",
3481
+ credential: "workspace",
3482
+ method_name: "optOut",
3483
+ http_method: "POST",
3484
+ path: "/sms/topics/{id}/opt-out",
3485
+ path_params: ["id"],
3486
+ query_params: [],
3487
+ has_body: true,
3488
+ request_schema: "TopicOptOut",
3489
+ response_schema: "Job",
3490
+ is_list: false,
3491
+ list_item_schema: nil
3492
+ },
1399
3493
  {
1400
3494
  operation_id: "sms.topics.update",
1401
3495
  resource: "sms.topics",
3496
+ credential: "workspace",
1402
3497
  method_name: "update",
1403
3498
  http_method: "PATCH",
1404
3499
  path: "/sms/topics/{id}",
@@ -1413,6 +3508,7 @@ module Unitpost
1413
3508
  {
1414
3509
  operation_id: "sms.update",
1415
3510
  resource: "sms",
3511
+ credential: "workspace",
1416
3512
  method_name: "update",
1417
3513
  http_method: "PATCH",
1418
3514
  path: "/sms/{id}",
@@ -1424,9 +3520,55 @@ module Unitpost
1424
3520
  is_list: false,
1425
3521
  list_item_schema: nil
1426
3522
  },
3523
+ {
3524
+ operation_id: "sms.updateBrand",
3525
+ resource: "sms",
3526
+ credential: "workspace",
3527
+ method_name: "updateBrand",
3528
+ http_method: "PATCH",
3529
+ path: "/sms/brands/{id}",
3530
+ path_params: ["id"],
3531
+ query_params: [],
3532
+ has_body: true,
3533
+ request_schema: "SmsBrandPatch",
3534
+ response_schema: "SmsBrand",
3535
+ is_list: false,
3536
+ list_item_schema: nil
3537
+ },
3538
+ {
3539
+ operation_id: "spendCaps.get",
3540
+ resource: "spendCaps",
3541
+ credential: "workspace",
3542
+ method_name: "get",
3543
+ http_method: "GET",
3544
+ path: "/spend-caps",
3545
+ path_params: [],
3546
+ query_params: [],
3547
+ has_body: false,
3548
+ request_schema: nil,
3549
+ response_schema: "SpendCaps",
3550
+ is_list: false,
3551
+ list_item_schema: nil
3552
+ },
3553
+ {
3554
+ operation_id: "spendCaps.update",
3555
+ resource: "spendCaps",
3556
+ credential: "workspace",
3557
+ method_name: "update",
3558
+ http_method: "PATCH",
3559
+ path: "/spend-caps",
3560
+ path_params: [],
3561
+ query_params: [],
3562
+ has_body: true,
3563
+ request_schema: "SpendCapsUpdate",
3564
+ response_schema: "SpendCaps",
3565
+ is_list: false,
3566
+ list_item_schema: nil
3567
+ },
1427
3568
  {
1428
3569
  operation_id: "suppressions.create",
1429
3570
  resource: "suppressions",
3571
+ credential: "workspace",
1430
3572
  method_name: "create",
1431
3573
  http_method: "POST",
1432
3574
  path: "/suppressions",
@@ -1441,6 +3583,7 @@ module Unitpost
1441
3583
  {
1442
3584
  operation_id: "suppressions.delete",
1443
3585
  resource: "suppressions",
3586
+ credential: "workspace",
1444
3587
  method_name: "delete",
1445
3588
  http_method: "DELETE",
1446
3589
  path: "/suppressions/{id}",
@@ -1455,6 +3598,7 @@ module Unitpost
1455
3598
  {
1456
3599
  operation_id: "suppressions.get",
1457
3600
  resource: "suppressions",
3601
+ credential: "workspace",
1458
3602
  method_name: "get",
1459
3603
  http_method: "GET",
1460
3604
  path: "/suppressions/{id}",
@@ -1469,11 +3613,12 @@ module Unitpost
1469
3613
  {
1470
3614
  operation_id: "suppressions.list",
1471
3615
  resource: "suppressions",
3616
+ credential: "workspace",
1472
3617
  method_name: "list",
1473
3618
  http_method: "GET",
1474
3619
  path: "/suppressions",
1475
3620
  path_params: [],
1476
- query_params: ["limit", "after", "before", "scope"],
3621
+ query_params: ["limit", "after", "before", "q", "reason", "created_after", "created_before", "scope"],
1477
3622
  has_body: false,
1478
3623
  request_schema: nil,
1479
3624
  response_schema: nil,
@@ -1483,6 +3628,7 @@ module Unitpost
1483
3628
  {
1484
3629
  operation_id: "usage.get",
1485
3630
  resource: "usage",
3631
+ credential: "workspace",
1486
3632
  method_name: "get",
1487
3633
  http_method: "GET",
1488
3634
  path: "/usage",
@@ -1497,6 +3643,7 @@ module Unitpost
1497
3643
  {
1498
3644
  operation_id: "webhooks.create",
1499
3645
  resource: "webhooks",
3646
+ credential: "workspace",
1500
3647
  method_name: "create",
1501
3648
  http_method: "POST",
1502
3649
  path: "/webhooks",
@@ -1511,6 +3658,7 @@ module Unitpost
1511
3658
  {
1512
3659
  operation_id: "webhooks.delete",
1513
3660
  resource: "webhooks",
3661
+ credential: "workspace",
1514
3662
  method_name: "delete",
1515
3663
  http_method: "DELETE",
1516
3664
  path: "/webhooks/{id}",
@@ -1522,9 +3670,25 @@ module Unitpost
1522
3670
  is_list: false,
1523
3671
  list_item_schema: nil
1524
3672
  },
3673
+ {
3674
+ operation_id: "webhooks.flush",
3675
+ resource: "webhooks",
3676
+ credential: "workspace",
3677
+ method_name: "flush",
3678
+ http_method: "POST",
3679
+ path: "/webhooks/{id}/flush",
3680
+ path_params: ["id"],
3681
+ query_params: [],
3682
+ has_body: true,
3683
+ request_schema: "WebhookFlush",
3684
+ response_schema: "WebhookFlushResult",
3685
+ is_list: false,
3686
+ list_item_schema: nil
3687
+ },
1525
3688
  {
1526
3689
  operation_id: "webhooks.get",
1527
3690
  resource: "webhooks",
3691
+ credential: "workspace",
1528
3692
  method_name: "get",
1529
3693
  http_method: "GET",
1530
3694
  path: "/webhooks/{id}",
@@ -1539,6 +3703,7 @@ module Unitpost
1539
3703
  {
1540
3704
  operation_id: "webhooks.list",
1541
3705
  resource: "webhooks",
3706
+ credential: "workspace",
1542
3707
  method_name: "list",
1543
3708
  http_method: "GET",
1544
3709
  path: "/webhooks",
@@ -1553,20 +3718,37 @@ module Unitpost
1553
3718
  {
1554
3719
  operation_id: "webhooks.listDeliveries",
1555
3720
  resource: "webhooks",
3721
+ credential: "workspace",
1556
3722
  method_name: "listDeliveries",
1557
3723
  http_method: "GET",
1558
3724
  path: "/webhooks/{id}/deliveries",
1559
3725
  path_params: ["id"],
1560
- query_params: ["limit", "after", "before"],
3726
+ query_params: ["limit", "after", "before", "status", "event_type"],
1561
3727
  has_body: false,
1562
3728
  request_schema: nil,
1563
3729
  response_schema: nil,
1564
3730
  is_list: true,
1565
3731
  list_item_schema: "WebhookDelivery"
1566
3732
  },
3733
+ {
3734
+ operation_id: "webhooks.replayDelivery",
3735
+ resource: "webhooks",
3736
+ credential: "workspace",
3737
+ method_name: "replayDelivery",
3738
+ http_method: "POST",
3739
+ path: "/webhooks/{id}/deliveries/{delivery}/replay",
3740
+ path_params: ["id", "delivery"],
3741
+ query_params: [],
3742
+ has_body: false,
3743
+ request_schema: nil,
3744
+ response_schema: "WebhookDeliveryReplay",
3745
+ is_list: false,
3746
+ list_item_schema: nil
3747
+ },
1567
3748
  {
1568
3749
  operation_id: "webhooks.rotateSecret",
1569
3750
  resource: "webhooks",
3751
+ credential: "workspace",
1570
3752
  method_name: "rotateSecret",
1571
3753
  http_method: "POST",
1572
3754
  path: "/webhooks/{id}/rotate-secret",
@@ -1581,6 +3763,7 @@ module Unitpost
1581
3763
  {
1582
3764
  operation_id: "webhooks.test",
1583
3765
  resource: "webhooks",
3766
+ credential: "workspace",
1584
3767
  method_name: "test",
1585
3768
  http_method: "POST",
1586
3769
  path: "/webhooks/{id}/test",
@@ -1595,6 +3778,7 @@ module Unitpost
1595
3778
  {
1596
3779
  operation_id: "webhooks.update",
1597
3780
  resource: "webhooks",
3781
+ credential: "workspace",
1598
3782
  method_name: "update",
1599
3783
  http_method: "PATCH",
1600
3784
  path: "/webhooks/{id}",
@@ -1606,6 +3790,81 @@ module Unitpost
1606
3790
  is_list: false,
1607
3791
  list_item_schema: nil
1608
3792
  },
3793
+ {
3794
+ operation_id: "workspace.listActivity",
3795
+ resource: "workspace",
3796
+ credential: "workspace",
3797
+ method_name: "listActivity",
3798
+ http_method: "GET",
3799
+ path: "/activity",
3800
+ path_params: [],
3801
+ query_params: ["limit", "after", "before", "subject", "subject_id", "contact_id", "campaign_id", "q", "channel"],
3802
+ has_body: false,
3803
+ request_schema: nil,
3804
+ response_schema: nil,
3805
+ is_list: true,
3806
+ list_item_schema: "Activity"
3807
+ },
3808
+ {
3809
+ operation_id: "workspace.removeImage",
3810
+ resource: "workspace",
3811
+ credential: "workspace",
3812
+ method_name: "removeImage",
3813
+ http_method: "DELETE",
3814
+ path: "/workspace/image",
3815
+ path_params: [],
3816
+ query_params: [],
3817
+ has_body: false,
3818
+ request_schema: nil,
3819
+ response_schema: "Workspace",
3820
+ is_list: false,
3821
+ list_item_schema: nil
3822
+ },
3823
+ {
3824
+ operation_id: "workspace.setImage",
3825
+ resource: "workspace",
3826
+ credential: "workspace",
3827
+ method_name: "setImage",
3828
+ http_method: "PUT",
3829
+ path: "/workspace/image",
3830
+ path_params: [],
3831
+ query_params: [],
3832
+ has_body: true,
3833
+ request_schema: "ImageUpload",
3834
+ response_schema: "Workspace",
3835
+ is_list: false,
3836
+ list_item_schema: nil
3837
+ },
3838
+ {
3839
+ operation_id: "workspace.update",
3840
+ resource: "workspace",
3841
+ credential: "workspace",
3842
+ method_name: "update",
3843
+ http_method: "PATCH",
3844
+ path: "/workspace",
3845
+ path_params: [],
3846
+ query_params: [],
3847
+ has_body: true,
3848
+ request_schema: "WorkspaceUpdate",
3849
+ response_schema: "Workspace",
3850
+ is_list: false,
3851
+ list_item_schema: nil
3852
+ },
3853
+ {
3854
+ operation_id: "workspace.whoami",
3855
+ resource: "workspace",
3856
+ credential: "workspace",
3857
+ method_name: "whoami",
3858
+ http_method: "GET",
3859
+ path: "/whoami",
3860
+ path_params: [],
3861
+ query_params: [],
3862
+ has_body: false,
3863
+ request_schema: nil,
3864
+ response_schema: "Whoami",
3865
+ is_list: false,
3866
+ list_item_schema: nil
3867
+ },
1609
3868
  ].freeze
1610
3869
  end
1611
3870
  end