samva 0.46.0 → 0.47.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 (276) hide show
  1. package/AGENTS.md +13 -7
  2. package/README.md +107 -9
  3. package/dist/agent/index.d.ts +56 -0
  4. package/dist/agent/index.js +52 -0
  5. package/dist/agent/runtime.d.ts +3 -0
  6. package/dist/agent/runtime.js +74 -0
  7. package/dist/agent/test.d.ts +31 -0
  8. package/dist/agent/test.js +66 -0
  9. package/dist/agent/types.d.ts +123 -0
  10. package/dist/client/client/client.gen.d.ts +1 -1
  11. package/dist/client/client/index.d.ts +10 -10
  12. package/dist/client/client/types.gen.d.ts +4 -4
  13. package/dist/client/client/utils.gen.d.ts +2 -2
  14. package/dist/client/client.gen.d.ts +2 -2
  15. package/dist/client/core/bodySerializer.gen.d.ts +1 -1
  16. package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
  17. package/dist/client/core/types.gen.d.ts +2 -2
  18. package/dist/client/core/utils.gen.d.ts +1 -1
  19. package/dist/client/sdk.gen.d.ts +41 -161
  20. package/dist/client/sdk.gen.js +1302 -1598
  21. package/dist/client/types.gen.d.ts +377 -966
  22. package/dist/effect/accounts.d.ts +6 -6
  23. package/dist/effect/accounts.js +2 -1
  24. package/dist/effect/agents.d.ts +355 -23
  25. package/dist/effect/agents.js +6 -3
  26. package/dist/effect/analytics.d.ts +6 -6
  27. package/dist/effect/analytics.js +2 -1
  28. package/dist/effect/api-keys.d.ts +13 -13
  29. package/dist/effect/api-keys.js +2 -1
  30. package/dist/effect/approval-requests.d.ts +4 -4
  31. package/dist/effect/approval-requests.js +2 -1
  32. package/dist/effect/attachments.d.ts +4 -4
  33. package/dist/effect/attachments.js +2 -1
  34. package/dist/effect/brands.d.ts +7 -7
  35. package/dist/effect/brands.js +2 -1
  36. package/dist/effect/campaigns.d.ts +205 -205
  37. package/dist/effect/campaigns.js +2 -1
  38. package/dist/effect/categories.d.ts +3 -3
  39. package/dist/effect/client.d.ts +1 -1
  40. package/dist/effect/contact-groups.d.ts +18 -18
  41. package/dist/effect/contact-groups.js +2 -1
  42. package/dist/effect/contacts.d.ts +41 -33
  43. package/dist/effect/contacts.js +8 -3
  44. package/dist/effect/conversations.d.ts +17 -17
  45. package/dist/effect/conversations.js +2 -1
  46. package/dist/effect/custom-fields.d.ts +4 -4
  47. package/dist/effect/custom-fields.js +2 -1
  48. package/dist/effect/descriptors/accounts.d.ts +59 -0
  49. package/dist/effect/descriptors/accounts.js +57 -0
  50. package/dist/effect/descriptors/agents.d.ts +129 -0
  51. package/dist/effect/descriptors/agents.js +127 -0
  52. package/dist/effect/descriptors/analytics.d.ts +56 -0
  53. package/dist/effect/descriptors/analytics.js +48 -0
  54. package/dist/effect/descriptors/api-keys.d.ts +80 -0
  55. package/dist/effect/descriptors/api-keys.js +80 -0
  56. package/dist/effect/descriptors/approval-requests.d.ts +41 -0
  57. package/dist/effect/descriptors/approval-requests.js +43 -0
  58. package/dist/effect/descriptors/attachments.d.ts +41 -0
  59. package/dist/effect/descriptors/attachments.js +43 -0
  60. package/dist/effect/descriptors/brands.d.ts +60 -0
  61. package/dist/effect/descriptors/brands.js +60 -0
  62. package/dist/effect/descriptors/campaigns.d.ts +148 -0
  63. package/dist/effect/descriptors/campaigns.js +144 -0
  64. package/dist/effect/descriptors/contact-groups.d.ts +99 -0
  65. package/dist/effect/descriptors/contact-groups.js +97 -0
  66. package/dist/effect/descriptors/contacts.d.ts +246 -0
  67. package/dist/effect/descriptors/contacts.js +234 -0
  68. package/dist/effect/descriptors/conversations.d.ts +130 -0
  69. package/dist/effect/descriptors/conversations.js +130 -0
  70. package/dist/effect/descriptors/custom-fields.d.ts +40 -0
  71. package/dist/effect/descriptors/custom-fields.js +40 -0
  72. package/dist/effect/descriptors/email.d.ts +607 -0
  73. package/dist/effect/descriptors/email.js +561 -0
  74. package/dist/effect/descriptors/events.d.ts +20 -0
  75. package/dist/effect/descriptors/events.js +20 -0
  76. package/dist/effect/descriptors/feedback.d.ts +11 -0
  77. package/dist/effect/descriptors/feedback.js +11 -0
  78. package/dist/effect/descriptors/integrations-catalog.d.ts +29 -0
  79. package/dist/effect/descriptors/integrations-catalog.js +27 -0
  80. package/dist/effect/descriptors/integrations.d.ts +70 -0
  81. package/dist/effect/descriptors/integrations.js +70 -0
  82. package/dist/effect/descriptors/journeys.d.ts +140 -0
  83. package/dist/effect/descriptors/journeys.js +140 -0
  84. package/dist/effect/descriptors/mailboxes.d.ts +724 -0
  85. package/dist/effect/descriptors/mailboxes.js +728 -0
  86. package/dist/effect/descriptors/media.d.ts +51 -0
  87. package/dist/effect/descriptors/media.js +53 -0
  88. package/dist/effect/descriptors/messages.d.ts +99 -0
  89. package/dist/effect/descriptors/messages.js +97 -0
  90. package/dist/effect/descriptors/namespaces.d.ts +110 -0
  91. package/dist/effect/descriptors/namespaces.js +114 -0
  92. package/dist/effect/descriptors/newsletter-domains.d.ts +42 -0
  93. package/dist/effect/descriptors/newsletter-domains.js +46 -0
  94. package/dist/effect/descriptors/newsletter-issues.d.ts +112 -0
  95. package/dist/effect/descriptors/newsletter-issues.js +116 -0
  96. package/dist/effect/descriptors/newsletters.d.ts +51 -0
  97. package/dist/effect/descriptors/newsletters.js +53 -0
  98. package/dist/effect/descriptors/operations.d.ts +31 -0
  99. package/dist/effect/descriptors/operations.js +33 -0
  100. package/dist/effect/descriptors/organizations.d.ts +111 -0
  101. package/dist/effect/descriptors/organizations.js +93 -0
  102. package/dist/effect/descriptors/policies.d.ts +32 -0
  103. package/dist/effect/descriptors/policies.js +36 -0
  104. package/dist/effect/descriptors/scheduled-messages.d.ts +50 -0
  105. package/dist/effect/descriptors/scheduled-messages.js +50 -0
  106. package/dist/effect/descriptors/subscriptions.d.ts +11 -0
  107. package/dist/effect/descriptors/subscriptions.js +11 -0
  108. package/dist/effect/descriptors/template-registrations.d.ts +32 -0
  109. package/dist/effect/descriptors/template-registrations.js +36 -0
  110. package/dist/effect/descriptors/template-share-links.d.ts +52 -0
  111. package/dist/effect/descriptors/template-share-links.js +56 -0
  112. package/dist/effect/descriptors/templates.d.ts +365 -0
  113. package/dist/effect/descriptors/templates.js +355 -0
  114. package/dist/effect/descriptors/topic-forms.d.ts +52 -0
  115. package/dist/effect/descriptors/topic-forms.js +56 -0
  116. package/dist/effect/descriptors/topics.d.ts +89 -0
  117. package/dist/effect/descriptors/topics.js +87 -0
  118. package/dist/effect/descriptors/webhooks.d.ts +110 -0
  119. package/dist/effect/descriptors/webhooks.js +110 -0
  120. package/dist/effect/descriptors/whats-app-flows.d.ts +99 -0
  121. package/dist/effect/descriptors/whats-app-flows.js +97 -0
  122. package/dist/effect/descriptors/whats-app-setup-links.d.ts +40 -0
  123. package/dist/effect/descriptors/whats-app-setup-links.js +40 -0
  124. package/dist/effect/descriptors/whats-app.d.ts +116 -0
  125. package/dist/effect/descriptors/whats-app.js +108 -0
  126. package/dist/effect/descriptors/whoami.d.ts +11 -0
  127. package/dist/effect/descriptors/whoami.js +11 -0
  128. package/dist/effect/email.d.ts +78 -78
  129. package/dist/effect/email.js +2 -1
  130. package/dist/effect/errors.d.ts +2 -2
  131. package/dist/effect/events.d.ts +3 -3
  132. package/dist/effect/events.js +2 -1
  133. package/dist/effect/feedback.d.ts +2 -2
  134. package/dist/effect/feedback.js +2 -1
  135. package/dist/effect/generated/accounts.d.ts +19 -9
  136. package/dist/effect/generated/accounts.js +1 -0
  137. package/dist/effect/generated/agents.d.ts +2967 -690
  138. package/dist/effect/generated/agents.js +54 -13
  139. package/dist/effect/generated/analytics.d.ts +1 -1
  140. package/dist/effect/generated/api-keys.d.ts +1 -1
  141. package/dist/effect/generated/approval-requests.d.ts +13 -13
  142. package/dist/effect/generated/attachments.d.ts +1 -1
  143. package/dist/effect/generated/brands.d.ts +1 -1
  144. package/dist/effect/generated/campaigns.d.ts +230 -230
  145. package/dist/effect/generated/contact-events.d.ts +4 -4
  146. package/dist/effect/generated/contact-groups.d.ts +1 -1
  147. package/dist/effect/generated/contacts.d.ts +907 -49
  148. package/dist/effect/generated/contacts.js +62 -3
  149. package/dist/effect/generated/conversations.d.ts +1 -1
  150. package/dist/effect/generated/custom-fields.d.ts +1 -1
  151. package/dist/effect/generated/email.d.ts +1 -1
  152. package/dist/effect/generated/events.d.ts +12 -12
  153. package/dist/effect/generated/feedback.d.ts +1 -1
  154. package/dist/effect/generated/index.d.ts +84 -88
  155. package/dist/effect/generated/integrations-catalog.d.ts +3 -3
  156. package/dist/effect/generated/integrations.d.ts +15 -15
  157. package/dist/effect/generated/journeys.d.ts +336 -96
  158. package/dist/effect/generated/journeys.js +3 -1
  159. package/dist/effect/generated/mailboxes.d.ts +93 -95
  160. package/dist/effect/generated/mailboxes.js +21 -25
  161. package/dist/effect/generated/media.d.ts +1 -1
  162. package/dist/effect/generated/messages.d.ts +1 -1
  163. package/dist/effect/generated/namespaces.d.ts +1 -1
  164. package/dist/effect/generated/newsletter-domains.d.ts +1 -1
  165. package/dist/effect/generated/newsletter-issues.d.ts +1 -1
  166. package/dist/effect/generated/newsletters.d.ts +1 -1
  167. package/dist/effect/generated/operations.d.ts +1 -1
  168. package/dist/effect/generated/organizations.d.ts +1 -1
  169. package/dist/effect/generated/policies.d.ts +1 -1
  170. package/dist/effect/generated/scheduled-messages.d.ts +147 -147
  171. package/dist/effect/generated/shared.d.ts +408 -102
  172. package/dist/effect/generated/shared.js +80 -36
  173. package/dist/effect/generated/subscriptions.d.ts +1 -1
  174. package/dist/effect/generated/template-registrations.d.ts +1 -4
  175. package/dist/effect/generated/template-registrations.js +2 -6
  176. package/dist/effect/generated/template-share-links.d.ts +1 -1
  177. package/dist/effect/generated/templates.d.ts +1 -1
  178. package/dist/effect/generated/topic-forms.d.ts +1 -1
  179. package/dist/effect/generated/topics.d.ts +1 -1
  180. package/dist/effect/generated/webhooks.d.ts +1 -1
  181. package/dist/effect/generated/whats-app-flows.d.ts +1 -1
  182. package/dist/effect/generated/whats-app-setup-links.d.ts +1 -1
  183. package/dist/effect/generated/whats-app.d.ts +1 -1
  184. package/dist/effect/generated/whoami.d.ts +1 -1
  185. package/dist/effect/generated-metadata.d.ts +18 -84
  186. package/dist/effect/generated-metadata.js +362 -415
  187. package/dist/effect/index.d.ts +45 -47
  188. package/dist/effect/index.js +1 -3
  189. package/dist/effect/integrations-catalog.d.ts +3 -3
  190. package/dist/effect/integrations-catalog.js +2 -1
  191. package/dist/effect/integrations.d.ts +11 -11
  192. package/dist/effect/integrations.js +2 -1
  193. package/dist/effect/internal/client.d.ts +3 -3
  194. package/dist/effect/internal/client.js +1 -1
  195. package/dist/effect/internal/email-sender.d.ts +4 -4
  196. package/dist/effect/internal/mailbox-events.d.ts +2 -2
  197. package/dist/effect/internal/operation.d.ts +24 -5
  198. package/dist/effect/internal/operation.js +25 -22
  199. package/dist/effect/internal/send.d.ts +4 -4
  200. package/dist/effect/journeys.d.ts +46 -22
  201. package/dist/effect/journeys.js +2 -1
  202. package/dist/effect/mailboxes.d.ts +163 -163
  203. package/dist/effect/mailboxes.js +2 -1
  204. package/dist/effect/media.d.ts +5 -5
  205. package/dist/effect/media.js +2 -1
  206. package/dist/effect/messages.d.ts +17 -17
  207. package/dist/effect/messages.js +2 -1
  208. package/dist/effect/namespaces.d.ts +15 -15
  209. package/dist/effect/namespaces.js +2 -1
  210. package/dist/effect/newsletter-domains.d.ts +6 -6
  211. package/dist/effect/newsletter-domains.js +2 -1
  212. package/dist/effect/newsletter-issues.d.ts +11 -11
  213. package/dist/effect/newsletter-issues.js +2 -1
  214. package/dist/effect/newsletters.d.ts +5 -5
  215. package/dist/effect/newsletters.js +2 -1
  216. package/dist/effect/operations.d.ts +5 -5
  217. package/dist/effect/operations.js +2 -1
  218. package/dist/effect/organizations.d.ts +12 -12
  219. package/dist/effect/organizations.js +2 -1
  220. package/dist/effect/policies.d.ts +3 -3
  221. package/dist/effect/policies.js +2 -1
  222. package/dist/effect/scheduled-messages.d.ts +371 -371
  223. package/dist/effect/scheduled-messages.js +2 -1
  224. package/dist/effect/subscriptions.d.ts +1 -1
  225. package/dist/effect/subscriptions.js +2 -1
  226. package/dist/effect/template-registrations.d.ts +3 -3
  227. package/dist/effect/template-registrations.js +2 -1
  228. package/dist/effect/template-share-links.d.ts +5 -5
  229. package/dist/effect/template-share-links.js +2 -1
  230. package/dist/effect/templates.d.ts +46 -46
  231. package/dist/effect/templates.js +2 -1
  232. package/dist/effect/topic-forms.d.ts +5 -5
  233. package/dist/effect/topic-forms.js +2 -1
  234. package/dist/effect/topics.d.ts +13 -13
  235. package/dist/effect/topics.js +2 -1
  236. package/dist/effect/webhooks.d.ts +16 -16
  237. package/dist/effect/webhooks.js +2 -1
  238. package/dist/effect/whatsapp-flows.d.ts +10 -10
  239. package/dist/effect/whatsapp-flows.js +2 -1
  240. package/dist/effect/whatsapp-setup-links.d.ts +6 -6
  241. package/dist/effect/whatsapp-setup-links.js +2 -1
  242. package/dist/effect/whatsapp.d.ts +12 -12
  243. package/dist/effect/whatsapp.js +2 -1
  244. package/dist/effect/whoami.d.ts +1 -1
  245. package/dist/effect/whoami.js +2 -1
  246. package/dist/index.d.ts +1 -1
  247. package/dist/package.js +1 -1
  248. package/dist/promises/client.d.ts +10 -14
  249. package/dist/promises/client.js +3 -7
  250. package/dist/promises/errors.gen.d.ts +1 -1
  251. package/dist/promises/index.d.ts +5 -5
  252. package/dist/promises/request.d.ts +2 -2
  253. package/dist/promises/request.js +1 -1
  254. package/dist/promises/types.gen.d.ts +1 -1
  255. package/dist/request-policy.d.ts +10 -2
  256. package/dist/request-policy.js +3 -5
  257. package/dist/service-map.d.ts +18 -75
  258. package/package.json +17 -29
  259. package/dist/effect/extension-installations.d.ts +0 -132
  260. package/dist/effect/extension-installations.js +0 -28
  261. package/dist/effect/extensions.d.ts +0 -102
  262. package/dist/effect/extensions.js +0 -20
  263. package/dist/effect/generated/extension-installations.d.ts +0 -2761
  264. package/dist/effect/generated/extension-installations.js +0 -405
  265. package/dist/effect/generated/extensions.d.ts +0 -1037
  266. package/dist/effect/generated/extensions.js +0 -214
  267. package/dist/mailbox/dispatch.d.ts +0 -10
  268. package/dist/mailbox/dispatch.js +0 -66
  269. package/dist/mailbox/index.d.ts +0 -17
  270. package/dist/mailbox/index.js +0 -30
  271. package/dist/mailbox/test.d.ts +0 -25
  272. package/dist/mailbox/test.js +0 -181
  273. package/dist/mailbox/types.d.ts +0 -221
  274. package/dist/mailbox/webhook.d.ts +0 -10
  275. package/dist/mailbox/webhook.js +0 -41
  276. package/dist/service-map.js +0 -830
