unitpost 0.0.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1121 @@
1
+ # Code generated by @unitpost/sdk-codegen from the public OpenAPI spec.
2
+ # DO NOT EDIT BY HAND. Run `npm run sdk:generate` to regenerate.
3
+ # Source of truth: apps/web/docs/openapi.json (itself derived from the API's
4
+ # Zod schemas and CI-gated for drift).
5
+
6
+ # frozen_string_literal: true
7
+
8
+ module Unitpost
9
+ module Generated
10
+ API_VERSION = "v1"
11
+
12
+ OPERATIONS = [
13
+ {
14
+ operation_id: "apiKeys.create",
15
+ resource: "apiKeys",
16
+ method_name: "create",
17
+ http_method: "POST",
18
+ path: "/api-keys",
19
+ path_params: [],
20
+ query_params: [],
21
+ has_body: true,
22
+ request_schema: "ApiKeyCreate",
23
+ response_schema: "ApiKeyCreated",
24
+ is_list: false,
25
+ list_item_schema: nil
26
+ },
27
+ {
28
+ operation_id: "apiKeys.delete",
29
+ resource: "apiKeys",
30
+ method_name: "delete",
31
+ http_method: "DELETE",
32
+ path: "/api-keys/{id}",
33
+ path_params: ["id"],
34
+ query_params: [],
35
+ has_body: false,
36
+ request_schema: nil,
37
+ response_schema: nil,
38
+ is_list: false,
39
+ list_item_schema: nil
40
+ },
41
+ {
42
+ operation_id: "apiKeys.list",
43
+ resource: "apiKeys",
44
+ method_name: "list",
45
+ http_method: "GET",
46
+ path: "/api-keys",
47
+ path_params: [],
48
+ query_params: ["limit", "after", "before"],
49
+ has_body: false,
50
+ request_schema: nil,
51
+ response_schema: nil,
52
+ is_list: true,
53
+ list_item_schema: "ApiKey"
54
+ },
55
+ {
56
+ operation_id: "brandkits.get",
57
+ resource: "brandkits",
58
+ method_name: "get",
59
+ http_method: "GET",
60
+ path: "/brand-kits/{id}",
61
+ path_params: ["id"],
62
+ query_params: [],
63
+ has_body: false,
64
+ request_schema: nil,
65
+ response_schema: "BrandKit",
66
+ is_list: false,
67
+ list_item_schema: nil
68
+ },
69
+ {
70
+ operation_id: "brandkits.list",
71
+ resource: "brandkits",
72
+ method_name: "list",
73
+ http_method: "GET",
74
+ path: "/brand-kits",
75
+ path_params: [],
76
+ query_params: ["name"],
77
+ has_body: false,
78
+ request_schema: nil,
79
+ response_schema: "BrandKitList",
80
+ is_list: false,
81
+ list_item_schema: nil
82
+ },
83
+ {
84
+ operation_id: "campaigns.cancel",
85
+ resource: "campaigns",
86
+ method_name: "cancel",
87
+ http_method: "POST",
88
+ path: "/campaigns/{id}/cancel",
89
+ path_params: ["id"],
90
+ query_params: [],
91
+ has_body: false,
92
+ request_schema: nil,
93
+ response_schema: "Campaign",
94
+ is_list: false,
95
+ list_item_schema: nil
96
+ },
97
+ {
98
+ operation_id: "campaigns.create",
99
+ resource: "campaigns",
100
+ method_name: "create",
101
+ http_method: "POST",
102
+ path: "/campaigns",
103
+ path_params: [],
104
+ query_params: [],
105
+ has_body: true,
106
+ request_schema: "CampaignCreate",
107
+ response_schema: "Campaign",
108
+ is_list: false,
109
+ list_item_schema: nil
110
+ },
111
+ {
112
+ operation_id: "campaigns.delete",
113
+ resource: "campaigns",
114
+ method_name: "delete",
115
+ http_method: "DELETE",
116
+ path: "/campaigns/{id}",
117
+ path_params: ["id"],
118
+ query_params: [],
119
+ has_body: false,
120
+ request_schema: nil,
121
+ response_schema: nil,
122
+ is_list: false,
123
+ list_item_schema: nil
124
+ },
125
+ {
126
+ operation_id: "campaigns.get",
127
+ resource: "campaigns",
128
+ method_name: "get",
129
+ http_method: "GET",
130
+ path: "/campaigns/{id}",
131
+ path_params: ["id"],
132
+ query_params: [],
133
+ has_body: false,
134
+ request_schema: nil,
135
+ response_schema: "Campaign",
136
+ is_list: false,
137
+ list_item_schema: nil
138
+ },
139
+ {
140
+ operation_id: "campaigns.list",
141
+ resource: "campaigns",
142
+ method_name: "list",
143
+ http_method: "GET",
144
+ path: "/campaigns",
145
+ path_params: [],
146
+ query_params: ["limit", "after", "before"],
147
+ has_body: false,
148
+ request_schema: nil,
149
+ response_schema: nil,
150
+ is_list: true,
151
+ list_item_schema: "Campaign"
152
+ },
153
+ {
154
+ operation_id: "campaigns.pause",
155
+ resource: "campaigns",
156
+ method_name: "pause",
157
+ http_method: "POST",
158
+ path: "/campaigns/{id}/pause",
159
+ path_params: ["id"],
160
+ query_params: [],
161
+ has_body: false,
162
+ request_schema: nil,
163
+ response_schema: "Campaign",
164
+ is_list: false,
165
+ list_item_schema: nil
166
+ },
167
+ {
168
+ operation_id: "campaigns.reschedule",
169
+ resource: "campaigns",
170
+ method_name: "reschedule",
171
+ http_method: "POST",
172
+ path: "/campaigns/{id}/reschedule",
173
+ path_params: ["id"],
174
+ query_params: [],
175
+ has_body: true,
176
+ request_schema: "CampaignReschedule",
177
+ response_schema: "Campaign",
178
+ is_list: false,
179
+ list_item_schema: nil
180
+ },
181
+ {
182
+ operation_id: "campaigns.resume",
183
+ resource: "campaigns",
184
+ method_name: "resume",
185
+ http_method: "POST",
186
+ path: "/campaigns/{id}/resume",
187
+ path_params: ["id"],
188
+ query_params: [],
189
+ has_body: false,
190
+ request_schema: nil,
191
+ response_schema: "Campaign",
192
+ is_list: false,
193
+ list_item_schema: nil
194
+ },
195
+ {
196
+ operation_id: "campaigns.send",
197
+ resource: "campaigns",
198
+ method_name: "send",
199
+ http_method: "POST",
200
+ path: "/campaigns/{id}/send",
201
+ path_params: ["id"],
202
+ query_params: [],
203
+ has_body: false,
204
+ request_schema: nil,
205
+ response_schema: "Campaign",
206
+ is_list: false,
207
+ list_item_schema: nil
208
+ },
209
+ {
210
+ operation_id: "campaigns.update",
211
+ resource: "campaigns",
212
+ method_name: "update",
213
+ http_method: "PATCH",
214
+ path: "/campaigns/{id}",
215
+ path_params: ["id"],
216
+ query_params: [],
217
+ has_body: true,
218
+ request_schema: "CampaignUpdate",
219
+ response_schema: "Campaign",
220
+ is_list: false,
221
+ list_item_schema: nil
222
+ },
223
+ {
224
+ operation_id: "campaigns.validate",
225
+ resource: "campaigns",
226
+ method_name: "validate",
227
+ http_method: "GET",
228
+ path: "/campaigns/{id}/validate",
229
+ path_params: ["id"],
230
+ query_params: [],
231
+ has_body: false,
232
+ request_schema: nil,
233
+ response_schema: nil,
234
+ is_list: false,
235
+ list_item_schema: nil
236
+ },
237
+ {
238
+ operation_id: "contactFields.create",
239
+ resource: "contactFields",
240
+ method_name: "create",
241
+ http_method: "POST",
242
+ path: "/contact-fields",
243
+ path_params: [],
244
+ query_params: [],
245
+ has_body: true,
246
+ request_schema: "ContactFieldCreate",
247
+ response_schema: "ContactField",
248
+ is_list: false,
249
+ list_item_schema: nil
250
+ },
251
+ {
252
+ operation_id: "contactFields.delete",
253
+ resource: "contactFields",
254
+ method_name: "delete",
255
+ http_method: "DELETE",
256
+ path: "/contact-fields/{id}",
257
+ path_params: ["id"],
258
+ query_params: [],
259
+ has_body: false,
260
+ request_schema: nil,
261
+ response_schema: nil,
262
+ is_list: false,
263
+ list_item_schema: nil
264
+ },
265
+ {
266
+ operation_id: "contactFields.get",
267
+ resource: "contactFields",
268
+ method_name: "get",
269
+ http_method: "GET",
270
+ path: "/contact-fields/{id}",
271
+ path_params: ["id"],
272
+ query_params: [],
273
+ has_body: false,
274
+ request_schema: nil,
275
+ response_schema: "ContactField",
276
+ is_list: false,
277
+ list_item_schema: nil
278
+ },
279
+ {
280
+ operation_id: "contactFields.list",
281
+ resource: "contactFields",
282
+ method_name: "list",
283
+ http_method: "GET",
284
+ path: "/contact-fields",
285
+ path_params: [],
286
+ query_params: ["limit", "after", "before"],
287
+ has_body: false,
288
+ request_schema: nil,
289
+ response_schema: nil,
290
+ is_list: true,
291
+ list_item_schema: "ContactField"
292
+ },
293
+ {
294
+ operation_id: "contactFields.rename",
295
+ resource: "contactFields",
296
+ method_name: "rename",
297
+ http_method: "POST",
298
+ path: "/contact-fields/{id}/rename",
299
+ path_params: ["id"],
300
+ query_params: [],
301
+ has_body: true,
302
+ request_schema: "ContactFieldRename",
303
+ response_schema: "ContactField",
304
+ is_list: false,
305
+ list_item_schema: nil
306
+ },
307
+ {
308
+ operation_id: "contactFields.update",
309
+ resource: "contactFields",
310
+ method_name: "update",
311
+ http_method: "PATCH",
312
+ path: "/contact-fields/{id}",
313
+ path_params: ["id"],
314
+ query_params: [],
315
+ has_body: true,
316
+ request_schema: "ContactFieldUpdate",
317
+ response_schema: "ContactField",
318
+ is_list: false,
319
+ list_item_schema: nil
320
+ },
321
+ {
322
+ operation_id: "contacts.create",
323
+ resource: "contacts",
324
+ method_name: "create",
325
+ http_method: "POST",
326
+ path: "/contacts",
327
+ path_params: [],
328
+ query_params: [],
329
+ has_body: true,
330
+ request_schema: "ContactCreate",
331
+ response_schema: "Contact",
332
+ is_list: false,
333
+ list_item_schema: nil
334
+ },
335
+ {
336
+ operation_id: "contacts.delete",
337
+ resource: "contacts",
338
+ method_name: "delete",
339
+ http_method: "DELETE",
340
+ path: "/contacts/{id}",
341
+ path_params: ["id"],
342
+ query_params: [],
343
+ has_body: false,
344
+ request_schema: nil,
345
+ response_schema: nil,
346
+ is_list: false,
347
+ list_item_schema: nil
348
+ },
349
+ {
350
+ operation_id: "contacts.get",
351
+ resource: "contacts",
352
+ method_name: "get",
353
+ http_method: "GET",
354
+ path: "/contacts/{id}",
355
+ path_params: ["id"],
356
+ query_params: [],
357
+ has_body: false,
358
+ request_schema: nil,
359
+ response_schema: "Contact",
360
+ is_list: false,
361
+ list_item_schema: nil
362
+ },
363
+ {
364
+ operation_id: "contacts.getImport",
365
+ resource: "contacts",
366
+ method_name: "getImport",
367
+ http_method: "GET",
368
+ path: "/contacts/imports/{id}",
369
+ path_params: ["id"],
370
+ query_params: [],
371
+ has_body: false,
372
+ request_schema: nil,
373
+ response_schema: "ContactImport",
374
+ is_list: false,
375
+ list_item_schema: nil
376
+ },
377
+ {
378
+ operation_id: "contacts.import",
379
+ resource: "contacts",
380
+ method_name: "import",
381
+ http_method: "POST",
382
+ path: "/contacts/imports",
383
+ path_params: [],
384
+ query_params: [],
385
+ has_body: true,
386
+ request_schema: "ContactImportCreate",
387
+ response_schema: "ContactImport",
388
+ is_list: false,
389
+ list_item_schema: nil
390
+ },
391
+ {
392
+ operation_id: "contacts.list",
393
+ resource: "contacts",
394
+ method_name: "list",
395
+ http_method: "GET",
396
+ path: "/contacts",
397
+ path_params: [],
398
+ query_params: ["limit", "after", "before"],
399
+ has_body: false,
400
+ request_schema: nil,
401
+ response_schema: nil,
402
+ is_list: true,
403
+ list_item_schema: "Contact"
404
+ },
405
+ {
406
+ operation_id: "contacts.listImports",
407
+ resource: "contacts",
408
+ method_name: "listImports",
409
+ http_method: "GET",
410
+ path: "/contacts/imports",
411
+ path_params: [],
412
+ query_params: ["limit", "after", "before"],
413
+ has_body: false,
414
+ request_schema: nil,
415
+ response_schema: nil,
416
+ is_list: true,
417
+ list_item_schema: "ContactImport"
418
+ },
419
+ {
420
+ operation_id: "contacts.update",
421
+ resource: "contacts",
422
+ method_name: "update",
423
+ http_method: "PATCH",
424
+ path: "/contacts/{id}",
425
+ path_params: ["id"],
426
+ query_params: [],
427
+ has_body: true,
428
+ request_schema: "ContactUpdate",
429
+ response_schema: "Contact",
430
+ is_list: false,
431
+ list_item_schema: nil
432
+ },
433
+ {
434
+ operation_id: "domains.create",
435
+ resource: "domains",
436
+ method_name: "create",
437
+ http_method: "POST",
438
+ path: "/domains",
439
+ path_params: [],
440
+ query_params: [],
441
+ has_body: true,
442
+ request_schema: "DomainCreate",
443
+ response_schema: "Domain",
444
+ is_list: false,
445
+ list_item_schema: nil
446
+ },
447
+ {
448
+ operation_id: "domains.delete",
449
+ resource: "domains",
450
+ method_name: "delete",
451
+ http_method: "DELETE",
452
+ path: "/domains/{id}",
453
+ path_params: ["id"],
454
+ query_params: [],
455
+ has_body: false,
456
+ request_schema: nil,
457
+ response_schema: nil,
458
+ is_list: false,
459
+ list_item_schema: nil
460
+ },
461
+ {
462
+ operation_id: "domains.get",
463
+ resource: "domains",
464
+ method_name: "get",
465
+ http_method: "GET",
466
+ path: "/domains/{id}",
467
+ path_params: ["id"],
468
+ query_params: [],
469
+ has_body: false,
470
+ request_schema: nil,
471
+ response_schema: "Domain",
472
+ is_list: false,
473
+ list_item_schema: nil
474
+ },
475
+ {
476
+ operation_id: "domains.list",
477
+ resource: "domains",
478
+ method_name: "list",
479
+ http_method: "GET",
480
+ path: "/domains",
481
+ path_params: [],
482
+ query_params: ["limit", "after", "before"],
483
+ has_body: false,
484
+ request_schema: nil,
485
+ response_schema: nil,
486
+ is_list: true,
487
+ list_item_schema: "Domain"
488
+ },
489
+ {
490
+ operation_id: "domains.update",
491
+ resource: "domains",
492
+ method_name: "update",
493
+ http_method: "PATCH",
494
+ path: "/domains/{id}",
495
+ path_params: ["id"],
496
+ query_params: [],
497
+ has_body: true,
498
+ request_schema: "DomainUpdate",
499
+ response_schema: "Domain",
500
+ is_list: false,
501
+ list_item_schema: nil
502
+ },
503
+ {
504
+ operation_id: "domains.verify",
505
+ resource: "domains",
506
+ method_name: "verify",
507
+ http_method: "POST",
508
+ path: "/domains/{id}/verify",
509
+ path_params: ["id"],
510
+ query_params: [],
511
+ has_body: false,
512
+ request_schema: nil,
513
+ response_schema: "Domain",
514
+ is_list: false,
515
+ list_item_schema: nil
516
+ },
517
+ {
518
+ operation_id: "emails.batch",
519
+ resource: "emails",
520
+ method_name: "batch",
521
+ http_method: "POST",
522
+ path: "/emails/batch",
523
+ path_params: [],
524
+ query_params: [],
525
+ has_body: true,
526
+ request_schema: "BatchSend",
527
+ response_schema: "BatchSendResult",
528
+ is_list: false,
529
+ list_item_schema: nil
530
+ },
531
+ {
532
+ operation_id: "emails.cancelBatch",
533
+ resource: "emails",
534
+ method_name: "cancelBatch",
535
+ http_method: "POST",
536
+ path: "/emails/batches/{id}/cancel",
537
+ path_params: ["id"],
538
+ query_params: [],
539
+ has_body: false,
540
+ request_schema: nil,
541
+ response_schema: "Batch",
542
+ is_list: false,
543
+ list_item_schema: nil
544
+ },
545
+ {
546
+ operation_id: "emails.get",
547
+ resource: "emails",
548
+ method_name: "get",
549
+ http_method: "GET",
550
+ path: "/emails/{id}",
551
+ path_params: ["id"],
552
+ query_params: [],
553
+ has_body: false,
554
+ request_schema: nil,
555
+ response_schema: "Email",
556
+ is_list: false,
557
+ list_item_schema: nil
558
+ },
559
+ {
560
+ operation_id: "emails.getBatch",
561
+ resource: "emails",
562
+ method_name: "getBatch",
563
+ http_method: "GET",
564
+ path: "/emails/batches/{id}",
565
+ path_params: ["id"],
566
+ query_params: [],
567
+ has_body: false,
568
+ request_schema: nil,
569
+ response_schema: "Batch",
570
+ is_list: false,
571
+ list_item_schema: nil
572
+ },
573
+ {
574
+ operation_id: "emails.list",
575
+ resource: "emails",
576
+ method_name: "list",
577
+ http_method: "GET",
578
+ path: "/emails",
579
+ path_params: [],
580
+ query_params: ["limit", "after", "before", "status", "campaign_id", "batch_id", "created_after", "created_before"],
581
+ has_body: false,
582
+ request_schema: nil,
583
+ response_schema: nil,
584
+ is_list: true,
585
+ list_item_schema: "Email"
586
+ },
587
+ {
588
+ operation_id: "emails.receivedAttachmentUrl",
589
+ resource: "emails",
590
+ method_name: "receivedAttachmentUrl",
591
+ http_method: "GET",
592
+ path: "/emails/received/{id}/attachments/{attachmentId}",
593
+ path_params: ["id", "attachmentId"],
594
+ query_params: [],
595
+ has_body: false,
596
+ request_schema: nil,
597
+ response_schema: "ReceivedAttachmentUrl",
598
+ is_list: false,
599
+ list_item_schema: nil
600
+ },
601
+ {
602
+ operation_id: "emails.receivedGet",
603
+ resource: "emails",
604
+ method_name: "receivedGet",
605
+ http_method: "GET",
606
+ path: "/emails/received/{id}",
607
+ path_params: ["id"],
608
+ query_params: [],
609
+ has_body: false,
610
+ request_schema: nil,
611
+ response_schema: "ReceivedEmail",
612
+ is_list: false,
613
+ list_item_schema: nil
614
+ },
615
+ {
616
+ operation_id: "emails.receivedList",
617
+ resource: "emails",
618
+ method_name: "receivedList",
619
+ http_method: "GET",
620
+ path: "/emails/received",
621
+ path_params: [],
622
+ query_params: ["limit", "after", "before"],
623
+ has_body: false,
624
+ request_schema: nil,
625
+ response_schema: nil,
626
+ is_list: true,
627
+ list_item_schema: "ReceivedEmailSummary"
628
+ },
629
+ {
630
+ operation_id: "emails.send",
631
+ resource: "emails",
632
+ method_name: "send",
633
+ http_method: "POST",
634
+ path: "/emails",
635
+ path_params: [],
636
+ query_params: [],
637
+ has_body: true,
638
+ request_schema: "SendEmail",
639
+ response_schema: "SendResult",
640
+ is_list: false,
641
+ list_item_schema: nil
642
+ },
643
+ {
644
+ operation_id: "emails.stats",
645
+ resource: "emails",
646
+ method_name: "stats",
647
+ http_method: "GET",
648
+ path: "/emails/stats",
649
+ path_params: [],
650
+ query_params: ["days"],
651
+ has_body: false,
652
+ request_schema: nil,
653
+ response_schema: "EmailStats",
654
+ is_list: false,
655
+ list_item_schema: nil
656
+ },
657
+ {
658
+ operation_id: "emails.update",
659
+ resource: "emails",
660
+ method_name: "update",
661
+ http_method: "PATCH",
662
+ path: "/emails/{id}",
663
+ path_params: ["id"],
664
+ query_params: [],
665
+ has_body: true,
666
+ request_schema: "EmailPatch",
667
+ response_schema: "Email",
668
+ is_list: false,
669
+ list_item_schema: nil
670
+ },
671
+ {
672
+ operation_id: "segments.addMember",
673
+ resource: "segments",
674
+ method_name: "addMember",
675
+ http_method: "POST",
676
+ path: "/segments/{id}/contacts",
677
+ path_params: ["id"],
678
+ query_params: [],
679
+ has_body: true,
680
+ request_schema: "SegmentMemberAdd",
681
+ response_schema: "SegmentMember",
682
+ is_list: false,
683
+ list_item_schema: nil
684
+ },
685
+ {
686
+ operation_id: "segments.create",
687
+ resource: "segments",
688
+ method_name: "create",
689
+ http_method: "POST",
690
+ path: "/segments",
691
+ path_params: [],
692
+ query_params: [],
693
+ has_body: true,
694
+ request_schema: "SegmentCreate",
695
+ response_schema: "Segment",
696
+ is_list: false,
697
+ list_item_schema: nil
698
+ },
699
+ {
700
+ operation_id: "segments.delete",
701
+ resource: "segments",
702
+ method_name: "delete",
703
+ http_method: "DELETE",
704
+ path: "/segments/{id}",
705
+ path_params: ["id"],
706
+ query_params: [],
707
+ has_body: false,
708
+ request_schema: nil,
709
+ response_schema: nil,
710
+ is_list: false,
711
+ list_item_schema: nil
712
+ },
713
+ {
714
+ operation_id: "segments.get",
715
+ resource: "segments",
716
+ method_name: "get",
717
+ http_method: "GET",
718
+ path: "/segments/{id}",
719
+ path_params: ["id"],
720
+ query_params: [],
721
+ has_body: false,
722
+ request_schema: nil,
723
+ response_schema: "Segment",
724
+ is_list: false,
725
+ list_item_schema: nil
726
+ },
727
+ {
728
+ operation_id: "segments.list",
729
+ resource: "segments",
730
+ method_name: "list",
731
+ http_method: "GET",
732
+ path: "/segments",
733
+ path_params: [],
734
+ query_params: ["limit", "after", "before"],
735
+ has_body: false,
736
+ request_schema: nil,
737
+ response_schema: nil,
738
+ is_list: true,
739
+ list_item_schema: "Segment"
740
+ },
741
+ {
742
+ operation_id: "segments.listMembers",
743
+ resource: "segments",
744
+ method_name: "listMembers",
745
+ http_method: "GET",
746
+ path: "/segments/{id}/contacts",
747
+ path_params: ["id"],
748
+ query_params: ["limit", "after", "before"],
749
+ has_body: false,
750
+ request_schema: nil,
751
+ response_schema: nil,
752
+ is_list: true,
753
+ list_item_schema: "SegmentMember"
754
+ },
755
+ {
756
+ operation_id: "segments.removeMember",
757
+ resource: "segments",
758
+ method_name: "removeMember",
759
+ http_method: "DELETE",
760
+ path: "/segments/{id}/contacts/{contact}",
761
+ path_params: ["id", "contact"],
762
+ query_params: [],
763
+ has_body: false,
764
+ request_schema: nil,
765
+ response_schema: nil,
766
+ is_list: false,
767
+ list_item_schema: nil
768
+ },
769
+ {
770
+ operation_id: "segments.update",
771
+ resource: "segments",
772
+ method_name: "update",
773
+ http_method: "PATCH",
774
+ path: "/segments/{id}",
775
+ path_params: ["id"],
776
+ query_params: [],
777
+ has_body: true,
778
+ request_schema: "SegmentUpdate",
779
+ response_schema: "Segment",
780
+ is_list: false,
781
+ list_item_schema: nil
782
+ },
783
+ {
784
+ operation_id: "suppressions.create",
785
+ resource: "suppressions",
786
+ method_name: "create",
787
+ http_method: "POST",
788
+ path: "/suppressions",
789
+ path_params: [],
790
+ query_params: [],
791
+ has_body: true,
792
+ request_schema: "SuppressionCreate",
793
+ response_schema: nil,
794
+ is_list: false,
795
+ list_item_schema: nil
796
+ },
797
+ {
798
+ operation_id: "suppressions.delete",
799
+ resource: "suppressions",
800
+ method_name: "delete",
801
+ http_method: "DELETE",
802
+ path: "/suppressions/{id}",
803
+ path_params: ["id"],
804
+ query_params: [],
805
+ has_body: false,
806
+ request_schema: nil,
807
+ response_schema: nil,
808
+ is_list: false,
809
+ list_item_schema: nil
810
+ },
811
+ {
812
+ operation_id: "suppressions.get",
813
+ resource: "suppressions",
814
+ method_name: "get",
815
+ http_method: "GET",
816
+ path: "/suppressions/{id}",
817
+ path_params: ["id"],
818
+ query_params: [],
819
+ has_body: false,
820
+ request_schema: nil,
821
+ response_schema: "Suppression",
822
+ is_list: false,
823
+ list_item_schema: nil
824
+ },
825
+ {
826
+ operation_id: "suppressions.list",
827
+ resource: "suppressions",
828
+ method_name: "list",
829
+ http_method: "GET",
830
+ path: "/suppressions",
831
+ path_params: [],
832
+ query_params: ["limit", "after", "before", "scope"],
833
+ has_body: false,
834
+ request_schema: nil,
835
+ response_schema: nil,
836
+ is_list: true,
837
+ list_item_schema: "Suppression"
838
+ },
839
+ {
840
+ operation_id: "templates.create",
841
+ resource: "templates",
842
+ method_name: "create",
843
+ http_method: "POST",
844
+ path: "/templates",
845
+ path_params: [],
846
+ query_params: [],
847
+ has_body: true,
848
+ request_schema: "TemplateCreate",
849
+ response_schema: "Template",
850
+ is_list: false,
851
+ list_item_schema: nil
852
+ },
853
+ {
854
+ operation_id: "templates.delete",
855
+ resource: "templates",
856
+ method_name: "delete",
857
+ http_method: "DELETE",
858
+ path: "/templates/{id}",
859
+ path_params: ["id"],
860
+ query_params: [],
861
+ has_body: false,
862
+ request_schema: nil,
863
+ response_schema: nil,
864
+ is_list: false,
865
+ list_item_schema: nil
866
+ },
867
+ {
868
+ operation_id: "templates.get",
869
+ resource: "templates",
870
+ method_name: "get",
871
+ http_method: "GET",
872
+ path: "/templates/{id}",
873
+ path_params: ["id"],
874
+ query_params: [],
875
+ has_body: false,
876
+ request_schema: nil,
877
+ response_schema: "Template",
878
+ is_list: false,
879
+ list_item_schema: nil
880
+ },
881
+ {
882
+ operation_id: "templates.list",
883
+ resource: "templates",
884
+ method_name: "list",
885
+ http_method: "GET",
886
+ path: "/templates",
887
+ path_params: [],
888
+ query_params: ["limit", "after", "before"],
889
+ has_body: false,
890
+ request_schema: nil,
891
+ response_schema: nil,
892
+ is_list: true,
893
+ list_item_schema: "Template"
894
+ },
895
+ {
896
+ operation_id: "templates.update",
897
+ resource: "templates",
898
+ method_name: "update",
899
+ http_method: "PATCH",
900
+ path: "/templates/{id}",
901
+ path_params: ["id"],
902
+ query_params: [],
903
+ has_body: true,
904
+ request_schema: "TemplateUpdate",
905
+ response_schema: "Template",
906
+ is_list: false,
907
+ list_item_schema: nil
908
+ },
909
+ {
910
+ operation_id: "topics.create",
911
+ resource: "topics",
912
+ method_name: "create",
913
+ http_method: "POST",
914
+ path: "/topics",
915
+ path_params: [],
916
+ query_params: [],
917
+ has_body: true,
918
+ request_schema: "TopicCreate",
919
+ response_schema: "Topic",
920
+ is_list: false,
921
+ list_item_schema: nil
922
+ },
923
+ {
924
+ operation_id: "topics.delete",
925
+ resource: "topics",
926
+ method_name: "delete",
927
+ http_method: "DELETE",
928
+ path: "/topics/{id}",
929
+ path_params: ["id"],
930
+ query_params: [],
931
+ has_body: false,
932
+ request_schema: nil,
933
+ response_schema: nil,
934
+ is_list: false,
935
+ list_item_schema: nil
936
+ },
937
+ {
938
+ operation_id: "topics.get",
939
+ resource: "topics",
940
+ method_name: "get",
941
+ http_method: "GET",
942
+ path: "/topics/{id}",
943
+ path_params: ["id"],
944
+ query_params: [],
945
+ has_body: false,
946
+ request_schema: nil,
947
+ response_schema: "Topic",
948
+ is_list: false,
949
+ list_item_schema: nil
950
+ },
951
+ {
952
+ operation_id: "topics.list",
953
+ resource: "topics",
954
+ method_name: "list",
955
+ http_method: "GET",
956
+ path: "/topics",
957
+ path_params: [],
958
+ query_params: ["limit", "after", "before"],
959
+ has_body: false,
960
+ request_schema: nil,
961
+ response_schema: nil,
962
+ is_list: true,
963
+ list_item_schema: "Topic"
964
+ },
965
+ {
966
+ operation_id: "topics.listTopics",
967
+ resource: "topics",
968
+ method_name: "listTopics",
969
+ http_method: "GET",
970
+ path: "/contacts/{id}/topics",
971
+ path_params: ["id"],
972
+ query_params: ["limit", "after", "before"],
973
+ has_body: false,
974
+ request_schema: nil,
975
+ response_schema: nil,
976
+ is_list: true,
977
+ list_item_schema: "ContactTopic"
978
+ },
979
+ {
980
+ operation_id: "topics.setTopic",
981
+ resource: "topics",
982
+ method_name: "setTopic",
983
+ http_method: "POST",
984
+ path: "/contacts/{id}/topics",
985
+ path_params: ["id"],
986
+ query_params: [],
987
+ has_body: true,
988
+ request_schema: "ContactTopicSet",
989
+ response_schema: "ContactTopic",
990
+ is_list: false,
991
+ list_item_schema: nil
992
+ },
993
+ {
994
+ operation_id: "topics.setTopic",
995
+ resource: "topics",
996
+ method_name: "setTopic",
997
+ http_method: "PUT",
998
+ path: "/contacts/{id}/topics",
999
+ path_params: ["id"],
1000
+ query_params: [],
1001
+ has_body: true,
1002
+ request_schema: "ContactTopicSet",
1003
+ response_schema: "ContactTopic",
1004
+ is_list: false,
1005
+ list_item_schema: nil
1006
+ },
1007
+ {
1008
+ operation_id: "topics.update",
1009
+ resource: "topics",
1010
+ method_name: "update",
1011
+ http_method: "PATCH",
1012
+ path: "/topics/{id}",
1013
+ path_params: ["id"],
1014
+ query_params: [],
1015
+ has_body: true,
1016
+ request_schema: "TopicUpdate",
1017
+ response_schema: "Topic",
1018
+ is_list: false,
1019
+ list_item_schema: nil
1020
+ },
1021
+ {
1022
+ operation_id: "usage.get",
1023
+ resource: "usage",
1024
+ method_name: "get",
1025
+ http_method: "GET",
1026
+ path: "/usage",
1027
+ path_params: [],
1028
+ query_params: [],
1029
+ has_body: false,
1030
+ request_schema: nil,
1031
+ response_schema: "Usage",
1032
+ is_list: false,
1033
+ list_item_schema: nil
1034
+ },
1035
+ {
1036
+ operation_id: "webhooks.create",
1037
+ resource: "webhooks",
1038
+ method_name: "create",
1039
+ http_method: "POST",
1040
+ path: "/webhooks",
1041
+ path_params: [],
1042
+ query_params: [],
1043
+ has_body: true,
1044
+ request_schema: "WebhookCreate",
1045
+ response_schema: "WebhookCreated",
1046
+ is_list: false,
1047
+ list_item_schema: nil
1048
+ },
1049
+ {
1050
+ operation_id: "webhooks.delete",
1051
+ resource: "webhooks",
1052
+ method_name: "delete",
1053
+ http_method: "DELETE",
1054
+ path: "/webhooks/{id}",
1055
+ path_params: ["id"],
1056
+ query_params: [],
1057
+ has_body: false,
1058
+ request_schema: nil,
1059
+ response_schema: nil,
1060
+ is_list: false,
1061
+ list_item_schema: nil
1062
+ },
1063
+ {
1064
+ operation_id: "webhooks.get",
1065
+ resource: "webhooks",
1066
+ method_name: "get",
1067
+ http_method: "GET",
1068
+ path: "/webhooks/{id}",
1069
+ path_params: ["id"],
1070
+ query_params: [],
1071
+ has_body: false,
1072
+ request_schema: nil,
1073
+ response_schema: "Webhook",
1074
+ is_list: false,
1075
+ list_item_schema: nil
1076
+ },
1077
+ {
1078
+ operation_id: "webhooks.list",
1079
+ resource: "webhooks",
1080
+ method_name: "list",
1081
+ http_method: "GET",
1082
+ path: "/webhooks",
1083
+ path_params: [],
1084
+ query_params: ["limit", "after", "before"],
1085
+ has_body: false,
1086
+ request_schema: nil,
1087
+ response_schema: nil,
1088
+ is_list: true,
1089
+ list_item_schema: "Webhook"
1090
+ },
1091
+ {
1092
+ operation_id: "webhooks.test",
1093
+ resource: "webhooks",
1094
+ method_name: "test",
1095
+ http_method: "POST",
1096
+ path: "/webhooks/{id}/test",
1097
+ path_params: ["id"],
1098
+ query_params: [],
1099
+ has_body: false,
1100
+ request_schema: nil,
1101
+ response_schema: "WebhookTestResult",
1102
+ is_list: false,
1103
+ list_item_schema: nil
1104
+ },
1105
+ {
1106
+ operation_id: "webhooks.update",
1107
+ resource: "webhooks",
1108
+ method_name: "update",
1109
+ http_method: "PATCH",
1110
+ path: "/webhooks/{id}",
1111
+ path_params: ["id"],
1112
+ query_params: [],
1113
+ has_body: true,
1114
+ request_schema: "WebhookUpdate",
1115
+ response_schema: "Webhook",
1116
+ is_list: false,
1117
+ list_item_schema: nil
1118
+ },
1119
+ ].freeze
1120
+ end
1121
+ end