samva 0.46.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/AGENTS.md +13 -7
  2. package/README.md +107 -9
  3. package/dist/agent/index.d.ts +56 -0
  4. package/dist/agent/index.js +52 -0
  5. package/dist/agent/runtime.d.ts +3 -0
  6. package/dist/agent/runtime.js +74 -0
  7. package/dist/agent/test.d.ts +31 -0
  8. package/dist/agent/test.js +66 -0
  9. package/dist/agent/types.d.ts +123 -0
  10. package/dist/client/client/client.gen.d.ts +1 -1
  11. package/dist/client/client/index.d.ts +10 -10
  12. package/dist/client/client/types.gen.d.ts +4 -4
  13. package/dist/client/client/utils.gen.d.ts +2 -2
  14. package/dist/client/client.gen.d.ts +2 -2
  15. package/dist/client/core/bodySerializer.gen.d.ts +1 -1
  16. package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
  17. package/dist/client/core/types.gen.d.ts +2 -2
  18. package/dist/client/core/utils.gen.d.ts +1 -1
  19. package/dist/client/sdk.gen.d.ts +41 -161
  20. package/dist/client/sdk.gen.js +1302 -1598
  21. package/dist/client/types.gen.d.ts +377 -966
  22. package/dist/effect/accounts.d.ts +6 -6
  23. package/dist/effect/accounts.js +2 -1
  24. package/dist/effect/agents.d.ts +355 -23
  25. package/dist/effect/agents.js +6 -3
  26. package/dist/effect/analytics.d.ts +6 -6
  27. package/dist/effect/analytics.js +2 -1
  28. package/dist/effect/api-keys.d.ts +13 -13
  29. package/dist/effect/api-keys.js +2 -1
  30. package/dist/effect/approval-requests.d.ts +4 -4
  31. package/dist/effect/approval-requests.js +2 -1
  32. package/dist/effect/attachments.d.ts +4 -4
  33. package/dist/effect/attachments.js +2 -1
  34. package/dist/effect/brands.d.ts +7 -7
  35. package/dist/effect/brands.js +2 -1
  36. package/dist/effect/campaigns.d.ts +205 -205
  37. package/dist/effect/campaigns.js +2 -1
  38. package/dist/effect/categories.d.ts +3 -3
  39. package/dist/effect/client.d.ts +1 -1
  40. package/dist/effect/contact-groups.d.ts +18 -18
  41. package/dist/effect/contact-groups.js +2 -1
  42. package/dist/effect/contacts.d.ts +41 -33
  43. package/dist/effect/contacts.js +8 -3
  44. package/dist/effect/conversations.d.ts +17 -17
  45. package/dist/effect/conversations.js +2 -1
  46. package/dist/effect/custom-fields.d.ts +4 -4
  47. package/dist/effect/custom-fields.js +2 -1
  48. package/dist/effect/descriptors/accounts.d.ts +59 -0
  49. package/dist/effect/descriptors/accounts.js +57 -0
  50. package/dist/effect/descriptors/agents.d.ts +129 -0
  51. package/dist/effect/descriptors/agents.js +127 -0
  52. package/dist/effect/descriptors/analytics.d.ts +56 -0
  53. package/dist/effect/descriptors/analytics.js +48 -0
  54. package/dist/effect/descriptors/api-keys.d.ts +80 -0
  55. package/dist/effect/descriptors/api-keys.js +80 -0
  56. package/dist/effect/descriptors/approval-requests.d.ts +41 -0
  57. package/dist/effect/descriptors/approval-requests.js +43 -0
  58. package/dist/effect/descriptors/attachments.d.ts +41 -0
  59. package/dist/effect/descriptors/attachments.js +43 -0
  60. package/dist/effect/descriptors/brands.d.ts +60 -0
  61. package/dist/effect/descriptors/brands.js +60 -0
  62. package/dist/effect/descriptors/campaigns.d.ts +148 -0
  63. package/dist/effect/descriptors/campaigns.js +144 -0
  64. package/dist/effect/descriptors/contact-groups.d.ts +99 -0
  65. package/dist/effect/descriptors/contact-groups.js +97 -0
  66. package/dist/effect/descriptors/contacts.d.ts +246 -0
  67. package/dist/effect/descriptors/contacts.js +234 -0
  68. package/dist/effect/descriptors/conversations.d.ts +130 -0
  69. package/dist/effect/descriptors/conversations.js +130 -0
  70. package/dist/effect/descriptors/custom-fields.d.ts +40 -0
  71. package/dist/effect/descriptors/custom-fields.js +40 -0
  72. package/dist/effect/descriptors/email.d.ts +607 -0
  73. package/dist/effect/descriptors/email.js +561 -0
  74. package/dist/effect/descriptors/events.d.ts +20 -0
  75. package/dist/effect/descriptors/events.js +20 -0
  76. package/dist/effect/descriptors/feedback.d.ts +11 -0
  77. package/dist/effect/descriptors/feedback.js +11 -0
  78. package/dist/effect/descriptors/integrations-catalog.d.ts +29 -0
  79. package/dist/effect/descriptors/integrations-catalog.js +27 -0
  80. package/dist/effect/descriptors/integrations.d.ts +70 -0
  81. package/dist/effect/descriptors/integrations.js +70 -0
  82. package/dist/effect/descriptors/journeys.d.ts +140 -0
  83. package/dist/effect/descriptors/journeys.js +140 -0
  84. package/dist/effect/descriptors/mailboxes.d.ts +724 -0
  85. package/dist/effect/descriptors/mailboxes.js +728 -0
  86. package/dist/effect/descriptors/media.d.ts +51 -0
  87. package/dist/effect/descriptors/media.js +53 -0
  88. package/dist/effect/descriptors/messages.d.ts +99 -0
  89. package/dist/effect/descriptors/messages.js +97 -0
  90. package/dist/effect/descriptors/namespaces.d.ts +110 -0
  91. package/dist/effect/descriptors/namespaces.js +114 -0
  92. package/dist/effect/descriptors/newsletter-domains.d.ts +42 -0
  93. package/dist/effect/descriptors/newsletter-domains.js +46 -0
  94. package/dist/effect/descriptors/newsletter-issues.d.ts +112 -0
  95. package/dist/effect/descriptors/newsletter-issues.js +116 -0
  96. package/dist/effect/descriptors/newsletters.d.ts +51 -0
  97. package/dist/effect/descriptors/newsletters.js +53 -0
  98. package/dist/effect/descriptors/operations.d.ts +31 -0
  99. package/dist/effect/descriptors/operations.js +33 -0
  100. package/dist/effect/descriptors/organizations.d.ts +111 -0
  101. package/dist/effect/descriptors/organizations.js +93 -0
  102. package/dist/effect/descriptors/policies.d.ts +32 -0
  103. package/dist/effect/descriptors/policies.js +36 -0
  104. package/dist/effect/descriptors/scheduled-messages.d.ts +50 -0
  105. package/dist/effect/descriptors/scheduled-messages.js +50 -0
  106. package/dist/effect/descriptors/subscriptions.d.ts +11 -0
  107. package/dist/effect/descriptors/subscriptions.js +11 -0
  108. package/dist/effect/descriptors/template-registrations.d.ts +32 -0
  109. package/dist/effect/descriptors/template-registrations.js +36 -0
  110. package/dist/effect/descriptors/template-share-links.d.ts +52 -0
  111. package/dist/effect/descriptors/template-share-links.js +56 -0
  112. package/dist/effect/descriptors/templates.d.ts +365 -0
  113. package/dist/effect/descriptors/templates.js +355 -0
  114. package/dist/effect/descriptors/topic-forms.d.ts +52 -0
  115. package/dist/effect/descriptors/topic-forms.js +56 -0
  116. package/dist/effect/descriptors/topics.d.ts +89 -0
  117. package/dist/effect/descriptors/topics.js +87 -0
  118. package/dist/effect/descriptors/webhooks.d.ts +110 -0
  119. package/dist/effect/descriptors/webhooks.js +110 -0
  120. package/dist/effect/descriptors/whats-app-flows.d.ts +99 -0
  121. package/dist/effect/descriptors/whats-app-flows.js +97 -0
  122. package/dist/effect/descriptors/whats-app-setup-links.d.ts +40 -0
  123. package/dist/effect/descriptors/whats-app-setup-links.js +40 -0
  124. package/dist/effect/descriptors/whats-app.d.ts +116 -0
  125. package/dist/effect/descriptors/whats-app.js +108 -0
  126. package/dist/effect/descriptors/whoami.d.ts +11 -0
  127. package/dist/effect/descriptors/whoami.js +11 -0
  128. package/dist/effect/email.d.ts +78 -78
  129. package/dist/effect/email.js +2 -1
  130. package/dist/effect/errors.d.ts +2 -2
  131. package/dist/effect/events.d.ts +3 -3
  132. package/dist/effect/events.js +2 -1
  133. package/dist/effect/feedback.d.ts +2 -2
  134. package/dist/effect/feedback.js +2 -1
  135. package/dist/effect/generated/accounts.d.ts +19 -9
  136. package/dist/effect/generated/accounts.js +1 -0
  137. package/dist/effect/generated/agents.d.ts +2967 -690
  138. package/dist/effect/generated/agents.js +54 -13
  139. package/dist/effect/generated/analytics.d.ts +1 -1
  140. package/dist/effect/generated/api-keys.d.ts +1 -1
  141. package/dist/effect/generated/approval-requests.d.ts +13 -13
  142. package/dist/effect/generated/attachments.d.ts +1 -1
  143. package/dist/effect/generated/brands.d.ts +1 -1
  144. package/dist/effect/generated/campaigns.d.ts +230 -230
  145. package/dist/effect/generated/contact-events.d.ts +4 -4
  146. package/dist/effect/generated/contact-groups.d.ts +1 -1
  147. package/dist/effect/generated/contacts.d.ts +907 -49
  148. package/dist/effect/generated/contacts.js +62 -3
  149. package/dist/effect/generated/conversations.d.ts +1 -1
  150. package/dist/effect/generated/custom-fields.d.ts +1 -1
  151. package/dist/effect/generated/email.d.ts +1 -1
  152. package/dist/effect/generated/events.d.ts +12 -12
  153. package/dist/effect/generated/feedback.d.ts +1 -1
  154. package/dist/effect/generated/index.d.ts +84 -88
  155. package/dist/effect/generated/integrations-catalog.d.ts +3 -3
  156. package/dist/effect/generated/integrations.d.ts +15 -15
  157. package/dist/effect/generated/journeys.d.ts +336 -96
  158. package/dist/effect/generated/journeys.js +3 -1
  159. package/dist/effect/generated/mailboxes.d.ts +93 -95
  160. package/dist/effect/generated/mailboxes.js +21 -25
  161. package/dist/effect/generated/media.d.ts +1 -1
  162. package/dist/effect/generated/messages.d.ts +1 -1
  163. package/dist/effect/generated/namespaces.d.ts +1 -1
  164. package/dist/effect/generated/newsletter-domains.d.ts +1 -1
  165. package/dist/effect/generated/newsletter-issues.d.ts +1 -1
  166. package/dist/effect/generated/newsletters.d.ts +1 -1
  167. package/dist/effect/generated/operations.d.ts +1 -1
  168. package/dist/effect/generated/organizations.d.ts +1 -1
  169. package/dist/effect/generated/policies.d.ts +1 -1
  170. package/dist/effect/generated/scheduled-messages.d.ts +147 -147
  171. package/dist/effect/generated/shared.d.ts +408 -102
  172. package/dist/effect/generated/shared.js +80 -36
  173. package/dist/effect/generated/subscriptions.d.ts +1 -1
  174. package/dist/effect/generated/template-registrations.d.ts +1 -4
  175. package/dist/effect/generated/template-registrations.js +2 -6
  176. package/dist/effect/generated/template-share-links.d.ts +1 -1
  177. package/dist/effect/generated/templates.d.ts +1 -1
  178. package/dist/effect/generated/topic-forms.d.ts +1 -1
  179. package/dist/effect/generated/topics.d.ts +1 -1
  180. package/dist/effect/generated/webhooks.d.ts +1 -1
  181. package/dist/effect/generated/whats-app-flows.d.ts +1 -1
  182. package/dist/effect/generated/whats-app-setup-links.d.ts +1 -1
  183. package/dist/effect/generated/whats-app.d.ts +1 -1
  184. package/dist/effect/generated/whoami.d.ts +1 -1
  185. package/dist/effect/generated-metadata.d.ts +18 -84
  186. package/dist/effect/generated-metadata.js +362 -415
  187. package/dist/effect/index.d.ts +45 -47
  188. package/dist/effect/index.js +1 -3
  189. package/dist/effect/integrations-catalog.d.ts +3 -3
  190. package/dist/effect/integrations-catalog.js +2 -1
  191. package/dist/effect/integrations.d.ts +11 -11
  192. package/dist/effect/integrations.js +2 -1
  193. package/dist/effect/internal/client.d.ts +3 -3
  194. package/dist/effect/internal/client.js +1 -1
  195. package/dist/effect/internal/email-sender.d.ts +4 -4
  196. package/dist/effect/internal/mailbox-events.d.ts +2 -2
  197. package/dist/effect/internal/operation.d.ts +24 -5
  198. package/dist/effect/internal/operation.js +25 -22
  199. package/dist/effect/internal/send.d.ts +4 -4
  200. package/dist/effect/journeys.d.ts +46 -22
  201. package/dist/effect/journeys.js +2 -1
  202. package/dist/effect/mailboxes.d.ts +163 -163
  203. package/dist/effect/mailboxes.js +2 -1
  204. package/dist/effect/media.d.ts +5 -5
  205. package/dist/effect/media.js +2 -1
  206. package/dist/effect/messages.d.ts +17 -17
  207. package/dist/effect/messages.js +2 -1
  208. package/dist/effect/namespaces.d.ts +15 -15
  209. package/dist/effect/namespaces.js +2 -1
  210. package/dist/effect/newsletter-domains.d.ts +6 -6
  211. package/dist/effect/newsletter-domains.js +2 -1
  212. package/dist/effect/newsletter-issues.d.ts +11 -11
  213. package/dist/effect/newsletter-issues.js +2 -1
  214. package/dist/effect/newsletters.d.ts +5 -5
  215. package/dist/effect/newsletters.js +2 -1
  216. package/dist/effect/operations.d.ts +5 -5
  217. package/dist/effect/operations.js +2 -1
  218. package/dist/effect/organizations.d.ts +12 -12
  219. package/dist/effect/organizations.js +2 -1
  220. package/dist/effect/policies.d.ts +3 -3
  221. package/dist/effect/policies.js +2 -1
  222. package/dist/effect/scheduled-messages.d.ts +371 -371
  223. package/dist/effect/scheduled-messages.js +2 -1
  224. package/dist/effect/subscriptions.d.ts +1 -1
  225. package/dist/effect/subscriptions.js +2 -1
  226. package/dist/effect/template-registrations.d.ts +3 -3
  227. package/dist/effect/template-registrations.js +2 -1
  228. package/dist/effect/template-share-links.d.ts +5 -5
  229. package/dist/effect/template-share-links.js +2 -1
  230. package/dist/effect/templates.d.ts +46 -46
  231. package/dist/effect/templates.js +2 -1
  232. package/dist/effect/topic-forms.d.ts +5 -5
  233. package/dist/effect/topic-forms.js +2 -1
  234. package/dist/effect/topics.d.ts +13 -13
  235. package/dist/effect/topics.js +2 -1
  236. package/dist/effect/webhooks.d.ts +16 -16
  237. package/dist/effect/webhooks.js +2 -1
  238. package/dist/effect/whatsapp-flows.d.ts +10 -10
  239. package/dist/effect/whatsapp-flows.js +2 -1
  240. package/dist/effect/whatsapp-setup-links.d.ts +6 -6
  241. package/dist/effect/whatsapp-setup-links.js +2 -1
  242. package/dist/effect/whatsapp.d.ts +12 -12
  243. package/dist/effect/whatsapp.js +2 -1
  244. package/dist/effect/whoami.d.ts +1 -1
  245. package/dist/effect/whoami.js +2 -1
  246. package/dist/index.d.ts +1 -1
  247. package/dist/package.js +1 -1
  248. package/dist/promises/client.d.ts +10 -14
  249. package/dist/promises/client.js +3 -7
  250. package/dist/promises/errors.gen.d.ts +1 -1
  251. package/dist/promises/index.d.ts +5 -5
  252. package/dist/promises/request.d.ts +2 -2
  253. package/dist/promises/request.js +1 -1
  254. package/dist/promises/types.gen.d.ts +1 -1
  255. package/dist/request-policy.d.ts +10 -2
  256. package/dist/request-policy.js +3 -5
  257. package/dist/service-map.d.ts +18 -75
  258. package/package.json +17 -29
  259. package/dist/effect/extension-installations.d.ts +0 -132
  260. package/dist/effect/extension-installations.js +0 -28
  261. package/dist/effect/extensions.d.ts +0 -102
  262. package/dist/effect/extensions.js +0 -20
  263. package/dist/effect/generated/extension-installations.d.ts +0 -2761
  264. package/dist/effect/generated/extension-installations.js +0 -405
  265. package/dist/effect/generated/extensions.d.ts +0 -1037
  266. package/dist/effect/generated/extensions.js +0 -214
  267. package/dist/mailbox/dispatch.d.ts +0 -10
  268. package/dist/mailbox/dispatch.js +0 -66
  269. package/dist/mailbox/index.d.ts +0 -17
  270. package/dist/mailbox/index.js +0 -30
  271. package/dist/mailbox/test.d.ts +0 -25
  272. package/dist/mailbox/test.js +0 -181
  273. package/dist/mailbox/types.d.ts +0 -221
  274. package/dist/mailbox/webhook.d.ts +0 -10
  275. package/dist/mailbox/webhook.js +0 -41
  276. package/dist/service-map.js +0 -830
