samva 0.56.0 → 0.56.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 (226) hide show
  1. package/AGENTS.md +2 -2
  2. package/README.md +9 -8
  3. package/dist/effect/accounts.js +9 -10
  4. package/dist/effect/agents.js +16 -17
  5. package/dist/effect/analytics.js +9 -10
  6. package/dist/effect/api-keys.js +11 -12
  7. package/dist/effect/approval-requests.js +7 -8
  8. package/dist/effect/attachments.js +7 -8
  9. package/dist/effect/brands.js +9 -10
  10. package/dist/effect/campaigns.js +18 -19
  11. package/dist/effect/contact-groups.js +13 -14
  12. package/dist/effect/contacts.js +29 -30
  13. package/dist/effect/conversations.js +16 -17
  14. package/dist/effect/custom-fields.js +7 -8
  15. package/dist/effect/descriptors/accounts.d.ts +50 -52
  16. package/dist/effect/descriptors/accounts.js +50 -52
  17. package/dist/effect/descriptors/agents.d.ts +113 -115
  18. package/dist/effect/descriptors/agents.js +120 -122
  19. package/dist/effect/descriptors/analytics.d.ts +47 -49
  20. package/dist/effect/descriptors/analytics.js +42 -44
  21. package/dist/effect/descriptors/api-keys.d.ts +69 -71
  22. package/dist/effect/descriptors/api-keys.js +73 -75
  23. package/dist/effect/descriptors/approval-requests.d.ts +34 -36
  24. package/dist/effect/descriptors/approval-requests.js +36 -38
  25. package/dist/effect/descriptors/attachments.d.ts +34 -36
  26. package/dist/effect/descriptors/attachments.js +36 -38
  27. package/dist/effect/descriptors/brands.d.ts +51 -53
  28. package/dist/effect/descriptors/brands.js +53 -55
  29. package/dist/effect/descriptors/campaigns.d.ts +130 -132
  30. package/dist/effect/descriptors/campaigns.js +137 -139
  31. package/dist/effect/descriptors/contact-groups.d.ts +86 -88
  32. package/dist/effect/descriptors/contact-groups.js +90 -92
  33. package/dist/effect/descriptors/contacts.d.ts +242 -244
  34. package/dist/effect/descriptors/contacts.js +227 -229
  35. package/dist/effect/descriptors/conversations.d.ts +114 -116
  36. package/dist/effect/descriptors/conversations.js +123 -125
  37. package/dist/effect/descriptors/custom-fields.d.ts +33 -35
  38. package/dist/effect/descriptors/custom-fields.js +33 -35
  39. package/dist/effect/descriptors/email.d.ts +623 -625
  40. package/dist/effect/descriptors/email.js +562 -578
  41. package/dist/effect/descriptors/events.d.ts +15 -17
  42. package/dist/effect/descriptors/events.js +14 -16
  43. package/dist/effect/descriptors/feedback.d.ts +7 -9
  44. package/dist/effect/descriptors/feedback.js +3 -3
  45. package/dist/effect/descriptors/integrations-catalog.d.ts +159 -161
  46. package/dist/effect/descriptors/integrations-catalog.js +142 -144
  47. package/dist/effect/descriptors/integrations.d.ts +60 -62
  48. package/dist/effect/descriptors/integrations.js +63 -65
  49. package/dist/effect/descriptors/journeys.d.ts +123 -125
  50. package/dist/effect/descriptors/journeys.js +133 -135
  51. package/dist/effect/descriptors/logs.d.ts +16 -18
  52. package/dist/effect/descriptors/logs.js +16 -18
  53. package/dist/effect/descriptors/mailboxes.d.ts +780 -782
  54. package/dist/effect/descriptors/mailboxes.js +795 -797
  55. package/dist/effect/descriptors/media.d.ts +43 -45
  56. package/dist/effect/descriptors/media.js +46 -48
  57. package/dist/effect/descriptors/messages.d.ts +86 -88
  58. package/dist/effect/descriptors/messages.js +83 -92
  59. package/dist/effect/descriptors/namespaces.d.ts +96 -98
  60. package/dist/effect/descriptors/namespaces.js +107 -109
  61. package/dist/effect/descriptors/newsletter-domains.d.ts +35 -37
  62. package/dist/effect/descriptors/newsletter-domains.js +39 -41
  63. package/dist/effect/descriptors/newsletter-issues.d.ts +98 -100
  64. package/dist/effect/descriptors/newsletter-issues.js +109 -111
  65. package/dist/effect/descriptors/newsletters.d.ts +43 -45
  66. package/dist/effect/descriptors/newsletters.js +46 -48
  67. package/dist/effect/descriptors/operations.d.ts +25 -27
  68. package/dist/effect/descriptors/operations.js +26 -28
  69. package/dist/effect/descriptors/organizations.d.ts +96 -98
  70. package/dist/effect/descriptors/organizations.js +86 -88
  71. package/dist/effect/descriptors/phone-numbers.d.ts +41 -43
  72. package/dist/effect/descriptors/phone-numbers.js +40 -42
  73. package/dist/effect/descriptors/policies.d.ts +26 -28
  74. package/dist/effect/descriptors/policies.js +29 -31
  75. package/dist/effect/descriptors/scheduled-messages.d.ts +42 -44
  76. package/dist/effect/descriptors/scheduled-messages.js +43 -45
  77. package/dist/effect/descriptors/subscriptions.d.ts +7 -9
  78. package/dist/effect/descriptors/subscriptions.js +3 -3
  79. package/dist/effect/descriptors/template-registrations.d.ts +26 -28
  80. package/dist/effect/descriptors/template-registrations.js +29 -31
  81. package/dist/effect/descriptors/template-share-links.d.ts +44 -46
  82. package/dist/effect/descriptors/template-share-links.js +49 -51
  83. package/dist/effect/descriptors/templates.d.ts +361 -363
  84. package/dist/effect/descriptors/templates.js +348 -350
  85. package/dist/effect/descriptors/topic-forms.d.ts +44 -46
  86. package/dist/effect/descriptors/topic-forms.js +49 -51
  87. package/dist/effect/descriptors/topics.d.ts +77 -79
  88. package/dist/effect/descriptors/topics.js +80 -82
  89. package/dist/effect/descriptors/webhooks.d.ts +96 -98
  90. package/dist/effect/descriptors/webhooks.js +103 -105
  91. package/dist/effect/descriptors/whats-app-flows.d.ts +86 -88
  92. package/dist/effect/descriptors/whats-app-flows.js +90 -92
  93. package/dist/effect/descriptors/whats-app-setup-links.d.ts +33 -35
  94. package/dist/effect/descriptors/whats-app-setup-links.js +33 -35
  95. package/dist/effect/descriptors/whats-app.d.ts +110 -112
  96. package/dist/effect/descriptors/whats-app.js +111 -113
  97. package/dist/effect/descriptors/whoami.d.ts +7 -9
  98. package/dist/effect/descriptors/whoami.js +3 -3
  99. package/dist/effect/email.js +66 -67
  100. package/dist/effect/events.js +5 -6
  101. package/dist/effect/feedback.js +4 -4
  102. package/dist/effect/generated/accounts.d.ts +144 -142
  103. package/dist/effect/generated/accounts.js +14 -9
  104. package/dist/effect/generated/agents.d.ts +1502 -1493
  105. package/dist/effect/generated/agents.js +28 -16
  106. package/dist/effect/generated/analytics.d.ts +55 -53
  107. package/dist/effect/generated/analytics.js +14 -9
  108. package/dist/effect/generated/api-keys.d.ts +216 -212
  109. package/dist/effect/generated/api-keys.js +18 -11
  110. package/dist/effect/generated/approval-requests.d.ts +60 -60
  111. package/dist/effect/generated/approval-requests.js +10 -7
  112. package/dist/effect/generated/attachments.d.ts +32 -32
  113. package/dist/effect/generated/attachments.js +10 -7
  114. package/dist/effect/generated/brands.d.ts +179 -177
  115. package/dist/effect/generated/brands.js +14 -9
  116. package/dist/effect/generated/campaigns.d.ts +1083 -1072
  117. package/dist/effect/generated/campaigns.js +32 -18
  118. package/dist/effect/generated/contact-events.d.ts +3 -6
  119. package/dist/effect/generated/contact-events.js +4 -4
  120. package/dist/effect/generated/contact-groups.d.ts +186 -180
  121. package/dist/effect/generated/contact-groups.js +22 -13
  122. package/dist/effect/generated/contacts.d.ts +1565 -1545
  123. package/dist/effect/generated/contacts.js +50 -27
  124. package/dist/effect/generated/conversations.d.ts +340 -331
  125. package/dist/effect/generated/conversations.js +28 -16
  126. package/dist/effect/generated/custom-fields.d.ts +63 -63
  127. package/dist/effect/generated/custom-fields.js +10 -7
  128. package/dist/effect/generated/email.d.ts +2731 -2671
  129. package/dist/effect/generated/email.js +130 -67
  130. package/dist/effect/generated/events.d.ts +160 -162
  131. package/dist/effect/generated/events.js +6 -5
  132. package/dist/effect/generated/feedback.d.ts +3 -6
  133. package/dist/effect/generated/feedback.js +4 -4
  134. package/dist/effect/generated/index.d.ts +174 -45
  135. package/dist/effect/generated/integrations-catalog.d.ts +459 -446
  136. package/dist/effect/generated/integrations-catalog.js +36 -20
  137. package/dist/effect/generated/integrations.d.ts +155 -152
  138. package/dist/effect/generated/integrations.js +16 -10
  139. package/dist/effect/generated/journeys.d.ts +864 -854
  140. package/dist/effect/generated/journeys.js +30 -17
  141. package/dist/effect/generated/logs.d.ts +147 -149
  142. package/dist/effect/generated/logs.js +6 -5
  143. package/dist/effect/generated/mailboxes.d.ts +7271 -7196
  144. package/dist/effect/generated/mailboxes.js +160 -82
  145. package/dist/effect/generated/media.d.ts +77 -76
  146. package/dist/effect/generated/media.js +12 -8
  147. package/dist/effect/generated/messages.d.ts +1092 -1086
  148. package/dist/effect/generated/messages.js +22 -13
  149. package/dist/effect/generated/namespaces.d.ts +184 -177
  150. package/dist/effect/generated/namespaces.js +24 -14
  151. package/dist/effect/generated/newsletter-domains.d.ts +57 -57
  152. package/dist/effect/generated/newsletter-domains.js +10 -7
  153. package/dist/effect/generated/newsletter-issues.d.ts +225 -218
  154. package/dist/effect/generated/newsletter-issues.js +24 -14
  155. package/dist/effect/generated/newsletters.d.ts +46 -45
  156. package/dist/effect/generated/newsletters.js +12 -8
  157. package/dist/effect/generated/operations.d.ts +79 -80
  158. package/dist/effect/generated/operations.js +8 -6
  159. package/dist/effect/generated/organizations.d.ts +438 -430
  160. package/dist/effect/generated/organizations.js +26 -15
  161. package/dist/effect/generated/phone-numbers.d.ts +87 -86
  162. package/dist/effect/generated/phone-numbers.js +12 -8
  163. package/dist/effect/generated/policies.d.ts +64 -65
  164. package/dist/effect/generated/policies.js +8 -6
  165. package/dist/effect/generated/scheduled-messages.d.ts +66 -65
  166. package/dist/effect/generated/scheduled-messages.js +12 -8
  167. package/dist/effect/generated/shared.d.ts +33 -33
  168. package/dist/effect/generated/shared.js +61 -61
  169. package/dist/effect/generated/subscriptions.d.ts +3 -6
  170. package/dist/effect/generated/subscriptions.js +4 -4
  171. package/dist/effect/generated/template-registrations.d.ts +135 -136
  172. package/dist/effect/generated/template-registrations.js +8 -6
  173. package/dist/effect/generated/template-share-links.d.ts +25 -24
  174. package/dist/effect/generated/template-share-links.js +12 -8
  175. package/dist/effect/generated/templates.d.ts +2678 -2645
  176. package/dist/effect/generated/templates.js +76 -40
  177. package/dist/effect/generated/topic-forms.d.ts +47 -46
  178. package/dist/effect/generated/topic-forms.js +12 -8
  179. package/dist/effect/generated/topics.d.ts +204 -199
  180. package/dist/effect/generated/topics.js +20 -12
  181. package/dist/effect/generated/webhooks.d.ts +268 -261
  182. package/dist/effect/generated/webhooks.js +24 -14
  183. package/dist/effect/generated/whats-app-flows.d.ts +250 -244
  184. package/dist/effect/generated/whats-app-flows.js +22 -13
  185. package/dist/effect/generated/whats-app-setup-links.d.ts +107 -107
  186. package/dist/effect/generated/whats-app-setup-links.js +10 -7
  187. package/dist/effect/generated/whats-app.d.ts +439 -430
  188. package/dist/effect/generated/whats-app.js +28 -16
  189. package/dist/effect/generated/whoami.d.ts +3 -6
  190. package/dist/effect/generated/whoami.js +4 -4
  191. package/dist/effect/integrations-catalog.js +20 -21
  192. package/dist/effect/integrations.js +10 -11
  193. package/dist/effect/internal/client.d.ts +2 -1
  194. package/dist/effect/internal/client.js +3 -3
  195. package/dist/effect/internal/email-sender.js +5 -4
  196. package/dist/effect/internal/operation.d.ts +11 -7
  197. package/dist/effect/internal/operation.js +17 -12
  198. package/dist/effect/internal/send.js +11 -8
  199. package/dist/effect/journeys.js +17 -18
  200. package/dist/effect/logs.js +5 -6
  201. package/dist/effect/mailboxes.js +82 -83
  202. package/dist/effect/media.js +8 -9
  203. package/dist/effect/messages.js +12 -13
  204. package/dist/effect/namespaces.js +14 -15
  205. package/dist/effect/newsletter-domains.js +7 -8
  206. package/dist/effect/newsletter-issues.js +14 -15
  207. package/dist/effect/newsletters.js +8 -9
  208. package/dist/effect/operations.js +6 -7
  209. package/dist/effect/organizations.js +15 -16
  210. package/dist/effect/phone-numbers.js +8 -9
  211. package/dist/effect/policies.js +6 -7
  212. package/dist/effect/runtime.js +3 -3
  213. package/dist/effect/scheduled-messages.js +8 -9
  214. package/dist/effect/subscriptions.js +4 -4
  215. package/dist/effect/template-registrations.js +6 -7
  216. package/dist/effect/template-share-links.js +8 -9
  217. package/dist/effect/templates.js +40 -41
  218. package/dist/effect/topic-forms.js +8 -9
  219. package/dist/effect/topics.js +12 -13
  220. package/dist/effect/webhooks.js +14 -15
  221. package/dist/effect/whatsapp-flows.js +13 -14
  222. package/dist/effect/whatsapp-setup-links.js +7 -8
  223. package/dist/effect/whatsapp.js +16 -17
  224. package/dist/effect/whoami.js +4 -4
  225. package/dist/package.json.js +1 -1
  226. package/package.json +3 -2
