samva 0.53.0 → 0.55.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 (157) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +1 -0
  3. package/dist/_virtual/_rolldown/runtime.js +4 -4
  4. package/dist/agent/index.js +1 -1
  5. package/dist/client/client/client.gen.js +1 -2
  6. package/dist/client/client/utils.gen.js +1 -1
  7. package/dist/client/client.gen.js +1 -1
  8. package/dist/client/sdk.gen.d.ts +96 -12
  9. package/dist/client/sdk.gen.js +314 -25
  10. package/dist/client/types.gen.d.ts +647 -13
  11. package/dist/client-attribution.js +1 -1
  12. package/dist/effect/agents.js +1 -1
  13. package/dist/effect/analytics.js +1 -1
  14. package/dist/effect/api-keys.js +1 -1
  15. package/dist/effect/approval-requests.js +1 -1
  16. package/dist/effect/attachments.js +1 -1
  17. package/dist/effect/brands.d.ts +8 -1
  18. package/dist/effect/brands.js +2 -2
  19. package/dist/effect/campaigns.d.ts +66 -56
  20. package/dist/effect/campaigns.js +1 -1
  21. package/dist/effect/categories.js +6 -6
  22. package/dist/effect/contact-groups.js +1 -1
  23. package/dist/effect/contacts.js +1 -1
  24. package/dist/effect/conversations.js +1 -1
  25. package/dist/effect/custom-fields.js +1 -1
  26. package/dist/effect/descriptors/brands.d.ts +4 -4
  27. package/dist/effect/descriptors/brands.js +4 -4
  28. package/dist/effect/descriptors/email.d.ts +21 -1
  29. package/dist/effect/descriptors/email.js +21 -1
  30. package/dist/effect/descriptors/phone-numbers.d.ts +49 -0
  31. package/dist/effect/descriptors/phone-numbers.js +47 -0
  32. package/dist/effect/descriptors/topics.d.ts +1 -1
  33. package/dist/effect/descriptors/topics.js +1 -1
  34. package/dist/effect/email.d.ts +12 -0
  35. package/dist/effect/email.js +6 -2
  36. package/dist/effect/errors.d.ts +1 -1
  37. package/dist/effect/errors.js +2 -2
  38. package/dist/effect/events.js +2 -2
  39. package/dist/effect/feedback.js +2 -2
  40. package/dist/effect/generated/accounts.d.ts +12 -1
  41. package/dist/effect/generated/accounts.js +2 -1
  42. package/dist/effect/generated/agents.js +7 -7
  43. package/dist/effect/generated/analytics.js +16 -16
  44. package/dist/effect/generated/api-keys.js +7 -7
  45. package/dist/effect/generated/approval-requests.js +1 -1
  46. package/dist/effect/generated/attachments.js +4 -4
  47. package/dist/effect/generated/brands.d.ts +78 -8
  48. package/dist/effect/generated/brands.js +21 -12
  49. package/dist/effect/generated/campaigns.d.ts +17 -1
  50. package/dist/effect/generated/campaigns.js +15 -14
  51. package/dist/effect/generated/contact-events.js +1 -1
  52. package/dist/effect/generated/contact-groups.js +12 -12
  53. package/dist/effect/generated/contacts.js +50 -50
  54. package/dist/effect/generated/conversations.js +7 -7
  55. package/dist/effect/generated/custom-fields.js +6 -6
  56. package/dist/effect/generated/email.d.ts +473 -2
  57. package/dist/effect/generated/email.js +143 -44
  58. package/dist/effect/generated/events.js +5 -5
  59. package/dist/effect/generated/feedback.js +1 -1
  60. package/dist/effect/generated/index.d.ts +3 -1
  61. package/dist/effect/generated/integrations-catalog.d.ts +16 -0
  62. package/dist/effect/generated/integrations-catalog.js +10 -6
  63. package/dist/effect/generated/integrations.js +5 -5
  64. package/dist/effect/generated/journeys.d.ts +158 -1
  65. package/dist/effect/generated/journeys.js +16 -14
  66. package/dist/effect/generated/logs.js +2 -2
  67. package/dist/effect/generated/mailboxes.d.ts +41 -3
  68. package/dist/effect/generated/mailboxes.js +48 -50
  69. package/dist/effect/generated/media.js +1 -1
  70. package/dist/effect/generated/messages.d.ts +6 -0
  71. package/dist/effect/generated/messages.js +12 -6
  72. package/dist/effect/generated/namespaces.d.ts +9 -9
  73. package/dist/effect/generated/namespaces.js +1 -1
  74. package/dist/effect/generated/newsletter-domains.js +1 -1
  75. package/dist/effect/generated/newsletter-issues.js +69 -69
  76. package/dist/effect/generated/newsletters.js +1 -1
  77. package/dist/effect/generated/operations.js +1 -1
  78. package/dist/effect/generated/organizations.d.ts +3 -0
  79. package/dist/effect/generated/organizations.js +2 -1
  80. package/dist/effect/generated/phone-numbers.d.ts +817 -0
  81. package/dist/effect/generated/phone-numbers.js +230 -0
  82. package/dist/effect/generated/policies.js +2 -2
  83. package/dist/effect/generated/scheduled-messages.js +1 -1
  84. package/dist/effect/generated/shared.d.ts +75 -14
  85. package/dist/effect/generated/shared.js +46 -17
  86. package/dist/effect/generated/subscriptions.js +1 -1
  87. package/dist/effect/generated/template-registrations.js +1 -1
  88. package/dist/effect/generated/template-share-links.js +9 -9
  89. package/dist/effect/generated/templates.d.ts +34 -1
  90. package/dist/effect/generated/templates.js +136 -121
  91. package/dist/effect/generated/topic-forms.js +1 -1
  92. package/dist/effect/generated/topics.d.ts +10 -0
  93. package/dist/effect/generated/topics.js +20 -13
  94. package/dist/effect/generated/webhooks.js +18 -18
  95. package/dist/effect/generated/whats-app-flows.js +5 -5
  96. package/dist/effect/generated/whats-app-setup-links.js +1 -1
  97. package/dist/effect/generated/whats-app.d.ts +75 -0
  98. package/dist/effect/generated/whats-app.js +43 -18
  99. package/dist/effect/generated/whoami.js +1 -1
  100. package/dist/effect/generated-metadata.d.ts +47 -1
  101. package/dist/effect/generated-metadata.js +175 -146
  102. package/dist/effect/index.d.ts +1 -0
  103. package/dist/effect/index.js +6 -5
  104. package/dist/effect/integrations-catalog.js +1 -1
  105. package/dist/effect/integrations.js +1 -1
  106. package/dist/effect/internal/client.js +6 -6
  107. package/dist/effect/internal/email-sender.js +3 -3
  108. package/dist/effect/internal/log-events.js +2 -2
  109. package/dist/effect/internal/mailbox-events.js +1 -1
  110. package/dist/effect/internal/operation.js +2 -2
  111. package/dist/effect/internal/send.js +4 -4
  112. package/dist/effect/journeys.d.ts +20 -0
  113. package/dist/effect/journeys.js +1 -1
  114. package/dist/effect/logs.js +1 -1
  115. package/dist/effect/mailboxes.d.ts +191 -191
  116. package/dist/effect/mailboxes.js +3 -3
  117. package/dist/effect/media.js +2 -2
  118. package/dist/effect/messages.js +2 -2
  119. package/dist/effect/namespaces.d.ts +2 -2
  120. package/dist/effect/namespaces.js +1 -1
  121. package/dist/effect/newsletter-domains.js +1 -1
  122. package/dist/effect/newsletter-issues.js +1 -1
  123. package/dist/effect/newsletters.js +1 -1
  124. package/dist/effect/operations.js +1 -1
  125. package/dist/effect/organizations.js +1 -1
  126. package/dist/effect/phone-numbers.d.ts +22 -0
  127. package/dist/effect/phone-numbers.js +21 -0
  128. package/dist/effect/policies.js +1 -1
  129. package/dist/effect/retry.js +3 -3
  130. package/dist/effect/scheduled-messages.d.ts +350 -350
  131. package/dist/effect/scheduled-messages.js +1 -1
  132. package/dist/effect/subscriptions.js +1 -1
  133. package/dist/effect/template-registrations.js +1 -1
  134. package/dist/effect/template-share-links.js +1 -1
  135. package/dist/effect/templates.d.ts +1 -0
  136. package/dist/effect/templates.js +2 -2
  137. package/dist/effect/topic-forms.js +1 -1
  138. package/dist/effect/topics.d.ts +70 -2
  139. package/dist/effect/topics.js +1 -1
  140. package/dist/effect/webhooks.js +2 -2
  141. package/dist/effect/whatsapp-flows.js +1 -1
  142. package/dist/effect/whatsapp-setup-links.js +1 -1
  143. package/dist/effect/whatsapp.d.ts +10 -0
  144. package/dist/effect/whatsapp.js +1 -1
  145. package/dist/effect/whoami.js +1 -1
  146. package/dist/index.js +2 -2
  147. package/dist/package.json.js +5 -0
  148. package/dist/promises/client.d.ts +3 -1
  149. package/dist/promises/client.js +7 -5
  150. package/dist/promises/errors.gen.d.ts +16 -2
  151. package/dist/promises/errors.gen.js +48 -11
  152. package/dist/promises/index.js +3 -3
  153. package/dist/promises/types.gen.d.ts +1 -1
  154. package/dist/request-policy.js +1 -1
  155. package/dist/service-map.d.ts +40 -5
  156. package/package.json +9 -5
  157. package/dist/package.js +0 -5