@@ -1,4 +1,4 @@
1
- import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactGroupId, ContactId, ContactIdentity, ContactIdentityId, ConversationId, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MalformedRequestError, MessageId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
1
+ import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactGroupId, ContactId, ContactIdentity, ContactIdentityId, ConversationId, ForbiddenError, GatewayTimeoutError, IntegrationAccountId, InternalError, JsonObject, MalformedRequestError, MessageId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
2
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
4
  // src/effect/generated/contacts.ts
@@ -153,6 +153,7 @@ const ContactPage = /* @__PURE__ */ (() => Schema.Struct({
153
153
  }).annotate({ identifier: "ContactPage" }))();
154
154
  const Contact = /* @__PURE__ */ (() => Schema.Struct({
155
155
  id: ContactId,
156
+ mergedInto: Schema.optionalKey(Schema.Union([ContactId, Schema.Null])),
156
157
  namespaceId: Schema.Union([NamespaceId, Schema.Null]),
157
158
  name: Schema.String,
158
159
  displayName: Schema.Union([Schema.String, Schema.Null]),
@@ -457,6 +458,32 @@ const ContactsSetConsent404 = ResourceNotFoundError;
457
458
  const ContactsSetConsent422 = ValidationError;
458
459
  const ContactsSetConsent500 = InternalError;
459
460
  const ContactsSetConsent504 = GatewayTimeoutError;
461
+ const ContactsMergePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ContactId }))();
462
+ const ContactsMergeHeaders = /* @__PURE__ */ (() => Schema.Struct({ "x-samva-conversation-agent-admission": Schema.optionalKey(Schema.String) }))();
463
+ const ContactsMergeRequestJson = /* @__PURE__ */ (() => Schema.Struct({ from: ContactId }))();
464
+ const ContactsMerge200 = Contact;
465
+ const ContactsMerge400 = MalformedRequestError;
466
+ const ContactsMerge401 = UnauthorizedError;
467
+ const ContactsMerge403 = ForbiddenError;
468
+ const ContactsMerge404 = ResourceNotFoundError;
469
+ const ContactsMerge409 = ConflictError;
470
+ const ContactsMerge422 = ValidationError;
471
+ const ContactsMerge500 = InternalError;
472
+ const ContactsMerge502 = BillingProviderError;
473
+ const ContactsMerge504 = GatewayTimeoutError;
474
+ const ContactsMergeByConnectionPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ContactId }))();
475
+ const ContactsMergeByConnectionHeaders = /* @__PURE__ */ (() => Schema.Struct({ "x-samva-conversation-agent-admission": Schema.optionalKey(Schema.String) }))();
476
+ const ContactsMergeByConnectionRequestJson = /* @__PURE__ */ (() => Schema.Struct({ connection: IntegrationAccountId }))();
477
+ const ContactsMergeByConnection200 = Contact;
478
+ const ContactsMergeByConnection400 = MalformedRequestError;
479
+ const ContactsMergeByConnection401 = UnauthorizedError;
480
+ const ContactsMergeByConnection403 = ForbiddenError;
481
+ const ContactsMergeByConnection404 = ResourceNotFoundError;
482
+ const ContactsMergeByConnection409 = ConflictError;
483
+ const ContactsMergeByConnection422 = ValidationError;
484
+ const ContactsMergeByConnection500 = InternalError;
485
+ const ContactsMergeByConnection502 = BillingProviderError;
486
+ const ContactsMergeByConnection504 = GatewayTimeoutError;
460
487
  const ContactsAddTagsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ContactId }))();
