@orq-ai/node 1.31.1 → 1.31.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.
- package/README.md +17 -45
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/errors/index.d.ts +0 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -1
- package/models/errors/index.js.map +1 -1
- package/models/operations/bulkfileupload.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/deploymentgetconfig.d.ts +96 -96
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +135 -136
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +49 -46
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +63 -61
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +53 -53
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +67 -66
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/fileupload.js +2 -2
- package/models/operations/index.d.ts +0 -9
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -9
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/sdk.d.ts +0 -6
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -10
- package/sdk/sdk.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/errors/index.ts +0 -1
- package/src/models/operations/bulkfileupload.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/deploymentgetconfig.ts +188 -255
- package/src/models/operations/deploymentinvoke.ts +81 -95
- package/src/models/operations/deployments.ts +88 -101
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/index.ts +0 -9
- package/src/sdk/sdk.ts +0 -12
- package/docs/sdks/prompt/README.md +0 -6
- package/docs/sdks/prompts/README.md +0 -533
- package/docs/sdks/snippets/README.md +0 -84
- package/docs/sdks/templates/README.md +0 -80
- package/funcs/promptSnippetsFindOne.d.ts +0 -12
- package/funcs/promptSnippetsFindOne.d.ts.map +0 -1
- package/funcs/promptSnippetsFindOne.js +0 -107
- package/funcs/promptSnippetsFindOne.js.map +0 -1
- package/funcs/promptTemplatesGetAll.d.ts +0 -12
- package/funcs/promptTemplatesGetAll.d.ts.map +0 -1
- package/funcs/promptTemplatesGetAll.js +0 -107
- package/funcs/promptTemplatesGetAll.js.map +0 -1
- package/funcs/promptsCreate.d.ts +0 -12
- package/funcs/promptsCreate.d.ts.map +0 -1
- package/funcs/promptsCreate.js +0 -104
- package/funcs/promptsCreate.js.map +0 -1
- package/funcs/promptsCreateVersion.d.ts +0 -12
- package/funcs/promptsCreateVersion.d.ts.map +0 -1
- package/funcs/promptsCreateVersion.js +0 -108
- package/funcs/promptsCreateVersion.js.map +0 -1
- package/funcs/promptsDelete.d.ts +0 -12
- package/funcs/promptsDelete.d.ts.map +0 -1
- package/funcs/promptsDelete.js +0 -108
- package/funcs/promptsDelete.js.map +0 -1
- package/funcs/promptsDuplicate.d.ts +0 -12
- package/funcs/promptsDuplicate.d.ts.map +0 -1
- package/funcs/promptsDuplicate.js +0 -108
- package/funcs/promptsDuplicate.js.map +0 -1
- package/funcs/promptsGetAll.d.ts +0 -12
- package/funcs/promptsGetAll.d.ts.map +0 -1
- package/funcs/promptsGetAll.js +0 -107
- package/funcs/promptsGetAll.js.map +0 -1
- package/funcs/promptsGetOne.d.ts +0 -12
- package/funcs/promptsGetOne.d.ts.map +0 -1
- package/funcs/promptsGetOne.js +0 -108
- package/funcs/promptsGetOne.js.map +0 -1
- package/funcs/promptsUpdate.d.ts +0 -13
- package/funcs/promptsUpdate.d.ts.map +0 -1
- package/funcs/promptsUpdate.js +0 -112
- package/funcs/promptsUpdate.js.map +0 -1
- package/models/errors/updateprompt.d.ts +0 -36
- package/models/errors/updateprompt.d.ts.map +0 -1
- package/models/errors/updateprompt.js +0 -79
- package/models/errors/updateprompt.js.map +0 -1
- package/models/operations/createprompt.d.ts +0 -2035
- package/models/operations/createprompt.d.ts.map +0 -1
- package/models/operations/createprompt.js +0 -1853
- package/models/operations/createprompt.js.map +0 -1
- package/models/operations/createpromptversion.d.ts +0 -2001
- package/models/operations/createpromptversion.d.ts.map +0 -1
- package/models/operations/createpromptversion.js +0 -1848
- package/models/operations/createpromptversion.js.map +0 -1
- package/models/operations/deleteprompt.d.ts +0 -32
- package/models/operations/deleteprompt.d.ts.map +0 -1
- package/models/operations/deleteprompt.js +0 -69
- package/models/operations/deleteprompt.js.map +0 -1
- package/models/operations/duplicateprompt.d.ts +0 -32
- package/models/operations/duplicateprompt.d.ts.map +0 -1
- package/models/operations/duplicateprompt.js +0 -69
- package/models/operations/duplicateprompt.js.map +0 -1
- package/models/operations/findonepromptsnippet.d.ts +0 -6278
- package/models/operations/findonepromptsnippet.d.ts.map +0 -1
- package/models/operations/findonepromptsnippet.js +0 -5891
- package/models/operations/findonepromptsnippet.js.map +0 -1
- package/models/operations/getallprompts.d.ts +0 -6613
- package/models/operations/getallprompts.d.ts.map +0 -1
- package/models/operations/getallprompts.js +0 -6161
- package/models/operations/getallprompts.js.map +0 -1
- package/models/operations/getallprompttemplates.d.ts +0 -6607
- package/models/operations/getallprompttemplates.d.ts.map +0 -1
- package/models/operations/getallprompttemplates.js +0 -6225
- package/models/operations/getallprompttemplates.js.map +0 -1
- package/models/operations/getoneprompt.d.ts +0 -32
- package/models/operations/getoneprompt.d.ts.map +0 -1
- package/models/operations/getoneprompt.js +0 -69
- package/models/operations/getoneprompt.js.map +0 -1
- package/models/operations/updateprompt.d.ts +0 -7251
- package/models/operations/updateprompt.d.ts.map +0 -1
- package/models/operations/updateprompt.js +0 -6678
- package/models/operations/updateprompt.js.map +0 -1
- package/sdk/prompt.d.ts +0 -10
- package/sdk/prompt.d.ts.map +0 -1
- package/sdk/prompt.js +0 -21
- package/sdk/prompt.js.map +0 -1
- package/sdk/prompts.d.ts +0 -33
- package/sdk/prompts.d.ts.map +0 -1
- package/sdk/prompts.js +0 -61
- package/sdk/prompts.js.map +0 -1
- package/sdk/snippets.d.ts +0 -9
- package/sdk/snippets.d.ts.map +0 -1
- package/sdk/snippets.js +0 -19
- package/sdk/snippets.js.map +0 -1
- package/sdk/templates.d.ts +0 -9
- package/sdk/templates.d.ts.map +0 -1
- package/sdk/templates.js +0 -19
- package/sdk/templates.js.map +0 -1
- package/src/funcs/promptSnippetsFindOne.ts +0 -127
- package/src/funcs/promptTemplatesGetAll.ts +0 -129
- package/src/funcs/promptsCreate.ts +0 -123
- package/src/funcs/promptsCreateVersion.ts +0 -128
- package/src/funcs/promptsDelete.ts +0 -127
- package/src/funcs/promptsDuplicate.ts +0 -127
- package/src/funcs/promptsGetAll.ts +0 -127
- package/src/funcs/promptsGetOne.ts +0 -127
- package/src/funcs/promptsUpdate.ts +0 -135
- package/src/models/errors/updateprompt.ts +0 -71
- package/src/models/operations/createprompt.ts +0 -3455
- package/src/models/operations/createpromptversion.ts +0 -3697
- package/src/models/operations/deleteprompt.ts +0 -69
- package/src/models/operations/duplicateprompt.ts +0 -69
- package/src/models/operations/findonepromptsnippet.ts +0 -13629
- package/src/models/operations/getallprompts.ts +0 -13390
- package/src/models/operations/getallprompttemplates.ts +0 -13690
- package/src/models/operations/getoneprompt.ts +0 -69
- package/src/models/operations/updateprompt.ts +0 -14407
- package/src/sdk/prompt.ts +0 -19
- package/src/sdk/prompts.ts +0 -114
- package/src/sdk/snippets.ts +0 -24
- package/src/sdk/templates.ts +0 -24
|
@@ -89,7 +89,7 @@ export type DeploymentsTools = {
|
|
|
89
89
|
/**
|
|
90
90
|
* The type of the model
|
|
91
91
|
*/
|
|
92
|
-
export const
|
|
92
|
+
export const ModelType = {
|
|
93
93
|
Chat: "chat",
|
|
94
94
|
Completion: "completion",
|
|
95
95
|
Embedding: "embedding",
|
|
@@ -103,7 +103,7 @@ export const DeploymentsModelType = {
|
|
|
103
103
|
/**
|
|
104
104
|
* The type of the model
|
|
105
105
|
*/
|
|
106
|
-
export type
|
|
106
|
+
export type ModelType = ClosedEnum<typeof ModelType>;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* Only supported on `image` models.
|
|
@@ -149,7 +149,7 @@ export type DeploymentsResponseFormatDeploymentsType = ClosedEnum<
|
|
|
149
149
|
typeof DeploymentsResponseFormatDeploymentsType
|
|
150
150
|
>;
|
|
151
151
|
|
|
152
|
-
export type
|
|
152
|
+
export type ResponseFormatJsonSchema = {
|
|
153
153
|
name: string;
|
|
154
154
|
strict: boolean;
|
|
155
155
|
schema: { [k: string]: any };
|
|
@@ -157,7 +157,7 @@ export type DeploymentsResponseFormatJsonSchema = {
|
|
|
157
157
|
|
|
158
158
|
export type DeploymentsResponseFormat1 = {
|
|
159
159
|
type: DeploymentsResponseFormatDeploymentsType;
|
|
160
|
-
jsonSchema:
|
|
160
|
+
jsonSchema: ResponseFormatJsonSchema;
|
|
161
161
|
};
|
|
162
162
|
|
|
163
163
|
/**
|
|
@@ -206,7 +206,7 @@ export type DeploymentsEncodingFormat = ClosedEnum<
|
|
|
206
206
|
/**
|
|
207
207
|
* Model Parameters: Not all parameters apply to every model
|
|
208
208
|
*/
|
|
209
|
-
export type
|
|
209
|
+
export type ModelParameters = {
|
|
210
210
|
/**
|
|
211
211
|
* Only supported on `chat` and `completion` models.
|
|
212
212
|
*/
|
|
@@ -403,17 +403,17 @@ export type DeploymentsMessages = {
|
|
|
403
403
|
toolCalls?: Array<DeploymentsToolCalls> | undefined;
|
|
404
404
|
};
|
|
405
405
|
|
|
406
|
-
export type
|
|
406
|
+
export type PromptConfig = {
|
|
407
407
|
tools: Array<DeploymentsTools>;
|
|
408
408
|
model: string;
|
|
409
409
|
/**
|
|
410
410
|
* The type of the model
|
|
411
411
|
*/
|
|
412
|
-
modelType:
|
|
412
|
+
modelType: ModelType;
|
|
413
413
|
/**
|
|
414
414
|
* Model Parameters: Not all parameters apply to every model
|
|
415
415
|
*/
|
|
416
|
-
modelParameters:
|
|
416
|
+
modelParameters: ModelParameters;
|
|
417
417
|
provider: DeploymentsProvider;
|
|
418
418
|
messages: Array<DeploymentsMessages>;
|
|
419
419
|
};
|
|
@@ -439,7 +439,7 @@ export type Data = {
|
|
|
439
439
|
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
440
440
|
*/
|
|
441
441
|
description: string;
|
|
442
|
-
promptConfig:
|
|
442
|
+
promptConfig: PromptConfig;
|
|
443
443
|
/**
|
|
444
444
|
* THe version of the deployment
|
|
445
445
|
*/
|
|
@@ -761,24 +761,22 @@ export function deploymentsToolsFromJSON(
|
|
|
761
761
|
}
|
|
762
762
|
|
|
763
763
|
/** @internal */
|
|
764
|
-
export const
|
|
765
|
-
|
|
766
|
-
> = z.nativeEnum(DeploymentsModelType);
|
|
764
|
+
export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
|
|
765
|
+
.nativeEnum(ModelType);
|
|
767
766
|
|
|
768
767
|
/** @internal */
|
|
769
|
-
export const
|
|
770
|
-
|
|
771
|
-
> = DeploymentsModelType$inboundSchema;
|
|
768
|
+
export const ModelType$outboundSchema: z.ZodNativeEnum<typeof ModelType> =
|
|
769
|
+
ModelType$inboundSchema;
|
|
772
770
|
|
|
773
771
|
/**
|
|
774
772
|
* @internal
|
|
775
773
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
776
774
|
*/
|
|
777
|
-
export namespace
|
|
778
|
-
/** @deprecated use `
|
|
779
|
-
export const inboundSchema =
|
|
780
|
-
/** @deprecated use `
|
|
781
|
-
export const outboundSchema =
|
|
775
|
+
export namespace ModelType$ {
|
|
776
|
+
/** @deprecated use `ModelType$inboundSchema` instead. */
|
|
777
|
+
export const inboundSchema = ModelType$inboundSchema;
|
|
778
|
+
/** @deprecated use `ModelType$outboundSchema` instead. */
|
|
779
|
+
export const outboundSchema = ModelType$outboundSchema;
|
|
782
780
|
}
|
|
783
781
|
|
|
784
782
|
/** @internal */
|
|
@@ -922,8 +920,8 @@ export namespace DeploymentsResponseFormatDeploymentsType$ {
|
|
|
922
920
|
}
|
|
923
921
|
|
|
924
922
|
/** @internal */
|
|
925
|
-
export const
|
|
926
|
-
|
|
923
|
+
export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
924
|
+
ResponseFormatJsonSchema,
|
|
927
925
|
z.ZodTypeDef,
|
|
928
926
|
unknown
|
|
929
927
|
> = z.object({
|
|
@@ -933,17 +931,17 @@ export const DeploymentsResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
|
933
931
|
});
|
|
934
932
|
|
|
935
933
|
/** @internal */
|
|
936
|
-
export type
|
|
934
|
+
export type ResponseFormatJsonSchema$Outbound = {
|
|
937
935
|
name: string;
|
|
938
936
|
strict: boolean;
|
|
939
937
|
schema: { [k: string]: any };
|
|
940
938
|
};
|
|
941
939
|
|
|
942
940
|
/** @internal */
|
|
943
|
-
export const
|
|
944
|
-
|
|
941
|
+
export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
942
|
+
ResponseFormatJsonSchema$Outbound,
|
|
945
943
|
z.ZodTypeDef,
|
|
946
|
-
|
|
944
|
+
ResponseFormatJsonSchema
|
|
947
945
|
> = z.object({
|
|
948
946
|
name: z.string(),
|
|
949
947
|
strict: z.boolean(),
|
|
@@ -954,35 +952,30 @@ export const DeploymentsResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
|
954
952
|
* @internal
|
|
955
953
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
956
954
|
*/
|
|
957
|
-
export namespace
|
|
958
|
-
/** @deprecated use `
|
|
959
|
-
export const inboundSchema =
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
/** @deprecated use `DeploymentsResponseFormatJsonSchema$Outbound` instead. */
|
|
965
|
-
export type Outbound = DeploymentsResponseFormatJsonSchema$Outbound;
|
|
955
|
+
export namespace ResponseFormatJsonSchema$ {
|
|
956
|
+
/** @deprecated use `ResponseFormatJsonSchema$inboundSchema` instead. */
|
|
957
|
+
export const inboundSchema = ResponseFormatJsonSchema$inboundSchema;
|
|
958
|
+
/** @deprecated use `ResponseFormatJsonSchema$outboundSchema` instead. */
|
|
959
|
+
export const outboundSchema = ResponseFormatJsonSchema$outboundSchema;
|
|
960
|
+
/** @deprecated use `ResponseFormatJsonSchema$Outbound` instead. */
|
|
961
|
+
export type Outbound = ResponseFormatJsonSchema$Outbound;
|
|
966
962
|
}
|
|
967
963
|
|
|
968
|
-
export function
|
|
969
|
-
|
|
964
|
+
export function responseFormatJsonSchemaToJSON(
|
|
965
|
+
responseFormatJsonSchema: ResponseFormatJsonSchema,
|
|
970
966
|
): string {
|
|
971
967
|
return JSON.stringify(
|
|
972
|
-
|
|
973
|
-
deploymentsResponseFormatJsonSchema,
|
|
974
|
-
),
|
|
968
|
+
ResponseFormatJsonSchema$outboundSchema.parse(responseFormatJsonSchema),
|
|
975
969
|
);
|
|
976
970
|
}
|
|
977
971
|
|
|
978
|
-
export function
|
|
972
|
+
export function responseFormatJsonSchemaFromJSON(
|
|
979
973
|
jsonString: string,
|
|
980
|
-
): SafeParseResult<
|
|
974
|
+
): SafeParseResult<ResponseFormatJsonSchema, SDKValidationError> {
|
|
981
975
|
return safeParse(
|
|
982
976
|
jsonString,
|
|
983
|
-
(x) =>
|
|
984
|
-
|
|
985
|
-
`Failed to parse 'DeploymentsResponseFormatJsonSchema' from JSON`,
|
|
977
|
+
(x) => ResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
978
|
+
`Failed to parse 'ResponseFormatJsonSchema' from JSON`,
|
|
986
979
|
);
|
|
987
980
|
}
|
|
988
981
|
|
|
@@ -993,7 +986,7 @@ export const DeploymentsResponseFormat1$inboundSchema: z.ZodType<
|
|
|
993
986
|
unknown
|
|
994
987
|
> = z.object({
|
|
995
988
|
type: DeploymentsResponseFormatDeploymentsType$inboundSchema,
|
|
996
|
-
json_schema: z.lazy(() =>
|
|
989
|
+
json_schema: z.lazy(() => ResponseFormatJsonSchema$inboundSchema),
|
|
997
990
|
}).transform((v) => {
|
|
998
991
|
return remap$(v, {
|
|
999
992
|
"json_schema": "jsonSchema",
|
|
@@ -1003,7 +996,7 @@ export const DeploymentsResponseFormat1$inboundSchema: z.ZodType<
|
|
|
1003
996
|
/** @internal */
|
|
1004
997
|
export type DeploymentsResponseFormat1$Outbound = {
|
|
1005
998
|
type: string;
|
|
1006
|
-
json_schema:
|
|
999
|
+
json_schema: ResponseFormatJsonSchema$Outbound;
|
|
1007
1000
|
};
|
|
1008
1001
|
|
|
1009
1002
|
/** @internal */
|
|
@@ -1013,7 +1006,7 @@ export const DeploymentsResponseFormat1$outboundSchema: z.ZodType<
|
|
|
1013
1006
|
DeploymentsResponseFormat1
|
|
1014
1007
|
> = z.object({
|
|
1015
1008
|
type: DeploymentsResponseFormatDeploymentsType$outboundSchema,
|
|
1016
|
-
jsonSchema: z.lazy(() =>
|
|
1009
|
+
jsonSchema: z.lazy(() => ResponseFormatJsonSchema$outboundSchema),
|
|
1017
1010
|
}).transform((v) => {
|
|
1018
1011
|
return remap$(v, {
|
|
1019
1012
|
jsonSchema: "json_schema",
|
|
@@ -1150,8 +1143,8 @@ export namespace DeploymentsEncodingFormat$ {
|
|
|
1150
1143
|
}
|
|
1151
1144
|
|
|
1152
1145
|
/** @internal */
|
|
1153
|
-
export const
|
|
1154
|
-
|
|
1146
|
+
export const ModelParameters$inboundSchema: z.ZodType<
|
|
1147
|
+
ModelParameters,
|
|
1155
1148
|
z.ZodTypeDef,
|
|
1156
1149
|
unknown
|
|
1157
1150
|
> = z.object({
|
|
@@ -1182,7 +1175,7 @@ export const DeploymentsModelParameters$inboundSchema: z.ZodType<
|
|
|
1182
1175
|
});
|
|
1183
1176
|
|
|
1184
1177
|
/** @internal */
|
|
1185
|
-
export type
|
|
1178
|
+
export type ModelParameters$Outbound = {
|
|
1186
1179
|
temperature?: number | undefined;
|
|
1187
1180
|
maxTokens?: number | undefined;
|
|
1188
1181
|
topK?: number | undefined;
|
|
@@ -1205,10 +1198,10 @@ export type DeploymentsModelParameters$Outbound = {
|
|
|
1205
1198
|
};
|
|
1206
1199
|
|
|
1207
1200
|
/** @internal */
|
|
1208
|
-
export const
|
|
1209
|
-
|
|
1201
|
+
export const ModelParameters$outboundSchema: z.ZodType<
|
|
1202
|
+
ModelParameters$Outbound,
|
|
1210
1203
|
z.ZodTypeDef,
|
|
1211
|
-
|
|
1204
|
+
ModelParameters
|
|
1212
1205
|
> = z.object({
|
|
1213
1206
|
temperature: z.number().optional(),
|
|
1214
1207
|
maxTokens: z.number().optional(),
|
|
@@ -1240,30 +1233,28 @@ export const DeploymentsModelParameters$outboundSchema: z.ZodType<
|
|
|
1240
1233
|
* @internal
|
|
1241
1234
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1242
1235
|
*/
|
|
1243
|
-
export namespace
|
|
1244
|
-
/** @deprecated use `
|
|
1245
|
-
export const inboundSchema =
|
|
1246
|
-
/** @deprecated use `
|
|
1247
|
-
export const outboundSchema =
|
|
1248
|
-
/** @deprecated use `
|
|
1249
|
-
export type Outbound =
|
|
1236
|
+
export namespace ModelParameters$ {
|
|
1237
|
+
/** @deprecated use `ModelParameters$inboundSchema` instead. */
|
|
1238
|
+
export const inboundSchema = ModelParameters$inboundSchema;
|
|
1239
|
+
/** @deprecated use `ModelParameters$outboundSchema` instead. */
|
|
1240
|
+
export const outboundSchema = ModelParameters$outboundSchema;
|
|
1241
|
+
/** @deprecated use `ModelParameters$Outbound` instead. */
|
|
1242
|
+
export type Outbound = ModelParameters$Outbound;
|
|
1250
1243
|
}
|
|
1251
1244
|
|
|
1252
|
-
export function
|
|
1253
|
-
|
|
1245
|
+
export function modelParametersToJSON(
|
|
1246
|
+
modelParameters: ModelParameters,
|
|
1254
1247
|
): string {
|
|
1255
|
-
return JSON.stringify(
|
|
1256
|
-
DeploymentsModelParameters$outboundSchema.parse(deploymentsModelParameters),
|
|
1257
|
-
);
|
|
1248
|
+
return JSON.stringify(ModelParameters$outboundSchema.parse(modelParameters));
|
|
1258
1249
|
}
|
|
1259
1250
|
|
|
1260
|
-
export function
|
|
1251
|
+
export function modelParametersFromJSON(
|
|
1261
1252
|
jsonString: string,
|
|
1262
|
-
): SafeParseResult<
|
|
1253
|
+
): SafeParseResult<ModelParameters, SDKValidationError> {
|
|
1263
1254
|
return safeParse(
|
|
1264
1255
|
jsonString,
|
|
1265
|
-
(x) =>
|
|
1266
|
-
`Failed to parse '
|
|
1256
|
+
(x) => ModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1257
|
+
`Failed to parse 'ModelParameters' from JSON`,
|
|
1267
1258
|
);
|
|
1268
1259
|
}
|
|
1269
1260
|
|
|
@@ -1869,15 +1860,15 @@ export function deploymentsMessagesFromJSON(
|
|
|
1869
1860
|
}
|
|
1870
1861
|
|
|
1871
1862
|
/** @internal */
|
|
1872
|
-
export const
|
|
1873
|
-
|
|
1863
|
+
export const PromptConfig$inboundSchema: z.ZodType<
|
|
1864
|
+
PromptConfig,
|
|
1874
1865
|
z.ZodTypeDef,
|
|
1875
1866
|
unknown
|
|
1876
1867
|
> = z.object({
|
|
1877
1868
|
tools: z.array(z.lazy(() => DeploymentsTools$inboundSchema)),
|
|
1878
1869
|
model: z.string(),
|
|
1879
|
-
model_type:
|
|
1880
|
-
model_parameters: z.lazy(() =>
|
|
1870
|
+
model_type: ModelType$inboundSchema,
|
|
1871
|
+
model_parameters: z.lazy(() => ModelParameters$inboundSchema),
|
|
1881
1872
|
provider: DeploymentsProvider$inboundSchema,
|
|
1882
1873
|
messages: z.array(z.lazy(() => DeploymentsMessages$inboundSchema)),
|
|
1883
1874
|
}).transform((v) => {
|
|
@@ -1888,25 +1879,25 @@ export const DeploymentsPromptConfig$inboundSchema: z.ZodType<
|
|
|
1888
1879
|
});
|
|
1889
1880
|
|
|
1890
1881
|
/** @internal */
|
|
1891
|
-
export type
|
|
1882
|
+
export type PromptConfig$Outbound = {
|
|
1892
1883
|
tools: Array<DeploymentsTools$Outbound>;
|
|
1893
1884
|
model: string;
|
|
1894
1885
|
model_type: string;
|
|
1895
|
-
model_parameters:
|
|
1886
|
+
model_parameters: ModelParameters$Outbound;
|
|
1896
1887
|
provider: string;
|
|
1897
1888
|
messages: Array<DeploymentsMessages$Outbound>;
|
|
1898
1889
|
};
|
|
1899
1890
|
|
|
1900
1891
|
/** @internal */
|
|
1901
|
-
export const
|
|
1902
|
-
|
|
1892
|
+
export const PromptConfig$outboundSchema: z.ZodType<
|
|
1893
|
+
PromptConfig$Outbound,
|
|
1903
1894
|
z.ZodTypeDef,
|
|
1904
|
-
|
|
1895
|
+
PromptConfig
|
|
1905
1896
|
> = z.object({
|
|
1906
1897
|
tools: z.array(z.lazy(() => DeploymentsTools$outboundSchema)),
|
|
1907
1898
|
model: z.string(),
|
|
1908
|
-
modelType:
|
|
1909
|
-
modelParameters: z.lazy(() =>
|
|
1899
|
+
modelType: ModelType$outboundSchema,
|
|
1900
|
+
modelParameters: z.lazy(() => ModelParameters$outboundSchema),
|
|
1910
1901
|
provider: DeploymentsProvider$outboundSchema,
|
|
1911
1902
|
messages: z.array(z.lazy(() => DeploymentsMessages$outboundSchema)),
|
|
1912
1903
|
}).transform((v) => {
|
|
@@ -1920,30 +1911,26 @@ export const DeploymentsPromptConfig$outboundSchema: z.ZodType<
|
|
|
1920
1911
|
* @internal
|
|
1921
1912
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1922
1913
|
*/
|
|
1923
|
-
export namespace
|
|
1924
|
-
/** @deprecated use `
|
|
1925
|
-
export const inboundSchema =
|
|
1926
|
-
/** @deprecated use `
|
|
1927
|
-
export const outboundSchema =
|
|
1928
|
-
/** @deprecated use `
|
|
1929
|
-
export type Outbound =
|
|
1914
|
+
export namespace PromptConfig$ {
|
|
1915
|
+
/** @deprecated use `PromptConfig$inboundSchema` instead. */
|
|
1916
|
+
export const inboundSchema = PromptConfig$inboundSchema;
|
|
1917
|
+
/** @deprecated use `PromptConfig$outboundSchema` instead. */
|
|
1918
|
+
export const outboundSchema = PromptConfig$outboundSchema;
|
|
1919
|
+
/** @deprecated use `PromptConfig$Outbound` instead. */
|
|
1920
|
+
export type Outbound = PromptConfig$Outbound;
|
|
1930
1921
|
}
|
|
1931
1922
|
|
|
1932
|
-
export function
|
|
1933
|
-
|
|
1934
|
-
): string {
|
|
1935
|
-
return JSON.stringify(
|
|
1936
|
-
DeploymentsPromptConfig$outboundSchema.parse(deploymentsPromptConfig),
|
|
1937
|
-
);
|
|
1923
|
+
export function promptConfigToJSON(promptConfig: PromptConfig): string {
|
|
1924
|
+
return JSON.stringify(PromptConfig$outboundSchema.parse(promptConfig));
|
|
1938
1925
|
}
|
|
1939
1926
|
|
|
1940
|
-
export function
|
|
1927
|
+
export function promptConfigFromJSON(
|
|
1941
1928
|
jsonString: string,
|
|
1942
|
-
): SafeParseResult<
|
|
1929
|
+
): SafeParseResult<PromptConfig, SDKValidationError> {
|
|
1943
1930
|
return safeParse(
|
|
1944
1931
|
jsonString,
|
|
1945
|
-
(x) =>
|
|
1946
|
-
`Failed to parse '
|
|
1932
|
+
(x) => PromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
1933
|
+
`Failed to parse 'PromptConfig' from JSON`,
|
|
1947
1934
|
);
|
|
1948
1935
|
}
|
|
1949
1936
|
|
|
@@ -1955,7 +1942,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
1955
1942
|
updated: z.string(),
|
|
1956
1943
|
key: z.string(),
|
|
1957
1944
|
description: z.string(),
|
|
1958
|
-
prompt_config: z.lazy(() =>
|
|
1945
|
+
prompt_config: z.lazy(() => PromptConfig$inboundSchema),
|
|
1959
1946
|
version: z.string(),
|
|
1960
1947
|
}).transform((v) => {
|
|
1961
1948
|
return remap$(v, {
|
|
@@ -1970,7 +1957,7 @@ export type Data$Outbound = {
|
|
|
1970
1957
|
updated: string;
|
|
1971
1958
|
key: string;
|
|
1972
1959
|
description: string;
|
|
1973
|
-
prompt_config:
|
|
1960
|
+
prompt_config: PromptConfig$Outbound;
|
|
1974
1961
|
version: string;
|
|
1975
1962
|
};
|
|
1976
1963
|
|
|
@@ -1982,7 +1969,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
1982
1969
|
updated: z.string(),
|
|
1983
1970
|
key: z.string(),
|
|
1984
1971
|
description: z.string(),
|
|
1985
|
-
promptConfig: z.lazy(() =>
|
|
1972
|
+
promptConfig: z.lazy(() => PromptConfig$outboundSchema),
|
|
1986
1973
|
version: z.string(),
|
|
1987
1974
|
}).transform((v) => {
|
|
1988
1975
|
return remap$(v, {
|
|
@@ -238,7 +238,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
238
238
|
bytes: z.number(),
|
|
239
239
|
file_name: z.string(),
|
|
240
240
|
created: z.string().datetime({ offset: true }).default(
|
|
241
|
-
"2024-12-
|
|
241
|
+
"2024-12-16T16:28:54.131Z",
|
|
242
242
|
).transform(v => new Date(v)),
|
|
243
243
|
}).transform((v) => {
|
|
244
244
|
return remap$(v, {
|
|
@@ -269,7 +269,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
|
|
|
269
269
|
purpose: FileUploadPurpose$outboundSchema,
|
|
270
270
|
bytes: z.number(),
|
|
271
271
|
fileName: z.string(),
|
|
272
|
-
created: z.date().default(() => new Date("2024-12-
|
|
272
|
+
created: z.date().default(() => new Date("2024-12-16T16:28:54.131Z"))
|
|
273
273
|
.transform(v => v.toISOString()),
|
|
274
274
|
}).transform((v) => {
|
|
275
275
|
return remap$(v, {
|
|
@@ -5,19 +5,10 @@
|
|
|
5
5
|
export * from "./bulkfileupload.js";
|
|
6
6
|
export * from "./createcontact.js";
|
|
7
7
|
export * from "./createfeedback.js";
|
|
8
|
-
export * from "./createprompt.js";
|
|
9
|
-
export * from "./createpromptversion.js";
|
|
10
|
-
export * from "./deleteprompt.js";
|
|
11
8
|
export * from "./deploymentcreatemetric.js";
|
|
12
9
|
export * from "./deploymentgetconfig.js";
|
|
13
10
|
export * from "./deploymentinvoke.js";
|
|
14
11
|
export * from "./deployments.js";
|
|
15
|
-
export * from "./duplicateprompt.js";
|
|
16
12
|
export * from "./fileupload.js";
|
|
17
|
-
export * from "./findonepromptsnippet.js";
|
|
18
|
-
export * from "./getallprompts.js";
|
|
19
|
-
export * from "./getallprompttemplates.js";
|
|
20
|
-
export * from "./getoneprompt.js";
|
|
21
13
|
export * from "./invaliddeployment.js";
|
|
22
14
|
export * from "./remoteconfigsgetconfig.js";
|
|
23
|
-
export * from "./updateprompt.js";
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -7,8 +7,6 @@ import { Contacts } from "./contacts.js";
|
|
|
7
7
|
import { Deployments } from "./deployments.js";
|
|
8
8
|
import { Feedback } from "./feedback.js";
|
|
9
9
|
import { Files } from "./files.js";
|
|
10
|
-
import { Prompt } from "./prompt.js";
|
|
11
|
-
import { Prompts } from "./prompts.js";
|
|
12
10
|
import { Remoteconfig } from "./remoteconfig.js";
|
|
13
11
|
|
|
14
12
|
export class Orq extends ClientSDK {
|
|
@@ -32,16 +30,6 @@ export class Orq extends ClientSDK {
|
|
|
32
30
|
return (this._files ??= new Files(this._options));
|
|
33
31
|
}
|
|
34
32
|
|
|
35
|
-
private _prompt?: Prompt;
|
|
36
|
-
get prompt(): Prompt {
|
|
37
|
-
return (this._prompt ??= new Prompt(this._options));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
private _prompts?: Prompts;
|
|
41
|
-
get prompts(): Prompts {
|
|
42
|
-
return (this._prompts ??= new Prompts(this._options));
|
|
43
|
-
}
|
|
44
|
-
|
|
45
33
|
private _remoteconfig?: Remoteconfig;
|
|
46
34
|
get remoteconfig(): Remoteconfig {
|
|
47
35
|
return (this._remoteconfig ??= new Remoteconfig(this._options));
|