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,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/index.js CHANGED
@@ -1,5 +1,5 @@
1
- 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, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppChannelError, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError, fromApiError } from "./promises/errors.gen.js";
1
+ 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 "./promises/errors.gen.js";
2
2
  import { MediaUploadError } from "./inline-attachments.js";
3
3
  import { MailboxEventStream, MailboxEventStreamError } from "./mailbox-events.js";
4
4
  import { createClient } from "./promises/client.js";
5
- export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, CredentialsError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxEventStream, MailboxEventStreamError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppChannelError, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError, createClient, fromApiError };
5
+ export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, CredentialsError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxEventStream, MailboxEventStreamError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, ServiceUnavailableError, ShareLinkUnavailable, SlugTaken, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppChannelError, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError, createClient, fromApiError };
@@ -1,5 +1,5 @@
1
- import { type SamvaClient } from "../promises/client";
2
- import type { DispatchResult, ExtensionDefinition, Invocation } from "./types";
1
+ import { type SamvaClient } from "../promises/client.js";
2
+ import type { DispatchResult, ExtensionDefinition, Invocation } from "./types.js";
3
3
  declare const errorMessage: (error: unknown) => string;
4
4
  export { errorMessage };
5
5
  /**
@@ -1,8 +1,8 @@
1
- import { createBoundClient } from "../promises/client";
2
- import type { ExtensionDefinition, ExtensionManifest } from "./types";
1
+ import { createBoundClient } from "../promises/client.js";
2
+ import type { ExtensionDefinition, ExtensionManifest } from "./types.js";
3
3
  type Fetch = NonNullable<Parameters<typeof createBoundClient>[0]["fetch"]>;
4
- export * from "./types";
5
- export { dispatchEvent } from "./dispatch";
4
+ export * from "./types.js";
5
+ export { dispatchEvent } from "./dispatch.js";
6
6
  export declare function defineExtension<const M extends ExtensionManifest>(definition: {
7
7
  manifest: M;
8
8
  on: ExtensionDefinition<M["events"][number]>["on"];
@@ -1,5 +1,5 @@
1
- import { type SamvaClient } from "../promises/client";
2
- import type { EventData, EventType, ExtensionDefinition, ExtensionEvent } from "./types";
1
+ import { type SamvaClient } from "../promises/client.js";
2
+ import type { EventData, EventType, ExtensionDefinition, ExtensionEvent } from "./types.js";
3
3
  export interface RecordedCall {
4
4
  method: string;
5
5
  path: string;
@@ -1,5 +1,5 @@
1
- import type { MailboxQuarantinedMessage } from "../client/types.gen";
2
- import type { SamvaClient } from "../promises/client";
1
+ import type { MailboxQuarantinedMessage } from "../client/types.gen.js";
2
+ import type { SamvaClient } from "../promises/client.js";
3
3
  export type ExtensionManifest = {
4
4
  readonly name: string;
5
5
  readonly displayName: string;
@@ -1,5 +1,5 @@
1
- import { createClient } from "../promises/client";
2
- import type { ExtensionDefinition } from "./types";
1
+ import { createClient } from "../promises/client.js";
2
+ import type { ExtensionDefinition } from "./types.js";
3
3
  type Fetch = NonNullable<Parameters<typeof createClient>[0]["fetch"]>;
4
4
  export declare function createWebhookHandler(extension: ExtensionDefinition, options: {
5
5
  apiKey: string;
package/dist/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.45.1";
2
+ var version = "0.46.1";
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, Whatsapp as whatsapp, WhatsappFlows as whatsappFlows, WhatsappSetupLinks as whatsappSetupLinks, TemplateRegistrations as templateRegistrations, Analytics as analytics, ApiKeys as apiKeys, 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, 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.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;
@@ -136,6 +136,7 @@ export interface SamvaRawClient {
136
136
  readonly whatsappFlows: typeof whatsappFlows;
137
137
  readonly whatsappSetupLinks: typeof whatsappSetupLinks;
138
138
  readonly templateRegistrations: typeof templateRegistrations;
139
+ readonly templateShareLinks: typeof templateShareLinks;
139
140
  readonly campaigns: typeof campaigns;
140
141
  readonly email: typeof email;
141
142
  readonly media: typeof media;
@@ -146,6 +147,7 @@ export interface SamvaRawClient {
146
147
  readonly webhooks: typeof webhooks;
147
148
  readonly operations: typeof operations;
148
149
  readonly apiKeys: typeof apiKeys;
150
+ readonly approvalRequests: typeof approvalRequests;
149
151
  readonly organizations: typeof organizations;
150
152
  readonly policies: typeof policies;
151
153
  readonly attachments: typeof attachments;
@@ -156,6 +158,9 @@ export interface SamvaRawClient {
156
158
  readonly topicForms: typeof topicForms;
157
159
  readonly newsletters: typeof newsletters;
158
160
  readonly agents: typeof agents;
161
+ readonly accounts: typeof accounts;
162
+ readonly integrations: typeof integrations;
163
+ readonly integrationCatalog: typeof integrationCatalog;
159
164
  readonly analytics: typeof analytics;
160
165
  readonly feedback: typeof feedback;
161
166
  readonly whoami: typeof whoami;
@@ -183,6 +188,7 @@ export interface SamvaClient {
183
188
  readonly whatsappFlows: DirectService<typeof whatsappFlows>;
184
189
  readonly whatsappSetupLinks: DirectService<typeof whatsappSetupLinks>;
185
190
  readonly templateRegistrations: DirectService<typeof templateRegistrations>;
191
+ readonly templateShareLinks: DirectService<typeof templateShareLinks>;
186
192
  readonly campaigns: DirectService<typeof campaigns>;
187
193
  readonly email: DirectService<PromiseEmailTransport>;
188
194
  readonly media: DirectService<typeof media>;
@@ -193,6 +199,7 @@ export interface SamvaClient {
193
199
  readonly webhooks: DirectService<typeof webhooks>;
194
200
  readonly operations: DirectService<typeof operations>;
195
201
  readonly apiKeys: DirectService<typeof apiKeys>;
202
+ readonly approvalRequests: DirectService<typeof approvalRequests>;
196
203
  readonly organizations: DirectService<typeof organizations>;
197
204
  readonly policies: DirectService<typeof policies>;
198
205
  readonly attachments: DirectService<typeof attachments>;
@@ -203,6 +210,9 @@ export interface SamvaClient {
203
210
  readonly topicForms: DirectService<typeof topicForms>;
204
211
  readonly newsletters: DirectService<typeof newsletters>;
205
212
  readonly agents: DirectService<typeof agents>;
213
+ readonly accounts: DirectService<typeof accounts>;
214
+ readonly integrations: DirectService<typeof integrations>;
215
+ readonly integrationCatalog: DirectService<typeof integrationCatalog>;
206
216
  readonly analytics: DirectService<typeof analytics>;
207
217
  readonly feedback: DirectService<typeof feedback>;
208
218
  readonly whoami: DirectService<typeof whoami>;
@@ -222,4 +232,4 @@ type BoundClientConfig = SamvaClientConfigBase & {
222
232
  export declare function clientWithIdempotency(client: SamvaClient, idempotency: (operation: string) => string): SamvaClient;
223
233
  export declare const createBoundClient: (config: BoundClientConfig) => SamvaClient;
224
234
  export declare const createClient: (config: SamvaClientConfig) => SamvaClient;
225
- export type { Client, Config } from "../client/client";
235
+ export type { Client, Config } from "../client/client/index.js";
@@ -2,9 +2,9 @@ import { CLIENT_ATTRIBUTION_HEADER, clientAttribution } from "../client-attribut
2
2
  import { mergeHeaders } from "../client/client/utils.gen.js";
3
3
  import { createClient as createClient$1 } from "../client/client/client.gen.js";
4
4
  import { SamvaOperations } from "../effect/generated-metadata.js";
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, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppChannelError, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError, fromApiError } from "./errors.gen.js";
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 { Agents, Analytics, ApiKeys, Attachments, Brands, Campaigns, ContactEvents, ContactGroups, Contacts, Conversations, CustomFields, Email, Events, ExtensionInstallations, Extensions, Feedback, Journeys, Mailboxes, Media, Messages, Namespaces, Newsletters, Operations, Organizations, Policies, ScheduledMessages, Subscriptions, TemplateRegistrations, 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, 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";
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";
@@ -249,6 +249,7 @@ function makeClient(config) {
249
249
  whatsappFlows: createBoundService(WhatsappFlows, clientInstance),
250
250
  whatsappSetupLinks: createBoundService(WhatsappSetupLinks, clientInstance),
251
251
  templateRegistrations: createBoundService(TemplateRegistrations, clientInstance),
252
+ templateShareLinks: createBoundService(TemplateShareLinks, clientInstance),
252
253
  campaigns: createBoundService(Campaigns, clientInstance),
253
254
  email: createBoundService(Email, clientInstance),
254
255
  media: createBoundService(Media, clientInstance),
@@ -259,6 +260,7 @@ function makeClient(config) {
259
260
  webhooks: createBoundService(Webhooks, clientInstance),
260
261
  operations: createBoundService(Operations, clientInstance),
261
262
  apiKeys: createBoundService(ApiKeys, clientInstance),
263
+ approvalRequests: createBoundService(ApprovalRequests, clientInstance),
262
264
  organizations: createBoundService(Organizations, clientInstance),
263
265
  policies: createBoundService(Policies, clientInstance),
264
266
  attachments: createBoundService(Attachments, clientInstance),
@@ -269,6 +271,9 @@ function makeClient(config) {
269
271
  topicForms: createBoundService(TopicForms, clientInstance),
270
272
  newsletters: createBoundService(Newsletters, clientInstance),
271
273
  agents: createBoundService(Agents, clientInstance),
274
+ accounts: createBoundService(Accounts, clientInstance),
275
+ integrations: createBoundService(Integrations, clientInstance),
276
+ integrationCatalog: createBoundService(IntegrationCatalog, clientInstance),
272
277
  analytics: createBoundService(Analytics, clientInstance),
273
278
  feedback: createBoundService(Feedback, clientInstance),
274
279
  whoami: createBoundService(Whoami, clientInstance),
@@ -294,6 +299,7 @@ function makeClient(config) {
294
299
  whatsappFlows: createDirectService(raw.whatsappFlows),
295
300
  whatsappSetupLinks: createDirectService(raw.whatsappSetupLinks),
296
301
  templateRegistrations: createDirectService(raw.templateRegistrations),
302
+ templateShareLinks: createDirectService(raw.templateShareLinks),
297
303
  campaigns: createDirectService(raw.campaigns),
298
304
  email: createDirectService(promiseEmail),
299
305
  media: createDirectService(raw.media),
@@ -304,6 +310,7 @@ function makeClient(config) {
304
310
  webhooks: createDirectService(raw.webhooks),
305
311
  operations: createDirectService(raw.operations),
306
312
  apiKeys: createDirectService(raw.apiKeys),
313
+ approvalRequests: createDirectService(raw.approvalRequests),
307
314
  organizations: createDirectService(raw.organizations),
308
315
  policies: createDirectService(raw.policies),
309
316
  attachments: createDirectService(raw.attachments),
@@ -314,6 +321,9 @@ function makeClient(config) {
314
321
  topicForms: createDirectService(raw.topicForms),
315
322
  newsletters: createDirectService(raw.newsletters),
316
323
  agents: createDirectService(raw.agents),
324
+ accounts: createDirectService(raw.accounts),
325
+ integrations: createDirectService(raw.integrations),
326
+ integrationCatalog: createDirectService(raw.integrationCatalog),
317
327
  analytics: createDirectService(raw.analytics),
318
328
  feedback: createDirectService(raw.feedback),
319
329
  whoami: createDirectService(raw.whoami),
@@ -329,6 +339,6 @@ function makeClient(config) {
329
339
  }));
330
340
  return result;
331
341
  }
332
- export { 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, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppChannelError, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError, clientWithIdempotency, createBoundClient, createClient, fromApiError };
342
+ export { 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, clientWithIdempotency, createBoundClient, createClient, fromApiError };
333
343
 
334
344
  //# sourceMappingURL=client.js.map