461
488
  const ContactsAddTagsRequestJson = /* @__PURE__ */ (() => Schema.Struct({ tags: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]) }))();
462
489
  const ContactsAddTags200 = Contact;
@@ -962,7 +989,39 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
962
989
  ContactsSetConsent500,
963
990
  ContactsSetConsent504.pipe(HttpApiSchema.status(504))
964
991
  ]
965
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.setConsent").annotate(OpenApi.Summary, "Record contact consent").annotate(OpenApi.Description, "Records the contact's consent on one channel at one of its addresses and returns the contact. `opted_out` stops every send on that channel to that address until the contact opts back in; `opted_in` is what channels that require opt-in check for. `source` and `capturedAt` say where and when the contact decided; `proof` keeps your evidence. A decision captured before the recorded one is ignored. A change publishes `contact.consent_changed`."), HttpApiEndpoint.post("contactsAddTags", "/v1/contacts/:id/tags", {
992
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.setConsent").annotate(OpenApi.Summary, "Record contact consent").annotate(OpenApi.Description, "Records the contact's consent on one channel at one of its addresses and returns the contact. `opted_out` stops every send on that channel to that address until the contact opts back in; `opted_in` is what channels that require opt-in check for. `source` and `capturedAt` say where and when the contact decided; `proof` keeps your evidence. A decision captured before the recorded one is ignored. A change publishes `contact.consent_changed`."), HttpApiEndpoint.post("contactsMerge", "/v1/contacts/:id/merge", {
993
+ params: ContactsMergePathParams,
994
+ headers: ContactsMergeHeaders,
995
+ payload: ContactsMergeRequestJson,
996
+ success: ContactsMerge200,
997
+ error: [
998
+ ContactsMerge400.pipe(HttpApiSchema.status(400)),
999
+ ContactsMerge401.pipe(HttpApiSchema.status(401)),
1000
+ ContactsMerge403.pipe(HttpApiSchema.status(403)),
1001
+ ContactsMerge404.pipe(HttpApiSchema.status(404)),
1002
+ ContactsMerge409.pipe(HttpApiSchema.status(409)),
1003
+ ContactsMerge422.pipe(HttpApiSchema.status(422)),
1004
+ ContactsMerge500,
1005
+ ContactsMerge502.pipe(HttpApiSchema.status(502)),
1006
+ ContactsMerge504.pipe(HttpApiSchema.status(504))
1007
+ ]
1008
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.merge").annotate(OpenApi.Summary, "Merge contacts").annotate(OpenApi.Description, "Merges `from` into the contact in the path, within one organization and namespace. The kept contact wins profile and metadata conflicts, blank fields fill, and an explicit topic unsubscribe wins. The absorbed contact remains a record pointing to the kept contact; duplicate campaign recipients and other conflict history stay available. A merge cannot be undone. Agents use the merge-by-connection operation with their own verified connection instead of choosing a source contact."), HttpApiEndpoint.post("contactsMergeByConnection", "/v1/contacts/:id/merge-by-connection", {
1009
+ params: ContactsMergeByConnectionPathParams,
1010
+ headers: ContactsMergeByConnectionHeaders,
1011
+ payload: ContactsMergeByConnectionRequestJson,
1012
+ success: ContactsMergeByConnection200,
1013
+ error: [
1014
+ ContactsMergeByConnection400.pipe(HttpApiSchema.status(400)),
1015
+ ContactsMergeByConnection401.pipe(HttpApiSchema.status(401)),
1016
+ ContactsMergeByConnection403.pipe(HttpApiSchema.status(403)),
1017
+ ContactsMergeByConnection404.pipe(HttpApiSchema.status(404)),
1018
+ ContactsMergeByConnection409.pipe(HttpApiSchema.status(409)),
1019
+ ContactsMergeByConnection422.pipe(HttpApiSchema.status(422)),
1020
+ ContactsMergeByConnection500,
1021
+ ContactsMergeByConnection502.pipe(HttpApiSchema.status(502)),
1022
+ ContactsMergeByConnection504.pipe(HttpApiSchema.status(504))
1023
+ ]
1024
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.mergeByConnection").annotate(OpenApi.Summary, "Merge contacts by verified connection").annotate(OpenApi.Description, "Uses the conversation's active per-contact connection and a current signed conversation admission to derive the contact holding its verified email. Supply the account ID as `connection`; an unverified address, another contact's connection, or a different organization or namespace is refused. If no contact holds the verified email, attaches that identity instead. The conversation contact is kept, and the merge conflict rules are the same as the merge operation."), HttpApiEndpoint.post("contactsAddTags", "/v1/contacts/:id/tags", {
966
1025
  params: ContactsAddTagsPathParams,
