@orq-ai/node 3.1.10 → 3.1.11

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 (98) hide show
  1. package/bin/mcp-server.js +2896 -804
  2. package/bin/mcp-server.js.map +18 -18
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/mcp-server/cli/start/command.d.ts.map +1 -1
  7. package/mcp-server/cli/start/command.js +9 -0
  8. package/mcp-server/cli/start/command.js.map +1 -1
  9. package/mcp-server/cli/start/impl.d.ts +1 -0
  10. package/mcp-server/cli/start/impl.d.ts.map +1 -1
  11. package/mcp-server/cli/start/impl.js +2 -0
  12. package/mcp-server/cli/start/impl.js.map +1 -1
  13. package/mcp-server/mcp-server.js +1 -1
  14. package/mcp-server/server.d.ts +1 -0
  15. package/mcp-server/server.d.ts.map +1 -1
  16. package/mcp-server/server.js +3 -2
  17. package/mcp-server/server.js.map +1 -1
  18. package/mcp-server/tools.d.ts +1 -1
  19. package/mcp-server/tools.d.ts.map +1 -1
  20. package/mcp-server/tools.js +4 -1
  21. package/mcp-server/tools.js.map +1 -1
  22. package/models/components/deployments.d.ts +1716 -400
  23. package/models/components/deployments.d.ts.map +1 -1
  24. package/models/components/deployments.js +1617 -357
  25. package/models/components/deployments.js.map +1 -1
  26. package/models/operations/createcontact.js +2 -2
  27. package/models/operations/createprompt.d.ts +16 -16
  28. package/models/operations/createprompt.d.ts.map +1 -1
  29. package/models/operations/createprompt.js +26 -27
  30. package/models/operations/createprompt.js.map +1 -1
  31. package/models/operations/deploymentcreatemetric.d.ts +790 -132
  32. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  33. package/models/operations/deploymentcreatemetric.js +770 -143
  34. package/models/operations/deploymentcreatemetric.js.map +1 -1
  35. package/models/operations/deploymentgetconfig.d.ts +1819 -503
  36. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  37. package/models/operations/deploymentgetconfig.js +1786 -521
  38. package/models/operations/deploymentgetconfig.js.map +1 -1
  39. package/models/operations/deploymentinvoke.d.ts +17 -17
  40. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  41. package/models/operations/deploymentinvoke.js +20 -20
  42. package/models/operations/deploymentinvoke.js.map +1 -1
  43. package/models/operations/deploymentstream.d.ts +1742 -426
  44. package/models/operations/deploymentstream.d.ts.map +1 -1
  45. package/models/operations/deploymentstream.js +1643 -386
  46. package/models/operations/deploymentstream.js.map +1 -1
  47. package/models/operations/fileget.js +2 -2
  48. package/models/operations/filelist.js +2 -2
  49. package/models/operations/fileupload.js +2 -2
  50. package/package.json +1 -1
  51. package/packages/orq-rc/jsr.json +1 -1
  52. package/packages/orq-rc/package-lock.json +2 -2
  53. package/packages/orq-rc/package.json +1 -1
  54. package/packages/orq-rc/src/lib/config.ts +3 -3
  55. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +9 -0
  56. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +3 -0
  57. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  58. package/packages/orq-rc/src/mcp-server/server.ts +10 -2
  59. package/packages/orq-rc/src/mcp-server/tools.ts +5 -0
  60. package/packages/orq-rc/src/models/components/deployments.ts +3134 -673
  61. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +2 -2
  62. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  63. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  64. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  65. package/packages/orq-rc/src/models/operations/createprompt.ts +8 -8
  66. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +1799 -334
  67. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +3619 -1003
  68. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +32 -28
  69. package/packages/orq-rc/src/models/operations/fileget.ts +3 -2
  70. package/packages/orq-rc/src/models/operations/filelist.ts +3 -2
  71. package/packages/orq-rc/src/models/operations/fileupload.ts +4 -2
  72. package/packages/orq-rc/src/models/operations/getallprompts.ts +8 -8
  73. package/packages/orq-rc/src/models/operations/getoneprompt.ts +8 -8
  74. package/packages/orq-rc/src/models/operations/getpromptversion.ts +8 -8
  75. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  76. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/listpromptversions.ts +8 -8
  78. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  81. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/updateprompt.ts +50 -46
  83. package/src/lib/config.ts +3 -3
  84. package/src/mcp-server/cli/start/command.ts +9 -0
  85. package/src/mcp-server/cli/start/impl.ts +3 -0
  86. package/src/mcp-server/mcp-server.ts +1 -1
  87. package/src/mcp-server/server.ts +10 -2
  88. package/src/mcp-server/tools.ts +5 -0
  89. package/src/models/components/deployments.ts +3133 -635
  90. package/src/models/operations/createcontact.ts +2 -2
  91. package/src/models/operations/createprompt.ts +34 -30
  92. package/src/models/operations/deploymentcreatemetric.ts +1859 -324
  93. package/src/models/operations/deploymentgetconfig.ts +3442 -886
  94. package/src/models/operations/deploymentinvoke.ts +32 -28
  95. package/src/models/operations/deploymentstream.ts +3661 -763
  96. package/src/models/operations/fileget.ts +2 -2
  97. package/src/models/operations/filelist.ts +2 -2
  98. package/src/models/operations/fileupload.ts +2 -2
