@orq-ai/node 3.10.16 → 3.10.17

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 (132) hide show
  1. package/bin/mcp-server.js +608 -378
  2. package/bin/mcp-server.js.map +35 -35
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createcontact.js +2 -2
  10. package/models/operations/createdataset.js +2 -2
  11. package/models/operations/createdatasetitem.js +2 -2
  12. package/models/operations/createdatasource.js +2 -2
  13. package/models/operations/createeval.js +16 -16
  14. package/models/operations/createprompt.d.ts +163 -69
  15. package/models/operations/createprompt.d.ts.map +1 -1
  16. package/models/operations/createprompt.js +196 -96
  17. package/models/operations/createprompt.js.map +1 -1
  18. package/models/operations/deploymentgetconfig.d.ts +82 -35
  19. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  20. package/models/operations/deploymentgetconfig.js +106 -57
  21. package/models/operations/deploymentgetconfig.js.map +1 -1
  22. package/models/operations/deployments.d.ts +82 -35
  23. package/models/operations/deployments.d.ts.map +1 -1
  24. package/models/operations/deployments.js +99 -49
  25. package/models/operations/deployments.js.map +1 -1
  26. package/models/operations/fileget.js +2 -2
  27. package/models/operations/filelist.js +2 -2
  28. package/models/operations/fileupload.js +2 -2
  29. package/models/operations/getallprompts.d.ts +81 -34
  30. package/models/operations/getallprompts.d.ts.map +1 -1
  31. package/models/operations/getallprompts.js +99 -49
  32. package/models/operations/getallprompts.js.map +1 -1
  33. package/models/operations/getevals.js +28 -28
  34. package/models/operations/getoneprompt.d.ts +81 -34
  35. package/models/operations/getoneprompt.d.ts.map +1 -1
  36. package/models/operations/getoneprompt.js +99 -49
  37. package/models/operations/getoneprompt.js.map +1 -1
  38. package/models/operations/getpromptversion.d.ts +81 -34
  39. package/models/operations/getpromptversion.d.ts.map +1 -1
  40. package/models/operations/getpromptversion.js +100 -50
  41. package/models/operations/getpromptversion.js.map +1 -1
  42. package/models/operations/listcontacts.js +2 -2
  43. package/models/operations/listdatasetdatapoints.js +2 -2
  44. package/models/operations/listdatasets.js +2 -2
  45. package/models/operations/listdatasources.js +2 -2
  46. package/models/operations/listpromptversions.d.ts +81 -34
  47. package/models/operations/listpromptversions.d.ts.map +1 -1
  48. package/models/operations/listpromptversions.js +99 -50
  49. package/models/operations/listpromptversions.js.map +1 -1
  50. package/models/operations/retrievecontact.js +2 -2
  51. package/models/operations/retrievedatapoint.js +2 -2
  52. package/models/operations/retrievedataset.js +2 -2
  53. package/models/operations/retrievedatasource.js +2 -2
  54. package/models/operations/updatecontact.js +2 -2
  55. package/models/operations/updatedatapoint.js +2 -2
  56. package/models/operations/updatedataset.js +2 -2
  57. package/models/operations/updatedatasource.js +2 -2
  58. package/models/operations/updateeval.js +16 -16
  59. package/models/operations/updateprompt.d.ts +162 -68
  60. package/models/operations/updateprompt.d.ts.map +1 -1
  61. package/models/operations/updateprompt.js +197 -97
  62. package/models/operations/updateprompt.js.map +1 -1
  63. package/package.json +1 -1
  64. package/packages/orq-rc/docs/sdks/datasets/README.md +1 -1
  65. package/packages/orq-rc/docs/sdks/knowledge/README.md +1 -1
  66. package/packages/orq-rc/examples/package-lock.json +1 -1
  67. package/packages/orq-rc/jsr.json +1 -1
  68. package/packages/orq-rc/package-lock.json +2 -2
  69. package/packages/orq-rc/package.json +1 -1
  70. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +5 -4
  71. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +4 -4
  72. package/packages/orq-rc/src/lib/config.ts +3 -3
  73. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  74. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  75. package/packages/orq-rc/src/models/operations/createchunk.ts +54 -44
  76. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +46 -63
  79. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  81. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  85. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  87. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  88. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  89. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  93. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  94. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  95. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  96. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  98. package/packages/orq-rc/src/sdk/datasets.ts +1 -1
  99. package/packages/orq-rc/src/sdk/knowledge.ts +1 -1
  100. package/src/lib/config.ts +3 -3
  101. package/src/mcp-server/mcp-server.ts +1 -1
  102. package/src/mcp-server/server.ts +1 -1
  103. package/src/models/operations/createcontact.ts +2 -2
  104. package/src/models/operations/createdataset.ts +2 -2
  105. package/src/models/operations/createdatasetitem.ts +2 -2
  106. package/src/models/operations/createdatasource.ts +2 -2
  107. package/src/models/operations/createeval.ts +16 -16
  108. package/src/models/operations/createprompt.ts +347 -141
  109. package/src/models/operations/deploymentgetconfig.ts +173 -72
  110. package/src/models/operations/deployments.ts +168 -72
  111. package/src/models/operations/fileget.ts +2 -2
  112. package/src/models/operations/filelist.ts +2 -2
  113. package/src/models/operations/fileupload.ts +2 -2
  114. package/src/models/operations/getallprompts.ts +169 -71
  115. package/src/models/operations/getevals.ts +28 -28
  116. package/src/models/operations/getoneprompt.ts +169 -71
  117. package/src/models/operations/getpromptversion.ts +168 -70
  118. package/src/models/operations/listcontacts.ts +2 -2
  119. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  120. package/src/models/operations/listdatasets.ts +2 -2
  121. package/src/models/operations/listdatasources.ts +2 -2
  122. package/src/models/operations/listpromptversions.ts +170 -71
  123. package/src/models/operations/retrievecontact.ts +2 -2
  124. package/src/models/operations/retrievedatapoint.ts +2 -2
  125. package/src/models/operations/retrievedataset.ts +2 -2
  126. package/src/models/operations/retrievedatasource.ts +2 -2
  127. package/src/models/operations/updatecontact.ts +2 -2
  128. package/src/models/operations/updatedatapoint.ts +2 -2
  129. package/src/models/operations/updatedataset.ts +2 -2
  130. package/src/models/operations/updatedatasource.ts +2 -2
  131. package/src/models/operations/updateeval.ts +16 -16
  132. package/src/models/operations/updateprompt.ts +347 -141
