@orq-ai/node 3.10.16 → 3.10.19

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 (146) hide show
  1. package/bin/mcp-server.js +418 -188
  2. package/bin/mcp-server.js.map +35 -35
  3. package/examples/contactsCreate.example.ts +1 -1
  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/operations/createcontact.js +2 -2
  11. package/models/operations/createdataset.js +2 -2
  12. package/models/operations/createdatasetitem.js +2 -2
  13. package/models/operations/createdatasource.js +2 -2
  14. package/models/operations/createeval.js +16 -16
  15. package/models/operations/createprompt.d.ts +118 -24
  16. package/models/operations/createprompt.d.ts.map +1 -1
  17. package/models/operations/createprompt.js +130 -30
  18. package/models/operations/createprompt.js.map +1 -1
  19. package/models/operations/deploymentgetconfig.d.ts +59 -12
  20. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  21. package/models/operations/deploymentgetconfig.js +73 -24
  22. package/models/operations/deploymentgetconfig.js.map +1 -1
  23. package/models/operations/deployments.d.ts +59 -12
  24. package/models/operations/deployments.d.ts.map +1 -1
  25. package/models/operations/deployments.js +66 -16
  26. package/models/operations/deployments.js.map +1 -1
  27. package/models/operations/fileget.js +2 -2
  28. package/models/operations/filelist.js +2 -2
  29. package/models/operations/fileupload.js +2 -2
  30. package/models/operations/getallprompts.d.ts +51 -4
  31. package/models/operations/getallprompts.d.ts.map +1 -1
  32. package/models/operations/getallprompts.js +53 -3
  33. package/models/operations/getallprompts.js.map +1 -1
  34. package/models/operations/getevals.js +28 -28
  35. package/models/operations/getoneprompt.d.ts +51 -4
  36. package/models/operations/getoneprompt.d.ts.map +1 -1
  37. package/models/operations/getoneprompt.js +53 -3
  38. package/models/operations/getoneprompt.js.map +1 -1
  39. package/models/operations/getpromptversion.d.ts +51 -4
  40. package/models/operations/getpromptversion.d.ts.map +1 -1
  41. package/models/operations/getpromptversion.js +53 -3
  42. package/models/operations/getpromptversion.js.map +1 -1
  43. package/models/operations/listcontacts.js +2 -2
  44. package/models/operations/listdatasetdatapoints.js +2 -2
  45. package/models/operations/listdatasets.js +2 -2
  46. package/models/operations/listdatasources.js +2 -2
  47. package/models/operations/listpromptversions.d.ts +51 -4
  48. package/models/operations/listpromptversions.d.ts.map +1 -1
  49. package/models/operations/listpromptversions.js +52 -3
  50. package/models/operations/listpromptversions.js.map +1 -1
  51. package/models/operations/retrievecontact.js +2 -2
  52. package/models/operations/retrievedatapoint.js +2 -2
  53. package/models/operations/retrievedataset.js +2 -2
  54. package/models/operations/retrievedatasource.js +2 -2
  55. package/models/operations/updatecontact.js +2 -2
  56. package/models/operations/updatedatapoint.js +2 -2
  57. package/models/operations/updatedataset.js +2 -2
  58. package/models/operations/updatedatasource.js +2 -2
  59. package/models/operations/updateeval.js +16 -16
  60. package/models/operations/updateprompt.d.ts +102 -8
  61. package/models/operations/updateprompt.d.ts.map +1 -1
  62. package/models/operations/updateprompt.js +105 -5
  63. package/models/operations/updateprompt.js.map +1 -1
  64. package/package.json +1 -1
  65. package/packages/orq-rc/docs/sdks/contacts/README.md +1 -1
  66. package/packages/orq-rc/docs/sdks/datasets/README.md +1 -1
  67. package/packages/orq-rc/docs/sdks/knowledge/README.md +1 -1
  68. package/packages/orq-rc/examples/contactsCreate.example.ts +1 -1
  69. package/packages/orq-rc/examples/package-lock.json +1 -1
  70. package/packages/orq-rc/jsr.json +1 -1
  71. package/packages/orq-rc/package-lock.json +2 -2
  72. package/packages/orq-rc/package.json +1 -1
  73. package/packages/orq-rc/src/funcs/contactsCreate.ts +1 -1
  74. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +5 -4
  75. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +4 -4
  76. package/packages/orq-rc/src/lib/config.ts +3 -3
  77. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  78. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  79. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +1 -1
  80. package/packages/orq-rc/src/models/operations/createchunk.ts +54 -44
  81. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +46 -63
  84. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  85. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  86. package/packages/orq-rc/src/models/operations/createprompt.ts +246 -40
  87. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +121 -20
  88. package/packages/orq-rc/src/models/operations/deployments.ts +115 -19
  89. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/getallprompts.ts +100 -2
  93. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  94. package/packages/orq-rc/src/models/operations/getoneprompt.ts +100 -2
  95. package/packages/orq-rc/src/models/operations/getpromptversion.ts +100 -2
  96. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  99. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/listpromptversions.ts +101 -2
  101. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  104. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  105. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  106. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  107. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  108. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  109. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  110. package/packages/orq-rc/src/models/operations/updateprompt.ts +210 -4
  111. package/packages/orq-rc/src/sdk/contacts.ts +1 -1
  112. package/packages/orq-rc/src/sdk/datasets.ts +1 -1
  113. package/packages/orq-rc/src/sdk/knowledge.ts +1 -1
  114. package/src/lib/config.ts +3 -3
  115. package/src/mcp-server/mcp-server.ts +1 -1
  116. package/src/mcp-server/server.ts +1 -1
  117. package/src/models/operations/createcontact.ts +2 -2
  118. package/src/models/operations/createdataset.ts +2 -2
  119. package/src/models/operations/createdatasetitem.ts +2 -2
  120. package/src/models/operations/createdatasource.ts +2 -2
  121. package/src/models/operations/createeval.ts +16 -16
  122. package/src/models/operations/createprompt.ts +246 -40
  123. package/src/models/operations/deploymentgetconfig.ts +121 -20
  124. package/src/models/operations/deployments.ts +115 -19
  125. package/src/models/operations/fileget.ts +2 -2
  126. package/src/models/operations/filelist.ts +2 -2
  127. package/src/models/operations/fileupload.ts +2 -2
  128. package/src/models/operations/getallprompts.ts +100 -2
  129. package/src/models/operations/getevals.ts +28 -28
  130. package/src/models/operations/getoneprompt.ts +100 -2
  131. package/src/models/operations/getpromptversion.ts +100 -2
  132. package/src/models/operations/listcontacts.ts +2 -2
  133. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  134. package/src/models/operations/listdatasets.ts +2 -2
  135. package/src/models/operations/listdatasources.ts +2 -2
  136. package/src/models/operations/listpromptversions.ts +101 -2
  137. package/src/models/operations/retrievecontact.ts +2 -2
  138. package/src/models/operations/retrievedatapoint.ts +2 -2
  139. package/src/models/operations/retrievedataset.ts +2 -2
  140. package/src/models/operations/retrievedatasource.ts +2 -2
  141. package/src/models/operations/updatecontact.ts +2 -2
  142. package/src/models/operations/updatedatapoint.ts +2 -2
  143. package/src/models/operations/updatedataset.ts +2 -2
  144. package/src/models/operations/updatedatasource.ts +2 -2
  145. package/src/models/operations/updateeval.ts +16 -16
  146. package/src/models/operations/updateprompt.ts +210 -4
