samva 0.46.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/AGENTS.md +13 -7
  2. package/README.md +107 -9
  3. package/dist/agent/index.d.ts +56 -0
  4. package/dist/agent/index.js +52 -0
  5. package/dist/agent/runtime.d.ts +3 -0
  6. package/dist/agent/runtime.js +74 -0
  7. package/dist/agent/test.d.ts +31 -0
  8. package/dist/agent/test.js +66 -0
  9. package/dist/agent/types.d.ts +123 -0
  10. package/dist/client/client/client.gen.d.ts +1 -1
  11. package/dist/client/client/index.d.ts +10 -10
  12. package/dist/client/client/types.gen.d.ts +4 -4
  13. package/dist/client/client/utils.gen.d.ts +2 -2
  14. package/dist/client/client.gen.d.ts +2 -2
  15. package/dist/client/core/bodySerializer.gen.d.ts +1 -1
  16. package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
  17. package/dist/client/core/types.gen.d.ts +2 -2
  18. package/dist/client/core/utils.gen.d.ts +1 -1
  19. package/dist/client/sdk.gen.d.ts +41 -161
  20. package/dist/client/sdk.gen.js +1302 -1598
  21. package/dist/client/types.gen.d.ts +377 -966
  22. package/dist/effect/accounts.d.ts +6 -6
  23. package/dist/effect/accounts.js +2 -1
  24. package/dist/effect/agents.d.ts +355 -23
  25. package/dist/effect/agents.js +6 -3
  26. package/dist/effect/analytics.d.ts +6 -6
  27. package/dist/effect/analytics.js +2 -1
  28. package/dist/effect/api-keys.d.ts +13 -13
  29. package/dist/effect/api-keys.js +2 -1
  30. package/dist/effect/approval-requests.d.ts +4 -4
  31. package/dist/effect/approval-requests.js +2 -1
  32. package/dist/effect/attachments.d.ts +4 -4
  33. package/dist/effect/attachments.js +2 -1
  34. package/dist/effect/brands.d.ts +7 -7
  35. package/dist/effect/brands.js +2 -1
  36. package/dist/effect/campaigns.d.ts +205 -205
  37. package/dist/effect/campaigns.js +2 -1
  38. package/dist/effect/categories.d.ts +3 -3
  39. package/dist/effect/client.d.ts +1 -1
  40. package/dist/effect/contact-groups.d.ts +18 -18
  41. package/dist/effect/contact-groups.js +2 -1
  42. package/dist/effect/contacts.d.ts +41 -33
  43. package/dist/effect/contacts.js +8 -3
  44. package/dist/effect/conversations.d.ts +17 -17
  45. package/dist/effect/conversations.js +2 -1
  46. package/dist/effect/custom-fields.d.ts +4 -4
  47. package/dist/effect/custom-fields.js +2 -1
  48. package/dist/effect/descriptors/accounts.d.ts +59 -0
  49. package/dist/effect/descriptors/accounts.js +57 -0
  50. package/dist/effect/descriptors/agents.d.ts +129 -0
  51. package/dist/effect/descriptors/agents.js +127 -0
  52. package/dist/effect/descriptors/analytics.d.ts +56 -0
  53. package/dist/effect/descriptors/analytics.js +48 -0
  54. package/dist/effect/descriptors/api-keys.d.ts +80 -0
  55. package/dist/effect/descriptors/api-keys.js +80 -0
  56. package/dist/effect/descriptors/approval-requests.d.ts +41 -0
  57. package/dist/effect/descriptors/approval-requests.js +43 -0
  58. package/dist/effect/descriptors/attachments.d.ts +41 -0
  59. package/dist/effect/descriptors/attachments.js +43 -0
  60. package/dist/effect/descriptors/brands.d.ts +60 -0
  61. package/dist/effect/descriptors/brands.js +60 -0
  62. package/dist/effect/descriptors/campaigns.d.ts +148 -0
  63. package/dist/effect/descriptors/campaigns.js +144 -0
  64. package/dist/effect/descriptors/contact-groups.d.ts +99 -0
  65. package/dist/effect/descriptors/contact-groups.js +97 -0
  66. package/dist/effect/descriptors/contacts.d.ts +246 -0
  67. package/dist/effect/descriptors/contacts.js +234 -0
  68. package/dist/effect/descriptors/conversations.d.ts +130 -0
  69. package/dist/effect/descriptors/conversations.js +130 -0
  70. package/dist/effect/descriptors/custom-fields.d.ts +40 -0
  71. package/dist/effect/descriptors/custom-fields.js +40 -0
  72. package/dist/effect/descriptors/email.d.ts +607 -0
  73. package/dist/effect/descriptors/email.js +561 -0
  74. package/dist/effect/descriptors/events.d.ts +20 -0
  75. package/dist/effect/descriptors/events.js +20 -0
  76. package/dist/effect/descriptors/feedback.d.ts +11 -0
  77. package/dist/effect/descriptors/feedback.js +11 -0
  78. package/dist/effect/descriptors/integrations-catalog.d.ts +29 -0
  79. package/dist/effect/descriptors/integrations-catalog.js +27 -0
  80. package/dist/effect/descriptors/integrations.d.ts +70 -0
  81. package/dist/effect/descriptors/integrations.js +70 -0
  82. package/dist/effect/descriptors/journeys.d.ts +140 -0
  83. package/dist/effect/descriptors/journeys.js +140 -0
  84. package/dist/effect/descriptors/mailboxes.d.ts +724 -0
  85. package/dist/effect/descriptors/mailboxes.js +728 -0
  86. package/dist/effect/descriptors/media.d.ts +51 -0
  87. package/dist/effect/descriptors/media.js +53 -0
  88. package/dist/effect/descriptors/messages.d.ts +99 -0
  89. package/dist/effect/descriptors/messages.js +97 -0
  90. package/dist/effect/descriptors/namespaces.d.ts +110 -0
  91. package/dist/effect/descriptors/namespaces.js +114 -0
  92. package/dist/effect/descriptors/newsletter-domains.d.ts +42 -0
  93. package/dist/effect/descriptors/newsletter-domains.js +46 -0
  94. package/dist/effect/descriptors/newsletter-issues.d.ts +112 -0
  95. package/dist/effect/descriptors/newsletter-issues.js +116 -0
  96. package/dist/effect/descriptors/newsletters.d.ts +51 -0
  97. package/dist/effect/descriptors/newsletters.js +53 -0
  98. package/dist/effect/descriptors/operations.d.ts +31 -0
  99. package/dist/effect/descriptors/operations.js +33 -0
  100. package/dist/effect/descriptors/organizations.d.ts +111 -0
  101. package/dist/effect/descriptors/organizations.js +93 -0
  102. package/dist/effect/descriptors/policies.d.ts +32 -0
  103. package/dist/effect/descriptors/policies.js +36 -0
  104. package/dist/effect/descriptors/scheduled-messages.d.ts +50 -0
  105. package/dist/effect/descriptors/scheduled-messages.js +50 -0
  106. package/dist/effect/descriptors/subscriptions.d.ts +11 -0
  107. package/dist/effect/descriptors/subscriptions.js +11 -0
  108. package/dist/effect/descriptors/template-registrations.d.ts +32 -0
  109. package/dist/effect/descriptors/template-registrations.js +36 -0
  110. package/dist/effect/descriptors/template-share-links.d.ts +52 -0
  111. package/dist/effect/descriptors/template-share-links.js +56 -0
  112. package/dist/effect/descriptors/templates.d.ts +365 -0
  113. package/dist/effect/descriptors/templates.js +355 -0
  114. package/dist/effect/descriptors/topic-forms.d.ts +52 -0
  115. package/dist/effect/descriptors/topic-forms.js +56 -0
  116. package/dist/effect/descriptors/topics.d.ts +89 -0
  117. package/dist/effect/descriptors/topics.js +87 -0
  118. package/dist/effect/descriptors/webhooks.d.ts +110 -0
  119. package/dist/effect/descriptors/webhooks.js +110 -0
  120. package/dist/effect/descriptors/whats-app-flows.d.ts +99 -0
  121. package/dist/effect/descriptors/whats-app-flows.js +97 -0
  122. package/dist/effect/descriptors/whats-app-setup-links.d.ts +40 -0
  123. package/dist/effect/descriptors/whats-app-setup-links.js +40 -0
  124. package/dist/effect/descriptors/whats-app.d.ts +116 -0
  125. package/dist/effect/descriptors/whats-app.js +108 -0
  126. package/dist/effect/descriptors/whoami.d.ts +11 -0
  127. package/dist/effect/descriptors/whoami.js +11 -0
  128. package/dist/effect/email.d.ts +78 -78
  129. package/dist/effect/email.js +2 -1
  130. package/dist/effect/errors.d.ts +2 -2
  131. package/dist/effect/events.d.ts +3 -3
  132. package/dist/effect/events.js +2 -1
  133. package/dist/effect/feedback.d.ts +2 -2
  134. package/dist/effect/feedback.js +2 -1
  135. package/dist/effect/generated/accounts.d.ts +19 -9
  136. package/dist/effect/generated/accounts.js +1 -0
  137. package/dist/effect/generated/agents.d.ts +2967 -690
  138. package/dist/effect/generated/agents.js +54 -13
  139. package/dist/effect/generated/analytics.d.ts +1 -1
  140. package/dist/effect/generated/api-keys.d.ts +1 -1
  141. package/dist/effect/generated/approval-requests.d.ts +13 -13
  142. package/dist/effect/generated/attachments.d.ts +1 -1
  143. package/dist/effect/generated/brands.d.ts +1 -1
  144. package/dist/effect/generated/campaigns.d.ts +230 -230
  145. package/dist/effect/generated/contact-events.d.ts +4 -4
  146. package/dist/effect/generated/contact-groups.d.ts +1 -1
  147. package/dist/effect/generated/contacts.d.ts +907 -49
  148. package/dist/effect/generated/contacts.js +62 -3
  149. package/dist/effect/generated/conversations.d.ts +1 -1
  150. package/dist/effect/generated/custom-fields.d.ts +1 -1
  151. package/dist/effect/generated/email.d.ts +1 -1
  152. package/dist/effect/generated/events.d.ts +12 -12
  153. package/dist/effect/generated/feedback.d.ts +1 -1
  154. package/dist/effect/generated/index.d.ts +84 -88
  155. package/dist/effect/generated/integrations-catalog.d.ts +3 -3
  156. package/dist/effect/generated/integrations.d.ts +15 -15
  157. package/dist/effect/generated/journeys.d.ts +336 -96
  158. package/dist/effect/generated/journeys.js +3 -1
  159. package/dist/effect/generated/mailboxes.d.ts +93 -95
  160. package/dist/effect/generated/mailboxes.js +21 -25
  161. package/dist/effect/generated/media.d.ts +1 -1
  162. package/dist/effect/generated/messages.d.ts +1 -1
  163. package/dist/effect/generated/namespaces.d.ts +1 -1
  164. package/dist/effect/generated/newsletter-domains.d.ts +1 -1
  165. package/dist/effect/generated/newsletter-issues.d.ts +1 -1
  166. package/dist/effect/generated/newsletters.d.ts +1 -1
  167. package/dist/effect/generated/operations.d.ts +1 -1
  168. package/dist/effect/generated/organizations.d.ts +1 -1
  169. package/dist/effect/generated/policies.d.ts +1 -1
  170. package/dist/effect/generated/scheduled-messages.d.ts +147 -147
  171. package/dist/effect/generated/shared.d.ts +408 -102
  172. package/dist/effect/generated/shared.js +80 -36
  173. package/dist/effect/generated/subscriptions.d.ts +1 -1
  174. package/dist/effect/generated/template-registrations.d.ts +1 -4
  175. package/dist/effect/generated/template-registrations.js +2 -6
  176. package/dist/effect/generated/template-share-links.d.ts +1 -1
  177. package/dist/effect/generated/templates.d.ts +1 -1
  178. package/dist/effect/generated/topic-forms.d.ts +1 -1
  179. package/dist/effect/generated/topics.d.ts +1 -1
  180. package/dist/effect/generated/webhooks.d.ts +1 -1
  181. package/dist/effect/generated/whats-app-flows.d.ts +1 -1
  182. package/dist/effect/generated/whats-app-setup-links.d.ts +1 -1
  183. package/dist/effect/generated/whats-app.d.ts +1 -1
  184. package/dist/effect/generated/whoami.d.ts +1 -1
  185. package/dist/effect/generated-metadata.d.ts +18 -84
  186. package/dist/effect/generated-metadata.js +362 -415
  187. package/dist/effect/index.d.ts +45 -47
  188. package/dist/effect/index.js +1 -3
  189. package/dist/effect/integrations-catalog.d.ts +3 -3
  190. package/dist/effect/integrations-catalog.js +2 -1
  191. package/dist/effect/integrations.d.ts +11 -11
  192. package/dist/effect/integrations.js +2 -1
  193. package/dist/effect/internal/client.d.ts +3 -3
  194. package/dist/effect/internal/client.js +1 -1
  195. package/dist/effect/internal/email-sender.d.ts +4 -4
  196. package/dist/effect/internal/mailbox-events.d.ts +2 -2
  197. package/dist/effect/internal/operation.d.ts +24 -5
  198. package/dist/effect/internal/operation.js +25 -22
  199. package/dist/effect/internal/send.d.ts +4 -4
  200. package/dist/effect/journeys.d.ts +46 -22
  201. package/dist/effect/journeys.js +2 -1
  202. package/dist/effect/mailboxes.d.ts +163 -163
  203. package/dist/effect/mailboxes.js +2 -1
  204. package/dist/effect/media.d.ts +5 -5
  205. package/dist/effect/media.js +2 -1
  206. package/dist/effect/messages.d.ts +17 -17
  207. package/dist/effect/messages.js +2 -1
  208. package/dist/effect/namespaces.d.ts +15 -15
  209. package/dist/effect/namespaces.js +2 -1
  210. package/dist/effect/newsletter-domains.d.ts +6 -6
  211. package/dist/effect/newsletter-domains.js +2 -1
  212. package/dist/effect/newsletter-issues.d.ts +11 -11
  213. package/dist/effect/newsletter-issues.js +2 -1
  214. package/dist/effect/newsletters.d.ts +5 -5
  215. package/dist/effect/newsletters.js +2 -1
  216. package/dist/effect/operations.d.ts +5 -5
  217. package/dist/effect/operations.js +2 -1
  218. package/dist/effect/organizations.d.ts +12 -12
  219. package/dist/effect/organizations.js +2 -1
  220. package/dist/effect/policies.d.ts +3 -3
  221. package/dist/effect/policies.js +2 -1
  222. package/dist/effect/scheduled-messages.d.ts +371 -371
  223. package/dist/effect/scheduled-messages.js +2 -1
  224. package/dist/effect/subscriptions.d.ts +1 -1
  225. package/dist/effect/subscriptions.js +2 -1
  226. package/dist/effect/template-registrations.d.ts +3 -3
  227. package/dist/effect/template-registrations.js +2 -1
  228. package/dist/effect/template-share-links.d.ts +5 -5
  229. package/dist/effect/template-share-links.js +2 -1
  230. package/dist/effect/templates.d.ts +46 -46
  231. package/dist/effect/templates.js +2 -1
  232. package/dist/effect/topic-forms.d.ts +5 -5
  233. package/dist/effect/topic-forms.js +2 -1
  234. package/dist/effect/topics.d.ts +13 -13
  235. package/dist/effect/topics.js +2 -1
  236. package/dist/effect/webhooks.d.ts +16 -16
  237. package/dist/effect/webhooks.js +2 -1
  238. package/dist/effect/whatsapp-flows.d.ts +10 -10
  239. package/dist/effect/whatsapp-flows.js +2 -1
  240. package/dist/effect/whatsapp-setup-links.d.ts +6 -6
  241. package/dist/effect/whatsapp-setup-links.js +2 -1
  242. package/dist/effect/whatsapp.d.ts +12 -12
  243. package/dist/effect/whatsapp.js +2 -1
  244. package/dist/effect/whoami.d.ts +1 -1
  245. package/dist/effect/whoami.js +2 -1
  246. package/dist/index.d.ts +1 -1
  247. package/dist/package.js +1 -1
  248. package/dist/promises/client.d.ts +10 -14
  249. package/dist/promises/client.js +3 -7
  250. package/dist/promises/errors.gen.d.ts +1 -1
  251. package/dist/promises/index.d.ts +5 -5
  252. package/dist/promises/request.d.ts +2 -2
  253. package/dist/promises/request.js +1 -1
  254. package/dist/promises/types.gen.d.ts +1 -1
  255. package/dist/request-policy.d.ts +10 -2
  256. package/dist/request-policy.js +3 -5
  257. package/dist/service-map.d.ts +18 -75
  258. package/package.json +17 -29
  259. package/dist/effect/extension-installations.d.ts +0 -132
  260. package/dist/effect/extension-installations.js +0 -28
  261. package/dist/effect/extensions.d.ts +0 -102
  262. package/dist/effect/extensions.js +0 -20
  263. package/dist/effect/generated/extension-installations.d.ts +0 -2761
  264. package/dist/effect/generated/extension-installations.js +0 -405
  265. package/dist/effect/generated/extensions.d.ts +0 -1037
  266. package/dist/effect/generated/extensions.js +0 -214
  267. package/dist/mailbox/dispatch.d.ts +0 -10
  268. package/dist/mailbox/dispatch.js +0 -66
  269. package/dist/mailbox/index.d.ts +0 -17
  270. package/dist/mailbox/index.js +0 -30
  271. package/dist/mailbox/test.d.ts +0 -25
  272. package/dist/mailbox/test.js +0 -181
  273. package/dist/mailbox/types.d.ts +0 -221
  274. package/dist/mailbox/webhook.d.ts +0 -10
  275. package/dist/mailbox/webhook.js +0 -41
  276. package/dist/service-map.js +0 -830
