samva 0.45.1 → 0.46.1

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 (276) hide show
  1. package/AGENTS.md +7 -0
  2. package/README.md +25 -1
  3. package/dist/client/client/client.gen.d.ts +1 -1
  4. package/dist/client/client/index.d.ts +10 -10
  5. package/dist/client/client/types.gen.d.ts +4 -4
  6. package/dist/client/client/utils.gen.d.ts +2 -2
  7. package/dist/client/client.gen.d.ts +2 -2
  8. package/dist/client/core/bodySerializer.gen.d.ts +1 -1
  9. package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
  10. package/dist/client/core/types.gen.d.ts +2 -2
  11. package/dist/client/core/utils.gen.d.ts +1 -1
  12. package/dist/client/sdk.gen.d.ts +439 -6
  13. package/dist/client/sdk.gen.js +1544 -229
  14. package/dist/client/types.gen.d.ts +8120 -5616
  15. package/dist/effect/accounts.d.ts +50 -0
  16. package/dist/effect/accounts.js +23 -0
  17. package/dist/effect/agents.d.ts +25 -16
  18. package/dist/effect/agents.js +3 -2
  19. package/dist/effect/analytics.d.ts +6 -6
  20. package/dist/effect/analytics.js +2 -1
  21. package/dist/effect/api-keys.d.ts +13 -13
  22. package/dist/effect/api-keys.js +2 -1
  23. package/dist/effect/approval-requests.d.ts +42 -0
  24. package/dist/effect/approval-requests.js +19 -0
  25. package/dist/effect/attachments.d.ts +4 -4
  26. package/dist/effect/attachments.js +2 -1
  27. package/dist/effect/brands.d.ts +7 -7
  28. package/dist/effect/brands.js +2 -1
  29. package/dist/effect/campaigns.d.ts +205 -205
  30. package/dist/effect/campaigns.js +2 -1
  31. package/dist/effect/categories.d.ts +3 -3
  32. package/dist/effect/client.d.ts +1 -1
  33. package/dist/effect/contact-groups.d.ts +18 -18
  34. package/dist/effect/contact-groups.js +2 -1
  35. package/dist/effect/contacts.d.ts +33 -33
  36. package/dist/effect/contacts.js +3 -2
  37. package/dist/effect/conversations.d.ts +17 -17
  38. package/dist/effect/conversations.js +2 -1
  39. package/dist/effect/custom-fields.d.ts +4 -4
  40. package/dist/effect/custom-fields.js +2 -1
  41. package/dist/effect/descriptors/accounts.d.ts +59 -0
  42. package/dist/effect/descriptors/accounts.js +57 -0
  43. package/dist/effect/descriptors/agents.d.ts +119 -0
  44. package/dist/effect/descriptors/agents.js +117 -0
  45. package/dist/effect/descriptors/analytics.d.ts +56 -0
  46. package/dist/effect/descriptors/analytics.js +48 -0
  47. package/dist/effect/descriptors/api-keys.d.ts +80 -0
  48. package/dist/effect/descriptors/api-keys.js +80 -0
  49. package/dist/effect/descriptors/approval-requests.d.ts +41 -0
  50. package/dist/effect/descriptors/approval-requests.js +43 -0
  51. package/dist/effect/descriptors/attachments.d.ts +41 -0
  52. package/dist/effect/descriptors/attachments.js +43 -0
  53. package/dist/effect/descriptors/brands.d.ts +60 -0
  54. package/dist/effect/descriptors/brands.js +60 -0
  55. package/dist/effect/descriptors/campaigns.d.ts +148 -0
  56. package/dist/effect/descriptors/campaigns.js +144 -0
  57. package/dist/effect/descriptors/contact-groups.d.ts +99 -0
  58. package/dist/effect/descriptors/contact-groups.js +97 -0
  59. package/dist/effect/descriptors/contacts.d.ts +226 -0
  60. package/dist/effect/descriptors/contacts.js +214 -0
  61. package/dist/effect/descriptors/conversations.d.ts +130 -0
  62. package/dist/effect/descriptors/conversations.js +130 -0
  63. package/dist/effect/descriptors/custom-fields.d.ts +40 -0
  64. package/dist/effect/descriptors/custom-fields.js +40 -0
  65. package/dist/effect/descriptors/email.d.ts +607 -0
  66. package/dist/effect/descriptors/email.js +561 -0
  67. package/dist/effect/descriptors/events.d.ts +20 -0
  68. package/dist/effect/descriptors/events.js +20 -0
  69. package/dist/effect/descriptors/extension-installations.d.ts +90 -0
  70. package/dist/effect/descriptors/extension-installations.js +90 -0
  71. package/dist/effect/descriptors/extensions.d.ts +50 -0
  72. package/dist/effect/descriptors/extensions.js +50 -0
  73. package/dist/effect/descriptors/feedback.d.ts +11 -0
  74. package/dist/effect/descriptors/feedback.js +11 -0
  75. package/dist/effect/descriptors/integrations-catalog.d.ts +29 -0
  76. package/dist/effect/descriptors/integrations-catalog.js +27 -0
  77. package/dist/effect/descriptors/integrations.d.ts +70 -0
  78. package/dist/effect/descriptors/integrations.js +70 -0
  79. package/dist/effect/descriptors/journeys.d.ts +140 -0
  80. package/dist/effect/descriptors/journeys.js +140 -0
  81. package/dist/effect/descriptors/mailboxes.d.ts +724 -0
  82. package/dist/effect/descriptors/mailboxes.js +728 -0
  83. package/dist/effect/descriptors/media.d.ts +51 -0
  84. package/dist/effect/descriptors/media.js +53 -0
  85. package/dist/effect/descriptors/messages.d.ts +99 -0
  86. package/dist/effect/descriptors/messages.js +97 -0
  87. package/dist/effect/descriptors/namespaces.d.ts +110 -0
  88. package/dist/effect/descriptors/namespaces.js +114 -0
  89. package/dist/effect/descriptors/newsletter-domains.d.ts +42 -0
  90. package/dist/effect/descriptors/newsletter-domains.js +46 -0
  91. package/dist/effect/descriptors/newsletter-issues.d.ts +112 -0
  92. package/dist/effect/descriptors/newsletter-issues.js +116 -0
  93. package/dist/effect/descriptors/newsletters.d.ts +51 -0
  94. package/dist/effect/descriptors/newsletters.js +53 -0
  95. package/dist/effect/descriptors/operations.d.ts +31 -0
  96. package/dist/effect/descriptors/operations.js +33 -0
  97. package/dist/effect/descriptors/organizations.d.ts +111 -0
  98. package/dist/effect/descriptors/organizations.js +93 -0
  99. package/dist/effect/descriptors/policies.d.ts +32 -0
  100. package/dist/effect/descriptors/policies.js +36 -0
  101. package/dist/effect/descriptors/scheduled-messages.d.ts +50 -0
  102. package/dist/effect/descriptors/scheduled-messages.js +50 -0
  103. package/dist/effect/descriptors/subscriptions.d.ts +11 -0
  104. package/dist/effect/descriptors/subscriptions.js +11 -0
  105. package/dist/effect/descriptors/template-registrations.d.ts +32 -0
  106. package/dist/effect/descriptors/template-registrations.js +36 -0
  107. package/dist/effect/descriptors/template-share-links.d.ts +52 -0
  108. package/dist/effect/descriptors/template-share-links.js +56 -0
  109. package/dist/effect/descriptors/templates.d.ts +365 -0
  110. package/dist/effect/descriptors/templates.js +355 -0
  111. package/dist/effect/descriptors/topic-forms.d.ts +52 -0
  112. package/dist/effect/descriptors/topic-forms.js +56 -0
  113. package/dist/effect/descriptors/topics.d.ts +89 -0
  114. package/dist/effect/descriptors/topics.js +87 -0
  115. package/dist/effect/descriptors/webhooks.d.ts +110 -0
  116. package/dist/effect/descriptors/webhooks.js +110 -0
  117. package/dist/effect/descriptors/whats-app-flows.d.ts +99 -0
  118. package/dist/effect/descriptors/whats-app-flows.js +97 -0
  119. package/dist/effect/descriptors/whats-app-setup-links.d.ts +40 -0
  120. package/dist/effect/descriptors/whats-app-setup-links.js +40 -0
  121. package/dist/effect/descriptors/whats-app.d.ts +116 -0
  122. package/dist/effect/descriptors/whats-app.js +108 -0
  123. package/dist/effect/descriptors/whoami.d.ts +11 -0
  124. package/dist/effect/descriptors/whoami.js +11 -0
  125. package/dist/effect/email.d.ts +78 -78
  126. package/dist/effect/email.js +2 -1
  127. package/dist/effect/errors.d.ts +2 -2
  128. package/dist/effect/events.d.ts +3 -3
  129. package/dist/effect/events.js +2 -1
  130. package/dist/effect/extension-installations.d.ts +11 -11
  131. package/dist/effect/extension-installations.js +2 -1
  132. package/dist/effect/extensions.d.ts +9 -9
  133. package/dist/effect/extensions.js +2 -1
  134. package/dist/effect/feedback.d.ts +2 -2
  135. package/dist/effect/feedback.js +2 -1
  136. package/dist/effect/generated/accounts.d.ts +1002 -0
  137. package/dist/effect/generated/accounts.js +198 -0
  138. package/dist/effect/generated/agents.d.ts +85 -1
  139. package/dist/effect/generated/agents.js +1 -0
  140. package/dist/effect/generated/analytics.d.ts +1 -1
  141. package/dist/effect/generated/api-keys.d.ts +1 -1
  142. package/dist/effect/generated/approval-requests.d.ts +777 -0
  143. package/dist/effect/generated/approval-requests.js +135 -0
  144. package/dist/effect/generated/attachments.d.ts +1 -1
  145. package/dist/effect/generated/brands.d.ts +1 -1
  146. package/dist/effect/generated/campaigns.d.ts +245 -245
  147. package/dist/effect/generated/campaigns.js +6 -6
  148. package/dist/effect/generated/contact-events.d.ts +4 -4
  149. package/dist/effect/generated/contact-groups.d.ts +1 -1
  150. package/dist/effect/generated/contacts.d.ts +49 -49
  151. package/dist/effect/generated/conversations.d.ts +21 -21
  152. package/dist/effect/generated/conversations.js +10 -10
  153. package/dist/effect/generated/custom-fields.d.ts +1 -1
  154. package/dist/effect/generated/email.d.ts +1 -1
  155. package/dist/effect/generated/events.d.ts +12 -12
  156. package/dist/effect/generated/events.js +1 -1
  157. package/dist/effect/generated/extension-installations.d.ts +1 -1
  158. package/dist/effect/generated/extensions.d.ts +1 -1
  159. package/dist/effect/generated/feedback.d.ts +1 -1
  160. package/dist/effect/generated/index.d.ts +88 -78
  161. package/dist/effect/generated/integrations-catalog.d.ts +671 -0
  162. package/dist/effect/generated/integrations-catalog.js +217 -0
  163. package/dist/effect/generated/integrations.d.ts +1401 -0
  164. package/dist/effect/generated/integrations.js +246 -0
  165. package/dist/effect/generated/journeys.d.ts +81 -81
  166. package/dist/effect/generated/mailboxes.d.ts +8157 -4241
  167. package/dist/effect/generated/mailboxes.js +677 -52
  168. package/dist/effect/generated/media.d.ts +1 -1
  169. package/dist/effect/generated/messages.d.ts +9 -9
  170. package/dist/effect/generated/messages.js +4 -4
  171. package/dist/effect/generated/namespaces.d.ts +1 -1
  172. package/dist/effect/generated/newsletter-domains.d.ts +1 -1
  173. package/dist/effect/generated/newsletter-issues.d.ts +1 -1
  174. package/dist/effect/generated/newsletters.d.ts +1 -1
  175. package/dist/effect/generated/operations.d.ts +1 -1
  176. package/dist/effect/generated/organizations.d.ts +1 -1
  177. package/dist/effect/generated/policies.d.ts +1 -1
  178. package/dist/effect/generated/scheduled-messages.d.ts +193 -193
  179. package/dist/effect/generated/scheduled-messages.js +17 -17
  180. package/dist/effect/generated/shared.d.ts +662 -512
  181. package/dist/effect/generated/shared.js +212 -179
  182. package/dist/effect/generated/subscriptions.d.ts +1 -1
  183. package/dist/effect/generated/template-registrations.d.ts +1 -1
  184. package/dist/effect/generated/template-share-links.d.ts +733 -0
  185. package/dist/effect/generated/template-share-links.js +165 -0
  186. package/dist/effect/generated/templates.d.ts +39 -22
  187. package/dist/effect/generated/templates.js +19 -16
  188. package/dist/effect/generated/topic-forms.d.ts +1 -1
  189. package/dist/effect/generated/topics.d.ts +1 -1
  190. package/dist/effect/generated/webhooks.d.ts +1 -1
  191. package/dist/effect/generated/whats-app-flows.d.ts +1 -1
  192. package/dist/effect/generated/whats-app-setup-links.d.ts +1 -1
  193. package/dist/effect/generated/whats-app.d.ts +1 -1
  194. package/dist/effect/generated/whoami.d.ts +1 -1
  195. package/dist/effect/generated-metadata.d.ts +248 -0
  196. package/dist/effect/generated-metadata.js +705 -555
  197. package/dist/effect/index.d.ts +47 -42
  198. package/dist/effect/index.js +6 -1
  199. package/dist/effect/integrations-catalog.d.ts +38 -0
  200. package/dist/effect/integrations-catalog.js +17 -0
  201. package/dist/effect/integrations.d.ts +165 -0
  202. package/dist/effect/integrations.js +25 -0
  203. package/dist/effect/internal/client.d.ts +3 -3
  204. package/dist/effect/internal/email-sender.d.ts +4 -4
  205. package/dist/effect/internal/mailbox-events.d.ts +2 -2
  206. package/dist/effect/internal/operation.d.ts +24 -5
  207. package/dist/effect/internal/operation.js +21 -21
  208. package/dist/effect/internal/send.d.ts +4 -4
  209. package/dist/effect/journeys.d.ts +20 -20
  210. package/dist/effect/journeys.js +2 -1
  211. package/dist/effect/mailboxes.d.ts +476 -294
  212. package/dist/effect/mailboxes.js +33 -2
  213. package/dist/effect/media.d.ts +5 -5
  214. package/dist/effect/media.js +2 -1
  215. package/dist/effect/messages.d.ts +17 -17
  216. package/dist/effect/messages.js +2 -1
  217. package/dist/effect/namespaces.d.ts +15 -15
  218. package/dist/effect/namespaces.js +2 -1
  219. package/dist/effect/newsletter-domains.d.ts +6 -6
  220. package/dist/effect/newsletter-domains.js +2 -1
  221. package/dist/effect/newsletter-issues.d.ts +11 -11
  222. package/dist/effect/newsletter-issues.js +2 -1
  223. package/dist/effect/newsletters.d.ts +5 -5
  224. package/dist/effect/newsletters.js +2 -1
  225. package/dist/effect/operations.d.ts +5 -5
  226. package/dist/effect/operations.js +2 -1
  227. package/dist/effect/organizations.d.ts +12 -12
  228. package/dist/effect/organizations.js +2 -1
  229. package/dist/effect/policies.d.ts +3 -3
  230. package/dist/effect/policies.js +2 -1
  231. package/dist/effect/scheduled-messages.d.ts +372 -372
  232. package/dist/effect/scheduled-messages.js +2 -1
  233. package/dist/effect/subscriptions.d.ts +1 -1
  234. package/dist/effect/subscriptions.js +2 -1
  235. package/dist/effect/template-registrations.d.ts +3 -3
  236. package/dist/effect/template-registrations.js +2 -1
  237. package/dist/effect/template-share-links.d.ts +18 -0
  238. package/dist/effect/template-share-links.js +21 -0
  239. package/dist/effect/templates.d.ts +49 -48
  240. package/dist/effect/templates.js +2 -1
  241. package/dist/effect/topic-forms.d.ts +5 -5
  242. package/dist/effect/topic-forms.js +2 -1
  243. package/dist/effect/topics.d.ts +11 -11
  244. package/dist/effect/topics.js +2 -1
  245. package/dist/effect/webhooks.d.ts +16 -16
  246. package/dist/effect/webhooks.js +2 -1
  247. package/dist/effect/whatsapp-flows.d.ts +10 -10
  248. package/dist/effect/whatsapp-flows.js +2 -1
  249. package/dist/effect/whatsapp-setup-links.d.ts +6 -6
  250. package/dist/effect/whatsapp-setup-links.js +2 -1
  251. package/dist/effect/whatsapp.d.ts +12 -12
  252. package/dist/effect/whatsapp.js +2 -1
  253. package/dist/effect/whoami.d.ts +1 -1
  254. package/dist/effect/whoami.js +2 -1
  255. package/dist/index.d.ts +1 -1
  256. package/dist/index.js +2 -2
  257. package/dist/mailbox/dispatch.d.ts +2 -2
  258. package/dist/mailbox/index.d.ts +4 -4
  259. package/dist/mailbox/test.d.ts +2 -2
  260. package/dist/mailbox/types.d.ts +2 -2
  261. package/dist/mailbox/webhook.d.ts +2 -2
  262. package/dist/package.js +1 -1
  263. package/dist/promises/client.d.ts +20 -10
  264. package/dist/promises/client.js +13 -3
  265. package/dist/promises/errors.gen.d.ts +23 -3
  266. package/dist/promises/errors.gen.js +54 -1
  267. package/dist/promises/index.d.ts +5 -5
  268. package/dist/promises/index.js +2 -2
  269. package/dist/promises/request.d.ts +2 -2
  270. package/dist/promises/request.js +1 -1
  271. package/dist/promises/types.gen.d.ts +1 -1
  272. package/dist/request-policy.d.ts +10 -2
  273. package/dist/request-policy.js +3 -5
  274. package/dist/service-map.d.ts +203 -0
  275. package/package.json +29 -9
  276. package/dist/service-map.js +0 -727
