@orq-ai/node 4.16.0-rc.13 → 4.16.0-rc.14
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 +1 -1
- 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
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.PermissionMode$outboundSchema = exports.PermissionMode = void 0;
|
|
40
|
-
const z = __importStar(require("zod/v3"));
|
|
41
|
-
exports.PermissionMode = {
|
|
42
|
-
PermissionModeUnspecified: "PERMISSION_MODE_UNSPECIFIED",
|
|
43
|
-
PermissionModeAll: "PERMISSION_MODE_ALL",
|
|
44
|
-
PermissionModeRestricted: "PERMISSION_MODE_RESTRICTED",
|
|
45
|
-
PermissionModeReadOnly: "PERMISSION_MODE_READ_ONLY",
|
|
46
|
-
};
|
|
47
|
-
/** @internal */
|
|
48
|
-
exports.PermissionMode$outboundSchema = z.nativeEnum(exports.PermissionMode);
|
|
49
|
-
//# sourceMappingURL=permissionmode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"permissionmode.js","sourceRoot":"","sources":["../../src/models/components/permissionmode.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAGf,QAAA,cAAc,GAAG;IAC5B,yBAAyB,EAAE,6BAA6B;IACxD,iBAAiB,EAAE,qBAAqB;IACxC,wBAAwB,EAAE,4BAA4B;IACtD,sBAAsB,EAAE,2BAA2B;CAC3C,CAAC;AAGX,gBAAgB;AACH,QAAA,6BAA6B,GAEtC,CAAC,CAAC,UAAU,CAAC,sBAAc,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
export declare const ScopeMode: {
|
|
4
|
-
readonly ScopeModeAll: "SCOPE_MODE_ALL";
|
|
5
|
-
readonly ScopeModeSingle: "SCOPE_MODE_SINGLE";
|
|
6
|
-
};
|
|
7
|
-
export type ScopeMode = ClosedEnum<typeof ScopeMode>;
|
|
8
|
-
/** @internal */
|
|
9
|
-
export declare const ScopeMode$inboundSchema: z.ZodNativeEnum<typeof ScopeMode>;
|
|
10
|
-
//# sourceMappingURL=scopemode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scopemode.d.ts","sourceRoot":"","sources":["../../src/models/components/scopemode.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAErD,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,SAAS,CAC9C,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ScopeMode$inboundSchema = exports.ScopeMode = void 0;
|
|
40
|
-
const z = __importStar(require("zod/v3"));
|
|
41
|
-
exports.ScopeMode = {
|
|
42
|
-
ScopeModeAll: "SCOPE_MODE_ALL",
|
|
43
|
-
ScopeModeSingle: "SCOPE_MODE_SINGLE",
|
|
44
|
-
};
|
|
45
|
-
/** @internal */
|
|
46
|
-
exports.ScopeMode$inboundSchema = z
|
|
47
|
-
.nativeEnum(exports.ScopeMode);
|
|
48
|
-
//# sourceMappingURL=scopemode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scopemode.js","sourceRoot":"","sources":["../../src/models/components/scopemode.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAGf,QAAA,SAAS,GAAG;IACvB,YAAY,EAAE,gBAAgB;IAC9B,eAAe,EAAE,mBAAmB;CAC5B,CAAC;AAGX,gBAAgB;AACH,QAAA,uBAAuB,GAAsC,CAAC;KACxE,UAAU,CAAC,iBAAS,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
export type ServiceAccountOwner = {};
|
|
3
|
-
/** @internal */
|
|
4
|
-
export type ServiceAccountOwner$Outbound = {};
|
|
5
|
-
/** @internal */
|
|
6
|
-
export declare const ServiceAccountOwner$outboundSchema: z.ZodType<ServiceAccountOwner$Outbound, z.ZodTypeDef, ServiceAccountOwner>;
|
|
7
|
-
export declare function serviceAccountOwnerToJSON(serviceAccountOwner: ServiceAccountOwner): string;
|
|
8
|
-
//# sourceMappingURL=serviceaccountowner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serviceaccountowner.d.ts","sourceRoot":"","sources":["../../src/models/components/serviceaccountowner.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAErC,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAE9C,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CACL,CAAC;AAEjB,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ServiceAccountOwner$outboundSchema = void 0;
|
|
40
|
-
exports.serviceAccountOwnerToJSON = serviceAccountOwnerToJSON;
|
|
41
|
-
const z = __importStar(require("zod/v3"));
|
|
42
|
-
/** @internal */
|
|
43
|
-
exports.ServiceAccountOwner$outboundSchema = z.object({});
|
|
44
|
-
function serviceAccountOwnerToJSON(serviceAccountOwner) {
|
|
45
|
-
return JSON.stringify(exports.ServiceAccountOwner$outboundSchema.parse(serviceAccountOwner));
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=serviceaccountowner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serviceaccountowner.js","sourceRoot":"","sources":["../../src/models/components/serviceaccountowner.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBH,8DAMC;AApBD,0CAA4B;AAO5B,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEjB,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
export type SingleProject = {
|
|
3
|
-
/**
|
|
4
|
-
* Project ID this API key is scoped to.
|
|
5
|
-
*/
|
|
6
|
-
projectId: string;
|
|
7
|
-
};
|
|
8
|
-
/** @internal */
|
|
9
|
-
export type SingleProject$Outbound = {
|
|
10
|
-
project_id: string;
|
|
11
|
-
};
|
|
12
|
-
/** @internal */
|
|
13
|
-
export declare const SingleProject$outboundSchema: z.ZodType<SingleProject$Outbound, z.ZodTypeDef, SingleProject>;
|
|
14
|
-
export declare function singleProjectToJSON(singleProject: SingleProject): string;
|
|
15
|
-
//# sourceMappingURL=singleproject.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"singleproject.d.ts","sourceRoot":"","sources":["../../src/models/components/singleproject.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,sBAAsB,GAAG;IACnC,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAOb,CAAC;AAEH,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"singleproject.js","sourceRoot":"","sources":["../../src/models/components/singleproject.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,kDAEC;AA9BD,0CAA4B;AAC5B,2DAA0D;AAc1D,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,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,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,oCAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { AccessLevel } from "./accesslevel.js";
|
|
3
|
-
import { ApiKeyStatus } from "./apikeystatus.js";
|
|
4
|
-
import { McpAccess, McpAccess$Outbound } from "./mcpaccess.js";
|
|
5
|
-
import { PermissionMode } from "./permissionmode.js";
|
|
6
|
-
import { ProjectScope, ProjectScope$Outbound } from "./projectscope.js";
|
|
7
|
-
export type UpdateApiKeyRequest = {
|
|
8
|
-
/**
|
|
9
|
-
* New name. Omit to keep current.
|
|
10
|
-
*/
|
|
11
|
-
name?: string | undefined;
|
|
12
|
-
status?: ApiKeyStatus | undefined;
|
|
13
|
-
permissionMode?: PermissionMode | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* Replacement access map. Required when changing to
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* `PERMISSION_MODE_RESTRICTED`; ignored otherwise. Provide an empty
|
|
19
|
-
* map to clear. See `ApiKey.access` for the full catalog of valid
|
|
20
|
-
* keys (Domain.id) and AccessLevel string values, or fetch the
|
|
21
|
-
* live catalog via the capability catalog endpoint.
|
|
22
|
-
*/
|
|
23
|
-
access?: {
|
|
24
|
-
[k: string]: AccessLevel;
|
|
25
|
-
} | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* New project scope. Omit to keep current.
|
|
28
|
-
*/
|
|
29
|
-
projectScope?: ProjectScope | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* New expiration. Omit to keep current. Set `clear_expires_at = true`
|
|
32
|
-
*
|
|
33
|
-
* @remarks
|
|
34
|
-
* to remove an existing expiration (a zero Timestamp here would still
|
|
35
|
-
* mean "no change" because of optional semantics).
|
|
36
|
-
*/
|
|
37
|
-
expiresAt?: Date | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* Force-clear the expiration. Mutually exclusive with `expires_at`.
|
|
40
|
-
*/
|
|
41
|
-
clearExpiresAt?: boolean | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Replacement MCP-gateway access restriction. Absent leaves the
|
|
44
|
-
*
|
|
45
|
-
* @remarks
|
|
46
|
-
* current value intact; an explicitly-set McpAccess replaces it —
|
|
47
|
-
* including an empty one (deny_all=false + empty list), which clears
|
|
48
|
-
* any existing restriction. See McpAccess.
|
|
49
|
-
*/
|
|
50
|
-
mcpAccess?: McpAccess | undefined;
|
|
51
|
-
};
|
|
52
|
-
/** @internal */
|
|
53
|
-
export type UpdateApiKeyRequest$Outbound = {
|
|
54
|
-
name?: string | undefined;
|
|
55
|
-
status?: string | undefined;
|
|
56
|
-
permission_mode?: string | undefined;
|
|
57
|
-
access?: {
|
|
58
|
-
[k: string]: string;
|
|
59
|
-
} | undefined;
|
|
60
|
-
project_scope?: ProjectScope$Outbound | undefined;
|
|
61
|
-
expires_at?: string | undefined;
|
|
62
|
-
clear_expires_at?: boolean | undefined;
|
|
63
|
-
mcp_access?: McpAccess$Outbound | undefined;
|
|
64
|
-
};
|
|
65
|
-
/** @internal */
|
|
66
|
-
export declare const UpdateApiKeyRequest$outboundSchema: z.ZodType<UpdateApiKeyRequest$Outbound, z.ZodTypeDef, UpdateApiKeyRequest>;
|
|
67
|
-
export declare function updateApiKeyRequestToJSON(updateApiKeyRequest: UpdateApiKeyRequest): string;
|
|
68
|
-
//# sourceMappingURL=updateapikeyrequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateapikeyrequest.d.ts","sourceRoot":"","sources":["../../src/models/components/updateapikeyrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,WAAW,EAA8B,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAA+B,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EACL,SAAS,EACT,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,YAAY,EACZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IAClC,cAAc,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IAC5C;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,WAAW,CAAA;KAAE,GAAG,SAAS,CAAC;IAClD;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACxC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAC7C,aAAa,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAClD,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,UAAU,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAkBnB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.UpdateApiKeyRequest$outboundSchema = void 0;
|
|
40
|
-
exports.updateApiKeyRequestToJSON = updateApiKeyRequestToJSON;
|
|
41
|
-
const z = __importStar(require("zod/v3"));
|
|
42
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
-
const accesslevel_js_1 = require("./accesslevel.js");
|
|
44
|
-
const apikeystatus_js_1 = require("./apikeystatus.js");
|
|
45
|
-
const mcpaccess_js_1 = require("./mcpaccess.js");
|
|
46
|
-
const permissionmode_js_1 = require("./permissionmode.js");
|
|
47
|
-
const projectscope_js_1 = require("./projectscope.js");
|
|
48
|
-
/** @internal */
|
|
49
|
-
exports.UpdateApiKeyRequest$outboundSchema = z.object({
|
|
50
|
-
name: z.string().optional(),
|
|
51
|
-
status: apikeystatus_js_1.ApiKeyStatus$outboundSchema.optional(),
|
|
52
|
-
permissionMode: permissionmode_js_1.PermissionMode$outboundSchema.optional(),
|
|
53
|
-
access: z.record(accesslevel_js_1.AccessLevel$outboundSchema).optional(),
|
|
54
|
-
projectScope: projectscope_js_1.ProjectScope$outboundSchema.optional(),
|
|
55
|
-
expiresAt: z.date().transform(v => v.toISOString()).optional(),
|
|
56
|
-
clearExpiresAt: z.boolean().optional(),
|
|
57
|
-
mcpAccess: mcpaccess_js_1.McpAccess$outboundSchema.optional(),
|
|
58
|
-
}).transform((v) => {
|
|
59
|
-
return (0, primitives_js_1.remap)(v, {
|
|
60
|
-
permissionMode: "permission_mode",
|
|
61
|
-
projectScope: "project_scope",
|
|
62
|
-
expiresAt: "expires_at",
|
|
63
|
-
clearExpiresAt: "clear_expires_at",
|
|
64
|
-
mcpAccess: "mcp_access",
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
function updateApiKeyRequestToJSON(updateApiKeyRequest) {
|
|
68
|
-
return JSON.stringify(exports.UpdateApiKeyRequest$outboundSchema.parse(updateApiKeyRequest));
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=updateapikeyrequest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateapikeyrequest.js","sourceRoot":"","sources":["../../src/models/components/updateapikeyrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGH,8DAMC;AAzGD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAA2E;AAC3E,uDAA8E;AAC9E,iDAIwB;AACxB,2DAG6B;AAC7B,uDAI2B;AA0D3B,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,6CAA2B,CAAC,QAAQ,EAAE;IAC9C,cAAc,EAAE,iDAA6B,CAAC,QAAQ,EAAE;IACxD,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,2CAA0B,CAAC,CAAC,QAAQ,EAAE;IACvD,YAAY,EAAE,6CAA2B,CAAC,QAAQ,EAAE;IACpD,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9D,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACtC,SAAS,EAAE,uCAAwB,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;QACjC,YAAY,EAAE,eAAe;QAC7B,SAAS,EAAE,YAAY;QACvB,cAAc,EAAE,kBAAkB;QAClC,SAAS,EAAE,YAAY;KACxB,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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
export type UserOwner = {
|
|
3
|
-
/**
|
|
4
|
-
* User ID that owns the API key.
|
|
5
|
-
*/
|
|
6
|
-
userId: string;
|
|
7
|
-
};
|
|
8
|
-
/** @internal */
|
|
9
|
-
export type UserOwner$Outbound = {
|
|
10
|
-
user_id: string;
|
|
11
|
-
};
|
|
12
|
-
/** @internal */
|
|
13
|
-
export declare const UserOwner$outboundSchema: z.ZodType<UserOwner$Outbound, z.ZodTypeDef, UserOwner>;
|
|
14
|
-
export declare function userOwnerToJSON(userOwner: UserOwner): string;
|
|
15
|
-
//# sourceMappingURL=userowner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userowner.d.ts","sourceRoot":"","sources":["../../src/models/components/userowner.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,SAAS,CAOT,CAAC;AAEH,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAE5D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userowner.js","sourceRoot":"","sources":["../../src/models/components/userowner.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,0CAEC;AA9BD,0CAA4B;AAC5B,2DAA0D;AAc1D,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,MAAM,EAAE,SAAS;KAClB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,eAAe,CAAC,SAAoB;IAClD,OAAO,IAAI,CAAC,SAAS,CAAC,gCAAwB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;AACnE,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
|
|
7
|
-
export type AllProjects = {};
|
|
8
|
-
|
|
9
|
-
/** @internal */
|
|
10
|
-
export type AllProjects$Outbound = {};
|
|
11
|
-
|
|
12
|
-
/** @internal */
|
|
13
|
-
export const AllProjects$outboundSchema: z.ZodType<
|
|
14
|
-
AllProjects$Outbound,
|
|
15
|
-
z.ZodTypeDef,
|
|
16
|
-
AllProjects
|
|
17
|
-
> = z.object({});
|
|
18
|
-
|
|
19
|
-
export function allProjectsToJSON(allProjects: AllProjects): string {
|
|
20
|
-
return JSON.stringify(AllProjects$outboundSchema.parse(allProjects));
|
|
21
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import {
|
|
8
|
-
ServiceAccountOwner,
|
|
9
|
-
ServiceAccountOwner$Outbound,
|
|
10
|
-
ServiceAccountOwner$outboundSchema,
|
|
11
|
-
} from "./serviceaccountowner.js";
|
|
12
|
-
import {
|
|
13
|
-
UserOwner,
|
|
14
|
-
UserOwner$Outbound,
|
|
15
|
-
UserOwner$outboundSchema,
|
|
16
|
-
} from "./userowner.js";
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Owner attribution drives lifecycle.
|
|
20
|
-
*
|
|
21
|
-
* @remarks
|
|
22
|
-
*
|
|
23
|
-
* `service_account` keys are workspace-owned and outlive any individual
|
|
24
|
-
* user. `user` keys are bound to `user_id`: when the user is removed,
|
|
25
|
-
* disabled, or loses project access, the key is revoked / its scope
|
|
26
|
-
* shrinks accordingly.
|
|
27
|
-
*/
|
|
28
|
-
export type ApiKeyOwner = {
|
|
29
|
-
user?: UserOwner | undefined;
|
|
30
|
-
serviceAccount?: ServiceAccountOwner | undefined;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/** @internal */
|
|
34
|
-
export type ApiKeyOwner$Outbound = {
|
|
35
|
-
user?: UserOwner$Outbound | undefined;
|
|
36
|
-
service_account?: ServiceAccountOwner$Outbound | undefined;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
/** @internal */
|
|
40
|
-
export const ApiKeyOwner$outboundSchema: z.ZodType<
|
|
41
|
-
ApiKeyOwner$Outbound,
|
|
42
|
-
z.ZodTypeDef,
|
|
43
|
-
ApiKeyOwner
|
|
44
|
-
> = z.object({
|
|
45
|
-
user: UserOwner$outboundSchema.optional(),
|
|
46
|
-
serviceAccount: ServiceAccountOwner$outboundSchema.optional(),
|
|
47
|
-
}).transform((v) => {
|
|
48
|
-
return remap$(v, {
|
|
49
|
-
serviceAccount: "service_account",
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
export function apiKeyOwnerToJSON(apiKeyOwner: ApiKeyOwner): string {
|
|
54
|
-
return JSON.stringify(ApiKeyOwner$outboundSchema.parse(apiKeyOwner));
|
|
55
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
-
|
|
8
|
-
export const ApiKeyStatus = {
|
|
9
|
-
ApiKeyStatusUnspecified: "API_KEY_STATUS_UNSPECIFIED",
|
|
10
|
-
ApiKeyStatusActive: "API_KEY_STATUS_ACTIVE",
|
|
11
|
-
ApiKeyStatusDisabled: "API_KEY_STATUS_DISABLED",
|
|
12
|
-
ApiKeyStatusRevoked: "API_KEY_STATUS_REVOKED",
|
|
13
|
-
} as const;
|
|
14
|
-
export type ApiKeyStatus = ClosedEnum<typeof ApiKeyStatus>;
|
|
15
|
-
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const ApiKeyStatus$outboundSchema: z.ZodNativeEnum<typeof ApiKeyStatus> =
|
|
18
|
-
z.nativeEnum(ApiKeyStatus);
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { AccessLevel, AccessLevel$outboundSchema } from "./accesslevel.js";
|
|
8
|
-
import {
|
|
9
|
-
ApiKeyOwner,
|
|
10
|
-
ApiKeyOwner$Outbound,
|
|
11
|
-
ApiKeyOwner$outboundSchema,
|
|
12
|
-
} from "./apikeyowner.js";
|
|
13
|
-
import {
|
|
14
|
-
McpAccess,
|
|
15
|
-
McpAccess$Outbound,
|
|
16
|
-
McpAccess$outboundSchema,
|
|
17
|
-
} from "./mcpaccess.js";
|
|
18
|
-
import {
|
|
19
|
-
PermissionMode,
|
|
20
|
-
PermissionMode$outboundSchema,
|
|
21
|
-
} from "./permissionmode.js";
|
|
22
|
-
import {
|
|
23
|
-
ProjectScope,
|
|
24
|
-
ProjectScope$Outbound,
|
|
25
|
-
ProjectScope$outboundSchema,
|
|
26
|
-
} from "./projectscope.js";
|
|
27
|
-
|
|
28
|
-
export type CreateApiKeyRequest = {
|
|
29
|
-
/**
|
|
30
|
-
* Human-readable name. Required.
|
|
31
|
-
*/
|
|
32
|
-
name: string;
|
|
33
|
-
/**
|
|
34
|
-
* Owner attribution. Defaults to service_account when omitted.
|
|
35
|
-
*/
|
|
36
|
-
owner?: ApiKeyOwner | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* Project authorization scope. Defaults to all-projects when omitted.
|
|
39
|
-
*/
|
|
40
|
-
projectScope?: ProjectScope | undefined;
|
|
41
|
-
permissionMode: PermissionMode;
|
|
42
|
-
/**
|
|
43
|
-
* Per-domain access map. Required when `permission_mode` =
|
|
44
|
-
*
|
|
45
|
-
* @remarks
|
|
46
|
-
* `PERMISSION_MODE_RESTRICTED`. See `ApiKey.access` for the full
|
|
47
|
-
* catalog of valid keys (Domain.id) and AccessLevel string values,
|
|
48
|
-
* or fetch the live catalog via the capability catalog endpoint.
|
|
49
|
-
*/
|
|
50
|
-
access?: { [k: string]: AccessLevel } | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Optional expiration. When set, the authenticate hot-path rejects
|
|
53
|
-
*
|
|
54
|
-
* @remarks
|
|
55
|
-
* the key once `expires_at` is in the past. Unset means the key
|
|
56
|
-
* never expires.
|
|
57
|
-
*/
|
|
58
|
-
expiresAt?: Date | undefined;
|
|
59
|
-
/**
|
|
60
|
-
* Optional MCP-gateway access restriction. Unset means no
|
|
61
|
-
*
|
|
62
|
-
* @remarks
|
|
63
|
-
* restriction. See McpAccess for the deny_all / allow-list semantics.
|
|
64
|
-
*/
|
|
65
|
-
mcpAccess?: McpAccess | undefined;
|
|
66
|
-
/**
|
|
67
|
-
* Optional attribution labels (at most 10; keys `^[a-z0-9_.-]{1,32}$`,
|
|
68
|
-
*
|
|
69
|
-
* @remarks
|
|
70
|
-
* values up to 64 characters). See ApiKey.labels.
|
|
71
|
-
*/
|
|
72
|
-
labels?: { [k: string]: string } | undefined;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
/** @internal */
|
|
76
|
-
export type CreateApiKeyRequest$Outbound = {
|
|
77
|
-
name: string;
|
|
78
|
-
owner?: ApiKeyOwner$Outbound | undefined;
|
|
79
|
-
project_scope?: ProjectScope$Outbound | undefined;
|
|
80
|
-
permission_mode: string;
|
|
81
|
-
access?: { [k: string]: string } | undefined;
|
|
82
|
-
expires_at?: string | undefined;
|
|
83
|
-
mcp_access?: McpAccess$Outbound | undefined;
|
|
84
|
-
labels?: { [k: string]: string } | undefined;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
/** @internal */
|
|
88
|
-
export const CreateApiKeyRequest$outboundSchema: z.ZodType<
|
|
89
|
-
CreateApiKeyRequest$Outbound,
|
|
90
|
-
z.ZodTypeDef,
|
|
91
|
-
CreateApiKeyRequest
|
|
92
|
-
> = z.object({
|
|
93
|
-
name: z.string(),
|
|
94
|
-
owner: ApiKeyOwner$outboundSchema.optional(),
|
|
95
|
-
projectScope: ProjectScope$outboundSchema.optional(),
|
|
96
|
-
permissionMode: PermissionMode$outboundSchema,
|
|
97
|
-
access: z.record(AccessLevel$outboundSchema).optional(),
|
|
98
|
-
expiresAt: z.date().transform(v => v.toISOString()).optional(),
|
|
99
|
-
mcpAccess: McpAccess$outboundSchema.optional(),
|
|
100
|
-
labels: z.record(z.string()).optional(),
|
|
101
|
-
}).transform((v) => {
|
|
102
|
-
return remap$(v, {
|
|
103
|
-
projectScope: "project_scope",
|
|
104
|
-
permissionMode: "permission_mode",
|
|
105
|
-
expiresAt: "expires_at",
|
|
106
|
-
mcpAccess: "mcp_access",
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
export function createApiKeyRequestToJSON(
|
|
111
|
-
createApiKeyRequest: CreateApiKeyRequest,
|
|
112
|
-
): string {
|
|
113
|
-
return JSON.stringify(
|
|
114
|
-
CreateApiKeyRequest$outboundSchema.parse(createApiKeyRequest),
|
|
115
|
-
);
|
|
116
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
-
|
|
8
|
-
export const DomainGroup = {
|
|
9
|
-
DomainGroupWorkspaceAdmin: "DOMAIN_GROUP_WORKSPACE_ADMIN",
|
|
10
|
-
DomainGroupPlatform: "DOMAIN_GROUP_PLATFORM",
|
|
11
|
-
DomainGroupGateway: "DOMAIN_GROUP_GATEWAY",
|
|
12
|
-
} as const;
|
|
13
|
-
export type DomainGroup = ClosedEnum<typeof DomainGroup>;
|
|
14
|
-
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const DomainGroup$inboundSchema: z.ZodNativeEnum<typeof DomainGroup> = z
|
|
17
|
-
.nativeEnum(DomainGroup);
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import { Domain, Domain$inboundSchema } from "./domain.js";
|
|
10
|
-
|
|
11
|
-
export type ListCapabilitiesResponse = {
|
|
12
|
-
/**
|
|
13
|
-
* Full capability catalog. Order is stable: workspace-admin first,
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* then platform, then gateway.
|
|
17
|
-
*/
|
|
18
|
-
domains: Array<Domain>;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const ListCapabilitiesResponse$inboundSchema: z.ZodType<
|
|
23
|
-
ListCapabilitiesResponse,
|
|
24
|
-
z.ZodTypeDef,
|
|
25
|
-
unknown
|
|
26
|
-
> = z.object({
|
|
27
|
-
domains: z.array(Domain$inboundSchema),
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
export function listCapabilitiesResponseFromJSON(
|
|
31
|
-
jsonString: string,
|
|
32
|
-
): SafeParseResult<ListCapabilitiesResponse, SDKValidationError> {
|
|
33
|
-
return safeParse(
|
|
34
|
-
jsonString,
|
|
35
|
-
(x) => ListCapabilitiesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
36
|
-
`Failed to parse 'ListCapabilitiesResponse' from JSON`,
|
|
37
|
-
);
|
|
38
|
-
}
|