@orq-ai/node 3.12.13 → 3.12.14

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 (120) hide show
  1. package/README.md +1 -1
  2. package/bin/mcp-server.js +113 -112
  3. package/bin/mcp-server.js.map +32 -32
  4. package/examples/package-lock.json +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/mcp-server/mcp-server.js +1 -1
  9. package/mcp-server/server.js +1 -1
  10. package/models/errors/index.d.ts +1 -0
  11. package/models/errors/index.d.ts.map +1 -1
  12. package/models/errors/index.js +1 -0
  13. package/models/errors/index.js.map +1 -1
  14. package/models/operations/createbudget.js +2 -2
  15. package/models/operations/createcontact.js +2 -2
  16. package/models/operations/createdataset.js +2 -2
  17. package/models/operations/createdatasetitem.js +2 -2
  18. package/models/operations/createdatasource.js +2 -2
  19. package/models/operations/createeval.js +16 -16
  20. package/models/operations/fileget.js +2 -2
  21. package/models/operations/filelist.js +2 -2
  22. package/models/operations/fileupload.js +2 -2
  23. package/models/operations/getbudget.js +2 -2
  24. package/models/operations/getevals.js +28 -28
  25. package/models/operations/listbudgets.js +2 -2
  26. package/models/operations/listcontacts.js +2 -2
  27. package/models/operations/listdatasetdatapoints.js +2 -2
  28. package/models/operations/listdatasets.js +2 -2
  29. package/models/operations/listdatasources.js +2 -2
  30. package/models/operations/retrievecontact.js +2 -2
  31. package/models/operations/retrievedatapoint.js +2 -2
  32. package/models/operations/retrievedataset.js +2 -2
  33. package/models/operations/retrievedatasource.js +2 -2
  34. package/models/operations/updatebudget.js +2 -2
  35. package/models/operations/updatecontact.js +2 -2
  36. package/models/operations/updatedatapoint.js +2 -2
  37. package/models/operations/updatedataset.js +2 -2
  38. package/models/operations/updatedatasource.js +2 -2
  39. package/models/operations/updateeval.js +16 -16
  40. package/package.json +1 -1
  41. package/packages/orq-rc/README.md +90 -92
  42. package/packages/orq-rc/docs/sdks/agents/README.md +94 -80
  43. package/packages/orq-rc/examples/package-lock.json +1 -1
  44. package/packages/orq-rc/jsr.json +1 -1
  45. package/packages/orq-rc/package-lock.json +2 -2
  46. package/packages/orq-rc/package.json +1 -1
  47. package/packages/orq-rc/src/funcs/agentsRun.ts +1 -1
  48. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
  49. package/packages/orq-rc/src/lib/config.ts +3 -3
  50. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  51. package/packages/orq-rc/src/mcp-server/server.ts +1 -3
  52. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +1 -1
  53. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +1 -1
  54. package/packages/orq-rc/src/models/errors/index.ts +1 -0
  55. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  56. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  57. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  58. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  59. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  61. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  62. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  63. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  64. package/packages/orq-rc/src/models/operations/getagent.ts +2 -9
  65. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  66. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  67. package/packages/orq-rc/src/models/operations/index.ts +0 -1
  68. package/packages/orq-rc/src/models/operations/listagents.ts +2 -9
  69. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  70. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  71. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  72. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  73. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  74. package/packages/orq-rc/src/models/operations/retrieveaction.ts +14 -16
  75. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  76. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/runagent.ts +183 -14
  80. package/packages/orq-rc/src/models/operations/streamrunagent.ts +194 -14
  81. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  85. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  87. package/packages/orq-rc/src/sdk/agents.ts +2 -20
  88. package/src/lib/config.ts +3 -3
  89. package/src/mcp-server/mcp-server.ts +1 -1
  90. package/src/mcp-server/server.ts +1 -1
  91. package/src/models/errors/index.ts +1 -0
  92. package/src/models/operations/createbudget.ts +2 -2
  93. package/src/models/operations/createcontact.ts +2 -2
  94. package/src/models/operations/createdataset.ts +2 -2
  95. package/src/models/operations/createdatasetitem.ts +2 -2
  96. package/src/models/operations/createdatasource.ts +2 -2
  97. package/src/models/operations/createeval.ts +16 -16
  98. package/src/models/operations/fileget.ts +2 -2
  99. package/src/models/operations/filelist.ts +2 -2
  100. package/src/models/operations/fileupload.ts +2 -2
  101. package/src/models/operations/getbudget.ts +2 -2
  102. package/src/models/operations/getevals.ts +28 -28
  103. package/src/models/operations/listbudgets.ts +2 -2
  104. package/src/models/operations/listcontacts.ts +2 -2
  105. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  106. package/src/models/operations/listdatasets.ts +2 -2
  107. package/src/models/operations/listdatasources.ts +2 -2
  108. package/src/models/operations/retrievecontact.ts +2 -2
  109. package/src/models/operations/retrievedatapoint.ts +2 -2
  110. package/src/models/operations/retrievedataset.ts +2 -2
  111. package/src/models/operations/retrievedatasource.ts +2 -2
  112. package/src/models/operations/updatebudget.ts +2 -2
  113. package/src/models/operations/updatecontact.ts +2 -2
  114. package/src/models/operations/updatedatapoint.ts +2 -2
  115. package/src/models/operations/updatedataset.ts +2 -2
  116. package/src/models/operations/updatedatasource.ts +2 -2
  117. package/src/models/operations/updateeval.ts +16 -16
  118. package/packages/orq-rc/src/funcs/agentsReviewAction.ts +0 -177
  119. package/packages/orq-rc/src/mcp-server/tools/agentsReviewAction.ts +0 -37
  120. package/packages/orq-rc/src/models/operations/reviewaction.ts +0 -258
