samva 0.56.2 → 0.56.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/client/types.gen.d.ts +24 -0
  2. package/dist/effect/generated/agents.d.ts +16 -0
  3. package/dist/effect/generated/approval-requests.d.ts +12 -0
  4. package/dist/effect/generated/brands.d.ts +12 -0
  5. package/dist/effect/generated/campaigns.d.ts +32 -0
  6. package/dist/effect/generated/contacts.d.ts +28 -0
  7. package/dist/effect/generated/conversations.d.ts +8 -0
  8. package/dist/effect/generated/custom-fields.d.ts +4 -0
  9. package/dist/effect/generated/email.d.ts +92 -0
  10. package/dist/effect/generated/events.d.ts +4 -0
  11. package/dist/effect/generated/integrations-catalog.d.ts +24 -0
  12. package/dist/effect/generated/integrations.d.ts +16 -0
  13. package/dist/effect/generated/journeys.d.ts +28 -0
  14. package/dist/effect/generated/mailboxes.d.ts +76 -0
  15. package/dist/effect/generated/messages.d.ts +6 -0
  16. package/dist/effect/generated/namespaces.d.ts +20 -0
  17. package/dist/effect/generated/newsletter-domains.d.ts +16 -0
  18. package/dist/effect/generated/newsletter-issues.d.ts +56 -0
  19. package/dist/effect/generated/newsletter-issues.js +4 -0
  20. package/dist/effect/generated/newsletters.d.ts +20 -0
  21. package/dist/effect/generated/operations.d.ts +4 -0
  22. package/dist/effect/generated/organizations.d.ts +12 -0
  23. package/dist/effect/generated/phone-numbers.d.ts +4 -0
  24. package/dist/effect/generated/policies.d.ts +12 -0
  25. package/dist/effect/generated/scheduled-messages.d.ts +32 -0
  26. package/dist/effect/generated/scheduled-messages.js +2 -0
  27. package/dist/effect/generated/shared.d.ts +4 -0
  28. package/dist/effect/generated/shared.js +3 -1
  29. package/dist/effect/generated/subscriptions.d.ts +4 -0
  30. package/dist/effect/generated/template-registrations.d.ts +4 -0
  31. package/dist/effect/generated/templates.d.ts +45 -0
  32. package/dist/effect/generated/templates.js +7 -0
  33. package/dist/effect/generated/topics.d.ts +12 -0
  34. package/dist/effect/generated/webhooks.d.ts +8 -0
  35. package/dist/effect/generated/whats-app-flows.d.ts +12 -0
  36. package/dist/effect/generated/whats-app.d.ts +8 -0
  37. package/dist/effect/scheduled-messages.d.ts +3 -0
  38. package/dist/package.json.js +1 -1
  39. package/dist/promises/errors.gen.d.ts +2 -0
  40. package/dist/promises/errors.gen.js +5 -1
  41. package/package.json +2 -2
@@ -104,6 +104,7 @@ export type ConflictError = {
104
104
  message: string;
105
105
  resource: string;
106
106
  id?: string | null | undefined;
107
+ code?: "stale_revision" | undefined;
107
108
  };
108
109
  /**
109
110
  * For an immediate submission, `businessAccountId` is the connected number to register on and defaults to the number for the template's scope.
@@ -5539,6 +5540,10 @@ export type StoredWhatsAppSendMessage = {
5539
5540
  conversationId?: ConversationId | null | undefined;
5540
5541
  metadata?: MessageMetadata | undefined;
5541
5542
  channel: "whatsapp";
5543
+ /**
5544
+ * Sending WhatsApp business number in E.164 format. Omit to use the default number.
5545
+ */
5546
+ from?: string | undefined;
5542
5547
  to: [SavedPhoneRecipient];
5543
5548
  whatsapp: WhatsAppContent;
5544
5549
  };
@@ -5820,6 +5825,10 @@ export type WhatsAppDispatchSendMessagePayload = {
5820
5825
  conversationId?: ConversationId | null | undefined;
5821
5826
  metadata?: MessageMetadataWritable | undefined;
5822
5827
  channel: "whatsapp";
5828
+ /**
5829
+ * Sending WhatsApp business number in E.164 format. Omit to use the default number.
5830
+ */
5831
+ from?: string | undefined;
5823
5832
  to: WhatsAppRecipients;
5824
5833
  whatsapp: WhatsAppContentWritable;
5825
5834
  };