@@ -67,6 +67,17 @@ export const GetAllPromptsFormat = {
67
67
  */
68
68
  export type GetAllPromptsFormat = ClosedEnum<typeof GetAllPromptsFormat>;
69
69
 
70
+ export const GetAllPromptsResponseFormatPromptsResponseType = {
71
+ Text: "text",
72
+ } as const;
73
+ export type GetAllPromptsResponseFormatPromptsResponseType = ClosedEnum<
74
+ typeof GetAllPromptsResponseFormatPromptsResponseType
75
+ >;
76
+
77
+ export type GetAllPromptsResponseFormat3 = {
78
+ type: GetAllPromptsResponseFormatPromptsResponseType;
79
+ };
80
+
70
81
  export const GetAllPromptsResponseFormatPromptsType = {
71
82
  JsonObject: "json_object",
72
83
  } as const;
@@ -109,7 +120,8 @@ export type GetAllPromptsResponseFormat1 = {
109
120
  */
110
121
  export type GetAllPromptsResponseFormat =
111
122
  | GetAllPromptsResponseFormat1
112
- | GetAllPromptsResponseFormat2;
123
+ | GetAllPromptsResponseFormat2
124
+ | GetAllPromptsResponseFormat3;
113
125
 
114
126
  /**
115
127
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
@@ -234,6 +246,7 @@ export type GetAllPromptsModelParameters = {
234
246
  responseFormat?:
235
247
  | GetAllPromptsResponseFormat1
236
248
  | GetAllPromptsResponseFormat2
249
+ | GetAllPromptsResponseFormat3
237
250
  | null
238
251
  | undefined;
239
252
  /**
@@ -689,6 +702,85 @@ export namespace GetAllPromptsFormat$ {
689
702
  export const outboundSchema = GetAllPromptsFormat$outboundSchema;
690
703
  }
691
704
 
705
+ /** @internal */
706
+ export const GetAllPromptsResponseFormatPromptsResponseType$inboundSchema:
707
+ z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsResponseType> = z
708
+ .nativeEnum(GetAllPromptsResponseFormatPromptsResponseType);
709
+
710
+ /** @internal */
711
+ export const GetAllPromptsResponseFormatPromptsResponseType$outboundSchema:
712
+ z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsResponseType> =
713
+ GetAllPromptsResponseFormatPromptsResponseType$inboundSchema;
714
+
715
+ /**
716
+ * @internal
717
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
718
+ */
719
+ export namespace GetAllPromptsResponseFormatPromptsResponseType$ {
720
+ /** @deprecated use `GetAllPromptsResponseFormatPromptsResponseType$inboundSchema` instead. */
721
+ export const inboundSchema =
722
+ GetAllPromptsResponseFormatPromptsResponseType$inboundSchema;
723
+ /** @deprecated use `GetAllPromptsResponseFormatPromptsResponseType$outboundSchema` instead. */
724
+ export const outboundSchema =
725
+ GetAllPromptsResponseFormatPromptsResponseType$outboundSchema;
726
+ }
727
+
728
+ /** @internal */
729
+ export const GetAllPromptsResponseFormat3$inboundSchema: z.ZodType<
730
+ GetAllPromptsResponseFormat3,
731
+ z.ZodTypeDef,
732
+ unknown
733
+ > = z.object({
734
+ type: GetAllPromptsResponseFormatPromptsResponseType$inboundSchema,
735
+ });
736
+
737
+ /** @internal */
738
+ export type GetAllPromptsResponseFormat3$Outbound = {
739
+ type: string;
740
+ };
741
+
742
+ /** @internal */
743
+ export const GetAllPromptsResponseFormat3$outboundSchema: z.ZodType<
744
+ GetAllPromptsResponseFormat3$Outbound,
745
+ z.ZodTypeDef,
746
+ GetAllPromptsResponseFormat3
747
+ > = z.object({
748
+ type: GetAllPromptsResponseFormatPromptsResponseType$outboundSchema,
749
+ });
750
+
751
+ /**
752
+ * @internal
753
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
754
+ */
755
+ export namespace GetAllPromptsResponseFormat3$ {
756
+ /** @deprecated use `GetAllPromptsResponseFormat3$inboundSchema` instead. */
757
+ export const inboundSchema = GetAllPromptsResponseFormat3$inboundSchema;
758
+ /** @deprecated use `GetAllPromptsResponseFormat3$outboundSchema` instead. */
759
+ export const outboundSchema = GetAllPromptsResponseFormat3$outboundSchema;
760
+ /** @deprecated use `GetAllPromptsResponseFormat3$Outbound` instead. */
761
+ export type Outbound = GetAllPromptsResponseFormat3$Outbound;
762
+ }
763
+
764
+ export function getAllPromptsResponseFormat3ToJSON(
765
+ getAllPromptsResponseFormat3: GetAllPromptsResponseFormat3,
766
+ ): string {
767
+ return JSON.stringify(
768
+ GetAllPromptsResponseFormat3$outboundSchema.parse(
769
+ getAllPromptsResponseFormat3,
770
+ ),
771
+ );
772
+ }
773
+
774
+ export function getAllPromptsResponseFormat3FromJSON(
775
+ jsonString: string,
776
+ ): SafeParseResult<GetAllPromptsResponseFormat3, SDKValidationError> {
777
+ return safeParse(
778
+ jsonString,
779
+ (x) => GetAllPromptsResponseFormat3$inboundSchema.parse(JSON.parse(x)),
780
+ `Failed to parse 'GetAllPromptsResponseFormat3' from JSON`,
781
+ );
782
+ }
783
+
692
784
  /** @internal */
693
785
  export const GetAllPromptsResponseFormatPromptsType$inboundSchema:
694
786
  z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsType> = z.nativeEnum(
@@ -934,12 +1026,14 @@ export const GetAllPromptsResponseFormat$inboundSchema: z.ZodType<
934
1026
  > = z.union([
935
1027
  z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
936
1028
  z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
1029
+ z.lazy(() => GetAllPromptsResponseFormat3$inboundSchema),
937
1030
  ]);
938
1031
 
939
1032
  /** @internal */
940
1033
  export type GetAllPromptsResponseFormat$Outbound =
941
1034
  | GetAllPromptsResponseFormat1$Outbound
942
- | GetAllPromptsResponseFormat2$Outbound;
1035
+ | GetAllPromptsResponseFormat2$Outbound
1036
+ | GetAllPromptsResponseFormat3$Outbound;
943
1037
 
944
1038
  /** @internal */
945
1039
  export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
@@ -949,6 +1043,7 @@ export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
949
1043
  > = z.union([
950
1044
  z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
951
1045
  z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
1046
+ z.lazy(() => GetAllPromptsResponseFormat3$outboundSchema),
952
1047
  ]);
953
1048
 
954
1049
  /**
@@ -1090,6 +1185,7 @@ export const GetAllPromptsModelParameters$inboundSchema: z.ZodType<
1090
1185
  z.union([
1091
1186
  z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
1092
1187
  z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
1188
+ z.lazy(() => GetAllPromptsResponseFormat3$inboundSchema),
1093
1189
  ]),
1094
1190
  ).optional(),
1095
1191
  photoRealVersion: GetAllPromptsPhotoRealVersion$inboundSchema.optional(),
@@ -1120,6 +1216,7 @@ export type GetAllPromptsModelParameters$Outbound = {
1120
1216
  responseFormat?:
1121
1217
  | GetAllPromptsResponseFormat1$Outbound
1122
1218
  | GetAllPromptsResponseFormat2$Outbound
1219
+ | GetAllPromptsResponseFormat3$Outbound
1123
1220
  | null
1124
1221
  | undefined;
1125
1222
  photoRealVersion?: string | undefined;
@@ -1151,6 +1248,7 @@ export const GetAllPromptsModelParameters$outboundSchema: z.ZodType<
1151
1248
  z.union([
1152
1249
  z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
1153
1250
  z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
1251
+ z.lazy(() => GetAllPromptsResponseFormat3$outboundSchema),
1154
1252
  ]),
1155
1253
  ).optional(),
1156
1254
  photoRealVersion: GetAllPromptsPhotoRealVersion$outboundSchema.optional(),
@@ -1551,8 +1551,8 @@ export const Typescript$inboundSchema: z.ZodType<
1551
1551
  > = z.object({
1552
1552
  _id: z.string(),
1553
1553
  description: z.string(),
1554
- created: z.string().default("2025-08-08T08:03:34.108Z"),
1555
- updated: z.string().default("2025-08-08T08:03:34.108Z"),
1554
+ created: z.string().default("2025-08-13T09:41:45.611Z"),
1555
+ updated: z.string().default("2025-08-13T09:41:45.611Z"),
1556
1556
  guardrail_config: z.union([
1557
1557
  z.lazy(() =>
1558
1558
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
@@ -1595,8 +1595,8 @@ export const Typescript$outboundSchema: z.ZodType<
1595
1595
  > = z.object({
1596
1596
  id: z.string(),
1597
1597
  description: z.string(),
1598
- created: z.string().default("2025-08-08T08:03:34.108Z"),
1599
- updated: z.string().default("2025-08-08T08:03:34.108Z"),
1598
+ created: z.string().default("2025-08-13T09:41:45.611Z"),
1599
+ updated: z.string().default("2025-08-13T09:41:45.611Z"),
1600
1600
  guardrailConfig: z.union([
1601
1601
  z.lazy(() =>
1602
1602
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
@@ -1992,8 +1992,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
1992
1992
  .object({
1993
1993
  _id: z.string(),
1994
1994
  description: z.string(),
1995
- created: z.string().default("2025-08-08T08:03:34.108Z"),
1996
- updated: z.string().default("2025-08-08T08:03:34.108Z"),
1995
+ created: z.string().default("2025-08-13T09:41:45.611Z"),
1996
+ updated: z.string().default("2025-08-13T09:41:45.611Z"),
1997
1997
  guardrail_config: z.union([
1998
1998
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
1999
1999
  z.lazy(() =>
@@ -2036,8 +2036,8 @@ export const Ragas$outboundSchema: z.ZodType<
2036
2036
  > = z.object({
2037
2037
  id: z.string(),
2038
2038
  description: z.string(),
2039
- created: z.string().default("2025-08-08T08:03:34.108Z"),
2040
- updated: z.string().default("2025-08-08T08:03:34.108Z"),
2039
+ created: z.string().default("2025-08-13T09:41:45.611Z"),
2040
+ updated: z.string().default("2025-08-13T09:41:45.611Z"),
2041
2041
  guardrailConfig: z.union([
2042
2042
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Number$outboundSchema),
2043
2043
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$outboundSchema),
@@ -5316,8 +5316,8 @@ export const DataFunction$inboundSchema: z.ZodType<
5316
5316
  > = z.object({
5317
5317
  _id: z.string(),
5318
5318
  description: z.string(),
5319
- created: z.string().default("2025-08-08T08:03:34.108Z"),
5320
- updated: z.string().default("2025-08-08T08:03:34.108Z"),
5319
+ created: z.string().default("2025-08-13T09:41:45.611Z"),
5320
+ updated: z.string().default("2025-08-13T09:41:45.611Z"),
5321
5321
  guardrail_config: z.union([
5322
5322
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
5323
5323
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
@@ -5427,8 +5427,8 @@ export const DataFunction$outboundSchema: z.ZodType<
5427
5427
  > = z.object({
5428
5428
  id: z.string(),
5429
5429
  description: z.string(),
5430
- created: z.string().default("2025-08-08T08:03:34.108Z"),
5431
- updated: z.string().default("2025-08-08T08:03:34.108Z"),
5430
+ created: z.string().default("2025-08-13T09:41:45.611Z"),
5431
+ updated: z.string().default("2025-08-13T09:41:45.611Z"),
5432
5432
  guardrailConfig: z.union([
5433
5433
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponseNumber$outboundSchema),
5434
5434
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$outboundSchema),
@@ -5810,8 +5810,8 @@ export const DataPython$inboundSchema: z.ZodType<
5810
5810
  > = z.object({
5811
5811
  _id: z.string(),
5812
5812
  description: z.string(),
5813
- created: z.string().default("2025-08-08T08:03:34.108Z"),
5814
- updated: z.string().default("2025-08-08T08:03:34.108Z"),
5813
+ created: z.string().default("2025-08-13T09:41:45.611Z"),
5814
+ updated: z.string().default("2025-08-13T09:41:45.611Z"),
5815
5815
  guardrail_config: z.union([
5816
5816
  z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
5817
5817
  z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
@@ -5849,8 +5849,8 @@ export const DataPython$outboundSchema: z.ZodType<
5849
5849
  > = z.object({
5850
5850
  id: z.string(),
5851
5851
  description: z.string(),
5852
- created: z.string().default("2025-08-08T08:03:34.108Z"),
5853
- updated: z.string().default("2025-08-08T08:03:34.108Z"),
5852
+ created: z.string().default("2025-08-13T09:41:45.611Z"),
5853
+ updated: z.string().default("2025-08-13T09:41:45.611Z"),
5854
5854
  guardrailConfig: z.union([
5855
5855
  z.lazy(() => GetEvalsGuardrailConfigEvalsNumber$outboundSchema),
5856
5856
  z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$outboundSchema),
@@ -6196,8 +6196,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
6196
6196
  > = z.object({
6197
6197
  _id: z.string(),
6198
6198
  description: z.string(),
6199
- created: z.string().default("2025-08-08T08:03:34.108Z"),
6200
- updated: z.string().default("2025-08-08T08:03:34.108Z"),
6199
+ created: z.string().default("2025-08-13T09:41:45.611Z"),
6200
+ updated: z.string().default("2025-08-13T09:41:45.611Z"),
6201
6201
  guardrail_config: z.union([
6202
6202
  z.lazy(() => GetEvalsGuardrailConfigNumber$inboundSchema),
6203
6203
  z.lazy(() => GetEvalsGuardrailConfigBoolean$inboundSchema),
@@ -6241,8 +6241,8 @@ export const DataHTTP$outboundSchema: z.ZodType<
6241
6241
  > = z.object({
6242
6242
  id: z.string(),
6243
6243
  description: z.string(),
6244
- created: z.string().default("2025-08-08T08:03:34.108Z"),
6245
- updated: z.string().default("2025-08-08T08:03:34.108Z"),
6244
+ created: z.string().default("2025-08-13T09:41:45.611Z"),
6245
+ updated: z.string().default("2025-08-13T09:41:45.611Z"),
6246
6246
  guardrailConfig: z.union([
6247
6247
  z.lazy(() => GetEvalsGuardrailConfigNumber$outboundSchema),
6248
6248
  z.lazy(() => GetEvalsGuardrailConfigBoolean$outboundSchema),
@@ -6607,8 +6607,8 @@ export const DataJSON$inboundSchema: z.ZodType<
6607
6607
  > = z.object({
6608
6608
  _id: z.string(),
6609
6609
  description: z.string(),
6610
- created: z.string().default("2025-08-08T08:03:34.108Z"),
6611
- updated: z.string().default("2025-08-08T08:03:34.108Z"),
6610
+ created: z.string().default("2025-08-13T09:41:45.611Z"),
6611
+ updated: z.string().default("2025-08-13T09:41:45.611Z"),
6612
6612
  guardrail_config: z.union([
6613
6613
  z.lazy(() =>
6614
6614
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema
@@ -6650,8 +6650,8 @@ export const DataJSON$outboundSchema: z.ZodType<
6650
6650
  > = z.object({
6651
6651
  id: z.string(),
6652
6652
  description: z.string(),
6653
- created: z.string().default("2025-08-08T08:03:34.108Z"),
6654
- updated: z.string().default("2025-08-08T08:03:34.108Z"),
6653
+ created: z.string().default("2025-08-13T09:41:45.611Z"),
6654
+ updated: z.string().default("2025-08-13T09:41:45.611Z"),
6655
6655
  guardrailConfig: z.union([
6656
6656
  z.lazy(() =>
6657
6657
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$outboundSchema
@@ -7033,8 +7033,8 @@ export const DataLLM$inboundSchema: z.ZodType<DataLLM, z.ZodTypeDef, unknown> =
7033
7033
  z.object({
7034
7034
  _id: z.string(),
7035
7035
  description: z.string(),
7036
- created: z.string().default("2025-08-08T08:03:34.108Z"),
7037
- updated: z.string().default("2025-08-08T08:03:34.108Z"),
7036
+ created: z.string().default("2025-08-13T09:41:45.611Z"),
7037
+ updated: z.string().default("2025-08-13T09:41:45.611Z"),
7038
7038
  guardrail_config: z.union([
7039
7039
  z.lazy(() =>
7040
7040
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
@@ -7078,8 +7078,8 @@ export const DataLLM$outboundSchema: z.ZodType<
7078
7078
  > = z.object({
7079
7079
  id: z.string(),
7080
7080
  description: z.string(),
7081
- created: z.string().default("2025-08-08T08:03:34.108Z"),
7082
- updated: z.string().default("2025-08-08T08:03:34.108Z"),
7081
+ created: z.string().default("2025-08-13T09:41:45.611Z"),
7082
+ updated: z.string().default("2025-08-13T09:41:45.611Z"),
7083
7083
  guardrailConfig: z.union([
7084
7084
  z.lazy(() =>
7085
7085
  GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
@@ -54,6 +54,17 @@ export const GetOnePromptFormat = {
54
54
  */
55
55
  export type GetOnePromptFormat = ClosedEnum<typeof GetOnePromptFormat>;
56
56
 
57
+ export const GetOnePromptResponseFormatPromptsResponseType = {
58
+ Text: "text",
59
+ } as const;
60
+ export type GetOnePromptResponseFormatPromptsResponseType = ClosedEnum<
61
+ typeof GetOnePromptResponseFormatPromptsResponseType
62
+ >;
63
+
64
+ export type GetOnePromptResponseFormat3 = {
65
+ type: GetOnePromptResponseFormatPromptsResponseType;
66
+ };
67
+
57
68
  export const GetOnePromptResponseFormatPromptsType = {
58
69
  JsonObject: "json_object",
59
70
  } as const;
@@ -96,7 +107,8 @@ export type GetOnePromptResponseFormat1 = {
96
107
  */
97
108
  export type GetOnePromptResponseFormat =
98
109
  | GetOnePromptResponseFormat1
99
- | GetOnePromptResponseFormat2;
110
+ | GetOnePromptResponseFormat2
111
+ | GetOnePromptResponseFormat3;
100
112
 
101
113
  /**
102
114
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
@@ -221,6 +233,7 @@ export type GetOnePromptModelParameters = {
221
233
  responseFormat?:
222
234
  | GetOnePromptResponseFormat1
223
235
  | GetOnePromptResponseFormat2
236
+ | GetOnePromptResponseFormat3
224
237
  | null
225
238
  | undefined;
226
239
  /**
@@ -633,6 +646,85 @@ export namespace GetOnePromptFormat$ {
633
646
  export const outboundSchema = GetOnePromptFormat$outboundSchema;
634
647
  }
635
648
 
649
+ /** @internal */
650
+ export const GetOnePromptResponseFormatPromptsResponseType$inboundSchema:
651
+ z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsResponseType> = z
652
+ .nativeEnum(GetOnePromptResponseFormatPromptsResponseType);
653
+
654
+ /** @internal */
655
+ export const GetOnePromptResponseFormatPromptsResponseType$outboundSchema:
656
+ z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsResponseType> =
657
+ GetOnePromptResponseFormatPromptsResponseType$inboundSchema;
658
+
659
+ /**
660
+ * @internal
661
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
662
+ */
663
+ export namespace GetOnePromptResponseFormatPromptsResponseType$ {
664
+ /** @deprecated use `GetOnePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
665
+ export const inboundSchema =
666
+ GetOnePromptResponseFormatPromptsResponseType$inboundSchema;
667
+ /** @deprecated use `GetOnePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
668
+ export const outboundSchema =
669
+ GetOnePromptResponseFormatPromptsResponseType$outboundSchema;
670
+ }
671
+
672
+ /** @internal */
673
+ export const GetOnePromptResponseFormat3$inboundSchema: z.ZodType<
674
+ GetOnePromptResponseFormat3,
675
+ z.ZodTypeDef,
676
+ unknown
677
+ > = z.object({
678
+ type: GetOnePromptResponseFormatPromptsResponseType$inboundSchema,
679
+ });
680
+
681
+ /** @internal */
682
+ export type GetOnePromptResponseFormat3$Outbound = {
683
+ type: string;
684
+ };
685
+
686
+ /** @internal */
687
+ export const GetOnePromptResponseFormat3$outboundSchema: z.ZodType<
688
+ GetOnePromptResponseFormat3$Outbound,
689
+ z.ZodTypeDef,
690
+ GetOnePromptResponseFormat3
691
+ > = z.object({
692
+ type: GetOnePromptResponseFormatPromptsResponseType$outboundSchema,
693
+ });
694
+
695
+ /**
696
+ * @internal
697
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
698
+ */
699
+ export namespace GetOnePromptResponseFormat3$ {
700
+ /** @deprecated use `GetOnePromptResponseFormat3$inboundSchema` instead. */
701
+ export const inboundSchema = GetOnePromptResponseFormat3$inboundSchema;
702
+ /** @deprecated use `GetOnePromptResponseFormat3$outboundSchema` instead. */
703
+ export const outboundSchema = GetOnePromptResponseFormat3$outboundSchema;
704
+ /** @deprecated use `GetOnePromptResponseFormat3$Outbound` instead. */
705
+ export type Outbound = GetOnePromptResponseFormat3$Outbound;
706
+ }
707
+
708
+ export function getOnePromptResponseFormat3ToJSON(
709
+ getOnePromptResponseFormat3: GetOnePromptResponseFormat3,
710
+ ): string {
711
+ return JSON.stringify(
712
+ GetOnePromptResponseFormat3$outboundSchema.parse(
713
+ getOnePromptResponseFormat3,
714
+ ),
715
+ );
716
+ }
717
+
718
+ export function getOnePromptResponseFormat3FromJSON(
719
+ jsonString: string,
720
+ ): SafeParseResult<GetOnePromptResponseFormat3, SDKValidationError> {
721
+ return safeParse(
722
+ jsonString,
723
+ (x) => GetOnePromptResponseFormat3$inboundSchema.parse(JSON.parse(x)),
724
+ `Failed to parse 'GetOnePromptResponseFormat3' from JSON`,
725
+ );
726
+ }
727
+
636
728
  /** @internal */
637
729
  export const GetOnePromptResponseFormatPromptsType$inboundSchema:
638
730
  z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsType> = z.nativeEnum(
@@ -874,12 +966,14 @@ export const GetOnePromptResponseFormat$inboundSchema: z.ZodType<
874
966
  > = z.union([
875
967
  z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
876
968
  z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
969
+ z.lazy(() => GetOnePromptResponseFormat3$inboundSchema),
877
970
  ]);
878
971
 
879
972
  /** @internal */
880
973
  export type GetOnePromptResponseFormat$Outbound =
881
974
  | GetOnePromptResponseFormat1$Outbound
882
- | GetOnePromptResponseFormat2$Outbound;
975
+ | GetOnePromptResponseFormat2$Outbound
976
+ | GetOnePromptResponseFormat3$Outbound;
883
977
 
884
978
  /** @internal */
885
979
  export const GetOnePromptResponseFormat$outboundSchema: z.ZodType<
@@ -889,6 +983,7 @@ export const GetOnePromptResponseFormat$outboundSchema: z.ZodType<
889
983
  > = z.union([
890
984
  z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
891
985
  z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
986
+ z.lazy(() => GetOnePromptResponseFormat3$outboundSchema),
892
987
  ]);
893
988
 
894
989
  /**
@@ -1028,6 +1123,7 @@ export const GetOnePromptModelParameters$inboundSchema: z.ZodType<
1028
1123
  z.union([
1029
1124
  z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
1030
1125
  z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
1126
+ z.lazy(() => GetOnePromptResponseFormat3$inboundSchema),
1031
1127
  ]),
1032
1128
  ).optional(),
1033
1129
  photoRealVersion: GetOnePromptPhotoRealVersion$inboundSchema.optional(),
@@ -1058,6 +1154,7 @@ export type GetOnePromptModelParameters$Outbound = {
1058
1154
  responseFormat?:
1059
1155
  | GetOnePromptResponseFormat1$Outbound
1060
1156
  | GetOnePromptResponseFormat2$Outbound
1157
+ | GetOnePromptResponseFormat3$Outbound
1061
1158
  | null
1062
1159
  | undefined;
1063
1160
  photoRealVersion?: string | undefined;
@@ -1089,6 +1186,7 @@ export const GetOnePromptModelParameters$outboundSchema: z.ZodType<
1089
1186
  z.union([
1090
1187
  z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
1091
1188
  z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
1189
+ z.lazy(() => GetOnePromptResponseFormat3$outboundSchema),
1092
1190
  ]),
1093
1191
  ).optional(),
1094
1192
  photoRealVersion: GetOnePromptPhotoRealVersion$outboundSchema.optional(),
@@ -55,6 +55,17 @@ export const GetPromptVersionFormat = {
55
55
  */
56
56
  export type GetPromptVersionFormat = ClosedEnum<typeof GetPromptVersionFormat>;
57
57
 
58
+ export const GetPromptVersionResponseFormatPromptsResponseType = {
59
+ Text: "text",
60
+ } as const;
61
+ export type GetPromptVersionResponseFormatPromptsResponseType = ClosedEnum<
62
+ typeof GetPromptVersionResponseFormatPromptsResponseType
63
+ >;
64
+
65
+ export type GetPromptVersionResponseFormat3 = {
66
+ type: GetPromptVersionResponseFormatPromptsResponseType;
67
+ };
68
+
58
69
  export const GetPromptVersionResponseFormatPromptsType = {
59
70
  JsonObject: "json_object",
60
71
  } as const;
@@ -97,7 +108,8 @@ export type GetPromptVersionResponseFormat1 = {
97
108
  */
98
109
  export type GetPromptVersionResponseFormat =
99
110
  | GetPromptVersionResponseFormat1
100
- | GetPromptVersionResponseFormat2;
111
+ | GetPromptVersionResponseFormat2
112
+ | GetPromptVersionResponseFormat3;
101
113
 
102
114
  /**
103
115
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
@@ -224,6 +236,7 @@ export type GetPromptVersionModelParameters = {
224
236
  responseFormat?:
225
237
  | GetPromptVersionResponseFormat1
226
238
  | GetPromptVersionResponseFormat2
239
+ | GetPromptVersionResponseFormat3
227
240
  | null
228
241
  | undefined;
229
242
  /**
@@ -626,6 +639,85 @@ export namespace GetPromptVersionFormat$ {
626
639
  export const outboundSchema = GetPromptVersionFormat$outboundSchema;
627
640
  }
628
641
 
642
+ /** @internal */
643
+ export const GetPromptVersionResponseFormatPromptsResponseType$inboundSchema:
644
+ z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsResponseType> = z
645
+ .nativeEnum(GetPromptVersionResponseFormatPromptsResponseType);
646
+
647
+ /** @internal */
648
+ export const GetPromptVersionResponseFormatPromptsResponseType$outboundSchema:
649
+ z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsResponseType> =
650
+ GetPromptVersionResponseFormatPromptsResponseType$inboundSchema;
651
+
652
+ /**
653
+ * @internal
654
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
655
+ */
656
+ export namespace GetPromptVersionResponseFormatPromptsResponseType$ {
657
+ /** @deprecated use `GetPromptVersionResponseFormatPromptsResponseType$inboundSchema` instead. */
658
+ export const inboundSchema =
659
+ GetPromptVersionResponseFormatPromptsResponseType$inboundSchema;
660
+ /** @deprecated use `GetPromptVersionResponseFormatPromptsResponseType$outboundSchema` instead. */
661
+ export const outboundSchema =
662
+ GetPromptVersionResponseFormatPromptsResponseType$outboundSchema;
663
+ }
664
+
665
+ /** @internal */
666
+ export const GetPromptVersionResponseFormat3$inboundSchema: z.ZodType<
667
+ GetPromptVersionResponseFormat3,
668
+ z.ZodTypeDef,
669
+ unknown
670
+ > = z.object({
671
+ type: GetPromptVersionResponseFormatPromptsResponseType$inboundSchema,
672
+ });
673
+
674
+ /** @internal */
675
+ export type GetPromptVersionResponseFormat3$Outbound = {
676
+ type: string;
677
+ };
678
+
679
+ /** @internal */
680
+ export const GetPromptVersionResponseFormat3$outboundSchema: z.ZodType<
681
+ GetPromptVersionResponseFormat3$Outbound,
682
+ z.ZodTypeDef,
683
+ GetPromptVersionResponseFormat3
684
+ > = z.object({
685
+ type: GetPromptVersionResponseFormatPromptsResponseType$outboundSchema,
686
+ });
687
+
688
+ /**
689
+ * @internal
690
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
691
+ */
692
+ export namespace GetPromptVersionResponseFormat3$ {
693
+ /** @deprecated use `GetPromptVersionResponseFormat3$inboundSchema` instead. */
694
+ export const inboundSchema = GetPromptVersionResponseFormat3$inboundSchema;
695
+ /** @deprecated use `GetPromptVersionResponseFormat3$outboundSchema` instead. */
696
+ export const outboundSchema = GetPromptVersionResponseFormat3$outboundSchema;
697
+ /** @deprecated use `GetPromptVersionResponseFormat3$Outbound` instead. */
698
+ export type Outbound = GetPromptVersionResponseFormat3$Outbound;
699
+ }
700
+
701
+ export function getPromptVersionResponseFormat3ToJSON(
702
+ getPromptVersionResponseFormat3: GetPromptVersionResponseFormat3,
703
+ ): string {
704
+ return JSON.stringify(
705
+ GetPromptVersionResponseFormat3$outboundSchema.parse(
706
+ getPromptVersionResponseFormat3,
707
+ ),
708
+ );
709
+ }
710
+
711
+ export function getPromptVersionResponseFormat3FromJSON(
712
+ jsonString: string,
713
+ ): SafeParseResult<GetPromptVersionResponseFormat3, SDKValidationError> {
714
+ return safeParse(
715
+ jsonString,
716
+ (x) => GetPromptVersionResponseFormat3$inboundSchema.parse(JSON.parse(x)),
717
+ `Failed to parse 'GetPromptVersionResponseFormat3' from JSON`,
718
+ );
719
+ }
720
+
629
721
  /** @internal */
630
722
  export const GetPromptVersionResponseFormatPromptsType$inboundSchema:
631
723
  z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsType> = z
@@ -877,12 +969,14 @@ export const GetPromptVersionResponseFormat$inboundSchema: z.ZodType<
877
969
  > = z.union([
878
970
  z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
879
971
  z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
972
+ z.lazy(() => GetPromptVersionResponseFormat3$inboundSchema),
880
973
  ]);
881
974
 
882
975
  /** @internal */
883
976
  export type GetPromptVersionResponseFormat$Outbound =
884
977
  | GetPromptVersionResponseFormat1$Outbound
885
- | GetPromptVersionResponseFormat2$Outbound;
978
+ | GetPromptVersionResponseFormat2$Outbound
979
+ | GetPromptVersionResponseFormat3$Outbound;
886
980
 
887
981
  /** @internal */
888
982
  export const GetPromptVersionResponseFormat$outboundSchema: z.ZodType<
@@ -892,6 +986,7 @@ export const GetPromptVersionResponseFormat$outboundSchema: z.ZodType<
892
986
  > = z.union([
893
987
  z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
894
988
  z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
989
+ z.lazy(() => GetPromptVersionResponseFormat3$outboundSchema),
895
990
  ]);
896
991
 
897
992
  /**
@@ -1033,6 +1128,7 @@ export const GetPromptVersionModelParameters$inboundSchema: z.ZodType<
1033
1128
  z.union([
1034
1129
  z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
1035
1130
  z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
1131
+ z.lazy(() => GetPromptVersionResponseFormat3$inboundSchema),
1036
1132
  ]),
1037
1133
  ).optional(),
1038
1134
  photoRealVersion: GetPromptVersionPhotoRealVersion$inboundSchema.optional(),
@@ -1063,6 +1159,7 @@ export type GetPromptVersionModelParameters$Outbound = {
1063
1159
  responseFormat?:
1064
1160
  | GetPromptVersionResponseFormat1$Outbound
1065
1161
  | GetPromptVersionResponseFormat2$Outbound
1162
+ | GetPromptVersionResponseFormat3$Outbound
1066
1163
  | null
1067
1164
  | undefined;
1068
1165
  photoRealVersion?: string | undefined;
@@ -1094,6 +1191,7 @@ export const GetPromptVersionModelParameters$outboundSchema: z.ZodType<
1094
1191
  z.union([
1095
1192
  z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
1096
1193
  z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
1194
+ z.lazy(() => GetPromptVersionResponseFormat3$outboundSchema),
1097
1195
  ]),
1098
1196
  ).optional(),
1099
1197
  photoRealVersion: GetPromptVersionPhotoRealVersion$outboundSchema.optional(),
@@ -345,7 +345,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
345
345
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
346
346
  .optional(),
347
347
  updated: z.string().datetime({ offset: true }).default(
348
- "2025-08-08T08:03:31.826Z",
348
+ "2025-08-13T09:41:43.187Z",
349
349
  ).transform(v => new Date(v)),
350
350
  metrics: z.lazy(() => Metrics$inboundSchema),
351
351
  }).transform((v) => {
@@ -382,7 +382,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
382
382
  tags: z.array(z.string()).optional(),
383
383
  metadata: z.record(z.any()).optional(),
384
384
  created: z.date().transform(v => v.toISOString()).optional(),
385
- updated: z.date().default(() => new Date("2025-08-08T08:03:31.826Z"))
385
+ updated: z.date().default(() => new Date("2025-08-13T09:41:43.187Z"))
386
386
  .transform(v => v.toISOString()),
387
387
  metrics: z.lazy(() => Metrics$outboundSchema),
388
388
  }).transform((v) => {