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
@@ -8,7 +8,7 @@ export declare const list: ((input?: {
8
8
  readonly mailboxId?: string | undefined;
9
9
  readonly after?: string | undefined;
10
10
  readonly before?: string | undefined;
11
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsList">) & {
11
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsList">) & {
12
12
  readonly pages: (input?: {
13
13
  readonly limit?: number | null | undefined;
14
14
  readonly cursor?: string | undefined;
@@ -37,7 +37,7 @@ export declare const list: ((input?: {
37
37
  readonly createdAt: string;
38
38
  }[];
39
39
  readonly nextCursor: string | null;
40
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
40
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
41
41
  readonly items: (input?: {
42
42
  readonly limit?: number | null | undefined;
43
43
  readonly cursor?: string | undefined;
@@ -63,7 +63,7 @@ export declare const list: ((input?: {
63
63
  readonly messageCount: number;
64
64
  readonly lastActivityAt: string;
65
65
  readonly createdAt: string;
66
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
66
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
67
67
  };
68
68
  export declare const create: (input: {
69
69
  readonly namespaceId?: string | null | undefined;
@@ -199,10 +199,10 @@ export declare const create: (input: {
199
199
  readonly isTest?: boolean | null | undefined;
200
200
  readonly isInternal?: boolean | null | undefined;
201
201
  readonly isPrivate?: boolean | null | undefined;
202
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsCreate">;
202
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsCreate">;
203
203
  export declare const getById: (input: {
204
204
  readonly id: string;
205
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsGetById">;
205
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsGetById">;
206
206
  export declare const update: (input: {
207
207
  readonly id: string;
208
208
  readonly title?: string | null | undefined;
@@ -334,14 +334,14 @@ export declare const update: (input: {
334
334
  readonly isTest?: boolean | null | undefined;
335
335
  readonly isInternal?: boolean | null | undefined;
336
336
  readonly isPrivate?: boolean | null | undefined;
337
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsUpdate">;
337
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsUpdate">;
338
338
  export declare const listMessages: ((input: {
339
339
  readonly id: string;
340
340
  readonly limit?: number | null | undefined;
341
341
  readonly cursor?: string | undefined;
342
342
  readonly after?: string | undefined;
343
343
  readonly before?: string | undefined;
344
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsListMessages">) & {
344
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsListMessages">) & {
345
345
  readonly pages: (input: {
346
346
  readonly id: string;
347
347
  readonly limit?: number | null | undefined;
@@ -365,7 +365,7 @@ export declare const listMessages: ((input: {
365
365
  readonly createdAt: string;
366
366
  }[];
367
367
  readonly nextCursor: string | null;
368
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
368
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
369
369
  readonly items: (input: {
370
370
  readonly id: string;
371
371
  readonly limit?: number | null | undefined;
@@ -386,37 +386,37 @@ export declare const listMessages: ((input: {
386
386
  readonly subject: string | null;
387
387
  readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
388
388
  readonly createdAt: string;
389
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
389
+ }, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
390
390
  };
391
391
  export declare const addTags: (input: {
392
392
  readonly id: string;
393
393
  readonly tags: readonly string[];
394
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddTags">;
394
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsAddTags">;
395
395
  export declare const removeTags: (input: {
396
396
  readonly id: string;
397
397
  readonly tags: readonly string[];
398
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveTags">;
398
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsRemoveTags">;
399
399
  export declare const addCategories: (input: {
400
400
  readonly id: string;
401
401
  readonly categories: readonly string[];
402
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddCategories">;
402
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsAddCategories">;
403
403
  export declare const removeCategories: (input: {
404
404
  readonly id: string;
405
405
  readonly categories: readonly string[];
406
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveCategories">;
406
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsRemoveCategories">;
407
407
  export declare const addChannels: (input: {
408
408
  readonly id: string;
409
409
  readonly channels: readonly ("email" | "sms" | "whatsapp")[];
410
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddChannels">;
410
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsAddChannels">;
411
411
  export declare const removeChannels: (input: {
412
412
  readonly id: string;
413
413
  readonly channels: readonly ("email" | "sms" | "whatsapp")[];
414
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveChannels">;
414
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsRemoveChannels">;
415
415
  export declare const addContacts: (input: {
416
416
  readonly id: string;
417
417
  readonly contactIds: readonly string[];
418
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsAddContacts">;
418
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsAddContacts">;
419
419
  export declare const removeContacts: (input: {
420
420
  readonly id: string;
421
421
  readonly contactIds: readonly string[];
422
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"conversationsRemoveContacts">;
422
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"conversationsRemoveContacts">;
@@ -1,5 +1,6 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { forGroup } from "./internal/operation.js";
3
+ import { conversationsOperations } from "./descriptors/conversations.js";
3
4
  import { ConversationsGroup } from "./generated/conversations.js";
4
5
  // src/effect/conversations.ts
5
6
  var conversations_exports = /* @__PURE__ */ __exportAll({
@@ -17,7 +18,7 @@ var conversations_exports = /* @__PURE__ */ __exportAll({
17
18
  removeTags: () => removeTags,
18
19
  update: () => update
19
20
  });
20
- const make = /* @__PURE__ */ forGroup(ConversationsGroup);
21
+ const make = /* @__PURE__ */ forGroup(ConversationsGroup, conversationsOperations);
21
22
  const list = /* @__PURE__ */ make("conversationsList");
22
23
  const create = /* @__PURE__ */ make("conversationsCreate");
23
24
  const getById = /* @__PURE__ */ make("conversationsGetById");
@@ -1,4 +1,4 @@
1
- export declare const list: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"customFieldsList">;
1
+ export declare const list: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"customFieldsList">;
2
2
  export declare const create: (input: {
3
3
  readonly key: string;
4
4
  readonly label: string;
@@ -7,7 +7,7 @@ export declare const create: (input: {
7
7
  readonly defaultValue?: string | null | undefined;
8
8
  readonly isRequired?: boolean | null | undefined;
9
9
  readonly sortOrder?: number | null | undefined;
10
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"customFieldsCreate">;
10
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"customFieldsCreate">;
11
11
  export declare const update: (input: {
12
12
  readonly id: string;
13
13
  readonly label?: string | null | undefined;
@@ -15,7 +15,7 @@ export declare const update: (input: {
15
15
  readonly defaultValue?: string | null | undefined;
16
16
  readonly isRequired?: boolean | null | undefined;
17
17
  readonly sortOrder?: number | null | undefined;
18
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"customFieldsUpdate">;
18
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"customFieldsUpdate">;
19
19
  export declare const remove: (input: {
20
20
  readonly id: string;
21
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"customFieldsRemove">;
21
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"customFieldsRemove">;
@@ -1,5 +1,6 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { forGroup } from "./internal/operation.js";
3
+ import { customFieldsOperations } from "./descriptors/custom-fields.js";
3
4
  import { CustomFieldsGroup } from "./generated/custom-fields.js";
4
5
  // src/effect/custom-fields.ts
5
6
  var custom_fields_exports = /* @__PURE__ */ __exportAll({
@@ -8,7 +9,7 @@ var custom_fields_exports = /* @__PURE__ */ __exportAll({
8
9
  remove: () => remove,
9
10
  update: () => update
10
11
  });
11
- const make = /* @__PURE__ */ forGroup(CustomFieldsGroup);
12
+ const make = /* @__PURE__ */ forGroup(CustomFieldsGroup, customFieldsOperations);
12
13
  const list = /* @__PURE__ */ make("customFieldsList");
13
14
  const create = /* @__PURE__ */ make("customFieldsCreate");
14
15
  const update = /* @__PURE__ */ make("customFieldsUpdate");
@@ -0,0 +1,59 @@
1
+ export declare const accountsOperations: {
2
+ readonly accountsListContactConnections: {
3
+ readonly group: "Accounts";
4
+ readonly method: "GET";
5
+ readonly idempotent: false;
6
+ readonly paginated: false;
7
+ readonly call: {
8
+ readonly kind: "params";
9
+ };
10
+ };
11
+ readonly accountsList: {
12
+ readonly group: "Accounts";
13
+ readonly method: "GET";
14
+ readonly idempotent: false;
15
+ readonly paginated: false;
16
+ readonly call: {
17
+ readonly kind: "none";
18
+ };
19
+ };
20
+ readonly accountsGet: {
21
+ readonly group: "Accounts";
22
+ readonly method: "GET";
23
+ readonly idempotent: false;
24
+ readonly paginated: false;
25
+ readonly call: {
26
+ readonly kind: "path";
27
+ readonly paths: readonly ["accountId"];
28
+ };
29
+ };
30
+ readonly accountsRemove: {
31
+ readonly group: "Accounts";
32
+ readonly method: "DELETE";
33
+ readonly idempotent: false;
34
+ readonly paginated: false;
35
+ readonly call: {
36
+ readonly kind: "path";
37
+ readonly paths: readonly ["accountId"];
38
+ };
39
+ };
40
+ readonly accountsCheck: {
41
+ readonly group: "Accounts";
42
+ readonly method: "POST";
43
+ readonly idempotent: false;
44
+ readonly paginated: false;
45
+ readonly call: {
46
+ readonly kind: "path";
47
+ readonly paths: readonly ["accountId"];
48
+ };
49
+ };
50
+ readonly accountsConnect: {
51
+ readonly group: "Accounts";
52
+ readonly method: "POST";
53
+ readonly idempotent: false;
54
+ readonly paginated: false;
55
+ readonly call: {
56
+ readonly kind: "payload";
57
+ };
58
+ };
59
+ };
@@ -0,0 +1,57 @@
1
+ // src/effect/descriptors/accounts.ts
2
+ const accountsOperations = {
3
+ accountsListContactConnections: {
4
+ group: "Accounts",
5
+ method: "GET",
6
+ idempotent: false,
7
+ paginated: false,
8
+ call: { kind: "params" }
9
+ },
10
+ accountsList: {
11
+ group: "Accounts",
12
+ method: "GET",
13
+ idempotent: false,
14
+ paginated: false,
15
+ call: { kind: "none" }
16
+ },
17
+ accountsGet: {
18
+ group: "Accounts",
19
+ method: "GET",
20
+ idempotent: false,
21
+ paginated: false,
22
+ call: {
23
+ kind: "path",
24
+ paths: ["accountId"]
25
+ }
26
+ },
27
+ accountsRemove: {
28
+ group: "Accounts",
29
+ method: "DELETE",
30
+ idempotent: false,
31
+ paginated: false,
32
+ call: {
33
+ kind: "path",
34
+ paths: ["accountId"]
35
+ }
36
+ },
37
+ accountsCheck: {
38
+ group: "Accounts",
39
+ method: "POST",
40
+ idempotent: false,
41
+ paginated: false,
42
+ call: {
43
+ kind: "path",
44
+ paths: ["accountId"]
45
+ }
46
+ },
47
+ accountsConnect: {
48
+ group: "Accounts",
49
+ method: "POST",
50
+ idempotent: false,
51
+ paginated: false,
52
+ call: { kind: "payload" }
53
+ }
54
+ };
55
+ export { accountsOperations };
56
+
57
+ //# sourceMappingURL=accounts.js.map
@@ -0,0 +1,129 @@
1
+ export declare const agentsOperations: {
2
+ readonly agentsRerunTests: {
3
+ readonly group: "Agents";
4
+ readonly method: "POST";
5
+ readonly idempotent: false;
6
+ readonly paginated: false;
7
+ readonly call: {
8
+ readonly kind: "pathPayload";
9
+ readonly paths: readonly ["id"];
10
+ };
11
+ };
12
+ readonly agentsList: {
13
+ readonly group: "Agents";
14
+ readonly method: "GET";
15
+ readonly idempotent: false;
16
+ readonly paginated: true;
17
+ readonly call: {
18
+ readonly kind: "params";
19
+ };
20
+ };
21
+ readonly agentsCreate: {
22
+ readonly group: "Agents";
23
+ readonly method: "POST";
24
+ readonly idempotent: false;
25
+ readonly paginated: false;
26
+ readonly call: {
27
+ readonly kind: "payload";
28
+ };
29
+ };
30
+ readonly agentsListModels: {
31
+ readonly group: "Agents";
32
+ readonly method: "GET";
33
+ readonly idempotent: false;
34
+ readonly paginated: false;
35
+ readonly call: {
36
+ readonly kind: "none";
37
+ };
38
+ };
39
+ readonly agentsGet: {
40
+ readonly group: "Agents";
41
+ readonly method: "GET";
42
+ readonly idempotent: false;
43
+ readonly paginated: false;
44
+ readonly call: {
45
+ readonly kind: "path";
46
+ readonly paths: readonly ["id"];
47
+ };
48
+ };
49
+ readonly agentsUpdate: {
50
+ readonly group: "Agents";
51
+ readonly method: "PATCH";
52
+ readonly idempotent: false;
53
+ readonly paginated: false;
54
+ readonly call: {
55
+ readonly kind: "pathPayload";
56
+ readonly paths: readonly ["id"];
57
+ };
58
+ };
59
+ readonly agentsRemove: {
60
+ readonly group: "Agents";
61
+ readonly method: "DELETE";
62
+ readonly idempotent: false;
63
+ readonly paginated: false;
64
+ readonly call: {
65
+ readonly kind: "path";
66
+ readonly paths: readonly ["id"];
67
+ };
68
+ };
69
+ readonly agentsReplaceDraft: {
70
+ readonly group: "Agents";
71
+ readonly method: "PUT";
72
+ readonly idempotent: false;
73
+ readonly paginated: false;
74
+ readonly call: {
75
+ readonly kind: "pathPayload";
76
+ readonly paths: readonly ["id"];
77
+ };
78
+ };
79
+ readonly agentsPublish: {
80
+ readonly group: "Agents";
81
+ readonly method: "POST";
82
+ readonly idempotent: false;
83
+ readonly paginated: false;
84
+ readonly call: {
85
+ readonly kind: "pathPayload";
86
+ readonly paths: readonly ["id"];
87
+ };
88
+ };
89
+ readonly agentsPublishVersion: {
90
+ readonly group: "Agents";
91
+ readonly method: "POST";
92
+ readonly idempotent: false;
93
+ readonly paginated: false;
94
+ readonly call: {
95
+ readonly kind: "pathPayload";
96
+ readonly paths: readonly ["id"];
97
+ };
98
+ };
99
+ readonly agentsListVersions: {
100
+ readonly group: "Agents";
101
+ readonly method: "GET";
102
+ readonly idempotent: false;
103
+ readonly paginated: true;
104
+ readonly call: {
105
+ readonly kind: "pathParams";
106
+ readonly paths: readonly ["id"];
107
+ };
108
+ };
109
+ readonly agentsContinueOnStandard: {
110
+ readonly group: "Agents";
111
+ readonly method: "POST";
112
+ readonly idempotent: false;
113
+ readonly paginated: false;
114
+ readonly call: {
115
+ readonly kind: "path";
116
+ readonly paths: readonly ["id"];
117
+ };
118
+ };
119
+ readonly agentsGetVersion: {
120
+ readonly group: "Agents";
121
+ readonly method: "GET";
122
+ readonly idempotent: false;
123
+ readonly paginated: false;
124
+ readonly call: {
125
+ readonly kind: "path";
126
+ readonly paths: readonly ["id", "version"];
127
+ };
128
+ };
129
+ };
@@ -0,0 +1,127 @@
1
+ // src/effect/descriptors/agents.ts
2
+ const agentsOperations = {
3
+ agentsRerunTests: {
4
+ group: "Agents",
5
+ method: "POST",
6
+ idempotent: false,
7
+ paginated: false,
8
+ call: {
9
+ kind: "pathPayload",
10
+ paths: ["id"]
11
+ }
12
+ },
13
+ agentsList: {
14
+ group: "Agents",
15
+ method: "GET",
16
+ idempotent: false,
17
+ paginated: true,
18
+ call: { kind: "params" }
19
+ },
20
+ agentsCreate: {
21
+ group: "Agents",
22
+ method: "POST",
23
+ idempotent: false,
24
+ paginated: false,
25
+ call: { kind: "payload" }
26
+ },
27
+ agentsListModels: {
28
+ group: "Agents",
29
+ method: "GET",
30
+ idempotent: false,
31
+ paginated: false,
32
+ call: { kind: "none" }
33
+ },
34
+ agentsGet: {
35
+ group: "Agents",
36
+ method: "GET",
37
+ idempotent: false,
38
+ paginated: false,
39
+ call: {
40
+ kind: "path",
41
+ paths: ["id"]
42
+ }
43
+ },
44
+ agentsUpdate: {
45
+ group: "Agents",
46
+ method: "PATCH",
47
+ idempotent: false,
48
+ paginated: false,
49
+ call: {
50
+ kind: "pathPayload",
51
+ paths: ["id"]
52
+ }
53
+ },
54
+ agentsRemove: {
55
+ group: "Agents",
56
+ method: "DELETE",
57
+ idempotent: false,
58
+ paginated: false,
59
+ call: {
60
+ kind: "path",
61
+ paths: ["id"]
62
+ }
63
+ },
64
+ agentsReplaceDraft: {
65
+ group: "Agents",
66
+ method: "PUT",
67
+ idempotent: false,
68
+ paginated: false,
69
+ call: {
70
+ kind: "pathPayload",
71
+ paths: ["id"]
72
+ }
73
+ },
74
+ agentsPublish: {
75
+ group: "Agents",
76
+ method: "POST",
77
+ idempotent: false,
78
+ paginated: false,
79
+ call: {
80
+ kind: "pathPayload",
81
+ paths: ["id"]
82
+ }
83
+ },
84
+ agentsPublishVersion: {
85
+ group: "Agents",
86
+ method: "POST",
87
+ idempotent: false,
88
+ paginated: false,
89
+ call: {
90
+ kind: "pathPayload",
91
+ paths: ["id"]
92
+ }
93
+ },
94
+ agentsListVersions: {
95
+ group: "Agents",
96
+ method: "GET",
97
+ idempotent: false,
98
+ paginated: true,
99
+ call: {
100
+ kind: "pathParams",
101
+ paths: ["id"]
102
+ }
103
+ },
104
+ agentsContinueOnStandard: {
105
+ group: "Agents",
106
+ method: "POST",
107
+ idempotent: false,
108
+ paginated: false,
109
+ call: {
110
+ kind: "path",
111
+ paths: ["id"]
112
+ }
113
+ },
114
+ agentsGetVersion: {
115
+ group: "Agents",
116
+ method: "GET",
117
+ idempotent: false,
118
+ paginated: false,
119
+ call: {
120
+ kind: "path",
121
+ paths: ["id", "version"]
122
+ }
123
+ }
124
+ };
125
+ export { agentsOperations };
126
+
127
+ //# sourceMappingURL=agents.js.map
@@ -0,0 +1,56 @@
1
+ export declare const analyticsOperations: {
2
+ readonly analyticsGetStats: {
3
+ readonly group: "Analytics";
4
+ readonly method: "GET";
5
+ readonly idempotent: false;
6
+ readonly paginated: false;
7
+ readonly call: {
8
+ readonly kind: "params";
9
+ };
10
+ };
11
+ readonly analyticsGetChannelStats: {
12
+ readonly group: "Analytics";
13
+ readonly method: "GET";
14
+ readonly idempotent: false;
15
+ readonly paginated: false;
16
+ readonly call: {
17
+ readonly kind: "params";
18
+ };
19
+ };
20
+ readonly analyticsGetTopContacts: {
21
+ readonly group: "Analytics";
22
+ readonly method: "GET";
23
+ readonly idempotent: false;
24
+ readonly paginated: false;
25
+ readonly call: {
26
+ readonly kind: "params";
27
+ };
28
+ };
29
+ readonly analyticsGetHourlyDistribution: {
30
+ readonly group: "Analytics";
31
+ readonly method: "GET";
32
+ readonly idempotent: false;
33
+ readonly paginated: false;
34
+ readonly call: {
35
+ readonly kind: "params";
36
+ };
37
+ };
38
+ readonly analyticsGetDeliveryMetrics: {
39
+ readonly group: "Analytics";
40
+ readonly method: "GET";
41
+ readonly idempotent: false;
42
+ readonly paginated: false;
43
+ readonly call: {
44
+ readonly kind: "params";
45
+ };
46
+ };
47
+ readonly analyticsExportData: {
48
+ readonly group: "Analytics";
49
+ readonly method: "POST";
50
+ readonly idempotent: false;
51
+ readonly paginated: false;
52
+ readonly call: {
53
+ readonly kind: "payload";
54
+ };
55
+ };
56
+ };
@@ -0,0 +1,48 @@
1
+ // src/effect/descriptors/analytics.ts
2
+ const analyticsOperations = {
3
+ analyticsGetStats: {
4
+ group: "Analytics",
5
+ method: "GET",
6
+ idempotent: false,
7
+ paginated: false,
8
+ call: { kind: "params" }
9
+ },
10
+ analyticsGetChannelStats: {
11
+ group: "Analytics",
12
+ method: "GET",
13
+ idempotent: false,
14
+ paginated: false,
15
+ call: { kind: "params" }
16
+ },
17
+ analyticsGetTopContacts: {
18
+ group: "Analytics",
19
+ method: "GET",
20
+ idempotent: false,
21
+ paginated: false,
22
+ call: { kind: "params" }
23
+ },
24
+ analyticsGetHourlyDistribution: {
25
+ group: "Analytics",
26
+ method: "GET",
27
+ idempotent: false,
28
+ paginated: false,
29
+ call: { kind: "params" }
30
+ },
31
+ analyticsGetDeliveryMetrics: {
32
+ group: "Analytics",
33
+ method: "GET",
34
+ idempotent: false,
35
+ paginated: false,
36
+ call: { kind: "params" }
37
+ },
38
+ analyticsExportData: {
39
+ group: "Analytics",
40
+ method: "POST",
41
+ idempotent: false,
42
+ paginated: false,
43
+ call: { kind: "payload" }
44
+ }
45
+ };
46
+ export { analyticsOperations };
47
+
48
+ //# sourceMappingURL=analytics.js.map