samva 0.45.1 → 0.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +7 -0
- package/README.md +25 -1
- package/dist/client/client/client.gen.d.ts +1 -1
- package/dist/client/client/index.d.ts +10 -10
- package/dist/client/client/types.gen.d.ts +4 -4
- package/dist/client/client/utils.gen.d.ts +2 -2
- package/dist/client/client.gen.d.ts +2 -2
- package/dist/client/core/bodySerializer.gen.d.ts +1 -1
- package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/client/core/types.gen.d.ts +2 -2
- package/dist/client/core/utils.gen.d.ts +1 -1
- package/dist/client/sdk.gen.d.ts +439 -6
- package/dist/client/sdk.gen.js +1544 -229
- package/dist/client/types.gen.d.ts +8120 -5616
- package/dist/effect/accounts.d.ts +50 -0
- package/dist/effect/accounts.js +23 -0
- package/dist/effect/agents.d.ts +25 -16
- package/dist/effect/agents.js +3 -2
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +2 -1
- package/dist/effect/api-keys.d.ts +13 -13
- package/dist/effect/api-keys.js +2 -1
- package/dist/effect/approval-requests.d.ts +42 -0
- package/dist/effect/approval-requests.js +19 -0
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +2 -1
- package/dist/effect/brands.d.ts +7 -7
- package/dist/effect/brands.js +2 -1
- package/dist/effect/campaigns.d.ts +205 -205
- package/dist/effect/campaigns.js +2 -1
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/contact-groups.d.ts +18 -18
- package/dist/effect/contact-groups.js +2 -1
- package/dist/effect/contacts.d.ts +33 -33
- package/dist/effect/contacts.js +3 -2
- package/dist/effect/conversations.d.ts +17 -17
- package/dist/effect/conversations.js +2 -1
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +2 -1
- package/dist/effect/descriptors/accounts.d.ts +59 -0
- package/dist/effect/descriptors/accounts.js +57 -0
- package/dist/effect/descriptors/agents.d.ts +119 -0
- package/dist/effect/descriptors/agents.js +117 -0
- package/dist/effect/descriptors/analytics.d.ts +56 -0
- package/dist/effect/descriptors/analytics.js +48 -0
- package/dist/effect/descriptors/api-keys.d.ts +80 -0
- package/dist/effect/descriptors/api-keys.js +80 -0
- package/dist/effect/descriptors/approval-requests.d.ts +41 -0
- package/dist/effect/descriptors/approval-requests.js +43 -0
- package/dist/effect/descriptors/attachments.d.ts +41 -0
- package/dist/effect/descriptors/attachments.js +43 -0
- package/dist/effect/descriptors/brands.d.ts +60 -0
- package/dist/effect/descriptors/brands.js +60 -0
- package/dist/effect/descriptors/campaigns.d.ts +148 -0
- package/dist/effect/descriptors/campaigns.js +144 -0
- package/dist/effect/descriptors/contact-groups.d.ts +99 -0
- package/dist/effect/descriptors/contact-groups.js +97 -0
- package/dist/effect/descriptors/contacts.d.ts +226 -0
- package/dist/effect/descriptors/contacts.js +214 -0
- package/dist/effect/descriptors/conversations.d.ts +130 -0
- package/dist/effect/descriptors/conversations.js +130 -0
- package/dist/effect/descriptors/custom-fields.d.ts +40 -0
- package/dist/effect/descriptors/custom-fields.js +40 -0
- package/dist/effect/descriptors/email.d.ts +607 -0
- package/dist/effect/descriptors/email.js +561 -0
- package/dist/effect/descriptors/events.d.ts +20 -0
- package/dist/effect/descriptors/events.js +20 -0
- package/dist/effect/descriptors/extension-installations.d.ts +90 -0
- package/dist/effect/descriptors/extension-installations.js +90 -0
- package/dist/effect/descriptors/extensions.d.ts +50 -0
- package/dist/effect/descriptors/extensions.js +50 -0
- package/dist/effect/descriptors/feedback.d.ts +11 -0
- package/dist/effect/descriptors/feedback.js +11 -0
- package/dist/effect/descriptors/integrations-catalog.d.ts +29 -0
- package/dist/effect/descriptors/integrations-catalog.js +27 -0
- package/dist/effect/descriptors/integrations.d.ts +70 -0
- package/dist/effect/descriptors/integrations.js +70 -0
- package/dist/effect/descriptors/journeys.d.ts +140 -0
- package/dist/effect/descriptors/journeys.js +140 -0
- package/dist/effect/descriptors/mailboxes.d.ts +724 -0
- package/dist/effect/descriptors/mailboxes.js +728 -0
- package/dist/effect/descriptors/media.d.ts +51 -0
- package/dist/effect/descriptors/media.js +53 -0
- package/dist/effect/descriptors/messages.d.ts +99 -0
- package/dist/effect/descriptors/messages.js +97 -0
- package/dist/effect/descriptors/namespaces.d.ts +110 -0
- package/dist/effect/descriptors/namespaces.js +114 -0
- package/dist/effect/descriptors/newsletter-domains.d.ts +42 -0
- package/dist/effect/descriptors/newsletter-domains.js +46 -0
- package/dist/effect/descriptors/newsletter-issues.d.ts +112 -0
- package/dist/effect/descriptors/newsletter-issues.js +116 -0
- package/dist/effect/descriptors/newsletters.d.ts +51 -0
- package/dist/effect/descriptors/newsletters.js +53 -0
- package/dist/effect/descriptors/operations.d.ts +31 -0
- package/dist/effect/descriptors/operations.js +33 -0
- package/dist/effect/descriptors/organizations.d.ts +111 -0
- package/dist/effect/descriptors/organizations.js +93 -0
- package/dist/effect/descriptors/policies.d.ts +32 -0
- package/dist/effect/descriptors/policies.js +36 -0
- package/dist/effect/descriptors/scheduled-messages.d.ts +50 -0
- package/dist/effect/descriptors/scheduled-messages.js +50 -0
- package/dist/effect/descriptors/subscriptions.d.ts +11 -0
- package/dist/effect/descriptors/subscriptions.js +11 -0
- package/dist/effect/descriptors/template-registrations.d.ts +32 -0
- package/dist/effect/descriptors/template-registrations.js +36 -0
- package/dist/effect/descriptors/template-share-links.d.ts +52 -0
- package/dist/effect/descriptors/template-share-links.js +56 -0
- package/dist/effect/descriptors/templates.d.ts +365 -0
- package/dist/effect/descriptors/templates.js +355 -0
- package/dist/effect/descriptors/topic-forms.d.ts +52 -0
- package/dist/effect/descriptors/topic-forms.js +56 -0
- package/dist/effect/descriptors/topics.d.ts +89 -0
- package/dist/effect/descriptors/topics.js +87 -0
- package/dist/effect/descriptors/webhooks.d.ts +110 -0
- package/dist/effect/descriptors/webhooks.js +110 -0
- package/dist/effect/descriptors/whats-app-flows.d.ts +99 -0
- package/dist/effect/descriptors/whats-app-flows.js +97 -0
- package/dist/effect/descriptors/whats-app-setup-links.d.ts +40 -0
- package/dist/effect/descriptors/whats-app-setup-links.js +40 -0
- package/dist/effect/descriptors/whats-app.d.ts +116 -0
- package/dist/effect/descriptors/whats-app.js +108 -0
- package/dist/effect/descriptors/whoami.d.ts +11 -0
- package/dist/effect/descriptors/whoami.js +11 -0
- package/dist/effect/email.d.ts +78 -78
- package/dist/effect/email.js +2 -1
- package/dist/effect/errors.d.ts +2 -2
- package/dist/effect/events.d.ts +3 -3
- package/dist/effect/events.js +2 -1
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extension-installations.js +2 -1
- package/dist/effect/extensions.d.ts +9 -9
- package/dist/effect/extensions.js +2 -1
- package/dist/effect/feedback.d.ts +2 -2
- package/dist/effect/feedback.js +2 -1
- package/dist/effect/generated/accounts.d.ts +1002 -0
- package/dist/effect/generated/accounts.js +198 -0
- package/dist/effect/generated/agents.d.ts +85 -1
- package/dist/effect/generated/agents.js +1 -0
- package/dist/effect/generated/analytics.d.ts +1 -1
- package/dist/effect/generated/api-keys.d.ts +1 -1
- package/dist/effect/generated/approval-requests.d.ts +777 -0
- package/dist/effect/generated/approval-requests.js +135 -0
- package/dist/effect/generated/attachments.d.ts +1 -1
- package/dist/effect/generated/brands.d.ts +1 -1
- package/dist/effect/generated/campaigns.d.ts +245 -245
- package/dist/effect/generated/campaigns.js +6 -6
- package/dist/effect/generated/contact-events.d.ts +4 -4
- package/dist/effect/generated/contact-groups.d.ts +1 -1
- package/dist/effect/generated/contacts.d.ts +49 -49
- package/dist/effect/generated/conversations.d.ts +21 -21
- package/dist/effect/generated/conversations.js +10 -10
- package/dist/effect/generated/custom-fields.d.ts +1 -1
- package/dist/effect/generated/email.d.ts +1 -1
- package/dist/effect/generated/events.d.ts +12 -12
- package/dist/effect/generated/events.js +1 -1
- package/dist/effect/generated/extension-installations.d.ts +1 -1
- package/dist/effect/generated/extensions.d.ts +1 -1
- package/dist/effect/generated/feedback.d.ts +1 -1
- package/dist/effect/generated/index.d.ts +88 -78
- package/dist/effect/generated/integrations-catalog.d.ts +671 -0
- package/dist/effect/generated/integrations-catalog.js +217 -0
- package/dist/effect/generated/integrations.d.ts +1401 -0
- package/dist/effect/generated/integrations.js +246 -0
- package/dist/effect/generated/journeys.d.ts +81 -81
- package/dist/effect/generated/mailboxes.d.ts +8157 -4241
- package/dist/effect/generated/mailboxes.js +677 -52
- package/dist/effect/generated/media.d.ts +1 -1
- package/dist/effect/generated/messages.d.ts +9 -9
- package/dist/effect/generated/messages.js +4 -4
- package/dist/effect/generated/namespaces.d.ts +1 -1
- package/dist/effect/generated/newsletter-domains.d.ts +1 -1
- package/dist/effect/generated/newsletter-issues.d.ts +1 -1
- package/dist/effect/generated/newsletters.d.ts +1 -1
- package/dist/effect/generated/operations.d.ts +1 -1
- package/dist/effect/generated/organizations.d.ts +1 -1
- package/dist/effect/generated/policies.d.ts +1 -1
- package/dist/effect/generated/scheduled-messages.d.ts +193 -193
- package/dist/effect/generated/scheduled-messages.js +17 -17
- package/dist/effect/generated/shared.d.ts +662 -512
- package/dist/effect/generated/shared.js +212 -179
- package/dist/effect/generated/subscriptions.d.ts +1 -1
- package/dist/effect/generated/template-registrations.d.ts +1 -1
- package/dist/effect/generated/template-share-links.d.ts +733 -0
- package/dist/effect/generated/template-share-links.js +165 -0
- package/dist/effect/generated/templates.d.ts +39 -22
- package/dist/effect/generated/templates.js +19 -16
- package/dist/effect/generated/topic-forms.d.ts +1 -1
- package/dist/effect/generated/topics.d.ts +1 -1
- package/dist/effect/generated/webhooks.d.ts +1 -1
- package/dist/effect/generated/whats-app-flows.d.ts +1 -1
- package/dist/effect/generated/whats-app-setup-links.d.ts +1 -1
- package/dist/effect/generated/whats-app.d.ts +1 -1
- package/dist/effect/generated/whoami.d.ts +1 -1
- package/dist/effect/generated-metadata.d.ts +248 -0
- package/dist/effect/generated-metadata.js +705 -555
- package/dist/effect/index.d.ts +47 -42
- package/dist/effect/index.js +6 -1
- package/dist/effect/integrations-catalog.d.ts +38 -0
- package/dist/effect/integrations-catalog.js +17 -0
- package/dist/effect/integrations.d.ts +165 -0
- package/dist/effect/integrations.js +25 -0
- package/dist/effect/internal/client.d.ts +3 -3
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/mailbox-events.d.ts +2 -2
- package/dist/effect/internal/operation.d.ts +24 -5
- package/dist/effect/internal/operation.js +21 -21
- package/dist/effect/internal/send.d.ts +4 -4
- package/dist/effect/journeys.d.ts +20 -20
- package/dist/effect/journeys.js +2 -1
- package/dist/effect/mailboxes.d.ts +476 -294
- package/dist/effect/mailboxes.js +33 -2
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +2 -1
- package/dist/effect/messages.d.ts +17 -17
- package/dist/effect/messages.js +2 -1
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/namespaces.js +2 -1
- package/dist/effect/newsletter-domains.d.ts +6 -6
- package/dist/effect/newsletter-domains.js +2 -1
- package/dist/effect/newsletter-issues.d.ts +11 -11
- package/dist/effect/newsletter-issues.js +2 -1
- package/dist/effect/newsletters.d.ts +5 -5
- package/dist/effect/newsletters.js +2 -1
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +2 -1
- package/dist/effect/organizations.d.ts +12 -12
- package/dist/effect/organizations.js +2 -1
- package/dist/effect/policies.d.ts +3 -3
- package/dist/effect/policies.js +2 -1
- package/dist/effect/scheduled-messages.d.ts +372 -372
- package/dist/effect/scheduled-messages.js +2 -1
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +2 -1
- package/dist/effect/template-registrations.d.ts +3 -3
- package/dist/effect/template-registrations.js +2 -1
- package/dist/effect/template-share-links.d.ts +18 -0
- package/dist/effect/template-share-links.js +21 -0
- package/dist/effect/templates.d.ts +49 -48
- package/dist/effect/templates.js +2 -1
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topic-forms.js +2 -1
- package/dist/effect/topics.d.ts +11 -11
- package/dist/effect/topics.js +2 -1
- package/dist/effect/webhooks.d.ts +16 -16
- package/dist/effect/webhooks.js +2 -1
- package/dist/effect/whatsapp-flows.d.ts +10 -10
- package/dist/effect/whatsapp-flows.js +2 -1
- package/dist/effect/whatsapp-setup-links.d.ts +6 -6
- package/dist/effect/whatsapp-setup-links.js +2 -1
- package/dist/effect/whatsapp.d.ts +12 -12
- package/dist/effect/whatsapp.js +2 -1
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/mailbox/dispatch.d.ts +2 -2
- package/dist/mailbox/index.d.ts +4 -4
- package/dist/mailbox/test.d.ts +2 -2
- package/dist/mailbox/types.d.ts +2 -2
- package/dist/mailbox/webhook.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +20 -10
- package/dist/promises/client.js +13 -3
- package/dist/promises/errors.gen.d.ts +23 -3
- package/dist/promises/errors.gen.js +54 -1
- package/dist/promises/index.d.ts +5 -5
- package/dist/promises/index.js +2 -2
- package/dist/promises/request.d.ts +2 -2
- package/dist/promises/request.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.d.ts +10 -2
- package/dist/request-policy.js +3 -5
- package/dist/service-map.d.ts +203 -0
- package/package.json +29 -9
- package/dist/service-map.js +0 -727
|
@@ -119,6 +119,12 @@ const CampaignRunReport = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
119
119
|
replyCount: 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" })),
|
|
120
120
|
skippedReasons: Schema.Array(CampaignRunReportSkippedReason)
|
|
121
121
|
}).annotate({ identifier: "CampaignRunReport" }))();
|
|
122
|
+
const SmsCampaignContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
123
|
+
channel: Schema.Literal("sms"),
|
|
124
|
+
sms: SmsContent,
|
|
125
|
+
conversationId: Schema.optionalKey(CampaignConversationRef),
|
|
126
|
+
metadata: Schema.optionalKey(CampaignContentMetadata)
|
|
127
|
+
}).annotate({ identifier: "SmsCampaignContent" }))();
|
|
122
128
|
const CampaignEmailContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
123
129
|
subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
124
130
|
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -139,12 +145,6 @@ const CampaignEmailContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
139
145
|
headers: Schema.optionalKey(Schema.Union([EmailCustomHeaders, Schema.Null])),
|
|
140
146
|
preheader: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
141
147
|
}).annotate({ identifier: "CampaignEmailContent" }))();
|
|
142
|
-
const SmsCampaignContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
143
|
-
channel: Schema.Literal("sms"),
|
|
144
|
-
sms: SmsContent,
|
|
145
|
-
conversationId: Schema.optionalKey(CampaignConversationRef),
|
|
146
|
-
metadata: Schema.optionalKey(CampaignContentMetadata)
|
|
147
|
-
}).annotate({ identifier: "SmsCampaignContent" }))();
|
|
148
148
|
const EmailCampaignContent = /* @__PURE__ */ (() => Schema.Struct({
|
|
149
149
|
channel: Schema.Literal("email"),
|
|
150
150
|
email: CampaignEmailContent,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
|
-
import { ApiKeySecurityMiddleware, ContactEvent, ContactId, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
|
|
3
|
+
import { ApiKeySecurityMiddleware, ContactEvent, ContactId, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
4
|
export type ContactEventPage = {
|
|
5
5
|
readonly items: ReadonlyArray<ContactEvent>;
|
|
6
6
|
readonly nextCursor: string | null;
|
|
@@ -11,7 +11,7 @@ export declare const ContactEventPage: Schema.Struct<{
|
|
|
11
11
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
12
12
|
readonly name: Schema.String;
|
|
13
13
|
readonly source: Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"samva">]>;
|
|
14
|
-
readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
|
|
14
|
+
readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
15
15
|
readonly occurredAt: Schema.String;
|
|
16
16
|
readonly recordedAt: Schema.String;
|
|
17
17
|
}>>;
|
|
@@ -38,7 +38,7 @@ export declare const ContactEventsListEvents200: Schema.Struct<{
|
|
|
38
38
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
39
39
|
readonly name: Schema.String;
|
|
40
40
|
readonly source: Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"samva">]>;
|
|
41
|
-
readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
|
|
41
|
+
readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
42
42
|
readonly occurredAt: Schema.String;
|
|
43
43
|
readonly recordedAt: Schema.String;
|
|
44
44
|
}>>;
|
|
@@ -69,7 +69,7 @@ declare const ContactEventsGroup_base: HttpApiGroup.HttpApiGroup<"Contact events
|
|
|
69
69
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
70
70
|
readonly name: Schema.String;
|
|
71
71
|
readonly source: Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"samva">]>;
|
|
72
|
-
readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>;
|
|
72
|
+
readonly properties: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
|
|
73
73
|
readonly occurredAt: Schema.String;
|
|
74
74
|
readonly recordedAt: Schema.String;
|
|
75
75
|
}>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
|
-
import { ApiKeySecurityMiddleware, ContactGroupId, ContactId, ContactIdentity, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
|
|
3
|
+
import { ApiKeySecurityMiddleware, ContactGroupId, ContactId, ContactIdentity, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MalformedRequestError, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
4
4
|
export type ContactGroupPage = {
|
|
5
5
|
readonly items: ReadonlyArray<{
|
|
6
6
|
readonly id: ContactGroupId;
|
|
@@ -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, ContactGroupId, ContactId, ContactIdentity, ContactIdentityId, ConversationId, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MalformedRequestError, MessageId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, TopicId, UnauthorizedError, ValidationError } from "./shared";
|
|
4
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactGroupId, ContactId, ContactIdentity, ContactIdentityId, ConversationId, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MalformedRequestError, MessageId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, TopicId, UnauthorizedError, ValidationError } from "./shared.js";
|
|
5
5
|
export type ContactCustomFields = {
|
|
6
6
|
readonly [x: string]: string | number | boolean | null;
|
|
7
7
|
};
|
|
@@ -346,7 +346,7 @@ export declare const Contact: Schema.Struct<{
|
|
|
346
346
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
347
347
|
readonly source: Schema.String;
|
|
348
348
|
readonly capturedAt: Schema.String;
|
|
349
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
349
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
350
350
|
}>, Schema.Null]>;
|
|
351
351
|
}>>;
|
|
352
352
|
}>>;
|
|
@@ -379,7 +379,7 @@ export declare const Contact: Schema.Struct<{
|
|
|
379
379
|
}>, Schema.Null]>>;
|
|
380
380
|
}>, Schema.Null]>;
|
|
381
381
|
readonly tags: Schema.$Array<Schema.String>;
|
|
382
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
382
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
383
383
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
384
384
|
readonly first: Schema.Struct<{
|
|
385
385
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -560,7 +560,7 @@ export declare const ContactsCreateRequestJson: Schema.Struct<{
|
|
|
560
560
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>, Schema.Null]>>;
|
|
561
561
|
readonly statusReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
562
562
|
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
563
|
-
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
563
|
+
readonly metadata: 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]>>;
|
|
564
564
|
}>;
|
|
565
565
|
export type ContactsCreate201 = Contact;
|
|
566
566
|
export declare const ContactsCreate201: Schema.Struct<{
|
|
@@ -584,7 +584,7 @@ export declare const ContactsCreate201: Schema.Struct<{
|
|
|
584
584
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
585
585
|
readonly source: Schema.String;
|
|
586
586
|
readonly capturedAt: Schema.String;
|
|
587
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
587
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
588
588
|
}>, Schema.Null]>;
|
|
589
589
|
}>>;
|
|
590
590
|
}>>;
|
|
@@ -617,7 +617,7 @@ export declare const ContactsCreate201: Schema.Struct<{
|
|
|
617
617
|
}>, Schema.Null]>>;
|
|
618
618
|
}>, Schema.Null]>;
|
|
619
619
|
readonly tags: Schema.$Array<Schema.String>;
|
|
620
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
620
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
621
621
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
622
622
|
readonly first: Schema.Struct<{
|
|
623
623
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -732,7 +732,7 @@ export declare const ContactsGet200: Schema.Struct<{
|
|
|
732
732
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
733
733
|
readonly source: Schema.String;
|
|
734
734
|
readonly capturedAt: Schema.String;
|
|
735
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
735
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
736
736
|
}>, Schema.Null]>;
|
|
737
737
|
}>>;
|
|
738
738
|
}>>;
|
|
@@ -765,7 +765,7 @@ export declare const ContactsGet200: Schema.Struct<{
|
|
|
765
765
|
}>, Schema.Null]>>;
|
|
766
766
|
}>, Schema.Null]>;
|
|
767
767
|
readonly tags: Schema.$Array<Schema.String>;
|
|
768
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
768
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
769
769
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
770
770
|
readonly first: Schema.Struct<{
|
|
771
771
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -925,7 +925,7 @@ export declare const ContactsUpdateRequestJson: Schema.Struct<{
|
|
|
925
925
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>, Schema.Null]>>;
|
|
926
926
|
readonly statusReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
927
927
|
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
928
|
-
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
928
|
+
readonly metadata: 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]>>;
|
|
929
929
|
}>;
|
|
930
930
|
export type ContactsUpdate200 = Contact;
|
|
931
931
|
export declare const ContactsUpdate200: Schema.Struct<{
|
|
@@ -949,7 +949,7 @@ export declare const ContactsUpdate200: Schema.Struct<{
|
|
|
949
949
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
950
950
|
readonly source: Schema.String;
|
|
951
951
|
readonly capturedAt: Schema.String;
|
|
952
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
952
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
953
953
|
}>, Schema.Null]>;
|
|
954
954
|
}>>;
|
|
955
955
|
}>>;
|
|
@@ -982,7 +982,7 @@ export declare const ContactsUpdate200: Schema.Struct<{
|
|
|
982
982
|
}>, Schema.Null]>>;
|
|
983
983
|
}>, Schema.Null]>;
|
|
984
984
|
readonly tags: Schema.$Array<Schema.String>;
|
|
985
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
985
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
986
986
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
987
987
|
readonly first: Schema.Struct<{
|
|
988
988
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -1227,7 +1227,7 @@ export declare const ContactsAddIdentity200: Schema.Struct<{
|
|
|
1227
1227
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
1228
1228
|
readonly source: Schema.String;
|
|
1229
1229
|
readonly capturedAt: Schema.String;
|
|
1230
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
1230
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
1231
1231
|
}>, Schema.Null]>;
|
|
1232
1232
|
}>>;
|
|
1233
1233
|
}>>;
|
|
@@ -1260,7 +1260,7 @@ export declare const ContactsAddIdentity200: Schema.Struct<{
|
|
|
1260
1260
|
}>, Schema.Null]>>;
|
|
1261
1261
|
}>, Schema.Null]>;
|
|
1262
1262
|
readonly tags: Schema.$Array<Schema.String>;
|
|
1263
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
1263
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
1264
1264
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
1265
1265
|
readonly first: Schema.Struct<{
|
|
1266
1266
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -1373,7 +1373,7 @@ export declare const ContactsRemoveIdentity200: Schema.Struct<{
|
|
|
1373
1373
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
1374
1374
|
readonly source: Schema.String;
|
|
1375
1375
|
readonly capturedAt: Schema.String;
|
|
1376
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
1376
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
1377
1377
|
}>, Schema.Null]>;
|
|
1378
1378
|
}>>;
|
|
1379
1379
|
}>>;
|
|
@@ -1406,7 +1406,7 @@ export declare const ContactsRemoveIdentity200: Schema.Struct<{
|
|
|
1406
1406
|
}>, Schema.Null]>>;
|
|
1407
1407
|
}>, Schema.Null]>;
|
|
1408
1408
|
readonly tags: Schema.$Array<Schema.String>;
|
|
1409
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
1409
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
1410
1410
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
1411
1411
|
readonly first: Schema.Struct<{
|
|
1412
1412
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -1507,7 +1507,7 @@ export declare const ContactsSetConsentRequestJson: Schema.Struct<{
|
|
|
1507
1507
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
1508
1508
|
readonly source: Schema.String;
|
|
1509
1509
|
readonly capturedAt: Schema.String;
|
|
1510
|
-
readonly proof: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1510
|
+
readonly proof: 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]>>;
|
|
1511
1511
|
}>;
|
|
1512
1512
|
export type ContactsSetConsent200 = Contact;
|
|
1513
1513
|
export declare const ContactsSetConsent200: Schema.Struct<{
|
|
@@ -1531,7 +1531,7 @@ export declare const ContactsSetConsent200: Schema.Struct<{
|
|
|
1531
1531
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
1532
1532
|
readonly source: Schema.String;
|
|
1533
1533
|
readonly capturedAt: Schema.String;
|
|
1534
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
1534
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
1535
1535
|
}>, Schema.Null]>;
|
|
1536
1536
|
}>>;
|
|
1537
1537
|
}>>;
|
|
@@ -1564,7 +1564,7 @@ export declare const ContactsSetConsent200: Schema.Struct<{
|
|
|
1564
1564
|
}>, Schema.Null]>>;
|
|
1565
1565
|
}>, Schema.Null]>;
|
|
1566
1566
|
readonly tags: Schema.$Array<Schema.String>;
|
|
1567
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
1567
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
1568
1568
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
1569
1569
|
readonly first: Schema.Struct<{
|
|
1570
1570
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -1679,7 +1679,7 @@ export declare const ContactsAddTags200: Schema.Struct<{
|
|
|
1679
1679
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
1680
1680
|
readonly source: Schema.String;
|
|
1681
1681
|
readonly capturedAt: Schema.String;
|
|
1682
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
1682
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
1683
1683
|
}>, Schema.Null]>;
|
|
1684
1684
|
}>>;
|
|
1685
1685
|
}>>;
|
|
@@ -1712,7 +1712,7 @@ export declare const ContactsAddTags200: Schema.Struct<{
|
|
|
1712
1712
|
}>, Schema.Null]>>;
|
|
1713
1713
|
}>, Schema.Null]>;
|
|
1714
1714
|
readonly tags: Schema.$Array<Schema.String>;
|
|
1715
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
1715
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
1716
1716
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
1717
1717
|
readonly first: Schema.Struct<{
|
|
1718
1718
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -1827,7 +1827,7 @@ export declare const ContactsRemoveTags200: Schema.Struct<{
|
|
|
1827
1827
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
1828
1828
|
readonly source: Schema.String;
|
|
1829
1829
|
readonly capturedAt: Schema.String;
|
|
1830
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
1830
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
1831
1831
|
}>, Schema.Null]>;
|
|
1832
1832
|
}>>;
|
|
1833
1833
|
}>>;
|
|
@@ -1860,7 +1860,7 @@ export declare const ContactsRemoveTags200: Schema.Struct<{
|
|
|
1860
1860
|
}>, Schema.Null]>>;
|
|
1861
1861
|
}>, Schema.Null]>;
|
|
1862
1862
|
readonly tags: Schema.$Array<Schema.String>;
|
|
1863
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
1863
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
1864
1864
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
1865
1865
|
readonly first: Schema.Struct<{
|
|
1866
1866
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -2099,7 +2099,7 @@ export declare const ContactsFind200: Schema.Union<readonly [Schema.Struct<{
|
|
|
2099
2099
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
2100
2100
|
readonly source: Schema.String;
|
|
2101
2101
|
readonly capturedAt: Schema.String;
|
|
2102
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
2102
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
2103
2103
|
}>, Schema.Null]>;
|
|
2104
2104
|
}>>;
|
|
2105
2105
|
}>>;
|
|
@@ -2132,7 +2132,7 @@ export declare const ContactsFind200: Schema.Union<readonly [Schema.Struct<{
|
|
|
2132
2132
|
}>, Schema.Null]>>;
|
|
2133
2133
|
}>, Schema.Null]>;
|
|
2134
2134
|
readonly tags: Schema.$Array<Schema.String>;
|
|
2135
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
2135
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
2136
2136
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
2137
2137
|
readonly first: Schema.Struct<{
|
|
2138
2138
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -2291,7 +2291,7 @@ export declare const ContactsFindOrCreate200: Schema.Struct<{
|
|
|
2291
2291
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
2292
2292
|
readonly source: Schema.String;
|
|
2293
2293
|
readonly capturedAt: Schema.String;
|
|
2294
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
2294
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
2295
2295
|
}>, Schema.Null]>;
|
|
2296
2296
|
}>>;
|
|
2297
2297
|
}>>;
|
|
@@ -2324,7 +2324,7 @@ export declare const ContactsFindOrCreate200: Schema.Struct<{
|
|
|
2324
2324
|
}>, Schema.Null]>>;
|
|
2325
2325
|
}>, Schema.Null]>;
|
|
2326
2326
|
readonly tags: Schema.$Array<Schema.String>;
|
|
2327
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
2327
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
2328
2328
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
2329
2329
|
readonly first: Schema.Struct<{
|
|
2330
2330
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -2794,7 +2794,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2794
2794
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
2795
2795
|
readonly source: Schema.String;
|
|
2796
2796
|
readonly capturedAt: Schema.String;
|
|
2797
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
2797
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
2798
2798
|
}>, Schema.Null]>;
|
|
2799
2799
|
}>>;
|
|
2800
2800
|
}>>;
|
|
@@ -2827,7 +2827,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2827
2827
|
}>, Schema.Null]>>;
|
|
2828
2828
|
}>, Schema.Null]>;
|
|
2829
2829
|
readonly tags: Schema.$Array<Schema.String>;
|
|
2830
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
2830
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
2831
2831
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
2832
2832
|
readonly first: Schema.Struct<{
|
|
2833
2833
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -3038,7 +3038,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3038
3038
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
3039
3039
|
readonly source: Schema.String;
|
|
3040
3040
|
readonly capturedAt: Schema.String;
|
|
3041
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
3041
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
3042
3042
|
}>, Schema.Null]>;
|
|
3043
3043
|
}>>;
|
|
3044
3044
|
}>>;
|
|
@@ -3071,7 +3071,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3071
3071
|
}>, Schema.Null]>>;
|
|
3072
3072
|
}>, Schema.Null]>;
|
|
3073
3073
|
readonly tags: Schema.$Array<Schema.String>;
|
|
3074
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
3074
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
3075
3075
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
3076
3076
|
readonly first: Schema.Struct<{
|
|
3077
3077
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -3585,7 +3585,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3585
3585
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>, Schema.Null]>>;
|
|
3586
3586
|
readonly statusReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3587
3587
|
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3588
|
-
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3588
|
+
readonly metadata: 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]>>;
|
|
3589
3589
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3590
3590
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
3591
3591
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
@@ -3607,7 +3607,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3607
3607
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
3608
3608
|
readonly source: Schema.String;
|
|
3609
3609
|
readonly capturedAt: Schema.String;
|
|
3610
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
3610
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
3611
3611
|
}>, Schema.Null]>;
|
|
3612
3612
|
}>>;
|
|
3613
3613
|
}>>;
|
|
@@ -3640,7 +3640,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3640
3640
|
}>, Schema.Null]>>;
|
|
3641
3641
|
}>, Schema.Null]>;
|
|
3642
3642
|
readonly tags: Schema.$Array<Schema.String>;
|
|
3643
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
3643
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
3644
3644
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
3645
3645
|
readonly first: Schema.Struct<{
|
|
3646
3646
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -3980,7 +3980,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3980
3980
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
3981
3981
|
readonly source: Schema.String;
|
|
3982
3982
|
readonly capturedAt: Schema.String;
|
|
3983
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
3983
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
3984
3984
|
}>, Schema.Null]>;
|
|
3985
3985
|
}>>;
|
|
3986
3986
|
}>>;
|
|
@@ -4013,7 +4013,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4013
4013
|
}>, Schema.Null]>>;
|
|
4014
4014
|
}>, Schema.Null]>;
|
|
4015
4015
|
readonly tags: Schema.$Array<Schema.String>;
|
|
4016
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
4016
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
4017
4017
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
4018
4018
|
readonly first: Schema.Struct<{
|
|
4019
4019
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -4258,7 +4258,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4258
4258
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
4259
4259
|
readonly source: Schema.String;
|
|
4260
4260
|
readonly capturedAt: Schema.String;
|
|
4261
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
4261
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
4262
4262
|
}>, Schema.Null]>;
|
|
4263
4263
|
}>>;
|
|
4264
4264
|
}>>;
|
|
@@ -4291,7 +4291,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4291
4291
|
}>, Schema.Null]>>;
|
|
4292
4292
|
}>, Schema.Null]>;
|
|
4293
4293
|
readonly tags: Schema.$Array<Schema.String>;
|
|
4294
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
4294
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
4295
4295
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
4296
4296
|
readonly first: Schema.Struct<{
|
|
4297
4297
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -4538,7 +4538,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4538
4538
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
4539
4539
|
readonly source: Schema.String;
|
|
4540
4540
|
readonly capturedAt: Schema.String;
|
|
4541
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
4541
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
4542
4542
|
}>, Schema.Null]>;
|
|
4543
4543
|
}>>;
|
|
4544
4544
|
}>>;
|
|
@@ -4571,7 +4571,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4571
4571
|
}>, Schema.Null]>>;
|
|
4572
4572
|
}>, Schema.Null]>;
|
|
4573
4573
|
readonly tags: Schema.$Array<Schema.String>;
|
|
4574
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
4574
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
4575
4575
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
4576
4576
|
readonly first: Schema.Struct<{
|
|
4577
4577
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -5610,7 +5610,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5610
5610
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
5611
5611
|
readonly source: Schema.String;
|
|
5612
5612
|
readonly capturedAt: Schema.String;
|
|
5613
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
5613
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
5614
5614
|
}>, Schema.Null]>;
|
|
5615
5615
|
}>>;
|
|
5616
5616
|
}>>;
|
|
@@ -5643,7 +5643,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5643
5643
|
}>, Schema.Null]>>;
|
|
5644
5644
|
}>, Schema.Null]>;
|
|
5645
5645
|
readonly tags: Schema.$Array<Schema.String>;
|
|
5646
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
5646
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
5647
5647
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
5648
5648
|
readonly first: Schema.Struct<{
|
|
5649
5649
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -5834,7 +5834,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5834
5834
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
5835
5835
|
readonly source: Schema.String;
|
|
5836
5836
|
readonly capturedAt: Schema.String;
|
|
5837
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
5837
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
5838
5838
|
}>, Schema.Null]>;
|
|
5839
5839
|
}>>;
|
|
5840
5840
|
}>>;
|
|
@@ -5867,7 +5867,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5867
5867
|
}>, Schema.Null]>>;
|
|
5868
5868
|
}>, Schema.Null]>;
|
|
5869
5869
|
readonly tags: Schema.$Array<Schema.String>;
|
|
5870
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
5870
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
5871
5871
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
5872
5872
|
readonly first: Schema.Struct<{
|
|
5873
5873
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -6041,7 +6041,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
6041
6041
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
6042
6042
|
readonly source: Schema.String;
|
|
6043
6043
|
readonly capturedAt: Schema.String;
|
|
6044
|
-
readonly proof: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
6044
|
+
readonly proof: 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]>>;
|
|
6045
6045
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
6046
6046
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
6047
6047
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
@@ -6063,7 +6063,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
6063
6063
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
6064
6064
|
readonly source: Schema.String;
|
|
6065
6065
|
readonly capturedAt: Schema.String;
|
|
6066
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
6066
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
6067
6067
|
}>, Schema.Null]>;
|
|
6068
6068
|
}>>;
|
|
6069
6069
|
}>>;
|
|
@@ -6096,7 +6096,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
6096
6096
|
}>, Schema.Null]>>;
|
|
6097
6097
|
}>, Schema.Null]>;
|
|
6098
6098
|
readonly tags: Schema.$Array<Schema.String>;
|
|
6099
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
6099
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
6100
6100
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
6101
6101
|
readonly first: Schema.Struct<{
|
|
6102
6102
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -6517,7 +6517,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
6517
6517
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>, Schema.Null]>>;
|
|
6518
6518
|
readonly statusReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6519
6519
|
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6520
|
-
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
6520
|
+
readonly metadata: 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]>>;
|
|
6521
6521
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
6522
6522
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
6523
6523
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
@@ -6539,7 +6539,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
6539
6539
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
6540
6540
|
readonly source: Schema.String;
|
|
6541
6541
|
readonly capturedAt: Schema.String;
|
|
6542
|
-
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
6542
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
6543
6543
|
}>, Schema.Null]>;
|
|
6544
6544
|
}>>;
|
|
6545
6545
|
}>>;
|
|
@@ -6572,7 +6572,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
6572
6572
|
}>, Schema.Null]>>;
|
|
6573
6573
|
}>, Schema.Null]>;
|
|
6574
6574
|
readonly tags: Schema.$Array<Schema.String>;
|
|
6575
|
-
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>;
|
|
6575
|
+
readonly metadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>, Schema.Null]>;
|
|
6576
6576
|
readonly importProvenance: Schema.Union<readonly [Schema.Struct<{
|
|
6577
6577
|
readonly first: Schema.Struct<{
|
|
6578
6578
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -1,10 +1,30 @@
|
|
|
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
|
};
|
|
7
7
|
export declare const UnknownRecord: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
8
|
+
export type ConversationContact = {
|
|
9
|
+
readonly id: ContactId;
|
|
10
|
+
readonly name: string;
|
|
11
|
+
readonly displayName: string | null;
|
|
12
|
+
readonly identities: ReadonlyArray<{
|
|
13
|
+
readonly type: "email" | "phone";
|
|
14
|
+
readonly identifier: string;
|
|
15
|
+
readonly verified: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
18
|
+
export declare const ConversationContact: Schema.Struct<{
|
|
19
|
+
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
20
|
+
readonly name: Schema.String;
|
|
21
|
+
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
22
|
+
readonly identities: Schema.$Array<Schema.Struct<{
|
|
23
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
24
|
+
readonly identifier: Schema.String;
|
|
25
|
+
readonly verified: Schema.Boolean;
|
|
26
|
+
}>>;
|
|
27
|
+
}>;
|
|
8
28
|
export type ConversationSummary = {
|
|
9
29
|
readonly id: ConversationId;
|
|
10
30
|
readonly namespaceId: NamespaceId | null;
|
|
@@ -37,26 +57,6 @@ export declare const ConversationSummary: Schema.Struct<{
|
|
|
37
57
|
readonly lastActivityAt: Schema.String;
|
|
38
58
|
readonly createdAt: Schema.String;
|
|
39
59
|
}>;
|
|
40
|
-
export type ConversationContact = {
|
|
41
|
-
readonly id: ContactId;
|
|
42
|
-
readonly name: string;
|
|
43
|
-
readonly displayName: string | null;
|
|
44
|
-
readonly identities: ReadonlyArray<{
|
|
45
|
-
readonly type: "email" | "phone";
|
|
46
|
-
readonly identifier: string;
|
|
47
|
-
readonly verified: boolean;
|
|
48
|
-
}>;
|
|
49
|
-
};
|
|
50
|
-
export declare const ConversationContact: Schema.Struct<{
|
|
51
|
-
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
52
|
-
readonly name: Schema.String;
|
|
53
|
-
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
54
|
-
readonly identities: Schema.$Array<Schema.Struct<{
|
|
55
|
-
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
56
|
-
readonly identifier: Schema.String;
|
|
57
|
-
readonly verified: Schema.Boolean;
|
|
58
|
-
}>>;
|
|
59
|
-
}>;
|
|
60
60
|
export type ConversationContext = {
|
|
61
61
|
readonly customerData?: UnknownRecord | null;
|
|
62
62
|
readonly previousConversations?: ReadonlyArray<string> | null;
|
|
@@ -3,6 +3,16 @@ import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/ht
|
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
// src/effect/generated/conversations.ts
|
|
5
5
|
const UnknownRecord = /* @__PURE__ */ (() => Schema.Record(Schema.String, JsonValue).annotate({ identifier: "UnknownRecord" }))();
|
|
6
|
+
const ConversationContact = /* @__PURE__ */ (() => Schema.Struct({
|
|
7
|
+
id: ContactId,
|
|
8
|
+
name: Schema.String,
|
|
9
|
+
displayName: Schema.Union([Schema.String, Schema.Null]),
|
|
10
|
+
identities: Schema.Array(Schema.Struct({
|
|
11
|
+
type: Schema.Union([Schema.Literal("email"), Schema.Literal("phone")]),
|
|
12
|
+
identifier: Schema.String,
|
|
13
|
+
verified: Schema.Boolean
|
|
14
|
+
}))
|
|
15
|
+
}).annotate({ identifier: "ConversationContact" }))();
|
|
6
16
|
const ConversationSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
7
17
|
id: ConversationId,
|
|
8
18
|
namespaceId: Schema.Union([NamespaceId, Schema.Null]),
|
|
@@ -38,16 +48,6 @@ const ConversationSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
38
48
|
lastActivityAt: Schema.String,
|
|
39
49
|
createdAt: Schema.String
|
|
40
50
|
}).annotate({ identifier: "ConversationSummary" }))();
|
|
41
|
-
const ConversationContact = /* @__PURE__ */ (() => Schema.Struct({
|
|
42
|
-
id: ContactId,
|
|
43
|
-
name: Schema.String,
|
|
44
|
-
displayName: Schema.Union([Schema.String, Schema.Null]),
|
|
45
|
-
identities: Schema.Array(Schema.Struct({
|
|
46
|
-
type: Schema.Union([Schema.Literal("email"), Schema.Literal("phone")]),
|
|
47
|
-
identifier: Schema.String,
|
|
48
|
-
verified: Schema.Boolean
|
|
49
|
-
}))
|
|
50
|
-
}).annotate({ identifier: "ConversationContact" }))();
|
|
51
51
|
const ConversationContext = /* @__PURE__ */ (() => Schema.Struct({
|
|
52
52
|
customerData: Schema.optionalKey(Schema.Union([UnknownRecord, Schema.Null])),
|
|
53
53
|
previousConversations: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|