@orq-ai/node 3.1.5 → 3.1.7
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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/operations/createcontact.js +2 -2
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/package.json +1 -1
- package/packages/orq-rc/README.md +8 -61
- package/packages/orq-rc/docs/sdks/deployments/README.md +0 -81
- package/packages/orq-rc/docs/sdks/files/README.md +8 -8
- package/packages/orq-rc/docs/sdks/{remoteconfig → remoteconfigs}/README.md +8 -8
- package/packages/orq-rc/jsr.json +1 -2
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/contactsCreate.ts +1 -0
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +1 -0
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +1 -0
- package/packages/orq-rc/src/funcs/deploymentsList.ts +1 -0
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +1 -0
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +1 -0
- package/packages/orq-rc/src/funcs/{filesUpload.ts → filesCreate.ts} +3 -2
- package/packages/orq-rc/src/funcs/filesDelete.ts +1 -0
- package/packages/orq-rc/src/funcs/filesGet.ts +5 -1
- package/packages/orq-rc/src/funcs/filesList.ts +6 -3
- package/packages/orq-rc/src/funcs/promptsCreate.ts +1 -0
- package/packages/orq-rc/src/funcs/promptsDelete.ts +1 -0
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +1 -0
- package/packages/orq-rc/src/funcs/promptsList.ts +1 -0
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +1 -0
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +1 -0
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +1 -0
- package/packages/orq-rc/src/funcs/{remoteconfigGetConfig.ts → remoteconfigsRetrieve.ts} +3 -2
- package/packages/orq-rc/src/hooks/types.ts +1 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/matchers.ts +1 -4
- package/packages/orq-rc/src/lib/security.ts +0 -1
- package/packages/orq-rc/src/models/errors/index.ts +0 -1
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createprompt.ts +668 -770
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +31 -16
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +0 -7
- package/packages/orq-rc/src/models/operations/updateprompt.ts +64 -81
- package/packages/orq-rc/src/sdk/deployments.ts +0 -19
- package/packages/orq-rc/src/sdk/files.ts +11 -5
- package/packages/orq-rc/src/sdk/{remoteconfig.ts → remoteconfigs.ts} +5 -5
- package/packages/orq-rc/src/sdk/sdk.ts +4 -10
- package/src/lib/config.ts +3 -3
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/docs/sdks/promptsnippets/README.md +0 -534
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -150
- package/packages/orq-rc/src/funcs/promptSnippetsCreate.ts +0 -128
- package/packages/orq-rc/src/funcs/promptSnippetsDelete.ts +0 -131
- package/packages/orq-rc/src/funcs/promptSnippetsGet.ts +0 -130
- package/packages/orq-rc/src/funcs/promptSnippetsGetByKey.ts +0 -132
- package/packages/orq-rc/src/funcs/promptSnippetsList.ts +0 -132
- package/packages/orq-rc/src/funcs/promptSnippetsUpdate.ts +0 -139
- package/packages/orq-rc/src/lib/event-streams.ts +0 -264
- package/packages/orq-rc/src/models/errors/updatepromptsnippet.ts +0 -71
- package/packages/orq-rc/src/models/operations/createpromptsnippet.ts +0 -6239
- package/packages/orq-rc/src/models/operations/deletepromptsnippet.ts +0 -69
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -3062
- package/packages/orq-rc/src/models/operations/findonebykeypromptsnippet.ts +0 -4483
- package/packages/orq-rc/src/models/operations/findonepromptsnippet.ts +0 -4343
- package/packages/orq-rc/src/models/operations/getallpromptsnippets.ts +0 -4472
- package/packages/orq-rc/src/models/operations/updatepromptsnippet.ts +0 -6544
- package/packages/orq-rc/src/sdk/promptsnippets.ts +0 -99
|
@@ -145,7 +145,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
145
145
|
file_name: z.string(),
|
|
146
146
|
workspace_id: z.string(),
|
|
147
147
|
created: z.string().datetime({ offset: true }).default(
|
|
148
|
-
"2025-02-
|
|
148
|
+
"2025-02-14T07:58:16.360Z",
|
|
149
149
|
).transform(v => new Date(v)),
|
|
150
150
|
}).transform((v) => {
|
|
151
151
|
return remap$(v, {
|
|
@@ -179,7 +179,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
|
|
|
179
179
|
bytes: z.number(),
|
|
180
180
|
fileName: z.string(),
|
|
181
181
|
workspaceId: z.string(),
|
|
182
|
-
created: z.date().default(() => new Date("2025-02-
|
|
182
|
+
created: z.date().default(() => new Date("2025-02-14T07:58:16.360Z"))
|
|
183
183
|
.transform(v => v.toISOString()),
|
|
184
184
|
}).transform((v) => {
|
|
185
185
|
return remap$(v, {
|
|
@@ -10,10 +10,18 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type FileListRequest = {
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
15
|
+
*/
|
|
14
16
|
limit?: number | undefined;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
/**
|
|
18
|
+
* A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
|
|
19
|
+
*/
|
|
20
|
+
startingAfter?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
|
|
23
|
+
*/
|
|
24
|
+
endingBefore?: string | undefined;
|
|
17
25
|
};
|
|
18
26
|
|
|
19
27
|
export const FileListObject = {
|
|
@@ -70,18 +78,21 @@ export const FileListRequest$inboundSchema: z.ZodType<
|
|
|
70
78
|
z.ZodTypeDef,
|
|
71
79
|
unknown
|
|
72
80
|
> = z.object({
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
81
|
+
limit: z.number().default(10),
|
|
82
|
+
starting_after: z.string().optional(),
|
|
83
|
+
ending_before: z.string().optional(),
|
|
84
|
+
}).transform((v) => {
|
|
85
|
+
return remap$(v, {
|
|
86
|
+
"starting_after": "startingAfter",
|
|
87
|
+
"ending_before": "endingBefore",
|
|
88
|
+
});
|
|
77
89
|
});
|
|
78
90
|
|
|
79
91
|
/** @internal */
|
|
80
92
|
export type FileListRequest$Outbound = {
|
|
81
|
-
page?: number | undefined;
|
|
82
93
|
limit: number;
|
|
83
|
-
|
|
84
|
-
|
|
94
|
+
starting_after?: string | undefined;
|
|
95
|
+
ending_before?: string | undefined;
|
|
85
96
|
};
|
|
86
97
|
|
|
87
98
|
/** @internal */
|
|
@@ -90,10 +101,14 @@ export const FileListRequest$outboundSchema: z.ZodType<
|
|
|
90
101
|
z.ZodTypeDef,
|
|
91
102
|
FileListRequest
|
|
92
103
|
> = z.object({
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
104
|
+
limit: z.number().default(10),
|
|
105
|
+
startingAfter: z.string().optional(),
|
|
106
|
+
endingBefore: z.string().optional(),
|
|
107
|
+
}).transform((v) => {
|
|
108
|
+
return remap$(v, {
|
|
109
|
+
startingAfter: "starting_after",
|
|
110
|
+
endingBefore: "ending_before",
|
|
111
|
+
});
|
|
97
112
|
});
|
|
98
113
|
|
|
99
114
|
/**
|
|
@@ -180,7 +195,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
180
195
|
file_name: z.string(),
|
|
181
196
|
workspace_id: z.string(),
|
|
182
197
|
created: z.string().datetime({ offset: true }).default(
|
|
183
|
-
"2025-02-
|
|
198
|
+
"2025-02-14T07:58:16.360Z",
|
|
184
199
|
).transform(v => new Date(v)),
|
|
185
200
|
}).transform((v) => {
|
|
186
201
|
return remap$(v, {
|
|
@@ -214,7 +229,7 @@ export const FileListData$outboundSchema: z.ZodType<
|
|
|
214
229
|
bytes: z.number(),
|
|
215
230
|
fileName: z.string(),
|
|
216
231
|
workspaceId: z.string(),
|
|
217
|
-
created: z.date().default(() => new Date("2025-02-
|
|
232
|
+
created: z.date().default(() => new Date("2025-02-14T07:58:16.360Z"))
|
|
218
233
|
.transform(v => v.toISOString()),
|
|
219
234
|
}).transform((v) => {
|
|
220
235
|
return remap$(v, {
|
|
@@ -245,7 +245,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
245
245
|
file_name: z.string(),
|
|
246
246
|
workspace_id: z.string(),
|
|
247
247
|
created: z.string().datetime({ offset: true }).default(
|
|
248
|
-
"2025-02-
|
|
248
|
+
"2025-02-14T07:58:16.360Z",
|
|
249
249
|
).transform(v => new Date(v)),
|
|
250
250
|
}).transform((v) => {
|
|
251
251
|
return remap$(v, {
|
|
@@ -279,7 +279,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
|
|
|
279
279
|
bytes: z.number(),
|
|
280
280
|
fileName: z.string(),
|
|
281
281
|
workspaceId: z.string(),
|
|
282
|
-
created: z.date().default(() => new Date("2025-02-
|
|
282
|
+
created: z.date().default(() => new Date("2025-02-14T07:58:16.360Z"))
|
|
283
283
|
.transform(v => v.toISOString()),
|
|
284
284
|
}).transform((v) => {
|
|
285
285
|
return remap$(v, {
|
|
@@ -5,25 +5,18 @@
|
|
|
5
5
|
export * from "./createcontact.js";
|
|
6
6
|
export * from "./createfeedback.js";
|
|
7
7
|
export * from "./createprompt.js";
|
|
8
|
-
export * from "./createpromptsnippet.js";
|
|
9
8
|
export * from "./deleteprompt.js";
|
|
10
|
-
export * from "./deletepromptsnippet.js";
|
|
11
9
|
export * from "./deploymentcreatemetric.js";
|
|
12
10
|
export * from "./deploymentgetconfig.js";
|
|
13
11
|
export * from "./deploymentinvoke.js";
|
|
14
12
|
export * from "./deployments.js";
|
|
15
|
-
export * from "./deploymentstream.js";
|
|
16
13
|
export * from "./filedelete.js";
|
|
17
14
|
export * from "./fileget.js";
|
|
18
15
|
export * from "./filelist.js";
|
|
19
16
|
export * from "./fileupload.js";
|
|
20
|
-
export * from "./findonebykeypromptsnippet.js";
|
|
21
|
-
export * from "./findonepromptsnippet.js";
|
|
22
17
|
export * from "./getallprompts.js";
|
|
23
|
-
export * from "./getallpromptsnippets.js";
|
|
24
18
|
export * from "./getoneprompt.js";
|
|
25
19
|
export * from "./getpromptversion.js";
|
|
26
20
|
export * from "./listpromptversions.js";
|
|
27
21
|
export * from "./remoteconfigsgetconfig.js";
|
|
28
22
|
export * from "./updateprompt.js";
|
|
29
|
-
export * from "./updatepromptsnippet.js";
|
|
@@ -72,7 +72,7 @@ export type UpdatePromptResponseFormatType = ClosedEnum<
|
|
|
72
72
|
typeof UpdatePromptResponseFormatType
|
|
73
73
|
>;
|
|
74
74
|
|
|
75
|
-
export type
|
|
75
|
+
export type ResponseFormatJsonSchema = {
|
|
76
76
|
name: string;
|
|
77
77
|
strict: boolean;
|
|
78
78
|
schema: { [k: string]: any };
|
|
@@ -80,7 +80,7 @@ export type UpdatePromptResponseFormatJsonSchema = {
|
|
|
80
80
|
|
|
81
81
|
export type UpdatePromptResponseFormat1 = {
|
|
82
82
|
type: UpdatePromptResponseFormatType;
|
|
83
|
-
jsonSchema:
|
|
83
|
+
jsonSchema: ResponseFormatJsonSchema;
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
/**
|
|
@@ -516,7 +516,7 @@ export type UpdatePromptResponseFormatPromptsResponseType = ClosedEnum<
|
|
|
516
516
|
typeof UpdatePromptResponseFormatPromptsResponseType
|
|
517
517
|
>;
|
|
518
518
|
|
|
519
|
-
export type
|
|
519
|
+
export type UpdatePromptResponseFormatJsonSchema = {
|
|
520
520
|
name: string;
|
|
521
521
|
strict: boolean;
|
|
522
522
|
schema: { [k: string]: any };
|
|
@@ -524,7 +524,7 @@ export type UpdatePromptResponseFormatPromptsJsonSchema = {
|
|
|
524
524
|
|
|
525
525
|
export type UpdatePromptResponseFormatPrompts1 = {
|
|
526
526
|
type: UpdatePromptResponseFormatPromptsResponseType;
|
|
527
|
-
jsonSchema:
|
|
527
|
+
jsonSchema: UpdatePromptResponseFormatJsonSchema;
|
|
528
528
|
};
|
|
529
529
|
|
|
530
530
|
/**
|
|
@@ -1072,8 +1072,8 @@ export namespace UpdatePromptResponseFormatType$ {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
|
|
1074
1074
|
/** @internal */
|
|
1075
|
-
export const
|
|
1076
|
-
|
|
1075
|
+
export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
1076
|
+
ResponseFormatJsonSchema,
|
|
1077
1077
|
z.ZodTypeDef,
|
|
1078
1078
|
unknown
|
|
1079
1079
|
> = z.object({
|
|
@@ -1083,17 +1083,17 @@ export const UpdatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
|
1083
1083
|
});
|
|
1084
1084
|
|
|
1085
1085
|
/** @internal */
|
|
1086
|
-
export type
|
|
1086
|
+
export type ResponseFormatJsonSchema$Outbound = {
|
|
1087
1087
|
name: string;
|
|
1088
1088
|
strict: boolean;
|
|
1089
1089
|
schema: { [k: string]: any };
|
|
1090
1090
|
};
|
|
1091
1091
|
|
|
1092
1092
|
/** @internal */
|
|
1093
|
-
export const
|
|
1094
|
-
|
|
1093
|
+
export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
1094
|
+
ResponseFormatJsonSchema$Outbound,
|
|
1095
1095
|
z.ZodTypeDef,
|
|
1096
|
-
|
|
1096
|
+
ResponseFormatJsonSchema
|
|
1097
1097
|
> = z.object({
|
|
1098
1098
|
name: z.string(),
|
|
1099
1099
|
strict: z.boolean(),
|
|
@@ -1104,35 +1104,30 @@ export const UpdatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
|
1104
1104
|
* @internal
|
|
1105
1105
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1106
1106
|
*/
|
|
1107
|
-
export namespace
|
|
1108
|
-
/** @deprecated use `
|
|
1109
|
-
export const inboundSchema =
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
/** @deprecated use `UpdatePromptResponseFormatJsonSchema$Outbound` instead. */
|
|
1115
|
-
export type Outbound = UpdatePromptResponseFormatJsonSchema$Outbound;
|
|
1107
|
+
export namespace ResponseFormatJsonSchema$ {
|
|
1108
|
+
/** @deprecated use `ResponseFormatJsonSchema$inboundSchema` instead. */
|
|
1109
|
+
export const inboundSchema = ResponseFormatJsonSchema$inboundSchema;
|
|
1110
|
+
/** @deprecated use `ResponseFormatJsonSchema$outboundSchema` instead. */
|
|
1111
|
+
export const outboundSchema = ResponseFormatJsonSchema$outboundSchema;
|
|
1112
|
+
/** @deprecated use `ResponseFormatJsonSchema$Outbound` instead. */
|
|
1113
|
+
export type Outbound = ResponseFormatJsonSchema$Outbound;
|
|
1116
1114
|
}
|
|
1117
1115
|
|
|
1118
|
-
export function
|
|
1119
|
-
|
|
1116
|
+
export function responseFormatJsonSchemaToJSON(
|
|
1117
|
+
responseFormatJsonSchema: ResponseFormatJsonSchema,
|
|
1120
1118
|
): string {
|
|
1121
1119
|
return JSON.stringify(
|
|
1122
|
-
|
|
1123
|
-
updatePromptResponseFormatJsonSchema,
|
|
1124
|
-
),
|
|
1120
|
+
ResponseFormatJsonSchema$outboundSchema.parse(responseFormatJsonSchema),
|
|
1125
1121
|
);
|
|
1126
1122
|
}
|
|
1127
1123
|
|
|
1128
|
-
export function
|
|
1124
|
+
export function responseFormatJsonSchemaFromJSON(
|
|
1129
1125
|
jsonString: string,
|
|
1130
|
-
): SafeParseResult<
|
|
1126
|
+
): SafeParseResult<ResponseFormatJsonSchema, SDKValidationError> {
|
|
1131
1127
|
return safeParse(
|
|
1132
1128
|
jsonString,
|
|
1133
|
-
(x) =>
|
|
1134
|
-
|
|
1135
|
-
`Failed to parse 'UpdatePromptResponseFormatJsonSchema' from JSON`,
|
|
1129
|
+
(x) => ResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1130
|
+
`Failed to parse 'ResponseFormatJsonSchema' from JSON`,
|
|
1136
1131
|
);
|
|
1137
1132
|
}
|
|
1138
1133
|
|
|
@@ -1143,7 +1138,7 @@ export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
|
1143
1138
|
unknown
|
|
1144
1139
|
> = z.object({
|
|
1145
1140
|
type: UpdatePromptResponseFormatType$inboundSchema,
|
|
1146
|
-
json_schema: z.lazy(() =>
|
|
1141
|
+
json_schema: z.lazy(() => ResponseFormatJsonSchema$inboundSchema),
|
|
1147
1142
|
}).transform((v) => {
|
|
1148
1143
|
return remap$(v, {
|
|
1149
1144
|
"json_schema": "jsonSchema",
|
|
@@ -1153,7 +1148,7 @@ export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
|
1153
1148
|
/** @internal */
|
|
1154
1149
|
export type UpdatePromptResponseFormat1$Outbound = {
|
|
1155
1150
|
type: string;
|
|
1156
|
-
json_schema:
|
|
1151
|
+
json_schema: ResponseFormatJsonSchema$Outbound;
|
|
1157
1152
|
};
|
|
1158
1153
|
|
|
1159
1154
|
/** @internal */
|
|
@@ -1163,7 +1158,7 @@ export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
|
1163
1158
|
UpdatePromptResponseFormat1
|
|
1164
1159
|
> = z.object({
|
|
1165
1160
|
type: UpdatePromptResponseFormatType$outboundSchema,
|
|
1166
|
-
jsonSchema: z.lazy(() =>
|
|
1161
|
+
jsonSchema: z.lazy(() => ResponseFormatJsonSchema$outboundSchema),
|
|
1167
1162
|
}).transform((v) => {
|
|
1168
1163
|
return remap$(v, {
|
|
1169
1164
|
jsonSchema: "json_schema",
|
|
@@ -2585,75 +2580,67 @@ export namespace UpdatePromptResponseFormatPromptsResponseType$ {
|
|
|
2585
2580
|
}
|
|
2586
2581
|
|
|
2587
2582
|
/** @internal */
|
|
2588
|
-
export const
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
});
|
|
2583
|
+
export const UpdatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
2584
|
+
UpdatePromptResponseFormatJsonSchema,
|
|
2585
|
+
z.ZodTypeDef,
|
|
2586
|
+
unknown
|
|
2587
|
+
> = z.object({
|
|
2588
|
+
name: z.string(),
|
|
2589
|
+
strict: z.boolean(),
|
|
2590
|
+
schema: z.record(z.any()),
|
|
2591
|
+
});
|
|
2598
2592
|
|
|
2599
2593
|
/** @internal */
|
|
2600
|
-
export type
|
|
2594
|
+
export type UpdatePromptResponseFormatJsonSchema$Outbound = {
|
|
2601
2595
|
name: string;
|
|
2602
2596
|
strict: boolean;
|
|
2603
2597
|
schema: { [k: string]: any };
|
|
2604
2598
|
};
|
|
2605
2599
|
|
|
2606
2600
|
/** @internal */
|
|
2607
|
-
export const
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
});
|
|
2601
|
+
export const UpdatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
2602
|
+
UpdatePromptResponseFormatJsonSchema$Outbound,
|
|
2603
|
+
z.ZodTypeDef,
|
|
2604
|
+
UpdatePromptResponseFormatJsonSchema
|
|
2605
|
+
> = z.object({
|
|
2606
|
+
name: z.string(),
|
|
2607
|
+
strict: z.boolean(),
|
|
2608
|
+
schema: z.record(z.any()),
|
|
2609
|
+
});
|
|
2617
2610
|
|
|
2618
2611
|
/**
|
|
2619
2612
|
* @internal
|
|
2620
2613
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2621
2614
|
*/
|
|
2622
|
-
export namespace
|
|
2623
|
-
/** @deprecated use `
|
|
2615
|
+
export namespace UpdatePromptResponseFormatJsonSchema$ {
|
|
2616
|
+
/** @deprecated use `UpdatePromptResponseFormatJsonSchema$inboundSchema` instead. */
|
|
2624
2617
|
export const inboundSchema =
|
|
2625
|
-
|
|
2626
|
-
/** @deprecated use `
|
|
2618
|
+
UpdatePromptResponseFormatJsonSchema$inboundSchema;
|
|
2619
|
+
/** @deprecated use `UpdatePromptResponseFormatJsonSchema$outboundSchema` instead. */
|
|
2627
2620
|
export const outboundSchema =
|
|
2628
|
-
|
|
2629
|
-
/** @deprecated use `
|
|
2630
|
-
export type Outbound =
|
|
2621
|
+
UpdatePromptResponseFormatJsonSchema$outboundSchema;
|
|
2622
|
+
/** @deprecated use `UpdatePromptResponseFormatJsonSchema$Outbound` instead. */
|
|
2623
|
+
export type Outbound = UpdatePromptResponseFormatJsonSchema$Outbound;
|
|
2631
2624
|
}
|
|
2632
2625
|
|
|
2633
|
-
export function
|
|
2634
|
-
|
|
2635
|
-
UpdatePromptResponseFormatPromptsJsonSchema,
|
|
2626
|
+
export function updatePromptResponseFormatJsonSchemaToJSON(
|
|
2627
|
+
updatePromptResponseFormatJsonSchema: UpdatePromptResponseFormatJsonSchema,
|
|
2636
2628
|
): string {
|
|
2637
2629
|
return JSON.stringify(
|
|
2638
|
-
|
|
2639
|
-
|
|
2630
|
+
UpdatePromptResponseFormatJsonSchema$outboundSchema.parse(
|
|
2631
|
+
updatePromptResponseFormatJsonSchema,
|
|
2640
2632
|
),
|
|
2641
2633
|
);
|
|
2642
2634
|
}
|
|
2643
2635
|
|
|
2644
|
-
export function
|
|
2636
|
+
export function updatePromptResponseFormatJsonSchemaFromJSON(
|
|
2645
2637
|
jsonString: string,
|
|
2646
|
-
): SafeParseResult<
|
|
2647
|
-
UpdatePromptResponseFormatPromptsJsonSchema,
|
|
2648
|
-
SDKValidationError
|
|
2649
|
-
> {
|
|
2638
|
+
): SafeParseResult<UpdatePromptResponseFormatJsonSchema, SDKValidationError> {
|
|
2650
2639
|
return safeParse(
|
|
2651
2640
|
jsonString,
|
|
2652
2641
|
(x) =>
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
),
|
|
2656
|
-
`Failed to parse 'UpdatePromptResponseFormatPromptsJsonSchema' from JSON`,
|
|
2642
|
+
UpdatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
2643
|
+
`Failed to parse 'UpdatePromptResponseFormatJsonSchema' from JSON`,
|
|
2657
2644
|
);
|
|
2658
2645
|
}
|
|
2659
2646
|
|
|
@@ -2664,9 +2651,7 @@ export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
|
|
|
2664
2651
|
unknown
|
|
2665
2652
|
> = z.object({
|
|
2666
2653
|
type: UpdatePromptResponseFormatPromptsResponseType$inboundSchema,
|
|
2667
|
-
json_schema: z.lazy(() =>
|
|
2668
|
-
UpdatePromptResponseFormatPromptsJsonSchema$inboundSchema
|
|
2669
|
-
),
|
|
2654
|
+
json_schema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$inboundSchema),
|
|
2670
2655
|
}).transform((v) => {
|
|
2671
2656
|
return remap$(v, {
|
|
2672
2657
|
"json_schema": "jsonSchema",
|
|
@@ -2676,7 +2661,7 @@ export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
|
|
|
2676
2661
|
/** @internal */
|
|
2677
2662
|
export type UpdatePromptResponseFormatPrompts1$Outbound = {
|
|
2678
2663
|
type: string;
|
|
2679
|
-
json_schema:
|
|
2664
|
+
json_schema: UpdatePromptResponseFormatJsonSchema$Outbound;
|
|
2680
2665
|
};
|
|
2681
2666
|
|
|
2682
2667
|
/** @internal */
|
|
@@ -2686,9 +2671,7 @@ export const UpdatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
|
|
|
2686
2671
|
UpdatePromptResponseFormatPrompts1
|
|
2687
2672
|
> = z.object({
|
|
2688
2673
|
type: UpdatePromptResponseFormatPromptsResponseType$outboundSchema,
|
|
2689
|
-
jsonSchema: z.lazy(() =>
|
|
2690
|
-
UpdatePromptResponseFormatPromptsJsonSchema$outboundSchema
|
|
2691
|
-
),
|
|
2674
|
+
jsonSchema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$outboundSchema),
|
|
2692
2675
|
}).transform((v) => {
|
|
2693
2676
|
return remap$(v, {
|
|
2694
2677
|
jsonSchema: "json_schema",
|
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
import { deploymentsGetConfig } from "../funcs/deploymentsGetConfig.js";
|
|
6
6
|
import { deploymentsInvoke } from "../funcs/deploymentsInvoke.js";
|
|
7
7
|
import { deploymentsList } from "../funcs/deploymentsList.js";
|
|
8
|
-
import { deploymentsStream } from "../funcs/deploymentsStream.js";
|
|
9
|
-
import { EventStream } from "../lib/event-streams.js";
|
|
10
8
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
9
|
import * as components from "../models/components/index.js";
|
|
12
10
|
import * as operations from "../models/operations/index.js";
|
|
@@ -69,21 +67,4 @@ export class Deployments extends ClientSDK {
|
|
|
69
67
|
options,
|
|
70
68
|
));
|
|
71
69
|
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Stream
|
|
75
|
-
*
|
|
76
|
-
* @remarks
|
|
77
|
-
* Stream deployment generation. Only supported for completions and chat completions.
|
|
78
|
-
*/
|
|
79
|
-
async stream(
|
|
80
|
-
request: operations.DeploymentStreamRequestBody,
|
|
81
|
-
options?: RequestOptions,
|
|
82
|
-
): Promise<EventStream<operations.DeploymentStreamResponseBody>> {
|
|
83
|
-
return unwrapAsync(deploymentsStream(
|
|
84
|
-
this,
|
|
85
|
-
request,
|
|
86
|
-
options,
|
|
87
|
-
));
|
|
88
|
-
}
|
|
89
70
|
}
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { filesCreate } from "../funcs/filesCreate.js";
|
|
5
6
|
import { filesDelete } from "../funcs/filesDelete.js";
|
|
6
7
|
import { filesGet } from "../funcs/filesGet.js";
|
|
7
8
|
import { filesList } from "../funcs/filesList.js";
|
|
8
|
-
import { filesUpload } from "../funcs/filesUpload.js";
|
|
9
9
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
10
|
import * as operations from "../models/operations/index.js";
|
|
11
11
|
import { unwrapAsync } from "../types/fp.js";
|
|
12
12
|
|
|
13
13
|
export class Files extends ClientSDK {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Create file
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
18
|
* Files are used to upload documents that can be used with features like [Deployments](https://docs.orq.ai/reference/post_v2-deployments-get-config).
|
|
19
19
|
*/
|
|
20
|
-
async
|
|
20
|
+
async create(
|
|
21
21
|
request?: operations.FileUploadRequestBody | undefined,
|
|
22
22
|
options?: RequestOptions,
|
|
23
23
|
): Promise<operations.FileUploadResponseBody> {
|
|
24
|
-
return unwrapAsync(
|
|
24
|
+
return unwrapAsync(filesCreate(
|
|
25
25
|
this,
|
|
26
26
|
request,
|
|
27
27
|
options,
|
|
@@ -30,6 +30,9 @@ export class Files extends ClientSDK {
|
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* List all files
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Returns a list of the files that your account has access to. orq.ai sorts and returns the files by their creation dates, placing the most recently created files at the top.
|
|
33
36
|
*/
|
|
34
37
|
async list(
|
|
35
38
|
request?: operations.FileListRequest | undefined,
|
|
@@ -43,7 +46,10 @@ export class Files extends ClientSDK {
|
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
/**
|
|
46
|
-
*
|
|
49
|
+
* Retrieve a file
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* Retrieves the details of an existing file object. After you supply a unique file ID, orq.ai returns the corresponding file object
|
|
47
53
|
*/
|
|
48
54
|
async get(
|
|
49
55
|
request: operations.FileGetRequest,
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { remoteconfigsRetrieve } from "../funcs/remoteconfigsRetrieve.js";
|
|
6
6
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
7
|
import * as operations from "../models/operations/index.js";
|
|
8
8
|
import { unwrapAsync } from "../types/fp.js";
|
|
9
9
|
|
|
10
|
-
export class
|
|
10
|
+
export class Remoteconfigs extends ClientSDK {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Retrieve a remote config
|
|
13
13
|
*/
|
|
14
|
-
async
|
|
14
|
+
async retrieve(
|
|
15
15
|
request?: operations.RemoteConfigsGetConfigRequestBody | undefined,
|
|
16
16
|
options?: RequestOptions,
|
|
17
17
|
): Promise<operations.RemoteConfigsGetConfigResponseBody> {
|
|
18
|
-
return unwrapAsync(
|
|
18
|
+
return unwrapAsync(remoteconfigsRetrieve(
|
|
19
19
|
this,
|
|
20
20
|
request,
|
|
21
21
|
options,
|
|
@@ -8,8 +8,7 @@ import { Deployments } from "./deployments.js";
|
|
|
8
8
|
import { Feedback } from "./feedback.js";
|
|
9
9
|
import { Files } from "./files.js";
|
|
10
10
|
import { Prompts } from "./prompts.js";
|
|
11
|
-
import {
|
|
12
|
-
import { Remoteconfig } from "./remoteconfig.js";
|
|
11
|
+
import { Remoteconfigs } from "./remoteconfigs.js";
|
|
13
12
|
|
|
14
13
|
export class Orq extends ClientSDK {
|
|
15
14
|
private _contacts?: Contacts;
|
|
@@ -32,18 +31,13 @@ export class Orq extends ClientSDK {
|
|
|
32
31
|
return (this._files ??= new Files(this._options));
|
|
33
32
|
}
|
|
34
33
|
|
|
35
|
-
private _promptSnippets?: PromptSnippets;
|
|
36
|
-
get promptSnippets(): PromptSnippets {
|
|
37
|
-
return (this._promptSnippets ??= new PromptSnippets(this._options));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
34
|
private _prompts?: Prompts;
|
|
41
35
|
get prompts(): Prompts {
|
|
42
36
|
return (this._prompts ??= new Prompts(this._options));
|
|
43
37
|
}
|
|
44
38
|
|
|
45
|
-
private
|
|
46
|
-
get
|
|
47
|
-
return (this.
|
|
39
|
+
private _remoteconfigs?: Remoteconfigs;
|
|
40
|
+
get remoteconfigs(): Remoteconfigs {
|
|
41
|
+
return (this._remoteconfigs ??= new Remoteconfigs(this._options));
|
|
48
42
|
}
|
|
49
43
|
}
|
package/src/lib/config.ts
CHANGED
|
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
64
64
|
export const SDK_METADATA = {
|
|
65
65
|
language: "typescript",
|
|
66
66
|
openapiDocVersion: "2.0",
|
|
67
|
-
sdkVersion: "3.1.
|
|
68
|
-
genVersion: "2.
|
|
69
|
-
userAgent: "speakeasy-sdk/typescript 3.1.
|
|
67
|
+
sdkVersion: "3.1.7",
|
|
68
|
+
genVersion: "2.512.4",
|
|
69
|
+
userAgent: "speakeasy-sdk/typescript 3.1.7 2.512.4 2.0 @orq-ai/node",
|
|
70
70
|
} as const;
|
|
@@ -177,7 +177,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
177
177
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
178
178
|
.optional(),
|
|
179
179
|
updated: z.string().datetime({ offset: true }).default(
|
|
180
|
-
"2025-02-
|
|
180
|
+
"2025-02-14T08:25:40.279Z",
|
|
181
181
|
).transform(v => new Date(v)),
|
|
182
182
|
}).transform((v) => {
|
|
183
183
|
return remap$(v, {
|
|
@@ -214,7 +214,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
214
214
|
tags: z.array(z.string()).optional(),
|
|
215
215
|
metadata: z.record(z.any()).optional(),
|
|
216
216
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
217
|
-
updated: z.date().default(() => new Date("2025-02-
|
|
217
|
+
updated: z.date().default(() => new Date("2025-02-14T08:25:40.279Z"))
|
|
218
218
|
.transform(v => v.toISOString()),
|
|
219
219
|
}).transform((v) => {
|
|
220
220
|
return remap$(v, {
|
|
@@ -145,7 +145,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
145
145
|
file_name: z.string(),
|
|
146
146
|
workspace_id: z.string(),
|
|
147
147
|
created: z.string().datetime({ offset: true }).default(
|
|
148
|
-
"2025-02-
|
|
148
|
+
"2025-02-14T08:25:41.326Z",
|
|
149
149
|
).transform(v => new Date(v)),
|
|
150
150
|
}).transform((v) => {
|
|
151
151
|
return remap$(v, {
|
|
@@ -179,7 +179,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
|
|
|
179
179
|
bytes: z.number(),
|
|
180
180
|
fileName: z.string(),
|
|
181
181
|
workspaceId: z.string(),
|
|
182
|
-
created: z.date().default(() => new Date("2025-02-
|
|
182
|
+
created: z.date().default(() => new Date("2025-02-14T08:25:41.326Z"))
|
|
183
183
|
.transform(v => v.toISOString()),
|
|
184
184
|
}).transform((v) => {
|
|
185
185
|
return remap$(v, {
|
|
@@ -195,7 +195,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
195
195
|
file_name: z.string(),
|
|
196
196
|
workspace_id: z.string(),
|
|
197
197
|
created: z.string().datetime({ offset: true }).default(
|
|
198
|
-
"2025-02-
|
|
198
|
+
"2025-02-14T08:25:41.326Z",
|
|
199
199
|
).transform(v => new Date(v)),
|
|
200
200
|
}).transform((v) => {
|
|
201
201
|
return remap$(v, {
|
|
@@ -229,7 +229,7 @@ export const FileListData$outboundSchema: z.ZodType<
|
|
|
229
229
|
bytes: z.number(),
|
|
230
230
|
fileName: z.string(),
|
|
231
231
|
workspaceId: z.string(),
|
|
232
|
-
created: z.date().default(() => new Date("2025-02-
|
|
232
|
+
created: z.date().default(() => new Date("2025-02-14T08:25:41.326Z"))
|
|
233
233
|
.transform(v => v.toISOString()),
|
|
234
234
|
}).transform((v) => {
|
|
235
235
|
return remap$(v, {
|