samva 0.35.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 +1 -0
- package/dist/client/sdk.gen.d.ts +102 -82
- package/dist/client/sdk.gen.js +322 -244
- package/dist/client/types.gen.d.ts +600 -378
- package/dist/effect/agents.d.ts +194 -4
- package/dist/effect/agents.js +3 -1
- package/dist/effect/analytics.d.ts +6 -0
- package/dist/effect/api-keys.d.ts +3 -6
- package/dist/effect/campaigns.d.ts +216 -216
- package/dist/effect/conversations.d.ts +6 -0
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +53 -1
- package/dist/effect/generated/agents.d.ts +1803 -81
- package/dist/effect/generated/agents.js +92 -26
- package/dist/effect/generated/analytics.d.ts +19 -1
- package/dist/effect/generated/analytics.js +8 -2
- package/dist/effect/generated/api-keys.d.ts +4 -29
- package/dist/effect/generated/api-keys.js +5 -6
- package/dist/effect/generated/campaigns.d.ts +22 -0
- package/dist/effect/generated/campaigns.js +3 -1
- package/dist/effect/generated/conversations.d.ts +104 -3
- package/dist/effect/generated/conversations.js +12 -2
- package/dist/effect/generated/extension-installations.d.ts +845 -68
- package/dist/effect/generated/extension-installations.js +22 -26
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/mailboxes.d.ts +3423 -1446
- package/dist/effect/generated/mailboxes.js +226 -220
- package/dist/effect/generated/namespaces.d.ts +7 -31
- package/dist/effect/generated/namespaces.js +4 -4
- 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 +45 -4
- package/dist/effect/generated/scheduled-messages.js +8 -3
- package/dist/effect/generated/shared.d.ts +893 -224
- package/dist/effect/generated/shared.js +194 -60
- package/dist/effect/generated/templates.d.ts +474 -668
- package/dist/effect/generated/templates.js +65 -45
- package/dist/effect/generated/webhooks.d.ts +22 -19
- package/dist/effect/generated/webhooks.js +10 -1
- package/dist/effect/generated/whoami.d.ts +0 -4
- package/dist/effect/generated-metadata.d.ts +36 -32
- package/dist/effect/generated-metadata.js +127 -105
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/operation.js +5 -32
- package/dist/effect/journeys.d.ts +146 -146
- package/dist/effect/mailboxes.d.ts +575 -129
- package/dist/effect/mailboxes.js +1 -11
- package/dist/effect/policies.d.ts +65 -0
- package/dist/effect/policies.js +16 -0
- package/dist/effect/scheduled-messages.d.ts +6 -0
- package/dist/effect/templates.d.ts +6 -8
- package/dist/effect/templates.js +5 -3
- package/dist/effect/topics.d.ts +2 -2
- package/dist/effect/webhooks.d.ts +7 -4
- package/dist/index.js +2 -2
- package/dist/mailbox/test.js +11 -4
- package/dist/mailbox/types.d.ts +39 -3
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +3 -1
- package/dist/promises/client.js +5 -3
- package/dist/promises/errors.gen.d.ts +18 -2
- package/dist/promises/errors.gen.js +335 -33
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +30 -28
- package/dist/service-map.js +219 -786
- package/package.json +6 -2
|
@@ -8,6 +8,8 @@ export type JsonValue = string | number | boolean | null | ReadonlyArray<JsonVal
|
|
|
8
8
|
export declare const JsonValue: Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>;
|
|
9
9
|
export type NamespaceId = string & EffectBrand.Brand<"NamespaceId">;
|
|
10
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">;
|
|
11
13
|
declare const MalformedRequestError_base: Schema.Class<MalformedRequestError, Schema.Struct<{
|
|
12
14
|
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
13
15
|
readonly message: Schema.String;
|
|
@@ -71,8 +73,16 @@ export declare const AgentToolScope: Schema.Union<readonly [Schema.Struct<{
|
|
|
71
73
|
readonly kind: Schema.Literal<"selected">;
|
|
72
74
|
readonly names: Schema.$Array<Schema.String>;
|
|
73
75
|
}>]>;
|
|
74
|
-
export type
|
|
75
|
-
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">]>;
|
|
76
86
|
export type AgentModel = "standard" | "max";
|
|
77
87
|
export declare const AgentModel: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
78
88
|
export type CatalogModelId = string;
|
|
@@ -156,8 +166,6 @@ export declare const ApiKeyResourceAccess: Schema.Struct<{
|
|
|
156
166
|
}>;
|
|
157
167
|
export type MailboxId = string & EffectBrand.Brand<"MailboxId">;
|
|
158
168
|
export declare const MailboxId: Schema.brand<Schema.String, "MailboxId">;
|
|
159
|
-
export type MailboxSendMode = "send" | "approval";
|
|
160
|
-
export declare const MailboxSendMode: Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>;
|
|
161
169
|
declare const RateLimitedError_base: Schema.Class<RateLimitedError, Schema.Struct<{
|
|
162
170
|
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
163
171
|
readonly message: Schema.String;
|
|
@@ -171,8 +179,6 @@ declare const BillingProviderError_base: Schema.Class<BillingProviderError, Sche
|
|
|
171
179
|
}>, import("effect/Cause").YieldableError>;
|
|
172
180
|
export declare class BillingProviderError extends BillingProviderError_base {
|
|
173
181
|
}
|
|
174
|
-
export type ApiKeyId = string & EffectBrand.Brand<"ApiKeyId">;
|
|
175
|
-
export declare const ApiKeyId: Schema.brand<Schema.String, "ApiKeyId">;
|
|
176
182
|
export type SuccessResponse = {
|
|
177
183
|
readonly success: boolean;
|
|
178
184
|
};
|
|
@@ -417,8 +423,6 @@ export type ExtensionId = string & EffectBrand.Brand<"ExtensionId">;
|
|
|
417
423
|
export declare const ExtensionId: Schema.brand<Schema.String, "ExtensionId">;
|
|
418
424
|
export type ExtensionVersionId = string & EffectBrand.Brand<"ExtensionVersionId">;
|
|
419
425
|
export declare const ExtensionVersionId: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
420
|
-
export type UserId = string & EffectBrand.Brand<"UserId">;
|
|
421
|
-
export declare const UserId: Schema.brand<Schema.String, "UserId">;
|
|
422
426
|
export type FeedbackContext = {
|
|
423
427
|
readonly operation?: string | null;
|
|
424
428
|
readonly resourceId?: string | null;
|
|
@@ -523,8 +527,12 @@ export type MailboxActionId = string & EffectBrand.Brand<"MailboxActionId">;
|
|
|
523
527
|
export declare const MailboxActionId: Schema.brand<Schema.String, "MailboxActionId">;
|
|
524
528
|
export type MailboxDraftId = string & EffectBrand.Brand<"MailboxDraftId">;
|
|
525
529
|
export declare const MailboxDraftId: Schema.brand<Schema.String, "MailboxDraftId">;
|
|
526
|
-
export type
|
|
527
|
-
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">]>;
|
|
528
536
|
export type MailboxSendError = {
|
|
529
537
|
readonly _tag: "SenderNotReadyError";
|
|
530
538
|
readonly message: string;
|
|
@@ -605,8 +613,6 @@ export type MailboxGrantRole = "admin" | "collaborator" | "viewer";
|
|
|
605
613
|
export declare const MailboxGrantRole: Schema.Union<readonly [Schema.Literal<"admin">, Schema.Literal<"collaborator">, Schema.Literal<"viewer">]>;
|
|
606
614
|
export type MailboxLabelId = string & EffectBrand.Brand<"MailboxLabelId">;
|
|
607
615
|
export declare const MailboxLabelId: Schema.brand<Schema.String, "MailboxLabelId">;
|
|
608
|
-
export type MailboxPolicyOutcomeKind = "requireApproval" | "deny";
|
|
609
|
-
export declare const MailboxPolicyOutcomeKind: Schema.Union<readonly [Schema.Literal<"requireApproval">, Schema.Literal<"deny">]>;
|
|
610
616
|
export type MailboxThreadPriority = "low" | "normal" | "high" | "urgent";
|
|
611
617
|
export declare const MailboxThreadPriority: Schema.Union<readonly [Schema.Literal<"low">, Schema.Literal<"normal">, Schema.Literal<"high">, Schema.Literal<"urgent">]>;
|
|
612
618
|
export type MessageMetadata = {
|
|
@@ -841,6 +847,8 @@ export declare const OperationResource: Schema.Struct<{
|
|
|
841
847
|
readonly type: Schema.String;
|
|
842
848
|
readonly id: Schema.String;
|
|
843
849
|
}>;
|
|
850
|
+
export type PolicyVersion = number;
|
|
851
|
+
export declare const PolicyVersion: Schema.Finite;
|
|
844
852
|
export type TemplateFromDefault = {
|
|
845
853
|
readonly email: string;
|
|
846
854
|
readonly name?: string | null;
|
|
@@ -857,6 +865,16 @@ export declare const TemplateTrackingDefault: Schema.Struct<{
|
|
|
857
865
|
readonly opens: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
858
866
|
readonly clicks: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
859
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
|
+
}
|
|
860
878
|
export type TopicContactByEmail = {
|
|
861
879
|
readonly email: string;
|
|
862
880
|
};
|
|
@@ -956,12 +974,6 @@ export declare const CreateMediaPayload: Schema.Struct<{
|
|
|
956
974
|
readonly purpose: Schema.Union<readonly [Schema.Literal<"attachment">, Schema.Literal<"avatar">, Schema.Literal<"whatsapp_media">, Schema.Literal<"review_evidence">]>;
|
|
957
975
|
readonly checksumSha256: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
958
976
|
}>;
|
|
959
|
-
export type DenyMailboxActionPayload = {
|
|
960
|
-
readonly reason: string;
|
|
961
|
-
};
|
|
962
|
-
export declare const DenyMailboxActionPayload: Schema.Struct<{
|
|
963
|
-
readonly reason: Schema.String;
|
|
964
|
-
}>;
|
|
965
977
|
export type DomainWarmingNotePayload = {
|
|
966
978
|
readonly note?: string | null;
|
|
967
979
|
};
|
|
@@ -1186,7 +1198,6 @@ export type CreateTemplatePayload = {
|
|
|
1186
1198
|
readonly useBrand?: boolean | null;
|
|
1187
1199
|
readonly description?: string | null;
|
|
1188
1200
|
readonly category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
1189
|
-
readonly isActive?: boolean | null;
|
|
1190
1201
|
readonly namespaceId?: NamespaceId | null;
|
|
1191
1202
|
readonly shared?: boolean | null;
|
|
1192
1203
|
};
|
|
@@ -1198,14 +1209,12 @@ export declare const CreateTemplatePayload: Schema.Struct<{
|
|
|
1198
1209
|
readonly useBrand: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1199
1210
|
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1200
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]>>;
|
|
1201
|
-
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1202
1212
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1203
1213
|
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1204
1214
|
}>;
|
|
1205
1215
|
export type AgentIntegrationGrant = {
|
|
1206
1216
|
readonly integrationId: IntegrationId;
|
|
1207
1217
|
readonly tools: AgentToolScope;
|
|
1208
|
-
readonly requireApproval: ReadonlyArray<string>;
|
|
1209
1218
|
};
|
|
1210
1219
|
export declare const AgentIntegrationGrant: Schema.Struct<{
|
|
1211
1220
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -1217,8 +1226,33 @@ export declare const AgentIntegrationGrant: Schema.Struct<{
|
|
|
1217
1226
|
readonly kind: Schema.Literal<"selected">;
|
|
1218
1227
|
readonly names: Schema.$Array<Schema.String>;
|
|
1219
1228
|
}>]>;
|
|
1220
|
-
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
1221
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
|
+
}>]>;
|
|
1222
1256
|
export type AgentModelChoice = AgentModel | CatalogModelId;
|
|
1223
1257
|
export declare const AgentModelChoice: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
1224
1258
|
export type WorkingHoursRange = {
|
|
@@ -1239,12 +1273,23 @@ export declare const UpdateAgentPayload: Schema.Struct<{
|
|
|
1239
1273
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1240
1274
|
readonly monthlySpendCapDollars: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1241
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
|
+
}>;
|
|
1242
1287
|
export type CampaignReplyMailbox = MailboxId | null;
|
|
1243
1288
|
export declare const CampaignReplyMailbox: Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>;
|
|
1244
1289
|
export type CreateWebhookPayload = {
|
|
1245
1290
|
readonly name: string;
|
|
1246
1291
|
readonly url: string;
|
|
1247
|
-
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">;
|
|
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">;
|
|
1248
1293
|
readonly channels?: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
|
|
1249
1294
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
1250
1295
|
readonly namespaceId?: NamespaceId | null;
|
|
@@ -1256,35 +1301,17 @@ export type CreateWebhookPayload = {
|
|
|
1256
1301
|
export declare const CreateWebhookPayload: Schema.Struct<{
|
|
1257
1302
|
readonly name: Schema.String;
|
|
1258
1303
|
readonly url: Schema.String;
|
|
1259
|
-
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">]>>;
|
|
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">]>>;
|
|
1260
1305
|
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
1261
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]>>;
|
|
1262
1307
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1263
1308
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1264
1309
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>, Schema.Null]>>;
|
|
1265
1310
|
}>;
|
|
1266
|
-
export type InstallExtensionPayload = {
|
|
1267
|
-
readonly extension: string;
|
|
1268
|
-
readonly version?: string | null;
|
|
1269
|
-
readonly mailboxIds?: ReadonlyArray<MailboxId> | null;
|
|
1270
|
-
readonly namespaceId?: NamespaceId | null;
|
|
1271
|
-
readonly permissions?: ReadonlyArray<"read" | "update" | "send" | "quarantine.read"> | null;
|
|
1272
|
-
readonly sendMode?: "send" | "approval" | null;
|
|
1273
|
-
readonly webhookUrl?: string | null;
|
|
1274
|
-
};
|
|
1275
|
-
export declare const InstallExtensionPayload: Schema.Struct<{
|
|
1276
|
-
readonly extension: Schema.String;
|
|
1277
|
-
readonly version: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1278
|
-
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "MailboxId">>, Schema.Null]>>;
|
|
1279
|
-
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1280
|
-
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]>>;
|
|
1281
|
-
readonly sendMode: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>, Schema.Null]>>;
|
|
1282
|
-
readonly webhookUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1283
|
-
}>;
|
|
1284
1311
|
export type UpdateWebhookPayload = {
|
|
1285
1312
|
readonly name?: string | null;
|
|
1286
1313
|
readonly url?: string | null;
|
|
1287
|
-
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;
|
|
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;
|
|
1288
1315
|
readonly channels?: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
|
|
1289
1316
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
1290
1317
|
readonly namespaceId?: NamespaceId | null;
|
|
@@ -1296,26 +1323,13 @@ export type UpdateWebhookPayload = {
|
|
|
1296
1323
|
export declare const UpdateWebhookPayload: Schema.Struct<{
|
|
1297
1324
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1298
1325
|
readonly url: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1299
|
-
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]>>;
|
|
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]>>;
|
|
1300
1327
|
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
1301
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]>>;
|
|
1302
1329
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1303
1330
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1304
1331
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>, Schema.Null]>>;
|
|
1305
1332
|
}>;
|
|
1306
|
-
export type ApiKeyMailboxAccess = {
|
|
1307
|
-
readonly permissions: readonly [
|
|
1308
|
-
"read" | "update" | "send" | "quarantine.read",
|
|
1309
|
-
...Array<"read" | "update" | "send" | "quarantine.read">
|
|
1310
|
-
];
|
|
1311
|
-
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
1312
|
-
readonly sendMode?: MailboxSendMode | null;
|
|
1313
|
-
};
|
|
1314
|
-
export declare const ApiKeyMailboxAccess: Schema.Struct<{
|
|
1315
|
-
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">]>]>;
|
|
1316
|
-
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]>>;
|
|
1317
|
-
readonly sendMode: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>, Schema.Null]>>;
|
|
1318
|
-
}>;
|
|
1319
1333
|
export type CreateMailboxChatDraftPayload = {
|
|
1320
1334
|
readonly channel: "whatsapp" | "sms";
|
|
1321
1335
|
readonly to?: string | null;
|
|
@@ -1904,19 +1918,101 @@ export declare const UpdateMailboxPayload: Schema.Struct<{
|
|
|
1904
1918
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1905
1919
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Null]>>, Schema.Null]>>;
|
|
1906
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
|
+
}>;
|
|
1907
1945
|
export type MailboxActionDecision = {
|
|
1908
|
-
readonly
|
|
1909
|
-
readonly
|
|
1910
|
-
readonly
|
|
1911
|
-
readonly
|
|
1912
|
-
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;
|
|
1913
1980
|
};
|
|
1914
1981
|
export declare const MailboxActionDecision: Schema.Struct<{
|
|
1915
|
-
readonly
|
|
1916
|
-
readonly
|
|
1917
|
-
readonly
|
|
1918
|
-
readonly
|
|
1919
|
-
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]>>;
|
|
1920
2016
|
}>;
|
|
1921
2017
|
export type MailboxSendOutcome = {
|
|
1922
2018
|
readonly code: string;
|
|
@@ -1959,20 +2055,16 @@ export declare const MailboxSendOutcome: Schema.Struct<{
|
|
|
1959
2055
|
export type CreateMailboxGrantPayload = {
|
|
1960
2056
|
readonly userId: UserId;
|
|
1961
2057
|
readonly role: MailboxGrantRole;
|
|
1962
|
-
readonly sendMode?: MailboxSendMode | null;
|
|
1963
2058
|
};
|
|
1964
2059
|
export declare const CreateMailboxGrantPayload: Schema.Struct<{
|
|
1965
2060
|
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
1966
2061
|
readonly role: Schema.Union<readonly [Schema.Literal<"admin">, Schema.Literal<"collaborator">, Schema.Literal<"viewer">]>;
|
|
1967
|
-
readonly sendMode: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>, Schema.Null]>>;
|
|
1968
2062
|
}>;
|
|
1969
2063
|
export type UpdateMailboxGrantPayload = {
|
|
1970
2064
|
readonly role?: MailboxGrantRole | null;
|
|
1971
|
-
readonly sendMode?: MailboxSendMode | null;
|
|
1972
2065
|
};
|
|
1973
2066
|
export declare const UpdateMailboxGrantPayload: Schema.Struct<{
|
|
1974
2067
|
readonly role: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"admin">, Schema.Literal<"collaborator">, Schema.Literal<"viewer">]>, Schema.Null]>>;
|
|
1975
|
-
readonly sendMode: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>, Schema.Null]>>;
|
|
1976
2068
|
}>;
|
|
1977
2069
|
export type MailboxThreadLabels = {
|
|
1978
2070
|
readonly labels: readonly [MailboxLabelId, ...Array<MailboxLabelId>];
|
|
@@ -1980,30 +2072,6 @@ export type MailboxThreadLabels = {
|
|
|
1980
2072
|
export declare const MailboxThreadLabels: Schema.Struct<{
|
|
1981
2073
|
readonly labels: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxLabelId">]>, readonly [Schema.brand<Schema.String, "MailboxLabelId">]>;
|
|
1982
2074
|
}>;
|
|
1983
|
-
export type CreateMailboxPolicyPayload = {
|
|
1984
|
-
readonly name: string;
|
|
1985
|
-
readonly outcome: MailboxPolicyOutcomeKind;
|
|
1986
|
-
readonly reason?: string | null;
|
|
1987
|
-
readonly enabled?: boolean | null;
|
|
1988
|
-
};
|
|
1989
|
-
export declare const CreateMailboxPolicyPayload: Schema.Struct<{
|
|
1990
|
-
readonly name: Schema.String;
|
|
1991
|
-
readonly outcome: Schema.Union<readonly [Schema.Literal<"requireApproval">, Schema.Literal<"deny">]>;
|
|
1992
|
-
readonly reason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1993
|
-
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1994
|
-
}>;
|
|
1995
|
-
export type UpdateMailboxPolicyPayload = {
|
|
1996
|
-
readonly name?: string | null;
|
|
1997
|
-
readonly outcome?: MailboxPolicyOutcomeKind | null;
|
|
1998
|
-
readonly reason?: string | null;
|
|
1999
|
-
readonly enabled?: boolean | null;
|
|
2000
|
-
};
|
|
2001
|
-
export declare const UpdateMailboxPolicyPayload: Schema.Struct<{
|
|
2002
|
-
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2003
|
-
readonly outcome: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"requireApproval">, Schema.Literal<"deny">]>, Schema.Null]>>;
|
|
2004
|
-
readonly reason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2005
|
-
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2006
|
-
}>;
|
|
2007
2075
|
export type UpdateMailboxThreadPayload = {
|
|
2008
2076
|
readonly folder?: MailboxThreadFolder | null;
|
|
2009
2077
|
readonly priority?: MailboxThreadPriority | null;
|
|
@@ -2217,7 +2285,6 @@ export type UpdateTemplatePayload = {
|
|
|
2217
2285
|
readonly fromDefault?: TemplateFromDefault | null;
|
|
2218
2286
|
readonly replyToDefault?: ReadonlyArray<string> | null;
|
|
2219
2287
|
readonly trackingDefault?: TemplateTrackingDefault | null;
|
|
2220
|
-
readonly isActive?: boolean | null;
|
|
2221
2288
|
readonly shared?: boolean | null;
|
|
2222
2289
|
};
|
|
2223
2290
|
};
|
|
@@ -2237,10 +2304,37 @@ export declare const UpdateTemplatePayload: Schema.Struct<{
|
|
|
2237
2304
|
readonly opens: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2238
2305
|
readonly clicks: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2239
2306
|
}>, Schema.Null]>>;
|
|
2240
|
-
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2241
2307
|
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2242
2308
|
}>;
|
|
2243
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
|
+
}>;
|
|
2244
2338
|
export type WorkingHours = {
|
|
2245
2339
|
readonly timeZone: TimeZone;
|
|
2246
2340
|
readonly ranges: ReadonlyArray<WorkingHoursRange>;
|
|
@@ -2286,7 +2380,6 @@ export declare const ApiKeyAccess: Schema.Union<readonly [Schema.Struct<{
|
|
|
2286
2380
|
readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2287
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">]>]>;
|
|
2288
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]>>;
|
|
2289
|
-
readonly sendMode: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>, Schema.Null]>>;
|
|
2290
2383
|
}>, Schema.Null]>>;
|
|
2291
2384
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
2292
2385
|
}>]>;
|
|
@@ -2945,11 +3038,40 @@ export declare const MailboxSendReceipt: Schema.Struct<{
|
|
|
2945
3038
|
}>, Schema.Null]>;
|
|
2946
3039
|
readonly retryEligible: Schema.Boolean;
|
|
2947
3040
|
readonly decision: Schema.Union<readonly [Schema.Struct<{
|
|
2948
|
-
readonly
|
|
2949
|
-
readonly
|
|
2950
|
-
readonly
|
|
2951
|
-
readonly
|
|
2952
|
-
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]>>;
|
|
2953
3075
|
}>, Schema.Null]>;
|
|
2954
3076
|
readonly createdAt: Schema.String;
|
|
2955
3077
|
readonly updatedAt: Schema.String;
|
|
@@ -3022,48 +3144,66 @@ export declare const OperationAccepted: Schema.Struct<{
|
|
|
3022
3144
|
}>;
|
|
3023
3145
|
}>;
|
|
3024
3146
|
}>;
|
|
3025
|
-
export type
|
|
3026
|
-
readonly
|
|
3027
|
-
readonly
|
|
3028
|
-
readonly
|
|
3029
|
-
readonly
|
|
3030
|
-
|
|
3031
|
-
readonly
|
|
3032
|
-
readonly
|
|
3033
|
-
readonly
|
|
3034
|
-
readonly
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
readonly
|
|
3044
|
-
|
|
3045
|
-
readonly
|
|
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">;
|
|
3046
3168
|
}>, Schema.Struct<{
|
|
3047
|
-
readonly kind: Schema.Literal<"
|
|
3169
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
3170
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
3048
3171
|
}>, Schema.Struct<{
|
|
3049
|
-
readonly kind: Schema.Literal<"
|
|
3050
|
-
readonly
|
|
3051
|
-
}
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
readonly
|
|
3057
|
-
readonly
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
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
|
+
}>]>;
|
|
3067
3207
|
export type CampaignEmailInput = {
|
|
3068
3208
|
readonly subject?: string | null;
|
|
3069
3209
|
readonly html?: string | null;
|
|
@@ -3550,11 +3690,40 @@ declare const MailboxSendRefusedError_base: Schema.Class<MailboxSendRefusedError
|
|
|
3550
3690
|
}>, Schema.Null]>;
|
|
3551
3691
|
readonly retryEligible: Schema.Boolean;
|
|
3552
3692
|
readonly decision: Schema.Union<readonly [Schema.Struct<{
|
|
3553
|
-
readonly
|
|
3554
|
-
readonly
|
|
3555
|
-
readonly
|
|
3556
|
-
readonly
|
|
3557
|
-
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]>>;
|
|
3558
3727
|
}>, Schema.Null]>;
|
|
3559
3728
|
readonly createdAt: Schema.String;
|
|
3560
3729
|
readonly updatedAt: Schema.String;
|
|
@@ -3618,11 +3787,40 @@ declare const MailboxSendConflictError_base: Schema.Class<MailboxSendConflictErr
|
|
|
3618
3787
|
}>, Schema.Null]>;
|
|
3619
3788
|
readonly retryEligible: Schema.Boolean;
|
|
3620
3789
|
readonly decision: Schema.Union<readonly [Schema.Struct<{
|
|
3621
|
-
readonly
|
|
3622
|
-
readonly
|
|
3623
|
-
readonly
|
|
3624
|
-
readonly
|
|
3625
|
-
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]>>;
|
|
3626
3824
|
}>, Schema.Null]>;
|
|
3627
3825
|
readonly createdAt: Schema.String;
|
|
3628
3826
|
readonly updatedAt: Schema.String;
|
|
@@ -3630,81 +3828,123 @@ declare const MailboxSendConflictError_base: Schema.Class<MailboxSendConflictErr
|
|
|
3630
3828
|
}>, import("effect/Cause").YieldableError>;
|
|
3631
3829
|
export declare class MailboxSendConflictError extends MailboxSendConflictError_base {
|
|
3632
3830
|
}
|
|
3633
|
-
export type
|
|
3634
|
-
readonly
|
|
3635
|
-
readonly
|
|
3636
|
-
readonly
|
|
3637
|
-
};
|
|
3638
|
-
export declare const
|
|
3639
|
-
readonly
|
|
3640
|
-
readonly
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
readonly
|
|
3648
|
-
|
|
3649
|
-
readonly
|
|
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">;
|
|
3650
3848
|
}>, Schema.Struct<{
|
|
3651
|
-
readonly kind: Schema.Literal<"
|
|
3849
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
3850
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
3652
3851
|
}>, Schema.Struct<{
|
|
3653
|
-
readonly kind: Schema.Literal<"
|
|
3654
|
-
readonly
|
|
3655
|
-
}>]>;
|
|
3656
|
-
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
3657
|
-
}>>;
|
|
3658
|
-
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
3659
|
-
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
3660
|
-
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
3661
|
-
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
3662
|
-
readonly timeZone: Schema.String;
|
|
3663
|
-
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
3664
|
-
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">]>;
|
|
3665
|
-
readonly opens: Schema.String;
|
|
3666
|
-
readonly closes: Schema.String;
|
|
3667
|
-
}>>;
|
|
3668
|
-
}>, Schema.Null]>;
|
|
3669
|
-
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
3670
|
-
}>, Schema.Null]>>;
|
|
3671
|
-
}>;
|
|
3672
|
-
export type ReplaceAgentDraftPayload = {
|
|
3673
|
-
readonly revision: string;
|
|
3674
|
-
readonly definition: AgentDefinition;
|
|
3675
|
-
};
|
|
3676
|
-
export declare const ReplaceAgentDraftPayload: Schema.Struct<{
|
|
3677
|
-
readonly revision: Schema.String;
|
|
3678
|
-
readonly definition: Schema.Struct<{
|
|
3679
|
-
readonly instructions: Schema.String;
|
|
3680
|
-
readonly knowledge: Schema.String;
|
|
3681
|
-
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
3682
|
-
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
3683
|
-
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
3684
|
-
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
3685
|
-
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
3686
|
-
readonly kind: Schema.Literal<"all">;
|
|
3852
|
+
readonly kind: Schema.Literal<"member">;
|
|
3853
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
3687
3854
|
}>, Schema.Struct<{
|
|
3688
|
-
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">;
|
|
3689
3872
|
}>, Schema.Struct<{
|
|
3690
|
-
readonly kind: Schema.Literal<"
|
|
3691
|
-
readonly
|
|
3692
|
-
}
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
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;
|
|
3708
3948
|
}>;
|
|
3709
3949
|
export type EmailCampaignContentInput = {
|
|
3710
3950
|
readonly channel: "email";
|
|
@@ -4082,6 +4322,169 @@ export declare const JourneyCondition: Schema.Struct<{
|
|
|
4082
4322
|
readonly occurred: Schema.Boolean;
|
|
4083
4323
|
}>]>]>;
|
|
4084
4324
|
}>;
|
|
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;
|
|
4336
|
+
};
|
|
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">;
|
|
4346
|
+
}>, Schema.Struct<{
|
|
4347
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
4348
|
+
}>, Schema.Struct<{
|
|
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]>>;
|
|
4379
|
+
}>, Schema.Struct<{
|
|
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
|
+
}>;
|
|
4085
4488
|
export type WhatsAppInteractive = WhatsAppButtonsMessage | WhatsAppListMessage | WhatsAppCtaUrlMessage | WhatsAppFlowMessage;
|
|
4086
4489
|
export declare const WhatsAppInteractive: Schema.Union<readonly [Schema.Struct<{
|
|
4087
4490
|
readonly type: Schema.Literal<"buttons">;
|
|
@@ -4334,6 +4737,272 @@ export declare const JourneyBranchEdge: Schema.Struct<{
|
|
|
4334
4737
|
}>]>]>;
|
|
4335
4738
|
}>>;
|
|
4336
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
|
+
}>;
|
|
4337
5006
|
export type WhatsAppInteractiveContent = {
|
|
4338
5007
|
readonly interactive: WhatsAppInteractive;
|
|
4339
5008
|
};
|