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
@@ -2063,6 +2063,7 @@ export type TemplatesOpenWorkspace200 = {
2063
2063
  readonly overlay: {
2064
2064
  readonly [x: string]: string | null;
2065
2065
  };
2066
+ readonly assetDigest?: string;
2066
2067
  readonly assetChanges: ReadonlyArray<{
2067
2068
  readonly path: string;
2068
2069
  readonly status: "added" | "modified" | "deleted";
@@ -2142,6 +2143,7 @@ export declare const TemplatesOpenWorkspace200: Schema.Struct<{
2142
2143
  readonly pendingRemoteHead: Schema.Union<readonly [Schema.String, Schema.Null]>;
2143
2144
  readonly revision: Schema.String;
2144
2145
  readonly overlay: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>;
2146
+ readonly assetDigest: Schema.optionalKey<Schema.String>;
2145
2147
  readonly assetChanges: Schema.$Array<Schema.Struct<{
2146
2148
  readonly path: Schema.String;
2147
2149
  readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
@@ -2265,6 +2267,7 @@ export type TemplatesPatchWorkspace200 = {
2265
2267
  readonly overlay: {
2266
2268
  readonly [x: string]: string | null;
2267
2269
  };
2270
+ readonly assetDigest?: string;
2268
2271
  readonly assetChanges: ReadonlyArray<{
2269
2272
  readonly path: string;
2270
2273
  readonly status: "added" | "modified" | "deleted";
@@ -2344,6 +2347,7 @@ export declare const TemplatesPatchWorkspace200: Schema.Struct<{
2344
2347
  readonly pendingRemoteHead: Schema.Union<readonly [Schema.String, Schema.Null]>;
2345
2348
  readonly revision: Schema.String;
2346
2349
  readonly overlay: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>;
2350
+ readonly assetDigest: Schema.optionalKey<Schema.String>;
2347
2351
  readonly assetChanges: Schema.$Array<Schema.Struct<{
2348
2352
  readonly path: Schema.String;
2349
2353
  readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
@@ -2465,6 +2469,7 @@ export type TemplatesPutWorkspaceAsset200 = {
2465
2469
  readonly overlay: {
2466
2470
  readonly [x: string]: string | null;
2467
2471
  };
2472
+ readonly assetDigest?: string;
2468
2473
  readonly assetChanges: ReadonlyArray<{
2469
2474
  readonly path: string;
2470
2475
  readonly status: "added" | "modified" | "deleted";
@@ -2544,6 +2549,7 @@ export declare const TemplatesPutWorkspaceAsset200: Schema.Struct<{
2544
2549
  readonly pendingRemoteHead: Schema.Union<readonly [Schema.String, Schema.Null]>;
2545
2550
  readonly revision: Schema.String;
2546
2551
  readonly overlay: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>;
2552
+ readonly assetDigest: Schema.optionalKey<Schema.String>;
2547
2553
  readonly assetChanges: Schema.$Array<Schema.Struct<{
2548
2554
  readonly path: Schema.String;
2549
2555
  readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
@@ -2857,6 +2863,7 @@ export type TemplatesResolveWorkspaceConflict200 = {
2857
2863
  readonly overlay: {
2858
2864
  readonly [x: string]: string | null;
2859
2865
  };
2866
+ readonly assetDigest?: string;
2860
2867
  readonly assetChanges: ReadonlyArray<{
2861
2868
  readonly path: string;
2862
2869
  readonly status: "added" | "modified" | "deleted";
@@ -2936,6 +2943,7 @@ export declare const TemplatesResolveWorkspaceConflict200: Schema.Struct<{
2936
2943
  readonly pendingRemoteHead: Schema.Union<readonly [Schema.String, Schema.Null]>;
2937
2944
  readonly revision: Schema.String;
2938
2945
  readonly overlay: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>;
2946
+ readonly assetDigest: Schema.optionalKey<Schema.String>;
2939
2947
  readonly assetChanges: Schema.$Array<Schema.Struct<{
2940
2948
  readonly path: Schema.String;
2941
2949
  readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
@@ -3530,6 +3538,7 @@ export type TemplatesAttachWorkspaceResource200 = {
3530
3538
  readonly overlay: {
3531
3539
  readonly [x: string]: string | null;
3532
3540
  };
3541
+ readonly assetDigest?: string;
3533
3542
  readonly assetChanges: ReadonlyArray<{
3534
3543
  readonly path: string;
3535
3544
  readonly status: "added" | "modified" | "deleted";
@@ -3604,6 +3613,7 @@ export declare const TemplatesAttachWorkspaceResource200: Schema.Struct<{
3604
3613
  readonly pendingRemoteHead: Schema.Union<readonly [Schema.String, Schema.Null]>;
3605
3614
  readonly revision: Schema.String;
3606
3615
  readonly overlay: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>;
3616
+ readonly assetDigest: Schema.optionalKey<Schema.String>;
3607
3617
  readonly assetChanges: Schema.$Array<Schema.Struct<{
3608
3618
  readonly path: Schema.String;
3609
3619
  readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
@@ -3718,6 +3728,7 @@ export type TemplatesRemoveWorkspaceResource200 = {
3718
3728
  readonly overlay: {
3719
3729
  readonly [x: string]: string | null;
3720
3730
  };
3731
+ readonly assetDigest?: string;
3721
3732
  readonly assetChanges: ReadonlyArray<{
3722
3733
  readonly path: string;
3723
3734
  readonly status: "added" | "modified" | "deleted";
@@ -3792,6 +3803,7 @@ export declare const TemplatesRemoveWorkspaceResource200: Schema.Struct<{
3792
3803
  readonly pendingRemoteHead: Schema.Union<readonly [Schema.String, Schema.Null]>;
3793
3804
  readonly revision: Schema.String;
3794
3805
  readonly overlay: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>;
3806
+ readonly assetDigest: Schema.optionalKey<Schema.String>;
3795
3807
  readonly assetChanges: Schema.$Array<Schema.Struct<{
3796
3808
  readonly path: Schema.String;
3797
3809
  readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
@@ -3908,6 +3920,7 @@ export type TemplatesRestoreWorkspace200 = {
3908
3920
  readonly overlay: {
3909
3921
  readonly [x: string]: string | null;
3910
3922
  };
3923
+ readonly assetDigest?: string;
3911
3924
  readonly assetChanges: ReadonlyArray<{
3912
3925
  readonly path: string;
3913
3926
  readonly status: "added" | "modified" | "deleted";
@@ -3993,6 +4006,7 @@ export declare const TemplatesRestoreWorkspace200: Schema.Struct<{
3993
4006
  readonly pendingRemoteHead: Schema.Union<readonly [Schema.String, Schema.Null]>;
3994
4007
  readonly revision: Schema.String;
3995
4008
  readonly overlay: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>;
4009
+ readonly assetDigest: Schema.optionalKey<Schema.String>;
3996
4010
  readonly assetChanges: Schema.$Array<Schema.Struct<{
3997
4011
  readonly path: Schema.String;
3998
4012
  readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
@@ -5842,21 +5856,25 @@ export declare const TemplatesUpdateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"t
5842
5856
  readonly message: string;
5843
5857
  readonly resource: string;
5844
5858
  readonly id?: string | null;
5859
+ readonly code?: "stale_revision";
5845
5860
  }, readonly [Schema.Struct<{
5846
5861
  readonly _tag: Schema.tag<"ConflictError">;
5847
5862
  readonly message: Schema.String;
5848
5863
  readonly resource: Schema.String;
5849
5864
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5865
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
5850
5866
  }>], {
5851
5867
  readonly _tag: "ConflictError";
5852
5868
  readonly message: string;
5853
5869
  readonly resource: string;
5854
5870
  readonly id?: string | null;
5871
+ readonly code?: "stale_revision";
5855
5872
  }>, Schema.Struct<{
5856
5873
  readonly _tag: Schema.tag<"ConflictError">;
5857
5874
  readonly message: Schema.String;
5858
5875
  readonly resource: Schema.String;
5859
5876
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5877
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
5860
5878
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
5861
5879
  readonly _tag: "ForbiddenError";
5862
5880
  readonly message: string;
@@ -6685,21 +6703,25 @@ export declare const TemplatesRenderPublicationEndpoint: HttpApiEndpoint.HttpApi
6685
6703
  readonly message: string;
6686
6704
  readonly resource: string;
6687
6705
  readonly id?: string | null;
6706
+ readonly code?: "stale_revision";
6688
6707
  }, readonly [Schema.Struct<{
6689
6708
  readonly _tag: Schema.tag<"ConflictError">;
6690
6709
  readonly message: Schema.String;
6691
6710
  readonly resource: Schema.String;
6692
6711
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
6712
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
6693
6713
  }>], {
6694
6714
  readonly _tag: "ConflictError";
6695
6715
  readonly message: string;
6696
6716
  readonly resource: string;
6697
6717
  readonly id?: string | null;
6718
+ readonly code?: "stale_revision";
6698
6719
  }>, Schema.Struct<{
6699
6720
  readonly _tag: Schema.tag<"ConflictError">;
6700
6721
  readonly message: Schema.String;
6701
6722
  readonly resource: Schema.String;
6702
6723
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
6724
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
6703
6725
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
6704
6726
  readonly _tag: "ForbiddenError";
6705
6727
  readonly message: string;
@@ -7023,6 +7045,7 @@ export declare const TemplatesOpenWorkspaceEndpoint: HttpApiEndpoint.HttpApiEndp
7023
7045
  readonly pendingRemoteHead: Schema.Union<readonly [Schema.String, Schema.Null]>;
7024
7046
  readonly revision: Schema.String;
7025
7047
  readonly overlay: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>;
7048
+ readonly assetDigest: Schema.optionalKey<Schema.String>;
7026
7049
  readonly assetChanges: Schema.$Array<Schema.Struct<{
7027
7050
  readonly path: Schema.String;
7028
7051
  readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
@@ -7206,6 +7229,7 @@ export declare const TemplatesPatchWorkspaceEndpoint: HttpApiEndpoint.HttpApiEnd
7206
7229
  readonly pendingRemoteHead: Schema.Union<readonly [Schema.String, Schema.Null]>;
7207
7230
  readonly revision: Schema.String;
7208
7231
  readonly overlay: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>;
7232
+ readonly assetDigest: Schema.optionalKey<Schema.String>;
7209
7233
  readonly assetChanges: Schema.$Array<Schema.Struct<{
7210
7234
  readonly path: Schema.String;
7211
7235
  readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
@@ -7388,6 +7412,7 @@ export declare const TemplatesPutWorkspaceAssetEndpoint: HttpApiEndpoint.HttpApi
7388
7412
  readonly pendingRemoteHead: Schema.Union<readonly [Schema.String, Schema.Null]>;
7389
7413
  readonly revision: Schema.String;
7390
7414
  readonly overlay: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>;
7415
+ readonly assetDigest: Schema.optionalKey<Schema.String>;
7391
7416
  readonly assetChanges: Schema.$Array<Schema.Struct<{
7392
7417
  readonly path: Schema.String;
7393
7418
  readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
@@ -7750,6 +7775,7 @@ export declare const TemplatesResolveWorkspaceConflictEndpoint: HttpApiEndpoint.
7750
7775
  readonly pendingRemoteHead: Schema.Union<readonly [Schema.String, Schema.Null]>;
7751
7776
  readonly revision: Schema.String;
7752
7777
  readonly overlay: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>;
7778
+ readonly assetDigest: Schema.optionalKey<Schema.String>;
7753
7779
  readonly assetChanges: Schema.$Array<Schema.Struct<{
7754
7780
  readonly path: Schema.String;
7755
7781
  readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
@@ -8422,6 +8448,7 @@ export declare const TemplatesAttachWorkspaceResourceEndpoint: HttpApiEndpoint.H
8422
8448
  readonly pendingRemoteHead: Schema.Union<readonly [Schema.String, Schema.Null]>;
8423
8449
  readonly revision: Schema.String;
8424
8450
  readonly overlay: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>;
8451
+ readonly assetDigest: Schema.optionalKey<Schema.String>;
8425
8452
  readonly assetChanges: Schema.$Array<Schema.Struct<{
8426
8453
  readonly path: Schema.String;
8427
8454
  readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
@@ -8599,6 +8626,7 @@ export declare const TemplatesRemoveWorkspaceResourceEndpoint: HttpApiEndpoint.H
8599
8626
  readonly pendingRemoteHead: Schema.Union<readonly [Schema.String, Schema.Null]>;
8600
8627
  readonly revision: Schema.String;
8601
8628
  readonly overlay: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>;
8629
+ readonly assetDigest: Schema.optionalKey<Schema.String>;
8602
8630
  readonly assetChanges: Schema.$Array<Schema.Struct<{
8603
8631
  readonly path: Schema.String;
8604
8632
  readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
@@ -8778,6 +8806,7 @@ export declare const TemplatesRestoreWorkspaceEndpoint: HttpApiEndpoint.HttpApiE
8778
8806
  readonly pendingRemoteHead: Schema.Union<readonly [Schema.String, Schema.Null]>;
8779
8807
  readonly revision: Schema.String;
8780
8808
  readonly overlay: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>;
8809
+ readonly assetDigest: Schema.optionalKey<Schema.String>;
8781
8810
  readonly assetChanges: Schema.$Array<Schema.Struct<{
8782
8811
  readonly path: Schema.String;
8783
8812
  readonly status: Schema.Union<readonly [Schema.Literal<"added">, Schema.Literal<"modified">, Schema.Literal<"deleted">]>;
@@ -9691,21 +9720,25 @@ export declare const TemplatesAttachFamilyMemberEndpoint: HttpApiEndpoint.HttpAp
9691
9720
  readonly message: string;
9692
9721
  readonly resource: string;
9693
9722
  readonly id?: string | null;
9723
+ readonly code?: "stale_revision";
9694
9724
  }, readonly [Schema.Struct<{
9695
9725
  readonly _tag: Schema.tag<"ConflictError">;
9696
9726
  readonly message: Schema.String;
9697
9727
  readonly resource: Schema.String;
9698
9728
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
9729
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
9699
9730
  }>], {
9700
9731
  readonly _tag: "ConflictError";
9701
9732
  readonly message: string;
9702
9733
  readonly resource: string;
9703
9734
  readonly id?: string | null;
9735
+ readonly code?: "stale_revision";
9704
9736
  }>, Schema.Struct<{
9705
9737
  readonly _tag: Schema.tag<"ConflictError">;
9706
9738
  readonly message: Schema.String;
9707
9739
  readonly resource: Schema.String;
9708
9740
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
9741
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
9709
9742
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
9710
9743
  readonly _tag: "ForbiddenError";
9711
9744
  readonly message: string;
@@ -9830,21 +9863,25 @@ export declare const TemplatesDetachFamilyMemberEndpoint: HttpApiEndpoint.HttpAp
9830
9863
  readonly message: string;
9831
9864
  readonly resource: string;
9832
9865
  readonly id?: string | null;
9866
+ readonly code?: "stale_revision";
9833
9867
  }, readonly [Schema.Struct<{
9834
9868
  readonly _tag: Schema.tag<"ConflictError">;
9835
9869
  readonly message: Schema.String;
9836
9870
  readonly resource: Schema.String;
9837
9871
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
9872
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
9838
9873
  }>], {
9839
9874
  readonly _tag: "ConflictError";
9840
9875
  readonly message: string;
9841
9876
  readonly resource: string;
9842
9877
  readonly id?: string | null;
9878
+ readonly code?: "stale_revision";
9843
9879
  }>, Schema.Struct<{
9844
9880
  readonly _tag: Schema.tag<"ConflictError">;
9845
9881
  readonly message: Schema.String;
9846
9882
  readonly resource: Schema.String;
9847
9883
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
9884
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
9848
9885
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
9849
9886
  readonly _tag: "ForbiddenError";
9850
9887
  readonly message: string;
@@ -9970,21 +10007,25 @@ export declare const TemplatesCreateFamilyFromTemplateEndpoint: HttpApiEndpoint.
9970
10007
  readonly message: string;
9971
10008
  readonly resource: string;
9972
10009
  readonly id?: string | null;
10010
+ readonly code?: "stale_revision";
9973
10011
  }, readonly [Schema.Struct<{
9974
10012
  readonly _tag: Schema.tag<"ConflictError">;
9975
10013
  readonly message: Schema.String;
9976
10014
  readonly resource: Schema.String;
9977
10015
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10016
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
9978
10017
  }>], {
9979
10018
  readonly _tag: "ConflictError";
9980
10019
  readonly message: string;
9981
10020
  readonly resource: string;
9982
10021
  readonly id?: string | null;
10022
+ readonly code?: "stale_revision";
9983
10023
  }>, Schema.Struct<{
9984
10024
  readonly _tag: Schema.tag<"ConflictError">;
9985
10025
  readonly message: Schema.String;
9986
10026
  readonly resource: Schema.String;
9987
10027
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10028
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
9988
10029
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
9989
10030
  readonly _tag: "ForbiddenError";
9990
10031
  readonly message: string;
@@ -10768,21 +10809,25 @@ export declare const TemplatesAddEntryEndpoint: HttpApiEndpoint.HttpApiEndpoint<
10768
10809
  readonly message: string;
10769
10810
  readonly resource: string;
10770
10811
  readonly id?: string | null;
10812
+ readonly code?: "stale_revision";
10771
10813
  }, readonly [Schema.Struct<{
10772
10814
  readonly _tag: Schema.tag<"ConflictError">;
10773
10815
  readonly message: Schema.String;
10774
10816
  readonly resource: Schema.String;
10775
10817
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10818
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
10776
10819
  }>], {
10777
10820
  readonly _tag: "ConflictError";
10778
10821
  readonly message: string;
10779
10822
  readonly resource: string;
10780
10823
  readonly id?: string | null;
10824
+ readonly code?: "stale_revision";
10781
10825
  }>, Schema.Struct<{
10782
10826
  readonly _tag: Schema.tag<"ConflictError">;
10783
10827
  readonly message: Schema.String;
10784
10828
  readonly resource: Schema.String;
10785
10829
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10830
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
10786
10831
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
10787
10832
  readonly _tag: "ForbiddenError";
10788
10833
  readonly message: string;
@@ -797,6 +797,7 @@ const TemplatesOpenWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
797
797
  pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema.Null]),
798
798
  revision: Schema.String,
799
799
  overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
800
+ assetDigest: Schema.optionalKey(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))),
800
801
  assetChanges: Schema.Array(Schema.Struct({
801
802
  path: Schema.String,
802
803
  status: Schema.Union([
@@ -907,6 +908,7 @@ const TemplatesPatchWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
907
908
  pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema.Null]),
908
909
  revision: Schema.String,
909
910
  overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
911
+ assetDigest: Schema.optionalKey(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))),
910
912
  assetChanges: Schema.Array(Schema.Struct({
911
913
  path: Schema.String,
912
914
  status: Schema.Union([
@@ -1016,6 +1018,7 @@ const TemplatesPutWorkspaceAsset200 = /* @__PURE__ */ (() => Schema.Struct({
1016
1018
  pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema.Null]),
1017
1019
  revision: Schema.String,
1018
1020
  overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
1021
+ assetDigest: Schema.optionalKey(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))),
1019
1022
  assetChanges: Schema.Array(Schema.Struct({
1020
1023
  path: Schema.String,
1021
1024
  status: Schema.Union([
@@ -1234,6 +1237,7 @@ const TemplatesResolveWorkspaceConflict200 = /* @__PURE__ */ (() => Schema.Struc
1234
1237
  pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema.Null]),
1235
1238
  revision: Schema.String,
1236
1239
  overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
1240
+ assetDigest: Schema.optionalKey(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))),
1237
1241
  assetChanges: Schema.Array(Schema.Struct({
1238
1242
  path: Schema.String,
1239
1243
  status: Schema.Union([
@@ -1603,6 +1607,7 @@ const TemplatesAttachWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
1603
1607
  pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema.Null]),
1604
1608
  revision: Schema.String,
1605
1609
  overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
1610
+ assetDigest: Schema.optionalKey(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))),
1606
1611
  assetChanges: Schema.Array(Schema.Struct({
1607
1612
  path: Schema.String,
1608
1613
  status: Schema.Union([
@@ -1707,6 +1712,7 @@ const TemplatesRemoveWorkspaceResource200 = /* @__PURE__ */ (() => Schema.Struct
1707
1712
  pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema.Null]),
1708
1713
  revision: Schema.String,
1709
1714
  overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
1715
+ assetDigest: Schema.optionalKey(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))),
1710
1716
  assetChanges: Schema.Array(Schema.Struct({
1711
1717
  path: Schema.String,
1712
1718
  status: Schema.Union([
@@ -1813,6 +1819,7 @@ const TemplatesRestoreWorkspace200 = /* @__PURE__ */ (() => Schema.Struct({
1813
1819
  pendingRemoteHead: Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{40}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Schema.Null]),
1814
1820
  revision: Schema.String,
1815
1821
  overlay: Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])),
1822
+ assetDigest: Schema.optionalKey(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))),
1816
1823
  assetChanges: Schema.Array(Schema.Struct({
1817
1824
  path: Schema.String,
1818
1825
  status: Schema.Union([
@@ -758,21 +758,25 @@ export declare const TopicsCreateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"topi
758
758
  readonly message: string;
759
759
  readonly resource: string;
760
760
  readonly id?: string | null;
761
+ readonly code?: "stale_revision";
761
762
  }, readonly [Schema.Struct<{
762
763
  readonly _tag: Schema.tag<"ConflictError">;
763
764
  readonly message: Schema.String;
764
765
  readonly resource: Schema.String;
765
766
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
767
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
766
768
  }>], {
767
769
  readonly _tag: "ConflictError";
768
770
  readonly message: string;
769
771
  readonly resource: string;
770
772
  readonly id?: string | null;
773
+ readonly code?: "stale_revision";
771
774
  }>, Schema.Struct<{
772
775
  readonly _tag: Schema.tag<"ConflictError">;
773
776
  readonly message: Schema.String;
774
777
  readonly resource: Schema.String;
775
778
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
779
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
776
780
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
777
781
  readonly _tag: "ForbiddenError";
778
782
  readonly message: string;
@@ -1012,21 +1016,25 @@ export declare const TopicsRemoveEndpoint: HttpApiEndpoint.HttpApiEndpoint<"topi
1012
1016
  readonly message: string;
1013
1017
  readonly resource: string;
1014
1018
  readonly id?: string | null;
1019
+ readonly code?: "stale_revision";
1015
1020
  }, readonly [Schema.Struct<{
1016
1021
  readonly _tag: Schema.tag<"ConflictError">;
1017
1022
  readonly message: Schema.String;
1018
1023
  readonly resource: Schema.String;
1019
1024
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1025
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
1020
1026
  }>], {
1021
1027
  readonly _tag: "ConflictError";
1022
1028
  readonly message: string;
1023
1029
  readonly resource: string;
1024
1030
  readonly id?: string | null;
1031
+ readonly code?: "stale_revision";
1025
1032
  }>, Schema.Struct<{
1026
1033
  readonly _tag: Schema.tag<"ConflictError">;
1027
1034
  readonly message: Schema.String;
1028
1035
  readonly resource: Schema.String;
1029
1036
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1037
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
1030
1038
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1031
1039
  readonly _tag: "ForbiddenError";
1032
1040
  readonly message: string;
@@ -1168,21 +1176,25 @@ export declare const TopicsUpdateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"topi
1168
1176
  readonly message: string;
1169
1177
  readonly resource: string;
1170
1178
  readonly id?: string | null;
1179
+ readonly code?: "stale_revision";
1171
1180
  }, readonly [Schema.Struct<{
1172
1181
  readonly _tag: Schema.tag<"ConflictError">;
1173
1182
  readonly message: Schema.String;
1174
1183
  readonly resource: Schema.String;
1175
1184
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1185
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
1176
1186
  }>], {
1177
1187
  readonly _tag: "ConflictError";
1178
1188
  readonly message: string;
1179
1189
  readonly resource: string;
1180
1190
  readonly id?: string | null;
1191
+ readonly code?: "stale_revision";
1181
1192
  }>, Schema.Struct<{
1182
1193
  readonly _tag: Schema.tag<"ConflictError">;
1183
1194
  readonly message: Schema.String;
1184
1195
  readonly resource: Schema.String;
1185
1196
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1197
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
1186
1198
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1187
1199
  readonly _tag: "ForbiddenError";
1188
1200
  readonly message: string;
@@ -862,21 +862,25 @@ export declare const WebhooksCreateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"we
862
862
  readonly message: string;
863
863
  readonly resource: string;
864
864
  readonly id?: string | null;
865
+ readonly code?: "stale_revision";
865
866
  }, readonly [Schema.Struct<{
866
867
  readonly _tag: Schema.tag<"ConflictError">;
867
868
  readonly message: Schema.String;
868
869
  readonly resource: Schema.String;
869
870
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
871
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
870
872
  }>], {
871
873
  readonly _tag: "ConflictError";
872
874
  readonly message: string;
873
875
  readonly resource: string;
874
876
  readonly id?: string | null;
877
+ readonly code?: "stale_revision";
875
878
  }>, Schema.Struct<{
876
879
  readonly _tag: Schema.tag<"ConflictError">;
877
880
  readonly message: Schema.String;
878
881
  readonly resource: Schema.String;
879
882
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
883
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
880
884
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
881
885
  readonly _tag: "ForbiddenError";
882
886
  readonly message: string;
@@ -1266,21 +1270,25 @@ export declare const WebhooksUpdateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"we
1266
1270
  readonly message: string;
1267
1271
  readonly resource: string;
1268
1272
  readonly id?: string | null;
1273
+ readonly code?: "stale_revision";
1269
1274
  }, readonly [Schema.Struct<{
1270
1275
  readonly _tag: Schema.tag<"ConflictError">;
1271
1276
  readonly message: Schema.String;
1272
1277
  readonly resource: Schema.String;
1273
1278
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1279
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
1274
1280
  }>], {
1275
1281
  readonly _tag: "ConflictError";
1276
1282
  readonly message: string;
1277
1283
  readonly resource: string;
1278
1284
  readonly id?: string | null;
1285
+ readonly code?: "stale_revision";
1279
1286
  }>, Schema.Struct<{
1280
1287
  readonly _tag: Schema.tag<"ConflictError">;
1281
1288
  readonly message: Schema.String;
1282
1289
  readonly resource: Schema.String;
1283
1290
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1291
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
1284
1292
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1285
1293
  readonly _tag: "ForbiddenError";
1286
1294
  readonly message: string;
@@ -804,21 +804,25 @@ export declare const WhatsappFlowsCreateEndpoint: HttpApiEndpoint.HttpApiEndpoin
804
804
  readonly message: string;
805
805
  readonly resource: string;
806
806
  readonly id?: string | null;
807
+ readonly code?: "stale_revision";
807
808
  }, readonly [Schema.Struct<{
808
809
  readonly _tag: Schema.tag<"ConflictError">;
809
810
  readonly message: Schema.String;
810
811
  readonly resource: Schema.String;
811
812
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
813
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
812
814
  }>], {
813
815
  readonly _tag: "ConflictError";
814
816
  readonly message: string;
815
817
  readonly resource: string;
816
818
  readonly id?: string | null;
819
+ readonly code?: "stale_revision";
817
820
  }>, Schema.Struct<{
818
821
  readonly _tag: Schema.tag<"ConflictError">;
819
822
  readonly message: Schema.String;
820
823
  readonly resource: Schema.String;
821
824
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
825
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
822
826
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
823
827
  readonly _tag: "ForbiddenError";
824
828
  readonly message: string;
@@ -1431,21 +1435,25 @@ export declare const WhatsappFlowsRegisterEndpoint: HttpApiEndpoint.HttpApiEndpo
1431
1435
  readonly message: string;
1432
1436
  readonly resource: string;
1433
1437
  readonly id?: string | null;
1438
+ readonly code?: "stale_revision";
1434
1439
  }, readonly [Schema.Struct<{
1435
1440
  readonly _tag: Schema.tag<"ConflictError">;
1436
1441
  readonly message: Schema.String;
1437
1442
  readonly resource: Schema.String;
1438
1443
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1444
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
1439
1445
  }>], {
1440
1446
  readonly _tag: "ConflictError";
1441
1447
  readonly message: string;
1442
1448
  readonly resource: string;
1443
1449
  readonly id?: string | null;
1450
+ readonly code?: "stale_revision";
1444
1451
  }>, Schema.Struct<{
1445
1452
  readonly _tag: Schema.tag<"ConflictError">;
1446
1453
  readonly message: Schema.String;
1447
1454
  readonly resource: Schema.String;
1448
1455
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1456
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
1449
1457
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1450
1458
  readonly _tag: "ForbiddenError";
1451
1459
  readonly message: string;
@@ -1712,21 +1720,25 @@ export declare const WhatsappFlowsRecordVersionEndpoint: HttpApiEndpoint.HttpApi
1712
1720
  readonly message: string;
1713
1721
  readonly resource: string;
1714
1722
  readonly id?: string | null;
1723
+ readonly code?: "stale_revision";
1715
1724
  }, readonly [Schema.Struct<{
1716
1725
  readonly _tag: Schema.tag<"ConflictError">;
1717
1726
  readonly message: Schema.String;
1718
1727
  readonly resource: Schema.String;
1719
1728
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1729
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
1720
1730
  }>], {
1721
1731
  readonly _tag: "ConflictError";
1722
1732
  readonly message: string;
1723
1733
  readonly resource: string;
1724
1734
  readonly id?: string | null;
1735
+ readonly code?: "stale_revision";
1725
1736
  }>, Schema.Struct<{
1726
1737
  readonly _tag: Schema.tag<"ConflictError">;
1727
1738
  readonly message: Schema.String;
1728
1739
  readonly resource: Schema.String;
1729
1740
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1741
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
1730
1742
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1731
1743
  readonly _tag: "ForbiddenError";
1732
1744
  readonly message: string;
@@ -1017,21 +1017,25 @@ export declare const WhatsappConnectBusinessAccountEndpoint: HttpApiEndpoint.Htt
1017
1017
  readonly message: string;
1018
1018
  readonly resource: string;
1019
1019
  readonly id?: string | null;
1020
+ readonly code?: "stale_revision";
1020
1021
  }, readonly [Schema.Struct<{
1021
1022
  readonly _tag: Schema.tag<"ConflictError">;
1022
1023
  readonly message: Schema.String;
1023
1024
  readonly resource: Schema.String;
1024
1025
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1026
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
1025
1027
  }>], {
1026
1028
  readonly _tag: "ConflictError";
1027
1029
  readonly message: string;
1028
1030
  readonly resource: string;
1029
1031
  readonly id?: string | null;
1032
+ readonly code?: "stale_revision";
1030
1033
  }>, Schema.Struct<{
1031
1034
  readonly _tag: Schema.tag<"ConflictError">;
1032
1035
  readonly message: Schema.String;
1033
1036
  readonly resource: Schema.String;
1034
1037
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1038
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
1035
1039
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1036
1040
  readonly _tag: "ForbiddenError";
1037
1041
  readonly message: string;
@@ -1546,21 +1550,25 @@ export declare const WhatsappReleaseBusinessAccountEndpoint: HttpApiEndpoint.Htt
1546
1550
  readonly message: string;
1547
1551
  readonly resource: string;
1548
1552
  readonly id?: string | null;
1553
+ readonly code?: "stale_revision";
1549
1554
  }, readonly [Schema.Struct<{
1550
1555
  readonly _tag: Schema.tag<"ConflictError">;
1551
1556
  readonly message: Schema.String;
1552
1557
  readonly resource: Schema.String;
1553
1558
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1559
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
1554
1560
  }>], {
1555
1561
  readonly _tag: "ConflictError";
1556
1562
  readonly message: string;
1557
1563
  readonly resource: string;
1558
1564
  readonly id?: string | null;
1565
+ readonly code?: "stale_revision";
1559
1566
  }>, Schema.Struct<{
1560
1567
  readonly _tag: Schema.tag<"ConflictError">;
1561
1568
  readonly message: Schema.String;
1562
1569
  readonly resource: Schema.String;
1563
1570
  readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1571
+ readonly code: Schema.optionalKey<Schema.Literal<"stale_revision">>;
1564
1572
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1565
1573
  readonly _tag: "ForbiddenError";
1566
1574
  readonly message: string;