@gravity-rail/sdk 0.14.0 → 0.16.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 (39) hide show
  1. package/dist/agui.cjs +13 -1
  2. package/dist/agui.cjs.map +1 -1
  3. package/dist/agui.d.cts +5 -1
  4. package/dist/agui.d.ts +5 -1
  5. package/dist/agui.js +12 -1
  6. package/dist/agui.js.map +1 -1
  7. package/dist/{chunk-V7ZKEH4V.js → chunk-2YLKG4TT.js} +1 -1
  8. package/dist/chunk-2YLKG4TT.js.map +1 -0
  9. package/dist/{chunk-K4MDFGMO.js → chunk-4B7T6MBH.js} +267 -8
  10. package/dist/chunk-4B7T6MBH.js.map +1 -0
  11. package/dist/{client-CKudWmUT.d.cts → client-3xYGmF3t.d.ts} +1335 -18
  12. package/dist/{client-EAvh7w0y.d.ts → client-BhO_UFFz.d.cts} +1335 -18
  13. package/dist/helpers.d.cts +2 -2
  14. package/dist/helpers.d.ts +2 -2
  15. package/dist/index.cjs +593 -28
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +164 -9
  18. package/dist/index.d.ts +164 -9
  19. package/dist/index.js +334 -23
  20. package/dist/index.js.map +1 -1
  21. package/dist/internal.cjs +296 -7
  22. package/dist/internal.cjs.map +1 -1
  23. package/dist/internal.d.cts +301 -6
  24. package/dist/internal.d.ts +301 -6
  25. package/dist/internal.js +35 -2
  26. package/dist/internal.js.map +1 -1
  27. package/dist/{revision-state-BUBt9Rir.d.ts → revision-state-Dma10N9s.d.ts} +23 -3
  28. package/dist/{revision-state-CY4LBdfa.d.cts → revision-state-Dx8gCQIj.d.cts} +23 -3
  29. package/dist/schemas.cjs +44 -21
  30. package/dist/schemas.cjs.map +1 -1
  31. package/dist/schemas.d.cts +54 -23
  32. package/dist/schemas.d.ts +54 -23
  33. package/dist/schemas.js +42 -21
  34. package/dist/schemas.js.map +1 -1
  35. package/dist/{tasks-iRrM4SaF.d.cts → tasks-vupYoJgG.d.cts} +82 -15
  36. package/dist/{tasks-iRrM4SaF.d.ts → tasks-vupYoJgG.d.ts} +82 -15
  37. package/package.json +2 -2
  38. package/dist/chunk-K4MDFGMO.js.map +0 -1
  39. package/dist/chunk-V7ZKEH4V.js.map +0 -1
package/dist/schemas.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  DataSensitivity,
9
9
  DataTypeRecordScope,
10
10
  IndexStatus
11
- } from "./chunk-V7ZKEH4V.js";
11
+ } from "./chunk-2YLKG4TT.js";
12
12
 
13
13
  // src/schemas/accounts.ts
14
14
  import { z } from "zod";
@@ -512,14 +512,7 @@ var ChannelEnum = z4.enum([
512
512
  "a2a",
513
513
  "routine"
514
514
  ]);
