samva 0.46.0 → 0.47.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 +13 -7
- package/README.md +107 -9
- package/dist/agent/index.d.ts +56 -0
- package/dist/agent/index.js +52 -0
- package/dist/agent/runtime.d.ts +3 -0
- package/dist/agent/runtime.js +74 -0
- package/dist/agent/test.d.ts +31 -0
- package/dist/agent/test.js +66 -0
- package/dist/agent/types.d.ts +123 -0
- package/dist/client/client/client.gen.d.ts +1 -1
- package/dist/client/client/index.d.ts +10 -10
- package/dist/client/client/types.gen.d.ts +4 -4
- package/dist/client/client/utils.gen.d.ts +2 -2
- package/dist/client/client.gen.d.ts +2 -2
- package/dist/client/core/bodySerializer.gen.d.ts +1 -1
- package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/client/core/types.gen.d.ts +2 -2
- package/dist/client/core/utils.gen.d.ts +1 -1
- package/dist/client/sdk.gen.d.ts +41 -161
- package/dist/client/sdk.gen.js +1302 -1598
- package/dist/client/types.gen.d.ts +377 -966
- package/dist/effect/accounts.d.ts +6 -6
- package/dist/effect/accounts.js +2 -1
- package/dist/effect/agents.d.ts +355 -23
- package/dist/effect/agents.js +6 -3
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +2 -1
- package/dist/effect/api-keys.d.ts +13 -13
- package/dist/effect/api-keys.js +2 -1
- package/dist/effect/approval-requests.d.ts +4 -4
- package/dist/effect/approval-requests.js +2 -1
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +2 -1
- package/dist/effect/brands.d.ts +7 -7
- package/dist/effect/brands.js +2 -1
- package/dist/effect/campaigns.d.ts +205 -205
- package/dist/effect/campaigns.js +2 -1
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/contact-groups.d.ts +18 -18
- package/dist/effect/contact-groups.js +2 -1
- package/dist/effect/contacts.d.ts +41 -33
- package/dist/effect/contacts.js +8 -3
- package/dist/effect/conversations.d.ts +17 -17
- package/dist/effect/conversations.js +2 -1
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +2 -1
- package/dist/effect/descriptors/accounts.d.ts +59 -0
- package/dist/effect/descriptors/accounts.js +57 -0
- package/dist/effect/descriptors/agents.d.ts +129 -0
- package/dist/effect/descriptors/agents.js +127 -0
- package/dist/effect/descriptors/analytics.d.ts +56 -0
- package/dist/effect/descriptors/analytics.js +48 -0
- package/dist/effect/descriptors/api-keys.d.ts +80 -0
- package/dist/effect/descriptors/api-keys.js +80 -0
- package/dist/effect/descriptors/approval-requests.d.ts +41 -0
- package/dist/effect/descriptors/approval-requests.js +43 -0
- package/dist/effect/descriptors/attachments.d.ts +41 -0
- package/dist/effect/descriptors/attachments.js +43 -0
- package/dist/effect/descriptors/brands.d.ts +60 -0
- package/dist/effect/descriptors/brands.js +60 -0
- package/dist/effect/descriptors/campaigns.d.ts +148 -0
- package/dist/effect/descriptors/campaigns.js +144 -0
- package/dist/effect/descriptors/contact-groups.d.ts +99 -0
- package/dist/effect/descriptors/contact-groups.js +97 -0
- package/dist/effect/descriptors/contacts.d.ts +246 -0
- package/dist/effect/descriptors/contacts.js +234 -0
- package/dist/effect/descriptors/conversations.d.ts +130 -0
- package/dist/effect/descriptors/conversations.js +130 -0
- package/dist/effect/descriptors/custom-fields.d.ts +40 -0
- package/dist/effect/descriptors/custom-fields.js +40 -0
- package/dist/effect/descriptors/email.d.ts +607 -0
- package/dist/effect/descriptors/email.js +561 -0
- package/dist/effect/descriptors/events.d.ts +20 -0
- package/dist/effect/descriptors/events.js +20 -0
- package/dist/effect/descriptors/feedback.d.ts +11 -0
- package/dist/effect/descriptors/feedback.js +11 -0
- package/dist/effect/descriptors/integrations-catalog.d.ts +29 -0
- package/dist/effect/descriptors/integrations-catalog.js +27 -0
- package/dist/effect/descriptors/integrations.d.ts +70 -0
- package/dist/effect/descriptors/integrations.js +70 -0
- package/dist/effect/descriptors/journeys.d.ts +140 -0
- package/dist/effect/descriptors/journeys.js +140 -0
- package/dist/effect/descriptors/mailboxes.d.ts +724 -0
- package/dist/effect/descriptors/mailboxes.js +728 -0
- package/dist/effect/descriptors/media.d.ts +51 -0
- package/dist/effect/descriptors/media.js +53 -0
- package/dist/effect/descriptors/messages.d.ts +99 -0
- package/dist/effect/descriptors/messages.js +97 -0
- package/dist/effect/descriptors/namespaces.d.ts +110 -0
- package/dist/effect/descriptors/namespaces.js +114 -0
- package/dist/effect/descriptors/newsletter-domains.d.ts +42 -0
- package/dist/effect/descriptors/newsletter-domains.js +46 -0
- package/dist/effect/descriptors/newsletter-issues.d.ts +112 -0
- package/dist/effect/descriptors/newsletter-issues.js +116 -0
- package/dist/effect/descriptors/newsletters.d.ts +51 -0
- package/dist/effect/descriptors/newsletters.js +53 -0
- package/dist/effect/descriptors/operations.d.ts +31 -0
- package/dist/effect/descriptors/operations.js +33 -0
- package/dist/effect/descriptors/organizations.d.ts +111 -0
- package/dist/effect/descriptors/organizations.js +93 -0
- package/dist/effect/descriptors/policies.d.ts +32 -0
- package/dist/effect/descriptors/policies.js +36 -0
- package/dist/effect/descriptors/scheduled-messages.d.ts +50 -0
- package/dist/effect/descriptors/scheduled-messages.js +50 -0
- package/dist/effect/descriptors/subscriptions.d.ts +11 -0
- package/dist/effect/descriptors/subscriptions.js +11 -0
- package/dist/effect/descriptors/template-registrations.d.ts +32 -0
- package/dist/effect/descriptors/template-registrations.js +36 -0
- package/dist/effect/descriptors/template-share-links.d.ts +52 -0
- package/dist/effect/descriptors/template-share-links.js +56 -0
- package/dist/effect/descriptors/templates.d.ts +365 -0
- package/dist/effect/descriptors/templates.js +355 -0
- package/dist/effect/descriptors/topic-forms.d.ts +52 -0
- package/dist/effect/descriptors/topic-forms.js +56 -0
- package/dist/effect/descriptors/topics.d.ts +89 -0
- package/dist/effect/descriptors/topics.js +87 -0
- package/dist/effect/descriptors/webhooks.d.ts +110 -0
- package/dist/effect/descriptors/webhooks.js +110 -0
- package/dist/effect/descriptors/whats-app-flows.d.ts +99 -0
- package/dist/effect/descriptors/whats-app-flows.js +97 -0
- package/dist/effect/descriptors/whats-app-setup-links.d.ts +40 -0
- package/dist/effect/descriptors/whats-app-setup-links.js +40 -0
- package/dist/effect/descriptors/whats-app.d.ts +116 -0
- package/dist/effect/descriptors/whats-app.js +108 -0
- package/dist/effect/descriptors/whoami.d.ts +11 -0
- package/dist/effect/descriptors/whoami.js +11 -0
- package/dist/effect/email.d.ts +78 -78
- package/dist/effect/email.js +2 -1
- package/dist/effect/errors.d.ts +2 -2
- package/dist/effect/events.d.ts +3 -3
- package/dist/effect/events.js +2 -1
- package/dist/effect/feedback.d.ts +2 -2
- package/dist/effect/feedback.js +2 -1
- package/dist/effect/generated/accounts.d.ts +19 -9
- package/dist/effect/generated/accounts.js +1 -0
- package/dist/effect/generated/agents.d.ts +2967 -690
- package/dist/effect/generated/agents.js +54 -13
- package/dist/effect/generated/analytics.d.ts +1 -1
- package/dist/effect/generated/api-keys.d.ts +1 -1
- package/dist/effect/generated/approval-requests.d.ts +13 -13
- package/dist/effect/generated/attachments.d.ts +1 -1
- package/dist/effect/generated/brands.d.ts +1 -1
- package/dist/effect/generated/campaigns.d.ts +230 -230
- package/dist/effect/generated/contact-events.d.ts +4 -4
- package/dist/effect/generated/contact-groups.d.ts +1 -1
- package/dist/effect/generated/contacts.d.ts +907 -49
- package/dist/effect/generated/contacts.js +62 -3
- package/dist/effect/generated/conversations.d.ts +1 -1
- package/dist/effect/generated/custom-fields.d.ts +1 -1
- package/dist/effect/generated/email.d.ts +1 -1
- package/dist/effect/generated/events.d.ts +12 -12
- package/dist/effect/generated/feedback.d.ts +1 -1
- package/dist/effect/generated/index.d.ts +84 -88
- package/dist/effect/generated/integrations-catalog.d.ts +3 -3
- package/dist/effect/generated/integrations.d.ts +15 -15
- package/dist/effect/generated/journeys.d.ts +336 -96
- package/dist/effect/generated/journeys.js +3 -1
- package/dist/effect/generated/mailboxes.d.ts +93 -95
- package/dist/effect/generated/mailboxes.js +21 -25
- package/dist/effect/generated/media.d.ts +1 -1
- package/dist/effect/generated/messages.d.ts +1 -1
- package/dist/effect/generated/namespaces.d.ts +1 -1
- package/dist/effect/generated/newsletter-domains.d.ts +1 -1
- package/dist/effect/generated/newsletter-issues.d.ts +1 -1
- package/dist/effect/generated/newsletters.d.ts +1 -1
- package/dist/effect/generated/operations.d.ts +1 -1
- package/dist/effect/generated/organizations.d.ts +1 -1
- package/dist/effect/generated/policies.d.ts +1 -1
- package/dist/effect/generated/scheduled-messages.d.ts +147 -147
- package/dist/effect/generated/shared.d.ts +408 -102
- package/dist/effect/generated/shared.js +80 -36
- package/dist/effect/generated/subscriptions.d.ts +1 -1
- package/dist/effect/generated/template-registrations.d.ts +1 -4
- package/dist/effect/generated/template-registrations.js +2 -6
- package/dist/effect/generated/template-share-links.d.ts +1 -1
- package/dist/effect/generated/templates.d.ts +1 -1
- package/dist/effect/generated/topic-forms.d.ts +1 -1
- package/dist/effect/generated/topics.d.ts +1 -1
- package/dist/effect/generated/webhooks.d.ts +1 -1
- package/dist/effect/generated/whats-app-flows.d.ts +1 -1
- package/dist/effect/generated/whats-app-setup-links.d.ts +1 -1
- package/dist/effect/generated/whats-app.d.ts +1 -1
- package/dist/effect/generated/whoami.d.ts +1 -1
- package/dist/effect/generated-metadata.d.ts +18 -84
- package/dist/effect/generated-metadata.js +362 -415
- package/dist/effect/index.d.ts +45 -47
- package/dist/effect/index.js +1 -3
- package/dist/effect/integrations-catalog.d.ts +3 -3
- package/dist/effect/integrations-catalog.js +2 -1
- package/dist/effect/integrations.d.ts +11 -11
- package/dist/effect/integrations.js +2 -1
- package/dist/effect/internal/client.d.ts +3 -3
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/mailbox-events.d.ts +2 -2
- package/dist/effect/internal/operation.d.ts +24 -5
- package/dist/effect/internal/operation.js +25 -22
- package/dist/effect/internal/send.d.ts +4 -4
- package/dist/effect/journeys.d.ts +46 -22
- package/dist/effect/journeys.js +2 -1
- package/dist/effect/mailboxes.d.ts +163 -163
- package/dist/effect/mailboxes.js +2 -1
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +2 -1
- package/dist/effect/messages.d.ts +17 -17
- package/dist/effect/messages.js +2 -1
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/namespaces.js +2 -1
- package/dist/effect/newsletter-domains.d.ts +6 -6
- package/dist/effect/newsletter-domains.js +2 -1
- package/dist/effect/newsletter-issues.d.ts +11 -11
- package/dist/effect/newsletter-issues.js +2 -1
- package/dist/effect/newsletters.d.ts +5 -5
- package/dist/effect/newsletters.js +2 -1
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +2 -1
- package/dist/effect/organizations.d.ts +12 -12
- package/dist/effect/organizations.js +2 -1
- package/dist/effect/policies.d.ts +3 -3
- package/dist/effect/policies.js +2 -1
- package/dist/effect/scheduled-messages.d.ts +371 -371
- package/dist/effect/scheduled-messages.js +2 -1
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +2 -1
- package/dist/effect/template-registrations.d.ts +3 -3
- package/dist/effect/template-registrations.js +2 -1
- package/dist/effect/template-share-links.d.ts +5 -5
- package/dist/effect/template-share-links.js +2 -1
- package/dist/effect/templates.d.ts +46 -46
- package/dist/effect/templates.js +2 -1
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topic-forms.js +2 -1
- package/dist/effect/topics.d.ts +13 -13
- package/dist/effect/topics.js +2 -1
- package/dist/effect/webhooks.d.ts +16 -16
- package/dist/effect/webhooks.js +2 -1
- package/dist/effect/whatsapp-flows.d.ts +10 -10
- package/dist/effect/whatsapp-flows.js +2 -1
- package/dist/effect/whatsapp-setup-links.d.ts +6 -6
- package/dist/effect/whatsapp-setup-links.js +2 -1
- package/dist/effect/whatsapp.d.ts +12 -12
- package/dist/effect/whatsapp.js +2 -1
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +10 -14
- package/dist/promises/client.js +3 -7
- package/dist/promises/errors.gen.d.ts +1 -1
- package/dist/promises/index.d.ts +5 -5
- package/dist/promises/request.d.ts +2 -2
- package/dist/promises/request.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.d.ts +10 -2
- package/dist/request-policy.js +3 -5
- package/dist/service-map.d.ts +18 -75
- package/package.json +17 -29
- package/dist/effect/extension-installations.d.ts +0 -132
- package/dist/effect/extension-installations.js +0 -28
- package/dist/effect/extensions.d.ts +0 -102
- package/dist/effect/extensions.js +0 -20
- package/dist/effect/generated/extension-installations.d.ts +0 -2761
- package/dist/effect/generated/extension-installations.js +0 -405
- package/dist/effect/generated/extensions.d.ts +0 -1037
- package/dist/effect/generated/extensions.js +0 -214
- package/dist/mailbox/dispatch.d.ts +0 -10
- package/dist/mailbox/dispatch.js +0 -66
- package/dist/mailbox/index.d.ts +0 -17
- package/dist/mailbox/index.js +0 -30
- package/dist/mailbox/test.d.ts +0 -25
- package/dist/mailbox/test.js +0 -181
- package/dist/mailbox/types.d.ts +0 -221
- package/dist/mailbox/webhook.d.ts +0 -10
- package/dist/mailbox/webhook.js +0 -41
- package/dist/service-map.js +0 -830
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as EffectBrand from "effect/Brand";
|
|
2
2
|
import { HttpApiMiddleware, HttpApiSecurity } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
|
-
import { AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, NonEmptySensitiveString as __SamvaRuntimeNonEmptySensitiveString, SensitiveString as __SamvaRuntimeSensitiveString } from "../runtime";
|
|
4
|
+
import { AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, NonEmptySensitiveString as __SamvaRuntimeNonEmptySensitiveString, SensitiveString as __SamvaRuntimeSensitiveString } from "../runtime.js";
|
|
5
5
|
export type JsonValue = string | number | boolean | null | ReadonlyArray<JsonValue> | {
|
|
6
6
|
readonly [x: string]: JsonValue;
|
|
7
7
|
};
|
|
@@ -99,8 +99,6 @@ export declare const AgentToolScope: Schema.Union<readonly [Schema.Struct<{
|
|
|
99
99
|
readonly kind: Schema.Literal<"selected">;
|
|
100
100
|
readonly names: Schema.$Array<Schema.String>;
|
|
101
101
|
}>]>;
|
|
102
|
-
export type TemplateId = string & EffectBrand.Brand<"TemplateId">;
|
|
103
|
-
export declare const TemplateId: Schema.brand<Schema.String, "TemplateId">;
|
|
104
102
|
export type PolicyEffect = "read" | "write" | "final";
|
|
105
103
|
export declare const PolicyEffect: Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>;
|
|
106
104
|
export type ApiKeyId = string & EffectBrand.Brand<"ApiKeyId">;
|
|
@@ -121,6 +119,8 @@ export type Weekday = "monday" | "tuesday" | "wednesday" | "thursday" | "friday"
|
|
|
121
119
|
export declare const Weekday: Schema.Union<readonly [Schema.Literal<"monday">, Schema.Literal<"tuesday">, Schema.Literal<"wednesday">, Schema.Literal<"thursday">, Schema.Literal<"friday">, Schema.Literal<"saturday">, Schema.Literal<"sunday">]>;
|
|
122
120
|
export type ClockTime = string;
|
|
123
121
|
export declare const ClockTime: Schema.String;
|
|
122
|
+
export type TemplateId = string & EffectBrand.Brand<"TemplateId">;
|
|
123
|
+
export declare const TemplateId: Schema.brand<Schema.String, "TemplateId">;
|
|
124
124
|
declare const PaymentRequiredError_base: Schema.Class<PaymentRequiredError, Schema.Struct<{
|
|
125
125
|
readonly _tag: Schema.tag<"PaymentRequiredError">;
|
|
126
126
|
readonly message: Schema.String;
|
|
@@ -429,10 +429,6 @@ export type OperationId = string & EffectBrand.Brand<"OperationId">;
|
|
|
429
429
|
export declare const OperationId: Schema.brand<Schema.String, "OperationId">;
|
|
430
430
|
export type EmailSenderId = string & EffectBrand.Brand<"EmailSenderId">;
|
|
431
431
|
export declare const EmailSenderId: Schema.brand<Schema.String, "EmailSenderId">;
|
|
432
|
-
export type ExtensionId = string & EffectBrand.Brand<"ExtensionId">;
|
|
433
|
-
export declare const ExtensionId: Schema.brand<Schema.String, "ExtensionId">;
|
|
434
|
-
export type ExtensionVersionId = string & EffectBrand.Brand<"ExtensionVersionId">;
|
|
435
|
-
export declare const ExtensionVersionId: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
436
432
|
export type FeedbackContext = {
|
|
437
433
|
readonly operation?: string | null;
|
|
438
434
|
readonly resourceId?: string | null;
|
|
@@ -469,6 +465,10 @@ export declare const JourneyTagAddedTrigger: Schema.Struct<{
|
|
|
469
465
|
}>;
|
|
470
466
|
export type JourneyNodeId = string;
|
|
471
467
|
export declare const JourneyNodeId: Schema.String;
|
|
468
|
+
export type TemplateRegistrationId = string & EffectBrand.Brand<"TemplateRegistrationId">;
|
|
469
|
+
export declare const TemplateRegistrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
470
|
+
export type TemplateChannelVariantId = string & EffectBrand.Brand<"TemplateChannelVariantId">;
|
|
471
|
+
export declare const TemplateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
472
472
|
export type JourneyWaitConfig = {
|
|
473
473
|
readonly durationSeconds: number;
|
|
474
474
|
};
|
|
@@ -529,6 +529,8 @@ export declare const JourneyUpdateTagsConfig: Schema.Struct<{
|
|
|
529
529
|
readonly add: Schema.$Array<Schema.String>;
|
|
530
530
|
readonly remove: Schema.$Array<Schema.String>;
|
|
531
531
|
}>;
|
|
532
|
+
export type ShopifyShop = string;
|
|
533
|
+
export declare const ShopifyShop: Schema.String;
|
|
532
534
|
export type MailboxChannel = "sms" | "whatsapp" | "email";
|
|
533
535
|
export declare const MailboxChannel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
534
536
|
export type MailboxMetadata = {
|
|
@@ -1146,30 +1148,6 @@ export type PublishAgentPayload = {
|
|
|
1146
1148
|
export declare const PublishAgentPayload: Schema.Struct<{
|
|
1147
1149
|
readonly revision: Schema.String;
|
|
1148
1150
|
}>;
|
|
1149
|
-
export type PublishExtensionVersionPayload = {
|
|
1150
|
-
readonly manifest: {
|
|
1151
|
-
readonly name: string;
|
|
1152
|
-
readonly displayName: string;
|
|
1153
|
-
readonly description?: string | null;
|
|
1154
|
-
readonly version: string;
|
|
1155
|
-
readonly runtime: "hosted" | "webhook";
|
|
1156
|
-
readonly events: ReadonlyArray<"mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded">;
|
|
1157
|
-
readonly permissions: ReadonlyArray<"read" | "update" | "send" | "quarantine.read">;
|
|
1158
|
-
};
|
|
1159
|
-
readonly bundle?: string | null;
|
|
1160
|
-
};
|
|
1161
|
-
export declare const PublishExtensionVersionPayload: Schema.Struct<{
|
|
1162
|
-
readonly manifest: Schema.Struct<{
|
|
1163
|
-
readonly name: Schema.String;
|
|
1164
|
-
readonly displayName: Schema.String;
|
|
1165
|
-
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1166
|
-
readonly version: Schema.String;
|
|
1167
|
-
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
1168
|
-
readonly events: Schema.$Array<Schema.Union<readonly [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">]>>;
|
|
1169
|
-
readonly permissions: Schema.$Array<Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>>;
|
|
1170
|
-
}>;
|
|
1171
|
-
readonly bundle: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1172
|
-
}>;
|
|
1173
1151
|
export type PublishJourneyPayload = {
|
|
1174
1152
|
readonly revision: string;
|
|
1175
1153
|
};
|
|
@@ -1356,6 +1334,12 @@ export type AccountLinks = {
|
|
|
1356
1334
|
readonly [x: string]: IntegrationAccountId;
|
|
1357
1335
|
};
|
|
1358
1336
|
export declare const AccountLinks: Schema.$Record<Schema.String, Schema.brand<Schema.String, "IntegrationAccountId">>;
|
|
1337
|
+
export type MergeContactByConnectionPayload = {
|
|
1338
|
+
readonly connection: IntegrationAccountId;
|
|
1339
|
+
};
|
|
1340
|
+
export declare const MergeContactByConnectionPayload: Schema.Struct<{
|
|
1341
|
+
readonly connection: Schema.brand<Schema.String, "IntegrationAccountId">;
|
|
1342
|
+
}>;
|
|
1359
1343
|
export type ConnectAccountPayload = {
|
|
1360
1344
|
readonly provider: IntegrationKey;
|
|
1361
1345
|
readonly input?: JsonObject;
|
|
@@ -1474,6 +1458,12 @@ export type ConversationContacts = {
|
|
|
1474
1458
|
export declare const ConversationContacts: Schema.Struct<{
|
|
1475
1459
|
readonly contactIds: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "ContactId">]>, readonly [Schema.brand<Schema.String, "ContactId">]>;
|
|
1476
1460
|
}>;
|
|
1461
|
+
export type MergeContactPayload = {
|
|
1462
|
+
readonly from: ContactId;
|
|
1463
|
+
};
|
|
1464
|
+
export declare const MergeContactPayload: Schema.Struct<{
|
|
1465
|
+
readonly from: Schema.brand<Schema.String, "ContactId">;
|
|
1466
|
+
}>;
|
|
1477
1467
|
export type CreateTemplateFromBriefPayload = {
|
|
1478
1468
|
readonly brief: string;
|
|
1479
1469
|
readonly name?: string | null;
|
|
@@ -1539,32 +1529,6 @@ export declare const AgentIntegrationGrant: Schema.Struct<{
|
|
|
1539
1529
|
readonly names: Schema.$Array<Schema.String>;
|
|
1540
1530
|
}>]>;
|
|
1541
1531
|
}>;
|
|
1542
|
-
export type SendMailboxChatPayload = {
|
|
1543
|
-
readonly channel: "whatsapp" | "sms";
|
|
1544
|
-
readonly to: string;
|
|
1545
|
-
readonly text?: string | null;
|
|
1546
|
-
readonly templateId?: TemplateId | null;
|
|
1547
|
-
readonly templateData?: JsonObject | null;
|
|
1548
|
-
};
|
|
1549
|
-
export declare const SendMailboxChatPayload: Schema.Struct<{
|
|
1550
|
-
readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
|
|
1551
|
-
readonly to: Schema.String;
|
|
1552
|
-
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1553
|
-
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1554
|
-
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
1555
|
-
}>;
|
|
1556
|
-
export type ReplyMailboxChatPayload = {
|
|
1557
|
-
readonly channel: "whatsapp" | "sms";
|
|
1558
|
-
readonly text?: string | null;
|
|
1559
|
-
readonly templateId?: TemplateId | null;
|
|
1560
|
-
readonly templateData?: JsonObject | null;
|
|
1561
|
-
};
|
|
1562
|
-
export declare const ReplyMailboxChatPayload: Schema.Struct<{
|
|
1563
|
-
readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
|
|
1564
|
-
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1565
|
-
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1566
|
-
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
1567
|
-
}>;
|
|
1568
1532
|
export type PolicySubject = {
|
|
1569
1533
|
readonly kind: "agent";
|
|
1570
1534
|
readonly id: AgentId;
|
|
@@ -1591,6 +1555,18 @@ export declare const PolicySubject: Schema.Union<readonly [Schema.Struct<{
|
|
|
1591
1555
|
readonly kind: Schema.Literal<"extension">;
|
|
1592
1556
|
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
1593
1557
|
}>]>;
|
|
1558
|
+
export type AgentModuleTool = {
|
|
1559
|
+
readonly description: string;
|
|
1560
|
+
readonly input: JsonObject;
|
|
1561
|
+
readonly approval?: PolicyRequirement;
|
|
1562
|
+
readonly replay: "safe" | "unsafe";
|
|
1563
|
+
};
|
|
1564
|
+
export declare const AgentModuleTool: Schema.Struct<{
|
|
1565
|
+
readonly description: Schema.String;
|
|
1566
|
+
readonly input: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
1567
|
+
readonly approval: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>>;
|
|
1568
|
+
readonly replay: Schema.Union<readonly [Schema.Literal<"safe">, Schema.Literal<"unsafe">]>;
|
|
1569
|
+
}>;
|
|
1594
1570
|
export type AgentModelChoice = AgentModel | CatalogModelId;
|
|
1595
1571
|
export declare const AgentModelChoice: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
1596
1572
|
export type WorkingHoursRange = {
|
|
@@ -1603,6 +1579,32 @@ export declare const WorkingHoursRange: Schema.Struct<{
|
|
|
1603
1579
|
readonly opens: Schema.String;
|
|
1604
1580
|
readonly closes: Schema.String;
|
|
1605
1581
|
}>;
|
|
1582
|
+
export type SendMailboxChatPayload = {
|
|
1583
|
+
readonly channel: "whatsapp" | "sms";
|
|
1584
|
+
readonly to: string;
|
|
1585
|
+
readonly text?: string | null;
|
|
1586
|
+
readonly templateId?: TemplateId | null;
|
|
1587
|
+
readonly templateData?: JsonObject | null;
|
|
1588
|
+
};
|
|
1589
|
+
export declare const SendMailboxChatPayload: Schema.Struct<{
|
|
1590
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
|
|
1591
|
+
readonly to: Schema.String;
|
|
1592
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1593
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1594
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
1595
|
+
}>;
|
|
1596
|
+
export type ReplyMailboxChatPayload = {
|
|
1597
|
+
readonly channel: "whatsapp" | "sms";
|
|
1598
|
+
readonly text?: string | null;
|
|
1599
|
+
readonly templateId?: TemplateId | null;
|
|
1600
|
+
readonly templateData?: JsonObject | null;
|
|
1601
|
+
};
|
|
1602
|
+
export declare const ReplyMailboxChatPayload: Schema.Struct<{
|
|
1603
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
|
|
1604
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1605
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1606
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
1607
|
+
}>;
|
|
1606
1608
|
export type UpdateAgentPayload = {
|
|
1607
1609
|
readonly name?: AgentName | null;
|
|
1608
1610
|
readonly monthlySpendCapDollars?: MonthlySpendCapDollars | null;
|
|
@@ -1974,11 +1976,13 @@ export declare const MessageSummary: Schema.Struct<{
|
|
|
1974
1976
|
}>;
|
|
1975
1977
|
export type JourneySendEmailConfig = {
|
|
1976
1978
|
readonly template: TemplateId | string;
|
|
1979
|
+
readonly publicationId?: TemplatePublicationId;
|
|
1977
1980
|
readonly senderId?: EmailSenderId;
|
|
1978
1981
|
readonly templateData?: JsonObject;
|
|
1979
1982
|
};
|
|
1980
1983
|
export declare const JourneySendEmailConfig: Schema.Struct<{
|
|
1981
1984
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1985
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
1982
1986
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
1983
1987
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
1984
1988
|
}>;
|
|
@@ -2016,24 +2020,6 @@ export declare const TopicUpdatePayload: Schema.Struct<{
|
|
|
2016
2020
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
2017
2021
|
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2018
2022
|
}>;
|
|
2019
|
-
export type ExtensionVersionRef = {
|
|
2020
|
-
readonly id: ExtensionVersionId;
|
|
2021
|
-
readonly version: string;
|
|
2022
|
-
};
|
|
2023
|
-
export declare const ExtensionVersionRef: Schema.Struct<{
|
|
2024
|
-
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
2025
|
-
readonly version: Schema.String;
|
|
2026
|
-
}>;
|
|
2027
|
-
export type UpgradeExtensionPayload = {
|
|
2028
|
-
readonly version?: string | ExtensionVersionId | null;
|
|
2029
|
-
readonly acceptPermissions?: ReadonlyArray<"permission:read" | "permission:update" | "permission:send" | "permission:quarantine.read" | "event:mailbox.message.received" | "event:mailbox.message.sent" | "event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.quarantined" | "event:mailbox.message.released" | "event:mailbox.message.discarded"> | null;
|
|
2030
|
-
readonly dryRun?: boolean | null;
|
|
2031
|
-
};
|
|
2032
|
-
export declare const UpgradeExtensionPayload: Schema.Struct<{
|
|
2033
|
-
readonly version: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.brand<Schema.String, "ExtensionVersionId">, Schema.Null]>>;
|
|
2034
|
-
readonly acceptPermissions: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"permission:read">, Schema.Literal<"permission:update">, Schema.Literal<"permission:send">, Schema.Literal<"permission:quarantine.read">, Schema.Literal<"event:mailbox.message.received">, Schema.Literal<"event:mailbox.message.sent">, Schema.Literal<"event:mailbox.action.pending_approval">, Schema.Literal<"event:mailbox.action.resolved">, Schema.Literal<"event:mailbox.message.quarantined">, Schema.Literal<"event:mailbox.message.released">, Schema.Literal<"event:mailbox.message.discarded">]>>, Schema.Null]>>;
|
|
2035
|
-
readonly dryRun: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2036
|
-
}>;
|
|
2037
2023
|
export type SendFeedback = {
|
|
2038
2024
|
readonly message: string;
|
|
2039
2025
|
readonly category?: "bug" | "confusing" | "missing" | "other" | null;
|
|
@@ -3133,6 +3119,7 @@ export declare const JourneySendEmailNode: Schema.Struct<{
|
|
|
3133
3119
|
readonly type: Schema.Literal<"send_email">;
|
|
3134
3120
|
readonly config: Schema.Struct<{
|
|
3135
3121
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3122
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
3136
3123
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
3137
3124
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
3138
3125
|
}>;
|
|
@@ -3851,6 +3838,34 @@ export declare const WhatsAppTemplateDispatch: Schema.Struct<{
|
|
|
3851
3838
|
}>]>>>;
|
|
3852
3839
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3853
3840
|
}>;
|
|
3841
|
+
export type JourneySendWhatsAppConfig = {
|
|
3842
|
+
readonly template: TemplateId | string;
|
|
3843
|
+
readonly templateData?: WhatsAppTemplateDispatchData;
|
|
3844
|
+
readonly bindings?: WhatsAppTemplateBindings;
|
|
3845
|
+
readonly businessAccountId?: WhatsAppBusinessAccountId;
|
|
3846
|
+
readonly pinnedRegistration?: {
|
|
3847
|
+
readonly registrationId: TemplateRegistrationId;
|
|
3848
|
+
readonly templateChannelVariantId: TemplateChannelVariantId;
|
|
3849
|
+
};
|
|
3850
|
+
readonly eventBindings?: {
|
|
3851
|
+
readonly [x: string]: string;
|
|
3852
|
+
};
|
|
3853
|
+
};
|
|
3854
|
+
export declare const JourneySendWhatsAppConfig: Schema.Struct<{
|
|
3855
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3856
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
3857
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3858
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
3859
|
+
}>, Schema.Struct<{
|
|
3860
|
+
readonly customField: Schema.String;
|
|
3861
|
+
}>]>>>;
|
|
3862
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3863
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
3864
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
3865
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
3866
|
+
}>>;
|
|
3867
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3868
|
+
}>;
|
|
3854
3869
|
export type JourneyWaitForEventNode = {
|
|
3855
3870
|
readonly type: "wait_for_event";
|
|
3856
3871
|
readonly config: JourneyWaitForEventConfig;
|
|
@@ -4493,7 +4508,7 @@ export declare const WhatsAppCampaignContentInput: Schema.Struct<{
|
|
|
4493
4508
|
}>;
|
|
4494
4509
|
export type WhatsAppJourneySendNode = {
|
|
4495
4510
|
readonly type: "send_whatsapp";
|
|
4496
|
-
readonly config:
|
|
4511
|
+
readonly config: JourneySendWhatsAppConfig;
|
|
4497
4512
|
readonly next: readonly [JourneyNextEdge];
|
|
4498
4513
|
};
|
|
4499
4514
|
export declare const WhatsAppJourneySendNode: Schema.Struct<{
|
|
@@ -4507,6 +4522,11 @@ export declare const WhatsAppJourneySendNode: Schema.Struct<{
|
|
|
4507
4522
|
readonly customField: Schema.String;
|
|
4508
4523
|
}>]>>>;
|
|
4509
4524
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4525
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
4526
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
4527
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
4528
|
+
}>>;
|
|
4529
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
4510
4530
|
}>;
|
|
4511
4531
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4512
4532
|
readonly nodeId: Schema.String;
|
|
@@ -4602,13 +4622,13 @@ export type AgentDefinition = {
|
|
|
4602
4622
|
readonly knowledgeSourceIds?: ReadonlyArray<KnowledgeSourceId>;
|
|
4603
4623
|
readonly endpointIds: ReadonlyArray<MailboxEndpointId>;
|
|
4604
4624
|
readonly integrations: ReadonlyArray<AgentIntegrationGrant>;
|
|
4605
|
-
readonly eventTriggers?: ReadonlyArray<string>;
|
|
4606
|
-
readonly followUpTemplate?: TemplateId | string;
|
|
4607
4625
|
readonly policy: PolicyConfiguration;
|
|
4608
4626
|
readonly model: AgentModelChoice;
|
|
4609
4627
|
readonly reasoning: AgentReasoning;
|
|
4610
4628
|
readonly workingHours: WorkingHours | null;
|
|
4611
4629
|
readonly takeoverTimeoutMinutes: number;
|
|
4630
|
+
readonly eventTriggers?: ReadonlyArray<string>;
|
|
4631
|
+
readonly followUpTemplate?: TemplateId | string;
|
|
4612
4632
|
};
|
|
4613
4633
|
export declare const AgentDefinition: Schema.Struct<{
|
|
4614
4634
|
readonly instructions: Schema.String;
|
|
@@ -4627,8 +4647,6 @@ export declare const AgentDefinition: Schema.Struct<{
|
|
|
4627
4647
|
readonly names: Schema.$Array<Schema.String>;
|
|
4628
4648
|
}>]>;
|
|
4629
4649
|
}>>;
|
|
4630
|
-
readonly eventTriggers: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4631
|
-
readonly followUpTemplate: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>>;
|
|
4632
4650
|
readonly policy: Schema.Struct<{
|
|
4633
4651
|
readonly presets: Schema.$Array<Schema.String>;
|
|
4634
4652
|
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -4693,23 +4711,47 @@ export declare const AgentDefinition: Schema.Struct<{
|
|
|
4693
4711
|
}>>;
|
|
4694
4712
|
}>, Schema.Null]>;
|
|
4695
4713
|
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
4714
|
+
readonly eventTriggers: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4715
|
+
readonly followUpTemplate: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>>;
|
|
4696
4716
|
}>;
|
|
4697
|
-
export type
|
|
4698
|
-
readonly
|
|
4699
|
-
readonly version
|
|
4700
|
-
readonly
|
|
4701
|
-
readonly
|
|
4702
|
-
readonly
|
|
4703
|
-
readonly policy
|
|
4704
|
-
readonly
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
readonly
|
|
4708
|
-
readonly
|
|
4709
|
-
readonly
|
|
4710
|
-
readonly
|
|
4711
|
-
|
|
4712
|
-
|
|
4717
|
+
export type AgentModuleManifest = {
|
|
4718
|
+
readonly name: AgentName;
|
|
4719
|
+
readonly version: string;
|
|
4720
|
+
readonly knowledgeSourceIds?: ReadonlyArray<KnowledgeSourceId>;
|
|
4721
|
+
readonly endpointIds: ReadonlyArray<MailboxEndpointId>;
|
|
4722
|
+
readonly integrations: ReadonlyArray<AgentIntegrationGrant>;
|
|
4723
|
+
readonly policy: PolicyConfiguration;
|
|
4724
|
+
readonly model: AgentModelChoice;
|
|
4725
|
+
readonly reasoning: AgentReasoning;
|
|
4726
|
+
readonly workingHours: WorkingHours | null;
|
|
4727
|
+
readonly takeoverTimeoutMinutes: number;
|
|
4728
|
+
readonly eventTriggers?: ReadonlyArray<string>;
|
|
4729
|
+
readonly followUpTemplate?: TemplateId | string;
|
|
4730
|
+
readonly tools: {
|
|
4731
|
+
readonly [x: string]: AgentModuleTool;
|
|
4732
|
+
};
|
|
4733
|
+
readonly skills: ReadonlyArray<string>;
|
|
4734
|
+
readonly events: ReadonlyArray<string>;
|
|
4735
|
+
readonly schedules: ReadonlyArray<string>;
|
|
4736
|
+
};
|
|
4737
|
+
export declare const AgentModuleManifest: Schema.Struct<{
|
|
4738
|
+
readonly name: Schema.String;
|
|
4739
|
+
readonly version: Schema.String;
|
|
4740
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
4741
|
+
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
4742
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
4743
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
4744
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"org">, Schema.Literal<"contact">]>>;
|
|
4745
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
4746
|
+
readonly kind: Schema.Literal<"all">;
|
|
4747
|
+
}>, Schema.Struct<{
|
|
4748
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
4749
|
+
}>, Schema.Struct<{
|
|
4750
|
+
readonly kind: Schema.Literal<"selected">;
|
|
4751
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
4752
|
+
}>]>;
|
|
4753
|
+
}>>;
|
|
4754
|
+
readonly policy: Schema.Struct<{
|
|
4713
4755
|
readonly presets: Schema.$Array<Schema.String>;
|
|
4714
4756
|
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4715
4757
|
readonly match: Schema.Struct<{
|
|
@@ -4761,8 +4803,29 @@ export declare const InstallExtensionPayload: Schema.Struct<{
|
|
|
4761
4803
|
readonly atLeast: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
4762
4804
|
}>]>>;
|
|
4763
4805
|
readonly instructions: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4764
|
-
}
|
|
4765
|
-
readonly
|
|
4806
|
+
}>;
|
|
4807
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
4808
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
4809
|
+
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
4810
|
+
readonly timeZone: Schema.String;
|
|
4811
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
4812
|
+
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">]>;
|
|
4813
|
+
readonly opens: Schema.String;
|
|
4814
|
+
readonly closes: Schema.String;
|
|
4815
|
+
}>>;
|
|
4816
|
+
}>, Schema.Null]>;
|
|
4817
|
+
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
4818
|
+
readonly eventTriggers: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4819
|
+
readonly followUpTemplate: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>>;
|
|
4820
|
+
readonly tools: Schema.$Record<Schema.String, Schema.Struct<{
|
|
4821
|
+
readonly description: Schema.String;
|
|
4822
|
+
readonly input: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
4823
|
+
readonly approval: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>>;
|
|
4824
|
+
readonly replay: Schema.Union<readonly [Schema.Literal<"safe">, Schema.Literal<"unsafe">]>;
|
|
4825
|
+
}>>;
|
|
4826
|
+
readonly skills: Schema.$Array<Schema.String>;
|
|
4827
|
+
readonly events: Schema.$Array<Schema.String>;
|
|
4828
|
+
readonly schedules: Schema.$Array<Schema.String>;
|
|
4766
4829
|
}>;
|
|
4767
4830
|
export type WhatsAppInteractive = WhatsAppButtonsMessage | WhatsAppListMessage | WhatsAppCtaUrlMessage | WhatsAppFlowMessage;
|
|
4768
4831
|
export declare const WhatsAppInteractive: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -5043,8 +5106,6 @@ export declare const CreateAgentPayload: Schema.Struct<{
|
|
|
5043
5106
|
readonly names: Schema.$Array<Schema.String>;
|
|
5044
5107
|
}>]>;
|
|
5045
5108
|
}>>;
|
|
5046
|
-
readonly eventTriggers: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5047
|
-
readonly followUpTemplate: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>>;
|
|
5048
5109
|
readonly policy: Schema.Struct<{
|
|
5049
5110
|
readonly presets: Schema.$Array<Schema.String>;
|
|
5050
5111
|
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -5109,6 +5170,8 @@ export declare const CreateAgentPayload: Schema.Struct<{
|
|
|
5109
5170
|
}>>;
|
|
5110
5171
|
}>, Schema.Null]>;
|
|
5111
5172
|
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
5173
|
+
readonly eventTriggers: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5174
|
+
readonly followUpTemplate: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>>;
|
|
5112
5175
|
}>, Schema.Null]>>;
|
|
5113
5176
|
}>;
|
|
5114
5177
|
export type ReplaceAgentDraftPayload = {
|
|
@@ -5134,8 +5197,6 @@ export declare const ReplaceAgentDraftPayload: Schema.Struct<{
|
|
|
5134
5197
|
readonly names: Schema.$Array<Schema.String>;
|
|
5135
5198
|
}>]>;
|
|
5136
5199
|
}>>;
|
|
5137
|
-
readonly eventTriggers: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5138
|
-
readonly followUpTemplate: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>>;
|
|
5139
5200
|
readonly policy: Schema.Struct<{
|
|
5140
5201
|
readonly presets: Schema.$Array<Schema.String>;
|
|
5141
5202
|
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -5200,6 +5261,8 @@ export declare const ReplaceAgentDraftPayload: Schema.Struct<{
|
|
|
5200
5261
|
}>>;
|
|
5201
5262
|
}>, Schema.Null]>;
|
|
5202
5263
|
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
5264
|
+
readonly eventTriggers: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5265
|
+
readonly followUpTemplate: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>>;
|
|
5203
5266
|
}>;
|
|
5204
5267
|
}>;
|
|
5205
5268
|
export type RunAgentTestPayload = {
|
|
@@ -5225,8 +5288,97 @@ export declare const RunAgentTestPayload: Schema.Struct<{
|
|
|
5225
5288
|
readonly names: Schema.$Array<Schema.String>;
|
|
5226
5289
|
}>]>;
|
|
5227
5290
|
}>>;
|
|
5291
|
+
readonly policy: Schema.Struct<{
|
|
5292
|
+
readonly presets: Schema.$Array<Schema.String>;
|
|
5293
|
+
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5294
|
+
readonly match: Schema.Struct<{
|
|
5295
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
5296
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
5297
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
5298
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5299
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5300
|
+
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<{
|
|
5301
|
+
readonly kind: Schema.Literal<"agent">;
|
|
5302
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
5303
|
+
}>, Schema.Struct<{
|
|
5304
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
5305
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
5306
|
+
}>, Schema.Struct<{
|
|
5307
|
+
readonly kind: Schema.Literal<"member">;
|
|
5308
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
5309
|
+
}>, Schema.Struct<{
|
|
5310
|
+
readonly kind: Schema.Literal<"extension">;
|
|
5311
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
5312
|
+
}>]>, Schema.Null]>>;
|
|
5313
|
+
}>;
|
|
5314
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5315
|
+
readonly decide: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
5316
|
+
readonly atLeast: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
5317
|
+
}>, Schema.Struct<{
|
|
5318
|
+
readonly match: Schema.Struct<{
|
|
5319
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
5320
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
5321
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
5322
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5323
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5324
|
+
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<{
|
|
5325
|
+
readonly kind: Schema.Literal<"agent">;
|
|
5326
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
5327
|
+
}>, Schema.Struct<{
|
|
5328
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
5329
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
5330
|
+
}>, Schema.Struct<{
|
|
5331
|
+
readonly kind: Schema.Literal<"member">;
|
|
5332
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
5333
|
+
}>, Schema.Struct<{
|
|
5334
|
+
readonly kind: Schema.Literal<"extension">;
|
|
5335
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
5336
|
+
}>]>, Schema.Null]>>;
|
|
5337
|
+
}>;
|
|
5338
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5339
|
+
readonly decide: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
5340
|
+
readonly atLeast: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
5341
|
+
}>]>>;
|
|
5342
|
+
readonly instructions: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5343
|
+
}>;
|
|
5344
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
5345
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
5346
|
+
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
5347
|
+
readonly timeZone: Schema.String;
|
|
5348
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
5349
|
+
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">]>;
|
|
5350
|
+
readonly opens: Schema.String;
|
|
5351
|
+
readonly closes: Schema.String;
|
|
5352
|
+
}>>;
|
|
5353
|
+
}>, Schema.Null]>;
|
|
5354
|
+
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
5228
5355
|
readonly eventTriggers: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5229
5356
|
readonly followUpTemplate: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>>;
|
|
5357
|
+
}>;
|
|
5358
|
+
}>;
|
|
5359
|
+
export type AgentModuleBundle = {
|
|
5360
|
+
readonly source: string;
|
|
5361
|
+
readonly manifest: AgentModuleManifest;
|
|
5362
|
+
};
|
|
5363
|
+
export declare const AgentModuleBundle: Schema.Struct<{
|
|
5364
|
+
readonly source: Schema.String;
|
|
5365
|
+
readonly manifest: Schema.Struct<{
|
|
5366
|
+
readonly name: Schema.String;
|
|
5367
|
+
readonly version: Schema.String;
|
|
5368
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
5369
|
+
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
5370
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
5371
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
5372
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"org">, Schema.Literal<"contact">]>>;
|
|
5373
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
5374
|
+
readonly kind: Schema.Literal<"all">;
|
|
5375
|
+
}>, Schema.Struct<{
|
|
5376
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
5377
|
+
}>, Schema.Struct<{
|
|
5378
|
+
readonly kind: Schema.Literal<"selected">;
|
|
5379
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
5380
|
+
}>]>;
|
|
5381
|
+
}>>;
|
|
5230
5382
|
readonly policy: Schema.Struct<{
|
|
5231
5383
|
readonly presets: Schema.$Array<Schema.String>;
|
|
5232
5384
|
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -5291,6 +5443,17 @@ export declare const RunAgentTestPayload: Schema.Struct<{
|
|
|
5291
5443
|
}>>;
|
|
5292
5444
|
}>, Schema.Null]>;
|
|
5293
5445
|
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
5446
|
+
readonly eventTriggers: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5447
|
+
readonly followUpTemplate: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>>;
|
|
5448
|
+
readonly tools: Schema.$Record<Schema.String, Schema.Struct<{
|
|
5449
|
+
readonly description: Schema.String;
|
|
5450
|
+
readonly input: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
5451
|
+
readonly approval: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>>;
|
|
5452
|
+
readonly replay: Schema.Union<readonly [Schema.Literal<"safe">, Schema.Literal<"unsafe">]>;
|
|
5453
|
+
}>>;
|
|
5454
|
+
readonly skills: Schema.$Array<Schema.String>;
|
|
5455
|
+
readonly events: Schema.$Array<Schema.String>;
|
|
5456
|
+
readonly schedules: Schema.$Array<Schema.String>;
|
|
5294
5457
|
}>;
|
|
5295
5458
|
}>;
|
|
5296
5459
|
export type WhatsAppInteractiveContent = {
|
|
@@ -5568,6 +5731,109 @@ export declare const JourneyBranchNode: Schema.Struct<{
|
|
|
5568
5731
|
}>>;
|
|
5569
5732
|
}>>;
|
|
5570
5733
|
}>;
|
|
5734
|
+
export type PublishAgentVersionPayload = {
|
|
5735
|
+
readonly revision: string;
|
|
5736
|
+
readonly bundle: AgentModuleBundle;
|
|
5737
|
+
};
|
|
5738
|
+
export declare const PublishAgentVersionPayload: Schema.Struct<{
|
|
5739
|
+
readonly revision: Schema.String;
|
|
5740
|
+
readonly bundle: Schema.Struct<{
|
|
5741
|
+
readonly source: Schema.String;
|
|
5742
|
+
readonly manifest: Schema.Struct<{
|
|
5743
|
+
readonly name: Schema.String;
|
|
5744
|
+
readonly version: Schema.String;
|
|
5745
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
5746
|
+
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
5747
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
5748
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
5749
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"org">, Schema.Literal<"contact">]>>;
|
|
5750
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
5751
|
+
readonly kind: Schema.Literal<"all">;
|
|
5752
|
+
}>, Schema.Struct<{
|
|
5753
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
5754
|
+
}>, Schema.Struct<{
|
|
5755
|
+
readonly kind: Schema.Literal<"selected">;
|
|
5756
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
5757
|
+
}>]>;
|
|
5758
|
+
}>>;
|
|
5759
|
+
readonly policy: Schema.Struct<{
|
|
5760
|
+
readonly presets: Schema.$Array<Schema.String>;
|
|
5761
|
+
readonly rules: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5762
|
+
readonly match: Schema.Struct<{
|
|
5763
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
5764
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
5765
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
5766
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5767
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5768
|
+
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<{
|
|
5769
|
+
readonly kind: Schema.Literal<"agent">;
|
|
5770
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
5771
|
+
}>, Schema.Struct<{
|
|
5772
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
5773
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
5774
|
+
}>, Schema.Struct<{
|
|
5775
|
+
readonly kind: Schema.Literal<"member">;
|
|
5776
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
5777
|
+
}>, Schema.Struct<{
|
|
5778
|
+
readonly kind: Schema.Literal<"extension">;
|
|
5779
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
5780
|
+
}>]>, Schema.Null]>>;
|
|
5781
|
+
}>;
|
|
5782
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5783
|
+
readonly decide: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
5784
|
+
readonly atLeast: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
5785
|
+
}>, Schema.Struct<{
|
|
5786
|
+
readonly match: Schema.Struct<{
|
|
5787
|
+
readonly kind: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"reply">, Schema.Literal<"toolCall">, Schema.Literal<"handoff">]>, Schema.Null]>>;
|
|
5788
|
+
readonly effect: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">, Schema.Literal<"final">]>, Schema.Null]>>;
|
|
5789
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>, Schema.Null]>>;
|
|
5790
|
+
readonly integration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5791
|
+
readonly tool: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5792
|
+
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<{
|
|
5793
|
+
readonly kind: Schema.Literal<"agent">;
|
|
5794
|
+
readonly id: Schema.brand<Schema.String, "AgentId">;
|
|
5795
|
+
}>, Schema.Struct<{
|
|
5796
|
+
readonly kind: Schema.Literal<"apiKey">;
|
|
5797
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
5798
|
+
}>, Schema.Struct<{
|
|
5799
|
+
readonly kind: Schema.Literal<"member">;
|
|
5800
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
5801
|
+
}>, Schema.Struct<{
|
|
5802
|
+
readonly kind: Schema.Literal<"extension">;
|
|
5803
|
+
readonly id: Schema.brand<Schema.String, "ExtensionInstallationId">;
|
|
5804
|
+
}>]>, Schema.Null]>>;
|
|
5805
|
+
}>;
|
|
5806
|
+
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5807
|
+
readonly decide: Schema.optionalKey<Schema.Union<readonly [Schema.Never, Schema.Null]>>;
|
|
5808
|
+
readonly atLeast: Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>;
|
|
5809
|
+
}>]>>;
|
|
5810
|
+
readonly instructions: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5811
|
+
}>;
|
|
5812
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
5813
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
5814
|
+
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
5815
|
+
readonly timeZone: Schema.String;
|
|
5816
|
+
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
5817
|
+
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">]>;
|
|
5818
|
+
readonly opens: Schema.String;
|
|
5819
|
+
readonly closes: Schema.String;
|
|
5820
|
+
}>>;
|
|
5821
|
+
}>, Schema.Null]>;
|
|
5822
|
+
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
5823
|
+
readonly eventTriggers: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5824
|
+
readonly followUpTemplate: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>>;
|
|
5825
|
+
readonly tools: Schema.$Record<Schema.String, Schema.Struct<{
|
|
5826
|
+
readonly description: Schema.String;
|
|
5827
|
+
readonly input: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
5828
|
+
readonly approval: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"run">, Schema.Literal<"model">, Schema.Literal<"person">, Schema.Literal<"never">]>>;
|
|
5829
|
+
readonly replay: Schema.Union<readonly [Schema.Literal<"safe">, Schema.Literal<"unsafe">]>;
|
|
5830
|
+
}>>;
|
|
5831
|
+
readonly skills: Schema.$Array<Schema.String>;
|
|
5832
|
+
readonly events: Schema.$Array<Schema.String>;
|
|
5833
|
+
readonly schedules: Schema.$Array<Schema.String>;
|
|
5834
|
+
}>;
|
|
5835
|
+
}>;
|
|
5836
|
+
}>;
|
|
5571
5837
|
export type WhatsAppContent = WhatsAppTextContent | WhatsAppTemplateIdContent | WhatsAppTemplateSlugContent | WhatsAppMediaContent | WhatsAppInteractiveContent | WhatsAppReactionContent | WhatsAppLocationContent | WhatsAppContactsContent;
|
|
5572
5838
|
export declare const WhatsAppContent: Schema.Union<readonly [Schema.Struct<{
|
|
5573
5839
|
readonly text: Schema.String;
|
|
@@ -5771,6 +6037,7 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
5771
6037
|
readonly type: Schema.Literal<"send_email">;
|
|
5772
6038
|
readonly config: Schema.Struct<{
|
|
5773
6039
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
6040
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
5774
6041
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
5775
6042
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5776
6043
|
}>;
|
|
@@ -5788,6 +6055,11 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
5788
6055
|
readonly customField: Schema.String;
|
|
5789
6056
|
}>]>>>;
|
|
5790
6057
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
6058
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
6059
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
6060
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
6061
|
+
}>>;
|
|
6062
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
5791
6063
|
}>;
|
|
5792
6064
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5793
6065
|
readonly nodeId: Schema.String;
|
|
@@ -6145,6 +6417,10 @@ export type JourneyDefinition = {
|
|
|
6145
6417
|
};
|
|
6146
6418
|
readonly goal?: JourneyGoal;
|
|
6147
6419
|
readonly reentry?: boolean;
|
|
6420
|
+
readonly enrollment?: {
|
|
6421
|
+
readonly type: "shopify_order";
|
|
6422
|
+
readonly shop: ShopifyShop;
|
|
6423
|
+
};
|
|
6148
6424
|
};
|
|
6149
6425
|
export declare const JourneyDefinition: Schema.Struct<{
|
|
6150
6426
|
readonly trigger: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -6164,6 +6440,7 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
6164
6440
|
readonly type: Schema.Literal<"send_email">;
|
|
6165
6441
|
readonly config: Schema.Struct<{
|
|
6166
6442
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
6443
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
6167
6444
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
6168
6445
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6169
6446
|
}>;
|
|
@@ -6181,6 +6458,11 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
6181
6458
|
readonly customField: Schema.String;
|
|
6182
6459
|
}>]>>>;
|
|
6183
6460
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
6461
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
6462
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
6463
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
6464
|
+
}>>;
|
|
6465
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6184
6466
|
}>;
|
|
6185
6467
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6186
6468
|
readonly nodeId: Schema.String;
|
|
@@ -6318,6 +6600,10 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
6318
6600
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6319
6601
|
}>>;
|
|
6320
6602
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
6603
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
6604
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
6605
|
+
readonly shop: Schema.String;
|
|
6606
|
+
}>>;
|
|
6321
6607
|
}>;
|
|
6322
6608
|
export type SendMessagePayload = EmailSendMessagePayload | SmsSendMessagePayload | WhatsAppSendMessagePayload;
|
|
6323
6609
|
export declare const SendMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -6629,6 +6915,7 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
6629
6915
|
readonly type: Schema.Literal<"send_email">;
|
|
6630
6916
|
readonly config: Schema.Struct<{
|
|
6631
6917
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
6918
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
6632
6919
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
6633
6920
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6634
6921
|
}>;
|
|
@@ -6646,6 +6933,11 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
6646
6933
|
readonly customField: Schema.String;
|
|
6647
6934
|
}>]>>>;
|
|
6648
6935
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
6936
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
6937
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
6938
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
6939
|
+
}>>;
|
|
6940
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6649
6941
|
}>;
|
|
6650
6942
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6651
6943
|
readonly nodeId: Schema.String;
|
|
@@ -6783,6 +7075,10 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
6783
7075
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6784
7076
|
}>>;
|
|
6785
7077
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
7078
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
7079
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
7080
|
+
readonly shop: Schema.String;
|
|
7081
|
+
}>>;
|
|
6786
7082
|
}>;
|
|
6787
7083
|
}>;
|
|
6788
7084
|
export type ReplaceJourneyDraftPayload = {
|
|
@@ -6809,6 +7105,7 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
6809
7105
|
readonly type: Schema.Literal<"send_email">;
|
|
6810
7106
|
readonly config: Schema.Struct<{
|
|
6811
7107
|
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
7108
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
6812
7109
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
6813
7110
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
6814
7111
|
}>;
|
|
@@ -6826,6 +7123,11 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
6826
7123
|
readonly customField: Schema.String;
|
|
6827
7124
|
}>]>>>;
|
|
6828
7125
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
7126
|
+
readonly pinnedRegistration: Schema.optionalKey<Schema.Struct<{
|
|
7127
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
7128
|
+
readonly templateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
7129
|
+
}>>;
|
|
7130
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
6829
7131
|
}>;
|
|
6830
7132
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6831
7133
|
readonly nodeId: Schema.String;
|
|
@@ -6963,6 +7265,10 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
6963
7265
|
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6964
7266
|
}>>;
|
|
6965
7267
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
7268
|
+
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
7269
|
+
readonly type: Schema.Literal<"shopify_order">;
|
|
7270
|
+
readonly shop: Schema.String;
|
|
7271
|
+
}>>;
|
|
6966
7272
|
}>;
|
|
6967
7273
|
}>;
|
|
6968
7274
|
export { __SamvaRuntimeAbsoluteInstant, __SamvaRuntimeSensitiveString, __SamvaRuntimeNonEmptySensitiveString, };
|