samva 0.45.1 → 0.46.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/AGENTS.md +7 -0
  2. package/README.md +25 -1
  3. package/dist/client/client/client.gen.d.ts +1 -1
  4. package/dist/client/client/index.d.ts +10 -10
  5. package/dist/client/client/types.gen.d.ts +4 -4
  6. package/dist/client/client/utils.gen.d.ts +2 -2
  7. package/dist/client/client.gen.d.ts +2 -2
  8. package/dist/client/core/bodySerializer.gen.d.ts +1 -1
  9. package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
  10. package/dist/client/core/types.gen.d.ts +2 -2
  11. package/dist/client/core/utils.gen.d.ts +1 -1
  12. package/dist/client/sdk.gen.d.ts +439 -6
  13. package/dist/client/sdk.gen.js +1544 -229
  14. package/dist/client/types.gen.d.ts +8120 -5616
  15. package/dist/effect/accounts.d.ts +50 -0
  16. package/dist/effect/accounts.js +23 -0
  17. package/dist/effect/agents.d.ts +25 -16
  18. package/dist/effect/agents.js +3 -2
  19. package/dist/effect/analytics.d.ts +6 -6
  20. package/dist/effect/analytics.js +2 -1
  21. package/dist/effect/api-keys.d.ts +13 -13
  22. package/dist/effect/api-keys.js +2 -1
  23. package/dist/effect/approval-requests.d.ts +42 -0
  24. package/dist/effect/approval-requests.js +19 -0
  25. package/dist/effect/attachments.d.ts +4 -4
  26. package/dist/effect/attachments.js +2 -1
  27. package/dist/effect/brands.d.ts +7 -7
  28. package/dist/effect/brands.js +2 -1
  29. package/dist/effect/campaigns.d.ts +205 -205
  30. package/dist/effect/campaigns.js +2 -1
  31. package/dist/effect/categories.d.ts +3 -3
  32. package/dist/effect/client.d.ts +1 -1
  33. package/dist/effect/contact-groups.d.ts +18 -18
  34. package/dist/effect/contact-groups.js +2 -1
  35. package/dist/effect/contacts.d.ts +33 -33
  36. package/dist/effect/contacts.js +3 -2
  37. package/dist/effect/conversations.d.ts +17 -17
  38. package/dist/effect/conversations.js +2 -1
  39. package/dist/effect/custom-fields.d.ts +4 -4
  40. package/dist/effect/custom-fields.js +2 -1
  41. package/dist/effect/descriptors/accounts.d.ts +59 -0
  42. package/dist/effect/descriptors/accounts.js +57 -0
  43. package/dist/effect/descriptors/agents.d.ts +119 -0
  44. package/dist/effect/descriptors/agents.js +117 -0
  45. package/dist/effect/descriptors/analytics.d.ts +56 -0
  46. package/dist/effect/descriptors/analytics.js +48 -0
  47. package/dist/effect/descriptors/api-keys.d.ts +80 -0
  48. package/dist/effect/descriptors/api-keys.js +80 -0
  49. package/dist/effect/descriptors/approval-requests.d.ts +41 -0
  50. package/dist/effect/descriptors/approval-requests.js +43 -0
  51. package/dist/effect/descriptors/attachments.d.ts +41 -0
  52. package/dist/effect/descriptors/attachments.js +43 -0
  53. package/dist/effect/descriptors/brands.d.ts +60 -0
  54. package/dist/effect/descriptors/brands.js +60 -0
  55. package/dist/effect/descriptors/campaigns.d.ts +148 -0
  56. package/dist/effect/descriptors/campaigns.js +144 -0
  57. package/dist/effect/descriptors/contact-groups.d.ts +99 -0
  58. package/dist/effect/descriptors/contact-groups.js +97 -0
  59. package/dist/effect/descriptors/contacts.d.ts +226 -0
  60. package/dist/effect/descriptors/contacts.js +214 -0
  61. package/dist/effect/descriptors/conversations.d.ts +130 -0
  62. package/dist/effect/descriptors/conversations.js +130 -0
  63. package/dist/effect/descriptors/custom-fields.d.ts +40 -0
  64. package/dist/effect/descriptors/custom-fields.js +40 -0
  65. package/dist/effect/descriptors/email.d.ts +607 -0
  66. package/dist/effect/descriptors/email.js +561 -0
  67. package/dist/effect/descriptors/events.d.ts +20 -0
  68. package/dist/effect/descriptors/events.js +20 -0
  69. package/dist/effect/descriptors/extension-installations.d.ts +90 -0
  70. package/dist/effect/descriptors/extension-installations.js +90 -0
  71. package/dist/effect/descriptors/extensions.d.ts +50 -0
  72. package/dist/effect/descriptors/extensions.js +50 -0
  73. package/dist/effect/descriptors/feedback.d.ts +11 -0
  74. package/dist/effect/descriptors/feedback.js +11 -0
  75. package/dist/effect/descriptors/integrations-catalog.d.ts +29 -0
  76. package/dist/effect/descriptors/integrations-catalog.js +27 -0
  77. package/dist/effect/descriptors/integrations.d.ts +70 -0
  78. package/dist/effect/descriptors/integrations.js +70 -0
  79. package/dist/effect/descriptors/journeys.d.ts +140 -0
  80. package/dist/effect/descriptors/journeys.js +140 -0
  81. package/dist/effect/descriptors/mailboxes.d.ts +724 -0
  82. package/dist/effect/descriptors/mailboxes.js +728 -0
  83. package/dist/effect/descriptors/media.d.ts +51 -0
  84. package/dist/effect/descriptors/media.js +53 -0
  85. package/dist/effect/descriptors/messages.d.ts +99 -0
  86. package/dist/effect/descriptors/messages.js +97 -0
  87. package/dist/effect/descriptors/namespaces.d.ts +110 -0
  88. package/dist/effect/descriptors/namespaces.js +114 -0
  89. package/dist/effect/descriptors/newsletter-domains.d.ts +42 -0
  90. package/dist/effect/descriptors/newsletter-domains.js +46 -0
  91. package/dist/effect/descriptors/newsletter-issues.d.ts +112 -0
  92. package/dist/effect/descriptors/newsletter-issues.js +116 -0
  93. package/dist/effect/descriptors/newsletters.d.ts +51 -0
  94. package/dist/effect/descriptors/newsletters.js +53 -0
  95. package/dist/effect/descriptors/operations.d.ts +31 -0
  96. package/dist/effect/descriptors/operations.js +33 -0
  97. package/dist/effect/descriptors/organizations.d.ts +111 -0
  98. package/dist/effect/descriptors/organizations.js +93 -0
  99. package/dist/effect/descriptors/policies.d.ts +32 -0
  100. package/dist/effect/descriptors/policies.js +36 -0
  101. package/dist/effect/descriptors/scheduled-messages.d.ts +50 -0
  102. package/dist/effect/descriptors/scheduled-messages.js +50 -0
  103. package/dist/effect/descriptors/subscriptions.d.ts +11 -0
  104. package/dist/effect/descriptors/subscriptions.js +11 -0
  105. package/dist/effect/descriptors/template-registrations.d.ts +32 -0
  106. package/dist/effect/descriptors/template-registrations.js +36 -0
  107. package/dist/effect/descriptors/template-share-links.d.ts +52 -0
  108. package/dist/effect/descriptors/template-share-links.js +56 -0
  109. package/dist/effect/descriptors/templates.d.ts +365 -0
  110. package/dist/effect/descriptors/templates.js +355 -0
  111. package/dist/effect/descriptors/topic-forms.d.ts +52 -0
  112. package/dist/effect/descriptors/topic-forms.js +56 -0
  113. package/dist/effect/descriptors/topics.d.ts +89 -0
  114. package/dist/effect/descriptors/topics.js +87 -0
  115. package/dist/effect/descriptors/webhooks.d.ts +110 -0
  116. package/dist/effect/descriptors/webhooks.js +110 -0
  117. package/dist/effect/descriptors/whats-app-flows.d.ts +99 -0
  118. package/dist/effect/descriptors/whats-app-flows.js +97 -0
  119. package/dist/effect/descriptors/whats-app-setup-links.d.ts +40 -0
  120. package/dist/effect/descriptors/whats-app-setup-links.js +40 -0
  121. package/dist/effect/descriptors/whats-app.d.ts +116 -0
  122. package/dist/effect/descriptors/whats-app.js +108 -0
  123. package/dist/effect/descriptors/whoami.d.ts +11 -0
  124. package/dist/effect/descriptors/whoami.js +11 -0
  125. package/dist/effect/email.d.ts +78 -78
  126. package/dist/effect/email.js +2 -1
  127. package/dist/effect/errors.d.ts +2 -2
  128. package/dist/effect/events.d.ts +3 -3
  129. package/dist/effect/events.js +2 -1
  130. package/dist/effect/extension-installations.d.ts +11 -11
  131. package/dist/effect/extension-installations.js +2 -1
  132. package/dist/effect/extensions.d.ts +9 -9
  133. package/dist/effect/extensions.js +2 -1
  134. package/dist/effect/feedback.d.ts +2 -2
  135. package/dist/effect/feedback.js +2 -1
  136. package/dist/effect/generated/accounts.d.ts +1002 -0
  137. package/dist/effect/generated/accounts.js +198 -0
  138. package/dist/effect/generated/agents.d.ts +85 -1
  139. package/dist/effect/generated/agents.js +1 -0
  140. package/dist/effect/generated/analytics.d.ts +1 -1
  141. package/dist/effect/generated/api-keys.d.ts +1 -1
  142. package/dist/effect/generated/approval-requests.d.ts +777 -0
  143. package/dist/effect/generated/approval-requests.js +135 -0
  144. package/dist/effect/generated/attachments.d.ts +1 -1
  145. package/dist/effect/generated/brands.d.ts +1 -1
  146. package/dist/effect/generated/campaigns.d.ts +245 -245
  147. package/dist/effect/generated/campaigns.js +6 -6
  148. package/dist/effect/generated/contact-events.d.ts +4 -4
  149. package/dist/effect/generated/contact-groups.d.ts +1 -1
  150. package/dist/effect/generated/contacts.d.ts +49 -49
  151. package/dist/effect/generated/conversations.d.ts +21 -21
  152. package/dist/effect/generated/conversations.js +10 -10
  153. package/dist/effect/generated/custom-fields.d.ts +1 -1
  154. package/dist/effect/generated/email.d.ts +1 -1
  155. package/dist/effect/generated/events.d.ts +12 -12
  156. package/dist/effect/generated/events.js +1 -1
  157. package/dist/effect/generated/extension-installations.d.ts +1 -1
  158. package/dist/effect/generated/extensions.d.ts +1 -1
  159. package/dist/effect/generated/feedback.d.ts +1 -1
  160. package/dist/effect/generated/index.d.ts +88 -78
  161. package/dist/effect/generated/integrations-catalog.d.ts +671 -0
  162. package/dist/effect/generated/integrations-catalog.js +217 -0
  163. package/dist/effect/generated/integrations.d.ts +1401 -0
  164. package/dist/effect/generated/integrations.js +246 -0
  165. package/dist/effect/generated/journeys.d.ts +81 -81
  166. package/dist/effect/generated/mailboxes.d.ts +8157 -4241
  167. package/dist/effect/generated/mailboxes.js +677 -52
  168. package/dist/effect/generated/media.d.ts +1 -1
  169. package/dist/effect/generated/messages.d.ts +9 -9
  170. package/dist/effect/generated/messages.js +4 -4
  171. package/dist/effect/generated/namespaces.d.ts +1 -1
  172. package/dist/effect/generated/newsletter-domains.d.ts +1 -1
  173. package/dist/effect/generated/newsletter-issues.d.ts +1 -1
  174. package/dist/effect/generated/newsletters.d.ts +1 -1
  175. package/dist/effect/generated/operations.d.ts +1 -1
  176. package/dist/effect/generated/organizations.d.ts +1 -1
  177. package/dist/effect/generated/policies.d.ts +1 -1
  178. package/dist/effect/generated/scheduled-messages.d.ts +193 -193
  179. package/dist/effect/generated/scheduled-messages.js +17 -17
  180. package/dist/effect/generated/shared.d.ts +662 -512
  181. package/dist/effect/generated/shared.js +212 -179
  182. package/dist/effect/generated/subscriptions.d.ts +1 -1
  183. package/dist/effect/generated/template-registrations.d.ts +1 -1
  184. package/dist/effect/generated/template-share-links.d.ts +733 -0
  185. package/dist/effect/generated/template-share-links.js +165 -0
  186. package/dist/effect/generated/templates.d.ts +39 -22
  187. package/dist/effect/generated/templates.js +19 -16
  188. package/dist/effect/generated/topic-forms.d.ts +1 -1
  189. package/dist/effect/generated/topics.d.ts +1 -1
  190. package/dist/effect/generated/webhooks.d.ts +1 -1
  191. package/dist/effect/generated/whats-app-flows.d.ts +1 -1
  192. package/dist/effect/generated/whats-app-setup-links.d.ts +1 -1
  193. package/dist/effect/generated/whats-app.d.ts +1 -1
  194. package/dist/effect/generated/whoami.d.ts +1 -1
  195. package/dist/effect/generated-metadata.d.ts +248 -0
  196. package/dist/effect/generated-metadata.js +705 -555
  197. package/dist/effect/index.d.ts +47 -42
  198. package/dist/effect/index.js +6 -1
  199. package/dist/effect/integrations-catalog.d.ts +38 -0
  200. package/dist/effect/integrations-catalog.js +17 -0
  201. package/dist/effect/integrations.d.ts +165 -0
  202. package/dist/effect/integrations.js +25 -0
  203. package/dist/effect/internal/client.d.ts +3 -3
  204. package/dist/effect/internal/email-sender.d.ts +4 -4
  205. package/dist/effect/internal/mailbox-events.d.ts +2 -2
  206. package/dist/effect/internal/operation.d.ts +24 -5
  207. package/dist/effect/internal/operation.js +21 -21
  208. package/dist/effect/internal/send.d.ts +4 -4
  209. package/dist/effect/journeys.d.ts +20 -20
  210. package/dist/effect/journeys.js +2 -1
  211. package/dist/effect/mailboxes.d.ts +476 -294
  212. package/dist/effect/mailboxes.js +33 -2
  213. package/dist/effect/media.d.ts +5 -5
  214. package/dist/effect/media.js +2 -1
  215. package/dist/effect/messages.d.ts +17 -17
  216. package/dist/effect/messages.js +2 -1
  217. package/dist/effect/namespaces.d.ts +15 -15
  218. package/dist/effect/namespaces.js +2 -1
  219. package/dist/effect/newsletter-domains.d.ts +6 -6
  220. package/dist/effect/newsletter-domains.js +2 -1
  221. package/dist/effect/newsletter-issues.d.ts +11 -11
  222. package/dist/effect/newsletter-issues.js +2 -1
  223. package/dist/effect/newsletters.d.ts +5 -5
  224. package/dist/effect/newsletters.js +2 -1
  225. package/dist/effect/operations.d.ts +5 -5
  226. package/dist/effect/operations.js +2 -1
  227. package/dist/effect/organizations.d.ts +12 -12
  228. package/dist/effect/organizations.js +2 -1
  229. package/dist/effect/policies.d.ts +3 -3
  230. package/dist/effect/policies.js +2 -1
  231. package/dist/effect/scheduled-messages.d.ts +372 -372
  232. package/dist/effect/scheduled-messages.js +2 -1
  233. package/dist/effect/subscriptions.d.ts +1 -1
  234. package/dist/effect/subscriptions.js +2 -1
  235. package/dist/effect/template-registrations.d.ts +3 -3
  236. package/dist/effect/template-registrations.js +2 -1
  237. package/dist/effect/template-share-links.d.ts +18 -0
  238. package/dist/effect/template-share-links.js +21 -0
  239. package/dist/effect/templates.d.ts +49 -48
  240. package/dist/effect/templates.js +2 -1
  241. package/dist/effect/topic-forms.d.ts +5 -5
  242. package/dist/effect/topic-forms.js +2 -1
  243. package/dist/effect/topics.d.ts +11 -11
  244. package/dist/effect/topics.js +2 -1
  245. package/dist/effect/webhooks.d.ts +16 -16
  246. package/dist/effect/webhooks.js +2 -1
  247. package/dist/effect/whatsapp-flows.d.ts +10 -10
  248. package/dist/effect/whatsapp-flows.js +2 -1
  249. package/dist/effect/whatsapp-setup-links.d.ts +6 -6
  250. package/dist/effect/whatsapp-setup-links.js +2 -1
  251. package/dist/effect/whatsapp.d.ts +12 -12
  252. package/dist/effect/whatsapp.js +2 -1
  253. package/dist/effect/whoami.d.ts +1 -1
  254. package/dist/effect/whoami.js +2 -1
  255. package/dist/index.d.ts +1 -1
  256. package/dist/index.js +2 -2
  257. package/dist/mailbox/dispatch.d.ts +2 -2
  258. package/dist/mailbox/index.d.ts +4 -4
  259. package/dist/mailbox/test.d.ts +2 -2
  260. package/dist/mailbox/types.d.ts +2 -2
  261. package/dist/mailbox/webhook.d.ts +2 -2
  262. package/dist/package.js +1 -1
  263. package/dist/promises/client.d.ts +20 -10
  264. package/dist/promises/client.js +13 -3
  265. package/dist/promises/errors.gen.d.ts +23 -3
  266. package/dist/promises/errors.gen.js +54 -1
  267. package/dist/promises/index.d.ts +5 -5
  268. package/dist/promises/index.js +2 -2
  269. package/dist/promises/request.d.ts +2 -2
  270. package/dist/promises/request.js +1 -1
  271. package/dist/promises/types.gen.d.ts +1 -1
  272. package/dist/request-policy.d.ts +10 -2
  273. package/dist/request-policy.js +3 -5
  274. package/dist/service-map.d.ts +203 -0
  275. package/package.json +29 -9
  276. package/dist/service-map.js +0 -727