@@ -28,6 +28,7 @@ import { NewsletterIssuesGroup } from "./newsletter-issues.js";
28
28
  import { NewslettersGroup } from "./newsletters.js";
29
29
  import { OperationsGroup } from "./operations.js";
30
30
  import { OrganizationsGroup } from "./organizations.js";
31
+ import { PhoneNumbersGroup } from "./phone-numbers.js";
31
32
  import { PoliciesGroup } from "./policies.js";
32
33
  import { ScheduledMessagesGroup } from "./scheduled-messages.js";
33
34
  import { SubscriptionsGroup } from "./subscriptions.js";
@@ -72,6 +73,7 @@ export * from "./newsletter-domains.js";
72
73
  export * from "./newsletter-issues.js";
73
74
  export * from "./operations.js";
74
75
  export * from "./organizations.js";
76
+ export * from "./phone-numbers.js";
75
77
  export * from "./policies.js";
76
78
  export * from "./subscriptions.js";
77
79
  export * from "./template-share-links.js";
@@ -84,6 +86,6 @@ export * from "./whats-app.js";
84
86
  export * from "./whats-app-flows.js";
85
87
  export * from "./whats-app-setup-links.js";
86
88
  export * from "./whoami.js";
87
- 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 LogsGroup | 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>;
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 FeedbackGroup | typeof IntegrationsGroup | typeof IntegrationsCatalogGroup | typeof JourneysGroup | typeof LogsGroup | typeof MailboxesGroup | typeof MediaGroup | typeof MessagesGroup | typeof NamespacesGroup | typeof NewsletterDomainsGroup | typeof NewsletterIssuesGroup | typeof NewslettersGroup | typeof OperationsGroup | typeof OrganizationsGroup | typeof PhoneNumbersGroup | 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>;
88
90
  export declare class SamvaApi extends SamvaApi_base {
89
91
  }
