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