@medalsocial/sdk 1.1.7 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1855 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ interface paths {
6
+ "/api/v1/posts": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ /** List posts */
14
+ get: operations["listPosts"];
15
+ put?: never;
16
+ /** Create a post */
17
+ post: operations["createPost"];
18
+ delete?: never;
19
+ options?: never;
20
+ head?: never;
21
+ patch?: never;
22
+ trace?: never;
23
+ };
24
+ "/api/v1/posts/channels": {
25
+ parameters: {
26
+ query?: never;
27
+ header?: never;
28
+ path?: never;
29
+ cookie?: never;
30
+ };
31
+ /** List connected post channels */
32
+ get: operations["listPostChannels"];
33
+ put?: never;
34
+ post?: never;
35
+ delete?: never;
36
+ options?: never;
37
+ head?: never;
38
+ patch?: never;
39
+ trace?: never;
40
+ };
41
+ "/api/v1/posts/{id}": {
42
+ parameters: {
43
+ query?: never;
44
+ header?: never;
45
+ path: {
46
+ id: components["parameters"]["Id"];
47
+ };
48
+ cookie?: never;
49
+ };
50
+ /** Get post detail */
51
+ get: operations["getPost"];
52
+ put?: never;
53
+ post?: never;
54
+ /** Delete a post */
55
+ delete: operations["deletePost"];
56
+ options?: never;
57
+ head?: never;
58
+ /** Update a draft post */
59
+ patch: operations["updatePost"];
60
+ trace?: never;
61
+ };
62
+ "/api/v1/posts/{id}/schedule": {
63
+ parameters: {
64
+ query?: never;
65
+ header?: never;
66
+ path: {
67
+ id: components["parameters"]["Id"];
68
+ };
69
+ cookie?: never;
70
+ };
71
+ get?: never;
72
+ put?: never;
73
+ /** Schedule a post */
74
+ post: operations["schedulePost"];
75
+ delete?: never;
76
+ options?: never;
77
+ head?: never;
78
+ patch?: never;
79
+ trace?: never;
80
+ };
81
+ "/api/v1/posts/{id}/publish": {
82
+ parameters: {
83
+ query?: never;
84
+ header?: never;
85
+ path: {
86
+ id: components["parameters"]["Id"];
87
+ };
88
+ cookie?: never;
89
+ };
90
+ get?: never;
91
+ put?: never;
92
+ /** Publish a post */
93
+ post: operations["publishPost"];
94
+ delete?: never;
95
+ options?: never;
96
+ head?: never;
97
+ patch?: never;
98
+ trace?: never;
99
+ };
100
+ "/api/v1/emails": {
101
+ parameters: {
102
+ query?: never;
103
+ header?: never;
104
+ path?: never;
105
+ cookie?: never;
106
+ };
107
+ get?: never;
108
+ put?: never;
109
+ /** Send a transactional email */
110
+ post: operations["sendEmail"];
111
+ delete?: never;
112
+ options?: never;
113
+ head?: never;
114
+ patch?: never;
115
+ trace?: never;
116
+ };
117
+ "/api/v1/emails/batch": {
118
+ parameters: {
119
+ query?: never;
120
+ header?: never;
121
+ path?: never;
122
+ cookie?: never;
123
+ };
124
+ get?: never;
125
+ put?: never;
126
+ /** Send a batch of transactional emails */
127
+ post: operations["batchSendEmails"];
128
+ delete?: never;
129
+ options?: never;
130
+ head?: never;
131
+ patch?: never;
132
+ trace?: never;
133
+ };
134
+ "/api/v1/emails/templates": {
135
+ parameters: {
136
+ query?: never;
137
+ header?: never;
138
+ path?: never;
139
+ cookie?: never;
140
+ };
141
+ /** List active email templates */
142
+ get: operations["listEmailTemplates"];
143
+ put?: never;
144
+ post?: never;
145
+ delete?: never;
146
+ options?: never;
147
+ head?: never;
148
+ patch?: never;
149
+ trace?: never;
150
+ };
151
+ "/api/v1/emails/templates/{slug}": {
152
+ parameters: {
153
+ query?: never;
154
+ header?: never;
155
+ path: {
156
+ slug: components["parameters"]["Slug"];
157
+ };
158
+ cookie?: never;
159
+ };
160
+ /** Get an email template */
161
+ get: operations["getEmailTemplate"];
162
+ put?: never;
163
+ post?: never;
164
+ delete?: never;
165
+ options?: never;
166
+ head?: never;
167
+ patch?: never;
168
+ trace?: never;
169
+ };
170
+ "/api/v1/emails/{id}": {
171
+ parameters: {
172
+ query?: never;
173
+ header?: never;
174
+ path: {
175
+ id: components["parameters"]["Id"];
176
+ };
177
+ cookie?: never;
178
+ };
179
+ /** Get sent email status */
180
+ get: operations["getEmailSend"];
181
+ put?: never;
182
+ post?: never;
183
+ delete?: never;
184
+ options?: never;
185
+ head?: never;
186
+ patch?: never;
187
+ trace?: never;
188
+ };
189
+ "/api/v1/contacts": {
190
+ parameters: {
191
+ query?: never;
192
+ header?: never;
193
+ path?: never;
194
+ cookie?: never;
195
+ };
196
+ /** List contacts */
197
+ get: operations["listContacts"];
198
+ put?: never;
199
+ /** Create a contact */
200
+ post: operations["createContact"];
201
+ delete?: never;
202
+ options?: never;
203
+ head?: never;
204
+ patch?: never;
205
+ trace?: never;
206
+ };
207
+ "/api/v1/contacts/import": {
208
+ parameters: {
209
+ query?: never;
210
+ header?: never;
211
+ path?: never;
212
+ cookie?: never;
213
+ };
214
+ get?: never;
215
+ put?: never;
216
+ /** Import contacts */
217
+ post: operations["importContacts"];
218
+ delete?: never;
219
+ options?: never;
220
+ head?: never;
221
+ patch?: never;
222
+ trace?: never;
223
+ };
224
+ "/api/v1/contacts/{id}": {
225
+ parameters: {
226
+ query?: never;
227
+ header?: never;
228
+ path: {
229
+ id: components["parameters"]["Id"];
230
+ };
231
+ cookie?: never;
232
+ };
233
+ /** Get a contact */
234
+ get: operations["getContact"];
235
+ put?: never;
236
+ post?: never;
237
+ /** Delete a contact */
238
+ delete: operations["deleteContact"];
239
+ options?: never;
240
+ head?: never;
241
+ /** Update a contact */
242
+ patch: operations["updateContact"];
243
+ trace?: never;
244
+ };
245
+ "/api/v1/contacts/{id}/activities": {
246
+ parameters: {
247
+ query?: never;
248
+ header?: never;
249
+ path: {
250
+ id: components["parameters"]["Id"];
251
+ };
252
+ cookie?: never;
253
+ };
254
+ /** List contact activities */
255
+ get: operations["listContactActivities"];
256
+ put?: never;
257
+ post?: never;
258
+ delete?: never;
259
+ options?: never;
260
+ head?: never;
261
+ patch?: never;
262
+ trace?: never;
263
+ };
264
+ "/api/v1/contacts/{id}/notes": {
265
+ parameters: {
266
+ query?: never;
267
+ header?: never;
268
+ path: {
269
+ id: components["parameters"]["Id"];
270
+ };
271
+ cookie?: never;
272
+ };
273
+ get?: never;
274
+ put?: never;
275
+ /** Add a contact note */
276
+ post: operations["addContactNote"];
277
+ delete?: never;
278
+ options?: never;
279
+ head?: never;
280
+ patch?: never;
281
+ trace?: never;
282
+ };
283
+ "/api/v1/deals": {
284
+ parameters: {
285
+ query?: never;
286
+ header?: never;
287
+ path?: never;
288
+ cookie?: never;
289
+ };
290
+ /** List deals */
291
+ get: operations["listDeals"];
292
+ put?: never;
293
+ /** Create a deal */
294
+ post: operations["createDeal"];
295
+ delete?: never;
296
+ options?: never;
297
+ head?: never;
298
+ patch?: never;
299
+ trace?: never;
300
+ };
301
+ "/api/v1/deals/{id}": {
302
+ parameters: {
303
+ query?: never;
304
+ header?: never;
305
+ path: {
306
+ id: components["parameters"]["Id"];
307
+ };
308
+ cookie?: never;
309
+ };
310
+ /** Get a deal */
311
+ get: operations["getDeal"];
312
+ put?: never;
313
+ post?: never;
314
+ /** Delete a deal */
315
+ delete: operations["deleteDeal"];
316
+ options?: never;
317
+ head?: never;
318
+ /** Update a deal */
319
+ patch: operations["updateDeal"];
320
+ trace?: never;
321
+ };
322
+ "/api/v1/gdpr/export": {
323
+ parameters: {
324
+ query?: never;
325
+ header?: never;
326
+ path?: never;
327
+ cookie?: never;
328
+ };
329
+ get?: never;
330
+ put?: never;
331
+ /** Request a GDPR export */
332
+ post: operations["requestGdprExport"];
333
+ delete?: never;
334
+ options?: never;
335
+ head?: never;
336
+ patch?: never;
337
+ trace?: never;
338
+ };
339
+ "/api/v1/gdpr/exports": {
340
+ parameters: {
341
+ query?: never;
342
+ header?: never;
343
+ path?: never;
344
+ cookie?: never;
345
+ };
346
+ /** List GDPR exports */
347
+ get: operations["listGdprExports"];
348
+ put?: never;
349
+ post?: never;
350
+ delete?: never;
351
+ options?: never;
352
+ head?: never;
353
+ patch?: never;
354
+ trace?: never;
355
+ };
356
+ "/api/v1/gdpr/exports/{id}": {
357
+ parameters: {
358
+ query?: never;
359
+ header?: never;
360
+ path: {
361
+ id: components["parameters"]["Id"];
362
+ };
363
+ cookie?: never;
364
+ };
365
+ /** Get a GDPR export */
366
+ get: operations["getGdprExport"];
367
+ put?: never;
368
+ post?: never;
369
+ delete?: never;
370
+ options?: never;
371
+ head?: never;
372
+ patch?: never;
373
+ trace?: never;
374
+ };
375
+ "/api/v1/gdpr/consent": {
376
+ parameters: {
377
+ query?: never;
378
+ header?: never;
379
+ path?: never;
380
+ cookie?: never;
381
+ };
382
+ get?: never;
383
+ put?: never;
384
+ /** Record GDPR consent */
385
+ post: operations["recordGdprConsent"];
386
+ delete?: never;
387
+ options?: never;
388
+ head?: never;
389
+ patch?: never;
390
+ trace?: never;
391
+ };
392
+ "/api/v1/gdpr/consent/{email}": {
393
+ parameters: {
394
+ query?: never;
395
+ header?: never;
396
+ path: {
397
+ email: string;
398
+ };
399
+ cookie?: never;
400
+ };
401
+ /** Get GDPR consent records */
402
+ get: operations["getGdprConsent"];
403
+ put?: never;
404
+ post?: never;
405
+ delete?: never;
406
+ options?: never;
407
+ head?: never;
408
+ patch?: never;
409
+ trace?: never;
410
+ };
411
+ "/api/cookie-consent": {
412
+ parameters: {
413
+ query?: never;
414
+ header?: never;
415
+ path?: never;
416
+ cookie?: never;
417
+ };
418
+ get?: never;
419
+ put?: never;
420
+ /** Record cookie consent */
421
+ post: operations["recordCookieConsent"];
422
+ delete?: never;
423
+ options?: never;
424
+ head?: never;
425
+ patch?: never;
426
+ trace?: never;
427
+ };
428
+ "/api/v1/me/workspaces": {
429
+ parameters: {
430
+ query?: never;
431
+ header?: never;
432
+ path?: never;
433
+ cookie?: never;
434
+ };
435
+ /** List accessible workspaces */
436
+ get: operations["listWorkspaces"];
437
+ put?: never;
438
+ post?: never;
439
+ delete?: never;
440
+ options?: never;
441
+ head?: never;
442
+ patch?: never;
443
+ trace?: never;
444
+ };
445
+ }
446
+ type webhooks = Record<string, never>;
447
+ interface components {
448
+ schemas: {
449
+ ApiError: {
450
+ error: {
451
+ code: string;
452
+ message: string;
453
+ details?: unknown;
454
+ };
455
+ };
456
+ Pagination: {
457
+ has_more: boolean;
458
+ next_cursor: string | null;
459
+ };
460
+ Success: {
461
+ success: boolean;
462
+ };
463
+ PostCreateResult: {
464
+ id: string;
465
+ };
466
+ Post: {
467
+ id: string;
468
+ type: components["schemas"]["PostType"];
469
+ title: string | null;
470
+ content: string;
471
+ status: string;
472
+ channel_ids: string[];
473
+ variant_count: number;
474
+ published_count: number;
475
+ failed_count: number;
476
+ /** Format: date-time */
477
+ scheduled_at: string | null;
478
+ /** Format: date-time */
479
+ published_at: string | null;
480
+ /** Format: date-time */
481
+ created_at: string | null;
482
+ /** Format: date-time */
483
+ updated_at: string | null;
484
+ };
485
+ /** @enum {string} */
486
+ PostType: "social" | "newsletter" | "blog";
487
+ PostVariant: {
488
+ id: string;
489
+ channel_id: string;
490
+ content: string;
491
+ status: string;
492
+ platform: string | null;
493
+ channel_display_name: string | null;
494
+ /** Format: date-time */
495
+ scheduled_at: string | null;
496
+ /** Format: date-time */
497
+ published_at: string | null;
498
+ platform_post_id: string | null;
499
+ /** Format: uri */
500
+ permalink: string | null;
501
+ error: string | null;
502
+ };
503
+ PostDetail: components["schemas"]["Post"] & {
504
+ variants: components["schemas"]["PostVariant"][];
505
+ };
506
+ Channel: {
507
+ id: string;
508
+ platform: string | null;
509
+ display_name: string | null;
510
+ platform_username: string | null;
511
+ state: string;
512
+ /** Format: date-time */
513
+ connected_at: string | null;
514
+ };
515
+ CreatePostInput: {
516
+ type?: components["schemas"]["PostType"];
517
+ title?: string;
518
+ content: string;
519
+ channel_ids: string[];
520
+ };
521
+ UpdatePostInput: {
522
+ title?: string;
523
+ content?: string;
524
+ };
525
+ SchedulePostInput: {
526
+ scheduled_at: number | string;
527
+ };
528
+ ScheduleResult: {
529
+ success: boolean;
530
+ workflow_id: string;
531
+ };
532
+ PublishResult: {
533
+ success: boolean;
534
+ workflow_id: string;
535
+ };
536
+ SendEmailInput: {
537
+ template_slug: string;
538
+ /** Format: email */
539
+ to: string;
540
+ name?: string;
541
+ locale?: string;
542
+ fallback_locale?: string;
543
+ variables?: {
544
+ [key: string]: string;
545
+ };
546
+ contact_id?: string;
547
+ };
548
+ EmailSendResult: {
549
+ id: string;
550
+ status: string;
551
+ };
552
+ EmailSend: {
553
+ id: string;
554
+ status: string;
555
+ /** Format: email */
556
+ recipient_email: string;
557
+ recipient_name: string | null;
558
+ subject: string | null;
559
+ template_id: string | null;
560
+ contact_id: string | null;
561
+ /** Format: date-time */
562
+ queued_at: string | null;
563
+ /** Format: date-time */
564
+ sent_at: string | null;
565
+ /** Format: date-time */
566
+ delivered_at: string | null;
567
+ /** Format: date-time */
568
+ opened_at: string | null;
569
+ /** Format: date-time */
570
+ clicked_at: string | null;
571
+ error_message: string | null;
572
+ };
573
+ BatchSendInput: {
574
+ template_slug: string;
575
+ default_locale?: string;
576
+ recipients: {
577
+ /** Format: email */
578
+ email: string;
579
+ name?: string;
580
+ locale?: string;
581
+ variables?: {
582
+ [key: string]: string;
583
+ };
584
+ }[];
585
+ };
586
+ BatchSendSummary: {
587
+ batch_id: string;
588
+ total: number;
589
+ queued: number;
590
+ failed: number;
591
+ };
592
+ EmailTemplate: {
593
+ id: string;
594
+ name: string;
595
+ slug: string;
596
+ type: string | null;
597
+ subject: string | null;
598
+ default_locale: string;
599
+ available_locales: string[];
600
+ description: string | null;
601
+ category: string | null;
602
+ label_ids: string[];
603
+ is_active: boolean;
604
+ is_archived: boolean;
605
+ version: number;
606
+ /** Format: date-time */
607
+ created_at: string | null;
608
+ /** Format: date-time */
609
+ updated_at: string | null;
610
+ };
611
+ EmailTemplateDetail: components["schemas"]["EmailTemplate"] & {
612
+ html_content: string | null;
613
+ text_content: string | null;
614
+ preview_text: string | null;
615
+ from_name: string | null;
616
+ /** Format: email */
617
+ from_email: string | null;
618
+ /** Format: email */
619
+ reply_to: string | null;
620
+ requested_locale: string | null;
621
+ resolved_locale: string;
622
+ content_source: string;
623
+ localizations: {
624
+ locale: string | null;
625
+ subject: string | null;
626
+ html_content: string | null;
627
+ text_content: string | null;
628
+ preview_text: string | null;
629
+ }[];
630
+ };
631
+ Contact: {
632
+ id: string;
633
+ /** Format: email */
634
+ email: string;
635
+ first_name: string | null;
636
+ last_name: string | null;
637
+ phone: string | null;
638
+ company: string | null;
639
+ job_title: string | null;
640
+ address: {
641
+ [key: string]: string;
642
+ } | null;
643
+ status: components["schemas"]["ContactStatus"];
644
+ email_status: components["schemas"]["EmailStatus"];
645
+ label_ids: string[];
646
+ source: string | null;
647
+ custom_fields: {
648
+ [key: string]: unknown;
649
+ } | null;
650
+ /** Format: date-time */
651
+ created_at: string | null;
652
+ /** Format: date-time */
653
+ updated_at: string | null;
654
+ };
655
+ ContactCreateResult: {
656
+ id: string;
657
+ };
658
+ ContactUpdateResult: {
659
+ /** @constant */
660
+ success: true;
661
+ };
662
+ ContactRemoveResult: {
663
+ /** @constant */
664
+ success: true;
665
+ };
666
+ ContactNoteResult: {
667
+ id: string;
668
+ };
669
+ /** @enum {string} */
670
+ ContactStatus: "lead" | "prospect" | "customer" | "churned" | "archived";
671
+ /** @enum {string} */
672
+ EmailStatus: "subscribed" | "unsubscribed" | "bounced" | "complained";
673
+ CreateContactInput: {
674
+ /** Format: email */
675
+ email: string;
676
+ first_name?: string;
677
+ last_name?: string;
678
+ phone?: string;
679
+ company?: string;
680
+ job_title?: string;
681
+ address?: {
682
+ [key: string]: string;
683
+ };
684
+ status?: components["schemas"]["ContactStatus"];
685
+ email_status?: components["schemas"]["EmailStatus"];
686
+ label_ids?: string[];
687
+ labels?: string[];
688
+ custom_fields?: {
689
+ [key: string]: unknown;
690
+ };
691
+ notes?: string | components["schemas"]["ContactNoteInput"];
692
+ };
693
+ UpdateContactInput: {
694
+ /** Format: email */
695
+ email?: string;
696
+ first_name?: string;
697
+ last_name?: string;
698
+ phone?: string;
699
+ company?: string;
700
+ job_title?: string;
701
+ status?: components["schemas"]["ContactStatus"];
702
+ email_status?: components["schemas"]["EmailStatus"];
703
+ label_ids?: string[];
704
+ labels?: string[];
705
+ custom_fields?: {
706
+ [key: string]: unknown;
707
+ };
708
+ };
709
+ ContactNoteInput: {
710
+ content: string;
711
+ attachments?: {
712
+ /** Format: uri */
713
+ url: string;
714
+ name: string;
715
+ type?: string;
716
+ size?: number;
717
+ }[];
718
+ };
719
+ ImportContactInput: {
720
+ /** Format: email */
721
+ email: string;
722
+ first_name?: string;
723
+ last_name?: string;
724
+ phone?: string;
725
+ company?: string;
726
+ job_title?: string;
727
+ label_ids?: string[];
728
+ status?: string;
729
+ };
730
+ ImportContactsResult: {
731
+ added: number;
732
+ skipped: number;
733
+ total: number;
734
+ };
735
+ Activity: {
736
+ id: string;
737
+ type: string;
738
+ title: string | null;
739
+ content: string | null;
740
+ actor_name: string | null;
741
+ actor_type: string | null;
742
+ metadata: unknown;
743
+ /** Format: date-time */
744
+ created_at: string | null;
745
+ };
746
+ AddNoteInput: {
747
+ content: string;
748
+ };
749
+ Deal: {
750
+ id: string;
751
+ title: string;
752
+ description: string | null;
753
+ value: number | null;
754
+ currency: string | null;
755
+ status: components["schemas"]["DealStatus"];
756
+ brand_name: string | null;
757
+ /** Format: uri */
758
+ brand_website: string | null;
759
+ contact_id: string | null;
760
+ contact_name: string | null;
761
+ /** Format: email */
762
+ contact_email: string | null;
763
+ /** Format: date */
764
+ start_date: string | null;
765
+ /** Format: date */
766
+ end_date: string | null;
767
+ notes: string | null;
768
+ /** Format: date-time */
769
+ created_at: string | null;
770
+ /** Format: date-time */
771
+ updated_at: string | null;
772
+ };
773
+ DealCreateResult: {
774
+ id: string;
775
+ };
776
+ DealUpdateResult: {
777
+ /** @constant */
778
+ success: true;
779
+ };
780
+ DealRemoveResult: {
781
+ /** @constant */
782
+ success: true;
783
+ };
784
+ /** @enum {string} */
785
+ DealStatus: "draft" | "open" | "won" | "lost" | "negotiating" | "proposal_sent" | "on_hold" | "churned";
786
+ CreateDealInput: {
787
+ title: string;
788
+ description?: string;
789
+ value?: number;
790
+ currency?: string;
791
+ brand_name?: string;
792
+ /** Format: uri */
793
+ brand_website?: string;
794
+ contact_id?: string;
795
+ contact_name?: string;
796
+ /** Format: email */
797
+ contact_email?: string;
798
+ /** Format: date */
799
+ start_date?: string;
800
+ /** Format: date */
801
+ end_date?: string;
802
+ notes?: string;
803
+ };
804
+ UpdateDealInput: {
805
+ title?: string;
806
+ description?: string;
807
+ value?: number;
808
+ currency?: string;
809
+ status?: components["schemas"]["DealStatus"];
810
+ brand_name?: string;
811
+ /** Format: uri */
812
+ brand_website?: string;
813
+ contact_id?: string | null;
814
+ contact_name?: string;
815
+ /** Format: email */
816
+ contact_email?: string;
817
+ /** Format: date */
818
+ start_date?: string;
819
+ /** Format: date */
820
+ end_date?: string;
821
+ notes?: string;
822
+ };
823
+ GdprExport: {
824
+ id: string;
825
+ request_type: string;
826
+ status: string;
827
+ /** Format: date-time */
828
+ submitted_at: string | null;
829
+ /** Format: date-time */
830
+ completed_at: string | null;
831
+ /** Format: date-time */
832
+ due_date?: string | null;
833
+ /** Format: uri */
834
+ download_url?: string | null;
835
+ /** Format: date-time */
836
+ expires_at?: string | null;
837
+ };
838
+ GdprExportRequest: {
839
+ request_id: string;
840
+ status: string;
841
+ };
842
+ /** @enum {string} */
843
+ ConsentType: "marketing_email" | "analytics_tracking" | "third_party_sharing";
844
+ RecordConsentInput: {
845
+ /** Format: email */
846
+ email: string;
847
+ consent_type: components["schemas"]["ConsentType"];
848
+ granted: boolean;
849
+ source?: string;
850
+ ip_address?: string;
851
+ consent_text?: string;
852
+ version?: string;
853
+ };
854
+ ConsentRecord: {
855
+ id: string;
856
+ /** Format: email */
857
+ email: string;
858
+ consent_type: components["schemas"]["ConsentType"];
859
+ granted: boolean;
860
+ /** Format: date-time */
861
+ granted_at: string | null;
862
+ /** Format: date-time */
863
+ revoked_at: string | null;
864
+ source?: string;
865
+ version?: string;
866
+ };
867
+ ConsentResult: {
868
+ id: string;
869
+ };
870
+ CookieConsentInput: {
871
+ domain: string;
872
+ consentStatus: string;
873
+ /** Format: date-time */
874
+ consentTimestamp: string;
875
+ ipAddress?: string;
876
+ userAgent?: string;
877
+ cookiePreferences: {
878
+ [key: string]: components["schemas"]["CookieCategoryConsent"];
879
+ };
880
+ };
881
+ CookieCategoryConsent: {
882
+ allowed: boolean;
883
+ cookieRecords?: {
884
+ cookie: string;
885
+ duration: string;
886
+ description: string;
887
+ }[];
888
+ };
889
+ CookieConsentResult: {
890
+ success: boolean;
891
+ logId?: string;
892
+ };
893
+ Workspace: {
894
+ id: string;
895
+ name: string;
896
+ slug: string;
897
+ } & {
898
+ [key: string]: unknown;
899
+ };
900
+ ApiResponse_PostCreateResult: components["schemas"]["Envelope_PostCreateResult"];
901
+ ApiResponse_PostDetail: components["schemas"]["Envelope_PostDetail"];
902
+ ApiResponse_Success: components["schemas"]["Envelope_Success"];
903
+ ApiResponse_ScheduleResult: components["schemas"]["Envelope_ScheduleResult"];
904
+ ApiResponse_PublishResult: components["schemas"]["Envelope_PublishResult"];
905
+ ApiResponse_ChannelArray: components["schemas"]["Envelope_ChannelArray"];
906
+ ApiResponse_EmailSendResult: components["schemas"]["Envelope_EmailSendResult"];
907
+ ApiResponse_EmailSend: components["schemas"]["Envelope_EmailSend"];
908
+ ApiResponse_BatchSendSummary: components["schemas"]["Envelope_BatchSendSummary"];
909
+ ApiResponse_EmailTemplateArray: components["schemas"]["Envelope_EmailTemplateArray"];
910
+ ApiResponse_EmailTemplateDetail: components["schemas"]["Envelope_EmailTemplateDetail"];
911
+ ApiResponse_Contact: components["schemas"]["Envelope_Contact"];
912
+ ApiResponse_ContactCreateResult: components["schemas"]["Envelope_ContactCreateResult"];
913
+ ApiResponse_ContactUpdateResult: components["schemas"]["Envelope_ContactUpdateResult"];
914
+ ApiResponse_ContactRemoveResult: components["schemas"]["Envelope_ContactRemoveResult"];
915
+ ApiResponse_ContactNoteResult: components["schemas"]["Envelope_ContactNoteResult"];
916
+ ApiResponse_ImportContactsResult: components["schemas"]["Envelope_ImportContactsResult"];
917
+ ApiResponse_Deal: components["schemas"]["Envelope_Deal"];
918
+ ApiResponse_DealCreateResult: components["schemas"]["Envelope_DealCreateResult"];
919
+ ApiResponse_DealUpdateResult: components["schemas"]["Envelope_DealUpdateResult"];
920
+ ApiResponse_DealRemoveResult: components["schemas"]["Envelope_DealRemoveResult"];
921
+ ApiResponse_GdprExportRequest: components["schemas"]["Envelope_GdprExportRequest"];
922
+ ApiResponse_GdprExportArray: components["schemas"]["Envelope_GdprExportArray"];
923
+ ApiResponse_GdprExport: components["schemas"]["Envelope_GdprExport"];
924
+ ApiResponse_ConsentResult: components["schemas"]["Envelope_ConsentResult"];
925
+ ApiResponse_ConsentRecordArray: components["schemas"]["Envelope_ConsentRecordArray"];
926
+ ApiResponse_WorkspaceArray: components["schemas"]["Envelope_WorkspaceArray"];
927
+ PaginatedResponse_Post: {
928
+ data: components["schemas"]["Post"][];
929
+ pagination: components["schemas"]["Pagination"];
930
+ };
931
+ PaginatedResponse_Contact: {
932
+ data: components["schemas"]["Contact"][];
933
+ pagination: components["schemas"]["Pagination"];
934
+ };
935
+ PaginatedResponse_Activity: {
936
+ data: components["schemas"]["Activity"][];
937
+ pagination: components["schemas"]["Pagination"];
938
+ };
939
+ PaginatedResponse_Deal: {
940
+ data: components["schemas"]["Deal"][];
941
+ pagination: components["schemas"]["Pagination"];
942
+ };
943
+ Envelope_PostCreateResult: {
944
+ data: components["schemas"]["PostCreateResult"];
945
+ };
946
+ Envelope_PostDetail: {
947
+ data: components["schemas"]["PostDetail"];
948
+ };
949
+ Envelope_Success: {
950
+ data: components["schemas"]["Success"];
951
+ };
952
+ Envelope_ScheduleResult: {
953
+ data: components["schemas"]["ScheduleResult"];
954
+ };
955
+ Envelope_PublishResult: {
956
+ data: components["schemas"]["PublishResult"];
957
+ };
958
+ Envelope_ChannelArray: {
959
+ data: components["schemas"]["Channel"][];
960
+ };
961
+ Envelope_EmailSendResult: {
962
+ data: components["schemas"]["EmailSendResult"];
963
+ };
964
+ Envelope_EmailSend: {
965
+ data: components["schemas"]["EmailSend"];
966
+ };
967
+ Envelope_BatchSendSummary: {
968
+ data: components["schemas"]["BatchSendSummary"];
969
+ };
970
+ Envelope_EmailTemplateArray: {
971
+ data: components["schemas"]["EmailTemplate"][];
972
+ };
973
+ Envelope_EmailTemplateDetail: {
974
+ data: components["schemas"]["EmailTemplateDetail"];
975
+ };
976
+ Envelope_Contact: {
977
+ data: components["schemas"]["Contact"];
978
+ };
979
+ Envelope_ContactCreateResult: {
980
+ data: components["schemas"]["ContactCreateResult"];
981
+ };
982
+ Envelope_ContactUpdateResult: {
983
+ data: components["schemas"]["ContactUpdateResult"];
984
+ };
985
+ Envelope_ContactRemoveResult: {
986
+ data: components["schemas"]["ContactRemoveResult"];
987
+ };
988
+ Envelope_ContactNoteResult: {
989
+ data: components["schemas"]["ContactNoteResult"];
990
+ };
991
+ Envelope_ImportContactsResult: {
992
+ data: components["schemas"]["ImportContactsResult"];
993
+ };
994
+ Envelope_Deal: {
995
+ data: components["schemas"]["Deal"];
996
+ };
997
+ Envelope_DealCreateResult: {
998
+ data: components["schemas"]["DealCreateResult"];
999
+ };
1000
+ Envelope_DealUpdateResult: {
1001
+ data: components["schemas"]["DealUpdateResult"];
1002
+ };
1003
+ Envelope_DealRemoveResult: {
1004
+ data: components["schemas"]["DealRemoveResult"];
1005
+ };
1006
+ Envelope_GdprExportRequest: {
1007
+ data: components["schemas"]["GdprExportRequest"];
1008
+ };
1009
+ Envelope_GdprExportArray: {
1010
+ data: components["schemas"]["GdprExport"][];
1011
+ };
1012
+ Envelope_GdprExport: {
1013
+ data: components["schemas"]["GdprExport"];
1014
+ };
1015
+ Envelope_ConsentResult: {
1016
+ data: components["schemas"]["ConsentResult"];
1017
+ };
1018
+ Envelope_ConsentRecordArray: {
1019
+ data: components["schemas"]["ConsentRecord"][];
1020
+ };
1021
+ Envelope_WorkspaceArray: {
1022
+ data: components["schemas"]["Workspace"][];
1023
+ };
1024
+ };
1025
+ responses: {
1026
+ /** @description API error. */
1027
+ ApiError: {
1028
+ headers: {
1029
+ [name: string]: unknown;
1030
+ };
1031
+ content: {
1032
+ "application/json": components["schemas"]["ApiError"];
1033
+ };
1034
+ };
1035
+ };
1036
+ parameters: {
1037
+ Id: string;
1038
+ Slug: string;
1039
+ Cursor: string;
1040
+ Limit: number;
1041
+ };
1042
+ requestBodies: never;
1043
+ headers: never;
1044
+ pathItems: never;
1045
+ }
1046
+ type $defs = Record<string, never>;
1047
+ interface operations {
1048
+ listPosts: {
1049
+ parameters: {
1050
+ query?: {
1051
+ limit?: components["parameters"]["Limit"];
1052
+ cursor?: components["parameters"]["Cursor"];
1053
+ status?: string;
1054
+ type?: components["schemas"]["PostType"];
1055
+ };
1056
+ header?: never;
1057
+ path?: never;
1058
+ cookie?: never;
1059
+ };
1060
+ requestBody?: never;
1061
+ responses: {
1062
+ /** @description Posts page. */
1063
+ 200: {
1064
+ headers: {
1065
+ [name: string]: unknown;
1066
+ };
1067
+ content: {
1068
+ "application/json": components["schemas"]["PaginatedResponse_Post"];
1069
+ };
1070
+ };
1071
+ default: components["responses"]["ApiError"];
1072
+ };
1073
+ };
1074
+ createPost: {
1075
+ parameters: {
1076
+ query?: never;
1077
+ header?: never;
1078
+ path?: never;
1079
+ cookie?: never;
1080
+ };
1081
+ requestBody: {
1082
+ content: {
1083
+ "application/json": components["schemas"]["CreatePostInput"];
1084
+ };
1085
+ };
1086
+ responses: {
1087
+ /** @description Created post reference. */
1088
+ 200: {
1089
+ headers: {
1090
+ [name: string]: unknown;
1091
+ };
1092
+ content: {
1093
+ "application/json": components["schemas"]["ApiResponse_PostCreateResult"];
1094
+ };
1095
+ };
1096
+ default: components["responses"]["ApiError"];
1097
+ };
1098
+ };
1099
+ listPostChannels: {
1100
+ parameters: {
1101
+ query?: never;
1102
+ header?: never;
1103
+ path?: never;
1104
+ cookie?: never;
1105
+ };
1106
+ requestBody?: never;
1107
+ responses: {
1108
+ /** @description Connected channels. */
1109
+ 200: {
1110
+ headers: {
1111
+ [name: string]: unknown;
1112
+ };
1113
+ content: {
1114
+ "application/json": components["schemas"]["ApiResponse_ChannelArray"];
1115
+ };
1116
+ };
1117
+ default: components["responses"]["ApiError"];
1118
+ };
1119
+ };
1120
+ getPost: {
1121
+ parameters: {
1122
+ query?: never;
1123
+ header?: never;
1124
+ path: {
1125
+ id: components["parameters"]["Id"];
1126
+ };
1127
+ cookie?: never;
1128
+ };
1129
+ requestBody?: never;
1130
+ responses: {
1131
+ /** @description Post detail. */
1132
+ 200: {
1133
+ headers: {
1134
+ [name: string]: unknown;
1135
+ };
1136
+ content: {
1137
+ "application/json": components["schemas"]["ApiResponse_PostDetail"];
1138
+ };
1139
+ };
1140
+ default: components["responses"]["ApiError"];
1141
+ };
1142
+ };
1143
+ deletePost: {
1144
+ parameters: {
1145
+ query?: never;
1146
+ header?: never;
1147
+ path: {
1148
+ id: components["parameters"]["Id"];
1149
+ };
1150
+ cookie?: never;
1151
+ };
1152
+ requestBody?: never;
1153
+ responses: {
1154
+ /** @description Delete result. */
1155
+ 200: {
1156
+ headers: {
1157
+ [name: string]: unknown;
1158
+ };
1159
+ content: {
1160
+ "application/json": components["schemas"]["ApiResponse_Success"];
1161
+ };
1162
+ };
1163
+ default: components["responses"]["ApiError"];
1164
+ };
1165
+ };
1166
+ updatePost: {
1167
+ parameters: {
1168
+ query?: never;
1169
+ header?: never;
1170
+ path: {
1171
+ id: components["parameters"]["Id"];
1172
+ };
1173
+ cookie?: never;
1174
+ };
1175
+ requestBody: {
1176
+ content: {
1177
+ "application/json": components["schemas"]["UpdatePostInput"];
1178
+ };
1179
+ };
1180
+ responses: {
1181
+ /** @description Update result. */
1182
+ 200: {
1183
+ headers: {
1184
+ [name: string]: unknown;
1185
+ };
1186
+ content: {
1187
+ "application/json": components["schemas"]["ApiResponse_Success"];
1188
+ };
1189
+ };
1190
+ default: components["responses"]["ApiError"];
1191
+ };
1192
+ };
1193
+ schedulePost: {
1194
+ parameters: {
1195
+ query?: never;
1196
+ header?: never;
1197
+ path: {
1198
+ id: components["parameters"]["Id"];
1199
+ };
1200
+ cookie?: never;
1201
+ };
1202
+ requestBody: {
1203
+ content: {
1204
+ "application/json": components["schemas"]["SchedulePostInput"];
1205
+ };
1206
+ };
1207
+ responses: {
1208
+ /** @description Schedule result. */
1209
+ 200: {
1210
+ headers: {
1211
+ [name: string]: unknown;
1212
+ };
1213
+ content: {
1214
+ "application/json": components["schemas"]["ApiResponse_ScheduleResult"];
1215
+ };
1216
+ };
1217
+ default: components["responses"]["ApiError"];
1218
+ };
1219
+ };
1220
+ publishPost: {
1221
+ parameters: {
1222
+ query?: never;
1223
+ header?: never;
1224
+ path: {
1225
+ id: components["parameters"]["Id"];
1226
+ };
1227
+ cookie?: never;
1228
+ };
1229
+ requestBody?: never;
1230
+ responses: {
1231
+ /** @description Publish result. */
1232
+ 200: {
1233
+ headers: {
1234
+ [name: string]: unknown;
1235
+ };
1236
+ content: {
1237
+ "application/json": components["schemas"]["ApiResponse_PublishResult"];
1238
+ };
1239
+ };
1240
+ default: components["responses"]["ApiError"];
1241
+ };
1242
+ };
1243
+ sendEmail: {
1244
+ parameters: {
1245
+ query?: never;
1246
+ header?: never;
1247
+ path?: never;
1248
+ cookie?: never;
1249
+ };
1250
+ requestBody: {
1251
+ content: {
1252
+ "application/json": components["schemas"]["SendEmailInput"];
1253
+ };
1254
+ };
1255
+ responses: {
1256
+ /** @description Email queued. */
1257
+ 202: {
1258
+ headers: {
1259
+ [name: string]: unknown;
1260
+ };
1261
+ content: {
1262
+ "application/json": components["schemas"]["ApiResponse_EmailSendResult"];
1263
+ };
1264
+ };
1265
+ default: components["responses"]["ApiError"];
1266
+ };
1267
+ };
1268
+ batchSendEmails: {
1269
+ parameters: {
1270
+ query?: never;
1271
+ header?: never;
1272
+ path?: never;
1273
+ cookie?: never;
1274
+ };
1275
+ requestBody: {
1276
+ content: {
1277
+ "application/json": components["schemas"]["BatchSendInput"];
1278
+ };
1279
+ };
1280
+ responses: {
1281
+ /** @description Batch queued. */
1282
+ 202: {
1283
+ headers: {
1284
+ [name: string]: unknown;
1285
+ };
1286
+ content: {
1287
+ "application/json": components["schemas"]["ApiResponse_BatchSendSummary"];
1288
+ };
1289
+ };
1290
+ default: components["responses"]["ApiError"];
1291
+ };
1292
+ };
1293
+ listEmailTemplates: {
1294
+ parameters: {
1295
+ query?: never;
1296
+ header?: never;
1297
+ path?: never;
1298
+ cookie?: never;
1299
+ };
1300
+ requestBody?: never;
1301
+ responses: {
1302
+ /** @description Active templates. */
1303
+ 200: {
1304
+ headers: {
1305
+ [name: string]: unknown;
1306
+ };
1307
+ content: {
1308
+ "application/json": components["schemas"]["ApiResponse_EmailTemplateArray"];
1309
+ };
1310
+ };
1311
+ default: components["responses"]["ApiError"];
1312
+ };
1313
+ };
1314
+ getEmailTemplate: {
1315
+ parameters: {
1316
+ query?: {
1317
+ locale?: string;
1318
+ fallback_locale?: string;
1319
+ };
1320
+ header?: never;
1321
+ path: {
1322
+ slug: components["parameters"]["Slug"];
1323
+ };
1324
+ cookie?: never;
1325
+ };
1326
+ requestBody?: never;
1327
+ responses: {
1328
+ /** @description Email template detail. */
1329
+ 200: {
1330
+ headers: {
1331
+ [name: string]: unknown;
1332
+ };
1333
+ content: {
1334
+ "application/json": components["schemas"]["ApiResponse_EmailTemplateDetail"];
1335
+ };
1336
+ };
1337
+ default: components["responses"]["ApiError"];
1338
+ };
1339
+ };
1340
+ getEmailSend: {
1341
+ parameters: {
1342
+ query?: never;
1343
+ header?: never;
1344
+ path: {
1345
+ id: components["parameters"]["Id"];
1346
+ };
1347
+ cookie?: never;
1348
+ };
1349
+ requestBody?: never;
1350
+ responses: {
1351
+ /** @description Sent email status. */
1352
+ 200: {
1353
+ headers: {
1354
+ [name: string]: unknown;
1355
+ };
1356
+ content: {
1357
+ "application/json": components["schemas"]["ApiResponse_EmailSend"];
1358
+ };
1359
+ };
1360
+ default: components["responses"]["ApiError"];
1361
+ };
1362
+ };
1363
+ listContacts: {
1364
+ parameters: {
1365
+ query?: {
1366
+ limit?: components["parameters"]["Limit"];
1367
+ cursor?: components["parameters"]["Cursor"];
1368
+ status?: components["schemas"]["ContactStatus"];
1369
+ email_status?: components["schemas"]["EmailStatus"];
1370
+ /** @description Comma-separated label IDs. */
1371
+ label_ids?: string;
1372
+ search?: string;
1373
+ };
1374
+ header?: never;
1375
+ path?: never;
1376
+ cookie?: never;
1377
+ };
1378
+ requestBody?: never;
1379
+ responses: {
1380
+ /** @description Contacts page. */
1381
+ 200: {
1382
+ headers: {
1383
+ [name: string]: unknown;
1384
+ };
1385
+ content: {
1386
+ "application/json": components["schemas"]["PaginatedResponse_Contact"];
1387
+ };
1388
+ };
1389
+ default: components["responses"]["ApiError"];
1390
+ };
1391
+ };
1392
+ createContact: {
1393
+ parameters: {
1394
+ query?: never;
1395
+ header?: never;
1396
+ path?: never;
1397
+ cookie?: never;
1398
+ };
1399
+ requestBody: {
1400
+ content: {
1401
+ "application/json": components["schemas"]["CreateContactInput"];
1402
+ };
1403
+ };
1404
+ responses: {
1405
+ /** @description Created contact reference. */
1406
+ 200: {
1407
+ headers: {
1408
+ [name: string]: unknown;
1409
+ };
1410
+ content: {
1411
+ "application/json": components["schemas"]["ApiResponse_ContactCreateResult"];
1412
+ };
1413
+ };
1414
+ default: components["responses"]["ApiError"];
1415
+ };
1416
+ };
1417
+ importContacts: {
1418
+ parameters: {
1419
+ query?: never;
1420
+ header?: never;
1421
+ path?: never;
1422
+ cookie?: never;
1423
+ };
1424
+ requestBody: {
1425
+ content: {
1426
+ "application/json": {
1427
+ contacts: components["schemas"]["ImportContactInput"][];
1428
+ };
1429
+ };
1430
+ };
1431
+ responses: {
1432
+ /** @description Import summary. */
1433
+ 200: {
1434
+ headers: {
1435
+ [name: string]: unknown;
1436
+ };
1437
+ content: {
1438
+ "application/json": components["schemas"]["ApiResponse_ImportContactsResult"];
1439
+ };
1440
+ };
1441
+ default: components["responses"]["ApiError"];
1442
+ };
1443
+ };
1444
+ getContact: {
1445
+ parameters: {
1446
+ query?: never;
1447
+ header?: never;
1448
+ path: {
1449
+ id: components["parameters"]["Id"];
1450
+ };
1451
+ cookie?: never;
1452
+ };
1453
+ requestBody?: never;
1454
+ responses: {
1455
+ /** @description Contact. */
1456
+ 200: {
1457
+ headers: {
1458
+ [name: string]: unknown;
1459
+ };
1460
+ content: {
1461
+ "application/json": components["schemas"]["ApiResponse_Contact"];
1462
+ };
1463
+ };
1464
+ default: components["responses"]["ApiError"];
1465
+ };
1466
+ };
1467
+ deleteContact: {
1468
+ parameters: {
1469
+ query?: never;
1470
+ header?: never;
1471
+ path: {
1472
+ id: components["parameters"]["Id"];
1473
+ };
1474
+ cookie?: never;
1475
+ };
1476
+ requestBody?: never;
1477
+ responses: {
1478
+ /** @description Delete result. */
1479
+ 200: {
1480
+ headers: {
1481
+ [name: string]: unknown;
1482
+ };
1483
+ content: {
1484
+ "application/json": components["schemas"]["ApiResponse_ContactRemoveResult"];
1485
+ };
1486
+ };
1487
+ default: components["responses"]["ApiError"];
1488
+ };
1489
+ };
1490
+ updateContact: {
1491
+ parameters: {
1492
+ query?: never;
1493
+ header?: never;
1494
+ path: {
1495
+ id: components["parameters"]["Id"];
1496
+ };
1497
+ cookie?: never;
1498
+ };
1499
+ requestBody: {
1500
+ content: {
1501
+ "application/json": components["schemas"]["UpdateContactInput"];
1502
+ };
1503
+ };
1504
+ responses: {
1505
+ /** @description Update result. */
1506
+ 200: {
1507
+ headers: {
1508
+ [name: string]: unknown;
1509
+ };
1510
+ content: {
1511
+ "application/json": components["schemas"]["ApiResponse_ContactUpdateResult"];
1512
+ };
1513
+ };
1514
+ default: components["responses"]["ApiError"];
1515
+ };
1516
+ };
1517
+ listContactActivities: {
1518
+ parameters: {
1519
+ query?: {
1520
+ limit?: components["parameters"]["Limit"];
1521
+ cursor?: components["parameters"]["Cursor"];
1522
+ };
1523
+ header?: never;
1524
+ path: {
1525
+ id: components["parameters"]["Id"];
1526
+ };
1527
+ cookie?: never;
1528
+ };
1529
+ requestBody?: never;
1530
+ responses: {
1531
+ /** @description Contact activities page. */
1532
+ 200: {
1533
+ headers: {
1534
+ [name: string]: unknown;
1535
+ };
1536
+ content: {
1537
+ "application/json": components["schemas"]["PaginatedResponse_Activity"];
1538
+ };
1539
+ };
1540
+ default: components["responses"]["ApiError"];
1541
+ };
1542
+ };
1543
+ addContactNote: {
1544
+ parameters: {
1545
+ query?: never;
1546
+ header?: never;
1547
+ path: {
1548
+ id: components["parameters"]["Id"];
1549
+ };
1550
+ cookie?: never;
1551
+ };
1552
+ requestBody: {
1553
+ content: {
1554
+ "application/json": components["schemas"]["AddNoteInput"];
1555
+ };
1556
+ };
1557
+ responses: {
1558
+ /** @description Created note reference. */
1559
+ 200: {
1560
+ headers: {
1561
+ [name: string]: unknown;
1562
+ };
1563
+ content: {
1564
+ "application/json": components["schemas"]["ApiResponse_ContactNoteResult"];
1565
+ };
1566
+ };
1567
+ default: components["responses"]["ApiError"];
1568
+ };
1569
+ };
1570
+ listDeals: {
1571
+ parameters: {
1572
+ query?: {
1573
+ limit?: components["parameters"]["Limit"];
1574
+ cursor?: components["parameters"]["Cursor"];
1575
+ status?: components["schemas"]["DealStatus"];
1576
+ search?: string;
1577
+ };
1578
+ header?: never;
1579
+ path?: never;
1580
+ cookie?: never;
1581
+ };
1582
+ requestBody?: never;
1583
+ responses: {
1584
+ /** @description Deals page. */
1585
+ 200: {
1586
+ headers: {
1587
+ [name: string]: unknown;
1588
+ };
1589
+ content: {
1590
+ "application/json": components["schemas"]["PaginatedResponse_Deal"];
1591
+ };
1592
+ };
1593
+ default: components["responses"]["ApiError"];
1594
+ };
1595
+ };
1596
+ createDeal: {
1597
+ parameters: {
1598
+ query?: never;
1599
+ header?: never;
1600
+ path?: never;
1601
+ cookie?: never;
1602
+ };
1603
+ requestBody: {
1604
+ content: {
1605
+ "application/json": components["schemas"]["CreateDealInput"];
1606
+ };
1607
+ };
1608
+ responses: {
1609
+ /** @description Created deal reference. */
1610
+ 200: {
1611
+ headers: {
1612
+ [name: string]: unknown;
1613
+ };
1614
+ content: {
1615
+ "application/json": components["schemas"]["ApiResponse_DealCreateResult"];
1616
+ };
1617
+ };
1618
+ default: components["responses"]["ApiError"];
1619
+ };
1620
+ };
1621
+ getDeal: {
1622
+ parameters: {
1623
+ query?: never;
1624
+ header?: never;
1625
+ path: {
1626
+ id: components["parameters"]["Id"];
1627
+ };
1628
+ cookie?: never;
1629
+ };
1630
+ requestBody?: never;
1631
+ responses: {
1632
+ /** @description Deal. */
1633
+ 200: {
1634
+ headers: {
1635
+ [name: string]: unknown;
1636
+ };
1637
+ content: {
1638
+ "application/json": components["schemas"]["ApiResponse_Deal"];
1639
+ };
1640
+ };
1641
+ default: components["responses"]["ApiError"];
1642
+ };
1643
+ };
1644
+ deleteDeal: {
1645
+ parameters: {
1646
+ query?: never;
1647
+ header?: never;
1648
+ path: {
1649
+ id: components["parameters"]["Id"];
1650
+ };
1651
+ cookie?: never;
1652
+ };
1653
+ requestBody?: never;
1654
+ responses: {
1655
+ /** @description Delete result. */
1656
+ 200: {
1657
+ headers: {
1658
+ [name: string]: unknown;
1659
+ };
1660
+ content: {
1661
+ "application/json": components["schemas"]["ApiResponse_DealRemoveResult"];
1662
+ };
1663
+ };
1664
+ default: components["responses"]["ApiError"];
1665
+ };
1666
+ };
1667
+ updateDeal: {
1668
+ parameters: {
1669
+ query?: never;
1670
+ header?: never;
1671
+ path: {
1672
+ id: components["parameters"]["Id"];
1673
+ };
1674
+ cookie?: never;
1675
+ };
1676
+ requestBody: {
1677
+ content: {
1678
+ "application/json": components["schemas"]["UpdateDealInput"];
1679
+ };
1680
+ };
1681
+ responses: {
1682
+ /** @description Update result. */
1683
+ 200: {
1684
+ headers: {
1685
+ [name: string]: unknown;
1686
+ };
1687
+ content: {
1688
+ "application/json": components["schemas"]["ApiResponse_DealUpdateResult"];
1689
+ };
1690
+ };
1691
+ default: components["responses"]["ApiError"];
1692
+ };
1693
+ };
1694
+ requestGdprExport: {
1695
+ parameters: {
1696
+ query?: never;
1697
+ header?: never;
1698
+ path?: never;
1699
+ cookie?: never;
1700
+ };
1701
+ requestBody?: never;
1702
+ responses: {
1703
+ /** @description Export request reference. */
1704
+ 200: {
1705
+ headers: {
1706
+ [name: string]: unknown;
1707
+ };
1708
+ content: {
1709
+ "application/json": components["schemas"]["ApiResponse_GdprExportRequest"];
1710
+ };
1711
+ };
1712
+ default: components["responses"]["ApiError"];
1713
+ };
1714
+ };
1715
+ listGdprExports: {
1716
+ parameters: {
1717
+ query?: never;
1718
+ header?: never;
1719
+ path?: never;
1720
+ cookie?: never;
1721
+ };
1722
+ requestBody?: never;
1723
+ responses: {
1724
+ /** @description Export requests. */
1725
+ 200: {
1726
+ headers: {
1727
+ [name: string]: unknown;
1728
+ };
1729
+ content: {
1730
+ "application/json": components["schemas"]["ApiResponse_GdprExportArray"];
1731
+ };
1732
+ };
1733
+ default: components["responses"]["ApiError"];
1734
+ };
1735
+ };
1736
+ getGdprExport: {
1737
+ parameters: {
1738
+ query?: never;
1739
+ header?: never;
1740
+ path: {
1741
+ id: components["parameters"]["Id"];
1742
+ };
1743
+ cookie?: never;
1744
+ };
1745
+ requestBody?: never;
1746
+ responses: {
1747
+ /** @description Export request. */
1748
+ 200: {
1749
+ headers: {
1750
+ [name: string]: unknown;
1751
+ };
1752
+ content: {
1753
+ "application/json": components["schemas"]["ApiResponse_GdprExport"];
1754
+ };
1755
+ };
1756
+ default: components["responses"]["ApiError"];
1757
+ };
1758
+ };
1759
+ recordGdprConsent: {
1760
+ parameters: {
1761
+ query?: never;
1762
+ header?: never;
1763
+ path?: never;
1764
+ cookie?: never;
1765
+ };
1766
+ requestBody: {
1767
+ content: {
1768
+ "application/json": components["schemas"]["RecordConsentInput"];
1769
+ };
1770
+ };
1771
+ responses: {
1772
+ /** @description Consent reference. */
1773
+ 200: {
1774
+ headers: {
1775
+ [name: string]: unknown;
1776
+ };
1777
+ content: {
1778
+ "application/json": components["schemas"]["ApiResponse_ConsentResult"];
1779
+ };
1780
+ };
1781
+ default: components["responses"]["ApiError"];
1782
+ };
1783
+ };
1784
+ getGdprConsent: {
1785
+ parameters: {
1786
+ query?: never;
1787
+ header?: never;
1788
+ path: {
1789
+ email: string;
1790
+ };
1791
+ cookie?: never;
1792
+ };
1793
+ requestBody?: never;
1794
+ responses: {
1795
+ /** @description Consent records. */
1796
+ 200: {
1797
+ headers: {
1798
+ [name: string]: unknown;
1799
+ };
1800
+ content: {
1801
+ "application/json": components["schemas"]["ApiResponse_ConsentRecordArray"];
1802
+ };
1803
+ };
1804
+ default: components["responses"]["ApiError"];
1805
+ };
1806
+ };
1807
+ recordCookieConsent: {
1808
+ parameters: {
1809
+ query?: never;
1810
+ header?: never;
1811
+ path?: never;
1812
+ cookie?: never;
1813
+ };
1814
+ requestBody: {
1815
+ content: {
1816
+ "application/json": components["schemas"]["CookieConsentInput"];
1817
+ };
1818
+ };
1819
+ responses: {
1820
+ /** @description Cookie consent result. */
1821
+ 200: {
1822
+ headers: {
1823
+ [name: string]: unknown;
1824
+ };
1825
+ content: {
1826
+ "application/json": components["schemas"]["CookieConsentResult"];
1827
+ };
1828
+ };
1829
+ default: components["responses"]["ApiError"];
1830
+ };
1831
+ };
1832
+ listWorkspaces: {
1833
+ parameters: {
1834
+ query?: never;
1835
+ header?: never;
1836
+ path?: never;
1837
+ cookie?: never;
1838
+ };
1839
+ requestBody?: never;
1840
+ responses: {
1841
+ /** @description Workspaces. */
1842
+ 200: {
1843
+ headers: {
1844
+ [name: string]: unknown;
1845
+ };
1846
+ content: {
1847
+ "application/json": components["schemas"]["ApiResponse_WorkspaceArray"];
1848
+ };
1849
+ };
1850
+ default: components["responses"]["ApiError"];
1851
+ };
1852
+ };
1853
+ }
1854
+
1855
+ export type { $defs, components, operations, paths, webhooks };