@@ -239,6 +239,10 @@ export type RecipeReadinessResponse = {
239
239
  readonly accountId: WhatsAppBusinessAccountId;
240
240
  readonly address: string;
241
241
  readonly status: "ready" | "reconnect" | "unverified" | "inactive";
242
+ readonly sendingLock: {
243
+ readonly lockedAt: string;
244
+ readonly reason: string;
245
+ } | null;
242
246
  readonly registration: {
243
247
  readonly id: TemplateRegistrationId;
244
248
  readonly status: "draft" | "submitted" | "approved" | "rejected" | "paused" | "disabled";
@@ -281,6 +285,10 @@ export declare const RecipeReadinessResponse: Schema.Struct<{
281
285
  readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
282
286
  readonly address: Schema.String;
283
287
  readonly status: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"reconnect">, Schema.Literal<"unverified">, Schema.Literal<"inactive">]>;
288
+ readonly sendingLock: Schema.Union<readonly [Schema.Struct<{
289
+ readonly lockedAt: Schema.String;
290
+ readonly reason: Schema.String;
291
+ }>, Schema.Null]>;
284
292
  readonly registration: Schema.Union<readonly [Schema.Struct<{
285
293
  readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
286
294
  readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
@@ -991,6 +999,10 @@ export declare const IntegrationCatalogRecipeReadiness200: Schema.Struct<{
991
999
  readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
992
1000
  readonly address: Schema.String;
993
1001
  readonly status: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"reconnect">, Schema.Literal<"unverified">, Schema.Literal<"inactive">]>;
1002
+ readonly sendingLock: Schema.Union<readonly [Schema.Struct<{
1003
+ readonly lockedAt: Schema.String;
1004
+ readonly reason: Schema.String;
1005
+ }>, Schema.Null]>;
994
1006
  readonly registration: Schema.Union<readonly [Schema.Struct<{
995
1007
  readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
996
1008
  readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
@@ -1870,6 +1882,10 @@ declare const IntegrationsCatalogGroup_base: HttpApiGroup.HttpApiGroup<"Integrat
1870
1882
  readonly accountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
1871
1883
  readonly address: Schema.String;
1872
1884
  readonly status: Schema.Union<readonly [Schema.Literal<"ready">, Schema.Literal<"reconnect">, Schema.Literal<"unverified">, Schema.Literal<"inactive">]>;
1885
+ readonly sendingLock: Schema.Union<readonly [Schema.Struct<{
1886
+ readonly lockedAt: Schema.String;
1887
+ readonly reason: Schema.String;
1888
+ }>, Schema.Null]>;
1873
1889
  readonly registration: Schema.Union<readonly [Schema.Struct<{
1874
1890
  readonly id: Schema.brand<Schema.String, "TemplateRegistrationId">;
1875
1891
  readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"submitted">, Schema.Literal<"approved">, Schema.Literal<"rejected">, Schema.Literal<"paused">, Schema.Literal<"disabled">]>;
@@ -1,6 +1,6 @@
1
- import { AccountStatus, ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailDomainId, EmailSenderId, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IntegrationAccountId, IntegrationKey, IntegrationStatus, InternalError, JourneyId, JourneyStatus, JsonObject, MailboxEndpointId, MailboxId, MalformedRequestError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RecipeSetupReferences, ResourceNotFoundError, SenderNotReadyError, TemplateId, TemplatePublicationId, TemplateRegistrationId, TopicId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId } from "./shared.js";
2
1
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
2
  import * as Schema from "effect/Schema";
3
+ import { AccountStatus, ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailDomainId, EmailSenderId, ExternalServiceError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IntegrationAccountId, IntegrationKey, IntegrationStatus, InternalError, JourneyId, JourneyStatus, JsonObject, MailboxEndpointId, MailboxId, MalformedRequestError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RecipeSetupReferences, ResourceNotFoundError, SenderNotReadyError, TemplateId, TemplatePublicationId, TemplateRegistrationId, TopicId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId } from "./shared.js";
4
4
  // src/effect/generated/integrations-catalog.ts
5
5
  const RecipeHandoff = /* @__PURE__ */ (() => Schema.Struct({
6
6
  url: Schema.String,
@@ -95,7 +95,7 @@ const RecipeCatalogResponse = /* @__PURE__ */ (() => Schema.Struct({
95
95
  Schema.Literal("shopify.refund_created"),
96
96
  Schema.Literal("shopify.checkout_started")
97
97
  ]),
98
- waitDays: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
98
+ waitDays: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
99
99
  channels: Schema.Array(Schema.Union([Schema.Literal("email"), Schema.Literal("whatsapp")]))
100
100
  })),
101
101
  events: Schema.Array(Schema.Struct({
@@ -106,7 +106,7 @@ const RecipeCatalogResponse = /* @__PURE__ */ (() => Schema.Struct({
106
106
  Schema.Literal("shopify.refund_created"),
107
107
  Schema.Literal("shopify.checkout_started")
108
108
  ]),
109
- version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
109
+ version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
110
110
  producer: Schema.String,
111
111
  schema: JsonObject,
112
112
  paths: Schema.Array(Schema.Struct({
@@ -191,6 +191,10 @@ const RecipeReadinessResponse = /* @__PURE__ */ (() => Schema.Struct({
191
191
  Schema.Literal("unverified"),
192
192
  Schema.Literal("inactive")
193
193
  ]),
194
+ sendingLock: Schema.Union([Schema.Struct({
195
+ lockedAt: Schema.String,
196
+ reason: Schema.String
197
+ }), Schema.Null]).annotate({ description: "The account lock reported by Meta when sending, or null. A later successful message status clears it." }),
194
198
  registration: Schema.Union([Schema.Struct({
195
199
  id: TemplateRegistrationId,
196
200
  status: Schema.Union([
@@ -248,8 +252,8 @@ const IntegrationCatalogEntry = /* @__PURE__ */ (() => Schema.Struct({
248
252
  href: Schema.optionalKey(Schema.Union([Schema.Literal("/whatsapp"), Schema.Null])),
249
253
  connections: Schema.Array(IntegrationCatalogConnection),
250
254
  usedBy: Schema.Struct({
251
- agents: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
252
- journeys: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
255
+ agents: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
256
+ journeys: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
253
257
  })
254
258
  }).annotate({ identifier: "IntegrationCatalogEntry" }))();
255
259
  const RecipeSetup = /* @__PURE__ */ (() => Schema.Struct({
@@ -265,7 +269,7 @@ const ActivatedRecipeSetup = /* @__PURE__ */ (() => Schema.Struct({
265
269
  journey: Schema.Struct({
266
270
  id: JourneyId,
267
271
  status: JourneyStatus,
268
- publishedVersion: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
272
+ publishedVersion: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-0x1fffffffffffff).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" }))
269
273
  })
270
274
  }).annotate({ identifier: "ActivatedRecipeSetup" }))();
271
275
  const IntegrationCatalogList200 = IntegrationCatalogResponse;
@@ -1,6 +1,6 @@
1
- import { AccountLinks, AnswerWithoutApproval, ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeoutError, IntegrationId, IntegrationKey, IntegrationStatus, IntegrationTool, InternalError, JsonObject, MalformedRequestError, ResourceNotFoundError, UnauthorizedError, UserId, ValidationError } from "./shared.js";
2
1
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
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.js";
4
4
  // src/effect/generated/integrations.ts
5
5
  const IntegrationToolKind = /* @__PURE__ */ (() => Schema.Union([Schema.Literal("query"), Schema.Literal("mutation")]).annotate({ identifier: "IntegrationToolKind" }))();
6
6
  const DeleteIntegrationResponse = /* @__PURE__ */ (() => Schema.Struct({
@@ -128,14 +128,14 @@ const IntegrationsReadToolPathParams = /* @__PURE__ */ (() => Schema.Struct({
128
128
  tool: IntegrationTool
129
129
  }))();
130
130
  const IntegrationsReadToolQuery = /* @__PURE__ */ (() => Schema.Struct({
131
- offset: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null])),
131
+ offset: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null])),
132
132
  revision: Schema.optionalKey(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })))
133
133
  }))();
134
134
  const IntegrationsReadTool200 = /* @__PURE__ */ (() => Schema.Struct({
135
135
  data: Schema.String.check(Schema.isMaxCodePoints(32e3).annotate({ expected: "a string with at most 32000 code points" })).check(Schema.isMaxLength(32e3).annotate({ expected: "a value with a length of at most 32000" })),
136
- offset: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
137
- nextOffset: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]),
138
- totalCharacters: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
136
+ offset: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
137
+ nextOffset: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]),
138
+ totalCharacters: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(0x1fffffffffffff).annotate({ expected: "a value less than or equal to 9007199254740991" })),
139
139
  revision: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-f0-9]{64}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
140
140
  }))();
141
141
  const IntegrationsReadTool400 = MalformedRequestError;
@@ -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, ContactId, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JourneyStatus, JsonObject, MalformedRequestError, MessageId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
4
+ import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, ContactReferenceSummary, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JourneyStatus, JsonObject, MalformedRequestError, MessageId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
5
5
  export type JourneyRunStatus = "active" | "paused" | "exited" | "failed";
6
6
  export declare const JourneyRunStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
7
7
  export type JourneyRunId = string & EffectBrand.Brand<"JourneyRunId">;
@@ -96,6 +96,7 @@ export type JourneyRun = {
96
96
  readonly journeyId: JourneyId;
97
97
  readonly version: number;
98
98
  readonly contactId: ContactId;
99
+ readonly contact: ContactReferenceSummary | null;
99
100
  readonly status: JourneyRunStatus;
100
101
  readonly exitReason: JourneyRunExitReason | null;
101
102
  readonly failureReason: string | null;
@@ -112,6 +113,11 @@ export declare const JourneyRun: Schema.Struct<{
112
113
  readonly journeyId: Schema.brand<Schema.String, "JourneyId">;
113
114
  readonly version: Schema.Finite;
114
115
  readonly contactId: Schema.brand<Schema.String, "ContactId">;
116
+ readonly contact: Schema.Union<readonly [Schema.Struct<{
117
+ readonly id: Schema.brand<Schema.String, "ContactId">;
118
+ readonly name: Schema.String;
119
+ readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
120
+ }>, Schema.Null]>;
115
121
  readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
116
122
  readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">]>, Schema.Null]>;
117
123
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -170,6 +176,7 @@ export type JourneyRunDetail = {
170
176
  readonly journeyId: JourneyId;
171
177
  readonly version: number;
172
178
  readonly contactId: ContactId;
179
+ readonly contact: ContactReferenceSummary | null;
173
180
  readonly status: JourneyRunStatus;
174
181
  readonly exitReason: JourneyRunExitReason | null;
175
182
  readonly failureReason: string | null;
@@ -187,6 +194,11 @@ export declare const JourneyRunDetail: Schema.Struct<{
187
194
  readonly journeyId: Schema.brand<Schema.String, "JourneyId">;
188
195
  readonly version: Schema.Finite;
189
196
  readonly contactId: Schema.brand<Schema.String, "ContactId">;
197
+ readonly contact: Schema.Union<readonly [Schema.Struct<{
198
+ readonly id: Schema.brand<Schema.String, "ContactId">;
199
+ readonly name: Schema.String;
200
+ readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
201
+ }>, Schema.Null]>;
190
202
  readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
191
203
  readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">]>, Schema.Null]>;
192
204
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -222,6 +234,11 @@ export declare const JourneyRunPage: Schema.Struct<{
222
234
  readonly journeyId: Schema.brand<Schema.String, "JourneyId">;
223
235
  readonly version: Schema.Finite;
224
236
  readonly contactId: Schema.brand<Schema.String, "ContactId">;
237
+ readonly contact: Schema.Union<readonly [Schema.Struct<{
238
+ readonly id: Schema.brand<Schema.String, "ContactId">;
239
+ readonly name: Schema.String;
240
+ readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
241
+ }>, Schema.Null]>;
225
242
  readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
226
243
  readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">]>, Schema.Null]>;
227
244
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -276,6 +293,11 @@ export declare const Journey: Schema.Struct<{
276
293
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
277
294
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
278
295
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
296
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
297
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
298
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
299
+ }>>;
300
+ readonly topicName: Schema.optionalKey<Schema.String>;
279
301
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
280
302
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
281
303
  }>;
@@ -513,6 +535,11 @@ export declare const JourneyVersion: Schema.Struct<{
513
535
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
514
536
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
515
537
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
538
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
539
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
540
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
541
+ }>>;
542
+ readonly topicName: Schema.optionalKey<Schema.String>;
516
543
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
517
544
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
518
545
  }>;
@@ -784,6 +811,11 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
784
811
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
785
812
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
786
813
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
814
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
815
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
816
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
817
+ }>>;
818
+ readonly topicName: Schema.optionalKey<Schema.String>;
787
819
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
788
820
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
789
821
  }>;
@@ -1015,6 +1047,11 @@ export declare const JourneysCreate201: Schema.Struct<{
1015
1047
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
1016
1048
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
1017
1049
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
1050
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
1051
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
1052
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
1053
+ }>>;
1054
+ readonly topicName: Schema.optionalKey<Schema.String>;
1018
1055
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1019
1056
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1020
1057
  }>;
@@ -1276,6 +1313,11 @@ export declare const JourneysGet200: Schema.Struct<{
1276
1313
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
1277
1314
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
1278
1315
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
1316
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
1317
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
1318
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
1319
+ }>>;
1320
+ readonly topicName: Schema.optionalKey<Schema.String>;
1279
1321
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1280
1322
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1281
1323
  }>;
@@ -1564,6 +1606,11 @@ export declare const JourneysUpdate200: Schema.Struct<{
1564
1606
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
1565
1607
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
1566
1608
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
1609
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
1610
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
1611
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
1612
+ }>>;
1613
+ readonly topicName: Schema.optionalKey<Schema.String>;
1567
1614
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1568
1615
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1569
1616
  }>;
@@ -1819,6 +1866,11 @@ export declare const JourneysArchive200: Schema.Struct<{
1819
1866
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
1820
1867
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
1821
1868
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
1869
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
1870
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
1871
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
1872
+ }>>;
1873
+ readonly topicName: Schema.optionalKey<Schema.String>;
1822
1874
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1823
1875
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1824
1876
  }>;
@@ -2075,6 +2127,11 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
2075
2127
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
2076
2128
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
2077
2129
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
2130
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
2131
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
2132
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
2133
+ }>>;
2134
+ readonly topicName: Schema.optionalKey<Schema.String>;
2078
2135
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2079
2136
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2080
2137
  }>;
@@ -2306,6 +2363,11 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
2306
2363
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
2307
2364
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
2308
2365
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
2366
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
2367
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
2368
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
2369
+ }>>;
2370
+ readonly topicName: Schema.optionalKey<Schema.String>;
2309
2371
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2310
2372
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2311
2373
  }>;
@@ -2567,6 +2629,11 @@ export declare const JourneysPause200: Schema.Struct<{
2567
2629
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
2568
2630
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
2569
2631
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
2632
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
2633
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
2634
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
2635
+ }>>;
2636
+ readonly topicName: Schema.optionalKey<Schema.String>;
2570
2637
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2571
2638
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2572
2639
  }>;
@@ -2830,6 +2897,11 @@ export declare const JourneysPublish200: Schema.Struct<{
2830
2897
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
2831
2898
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
2832
2899
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
2900
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
2901
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
2902
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
2903
+ }>>;
2904
+ readonly topicName: Schema.optionalKey<Schema.String>;
2833
2905
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2834
2906
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2835
2907
  }>;
@@ -3091,6 +3163,11 @@ export declare const JourneysResume200: Schema.Struct<{
3091
3163
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
3092
3164
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
3093
3165
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
3166
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
3167
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
3168
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
3169
+ }>>;
3170
+ readonly topicName: Schema.optionalKey<Schema.String>;
3094
3171
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3095
3172
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
3096
3173
  }>;
@@ -3345,6 +3422,11 @@ export declare const JourneysListRuns200: Schema.Struct<{
3345
3422
  readonly journeyId: Schema.brand<Schema.String, "JourneyId">;
3346
3423
  readonly version: Schema.Finite;
3347
3424
  readonly contactId: Schema.brand<Schema.String, "ContactId">;
3425
+ readonly contact: Schema.Union<readonly [Schema.Struct<{
3426
+ readonly id: Schema.brand<Schema.String, "ContactId">;
3427
+ readonly name: Schema.String;
3428
+ readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
3429
+ }>, Schema.Null]>;
3348
3430
  readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
3349
3431
  readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">]>, Schema.Null]>;
3350
3432
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -3390,6 +3472,11 @@ export declare const JourneysGetRun200: Schema.Struct<{
3390
3472
  readonly journeyId: Schema.brand<Schema.String, "JourneyId">;
3391
3473
  readonly version: Schema.Finite;
3392
3474
  readonly contactId: Schema.brand<Schema.String, "ContactId">;
3475
+ readonly contact: Schema.Union<readonly [Schema.Struct<{
3476
+ readonly id: Schema.brand<Schema.String, "ContactId">;
3477
+ readonly name: Schema.String;
3478
+ readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
3479
+ }>, Schema.Null]>;
3393
3480
  readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
3394
3481
  readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">]>, Schema.Null]>;
3395
3482
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -3502,6 +3589,11 @@ export declare const JourneysGetVersion200: Schema.Struct<{
3502
3589
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
3503
3590
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
3504
3591
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
3592
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
3593
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
3594
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
3595
+ }>>;
3596
+ readonly topicName: Schema.optionalKey<Schema.String>;
3505
3597
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3506
3598
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
3507
3599
  }>;
@@ -3749,6 +3841,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
3749
3841
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
3750
3842
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
3751
3843
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
3844
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
3845
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
3846
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
3847
+ }>>;
3848
+ readonly topicName: Schema.optionalKey<Schema.String>;
3752
3849
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3753
3850
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
3754
3851
  }>;
@@ -4099,6 +4196,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
4099
4196
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
4100
4197
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
4101
4198
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
4199
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
4200
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
4201
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
4202
+ }>>;
4203
+ readonly topicName: Schema.optionalKey<Schema.String>;
4102
4204
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
4103
4205
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
4104
4206
  }>;