@@ -1,4 +1,4 @@
1
- import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
1
+ import { HttpApiEndpoint, HttpApiSchema, OpenApi } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
3
  import { AgentDefinition, AgentId, AgentModel, AgentModelChoice, AgentModuleBundle, AgentModuleManifest, AgentName, AgentReasoning, AgentSetupJob, ApiKeySecurityMiddleware, CatalogModelId, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, MonthlySpendCapDollars, NamespaceId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  // src/effect/generated/agents.ts
@@ -329,7 +329,7 @@ const AgentsListModels403 = ForbiddenError;
329
329
  const AgentsListModels422 = ValidationError;
330
330
  const AgentsListModels500 = InternalError;
331
331
  const AgentsListModels504 = GatewayTimeoutError;
332
- var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.get("agentsList", "/v1/agents", {
332
+ const AgentsListEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("agentsList", "/v1/agents", {
333
333
  query: AgentsListQuery,
334
334
  success: AgentsList200,
335
335
  error: [
@@ -340,7 +340,8 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
340
340
  AgentsList500,
341
341
  AgentsList504.pipe(HttpApiSchema.status(504))
342
342
  ]
343
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.list").annotate(OpenApi.Summary, "List agents").annotate(OpenApi.Description, "Returns the agents the caller can reach, newest first, without their drafts, optionally filtered by `namespaceId`. Pass nextCursor back as cursor for the next page."), HttpApiEndpoint.post("agentsCreate", "/v1/agents", {
343
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.list").annotate(OpenApi.Summary, "List agents").annotate(OpenApi.Description, "Returns the agents the caller can reach, newest first, without their drafts, optionally filtered by `namespaceId`. Pass nextCursor back as cursor for the next page."))();
344
+ const AgentsCreateEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("agentsCreate", "/v1/agents", {
344
345
  payload: AgentsCreateRequestJson,
345
346
  success: AgentsCreate201.pipe(HttpApiSchema.status(201)),
346
347
  error: [
@@ -353,7 +354,8 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
353
354
  AgentsCreate500,
354
355
  AgentsCreate504.pipe(HttpApiSchema.status(504))
355
356
  ]
356
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.create").annotate(OpenApi.Summary, "Create an agent").annotate(OpenApi.Description, "Creates an agent with a draft and returns it with status 201. The agent answers nothing until its draft is published. The default policy requires a person to approve replies and final actions. API keys need organization-wide reach to create with a custom policy. The namespace is set at creation and cannot change."), HttpApiEndpoint.get("agentsGet", "/v1/agents/:id", {
357
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.create").annotate(OpenApi.Summary, "Create an agent").annotate(OpenApi.Description, "Creates an agent with a draft and returns it with status 201. The agent answers nothing until its draft is published. The default policy requires a person to approve replies and final actions. API keys need organization-wide reach to create with a custom policy. The namespace is set at creation and cannot change."))();
358
+ const AgentsGetEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("agentsGet", "/v1/agents/:id", {
357
359
  params: AgentsGetPathParams,
358
360
  success: AgentsGet200,
359
361
  error: [
@@ -365,7 +367,8 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
365
367
  AgentsGet500,
366
368
  AgentsGet504.pipe(HttpApiSchema.status(504))
367
369
  ]
368
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.get").annotate(OpenApi.Summary, "Get an agent").annotate(OpenApi.Description, "Returns an agent with its draft, its current revision, and its newest published version number."), HttpApiEndpoint.delete("agentsRemove", "/v1/agents/:id", {
370
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.get").annotate(OpenApi.Summary, "Get an agent").annotate(OpenApi.Description, "Returns an agent with its draft, its current revision, and its newest published version number."))();
371
+ const AgentsRemoveEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("agentsRemove", "/v1/agents/:id", {
369
372
  params: AgentsRemovePathParams,
370
373
  success: AgentsRemove200,
371
374
  error: [
@@ -377,7 +380,8 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
377
380
  AgentsRemove500,
378
381
  AgentsRemove504.pipe(HttpApiSchema.status(504))
379
382
  ]
380
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.remove").annotate(OpenApi.Summary, "Delete an agent").annotate(OpenApi.Description, "Deletes an agent with its draft and published versions. The endpoints it answered on stop being answered by an agent. A reply already running finishes on the version it started on."), HttpApiEndpoint.patch("agentsUpdate", "/v1/agents/:id", {
383
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.remove").annotate(OpenApi.Summary, "Delete an agent").annotate(OpenApi.Description, "Deletes an agent with its draft and published versions. The endpoints it answered on stop being answered by an agent. A reply already running finishes on the version it started on."))();
384
+ const AgentsUpdateEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.patch("agentsUpdate", "/v1/agents/:id", {
381
385
  params: AgentsUpdatePathParams,
382
386
  payload: AgentsUpdateRequestJson,
383
387
  success: AgentsUpdate200,
@@ -390,7 +394,8 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
390
394
  AgentsUpdate500,
391
395
  AgentsUpdate504.pipe(HttpApiSchema.status(504))
392
396
  ]
393
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.update").annotate(OpenApi.Summary, "Update an agent").annotate(OpenApi.Description, "Renames an agent or sets its monthly spend cap. Both take effect at once, without publishing. At the cap the agent pauses and its conversations wait for your team until the month turns (UTC) or the cap is raised or removed."), HttpApiEndpoint.post("agentsContinueOnStandard", "/v1/agents/:id/continue-on-standard", {
397
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.update").annotate(OpenApi.Summary, "Update an agent").annotate(OpenApi.Description, "Renames an agent or sets its monthly spend cap. Both take effect at once, without publishing. At the cap the agent pauses and its conversations wait for your team until the month turns (UTC) or the cap is raised or removed."))();
398
+ const AgentsContinueOnStandardEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("agentsContinueOnStandard", "/v1/agents/:id/continue-on-standard", {
394
399
  params: AgentsContinueOnStandardPathParams,
395
400
  success: AgentsContinueOnStandard200,
396
401
  error: [
@@ -403,7 +408,8 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
403
408
  AgentsContinueOnStandard500,
404
409
  AgentsContinueOnStandard504.pipe(HttpApiSchema.status(504))
405
410
  ]
406
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.continueOnStandard").annotate(OpenApi.Summary, "Continue an agent on Standard").annotate(OpenApi.Description, "Publishes the live version again with its model set to standard, as the next immutable version, then removes the monthly spend cap. Use it when the agent pauses at its cap on a pinned model and should keep answering on Standard. The draft is left as it is, so its unpublished changes stay unpublished. The live version's reasoning level is kept when Standard supports it, and is auto otherwise. A live version already on standard publishes nothing and answers published false; the cap is still removed. An agent with no published version returns 422; a version published while the request runs returns 409."), HttpApiEndpoint.put("agentsReplaceDraft", "/v1/agents/:id/draft", {
411
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.continueOnStandard").annotate(OpenApi.Summary, "Continue an agent on Standard").annotate(OpenApi.Description, "Publishes the live version again with its model set to standard, as the next immutable version, then removes the monthly spend cap. Use it when the agent pauses at its cap on a pinned model and should keep answering on Standard. The draft is left as it is, so its unpublished changes stay unpublished. The live version's reasoning level is kept when Standard supports it, and is auto otherwise. A live version already on standard publishes nothing and answers published false; the cap is still removed. An agent with no published version returns 422; a version published while the request runs returns 409."))();
412
+ const AgentsReplaceDraftEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.put("agentsReplaceDraft", "/v1/agents/:id/draft", {
407
413
  params: AgentsReplaceDraftPathParams,
408
414
  payload: AgentsReplaceDraftRequestJson,
409
415
  success: AgentsReplaceDraft200,
@@ -418,7 +424,8 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
418
424
  AgentsReplaceDraft500,
419
425
  AgentsReplaceDraft504.pipe(HttpApiSchema.status(504))
420
426
  ]
421
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.replaceDraft").annotate(OpenApi.Summary, "Replace an agent draft").annotate(OpenApi.Description, "Replaces the whole draft and returns the agent with a new revision. The request names the revision it read; a stale revision returns 409. API keys need organization-wide reach to change the draft policy. Published versions, and the conversations answered on them, do not change. An endpoint answers for one agent at a time: a draft that names an endpoint another agent answers on returns 409. A draft that pins a catalog model returns 402 unless your plan is Growth or Scale, and 422 when the model is not available or does not support the reasoning level."), HttpApiEndpoint.post("agentsPublish", "/v1/agents/:id/publish", {
427
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.replaceDraft").annotate(OpenApi.Summary, "Replace an agent draft").annotate(OpenApi.Description, "Replaces the whole draft and returns the agent with a new revision. The request names the revision it read; a stale revision returns 409. API keys need organization-wide reach to change the draft policy. Published versions, and the conversations answered on them, do not change. An endpoint answers for one agent at a time: a draft that names an endpoint another agent answers on returns 409. A draft that pins a catalog model returns 402 unless your plan is Growth or Scale, and 422 when the model is not available or does not support the reasoning level."))();
428
+ const AgentsPublishEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("agentsPublish", "/v1/agents/:id/publish", {
422
429
  params: AgentsPublishPathParams,
423
430
  payload: AgentsPublishRequestJson,
424
431
  success: AgentsPublish200,
@@ -433,7 +440,8 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
433
440
  AgentsPublish500,
434
441
  AgentsPublish504.pipe(HttpApiSchema.status(504))
435
442
  ]
436
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.publish").annotate(OpenApi.Summary, "Publish an agent").annotate(OpenApi.Description, "Publishes the draft as the next immutable version. API keys need organization-wide reach to publish a policy change. Each conversation moves to it from its next agent reply; a reply already running finishes on the version it started on. The request names the revision it read; a stale revision returns 409. Publishing a draft identical to the newest version changes nothing and answers published false. An endpoint answers for one agent at a time: publishing a draft whose endpoint another agent answers on returns 409. The published policy governs review of each proposed action."), HttpApiEndpoint.post("agentsRerunTests", "/v1/agents/:id/tests/rerun", {
443
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.publish").annotate(OpenApi.Summary, "Publish an agent").annotate(OpenApi.Description, "Publishes the draft as the next immutable version. API keys need organization-wide reach to publish a policy change. Each conversation moves to it from its next agent reply; a reply already running finishes on the version it started on. The request names the revision it read; a stale revision returns 409. Publishing a draft identical to the newest version changes nothing and answers published false. An endpoint answers for one agent at a time: publishing a draft whose endpoint another agent answers on returns 409. The published policy governs review of each proposed action."))();
444
+ const AgentsRerunTestsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("agentsRerunTests", "/v1/agents/:id/tests/rerun", {
437
445
  params: AgentsRerunTestsPathParams,
438
446
  payload: AgentsRerunTestsRequestJson,
439
447
  success: AgentsRerunTests200,
@@ -446,7 +454,8 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
446
454
  AgentsRerunTests500,
447
455
  AgentsRerunTests504.pipe(HttpApiSchema.status(504))
448
456
  ]
449
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.rerunTests").annotate(OpenApi.Summary, "Compare saved-test decisions").annotate(OpenApi.Description, "Runs saved tests against a supplied draft and the current immutable published definition, returning changed action decisions. No test or agent is modified and nothing is sent. Large comparisons can time out; run saved tests individually or shorten their conversations before retrying."), HttpApiEndpoint.get("agentsListVersions", "/v1/agents/:id/versions", {
457
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.rerunTests").annotate(OpenApi.Summary, "Compare saved-test decisions").annotate(OpenApi.Description, "Runs saved tests against a supplied draft and the current immutable published definition, returning changed action decisions. No test or agent is modified and nothing is sent. Large comparisons can time out; run saved tests individually or shorten their conversations before retrying."))();
458
+ const AgentsListVersionsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("agentsListVersions", "/v1/agents/:id/versions", {
450
459
  params: AgentsListVersionsPathParams,
451
460
  query: AgentsListVersionsQuery,
452
461
  success: AgentsListVersions200,
@@ -459,7 +468,8 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
459
468
  AgentsListVersions500,
460
469
  AgentsListVersions504.pipe(HttpApiSchema.status(504))
461
470
  ]
462
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.listVersions").annotate(OpenApi.Summary, "List published agent versions").annotate(OpenApi.Description, "Returns an agent's published versions, newest first, without their definitions. Pass nextCursor back as cursor for the next page."), HttpApiEndpoint.post("agentsPublishVersion", "/v1/agents/:id/versions", {
471
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.listVersions").annotate(OpenApi.Summary, "List published agent versions").annotate(OpenApi.Description, "Returns an agent's published versions, newest first, without their definitions. Pass nextCursor back as cursor for the next page."))();
472
+ const AgentsPublishVersionEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("agentsPublishVersion", "/v1/agents/:id/versions", {
463
473
  params: AgentsPublishVersionPathParams,
464
474
  payload: AgentsPublishVersionRequestJson,
465
475
  success: AgentsPublishVersion200,
@@ -474,7 +484,8 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
474
484
  AgentsPublishVersion500,
475
485
  AgentsPublishVersion504.pipe(HttpApiSchema.status(504))
476
486
  ]
477
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.publishVersion").annotate(OpenApi.Summary, "Publish an agent module").annotate(OpenApi.Description, "Publishes a self-contained JavaScript module and its manifest as the next immutable version. API keys need organization-wide reach to publish a policy change. Source is stored by its SHA-256 digest without execution. The revision protects the draft read by the publisher; a stale revision returns 409. Publishing the same manifest, source, and definition again returns published false. The manifest controls the model, endpoints, integration grants, and action policy. Draft instructions and knowledge remain editable builder data; the hosted runtime reads instructions and tools from the published module."), HttpApiEndpoint.get("agentsGetVersion", "/v1/agents/:id/versions/:version", {
487
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.publishVersion").annotate(OpenApi.Summary, "Publish an agent module").annotate(OpenApi.Description, "Publishes a self-contained JavaScript module and its manifest as the next immutable version. API keys need organization-wide reach to publish a policy change. Source is stored by its SHA-256 digest without execution. The revision protects the draft read by the publisher; a stale revision returns 409. Publishing the same manifest, source, and definition again returns published false. The manifest controls the model, endpoints, integration grants, and action policy. Draft instructions and knowledge remain editable builder data; the hosted runtime reads instructions and tools from the published module."))();
488
+ const AgentsGetVersionEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("agentsGetVersion", "/v1/agents/:id/versions/:version", {
478
489
  params: AgentsGetVersionPathParams,
479
490
  success: AgentsGetVersion200,
480
491
  error: [
@@ -486,7 +497,8 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
486
497
  AgentsGetVersion500,
487
498
  AgentsGetVersion504.pipe(HttpApiSchema.status(504))
488
499
  ]
489
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.getVersion").annotate(OpenApi.Summary, "Get a published agent version").annotate(OpenApi.Description, "Returns the immutable definition and bundle digest, size, and manifest of one published version."), HttpApiEndpoint.get("agentsListModels", "/v1/agents/models", {
500
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.getVersion").annotate(OpenApi.Summary, "Get a published agent version").annotate(OpenApi.Description, "Returns the immutable definition and bundle digest, size, and manifest of one published version."))();
501
+ const AgentsListModelsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("agentsListModels", "/v1/agents/models", {
490
502
  success: AgentsListModels200,
491
503
  error: [
492
504
  AgentsListModels400.pipe(HttpApiSchema.status(400)),
@@ -496,7 +508,7 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
496
508
  AgentsListModels500,
497
509
  AgentsListModels504.pipe(HttpApiSchema.status(504))
498
510
  ]
499
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.listModels").annotate(OpenApi.Summary, "List agent models").annotate(OpenApi.Description, "Returns the models an agent can run on: the standard and max aliases, each with the model it points at today, then every catalog model an agent can pin. Each entry has its price per million tokens, the reasoning levels it accepts with an estimate of a typical reply at each, and whether your plan includes it. Pinning a catalog model needs the Growth or Scale plan.")).annotate(OpenApi.Description, "Agents that answer conversations on your mailbox endpoints, with a draft, published versions, and rules for action review, hours, and staff takeover") {};
500
- export { Agent, AgentBundle, AgentListItem, AgentModelAccess, AgentModelCatalog, AgentModelFallback, AgentModelOption, AgentModelPrice, AgentModelReasoning, AgentPage, AgentSpend, AgentTestDecision, AgentTestId, AgentTestRerun, AgentVersion, AgentVersionPage, AgentVersionSummary, AgentsContinueOnStandard200, AgentsContinueOnStandard400, AgentsContinueOnStandard401, AgentsContinueOnStandard403, AgentsContinueOnStandard404, AgentsContinueOnStandard409, AgentsContinueOnStandard422, AgentsContinueOnStandard500, AgentsContinueOnStandard504, AgentsContinueOnStandardPathParams, AgentsCreate201, AgentsCreate400, AgentsCreate401, AgentsCreate402, AgentsCreate403, AgentsCreate404, AgentsCreate422, AgentsCreate500, AgentsCreate504, AgentsCreateRequestJson, AgentsGet200, AgentsGet400, AgentsGet401, AgentsGet403, AgentsGet404, AgentsGet422, AgentsGet500, AgentsGet504, AgentsGetPathParams, AgentsGetVersion200, AgentsGetVersion400, AgentsGetVersion401, AgentsGetVersion403, AgentsGetVersion404, AgentsGetVersion422, AgentsGetVersion500, AgentsGetVersion504, AgentsGetVersionPathParams, AgentsGroup, AgentsList200, AgentsList400, AgentsList401, AgentsList403, AgentsList422, AgentsList500, AgentsList504, AgentsListModels200, AgentsListModels400, AgentsListModels401, AgentsListModels403, AgentsListModels422, AgentsListModels500, AgentsListModels504, AgentsListQuery, AgentsListVersions200, AgentsListVersions400, AgentsListVersions401, AgentsListVersions403, AgentsListVersions404, AgentsListVersions422, AgentsListVersions500, AgentsListVersions504, AgentsListVersionsPathParams, AgentsListVersionsQuery, AgentsPublish200, AgentsPublish400, AgentsPublish401, AgentsPublish402, AgentsPublish403, AgentsPublish404, AgentsPublish409, AgentsPublish422, AgentsPublish500, AgentsPublish504, AgentsPublishPathParams, AgentsPublishRequestJson, AgentsPublishVersion200, AgentsPublishVersion400, AgentsPublishVersion401, AgentsPublishVersion402, AgentsPublishVersion403, AgentsPublishVersion404, AgentsPublishVersion409, AgentsPublishVersion422, AgentsPublishVersion500, AgentsPublishVersion504, AgentsPublishVersionPathParams, AgentsPublishVersionRequestJson, AgentsRemove200, AgentsRemove400, AgentsRemove401, AgentsRemove403, AgentsRemove404, AgentsRemove422, AgentsRemove500, AgentsRemove504, AgentsRemovePathParams, AgentsReplaceDraft200, AgentsReplaceDraft400, AgentsReplaceDraft401, AgentsReplaceDraft402, AgentsReplaceDraft403, AgentsReplaceDraft404, AgentsReplaceDraft409, AgentsReplaceDraft422, AgentsReplaceDraft500, AgentsReplaceDraft504, AgentsReplaceDraftPathParams, AgentsReplaceDraftRequestJson, AgentsRerunTests200, AgentsRerunTests400, AgentsRerunTests401, AgentsRerunTests403, AgentsRerunTests404, AgentsRerunTests422, AgentsRerunTests500, AgentsRerunTests504, AgentsRerunTestsPathParams, AgentsRerunTestsRequestJson, AgentsUpdate200, AgentsUpdate400, AgentsUpdate401, AgentsUpdate403, AgentsUpdate404, AgentsUpdate422, AgentsUpdate500, AgentsUpdate504, AgentsUpdatePathParams, AgentsUpdateRequestJson, DeleteAgentResponse, ModelFallbackReason, PublishAgentResponse };
511
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.listModels").annotate(OpenApi.Summary, "List agent models").annotate(OpenApi.Description, "Returns the models an agent can run on: the standard and max aliases, each with the model it points at today, then every catalog model an agent can pin. Each entry has its price per million tokens, the reasoning levels it accepts with an estimate of a typical reply at each, and whether your plan includes it. Pinning a catalog model needs the Growth or Scale plan."))();
512
+ export { Agent, AgentBundle, AgentListItem, AgentModelAccess, AgentModelCatalog, AgentModelFallback, AgentModelOption, AgentModelPrice, AgentModelReasoning, AgentPage, AgentSpend, AgentTestDecision, AgentTestId, AgentTestRerun, AgentVersion, AgentVersionPage, AgentVersionSummary, AgentsContinueOnStandard200, AgentsContinueOnStandard400, AgentsContinueOnStandard401, AgentsContinueOnStandard403, AgentsContinueOnStandard404, AgentsContinueOnStandard409, AgentsContinueOnStandard422, AgentsContinueOnStandard500, AgentsContinueOnStandard504, AgentsContinueOnStandardEndpoint, AgentsContinueOnStandardPathParams, AgentsCreate201, AgentsCreate400, AgentsCreate401, AgentsCreate402, AgentsCreate403, AgentsCreate404, AgentsCreate422, AgentsCreate500, AgentsCreate504, AgentsCreateEndpoint, AgentsCreateRequestJson, AgentsGet200, AgentsGet400, AgentsGet401, AgentsGet403, AgentsGet404, AgentsGet422, AgentsGet500, AgentsGet504, AgentsGetEndpoint, AgentsGetPathParams, AgentsGetVersion200, AgentsGetVersion400, AgentsGetVersion401, AgentsGetVersion403, AgentsGetVersion404, AgentsGetVersion422, AgentsGetVersion500, AgentsGetVersion504, AgentsGetVersionEndpoint, AgentsGetVersionPathParams, AgentsList200, AgentsList400, AgentsList401, AgentsList403, AgentsList422, AgentsList500, AgentsList504, AgentsListEndpoint, AgentsListModels200, AgentsListModels400, AgentsListModels401, AgentsListModels403, AgentsListModels422, AgentsListModels500, AgentsListModels504, AgentsListModelsEndpoint, AgentsListQuery, AgentsListVersions200, AgentsListVersions400, AgentsListVersions401, AgentsListVersions403, AgentsListVersions404, AgentsListVersions422, AgentsListVersions500, AgentsListVersions504, AgentsListVersionsEndpoint, AgentsListVersionsPathParams, AgentsListVersionsQuery, AgentsPublish200, AgentsPublish400, AgentsPublish401, AgentsPublish402, AgentsPublish403, AgentsPublish404, AgentsPublish409, AgentsPublish422, AgentsPublish500, AgentsPublish504, AgentsPublishEndpoint, AgentsPublishPathParams, AgentsPublishRequestJson, AgentsPublishVersion200, AgentsPublishVersion400, AgentsPublishVersion401, AgentsPublishVersion402, AgentsPublishVersion403, AgentsPublishVersion404, AgentsPublishVersion409, AgentsPublishVersion422, AgentsPublishVersion500, AgentsPublishVersion504, AgentsPublishVersionEndpoint, AgentsPublishVersionPathParams, AgentsPublishVersionRequestJson, AgentsRemove200, AgentsRemove400, AgentsRemove401, AgentsRemove403, AgentsRemove404, AgentsRemove422, AgentsRemove500, AgentsRemove504, AgentsRemoveEndpoint, AgentsRemovePathParams, AgentsReplaceDraft200, AgentsReplaceDraft400, AgentsReplaceDraft401, AgentsReplaceDraft402, AgentsReplaceDraft403, AgentsReplaceDraft404, AgentsReplaceDraft409, AgentsReplaceDraft422, AgentsReplaceDraft500, AgentsReplaceDraft504, AgentsReplaceDraftEndpoint, AgentsReplaceDraftPathParams, AgentsReplaceDraftRequestJson, AgentsRerunTests200, AgentsRerunTests400, AgentsRerunTests401, AgentsRerunTests403, AgentsRerunTests404, AgentsRerunTests422, AgentsRerunTests500, AgentsRerunTests504, AgentsRerunTestsEndpoint, AgentsRerunTestsPathParams, AgentsRerunTestsRequestJson, AgentsUpdate200, AgentsUpdate400, AgentsUpdate401, AgentsUpdate403, AgentsUpdate404, AgentsUpdate422, AgentsUpdate500, AgentsUpdate504, AgentsUpdateEndpoint, AgentsUpdatePathParams, AgentsUpdateRequestJson, DeleteAgentResponse, ModelFallbackReason, PublishAgentResponse };
501
513
 
502
514
  //# sourceMappingURL=agents.js.map
@@ -1,4 +1,4 @@
1
- import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
1
+ import { HttpApiEndpoint } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
3
  import { AnalyticsQueryError, ApiKeySecurityMiddleware, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, UnauthorizedError, ValidationError, __SamvaRuntimeAbsoluteInstant } from "./shared.js";
4
4
  export type AnalyticsGetChannelStatsQuery = {
@@ -263,16 +263,35 @@ export type AnalyticsGetTopContacts500 = InternalError;
263
263
  export declare const AnalyticsGetTopContacts500: typeof InternalError;
264
264
  export type AnalyticsGetTopContacts504 = GatewayTimeoutError;
265
265
  export declare const AnalyticsGetTopContacts504: typeof GatewayTimeoutError;
266
- declare const AnalyticsGroup_base: HttpApiGroup.HttpApiGroup<"Analytics", HttpApiEndpoint.HttpApiEndpoint<"analyticsExportData", "POST", "/v1/analytics/export", never, never, Schema.toCodecJson<Schema.Struct<{
267
- readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
268
- readonly after: Schema.decodeTo<Schema.Date, Schema.String, never, never>;
269
- readonly before: Schema.decodeTo<Schema.Date, Schema.String, never, never>;
270
- readonly format: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"csv">, Schema.Literal<"json">]>, Schema.Null]>>;
271
- readonly includeChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
272
- }>>, never, Schema.toCodecJson<Schema.Struct<{
273
- readonly content: Schema.String;
274
- readonly mimeType: Schema.String;
275
- readonly filename: Schema.String;
266
+ export declare const AnalyticsGetChannelStatsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"analyticsGetChannelStats", "GET", "/v1/analytics/channel-stats", never, Schema.toCodecStringTree<Schema.Struct<{
267
+ readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
268
+ readonly after: Schema.optionalKey<Schema.decodeTo<Schema.Date, Schema.String, never, never>>;
269
+ readonly before: Schema.optionalKey<Schema.decodeTo<Schema.Date, Schema.String, never, never>>;
270
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
271
+ readonly email: Schema.Struct<{
272
+ readonly sent: Schema.Finite;
273
+ readonly deliveryRate: Schema.Finite;
274
+ readonly uniqueOpenedMessages: Schema.Finite;
275
+ readonly openTrackingEligibleDeliveredMessages: Schema.Finite;
276
+ readonly uniqueMessageOpenRate: Schema.Finite;
277
+ readonly uniqueClickedMessages: Schema.Finite;
278
+ readonly clickTrackingEligibleDeliveredMessages: Schema.Finite;
279
+ readonly uniqueMessageClickRate: Schema.Finite;
280
+ readonly bounceRate: Schema.Finite;
281
+ }>;
282
+ readonly whatsapp: Schema.Struct<{
283
+ readonly sent: Schema.Finite;
284
+ readonly deliveryRate: Schema.Finite;
285
+ readonly readRate: Schema.Finite;
286
+ readonly failureRate: Schema.Finite;
287
+ readonly avgResponseTime: Schema.Finite;
288
+ }>;
289
+ readonly sms: Schema.Struct<{
290
+ readonly sent: Schema.Finite;
291
+ readonly deliveryRate: Schema.Finite;
292
+ readonly failureRate: Schema.Finite;
293
+ readonly totalSegments: Schema.Finite;
294
+ }>;
276
295
  }>>, Schema.toCodecJson<Schema.Union<readonly [typeof AnalyticsQueryError, typeof MalformedRequestError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
277
296
  readonly _tag: "ForbiddenError";
278
297
  readonly message: string;
@@ -333,35 +352,17 @@ declare const AnalyticsGroup_base: HttpApiGroup.HttpApiGroup<"Analytics", HttpAp
333
352
  readonly _tag: Schema.tag<"ValidationError">;
334
353
  readonly message: Schema.String;
335
354
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
336
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"analyticsGetChannelStats", "GET", "/v1/analytics/channel-stats", never, Schema.toCodecStringTree<Schema.Struct<{
355
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
356
+ export declare const AnalyticsGetDeliveryMetricsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"analyticsGetDeliveryMetrics", "GET", "/v1/analytics/delivery-metrics", never, Schema.toCodecStringTree<Schema.Struct<{
337
357
  readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
338
358
  readonly after: Schema.optionalKey<Schema.decodeTo<Schema.Date, Schema.String, never, never>>;
339
359
  readonly before: Schema.optionalKey<Schema.decodeTo<Schema.Date, Schema.String, never, never>>;
360
+ readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>;
340
361
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
341
- readonly email: Schema.Struct<{
342
- readonly sent: Schema.Finite;
343
- readonly deliveryRate: Schema.Finite;
344
- readonly uniqueOpenedMessages: Schema.Finite;
345
- readonly openTrackingEligibleDeliveredMessages: Schema.Finite;
346
- readonly uniqueMessageOpenRate: Schema.Finite;
347
- readonly uniqueClickedMessages: Schema.Finite;
348
- readonly clickTrackingEligibleDeliveredMessages: Schema.Finite;
349
- readonly uniqueMessageClickRate: Schema.Finite;
350
- readonly bounceRate: Schema.Finite;
351
- }>;
352
- readonly whatsapp: Schema.Struct<{
353
- readonly sent: Schema.Finite;
354
- readonly deliveryRate: Schema.Finite;
355
- readonly readRate: Schema.Finite;
356
- readonly failureRate: Schema.Finite;
357
- readonly avgResponseTime: Schema.Finite;
358
- }>;
359
- readonly sms: Schema.Struct<{
360
- readonly sent: Schema.Finite;
361
- readonly deliveryRate: Schema.Finite;
362
- readonly failureRate: Schema.Finite;
363
- readonly totalSegments: Schema.Finite;
364
- }>;
362
+ readonly deliveredRate: Schema.Finite;
363
+ readonly failedRate: Schema.Finite;
364
+ readonly pendingRate: Schema.Finite;
365
+ readonly avgDeliveryTimeMs: Schema.Finite;
365
366
  }>>, Schema.toCodecJson<Schema.Union<readonly [typeof AnalyticsQueryError, typeof MalformedRequestError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
366
367
  readonly _tag: "ForbiddenError";
367
368
  readonly message: string;
@@ -422,16 +423,17 @@ declare const AnalyticsGroup_base: HttpApiGroup.HttpApiGroup<"Analytics", HttpAp
422
423
  readonly _tag: Schema.tag<"ValidationError">;
423
424
  readonly message: Schema.String;
424
425
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
425
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"analyticsGetDeliveryMetrics", "GET", "/v1/analytics/delivery-metrics", never, Schema.toCodecStringTree<Schema.Struct<{
426
- readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
427
- readonly after: Schema.optionalKey<Schema.decodeTo<Schema.Date, Schema.String, never, never>>;
428
- readonly before: Schema.optionalKey<Schema.decodeTo<Schema.Date, Schema.String, never, never>>;
429
- readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>;
430
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
431
- readonly deliveredRate: Schema.Finite;
432
- readonly failedRate: Schema.Finite;
433
- readonly pendingRate: Schema.Finite;
434
- readonly avgDeliveryTimeMs: Schema.Finite;
426
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
427
+ export declare const AnalyticsExportDataEndpoint: HttpApiEndpoint.HttpApiEndpoint<"analyticsExportData", "POST", "/v1/analytics/export", never, never, Schema.toCodecJson<Schema.Struct<{
428
+ readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
429
+ readonly after: Schema.decodeTo<Schema.Date, Schema.String, never, never>;
430
+ readonly before: Schema.decodeTo<Schema.Date, Schema.String, never, never>;
431
+ readonly format: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"csv">, Schema.Literal<"json">]>, Schema.Null]>>;
432
+ readonly includeChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
433
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
434
+ readonly content: Schema.String;
435
+ readonly mimeType: Schema.String;
436
+ readonly filename: Schema.String;
435
437
  }>>, Schema.toCodecJson<Schema.Union<readonly [typeof AnalyticsQueryError, typeof MalformedRequestError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
436
438
  readonly _tag: "ForbiddenError";
437
439
  readonly message: string;
@@ -492,7 +494,8 @@ declare const AnalyticsGroup_base: HttpApiGroup.HttpApiGroup<"Analytics", HttpAp
492
494
  readonly _tag: Schema.tag<"ValidationError">;
493
495
  readonly message: Schema.String;
494
496
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
495
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"analyticsGetHourlyDistribution", "GET", "/v1/analytics/hourly-distribution", never, Schema.toCodecStringTree<Schema.Struct<{
497
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
498
+ export declare const AnalyticsGetHourlyDistributionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"analyticsGetHourlyDistribution", "GET", "/v1/analytics/hourly-distribution", never, Schema.toCodecStringTree<Schema.Struct<{
496
499
  readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
497
500
  readonly after: Schema.optionalKey<Schema.decodeTo<Schema.Date, Schema.String, never, never>>;
498
501
  readonly before: Schema.optionalKey<Schema.decodeTo<Schema.Date, Schema.String, never, never>>;
@@ -560,7 +563,8 @@ declare const AnalyticsGroup_base: HttpApiGroup.HttpApiGroup<"Analytics", HttpAp
560
563
  readonly _tag: Schema.tag<"ValidationError">;
561
564
  readonly message: Schema.String;
562
565
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
563
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"analyticsGetStats", "GET", "/v1/analytics/stats", never, Schema.toCodecStringTree<Schema.Struct<{
566
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
567
+ export declare const AnalyticsGetStatsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"analyticsGetStats", "GET", "/v1/analytics/stats", never, Schema.toCodecStringTree<Schema.Struct<{
564
568
  readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
565
569
  readonly after: Schema.optionalKey<Schema.decodeTo<Schema.Date, Schema.String, never, never>>;
566
570
  readonly before: Schema.optionalKey<Schema.decodeTo<Schema.Date, Schema.String, never, never>>;
@@ -634,7 +638,8 @@ declare const AnalyticsGroup_base: HttpApiGroup.HttpApiGroup<"Analytics", HttpAp
634
638
  readonly _tag: Schema.tag<"ValidationError">;
635
639
  readonly message: Schema.String;
636
640
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
637
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"analyticsGetTopContacts", "GET", "/v1/analytics/top-contacts", never, Schema.toCodecStringTree<Schema.Struct<{
641
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
642
+ export declare const AnalyticsGetTopContactsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"analyticsGetTopContacts", "GET", "/v1/analytics/top-contacts", never, Schema.toCodecStringTree<Schema.Struct<{
638
643
  readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
639
644
  readonly after: Schema.optionalKey<Schema.decodeTo<Schema.Date, Schema.String, never, never>>;
640
645
  readonly before: Schema.optionalKey<Schema.decodeTo<Schema.Date, Schema.String, never, never>>;
@@ -706,7 +711,4 @@ declare const AnalyticsGroup_base: HttpApiGroup.HttpApiGroup<"Analytics", HttpAp
706
711
  readonly _tag: Schema.tag<"ValidationError">;
707
712
  readonly message: Schema.String;
708
713
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
709
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>, false>;
710
- export declare class AnalyticsGroup extends AnalyticsGroup_base {
711
- }
712
- export {};
714
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
@@ -1,5 +1,5 @@
1
1
  import { AbsoluteInstant } from "../runtime.js";
2
- import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
2
+ import { HttpApiEndpoint, HttpApiSchema, OpenApi } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
4
  import { AnalyticsQueryError, ApiKeySecurityMiddleware, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, UnauthorizedError, ValidationError } from "./shared.js";
5
5
  // src/effect/generated/analytics.ts
@@ -152,7 +152,7 @@ const AnalyticsGetTopContacts403 = ForbiddenError;
152
152
  const AnalyticsGetTopContacts422 = ValidationError;
153
153
  const AnalyticsGetTopContacts500 = InternalError;
154
154
  const AnalyticsGetTopContacts504 = GatewayTimeoutError;
155
- var AnalyticsGroup = class extends HttpApiGroup.make("Analytics").add(HttpApiEndpoint.get("analyticsGetChannelStats", "/v1/analytics/channel-stats", {
155
+ const AnalyticsGetChannelStatsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("analyticsGetChannelStats", "/v1/analytics/channel-stats", {
156
156
  query: AnalyticsGetChannelStatsQuery,
157
157
  success: AnalyticsGetChannelStats200,
158
158
  error: [
@@ -163,7 +163,8 @@ var AnalyticsGroup = class extends HttpApiGroup.make("Analytics").add(HttpApiEnd
163
163
  AnalyticsGetChannelStats500,
164
164
  AnalyticsGetChannelStats504.pipe(HttpApiSchema.status(504))
165
165
  ]
166
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "analytics.getChannelStats").annotate(OpenApi.Summary, "Get channel performance analytics").annotate(OpenApi.Description, "Returns aggregate delivery metrics plus unique-message email Open and Click rates over the selected date range. `sent` counts every outbound message accepted in the range; each rate is taken over the messages the channel actually attempted, so one still waiting to be sent neither helps nor hurts it. Each engagement rate uses the corresponding tracking-eligible delivered-message cohort; repeated provider observations do not inflate the numerator."), HttpApiEndpoint.get("analyticsGetDeliveryMetrics", "/v1/analytics/delivery-metrics", {
166
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "analytics.getChannelStats").annotate(OpenApi.Summary, "Get channel performance analytics").annotate(OpenApi.Description, "Returns aggregate delivery metrics plus unique-message email Open and Click rates over the selected date range. `sent` counts every outbound message accepted in the range; each rate is taken over the messages the channel actually attempted, so one still waiting to be sent neither helps nor hurts it. Each engagement rate uses the corresponding tracking-eligible delivered-message cohort; repeated provider observations do not inflate the numerator."))();
167
+ const AnalyticsGetDeliveryMetricsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("analyticsGetDeliveryMetrics", "/v1/analytics/delivery-metrics", {
167
168
  query: AnalyticsGetDeliveryMetricsQuery,
168
169
  success: AnalyticsGetDeliveryMetrics200,
169
170
  error: [
@@ -174,7 +175,8 @@ var AnalyticsGroup = class extends HttpApiGroup.make("Analytics").add(HttpApiEnd
174
175
  AnalyticsGetDeliveryMetrics500,
175
176
  AnalyticsGetDeliveryMetrics504.pipe(HttpApiSchema.status(504))
176
177
  ]
177
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "analytics.getDeliveryMetrics").annotate(OpenApi.Summary, "Get message delivery metrics").annotate(OpenApi.Description, "Returns delivered, failed, and pending rates plus average delivery time for the outbound messages accepted in the selected date range, optionally filtered by channel. Every accepted message falls into exactly one of the three, so they always sum to 100%: a complaint counts as delivered because the message arrived, a bounce counts as failed, and anything the provider has not resolved yet counts as pending. Mail your organization received is not rated here."), HttpApiEndpoint.post("analyticsExportData", "/v1/analytics/export", {
178
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "analytics.getDeliveryMetrics").annotate(OpenApi.Summary, "Get message delivery metrics").annotate(OpenApi.Description, "Returns delivered, failed, and pending rates plus average delivery time for the outbound messages accepted in the selected date range, optionally filtered by channel. Every accepted message falls into exactly one of the three, so they always sum to 100%: a complaint counts as delivered because the message arrived, a bounce counts as failed, and anything the provider has not resolved yet counts as pending. Mail your organization received is not rated here."))();
179
+ const AnalyticsExportDataEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("analyticsExportData", "/v1/analytics/export", {
178
180
  payload: AnalyticsExportDataRequestJson,
179
181
  success: AnalyticsExportData200,
180
182
  error: [
@@ -185,7 +187,8 @@ var AnalyticsGroup = class extends HttpApiGroup.make("Analytics").add(HttpApiEnd
185
187
  AnalyticsExportData500,
186
188
  AnalyticsExportData504.pipe(HttpApiSchema.status(504))
187
189
  ]
188
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "analytics.exportData").annotate(OpenApi.Summary, "Export messaging analytics data").annotate(OpenApi.Description, "Exports one record per outbound message accepted in the given date range as CSV or JSON and returns the file content inline. CSV follows RFC 4180: fields containing a quote, comma, or line break are quoted with embedded quotes doubled, and records are separated by CRLF. At most 10,000 records are returned, newest first."), HttpApiEndpoint.get("analyticsGetHourlyDistribution", "/v1/analytics/hourly-distribution", {
190
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "analytics.exportData").annotate(OpenApi.Summary, "Export messaging analytics data").annotate(OpenApi.Description, "Exports one record per outbound message accepted in the given date range as CSV or JSON and returns the file content inline. CSV follows RFC 4180: fields containing a quote, comma, or line break are quoted with embedded quotes doubled, and records are separated by CRLF. At most 10,000 records are returned, newest first."))();
191
+ const AnalyticsGetHourlyDistributionEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("analyticsGetHourlyDistribution", "/v1/analytics/hourly-distribution", {
189
192
  query: AnalyticsGetHourlyDistributionQuery,
190
193
  success: AnalyticsGetHourlyDistribution200,
191
194
  error: [
@@ -196,7 +199,8 @@ var AnalyticsGroup = class extends HttpApiGroup.make("Analytics").add(HttpApiEnd
196
199
  AnalyticsGetHourlyDistribution500,
197
200
  AnalyticsGetHourlyDistribution504.pipe(HttpApiSchema.status(504))
198
201
  ]
199
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "analytics.getHourlyDistribution").annotate(OpenApi.Summary, "Get hourly message distribution").annotate(OpenApi.Description, "Returns outbound message counts over the half-open selected instant range, bucketed by organization-local hour. Empty ranges return no rows; non-empty ranges include all 24 hours."), HttpApiEndpoint.get("analyticsGetStats", "/v1/analytics/stats", {
202
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "analytics.getHourlyDistribution").annotate(OpenApi.Summary, "Get hourly message distribution").annotate(OpenApi.Description, "Returns outbound message counts over the half-open selected instant range, bucketed by organization-local hour. Empty ranges return no rows; non-empty ranges include all 24 hours."))();
203
+ const AnalyticsGetStatsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("analyticsGetStats", "/v1/analytics/stats", {
200
204
  query: AnalyticsGetStatsQuery,
201
205
  success: AnalyticsGetStats200,
202
206
  error: [
@@ -207,7 +211,8 @@ var AnalyticsGroup = class extends HttpApiGroup.make("Analytics").add(HttpApiEnd
207
211
  AnalyticsGetStats500,
208
212
  AnalyticsGetStats504.pipe(HttpApiSchema.status(504))
209
213
  ]
210
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "analytics.getStats").annotate(OpenApi.Summary, "Get message volume analytics").annotate(OpenApi.Description, "Returns outbound message counts over the half-open selected instant range, grouped by organization-local calendar day, week, or month. A range with traffic returns every bucket in it, including the ones that saw none; a range with no outbound traffic at all returns no buckets. A range with no `before` runs through the current instant, so its quiet trailing buckets are reported as zero."), HttpApiEndpoint.get("analyticsGetTopContacts", "/v1/analytics/top-contacts", {
214
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "analytics.getStats").annotate(OpenApi.Summary, "Get message volume analytics").annotate(OpenApi.Description, "Returns outbound message counts over the half-open selected instant range, grouped by organization-local calendar day, week, or month. A range with traffic returns every bucket in it, including the ones that saw none; a range with no outbound traffic at all returns no buckets. A range with no `before` runs through the current instant, so its quiet trailing buckets are reported as zero."))();
215
+ const AnalyticsGetTopContactsEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("analyticsGetTopContacts", "/v1/analytics/top-contacts", {
211
216
  query: AnalyticsGetTopContactsQuery,
212
217
  success: AnalyticsGetTopContacts200,
213
218
  error: [
@@ -218,7 +223,7 @@ var AnalyticsGroup = class extends HttpApiGroup.make("Analytics").add(HttpApiEnd
218
223
  AnalyticsGetTopContacts500,
219
224
  AnalyticsGetTopContacts504.pipe(HttpApiSchema.status(504))
220
225
  ]
221
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "analytics.getTopContacts").annotate(OpenApi.Summary, "List top contacts by message volume").annotate(OpenApi.Description, "Returns the contacts your organization exchanged the most messages with over the selected date range. `sortBy` chooses the traffic `messageCount` reports and ranks by: `sent` counts outbound messages addressed to the contact, `received` counts inbound messages the contact sent you, and `total` (the default) counts both. Contacts with no traffic in the range are omitted, and at most 100 are returned.")).annotate(OpenApi.Description, "Messaging analytics, channel stats, and data export. Namespace keys read only their own traffic; organization callers can narrow results with namespaceId. Every date range is half-open — `after` inclusive, `before` exclusive — and may span at most 366 days. Both bounds are absolute ISO-8601 instants carrying `Z` or a numeric offset; a bare calendar date is rejected, because reading it as UTC midnight would shift every bucket for an organization outside UTC. `AnalyticsQueryError` refuses a longer span and a `before` sent without an `after`, which bounds nothing. Omitting both bounds reports the organization's whole history. Calendar buckets follow the organization's timezone.") {};
222
- export { AnalyticsExportData200, AnalyticsExportData400, AnalyticsExportData401, AnalyticsExportData403, AnalyticsExportData422, AnalyticsExportData500, AnalyticsExportData504, AnalyticsExportDataRequestJson, AnalyticsGetChannelStats200, AnalyticsGetChannelStats400, AnalyticsGetChannelStats401, AnalyticsGetChannelStats403, AnalyticsGetChannelStats422, AnalyticsGetChannelStats500, AnalyticsGetChannelStats504, AnalyticsGetChannelStatsQuery, AnalyticsGetDeliveryMetrics200, AnalyticsGetDeliveryMetrics400, AnalyticsGetDeliveryMetrics401, AnalyticsGetDeliveryMetrics403, AnalyticsGetDeliveryMetrics422, AnalyticsGetDeliveryMetrics500, AnalyticsGetDeliveryMetrics504, AnalyticsGetDeliveryMetricsQuery, AnalyticsGetHourlyDistribution200, AnalyticsGetHourlyDistribution400, AnalyticsGetHourlyDistribution401, AnalyticsGetHourlyDistribution403, AnalyticsGetHourlyDistribution422, AnalyticsGetHourlyDistribution500, AnalyticsGetHourlyDistribution504, AnalyticsGetHourlyDistributionQuery, AnalyticsGetStats200, AnalyticsGetStats400, AnalyticsGetStats401, AnalyticsGetStats403, AnalyticsGetStats422, AnalyticsGetStats500, AnalyticsGetStats504, AnalyticsGetStatsQuery, AnalyticsGetTopContacts200, AnalyticsGetTopContacts400, AnalyticsGetTopContacts401, AnalyticsGetTopContacts403, AnalyticsGetTopContacts422, AnalyticsGetTopContacts500, AnalyticsGetTopContacts504, AnalyticsGetTopContactsQuery, AnalyticsGroup };
226
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "analytics.getTopContacts").annotate(OpenApi.Summary, "List top contacts by message volume").annotate(OpenApi.Description, "Returns the contacts your organization exchanged the most messages with over the selected date range. `sortBy` chooses the traffic `messageCount` reports and ranks by: `sent` counts outbound messages addressed to the contact, `received` counts inbound messages the contact sent you, and `total` (the default) counts both. Contacts with no traffic in the range are omitted, and at most 100 are returned."))();
227
+ export { AnalyticsExportData200, AnalyticsExportData400, AnalyticsExportData401, AnalyticsExportData403, AnalyticsExportData422, AnalyticsExportData500, AnalyticsExportData504, AnalyticsExportDataEndpoint, AnalyticsExportDataRequestJson, AnalyticsGetChannelStats200, AnalyticsGetChannelStats400, AnalyticsGetChannelStats401, AnalyticsGetChannelStats403, AnalyticsGetChannelStats422, AnalyticsGetChannelStats500, AnalyticsGetChannelStats504, AnalyticsGetChannelStatsEndpoint, AnalyticsGetChannelStatsQuery, AnalyticsGetDeliveryMetrics200, AnalyticsGetDeliveryMetrics400, AnalyticsGetDeliveryMetrics401, AnalyticsGetDeliveryMetrics403, AnalyticsGetDeliveryMetrics422, AnalyticsGetDeliveryMetrics500, AnalyticsGetDeliveryMetrics504, AnalyticsGetDeliveryMetricsEndpoint, AnalyticsGetDeliveryMetricsQuery, AnalyticsGetHourlyDistribution200, AnalyticsGetHourlyDistribution400, AnalyticsGetHourlyDistribution401, AnalyticsGetHourlyDistribution403, AnalyticsGetHourlyDistribution422, AnalyticsGetHourlyDistribution500, AnalyticsGetHourlyDistribution504, AnalyticsGetHourlyDistributionEndpoint, AnalyticsGetHourlyDistributionQuery, AnalyticsGetStats200, AnalyticsGetStats400, AnalyticsGetStats401, AnalyticsGetStats403, AnalyticsGetStats422, AnalyticsGetStats500, AnalyticsGetStats504, AnalyticsGetStatsEndpoint, AnalyticsGetStatsQuery, AnalyticsGetTopContacts200, AnalyticsGetTopContacts400, AnalyticsGetTopContacts401, AnalyticsGetTopContacts403, AnalyticsGetTopContacts422, AnalyticsGetTopContacts500, AnalyticsGetTopContacts504, AnalyticsGetTopContactsEndpoint, AnalyticsGetTopContactsQuery };
223
228
 
224
229
  //# sourceMappingURL=analytics.js.map