@@ -1,4 +1,4 @@
1
- export { CreateWebhookPayload as CreatePayload, TestWebhookPayload as TestPayload, UpdateWebhookPayload as UpdatePayload, } from "./generated/shared";
1
+ export { CreateWebhookPayload as CreatePayload, TestWebhookPayload as TestPayload, UpdateWebhookPayload as UpdatePayload, } from "./generated/shared.js";
2
2
  export declare const create: (input: {
3
3
  readonly name: string;
4
4
  readonly url: string;
@@ -10,14 +10,14 @@ export declare const create: (input: {
10
10
  readonly [x: string]: string | undefined;
11
11
  } | null | undefined;
12
12
  readonly status?: "active" | "disabled" | null | undefined;
13
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksCreate">;
13
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksCreate">;
14
14
  export declare const list: ((input?: {
15
15
  readonly limit?: number | null | undefined;
16
16
  readonly cursor?: string | undefined;
17
17
  readonly namespaceId?: string | undefined;
18
18
  readonly search?: string | undefined;
19
19
  readonly status?: "active" | "disabled" | undefined;
20
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksList">) & {
20
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksList">) & {
21
21
  readonly pages: (input?: {
22
22
  readonly limit?: number | null | undefined;
23
23
  readonly cursor?: string | undefined;
@@ -48,7 +48,7 @@ export declare const list: ((input?: {
48
48
  };
49
49
  }[];
50
50
  readonly nextCursor: string | null;
51
- }, 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>;
51
+ }, 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>;
52
52
  readonly items: (input?: {
53
53
  readonly limit?: number | null | undefined;
54
54
  readonly cursor?: string | undefined;
@@ -76,11 +76,11 @@ export declare const list: ((input?: {
76
76
  readonly exhausted: number;
77
77
  readonly cancelled: number;
78
78
  };
79
- }, 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>;
79
+ }, 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>;
80
80
  };
81
81
  export declare const get: (input: {
82
82
  readonly id: string;
83
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksGet">;
83
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksGet">;
84
84
  export declare const update: (input: {
85
85
  readonly id: string;
86
86
  readonly name?: string | null | undefined;
@@ -93,10 +93,10 @@ export declare const update: (input: {
93
93
  readonly [x: string]: string | undefined;
94
94
  } | null | undefined;
95
95
  readonly status?: "active" | "disabled" | null | undefined;
96
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksUpdate">;
96
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksUpdate">;
97
97
  export declare const remove: (input: {
98
98
  readonly id: string;
99
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksRemove">;
99
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksRemove">;
100
100
  export declare const test: (input: {
101
101
  readonly id: string;
102
102
  readonly data?: {
@@ -126,12 +126,12 @@ export declare const test: (input: {
126
126
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
127
127
  } | null | undefined;
128
128
  } | null | undefined;
129
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksTest">;
129
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksTest">;
130
130
  export declare const getLogs: ((input: {
131
131
  readonly id: string;
132
132
  readonly limit?: number | null | undefined;
133
133
  readonly cursor?: string | undefined;
134
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksGetLogs">) & {
134
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksGetLogs">) & {
135
135
  readonly pages: (input: {
136
136
  readonly id: string;
137
137
  readonly limit?: number | null | undefined;
@@ -168,7 +168,7 @@ export declare const getLogs: ((input: {
168
168
  }[];
169
169
  }[];
170
170
  readonly nextCursor: string | null;
171
- }, 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>;
171
+ }, 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>;
172
172
  readonly items: (input: {
173
173
  readonly id: string;
174
174
  readonly limit?: number | null | undefined;
@@ -202,20 +202,20 @@ export declare const getLogs: ((input: {
202
202
  readonly errorMessage: string | null;
203
203
  readonly createdAt: string;
204
204
  }[];
205
- }, 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>;
205
+ }, 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>;
206
206
  };
207
207
  export declare const getStats: (input: {
208
208
  readonly id: string;
209
209
  readonly after?: string | undefined;
210
210
  readonly before?: string | undefined;
211
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksGetStats">;
211
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksGetStats">;
212
212
  export declare const retryDelivery: (input: {
213
213
  readonly id: string;
214
214
  readonly deliveryId: string;
215
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksRetryDelivery">;
215
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksRetryDelivery">;
216
216
  export declare const regenerateSecret: (input: {
217
217
  readonly id: string;
218
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksRegenerateSecret">;
218
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksRegenerateSecret">;
219
219
  export declare const getSecret: (input: {
220
220
  readonly id: string;
221
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksGetSecret">;
221
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"webhooksGetSecret">;
@@ -1,6 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { CreateWebhookPayload, TestWebhookPayload, UpdateWebhookPayload } from "./generated/shared.js";
3
3
  import { forGroup } from "./internal/operation.js";
4
+ import { webhooksOperations } from "./descriptors/webhooks.js";
4
5
  import { WebhooksGroup } from "./generated/webhooks.js";
5
6
  // src/effect/webhooks.ts
6
7
  var webhooks_exports = /* @__PURE__ */ __exportAll({
@@ -19,7 +20,7 @@ var webhooks_exports = /* @__PURE__ */ __exportAll({
19
20
  test: () => test,
20
21
  update: () => update
21
22
  });
22
- const make = /* @__PURE__ */ forGroup(WebhooksGroup);
23
+ const make = /* @__PURE__ */ forGroup(WebhooksGroup, webhooksOperations);
23
24
  const create = /* @__PURE__ */ make("webhooksCreate");
24
25
  const list = /* @__PURE__ */ make("webhooksList");
25
26
  const get = /* @__PURE__ */ make("webhooksGet");
@@ -2,33 +2,33 @@ export declare const create: (input: {
2
2
  readonly projectId: string;
3
3
  readonly handle: string;
4
4
  readonly categories: readonly ("APPOINTMENT_BOOKING" | "CONTACT_US" | "CUSTOMER_SUPPORT" | "LEAD_GENERATION" | "OTHER" | "SIGN_IN" | "SIGN_UP" | "SURVEY")[];
5
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsCreate">;
6
- export declare const list: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsList">;
5
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsCreate">;
6
+ export declare const list: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsList">;
7
7
  export declare const get: (input: {
8
8
  readonly id: string;
9
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsGet">;
9
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsGet">;
10
10
  export declare const recordVersion: (input: {
11
11
  readonly id: string;
12
12
  readonly commitSha: string;
13
13
  readonly expectedWorkspaceRevision: string;
14
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsRecordVersion">;
14
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsRecordVersion">;
15
15
  export declare const listVersions: (input: {
16
16
  readonly id: string;
17
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsListVersions">;
17
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsListVersions">;
18
18
  export declare const register: (input: {
19
19
  readonly id: string;
20
20
  readonly businessAccountId?: string | undefined;
21
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsRegister">;
21
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsRegister">;
22
22
  export declare const listRegistrations: (input: {
23
23
  readonly id: string;
24
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsListRegistrations">;
24
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsListRegistrations">;
25
25
  export declare const rotateEncryptionKey: (input?: {
26
26
  readonly businessAccountId?: string | undefined;
27
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsRotateEncryptionKey">;
27
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsRotateEncryptionKey">;
28
28
  export declare const setEndpoint: (input: {
29
29
  readonly id: string;
30
30
  readonly url: string;
31
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsSetEndpoint">;
31
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsSetEndpoint">;
32
32
  export declare const rotateEndpointSecret: (input: {
33
33
  readonly id: string;
34
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsRotateEndpointSecret">;
34
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappFlowsRotateEndpointSecret">;
@@ -1,5 +1,6 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { forGroup } from "./internal/operation.js";
3
+ import { whatsappFlowsOperations } from "./descriptors/whats-app-flows.js";
3
4
  import { WhatsAppFlowsGroup } from "./generated/whats-app-flows.js";
4
5
  // src/effect/whatsapp-flows.ts
5
6
  var whatsapp_flows_exports = /* @__PURE__ */ __exportAll({
@@ -14,7 +15,7 @@ var whatsapp_flows_exports = /* @__PURE__ */ __exportAll({
14
15
  rotateEndpointSecret: () => rotateEndpointSecret,
15
16
  setEndpoint: () => setEndpoint
16
17
  });
17
- const make = /* @__PURE__ */ forGroup(WhatsAppFlowsGroup);
18
+ const make = /* @__PURE__ */ forGroup(WhatsAppFlowsGroup, whatsappFlowsOperations);
18
19
  const create = /* @__PURE__ */ make("whatsappFlowsCreate");
19
20
  const list = /* @__PURE__ */ make("whatsappFlowsList");
20
21
  const get = /* @__PURE__ */ make("whatsappFlowsGet");
@@ -5,13 +5,13 @@ export declare const create: (input: {
5
5
  readonly [x: string]: string | undefined;
6
6
  } | null | undefined;
7
7
  readonly expiresAt?: string | null | undefined;
8
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappSetupLinksCreate">;
8
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappSetupLinksCreate">;
9
9
  export declare const list: ((input?: {
10
10
  readonly limit?: number | null | undefined;
11
11
  readonly cursor?: string | undefined;
12
12
  readonly namespaceId?: string | undefined;
13
13
  readonly status?: "completed" | "expired" | "pending" | "revoked" | undefined;
14
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappSetupLinksList">) & {
14
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappSetupLinksList">) & {
15
15
  readonly pages: (input?: {
16
16
  readonly limit?: number | null | undefined;
17
17
  readonly cursor?: string | undefined;
@@ -35,7 +35,7 @@ export declare const list: ((input?: {
35
35
  readonly updatedAt: string;
36
36
  }[];
37
37
  readonly nextCursor: string | null;
38
- }, import("./errors").FlagDisabledError | 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>;
38
+ }, import("./errors.js").FlagDisabledError | 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>;
39
39
  readonly items: (input?: {
40
40
  readonly limit?: number | null | undefined;
41
41
  readonly cursor?: string | undefined;
@@ -56,11 +56,11 @@ export declare const list: ((input?: {
56
56
  readonly revokedAt: string | null;
57
57
  readonly createdAt: string;
58
58
  readonly updatedAt: string;
59
- }, import("./errors").FlagDisabledError | 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>;
59
+ }, import("./errors.js").FlagDisabledError | 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>;
60
60
  };
61
61
  export declare const get: (input: {
62
62
  readonly linkId: string;
63
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappSetupLinksGet">;
63
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappSetupLinksGet">;
64
64
  export declare const revoke: (input: {
65
65
  readonly linkId: string;
66
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappSetupLinksRevoke">;
66
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappSetupLinksRevoke">;
@@ -1,5 +1,6 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { forGroup } from "./internal/operation.js";
3
+ import { whatsappSetupLinksOperations } from "./descriptors/whats-app-setup-links.js";
3
4
  import { WhatsAppSetupLinksGroup } from "./generated/whats-app-setup-links.js";
4
5
  // src/effect/whatsapp-setup-links.ts
5
6
  var whatsapp_setup_links_exports = /* @__PURE__ */ __exportAll({
@@ -8,7 +9,7 @@ var whatsapp_setup_links_exports = /* @__PURE__ */ __exportAll({
8
9
  list: () => list,
9
10
  revoke: () => revoke
10
11
  });
11
- const make = /* @__PURE__ */ forGroup(WhatsAppSetupLinksGroup);
12
+ const make = /* @__PURE__ */ forGroup(WhatsAppSetupLinksGroup, whatsappSetupLinksOperations);
12
13
  const create = /* @__PURE__ */ make("whatsappSetupLinksCreate");
13
14
  const list = /* @__PURE__ */ make("whatsappSetupLinksList");
14
15
  const get = /* @__PURE__ */ make("whatsappSetupLinksGet");
@@ -1,51 +1,51 @@
1
1
  export declare const getStats: (input?: {
2
2
  readonly startDate?: string | undefined;
3
3
  readonly endDate?: string | undefined;
4
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappGetStats">;
4
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappGetStats">;
5
5
  export declare const getTemplateStats: (input?: {
6
6
  readonly startDate?: string | undefined;
7
7
  readonly endDate?: string | undefined;
8
8
  readonly templateId?: string | undefined;
9
9
  readonly campaignId?: string | undefined;
10
10
  readonly journeyId?: string | undefined;
11
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappGetTemplateStats">;
11
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappGetTemplateStats">;
12
12
  export declare const getServiceWindowStatus: (input: {
13
13
  readonly customerPhone: string;
14
14
  readonly businessPhone: string;
15
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappGetServiceWindowStatus">;
15
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappGetServiceWindowStatus">;
16
16
  export declare const getServiceWindowBilling: (input: {
17
17
  readonly serviceWindowId: string;
18
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappGetServiceWindowBilling">;
18
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappGetServiceWindowBilling">;
19
19
  export declare const getMediaDownloadUrl: (input: {
20
20
  readonly deliveryId: string;
21
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappGetMediaDownloadUrl">;
21
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappGetMediaDownloadUrl">;
22
22
  export declare const listBusinessAccounts: (input?: {
23
23
  readonly page?: number | null | undefined;
24
24
  readonly limit?: number | null | undefined;
25
25
  readonly isActive?: boolean | null | undefined;
26
26
  readonly verificationStatus?: "failed" | "pending" | "suspended" | "verified" | undefined;
27
27
  readonly namespaceId?: string | undefined;
28
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappListBusinessAccounts">;
28
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappListBusinessAccounts">;
29
29
  export declare const connectBusinessAccount: (input: {
30
30
  readonly code: string | import("effect/Redacted").Redacted<string>;
31
31
  readonly wabaId: string;
32
32
  readonly phoneNumberId: string;
33
33
  readonly namespaceId?: string | null | undefined;
34
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappConnectBusinessAccount">;
34
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappConnectBusinessAccount">;
35
35
  export declare const getBusinessAccount: (input: {
36
36
  readonly accountId: string;
37
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappGetBusinessAccount">;
37
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappGetBusinessAccount">;
38
38
  export declare const updateBusinessAccount: (input: {
39
39
  readonly accountId: string;
40
40
  readonly displayName?: string | null | undefined;
41
41
  readonly webhookUrl?: string | null | undefined;
42
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappUpdateBusinessAccount">;
42
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappUpdateBusinessAccount">;
43
43
  export declare const disconnectBusinessAccount: (input: {
44
44
  readonly accountId: string;
45
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappDisconnectBusinessAccount">;
45
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappDisconnectBusinessAccount">;
46
46
  export declare const setDefaultBusinessAccount: (input: {
47
47
  readonly accountId: string;
48
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappSetDefaultBusinessAccount">;
48
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappSetDefaultBusinessAccount">;
49
49
  export declare const syncAccountStatus: (input: {
50
50
  readonly accountId: string;
51
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappSyncAccountStatus">;
51
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whatsappSyncAccountStatus">;
@@ -1,5 +1,6 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { forGroup } from "./internal/operation.js";
3
+ import { whatsappOperations } from "./descriptors/whats-app.js";
3
4
  import { WhatsAppGroup } from "./generated/whats-app.js";
4
5
  // src/effect/whatsapp.ts
5
6
  var whatsapp_exports = /* @__PURE__ */ __exportAll({
@@ -16,7 +17,7 @@ var whatsapp_exports = /* @__PURE__ */ __exportAll({
16
17
  syncAccountStatus: () => syncAccountStatus,
17
18
  updateBusinessAccount: () => updateBusinessAccount
18
19
  });
19
- const make = /* @__PURE__ */ forGroup(WhatsAppGroup);
20
+ const make = /* @__PURE__ */ forGroup(WhatsAppGroup, whatsappOperations);
20
21
  const getStats = /* @__PURE__ */ make("whatsappGetStats");
21
22
  const getTemplateStats = /* @__PURE__ */ make("whatsappGetTemplateStats");
22
23
  const getServiceWindowStatus = /* @__PURE__ */ make("whatsappGetServiceWindowStatus");
@@ -1 +1 @@
1
- export declare const get: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whoamiGet">;
1
+ export declare const get: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"whoamiGet">;
@@ -1,9 +1,10 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { forGroup } from "./internal/operation.js";
3
+ import { whoamiOperations } from "./descriptors/whoami.js";
3
4
  import { WhoamiGroup } from "./generated/whoami.js";
4
5
  // src/effect/whoami.ts
5
6
  var whoami_exports = /* @__PURE__ */ __exportAll({ get: () => get });
6
- const get = /* @__PURE__ */ (/* @__PURE__ */ forGroup(WhoamiGroup))("whoamiGet");
7
+ const get = /* @__PURE__ */ (/* @__PURE__ */ forGroup(WhoamiGroup, whoamiOperations))("whoamiGet");
7
8
  export { get, whoami_exports };
8
9
 
9
10
  //# sourceMappingURL=whoami.js.map
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./promises/index";
1
+ export * from "./promises/index.js";
package/dist/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.46.0";
2
+ var version = "0.47.0";
3
3
  export { version };
4
4
 
5
5
  //# sourceMappingURL=package.js.map
@@ -26,15 +26,15 @@
26
26
  * }
27
27
  * ```
28
28
  */
29
- import { type Client, type Config } from "../client/client";
30
- import { Agents as agents, Accounts as accounts, Integrations as integrations, IntegrationCatalog as integrationCatalog, Whatsapp as whatsapp, WhatsappFlows as whatsappFlows, WhatsappSetupLinks as whatsappSetupLinks, TemplateRegistrations as templateRegistrations, TemplateShareLinks as templateShareLinks, Analytics as analytics, ApiKeys as apiKeys, ApprovalRequests as approvalRequests, Attachments as attachments, Brands as brands, Campaigns as campaigns, ContactGroups as contactGroups, ContactEvents as contactEvents, Contacts as contacts, Conversations as conversations, CustomFields as customFields, Email as email, ExtensionInstallations as extensionInstallations, Extensions as extensions, Events as events, Feedback as feedback, Journeys as journeys, Mailboxes as mailboxes, Media as media, Messages as messages, Namespaces as namespaces, Operations as operations, Organizations as organizations, Policies as policies, ScheduledMessages as scheduledMessages, Subscriptions as subscriptions, Templates as templates, Topics as topics, TopicForms as topicForms, Newsletters as newsletters, Webhooks as webhooks, Whoami as whoami } from "../client/sdk.gen";
31
- import type { MessagesSendData } from "../client/types.gen";
32
- import { MailboxEventStream, type MailboxEventStreamOptions } from "../mailbox-events";
33
- import { type RequestPolicy } from "./request";
34
- export * from "./errors.gen";
35
- export { MediaUploadError } from "../inline-attachments";
36
- export type * from "./types.gen";
37
- export { MailboxEventStream, MailboxEventStreamError, type MailboxEvent, type MailboxEventStreamErrorFields, type MailboxEventStreamErrorReason, type MailboxEventStreamErrorTag, type MailboxEventStreamFailure, type MailboxEventStreamOptions, type MailboxEventStreamReconnect, type MailboxEventStreamWebSocket, type MailboxEventType, } from "../mailbox-events";
29
+ import { type Client, type Config } from "../client/client/index.js";
30
+ import { Agents as agents, Accounts as accounts, Integrations as integrations, IntegrationCatalog as integrationCatalog, Whatsapp as whatsapp, WhatsappFlows as whatsappFlows, WhatsappSetupLinks as whatsappSetupLinks, TemplateRegistrations as templateRegistrations, TemplateShareLinks as templateShareLinks, Analytics as analytics, ApiKeys as apiKeys, ApprovalRequests as approvalRequests, Attachments as attachments, Brands as brands, Campaigns as campaigns, ContactGroups as contactGroups, ContactEvents as contactEvents, Contacts as contacts, Conversations as conversations, CustomFields as customFields, Email as email, Events as events, Feedback as feedback, Journeys as journeys, Mailboxes as mailboxes, Media as media, Messages as messages, Namespaces as namespaces, Operations as operations, Organizations as organizations, Policies as policies, ScheduledMessages as scheduledMessages, Subscriptions as subscriptions, Templates as templates, Topics as topics, TopicForms as topicForms, Newsletters as newsletters, Webhooks as webhooks, Whoami as whoami } from "../client/sdk.gen.js";
31
+ import type { MessagesSendData } from "../client/types.gen.js";
32
+ import { MailboxEventStream, type MailboxEventStreamOptions } from "../mailbox-events.js";
33
+ import { type RequestPolicy } from "./request.js";
34
+ export * from "./errors.gen.js";
35
+ export { MediaUploadError } from "../inline-attachments.js";
36
+ export type * from "./types.gen.js";
37
+ export { MailboxEventStream, MailboxEventStreamError, type MailboxEvent, type MailboxEventStreamErrorFields, type MailboxEventStreamErrorReason, type MailboxEventStreamErrorTag, type MailboxEventStreamFailure, type MailboxEventStreamOptions, type MailboxEventStreamReconnect, type MailboxEventStreamWebSocket, type MailboxEventType, } from "../mailbox-events.js";
38
38
  interface SamvaClientConfigBase extends Omit<Config, "baseUrl" | "responseStyle" | "throwOnError">, RequestPolicy {
39
39
  /** Base URL for the API (defaults to https://api.samva.dev). */
40
40
  baseUrl?: string;
@@ -167,8 +167,6 @@ export interface SamvaRawClient {
167
167
  readonly journeys: typeof journeys;
168
168
  readonly mailboxes: typeof mailboxes;
169
169
  readonly namespaces: typeof namespaces;
170
- readonly extensions: typeof extensions;
171
- readonly extensionInstallations: typeof extensionInstallations;
172
170
  }
173
171
  /** The mailbox operations, plus the mailbox event stream. */
174
172
  export type PromiseMailboxesService = DirectService<typeof mailboxes> & {
@@ -219,8 +217,6 @@ export interface SamvaClient {
219
217
  readonly journeys: DirectService<typeof journeys>;
220
218
  readonly mailboxes: PromiseMailboxesService;
221
219
  readonly namespaces: DirectService<typeof namespaces>;
222
- readonly extensions: DirectService<typeof extensions>;
223
- readonly extensionInstallations: DirectService<typeof extensionInstallations>;
224
220
  }
225
221
  /** Create a configured Promise client. */
226
222
  type BoundClientConfig = SamvaClientConfigBase & {
@@ -232,4 +228,4 @@ type BoundClientConfig = SamvaClientConfigBase & {
232
228
  export declare function clientWithIdempotency(client: SamvaClient, idempotency: (operation: string) => string): SamvaClient;
233
229
  export declare const createBoundClient: (config: BoundClientConfig) => SamvaClient;
234
230
  export declare const createClient: (config: SamvaClientConfig) => SamvaClient;
235
- export type { Client, Config } from "../client/client";
231
+ export type { Client, Config } from "../client/client/index.js";
@@ -4,7 +4,7 @@ import { createClient as createClient$1 } from "../client/client/client.gen.js";
4
4
  import { SamvaOperations } from "../effect/generated-metadata.js";
5
5
  import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, CredentialsError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, ServiceUnavailableError, ShareLinkUnavailable, SlugTaken, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppChannelError, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError, fromApiError } from "./errors.gen.js";
6
6
  import { configureRequests } from "./request.js";
7
- import { Accounts, Agents, Analytics, ApiKeys, ApprovalRequests, Attachments, Brands, Campaigns, ContactEvents, ContactGroups, Contacts, Conversations, CustomFields, Email, Events, ExtensionInstallations, Extensions, Feedback, IntegrationCatalog, Integrations, Journeys, Mailboxes, Media, Messages, Namespaces, Newsletters, Operations, Organizations, Policies, ScheduledMessages, Subscriptions, TemplateRegistrations, TemplateShareLinks, Templates, TopicForms, Topics, Webhooks, Whatsapp, WhatsappFlows, WhatsappSetupLinks, Whoami } from "../client/sdk.gen.js";
7
+ import { Accounts, Agents, Analytics, ApiKeys, ApprovalRequests, Attachments, Brands, Campaigns, ContactEvents, ContactGroups, Contacts, Conversations, CustomFields, Email, Events, Feedback, IntegrationCatalog, Integrations, Journeys, Mailboxes, Media, Messages, Namespaces, Newsletters, Operations, Organizations, Policies, ScheduledMessages, Subscriptions, TemplateRegistrations, TemplateShareLinks, Templates, TopicForms, Topics, Webhooks, Whatsapp, WhatsappFlows, WhatsappSetupLinks, Whoami } from "../client/sdk.gen.js";
8
8
  import { MediaUploadError, mediaCreateBody, planInlineUploads, withUploadedAttachments } from "../inline-attachments.js";
9
9
  import { MailboxEventStream } from "../mailbox-events.js";
10
10
  import { buildEmailSendPayload, buildMessagesSendPayload, replyToEmailsPayload } from "../normalize.js";
@@ -279,9 +279,7 @@ function makeClient(config) {
279
279
  whoami: createBoundService(Whoami, clientInstance),
280
280
  journeys: createBoundService(Journeys, clientInstance),
281
281
  mailboxes: createBoundService(Mailboxes, clientInstance),
282
- namespaces: createBoundService(Namespaces, clientInstance),
283
- extensions: createBoundService(Extensions, clientInstance),
284
- extensionInstallations: createBoundService(ExtensionInstallations, clientInstance)
282
+ namespaces: createBoundService(Namespaces, clientInstance)
285
283
  };
286
284
  const streamConnection = {
287
285
  baseUrl: config.baseUrl ?? "https://api.samva.dev",
@@ -329,9 +327,7 @@ function makeClient(config) {
329
327
  whoami: createDirectService(raw.whoami),
330
328
  journeys: createDirectService(raw.journeys),
331
329
  mailboxes: Object.assign(createDirectService(raw.mailboxes), { events: (options) => new MailboxEventStream(streamConnection, options) }),
332
- namespaces: createDirectService(raw.namespaces),
333
- extensions: createDirectService(raw.extensions),
334
- extensionInstallations: createDirectService(raw.extensionInstallations)
330
+ namespaces: createDirectService(raw.namespaces)
335
331
  };
336
332
  clientFactories.set(result, (idempotency) => makeClient({
337
333
  ...config,
@@ -1,4 +1,4 @@
1
- import type * as Wire from "../client/types.gen";
1
+ import type * as Wire from "../client/types.gen.js";
2
2
  export type SamvaApiErrorTag = "AnalyticsQueryError" | "BillingProviderError" | "BrandAddressRequiredError" | "CampaignFooterRequiredError" | "ConflictError" | "CredentialsError" | "DeliveryUnavailableError" | "EmailChannelError" | "ExternalServiceError" | "FlagDisabledError" | "ForbiddenError" | "FromAddressRequiredError" | "GatewayTimeoutError" | "InternalError" | "MailboxSendConflictError" | "MailboxSendRefusedError" | "MalformedRequestError" | "OnboardingReviewRequiredError" | "PaymentRequiredError" | "RateLimitedError" | "ResourceNotFoundError" | "SenderNotReadyError" | "ServiceUnavailableError" | "ShareLinkUnavailable" | "SlugTaken" | "TemplateInUseError" | "TemplateSourceError" | "UnauthorizedError" | "ValidationError" | "WhatsAppChannelError" | "WhatsAppServiceWindowClosedError" | "WhatsAppSetupLinkUnavailableError";
3
3
  export interface SamvaApiErrorContext {
4
4
  readonly request?: Request | undefined;
@@ -1,5 +1,5 @@
1
- export { createClient, type SamvaClient, type SamvaClientConfig, type SamvaRawClient, type PromiseMailboxesService, type Client, type Config, } from "./client";
2
- export * from "./errors.gen";
3
- export type * from "./types.gen";
4
- export { MediaUploadError } from "../inline-attachments";
5
- export { MailboxEventStream, MailboxEventStreamError, type MailboxEvent, type MailboxEventStreamErrorFields, type MailboxEventStreamErrorReason, type MailboxEventStreamErrorTag, type MailboxEventStreamFailure, type MailboxEventStreamOptions, type MailboxEventStreamReconnect, type MailboxEventStreamWebSocket, type MailboxEventType, } from "../mailbox-events";
1
+ export { createClient, type SamvaClient, type SamvaClientConfig, type SamvaRawClient, type PromiseMailboxesService, type Client, type Config, } from "./client.js";
2
+ export * from "./errors.gen.js";
3
+ export type * from "./types.gen.js";
4
+ export { MediaUploadError } from "../inline-attachments.js";
5
+ export { MailboxEventStream, MailboxEventStreamError, type MailboxEvent, type MailboxEventStreamErrorFields, type MailboxEventStreamErrorReason, type MailboxEventStreamErrorTag, type MailboxEventStreamFailure, type MailboxEventStreamOptions, type MailboxEventStreamReconnect, type MailboxEventStreamWebSocket, type MailboxEventType, } from "../mailbox-events.js";
@@ -1,5 +1,5 @@
1
- import { type Client, mergeHeaders } from "../client/client";
2
- import { SamvaOperations } from "../effect/generated-metadata";
1
+ import { type Client, mergeHeaders } from "../client/client/index.js";
2
+ import { SamvaOperations } from "../effect/generated-metadata.js";
3
3
  export interface RequestPolicy {
4
4
  readonly maxRetries?: number | undefined;
5
5
  readonly idempotency?: ((operation: string) => string) | undefined;
@@ -49,7 +49,7 @@ async function requestWithPolicy(client, operation, options, send, input) {
49
49
  headers["idempotency-key"] = options?.idempotencyKey ?? policy?.idempotency?.(operation) ?? crypto.randomUUID();
50
50
  }
51
51
  const maxRetries = validateRetries(options?.maxRetries ?? policy?.maxRetries ?? 3);
52
- const safe = isRetrySafe(operation, input);
52
+ const safe = isRetrySafe(metadata, input);
53
53
  for (let retry = 0;; retry++) {
54
54
  let failure;
55
55
  let result;