@@ -4328,6 +4430,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
4328
4430
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
4329
4431
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
4330
4432
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
4433
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
4434
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
4435
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
4436
+ }>>;
4437
+ readonly topicName: Schema.optionalKey<Schema.String>;
4331
4438
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
4332
4439
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
4333
4440
  }>;
@@ -4719,6 +4826,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
4719
4826
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
4720
4827
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
4721
4828
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
4829
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
4830
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
4831
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
4832
+ }>>;
4833
+ readonly topicName: Schema.optionalKey<Schema.String>;
4722
4834
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
4723
4835
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
4724
4836
  }>;
@@ -5035,6 +5147,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
5035
5147
  readonly journeyId: Schema.brand<Schema.String, "JourneyId">;
5036
5148
  readonly version: Schema.Finite;
5037
5149
  readonly contactId: Schema.brand<Schema.String, "ContactId">;
5150
+ readonly contact: Schema.Union<readonly [Schema.Struct<{
5151
+ readonly id: Schema.brand<Schema.String, "ContactId">;
5152
+ readonly name: Schema.String;
5153
+ readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
5154
+ }>, Schema.Null]>;
5038
5155
  readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
5039
5156
  readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">]>, Schema.Null]>;
5040
5157
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -5184,6 +5301,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
5184
5301
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
5185
5302
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
5186
5303
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
5304
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
5305
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
5306
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
5307
+ }>>;
5308
+ readonly topicName: Schema.optionalKey<Schema.String>;
5187
5309
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5188
5310
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
5189
5311
  }>;