967
1026
  payload: ContactsAddTagsRequestJson,
968
1027
  success: ContactsAddTags200,
@@ -1104,6 +1163,6 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
1104
1163
  ContactsPlanImport504.pipe(HttpApiSchema.status(504))
1105
1164
  ]
1106
1165
  }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.planImport").annotate(OpenApi.Summary, "Preview a list migration").annotate(OpenApi.Description, "The complete encoded JSON request must not exceed 3000000 bytes. Reads multiple export files without changing contacts. Readers are assumed opted in where permission evidence is absent or blank. Explicit restrictive evidence wins per address. Returns estimated counts and at most 100 diagnostics; processing rechecks current restrictions. Filenames never establish permission. Missing email columns refuse the file; unrecognized nonblank status values are conflicts and never subscribe a reader.")).annotate(OpenApi.Description, "Contact CRUD, bulk operations, engagement metrics, and activity timeline") {};
1107
- export { BulkUpdateResult, Contact, ContactActivityPage, ContactCustomFields, ContactGroupMembershipPage, ContactIdentityInput, ContactImportJobId, ContactListMembership, ContactLocation, ContactLookup, ContactPage, ContactPreferences, ContactProfile, ContactProfileUpdate, ContactSummary, ContactsAddIdentity200, ContactsAddIdentity400, ContactsAddIdentity401, ContactsAddIdentity403, ContactsAddIdentity404, ContactsAddIdentity409, ContactsAddIdentity422, ContactsAddIdentity500, ContactsAddIdentity504, ContactsAddIdentityPathParams, ContactsAddIdentityRequestJson, ContactsAddTags200, ContactsAddTags400, ContactsAddTags401, ContactsAddTags403, ContactsAddTags404, ContactsAddTags422, ContactsAddTags500, ContactsAddTags504, ContactsAddTagsPathParams, ContactsAddTagsRequestJson, ContactsBulkDelete200, ContactsBulkDelete400, ContactsBulkDelete401, ContactsBulkDelete403, ContactsBulkDelete422, ContactsBulkDelete500, ContactsBulkDelete502, ContactsBulkDelete504, ContactsBulkDeleteRequestJson, ContactsBulkUpdateStatus200, ContactsBulkUpdateStatus400, ContactsBulkUpdateStatus401, ContactsBulkUpdateStatus402, ContactsBulkUpdateStatus403, ContactsBulkUpdateStatus422, ContactsBulkUpdateStatus500, ContactsBulkUpdateStatus502, ContactsBulkUpdateStatus504, ContactsBulkUpdateStatusRequestJson, ContactsBulkUpdateTags200, ContactsBulkUpdateTags400, ContactsBulkUpdateTags401, ContactsBulkUpdateTags403, ContactsBulkUpdateTags422, ContactsBulkUpdateTags500, ContactsBulkUpdateTags504, ContactsBulkUpdateTagsRequestJson, ContactsCreate201, ContactsCreate400, ContactsCreate401, ContactsCreate402, ContactsCreate403, ContactsCreate404, ContactsCreate409, ContactsCreate422, ContactsCreate500, ContactsCreate502, ContactsCreate504, ContactsCreateRequestJson, ContactsExport200, ContactsExport400, ContactsExport401, ContactsExport403, ContactsExport422, ContactsExport500, ContactsExport504, ContactsExportRequestJson, ContactsFind200, ContactsFind400, ContactsFind401, ContactsFind403, ContactsFind404, ContactsFind409, ContactsFind422, ContactsFind500, ContactsFind504, ContactsFindOrCreate200, ContactsFindOrCreate400, ContactsFindOrCreate401, ContactsFindOrCreate402, ContactsFindOrCreate403, ContactsFindOrCreate404, ContactsFindOrCreate409, ContactsFindOrCreate422, ContactsFindOrCreate500, ContactsFindOrCreate502, ContactsFindOrCreate504, ContactsFindOrCreateRequestJson, ContactsFindRequestJson, ContactsGet200, ContactsGet400, ContactsGet401, ContactsGet403, ContactsGet404, ContactsGet422, ContactsGet500, ContactsGet504, ContactsGetActivityTimeline200, ContactsGetActivityTimeline400, ContactsGetActivityTimeline401, ContactsGetActivityTimeline403, ContactsGetActivityTimeline404, ContactsGetActivityTimeline422, ContactsGetActivityTimeline500, ContactsGetActivityTimeline504, ContactsGetActivityTimelinePathParams, ContactsGetActivityTimelineQuery, ContactsGetEngagement200, ContactsGetEngagement400, ContactsGetEngagement401, ContactsGetEngagement403, ContactsGetEngagement404, ContactsGetEngagement422, ContactsGetEngagement500, ContactsGetEngagement504, ContactsGetEngagementPathParams, ContactsGetGroupMemberships200, ContactsGetGroupMemberships400, ContactsGetGroupMemberships401, ContactsGetGroupMemberships403, ContactsGetGroupMemberships404, ContactsGetGroupMemberships422, ContactsGetGroupMemberships500, ContactsGetGroupMemberships504, ContactsGetGroupMembershipsPathParams, ContactsGetGroupMembershipsQuery, ContactsGetImportJob200, ContactsGetImportJob400, ContactsGetImportJob401, ContactsGetImportJob403, ContactsGetImportJob404, ContactsGetImportJob422, ContactsGetImportJob500, ContactsGetImportJob504, ContactsGetImportJobPathParams, ContactsGetPathParams, ContactsGroup, ContactsList200, ContactsList400, ContactsList401, ContactsList403, ContactsList422, ContactsList500, ContactsList504, ContactsListQuery, ContactsPlanImport200, ContactsPlanImport400, ContactsPlanImport401, ContactsPlanImport403, ContactsPlanImport404, ContactsPlanImport422, ContactsPlanImport500, ContactsPlanImport504, ContactsPlanImportRequestJson, ContactsRemove200, ContactsRemove400, ContactsRemove401, ContactsRemove403, ContactsRemove404, ContactsRemove422, ContactsRemove500, ContactsRemove502, ContactsRemove504, ContactsRemoveIdentity200, ContactsRemoveIdentity400, ContactsRemoveIdentity401, ContactsRemoveIdentity403, ContactsRemoveIdentity404, ContactsRemoveIdentity422, ContactsRemoveIdentity500, ContactsRemoveIdentity504, ContactsRemoveIdentityPathParams, ContactsRemovePathParams, ContactsRemoveTags200, ContactsRemoveTags400, ContactsRemoveTags401, ContactsRemoveTags403, ContactsRemoveTags404, ContactsRemoveTags422, ContactsRemoveTags500, ContactsRemoveTags504, ContactsRemoveTagsPathParams, ContactsRemoveTagsRequestJson, ContactsSetConsent200, ContactsSetConsent400, ContactsSetConsent401, ContactsSetConsent403, ContactsSetConsent404, ContactsSetConsent422, ContactsSetConsent500, ContactsSetConsent504, ContactsSetConsentPathParams, ContactsSetConsentRequestJson, ContactsStartImport202, ContactsStartImport400, ContactsStartImport401, ContactsStartImport402, ContactsStartImport403, ContactsStartImport404, ContactsStartImport409, ContactsStartImport422, ContactsStartImport500, ContactsStartImport502, ContactsStartImport504, ContactsStartImportHeaders, ContactsStartImportRequestJson, ContactsUpdate200, ContactsUpdate400, ContactsUpdate401, ContactsUpdate402, ContactsUpdate403, ContactsUpdate404, ContactsUpdate422, ContactsUpdate500, ContactsUpdate502, ContactsUpdate504, ContactsUpdatePathParams, ContactsUpdateRequestJson };
1166
+ export { BulkUpdateResult, Contact, ContactActivityPage, ContactCustomFields, ContactGroupMembershipPage, ContactIdentityInput, ContactImportJobId, ContactListMembership, ContactLocation, ContactLookup, ContactPage, ContactPreferences, ContactProfile, ContactProfileUpdate, ContactSummary, ContactsAddIdentity200, ContactsAddIdentity400, ContactsAddIdentity401, ContactsAddIdentity403, ContactsAddIdentity404, ContactsAddIdentity409, ContactsAddIdentity422, ContactsAddIdentity500, ContactsAddIdentity504, ContactsAddIdentityPathParams, ContactsAddIdentityRequestJson, ContactsAddTags200, ContactsAddTags400, ContactsAddTags401, ContactsAddTags403, ContactsAddTags404, ContactsAddTags422, ContactsAddTags500, ContactsAddTags504, ContactsAddTagsPathParams, ContactsAddTagsRequestJson, ContactsBulkDelete200, ContactsBulkDelete400, ContactsBulkDelete401, ContactsBulkDelete403, ContactsBulkDelete422, ContactsBulkDelete500, ContactsBulkDelete502, ContactsBulkDelete504, ContactsBulkDeleteRequestJson, ContactsBulkUpdateStatus200, ContactsBulkUpdateStatus400, ContactsBulkUpdateStatus401, ContactsBulkUpdateStatus402, ContactsBulkUpdateStatus403, ContactsBulkUpdateStatus422, ContactsBulkUpdateStatus500, ContactsBulkUpdateStatus502, ContactsBulkUpdateStatus504, ContactsBulkUpdateStatusRequestJson, ContactsBulkUpdateTags200, ContactsBulkUpdateTags400, ContactsBulkUpdateTags401, ContactsBulkUpdateTags403, ContactsBulkUpdateTags422, ContactsBulkUpdateTags500, ContactsBulkUpdateTags504, ContactsBulkUpdateTagsRequestJson, ContactsCreate201, ContactsCreate400, ContactsCreate401, ContactsCreate402, ContactsCreate403, ContactsCreate404, ContactsCreate409, ContactsCreate422, ContactsCreate500, ContactsCreate502, ContactsCreate504, ContactsCreateRequestJson, ContactsExport200, ContactsExport400, ContactsExport401, ContactsExport403, ContactsExport422, ContactsExport500, ContactsExport504, ContactsExportRequestJson, ContactsFind200, ContactsFind400, ContactsFind401, ContactsFind403, ContactsFind404, ContactsFind409, ContactsFind422, ContactsFind500, ContactsFind504, ContactsFindOrCreate200, ContactsFindOrCreate400, ContactsFindOrCreate401, ContactsFindOrCreate402, ContactsFindOrCreate403, ContactsFindOrCreate404, ContactsFindOrCreate409, ContactsFindOrCreate422, ContactsFindOrCreate500, ContactsFindOrCreate502, ContactsFindOrCreate504, ContactsFindOrCreateRequestJson, ContactsFindRequestJson, ContactsGet200, ContactsGet400, ContactsGet401, ContactsGet403, ContactsGet404, ContactsGet422, ContactsGet500, ContactsGet504, ContactsGetActivityTimeline200, ContactsGetActivityTimeline400, ContactsGetActivityTimeline401, ContactsGetActivityTimeline403, ContactsGetActivityTimeline404, ContactsGetActivityTimeline422, ContactsGetActivityTimeline500, ContactsGetActivityTimeline504, ContactsGetActivityTimelinePathParams, ContactsGetActivityTimelineQuery, ContactsGetEngagement200, ContactsGetEngagement400, ContactsGetEngagement401, ContactsGetEngagement403, ContactsGetEngagement404, ContactsGetEngagement422, ContactsGetEngagement500, ContactsGetEngagement504, ContactsGetEngagementPathParams, ContactsGetGroupMemberships200, ContactsGetGroupMemberships400, ContactsGetGroupMemberships401, ContactsGetGroupMemberships403, ContactsGetGroupMemberships404, ContactsGetGroupMemberships422, ContactsGetGroupMemberships500, ContactsGetGroupMemberships504, ContactsGetGroupMembershipsPathParams, ContactsGetGroupMembershipsQuery, ContactsGetImportJob200, ContactsGetImportJob400, ContactsGetImportJob401, ContactsGetImportJob403, ContactsGetImportJob404, ContactsGetImportJob422, ContactsGetImportJob500, ContactsGetImportJob504, ContactsGetImportJobPathParams, ContactsGetPathParams, ContactsGroup, ContactsList200, ContactsList400, ContactsList401, ContactsList403, ContactsList422, ContactsList500, ContactsList504, ContactsListQuery, ContactsMerge200, ContactsMerge400, ContactsMerge401, ContactsMerge403, ContactsMerge404, ContactsMerge409, ContactsMerge422, ContactsMerge500, ContactsMerge502, ContactsMerge504, ContactsMergeByConnection200, ContactsMergeByConnection400, ContactsMergeByConnection401, ContactsMergeByConnection403, ContactsMergeByConnection404, ContactsMergeByConnection409, ContactsMergeByConnection422, ContactsMergeByConnection500, ContactsMergeByConnection502, ContactsMergeByConnection504, ContactsMergeByConnectionHeaders, ContactsMergeByConnectionPathParams, ContactsMergeByConnectionRequestJson, ContactsMergeHeaders, ContactsMergePathParams, ContactsMergeRequestJson, ContactsPlanImport200, ContactsPlanImport400, ContactsPlanImport401, ContactsPlanImport403, ContactsPlanImport404, ContactsPlanImport422, ContactsPlanImport500, ContactsPlanImport504, ContactsPlanImportRequestJson, ContactsRemove200, ContactsRemove400, ContactsRemove401, ContactsRemove403, ContactsRemove404, ContactsRemove422, ContactsRemove500, ContactsRemove502, ContactsRemove504, ContactsRemoveIdentity200, ContactsRemoveIdentity400, ContactsRemoveIdentity401, ContactsRemoveIdentity403, ContactsRemoveIdentity404, ContactsRemoveIdentity422, ContactsRemoveIdentity500, ContactsRemoveIdentity504, ContactsRemoveIdentityPathParams, ContactsRemovePathParams, ContactsRemoveTags200, ContactsRemoveTags400, ContactsRemoveTags401, ContactsRemoveTags403, ContactsRemoveTags404, ContactsRemoveTags422, ContactsRemoveTags500, ContactsRemoveTags504, ContactsRemoveTagsPathParams, ContactsRemoveTagsRequestJson, ContactsSetConsent200, ContactsSetConsent400, ContactsSetConsent401, ContactsSetConsent403, ContactsSetConsent404, ContactsSetConsent422, ContactsSetConsent500, ContactsSetConsent504, ContactsSetConsentPathParams, ContactsSetConsentRequestJson, ContactsStartImport202, ContactsStartImport400, ContactsStartImport401, ContactsStartImport402, ContactsStartImport403, ContactsStartImport404, ContactsStartImport409, ContactsStartImport422, ContactsStartImport500, ContactsStartImport502, ContactsStartImport504, ContactsStartImportHeaders, ContactsStartImportRequestJson, ContactsUpdate200, ContactsUpdate400, ContactsUpdate401, ContactsUpdate402, ContactsUpdate403, ContactsUpdate404, ContactsUpdate422, ContactsUpdate500, ContactsUpdate502, ContactsUpdate504, ContactsUpdatePathParams, ContactsUpdateRequestJson };
1108
1167
 