@@ -1,5 +1,6 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { forGroup } from "./internal/operation.js";
3
+ import { campaignsOperations } from "./descriptors/campaigns.js";
3
4
  import { CampaignsGroup } from "./generated/campaigns.js";
4
5
  // src/effect/campaigns.ts
5
6
  var campaigns_exports = /* @__PURE__ */ __exportAll({
@@ -19,7 +20,7 @@ var campaigns_exports = /* @__PURE__ */ __exportAll({
19
20
  sendTest: () => sendTest,
20
21
  update: () => update
21
22
  });
22
- const make = /* @__PURE__ */ forGroup(CampaignsGroup);
23
+ const make = /* @__PURE__ */ forGroup(CampaignsGroup, campaignsOperations);
23
24
  const preview = /* @__PURE__ */ make("campaignsPreview");
24
25
  const sendTest = /* @__PURE__ */ make("campaignsSendTest");
25
26
  const create = /* @__PURE__ */ make("campaignsCreate");
@@ -18,8 +18,8 @@
18
18
  * ```
19
19
  */
20
20
  import { Effect } from "effect";
21
- import type { BillingProviderError, ConflictError, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, UnauthorizedError, ValidationError, DeliveryUnavailableError } from "./errors";
22
- import { SamvaErrorMetadata } from "./generated-metadata";
21
+ import type { BillingProviderError, ConflictError, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, UnauthorizedError, ValidationError, DeliveryUnavailableError } from "./errors.js";
22
+ import { SamvaErrorMetadata } from "./generated-metadata.js";
23
23
  export type ErrorCategory = "auth" | "validation" | "notFound" | "conflict" | "throttling" | "billing" | "transient";
24
24
  export declare const categoriesOf: (error: unknown) => ReadonlyArray<ErrorCategory>;
25
25
  export declare const hasCategory: (error: unknown, category: ErrorCategory) => boolean;
@@ -32,7 +32,7 @@ type CategoryError = {
32
32
  readonly billing: PaymentRequiredError;
33
33
  readonly transient: InternalError | GatewayTimeoutError | ExternalServiceError | BillingProviderError | DeliveryUnavailableError;
34
34
  };
35
- type ErrorExports = typeof import("./errors");
35
+ type ErrorExports = typeof import("./errors.js");
36
36
  type PublicError = {
37
37
  [Key in keyof ErrorExports]: ErrorExports[Key] extends {
38
38
  readonly prototype: infer Error;
@@ -6,4 +6,4 @@
6
6
  * the generated OpenAPI client through {@link Service}; callers do not need to
7
7
  * construct or thread a client object through their programs.
8
8
  */
9
- export { type Config, type ConfigBase, type Interface, Service, layer, layerFetch, } from "./internal/client";
9
+ export { type Config, type ConfigBase, type Interface, Service, layer, layerFetch, } from "./internal/client.js";
@@ -3,7 +3,7 @@ export declare const list: ((input?: {
3
3
  readonly cursor?: string | undefined;
4
4
  readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] | undefined;
5
5
  readonly isActive?: boolean | null | undefined;
6
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsList">) & {
6
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsList">) & {
7
7
  readonly pages: (input?: {
8
8
  readonly limit?: number | null | undefined;
9
9
  readonly cursor?: string | undefined;
@@ -17,7 +17,7 @@ export declare const list: ((input?: {
17
17
  readonly description: string | null;
18
18
  readonly type: "dynamic" | "smart" | "static";
19
19
  readonly criteria: {
20
- readonly [x: string]: import("./generated").JsonValue;
20
+ readonly [x: string]: import("./generated/index.js").JsonValue;
21
21
  } | null;
22
22
  readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
23
23
  readonly icon: string | null;
@@ -29,7 +29,7 @@ export declare const list: ((input?: {
29
29
  readonly updatedAt: string;
30
30
  }[];
31
31
  readonly nextCursor: string | null;
32
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
32
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
33
33
  readonly items: (input?: {
34
34
  readonly limit?: number | null | undefined;
35
35
  readonly cursor?: string | undefined;
@@ -42,7 +42,7 @@ export declare const list: ((input?: {
42
42
  readonly description: string | null;
43
43
  readonly type: "dynamic" | "smart" | "static";
44
44
  readonly criteria: {
45
- readonly [x: string]: import("./generated").JsonValue;
45
+ readonly [x: string]: import("./generated/index.js").JsonValue;
46
46
  } | null;
47
47
  readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
48
48
  readonly icon: string | null;
@@ -52,7 +52,7 @@ export declare const list: ((input?: {
52
52
  readonly isActive: boolean;
53
53
  readonly createdAt: string;
54
54
  readonly updatedAt: string;
55
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
55
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
56
56
  };
57
57
  export declare const create: (input: {
58
58
  readonly name: string;
@@ -89,10 +89,10 @@ export declare const create: (input: {
89
89
  readonly icon?: string | null | undefined;
90
90
  readonly parentGroupId?: string | null | undefined;
91
91
  readonly isActive?: boolean | null | undefined;
92
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsCreate">;
92
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsCreate">;
93
93
  export declare const getById: (input: {
94
94
  readonly id: string;
95
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsGetById">;
95
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsGetById">;
96
96
  export declare const update: (input: {
97
97
  readonly id: string;
98
98
  readonly name?: string | null | undefined;
@@ -129,24 +129,24 @@ export declare const update: (input: {
129
129
  readonly icon?: string | null | undefined;
130
130
  readonly parentGroupId?: string | null | undefined;
131
131
  readonly isActive?: boolean | null | undefined;
132
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsUpdate">;
132
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsUpdate">;
133
133
  export declare const remove: (input: {
134
134
  readonly id: string;
135
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsRemove">;
135
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsRemove">;
136
136
  export declare const addMembers: (input: {
137
137
  readonly id: string;
138
138
  readonly contactIds: readonly string[];
139
139
  readonly role?: "admin" | "member" | "moderator" | null | undefined;
140
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsAddMembers">;
140
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsAddMembers">;
141
141
  export declare const removeMembers: (input: {
142
142
  readonly id: string;
143
143
  readonly contactIds: readonly string[];
144
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsRemoveMembers">;
144
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsRemoveMembers">;
145
145
  export declare const getMembers: ((input: {
146
146
  readonly id: string;
147
147
  readonly limit?: number | null | undefined;
148
148
  readonly cursor?: string | undefined;
149
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsGetMembers">) & {
149
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsGetMembers">) & {
150
150
  readonly pages: (input: {
151
151
  readonly id: string;
152
152
  readonly limit?: number | null | undefined;
@@ -179,7 +179,7 @@ export declare const getMembers: ((input: {
179
179
  readonly source: string;
180
180
  readonly capturedAt: string;
181
181
  readonly proof: {
182
- readonly [x: string]: import("./generated").JsonValue;
182
+ readonly [x: string]: import("./generated/index.js").JsonValue;
183
183
  } | null;
184
184
  } | null;
185
185
  }[];
@@ -187,7 +187,7 @@ export declare const getMembers: ((input: {
187
187
  } | null;
188
188
  }[];
189
189
  readonly nextCursor: string | null;
190
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
190
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
191
191
  readonly items: (input: {
192
192
  readonly id: string;
193
193
  readonly limit?: number | null | undefined;
@@ -219,17 +219,17 @@ export declare const getMembers: ((input: {
219
219
  readonly source: string;
220
220
  readonly capturedAt: string;
221
221
  readonly proof: {
222
- readonly [x: string]: import("./generated").JsonValue;
222
+ readonly [x: string]: import("./generated/index.js").JsonValue;
223
223
  } | null;
224
224
  } | null;
225
225
  }[];
226
226
  }[] | null;
227
227
  } | null;
228
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
228
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
229
229
  };
230
230
  export declare const evaluateDynamic: (input: {
231
231
  readonly id: string;
232
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsEvaluateDynamic">;
232
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsEvaluateDynamic">;
233
233
  export declare const preview: (input: {
234
234
  readonly criteria: {
235
235
  readonly tags?: readonly string[] | null | undefined;
@@ -263,4 +263,4 @@ export declare const preview: (input: {
263
263
  } | null;
264
264
  }[] | null | undefined;
265
265
  };
266
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactGroupsPreview">;
266
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactGroupsPreview">;
@@ -1,5 +1,6 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { forGroup } from "./internal/operation.js";
3
+ import { contactGroupsOperations } from "./descriptors/contact-groups.js";
3
4
  import { ContactGroupsGroup } from "./generated/contact-groups.js";
4
5
  // src/effect/contact-groups.ts
5
6
  var contact_groups_exports = /* @__PURE__ */ __exportAll({
@@ -14,7 +15,7 @@ var contact_groups_exports = /* @__PURE__ */ __exportAll({
14
15
  removeMembers: () => removeMembers,
15
16
  update: () => update
16
17
  });
17
- const make = /* @__PURE__ */ forGroup(ContactGroupsGroup);
18
+ const make = /* @__PURE__ */ forGroup(ContactGroupsGroup, contactGroupsOperations);
18
19
  const list = /* @__PURE__ */ make("contactGroupsList");
19
20
  const create = /* @__PURE__ */ make("contactGroupsCreate");
20
21
  const getById = /* @__PURE__ */ make("contactGroupsGetById");
@@ -9,7 +9,7 @@ export declare const list: ((input?: {
9
9
  readonly customFieldValue?: string | undefined;
10
10
  readonly after?: string | undefined;
11
11
  readonly before?: string | undefined;
12
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsList">) & {
12
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsList">) & {
13
13
  readonly pages: (input?: {
14
14
  readonly limit?: number | null | undefined;
15
15
  readonly cursor?: string | undefined;
@@ -43,7 +43,7 @@ export declare const list: ((input?: {
43
43
  readonly createdAt: string;
44
44
  }[];
45
45
  readonly nextCursor: string | null;
46
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
46
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
47
47
  readonly items: (input?: {
48
48
  readonly limit?: number | null | undefined;
49
49
  readonly cursor?: string | undefined;
@@ -74,7 +74,7 @@ export declare const list: ((input?: {
74
74
  } | null;
75
75
  readonly lastActiveAt: string | null;
76
76
  readonly createdAt: string;
77
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
77
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
78
78
  };
79
79
  export declare const create: (input: {
80
80
  readonly namespaceId?: string | null | undefined;
@@ -147,13 +147,13 @@ export declare const create: (input: {
147
147
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
148
148
  } | null | undefined;
149
149
  } | null | undefined;
150
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsCreate">;
150
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsCreate">;
151
151
  export declare const find: (input?: {
152
152
  readonly namespaceId?: string | null | undefined;
153
153
  readonly email?: string | null | undefined;
154
154
  readonly phone?: string | null | undefined;
155
155
  readonly externalId?: string | null | undefined;
156
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsFind">;
156
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsFind">;
157
157
  export declare const findOrCreate: (input: {
158
158
  readonly namespaceId?: string | null | undefined;
159
159
  readonly lookup: {
@@ -193,10 +193,10 @@ export declare const findOrCreate: (input: {
193
193
  } | null | undefined;
194
194
  readonly externalId?: string | null | undefined;
195
195
  } | null | undefined;
196
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsFindOrCreate">;
196
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsFindOrCreate">;
197
197
  export declare const get: (input: {
198
198
  readonly id: string;
199
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGet">;
199
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsGet">;
200
200
  export declare const update: (input: {
201
201
  readonly id: string;
202
202
  readonly name?: string | null | undefined;
@@ -261,20 +261,20 @@ export declare const update: (input: {
261
261
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
262
262
  } | null | undefined;
263
263
  } | null | undefined;
264
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsUpdate">;
264
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsUpdate">;
265
265
  export declare const remove: (input: {
266
266
  readonly id: string;
267
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsRemove">;
267
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsRemove">;
268
268
  export declare const addIdentity: (input: {
269
269
  readonly id: string;
270
270
  readonly type: "email" | "phone";
271
271
  readonly identifier: string;
272
272
  readonly verified?: boolean | null | undefined;
273
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsAddIdentity">;
273
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsAddIdentity">;
274
274
  export declare const removeIdentity: (input: {
275
275
  readonly id: string;
276
276
  readonly identityId: string;
277
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsRemoveIdentity">;
277
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsRemoveIdentity">;
278
278
  export declare const setConsent: (input: {
279
279
  readonly id: string;
280
280
  readonly identityId: string;
@@ -309,18 +309,18 @@ export declare const setConsent: (input: {
309
309
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
310
310
  } | null | undefined;
311
311
  } | null | undefined;
312
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsSetConsent">;
312
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsSetConsent">;
313
313
  export declare const addTags: (input: {
314
314
  readonly id: string;
315
315
  readonly tags: readonly string[];
316
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsAddTags">;
316
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsAddTags">;
317
317
  export declare const removeTags: (input: {
318
318
  readonly id: string;
319
319
  readonly tags: readonly string[];
320
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsRemoveTags">;
320
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsRemoveTags">;
321
321
  export declare const getEngagement: (input: {
322
322
  readonly id: string;
323
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetEngagement">;
323
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsGetEngagement">;
324
324
  export declare const planImport: (input: {
325
325
  readonly preset: "beehiiv" | "kit" | "mailchimp" | "substack";
326
326
  readonly topicId: string;
@@ -344,7 +344,7 @@ export declare const planImport: (input: {
344
344
  readonly scope: "cleaned/bounced" | "subscribed" | "suppressed" | "unsubscribed";
345
345
  } | null | undefined;
346
346
  })[];
347
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsPlanImport">;
347
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsPlanImport">;
348
348
  export declare const startImport: (input: {
349
349
  readonly mode: "new";
350
350
  readonly input: {
@@ -376,22 +376,22 @@ export declare const startImport: (input: {
376
376
  readonly mode: "resume";
377
377
  readonly jobId: string;
378
378
  readonly expectedGeneration: number;
379
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsStartImport">;
379
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsStartImport">;
380
380
  export declare const getImportJob: (input: {
381
381
  readonly id: string;
382
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetImportJob">;
382
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsGetImportJob">;
383
383
  export declare const bulkDelete: (input: {
384
384
  readonly ids: readonly string[];
385
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsBulkDelete">;
385
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsBulkDelete">;
386
386
  export declare const bulkUpdateTags: (input: {
387
387
  readonly ids: readonly string[];
388
388
  readonly operation: "add" | "remove" | "set";
389
389
  readonly tags: readonly string[];
390
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsBulkUpdateTags">;
390
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsBulkUpdateTags">;
391
391
  export declare const bulkUpdateStatus: (input: {
392
392
  readonly ids: readonly string[];
393
393
  readonly status: "active" | "archived" | "blocked" | "paused";
394
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsBulkUpdateStatus">;
394
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsBulkUpdateStatus">;
395
395
  declare const exportContacts: (input?: {
396
396
  readonly ids?: readonly string[] | null | undefined;
397
397
  readonly format?: "csv" | "json" | null | undefined;
@@ -400,14 +400,14 @@ declare const exportContacts: (input?: {
400
400
  readonly tags?: readonly string[] | null | undefined;
401
401
  } | null | undefined;
402
402
  readonly fields?: readonly string[] | null | undefined;
403
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsExport">;
403
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsExport">;
404
404
  export { exportContacts as export };
405
405
  export declare const getActivityTimeline: ((input: {
406
406
  readonly id: string;
407
407
  readonly limit?: number | null | undefined;
408
408
  readonly cursor?: string | undefined;
409
409
  readonly channel?: "email" | "sms" | "whatsapp" | undefined;
410
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetActivityTimeline">) & {
410
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsGetActivityTimeline">) & {
411
411
  readonly pages: (input: {
412
412
  readonly id: string;
413
413
  readonly limit?: number | null | undefined;
@@ -425,7 +425,7 @@ export declare const getActivityTimeline: ((input: {
425
425
  readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
426
426
  }[];
427
427
  readonly nextCursor: string | null;
428
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
428
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
429
429
  readonly items: (input: {
430
430
  readonly id: string;
431
431
  readonly limit?: number | null | undefined;
@@ -440,13 +440,13 @@ export declare const getActivityTimeline: ((input: {
440
440
  readonly snippet: string | null;
441
441
  readonly createdAt: string;
442
442
  readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
443
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
443
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
444
444
  };
445
445
  export declare const getGroupMemberships: ((input: {
446
446
  readonly id: string;
447
447
  readonly limit?: number | null | undefined;
448
448
  readonly cursor?: string | undefined;
449
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsGetGroupMemberships">) & {
449
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactsGetGroupMemberships">) & {
450
450
  readonly pages: (input: {
451
451
  readonly id: string;
452
452
  readonly limit?: number | null | undefined;
@@ -461,7 +461,7 @@ export declare const getGroupMemberships: ((input: {
461
461
  readonly joinedAt: string;
462
462
  }[];
463
463
  readonly nextCursor: string | null;
464
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
464
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
465
465
  readonly items: (input: {
466
466
  readonly id: string;
467
467
  readonly limit?: number | null | undefined;
@@ -473,13 +473,13 @@ export declare const getGroupMemberships: ((input: {
473
473
  readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
474
474
  readonly role: string;
475
475
  readonly joinedAt: string;
476
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
476
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
477
477
  };
478
478
  export declare const listEvents: ((input: {
479
479
  readonly id: string;
480
480
  readonly limit?: number | null | undefined;
481
481
  readonly cursor?: string | undefined;
482
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactEventsListEvents">) & {
482
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"contactEventsListEvents">) & {
483
483
  readonly pages: (input: {
484
484
  readonly id: string;
485
485
  readonly limit?: number | null | undefined;
@@ -491,13 +491,13 @@ export declare const listEvents: ((input: {
491
491
  readonly name: string;
492
492
  readonly source: "api" | "samva";
493
493
  readonly properties: {
494
- readonly [x: string]: import("./generated").JsonValue;
494
+ readonly [x: string]: import("./generated/index.js").JsonValue;
495
495
  };
496
496
  readonly occurredAt: string;
497
497
  readonly recordedAt: string;
498
498
  }[];
499
499
  readonly nextCursor: string | null;
500
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
500
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
501
501
  readonly items: (input: {
502
502
  readonly id: string;
503
503
  readonly limit?: number | null | undefined;
@@ -508,9 +508,9 @@ export declare const listEvents: ((input: {
508
508
  readonly name: string;
509
509
  readonly source: "api" | "samva";
510
510
  readonly properties: {
511
- readonly [x: string]: import("./generated").JsonValue;
511
+ readonly [x: string]: import("./generated/index.js").JsonValue;
512
512
  };
513
513
  readonly occurredAt: string;
514
514
  readonly recordedAt: string;
515
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
515
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
516
516
  };
@@ -1,5 +1,6 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { forGroup } from "./internal/operation.js";
3
+ import { contactsOperations } from "./descriptors/contacts.js";
3
4
  import { ContactEventsGroup } from "./generated/contact-events.js";
4
5
  import { ContactsGroup } from "./generated/contacts.js";
5
6
  // src/effect/contacts.ts
@@ -28,7 +29,7 @@ var contacts_exports = /* @__PURE__ */ __exportAll({
28
29
  startImport: () => startImport,
29
30
  update: () => update
30
31
  });
31
- const make = /* @__PURE__ */ forGroup(ContactsGroup);
32
+ const make = /* @__PURE__ */ forGroup(ContactsGroup, contactsOperations);
32
33
  const list = /* @__PURE__ */ make("contactsList");
33
34
  const create = /* @__PURE__ */ make("contactsCreate");
34
35
  const find = /* @__PURE__ */ make("contactsFind");
@@ -51,7 +52,7 @@ const bulkUpdateStatus = /* @__PURE__ */ make("contactsBulkUpdateStatus");
51
52
  const exportContacts = /* @__PURE__ */ make("contactsExport");
52
53
  const getActivityTimeline = /* @__PURE__ */ make("contactsGetActivityTimeline");
53
54
  const getGroupMemberships = /* @__PURE__ */ make("contactsGetGroupMemberships");
54
- const listEvents = /* @__PURE__ */ forGroup(ContactEventsGroup)("contactEventsListEvents");
55
+ const listEvents = /* @__PURE__ */ forGroup(ContactEventsGroup, contactsOperations)("contactEventsListEvents");
55
56
  export { addIdentity, addTags, bulkDelete, bulkUpdateStatus, bulkUpdateTags, contacts_exports, create, exportContacts as export, find, findOrCreate, get, getActivityTimeline, getEngagement, getGroupMemberships, getImportJob, list, listEvents, planImport, remove, removeIdentity, removeTags, setConsent, startImport, update };
56
57
 
57
58
  //# sourceMappingURL=contacts.js.map
@@ -8,7 +8,7 @@ export declare const list: ((input?: {
8
8
  readonly mailboxId?: string | undefined;
9
9
  readonly after?: string | undefined;
10
10
  readonly before?: string | undefined;
11
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsList">) & {
11
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsList">) & {
12
12
  readonly pages: (input?: {
13
13
  readonly limit?: number | null | undefined;
14
14
  readonly cursor?: string | undefined;
@@ -37,7 +37,7 @@ export declare const list: ((input?: {
37
37
  readonly createdAt: string;
38
38
  }[];
39
39
  readonly nextCursor: string | null;
40
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
40
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
41
41
  readonly items: (input?: {
42
42
  readonly limit?: number | null | undefined;
43
43
  readonly cursor?: string | undefined;
@@ -63,7 +63,7 @@ export declare const list: ((input?: {
63
63
  readonly messageCount: number;
64
64
  readonly lastActivityAt: string;
65
65
  readonly createdAt: string;
66
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
66
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
67
67
  };
68
68
  export declare const create: (input: {
69
69
  readonly namespaceId?: string | null | undefined;
@@ -199,10 +199,10 @@ export declare const create: (input: {
199
199
  readonly isTest?: boolean | null | undefined;
200
200
  readonly isInternal?: boolean | null | undefined;
201
201
  readonly isPrivate?: boolean | null | undefined;
202
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsCreate">;
202
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsCreate">;
203
203
  export declare const getById: (input: {
204
204
  readonly id: string;
205
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsGetById">;
205
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsGetById">;
206
206
  export declare const update: (input: {
207
207
  readonly id: string;
208
208
  readonly title?: string | null | undefined;
@@ -334,14 +334,14 @@ export declare const update: (input: {
334
334
  readonly isTest?: boolean | null | undefined;
335
335
  readonly isInternal?: boolean | null | undefined;
336
336
  readonly isPrivate?: boolean | null | undefined;
337
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsUpdate">;
337
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsUpdate">;
338
338
  export declare const listMessages: ((input: {
339
339
  readonly id: string;
340
340
  readonly limit?: number | null | undefined;
341
341
  readonly cursor?: string | undefined;
342
342
  readonly after?: string | undefined;
343
343
  readonly before?: string | undefined;
344
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsListMessages">) & {
344
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsListMessages">) & {
345
345
  readonly pages: (input: {
346
346
  readonly id: string;
347
347
  readonly limit?: number | null | undefined;
@@ -365,7 +365,7 @@ export declare const listMessages: ((input: {
365
365
  readonly createdAt: string;
366
366
  }[];
367
367
  readonly nextCursor: string | null;
368
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
368
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
369
369
  readonly items: (input: {
370
370
  readonly id: string;
371
371
  readonly limit?: number | null | undefined;
@@ -386,37 +386,37 @@ export declare const listMessages: ((input: {
386
386
  readonly subject: string | null;
387
387
  readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
388
388
  readonly createdAt: string;
389
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
389
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
390
390
  };
391
391
  export declare const addTags: (input: {
392
392
  readonly id: string;
393
393
  readonly tags: readonly string[];
394
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddTags">;
394
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsAddTags">;
395
395
  export declare const removeTags: (input: {
396
396
  readonly id: string;
397
397
  readonly tags: readonly string[];
398
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveTags">;
398
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsRemoveTags">;
399
399
  export declare const addCategories: (input: {
400
400
  readonly id: string;
401
401
  readonly categories: readonly string[];
402
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddCategories">;
402
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsAddCategories">;
403
403
  export declare const removeCategories: (input: {
404
404
  readonly id: string;
405
405
  readonly categories: readonly string[];
406
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveCategories">;
406
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsRemoveCategories">;
407
407
  export declare const addChannels: (input: {
408
408
  readonly id: string;
409
409
  readonly channels: readonly ("email" | "sms" | "whatsapp")[];
410
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddChannels">;
410
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsAddChannels">;
411
411
  export declare const removeChannels: (input: {
412
412
  readonly id: string;
413
413
  readonly channels: readonly ("email" | "sms" | "whatsapp")[];
414
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveChannels">;
414
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsRemoveChannels">;
415
415
  export declare const addContacts: (input: {
416
416
  readonly id: string;
417
417
  readonly contactIds: readonly string[];
418
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddContacts">;
418
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsAddContacts">;
419
419
  export declare const removeContacts: (input: {
420
420
  readonly id: string;
421
421
  readonly contactIds: readonly string[];
422
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveContacts">;
422
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsRemoveContacts">;
@@ -1,5 +1,6 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { forGroup } from "./internal/operation.js";
3
+ import { conversationsOperations } from "./descriptors/conversations.js";
3
4
  import { ConversationsGroup } from "./generated/conversations.js";
4
5
  // src/effect/conversations.ts
5
6
  var conversations_exports = /* @__PURE__ */ __exportAll({
@@ -17,7 +18,7 @@ var conversations_exports = /* @__PURE__ */ __exportAll({
17
18
  removeTags: () => removeTags,
18
19
  update: () => update
19
20
  });
20
- const make = /* @__PURE__ */ forGroup(ConversationsGroup);
21
+ const make = /* @__PURE__ */ forGroup(ConversationsGroup, conversationsOperations);
21
22
  const list = /* @__PURE__ */ make("conversationsList");
22
23
  const create = /* @__PURE__ */ make("conversationsCreate");
23
24
  const getById = /* @__PURE__ */ make("conversationsGetById");