@gravity-rail/sdk 4.0.0 → 6.0.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/README.md +4 -2
- package/dist/account-CSJJbLIj.d.cts +459 -0
- package/dist/account-CSJJbLIj.d.ts +459 -0
- package/dist/{path-CUY-Iw70.d.ts → agent_standing_job-CqKpMoHO.d.cts} +1068 -140
- package/dist/{path-B3b3_El9.d.cts → agent_standing_job-yehTe972.d.ts} +1068 -140
- package/dist/{chat-interaction-DXgKjFqZ.d.cts → chat-interaction-BtUtVszg.d.ts} +13512 -9340
- package/dist/{chat-interaction-a7U-tHfQ.d.ts → chat-interaction-CAfwlYvv.d.cts} +13512 -9340
- package/dist/{chunk-WHRIIBJ4.js → chunk-L4XC6KDG.js} +1773 -475
- package/dist/chunk-L4XC6KDG.js.map +1 -0
- package/dist/{chunk-D5VNVTUQ.js → chunk-P2MSMMMJ.js} +120 -2
- package/dist/chunk-P2MSMMMJ.js.map +1 -0
- package/dist/{chunk-ZLF3N3ZD.js → chunk-P2X5TOYY.js} +31 -5
- package/dist/chunk-P2X5TOYY.js.map +1 -0
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +3 -2
- package/dist/helpers.d.ts +3 -2
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +1961 -917
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +87 -249
- package/dist/index.d.ts +87 -249
- package/dist/index.js +171 -458
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +1928 -448
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2428 -263
- package/dist/internal.d.ts +2428 -263
- package/dist/internal.js +146 -27
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-VOLKR5dY.d.ts → member-import-C5nnoGvW.d.ts} +1 -1
- package/dist/{member-import-BHtOru8g.d.cts → member-import-DhaNVT7s.d.cts} +1 -1
- package/dist/realtime.cjs +250 -3
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +87 -4
- package/dist/realtime.d.ts +87 -4
- package/dist/realtime.js +245 -3
- package/dist/realtime.js.map +1 -1
- package/dist/schemas.cjs +154 -19
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +624 -72
- package/dist/schemas.d.ts +624 -72
- package/dist/schemas.js +72 -21
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-CgptqCsN.d.cts → tasks-A12E_RLa.d.cts} +2243 -1979
- package/dist/{tasks-CgptqCsN.d.ts → tasks-DrmyOlRh.d.ts} +2243 -1979
- package/dist/{types-BXaWYGHj.d.cts → types-Bv6GtLZ2.d.cts} +25 -2
- package/dist/{types-BXaWYGHj.d.ts → types-Bv6GtLZ2.d.ts} +25 -2
- package/package.json +4 -4
- package/dist/chunk-D5VNVTUQ.js.map +0 -1
- package/dist/chunk-WHRIIBJ4.js.map +0 -1
- package/dist/chunk-ZLF3N3ZD.js.map +0 -1
package/dist/schemas.cjs
CHANGED
|
@@ -40,6 +40,7 @@ __export(schemas_exports, {
|
|
|
40
40
|
ArchivePhoneNumberSchema: () => ArchivePhoneNumberSchema,
|
|
41
41
|
ArchiveTaskSchema: () => ArchiveTaskSchema,
|
|
42
42
|
AssistantChatParticipantSchema: () => AssistantChatParticipantSchema,
|
|
43
|
+
CallActivityLabelSchema: () => CallActivityLabelSchema,
|
|
43
44
|
CancelCalendarEventSchema: () => CancelCalendarEventSchema,
|
|
44
45
|
ChannelEnum: () => ChannelEnum,
|
|
45
46
|
ChatCompletionMessageSchema: () => ChatCompletionMessageSchema,
|
|
@@ -268,6 +269,7 @@ __export(schemas_exports, {
|
|
|
268
269
|
UpsertDataRecordSchema: () => UpsertDataRecordSchema,
|
|
269
270
|
VerifyCodeRequestSchema: () => VerifyCodeRequestSchema,
|
|
270
271
|
VerifyCodeResponseSchema: () => VerifyCodeResponseSchema,
|
|
272
|
+
WorkflowAgentBehaviorSchema: () => WorkflowAgentBehaviorSchema,
|
|
271
273
|
WorkflowCreateFormDataSchema: () => WorkflowCreateFormDataSchema,
|
|
272
274
|
WorkflowEscalationPolicySchema: () => WorkflowEscalationPolicySchema,
|
|
273
275
|
WorkflowEscalationRoutingSchema: () => WorkflowEscalationRoutingSchema,
|
|
@@ -808,7 +810,86 @@ function createTool(name, description, schema) {
|
|
|
808
810
|
};
|
|
809
811
|
}
|
|
810
812
|
|
|
813
|
+
// src/types/generated/chat.ts
|
|
814
|
+
var ActivitySubject = {
|
|
815
|
+
abilities: "abilities",
|
|
816
|
+
account_details: "account_details",
|
|
817
|
+
access: "access",
|
|
818
|
+
activity: "activity",
|
|
819
|
+
agents: "agents",
|
|
820
|
+
agent_tasks: "agent_tasks",
|
|
821
|
+
models: "models",
|
|
822
|
+
apps: "apps",
|
|
823
|
+
integrations: "integrations",
|
|
824
|
+
assignments: "assignments",
|
|
825
|
+
billing: "billing",
|
|
826
|
+
bundles: "bundles",
|
|
827
|
+
calendars: "calendars",
|
|
828
|
+
calendar_events: "calendar_events",
|
|
829
|
+
chats: "chats",
|
|
830
|
+
command_help: "command_help",
|
|
831
|
+
commands: "commands",
|
|
832
|
+
forms: "forms",
|
|
833
|
+
documentation: "documentation",
|
|
834
|
+
actions: "actions",
|
|
835
|
+
experiments: "experiments",
|
|
836
|
+
features: "features",
|
|
837
|
+
files: "files",
|
|
838
|
+
folders: "folders",
|
|
839
|
+
inboxes: "inboxes",
|
|
840
|
+
interventions: "interventions",
|
|
841
|
+
roles: "roles",
|
|
842
|
+
members: "members",
|
|
843
|
+
metrics: "metrics",
|
|
844
|
+
notifications: "notifications",
|
|
845
|
+
organizations: "organizations",
|
|
846
|
+
phone_numbers: "phone_numbers",
|
|
847
|
+
personas: "personas",
|
|
848
|
+
prompts: "prompts",
|
|
849
|
+
pronunciations: "pronunciations",
|
|
850
|
+
qualifications: "qualifications",
|
|
851
|
+
queries: "queries",
|
|
852
|
+
recordings: "recordings",
|
|
853
|
+
reports: "reports",
|
|
854
|
+
routines: "routines",
|
|
855
|
+
sites: "sites",
|
|
856
|
+
subscriptions: "subscriptions",
|
|
857
|
+
supervisors: "supervisors",
|
|
858
|
+
support: "support",
|
|
859
|
+
toolkits: "toolkits",
|
|
860
|
+
workflows: "workflows",
|
|
861
|
+
workspaces: "workspaces",
|
|
862
|
+
workspace_settings: "workspace_settings",
|
|
863
|
+
member_records: "member_records",
|
|
864
|
+
labels: "labels",
|
|
865
|
+
tasks: "tasks",
|
|
866
|
+
messages: "messages",
|
|
867
|
+
fields: "fields",
|
|
868
|
+
domains: "domains",
|
|
869
|
+
webhooks: "webhooks",
|
|
870
|
+
api_keys: "api_keys"
|
|
871
|
+
};
|
|
872
|
+
var ActivityVerb = {
|
|
873
|
+
find: "find",
|
|
874
|
+
read: "read",
|
|
875
|
+
analyze: "analyze",
|
|
876
|
+
export: "export",
|
|
877
|
+
create: "create",
|
|
878
|
+
update: "update",
|
|
879
|
+
send: "send",
|
|
880
|
+
start: "start",
|
|
881
|
+
import: "import",
|
|
882
|
+
connect: "connect",
|
|
883
|
+
download: "download",
|
|
884
|
+
delete: "delete",
|
|
885
|
+
revoke: "revoke"
|
|
886
|
+
};
|
|
887
|
+
|
|
811
888
|
// src/schemas/chats.ts
|
|
889
|
+
var CallActivityLabelSchema = import_zod4.z.object({
|
|
890
|
+
verb: import_zod4.z.nativeEnum(ActivityVerb),
|
|
891
|
+
subject: import_zod4.z.nativeEnum(ActivitySubject)
|
|
892
|
+
}).strict();
|
|
812
893
|
var ChannelEnum = import_zod4.z.enum([
|
|
813
894
|
"cli",
|
|
814
895
|
"frame",
|
|
@@ -1035,7 +1116,7 @@ var InitiateOutboundCallSchema = WorkspaceIdSchema.extend({
|
|
|
1035
1116
|
});
|
|
1036
1117
|
var RateMessageSchema = WorkspaceIdSchema.extend({
|
|
1037
1118
|
chatId: import_zod4.z.number().describe("Chat ID"),
|
|
1038
|
-
messageUuid: import_zod4.z.string().describe("Message
|
|
1119
|
+
messageUuid: import_zod4.z.string().describe("Message id (message ID) to rate, not its uuid"),
|
|
1039
1120
|
rating: import_zod4.z.number().describe("Rating (1-5)")
|
|
1040
1121
|
});
|
|
1041
1122
|
var CreateChatForWorkflowSchema = WorkspaceIdSchema.extend({
|
|
@@ -1115,6 +1196,7 @@ var ToolCallFunctionSchema = import_zod4.z.object({
|
|
|
1115
1196
|
arguments: import_zod4.z.string()
|
|
1116
1197
|
});
|
|
1117
1198
|
var ToolCallSchema = import_zod4.z.object({
|
|
1199
|
+
activity: CallActivityLabelSchema.nullable().optional(),
|
|
1118
1200
|
id: import_zod4.z.string(),
|
|
1119
1201
|
type: import_zod4.z.literal("function"),
|
|
1120
1202
|
function: ToolCallFunctionSchema
|
|
@@ -1171,8 +1253,9 @@ var ChatMessageAPIResponseSchema = import_zod4.z.object({
|
|
|
1171
1253
|
smsDeliveryUpdatedAt: import_zod4.z.string().nullable().optional(),
|
|
1172
1254
|
// Friendly failure reason — only set when smsDeliveryStatus is failed/undelivered.
|
|
1173
1255
|
smsDeliveryFailureReason: import_zod4.z.string().nullable().optional(),
|
|
1174
|
-
// ADR-11 provenance. Null
|
|
1175
|
-
//
|
|
1256
|
+
// ADR-11 provenance. Null whenever the writer set none, including rows
|
|
1257
|
+
// written before the columns existed and many assistant and tool rows
|
|
1258
|
+
// written today — clients fall back to `role`.
|
|
1176
1259
|
origin: MessageOriginEnum.nullable().optional(),
|
|
1177
1260
|
audience: MessageAudienceEnum.nullable().optional(),
|
|
1178
1261
|
// Recorded outcome of a `role: 'tool'` message; null on other messages.
|
|
@@ -1186,6 +1269,11 @@ var ChatCompletionMessageSchema = import_zod4.z.object({
|
|
|
1186
1269
|
content: import_zod4.z.string()
|
|
1187
1270
|
});
|
|
1188
1271
|
var ChatMessageUISchema = ChatMessageAPIResponseSchema.extend({
|
|
1272
|
+
approvalDecision: import_zod4.z.object({
|
|
1273
|
+
callId: import_zod4.z.string(),
|
|
1274
|
+
tool: import_zod4.z.string(),
|
|
1275
|
+
answer: import_zod4.z.enum(["approve", "approve_always", "reject", "edit", "other"])
|
|
1276
|
+
}).nullable().optional(),
|
|
1189
1277
|
error: import_zod4.z.object({
|
|
1190
1278
|
code: import_zod4.z.string(),
|
|
1191
1279
|
message: import_zod4.z.string()
|
|
@@ -1485,7 +1573,7 @@ var DataTypeFormDataBaseSchema = import_zod5.z.object({
|
|
|
1485
1573
|
/** Hide this Form and its records from Members without `records:admin`. */
|
|
1486
1574
|
adminOnly: import_zod5.z.boolean().optional(),
|
|
1487
1575
|
fields: import_zod5.z.array(SchemaFieldFormDataSchema),
|
|
1488
|
-
ownerId: import_zod5.z.number().
|
|
1576
|
+
ownerId: import_zod5.z.number().optional()
|
|
1489
1577
|
}).strict();
|
|
1490
1578
|
var DataTypeFormDataSchema = DataTypeFormDataBaseSchema.superRefine(validateDataTypePolicy);
|
|
1491
1579
|
var DataRecordFiltersSchema = import_zod5.z.object({
|
|
@@ -1771,7 +1859,8 @@ var CreateInquirySchema = import_zod7.z.object({
|
|
|
1771
1859
|
"other",
|
|
1772
1860
|
"demo_request",
|
|
1773
1861
|
"waitlist",
|
|
1774
|
-
"whitepaper"
|
|
1862
|
+
"whitepaper",
|
|
1863
|
+
"slack_teams"
|
|
1775
1864
|
]),
|
|
1776
1865
|
cellNumber: import_zod7.z.string().optional(),
|
|
1777
1866
|
businessNumber: import_zod7.z.string().optional(),
|
|
@@ -1817,9 +1906,10 @@ var AnonymousInquiryFormSchema = CreateInquirySchema.refine(
|
|
|
1817
1906
|
}
|
|
1818
1907
|
);
|
|
1819
1908
|
var ListInquiriesSchema = import_zod7.z.object({
|
|
1820
|
-
page: import_zod7.z.number().optional().describe("Page number"),
|
|
1821
|
-
pageSize: import_zod7.z.number().optional().describe("Items per page"),
|
|
1822
|
-
inquiryType: import_zod7.z.string().optional().describe("Filter by inquiry
|
|
1909
|
+
page: import_zod7.z.number().int().min(1).optional().describe("Page number"),
|
|
1910
|
+
pageSize: import_zod7.z.number().int().min(1).optional().describe("Items per page"),
|
|
1911
|
+
inquiryType: import_zod7.z.union([import_zod7.z.string(), import_zod7.z.array(import_zod7.z.string())]).optional().describe("Filter by inquiry types"),
|
|
1912
|
+
statuses: import_zod7.z.array(import_zod7.z.enum(["new", "in_progress", "done", "spam"])).optional().describe("Filter by inquiry statuses")
|
|
1823
1913
|
});
|
|
1824
1914
|
var GetInquirySchema = import_zod7.z.object({
|
|
1825
1915
|
inquiryId: import_zod7.z.number().describe("Inquiry ID")
|
|
@@ -1834,7 +1924,7 @@ var EnrichInquirySchema = import_zod7.z.object({
|
|
|
1834
1924
|
});
|
|
1835
1925
|
var UpdateInquiryRequestSchema = import_zod7.z.object({
|
|
1836
1926
|
notes: import_zod7.z.string().optional(),
|
|
1837
|
-
status: import_zod7.z.enum(["new", "in_progress", "done"]).optional()
|
|
1927
|
+
status: import_zod7.z.enum(["new", "in_progress", "done", "spam"]).optional()
|
|
1838
1928
|
});
|
|
1839
1929
|
var UpdateInquirySchema = import_zod7.z.object({
|
|
1840
1930
|
inquiryId: import_zod7.z.number().describe("Inquiry ID")
|
|
@@ -1874,8 +1964,8 @@ var CreateWorkspaceMemberRequestSchema = import_zod8.z.object({
|
|
|
1874
1964
|
accountEnabled: import_zod8.z.boolean().optional(),
|
|
1875
1965
|
isOrgOwner: import_zod8.z.boolean().optional(),
|
|
1876
1966
|
accountTosAccepted: import_zod8.z.boolean().optional(),
|
|
1877
|
-
//
|
|
1878
|
-
memberType: import_zod8.z.enum(["member", "test", "
|
|
1967
|
+
// The types the API creates here; it rejects any other value. Omitted means 'member'.
|
|
1968
|
+
memberType: import_zod8.z.enum(["member", "test", "business"]).optional()
|
|
1879
1969
|
});
|
|
1880
1970
|
var UpdateWorkspaceMemberRequestSchema = import_zod8.z.object({
|
|
1881
1971
|
// Member details
|
|
@@ -2025,7 +2115,8 @@ var MemberRoleSchema = import_zod8.z.object({
|
|
|
2025
2115
|
});
|
|
2026
2116
|
var MemberSchema = import_zod8.z.object({
|
|
2027
2117
|
id: import_zod8.z.number(),
|
|
2028
|
-
|
|
2118
|
+
// Absent for a Business, an Agent, a test Member and an anonymous Member.
|
|
2119
|
+
accountUuid: import_zod8.z.string().nullable().optional(),
|
|
2029
2120
|
memberRoleId: import_zod8.z.number(),
|
|
2030
2121
|
// Consolidated member fields (from personas consolidation migration)
|
|
2031
2122
|
name: import_zod8.z.string().optional(),
|
|
@@ -2052,7 +2143,7 @@ var MemberSchema = import_zod8.z.object({
|
|
|
2052
2143
|
isSuperuser: import_zod8.z.boolean().optional(),
|
|
2053
2144
|
locale: import_zod8.z.string().optional(),
|
|
2054
2145
|
timezone: import_zod8.z.string().optional(),
|
|
2055
|
-
memberType: import_zod8.z.enum(["member", "test", "anonymous"]).optional(),
|
|
2146
|
+
memberType: import_zod8.z.enum(["member", "test", "anonymous", "agent", "business"]).optional(),
|
|
2056
2147
|
isArchived: import_zod8.z.boolean().optional(),
|
|
2057
2148
|
// Timestamps
|
|
2058
2149
|
createdAt: import_zod8.z.string().optional(),
|
|
@@ -2126,12 +2217,37 @@ var SiteFormDataSchema = import_zod10.z.object({
|
|
|
2126
2217
|
defaultWorkflowId: import_zod10.z.number().optional(),
|
|
2127
2218
|
homePageId: import_zod10.z.number().optional()
|
|
2128
2219
|
});
|
|
2220
|
+
var pageNodeSchema = import_zod10.z.lazy(
|
|
2221
|
+
() => import_zod10.z.object({
|
|
2222
|
+
type: import_zod10.z.string(),
|
|
2223
|
+
attrs: import_zod10.z.record(import_zod10.z.string(), import_zod10.z.unknown()).nullable().optional(),
|
|
2224
|
+
content: import_zod10.z.array(pageNodeSchema).nullable().optional(),
|
|
2225
|
+
marks: import_zod10.z.array(
|
|
2226
|
+
import_zod10.z.object({
|
|
2227
|
+
type: import_zod10.z.string(),
|
|
2228
|
+
attrs: import_zod10.z.record(import_zod10.z.string(), import_zod10.z.unknown()).nullable().optional()
|
|
2229
|
+
}).passthrough()
|
|
2230
|
+
).nullable().optional(),
|
|
2231
|
+
text: import_zod10.z.string().nullable().optional()
|
|
2232
|
+
}).passthrough()
|
|
2233
|
+
);
|
|
2234
|
+
var pageDocumentSchema = import_zod10.z.lazy(
|
|
2235
|
+
() => import_zod10.z.object({
|
|
2236
|
+
type: import_zod10.z.literal("doc").optional(),
|
|
2237
|
+
content: import_zod10.z.array(pageNodeSchema).nullable().optional(),
|
|
2238
|
+
translations: import_zod10.z.record(import_zod10.z.string(), pageDocumentSchema).nullable().optional()
|
|
2239
|
+
}).passthrough()
|
|
2240
|
+
);
|
|
2129
2241
|
var SitePageFormDataSchema = import_zod10.z.object({
|
|
2130
2242
|
title: import_zod10.z.string(),
|
|
2131
2243
|
slug: import_zod10.z.string().optional(),
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2244
|
+
status: import_zod10.z.string().optional(),
|
|
2245
|
+
contentBlocks: pageDocumentSchema.optional(),
|
|
2246
|
+
sourceUrl: import_zod10.z.string().nullable().optional(),
|
|
2247
|
+
sourceHtml: import_zod10.z.string().nullable().optional(),
|
|
2248
|
+
sourceMarkdown: import_zod10.z.string().nullable().optional(),
|
|
2249
|
+
sourceMetadata: import_zod10.z.record(import_zod10.z.string(), import_zod10.z.unknown()).nullable().optional()
|
|
2250
|
+
}).strict();
|
|
2135
2251
|
var MenuItemFormDataSchema = import_zod10.z.object({
|
|
2136
2252
|
label: import_zod10.z.string(),
|
|
2137
2253
|
itemType: import_zod10.z.enum(["page", "url"]),
|
|
@@ -2222,7 +2338,7 @@ var CaptureRowSchema = import_zod11.z.discriminatedUnion("source", [
|
|
|
2222
2338
|
source: import_zod11.z.literal("task"),
|
|
2223
2339
|
field: import_zod11.z.object(SchemaFieldSchema.shape).partial().required({ name: true }),
|
|
2224
2340
|
permissions: CapturePermissionsSchema.optional(),
|
|
2225
|
-
fill: import_zod11.z.enum(["asked", "inferred"]).optional(),
|
|
2341
|
+
fill: import_zod11.z.enum(["asked", "inferred", "ask", "collect"]).optional(),
|
|
2226
2342
|
required: import_zod11.z.boolean().optional(),
|
|
2227
2343
|
exits: import_zod11.z.boolean().optional()
|
|
2228
2344
|
}),
|
|
@@ -2231,7 +2347,7 @@ var CaptureRowSchema = import_zod11.z.discriminatedUnion("source", [
|
|
|
2231
2347
|
dataTypeUuid: import_zod11.z.string().uuid(),
|
|
2232
2348
|
fieldSlug: import_zod11.z.string().min(1).max(100),
|
|
2233
2349
|
permissions: CapturePermissionsSchema.optional(),
|
|
2234
|
-
fill: import_zod11.z.
|
|
2350
|
+
fill: import_zod11.z.enum(["asked", "inferred", "ask", "collect"]).optional(),
|
|
2235
2351
|
required: import_zod11.z.boolean().optional()
|
|
2236
2352
|
})
|
|
2237
2353
|
]);
|
|
@@ -2303,6 +2419,17 @@ var UnarchiveTaskSchema = WorkspaceIdSchema.extend({
|
|
|
2303
2419
|
// src/schemas/workflows.ts
|
|
2304
2420
|
var import_zod13 = require("zod");
|
|
2305
2421
|
|
|
2422
|
+
// src/types/generated/task.ts
|
|
2423
|
+
var AiDisclosure = {
|
|
2424
|
+
when_asked: "when_asked",
|
|
2425
|
+
at_opening: "at_opening"
|
|
2426
|
+
};
|
|
2427
|
+
var ResponseLength = {
|
|
2428
|
+
brief: "brief",
|
|
2429
|
+
short: "short",
|
|
2430
|
+
detailed: "detailed"
|
|
2431
|
+
};
|
|
2432
|
+
|
|
2306
2433
|
// src/schemas/workflow-escalation.ts
|
|
2307
2434
|
var import_zod12 = require("zod");
|
|
2308
2435
|
var WorkflowEscalationPolicySchema = import_zod12.z.object({
|
|
@@ -2317,7 +2444,6 @@ var WorkflowEscalationPolicySchema = import_zod12.z.object({
|
|
|
2317
2444
|
"requests_human"
|
|
2318
2445
|
])
|
|
2319
2446
|
).nullable().optional(),
|
|
2320
|
-
answerNotFound: import_zod12.z.boolean().optional(),
|
|
2321
2447
|
pausedMessage: import_zod12.z.string().nullable().optional(),
|
|
2322
2448
|
notifiedMessage: import_zod12.z.string().nullable().optional(),
|
|
2323
2449
|
onlineMessage: import_zod12.z.string().nullable().optional(),
|
|
@@ -2334,10 +2460,17 @@ var WorkflowEscalationRoutingSchema = import_zod12.z.object({
|
|
|
2334
2460
|
}).strict();
|
|
2335
2461
|
|
|
2336
2462
|
// src/schemas/workflows.ts
|
|
2463
|
+
var WorkflowAgentBehaviorSchema = import_zod13.z.object({
|
|
2464
|
+
responseLength: import_zod13.z.nativeEnum(ResponseLength).optional(),
|
|
2465
|
+
oneQuestionPerTurn: import_zod13.z.boolean().optional(),
|
|
2466
|
+
aiDisclosure: import_zod13.z.nativeEnum(AiDisclosure).optional(),
|
|
2467
|
+
smsStopInstructions: import_zod13.z.boolean().optional()
|
|
2468
|
+
}).strict();
|
|
2337
2469
|
var WorkflowSharedFormDataSchema = import_zod13.z.object({
|
|
2338
2470
|
name: import_zod13.z.string(),
|
|
2339
2471
|
escalationSettings: WorkflowEscalationPolicySchema.nullable().optional(),
|
|
2340
2472
|
escalationRouting: WorkflowEscalationRoutingSchema.nullable().optional(),
|
|
2473
|
+
agentBehavior: WorkflowAgentBehaviorSchema.nullable().optional(),
|
|
2341
2474
|
description: import_zod13.z.string().optional(),
|
|
2342
2475
|
prompt: import_zod13.z.string().optional(),
|
|
2343
2476
|
ownerId: import_zod13.z.number().optional(),
|
|
@@ -2449,6 +2582,7 @@ var PublicDemoFormRequestSchema = import_zod15.z.object({ fieldValues: import_zo
|
|
|
2449
2582
|
ArchivePhoneNumberSchema,
|
|
2450
2583
|
ArchiveTaskSchema,
|
|
2451
2584
|
AssistantChatParticipantSchema,
|
|
2585
|
+
CallActivityLabelSchema,
|
|
2452
2586
|
CancelCalendarEventSchema,
|
|
2453
2587
|
ChannelEnum,
|
|
2454
2588
|
ChatCompletionMessageSchema,
|
|
@@ -2677,6 +2811,7 @@ var PublicDemoFormRequestSchema = import_zod15.z.object({ fieldValues: import_zo
|
|
|
2677
2811
|
UpsertDataRecordSchema,
|
|
2678
2812
|
VerifyCodeRequestSchema,
|
|
2679
2813
|
VerifyCodeResponseSchema,
|
|
2814
|
+
WorkflowAgentBehaviorSchema,
|
|
2680
2815
|
WorkflowCreateFormDataSchema,
|
|
2681
2816
|
WorkflowEscalationPolicySchema,
|
|
2682
2817
|
WorkflowEscalationRoutingSchema,
|