@@ -78,7 +78,7 @@ export type DeploymentInvokeMessageDeploymentsRole = ClosedEnum<
78
78
  typeof DeploymentInvokeMessageDeploymentsRole
79
79
  >;
80
80
 
81
- export type Message3 = {
81
+ export type DeploymentInvokeMessage3 = {
82
82
  /**
83
83
  * The role of the prompt message
84
84
  */
@@ -167,14 +167,14 @@ export type DeploymentInvokeMessage1 = {
167
167
 
168
168
  export type DeploymentInvokeMessage =
169
169
  | DeploymentInvokeMessage2
170
- | Message3
170
+ | DeploymentInvokeMessage3
171
171
  | DeploymentInvokeMessage1;
172
172
 
173
173
  export type DeploymentInvokeChoices = {
174
174
  index: number;
175
175
  message?:
176
176
  | DeploymentInvokeMessage2
177
- | Message3
177
+ | DeploymentInvokeMessage3
178
178
  | DeploymentInvokeMessage1
179
179
  | undefined;
180
180
  finishReason?: string | null | undefined;
@@ -395,8 +395,8 @@ export namespace DeploymentInvokeMessageDeploymentsRole$ {
395
395
  }
396
396
 
397
397
  /** @internal */
398
- export const Message3$inboundSchema: z.ZodType<
399
- Message3,
398
+ export const DeploymentInvokeMessage3$inboundSchema: z.ZodType<
399
+ DeploymentInvokeMessage3,
400
400
  z.ZodTypeDef,
401
401
  unknown
402
402
  > = z.object({
@@ -405,16 +405,16 @@ export const Message3$inboundSchema: z.ZodType<
405
405
  });
406
406
 
407
407
  /** @internal */
408
- export type Message3$Outbound = {
408
+ export type DeploymentInvokeMessage3$Outbound = {
409
409
  role: string;
410
410
  url: string;
411
411
  };
412
412
 
413
413
  /** @internal */
414
- export const Message3$outboundSchema: z.ZodType<
415
- Message3$Outbound,
414
+ export const DeploymentInvokeMessage3$outboundSchema: z.ZodType<
415
+ DeploymentInvokeMessage3$Outbound,
416
416
  z.ZodTypeDef,
417
- Message3
417
+ DeploymentInvokeMessage3
418
418
  > = z.object({
419
419
  role: DeploymentInvokeMessageDeploymentsRole$outboundSchema,
420
420
  url: z.string(),
@@ -424,26 +424,30 @@ export const Message3$outboundSchema: z.ZodType<
424
424
  * @internal
425
425
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
426
426
  */
427
- export namespace Message3$ {
428
- /** @deprecated use `Message3$inboundSchema` instead. */
429
- export const inboundSchema = Message3$inboundSchema;
430
- /** @deprecated use `Message3$outboundSchema` instead. */
431
- export const outboundSchema = Message3$outboundSchema;
432
- /** @deprecated use `Message3$Outbound` instead. */
433
- export type Outbound = Message3$Outbound;
427
+ export namespace DeploymentInvokeMessage3$ {
428
+ /** @deprecated use `DeploymentInvokeMessage3$inboundSchema` instead. */
429
+ export const inboundSchema = DeploymentInvokeMessage3$inboundSchema;
430
+ /** @deprecated use `DeploymentInvokeMessage3$outboundSchema` instead. */
431
+ export const outboundSchema = DeploymentInvokeMessage3$outboundSchema;
432
+ /** @deprecated use `DeploymentInvokeMessage3$Outbound` instead. */
433
+ export type Outbound = DeploymentInvokeMessage3$Outbound;
434
434
  }
435
435
 
436
- export function message3ToJSON(message3: Message3): string {
437
- return JSON.stringify(Message3$outboundSchema.parse(message3));
436
+ export function deploymentInvokeMessage3ToJSON(
437
+ deploymentInvokeMessage3: DeploymentInvokeMessage3,
438
+ ): string {
439
+ return JSON.stringify(
440
+ DeploymentInvokeMessage3$outboundSchema.parse(deploymentInvokeMessage3),
441
+ );
438
442
  }
439
443
 
440
- export function message3FromJSON(
444
+ export function deploymentInvokeMessage3FromJSON(
441
445
  jsonString: string,
442
- ): SafeParseResult<Message3, SDKValidationError> {
446
+ ): SafeParseResult<DeploymentInvokeMessage3, SDKValidationError> {
443
447
  return safeParse(
444
448
  jsonString,
445
- (x) => Message3$inboundSchema.parse(JSON.parse(x)),
446
- `Failed to parse 'Message3' from JSON`,
449
+ (x) => DeploymentInvokeMessage3$inboundSchema.parse(JSON.parse(x)),
450
+ `Failed to parse 'DeploymentInvokeMessage3' from JSON`,
447
451
  );
448
452
  }
449
453
 
@@ -772,14 +776,14 @@ export const DeploymentInvokeMessage$inboundSchema: z.ZodType<
772
776
  unknown
773
777
  > = z.union([
774
778
  z.lazy(() => DeploymentInvokeMessage2$inboundSchema),
775
- z.lazy(() => Message3$inboundSchema),
779
+ z.lazy(() => DeploymentInvokeMessage3$inboundSchema),
776
780
  z.lazy(() => DeploymentInvokeMessage1$inboundSchema),
777
781
  ]);
778
782
 
779
783
  /** @internal */
780
784
  export type DeploymentInvokeMessage$Outbound =
781
785
  | DeploymentInvokeMessage2$Outbound
782
- | Message3$Outbound
786
+ | DeploymentInvokeMessage3$Outbound
783
787
  | DeploymentInvokeMessage1$Outbound;
784
788
 
785
789
  /** @internal */
@@ -789,7 +793,7 @@ export const DeploymentInvokeMessage$outboundSchema: z.ZodType<
789
793
  DeploymentInvokeMessage
790
794
  > = z.union([
791
795
  z.lazy(() => DeploymentInvokeMessage2$outboundSchema),
792
- z.lazy(() => Message3$outboundSchema),
796
+ z.lazy(() => DeploymentInvokeMessage3$outboundSchema),
793
797
  z.lazy(() => DeploymentInvokeMessage1$outboundSchema),
794
798
  ]);
795
799
 
@@ -833,7 +837,7 @@ export const DeploymentInvokeChoices$inboundSchema: z.ZodType<
833
837
  index: z.number(),
834
838
  message: z.union([
835
839
  z.lazy(() => DeploymentInvokeMessage2$inboundSchema),
836
- z.lazy(() => Message3$inboundSchema),
840
+ z.lazy(() => DeploymentInvokeMessage3$inboundSchema),
837
841
  z.lazy(() => DeploymentInvokeMessage1$inboundSchema),
838
842
  ]).optional(),
839
843
  finish_reason: z.nullable(z.string()).optional(),
@@ -848,7 +852,7 @@ export type DeploymentInvokeChoices$Outbound = {
848
852
  index: number;
849
853
  message?:
850
854
  | DeploymentInvokeMessage2$Outbound
851
- | Message3$Outbound
855
+ | DeploymentInvokeMessage3$Outbound
852
856
  | DeploymentInvokeMessage1$Outbound
853
857
  | undefined;
854
858
  finish_reason?: string | null | undefined;
@@ -863,7 +867,7 @@ export const DeploymentInvokeChoices$outboundSchema: z.ZodType<
863
867
  index: z.number(),
864
868
  message: z.union([
865
869
  z.lazy(() => DeploymentInvokeMessage2$outboundSchema),
866
- z.lazy(() => Message3$outboundSchema),
870
+ z.lazy(() => DeploymentInvokeMessage3$outboundSchema),
867
871
  z.lazy(() => DeploymentInvokeMessage1$outboundSchema),
868
872
  ]).optional(),
869
873
  finishReason: z.nullable(z.string()).optional(),
@@ -22,6 +22,7 @@ export type FileGetRequest = {
22
22
  export const FileGetPurpose = {
23
23
  Retrieval: "retrieval",
24
24
  KnowledgeDatasource: "knowledge_datasource",
25
+ Batch: "batch",
25
26
  } as const;
26
27
  /**
27
28
  * The intended purpose of the uploaded file.
@@ -145,7 +146,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
145
146
  file_name: z.string(),
146
147
  workspace_id: z.string(),
147
148
  created: z.string().datetime({ offset: true }).default(
148
- "2025-02-27T17:20:06.978Z",
149
+ "2025-03-05T18:46:01.581Z",
149
150
  ).transform(v => new Date(v)),
150
151
  }).transform((v) => {
151
152
  return remap$(v, {
@@ -179,7 +180,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
179
180
  bytes: z.number(),
180
181
  fileName: z.string(),
181
182
  workspaceId: z.string(),
182
- created: z.date().default(() => new Date("2025-02-27T17:20:06.978Z"))
183
+ created: z.date().default(() => new Date("2025-03-05T18:46:01.581Z"))
183
184
  .transform(v => v.toISOString()),
184
185
  }).transform((v) => {
185
186
  return remap$(v, {
@@ -35,6 +35,7 @@ export type FileListObject = ClosedEnum<typeof FileListObject>;
35
35
  export const FileListPurpose = {
36
36
  Retrieval: "retrieval",
37
37
  KnowledgeDatasource: "knowledge_datasource",
38
+ Batch: "batch",
38
39
  } as const;
39
40
  /**
40
41
  * The intended purpose of the uploaded file.
@@ -195,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
195
196
  file_name: z.string(),
196
197
  workspace_id: z.string(),
197
198
  created: z.string().datetime({ offset: true }).default(
198
- "2025-02-27T17:20:06.978Z",
199
+ "2025-03-05T18:46:01.581Z",
199
200
  ).transform(v => new Date(v)),
200
201
  }).transform((v) => {
201
202
  return remap$(v, {
@@ -229,7 +230,7 @@ export const FileListData$outboundSchema: z.ZodType<
229
230
  bytes: z.number(),
230
231
  fileName: z.string(),
231
232
  workspaceId: z.string(),
232
- created: z.date().default(() => new Date("2025-02-27T17:20:06.978Z"))
233
+ created: z.date().default(() => new Date("2025-03-05T18:46:01.581Z"))
233
234
  .transform(v => v.toISOString()),
234
235
  }).transform((v) => {
235
236
  return remap$(v, {
@@ -21,6 +21,7 @@ export type FileT = {
21
21
  export const Purpose = {
22
22
  Retrieval: "retrieval",
23
23
  KnowledgeDatasource: "knowledge_datasource",
24
+ Batch: "batch",
24
25
  } as const;
25
26
  /**
26
27
  * The intended purpose of the uploaded file.
@@ -44,6 +45,7 @@ export type FileUploadRequestBody = {
44
45
  export const FileUploadPurpose = {
45
46
  Retrieval: "retrieval",
46
47
  KnowledgeDatasource: "knowledge_datasource",
48
+ Batch: "batch",
47
49
  } as const;
48
50
  /**
49
51
  * The intended purpose of the uploaded file.
@@ -245,7 +247,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
245
247
  file_name: z.string(),
246
248
  workspace_id: z.string(),
247
249
  created: z.string().datetime({ offset: true }).default(
248
- "2025-02-27T17:20:06.978Z",
250
+ "2025-03-05T18:46:01.581Z",
249
251
  ).transform(v => new Date(v)),
250
252
  }).transform((v) => {
251
253
  return remap$(v, {
@@ -279,7 +281,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
279
281
  bytes: z.number(),
280
282
  fileName: z.string(),
281
283
  workspaceId: z.string(),
282
- created: z.date().default(() => new Date("2025-02-27T17:20:06.978Z"))
284
+ created: z.date().default(() => new Date("2025-03-05T18:46:01.581Z"))
283
285
  .transform(v => v.toISOString()),
284
286
  }).transform((v) => {
285
287
  return remap$(v, {
@@ -460,8 +460,8 @@ export type GetAllPromptsData = {
460
460
  domainId: string;
461
461
  created: string;
462
462
  updated: string;
463
- createdById?: string | undefined;
464
- updatedById?: string | undefined;
463
+ createdById?: string | null | undefined;
464
+ updatedById?: string | null | undefined;
465
465
  /**
466
466
  * The prompt’s name, meant to be displayable in the UI.
467
467
  */
@@ -1961,8 +1961,8 @@ export const GetAllPromptsData$inboundSchema: z.ZodType<
1961
1961
  domain_id: z.string(),
1962
1962
  created: z.string(),
1963
1963
  updated: z.string(),
1964
- created_by_id: z.string().optional(),
1965
- updated_by_id: z.string().optional(),
1964
+ created_by_id: z.nullable(z.string()).optional(),
1965
+ updated_by_id: z.nullable(z.string()).optional(),
1966
1966
  display_name: z.string(),
1967
1967
  description: z.nullable(z.string()).optional(),
1968
1968
  prompt_config: z.lazy(() => GetAllPromptsPromptConfig$inboundSchema),
@@ -1986,8 +1986,8 @@ export type GetAllPromptsData$Outbound = {
1986
1986
  domain_id: string;
1987
1987
  created: string;
1988
1988
  updated: string;
1989
- created_by_id?: string | undefined;
1990
- updated_by_id?: string | undefined;
1989
+ created_by_id?: string | null | undefined;
1990
+ updated_by_id?: string | null | undefined;
1991
1991
  display_name: string;
1992
1992
  description?: string | null | undefined;
1993
1993
  prompt_config: GetAllPromptsPromptConfig$Outbound;
@@ -2006,8 +2006,8 @@ export const GetAllPromptsData$outboundSchema: z.ZodType<
2006
2006
  domainId: z.string(),
2007
2007
  created: z.string(),
2008
2008
  updated: z.string(),
2009
- createdById: z.string().optional(),
2010
- updatedById: z.string().optional(),
2009
+ createdById: z.nullable(z.string()).optional(),
2010
+ updatedById: z.nullable(z.string()).optional(),
2011
2011
  displayName: z.string(),
2012
2012
  description: z.nullable(z.string()).optional(),
2013
2013
  promptConfig: z.lazy(() => GetAllPromptsPromptConfig$outboundSchema),
@@ -450,8 +450,8 @@ export type GetOnePromptResponseBody = {
450
450
  domainId: string;
451
451
  created: string;
452
452
  updated: string;
453
- createdById?: string | undefined;
454
- updatedById?: string | undefined;
453
+ createdById?: string | null | undefined;
454
+ updatedById?: string | null | undefined;
455
455
  /**
456
456
  * The prompt’s name, meant to be displayable in the UI.
457
457
  */
@@ -1895,8 +1895,8 @@ export const GetOnePromptResponseBody$inboundSchema: z.ZodType<
1895
1895
  domain_id: z.string(),
1896
1896
  created: z.string(),
1897
1897
  updated: z.string(),
1898
- created_by_id: z.string().optional(),
1899
- updated_by_id: z.string().optional(),
1898
+ created_by_id: z.nullable(z.string()).optional(),
1899
+ updated_by_id: z.nullable(z.string()).optional(),
1900
1900
  display_name: z.string(),
1901
1901
  description: z.nullable(z.string()).optional(),
1902
1902
  prompt_config: z.lazy(() => GetOnePromptPromptConfig$inboundSchema),
@@ -1920,8 +1920,8 @@ export type GetOnePromptResponseBody$Outbound = {
1920
1920
  domain_id: string;
1921
1921
  created: string;
1922
1922
  updated: string;
1923
- created_by_id?: string | undefined;
1924
- updated_by_id?: string | undefined;
1923
+ created_by_id?: string | null | undefined;
1924
+ updated_by_id?: string | null | undefined;
1925
1925
  display_name: string;
1926
1926
  description?: string | null | undefined;
1927
1927
  prompt_config: GetOnePromptPromptConfig$Outbound;
@@ -1940,8 +1940,8 @@ export const GetOnePromptResponseBody$outboundSchema: z.ZodType<
1940
1940
  domainId: z.string(),
1941
1941
  created: z.string(),
1942
1942
  updated: z.string(),
1943
- createdById: z.string().optional(),
1944
- updatedById: z.string().optional(),
1943
+ createdById: z.nullable(z.string()).optional(),
1944
+ updatedById: z.nullable(z.string()).optional(),
1945
1945
  displayName: z.string(),
1946
1946
  description: z.nullable(z.string()).optional(),
1947
1947
  promptConfig: z.lazy(() => GetOnePromptPromptConfig$outboundSchema),
@@ -452,8 +452,8 @@ export type GetPromptVersionMetadata = {
452
452
  */
453
453
  export type GetPromptVersionResponseBody = {
454
454
  id: string;
455
- createdById?: string | undefined;
456
- updatedById?: string | undefined;
455
+ createdById?: string | null | undefined;
456
+ updatedById?: string | null | undefined;
457
457
  /**
458
458
  * The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
459
459
  */
@@ -1905,8 +1905,8 @@ export const GetPromptVersionResponseBody$inboundSchema: z.ZodType<
1905
1905
  unknown
1906
1906
  > = z.object({
1907
1907
  _id: z.string(),
1908
- created_by_id: z.string().optional(),
1909
- updated_by_id: z.string().optional(),
1908
+ created_by_id: z.nullable(z.string()).optional(),
1909
+ updated_by_id: z.nullable(z.string()).optional(),
1910
1910
  description: z.nullable(z.string()).optional(),
1911
1911
  prompt_config: z.lazy(() => GetPromptVersionPromptConfig$inboundSchema),
1912
1912
  metadata: z.lazy(() => GetPromptVersionMetadata$inboundSchema).optional(),
@@ -1923,8 +1923,8 @@ export const GetPromptVersionResponseBody$inboundSchema: z.ZodType<
1923
1923
  /** @internal */
1924
1924
  export type GetPromptVersionResponseBody$Outbound = {
1925
1925
  _id: string;
1926
- created_by_id?: string | undefined;
1927
- updated_by_id?: string | undefined;
1926
+ created_by_id?: string | null | undefined;
1927
+ updated_by_id?: string | null | undefined;
1928
1928
  description?: string | null | undefined;
1929
1929
  prompt_config: GetPromptVersionPromptConfig$Outbound;
1930
1930
  metadata?: GetPromptVersionMetadata$Outbound | undefined;
@@ -1938,8 +1938,8 @@ export const GetPromptVersionResponseBody$outboundSchema: z.ZodType<
1938
1938
  GetPromptVersionResponseBody
1939
1939
  > = z.object({
1940
1940
  id: z.string(),
1941
- createdById: z.string().optional(),
1942
- updatedById: z.string().optional(),
1941
+ createdById: z.nullable(z.string()).optional(),
1942
+ updatedById: z.nullable(z.string()).optional(),
1943
1943
  description: z.nullable(z.string()).optional(),
1944
1944
  promptConfig: z.lazy(() => GetPromptVersionPromptConfig$outboundSchema),
1945
1945
  metadata: z.lazy(() => GetPromptVersionMetadata$outboundSchema).optional(),
@@ -912,7 +912,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
912
912
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
913
913
  .optional(),
914
914
  updated: z.string().datetime({ offset: true }).default(
915
- "2025-02-27T17:20:05.594Z",
915
+ "2025-03-05T18:46:00.497Z",
916
916
  ).transform(v => new Date(v)),
917
917
  }).transform((v) => {
918
918
  return remap$(v, {
@@ -955,7 +955,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
955
955
  createdById: z.string().optional(),
956
956
  updatedById: z.string().optional(),
957
957
  created: z.date().transform(v => v.toISOString()).optional(),
958
- updated: z.date().default(() => new Date("2025-02-27T17:20:05.594Z"))
958
+ updated: z.date().default(() => new Date("2025-03-05T18:46:00.497Z"))
959
959
  .transform(v => v.toISOString()),
960
960
  }).transform((v) => {
961
961
  return remap$(v, {
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
253
253
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
254
254
  .optional(),
255
255
  updated: z.string().datetime({ offset: true }).default(
256
- "2025-02-27T17:20:05.594Z",
256
+ "2025-03-05T18:46:00.497Z",
257
257
  ).transform(v => new Date(v)),
258
258
  }).transform((v) => {
259
259
  return remap$(v, {
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
293
293
  updatedById: z.string().optional(),
294
294
  metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
295
295
  created: z.date().transform(v => v.toISOString()).optional(),
296
- updated: z.date().default(() => new Date("2025-02-27T17:20:05.594Z"))
296
+ updated: z.date().default(() => new Date("2025-03-05T18:46:00.497Z"))
297
297
  .transform(v => v.toISOString()),
298
298
  }).transform((v) => {
299
299
  return remap$(v, {
@@ -467,8 +467,8 @@ export type ListPromptVersionsMetadata = {
467
467
 
468
468
  export type ListPromptVersionsData = {
469
469
  id: string;
470
- createdById?: string | undefined;
471
- updatedById?: string | undefined;
470
+ createdById?: string | null | undefined;
471
+ updatedById?: string | null | undefined;
472
472
  /**
473
473
  * The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
474
474
  */
@@ -1971,8 +1971,8 @@ export const ListPromptVersionsData$inboundSchema: z.ZodType<
1971
1971
  unknown
1972
1972
  > = z.object({
1973
1973
  _id: z.string(),
1974
- created_by_id: z.string().optional(),
1975
- updated_by_id: z.string().optional(),
1974
+ created_by_id: z.nullable(z.string()).optional(),
1975
+ updated_by_id: z.nullable(z.string()).optional(),
1976
1976
  description: z.nullable(z.string()).optional(),
1977
1977
  prompt_config: z.lazy(() => ListPromptVersionsPromptConfig$inboundSchema),
1978
1978
  metadata: z.lazy(() => ListPromptVersionsMetadata$inboundSchema).optional(),
@@ -1989,8 +1989,8 @@ export const ListPromptVersionsData$inboundSchema: z.ZodType<
1989
1989
  /** @internal */
1990
1990
  export type ListPromptVersionsData$Outbound = {
1991
1991
  _id: string;
1992
- created_by_id?: string | undefined;
1993
- updated_by_id?: string | undefined;
1992
+ created_by_id?: string | null | undefined;
1993
+ updated_by_id?: string | null | undefined;
1994
1994
  description?: string | null | undefined;
1995
1995
  prompt_config: ListPromptVersionsPromptConfig$Outbound;
1996
1996
  metadata?: ListPromptVersionsMetadata$Outbound | undefined;
@@ -2004,8 +2004,8 @@ export const ListPromptVersionsData$outboundSchema: z.ZodType<
2004
2004
  ListPromptVersionsData
2005
2005
  > = z.object({
2006
2006
  id: z.string(),
2007
- createdById: z.string().optional(),
2008
- updatedById: z.string().optional(),
2007
+ createdById: z.nullable(z.string()).optional(),
2008
+ updatedById: z.nullable(z.string()).optional(),
2009
2009
  description: z.nullable(z.string()).optional(),
2010
2010
  promptConfig: z.lazy(() => ListPromptVersionsPromptConfig$outboundSchema),
2011
2011
  metadata: z.lazy(() => ListPromptVersionsMetadata$outboundSchema).optional(),
@@ -834,7 +834,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
834
834
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
835
835
  .optional(),
836
836
  updated: z.string().datetime({ offset: true }).default(
837
- "2025-02-27T17:20:05.594Z",
837
+ "2025-03-05T18:46:00.497Z",
838
838
  ).transform(v => new Date(v)),
839
839
  }).transform((v) => {
840
840
  return remap$(v, {
@@ -877,7 +877,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
877
877
  createdById: z.string().optional(),
878
878
  updatedById: z.string().optional(),
879
879
  created: z.date().transform(v => v.toISOString()).optional(),
880
- updated: z.date().default(() => new Date("2025-02-27T17:20:05.594Z"))
880
+ updated: z.date().default(() => new Date("2025-03-05T18:46:00.497Z"))
881
881
  .transform(v => v.toISOString()),
882
882
  }).transform((v) => {
883
883
  return remap$(v, {
@@ -201,7 +201,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
201
201
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
202
202
  .optional(),
203
203
  updated: z.string().datetime({ offset: true }).default(
204
- "2025-02-27T17:20:05.594Z",
204
+ "2025-03-05T18:46:00.497Z",
205
205
  ).transform(v => new Date(v)),
206
206
  }).transform((v) => {
207
207
  return remap$(v, {
@@ -241,7 +241,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
241
241
  updatedById: z.string().optional(),
242
242
  metadata: z.lazy(() => RetrieveDatasetMetadata$outboundSchema),
243
243
  created: z.date().transform(v => v.toISOString()).optional(),
244
- updated: z.date().default(() => new Date("2025-02-27T17:20:05.594Z"))
244
+ updated: z.date().default(() => new Date("2025-03-05T18:46:00.497Z"))
245
245
  .transform(v => v.toISOString()),
246
246
  }).transform((v) => {
247
247
  return remap$(v, {
@@ -1638,7 +1638,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
1638
1638
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1639
1639
  .optional(),
1640
1640
  updated: z.string().datetime({ offset: true }).default(
1641
- "2025-02-27T17:20:05.594Z",
1641
+ "2025-03-05T18:46:00.497Z",
1642
1642
  ).transform(v => new Date(v)),
1643
1643
  }).transform((v) => {
1644
1644
  return remap$(v, {
@@ -1682,7 +1682,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
1682
1682
  createdById: z.string().optional(),
1683
1683
  updatedById: z.string().optional(),
1684
1684
  created: z.date().transform(v => v.toISOString()).optional(),
1685
- updated: z.date().default(() => new Date("2025-02-27T17:20:05.594Z"))
1685
+ updated: z.date().default(() => new Date("2025-03-05T18:46:00.497Z"))
1686
1686
  .transform(v => v.toISOString()),
1687
1687
  }).transform((v) => {
1688
1688
  return remap$(v, {
@@ -283,7 +283,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
283
283
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
284
284
  .optional(),
285
285
  updated: z.string().datetime({ offset: true }).default(
286
- "2025-02-27T17:20:05.594Z",
286
+ "2025-03-05T18:46:00.497Z",
287
287
  ).transform(v => new Date(v)),
288
288
  }).transform((v) => {
289
289
  return remap$(v, {
@@ -328,7 +328,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
328
328
  parentId: z.string().optional(),
329
329
  version: z.string().optional(),
330
330
  created: z.date().transform(v => v.toISOString()).optional(),
331
- updated: z.date().default(() => new Date("2025-02-27T17:20:05.594Z"))
331
+ updated: z.date().default(() => new Date("2025-03-05T18:46:00.497Z"))
332
332
  .transform(v => v.toISOString()),
333
333
  }).transform((v) => {
334
334
  return remap$(v, {