1109
1168
  //# sourceMappingURL=contacts.js.map
@@ -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, ContactId, ConversationId, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, JsonValue, MailboxId, MalformedRequestError, MessagePage, NamespaceId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
3
+ import { ApiKeySecurityMiddleware, ConflictError, ContactId, ConversationId, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, JsonValue, MailboxId, MalformedRequestError, MessagePage, NamespaceId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  export type UnknownRecord = {
5
5
  readonly [x: string]: JsonValue;
6
6
  };
@@ -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, {
@@ -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,91 +1,87 @@
1
1
  import { HttpApi } from "effect/http-api";
2
- import { AccountsGroup } from "./accounts";
3
- import { AgentsGroup } from "./agents";
4
- import { AnalyticsGroup } from "./analytics";
5
- import { APIKeysGroup } from "./api-keys";
6
- import { ApprovalRequestsGroup } from "./approval-requests";
7
- import { AttachmentsGroup } from "./attachments";
8
- import { BrandsGroup } from "./brands";
9
- import { CampaignsGroup } from "./campaigns";
10
- import { ContactEventsGroup } from "./contact-events";
11
- import { ContactGroupsGroup } from "./contact-groups";
12
- import { ContactsGroup } from "./contacts";
13
- import { ConversationsGroup } from "./conversations";
14
- import { CustomFieldsGroup } from "./custom-fields";
15
- import { EmailGroup } from "./email";
16
- import { EventsGroup } from "./events";
17
- import { ExtensionInstallationsGroup } from "./extension-installations";
18
- import { ExtensionsGroup } from "./extensions";
19
- import { FeedbackGroup } from "./feedback";
20
- import { IntegrationsGroup } from "./integrations";
21
- import { IntegrationsCatalogGroup } from "./integrations-catalog";
22
- import { JourneysGroup } from "./journeys";
23
- import { MailboxesGroup } from "./mailboxes";
24
- import { MediaGroup } from "./media";
25
- import { MessagesGroup } from "./messages";
26
- import { NamespacesGroup } from "./namespaces";
27
- import { NewsletterDomainsGroup } from "./newsletter-domains";
28
- import { NewsletterIssuesGroup } from "./newsletter-issues";
29
- import { NewslettersGroup } from "./newsletters";
30
- import { OperationsGroup } from "./operations";
31
- import { OrganizationsGroup } from "./organizations";
32
- import { PoliciesGroup } from "./policies";
33
- import { ScheduledMessagesGroup } from "./scheduled-messages";
34
- import { SubscriptionsGroup } from "./subscriptions";
35
- import { TemplateRegistrationsGroup } from "./template-registrations";
36
- import { TemplateShareLinksGroup } from "./template-share-links";
37
- import { TemplatesGroup } from "./templates";
38
- import { TopicFormsGroup } from "./topic-forms";
39
- import { TopicsGroup } from "./topics";
40
- import { WebhooksGroup } from "./webhooks";
41
- import { WhatsAppGroup } from "./whats-app";
42
- import { WhatsAppFlowsGroup } from "./whats-app-flows";
43
- import { WhatsAppSetupLinksGroup } from "./whats-app-setup-links";
44
- import { WhoamiGroup } from "./whoami";
45
- export * from "./shared";
46
- export * from "./accounts";
47
- export * from "./agents";
48
- export * from "./analytics";
49
- export * from "./api-keys";
50
- export * from "./approval-requests";
51
- export * from "./attachments";
52
- export * from "./brands";
53
- export * from "./campaigns";
54
- export * from "./contact-groups";
55
- export * from "./contacts";
56
- export * from "./contact-events";
57
- export * from "./conversations";
58
- export * from "./custom-fields";
59
- export * from "./email";
60
- export * from "./events";
61
- export * from "./extension-installations";
62
- export * from "./extensions";
63
- export * from "./feedback";
64
- export * from "./integrations";
65
- export * from "./integrations-catalog";
66
- export * from "./journeys";
67
- export * from "./mailboxes";
68
- export * from "./media";
69
- export * from "./messages";
70
- export * from "./scheduled-messages";
71
- export * from "./namespaces";
72
- export * from "./newsletters";
73
- export * from "./newsletter-domains";
74
- export * from "./newsletter-issues";
75
- export * from "./operations";
76
- export * from "./organizations";
77
- export * from "./policies";
78
- export * from "./subscriptions";
79
- export * from "./template-share-links";
80
- export * from "./templates";
81
- export * from "./template-registrations";
82
- export * from "./topics";
83
- export * from "./topic-forms";
84
- export * from "./webhooks";
85
- export * from "./whats-app";
86
- export * from "./whats-app-flows";
87
- export * from "./whats-app-setup-links";
88
- export * from "./whoami";
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>;
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 { FeedbackGroup } from "./feedback.js";
18
+ import { IntegrationsGroup } from "./integrations.js";
19
+ import { IntegrationsCatalogGroup } from "./integrations-catalog.js";
20
+ import { JourneysGroup } from "./journeys.js";
21
+ import { MailboxesGroup } from "./mailboxes.js";
22
+ import { MediaGroup } from "./media.js";
23
+ import { MessagesGroup } from "./messages.js";
24
+ import { NamespacesGroup } from "./namespaces.js";
25
+ import { NewsletterDomainsGroup } from "./newsletter-domains.js";
26
+ import { NewsletterIssuesGroup } from "./newsletter-issues.js";
27
+ import { NewslettersGroup } from "./newsletters.js";
28
+ import { OperationsGroup } from "./operations.js";
29
+ import { OrganizationsGroup } from "./organizations.js";
30
+ import { PoliciesGroup } from "./policies.js";
31
+ import { ScheduledMessagesGroup } from "./scheduled-messages.js";
32
+ import { SubscriptionsGroup } from "./subscriptions.js";
33
+ import { TemplateRegistrationsGroup } from "./template-registrations.js";
34
+ import { TemplateShareLinksGroup } from "./template-share-links.js";
35
+ import { TemplatesGroup } from "./templates.js";
36
+ import { TopicFormsGroup } from "./topic-forms.js";
37
+ import { TopicsGroup } from "./topics.js";
38
+ import { WebhooksGroup } from "./webhooks.js";
39
+ import { WhatsAppGroup } from "./whats-app.js";
40
+ import { WhatsAppFlowsGroup } from "./whats-app-flows.js";
41
+ import { WhatsAppSetupLinksGroup } from "./whats-app-setup-links.js";
42
+ import { WhoamiGroup } from "./whoami.js";
43
+ export * from "./shared.js";
44
+ export * from "./accounts.js";
45
+ export * from "./agents.js";
46
+ export * from "./analytics.js";
47
+ export * from "./api-keys.js";
48
+ export * from "./approval-requests.js";
49
+ export * from "./attachments.js";
50
+ export * from "./brands.js";
51
+ export * from "./campaigns.js";
52
+ export * from "./contact-groups.js";
53
+ export * from "./contacts.js";
54
+ export * from "./contact-events.js";
55
+ export * from "./conversations.js";
56
+ export * from "./custom-fields.js";
57
+ export * from "./email.js";
58
+ export * from "./events.js";
59
+ export * from "./feedback.js";
60
+ export * from "./integrations.js";
61
+ export * from "./integrations-catalog.js";
62
+ export * from "./journeys.js";
63
+ export * from "./mailboxes.js";
64
+ export * from "./media.js";
65
+ export * from "./messages.js";
66
+ export * from "./scheduled-messages.js";
67
+ export * from "./namespaces.js";
68
+ export * from "./newsletters.js";
69
+ export * from "./newsletter-domains.js";
70
+ export * from "./newsletter-issues.js";
71
+ export * from "./operations.js";
72
+ export * from "./organizations.js";
73
+ export * from "./policies.js";
74
+ export * from "./subscriptions.js";
75
+ export * from "./template-share-links.js";
76
+ export * from "./templates.js";
77
+ export * from "./template-registrations.js";
78
+ export * from "./topics.js";
79
+ export * from "./topic-forms.js";
80
+ export * from "./webhooks.js";
81
+ export * from "./whats-app.js";
82
+ export * from "./whats-app-flows.js";
83
+ export * from "./whats-app-setup-links.js";
84
+ export * from "./whoami.js";
85
+ 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 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>;
90
86
  export declare class SamvaApi extends SamvaApi_base {
91
87
  }
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { ApiKeySecurityMiddleware, ForbiddenError, GatewayTimeoutError, IntegrationKey, IntegrationStatus, InternalError, JsonObject, MalformedRequestError, UnauthorizedError, ValidationError } from "./shared";
3
+ import { ApiKeySecurityMiddleware, ForbiddenError, GatewayTimeoutError, IntegrationKey, IntegrationStatus, InternalError, JsonObject, MalformedRequestError, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  export type IntegrationCatalogSearchEntry = {
5
5
  readonly key: IntegrationKey;
6
6
  readonly kind: "mcp" | "openapi" | "graphql";
@@ -218,7 +218,7 @@ export type IntegrationCatalogPrepareRequestJson = {
218
218
  };
219
219
  export declare const IntegrationCatalogPrepareRequestJson: Schema.Struct<{
220
220
  readonly provider: Schema.String;
221
- readonly input: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
221
+ readonly input: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
222
222
  }>;
223
223
  export type IntegrationCatalogPrepare200 = {
224
224
  readonly connectSpec: {
@@ -443,7 +443,7 @@ declare const IntegrationsCatalogGroup_base: HttpApiGroup.HttpApiGroup<"Integrat
443
443
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
444
444
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationCatalogPrepare", "POST", "/v1/integrations/catalog/prepare", never, never, Schema.toCodecJson<Schema.Struct<{
445
445
  readonly provider: Schema.String;
446
- readonly input: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
446
+ readonly input: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
447
447
  }>>, never, Schema.toCodecJson<Schema.Struct<{
448
448
  readonly connectSpec: Schema.Struct<{
449
449
  readonly provider: Schema.String;
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { AccountLinks, AnswerWithoutApproval, ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, IntegrationId, IntegrationKey, IntegrationStatus, IntegrationTool, InternalError, JsonObject, MalformedRequestError, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared";
3
+ import { AccountLinks, AnswerWithoutApproval, ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, IntegrationId, IntegrationKey, IntegrationStatus, IntegrationTool, InternalError, JsonObject, MalformedRequestError, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared.js";
4
4
  export type IntegrationToolKind = "query" | "mutation";
5
5
  export declare const IntegrationToolKind: Schema.Union<readonly [Schema.Literal<"query">, Schema.Literal<"mutation">]>;
6
6
  export type DeleteIntegrationResponse = {
@@ -53,7 +53,7 @@ export type Integration = {
53
53
  };
54
54
  export declare const Integration: Schema.Struct<{
55
55
  readonly app: Schema.String;
56
- readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
56
+ readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
57
57
  readonly id: Schema.brand<Schema.String, "IntegrationId">;
58
58
  readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
59
59
  readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
@@ -86,7 +86,7 @@ export type IntegrationList = {
86
86
  export declare const IntegrationList: Schema.Struct<{
87
87
  readonly items: Schema.$Array<Schema.Struct<{
88
88
  readonly app: Schema.String;
89
- readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
89
+ readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
90
90
  readonly id: Schema.brand<Schema.String, "IntegrationId">;
91
91
  readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
92
92
  readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
@@ -126,7 +126,7 @@ export type IntegrationsList200 = IntegrationList;
126
126
  export declare const IntegrationsList200: Schema.Struct<{
127
127
  readonly items: Schema.$Array<Schema.Struct<{
128
128
  readonly app: Schema.String;
129
- readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
129
+ readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
130
130
  readonly id: Schema.brand<Schema.String, "IntegrationId">;
131
131
  readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
132
132
  readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
@@ -174,12 +174,12 @@ export type IntegrationsInstallRequestJson = {
174
174
  export declare const IntegrationsInstallRequestJson: Schema.Struct<{
175
175
  readonly app: Schema.String;
176
176
  readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
177
- readonly settings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
177
+ readonly settings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
178
178
  }>;
179
179
  export type IntegrationsInstall201 = Integration;
180
180
  export declare const IntegrationsInstall201: Schema.Struct<{
181
181
  readonly app: Schema.String;
182
- readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
182
+ readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
183
183
  readonly id: Schema.brand<Schema.String, "IntegrationId">;
184
184
  readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
185
185
  readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
@@ -228,7 +228,7 @@ export declare const IntegrationsGetPathParams: Schema.Struct<{
228
228
  export type IntegrationsGet200 = Integration;
229
229
  export declare const IntegrationsGet200: Schema.Struct<{
230
230
  readonly app: Schema.String;
231
- readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
231
+ readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
232
232
  readonly id: Schema.brand<Schema.String, "IntegrationId">;
233
233
  readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
234
234
  readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
@@ -319,12 +319,12 @@ export declare const IntegrationsUpdateRequestJson: Schema.Struct<{
319
319
  readonly enabled: Schema.optionalKey<Schema.Boolean>;
320
320
  readonly runsWithoutApproval: Schema.optionalKey<Schema.Boolean>;
321
321
  }>>;
322
- readonly settings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
322
+ readonly settings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
323
323
  }>;
324
324
  export type IntegrationsUpdate200 = Integration;
325
325
  export declare const IntegrationsUpdate200: Schema.Struct<{
326
326
  readonly app: Schema.String;
327
- readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
327
+ readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
328
328
  readonly id: Schema.brand<Schema.String, "IntegrationId">;
329
329
  readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
330
330
  readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
@@ -470,7 +470,7 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
470
470
  readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
471
471
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
472
472
  readonly app: Schema.String;
473
- readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
473
+ readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
474
474
  readonly id: Schema.brand<Schema.String, "IntegrationId">;
475
475
  readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
476
476
  readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
@@ -598,10 +598,10 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
598
598
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"integrationsInstall", "POST", "/v1/integrations", never, never, Schema.toCodecJson<Schema.Struct<{
599
599
  readonly app: Schema.String;
600
600
  readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
601
- readonly settings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
601
+ readonly settings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
602
602
  }>>, never, Schema.toCodecJson<Schema.Struct<{
603
603
  readonly app: Schema.String;
604
- readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
604
+ readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
605
605
  readonly id: Schema.brand<Schema.String, "IntegrationId">;
606
606
  readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
607
607
  readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
@@ -732,7 +732,7 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
732
732
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
733
733
  readonly items: Schema.$Array<Schema.Struct<{
734
734
  readonly app: Schema.String;
735
- readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
735
+ readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
736
736
  readonly id: Schema.brand<Schema.String, "IntegrationId">;
737
737
  readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
738
738
  readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
@@ -1247,10 +1247,10 @@ declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"Integrations",
1247
1247
  readonly enabled: Schema.optionalKey<Schema.Boolean>;
1248
1248
  readonly runsWithoutApproval: Schema.optionalKey<Schema.Boolean>;
1249
1249
  }>>;
1250
- readonly settings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
1250
+ readonly settings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1251
1251
  }>>, never, Schema.toCodecJson<Schema.Struct<{
1252
1252
  readonly app: Schema.String;
1253
- readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
1253
+ readonly settings: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
1254
1254
  readonly id: Schema.brand<Schema.String, "IntegrationId">;
1255
1255
  readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
1256
1256
  readonly accounts: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;