@@ -1,7 +1,7 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
4
+ import { ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
5
5
  export type CustomFieldDefinitionId = string & EffectBrand.Brand<"CustomFieldDefinitionId">;
6
6
  export declare const CustomFieldDefinitionId: Schema.brand<Schema.String, "CustomFieldDefinitionId">;
7
7
  export type CustomFieldList = {
@@ -1,7 +1,7 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, EmailChannelError, EmailDomainId, EmailSenderId, ExternalServiceError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MailboxId, MalformedRequestError, MediaId, MessageId, NamespaceId, OperationId, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SendsSeries, TopicId, UnauthorizedError, ValidationError, WebhookEndpointId } from "./shared";
4
+ import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, EmailChannelError, EmailDomainId, EmailSenderId, ExternalServiceError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MailboxId, MalformedRequestError, MediaId, MessageId, NamespaceId, OperationId, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SendsSeries, TopicId, UnauthorizedError, ValidationError, WebhookEndpointId } from "./shared.js";
5
5
  export type BlockedEmailId = string & EffectBrand.Brand<"BlockedEmailId">;
6
6
  export declare const BlockedEmailId: Schema.brand<Schema.String, "BlockedEmailId">;
7
7
  export type SuccessResult = {
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactEvent, ContactEventReference, CreateEventPayload, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MalformedRequestError, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
3
+ import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactEvent, ContactEventReference, CreateEventPayload, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MalformedRequestError, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  export type BatchEventsResult = {
5
5
  readonly total: number;
6
6
  readonly accepted: number;
@@ -24,7 +24,7 @@ export declare const BatchEventsResult: Schema.Struct<{
24
24
  readonly contactId: Schema.brand<Schema.String, "ContactId">;
25
25
  readonly name: Schema.String;
26
26
  readonly source: Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"samva">]>;
27
- readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
27
+ readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
28
28
  readonly occurredAt: Schema.String;
29
29
  readonly recordedAt: Schema.String;
30
30
  }>, Schema.Null]>>;
