@orq-ai/node 4.10.1 → 4.10.4
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 +2 -2
- package/lib/config.js +2 -2
- package/models/components/createfilerequest.d.ts +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createprompt.d.ts +1 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +1 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deploymentinvoke.d.ts +1 -0
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +1 -0
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +1 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +1 -0
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +1 -0
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +1 -0
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/getallprompts.d.ts +1 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +1 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getoneprompt.d.ts +1 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +1 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listpromptversions.d.ts +1 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +1 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateprompt.d.ts +1 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +1 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +5 -5
- package/packages/orq-rc/src/funcs/filesDelete.ts +3 -0
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/apikey.ts +19 -19
- package/packages/orq-rc/src/models/components/createapikeyrequest.ts +4 -4
- package/packages/orq-rc/src/models/components/createapikeyresponse.ts +4 -4
- package/packages/orq-rc/src/models/components/createfilerequest.ts +15 -6
- package/packages/orq-rc/src/models/components/createfileresponse.ts +5 -2
- package/packages/orq-rc/src/models/components/createidentityrequest.ts +27 -3
- package/packages/orq-rc/src/models/components/createidentityresponse.ts +5 -2
- package/packages/orq-rc/src/models/components/createprojectrequest.ts +3 -3
- package/packages/orq-rc/src/models/components/createprojectresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/createskillrequest.ts +3 -3
- package/packages/orq-rc/src/models/components/createskillresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/file.ts +24 -12
- package/packages/orq-rc/src/models/components/getapikeyresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/getfilecontentresponse.ts +5 -2
- package/packages/orq-rc/src/models/components/getfileresponse.ts +5 -2
- package/packages/orq-rc/src/models/components/getprojectresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/getskillresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/identity.ts +55 -10
- package/packages/orq-rc/src/models/components/identitymetrics.ts +20 -8
- package/packages/orq-rc/src/models/components/listapikeysresponse.ts +6 -6
- package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/listfilesresponse.ts +15 -6
- package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +18 -6
- package/packages/orq-rc/src/models/components/listprojectsresponse.ts +6 -6
- package/packages/orq-rc/src/models/components/listskillsresponse.ts +6 -6
- package/packages/orq-rc/src/models/components/project.ts +16 -16
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +5 -2
- package/packages/orq-rc/src/models/components/singleproject.ts +7 -4
- package/packages/orq-rc/src/models/components/skill.ts +25 -25
- package/packages/orq-rc/src/models/components/updateapikeyrequest.ts +1 -8
- package/packages/orq-rc/src/models/components/updateapikeyresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/updatefilerequest.ts +6 -7
- package/packages/orq-rc/src/models/components/updatefileresponse.ts +5 -2
- package/packages/orq-rc/src/models/components/updateidentityrequest.ts +18 -3
- package/packages/orq-rc/src/models/components/updateidentityresponse.ts +5 -2
- package/packages/orq-rc/src/models/components/updateprojectrequest.ts +0 -11
- package/packages/orq-rc/src/models/components/updateprojectresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/updateskillrequest.ts +0 -7
- package/packages/orq-rc/src/models/components/updateskillresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/userowner.ts +7 -4
- package/packages/orq-rc/src/models/operations/createdataset.ts +5 -5
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +6 -6
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createknowledge.ts +4 -4
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +4 -4
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +4 -4
- package/packages/orq-rc/src/models/operations/createprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/deleteidentity.ts +3 -0
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +1 -0
- package/packages/orq-rc/src/models/operations/filecontent.ts +3 -0
- package/packages/orq-rc/src/models/operations/filedelete.ts +3 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +3 -0
- package/packages/orq-rc/src/models/operations/filelist.ts +15 -0
- package/packages/orq-rc/src/models/operations/fileupdate.ts +3 -0
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +4 -4
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +4 -4
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +4 -4
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/packages/orq-rc/src/models/operations/listdatasets.ts +5 -5
- package/packages/orq-rc/src/models/operations/listdatasources.ts +3 -3
- package/packages/orq-rc/src/models/operations/listidentities.ts +24 -0
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +4 -4
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +5 -5
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +3 -3
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +6 -0
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +5 -5
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +3 -3
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updateidentity.ts +3 -0
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +4 -4
- package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/files.ts +3 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/createfilerequest.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createprompt.ts +1 -0
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deploymentinvoke.ts +1 -0
- package/src/models/operations/deployments.ts +1 -0
- package/src/models/operations/deploymentstream.ts +1 -0
- package/src/models/operations/getallprompts.ts +1 -0
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getoneprompt.ts +1 -0
- package/src/models/operations/getpromptversion.ts +1 -0
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listpromptversions.ts +1 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateprompt.ts +1 -0
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -371,7 +371,7 @@ function updateToolRequestBodyToolsSchemaToJSON(updateToolRequestBodyToolsSchema
|
|
|
371
371
|
}
|
|
372
372
|
/** @internal */
|
|
373
373
|
exports.RequestBodyTools$outboundSchema = z.object({
|
|
374
|
-
id: z.string().default("
|
|
374
|
+
id: z.string().default("01KTBKJNVGHK77G6A27SHJMJS9"),
|
|
375
375
|
name: z.string(),
|
|
376
376
|
description: z.string().optional(),
|
|
377
377
|
schema: z.lazy(() => exports.UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -666,7 +666,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
666
666
|
}
|
|
667
667
|
/** @internal */
|
|
668
668
|
exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
669
|
-
_id: z.string().default("
|
|
669
|
+
_id: z.string().default("tool_01KTBKJNV7ET8RZ1K5BJR3ZE6N"),
|
|
670
670
|
path: z.string(),
|
|
671
671
|
key: z.string(),
|
|
672
672
|
display_name: z.string().optional(),
|
|
@@ -719,7 +719,7 @@ function updateToolResponseBodyToolsSchemaFromJSON(jsonString) {
|
|
|
719
719
|
}
|
|
720
720
|
/** @internal */
|
|
721
721
|
exports.UpdateToolResponseBodyTools$inboundSchema = z.object({
|
|
722
|
-
id: z.string().default("
|
|
722
|
+
id: z.string().default("01KTBKJNV6VM7ZWZRKDRHG7SE9"),
|
|
723
723
|
name: z.string(),
|
|
724
724
|
description: z.string().optional(),
|
|
725
725
|
schema: z.lazy(() => exports.UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -749,7 +749,7 @@ function updateToolResponseBodyMcpFromJSON(jsonString) {
|
|
|
749
749
|
}
|
|
750
750
|
/** @internal */
|
|
751
751
|
exports.UpdateToolResponseBodyMCPTool$inboundSchema = z.object({
|
|
752
|
-
_id: z.string().default("
|
|
752
|
+
_id: z.string().default("tool_01KTBKJNV494W16M90GGHBH7JY"),
|
|
753
753
|
path: z.string(),
|
|
754
754
|
key: z.string(),
|
|
755
755
|
display_name: z.string().optional(),
|
|
@@ -836,7 +836,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
836
836
|
}
|
|
837
837
|
/** @internal */
|
|
838
838
|
exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
839
|
-
_id: z.string().default("
|
|
839
|
+
_id: z.string().default("tool_01KTBKJNV1DT5BYF6V9AYVXSCV"),
|
|
840
840
|
path: z.string(),
|
|
841
841
|
key: z.string(),
|
|
842
842
|
display_name: z.string().optional(),
|
|
@@ -886,7 +886,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
886
886
|
}
|
|
887
887
|
/** @internal */
|
|
888
888
|
exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
889
|
-
_id: z.string().default("
|
|
889
|
+
_id: z.string().default("tool_01KTBKJNTYZE88MKGS2GTG65TZ"),
|
|
890
890
|
path: z.string(),
|
|
891
891
|
key: z.string(),
|
|
892
892
|
display_name: z.string().optional(),
|
|
@@ -940,7 +940,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
940
940
|
}
|
|
941
941
|
/** @internal */
|
|
942
942
|
exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
943
|
-
_id: z.string().default("
|
|
943
|
+
_id: z.string().default("tool_01KTBKJNTWS8CNE91F4BNQAA6H"),
|
|
944
944
|
path: z.string(),
|
|
945
945
|
key: z.string(),
|
|
946
946
|
display_name: z.string().optional(),
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.4",
|
|
4
4
|
"author": "Orq",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
|
-
"types": "./index.d.ts",
|
|
8
7
|
"import": "./index.js",
|
|
9
|
-
"require": "./index.js"
|
|
8
|
+
"require": "./index.js",
|
|
9
|
+
"types": "./index.d.ts"
|
|
10
10
|
},
|
|
11
11
|
"./*": "./*",
|
|
12
12
|
"./langchain": {
|
|
13
|
-
"types": "./langchain/index.d.mts",
|
|
14
13
|
"import": "./langchain/index.mjs",
|
|
15
|
-
"require": "./langchain/index.js"
|
|
14
|
+
"require": "./langchain/index.js",
|
|
15
|
+
"types": "./langchain/index.d.mts"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"main": "./index.js",
|
|
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "2.0",
|
|
61
|
-
sdkVersion: "4.
|
|
61
|
+
sdkVersion: "4.11.0-rc.1",
|
|
62
62
|
genVersion: "2.893.0",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.11.0-rc.1 2.893.0 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -33,27 +33,27 @@ export type ApiKey = {
|
|
|
33
33
|
* @remarks
|
|
34
34
|
* `sk-orq-<id>-<secret>`.
|
|
35
35
|
*/
|
|
36
|
-
apiKeyId
|
|
36
|
+
apiKeyId: string;
|
|
37
37
|
/**
|
|
38
38
|
* Human-readable name shown in the dashboard.
|
|
39
39
|
*/
|
|
40
|
-
name
|
|
40
|
+
name: string;
|
|
41
41
|
/**
|
|
42
42
|
* Owner attribution (drives lifecycle).
|
|
43
43
|
*/
|
|
44
|
-
owner
|
|
44
|
+
owner: ApiKeyOwner;
|
|
45
45
|
/**
|
|
46
46
|
* Project authorization scope.
|
|
47
47
|
*/
|
|
48
|
-
projectScope
|
|
49
|
-
permissionMode
|
|
48
|
+
projectScope: ProjectScope;
|
|
49
|
+
permissionMode: PermissionMode;
|
|
50
50
|
/**
|
|
51
51
|
* Per-domain access map. Only populated when `permission_mode` is
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
54
|
* `PERMISSION_MODE_RESTRICTED`. The authoritative list of valid
|
|
55
55
|
* keys and the per-domain read / write semantics are exposed at
|
|
56
|
-
* runtime via the
|
|
56
|
+
* runtime via the capability catalog endpoint.
|
|
57
57
|
*
|
|
58
58
|
* Valid keys are the Domain.id values in the capability catalog —
|
|
59
59
|
* see libs/catalog/orq/apikeys/v1/catalog.textpb for the canonical
|
|
@@ -71,8 +71,8 @@ export type ApiKey = {
|
|
|
71
71
|
* @remarks
|
|
72
72
|
* to expose.
|
|
73
73
|
*/
|
|
74
|
-
tokenPrefix
|
|
75
|
-
status
|
|
74
|
+
tokenPrefix: string;
|
|
75
|
+
status: ApiKeyStatus;
|
|
76
76
|
/**
|
|
77
77
|
* Audit: user who created the key. Optional. Distinct from
|
|
78
78
|
*
|
|
@@ -88,11 +88,11 @@ export type ApiKey = {
|
|
|
88
88
|
/**
|
|
89
89
|
* Time the key was created.
|
|
90
90
|
*/
|
|
91
|
-
createdAt
|
|
91
|
+
createdAt: Date;
|
|
92
92
|
/**
|
|
93
93
|
* Time the key was last updated.
|
|
94
94
|
*/
|
|
95
|
-
updatedAt
|
|
95
|
+
updatedAt: Date;
|
|
96
96
|
/**
|
|
97
97
|
* Last authenticated use. Updated via NATS debounce + 1% sampler.
|
|
98
98
|
*/
|
|
@@ -117,22 +117,22 @@ export type ApiKey = {
|
|
|
117
117
|
/** @internal */
|
|
118
118
|
export const ApiKey$inboundSchema: z.ZodType<ApiKey, z.ZodTypeDef, unknown> = z
|
|
119
119
|
.object({
|
|
120
|
-
api_key_id: z.string()
|
|
121
|
-
name: z.string()
|
|
122
|
-
owner: ApiKeyOwner$inboundSchema
|
|
123
|
-
project_scope: ProjectScope$inboundSchema
|
|
124
|
-
permission_mode: PermissionMode$inboundSchema
|
|
120
|
+
api_key_id: z.string(),
|
|
121
|
+
name: z.string(),
|
|
122
|
+
owner: ApiKeyOwner$inboundSchema,
|
|
123
|
+
project_scope: ProjectScope$inboundSchema,
|
|
124
|
+
permission_mode: PermissionMode$inboundSchema,
|
|
125
125
|
access: z.record(z.number().int()).optional(),
|
|
126
|
-
token_prefix: z.string()
|
|
127
|
-
status: ApiKeyStatus$inboundSchema
|
|
126
|
+
token_prefix: z.string(),
|
|
127
|
+
status: ApiKeyStatus$inboundSchema,
|
|
128
128
|
created_by_id: z.string().optional(),
|
|
129
129
|
updated_by_id: z.string().optional(),
|
|
130
130
|
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
131
131
|
new Date(v)
|
|
132
|
-
)
|
|
132
|
+
),
|
|
133
133
|
updated_at: z.string().datetime({ offset: true }).transform(v =>
|
|
134
134
|
new Date(v)
|
|
135
|
-
)
|
|
135
|
+
),
|
|
136
136
|
last_used_at: z.string().datetime({ offset: true }).transform(v =>
|
|
137
137
|
new Date(v)
|
|
138
138
|
).optional(),
|
|
@@ -23,7 +23,7 @@ export type CreateApiKeyRequest = {
|
|
|
23
23
|
/**
|
|
24
24
|
* Human-readable name. Required.
|
|
25
25
|
*/
|
|
26
|
-
name
|
|
26
|
+
name: string;
|
|
27
27
|
/**
|
|
28
28
|
* Owner attribution. Defaults to service_account when omitted.
|
|
29
29
|
*/
|
|
@@ -39,7 +39,7 @@ export type CreateApiKeyRequest = {
|
|
|
39
39
|
* @remarks
|
|
40
40
|
* `PERMISSION_MODE_RESTRICTED`. See `ApiKey.access` for the full
|
|
41
41
|
* catalog of valid keys (Domain.id) and AccessLevel string values,
|
|
42
|
-
* or fetch the live catalog via the
|
|
42
|
+
* or fetch the live catalog via the capability catalog endpoint.
|
|
43
43
|
*/
|
|
44
44
|
access?: { [k: string]: number } | undefined;
|
|
45
45
|
/**
|
|
@@ -54,7 +54,7 @@ export type CreateApiKeyRequest = {
|
|
|
54
54
|
|
|
55
55
|
/** @internal */
|
|
56
56
|
export type CreateApiKeyRequest$Outbound = {
|
|
57
|
-
name
|
|
57
|
+
name: string;
|
|
58
58
|
owner?: ApiKeyOwner$Outbound | undefined;
|
|
59
59
|
project_scope?: ProjectScope$Outbound | undefined;
|
|
60
60
|
permission_mode?: string | undefined;
|
|
@@ -68,7 +68,7 @@ export const CreateApiKeyRequest$outboundSchema: z.ZodType<
|
|
|
68
68
|
z.ZodTypeDef,
|
|
69
69
|
CreateApiKeyRequest
|
|
70
70
|
> = z.object({
|
|
71
|
-
name: z.string()
|
|
71
|
+
name: z.string(),
|
|
72
72
|
owner: ApiKeyOwner$outboundSchema.optional(),
|
|
73
73
|
projectScope: ProjectScope$outboundSchema.optional(),
|
|
74
74
|
permissionMode: PermissionMode$outboundSchema.optional(),
|
|
@@ -13,7 +13,7 @@ export type CreateApiKeyResponse = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Newly minted api-key record.
|
|
15
15
|
*/
|
|
16
|
-
apiKey
|
|
16
|
+
apiKey: ApiKey;
|
|
17
17
|
/**
|
|
18
18
|
* Raw bearer token in the form `sk-orq-<api_key_id>-<secret>`.
|
|
19
19
|
*
|
|
@@ -21,7 +21,7 @@ export type CreateApiKeyResponse = {
|
|
|
21
21
|
* Returned ONCE; the API never exposes this value again. Clients
|
|
22
22
|
* must persist it immediately on receipt.
|
|
23
23
|
*/
|
|
24
|
-
token
|
|
24
|
+
token: string;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
/** @internal */
|
|
@@ -30,8 +30,8 @@ export const CreateApiKeyResponse$inboundSchema: z.ZodType<
|
|
|
30
30
|
z.ZodTypeDef,
|
|
31
31
|
unknown
|
|
32
32
|
> = z.object({
|
|
33
|
-
api_key: ApiKey$inboundSchema
|
|
34
|
-
token: z.string()
|
|
33
|
+
api_key: ApiKey$inboundSchema,
|
|
34
|
+
token: z.string(),
|
|
35
35
|
}).transform((v) => {
|
|
36
36
|
return remap$(v, {
|
|
37
37
|
"api_key": "apiKey",
|
|
@@ -7,9 +7,18 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { FilePurpose, FilePurpose$outboundSchema } from "./filepurpose.js";
|
|
8
8
|
|
|
9
9
|
export type CreateFileRequest = {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Name to store for the uploaded file, including extension when available.
|
|
12
|
+
*/
|
|
13
|
+
filename: string;
|
|
14
|
+
/**
|
|
15
|
+
* Base64-encoded file contents.
|
|
16
|
+
*/
|
|
17
|
+
content: string;
|
|
12
18
|
purpose?: FilePurpose | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* MIME type of the uploaded content, for example `application/pdf`.
|
|
21
|
+
*/
|
|
13
22
|
contentType?: string | undefined;
|
|
14
23
|
/**
|
|
15
24
|
* Project the file is created in. Optional for project-scoped API keys (defaults to the key's bound project); required for workspace-scoped callers.
|
|
@@ -19,8 +28,8 @@ export type CreateFileRequest = {
|
|
|
19
28
|
|
|
20
29
|
/** @internal */
|
|
21
30
|
export type CreateFileRequest$Outbound = {
|
|
22
|
-
filename
|
|
23
|
-
content
|
|
31
|
+
filename: string;
|
|
32
|
+
content: string;
|
|
24
33
|
purpose?: string | undefined;
|
|
25
34
|
content_type?: string | undefined;
|
|
26
35
|
project_id?: string | undefined;
|
|
@@ -32,8 +41,8 @@ export const CreateFileRequest$outboundSchema: z.ZodType<
|
|
|
32
41
|
z.ZodTypeDef,
|
|
33
42
|
CreateFileRequest
|
|
34
43
|
> = z.object({
|
|
35
|
-
filename: z.string()
|
|
36
|
-
content: z.string()
|
|
44
|
+
filename: z.string(),
|
|
45
|
+
content: z.string(),
|
|
37
46
|
purpose: FilePurpose$outboundSchema.optional(),
|
|
38
47
|
contentType: z.string().optional(),
|
|
39
48
|
projectId: z.string().optional(),
|
|
@@ -9,7 +9,10 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
9
9
|
import { FileT, FileT$inboundSchema } from "./file.js";
|
|
10
10
|
|
|
11
11
|
export type CreateFileResponse = {
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Newly created file.
|
|
14
|
+
*/
|
|
15
|
+
file: FileT;
|
|
13
16
|
};
|
|
14
17
|
|
|
15
18
|
/** @internal */
|
|
@@ -18,7 +21,7 @@ export const CreateFileResponse$inboundSchema: z.ZodType<
|
|
|
18
21
|
z.ZodTypeDef,
|
|
19
22
|
unknown
|
|
20
23
|
> = z.object({
|
|
21
|
-
file: FileT$inboundSchema
|
|
24
|
+
file: FileT$inboundSchema,
|
|
22
25
|
});
|
|
23
26
|
|
|
24
27
|
export function createFileResponseFromJSON(
|
|
@@ -5,14 +5,38 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Custom JSON metadata stored with the identity.
|
|
10
|
+
*/
|
|
8
11
|
export type CreateIdentityRequestMetadata = {};
|
|
9
12
|
|
|
10
13
|
export type CreateIdentityRequest = {
|
|
11
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Customer-provided stable identifier for this identity. Must be unique
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* within the workspace.
|
|
19
|
+
*/
|
|
20
|
+
externalId: string;
|
|
21
|
+
/**
|
|
22
|
+
* Human-readable display name for the identity.
|
|
23
|
+
*/
|
|
12
24
|
displayName?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Email address associated with the identity.
|
|
27
|
+
*/
|
|
13
28
|
email?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* URL of the identity avatar image.
|
|
31
|
+
*/
|
|
14
32
|
avatarUrl?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Free-form labels used to organize and filter identities.
|
|
35
|
+
*/
|
|
15
36
|
tags?: Array<string> | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Custom JSON metadata stored with the identity.
|
|
39
|
+
*/
|
|
16
40
|
metadata?: CreateIdentityRequestMetadata | undefined;
|
|
17
41
|
};
|
|
18
42
|
|
|
@@ -38,7 +62,7 @@ export function createIdentityRequestMetadataToJSON(
|
|
|
38
62
|
|
|
39
63
|
/** @internal */
|
|
40
64
|
export type CreateIdentityRequest$Outbound = {
|
|
41
|
-
external_id
|
|
65
|
+
external_id: string;
|
|
42
66
|
display_name?: string | undefined;
|
|
43
67
|
email?: string | undefined;
|
|
44
68
|
avatar_url?: string | undefined;
|
|
@@ -52,7 +76,7 @@ export const CreateIdentityRequest$outboundSchema: z.ZodType<
|
|
|
52
76
|
z.ZodTypeDef,
|
|
53
77
|
CreateIdentityRequest
|
|
54
78
|
> = z.object({
|
|
55
|
-
externalId: z.string()
|
|
79
|
+
externalId: z.string(),
|
|
56
80
|
displayName: z.string().optional(),
|
|
57
81
|
email: z.string().optional(),
|
|
58
82
|
avatarUrl: z.string().optional(),
|
|
@@ -9,7 +9,10 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
9
9
|
import { Identity, Identity$inboundSchema } from "./identity.js";
|
|
10
10
|
|
|
11
11
|
export type CreateIdentityResponse = {
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Newly created identity.
|
|
14
|
+
*/
|
|
15
|
+
identity: Identity;
|
|
13
16
|
};
|
|
14
17
|
|
|
15
18
|
/** @internal */
|
|
@@ -18,7 +21,7 @@ export const CreateIdentityResponse$inboundSchema: z.ZodType<
|
|
|
18
21
|
z.ZodTypeDef,
|
|
19
22
|
unknown
|
|
20
23
|
> = z.object({
|
|
21
|
-
identity: Identity$inboundSchema
|
|
24
|
+
identity: Identity$inboundSchema,
|
|
22
25
|
});
|
|
23
26
|
|
|
24
27
|
export function createIdentityResponseFromJSON(
|
|
@@ -8,7 +8,7 @@ export type CreateProjectRequest = {
|
|
|
8
8
|
/**
|
|
9
9
|
* Project name. Names must be non-empty and at most 128 characters.
|
|
10
10
|
*/
|
|
11
|
-
name
|
|
11
|
+
name: string;
|
|
12
12
|
/**
|
|
13
13
|
* Team identifiers to associate with the project.
|
|
14
14
|
*/
|
|
@@ -21,7 +21,7 @@ export type CreateProjectRequest = {
|
|
|
21
21
|
|
|
22
22
|
/** @internal */
|
|
23
23
|
export type CreateProjectRequest$Outbound = {
|
|
24
|
-
name
|
|
24
|
+
name: string;
|
|
25
25
|
teams?: Array<string> | undefined;
|
|
26
26
|
description?: string | undefined;
|
|
27
27
|
};
|
|
@@ -32,7 +32,7 @@ export const CreateProjectRequest$outboundSchema: z.ZodType<
|
|
|
32
32
|
z.ZodTypeDef,
|
|
33
33
|
CreateProjectRequest
|
|
34
34
|
> = z.object({
|
|
35
|
-
name: z.string()
|
|
35
|
+
name: z.string(),
|
|
36
36
|
teams: z.array(z.string()).optional(),
|
|
37
37
|
description: z.string().optional(),
|
|
38
38
|
});
|
|
@@ -12,7 +12,7 @@ export type CreateProjectResponse = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Newly created project.
|
|
14
14
|
*/
|
|
15
|
-
project
|
|
15
|
+
project: Project;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
/** @internal */
|
|
@@ -21,7 +21,7 @@ export const CreateProjectResponse$inboundSchema: z.ZodType<
|
|
|
21
21
|
z.ZodTypeDef,
|
|
22
22
|
unknown
|
|
23
23
|
> = z.object({
|
|
24
|
-
project: Project$inboundSchema
|
|
24
|
+
project: Project$inboundSchema,
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
export function createProjectResponseFromJSON(
|
|
@@ -9,7 +9,7 @@ export type CreateSkillRequest = {
|
|
|
9
9
|
/**
|
|
10
10
|
* Workspace-unique display name. Must start with a letter and may contain letters, numbers, and underscores. Dashes and dots are not allowed.
|
|
11
11
|
*/
|
|
12
|
-
displayName
|
|
12
|
+
displayName: string;
|
|
13
13
|
/**
|
|
14
14
|
* Short human-readable summary of what the skill is for.
|
|
15
15
|
*/
|
|
@@ -34,7 +34,7 @@ export type CreateSkillRequest = {
|
|
|
34
34
|
|
|
35
35
|
/** @internal */
|
|
36
36
|
export type CreateSkillRequest$Outbound = {
|
|
37
|
-
display_name
|
|
37
|
+
display_name: string;
|
|
38
38
|
description?: string | undefined;
|
|
39
39
|
tags?: Array<string> | undefined;
|
|
40
40
|
path?: string | undefined;
|
|
@@ -48,7 +48,7 @@ export const CreateSkillRequest$outboundSchema: z.ZodType<
|
|
|
48
48
|
z.ZodTypeDef,
|
|
49
49
|
CreateSkillRequest
|
|
50
50
|
> = z.object({
|
|
51
|
-
displayName: z.string()
|
|
51
|
+
displayName: z.string(),
|
|
52
52
|
description: z.string().optional(),
|
|
53
53
|
tags: z.array(z.string()).optional(),
|
|
54
54
|
path: z.string().optional(),
|
|
@@ -12,7 +12,7 @@ export type CreateSkillResponse = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Newly created skill.
|
|
14
14
|
*/
|
|
15
|
-
skill
|
|
15
|
+
skill: Skill;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
/** @internal */
|
|
@@ -21,7 +21,7 @@ export const CreateSkillResponse$inboundSchema: z.ZodType<
|
|
|
21
21
|
z.ZodTypeDef,
|
|
22
22
|
unknown
|
|
23
23
|
> = z.object({
|
|
24
|
-
skill: Skill$inboundSchema
|
|
24
|
+
skill: Skill$inboundSchema,
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
export function createSkillResponseFromJSON(
|
|
@@ -10,28 +10,40 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
import { FilePurpose, FilePurpose$inboundSchema } from "./filepurpose.js";
|
|
11
11
|
|
|
12
12
|
export type FileT = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Unique file identifier assigned by ORQ.
|
|
15
|
+
*/
|
|
16
|
+
fileId: string;
|
|
17
|
+
purpose: FilePurpose;
|
|
18
|
+
/**
|
|
19
|
+
* Display file name, including extension when available.
|
|
20
|
+
*/
|
|
21
|
+
fileName: string;
|
|
22
|
+
/**
|
|
23
|
+
* Size of the uploaded file in bytes.
|
|
24
|
+
*/
|
|
25
|
+
bytes: string;
|
|
26
|
+
/**
|
|
27
|
+
* Time when the file was created.
|
|
28
|
+
*/
|
|
29
|
+
createdAt: Date;
|
|
18
30
|
/**
|
|
19
31
|
* Identifier of the project the file belongs to. Files are project-scoped; an API key may only access files in projects it is authorized for.
|
|
20
32
|
*/
|
|
21
|
-
projectId
|
|
33
|
+
projectId: string;
|
|
22
34
|
};
|
|
23
35
|
|
|
24
36
|
/** @internal */
|
|
25
37
|
export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
|
|
26
38
|
.object({
|
|
27
|
-
file_id: z.string()
|
|
28
|
-
purpose: FilePurpose$inboundSchema
|
|
29
|
-
file_name: z.string()
|
|
30
|
-
bytes: z.string()
|
|
39
|
+
file_id: z.string(),
|
|
40
|
+
purpose: FilePurpose$inboundSchema,
|
|
41
|
+
file_name: z.string(),
|
|
42
|
+
bytes: z.string(),
|
|
31
43
|
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
32
44
|
new Date(v)
|
|
33
|
-
)
|
|
34
|
-
project_id: z.string()
|
|
45
|
+
),
|
|
46
|
+
project_id: z.string(),
|
|
35
47
|
}).transform((v) => {
|
|
36
48
|
return remap$(v, {
|
|
37
49
|
"file_id": "fileId",
|
|
@@ -13,7 +13,7 @@ export type GetApiKeyResponse = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Requested api-key. Raw token never included.
|
|
15
15
|
*/
|
|
16
|
-
apiKey
|
|
16
|
+
apiKey: ApiKey;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
/** @internal */
|
|
@@ -22,7 +22,7 @@ export const GetApiKeyResponse$inboundSchema: z.ZodType<
|
|
|
22
22
|
z.ZodTypeDef,
|
|
23
23
|
unknown
|
|
24
24
|
> = z.object({
|
|
25
|
-
api_key: ApiKey$inboundSchema
|
|
25
|
+
api_key: ApiKey$inboundSchema,
|
|
26
26
|
}).transform((v) => {
|
|
27
27
|
return remap$(v, {
|
|
28
28
|
"api_key": "apiKey",
|
|
@@ -9,7 +9,10 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type GetFileContentResponse = {
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Presigned URL that can be used to download the file content.
|
|
14
|
+
*/
|
|
15
|
+
downloadUrl: string;
|
|
13
16
|
};
|
|
14
17
|
|
|
15
18
|
/** @internal */
|
|
@@ -18,7 +21,7 @@ export const GetFileContentResponse$inboundSchema: z.ZodType<
|
|
|
18
21
|
z.ZodTypeDef,
|
|
19
22
|
unknown
|
|
20
23
|
> = z.object({
|
|
21
|
-
download_url: z.string()
|
|
24
|
+
download_url: z.string(),
|
|
22
25
|
}).transform((v) => {
|
|
23
26
|
return remap$(v, {
|
|
24
27
|
"download_url": "downloadUrl",
|
|
@@ -9,7 +9,10 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
9
9
|
import { FileT, FileT$inboundSchema } from "./file.js";
|
|
10
10
|
|
|
11
11
|
export type GetFileResponse = {
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Requested file metadata.
|
|
14
|
+
*/
|
|
15
|
+
file: FileT;
|
|
13
16
|
};
|
|
14
17
|
|
|
15
18
|
/** @internal */
|
|
@@ -18,7 +21,7 @@ export const GetFileResponse$inboundSchema: z.ZodType<
|
|
|
18
21
|
z.ZodTypeDef,
|
|
19
22
|
unknown
|
|
20
23
|
> = z.object({
|
|
21
|
-
file: FileT$inboundSchema
|
|
24
|
+
file: FileT$inboundSchema,
|
|
22
25
|
});
|
|
23
26
|
|
|
24
27
|
export function getFileResponseFromJSON(
|
|
@@ -12,7 +12,7 @@ export type GetProjectResponse = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Requested project.
|
|
14
14
|
*/
|
|
15
|
-
project
|
|
15
|
+
project: Project;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
/** @internal */
|
|
@@ -21,7 +21,7 @@ export const GetProjectResponse$inboundSchema: z.ZodType<
|
|
|
21
21
|
z.ZodTypeDef,
|
|
22
22
|
unknown
|
|
23
23
|
> = z.object({
|
|
24
|
-
project: Project$inboundSchema
|
|
24
|
+
project: Project$inboundSchema,
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
export function getProjectResponseFromJSON(
|
|
@@ -12,7 +12,7 @@ export type GetSkillResponse = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Requested skill.
|
|
14
14
|
*/
|
|
15
|
-
skill
|
|
15
|
+
skill: Skill;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
/** @internal */
|
|
@@ -21,7 +21,7 @@ export const GetSkillResponse$inboundSchema: z.ZodType<
|
|
|
21
21
|
z.ZodTypeDef,
|
|
22
22
|
unknown
|
|
23
23
|
> = z.object({
|
|
24
|
-
skill: Skill$inboundSchema
|
|
24
|
+
skill: Skill$inboundSchema,
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
export function getSkillResponseFromJSON(
|