@@ -1,16 +1,16 @@
1
1
  export declare const listContactConnections: (input?: {
2
2
  readonly provider?: string | undefined;
3
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"accountsListContactConnections">;
4
- export declare const list: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"accountsList">;
3
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"accountsListContactConnections">;
4
+ export declare const list: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"accountsList">;
5
5
  export declare const get: (input: {
6
6
  readonly accountId: string;
7
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"accountsGet">;
7
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"accountsGet">;
8
8
  export declare const remove: (input: {
9
9
  readonly accountId: string;
10
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"accountsRemove">;
10
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"accountsRemove">;
11
11
  export declare const check: (input: {
12
12
  readonly accountId: string;
13
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"accountsCheck">;
13
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"accountsCheck">;
14
14
  export declare const connect: (input: {
15
15
  readonly provider: string;
16
16
  readonly input?: {
@@ -47,4 +47,4 @@ export declare const connect: (input: {
47
47
  readonly accountId?: string | undefined;
48
48
  readonly expectedHosts?: readonly string[] | undefined;
49
49
  readonly returnTo: string;
50
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"accountsConnect">;
50
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"accountsConnect">;
@@ -1,4 +1,5 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ import { accountsOperations } from "./descriptors/accounts.js";
2
3
  import { AccountsGroup } from "./generated/accounts.js";
3
4
  import { forGroup } from "./internal/operation.js";
4
5
  // src/effect/accounts.ts
@@ -10,7 +11,7 @@ var accounts_exports = /* @__PURE__ */ __exportAll({
10
11
  listContactConnections: () => listContactConnections,
11
12
  remove: () => remove
12
13
  });
13
- const make = /* @__PURE__ */ forGroup(AccountsGroup);
14
+ const make = /* @__PURE__ */ forGroup(AccountsGroup, accountsOperations);
14
15
  const listContactConnections = /* @__PURE__ */ make("accountsListContactConnections");
15
16
  const list = /* @__PURE__ */ make("accountsList");
16
17
  const get = /* @__PURE__ */ make("accountsGet");
@@ -18,8 +18,6 @@ export declare const rerunTests: (input: {
18
18
  readonly names: readonly string[];
19
19
  };
20
20
  }[];
21
- readonly eventTriggers?: readonly string[] | undefined;
22
- readonly followUpTemplate?: string | undefined;
23
21
  readonly policy: {
24
22
  readonly presets: readonly string[];
25
23
  readonly rules: readonly ({
@@ -84,13 +82,15 @@ export declare const rerunTests: (input: {
84
82
  }[];
85
83
  } | null;
86
84
  readonly takeoverTimeoutMinutes: number;
85
+ readonly eventTriggers?: readonly string[] | undefined;
86
+ readonly followUpTemplate?: string | undefined;
87
87
  };
88
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsRerunTests">;
88
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsRerunTests">;
89
89
  export declare const list: ((input?: {
90
90
  readonly limit?: number | null | undefined;
91
91
  readonly cursor?: string | undefined;
92
92
  readonly namespaceId?: string | undefined;
93
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsList">) & {
93
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsList">) & {
94
94
  readonly pages: (input?: {
95
95
  readonly limit?: number | null | undefined;
96
96
  readonly cursor?: string | undefined;
@@ -110,7 +110,7 @@ export declare const list: ((input?: {
110
110
  readonly updatedAt: string;
111
111
  }[];
112
112
  readonly nextCursor: string | null;
113
- }, 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>;
113
+ }, 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>;
114
114
  readonly items: (input?: {
115
115
  readonly limit?: number | null | undefined;
116
116
  readonly cursor?: string | undefined;
@@ -127,7 +127,7 @@ export declare const list: ((input?: {
127
127
  readonly monthlySpendCapDollars: number | null;
128
128
  readonly createdAt: string;
129
129
  readonly updatedAt: string;
130
- }, 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>;
130
+ }, 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>;
131
131
  };
132
132
  export declare const create: (input: {
133
133
  readonly name: string;
@@ -150,8 +150,6 @@ export declare const create: (input: {
150
150
  readonly names: readonly string[];
151
151
  };
152
152
  }[];
153
- readonly eventTriggers?: readonly string[] | undefined;
154
- readonly followUpTemplate?: string | undefined;
155
153
  readonly policy: {
156
154
  readonly presets: readonly string[];
157
155
  readonly rules: readonly ({
@@ -216,20 +214,22 @@ export declare const create: (input: {
216
214
  }[];
217
215
  } | null;
218
216
  readonly takeoverTimeoutMinutes: number;
217
+ readonly eventTriggers?: readonly string[] | undefined;
218
+ readonly followUpTemplate?: string | undefined;
219
219
  } | null | undefined;
220
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsCreate">;
221
- export declare const listModels: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsListModels">;
220
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsCreate">;
221
+ export declare const listModels: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsListModels">;
222
222
  export declare const get: (input: {
223
223
  readonly id: string;
224
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsGet">;
224
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsGet">;
225
225
  export declare const update: (input: {
226
226
  readonly id: string;
227
227
  readonly name?: string | null | undefined;
228
228
  readonly monthlySpendCapDollars?: number | null | undefined;
229
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsUpdate">;
229
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsUpdate">;
230
230
  export declare const remove: (input: {
231
231
  readonly id: string;
232
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsRemove">;
232
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsRemove">;
233
233
  export declare const replaceDraft: (input: {
234
234
  readonly id: string;
235
235
  readonly revision: string;
@@ -250,8 +250,6 @@ export declare const replaceDraft: (input: {
250
250
  readonly names: readonly string[];
251
251
  };
252
252
  }[];
253
- readonly eventTriggers?: readonly string[] | undefined;
254
- readonly followUpTemplate?: string | undefined;
255
253
  readonly policy: {
256
254
  readonly presets: readonly string[];
257
255
  readonly rules: readonly ({
@@ -316,20 +314,147 @@ export declare const replaceDraft: (input: {
316
314
  }[];
317
315
  } | null;
318
316
  readonly takeoverTimeoutMinutes: number;
317
+ readonly eventTriggers?: readonly string[] | undefined;
318
+ readonly followUpTemplate?: string | undefined;
319
319
  };
320
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsReplaceDraft">;
320
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsReplaceDraft">;
321
321
  export declare const publish: (input: {
322
322
  readonly id: string;
323
323
  readonly revision: string;
324
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsPublish">;
325
- export declare const continueOnStandard: (input: {
324
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsPublish">;
325
+ export declare const publishVersion: (input: {
326
326
  readonly id: string;
327
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsContinueOnStandard">;
327
+ readonly revision: string;
328
+ readonly bundle: {
329
+ readonly source: string;
330
+ readonly manifest: {
331
+ readonly name: string;
332
+ readonly version: string;
333
+ readonly knowledgeSourceIds?: readonly string[] | undefined;
334
+ readonly endpointIds: readonly string[];
335
+ readonly integrations: readonly {
336
+ readonly integrationId: string;
337
+ readonly subject?: "contact" | "org" | undefined;
338
+ readonly tools: {
339
+ readonly kind: "all";
340
+ } | {
341
+ readonly kind: "readOnly";
342
+ } | {
343
+ readonly kind: "selected";
344
+ readonly names: readonly string[];
345
+ };
346
+ }[];
347
+ readonly policy: {
348
+ readonly presets: readonly string[];
349
+ readonly rules: readonly ({
350
+ readonly match: {
351
+ readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null | undefined;
352
+ readonly effect?: "final" | "read" | "write" | null | undefined;
353
+ readonly channel?: "email" | "sms" | "whatsapp" | null | undefined;
354
+ readonly integration?: string | null | undefined;
355
+ readonly tool?: string | null | undefined;
356
+ readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
357
+ readonly kind: "agent";
358
+ readonly id: string;
359
+ } | {
360
+ readonly kind: "apiKey";
361
+ readonly id: string;
362
+ } | {
363
+ readonly kind: "member";
364
+ readonly userId: string;
365
+ } | {
366
+ readonly kind: "extension";
367
+ readonly id: string;
368
+ } | null | undefined;
369
+ };
370
+ readonly note?: string | null | undefined;
371
+ readonly decide: "model" | "never" | "person" | "run";
372
+ readonly atLeast?: null | undefined;
373
+ } | {
374
+ readonly match: {
375
+ readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null | undefined;
376
+ readonly effect?: "final" | "read" | "write" | null | undefined;
377
+ readonly channel?: "email" | "sms" | "whatsapp" | null | undefined;
378
+ readonly integration?: string | null | undefined;
379
+ readonly tool?: string | null | undefined;
380
+ readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
381
+ readonly kind: "agent";
382
+ readonly id: string;
383
+ } | {
384
+ readonly kind: "apiKey";
385
+ readonly id: string;
386
+ } | {
387
+ readonly kind: "member";
388
+ readonly userId: string;
389
+ } | {
390
+ readonly kind: "extension";
391
+ readonly id: string;
392
+ } | null | undefined;
393
+ };
394
+ readonly note?: string | null | undefined;
395
+ readonly decide?: null | undefined;
396
+ readonly atLeast: "model" | "never" | "person" | "run";
397
+ })[];
398
+ readonly instructions?: string | null | undefined;
399
+ };
400
+ readonly model: string;
401
+ readonly reasoning: "auto" | "high" | "low" | "medium";
402
+ readonly workingHours: {
403
+ readonly timeZone: string;
404
+ readonly ranges: readonly {
405
+ readonly day: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
406
+ readonly opens: string;
407
+ readonly closes: string;
408
+ }[];
409
+ } | null;
410
+ readonly takeoverTimeoutMinutes: number;
411
+ readonly eventTriggers?: readonly string[] | undefined;
412
+ readonly followUpTemplate?: string | undefined;
413
+ readonly tools: {
414
+ readonly [x: string]: {
415
+ readonly description: string;
416
+ readonly input: {
417
+ readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
418
+ readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
419
+ } | null)[] | {
420
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
421
+ } | null)[] | {
422
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
423
+ } | null)[] | {
424
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
425
+ } | null)[] | {
426
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
427
+ } | null)[] | {
428
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
429
+ } | null)[] | {
430
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
431
+ } | null)[] | {
432
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
433
+ } | null)[] | {
434
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
435
+ } | null)[] | {
436
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
437
+ } | null)[] | {
438
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
439
+ } | null)[] | {
440
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
441
+ } | null | undefined;
442
+ };
443
+ readonly approval?: "model" | "never" | "person" | "run" | undefined;
444
+ readonly replay: "safe" | "unsafe";
445
+ } | undefined;
446
+ };
447
+ readonly skills: readonly string[];
448
+ readonly events: readonly string[];
449
+ readonly schedules: readonly string[];
450
+ };
451
+ };
452
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsPublishVersion">;
328
453
  export declare const listVersions: ((input: {
329
454
  readonly id: string;
330
455
  readonly limit?: number | null | undefined;
331
456
  readonly cursor?: string | undefined;
332
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsListVersions">) & {
457
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsListVersions">) & {
333
458
  readonly pages: (input: {
334
459
  readonly id: string;
335
460
  readonly limit?: number | null | undefined;
@@ -338,10 +463,112 @@ export declare const listVersions: ((input: {
338
463
  readonly items: readonly {
339
464
  readonly agentId: string & import("effect/Brand").Brand<"AgentId">;
340
465
  readonly version: number;
466
+ readonly bundle: {
467
+ readonly sha256: string;
468
+ readonly sizeBytes: number;
469
+ readonly manifest: {
470
+ readonly name: string;
471
+ readonly version: string;
472
+ readonly knowledgeSourceIds?: readonly (string & import("effect/Brand").Brand<"KnowledgeSourceId">)[];
473
+ readonly endpointIds: readonly (string & import("effect/Brand").Brand<"MailboxEndpointId">)[];
474
+ readonly integrations: readonly {
475
+ readonly integrationId: string & import("effect/Brand").Brand<"IntegrationId">;
476
+ readonly subject?: "contact" | "org";
477
+ readonly tools: {
478
+ readonly kind: "all";
479
+ } | {
480
+ readonly kind: "readOnly";
481
+ } | {
482
+ readonly kind: "selected";
483
+ readonly names: readonly string[];
484
+ };
485
+ }[];
486
+ readonly policy: {
487
+ readonly presets: readonly string[];
488
+ readonly rules: readonly ({
489
+ readonly match: {
490
+ readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null;
491
+ readonly effect?: "final" | "read" | "write" | null;
492
+ readonly channel?: "email" | "sms" | "whatsapp" | null;
493
+ readonly integration?: string | null;
494
+ readonly tool?: string | null;
495
+ readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
496
+ readonly kind: "agent";
497
+ readonly id: string & import("effect/Brand").Brand<"AgentId">;
498
+ } | {
499
+ readonly kind: "apiKey";
500
+ readonly id: string & import("effect/Brand").Brand<"ApiKeyId">;
501
+ } | {
502
+ readonly kind: "member";
503
+ readonly userId: string & import("effect/Brand").Brand<"UserId">;
504
+ } | {
505
+ readonly kind: "extension";
506
+ readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
507
+ } | null;
508
+ };
509
+ readonly note?: string | null;
510
+ readonly decide: "model" | "never" | "person" | "run";
511
+ readonly atLeast?: null;
512
+ } | {
513
+ readonly match: {
514
+ readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null;
515
+ readonly effect?: "final" | "read" | "write" | null;
516
+ readonly channel?: "email" | "sms" | "whatsapp" | null;
517
+ readonly integration?: string | null;
518
+ readonly tool?: string | null;
519
+ readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
520
+ readonly kind: "agent";
521
+ readonly id: string & import("effect/Brand").Brand<"AgentId">;
522
+ } | {
523
+ readonly kind: "apiKey";
524
+ readonly id: string & import("effect/Brand").Brand<"ApiKeyId">;
525
+ } | {
526
+ readonly kind: "member";
527
+ readonly userId: string & import("effect/Brand").Brand<"UserId">;
528
+ } | {
529
+ readonly kind: "extension";
530
+ readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
531
+ } | null;
532
+ };
533
+ readonly note?: string | null;
534
+ readonly decide?: null;
535
+ readonly atLeast: "model" | "never" | "person" | "run";
536
+ })[];
537
+ readonly instructions?: string | null;
538
+ };
539
+ readonly model: string;
540
+ readonly reasoning: "auto" | "high" | "low" | "medium";
541
+ readonly workingHours: {
542
+ readonly timeZone: string;
543
+ readonly ranges: readonly {
544
+ readonly day: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
545
+ readonly opens: string;
546
+ readonly closes: string;
547
+ }[];
548
+ } | null;
549
+ readonly takeoverTimeoutMinutes: number;
550
+ readonly eventTriggers?: readonly string[];
551
+ readonly followUpTemplate?: string | (string & import("effect/Brand").Brand<"TemplateId">);
552
+ readonly tools: {
553
+ readonly [x: string]: {
554
+ readonly description: string;
555
+ readonly input: {
556
+ readonly [x: string]: import("./generated/index.js").JsonValue;
557
+ };
558
+ readonly approval?: "model" | "never" | "person" | "run";
559
+ readonly replay: "safe" | "unsafe";
560
+ };
561
+ };
562
+ readonly skills: readonly string[];
563
+ readonly events: readonly string[];
564
+ readonly schedules: readonly string[];
565
+ };
566
+ };
567
+ readonly authoring: "builder" | "code";
341
568
  readonly publishedAt: string;
342
569
  }[];
343
570
  readonly nextCursor: string | null;
344
- }, 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>;
571
+ }, 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>;
345
572
  readonly items: (input: {
346
573
  readonly id: string;
347
574
  readonly limit?: number | null | undefined;
@@ -349,10 +576,115 @@ export declare const listVersions: ((input: {
349
576
  }) => import("effect/Stream").Stream<{
350
577
  readonly agentId: string & import("effect/Brand").Brand<"AgentId">;
351
578
  readonly version: number;
579
+ readonly bundle: {
580
+ readonly sha256: string;
581
+ readonly sizeBytes: number;
582
+ readonly manifest: {
583
+ readonly name: string;
584
+ readonly version: string;
585
+ readonly knowledgeSourceIds?: readonly (string & import("effect/Brand").Brand<"KnowledgeSourceId">)[];
586
+ readonly endpointIds: readonly (string & import("effect/Brand").Brand<"MailboxEndpointId">)[];
587
+ readonly integrations: readonly {
588
+ readonly integrationId: string & import("effect/Brand").Brand<"IntegrationId">;
589
+ readonly subject?: "contact" | "org";
590
+ readonly tools: {
591
+ readonly kind: "all";
592
+ } | {
593
+ readonly kind: "readOnly";
594
+ } | {
595
+ readonly kind: "selected";
596
+ readonly names: readonly string[];
597
+ };
598
+ }[];
599
+ readonly policy: {
600
+ readonly presets: readonly string[];
601
+ readonly rules: readonly ({
602
+ readonly match: {
603
+ readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null;
604
+ readonly effect?: "final" | "read" | "write" | null;
605
+ readonly channel?: "email" | "sms" | "whatsapp" | null;
606
+ readonly integration?: string | null;
607
+ readonly tool?: string | null;
608
+ readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
609
+ readonly kind: "agent";
610
+ readonly id: string & import("effect/Brand").Brand<"AgentId">;
611
+ } | {
612
+ readonly kind: "apiKey";
613
+ readonly id: string & import("effect/Brand").Brand<"ApiKeyId">;
614
+ } | {
615
+ readonly kind: "member";
616
+ readonly userId: string & import("effect/Brand").Brand<"UserId">;
617
+ } | {
618
+ readonly kind: "extension";
619
+ readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
620
+ } | null;
621
+ };
622
+ readonly note?: string | null;
623
+ readonly decide: "model" | "never" | "person" | "run";
624
+ readonly atLeast?: null;
625
+ } | {
626
+ readonly match: {
627
+ readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null;
628
+ readonly effect?: "final" | "read" | "write" | null;
629
+ readonly channel?: "email" | "sms" | "whatsapp" | null;
630
+ readonly integration?: string | null;
631
+ readonly tool?: string | null;
632
+ readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
633
+ readonly kind: "agent";
634
+ readonly id: string & import("effect/Brand").Brand<"AgentId">;
635
+ } | {
636
+ readonly kind: "apiKey";
637
+ readonly id: string & import("effect/Brand").Brand<"ApiKeyId">;
638
+ } | {
639
+ readonly kind: "member";
640
+ readonly userId: string & import("effect/Brand").Brand<"UserId">;
641
+ } | {
642
+ readonly kind: "extension";
643
+ readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
644
+ } | null;
645
+ };
646
+ readonly note?: string | null;
647
+ readonly decide?: null;
648
+ readonly atLeast: "model" | "never" | "person" | "run";
649
+ })[];
650
+ readonly instructions?: string | null;
651
+ };
652
+ readonly model: string;
653
+ readonly reasoning: "auto" | "high" | "low" | "medium";
654
+ readonly workingHours: {
655
+ readonly timeZone: string;
656
+ readonly ranges: readonly {
657
+ readonly day: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
658
+ readonly opens: string;
659
+ readonly closes: string;
660
+ }[];
661
+ } | null;
662
+ readonly takeoverTimeoutMinutes: number;
663
+ readonly eventTriggers?: readonly string[];
664
+ readonly followUpTemplate?: string | (string & import("effect/Brand").Brand<"TemplateId">);
665
+ readonly tools: {
666
+ readonly [x: string]: {
667
+ readonly description: string;
668
+ readonly input: {
669
+ readonly [x: string]: import("./generated/index.js").JsonValue;
670
+ };
671
+ readonly approval?: "model" | "never" | "person" | "run";
672
+ readonly replay: "safe" | "unsafe";
673
+ };
674
+ };
675
+ readonly skills: readonly string[];
676
+ readonly events: readonly string[];
677
+ readonly schedules: readonly string[];
678
+ };
679
+ };
680
+ readonly authoring: "builder" | "code";
352
681
  readonly publishedAt: string;
353
- }, 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>;
682
+ }, 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>;
354
683
  };
684
+ export declare const continueOnStandard: (input: {
685
+ readonly id: string;
686
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsContinueOnStandard">;
355
687
  export declare const getVersion: (input: {
356
688
  readonly id: string;
357
689
  readonly version: string;
358
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsGetVersion">;
690
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsGetVersion">;
@@ -1,5 +1,6 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { forGroup } from "./internal/operation.js";
3
+ import { agentsOperations } from "./descriptors/agents.js";
3
4
  import { AgentsGroup } from "./generated/agents.js";
4
5
  // src/effect/agents.ts
5
6
  var agents_exports = /* @__PURE__ */ __exportAll({
@@ -11,12 +12,13 @@ var agents_exports = /* @__PURE__ */ __exportAll({
11
12
  listModels: () => listModels,
12
13
  listVersions: () => listVersions,
13
14
  publish: () => publish,
15
+ publishVersion: () => publishVersion,
14
16
  remove: () => remove,
15
17
  replaceDraft: () => replaceDraft,
16
18
  rerunTests: () => rerunTests,
17
19
  update: () => update
18
20
  });
19
- const make = /* @__PURE__ */ forGroup(AgentsGroup);
21
+ const make = /* @__PURE__ */ forGroup(AgentsGroup, agentsOperations);
20
22
  const rerunTests = /* @__PURE__ */ make("agentsRerunTests");
21
23
  const list = /* @__PURE__ */ make("agentsList");
22
24
  const create = /* @__PURE__ */ make("agentsCreate");
@@ -26,9 +28,10 @@ const update = /* @__PURE__ */ make("agentsUpdate");
26
28
  const remove = /* @__PURE__ */ make("agentsRemove");
27
29
  const replaceDraft = /* @__PURE__ */ make("agentsReplaceDraft");
28
30
  const publish = /* @__PURE__ */ make("agentsPublish");
29
- const continueOnStandard = /* @__PURE__ */ make("agentsContinueOnStandard");
31
+ const publishVersion = /* @__PURE__ */ make("agentsPublishVersion");
30
32
  const listVersions = /* @__PURE__ */ make("agentsListVersions");
33
+ const continueOnStandard = /* @__PURE__ */ make("agentsContinueOnStandard");
31
34
  const getVersion = /* @__PURE__ */ make("agentsGetVersion");
32
- export { agents_exports, continueOnStandard, create, get, getVersion, list, listModels, listVersions, publish, remove, replaceDraft, rerunTests, update };
35
+ export { agents_exports, continueOnStandard, create, get, getVersion, list, listModels, listVersions, publish, publishVersion, remove, replaceDraft, rerunTests, update };
33
36
 
34
37
  //# sourceMappingURL=agents.js.map
@@ -4,34 +4,34 @@ export declare const getStats: (input?: {
4
4
  readonly before?: Date | undefined;
5
5
  readonly groupBy?: "day" | "month" | "week" | undefined;
6
6
  readonly channel?: "email" | "sms" | "whatsapp" | undefined;
7
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetStats">;
7
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"analyticsGetStats">;
8
8
  export declare const getChannelStats: (input?: {
9
9
  readonly namespaceId?: string | undefined;
10
10
  readonly after?: Date | undefined;
11
11
  readonly before?: Date | undefined;
12
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetChannelStats">;
12
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"analyticsGetChannelStats">;
13
13
  export declare const getTopContacts: (input?: {
14
14
  readonly namespaceId?: string | undefined;
15
15
  readonly after?: Date | undefined;
16
16
  readonly before?: Date | undefined;
17
17
  readonly limit?: number | null | undefined;
18
18
  readonly sortBy?: "received" | "sent" | "total" | undefined;
19
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetTopContacts">;
19
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"analyticsGetTopContacts">;
20
20
  export declare const getHourlyDistribution: (input?: {
21
21
  readonly namespaceId?: string | undefined;
22
22
  readonly after?: Date | undefined;
23
23
  readonly before?: Date | undefined;
24
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetHourlyDistribution">;
24
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"analyticsGetHourlyDistribution">;
25
25
  export declare const getDeliveryMetrics: (input?: {
26
26
  readonly namespaceId?: string | undefined;
27
27
  readonly after?: Date | undefined;
28
28
  readonly before?: Date | undefined;
29
29
  readonly channel?: "email" | "sms" | "whatsapp" | undefined;
30
- } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetDeliveryMetrics">;
30
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"analyticsGetDeliveryMetrics">;
31
31
  export declare const exportData: (input: {
32
32
  readonly namespaceId?: string | null | undefined;
33
33
  readonly after: Date;
34
34
  readonly before: Date;
35
35
  readonly format?: "csv" | "json" | null | undefined;
36
36
  readonly includeChannels?: readonly ("email" | "sms" | "whatsapp")[] | null | undefined;
37
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsExportData">;
37
+ }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"analyticsExportData">;
@@ -1,5 +1,6 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { forGroup } from "./internal/operation.js";
3
+ import { analyticsOperations } from "./descriptors/analytics.js";
3
4
  import { AnalyticsGroup } from "./generated/analytics.js";
4
5
  // src/effect/analytics.ts
5
6
  var analytics_exports = /* @__PURE__ */ __exportAll({
@@ -10,7 +11,7 @@ var analytics_exports = /* @__PURE__ */ __exportAll({
10
11
  getStats: () => getStats,
11
12
  getTopContacts: () => getTopContacts
12
13
  });
13
- const make = /* @__PURE__ */ forGroup(AnalyticsGroup);
14
+ const make = /* @__PURE__ */ forGroup(AnalyticsGroup, analyticsOperations);
14
15
  const getStats = /* @__PURE__ */ make("analyticsGetStats");
15
16
  const getChannelStats = /* @__PURE__ */ make("analyticsGetChannelStats");
16
17
  const getTopContacts = /* @__PURE__ */ make("analyticsGetTopContacts");