samva 0.34.0 → 0.36.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 +17 -0
- package/README.md +2 -1
- package/dist/client/sdk.gen.d.ts +325 -331
- package/dist/client/sdk.gen.js +406 -454
- package/dist/client/types.gen.d.ts +3465 -750
- package/dist/effect/agents.d.ts +222 -17
- package/dist/effect/agents.js +7 -1
- package/dist/effect/analytics.d.ts +21 -15
- package/dist/effect/api-keys.d.ts +30 -24
- package/dist/effect/campaigns.d.ts +695 -39
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/contact-groups.d.ts +15 -15
- package/dist/effect/contacts.d.ts +56 -52
- package/dist/effect/conversations.d.ts +51 -45
- package/dist/effect/email.d.ts +82 -82
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +64 -12
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +2902 -150
- package/dist/effect/generated/agents.js +219 -31
- package/dist/effect/generated/analytics.d.ts +127 -136
- package/dist/effect/generated/analytics.js +72 -37
- package/dist/effect/generated/api-keys.d.ts +243 -47
- package/dist/effect/generated/api-keys.js +27 -12
- package/dist/effect/generated/attachments.d.ts +89 -1
- package/dist/effect/generated/attachments.js +10 -2
- package/dist/effect/generated/brands.d.ts +133 -1
- package/dist/effect/generated/brands.js +22 -10
- package/dist/effect/generated/campaigns.d.ts +1467 -143
- package/dist/effect/generated/campaigns.js +84 -20
- package/dist/effect/generated/contact-events.d.ts +26 -4
- package/dist/effect/generated/contact-events.js +5 -3
- package/dist/effect/generated/contact-groups.d.ts +233 -13
- package/dist/effect/generated/contact-groups.js +33 -17
- package/dist/effect/generated/contacts.d.ts +634 -96
- package/dist/effect/generated/contacts.js +82 -20
- package/dist/effect/generated/conversations.d.ts +501 -108
- package/dist/effect/generated/conversations.js +106 -22
- package/dist/effect/generated/custom-fields.d.ts +89 -1
- package/dist/effect/generated/custom-fields.js +11 -3
- package/dist/effect/generated/email.d.ts +1447 -83
- package/dist/effect/generated/email.js +167 -43
- package/dist/effect/generated/events.d.ts +51 -7
- package/dist/effect/generated/events.js +9 -5
- package/dist/effect/generated/extension-installations.d.ts +1052 -77
- package/dist/effect/generated/extension-installations.js +45 -31
- package/dist/effect/generated/extensions.d.ts +123 -13
- package/dist/effect/generated/extensions.js +20 -10
- package/dist/effect/generated/feedback.d.ts +23 -1
- package/dist/effect/generated/feedback.js +6 -4
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +6169 -1734
- package/dist/effect/generated/mailboxes.js +549 -344
- package/dist/effect/generated/media.d.ts +125 -15
- package/dist/effect/generated/media.js +15 -2
- package/dist/effect/generated/messages.d.ts +2036 -117
- package/dist/effect/generated/messages.js +286 -54
- package/dist/effect/generated/namespaces.d.ts +215 -55
- package/dist/effect/generated/namespaces.js +30 -12
- package/dist/effect/generated/newsletter-domains.d.ts +98 -12
- package/dist/effect/generated/newsletter-domains.js +20 -13
- package/dist/effect/generated/newsletter-issues.d.ts +354 -19
- package/dist/effect/generated/newsletter-issues.js +162 -98
- package/dist/effect/generated/newsletters.d.ts +123 -13
- package/dist/effect/generated/newsletters.js +19 -9
- package/dist/effect/generated/operations.d.ts +76 -10
- package/dist/effect/generated/operations.js +12 -6
- package/dist/effect/generated/organizations.d.ts +287 -7
- package/dist/effect/generated/organizations.js +33 -5
- package/dist/effect/generated/policies.d.ts +953 -0
- package/dist/effect/generated/policies.js +116 -0
- package/dist/effect/generated/scheduled-messages.d.ts +4418 -49
- package/dist/effect/generated/scheduled-messages.js +77 -13
- package/dist/effect/generated/shared.d.ts +3213 -521
- package/dist/effect/generated/shared.js +713 -128
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +2081 -693
- package/dist/effect/generated/templates.js +482 -267
- package/dist/effect/generated/topic-forms.d.ts +111 -1
- package/dist/effect/generated/topic-forms.js +23 -13
- package/dist/effect/generated/topics.d.ts +353 -43
- package/dist/effect/generated/topics.js +67 -19
- package/dist/effect/generated/webhooks.d.ts +318 -57
- package/dist/effect/generated/webhooks.js +68 -17
- package/dist/effect/generated/whoami.d.ts +35 -5
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +56 -32
- package/dist/effect/generated-metadata.js +137 -105
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/operation.js +5 -32
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +169 -83
- package/dist/effect/mailboxes.d.ts +978 -301
- package/dist/effect/mailboxes.js +1 -11
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/messages.d.ts +40 -40
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/newsletter-domains.d.ts +5 -5
- package/dist/effect/newsletters.d.ts +1 -1
- package/dist/effect/operations.d.ts +11 -11
- package/dist/effect/organizations.d.ts +2 -2
- package/dist/effect/policies.d.ts +65 -0
- package/dist/effect/policies.js +16 -0
- package/dist/effect/scheduled-messages.d.ts +869 -8
- package/dist/effect/templates.d.ts +43 -45
- package/dist/effect/templates.js +5 -3
- package/dist/effect/topics.d.ts +23 -23
- package/dist/effect/webhooks.d.ts +29 -26
- package/dist/index.js +2 -2
- package/dist/mailbox/test.js +11 -4
- package/dist/mailbox/types.d.ts +39 -3
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +4 -2
- package/dist/promises/client.js +5 -3
- package/dist/promises/errors.gen.d.ts +38 -2
- package/dist/promises/errors.gen.js +394 -34
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +39 -28
- package/dist/service-map.js +220 -782
- package/package.json +13 -8
|
@@ -6,10 +6,17 @@ 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
|
-
export type Cursor = string;
|
|
10
|
-
export declare const Cursor: Schema.String;
|
|
11
9
|
export type NamespaceId = string & EffectBrand.Brand<"NamespaceId">;
|
|
12
10
|
export declare const NamespaceId: Schema.brand<Schema.String, "NamespaceId">;
|
|
11
|
+
export type AgentId = string & EffectBrand.Brand<"AgentId">;
|
|
12
|
+
export declare const AgentId: Schema.brand<Schema.String, "AgentId">;
|
|
13
|
+
declare const MalformedRequestError_base: Schema.Class<MalformedRequestError, Schema.Struct<{
|
|
14
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
15
|
+
readonly message: Schema.String;
|
|
16
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
17
|
+
}>, import("effect/Cause").YieldableError>;
|
|
18
|
+
export declare class MalformedRequestError extends MalformedRequestError_base {
|
|
19
|
+
}
|
|
13
20
|
declare const UnauthorizedError_base: Schema.Class<UnauthorizedError, Schema.Struct<{
|
|
14
21
|
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
15
22
|
readonly message: Schema.String;
|
|
@@ -44,6 +51,8 @@ export declare class GatewayTimeoutError extends GatewayTimeoutError_base {
|
|
|
44
51
|
}
|
|
45
52
|
export type AgentName = string;
|
|
46
53
|
export declare const AgentName: Schema.String;
|
|
54
|
+
export type KnowledgeSourceId = string & EffectBrand.Brand<"KnowledgeSourceId">;
|
|
55
|
+
export declare const KnowledgeSourceId: Schema.brand<Schema.String, "KnowledgeSourceId">;
|
|
47
56
|
export type MailboxEndpointId = string & EffectBrand.Brand<"MailboxEndpointId">;
|
|
48
57
|
export declare const MailboxEndpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
|
|
49
58
|
export type IntegrationId = string & EffectBrand.Brand<"IntegrationId">;
|
|
@@ -64,16 +73,37 @@ export declare const AgentToolScope: Schema.Union<readonly [Schema.Struct<{
|
|
|
64
73
|
readonly kind: Schema.Literal<"selected">;
|
|
65
74
|
readonly names: Schema.$Array<Schema.String>;
|
|
66
75
|
}>]>;
|
|
67
|
-
export type
|
|
68
|
-
export declare const
|
|
76
|
+
export type PolicyEffect = "read" | "write" | "final";
|
|
77
|
+
export declare const PolicyEffect: Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>;
|
|
78
|
+
export type ApiKeyId = string & EffectBrand.Brand<"ApiKeyId">;
|
|
79
|
+
export declare const ApiKeyId: Schema.brand<Schema.String, "ApiKeyId">;
|
|
80
|
+
export type UserId = string & EffectBrand.Brand<"UserId">;
|
|
81
|
+
export declare const UserId: Schema.brand<Schema.String, "UserId">;
|
|
82
|
+
export type ExtensionInstallationId = string & EffectBrand.Brand<"ExtensionInstallationId">;
|
|
83
|
+
export declare const ExtensionInstallationId: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
84
|
+
export type PolicyRequirement = "run" | "model" | "person" | "never";
|
|
85
|
+
export declare const PolicyRequirement: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
69
86
|
export type AgentModel = "standard" | "max";
|
|
70
87
|
export declare const AgentModel: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
88
|
+
export type CatalogModelId = string;
|
|
89
|
+
export declare const CatalogModelId: Schema.String;
|
|
90
|
+
export type AgentReasoning = "auto" | "low" | "medium" | "high";
|
|
91
|
+
export declare const AgentReasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
71
92
|
export type TimeZone = string;
|
|
72
93
|
export declare const TimeZone: Schema.String;
|
|
73
94
|
export type Weekday = "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
|
|
74
95
|
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">]>;
|
|
75
96
|
export type ClockTime = string;
|
|
76
97
|
export declare const ClockTime: Schema.String;
|
|
98
|
+
declare const PaymentRequiredError_base: Schema.Class<PaymentRequiredError, Schema.Struct<{
|
|
99
|
+
readonly _tag: Schema.tag<"PaymentRequiredError">;
|
|
100
|
+
readonly message: Schema.String;
|
|
101
|
+
readonly resource: Schema.String;
|
|
102
|
+
readonly currentUsage: Schema.Finite;
|
|
103
|
+
readonly limit: Schema.Finite;
|
|
104
|
+
}>, import("effect/Cause").YieldableError>;
|
|
105
|
+
export declare class PaymentRequiredError extends PaymentRequiredError_base {
|
|
106
|
+
}
|
|
77
107
|
declare const ResourceNotFoundError_base: Schema.Class<ResourceNotFoundError, Schema.Struct<{
|
|
78
108
|
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
79
109
|
readonly resource: Schema.String;
|
|
@@ -82,6 +112,8 @@ declare const ResourceNotFoundError_base: Schema.Class<ResourceNotFoundError, Sc
|
|
|
82
112
|
}>, import("effect/Cause").YieldableError>;
|
|
83
113
|
export declare class ResourceNotFoundError extends ResourceNotFoundError_base {
|
|
84
114
|
}
|
|
115
|
+
export type MonthlySpendCapDollars = number;
|
|
116
|
+
export declare const MonthlySpendCapDollars: Schema.Finite;
|
|
85
117
|
declare const ConflictError_base: Schema.Class<ConflictError, Schema.Struct<{
|
|
86
118
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
87
119
|
readonly message: Schema.String;
|
|
@@ -90,8 +122,6 @@ declare const ConflictError_base: Schema.Class<ConflictError, Schema.Struct<{
|
|
|
90
122
|
}>, import("effect/Cause").YieldableError>;
|
|
91
123
|
export declare class ConflictError extends ConflictError_base {
|
|
92
124
|
}
|
|
93
|
-
export type VersionCursor = string;
|
|
94
|
-
export declare const VersionCursor: Schema.String;
|
|
95
125
|
declare const AnalyticsQueryError_base: Schema.Class<AnalyticsQueryError, Schema.Struct<{
|
|
96
126
|
readonly _tag: Schema.tag<"AnalyticsQueryError">;
|
|
97
127
|
readonly message: Schema.String;
|
|
@@ -101,8 +131,11 @@ export declare class AnalyticsQueryError extends AnalyticsQueryError_base {
|
|
|
101
131
|
export type ApiKeyResourceAccess = {
|
|
102
132
|
readonly messages?: "read" | "write" | null;
|
|
103
133
|
readonly email?: "read" | "write" | null;
|
|
134
|
+
readonly sms?: "read" | "write" | null;
|
|
135
|
+
readonly whatsapp?: "read" | "write" | null;
|
|
104
136
|
readonly domains?: "read" | "write" | null;
|
|
105
137
|
readonly phoneNumbers?: "read" | "write" | null;
|
|
138
|
+
readonly whatsappAccounts?: "read" | "write" | null;
|
|
106
139
|
readonly contacts?: "read" | "write" | null;
|
|
107
140
|
readonly conversations?: "read" | "write" | null;
|
|
108
141
|
readonly templates?: "read" | "write" | null;
|
|
@@ -116,8 +149,11 @@ export type ApiKeyResourceAccess = {
|
|
|
116
149
|
export declare const ApiKeyResourceAccess: Schema.Struct<{
|
|
117
150
|
readonly messages: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
118
151
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
152
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
153
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
119
154
|
readonly domains: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
120
155
|
readonly phoneNumbers: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
156
|
+
readonly whatsappAccounts: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
121
157
|
readonly contacts: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
122
158
|
readonly conversations: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
123
159
|
readonly templates: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
@@ -130,17 +166,6 @@ export declare const ApiKeyResourceAccess: Schema.Struct<{
|
|
|
130
166
|
}>;
|
|
131
167
|
export type MailboxId = string & EffectBrand.Brand<"MailboxId">;
|
|
132
168
|
export declare const MailboxId: Schema.brand<Schema.String, "MailboxId">;
|
|
133
|
-
export type MailboxSendMode = "send" | "approval";
|
|
134
|
-
export declare const MailboxSendMode: Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>;
|
|
135
|
-
declare const PaymentRequiredError_base: Schema.Class<PaymentRequiredError, Schema.Struct<{
|
|
136
|
-
readonly _tag: Schema.tag<"PaymentRequiredError">;
|
|
137
|
-
readonly message: Schema.String;
|
|
138
|
-
readonly resource: Schema.String;
|
|
139
|
-
readonly currentUsage: Schema.Finite;
|
|
140
|
-
readonly limit: Schema.Finite;
|
|
141
|
-
}>, import("effect/Cause").YieldableError>;
|
|
142
|
-
export declare class PaymentRequiredError extends PaymentRequiredError_base {
|
|
143
|
-
}
|
|
144
169
|
declare const RateLimitedError_base: Schema.Class<RateLimitedError, Schema.Struct<{
|
|
145
170
|
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
146
171
|
readonly message: Schema.String;
|
|
@@ -154,8 +179,6 @@ declare const BillingProviderError_base: Schema.Class<BillingProviderError, Sche
|
|
|
154
179
|
}>, import("effect/Cause").YieldableError>;
|
|
155
180
|
export declare class BillingProviderError extends BillingProviderError_base {
|
|
156
181
|
}
|
|
157
|
-
export type ApiKeyId = string & EffectBrand.Brand<"ApiKeyId">;
|
|
158
|
-
export declare const ApiKeyId: Schema.brand<Schema.String, "ApiKeyId">;
|
|
159
182
|
export type SuccessResponse = {
|
|
160
183
|
readonly success: boolean;
|
|
161
184
|
};
|
|
@@ -248,6 +271,24 @@ export type CampaignContentMetadata = {
|
|
|
248
271
|
readonly [x: string]: JsonValue;
|
|
249
272
|
} | null;
|
|
250
273
|
export declare const CampaignContentMetadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
274
|
+
export type WhatsAppTemplateDispatchData = {
|
|
275
|
+
readonly [x: string]: JsonValue;
|
|
276
|
+
};
|
|
277
|
+
export declare const WhatsAppTemplateDispatchData: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
278
|
+
export type WhatsAppTemplateContactBinding = {
|
|
279
|
+
readonly contact: "id" | "name" | "displayName" | "externalId" | "phone" | "email" | "firstName" | "lastName" | "company" | "jobTitle";
|
|
280
|
+
};
|
|
281
|
+
export declare const WhatsAppTemplateContactBinding: Schema.Struct<{
|
|
282
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
283
|
+
}>;
|
|
284
|
+
export type WhatsAppTemplateCustomFieldBinding = {
|
|
285
|
+
readonly customField: string;
|
|
286
|
+
};
|
|
287
|
+
export declare const WhatsAppTemplateCustomFieldBinding: Schema.Struct<{
|
|
288
|
+
readonly customField: Schema.String;
|
|
289
|
+
}>;
|
|
290
|
+
export type WhatsAppBusinessAccountId = string & EffectBrand.Brand<"WhatsAppBusinessAccountId">;
|
|
291
|
+
export declare const WhatsAppBusinessAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
|
|
251
292
|
export type ContactId = string & EffectBrand.Brand<"ContactId">;
|
|
252
293
|
export declare const ContactId: Schema.brand<Schema.String, "ContactId">;
|
|
253
294
|
export type ContactGroupId = string & EffectBrand.Brand<"ContactGroupId">;
|
|
@@ -382,8 +423,6 @@ export type ExtensionId = string & EffectBrand.Brand<"ExtensionId">;
|
|
|
382
423
|
export declare const ExtensionId: Schema.brand<Schema.String, "ExtensionId">;
|
|
383
424
|
export type ExtensionVersionId = string & EffectBrand.Brand<"ExtensionVersionId">;
|
|
384
425
|
export declare const ExtensionVersionId: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
385
|
-
export type UserId = string & EffectBrand.Brand<"UserId">;
|
|
386
|
-
export declare const UserId: Schema.brand<Schema.String, "UserId">;
|
|
387
426
|
export type FeedbackContext = {
|
|
388
427
|
readonly operation?: string | null;
|
|
389
428
|
readonly resourceId?: string | null;
|
|
@@ -472,8 +511,8 @@ export declare const JourneyUpdateTagsConfig: Schema.Struct<{
|
|
|
472
511
|
readonly add: Schema.$Array<Schema.String>;
|
|
473
512
|
readonly remove: Schema.$Array<Schema.String>;
|
|
474
513
|
}>;
|
|
475
|
-
export type MailboxChannel = "email";
|
|
476
|
-
export declare const MailboxChannel: Schema.Literal<"email">;
|
|
514
|
+
export type MailboxChannel = "sms" | "whatsapp" | "email";
|
|
515
|
+
export declare const MailboxChannel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
477
516
|
export type MailboxMetadata = {
|
|
478
517
|
readonly [x: string]: string;
|
|
479
518
|
};
|
|
@@ -488,8 +527,12 @@ export type MailboxActionId = string & EffectBrand.Brand<"MailboxActionId">;
|
|
|
488
527
|
export declare const MailboxActionId: Schema.brand<Schema.String, "MailboxActionId">;
|
|
489
528
|
export type MailboxDraftId = string & EffectBrand.Brand<"MailboxDraftId">;
|
|
490
529
|
export declare const MailboxDraftId: Schema.brand<Schema.String, "MailboxDraftId">;
|
|
491
|
-
export type
|
|
492
|
-
export declare const
|
|
530
|
+
export type PolicyDecisionId = string & EffectBrand.Brand<"PolicyDecisionId">;
|
|
531
|
+
export declare const PolicyDecisionId: Schema.brand<Schema.String, "PolicyDecisionId">;
|
|
532
|
+
export type PolicyReviewRound = number;
|
|
533
|
+
export declare const PolicyReviewRound: Schema.Finite;
|
|
534
|
+
export type PolicyDecider = "rule" | "model" | "person" | "agent";
|
|
535
|
+
export declare const PolicyDecider: Schema.Union<readonly [Schema.Literal<"rule">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"agent">]>;
|
|
493
536
|
export type MailboxSendError = {
|
|
494
537
|
readonly _tag: "SenderNotReadyError";
|
|
495
538
|
readonly message: string;
|
|
@@ -557,14 +600,19 @@ export declare const MailboxSendError: Schema.Union<readonly [Schema.TaggedStruc
|
|
|
557
600
|
readonly id: Schema.String;
|
|
558
601
|
readonly message: Schema.String;
|
|
559
602
|
}>]>;
|
|
603
|
+
declare const WhatsAppServiceWindowClosedError_base: Schema.Class<WhatsAppServiceWindowClosedError, Schema.Struct<{
|
|
604
|
+
readonly _tag: Schema.tag<"WhatsAppServiceWindowClosedError">;
|
|
605
|
+
readonly message: Schema.String;
|
|
606
|
+
readonly closedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
607
|
+
}>, import("effect/Cause").YieldableError>;
|
|
608
|
+
export declare class WhatsAppServiceWindowClosedError extends WhatsAppServiceWindowClosedError_base {
|
|
609
|
+
}
|
|
560
610
|
export type MailboxThreadFolder = "inbox" | "assigned" | "pending" | "sent" | "archived" | "trash";
|
|
561
611
|
export declare const MailboxThreadFolder: Schema.Union<readonly [Schema.Literal<"inbox">, Schema.Literal<"assigned">, Schema.Literal<"pending">, Schema.Literal<"sent">, Schema.Literal<"archived">, Schema.Literal<"trash">]>;
|
|
562
612
|
export type MailboxGrantRole = "admin" | "collaborator" | "viewer";
|
|
563
613
|
export declare const MailboxGrantRole: Schema.Union<readonly [Schema.Literal<"admin">, Schema.Literal<"collaborator">, Schema.Literal<"viewer">]>;
|
|
564
614
|
export type MailboxLabelId = string & EffectBrand.Brand<"MailboxLabelId">;
|
|
565
615
|
export declare const MailboxLabelId: Schema.brand<Schema.String, "MailboxLabelId">;
|
|
566
|
-
export type MailboxPolicyOutcomeKind = "requireApproval" | "deny";
|
|
567
|
-
export declare const MailboxPolicyOutcomeKind: Schema.Union<readonly [Schema.Literal<"requireApproval">, Schema.Literal<"deny">]>;
|
|
568
616
|
export type MailboxThreadPriority = "low" | "normal" | "high" | "urgent";
|
|
569
617
|
export declare const MailboxThreadPriority: Schema.Union<readonly [Schema.Literal<"low">, Schema.Literal<"normal">, Schema.Literal<"high">, Schema.Literal<"urgent">]>;
|
|
570
618
|
export type MessageMetadata = {
|
|
@@ -579,14 +627,214 @@ export declare const EmailSender: Schema.Union<readonly [Schema.Struct<{
|
|
|
579
627
|
readonly email: Schema.String;
|
|
580
628
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
581
629
|
}>, Schema.Null]>;
|
|
630
|
+
export type WhatsAppTextContent = {
|
|
631
|
+
readonly text: string;
|
|
632
|
+
};
|
|
633
|
+
export declare const WhatsAppTextContent: Schema.Struct<{
|
|
634
|
+
readonly text: Schema.String;
|
|
635
|
+
}>;
|
|
636
|
+
export type WhatsAppTemplateData = {
|
|
637
|
+
readonly [x: string]: JsonValue;
|
|
638
|
+
};
|
|
639
|
+
export declare const WhatsAppTemplateData: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
640
|
+
export type WhatsAppImageLink = {
|
|
641
|
+
readonly type: "image";
|
|
642
|
+
readonly caption?: string;
|
|
643
|
+
readonly url: string;
|
|
644
|
+
};
|
|
645
|
+
export declare const WhatsAppImageLink: Schema.Struct<{
|
|
646
|
+
readonly type: Schema.Literal<"image">;
|
|
647
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
648
|
+
readonly url: Schema.String;
|
|
649
|
+
}>;
|
|
650
|
+
export type WhatsAppVideoLink = {
|
|
651
|
+
readonly type: "video";
|
|
652
|
+
readonly caption?: string;
|
|
653
|
+
readonly url: string;
|
|
654
|
+
};
|
|
655
|
+
export declare const WhatsAppVideoLink: Schema.Struct<{
|
|
656
|
+
readonly type: Schema.Literal<"video">;
|
|
657
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
658
|
+
readonly url: Schema.String;
|
|
659
|
+
}>;
|
|
660
|
+
export type WhatsAppAudioLink = {
|
|
661
|
+
readonly type: "audio";
|
|
662
|
+
readonly url: string;
|
|
663
|
+
};
|
|
664
|
+
export declare const WhatsAppAudioLink: Schema.Struct<{
|
|
665
|
+
readonly type: Schema.Literal<"audio">;
|
|
666
|
+
readonly url: Schema.String;
|
|
667
|
+
}>;
|
|
668
|
+
export type WhatsAppDocumentLink = {
|
|
669
|
+
readonly type: "document";
|
|
670
|
+
readonly caption?: string;
|
|
671
|
+
readonly filename?: string;
|
|
672
|
+
readonly url: string;
|
|
673
|
+
};
|
|
674
|
+
export declare const WhatsAppDocumentLink: Schema.Struct<{
|
|
675
|
+
readonly type: Schema.Literal<"document">;
|
|
676
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
677
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
678
|
+
readonly url: Schema.String;
|
|
679
|
+
}>;
|
|
680
|
+
export type WhatsAppStickerLink = {
|
|
681
|
+
readonly type: "sticker";
|
|
682
|
+
readonly url: string;
|
|
683
|
+
};
|
|
684
|
+
export declare const WhatsAppStickerLink: Schema.Struct<{
|
|
685
|
+
readonly type: Schema.Literal<"sticker">;
|
|
686
|
+
readonly url: Schema.String;
|
|
687
|
+
}>;
|
|
688
|
+
export type WhatsAppTextHeader = {
|
|
689
|
+
readonly type: "text";
|
|
690
|
+
readonly text: string;
|
|
691
|
+
};
|
|
692
|
+
export declare const WhatsAppTextHeader: Schema.Struct<{
|
|
693
|
+
readonly type: Schema.Literal<"text">;
|
|
694
|
+
readonly text: Schema.String;
|
|
695
|
+
}>;
|
|
696
|
+
export type WhatsAppImageHeaderLink = {
|
|
697
|
+
readonly type: "image";
|
|
698
|
+
readonly url: string;
|
|
699
|
+
};
|
|
700
|
+
export declare const WhatsAppImageHeaderLink: Schema.Struct<{
|
|
701
|
+
readonly type: Schema.Literal<"image">;
|
|
702
|
+
readonly url: Schema.String;
|
|
703
|
+
}>;
|
|
704
|
+
export type WhatsAppVideoHeaderLink = {
|
|
705
|
+
readonly type: "video";
|
|
706
|
+
readonly url: string;
|
|
707
|
+
};
|
|
708
|
+
export declare const WhatsAppVideoHeaderLink: Schema.Struct<{
|
|
709
|
+
readonly type: Schema.Literal<"video">;
|
|
710
|
+
readonly url: Schema.String;
|
|
711
|
+
}>;
|
|
712
|
+
export type WhatsAppDocumentHeaderLink = {
|
|
713
|
+
readonly type: "document";
|
|
714
|
+
readonly filename?: string;
|
|
715
|
+
readonly url: string;
|
|
716
|
+
};
|
|
717
|
+
export declare const WhatsAppDocumentHeaderLink: Schema.Struct<{
|
|
718
|
+
readonly type: Schema.Literal<"document">;
|
|
719
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
720
|
+
readonly url: Schema.String;
|
|
721
|
+
}>;
|
|
722
|
+
export type WhatsAppReplyButton = {
|
|
723
|
+
readonly id: string;
|
|
724
|
+
readonly title: string;
|
|
725
|
+
};
|
|
726
|
+
export declare const WhatsAppReplyButton: Schema.Struct<{
|
|
727
|
+
readonly id: Schema.String;
|
|
728
|
+
readonly title: Schema.String;
|
|
729
|
+
}>;
|
|
730
|
+
export type WhatsAppListRow = {
|
|
731
|
+
readonly id: string;
|
|
732
|
+
readonly title: string;
|
|
733
|
+
readonly description?: string;
|
|
734
|
+
};
|
|
735
|
+
export declare const WhatsAppListRow: Schema.Struct<{
|
|
736
|
+
readonly id: Schema.String;
|
|
737
|
+
readonly title: Schema.String;
|
|
738
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
739
|
+
}>;
|
|
740
|
+
export type WhatsAppFlowId = string & EffectBrand.Brand<"WhatsAppFlowId">;
|
|
741
|
+
export declare const WhatsAppFlowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
742
|
+
export type WhatsAppLocation = {
|
|
743
|
+
readonly latitude: number;
|
|
744
|
+
readonly longitude: number;
|
|
745
|
+
readonly name?: string;
|
|
746
|
+
readonly address?: string;
|
|
747
|
+
};
|
|
748
|
+
export declare const WhatsAppLocation: Schema.Struct<{
|
|
749
|
+
readonly latitude: Schema.Finite;
|
|
750
|
+
readonly longitude: Schema.Finite;
|
|
751
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
752
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
753
|
+
}>;
|
|
754
|
+
export type WhatsAppContactCard = {
|
|
755
|
+
readonly name: {
|
|
756
|
+
readonly formattedName: string;
|
|
757
|
+
readonly firstName?: string;
|
|
758
|
+
readonly lastName?: string;
|
|
759
|
+
readonly middleName?: string;
|
|
760
|
+
readonly prefix?: string;
|
|
761
|
+
readonly suffix?: string;
|
|
762
|
+
};
|
|
763
|
+
readonly phones?: ReadonlyArray<{
|
|
764
|
+
readonly phone: string;
|
|
765
|
+
readonly type?: string;
|
|
766
|
+
readonly waId?: string;
|
|
767
|
+
}>;
|
|
768
|
+
readonly emails?: ReadonlyArray<{
|
|
769
|
+
readonly email: string;
|
|
770
|
+
readonly type?: string;
|
|
771
|
+
}>;
|
|
772
|
+
readonly urls?: ReadonlyArray<{
|
|
773
|
+
readonly url: string;
|
|
774
|
+
readonly type?: string;
|
|
775
|
+
}>;
|
|
776
|
+
readonly org?: {
|
|
777
|
+
readonly company?: string;
|
|
778
|
+
readonly department?: string;
|
|
779
|
+
readonly title?: string;
|
|
780
|
+
};
|
|
781
|
+
readonly addresses?: ReadonlyArray<{
|
|
782
|
+
readonly street?: string;
|
|
783
|
+
readonly city?: string;
|
|
784
|
+
readonly state?: string;
|
|
785
|
+
readonly zip?: string;
|
|
786
|
+
readonly country?: string;
|
|
787
|
+
readonly countryCode?: string;
|
|
788
|
+
readonly type?: string;
|
|
789
|
+
}>;
|
|
790
|
+
readonly birthday?: string;
|
|
791
|
+
};
|
|
792
|
+
export declare const WhatsAppContactCard: Schema.Struct<{
|
|
793
|
+
readonly name: Schema.Struct<{
|
|
794
|
+
readonly formattedName: Schema.String;
|
|
795
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
796
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
797
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
798
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
799
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
800
|
+
}>;
|
|
801
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
802
|
+
readonly phone: Schema.String;
|
|
803
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
804
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
805
|
+
}>>>;
|
|
806
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
807
|
+
readonly email: Schema.String;
|
|
808
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
809
|
+
}>>>;
|
|
810
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
811
|
+
readonly url: Schema.String;
|
|
812
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
813
|
+
}>>>;
|
|
814
|
+
readonly org: Schema.optionalKey<Schema.Struct<{
|
|
815
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
816
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
817
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
818
|
+
}>>;
|
|
819
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
820
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
821
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
822
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
823
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
824
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
825
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
826
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
827
|
+
}>>>;
|
|
828
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
829
|
+
}>;
|
|
582
830
|
export type IanaTimezone = string;
|
|
583
831
|
export declare const IanaTimezone: Schema.String;
|
|
584
832
|
export type NamespaceMetadata = {
|
|
585
833
|
readonly [x: string]: string;
|
|
586
834
|
};
|
|
587
835
|
export declare const NamespaceMetadata: Schema.$Record<Schema.String, Schema.String>;
|
|
588
|
-
export type NamespaceResourceType = "domain" | "sender" | "contact" | "template";
|
|
589
|
-
export declare const NamespaceResourceType: Schema.Union<readonly [Schema.Literal<"domain">, Schema.Literal<"sender">, Schema.Literal<"contact">, Schema.Literal<"template">]>;
|
|
836
|
+
export type NamespaceResourceType = "domain" | "sender" | "whatsappNumber" | "smsNumber" | "contact" | "template";
|
|
837
|
+
export declare const NamespaceResourceType: Schema.Union<readonly [Schema.Literal<"domain">, Schema.Literal<"sender">, Schema.Literal<"whatsappNumber">, Schema.Literal<"smsNumber">, Schema.Literal<"contact">, Schema.Literal<"template">]>;
|
|
590
838
|
export type NewsletterId = string & EffectBrand.Brand<"NewsletterId">;
|
|
591
839
|
export declare const NewsletterId: Schema.brand<Schema.String, "NewsletterId">;
|
|
592
840
|
export type TemplateProjectId = string & EffectBrand.Brand<"TemplateProjectId">;
|
|
@@ -599,6 +847,8 @@ export declare const OperationResource: Schema.Struct<{
|
|
|
599
847
|
readonly type: Schema.String;
|
|
600
848
|
readonly id: Schema.String;
|
|
601
849
|
}>;
|
|
850
|
+
export type PolicyVersion = number;
|
|
851
|
+
export declare const PolicyVersion: Schema.Finite;
|
|
602
852
|
export type TemplateFromDefault = {
|
|
603
853
|
readonly email: string;
|
|
604
854
|
readonly name?: string | null;
|
|
@@ -615,6 +865,16 @@ export declare const TemplateTrackingDefault: Schema.Struct<{
|
|
|
615
865
|
readonly opens: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
616
866
|
readonly clicks: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
617
867
|
}>;
|
|
868
|
+
declare const TemplateInUseError_base: Schema.Class<TemplateInUseError, Schema.Struct<{
|
|
869
|
+
readonly _tag: Schema.tag<"TemplateInUseError">;
|
|
870
|
+
readonly message: Schema.String;
|
|
871
|
+
readonly references: Schema.$Array<Schema.Struct<{
|
|
872
|
+
readonly kind: Schema.String;
|
|
873
|
+
readonly id: Schema.String;
|
|
874
|
+
}>>;
|
|
875
|
+
}>, import("effect/Cause").YieldableError>;
|
|
876
|
+
export declare class TemplateInUseError extends TemplateInUseError_base {
|
|
877
|
+
}
|
|
618
878
|
export type TopicContactByEmail = {
|
|
619
879
|
readonly email: string;
|
|
620
880
|
};
|
|
@@ -654,10 +914,13 @@ export declare const ConversationCategories: Schema.Struct<{
|
|
|
654
914
|
readonly categories: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.String]>, readonly [Schema.String]>;
|
|
655
915
|
}>;
|
|
656
916
|
export type ConversationChannels = {
|
|
657
|
-
readonly channels: readonly [
|
|
917
|
+
readonly channels: readonly [
|
|
918
|
+
"sms" | "whatsapp" | "email",
|
|
919
|
+
...Array<"sms" | "whatsapp" | "email">
|
|
920
|
+
];
|
|
658
921
|
};
|
|
659
922
|
export declare const ConversationChannels: Schema.Struct<{
|
|
660
|
-
readonly channels: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Literal<"email">]>, readonly [Schema.Literal<"email">]>;
|
|
923
|
+
readonly channels: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>]>;
|
|
661
924
|
}>;
|
|
662
925
|
export type ConversationTags = {
|
|
663
926
|
readonly tags: readonly [string, ...Array<string>];
|
|
@@ -701,22 +964,16 @@ export type CreateMediaPayload = {
|
|
|
701
964
|
readonly filename: string;
|
|
702
965
|
readonly contentType: string;
|
|
703
966
|
readonly sizeBytes: number;
|
|
704
|
-
readonly purpose: "attachment" | "avatar" | "review_evidence";
|
|
967
|
+
readonly purpose: "attachment" | "avatar" | "whatsapp_media" | "review_evidence";
|
|
705
968
|
readonly checksumSha256?: string | null;
|
|
706
969
|
};
|
|
707
970
|
export declare const CreateMediaPayload: Schema.Struct<{
|
|
708
971
|
readonly filename: Schema.String;
|
|
709
972
|
readonly contentType: Schema.String;
|
|
710
973
|
readonly sizeBytes: Schema.Finite;
|
|
711
|
-
readonly purpose: Schema.Union<readonly [Schema.Literal<"attachment">, Schema.Literal<"avatar">, Schema.Literal<"review_evidence">]>;
|
|
974
|
+
readonly purpose: Schema.Union<readonly [Schema.Literal<"attachment">, Schema.Literal<"avatar">, Schema.Literal<"whatsapp_media">, Schema.Literal<"review_evidence">]>;
|
|
712
975
|
readonly checksumSha256: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
713
976
|
}>;
|
|
714
|
-
export type DenyMailboxActionPayload = {
|
|
715
|
-
readonly reason: string;
|
|
716
|
-
};
|
|
717
|
-
export declare const DenyMailboxActionPayload: Schema.Struct<{
|
|
718
|
-
readonly reason: Schema.String;
|
|
719
|
-
}>;
|
|
720
977
|
export type DomainWarmingNotePayload = {
|
|
721
978
|
readonly note?: string | null;
|
|
722
979
|
};
|
|
@@ -941,7 +1198,6 @@ export type CreateTemplatePayload = {
|
|
|
941
1198
|
readonly useBrand?: boolean | null;
|
|
942
1199
|
readonly description?: string | null;
|
|
943
1200
|
readonly category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
944
|
-
readonly isActive?: boolean | null;
|
|
945
1201
|
readonly namespaceId?: NamespaceId | null;
|
|
946
1202
|
readonly shared?: boolean | null;
|
|
947
1203
|
};
|
|
@@ -953,20 +1209,12 @@ export declare const CreateTemplatePayload: Schema.Struct<{
|
|
|
953
1209
|
readonly useBrand: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
954
1210
|
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
955
1211
|
readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"transactional">, Schema.Literal<"marketing">, Schema.Literal<"support">, Schema.Literal<"notification">, Schema.Literal<"verification">, Schema.Literal<"reminder">, Schema.Literal<"alert">]>, Schema.Null]>>;
|
|
956
|
-
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
957
1212
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
958
1213
|
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
959
1214
|
}>;
|
|
960
|
-
export type UpdateAgentPayload = {
|
|
961
|
-
readonly name: AgentName;
|
|
962
|
-
};
|
|
963
|
-
export declare const UpdateAgentPayload: Schema.Struct<{
|
|
964
|
-
readonly name: Schema.String;
|
|
965
|
-
}>;
|
|
966
1215
|
export type AgentIntegrationGrant = {
|
|
967
1216
|
readonly integrationId: IntegrationId;
|
|
968
1217
|
readonly tools: AgentToolScope;
|
|
969
|
-
readonly requireApproval: ReadonlyArray<string>;
|
|
970
1218
|
};
|
|
971
1219
|
export declare const AgentIntegrationGrant: Schema.Struct<{
|
|
972
1220
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -978,8 +1226,35 @@ export declare const AgentIntegrationGrant: Schema.Struct<{
|
|
|
978
1226
|
readonly kind: Schema.Literal<"selected">;
|
|
979
1227
|
readonly names: Schema.$Array<Schema.String>;
|
|
980
1228
|
}>]>;
|
|
981
|
-
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
982
1229
|
}>;
|
|
1230
|
+
export type PolicySubject = {
|
|
1231
|
+
readonly kind: "agent";
|
|
1232
|
+
readonly id: AgentId;
|
|
1233
|
+
} | {
|
|
1234
|
+
readonly kind: "apiKey";
|
|
1235
|
+
readonly id: ApiKeyId;
|
|
1236
|
+
} | {
|
|
1237
|
+
readonly kind: "member";
|
|
1238
|
+
readonly userId: UserId;
|
|
1239
|
+
} | {
|
|
1240
|
+
readonly kind: "extension";
|
|
1241
|
+
readonly id: ExtensionInstallationId;
|
|
1242
|
+
};
|
|
1243
|
+
export declare const PolicySubject: Schema.Union<readonly [Schema.Struct<{
|
|
1244
|
+
readonly kind: Schema.Literal<"agent">;
|
|
1245
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
1246
|
+
}>, Schema.Struct<{
|
|
1247
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
1248
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
1249
|
+
}>, Schema.Struct<{
|
|
1250
|
+
readonly kind: Schema.Literal<"member">;
|
|
1251
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
1252
|
+
}>, Schema.Struct<{
|
|
1253
|
+
readonly kind: Schema.Literal<"extension">;
|
|
1254
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
1255
|
+
}>]>;
|
|
1256
|
+
export type AgentModelChoice = AgentModel | CatalogModelId;
|
|
1257
|
+
export declare const AgentModelChoice: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
983
1258
|
export type WorkingHoursRange = {
|
|
984
1259
|
readonly day: Weekday;
|
|
985
1260
|
readonly opens: ClockTime;
|
|
@@ -990,13 +1265,32 @@ export declare const WorkingHoursRange: Schema.Struct<{
|
|
|
990
1265
|
readonly opens: Schema.String;
|
|
991
1266
|
readonly closes: Schema.String;
|
|
992
1267
|
}>;
|
|
1268
|
+
export type UpdateAgentPayload = {
|
|
1269
|
+
readonly name?: AgentName | null;
|
|
1270
|
+
readonly monthlySpendCapDollars?: MonthlySpendCapDollars | null;
|
|
1271
|
+
};
|
|
1272
|
+
export declare const UpdateAgentPayload: Schema.Struct<{
|
|
1273
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1274
|
+
readonly monthlySpendCapDollars: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1275
|
+
}>;
|
|
1276
|
+
export type ApiKeyMailboxAccess = {
|
|
1277
|
+
readonly permissions: readonly [
|
|
1278
|
+
"read" | "update" | "send" | "quarantine.read",
|
|
1279
|
+
...Array<"read" | "update" | "send" | "quarantine.read">
|
|
1280
|
+
];
|
|
1281
|
+
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
1282
|
+
};
|
|
1283
|
+
export declare const ApiKeyMailboxAccess: Schema.Struct<{
|
|
1284
|
+
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">]>]>;
|
|
1285
|
+
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]>>;
|
|
1286
|
+
}>;
|
|
993
1287
|
export type CampaignReplyMailbox = MailboxId | null;
|
|
994
1288
|
export declare const CampaignReplyMailbox: Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>;
|
|
995
1289
|
export type CreateWebhookPayload = {
|
|
996
1290
|
readonly name: string;
|
|
997
1291
|
readonly url: string;
|
|
998
|
-
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">;
|
|
999
|
-
readonly channels?: ReadonlyArray<"email"> | null;
|
|
1292
|
+
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" | "email.sending.paused" | "email.sending.resumed" | "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">;
|
|
1293
|
+
readonly channels?: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
|
|
1000
1294
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
1001
1295
|
readonly namespaceId?: NamespaceId | null;
|
|
1002
1296
|
readonly headers?: {
|
|
@@ -1007,36 +1301,18 @@ export type CreateWebhookPayload = {
|
|
|
1007
1301
|
export declare const CreateWebhookPayload: Schema.Struct<{
|
|
1008
1302
|
readonly name: Schema.String;
|
|
1009
1303
|
readonly url: Schema.String;
|
|
1010
|
-
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">]>>;
|
|
1011
|
-
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
1304
|
+
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, 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">]>>;
|
|
1305
|
+
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
1012
1306
|
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]>>;
|
|
1013
1307
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1014
1308
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1015
1309
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>, Schema.Null]>>;
|
|
1016
1310
|
}>;
|
|
1017
|
-
export type InstallExtensionPayload = {
|
|
1018
|
-
readonly extension: string;
|
|
1019
|
-
readonly version?: string | null;
|
|
1020
|
-
readonly mailboxIds?: ReadonlyArray<MailboxId> | null;
|
|
1021
|
-
readonly namespaceId?: NamespaceId | null;
|
|
1022
|
-
readonly permissions?: ReadonlyArray<"read" | "update" | "send" | "quarantine.read"> | null;
|
|
1023
|
-
readonly sendMode?: "send" | "approval" | null;
|
|
1024
|
-
readonly webhookUrl?: string | null;
|
|
1025
|
-
};
|
|
1026
|
-
export declare const InstallExtensionPayload: Schema.Struct<{
|
|
1027
|
-
readonly extension: Schema.String;
|
|
1028
|
-
readonly version: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1029
|
-
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>>;
|
|
1030
|
-
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1031
|
-
readonly permissions: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>>, Schema.Null]>>;
|
|
1032
|
-
readonly sendMode: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>, Schema.Null]>>;
|
|
1033
|
-
readonly webhookUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1034
|
-
}>;
|
|
1035
1311
|
export type UpdateWebhookPayload = {
|
|
1036
1312
|
readonly name?: string | null;
|
|
1037
1313
|
readonly url?: string | null;
|
|
1038
|
-
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;
|
|
1039
|
-
readonly channels?: ReadonlyArray<"email"> | null;
|
|
1314
|
+
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" | "email.sending.paused" | "email.sending.resumed" | "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;
|
|
1315
|
+
readonly channels?: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
|
|
1040
1316
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
1041
1317
|
readonly namespaceId?: NamespaceId | null;
|
|
1042
1318
|
readonly headers?: {
|
|
@@ -1047,25 +1323,32 @@ export type UpdateWebhookPayload = {
|
|
|
1047
1323
|
export declare const UpdateWebhookPayload: Schema.Struct<{
|
|
1048
1324
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1049
1325
|
readonly url: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1050
|
-
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]>>;
|
|
1051
|
-
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
1326
|
+
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<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, 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]>>;
|
|
1327
|
+
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
1052
1328
|
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]>>;
|
|
1053
1329
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1054
1330
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1055
1331
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>, Schema.Null]>>;
|
|
1056
1332
|
}>;
|
|
1057
|
-
export type
|
|
1058
|
-
readonly
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
1063
|
-
readonly sendMode?: MailboxSendMode | null;
|
|
1333
|
+
export type CreateMailboxChatDraftPayload = {
|
|
1334
|
+
readonly channel: "whatsapp" | "sms";
|
|
1335
|
+
readonly to?: string | null;
|
|
1336
|
+
readonly text?: string | null;
|
|
1337
|
+
readonly inReplyToMessageId?: MessageId | null;
|
|
1064
1338
|
};
|
|
1065
|
-
export declare const
|
|
1066
|
-
readonly
|
|
1067
|
-
readonly
|
|
1068
|
-
readonly
|
|
1339
|
+
export declare const CreateMailboxChatDraftPayload: Schema.Struct<{
|
|
1340
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
|
|
1341
|
+
readonly to: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1342
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1343
|
+
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
1344
|
+
}>;
|
|
1345
|
+
export type WhatsAppReaction = {
|
|
1346
|
+
readonly messageId: MessageId;
|
|
1347
|
+
readonly emoji: string;
|
|
1348
|
+
};
|
|
1349
|
+
export declare const WhatsAppReaction: Schema.Struct<{
|
|
1350
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
1351
|
+
readonly emoji: Schema.String;
|
|
1069
1352
|
}>;
|
|
1070
1353
|
export type BrandFooter = {
|
|
1071
1354
|
readonly companyName?: string | null;
|
|
@@ -1103,6 +1386,80 @@ export declare const EmailAttachment: Schema.Struct<{
|
|
|
1103
1386
|
readonly contentType: Schema.String;
|
|
1104
1387
|
readonly size: Schema.Finite;
|
|
1105
1388
|
}>;
|
|
1389
|
+
export type WhatsAppImageUpload = {
|
|
1390
|
+
readonly type: "image";
|
|
1391
|
+
readonly caption?: string;
|
|
1392
|
+
readonly mediaId: MediaId;
|
|
1393
|
+
};
|
|
1394
|
+
export declare const WhatsAppImageUpload: Schema.Struct<{
|
|
1395
|
+
readonly type: Schema.Literal<"image">;
|
|
1396
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1397
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1398
|
+
}>;
|
|
1399
|
+
export type WhatsAppVideoUpload = {
|
|
1400
|
+
readonly type: "video";
|
|
1401
|
+
readonly caption?: string;
|
|
1402
|
+
readonly mediaId: MediaId;
|
|
1403
|
+
};
|
|
1404
|
+
export declare const WhatsAppVideoUpload: Schema.Struct<{
|
|
1405
|
+
readonly type: Schema.Literal<"video">;
|
|
1406
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1407
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1408
|
+
}>;
|
|
1409
|
+
export type WhatsAppAudioUpload = {
|
|
1410
|
+
readonly type: "audio";
|
|
1411
|
+
readonly mediaId: MediaId;
|
|
1412
|
+
};
|
|
1413
|
+
export declare const WhatsAppAudioUpload: Schema.Struct<{
|
|
1414
|
+
readonly type: Schema.Literal<"audio">;
|
|
1415
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1416
|
+
}>;
|
|
1417
|
+
export type WhatsAppDocumentUpload = {
|
|
1418
|
+
readonly type: "document";
|
|
1419
|
+
readonly caption?: string;
|
|
1420
|
+
readonly filename?: string;
|
|
1421
|
+
readonly mediaId: MediaId;
|
|
1422
|
+
};
|
|
1423
|
+
export declare const WhatsAppDocumentUpload: Schema.Struct<{
|
|
1424
|
+
readonly type: Schema.Literal<"document">;
|
|
1425
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1426
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1427
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1428
|
+
}>;
|
|
1429
|
+
export type WhatsAppStickerUpload = {
|
|
1430
|
+
readonly type: "sticker";
|
|
1431
|
+
readonly mediaId: MediaId;
|
|
1432
|
+
};
|
|
1433
|
+
export declare const WhatsAppStickerUpload: Schema.Struct<{
|
|
1434
|
+
readonly type: Schema.Literal<"sticker">;
|
|
1435
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1436
|
+
}>;
|
|
1437
|
+
export type WhatsAppImageHeaderUpload = {
|
|
1438
|
+
readonly type: "image";
|
|
1439
|
+
readonly mediaId: MediaId;
|
|
1440
|
+
};
|
|
1441
|
+
export declare const WhatsAppImageHeaderUpload: Schema.Struct<{
|
|
1442
|
+
readonly type: Schema.Literal<"image">;
|
|
1443
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1444
|
+
}>;
|
|
1445
|
+
export type WhatsAppVideoHeaderUpload = {
|
|
1446
|
+
readonly type: "video";
|
|
1447
|
+
readonly mediaId: MediaId;
|
|
1448
|
+
};
|
|
1449
|
+
export declare const WhatsAppVideoHeaderUpload: Schema.Struct<{
|
|
1450
|
+
readonly type: Schema.Literal<"video">;
|
|
1451
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1452
|
+
}>;
|
|
1453
|
+
export type WhatsAppDocumentHeaderUpload = {
|
|
1454
|
+
readonly type: "document";
|
|
1455
|
+
readonly filename?: string;
|
|
1456
|
+
readonly mediaId: MediaId;
|
|
1457
|
+
};
|
|
1458
|
+
export declare const WhatsAppDocumentHeaderUpload: Schema.Struct<{
|
|
1459
|
+
readonly type: Schema.Literal<"document">;
|
|
1460
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1461
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1462
|
+
}>;
|
|
1106
1463
|
export type RespondToOnboardingInformationRequestInput = {
|
|
1107
1464
|
readonly expectedGeneration: number;
|
|
1108
1465
|
readonly responseText: string;
|
|
@@ -1115,6 +1472,8 @@ export declare const RespondToOnboardingInformationRequestInput: Schema.Struct<{
|
|
|
1115
1472
|
}>;
|
|
1116
1473
|
export type TemplateData = JsonObject | null;
|
|
1117
1474
|
export declare const TemplateData: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
1475
|
+
export type SmsTemplateData = JsonObject | null;
|
|
1476
|
+
export declare const SmsTemplateData: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
1118
1477
|
export type ContactConsent = {
|
|
1119
1478
|
readonly status: "opted_in" | "opted_out";
|
|
1120
1479
|
readonly source: string;
|
|
@@ -1133,6 +1492,32 @@ export type JourneyWebhookConfig = {
|
|
|
1133
1492
|
export declare const JourneyWebhookConfig: Schema.Struct<{
|
|
1134
1493
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
1135
1494
|
}>;
|
|
1495
|
+
export type SendMailboxChatPayload = {
|
|
1496
|
+
readonly channel: "whatsapp" | "sms";
|
|
1497
|
+
readonly to: string;
|
|
1498
|
+
readonly text?: string | null;
|
|
1499
|
+
readonly templateId?: TemplateId | null;
|
|
1500
|
+
readonly templateData?: JsonObject | null;
|
|
1501
|
+
};
|
|
1502
|
+
export declare const SendMailboxChatPayload: Schema.Struct<{
|
|
1503
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
|
|
1504
|
+
readonly to: Schema.String;
|
|
1505
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1506
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1507
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
1508
|
+
}>;
|
|
1509
|
+
export type ReplyMailboxChatPayload = {
|
|
1510
|
+
readonly channel: "whatsapp" | "sms";
|
|
1511
|
+
readonly text?: string | null;
|
|
1512
|
+
readonly templateId?: TemplateId | null;
|
|
1513
|
+
readonly templateData?: JsonObject | null;
|
|
1514
|
+
};
|
|
1515
|
+
export declare const ReplyMailboxChatPayload: Schema.Struct<{
|
|
1516
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
|
|
1517
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1518
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1519
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
1520
|
+
}>;
|
|
1136
1521
|
export type SetContactConsent = {
|
|
1137
1522
|
readonly status: "opted_in" | "opted_out";
|
|
1138
1523
|
readonly source: string;
|
|
@@ -1207,6 +1592,12 @@ export declare const SubscribePayload: Schema.Struct<{
|
|
|
1207
1592
|
}>;
|
|
1208
1593
|
export type CampaignConversationRef = ConversationId | null;
|
|
1209
1594
|
export declare const CampaignConversationRef: Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>;
|
|
1595
|
+
export type WhatsAppTemplateBinding = WhatsAppTemplateContactBinding | WhatsAppTemplateCustomFieldBinding;
|
|
1596
|
+
export declare const WhatsAppTemplateBinding: Schema.Union<readonly [Schema.Struct<{
|
|
1597
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
1598
|
+
}>, Schema.Struct<{
|
|
1599
|
+
readonly customField: Schema.String;
|
|
1600
|
+
}>]>;
|
|
1210
1601
|
export type ContactEvent = {
|
|
1211
1602
|
readonly id: string;
|
|
1212
1603
|
readonly contactId: ContactId;
|
|
@@ -1265,6 +1656,34 @@ export declare const EmailRecipient: Schema.Union<readonly [Schema.Struct<{
|
|
|
1265
1656
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1266
1657
|
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1267
1658
|
}>]>;
|
|
1659
|
+
export type SmsRecipient = {
|
|
1660
|
+
readonly contactId: ContactId;
|
|
1661
|
+
} | {
|
|
1662
|
+
readonly phone: string;
|
|
1663
|
+
readonly name?: string | null;
|
|
1664
|
+
readonly displayName?: string | null;
|
|
1665
|
+
};
|
|
1666
|
+
export declare const SmsRecipient: Schema.Union<readonly [Schema.Struct<{
|
|
1667
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
1668
|
+
}>, Schema.Struct<{
|
|
1669
|
+
readonly phone: Schema.String;
|
|
1670
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1671
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1672
|
+
}>]>;
|
|
1673
|
+
export type WhatsAppRecipient = {
|
|
1674
|
+
readonly contactId: ContactId;
|
|
1675
|
+
} | {
|
|
1676
|
+
readonly phone: string;
|
|
1677
|
+
readonly name?: string | null;
|
|
1678
|
+
readonly displayName?: string | null;
|
|
1679
|
+
};
|
|
1680
|
+
export declare const WhatsAppRecipient: Schema.Union<readonly [Schema.Struct<{
|
|
1681
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
1682
|
+
}>, Schema.Struct<{
|
|
1683
|
+
readonly phone: Schema.String;
|
|
1684
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1685
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1686
|
+
}>]>;
|
|
1268
1687
|
export type TopicContactById = {
|
|
1269
1688
|
readonly contactId: ContactId;
|
|
1270
1689
|
};
|
|
@@ -1329,7 +1748,7 @@ export type MessageSummary = {
|
|
|
1329
1748
|
readonly campaignId: CampaignId;
|
|
1330
1749
|
readonly runId: CampaignRunId;
|
|
1331
1750
|
} | null;
|
|
1332
|
-
readonly channel: "email";
|
|
1751
|
+
readonly channel: "sms" | "whatsapp" | "email";
|
|
1333
1752
|
readonly direction: "outbound" | "inbound";
|
|
1334
1753
|
readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
|
|
1335
1754
|
readonly from: string | null;
|
|
@@ -1344,7 +1763,7 @@ export declare const MessageSummary: Schema.Struct<{
|
|
|
1344
1763
|
readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
|
|
1345
1764
|
readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
|
|
1346
1765
|
}>, Schema.Null]>>;
|
|
1347
|
-
readonly channel: Schema.Literal<"email">;
|
|
1766
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1348
1767
|
readonly direction: Schema.Union<readonly [Schema.Literal<"outbound">, Schema.Literal<"inbound">]>;
|
|
1349
1768
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"scheduled">, Schema.Literal<"queued">, Schema.Literal<"processing">, Schema.Literal<"sent">, Schema.Literal<"delivered">, Schema.Literal<"read">, Schema.Literal<"failed">, Schema.Literal<"bounced">, Schema.Literal<"complained">]>;
|
|
1350
1769
|
readonly from: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1487,7 +1906,7 @@ export type CreateMailboxEndpointPayload = {
|
|
|
1487
1906
|
readonly displayName?: string | null;
|
|
1488
1907
|
};
|
|
1489
1908
|
export declare const CreateMailboxEndpointPayload: Schema.Struct<{
|
|
1490
|
-
readonly channel: Schema.Literal<"email">;
|
|
1909
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1491
1910
|
readonly address: Schema.String;
|
|
1492
1911
|
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1493
1912
|
}>;
|
|
@@ -1499,19 +1918,101 @@ export declare const UpdateMailboxPayload: Schema.Struct<{
|
|
|
1499
1918
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1500
1919
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>, Schema.Null]>>;
|
|
1501
1920
|
}>;
|
|
1921
|
+
export type ApproveMailboxActionPayload = {
|
|
1922
|
+
readonly reviewRound: PolicyReviewRound;
|
|
1923
|
+
readonly always?: boolean | null;
|
|
1924
|
+
readonly edits?: {
|
|
1925
|
+
readonly text?: string | null;
|
|
1926
|
+
readonly html?: string | null;
|
|
1927
|
+
} | null;
|
|
1928
|
+
};
|
|
1929
|
+
export declare const ApproveMailboxActionPayload: Schema.Struct<{
|
|
1930
|
+
readonly reviewRound: Schema.Finite;
|
|
1931
|
+
readonly always: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1932
|
+
readonly edits: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1933
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1934
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1935
|
+
}>, Schema.Null]>>;
|
|
1936
|
+
}>;
|
|
1937
|
+
export type DenyMailboxActionPayload = {
|
|
1938
|
+
readonly reviewRound: PolicyReviewRound;
|
|
1939
|
+
readonly reason: string;
|
|
1940
|
+
};
|
|
1941
|
+
export declare const DenyMailboxActionPayload: Schema.Struct<{
|
|
1942
|
+
readonly reviewRound: Schema.Finite;
|
|
1943
|
+
readonly reason: Schema.String;
|
|
1944
|
+
}>;
|
|
1502
1945
|
export type MailboxActionDecision = {
|
|
1503
|
-
readonly
|
|
1504
|
-
readonly
|
|
1505
|
-
readonly
|
|
1506
|
-
readonly
|
|
1507
|
-
readonly
|
|
1946
|
+
readonly id: PolicyDecisionId;
|
|
1947
|
+
readonly reviewRound: PolicyReviewRound;
|
|
1948
|
+
readonly requirement: PolicyRequirement;
|
|
1949
|
+
readonly decider: PolicyDecider;
|
|
1950
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
1951
|
+
readonly reason: string;
|
|
1952
|
+
readonly scopes: ReadonlyArray<{
|
|
1953
|
+
readonly kind: "organization" | "mailbox" | "agent" | "apiKey";
|
|
1954
|
+
readonly id: string;
|
|
1955
|
+
}>;
|
|
1956
|
+
readonly rule?: {
|
|
1957
|
+
readonly scope: {
|
|
1958
|
+
readonly kind: "organization" | "mailbox" | "agent" | "apiKey";
|
|
1959
|
+
readonly id: string;
|
|
1960
|
+
};
|
|
1961
|
+
readonly index: number;
|
|
1962
|
+
} | null;
|
|
1963
|
+
readonly guard?: string | null;
|
|
1964
|
+
readonly guardReason?: string | null;
|
|
1965
|
+
readonly resolution?: {
|
|
1966
|
+
readonly by: UserId;
|
|
1967
|
+
readonly at: string;
|
|
1968
|
+
readonly as: "approved" | "edited" | "denied" | "alwaysAllowed";
|
|
1969
|
+
readonly diff?: {
|
|
1970
|
+
readonly text?: {
|
|
1971
|
+
readonly before: string | null;
|
|
1972
|
+
readonly after: string | null;
|
|
1973
|
+
} | null;
|
|
1974
|
+
readonly html?: {
|
|
1975
|
+
readonly before: string | null;
|
|
1976
|
+
readonly after: string | null;
|
|
1977
|
+
} | null;
|
|
1978
|
+
} | null;
|
|
1979
|
+
} | null;
|
|
1508
1980
|
};
|
|
1509
1981
|
export declare const MailboxActionDecision: Schema.Struct<{
|
|
1510
|
-
readonly
|
|
1511
|
-
readonly
|
|
1512
|
-
readonly
|
|
1513
|
-
readonly
|
|
1514
|
-
readonly
|
|
1982
|
+
readonly id: Schema.brand<Schema.String, "PolicyDecisionId">;
|
|
1983
|
+
readonly reviewRound: Schema.Finite;
|
|
1984
|
+
readonly requirement: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
1985
|
+
readonly decider: Schema.Union<readonly [Schema.Literal<"rule">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"agent">]>;
|
|
1986
|
+
readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
|
|
1987
|
+
readonly reason: Schema.String;
|
|
1988
|
+
readonly scopes: Schema.$Array<Schema.Struct<{
|
|
1989
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
|
|
1990
|
+
readonly id: Schema.String;
|
|
1991
|
+
}>>;
|
|
1992
|
+
readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1993
|
+
readonly scope: Schema.Struct<{
|
|
1994
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
|
|
1995
|
+
readonly id: Schema.String;
|
|
1996
|
+
}>;
|
|
1997
|
+
readonly index: Schema.Finite;
|
|
1998
|
+
}>, Schema.Null]>>;
|
|
1999
|
+
readonly guard: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2000
|
+
readonly guardReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2001
|
+
readonly resolution: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2002
|
+
readonly by: Schema.brand<Schema.String, "UserId">;
|
|
2003
|
+
readonly at: Schema.String;
|
|
2004
|
+
readonly as: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"edited">, Schema.Literal<"denied">, Schema.Literal<"alwaysAllowed">]>;
|
|
2005
|
+
readonly diff: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2006
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2007
|
+
readonly before: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2008
|
+
readonly after: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2009
|
+
}>, Schema.Null]>>;
|
|
2010
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2011
|
+
readonly before: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2012
|
+
readonly after: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2013
|
+
}>, Schema.Null]>>;
|
|
2014
|
+
}>, Schema.Null]>>;
|
|
2015
|
+
}>, Schema.Null]>>;
|
|
1515
2016
|
}>;
|
|
1516
2017
|
export type MailboxSendOutcome = {
|
|
1517
2018
|
readonly code: string;
|
|
@@ -1554,20 +2055,16 @@ export declare const MailboxSendOutcome: Schema.Struct<{
|
|
|
1554
2055
|
export type CreateMailboxGrantPayload = {
|
|
1555
2056
|
readonly userId: UserId;
|
|
1556
2057
|
readonly role: MailboxGrantRole;
|
|
1557
|
-
readonly sendMode?: MailboxSendMode | null;
|
|
1558
2058
|
};
|
|
1559
2059
|
export declare const CreateMailboxGrantPayload: Schema.Struct<{
|
|
1560
2060
|
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
1561
2061
|
readonly role: Schema.Union<readonly [Schema.Literal<"admin">, Schema.Literal<"collaborator">, Schema.Literal<"viewer">]>;
|
|
1562
|
-
readonly sendMode: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>, Schema.Null]>>;
|
|
1563
2062
|
}>;
|
|
1564
2063
|
export type UpdateMailboxGrantPayload = {
|
|
1565
2064
|
readonly role?: MailboxGrantRole | null;
|
|
1566
|
-
readonly sendMode?: MailboxSendMode | null;
|
|
1567
2065
|
};
|
|
1568
2066
|
export declare const UpdateMailboxGrantPayload: Schema.Struct<{
|
|
1569
2067
|
readonly role: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"admin">, Schema.Literal<"collaborator">, Schema.Literal<"viewer">]>, Schema.Null]>>;
|
|
1570
|
-
readonly sendMode: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>, Schema.Null]>>;
|
|
1571
2068
|
}>;
|
|
1572
2069
|
export type MailboxThreadLabels = {
|
|
1573
2070
|
readonly labels: readonly [MailboxLabelId, ...Array<MailboxLabelId>];
|
|
@@ -1575,30 +2072,6 @@ export type MailboxThreadLabels = {
|
|
|
1575
2072
|
export declare const MailboxThreadLabels: Schema.Struct<{
|
|
1576
2073
|
readonly labels: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxLabelId">]>, readonly [Schema.brand<Schema.String, "MailboxLabelId">]>;
|
|
1577
2074
|
}>;
|
|
1578
|
-
export type CreateMailboxPolicyPayload = {
|
|
1579
|
-
readonly name: string;
|
|
1580
|
-
readonly outcome: MailboxPolicyOutcomeKind;
|
|
1581
|
-
readonly reason?: string | null;
|
|
1582
|
-
readonly enabled?: boolean | null;
|
|
1583
|
-
};
|
|
1584
|
-
export declare const CreateMailboxPolicyPayload: Schema.Struct<{
|
|
1585
|
-
readonly name: Schema.String;
|
|
1586
|
-
readonly outcome: Schema.Union<readonly [Schema.Literal<"requireApproval">, Schema.Literal<"deny">]>;
|
|
1587
|
-
readonly reason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1588
|
-
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1589
|
-
}>;
|
|
1590
|
-
export type UpdateMailboxPolicyPayload = {
|
|
1591
|
-
readonly name?: string | null;
|
|
1592
|
-
readonly outcome?: MailboxPolicyOutcomeKind | null;
|
|
1593
|
-
readonly reason?: string | null;
|
|
1594
|
-
readonly enabled?: boolean | null;
|
|
1595
|
-
};
|
|
1596
|
-
export declare const UpdateMailboxPolicyPayload: Schema.Struct<{
|
|
1597
|
-
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1598
|
-
readonly outcome: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"requireApproval">, Schema.Literal<"deny">]>, Schema.Null]>>;
|
|
1599
|
-
readonly reason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1600
|
-
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1601
|
-
}>;
|
|
1602
2075
|
export type UpdateMailboxThreadPayload = {
|
|
1603
2076
|
readonly folder?: MailboxThreadFolder | null;
|
|
1604
2077
|
readonly priority?: MailboxThreadPriority | null;
|
|
@@ -1617,11 +2090,126 @@ export declare const UpdateMailboxThreadPayload: Schema.Struct<{
|
|
|
1617
2090
|
readonly starred: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1618
2091
|
readonly snoozedUntil: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1619
2092
|
}>;
|
|
1620
|
-
export type
|
|
1621
|
-
readonly
|
|
1622
|
-
readonly
|
|
2093
|
+
export type WhatsAppTemplateIdContent = {
|
|
2094
|
+
readonly templateId: TemplateId;
|
|
2095
|
+
readonly templateData?: WhatsAppTemplateData;
|
|
2096
|
+
readonly flowToken?: string;
|
|
1623
2097
|
};
|
|
1624
|
-
export declare const
|
|
2098
|
+
export declare const WhatsAppTemplateIdContent: Schema.Struct<{
|
|
2099
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
2100
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2101
|
+
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
2102
|
+
}>;
|
|
2103
|
+
export type WhatsAppTemplateSlugContent = {
|
|
2104
|
+
readonly templateSlug: string;
|
|
2105
|
+
readonly templateData?: WhatsAppTemplateData;
|
|
2106
|
+
readonly flowToken?: string;
|
|
2107
|
+
};
|
|
2108
|
+
export declare const WhatsAppTemplateSlugContent: Schema.Struct<{
|
|
2109
|
+
readonly templateSlug: Schema.String;
|
|
2110
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2111
|
+
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
2112
|
+
}>;
|
|
2113
|
+
export type WhatsAppListSection = {
|
|
2114
|
+
readonly title?: string;
|
|
2115
|
+
readonly rows: ReadonlyArray<WhatsAppListRow>;
|
|
2116
|
+
};
|
|
2117
|
+
export declare const WhatsAppListSection: Schema.Struct<{
|
|
2118
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
2119
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
2120
|
+
readonly id: Schema.String;
|
|
2121
|
+
readonly title: Schema.String;
|
|
2122
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
2123
|
+
}>>;
|
|
2124
|
+
}>;
|
|
2125
|
+
export type WhatsAppFlowMessage = {
|
|
2126
|
+
readonly type: "flow";
|
|
2127
|
+
readonly header?: WhatsAppTextHeader;
|
|
2128
|
+
readonly body: string;
|
|
2129
|
+
readonly footer?: string;
|
|
2130
|
+
readonly flowId: WhatsAppFlowId;
|
|
2131
|
+
readonly cta: string;
|
|
2132
|
+
readonly token?: string;
|
|
2133
|
+
readonly action?: "navigate" | "data_exchange";
|
|
2134
|
+
readonly screen?: string;
|
|
2135
|
+
readonly data?: {
|
|
2136
|
+
readonly [x: string]: JsonValue;
|
|
2137
|
+
};
|
|
2138
|
+
};
|
|
2139
|
+
export declare const WhatsAppFlowMessage: Schema.Struct<{
|
|
2140
|
+
readonly type: Schema.Literal<"flow">;
|
|
2141
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
2142
|
+
readonly type: Schema.Literal<"text">;
|
|
2143
|
+
readonly text: Schema.String;
|
|
2144
|
+
}>>;
|
|
2145
|
+
readonly body: Schema.String;
|
|
2146
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
2147
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
2148
|
+
readonly cta: Schema.String;
|
|
2149
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
2150
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
2151
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
2152
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2153
|
+
}>;
|
|
2154
|
+
export type WhatsAppLocationContent = {
|
|
2155
|
+
readonly location: WhatsAppLocation;
|
|
2156
|
+
};
|
|
2157
|
+
export declare const WhatsAppLocationContent: Schema.Struct<{
|
|
2158
|
+
readonly location: Schema.Struct<{
|
|
2159
|
+
readonly latitude: Schema.Finite;
|
|
2160
|
+
readonly longitude: Schema.Finite;
|
|
2161
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
2162
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
2163
|
+
}>;
|
|
2164
|
+
}>;
|
|
2165
|
+
export type WhatsAppContactsContent = {
|
|
2166
|
+
readonly contacts: ReadonlyArray<WhatsAppContactCard>;
|
|
2167
|
+
};
|
|
2168
|
+
export declare const WhatsAppContactsContent: Schema.Struct<{
|
|
2169
|
+
readonly contacts: Schema.$Array<Schema.Struct<{
|
|
2170
|
+
readonly name: Schema.Struct<{
|
|
2171
|
+
readonly formattedName: Schema.String;
|
|
2172
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
2173
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
2174
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
2175
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
2176
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
2177
|
+
}>;
|
|
2178
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2179
|
+
readonly phone: Schema.String;
|
|
2180
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
2181
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
2182
|
+
}>>>;
|
|
2183
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2184
|
+
readonly email: Schema.String;
|
|
2185
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
2186
|
+
}>>>;
|
|
2187
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2188
|
+
readonly url: Schema.String;
|
|
2189
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
2190
|
+
}>>>;
|
|
2191
|
+
readonly org: Schema.optionalKey<Schema.Struct<{
|
|
2192
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
2193
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
2194
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
2195
|
+
}>>;
|
|
2196
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2197
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
2198
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
2199
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
2200
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
2201
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
2202
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
2203
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
2204
|
+
}>>>;
|
|
2205
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
2206
|
+
}>>;
|
|
2207
|
+
}>;
|
|
2208
|
+
export type CreateNamespacePayload = {
|
|
2209
|
+
readonly name: string;
|
|
2210
|
+
readonly metadata?: NamespaceMetadata | null;
|
|
2211
|
+
};
|
|
2212
|
+
export declare const CreateNamespacePayload: Schema.Struct<{
|
|
1625
2213
|
readonly name: Schema.String;
|
|
1626
2214
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1627
2215
|
}>;
|
|
@@ -1630,7 +2218,7 @@ export type AssignNamespaceResourcePayload = {
|
|
|
1630
2218
|
readonly resourceId: string;
|
|
1631
2219
|
};
|
|
1632
2220
|
export declare const AssignNamespaceResourcePayload: Schema.Struct<{
|
|
1633
|
-
readonly type: Schema.Union<readonly [Schema.Literal<"domain">, Schema.Literal<"sender">, Schema.Literal<"contact">, Schema.Literal<"template">]>;
|
|
2221
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"domain">, Schema.Literal<"sender">, Schema.Literal<"whatsappNumber">, Schema.Literal<"smsNumber">, Schema.Literal<"contact">, Schema.Literal<"template">]>;
|
|
1634
2222
|
readonly resourceId: Schema.String;
|
|
1635
2223
|
}>;
|
|
1636
2224
|
export type Operation = {
|
|
@@ -1697,7 +2285,6 @@ export type UpdateTemplatePayload = {
|
|
|
1697
2285
|
readonly fromDefault?: TemplateFromDefault | null;
|
|
1698
2286
|
readonly replyToDefault?: ReadonlyArray<string> | null;
|
|
1699
2287
|
readonly trackingDefault?: TemplateTrackingDefault | null;
|
|
1700
|
-
readonly isActive?: boolean | null;
|
|
1701
2288
|
readonly shared?: boolean | null;
|
|
1702
2289
|
};
|
|
1703
2290
|
};
|
|
@@ -1717,10 +2304,37 @@ export declare const UpdateTemplatePayload: Schema.Struct<{
|
|
|
1717
2304
|
readonly opens: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1718
2305
|
readonly clicks: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1719
2306
|
}>, Schema.Null]>>;
|
|
1720
|
-
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1721
2307
|
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1722
2308
|
}>;
|
|
1723
2309
|
}>;
|
|
2310
|
+
export type PolicyRuleMatch = {
|
|
2311
|
+
readonly kind?: "send" | "reply" | "toolCall" | "handoff" | null;
|
|
2312
|
+
readonly effect?: PolicyEffect | null;
|
|
2313
|
+
readonly channel?: "sms" | "whatsapp" | "email" | null;
|
|
2314
|
+
readonly integration?: string | null;
|
|
2315
|
+
readonly tool?: string | null;
|
|
2316
|
+
readonly subject?: "agent" | "apiKey" | "member" | "extension" | PolicySubject | null;
|
|
2317
|
+
};
|
|
2318
|
+
export declare const PolicyRuleMatch: Schema.Struct<{
|
|
2319
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
2320
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
2321
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
2322
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2323
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2324
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
2325
|
+
readonly kind: Schema.Literal<"agent">;
|
|
2326
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
2327
|
+
}>, Schema.Struct<{
|
|
2328
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
2329
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
2330
|
+
}>, Schema.Struct<{
|
|
2331
|
+
readonly kind: Schema.Literal<"member">;
|
|
2332
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
2333
|
+
}>, Schema.Struct<{
|
|
2334
|
+
readonly kind: Schema.Literal<"extension">;
|
|
2335
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
2336
|
+
}>]>, Schema.Null]>>;
|
|
2337
|
+
}>;
|
|
1724
2338
|
export type WorkingHours = {
|
|
1725
2339
|
readonly timeZone: TimeZone;
|
|
1726
2340
|
readonly ranges: ReadonlyArray<WorkingHoursRange>;
|
|
@@ -1748,8 +2362,11 @@ export declare const ApiKeyAccess: Schema.Union<readonly [Schema.Struct<{
|
|
|
1748
2362
|
readonly resources: Schema.Struct<{
|
|
1749
2363
|
readonly messages: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1750
2364
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
2365
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
2366
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1751
2367
|
readonly domains: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1752
2368
|
readonly phoneNumbers: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
2369
|
+
readonly whatsappAccounts: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1753
2370
|
readonly contacts: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1754
2371
|
readonly conversations: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1755
2372
|
readonly templates: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
@@ -1763,10 +2380,18 @@ export declare const ApiKeyAccess: Schema.Union<readonly [Schema.Struct<{
|
|
|
1763
2380
|
readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1764
2381
|
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">]>]>;
|
|
1765
2382
|
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]>>;
|
|
1766
|
-
readonly sendMode: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>, Schema.Null]>>;
|
|
1767
2383
|
}>, Schema.Null]>>;
|
|
1768
2384
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1769
2385
|
}>]>;
|
|
2386
|
+
export type WhatsAppReactionContent = {
|
|
2387
|
+
readonly reaction: WhatsAppReaction;
|
|
2388
|
+
};
|
|
2389
|
+
export declare const WhatsAppReactionContent: Schema.Struct<{
|
|
2390
|
+
readonly reaction: Schema.Struct<{
|
|
2391
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
2392
|
+
readonly emoji: Schema.String;
|
|
2393
|
+
}>;
|
|
2394
|
+
}>;
|
|
1770
2395
|
export type CreateBrand = {
|
|
1771
2396
|
readonly slug: string;
|
|
1772
2397
|
readonly name: string;
|
|
@@ -1843,7 +2468,7 @@ export declare const EmailAttachments: Schema.Union<readonly [Schema.$Array<Sche
|
|
|
1843
2468
|
readonly contentType: Schema.String;
|
|
1844
2469
|
readonly size: Schema.Finite;
|
|
1845
2470
|
}>>, Schema.Null]>;
|
|
1846
|
-
export type
|
|
2471
|
+
export type CreateMailboxEmailDraftPayload = {
|
|
1847
2472
|
readonly channel?: "email" | null;
|
|
1848
2473
|
readonly endpointId?: MailboxEndpointId | null;
|
|
1849
2474
|
readonly to?: ReadonlyArray<string> | null;
|
|
@@ -1856,7 +2481,7 @@ export type CreateMailboxDraftPayload = {
|
|
|
1856
2481
|
readonly attachments?: ReadonlyArray<EmailAttachment> | null;
|
|
1857
2482
|
readonly inReplyToMessageId?: MessageId | null;
|
|
1858
2483
|
};
|
|
1859
|
-
export declare const
|
|
2484
|
+
export declare const CreateMailboxEmailDraftPayload: Schema.Struct<{
|
|
1860
2485
|
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Null]>>;
|
|
1861
2486
|
readonly endpointId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxEndpointId">, Schema.Null]>>;
|
|
1862
2487
|
readonly to: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1875,18 +2500,24 @@ export declare const CreateMailboxDraftPayload: Schema.Struct<{
|
|
|
1875
2500
|
}>>, Schema.Null]>>;
|
|
1876
2501
|
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
1877
2502
|
}>;
|
|
1878
|
-
export type
|
|
2503
|
+
export type SendMailboxEmailPayload = {
|
|
2504
|
+
readonly channel?: "email" | null;
|
|
1879
2505
|
readonly to: readonly [string, ...Array<string>];
|
|
1880
2506
|
readonly cc?: ReadonlyArray<string> | null;
|
|
1881
2507
|
readonly bcc?: ReadonlyArray<string> | null;
|
|
2508
|
+
readonly replyTo?: ReadonlyArray<string> | null;
|
|
2509
|
+
readonly subject: string;
|
|
1882
2510
|
readonly text?: string | null;
|
|
1883
2511
|
readonly html?: string | null;
|
|
1884
2512
|
readonly attachments?: ReadonlyArray<EmailAttachment> | null;
|
|
1885
2513
|
};
|
|
1886
|
-
export declare const
|
|
2514
|
+
export declare const SendMailboxEmailPayload: Schema.Struct<{
|
|
2515
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Null]>>;
|
|
1887
2516
|
readonly to: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.String]>, readonly [Schema.String]>;
|
|
1888
2517
|
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1889
2518
|
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
2519
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
2520
|
+
readonly subject: Schema.String;
|
|
1890
2521
|
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1891
2522
|
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1892
2523
|
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
@@ -1897,7 +2528,7 @@ export declare const ForwardMailboxMessagePayload: Schema.Struct<{
|
|
|
1897
2528
|
readonly size: Schema.Finite;
|
|
1898
2529
|
}>>, Schema.Null]>>;
|
|
1899
2530
|
}>;
|
|
1900
|
-
export type
|
|
2531
|
+
export type ReplyMailboxEmailPayload = {
|
|
1901
2532
|
readonly channel?: "email" | null;
|
|
1902
2533
|
readonly cc?: ReadonlyArray<string> | null;
|
|
1903
2534
|
readonly bcc?: ReadonlyArray<string> | null;
|
|
@@ -1905,7 +2536,7 @@ export type ReplyMailboxMessagePayload = {
|
|
|
1905
2536
|
readonly html?: string | null;
|
|
1906
2537
|
readonly attachments?: ReadonlyArray<EmailAttachment> | null;
|
|
1907
2538
|
};
|
|
1908
|
-
export declare const
|
|
2539
|
+
export declare const ReplyMailboxEmailPayload: Schema.Struct<{
|
|
1909
2540
|
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Null]>>;
|
|
1910
2541
|
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1911
2542
|
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1919,24 +2550,18 @@ export declare const ReplyMailboxMessagePayload: Schema.Struct<{
|
|
|
1919
2550
|
readonly size: Schema.Finite;
|
|
1920
2551
|
}>>, Schema.Null]>>;
|
|
1921
2552
|
}>;
|
|
1922
|
-
export type
|
|
1923
|
-
readonly channel?: "email" | null;
|
|
2553
|
+
export type ForwardMailboxMessagePayload = {
|
|
1924
2554
|
readonly to: readonly [string, ...Array<string>];
|
|
1925
2555
|
readonly cc?: ReadonlyArray<string> | null;
|
|
1926
2556
|
readonly bcc?: ReadonlyArray<string> | null;
|
|
1927
|
-
readonly replyTo?: ReadonlyArray<string> | null;
|
|
1928
|
-
readonly subject: string;
|
|
1929
2557
|
readonly text?: string | null;
|
|
1930
2558
|
readonly html?: string | null;
|
|
1931
2559
|
readonly attachments?: ReadonlyArray<EmailAttachment> | null;
|
|
1932
2560
|
};
|
|
1933
|
-
export declare const
|
|
1934
|
-
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Null]>>;
|
|
2561
|
+
export declare const ForwardMailboxMessagePayload: Schema.Struct<{
|
|
1935
2562
|
readonly to: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.String]>, readonly [Schema.String]>;
|
|
1936
2563
|
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1937
2564
|
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1938
|
-
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1939
|
-
readonly subject: Schema.String;
|
|
1940
2565
|
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1941
2566
|
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1942
2567
|
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
@@ -1973,13 +2598,111 @@ export declare const UpdateMailboxDraftPayload: Schema.Struct<{
|
|
|
1973
2598
|
readonly size: Schema.Finite;
|
|
1974
2599
|
}>>, Schema.Null]>>;
|
|
1975
2600
|
}>;
|
|
2601
|
+
export type WhatsAppImage = WhatsAppImageLink | WhatsAppImageUpload;
|
|
2602
|
+
export declare const WhatsAppImage: Schema.Union<readonly [Schema.Struct<{
|
|
2603
|
+
readonly type: Schema.Literal<"image">;
|
|
2604
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
2605
|
+
readonly url: Schema.String;
|
|
2606
|
+
}>, Schema.Struct<{
|
|
2607
|
+
readonly type: Schema.Literal<"image">;
|
|
2608
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
2609
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2610
|
+
}>]>;
|
|
2611
|
+
export type WhatsAppVideo = WhatsAppVideoLink | WhatsAppVideoUpload;
|
|
2612
|
+
export declare const WhatsAppVideo: Schema.Union<readonly [Schema.Struct<{
|
|
2613
|
+
readonly type: Schema.Literal<"video">;
|
|
2614
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
2615
|
+
readonly url: Schema.String;
|
|
2616
|
+
}>, Schema.Struct<{
|
|
2617
|
+
readonly type: Schema.Literal<"video">;
|
|
2618
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
2619
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2620
|
+
}>]>;
|
|
2621
|
+
export type WhatsAppAudio = WhatsAppAudioLink | WhatsAppAudioUpload;
|
|
2622
|
+
export declare const WhatsAppAudio: Schema.Union<readonly [Schema.Struct<{
|
|
2623
|
+
readonly type: Schema.Literal<"audio">;
|
|
2624
|
+
readonly url: Schema.String;
|
|
2625
|
+
}>, Schema.Struct<{
|
|
2626
|
+
readonly type: Schema.Literal<"audio">;
|
|
2627
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2628
|
+
}>]>;
|
|
2629
|
+
export type WhatsAppDocument = WhatsAppDocumentLink | WhatsAppDocumentUpload;
|
|
2630
|
+
export declare const WhatsAppDocument: Schema.Union<readonly [Schema.Struct<{
|
|
2631
|
+
readonly type: Schema.Literal<"document">;
|
|
2632
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
2633
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
2634
|
+
readonly url: Schema.String;
|
|
2635
|
+
}>, Schema.Struct<{
|
|
2636
|
+
readonly type: Schema.Literal<"document">;
|
|
2637
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
2638
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
2639
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2640
|
+
}>]>;
|
|
2641
|
+
export type WhatsAppSticker = WhatsAppStickerLink | WhatsAppStickerUpload;
|
|
2642
|
+
export declare const WhatsAppSticker: Schema.Union<readonly [Schema.Struct<{
|
|
2643
|
+
readonly type: Schema.Literal<"sticker">;
|
|
2644
|
+
readonly url: Schema.String;
|
|
2645
|
+
}>, Schema.Struct<{
|
|
2646
|
+
readonly type: Schema.Literal<"sticker">;
|
|
2647
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2648
|
+
}>]>;
|
|
2649
|
+
export type WhatsAppImageHeader = WhatsAppImageHeaderLink | WhatsAppImageHeaderUpload;
|
|
2650
|
+
export declare const WhatsAppImageHeader: Schema.Union<readonly [Schema.Struct<{
|
|
2651
|
+
readonly type: Schema.Literal<"image">;
|
|
2652
|
+
readonly url: Schema.String;
|
|
2653
|
+
}>, Schema.Struct<{
|
|
2654
|
+
readonly type: Schema.Literal<"image">;
|
|
2655
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2656
|
+
}>]>;
|
|
2657
|
+
export type WhatsAppVideoHeader = WhatsAppVideoHeaderLink | WhatsAppVideoHeaderUpload;
|
|
2658
|
+
export declare const WhatsAppVideoHeader: Schema.Union<readonly [Schema.Struct<{
|
|
2659
|
+
readonly type: Schema.Literal<"video">;
|
|
2660
|
+
readonly url: Schema.String;
|
|
2661
|
+
}>, Schema.Struct<{
|
|
2662
|
+
readonly type: Schema.Literal<"video">;
|
|
2663
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2664
|
+
}>]>;
|
|
2665
|
+
export type WhatsAppDocumentHeader = WhatsAppDocumentHeaderLink | WhatsAppDocumentHeaderUpload;
|
|
2666
|
+
export declare const WhatsAppDocumentHeader: Schema.Union<readonly [Schema.Struct<{
|
|
2667
|
+
readonly type: Schema.Literal<"document">;
|
|
2668
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
2669
|
+
readonly url: Schema.String;
|
|
2670
|
+
}>, Schema.Struct<{
|
|
2671
|
+
readonly type: Schema.Literal<"document">;
|
|
2672
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
2673
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2674
|
+
}>]>;
|
|
2675
|
+
export type SmsContent = {
|
|
2676
|
+
readonly text?: string | null;
|
|
2677
|
+
readonly templateId?: TemplateId | null;
|
|
2678
|
+
readonly templateSlug?: string | null;
|
|
2679
|
+
readonly templateData?: SmsTemplateData;
|
|
2680
|
+
};
|
|
2681
|
+
export declare const SmsContent: Schema.Struct<{
|
|
2682
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2683
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2684
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2685
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
2686
|
+
}>;
|
|
2687
|
+
export type SmsDispatchContent = {
|
|
2688
|
+
readonly text?: string | null;
|
|
2689
|
+
readonly templateId?: TemplateId | null;
|
|
2690
|
+
readonly templateSlug?: string | null;
|
|
2691
|
+
readonly templateData?: SmsTemplateData;
|
|
2692
|
+
};
|
|
2693
|
+
export declare const SmsDispatchContent: Schema.Struct<{
|
|
2694
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2695
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2696
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2697
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
2698
|
+
}>;
|
|
1976
2699
|
export type ContactIdentityChannel = {
|
|
1977
|
-
readonly channel: "email";
|
|
2700
|
+
readonly channel: "sms" | "whatsapp" | "email";
|
|
1978
2701
|
readonly reachability: "unknown" | "reachable" | "unreachable";
|
|
1979
2702
|
readonly consent: ContactConsent | null;
|
|
1980
2703
|
};
|
|
1981
2704
|
export declare const ContactIdentityChannel: Schema.Struct<{
|
|
1982
|
-
readonly channel: Schema.Literal<"email">;
|
|
2705
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1983
2706
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
1984
2707
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
1985
2708
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -1988,6 +2711,14 @@ export declare const ContactIdentityChannel: Schema.Struct<{
|
|
|
1988
2711
|
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
1989
2712
|
}>, Schema.Null]>;
|
|
1990
2713
|
}>;
|
|
2714
|
+
export type WhatsAppTemplateBindings = {
|
|
2715
|
+
readonly [x: string]: WhatsAppTemplateBinding;
|
|
2716
|
+
};
|
|
2717
|
+
export declare const WhatsAppTemplateBindings: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2718
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
2719
|
+
}>, Schema.Struct<{
|
|
2720
|
+
readonly customField: Schema.String;
|
|
2721
|
+
}>]>>;
|
|
1991
2722
|
export type CreateEventPayload = {
|
|
1992
2723
|
readonly contact: ContactEventReference;
|
|
1993
2724
|
readonly name: string;
|
|
@@ -2036,6 +2767,22 @@ export declare const EmailBccRecipients: Schema.Union<readonly [Schema.$Array<Sc
|
|
|
2036
2767
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2037
2768
|
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2038
2769
|
}>]>>, Schema.Null]>;
|
|
2770
|
+
export type SmsRecipients = ReadonlyArray<SmsRecipient>;
|
|
2771
|
+
export declare const SmsRecipients: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2772
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
2773
|
+
}>, Schema.Struct<{
|
|
2774
|
+
readonly phone: Schema.String;
|
|
2775
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2776
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2777
|
+
}>]>>;
|
|
2778
|
+
export type WhatsAppRecipients = ReadonlyArray<WhatsAppRecipient>;
|
|
2779
|
+
export declare const WhatsAppRecipients: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2780
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
2781
|
+
}>, Schema.Struct<{
|
|
2782
|
+
readonly phone: Schema.String;
|
|
2783
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2784
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2785
|
+
}>]>>;
|
|
2039
2786
|
export type TopicContactRef = TopicContactById | TopicContactByEmail | TopicContactByPhone;
|
|
2040
2787
|
export declare const TopicContactRef: Schema.Union<readonly [Schema.Struct<{
|
|
2041
2788
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
@@ -2055,7 +2802,7 @@ export declare const MessagePage: Schema.Struct<{
|
|
|
2055
2802
|
readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
|
|
2056
2803
|
readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
|
|
2057
2804
|
}>, Schema.Null]>>;
|
|
2058
|
-
readonly channel: Schema.Literal<"email">;
|
|
2805
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
2059
2806
|
readonly direction: Schema.Union<readonly [Schema.Literal<"outbound">, Schema.Literal<"inbound">]>;
|
|
2060
2807
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"scheduled">, Schema.Literal<"queued">, Schema.Literal<"processing">, Schema.Literal<"sent">, Schema.Literal<"delivered">, Schema.Literal<"read">, Schema.Literal<"failed">, Schema.Literal<"bounced">, Schema.Literal<"complained">]>;
|
|
2061
2808
|
readonly from: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2214,7 +2961,7 @@ export type CreateMailboxPayload = {
|
|
|
2214
2961
|
export declare const CreateMailboxPayload: Schema.Struct<{
|
|
2215
2962
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
2216
2963
|
readonly endpoint: Schema.Struct<{
|
|
2217
|
-
readonly channel: Schema.Literal<"email">;
|
|
2964
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
2218
2965
|
readonly address: Schema.String;
|
|
2219
2966
|
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2220
2967
|
}>;
|
|
@@ -2291,15 +3038,70 @@ export declare const MailboxSendReceipt: Schema.Struct<{
|
|
|
2291
3038
|
}>, Schema.Null]>;
|
|
2292
3039
|
readonly retryEligible: Schema.Boolean;
|
|
2293
3040
|
readonly decision: Schema.Union<readonly [Schema.Struct<{
|
|
2294
|
-
readonly
|
|
2295
|
-
readonly
|
|
2296
|
-
readonly
|
|
2297
|
-
readonly
|
|
2298
|
-
readonly
|
|
3041
|
+
readonly id: Schema.brand<Schema.String, "PolicyDecisionId">;
|
|
3042
|
+
readonly reviewRound: Schema.Finite;
|
|
3043
|
+
readonly requirement: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
3044
|
+
readonly decider: Schema.Union<readonly [Schema.Literal<"rule">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"agent">]>;
|
|
3045
|
+
readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
|
|
3046
|
+
readonly reason: Schema.String;
|
|
3047
|
+
readonly scopes: Schema.$Array<Schema.Struct<{
|
|
3048
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
|
|
3049
|
+
readonly id: Schema.String;
|
|
3050
|
+
}>>;
|
|
3051
|
+
readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3052
|
+
readonly scope: Schema.Struct<{
|
|
3053
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
|
|
3054
|
+
readonly id: Schema.String;
|
|
3055
|
+
}>;
|
|
3056
|
+
readonly index: Schema.Finite;
|
|
3057
|
+
}>, Schema.Null]>>;
|
|
3058
|
+
readonly guard: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3059
|
+
readonly guardReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3060
|
+
readonly resolution: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3061
|
+
readonly by: Schema.brand<Schema.String, "UserId">;
|
|
3062
|
+
readonly at: Schema.String;
|
|
3063
|
+
readonly as: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"edited">, Schema.Literal<"denied">, Schema.Literal<"alwaysAllowed">]>;
|
|
3064
|
+
readonly diff: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3065
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3066
|
+
readonly before: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3067
|
+
readonly after: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3068
|
+
}>, Schema.Null]>>;
|
|
3069
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3070
|
+
readonly before: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3071
|
+
readonly after: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3072
|
+
}>, Schema.Null]>>;
|
|
3073
|
+
}>, Schema.Null]>>;
|
|
3074
|
+
}>, Schema.Null]>>;
|
|
2299
3075
|
}>, Schema.Null]>;
|
|
2300
3076
|
readonly createdAt: Schema.String;
|
|
2301
3077
|
readonly updatedAt: Schema.String;
|
|
2302
3078
|
}>;
|
|
3079
|
+
export type WhatsAppListMessage = {
|
|
3080
|
+
readonly type: "list";
|
|
3081
|
+
readonly header?: WhatsAppTextHeader;
|
|
3082
|
+
readonly body: string;
|
|
3083
|
+
readonly footer?: string;
|
|
3084
|
+
readonly button: string;
|
|
3085
|
+
readonly sections: ReadonlyArray<WhatsAppListSection>;
|
|
3086
|
+
};
|
|
3087
|
+
export declare const WhatsAppListMessage: Schema.Struct<{
|
|
3088
|
+
readonly type: Schema.Literal<"list">;
|
|
3089
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
3090
|
+
readonly type: Schema.Literal<"text">;
|
|
3091
|
+
readonly text: Schema.String;
|
|
3092
|
+
}>>;
|
|
3093
|
+
readonly body: Schema.String;
|
|
3094
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
3095
|
+
readonly button: Schema.String;
|
|
3096
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
3097
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
3098
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
3099
|
+
readonly id: Schema.String;
|
|
3100
|
+
readonly title: Schema.String;
|
|
3101
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
3102
|
+
}>>;
|
|
3103
|
+
}>>;
|
|
3104
|
+
}>;
|
|
2303
3105
|
export type OperationAccepted = {
|
|
2304
3106
|
readonly operation: Operation;
|
|
2305
3107
|
readonly links: {
|
|
@@ -2342,44 +3144,66 @@ export declare const OperationAccepted: Schema.Struct<{
|
|
|
2342
3144
|
}>;
|
|
2343
3145
|
}>;
|
|
2344
3146
|
}>;
|
|
2345
|
-
export type
|
|
2346
|
-
readonly
|
|
2347
|
-
readonly
|
|
2348
|
-
readonly
|
|
2349
|
-
readonly
|
|
2350
|
-
|
|
2351
|
-
readonly
|
|
2352
|
-
readonly
|
|
2353
|
-
readonly
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
readonly
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
readonly
|
|
2361
|
-
readonly
|
|
2362
|
-
|
|
3147
|
+
export type PolicyRule = {
|
|
3148
|
+
readonly match: PolicyRuleMatch;
|
|
3149
|
+
readonly note?: string | null;
|
|
3150
|
+
readonly decide: PolicyRequirement;
|
|
3151
|
+
readonly atLeast?: never | null;
|
|
3152
|
+
} | {
|
|
3153
|
+
readonly match: PolicyRuleMatch;
|
|
3154
|
+
readonly note?: string | null;
|
|
3155
|
+
readonly decide?: never | null;
|
|
3156
|
+
readonly atLeast: PolicyRequirement;
|
|
3157
|
+
};
|
|
3158
|
+
export declare const PolicyRule: Schema.Union<readonly [Schema.Struct<{
|
|
3159
|
+
readonly match: Schema.Struct<{
|
|
3160
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
3161
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
3162
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
3163
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3164
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3165
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
3166
|
+
readonly kind: Schema.Literal<"agent">;
|
|
3167
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
2363
3168
|
}>, Schema.Struct<{
|
|
2364
|
-
readonly kind: Schema.Literal<"
|
|
3169
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
3170
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
2365
3171
|
}>, Schema.Struct<{
|
|
2366
|
-
readonly kind: Schema.Literal<"
|
|
2367
|
-
readonly
|
|
2368
|
-
}
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
readonly
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
3172
|
+
readonly kind: Schema.Literal<"member">;
|
|
3173
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
3174
|
+
}>, Schema.Struct<{
|
|
3175
|
+
readonly kind: Schema.Literal<"extension">;
|
|
3176
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
3177
|
+
}>]>, Schema.Null]>>;
|
|
3178
|
+
}>;
|
|
3179
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3180
|
+
readonly decide: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
3181
|
+
readonly atLeast: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
3182
|
+
}>, Schema.Struct<{
|
|
3183
|
+
readonly match: Schema.Struct<{
|
|
3184
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
3185
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
3186
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
3187
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3188
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3189
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
3190
|
+
readonly kind: Schema.Literal<"agent">;
|
|
3191
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
3192
|
+
}>, Schema.Struct<{
|
|
3193
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
3194
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
3195
|
+
}>, Schema.Struct<{
|
|
3196
|
+
readonly kind: Schema.Literal<"member">;
|
|
3197
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
3198
|
+
}>, Schema.Struct<{
|
|
3199
|
+
readonly kind: Schema.Literal<"extension">;
|
|
3200
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
3201
|
+
}>]>, Schema.Null]>>;
|
|
3202
|
+
}>;
|
|
3203
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3204
|
+
readonly decide: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
3205
|
+
readonly atLeast: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
3206
|
+
}>]>;
|
|
2383
3207
|
export type CampaignEmailInput = {
|
|
2384
3208
|
readonly subject?: string | null;
|
|
2385
3209
|
readonly html?: string | null;
|
|
@@ -2480,85 +3304,277 @@ export declare const EmailContent: Schema.Struct<{
|
|
|
2480
3304
|
}>>;
|
|
2481
3305
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
2482
3306
|
}>;
|
|
2483
|
-
export type
|
|
2484
|
-
|
|
2485
|
-
readonly
|
|
2486
|
-
readonly
|
|
2487
|
-
readonly
|
|
2488
|
-
readonly
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
readonly
|
|
2492
|
-
readonly
|
|
2493
|
-
readonly
|
|
2494
|
-
readonly
|
|
2495
|
-
|
|
2496
|
-
readonly
|
|
2497
|
-
readonly
|
|
2498
|
-
readonly
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
export declare const
|
|
2510
|
-
readonly
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
readonly
|
|
2542
|
-
readonly
|
|
2543
|
-
readonly
|
|
2544
|
-
|
|
2545
|
-
}
|
|
2546
|
-
|
|
2547
|
-
readonly
|
|
2548
|
-
readonly
|
|
2549
|
-
readonly
|
|
2550
|
-
readonly
|
|
2551
|
-
}
|
|
2552
|
-
export
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
readonly
|
|
2561
|
-
|
|
3307
|
+
export type CreateMailboxDraftPayload = CreateMailboxEmailDraftPayload | CreateMailboxChatDraftPayload;
|
|
3308
|
+
export declare const CreateMailboxDraftPayload: Schema.Union<readonly [Schema.Struct<{
|
|
3309
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Null]>>;
|
|
3310
|
+
readonly endpointId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxEndpointId">, Schema.Null]>>;
|
|
3311
|
+
readonly to: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3312
|
+
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3313
|
+
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3314
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3315
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3316
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3317
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3318
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
3319
|
+
readonly filename: Schema.String;
|
|
3320
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3321
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
3322
|
+
readonly contentType: Schema.String;
|
|
3323
|
+
readonly size: Schema.Finite;
|
|
3324
|
+
}>>, Schema.Null]>>;
|
|
3325
|
+
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
3326
|
+
}>, Schema.Struct<{
|
|
3327
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
|
|
3328
|
+
readonly to: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3329
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3330
|
+
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
3331
|
+
}>]>;
|
|
3332
|
+
export type SendMailboxMessagePayload = SendMailboxEmailPayload | SendMailboxChatPayload;
|
|
3333
|
+
export declare const SendMailboxMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
3334
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Null]>>;
|
|
3335
|
+
readonly to: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.String]>, readonly [Schema.String]>;
|
|
3336
|
+
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3337
|
+
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3338
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3339
|
+
readonly subject: Schema.String;
|
|
3340
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3341
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3342
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
3343
|
+
readonly filename: Schema.String;
|
|
3344
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3345
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
3346
|
+
readonly contentType: Schema.String;
|
|
3347
|
+
readonly size: Schema.Finite;
|
|
3348
|
+
}>>, Schema.Null]>>;
|
|
3349
|
+
}>, Schema.Struct<{
|
|
3350
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
|
|
3351
|
+
readonly to: Schema.String;
|
|
3352
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3353
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3354
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3355
|
+
}>]>;
|
|
3356
|
+
export type ReplyMailboxMessagePayload = ReplyMailboxEmailPayload | ReplyMailboxChatPayload;
|
|
3357
|
+
export declare const ReplyMailboxMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
3358
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Null]>>;
|
|
3359
|
+
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3360
|
+
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3361
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3362
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3363
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
3364
|
+
readonly filename: Schema.String;
|
|
3365
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3366
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
3367
|
+
readonly contentType: Schema.String;
|
|
3368
|
+
readonly size: Schema.Finite;
|
|
3369
|
+
}>>, Schema.Null]>>;
|
|
3370
|
+
}>, Schema.Struct<{
|
|
3371
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
|
|
3372
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3373
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3374
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3375
|
+
}>]>;
|
|
3376
|
+
export type WhatsAppOutboundMedia = WhatsAppImage | WhatsAppVideo | WhatsAppAudio | WhatsAppDocument | WhatsAppSticker;
|
|
3377
|
+
export declare const WhatsAppOutboundMedia: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
3378
|
+
readonly type: Schema.Literal<"image">;
|
|
3379
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3380
|
+
readonly url: Schema.String;
|
|
3381
|
+
}>, Schema.Struct<{
|
|
3382
|
+
readonly type: Schema.Literal<"image">;
|
|
3383
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3384
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3385
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3386
|
+
readonly type: Schema.Literal<"video">;
|
|
3387
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3388
|
+
readonly url: Schema.String;
|
|
3389
|
+
}>, Schema.Struct<{
|
|
3390
|
+
readonly type: Schema.Literal<"video">;
|
|
3391
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3392
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3393
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3394
|
+
readonly type: Schema.Literal<"audio">;
|
|
3395
|
+
readonly url: Schema.String;
|
|
3396
|
+
}>, Schema.Struct<{
|
|
3397
|
+
readonly type: Schema.Literal<"audio">;
|
|
3398
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3399
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3400
|
+
readonly type: Schema.Literal<"document">;
|
|
3401
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3402
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3403
|
+
readonly url: Schema.String;
|
|
3404
|
+
}>, Schema.Struct<{
|
|
3405
|
+
readonly type: Schema.Literal<"document">;
|
|
3406
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3407
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3408
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3409
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3410
|
+
readonly type: Schema.Literal<"sticker">;
|
|
3411
|
+
readonly url: Schema.String;
|
|
3412
|
+
}>, Schema.Struct<{
|
|
3413
|
+
readonly type: Schema.Literal<"sticker">;
|
|
3414
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3415
|
+
}>]>]>;
|
|
3416
|
+
export type WhatsAppInteractiveHeader = WhatsAppTextHeader | WhatsAppImageHeader | WhatsAppVideoHeader | WhatsAppDocumentHeader;
|
|
3417
|
+
export declare const WhatsAppInteractiveHeader: Schema.Union<readonly [Schema.Struct<{
|
|
3418
|
+
readonly type: Schema.Literal<"text">;
|
|
3419
|
+
readonly text: Schema.String;
|
|
3420
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
3421
|
+
readonly type: Schema.Literal<"image">;
|
|
3422
|
+
readonly url: Schema.String;
|
|
3423
|
+
}>, Schema.Struct<{
|
|
3424
|
+
readonly type: Schema.Literal<"image">;
|
|
3425
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3426
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3427
|
+
readonly type: Schema.Literal<"video">;
|
|
3428
|
+
readonly url: Schema.String;
|
|
3429
|
+
}>, Schema.Struct<{
|
|
3430
|
+
readonly type: Schema.Literal<"video">;
|
|
3431
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3432
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3433
|
+
readonly type: Schema.Literal<"document">;
|
|
3434
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3435
|
+
readonly url: Schema.String;
|
|
3436
|
+
}>, Schema.Struct<{
|
|
3437
|
+
readonly type: Schema.Literal<"document">;
|
|
3438
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3439
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3440
|
+
}>]>]>;
|
|
3441
|
+
export type SmsCampaignContentInput = {
|
|
3442
|
+
readonly channel: "sms";
|
|
3443
|
+
readonly sms: SmsDispatchContent;
|
|
3444
|
+
readonly conversationId?: CampaignConversationRef;
|
|
3445
|
+
readonly metadata?: CampaignContentMetadata;
|
|
3446
|
+
};
|
|
3447
|
+
export declare const SmsCampaignContentInput: Schema.Struct<{
|
|
3448
|
+
readonly channel: Schema.Literal<"sms">;
|
|
3449
|
+
readonly sms: Schema.Struct<{
|
|
3450
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3451
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3452
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3453
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3454
|
+
}>;
|
|
3455
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3456
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3457
|
+
}>;
|
|
3458
|
+
export type ContactIdentity = {
|
|
3459
|
+
readonly id: ContactIdentityId;
|
|
3460
|
+
readonly type: "email" | "phone";
|
|
3461
|
+
readonly identifier: string;
|
|
3462
|
+
readonly verified: boolean;
|
|
3463
|
+
readonly channels: ReadonlyArray<ContactIdentityChannel>;
|
|
3464
|
+
};
|
|
3465
|
+
export declare const ContactIdentity: Schema.Struct<{
|
|
3466
|
+
readonly id: Schema.brand<Schema.String, "ContactIdentityId">;
|
|
3467
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"phone">]>;
|
|
3468
|
+
readonly identifier: Schema.String;
|
|
3469
|
+
readonly verified: Schema.Boolean;
|
|
3470
|
+
readonly channels: Schema.$Array<Schema.Struct<{
|
|
3471
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
3472
|
+
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
3473
|
+
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
3474
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
3475
|
+
readonly source: Schema.String;
|
|
3476
|
+
readonly capturedAt: Schema.String;
|
|
3477
|
+
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
3478
|
+
}>, Schema.Null]>;
|
|
3479
|
+
}>>;
|
|
3480
|
+
}>;
|
|
3481
|
+
export type WhatsAppTemplateDispatch = {
|
|
3482
|
+
readonly template: TemplateId | string;
|
|
3483
|
+
readonly templateData?: WhatsAppTemplateDispatchData;
|
|
3484
|
+
readonly bindings?: WhatsAppTemplateBindings;
|
|
3485
|
+
readonly businessAccountId?: WhatsAppBusinessAccountId;
|
|
3486
|
+
};
|
|
3487
|
+
export declare const WhatsAppTemplateDispatch: Schema.Struct<{
|
|
3488
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3489
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
3490
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3491
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
3492
|
+
}>, Schema.Struct<{
|
|
3493
|
+
readonly customField: Schema.String;
|
|
3494
|
+
}>]>>>;
|
|
3495
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3496
|
+
}>;
|
|
3497
|
+
export type BatchEventsPayload = {
|
|
3498
|
+
readonly events: readonly [CreateEventPayload, ...Array<CreateEventPayload>];
|
|
3499
|
+
};
|
|
3500
|
+
export declare const BatchEventsPayload: Schema.Struct<{
|
|
3501
|
+
readonly events: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Struct<{
|
|
3502
|
+
readonly contact: Schema.Union<readonly [Schema.Struct<{
|
|
3503
|
+
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
3504
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3505
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3506
|
+
}>, Schema.Struct<{
|
|
3507
|
+
readonly externalId: Schema.String;
|
|
3508
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3509
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3510
|
+
}>, Schema.Struct<{
|
|
3511
|
+
readonly email: Schema.String;
|
|
3512
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3513
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3514
|
+
}>]>;
|
|
3515
|
+
readonly name: Schema.String;
|
|
3516
|
+
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3517
|
+
readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3518
|
+
}>]>, readonly [Schema.Struct<{
|
|
3519
|
+
readonly contact: Schema.Union<readonly [Schema.Struct<{
|
|
3520
|
+
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
3521
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3522
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3523
|
+
}>, Schema.Struct<{
|
|
3524
|
+
readonly externalId: Schema.String;
|
|
3525
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3526
|
+
readonly email: Schema.optionalKey<Schema.Never>;
|
|
3527
|
+
}>, Schema.Struct<{
|
|
3528
|
+
readonly email: Schema.String;
|
|
3529
|
+
readonly id: Schema.optionalKey<Schema.Never>;
|
|
3530
|
+
readonly externalId: Schema.optionalKey<Schema.Never>;
|
|
3531
|
+
}>]>;
|
|
3532
|
+
readonly name: Schema.String;
|
|
3533
|
+
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3534
|
+
readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3535
|
+
}>]>;
|
|
3536
|
+
}>;
|
|
3537
|
+
export type SmsSendMessagePayload = {
|
|
3538
|
+
readonly conversationId?: ConversationId | null;
|
|
3539
|
+
readonly metadata?: MessageMetadata;
|
|
3540
|
+
readonly channel: "sms";
|
|
3541
|
+
readonly to: SmsRecipients;
|
|
3542
|
+
readonly sms: SmsContent;
|
|
3543
|
+
};
|
|
3544
|
+
export declare const SmsSendMessagePayload: Schema.Struct<{
|
|
3545
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3546
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3547
|
+
readonly channel: Schema.Literal<"sms">;
|
|
3548
|
+
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3549
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
3550
|
+
}>, Schema.Struct<{
|
|
3551
|
+
readonly phone: Schema.String;
|
|
3552
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3553
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3554
|
+
}>]>>;
|
|
3555
|
+
readonly sms: Schema.Struct<{
|
|
3556
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3557
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3558
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3559
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3560
|
+
}>;
|
|
3561
|
+
}>;
|
|
3562
|
+
export type TopicSetSubscriptionsPayload = {
|
|
3563
|
+
readonly contacts: ReadonlyArray<TopicContactRef>;
|
|
3564
|
+
readonly channel: "sms" | "whatsapp" | "email";
|
|
3565
|
+
readonly status: "subscribed" | "unsubscribed";
|
|
3566
|
+
readonly source?: string | null;
|
|
3567
|
+
};
|
|
3568
|
+
export declare const TopicSetSubscriptionsPayload: Schema.Struct<{
|
|
3569
|
+
readonly contacts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3570
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
3571
|
+
}>, Schema.Struct<{
|
|
3572
|
+
readonly email: Schema.String;
|
|
3573
|
+
}>, Schema.Struct<{
|
|
3574
|
+
readonly phone: Schema.String;
|
|
3575
|
+
}>]>>;
|
|
3576
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
3577
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"subscribed">, Schema.Literal<"unsubscribed">]>;
|
|
2562
3578
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2563
3579
|
}>;
|
|
2564
3580
|
export type JourneyWaitForEventNode = {
|
|
@@ -2674,11 +3690,40 @@ declare const MailboxSendRefusedError_base: Schema.Class<MailboxSendRefusedError
|
|
|
2674
3690
|
}>, Schema.Null]>;
|
|
2675
3691
|
readonly retryEligible: Schema.Boolean;
|
|
2676
3692
|
readonly decision: Schema.Union<readonly [Schema.Struct<{
|
|
2677
|
-
readonly
|
|
2678
|
-
readonly
|
|
2679
|
-
readonly
|
|
2680
|
-
readonly
|
|
2681
|
-
readonly
|
|
3693
|
+
readonly id: Schema.brand<Schema.String, "PolicyDecisionId">;
|
|
3694
|
+
readonly reviewRound: Schema.Finite;
|
|
3695
|
+
readonly requirement: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
3696
|
+
readonly decider: Schema.Union<readonly [Schema.Literal<"rule">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"agent">]>;
|
|
3697
|
+
readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
|
|
3698
|
+
readonly reason: Schema.String;
|
|
3699
|
+
readonly scopes: Schema.$Array<Schema.Struct<{
|
|
3700
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
|
|
3701
|
+
readonly id: Schema.String;
|
|
3702
|
+
}>>;
|
|
3703
|
+
readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3704
|
+
readonly scope: Schema.Struct<{
|
|
3705
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
|
|
3706
|
+
readonly id: Schema.String;
|
|
3707
|
+
}>;
|
|
3708
|
+
readonly index: Schema.Finite;
|
|
3709
|
+
}>, Schema.Null]>>;
|
|
3710
|
+
readonly guard: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3711
|
+
readonly guardReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3712
|
+
readonly resolution: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3713
|
+
readonly by: Schema.brand<Schema.String, "UserId">;
|
|
3714
|
+
readonly at: Schema.String;
|
|
3715
|
+
readonly as: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"edited">, Schema.Literal<"denied">, Schema.Literal<"alwaysAllowed">]>;
|
|
3716
|
+
readonly diff: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3717
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3718
|
+
readonly before: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3719
|
+
readonly after: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3720
|
+
}>, Schema.Null]>>;
|
|
3721
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3722
|
+
readonly before: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3723
|
+
readonly after: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3724
|
+
}>, Schema.Null]>>;
|
|
3725
|
+
}>, Schema.Null]>>;
|
|
3726
|
+
}>, Schema.Null]>>;
|
|
2682
3727
|
}>, Schema.Null]>;
|
|
2683
3728
|
readonly createdAt: Schema.String;
|
|
2684
3729
|
readonly updatedAt: Schema.String;
|
|
@@ -2742,11 +3787,40 @@ declare const MailboxSendConflictError_base: Schema.Class<MailboxSendConflictErr
|
|
|
2742
3787
|
}>, Schema.Null]>;
|
|
2743
3788
|
readonly retryEligible: Schema.Boolean;
|
|
2744
3789
|
readonly decision: Schema.Union<readonly [Schema.Struct<{
|
|
2745
|
-
readonly
|
|
2746
|
-
readonly
|
|
2747
|
-
readonly
|
|
2748
|
-
readonly
|
|
2749
|
-
readonly
|
|
3790
|
+
readonly id: Schema.brand<Schema.String, "PolicyDecisionId">;
|
|
3791
|
+
readonly reviewRound: Schema.Finite;
|
|
3792
|
+
readonly requirement: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
3793
|
+
readonly decider: Schema.Union<readonly [Schema.Literal<"rule">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"agent">]>;
|
|
3794
|
+
readonly outcome: Schema.Union<readonly [Schema.Literal<"allow">, Schema.Literal<"hold">, Schema.Literal<"refuse">]>;
|
|
3795
|
+
readonly reason: Schema.String;
|
|
3796
|
+
readonly scopes: Schema.$Array<Schema.Struct<{
|
|
3797
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
|
|
3798
|
+
readonly id: Schema.String;
|
|
3799
|
+
}>>;
|
|
3800
|
+
readonly rule: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3801
|
+
readonly scope: Schema.Struct<{
|
|
3802
|
+
readonly kind: Schema.Union<readonly [Schema.Literal<"organization">, Schema.Literal<"mailbox">, Schema.Literal<"agent">, Schema.Literal<"apiKey">]>;
|
|
3803
|
+
readonly id: Schema.String;
|
|
3804
|
+
}>;
|
|
3805
|
+
readonly index: Schema.Finite;
|
|
3806
|
+
}>, Schema.Null]>>;
|
|
3807
|
+
readonly guard: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3808
|
+
readonly guardReason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3809
|
+
readonly resolution: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3810
|
+
readonly by: Schema.brand<Schema.String, "UserId">;
|
|
3811
|
+
readonly at: Schema.String;
|
|
3812
|
+
readonly as: Schema.Union<readonly [Schema.Literal<"approved">, Schema.Literal<"edited">, Schema.Literal<"denied">, Schema.Literal<"alwaysAllowed">]>;
|
|
3813
|
+
readonly diff: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3814
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3815
|
+
readonly before: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3816
|
+
readonly after: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3817
|
+
}>, Schema.Null]>>;
|
|
3818
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3819
|
+
readonly before: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3820
|
+
readonly after: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3821
|
+
}>, Schema.Null]>>;
|
|
3822
|
+
}>, Schema.Null]>>;
|
|
3823
|
+
}>, Schema.Null]>>;
|
|
2750
3824
|
}>, Schema.Null]>;
|
|
2751
3825
|
readonly createdAt: Schema.String;
|
|
2752
3826
|
readonly updatedAt: Schema.String;
|
|
@@ -2754,81 +3828,127 @@ declare const MailboxSendConflictError_base: Schema.Class<MailboxSendConflictErr
|
|
|
2754
3828
|
}>, import("effect/Cause").YieldableError>;
|
|
2755
3829
|
export declare class MailboxSendConflictError extends MailboxSendConflictError_base {
|
|
2756
3830
|
}
|
|
2757
|
-
export type
|
|
2758
|
-
readonly
|
|
2759
|
-
readonly
|
|
2760
|
-
readonly
|
|
2761
|
-
};
|
|
2762
|
-
export declare const
|
|
2763
|
-
readonly
|
|
2764
|
-
readonly
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
readonly
|
|
2771
|
-
readonly
|
|
2772
|
-
readonly kind: Schema.Literal<"
|
|
3831
|
+
export type PolicyConfiguration = {
|
|
3832
|
+
readonly presets: ReadonlyArray<string>;
|
|
3833
|
+
readonly rules: ReadonlyArray<PolicyRule>;
|
|
3834
|
+
readonly instructions?: string | null;
|
|
3835
|
+
};
|
|
3836
|
+
export declare const PolicyConfiguration: Schema.Struct<{
|
|
3837
|
+
readonly presets: Schema.$Array<Schema.String>;
|
|
3838
|
+
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3839
|
+
readonly match: Schema.Struct<{
|
|
3840
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
3841
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
3842
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
3843
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3844
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3845
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
3846
|
+
readonly kind: Schema.Literal<"agent">;
|
|
3847
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
2773
3848
|
}>, Schema.Struct<{
|
|
2774
|
-
readonly kind: Schema.Literal<"
|
|
3849
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
3850
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
2775
3851
|
}>, Schema.Struct<{
|
|
2776
|
-
readonly kind: Schema.Literal<"
|
|
2777
|
-
readonly
|
|
2778
|
-
}>]>;
|
|
2779
|
-
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
2780
|
-
}>>;
|
|
2781
|
-
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
2782
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
2783
|
-
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
2784
|
-
readonly timeZone: Schema.String;
|
|
2785
|
-
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
2786
|
-
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">]>;
|
|
2787
|
-
readonly opens: Schema.String;
|
|
2788
|
-
readonly closes: Schema.String;
|
|
2789
|
-
}>>;
|
|
2790
|
-
}>, Schema.Null]>;
|
|
2791
|
-
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
2792
|
-
}>, Schema.Null]>>;
|
|
2793
|
-
}>;
|
|
2794
|
-
export type ReplaceAgentDraftPayload = {
|
|
2795
|
-
readonly revision: string;
|
|
2796
|
-
readonly definition: AgentDefinition;
|
|
2797
|
-
};
|
|
2798
|
-
export declare const ReplaceAgentDraftPayload: Schema.Struct<{
|
|
2799
|
-
readonly revision: Schema.String;
|
|
2800
|
-
readonly definition: Schema.Struct<{
|
|
2801
|
-
readonly instructions: Schema.String;
|
|
2802
|
-
readonly knowledge: Schema.String;
|
|
2803
|
-
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
2804
|
-
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
2805
|
-
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
2806
|
-
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
2807
|
-
readonly kind: Schema.Literal<"all">;
|
|
3852
|
+
readonly kind: Schema.Literal<"member">;
|
|
3853
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
2808
3854
|
}>, Schema.Struct<{
|
|
2809
|
-
readonly kind: Schema.Literal<"
|
|
3855
|
+
readonly kind: Schema.Literal<"extension">;
|
|
3856
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
3857
|
+
}>]>, Schema.Null]>>;
|
|
3858
|
+
}>;
|
|
3859
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3860
|
+
readonly decide: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
3861
|
+
readonly atLeast: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
3862
|
+
}>, Schema.Struct<{
|
|
3863
|
+
readonly match: Schema.Struct<{
|
|
3864
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
3865
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
3866
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
3867
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3868
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3869
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
3870
|
+
readonly kind: Schema.Literal<"agent">;
|
|
3871
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
2810
3872
|
}>, Schema.Struct<{
|
|
2811
|
-
readonly kind: Schema.Literal<"
|
|
2812
|
-
readonly
|
|
2813
|
-
}
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
readonly
|
|
2831
|
-
readonly
|
|
3873
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
3874
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
3875
|
+
}>, Schema.Struct<{
|
|
3876
|
+
readonly kind: Schema.Literal<"member">;
|
|
3877
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
3878
|
+
}>, Schema.Struct<{
|
|
3879
|
+
readonly kind: Schema.Literal<"extension">;
|
|
3880
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
3881
|
+
}>]>, Schema.Null]>>;
|
|
3882
|
+
}>;
|
|
3883
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3884
|
+
readonly decide: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
3885
|
+
readonly atLeast: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
3886
|
+
}>]>>;
|
|
3887
|
+
readonly instructions: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3888
|
+
}>;
|
|
3889
|
+
export type PolicyReplacement = {
|
|
3890
|
+
readonly presets: ReadonlyArray<string>;
|
|
3891
|
+
readonly rules: ReadonlyArray<PolicyRule>;
|
|
3892
|
+
readonly instructions?: string | null;
|
|
3893
|
+
readonly ifVersion: PolicyVersion;
|
|
3894
|
+
};
|
|
3895
|
+
export declare const PolicyReplacement: Schema.Struct<{
|
|
3896
|
+
readonly presets: Schema.$Array<Schema.String>;
|
|
3897
|
+
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3898
|
+
readonly match: Schema.Struct<{
|
|
3899
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
3900
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
3901
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
3902
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3903
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3904
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
3905
|
+
readonly kind: Schema.Literal<"agent">;
|
|
3906
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
3907
|
+
}>, Schema.Struct<{
|
|
3908
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
3909
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
3910
|
+
}>, Schema.Struct<{
|
|
3911
|
+
readonly kind: Schema.Literal<"member">;
|
|
3912
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
3913
|
+
}>, Schema.Struct<{
|
|
3914
|
+
readonly kind: Schema.Literal<"extension">;
|
|
3915
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
3916
|
+
}>]>, Schema.Null]>>;
|
|
3917
|
+
}>;
|
|
3918
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3919
|
+
readonly decide: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
3920
|
+
readonly atLeast: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
3921
|
+
}>, Schema.Struct<{
|
|
3922
|
+
readonly match: Schema.Struct<{
|
|
3923
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
3924
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
3925
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
3926
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3927
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3928
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
3929
|
+
readonly kind: Schema.Literal<"agent">;
|
|
3930
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
3931
|
+
}>, Schema.Struct<{
|
|
3932
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
3933
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
3934
|
+
}>, Schema.Struct<{
|
|
3935
|
+
readonly kind: Schema.Literal<"member">;
|
|
3936
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
3937
|
+
}>, Schema.Struct<{
|
|
3938
|
+
readonly kind: Schema.Literal<"extension">;
|
|
3939
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
3940
|
+
}>]>, Schema.Null]>>;
|
|
3941
|
+
}>;
|
|
3942
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3943
|
+
readonly decide: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
3944
|
+
readonly atLeast: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
3945
|
+
}>]>>;
|
|
3946
|
+
readonly instructions: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3947
|
+
readonly ifVersion: Schema.Finite;
|
|
3948
|
+
}>;
|
|
3949
|
+
export type EmailCampaignContentInput = {
|
|
3950
|
+
readonly channel: "email";
|
|
3951
|
+
readonly email: CampaignEmailInput;
|
|
2832
3952
|
readonly issue?: {
|
|
2833
3953
|
readonly path: string;
|
|
2834
3954
|
readonly commit: string;
|
|
@@ -2838,7 +3958,7 @@ export type CampaignContentInput = {
|
|
|
2838
3958
|
readonly conversationId?: CampaignConversationRef;
|
|
2839
3959
|
readonly metadata?: CampaignContentMetadata;
|
|
2840
3960
|
};
|
|
2841
|
-
export declare const
|
|
3961
|
+
export declare const EmailCampaignContentInput: Schema.Struct<{
|
|
2842
3962
|
readonly channel: Schema.Literal<"email">;
|
|
2843
3963
|
readonly email: Schema.Struct<{
|
|
2844
3964
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2953,75 +4073,170 @@ export declare const EmailSendMessagePayload: Schema.Struct<{
|
|
|
2953
4073
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
2954
4074
|
}>;
|
|
2955
4075
|
}>;
|
|
2956
|
-
export type
|
|
2957
|
-
readonly
|
|
2958
|
-
readonly metadata?: MessageMetadata;
|
|
2959
|
-
readonly channel: "email";
|
|
2960
|
-
readonly to: EmailRecipients;
|
|
2961
|
-
readonly cc?: EmailCcRecipients;
|
|
2962
|
-
readonly bcc?: EmailBccRecipients;
|
|
2963
|
-
readonly from?: EmailSender;
|
|
2964
|
-
readonly email: EmailContent;
|
|
4076
|
+
export type WhatsAppMediaContent = {
|
|
4077
|
+
readonly media: WhatsAppOutboundMedia;
|
|
2965
4078
|
};
|
|
2966
|
-
export declare const
|
|
2967
|
-
readonly
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
4079
|
+
export declare const WhatsAppMediaContent: Schema.Struct<{
|
|
4080
|
+
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4081
|
+
readonly type: Schema.Literal<"image">;
|
|
4082
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4083
|
+
readonly url: Schema.String;
|
|
2972
4084
|
}>, Schema.Struct<{
|
|
2973
|
-
readonly
|
|
2974
|
-
readonly
|
|
2975
|
-
readonly
|
|
2976
|
-
}>]
|
|
2977
|
-
|
|
2978
|
-
readonly
|
|
4085
|
+
readonly type: Schema.Literal<"image">;
|
|
4086
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4087
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4088
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4089
|
+
readonly type: Schema.Literal<"video">;
|
|
4090
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4091
|
+
readonly url: Schema.String;
|
|
2979
4092
|
}>, Schema.Struct<{
|
|
2980
|
-
readonly
|
|
2981
|
-
readonly
|
|
2982
|
-
readonly
|
|
2983
|
-
}>]
|
|
2984
|
-
|
|
2985
|
-
readonly
|
|
4093
|
+
readonly type: Schema.Literal<"video">;
|
|
4094
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4095
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4096
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4097
|
+
readonly type: Schema.Literal<"audio">;
|
|
4098
|
+
readonly url: Schema.String;
|
|
2986
4099
|
}>, Schema.Struct<{
|
|
2987
|
-
readonly
|
|
2988
|
-
readonly
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
readonly
|
|
2993
|
-
readonly
|
|
2994
|
-
}>, Schema.
|
|
2995
|
-
|
|
2996
|
-
readonly
|
|
2997
|
-
readonly
|
|
2998
|
-
readonly
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
readonly
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
readonly
|
|
4100
|
+
readonly type: Schema.Literal<"audio">;
|
|
4101
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4102
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4103
|
+
readonly type: Schema.Literal<"document">;
|
|
4104
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4105
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4106
|
+
readonly url: Schema.String;
|
|
4107
|
+
}>, Schema.Struct<{
|
|
4108
|
+
readonly type: Schema.Literal<"document">;
|
|
4109
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4110
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4111
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4112
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4113
|
+
readonly type: Schema.Literal<"sticker">;
|
|
4114
|
+
readonly url: Schema.String;
|
|
4115
|
+
}>, Schema.Struct<{
|
|
4116
|
+
readonly type: Schema.Literal<"sticker">;
|
|
4117
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4118
|
+
}>]>]>;
|
|
4119
|
+
}>;
|
|
4120
|
+
export type WhatsAppButtonsMessage = {
|
|
4121
|
+
readonly type: "buttons";
|
|
4122
|
+
readonly header?: WhatsAppInteractiveHeader;
|
|
4123
|
+
readonly body: string;
|
|
4124
|
+
readonly footer?: string;
|
|
4125
|
+
readonly buttons: ReadonlyArray<WhatsAppReplyButton>;
|
|
4126
|
+
};
|
|
4127
|
+
export declare const WhatsAppButtonsMessage: Schema.Struct<{
|
|
4128
|
+
readonly type: Schema.Literal<"buttons">;
|
|
4129
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4130
|
+
readonly type: Schema.Literal<"text">;
|
|
4131
|
+
readonly text: Schema.String;
|
|
4132
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
4133
|
+
readonly type: Schema.Literal<"image">;
|
|
4134
|
+
readonly url: Schema.String;
|
|
4135
|
+
}>, Schema.Struct<{
|
|
4136
|
+
readonly type: Schema.Literal<"image">;
|
|
4137
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4138
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4139
|
+
readonly type: Schema.Literal<"video">;
|
|
4140
|
+
readonly url: Schema.String;
|
|
4141
|
+
}>, Schema.Struct<{
|
|
4142
|
+
readonly type: Schema.Literal<"video">;
|
|
4143
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4144
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4145
|
+
readonly type: Schema.Literal<"document">;
|
|
4146
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4147
|
+
readonly url: Schema.String;
|
|
4148
|
+
}>, Schema.Struct<{
|
|
4149
|
+
readonly type: Schema.Literal<"document">;
|
|
4150
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4151
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4152
|
+
}>]>]>>;
|
|
4153
|
+
readonly body: Schema.String;
|
|
4154
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4155
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
4156
|
+
readonly id: Schema.String;
|
|
4157
|
+
readonly title: Schema.String;
|
|
4158
|
+
}>>;
|
|
4159
|
+
}>;
|
|
4160
|
+
export type WhatsAppCtaUrlMessage = {
|
|
4161
|
+
readonly type: "cta_url";
|
|
4162
|
+
readonly header?: WhatsAppInteractiveHeader;
|
|
4163
|
+
readonly body: string;
|
|
4164
|
+
readonly footer?: string;
|
|
4165
|
+
readonly displayText: string;
|
|
4166
|
+
readonly url: string;
|
|
4167
|
+
};
|
|
4168
|
+
export declare const WhatsAppCtaUrlMessage: Schema.Struct<{
|
|
4169
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
4170
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4171
|
+
readonly type: Schema.Literal<"text">;
|
|
4172
|
+
readonly text: Schema.String;
|
|
4173
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
4174
|
+
readonly type: Schema.Literal<"image">;
|
|
4175
|
+
readonly url: Schema.String;
|
|
4176
|
+
}>, Schema.Struct<{
|
|
4177
|
+
readonly type: Schema.Literal<"image">;
|
|
4178
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4179
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4180
|
+
readonly type: Schema.Literal<"video">;
|
|
4181
|
+
readonly url: Schema.String;
|
|
4182
|
+
}>, Schema.Struct<{
|
|
4183
|
+
readonly type: Schema.Literal<"video">;
|
|
4184
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4185
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4186
|
+
readonly type: Schema.Literal<"document">;
|
|
4187
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4188
|
+
readonly url: Schema.String;
|
|
4189
|
+
}>, Schema.Struct<{
|
|
4190
|
+
readonly type: Schema.Literal<"document">;
|
|
4191
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4192
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4193
|
+
}>]>]>>;
|
|
4194
|
+
readonly body: Schema.String;
|
|
4195
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4196
|
+
readonly displayText: Schema.String;
|
|
4197
|
+
readonly url: Schema.String;
|
|
4198
|
+
}>;
|
|
4199
|
+
export type WhatsAppCampaignContentInput = {
|
|
4200
|
+
readonly channel: "whatsapp";
|
|
4201
|
+
readonly whatsapp: WhatsAppTemplateDispatch;
|
|
4202
|
+
readonly conversationId?: CampaignConversationRef;
|
|
4203
|
+
readonly metadata?: CampaignContentMetadata;
|
|
4204
|
+
};
|
|
4205
|
+
export declare const WhatsAppCampaignContentInput: Schema.Struct<{
|
|
4206
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
4207
|
+
readonly whatsapp: Schema.Struct<{
|
|
4208
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4209
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
4210
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
4211
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
4212
|
+
}>, Schema.Struct<{
|
|
4213
|
+
readonly customField: Schema.String;
|
|
4214
|
+
}>]>>>;
|
|
4215
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4216
|
+
}>;
|
|
4217
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4218
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
4219
|
+
}>;
|
|
4220
|
+
export type WhatsAppJourneySendNode = {
|
|
4221
|
+
readonly type: "send_whatsapp";
|
|
4222
|
+
readonly config: WhatsAppTemplateDispatch;
|
|
4223
|
+
readonly next: readonly [JourneyNextEdge];
|
|
4224
|
+
};
|
|
4225
|
+
export declare const WhatsAppJourneySendNode: Schema.Struct<{
|
|
4226
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
4227
|
+
readonly config: Schema.Struct<{
|
|
4228
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4229
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
4230
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
4231
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
4232
|
+
}>, Schema.Struct<{
|
|
4233
|
+
readonly customField: Schema.String;
|
|
4234
|
+
}>]>>>;
|
|
4235
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3024
4236
|
}>;
|
|
4237
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4238
|
+
readonly nodeId: Schema.String;
|
|
4239
|
+
}>]>;
|
|
3025
4240
|
}>;
|
|
3026
4241
|
export type JourneyCondition = {
|
|
3027
4242
|
readonly match: "all" | "any";
|
|
@@ -3107,110 +4322,378 @@ export declare const JourneyCondition: Schema.Struct<{
|
|
|
3107
4322
|
readonly occurred: Schema.Boolean;
|
|
3108
4323
|
}>]>]>;
|
|
3109
4324
|
}>;
|
|
3110
|
-
export type
|
|
3111
|
-
readonly
|
|
3112
|
-
readonly
|
|
3113
|
-
readonly
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
readonly
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3122
|
-
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
3123
|
-
readonly filename: Schema.String;
|
|
3124
|
-
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3125
|
-
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
3126
|
-
readonly contentType: Schema.String;
|
|
3127
|
-
readonly size: Schema.Finite;
|
|
3128
|
-
}>>, Schema.Null]>>;
|
|
3129
|
-
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
3130
|
-
readonly inputContractId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateInputContractId">>;
|
|
3131
|
-
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3132
|
-
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3133
|
-
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3134
|
-
readonly locale: Schema.optionalKey<Schema.String>;
|
|
3135
|
-
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
3136
|
-
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
3137
|
-
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3138
|
-
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
3139
|
-
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
3140
|
-
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
3141
|
-
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
3142
|
-
}>>;
|
|
3143
|
-
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
3144
|
-
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3145
|
-
}>>;
|
|
3146
|
-
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
3147
|
-
readonly preheader: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3148
|
-
}>;
|
|
3149
|
-
readonly issue: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3150
|
-
readonly path: Schema.String;
|
|
3151
|
-
readonly commit: Schema.String;
|
|
3152
|
-
}>, Schema.Null]>>;
|
|
3153
|
-
readonly from: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3154
|
-
readonly email: Schema.String;
|
|
3155
|
-
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3156
|
-
}>, Schema.Null]>>;
|
|
3157
|
-
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
3158
|
-
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3159
|
-
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3160
|
-
}>;
|
|
3161
|
-
readonly audience: Schema.Struct<{
|
|
3162
|
-
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
3163
|
-
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3164
|
-
readonly excludeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3165
|
-
readonly contactIds: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "ContactId">>, Schema.Null]>>;
|
|
3166
|
-
readonly groupIds: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "ContactGroupId">>, Schema.Null]>>;
|
|
3167
|
-
}>;
|
|
3168
|
-
readonly contactId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ContactId">, Schema.Null]>>;
|
|
3169
|
-
}>;
|
|
3170
|
-
export type JourneyBranchEdge = {
|
|
3171
|
-
readonly nodeId: JourneyNodeId;
|
|
3172
|
-
readonly condition?: JourneyCondition;
|
|
4325
|
+
export type AgentDefinition = {
|
|
4326
|
+
readonly instructions: string;
|
|
4327
|
+
readonly knowledge: string;
|
|
4328
|
+
readonly knowledgeSourceIds?: ReadonlyArray<KnowledgeSourceId>;
|
|
4329
|
+
readonly endpointIds: ReadonlyArray<MailboxEndpointId>;
|
|
4330
|
+
readonly integrations: ReadonlyArray<AgentIntegrationGrant>;
|
|
4331
|
+
readonly policy: PolicyConfiguration;
|
|
4332
|
+
readonly model: AgentModelChoice;
|
|
4333
|
+
readonly reasoning: AgentReasoning;
|
|
4334
|
+
readonly workingHours: WorkingHours | null;
|
|
4335
|
+
readonly takeoverTimeoutMinutes: number;
|
|
3173
4336
|
};
|
|
3174
|
-
export declare const
|
|
3175
|
-
readonly
|
|
3176
|
-
readonly
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
4337
|
+
export declare const AgentDefinition: Schema.Struct<{
|
|
4338
|
+
readonly instructions: Schema.String;
|
|
4339
|
+
readonly knowledge: Schema.String;
|
|
4340
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
4341
|
+
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
4342
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
4343
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
4344
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
4345
|
+
readonly kind: Schema.Literal<"all">;
|
|
3182
4346
|
}>, Schema.Struct<{
|
|
3183
|
-
readonly
|
|
3184
|
-
readonly field: Schema.Union<readonly [Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"status">, Schema.Literal<"profile.firstName">, Schema.Literal<"profile.lastName">, Schema.Literal<"profile.company">, Schema.Literal<"profile.jobTitle">, Schema.Literal<"profile.source">, Schema.Literal<"profile.location.country">, Schema.Literal<"profile.location.state">, Schema.Literal<"profile.location.city">, Schema.Literal<"profile.location.timezone">]>;
|
|
3185
|
-
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
3186
|
-
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
3187
|
-
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
3188
|
-
}>, Schema.Struct<{
|
|
3189
|
-
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
3190
|
-
readonly value: Schema.Finite;
|
|
3191
|
-
}>, Schema.Struct<{
|
|
3192
|
-
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
3193
|
-
readonly value: Schema.String;
|
|
3194
|
-
}>, Schema.Struct<{
|
|
3195
|
-
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
3196
|
-
}>]>;
|
|
4347
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
3197
4348
|
}>, Schema.Struct<{
|
|
3198
|
-
readonly
|
|
3199
|
-
readonly
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
readonly
|
|
3208
|
-
readonly
|
|
3209
|
-
|
|
3210
|
-
readonly
|
|
3211
|
-
|
|
4349
|
+
readonly kind: Schema.Literal<"selected">;
|
|
4350
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
4351
|
+
}>]>;
|
|
4352
|
+
}>>;
|
|
4353
|
+
readonly policy: Schema.Struct<{
|
|
4354
|
+
readonly presets: Schema.$Array<Schema.String>;
|
|
4355
|
+
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4356
|
+
readonly match: Schema.Struct<{
|
|
4357
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
4358
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
4359
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
4360
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4361
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4362
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
4363
|
+
readonly kind: Schema.Literal<"agent">;
|
|
4364
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
4365
|
+
}>, Schema.Struct<{
|
|
4366
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
4367
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
4368
|
+
}>, Schema.Struct<{
|
|
4369
|
+
readonly kind: Schema.Literal<"member">;
|
|
4370
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
4371
|
+
}>, Schema.Struct<{
|
|
4372
|
+
readonly kind: Schema.Literal<"extension">;
|
|
4373
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
4374
|
+
}>]>, Schema.Null]>>;
|
|
4375
|
+
}>;
|
|
4376
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4377
|
+
readonly decide: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
4378
|
+
readonly atLeast: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
3212
4379
|
}>, Schema.Struct<{
|
|
3213
|
-
readonly
|
|
4380
|
+
readonly match: Schema.Struct<{
|
|
4381
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
4382
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
4383
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
4384
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4385
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4386
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
4387
|
+
readonly kind: Schema.Literal<"agent">;
|
|
4388
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
4389
|
+
}>, Schema.Struct<{
|
|
4390
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
4391
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
4392
|
+
}>, Schema.Struct<{
|
|
4393
|
+
readonly kind: Schema.Literal<"member">;
|
|
4394
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
4395
|
+
}>, Schema.Struct<{
|
|
4396
|
+
readonly kind: Schema.Literal<"extension">;
|
|
4397
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
4398
|
+
}>]>, Schema.Null]>>;
|
|
4399
|
+
}>;
|
|
4400
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4401
|
+
readonly decide: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
4402
|
+
readonly atLeast: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
4403
|
+
}>]>>;
|
|
4404
|
+
readonly instructions: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4405
|
+
}>;
|
|
4406
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
4407
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
4408
|
+
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
4409
|
+
readonly timeZone: Schema.String;
|
|
4410
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
4411
|
+
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">]>;
|
|
4412
|
+
readonly opens: Schema.String;
|
|
4413
|
+
readonly closes: Schema.String;
|
|
4414
|
+
}>>;
|
|
4415
|
+
}>, Schema.Null]>;
|
|
4416
|
+
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
4417
|
+
}>;
|
|
4418
|
+
export type InstallExtensionPayload = {
|
|
4419
|
+
readonly extension: string;
|
|
4420
|
+
readonly version?: string | null;
|
|
4421
|
+
readonly mailboxIds?: ReadonlyArray<MailboxId> | null;
|
|
4422
|
+
readonly namespaceId?: NamespaceId | null;
|
|
4423
|
+
readonly permissions?: ReadonlyArray<"read" | "update" | "send" | "quarantine.read"> | null;
|
|
4424
|
+
readonly policy?: PolicyConfiguration | null;
|
|
4425
|
+
readonly webhookUrl?: string | null;
|
|
4426
|
+
};
|
|
4427
|
+
export declare const InstallExtensionPayload: Schema.Struct<{
|
|
4428
|
+
readonly extension: Schema.String;
|
|
4429
|
+
readonly version: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4430
|
+
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>>;
|
|
4431
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
4432
|
+
readonly permissions: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>>, Schema.Null]>>;
|
|
4433
|
+
readonly policy: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4434
|
+
readonly presets: Schema.$Array<Schema.String>;
|
|
4435
|
+
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4436
|
+
readonly match: Schema.Struct<{
|
|
4437
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
4438
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
4439
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
4440
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4441
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4442
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
4443
|
+
readonly kind: Schema.Literal<"agent">;
|
|
4444
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
4445
|
+
}>, Schema.Struct<{
|
|
4446
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
4447
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
4448
|
+
}>, Schema.Struct<{
|
|
4449
|
+
readonly kind: Schema.Literal<"member">;
|
|
4450
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
4451
|
+
}>, Schema.Struct<{
|
|
4452
|
+
readonly kind: Schema.Literal<"extension">;
|
|
4453
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
4454
|
+
}>]>, Schema.Null]>>;
|
|
4455
|
+
}>;
|
|
4456
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4457
|
+
readonly decide: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
4458
|
+
readonly atLeast: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
4459
|
+
}>, Schema.Struct<{
|
|
4460
|
+
readonly match: Schema.Struct<{
|
|
4461
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
4462
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
4463
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
4464
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4465
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4466
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
4467
|
+
readonly kind: Schema.Literal<"agent">;
|
|
4468
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
4469
|
+
}>, Schema.Struct<{
|
|
4470
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
4471
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
4472
|
+
}>, Schema.Struct<{
|
|
4473
|
+
readonly kind: Schema.Literal<"member">;
|
|
4474
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
4475
|
+
}>, Schema.Struct<{
|
|
4476
|
+
readonly kind: Schema.Literal<"extension">;
|
|
4477
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
4478
|
+
}>]>, Schema.Null]>>;
|
|
4479
|
+
}>;
|
|
4480
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4481
|
+
readonly decide: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
4482
|
+
readonly atLeast: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
4483
|
+
}>]>>;
|
|
4484
|
+
readonly instructions: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4485
|
+
}>, Schema.Null]>>;
|
|
4486
|
+
readonly webhookUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4487
|
+
}>;
|
|
4488
|
+
export type WhatsAppInteractive = WhatsAppButtonsMessage | WhatsAppListMessage | WhatsAppCtaUrlMessage | WhatsAppFlowMessage;
|
|
4489
|
+
export declare const WhatsAppInteractive: Schema.Union<readonly [Schema.Struct<{
|
|
4490
|
+
readonly type: Schema.Literal<"buttons">;
|
|
4491
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4492
|
+
readonly type: Schema.Literal<"text">;
|
|
4493
|
+
readonly text: Schema.String;
|
|
4494
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
4495
|
+
readonly type: Schema.Literal<"image">;
|
|
4496
|
+
readonly url: Schema.String;
|
|
4497
|
+
}>, Schema.Struct<{
|
|
4498
|
+
readonly type: Schema.Literal<"image">;
|
|
4499
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4500
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4501
|
+
readonly type: Schema.Literal<"video">;
|
|
4502
|
+
readonly url: Schema.String;
|
|
4503
|
+
}>, Schema.Struct<{
|
|
4504
|
+
readonly type: Schema.Literal<"video">;
|
|
4505
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4506
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4507
|
+
readonly type: Schema.Literal<"document">;
|
|
4508
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4509
|
+
readonly url: Schema.String;
|
|
4510
|
+
}>, Schema.Struct<{
|
|
4511
|
+
readonly type: Schema.Literal<"document">;
|
|
4512
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4513
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4514
|
+
}>]>]>>;
|
|
4515
|
+
readonly body: Schema.String;
|
|
4516
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4517
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
4518
|
+
readonly id: Schema.String;
|
|
4519
|
+
readonly title: Schema.String;
|
|
4520
|
+
}>>;
|
|
4521
|
+
}>, Schema.Struct<{
|
|
4522
|
+
readonly type: Schema.Literal<"list">;
|
|
4523
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
4524
|
+
readonly type: Schema.Literal<"text">;
|
|
4525
|
+
readonly text: Schema.String;
|
|
4526
|
+
}>>;
|
|
4527
|
+
readonly body: Schema.String;
|
|
4528
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4529
|
+
readonly button: Schema.String;
|
|
4530
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
4531
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
4532
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
4533
|
+
readonly id: Schema.String;
|
|
4534
|
+
readonly title: Schema.String;
|
|
4535
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
4536
|
+
}>>;
|
|
4537
|
+
}>>;
|
|
4538
|
+
}>, Schema.Struct<{
|
|
4539
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
4540
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4541
|
+
readonly type: Schema.Literal<"text">;
|
|
4542
|
+
readonly text: Schema.String;
|
|
4543
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
4544
|
+
readonly type: Schema.Literal<"image">;
|
|
4545
|
+
readonly url: Schema.String;
|
|
4546
|
+
}>, Schema.Struct<{
|
|
4547
|
+
readonly type: Schema.Literal<"image">;
|
|
4548
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4549
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4550
|
+
readonly type: Schema.Literal<"video">;
|
|
4551
|
+
readonly url: Schema.String;
|
|
4552
|
+
}>, Schema.Struct<{
|
|
4553
|
+
readonly type: Schema.Literal<"video">;
|
|
4554
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4555
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4556
|
+
readonly type: Schema.Literal<"document">;
|
|
4557
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4558
|
+
readonly url: Schema.String;
|
|
4559
|
+
}>, Schema.Struct<{
|
|
4560
|
+
readonly type: Schema.Literal<"document">;
|
|
4561
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4562
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4563
|
+
}>]>]>>;
|
|
4564
|
+
readonly body: Schema.String;
|
|
4565
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4566
|
+
readonly displayText: Schema.String;
|
|
4567
|
+
readonly url: Schema.String;
|
|
4568
|
+
}>, Schema.Struct<{
|
|
4569
|
+
readonly type: Schema.Literal<"flow">;
|
|
4570
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
4571
|
+
readonly type: Schema.Literal<"text">;
|
|
4572
|
+
readonly text: Schema.String;
|
|
4573
|
+
}>>;
|
|
4574
|
+
readonly body: Schema.String;
|
|
4575
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4576
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
4577
|
+
readonly cta: Schema.String;
|
|
4578
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
4579
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
4580
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
4581
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
4582
|
+
}>]>;
|
|
4583
|
+
export type CampaignContentInput = EmailCampaignContentInput | SmsCampaignContentInput | WhatsAppCampaignContentInput;
|
|
4584
|
+
export declare const CampaignContentInput: Schema.Union<readonly [Schema.Struct<{
|
|
4585
|
+
readonly channel: Schema.Literal<"email">;
|
|
4586
|
+
readonly email: Schema.Struct<{
|
|
4587
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4588
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4589
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4590
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
4591
|
+
readonly filename: Schema.String;
|
|
4592
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4593
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
4594
|
+
readonly contentType: Schema.String;
|
|
4595
|
+
readonly size: Schema.Finite;
|
|
4596
|
+
}>>, Schema.Null]>>;
|
|
4597
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
4598
|
+
readonly inputContractId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateInputContractId">>;
|
|
4599
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
4600
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4601
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
4602
|
+
readonly locale: Schema.optionalKey<Schema.String>;
|
|
4603
|
+
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
4604
|
+
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
4605
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
4606
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
4607
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
4608
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
4609
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
4610
|
+
}>>;
|
|
4611
|
+
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
4612
|
+
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
4613
|
+
}>>;
|
|
4614
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
4615
|
+
readonly preheader: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4616
|
+
}>;
|
|
4617
|
+
readonly issue: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4618
|
+
readonly path: Schema.String;
|
|
4619
|
+
readonly commit: Schema.String;
|
|
4620
|
+
}>, Schema.Null]>>;
|
|
4621
|
+
readonly from: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4622
|
+
readonly email: Schema.String;
|
|
4623
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4624
|
+
}>, Schema.Null]>>;
|
|
4625
|
+
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
4626
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4627
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
4628
|
+
}>, Schema.Struct<{
|
|
4629
|
+
readonly channel: Schema.Literal<"sms">;
|
|
4630
|
+
readonly sms: Schema.Struct<{
|
|
4631
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4632
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
4633
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4634
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
4635
|
+
}>;
|
|
4636
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4637
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
4638
|
+
}>, Schema.Struct<{
|
|
4639
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
4640
|
+
readonly whatsapp: Schema.Struct<{
|
|
4641
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4642
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
4643
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
4644
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
4645
|
+
}>, Schema.Struct<{
|
|
4646
|
+
readonly customField: Schema.String;
|
|
4647
|
+
}>]>>>;
|
|
4648
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4649
|
+
}>;
|
|
4650
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4651
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
4652
|
+
}>]>;
|
|
4653
|
+
export type JourneyBranchEdge = {
|
|
4654
|
+
readonly nodeId: JourneyNodeId;
|
|
4655
|
+
readonly condition?: JourneyCondition;
|
|
4656
|
+
};
|
|
4657
|
+
export declare const JourneyBranchEdge: Schema.Struct<{
|
|
4658
|
+
readonly nodeId: Schema.String;
|
|
4659
|
+
readonly condition: Schema.optionalKey<Schema.Struct<{
|
|
4660
|
+
readonly match: Schema.Union<readonly [Schema.Literal<"all">, Schema.Literal<"any">]>;
|
|
4661
|
+
readonly predicates: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4662
|
+
readonly type: Schema.Literal<"tag">;
|
|
4663
|
+
readonly tag: Schema.String;
|
|
4664
|
+
readonly present: Schema.Boolean;
|
|
4665
|
+
}>, Schema.Struct<{
|
|
4666
|
+
readonly type: Schema.Literal<"property">;
|
|
4667
|
+
readonly field: Schema.Union<readonly [Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"status">, Schema.Literal<"profile.firstName">, Schema.Literal<"profile.lastName">, Schema.Literal<"profile.company">, Schema.Literal<"profile.jobTitle">, Schema.Literal<"profile.source">, Schema.Literal<"profile.location.country">, Schema.Literal<"profile.location.state">, Schema.Literal<"profile.location.city">, Schema.Literal<"profile.location.timezone">]>;
|
|
4668
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
4669
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
4670
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
4671
|
+
}>, Schema.Struct<{
|
|
4672
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
4673
|
+
readonly value: Schema.Finite;
|
|
4674
|
+
}>, Schema.Struct<{
|
|
4675
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
4676
|
+
readonly value: Schema.String;
|
|
4677
|
+
}>, Schema.Struct<{
|
|
4678
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
4679
|
+
}>]>;
|
|
4680
|
+
}>, Schema.Struct<{
|
|
4681
|
+
readonly type: Schema.Literal<"custom_field">;
|
|
4682
|
+
readonly key: Schema.String;
|
|
4683
|
+
readonly comparison: Schema.Union<readonly [Schema.Struct<{
|
|
4684
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"eq">, Schema.Literal<"neq">]>;
|
|
4685
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>;
|
|
4686
|
+
}>, Schema.Struct<{
|
|
4687
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"gt">, Schema.Literal<"gte">, Schema.Literal<"lt">, Schema.Literal<"lte">]>;
|
|
4688
|
+
readonly value: Schema.Finite;
|
|
4689
|
+
}>, Schema.Struct<{
|
|
4690
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"contains">, Schema.Literal<"not_contains">, Schema.Literal<"starts_with">, Schema.Literal<"ends_with">]>;
|
|
4691
|
+
readonly value: Schema.String;
|
|
4692
|
+
}>, Schema.Struct<{
|
|
4693
|
+
readonly operator: Schema.Union<readonly [Schema.Literal<"exists">, Schema.Literal<"not_exists">]>;
|
|
4694
|
+
}>]>;
|
|
4695
|
+
}>, Schema.Struct<{
|
|
4696
|
+
readonly type: Schema.Literal<"event">;
|
|
3214
4697
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3215
4698
|
readonly occurred: Schema.Boolean;
|
|
3216
4699
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
@@ -3254,6 +4737,455 @@ export declare const JourneyBranchEdge: Schema.Struct<{
|
|
|
3254
4737
|
}>]>]>;
|
|
3255
4738
|
}>>;
|
|
3256
4739
|
}>;
|
|
4740
|
+
export type CreateAgentPayload = {
|
|
4741
|
+
readonly name: AgentName;
|
|
4742
|
+
readonly namespaceId?: NamespaceId | null;
|
|
4743
|
+
readonly definition?: AgentDefinition | null;
|
|
4744
|
+
};
|
|
4745
|
+
export declare const CreateAgentPayload: Schema.Struct<{
|
|
4746
|
+
readonly name: Schema.String;
|
|
4747
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
4748
|
+
readonly definition: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4749
|
+
readonly instructions: Schema.String;
|
|
4750
|
+
readonly knowledge: Schema.String;
|
|
4751
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
4752
|
+
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
4753
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
4754
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
4755
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
4756
|
+
readonly kind: Schema.Literal<"all">;
|
|
4757
|
+
}>, Schema.Struct<{
|
|
4758
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
4759
|
+
}>, Schema.Struct<{
|
|
4760
|
+
readonly kind: Schema.Literal<"selected">;
|
|
4761
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
4762
|
+
}>]>;
|
|
4763
|
+
}>>;
|
|
4764
|
+
readonly policy: Schema.Struct<{
|
|
4765
|
+
readonly presets: Schema.$Array<Schema.String>;
|
|
4766
|
+
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4767
|
+
readonly match: Schema.Struct<{
|
|
4768
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
4769
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
4770
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
4771
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4772
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4773
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
4774
|
+
readonly kind: Schema.Literal<"agent">;
|
|
4775
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
4776
|
+
}>, Schema.Struct<{
|
|
4777
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
4778
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
4779
|
+
}>, Schema.Struct<{
|
|
4780
|
+
readonly kind: Schema.Literal<"member">;
|
|
4781
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
4782
|
+
}>, Schema.Struct<{
|
|
4783
|
+
readonly kind: Schema.Literal<"extension">;
|
|
4784
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
4785
|
+
}>]>, Schema.Null]>>;
|
|
4786
|
+
}>;
|
|
4787
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4788
|
+
readonly decide: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
4789
|
+
readonly atLeast: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
4790
|
+
}>, Schema.Struct<{
|
|
4791
|
+
readonly match: Schema.Struct<{
|
|
4792
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
4793
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
4794
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
4795
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4796
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4797
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
4798
|
+
readonly kind: Schema.Literal<"agent">;
|
|
4799
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
4800
|
+
}>, Schema.Struct<{
|
|
4801
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
4802
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
4803
|
+
}>, Schema.Struct<{
|
|
4804
|
+
readonly kind: Schema.Literal<"member">;
|
|
4805
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
4806
|
+
}>, Schema.Struct<{
|
|
4807
|
+
readonly kind: Schema.Literal<"extension">;
|
|
4808
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
4809
|
+
}>]>, Schema.Null]>>;
|
|
4810
|
+
}>;
|
|
4811
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4812
|
+
readonly decide: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
4813
|
+
readonly atLeast: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
4814
|
+
}>]>>;
|
|
4815
|
+
readonly instructions: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4816
|
+
}>;
|
|
4817
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
4818
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
4819
|
+
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
4820
|
+
readonly timeZone: Schema.String;
|
|
4821
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
4822
|
+
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">]>;
|
|
4823
|
+
readonly opens: Schema.String;
|
|
4824
|
+
readonly closes: Schema.String;
|
|
4825
|
+
}>>;
|
|
4826
|
+
}>, Schema.Null]>;
|
|
4827
|
+
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
4828
|
+
}>, Schema.Null]>>;
|
|
4829
|
+
}>;
|
|
4830
|
+
export type ReplaceAgentDraftPayload = {
|
|
4831
|
+
readonly revision: string;
|
|
4832
|
+
readonly definition: AgentDefinition;
|
|
4833
|
+
};
|
|
4834
|
+
export declare const ReplaceAgentDraftPayload: Schema.Struct<{
|
|
4835
|
+
readonly revision: Schema.String;
|
|
4836
|
+
readonly definition: Schema.Struct<{
|
|
4837
|
+
readonly instructions: Schema.String;
|
|
4838
|
+
readonly knowledge: Schema.String;
|
|
4839
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
4840
|
+
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
4841
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
4842
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
4843
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
4844
|
+
readonly kind: Schema.Literal<"all">;
|
|
4845
|
+
}>, Schema.Struct<{
|
|
4846
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
4847
|
+
}>, Schema.Struct<{
|
|
4848
|
+
readonly kind: Schema.Literal<"selected">;
|
|
4849
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
4850
|
+
}>]>;
|
|
4851
|
+
}>>;
|
|
4852
|
+
readonly policy: Schema.Struct<{
|
|
4853
|
+
readonly presets: Schema.$Array<Schema.String>;
|
|
4854
|
+
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4855
|
+
readonly match: Schema.Struct<{
|
|
4856
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
4857
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
4858
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
4859
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4860
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4861
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
4862
|
+
readonly kind: Schema.Literal<"agent">;
|
|
4863
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
4864
|
+
}>, Schema.Struct<{
|
|
4865
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
4866
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
4867
|
+
}>, Schema.Struct<{
|
|
4868
|
+
readonly kind: Schema.Literal<"member">;
|
|
4869
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
4870
|
+
}>, Schema.Struct<{
|
|
4871
|
+
readonly kind: Schema.Literal<"extension">;
|
|
4872
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
4873
|
+
}>]>, Schema.Null]>>;
|
|
4874
|
+
}>;
|
|
4875
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4876
|
+
readonly decide: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
4877
|
+
readonly atLeast: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
4878
|
+
}>, Schema.Struct<{
|
|
4879
|
+
readonly match: Schema.Struct<{
|
|
4880
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
4881
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
4882
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
4883
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4884
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4885
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
4886
|
+
readonly kind: Schema.Literal<"agent">;
|
|
4887
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
4888
|
+
}>, Schema.Struct<{
|
|
4889
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
4890
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
4891
|
+
}>, Schema.Struct<{
|
|
4892
|
+
readonly kind: Schema.Literal<"member">;
|
|
4893
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
4894
|
+
}>, Schema.Struct<{
|
|
4895
|
+
readonly kind: Schema.Literal<"extension">;
|
|
4896
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
4897
|
+
}>]>, Schema.Null]>>;
|
|
4898
|
+
}>;
|
|
4899
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4900
|
+
readonly decide: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
4901
|
+
readonly atLeast: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
4902
|
+
}>]>>;
|
|
4903
|
+
readonly instructions: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4904
|
+
}>;
|
|
4905
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
4906
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
4907
|
+
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
4908
|
+
readonly timeZone: Schema.String;
|
|
4909
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
4910
|
+
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">]>;
|
|
4911
|
+
readonly opens: Schema.String;
|
|
4912
|
+
readonly closes: Schema.String;
|
|
4913
|
+
}>>;
|
|
4914
|
+
}>, Schema.Null]>;
|
|
4915
|
+
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
4916
|
+
}>;
|
|
4917
|
+
}>;
|
|
4918
|
+
export type RunAgentTestPayload = {
|
|
4919
|
+
readonly name: AgentName;
|
|
4920
|
+
readonly definition: AgentDefinition;
|
|
4921
|
+
};
|
|
4922
|
+
export declare const RunAgentTestPayload: Schema.Struct<{
|
|
4923
|
+
readonly name: Schema.String;
|
|
4924
|
+
readonly definition: Schema.Struct<{
|
|
4925
|
+
readonly instructions: Schema.String;
|
|
4926
|
+
readonly knowledge: Schema.String;
|
|
4927
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
4928
|
+
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
4929
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
4930
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
4931
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
4932
|
+
readonly kind: Schema.Literal<"all">;
|
|
4933
|
+
}>, Schema.Struct<{
|
|
4934
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
4935
|
+
}>, Schema.Struct<{
|
|
4936
|
+
readonly kind: Schema.Literal<"selected">;
|
|
4937
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
4938
|
+
}>]>;
|
|
4939
|
+
}>>;
|
|
4940
|
+
readonly policy: Schema.Struct<{
|
|
4941
|
+
readonly presets: Schema.$Array<Schema.String>;
|
|
4942
|
+
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4943
|
+
readonly match: Schema.Struct<{
|
|
4944
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
4945
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
4946
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
4947
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4948
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4949
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
4950
|
+
readonly kind: Schema.Literal<"agent">;
|
|
4951
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
4952
|
+
}>, Schema.Struct<{
|
|
4953
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
4954
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
4955
|
+
}>, Schema.Struct<{
|
|
4956
|
+
readonly kind: Schema.Literal<"member">;
|
|
4957
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
4958
|
+
}>, Schema.Struct<{
|
|
4959
|
+
readonly kind: Schema.Literal<"extension">;
|
|
4960
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
4961
|
+
}>]>, Schema.Null]>>;
|
|
4962
|
+
}>;
|
|
4963
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4964
|
+
readonly decide: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
4965
|
+
readonly atLeast: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
4966
|
+
}>, Schema.Struct<{
|
|
4967
|
+
readonly match: Schema.Struct<{
|
|
4968
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
4969
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
4970
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
4971
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4972
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4973
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"agent">, Schema.Literal<"apiKey">, Schema.Literal<"member">, Schema.Literal<"extension">]>, Schema.Union<readonly [Schema.Struct<{
|
|
4974
|
+
readonly kind: Schema.Literal<"agent">;
|
|
4975
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
4976
|
+
}>, Schema.Struct<{
|
|
4977
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
4978
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
4979
|
+
}>, Schema.Struct<{
|
|
4980
|
+
readonly kind: Schema.Literal<"member">;
|
|
4981
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
4982
|
+
}>, Schema.Struct<{
|
|
4983
|
+
readonly kind: Schema.Literal<"extension">;
|
|
4984
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
4985
|
+
}>]>, Schema.Null]>>;
|
|
4986
|
+
}>;
|
|
4987
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4988
|
+
readonly decide: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
4989
|
+
readonly atLeast: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
4990
|
+
}>]>>;
|
|
4991
|
+
readonly instructions: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4992
|
+
}>;
|
|
4993
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
4994
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
4995
|
+
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
4996
|
+
readonly timeZone: Schema.String;
|
|
4997
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
4998
|
+
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">]>;
|
|
4999
|
+
readonly opens: Schema.String;
|
|
5000
|
+
readonly closes: Schema.String;
|
|
5001
|
+
}>>;
|
|
5002
|
+
}>, Schema.Null]>;
|
|
5003
|
+
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
5004
|
+
}>;
|
|
5005
|
+
}>;
|
|
5006
|
+
export type WhatsAppInteractiveContent = {
|
|
5007
|
+
readonly interactive: WhatsAppInteractive;
|
|
5008
|
+
};
|
|
5009
|
+
export declare const WhatsAppInteractiveContent: Schema.Struct<{
|
|
5010
|
+
readonly interactive: Schema.Union<readonly [Schema.Struct<{
|
|
5011
|
+
readonly type: Schema.Literal<"buttons">;
|
|
5012
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5013
|
+
readonly type: Schema.Literal<"text">;
|
|
5014
|
+
readonly text: Schema.String;
|
|
5015
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
5016
|
+
readonly type: Schema.Literal<"image">;
|
|
5017
|
+
readonly url: Schema.String;
|
|
5018
|
+
}>, Schema.Struct<{
|
|
5019
|
+
readonly type: Schema.Literal<"image">;
|
|
5020
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5021
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5022
|
+
readonly type: Schema.Literal<"video">;
|
|
5023
|
+
readonly url: Schema.String;
|
|
5024
|
+
}>, Schema.Struct<{
|
|
5025
|
+
readonly type: Schema.Literal<"video">;
|
|
5026
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5027
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5028
|
+
readonly type: Schema.Literal<"document">;
|
|
5029
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5030
|
+
readonly url: Schema.String;
|
|
5031
|
+
}>, Schema.Struct<{
|
|
5032
|
+
readonly type: Schema.Literal<"document">;
|
|
5033
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5034
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5035
|
+
}>]>]>>;
|
|
5036
|
+
readonly body: Schema.String;
|
|
5037
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5038
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
5039
|
+
readonly id: Schema.String;
|
|
5040
|
+
readonly title: Schema.String;
|
|
5041
|
+
}>>;
|
|
5042
|
+
}>, Schema.Struct<{
|
|
5043
|
+
readonly type: Schema.Literal<"list">;
|
|
5044
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
5045
|
+
readonly type: Schema.Literal<"text">;
|
|
5046
|
+
readonly text: Schema.String;
|
|
5047
|
+
}>>;
|
|
5048
|
+
readonly body: Schema.String;
|
|
5049
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5050
|
+
readonly button: Schema.String;
|
|
5051
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
5052
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5053
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
5054
|
+
readonly id: Schema.String;
|
|
5055
|
+
readonly title: Schema.String;
|
|
5056
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
5057
|
+
}>>;
|
|
5058
|
+
}>>;
|
|
5059
|
+
}>, Schema.Struct<{
|
|
5060
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
5061
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5062
|
+
readonly type: Schema.Literal<"text">;
|
|
5063
|
+
readonly text: Schema.String;
|
|
5064
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
5065
|
+
readonly type: Schema.Literal<"image">;
|
|
5066
|
+
readonly url: Schema.String;
|
|
5067
|
+
}>, Schema.Struct<{
|
|
5068
|
+
readonly type: Schema.Literal<"image">;
|
|
5069
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5070
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5071
|
+
readonly type: Schema.Literal<"video">;
|
|
5072
|
+
readonly url: Schema.String;
|
|
5073
|
+
}>, Schema.Struct<{
|
|
5074
|
+
readonly type: Schema.Literal<"video">;
|
|
5075
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5076
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5077
|
+
readonly type: Schema.Literal<"document">;
|
|
5078
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5079
|
+
readonly url: Schema.String;
|
|
5080
|
+
}>, Schema.Struct<{
|
|
5081
|
+
readonly type: Schema.Literal<"document">;
|
|
5082
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5083
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5084
|
+
}>]>]>>;
|
|
5085
|
+
readonly body: Schema.String;
|
|
5086
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5087
|
+
readonly displayText: Schema.String;
|
|
5088
|
+
readonly url: Schema.String;
|
|
5089
|
+
}>, Schema.Struct<{
|
|
5090
|
+
readonly type: Schema.Literal<"flow">;
|
|
5091
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
5092
|
+
readonly type: Schema.Literal<"text">;
|
|
5093
|
+
readonly text: Schema.String;
|
|
5094
|
+
}>>;
|
|
5095
|
+
readonly body: Schema.String;
|
|
5096
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5097
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
5098
|
+
readonly cta: Schema.String;
|
|
5099
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
5100
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
5101
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
5102
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5103
|
+
}>]>;
|
|
5104
|
+
}>;
|
|
5105
|
+
export type CampaignComposition = {
|
|
5106
|
+
readonly content: CampaignContentInput;
|
|
5107
|
+
readonly audience: CampaignAudience;
|
|
5108
|
+
readonly contactId?: ContactId | null;
|
|
5109
|
+
};
|
|
5110
|
+
export declare const CampaignComposition: Schema.Struct<{
|
|
5111
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
5112
|
+
readonly channel: Schema.Literal<"email">;
|
|
5113
|
+
readonly email: Schema.Struct<{
|
|
5114
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5115
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5116
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5117
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
5118
|
+
readonly filename: Schema.String;
|
|
5119
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5120
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
5121
|
+
readonly contentType: Schema.String;
|
|
5122
|
+
readonly size: Schema.Finite;
|
|
5123
|
+
}>>, Schema.Null]>>;
|
|
5124
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
5125
|
+
readonly inputContractId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateInputContractId">>;
|
|
5126
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
5127
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5128
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
5129
|
+
readonly locale: Schema.optionalKey<Schema.String>;
|
|
5130
|
+
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
5131
|
+
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
5132
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
5133
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
5134
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
5135
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
5136
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
5137
|
+
}>>;
|
|
5138
|
+
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
5139
|
+
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
5140
|
+
}>>;
|
|
5141
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
5142
|
+
readonly preheader: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5143
|
+
}>;
|
|
5144
|
+
readonly issue: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5145
|
+
readonly path: Schema.String;
|
|
5146
|
+
readonly commit: Schema.String;
|
|
5147
|
+
}>, Schema.Null]>>;
|
|
5148
|
+
readonly from: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5149
|
+
readonly email: Schema.String;
|
|
5150
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5151
|
+
}>, Schema.Null]>>;
|
|
5152
|
+
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
5153
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5154
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
5155
|
+
}>, Schema.Struct<{
|
|
5156
|
+
readonly channel: Schema.Literal<"sms">;
|
|
5157
|
+
readonly sms: Schema.Struct<{
|
|
5158
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5159
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
5160
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5161
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
5162
|
+
}>;
|
|
5163
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5164
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
5165
|
+
}>, Schema.Struct<{
|
|
5166
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
5167
|
+
readonly whatsapp: Schema.Struct<{
|
|
5168
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5169
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5170
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
5171
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
5172
|
+
}>, Schema.Struct<{
|
|
5173
|
+
readonly customField: Schema.String;
|
|
5174
|
+
}>]>>>;
|
|
5175
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5176
|
+
}>;
|
|
5177
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5178
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
5179
|
+
}>]>;
|
|
5180
|
+
readonly audience: Schema.Struct<{
|
|
5181
|
+
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
5182
|
+
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
5183
|
+
readonly excludeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
5184
|
+
readonly contactIds: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "ContactId">>, Schema.Null]>>;
|
|
5185
|
+
readonly groupIds: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "ContactGroupId">>, Schema.Null]>>;
|
|
5186
|
+
}>;
|
|
5187
|
+
readonly contactId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ContactId">, Schema.Null]>>;
|
|
5188
|
+
}>;
|
|
3257
5189
|
export type JourneyBranchNode = {
|
|
3258
5190
|
readonly type: "branch";
|
|
3259
5191
|
readonly config: JourneyEmptyConfig;
|
|
@@ -3345,8 +5277,206 @@ export declare const JourneyBranchNode: Schema.Struct<{
|
|
|
3345
5277
|
}>]>]>;
|
|
3346
5278
|
}>>;
|
|
3347
5279
|
}>>;
|
|
3348
|
-
}>;
|
|
3349
|
-
export type
|
|
5280
|
+
}>;
|
|
5281
|
+
export type WhatsAppContent = WhatsAppTextContent | WhatsAppTemplateIdContent | WhatsAppTemplateSlugContent | WhatsAppMediaContent | WhatsAppInteractiveContent | WhatsAppReactionContent | WhatsAppLocationContent | WhatsAppContactsContent;
|
|
5282
|
+
export declare const WhatsAppContent: Schema.Union<readonly [Schema.Struct<{
|
|
5283
|
+
readonly text: Schema.String;
|
|
5284
|
+
}>, Schema.Struct<{
|
|
5285
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
5286
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5287
|
+
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
5288
|
+
}>, Schema.Struct<{
|
|
5289
|
+
readonly templateSlug: Schema.String;
|
|
5290
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5291
|
+
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
5292
|
+
}>, Schema.Struct<{
|
|
5293
|
+
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5294
|
+
readonly type: Schema.Literal<"image">;
|
|
5295
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5296
|
+
readonly url: Schema.String;
|
|
5297
|
+
}>, Schema.Struct<{
|
|
5298
|
+
readonly type: Schema.Literal<"image">;
|
|
5299
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5300
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5301
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5302
|
+
readonly type: Schema.Literal<"video">;
|
|
5303
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5304
|
+
readonly url: Schema.String;
|
|
5305
|
+
}>, Schema.Struct<{
|
|
5306
|
+
readonly type: Schema.Literal<"video">;
|
|
5307
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5308
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5309
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5310
|
+
readonly type: Schema.Literal<"audio">;
|
|
5311
|
+
readonly url: Schema.String;
|
|
5312
|
+
}>, Schema.Struct<{
|
|
5313
|
+
readonly type: Schema.Literal<"audio">;
|
|
5314
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5315
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5316
|
+
readonly type: Schema.Literal<"document">;
|
|
5317
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5318
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5319
|
+
readonly url: Schema.String;
|
|
5320
|
+
}>, Schema.Struct<{
|
|
5321
|
+
readonly type: Schema.Literal<"document">;
|
|
5322
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5323
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5324
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5325
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5326
|
+
readonly type: Schema.Literal<"sticker">;
|
|
5327
|
+
readonly url: Schema.String;
|
|
5328
|
+
}>, Schema.Struct<{
|
|
5329
|
+
readonly type: Schema.Literal<"sticker">;
|
|
5330
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5331
|
+
}>]>]>;
|
|
5332
|
+
}>, Schema.Struct<{
|
|
5333
|
+
readonly interactive: Schema.Union<readonly [Schema.Struct<{
|
|
5334
|
+
readonly type: Schema.Literal<"buttons">;
|
|
5335
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5336
|
+
readonly type: Schema.Literal<"text">;
|
|
5337
|
+
readonly text: Schema.String;
|
|
5338
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
5339
|
+
readonly type: Schema.Literal<"image">;
|
|
5340
|
+
readonly url: Schema.String;
|
|
5341
|
+
}>, Schema.Struct<{
|
|
5342
|
+
readonly type: Schema.Literal<"image">;
|
|
5343
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5344
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5345
|
+
readonly type: Schema.Literal<"video">;
|
|
5346
|
+
readonly url: Schema.String;
|
|
5347
|
+
}>, Schema.Struct<{
|
|
5348
|
+
readonly type: Schema.Literal<"video">;
|
|
5349
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5350
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5351
|
+
readonly type: Schema.Literal<"document">;
|
|
5352
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5353
|
+
readonly url: Schema.String;
|
|
5354
|
+
}>, Schema.Struct<{
|
|
5355
|
+
readonly type: Schema.Literal<"document">;
|
|
5356
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5357
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5358
|
+
}>]>]>>;
|
|
5359
|
+
readonly body: Schema.String;
|
|
5360
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5361
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
5362
|
+
readonly id: Schema.String;
|
|
5363
|
+
readonly title: Schema.String;
|
|
5364
|
+
}>>;
|
|
5365
|
+
}>, Schema.Struct<{
|
|
5366
|
+
readonly type: Schema.Literal<"list">;
|
|
5367
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
5368
|
+
readonly type: Schema.Literal<"text">;
|
|
5369
|
+
readonly text: Schema.String;
|
|
5370
|
+
}>>;
|
|
5371
|
+
readonly body: Schema.String;
|
|
5372
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5373
|
+
readonly button: Schema.String;
|
|
5374
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
5375
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5376
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
5377
|
+
readonly id: Schema.String;
|
|
5378
|
+
readonly title: Schema.String;
|
|
5379
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
5380
|
+
}>>;
|
|
5381
|
+
}>>;
|
|
5382
|
+
}>, Schema.Struct<{
|
|
5383
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
5384
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5385
|
+
readonly type: Schema.Literal<"text">;
|
|
5386
|
+
readonly text: Schema.String;
|
|
5387
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
5388
|
+
readonly type: Schema.Literal<"image">;
|
|
5389
|
+
readonly url: Schema.String;
|
|
5390
|
+
}>, Schema.Struct<{
|
|
5391
|
+
readonly type: Schema.Literal<"image">;
|
|
5392
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5393
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5394
|
+
readonly type: Schema.Literal<"video">;
|
|
5395
|
+
readonly url: Schema.String;
|
|
5396
|
+
}>, Schema.Struct<{
|
|
5397
|
+
readonly type: Schema.Literal<"video">;
|
|
5398
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5399
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5400
|
+
readonly type: Schema.Literal<"document">;
|
|
5401
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5402
|
+
readonly url: Schema.String;
|
|
5403
|
+
}>, Schema.Struct<{
|
|
5404
|
+
readonly type: Schema.Literal<"document">;
|
|
5405
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5406
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5407
|
+
}>]>]>>;
|
|
5408
|
+
readonly body: Schema.String;
|
|
5409
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5410
|
+
readonly displayText: Schema.String;
|
|
5411
|
+
readonly url: Schema.String;
|
|
5412
|
+
}>, Schema.Struct<{
|
|
5413
|
+
readonly type: Schema.Literal<"flow">;
|
|
5414
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
5415
|
+
readonly type: Schema.Literal<"text">;
|
|
5416
|
+
readonly text: Schema.String;
|
|
5417
|
+
}>>;
|
|
5418
|
+
readonly body: Schema.String;
|
|
5419
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5420
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
5421
|
+
readonly cta: Schema.String;
|
|
5422
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
5423
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
5424
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
5425
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5426
|
+
}>]>;
|
|
5427
|
+
}>, Schema.Struct<{
|
|
5428
|
+
readonly reaction: Schema.Struct<{
|
|
5429
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
5430
|
+
readonly emoji: Schema.String;
|
|
5431
|
+
}>;
|
|
5432
|
+
}>, Schema.Struct<{
|
|
5433
|
+
readonly location: Schema.Struct<{
|
|
5434
|
+
readonly latitude: Schema.Finite;
|
|
5435
|
+
readonly longitude: Schema.Finite;
|
|
5436
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
5437
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
5438
|
+
}>;
|
|
5439
|
+
}>, Schema.Struct<{
|
|
5440
|
+
readonly contacts: Schema.$Array<Schema.Struct<{
|
|
5441
|
+
readonly name: Schema.Struct<{
|
|
5442
|
+
readonly formattedName: Schema.String;
|
|
5443
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
5444
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
5445
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
5446
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
5447
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
5448
|
+
}>;
|
|
5449
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5450
|
+
readonly phone: Schema.String;
|
|
5451
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5452
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
5453
|
+
}>>>;
|
|
5454
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5455
|
+
readonly email: Schema.String;
|
|
5456
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5457
|
+
}>>>;
|
|
5458
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5459
|
+
readonly url: Schema.String;
|
|
5460
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5461
|
+
}>>>;
|
|
5462
|
+
readonly org: Schema.optionalKey<Schema.Struct<{
|
|
5463
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
5464
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
5465
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5466
|
+
}>>;
|
|
5467
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5468
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
5469
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
5470
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
5471
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
5472
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
5473
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
5474
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5475
|
+
}>>>;
|
|
5476
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
5477
|
+
}>>;
|
|
5478
|
+
}>]>;
|
|
5479
|
+
export type JourneyNode = JourneySendEmailNode | WhatsAppJourneySendNode | JourneyWaitNode | JourneyWaitForEventNode | JourneyBranchNode | JourneyUpdateTagsNode | JourneyWebhookNode | JourneyExitNode;
|
|
3350
5480
|
export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
3351
5481
|
readonly type: Schema.Literal<"send_email">;
|
|
3352
5482
|
readonly config: Schema.Struct<{
|
|
@@ -3357,6 +5487,21 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
3357
5487
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3358
5488
|
readonly nodeId: Schema.String;
|
|
3359
5489
|
}>]>;
|
|
5490
|
+
}>, Schema.Struct<{
|
|
5491
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
5492
|
+
readonly config: Schema.Struct<{
|
|
5493
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5494
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5495
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
5496
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
5497
|
+
}>, Schema.Struct<{
|
|
5498
|
+
readonly customField: Schema.String;
|
|
5499
|
+
}>]>>>;
|
|
5500
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5501
|
+
}>;
|
|
5502
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5503
|
+
readonly nodeId: Schema.String;
|
|
5504
|
+
}>]>;
|
|
3360
5505
|
}>, Schema.Struct<{
|
|
3361
5506
|
readonly type: Schema.Literal<"wait">;
|
|
3362
5507
|
readonly config: Schema.Struct<{
|
|
@@ -3486,6 +5631,222 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
3486
5631
|
readonly config: Schema.$Record<Schema.String, Schema.Never>;
|
|
3487
5632
|
readonly next: Schema.Tuple<readonly []>;
|
|
3488
5633
|
}>]>;
|
|
5634
|
+
export type WhatsAppSendMessagePayload = {
|
|
5635
|
+
readonly conversationId?: ConversationId | null;
|
|
5636
|
+
readonly metadata?: MessageMetadata;
|
|
5637
|
+
readonly channel: "whatsapp";
|
|
5638
|
+
readonly to: WhatsAppRecipients;
|
|
5639
|
+
readonly whatsapp: WhatsAppContent;
|
|
5640
|
+
};
|
|
5641
|
+
export declare const WhatsAppSendMessagePayload: Schema.Struct<{
|
|
5642
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5643
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
5644
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
5645
|
+
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5646
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
5647
|
+
}>, Schema.Struct<{
|
|
5648
|
+
readonly phone: Schema.String;
|
|
5649
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5650
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5651
|
+
}>]>>;
|
|
5652
|
+
readonly whatsapp: Schema.Union<readonly [Schema.Struct<{
|
|
5653
|
+
readonly text: Schema.String;
|
|
5654
|
+
}>, Schema.Struct<{
|
|
5655
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
5656
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5657
|
+
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
5658
|
+
}>, Schema.Struct<{
|
|
5659
|
+
readonly templateSlug: Schema.String;
|
|
5660
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5661
|
+
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
5662
|
+
}>, Schema.Struct<{
|
|
5663
|
+
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5664
|
+
readonly type: Schema.Literal<"image">;
|
|
5665
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5666
|
+
readonly url: Schema.String;
|
|
5667
|
+
}>, Schema.Struct<{
|
|
5668
|
+
readonly type: Schema.Literal<"image">;
|
|
5669
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5670
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5671
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5672
|
+
readonly type: Schema.Literal<"video">;
|
|
5673
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5674
|
+
readonly url: Schema.String;
|
|
5675
|
+
}>, Schema.Struct<{
|
|
5676
|
+
readonly type: Schema.Literal<"video">;
|
|
5677
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5678
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5679
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5680
|
+
readonly type: Schema.Literal<"audio">;
|
|
5681
|
+
readonly url: Schema.String;
|
|
5682
|
+
}>, Schema.Struct<{
|
|
5683
|
+
readonly type: Schema.Literal<"audio">;
|
|
5684
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5685
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5686
|
+
readonly type: Schema.Literal<"document">;
|
|
5687
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5688
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5689
|
+
readonly url: Schema.String;
|
|
5690
|
+
}>, Schema.Struct<{
|
|
5691
|
+
readonly type: Schema.Literal<"document">;
|
|
5692
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5693
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5694
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5695
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5696
|
+
readonly type: Schema.Literal<"sticker">;
|
|
5697
|
+
readonly url: Schema.String;
|
|
5698
|
+
}>, Schema.Struct<{
|
|
5699
|
+
readonly type: Schema.Literal<"sticker">;
|
|
5700
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5701
|
+
}>]>]>;
|
|
5702
|
+
}>, Schema.Struct<{
|
|
5703
|
+
readonly interactive: Schema.Union<readonly [Schema.Struct<{
|
|
5704
|
+
readonly type: Schema.Literal<"buttons">;
|
|
5705
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5706
|
+
readonly type: Schema.Literal<"text">;
|
|
5707
|
+
readonly text: Schema.String;
|
|
5708
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
5709
|
+
readonly type: Schema.Literal<"image">;
|
|
5710
|
+
readonly url: Schema.String;
|
|
5711
|
+
}>, Schema.Struct<{
|
|
5712
|
+
readonly type: Schema.Literal<"image">;
|
|
5713
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5714
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5715
|
+
readonly type: Schema.Literal<"video">;
|
|
5716
|
+
readonly url: Schema.String;
|
|
5717
|
+
}>, Schema.Struct<{
|
|
5718
|
+
readonly type: Schema.Literal<"video">;
|
|
5719
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5720
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5721
|
+
readonly type: Schema.Literal<"document">;
|
|
5722
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5723
|
+
readonly url: Schema.String;
|
|
5724
|
+
}>, Schema.Struct<{
|
|
5725
|
+
readonly type: Schema.Literal<"document">;
|
|
5726
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5727
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5728
|
+
}>]>]>>;
|
|
5729
|
+
readonly body: Schema.String;
|
|
5730
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5731
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
5732
|
+
readonly id: Schema.String;
|
|
5733
|
+
readonly title: Schema.String;
|
|
5734
|
+
}>>;
|
|
5735
|
+
}>, Schema.Struct<{
|
|
5736
|
+
readonly type: Schema.Literal<"list">;
|
|
5737
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
5738
|
+
readonly type: Schema.Literal<"text">;
|
|
5739
|
+
readonly text: Schema.String;
|
|
5740
|
+
}>>;
|
|
5741
|
+
readonly body: Schema.String;
|
|
5742
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5743
|
+
readonly button: Schema.String;
|
|
5744
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
5745
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5746
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
5747
|
+
readonly id: Schema.String;
|
|
5748
|
+
readonly title: Schema.String;
|
|
5749
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
5750
|
+
}>>;
|
|
5751
|
+
}>>;
|
|
5752
|
+
}>, Schema.Struct<{
|
|
5753
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
5754
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5755
|
+
readonly type: Schema.Literal<"text">;
|
|
5756
|
+
readonly text: Schema.String;
|
|
5757
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
5758
|
+
readonly type: Schema.Literal<"image">;
|
|
5759
|
+
readonly url: Schema.String;
|
|
5760
|
+
}>, Schema.Struct<{
|
|
5761
|
+
readonly type: Schema.Literal<"image">;
|
|
5762
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5763
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5764
|
+
readonly type: Schema.Literal<"video">;
|
|
5765
|
+
readonly url: Schema.String;
|
|
5766
|
+
}>, Schema.Struct<{
|
|
5767
|
+
readonly type: Schema.Literal<"video">;
|
|
5768
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5769
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5770
|
+
readonly type: Schema.Literal<"document">;
|
|
5771
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5772
|
+
readonly url: Schema.String;
|
|
5773
|
+
}>, Schema.Struct<{
|
|
5774
|
+
readonly type: Schema.Literal<"document">;
|
|
5775
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5776
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5777
|
+
}>]>]>>;
|
|
5778
|
+
readonly body: Schema.String;
|
|
5779
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5780
|
+
readonly displayText: Schema.String;
|
|
5781
|
+
readonly url: Schema.String;
|
|
5782
|
+
}>, Schema.Struct<{
|
|
5783
|
+
readonly type: Schema.Literal<"flow">;
|
|
5784
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
5785
|
+
readonly type: Schema.Literal<"text">;
|
|
5786
|
+
readonly text: Schema.String;
|
|
5787
|
+
}>>;
|
|
5788
|
+
readonly body: Schema.String;
|
|
5789
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5790
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
5791
|
+
readonly cta: Schema.String;
|
|
5792
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
5793
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
5794
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
5795
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5796
|
+
}>]>;
|
|
5797
|
+
}>, Schema.Struct<{
|
|
5798
|
+
readonly reaction: Schema.Struct<{
|
|
5799
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
5800
|
+
readonly emoji: Schema.String;
|
|
5801
|
+
}>;
|
|
5802
|
+
}>, Schema.Struct<{
|
|
5803
|
+
readonly location: Schema.Struct<{
|
|
5804
|
+
readonly latitude: Schema.Finite;
|
|
5805
|
+
readonly longitude: Schema.Finite;
|
|
5806
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
5807
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
5808
|
+
}>;
|
|
5809
|
+
}>, Schema.Struct<{
|
|
5810
|
+
readonly contacts: Schema.$Array<Schema.Struct<{
|
|
5811
|
+
readonly name: Schema.Struct<{
|
|
5812
|
+
readonly formattedName: Schema.String;
|
|
5813
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
5814
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
5815
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
5816
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
5817
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
5818
|
+
}>;
|
|
5819
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5820
|
+
readonly phone: Schema.String;
|
|
5821
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5822
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
5823
|
+
}>>>;
|
|
5824
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5825
|
+
readonly email: Schema.String;
|
|
5826
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5827
|
+
}>>>;
|
|
5828
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5829
|
+
readonly url: Schema.String;
|
|
5830
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5831
|
+
}>>>;
|
|
5832
|
+
readonly org: Schema.optionalKey<Schema.Struct<{
|
|
5833
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
5834
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
5835
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5836
|
+
}>>;
|
|
5837
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5838
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
5839
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
5840
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
5841
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
5842
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
5843
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
5844
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5845
|
+
}>>>;
|
|
5846
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
5847
|
+
}>>;
|
|
5848
|
+
}>]>;
|
|
5849
|
+
}>;
|
|
3489
5850
|
export type JourneyDefinition = {
|
|
3490
5851
|
readonly trigger: JourneyTrigger;
|
|
3491
5852
|
readonly rootNodeId: JourneyNodeId;
|
|
@@ -3519,6 +5880,21 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
3519
5880
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3520
5881
|
readonly nodeId: Schema.String;
|
|
3521
5882
|
}>]>;
|
|
5883
|
+
}>, Schema.Struct<{
|
|
5884
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
5885
|
+
readonly config: Schema.Struct<{
|
|
5886
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5887
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5888
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
5889
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
5890
|
+
}>, Schema.Struct<{
|
|
5891
|
+
readonly customField: Schema.String;
|
|
5892
|
+
}>]>>>;
|
|
5893
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5894
|
+
}>;
|
|
5895
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5896
|
+
readonly nodeId: Schema.String;
|
|
5897
|
+
}>]>;
|
|
3522
5898
|
}>, Schema.Struct<{
|
|
3523
5899
|
readonly type: Schema.Literal<"wait">;
|
|
3524
5900
|
readonly config: Schema.Struct<{
|
|
@@ -3653,6 +6029,292 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
3653
6029
|
}>>;
|
|
3654
6030
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
3655
6031
|
}>;
|
|
6032
|
+
export type SendMessagePayload = EmailSendMessagePayload | SmsSendMessagePayload | WhatsAppSendMessagePayload;
|
|
6033
|
+
export declare const SendMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
6034
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
6035
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
6036
|
+
readonly channel: Schema.Literal<"email">;
|
|
6037
|
+
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
6038
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
6039
|
+
}>, Schema.Struct<{
|
|
6040
|
+
readonly email: Schema.String;
|
|
6041
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6042
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6043
|
+
}>]>>;
|
|
6044
|
+
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
6045
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
6046
|
+
}>, Schema.Struct<{
|
|
6047
|
+
readonly email: Schema.String;
|
|
6048
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6049
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6050
|
+
}>]>>, Schema.Null]>>;
|
|
6051
|
+
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
6052
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
6053
|
+
}>, Schema.Struct<{
|
|
6054
|
+
readonly email: Schema.String;
|
|
6055
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6056
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6057
|
+
}>]>>, Schema.Null]>>;
|
|
6058
|
+
readonly from: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6059
|
+
readonly email: Schema.String;
|
|
6060
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6061
|
+
}>, Schema.Null]>>;
|
|
6062
|
+
readonly email: Schema.Struct<{
|
|
6063
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6064
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6065
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6066
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
6067
|
+
readonly filename: Schema.String;
|
|
6068
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6069
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
6070
|
+
readonly contentType: Schema.String;
|
|
6071
|
+
readonly size: Schema.Finite;
|
|
6072
|
+
}>>, Schema.Null]>>;
|
|
6073
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
6074
|
+
readonly inputContractId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateInputContractId">>;
|
|
6075
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
6076
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6077
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
6078
|
+
readonly locale: Schema.optionalKey<Schema.String>;
|
|
6079
|
+
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
6080
|
+
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
6081
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
6082
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
6083
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
6084
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
6085
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
6086
|
+
}>>;
|
|
6087
|
+
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
6088
|
+
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
6089
|
+
}>>;
|
|
6090
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
6091
|
+
}>;
|
|
6092
|
+
}>, Schema.Struct<{
|
|
6093
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
6094
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
6095
|
+
readonly channel: Schema.Literal<"sms">;
|
|
6096
|
+
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
6097
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
6098
|
+
}>, Schema.Struct<{
|
|
6099
|
+
readonly phone: Schema.String;
|
|
6100
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6101
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6102
|
+
}>]>>;
|
|
6103
|
+
readonly sms: Schema.Struct<{
|
|
6104
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6105
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
6106
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6107
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
6108
|
+
}>;
|
|
6109
|
+
}>, Schema.Struct<{
|
|
6110
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
6111
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
6112
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
6113
|
+
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
6114
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
6115
|
+
}>, Schema.Struct<{
|
|
6116
|
+
readonly phone: Schema.String;
|
|
6117
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6118
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6119
|
+
}>]>>;
|
|
6120
|
+
readonly whatsapp: Schema.Union<readonly [Schema.Struct<{
|
|
6121
|
+
readonly text: Schema.String;
|
|
6122
|
+
}>, Schema.Struct<{
|
|
6123
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
6124
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6125
|
+
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
6126
|
+
}>, Schema.Struct<{
|
|
6127
|
+
readonly templateSlug: Schema.String;
|
|
6128
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6129
|
+
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
6130
|
+
}>, Schema.Struct<{
|
|
6131
|
+
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6132
|
+
readonly type: Schema.Literal<"image">;
|
|
6133
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
6134
|
+
readonly url: Schema.String;
|
|
6135
|
+
}>, Schema.Struct<{
|
|
6136
|
+
readonly type: Schema.Literal<"image">;
|
|
6137
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
6138
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6139
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6140
|
+
readonly type: Schema.Literal<"video">;
|
|
6141
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
6142
|
+
readonly url: Schema.String;
|
|
6143
|
+
}>, Schema.Struct<{
|
|
6144
|
+
readonly type: Schema.Literal<"video">;
|
|
6145
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
6146
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6147
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6148
|
+
readonly type: Schema.Literal<"audio">;
|
|
6149
|
+
readonly url: Schema.String;
|
|
6150
|
+
}>, Schema.Struct<{
|
|
6151
|
+
readonly type: Schema.Literal<"audio">;
|
|
6152
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6153
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6154
|
+
readonly type: Schema.Literal<"document">;
|
|
6155
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
6156
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6157
|
+
readonly url: Schema.String;
|
|
6158
|
+
}>, Schema.Struct<{
|
|
6159
|
+
readonly type: Schema.Literal<"document">;
|
|
6160
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
6161
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6162
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6163
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6164
|
+
readonly type: Schema.Literal<"sticker">;
|
|
6165
|
+
readonly url: Schema.String;
|
|
6166
|
+
}>, Schema.Struct<{
|
|
6167
|
+
readonly type: Schema.Literal<"sticker">;
|
|
6168
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6169
|
+
}>]>]>;
|
|
6170
|
+
}>, Schema.Struct<{
|
|
6171
|
+
readonly interactive: Schema.Union<readonly [Schema.Struct<{
|
|
6172
|
+
readonly type: Schema.Literal<"buttons">;
|
|
6173
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6174
|
+
readonly type: Schema.Literal<"text">;
|
|
6175
|
+
readonly text: Schema.String;
|
|
6176
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
6177
|
+
readonly type: Schema.Literal<"image">;
|
|
6178
|
+
readonly url: Schema.String;
|
|
6179
|
+
}>, Schema.Struct<{
|
|
6180
|
+
readonly type: Schema.Literal<"image">;
|
|
6181
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6182
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6183
|
+
readonly type: Schema.Literal<"video">;
|
|
6184
|
+
readonly url: Schema.String;
|
|
6185
|
+
}>, Schema.Struct<{
|
|
6186
|
+
readonly type: Schema.Literal<"video">;
|
|
6187
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6188
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6189
|
+
readonly type: Schema.Literal<"document">;
|
|
6190
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6191
|
+
readonly url: Schema.String;
|
|
6192
|
+
}>, Schema.Struct<{
|
|
6193
|
+
readonly type: Schema.Literal<"document">;
|
|
6194
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6195
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6196
|
+
}>]>]>>;
|
|
6197
|
+
readonly body: Schema.String;
|
|
6198
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6199
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
6200
|
+
readonly id: Schema.String;
|
|
6201
|
+
readonly title: Schema.String;
|
|
6202
|
+
}>>;
|
|
6203
|
+
}>, Schema.Struct<{
|
|
6204
|
+
readonly type: Schema.Literal<"list">;
|
|
6205
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
6206
|
+
readonly type: Schema.Literal<"text">;
|
|
6207
|
+
readonly text: Schema.String;
|
|
6208
|
+
}>>;
|
|
6209
|
+
readonly body: Schema.String;
|
|
6210
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6211
|
+
readonly button: Schema.String;
|
|
6212
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
6213
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
6214
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
6215
|
+
readonly id: Schema.String;
|
|
6216
|
+
readonly title: Schema.String;
|
|
6217
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
6218
|
+
}>>;
|
|
6219
|
+
}>>;
|
|
6220
|
+
}>, Schema.Struct<{
|
|
6221
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
6222
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6223
|
+
readonly type: Schema.Literal<"text">;
|
|
6224
|
+
readonly text: Schema.String;
|
|
6225
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
6226
|
+
readonly type: Schema.Literal<"image">;
|
|
6227
|
+
readonly url: Schema.String;
|
|
6228
|
+
}>, Schema.Struct<{
|
|
6229
|
+
readonly type: Schema.Literal<"image">;
|
|
6230
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6231
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6232
|
+
readonly type: Schema.Literal<"video">;
|
|
6233
|
+
readonly url: Schema.String;
|
|
6234
|
+
}>, Schema.Struct<{
|
|
6235
|
+
readonly type: Schema.Literal<"video">;
|
|
6236
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6237
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6238
|
+
readonly type: Schema.Literal<"document">;
|
|
6239
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6240
|
+
readonly url: Schema.String;
|
|
6241
|
+
}>, Schema.Struct<{
|
|
6242
|
+
readonly type: Schema.Literal<"document">;
|
|
6243
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6244
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
6245
|
+
}>]>]>>;
|
|
6246
|
+
readonly body: Schema.String;
|
|
6247
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6248
|
+
readonly displayText: Schema.String;
|
|
6249
|
+
readonly url: Schema.String;
|
|
6250
|
+
}>, Schema.Struct<{
|
|
6251
|
+
readonly type: Schema.Literal<"flow">;
|
|
6252
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
6253
|
+
readonly type: Schema.Literal<"text">;
|
|
6254
|
+
readonly text: Schema.String;
|
|
6255
|
+
}>>;
|
|
6256
|
+
readonly body: Schema.String;
|
|
6257
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
6258
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
6259
|
+
readonly cta: Schema.String;
|
|
6260
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
6261
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
6262
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
6263
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6264
|
+
}>]>;
|
|
6265
|
+
}>, Schema.Struct<{
|
|
6266
|
+
readonly reaction: Schema.Struct<{
|
|
6267
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
6268
|
+
readonly emoji: Schema.String;
|
|
6269
|
+
}>;
|
|
6270
|
+
}>, Schema.Struct<{
|
|
6271
|
+
readonly location: Schema.Struct<{
|
|
6272
|
+
readonly latitude: Schema.Finite;
|
|
6273
|
+
readonly longitude: Schema.Finite;
|
|
6274
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
6275
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
6276
|
+
}>;
|
|
6277
|
+
}>, Schema.Struct<{
|
|
6278
|
+
readonly contacts: Schema.$Array<Schema.Struct<{
|
|
6279
|
+
readonly name: Schema.Struct<{
|
|
6280
|
+
readonly formattedName: Schema.String;
|
|
6281
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
6282
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
6283
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
6284
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
6285
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
6286
|
+
}>;
|
|
6287
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6288
|
+
readonly phone: Schema.String;
|
|
6289
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6290
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
6291
|
+
}>>>;
|
|
6292
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6293
|
+
readonly email: Schema.String;
|
|
6294
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6295
|
+
}>>>;
|
|
6296
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6297
|
+
readonly url: Schema.String;
|
|
6298
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6299
|
+
}>>>;
|
|
6300
|
+
readonly org: Schema.optionalKey<Schema.Struct<{
|
|
6301
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
6302
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
6303
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
6304
|
+
}>>;
|
|
6305
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
6306
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
6307
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
6308
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
6309
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
6310
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
6311
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
6312
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6313
|
+
}>>>;
|
|
6314
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
6315
|
+
}>>;
|
|
6316
|
+
}>]>;
|
|
6317
|
+
}>]>;
|
|
3656
6318
|
export type CreateJourneyPayload = {
|
|
3657
6319
|
readonly name: JourneyName;
|
|
3658
6320
|
readonly definition: JourneyDefinition;
|
|
@@ -3683,6 +6345,21 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
3683
6345
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3684
6346
|
readonly nodeId: Schema.String;
|
|
3685
6347
|
}>]>;
|
|
6348
|
+
}>, Schema.Struct<{
|
|
6349
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
6350
|
+
readonly config: Schema.Struct<{
|
|
6351
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
6352
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6353
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
6354
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
6355
|
+
}>, Schema.Struct<{
|
|
6356
|
+
readonly customField: Schema.String;
|
|
6357
|
+
}>]>>>;
|
|
6358
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
6359
|
+
}>;
|
|
6360
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6361
|
+
readonly nodeId: Schema.String;
|
|
6362
|
+
}>]>;
|
|
3686
6363
|
}>, Schema.Struct<{
|
|
3687
6364
|
readonly type: Schema.Literal<"wait">;
|
|
3688
6365
|
readonly config: Schema.Struct<{
|
|
@@ -3848,6 +6525,21 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
3848
6525
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3849
6526
|
readonly nodeId: Schema.String;
|
|
3850
6527
|
}>]>;
|
|
6528
|
+
}>, Schema.Struct<{
|
|
6529
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
6530
|
+
readonly config: Schema.Struct<{
|
|
6531
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
6532
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6533
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
6534
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
6535
|
+
}>, Schema.Struct<{
|
|
6536
|
+
readonly customField: Schema.String;
|
|
6537
|
+
}>]>>>;
|
|
6538
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
6539
|
+
}>;
|
|
6540
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6541
|
+
readonly nodeId: Schema.String;
|
|
6542
|
+
}>]>;
|
|
3851
6543
|
}>, Schema.Struct<{
|
|
3852
6544
|
readonly type: Schema.Literal<"wait">;
|
|
3853
6545
|
readonly config: Schema.Struct<{
|