@@ -58,7 +58,7 @@ export declare const EventsCreateRequestJson: Schema.Struct<{
58
58
  readonly externalId: Schema.optionalKey<Schema.Never>;
59
59
  }>]>;
60
60
  readonly name: Schema.String;
61
- readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
61
+ readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
62
62
  readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
63
63
  }>;
64
64
  export type EventsCreate200 = ContactEvent;
@@ -67,7 +67,7 @@ export declare const EventsCreate200: Schema.Struct<{
67
67
  readonly contactId: Schema.brand<Schema.String, "ContactId">;
68
68
  readonly name: Schema.String;
69
69
  readonly source: Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"samva">]>;
70
- readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
70
+ readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
71
71
  readonly occurredAt: Schema.String;
72
72
  readonly recordedAt: Schema.String;
73
73
  }>;
@@ -116,7 +116,7 @@ export declare const EventsBatchRequestJson: Schema.Struct<{
116
116
  readonly externalId: Schema.optionalKey<Schema.Never>;
117
117
  }>]>;
118
118
  readonly name: Schema.String;
119
- readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
119
+ readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
120
120
  readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
121
121
  }>]>, readonly [Schema.Struct<{
122
122
  readonly contact: Schema.Union<readonly [Schema.Struct<{
@@ -133,7 +133,7 @@ export declare const EventsBatchRequestJson: Schema.Struct<{
133
133
  readonly externalId: Schema.optionalKey<Schema.Never>;
134
134
  }>]>;
135
135
  readonly name: Schema.String;
136
- readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
136
+ readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
137
137
  readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
138
138
  }>]>;
139
139
  }>;
