samva 0.24.0 → 0.26.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/dist/client/sdk.gen.d.ts +96 -4
- package/dist/client/sdk.gen.js +15 -8
- package/dist/client/types.gen.d.ts +559 -14
- package/dist/effect/api-keys.d.ts +3 -0
- package/dist/effect/campaigns.d.ts +18 -0
- package/dist/effect/email.d.ts +1 -0
- package/dist/effect/generated/agents.d.ts +1667 -0
- package/dist/effect/generated/api-keys.d.ts +15 -0
- package/dist/effect/generated/campaigns.d.ts +34 -0
- package/dist/effect/generated/email.d.ts +19 -0
- package/dist/effect/generated/email.js +8 -3
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/mailboxes.d.ts +176 -98
- package/dist/effect/generated/mailboxes.js +35 -26
- package/dist/effect/generated/messages.d.ts +9 -5
- package/dist/effect/generated/messages.js +2 -1
- package/dist/effect/generated/organizations.d.ts +18 -0
- package/dist/effect/generated/organizations.js +7 -1
- package/dist/effect/generated/scheduled-messages.d.ts +16 -0
- package/dist/effect/generated/shared.d.ts +203 -45
- package/dist/effect/generated/shared.js +66 -38
- package/dist/effect/generated/templates.d.ts +11 -7
- package/dist/effect/generated/templates.js +4 -7
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/effect/generated/webhooks.js +12 -0
- package/dist/effect/generated/whoami.d.ts +4 -0
- package/dist/effect/generated-metadata.d.ts +45 -0
- package/dist/effect/generated-metadata.js +465 -426
- package/dist/effect/journeys.d.ts +112 -112
- package/dist/effect/mailboxes.d.ts +20 -6
- package/dist/effect/messages.d.ts +3 -0
- package/dist/effect/scheduled-messages.d.ts +9 -0
- package/dist/effect/templates.d.ts +4 -0
- package/dist/effect/webhooks.d.ts +4 -4
- package/dist/mailbox-events.d.ts +1 -1
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/package.json +6 -6
|
@@ -6,12 +6,10 @@ export type JsonValue = string | number | boolean | null | ReadonlyArray<JsonVal
|
|
|
6
6
|
readonly [x: string]: JsonValue;
|
|
7
7
|
};
|
|
8
8
|
export declare const JsonValue: Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export declare class AnalyticsQueryError extends AnalyticsQueryError_base {
|
|
14
|
-
}
|
|
9
|
+
export type Cursor = string;
|
|
10
|
+
export declare const Cursor: Schema.String;
|
|
11
|
+
export type NamespaceId = string & EffectBrand.Brand<"NamespaceId">;
|
|
12
|
+
export declare const NamespaceId: Schema.brand<Schema.String, "NamespaceId">;
|
|
15
13
|
declare const UnauthorizedError_base: Schema.Class<UnauthorizedError, Schema.Struct<{
|
|
16
14
|
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
17
15
|
readonly message: Schema.String;
|
|
@@ -44,8 +42,48 @@ declare const GatewayTimeoutError_base: Schema.Class<GatewayTimeoutError, Schema
|
|
|
44
42
|
}>, import("effect/Cause").YieldableError>;
|
|
45
43
|
export declare class GatewayTimeoutError extends GatewayTimeoutError_base {
|
|
46
44
|
}
|
|
47
|
-
export type
|
|
48
|
-
export declare const
|
|
45
|
+
export type AgentName = string;
|
|
46
|
+
export declare const AgentName: Schema.String;
|
|
47
|
+
export type MailboxEndpointId = string & EffectBrand.Brand<"MailboxEndpointId">;
|
|
48
|
+
export declare const MailboxEndpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
|
|
49
|
+
export type AgentIntegrationReference = string;
|
|
50
|
+
export declare const AgentIntegrationReference: Schema.String;
|
|
51
|
+
export type AgentMode = "live" | "supervised";
|
|
52
|
+
export declare const AgentMode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
53
|
+
export type AgentModel = "standard" | "max";
|
|
54
|
+
export declare const AgentModel: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
55
|
+
export type AgentApprovalPolicy = "toolActions" | "none";
|
|
56
|
+
export declare const AgentApprovalPolicy: Schema.Union<readonly [Schema.Literal<"toolActions">, Schema.Literal<"none">]>;
|
|
57
|
+
export type TimeZone = string;
|
|
58
|
+
export declare const TimeZone: Schema.String;
|
|
59
|
+
export type Weekday = "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
|
|
60
|
+
export declare const Weekday: Schema.Union<readonly [Schema.Literal<"monday">, Schema.Literal<"tuesday">, Schema.Literal<"wednesday">, Schema.Literal<"thursday">, Schema.Literal<"friday">, Schema.Literal<"saturday">, Schema.Literal<"sunday">]>;
|
|
61
|
+
export type ClockTime = string;
|
|
62
|
+
export declare const ClockTime: Schema.String;
|
|
63
|
+
declare const ResourceNotFoundError_base: Schema.Class<ResourceNotFoundError, Schema.Struct<{
|
|
64
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
65
|
+
readonly resource: Schema.String;
|
|
66
|
+
readonly id: Schema.String;
|
|
67
|
+
readonly message: Schema.String;
|
|
68
|
+
}>, import("effect/Cause").YieldableError>;
|
|
69
|
+
export declare class ResourceNotFoundError extends ResourceNotFoundError_base {
|
|
70
|
+
}
|
|
71
|
+
declare const ConflictError_base: Schema.Class<ConflictError, Schema.Struct<{
|
|
72
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
73
|
+
readonly message: Schema.String;
|
|
74
|
+
readonly resource: Schema.String;
|
|
75
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
76
|
+
}>, import("effect/Cause").YieldableError>;
|
|
77
|
+
export declare class ConflictError extends ConflictError_base {
|
|
78
|
+
}
|
|
79
|
+
export type VersionCursor = string;
|
|
80
|
+
export declare const VersionCursor: Schema.String;
|
|
81
|
+
declare const AnalyticsQueryError_base: Schema.Class<AnalyticsQueryError, Schema.Struct<{
|
|
82
|
+
readonly _tag: Schema.tag<"AnalyticsQueryError">;
|
|
83
|
+
readonly message: Schema.String;
|
|
84
|
+
}>, import("effect/Cause").YieldableError>;
|
|
85
|
+
export declare class AnalyticsQueryError extends AnalyticsQueryError_base {
|
|
86
|
+
}
|
|
49
87
|
export type ApiKeyResourceAccess = {
|
|
50
88
|
readonly messages?: "read" | "write" | null;
|
|
51
89
|
readonly email?: "read" | "write" | null;
|
|
@@ -54,6 +92,7 @@ export type ApiKeyResourceAccess = {
|
|
|
54
92
|
readonly contacts?: "read" | "write" | null;
|
|
55
93
|
readonly conversations?: "read" | "write" | null;
|
|
56
94
|
readonly templates?: "read" | "write" | null;
|
|
95
|
+
readonly agents?: "read" | "write" | null;
|
|
57
96
|
readonly webhooks?: "read" | "write" | null;
|
|
58
97
|
readonly apiKeys?: "read" | "write" | null;
|
|
59
98
|
readonly organization?: "read" | "write" | null;
|
|
@@ -68,6 +107,7 @@ export declare const ApiKeyResourceAccess: Schema.Struct<{
|
|
|
68
107
|
readonly contacts: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
69
108
|
readonly conversations: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
70
109
|
readonly templates: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
110
|
+
readonly agents: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
71
111
|
readonly webhooks: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
72
112
|
readonly apiKeys: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
73
113
|
readonly organization: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
@@ -78,8 +118,6 @@ export type MailboxId = string & EffectBrand.Brand<"MailboxId">;
|
|
|
78
118
|
export declare const MailboxId: Schema.brand<Schema.String, "MailboxId">;
|
|
79
119
|
export type MailboxSendMode = "send" | "approval";
|
|
80
120
|
export declare const MailboxSendMode: Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>;
|
|
81
|
-
export type NamespaceId = string & EffectBrand.Brand<"NamespaceId">;
|
|
82
|
-
export declare const NamespaceId: Schema.brand<Schema.String, "NamespaceId">;
|
|
83
121
|
declare const PaymentRequiredError_base: Schema.Class<PaymentRequiredError, Schema.Struct<{
|
|
84
122
|
readonly _tag: Schema.tag<"PaymentRequiredError">;
|
|
85
123
|
readonly message: Schema.String;
|
|
@@ -89,14 +127,6 @@ declare const PaymentRequiredError_base: Schema.Class<PaymentRequiredError, Sche
|
|
|
89
127
|
}>, import("effect/Cause").YieldableError>;
|
|
90
128
|
export declare class PaymentRequiredError extends PaymentRequiredError_base {
|
|
91
129
|
}
|
|
92
|
-
declare const ResourceNotFoundError_base: Schema.Class<ResourceNotFoundError, Schema.Struct<{
|
|
93
|
-
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
94
|
-
readonly resource: Schema.String;
|
|
95
|
-
readonly id: Schema.String;
|
|
96
|
-
readonly message: Schema.String;
|
|
97
|
-
}>, import("effect/Cause").YieldableError>;
|
|
98
|
-
export declare class ResourceNotFoundError extends ResourceNotFoundError_base {
|
|
99
|
-
}
|
|
100
130
|
declare const RateLimitedError_base: Schema.Class<RateLimitedError, Schema.Struct<{
|
|
101
131
|
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
102
132
|
readonly message: Schema.String;
|
|
@@ -158,14 +188,6 @@ export declare const BrandSocialLink: Schema.Struct<{
|
|
|
158
188
|
readonly label: Schema.String;
|
|
159
189
|
readonly url: Schema.String;
|
|
160
190
|
}>;
|
|
161
|
-
declare const ConflictError_base: Schema.Class<ConflictError, Schema.Struct<{
|
|
162
|
-
readonly _tag: Schema.tag<"ConflictError">;
|
|
163
|
-
readonly message: Schema.String;
|
|
164
|
-
readonly resource: Schema.String;
|
|
165
|
-
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
166
|
-
}>, import("effect/Cause").YieldableError>;
|
|
167
|
-
export declare class ConflictError extends ConflictError_base {
|
|
168
|
-
}
|
|
169
191
|
export type MediaId = string & EffectBrand.Brand<"MediaId">;
|
|
170
192
|
export declare const MediaId: Schema.brand<Schema.String, "MediaId">;
|
|
171
193
|
export type TemplatePublicationId = string & EffectBrand.Brand<"TemplatePublicationId">;
|
|
@@ -200,6 +222,10 @@ export type EmailFooterOverride = {
|
|
|
200
222
|
export declare const EmailFooterOverride: Schema.Struct<{
|
|
201
223
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
202
224
|
}>;
|
|
225
|
+
export type EmailCustomHeaders = {
|
|
226
|
+
readonly [x: string]: string;
|
|
227
|
+
};
|
|
228
|
+
export declare const EmailCustomHeaders: Schema.$Record<Schema.String, Schema.String>;
|
|
203
229
|
export type ConversationId = string & EffectBrand.Brand<"ConversationId">;
|
|
204
230
|
export declare const ConversationId: Schema.brand<Schema.String, "ConversationId">;
|
|
205
231
|
export type ContactId = string & EffectBrand.Brand<"ContactId">;
|
|
@@ -367,8 +393,6 @@ export type MailboxMetadata = {
|
|
|
367
393
|
readonly [x: string]: string;
|
|
368
394
|
};
|
|
369
395
|
export declare const MailboxMetadata: Schema.$Record<Schema.String, Schema.String>;
|
|
370
|
-
export type MailboxEndpointId = string & EffectBrand.Brand<"MailboxEndpointId">;
|
|
371
|
-
export declare const MailboxEndpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
|
|
372
396
|
export type MailboxMetadataPatch = {
|
|
373
397
|
readonly [x: string]: string | null;
|
|
374
398
|
};
|
|
@@ -519,6 +543,14 @@ export declare const TemplateFromDefault: Schema.Struct<{
|
|
|
519
543
|
readonly email: Schema.String;
|
|
520
544
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
521
545
|
}>;
|
|
546
|
+
export type TemplateTrackingDefault = {
|
|
547
|
+
readonly opens?: boolean | null;
|
|
548
|
+
readonly clicks?: boolean | null;
|
|
549
|
+
};
|
|
550
|
+
export declare const TemplateTrackingDefault: Schema.Struct<{
|
|
551
|
+
readonly opens: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
552
|
+
readonly clicks: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
553
|
+
}>;
|
|
522
554
|
export type AddTemplateEntryPayload = {
|
|
523
555
|
readonly entryPath: string;
|
|
524
556
|
readonly name: string;
|
|
@@ -615,6 +647,12 @@ export type DomainWarmingNotePayload = {
|
|
|
615
647
|
export declare const DomainWarmingNotePayload: Schema.Struct<{
|
|
616
648
|
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
617
649
|
}>;
|
|
650
|
+
export type PublishAgentPayload = {
|
|
651
|
+
readonly revision: string;
|
|
652
|
+
};
|
|
653
|
+
export declare const PublishAgentPayload: Schema.Struct<{
|
|
654
|
+
readonly revision: Schema.String;
|
|
655
|
+
}>;
|
|
618
656
|
export type PublishExtensionVersionPayload = {
|
|
619
657
|
readonly manifest: {
|
|
620
658
|
readonly name: string;
|
|
@@ -711,19 +749,6 @@ export declare const UpdateNamespacePayload: Schema.Struct<{
|
|
|
711
749
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
712
750
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>, Schema.Null]>>;
|
|
713
751
|
}>;
|
|
714
|
-
export type ApiKeyMailboxAccess = {
|
|
715
|
-
readonly permissions: readonly [
|
|
716
|
-
"read" | "update" | "send" | "quarantine.read",
|
|
717
|
-
...Array<"read" | "update" | "send" | "quarantine.read">
|
|
718
|
-
];
|
|
719
|
-
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
720
|
-
readonly sendMode?: MailboxSendMode | null;
|
|
721
|
-
};
|
|
722
|
-
export declare const ApiKeyMailboxAccess: Schema.Struct<{
|
|
723
|
-
readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
|
|
724
|
-
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
|
|
725
|
-
readonly sendMode: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>, Schema.Null]>>;
|
|
726
|
-
}>;
|
|
727
752
|
export type CreateTemplateFromWebsitePayload = {
|
|
728
753
|
readonly url: string;
|
|
729
754
|
readonly name?: string | null;
|
|
@@ -762,10 +787,26 @@ export declare const CreateTemplatePayload: Schema.Struct<{
|
|
|
762
787
|
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
763
788
|
readonly idempotencyKey: Schema.String;
|
|
764
789
|
}>;
|
|
790
|
+
export type UpdateAgentPayload = {
|
|
791
|
+
readonly name: AgentName;
|
|
792
|
+
};
|
|
793
|
+
export declare const UpdateAgentPayload: Schema.Struct<{
|
|
794
|
+
readonly name: Schema.String;
|
|
795
|
+
}>;
|
|
796
|
+
export type WorkingHoursRange = {
|
|
797
|
+
readonly day: Weekday;
|
|
798
|
+
readonly opens: ClockTime;
|
|
799
|
+
readonly closes: ClockTime;
|
|
800
|
+
};
|
|
801
|
+
export declare const WorkingHoursRange: Schema.Struct<{
|
|
802
|
+
readonly day: Schema.Union<readonly [Schema.Literal<"monday">, Schema.Literal<"tuesday">, Schema.Literal<"wednesday">, Schema.Literal<"thursday">, Schema.Literal<"friday">, Schema.Literal<"saturday">, Schema.Literal<"sunday">]>;
|
|
803
|
+
readonly opens: Schema.String;
|
|
804
|
+
readonly closes: Schema.String;
|
|
805
|
+
}>;
|
|
765
806
|
export type CreateWebhookPayload = {
|
|
766
807
|
readonly name: string;
|
|
767
808
|
readonly url: string;
|
|
768
|
-
readonly eventTypes: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "journey.webhook">;
|
|
809
|
+
readonly eventTypes: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
|
|
769
810
|
readonly channels?: ReadonlyArray<"email"> | null;
|
|
770
811
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
771
812
|
readonly namespaceId?: NamespaceId | null;
|
|
@@ -777,7 +818,7 @@ export type CreateWebhookPayload = {
|
|
|
777
818
|
export declare const CreateWebhookPayload: Schema.Struct<{
|
|
778
819
|
readonly name: Schema.String;
|
|
779
820
|
readonly url: Schema.String;
|
|
780
|
-
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"journey.webhook">]>>;
|
|
821
|
+
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
781
822
|
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
782
823
|
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
|
|
783
824
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
@@ -805,7 +846,7 @@ export declare const InstallExtensionPayload: Schema.Struct<{
|
|
|
805
846
|
export type UpdateWebhookPayload = {
|
|
806
847
|
readonly name?: string | null;
|
|
807
848
|
readonly url?: string | null;
|
|
808
|
-
readonly eventTypes?: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "journey.webhook"> | null;
|
|
849
|
+
readonly eventTypes?: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook"> | null;
|
|
809
850
|
readonly channels?: ReadonlyArray<"email"> | null | null;
|
|
810
851
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null | null;
|
|
811
852
|
readonly namespaceId?: NamespaceId | null | null;
|
|
@@ -817,13 +858,26 @@ export type UpdateWebhookPayload = {
|
|
|
817
858
|
export declare const UpdateWebhookPayload: Schema.Struct<{
|
|
818
859
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
819
860
|
readonly url: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
820
|
-
readonly eventTypes: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"journey.webhook">]>>, Schema.Null]>>;
|
|
861
|
+
readonly eventTypes: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>, Schema.Null]>>;
|
|
821
862
|
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>, Schema.Null]>>;
|
|
822
863
|
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>, Schema.Null]>>;
|
|
823
864
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>, Schema.Null]>>;
|
|
824
865
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
825
866
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>, Schema.Null]>>;
|
|
826
867
|
}>;
|
|
868
|
+
export type ApiKeyMailboxAccess = {
|
|
869
|
+
readonly permissions: readonly [
|
|
870
|
+
"read" | "update" | "send" | "quarantine.read",
|
|
871
|
+
...Array<"read" | "update" | "send" | "quarantine.read">
|
|
872
|
+
];
|
|
873
|
+
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
874
|
+
readonly sendMode?: MailboxSendMode | null;
|
|
875
|
+
};
|
|
876
|
+
export declare const ApiKeyMailboxAccess: Schema.Struct<{
|
|
877
|
+
readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
|
|
878
|
+
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
|
|
879
|
+
readonly sendMode: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>, Schema.Null]>>;
|
|
880
|
+
}>;
|
|
827
881
|
export type MessageSummary = {
|
|
828
882
|
readonly id: MessageId;
|
|
829
883
|
readonly channel: "email";
|
|
@@ -1352,6 +1406,7 @@ export type UpdateTemplatePayload = {
|
|
|
1352
1406
|
readonly category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | null;
|
|
1353
1407
|
readonly fromDefault?: TemplateFromDefault | null | null;
|
|
1354
1408
|
readonly replyToDefault?: ReadonlyArray<string> | null | null;
|
|
1409
|
+
readonly trackingDefault?: TemplateTrackingDefault | null | null;
|
|
1355
1410
|
readonly isActive?: boolean | null;
|
|
1356
1411
|
readonly shared?: boolean | null;
|
|
1357
1412
|
};
|
|
@@ -1368,10 +1423,26 @@ export declare const UpdateTemplatePayload: Schema.Struct<{
|
|
|
1368
1423
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1369
1424
|
}>, Schema.Null]>, Schema.Null]>>;
|
|
1370
1425
|
readonly replyToDefault: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>, Schema.Null]>>;
|
|
1426
|
+
readonly trackingDefault: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1427
|
+
readonly opens: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1428
|
+
readonly clicks: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1429
|
+
}>, Schema.Null]>, Schema.Null]>>;
|
|
1371
1430
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1372
1431
|
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1373
1432
|
}>;
|
|
1374
1433
|
}>;
|
|
1434
|
+
export type WorkingHours = {
|
|
1435
|
+
readonly timeZone: TimeZone;
|
|
1436
|
+
readonly ranges: ReadonlyArray<WorkingHoursRange>;
|
|
1437
|
+
};
|
|
1438
|
+
export declare const WorkingHours: Schema.Struct<{
|
|
1439
|
+
readonly timeZone: Schema.String;
|
|
1440
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
1441
|
+
readonly day: Schema.Union<readonly [Schema.Literal<"monday">, Schema.Literal<"tuesday">, Schema.Literal<"wednesday">, Schema.Literal<"thursday">, Schema.Literal<"friday">, Schema.Literal<"saturday">, Schema.Literal<"sunday">]>;
|
|
1442
|
+
readonly opens: Schema.String;
|
|
1443
|
+
readonly closes: Schema.String;
|
|
1444
|
+
}>>;
|
|
1445
|
+
}>;
|
|
1375
1446
|
export type ApiKeyAccess = {
|
|
1376
1447
|
readonly mode: "full";
|
|
1377
1448
|
} | {
|
|
@@ -1392,6 +1463,7 @@ export declare const ApiKeyAccess: Schema.Union<readonly [Schema.Struct<{
|
|
|
1392
1463
|
readonly contacts: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1393
1464
|
readonly conversations: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1394
1465
|
readonly templates: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1466
|
+
readonly agents: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1395
1467
|
readonly webhooks: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1396
1468
|
readonly apiKeys: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1397
1469
|
readonly organization: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
@@ -1975,6 +2047,35 @@ export declare const OperationAccepted: Schema.Struct<{
|
|
|
1975
2047
|
}>;
|
|
1976
2048
|
}>;
|
|
1977
2049
|
}>;
|
|
2050
|
+
export type AgentDefinition = {
|
|
2051
|
+
readonly instructions: string;
|
|
2052
|
+
readonly knowledge: string;
|
|
2053
|
+
readonly endpointIds: ReadonlyArray<MailboxEndpointId>;
|
|
2054
|
+
readonly integrationIds: ReadonlyArray<AgentIntegrationReference>;
|
|
2055
|
+
readonly mode: AgentMode;
|
|
2056
|
+
readonly model: AgentModel;
|
|
2057
|
+
readonly approvalPolicy: AgentApprovalPolicy;
|
|
2058
|
+
readonly workingHours: WorkingHours | null;
|
|
2059
|
+
readonly takeoverTimeoutMinutes: number;
|
|
2060
|
+
};
|
|
2061
|
+
export declare const AgentDefinition: Schema.Struct<{
|
|
2062
|
+
readonly instructions: Schema.String;
|
|
2063
|
+
readonly knowledge: Schema.String;
|
|
2064
|
+
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
2065
|
+
readonly integrationIds: Schema.$Array<Schema.String>;
|
|
2066
|
+
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
2067
|
+
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
2068
|
+
readonly approvalPolicy: Schema.Union<readonly [Schema.Literal<"toolActions">, Schema.Literal<"none">]>;
|
|
2069
|
+
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
2070
|
+
readonly timeZone: Schema.String;
|
|
2071
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
2072
|
+
readonly day: Schema.Union<readonly [Schema.Literal<"monday">, Schema.Literal<"tuesday">, Schema.Literal<"wednesday">, Schema.Literal<"thursday">, Schema.Literal<"friday">, Schema.Literal<"saturday">, Schema.Literal<"sunday">]>;
|
|
2073
|
+
readonly opens: Schema.String;
|
|
2074
|
+
readonly closes: Schema.String;
|
|
2075
|
+
}>>;
|
|
2076
|
+
}>, Schema.Null]>;
|
|
2077
|
+
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
2078
|
+
}>;
|
|
1978
2079
|
export type EmailContent = {
|
|
1979
2080
|
readonly subject?: string | null;
|
|
1980
2081
|
readonly html?: string | null;
|
|
@@ -1992,6 +2093,7 @@ export type EmailContent = {
|
|
|
1992
2093
|
readonly unsubscribeGroupId?: UnsubscribeId | null | null;
|
|
1993
2094
|
readonly tracking?: EmailTrackingOverrideV1;
|
|
1994
2095
|
readonly footer?: EmailFooterOverride;
|
|
2096
|
+
readonly headers?: EmailCustomHeaders | null;
|
|
1995
2097
|
};
|
|
1996
2098
|
export declare const EmailContent: Schema.Struct<{
|
|
1997
2099
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2021,6 +2123,7 @@ export declare const EmailContent: Schema.Struct<{
|
|
|
2021
2123
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
2022
2124
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2023
2125
|
}>>;
|
|
2126
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
2024
2127
|
}>;
|
|
2025
2128
|
export type EmailDispatchContent = {
|
|
2026
2129
|
readonly subject?: string | null;
|
|
@@ -2039,6 +2142,7 @@ export type EmailDispatchContent = {
|
|
|
2039
2142
|
readonly unsubscribeGroupId?: UnsubscribeId | null | null;
|
|
2040
2143
|
readonly tracking?: EmailTrackingOverrideV1;
|
|
2041
2144
|
readonly footer?: EmailFooterOverride;
|
|
2145
|
+
readonly headers?: EmailCustomHeaders | null;
|
|
2042
2146
|
};
|
|
2043
2147
|
export declare const EmailDispatchContent: Schema.Struct<{
|
|
2044
2148
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2068,6 +2172,7 @@ export declare const EmailDispatchContent: Schema.Struct<{
|
|
|
2068
2172
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
2069
2173
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2070
2174
|
}>>;
|
|
2175
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
2071
2176
|
}>;
|
|
2072
2177
|
export type ContactIdentity = {
|
|
2073
2178
|
readonly id: ContactIdentityId;
|
|
@@ -2341,6 +2446,58 @@ declare const MailboxSendConflictError_base: Schema.Class<MailboxSendConflictErr
|
|
|
2341
2446
|
}>, import("effect/Cause").YieldableError>;
|
|
2342
2447
|
export declare class MailboxSendConflictError extends MailboxSendConflictError_base {
|
|
2343
2448
|
}
|
|
2449
|
+
export type CreateAgentPayload = {
|
|
2450
|
+
readonly name: AgentName;
|
|
2451
|
+
readonly namespaceId?: NamespaceId | null;
|
|
2452
|
+
readonly definition?: AgentDefinition | null;
|
|
2453
|
+
};
|
|
2454
|
+
export declare const CreateAgentPayload: Schema.Struct<{
|
|
2455
|
+
readonly name: Schema.String;
|
|
2456
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
2457
|
+
readonly definition: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2458
|
+
readonly instructions: Schema.String;
|
|
2459
|
+
readonly knowledge: Schema.String;
|
|
2460
|
+
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
2461
|
+
readonly integrationIds: Schema.$Array<Schema.String>;
|
|
2462
|
+
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
2463
|
+
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
2464
|
+
readonly approvalPolicy: Schema.Union<readonly [Schema.Literal<"toolActions">, Schema.Literal<"none">]>;
|
|
2465
|
+
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
2466
|
+
readonly timeZone: Schema.String;
|
|
2467
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
2468
|
+
readonly day: Schema.Union<readonly [Schema.Literal<"monday">, Schema.Literal<"tuesday">, Schema.Literal<"wednesday">, Schema.Literal<"thursday">, Schema.Literal<"friday">, Schema.Literal<"saturday">, Schema.Literal<"sunday">]>;
|
|
2469
|
+
readonly opens: Schema.String;
|
|
2470
|
+
readonly closes: Schema.String;
|
|
2471
|
+
}>>;
|
|
2472
|
+
}>, Schema.Null]>;
|
|
2473
|
+
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
2474
|
+
}>, Schema.Null]>>;
|
|
2475
|
+
}>;
|
|
2476
|
+
export type ReplaceAgentDraftPayload = {
|
|
2477
|
+
readonly revision: string;
|
|
2478
|
+
readonly definition: AgentDefinition;
|
|
2479
|
+
};
|
|
2480
|
+
export declare const ReplaceAgentDraftPayload: Schema.Struct<{
|
|
2481
|
+
readonly revision: Schema.String;
|
|
2482
|
+
readonly definition: Schema.Struct<{
|
|
2483
|
+
readonly instructions: Schema.String;
|
|
2484
|
+
readonly knowledge: Schema.String;
|
|
2485
|
+
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
2486
|
+
readonly integrationIds: Schema.$Array<Schema.String>;
|
|
2487
|
+
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
2488
|
+
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
2489
|
+
readonly approvalPolicy: Schema.Union<readonly [Schema.Literal<"toolActions">, Schema.Literal<"none">]>;
|
|
2490
|
+
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
2491
|
+
readonly timeZone: Schema.String;
|
|
2492
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
2493
|
+
readonly day: Schema.Union<readonly [Schema.Literal<"monday">, Schema.Literal<"tuesday">, Schema.Literal<"wednesday">, Schema.Literal<"thursday">, Schema.Literal<"friday">, Schema.Literal<"saturday">, Schema.Literal<"sunday">]>;
|
|
2494
|
+
readonly opens: Schema.String;
|
|
2495
|
+
readonly closes: Schema.String;
|
|
2496
|
+
}>>;
|
|
2497
|
+
}>, Schema.Null]>;
|
|
2498
|
+
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
2499
|
+
}>;
|
|
2500
|
+
}>;
|
|
2344
2501
|
export type EmailSendMessagePayload = {
|
|
2345
2502
|
readonly conversationId?: ConversationId | null | null;
|
|
2346
2503
|
readonly metadata?: MessageMetadata;
|
|
@@ -2408,6 +2565,7 @@ export declare const EmailSendMessagePayload: Schema.Struct<{
|
|
|
2408
2565
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
2409
2566
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2410
2567
|
}>>;
|
|
2568
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
2411
2569
|
}>;
|
|
2412
2570
|
}>;
|
|
2413
2571
|
export type JourneyCondition = {
|