@buka/nestjs-kit 4.4.2 → 4.4.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/.keqfilter +36 -0
- package/CHANGELOG.md +17 -0
- package/dist/index.d.mts +525 -1451
- package/dist/index.d.ts +525 -1451
- package/dist/index.js +483 -2224
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +483 -2224
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -17,6 +17,7 @@ import * as fs from "node:fs";
|
|
|
17
17
|
import { KeqRequest, RequestException } from "keq";
|
|
18
18
|
import { setBaseUrl } from "@keq-request/url";
|
|
19
19
|
import { createExceptionByStatusCode, validateStatusCode } from "@keq-request/exception";
|
|
20
|
+
import { KeqModule } from "@keq-request/nestjs";
|
|
20
21
|
import { createCipheriv, createDecipheriv, createHash, randomBytes } from "crypto";
|
|
21
22
|
import bcrypt from "bcryptjs";
|
|
22
23
|
import { Base32, Base32 as Base32$1, ErrorCategory, ErrorCategory as ErrorCategory$1, ErrorCode, ErrorCode as ErrorCode$1 } from "@buka/error-codes";
|
|
@@ -728,12 +729,16 @@ function ValidateNestedDictionary(typeFunc, validationOptions) {
|
|
|
728
729
|
//#endregion
|
|
729
730
|
//#region src/modules/core/decorators/is-browser-request.ts
|
|
730
731
|
/**
|
|
731
|
-
* 参数装饰器,通过检测请求头中是否存在 `Sec-Fetch
|
|
732
|
+
* 参数装饰器,通过检测请求头中是否存在 `Sec-Fetch-Site` 头,
|
|
732
733
|
* 判断请求是否来自浏览器。
|
|
733
734
|
*
|
|
734
735
|
* 浏览器在发起请求时会自动附加 `Sec-Fetch-Site`、`Sec-Fetch-Mode`、
|
|
735
|
-
* `Sec-Fetch-Dest` 等头([Fetch Metadata Request Headers](https://www.w3.org/TR/fetch-metadata/)
|
|
736
|
-
* 非浏览器客户端(如 curl、Postman
|
|
736
|
+
* `Sec-Fetch-Dest` 等头([Fetch Metadata Request Headers](https://www.w3.org/TR/fetch-metadata/))。
|
|
737
|
+
* 非浏览器客户端(如 curl、Postman)通常不会携带这些头。
|
|
738
|
+
*
|
|
739
|
+
* **注意:** Node.js 的 undici(globalThis.fetch)会自动添加 `Sec-Fetch-Mode: cors`,
|
|
740
|
+
* 但不会添加 `Sec-Fetch-Site`。因此使用 `Sec-Fetch-Site` 而非任意 `Sec-Fetch-*`
|
|
741
|
+
* 头来区分真正的浏览器请求和服务端 fetch 调用。
|
|
737
742
|
*
|
|
738
743
|
* 装饰的参数类型应为 `boolean`。
|
|
739
744
|
*
|
|
@@ -752,7 +757,7 @@ function ValidateNestedDictionary(typeFunc, validationOptions) {
|
|
|
752
757
|
*/
|
|
753
758
|
const IsBrowserRequest = createParamDecorator((_data, ctx) => {
|
|
754
759
|
const request = ctx.switchToHttp().getRequest();
|
|
755
|
-
return Object.keys(request.headers).some((key) => key.toLowerCase()
|
|
760
|
+
return Object.keys(request.headers).some((key) => key.toLowerCase() === "sec-fetch-site");
|
|
756
761
|
});
|
|
757
762
|
//#endregion
|
|
758
763
|
//#region src/modules/core/decorators/model/model.register.ts
|
|
@@ -2689,7 +2694,7 @@ const Column = {
|
|
|
2689
2694
|
};
|
|
2690
2695
|
//#endregion
|
|
2691
2696
|
//#region src/modules/mikro-orm/models/timestamped-entity.ts
|
|
2692
|
-
var _ref$
|
|
2697
|
+
var _ref$14, _ref2$3;
|
|
2693
2698
|
var TimestampedEntity = class {
|
|
2694
2699
|
[OptionalProps];
|
|
2695
2700
|
createdAt = /* @__PURE__ */ new Date();
|
|
@@ -2699,7 +2704,7 @@ __decorate([Column.Timestamptz({
|
|
|
2699
2704
|
onCreate: () => /* @__PURE__ */ new Date(),
|
|
2700
2705
|
defaultRaw: "CURRENT_TIMESTAMP",
|
|
2701
2706
|
comment: "创建时间"
|
|
2702
|
-
}), __decorateMetadata("design:type", typeof (_ref$
|
|
2707
|
+
}), __decorateMetadata("design:type", typeof (_ref$14 = typeof Date !== "undefined" && Date) === "function" ? _ref$14 : Object)], TimestampedEntity.prototype, "createdAt", void 0);
|
|
2703
2708
|
__decorate([Column.Timestamptz({
|
|
2704
2709
|
onUpdate: () => /* @__PURE__ */ new Date(),
|
|
2705
2710
|
defaultRaw: "CURRENT_TIMESTAMP",
|
|
@@ -2835,6 +2840,7 @@ function PrimaryKeyType(classRef) {
|
|
|
2835
2840
|
const primaryProperties = getMetadata(classRef).filter((prop) => prop.primary).map((prop) => prop.name);
|
|
2836
2841
|
if (!primaryProperties.length) throw new Error(`Cannot create PrimaryKeyType for ${classRef.name} because it has no primary properties.`);
|
|
2837
2842
|
class PrimaryKeyTypeClass {}
|
|
2843
|
+
Object.defineProperty(PrimaryKeyTypeClass, "name", { value: `${classRef.name}PrimaryKeyType` });
|
|
2838
2844
|
PrimaryKeyTypeClass[PrimaryKeyTypeClassMetadataPropertyKey] = classRef;
|
|
2839
2845
|
cloneMetadata(PrimaryKeyTypeClass, classRef, primaryProperties);
|
|
2840
2846
|
inheritValidationMetadata(classRef, PrimaryKeyTypeClass, (key) => primaryProperties.includes(key));
|
|
@@ -3160,7 +3166,7 @@ __decorate([
|
|
|
3160
3166
|
], DatabaseConfig.prototype, "poolIdleTimeoutMillis", void 0);
|
|
3161
3167
|
//#endregion
|
|
3162
3168
|
//#region src/modules/core/pipes/validation.pipe.ts
|
|
3163
|
-
var _ref$
|
|
3169
|
+
var _ref$13, _ref2$2, _ref3$1, _BukaValidationPipe;
|
|
3164
3170
|
function deepMap(obj, fn) {
|
|
3165
3171
|
if (Array.isArray(obj)) return obj.map((item) => deepMap(item, fn));
|
|
3166
3172
|
else return fn(obj);
|
|
@@ -3212,6 +3218,7 @@ let BukaValidationPipe = _BukaValidationPipe = class BukaValidationPipe extends
|
|
|
3212
3218
|
}
|
|
3213
3219
|
async transform(value, metadata) {
|
|
3214
3220
|
value = await super.transform(value, metadata);
|
|
3221
|
+
if (metadata.type === "custom") return value;
|
|
3215
3222
|
if (this.validationOptions && !this.validationOptions.transform) return value;
|
|
3216
3223
|
if (!metadata.metatype || typeof metadata.metatype !== "function") return value;
|
|
3217
3224
|
const metatype = metadata.metatype;
|
|
@@ -3219,7 +3226,7 @@ let BukaValidationPipe = _BukaValidationPipe = class BukaValidationPipe extends
|
|
|
3219
3226
|
}
|
|
3220
3227
|
};
|
|
3221
3228
|
BukaValidationPipe = _BukaValidationPipe = __decorate([Injectable(), __decorateMetadata("design:paramtypes", [
|
|
3222
|
-
typeof (_ref$
|
|
3229
|
+
typeof (_ref$13 = typeof MikroORM !== "undefined" && MikroORM) === "function" ? _ref$13 : Object,
|
|
3223
3230
|
typeof (_ref2$2 = typeof EntityManager !== "undefined" && EntityManager) === "function" ? _ref2$2 : Object,
|
|
3224
3231
|
typeof (_ref3$1 = typeof ValidationPipeOptions !== "undefined" && ValidationPipeOptions) === "function" ? _ref3$1 : Object
|
|
3225
3232
|
])], BukaValidationPipe);
|
|
@@ -3270,7 +3277,7 @@ OffsetPagination = __decorate([Model({ schema: {
|
|
|
3270
3277
|
} }), __decorateMetadata("design:paramtypes", [Number, Object])], OffsetPagination);
|
|
3271
3278
|
//#endregion
|
|
3272
3279
|
//#region src/modules/core/models/cursor-pagination.ts
|
|
3273
|
-
var _ref$
|
|
3280
|
+
var _ref$12;
|
|
3274
3281
|
let CursorPagination = class CursorPagination {
|
|
3275
3282
|
total;
|
|
3276
3283
|
limit;
|
|
@@ -3316,7 +3323,7 @@ __decorate([Property({ schema: {
|
|
|
3316
3323
|
CursorPagination = __decorate([Model({ schema: {
|
|
3317
3324
|
description: "基于游标的分页响应,通过 startCursor/endCursor 定位数据位置,适用于无限滚动等场景",
|
|
3318
3325
|
additionalProperties: false
|
|
3319
|
-
} }), __decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
3326
|
+
} }), __decorateMetadata("design:paramtypes", [typeof (_ref$12 = typeof Cursor !== "undefined" && Cursor) === "function" ? _ref$12 : Object])], CursorPagination);
|
|
3320
3327
|
//#endregion
|
|
3321
3328
|
//#region src/modules/core/models/slice.ts
|
|
3322
3329
|
var Slice = class Slice {
|
|
@@ -3615,7 +3622,7 @@ function ResponseBodyType(classRef) {
|
|
|
3615
3622
|
}
|
|
3616
3623
|
//#endregion
|
|
3617
3624
|
//#region src/modules/open-bao/open-bao.module-definition.ts
|
|
3618
|
-
const { ConfigurableModuleClass: ConfigurableModuleClass$
|
|
3625
|
+
const { ConfigurableModuleClass: ConfigurableModuleClass$4, MODULE_OPTIONS_TOKEN: MODULE_OPTIONS_TOKEN$4 } = new ConfigurableModuleBuilder().build();
|
|
3619
3626
|
//#endregion
|
|
3620
3627
|
//#region \0@oxc-project+runtime@0.127.0/helpers/decorateParam.js
|
|
3621
3628
|
function __decorateParam(paramIndex, decorator) {
|
|
@@ -3769,32 +3776,83 @@ let OpenBaoTokenManager = _OpenBaoTokenManager = class OpenBaoTokenManager {
|
|
|
3769
3776
|
};
|
|
3770
3777
|
OpenBaoTokenManager = _OpenBaoTokenManager = __decorate([
|
|
3771
3778
|
Injectable(),
|
|
3772
|
-
__decorateParam(0, Inject(MODULE_OPTIONS_TOKEN$
|
|
3779
|
+
__decorateParam(0, Inject(MODULE_OPTIONS_TOKEN$4)),
|
|
3773
3780
|
__decorateMetadata("design:paramtypes", [Object])
|
|
3774
3781
|
], OpenBaoTokenManager);
|
|
3775
3782
|
//#endregion
|
|
3776
3783
|
//#region src/apis/open-bao-http/open-bao-http.client.ts
|
|
3777
|
-
var _ref$
|
|
3784
|
+
var _ref$11, _OpenBaoHttpClient;
|
|
3778
3785
|
let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
3779
3786
|
logger = new Logger$1(_OpenBaoHttpClient.name);
|
|
3780
3787
|
constructor(request) {
|
|
3781
3788
|
this.request = request;
|
|
3782
3789
|
}
|
|
3790
|
+
kubernetesReadAuthConfiguration(args) {
|
|
3791
|
+
return this.request.get("/auth/kubernetes001/config");
|
|
3792
|
+
}
|
|
3793
|
+
kubernetesConfigureAuth(args) {
|
|
3794
|
+
const req = this.request.post("/auth/kubernetes001/config");
|
|
3795
|
+
req.type("application/json");
|
|
3796
|
+
if (args && "disable_iss_validation" in args) req.send({ disable_iss_validation: args["disable_iss_validation"] });
|
|
3797
|
+
if (args && "disable_local_ca_jwt" in args) req.send({ disable_local_ca_jwt: args["disable_local_ca_jwt"] });
|
|
3798
|
+
if (args && "issuer" in args) req.send({ issuer: args["issuer"] });
|
|
3799
|
+
if (args && "kubernetes_ca_cert" in args) req.send({ kubernetes_ca_cert: args["kubernetes_ca_cert"] });
|
|
3800
|
+
if (args && "kubernetes_host" in args) req.send({ kubernetes_host: args["kubernetes_host"] });
|
|
3801
|
+
if (args && "pem_keys" in args) req.send({ pem_keys: args["pem_keys"] });
|
|
3802
|
+
if (args && "token_reviewer_jwt" in args) req.send({ token_reviewer_jwt: args["token_reviewer_jwt"] });
|
|
3803
|
+
return req;
|
|
3804
|
+
}
|
|
3805
|
+
kubernetesLogin(args) {
|
|
3806
|
+
const req = this.request.post("/auth/kubernetes001/login");
|
|
3807
|
+
req.type("application/json");
|
|
3808
|
+
if (args && "jwt" in args) req.send({ jwt: args["jwt"] });
|
|
3809
|
+
if (args && "role" in args) req.send({ role: args["role"] });
|
|
3810
|
+
return req;
|
|
3811
|
+
}
|
|
3812
|
+
kubernetesListAuthRoles(args) {
|
|
3813
|
+
const req = this.request.get("/auth/kubernetes001/role");
|
|
3814
|
+
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
3815
|
+
return req;
|
|
3816
|
+
}
|
|
3817
|
+
kubernetesReadAuthRole(args) {
|
|
3818
|
+
return this.request.get("/auth/kubernetes001/role/{name}");
|
|
3819
|
+
}
|
|
3820
|
+
kubernetesWriteAuthRole(args) {
|
|
3821
|
+
const req = this.request.post("/auth/kubernetes001/role/{name}");
|
|
3822
|
+
req.type("application/json");
|
|
3823
|
+
if (args && "alias_name_source" in args) req.send({ alias_name_source: args["alias_name_source"] });
|
|
3824
|
+
if (args && "audience" in args) req.send({ audience: args["audience"] });
|
|
3825
|
+
if (args && "bound_cidrs" in args) req.send({ bound_cidrs: args["bound_cidrs"] });
|
|
3826
|
+
if (args && "bound_service_account_names" in args) req.send({ bound_service_account_names: args["bound_service_account_names"] });
|
|
3827
|
+
if (args && "bound_service_account_namespace_selector" in args) req.send({ bound_service_account_namespace_selector: args["bound_service_account_namespace_selector"] });
|
|
3828
|
+
if (args && "bound_service_account_namespaces" in args) req.send({ bound_service_account_namespaces: args["bound_service_account_namespaces"] });
|
|
3829
|
+
if (args && "max_ttl" in args) req.send({ max_ttl: args["max_ttl"] });
|
|
3830
|
+
if (args && "num_uses" in args) req.send({ num_uses: args["num_uses"] });
|
|
3831
|
+
if (args && "period" in args) req.send({ period: args["period"] });
|
|
3832
|
+
if (args && "policies" in args) req.send({ policies: args["policies"] });
|
|
3833
|
+
if (args && "token_bound_cidrs" in args) req.send({ token_bound_cidrs: args["token_bound_cidrs"] });
|
|
3834
|
+
if (args && "token_explicit_max_ttl" in args) req.send({ token_explicit_max_ttl: args["token_explicit_max_ttl"] });
|
|
3835
|
+
if (args && "token_max_ttl" in args) req.send({ token_max_ttl: args["token_max_ttl"] });
|
|
3836
|
+
if (args && "token_no_default_policy" in args) req.send({ token_no_default_policy: args["token_no_default_policy"] });
|
|
3837
|
+
if (args && "token_num_uses" in args) req.send({ token_num_uses: args["token_num_uses"] });
|
|
3838
|
+
if (args && "token_period" in args) req.send({ token_period: args["token_period"] });
|
|
3839
|
+
if (args && "token_policies" in args) req.send({ token_policies: args["token_policies"] });
|
|
3840
|
+
if (args && "token_strictly_bind_ip" in args) req.send({ token_strictly_bind_ip: args["token_strictly_bind_ip"] });
|
|
3841
|
+
if (args && "token_ttl" in args) req.send({ token_ttl: args["token_ttl"] });
|
|
3842
|
+
if (args && "token_type" in args) req.send({ token_type: args["token_type"] });
|
|
3843
|
+
if (args && "ttl" in args) req.send({ ttl: args["ttl"] });
|
|
3844
|
+
return req;
|
|
3845
|
+
}
|
|
3846
|
+
kubernetesDeleteAuthRole(args) {
|
|
3847
|
+
return this.request.delete("/auth/kubernetes001/role/{name}");
|
|
3848
|
+
}
|
|
3783
3849
|
tokenListAccessors(args) {
|
|
3784
|
-
const req = this.request.get("/auth/token/accessors")
|
|
3785
|
-
name: "openBaoHttp",
|
|
3786
|
-
pathname: "/auth/token/accessors",
|
|
3787
|
-
method: "get"
|
|
3788
|
-
});
|
|
3850
|
+
const req = this.request.get("/auth/token/accessors");
|
|
3789
3851
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
3790
3852
|
return req;
|
|
3791
3853
|
}
|
|
3792
3854
|
tokenCreate(args) {
|
|
3793
|
-
const req = this.request.post("/auth/token/create")
|
|
3794
|
-
name: "openBaoHttp",
|
|
3795
|
-
pathname: "/auth/token/create",
|
|
3796
|
-
method: "post"
|
|
3797
|
-
});
|
|
3855
|
+
const req = this.request.post("/auth/token/create");
|
|
3798
3856
|
req.type("application/json");
|
|
3799
3857
|
if (args && "display_name" in args) req.send({ display_name: args["display_name"] });
|
|
3800
3858
|
if (args && "entity_alias" in args) req.send({ entity_alias: args["entity_alias"] });
|
|
@@ -3813,11 +3871,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
3813
3871
|
return req;
|
|
3814
3872
|
}
|
|
3815
3873
|
tokenCreateOrphan(args) {
|
|
3816
|
-
const req = this.request.post("/auth/token/create-orphan")
|
|
3817
|
-
name: "openBaoHttp",
|
|
3818
|
-
pathname: "/auth/token/create-orphan",
|
|
3819
|
-
method: "post"
|
|
3820
|
-
});
|
|
3874
|
+
const req = this.request.post("/auth/token/create-orphan");
|
|
3821
3875
|
req.type("application/json");
|
|
3822
3876
|
if (args && "display_name" in args) req.send({ display_name: args["display_name"] });
|
|
3823
3877
|
if (args && "entity_alias" in args) req.send({ entity_alias: args["entity_alias"] });
|
|
@@ -3836,11 +3890,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
3836
3890
|
return req;
|
|
3837
3891
|
}
|
|
3838
3892
|
tokenCreateAgainstRole(args) {
|
|
3839
|
-
const req = this.request.post("/auth/token/create/{role_name}")
|
|
3840
|
-
name: "openBaoHttp",
|
|
3841
|
-
pathname: "/auth/token/create/{role_name}",
|
|
3842
|
-
method: "post"
|
|
3843
|
-
});
|
|
3893
|
+
const req = this.request.post("/auth/token/create/{role_name}");
|
|
3844
3894
|
req.type("application/json");
|
|
3845
3895
|
if (args && "display_name" in args) req.send({ display_name: args["display_name"] });
|
|
3846
3896
|
if (args && "entity_alias" in args) req.send({ entity_alias: args["entity_alias"] });
|
|
@@ -3859,141 +3909,81 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
3859
3909
|
return req;
|
|
3860
3910
|
}
|
|
3861
3911
|
tokenLookUpGet(args) {
|
|
3862
|
-
return this.request.get("/auth/token/lookup")
|
|
3863
|
-
name: "openBaoHttp",
|
|
3864
|
-
pathname: "/auth/token/lookup",
|
|
3865
|
-
method: "get"
|
|
3866
|
-
});
|
|
3912
|
+
return this.request.get("/auth/token/lookup");
|
|
3867
3913
|
}
|
|
3868
3914
|
tokenLookUpUpdate(args) {
|
|
3869
|
-
const req = this.request.post("/auth/token/lookup")
|
|
3870
|
-
name: "openBaoHttp",
|
|
3871
|
-
pathname: "/auth/token/lookup",
|
|
3872
|
-
method: "post"
|
|
3873
|
-
});
|
|
3915
|
+
const req = this.request.post("/auth/token/lookup");
|
|
3874
3916
|
req.type("application/json");
|
|
3875
3917
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
3876
3918
|
return req;
|
|
3877
3919
|
}
|
|
3878
3920
|
tokenLookUpByAccessor(args) {
|
|
3879
|
-
const req = this.request.post("/auth/token/lookup-accessor")
|
|
3880
|
-
name: "openBaoHttp",
|
|
3881
|
-
pathname: "/auth/token/lookup-accessor",
|
|
3882
|
-
method: "post"
|
|
3883
|
-
});
|
|
3921
|
+
const req = this.request.post("/auth/token/lookup-accessor");
|
|
3884
3922
|
req.type("application/json");
|
|
3885
3923
|
if (args && "accessor" in args) req.send({ accessor: args["accessor"] });
|
|
3886
3924
|
return req;
|
|
3887
3925
|
}
|
|
3888
3926
|
tokenLookUpSelfGet(args) {
|
|
3889
|
-
return this.request.get("/auth/token/lookup-self")
|
|
3890
|
-
name: "openBaoHttp",
|
|
3891
|
-
pathname: "/auth/token/lookup-self",
|
|
3892
|
-
method: "get"
|
|
3893
|
-
});
|
|
3927
|
+
return this.request.get("/auth/token/lookup-self");
|
|
3894
3928
|
}
|
|
3895
3929
|
tokenLookUpSelfUpdate(args) {
|
|
3896
|
-
const req = this.request.post("/auth/token/lookup-self")
|
|
3897
|
-
name: "openBaoHttp",
|
|
3898
|
-
pathname: "/auth/token/lookup-self",
|
|
3899
|
-
method: "post"
|
|
3900
|
-
});
|
|
3930
|
+
const req = this.request.post("/auth/token/lookup-self");
|
|
3901
3931
|
req.type("application/json");
|
|
3902
3932
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
3903
3933
|
return req;
|
|
3904
3934
|
}
|
|
3905
3935
|
tokenRenew(args) {
|
|
3906
|
-
const req = this.request.post("/auth/token/renew")
|
|
3907
|
-
name: "openBaoHttp",
|
|
3908
|
-
pathname: "/auth/token/renew",
|
|
3909
|
-
method: "post"
|
|
3910
|
-
});
|
|
3936
|
+
const req = this.request.post("/auth/token/renew");
|
|
3911
3937
|
req.type("application/json");
|
|
3912
3938
|
if (args && "increment" in args) req.send({ increment: args["increment"] });
|
|
3913
3939
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
3914
3940
|
return req;
|
|
3915
3941
|
}
|
|
3916
3942
|
tokenRenewAccessor(args) {
|
|
3917
|
-
const req = this.request.post("/auth/token/renew-accessor")
|
|
3918
|
-
name: "openBaoHttp",
|
|
3919
|
-
pathname: "/auth/token/renew-accessor",
|
|
3920
|
-
method: "post"
|
|
3921
|
-
});
|
|
3943
|
+
const req = this.request.post("/auth/token/renew-accessor");
|
|
3922
3944
|
req.type("application/json");
|
|
3923
3945
|
if (args && "accessor" in args) req.send({ accessor: args["accessor"] });
|
|
3924
3946
|
if (args && "increment" in args) req.send({ increment: args["increment"] });
|
|
3925
3947
|
return req;
|
|
3926
3948
|
}
|
|
3927
3949
|
tokenRenewSelf(args) {
|
|
3928
|
-
const req = this.request.post("/auth/token/renew-self")
|
|
3929
|
-
name: "openBaoHttp",
|
|
3930
|
-
pathname: "/auth/token/renew-self",
|
|
3931
|
-
method: "post"
|
|
3932
|
-
});
|
|
3950
|
+
const req = this.request.post("/auth/token/renew-self");
|
|
3933
3951
|
req.type("application/json");
|
|
3934
3952
|
if (args && "increment" in args) req.send({ increment: args["increment"] });
|
|
3935
3953
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
3936
3954
|
return req;
|
|
3937
3955
|
}
|
|
3938
3956
|
tokenRevoke(args) {
|
|
3939
|
-
const req = this.request.post("/auth/token/revoke")
|
|
3940
|
-
name: "openBaoHttp",
|
|
3941
|
-
pathname: "/auth/token/revoke",
|
|
3942
|
-
method: "post"
|
|
3943
|
-
});
|
|
3957
|
+
const req = this.request.post("/auth/token/revoke");
|
|
3944
3958
|
req.type("application/json");
|
|
3945
3959
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
3946
3960
|
return req;
|
|
3947
3961
|
}
|
|
3948
3962
|
tokenRevokeAccessor(args) {
|
|
3949
|
-
const req = this.request.post("/auth/token/revoke-accessor")
|
|
3950
|
-
name: "openBaoHttp",
|
|
3951
|
-
pathname: "/auth/token/revoke-accessor",
|
|
3952
|
-
method: "post"
|
|
3953
|
-
});
|
|
3963
|
+
const req = this.request.post("/auth/token/revoke-accessor");
|
|
3954
3964
|
req.type("application/json");
|
|
3955
3965
|
if (args && "accessor" in args) req.send({ accessor: args["accessor"] });
|
|
3956
3966
|
return req;
|
|
3957
3967
|
}
|
|
3958
3968
|
tokenRevokeOrphan(args) {
|
|
3959
|
-
const req = this.request.post("/auth/token/revoke-orphan")
|
|
3960
|
-
name: "openBaoHttp",
|
|
3961
|
-
pathname: "/auth/token/revoke-orphan",
|
|
3962
|
-
method: "post"
|
|
3963
|
-
});
|
|
3969
|
+
const req = this.request.post("/auth/token/revoke-orphan");
|
|
3964
3970
|
req.type("application/json");
|
|
3965
3971
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
3966
3972
|
return req;
|
|
3967
3973
|
}
|
|
3968
3974
|
tokenRevokeSelf(args) {
|
|
3969
|
-
return this.request.post("/auth/token/revoke-self")
|
|
3970
|
-
name: "openBaoHttp",
|
|
3971
|
-
pathname: "/auth/token/revoke-self",
|
|
3972
|
-
method: "post"
|
|
3973
|
-
});
|
|
3975
|
+
return this.request.post("/auth/token/revoke-self");
|
|
3974
3976
|
}
|
|
3975
3977
|
tokenListRoles(args) {
|
|
3976
|
-
const req = this.request.get("/auth/token/roles")
|
|
3977
|
-
name: "openBaoHttp",
|
|
3978
|
-
pathname: "/auth/token/roles",
|
|
3979
|
-
method: "get"
|
|
3980
|
-
});
|
|
3978
|
+
const req = this.request.get("/auth/token/roles");
|
|
3981
3979
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
3982
3980
|
return req;
|
|
3983
3981
|
}
|
|
3984
3982
|
tokenReadRole(args) {
|
|
3985
|
-
return this.request.get("/auth/token/roles/{role_name}")
|
|
3986
|
-
name: "openBaoHttp",
|
|
3987
|
-
pathname: "/auth/token/roles/{role_name}",
|
|
3988
|
-
method: "get"
|
|
3989
|
-
});
|
|
3983
|
+
return this.request.get("/auth/token/roles/{role_name}");
|
|
3990
3984
|
}
|
|
3991
3985
|
tokenWriteRole(args) {
|
|
3992
|
-
const req = this.request.post("/auth/token/roles/{role_name}")
|
|
3993
|
-
name: "openBaoHttp",
|
|
3994
|
-
pathname: "/auth/token/roles/{role_name}",
|
|
3995
|
-
method: "post"
|
|
3996
|
-
});
|
|
3986
|
+
const req = this.request.post("/auth/token/roles/{role_name}");
|
|
3997
3987
|
req.type("application/json");
|
|
3998
3988
|
if (args && "allowed_entity_aliases" in args) req.send({ allowed_entity_aliases: args["allowed_entity_aliases"] });
|
|
3999
3989
|
if (args && "allowed_policies" in args) req.send({ allowed_policies: args["allowed_policies"] });
|
|
@@ -4015,51 +4005,27 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4015
4005
|
return req;
|
|
4016
4006
|
}
|
|
4017
4007
|
tokenDeleteRole(args) {
|
|
4018
|
-
return this.request.delete("/auth/token/roles/{role_name}")
|
|
4019
|
-
name: "openBaoHttp",
|
|
4020
|
-
pathname: "/auth/token/roles/{role_name}",
|
|
4021
|
-
method: "delete"
|
|
4022
|
-
});
|
|
4008
|
+
return this.request.delete("/auth/token/roles/{role_name}");
|
|
4023
4009
|
}
|
|
4024
4010
|
tokenTidy(args) {
|
|
4025
|
-
return this.request.post("/auth/token/tidy")
|
|
4026
|
-
name: "openBaoHttp",
|
|
4027
|
-
pathname: "/auth/token/tidy",
|
|
4028
|
-
method: "post"
|
|
4029
|
-
});
|
|
4011
|
+
return this.request.post("/auth/token/tidy");
|
|
4030
4012
|
}
|
|
4031
4013
|
userpassLogin(args) {
|
|
4032
|
-
const req = this.request.post("/auth/userpass/login/{username}")
|
|
4033
|
-
name: "openBaoHttp",
|
|
4034
|
-
pathname: "/auth/userpass/login/{username}",
|
|
4035
|
-
method: "post"
|
|
4036
|
-
});
|
|
4014
|
+
const req = this.request.post("/auth/userpass/login/{username}");
|
|
4037
4015
|
req.type("application/json");
|
|
4038
4016
|
if (args && "password" in args) req.send({ password: args["password"] });
|
|
4039
4017
|
return req;
|
|
4040
4018
|
}
|
|
4041
4019
|
userpassListUsers(args) {
|
|
4042
|
-
const req = this.request.get("/auth/userpass/users")
|
|
4043
|
-
name: "openBaoHttp",
|
|
4044
|
-
pathname: "/auth/userpass/users",
|
|
4045
|
-
method: "get"
|
|
4046
|
-
});
|
|
4020
|
+
const req = this.request.get("/auth/userpass/users");
|
|
4047
4021
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4048
4022
|
return req;
|
|
4049
4023
|
}
|
|
4050
4024
|
userpassReadUser(args) {
|
|
4051
|
-
return this.request.get("/auth/userpass/users/{username}")
|
|
4052
|
-
name: "openBaoHttp",
|
|
4053
|
-
pathname: "/auth/userpass/users/{username}",
|
|
4054
|
-
method: "get"
|
|
4055
|
-
});
|
|
4025
|
+
return this.request.get("/auth/userpass/users/{username}");
|
|
4056
4026
|
}
|
|
4057
4027
|
userpassWriteUser(args) {
|
|
4058
|
-
const req = this.request.post("/auth/userpass/users/{username}")
|
|
4059
|
-
name: "openBaoHttp",
|
|
4060
|
-
pathname: "/auth/userpass/users/{username}",
|
|
4061
|
-
method: "post"
|
|
4062
|
-
});
|
|
4028
|
+
const req = this.request.post("/auth/userpass/users/{username}");
|
|
4063
4029
|
req.type("application/json");
|
|
4064
4030
|
if (args && "bound_cidrs" in args) req.send({ bound_cidrs: args["bound_cidrs"] });
|
|
4065
4031
|
if (args && "max_ttl" in args) req.send({ max_ttl: args["max_ttl"] });
|
|
@@ -4079,28 +4045,16 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4079
4045
|
return req;
|
|
4080
4046
|
}
|
|
4081
4047
|
userpassDeleteUser(args) {
|
|
4082
|
-
return this.request.delete("/auth/userpass/users/{username}")
|
|
4083
|
-
name: "openBaoHttp",
|
|
4084
|
-
pathname: "/auth/userpass/users/{username}",
|
|
4085
|
-
method: "delete"
|
|
4086
|
-
});
|
|
4048
|
+
return this.request.delete("/auth/userpass/users/{username}");
|
|
4087
4049
|
}
|
|
4088
4050
|
userpassResetPassword(args) {
|
|
4089
|
-
const req = this.request.post("/auth/userpass/users/{username}/password")
|
|
4090
|
-
name: "openBaoHttp",
|
|
4091
|
-
pathname: "/auth/userpass/users/{username}/password",
|
|
4092
|
-
method: "post"
|
|
4093
|
-
});
|
|
4051
|
+
const req = this.request.post("/auth/userpass/users/{username}/password");
|
|
4094
4052
|
req.type("application/json");
|
|
4095
4053
|
if (args && "password" in args) req.send({ password: args["password"] });
|
|
4096
4054
|
return req;
|
|
4097
4055
|
}
|
|
4098
4056
|
userpassUpdatePolicies(args) {
|
|
4099
|
-
const req = this.request.post("/auth/userpass/users/{username}/policies")
|
|
4100
|
-
name: "openBaoHttp",
|
|
4101
|
-
pathname: "/auth/userpass/users/{username}/policies",
|
|
4102
|
-
method: "post"
|
|
4103
|
-
});
|
|
4057
|
+
const req = this.request.post("/auth/userpass/users/{username}/policies");
|
|
4104
4058
|
req.type("application/json");
|
|
4105
4059
|
if (args && "policies" in args) req.send({ policies: args["policies"] });
|
|
4106
4060
|
if (args && "token_policies" in args) req.send({ token_policies: args["token_policies"] });
|
|
@@ -4111,11 +4065,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4111
4065
|
*
|
|
4112
4066
|
*/
|
|
4113
4067
|
cubbyholeRead(args) {
|
|
4114
|
-
const req = this.request.get("/cubbyhole/{path}")
|
|
4115
|
-
name: "openBaoHttp",
|
|
4116
|
-
pathname: "/cubbyhole/{path}",
|
|
4117
|
-
method: "get"
|
|
4118
|
-
});
|
|
4068
|
+
const req = this.request.get("/cubbyhole/{path}");
|
|
4119
4069
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4120
4070
|
return req;
|
|
4121
4071
|
}
|
|
@@ -4124,29 +4074,17 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4124
4074
|
*
|
|
4125
4075
|
*/
|
|
4126
4076
|
cubbyholeWrite(args) {
|
|
4127
|
-
return this.request.post("/cubbyhole/{path}")
|
|
4128
|
-
name: "openBaoHttp",
|
|
4129
|
-
pathname: "/cubbyhole/{path}",
|
|
4130
|
-
method: "post"
|
|
4131
|
-
});
|
|
4077
|
+
return this.request.post("/cubbyhole/{path}");
|
|
4132
4078
|
}
|
|
4133
4079
|
/**
|
|
4134
4080
|
* Deletes the secret at the specified location.
|
|
4135
4081
|
*
|
|
4136
4082
|
*/
|
|
4137
4083
|
cubbyholeDelete(args) {
|
|
4138
|
-
return this.request.delete("/cubbyhole/{path}")
|
|
4139
|
-
name: "openBaoHttp",
|
|
4140
|
-
pathname: "/cubbyhole/{path}",
|
|
4141
|
-
method: "delete"
|
|
4142
|
-
});
|
|
4084
|
+
return this.request.delete("/cubbyhole/{path}");
|
|
4143
4085
|
}
|
|
4144
4086
|
aliasCreate(args) {
|
|
4145
|
-
const req = this.request.post("/identity/alias")
|
|
4146
|
-
name: "openBaoHttp",
|
|
4147
|
-
pathname: "/identity/alias",
|
|
4148
|
-
method: "post"
|
|
4149
|
-
});
|
|
4087
|
+
const req = this.request.post("/identity/alias");
|
|
4150
4088
|
req.type("application/json");
|
|
4151
4089
|
if (args && "canonical_id" in args) req.send({ canonical_id: args["canonical_id"] });
|
|
4152
4090
|
if (args && "entity_id" in args) req.send({ entity_id: args["entity_id"] });
|
|
@@ -4156,27 +4094,15 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4156
4094
|
return req;
|
|
4157
4095
|
}
|
|
4158
4096
|
aliasListById(args) {
|
|
4159
|
-
const req = this.request.get("/identity/alias/id")
|
|
4160
|
-
name: "openBaoHttp",
|
|
4161
|
-
pathname: "/identity/alias/id",
|
|
4162
|
-
method: "get"
|
|
4163
|
-
});
|
|
4097
|
+
const req = this.request.get("/identity/alias/id");
|
|
4164
4098
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4165
4099
|
return req;
|
|
4166
4100
|
}
|
|
4167
4101
|
aliasReadById(args) {
|
|
4168
|
-
return this.request.get("/identity/alias/id/{id}")
|
|
4169
|
-
name: "openBaoHttp",
|
|
4170
|
-
pathname: "/identity/alias/id/{id}",
|
|
4171
|
-
method: "get"
|
|
4172
|
-
});
|
|
4102
|
+
return this.request.get("/identity/alias/id/{id}");
|
|
4173
4103
|
}
|
|
4174
4104
|
aliasUpdateById(args) {
|
|
4175
|
-
const req = this.request.post("/identity/alias/id/{id}")
|
|
4176
|
-
name: "openBaoHttp",
|
|
4177
|
-
pathname: "/identity/alias/id/{id}",
|
|
4178
|
-
method: "post"
|
|
4179
|
-
});
|
|
4105
|
+
const req = this.request.post("/identity/alias/id/{id}");
|
|
4180
4106
|
req.type("application/json");
|
|
4181
4107
|
if (args && "canonical_id" in args) req.send({ canonical_id: args["canonical_id"] });
|
|
4182
4108
|
if (args && "entity_id" in args) req.send({ entity_id: args["entity_id"] });
|
|
@@ -4185,18 +4111,10 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4185
4111
|
return req;
|
|
4186
4112
|
}
|
|
4187
4113
|
aliasDeleteById(args) {
|
|
4188
|
-
return this.request.delete("/identity/alias/id/{id}")
|
|
4189
|
-
name: "openBaoHttp",
|
|
4190
|
-
pathname: "/identity/alias/id/{id}",
|
|
4191
|
-
method: "delete"
|
|
4192
|
-
});
|
|
4114
|
+
return this.request.delete("/identity/alias/id/{id}");
|
|
4193
4115
|
}
|
|
4194
4116
|
entityCreate(args) {
|
|
4195
|
-
const req = this.request.post("/identity/entity")
|
|
4196
|
-
name: "openBaoHttp",
|
|
4197
|
-
pathname: "/identity/entity",
|
|
4198
|
-
method: "post"
|
|
4199
|
-
});
|
|
4117
|
+
const req = this.request.post("/identity/entity");
|
|
4200
4118
|
req.type("application/json");
|
|
4201
4119
|
if (args && "disabled" in args) req.send({ disabled: args["disabled"] });
|
|
4202
4120
|
if (args && "id" in args) req.send({ id: args["id"] });
|
|
@@ -4206,11 +4124,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4206
4124
|
return req;
|
|
4207
4125
|
}
|
|
4208
4126
|
entityCreateAlias(args) {
|
|
4209
|
-
const req = this.request.post("/identity/entity-alias")
|
|
4210
|
-
name: "openBaoHttp",
|
|
4211
|
-
pathname: "/identity/entity-alias",
|
|
4212
|
-
method: "post"
|
|
4213
|
-
});
|
|
4127
|
+
const req = this.request.post("/identity/entity-alias");
|
|
4214
4128
|
req.type("application/json");
|
|
4215
4129
|
if (args && "canonical_id" in args) req.send({ canonical_id: args["canonical_id"] });
|
|
4216
4130
|
if (args && "custom_metadata" in args) req.send({ custom_metadata: args["custom_metadata"] });
|
|
@@ -4221,27 +4135,15 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4221
4135
|
return req;
|
|
4222
4136
|
}
|
|
4223
4137
|
entityListAliasesById(args) {
|
|
4224
|
-
const req = this.request.get("/identity/entity-alias/id")
|
|
4225
|
-
name: "openBaoHttp",
|
|
4226
|
-
pathname: "/identity/entity-alias/id",
|
|
4227
|
-
method: "get"
|
|
4228
|
-
});
|
|
4138
|
+
const req = this.request.get("/identity/entity-alias/id");
|
|
4229
4139
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4230
4140
|
return req;
|
|
4231
4141
|
}
|
|
4232
4142
|
entityReadAliasById(args) {
|
|
4233
|
-
return this.request.get("/identity/entity-alias/id/{id}")
|
|
4234
|
-
name: "openBaoHttp",
|
|
4235
|
-
pathname: "/identity/entity-alias/id/{id}",
|
|
4236
|
-
method: "get"
|
|
4237
|
-
});
|
|
4143
|
+
return this.request.get("/identity/entity-alias/id/{id}");
|
|
4238
4144
|
}
|
|
4239
4145
|
entityUpdateAliasById(args) {
|
|
4240
|
-
const req = this.request.post("/identity/entity-alias/id/{id}")
|
|
4241
|
-
name: "openBaoHttp",
|
|
4242
|
-
pathname: "/identity/entity-alias/id/{id}",
|
|
4243
|
-
method: "post"
|
|
4244
|
-
});
|
|
4146
|
+
const req = this.request.post("/identity/entity-alias/id/{id}");
|
|
4245
4147
|
req.type("application/json");
|
|
4246
4148
|
if (args && "canonical_id" in args) req.send({ canonical_id: args["canonical_id"] });
|
|
4247
4149
|
if (args && "custom_metadata" in args) req.send({ custom_metadata: args["custom_metadata"] });
|
|
@@ -4251,44 +4153,24 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4251
4153
|
return req;
|
|
4252
4154
|
}
|
|
4253
4155
|
entityDeleteAliasById(args) {
|
|
4254
|
-
return this.request.delete("/identity/entity-alias/id/{id}")
|
|
4255
|
-
name: "openBaoHttp",
|
|
4256
|
-
pathname: "/identity/entity-alias/id/{id}",
|
|
4257
|
-
method: "delete"
|
|
4258
|
-
});
|
|
4156
|
+
return this.request.delete("/identity/entity-alias/id/{id}");
|
|
4259
4157
|
}
|
|
4260
4158
|
entityBatchDelete(args) {
|
|
4261
|
-
const req = this.request.post("/identity/entity/batch-delete")
|
|
4262
|
-
name: "openBaoHttp",
|
|
4263
|
-
pathname: "/identity/entity/batch-delete",
|
|
4264
|
-
method: "post"
|
|
4265
|
-
});
|
|
4159
|
+
const req = this.request.post("/identity/entity/batch-delete");
|
|
4266
4160
|
req.type("application/json");
|
|
4267
4161
|
if (args && "entity_ids" in args) req.send({ entity_ids: args["entity_ids"] });
|
|
4268
4162
|
return req;
|
|
4269
4163
|
}
|
|
4270
4164
|
entityListById(args) {
|
|
4271
|
-
const req = this.request.get("/identity/entity/id")
|
|
4272
|
-
name: "openBaoHttp",
|
|
4273
|
-
pathname: "/identity/entity/id",
|
|
4274
|
-
method: "get"
|
|
4275
|
-
});
|
|
4165
|
+
const req = this.request.get("/identity/entity/id");
|
|
4276
4166
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4277
4167
|
return req;
|
|
4278
4168
|
}
|
|
4279
4169
|
entityReadById(args) {
|
|
4280
|
-
return this.request.get("/identity/entity/id/{id}")
|
|
4281
|
-
name: "openBaoHttp",
|
|
4282
|
-
pathname: "/identity/entity/id/{id}",
|
|
4283
|
-
method: "get"
|
|
4284
|
-
});
|
|
4170
|
+
return this.request.get("/identity/entity/id/{id}");
|
|
4285
4171
|
}
|
|
4286
4172
|
entityUpdateById(args) {
|
|
4287
|
-
const req = this.request.post("/identity/entity/id/{id}")
|
|
4288
|
-
name: "openBaoHttp",
|
|
4289
|
-
pathname: "/identity/entity/id/{id}",
|
|
4290
|
-
method: "post"
|
|
4291
|
-
});
|
|
4173
|
+
const req = this.request.post("/identity/entity/id/{id}");
|
|
4292
4174
|
req.type("application/json");
|
|
4293
4175
|
if (args && "disabled" in args) req.send({ disabled: args["disabled"] });
|
|
4294
4176
|
if (args && "metadata" in args) req.send({ metadata: args["metadata"] });
|
|
@@ -4297,18 +4179,10 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4297
4179
|
return req;
|
|
4298
4180
|
}
|
|
4299
4181
|
entityDeleteById(args) {
|
|
4300
|
-
return this.request.delete("/identity/entity/id/{id}")
|
|
4301
|
-
name: "openBaoHttp",
|
|
4302
|
-
pathname: "/identity/entity/id/{id}",
|
|
4303
|
-
method: "delete"
|
|
4304
|
-
});
|
|
4182
|
+
return this.request.delete("/identity/entity/id/{id}");
|
|
4305
4183
|
}
|
|
4306
4184
|
entityMerge(args) {
|
|
4307
|
-
const req = this.request.post("/identity/entity/merge")
|
|
4308
|
-
name: "openBaoHttp",
|
|
4309
|
-
pathname: "/identity/entity/merge",
|
|
4310
|
-
method: "post"
|
|
4311
|
-
});
|
|
4185
|
+
const req = this.request.post("/identity/entity/merge");
|
|
4312
4186
|
req.type("application/json");
|
|
4313
4187
|
if (args && "conflicting_alias_ids_to_keep" in args) req.send({ conflicting_alias_ids_to_keep: args["conflicting_alias_ids_to_keep"] });
|
|
4314
4188
|
if (args && "force" in args) req.send({ force: args["force"] });
|
|
@@ -4317,27 +4191,15 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4317
4191
|
return req;
|
|
4318
4192
|
}
|
|
4319
4193
|
entityListByName(args) {
|
|
4320
|
-
const req = this.request.get("/identity/entity/name")
|
|
4321
|
-
name: "openBaoHttp",
|
|
4322
|
-
pathname: "/identity/entity/name",
|
|
4323
|
-
method: "get"
|
|
4324
|
-
});
|
|
4194
|
+
const req = this.request.get("/identity/entity/name");
|
|
4325
4195
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4326
4196
|
return req;
|
|
4327
4197
|
}
|
|
4328
4198
|
entityReadByName(args) {
|
|
4329
|
-
return this.request.get("/identity/entity/name/{name}")
|
|
4330
|
-
name: "openBaoHttp",
|
|
4331
|
-
pathname: "/identity/entity/name/{name}",
|
|
4332
|
-
method: "get"
|
|
4333
|
-
});
|
|
4199
|
+
return this.request.get("/identity/entity/name/{name}");
|
|
4334
4200
|
}
|
|
4335
4201
|
entityUpdateByName(args) {
|
|
4336
|
-
const req = this.request.post("/identity/entity/name/{name}")
|
|
4337
|
-
name: "openBaoHttp",
|
|
4338
|
-
pathname: "/identity/entity/name/{name}",
|
|
4339
|
-
method: "post"
|
|
4340
|
-
});
|
|
4202
|
+
const req = this.request.post("/identity/entity/name/{name}");
|
|
4341
4203
|
req.type("application/json");
|
|
4342
4204
|
if (args && "disabled" in args) req.send({ disabled: args["disabled"] });
|
|
4343
4205
|
if (args && "id" in args) req.send({ id: args["id"] });
|
|
@@ -4346,18 +4208,10 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4346
4208
|
return req;
|
|
4347
4209
|
}
|
|
4348
4210
|
entityDeleteByName(args) {
|
|
4349
|
-
return this.request.delete("/identity/entity/name/{name}")
|
|
4350
|
-
name: "openBaoHttp",
|
|
4351
|
-
pathname: "/identity/entity/name/{name}",
|
|
4352
|
-
method: "delete"
|
|
4353
|
-
});
|
|
4211
|
+
return this.request.delete("/identity/entity/name/{name}");
|
|
4354
4212
|
}
|
|
4355
4213
|
groupCreate(args) {
|
|
4356
|
-
const req = this.request.post("/identity/group")
|
|
4357
|
-
name: "openBaoHttp",
|
|
4358
|
-
pathname: "/identity/group",
|
|
4359
|
-
method: "post"
|
|
4360
|
-
});
|
|
4214
|
+
const req = this.request.post("/identity/group");
|
|
4361
4215
|
req.type("application/json");
|
|
4362
4216
|
if (args && "id" in args) req.send({ id: args["id"] });
|
|
4363
4217
|
if (args && "member_entity_ids" in args) req.send({ member_entity_ids: args["member_entity_ids"] });
|
|
@@ -4369,11 +4223,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4369
4223
|
return req;
|
|
4370
4224
|
}
|
|
4371
4225
|
groupCreateAlias(args) {
|
|
4372
|
-
const req = this.request.post("/identity/group-alias")
|
|
4373
|
-
name: "openBaoHttp",
|
|
4374
|
-
pathname: "/identity/group-alias",
|
|
4375
|
-
method: "post"
|
|
4376
|
-
});
|
|
4226
|
+
const req = this.request.post("/identity/group-alias");
|
|
4377
4227
|
req.type("application/json");
|
|
4378
4228
|
if (args && "canonical_id" in args) req.send({ canonical_id: args["canonical_id"] });
|
|
4379
4229
|
if (args && "id" in args) req.send({ id: args["id"] });
|
|
@@ -4382,27 +4232,15 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4382
4232
|
return req;
|
|
4383
4233
|
}
|
|
4384
4234
|
groupListAliasesById(args) {
|
|
4385
|
-
const req = this.request.get("/identity/group-alias/id")
|
|
4386
|
-
name: "openBaoHttp",
|
|
4387
|
-
pathname: "/identity/group-alias/id",
|
|
4388
|
-
method: "get"
|
|
4389
|
-
});
|
|
4235
|
+
const req = this.request.get("/identity/group-alias/id");
|
|
4390
4236
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4391
4237
|
return req;
|
|
4392
4238
|
}
|
|
4393
4239
|
groupReadAliasById(args) {
|
|
4394
|
-
return this.request.get("/identity/group-alias/id/{id}")
|
|
4395
|
-
name: "openBaoHttp",
|
|
4396
|
-
pathname: "/identity/group-alias/id/{id}",
|
|
4397
|
-
method: "get"
|
|
4398
|
-
});
|
|
4240
|
+
return this.request.get("/identity/group-alias/id/{id}");
|
|
4399
4241
|
}
|
|
4400
4242
|
groupUpdateAliasById(args) {
|
|
4401
|
-
const req = this.request.post("/identity/group-alias/id/{id}")
|
|
4402
|
-
name: "openBaoHttp",
|
|
4403
|
-
pathname: "/identity/group-alias/id/{id}",
|
|
4404
|
-
method: "post"
|
|
4405
|
-
});
|
|
4243
|
+
const req = this.request.post("/identity/group-alias/id/{id}");
|
|
4406
4244
|
req.type("application/json");
|
|
4407
4245
|
if (args && "canonical_id" in args) req.send({ canonical_id: args["canonical_id"] });
|
|
4408
4246
|
if (args && "mount_accessor" in args) req.send({ mount_accessor: args["mount_accessor"] });
|
|
@@ -4410,34 +4248,18 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4410
4248
|
return req;
|
|
4411
4249
|
}
|
|
4412
4250
|
groupDeleteAliasById(args) {
|
|
4413
|
-
return this.request.delete("/identity/group-alias/id/{id}")
|
|
4414
|
-
name: "openBaoHttp",
|
|
4415
|
-
pathname: "/identity/group-alias/id/{id}",
|
|
4416
|
-
method: "delete"
|
|
4417
|
-
});
|
|
4251
|
+
return this.request.delete("/identity/group-alias/id/{id}");
|
|
4418
4252
|
}
|
|
4419
4253
|
groupListById(args) {
|
|
4420
|
-
const req = this.request.get("/identity/group/id")
|
|
4421
|
-
name: "openBaoHttp",
|
|
4422
|
-
pathname: "/identity/group/id",
|
|
4423
|
-
method: "get"
|
|
4424
|
-
});
|
|
4254
|
+
const req = this.request.get("/identity/group/id");
|
|
4425
4255
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4426
4256
|
return req;
|
|
4427
4257
|
}
|
|
4428
4258
|
groupReadById(args) {
|
|
4429
|
-
return this.request.get("/identity/group/id/{id}")
|
|
4430
|
-
name: "openBaoHttp",
|
|
4431
|
-
pathname: "/identity/group/id/{id}",
|
|
4432
|
-
method: "get"
|
|
4433
|
-
});
|
|
4259
|
+
return this.request.get("/identity/group/id/{id}");
|
|
4434
4260
|
}
|
|
4435
4261
|
groupUpdateById(args) {
|
|
4436
|
-
const req = this.request.post("/identity/group/id/{id}")
|
|
4437
|
-
name: "openBaoHttp",
|
|
4438
|
-
pathname: "/identity/group/id/{id}",
|
|
4439
|
-
method: "post"
|
|
4440
|
-
});
|
|
4262
|
+
const req = this.request.post("/identity/group/id/{id}");
|
|
4441
4263
|
req.type("application/json");
|
|
4442
4264
|
if (args && "member_entity_ids" in args) req.send({ member_entity_ids: args["member_entity_ids"] });
|
|
4443
4265
|
if (args && "member_group_ids" in args) req.send({ member_group_ids: args["member_group_ids"] });
|
|
@@ -4448,34 +4270,18 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4448
4270
|
return req;
|
|
4449
4271
|
}
|
|
4450
4272
|
groupDeleteById(args) {
|
|
4451
|
-
return this.request.delete("/identity/group/id/{id}")
|
|
4452
|
-
name: "openBaoHttp",
|
|
4453
|
-
pathname: "/identity/group/id/{id}",
|
|
4454
|
-
method: "delete"
|
|
4455
|
-
});
|
|
4273
|
+
return this.request.delete("/identity/group/id/{id}");
|
|
4456
4274
|
}
|
|
4457
4275
|
groupListByName(args) {
|
|
4458
|
-
const req = this.request.get("/identity/group/name")
|
|
4459
|
-
name: "openBaoHttp",
|
|
4460
|
-
pathname: "/identity/group/name",
|
|
4461
|
-
method: "get"
|
|
4462
|
-
});
|
|
4276
|
+
const req = this.request.get("/identity/group/name");
|
|
4463
4277
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4464
4278
|
return req;
|
|
4465
4279
|
}
|
|
4466
4280
|
groupReadByName(args) {
|
|
4467
|
-
return this.request.get("/identity/group/name/{name}")
|
|
4468
|
-
name: "openBaoHttp",
|
|
4469
|
-
pathname: "/identity/group/name/{name}",
|
|
4470
|
-
method: "get"
|
|
4471
|
-
});
|
|
4281
|
+
return this.request.get("/identity/group/name/{name}");
|
|
4472
4282
|
}
|
|
4473
4283
|
groupUpdateByName(args) {
|
|
4474
|
-
const req = this.request.post("/identity/group/name/{name}")
|
|
4475
|
-
name: "openBaoHttp",
|
|
4476
|
-
pathname: "/identity/group/name/{name}",
|
|
4477
|
-
method: "post"
|
|
4478
|
-
});
|
|
4284
|
+
const req = this.request.post("/identity/group/name/{name}");
|
|
4479
4285
|
req.type("application/json");
|
|
4480
4286
|
if (args && "id" in args) req.send({ id: args["id"] });
|
|
4481
4287
|
if (args && "member_entity_ids" in args) req.send({ member_entity_ids: args["member_entity_ids"] });
|
|
@@ -4486,18 +4292,10 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4486
4292
|
return req;
|
|
4487
4293
|
}
|
|
4488
4294
|
groupDeleteByName(args) {
|
|
4489
|
-
return this.request.delete("/identity/group/name/{name}")
|
|
4490
|
-
name: "openBaoHttp",
|
|
4491
|
-
pathname: "/identity/group/name/{name}",
|
|
4492
|
-
method: "delete"
|
|
4493
|
-
});
|
|
4295
|
+
return this.request.delete("/identity/group/name/{name}");
|
|
4494
4296
|
}
|
|
4495
4297
|
entityLookUp(args) {
|
|
4496
|
-
const req = this.request.post("/identity/lookup/entity")
|
|
4497
|
-
name: "openBaoHttp",
|
|
4498
|
-
pathname: "/identity/lookup/entity",
|
|
4499
|
-
method: "post"
|
|
4500
|
-
});
|
|
4298
|
+
const req = this.request.post("/identity/lookup/entity");
|
|
4501
4299
|
req.type("application/json");
|
|
4502
4300
|
if (args && "alias_id" in args) req.send({ alias_id: args["alias_id"] });
|
|
4503
4301
|
if (args && "alias_mount_accessor" in args) req.send({ alias_mount_accessor: args["alias_mount_accessor"] });
|
|
@@ -4507,11 +4305,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4507
4305
|
return req;
|
|
4508
4306
|
}
|
|
4509
4307
|
groupLookUp(args) {
|
|
4510
|
-
const req = this.request.post("/identity/lookup/group")
|
|
4511
|
-
name: "openBaoHttp",
|
|
4512
|
-
pathname: "/identity/lookup/group",
|
|
4513
|
-
method: "post"
|
|
4514
|
-
});
|
|
4308
|
+
const req = this.request.post("/identity/lookup/group");
|
|
4515
4309
|
req.type("application/json");
|
|
4516
4310
|
if (args && "alias_id" in args) req.send({ alias_id: args["alias_id"] });
|
|
4517
4311
|
if (args && "alias_mount_accessor" in args) req.send({ alias_mount_accessor: args["alias_mount_accessor"] });
|
|
@@ -4525,11 +4319,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4525
4319
|
*
|
|
4526
4320
|
*/
|
|
4527
4321
|
mfaListLoginEnforcements(args) {
|
|
4528
|
-
const req = this.request.get("/identity/mfa/login-enforcement")
|
|
4529
|
-
name: "openBaoHttp",
|
|
4530
|
-
pathname: "/identity/mfa/login-enforcement",
|
|
4531
|
-
method: "get"
|
|
4532
|
-
});
|
|
4322
|
+
const req = this.request.get("/identity/mfa/login-enforcement");
|
|
4533
4323
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4534
4324
|
return req;
|
|
4535
4325
|
}
|
|
@@ -4538,22 +4328,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4538
4328
|
*
|
|
4539
4329
|
*/
|
|
4540
4330
|
mfaReadLoginEnforcement(args) {
|
|
4541
|
-
return this.request.get("/identity/mfa/login-enforcement/{name}")
|
|
4542
|
-
name: "openBaoHttp",
|
|
4543
|
-
pathname: "/identity/mfa/login-enforcement/{name}",
|
|
4544
|
-
method: "get"
|
|
4545
|
-
});
|
|
4331
|
+
return this.request.get("/identity/mfa/login-enforcement/{name}");
|
|
4546
4332
|
}
|
|
4547
4333
|
/**
|
|
4548
4334
|
* Create or update a login enforcement
|
|
4549
4335
|
*
|
|
4550
4336
|
*/
|
|
4551
4337
|
mfaWriteLoginEnforcement(args) {
|
|
4552
|
-
const req = this.request.post("/identity/mfa/login-enforcement/{name}")
|
|
4553
|
-
name: "openBaoHttp",
|
|
4554
|
-
pathname: "/identity/mfa/login-enforcement/{name}",
|
|
4555
|
-
method: "post"
|
|
4556
|
-
});
|
|
4338
|
+
const req = this.request.post("/identity/mfa/login-enforcement/{name}");
|
|
4557
4339
|
req.type("application/json");
|
|
4558
4340
|
if (args && "auth_method_accessors" in args) req.send({ auth_method_accessors: args["auth_method_accessors"] });
|
|
4559
4341
|
if (args && "auth_method_types" in args) req.send({ auth_method_types: args["auth_method_types"] });
|
|
@@ -4567,22 +4349,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4567
4349
|
*
|
|
4568
4350
|
*/
|
|
4569
4351
|
mfaDeleteLoginEnforcement(args) {
|
|
4570
|
-
return this.request.delete("/identity/mfa/login-enforcement/{name}")
|
|
4571
|
-
name: "openBaoHttp",
|
|
4572
|
-
pathname: "/identity/mfa/login-enforcement/{name}",
|
|
4573
|
-
method: "delete"
|
|
4574
|
-
});
|
|
4352
|
+
return this.request.delete("/identity/mfa/login-enforcement/{name}");
|
|
4575
4353
|
}
|
|
4576
4354
|
/**
|
|
4577
4355
|
* List MFA method configurations for all MFA methods
|
|
4578
4356
|
*
|
|
4579
4357
|
*/
|
|
4580
4358
|
mfaListMethods(args) {
|
|
4581
|
-
const req = this.request.get("/identity/mfa/method")
|
|
4582
|
-
name: "openBaoHttp",
|
|
4583
|
-
pathname: "/identity/mfa/method",
|
|
4584
|
-
method: "get"
|
|
4585
|
-
});
|
|
4359
|
+
const req = this.request.get("/identity/mfa/method");
|
|
4586
4360
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4587
4361
|
return req;
|
|
4588
4362
|
}
|
|
@@ -4591,11 +4365,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4591
4365
|
*
|
|
4592
4366
|
*/
|
|
4593
4367
|
mfaListDuoMethods(args) {
|
|
4594
|
-
const req = this.request.get("/identity/mfa/method/duo")
|
|
4595
|
-
name: "openBaoHttp",
|
|
4596
|
-
pathname: "/identity/mfa/method/duo",
|
|
4597
|
-
method: "get"
|
|
4598
|
-
});
|
|
4368
|
+
const req = this.request.get("/identity/mfa/method/duo");
|
|
4599
4369
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4600
4370
|
return req;
|
|
4601
4371
|
}
|
|
@@ -4604,22 +4374,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4604
4374
|
*
|
|
4605
4375
|
*/
|
|
4606
4376
|
mfaReadDuoMethodConfiguration(args) {
|
|
4607
|
-
return this.request.get("/identity/mfa/method/duo/{method_id}")
|
|
4608
|
-
name: "openBaoHttp",
|
|
4609
|
-
pathname: "/identity/mfa/method/duo/{method_id}",
|
|
4610
|
-
method: "get"
|
|
4611
|
-
});
|
|
4377
|
+
return this.request.get("/identity/mfa/method/duo/{method_id}");
|
|
4612
4378
|
}
|
|
4613
4379
|
/**
|
|
4614
4380
|
* Update or create a configuration for the given MFA method
|
|
4615
4381
|
*
|
|
4616
4382
|
*/
|
|
4617
4383
|
mfaConfigureDuoMethod(args) {
|
|
4618
|
-
const req = this.request.post("/identity/mfa/method/duo/{method_id}")
|
|
4619
|
-
name: "openBaoHttp",
|
|
4620
|
-
pathname: "/identity/mfa/method/duo/{method_id}",
|
|
4621
|
-
method: "post"
|
|
4622
|
-
});
|
|
4384
|
+
const req = this.request.post("/identity/mfa/method/duo/{method_id}");
|
|
4623
4385
|
req.type("application/json");
|
|
4624
4386
|
if (args && "api_hostname" in args) req.send({ api_hostname: args["api_hostname"] });
|
|
4625
4387
|
if (args && "integration_key" in args) req.send({ integration_key: args["integration_key"] });
|
|
@@ -4635,22 +4397,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4635
4397
|
*
|
|
4636
4398
|
*/
|
|
4637
4399
|
mfaDeleteDuoMethod(args) {
|
|
4638
|
-
return this.request.delete("/identity/mfa/method/duo/{method_id}")
|
|
4639
|
-
name: "openBaoHttp",
|
|
4640
|
-
pathname: "/identity/mfa/method/duo/{method_id}",
|
|
4641
|
-
method: "delete"
|
|
4642
|
-
});
|
|
4400
|
+
return this.request.delete("/identity/mfa/method/duo/{method_id}");
|
|
4643
4401
|
}
|
|
4644
4402
|
/**
|
|
4645
4403
|
* List MFA method configurations for the given MFA method
|
|
4646
4404
|
*
|
|
4647
4405
|
*/
|
|
4648
4406
|
mfaListOktaMethods(args) {
|
|
4649
|
-
const req = this.request.get("/identity/mfa/method/okta")
|
|
4650
|
-
name: "openBaoHttp",
|
|
4651
|
-
pathname: "/identity/mfa/method/okta",
|
|
4652
|
-
method: "get"
|
|
4653
|
-
});
|
|
4407
|
+
const req = this.request.get("/identity/mfa/method/okta");
|
|
4654
4408
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4655
4409
|
return req;
|
|
4656
4410
|
}
|
|
@@ -4659,22 +4413,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4659
4413
|
*
|
|
4660
4414
|
*/
|
|
4661
4415
|
mfaReadOktaMethodConfiguration(args) {
|
|
4662
|
-
return this.request.get("/identity/mfa/method/okta/{method_id}")
|
|
4663
|
-
name: "openBaoHttp",
|
|
4664
|
-
pathname: "/identity/mfa/method/okta/{method_id}",
|
|
4665
|
-
method: "get"
|
|
4666
|
-
});
|
|
4416
|
+
return this.request.get("/identity/mfa/method/okta/{method_id}");
|
|
4667
4417
|
}
|
|
4668
4418
|
/**
|
|
4669
4419
|
* Update or create a configuration for the given MFA method
|
|
4670
4420
|
*
|
|
4671
4421
|
*/
|
|
4672
4422
|
mfaConfigureOktaMethod(args) {
|
|
4673
|
-
const req = this.request.post("/identity/mfa/method/okta/{method_id}")
|
|
4674
|
-
name: "openBaoHttp",
|
|
4675
|
-
pathname: "/identity/mfa/method/okta/{method_id}",
|
|
4676
|
-
method: "post"
|
|
4677
|
-
});
|
|
4423
|
+
const req = this.request.post("/identity/mfa/method/okta/{method_id}");
|
|
4678
4424
|
req.type("application/json");
|
|
4679
4425
|
if (args && "api_token" in args) req.send({ api_token: args["api_token"] });
|
|
4680
4426
|
if (args && "base_url" in args) req.send({ base_url: args["base_url"] });
|
|
@@ -4690,22 +4436,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4690
4436
|
*
|
|
4691
4437
|
*/
|
|
4692
4438
|
mfaDeleteOktaMethod(args) {
|
|
4693
|
-
return this.request.delete("/identity/mfa/method/okta/{method_id}")
|
|
4694
|
-
name: "openBaoHttp",
|
|
4695
|
-
pathname: "/identity/mfa/method/okta/{method_id}",
|
|
4696
|
-
method: "delete"
|
|
4697
|
-
});
|
|
4439
|
+
return this.request.delete("/identity/mfa/method/okta/{method_id}");
|
|
4698
4440
|
}
|
|
4699
4441
|
/**
|
|
4700
4442
|
* List MFA method configurations for the given MFA method
|
|
4701
4443
|
*
|
|
4702
4444
|
*/
|
|
4703
4445
|
mfaListPingIdMethods(args) {
|
|
4704
|
-
const req = this.request.get("/identity/mfa/method/pingid")
|
|
4705
|
-
name: "openBaoHttp",
|
|
4706
|
-
pathname: "/identity/mfa/method/pingid",
|
|
4707
|
-
method: "get"
|
|
4708
|
-
});
|
|
4446
|
+
const req = this.request.get("/identity/mfa/method/pingid");
|
|
4709
4447
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4710
4448
|
return req;
|
|
4711
4449
|
}
|
|
@@ -4714,22 +4452,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4714
4452
|
*
|
|
4715
4453
|
*/
|
|
4716
4454
|
mfaReadPingIdMethodConfiguration(args) {
|
|
4717
|
-
return this.request.get("/identity/mfa/method/pingid/{method_id}")
|
|
4718
|
-
name: "openBaoHttp",
|
|
4719
|
-
pathname: "/identity/mfa/method/pingid/{method_id}",
|
|
4720
|
-
method: "get"
|
|
4721
|
-
});
|
|
4455
|
+
return this.request.get("/identity/mfa/method/pingid/{method_id}");
|
|
4722
4456
|
}
|
|
4723
4457
|
/**
|
|
4724
4458
|
* Update or create a configuration for the given MFA method
|
|
4725
4459
|
*
|
|
4726
4460
|
*/
|
|
4727
4461
|
mfaConfigurePingIdMethod(args) {
|
|
4728
|
-
const req = this.request.post("/identity/mfa/method/pingid/{method_id}")
|
|
4729
|
-
name: "openBaoHttp",
|
|
4730
|
-
pathname: "/identity/mfa/method/pingid/{method_id}",
|
|
4731
|
-
method: "post"
|
|
4732
|
-
});
|
|
4462
|
+
const req = this.request.post("/identity/mfa/method/pingid/{method_id}");
|
|
4733
4463
|
req.type("application/json");
|
|
4734
4464
|
if (args && "method_name" in args) req.send({ method_name: args["method_name"] });
|
|
4735
4465
|
if (args && "settings_file_base64" in args) req.send({ settings_file_base64: args["settings_file_base64"] });
|
|
@@ -4741,22 +4471,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4741
4471
|
*
|
|
4742
4472
|
*/
|
|
4743
4473
|
mfaDeletePingIdMethod(args) {
|
|
4744
|
-
return this.request.delete("/identity/mfa/method/pingid/{method_id}")
|
|
4745
|
-
name: "openBaoHttp",
|
|
4746
|
-
pathname: "/identity/mfa/method/pingid/{method_id}",
|
|
4747
|
-
method: "delete"
|
|
4748
|
-
});
|
|
4474
|
+
return this.request.delete("/identity/mfa/method/pingid/{method_id}");
|
|
4749
4475
|
}
|
|
4750
4476
|
/**
|
|
4751
4477
|
* List MFA method configurations for the given MFA method
|
|
4752
4478
|
*
|
|
4753
4479
|
*/
|
|
4754
4480
|
mfaListTotpMethods(args) {
|
|
4755
|
-
const req = this.request.get("/identity/mfa/method/totp")
|
|
4756
|
-
name: "openBaoHttp",
|
|
4757
|
-
pathname: "/identity/mfa/method/totp",
|
|
4758
|
-
method: "get"
|
|
4759
|
-
});
|
|
4481
|
+
const req = this.request.get("/identity/mfa/method/totp");
|
|
4760
4482
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4761
4483
|
return req;
|
|
4762
4484
|
}
|
|
@@ -4765,11 +4487,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4765
4487
|
*
|
|
4766
4488
|
*/
|
|
4767
4489
|
mfaAdminDestroyTotpSecret(args) {
|
|
4768
|
-
const req = this.request.post("/identity/mfa/method/totp/admin-destroy")
|
|
4769
|
-
name: "openBaoHttp",
|
|
4770
|
-
pathname: "/identity/mfa/method/totp/admin-destroy",
|
|
4771
|
-
method: "post"
|
|
4772
|
-
});
|
|
4490
|
+
const req = this.request.post("/identity/mfa/method/totp/admin-destroy");
|
|
4773
4491
|
req.type("application/json");
|
|
4774
4492
|
if (args && "entity_id" in args) req.send({ entity_id: args["entity_id"] });
|
|
4775
4493
|
if (args && "method_id" in args) req.send({ method_id: args["method_id"] });
|
|
@@ -4780,11 +4498,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4780
4498
|
*
|
|
4781
4499
|
*/
|
|
4782
4500
|
mfaAdminGenerateTotpSecret(args) {
|
|
4783
|
-
const req = this.request.post("/identity/mfa/method/totp/admin-generate")
|
|
4784
|
-
name: "openBaoHttp",
|
|
4785
|
-
pathname: "/identity/mfa/method/totp/admin-generate",
|
|
4786
|
-
method: "post"
|
|
4787
|
-
});
|
|
4501
|
+
const req = this.request.post("/identity/mfa/method/totp/admin-generate");
|
|
4788
4502
|
req.type("application/json");
|
|
4789
4503
|
if (args && "entity_id" in args) req.send({ entity_id: args["entity_id"] });
|
|
4790
4504
|
if (args && "method_id" in args) req.send({ method_id: args["method_id"] });
|
|
@@ -4795,11 +4509,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4795
4509
|
*
|
|
4796
4510
|
*/
|
|
4797
4511
|
mfaGenerateTotpSecret(args) {
|
|
4798
|
-
const req = this.request.post("/identity/mfa/method/totp/generate")
|
|
4799
|
-
name: "openBaoHttp",
|
|
4800
|
-
pathname: "/identity/mfa/method/totp/generate",
|
|
4801
|
-
method: "post"
|
|
4802
|
-
});
|
|
4512
|
+
const req = this.request.post("/identity/mfa/method/totp/generate");
|
|
4803
4513
|
req.type("application/json");
|
|
4804
4514
|
if (args && "method_id" in args) req.send({ method_id: args["method_id"] });
|
|
4805
4515
|
return req;
|
|
@@ -4809,22 +4519,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4809
4519
|
*
|
|
4810
4520
|
*/
|
|
4811
4521
|
mfaReadTotpMethodConfiguration(args) {
|
|
4812
|
-
return this.request.get("/identity/mfa/method/totp/{method_id}")
|
|
4813
|
-
name: "openBaoHttp",
|
|
4814
|
-
pathname: "/identity/mfa/method/totp/{method_id}",
|
|
4815
|
-
method: "get"
|
|
4816
|
-
});
|
|
4522
|
+
return this.request.get("/identity/mfa/method/totp/{method_id}");
|
|
4817
4523
|
}
|
|
4818
4524
|
/**
|
|
4819
4525
|
* Update or create a configuration for the given MFA method
|
|
4820
4526
|
*
|
|
4821
4527
|
*/
|
|
4822
4528
|
mfaConfigureTotpMethod(args) {
|
|
4823
|
-
const req = this.request.post("/identity/mfa/method/totp/{method_id}")
|
|
4824
|
-
name: "openBaoHttp",
|
|
4825
|
-
pathname: "/identity/mfa/method/totp/{method_id}",
|
|
4826
|
-
method: "post"
|
|
4827
|
-
});
|
|
4529
|
+
const req = this.request.post("/identity/mfa/method/totp/{method_id}");
|
|
4828
4530
|
req.type("application/json");
|
|
4829
4531
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
4830
4532
|
if (args && "digits" in args) req.send({ digits: args["digits"] });
|
|
@@ -4842,93 +4544,49 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4842
4544
|
*
|
|
4843
4545
|
*/
|
|
4844
4546
|
mfaDeleteTotpMethod(args) {
|
|
4845
|
-
return this.request.delete("/identity/mfa/method/totp/{method_id}")
|
|
4846
|
-
name: "openBaoHttp",
|
|
4847
|
-
pathname: "/identity/mfa/method/totp/{method_id}",
|
|
4848
|
-
method: "delete"
|
|
4849
|
-
});
|
|
4547
|
+
return this.request.delete("/identity/mfa/method/totp/{method_id}");
|
|
4850
4548
|
}
|
|
4851
4549
|
/**
|
|
4852
4550
|
* Read the current configuration for the given ID regardless of the MFA method type
|
|
4853
4551
|
*
|
|
4854
4552
|
*/
|
|
4855
4553
|
mfaReadMethodConfiguration(args) {
|
|
4856
|
-
return this.request.get("/identity/mfa/method/{method_id}")
|
|
4857
|
-
name: "openBaoHttp",
|
|
4858
|
-
pathname: "/identity/mfa/method/{method_id}",
|
|
4859
|
-
method: "get"
|
|
4860
|
-
});
|
|
4554
|
+
return this.request.get("/identity/mfa/method/{method_id}");
|
|
4861
4555
|
}
|
|
4862
4556
|
oidcReadPublicKeys(args) {
|
|
4863
|
-
return this.request.get("/identity/oidc/.well-known/keys")
|
|
4864
|
-
name: "openBaoHttp",
|
|
4865
|
-
pathname: "/identity/oidc/.well-known/keys",
|
|
4866
|
-
method: "get"
|
|
4867
|
-
});
|
|
4557
|
+
return this.request.get("/identity/oidc/.well-known/keys");
|
|
4868
4558
|
}
|
|
4869
4559
|
oidcReadOpenIdConfiguration(args) {
|
|
4870
|
-
return this.request.get("/identity/oidc/.well-known/openid-configuration")
|
|
4871
|
-
name: "openBaoHttp",
|
|
4872
|
-
pathname: "/identity/oidc/.well-known/openid-configuration",
|
|
4873
|
-
method: "get"
|
|
4874
|
-
});
|
|
4560
|
+
return this.request.get("/identity/oidc/.well-known/openid-configuration");
|
|
4875
4561
|
}
|
|
4876
4562
|
oidcListAssignments(args) {
|
|
4877
|
-
const req = this.request.get("/identity/oidc/assignment")
|
|
4878
|
-
name: "openBaoHttp",
|
|
4879
|
-
pathname: "/identity/oidc/assignment",
|
|
4880
|
-
method: "get"
|
|
4881
|
-
});
|
|
4563
|
+
const req = this.request.get("/identity/oidc/assignment");
|
|
4882
4564
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4883
4565
|
return req;
|
|
4884
4566
|
}
|
|
4885
4567
|
oidcReadAssignment(args) {
|
|
4886
|
-
return this.request.get("/identity/oidc/assignment/{name}")
|
|
4887
|
-
name: "openBaoHttp",
|
|
4888
|
-
pathname: "/identity/oidc/assignment/{name}",
|
|
4889
|
-
method: "get"
|
|
4890
|
-
});
|
|
4568
|
+
return this.request.get("/identity/oidc/assignment/{name}");
|
|
4891
4569
|
}
|
|
4892
4570
|
oidcWriteAssignment(args) {
|
|
4893
|
-
const req = this.request.post("/identity/oidc/assignment/{name}")
|
|
4894
|
-
name: "openBaoHttp",
|
|
4895
|
-
pathname: "/identity/oidc/assignment/{name}",
|
|
4896
|
-
method: "post"
|
|
4897
|
-
});
|
|
4571
|
+
const req = this.request.post("/identity/oidc/assignment/{name}");
|
|
4898
4572
|
req.type("application/json");
|
|
4899
4573
|
if (args && "entity_ids" in args) req.send({ entity_ids: args["entity_ids"] });
|
|
4900
4574
|
if (args && "group_ids" in args) req.send({ group_ids: args["group_ids"] });
|
|
4901
4575
|
return req;
|
|
4902
4576
|
}
|
|
4903
4577
|
oidcDeleteAssignment(args) {
|
|
4904
|
-
return this.request.delete("/identity/oidc/assignment/{name}")
|
|
4905
|
-
name: "openBaoHttp",
|
|
4906
|
-
pathname: "/identity/oidc/assignment/{name}",
|
|
4907
|
-
method: "delete"
|
|
4908
|
-
});
|
|
4578
|
+
return this.request.delete("/identity/oidc/assignment/{name}");
|
|
4909
4579
|
}
|
|
4910
4580
|
oidcListClients(args) {
|
|
4911
|
-
const req = this.request.get("/identity/oidc/client")
|
|
4912
|
-
name: "openBaoHttp",
|
|
4913
|
-
pathname: "/identity/oidc/client",
|
|
4914
|
-
method: "get"
|
|
4915
|
-
});
|
|
4581
|
+
const req = this.request.get("/identity/oidc/client");
|
|
4916
4582
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4917
4583
|
return req;
|
|
4918
4584
|
}
|
|
4919
4585
|
oidcReadClient(args) {
|
|
4920
|
-
return this.request.get("/identity/oidc/client/{name}")
|
|
4921
|
-
name: "openBaoHttp",
|
|
4922
|
-
pathname: "/identity/oidc/client/{name}",
|
|
4923
|
-
method: "get"
|
|
4924
|
-
});
|
|
4586
|
+
return this.request.get("/identity/oidc/client/{name}");
|
|
4925
4587
|
}
|
|
4926
4588
|
oidcWriteClient(args) {
|
|
4927
|
-
const req = this.request.post("/identity/oidc/client/{name}")
|
|
4928
|
-
name: "openBaoHttp",
|
|
4929
|
-
pathname: "/identity/oidc/client/{name}",
|
|
4930
|
-
method: "post"
|
|
4931
|
-
});
|
|
4589
|
+
const req = this.request.post("/identity/oidc/client/{name}");
|
|
4932
4590
|
req.type("application/json");
|
|
4933
4591
|
if (args && "access_token_ttl" in args) req.send({ access_token_ttl: args["access_token_ttl"] });
|
|
4934
4592
|
if (args && "assignments" in args) req.send({ assignments: args["assignments"] });
|
|
@@ -4941,62 +4599,34 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4941
4599
|
return req;
|
|
4942
4600
|
}
|
|
4943
4601
|
oidcDeleteClient(args) {
|
|
4944
|
-
return this.request.delete("/identity/oidc/client/{name}")
|
|
4945
|
-
name: "openBaoHttp",
|
|
4946
|
-
pathname: "/identity/oidc/client/{name}",
|
|
4947
|
-
method: "delete"
|
|
4948
|
-
});
|
|
4602
|
+
return this.request.delete("/identity/oidc/client/{name}");
|
|
4949
4603
|
}
|
|
4950
4604
|
oidcReadConfiguration(args) {
|
|
4951
|
-
return this.request.get("/identity/oidc/config")
|
|
4952
|
-
name: "openBaoHttp",
|
|
4953
|
-
pathname: "/identity/oidc/config",
|
|
4954
|
-
method: "get"
|
|
4955
|
-
});
|
|
4605
|
+
return this.request.get("/identity/oidc/config");
|
|
4956
4606
|
}
|
|
4957
4607
|
oidcConfigure(args) {
|
|
4958
|
-
const req = this.request.post("/identity/oidc/config")
|
|
4959
|
-
name: "openBaoHttp",
|
|
4960
|
-
pathname: "/identity/oidc/config",
|
|
4961
|
-
method: "post"
|
|
4962
|
-
});
|
|
4608
|
+
const req = this.request.post("/identity/oidc/config");
|
|
4963
4609
|
req.type("application/json");
|
|
4964
4610
|
if (args && "issuer" in args) req.send({ issuer: args["issuer"] });
|
|
4965
4611
|
return req;
|
|
4966
4612
|
}
|
|
4967
4613
|
oidcIntrospect(args) {
|
|
4968
|
-
const req = this.request.post("/identity/oidc/introspect")
|
|
4969
|
-
name: "openBaoHttp",
|
|
4970
|
-
pathname: "/identity/oidc/introspect",
|
|
4971
|
-
method: "post"
|
|
4972
|
-
});
|
|
4614
|
+
const req = this.request.post("/identity/oidc/introspect");
|
|
4973
4615
|
req.type("application/json");
|
|
4974
4616
|
if (args && "client_id" in args) req.send({ client_id: args["client_id"] });
|
|
4975
4617
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
4976
4618
|
return req;
|
|
4977
4619
|
}
|
|
4978
4620
|
oidcListKeys(args) {
|
|
4979
|
-
const req = this.request.get("/identity/oidc/key")
|
|
4980
|
-
name: "openBaoHttp",
|
|
4981
|
-
pathname: "/identity/oidc/key",
|
|
4982
|
-
method: "get"
|
|
4983
|
-
});
|
|
4621
|
+
const req = this.request.get("/identity/oidc/key");
|
|
4984
4622
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4985
4623
|
return req;
|
|
4986
4624
|
}
|
|
4987
4625
|
oidcReadKey(args) {
|
|
4988
|
-
return this.request.get("/identity/oidc/key/{name}")
|
|
4989
|
-
name: "openBaoHttp",
|
|
4990
|
-
pathname: "/identity/oidc/key/{name}",
|
|
4991
|
-
method: "get"
|
|
4992
|
-
});
|
|
4626
|
+
return this.request.get("/identity/oidc/key/{name}");
|
|
4993
4627
|
}
|
|
4994
4628
|
oidcWriteKey(args) {
|
|
4995
|
-
const req = this.request.post("/identity/oidc/key/{name}")
|
|
4996
|
-
name: "openBaoHttp",
|
|
4997
|
-
pathname: "/identity/oidc/key/{name}",
|
|
4998
|
-
method: "post"
|
|
4999
|
-
});
|
|
4629
|
+
const req = this.request.post("/identity/oidc/key/{name}");
|
|
5000
4630
|
req.type("application/json");
|
|
5001
4631
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
5002
4632
|
if (args && "allowed_client_ids" in args) req.send({ allowed_client_ids: args["allowed_client_ids"] });
|
|
@@ -5005,44 +4635,24 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5005
4635
|
return req;
|
|
5006
4636
|
}
|
|
5007
4637
|
oidcDeleteKey(args) {
|
|
5008
|
-
return this.request.delete("/identity/oidc/key/{name}")
|
|
5009
|
-
name: "openBaoHttp",
|
|
5010
|
-
pathname: "/identity/oidc/key/{name}",
|
|
5011
|
-
method: "delete"
|
|
5012
|
-
});
|
|
4638
|
+
return this.request.delete("/identity/oidc/key/{name}");
|
|
5013
4639
|
}
|
|
5014
4640
|
oidcRotateKey(args) {
|
|
5015
|
-
const req = this.request.post("/identity/oidc/key/{name}/rotate")
|
|
5016
|
-
name: "openBaoHttp",
|
|
5017
|
-
pathname: "/identity/oidc/key/{name}/rotate",
|
|
5018
|
-
method: "post"
|
|
5019
|
-
});
|
|
4641
|
+
const req = this.request.post("/identity/oidc/key/{name}/rotate");
|
|
5020
4642
|
req.type("application/json");
|
|
5021
4643
|
if (args && "verification_ttl" in args) req.send({ verification_ttl: args["verification_ttl"] });
|
|
5022
4644
|
return req;
|
|
5023
4645
|
}
|
|
5024
4646
|
oidcListProviders(args) {
|
|
5025
|
-
const req = this.request.get("/identity/oidc/provider")
|
|
5026
|
-
name: "openBaoHttp",
|
|
5027
|
-
pathname: "/identity/oidc/provider",
|
|
5028
|
-
method: "get"
|
|
5029
|
-
});
|
|
4647
|
+
const req = this.request.get("/identity/oidc/provider");
|
|
5030
4648
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
5031
4649
|
return req;
|
|
5032
4650
|
}
|
|
5033
4651
|
oidcReadProvider(args) {
|
|
5034
|
-
return this.request.get("/identity/oidc/provider/{name}")
|
|
5035
|
-
name: "openBaoHttp",
|
|
5036
|
-
pathname: "/identity/oidc/provider/{name}",
|
|
5037
|
-
method: "get"
|
|
5038
|
-
});
|
|
4652
|
+
return this.request.get("/identity/oidc/provider/{name}");
|
|
5039
4653
|
}
|
|
5040
4654
|
oidcWriteProvider(args) {
|
|
5041
|
-
const req = this.request.post("/identity/oidc/provider/{name}")
|
|
5042
|
-
name: "openBaoHttp",
|
|
5043
|
-
pathname: "/identity/oidc/provider/{name}",
|
|
5044
|
-
method: "post"
|
|
5045
|
-
});
|
|
4655
|
+
const req = this.request.post("/identity/oidc/provider/{name}");
|
|
5046
4656
|
req.type("application/json");
|
|
5047
4657
|
if (args && "allowed_client_ids" in args) req.send({ allowed_client_ids: args["allowed_client_ids"] });
|
|
5048
4658
|
if (args && "issuer" in args) req.send({ issuer: args["issuer"] });
|
|
@@ -5050,39 +4660,19 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5050
4660
|
return req;
|
|
5051
4661
|
}
|
|
5052
4662
|
oidcDeleteProvider(args) {
|
|
5053
|
-
return this.request.delete("/identity/oidc/provider/{name}")
|
|
5054
|
-
name: "openBaoHttp",
|
|
5055
|
-
pathname: "/identity/oidc/provider/{name}",
|
|
5056
|
-
method: "delete"
|
|
5057
|
-
});
|
|
4663
|
+
return this.request.delete("/identity/oidc/provider/{name}");
|
|
5058
4664
|
}
|
|
5059
4665
|
oidcReadProviderPublicKeys(args) {
|
|
5060
|
-
return this.request.get("/identity/oidc/provider/{name}/.well-known/keys")
|
|
5061
|
-
name: "openBaoHttp",
|
|
5062
|
-
pathname: "/identity/oidc/provider/{name}/.well-known/keys",
|
|
5063
|
-
method: "get"
|
|
5064
|
-
});
|
|
4666
|
+
return this.request.get("/identity/oidc/provider/{name}/.well-known/keys");
|
|
5065
4667
|
}
|
|
5066
4668
|
oidcReadProviderOpenIdConfiguration(args) {
|
|
5067
|
-
return this.request.get("/identity/oidc/provider/{name}/.well-known/openid-configuration")
|
|
5068
|
-
name: "openBaoHttp",
|
|
5069
|
-
pathname: "/identity/oidc/provider/{name}/.well-known/openid-configuration",
|
|
5070
|
-
method: "get"
|
|
5071
|
-
});
|
|
4669
|
+
return this.request.get("/identity/oidc/provider/{name}/.well-known/openid-configuration");
|
|
5072
4670
|
}
|
|
5073
4671
|
oidcProviderAuthorize(args) {
|
|
5074
|
-
return this.request.get("/identity/oidc/provider/{name}/authorize")
|
|
5075
|
-
name: "openBaoHttp",
|
|
5076
|
-
pathname: "/identity/oidc/provider/{name}/authorize",
|
|
5077
|
-
method: "get"
|
|
5078
|
-
});
|
|
4672
|
+
return this.request.get("/identity/oidc/provider/{name}/authorize");
|
|
5079
4673
|
}
|
|
5080
4674
|
oidcProviderAuthorizeWithParameters(args) {
|
|
5081
|
-
const req = this.request.post("/identity/oidc/provider/{name}/authorize")
|
|
5082
|
-
name: "openBaoHttp",
|
|
5083
|
-
pathname: "/identity/oidc/provider/{name}/authorize",
|
|
5084
|
-
method: "post"
|
|
5085
|
-
});
|
|
4675
|
+
const req = this.request.post("/identity/oidc/provider/{name}/authorize");
|
|
5086
4676
|
req.type("application/json");
|
|
5087
4677
|
if (args && "client_id" in args) req.send({ client_id: args["client_id"] });
|
|
5088
4678
|
if (args && "code_challenge" in args) req.send({ code_challenge: args["code_challenge"] });
|
|
@@ -5096,11 +4686,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5096
4686
|
return req;
|
|
5097
4687
|
}
|
|
5098
4688
|
oidcProviderToken(args) {
|
|
5099
|
-
const req = this.request.post("/identity/oidc/provider/{name}/token")
|
|
5100
|
-
name: "openBaoHttp",
|
|
5101
|
-
pathname: "/identity/oidc/provider/{name}/token",
|
|
5102
|
-
method: "post"
|
|
5103
|
-
});
|
|
4689
|
+
const req = this.request.post("/identity/oidc/provider/{name}/token");
|
|
5104
4690
|
req.type("application/json");
|
|
5105
4691
|
if (args && "client_id" in args) req.send({ client_id: args["client_id"] });
|
|
5106
4692
|
if (args && "client_secret" in args) req.send({ client_secret: args["client_secret"] });
|
|
@@ -5112,41 +4698,18 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5112
4698
|
return req;
|
|
5113
4699
|
}
|
|
5114
4700
|
oidcProviderUserInfo(args) {
|
|
5115
|
-
return this.request.get("/identity/oidc/provider/{name}/userinfo")
|
|
5116
|
-
name: "openBaoHttp",
|
|
5117
|
-
pathname: "/identity/oidc/provider/{name}/userinfo",
|
|
5118
|
-
method: "get"
|
|
5119
|
-
});
|
|
5120
|
-
}
|
|
5121
|
-
oidcProviderUserInfo2(args) {
|
|
5122
|
-
return this.request.post("/identity/oidc/provider/{name}/userinfo").option("module", {
|
|
5123
|
-
name: "openBaoHttp",
|
|
5124
|
-
pathname: "/identity/oidc/provider/{name}/userinfo",
|
|
5125
|
-
method: "post"
|
|
5126
|
-
});
|
|
4701
|
+
return this.request.get("/identity/oidc/provider/{name}/userinfo");
|
|
5127
4702
|
}
|
|
5128
4703
|
oidcListRoles(args) {
|
|
5129
|
-
const req = this.request.get("/identity/oidc/role")
|
|
5130
|
-
name: "openBaoHttp",
|
|
5131
|
-
pathname: "/identity/oidc/role",
|
|
5132
|
-
method: "get"
|
|
5133
|
-
});
|
|
4704
|
+
const req = this.request.get("/identity/oidc/role");
|
|
5134
4705
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
5135
4706
|
return req;
|
|
5136
4707
|
}
|
|
5137
4708
|
oidcReadRole(args) {
|
|
5138
|
-
return this.request.get("/identity/oidc/role/{name}")
|
|
5139
|
-
name: "openBaoHttp",
|
|
5140
|
-
pathname: "/identity/oidc/role/{name}",
|
|
5141
|
-
method: "get"
|
|
5142
|
-
});
|
|
4709
|
+
return this.request.get("/identity/oidc/role/{name}");
|
|
5143
4710
|
}
|
|
5144
4711
|
oidcWriteRole(args) {
|
|
5145
|
-
const req = this.request.post("/identity/oidc/role/{name}")
|
|
5146
|
-
name: "openBaoHttp",
|
|
5147
|
-
pathname: "/identity/oidc/role/{name}",
|
|
5148
|
-
method: "post"
|
|
5149
|
-
});
|
|
4712
|
+
const req = this.request.post("/identity/oidc/role/{name}");
|
|
5150
4713
|
req.type("application/json");
|
|
5151
4714
|
if (args && "client_id" in args) req.send({ client_id: args["client_id"] });
|
|
5152
4715
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
@@ -5155,59 +4718,31 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5155
4718
|
return req;
|
|
5156
4719
|
}
|
|
5157
4720
|
oidcDeleteRole(args) {
|
|
5158
|
-
return this.request.delete("/identity/oidc/role/{name}")
|
|
5159
|
-
name: "openBaoHttp",
|
|
5160
|
-
pathname: "/identity/oidc/role/{name}",
|
|
5161
|
-
method: "delete"
|
|
5162
|
-
});
|
|
4721
|
+
return this.request.delete("/identity/oidc/role/{name}");
|
|
5163
4722
|
}
|
|
5164
4723
|
oidcListScopes(args) {
|
|
5165
|
-
const req = this.request.get("/identity/oidc/scope")
|
|
5166
|
-
name: "openBaoHttp",
|
|
5167
|
-
pathname: "/identity/oidc/scope",
|
|
5168
|
-
method: "get"
|
|
5169
|
-
});
|
|
4724
|
+
const req = this.request.get("/identity/oidc/scope");
|
|
5170
4725
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
5171
4726
|
return req;
|
|
5172
4727
|
}
|
|
5173
4728
|
oidcReadScope(args) {
|
|
5174
|
-
return this.request.get("/identity/oidc/scope/{name}")
|
|
5175
|
-
name: "openBaoHttp",
|
|
5176
|
-
pathname: "/identity/oidc/scope/{name}",
|
|
5177
|
-
method: "get"
|
|
5178
|
-
});
|
|
4729
|
+
return this.request.get("/identity/oidc/scope/{name}");
|
|
5179
4730
|
}
|
|
5180
4731
|
oidcWriteScope(args) {
|
|
5181
|
-
const req = this.request.post("/identity/oidc/scope/{name}")
|
|
5182
|
-
name: "openBaoHttp",
|
|
5183
|
-
pathname: "/identity/oidc/scope/{name}",
|
|
5184
|
-
method: "post"
|
|
5185
|
-
});
|
|
4732
|
+
const req = this.request.post("/identity/oidc/scope/{name}");
|
|
5186
4733
|
req.type("application/json");
|
|
5187
4734
|
if (args && "description" in args) req.send({ description: args["description"] });
|
|
5188
4735
|
if (args && "template" in args) req.send({ template: args["template"] });
|
|
5189
4736
|
return req;
|
|
5190
4737
|
}
|
|
5191
4738
|
oidcDeleteScope(args) {
|
|
5192
|
-
return this.request.delete("/identity/oidc/scope/{name}")
|
|
5193
|
-
name: "openBaoHttp",
|
|
5194
|
-
pathname: "/identity/oidc/scope/{name}",
|
|
5195
|
-
method: "delete"
|
|
5196
|
-
});
|
|
4739
|
+
return this.request.delete("/identity/oidc/scope/{name}");
|
|
5197
4740
|
}
|
|
5198
4741
|
oidcGenerateToken(args) {
|
|
5199
|
-
return this.request.get("/identity/oidc/token/{name}")
|
|
5200
|
-
name: "openBaoHttp",
|
|
5201
|
-
pathname: "/identity/oidc/token/{name}",
|
|
5202
|
-
method: "get"
|
|
5203
|
-
});
|
|
4742
|
+
return this.request.get("/identity/oidc/token/{name}");
|
|
5204
4743
|
}
|
|
5205
4744
|
personaCreate(args) {
|
|
5206
|
-
const req = this.request.post("/identity/persona")
|
|
5207
|
-
name: "openBaoHttp",
|
|
5208
|
-
pathname: "/identity/persona",
|
|
5209
|
-
method: "post"
|
|
5210
|
-
});
|
|
4745
|
+
const req = this.request.post("/identity/persona");
|
|
5211
4746
|
req.type("application/json");
|
|
5212
4747
|
if (args && "entity_id" in args) req.send({ entity_id: args["entity_id"] });
|
|
5213
4748
|
if (args && "id" in args) req.send({ id: args["id"] });
|
|
@@ -5217,27 +4752,15 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5217
4752
|
return req;
|
|
5218
4753
|
}
|
|
5219
4754
|
personaListById(args) {
|
|
5220
|
-
const req = this.request.get("/identity/persona/id")
|
|
5221
|
-
name: "openBaoHttp",
|
|
5222
|
-
pathname: "/identity/persona/id",
|
|
5223
|
-
method: "get"
|
|
5224
|
-
});
|
|
4755
|
+
const req = this.request.get("/identity/persona/id");
|
|
5225
4756
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
5226
4757
|
return req;
|
|
5227
4758
|
}
|
|
5228
4759
|
personaReadById(args) {
|
|
5229
|
-
return this.request.get("/identity/persona/id/{id}")
|
|
5230
|
-
name: "openBaoHttp",
|
|
5231
|
-
pathname: "/identity/persona/id/{id}",
|
|
5232
|
-
method: "get"
|
|
5233
|
-
});
|
|
4760
|
+
return this.request.get("/identity/persona/id/{id}");
|
|
5234
4761
|
}
|
|
5235
4762
|
personaUpdateById(args) {
|
|
5236
|
-
const req = this.request.post("/identity/persona/id/{id}")
|
|
5237
|
-
name: "openBaoHttp",
|
|
5238
|
-
pathname: "/identity/persona/id/{id}",
|
|
5239
|
-
method: "post"
|
|
5240
|
-
});
|
|
4763
|
+
const req = this.request.post("/identity/persona/id/{id}");
|
|
5241
4764
|
req.type("application/json");
|
|
5242
4765
|
if (args && "entity_id" in args) req.send({ entity_id: args["entity_id"] });
|
|
5243
4766
|
if (args && "metadata" in args) req.send({ metadata: args["metadata"] });
|
|
@@ -5246,33 +4769,21 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5246
4769
|
return req;
|
|
5247
4770
|
}
|
|
5248
4771
|
personaDeleteById(args) {
|
|
5249
|
-
return this.request.delete("/identity/persona/id/{id}")
|
|
5250
|
-
name: "openBaoHttp",
|
|
5251
|
-
pathname: "/identity/persona/id/{id}",
|
|
5252
|
-
method: "delete"
|
|
5253
|
-
});
|
|
4772
|
+
return this.request.delete("/identity/persona/id/{id}");
|
|
5254
4773
|
}
|
|
5255
4774
|
/**
|
|
5256
4775
|
* Read the backend level settings.
|
|
5257
4776
|
*
|
|
5258
4777
|
*/
|
|
5259
4778
|
kvReadConfig(args) {
|
|
5260
|
-
return this.request.get("/kv/config")
|
|
5261
|
-
name: "openBaoHttp",
|
|
5262
|
-
pathname: "/kv/config",
|
|
5263
|
-
method: "get"
|
|
5264
|
-
});
|
|
4779
|
+
return this.request.get("/kv/config");
|
|
5265
4780
|
}
|
|
5266
4781
|
/**
|
|
5267
4782
|
* Configure backend level settings that are applied to every key in the key-value store.
|
|
5268
4783
|
*
|
|
5269
4784
|
*/
|
|
5270
4785
|
kvWriteConfig(args) {
|
|
5271
|
-
const req = this.request.post("/kv/config")
|
|
5272
|
-
name: "openBaoHttp",
|
|
5273
|
-
pathname: "/kv/config",
|
|
5274
|
-
method: "post"
|
|
5275
|
-
});
|
|
4786
|
+
const req = this.request.post("/kv/config");
|
|
5276
4787
|
req.type("application/json");
|
|
5277
4788
|
if (args && "cas_required" in args) req.send({ cas_required: args["cas_required"] });
|
|
5278
4789
|
if (args && "delete_version_after" in args) req.send({ delete_version_after: args["delete_version_after"] });
|
|
@@ -5281,18 +4792,10 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5281
4792
|
return req;
|
|
5282
4793
|
}
|
|
5283
4794
|
kvReadDataPath(args) {
|
|
5284
|
-
return this.request.get("/kv/data/{path}")
|
|
5285
|
-
name: "openBaoHttp",
|
|
5286
|
-
pathname: "/kv/data/{path}",
|
|
5287
|
-
method: "get"
|
|
5288
|
-
});
|
|
4795
|
+
return this.request.get("/kv/data/{path}");
|
|
5289
4796
|
}
|
|
5290
4797
|
kvWriteDataPath(args) {
|
|
5291
|
-
const req = this.request.post("/kv/data/{path}")
|
|
5292
|
-
name: "openBaoHttp",
|
|
5293
|
-
pathname: "/kv/data/{path}",
|
|
5294
|
-
method: "post"
|
|
5295
|
-
});
|
|
4798
|
+
const req = this.request.post("/kv/data/{path}");
|
|
5296
4799
|
req.type("application/json");
|
|
5297
4800
|
if (args && "data" in args) req.send({ data: args["data"] });
|
|
5298
4801
|
if (args && "options" in args) req.send({ options: args["options"] });
|
|
@@ -5300,56 +4803,32 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5300
4803
|
return req;
|
|
5301
4804
|
}
|
|
5302
4805
|
kvDeleteDataPath(args) {
|
|
5303
|
-
return this.request.delete("/kv/data/{path}")
|
|
5304
|
-
name: "openBaoHttp",
|
|
5305
|
-
pathname: "/kv/data/{path}",
|
|
5306
|
-
method: "delete"
|
|
5307
|
-
});
|
|
4806
|
+
return this.request.delete("/kv/data/{path}");
|
|
5308
4807
|
}
|
|
5309
4808
|
kvWriteDeletePath(args) {
|
|
5310
|
-
const req = this.request.post("/kv/delete/{path}")
|
|
5311
|
-
name: "openBaoHttp",
|
|
5312
|
-
pathname: "/kv/delete/{path}",
|
|
5313
|
-
method: "post"
|
|
5314
|
-
});
|
|
4809
|
+
const req = this.request.post("/kv/delete/{path}");
|
|
5315
4810
|
req.type("application/json");
|
|
5316
4811
|
if (args && "versions" in args) req.send({ versions: args["versions"] });
|
|
5317
4812
|
return req;
|
|
5318
4813
|
}
|
|
5319
4814
|
kvWriteDestroyPath(args) {
|
|
5320
|
-
const req = this.request.post("/kv/destroy/{path}")
|
|
5321
|
-
name: "openBaoHttp",
|
|
5322
|
-
pathname: "/kv/destroy/{path}",
|
|
5323
|
-
method: "post"
|
|
5324
|
-
});
|
|
4815
|
+
const req = this.request.post("/kv/destroy/{path}");
|
|
5325
4816
|
req.type("application/json");
|
|
5326
4817
|
if (args && "versions" in args) req.send({ versions: args["versions"] });
|
|
5327
4818
|
return req;
|
|
5328
4819
|
}
|
|
5329
4820
|
kvListDetailedMetadataPath(args) {
|
|
5330
|
-
const req = this.request.get("/kv/detailed-metadata/{path}")
|
|
5331
|
-
name: "openBaoHttp",
|
|
5332
|
-
pathname: "/kv/detailed-metadata/{path}",
|
|
5333
|
-
method: "get"
|
|
5334
|
-
});
|
|
4821
|
+
const req = this.request.get("/kv/detailed-metadata/{path}");
|
|
5335
4822
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
5336
4823
|
return req;
|
|
5337
4824
|
}
|
|
5338
4825
|
kvReadMetadataPath(args) {
|
|
5339
|
-
const req = this.request.get("/kv/metadata/{path}")
|
|
5340
|
-
name: "openBaoHttp",
|
|
5341
|
-
pathname: "/kv/metadata/{path}",
|
|
5342
|
-
method: "get"
|
|
5343
|
-
});
|
|
4826
|
+
const req = this.request.get("/kv/metadata/{path}");
|
|
5344
4827
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
5345
4828
|
return req;
|
|
5346
4829
|
}
|
|
5347
4830
|
kvWriteMetadataPath(args) {
|
|
5348
|
-
const req = this.request.post("/kv/metadata/{path}")
|
|
5349
|
-
name: "openBaoHttp",
|
|
5350
|
-
pathname: "/kv/metadata/{path}",
|
|
5351
|
-
method: "post"
|
|
5352
|
-
});
|
|
4831
|
+
const req = this.request.post("/kv/metadata/{path}");
|
|
5353
4832
|
req.type("application/json");
|
|
5354
4833
|
if (args && "after" in args) req.send({ after: args["after"] });
|
|
5355
4834
|
if (args && "cas_required" in args) req.send({ cas_required: args["cas_required"] });
|
|
@@ -5362,25 +4841,13 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5362
4841
|
return req;
|
|
5363
4842
|
}
|
|
5364
4843
|
kvDeleteMetadataPath(args) {
|
|
5365
|
-
return this.request.delete("/kv/metadata/{path}")
|
|
5366
|
-
name: "openBaoHttp",
|
|
5367
|
-
pathname: "/kv/metadata/{path}",
|
|
5368
|
-
method: "delete"
|
|
5369
|
-
});
|
|
4844
|
+
return this.request.delete("/kv/metadata/{path}");
|
|
5370
4845
|
}
|
|
5371
4846
|
kvReadSubkeysPath(args) {
|
|
5372
|
-
return this.request.get("/kv/subkeys/{path}")
|
|
5373
|
-
name: "openBaoHttp",
|
|
5374
|
-
pathname: "/kv/subkeys/{path}",
|
|
5375
|
-
method: "get"
|
|
5376
|
-
});
|
|
4847
|
+
return this.request.get("/kv/subkeys/{path}");
|
|
5377
4848
|
}
|
|
5378
4849
|
kvWriteUndeletePath(args) {
|
|
5379
|
-
const req = this.request.post("/kv/undelete/{path}")
|
|
5380
|
-
name: "openBaoHttp",
|
|
5381
|
-
pathname: "/kv/undelete/{path}",
|
|
5382
|
-
method: "post"
|
|
5383
|
-
});
|
|
4850
|
+
const req = this.request.post("/kv/undelete/{path}");
|
|
5384
4851
|
req.type("application/json");
|
|
5385
4852
|
if (args && "versions" in args) req.send({ versions: args["versions"] });
|
|
5386
4853
|
return req;
|
|
@@ -5390,18 +4857,10 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5390
4857
|
*
|
|
5391
4858
|
*/
|
|
5392
4859
|
auditingListEnabledDevices(args) {
|
|
5393
|
-
return this.request.get("/sys/audit")
|
|
5394
|
-
name: "openBaoHttp",
|
|
5395
|
-
pathname: "/sys/audit",
|
|
5396
|
-
method: "get"
|
|
5397
|
-
});
|
|
4860
|
+
return this.request.get("/sys/audit");
|
|
5398
4861
|
}
|
|
5399
4862
|
auditingCalculateHash(args) {
|
|
5400
|
-
const req = this.request.post("/sys/audit-hash/{path}")
|
|
5401
|
-
name: "openBaoHttp",
|
|
5402
|
-
pathname: "/sys/audit-hash/{path}",
|
|
5403
|
-
method: "post"
|
|
5404
|
-
});
|
|
4863
|
+
const req = this.request.post("/sys/audit-hash/{path}");
|
|
5405
4864
|
req.type("application/json");
|
|
5406
4865
|
if (args && "input" in args) req.send({ input: args["input"] });
|
|
5407
4866
|
return req;
|
|
@@ -5411,11 +4870,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5411
4870
|
*
|
|
5412
4871
|
*/
|
|
5413
4872
|
auditingEnableDevice(args) {
|
|
5414
|
-
const req = this.request.post("/sys/audit/{path}")
|
|
5415
|
-
name: "openBaoHttp",
|
|
5416
|
-
pathname: "/sys/audit/{path}",
|
|
5417
|
-
method: "post"
|
|
5418
|
-
});
|
|
4873
|
+
const req = this.request.post("/sys/audit/{path}");
|
|
5419
4874
|
req.type("application/json");
|
|
5420
4875
|
if (args && "description" in args) req.send({ description: args["description"] });
|
|
5421
4876
|
if (args && "local" in args) req.send({ local: args["local"] });
|
|
@@ -5428,29 +4883,17 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5428
4883
|
*
|
|
5429
4884
|
*/
|
|
5430
4885
|
auditingDisableDevice(args) {
|
|
5431
|
-
return this.request.delete("/sys/audit/{path}")
|
|
5432
|
-
name: "openBaoHttp",
|
|
5433
|
-
pathname: "/sys/audit/{path}",
|
|
5434
|
-
method: "delete"
|
|
5435
|
-
});
|
|
4886
|
+
return this.request.delete("/sys/audit/{path}");
|
|
5436
4887
|
}
|
|
5437
4888
|
authListEnabledMethods(args) {
|
|
5438
|
-
return this.request.get("/sys/auth")
|
|
5439
|
-
name: "openBaoHttp",
|
|
5440
|
-
pathname: "/sys/auth",
|
|
5441
|
-
method: "get"
|
|
5442
|
-
});
|
|
4889
|
+
return this.request.get("/sys/auth");
|
|
5443
4890
|
}
|
|
5444
4891
|
/**
|
|
5445
4892
|
* Read the configuration of the auth engine at the given path.
|
|
5446
4893
|
*
|
|
5447
4894
|
*/
|
|
5448
4895
|
authReadConfiguration(args) {
|
|
5449
|
-
return this.request.get("/sys/auth/{path}")
|
|
5450
|
-
name: "openBaoHttp",
|
|
5451
|
-
pathname: "/sys/auth/{path}",
|
|
5452
|
-
method: "get"
|
|
5453
|
-
});
|
|
4896
|
+
return this.request.get("/sys/auth/{path}");
|
|
5454
4897
|
}
|
|
5455
4898
|
/**
|
|
5456
4899
|
* Enables a new auth method.
|
|
@@ -5460,11 +4903,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5460
4903
|
* For example, enable the "foo" auth method will make it accessible at /auth/foo.
|
|
5461
4904
|
*/
|
|
5462
4905
|
authEnableMethod(args) {
|
|
5463
|
-
const req = this.request.post("/sys/auth/{path}")
|
|
5464
|
-
name: "openBaoHttp",
|
|
5465
|
-
pathname: "/sys/auth/{path}",
|
|
5466
|
-
method: "post"
|
|
5467
|
-
});
|
|
4906
|
+
const req = this.request.post("/sys/auth/{path}");
|
|
5468
4907
|
req.type("application/json");
|
|
5469
4908
|
if (args && "config" in args) req.send({ config: args["config"] });
|
|
5470
4909
|
if (args && "description" in args) req.send({ description: args["description"] });
|
|
@@ -5482,11 +4921,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5482
4921
|
*
|
|
5483
4922
|
*/
|
|
5484
4923
|
authDisableMethod(args) {
|
|
5485
|
-
return this.request.delete("/sys/auth/{path}")
|
|
5486
|
-
name: "openBaoHttp",
|
|
5487
|
-
pathname: "/sys/auth/{path}",
|
|
5488
|
-
method: "delete"
|
|
5489
|
-
});
|
|
4924
|
+
return this.request.delete("/sys/auth/{path}");
|
|
5490
4925
|
}
|
|
5491
4926
|
/**
|
|
5492
4927
|
* Reads the given auth path's configuration.
|
|
@@ -5494,11 +4929,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5494
4929
|
* @description This endpoint requires sudo capability on the final path, but the same functionality can be achieved without sudo via `sys/mounts/auth/[auth-path]/tune`.
|
|
5495
4930
|
*/
|
|
5496
4931
|
authReadTuningInformation(args) {
|
|
5497
|
-
return this.request.get("/sys/auth/{path}/tune")
|
|
5498
|
-
name: "openBaoHttp",
|
|
5499
|
-
pathname: "/sys/auth/{path}/tune",
|
|
5500
|
-
method: "get"
|
|
5501
|
-
});
|
|
4932
|
+
return this.request.get("/sys/auth/{path}/tune");
|
|
5502
4933
|
}
|
|
5503
4934
|
/**
|
|
5504
4935
|
* Tune configuration parameters for a given auth path.
|
|
@@ -5506,11 +4937,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5506
4937
|
* @description This endpoint requires sudo capability on the final path, but the same functionality can be achieved without sudo via `sys/mounts/auth/[auth-path]/tune`.
|
|
5507
4938
|
*/
|
|
5508
4939
|
authTuneConfigurationParameters(args) {
|
|
5509
|
-
const req = this.request.post("/sys/auth/{path}/tune")
|
|
5510
|
-
name: "openBaoHttp",
|
|
5511
|
-
pathname: "/sys/auth/{path}/tune",
|
|
5512
|
-
method: "post"
|
|
5513
|
-
});
|
|
4940
|
+
const req = this.request.post("/sys/auth/{path}/tune");
|
|
5514
4941
|
req.type("application/json");
|
|
5515
4942
|
if (args && "allowed_response_headers" in args) req.send({ allowed_response_headers: args["allowed_response_headers"] });
|
|
5516
4943
|
if (args && "audit_non_hmac_request_keys" in args) req.send({ audit_non_hmac_request_keys: args["audit_non_hmac_request_keys"] });
|
|
@@ -5527,11 +4954,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5527
4954
|
return req;
|
|
5528
4955
|
}
|
|
5529
4956
|
queryTokenCapabilities(args) {
|
|
5530
|
-
const req = this.request.post("/sys/capabilities")
|
|
5531
|
-
name: "openBaoHttp",
|
|
5532
|
-
pathname: "/sys/capabilities",
|
|
5533
|
-
method: "post"
|
|
5534
|
-
});
|
|
4957
|
+
const req = this.request.post("/sys/capabilities");
|
|
5535
4958
|
req.type("application/json");
|
|
5536
4959
|
if (args && "path" in args) req.send({ path: args["path"] });
|
|
5537
4960
|
if (args && "paths" in args) req.send({ paths: args["paths"] });
|
|
@@ -5539,11 +4962,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5539
4962
|
return req;
|
|
5540
4963
|
}
|
|
5541
4964
|
queryTokenAccessorCapabilities(args) {
|
|
5542
|
-
const req = this.request.post("/sys/capabilities-accessor")
|
|
5543
|
-
name: "openBaoHttp",
|
|
5544
|
-
pathname: "/sys/capabilities-accessor",
|
|
5545
|
-
method: "post"
|
|
5546
|
-
});
|
|
4965
|
+
const req = this.request.post("/sys/capabilities-accessor");
|
|
5547
4966
|
req.type("application/json");
|
|
5548
4967
|
if (args && "accessor" in args) req.send({ accessor: args["accessor"] });
|
|
5549
4968
|
if (args && "path" in args) req.send({ path: args["path"] });
|
|
@@ -5551,11 +4970,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5551
4970
|
return req;
|
|
5552
4971
|
}
|
|
5553
4972
|
queryTokenSelfCapabilities(args) {
|
|
5554
|
-
const req = this.request.post("/sys/capabilities-self")
|
|
5555
|
-
name: "openBaoHttp",
|
|
5556
|
-
pathname: "/sys/capabilities-self",
|
|
5557
|
-
method: "post"
|
|
5558
|
-
});
|
|
4973
|
+
const req = this.request.post("/sys/capabilities-self");
|
|
5559
4974
|
req.type("application/json");
|
|
5560
4975
|
if (args && "path" in args) req.send({ path: args["path"] });
|
|
5561
4976
|
if (args && "paths" in args) req.send({ paths: args["paths"] });
|
|
@@ -5567,33 +4982,21 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5567
4982
|
*
|
|
5568
4983
|
*/
|
|
5569
4984
|
auditingListRequestHeaders(args) {
|
|
5570
|
-
return this.request.get("/sys/config/auditing/request-headers")
|
|
5571
|
-
name: "openBaoHttp",
|
|
5572
|
-
pathname: "/sys/config/auditing/request-headers",
|
|
5573
|
-
method: "get"
|
|
5574
|
-
});
|
|
4985
|
+
return this.request.get("/sys/config/auditing/request-headers");
|
|
5575
4986
|
}
|
|
5576
4987
|
/**
|
|
5577
4988
|
* List the information for the given request header.
|
|
5578
4989
|
*
|
|
5579
4990
|
*/
|
|
5580
4991
|
auditingReadRequestHeaderInformation(args) {
|
|
5581
|
-
return this.request.get("/sys/config/auditing/request-headers/{header}")
|
|
5582
|
-
name: "openBaoHttp",
|
|
5583
|
-
pathname: "/sys/config/auditing/request-headers/{header}",
|
|
5584
|
-
method: "get"
|
|
5585
|
-
});
|
|
4992
|
+
return this.request.get("/sys/config/auditing/request-headers/{header}");
|
|
5586
4993
|
}
|
|
5587
4994
|
/**
|
|
5588
4995
|
* Enable auditing of a header.
|
|
5589
4996
|
*
|
|
5590
4997
|
*/
|
|
5591
4998
|
auditingEnableRequestHeader(args) {
|
|
5592
|
-
const req = this.request.post("/sys/config/auditing/request-headers/{header}")
|
|
5593
|
-
name: "openBaoHttp",
|
|
5594
|
-
pathname: "/sys/config/auditing/request-headers/{header}",
|
|
5595
|
-
method: "post"
|
|
5596
|
-
});
|
|
4999
|
+
const req = this.request.post("/sys/config/auditing/request-headers/{header}");
|
|
5597
5000
|
req.type("application/json");
|
|
5598
5001
|
if (args && "hmac" in args) req.send({ hmac: args["hmac"] });
|
|
5599
5002
|
return req;
|
|
@@ -5603,33 +5006,21 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5603
5006
|
*
|
|
5604
5007
|
*/
|
|
5605
5008
|
auditingDisableRequestHeader(args) {
|
|
5606
|
-
return this.request.delete("/sys/config/auditing/request-headers/{header}")
|
|
5607
|
-
name: "openBaoHttp",
|
|
5608
|
-
pathname: "/sys/config/auditing/request-headers/{header}",
|
|
5609
|
-
method: "delete"
|
|
5610
|
-
});
|
|
5009
|
+
return this.request.delete("/sys/config/auditing/request-headers/{header}");
|
|
5611
5010
|
}
|
|
5612
5011
|
/**
|
|
5613
5012
|
* Return the current CORS settings.
|
|
5614
5013
|
*
|
|
5615
5014
|
*/
|
|
5616
5015
|
corsReadConfiguration(args) {
|
|
5617
|
-
return this.request.get("/sys/config/cors")
|
|
5618
|
-
name: "openBaoHttp",
|
|
5619
|
-
pathname: "/sys/config/cors",
|
|
5620
|
-
method: "get"
|
|
5621
|
-
});
|
|
5016
|
+
return this.request.get("/sys/config/cors");
|
|
5622
5017
|
}
|
|
5623
5018
|
/**
|
|
5624
5019
|
* Configure the CORS settings.
|
|
5625
5020
|
*
|
|
5626
5021
|
*/
|
|
5627
5022
|
corsConfigure(args) {
|
|
5628
|
-
const req = this.request.post("/sys/config/cors")
|
|
5629
|
-
name: "openBaoHttp",
|
|
5630
|
-
pathname: "/sys/config/cors",
|
|
5631
|
-
method: "post"
|
|
5632
|
-
});
|
|
5023
|
+
const req = this.request.post("/sys/config/cors");
|
|
5633
5024
|
req.type("application/json");
|
|
5634
5025
|
if (args && "allowed_headers" in args) req.send({ allowed_headers: args["allowed_headers"] });
|
|
5635
5026
|
if (args && "allowed_origins" in args) req.send({ allowed_origins: args["allowed_origins"] });
|
|
@@ -5641,22 +5032,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5641
5032
|
*
|
|
5642
5033
|
*/
|
|
5643
5034
|
corsDeleteConfiguration(args) {
|
|
5644
|
-
return this.request.delete("/sys/config/cors")
|
|
5645
|
-
name: "openBaoHttp",
|
|
5646
|
-
pathname: "/sys/config/cors",
|
|
5647
|
-
method: "delete"
|
|
5648
|
-
});
|
|
5035
|
+
return this.request.delete("/sys/config/cors");
|
|
5649
5036
|
}
|
|
5650
5037
|
/**
|
|
5651
5038
|
* Reload the given subsystem
|
|
5652
5039
|
*
|
|
5653
5040
|
*/
|
|
5654
5041
|
reloadSubsystem(args) {
|
|
5655
|
-
return this.request.post("/sys/config/reload/{subsystem}")
|
|
5656
|
-
name: "openBaoHttp",
|
|
5657
|
-
pathname: "/sys/config/reload/{subsystem}",
|
|
5658
|
-
method: "post"
|
|
5659
|
-
});
|
|
5042
|
+
return this.request.post("/sys/config/reload/{subsystem}");
|
|
5660
5043
|
}
|
|
5661
5044
|
/**
|
|
5662
5045
|
* Return a sanitized version of the OpenBao server configuration.
|
|
@@ -5664,22 +5047,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5664
5047
|
* @description The sanitized output strips configuration values in the storage, HA storage, and seals stanzas, which may contain sensitive values such as API tokens. It also removes any token or secret fields in other stanzas, such as the circonus_api_token from telemetry.
|
|
5665
5048
|
*/
|
|
5666
5049
|
readSanitizedConfigurationState(args) {
|
|
5667
|
-
return this.request.get("/sys/config/state/sanitized")
|
|
5668
|
-
name: "openBaoHttp",
|
|
5669
|
-
pathname: "/sys/config/state/sanitized",
|
|
5670
|
-
method: "get"
|
|
5671
|
-
});
|
|
5050
|
+
return this.request.get("/sys/config/state/sanitized");
|
|
5672
5051
|
}
|
|
5673
5052
|
/**
|
|
5674
5053
|
* Return a list of configured UI headers.
|
|
5675
5054
|
*
|
|
5676
5055
|
*/
|
|
5677
5056
|
uiHeadersList(args) {
|
|
5678
|
-
const req = this.request.get("/sys/config/ui/headers")
|
|
5679
|
-
name: "openBaoHttp",
|
|
5680
|
-
pathname: "/sys/config/ui/headers",
|
|
5681
|
-
method: "get"
|
|
5682
|
-
});
|
|
5057
|
+
const req = this.request.get("/sys/config/ui/headers");
|
|
5683
5058
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
5684
5059
|
return req;
|
|
5685
5060
|
}
|
|
@@ -5688,22 +5063,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5688
5063
|
*
|
|
5689
5064
|
*/
|
|
5690
5065
|
uiHeadersReadConfiguration(args) {
|
|
5691
|
-
return this.request.get("/sys/config/ui/headers/{header}")
|
|
5692
|
-
name: "openBaoHttp",
|
|
5693
|
-
pathname: "/sys/config/ui/headers/{header}",
|
|
5694
|
-
method: "get"
|
|
5695
|
-
});
|
|
5066
|
+
return this.request.get("/sys/config/ui/headers/{header}");
|
|
5696
5067
|
}
|
|
5697
5068
|
/**
|
|
5698
5069
|
* Configure the values to be returned for the UI header.
|
|
5699
5070
|
*
|
|
5700
5071
|
*/
|
|
5701
5072
|
uiHeadersConfigure(args) {
|
|
5702
|
-
const req = this.request.post("/sys/config/ui/headers/{header}")
|
|
5703
|
-
name: "openBaoHttp",
|
|
5704
|
-
pathname: "/sys/config/ui/headers/{header}",
|
|
5705
|
-
method: "post"
|
|
5706
|
-
});
|
|
5073
|
+
const req = this.request.post("/sys/config/ui/headers/{header}");
|
|
5707
5074
|
req.type("application/json");
|
|
5708
5075
|
if (args && "multivalue" in args) req.send({ multivalue: args["multivalue"] });
|
|
5709
5076
|
if (args && "values" in args) req.send({ values: args["values"] });
|
|
@@ -5714,22 +5081,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5714
5081
|
*
|
|
5715
5082
|
*/
|
|
5716
5083
|
uiHeadersDeleteConfiguration(args) {
|
|
5717
|
-
return this.request.delete("/sys/config/ui/headers/{header}")
|
|
5718
|
-
name: "openBaoHttp",
|
|
5719
|
-
pathname: "/sys/config/ui/headers/{header}",
|
|
5720
|
-
method: "delete"
|
|
5721
|
-
});
|
|
5084
|
+
return this.request.delete("/sys/config/ui/headers/{header}");
|
|
5722
5085
|
}
|
|
5723
5086
|
/**
|
|
5724
5087
|
* Decodes the encoded token with the otp.
|
|
5725
5088
|
*
|
|
5726
5089
|
*/
|
|
5727
5090
|
decode(args) {
|
|
5728
|
-
const req = this.request.post("/sys/decode-token")
|
|
5729
|
-
name: "openBaoHttp",
|
|
5730
|
-
pathname: "/sys/decode-token",
|
|
5731
|
-
method: "post"
|
|
5732
|
-
});
|
|
5091
|
+
const req = this.request.post("/sys/decode-token");
|
|
5733
5092
|
req.type("application/json");
|
|
5734
5093
|
if (args && "encoded_token" in args) req.send({ encoded_token: args["encoded_token"] });
|
|
5735
5094
|
if (args && "otp" in args) req.send({ otp: args["otp"] });
|
|
@@ -5740,48 +5099,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5740
5099
|
*
|
|
5741
5100
|
*/
|
|
5742
5101
|
rootTokenGenerationReadProgress2(args) {
|
|
5743
|
-
return this.request.get("/sys/generate-root")
|
|
5744
|
-
name: "openBaoHttp",
|
|
5745
|
-
pathname: "/sys/generate-root",
|
|
5746
|
-
method: "get"
|
|
5747
|
-
});
|
|
5748
|
-
}
|
|
5749
|
-
/**
|
|
5750
|
-
* Initializes a new root generation attempt.
|
|
5751
|
-
*
|
|
5752
|
-
* @description Only a single root generation attempt can take place at a time. One (and only one) of otp or pgp_key are required.
|
|
5753
|
-
*/
|
|
5754
|
-
rootTokenGenerationInitialize_2(args) {
|
|
5755
|
-
const req = this.request.post("/sys/generate-root").option("module", {
|
|
5756
|
-
name: "openBaoHttp",
|
|
5757
|
-
pathname: "/sys/generate-root",
|
|
5758
|
-
method: "post"
|
|
5759
|
-
});
|
|
5760
|
-
req.type("application/json");
|
|
5761
|
-
if (args && "pgp_key" in args) req.send({ pgp_key: args["pgp_key"] });
|
|
5762
|
-
return req;
|
|
5763
|
-
}
|
|
5764
|
-
/**
|
|
5765
|
-
* Cancels any in-progress root generation attempt.
|
|
5766
|
-
*
|
|
5767
|
-
*/
|
|
5768
|
-
rootTokenGenerationCancel_2(args) {
|
|
5769
|
-
return this.request.delete("/sys/generate-root").option("module", {
|
|
5770
|
-
name: "openBaoHttp",
|
|
5771
|
-
pathname: "/sys/generate-root",
|
|
5772
|
-
method: "delete"
|
|
5773
|
-
});
|
|
5102
|
+
return this.request.get("/sys/generate-root");
|
|
5774
5103
|
}
|
|
5775
5104
|
/**
|
|
5776
5105
|
* Read the configuration and progress of the current root generation attempt.
|
|
5777
5106
|
*
|
|
5778
5107
|
*/
|
|
5779
5108
|
rootTokenGenerationReadProgress(args) {
|
|
5780
|
-
return this.request.get("/sys/generate-root/attempt")
|
|
5781
|
-
name: "openBaoHttp",
|
|
5782
|
-
pathname: "/sys/generate-root/attempt",
|
|
5783
|
-
method: "get"
|
|
5784
|
-
});
|
|
5109
|
+
return this.request.get("/sys/generate-root/attempt");
|
|
5785
5110
|
}
|
|
5786
5111
|
/**
|
|
5787
5112
|
* Initializes a new root generation attempt.
|
|
@@ -5789,11 +5114,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5789
5114
|
* @description Only a single root generation attempt can take place at a time. One (and only one) of otp or pgp_key are required.
|
|
5790
5115
|
*/
|
|
5791
5116
|
rootTokenGenerationInitialize(args) {
|
|
5792
|
-
const req = this.request.post("/sys/generate-root/attempt")
|
|
5793
|
-
name: "openBaoHttp",
|
|
5794
|
-
pathname: "/sys/generate-root/attempt",
|
|
5795
|
-
method: "post"
|
|
5796
|
-
});
|
|
5117
|
+
const req = this.request.post("/sys/generate-root/attempt");
|
|
5797
5118
|
req.type("application/json");
|
|
5798
5119
|
if (args && "pgp_key" in args) req.send({ pgp_key: args["pgp_key"] });
|
|
5799
5120
|
return req;
|
|
@@ -5803,11 +5124,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5803
5124
|
*
|
|
5804
5125
|
*/
|
|
5805
5126
|
rootTokenGenerationCancel(args) {
|
|
5806
|
-
return this.request.delete("/sys/generate-root/attempt")
|
|
5807
|
-
name: "openBaoHttp",
|
|
5808
|
-
pathname: "/sys/generate-root/attempt",
|
|
5809
|
-
method: "delete"
|
|
5810
|
-
});
|
|
5127
|
+
return this.request.delete("/sys/generate-root/attempt");
|
|
5811
5128
|
}
|
|
5812
5129
|
/**
|
|
5813
5130
|
* Enter a single unseal key share to progress the root generation attempt.
|
|
@@ -5815,11 +5132,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5815
5132
|
* @description If the threshold number of unseal key shares is reached, OpenBao will complete the root generation and issue the new token. Otherwise, this API must be called multiple times until that threshold is met. The attempt nonce must be provided with each call.
|
|
5816
5133
|
*/
|
|
5817
5134
|
rootTokenGenerationUpdate(args) {
|
|
5818
|
-
const req = this.request.post("/sys/generate-root/update")
|
|
5819
|
-
name: "openBaoHttp",
|
|
5820
|
-
pathname: "/sys/generate-root/update",
|
|
5821
|
-
method: "post"
|
|
5822
|
-
});
|
|
5135
|
+
const req = this.request.post("/sys/generate-root/update");
|
|
5823
5136
|
req.type("application/json");
|
|
5824
5137
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
5825
5138
|
if (args && "nonce" in args) req.send({ nonce: args["nonce"] });
|
|
@@ -5830,22 +5143,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5830
5143
|
*
|
|
5831
5144
|
*/
|
|
5832
5145
|
haStatus(args) {
|
|
5833
|
-
return this.request.get("/sys/ha-status")
|
|
5834
|
-
name: "openBaoHttp",
|
|
5835
|
-
pathname: "/sys/ha-status",
|
|
5836
|
-
method: "get"
|
|
5837
|
-
});
|
|
5146
|
+
return this.request.get("/sys/ha-status");
|
|
5838
5147
|
}
|
|
5839
5148
|
/**
|
|
5840
5149
|
* Returns the health status of OpenBao.
|
|
5841
5150
|
*
|
|
5842
5151
|
*/
|
|
5843
5152
|
readHealthStatus(args) {
|
|
5844
|
-
return this.request.get("/sys/health")
|
|
5845
|
-
name: "openBaoHttp",
|
|
5846
|
-
pathname: "/sys/health",
|
|
5847
|
-
method: "get"
|
|
5848
|
-
});
|
|
5153
|
+
return this.request.get("/sys/health");
|
|
5849
5154
|
}
|
|
5850
5155
|
/**
|
|
5851
5156
|
* Information about the host instance that this OpenBao server is running on.
|
|
@@ -5855,11 +5160,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5855
5160
|
* disk, and memory utilization
|
|
5856
5161
|
*/
|
|
5857
5162
|
collectHostInformation(args) {
|
|
5858
|
-
return this.request.get("/sys/host-info")
|
|
5859
|
-
name: "openBaoHttp",
|
|
5860
|
-
pathname: "/sys/host-info",
|
|
5861
|
-
method: "get"
|
|
5862
|
-
});
|
|
5163
|
+
return this.request.get("/sys/host-info");
|
|
5863
5164
|
}
|
|
5864
5165
|
/**
|
|
5865
5166
|
* reports in-flight requests
|
|
@@ -5869,22 +5170,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5869
5170
|
* Returns a map of in-flight requests.
|
|
5870
5171
|
*/
|
|
5871
5172
|
collectInFlightRequestInformation(args) {
|
|
5872
|
-
return this.request.get("/sys/in-flight-req")
|
|
5873
|
-
name: "openBaoHttp",
|
|
5874
|
-
pathname: "/sys/in-flight-req",
|
|
5875
|
-
method: "get"
|
|
5876
|
-
});
|
|
5173
|
+
return this.request.get("/sys/in-flight-req");
|
|
5877
5174
|
}
|
|
5878
5175
|
/**
|
|
5879
5176
|
* Returns the initialization status of OpenBao.
|
|
5880
5177
|
*
|
|
5881
5178
|
*/
|
|
5882
5179
|
readInitializationStatus(args) {
|
|
5883
|
-
return this.request.get("/sys/init")
|
|
5884
|
-
name: "openBaoHttp",
|
|
5885
|
-
pathname: "/sys/init",
|
|
5886
|
-
method: "get"
|
|
5887
|
-
});
|
|
5180
|
+
return this.request.get("/sys/init");
|
|
5888
5181
|
}
|
|
5889
5182
|
/**
|
|
5890
5183
|
* Initialize a new OpenBao instance.
|
|
@@ -5892,11 +5185,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5892
5185
|
* @description The OpenBao instance must not have been previously initialized. The recovery options, as well as the stored shares option, are only available when using OpenBao HSM.
|
|
5893
5186
|
*/
|
|
5894
5187
|
initializeSystem(args) {
|
|
5895
|
-
const req = this.request.post("/sys/init")
|
|
5896
|
-
name: "openBaoHttp",
|
|
5897
|
-
pathname: "/sys/init",
|
|
5898
|
-
method: "post"
|
|
5899
|
-
});
|
|
5188
|
+
const req = this.request.post("/sys/init");
|
|
5900
5189
|
req.type("application/json");
|
|
5901
5190
|
if (args && "pgp_keys" in args) req.send({ pgp_keys: args["pgp_keys"] });
|
|
5902
5191
|
if (args && "recovery_pgp_keys" in args) req.send({ recovery_pgp_keys: args["recovery_pgp_keys"] });
|
|
@@ -5908,179 +5197,35 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5908
5197
|
if (args && "stored_shares" in args) req.send({ stored_shares: args["stored_shares"] });
|
|
5909
5198
|
return req;
|
|
5910
5199
|
}
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
*
|
|
5914
|
-
*/
|
|
5915
|
-
internalCountEntities(args) {
|
|
5916
|
-
return this.request.get("/sys/internal/counters/entities").option("module", {
|
|
5917
|
-
name: "openBaoHttp",
|
|
5918
|
-
pathname: "/sys/internal/counters/entities",
|
|
5919
|
-
method: "get"
|
|
5920
|
-
});
|
|
5200
|
+
encryptionKeyStatus(args) {
|
|
5201
|
+
return this.request.get("/sys/key-status");
|
|
5921
5202
|
}
|
|
5922
5203
|
/**
|
|
5923
|
-
*
|
|
5204
|
+
* Returns the high availability status and current leader instance of OpenBao.
|
|
5924
5205
|
*
|
|
5925
5206
|
*/
|
|
5926
|
-
|
|
5927
|
-
return this.request.get("/sys/
|
|
5928
|
-
name: "openBaoHttp",
|
|
5929
|
-
pathname: "/sys/internal/counters/requests",
|
|
5930
|
-
method: "get"
|
|
5931
|
-
});
|
|
5207
|
+
leaderStatus(args) {
|
|
5208
|
+
return this.request.get("/sys/leader");
|
|
5932
5209
|
}
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
*
|
|
5936
|
-
*/
|
|
5937
|
-
internalCountTokens(args) {
|
|
5938
|
-
return this.request.get("/sys/internal/counters/tokens").option("module", {
|
|
5939
|
-
name: "openBaoHttp",
|
|
5940
|
-
pathname: "/sys/internal/counters/tokens",
|
|
5941
|
-
method: "get"
|
|
5942
|
-
});
|
|
5210
|
+
leasesList(args) {
|
|
5211
|
+
return this.request.get("/sys/leases");
|
|
5943
5212
|
}
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
*
|
|
5947
|
-
*/
|
|
5948
|
-
internalInspectRequest(args) {
|
|
5949
|
-
return this.request.get("/sys/internal/inspect/request").option("module", {
|
|
5950
|
-
name: "openBaoHttp",
|
|
5951
|
-
pathname: "/sys/internal/inspect/request",
|
|
5952
|
-
method: "get"
|
|
5953
|
-
});
|
|
5954
|
-
}
|
|
5955
|
-
/**
|
|
5956
|
-
* Expose the route entry and mount entry tables present in the router
|
|
5957
|
-
*
|
|
5958
|
-
*/
|
|
5959
|
-
internalInspectRouter(args) {
|
|
5960
|
-
return this.request.get("/sys/internal/inspect/router/{tag}").option("module", {
|
|
5961
|
-
name: "openBaoHttp",
|
|
5962
|
-
pathname: "/sys/internal/inspect/router/{tag}",
|
|
5963
|
-
method: "get"
|
|
5964
|
-
});
|
|
5965
|
-
}
|
|
5966
|
-
internalGenerateOpenApiDocument(args) {
|
|
5967
|
-
return this.request.get("/sys/internal/specs/openapi").option("module", {
|
|
5968
|
-
name: "openBaoHttp",
|
|
5969
|
-
pathname: "/sys/internal/specs/openapi",
|
|
5970
|
-
method: "get"
|
|
5971
|
-
});
|
|
5972
|
-
}
|
|
5973
|
-
internalGenerateOpenApiDocumentWithParameters(args) {
|
|
5974
|
-
const req = this.request.post("/sys/internal/specs/openapi").option("module", {
|
|
5975
|
-
name: "openBaoHttp",
|
|
5976
|
-
pathname: "/sys/internal/specs/openapi",
|
|
5977
|
-
method: "post"
|
|
5978
|
-
});
|
|
5979
|
-
req.type("application/json");
|
|
5980
|
-
if (args && "context" in args) req.send({ context: args["context"] });
|
|
5981
|
-
return req;
|
|
5982
|
-
}
|
|
5983
|
-
/**
|
|
5984
|
-
* Lists all enabled and visible auth and secrets mounts.
|
|
5985
|
-
*
|
|
5986
|
-
*/
|
|
5987
|
-
internalUiListEnabledVisibleMounts(args) {
|
|
5988
|
-
return this.request.get("/sys/internal/ui/mounts").option("module", {
|
|
5989
|
-
name: "openBaoHttp",
|
|
5990
|
-
pathname: "/sys/internal/ui/mounts",
|
|
5991
|
-
method: "get"
|
|
5992
|
-
});
|
|
5993
|
-
}
|
|
5994
|
-
/**
|
|
5995
|
-
* Return information about the given mount.
|
|
5996
|
-
*
|
|
5997
|
-
*/
|
|
5998
|
-
internalUiReadMountInformation(args) {
|
|
5999
|
-
return this.request.get("/sys/internal/ui/mounts/{path}").option("module", {
|
|
6000
|
-
name: "openBaoHttp",
|
|
6001
|
-
pathname: "/sys/internal/ui/mounts/{path}",
|
|
6002
|
-
method: "get"
|
|
6003
|
-
});
|
|
6004
|
-
}
|
|
6005
|
-
/**
|
|
6006
|
-
* Backwards compatibility is not guaranteed for this API
|
|
6007
|
-
*
|
|
6008
|
-
*/
|
|
6009
|
-
internalUiListNamespaces(args) {
|
|
6010
|
-
return this.request.get("/sys/internal/ui/namespaces").option("module", {
|
|
6011
|
-
name: "openBaoHttp",
|
|
6012
|
-
pathname: "/sys/internal/ui/namespaces",
|
|
6013
|
-
method: "get"
|
|
6014
|
-
});
|
|
6015
|
-
}
|
|
6016
|
-
/**
|
|
6017
|
-
* Backwards compatibility is not guaranteed for this API
|
|
6018
|
-
*
|
|
6019
|
-
*/
|
|
6020
|
-
internalUiReadResultantAcl(args) {
|
|
6021
|
-
return this.request.get("/sys/internal/ui/resultant-acl").option("module", {
|
|
6022
|
-
name: "openBaoHttp",
|
|
6023
|
-
pathname: "/sys/internal/ui/resultant-acl",
|
|
6024
|
-
method: "get"
|
|
6025
|
-
});
|
|
6026
|
-
}
|
|
6027
|
-
encryptionKeyStatus(args) {
|
|
6028
|
-
return this.request.get("/sys/key-status").option("module", {
|
|
6029
|
-
name: "openBaoHttp",
|
|
6030
|
-
pathname: "/sys/key-status",
|
|
6031
|
-
method: "get"
|
|
6032
|
-
});
|
|
6033
|
-
}
|
|
6034
|
-
/**
|
|
6035
|
-
* Returns the high availability status and current leader instance of OpenBao.
|
|
6036
|
-
*
|
|
6037
|
-
*/
|
|
6038
|
-
leaderStatus(args) {
|
|
6039
|
-
return this.request.get("/sys/leader").option("module", {
|
|
6040
|
-
name: "openBaoHttp",
|
|
6041
|
-
pathname: "/sys/leader",
|
|
6042
|
-
method: "get"
|
|
6043
|
-
});
|
|
6044
|
-
}
|
|
6045
|
-
leasesList(args) {
|
|
6046
|
-
return this.request.get("/sys/leases").option("module", {
|
|
6047
|
-
name: "openBaoHttp",
|
|
6048
|
-
pathname: "/sys/leases",
|
|
6049
|
-
method: "get"
|
|
6050
|
-
});
|
|
6051
|
-
}
|
|
6052
|
-
leasesCount(args) {
|
|
6053
|
-
return this.request.get("/sys/leases/count").option("module", {
|
|
6054
|
-
name: "openBaoHttp",
|
|
6055
|
-
pathname: "/sys/leases/count",
|
|
6056
|
-
method: "get"
|
|
6057
|
-
});
|
|
5213
|
+
leasesCount(args) {
|
|
5214
|
+
return this.request.get("/sys/leases/count");
|
|
6058
5215
|
}
|
|
6059
5216
|
leasesReadLease(args) {
|
|
6060
|
-
const req = this.request.post("/sys/leases/lookup")
|
|
6061
|
-
name: "openBaoHttp",
|
|
6062
|
-
pathname: "/sys/leases/lookup",
|
|
6063
|
-
method: "post"
|
|
6064
|
-
});
|
|
5217
|
+
const req = this.request.post("/sys/leases/lookup");
|
|
6065
5218
|
req.type("application/json");
|
|
6066
5219
|
if (args && "lease_id" in args) req.send({ lease_id: args["lease_id"] });
|
|
6067
5220
|
return req;
|
|
6068
5221
|
}
|
|
6069
5222
|
leasesLookUp(args) {
|
|
6070
|
-
const req = this.request.get("/sys/leases/lookup/")
|
|
6071
|
-
name: "openBaoHttp",
|
|
6072
|
-
pathname: "/sys/leases/lookup/",
|
|
6073
|
-
method: "get"
|
|
6074
|
-
});
|
|
5223
|
+
const req = this.request.get("/sys/leases/lookup/");
|
|
6075
5224
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6076
5225
|
return req;
|
|
6077
5226
|
}
|
|
6078
5227
|
leasesLookUpWithPrefix(args) {
|
|
6079
|
-
const req = this.request.get("/sys/leases/lookup/{prefix}")
|
|
6080
|
-
name: "openBaoHttp",
|
|
6081
|
-
pathname: "/sys/leases/lookup/{prefix}",
|
|
6082
|
-
method: "get"
|
|
6083
|
-
});
|
|
5228
|
+
const req = this.request.get("/sys/leases/lookup/{prefix}");
|
|
6084
5229
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6085
5230
|
return req;
|
|
6086
5231
|
}
|
|
@@ -6089,11 +5234,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6089
5234
|
*
|
|
6090
5235
|
*/
|
|
6091
5236
|
leasesRenewLease(args) {
|
|
6092
|
-
const req = this.request.post("/sys/leases/renew")
|
|
6093
|
-
name: "openBaoHttp",
|
|
6094
|
-
pathname: "/sys/leases/renew",
|
|
6095
|
-
method: "post"
|
|
6096
|
-
});
|
|
5237
|
+
const req = this.request.post("/sys/leases/renew");
|
|
6097
5238
|
req.type("application/json");
|
|
6098
5239
|
if (args && "increment" in args) req.send({ increment: args["increment"] });
|
|
6099
5240
|
if (args && "lease_id" in args) req.send({ lease_id: args["lease_id"] });
|
|
@@ -6105,11 +5246,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6105
5246
|
*
|
|
6106
5247
|
*/
|
|
6107
5248
|
leasesRenewLeaseWithId(args) {
|
|
6108
|
-
const req = this.request.post("/sys/leases/renew/{url_lease_id}")
|
|
6109
|
-
name: "openBaoHttp",
|
|
6110
|
-
pathname: "/sys/leases/renew/{url_lease_id}",
|
|
6111
|
-
method: "post"
|
|
6112
|
-
});
|
|
5249
|
+
const req = this.request.post("/sys/leases/renew/{url_lease_id}");
|
|
6113
5250
|
req.type("application/json");
|
|
6114
5251
|
if (args && "increment" in args) req.send({ increment: args["increment"] });
|
|
6115
5252
|
if (args && "lease_id" in args) req.send({ lease_id: args["lease_id"] });
|
|
@@ -6120,11 +5257,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6120
5257
|
*
|
|
6121
5258
|
*/
|
|
6122
5259
|
leasesRevokeLease(args) {
|
|
6123
|
-
const req = this.request.post("/sys/leases/revoke")
|
|
6124
|
-
name: "openBaoHttp",
|
|
6125
|
-
pathname: "/sys/leases/revoke",
|
|
6126
|
-
method: "post"
|
|
6127
|
-
});
|
|
5260
|
+
const req = this.request.post("/sys/leases/revoke");
|
|
6128
5261
|
req.type("application/json");
|
|
6129
5262
|
if (args && "lease_id" in args) req.send({ lease_id: args["lease_id"] });
|
|
6130
5263
|
if (args && "sync" in args) req.send({ sync: args["sync"] });
|
|
@@ -6139,22 +5272,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6139
5272
|
* By ignoring these errors, OpenBao abdicates responsibility for ensuring that the issued credentials or secrets are properly revoked and/or cleaned up. Access to this endpoint should be tightly controlled.
|
|
6140
5273
|
*/
|
|
6141
5274
|
leasesForceRevokeLeaseWithPrefix(args) {
|
|
6142
|
-
return this.request.post("/sys/leases/revoke-force/{prefix}")
|
|
6143
|
-
name: "openBaoHttp",
|
|
6144
|
-
pathname: "/sys/leases/revoke-force/{prefix}",
|
|
6145
|
-
method: "post"
|
|
6146
|
-
});
|
|
5275
|
+
return this.request.post("/sys/leases/revoke-force/{prefix}");
|
|
6147
5276
|
}
|
|
6148
5277
|
/**
|
|
6149
5278
|
* Revokes all secrets (via a lease ID prefix) or tokens (via the tokens' path property) generated under a given prefix immediately.
|
|
6150
5279
|
*
|
|
6151
5280
|
*/
|
|
6152
5281
|
leasesRevokeLeaseWithPrefix(args) {
|
|
6153
|
-
const req = this.request.post("/sys/leases/revoke-prefix/{prefix}")
|
|
6154
|
-
name: "openBaoHttp",
|
|
6155
|
-
pathname: "/sys/leases/revoke-prefix/{prefix}",
|
|
6156
|
-
method: "post"
|
|
6157
|
-
});
|
|
5282
|
+
const req = this.request.post("/sys/leases/revoke-prefix/{prefix}");
|
|
6158
5283
|
req.type("application/json");
|
|
6159
5284
|
if (args && "sync" in args) req.send({ sync: args["sync"] });
|
|
6160
5285
|
return req;
|
|
@@ -6164,66 +5289,42 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6164
5289
|
*
|
|
6165
5290
|
*/
|
|
6166
5291
|
leasesRevokeLeaseWithId(args) {
|
|
6167
|
-
const req = this.request.post("/sys/leases/revoke/{url_lease_id}")
|
|
6168
|
-
name: "openBaoHttp",
|
|
6169
|
-
pathname: "/sys/leases/revoke/{url_lease_id}",
|
|
6170
|
-
method: "post"
|
|
6171
|
-
});
|
|
5292
|
+
const req = this.request.post("/sys/leases/revoke/{url_lease_id}");
|
|
6172
5293
|
req.type("application/json");
|
|
6173
5294
|
if (args && "lease_id" in args) req.send({ lease_id: args["lease_id"] });
|
|
6174
5295
|
if (args && "sync" in args) req.send({ sync: args["sync"] });
|
|
6175
5296
|
return req;
|
|
6176
5297
|
}
|
|
6177
5298
|
leasesTidy(args) {
|
|
6178
|
-
return this.request.post("/sys/leases/tidy")
|
|
6179
|
-
name: "openBaoHttp",
|
|
6180
|
-
pathname: "/sys/leases/tidy",
|
|
6181
|
-
method: "post"
|
|
6182
|
-
});
|
|
5299
|
+
return this.request.post("/sys/leases/tidy");
|
|
6183
5300
|
}
|
|
6184
5301
|
/**
|
|
6185
5302
|
* Report the locked user count metrics, for this namespace and all child namespaces.
|
|
6186
5303
|
*
|
|
6187
5304
|
*/
|
|
6188
5305
|
lockedUsersList(args) {
|
|
6189
|
-
return this.request.get("/sys/locked-users")
|
|
6190
|
-
name: "openBaoHttp",
|
|
6191
|
-
pathname: "/sys/locked-users",
|
|
6192
|
-
method: "get"
|
|
6193
|
-
});
|
|
5306
|
+
return this.request.get("/sys/locked-users");
|
|
6194
5307
|
}
|
|
6195
5308
|
/**
|
|
6196
5309
|
* Unlocks the user with given mount_accessor and alias_identifier
|
|
6197
5310
|
*
|
|
6198
5311
|
*/
|
|
6199
5312
|
lockedUsersUnlock(args) {
|
|
6200
|
-
return this.request.post("/sys/locked-users/{mount_accessor}/unlock/{alias_identifier}")
|
|
6201
|
-
name: "openBaoHttp",
|
|
6202
|
-
pathname: "/sys/locked-users/{mount_accessor}/unlock/{alias_identifier}",
|
|
6203
|
-
method: "post"
|
|
6204
|
-
});
|
|
5313
|
+
return this.request.post("/sys/locked-users/{mount_accessor}/unlock/{alias_identifier}");
|
|
6205
5314
|
}
|
|
6206
5315
|
/**
|
|
6207
5316
|
* Read the log level for all existing loggers.
|
|
6208
5317
|
*
|
|
6209
5318
|
*/
|
|
6210
5319
|
loggersReadVerbosityLevel(args) {
|
|
6211
|
-
return this.request.get("/sys/loggers")
|
|
6212
|
-
name: "openBaoHttp",
|
|
6213
|
-
pathname: "/sys/loggers",
|
|
6214
|
-
method: "get"
|
|
6215
|
-
});
|
|
5320
|
+
return this.request.get("/sys/loggers");
|
|
6216
5321
|
}
|
|
6217
5322
|
/**
|
|
6218
5323
|
* Modify the log level for all existing loggers.
|
|
6219
5324
|
*
|
|
6220
5325
|
*/
|
|
6221
5326
|
loggersUpdateVerbosityLevel(args) {
|
|
6222
|
-
const req = this.request.post("/sys/loggers")
|
|
6223
|
-
name: "openBaoHttp",
|
|
6224
|
-
pathname: "/sys/loggers",
|
|
6225
|
-
method: "post"
|
|
6226
|
-
});
|
|
5327
|
+
const req = this.request.post("/sys/loggers");
|
|
6227
5328
|
req.type("application/json");
|
|
6228
5329
|
if (args && "level" in args) req.send({ level: args["level"] });
|
|
6229
5330
|
return req;
|
|
@@ -6233,33 +5334,21 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6233
5334
|
*
|
|
6234
5335
|
*/
|
|
6235
5336
|
loggersRevertVerbosityLevel(args) {
|
|
6236
|
-
return this.request.delete("/sys/loggers")
|
|
6237
|
-
name: "openBaoHttp",
|
|
6238
|
-
pathname: "/sys/loggers",
|
|
6239
|
-
method: "delete"
|
|
6240
|
-
});
|
|
5337
|
+
return this.request.delete("/sys/loggers");
|
|
6241
5338
|
}
|
|
6242
5339
|
/**
|
|
6243
5340
|
* Read the log level for a single logger.
|
|
6244
5341
|
*
|
|
6245
5342
|
*/
|
|
6246
5343
|
loggersReadVerbosityLevelFor(args) {
|
|
6247
|
-
return this.request.get("/sys/loggers/{name}")
|
|
6248
|
-
name: "openBaoHttp",
|
|
6249
|
-
pathname: "/sys/loggers/{name}",
|
|
6250
|
-
method: "get"
|
|
6251
|
-
});
|
|
5344
|
+
return this.request.get("/sys/loggers/{name}");
|
|
6252
5345
|
}
|
|
6253
5346
|
/**
|
|
6254
5347
|
* Modify the log level of a single logger.
|
|
6255
5348
|
*
|
|
6256
5349
|
*/
|
|
6257
5350
|
loggersUpdateVerbosityLevelFor(args) {
|
|
6258
|
-
const req = this.request.post("/sys/loggers/{name}")
|
|
6259
|
-
name: "openBaoHttp",
|
|
6260
|
-
pathname: "/sys/loggers/{name}",
|
|
6261
|
-
method: "post"
|
|
6262
|
-
});
|
|
5351
|
+
const req = this.request.post("/sys/loggers/{name}");
|
|
6263
5352
|
req.type("application/json");
|
|
6264
5353
|
if (args && "level" in args) req.send({ level: args["level"] });
|
|
6265
5354
|
return req;
|
|
@@ -6269,69 +5358,41 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6269
5358
|
*
|
|
6270
5359
|
*/
|
|
6271
5360
|
loggersRevertVerbosityLevelFor(args) {
|
|
6272
|
-
return this.request.delete("/sys/loggers/{name}")
|
|
6273
|
-
name: "openBaoHttp",
|
|
6274
|
-
pathname: "/sys/loggers/{name}",
|
|
6275
|
-
method: "delete"
|
|
6276
|
-
});
|
|
5361
|
+
return this.request.delete("/sys/loggers/{name}");
|
|
6277
5362
|
}
|
|
6278
5363
|
metrics(args) {
|
|
6279
|
-
return this.request.get("/sys/metrics")
|
|
6280
|
-
name: "openBaoHttp",
|
|
6281
|
-
pathname: "/sys/metrics",
|
|
6282
|
-
method: "get"
|
|
6283
|
-
});
|
|
5364
|
+
return this.request.get("/sys/metrics");
|
|
6284
5365
|
}
|
|
6285
5366
|
/**
|
|
6286
5367
|
* Validates the login for the given MFA methods. Upon successful validation, it returns an auth response containing the client token
|
|
6287
5368
|
*
|
|
6288
5369
|
*/
|
|
6289
5370
|
mfaValidate(args) {
|
|
6290
|
-
const req = this.request.post("/sys/mfa/validate")
|
|
6291
|
-
name: "openBaoHttp",
|
|
6292
|
-
pathname: "/sys/mfa/validate",
|
|
6293
|
-
method: "post"
|
|
6294
|
-
});
|
|
5371
|
+
const req = this.request.post("/sys/mfa/validate");
|
|
6295
5372
|
req.type("application/json");
|
|
6296
5373
|
if (args && "mfa_payload" in args) req.send({ mfa_payload: args["mfa_payload"] });
|
|
6297
5374
|
if (args && "mfa_request_id" in args) req.send({ mfa_request_id: args["mfa_request_id"] });
|
|
6298
5375
|
return req;
|
|
6299
5376
|
}
|
|
6300
5377
|
monitor(args) {
|
|
6301
|
-
return this.request.get("/sys/monitor")
|
|
6302
|
-
name: "openBaoHttp",
|
|
6303
|
-
pathname: "/sys/monitor",
|
|
6304
|
-
method: "get"
|
|
6305
|
-
});
|
|
5378
|
+
return this.request.get("/sys/monitor");
|
|
6306
5379
|
}
|
|
6307
5380
|
mountsListSecretsEngines(args) {
|
|
6308
|
-
return this.request.get("/sys/mounts")
|
|
6309
|
-
name: "openBaoHttp",
|
|
6310
|
-
pathname: "/sys/mounts",
|
|
6311
|
-
method: "get"
|
|
6312
|
-
});
|
|
5381
|
+
return this.request.get("/sys/mounts");
|
|
6313
5382
|
}
|
|
6314
5383
|
/**
|
|
6315
5384
|
* Read the configuration of the secret engine at the given path.
|
|
6316
5385
|
*
|
|
6317
5386
|
*/
|
|
6318
5387
|
mountsReadConfiguration(args) {
|
|
6319
|
-
return this.request.get("/sys/mounts/{path}")
|
|
6320
|
-
name: "openBaoHttp",
|
|
6321
|
-
pathname: "/sys/mounts/{path}",
|
|
6322
|
-
method: "get"
|
|
6323
|
-
});
|
|
5388
|
+
return this.request.get("/sys/mounts/{path}");
|
|
6324
5389
|
}
|
|
6325
5390
|
/**
|
|
6326
5391
|
* Enable a new secrets engine at the given path.
|
|
6327
5392
|
*
|
|
6328
5393
|
*/
|
|
6329
5394
|
mountsEnableSecretsEngine(args) {
|
|
6330
|
-
const req = this.request.post("/sys/mounts/{path}")
|
|
6331
|
-
name: "openBaoHttp",
|
|
6332
|
-
pathname: "/sys/mounts/{path}",
|
|
6333
|
-
method: "post"
|
|
6334
|
-
});
|
|
5395
|
+
const req = this.request.post("/sys/mounts/{path}");
|
|
6335
5396
|
req.type("application/json");
|
|
6336
5397
|
if (args && "config" in args) req.send({ config: args["config"] });
|
|
6337
5398
|
if (args && "description" in args) req.send({ description: args["description"] });
|
|
@@ -6349,25 +5410,13 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6349
5410
|
*
|
|
6350
5411
|
*/
|
|
6351
5412
|
mountsDisableSecretsEngine(args) {
|
|
6352
|
-
return this.request.delete("/sys/mounts/{path}")
|
|
6353
|
-
name: "openBaoHttp",
|
|
6354
|
-
pathname: "/sys/mounts/{path}",
|
|
6355
|
-
method: "delete"
|
|
6356
|
-
});
|
|
5413
|
+
return this.request.delete("/sys/mounts/{path}");
|
|
6357
5414
|
}
|
|
6358
5415
|
mountsReadTuningInformation(args) {
|
|
6359
|
-
return this.request.get("/sys/mounts/{path}/tune")
|
|
6360
|
-
name: "openBaoHttp",
|
|
6361
|
-
pathname: "/sys/mounts/{path}/tune",
|
|
6362
|
-
method: "get"
|
|
6363
|
-
});
|
|
5416
|
+
return this.request.get("/sys/mounts/{path}/tune");
|
|
6364
5417
|
}
|
|
6365
5418
|
mountsTuneConfigurationParameters(args) {
|
|
6366
|
-
const req = this.request.post("/sys/mounts/{path}/tune")
|
|
6367
|
-
name: "openBaoHttp",
|
|
6368
|
-
pathname: "/sys/mounts/{path}/tune",
|
|
6369
|
-
method: "post"
|
|
6370
|
-
});
|
|
5419
|
+
const req = this.request.post("/sys/mounts/{path}/tune");
|
|
6371
5420
|
req.type("application/json");
|
|
6372
5421
|
if (args && "allowed_managed_keys" in args) req.send({ allowed_managed_keys: args["allowed_managed_keys"] });
|
|
6373
5422
|
if (args && "allowed_response_headers" in args) req.send({ allowed_response_headers: args["allowed_response_headers"] });
|
|
@@ -6389,11 +5438,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6389
5438
|
*
|
|
6390
5439
|
*/
|
|
6391
5440
|
namespacesListNamespaces(args) {
|
|
6392
|
-
const req = this.request.get("/sys/namespaces")
|
|
6393
|
-
name: "openBaoHttp",
|
|
6394
|
-
pathname: "/sys/namespaces",
|
|
6395
|
-
method: "get"
|
|
6396
|
-
});
|
|
5441
|
+
const req = this.request.get("/sys/namespaces");
|
|
6397
5442
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6398
5443
|
return req;
|
|
6399
5444
|
}
|
|
@@ -6402,11 +5447,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6402
5447
|
*
|
|
6403
5448
|
*/
|
|
6404
5449
|
namespacesWriteNamespacesApiLockLock(args) {
|
|
6405
|
-
const req = this.request.post("/sys/namespaces/api-lock/lock")
|
|
6406
|
-
name: "openBaoHttp",
|
|
6407
|
-
pathname: "/sys/namespaces/api-lock/lock",
|
|
6408
|
-
method: "post"
|
|
6409
|
-
});
|
|
5450
|
+
const req = this.request.post("/sys/namespaces/api-lock/lock");
|
|
6410
5451
|
req.type("application/json");
|
|
6411
5452
|
if (args && "path" in args) req.send({ path: args["path"] });
|
|
6412
5453
|
return req;
|
|
@@ -6416,22 +5457,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6416
5457
|
*
|
|
6417
5458
|
*/
|
|
6418
5459
|
namespacesWriteNamespacesApiLockLockPath(args) {
|
|
6419
|
-
return this.request.post("/sys/namespaces/api-lock/lock/{path}")
|
|
6420
|
-
name: "openBaoHttp",
|
|
6421
|
-
pathname: "/sys/namespaces/api-lock/lock/{path}",
|
|
6422
|
-
method: "post"
|
|
6423
|
-
});
|
|
5460
|
+
return this.request.post("/sys/namespaces/api-lock/lock/{path}");
|
|
6424
5461
|
}
|
|
6425
5462
|
/**
|
|
6426
5463
|
* Unlock a namespace.
|
|
6427
5464
|
*
|
|
6428
5465
|
*/
|
|
6429
5466
|
namespacesWriteNamespacesApiLockUnlock(args) {
|
|
6430
|
-
const req = this.request.post("/sys/namespaces/api-lock/unlock")
|
|
6431
|
-
name: "openBaoHttp",
|
|
6432
|
-
pathname: "/sys/namespaces/api-lock/unlock",
|
|
6433
|
-
method: "post"
|
|
6434
|
-
});
|
|
5467
|
+
const req = this.request.post("/sys/namespaces/api-lock/unlock");
|
|
6435
5468
|
req.type("application/json");
|
|
6436
5469
|
if (args && "path" in args) req.send({ path: args["path"] });
|
|
6437
5470
|
if (args && "unlock_key" in args) req.send({ unlock_key: args["unlock_key"] });
|
|
@@ -6442,11 +5475,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6442
5475
|
*
|
|
6443
5476
|
*/
|
|
6444
5477
|
namespacesWriteNamespacesApiLockUnlockPath(args) {
|
|
6445
|
-
const req = this.request.post("/sys/namespaces/api-lock/unlock/{path}")
|
|
6446
|
-
name: "openBaoHttp",
|
|
6447
|
-
pathname: "/sys/namespaces/api-lock/unlock/{path}",
|
|
6448
|
-
method: "post"
|
|
6449
|
-
});
|
|
5478
|
+
const req = this.request.post("/sys/namespaces/api-lock/unlock/{path}");
|
|
6450
5479
|
req.type("application/json");
|
|
6451
5480
|
if (args && "unlock_key" in args) req.send({ unlock_key: args["unlock_key"] });
|
|
6452
5481
|
return req;
|
|
@@ -6456,22 +5485,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6456
5485
|
*
|
|
6457
5486
|
*/
|
|
6458
5487
|
namespacesReadNamespacesPath(args) {
|
|
6459
|
-
return this.request.get("/sys/namespaces/{path}")
|
|
6460
|
-
name: "openBaoHttp",
|
|
6461
|
-
pathname: "/sys/namespaces/{path}",
|
|
6462
|
-
method: "get"
|
|
6463
|
-
});
|
|
5488
|
+
return this.request.get("/sys/namespaces/{path}");
|
|
6464
5489
|
}
|
|
6465
5490
|
/**
|
|
6466
5491
|
* Create or update a namespace.
|
|
6467
5492
|
*
|
|
6468
5493
|
*/
|
|
6469
5494
|
namespacesWriteNamespacesPath(args) {
|
|
6470
|
-
const req = this.request.post("/sys/namespaces/{path}")
|
|
6471
|
-
name: "openBaoHttp",
|
|
6472
|
-
pathname: "/sys/namespaces/{path}",
|
|
6473
|
-
method: "post"
|
|
6474
|
-
});
|
|
5495
|
+
const req = this.request.post("/sys/namespaces/{path}");
|
|
6475
5496
|
req.type("application/json");
|
|
6476
5497
|
if (args && "custom_metadata" in args) req.send({ custom_metadata: args["custom_metadata"] });
|
|
6477
5498
|
return req;
|
|
@@ -6481,40 +5502,24 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6481
5502
|
*
|
|
6482
5503
|
*/
|
|
6483
5504
|
namespacesDeleteNamespacesPath(args) {
|
|
6484
|
-
return this.request.delete("/sys/namespaces/{path}")
|
|
6485
|
-
name: "openBaoHttp",
|
|
6486
|
-
pathname: "/sys/namespaces/{path}",
|
|
6487
|
-
method: "delete"
|
|
6488
|
-
});
|
|
5505
|
+
return this.request.delete("/sys/namespaces/{path}");
|
|
6489
5506
|
}
|
|
6490
5507
|
pluginsCatalogListPlugins(args) {
|
|
6491
|
-
return this.request.get("/sys/plugins/catalog")
|
|
6492
|
-
name: "openBaoHttp",
|
|
6493
|
-
pathname: "/sys/plugins/catalog",
|
|
6494
|
-
method: "get"
|
|
6495
|
-
});
|
|
5508
|
+
return this.request.get("/sys/plugins/catalog");
|
|
6496
5509
|
}
|
|
6497
5510
|
/**
|
|
6498
5511
|
* Return the configuration data for the plugin with the given name.
|
|
6499
5512
|
*
|
|
6500
5513
|
*/
|
|
6501
5514
|
pluginsCatalogReadPluginConfiguration(args) {
|
|
6502
|
-
return this.request.get("/sys/plugins/catalog/{name}")
|
|
6503
|
-
name: "openBaoHttp",
|
|
6504
|
-
pathname: "/sys/plugins/catalog/{name}",
|
|
6505
|
-
method: "get"
|
|
6506
|
-
});
|
|
5515
|
+
return this.request.get("/sys/plugins/catalog/{name}");
|
|
6507
5516
|
}
|
|
6508
5517
|
/**
|
|
6509
5518
|
* Register a new plugin, or updates an existing one with the supplied name.
|
|
6510
5519
|
*
|
|
6511
5520
|
*/
|
|
6512
5521
|
pluginsCatalogRegisterPlugin(args) {
|
|
6513
|
-
const req = this.request.post("/sys/plugins/catalog/{name}")
|
|
6514
|
-
name: "openBaoHttp",
|
|
6515
|
-
pathname: "/sys/plugins/catalog/{name}",
|
|
6516
|
-
method: "post"
|
|
6517
|
-
});
|
|
5522
|
+
const req = this.request.post("/sys/plugins/catalog/{name}");
|
|
6518
5523
|
req.type("application/json");
|
|
6519
5524
|
if (args && "args" in args) req.send({ args: args["args"] });
|
|
6520
5525
|
if (args && "command" in args) req.send({ command: args["command"] });
|
|
@@ -6530,22 +5535,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6530
5535
|
*
|
|
6531
5536
|
*/
|
|
6532
5537
|
pluginsCatalogRemovePlugin(args) {
|
|
6533
|
-
return this.request.delete("/sys/plugins/catalog/{name}")
|
|
6534
|
-
name: "openBaoHttp",
|
|
6535
|
-
pathname: "/sys/plugins/catalog/{name}",
|
|
6536
|
-
method: "delete"
|
|
6537
|
-
});
|
|
5538
|
+
return this.request.delete("/sys/plugins/catalog/{name}");
|
|
6538
5539
|
}
|
|
6539
5540
|
/**
|
|
6540
5541
|
* List the plugins in the catalog.
|
|
6541
5542
|
*
|
|
6542
5543
|
*/
|
|
6543
5544
|
pluginsCatalogListPluginsWithType(args) {
|
|
6544
|
-
const req = this.request.get("/sys/plugins/catalog/{type}")
|
|
6545
|
-
name: "openBaoHttp",
|
|
6546
|
-
pathname: "/sys/plugins/catalog/{type}",
|
|
6547
|
-
method: "get"
|
|
6548
|
-
});
|
|
5545
|
+
const req = this.request.get("/sys/plugins/catalog/{type}");
|
|
6549
5546
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6550
5547
|
return req;
|
|
6551
5548
|
}
|
|
@@ -6554,22 +5551,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6554
5551
|
*
|
|
6555
5552
|
*/
|
|
6556
5553
|
pluginsCatalogReadPluginConfigurationWithType(args) {
|
|
6557
|
-
return this.request.get("/sys/plugins/catalog/{type}/{name}")
|
|
6558
|
-
name: "openBaoHttp",
|
|
6559
|
-
pathname: "/sys/plugins/catalog/{type}/{name}",
|
|
6560
|
-
method: "get"
|
|
6561
|
-
});
|
|
5554
|
+
return this.request.get("/sys/plugins/catalog/{type}/{name}");
|
|
6562
5555
|
}
|
|
6563
5556
|
/**
|
|
6564
5557
|
* Register a new plugin, or updates an existing one with the supplied name.
|
|
6565
5558
|
*
|
|
6566
5559
|
*/
|
|
6567
5560
|
pluginsCatalogRegisterPluginWithType(args) {
|
|
6568
|
-
const req = this.request.post("/sys/plugins/catalog/{type}/{name}")
|
|
6569
|
-
name: "openBaoHttp",
|
|
6570
|
-
pathname: "/sys/plugins/catalog/{type}/{name}",
|
|
6571
|
-
method: "post"
|
|
6572
|
-
});
|
|
5561
|
+
const req = this.request.post("/sys/plugins/catalog/{type}/{name}");
|
|
6573
5562
|
req.type("application/json");
|
|
6574
5563
|
if (args && "args" in args) req.send({ args: args["args"] });
|
|
6575
5564
|
if (args && "command" in args) req.send({ command: args["command"] });
|
|
@@ -6584,11 +5573,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6584
5573
|
*
|
|
6585
5574
|
*/
|
|
6586
5575
|
pluginsCatalogRemovePluginWithType(args) {
|
|
6587
|
-
return this.request.delete("/sys/plugins/catalog/{type}/{name}")
|
|
6588
|
-
name: "openBaoHttp",
|
|
6589
|
-
pathname: "/sys/plugins/catalog/{type}/{name}",
|
|
6590
|
-
method: "delete"
|
|
6591
|
-
});
|
|
5576
|
+
return this.request.delete("/sys/plugins/catalog/{type}/{name}");
|
|
6592
5577
|
}
|
|
6593
5578
|
/**
|
|
6594
5579
|
* Reload mounted plugin backends.
|
|
@@ -6596,11 +5581,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6596
5581
|
* @description Either the plugin name (`plugin`) or the desired plugin backend mounts (`mounts`) must be provided, but not both. In the case that the plugin name is provided, all mounted paths that use that plugin backend will be reloaded. If (`scope`) is provided and is (`global`), the plugin(s) are reloaded globally.
|
|
6597
5582
|
*/
|
|
6598
5583
|
pluginsReloadBackends(args) {
|
|
6599
|
-
const req = this.request.post("/sys/plugins/reload/backend")
|
|
6600
|
-
name: "openBaoHttp",
|
|
6601
|
-
pathname: "/sys/plugins/reload/backend",
|
|
6602
|
-
method: "post"
|
|
6603
|
-
});
|
|
5584
|
+
const req = this.request.post("/sys/plugins/reload/backend");
|
|
6604
5585
|
req.type("application/json");
|
|
6605
5586
|
if (args && "mounts" in args) req.send({ mounts: args["mounts"] });
|
|
6606
5587
|
if (args && "plugin" in args) req.send({ plugin: args["plugin"] });
|
|
@@ -6608,11 +5589,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6608
5589
|
return req;
|
|
6609
5590
|
}
|
|
6610
5591
|
policiesListAclPolicies(args) {
|
|
6611
|
-
const req = this.request.get("/sys/policies/acl")
|
|
6612
|
-
name: "openBaoHttp",
|
|
6613
|
-
pathname: "/sys/policies/acl",
|
|
6614
|
-
method: "get"
|
|
6615
|
-
});
|
|
5592
|
+
const req = this.request.get("/sys/policies/acl");
|
|
6616
5593
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6617
5594
|
return req;
|
|
6618
5595
|
}
|
|
@@ -6621,11 +5598,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6621
5598
|
*
|
|
6622
5599
|
*/
|
|
6623
5600
|
policiesReadAclPolicy(args) {
|
|
6624
|
-
const req = this.request.get("/sys/policies/acl/{name}")
|
|
6625
|
-
name: "openBaoHttp",
|
|
6626
|
-
pathname: "/sys/policies/acl/{name}",
|
|
6627
|
-
method: "get"
|
|
6628
|
-
});
|
|
5601
|
+
const req = this.request.get("/sys/policies/acl/{name}");
|
|
6629
5602
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6630
5603
|
return req;
|
|
6631
5604
|
}
|
|
@@ -6634,11 +5607,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6634
5607
|
*
|
|
6635
5608
|
*/
|
|
6636
5609
|
policiesWriteAclPolicy(args) {
|
|
6637
|
-
const req = this.request.post("/sys/policies/acl/{name}")
|
|
6638
|
-
name: "openBaoHttp",
|
|
6639
|
-
pathname: "/sys/policies/acl/{name}",
|
|
6640
|
-
method: "post"
|
|
6641
|
-
});
|
|
5610
|
+
const req = this.request.post("/sys/policies/acl/{name}");
|
|
6642
5611
|
req.type("application/json");
|
|
6643
5612
|
if (args && "cas" in args) req.send({ cas: args["cas"] });
|
|
6644
5613
|
if (args && "cas_required" in args) req.send({ cas_required: args["cas_required"] });
|
|
@@ -6652,22 +5621,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6652
5621
|
*
|
|
6653
5622
|
*/
|
|
6654
5623
|
policiesDeleteAclPolicy(args) {
|
|
6655
|
-
return this.request.delete("/sys/policies/acl/{name}")
|
|
6656
|
-
name: "openBaoHttp",
|
|
6657
|
-
pathname: "/sys/policies/acl/{name}",
|
|
6658
|
-
method: "delete"
|
|
6659
|
-
});
|
|
5624
|
+
return this.request.delete("/sys/policies/acl/{name}");
|
|
6660
5625
|
}
|
|
6661
5626
|
/**
|
|
6662
5627
|
* List ACL policies with detailed information.
|
|
6663
5628
|
*
|
|
6664
5629
|
*/
|
|
6665
5630
|
systemListPoliciesDetailedAcl(args) {
|
|
6666
|
-
const req = this.request.get("/sys/policies/detailed/acl")
|
|
6667
|
-
name: "openBaoHttp",
|
|
6668
|
-
pathname: "/sys/policies/detailed/acl",
|
|
6669
|
-
method: "get"
|
|
6670
|
-
});
|
|
5631
|
+
const req = this.request.get("/sys/policies/detailed/acl");
|
|
6671
5632
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6672
5633
|
return req;
|
|
6673
5634
|
}
|
|
@@ -6676,11 +5637,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6676
5637
|
*
|
|
6677
5638
|
*/
|
|
6678
5639
|
systemListPoliciesDetailedAclName(args) {
|
|
6679
|
-
const req = this.request.get("/sys/policies/detailed/acl/{name}")
|
|
6680
|
-
name: "openBaoHttp",
|
|
6681
|
-
pathname: "/sys/policies/detailed/acl/{name}",
|
|
6682
|
-
method: "get"
|
|
6683
|
-
});
|
|
5640
|
+
const req = this.request.get("/sys/policies/detailed/acl/{name}");
|
|
6684
5641
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6685
5642
|
return req;
|
|
6686
5643
|
}
|
|
@@ -6689,11 +5646,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6689
5646
|
*
|
|
6690
5647
|
*/
|
|
6691
5648
|
policiesListPasswordPolicies(args) {
|
|
6692
|
-
const req = this.request.get("/sys/policies/password")
|
|
6693
|
-
name: "openBaoHttp",
|
|
6694
|
-
pathname: "/sys/policies/password",
|
|
6695
|
-
method: "get"
|
|
6696
|
-
});
|
|
5649
|
+
const req = this.request.get("/sys/policies/password");
|
|
6697
5650
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6698
5651
|
return req;
|
|
6699
5652
|
}
|
|
@@ -6702,22 +5655,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6702
5655
|
*
|
|
6703
5656
|
*/
|
|
6704
5657
|
policiesReadPasswordPolicy(args) {
|
|
6705
|
-
return this.request.get("/sys/policies/password/{name}")
|
|
6706
|
-
name: "openBaoHttp",
|
|
6707
|
-
pathname: "/sys/policies/password/{name}",
|
|
6708
|
-
method: "get"
|
|
6709
|
-
});
|
|
5658
|
+
return this.request.get("/sys/policies/password/{name}");
|
|
6710
5659
|
}
|
|
6711
5660
|
/**
|
|
6712
5661
|
* Add a new or update an existing password policy.
|
|
6713
5662
|
*
|
|
6714
5663
|
*/
|
|
6715
5664
|
policiesWritePasswordPolicy(args) {
|
|
6716
|
-
const req = this.request.post("/sys/policies/password/{name}")
|
|
6717
|
-
name: "openBaoHttp",
|
|
6718
|
-
pathname: "/sys/policies/password/{name}",
|
|
6719
|
-
method: "post"
|
|
6720
|
-
});
|
|
5665
|
+
const req = this.request.post("/sys/policies/password/{name}");
|
|
6721
5666
|
req.type("application/json");
|
|
6722
5667
|
if (args && "policy" in args) req.send({ policy: args["policy"] });
|
|
6723
5668
|
return req;
|
|
@@ -6727,222 +5672,25 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6727
5672
|
*
|
|
6728
5673
|
*/
|
|
6729
5674
|
policiesDeletePasswordPolicy(args) {
|
|
6730
|
-
return this.request.delete("/sys/policies/password/{name}")
|
|
6731
|
-
name: "openBaoHttp",
|
|
6732
|
-
pathname: "/sys/policies/password/{name}",
|
|
6733
|
-
method: "delete"
|
|
6734
|
-
});
|
|
5675
|
+
return this.request.delete("/sys/policies/password/{name}");
|
|
6735
5676
|
}
|
|
6736
5677
|
/**
|
|
6737
5678
|
* Generate a password from an existing password policy.
|
|
6738
5679
|
*
|
|
6739
5680
|
*/
|
|
6740
5681
|
policiesGeneratePasswordFromPasswordPolicy(args) {
|
|
6741
|
-
return this.request.get("/sys/policies/password/{name}/generate")
|
|
6742
|
-
name: "openBaoHttp",
|
|
6743
|
-
pathname: "/sys/policies/password/{name}/generate",
|
|
6744
|
-
method: "get"
|
|
6745
|
-
});
|
|
5682
|
+
return this.request.get("/sys/policies/password/{name}/generate");
|
|
6746
5683
|
}
|
|
6747
5684
|
policiesList(args) {
|
|
6748
|
-
const req = this.request.get("/sys/policy")
|
|
6749
|
-
name: "openBaoHttp",
|
|
6750
|
-
pathname: "/sys/policy",
|
|
6751
|
-
method: "get"
|
|
6752
|
-
});
|
|
6753
|
-
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6754
|
-
return req;
|
|
6755
|
-
}
|
|
6756
|
-
/**
|
|
6757
|
-
* Retrieve the policy body for the named policy.
|
|
6758
|
-
*
|
|
6759
|
-
*/
|
|
6760
|
-
policiesReadAclPolicy2(args) {
|
|
6761
|
-
const req = this.request.get("/sys/policy/{name}").option("module", {
|
|
6762
|
-
name: "openBaoHttp",
|
|
6763
|
-
pathname: "/sys/policy/{name}",
|
|
6764
|
-
method: "get"
|
|
6765
|
-
});
|
|
5685
|
+
const req = this.request.get("/sys/policy");
|
|
6766
5686
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6767
5687
|
return req;
|
|
6768
5688
|
}
|
|
6769
|
-
/**
|
|
6770
|
-
* Add a new or update an existing policy.
|
|
6771
|
-
*
|
|
6772
|
-
*/
|
|
6773
|
-
policiesWriteAclPolicy2(args) {
|
|
6774
|
-
const req = this.request.post("/sys/policy/{name}").option("module", {
|
|
6775
|
-
name: "openBaoHttp",
|
|
6776
|
-
pathname: "/sys/policy/{name}",
|
|
6777
|
-
method: "post"
|
|
6778
|
-
});
|
|
6779
|
-
req.type("application/json");
|
|
6780
|
-
if (args && "cas" in args) req.send({ cas: args["cas"] });
|
|
6781
|
-
if (args && "cas_required" in args) req.send({ cas_required: args["cas_required"] });
|
|
6782
|
-
if (args && "expiration" in args) req.send({ expiration: args["expiration"] });
|
|
6783
|
-
if (args && "policy" in args) req.send({ policy: args["policy"] });
|
|
6784
|
-
if (args && "rules" in args) req.send({ rules: args["rules"] });
|
|
6785
|
-
if (args && "ttl" in args) req.send({ ttl: args["ttl"] });
|
|
6786
|
-
return req;
|
|
6787
|
-
}
|
|
6788
|
-
/**
|
|
6789
|
-
* Delete the policy with the given name.
|
|
6790
|
-
*
|
|
6791
|
-
*/
|
|
6792
|
-
policiesDeleteAclPolicy2(args) {
|
|
6793
|
-
return this.request.delete("/sys/policy/{name}").option("module", {
|
|
6794
|
-
name: "openBaoHttp",
|
|
6795
|
-
pathname: "/sys/policy/{name}",
|
|
6796
|
-
method: "delete"
|
|
6797
|
-
});
|
|
6798
|
-
}
|
|
6799
|
-
/**
|
|
6800
|
-
* Returns an HTML page listing the available profiles.
|
|
6801
|
-
*
|
|
6802
|
-
* @description Returns an HTML page listing the available
|
|
6803
|
-
* profiles. This should be mainly accessed via browsers or applications that can
|
|
6804
|
-
* render pages.
|
|
6805
|
-
*/
|
|
6806
|
-
pprofIndex(args) {
|
|
6807
|
-
return this.request.get("/sys/pprof").option("module", {
|
|
6808
|
-
name: "openBaoHttp",
|
|
6809
|
-
pathname: "/sys/pprof",
|
|
6810
|
-
method: "get"
|
|
6811
|
-
});
|
|
6812
|
-
}
|
|
6813
|
-
/**
|
|
6814
|
-
* Returns a sampling of all past memory allocations.
|
|
6815
|
-
*
|
|
6816
|
-
* @description Returns a sampling of all past memory allocations.
|
|
6817
|
-
*/
|
|
6818
|
-
pprofMemoryAllocations(args) {
|
|
6819
|
-
return this.request.get("/sys/pprof/allocs").option("module", {
|
|
6820
|
-
name: "openBaoHttp",
|
|
6821
|
-
pathname: "/sys/pprof/allocs",
|
|
6822
|
-
method: "get"
|
|
6823
|
-
});
|
|
6824
|
-
}
|
|
6825
|
-
/**
|
|
6826
|
-
* Returns stack traces that led to blocking on synchronization primitives
|
|
6827
|
-
*
|
|
6828
|
-
* @description Returns stack traces that led to blocking on synchronization primitives
|
|
6829
|
-
*/
|
|
6830
|
-
pprofBlocking(args) {
|
|
6831
|
-
return this.request.get("/sys/pprof/block").option("module", {
|
|
6832
|
-
name: "openBaoHttp",
|
|
6833
|
-
pathname: "/sys/pprof/block",
|
|
6834
|
-
method: "get"
|
|
6835
|
-
});
|
|
6836
|
-
}
|
|
6837
|
-
/**
|
|
6838
|
-
* Returns the running program's command line.
|
|
6839
|
-
*
|
|
6840
|
-
* @description Returns the running program's command line, with arguments separated by NUL bytes.
|
|
6841
|
-
*/
|
|
6842
|
-
pprofCommandLine(args) {
|
|
6843
|
-
return this.request.get("/sys/pprof/cmdline").option("module", {
|
|
6844
|
-
name: "openBaoHttp",
|
|
6845
|
-
pathname: "/sys/pprof/cmdline",
|
|
6846
|
-
method: "get"
|
|
6847
|
-
});
|
|
6848
|
-
}
|
|
6849
|
-
/**
|
|
6850
|
-
* Returns stack traces of all current goroutines.
|
|
6851
|
-
*
|
|
6852
|
-
* @description Returns stack traces of all current goroutines.
|
|
6853
|
-
*/
|
|
6854
|
-
pprofGoroutines(args) {
|
|
6855
|
-
return this.request.get("/sys/pprof/goroutine").option("module", {
|
|
6856
|
-
name: "openBaoHttp",
|
|
6857
|
-
pathname: "/sys/pprof/goroutine",
|
|
6858
|
-
method: "get"
|
|
6859
|
-
});
|
|
6860
|
-
}
|
|
6861
|
-
/**
|
|
6862
|
-
* Returns a sampling of memory allocations of live object.
|
|
6863
|
-
*
|
|
6864
|
-
* @description Returns a sampling of memory allocations of live object.
|
|
6865
|
-
*/
|
|
6866
|
-
pprofMemoryAllocationsLive(args) {
|
|
6867
|
-
return this.request.get("/sys/pprof/heap").option("module", {
|
|
6868
|
-
name: "openBaoHttp",
|
|
6869
|
-
pathname: "/sys/pprof/heap",
|
|
6870
|
-
method: "get"
|
|
6871
|
-
});
|
|
6872
|
-
}
|
|
6873
|
-
/**
|
|
6874
|
-
* Returns stack traces of holders of contended mutexes
|
|
6875
|
-
*
|
|
6876
|
-
* @description Returns stack traces of holders of contended mutexes
|
|
6877
|
-
*/
|
|
6878
|
-
pprofMutexes(args) {
|
|
6879
|
-
return this.request.get("/sys/pprof/mutex").option("module", {
|
|
6880
|
-
name: "openBaoHttp",
|
|
6881
|
-
pathname: "/sys/pprof/mutex",
|
|
6882
|
-
method: "get"
|
|
6883
|
-
});
|
|
6884
|
-
}
|
|
6885
|
-
/**
|
|
6886
|
-
* Returns a pprof-formatted cpu profile payload.
|
|
6887
|
-
*
|
|
6888
|
-
* @description Returns a pprof-formatted cpu profile payload. Profiling lasts for duration specified in seconds GET parameter, or for 30 seconds if not specified.
|
|
6889
|
-
*/
|
|
6890
|
-
pprofCpuProfile(args) {
|
|
6891
|
-
return this.request.get("/sys/pprof/profile").option("module", {
|
|
6892
|
-
name: "openBaoHttp",
|
|
6893
|
-
pathname: "/sys/pprof/profile",
|
|
6894
|
-
method: "get"
|
|
6895
|
-
});
|
|
6896
|
-
}
|
|
6897
|
-
/**
|
|
6898
|
-
* Returns the program counters listed in the request.
|
|
6899
|
-
*
|
|
6900
|
-
* @description Returns the program counters listed in the request.
|
|
6901
|
-
*/
|
|
6902
|
-
pprofSymbols(args) {
|
|
6903
|
-
return this.request.get("/sys/pprof/symbol").option("module", {
|
|
6904
|
-
name: "openBaoHttp",
|
|
6905
|
-
pathname: "/sys/pprof/symbol",
|
|
6906
|
-
method: "get"
|
|
6907
|
-
});
|
|
6908
|
-
}
|
|
6909
|
-
/**
|
|
6910
|
-
* Returns stack traces that led to the creation of new OS threads
|
|
6911
|
-
*
|
|
6912
|
-
* @description Returns stack traces that led to the creation of new OS threads
|
|
6913
|
-
*/
|
|
6914
|
-
pprofThreadCreations(args) {
|
|
6915
|
-
return this.request.get("/sys/pprof/threadcreate").option("module", {
|
|
6916
|
-
name: "openBaoHttp",
|
|
6917
|
-
pathname: "/sys/pprof/threadcreate",
|
|
6918
|
-
method: "get"
|
|
6919
|
-
});
|
|
6920
|
-
}
|
|
6921
|
-
/**
|
|
6922
|
-
* Returns the execution trace in binary form.
|
|
6923
|
-
*
|
|
6924
|
-
* @description Returns the execution trace in binary form. Tracing lasts for duration specified in seconds GET parameter, or for 1 second if not specified.
|
|
6925
|
-
*/
|
|
6926
|
-
pprofExecutionTrace(args) {
|
|
6927
|
-
return this.request.get("/sys/pprof/trace").option("module", {
|
|
6928
|
-
name: "openBaoHttp",
|
|
6929
|
-
pathname: "/sys/pprof/trace",
|
|
6930
|
-
method: "get"
|
|
6931
|
-
});
|
|
6932
|
-
}
|
|
6933
5689
|
rateLimitQuotasReadConfiguration(args) {
|
|
6934
|
-
return this.request.get("/sys/quotas/config")
|
|
6935
|
-
name: "openBaoHttp",
|
|
6936
|
-
pathname: "/sys/quotas/config",
|
|
6937
|
-
method: "get"
|
|
6938
|
-
});
|
|
5690
|
+
return this.request.get("/sys/quotas/config");
|
|
6939
5691
|
}
|
|
6940
5692
|
rateLimitQuotasConfigure(args) {
|
|
6941
|
-
const req = this.request.post("/sys/quotas/config")
|
|
6942
|
-
name: "openBaoHttp",
|
|
6943
|
-
pathname: "/sys/quotas/config",
|
|
6944
|
-
method: "post"
|
|
6945
|
-
});
|
|
5693
|
+
const req = this.request.post("/sys/quotas/config");
|
|
6946
5694
|
req.type("application/json");
|
|
6947
5695
|
if (args && "enable_rate_limit_audit_logging" in args) req.send({ enable_rate_limit_audit_logging: args["enable_rate_limit_audit_logging"] });
|
|
6948
5696
|
if (args && "enable_rate_limit_response_headers" in args) req.send({ enable_rate_limit_response_headers: args["enable_rate_limit_response_headers"] });
|
|
@@ -6950,27 +5698,15 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6950
5698
|
return req;
|
|
6951
5699
|
}
|
|
6952
5700
|
rateLimitQuotasList(args) {
|
|
6953
|
-
const req = this.request.get("/sys/quotas/rate-limit")
|
|
6954
|
-
name: "openBaoHttp",
|
|
6955
|
-
pathname: "/sys/quotas/rate-limit",
|
|
6956
|
-
method: "get"
|
|
6957
|
-
});
|
|
5701
|
+
const req = this.request.get("/sys/quotas/rate-limit");
|
|
6958
5702
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6959
5703
|
return req;
|
|
6960
5704
|
}
|
|
6961
5705
|
rateLimitQuotasRead(args) {
|
|
6962
|
-
return this.request.get("/sys/quotas/rate-limit/{name}")
|
|
6963
|
-
name: "openBaoHttp",
|
|
6964
|
-
pathname: "/sys/quotas/rate-limit/{name}",
|
|
6965
|
-
method: "get"
|
|
6966
|
-
});
|
|
5706
|
+
return this.request.get("/sys/quotas/rate-limit/{name}");
|
|
6967
5707
|
}
|
|
6968
5708
|
rateLimitQuotasWrite(args) {
|
|
6969
|
-
const req = this.request.post("/sys/quotas/rate-limit/{name}")
|
|
6970
|
-
name: "openBaoHttp",
|
|
6971
|
-
pathname: "/sys/quotas/rate-limit/{name}",
|
|
6972
|
-
method: "post"
|
|
6973
|
-
});
|
|
5709
|
+
const req = this.request.post("/sys/quotas/rate-limit/{name}");
|
|
6974
5710
|
req.type("application/json");
|
|
6975
5711
|
if (args && "block_interval" in args) req.send({ block_interval: args["block_interval"] });
|
|
6976
5712
|
if (args && "inheritable" in args) req.send({ inheritable: args["inheritable"] });
|
|
@@ -6982,44 +5718,28 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6982
5718
|
return req;
|
|
6983
5719
|
}
|
|
6984
5720
|
rateLimitQuotasDelete(args) {
|
|
6985
|
-
return this.request.delete("/sys/quotas/rate-limit/{name}")
|
|
6986
|
-
name: "openBaoHttp",
|
|
6987
|
-
pathname: "/sys/quotas/rate-limit/{name}",
|
|
6988
|
-
method: "delete"
|
|
6989
|
-
});
|
|
5721
|
+
return this.request.delete("/sys/quotas/rate-limit/{name}");
|
|
6990
5722
|
}
|
|
6991
5723
|
/**
|
|
6992
5724
|
* Return the backup copy of PGP-encrypted unseal keys.
|
|
6993
5725
|
*
|
|
6994
5726
|
*/
|
|
6995
5727
|
rekeyReadBackupKey(args) {
|
|
6996
|
-
return this.request.get("/sys/rekey/backup")
|
|
6997
|
-
name: "openBaoHttp",
|
|
6998
|
-
pathname: "/sys/rekey/backup",
|
|
6999
|
-
method: "get"
|
|
7000
|
-
});
|
|
5728
|
+
return this.request.get("/sys/rekey/backup");
|
|
7001
5729
|
}
|
|
7002
5730
|
/**
|
|
7003
5731
|
* Delete the backup copy of PGP-encrypted unseal keys.
|
|
7004
5732
|
*
|
|
7005
5733
|
*/
|
|
7006
5734
|
rekeyDeleteBackupKey(args) {
|
|
7007
|
-
return this.request.delete("/sys/rekey/backup")
|
|
7008
|
-
name: "openBaoHttp",
|
|
7009
|
-
pathname: "/sys/rekey/backup",
|
|
7010
|
-
method: "delete"
|
|
7011
|
-
});
|
|
5735
|
+
return this.request.delete("/sys/rekey/backup");
|
|
7012
5736
|
}
|
|
7013
5737
|
/**
|
|
7014
5738
|
* Reads the configuration and progress of the current rekey attempt.
|
|
7015
5739
|
*
|
|
7016
5740
|
*/
|
|
7017
5741
|
rekeyAttemptReadProgress(args) {
|
|
7018
|
-
return this.request.get("/sys/rekey/init")
|
|
7019
|
-
name: "openBaoHttp",
|
|
7020
|
-
pathname: "/sys/rekey/init",
|
|
7021
|
-
method: "get"
|
|
7022
|
-
});
|
|
5742
|
+
return this.request.get("/sys/rekey/init");
|
|
7023
5743
|
}
|
|
7024
5744
|
/**
|
|
7025
5745
|
* Initializes a new rekey attempt.
|
|
@@ -7027,11 +5747,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7027
5747
|
* @description Only a single rekey attempt can take place at a time, and changing the parameters of a rekey requires canceling and starting a new rekey, which will also provide a new nonce.
|
|
7028
5748
|
*/
|
|
7029
5749
|
rekeyAttemptInitialize(args) {
|
|
7030
|
-
const req = this.request.post("/sys/rekey/init")
|
|
7031
|
-
name: "openBaoHttp",
|
|
7032
|
-
pathname: "/sys/rekey/init",
|
|
7033
|
-
method: "post"
|
|
7034
|
-
});
|
|
5750
|
+
const req = this.request.post("/sys/rekey/init");
|
|
7035
5751
|
req.type("application/json");
|
|
7036
5752
|
if (args && "backup" in args) req.send({ backup: args["backup"] });
|
|
7037
5753
|
if (args && "pgp_keys" in args) req.send({ pgp_keys: args["pgp_keys"] });
|
|
@@ -7046,36 +5762,20 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7046
5762
|
* @description This clears the rekey settings as well as any progress made. This must be called to change the parameters of the rekey. Note: verification is still a part of a rekey. If rekeying is canceled during the verification flow, the current unseal keys remain valid.
|
|
7047
5763
|
*/
|
|
7048
5764
|
rekeyAttemptCancel(args) {
|
|
7049
|
-
return this.request.delete("/sys/rekey/init")
|
|
7050
|
-
name: "openBaoHttp",
|
|
7051
|
-
pathname: "/sys/rekey/init",
|
|
7052
|
-
method: "delete"
|
|
7053
|
-
});
|
|
5765
|
+
return this.request.delete("/sys/rekey/init");
|
|
7054
5766
|
}
|
|
7055
5767
|
rekeyReadBackupRecoveryKey(args) {
|
|
7056
|
-
return this.request.get("/sys/rekey/recovery-key-backup")
|
|
7057
|
-
name: "openBaoHttp",
|
|
7058
|
-
pathname: "/sys/rekey/recovery-key-backup",
|
|
7059
|
-
method: "get"
|
|
7060
|
-
});
|
|
5768
|
+
return this.request.get("/sys/rekey/recovery-key-backup");
|
|
7061
5769
|
}
|
|
7062
5770
|
rekeyDeleteBackupRecoveryKey(args) {
|
|
7063
|
-
return this.request.delete("/sys/rekey/recovery-key-backup")
|
|
7064
|
-
name: "openBaoHttp",
|
|
7065
|
-
pathname: "/sys/rekey/recovery-key-backup",
|
|
7066
|
-
method: "delete"
|
|
7067
|
-
});
|
|
5771
|
+
return this.request.delete("/sys/rekey/recovery-key-backup");
|
|
7068
5772
|
}
|
|
7069
5773
|
/**
|
|
7070
5774
|
* Enter a single unseal key share to progress the rekey of the OpenBao.
|
|
7071
5775
|
*
|
|
7072
5776
|
*/
|
|
7073
5777
|
rekeyAttemptUpdate(args) {
|
|
7074
|
-
const req = this.request.post("/sys/rekey/update")
|
|
7075
|
-
name: "openBaoHttp",
|
|
7076
|
-
pathname: "/sys/rekey/update",
|
|
7077
|
-
method: "post"
|
|
7078
|
-
});
|
|
5778
|
+
const req = this.request.post("/sys/rekey/update");
|
|
7079
5779
|
req.type("application/json");
|
|
7080
5780
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
7081
5781
|
if (args && "nonce" in args) req.send({ nonce: args["nonce"] });
|
|
@@ -7086,22 +5786,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7086
5786
|
*
|
|
7087
5787
|
*/
|
|
7088
5788
|
rekeyVerificationReadProgress(args) {
|
|
7089
|
-
return this.request.get("/sys/rekey/verify")
|
|
7090
|
-
name: "openBaoHttp",
|
|
7091
|
-
pathname: "/sys/rekey/verify",
|
|
7092
|
-
method: "get"
|
|
7093
|
-
});
|
|
5789
|
+
return this.request.get("/sys/rekey/verify");
|
|
7094
5790
|
}
|
|
7095
5791
|
/**
|
|
7096
5792
|
* Enter a single new key share to progress the rekey verification operation.
|
|
7097
5793
|
*
|
|
7098
5794
|
*/
|
|
7099
5795
|
rekeyVerificationUpdate(args) {
|
|
7100
|
-
const req = this.request.post("/sys/rekey/verify")
|
|
7101
|
-
name: "openBaoHttp",
|
|
7102
|
-
pathname: "/sys/rekey/verify",
|
|
7103
|
-
method: "post"
|
|
7104
|
-
});
|
|
5796
|
+
const req = this.request.post("/sys/rekey/verify");
|
|
7105
5797
|
req.type("application/json");
|
|
7106
5798
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
7107
5799
|
if (args && "nonce" in args) req.send({ nonce: args["nonce"] });
|
|
@@ -7113,22 +5805,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7113
5805
|
* @description This clears any progress made and resets the nonce. Unlike a `DELETE` against `sys/rekey/init`, this only resets the current verification operation, not the entire rekey atttempt.
|
|
7114
5806
|
*/
|
|
7115
5807
|
rekeyVerificationCancel(args) {
|
|
7116
|
-
return this.request.delete("/sys/rekey/verify")
|
|
7117
|
-
name: "openBaoHttp",
|
|
7118
|
-
pathname: "/sys/rekey/verify",
|
|
7119
|
-
method: "delete"
|
|
7120
|
-
});
|
|
5808
|
+
return this.request.delete("/sys/rekey/verify");
|
|
7121
5809
|
}
|
|
7122
5810
|
/**
|
|
7123
5811
|
* Initiate a mount migration
|
|
7124
5812
|
*
|
|
7125
5813
|
*/
|
|
7126
5814
|
remount(args) {
|
|
7127
|
-
const req = this.request.post("/sys/remount")
|
|
7128
|
-
name: "openBaoHttp",
|
|
7129
|
-
pathname: "/sys/remount",
|
|
7130
|
-
method: "post"
|
|
7131
|
-
});
|
|
5815
|
+
const req = this.request.post("/sys/remount");
|
|
7132
5816
|
req.type("application/json");
|
|
7133
5817
|
if (args && "from" in args) req.send({ from: args["from"] });
|
|
7134
5818
|
if (args && "to" in args) req.send({ to: args["to"] });
|
|
@@ -7139,122 +5823,16 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7139
5823
|
*
|
|
7140
5824
|
*/
|
|
7141
5825
|
remountStatus(args) {
|
|
7142
|
-
return this.request.get("/sys/remount/status/{migration_id}")
|
|
7143
|
-
name: "openBaoHttp",
|
|
7144
|
-
pathname: "/sys/remount/status/{migration_id}",
|
|
7145
|
-
method: "get"
|
|
7146
|
-
});
|
|
7147
|
-
}
|
|
7148
|
-
/**
|
|
7149
|
-
* Renews a lease, requesting to extend the lease.
|
|
7150
|
-
*
|
|
7151
|
-
*/
|
|
7152
|
-
leasesRenewLease2(args) {
|
|
7153
|
-
const req = this.request.post("/sys/renew").option("module", {
|
|
7154
|
-
name: "openBaoHttp",
|
|
7155
|
-
pathname: "/sys/renew",
|
|
7156
|
-
method: "post"
|
|
7157
|
-
});
|
|
7158
|
-
req.type("application/json");
|
|
7159
|
-
if (args && "increment" in args) req.send({ increment: args["increment"] });
|
|
7160
|
-
if (args && "lease_id" in args) req.send({ lease_id: args["lease_id"] });
|
|
7161
|
-
if (args && "url_lease_id" in args) req.send({ url_lease_id: args["url_lease_id"] });
|
|
7162
|
-
return req;
|
|
7163
|
-
}
|
|
7164
|
-
/**
|
|
7165
|
-
* Renews a lease, requesting to extend the lease.
|
|
7166
|
-
*
|
|
7167
|
-
*/
|
|
7168
|
-
leasesRenewLeaseWithId2(args) {
|
|
7169
|
-
const req = this.request.post("/sys/renew/{url_lease_id}").option("module", {
|
|
7170
|
-
name: "openBaoHttp",
|
|
7171
|
-
pathname: "/sys/renew/{url_lease_id}",
|
|
7172
|
-
method: "post"
|
|
7173
|
-
});
|
|
7174
|
-
req.type("application/json");
|
|
7175
|
-
if (args && "increment" in args) req.send({ increment: args["increment"] });
|
|
7176
|
-
if (args && "lease_id" in args) req.send({ lease_id: args["lease_id"] });
|
|
7177
|
-
return req;
|
|
7178
|
-
}
|
|
7179
|
-
/**
|
|
7180
|
-
* Revokes a lease immediately.
|
|
7181
|
-
*
|
|
7182
|
-
*/
|
|
7183
|
-
leasesRevokeLease2(args) {
|
|
7184
|
-
const req = this.request.post("/sys/revoke").option("module", {
|
|
7185
|
-
name: "openBaoHttp",
|
|
7186
|
-
pathname: "/sys/revoke",
|
|
7187
|
-
method: "post"
|
|
7188
|
-
});
|
|
7189
|
-
req.type("application/json");
|
|
7190
|
-
if (args && "lease_id" in args) req.send({ lease_id: args["lease_id"] });
|
|
7191
|
-
if (args && "sync" in args) req.send({ sync: args["sync"] });
|
|
7192
|
-
if (args && "url_lease_id" in args) req.send({ url_lease_id: args["url_lease_id"] });
|
|
7193
|
-
return req;
|
|
7194
|
-
}
|
|
7195
|
-
/**
|
|
7196
|
-
* Revokes all secrets or tokens generated under a given prefix immediately
|
|
7197
|
-
*
|
|
7198
|
-
* @description Unlike `/sys/leases/revoke-prefix`, this path ignores backend errors encountered during revocation. This is potentially very dangerous and should only be used in specific emergency situations where errors in the backend or the connected backend service prevent normal revocation.
|
|
7199
|
-
*
|
|
7200
|
-
* By ignoring these errors, OpenBao abdicates responsibility for ensuring that the issued credentials or secrets are properly revoked and/or cleaned up. Access to this endpoint should be tightly controlled.
|
|
7201
|
-
*/
|
|
7202
|
-
leasesForceRevokeLeaseWithPrefix2(args) {
|
|
7203
|
-
return this.request.post("/sys/revoke-force/{prefix}").option("module", {
|
|
7204
|
-
name: "openBaoHttp",
|
|
7205
|
-
pathname: "/sys/revoke-force/{prefix}",
|
|
7206
|
-
method: "post"
|
|
7207
|
-
});
|
|
7208
|
-
}
|
|
7209
|
-
/**
|
|
7210
|
-
* Revokes all secrets (via a lease ID prefix) or tokens (via the tokens' path property) generated under a given prefix immediately.
|
|
7211
|
-
*
|
|
7212
|
-
*/
|
|
7213
|
-
leasesRevokeLeaseWithPrefix2(args) {
|
|
7214
|
-
const req = this.request.post("/sys/revoke-prefix/{prefix}").option("module", {
|
|
7215
|
-
name: "openBaoHttp",
|
|
7216
|
-
pathname: "/sys/revoke-prefix/{prefix}",
|
|
7217
|
-
method: "post"
|
|
7218
|
-
});
|
|
7219
|
-
req.type("application/json");
|
|
7220
|
-
if (args && "sync" in args) req.send({ sync: args["sync"] });
|
|
7221
|
-
return req;
|
|
7222
|
-
}
|
|
7223
|
-
/**
|
|
7224
|
-
* Revokes a lease immediately.
|
|
7225
|
-
*
|
|
7226
|
-
*/
|
|
7227
|
-
leasesRevokeLeaseWithId2(args) {
|
|
7228
|
-
const req = this.request.post("/sys/revoke/{url_lease_id}").option("module", {
|
|
7229
|
-
name: "openBaoHttp",
|
|
7230
|
-
pathname: "/sys/revoke/{url_lease_id}",
|
|
7231
|
-
method: "post"
|
|
7232
|
-
});
|
|
7233
|
-
req.type("application/json");
|
|
7234
|
-
if (args && "lease_id" in args) req.send({ lease_id: args["lease_id"] });
|
|
7235
|
-
if (args && "sync" in args) req.send({ sync: args["sync"] });
|
|
7236
|
-
return req;
|
|
5826
|
+
return this.request.get("/sys/remount/status/{migration_id}");
|
|
7237
5827
|
}
|
|
7238
5828
|
encryptionKeyRotate(args) {
|
|
7239
|
-
return this.request.post("/sys/rotate")
|
|
7240
|
-
name: "openBaoHttp",
|
|
7241
|
-
pathname: "/sys/rotate",
|
|
7242
|
-
method: "post"
|
|
7243
|
-
});
|
|
5829
|
+
return this.request.post("/sys/rotate");
|
|
7244
5830
|
}
|
|
7245
5831
|
encryptionKeyReadRotationConfiguration(args) {
|
|
7246
|
-
return this.request.get("/sys/rotate/config")
|
|
7247
|
-
name: "openBaoHttp",
|
|
7248
|
-
pathname: "/sys/rotate/config",
|
|
7249
|
-
method: "get"
|
|
7250
|
-
});
|
|
5832
|
+
return this.request.get("/sys/rotate/config");
|
|
7251
5833
|
}
|
|
7252
5834
|
encryptionKeyConfigureRotationConfiguration(args) {
|
|
7253
|
-
const req = this.request.post("/sys/rotate/config")
|
|
7254
|
-
name: "openBaoHttp",
|
|
7255
|
-
pathname: "/sys/rotate/config",
|
|
7256
|
-
method: "post"
|
|
7257
|
-
});
|
|
5835
|
+
const req = this.request.post("/sys/rotate/config");
|
|
7258
5836
|
req.type("application/json");
|
|
7259
5837
|
if (args && "enabled" in args) req.send({ enabled: args["enabled"] });
|
|
7260
5838
|
if (args && "interval" in args) req.send({ interval: args["interval"] });
|
|
@@ -7262,25 +5840,13 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7262
5840
|
return req;
|
|
7263
5841
|
}
|
|
7264
5842
|
encryptionKeyRotateRotateKeyring(args) {
|
|
7265
|
-
return this.request.post("/sys/rotate/keyring")
|
|
7266
|
-
name: "openBaoHttp",
|
|
7267
|
-
pathname: "/sys/rotate/keyring",
|
|
7268
|
-
method: "post"
|
|
7269
|
-
});
|
|
5843
|
+
return this.request.post("/sys/rotate/keyring");
|
|
7270
5844
|
}
|
|
7271
5845
|
encryptionKeyReadRotateKeyringConfig(args) {
|
|
7272
|
-
return this.request.get("/sys/rotate/keyring/config")
|
|
7273
|
-
name: "openBaoHttp",
|
|
7274
|
-
pathname: "/sys/rotate/keyring/config",
|
|
7275
|
-
method: "get"
|
|
7276
|
-
});
|
|
5846
|
+
return this.request.get("/sys/rotate/keyring/config");
|
|
7277
5847
|
}
|
|
7278
5848
|
encryptionKeyConfigureRotateKeyringConfig(args) {
|
|
7279
|
-
const req = this.request.post("/sys/rotate/keyring/config")
|
|
7280
|
-
name: "openBaoHttp",
|
|
7281
|
-
pathname: "/sys/rotate/keyring/config",
|
|
7282
|
-
method: "post"
|
|
7283
|
-
});
|
|
5849
|
+
const req = this.request.post("/sys/rotate/keyring/config");
|
|
7284
5850
|
req.type("application/json");
|
|
7285
5851
|
if (args && "enabled" in args) req.send({ enabled: args["enabled"] });
|
|
7286
5852
|
if (args && "interval" in args) req.send({ interval: args["interval"] });
|
|
@@ -7292,33 +5858,21 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7292
5858
|
*
|
|
7293
5859
|
*/
|
|
7294
5860
|
rotateReadRotateRecoveryBackup(args) {
|
|
7295
|
-
return this.request.get("/sys/rotate/recovery/backup")
|
|
7296
|
-
name: "openBaoHttp",
|
|
7297
|
-
pathname: "/sys/rotate/recovery/backup",
|
|
7298
|
-
method: "get"
|
|
7299
|
-
});
|
|
5861
|
+
return this.request.get("/sys/rotate/recovery/backup");
|
|
7300
5862
|
}
|
|
7301
5863
|
/**
|
|
7302
5864
|
* Delete the backup copy of PGP-encrypted unseal keys.
|
|
7303
5865
|
*
|
|
7304
5866
|
*/
|
|
7305
5867
|
rotateDeleteRotateRecoveryBackup(args) {
|
|
7306
|
-
return this.request.delete("/sys/rotate/recovery/backup")
|
|
7307
|
-
name: "openBaoHttp",
|
|
7308
|
-
pathname: "/sys/rotate/recovery/backup",
|
|
7309
|
-
method: "delete"
|
|
7310
|
-
});
|
|
5868
|
+
return this.request.delete("/sys/rotate/recovery/backup");
|
|
7311
5869
|
}
|
|
7312
5870
|
/**
|
|
7313
5871
|
* Reads the configuration and progress of the current root rotate attempt.
|
|
7314
5872
|
*
|
|
7315
5873
|
*/
|
|
7316
5874
|
rotateAttemptReadRotateRecoveryInit(args) {
|
|
7317
|
-
return this.request.get("/sys/rotate/recovery/init")
|
|
7318
|
-
name: "openBaoHttp",
|
|
7319
|
-
pathname: "/sys/rotate/recovery/init",
|
|
7320
|
-
method: "get"
|
|
7321
|
-
});
|
|
5875
|
+
return this.request.get("/sys/rotate/recovery/init");
|
|
7322
5876
|
}
|
|
7323
5877
|
/**
|
|
7324
5878
|
* Initializes a new root rotate attempt.
|
|
@@ -7326,11 +5880,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7326
5880
|
* @description Only a single rotate attempt can take place at a time, and changing the parameters of a rotate requires canceling and starting a new rotation, which will also provide a new nonce.
|
|
7327
5881
|
*/
|
|
7328
5882
|
rotateAttemptInitializeRotateRecoveryInit(args) {
|
|
7329
|
-
const req = this.request.post("/sys/rotate/recovery/init")
|
|
7330
|
-
name: "openBaoHttp",
|
|
7331
|
-
pathname: "/sys/rotate/recovery/init",
|
|
7332
|
-
method: "post"
|
|
7333
|
-
});
|
|
5883
|
+
const req = this.request.post("/sys/rotate/recovery/init");
|
|
7334
5884
|
req.type("application/json");
|
|
7335
5885
|
if (args && "backup" in args) req.send({ backup: args["backup"] });
|
|
7336
5886
|
if (args && "pgp_keys" in args) req.send({ pgp_keys: args["pgp_keys"] });
|
|
@@ -7345,22 +5895,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7345
5895
|
* @description This clears the rotate settings as well as any progress made. This must be called to change the parameters of the rotate. Note: verification is still a part of a rotate. If rotating is canceled during the verification flow, the current unseal keys remain valid.
|
|
7346
5896
|
*/
|
|
7347
5897
|
rotateAttemptCancelRotateRecoveryInit(args) {
|
|
7348
|
-
return this.request.delete("/sys/rotate/recovery/init")
|
|
7349
|
-
name: "openBaoHttp",
|
|
7350
|
-
pathname: "/sys/rotate/recovery/init",
|
|
7351
|
-
method: "delete"
|
|
7352
|
-
});
|
|
5898
|
+
return this.request.delete("/sys/rotate/recovery/init");
|
|
7353
5899
|
}
|
|
7354
5900
|
/**
|
|
7355
5901
|
* Enter a single unseal key share to progress the rotation of the root key of OpenBao.
|
|
7356
5902
|
*
|
|
7357
5903
|
*/
|
|
7358
5904
|
rotateAttemptUpdateRotateRecoveryUpdate(args) {
|
|
7359
|
-
const req = this.request.post("/sys/rotate/recovery/update")
|
|
7360
|
-
name: "openBaoHttp",
|
|
7361
|
-
pathname: "/sys/rotate/recovery/update",
|
|
7362
|
-
method: "post"
|
|
7363
|
-
});
|
|
5905
|
+
const req = this.request.post("/sys/rotate/recovery/update");
|
|
7364
5906
|
req.type("application/json");
|
|
7365
5907
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
7366
5908
|
if (args && "nonce" in args) req.send({ nonce: args["nonce"] });
|
|
@@ -7371,22 +5913,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7371
5913
|
*
|
|
7372
5914
|
*/
|
|
7373
5915
|
rotateVerificationReadRotateRecoveryVerify(args) {
|
|
7374
|
-
return this.request.get("/sys/rotate/recovery/verify")
|
|
7375
|
-
name: "openBaoHttp",
|
|
7376
|
-
pathname: "/sys/rotate/recovery/verify",
|
|
7377
|
-
method: "get"
|
|
7378
|
-
});
|
|
5916
|
+
return this.request.get("/sys/rotate/recovery/verify");
|
|
7379
5917
|
}
|
|
7380
5918
|
/**
|
|
7381
5919
|
* Enter a single new key share to progress the rotation verification operation.
|
|
7382
5920
|
*
|
|
7383
5921
|
*/
|
|
7384
5922
|
rotateVerificationUpdateRotateRecoveryVerify(args) {
|
|
7385
|
-
const req = this.request.post("/sys/rotate/recovery/verify")
|
|
7386
|
-
name: "openBaoHttp",
|
|
7387
|
-
pathname: "/sys/rotate/recovery/verify",
|
|
7388
|
-
method: "post"
|
|
7389
|
-
});
|
|
5923
|
+
const req = this.request.post("/sys/rotate/recovery/verify");
|
|
7390
5924
|
req.type("application/json");
|
|
7391
5925
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
7392
5926
|
if (args && "nonce" in args) req.send({ nonce: args["nonce"] });
|
|
@@ -7398,51 +5932,31 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7398
5932
|
* @description This clears any progress made and resets the nonce. Unlike a `DELETE` against `sys/rotate/(root/recovery)/init`, this only resets the current verification operation, not the entire rotate atttempt.
|
|
7399
5933
|
*/
|
|
7400
5934
|
rotateVerificationCancelRotateRecoveryVerify(args) {
|
|
7401
|
-
return this.request.delete("/sys/rotate/recovery/verify")
|
|
7402
|
-
name: "openBaoHttp",
|
|
7403
|
-
pathname: "/sys/rotate/recovery/verify",
|
|
7404
|
-
method: "delete"
|
|
7405
|
-
});
|
|
5935
|
+
return this.request.delete("/sys/rotate/recovery/verify");
|
|
7406
5936
|
}
|
|
7407
5937
|
rootKeyRotate(args) {
|
|
7408
|
-
return this.request.post("/sys/rotate/root")
|
|
7409
|
-
name: "openBaoHttp",
|
|
7410
|
-
pathname: "/sys/rotate/root",
|
|
7411
|
-
method: "post"
|
|
7412
|
-
});
|
|
5938
|
+
return this.request.post("/sys/rotate/root");
|
|
7413
5939
|
}
|
|
7414
5940
|
/**
|
|
7415
5941
|
* Return the backup copy of PGP-encrypted unseal keys.
|
|
7416
5942
|
*
|
|
7417
5943
|
*/
|
|
7418
5944
|
rotateReadBackupKey(args) {
|
|
7419
|
-
return this.request.get("/sys/rotate/root/backup")
|
|
7420
|
-
name: "openBaoHttp",
|
|
7421
|
-
pathname: "/sys/rotate/root/backup",
|
|
7422
|
-
method: "get"
|
|
7423
|
-
});
|
|
5945
|
+
return this.request.get("/sys/rotate/root/backup");
|
|
7424
5946
|
}
|
|
7425
5947
|
/**
|
|
7426
5948
|
* Delete the backup copy of PGP-encrypted unseal keys.
|
|
7427
5949
|
*
|
|
7428
5950
|
*/
|
|
7429
5951
|
rotateDeleteBackupKey(args) {
|
|
7430
|
-
return this.request.delete("/sys/rotate/root/backup")
|
|
7431
|
-
name: "openBaoHttp",
|
|
7432
|
-
pathname: "/sys/rotate/root/backup",
|
|
7433
|
-
method: "delete"
|
|
7434
|
-
});
|
|
5952
|
+
return this.request.delete("/sys/rotate/root/backup");
|
|
7435
5953
|
}
|
|
7436
5954
|
/**
|
|
7437
5955
|
* Reads the configuration and progress of the current root rotate attempt.
|
|
7438
5956
|
*
|
|
7439
5957
|
*/
|
|
7440
5958
|
rotateAttemptReadProgress(args) {
|
|
7441
|
-
return this.request.get("/sys/rotate/root/init")
|
|
7442
|
-
name: "openBaoHttp",
|
|
7443
|
-
pathname: "/sys/rotate/root/init",
|
|
7444
|
-
method: "get"
|
|
7445
|
-
});
|
|
5959
|
+
return this.request.get("/sys/rotate/root/init");
|
|
7446
5960
|
}
|
|
7447
5961
|
/**
|
|
7448
5962
|
* Initializes a new root rotate attempt.
|
|
@@ -7450,11 +5964,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7450
5964
|
* @description Only a single rotate attempt can take place at a time, and changing the parameters of a rotate requires canceling and starting a new rotation, which will also provide a new nonce.
|
|
7451
5965
|
*/
|
|
7452
5966
|
rotateAttemptInitialize(args) {
|
|
7453
|
-
const req = this.request.post("/sys/rotate/root/init")
|
|
7454
|
-
name: "openBaoHttp",
|
|
7455
|
-
pathname: "/sys/rotate/root/init",
|
|
7456
|
-
method: "post"
|
|
7457
|
-
});
|
|
5967
|
+
const req = this.request.post("/sys/rotate/root/init");
|
|
7458
5968
|
req.type("application/json");
|
|
7459
5969
|
if (args && "backup" in args) req.send({ backup: args["backup"] });
|
|
7460
5970
|
if (args && "pgp_keys" in args) req.send({ pgp_keys: args["pgp_keys"] });
|
|
@@ -7469,22 +5979,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7469
5979
|
* @description This clears the rotate settings as well as any progress made. This must be called to change the parameters of the rotate. Note: verification is still a part of a rotate. If rotating is canceled during the verification flow, the current unseal keys remain valid.
|
|
7470
5980
|
*/
|
|
7471
5981
|
rotateAttemptCancel(args) {
|
|
7472
|
-
return this.request.delete("/sys/rotate/root/init")
|
|
7473
|
-
name: "openBaoHttp",
|
|
7474
|
-
pathname: "/sys/rotate/root/init",
|
|
7475
|
-
method: "delete"
|
|
7476
|
-
});
|
|
5982
|
+
return this.request.delete("/sys/rotate/root/init");
|
|
7477
5983
|
}
|
|
7478
5984
|
/**
|
|
7479
5985
|
* Enter a single unseal key share to progress the rotation of the root key of OpenBao.
|
|
7480
5986
|
*
|
|
7481
5987
|
*/
|
|
7482
5988
|
rotateAttemptUpdate(args) {
|
|
7483
|
-
const req = this.request.post("/sys/rotate/root/update")
|
|
7484
|
-
name: "openBaoHttp",
|
|
7485
|
-
pathname: "/sys/rotate/root/update",
|
|
7486
|
-
method: "post"
|
|
7487
|
-
});
|
|
5989
|
+
const req = this.request.post("/sys/rotate/root/update");
|
|
7488
5990
|
req.type("application/json");
|
|
7489
5991
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
7490
5992
|
if (args && "nonce" in args) req.send({ nonce: args["nonce"] });
|
|
@@ -7495,22 +5997,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7495
5997
|
*
|
|
7496
5998
|
*/
|
|
7497
5999
|
rotateVerificationReadProgress(args) {
|
|
7498
|
-
return this.request.get("/sys/rotate/root/verify")
|
|
7499
|
-
name: "openBaoHttp",
|
|
7500
|
-
pathname: "/sys/rotate/root/verify",
|
|
7501
|
-
method: "get"
|
|
7502
|
-
});
|
|
6000
|
+
return this.request.get("/sys/rotate/root/verify");
|
|
7503
6001
|
}
|
|
7504
6002
|
/**
|
|
7505
6003
|
* Enter a single new key share to progress the rotation verification operation.
|
|
7506
6004
|
*
|
|
7507
6005
|
*/
|
|
7508
6006
|
rotateVerificationUpdate(args) {
|
|
7509
|
-
const req = this.request.post("/sys/rotate/root/verify")
|
|
7510
|
-
name: "openBaoHttp",
|
|
7511
|
-
pathname: "/sys/rotate/root/verify",
|
|
7512
|
-
method: "post"
|
|
7513
|
-
});
|
|
6007
|
+
const req = this.request.post("/sys/rotate/root/verify");
|
|
7514
6008
|
req.type("application/json");
|
|
7515
6009
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
7516
6010
|
if (args && "nonce" in args) req.send({ nonce: args["nonce"] });
|
|
@@ -7522,33 +6016,21 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7522
6016
|
* @description This clears any progress made and resets the nonce. Unlike a `DELETE` against `sys/rotate/(root/recovery)/init`, this only resets the current verification operation, not the entire rotate atttempt.
|
|
7523
6017
|
*/
|
|
7524
6018
|
rotateVerificationCancel(args) {
|
|
7525
|
-
return this.request.delete("/sys/rotate/root/verify")
|
|
7526
|
-
name: "openBaoHttp",
|
|
7527
|
-
pathname: "/sys/rotate/root/verify",
|
|
7528
|
-
method: "delete"
|
|
7529
|
-
});
|
|
6019
|
+
return this.request.delete("/sys/rotate/root/verify");
|
|
7530
6020
|
}
|
|
7531
6021
|
/**
|
|
7532
6022
|
* Seal the OpenBao instance.
|
|
7533
6023
|
*
|
|
7534
6024
|
*/
|
|
7535
6025
|
seal(args) {
|
|
7536
|
-
return this.request.post("/sys/seal")
|
|
7537
|
-
name: "openBaoHttp",
|
|
7538
|
-
pathname: "/sys/seal",
|
|
7539
|
-
method: "post"
|
|
7540
|
-
});
|
|
6026
|
+
return this.request.post("/sys/seal");
|
|
7541
6027
|
}
|
|
7542
6028
|
/**
|
|
7543
6029
|
* Check the seal status of an OpenBao instance.
|
|
7544
6030
|
*
|
|
7545
6031
|
*/
|
|
7546
6032
|
sealStatus(args) {
|
|
7547
|
-
return this.request.get("/sys/seal-status")
|
|
7548
|
-
name: "openBaoHttp",
|
|
7549
|
-
pathname: "/sys/seal-status",
|
|
7550
|
-
method: "get"
|
|
7551
|
-
});
|
|
6033
|
+
return this.request.get("/sys/seal-status");
|
|
7552
6034
|
}
|
|
7553
6035
|
/**
|
|
7554
6036
|
* Cause the node to give up active status.
|
|
@@ -7556,18 +6038,10 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7556
6038
|
* @description This endpoint forces the node to give up active status. If the node does not have active status, this endpoint does nothing. Note that the node will sleep for ten seconds before attempting to grab the active lock again, but if no standby nodes grab the active lock in the interim, the same node may become the active node again.
|
|
7557
6039
|
*/
|
|
7558
6040
|
stepDownLeader(args) {
|
|
7559
|
-
return this.request.post("/sys/step-down")
|
|
7560
|
-
name: "openBaoHttp",
|
|
7561
|
-
pathname: "/sys/step-down",
|
|
7562
|
-
method: "post"
|
|
7563
|
-
});
|
|
6041
|
+
return this.request.post("/sys/step-down");
|
|
7564
6042
|
}
|
|
7565
6043
|
generateHash(args) {
|
|
7566
|
-
const req = this.request.post("/sys/tools/hash")
|
|
7567
|
-
name: "openBaoHttp",
|
|
7568
|
-
pathname: "/sys/tools/hash",
|
|
7569
|
-
method: "post"
|
|
7570
|
-
});
|
|
6044
|
+
const req = this.request.post("/sys/tools/hash");
|
|
7571
6045
|
req.type("application/json");
|
|
7572
6046
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
7573
6047
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -7576,11 +6050,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7576
6050
|
return req;
|
|
7577
6051
|
}
|
|
7578
6052
|
generateHashWithAlgorithm(args) {
|
|
7579
|
-
const req = this.request.post("/sys/tools/hash/{urlalgorithm}")
|
|
7580
|
-
name: "openBaoHttp",
|
|
7581
|
-
pathname: "/sys/tools/hash/{urlalgorithm}",
|
|
7582
|
-
method: "post"
|
|
7583
|
-
});
|
|
6053
|
+
const req = this.request.post("/sys/tools/hash/{urlalgorithm}");
|
|
7584
6054
|
req.type("application/json");
|
|
7585
6055
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
7586
6056
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -7588,11 +6058,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7588
6058
|
return req;
|
|
7589
6059
|
}
|
|
7590
6060
|
generateRandom(args) {
|
|
7591
|
-
const req = this.request.post("/sys/tools/random")
|
|
7592
|
-
name: "openBaoHttp",
|
|
7593
|
-
pathname: "/sys/tools/random",
|
|
7594
|
-
method: "post"
|
|
7595
|
-
});
|
|
6061
|
+
const req = this.request.post("/sys/tools/random");
|
|
7596
6062
|
req.type("application/json");
|
|
7597
6063
|
if (args && "bytes" in args) req.send({ bytes: args["bytes"] });
|
|
7598
6064
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -7601,11 +6067,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7601
6067
|
return req;
|
|
7602
6068
|
}
|
|
7603
6069
|
generateRandomWithSource(args) {
|
|
7604
|
-
const req = this.request.post("/sys/tools/random/{source}")
|
|
7605
|
-
name: "openBaoHttp",
|
|
7606
|
-
pathname: "/sys/tools/random/{source}",
|
|
7607
|
-
method: "post"
|
|
7608
|
-
});
|
|
6070
|
+
const req = this.request.post("/sys/tools/random/{source}");
|
|
7609
6071
|
req.type("application/json");
|
|
7610
6072
|
if (args && "bytes" in args) req.send({ bytes: args["bytes"] });
|
|
7611
6073
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -7613,22 +6075,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7613
6075
|
return req;
|
|
7614
6076
|
}
|
|
7615
6077
|
generateRandomWithSourceAndBytes(args) {
|
|
7616
|
-
const req = this.request.post("/sys/tools/random/{source}/{urlbytes}")
|
|
7617
|
-
name: "openBaoHttp",
|
|
7618
|
-
pathname: "/sys/tools/random/{source}/{urlbytes}",
|
|
7619
|
-
method: "post"
|
|
7620
|
-
});
|
|
6078
|
+
const req = this.request.post("/sys/tools/random/{source}/{urlbytes}");
|
|
7621
6079
|
req.type("application/json");
|
|
7622
6080
|
if (args && "bytes" in args) req.send({ bytes: args["bytes"] });
|
|
7623
6081
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
7624
6082
|
return req;
|
|
7625
6083
|
}
|
|
7626
6084
|
generateRandomWithBytes(args) {
|
|
7627
|
-
const req = this.request.post("/sys/tools/random/{urlbytes}")
|
|
7628
|
-
name: "openBaoHttp",
|
|
7629
|
-
pathname: "/sys/tools/random/{urlbytes}",
|
|
7630
|
-
method: "post"
|
|
7631
|
-
});
|
|
6085
|
+
const req = this.request.post("/sys/tools/random/{urlbytes}");
|
|
7632
6086
|
req.type("application/json");
|
|
7633
6087
|
if (args && "bytes" in args) req.send({ bytes: args["bytes"] });
|
|
7634
6088
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -7640,150 +6094,74 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7640
6094
|
*
|
|
7641
6095
|
*/
|
|
7642
6096
|
unseal(args) {
|
|
7643
|
-
const req = this.request.post("/sys/unseal")
|
|
7644
|
-
name: "openBaoHttp",
|
|
7645
|
-
pathname: "/sys/unseal",
|
|
7646
|
-
method: "post"
|
|
7647
|
-
});
|
|
6097
|
+
const req = this.request.post("/sys/unseal");
|
|
7648
6098
|
req.type("application/json");
|
|
7649
6099
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
7650
6100
|
if (args && "reset" in args) req.send({ reset: args["reset"] });
|
|
7651
6101
|
return req;
|
|
7652
6102
|
}
|
|
7653
6103
|
/**
|
|
7654
|
-
* Returns map of historical version change entries
|
|
7655
|
-
*
|
|
7656
|
-
*/
|
|
7657
|
-
versionHistory(args) {
|
|
7658
|
-
const req = this.request.get("/sys/version-history").option("module", {
|
|
7659
|
-
name: "openBaoHttp",
|
|
7660
|
-
pathname: "/sys/version-history",
|
|
7661
|
-
method: "get"
|
|
7662
|
-
});
|
|
7663
|
-
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
7664
|
-
return req;
|
|
7665
|
-
}
|
|
7666
|
-
/**
|
|
7667
|
-
* Look up wrapping properties for the requester's token.
|
|
7668
|
-
*
|
|
7669
|
-
*/
|
|
7670
|
-
readWrappingProperties2(args) {
|
|
7671
|
-
return this.request.get("/sys/wrapping/lookup").option("module", {
|
|
7672
|
-
name: "openBaoHttp",
|
|
7673
|
-
pathname: "/sys/wrapping/lookup",
|
|
7674
|
-
method: "get"
|
|
7675
|
-
});
|
|
7676
|
-
}
|
|
7677
|
-
/**
|
|
7678
6104
|
* Look up wrapping properties for the given token.
|
|
7679
6105
|
*
|
|
7680
6106
|
*/
|
|
7681
6107
|
readWrappingProperties(args) {
|
|
7682
|
-
const req = this.request.post("/sys/wrapping/lookup")
|
|
7683
|
-
name: "openBaoHttp",
|
|
7684
|
-
pathname: "/sys/wrapping/lookup",
|
|
7685
|
-
method: "post"
|
|
7686
|
-
});
|
|
6108
|
+
const req = this.request.post("/sys/wrapping/lookup");
|
|
7687
6109
|
req.type("application/json");
|
|
7688
6110
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
7689
6111
|
return req;
|
|
7690
6112
|
}
|
|
7691
6113
|
rewrap(args) {
|
|
7692
|
-
const req = this.request.post("/sys/wrapping/rewrap")
|
|
7693
|
-
name: "openBaoHttp",
|
|
7694
|
-
pathname: "/sys/wrapping/rewrap",
|
|
7695
|
-
method: "post"
|
|
7696
|
-
});
|
|
6114
|
+
const req = this.request.post("/sys/wrapping/rewrap");
|
|
7697
6115
|
req.type("application/json");
|
|
7698
6116
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
7699
6117
|
return req;
|
|
7700
6118
|
}
|
|
7701
6119
|
unwrap(args) {
|
|
7702
|
-
const req = this.request.post("/sys/wrapping/unwrap")
|
|
7703
|
-
name: "openBaoHttp",
|
|
7704
|
-
pathname: "/sys/wrapping/unwrap",
|
|
7705
|
-
method: "post"
|
|
7706
|
-
});
|
|
6120
|
+
const req = this.request.post("/sys/wrapping/unwrap");
|
|
7707
6121
|
req.type("application/json");
|
|
7708
6122
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
7709
6123
|
return req;
|
|
7710
6124
|
}
|
|
7711
6125
|
wrap(args) {
|
|
7712
|
-
return this.request.post("/sys/wrapping/wrap")
|
|
7713
|
-
name: "openBaoHttp",
|
|
7714
|
-
pathname: "/sys/wrapping/wrap",
|
|
7715
|
-
method: "post"
|
|
7716
|
-
});
|
|
6126
|
+
return this.request.post("/sys/wrapping/wrap");
|
|
7717
6127
|
}
|
|
7718
6128
|
transitBackUpKey(args) {
|
|
7719
|
-
return this.request.get("/transit/backup/{name}")
|
|
7720
|
-
name: "openBaoHttp",
|
|
7721
|
-
pathname: "/transit/backup/{name}",
|
|
7722
|
-
method: "get"
|
|
7723
|
-
});
|
|
6129
|
+
return this.request.get("/transit/backup/{name}");
|
|
7724
6130
|
}
|
|
7725
6131
|
transitByokKey(args) {
|
|
7726
|
-
return this.request.get("/transit/byok-export/{destination}/{source}")
|
|
7727
|
-
name: "openBaoHttp",
|
|
7728
|
-
pathname: "/transit/byok-export/{destination}/{source}",
|
|
7729
|
-
method: "get"
|
|
7730
|
-
});
|
|
6132
|
+
return this.request.get("/transit/byok-export/{destination}/{source}");
|
|
7731
6133
|
}
|
|
7732
6134
|
transitByokKeyVersion(args) {
|
|
7733
|
-
return this.request.get("/transit/byok-export/{destination}/{source}/{version}")
|
|
7734
|
-
name: "openBaoHttp",
|
|
7735
|
-
pathname: "/transit/byok-export/{destination}/{source}/{version}",
|
|
7736
|
-
method: "get"
|
|
7737
|
-
});
|
|
6135
|
+
return this.request.get("/transit/byok-export/{destination}/{source}/{version}");
|
|
7738
6136
|
}
|
|
7739
6137
|
/**
|
|
7740
6138
|
* Returns the size of the active cache
|
|
7741
6139
|
*
|
|
7742
6140
|
*/
|
|
7743
6141
|
transitReadCacheConfiguration(args) {
|
|
7744
|
-
return this.request.get("/transit/cache-config")
|
|
7745
|
-
name: "openBaoHttp",
|
|
7746
|
-
pathname: "/transit/cache-config",
|
|
7747
|
-
method: "get"
|
|
7748
|
-
});
|
|
6142
|
+
return this.request.get("/transit/cache-config");
|
|
7749
6143
|
}
|
|
7750
6144
|
/**
|
|
7751
6145
|
* Configures a new cache of the specified size
|
|
7752
6146
|
*
|
|
7753
6147
|
*/
|
|
7754
6148
|
transitConfigureCache(args) {
|
|
7755
|
-
const req = this.request.post("/transit/cache-config")
|
|
7756
|
-
name: "openBaoHttp",
|
|
7757
|
-
pathname: "/transit/cache-config",
|
|
7758
|
-
method: "post"
|
|
7759
|
-
});
|
|
6149
|
+
const req = this.request.post("/transit/cache-config");
|
|
7760
6150
|
req.type("application/json");
|
|
7761
6151
|
if (args && "size" in args) req.send({ size: args["size"] });
|
|
7762
6152
|
return req;
|
|
7763
6153
|
}
|
|
7764
6154
|
transitReadKeysConfiguration(args) {
|
|
7765
|
-
return this.request.get("/transit/config/keys")
|
|
7766
|
-
name: "openBaoHttp",
|
|
7767
|
-
pathname: "/transit/config/keys",
|
|
7768
|
-
method: "get"
|
|
7769
|
-
});
|
|
6155
|
+
return this.request.get("/transit/config/keys");
|
|
7770
6156
|
}
|
|
7771
6157
|
transitConfigureKeys(args) {
|
|
7772
|
-
const req = this.request.post("/transit/config/keys")
|
|
7773
|
-
name: "openBaoHttp",
|
|
7774
|
-
pathname: "/transit/config/keys",
|
|
7775
|
-
method: "post"
|
|
7776
|
-
});
|
|
6158
|
+
const req = this.request.post("/transit/config/keys");
|
|
7777
6159
|
req.type("application/json");
|
|
7778
6160
|
if (args && "disable_upsert" in args) req.send({ disable_upsert: args["disable_upsert"] });
|
|
7779
6161
|
return req;
|
|
7780
6162
|
}
|
|
7781
6163
|
transitGenerateDataKey(args) {
|
|
7782
|
-
const req = this.request.post("/transit/datakey/{plaintext}/{name}")
|
|
7783
|
-
name: "openBaoHttp",
|
|
7784
|
-
pathname: "/transit/datakey/{plaintext}/{name}",
|
|
7785
|
-
method: "post"
|
|
7786
|
-
});
|
|
6164
|
+
const req = this.request.post("/transit/datakey/{plaintext}/{name}");
|
|
7787
6165
|
req.type("application/json");
|
|
7788
6166
|
if (args && "associated_data" in args) req.send({ associated_data: args["associated_data"] });
|
|
7789
6167
|
if (args && "bits" in args) req.send({ bits: args["bits"] });
|
|
@@ -7792,11 +6170,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7792
6170
|
return req;
|
|
7793
6171
|
}
|
|
7794
6172
|
transitDecrypt(args) {
|
|
7795
|
-
const req = this.request.post("/transit/decrypt/{name}")
|
|
7796
|
-
name: "openBaoHttp",
|
|
7797
|
-
pathname: "/transit/decrypt/{name}",
|
|
7798
|
-
method: "post"
|
|
7799
|
-
});
|
|
6173
|
+
const req = this.request.post("/transit/decrypt/{name}");
|
|
7800
6174
|
req.type("application/json");
|
|
7801
6175
|
if (args && "associated_data" in args) req.send({ associated_data: args["associated_data"] });
|
|
7802
6176
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
@@ -7806,11 +6180,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7806
6180
|
return req;
|
|
7807
6181
|
}
|
|
7808
6182
|
transitDeriveKey(args) {
|
|
7809
|
-
const req = this.request.post("/transit/derive-key/{name}")
|
|
7810
|
-
name: "openBaoHttp",
|
|
7811
|
-
pathname: "/transit/derive-key/{name}",
|
|
7812
|
-
method: "post"
|
|
7813
|
-
});
|
|
6183
|
+
const req = this.request.post("/transit/derive-key/{name}");
|
|
7814
6184
|
req.type("application/json");
|
|
7815
6185
|
if (args && "base_key_name" in args) req.send({ base_key_name: args["base_key_name"] });
|
|
7816
6186
|
if (args && "base_key_version" in args) req.send({ base_key_version: args["base_key_version"] });
|
|
@@ -7820,11 +6190,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7820
6190
|
return req;
|
|
7821
6191
|
}
|
|
7822
6192
|
transitEncrypt(args) {
|
|
7823
|
-
const req = this.request.post("/transit/encrypt/{name}")
|
|
7824
|
-
name: "openBaoHttp",
|
|
7825
|
-
pathname: "/transit/encrypt/{name}",
|
|
7826
|
-
method: "post"
|
|
7827
|
-
});
|
|
6193
|
+
const req = this.request.post("/transit/encrypt/{name}");
|
|
7828
6194
|
req.type("application/json");
|
|
7829
6195
|
if (args && "associated_data" in args) req.send({ associated_data: args["associated_data"] });
|
|
7830
6196
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
@@ -7837,25 +6203,13 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7837
6203
|
return req;
|
|
7838
6204
|
}
|
|
7839
6205
|
transitExportKey(args) {
|
|
7840
|
-
return this.request.get("/transit/export/{type}/{name}")
|
|
7841
|
-
name: "openBaoHttp",
|
|
7842
|
-
pathname: "/transit/export/{type}/{name}",
|
|
7843
|
-
method: "get"
|
|
7844
|
-
});
|
|
6206
|
+
return this.request.get("/transit/export/{type}/{name}");
|
|
7845
6207
|
}
|
|
7846
6208
|
transitExportKeyVersion(args) {
|
|
7847
|
-
return this.request.get("/transit/export/{type}/{name}/{version}")
|
|
7848
|
-
name: "openBaoHttp",
|
|
7849
|
-
pathname: "/transit/export/{type}/{name}/{version}",
|
|
7850
|
-
method: "get"
|
|
7851
|
-
});
|
|
6209
|
+
return this.request.get("/transit/export/{type}/{name}/{version}");
|
|
7852
6210
|
}
|
|
7853
6211
|
transitHash(args) {
|
|
7854
|
-
const req = this.request.post("/transit/hash")
|
|
7855
|
-
name: "openBaoHttp",
|
|
7856
|
-
pathname: "/transit/hash",
|
|
7857
|
-
method: "post"
|
|
7858
|
-
});
|
|
6212
|
+
const req = this.request.post("/transit/hash");
|
|
7859
6213
|
req.type("application/json");
|
|
7860
6214
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
7861
6215
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -7864,11 +6218,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7864
6218
|
return req;
|
|
7865
6219
|
}
|
|
7866
6220
|
transitHashWithAlgorithm(args) {
|
|
7867
|
-
const req = this.request.post("/transit/hash/{urlalgorithm}")
|
|
7868
|
-
name: "openBaoHttp",
|
|
7869
|
-
pathname: "/transit/hash/{urlalgorithm}",
|
|
7870
|
-
method: "post"
|
|
7871
|
-
});
|
|
6221
|
+
const req = this.request.post("/transit/hash/{urlalgorithm}");
|
|
7872
6222
|
req.type("application/json");
|
|
7873
6223
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
7874
6224
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -7876,11 +6226,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7876
6226
|
return req;
|
|
7877
6227
|
}
|
|
7878
6228
|
transitGenerateHmac(args) {
|
|
7879
|
-
const req = this.request.post("/transit/hmac/{name}")
|
|
7880
|
-
name: "openBaoHttp",
|
|
7881
|
-
pathname: "/transit/hmac/{name}",
|
|
7882
|
-
method: "post"
|
|
7883
|
-
});
|
|
6229
|
+
const req = this.request.post("/transit/hmac/{name}");
|
|
7884
6230
|
req.type("application/json");
|
|
7885
6231
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
7886
6232
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
@@ -7890,11 +6236,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7890
6236
|
return req;
|
|
7891
6237
|
}
|
|
7892
6238
|
transitGenerateHmacWithAlgorithm(args) {
|
|
7893
|
-
const req = this.request.post("/transit/hmac/{name}/{urlalgorithm}")
|
|
7894
|
-
name: "openBaoHttp",
|
|
7895
|
-
pathname: "/transit/hmac/{name}/{urlalgorithm}",
|
|
7896
|
-
method: "post"
|
|
7897
|
-
});
|
|
6239
|
+
const req = this.request.post("/transit/hmac/{name}/{urlalgorithm}");
|
|
7898
6240
|
req.type("application/json");
|
|
7899
6241
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
7900
6242
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
@@ -7903,27 +6245,15 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7903
6245
|
return req;
|
|
7904
6246
|
}
|
|
7905
6247
|
transitListKeys(args) {
|
|
7906
|
-
const req = this.request.get("/transit/keys")
|
|
7907
|
-
name: "openBaoHttp",
|
|
7908
|
-
pathname: "/transit/keys",
|
|
7909
|
-
method: "get"
|
|
7910
|
-
});
|
|
6248
|
+
const req = this.request.get("/transit/keys");
|
|
7911
6249
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
7912
6250
|
return req;
|
|
7913
6251
|
}
|
|
7914
6252
|
transitReadKey(args) {
|
|
7915
|
-
return this.request.get("/transit/keys/{name}")
|
|
7916
|
-
name: "openBaoHttp",
|
|
7917
|
-
pathname: "/transit/keys/{name}",
|
|
7918
|
-
method: "get"
|
|
7919
|
-
});
|
|
6253
|
+
return this.request.get("/transit/keys/{name}");
|
|
7920
6254
|
}
|
|
7921
6255
|
transitCreateKey(args) {
|
|
7922
|
-
const req = this.request.post("/transit/keys/{name}")
|
|
7923
|
-
name: "openBaoHttp",
|
|
7924
|
-
pathname: "/transit/keys/{name}",
|
|
7925
|
-
method: "post"
|
|
7926
|
-
});
|
|
6256
|
+
const req = this.request.post("/transit/keys/{name}");
|
|
7927
6257
|
req.type("application/json");
|
|
7928
6258
|
if (args && "allow_plaintext_backup" in args) req.send({ allow_plaintext_backup: args["allow_plaintext_backup"] });
|
|
7929
6259
|
if (args && "auto_rotate_period" in args) req.send({ auto_rotate_period: args["auto_rotate_period"] });
|
|
@@ -7936,18 +6266,10 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7936
6266
|
return req;
|
|
7937
6267
|
}
|
|
7938
6268
|
transitDeleteKey(args) {
|
|
7939
|
-
return this.request.delete("/transit/keys/{name}")
|
|
7940
|
-
name: "openBaoHttp",
|
|
7941
|
-
pathname: "/transit/keys/{name}",
|
|
7942
|
-
method: "delete"
|
|
7943
|
-
});
|
|
6269
|
+
return this.request.delete("/transit/keys/{name}");
|
|
7944
6270
|
}
|
|
7945
6271
|
transitConfigureKey(args) {
|
|
7946
|
-
const req = this.request.post("/transit/keys/{name}/config")
|
|
7947
|
-
name: "openBaoHttp",
|
|
7948
|
-
pathname: "/transit/keys/{name}/config",
|
|
7949
|
-
method: "post"
|
|
7950
|
-
});
|
|
6272
|
+
const req = this.request.post("/transit/keys/{name}/config");
|
|
7951
6273
|
req.type("application/json");
|
|
7952
6274
|
if (args && "allow_plaintext_backup" in args) req.send({ allow_plaintext_backup: args["allow_plaintext_backup"] });
|
|
7953
6275
|
if (args && "auto_rotate_period" in args) req.send({ auto_rotate_period: args["auto_rotate_period"] });
|
|
@@ -7958,22 +6280,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7958
6280
|
return req;
|
|
7959
6281
|
}
|
|
7960
6282
|
getCsr(args) {
|
|
7961
|
-
const req = this.request.post("/transit/keys/{name}/csr")
|
|
7962
|
-
name: "openBaoHttp",
|
|
7963
|
-
pathname: "/transit/keys/{name}/csr",
|
|
7964
|
-
method: "post"
|
|
7965
|
-
});
|
|
6283
|
+
const req = this.request.post("/transit/keys/{name}/csr");
|
|
7966
6284
|
req.type("application/json");
|
|
7967
6285
|
if (args && "csr" in args) req.send({ csr: args["csr"] });
|
|
7968
6286
|
if (args && "version" in args) req.send({ version: args["version"] });
|
|
7969
6287
|
return req;
|
|
7970
6288
|
}
|
|
7971
6289
|
transitImportKey(args) {
|
|
7972
|
-
const req = this.request.post("/transit/keys/{name}/import")
|
|
7973
|
-
name: "openBaoHttp",
|
|
7974
|
-
pathname: "/transit/keys/{name}/import",
|
|
7975
|
-
method: "post"
|
|
7976
|
-
});
|
|
6290
|
+
const req = this.request.post("/transit/keys/{name}/import");
|
|
7977
6291
|
req.type("application/json");
|
|
7978
6292
|
if (args && "allow_plaintext_backup" in args) req.send({ allow_plaintext_backup: args["allow_plaintext_backup"] });
|
|
7979
6293
|
if (args && "allow_rotation" in args) req.send({ allow_rotation: args["allow_rotation"] });
|
|
@@ -7988,11 +6302,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7988
6302
|
return req;
|
|
7989
6303
|
}
|
|
7990
6304
|
transitImportKeyVersion(args) {
|
|
7991
|
-
const req = this.request.post("/transit/keys/{name}/import_version")
|
|
7992
|
-
name: "openBaoHttp",
|
|
7993
|
-
pathname: "/transit/keys/{name}/import_version",
|
|
7994
|
-
method: "post"
|
|
7995
|
-
});
|
|
6305
|
+
const req = this.request.post("/transit/keys/{name}/import_version");
|
|
7996
6306
|
req.type("application/json");
|
|
7997
6307
|
if (args && "ciphertext" in args) req.send({ ciphertext: args["ciphertext"] });
|
|
7998
6308
|
if (args && "hash_function" in args) req.send({ hash_function: args["hash_function"] });
|
|
@@ -8001,53 +6311,29 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8001
6311
|
return req;
|
|
8002
6312
|
}
|
|
8003
6313
|
transitRotateKey(args) {
|
|
8004
|
-
return this.request.post("/transit/keys/{name}/rotate")
|
|
8005
|
-
name: "openBaoHttp",
|
|
8006
|
-
pathname: "/transit/keys/{name}/rotate",
|
|
8007
|
-
method: "post"
|
|
8008
|
-
});
|
|
6314
|
+
return this.request.post("/transit/keys/{name}/rotate");
|
|
8009
6315
|
}
|
|
8010
6316
|
setChain(args) {
|
|
8011
|
-
const req = this.request.post("/transit/keys/{name}/set-certificate")
|
|
8012
|
-
name: "openBaoHttp",
|
|
8013
|
-
pathname: "/transit/keys/{name}/set-certificate",
|
|
8014
|
-
method: "post"
|
|
8015
|
-
});
|
|
6317
|
+
const req = this.request.post("/transit/keys/{name}/set-certificate");
|
|
8016
6318
|
req.type("application/json");
|
|
8017
6319
|
if (args && "certificate_chain" in args) req.send({ certificate_chain: args["certificate_chain"] });
|
|
8018
6320
|
if (args && "version" in args) req.send({ version: args["version"] });
|
|
8019
6321
|
return req;
|
|
8020
6322
|
}
|
|
8021
6323
|
transitSoftDeleteKey(args) {
|
|
8022
|
-
return this.request.delete("/transit/keys/{name}/soft-delete")
|
|
8023
|
-
name: "openBaoHttp",
|
|
8024
|
-
pathname: "/transit/keys/{name}/soft-delete",
|
|
8025
|
-
method: "delete"
|
|
8026
|
-
});
|
|
6324
|
+
return this.request.delete("/transit/keys/{name}/soft-delete");
|
|
8027
6325
|
}
|
|
8028
6326
|
transitSoftDeleteRestoreKey(args) {
|
|
8029
|
-
return this.request.post("/transit/keys/{name}/soft-delete-restore")
|
|
8030
|
-
name: "openBaoHttp",
|
|
8031
|
-
pathname: "/transit/keys/{name}/soft-delete-restore",
|
|
8032
|
-
method: "post"
|
|
8033
|
-
});
|
|
6327
|
+
return this.request.post("/transit/keys/{name}/soft-delete-restore");
|
|
8034
6328
|
}
|
|
8035
6329
|
transitTrimKey(args) {
|
|
8036
|
-
const req = this.request.post("/transit/keys/{name}/trim")
|
|
8037
|
-
name: "openBaoHttp",
|
|
8038
|
-
pathname: "/transit/keys/{name}/trim",
|
|
8039
|
-
method: "post"
|
|
8040
|
-
});
|
|
6330
|
+
const req = this.request.post("/transit/keys/{name}/trim");
|
|
8041
6331
|
req.type("application/json");
|
|
8042
6332
|
if (args && "min_available_version" in args) req.send({ min_available_version: args["min_available_version"] });
|
|
8043
6333
|
return req;
|
|
8044
6334
|
}
|
|
8045
6335
|
transitGenerateRandom(args) {
|
|
8046
|
-
const req = this.request.post("/transit/random")
|
|
8047
|
-
name: "openBaoHttp",
|
|
8048
|
-
pathname: "/transit/random",
|
|
8049
|
-
method: "post"
|
|
8050
|
-
});
|
|
6336
|
+
const req = this.request.post("/transit/random");
|
|
8051
6337
|
req.type("application/json");
|
|
8052
6338
|
if (args && "bytes" in args) req.send({ bytes: args["bytes"] });
|
|
8053
6339
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -8056,11 +6342,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8056
6342
|
return req;
|
|
8057
6343
|
}
|
|
8058
6344
|
transitGenerateRandomWithSource(args) {
|
|
8059
|
-
const req = this.request.post("/transit/random/{source}")
|
|
8060
|
-
name: "openBaoHttp",
|
|
8061
|
-
pathname: "/transit/random/{source}",
|
|
8062
|
-
method: "post"
|
|
8063
|
-
});
|
|
6345
|
+
const req = this.request.post("/transit/random/{source}");
|
|
8064
6346
|
req.type("application/json");
|
|
8065
6347
|
if (args && "bytes" in args) req.send({ bytes: args["bytes"] });
|
|
8066
6348
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -8068,22 +6350,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8068
6350
|
return req;
|
|
8069
6351
|
}
|
|
8070
6352
|
transitGenerateRandomWithSourceAndBytes(args) {
|
|
8071
|
-
const req = this.request.post("/transit/random/{source}/{urlbytes}")
|
|
8072
|
-
name: "openBaoHttp",
|
|
8073
|
-
pathname: "/transit/random/{source}/{urlbytes}",
|
|
8074
|
-
method: "post"
|
|
8075
|
-
});
|
|
6353
|
+
const req = this.request.post("/transit/random/{source}/{urlbytes}");
|
|
8076
6354
|
req.type("application/json");
|
|
8077
6355
|
if (args && "bytes" in args) req.send({ bytes: args["bytes"] });
|
|
8078
6356
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
8079
6357
|
return req;
|
|
8080
6358
|
}
|
|
8081
6359
|
transitGenerateRandomWithBytes(args) {
|
|
8082
|
-
const req = this.request.post("/transit/random/{urlbytes}")
|
|
8083
|
-
name: "openBaoHttp",
|
|
8084
|
-
pathname: "/transit/random/{urlbytes}",
|
|
8085
|
-
method: "post"
|
|
8086
|
-
});
|
|
6360
|
+
const req = this.request.post("/transit/random/{urlbytes}");
|
|
8087
6361
|
req.type("application/json");
|
|
8088
6362
|
if (args && "bytes" in args) req.send({ bytes: args["bytes"] });
|
|
8089
6363
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -8091,11 +6365,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8091
6365
|
return req;
|
|
8092
6366
|
}
|
|
8093
6367
|
transitRestoreKey(args) {
|
|
8094
|
-
const req = this.request.post("/transit/restore")
|
|
8095
|
-
name: "openBaoHttp",
|
|
8096
|
-
pathname: "/transit/restore",
|
|
8097
|
-
method: "post"
|
|
8098
|
-
});
|
|
6368
|
+
const req = this.request.post("/transit/restore");
|
|
8099
6369
|
req.type("application/json");
|
|
8100
6370
|
if (args && "backup" in args) req.send({ backup: args["backup"] });
|
|
8101
6371
|
if (args && "force" in args) req.send({ force: args["force"] });
|
|
@@ -8103,22 +6373,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8103
6373
|
return req;
|
|
8104
6374
|
}
|
|
8105
6375
|
transitRestoreAndRenameKey(args) {
|
|
8106
|
-
const req = this.request.post("/transit/restore/{name}")
|
|
8107
|
-
name: "openBaoHttp",
|
|
8108
|
-
pathname: "/transit/restore/{name}",
|
|
8109
|
-
method: "post"
|
|
8110
|
-
});
|
|
6376
|
+
const req = this.request.post("/transit/restore/{name}");
|
|
8111
6377
|
req.type("application/json");
|
|
8112
6378
|
if (args && "backup" in args) req.send({ backup: args["backup"] });
|
|
8113
6379
|
if (args && "force" in args) req.send({ force: args["force"] });
|
|
8114
6380
|
return req;
|
|
8115
6381
|
}
|
|
8116
6382
|
transitRewrap(args) {
|
|
8117
|
-
const req = this.request.post("/transit/rewrap/{name}")
|
|
8118
|
-
name: "openBaoHttp",
|
|
8119
|
-
pathname: "/transit/rewrap/{name}",
|
|
8120
|
-
method: "post"
|
|
8121
|
-
});
|
|
6383
|
+
const req = this.request.post("/transit/rewrap/{name}");
|
|
8122
6384
|
req.type("application/json");
|
|
8123
6385
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
8124
6386
|
if (args && "ciphertext" in args) req.send({ ciphertext: args["ciphertext"] });
|
|
@@ -8127,11 +6389,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8127
6389
|
return req;
|
|
8128
6390
|
}
|
|
8129
6391
|
transitSign(args) {
|
|
8130
|
-
const req = this.request.post("/transit/sign/{name}")
|
|
8131
|
-
name: "openBaoHttp",
|
|
8132
|
-
pathname: "/transit/sign/{name}",
|
|
8133
|
-
method: "post"
|
|
8134
|
-
});
|
|
6392
|
+
const req = this.request.post("/transit/sign/{name}");
|
|
8135
6393
|
req.type("application/json");
|
|
8136
6394
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
8137
6395
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
@@ -8147,11 +6405,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8147
6405
|
return req;
|
|
8148
6406
|
}
|
|
8149
6407
|
transitSignWithAlgorithm(args) {
|
|
8150
|
-
const req = this.request.post("/transit/sign/{name}/{urlalgorithm}")
|
|
8151
|
-
name: "openBaoHttp",
|
|
8152
|
-
pathname: "/transit/sign/{name}/{urlalgorithm}",
|
|
8153
|
-
method: "post"
|
|
8154
|
-
});
|
|
6408
|
+
const req = this.request.post("/transit/sign/{name}/{urlalgorithm}");
|
|
8155
6409
|
req.type("application/json");
|
|
8156
6410
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
8157
6411
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
@@ -8166,11 +6420,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8166
6420
|
return req;
|
|
8167
6421
|
}
|
|
8168
6422
|
transitVerify(args) {
|
|
8169
|
-
const req = this.request.post("/transit/verify/{name}")
|
|
8170
|
-
name: "openBaoHttp",
|
|
8171
|
-
pathname: "/transit/verify/{name}",
|
|
8172
|
-
method: "post"
|
|
8173
|
-
});
|
|
6423
|
+
const req = this.request.post("/transit/verify/{name}");
|
|
8174
6424
|
req.type("application/json");
|
|
8175
6425
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
8176
6426
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
@@ -8187,11 +6437,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8187
6437
|
return req;
|
|
8188
6438
|
}
|
|
8189
6439
|
transitVerifyWithAlgorithm(args) {
|
|
8190
|
-
const req = this.request.post("/transit/verify/{name}/{urlalgorithm}")
|
|
8191
|
-
name: "openBaoHttp",
|
|
8192
|
-
pathname: "/transit/verify/{name}/{urlalgorithm}",
|
|
8193
|
-
method: "post"
|
|
8194
|
-
});
|
|
6440
|
+
const req = this.request.post("/transit/verify/{name}/{urlalgorithm}");
|
|
8195
6441
|
req.type("application/json");
|
|
8196
6442
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
8197
6443
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
@@ -8207,14 +6453,42 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8207
6453
|
return req;
|
|
8208
6454
|
}
|
|
8209
6455
|
transitReadWrappingKey(args) {
|
|
8210
|
-
return this.request.get("/transit/wrapping_key")
|
|
8211
|
-
name: "openBaoHttp",
|
|
8212
|
-
pathname: "/transit/wrapping_key",
|
|
8213
|
-
method: "get"
|
|
8214
|
-
});
|
|
6456
|
+
return this.request.get("/transit/wrapping_key");
|
|
8215
6457
|
}
|
|
8216
6458
|
};
|
|
8217
|
-
OpenBaoHttpClient = _OpenBaoHttpClient = __decorate([Injectable(), __decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
6459
|
+
OpenBaoHttpClient = _OpenBaoHttpClient = __decorate([Injectable(), __decorateMetadata("design:paramtypes", [typeof (_ref$11 = typeof KeqRequest !== "undefined" && KeqRequest) === "function" ? _ref$11 : Object])], OpenBaoHttpClient);
|
|
6460
|
+
//#endregion
|
|
6461
|
+
//#region src/apis/open-bao-http/open-bao-http.module.ts
|
|
6462
|
+
const KEQ_REQUEST_TOKEN = Symbol("OpenBaoHttpKeqRequest");
|
|
6463
|
+
const { ConfigurableModuleClass: ConfigurableModuleClass$3, MODULE_OPTIONS_TOKEN: MODULE_OPTIONS_TOKEN$3 } = new ConfigurableModuleBuilder().setExtras({ isGlobal: false }, (definition, extras) => ({
|
|
6464
|
+
...definition,
|
|
6465
|
+
global: extras.isGlobal
|
|
6466
|
+
})).build();
|
|
6467
|
+
const REQUEST_PROVIDER = {
|
|
6468
|
+
provide: KEQ_REQUEST_TOKEN,
|
|
6469
|
+
useFactory: (options, globalRequest) => {
|
|
6470
|
+
if (!options.isolate && !globalRequest) console.warn("OpenBaoHttpModule: No global KeqRequest found, creating an isolated instance. Import KeqModule globally or set { isolate: true } to suppress this warning.");
|
|
6471
|
+
const request = !options.isolate && globalRequest ? globalRequest.fork() : new KeqRequest();
|
|
6472
|
+
if (options.middlewares) for (const middleware of options.middlewares) request.use(middleware);
|
|
6473
|
+
return request;
|
|
6474
|
+
},
|
|
6475
|
+
inject: [MODULE_OPTIONS_TOKEN$3, {
|
|
6476
|
+
token: KeqRequest,
|
|
6477
|
+
optional: true
|
|
6478
|
+
}]
|
|
6479
|
+
};
|
|
6480
|
+
const CLIENT_PROVIDER = {
|
|
6481
|
+
provide: OpenBaoHttpClient,
|
|
6482
|
+
useFactory: (request) => new OpenBaoHttpClient(request),
|
|
6483
|
+
inject: [KEQ_REQUEST_TOKEN]
|
|
6484
|
+
};
|
|
6485
|
+
let OpenBaoHttpModule = class OpenBaoHttpModule extends ConfigurableModuleClass$3 {
|
|
6486
|
+
static KEQ_REQUEST = KEQ_REQUEST_TOKEN;
|
|
6487
|
+
};
|
|
6488
|
+
OpenBaoHttpModule = __decorate([Module({
|
|
6489
|
+
providers: [REQUEST_PROVIDER, CLIENT_PROVIDER],
|
|
6490
|
+
exports: [OpenBaoHttpClient]
|
|
6491
|
+
})], OpenBaoHttpModule);
|
|
8218
6492
|
//#endregion
|
|
8219
6493
|
//#region src/modules/open-bao/set-open-bao-token.middleware.ts
|
|
8220
6494
|
/**
|
|
@@ -8315,42 +6589,27 @@ function formatError() {
|
|
|
8315
6589
|
}
|
|
8316
6590
|
//#endregion
|
|
8317
6591
|
//#region src/modules/open-bao/open-bao.module.ts
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
const request = new KeqRequest();
|
|
8329
|
-
request.use(formatError());
|
|
8330
|
-
request.use(setBaseUrl(options.address + "/v1/"));
|
|
8331
|
-
request.use(setOpenBaoToken(() => tokenManager.getToken()));
|
|
8332
|
-
request.use(validateStatusCode());
|
|
8333
|
-
return request;
|
|
8334
|
-
},
|
|
8335
|
-
inject: [MODULE_OPTIONS_TOKEN$3, OpenBaoTokenManager]
|
|
8336
|
-
};
|
|
8337
|
-
/**
|
|
8338
|
-
* OpenBaoHttpClient Provider:注入已配置的 KeqRequest
|
|
8339
|
-
*/
|
|
8340
|
-
const HTTP_CLIENT_PROVIDER = {
|
|
8341
|
-
provide: OpenBaoHttpClient,
|
|
8342
|
-
useFactory: (request) => new OpenBaoHttpClient(request),
|
|
8343
|
-
inject: [OPEN_BAO_KEQ_REQUEST]
|
|
6592
|
+
var _ref$10;
|
|
6593
|
+
let OpenBaoModule = class OpenBaoModule extends ConfigurableModuleClass$4 {
|
|
6594
|
+
constructor(options, tokenManager) {
|
|
6595
|
+
super();
|
|
6596
|
+
this.options = options;
|
|
6597
|
+
this.tokenManager = tokenManager;
|
|
6598
|
+
}
|
|
6599
|
+
configureKeqMiddleware(consumer) {
|
|
6600
|
+
consumer.apply(formatError(), setBaseUrl(this.options.address + "/v1/"), setOpenBaoToken(() => this.tokenManager.getToken()), validateStatusCode()).forRoutes(OpenBaoHttpModule);
|
|
6601
|
+
}
|
|
8344
6602
|
};
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
6603
|
+
OpenBaoModule = __decorate([
|
|
6604
|
+
Global(),
|
|
6605
|
+
Module({
|
|
6606
|
+
imports: [KeqModule, OpenBaoHttpModule.register({ isGlobal: true })],
|
|
6607
|
+
providers: [OpenBaoTokenManager],
|
|
6608
|
+
exports: [OpenBaoTokenManager, OpenBaoHttpModule]
|
|
6609
|
+
}),
|
|
6610
|
+
__decorateParam(0, Inject(MODULE_OPTIONS_TOKEN$4)),
|
|
6611
|
+
__decorateMetadata("design:paramtypes", [Object, typeof (_ref$10 = typeof OpenBaoTokenManager !== "undefined" && OpenBaoTokenManager) === "function" ? _ref$10 : Object])
|
|
6612
|
+
], OpenBaoModule);
|
|
8354
6613
|
//#endregion
|
|
8355
6614
|
//#region src/modules/open-bao/open-bao.config.ts
|
|
8356
6615
|
var OpenBaoTokenAuthConfig = class {
|