@@ -150,7 +150,7 @@ export declare const EventsBatch200: Schema.Struct<{
150
150
  readonly contactId: Schema.brand<Schema.String, "ContactId">;
151
151
  readonly name: Schema.String;
152
152
  readonly source: Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"samva">]>;
153
- readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
153
+ readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
154
154
  readonly occurredAt: Schema.String;
155
155
  readonly recordedAt: Schema.String;
156
156
  }>, Schema.Null]>>;
@@ -187,7 +187,7 @@ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"Events", HttpApiEndpo
187
187
  readonly externalId: Schema.optionalKey<Schema.Never>;
188
188
  }>]>;
189
189
  readonly name: Schema.String;
190
- readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
190
+ readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
191
191
  readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
192
192
  }>]>, readonly [Schema.Struct<{
193
193
  readonly contact: Schema.Union<readonly [Schema.Struct<{
@@ -204,7 +204,7 @@ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"Events", HttpApiEndpo
204
204
  readonly externalId: Schema.optionalKey<Schema.Never>;
205
205
  }>]>;
206
206
  readonly name: Schema.String;
207
- readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
207
+ readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
208
208
  readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
209
209
  }>]>;
210
210
  }>>, Schema.toCodecStringTree<Schema.Struct<{
@@ -221,7 +221,7 @@ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"Events", HttpApiEndpo
221
221
  readonly contactId: Schema.brand<Schema.String, "ContactId">;
222
222
  readonly name: Schema.String;
223
223
  readonly source: Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"samva">]>;
