@orq-ai/node 3.6.5 → 3.6.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/FUNCTIONS.md +5 -22
- package/README.md +45 -47
- package/bin/mcp-server.js +43 -43
- package/bin/mcp-server.js.map +23 -23
- package/docs/sdks/contacts/README.md +5 -9
- package/docs/sdks/datasets/README.md +65 -111
- package/docs/sdks/deployments/README.md +34 -44
- package/docs/sdks/feedback/README.md +5 -9
- package/docs/sdks/files/README.md +20 -34
- package/docs/sdks/knowledge/README.md +80 -138
- package/docs/sdks/metrics/README.md +5 -9
- package/docs/sdks/models/README.md +5 -9
- package/docs/sdks/prompts/README.md +35 -61
- package/docs/sdks/remoteconfigs/README.md +5 -9
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/errors/apierror.d.ts +14 -2
- package/models/errors/apierror.d.ts.map +1 -1
- package/models/errors/apierror.js +1 -1
- package/models/errors/apierror.js.map +1 -1
- package/models/operations/bulkcreatedatapoints.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.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/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/package.json +1 -1
- package/packages/orq-rc/FUNCTIONS.md +5 -22
- package/packages/orq-rc/README.md +129 -47
- package/packages/orq-rc/docs/sdks/contacts/README.md +344 -11
- package/packages/orq-rc/docs/sdks/datasets/README.md +60 -102
- package/packages/orq-rc/docs/sdks/deployments/README.md +34 -44
- package/packages/orq-rc/docs/sdks/evals/README.md +175 -315
- package/packages/orq-rc/docs/sdks/feedback/README.md +5 -9
- package/packages/orq-rc/docs/sdks/files/README.md +20 -34
- package/packages/orq-rc/docs/sdks/knowledge/README.md +80 -138
- package/packages/orq-rc/docs/sdks/metrics/README.md +5 -9
- package/packages/orq-rc/docs/sdks/models/README.md +5 -9
- package/packages/orq-rc/docs/sdks/prompts/README.md +35 -61
- package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +5 -9
- package/packages/orq-rc/jsr.json +1 -1
- 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 +12 -7
- package/packages/orq-rc/src/funcs/contactsDelete.ts +172 -0
- package/packages/orq-rc/src/funcs/contactsList.ts +165 -0
- package/packages/orq-rc/src/funcs/contactsRetrieve.ts +171 -0
- package/packages/orq-rc/src/funcs/contactsUpdate.ts +172 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +9 -1
- package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +3 -3
- package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +37 -0
- package/packages/orq-rc/src/models/errors/apierror.ts +18 -3
- package/packages/orq-rc/src/models/errors/deletecontact.ts +81 -0
- package/packages/orq-rc/src/models/errors/index.ts +3 -0
- package/packages/orq-rc/src/models/errors/retrievecontact.ts +81 -0
- package/packages/orq-rc/src/models/errors/updatecontact.ts +74 -0
- package/packages/orq-rc/src/models/operations/createcontact.ts +30 -19
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/deletecontact.ts +69 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +69 -59
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +4 -0
- package/packages/orq-rc/src/models/operations/listcontacts.ts +490 -0
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +210 -0
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +325 -0
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/sdk/contacts.ts +75 -3
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/errors/apierror.ts +18 -3
- package/src/models/operations/bulkcreatedatapoints.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.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/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
|
@@ -24,10 +24,10 @@ export type DeploymentsRequest = {
|
|
|
24
24
|
endingBefore?: string | undefined;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
export const
|
|
27
|
+
export const DeploymentsObject = {
|
|
28
28
|
List: "list",
|
|
29
29
|
} as const;
|
|
30
|
-
export type
|
|
30
|
+
export type DeploymentsObject = ClosedEnum<typeof DeploymentsObject>;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* The type of the tool. Currently, only `function` is supported.
|
|
@@ -470,7 +470,7 @@ export type DeploymentsPromptConfig = {
|
|
|
470
470
|
messages: Array<DeploymentsMessages>;
|
|
471
471
|
};
|
|
472
472
|
|
|
473
|
-
export type
|
|
473
|
+
export type DeploymentsData = {
|
|
474
474
|
/**
|
|
475
475
|
* Unique identifier for the object.
|
|
476
476
|
*/
|
|
@@ -502,8 +502,8 @@ export type Data = {
|
|
|
502
502
|
* List all deployments
|
|
503
503
|
*/
|
|
504
504
|
export type DeploymentsResponseBody = {
|
|
505
|
-
object:
|
|
506
|
-
data: Array<
|
|
505
|
+
object: DeploymentsObject;
|
|
506
|
+
data: Array<DeploymentsData>;
|
|
507
507
|
hasMore: boolean;
|
|
508
508
|
};
|
|
509
509
|
|
|
@@ -578,22 +578,24 @@ export function deploymentsRequestFromJSON(
|
|
|
578
578
|
}
|
|
579
579
|
|
|
580
580
|
/** @internal */
|
|
581
|
-
export const
|
|
582
|
-
|
|
581
|
+
export const DeploymentsObject$inboundSchema: z.ZodNativeEnum<
|
|
582
|
+
typeof DeploymentsObject
|
|
583
|
+
> = z.nativeEnum(DeploymentsObject);
|
|
583
584
|
|
|
584
585
|
/** @internal */
|
|
585
|
-
export const
|
|
586
|
-
|
|
586
|
+
export const DeploymentsObject$outboundSchema: z.ZodNativeEnum<
|
|
587
|
+
typeof DeploymentsObject
|
|
588
|
+
> = DeploymentsObject$inboundSchema;
|
|
587
589
|
|
|
588
590
|
/**
|
|
589
591
|
* @internal
|
|
590
592
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
591
593
|
*/
|
|
592
|
-
export namespace
|
|
593
|
-
/** @deprecated use `
|
|
594
|
-
export const inboundSchema =
|
|
595
|
-
/** @deprecated use `
|
|
596
|
-
export const outboundSchema =
|
|
594
|
+
export namespace DeploymentsObject$ {
|
|
595
|
+
/** @deprecated use `DeploymentsObject$inboundSchema` instead. */
|
|
596
|
+
export const inboundSchema = DeploymentsObject$inboundSchema;
|
|
597
|
+
/** @deprecated use `DeploymentsObject$outboundSchema` instead. */
|
|
598
|
+
export const outboundSchema = DeploymentsObject$outboundSchema;
|
|
597
599
|
}
|
|
598
600
|
|
|
599
601
|
/** @internal */
|
|
@@ -2178,23 +2180,26 @@ export function deploymentsPromptConfigFromJSON(
|
|
|
2178
2180
|
}
|
|
2179
2181
|
|
|
2180
2182
|
/** @internal */
|
|
2181
|
-
export const
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2183
|
+
export const DeploymentsData$inboundSchema: z.ZodType<
|
|
2184
|
+
DeploymentsData,
|
|
2185
|
+
z.ZodTypeDef,
|
|
2186
|
+
unknown
|
|
2187
|
+
> = z.object({
|
|
2188
|
+
id: z.string(),
|
|
2189
|
+
created: z.string(),
|
|
2190
|
+
updated: z.string(),
|
|
2191
|
+
key: z.string(),
|
|
2192
|
+
description: z.string(),
|
|
2193
|
+
prompt_config: z.lazy(() => DeploymentsPromptConfig$inboundSchema),
|
|
2194
|
+
version: z.string(),
|
|
2195
|
+
}).transform((v) => {
|
|
2196
|
+
return remap$(v, {
|
|
2197
|
+
"prompt_config": "promptConfig",
|
|
2194
2198
|
});
|
|
2199
|
+
});
|
|
2195
2200
|
|
|
2196
2201
|
/** @internal */
|
|
2197
|
-
export type
|
|
2202
|
+
export type DeploymentsData$Outbound = {
|
|
2198
2203
|
id: string;
|
|
2199
2204
|
created: string;
|
|
2200
2205
|
updated: string;
|
|
@@ -2205,45 +2210,50 @@ export type Data$Outbound = {
|
|
|
2205
2210
|
};
|
|
2206
2211
|
|
|
2207
2212
|
/** @internal */
|
|
2208
|
-
export const
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2213
|
+
export const DeploymentsData$outboundSchema: z.ZodType<
|
|
2214
|
+
DeploymentsData$Outbound,
|
|
2215
|
+
z.ZodTypeDef,
|
|
2216
|
+
DeploymentsData
|
|
2217
|
+
> = z.object({
|
|
2218
|
+
id: z.string(),
|
|
2219
|
+
created: z.string(),
|
|
2220
|
+
updated: z.string(),
|
|
2221
|
+
key: z.string(),
|
|
2222
|
+
description: z.string(),
|
|
2223
|
+
promptConfig: z.lazy(() => DeploymentsPromptConfig$outboundSchema),
|
|
2224
|
+
version: z.string(),
|
|
2225
|
+
}).transform((v) => {
|
|
2226
|
+
return remap$(v, {
|
|
2227
|
+
promptConfig: "prompt_config",
|
|
2221
2228
|
});
|
|
2229
|
+
});
|
|
2222
2230
|
|
|
2223
2231
|
/**
|
|
2224
2232
|
* @internal
|
|
2225
2233
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2226
2234
|
*/
|
|
2227
|
-
export namespace
|
|
2228
|
-
/** @deprecated use `
|
|
2229
|
-
export const inboundSchema =
|
|
2230
|
-
/** @deprecated use `
|
|
2231
|
-
export const outboundSchema =
|
|
2232
|
-
/** @deprecated use `
|
|
2233
|
-
export type Outbound =
|
|
2235
|
+
export namespace DeploymentsData$ {
|
|
2236
|
+
/** @deprecated use `DeploymentsData$inboundSchema` instead. */
|
|
2237
|
+
export const inboundSchema = DeploymentsData$inboundSchema;
|
|
2238
|
+
/** @deprecated use `DeploymentsData$outboundSchema` instead. */
|
|
2239
|
+
export const outboundSchema = DeploymentsData$outboundSchema;
|
|
2240
|
+
/** @deprecated use `DeploymentsData$Outbound` instead. */
|
|
2241
|
+
export type Outbound = DeploymentsData$Outbound;
|
|
2234
2242
|
}
|
|
2235
2243
|
|
|
2236
|
-
export function
|
|
2237
|
-
|
|
2244
|
+
export function deploymentsDataToJSON(
|
|
2245
|
+
deploymentsData: DeploymentsData,
|
|
2246
|
+
): string {
|
|
2247
|
+
return JSON.stringify(DeploymentsData$outboundSchema.parse(deploymentsData));
|
|
2238
2248
|
}
|
|
2239
2249
|
|
|
2240
|
-
export function
|
|
2250
|
+
export function deploymentsDataFromJSON(
|
|
2241
2251
|
jsonString: string,
|
|
2242
|
-
): SafeParseResult<
|
|
2252
|
+
): SafeParseResult<DeploymentsData, SDKValidationError> {
|
|
2243
2253
|
return safeParse(
|
|
2244
2254
|
jsonString,
|
|
2245
|
-
(x) =>
|
|
2246
|
-
`Failed to parse '
|
|
2255
|
+
(x) => DeploymentsData$inboundSchema.parse(JSON.parse(x)),
|
|
2256
|
+
`Failed to parse 'DeploymentsData' from JSON`,
|
|
2247
2257
|
);
|
|
2248
2258
|
}
|
|
2249
2259
|
|
|
@@ -2253,8 +2263,8 @@ export const DeploymentsResponseBody$inboundSchema: z.ZodType<
|
|
|
2253
2263
|
z.ZodTypeDef,
|
|
2254
2264
|
unknown
|
|
2255
2265
|
> = z.object({
|
|
2256
|
-
object:
|
|
2257
|
-
data: z.array(z.lazy(() =>
|
|
2266
|
+
object: DeploymentsObject$inboundSchema,
|
|
2267
|
+
data: z.array(z.lazy(() => DeploymentsData$inboundSchema)),
|
|
2258
2268
|
has_more: z.boolean(),
|
|
2259
2269
|
}).transform((v) => {
|
|
2260
2270
|
return remap$(v, {
|
|
@@ -2265,7 +2275,7 @@ export const DeploymentsResponseBody$inboundSchema: z.ZodType<
|
|
|
2265
2275
|
/** @internal */
|
|
2266
2276
|
export type DeploymentsResponseBody$Outbound = {
|
|
2267
2277
|
object: string;
|
|
2268
|
-
data: Array<
|
|
2278
|
+
data: Array<DeploymentsData$Outbound>;
|
|
2269
2279
|
has_more: boolean;
|
|
2270
2280
|
};
|
|
2271
2281
|
|
|
@@ -2275,8 +2285,8 @@ export const DeploymentsResponseBody$outboundSchema: z.ZodType<
|
|
|
2275
2285
|
z.ZodTypeDef,
|
|
2276
2286
|
DeploymentsResponseBody
|
|
2277
2287
|
> = z.object({
|
|
2278
|
-
object:
|
|
2279
|
-
data: z.array(z.lazy(() =>
|
|
2288
|
+
object: DeploymentsObject$outboundSchema,
|
|
2289
|
+
data: z.array(z.lazy(() => DeploymentsData$outboundSchema)),
|
|
2280
2290
|
hasMore: z.boolean(),
|
|
2281
2291
|
}).transform((v) => {
|
|
2282
2292
|
return remap$(v, {
|
|
@@ -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-06-
|
|
149
|
+
"2025-06-04T07:24:13.399Z",
|
|
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-06-
|
|
183
|
+
created: z.date().default(() => new Date("2025-06-04T07:24:13.399Z"))
|
|
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-06-
|
|
199
|
+
"2025-06-04T07:24:13.399Z",
|
|
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-06-
|
|
233
|
+
created: z.date().default(() => new Date("2025-06-04T07:24:13.399Z"))
|
|
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-06-
|
|
253
|
+
"2025-06-04T07:24:13.399Z",
|
|
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-06-
|
|
287
|
+
created: z.date().default(() => new Date("2025-06-04T07:24:13.399Z"))
|
|
288
288
|
.transform(v => v.toISOString()),
|
|
289
289
|
}).transform((v) => {
|
|
290
290
|
return remap$(v, {
|
|
@@ -15,6 +15,7 @@ export * from "./createfeedback.js";
|
|
|
15
15
|
export * from "./createknowledge.js";
|
|
16
16
|
export * from "./createprompt.js";
|
|
17
17
|
export * from "./deletechunk.js";
|
|
18
|
+
export * from "./deletecontact.js";
|
|
18
19
|
export * from "./deletedatapoint.js";
|
|
19
20
|
export * from "./deletedataset.js";
|
|
20
21
|
export * from "./deletedatasource.js";
|
|
@@ -68,6 +69,7 @@ export * from "./getoneknowledge.js";
|
|
|
68
69
|
export * from "./getoneprompt.js";
|
|
69
70
|
export * from "./getpromptversion.js";
|
|
70
71
|
export * from "./listchunks.js";
|
|
72
|
+
export * from "./listcontacts.js";
|
|
71
73
|
export * from "./listdatasetdatapoints.js";
|
|
72
74
|
export * from "./listdatasets.js";
|
|
73
75
|
export * from "./listdatasources.js";
|
|
@@ -75,12 +77,14 @@ export * from "./listknowledgebases.js";
|
|
|
75
77
|
export * from "./listmodels.js";
|
|
76
78
|
export * from "./listpromptversions.js";
|
|
77
79
|
export * from "./remoteconfigsgetconfig.js";
|
|
80
|
+
export * from "./retrievecontact.js";
|
|
78
81
|
export * from "./retrievedatapoint.js";
|
|
79
82
|
export * from "./retrievedataset.js";
|
|
80
83
|
export * from "./retrievedatasource.js";
|
|
81
84
|
export * from "./runbertscore.js";
|
|
82
85
|
export * from "./searchknowledge.js";
|
|
83
86
|
export * from "./updatechunk.js";
|
|
87
|
+
export * from "./updatecontact.js";
|
|
84
88
|
export * from "./updatedatapoint.js";
|
|
85
89
|
export * from "./updatedataset.js";
|
|
86
90
|
export * from "./updatedatasource.js";
|