samva 0.17.0 → 0.19.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 (143) hide show
  1. package/AGENTS.md +5 -0
  2. package/README.md +18 -3
  3. package/dist/{rolldown-runtime-D7D4PA-g.js → _virtual/_rolldown/runtime.js} +1 -1
  4. package/dist/client/client/client.gen.js +174 -0
  5. package/dist/client/client/utils.gen.js +177 -0
  6. package/dist/client/client.gen.js +8 -0
  7. package/dist/client/core/auth.gen.js +12 -0
  8. package/dist/client/core/bodySerializer.gen.js +6 -0
  9. package/dist/client/core/params.gen.js +77 -0
  10. package/dist/client/core/pathSerializer.gen.js +82 -0
  11. package/dist/client/core/serverSentEvents.gen.js +96 -0
  12. package/dist/client/core/utils.gen.js +78 -0
  13. package/dist/client/sdk.gen.d.ts +39 -23
  14. package/dist/{promises---Kbh-7z.js → client/sdk.gen.js} +87 -2314
  15. package/dist/client/types.gen.d.ts +175 -44
  16. package/dist/client-attribution.js +9 -0
  17. package/dist/effect/analytics.d.ts +6 -6
  18. package/dist/effect/analytics.js +23 -2
  19. package/dist/effect/api-keys.d.ts +12 -12
  20. package/dist/effect/api-keys.js +29 -2
  21. package/dist/effect/attachments.d.ts +4 -4
  22. package/dist/effect/attachments.js +19 -2
  23. package/dist/effect/brands.d.ts +6 -6
  24. package/dist/effect/brands.js +26 -3
  25. package/dist/effect/campaigns.d.ts +18 -18
  26. package/dist/effect/campaigns.js +35 -2
  27. package/dist/effect/categories.d.ts +2 -2
  28. package/dist/effect/categories.js +95 -1
  29. package/dist/effect/client.js +3 -3
  30. package/dist/effect/contact-groups.d.ts +53 -17
  31. package/dist/effect/contact-groups.js +31 -2
  32. package/dist/effect/contacts.d.ts +244 -41
  33. package/dist/effect/contacts.js +54 -2
  34. package/dist/effect/conversations.d.ts +28 -28
  35. package/dist/effect/conversations.js +37 -2
  36. package/dist/effect/custom-fields.d.ts +4 -4
  37. package/dist/effect/custom-fields.js +19 -2
  38. package/dist/effect/email.d.ts +75 -75
  39. package/dist/effect/email.js +140 -2
  40. package/dist/effect/errors.d.ts +2 -0
  41. package/dist/effect/errors.js +3 -0
  42. package/dist/effect/events.d.ts +2 -2
  43. package/dist/effect/events.js +17 -3
  44. package/dist/effect/extension-installations.d.ts +23 -23
  45. package/dist/effect/extension-installations.js +29 -2
  46. package/dist/effect/extensions.d.ts +12 -12
  47. package/dist/effect/extensions.js +21 -2
  48. package/dist/effect/feedback.d.ts +1 -1
  49. package/dist/effect/feedback.js +14 -3
  50. package/dist/{analytics-CaqPRsry.js → effect/generated/analytics.js} +4 -23
  51. package/dist/{api-keys-Ce1Y4_Ip.js → effect/generated/api-keys.js} +4 -29
  52. package/dist/{attachments-DYqVIraC.js → effect/generated/attachments.js} +3 -18
  53. package/dist/{brands-ZwuOGIWO.js → effect/generated/brands.js} +5 -25
  54. package/dist/{campaigns-DZlz1E9E.js → effect/generated/campaigns.js} +4 -35
  55. package/dist/effect/generated/contact-events.js +37 -0
  56. package/dist/effect/generated/contact-groups.d.ts +33 -3
  57. package/dist/{contact-groups-BLbFXnjq.js → effect/generated/contact-groups.js} +3 -30
  58. package/dist/effect/generated/contacts.d.ts +477 -54
  59. package/dist/{contacts-BbsoXXB4.js → effect/generated/contacts.js} +41 -89
  60. package/dist/effect/generated/conversations.d.ts +25 -25
  61. package/dist/{conversations-_sRHueML.js → effect/generated/conversations.js} +4 -37
  62. package/dist/{custom-fields-BHWbwlKn.js → effect/generated/custom-fields.js} +5 -19
  63. package/dist/{email-R0NAA9PW.js → effect/generated/email.js} +995 -1146
  64. package/dist/{events-CxbTUHYT.js → effect/generated/events.js} +3 -15
  65. package/dist/effect/generated/extension-installations.d.ts +44 -44
  66. package/dist/{extension-installations-CD94LPmk.js → effect/generated/extension-installations.js} +10 -29
  67. package/dist/effect/generated/extensions.d.ts +10 -10
  68. package/dist/{extensions-BKyNQLvu.js → effect/generated/extensions.js} +5 -20
  69. package/dist/{feedback-Bpa09JOS.js → effect/generated/feedback.js} +3 -12
  70. package/dist/{journeys-CARo_BJT.js → effect/generated/journeys.js} +3 -38
  71. package/dist/effect/generated/mailboxes.d.ts +310 -0
  72. package/dist/{mailboxes-BRDn7BIK.js → effect/generated/mailboxes.js} +829 -954
  73. package/dist/{media-VrrtNnft.js → effect/generated/media.js} +3 -3
  74. package/dist/effect/generated/messages.d.ts +31 -0
  75. package/dist/effect/generated/messages.js +677 -0
  76. package/dist/{namespaces-CcvEbG-y.js → effect/generated/namespaces.js} +3 -20
  77. package/dist/{operations-CmB3FHwf.js → effect/generated/operations.js} +3 -16
  78. package/dist/effect/generated/organizations.d.ts +13 -11
  79. package/dist/{organizations-A-plufWc.js → effect/generated/organizations.js} +9 -26
  80. package/dist/{scheduled-messages-DkKZRRaN.js → effect/generated/scheduled-messages.js} +4 -21
  81. package/dist/effect/generated/shared.d.ts +70 -20
  82. package/dist/effect/generated/shared.js +1073 -0
  83. package/dist/{subscriptions-DEXYtMXg.js → effect/generated/subscriptions.js} +3 -9
  84. package/dist/{templates-DZomxsG7.js → effect/generated/templates.js} +3 -78
  85. package/dist/effect/generated/unsubscribe-groups.d.ts +173 -78
  86. package/dist/{unsubscribe-groups-Iqk4Isf9.js → effect/generated/unsubscribe-groups.js} +77 -84
  87. package/dist/effect/generated/webhooks.d.ts +19 -19
  88. package/dist/{webhooks-CPXuu8Xf.js → effect/generated/webhooks.js} +12 -34
  89. package/dist/{whoami-Ccz0jwlt.js → effect/generated/whoami.js} +5 -10
  90. package/dist/effect/generated-metadata.d.ts +7 -2
  91. package/dist/effect/generated-metadata.js +925 -0
  92. package/dist/effect/index.d.ts +1 -2
  93. package/dist/effect/index.js +32 -32
  94. package/dist/effect/internal/client.js +69 -0
  95. package/dist/effect/internal/email-sender.js +21 -0
  96. package/dist/effect/internal/mailbox-events.js +33 -0
  97. package/dist/effect/internal/operation.js +116 -0
  98. package/dist/effect/internal/send.js +56 -0
  99. package/dist/effect/journeys.d.ts +18 -18
  100. package/dist/effect/journeys.js +39 -2
  101. package/dist/effect/mailboxes.d.ts +314 -182
  102. package/dist/effect/mailboxes.js +135 -3
  103. package/dist/effect/media.d.ts +5 -5
  104. package/dist/effect/media.js +10 -10
  105. package/dist/effect/messages.d.ts +19 -14
  106. package/dist/effect/messages.js +15 -14
  107. package/dist/effect/namespaces.d.ts +7 -7
  108. package/dist/effect/namespaces.js +21 -2
  109. package/dist/effect/operations.d.ts +5 -5
  110. package/dist/effect/operations.js +17 -2
  111. package/dist/effect/organizations.d.ts +11 -11
  112. package/dist/effect/organizations.js +25 -2
  113. package/dist/effect/pagination.js +39 -0
  114. package/dist/effect/retry.js +3 -3
  115. package/dist/{runtime-P0l1_2-C.js → effect/runtime.js} +2 -2
  116. package/dist/effect/scheduled-messages.d.ts +7 -7
  117. package/dist/effect/scheduled-messages.js +21 -2
  118. package/dist/effect/subscriptions.d.ts +1 -1
  119. package/dist/effect/subscriptions.js +10 -2
  120. package/dist/effect/templates.d.ts +39 -39
  121. package/dist/effect/templates.js +80 -3
  122. package/dist/effect/unsubscribe-groups.d.ts +39 -28
  123. package/dist/effect/unsubscribe-groups.js +29 -2
  124. package/dist/effect/webhooks.d.ts +22 -22
  125. package/dist/effect/webhooks.js +35 -3
  126. package/dist/effect/whoami.d.ts +9 -9
  127. package/dist/effect/whoami.js +10 -2
  128. package/dist/index.js +4 -3
  129. package/dist/{inline-attachments-Bi1hDltp.js → inline-attachments.js} +13 -7
  130. package/dist/mailbox-events.d.ts +31 -4
  131. package/dist/{mailbox-events-VKR4f3qq.js → mailbox-events.js} +41 -13
  132. package/dist/{normalize-B79uJIeb.js → normalize.js} +2 -2
  133. package/dist/package.js +6 -0
  134. package/dist/promises/errors.gen.js +1340 -0
  135. package/dist/promises/index.d.ts +1 -1
  136. package/dist/promises/index.js +288 -3
  137. package/dist/promises/types.gen.d.ts +1 -1
  138. package/dist/service-map.d.ts +9 -4
  139. package/dist/{operation-n_IYgNVK.js → service-map.js} +12 -150
  140. package/package.json +6 -2
  141. package/dist/categories-CA4XIQAb.js +0 -1011
  142. package/dist/client-DOzUrdTE.js +0 -1115
  143. package/dist/send-Bxc0XfGE.js +0 -722