224
- readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
224
+ readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
225
225
  readonly occurredAt: Schema.String;
226
226
  readonly recordedAt: Schema.String;
227
227
  }>, Schema.Null]>>;
@@ -342,7 +342,7 @@ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"Events", HttpApiEndpo
342
342
  readonly externalId: Schema.optionalKey<Schema.Never>;
343
343
  }>]>;
344
344
  readonly name: Schema.String;
345
- readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
345
+ readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>>;
346
346
  readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
347
347
  }>>, Schema.toCodecStringTree<Schema.Struct<{
348
348
  readonly "idempotency-key": Schema.optionalKey<Schema.String>;
@@ -351,7 +351,7 @@ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"Events", HttpApiEndpo
351
351
  readonly contactId: Schema.brand<Schema.String, "ContactId">;
352
352
  readonly name: Schema.String;
353
353
  readonly source: Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"samva">]>;
354
- readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
354
+ readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
355
355
  readonly occurredAt: Schema.String;
356
356
  readonly recordedAt: Schema.String;
357
357
  }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
@@ -16,7 +16,7 @@ const BatchEventsResult = /* @__PURE__ */ (() => Schema.Struct({
16
16
  const EventsCreateHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))) }))();
17
17
  const EventsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
18
18
  contact: ContactEventReference,
19
- name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })).check(Schema.isPattern(new globalThis.RegExp("^(?!(?:[Cc][Oo][Nn][Tt][Aa][Cc][Tt]|[Ss][Aa][Mm][Vv][Aa])\\.)[A-Za-z][A-Za-z0-9_.-]*$")).annotate({ expected: "a string matching the RegExp ^(?!(?:[Cc][Oo][Nn][Tt][Aa][Cc][Tt]|[Ss][Aa][Mm][Vv][Aa])\\.)[A-Za-z][A-Za-z0-9_.-]*$" })),
19
+ name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })).check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z][A-Za-z0-9_.-]*$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z][A-Za-z0-9_.-]*$" })).check(Schema.isPattern(new globalThis.RegExp("^(?!(?:[Cc][Oo][Nn][Tt][Aa][Cc][Tt]|[Ss][Aa][Mm][Vv][Aa])\\.)[A-Za-z][A-Za-z0-9_.-]*$")).annotate({ expected: "a string matching the RegExp ^(?!(?:[Cc][Oo][Nn][Tt][Aa][Cc][Tt]|[Ss][Aa][Mm][Vv][Aa])\\.)[A-Za-z][A-Za-z0-9_.-]*$" })),
20
20
  properties: Schema.optionalKey(Schema.Union([JsonObject, Schema.Null])),
