@gravity-rail/sdk 8.2.0 → 9.2.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 +2 -3
- package/dist/{agent_standing_job-CQqd8LDQ.d.ts → agent_team-C4ZYR_m1.d.ts} +731 -354
- package/dist/{agent_standing_job-DfjwGfg_.d.cts → agent_team-C6FdNgYH.d.cts} +731 -354
- package/dist/{chunk-U2U5X3LY.js → chunk-7LQYEV5Y.js} +245 -226
- package/dist/chunk-7LQYEV5Y.js.map +1 -0
- package/dist/{chunk-IIIRXFKG.js → chunk-MWTQXZGB.js} +1 -1
- package/dist/chunk-MWTQXZGB.js.map +1 -0
- package/dist/{chunk-6KPGCPGW.js → chunk-ZJJDZUAK.js} +40 -1
- package/dist/chunk-ZJJDZUAK.js.map +1 -0
- package/dist/{client-Bd-zXY42.d.ts → client-DVF3qwNq.d.ts} +2380 -1113
- package/dist/{client-BGGgZhKg.d.cts → client-DwslF70Y.d.cts} +2380 -1113
- package/dist/helpers.cjs +41 -0
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +2 -2
- package/dist/helpers.d.ts +2 -2
- package/dist/helpers.js +5 -1
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +290 -305
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -23
- package/dist/index.d.ts +7 -23
- package/dist/index.js +14 -84
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +252 -230
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +775 -999
- package/dist/internal.d.ts +775 -999
- package/dist/internal.js +12 -9
- package/dist/internal.js.map +1 -1
- package/dist/member-import-BpcX-swC.d.ts +92 -0
- package/dist/member-import-CA9YWv3Y.d.cts +92 -0
- package/dist/realtime.cjs +109 -54
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +7 -2
- package/dist/realtime.d.ts +7 -2
- package/dist/realtime.js +109 -54
- package/dist/realtime.js.map +1 -1
- package/dist/schemas.cjs +24 -6
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +53 -39
- package/dist/schemas.d.ts +53 -39
- package/dist/schemas.js +24 -7
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-2LhXIwL8.d.ts → tasks-BGLfmf5y.d.ts} +69 -904
- package/dist/{tasks-BTURuIlD.d.cts → tasks-BZb3rt5m.d.cts} +69 -904
- package/package.json +10 -9
- package/dist/chunk-6KPGCPGW.js.map +0 -1
- package/dist/chunk-IIIRXFKG.js.map +0 -1
- package/dist/chunk-U2U5X3LY.js.map +0 -1
- package/dist/member-import-4VSE3yYo.d.cts +0 -46
- package/dist/member-import-BQDFoSyf.d.ts +0 -46
package/dist/schemas.cjs
CHANGED
|
@@ -216,6 +216,7 @@ __export(schemas_exports, {
|
|
|
216
216
|
RateLimitAllowlistEntrySchema: () => RateLimitAllowlistEntrySchema,
|
|
217
217
|
RateLimitOverrideSchema: () => RateLimitOverrideSchema,
|
|
218
218
|
RateMessageSchema: () => RateMessageSchema,
|
|
219
|
+
RecordAccessScopeSchema: () => RecordAccessScopeSchema,
|
|
219
220
|
RemoveDataFieldSchema: () => RemoveDataFieldSchema,
|
|
220
221
|
RemoveWorkspaceMemberSchema: () => RemoveWorkspaceMemberSchema,
|
|
221
222
|
ReorderMenuItemsRequestSchema: () => ReorderMenuItemsRequestSchema,
|
|
@@ -1027,8 +1028,6 @@ var ChatFormDataSchema = import_zod4.z.object({
|
|
|
1027
1028
|
agentEnabled: import_zod4.z.boolean().optional(),
|
|
1028
1029
|
assistantMemberId: import_zod4.z.number().nullable().optional(),
|
|
1029
1030
|
assistantName: import_zod4.z.string().nullable().optional(),
|
|
1030
|
-
// Legacy client-side alias. ChatsApi serializes it as assistantMemberId.
|
|
1031
|
-
agentMemberId: import_zod4.z.number().nullable().optional(),
|
|
1032
1031
|
// Per-chat assistant model override (snapshotted onto the assistant
|
|
1033
1032
|
// participant). Set from the Create-Chat assistant-override dialog.
|
|
1034
1033
|
assistantChatModelId: import_zod4.z.string().nullable().optional(),
|
|
@@ -1138,7 +1137,6 @@ var RateMessageSchema = WorkspaceIdSchema.extend({
|
|
|
1138
1137
|
var CreateChatForWorkflowSchema = WorkspaceIdSchema.extend({
|
|
1139
1138
|
workflowId: import_zod4.z.number().describe("Workflow ID to start chat for"),
|
|
1140
1139
|
memberId: import_zod4.z.number().describe("User member ID"),
|
|
1141
|
-
agentId: import_zod4.z.number().optional().describe("Agent ID (optional, uses workspace default if not provided)"),
|
|
1142
1140
|
chatTitle: import_zod4.z.string().optional().describe("Chat title (optional)")
|
|
1143
1141
|
});
|
|
1144
1142
|
var CreateChatCompletionSchema = WorkspaceIdSchema.extend({
|
|
@@ -1421,6 +1419,20 @@ function validateReferenceField(field, ctx) {
|
|
|
1421
1419
|
message: "Record reference requires a target Form"
|
|
1422
1420
|
});
|
|
1423
1421
|
}
|
|
1422
|
+
if (field.fieldType === "reference" /* REFERENCE */ && field.fieldId != null) {
|
|
1423
|
+
ctx.addIssue({
|
|
1424
|
+
code: import_zod5.z.ZodIssueCode.custom,
|
|
1425
|
+
path: ["fieldId"],
|
|
1426
|
+
message: "Record reference fields cannot carry a scalar field identity"
|
|
1427
|
+
});
|
|
1428
|
+
}
|
|
1429
|
+
if (field.fieldType === "reference" /* REFERENCE */ && field.fieldUuid != null) {
|
|
1430
|
+
ctx.addIssue({
|
|
1431
|
+
code: import_zod5.z.ZodIssueCode.custom,
|
|
1432
|
+
path: ["fieldUuid"],
|
|
1433
|
+
message: "Record reference fields cannot carry a scalar field UUID"
|
|
1434
|
+
});
|
|
1435
|
+
}
|
|
1424
1436
|
validateReferenceFieldUpdate(field, ctx);
|
|
1425
1437
|
}
|
|
1426
1438
|
function validateReferenceFieldUpdate(field, ctx) {
|
|
@@ -1522,6 +1534,8 @@ var SchemaFieldSchema = import_zod5.z.object({
|
|
|
1522
1534
|
order: import_zod5.z.number().optional(),
|
|
1523
1535
|
// Deprecated: use array position for ordering
|
|
1524
1536
|
options: OptionsSchema,
|
|
1537
|
+
fieldId: import_zod5.z.number().int().positive().nullish(),
|
|
1538
|
+
fieldUuid: import_zod5.z.string().uuid().nullish(),
|
|
1525
1539
|
referenceFieldId: import_zod5.z.number().int().positive().nullish(),
|
|
1526
1540
|
referencedTypeId: import_zod5.z.number().int().positive().optional(),
|
|
1527
1541
|
shouldIndex: import_zod5.z.boolean().optional(),
|
|
@@ -1540,6 +1554,8 @@ var SchemaFieldFormDataSchema = import_zod5.z.object({
|
|
|
1540
1554
|
required: import_zod5.z.boolean(),
|
|
1541
1555
|
order: import_zod5.z.number().optional(),
|
|
1542
1556
|
options: OptionsSchema,
|
|
1557
|
+
fieldId: import_zod5.z.number().int().positive().nullish(),
|
|
1558
|
+
fieldUuid: import_zod5.z.string().uuid().nullish(),
|
|
1543
1559
|
referenceFieldId: import_zod5.z.number().int().positive().nullish(),
|
|
1544
1560
|
referencedTypeId: import_zod5.z.number().int().positive().optional(),
|
|
1545
1561
|
shouldIndex: import_zod5.z.boolean().optional(),
|
|
@@ -1732,12 +1748,14 @@ var DataRecordFormDataSchema = import_zod5.z.object({
|
|
|
1732
1748
|
externalId: import_zod5.z.string().optional(),
|
|
1733
1749
|
assignmentTaskId: import_zod5.z.number().optional()
|
|
1734
1750
|
});
|
|
1751
|
+
var RecordAccessScopeSchema = import_zod5.z.enum(["all", "restricted"]);
|
|
1735
1752
|
var DataRecordsPaginatedResponseSchema = import_zod5.z.object({
|
|
1736
1753
|
items: import_zod5.z.array(DataRecordSchema),
|
|
1737
1754
|
total: import_zod5.z.number(),
|
|
1738
1755
|
page: import_zod5.z.number(),
|
|
1739
1756
|
pageSize: import_zod5.z.number(),
|
|
1740
|
-
totalPages: import_zod5.z.number()
|
|
1757
|
+
totalPages: import_zod5.z.number(),
|
|
1758
|
+
accessScope: RecordAccessScopeSchema
|
|
1741
1759
|
});
|
|
1742
1760
|
var DataRecordWithAccessModeSchema = DataRecordSchema.extend({
|
|
1743
1761
|
accessMode: import_zod5.z.number()
|
|
@@ -2160,7 +2178,7 @@ var MemberSchema = import_zod8.z.object({
|
|
|
2160
2178
|
isSuperuser: import_zod8.z.boolean().optional(),
|
|
2161
2179
|
locale: import_zod8.z.string().optional(),
|
|
2162
2180
|
timezone: import_zod8.z.string().optional(),
|
|
2163
|
-
memberType: import_zod8.z.enum(["member", "test", "anonymous", "
|
|
2181
|
+
memberType: import_zod8.z.enum(["member", "test", "anonymous", "business"]).optional(),
|
|
2164
2182
|
isArchived: import_zod8.z.boolean().optional(),
|
|
2165
2183
|
// Timestamps
|
|
2166
2184
|
createdAt: import_zod8.z.string().optional(),
|
|
@@ -2492,7 +2510,6 @@ var WorkflowSharedFormDataSchema = import_zod13.z.object({
|
|
|
2492
2510
|
description: import_zod13.z.string().optional(),
|
|
2493
2511
|
prompt: import_zod13.z.string().optional(),
|
|
2494
2512
|
ownerId: import_zod13.z.number().optional(),
|
|
2495
|
-
copyFromAgentId: import_zod13.z.number().optional(),
|
|
2496
2513
|
copyFromWorkflowRevisionId: import_zod13.z.number().optional(),
|
|
2497
2514
|
copySourceDigest: import_zod13.z.string().optional(),
|
|
2498
2515
|
assistantName: import_zod13.z.string().nullable().optional(),
|
|
@@ -2776,6 +2793,7 @@ var PublicDemoFormRequestSchema = import_zod15.z.object({ fieldValues: import_zo
|
|
|
2776
2793
|
RateLimitAllowlistEntrySchema,
|
|
2777
2794
|
RateLimitOverrideSchema,
|
|
2778
2795
|
RateMessageSchema,
|
|
2796
|
+
RecordAccessScopeSchema,
|
|
2779
2797
|
RemoveDataFieldSchema,
|
|
2780
2798
|
RemoveWorkspaceMemberSchema,
|
|
2781
2799
|
ReorderMenuItemsRequestSchema,
|