@@ -5599,6 +5721,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
5599
5721
  readonly journeyId: Schema.brand<Schema.String, "JourneyId">;
5600
5722
  readonly version: Schema.Finite;
5601
5723
  readonly contactId: Schema.brand<Schema.String, "ContactId">;
5724
+ readonly contact: Schema.Union<readonly [Schema.Struct<{
5725
+ readonly id: Schema.brand<Schema.String, "ContactId">;
5726
+ readonly name: Schema.String;
5727
+ readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
5728
+ }>, Schema.Null]>;
5602
5729
  readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>;
5603
5730
  readonly exitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"completed">, Schema.Literal<"goal">, Schema.Literal<"archived">, Schema.Literal<"merged">]>, Schema.Null]>;
5604
5731
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -5742,6 +5869,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
5742
5869
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
5743
5870
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
5744
5871
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
5872
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
5873
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
5874
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
5875
+ }>>;
5876
+ readonly topicName: Schema.optionalKey<Schema.String>;
5745
5877
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5746
5878
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
5747
5879
  }>;
@@ -6099,6 +6231,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
6099
6231
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
6100
6232
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
6101
6233
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
6234
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
6235
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
6236
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
6237
+ }>>;
6238
+ readonly topicName: Schema.optionalKey<Schema.String>;
6102
6239
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
6103
6240
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
6104
6241
  }>;