515
- var MessageRoleEnum = z4.enum([
516
- "user",
517
- "assistant",
518
- "system",
519
- "tool",
520
- "function",
521
- "operator"
522
- ]);
515
+ var MessageRoleEnum = z4.enum(["user", "assistant", "system", "tool", "function"]);
523
516
  var ChatFilterObjectTypeEnum = z4.enum([
524
517
  "title",
525
518
  "participant",
@@ -584,10 +577,27 @@ var HumanChatParticipantSchema = z4.object({
584
577
  role: z4.literal("user"),
585
578
  memberId: z4.number()
586
579
  });
587
- var OperatorChatParticipantSchema = z4.object({
580
+ var AssistantChatParticipantSchema = z4.object({
581
+ name: z4.string(),
582
+ // A revision-backed assistant has no Member row at all, so the backend
583
+ // serves `memberId: null` here — it is NOT a required number.
584
+ memberId: z4.number().nullable().optional(),
585
+ memberType: z4.string().optional(),
586
+ role: z4.literal("assistant"),
587
+ additionalInstructions: z4.string().optional()
588
+ });
589
+ var ContributorChatParticipantSchema = z4.object({
588
590
  name: z4.string(),
589
591
  memberId: z4.number(),
590
- role: z4.literal("operator")
592
+ memberType: z4.string().optional(),
593
+ role: z4.literal("contributor"),
594
+ additionalInstructions: z4.string().optional()
595
+ });
596
+ var SupervisorChatParticipantSchema = z4.object({
597
+ name: z4.string(),
598
+ memberId: z4.number(),
599
+ memberType: z4.string().optional(),
600
+ role: z4.literal("supervisor")
591
601
  });
592
602
  var ChatFormDataSchema = z4.object({
593
603
  id: z4.number().optional(),
@@ -601,6 +611,12 @@ var ChatFormDataSchema = z4.object({
601
611
  siteId: z4.number().nullable().optional(),
602
612
  memberId: z4.number().nullable().optional(),
603
613
  participants: z4.array(ChatParticipantFormDataSchema),
614
+ // Who answers. The explicit successor to `agentEnabled` — see ChatFormData.
615
+ assistantKind: z4.enum(["ai", "human"]).optional(),
616
+ // The chat's user participant, named without the "unless it's the caller"
617
+ // caveat that `memberId` carries.
618
+ userMemberId: z4.number().nullable().optional(),
619
+ // Deprecated alias for `assistantKind`; false ⇒ 'human'.
604
620
  agentEnabled: z4.boolean().optional(),
605
621
  assistantMemberId: z4.number().nullable().optional(),
606
622
  assistantName: z4.string().nullable().optional(),
@@ -734,14 +750,9 @@ var ChatSchema = z4.object({
734
750
  participants: z4.array(
735
751
  z4.union([
736
752
  HumanChatParticipantSchema,
737
- OperatorChatParticipantSchema,
738
- z4.object({
739
- name: z4.string(),
740
- memberId: z4.number(),
741
- memberType: z4.string().optional(),
742
- role: z4.literal("assistant"),
743
- additionalInstructions: z4.string().optional()
744
- })
753
+ AssistantChatParticipantSchema,
754
+ ContributorChatParticipantSchema,
755
+ SupervisorChatParticipantSchema
745
756
  ])
746
757
  ),
747
758
  canSendAsAssistant: z4.boolean().optional()
@@ -1332,6 +1343,13 @@ var CreateInquirySchema = z7.object({
1332
1343
  state: z7.string().optional(),
1333
1344
  message: z7.string().optional(),
1334
1345
  productId: z7.number().optional(),
1346
+ /**
1347
+ * The submitter ticked "we plan to use Gravity Rail with healthcare
1348
+ * information and will need a BAA" (#20152). A self-declared sales-routing
1349
+ * signal — it confers no PHI authorization, which is an explicit property
1350
+ * of orgs and workspaces and never inferred from a marketing form.
1351
+ */
1352
+ requiresBaa: z7.boolean().optional(),
1335
1353
  /** Marketing-document slug (whitepaper downloads) — lowercase kebab-case, mirrors the API validator. */
1336
1354
  documentId: z7.string().max(64).regex(/^[a-z0-9-]+$/).refine((v) => !v.startsWith("-") && !v.endsWith("-") && !v.includes("--"), {
1337
1355
  message: "Must be a lowercase kebab-case slug"
@@ -1349,7 +1367,8 @@ var CreateInquirySchema = z7.object({
1349
1367
  "about_contact",
1350
1368
  "concierge_error",
1351
1369
  "concierge_anonymous",
1352
- "whitepaper"
1370
+ "whitepaper",
1371
+ "get_started"
1353
1372
  ]).optional(),
1354
1373
  recaptchaToken: z7.string().optional()
1355
1374
  });
@@ -1919,6 +1938,7 @@ export {
1919
1938
  ArchiveChatSchema,
1920
1939
  ArchivePhoneNumberSchema,
1921
1940
  ArchiveTaskSchema,
1941
+ AssistantChatParticipantSchema,
1922
1942
  CancelCalendarEventSchema,
1923
1943
  ChannelEnum,
1924
1944
  ChatCompletionMessageSchema,
@@ -1938,6 +1958,7 @@ export {
1938
1958
  CheckAvailabilitySchema,
1939
1959
  ChildTaskFormDataSchema,
1940
1960
  CloneWorkflowSchema,
1961
+ ContributorChatParticipantSchema,
1941
1962
  CreateAccountSchema,
1942
1963
  CreateCalendarEventSchema,
1943
1964
  CreateCalendarSchema,
@@ -2093,7 +2114,6 @@ export {
2093
2114
  MilestoneFormDataSchema,
2094
2115
  MilestoneGoalFormDataSchema,
2095
2116
  MissingMembershipItemSchema,
2096
- OperatorChatParticipantSchema,
2097
2117
  OrganizationSchema,
2098
2118
  PhoneNumberFormDataSchema,
2099
2119
  RateLimitAllowlistEntrySchema,
@@ -2113,6 +2133,7 @@ export {
2113
2133
  SiteFormDataSchema,
2114
2134
  SitePageFormDataSchema,
2115
2135
  StartSiteCrawlSchema,
2136
+ SupervisorChatParticipantSchema,
2116
2137
  TaskExportDataTypeRelationSchema,
2117
2138
  TaskFormDataSchema,
2118
2139
  TextContentSchema,