samva 0.33.0 → 0.35.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.
Files changed (117) hide show
  1. package/README.md +1 -1
  2. package/dist/client/sdk.gen.d.ts +225 -251
  3. package/dist/client/sdk.gen.js +85 -211
  4. package/dist/client/types.gen.d.ts +2897 -403
  5. package/dist/effect/agents.d.ts +28 -13
  6. package/dist/effect/agents.js +5 -1
  7. package/dist/effect/analytics.d.ts +15 -15
  8. package/dist/effect/api-keys.d.ts +27 -18
  9. package/dist/effect/campaigns.d.ts +721 -65
  10. package/dist/effect/categories.d.ts +3 -3
  11. package/dist/effect/contact-groups.d.ts +15 -15
  12. package/dist/effect/contacts.d.ts +56 -52
  13. package/dist/effect/conversations.d.ts +45 -45
  14. package/dist/effect/email.d.ts +82 -82
  15. package/dist/effect/errors.d.ts +1 -1
  16. package/dist/effect/errors.js +2 -2
  17. package/dist/effect/extension-installations.d.ts +11 -11
  18. package/dist/effect/extensions.d.ts +16 -16
  19. package/dist/effect/generated/agents.d.ts +1063 -33
  20. package/dist/effect/generated/agents.js +133 -11
  21. package/dist/effect/generated/analytics.d.ts +109 -136
  22. package/dist/effect/generated/analytics.js +65 -36
  23. package/dist/effect/generated/api-keys.d.ts +240 -19
  24. package/dist/effect/generated/api-keys.js +24 -8
  25. package/dist/effect/generated/attachments.d.ts +89 -1
  26. package/dist/effect/generated/attachments.js +10 -2
  27. package/dist/effect/generated/brands.d.ts +133 -1
  28. package/dist/effect/generated/brands.js +22 -10
  29. package/dist/effect/generated/campaigns.d.ts +1442 -140
  30. package/dist/effect/generated/campaigns.js +82 -20
  31. package/dist/effect/generated/contact-events.d.ts +26 -4
  32. package/dist/effect/generated/contact-events.js +5 -3
  33. package/dist/effect/generated/contact-groups.d.ts +233 -13
  34. package/dist/effect/generated/contact-groups.js +33 -17
  35. package/dist/effect/generated/contacts.d.ts +634 -96
  36. package/dist/effect/generated/contacts.js +82 -20
  37. package/dist/effect/generated/conversations.d.ts +398 -106
  38. package/dist/effect/generated/conversations.js +96 -22
  39. package/dist/effect/generated/custom-fields.d.ts +89 -1
  40. package/dist/effect/generated/custom-fields.js +11 -3
  41. package/dist/effect/generated/email.d.ts +1447 -83
  42. package/dist/effect/generated/email.js +167 -43
  43. package/dist/effect/generated/events.d.ts +51 -7
  44. package/dist/effect/generated/events.js +9 -5
  45. package/dist/effect/generated/extension-installations.d.ts +208 -10
  46. package/dist/effect/generated/extension-installations.js +26 -8
  47. package/dist/effect/generated/extensions.d.ts +123 -13
  48. package/dist/effect/generated/extensions.js +20 -10
  49. package/dist/effect/generated/feedback.d.ts +23 -1
  50. package/dist/effect/generated/feedback.js +6 -4
  51. package/dist/effect/generated/journeys.d.ts +684 -16
  52. package/dist/effect/generated/journeys.js +37 -9
  53. package/dist/effect/generated/mailboxes.d.ts +3085 -627
  54. package/dist/effect/generated/mailboxes.js +340 -141
  55. package/dist/effect/generated/media.d.ts +125 -15
  56. package/dist/effect/generated/media.js +15 -2
  57. package/dist/effect/generated/messages.d.ts +2036 -117
  58. package/dist/effect/generated/messages.js +286 -54
  59. package/dist/effect/generated/namespaces.d.ts +209 -25
  60. package/dist/effect/generated/namespaces.js +27 -9
  61. package/dist/effect/generated/newsletter-domains.d.ts +98 -12
  62. package/dist/effect/generated/newsletter-domains.js +20 -13
  63. package/dist/effect/generated/newsletter-issues.d.ts +354 -19
  64. package/dist/effect/generated/newsletter-issues.js +162 -98
  65. package/dist/effect/generated/newsletters.d.ts +123 -13
  66. package/dist/effect/generated/newsletters.js +19 -9
  67. package/dist/effect/generated/operations.d.ts +76 -10
  68. package/dist/effect/generated/operations.js +12 -6
  69. package/dist/effect/generated/organizations.d.ts +287 -7
  70. package/dist/effect/generated/organizations.js +33 -5
  71. package/dist/effect/generated/scheduled-messages.d.ts +4427 -99
  72. package/dist/effect/generated/scheduled-messages.js +71 -12
  73. package/dist/effect/generated/shared.d.ts +2213 -190
  74. package/dist/effect/generated/shared.js +527 -76
  75. package/dist/effect/generated/subscriptions.d.ts +23 -1
  76. package/dist/effect/generated/subscriptions.js +6 -4
  77. package/dist/effect/generated/templates.d.ts +1718 -136
  78. package/dist/effect/generated/templates.js +421 -226
  79. package/dist/effect/generated/topic-forms.d.ts +111 -1
  80. package/dist/effect/generated/topic-forms.js +23 -13
  81. package/dist/effect/generated/topics.d.ts +353 -43
  82. package/dist/effect/generated/topics.js +67 -19
  83. package/dist/effect/generated/webhooks.d.ts +308 -46
  84. package/dist/effect/generated/webhooks.js +67 -19
  85. package/dist/effect/generated/whoami.d.ts +35 -1
  86. package/dist/effect/generated/whoami.js +4 -2
  87. package/dist/effect/generated-metadata.d.ts +20 -0
  88. package/dist/effect/generated-metadata.js +10 -0
  89. package/dist/effect/index.js +2 -2
  90. package/dist/effect/internal/client.js +1 -1
  91. package/dist/effect/internal/email-sender.d.ts +1 -1
  92. package/dist/effect/internal/send.d.ts +1 -1
  93. package/dist/effect/journeys.d.ts +105 -19
  94. package/dist/effect/mailboxes.d.ts +405 -174
  95. package/dist/effect/media.d.ts +1 -1
  96. package/dist/effect/messages.d.ts +40 -40
  97. package/dist/effect/namespaces.d.ts +15 -15
  98. package/dist/effect/newsletter-domains.d.ts +5 -5
  99. package/dist/effect/newsletters.d.ts +1 -1
  100. package/dist/effect/operations.d.ts +11 -11
  101. package/dist/effect/organizations.d.ts +2 -2
  102. package/dist/effect/scheduled-messages.d.ts +863 -8
  103. package/dist/effect/templates.d.ts +37 -37
  104. package/dist/effect/topics.d.ts +21 -21
  105. package/dist/effect/webhooks.d.ts +28 -26
  106. package/dist/index.js +2 -2
  107. package/dist/normalize.js +13 -1
  108. package/dist/package.js +1 -1
  109. package/dist/promises/client.d.ts +1 -1
  110. package/dist/promises/client.js +2 -2
  111. package/dist/promises/errors.gen.d.ts +22 -2
  112. package/dist/promises/errors.gen.js +60 -2
  113. package/dist/promises/index.js +2 -2
  114. package/dist/promises/types.gen.d.ts +1 -1
  115. package/dist/service-map.d.ts +9 -0
  116. package/dist/service-map.js +5 -0
  117. package/package.json +9 -8
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { ApiKeySecurityMiddleware, ContactGroupId, ContactId, ContactIdentity, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
3
+ import { ApiKeySecurityMiddleware, ContactGroupId, ContactId, ContactIdentity, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
4
4
  export type ContactGroupPage = {
5
5
  readonly items: ReadonlyArray<{
6
6
  readonly id: ContactGroupId;
@@ -82,7 +82,7 @@ export declare const ContactGroupMemberPage: Schema.Struct<{
82
82
  readonly identifier: Schema.String;
83
83
  readonly verified: Schema.Boolean;
84
84
  readonly channels: Schema.$Array<Schema.Struct<{
85
- readonly channel: Schema.Literal<"email">;
85
+ readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
86
86
  readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
87
87
  readonly consent: Schema.Union<readonly [Schema.Struct<{
88
88
  readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
@@ -98,14 +98,14 @@ export declare const ContactGroupMemberPage: Schema.Struct<{
98
98
  }>;
99
99
  export type ContactGroupsListQuery = {
100
100
  readonly limit?: number | null;
101
- readonly cursor?: Cursor | null;
102
- readonly type?: "static" | "dynamic" | "smart" | ReadonlyArray<"static" | "dynamic" | "smart"> | null;
101
+ readonly cursor?: string;
102
+ readonly type?: "static" | "dynamic" | "smart" | ReadonlyArray<"static" | "dynamic" | "smart">;
103
103
  readonly isActive?: boolean | null;
104
104
  };
105
105
  export declare const ContactGroupsListQuery: Schema.Struct<{
106
106
  readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
107
- readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
108
- readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>, Schema.$Array<Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>>, Schema.Null]>>;
107
+ readonly cursor: Schema.optionalKey<Schema.String>;
108
+ readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>, Schema.$Array<Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>>]>>;
109
109
  readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
110
110
  }>;
111
111
  export type ContactGroupsList200 = ContactGroupPage;
@@ -128,6 +128,8 @@ export declare const ContactGroupsList200: Schema.Struct<{
128
128
  }>>;
129
129
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
130
130
  }>;
131
+ export type ContactGroupsList400 = MalformedRequestError;
132
+ export declare const ContactGroupsList400: typeof MalformedRequestError;
131
133
  export type ContactGroupsList401 = UnauthorizedError;
132
134
  export declare const ContactGroupsList401: typeof UnauthorizedError;
133
135
  export type ContactGroupsList403 = ForbiddenError;
@@ -194,6 +196,8 @@ export declare const ContactGroupsCreate201: Schema.Struct<{
194
196
  readonly createdAt: Schema.String;
195
197
  readonly updatedAt: Schema.String;
196
198
  }>;
199
+ export type ContactGroupsCreate400 = MalformedRequestError;
200
+ export declare const ContactGroupsCreate400: typeof MalformedRequestError;
197
201
  export type ContactGroupsCreate401 = UnauthorizedError;
198
202
  export declare const ContactGroupsCreate401: typeof UnauthorizedError;
199
203
  export type ContactGroupsCreate403 = ForbiddenError;
@@ -244,6 +248,8 @@ export declare const ContactGroupsGetById200: Schema.Struct<{
244
248
  readonly createdAt: Schema.String;
245
249
  readonly updatedAt: Schema.String;
246
250
  }>;
251
+ export type ContactGroupsGetById400 = MalformedRequestError;
252
+ export declare const ContactGroupsGetById400: typeof MalformedRequestError;
247
253
  export type ContactGroupsGetById401 = UnauthorizedError;
248
254
  export declare const ContactGroupsGetById401: typeof UnauthorizedError;
249
255
  export type ContactGroupsGetById403 = ForbiddenError;
@@ -268,6 +274,8 @@ export type ContactGroupsRemove200 = {
268
274
  export declare const ContactGroupsRemove200: Schema.Struct<{
269
275
  readonly success: Schema.Boolean;
270
276
  }>;
277
+ export type ContactGroupsRemove400 = MalformedRequestError;
278
+ export declare const ContactGroupsRemove400: typeof MalformedRequestError;
271
279
  export type ContactGroupsRemove401 = UnauthorizedError;
272
280
  export declare const ContactGroupsRemove401: typeof UnauthorizedError;
273
281
  export type ContactGroupsRemove403 = ForbiddenError;
@@ -342,6 +350,8 @@ export declare const ContactGroupsUpdate200: Schema.Struct<{
342
350
  readonly createdAt: Schema.String;
343
351
  readonly updatedAt: Schema.String;
344
352
  }>;
353
+ export type ContactGroupsUpdate400 = MalformedRequestError;
354
+ export declare const ContactGroupsUpdate400: typeof MalformedRequestError;
345
355
  export type ContactGroupsUpdate401 = UnauthorizedError;
346
356
  export declare const ContactGroupsUpdate401: typeof UnauthorizedError;
347
357
  export type ContactGroupsUpdate403 = ForbiddenError;
@@ -370,6 +380,8 @@ export declare const ContactGroupsEvaluateDynamic200: Schema.Struct<{
370
380
  readonly removed: Schema.Finite;
371
381
  readonly total: Schema.Finite;
372
382
  }>;
383
+ export type ContactGroupsEvaluateDynamic400 = MalformedRequestError;
384
+ export declare const ContactGroupsEvaluateDynamic400: typeof MalformedRequestError;
373
385
  export type ContactGroupsEvaluateDynamic401 = UnauthorizedError;
374
386
  export declare const ContactGroupsEvaluateDynamic401: typeof UnauthorizedError;
375
387
  export type ContactGroupsEvaluateDynamic403 = ForbiddenError;
@@ -390,11 +402,11 @@ export declare const ContactGroupsGetMembersPathParams: Schema.Struct<{
390
402
  }>;
391
403
  export type ContactGroupsGetMembersQuery = {
392
404
  readonly limit?: number | null;
393
- readonly cursor?: Cursor | null;
405
+ readonly cursor?: string;
394
406
  };
395
407
  export declare const ContactGroupsGetMembersQuery: Schema.Struct<{
396
408
  readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
397
- readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
409
+ readonly cursor: Schema.optionalKey<Schema.String>;
398
410
  }>;
399
411
  export type ContactGroupsGetMembers200 = ContactGroupMemberPage;
400
412
  export declare const ContactGroupsGetMembers200: Schema.Struct<{
@@ -418,7 +430,7 @@ export declare const ContactGroupsGetMembers200: Schema.Struct<{
418
430
  readonly identifier: Schema.String;
419
431
  readonly verified: Schema.Boolean;
420
432
  readonly channels: Schema.$Array<Schema.Struct<{
421
- readonly channel: Schema.Literal<"email">;
433
+ readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
422
434
  readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
423
435
  readonly consent: Schema.Union<readonly [Schema.Struct<{
424
436
  readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
@@ -432,6 +444,8 @@ export declare const ContactGroupsGetMembers200: Schema.Struct<{
432
444
  }>>;
433
445
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
434
446
  }>;
447
+ export type ContactGroupsGetMembers400 = MalformedRequestError;
448
+ export declare const ContactGroupsGetMembers400: typeof MalformedRequestError;
435
449
  export type ContactGroupsGetMembers401 = UnauthorizedError;
436
450
  export declare const ContactGroupsGetMembers401: typeof UnauthorizedError;
437
451
  export type ContactGroupsGetMembers403 = ForbiddenError;
@@ -466,6 +480,8 @@ export declare const ContactGroupsAddMembers200: Schema.Struct<{
466
480
  readonly added: Schema.Finite;
467
481
  readonly skipped: Schema.Finite;
468
482
  }>;
483
+ export type ContactGroupsAddMembers400 = MalformedRequestError;
484
+ export declare const ContactGroupsAddMembers400: typeof MalformedRequestError;
469
485
  export type ContactGroupsAddMembers401 = UnauthorizedError;
470
486
  export declare const ContactGroupsAddMembers401: typeof UnauthorizedError;
471
487
  export type ContactGroupsAddMembers403 = ForbiddenError;
@@ -496,6 +512,8 @@ export type ContactGroupsRemoveMembers200 = {
496
512
  export declare const ContactGroupsRemoveMembers200: Schema.Struct<{
497
513
  readonly removed: Schema.Finite;
498
514
  }>;
515
+ export type ContactGroupsRemoveMembers400 = MalformedRequestError;
516
+ export declare const ContactGroupsRemoveMembers400: typeof MalformedRequestError;
499
517
  export type ContactGroupsRemoveMembers401 = UnauthorizedError;
500
518
  export declare const ContactGroupsRemoveMembers401: typeof UnauthorizedError;
501
519
  export type ContactGroupsRemoveMembers403 = ForbiddenError;
@@ -548,6 +566,8 @@ export declare const ContactGroupsPreview200: Schema.Struct<{
548
566
  readonly status: Schema.String;
549
567
  }>>;
550
568
  }>;
569
+ export type ContactGroupsPreview400 = MalformedRequestError;
570
+ export declare const ContactGroupsPreview400: typeof MalformedRequestError;
551
571
  export type ContactGroupsPreview401 = UnauthorizedError;
552
572
  export declare const ContactGroupsPreview401: typeof UnauthorizedError;
553
573
  export type ContactGroupsPreview403 = ForbiddenError;
@@ -594,6 +614,26 @@ declare const ContactGroupsGroup_base: HttpApiGroup.HttpApiGroup<"Contact Groups
594
614
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
595
615
  readonly message: Schema.String;
596
616
  readonly retryAfterSeconds: Schema.Finite;
617
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
618
+ readonly _tag: "MalformedRequestError";
619
+ readonly message: string;
620
+ readonly fields: {
621
+ readonly [x: string]: readonly string[];
622
+ };
623
+ }, readonly [Schema.Struct<{
624
+ readonly _tag: Schema.tag<"MalformedRequestError">;
625
+ readonly message: Schema.String;
626
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
627
+ }>], {
628
+ readonly _tag: "MalformedRequestError";
629
+ readonly message: string;
630
+ readonly fields: {
631
+ readonly [x: string]: readonly string[];
632
+ };
633
+ }>, Schema.Struct<{
634
+ readonly _tag: Schema.tag<"MalformedRequestError">;
635
+ readonly message: Schema.String;
636
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
597
637
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
598
638
  readonly _tag: "ResourceNotFoundError";
599
639
  readonly resource: string;
@@ -698,6 +738,26 @@ declare const ContactGroupsGroup_base: HttpApiGroup.HttpApiGroup<"Contact Groups
698
738
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
699
739
  readonly message: Schema.String;
700
740
  readonly retryAfterSeconds: Schema.Finite;
741
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
742
+ readonly _tag: "MalformedRequestError";
743
+ readonly message: string;
744
+ readonly fields: {
745
+ readonly [x: string]: readonly string[];
746
+ };
747
+ }, readonly [Schema.Struct<{
748
+ readonly _tag: Schema.tag<"MalformedRequestError">;
749
+ readonly message: Schema.String;
750
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
751
+ }>], {
752
+ readonly _tag: "MalformedRequestError";
753
+ readonly message: string;
754
+ readonly fields: {
755
+ readonly [x: string]: readonly string[];
756
+ };
757
+ }>, Schema.Struct<{
758
+ readonly _tag: Schema.tag<"MalformedRequestError">;
759
+ readonly message: Schema.String;
760
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
701
761
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
702
762
  readonly _tag: "UnauthorizedError";
703
763
  readonly message: string;
@@ -764,6 +824,26 @@ declare const ContactGroupsGroup_base: HttpApiGroup.HttpApiGroup<"Contact Groups
764
824
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
765
825
  readonly message: Schema.String;
766
826
  readonly retryAfterSeconds: Schema.Finite;
827
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
828
+ readonly _tag: "MalformedRequestError";
829
+ readonly message: string;
830
+ readonly fields: {
831
+ readonly [x: string]: readonly string[];
832
+ };
833
+ }, readonly [Schema.Struct<{
834
+ readonly _tag: Schema.tag<"MalformedRequestError">;
835
+ readonly message: Schema.String;
836
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
837
+ }>], {
838
+ readonly _tag: "MalformedRequestError";
839
+ readonly message: string;
840
+ readonly fields: {
841
+ readonly [x: string]: readonly string[];
842
+ };
843
+ }>, Schema.Struct<{
844
+ readonly _tag: Schema.tag<"MalformedRequestError">;
845
+ readonly message: Schema.String;
846
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
767
847
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
768
848
  readonly _tag: "ResourceNotFoundError";
769
849
  readonly resource: string;
@@ -861,6 +941,26 @@ declare const ContactGroupsGroup_base: HttpApiGroup.HttpApiGroup<"Contact Groups
861
941
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
862
942
  readonly message: Schema.String;
863
943
  readonly retryAfterSeconds: Schema.Finite;
944
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
945
+ readonly _tag: "MalformedRequestError";
946
+ readonly message: string;
947
+ readonly fields: {
948
+ readonly [x: string]: readonly string[];
949
+ };
950
+ }, readonly [Schema.Struct<{
951
+ readonly _tag: Schema.tag<"MalformedRequestError">;
952
+ readonly message: Schema.String;
953
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
954
+ }>], {
955
+ readonly _tag: "MalformedRequestError";
956
+ readonly message: string;
957
+ readonly fields: {
958
+ readonly [x: string]: readonly string[];
959
+ };
960
+ }>, Schema.Struct<{
961
+ readonly _tag: Schema.tag<"MalformedRequestError">;
962
+ readonly message: Schema.String;
963
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
864
964
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
865
965
  readonly _tag: "ResourceNotFoundError";
866
966
  readonly resource: string;
@@ -917,7 +1017,7 @@ declare const ContactGroupsGroup_base: HttpApiGroup.HttpApiGroup<"Contact Groups
917
1017
  readonly id: Schema.brand<Schema.String, "ContactGroupId">;
918
1018
  }>>, Schema.toCodecStringTree<Schema.Struct<{
919
1019
  readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
920
- readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1020
+ readonly cursor: Schema.optionalKey<Schema.String>;
921
1021
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
922
1022
  readonly items: Schema.$Array<Schema.Struct<{
923
1023
  readonly id: Schema.String;
@@ -939,7 +1039,7 @@ declare const ContactGroupsGroup_base: HttpApiGroup.HttpApiGroup<"Contact Groups
939
1039
  readonly identifier: Schema.String;
940
1040
  readonly verified: Schema.Boolean;
941
1041
  readonly channels: Schema.$Array<Schema.Struct<{
942
- readonly channel: Schema.Literal<"email">;
1042
+ readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
943
1043
  readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
944
1044
  readonly consent: Schema.Union<readonly [Schema.Struct<{
945
1045
  readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
@@ -980,6 +1080,26 @@ declare const ContactGroupsGroup_base: HttpApiGroup.HttpApiGroup<"Contact Groups
980
1080
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
981
1081
  readonly message: Schema.String;
982
1082
  readonly retryAfterSeconds: Schema.Finite;
1083
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
1084
+ readonly _tag: "MalformedRequestError";
1085
+ readonly message: string;
1086
+ readonly fields: {
1087
+ readonly [x: string]: readonly string[];
1088
+ };
1089
+ }, readonly [Schema.Struct<{
1090
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1091
+ readonly message: Schema.String;
1092
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1093
+ }>], {
1094
+ readonly _tag: "MalformedRequestError";
1095
+ readonly message: string;
1096
+ readonly fields: {
1097
+ readonly [x: string]: readonly string[];
1098
+ };
1099
+ }>, Schema.Struct<{
1100
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1101
+ readonly message: Schema.String;
1102
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
983
1103
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
984
1104
  readonly _tag: "ResourceNotFoundError";
985
1105
  readonly resource: string;
@@ -1034,8 +1154,8 @@ declare const ContactGroupsGroup_base: HttpApiGroup.HttpApiGroup<"Contact Groups
1034
1154
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
1035
1155
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactGroupsList", "GET", "/v1/contact-groups", never, Schema.toCodecStringTree<Schema.Struct<{
1036
1156
  readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1037
- readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1038
- readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>, Schema.$Array<Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>>, Schema.Null]>>;
1157
+ readonly cursor: Schema.optionalKey<Schema.String>;
1158
+ readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>, Schema.$Array<Schema.Union<readonly [Schema.Literal<"static">, Schema.Literal<"dynamic">, Schema.Literal<"smart">]>>]>>;
1039
1159
  readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
1040
1160
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
1041
1161
  readonly items: Schema.$Array<Schema.Struct<{
@@ -1083,6 +1203,26 @@ declare const ContactGroupsGroup_base: HttpApiGroup.HttpApiGroup<"Contact Groups
1083
1203
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
1084
1204
  readonly message: Schema.String;
1085
1205
  readonly retryAfterSeconds: Schema.Finite;
1206
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
1207
+ readonly _tag: "MalformedRequestError";
1208
+ readonly message: string;
1209
+ readonly fields: {
1210
+ readonly [x: string]: readonly string[];
1211
+ };
1212
+ }, readonly [Schema.Struct<{
1213
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1214
+ readonly message: Schema.String;
1215
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1216
+ }>], {
1217
+ readonly _tag: "MalformedRequestError";
1218
+ readonly message: string;
1219
+ readonly fields: {
1220
+ readonly [x: string]: readonly string[];
1221
+ };
1222
+ }>, Schema.Struct<{
1223
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1224
+ readonly message: Schema.String;
1225
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1086
1226
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
1087
1227
  readonly _tag: "UnauthorizedError";
1088
1228
  readonly message: string;
@@ -1161,6 +1301,26 @@ declare const ContactGroupsGroup_base: HttpApiGroup.HttpApiGroup<"Contact Groups
1161
1301
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
1162
1302
  readonly message: Schema.String;
1163
1303
  readonly retryAfterSeconds: Schema.Finite;
1304
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
1305
+ readonly _tag: "MalformedRequestError";
1306
+ readonly message: string;
1307
+ readonly fields: {
1308
+ readonly [x: string]: readonly string[];
1309
+ };
1310
+ }, readonly [Schema.Struct<{
1311
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1312
+ readonly message: Schema.String;
1313
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1314
+ }>], {
1315
+ readonly _tag: "MalformedRequestError";
1316
+ readonly message: string;
1317
+ readonly fields: {
1318
+ readonly [x: string]: readonly string[];
1319
+ };
1320
+ }>, Schema.Struct<{
1321
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1322
+ readonly message: Schema.String;
1323
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1164
1324
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
1165
1325
  readonly _tag: "UnauthorizedError";
1166
1326
  readonly message: string;
@@ -1225,6 +1385,26 @@ declare const ContactGroupsGroup_base: HttpApiGroup.HttpApiGroup<"Contact Groups
1225
1385
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
1226
1386
  readonly message: Schema.String;
1227
1387
  readonly retryAfterSeconds: Schema.Finite;
1388
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
1389
+ readonly _tag: "MalformedRequestError";
1390
+ readonly message: string;
1391
+ readonly fields: {
1392
+ readonly [x: string]: readonly string[];
1393
+ };
1394
+ }, readonly [Schema.Struct<{
1395
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1396
+ readonly message: Schema.String;
1397
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1398
+ }>], {
1399
+ readonly _tag: "MalformedRequestError";
1400
+ readonly message: string;
1401
+ readonly fields: {
1402
+ readonly [x: string]: readonly string[];
1403
+ };
1404
+ }>, Schema.Struct<{
1405
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1406
+ readonly message: Schema.String;
1407
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1228
1408
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
1229
1409
  readonly _tag: "ResourceNotFoundError";
1230
1410
  readonly resource: string;
@@ -1311,6 +1491,26 @@ declare const ContactGroupsGroup_base: HttpApiGroup.HttpApiGroup<"Contact Groups
1311
1491
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
1312
1492
  readonly message: Schema.String;
1313
1493
  readonly retryAfterSeconds: Schema.Finite;
1494
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
1495
+ readonly _tag: "MalformedRequestError";
1496
+ readonly message: string;
1497
+ readonly fields: {
1498
+ readonly [x: string]: readonly string[];
1499
+ };
1500
+ }, readonly [Schema.Struct<{
1501
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1502
+ readonly message: Schema.String;
1503
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1504
+ }>], {
1505
+ readonly _tag: "MalformedRequestError";
1506
+ readonly message: string;
1507
+ readonly fields: {
1508
+ readonly [x: string]: readonly string[];
1509
+ };
1510
+ }>, Schema.Struct<{
1511
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1512
+ readonly message: Schema.String;
1513
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1314
1514
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
1315
1515
  readonly _tag: "ResourceNotFoundError";
1316
1516
  readonly resource: string;
@@ -1417,6 +1617,26 @@ declare const ContactGroupsGroup_base: HttpApiGroup.HttpApiGroup<"Contact Groups
1417
1617
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
1418
1618
  readonly message: Schema.String;
1419
1619
  readonly retryAfterSeconds: Schema.Finite;
1620
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
1621
+ readonly _tag: "MalformedRequestError";
1622
+ readonly message: string;
1623
+ readonly fields: {
1624
+ readonly [x: string]: readonly string[];
1625
+ };
1626
+ }, readonly [Schema.Struct<{
1627
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1628
+ readonly message: Schema.String;
1629
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1630
+ }>], {
1631
+ readonly _tag: "MalformedRequestError";
1632
+ readonly message: string;
1633
+ readonly fields: {
1634
+ readonly [x: string]: readonly string[];
1635
+ };
1636
+ }>, Schema.Struct<{
1637
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1638
+ readonly message: Schema.String;
1639
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1420
1640
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
1421
1641
  readonly _tag: "ResourceNotFoundError";
1422
1642
  readonly resource: string;
@@ -1,4 +1,4 @@
1
- import { ApiKeySecurityMiddleware, ContactGroupId, ContactId, ContactIdentity, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
1
+ import { ApiKeySecurityMiddleware, ContactGroupId, ContactId, ContactIdentity, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
2
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
4
  // src/effect/generated/contact-groups.ts
@@ -58,23 +58,20 @@ const ContactGroupMemberPage = /* @__PURE__ */ (() => Schema.Struct({
58
58
  }).annotate({ identifier: "ContactGroupMemberPage" }))();
59
59
  const ContactGroupsListQuery = /* @__PURE__ */ (() => Schema.Struct({
60
60
  limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
61
- cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
62
- type: Schema.optionalKey(Schema.Union([
63
- Schema.Union([
64
- Schema.Literal("static"),
65
- Schema.Literal("dynamic"),
66
- Schema.Literal("smart")
67
- ]),
68
- Schema.Array(Schema.Union([
69
- Schema.Literal("static"),
70
- Schema.Literal("dynamic"),
71
- Schema.Literal("smart")
72
- ])),
73
- Schema.Null
74
- ])),
61
+ cursor: Schema.optionalKey(Schema.String),
62
+ type: Schema.optionalKey(Schema.Union([Schema.Union([
63
+ Schema.Literal("static"),
64
+ Schema.Literal("dynamic"),
65
+ Schema.Literal("smart")
66
+ ]), Schema.Array(Schema.Union([
67
+ Schema.Literal("static"),
68
+ Schema.Literal("dynamic"),
69
+ Schema.Literal("smart")
70
+ ]))])),
75
71
  isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
76
72
  }))();
77
73
  const ContactGroupsList200 = ContactGroupPage;
74
+ const ContactGroupsList400 = MalformedRequestError;
78
75
  const ContactGroupsList401 = UnauthorizedError;
79
76
  const ContactGroupsList403 = ForbiddenError;
80
77
  const ContactGroupsList422 = ValidationError;
@@ -128,6 +125,7 @@ const ContactGroupsCreate201 = /* @__PURE__ */ (() => Schema.Struct({
128
125
  createdAt: Schema.String,
129
126
  updatedAt: Schema.String
130
127
  }))();
128
+ const ContactGroupsCreate400 = MalformedRequestError;
131
129
  const ContactGroupsCreate401 = UnauthorizedError;
132
130
  const ContactGroupsCreate403 = ForbiddenError;
133
131
  const ContactGroupsCreate422 = ValidationError;
@@ -161,6 +159,7 @@ const ContactGroupsGetById200 = /* @__PURE__ */ (() => Schema.Struct({
161
159
  createdAt: Schema.String,
162
160
  updatedAt: Schema.String
163
161
  }))();
162
+ const ContactGroupsGetById400 = MalformedRequestError;
164
163
  const ContactGroupsGetById401 = UnauthorizedError;
165
164
  const ContactGroupsGetById403 = ForbiddenError;
166
165
  const ContactGroupsGetById404 = ResourceNotFoundError;
@@ -169,6 +168,7 @@ const ContactGroupsGetById500 = InternalError;
169
168
  const ContactGroupsGetById504 = GatewayTimeoutError;
170
169
  const ContactGroupsRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ContactGroupId }))();
171
170
  const ContactGroupsRemove200 = /* @__PURE__ */ (() => Schema.Struct({ success: Schema.Boolean }))();
171
+ const ContactGroupsRemove400 = MalformedRequestError;
172
172
  const ContactGroupsRemove401 = UnauthorizedError;
173
173
  const ContactGroupsRemove403 = ForbiddenError;
174
174
  const ContactGroupsRemove404 = ResourceNotFoundError;
@@ -224,6 +224,7 @@ const ContactGroupsUpdate200 = /* @__PURE__ */ (() => Schema.Struct({
224
224
  createdAt: Schema.String,
225
225
  updatedAt: Schema.String
226
226
  }))();
227
+ const ContactGroupsUpdate400 = MalformedRequestError;
227
228
  const ContactGroupsUpdate401 = UnauthorizedError;
228
229
  const ContactGroupsUpdate403 = ForbiddenError;
229
230
  const ContactGroupsUpdate404 = ResourceNotFoundError;
@@ -236,6 +237,7 @@ const ContactGroupsEvaluateDynamic200 = /* @__PURE__ */ (() => Schema.Struct({
236
237
  removed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
237
238
  total: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
238
239
  }))();
240
+ const ContactGroupsEvaluateDynamic400 = MalformedRequestError;
239
241
  const ContactGroupsEvaluateDynamic401 = UnauthorizedError;
240
242
  const ContactGroupsEvaluateDynamic403 = ForbiddenError;
241
243
  const ContactGroupsEvaluateDynamic404 = ResourceNotFoundError;
@@ -245,9 +247,10 @@ const ContactGroupsEvaluateDynamic504 = GatewayTimeoutError;
245
247
  const ContactGroupsGetMembersPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ContactGroupId }))();
246
248
  const ContactGroupsGetMembersQuery = /* @__PURE__ */ (() => Schema.Struct({
247
249
  limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
248
- cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
250
+ cursor: Schema.optionalKey(Schema.String)
249
251
  }))();
250
252
  const ContactGroupsGetMembers200 = ContactGroupMemberPage;
253
+ const ContactGroupsGetMembers400 = MalformedRequestError;
251
254
  const ContactGroupsGetMembers401 = UnauthorizedError;
252
255
  const ContactGroupsGetMembers403 = ForbiddenError;
253
256
  const ContactGroupsGetMembers404 = ResourceNotFoundError;
@@ -267,6 +270,7 @@ const ContactGroupsAddMembers200 = /* @__PURE__ */ (() => Schema.Struct({
267
270
  added: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
268
271
  skipped: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
269
272
  }))();
273
+ const ContactGroupsAddMembers400 = MalformedRequestError;
270
274
  const ContactGroupsAddMembers401 = UnauthorizedError;
271
275
  const ContactGroupsAddMembers403 = ForbiddenError;
272
276
  const ContactGroupsAddMembers404 = ResourceNotFoundError;
@@ -276,6 +280,7 @@ const ContactGroupsAddMembers504 = GatewayTimeoutError;
276
280
  const ContactGroupsRemoveMembersPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ContactGroupId }))();
277
281
  const ContactGroupsRemoveMembersRequestJson = /* @__PURE__ */ (() => Schema.Struct({ contactIds: Schema.TupleWithRest(Schema.Tuple([ContactId]), [ContactId]).check(Schema.isMaxLength(1e3).annotate({ expected: "a value with a length of at most 1000" })) }))();
278
282
  const ContactGroupsRemoveMembers200 = /* @__PURE__ */ (() => Schema.Struct({ removed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })) }))();
283
+ const ContactGroupsRemoveMembers400 = MalformedRequestError;
279
284
  const ContactGroupsRemoveMembers401 = UnauthorizedError;
280
285
  const ContactGroupsRemoveMembers403 = ForbiddenError;
281
286
  const ContactGroupsRemoveMembers404 = ResourceNotFoundError;
@@ -300,6 +305,7 @@ const ContactGroupsPreview200 = /* @__PURE__ */ (() => Schema.Struct({
300
305
  status: Schema.String
301
306
  }))
302
307
  }))();