21
21
  occurredAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
22
22
  }))();
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { ApiKeySecurityMiddleware, ConflictError, ExtensionId, ExtensionInstallationId, ExtensionVersionId, ExtensionVersionRef, ForbiddenError, GatewayTimeoutError, InternalError, MailboxId, MalformedRequestError, NamespaceId, OrganizationId, PolicyConfiguration, ResourceNotFoundError, SuccessResponse, UnauthorizedError, UserId, ValidationError, WebhookEndpointId, __SamvaRuntimeSensitiveString } from "./shared";
3
+ import { ApiKeySecurityMiddleware, ConflictError, ExtensionId, ExtensionInstallationId, ExtensionVersionId, ExtensionVersionRef, ForbiddenError, GatewayTimeoutError, InternalError, MailboxId, MalformedRequestError, NamespaceId, OrganizationId, PolicyConfiguration, ResourceNotFoundError, SuccessResponse, UnauthorizedError, UserId, ValidationError, WebhookEndpointId, __SamvaRuntimeSensitiveString } from "./shared.js";
4
4
  export type ExtensionRunSummary = {
5
5
  readonly id: string;
6
6
  readonly eventId: string;
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { ApiKeySecurityMiddleware, ConflictError, ExtensionId, ExtensionVersionId, ExtensionVersionRef, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
3
+ import { ApiKeySecurityMiddleware, ConflictError, ExtensionId, ExtensionVersionId, ExtensionVersionRef, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  export type ExtensionBundle = {
5
5
  readonly sha256: string;
6
6
  readonly sizeBytes: number;
@@ -1,7 +1,7 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { ApiKeySecurityMiddleware, FeedbackContext, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, UnauthorizedError, ValidationError } from "./shared";
4
+ import { ApiKeySecurityMiddleware, FeedbackContext, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, UnauthorizedError, ValidationError } from "./shared.js";
5
5
  export type FeedbackId = string & EffectBrand.Brand<"FeedbackId">;
6
6
  export declare const FeedbackId: Schema.brand<Schema.String, "FeedbackId">;
7
7
  export type FeedbackReceipt = {
@@ -1,81 +1,91 @@
1
1
  import { HttpApi } from "effect/http-api";
2
- import { AgentsGroup } from "./agents";
3
- import { AnalyticsGroup } from "./analytics";
4
- import { APIKeysGroup } from "./api-keys";
5
- import { AttachmentsGroup } from "./attachments";
6
- import { BrandsGroup } from "./brands";
7
- import { CampaignsGroup } from "./campaigns";
8
- import { ContactEventsGroup } from "./contact-events";
9
- import { ContactGroupsGroup } from "./contact-groups";
10
- import { ContactsGroup } from "./contacts";
11
- import { ConversationsGroup } from "./conversations";
12
- import { CustomFieldsGroup } from "./custom-fields";
13
- import { EmailGroup } from "./email";
14
- import { EventsGroup } from "./events";
15
- import { ExtensionInstallationsGroup } from "./extension-installations";
16
- import { ExtensionsGroup } from "./extensions";
17
- import { FeedbackGroup } from "./feedback";
18
- import { JourneysGroup } from "./journeys";
19
- import { MailboxesGroup } from "./mailboxes";
20
- import { MediaGroup } from "./media";
21
- import { MessagesGroup } from "./messages";
22
- import { NamespacesGroup } from "./namespaces";
23
- import { NewsletterDomainsGroup } from "./newsletter-domains";
24
- import { NewsletterIssuesGroup } from "./newsletter-issues";
25
- import { NewslettersGroup } from "./newsletters";
26
- import { OperationsGroup } from "./operations";
27
- import { OrganizationsGroup } from "./organizations";
28
- import { PoliciesGroup } from "./policies";
29
- import { ScheduledMessagesGroup } from "./scheduled-messages";
30
- import { SubscriptionsGroup } from "./subscriptions";
31
- import { TemplateRegistrationsGroup } from "./template-registrations";
32
- import { TemplatesGroup } from "./templates";
33
- import { TopicFormsGroup } from "./topic-forms";
34
- import { TopicsGroup } from "./topics";
35
- import { WebhooksGroup } from "./webhooks";
36
- import { WhatsAppGroup } from "./whats-app";
37
- import { WhatsAppFlowsGroup } from "./whats-app-flows";
38
- import { WhatsAppSetupLinksGroup } from "./whats-app-setup-links";
39
- import { WhoamiGroup } from "./whoami";
40
- export * from "./shared";
41
- export * from "./agents";
42
- export * from "./analytics";
43
- export * from "./api-keys";
44
- export * from "./attachments";
45
- export * from "./brands";
46
- export * from "./campaigns";
47
- export * from "./contact-groups";
48
- export * from "./contacts";
49
- export * from "./contact-events";
50
- export * from "./conversations";
51
- export * from "./custom-fields";
52
- export * from "./email";
53
- export * from "./events";
54
- export * from "./extension-installations";
55
- export * from "./extensions";
56
- export * from "./feedback";
57
- export * from "./journeys";
58
- export * from "./mailboxes";
59
- export * from "./media";
60
- export * from "./messages";
61
- export * from "./scheduled-messages";
62
- export * from "./namespaces";
63
- export * from "./newsletters";
64
- export * from "./newsletter-domains";
65
- export * from "./newsletter-issues";
66
- export * from "./operations";
67
- export * from "./organizations";
68
- export * from "./policies";
69
- export * from "./subscriptions";
70
- export * from "./templates";
71
- export * from "./template-registrations";
72
- export * from "./topics";
73
- export * from "./topic-forms";
74
- export * from "./webhooks";
75
- export * from "./whats-app";
76
- export * from "./whats-app-flows";
77
- export * from "./whats-app-setup-links";
78
- export * from "./whoami";
79
- declare const SamvaApi_base: HttpApi.HttpApi<"SamvaApi", typeof AgentsGroup | typeof AnalyticsGroup | typeof APIKeysGroup | typeof AttachmentsGroup | typeof BrandsGroup | typeof CampaignsGroup | typeof ContactEventsGroup | typeof ContactGroupsGroup | typeof ContactsGroup | typeof ConversationsGroup | typeof CustomFieldsGroup | typeof EmailGroup | typeof EventsGroup | typeof ExtensionInstallationsGroup | typeof ExtensionsGroup | typeof FeedbackGroup | typeof JourneysGroup | typeof MailboxesGroup | typeof MediaGroup | typeof MessagesGroup | typeof NamespacesGroup | typeof NewsletterDomainsGroup | typeof NewsletterIssuesGroup | typeof NewslettersGroup | typeof OperationsGroup | typeof OrganizationsGroup | typeof PoliciesGroup | typeof ScheduledMessagesGroup | typeof SubscriptionsGroup | typeof TemplateRegistrationsGroup | typeof TemplatesGroup | typeof TopicFormsGroup | typeof TopicsGroup | typeof WebhooksGroup | typeof WhatsAppGroup | typeof WhatsAppFlowsGroup | typeof WhatsAppSetupLinksGroup | typeof WhoamiGroup>;
2
+ import { AccountsGroup } from "./accounts.js";
3
+ import { AgentsGroup } from "./agents.js";
4
+ import { AnalyticsGroup } from "./analytics.js";
5
+ import { APIKeysGroup } from "./api-keys.js";
6
+ import { ApprovalRequestsGroup } from "./approval-requests.js";
7
+ import { AttachmentsGroup } from "./attachments.js";
8
+ import { BrandsGroup } from "./brands.js";
9
+ import { CampaignsGroup } from "./campaigns.js";
10
+ import { ContactEventsGroup } from "./contact-events.js";
11
+ import { ContactGroupsGroup } from "./contact-groups.js";
12
+ import { ContactsGroup } from "./contacts.js";
13
+ import { ConversationsGroup } from "./conversations.js";
14
+ import { CustomFieldsGroup } from "./custom-fields.js";
15
+ import { EmailGroup } from "./email.js";
16
+ import { EventsGroup } from "./events.js";
17
+ import { ExtensionInstallationsGroup } from "./extension-installations.js";
18
+ import { ExtensionsGroup } from "./extensions.js";
19
+ import { FeedbackGroup } from "./feedback.js";
20
+ import { IntegrationsGroup } from "./integrations.js";
21
+ import { IntegrationsCatalogGroup } from "./integrations-catalog.js";
22
+ import { JourneysGroup } from "./journeys.js";
23
+ import { MailboxesGroup } from "./mailboxes.js";
24
+ import { MediaGroup } from "./media.js";
25
+ import { MessagesGroup } from "./messages.js";
26
+ import { NamespacesGroup } from "./namespaces.js";
27
+ import { NewsletterDomainsGroup } from "./newsletter-domains.js";
28
+ import { NewsletterIssuesGroup } from "./newsletter-issues.js";
29
+ import { NewslettersGroup } from "./newsletters.js";
30
+ import { OperationsGroup } from "./operations.js";
31
+ import { OrganizationsGroup } from "./organizations.js";
32
+ import { PoliciesGroup } from "./policies.js";
33
+ import { ScheduledMessagesGroup } from "./scheduled-messages.js";
34
+ import { SubscriptionsGroup } from "./subscriptions.js";
35
+ import { TemplateRegistrationsGroup } from "./template-registrations.js";
36
+ import { TemplateShareLinksGroup } from "./template-share-links.js";
37
+ import { TemplatesGroup } from "./templates.js";
38
+ import { TopicFormsGroup } from "./topic-forms.js";
39
+ import { TopicsGroup } from "./topics.js";
40
+ import { WebhooksGroup } from "./webhooks.js";
41
+ import { WhatsAppGroup } from "./whats-app.js";
42
+ import { WhatsAppFlowsGroup } from "./whats-app-flows.js";
43
+ import { WhatsAppSetupLinksGroup } from "./whats-app-setup-links.js";
44
+ import { WhoamiGroup } from "./whoami.js";
45
+ export * from "./shared.js";
46
+ export * from "./accounts.js";
47
+ export * from "./agents.js";
48
+ export * from "./analytics.js";
49
+ export * from "./api-keys.js";
50
+ export * from "./approval-requests.js";
51
+ export * from "./attachments.js";
52
+ export * from "./brands.js";
53
+ export * from "./campaigns.js";
54
+ export * from "./contact-groups.js";
55
+ export * from "./contacts.js";
56
+ export * from "./contact-events.js";
57
+ export * from "./conversations.js";
58
+ export * from "./custom-fields.js";
59
+ export * from "./email.js";
60
+ export * from "./events.js";
61
+ export * from "./extension-installations.js";
62
+ export * from "./extensions.js";
63
+ export * from "./feedback.js";
64
+ export * from "./integrations.js";
65
+ export * from "./integrations-catalog.js";
66
+ export * from "./journeys.js";
67
+ export * from "./mailboxes.js";
68
+ export * from "./media.js";
69
+ export * from "./messages.js";
70
+ export * from "./scheduled-messages.js";
71
+ export * from "./namespaces.js";
72
+ export * from "./newsletters.js";
73
+ export * from "./newsletter-domains.js";
74
+ export * from "./newsletter-issues.js";
75
+ export * from "./operations.js";
76
+ export * from "./organizations.js";
77
+ export * from "./policies.js";
78
+ export * from "./subscriptions.js";
79
+ export * from "./template-share-links.js";
80
+ export * from "./templates.js";
81
+ export * from "./template-registrations.js";
82
+ export * from "./topics.js";
83
+ export * from "./topic-forms.js";
84
+ export * from "./webhooks.js";
85
+ export * from "./whats-app.js";
86
+ export * from "./whats-app-flows.js";
87
+ export * from "./whats-app-setup-links.js";
88
+ export * from "./whoami.js";
89
+ declare const SamvaApi_base: HttpApi.HttpApi<"SamvaApi", typeof AccountsGroup | typeof AgentsGroup | typeof AnalyticsGroup | typeof APIKeysGroup | typeof ApprovalRequestsGroup | typeof AttachmentsGroup | typeof BrandsGroup | typeof CampaignsGroup | typeof ContactEventsGroup | typeof ContactGroupsGroup | typeof ContactsGroup | typeof ConversationsGroup | typeof CustomFieldsGroup | typeof EmailGroup | typeof EventsGroup | typeof ExtensionInstallationsGroup | typeof ExtensionsGroup | typeof FeedbackGroup | typeof IntegrationsGroup | typeof IntegrationsCatalogGroup | typeof JourneysGroup | typeof MailboxesGroup | typeof MediaGroup | typeof MessagesGroup | typeof NamespacesGroup | typeof NewsletterDomainsGroup | typeof NewsletterIssuesGroup | typeof NewslettersGroup | typeof OperationsGroup | typeof OrganizationsGroup | typeof PoliciesGroup | typeof ScheduledMessagesGroup | typeof SubscriptionsGroup | typeof TemplateRegistrationsGroup | typeof TemplateShareLinksGroup | typeof TemplatesGroup | typeof TopicFormsGroup | typeof TopicsGroup | typeof WebhooksGroup | typeof WhatsAppGroup | typeof WhatsAppFlowsGroup | typeof WhatsAppSetupLinksGroup | typeof WhoamiGroup>;
80
90
  export declare class SamvaApi extends SamvaApi_base {
81
91
  }