@@ -141,6 +141,50 @@ export type Message = {
141
141
  metadata?: { [k: string]: any } | undefined;
142
142
  };
143
143
 
144
+ /**
145
+ * Information about the contact making the request. If the contact does not exist, it will be created automatically.
146
+ */
147
+ export type Contact = {
148
+ /**
149
+ * Unique identifier for the contact
150
+ */
151
+ id: string;
152
+ /**
153
+ * Display name of the contact
154
+ */
155
+ displayName?: string | undefined;
156
+ /**
157
+ * Email address of the contact
158
+ */
159
+ email?: string | undefined;
160
+ /**
161
+ * A hash of key/value pairs containing any other data about the contact
162
+ */
163
+ metadata?: Array<{ [k: string]: any }> | undefined;
164
+ /**
165
+ * URL to the contact's avatar or logo
166
+ */
167
+ logoUrl?: string | undefined;
168
+ /**
169
+ * A list of tags associated with the contact
170
+ */
171
+ tags?: Array<string> | undefined;
172
+ };
173
+
174
+ /**
175
+ * Thread information to group related requests
176
+ */
177
+ export type RunAgentThread = {
178
+ /**
179
+ * Unique thread identifier to group related invocations.
180
+ */
181
+ id: string;
182
+ /**
183
+ * Optional tags to differentiate or categorize threads
184
+ */
185
+ tags?: Array<string> | undefined;
186
+ };
187
+
144
188
  /**
145
189
  * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
146
190
  */