308
+ const ContactGroupsPreview400 = MalformedRequestError;
303
309
  const ContactGroupsPreview401 = UnauthorizedError;
304
310
  const ContactGroupsPreview403 = ForbiddenError;
305
311
  const ContactGroupsPreview422 = ValidationError;
@@ -309,6 +315,7 @@ var ContactGroupsGroup = class extends HttpApiGroup.make("Contact Groups").add(H
309
315
  query: ContactGroupsListQuery,
310
316
  success: ContactGroupsList200,
311
317
  error: [
318
+ ContactGroupsList400.pipe(HttpApiSchema.status(400)),
312
319
  ContactGroupsList401.pipe(HttpApiSchema.status(401)),
313
320
  ContactGroupsList403.pipe(HttpApiSchema.status(403)),
314
321
  ContactGroupsList422.pipe(HttpApiSchema.status(422)),
@@ -319,6 +326,7 @@ var ContactGroupsGroup = class extends HttpApiGroup.make("Contact Groups").add(H
319
326
  payload: ContactGroupsCreateRequestJson,
320
327
  success: ContactGroupsCreate201.pipe(HttpApiSchema.status(201)),
321
328
  error: [
329
+ ContactGroupsCreate400.pipe(HttpApiSchema.status(400)),
322
330
  ContactGroupsCreate401.pipe(HttpApiSchema.status(401)),
323
331
  ContactGroupsCreate403.pipe(HttpApiSchema.status(403)),
324
332
  ContactGroupsCreate422.pipe(HttpApiSchema.status(422)),
@@ -329,6 +337,7 @@ var ContactGroupsGroup = class extends HttpApiGroup.make("Contact Groups").add(H
329
337
  params: ContactGroupsGetByIdPathParams,
330
338
  success: ContactGroupsGetById200,
331
339
  error: [
340
+ ContactGroupsGetById400.pipe(HttpApiSchema.status(400)),
332
341
  ContactGroupsGetById401.pipe(HttpApiSchema.status(401)),
333
342
  ContactGroupsGetById403.pipe(HttpApiSchema.status(403)),
334
343
  ContactGroupsGetById404.pipe(HttpApiSchema.status(404)),
@@ -340,6 +349,7 @@ var ContactGroupsGroup = class extends HttpApiGroup.make("Contact Groups").add(H
340
349
  params: ContactGroupsRemovePathParams,
341
350
  success: ContactGroupsRemove200,
342
351
  error: [
352
+ ContactGroupsRemove400.pipe(HttpApiSchema.status(400)),
343
353
  ContactGroupsRemove401.pipe(HttpApiSchema.status(401)),
344
354
  ContactGroupsRemove403.pipe(HttpApiSchema.status(403)),
345
355
  ContactGroupsRemove404.pipe(HttpApiSchema.status(404)),
@@ -352,6 +362,7 @@ var ContactGroupsGroup = class extends HttpApiGroup.make("Contact Groups").add(H
352
362
  payload: ContactGroupsUpdateRequestJson,
353
363
  success: ContactGroupsUpdate200,
354
364
  error: [
365
+ ContactGroupsUpdate400.pipe(HttpApiSchema.status(400)),
355
366
  ContactGroupsUpdate401.pipe(HttpApiSchema.status(401)),
356
367
  ContactGroupsUpdate403.pipe(HttpApiSchema.status(403)),
357
368
  ContactGroupsUpdate404.pipe(HttpApiSchema.status(404)),
@@ -363,6 +374,7 @@ var ContactGroupsGroup = class extends HttpApiGroup.make("Contact Groups").add(H
363
374
  params: ContactGroupsEvaluateDynamicPathParams,
364
375
  success: ContactGroupsEvaluateDynamic200,
365
376
  error: [
377
+ ContactGroupsEvaluateDynamic400.pipe(HttpApiSchema.status(400)),
366
378
  ContactGroupsEvaluateDynamic401.pipe(HttpApiSchema.status(401)),
367
379
  ContactGroupsEvaluateDynamic403.pipe(HttpApiSchema.status(403)),
368
380
  ContactGroupsEvaluateDynamic404.pipe(HttpApiSchema.status(404)),
@@ -375,6 +387,7 @@ var ContactGroupsGroup = class extends HttpApiGroup.make("Contact Groups").add(H
375
387
  query: ContactGroupsGetMembersQuery,
376
388
  success: ContactGroupsGetMembers200,
377
389
  error: [
390
+ ContactGroupsGetMembers400.pipe(HttpApiSchema.status(400)),
378
391
  ContactGroupsGetMembers401.pipe(HttpApiSchema.status(401)),
379
392
  ContactGroupsGetMembers403.pipe(HttpApiSchema.status(403)),
380
393
  ContactGroupsGetMembers404.pipe(HttpApiSchema.status(404)),
@@ -387,6 +400,7 @@ var ContactGroupsGroup = class extends HttpApiGroup.make("Contact Groups").add(H
387
400
  payload: ContactGroupsAddMembersRequestJson,
388
401
  success: ContactGroupsAddMembers200,
389
402
  error: [
403
+ ContactGroupsAddMembers400.pipe(HttpApiSchema.status(400)),
390
404
  ContactGroupsAddMembers401.pipe(HttpApiSchema.status(401)),
391
405
  ContactGroupsAddMembers403.pipe(HttpApiSchema.status(403)),
392
406
  ContactGroupsAddMembers404.pipe(HttpApiSchema.status(404)),
@@ -399,6 +413,7 @@ var ContactGroupsGroup = class extends HttpApiGroup.make("Contact Groups").add(H
399
413
  payload: ContactGroupsRemoveMembersRequestJson,
400
414
  success: ContactGroupsRemoveMembers200,
401
415
  error: [
416
+ ContactGroupsRemoveMembers400.pipe(HttpApiSchema.status(400)),
402
417
  ContactGroupsRemoveMembers401.pipe(HttpApiSchema.status(401)),
403
418
  ContactGroupsRemoveMembers403.pipe(HttpApiSchema.status(403)),
404
419
  ContactGroupsRemoveMembers404.pipe(HttpApiSchema.status(404)),
@@ -410,6 +425,7 @@ var ContactGroupsGroup = class extends HttpApiGroup.make("Contact Groups").add(H
410
425
  payload: ContactGroupsPreviewRequestJson,
411
426
  success: ContactGroupsPreview200,
412
427
  error: [
428
+ ContactGroupsPreview400.pipe(HttpApiSchema.status(400)),
413
429
  ContactGroupsPreview401.pipe(HttpApiSchema.status(401)),
414
430
  ContactGroupsPreview403.pipe(HttpApiSchema.status(403)),
415
431
  ContactGroupsPreview422.pipe(HttpApiSchema.status(422)),
@@ -417,6 +433,6 @@ var ContactGroupsGroup = class extends HttpApiGroup.make("Contact Groups").add(H
417
433
  ContactGroupsPreview504.pipe(HttpApiSchema.status(504))
418
434
  ]
419
435
  }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contactGroups.preview").annotate(OpenApi.Summary, "Preview contact group criteria").annotate(OpenApi.Description, "Evaluates group criteria without persisting, returning the matching contact count and a sample of matches.")).annotate(OpenApi.Description, "Segment management — static and dynamic groups with membership operations") {};
420
- export { ContactGroupMemberPage, ContactGroupPage, ContactGroupsAddMembers200, ContactGroupsAddMembers401, ContactGroupsAddMembers403, ContactGroupsAddMembers404, ContactGroupsAddMembers422, ContactGroupsAddMembers500, ContactGroupsAddMembers504, ContactGroupsAddMembersPathParams, ContactGroupsAddMembersRequestJson, ContactGroupsCreate201, ContactGroupsCreate401, ContactGroupsCreate403, ContactGroupsCreate422, ContactGroupsCreate500, ContactGroupsCreate504, ContactGroupsCreateRequestJson, ContactGroupsEvaluateDynamic200, ContactGroupsEvaluateDynamic401, ContactGroupsEvaluateDynamic403, ContactGroupsEvaluateDynamic404, ContactGroupsEvaluateDynamic422, ContactGroupsEvaluateDynamic500, ContactGroupsEvaluateDynamic504, ContactGroupsEvaluateDynamicPathParams, ContactGroupsGetById200, ContactGroupsGetById401, ContactGroupsGetById403, ContactGroupsGetById404, ContactGroupsGetById422, ContactGroupsGetById500, ContactGroupsGetById504, ContactGroupsGetByIdPathParams, ContactGroupsGetMembers200, ContactGroupsGetMembers401, ContactGroupsGetMembers403, ContactGroupsGetMembers404, ContactGroupsGetMembers422, ContactGroupsGetMembers500, ContactGroupsGetMembers504, ContactGroupsGetMembersPathParams, ContactGroupsGetMembersQuery, ContactGroupsGroup, ContactGroupsList200, ContactGroupsList401, ContactGroupsList403, ContactGroupsList422, ContactGroupsList500, ContactGroupsList504, ContactGroupsListQuery, ContactGroupsPreview200, ContactGroupsPreview401, ContactGroupsPreview403, ContactGroupsPreview422, ContactGroupsPreview500, ContactGroupsPreview504, ContactGroupsPreviewRequestJson, ContactGroupsRemove200, ContactGroupsRemove401, ContactGroupsRemove403, ContactGroupsRemove404, ContactGroupsRemove422, ContactGroupsRemove500, ContactGroupsRemove504, ContactGroupsRemoveMembers200, ContactGroupsRemoveMembers401, ContactGroupsRemoveMembers403, ContactGroupsRemoveMembers404, ContactGroupsRemoveMembers422, ContactGroupsRemoveMembers500, ContactGroupsRemoveMembers504, ContactGroupsRemoveMembersPathParams, ContactGroupsRemoveMembersRequestJson, ContactGroupsRemovePathParams, ContactGroupsUpdate200, ContactGroupsUpdate401, ContactGroupsUpdate403, ContactGroupsUpdate404, ContactGroupsUpdate422, ContactGroupsUpdate500, ContactGroupsUpdate504, ContactGroupsUpdatePathParams, ContactGroupsUpdateRequestJson };
436
+ export { ContactGroupMemberPage, ContactGroupPage, ContactGroupsAddMembers200, ContactGroupsAddMembers400, ContactGroupsAddMembers401, ContactGroupsAddMembers403, ContactGroupsAddMembers404, ContactGroupsAddMembers422, ContactGroupsAddMembers500, ContactGroupsAddMembers504, ContactGroupsAddMembersPathParams, ContactGroupsAddMembersRequestJson, ContactGroupsCreate201, ContactGroupsCreate400, ContactGroupsCreate401, ContactGroupsCreate403, ContactGroupsCreate422, ContactGroupsCreate500, ContactGroupsCreate504, ContactGroupsCreateRequestJson, ContactGroupsEvaluateDynamic200, ContactGroupsEvaluateDynamic400, ContactGroupsEvaluateDynamic401, ContactGroupsEvaluateDynamic403, ContactGroupsEvaluateDynamic404, ContactGroupsEvaluateDynamic422, ContactGroupsEvaluateDynamic500, ContactGroupsEvaluateDynamic504, ContactGroupsEvaluateDynamicPathParams, ContactGroupsGetById200, ContactGroupsGetById400, ContactGroupsGetById401, ContactGroupsGetById403, ContactGroupsGetById404, ContactGroupsGetById422, ContactGroupsGetById500, ContactGroupsGetById504, ContactGroupsGetByIdPathParams, ContactGroupsGetMembers200, ContactGroupsGetMembers400, ContactGroupsGetMembers401, ContactGroupsGetMembers403, ContactGroupsGetMembers404, ContactGroupsGetMembers422, ContactGroupsGetMembers500, ContactGroupsGetMembers504, ContactGroupsGetMembersPathParams, ContactGroupsGetMembersQuery, ContactGroupsGroup, ContactGroupsList200, ContactGroupsList400, ContactGroupsList401, ContactGroupsList403, ContactGroupsList422, ContactGroupsList500, ContactGroupsList504, ContactGroupsListQuery, ContactGroupsPreview200, ContactGroupsPreview400, ContactGroupsPreview401, ContactGroupsPreview403, ContactGroupsPreview422, ContactGroupsPreview500, ContactGroupsPreview504, ContactGroupsPreviewRequestJson, ContactGroupsRemove200, ContactGroupsRemove400, ContactGroupsRemove401, ContactGroupsRemove403, ContactGroupsRemove404, ContactGroupsRemove422, ContactGroupsRemove500, ContactGroupsRemove504, ContactGroupsRemoveMembers200, ContactGroupsRemoveMembers400, ContactGroupsRemoveMembers401, ContactGroupsRemoveMembers403, ContactGroupsRemoveMembers404, ContactGroupsRemoveMembers422, ContactGroupsRemoveMembers500, ContactGroupsRemoveMembers504, ContactGroupsRemoveMembersPathParams, ContactGroupsRemoveMembersRequestJson, ContactGroupsRemovePathParams, ContactGroupsUpdate200, ContactGroupsUpdate400, ContactGroupsUpdate401, ContactGroupsUpdate403, ContactGroupsUpdate404, ContactGroupsUpdate422, ContactGroupsUpdate500, ContactGroupsUpdate504, ContactGroupsUpdatePathParams, ContactGroupsUpdateRequestJson };
421
437
 
422
438
  //# sourceMappingURL=contact-groups.js.map