@@ -6396,6 +6405,10 @@ export type WhatsAppSendMessagePayload = {
6396
6405
  conversationId?: ConversationId | null | undefined;
6397
6406
  metadata?: MessageMetadataWritable | undefined;
6398
6407
  channel: "whatsapp";
6408
+ /**
6409
+ * Sending WhatsApp business number in E.164 format. Omit to use the default number.
6410
+ */
6411
+ from?: string | undefined;
6399
6412
  to: WhatsAppRecipients;
6400
6413
  whatsapp: WhatsAppContentWritable;
6401
6414
  };
@@ -19950,6 +19963,7 @@ export type NewsletterIssuesUpdateResponses = {
19950
19963
  overlay: {
19951
19964
  [key: string]: string | null;
19952
19965
  };
19966
+ assetDigest?: string | undefined;
19953
19967
  assetChanges: Array<{
19954
19968
  path: string;
19955
19969
  status: "added" | "modified" | "deleted";
@@ -20106,6 +20120,7 @@ export type NewsletterIssuesCreateResponses = {
20106
20120
  overlay: {
20107
20121
  [key: string]: string | null;
20108
20122
  };
20123
+ assetDigest?: string | undefined;
20109
20124
  assetChanges: Array<{
20110
20125
  path: string;
20111
20126
  status: "added" | "modified" | "deleted";
@@ -20252,6 +20267,7 @@ export type NewsletterIssuesOpenResponses = {
20252
20267
  overlay: {
20253
20268
  [key: string]: string | null;
20254
20269
  };
20270
+ assetDigest?: string | undefined;
20255
20271
  assetChanges: Array<{
20256
20272
  path: string;
20257
20273
  status: "added" | "modified" | "deleted";
@@ -20467,6 +20483,7 @@ export type NewsletterIssuesRemoveResponses = {
20467
20483
  overlay: {
20468
20484
  [key: string]: string | null;
20469
20485
  };
20486
+ assetDigest?: string | undefined;
20470
20487
  assetChanges: Array<{
20471
20488
  path: string;
20472
20489
  status: "added" | "modified" | "deleted";
@@ -22833,6 +22850,7 @@ export type TemplatesPatchWorkspaceResponses = {
22833
22850
  overlay: {
22834
22851
  [key: string]: string | null;
22835
22852
  };
22853
+ assetDigest?: string | undefined;
22836
22854
  assetChanges: Array<{
22837
22855
  path: string;
22838
22856
  status: "added" | "modified" | "deleted";
@@ -22979,6 +22997,7 @@ export type TemplatesOpenWorkspaceResponses = {
22979
22997
  overlay: {
22980
22998
  [key: string]: string | null;
22981
22999
  };
23000
+ assetDigest?: string | undefined;
22982
23001
  assetChanges: Array<{
22983
23002
  path: string;
22984
23003
  status: "added" | "modified" | "deleted";
@@ -23210,6 +23229,7 @@ export type TemplatesPutWorkspaceAssetResponses = {
23210
23229
  overlay: {
23211
23230
  [key: string]: string | null;
23212
23231
  };
23232
+ assetDigest?: string | undefined;
23213
23233
  assetChanges: Array<{
23214
23234
  path: string;
23215
23235
  status: "added" | "modified" | "deleted";
@@ -23368,6 +23388,7 @@ export type TemplatesResolveWorkspaceConflictResponses = {
23368
23388
  overlay: {
23369
23389
  [key: string]: string | null;
23370
23390
  };
23391
+ assetDigest?: string | undefined;
23371
23392
  assetChanges: Array<{
23372
23393
  path: string;
23373
23394
  status: "added" | "modified" | "deleted";
@@ -23636,6 +23657,7 @@ export type TemplatesRestoreWorkspaceResponses = {
23636
23657
  overlay: {
23637
23658
  [key: string]: string | null;
23638
23659
  };
23660
+ assetDigest?: string | undefined;
23639
23661
  assetChanges: Array<{
23640
23662
  path: string;
23641
23663
  status: "added" | "modified" | "deleted";
@@ -24852,6 +24874,7 @@ export type TemplatesAttachWorkspaceResourceResponses = {
24852
24874
  overlay: {
24853
24875
  [key: string]: string | null;
24854
24876
  };
24877
+ assetDigest?: string | undefined;
24855
24878
  assetChanges: Array<{
24856
24879
  path: string;
24857
24880
  status: "added" | "modified" | "deleted";
@@ -24999,6 +25022,7 @@ export type TemplatesRemoveWorkspaceResourceResponses = {
24999
25022
  overlay: {
25000
25023
  [key: string]: string | null;
25001
25024
  };
25025
+ assetDigest?: string | undefined;
25002
25026
  assetChanges: Array<{
25003
25027
  path: string;
25004
25028
  status: "added" | "modified" | "deleted";
@@ -4763,21 +4763,25 @@ export declare const AgentsContinueOnStandardEndpoint: HttpApiEndpoint.HttpApiEn
4763
4763
  readonly message: string;
4764
4764
  readonly resource: string;
4765
4765
  readonly id?: string | null;
4766
+ readonly code?: "stale_revision";
4766
4767
  }, readonly [Schema.Struct<{
4767
4768
  readonly _tag: Schema.tag<"ConflictError">;
4768
4769
  readonly message: Schema.String;
4769
4770
  readonly resource: Schema.String;
4770
4771
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4772
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
4771
4773
  }>], {
4772
4774
  readonly _tag: "ConflictError";
4773
4775
  readonly message: string;
4774
4776
  readonly resource: string;
4775
4777
  readonly id?: string | null;
4778
+ readonly code?: "stale_revision";
4776
4779
  }>, Schema.Struct<{
4777
4780
  readonly _tag: Schema.tag<"ConflictError">;
4778
4781
  readonly message: Schema.String;
4779
4782
  readonly resource: Schema.String;
4780
4783
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4784
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
4781
4785
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
4782
4786
  readonly _tag: "ForbiddenError";
4783
4787
  readonly message: string;
@@ -5074,21 +5078,25 @@ export declare const AgentsReplaceDraftEndpoint: HttpApiEndpoint.HttpApiEndpoint
5074
5078
  readonly message: string;
5075
5079
  readonly resource: string;
5076
5080
  readonly id?: string | null;
5081
+ readonly code?: "stale_revision";
5077
5082
  }, readonly [Schema.Struct<{
5078
5083
  readonly _tag: Schema.tag<"ConflictError">;
5079
5084
  readonly message: Schema.String;
5080
5085
  readonly resource: Schema.String;
5081
5086
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5087
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
5082
5088
  }>], {
5083
5089
  readonly _tag: "ConflictError";
5084
5090
  readonly message: string;
5085
5091
  readonly resource: string;
5086
5092
  readonly id?: string | null;
5093
+ readonly code?: "stale_revision";
5087
5094
  }>, Schema.Struct<{
5088
5095
  readonly _tag: Schema.tag<"ConflictError">;
5089
5096
  readonly message: Schema.String;
5090
5097
  readonly resource: Schema.String;
5091
5098
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5099
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
5092
5100
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
5093
5101
  readonly _tag: "ForbiddenError";
5094
5102
  readonly message: string;
@@ -5521,21 +5529,25 @@ export declare const AgentsPublishEndpoint: HttpApiEndpoint.HttpApiEndpoint<"age
5521
5529
  readonly message: string;
5522
5530
  readonly resource: string;
5523
5531
  readonly id?: string | null;
5532
+ readonly code?: "stale_revision";
5524
5533
  }, readonly [Schema.Struct<{
5525
5534
  readonly _tag: Schema.tag<"ConflictError">;
5526
5535
  readonly message: Schema.String;
5527
5536
  readonly resource: Schema.String;
5528
5537
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5538
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
5529
5539
  }>], {
5530
5540
  readonly _tag: "ConflictError";
5531
5541
  readonly message: string;
5532
5542
  readonly resource: string;
5533
5543
  readonly id?: string | null;
5544
+ readonly code?: "stale_revision";
5534
5545
  }>, Schema.Struct<{
5535
5546
  readonly _tag: Schema.tag<"ConflictError">;
5536
5547
  readonly message: Schema.String;
5537
5548
  readonly resource: Schema.String;
5538
5549
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5550
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
5539
5551
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
5540
5552
  readonly _tag: "ForbiddenError";
5541
5553
  readonly message: string;
@@ -6489,21 +6501,25 @@ export declare const AgentsPublishVersionEndpoint: HttpApiEndpoint.HttpApiEndpoi
6489
6501
  readonly message: string;
6490
6502
  readonly resource: string;
6491
6503
  readonly id?: string | null;
6504
+ readonly code?: "stale_revision";
6492
6505
  }, readonly [Schema.Struct<{
6493
6506
  readonly _tag: Schema.tag<"ConflictError">;
6494
6507
  readonly message: Schema.String;
6495
6508
  readonly resource: Schema.String;
6496
6509
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
6510
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
6497
6511
  }>], {
6498
6512
  readonly _tag: "ConflictError";
6499
6513
  readonly message: string;
6500
6514
  readonly resource: string;
6501
6515
  readonly id?: string | null;
6516
+ readonly code?: "stale_revision";
6502
6517
  }>, Schema.Struct<{
6503
6518
  readonly _tag: Schema.tag<"ConflictError">;
6504
6519
  readonly message: Schema.String;
6505
6520
  readonly resource: Schema.String;
6506
6521
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
6522
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
6507
6523
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
6508
6524
  readonly _tag: "ForbiddenError";
6509
6525
  readonly message: string;
@@ -268,21 +268,25 @@ export declare const ApprovalRequestsCreateEndpoint: HttpApiEndpoint.HttpApiEndp
268
268
  readonly message: string;
269
269
  readonly resource: string;
270
270
  readonly id?: string | null;
271
+ readonly code?: "stale_revision";
271
272
  }, readonly [Schema.Struct<{
272
273
  readonly _tag: Schema.tag<"ConflictError">;
273
274
  readonly message: Schema.String;
274
275
  readonly resource: Schema.String;
275
276
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
277
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
276
278
  }>], {
277
279
  readonly _tag: "ConflictError";
278
280
  readonly message: string;
279
281
  readonly resource: string;
280
282
  readonly id?: string | null;
283
+ readonly code?: "stale_revision";
281
284
  }>, Schema.Struct<{
282
285
  readonly _tag: Schema.tag<"ConflictError">;
283
286
  readonly message: Schema.String;
284
287
  readonly resource: Schema.String;
285
288
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
289
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
286
290
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
287
291
  readonly _tag: "ForbiddenError";
288
292
  readonly message: string;
@@ -514,21 +518,25 @@ export declare const ApprovalRequestsApproveEndpoint: HttpApiEndpoint.HttpApiEnd
514
518
  readonly message: string;
515
519
  readonly resource: string;
516
520
  readonly id?: string | null;
521
+ readonly code?: "stale_revision";
517
522
  }, readonly [Schema.Struct<{
518
523
  readonly _tag: Schema.tag<"ConflictError">;
519
524
  readonly message: Schema.String;
520
525
  readonly resource: Schema.String;
521
526
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
527
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
522
528
  }>], {
523
529
  readonly _tag: "ConflictError";
524
530
  readonly message: string;
525
531
  readonly resource: string;
526
532
  readonly id?: string | null;
533
+ readonly code?: "stale_revision";
527
534
  }>, Schema.Struct<{
528
535
  readonly _tag: Schema.tag<"ConflictError">;
529
536
  readonly message: Schema.String;
530
537
  readonly resource: Schema.String;
531
538
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
539
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
532
540
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
533
541
  readonly _tag: "ForbiddenError";
534
542
  readonly message: string;
@@ -659,21 +667,25 @@ export declare const ApprovalRequestsRejectEndpoint: HttpApiEndpoint.HttpApiEndp
659
667
  readonly message: string;
660
668
  readonly resource: string;
661
669
  readonly id?: string | null;
670
+ readonly code?: "stale_revision";
662
671
  }, readonly [Schema.Struct<{
663
672
  readonly _tag: Schema.tag<"ConflictError">;
664
673
  readonly message: Schema.String;
665
674
  readonly resource: Schema.String;
666
675
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
676
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
667
677
  }>], {
668
678
  readonly _tag: "ConflictError";
669
679
  readonly message: string;
670
680
  readonly resource: string;
671
681
  readonly id?: string | null;
682
+ readonly code?: "stale_revision";
672
683
  }>, Schema.Struct<{
673
684
  readonly _tag: Schema.tag<"ConflictError">;
674
685
  readonly message: Schema.String;
675
686
  readonly resource: Schema.String;
676
687
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
688
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
677
689
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
678
690
  readonly _tag: "ForbiddenError";
679
691
  readonly message: string;
@@ -641,21 +641,25 @@ export declare const BrandsCreateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"bran
641
641
  readonly message: string;
642
642
  readonly resource: string;
643
643
  readonly id?: string | null;
644
+ readonly code?: "stale_revision";
644
645
  }, readonly [Schema.Struct<{
645
646
  readonly _tag: Schema.tag<"ConflictError">;
646
647
  readonly message: Schema.String;
647
648
  readonly resource: Schema.String;
648
649
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
650
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
649
651
  }>], {
650
652
  readonly _tag: "ConflictError";
651
653
  readonly message: string;
652
654
  readonly resource: string;
653
655
  readonly id?: string | null;
656
+ readonly code?: "stale_revision";
654
657
  }>, Schema.Struct<{
655
658
  readonly _tag: Schema.tag<"ConflictError">;
656
659
  readonly message: Schema.String;
657
660
  readonly resource: Schema.String;
658
661
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
662
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
659
663
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
660
664
  readonly _tag: "ForbiddenError";
661
665
  readonly message: string;
@@ -904,21 +908,25 @@ export declare const BrandsRemoveEndpoint: HttpApiEndpoint.HttpApiEndpoint<"bran
904
908
  readonly message: string;
905
909
  readonly resource: string;
906
910
  readonly id?: string | null;
911
+ readonly code?: "stale_revision";
907
912
  }, readonly [Schema.Struct<{
908
913
  readonly _tag: Schema.tag<"ConflictError">;
909
914
  readonly message: Schema.String;
910
915
  readonly resource: Schema.String;
911
916
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
917
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
912
918
  }>], {
913
919
  readonly _tag: "ConflictError";
914
920
  readonly message: string;
915
921
  readonly resource: string;
916
922
  readonly id?: string | null;
923
+ readonly code?: "stale_revision";
917
924
  }>, Schema.Struct<{
918
925
  readonly _tag: Schema.tag<"ConflictError">;
919
926
  readonly message: Schema.String;
920
927
  readonly resource: Schema.String;
921
928
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
929
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
922
930
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
923
931
  readonly _tag: "ForbiddenError";
924
932
  readonly message: string;
@@ -1084,21 +1092,25 @@ export declare const BrandsUpdateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"bran
1084
1092
  readonly message: string;
1085
1093
  readonly resource: string;
1086
1094
  readonly id?: string | null;
1095
+ readonly code?: "stale_revision";
1087
1096
  }, readonly [Schema.Struct<{
1088
1097
  readonly _tag: Schema.tag<"ConflictError">;
1089
1098
  readonly message: Schema.String;
1090
1099
  readonly resource: Schema.String;
1091
1100
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1101
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
1092
1102
  }>], {
1093
1103
  readonly _tag: "ConflictError";
1094
1104
  readonly message: string;
1095
1105
  readonly resource: string;
1096
1106
  readonly id?: string | null;
1107
+ readonly code?: "stale_revision";
1097
1108
  }>, Schema.Struct<{
1098
1109
  readonly _tag: Schema.tag<"ConflictError">;
1099
1110
  readonly message: Schema.String;
1100
1111
  readonly resource: Schema.String;
1101
1112
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1113
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
1102
1114
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1103
1115
  readonly _tag: "ForbiddenError";
1104
1116
  readonly message: string;
@@ -3933,21 +3933,25 @@ export declare const CampaignsUpdateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"c
3933
3933
  readonly message: string;
3934
3934
  readonly resource: string;
3935
3935
  readonly id?: string | null;
3936
+ readonly code?: "stale_revision";
3936
3937
  }, readonly [Schema.Struct<{
3937
3938
  readonly _tag: Schema.tag<"ConflictError">;
3938
3939
  readonly message: Schema.String;
3939
3940
  readonly resource: Schema.String;
3940
3941
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3942
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
3941
3943
  }>], {
3942
3944
  readonly _tag: "ConflictError";
3943
3945
  readonly message: string;
3944
3946
  readonly resource: string;
3945
3947
  readonly id?: string | null;
3948
+ readonly code?: "stale_revision";
3946
3949
  }>, Schema.Struct<{
3947
3950
  readonly _tag: Schema.tag<"ConflictError">;
3948
3951
  readonly message: Schema.String;
3949
3952
  readonly resource: Schema.String;
3950
3953
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3954
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
3951
3955
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
3952
3956
  readonly _tag: "GatewayTimeoutError";
3953
3957
  readonly message: string;
@@ -4146,21 +4150,25 @@ export declare const CampaignsArchiveEndpoint: HttpApiEndpoint.HttpApiEndpoint<"
4146
4150
  readonly message: string;
4147
4151
  readonly resource: string;
4148
4152
  readonly id?: string | null;
4153
+ readonly code?: "stale_revision";
4149
4154
  }, readonly [Schema.Struct<{
4150
4155
  readonly _tag: Schema.tag<"ConflictError">;
4151
4156
  readonly message: Schema.String;
4152
4157
  readonly resource: Schema.String;
4153
4158
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4159
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
4154
4160
  }>], {
4155
4161
  readonly _tag: "ConflictError";
4156
4162
  readonly message: string;
4157
4163
  readonly resource: string;
4158
4164
  readonly id?: string | null;
4165
+ readonly code?: "stale_revision";
4159
4166
  }>, Schema.Struct<{
4160
4167
  readonly _tag: Schema.tag<"ConflictError">;
4161
4168
  readonly message: Schema.String;
4162
4169
  readonly resource: Schema.String;
4163
4170
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4171
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
4164
4172
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
4165
4173
  readonly _tag: "ForbiddenError";
4166
4174
  readonly message: string;
@@ -4595,21 +4603,25 @@ export declare const CampaignsScheduleRunEndpoint: HttpApiEndpoint.HttpApiEndpoi
4595
4603
  readonly message: string;
4596
4604
  readonly resource: string;
4597
4605
  readonly id?: string | null;
4606
+ readonly code?: "stale_revision";
4598
4607
  }, readonly [Schema.Struct<{
4599
4608
  readonly _tag: Schema.tag<"ConflictError">;
4600
4609
  readonly message: Schema.String;
4601
4610
  readonly resource: Schema.String;
4602
4611
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4612
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
4603
4613
  }>], {
4604
4614
  readonly _tag: "ConflictError";
4605
4615
  readonly message: string;
4606
4616
  readonly resource: string;
4607
4617
  readonly id?: string | null;
4618
+ readonly code?: "stale_revision";
4608
4619
  }>, Schema.Struct<{
4609
4620
  readonly _tag: Schema.tag<"ConflictError">;
4610
4621
  readonly message: Schema.String;
4611
4622
  readonly resource: Schema.String;
4612
4623
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4624
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
4613
4625
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
4614
4626
  readonly _tag: "GatewayTimeoutError";
4615
4627
  readonly message: string;
@@ -5030,21 +5042,25 @@ export declare const CampaignsCancelRunEndpoint: HttpApiEndpoint.HttpApiEndpoint
5030
5042
  readonly message: string;
5031
5043
  readonly resource: string;
5032
5044
  readonly id?: string | null;
5045
+ readonly code?: "stale_revision";
5033
5046
  }, readonly [Schema.Struct<{
5034
5047
  readonly _tag: Schema.tag<"ConflictError">;
5035
5048
  readonly message: Schema.String;
5036
5049
  readonly resource: Schema.String;
5037
5050
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5051
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
5038
5052
  }>], {
5039
5053
  readonly _tag: "ConflictError";
5040
5054
  readonly message: string;
5041
5055
  readonly resource: string;
5042
5056
  readonly id?: string | null;
5057
+ readonly code?: "stale_revision";
5043
5058
  }>, Schema.Struct<{
5044
5059
  readonly _tag: Schema.tag<"ConflictError">;
5045
5060
  readonly message: Schema.String;
5046
5061
  readonly resource: Schema.String;
5047
5062
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5063
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
5048
5064
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ExternalServiceError, {
5049
5065
  readonly _tag: "ExternalServiceError";
5050
5066
  readonly message: string;
@@ -5275,21 +5291,25 @@ export declare const CampaignsPauseRunEndpoint: HttpApiEndpoint.HttpApiEndpoint<
5275
5291
  readonly message: string;
5276
5292
  readonly resource: string;
5277
5293
  readonly id?: string | null;
5294
+ readonly code?: "stale_revision";
5278
5295
  }, readonly [Schema.Struct<{
5279
5296
  readonly _tag: Schema.tag<"ConflictError">;
5280
5297
  readonly message: Schema.String;
5281
5298
  readonly resource: Schema.String;
5282
5299
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5300
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
5283
5301
  }>], {
5284
5302
  readonly _tag: "ConflictError";
5285
5303
  readonly message: string;
5286
5304
  readonly resource: string;
5287
5305
  readonly id?: string | null;
5306
+ readonly code?: "stale_revision";
5288
5307
  }>, Schema.Struct<{
5289
5308
  readonly _tag: Schema.tag<"ConflictError">;
5290
5309
  readonly message: Schema.String;
5291
5310
  readonly resource: Schema.String;
5292
5311
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5312
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
5293
5313
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ExternalServiceError, {
5294
5314
  readonly _tag: "ExternalServiceError";
5295
5315
  readonly message: string;
@@ -5775,21 +5795,25 @@ export declare const CampaignsResumeRunEndpoint: HttpApiEndpoint.HttpApiEndpoint
5775
5795
  readonly message: string;
5776
5796
  readonly resource: string;
5777
5797
  readonly id?: string | null;
5798
+ readonly code?: "stale_revision";
5778
5799
  }, readonly [Schema.Struct<{
5779
5800
  readonly _tag: Schema.tag<"ConflictError">;
5780
5801
  readonly message: Schema.String;
5781
5802
  readonly resource: Schema.String;
5782
5803
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5804
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
5783
5805
  }>], {
5784
5806
  readonly _tag: "ConflictError";
5785
5807
  readonly message: string;
5786
5808
  readonly resource: string;
5787
5809
  readonly id?: string | null;
5810
+ readonly code?: "stale_revision";
5788
5811
  }>, Schema.Struct<{
5789
5812
  readonly _tag: Schema.tag<"ConflictError">;
5790
5813
  readonly message: Schema.String;
5791
5814
  readonly resource: Schema.String;
5792
5815
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5816
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
5793
5817
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
5794
5818
  readonly _tag: "ForbiddenError";
5795
5819
  readonly message: string;
@@ -6003,21 +6027,25 @@ export declare const CampaignsPreviewEndpoint: HttpApiEndpoint.HttpApiEndpoint<"
6003
6027
  readonly message: string;
6004
6028
  readonly resource: string;
6005
6029
  readonly id?: string | null;
6030
+ readonly code?: "stale_revision";
6006
6031
  }, readonly [Schema.Struct<{
6007
6032
  readonly _tag: Schema.tag<"ConflictError">;
6008
6033
  readonly message: Schema.String;
6009
6034
  readonly resource: Schema.String;
6010
6035
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
6036
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
6011
6037
  }>], {
6012
6038
  readonly _tag: "ConflictError";
6013
6039
  readonly message: string;
6014
6040
  readonly resource: string;
6015
6041
  readonly id?: string | null;
6042
+ readonly code?: "stale_revision";
6016
6043
  }>, Schema.Struct<{
6017
6044
  readonly _tag: Schema.tag<"ConflictError">;
6018
6045
  readonly message: Schema.String;
6019
6046
  readonly resource: Schema.String;
6020
6047
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
6048
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
6021
6049
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
6022
6050
  readonly _tag: "ForbiddenError";
6023
6051
  readonly message: string;
@@ -6200,21 +6228,25 @@ export declare const CampaignsSendTestEndpoint: HttpApiEndpoint.HttpApiEndpoint<
6200
6228
  readonly message: string;
6201
6229
  readonly resource: string;
6202
6230
  readonly id?: string | null;
6231
+ readonly code?: "stale_revision";
6203
6232
  }, readonly [Schema.Struct<{
6204
6233
  readonly _tag: Schema.tag<"ConflictError">;
6205
6234
  readonly message: Schema.String;
6206
6235
  readonly resource: Schema.String;
6207
6236
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
6237
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
6208
6238
  }>], {
6209
6239
  readonly _tag: "ConflictError";
6210
6240
  readonly message: string;
6211
6241
  readonly resource: string;
6212
6242
  readonly id?: string | null;
6243
+ readonly code?: "stale_revision";
6213
6244
  }>, Schema.Struct<{
6214
6245
  readonly _tag: Schema.tag<"ConflictError">;
6215
6246
  readonly message: Schema.String;
6216
6247
  readonly resource: Schema.String;
6217
6248
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
6249
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
6218
6250
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
6219
6251
  readonly _tag: "GatewayTimeoutError";
6220
6252
  readonly message: string;