@@ -6611,6 +6748,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
6611
6748
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
6612
6749
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
6613
6750
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
6751
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
6752
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
6753
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
6754
+ }>>;
6755
+ readonly topicName: Schema.optionalKey<Schema.String>;
6614
6756
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
6615
6757
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
6616
6758
  }>;
@@ -6840,6 +6982,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
6840
6982
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
6841
6983
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
6842
6984
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
6985
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
6986
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
6987
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
6988
+ }>>;
6989
+ readonly topicName: Schema.optionalKey<Schema.String>;
6843
6990
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
6844
6991
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
6845
6992
  }>;
@@ -7231,6 +7378,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
7231
7378
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
7232
7379
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
7233
7380
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
7381
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
7382
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
7383
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
7384
+ }>>;
7385
+ readonly topicName: Schema.optionalKey<Schema.String>;
7234
7386
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
7235
7387
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
7236
7388
  }>;
@@ -7742,6 +7894,11 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
7742
7894
  readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
7743
7895
  readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
7744
7896
  readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
7897
+ readonly tracking: Schema.optionalKey<Schema.Struct<{
7898
+ readonly opens: Schema.optionalKey<Schema.Boolean>;
7899
+ readonly clicks: Schema.optionalKey<Schema.Boolean>;
7900
+ }>>;
7901
+ readonly topicName: Schema.optionalKey<Schema.String>;
7745
7902
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
7746
7903
  readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
7747
7904
  }>;