@gravity-rail/sdk 2.0.0 → 3.1.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 +18 -9
- package/dist/{chat-interaction-CGDgA4K_.d.cts → chat-interaction-ClNfn1UV.d.cts} +1997 -850
- package/dist/{chat-interaction-DjV6mYaY.d.ts → chat-interaction-DwH4z1qk.d.ts} +1997 -850
- package/dist/{chunk-SVRE6KIM.js → chunk-ANVLMZLD.js} +496 -104
- package/dist/chunk-ANVLMZLD.js.map +1 -0
- package/dist/{chunk-GCN4OMYU.js → chunk-RLFS7O2L.js} +4 -1
- package/dist/{chunk-GCN4OMYU.js.map → chunk-RLFS7O2L.js.map} +1 -1
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +6 -4
- package/dist/helpers.d.ts +6 -4
- package/dist/helpers.js +1 -1
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +535 -125
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -10
- package/dist/index.d.ts +26 -10
- package/dist/index.js +39 -25
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +497 -102
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +99 -6
- package/dist/internal.d.ts +99 -6
- package/dist/internal.js +2 -2
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-DVHDjWwi.d.ts → member-import-D-_eJBE7.d.ts} +1 -1
- package/dist/{member-import-C1IsFkQm.d.cts → member-import-IN06xJrR.d.cts} +1 -1
- package/dist/{path-Bd99SxC1.d.cts → path-D4S8xYyo.d.ts} +18 -3
- package/dist/{path-CZxFBfjw.d.ts → path-D_KPlBIr.d.cts} +18 -3
- package/dist/schemas.cjs +57 -6
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +111 -43
- package/dist/schemas.d.ts +111 -43
- package/dist/schemas.js +53 -6
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-C8TrcAV8.d.cts → tasks-C8sHnwH5.d.cts} +52 -11
- package/dist/{tasks-C8TrcAV8.d.ts → tasks-C8sHnwH5.d.ts} +52 -11
- package/package.json +4 -3
- package/dist/chunk-SVRE6KIM.js.map +0 -1
package/dist/schemas.cjs
CHANGED
|
@@ -166,6 +166,7 @@ __export(schemas_exports, {
|
|
|
166
166
|
InboxRulesConfigSchema: () => InboxRulesConfigSchema,
|
|
167
167
|
IndexStatus: () => IndexStatus,
|
|
168
168
|
InitiateOutboundCallSchema: () => InitiateOutboundCallSchema,
|
|
169
|
+
KnowledgeEntrySchema: () => KnowledgeEntrySchema,
|
|
169
170
|
ListCalendarEventsSchema: () => ListCalendarEventsSchema,
|
|
170
171
|
ListCalendarsSchema: () => ListCalendarsSchema,
|
|
171
172
|
ListChatsSchema: () => ListChatsSchema,
|
|
@@ -209,6 +210,8 @@ __export(schemas_exports, {
|
|
|
209
210
|
OrganizationSchema: () => OrganizationSchema,
|
|
210
211
|
OutcomeTaskRoutingSchema: () => OutcomeTaskRoutingSchema,
|
|
211
212
|
PhoneNumberFormDataSchema: () => PhoneNumberFormDataSchema,
|
|
213
|
+
PublicDemoFormRequestSchema: () => PublicDemoFormRequestSchema,
|
|
214
|
+
PublicDemoMessageRequestSchema: () => PublicDemoMessageRequestSchema,
|
|
212
215
|
RateLimitAllowlistEntrySchema: () => RateLimitAllowlistEntrySchema,
|
|
213
216
|
RateLimitOverrideSchema: () => RateLimitOverrideSchema,
|
|
214
217
|
RateMessageSchema: () => RateMessageSchema,
|
|
@@ -225,6 +228,7 @@ __export(schemas_exports, {
|
|
|
225
228
|
SendSmsToMemberSchema: () => SendSmsToMemberSchema,
|
|
226
229
|
SiteFormDataSchema: () => SiteFormDataSchema,
|
|
227
230
|
SitePageFormDataSchema: () => SitePageFormDataSchema,
|
|
231
|
+
StartPublicDemoRequestSchema: () => StartPublicDemoRequestSchema,
|
|
228
232
|
SupervisorChatParticipantSchema: () => SupervisorChatParticipantSchema,
|
|
229
233
|
TaskExportDataTypeRelationSchema: () => TaskExportDataTypeRelationSchema,
|
|
230
234
|
TaskFormDataSchema: () => TaskFormDataSchema,
|
|
@@ -878,7 +882,7 @@ var MessageOriginEnum = import_zod4.z.enum([
|
|
|
878
882
|
"engine_action",
|
|
879
883
|
// a tool the engine ran on Task entry, not the agent
|
|
880
884
|
"background_run",
|
|
881
|
-
//
|
|
885
|
+
// historical detached trajectory output
|
|
882
886
|
"platform"
|
|
883
887
|
// Gravity Rail itself (notices, system events)
|
|
884
888
|
]);
|
|
@@ -1175,10 +1179,7 @@ var ChatMessageAPIResponseSchema = import_zod4.z.object({
|
|
|
1175
1179
|
audience: MessageAudienceEnum.nullable().optional(),
|
|
1176
1180
|
// Recorded outcome of a `role: 'tool'` message; null on other messages.
|
|
1177
1181
|
toolStatus: import_zod4.z.string().nullable().optional(),
|
|
1178
|
-
//
|
|
1179
|
-
// one as a detached background thread, and the fork point this message
|
|
1180
|
-
// itself hangs off (the PARENT's uuid, so it joins against `id`).
|
|
1181
|
-
childMessageCount: import_zod4.z.number().optional(),
|
|
1182
|
+
// Parent message UUID for nested messages.
|
|
1182
1183
|
parentMessageId: import_zod4.z.string().nullable().optional()
|
|
1183
1184
|
});
|
|
1184
1185
|
var ChatCompletionMessageSchema = import_zod4.z.object({
|
|
@@ -1468,7 +1469,8 @@ var DataTypeSchema = import_zod5.z.object({
|
|
|
1468
1469
|
}).superRefine(validateDataTypePolicy);
|
|
1469
1470
|
var DataTypeFormDataBaseSchema = import_zod5.z.object({
|
|
1470
1471
|
name: import_zod5.z.string(),
|
|
1471
|
-
|
|
1472
|
+
/** Omit on create: the server derives it from `name`. */
|
|
1473
|
+
slug: import_zod5.z.string().optional(),
|
|
1472
1474
|
description: import_zod5.z.string().optional(),
|
|
1473
1475
|
prompt: import_zod5.z.string().optional(),
|
|
1474
1476
|
isCollection: import_zod5.z.boolean(),
|
|
@@ -1852,6 +1854,12 @@ var CreateWorkspaceMemberRequestSchema = import_zod8.z.object({
|
|
|
1852
1854
|
accountUuid: import_zod8.z.string().optional(),
|
|
1853
1855
|
// Member details
|
|
1854
1856
|
name: import_zod8.z.string().optional(),
|
|
1857
|
+
// Structured name, in the order it composes the full name. Sending any
|
|
1858
|
+
// part wins over `name`; `name` alone is split into the parts. Reading a
|
|
1859
|
+
// response, an absent part is `null` (never `""`), so these accept null.
|
|
1860
|
+
firstName: import_zod8.z.string().nullable().optional(),
|
|
1861
|
+
middleName: import_zod8.z.string().nullable().optional(),
|
|
1862
|
+
lastName: import_zod8.z.string().nullable().optional(),
|
|
1855
1863
|
description: import_zod8.z.string().optional(),
|
|
1856
1864
|
externalId: import_zod8.z.string().optional(),
|
|
1857
1865
|
dateOfBirth: import_zod8.z.string().optional(),
|
|
@@ -1874,6 +1882,12 @@ var CreateWorkspaceMemberRequestSchema = import_zod8.z.object({
|
|
|
1874
1882
|
var UpdateWorkspaceMemberRequestSchema = import_zod8.z.object({
|
|
1875
1883
|
// Member details
|
|
1876
1884
|
name: import_zod8.z.string().optional(),
|
|
1885
|
+
// Structured name, in the order it composes the full name. Sending any
|
|
1886
|
+
// part wins over `name`; `name` alone is split into the parts. Reading a
|
|
1887
|
+
// response, an absent part is `null` (never `""`), so these accept null.
|
|
1888
|
+
firstName: import_zod8.z.string().nullable().optional(),
|
|
1889
|
+
middleName: import_zod8.z.string().nullable().optional(),
|
|
1890
|
+
lastName: import_zod8.z.string().nullable().optional(),
|
|
1877
1891
|
description: import_zod8.z.string().optional(),
|
|
1878
1892
|
phone: import_zod8.z.string().optional(),
|
|
1879
1893
|
email: import_zod8.z.string().optional(),
|
|
@@ -1905,6 +1919,12 @@ var MemberFormDataSchema = import_zod8.z.object({
|
|
|
1905
1919
|
notifyVoice: import_zod8.z.boolean().optional(),
|
|
1906
1920
|
// Consolidated member fields (from personas consolidation migration)
|
|
1907
1921
|
name: import_zod8.z.string().optional(),
|
|
1922
|
+
// Structured name, in the order it composes the full name. Sending any
|
|
1923
|
+
// part wins over `name`; `name` alone is split into the parts. Reading a
|
|
1924
|
+
// response, an absent part is `null` (never `""`), so these accept null.
|
|
1925
|
+
firstName: import_zod8.z.string().nullable().optional(),
|
|
1926
|
+
middleName: import_zod8.z.string().nullable().optional(),
|
|
1927
|
+
lastName: import_zod8.z.string().nullable().optional(),
|
|
1908
1928
|
description: import_zod8.z.string().optional(),
|
|
1909
1929
|
phone: import_zod8.z.string().optional(),
|
|
1910
1930
|
email: import_zod8.z.string().optional(),
|
|
@@ -1926,6 +1946,9 @@ var MemberRoleFormDataSchema = import_zod8.z.object({
|
|
|
1926
1946
|
var GetCurrentMemberSchema = WorkspaceIdSchema;
|
|
1927
1947
|
var UpdateCurrentMemberSchema = WorkspaceIdSchema.extend({
|
|
1928
1948
|
name: import_zod8.z.string().optional().describe("New member name"),
|
|
1949
|
+
firstName: import_zod8.z.string().nullable().optional().describe("New first name"),
|
|
1950
|
+
middleName: import_zod8.z.string().nullable().optional().describe("New middle name; null clears it"),
|
|
1951
|
+
lastName: import_zod8.z.string().nullable().optional().describe("New last name"),
|
|
1929
1952
|
description: import_zod8.z.string().optional().describe("New member description"),
|
|
1930
1953
|
dateOfBirth: import_zod8.z.string().nullable().optional().describe("New date of birth (YYYY-MM-DD)")
|
|
1931
1954
|
});
|
|
@@ -2008,6 +2031,12 @@ var MemberSchema = import_zod8.z.object({
|
|
|
2008
2031
|
memberRoleId: import_zod8.z.number(),
|
|
2009
2032
|
// Consolidated member fields (from personas consolidation migration)
|
|
2010
2033
|
name: import_zod8.z.string().optional(),
|
|
2034
|
+
// Structured name, in the order it composes the full name. Sending any
|
|
2035
|
+
// part wins over `name`; `name` alone is split into the parts. Reading a
|
|
2036
|
+
// response, an absent part is `null` (never `""`), so these accept null.
|
|
2037
|
+
firstName: import_zod8.z.string().nullable().optional(),
|
|
2038
|
+
middleName: import_zod8.z.string().nullable().optional(),
|
|
2039
|
+
lastName: import_zod8.z.string().nullable().optional(),
|
|
2011
2040
|
description: import_zod8.z.string().optional(),
|
|
2012
2041
|
phone: import_zod8.z.string().optional(),
|
|
2013
2042
|
phoneType: import_zod8.z.string().optional(),
|
|
@@ -2329,6 +2358,9 @@ var WorkflowSharedFormDataSchema = import_zod13.z.object({
|
|
|
2329
2358
|
chatModelConfig: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.unknown()).nullable().optional(),
|
|
2330
2359
|
realtimeModelId: import_zod13.z.string().nullable().optional(),
|
|
2331
2360
|
realtimeModelConfig: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.unknown()).nullable().optional(),
|
|
2361
|
+
// Tri-state revision voice setting: true/false pin synchronous AMD, null
|
|
2362
|
+
// inherits the workspace setting.
|
|
2363
|
+
enableVoicemailDetection: import_zod13.z.boolean().nullable().optional(),
|
|
2332
2364
|
defaultPhoneNumberId: import_zod13.z.number().nullable().optional(),
|
|
2333
2365
|
defaultInboxId: import_zod13.z.number().nullable().optional()
|
|
2334
2366
|
});
|
|
@@ -2338,7 +2370,16 @@ var WorkflowCreateFormDataSchema = WorkflowSharedFormDataSchema.extend({
|
|
|
2338
2370
|
defaultTaskDescription: import_zod13.z.string().optional(),
|
|
2339
2371
|
defaultTaskPrompt: import_zod13.z.string().optional()
|
|
2340
2372
|
}).strict();
|
|
2373
|
+
var KnowledgeEntrySchema = import_zod13.z.object({
|
|
2374
|
+
kind: import_zod13.z.enum(["file", "folder"]),
|
|
2375
|
+
id: import_zod13.z.number().int().positive(),
|
|
2376
|
+
canRead: import_zod13.z.boolean().optional(),
|
|
2377
|
+
canList: import_zod13.z.boolean().optional(),
|
|
2378
|
+
canSearch: import_zod13.z.boolean().optional(),
|
|
2379
|
+
hint: import_zod13.z.string().max(1e3).nullable().optional()
|
|
2380
|
+
}).strict();
|
|
2341
2381
|
var WorkflowFormDataSchema = WorkflowSharedFormDataSchema.extend({
|
|
2382
|
+
knowledge: import_zod13.z.array(KnowledgeEntrySchema).max(100).nullable().optional(),
|
|
2342
2383
|
startTaskId: import_zod13.z.number().nullable().optional()
|
|
2343
2384
|
}).strict();
|
|
2344
2385
|
var ListWorkflowsSchema = WorkspaceIdSchema;
|
|
@@ -2382,6 +2423,12 @@ var GetProductsSchema = WorkspaceIdSchema;
|
|
|
2382
2423
|
var GetProductSchema = import_zod14.z.object({
|
|
2383
2424
|
productId: import_zod14.z.number().describe("Product ID")
|
|
2384
2425
|
});
|
|
2426
|
+
|
|
2427
|
+
// src/schemas/public-demos.ts
|
|
2428
|
+
var import_zod15 = require("zod");
|
|
2429
|
+
var StartPublicDemoRequestSchema = import_zod15.z.object({ channel: import_zod15.z.enum(["phone-sms", "phone-voice"]).default("phone-sms") }).strict();
|
|
2430
|
+
var PublicDemoMessageRequestSchema = import_zod15.z.object({ content: import_zod15.z.string().min(1).max(1e4) }).strict();
|
|
2431
|
+
var PublicDemoFormRequestSchema = import_zod15.z.object({ fieldValues: import_zod15.z.record(import_zod15.z.string(), import_zod15.z.unknown()) }).strict();
|
|
2385
2432
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2386
2433
|
0 && (module.exports = {
|
|
2387
2434
|
AbilityDataSchema,
|
|
@@ -2530,6 +2577,7 @@ var GetProductSchema = import_zod14.z.object({
|
|
|
2530
2577
|
InboxRulesConfigSchema,
|
|
2531
2578
|
IndexStatus,
|
|
2532
2579
|
InitiateOutboundCallSchema,
|
|
2580
|
+
KnowledgeEntrySchema,
|
|
2533
2581
|
ListCalendarEventsSchema,
|
|
2534
2582
|
ListCalendarsSchema,
|
|
2535
2583
|
ListChatsSchema,
|
|
@@ -2573,6 +2621,8 @@ var GetProductSchema = import_zod14.z.object({
|
|
|
2573
2621
|
OrganizationSchema,
|
|
2574
2622
|
OutcomeTaskRoutingSchema,
|
|
2575
2623
|
PhoneNumberFormDataSchema,
|
|
2624
|
+
PublicDemoFormRequestSchema,
|
|
2625
|
+
PublicDemoMessageRequestSchema,
|
|
2576
2626
|
RateLimitAllowlistEntrySchema,
|
|
2577
2627
|
RateLimitOverrideSchema,
|
|
2578
2628
|
RateMessageSchema,
|
|
@@ -2589,6 +2639,7 @@ var GetProductSchema = import_zod14.z.object({
|
|
|
2589
2639
|
SendSmsToMemberSchema,
|
|
2590
2640
|
SiteFormDataSchema,
|
|
2591
2641
|
SitePageFormDataSchema,
|
|
2642
|
+
StartPublicDemoRequestSchema,
|
|
2592
2643
|
SupervisorChatParticipantSchema,
|
|
2593
2644
|
TaskExportDataTypeRelationSchema,
|
|
2594
2645
|
TaskFormDataSchema,
|