@orq-ai/node 4.16.0-rc.13 → 4.16.0-rc.15
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 +1 -1
- package/funcs/apiKeysCreate.d.ts +3 -2
- package/funcs/apiKeysCreate.d.ts.map +1 -1
- package/funcs/apiKeysCreate.js +4 -3
- package/funcs/apiKeysCreate.js.map +1 -1
- package/funcs/apiKeysDelete.js +1 -1
- package/funcs/apiKeysDelete.js.map +1 -1
- package/funcs/apiKeysGet.d.ts +1 -1
- package/funcs/apiKeysGet.js +2 -6
- package/funcs/apiKeysGet.js.map +1 -1
- package/funcs/apiKeysList.d.ts +1 -1
- package/funcs/apiKeysList.js +4 -11
- package/funcs/apiKeysList.js.map +1 -1
- package/funcs/apiKeysListCapabilities.d.ts +3 -3
- package/funcs/apiKeysListCapabilities.d.ts.map +1 -1
- package/funcs/apiKeysListCapabilities.js +3 -3
- package/funcs/apiKeysListCapabilities.js.map +1 -1
- package/funcs/apiKeysUpdate.d.ts +1 -1
- package/funcs/apiKeysUpdate.js +3 -5
- package/funcs/apiKeysUpdate.js.map +1 -1
- package/funcs/routerClassifyCreate.d.ts +1 -1
- package/funcs/routerClassifyCreate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/classifyanswer.d.ts +2 -2
- package/models/components/constraints.d.ts +12 -0
- package/models/components/constraints.d.ts.map +1 -0
- package/models/components/{singleproject.js → constraints.js} +8 -8
- package/models/components/constraints.js.map +1 -0
- package/models/components/domain.d.ts +30 -31
- package/models/components/domain.d.ts.map +1 -1
- package/models/components/domain.js +20 -11
- package/models/components/domain.js.map +1 -1
- package/models/components/index.d.ts +2 -14
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -14
- package/models/components/index.js.map +1 -1
- package/models/components/owner.d.ts +14 -0
- package/models/components/owner.d.ts.map +1 -0
- package/models/components/{userowner.js → owner.js} +8 -7
- package/models/components/owner.js.map +1 -0
- package/models/components/projectscope.d.ts +4 -13
- package/models/components/projectscope.d.ts.map +1 -1
- package/models/components/projectscope.js +7 -4
- package/models/components/projectscope.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/apikeycreate.d.ts +79 -0
- package/models/operations/apikeycreate.d.ts.map +1 -0
- package/models/{components/createapikeyrequest.js → operations/apikeycreate.js} +35 -21
- package/models/operations/apikeycreate.js.map +1 -0
- package/models/operations/apikeydelete.d.ts +1 -1
- package/models/operations/apikeyget.d.ts +1 -9
- package/models/operations/apikeyget.d.ts.map +1 -1
- package/models/operations/apikeyget.js +0 -2
- package/models/operations/apikeyget.js.map +1 -1
- package/models/operations/apikeylist.d.ts +18 -65
- package/models/operations/apikeylist.d.ts.map +1 -1
- package/models/operations/apikeylist.js +11 -15
- package/models/operations/apikeylist.js.map +1 -1
- package/models/operations/apikeylistcapabilities.d.ts +17 -0
- package/models/operations/apikeylistcapabilities.d.ts.map +1 -0
- package/models/{components/listcapabilitiesresponse.js → operations/apikeylistcapabilities.js} +8 -8
- package/models/operations/apikeylistcapabilities.js.map +1 -0
- package/models/operations/apikeyupdate.d.ts +73 -3
- package/models/operations/apikeyupdate.d.ts.map +1 -1
- package/models/operations/apikeyupdate.js +43 -3
- package/models/operations/apikeyupdate.js.map +1 -1
- package/models/operations/createclassify.d.ts +2 -2
- package/models/operations/createrouterresponse.d.ts +4 -4
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +5 -5
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +8 -8
- package/sdk/apikeys.d.ts +12 -12
- package/sdk/apikeys.d.ts.map +1 -1
- package/sdk/apikeys.js +12 -12
- package/sdk/apikeys.js.map +1 -1
- package/sdk/classify.d.ts +1 -1
- package/sdk/classify.js +1 -1
- package/sdk/sdk.d.ts +2 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/apiKeysCreate.ts +6 -5
- package/src/funcs/apiKeysDelete.ts +1 -1
- package/src/funcs/apiKeysGet.ts +3 -8
- package/src/funcs/apiKeysList.ts +4 -11
- package/src/funcs/apiKeysListCapabilities.ts +6 -6
- package/src/funcs/apiKeysUpdate.ts +3 -5
- package/src/funcs/routerClassifyCreate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/classifyanswer.ts +2 -2
- package/src/models/components/constraints.ts +32 -0
- package/src/models/components/domain.ts +42 -39
- package/src/models/components/index.ts +2 -14
- package/src/models/components/owner.ts +35 -0
- package/src/models/components/projectscope.ts +11 -23
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/apikeycreate.ts +116 -0
- package/src/models/operations/apikeydelete.ts +1 -1
- package/src/models/operations/apikeyget.ts +1 -11
- package/src/models/operations/apikeylist.ts +23 -78
- package/src/models/operations/apikeylistcapabilities.ts +39 -0
- package/src/models/operations/apikeyupdate.ts +107 -5
- package/src/models/operations/createclassify.ts +2 -2
- package/src/models/operations/createrouterresponse.ts +6 -6
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/apikeys.ts +18 -18
- package/src/sdk/classify.ts +1 -1
- package/src/sdk/sdk.ts +5 -5
- package/models/components/allprojects.d.ts +0 -8
- package/models/components/allprojects.d.ts.map +0 -1
- package/models/components/allprojects.js +0 -47
- package/models/components/allprojects.js.map +0 -1
- package/models/components/apikeyowner.d.ts +0 -26
- package/models/components/apikeyowner.d.ts.map +0 -1
- package/models/components/apikeyowner.js +0 -57
- package/models/components/apikeyowner.js.map +0 -1
- package/models/components/apikeystatus.d.ts +0 -12
- package/models/components/apikeystatus.d.ts.map +0 -1
- package/models/components/apikeystatus.js +0 -49
- package/models/components/apikeystatus.js.map +0 -1
- package/models/components/createapikeyrequest.d.ts +0 -75
- package/models/components/createapikeyrequest.d.ts.map +0 -1
- package/models/components/createapikeyrequest.js.map +0 -1
- package/models/components/domaingroup.d.ts +0 -11
- package/models/components/domaingroup.d.ts.map +0 -1
- package/models/components/domaingroup.js +0 -49
- package/models/components/domaingroup.js.map +0 -1
- package/models/components/listcapabilitiesresponse.d.ts +0 -17
- package/models/components/listcapabilitiesresponse.d.ts.map +0 -1
- package/models/components/listcapabilitiesresponse.js.map +0 -1
- package/models/components/mcpaccess.d.ts +0 -67
- package/models/components/mcpaccess.d.ts.map +0 -1
- package/models/components/mcpaccess.js +0 -60
- package/models/components/mcpaccess.js.map +0 -1
- package/models/components/ownertype.d.ts +0 -11
- package/models/components/ownertype.d.ts.map +0 -1
- package/models/components/ownertype.js +0 -49
- package/models/components/ownertype.js.map +0 -1
- package/models/components/permissionmode.d.ts +0 -12
- package/models/components/permissionmode.d.ts.map +0 -1
- package/models/components/permissionmode.js +0 -49
- package/models/components/permissionmode.js.map +0 -1
- package/models/components/scopemode.d.ts +0 -10
- package/models/components/scopemode.d.ts.map +0 -1
- package/models/components/scopemode.js +0 -48
- package/models/components/scopemode.js.map +0 -1
- package/models/components/serviceaccountowner.d.ts +0 -8
- package/models/components/serviceaccountowner.d.ts.map +0 -1
- package/models/components/serviceaccountowner.js +0 -47
- package/models/components/serviceaccountowner.js.map +0 -1
- package/models/components/singleproject.d.ts +0 -15
- package/models/components/singleproject.d.ts.map +0 -1
- package/models/components/singleproject.js.map +0 -1
- package/models/components/updateapikeyrequest.d.ts +0 -68
- package/models/components/updateapikeyrequest.d.ts.map +0 -1
- package/models/components/updateapikeyrequest.js +0 -70
- package/models/components/updateapikeyrequest.js.map +0 -1
- package/models/components/userowner.d.ts +0 -15
- package/models/components/userowner.d.ts.map +0 -1
- package/models/components/userowner.js.map +0 -1
- package/src/models/components/allprojects.ts +0 -21
- package/src/models/components/apikeyowner.ts +0 -55
- package/src/models/components/apikeystatus.ts +0 -18
- package/src/models/components/createapikeyrequest.ts +0 -116
- package/src/models/components/domaingroup.ts +0 -17
- package/src/models/components/listcapabilitiesresponse.ts +0 -38
- package/src/models/components/mcpaccess.ts +0 -93
- package/src/models/components/ownertype.ts +0 -17
- package/src/models/components/permissionmode.ts +0 -19
- package/src/models/components/scopemode.ts +0 -16
- package/src/models/components/serviceaccountowner.ts +0 -25
- package/src/models/components/singleproject.ts +0 -35
- package/src/models/components/updateapikeyrequest.ts +0 -110
- package/src/models/components/userowner.ts +0 -35
|
@@ -36,34 +36,48 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
39
|
+
exports.ApiKeyCreateRequestBody$outboundSchema = exports.ApiKeyCreateSource$outboundSchema = exports.PermissionMode$outboundSchema = exports.ApiKeyCreateSource = exports.PermissionMode = void 0;
|
|
40
|
+
exports.apiKeyCreateRequestBodyToJSON = apiKeyCreateRequestBodyToJSON;
|
|
41
41
|
const z = __importStar(require("zod/v3"));
|
|
42
42
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
const components = __importStar(require("../components/index.js"));
|
|
44
|
+
/**
|
|
45
|
+
* Permission preset; restricted keys hold only the domains granted in access.
|
|
46
|
+
*/
|
|
47
|
+
exports.PermissionMode = {
|
|
48
|
+
All: "all",
|
|
49
|
+
Restricted: "restricted",
|
|
50
|
+
ReadOnly: "read_only",
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Origin of the key; router keys are minted for the AI router.
|
|
54
|
+
*/
|
|
55
|
+
exports.ApiKeyCreateSource = {
|
|
56
|
+
Workspace: "workspace",
|
|
57
|
+
Router: "router",
|
|
58
|
+
};
|
|
59
|
+
/** @internal */
|
|
60
|
+
exports.PermissionMode$outboundSchema = z.nativeEnum(exports.PermissionMode);
|
|
48
61
|
/** @internal */
|
|
49
|
-
exports.
|
|
62
|
+
exports.ApiKeyCreateSource$outboundSchema = z.nativeEnum(exports.ApiKeyCreateSource);
|
|
63
|
+
/** @internal */
|
|
64
|
+
exports.ApiKeyCreateRequestBody$outboundSchema = z.object({
|
|
65
|
+
access: z.record(z.string()).optional(),
|
|
66
|
+
constraints: components.Constraints$outboundSchema.optional(),
|
|
67
|
+
expiration: z.date().transform(v => v.toISOString()).optional(),
|
|
50
68
|
name: z.string(),
|
|
51
|
-
owner:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
mcpAccess: mcpaccess_js_1.McpAccess$outboundSchema.optional(),
|
|
57
|
-
labels: z.record(z.string()).optional(),
|
|
69
|
+
owner: components.Owner$outboundSchema.optional(),
|
|
70
|
+
permissionMode: exports.PermissionMode$outboundSchema.optional(),
|
|
71
|
+
projectScope: components.ProjectScope$outboundSchema.optional(),
|
|
72
|
+
projects: z.nullable(z.array(z.string())).optional(),
|
|
73
|
+
source: exports.ApiKeyCreateSource$outboundSchema.optional(),
|
|
58
74
|
}).transform((v) => {
|
|
59
75
|
return (0, primitives_js_1.remap)(v, {
|
|
60
|
-
projectScope: "project_scope",
|
|
61
76
|
permissionMode: "permission_mode",
|
|
62
|
-
|
|
63
|
-
mcpAccess: "mcp_access",
|
|
77
|
+
projectScope: "project_scope",
|
|
64
78
|
});
|
|
65
79
|
});
|
|
66
|
-
function
|
|
67
|
-
return JSON.stringify(exports.
|
|
80
|
+
function apiKeyCreateRequestBodyToJSON(apiKeyCreateRequestBody) {
|
|
81
|
+
return JSON.stringify(exports.ApiKeyCreateRequestBody$outboundSchema.parse(apiKeyCreateRequestBody));
|
|
68
82
|
}
|
|
69
|
-
//# sourceMappingURL=
|
|
83
|
+
//# sourceMappingURL=apikeycreate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apikeycreate.js","sourceRoot":"","sources":["../../src/models/operations/apikeycreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2GH,sEAMC;AA/GD,0CAA4B;AAC5B,2DAA0D;AAE1D,mEAAqD;AAErD;;GAEG;AACU,QAAA,cAAc,GAAG;IAC5B,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,WAAW;CACb,CAAC;AAMX;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;CACR,CAAC;AAoCX,gBAAgB;AACH,QAAA,6BAA6B,GAEtC,CAAC,CAAC,UAAU,CAAC,sBAAc,CAAC,CAAC;AAEjC,gBAAgB;AACH,QAAA,iCAAiC,GAE1C,CAAC,CAAC,UAAU,CAAC,0BAAkB,CAAC,CAAC;AAerC,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,WAAW,EAAE,UAAU,CAAC,0BAA0B,CAAC,QAAQ,EAAE;IAC7D,UAAU,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,UAAU,CAAC,oBAAoB,CAAC,QAAQ,EAAE;IACjD,cAAc,EAAE,qCAA6B,CAAC,QAAQ,EAAE;IACxD,YAAY,EAAE,UAAU,CAAC,2BAA2B,CAAC,QAAQ,EAAE;IAC/D,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IACpD,MAAM,EAAE,yCAAiC,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;QACjC,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,8CAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC"}
|
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
2
|
export type ApiKeyGetRequest = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Unique identifier of the API key.
|
|
5
5
|
*/
|
|
6
6
|
apiKeyId: string;
|
|
7
|
-
/**
|
|
8
|
-
* When true, embed the api-key-scoped budget (config and limits only,
|
|
9
|
-
*
|
|
10
|
-
* @remarks
|
|
11
|
-
* no live usage) on the returned record.
|
|
12
|
-
*/
|
|
13
|
-
includeBudget?: boolean | undefined;
|
|
14
7
|
};
|
|
15
8
|
/** @internal */
|
|
16
9
|
export type ApiKeyGetRequest$Outbound = {
|
|
17
10
|
api_key_id: string;
|
|
18
|
-
include_budget?: boolean | undefined;
|
|
19
11
|
};
|
|
20
12
|
/** @internal */
|
|
21
13
|
export declare const ApiKeyGetRequest$outboundSchema: z.ZodType<ApiKeyGetRequest$Outbound, z.ZodTypeDef, ApiKeyGetRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikeyget.d.ts","sourceRoot":"","sources":["../../src/models/operations/apikeyget.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"apikeyget.d.ts","sourceRoot":"","sources":["../../src/models/operations/apikeyget.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GAAG;IACtC,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAOhB,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR"}
|
|
@@ -43,11 +43,9 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
43
43
|
/** @internal */
|
|
44
44
|
exports.ApiKeyGetRequest$outboundSchema = z.object({
|
|
45
45
|
apiKeyId: z.string(),
|
|
46
|
-
includeBudget: z.boolean().optional(),
|
|
47
46
|
}).transform((v) => {
|
|
48
47
|
return (0, primitives_js_1.remap)(v, {
|
|
49
48
|
apiKeyId: "api_key_id",
|
|
50
|
-
includeBudget: "include_budget",
|
|
51
49
|
});
|
|
52
50
|
});
|
|
53
51
|
function apiKeyGetRequestToJSON(apiKeyGetRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikeyget.js","sourceRoot":"","sources":["../../src/models/operations/apikeyget.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"apikeyget.js","sourceRoot":"","sources":["../../src/models/operations/apikeyget.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,wDAMC;AAlCD,0CAA4B;AAC5B,2DAA0D;AAc1D,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,YAAY;KACvB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,uCAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -1,79 +1,32 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
-
import
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Only return keys of this source.
|
|
5
|
+
*/
|
|
6
|
+
export declare const QueryParamSource: {
|
|
7
|
+
readonly Workspace: "workspace";
|
|
8
|
+
readonly Router: "router";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Only return keys of this source.
|
|
12
|
+
*/
|
|
13
|
+
export type QueryParamSource = ClosedEnum<typeof QueryParamSource>;
|
|
3
14
|
export type ApiKeyListRequest = {
|
|
4
15
|
/**
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
limit?: number | undefined;
|
|
8
|
-
/**
|
|
9
|
-
* Cursor for forward pagination. Set to the `api_key_id` of the last
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* item from the previous page.
|
|
13
|
-
*/
|
|
14
|
-
startingAfter?: string | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* Cursor for backward pagination. Set to the `api_key_id` of the
|
|
17
|
-
*
|
|
18
|
-
* @remarks
|
|
19
|
-
* first item from the previous page.
|
|
20
|
-
*/
|
|
21
|
-
endingBefore?: string | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* Optional filter: only return keys belonging to this project. When
|
|
24
|
-
*
|
|
25
|
-
* @remarks
|
|
26
|
-
* omitted, returns workspace-scoped and any single-project keys.
|
|
16
|
+
* Only return keys bound to this project. When omitted, every key visible to the caller is returned.
|
|
27
17
|
*/
|
|
28
18
|
projectId?: string | undefined;
|
|
29
19
|
/**
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
status?: components.ApiKeyStatus | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* Optional case-insensitive substring match against the api-key
|
|
35
|
-
*
|
|
36
|
-
* @remarks
|
|
37
|
-
* name. Empty means no name filter.
|
|
38
|
-
*/
|
|
39
|
-
search?: string | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* Optional filter: only return keys whose `owner.kind` matches
|
|
42
|
-
*
|
|
43
|
-
* @remarks
|
|
44
|
-
* one of the requested types. Combines the user / service-account
|
|
45
|
-
* oneof cases into a single repeated enum so the wire stays flat
|
|
46
|
-
* and multi-select filters travel as a single field. Empty means
|
|
47
|
-
* no owner-type filter.
|
|
48
|
-
*/
|
|
49
|
-
ownerType?: Array<components.OwnerType> | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* Optional filter: only return keys whose permission mode is one
|
|
52
|
-
*
|
|
53
|
-
* @remarks
|
|
54
|
-
* of the listed presets. Empty means no permission-mode filter.
|
|
55
|
-
*/
|
|
56
|
-
permissionMode?: Array<components.PermissionMode> | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* When true, embed each key's api-key-scoped budget (config and limits
|
|
59
|
-
*
|
|
60
|
-
* @remarks
|
|
61
|
-
* only, no live usage) on the returned records. Adds one budget lookup
|
|
62
|
-
* for the page; omit to skip it.
|
|
20
|
+
* Only return keys of this source.
|
|
63
21
|
*/
|
|
64
|
-
|
|
22
|
+
source?: QueryParamSource | undefined;
|
|
65
23
|
};
|
|
66
24
|
/** @internal */
|
|
25
|
+
export declare const QueryParamSource$outboundSchema: z.ZodNativeEnum<typeof QueryParamSource>;
|
|
26
|
+
/** @internal */
|
|
67
27
|
export type ApiKeyListRequest$Outbound = {
|
|
68
|
-
limit?: number | undefined;
|
|
69
|
-
starting_after?: string | undefined;
|
|
70
|
-
ending_before?: string | undefined;
|
|
71
28
|
project_id?: string | undefined;
|
|
72
|
-
|
|
73
|
-
search?: string | undefined;
|
|
74
|
-
owner_type?: Array<string> | undefined;
|
|
75
|
-
permission_mode?: Array<string> | undefined;
|
|
76
|
-
include_budget?: boolean | undefined;
|
|
29
|
+
source?: string | undefined;
|
|
77
30
|
};
|
|
78
31
|
/** @internal */
|
|
79
32
|
export declare const ApiKeyListRequest$outboundSchema: z.ZodType<ApiKeyListRequest$Outbound, z.ZodTypeDef, ApiKeyListRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikeylist.d.ts","sourceRoot":"","sources":["../../src/models/operations/apikeylist.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,
|
|
1
|
+
{"version":3,"file":"apikeylist.d.ts","sourceRoot":"","sources":["../../src/models/operations/apikeylist.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,gBAAgB,CACS,CAAC;AAEnC,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAQjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
|
|
@@ -36,30 +36,26 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ApiKeyListRequest$outboundSchema = void 0;
|
|
39
|
+
exports.ApiKeyListRequest$outboundSchema = exports.QueryParamSource$outboundSchema = exports.QueryParamSource = void 0;
|
|
40
40
|
exports.apiKeyListRequestToJSON = apiKeyListRequestToJSON;
|
|
41
41
|
const z = __importStar(require("zod/v3"));
|
|
42
42
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Only return keys of this source.
|
|
45
|
+
*/
|
|
46
|
+
exports.QueryParamSource = {
|
|
47
|
+
Workspace: "workspace",
|
|
48
|
+
Router: "router",
|
|
49
|
+
};
|
|
50
|
+
/** @internal */
|
|
51
|
+
exports.QueryParamSource$outboundSchema = z.nativeEnum(exports.QueryParamSource);
|
|
44
52
|
/** @internal */
|
|
45
53
|
exports.ApiKeyListRequest$outboundSchema = z.object({
|
|
46
|
-
limit: z.number().int().optional(),
|
|
47
|
-
startingAfter: z.string().optional(),
|
|
48
|
-
endingBefore: z.string().optional(),
|
|
49
54
|
projectId: z.string().optional(),
|
|
50
|
-
|
|
51
|
-
search: z.string().optional(),
|
|
52
|
-
ownerType: z.array(components.OwnerType$outboundSchema).optional(),
|
|
53
|
-
permissionMode: z.array(components.PermissionMode$outboundSchema).optional(),
|
|
54
|
-
includeBudget: z.boolean().optional(),
|
|
55
|
+
source: exports.QueryParamSource$outboundSchema.optional(),
|
|
55
56
|
}).transform((v) => {
|
|
56
57
|
return (0, primitives_js_1.remap)(v, {
|
|
57
|
-
startingAfter: "starting_after",
|
|
58
|
-
endingBefore: "ending_before",
|
|
59
58
|
projectId: "project_id",
|
|
60
|
-
ownerType: "owner_type",
|
|
61
|
-
permissionMode: "permission_mode",
|
|
62
|
-
includeBudget: "include_budget",
|
|
63
59
|
});
|
|
64
60
|
});
|
|
65
61
|
function apiKeyListRequestToJSON(apiKeyListRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikeylist.js","sourceRoot":"","sources":["../../src/models/operations/apikeylist.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"apikeylist.js","sourceRoot":"","sources":["../../src/models/operations/apikeylist.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDH,0DAMC;AA1DD,0CAA4B;AAC5B,2DAA0D;AAG1D;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;CACR,CAAC;AAiBX,gBAAgB;AACH,QAAA,+BAA+B,GAExC,CAAC,CAAC,UAAU,CAAC,wBAAgB,CAAC,CAAC;AAQnC,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,MAAM,EAAE,uCAA+B,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import * as components from "../components/index.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
/**
|
|
6
|
+
* The capability catalog
|
|
7
|
+
*/
|
|
8
|
+
export type ApiKeyListCapabilitiesResponseBody = {
|
|
9
|
+
/**
|
|
10
|
+
* Full capability catalog. Order is stable: workspace-admin first, then platform, then gateway.
|
|
11
|
+
*/
|
|
12
|
+
domains: Array<components.Domain> | null;
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const ApiKeyListCapabilitiesResponseBody$inboundSchema: z.ZodType<ApiKeyListCapabilitiesResponseBody, z.ZodTypeDef, unknown>;
|
|
16
|
+
export declare function apiKeyListCapabilitiesResponseBodyFromJSON(jsonString: string): SafeParseResult<ApiKeyListCapabilitiesResponseBody, SDKValidationError>;
|
|
17
|
+
//# sourceMappingURL=apikeylistcapabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apikeylistcapabilities.d.ts","sourceRoot":"","sources":["../../src/models/operations/apikeylistcapabilities.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,OAAO,CACtE,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,wBAAgB,0CAA0C,CACxD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kCAAkC,EAAE,kBAAkB,CAAC,CAOzE"}
|
package/models/{components/listcapabilitiesresponse.js → operations/apikeylistcapabilities.js}
RENAMED
|
@@ -36,16 +36,16 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
39
|
+
exports.ApiKeyListCapabilitiesResponseBody$inboundSchema = void 0;
|
|
40
|
+
exports.apiKeyListCapabilitiesResponseBodyFromJSON = apiKeyListCapabilitiesResponseBodyFromJSON;
|
|
41
41
|
const z = __importStar(require("zod/v3"));
|
|
42
42
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
43
|
-
const
|
|
43
|
+
const components = __importStar(require("../components/index.js"));
|
|
44
44
|
/** @internal */
|
|
45
|
-
exports.
|
|
46
|
-
domains: z.array(
|
|
45
|
+
exports.ApiKeyListCapabilitiesResponseBody$inboundSchema = z.object({
|
|
46
|
+
domains: z.nullable(z.array(components.Domain$inboundSchema)),
|
|
47
47
|
});
|
|
48
|
-
function
|
|
49
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
48
|
+
function apiKeyListCapabilitiesResponseBodyFromJSON(jsonString) {
|
|
49
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ApiKeyListCapabilitiesResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ApiKeyListCapabilitiesResponseBody' from JSON`);
|
|
50
50
|
}
|
|
51
|
-
//# sourceMappingURL=
|
|
51
|
+
//# sourceMappingURL=apikeylistcapabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apikeylistcapabilities.js","sourceRoot":"","sources":["../../src/models/operations/apikeylistcapabilities.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BH,gGASC;AAlCD,0CAA4B;AAC5B,qDAAiD;AAEjD,mEAAqD;AAarD,gBAAgB;AACH,QAAA,gDAAgD,GAIzD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;CAC9D,CAAC,CAAC;AAEH,SAAgB,0CAA0C,CACxD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,wDAAgD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,gEAAgE,CACjE,CAAC;AACJ,CAAC"}
|
|
@@ -1,16 +1,86 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
2
3
|
import * as components from "../components/index.js";
|
|
4
|
+
/**
|
|
5
|
+
* Permission preset; a restricted key must keep at least one granted domain.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ApiKeyUpdatePermissionMode: {
|
|
8
|
+
readonly All: "all";
|
|
9
|
+
readonly Restricted: "restricted";
|
|
10
|
+
readonly ReadOnly: "read_only";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Permission preset; a restricted key must keep at least one granted domain.
|
|
14
|
+
*/
|
|
15
|
+
export type ApiKeyUpdatePermissionMode = ClosedEnum<typeof ApiKeyUpdatePermissionMode>;
|
|
16
|
+
/**
|
|
17
|
+
* Lifecycle status; revoked is terminal.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Status: {
|
|
20
|
+
readonly Active: "active";
|
|
21
|
+
readonly Disabled: "disabled";
|
|
22
|
+
readonly Revoked: "revoked";
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Lifecycle status; revoked is terminal.
|
|
26
|
+
*/
|
|
27
|
+
export type Status = ClosedEnum<typeof Status>;
|
|
28
|
+
export type ApiKeyUpdateRequestBody = {
|
|
29
|
+
/**
|
|
30
|
+
* Per-domain access level (none, read or write) for restricted keys.
|
|
31
|
+
*/
|
|
32
|
+
access?: {
|
|
33
|
+
[k: string]: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Legacy toggle mirrored onto status: false disables, true re-enables.
|
|
37
|
+
*/
|
|
38
|
+
active?: boolean | undefined;
|
|
39
|
+
constraints?: components.Constraints | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* New display name.
|
|
42
|
+
*/
|
|
43
|
+
name?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Permission preset; a restricted key must keep at least one granted domain.
|
|
46
|
+
*/
|
|
47
|
+
permissionMode?: ApiKeyUpdatePermissionMode | undefined;
|
|
48
|
+
projectScope?: components.ProjectScope | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Lifecycle status; revoked is terminal.
|
|
51
|
+
*/
|
|
52
|
+
status?: Status | undefined;
|
|
53
|
+
};
|
|
3
54
|
export type ApiKeyUpdateRequest = {
|
|
4
55
|
/**
|
|
5
|
-
*
|
|
56
|
+
* Unique identifier of the API key.
|
|
6
57
|
*/
|
|
7
58
|
apiKeyId: string;
|
|
8
|
-
|
|
59
|
+
requestBody: ApiKeyUpdateRequestBody;
|
|
9
60
|
};
|
|
10
61
|
/** @internal */
|
|
62
|
+
export declare const ApiKeyUpdatePermissionMode$outboundSchema: z.ZodNativeEnum<typeof ApiKeyUpdatePermissionMode>;
|
|
63
|
+
/** @internal */
|
|
64
|
+
export declare const Status$outboundSchema: z.ZodNativeEnum<typeof Status>;
|
|
65
|
+
/** @internal */
|
|
66
|
+
export type ApiKeyUpdateRequestBody$Outbound = {
|
|
67
|
+
access?: {
|
|
68
|
+
[k: string]: string;
|
|
69
|
+
} | undefined;
|
|
70
|
+
active?: boolean | undefined;
|
|
71
|
+
constraints?: components.Constraints$Outbound | undefined;
|
|
72
|
+
name?: string | undefined;
|
|
73
|
+
permission_mode?: string | undefined;
|
|
74
|
+
project_scope?: components.ProjectScope$Outbound | undefined;
|
|
75
|
+
status?: string | undefined;
|
|
76
|
+
};
|
|
77
|
+
/** @internal */
|
|
78
|
+
export declare const ApiKeyUpdateRequestBody$outboundSchema: z.ZodType<ApiKeyUpdateRequestBody$Outbound, z.ZodTypeDef, ApiKeyUpdateRequestBody>;
|
|
79
|
+
export declare function apiKeyUpdateRequestBodyToJSON(apiKeyUpdateRequestBody: ApiKeyUpdateRequestBody): string;
|
|
80
|
+
/** @internal */
|
|
11
81
|
export type ApiKeyUpdateRequest$Outbound = {
|
|
12
82
|
api_key_id: string;
|
|
13
|
-
|
|
83
|
+
RequestBody: ApiKeyUpdateRequestBody$Outbound;
|
|
14
84
|
};
|
|
15
85
|
/** @internal */
|
|
16
86
|
export declare const ApiKeyUpdateRequest$outboundSchema: z.ZodType<ApiKeyUpdateRequest$Outbound, z.ZodTypeDef, ApiKeyUpdateRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikeyupdate.d.ts","sourceRoot":"","sources":["../../src/models/operations/apikeyupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,
|
|
1
|
+
{"version":3,"file":"apikeyupdate.d.ts","sourceRoot":"","sources":["../../src/models/operations/apikeyupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;CAI7B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,UAAU,CACjD,OAAO,0BAA0B,CAClC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;;;;CAIT,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAE/C,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAC7C;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,WAAW,CAAC,EAAE,UAAU,CAAC,WAAW,GAAG,SAAS,CAAC;IACjD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,cAAc,CAAC,EAAE,0BAA0B,GAAG,SAAS,CAAC;IACxD,YAAY,CAAC,EAAE,UAAU,CAAC,YAAY,GAAG,SAAS,CAAC;IACnD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,uBAAuB,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,aAAa,CACrE,OAAO,0BAA0B,CACS,CAAC;AAE7C,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,MAAM,CAC5C,CAAC;AAEtB,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GAAG;IAC7C,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAC7C,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,WAAW,CAAC,EAAE,UAAU,CAAC,oBAAoB,GAAG,SAAS,CAAC;IAC1D,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,aAAa,CAAC,EAAE,UAAU,CAAC,qBAAqB,GAAG,SAAS,CAAC;IAC7D,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CAcvB,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AAED,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,gCAAgC,CAAC;CAC/C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CASnB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR"}
|
|
@@ -36,19 +36,59 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ApiKeyUpdateRequest$outboundSchema = void 0;
|
|
39
|
+
exports.ApiKeyUpdateRequest$outboundSchema = exports.ApiKeyUpdateRequestBody$outboundSchema = exports.Status$outboundSchema = exports.ApiKeyUpdatePermissionMode$outboundSchema = exports.Status = exports.ApiKeyUpdatePermissionMode = void 0;
|
|
40
|
+
exports.apiKeyUpdateRequestBodyToJSON = apiKeyUpdateRequestBodyToJSON;
|
|
40
41
|
exports.apiKeyUpdateRequestToJSON = apiKeyUpdateRequestToJSON;
|
|
41
42
|
const z = __importStar(require("zod/v3"));
|
|
42
43
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
44
|
const components = __importStar(require("../components/index.js"));
|
|
45
|
+
/**
|
|
46
|
+
* Permission preset; a restricted key must keep at least one granted domain.
|
|
47
|
+
*/
|
|
48
|
+
exports.ApiKeyUpdatePermissionMode = {
|
|
49
|
+
All: "all",
|
|
50
|
+
Restricted: "restricted",
|
|
51
|
+
ReadOnly: "read_only",
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Lifecycle status; revoked is terminal.
|
|
55
|
+
*/
|
|
56
|
+
exports.Status = {
|
|
57
|
+
Active: "active",
|
|
58
|
+
Disabled: "disabled",
|
|
59
|
+
Revoked: "revoked",
|
|
60
|
+
};
|
|
61
|
+
/** @internal */
|
|
62
|
+
exports.ApiKeyUpdatePermissionMode$outboundSchema = z.nativeEnum(exports.ApiKeyUpdatePermissionMode);
|
|
63
|
+
/** @internal */
|
|
64
|
+
exports.Status$outboundSchema = z
|
|
65
|
+
.nativeEnum(exports.Status);
|
|
66
|
+
/** @internal */
|
|
67
|
+
exports.ApiKeyUpdateRequestBody$outboundSchema = z.object({
|
|
68
|
+
access: z.record(z.string()).optional(),
|
|
69
|
+
active: z.boolean().optional(),
|
|
70
|
+
constraints: components.Constraints$outboundSchema.optional(),
|
|
71
|
+
name: z.string().optional(),
|
|
72
|
+
permissionMode: exports.ApiKeyUpdatePermissionMode$outboundSchema.optional(),
|
|
73
|
+
projectScope: components.ProjectScope$outboundSchema.optional(),
|
|
74
|
+
status: exports.Status$outboundSchema.optional(),
|
|
75
|
+
}).transform((v) => {
|
|
76
|
+
return (0, primitives_js_1.remap)(v, {
|
|
77
|
+
permissionMode: "permission_mode",
|
|
78
|
+
projectScope: "project_scope",
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
function apiKeyUpdateRequestBodyToJSON(apiKeyUpdateRequestBody) {
|
|
82
|
+
return JSON.stringify(exports.ApiKeyUpdateRequestBody$outboundSchema.parse(apiKeyUpdateRequestBody));
|
|
83
|
+
}
|
|
44
84
|
/** @internal */
|
|
45
85
|
exports.ApiKeyUpdateRequest$outboundSchema = z.object({
|
|
46
86
|
apiKeyId: z.string(),
|
|
47
|
-
|
|
87
|
+
requestBody: z.lazy(() => exports.ApiKeyUpdateRequestBody$outboundSchema),
|
|
48
88
|
}).transform((v) => {
|
|
49
89
|
return (0, primitives_js_1.remap)(v, {
|
|
50
90
|
apiKeyId: "api_key_id",
|
|
51
|
-
|
|
91
|
+
requestBody: "RequestBody",
|
|
52
92
|
});
|
|
53
93
|
});
|
|
54
94
|
function apiKeyUpdateRequestToJSON(apiKeyUpdateRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikeyupdate.js","sourceRoot":"","sources":["../../src/models/operations/apikeyupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"apikeyupdate.js","sourceRoot":"","sources":["../../src/models/operations/apikeyupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4GH,sEAMC;AAuBD,8DAMC;AA7ID,0CAA4B;AAC5B,2DAA0D;AAE1D,mEAAqD;AAErD;;GAEG;AACU,QAAA,0BAA0B,GAAG;IACxC,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,WAAW;CACb,CAAC;AAQX;;GAEG;AACU,QAAA,MAAM,GAAG;IACpB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;CACV,CAAC;AAuCX,gBAAgB;AACH,QAAA,yCAAyC,GAElD,CAAC,CAAC,UAAU,CAAC,kCAA0B,CAAC,CAAC;AAE7C,gBAAgB;AACH,QAAA,qBAAqB,GAAmC,CAAC;KACnE,UAAU,CAAC,cAAM,CAAC,CAAC;AAatB,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,WAAW,EAAE,UAAU,CAAC,0BAA0B,CAAC,QAAQ,EAAE;IAC7D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,cAAc,EAAE,iDAAyC,CAAC,QAAQ,EAAE;IACpE,YAAY,EAAE,UAAU,CAAC,2BAA2B,CAAC,QAAQ,EAAE;IAC/D,MAAM,EAAE,6BAAqB,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;QACjC,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,8CAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC;AAQD,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,8CAAsC,CAAC;CAClE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,YAAY;QACtB,WAAW,EAAE,aAAa;KAC3B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -93,7 +93,7 @@ export type CreateClassifyRequestBody = {
|
|
|
93
93
|
[k: string]: string;
|
|
94
94
|
} | undefined;
|
|
95
95
|
/**
|
|
96
|
-
* ID of the model to use: the native classify model typesafe/jev-latest, or a chat model that supports classify
|
|
96
|
+
* ID of the model to use: the native classify model typesafe/jev-latest, or a chat model that supports classify.
|
|
97
97
|
*/
|
|
98
98
|
model: string;
|
|
99
99
|
/**
|
|
@@ -125,7 +125,7 @@ export type CreateClassifyResponseBody = {
|
|
|
125
125
|
[k: string]: components.ClassifyAnswer;
|
|
126
126
|
};
|
|
127
127
|
/**
|
|
128
|
-
* The model ID from the request
|
|
128
|
+
* The model ID from the request.
|
|
129
129
|
*/
|
|
130
130
|
model: string;
|
|
131
131
|
telemetry?: components.ResponseTelemetry | undefined;
|
|
@@ -324,7 +324,7 @@ export type InputRole = ClosedEnum<typeof InputRole>;
|
|
|
324
324
|
/**
|
|
325
325
|
* The status of a model-generated input item.
|
|
326
326
|
*/
|
|
327
|
-
export declare const
|
|
327
|
+
export declare const InputStatus: {
|
|
328
328
|
readonly InProgress: "in_progress";
|
|
329
329
|
readonly Completed: "completed";
|
|
330
330
|
readonly Incomplete: "incomplete";
|
|
@@ -332,7 +332,7 @@ export declare const Status: {
|
|
|
332
332
|
/**
|
|
333
333
|
* The status of a model-generated input item.
|
|
334
334
|
*/
|
|
335
|
-
export type
|
|
335
|
+
export type InputStatus = ClosedEnum<typeof InputStatus>;
|
|
336
336
|
/**
|
|
337
337
|
* The type of item.
|
|
338
338
|
*/
|
|
@@ -411,7 +411,7 @@ export type CreateRouterResponseInput2 = {
|
|
|
411
411
|
/**
|
|
412
412
|
* The status of a model-generated input item.
|
|
413
413
|
*/
|
|
414
|
-
status?:
|
|
414
|
+
status?: InputStatus | undefined;
|
|
415
415
|
/**
|
|
416
416
|
* The type of item.
|
|
417
417
|
*/
|
|
@@ -1196,7 +1196,7 @@ export declare function reasoningToJSON(reasoning: Reasoning): string;
|
|
|
1196
1196
|
/** @internal */
|
|
1197
1197
|
export declare const InputRole$outboundSchema: z.ZodNativeEnum<typeof InputRole>;
|
|
1198
1198
|
/** @internal */
|
|
1199
|
-
export declare const
|
|
1199
|
+
export declare const InputStatus$outboundSchema: z.ZodNativeEnum<typeof InputStatus>;
|
|
1200
1200
|
/** @internal */
|
|
1201
1201
|
export declare const InputType$outboundSchema: z.ZodNativeEnum<typeof InputType>;
|
|
1202
1202
|
/** @internal */
|