@@ -123,22 +123,22 @@ export const DeploymentsFormat = {
123
123
  */
124
124
  export type DeploymentsFormat = ClosedEnum<typeof DeploymentsFormat>;
125
125
 
126
- export const DeploymentsResponseFormatType = {
126
+ export const DeploymentsResponseFormatDeploymentsType = {
127
127
  JsonObject: "json_object",
128
128
  } as const;
129
- export type DeploymentsResponseFormatType = ClosedEnum<
130
- typeof DeploymentsResponseFormatType
129
+ export type DeploymentsResponseFormatDeploymentsType = ClosedEnum<
130
+ typeof DeploymentsResponseFormatDeploymentsType
131
131
  >;
132
132
 
133
- export type DeploymentsResponseFormat2 = {
134
- type: DeploymentsResponseFormatType;
133
+ export type DeploymentsResponseFormat3 = {
134
+ type: DeploymentsResponseFormatDeploymentsType;
135
135
  };
136
136
 
137
- export const DeploymentsResponseFormatDeploymentsType = {
137
+ export const DeploymentsResponseFormatType = {
138
138
  JsonSchema: "json_schema",
139
139
  } as const;
140
- export type DeploymentsResponseFormatDeploymentsType = ClosedEnum<
141
- typeof DeploymentsResponseFormatDeploymentsType
140
+ export type DeploymentsResponseFormatType = ClosedEnum<
141
+ typeof DeploymentsResponseFormatType
142
142
  >;
143
143
 
144
144
  export type DeploymentsResponseFormatJsonSchema = {
@@ -147,11 +147,22 @@ export type DeploymentsResponseFormatJsonSchema = {
147
147
  schema: { [k: string]: any };
148
148
  };
149
149
 
150
- export type DeploymentsResponseFormat1 = {
151
- type: DeploymentsResponseFormatDeploymentsType;
150
+ export type DeploymentsResponseFormat2 = {
151
+ type: DeploymentsResponseFormatType;
152
152
  jsonSchema: DeploymentsResponseFormatJsonSchema;
153
153
  };
154
154
 
155
+ export const DeploymentsResponseFormatDeploymentsResponseType = {
156
+ Text: "text",
157
+ } as const;
158
+ export type DeploymentsResponseFormatDeploymentsResponseType = ClosedEnum<
159
+ typeof DeploymentsResponseFormatDeploymentsResponseType
160
+ >;
161
+
162
+ export type DeploymentsResponseFormat1 = {
163
+ type: DeploymentsResponseFormatDeploymentsResponseType;
164
+ };
165
+
155
166
  /**
156
167
  * An object specifying the format that the model must output.
157
168
  *
@@ -164,8 +175,9 @@ export type DeploymentsResponseFormat1 = {
164
175
  * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
165
176
  */
166
177
  export type DeploymentsResponseFormat =
178
+ | DeploymentsResponseFormat2
167
179
  | DeploymentsResponseFormat1
168
- | DeploymentsResponseFormat2;
180
+ | DeploymentsResponseFormat3;
169
181
 
170
182
  /**
171
183
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
@@ -288,8 +300,9 @@ export type DeploymentsModelParameters = {
288
300
  * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
289
301
  */
290
302
  responseFormat?:
291
- | DeploymentsResponseFormat1
292
303
  | DeploymentsResponseFormat2
304
+ | DeploymentsResponseFormat1
305
+ | DeploymentsResponseFormat3
293
306
  | null
294
307
  | undefined;
295
308
  /**
@@ -891,101 +904,101 @@ export namespace DeploymentsFormat$ {
891
904
  }
892
905
 
893
906
  /** @internal */
894
- export const DeploymentsResponseFormatType$inboundSchema: z.ZodNativeEnum<
895
- typeof DeploymentsResponseFormatType
896
- > = z.nativeEnum(DeploymentsResponseFormatType);
907
+ export const DeploymentsResponseFormatDeploymentsType$inboundSchema:
908
+ z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsType> = z
909
+ .nativeEnum(DeploymentsResponseFormatDeploymentsType);
897
910
 
898
911
  /** @internal */
899
- export const DeploymentsResponseFormatType$outboundSchema: z.ZodNativeEnum<
900
- typeof DeploymentsResponseFormatType
901
- > = DeploymentsResponseFormatType$inboundSchema;
912
+ export const DeploymentsResponseFormatDeploymentsType$outboundSchema:
913
+ z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsType> =
914
+ DeploymentsResponseFormatDeploymentsType$inboundSchema;
902
915
 
903
916
  /**
904
917
  * @internal
905
918
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
906
919
  */
907
- export namespace DeploymentsResponseFormatType$ {
908
- /** @deprecated use `DeploymentsResponseFormatType$inboundSchema` instead. */
909
- export const inboundSchema = DeploymentsResponseFormatType$inboundSchema;
910
- /** @deprecated use `DeploymentsResponseFormatType$outboundSchema` instead. */
911
- export const outboundSchema = DeploymentsResponseFormatType$outboundSchema;
920
+ export namespace DeploymentsResponseFormatDeploymentsType$ {
921
+ /** @deprecated use `DeploymentsResponseFormatDeploymentsType$inboundSchema` instead. */
922
+ export const inboundSchema =
923
+ DeploymentsResponseFormatDeploymentsType$inboundSchema;
924
+ /** @deprecated use `DeploymentsResponseFormatDeploymentsType$outboundSchema` instead. */
925
+ export const outboundSchema =
926
+ DeploymentsResponseFormatDeploymentsType$outboundSchema;
912
927
  }
913
928
 
914
929
  /** @internal */
915
- export const DeploymentsResponseFormat2$inboundSchema: z.ZodType<
916
- DeploymentsResponseFormat2,
930
+ export const DeploymentsResponseFormat3$inboundSchema: z.ZodType<
931
+ DeploymentsResponseFormat3,
917
932
  z.ZodTypeDef,
918
933
  unknown
919
934
  > = z.object({
920
- type: DeploymentsResponseFormatType$inboundSchema,
935
+ type: DeploymentsResponseFormatDeploymentsType$inboundSchema,
921
936
  });
922
937
 
923
938
  /** @internal */
924
- export type DeploymentsResponseFormat2$Outbound = {
939
+ export type DeploymentsResponseFormat3$Outbound = {
925
940
  type: string;
926
941
  };
927
942
 
928
943
  /** @internal */
929
- export const DeploymentsResponseFormat2$outboundSchema: z.ZodType<
930
- DeploymentsResponseFormat2$Outbound,
944
+ export const DeploymentsResponseFormat3$outboundSchema: z.ZodType<
945
+ DeploymentsResponseFormat3$Outbound,
931
946
  z.ZodTypeDef,
932
- DeploymentsResponseFormat2
947
+ DeploymentsResponseFormat3
933
948
  > = z.object({
934
- type: DeploymentsResponseFormatType$outboundSchema,
949
+ type: DeploymentsResponseFormatDeploymentsType$outboundSchema,
935
950
  });
936
951
 
937
952
  /**
938
953
  * @internal
939
954
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
940
955
  */
941
- export namespace DeploymentsResponseFormat2$ {
942
- /** @deprecated use `DeploymentsResponseFormat2$inboundSchema` instead. */
943
- export const inboundSchema = DeploymentsResponseFormat2$inboundSchema;
944
- /** @deprecated use `DeploymentsResponseFormat2$outboundSchema` instead. */
945
- export const outboundSchema = DeploymentsResponseFormat2$outboundSchema;
946
- /** @deprecated use `DeploymentsResponseFormat2$Outbound` instead. */
947
- export type Outbound = DeploymentsResponseFormat2$Outbound;
956
+ export namespace DeploymentsResponseFormat3$ {
957
+ /** @deprecated use `DeploymentsResponseFormat3$inboundSchema` instead. */
958
+ export const inboundSchema = DeploymentsResponseFormat3$inboundSchema;
959
+ /** @deprecated use `DeploymentsResponseFormat3$outboundSchema` instead. */
960
+ export const outboundSchema = DeploymentsResponseFormat3$outboundSchema;
961
+ /** @deprecated use `DeploymentsResponseFormat3$Outbound` instead. */
962
+ export type Outbound = DeploymentsResponseFormat3$Outbound;
948
963
  }
949
964
 
950
- export function deploymentsResponseFormat2ToJSON(
951
- deploymentsResponseFormat2: DeploymentsResponseFormat2,
965
+ export function deploymentsResponseFormat3ToJSON(
966
+ deploymentsResponseFormat3: DeploymentsResponseFormat3,
952
967
  ): string {
953
968
  return JSON.stringify(
954
- DeploymentsResponseFormat2$outboundSchema.parse(deploymentsResponseFormat2),
969
+ DeploymentsResponseFormat3$outboundSchema.parse(deploymentsResponseFormat3),
955
970
  );
956
971
  }
957
972
 
958
- export function deploymentsResponseFormat2FromJSON(
973
+ export function deploymentsResponseFormat3FromJSON(
959
974
  jsonString: string,
960
- ): SafeParseResult<DeploymentsResponseFormat2, SDKValidationError> {
975
+ ): SafeParseResult<DeploymentsResponseFormat3, SDKValidationError> {
961
976
  return safeParse(
962
977
  jsonString,
963
- (x) => DeploymentsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
964
- `Failed to parse 'DeploymentsResponseFormat2' from JSON`,
978
+ (x) => DeploymentsResponseFormat3$inboundSchema.parse(JSON.parse(x)),
979
+ `Failed to parse 'DeploymentsResponseFormat3' from JSON`,
965
980
  );
966
981
  }
967
982
 
968
983
  /** @internal */
969
- export const DeploymentsResponseFormatDeploymentsType$inboundSchema:
970
- z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsType> = z
971
- .nativeEnum(DeploymentsResponseFormatDeploymentsType);
984
+ export const DeploymentsResponseFormatType$inboundSchema: z.ZodNativeEnum<
985
+ typeof DeploymentsResponseFormatType
986
+ > = z.nativeEnum(DeploymentsResponseFormatType);
972
987
 
973
988
  /** @internal */
974
- export const DeploymentsResponseFormatDeploymentsType$outboundSchema:
975
- z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsType> =
976
- DeploymentsResponseFormatDeploymentsType$inboundSchema;
989
+ export const DeploymentsResponseFormatType$outboundSchema: z.ZodNativeEnum<
990
+ typeof DeploymentsResponseFormatType
991
+ > = DeploymentsResponseFormatType$inboundSchema;
977
992
 
978
993
  /**
979
994
  * @internal
980
995
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
981
996
  */
982
- export namespace DeploymentsResponseFormatDeploymentsType$ {
983
- /** @deprecated use `DeploymentsResponseFormatDeploymentsType$inboundSchema` instead. */
984
- export const inboundSchema =
985
- DeploymentsResponseFormatDeploymentsType$inboundSchema;
986
- /** @deprecated use `DeploymentsResponseFormatDeploymentsType$outboundSchema` instead. */
987
- export const outboundSchema =
988
- DeploymentsResponseFormatDeploymentsType$outboundSchema;
997
+ export namespace DeploymentsResponseFormatType$ {
998
+ /** @deprecated use `DeploymentsResponseFormatType$inboundSchema` instead. */
999
+ export const inboundSchema = DeploymentsResponseFormatType$inboundSchema;
1000
+ /** @deprecated use `DeploymentsResponseFormatType$outboundSchema` instead. */
1001
+ export const outboundSchema = DeploymentsResponseFormatType$outboundSchema;
989
1002
  }
990
1003
 
991
1004
  /** @internal */
@@ -1054,12 +1067,12 @@ export function deploymentsResponseFormatJsonSchemaFromJSON(
1054
1067
  }
1055
1068
 
1056
1069
  /** @internal */
1057
- export const DeploymentsResponseFormat1$inboundSchema: z.ZodType<
1058
- DeploymentsResponseFormat1,
1070
+ export const DeploymentsResponseFormat2$inboundSchema: z.ZodType<
1071
+ DeploymentsResponseFormat2,
1059
1072
  z.ZodTypeDef,
1060
1073
  unknown
1061
1074
  > = z.object({
1062
- type: DeploymentsResponseFormatDeploymentsType$inboundSchema,
1075
+ type: DeploymentsResponseFormatType$inboundSchema,
1063
1076
  json_schema: z.lazy(() => DeploymentsResponseFormatJsonSchema$inboundSchema),
1064
1077
  }).transform((v) => {
1065
1078
  return remap$(v, {
@@ -1068,18 +1081,18 @@ export const DeploymentsResponseFormat1$inboundSchema: z.ZodType<
1068
1081
  });
1069
1082
 
1070
1083
  /** @internal */
1071
- export type DeploymentsResponseFormat1$Outbound = {
1084
+ export type DeploymentsResponseFormat2$Outbound = {
1072
1085
  type: string;
1073
1086
  json_schema: DeploymentsResponseFormatJsonSchema$Outbound;
1074
1087
  };
1075
1088
 
1076
1089
  /** @internal */
1077
- export const DeploymentsResponseFormat1$outboundSchema: z.ZodType<
1078
- DeploymentsResponseFormat1$Outbound,
1090
+ export const DeploymentsResponseFormat2$outboundSchema: z.ZodType<
1091
+ DeploymentsResponseFormat2$Outbound,
1079
1092
  z.ZodTypeDef,
1080
- DeploymentsResponseFormat1
1093
+ DeploymentsResponseFormat2
1081
1094
  > = z.object({
1082
- type: DeploymentsResponseFormatDeploymentsType$outboundSchema,
1095
+ type: DeploymentsResponseFormatType$outboundSchema,
1083
1096
  jsonSchema: z.lazy(() => DeploymentsResponseFormatJsonSchema$outboundSchema),
1084
1097
  }).transform((v) => {
1085
1098
  return remap$(v, {
@@ -1087,6 +1100,83 @@ export const DeploymentsResponseFormat1$outboundSchema: z.ZodType<
1087
1100
  });
1088
1101
  });
1089
1102
 
1103
+ /**
1104
+ * @internal
1105
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1106
+ */
1107
+ export namespace DeploymentsResponseFormat2$ {
1108
+ /** @deprecated use `DeploymentsResponseFormat2$inboundSchema` instead. */
1109
+ export const inboundSchema = DeploymentsResponseFormat2$inboundSchema;
1110
+ /** @deprecated use `DeploymentsResponseFormat2$outboundSchema` instead. */
1111
+ export const outboundSchema = DeploymentsResponseFormat2$outboundSchema;
1112
+ /** @deprecated use `DeploymentsResponseFormat2$Outbound` instead. */
1113
+ export type Outbound = DeploymentsResponseFormat2$Outbound;
1114
+ }
1115
+
1116
+ export function deploymentsResponseFormat2ToJSON(
1117
+ deploymentsResponseFormat2: DeploymentsResponseFormat2,
1118
+ ): string {
1119
+ return JSON.stringify(
1120
+ DeploymentsResponseFormat2$outboundSchema.parse(deploymentsResponseFormat2),
1121
+ );
1122
+ }
1123
+
1124
+ export function deploymentsResponseFormat2FromJSON(
1125
+ jsonString: string,
1126
+ ): SafeParseResult<DeploymentsResponseFormat2, SDKValidationError> {
1127
+ return safeParse(
1128
+ jsonString,
1129
+ (x) => DeploymentsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1130
+ `Failed to parse 'DeploymentsResponseFormat2' from JSON`,
1131
+ );
1132
+ }
1133
+
1134
+ /** @internal */
1135
+ export const DeploymentsResponseFormatDeploymentsResponseType$inboundSchema:
1136
+ z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsResponseType> = z
1137
+ .nativeEnum(DeploymentsResponseFormatDeploymentsResponseType);
1138
+
1139
+ /** @internal */
1140
+ export const DeploymentsResponseFormatDeploymentsResponseType$outboundSchema:
1141
+ z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsResponseType> =
1142
+ DeploymentsResponseFormatDeploymentsResponseType$inboundSchema;
1143
+
1144
+ /**
1145
+ * @internal
1146
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1147
+ */
1148
+ export namespace DeploymentsResponseFormatDeploymentsResponseType$ {
1149
+ /** @deprecated use `DeploymentsResponseFormatDeploymentsResponseType$inboundSchema` instead. */
1150
+ export const inboundSchema =
1151
+ DeploymentsResponseFormatDeploymentsResponseType$inboundSchema;
1152
+ /** @deprecated use `DeploymentsResponseFormatDeploymentsResponseType$outboundSchema` instead. */
1153
+ export const outboundSchema =
1154
+ DeploymentsResponseFormatDeploymentsResponseType$outboundSchema;
1155
+ }
1156
+
1157
+ /** @internal */
1158
+ export const DeploymentsResponseFormat1$inboundSchema: z.ZodType<
1159
+ DeploymentsResponseFormat1,
1160
+ z.ZodTypeDef,
1161
+ unknown
1162
+ > = z.object({
1163
+ type: DeploymentsResponseFormatDeploymentsResponseType$inboundSchema,
1164
+ });
1165
+
1166
+ /** @internal */
1167
+ export type DeploymentsResponseFormat1$Outbound = {
1168
+ type: string;
1169
+ };
1170
+
1171
+ /** @internal */
1172
+ export const DeploymentsResponseFormat1$outboundSchema: z.ZodType<
1173
+ DeploymentsResponseFormat1$Outbound,
1174
+ z.ZodTypeDef,
1175
+ DeploymentsResponseFormat1
1176
+ > = z.object({
1177
+ type: DeploymentsResponseFormatDeploymentsResponseType$outboundSchema,
1178
+ });
1179
+
1090
1180
  /**
1091
1181
  * @internal
1092
1182
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
@@ -1124,14 +1214,16 @@ export const DeploymentsResponseFormat$inboundSchema: z.ZodType<
1124
1214
  z.ZodTypeDef,
1125
1215
  unknown
1126
1216
  > = z.union([
1127
- z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
1128
1217
  z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
1218
+ z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
1219
+ z.lazy(() => DeploymentsResponseFormat3$inboundSchema),
1129
1220
  ]);
1130
1221
 
1131
1222
  /** @internal */
1132
1223
  export type DeploymentsResponseFormat$Outbound =
1224
+ | DeploymentsResponseFormat2$Outbound
1133
1225
  | DeploymentsResponseFormat1$Outbound
1134
- | DeploymentsResponseFormat2$Outbound;
1226
+ | DeploymentsResponseFormat3$Outbound;
1135
1227
 
1136
1228
  /** @internal */
1137
1229
  export const DeploymentsResponseFormat$outboundSchema: z.ZodType<
@@ -1139,8 +1231,9 @@ export const DeploymentsResponseFormat$outboundSchema: z.ZodType<
1139
1231
  z.ZodTypeDef,
1140
1232
  DeploymentsResponseFormat
1141
1233
  > = z.union([
1142
- z.lazy(() => DeploymentsResponseFormat1$outboundSchema),
1143
1234
  z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
1235
+ z.lazy(() => DeploymentsResponseFormat1$outboundSchema),
1236
+ z.lazy(() => DeploymentsResponseFormat3$outboundSchema),
1144
1237
  ]);
1145
1238
 
1146
1239
  /**
@@ -1278,8 +1371,9 @@ export const DeploymentsModelParameters$inboundSchema: z.ZodType<
1278
1371
  style: z.string().optional(),
1279
1372
  responseFormat: z.nullable(
1280
1373
  z.union([
1281
- z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
1282
1374
  z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
1375
+ z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
1376
+ z.lazy(() => DeploymentsResponseFormat3$inboundSchema),
1283
1377
  ]),
1284
1378
  ).optional(),
1285
1379
  photoRealVersion: DeploymentsPhotoRealVersion$inboundSchema.optional(),
@@ -1308,8 +1402,9 @@ export type DeploymentsModelParameters$Outbound = {
1308
1402
  quality?: string | undefined;
1309
1403
  style?: string | undefined;
1310
1404
  responseFormat?:
1311
- | DeploymentsResponseFormat1$Outbound
1312
1405
  | DeploymentsResponseFormat2$Outbound
1406
+ | DeploymentsResponseFormat1$Outbound
1407
+ | DeploymentsResponseFormat3$Outbound
1313
1408
  | null
1314
1409
  | undefined;
1315
1410
  photoRealVersion?: string | undefined;
@@ -1339,8 +1434,9 @@ export const DeploymentsModelParameters$outboundSchema: z.ZodType<
1339
1434
  style: z.string().optional(),
1340
1435
  responseFormat: z.nullable(
1341
1436
  z.union([
1342
- z.lazy(() => DeploymentsResponseFormat1$outboundSchema),
1343
1437
  z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
1438
+ z.lazy(() => DeploymentsResponseFormat1$outboundSchema),
1439
+ z.lazy(() => DeploymentsResponseFormat3$outboundSchema),
1344
1440
  ]),
1345
1441
  ).optional(),
1346
1442
  photoRealVersion: DeploymentsPhotoRealVersion$outboundSchema.optional(),
@@ -146,7 +146,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
146
146
  file_name: z.string(),
147
147
  workspace_id: z.string(),
148
148
  created: z.string().datetime({ offset: true }).default(
149
- "2025-08-11T09:31:21.168Z",
149
+ "2025-08-12T10:35:49.436Z",
150
150
  ).transform(v => new Date(v)),
151
151
  }).transform((v) => {
152
152
  return remap$(v, {
@@ -180,7 +180,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
180
180
  bytes: z.number(),
181
181
  fileName: z.string(),
182
182
  workspaceId: z.string(),
183
- created: z.date().default(() => new Date("2025-08-11T09:31:21.168Z"))
183
+ created: z.date().default(() => new Date("2025-08-12T10:35:49.436Z"))
184
184
  .transform(v => v.toISOString()),
185
185
  }).transform((v) => {
186
186
  return remap$(v, {
@@ -196,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
196
196
  file_name: z.string(),
197
197
  workspace_id: z.string(),
198
198
  created: z.string().datetime({ offset: true }).default(
199
- "2025-08-11T09:31:21.168Z",
199
+ "2025-08-12T10:35:49.436Z",
200
200
  ).transform(v => new Date(v)),
201
201
  }).transform((v) => {
202
202
  return remap$(v, {
@@ -230,7 +230,7 @@ export const FileListData$outboundSchema: z.ZodType<
230
230
  bytes: z.number(),
231
231
  fileName: z.string(),
232
232
  workspaceId: z.string(),
233
- created: z.date().default(() => new Date("2025-08-11T09:31:21.168Z"))
233
+ created: z.date().default(() => new Date("2025-08-12T10:35:49.436Z"))
234
234
  .transform(v => v.toISOString()),
235
235
  }).transform((v) => {
236
236
  return remap$(v, {
@@ -250,7 +250,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
250
250
  file_name: z.string(),
251
251
  workspace_id: z.string(),
252
252
  created: z.string().datetime({ offset: true }).default(
253
- "2025-08-11T09:31:21.168Z",
253
+ "2025-08-12T10:35:49.436Z",
254
254
  ).transform(v => new Date(v)),
255
255
  }).transform((v) => {
256
256
  return remap$(v, {
@@ -284,7 +284,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
284
284
  bytes: z.number(),
285
285
  fileName: z.string(),
286
286
  workspaceId: z.string(),
287
- created: z.date().default(() => new Date("2025-08-11T09:31:21.168Z"))
287
+ created: z.date().default(() => new Date("2025-08-12T10:35:49.436Z"))
288
288
  .transform(v => v.toISOString()),
289
289
  }).transform((v) => {
290
290
  return remap$(v, {