samva 0.29.0 → 0.30.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.
- package/AGENTS.md +23 -5
- package/README.md +166 -133
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/client/client/client.gen.js +1 -2
- package/dist/client/client/utils.gen.js +1 -2
- package/dist/client/client.gen.js +1 -2
- package/dist/client/core/auth.gen.js +1 -2
- package/dist/client/core/bodySerializer.gen.js +1 -2
- package/dist/client/core/params.gen.js +1 -2
- package/dist/client/core/pathSerializer.gen.js +1 -2
- package/dist/client/core/serverSentEvents.gen.js +1 -2
- package/dist/client/core/utils.gen.js +1 -2
- package/dist/client/sdk.gen.d.ts +216 -191
- package/dist/client/sdk.gen.js +2392 -1153
- package/dist/client/types.gen.d.ts +766 -376
- package/dist/client-attribution.js +1 -2
- package/dist/effect/agents.d.ts +33 -11
- package/dist/effect/agents.js +1 -2
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +1 -2
- package/dist/effect/api-keys.d.ts +8 -8
- package/dist/effect/api-keys.js +1 -2
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +1 -2
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +1 -2
- package/dist/effect/campaigns.d.ts +15 -16
- package/dist/effect/campaigns.js +1 -2
- package/dist/effect/categories.js +1 -2
- package/dist/effect/client.js +1 -2
- package/dist/effect/contact-groups.d.ts +10 -10
- package/dist/effect/contact-groups.js +1 -2
- package/dist/effect/contacts.d.ts +23 -24
- package/dist/effect/contacts.js +1 -2
- package/dist/effect/conversations.d.ts +13 -13
- package/dist/effect/conversations.js +1 -2
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +1 -2
- package/dist/effect/email.d.ts +61 -63
- package/dist/effect/email.js +1 -2
- package/dist/effect/events.d.ts +2 -4
- package/dist/effect/events.js +1 -2
- package/dist/effect/extension-installations.d.ts +9 -9
- package/dist/effect/extension-installations.js +1 -2
- package/dist/effect/extensions.d.ts +5 -5
- package/dist/effect/extensions.js +1 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +1 -2
- package/dist/effect/generated/agents.d.ts +264 -22
- package/dist/effect/generated/agents.js +2 -3
- package/dist/effect/generated/analytics.js +1 -2
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/attachments.js +1 -2
- package/dist/effect/generated/brands.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +160 -155
- package/dist/effect/generated/campaigns.js +7 -9
- package/dist/effect/generated/contact-events.js +1 -2
- package/dist/effect/generated/contact-groups.d.ts +26 -26
- package/dist/effect/generated/contact-groups.js +22 -19
- package/dist/effect/generated/contacts.d.ts +119 -90
- package/dist/effect/generated/contacts.js +32 -32
- package/dist/effect/generated/conversations.d.ts +22 -22
- package/dist/effect/generated/conversations.js +7 -8
- package/dist/effect/generated/custom-fields.d.ts +6 -6
- package/dist/effect/generated/custom-fields.js +3 -4
- package/dist/effect/generated/email.d.ts +38 -38
- package/dist/effect/generated/email.js +13 -14
- package/dist/effect/generated/events.d.ts +18 -9
- package/dist/effect/generated/events.js +8 -6
- package/dist/effect/generated/extension-installations.d.ts +2 -2
- package/dist/effect/generated/extension-installations.js +6 -3
- package/dist/effect/generated/extensions.js +1 -2
- package/dist/effect/generated/feedback.js +1 -2
- package/dist/effect/generated/index.d.ts +7 -5
- package/dist/effect/generated/journeys.js +1 -2
- package/dist/effect/generated/mailboxes.d.ts +44 -44
- package/dist/effect/generated/mailboxes.js +17 -18
- package/dist/effect/generated/media.js +1 -2
- package/dist/effect/generated/messages.d.ts +42 -42
- package/dist/effect/generated/messages.js +3 -4
- package/dist/effect/generated/namespaces.js +1 -2
- package/dist/effect/generated/{publication-domains.d.ts → newsletter-domains.d.ts} +304 -80
- package/dist/effect/generated/newsletter-domains.js +218 -0
- package/dist/effect/generated/{topic-issues.d.ts → newsletter-issues.d.ts} +330 -288
- package/dist/effect/generated/{topic-issues.js → newsletter-issues.js} +255 -246
- package/dist/effect/generated/newsletters.d.ts +741 -0
- package/dist/effect/generated/newsletters.js +143 -0
- package/dist/effect/generated/operations.js +1 -2
- package/dist/effect/generated/organizations.d.ts +9 -9
- package/dist/effect/generated/organizations.js +4 -5
- package/dist/effect/generated/scheduled-messages.d.ts +174 -169
- package/dist/effect/generated/scheduled-messages.js +7 -7
- package/dist/effect/generated/shared.d.ts +276 -208
- package/dist/effect/generated/shared.js +50 -36
- package/dist/effect/generated/subscriptions.js +1 -2
- package/dist/effect/generated/templates.d.ts +118 -67
- package/dist/effect/generated/templates.js +43 -35
- package/dist/effect/generated/topic-forms.d.ts +79 -19
- package/dist/effect/generated/topic-forms.js +13 -14
- package/dist/effect/generated/topics.d.ts +27 -65
- package/dist/effect/generated/topics.js +13 -20
- package/dist/effect/generated/webhooks.d.ts +9 -9
- package/dist/effect/generated/webhooks.js +4 -5
- package/dist/effect/generated/whoami.js +1 -2
- package/dist/effect/generated-metadata.d.ts +475 -70
- package/dist/effect/generated-metadata.js +642 -432
- package/dist/effect/index.d.ts +3 -2
- package/dist/effect/index.js +4 -3
- package/dist/effect/internal/client.d.ts +5 -0
- package/dist/effect/internal/client.js +9 -5
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/email-sender.js +4 -3
- package/dist/effect/internal/mailbox-events.js +1 -2
- package/dist/effect/internal/operation.d.ts +4 -15
- package/dist/effect/internal/operation.js +21 -33
- package/dist/effect/internal/send.js +2 -3
- package/dist/effect/journeys.d.ts +14 -14
- package/dist/effect/journeys.js +1 -2
- package/dist/effect/mailboxes.d.ts +60 -70
- package/dist/effect/mailboxes.js +1 -2
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +1 -2
- package/dist/effect/messages.d.ts +9 -9
- package/dist/effect/messages.js +1 -2
- package/dist/effect/namespaces.d.ts +8 -8
- package/dist/effect/namespaces.js +1 -2
- package/dist/effect/newsletter-domains.d.ts +71 -0
- package/dist/effect/newsletter-domains.js +18 -0
- package/dist/effect/{topic-issues.d.ts → newsletter-issues.d.ts} +11 -15
- package/dist/effect/newsletter-issues.js +32 -0
- package/dist/effect/newsletters.d.ts +22 -0
- package/dist/effect/newsletters.js +20 -0
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/operations.js +1 -2
- package/dist/effect/organizations.d.ts +8 -10
- package/dist/effect/organizations.js +1 -2
- package/dist/effect/pagination.js +1 -2
- package/dist/effect/retry.d.ts +4 -4
- package/dist/effect/retry.js +5 -6
- package/dist/effect/runtime.js +1 -2
- package/dist/effect/scheduled-messages.d.ts +5 -6
- package/dist/effect/scheduled-messages.js +1 -2
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +1 -2
- package/dist/effect/templates.d.ts +34 -43
- package/dist/effect/templates.js +1 -2
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topic-forms.js +1 -2
- package/dist/effect/topics.d.ts +9 -13
- package/dist/effect/topics.js +1 -2
- package/dist/effect/webhooks.d.ts +11 -11
- package/dist/effect/webhooks.js +1 -2
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +1 -2
- package/dist/index.js +2 -2
- package/dist/inline-attachments.js +1 -2
- package/dist/mailbox/dispatch.d.ts +10 -0
- package/dist/mailbox/dispatch.js +66 -0
- package/dist/mailbox/index.d.ts +17 -0
- package/dist/mailbox/index.js +30 -0
- package/dist/mailbox/test.d.ts +25 -0
- package/dist/mailbox/test.js +174 -0
- package/dist/mailbox/types.d.ts +184 -0
- package/dist/mailbox/webhook.d.ts +10 -0
- package/dist/mailbox/webhook.js +41 -0
- package/dist/mailbox-events.js +1 -2
- package/dist/normalize.js +1 -2
- package/dist/package.js +2 -3
- package/dist/promises/client.d.ts +215 -0
- package/dist/promises/client.js +324 -0
- package/dist/promises/errors.gen.js +1 -2
- package/dist/promises/index.d.ts +2 -196
- package/dist/promises/index.js +3 -295
- package/dist/promises/request.d.ts +15 -0
- package/dist/promises/request.js +75 -0
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.d.ts +3 -0
- package/dist/request-policy.js +16 -0
- package/dist/service-map.d.ts +78 -47
- package/dist/service-map.js +52 -32
- package/package.json +34 -18
- package/dist/effect/generated/publication-domains.js +0 -163
- package/dist/effect/publication-domains.d.ts +0 -14
- package/dist/effect/publication-domains.js +0 -17
- package/dist/effect/topic-issues.js +0 -33
|
@@ -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, Cursor,
|
|
4
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactGroupId, ContactId, ContactIdentity, ContactIdentityId, ConversationId, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MessageId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, TopicId, UnauthorizedError, ValidationError } from "./shared";
|
|
5
5
|
export type ContactCustomFields = {
|
|
6
6
|
readonly [x: string]: string | number | boolean | null;
|
|
7
7
|
};
|
|
@@ -164,24 +164,24 @@ export declare const ContactProfile: Schema.Struct<{
|
|
|
164
164
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
165
165
|
}>;
|
|
166
166
|
export type ContactProfileUpdate = {
|
|
167
|
-
readonly firstName?: string | null
|
|
168
|
-
readonly lastName?: string | null
|
|
169
|
-
readonly company?: string | null
|
|
170
|
-
readonly jobTitle?: string | null
|
|
171
|
-
readonly location?: ContactLocation | null
|
|
167
|
+
readonly firstName?: string | null;
|
|
168
|
+
readonly lastName?: string | null;
|
|
169
|
+
readonly company?: string | null;
|
|
170
|
+
readonly jobTitle?: string | null;
|
|
171
|
+
readonly location?: ContactLocation | null;
|
|
172
172
|
readonly customFields?: ContactCustomFields | null;
|
|
173
173
|
};
|
|
174
174
|
export declare const ContactProfileUpdate: Schema.Struct<{
|
|
175
|
-
readonly firstName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
176
|
-
readonly lastName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
177
|
-
readonly company: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
178
|
-
readonly jobTitle: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
179
|
-
readonly location: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
175
|
+
readonly firstName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
176
|
+
readonly lastName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
177
|
+
readonly company: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
178
|
+
readonly jobTitle: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
179
|
+
readonly location: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
180
180
|
readonly country: Schema.String;
|
|
181
181
|
readonly state: Schema.String;
|
|
182
182
|
readonly city: Schema.String;
|
|
183
183
|
readonly timezone: Schema.String;
|
|
184
|
-
}>, Schema.Null]
|
|
184
|
+
}>, Schema.Null]>>;
|
|
185
185
|
readonly customFields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>, Schema.Null]>>;
|
|
186
186
|
}>;
|
|
187
187
|
export type ContactSummary = {
|
|
@@ -489,28 +489,28 @@ export declare const ContactsList504: typeof GatewayTimeoutError;
|
|
|
489
489
|
export type ContactsCreateRequestJson = {
|
|
490
490
|
readonly namespaceId?: NamespaceId | null;
|
|
491
491
|
readonly name: string;
|
|
492
|
-
readonly displayName?: string | null
|
|
493
|
-
readonly avatar?: string | null
|
|
492
|
+
readonly displayName?: string | null;
|
|
493
|
+
readonly avatar?: string | null;
|
|
494
494
|
readonly identities?: ReadonlyArray<ContactIdentityInput> | null;
|
|
495
|
-
readonly profile?: ContactProfile | null
|
|
496
|
-
readonly preferences?: ContactPreferences | null
|
|
495
|
+
readonly profile?: ContactProfile | null;
|
|
496
|
+
readonly preferences?: ContactPreferences | null;
|
|
497
497
|
readonly tags?: ReadonlyArray<string> | null;
|
|
498
498
|
readonly status?: "active" | "paused" | "blocked" | "archived" | null;
|
|
499
|
-
readonly statusReason?: string | null
|
|
500
|
-
readonly externalId?: string | null
|
|
501
|
-
readonly metadata?: JsonObject | null
|
|
499
|
+
readonly statusReason?: string | null;
|
|
500
|
+
readonly externalId?: string | null;
|
|
501
|
+
readonly metadata?: JsonObject | null;
|
|
502
502
|
};
|
|
503
503
|
export declare const ContactsCreateRequestJson: Schema.Struct<{
|
|
504
504
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
505
505
|
readonly name: Schema.String;
|
|
506
|
-
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
507
|
-
readonly avatar: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
506
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
507
|
+
readonly avatar: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
508
508
|
readonly identities: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
509
509
|
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
510
510
|
readonly identifier: Schema.String;
|
|
511
511
|
readonly verified: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
512
512
|
}>>, Schema.Null]>>;
|
|
513
|
-
readonly profile: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
513
|
+
readonly profile: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
514
514
|
readonly firstName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
515
515
|
readonly lastName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
516
516
|
readonly company: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -523,8 +523,8 @@ export declare const ContactsCreateRequestJson: Schema.Struct<{
|
|
|
523
523
|
}>, Schema.Null]>>;
|
|
524
524
|
readonly customFields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>, Schema.Null]>>;
|
|
525
525
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
526
|
-
}>, Schema.Null]
|
|
527
|
-
readonly preferences: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
526
|
+
}>, Schema.Null]>>;
|
|
527
|
+
readonly preferences: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
528
528
|
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
529
529
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
530
530
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -535,12 +535,12 @@ export declare const ContactsCreateRequestJson: Schema.Struct<{
|
|
|
535
535
|
readonly end: Schema.String;
|
|
536
536
|
}>, Schema.Null]>>;
|
|
537
537
|
}>, Schema.Null]>>;
|
|
538
|
-
}>, Schema.Null]
|
|
538
|
+
}>, Schema.Null]>>;
|
|
539
539
|
readonly tags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
540
540
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>, Schema.Null]>>;
|
|
541
|
-
readonly statusReason: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
542
|
-
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
543
|
-
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
541
|
+
readonly statusReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
542
|
+
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
543
|
+
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]>>;
|
|
544
544
|
}>;
|
|
545
545
|
export type ContactsCreate201 = Contact;
|
|
546
546
|
export declare const ContactsCreate201: Schema.Struct<{
|
|
@@ -842,33 +842,33 @@ export declare const ContactsUpdatePathParams: Schema.Struct<{
|
|
|
842
842
|
}>;
|
|
843
843
|
export type ContactsUpdateRequestJson = {
|
|
844
844
|
readonly name?: string | null;
|
|
845
|
-
readonly displayName?: string | null
|
|
846
|
-
readonly avatar?: string | null
|
|
845
|
+
readonly displayName?: string | null;
|
|
846
|
+
readonly avatar?: string | null;
|
|
847
847
|
readonly profile?: ContactProfileUpdate | null;
|
|
848
|
-
readonly preferences?: ContactPreferences | null
|
|
848
|
+
readonly preferences?: ContactPreferences | null;
|
|
849
849
|
readonly status?: "active" | "paused" | "blocked" | "archived" | null;
|
|
850
|
-
readonly statusReason?: string | null
|
|
851
|
-
readonly externalId?: string | null
|
|
850
|
+
readonly statusReason?: string | null;
|
|
851
|
+
readonly externalId?: string | null;
|
|
852
852
|
readonly metadata?: JsonObject | null;
|
|
853
853
|
};
|
|
854
854
|
export declare const ContactsUpdateRequestJson: Schema.Struct<{
|
|
855
855
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
856
|
-
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
857
|
-
readonly avatar: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
856
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
857
|
+
readonly avatar: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
858
858
|
readonly profile: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
859
|
-
readonly firstName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
860
|
-
readonly lastName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
861
|
-
readonly company: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
862
|
-
readonly jobTitle: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
863
|
-
readonly location: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
859
|
+
readonly firstName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
860
|
+
readonly lastName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
861
|
+
readonly company: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
862
|
+
readonly jobTitle: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
863
|
+
readonly location: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
864
864
|
readonly country: Schema.String;
|
|
865
865
|
readonly state: Schema.String;
|
|
866
866
|
readonly city: Schema.String;
|
|
867
867
|
readonly timezone: Schema.String;
|
|
868
|
-
}>, Schema.Null]
|
|
868
|
+
}>, Schema.Null]>>;
|
|
869
869
|
readonly customFields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>, Schema.Null]>>;
|
|
870
870
|
}>, Schema.Null]>>;
|
|
871
|
-
readonly preferences: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
871
|
+
readonly preferences: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
872
872
|
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
873
873
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
874
874
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -879,10 +879,10 @@ export declare const ContactsUpdateRequestJson: Schema.Struct<{
|
|
|
879
879
|
readonly end: Schema.String;
|
|
880
880
|
}>, Schema.Null]>>;
|
|
881
881
|
}>, Schema.Null]>>;
|
|
882
|
-
}>, Schema.Null]
|
|
882
|
+
}>, Schema.Null]>>;
|
|
883
883
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>, Schema.Null]>>;
|
|
884
|
-
readonly statusReason: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
885
|
-
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
884
|
+
readonly statusReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
885
|
+
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
886
886
|
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]>>;
|
|
887
887
|
}>;
|
|
888
888
|
export type ContactsUpdate200 = Contact;
|
|
@@ -2101,11 +2101,11 @@ export type ContactsFindOrCreateRequestJson = {
|
|
|
2101
2101
|
readonly lookup: ContactLookup;
|
|
2102
2102
|
readonly create?: {
|
|
2103
2103
|
readonly name?: string | null;
|
|
2104
|
-
readonly displayName?: string | null
|
|
2105
|
-
readonly avatar?: string | null
|
|
2104
|
+
readonly displayName?: string | null;
|
|
2105
|
+
readonly avatar?: string | null;
|
|
2106
2106
|
readonly identities?: ReadonlyArray<ContactIdentityInput> | null;
|
|
2107
|
-
readonly profile?: ContactProfile | null
|
|
2108
|
-
readonly externalId?: string | null
|
|
2107
|
+
readonly profile?: ContactProfile | null;
|
|
2108
|
+
readonly externalId?: string | null;
|
|
2109
2109
|
} | null;
|
|
2110
2110
|
};
|
|
2111
2111
|
export declare const ContactsFindOrCreateRequestJson: Schema.Struct<{
|
|
@@ -2122,14 +2122,14 @@ export declare const ContactsFindOrCreateRequestJson: Schema.Struct<{
|
|
|
2122
2122
|
}>]>;
|
|
2123
2123
|
readonly create: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2124
2124
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2125
|
-
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2126
|
-
readonly avatar: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2125
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2126
|
+
readonly avatar: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2127
2127
|
readonly identities: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
2128
2128
|
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
2129
2129
|
readonly identifier: Schema.String;
|
|
2130
2130
|
readonly verified: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2131
2131
|
}>>, Schema.Null]>>;
|
|
2132
|
-
readonly profile: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2132
|
+
readonly profile: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2133
2133
|
readonly firstName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2134
2134
|
readonly lastName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2135
2135
|
readonly company: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2142,8 +2142,8 @@ export declare const ContactsFindOrCreateRequestJson: Schema.Struct<{
|
|
|
2142
2142
|
}>, Schema.Null]>>;
|
|
2143
2143
|
readonly customFields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>, Schema.Null]>>;
|
|
2144
2144
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
2145
|
-
}>, Schema.Null]
|
|
2146
|
-
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2145
|
+
}>, Schema.Null]>>;
|
|
2146
|
+
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2147
2147
|
}>, Schema.Null]>>;
|
|
2148
2148
|
}>;
|
|
2149
2149
|
export type ContactsFindOrCreate200 = {
|
|
@@ -2285,6 +2285,12 @@ export type ContactsFindOrCreate502 = BillingProviderError;
|
|
|
2285
2285
|
export declare const ContactsFindOrCreate502: typeof BillingProviderError;
|
|
2286
2286
|
export type ContactsFindOrCreate504 = GatewayTimeoutError;
|
|
2287
2287
|
export declare const ContactsFindOrCreate504: typeof GatewayTimeoutError;
|
|
2288
|
+
export type ContactsStartImportHeaders = {
|
|
2289
|
+
readonly "idempotency-key"?: string | null;
|
|
2290
|
+
};
|
|
2291
|
+
export declare const ContactsStartImportHeaders: Schema.Struct<{
|
|
2292
|
+
readonly "idempotency-key": Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2293
|
+
}>;
|
|
2288
2294
|
export type ContactsStartImportRequestJson = {
|
|
2289
2295
|
readonly mode: "new";
|
|
2290
2296
|
readonly input: {
|
|
@@ -2317,7 +2323,6 @@ export type ContactsStartImportRequestJson = {
|
|
|
2317
2323
|
];
|
|
2318
2324
|
};
|
|
2319
2325
|
readonly planHash: string;
|
|
2320
|
-
readonly idempotencyKey: string;
|
|
2321
2326
|
} | {
|
|
2322
2327
|
readonly mode: "resume";
|
|
2323
2328
|
readonly jobId: ContactImportJobId;
|
|
@@ -2352,7 +2357,6 @@ export declare const ContactsStartImportRequestJson: Schema.Union<readonly [Sche
|
|
|
2352
2357
|
}>]>;
|
|
2353
2358
|
}>;
|
|
2354
2359
|
readonly planHash: Schema.String;
|
|
2355
|
-
readonly idempotencyKey: Schema.String;
|
|
2356
2360
|
}>, Schema.Struct<{
|
|
2357
2361
|
readonly mode: Schema.Literal<"resume">;
|
|
2358
2362
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
@@ -2424,8 +2428,8 @@ export type ContactsStartImport401 = UnauthorizedError;
|
|
|
2424
2428
|
export declare const ContactsStartImport401: typeof UnauthorizedError;
|
|
2425
2429
|
export type ContactsStartImport402 = PaymentRequiredError;
|
|
2426
2430
|
export declare const ContactsStartImport402: typeof PaymentRequiredError;
|
|
2427
|
-
export type ContactsStartImport403 = ForbiddenError
|
|
2428
|
-
export declare const ContactsStartImport403:
|
|
2431
|
+
export type ContactsStartImport403 = ForbiddenError;
|
|
2432
|
+
export declare const ContactsStartImport403: typeof ForbiddenError;
|
|
2429
2433
|
export type ContactsStartImport404 = ResourceNotFoundError;
|
|
2430
2434
|
export declare const ContactsStartImport404: typeof ResourceNotFoundError;
|
|
2431
2435
|
export type ContactsStartImport409 = ConflictError;
|
|
@@ -2627,8 +2631,8 @@ export declare const ContactsPlanImport200: Schema.Struct<{
|
|
|
2627
2631
|
}>;
|
|
2628
2632
|
export type ContactsPlanImport401 = UnauthorizedError;
|
|
2629
2633
|
export declare const ContactsPlanImport401: typeof UnauthorizedError;
|
|
2630
|
-
export type ContactsPlanImport403 = ForbiddenError
|
|
2631
|
-
export declare const ContactsPlanImport403:
|
|
2634
|
+
export type ContactsPlanImport403 = ForbiddenError;
|
|
2635
|
+
export declare const ContactsPlanImport403: typeof ForbiddenError;
|
|
2632
2636
|
export type ContactsPlanImport404 = ResourceNotFoundError;
|
|
2633
2637
|
export declare const ContactsPlanImport404: typeof ResourceNotFoundError;
|
|
2634
2638
|
export type ContactsPlanImport422 = ValidationError;
|
|
@@ -3302,14 +3306,14 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3302
3306
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactsCreate", "POST", "/v1/contacts", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3303
3307
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
3304
3308
|
readonly name: Schema.String;
|
|
3305
|
-
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
3306
|
-
readonly avatar: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
3309
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3310
|
+
readonly avatar: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3307
3311
|
readonly identities: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
3308
3312
|
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
3309
3313
|
readonly identifier: Schema.String;
|
|
3310
3314
|
readonly verified: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3311
3315
|
}>>, Schema.Null]>>;
|
|
3312
|
-
readonly profile: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
3316
|
+
readonly profile: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3313
3317
|
readonly firstName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3314
3318
|
readonly lastName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3315
3319
|
readonly company: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -3322,8 +3326,8 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3322
3326
|
}>, Schema.Null]>>;
|
|
3323
3327
|
readonly customFields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>, Schema.Null]>>;
|
|
3324
3328
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
3325
|
-
}>, Schema.Null]
|
|
3326
|
-
readonly preferences: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
3329
|
+
}>, Schema.Null]>>;
|
|
3330
|
+
readonly preferences: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3327
3331
|
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
3328
3332
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3329
3333
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -3334,12 +3338,12 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3334
3338
|
readonly end: Schema.String;
|
|
3335
3339
|
}>, Schema.Null]>>;
|
|
3336
3340
|
}>, Schema.Null]>>;
|
|
3337
|
-
}>, Schema.Null]
|
|
3341
|
+
}>, Schema.Null]>>;
|
|
3338
3342
|
readonly tags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3339
3343
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>, Schema.Null]>>;
|
|
3340
|
-
readonly statusReason: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
3341
|
-
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
3342
|
-
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
3344
|
+
readonly statusReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3345
|
+
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3346
|
+
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]>>;
|
|
3343
3347
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3344
3348
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
3345
3349
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
@@ -3893,14 +3897,14 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3893
3897
|
}>]>;
|
|
3894
3898
|
readonly create: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3895
3899
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3896
|
-
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
3897
|
-
readonly avatar: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
3900
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3901
|
+
readonly avatar: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3898
3902
|
readonly identities: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
3899
3903
|
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
3900
3904
|
readonly identifier: Schema.String;
|
|
3901
3905
|
readonly verified: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3902
3906
|
}>>, Schema.Null]>>;
|
|
3903
|
-
readonly profile: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
3907
|
+
readonly profile: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3904
3908
|
readonly firstName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3905
3909
|
readonly lastName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3906
3910
|
readonly company: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -3913,8 +3917,8 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3913
3917
|
}>, Schema.Null]>>;
|
|
3914
3918
|
readonly customFields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>, Schema.Null]>>;
|
|
3915
3919
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
3916
|
-
}>, Schema.Null]
|
|
3917
|
-
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
3920
|
+
}>, Schema.Null]>>;
|
|
3921
|
+
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3918
3922
|
}>, Schema.Null]>>;
|
|
3919
3923
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3920
3924
|
readonly contact: Schema.Struct<{
|
|
@@ -4898,7 +4902,19 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4898
4902
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4899
4903
|
}>>;
|
|
4900
4904
|
readonly diagnosticsTruncated: Schema.Boolean;
|
|
4901
|
-
}>>, Schema.toCodecJson<Schema.
|
|
4905
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
4906
|
+
readonly _tag: "ForbiddenError";
|
|
4907
|
+
readonly message: string;
|
|
4908
|
+
}, readonly [Schema.Struct<{
|
|
4909
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
4910
|
+
readonly message: Schema.String;
|
|
4911
|
+
}>], {
|
|
4912
|
+
readonly _tag: "ForbiddenError";
|
|
4913
|
+
readonly message: string;
|
|
4914
|
+
}>, Schema.Struct<{
|
|
4915
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
4916
|
+
readonly message: Schema.String;
|
|
4917
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
4902
4918
|
readonly _tag: "GatewayTimeoutError";
|
|
4903
4919
|
readonly message: string;
|
|
4904
4920
|
readonly retryAfterSeconds: number;
|
|
@@ -5686,12 +5702,13 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5686
5702
|
}>]>;
|
|
5687
5703
|
}>;
|
|
5688
5704
|
readonly planHash: Schema.String;
|
|
5689
|
-
readonly idempotencyKey: Schema.String;
|
|
5690
5705
|
}>, Schema.Struct<{
|
|
5691
5706
|
readonly mode: Schema.Literal<"resume">;
|
|
5692
5707
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
5693
5708
|
readonly expectedGeneration: Schema.Finite;
|
|
5694
|
-
}>]>>,
|
|
5709
|
+
}>]>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
5710
|
+
readonly "idempotency-key": Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5711
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
5695
5712
|
readonly id: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
5696
5713
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
5697
5714
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
@@ -5721,7 +5738,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5721
5738
|
readonly retryable: Schema.Boolean;
|
|
5722
5739
|
}>, Schema.Null]>;
|
|
5723
5740
|
readonly resumable: Schema.Boolean;
|
|
5724
|
-
}>>, Schema.toCodecJson<Schema.
|
|
5741
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
5725
5742
|
readonly _tag: "BillingProviderError";
|
|
5726
5743
|
readonly message: string;
|
|
5727
5744
|
}, readonly [Schema.Struct<{
|
|
@@ -5753,6 +5770,18 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5753
5770
|
readonly message: Schema.String;
|
|
5754
5771
|
readonly resource: Schema.String;
|
|
5755
5772
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5773
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
5774
|
+
readonly _tag: "ForbiddenError";
|
|
5775
|
+
readonly message: string;
|
|
5776
|
+
}, readonly [Schema.Struct<{
|
|
5777
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
5778
|
+
readonly message: Schema.String;
|
|
5779
|
+
}>], {
|
|
5780
|
+
readonly _tag: "ForbiddenError";
|
|
5781
|
+
readonly message: string;
|
|
5782
|
+
}>, Schema.Struct<{
|
|
5783
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
5784
|
+
readonly message: Schema.String;
|
|
5756
5785
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
5757
5786
|
readonly _tag: "GatewayTimeoutError";
|
|
5758
5787
|
readonly message: string;
|
|
@@ -5849,22 +5878,22 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5849
5878
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
5850
5879
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
5851
5880
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5852
|
-
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
5853
|
-
readonly avatar: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
5881
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5882
|
+
readonly avatar: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5854
5883
|
readonly profile: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5855
|
-
readonly firstName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
5856
|
-
readonly lastName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
5857
|
-
readonly company: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
5858
|
-
readonly jobTitle: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
5859
|
-
readonly location: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
5884
|
+
readonly firstName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5885
|
+
readonly lastName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5886
|
+
readonly company: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5887
|
+
readonly jobTitle: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5888
|
+
readonly location: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5860
5889
|
readonly country: Schema.String;
|
|
5861
5890
|
readonly state: Schema.String;
|
|
5862
5891
|
readonly city: Schema.String;
|
|
5863
5892
|
readonly timezone: Schema.String;
|
|
5864
|
-
}>, Schema.Null]
|
|
5893
|
+
}>, Schema.Null]>>;
|
|
5865
5894
|
readonly customFields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>, Schema.Null]>>;
|
|
5866
5895
|
}>, Schema.Null]>>;
|
|
5867
|
-
readonly preferences: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
5896
|
+
readonly preferences: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5868
5897
|
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
5869
5898
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5870
5899
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -5875,10 +5904,10 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5875
5904
|
readonly end: Schema.String;
|
|
5876
5905
|
}>, Schema.Null]>>;
|
|
5877
5906
|
}>, Schema.Null]>>;
|
|
5878
|
-
}>, Schema.Null]
|
|
5907
|
+
}>, Schema.Null]>>;
|
|
5879
5908
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>, Schema.Null]>>;
|
|
5880
|
-
readonly statusReason: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
5881
|
-
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
5909
|
+
readonly statusReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5910
|
+
readonly externalId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5882
5911
|
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]>>;
|
|
5883
5912
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
5884
5913
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|