@gravity-rail/sdk 8.1.0 → 9.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.
Files changed (51) hide show
  1. package/README.md +2 -3
  2. package/dist/{agent_standing_job-CaD7wjGr.d.cts → agent_team-CeErHy0t.d.ts} +846 -110
  3. package/dist/{agent_standing_job-DMLbDOjP.d.ts → agent_team-J0TyZPkg.d.cts} +846 -110
  4. package/dist/{chunk-MVWCWWRQ.js → chunk-AMJ2MMBM.js} +504 -477
  5. package/dist/chunk-AMJ2MMBM.js.map +1 -0
  6. package/dist/{chunk-IIIRXFKG.js → chunk-MWTQXZGB.js} +1 -1
  7. package/dist/chunk-MWTQXZGB.js.map +1 -0
  8. package/dist/{chunk-6KPGCPGW.js → chunk-ZJJDZUAK.js} +40 -1
  9. package/dist/chunk-ZJJDZUAK.js.map +1 -0
  10. package/dist/{chat-interaction-_mKOHRYc.d.cts → client-CO1hYs43.d.cts} +2732 -1354
  11. package/dist/{chat-interaction-exmrd2jl.d.ts → client-xtsG-YOi.d.ts} +2732 -1354
  12. package/dist/helpers.cjs +41 -0
  13. package/dist/helpers.cjs.map +1 -1
  14. package/dist/helpers.d.cts +2 -2
  15. package/dist/helpers.d.ts +2 -2
  16. package/dist/helpers.js +5 -1
  17. package/dist/helpers.js.map +1 -1
  18. package/dist/index.cjs +548 -555
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +7 -23
  21. package/dist/index.d.ts +7 -23
  22. package/dist/index.js +14 -84
  23. package/dist/index.js.map +1 -1
  24. package/dist/internal.cjs +512 -482
  25. package/dist/internal.cjs.map +1 -1
  26. package/dist/internal.d.cts +775 -927
  27. package/dist/internal.d.ts +775 -927
  28. package/dist/internal.js +14 -11
  29. package/dist/internal.js.map +1 -1
  30. package/dist/member-import-CzGVMtgv.d.cts +92 -0
  31. package/dist/member-import-q5-fCvfV.d.ts +92 -0
  32. package/dist/realtime.cjs +109 -54
  33. package/dist/realtime.cjs.map +1 -1
  34. package/dist/realtime.d.cts +7 -2
  35. package/dist/realtime.d.ts +7 -2
  36. package/dist/realtime.js +109 -54
  37. package/dist/realtime.js.map +1 -1
  38. package/dist/schemas.cjs +24 -6
  39. package/dist/schemas.cjs.map +1 -1
  40. package/dist/schemas.d.cts +54 -40
  41. package/dist/schemas.d.ts +54 -40
  42. package/dist/schemas.js +24 -7
  43. package/dist/schemas.js.map +1 -1
  44. package/dist/{tasks-BTURuIlD.d.cts → tasks-BM3pb5W6.d.cts} +67 -904
  45. package/dist/{tasks-2LhXIwL8.d.ts → tasks-Dc89D2Gu.d.ts} +67 -904
  46. package/package.json +3 -3
  47. package/dist/chunk-6KPGCPGW.js.map +0 -1
  48. package/dist/chunk-IIIRXFKG.js.map +0 -1
  49. package/dist/chunk-MVWCWWRQ.js.map +0 -1
  50. package/dist/member-import-4VSE3yYo.d.cts +0 -46
  51. 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", "agent", "business"]).optional(),
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,