@@ -570,9 +614,13 @@ export type RunAgentRequestBody = {
570
614
  */
571
615
  variables?: { [k: string]: any } | undefined;
572
616
  /**
573
- * Optional context ID that maps to thread_id
617
+ * Information about the contact making the request. If the contact does not exist, it will be created automatically.
618
+ */
619
+ contact?: Contact | undefined;
620
+ /**
621
+ * Thread information to group related requests
574
622
  */
575
- contextId?: string | undefined;
623
+ thread?: RunAgentThread | undefined;
576
624
  /**
577
625
  * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
578
626
  */
@@ -585,10 +633,6 @@ export type RunAgentRequestBody = {
585
633
  * A brief summary of the agent's purpose.
586
634
  */
587
635
  description?: string | undefined;
588
- /**
589
- * Optional URL to an icon for the agent
590
- */
591
- iconUrl?: string | undefined;
592
636
  /**
593
637
  * A custom system prompt template for the agent. If omitted, the default template is used.
594
638
  */
@@ -1478,6 +1522,131 @@ export function messageFromJSON(
1478
1522
  );
1479
1523
  }
1480
1524
 
1525
+ /** @internal */
1526
+ export const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown> =
1527
+ z.object({
1528
+ id: z.string(),
1529
+ display_name: z.string().optional(),
1530
+ email: z.string().optional(),
1531
+ metadata: z.array(z.record(z.any())).optional(),
1532
+ logo_url: z.string().optional(),
1533
+ tags: z.array(z.string()).optional(),
1534
+ }).transform((v) => {
1535
+ return remap$(v, {
1536
+ "display_name": "displayName",
1537
+ "logo_url": "logoUrl",
1538
+ });
1539
+ });
1540
+
1541
+ /** @internal */
1542
+ export type Contact$Outbound = {
1543
+ id: string;
1544
+ display_name?: string | undefined;
1545
+ email?: string | undefined;
1546
+ metadata?: Array<{ [k: string]: any }> | undefined;
1547
+ logo_url?: string | undefined;
1548
+ tags?: Array<string> | undefined;
1549
+ };
1550
+
1551
+ /** @internal */
1552
+ export const Contact$outboundSchema: z.ZodType<
1553
+ Contact$Outbound,
1554
+ z.ZodTypeDef,
1555
+ Contact
1556
+ > = z.object({
1557
+ id: z.string(),
1558
+ displayName: z.string().optional(),
1559
+ email: z.string().optional(),
1560
+ metadata: z.array(z.record(z.any())).optional(),
1561
+ logoUrl: z.string().optional(),
1562
+ tags: z.array(z.string()).optional(),
1563
+ }).transform((v) => {
1564
+ return remap$(v, {
1565
+ displayName: "display_name",
1566
+ logoUrl: "logo_url",
1567
+ });
1568
+ });
1569
+
1570
+ /**
1571
+ * @internal
1572
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1573
+ */
1574
+ export namespace Contact$ {
1575
+ /** @deprecated use `Contact$inboundSchema` instead. */
1576
+ export const inboundSchema = Contact$inboundSchema;
1577
+ /** @deprecated use `Contact$outboundSchema` instead. */
1578
+ export const outboundSchema = Contact$outboundSchema;
1579
+ /** @deprecated use `Contact$Outbound` instead. */
1580
+ export type Outbound = Contact$Outbound;
1581
+ }
1582
+
1583
+ export function contactToJSON(contact: Contact): string {
1584
+ return JSON.stringify(Contact$outboundSchema.parse(contact));
1585
+ }
1586
+
1587
+ export function contactFromJSON(
1588
+ jsonString: string,
1589
+ ): SafeParseResult<Contact, SDKValidationError> {
1590
+ return safeParse(
1591
+ jsonString,
1592
+ (x) => Contact$inboundSchema.parse(JSON.parse(x)),
1593
+ `Failed to parse 'Contact' from JSON`,
1594
+ );
1595
+ }
1596
+
1597
+ /** @internal */
1598
+ export const RunAgentThread$inboundSchema: z.ZodType<
1599
+ RunAgentThread,
1600
+ z.ZodTypeDef,
1601
+ unknown
1602
+ > = z.object({
1603
+ id: z.string(),
1604
+ tags: z.array(z.string()).optional(),
1605
+ });
1606
+
1607
+ /** @internal */
1608
+ export type RunAgentThread$Outbound = {
1609
+ id: string;
1610
+ tags?: Array<string> | undefined;
1611
+ };
1612
+
1613
+ /** @internal */
1614
+ export const RunAgentThread$outboundSchema: z.ZodType<
1615
+ RunAgentThread$Outbound,
1616
+ z.ZodTypeDef,
1617
+ RunAgentThread
1618
+ > = z.object({
1619
+ id: z.string(),
1620
+ tags: z.array(z.string()).optional(),
1621
+ });
1622
+
1623
+ /**
1624
+ * @internal
1625
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1626
+ */
1627
+ export namespace RunAgentThread$ {
1628
+ /** @deprecated use `RunAgentThread$inboundSchema` instead. */
1629
+ export const inboundSchema = RunAgentThread$inboundSchema;
1630
+ /** @deprecated use `RunAgentThread$outboundSchema` instead. */
1631
+ export const outboundSchema = RunAgentThread$outboundSchema;
1632
+ /** @deprecated use `RunAgentThread$Outbound` instead. */
1633
+ export type Outbound = RunAgentThread$Outbound;
1634
+ }
1635
+
1636
+ export function runAgentThreadToJSON(runAgentThread: RunAgentThread): string {
1637
+ return JSON.stringify(RunAgentThread$outboundSchema.parse(runAgentThread));
1638
+ }
1639
+
1640
+ export function runAgentThreadFromJSON(
1641
+ jsonString: string,
1642
+ ): SafeParseResult<RunAgentThread, SDKValidationError> {
1643
+ return safeParse(
1644
+ jsonString,
1645
+ (x) => RunAgentThread$inboundSchema.parse(JSON.parse(x)),
1646
+ `Failed to parse 'RunAgentThread' from JSON`,
1647
+ );
1648
+ }
1649
+
1481
1650
  /** @internal */
1482
1651
  export const Memory$inboundSchema: z.ZodType<Memory, z.ZodTypeDef, unknown> = z
1483
1652
  .object({
@@ -2317,7 +2486,7 @@ export function httpFromJSON(
2317
2486
  /** @internal */
2318
2487
  export const Twelve$inboundSchema: z.ZodType<Twelve, z.ZodTypeDef, unknown> = z
2319
2488
  .object({
2320
- _id: z.string().default("01K5ENCKSWHJKG9277SMJ4E28Y"),
2489
+ _id: z.string().default("01K5RWRYMC1SRKM5MT11ATVJHN"),
2321
2490
  path: z.string(),
2322
2491
  key: z.string(),
2323
2492
  display_name: z.string(),
@@ -2356,7 +2525,7 @@ export const Twelve$outboundSchema: z.ZodType<
2356
2525
  z.ZodTypeDef,
2357
2526
  Twelve
2358
2527
  > = z.object({
2359
- id: z.string().default("01K5ENCKSWHJKG9277SMJ4E28Y"),
2528
+ id: z.string().default("01K5RWRYMC1SRKM5MT11ATVJHN"),
2360
2529
  path: z.string(),
2361
2530
  key: z.string(),
2362
2531
  displayName: z.string(),
@@ -3508,11 +3677,11 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
3508
3677
  instructions: z.string(),
3509
3678
  message: z.lazy(() => Message$inboundSchema),
3510
3679
  variables: z.record(z.any()).optional(),
3511
- contextId: z.string().optional(),
3680
+ contact: z.lazy(() => Contact$inboundSchema).optional(),
3681
+ thread: z.lazy(() => RunAgentThread$inboundSchema).optional(),
3512
3682
  memory: z.lazy(() => Memory$inboundSchema).optional(),
3513
3683
  path: z.string(),
3514
3684
  description: z.string().optional(),
3515
- iconUrl: z.string().optional(),
3516
3685
  system_prompt: z.string().optional(),
3517
3686
  memory_stores: z.array(z.string()).optional(),
3518
3687
  knowledge_bases: z.array(z.lazy(() => KnowledgeBases$inboundSchema))
@@ -3539,11 +3708,11 @@ export type RunAgentRequestBody$Outbound = {
3539
3708
  instructions: string;
3540
3709
  message: Message$Outbound;
3541
3710
  variables?: { [k: string]: any } | undefined;
3542
- contextId?: string | undefined;
3711
+ contact?: Contact$Outbound | undefined;
3712
+ thread?: RunAgentThread$Outbound | undefined;
3543
3713
  memory?: Memory$Outbound | undefined;
3544
3714
  path: string;
3545
3715
  description?: string | undefined;
3546
- iconUrl?: string | undefined;
3547
3716
  system_prompt?: string | undefined;
3548
3717
  memory_stores?: Array<string> | undefined;
3549
3718
  knowledge_bases?: Array<KnowledgeBases$Outbound> | undefined;
@@ -3565,11 +3734,11 @@ export const RunAgentRequestBody$outboundSchema: z.ZodType<
3565
3734
  instructions: z.string(),
3566
3735
  message: z.lazy(() => Message$outboundSchema),
3567
3736
  variables: z.record(z.any()).optional(),
3568
- contextId: z.string().optional(),
3737
+ contact: z.lazy(() => Contact$outboundSchema).optional(),
3738
+ thread: z.lazy(() => RunAgentThread$outboundSchema).optional(),
3569
3739
  memory: z.lazy(() => Memory$outboundSchema).optional(),
3570
3740
  path: z.string(),
3571
3741
  description: z.string().optional(),
3572
- iconUrl: z.string().optional(),
3573
3742
  systemPrompt: z.string().optional(),
3574
3743
  memoryStores: z.array(z.string()).optional(),
3575
3744
  knowledgeBases: z.array(z.lazy(() => KnowledgeBases$outboundSchema))
@@ -158,6 +158,50 @@ export type StreamRunAgentMessage = {
158
158
  metadata?: { [k: string]: any } | undefined;
159
159
  };
160
160
 
161
+ /**
162
+ * Information about the contact making the request. If the contact does not exist, it will be created automatically.
163
+ */
164
+ export type StreamRunAgentContact = {
165
+ /**
166
+ * Unique identifier for the contact
167
+ */
168
+ id: string;
169
+ /**
170
+ * Display name of the contact
171
+ */
172
+ displayName?: string | undefined;
173
+ /**
174
+ * Email address of the contact
175
+ */
176
+ email?: string | undefined;
177
+ /**
178
+ * A hash of key/value pairs containing any other data about the contact
179
+ */
180
+ metadata?: Array<{ [k: string]: any }> | undefined;
181
+ /**
182
+ * URL to the contact's avatar or logo
183
+ */
184
+ logoUrl?: string | undefined;
185
+ /**
186
+ * A list of tags associated with the contact
187
+ */
188
+ tags?: Array<string> | undefined;
189
+ };
190
+
191
+ /**
192
+ * Thread information to group related requests
193
+ */
194
+ export type StreamRunAgentThread = {
195
+ /**
196
+ * Unique thread identifier to group related invocations.
197
+ */
198
+ id: string;
199
+ /**
200
+ * Optional tags to differentiate or categorize threads
201
+ */
202
+ tags?: Array<string> | undefined;
203
+ };
204
+
161
205
  /**
162
206
  * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
163
207
  */
@@ -590,9 +634,13 @@ export type StreamRunAgentRequestBody = {
590
634
  */
591
635
  variables?: { [k: string]: any } | undefined;
592
636
  /**
593
- * Optional context ID that maps to thread_id
637
+ * Information about the contact making the request. If the contact does not exist, it will be created automatically.
594
638
  */
595
- contextId?: string | undefined;
639
+ contact?: StreamRunAgentContact | undefined;
640
+ /**
641
+ * Thread information to group related requests
642
+ */
643
+ thread?: StreamRunAgentThread | undefined;
596
644
  /**
597
645
  * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
598
646
  */
@@ -605,10 +653,6 @@ export type StreamRunAgentRequestBody = {
605
653
  * A brief summary of the agent's purpose.
606
654
  */
607
655
  description?: string | undefined;
608
- /**
609
- * Optional URL to an icon for the agent
610
- */
611
- iconUrl?: string | undefined;
612
656
  /**
613
657
  * A custom system prompt template for the agent. If omitted, the default template is used.
614
658
  */
@@ -1501,6 +1545,142 @@ export function streamRunAgentMessageFromJSON(
1501
1545
  );
1502
1546
  }
1503
1547
 
1548
+ /** @internal */
1549
+ export const StreamRunAgentContact$inboundSchema: z.ZodType<
1550
+ StreamRunAgentContact,
1551
+ z.ZodTypeDef,
1552
+ unknown
1553
+ > = z.object({
1554
+ id: z.string(),
1555
+ display_name: z.string().optional(),
1556
+ email: z.string().optional(),
1557
+ metadata: z.array(z.record(z.any())).optional(),
1558
+ logo_url: z.string().optional(),
1559
+ tags: z.array(z.string()).optional(),
1560
+ }).transform((v) => {
1561
+ return remap$(v, {
1562
+ "display_name": "displayName",
1563
+ "logo_url": "logoUrl",
1564
+ });
1565
+ });
1566
+
1567
+ /** @internal */
1568
+ export type StreamRunAgentContact$Outbound = {
1569
+ id: string;
1570
+ display_name?: string | undefined;
1571
+ email?: string | undefined;
1572
+ metadata?: Array<{ [k: string]: any }> | undefined;
1573
+ logo_url?: string | undefined;
1574
+ tags?: Array<string> | undefined;
1575
+ };
1576
+
1577
+ /** @internal */
1578
+ export const StreamRunAgentContact$outboundSchema: z.ZodType<
1579
+ StreamRunAgentContact$Outbound,
1580
+ z.ZodTypeDef,
1581
+ StreamRunAgentContact
1582
+ > = z.object({
1583
+ id: z.string(),
1584
+ displayName: z.string().optional(),
1585
+ email: z.string().optional(),
1586
+ metadata: z.array(z.record(z.any())).optional(),
1587
+ logoUrl: z.string().optional(),
1588
+ tags: z.array(z.string()).optional(),
1589
+ }).transform((v) => {
1590
+ return remap$(v, {
1591
+ displayName: "display_name",
1592
+ logoUrl: "logo_url",
1593
+ });
1594
+ });
1595
+
1596
+ /**
1597
+ * @internal
1598
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1599
+ */
1600
+ export namespace StreamRunAgentContact$ {
1601
+ /** @deprecated use `StreamRunAgentContact$inboundSchema` instead. */
1602
+ export const inboundSchema = StreamRunAgentContact$inboundSchema;
1603
+ /** @deprecated use `StreamRunAgentContact$outboundSchema` instead. */
1604
+ export const outboundSchema = StreamRunAgentContact$outboundSchema;
1605
+ /** @deprecated use `StreamRunAgentContact$Outbound` instead. */
1606
+ export type Outbound = StreamRunAgentContact$Outbound;
1607
+ }
1608
+
1609
+ export function streamRunAgentContactToJSON(
1610
+ streamRunAgentContact: StreamRunAgentContact,
1611
+ ): string {
1612
+ return JSON.stringify(
1613
+ StreamRunAgentContact$outboundSchema.parse(streamRunAgentContact),
1614
+ );
1615
+ }
1616
+
1617
+ export function streamRunAgentContactFromJSON(
1618
+ jsonString: string,
1619
+ ): SafeParseResult<StreamRunAgentContact, SDKValidationError> {
1620
+ return safeParse(
1621
+ jsonString,
1622
+ (x) => StreamRunAgentContact$inboundSchema.parse(JSON.parse(x)),
1623
+ `Failed to parse 'StreamRunAgentContact' from JSON`,
1624
+ );
1625
+ }
1626
+
1627
+ /** @internal */
1628
+ export const StreamRunAgentThread$inboundSchema: z.ZodType<
1629
+ StreamRunAgentThread,
1630
+ z.ZodTypeDef,
1631
+ unknown
1632
+ > = z.object({
1633
+ id: z.string(),
1634
+ tags: z.array(z.string()).optional(),
1635
+ });
1636
+
1637
+ /** @internal */
1638
+ export type StreamRunAgentThread$Outbound = {
1639
+ id: string;
1640
+ tags?: Array<string> | undefined;
1641
+ };
1642
+
1643
+ /** @internal */
1644
+ export const StreamRunAgentThread$outboundSchema: z.ZodType<
1645
+ StreamRunAgentThread$Outbound,
1646
+ z.ZodTypeDef,
1647
+ StreamRunAgentThread
1648
+ > = z.object({
1649
+ id: z.string(),
1650
+ tags: z.array(z.string()).optional(),
1651
+ });
1652
+
1653
+ /**
1654
+ * @internal
1655
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1656
+ */
1657
+ export namespace StreamRunAgentThread$ {
1658
+ /** @deprecated use `StreamRunAgentThread$inboundSchema` instead. */
1659
+ export const inboundSchema = StreamRunAgentThread$inboundSchema;
1660
+ /** @deprecated use `StreamRunAgentThread$outboundSchema` instead. */
1661
+ export const outboundSchema = StreamRunAgentThread$outboundSchema;
1662
+ /** @deprecated use `StreamRunAgentThread$Outbound` instead. */
1663
+ export type Outbound = StreamRunAgentThread$Outbound;
1664
+ }
1665
+
1666
+ export function streamRunAgentThreadToJSON(
1667
+ streamRunAgentThread: StreamRunAgentThread,
1668
+ ): string {
1669
+ return JSON.stringify(
1670
+ StreamRunAgentThread$outboundSchema.parse(streamRunAgentThread),
1671
+ );
1672
+ }
1673
+
1674
+ export function streamRunAgentThreadFromJSON(
1675
+ jsonString: string,
1676
+ ): SafeParseResult<StreamRunAgentThread, SDKValidationError> {
1677
+ return safeParse(
1678
+ jsonString,
1679
+ (x) => StreamRunAgentThread$inboundSchema.parse(JSON.parse(x)),
1680
+ `Failed to parse 'StreamRunAgentThread' from JSON`,
1681
+ );
1682
+ }
1683
+
1504
1684
  /** @internal */
1505
1685
  export const StreamRunAgentMemory$inboundSchema: z.ZodType<
1506
1686
  StreamRunAgentMemory,
@@ -2404,7 +2584,7 @@ export function toolsHttpFromJSON(
2404
2584
  /** @internal */
2405
2585
  export const Tools12$inboundSchema: z.ZodType<Tools12, z.ZodTypeDef, unknown> =
2406
2586
  z.object({
2407
- _id: z.string().default("01K5ENCKT1J88RST8HW320MGM7"),
2587
+ _id: z.string().default("01K5RWRYMHES6MPJH5HNX0Y052"),
2408
2588
  path: z.string(),
2409
2589
  key: z.string(),
2410
2590
  display_name: z.string(),
@@ -2444,7 +2624,7 @@ export const Tools12$outboundSchema: z.ZodType<
2444
2624
  z.ZodTypeDef,
2445
2625
  Tools12
2446
2626
  > = z.object({
2447
- id: z.string().default("01K5ENCKT1J88RST8HW320MGM7"),
2627
+ id: z.string().default("01K5RWRYMHES6MPJH5HNX0Y052"),
2448
2628
  path: z.string(),
2449
2629
  key: z.string(),
2450
2630
  displayName: z.string(),
@@ -3684,11 +3864,11 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
3684
3864
  instructions: z.string(),
3685
3865
  message: z.lazy(() => StreamRunAgentMessage$inboundSchema),
3686
3866
  variables: z.record(z.any()).optional(),
3687
- contextId: z.string().optional(),
3867
+ contact: z.lazy(() => StreamRunAgentContact$inboundSchema).optional(),
3868
+ thread: z.lazy(() => StreamRunAgentThread$inboundSchema).optional(),
3688
3869
  memory: z.lazy(() => StreamRunAgentMemory$inboundSchema).optional(),
3689
3870
  path: z.string(),
3690
3871
  description: z.string().optional(),
3691
- iconUrl: z.string().optional(),
3692
3872
  system_prompt: z.string().optional(),
3693
3873
  memory_stores: z.array(z.string()).optional(),
3694
3874
  knowledge_bases: z.array(
@@ -3720,11 +3900,11 @@ export type StreamRunAgentRequestBody$Outbound = {
3720
3900
  instructions: string;
3721
3901
  message: StreamRunAgentMessage$Outbound;
3722
3902
  variables?: { [k: string]: any } | undefined;
3723
- contextId?: string | undefined;
3903
+ contact?: StreamRunAgentContact$Outbound | undefined;
3904
+ thread?: StreamRunAgentThread$Outbound | undefined;
3724
3905
  memory?: StreamRunAgentMemory$Outbound | undefined;
3725
3906
  path: string;
3726
3907
  description?: string | undefined;
3727
- iconUrl?: string | undefined;
3728
3908
  system_prompt?: string | undefined;
3729
3909
  memory_stores?: Array<string> | undefined;
3730
3910
  knowledge_bases?: Array<StreamRunAgentKnowledgeBases$Outbound> | undefined;
@@ -3747,11 +3927,11 @@ export const StreamRunAgentRequestBody$outboundSchema: z.ZodType<
3747
3927
  instructions: z.string(),
3748
3928
  message: z.lazy(() => StreamRunAgentMessage$outboundSchema),
3749
3929
  variables: z.record(z.any()).optional(),
3750
- contextId: z.string().optional(),
3930
+ contact: z.lazy(() => StreamRunAgentContact$outboundSchema).optional(),
3931
+ thread: z.lazy(() => StreamRunAgentThread$outboundSchema).optional(),
3751
3932
  memory: z.lazy(() => StreamRunAgentMemory$outboundSchema).optional(),
3752
3933
  path: z.string(),
3753
3934
  description: z.string().optional(),
3754
- iconUrl: z.string().optional(),
3755
3935
  systemPrompt: z.string().optional(),
3756
3936
  memoryStores: z.array(z.string()).optional(),
3757
3937
  knowledgeBases: z.array(
@@ -538,7 +538,7 @@ export const UpdateBudgetResponseBody$inboundSchema: z.ZodType<
538
538
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
539
539
  .optional(),
540
540
  updated: z.string().datetime({ offset: true }).default(
541
- "2025-09-18T14:59:12.873Z",
541
+ "2025-09-22T14:20:40.492Z",
542
542
  ).transform(v => new Date(v)),
543
543
  }).transform((v) => {
544
544
  return remap$(v, {
@@ -573,7 +573,7 @@ export const UpdateBudgetResponseBody$outboundSchema: z.ZodType<
573
573
  isActive: z.boolean(),
574
574
  consumption: z.lazy(() => UpdateBudgetConsumption$outboundSchema).optional(),
575
575
  created: z.date().transform(v => v.toISOString()).optional(),
576
- updated: z.date().default(() => new Date("2025-09-18T14:59:12.873Z"))
576
+ updated: z.date().default(() => new Date("2025-09-22T14:20:40.492Z"))
577
577
  .transform(v => v.toISOString()),
578
578
  }).transform((v) => {
579
579
  return remap$(v, {
@@ -244,7 +244,7 @@ export const UpdateContactResponseBody$inboundSchema: z.ZodType<
244
244
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
245
245
  .optional(),
246
246
  updated: z.string().datetime({ offset: true }).default(
247
- "2025-09-18T14:59:12.873Z",
247
+ "2025-09-22T14:20:40.492Z",
248
248
  ).transform(v => new Date(v)),
249
249
  }).transform((v) => {
250
250
  return remap$(v, {
@@ -282,7 +282,7 @@ export const UpdateContactResponseBody$outboundSchema: z.ZodType<
282
282
  tags: z.array(z.string()).optional(),
283
283
  metadata: z.record(z.any()).optional(),
284
284
  created: z.date().transform(v => v.toISOString()).optional(),
285
- updated: z.date().default(() => new Date("2025-09-18T14:59:12.873Z"))
285
+ updated: z.date().default(() => new Date("2025-09-22T14:20:40.492Z"))
286
286
  .transform(v => v.toISOString()),
287
287
  }).transform((v) => {
288
288
  return remap$(v, {
@@ -6018,7 +6018,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
6018
6018
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
6019
6019
  .optional(),
6020
6020
  updated: z.string().datetime({ offset: true }).default(
6021
- "2025-09-18T14:59:12.873Z",
6021
+ "2025-09-22T14:20:40.492Z",
6022
6022
  ).transform(v => new Date(v)),
6023
6023
  }).transform((v) => {
6024
6024
  return remap$(v, {
@@ -6080,7 +6080,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
6080
6080
  createdById: z.string().optional(),
6081
6081
  updatedById: z.string().optional(),
6082
6082
  created: z.date().transform(v => v.toISOString()).optional(),
6083
- updated: z.date().default(() => new Date("2025-09-18T14:59:12.873Z"))
6083
+ updated: z.date().default(() => new Date("2025-09-22T14:20:40.492Z"))
6084
6084
  .transform(v => v.toISOString()),
6085
6085
  }).transform((v) => {
6086
6086
  return remap$(v, {
@@ -302,7 +302,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
302
302
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
303
303
  .optional(),
304
304
  updated: z.string().datetime({ offset: true }).default(
305
- "2025-09-18T14:59:12.873Z",
305
+ "2025-09-22T14:20:40.492Z",
306
306
  ).transform(v => new Date(v)),
307
307
  }).transform((v) => {
308
308
  return remap$(v, {
@@ -347,7 +347,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
347
347
  parentId: z.string().optional(),
348
348
  version: z.string().optional(),
349
349
  created: z.date().transform(v => v.toISOString()).optional(),
350
- updated: z.date().default(() => new Date("2025-09-18T14:59:12.873Z"))
350
+ updated: z.date().default(() => new Date("2025-09-22T14:20:40.492Z"))
351
351
  .transform(v => v.toISOString()),
352
352
  }).transform((v) => {
353
353
  return remap$(v, {
@@ -244,7 +244,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
244
244
  z.ZodTypeDef,
245
245
  unknown
246
246
  > = z.object({
247
- _id: z.string().default("01K5ENCKXGXNBMN6B8VZHWP4MN"),
247
+ _id: z.string().default("01K5RWRYRD0DPR2Y26BAZ94GWV"),
248
248
  display_name: z.string(),
249
249
  description: z.string().optional(),
250
250
  status: UpdateDatasourceStatus$inboundSchema,
@@ -288,7 +288,7 @@ export const UpdateDatasourceResponseBody$outboundSchema: z.ZodType<
288
288
  z.ZodTypeDef,
289
289
  UpdateDatasourceResponseBody
290
290
  > = z.object({
291
- id: z.string().default("01K5ENCKXGXNBMN6B8VZHWP4MN"),
291
+ id: z.string().default("01K5RWRYRD0DPR2Y26BAZ94GWV"),
292
292
  displayName: z.string(),
293
293
  description: z.string().optional(),
294
294
  status: UpdateDatasourceStatus$outboundSchema,