@@ -1,2 +1,96 @@
1
- import { _ as isTransient, a as catchNotFoundError, c as catchValidationError, d as isAuthError, f as isBillingError, g as isThrottlingError, h as isRetryable, i as catchConflictError, l as categoriesOf, m as isNotFoundError, n as catchBillingError, o as catchThrottlingError, p as isConflictError, r as catchCategory, s as catchTransient, t as catchAuthError, u as hasCategory, v as isValidationError } from "../categories-CA4XIQAb.js";
1
+ import { SamvaErrorMetadata } from "./generated-metadata.js";
2
+ import { Effect } from "effect";
3
+ import * as Predicate$1 from "effect/Predicate";
4
+ //#region src/effect/categories.ts
5
+ /**
6
+ * Semantic error-category helpers for the Effect SDK.
7
+ *
8
+ * Every operation's error channel carries the server's real tagged errors
9
+ * ({@link import("./errors").ConflictError} …). These helpers let callers catch
10
+ * or test by *category* — auth, validation, throttling, transient … — without
11
+ * enumerating tags, and cover the raw transport/decode errors too. The category
12
+ * assignments are generated from the OpenAPI category extensions.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * import { catchAuthError, isRetryable } from "samva/effect";
17
+ *
18
+ * samva.messages.send(input).pipe(
19
+ * catchAuthError((error) => Effect.logError(`auth failed: ${error.message}`)),
20
+ * Effect.retry({ while: isRetryable }),
21
+ * );
22
+ * ```
23
+ */
24
+ const emailChannelCategories = (reason) => {
25
+ switch (reason) {
26
+ case "auth": return ["auth"];
27
+ case "rejected": return ["validation"];
28
+ case "rate_limited": return ["throttling", "transient"];
29
+ case "transport": return ["transient"];
30
+ default: return [];
31
+ }
32
+ };
33
+ const categoriesOf = (error) => {
34
+ if (!Predicate$1.isObject(error) || typeof error._tag !== "string") return [];
35
+ if (error._tag === "EmailChannelError") return emailChannelCategories(error.reason);
36
+ return SamvaErrorMetadata[error._tag]?.categories ?? [];
37
+ };
38
+ const hasCategory = (error, category) => categoriesOf(error).includes(category);
39
+ const isRetryableError = (error) => {
40
+ if (!Predicate$1.isObject(error) || typeof error._tag !== "string") return false;
41
+ if (error._tag === "EmailChannelError") return categoriesOf(error).includes("transient");
42
+ return SamvaErrorMetadata[error._tag]?.retryable ?? false;
43
+ };
44
+ const categoryGuard = (category) => (error) => hasCategory(error, category);
45
+ const isAuthError = categoryGuard("auth");
46
+ const isValidationError = categoryGuard("validation");
47
+ const isNotFoundError = categoryGuard("notFound");
48
+ const isConflictError = categoryGuard("conflict");
49
+ const isThrottlingError = categoryGuard("throttling");
50
+ const isBillingError = categoryGuard("billing");
51
+ /**
52
+ * Network-level request failure (no HTTP response). Only `TransportError` is
53
+ * transient/retryable: `EncodeError` and `InvalidUrlError` are deterministic
54
+ * programmer errors (bad input, bad URL) that would fail identically on every
55
+ * attempt — retrying them would loop forever.
56
+ */
57
+ const isRequestTransportError = (error) => {
58
+ if (!Predicate$1.isTagged(error, "HttpClientError")) return false;
59
+ const reason = error.reason;
60
+ return Predicate$1.isObject(reason) && Predicate$1.isTagged(reason, "TransportError");
61
+ };
62
+ /** True for transient failures, including raw request-transport errors. */
63
+ const isTransient = (error) => hasCategory(error, "transient") || isRequestTransportError(error);
64
+ /** True when an error is declared safe to retry (throttling / transient / transport). */
65
+ const isRetryable = (error) => isRetryableError(error) || isRequestTransportError(error);
66
+ /**
67
+ * Catch every error in `category`. The handler receives the category's error
68
+ * union — including `EmailChannelError` where its `reason` can place it in the
69
+ * category — while only total-membership classes are narrowed out of the error
70
+ * channel (`EmailChannelError` stays: instances with other reasons pass through).
71
+ */
72
+ const catchCategory = (category, handler) => (effect) => {
73
+ const inCategory = (error) => hasCategory(error, category);
74
+ const outsideCategory = (error) => !hasCategory(error, category);
75
+ return Effect.catch(effect, (error) => {
76
+ if (inCategory(error)) return handler(error);
77
+ if (outsideCategory(error)) return Effect.fail(error);
78
+ return Effect.die(error);
79
+ });
80
+ };
81
+ const catchAuthError = (handler) => catchCategory("auth", handler);
82
+ const catchValidationError = (handler) => catchCategory("validation", handler);
83
+ const catchNotFoundError = (handler) => catchCategory("notFound", handler);
84
+ const catchConflictError = (handler) => catchCategory("conflict", handler);
85
+ const catchThrottlingError = (handler) => catchCategory("throttling", handler);
86
+ const catchBillingError = (handler) => catchCategory("billing", handler);
87
+ /**
88
+ * Catch transient failures — including raw request-transport errors — for
89
+ * fallback/degrade paths. The declared error channel is left intact because
90
+ * transient covers untyped transport errors as well.
91
+ */
92
+ const catchTransient = (handler) => (effect) => Effect.catchIf(effect, isTransient, handler);
93
+ //#endregion
2
94
  export { catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
95
+
96
+ //# sourceMappingURL=categories.js.map
@@ -1,5 +1,5 @@
1
- import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as layer, r as layerFetch, t as Service } from "../client-DOzUrdTE.js";
1
+ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ import { Service, layer, layerFetch } from "./internal/client.js";
3
3
  //#region src/effect/client.ts
4
4
  var client_exports = /* @__PURE__ */ __exportAll({
5
5
  Service: () => Service,
@@ -7,6 +7,6 @@ var client_exports = /* @__PURE__ */ __exportAll({
7
7
  layerFetch: () => layerFetch
8
8
  });
9
9
  //#endregion
10
- export { Service, layer, layerFetch, client_exports as t };
10
+ export { Service, client_exports, layer, layerFetch };
11
11
 
12
12
  //# sourceMappingURL=client.js.map
@@ -23,7 +23,7 @@ export declare const list: ((input?: {
23
23
  readonly updatedAt: string;
24
24
  }[];
25
25
  readonly nextCursor: string | null;
26
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>) & {
26
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
27
27
  readonly pages: (input?: {
28
28
  readonly limit?: string | null | undefined;
29
29
  readonly cursor?: string | null | undefined;
@@ -49,7 +49,7 @@ export declare const list: ((input?: {
49
49
  readonly updatedAt: string;
50
50
  }[];
51
51
  readonly nextCursor: string | null;
52
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
52
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
53
53
  readonly items: (input?: {
54
54
  readonly limit?: string | null | undefined;
55
55
  readonly cursor?: string | null | undefined;
@@ -72,7 +72,7 @@ export declare const list: ((input?: {
72
72
  readonly isActive: boolean;
73
73
  readonly createdAt: string;
74
74
  readonly updatedAt: string;
75
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
75
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
76
76
  };
77
77
  export declare const create: (input: {
78
78
  readonly name: string;
@@ -126,7 +126,7 @@ export declare const create: (input: {
126
126
  readonly isActive: boolean;
127
127
  readonly createdAt: string;
128
128
  readonly updatedAt: string;
129
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
129
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
130
130
  export declare const getById: (input: {
131
131
  readonly id: string;
132
132
  }) => import("effect/Effect").Effect<{
@@ -146,7 +146,7 @@ export declare const getById: (input: {
146
146
  readonly isActive: boolean;
147
147
  readonly createdAt: string;
148
148
  readonly updatedAt: string;
149
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
149
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
150
150
  export declare const update: (input: {
151
151
  readonly id: string;
152
152
  readonly name?: string | null | undefined;
@@ -200,12 +200,12 @@ export declare const update: (input: {
200
200
  readonly isActive: boolean;
201
201
  readonly createdAt: string;
202
202
  readonly updatedAt: string;
203
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
203
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
204
204
  export declare const remove: (input: {
205
205
  readonly id: string;
206
206
  }) => import("effect/Effect").Effect<{
207
207
  readonly success: boolean;
208
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
208
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
209
209
  export declare const preview: (input: {
210
210
  readonly criteria: {
211
211
  readonly tags?: readonly string[] | null | undefined;
@@ -246,14 +246,14 @@ export declare const preview: (input: {
246
246
  readonly name: string;
247
247
  readonly status: string;
248
248
  }[];
249
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
249
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
250
250
  export declare const evaluateDynamic: (input: {
251
251
  readonly id: string;
252
252
  }) => import("effect/Effect").Effect<{
253
253
  readonly added: number;
254
254
  readonly removed: number;
255
255
  readonly total: number;
256
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
256
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
257
257
  export declare const getMembers: ((input: {
258
258
  readonly id: string;
259
259
  readonly limit?: string | null | undefined;
@@ -275,14 +275,26 @@ export declare const getMembers: ((input: {
275
275
  readonly type: string;
276
276
  readonly identities?: readonly {
277
277
  readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
278
- readonly channel: "email";
278
+ readonly type: "email" | "phone";
279
279
  readonly identifier: string;
280
280
  readonly verified: boolean;
281
+ readonly channels: readonly {
282
+ readonly channel: "email";
283
+ readonly reachability: "reachable" | "unknown" | "unreachable";
284
+ readonly consent: {
285
+ readonly status: "opted_in" | "opted_out";
286
+ readonly source: string;
287
+ readonly capturedAt: string;
288
+ readonly proof: {
289
+ readonly [x: string]: import("./generated").JsonValue;
290
+ } | null;
291
+ } | null;
292
+ }[];
281
293
  }[] | null;
282
294
  } | null;
283
295
  }[];
284
296
  readonly nextCursor: string | null;
285
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>) & {
297
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
286
298
  readonly pages: (input: {
287
299
  readonly id: string;
288
300
  readonly limit?: string | null | undefined;
@@ -304,14 +316,26 @@ export declare const getMembers: ((input: {
304
316
  readonly type: string;
305
317
  readonly identities?: readonly {
306
318
  readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
307
- readonly channel: "email";
319
+ readonly type: "email" | "phone";
308
320
  readonly identifier: string;
309
321
  readonly verified: boolean;
322
+ readonly channels: readonly {
323
+ readonly channel: "email";
324
+ readonly reachability: "reachable" | "unknown" | "unreachable";
325
+ readonly consent: {
326
+ readonly status: "opted_in" | "opted_out";
327
+ readonly source: string;
328
+ readonly capturedAt: string;
329
+ readonly proof: {
330
+ readonly [x: string]: import("./generated").JsonValue;
331
+ } | null;
332
+ } | null;
333
+ }[];
310
334
  }[] | null;
311
335
  } | null;
312
336
  }[];
313
337
  readonly nextCursor: string | null;
314
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
338
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
315
339
  readonly items: (input: {
316
340
  readonly id: string;
317
341
  readonly limit?: string | null | undefined;
@@ -332,12 +356,24 @@ export declare const getMembers: ((input: {
332
356
  readonly type: string;
333
357
  readonly identities?: readonly {
334
358
  readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
335
- readonly channel: "email";
359
+ readonly type: "email" | "phone";
336
360
  readonly identifier: string;
337
361
  readonly verified: boolean;
362
+ readonly channels: readonly {
363
+ readonly channel: "email";
364
+ readonly reachability: "reachable" | "unknown" | "unreachable";
365
+ readonly consent: {
366
+ readonly status: "opted_in" | "opted_out";
367
+ readonly source: string;
368
+ readonly capturedAt: string;
369
+ readonly proof: {
370
+ readonly [x: string]: import("./generated").JsonValue;
371
+ } | null;
372
+ } | null;
373
+ }[];
338
374
  }[] | null;
339
375
  } | null;
340
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
376
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
341
377
  };
342
378
  export declare const addMembers: (input: {
343
379
  readonly id: string;
@@ -346,10 +382,10 @@ export declare const addMembers: (input: {
346
382
  }) => import("effect/Effect").Effect<{
347
383
  readonly added: number;
348
384
  readonly skipped: number;
349
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
385
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
350
386
  export declare const removeMembers: (input: {
351
387
  readonly id: string;
352
388
  readonly contactIds: readonly string[];
353
389
  }) => import("effect/Effect").Effect<{
354
390
  readonly removed: number;
355
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
391
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
@@ -1,2 +1,31 @@
1
- import { a as getById, c as preview, d as update, i as evaluateDynamic, l as remove, o as getMembers, r as create, s as list, t as addMembers, u as removeMembers } from "../contact-groups-BLbFXnjq.js";
2
- export { addMembers, create, evaluateDynamic, getById, getMembers, list, preview, remove, removeMembers, update };
1
+ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ import { forGroup } from "./internal/operation.js";
3
+ import { ContactGroupsGroup } from "./generated/contact-groups.js";
4
+ //#region src/effect/contact-groups.ts
5
+ var contact_groups_exports = /* @__PURE__ */ __exportAll({
6
+ addMembers: () => addMembers,
7
+ create: () => create,
8
+ evaluateDynamic: () => evaluateDynamic,
9
+ getById: () => getById,
10
+ getMembers: () => getMembers,
11
+ list: () => list,
12
+ preview: () => preview,
13
+ remove: () => remove,
14
+ removeMembers: () => removeMembers,
15
+ update: () => update
16
+ });
17
+ const make = /* @__PURE__ */ forGroup(ContactGroupsGroup);
18
+ const list = /* @__PURE__ */ make("contactGroupsList");
19
+ const create = /* @__PURE__ */ make("contactGroupsCreate");
20
+ const getById = /* @__PURE__ */ make("contactGroupsGetById");
21
+ const update = /* @__PURE__ */ make("contactGroupsUpdate");
22
+ const remove = /* @__PURE__ */ make("contactGroupsRemove");
23
+ const preview = /* @__PURE__ */ make("contactGroupsPreview");
24
+ const evaluateDynamic = /* @__PURE__ */ make("contactGroupsEvaluateDynamic");
25
+ const getMembers = /* @__PURE__ */ make("contactGroupsGetMembers");
26
+ const addMembers = /* @__PURE__ */ make("contactGroupsAddMembers");
27
+ const removeMembers = /* @__PURE__ */ make("contactGroupsRemoveMembers");
28
+ //#endregion
29
+ export { addMembers, contact_groups_exports, create, evaluateDynamic, getById, getMembers, list, preview, remove, removeMembers, update };
30
+
31
+ //# sourceMappingURL=contact-groups.js.map