@buka/nestjs-kit 4.4.2 → 4.4.3
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 +8 -0
- package/dist/index.d.mts +519 -1449
- package/dist/index.d.ts +519 -1449
- package/dist/index.js +473 -2220
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +473 -2220
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -2717,7 +2717,7 @@ const Column = {
|
|
|
2717
2717
|
};
|
|
2718
2718
|
//#endregion
|
|
2719
2719
|
//#region src/modules/mikro-orm/models/timestamped-entity.ts
|
|
2720
|
-
var _ref$
|
|
2720
|
+
var _ref$14, _ref2$3;
|
|
2721
2721
|
var TimestampedEntity = class {
|
|
2722
2722
|
[_mikro_orm_core.OptionalProps];
|
|
2723
2723
|
createdAt = /* @__PURE__ */ new Date();
|
|
@@ -2727,7 +2727,7 @@ __decorate([Column.Timestamptz({
|
|
|
2727
2727
|
onCreate: () => /* @__PURE__ */ new Date(),
|
|
2728
2728
|
defaultRaw: "CURRENT_TIMESTAMP",
|
|
2729
2729
|
comment: "创建时间"
|
|
2730
|
-
}), __decorateMetadata("design:type", typeof (_ref$
|
|
2730
|
+
}), __decorateMetadata("design:type", typeof (_ref$14 = typeof Date !== "undefined" && Date) === "function" ? _ref$14 : Object)], TimestampedEntity.prototype, "createdAt", void 0);
|
|
2731
2731
|
__decorate([Column.Timestamptz({
|
|
2732
2732
|
onUpdate: () => /* @__PURE__ */ new Date(),
|
|
2733
2733
|
defaultRaw: "CURRENT_TIMESTAMP",
|
|
@@ -3188,7 +3188,7 @@ __decorate([
|
|
|
3188
3188
|
], DatabaseConfig.prototype, "poolIdleTimeoutMillis", void 0);
|
|
3189
3189
|
//#endregion
|
|
3190
3190
|
//#region src/modules/core/pipes/validation.pipe.ts
|
|
3191
|
-
var _ref$
|
|
3191
|
+
var _ref$13, _ref2$2, _ref3$1, _BukaValidationPipe;
|
|
3192
3192
|
function deepMap(obj, fn) {
|
|
3193
3193
|
if (Array.isArray(obj)) return obj.map((item) => deepMap(item, fn));
|
|
3194
3194
|
else return fn(obj);
|
|
@@ -3240,6 +3240,7 @@ let BukaValidationPipe = _BukaValidationPipe = class BukaValidationPipe extends
|
|
|
3240
3240
|
}
|
|
3241
3241
|
async transform(value, metadata) {
|
|
3242
3242
|
value = await super.transform(value, metadata);
|
|
3243
|
+
if (metadata.type === "custom") return value;
|
|
3243
3244
|
if (this.validationOptions && !this.validationOptions.transform) return value;
|
|
3244
3245
|
if (!metadata.metatype || typeof metadata.metatype !== "function") return value;
|
|
3245
3246
|
const metatype = metadata.metatype;
|
|
@@ -3247,7 +3248,7 @@ let BukaValidationPipe = _BukaValidationPipe = class BukaValidationPipe extends
|
|
|
3247
3248
|
}
|
|
3248
3249
|
};
|
|
3249
3250
|
BukaValidationPipe = _BukaValidationPipe = __decorate([(0, _nestjs_common.Injectable)(), __decorateMetadata("design:paramtypes", [
|
|
3250
|
-
typeof (_ref$
|
|
3251
|
+
typeof (_ref$13 = typeof _mikro_orm_core.MikroORM !== "undefined" && _mikro_orm_core.MikroORM) === "function" ? _ref$13 : Object,
|
|
3251
3252
|
typeof (_ref2$2 = typeof _mikro_orm_core.EntityManager !== "undefined" && _mikro_orm_core.EntityManager) === "function" ? _ref2$2 : Object,
|
|
3252
3253
|
typeof (_ref3$1 = typeof _nestjs_common.ValidationPipeOptions !== "undefined" && _nestjs_common.ValidationPipeOptions) === "function" ? _ref3$1 : Object
|
|
3253
3254
|
])], BukaValidationPipe);
|
|
@@ -3298,7 +3299,7 @@ OffsetPagination = __decorate([Model({ schema: {
|
|
|
3298
3299
|
} }), __decorateMetadata("design:paramtypes", [Number, Object])], OffsetPagination);
|
|
3299
3300
|
//#endregion
|
|
3300
3301
|
//#region src/modules/core/models/cursor-pagination.ts
|
|
3301
|
-
var _ref$
|
|
3302
|
+
var _ref$12;
|
|
3302
3303
|
let CursorPagination = class CursorPagination {
|
|
3303
3304
|
total;
|
|
3304
3305
|
limit;
|
|
@@ -3344,7 +3345,7 @@ __decorate([Property({ schema: {
|
|
|
3344
3345
|
CursorPagination = __decorate([Model({ schema: {
|
|
3345
3346
|
description: "基于游标的分页响应,通过 startCursor/endCursor 定位数据位置,适用于无限滚动等场景",
|
|
3346
3347
|
additionalProperties: false
|
|
3347
|
-
} }), __decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
3348
|
+
} }), __decorateMetadata("design:paramtypes", [typeof (_ref$12 = typeof _mikro_orm_core.Cursor !== "undefined" && _mikro_orm_core.Cursor) === "function" ? _ref$12 : Object])], CursorPagination);
|
|
3348
3349
|
//#endregion
|
|
3349
3350
|
//#region src/modules/core/models/slice.ts
|
|
3350
3351
|
var Slice = class Slice {
|
|
@@ -3643,7 +3644,7 @@ function ResponseBodyType(classRef) {
|
|
|
3643
3644
|
}
|
|
3644
3645
|
//#endregion
|
|
3645
3646
|
//#region src/modules/open-bao/open-bao.module-definition.ts
|
|
3646
|
-
const { ConfigurableModuleClass: ConfigurableModuleClass$
|
|
3647
|
+
const { ConfigurableModuleClass: ConfigurableModuleClass$4, MODULE_OPTIONS_TOKEN: MODULE_OPTIONS_TOKEN$4 } = new _nestjs_common.ConfigurableModuleBuilder().build();
|
|
3647
3648
|
//#endregion
|
|
3648
3649
|
//#region \0@oxc-project+runtime@0.127.0/helpers/decorateParam.js
|
|
3649
3650
|
function __decorateParam(paramIndex, decorator) {
|
|
@@ -3797,32 +3798,83 @@ let OpenBaoTokenManager = _OpenBaoTokenManager = class OpenBaoTokenManager {
|
|
|
3797
3798
|
};
|
|
3798
3799
|
OpenBaoTokenManager = _OpenBaoTokenManager = __decorate([
|
|
3799
3800
|
(0, _nestjs_common.Injectable)(),
|
|
3800
|
-
__decorateParam(0, (0, _nestjs_common.Inject)(MODULE_OPTIONS_TOKEN$
|
|
3801
|
+
__decorateParam(0, (0, _nestjs_common.Inject)(MODULE_OPTIONS_TOKEN$4)),
|
|
3801
3802
|
__decorateMetadata("design:paramtypes", [Object])
|
|
3802
3803
|
], OpenBaoTokenManager);
|
|
3803
3804
|
//#endregion
|
|
3804
3805
|
//#region src/apis/open-bao-http/open-bao-http.client.ts
|
|
3805
|
-
var _ref$
|
|
3806
|
+
var _ref$11, _OpenBaoHttpClient;
|
|
3806
3807
|
let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
3807
3808
|
logger = new _nestjs_common.Logger(_OpenBaoHttpClient.name);
|
|
3808
3809
|
constructor(request) {
|
|
3809
3810
|
this.request = request;
|
|
3810
3811
|
}
|
|
3812
|
+
kubernetesReadAuthConfiguration(args) {
|
|
3813
|
+
return this.request.get("/auth/kubernetes001/config");
|
|
3814
|
+
}
|
|
3815
|
+
kubernetesConfigureAuth(args) {
|
|
3816
|
+
const req = this.request.post("/auth/kubernetes001/config");
|
|
3817
|
+
req.type("application/json");
|
|
3818
|
+
if (args && "disable_iss_validation" in args) req.send({ disable_iss_validation: args["disable_iss_validation"] });
|
|
3819
|
+
if (args && "disable_local_ca_jwt" in args) req.send({ disable_local_ca_jwt: args["disable_local_ca_jwt"] });
|
|
3820
|
+
if (args && "issuer" in args) req.send({ issuer: args["issuer"] });
|
|
3821
|
+
if (args && "kubernetes_ca_cert" in args) req.send({ kubernetes_ca_cert: args["kubernetes_ca_cert"] });
|
|
3822
|
+
if (args && "kubernetes_host" in args) req.send({ kubernetes_host: args["kubernetes_host"] });
|
|
3823
|
+
if (args && "pem_keys" in args) req.send({ pem_keys: args["pem_keys"] });
|
|
3824
|
+
if (args && "token_reviewer_jwt" in args) req.send({ token_reviewer_jwt: args["token_reviewer_jwt"] });
|
|
3825
|
+
return req;
|
|
3826
|
+
}
|
|
3827
|
+
kubernetesLogin(args) {
|
|
3828
|
+
const req = this.request.post("/auth/kubernetes001/login");
|
|
3829
|
+
req.type("application/json");
|
|
3830
|
+
if (args && "jwt" in args) req.send({ jwt: args["jwt"] });
|
|
3831
|
+
if (args && "role" in args) req.send({ role: args["role"] });
|
|
3832
|
+
return req;
|
|
3833
|
+
}
|
|
3834
|
+
kubernetesListAuthRoles(args) {
|
|
3835
|
+
const req = this.request.get("/auth/kubernetes001/role");
|
|
3836
|
+
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
3837
|
+
return req;
|
|
3838
|
+
}
|
|
3839
|
+
kubernetesReadAuthRole(args) {
|
|
3840
|
+
return this.request.get("/auth/kubernetes001/role/{name}");
|
|
3841
|
+
}
|
|
3842
|
+
kubernetesWriteAuthRole(args) {
|
|
3843
|
+
const req = this.request.post("/auth/kubernetes001/role/{name}");
|
|
3844
|
+
req.type("application/json");
|
|
3845
|
+
if (args && "alias_name_source" in args) req.send({ alias_name_source: args["alias_name_source"] });
|
|
3846
|
+
if (args && "audience" in args) req.send({ audience: args["audience"] });
|
|
3847
|
+
if (args && "bound_cidrs" in args) req.send({ bound_cidrs: args["bound_cidrs"] });
|
|
3848
|
+
if (args && "bound_service_account_names" in args) req.send({ bound_service_account_names: args["bound_service_account_names"] });
|
|
3849
|
+
if (args && "bound_service_account_namespace_selector" in args) req.send({ bound_service_account_namespace_selector: args["bound_service_account_namespace_selector"] });
|
|
3850
|
+
if (args && "bound_service_account_namespaces" in args) req.send({ bound_service_account_namespaces: args["bound_service_account_namespaces"] });
|
|
3851
|
+
if (args && "max_ttl" in args) req.send({ max_ttl: args["max_ttl"] });
|
|
3852
|
+
if (args && "num_uses" in args) req.send({ num_uses: args["num_uses"] });
|
|
3853
|
+
if (args && "period" in args) req.send({ period: args["period"] });
|
|
3854
|
+
if (args && "policies" in args) req.send({ policies: args["policies"] });
|
|
3855
|
+
if (args && "token_bound_cidrs" in args) req.send({ token_bound_cidrs: args["token_bound_cidrs"] });
|
|
3856
|
+
if (args && "token_explicit_max_ttl" in args) req.send({ token_explicit_max_ttl: args["token_explicit_max_ttl"] });
|
|
3857
|
+
if (args && "token_max_ttl" in args) req.send({ token_max_ttl: args["token_max_ttl"] });
|
|
3858
|
+
if (args && "token_no_default_policy" in args) req.send({ token_no_default_policy: args["token_no_default_policy"] });
|
|
3859
|
+
if (args && "token_num_uses" in args) req.send({ token_num_uses: args["token_num_uses"] });
|
|
3860
|
+
if (args && "token_period" in args) req.send({ token_period: args["token_period"] });
|
|
3861
|
+
if (args && "token_policies" in args) req.send({ token_policies: args["token_policies"] });
|
|
3862
|
+
if (args && "token_strictly_bind_ip" in args) req.send({ token_strictly_bind_ip: args["token_strictly_bind_ip"] });
|
|
3863
|
+
if (args && "token_ttl" in args) req.send({ token_ttl: args["token_ttl"] });
|
|
3864
|
+
if (args && "token_type" in args) req.send({ token_type: args["token_type"] });
|
|
3865
|
+
if (args && "ttl" in args) req.send({ ttl: args["ttl"] });
|
|
3866
|
+
return req;
|
|
3867
|
+
}
|
|
3868
|
+
kubernetesDeleteAuthRole(args) {
|
|
3869
|
+
return this.request.delete("/auth/kubernetes001/role/{name}");
|
|
3870
|
+
}
|
|
3811
3871
|
tokenListAccessors(args) {
|
|
3812
|
-
const req = this.request.get("/auth/token/accessors")
|
|
3813
|
-
name: "openBaoHttp",
|
|
3814
|
-
pathname: "/auth/token/accessors",
|
|
3815
|
-
method: "get"
|
|
3816
|
-
});
|
|
3872
|
+
const req = this.request.get("/auth/token/accessors");
|
|
3817
3873
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
3818
3874
|
return req;
|
|
3819
3875
|
}
|
|
3820
3876
|
tokenCreate(args) {
|
|
3821
|
-
const req = this.request.post("/auth/token/create")
|
|
3822
|
-
name: "openBaoHttp",
|
|
3823
|
-
pathname: "/auth/token/create",
|
|
3824
|
-
method: "post"
|
|
3825
|
-
});
|
|
3877
|
+
const req = this.request.post("/auth/token/create");
|
|
3826
3878
|
req.type("application/json");
|
|
3827
3879
|
if (args && "display_name" in args) req.send({ display_name: args["display_name"] });
|
|
3828
3880
|
if (args && "entity_alias" in args) req.send({ entity_alias: args["entity_alias"] });
|
|
@@ -3841,11 +3893,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
3841
3893
|
return req;
|
|
3842
3894
|
}
|
|
3843
3895
|
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
|
-
});
|
|
3896
|
+
const req = this.request.post("/auth/token/create-orphan");
|
|
3849
3897
|
req.type("application/json");
|
|
3850
3898
|
if (args && "display_name" in args) req.send({ display_name: args["display_name"] });
|
|
3851
3899
|
if (args && "entity_alias" in args) req.send({ entity_alias: args["entity_alias"] });
|
|
@@ -3864,11 +3912,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
3864
3912
|
return req;
|
|
3865
3913
|
}
|
|
3866
3914
|
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
|
-
});
|
|
3915
|
+
const req = this.request.post("/auth/token/create/{role_name}");
|
|
3872
3916
|
req.type("application/json");
|
|
3873
3917
|
if (args && "display_name" in args) req.send({ display_name: args["display_name"] });
|
|
3874
3918
|
if (args && "entity_alias" in args) req.send({ entity_alias: args["entity_alias"] });
|
|
@@ -3887,141 +3931,81 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
3887
3931
|
return req;
|
|
3888
3932
|
}
|
|
3889
3933
|
tokenLookUpGet(args) {
|
|
3890
|
-
return this.request.get("/auth/token/lookup")
|
|
3891
|
-
name: "openBaoHttp",
|
|
3892
|
-
pathname: "/auth/token/lookup",
|
|
3893
|
-
method: "get"
|
|
3894
|
-
});
|
|
3934
|
+
return this.request.get("/auth/token/lookup");
|
|
3895
3935
|
}
|
|
3896
3936
|
tokenLookUpUpdate(args) {
|
|
3897
|
-
const req = this.request.post("/auth/token/lookup")
|
|
3898
|
-
name: "openBaoHttp",
|
|
3899
|
-
pathname: "/auth/token/lookup",
|
|
3900
|
-
method: "post"
|
|
3901
|
-
});
|
|
3937
|
+
const req = this.request.post("/auth/token/lookup");
|
|
3902
3938
|
req.type("application/json");
|
|
3903
3939
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
3904
3940
|
return req;
|
|
3905
3941
|
}
|
|
3906
3942
|
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
|
-
});
|
|
3943
|
+
const req = this.request.post("/auth/token/lookup-accessor");
|
|
3912
3944
|
req.type("application/json");
|
|
3913
3945
|
if (args && "accessor" in args) req.send({ accessor: args["accessor"] });
|
|
3914
3946
|
return req;
|
|
3915
3947
|
}
|
|
3916
3948
|
tokenLookUpSelfGet(args) {
|
|
3917
|
-
return this.request.get("/auth/token/lookup-self")
|
|
3918
|
-
name: "openBaoHttp",
|
|
3919
|
-
pathname: "/auth/token/lookup-self",
|
|
3920
|
-
method: "get"
|
|
3921
|
-
});
|
|
3949
|
+
return this.request.get("/auth/token/lookup-self");
|
|
3922
3950
|
}
|
|
3923
3951
|
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
|
-
});
|
|
3952
|
+
const req = this.request.post("/auth/token/lookup-self");
|
|
3929
3953
|
req.type("application/json");
|
|
3930
3954
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
3931
3955
|
return req;
|
|
3932
3956
|
}
|
|
3933
3957
|
tokenRenew(args) {
|
|
3934
|
-
const req = this.request.post("/auth/token/renew")
|
|
3935
|
-
name: "openBaoHttp",
|
|
3936
|
-
pathname: "/auth/token/renew",
|
|
3937
|
-
method: "post"
|
|
3938
|
-
});
|
|
3958
|
+
const req = this.request.post("/auth/token/renew");
|
|
3939
3959
|
req.type("application/json");
|
|
3940
3960
|
if (args && "increment" in args) req.send({ increment: args["increment"] });
|
|
3941
3961
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
3942
3962
|
return req;
|
|
3943
3963
|
}
|
|
3944
3964
|
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
|
-
});
|
|
3965
|
+
const req = this.request.post("/auth/token/renew-accessor");
|
|
3950
3966
|
req.type("application/json");
|
|
3951
3967
|
if (args && "accessor" in args) req.send({ accessor: args["accessor"] });
|
|
3952
3968
|
if (args && "increment" in args) req.send({ increment: args["increment"] });
|
|
3953
3969
|
return req;
|
|
3954
3970
|
}
|
|
3955
3971
|
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
|
-
});
|
|
3972
|
+
const req = this.request.post("/auth/token/renew-self");
|
|
3961
3973
|
req.type("application/json");
|
|
3962
3974
|
if (args && "increment" in args) req.send({ increment: args["increment"] });
|
|
3963
3975
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
3964
3976
|
return req;
|
|
3965
3977
|
}
|
|
3966
3978
|
tokenRevoke(args) {
|
|
3967
|
-
const req = this.request.post("/auth/token/revoke")
|
|
3968
|
-
name: "openBaoHttp",
|
|
3969
|
-
pathname: "/auth/token/revoke",
|
|
3970
|
-
method: "post"
|
|
3971
|
-
});
|
|
3979
|
+
const req = this.request.post("/auth/token/revoke");
|
|
3972
3980
|
req.type("application/json");
|
|
3973
3981
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
3974
3982
|
return req;
|
|
3975
3983
|
}
|
|
3976
3984
|
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
|
-
});
|
|
3985
|
+
const req = this.request.post("/auth/token/revoke-accessor");
|
|
3982
3986
|
req.type("application/json");
|
|
3983
3987
|
if (args && "accessor" in args) req.send({ accessor: args["accessor"] });
|
|
3984
3988
|
return req;
|
|
3985
3989
|
}
|
|
3986
3990
|
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
|
-
});
|
|
3991
|
+
const req = this.request.post("/auth/token/revoke-orphan");
|
|
3992
3992
|
req.type("application/json");
|
|
3993
3993
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
3994
3994
|
return req;
|
|
3995
3995
|
}
|
|
3996
3996
|
tokenRevokeSelf(args) {
|
|
3997
|
-
return this.request.post("/auth/token/revoke-self")
|
|
3998
|
-
name: "openBaoHttp",
|
|
3999
|
-
pathname: "/auth/token/revoke-self",
|
|
4000
|
-
method: "post"
|
|
4001
|
-
});
|
|
3997
|
+
return this.request.post("/auth/token/revoke-self");
|
|
4002
3998
|
}
|
|
4003
3999
|
tokenListRoles(args) {
|
|
4004
|
-
const req = this.request.get("/auth/token/roles")
|
|
4005
|
-
name: "openBaoHttp",
|
|
4006
|
-
pathname: "/auth/token/roles",
|
|
4007
|
-
method: "get"
|
|
4008
|
-
});
|
|
4000
|
+
const req = this.request.get("/auth/token/roles");
|
|
4009
4001
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4010
4002
|
return req;
|
|
4011
4003
|
}
|
|
4012
4004
|
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
|
-
});
|
|
4005
|
+
return this.request.get("/auth/token/roles/{role_name}");
|
|
4018
4006
|
}
|
|
4019
4007
|
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
|
-
});
|
|
4008
|
+
const req = this.request.post("/auth/token/roles/{role_name}");
|
|
4025
4009
|
req.type("application/json");
|
|
4026
4010
|
if (args && "allowed_entity_aliases" in args) req.send({ allowed_entity_aliases: args["allowed_entity_aliases"] });
|
|
4027
4011
|
if (args && "allowed_policies" in args) req.send({ allowed_policies: args["allowed_policies"] });
|
|
@@ -4043,51 +4027,27 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4043
4027
|
return req;
|
|
4044
4028
|
}
|
|
4045
4029
|
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
|
-
});
|
|
4030
|
+
return this.request.delete("/auth/token/roles/{role_name}");
|
|
4051
4031
|
}
|
|
4052
4032
|
tokenTidy(args) {
|
|
4053
|
-
return this.request.post("/auth/token/tidy")
|
|
4054
|
-
name: "openBaoHttp",
|
|
4055
|
-
pathname: "/auth/token/tidy",
|
|
4056
|
-
method: "post"
|
|
4057
|
-
});
|
|
4033
|
+
return this.request.post("/auth/token/tidy");
|
|
4058
4034
|
}
|
|
4059
4035
|
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
|
-
});
|
|
4036
|
+
const req = this.request.post("/auth/userpass/login/{username}");
|
|
4065
4037
|
req.type("application/json");
|
|
4066
4038
|
if (args && "password" in args) req.send({ password: args["password"] });
|
|
4067
4039
|
return req;
|
|
4068
4040
|
}
|
|
4069
4041
|
userpassListUsers(args) {
|
|
4070
|
-
const req = this.request.get("/auth/userpass/users")
|
|
4071
|
-
name: "openBaoHttp",
|
|
4072
|
-
pathname: "/auth/userpass/users",
|
|
4073
|
-
method: "get"
|
|
4074
|
-
});
|
|
4042
|
+
const req = this.request.get("/auth/userpass/users");
|
|
4075
4043
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4076
4044
|
return req;
|
|
4077
4045
|
}
|
|
4078
4046
|
userpassReadUser(args) {
|
|
4079
|
-
return this.request.get("/auth/userpass/users/{username}")
|
|
4080
|
-
name: "openBaoHttp",
|
|
4081
|
-
pathname: "/auth/userpass/users/{username}",
|
|
4082
|
-
method: "get"
|
|
4083
|
-
});
|
|
4047
|
+
return this.request.get("/auth/userpass/users/{username}");
|
|
4084
4048
|
}
|
|
4085
4049
|
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
|
-
});
|
|
4050
|
+
const req = this.request.post("/auth/userpass/users/{username}");
|
|
4091
4051
|
req.type("application/json");
|
|
4092
4052
|
if (args && "bound_cidrs" in args) req.send({ bound_cidrs: args["bound_cidrs"] });
|
|
4093
4053
|
if (args && "max_ttl" in args) req.send({ max_ttl: args["max_ttl"] });
|
|
@@ -4107,28 +4067,16 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4107
4067
|
return req;
|
|
4108
4068
|
}
|
|
4109
4069
|
userpassDeleteUser(args) {
|
|
4110
|
-
return this.request.delete("/auth/userpass/users/{username}")
|
|
4111
|
-
name: "openBaoHttp",
|
|
4112
|
-
pathname: "/auth/userpass/users/{username}",
|
|
4113
|
-
method: "delete"
|
|
4114
|
-
});
|
|
4070
|
+
return this.request.delete("/auth/userpass/users/{username}");
|
|
4115
4071
|
}
|
|
4116
4072
|
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
|
-
});
|
|
4073
|
+
const req = this.request.post("/auth/userpass/users/{username}/password");
|
|
4122
4074
|
req.type("application/json");
|
|
4123
4075
|
if (args && "password" in args) req.send({ password: args["password"] });
|
|
4124
4076
|
return req;
|
|
4125
4077
|
}
|
|
4126
4078
|
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
|
-
});
|
|
4079
|
+
const req = this.request.post("/auth/userpass/users/{username}/policies");
|
|
4132
4080
|
req.type("application/json");
|
|
4133
4081
|
if (args && "policies" in args) req.send({ policies: args["policies"] });
|
|
4134
4082
|
if (args && "token_policies" in args) req.send({ token_policies: args["token_policies"] });
|
|
@@ -4139,11 +4087,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4139
4087
|
*
|
|
4140
4088
|
*/
|
|
4141
4089
|
cubbyholeRead(args) {
|
|
4142
|
-
const req = this.request.get("/cubbyhole/{path}")
|
|
4143
|
-
name: "openBaoHttp",
|
|
4144
|
-
pathname: "/cubbyhole/{path}",
|
|
4145
|
-
method: "get"
|
|
4146
|
-
});
|
|
4090
|
+
const req = this.request.get("/cubbyhole/{path}");
|
|
4147
4091
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4148
4092
|
return req;
|
|
4149
4093
|
}
|
|
@@ -4152,29 +4096,17 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4152
4096
|
*
|
|
4153
4097
|
*/
|
|
4154
4098
|
cubbyholeWrite(args) {
|
|
4155
|
-
return this.request.post("/cubbyhole/{path}")
|
|
4156
|
-
name: "openBaoHttp",
|
|
4157
|
-
pathname: "/cubbyhole/{path}",
|
|
4158
|
-
method: "post"
|
|
4159
|
-
});
|
|
4099
|
+
return this.request.post("/cubbyhole/{path}");
|
|
4160
4100
|
}
|
|
4161
4101
|
/**
|
|
4162
4102
|
* Deletes the secret at the specified location.
|
|
4163
4103
|
*
|
|
4164
4104
|
*/
|
|
4165
4105
|
cubbyholeDelete(args) {
|
|
4166
|
-
return this.request.delete("/cubbyhole/{path}")
|
|
4167
|
-
name: "openBaoHttp",
|
|
4168
|
-
pathname: "/cubbyhole/{path}",
|
|
4169
|
-
method: "delete"
|
|
4170
|
-
});
|
|
4106
|
+
return this.request.delete("/cubbyhole/{path}");
|
|
4171
4107
|
}
|
|
4172
4108
|
aliasCreate(args) {
|
|
4173
|
-
const req = this.request.post("/identity/alias")
|
|
4174
|
-
name: "openBaoHttp",
|
|
4175
|
-
pathname: "/identity/alias",
|
|
4176
|
-
method: "post"
|
|
4177
|
-
});
|
|
4109
|
+
const req = this.request.post("/identity/alias");
|
|
4178
4110
|
req.type("application/json");
|
|
4179
4111
|
if (args && "canonical_id" in args) req.send({ canonical_id: args["canonical_id"] });
|
|
4180
4112
|
if (args && "entity_id" in args) req.send({ entity_id: args["entity_id"] });
|
|
@@ -4184,27 +4116,15 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4184
4116
|
return req;
|
|
4185
4117
|
}
|
|
4186
4118
|
aliasListById(args) {
|
|
4187
|
-
const req = this.request.get("/identity/alias/id")
|
|
4188
|
-
name: "openBaoHttp",
|
|
4189
|
-
pathname: "/identity/alias/id",
|
|
4190
|
-
method: "get"
|
|
4191
|
-
});
|
|
4119
|
+
const req = this.request.get("/identity/alias/id");
|
|
4192
4120
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4193
4121
|
return req;
|
|
4194
4122
|
}
|
|
4195
4123
|
aliasReadById(args) {
|
|
4196
|
-
return this.request.get("/identity/alias/id/{id}")
|
|
4197
|
-
name: "openBaoHttp",
|
|
4198
|
-
pathname: "/identity/alias/id/{id}",
|
|
4199
|
-
method: "get"
|
|
4200
|
-
});
|
|
4124
|
+
return this.request.get("/identity/alias/id/{id}");
|
|
4201
4125
|
}
|
|
4202
4126
|
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
|
-
});
|
|
4127
|
+
const req = this.request.post("/identity/alias/id/{id}");
|
|
4208
4128
|
req.type("application/json");
|
|
4209
4129
|
if (args && "canonical_id" in args) req.send({ canonical_id: args["canonical_id"] });
|
|
4210
4130
|
if (args && "entity_id" in args) req.send({ entity_id: args["entity_id"] });
|
|
@@ -4213,18 +4133,10 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4213
4133
|
return req;
|
|
4214
4134
|
}
|
|
4215
4135
|
aliasDeleteById(args) {
|
|
4216
|
-
return this.request.delete("/identity/alias/id/{id}")
|
|
4217
|
-
name: "openBaoHttp",
|
|
4218
|
-
pathname: "/identity/alias/id/{id}",
|
|
4219
|
-
method: "delete"
|
|
4220
|
-
});
|
|
4136
|
+
return this.request.delete("/identity/alias/id/{id}");
|
|
4221
4137
|
}
|
|
4222
4138
|
entityCreate(args) {
|
|
4223
|
-
const req = this.request.post("/identity/entity")
|
|
4224
|
-
name: "openBaoHttp",
|
|
4225
|
-
pathname: "/identity/entity",
|
|
4226
|
-
method: "post"
|
|
4227
|
-
});
|
|
4139
|
+
const req = this.request.post("/identity/entity");
|
|
4228
4140
|
req.type("application/json");
|
|
4229
4141
|
if (args && "disabled" in args) req.send({ disabled: args["disabled"] });
|
|
4230
4142
|
if (args && "id" in args) req.send({ id: args["id"] });
|
|
@@ -4234,11 +4146,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4234
4146
|
return req;
|
|
4235
4147
|
}
|
|
4236
4148
|
entityCreateAlias(args) {
|
|
4237
|
-
const req = this.request.post("/identity/entity-alias")
|
|
4238
|
-
name: "openBaoHttp",
|
|
4239
|
-
pathname: "/identity/entity-alias",
|
|
4240
|
-
method: "post"
|
|
4241
|
-
});
|
|
4149
|
+
const req = this.request.post("/identity/entity-alias");
|
|
4242
4150
|
req.type("application/json");
|
|
4243
4151
|
if (args && "canonical_id" in args) req.send({ canonical_id: args["canonical_id"] });
|
|
4244
4152
|
if (args && "custom_metadata" in args) req.send({ custom_metadata: args["custom_metadata"] });
|
|
@@ -4249,27 +4157,15 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4249
4157
|
return req;
|
|
4250
4158
|
}
|
|
4251
4159
|
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
|
-
});
|
|
4160
|
+
const req = this.request.get("/identity/entity-alias/id");
|
|
4257
4161
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4258
4162
|
return req;
|
|
4259
4163
|
}
|
|
4260
4164
|
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
|
-
});
|
|
4165
|
+
return this.request.get("/identity/entity-alias/id/{id}");
|
|
4266
4166
|
}
|
|
4267
4167
|
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
|
-
});
|
|
4168
|
+
const req = this.request.post("/identity/entity-alias/id/{id}");
|
|
4273
4169
|
req.type("application/json");
|
|
4274
4170
|
if (args && "canonical_id" in args) req.send({ canonical_id: args["canonical_id"] });
|
|
4275
4171
|
if (args && "custom_metadata" in args) req.send({ custom_metadata: args["custom_metadata"] });
|
|
@@ -4279,44 +4175,24 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4279
4175
|
return req;
|
|
4280
4176
|
}
|
|
4281
4177
|
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
|
-
});
|
|
4178
|
+
return this.request.delete("/identity/entity-alias/id/{id}");
|
|
4287
4179
|
}
|
|
4288
4180
|
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
|
-
});
|
|
4181
|
+
const req = this.request.post("/identity/entity/batch-delete");
|
|
4294
4182
|
req.type("application/json");
|
|
4295
4183
|
if (args && "entity_ids" in args) req.send({ entity_ids: args["entity_ids"] });
|
|
4296
4184
|
return req;
|
|
4297
4185
|
}
|
|
4298
4186
|
entityListById(args) {
|
|
4299
|
-
const req = this.request.get("/identity/entity/id")
|
|
4300
|
-
name: "openBaoHttp",
|
|
4301
|
-
pathname: "/identity/entity/id",
|
|
4302
|
-
method: "get"
|
|
4303
|
-
});
|
|
4187
|
+
const req = this.request.get("/identity/entity/id");
|
|
4304
4188
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4305
4189
|
return req;
|
|
4306
4190
|
}
|
|
4307
4191
|
entityReadById(args) {
|
|
4308
|
-
return this.request.get("/identity/entity/id/{id}")
|
|
4309
|
-
name: "openBaoHttp",
|
|
4310
|
-
pathname: "/identity/entity/id/{id}",
|
|
4311
|
-
method: "get"
|
|
4312
|
-
});
|
|
4192
|
+
return this.request.get("/identity/entity/id/{id}");
|
|
4313
4193
|
}
|
|
4314
4194
|
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
|
-
});
|
|
4195
|
+
const req = this.request.post("/identity/entity/id/{id}");
|
|
4320
4196
|
req.type("application/json");
|
|
4321
4197
|
if (args && "disabled" in args) req.send({ disabled: args["disabled"] });
|
|
4322
4198
|
if (args && "metadata" in args) req.send({ metadata: args["metadata"] });
|
|
@@ -4325,18 +4201,10 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4325
4201
|
return req;
|
|
4326
4202
|
}
|
|
4327
4203
|
entityDeleteById(args) {
|
|
4328
|
-
return this.request.delete("/identity/entity/id/{id}")
|
|
4329
|
-
name: "openBaoHttp",
|
|
4330
|
-
pathname: "/identity/entity/id/{id}",
|
|
4331
|
-
method: "delete"
|
|
4332
|
-
});
|
|
4204
|
+
return this.request.delete("/identity/entity/id/{id}");
|
|
4333
4205
|
}
|
|
4334
4206
|
entityMerge(args) {
|
|
4335
|
-
const req = this.request.post("/identity/entity/merge")
|
|
4336
|
-
name: "openBaoHttp",
|
|
4337
|
-
pathname: "/identity/entity/merge",
|
|
4338
|
-
method: "post"
|
|
4339
|
-
});
|
|
4207
|
+
const req = this.request.post("/identity/entity/merge");
|
|
4340
4208
|
req.type("application/json");
|
|
4341
4209
|
if (args && "conflicting_alias_ids_to_keep" in args) req.send({ conflicting_alias_ids_to_keep: args["conflicting_alias_ids_to_keep"] });
|
|
4342
4210
|
if (args && "force" in args) req.send({ force: args["force"] });
|
|
@@ -4345,27 +4213,15 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4345
4213
|
return req;
|
|
4346
4214
|
}
|
|
4347
4215
|
entityListByName(args) {
|
|
4348
|
-
const req = this.request.get("/identity/entity/name")
|
|
4349
|
-
name: "openBaoHttp",
|
|
4350
|
-
pathname: "/identity/entity/name",
|
|
4351
|
-
method: "get"
|
|
4352
|
-
});
|
|
4216
|
+
const req = this.request.get("/identity/entity/name");
|
|
4353
4217
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4354
4218
|
return req;
|
|
4355
4219
|
}
|
|
4356
4220
|
entityReadByName(args) {
|
|
4357
|
-
return this.request.get("/identity/entity/name/{name}")
|
|
4358
|
-
name: "openBaoHttp",
|
|
4359
|
-
pathname: "/identity/entity/name/{name}",
|
|
4360
|
-
method: "get"
|
|
4361
|
-
});
|
|
4221
|
+
return this.request.get("/identity/entity/name/{name}");
|
|
4362
4222
|
}
|
|
4363
4223
|
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
|
-
});
|
|
4224
|
+
const req = this.request.post("/identity/entity/name/{name}");
|
|
4369
4225
|
req.type("application/json");
|
|
4370
4226
|
if (args && "disabled" in args) req.send({ disabled: args["disabled"] });
|
|
4371
4227
|
if (args && "id" in args) req.send({ id: args["id"] });
|
|
@@ -4374,18 +4230,10 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4374
4230
|
return req;
|
|
4375
4231
|
}
|
|
4376
4232
|
entityDeleteByName(args) {
|
|
4377
|
-
return this.request.delete("/identity/entity/name/{name}")
|
|
4378
|
-
name: "openBaoHttp",
|
|
4379
|
-
pathname: "/identity/entity/name/{name}",
|
|
4380
|
-
method: "delete"
|
|
4381
|
-
});
|
|
4233
|
+
return this.request.delete("/identity/entity/name/{name}");
|
|
4382
4234
|
}
|
|
4383
4235
|
groupCreate(args) {
|
|
4384
|
-
const req = this.request.post("/identity/group")
|
|
4385
|
-
name: "openBaoHttp",
|
|
4386
|
-
pathname: "/identity/group",
|
|
4387
|
-
method: "post"
|
|
4388
|
-
});
|
|
4236
|
+
const req = this.request.post("/identity/group");
|
|
4389
4237
|
req.type("application/json");
|
|
4390
4238
|
if (args && "id" in args) req.send({ id: args["id"] });
|
|
4391
4239
|
if (args && "member_entity_ids" in args) req.send({ member_entity_ids: args["member_entity_ids"] });
|
|
@@ -4397,11 +4245,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4397
4245
|
return req;
|
|
4398
4246
|
}
|
|
4399
4247
|
groupCreateAlias(args) {
|
|
4400
|
-
const req = this.request.post("/identity/group-alias")
|
|
4401
|
-
name: "openBaoHttp",
|
|
4402
|
-
pathname: "/identity/group-alias",
|
|
4403
|
-
method: "post"
|
|
4404
|
-
});
|
|
4248
|
+
const req = this.request.post("/identity/group-alias");
|
|
4405
4249
|
req.type("application/json");
|
|
4406
4250
|
if (args && "canonical_id" in args) req.send({ canonical_id: args["canonical_id"] });
|
|
4407
4251
|
if (args && "id" in args) req.send({ id: args["id"] });
|
|
@@ -4410,27 +4254,15 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4410
4254
|
return req;
|
|
4411
4255
|
}
|
|
4412
4256
|
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
|
-
});
|
|
4257
|
+
const req = this.request.get("/identity/group-alias/id");
|
|
4418
4258
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4419
4259
|
return req;
|
|
4420
4260
|
}
|
|
4421
4261
|
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
|
-
});
|
|
4262
|
+
return this.request.get("/identity/group-alias/id/{id}");
|
|
4427
4263
|
}
|
|
4428
4264
|
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
|
-
});
|
|
4265
|
+
const req = this.request.post("/identity/group-alias/id/{id}");
|
|
4434
4266
|
req.type("application/json");
|
|
4435
4267
|
if (args && "canonical_id" in args) req.send({ canonical_id: args["canonical_id"] });
|
|
4436
4268
|
if (args && "mount_accessor" in args) req.send({ mount_accessor: args["mount_accessor"] });
|
|
@@ -4438,34 +4270,18 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4438
4270
|
return req;
|
|
4439
4271
|
}
|
|
4440
4272
|
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
|
-
});
|
|
4273
|
+
return this.request.delete("/identity/group-alias/id/{id}");
|
|
4446
4274
|
}
|
|
4447
4275
|
groupListById(args) {
|
|
4448
|
-
const req = this.request.get("/identity/group/id")
|
|
4449
|
-
name: "openBaoHttp",
|
|
4450
|
-
pathname: "/identity/group/id",
|
|
4451
|
-
method: "get"
|
|
4452
|
-
});
|
|
4276
|
+
const req = this.request.get("/identity/group/id");
|
|
4453
4277
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4454
4278
|
return req;
|
|
4455
4279
|
}
|
|
4456
4280
|
groupReadById(args) {
|
|
4457
|
-
return this.request.get("/identity/group/id/{id}")
|
|
4458
|
-
name: "openBaoHttp",
|
|
4459
|
-
pathname: "/identity/group/id/{id}",
|
|
4460
|
-
method: "get"
|
|
4461
|
-
});
|
|
4281
|
+
return this.request.get("/identity/group/id/{id}");
|
|
4462
4282
|
}
|
|
4463
4283
|
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
|
-
});
|
|
4284
|
+
const req = this.request.post("/identity/group/id/{id}");
|
|
4469
4285
|
req.type("application/json");
|
|
4470
4286
|
if (args && "member_entity_ids" in args) req.send({ member_entity_ids: args["member_entity_ids"] });
|
|
4471
4287
|
if (args && "member_group_ids" in args) req.send({ member_group_ids: args["member_group_ids"] });
|
|
@@ -4476,34 +4292,18 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4476
4292
|
return req;
|
|
4477
4293
|
}
|
|
4478
4294
|
groupDeleteById(args) {
|
|
4479
|
-
return this.request.delete("/identity/group/id/{id}")
|
|
4480
|
-
name: "openBaoHttp",
|
|
4481
|
-
pathname: "/identity/group/id/{id}",
|
|
4482
|
-
method: "delete"
|
|
4483
|
-
});
|
|
4295
|
+
return this.request.delete("/identity/group/id/{id}");
|
|
4484
4296
|
}
|
|
4485
4297
|
groupListByName(args) {
|
|
4486
|
-
const req = this.request.get("/identity/group/name")
|
|
4487
|
-
name: "openBaoHttp",
|
|
4488
|
-
pathname: "/identity/group/name",
|
|
4489
|
-
method: "get"
|
|
4490
|
-
});
|
|
4298
|
+
const req = this.request.get("/identity/group/name");
|
|
4491
4299
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4492
4300
|
return req;
|
|
4493
4301
|
}
|
|
4494
4302
|
groupReadByName(args) {
|
|
4495
|
-
return this.request.get("/identity/group/name/{name}")
|
|
4496
|
-
name: "openBaoHttp",
|
|
4497
|
-
pathname: "/identity/group/name/{name}",
|
|
4498
|
-
method: "get"
|
|
4499
|
-
});
|
|
4303
|
+
return this.request.get("/identity/group/name/{name}");
|
|
4500
4304
|
}
|
|
4501
4305
|
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
|
-
});
|
|
4306
|
+
const req = this.request.post("/identity/group/name/{name}");
|
|
4507
4307
|
req.type("application/json");
|
|
4508
4308
|
if (args && "id" in args) req.send({ id: args["id"] });
|
|
4509
4309
|
if (args && "member_entity_ids" in args) req.send({ member_entity_ids: args["member_entity_ids"] });
|
|
@@ -4514,18 +4314,10 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4514
4314
|
return req;
|
|
4515
4315
|
}
|
|
4516
4316
|
groupDeleteByName(args) {
|
|
4517
|
-
return this.request.delete("/identity/group/name/{name}")
|
|
4518
|
-
name: "openBaoHttp",
|
|
4519
|
-
pathname: "/identity/group/name/{name}",
|
|
4520
|
-
method: "delete"
|
|
4521
|
-
});
|
|
4317
|
+
return this.request.delete("/identity/group/name/{name}");
|
|
4522
4318
|
}
|
|
4523
4319
|
entityLookUp(args) {
|
|
4524
|
-
const req = this.request.post("/identity/lookup/entity")
|
|
4525
|
-
name: "openBaoHttp",
|
|
4526
|
-
pathname: "/identity/lookup/entity",
|
|
4527
|
-
method: "post"
|
|
4528
|
-
});
|
|
4320
|
+
const req = this.request.post("/identity/lookup/entity");
|
|
4529
4321
|
req.type("application/json");
|
|
4530
4322
|
if (args && "alias_id" in args) req.send({ alias_id: args["alias_id"] });
|
|
4531
4323
|
if (args && "alias_mount_accessor" in args) req.send({ alias_mount_accessor: args["alias_mount_accessor"] });
|
|
@@ -4535,11 +4327,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4535
4327
|
return req;
|
|
4536
4328
|
}
|
|
4537
4329
|
groupLookUp(args) {
|
|
4538
|
-
const req = this.request.post("/identity/lookup/group")
|
|
4539
|
-
name: "openBaoHttp",
|
|
4540
|
-
pathname: "/identity/lookup/group",
|
|
4541
|
-
method: "post"
|
|
4542
|
-
});
|
|
4330
|
+
const req = this.request.post("/identity/lookup/group");
|
|
4543
4331
|
req.type("application/json");
|
|
4544
4332
|
if (args && "alias_id" in args) req.send({ alias_id: args["alias_id"] });
|
|
4545
4333
|
if (args && "alias_mount_accessor" in args) req.send({ alias_mount_accessor: args["alias_mount_accessor"] });
|
|
@@ -4553,11 +4341,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4553
4341
|
*
|
|
4554
4342
|
*/
|
|
4555
4343
|
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
|
-
});
|
|
4344
|
+
const req = this.request.get("/identity/mfa/login-enforcement");
|
|
4561
4345
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4562
4346
|
return req;
|
|
4563
4347
|
}
|
|
@@ -4566,22 +4350,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4566
4350
|
*
|
|
4567
4351
|
*/
|
|
4568
4352
|
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
|
-
});
|
|
4353
|
+
return this.request.get("/identity/mfa/login-enforcement/{name}");
|
|
4574
4354
|
}
|
|
4575
4355
|
/**
|
|
4576
4356
|
* Create or update a login enforcement
|
|
4577
4357
|
*
|
|
4578
4358
|
*/
|
|
4579
4359
|
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
|
-
});
|
|
4360
|
+
const req = this.request.post("/identity/mfa/login-enforcement/{name}");
|
|
4585
4361
|
req.type("application/json");
|
|
4586
4362
|
if (args && "auth_method_accessors" in args) req.send({ auth_method_accessors: args["auth_method_accessors"] });
|
|
4587
4363
|
if (args && "auth_method_types" in args) req.send({ auth_method_types: args["auth_method_types"] });
|
|
@@ -4595,22 +4371,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4595
4371
|
*
|
|
4596
4372
|
*/
|
|
4597
4373
|
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
|
-
});
|
|
4374
|
+
return this.request.delete("/identity/mfa/login-enforcement/{name}");
|
|
4603
4375
|
}
|
|
4604
4376
|
/**
|
|
4605
4377
|
* List MFA method configurations for all MFA methods
|
|
4606
4378
|
*
|
|
4607
4379
|
*/
|
|
4608
4380
|
mfaListMethods(args) {
|
|
4609
|
-
const req = this.request.get("/identity/mfa/method")
|
|
4610
|
-
name: "openBaoHttp",
|
|
4611
|
-
pathname: "/identity/mfa/method",
|
|
4612
|
-
method: "get"
|
|
4613
|
-
});
|
|
4381
|
+
const req = this.request.get("/identity/mfa/method");
|
|
4614
4382
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4615
4383
|
return req;
|
|
4616
4384
|
}
|
|
@@ -4619,11 +4387,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4619
4387
|
*
|
|
4620
4388
|
*/
|
|
4621
4389
|
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
|
-
});
|
|
4390
|
+
const req = this.request.get("/identity/mfa/method/duo");
|
|
4627
4391
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4628
4392
|
return req;
|
|
4629
4393
|
}
|
|
@@ -4632,22 +4396,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4632
4396
|
*
|
|
4633
4397
|
*/
|
|
4634
4398
|
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
|
-
});
|
|
4399
|
+
return this.request.get("/identity/mfa/method/duo/{method_id}");
|
|
4640
4400
|
}
|
|
4641
4401
|
/**
|
|
4642
4402
|
* Update or create a configuration for the given MFA method
|
|
4643
4403
|
*
|
|
4644
4404
|
*/
|
|
4645
4405
|
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
|
-
});
|
|
4406
|
+
const req = this.request.post("/identity/mfa/method/duo/{method_id}");
|
|
4651
4407
|
req.type("application/json");
|
|
4652
4408
|
if (args && "api_hostname" in args) req.send({ api_hostname: args["api_hostname"] });
|
|
4653
4409
|
if (args && "integration_key" in args) req.send({ integration_key: args["integration_key"] });
|
|
@@ -4663,22 +4419,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4663
4419
|
*
|
|
4664
4420
|
*/
|
|
4665
4421
|
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
|
-
});
|
|
4422
|
+
return this.request.delete("/identity/mfa/method/duo/{method_id}");
|
|
4671
4423
|
}
|
|
4672
4424
|
/**
|
|
4673
4425
|
* List MFA method configurations for the given MFA method
|
|
4674
4426
|
*
|
|
4675
4427
|
*/
|
|
4676
4428
|
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
|
-
});
|
|
4429
|
+
const req = this.request.get("/identity/mfa/method/okta");
|
|
4682
4430
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4683
4431
|
return req;
|
|
4684
4432
|
}
|
|
@@ -4687,22 +4435,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4687
4435
|
*
|
|
4688
4436
|
*/
|
|
4689
4437
|
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
|
-
});
|
|
4438
|
+
return this.request.get("/identity/mfa/method/okta/{method_id}");
|
|
4695
4439
|
}
|
|
4696
4440
|
/**
|
|
4697
4441
|
* Update or create a configuration for the given MFA method
|
|
4698
4442
|
*
|
|
4699
4443
|
*/
|
|
4700
4444
|
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
|
-
});
|
|
4445
|
+
const req = this.request.post("/identity/mfa/method/okta/{method_id}");
|
|
4706
4446
|
req.type("application/json");
|
|
4707
4447
|
if (args && "api_token" in args) req.send({ api_token: args["api_token"] });
|
|
4708
4448
|
if (args && "base_url" in args) req.send({ base_url: args["base_url"] });
|
|
@@ -4718,22 +4458,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4718
4458
|
*
|
|
4719
4459
|
*/
|
|
4720
4460
|
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
|
-
});
|
|
4461
|
+
return this.request.delete("/identity/mfa/method/okta/{method_id}");
|
|
4726
4462
|
}
|
|
4727
4463
|
/**
|
|
4728
4464
|
* List MFA method configurations for the given MFA method
|
|
4729
4465
|
*
|
|
4730
4466
|
*/
|
|
4731
4467
|
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
|
-
});
|
|
4468
|
+
const req = this.request.get("/identity/mfa/method/pingid");
|
|
4737
4469
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4738
4470
|
return req;
|
|
4739
4471
|
}
|
|
@@ -4742,22 +4474,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4742
4474
|
*
|
|
4743
4475
|
*/
|
|
4744
4476
|
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
|
-
});
|
|
4477
|
+
return this.request.get("/identity/mfa/method/pingid/{method_id}");
|
|
4750
4478
|
}
|
|
4751
4479
|
/**
|
|
4752
4480
|
* Update or create a configuration for the given MFA method
|
|
4753
4481
|
*
|
|
4754
4482
|
*/
|
|
4755
4483
|
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
|
-
});
|
|
4484
|
+
const req = this.request.post("/identity/mfa/method/pingid/{method_id}");
|
|
4761
4485
|
req.type("application/json");
|
|
4762
4486
|
if (args && "method_name" in args) req.send({ method_name: args["method_name"] });
|
|
4763
4487
|
if (args && "settings_file_base64" in args) req.send({ settings_file_base64: args["settings_file_base64"] });
|
|
@@ -4769,22 +4493,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4769
4493
|
*
|
|
4770
4494
|
*/
|
|
4771
4495
|
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
|
-
});
|
|
4496
|
+
return this.request.delete("/identity/mfa/method/pingid/{method_id}");
|
|
4777
4497
|
}
|
|
4778
4498
|
/**
|
|
4779
4499
|
* List MFA method configurations for the given MFA method
|
|
4780
4500
|
*
|
|
4781
4501
|
*/
|
|
4782
4502
|
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
|
-
});
|
|
4503
|
+
const req = this.request.get("/identity/mfa/method/totp");
|
|
4788
4504
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4789
4505
|
return req;
|
|
4790
4506
|
}
|
|
@@ -4793,11 +4509,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4793
4509
|
*
|
|
4794
4510
|
*/
|
|
4795
4511
|
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
|
-
});
|
|
4512
|
+
const req = this.request.post("/identity/mfa/method/totp/admin-destroy");
|
|
4801
4513
|
req.type("application/json");
|
|
4802
4514
|
if (args && "entity_id" in args) req.send({ entity_id: args["entity_id"] });
|
|
4803
4515
|
if (args && "method_id" in args) req.send({ method_id: args["method_id"] });
|
|
@@ -4808,11 +4520,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4808
4520
|
*
|
|
4809
4521
|
*/
|
|
4810
4522
|
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
|
-
});
|
|
4523
|
+
const req = this.request.post("/identity/mfa/method/totp/admin-generate");
|
|
4816
4524
|
req.type("application/json");
|
|
4817
4525
|
if (args && "entity_id" in args) req.send({ entity_id: args["entity_id"] });
|
|
4818
4526
|
if (args && "method_id" in args) req.send({ method_id: args["method_id"] });
|
|
@@ -4823,11 +4531,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4823
4531
|
*
|
|
4824
4532
|
*/
|
|
4825
4533
|
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
|
-
});
|
|
4534
|
+
const req = this.request.post("/identity/mfa/method/totp/generate");
|
|
4831
4535
|
req.type("application/json");
|
|
4832
4536
|
if (args && "method_id" in args) req.send({ method_id: args["method_id"] });
|
|
4833
4537
|
return req;
|
|
@@ -4837,22 +4541,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4837
4541
|
*
|
|
4838
4542
|
*/
|
|
4839
4543
|
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
|
-
});
|
|
4544
|
+
return this.request.get("/identity/mfa/method/totp/{method_id}");
|
|
4845
4545
|
}
|
|
4846
4546
|
/**
|
|
4847
4547
|
* Update or create a configuration for the given MFA method
|
|
4848
4548
|
*
|
|
4849
4549
|
*/
|
|
4850
4550
|
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
|
-
});
|
|
4551
|
+
const req = this.request.post("/identity/mfa/method/totp/{method_id}");
|
|
4856
4552
|
req.type("application/json");
|
|
4857
4553
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
4858
4554
|
if (args && "digits" in args) req.send({ digits: args["digits"] });
|
|
@@ -4870,93 +4566,49 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4870
4566
|
*
|
|
4871
4567
|
*/
|
|
4872
4568
|
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
|
-
});
|
|
4569
|
+
return this.request.delete("/identity/mfa/method/totp/{method_id}");
|
|
4878
4570
|
}
|
|
4879
4571
|
/**
|
|
4880
4572
|
* Read the current configuration for the given ID regardless of the MFA method type
|
|
4881
4573
|
*
|
|
4882
4574
|
*/
|
|
4883
4575
|
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
|
-
});
|
|
4576
|
+
return this.request.get("/identity/mfa/method/{method_id}");
|
|
4889
4577
|
}
|
|
4890
4578
|
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
|
-
});
|
|
4579
|
+
return this.request.get("/identity/oidc/.well-known/keys");
|
|
4896
4580
|
}
|
|
4897
4581
|
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
|
-
});
|
|
4582
|
+
return this.request.get("/identity/oidc/.well-known/openid-configuration");
|
|
4903
4583
|
}
|
|
4904
4584
|
oidcListAssignments(args) {
|
|
4905
|
-
const req = this.request.get("/identity/oidc/assignment")
|
|
4906
|
-
name: "openBaoHttp",
|
|
4907
|
-
pathname: "/identity/oidc/assignment",
|
|
4908
|
-
method: "get"
|
|
4909
|
-
});
|
|
4585
|
+
const req = this.request.get("/identity/oidc/assignment");
|
|
4910
4586
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4911
4587
|
return req;
|
|
4912
4588
|
}
|
|
4913
4589
|
oidcReadAssignment(args) {
|
|
4914
|
-
return this.request.get("/identity/oidc/assignment/{name}")
|
|
4915
|
-
name: "openBaoHttp",
|
|
4916
|
-
pathname: "/identity/oidc/assignment/{name}",
|
|
4917
|
-
method: "get"
|
|
4918
|
-
});
|
|
4590
|
+
return this.request.get("/identity/oidc/assignment/{name}");
|
|
4919
4591
|
}
|
|
4920
4592
|
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
|
-
});
|
|
4593
|
+
const req = this.request.post("/identity/oidc/assignment/{name}");
|
|
4926
4594
|
req.type("application/json");
|
|
4927
4595
|
if (args && "entity_ids" in args) req.send({ entity_ids: args["entity_ids"] });
|
|
4928
4596
|
if (args && "group_ids" in args) req.send({ group_ids: args["group_ids"] });
|
|
4929
4597
|
return req;
|
|
4930
4598
|
}
|
|
4931
4599
|
oidcDeleteAssignment(args) {
|
|
4932
|
-
return this.request.delete("/identity/oidc/assignment/{name}")
|
|
4933
|
-
name: "openBaoHttp",
|
|
4934
|
-
pathname: "/identity/oidc/assignment/{name}",
|
|
4935
|
-
method: "delete"
|
|
4936
|
-
});
|
|
4600
|
+
return this.request.delete("/identity/oidc/assignment/{name}");
|
|
4937
4601
|
}
|
|
4938
4602
|
oidcListClients(args) {
|
|
4939
|
-
const req = this.request.get("/identity/oidc/client")
|
|
4940
|
-
name: "openBaoHttp",
|
|
4941
|
-
pathname: "/identity/oidc/client",
|
|
4942
|
-
method: "get"
|
|
4943
|
-
});
|
|
4603
|
+
const req = this.request.get("/identity/oidc/client");
|
|
4944
4604
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
4945
4605
|
return req;
|
|
4946
4606
|
}
|
|
4947
4607
|
oidcReadClient(args) {
|
|
4948
|
-
return this.request.get("/identity/oidc/client/{name}")
|
|
4949
|
-
name: "openBaoHttp",
|
|
4950
|
-
pathname: "/identity/oidc/client/{name}",
|
|
4951
|
-
method: "get"
|
|
4952
|
-
});
|
|
4608
|
+
return this.request.get("/identity/oidc/client/{name}");
|
|
4953
4609
|
}
|
|
4954
4610
|
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
|
-
});
|
|
4611
|
+
const req = this.request.post("/identity/oidc/client/{name}");
|
|
4960
4612
|
req.type("application/json");
|
|
4961
4613
|
if (args && "access_token_ttl" in args) req.send({ access_token_ttl: args["access_token_ttl"] });
|
|
4962
4614
|
if (args && "assignments" in args) req.send({ assignments: args["assignments"] });
|
|
@@ -4969,62 +4621,34 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
4969
4621
|
return req;
|
|
4970
4622
|
}
|
|
4971
4623
|
oidcDeleteClient(args) {
|
|
4972
|
-
return this.request.delete("/identity/oidc/client/{name}")
|
|
4973
|
-
name: "openBaoHttp",
|
|
4974
|
-
pathname: "/identity/oidc/client/{name}",
|
|
4975
|
-
method: "delete"
|
|
4976
|
-
});
|
|
4624
|
+
return this.request.delete("/identity/oidc/client/{name}");
|
|
4977
4625
|
}
|
|
4978
4626
|
oidcReadConfiguration(args) {
|
|
4979
|
-
return this.request.get("/identity/oidc/config")
|
|
4980
|
-
name: "openBaoHttp",
|
|
4981
|
-
pathname: "/identity/oidc/config",
|
|
4982
|
-
method: "get"
|
|
4983
|
-
});
|
|
4627
|
+
return this.request.get("/identity/oidc/config");
|
|
4984
4628
|
}
|
|
4985
4629
|
oidcConfigure(args) {
|
|
4986
|
-
const req = this.request.post("/identity/oidc/config")
|
|
4987
|
-
name: "openBaoHttp",
|
|
4988
|
-
pathname: "/identity/oidc/config",
|
|
4989
|
-
method: "post"
|
|
4990
|
-
});
|
|
4630
|
+
const req = this.request.post("/identity/oidc/config");
|
|
4991
4631
|
req.type("application/json");
|
|
4992
4632
|
if (args && "issuer" in args) req.send({ issuer: args["issuer"] });
|
|
4993
4633
|
return req;
|
|
4994
4634
|
}
|
|
4995
4635
|
oidcIntrospect(args) {
|
|
4996
|
-
const req = this.request.post("/identity/oidc/introspect")
|
|
4997
|
-
name: "openBaoHttp",
|
|
4998
|
-
pathname: "/identity/oidc/introspect",
|
|
4999
|
-
method: "post"
|
|
5000
|
-
});
|
|
4636
|
+
const req = this.request.post("/identity/oidc/introspect");
|
|
5001
4637
|
req.type("application/json");
|
|
5002
4638
|
if (args && "client_id" in args) req.send({ client_id: args["client_id"] });
|
|
5003
4639
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
5004
4640
|
return req;
|
|
5005
4641
|
}
|
|
5006
4642
|
oidcListKeys(args) {
|
|
5007
|
-
const req = this.request.get("/identity/oidc/key")
|
|
5008
|
-
name: "openBaoHttp",
|
|
5009
|
-
pathname: "/identity/oidc/key",
|
|
5010
|
-
method: "get"
|
|
5011
|
-
});
|
|
4643
|
+
const req = this.request.get("/identity/oidc/key");
|
|
5012
4644
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
5013
4645
|
return req;
|
|
5014
4646
|
}
|
|
5015
4647
|
oidcReadKey(args) {
|
|
5016
|
-
return this.request.get("/identity/oidc/key/{name}")
|
|
5017
|
-
name: "openBaoHttp",
|
|
5018
|
-
pathname: "/identity/oidc/key/{name}",
|
|
5019
|
-
method: "get"
|
|
5020
|
-
});
|
|
4648
|
+
return this.request.get("/identity/oidc/key/{name}");
|
|
5021
4649
|
}
|
|
5022
4650
|
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
|
-
});
|
|
4651
|
+
const req = this.request.post("/identity/oidc/key/{name}");
|
|
5028
4652
|
req.type("application/json");
|
|
5029
4653
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
5030
4654
|
if (args && "allowed_client_ids" in args) req.send({ allowed_client_ids: args["allowed_client_ids"] });
|
|
@@ -5033,44 +4657,24 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5033
4657
|
return req;
|
|
5034
4658
|
}
|
|
5035
4659
|
oidcDeleteKey(args) {
|
|
5036
|
-
return this.request.delete("/identity/oidc/key/{name}")
|
|
5037
|
-
name: "openBaoHttp",
|
|
5038
|
-
pathname: "/identity/oidc/key/{name}",
|
|
5039
|
-
method: "delete"
|
|
5040
|
-
});
|
|
4660
|
+
return this.request.delete("/identity/oidc/key/{name}");
|
|
5041
4661
|
}
|
|
5042
4662
|
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
|
-
});
|
|
4663
|
+
const req = this.request.post("/identity/oidc/key/{name}/rotate");
|
|
5048
4664
|
req.type("application/json");
|
|
5049
4665
|
if (args && "verification_ttl" in args) req.send({ verification_ttl: args["verification_ttl"] });
|
|
5050
4666
|
return req;
|
|
5051
4667
|
}
|
|
5052
4668
|
oidcListProviders(args) {
|
|
5053
|
-
const req = this.request.get("/identity/oidc/provider")
|
|
5054
|
-
name: "openBaoHttp",
|
|
5055
|
-
pathname: "/identity/oidc/provider",
|
|
5056
|
-
method: "get"
|
|
5057
|
-
});
|
|
4669
|
+
const req = this.request.get("/identity/oidc/provider");
|
|
5058
4670
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
5059
4671
|
return req;
|
|
5060
4672
|
}
|
|
5061
4673
|
oidcReadProvider(args) {
|
|
5062
|
-
return this.request.get("/identity/oidc/provider/{name}")
|
|
5063
|
-
name: "openBaoHttp",
|
|
5064
|
-
pathname: "/identity/oidc/provider/{name}",
|
|
5065
|
-
method: "get"
|
|
5066
|
-
});
|
|
4674
|
+
return this.request.get("/identity/oidc/provider/{name}");
|
|
5067
4675
|
}
|
|
5068
4676
|
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
|
-
});
|
|
4677
|
+
const req = this.request.post("/identity/oidc/provider/{name}");
|
|
5074
4678
|
req.type("application/json");
|
|
5075
4679
|
if (args && "allowed_client_ids" in args) req.send({ allowed_client_ids: args["allowed_client_ids"] });
|
|
5076
4680
|
if (args && "issuer" in args) req.send({ issuer: args["issuer"] });
|
|
@@ -5078,39 +4682,19 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5078
4682
|
return req;
|
|
5079
4683
|
}
|
|
5080
4684
|
oidcDeleteProvider(args) {
|
|
5081
|
-
return this.request.delete("/identity/oidc/provider/{name}")
|
|
5082
|
-
name: "openBaoHttp",
|
|
5083
|
-
pathname: "/identity/oidc/provider/{name}",
|
|
5084
|
-
method: "delete"
|
|
5085
|
-
});
|
|
4685
|
+
return this.request.delete("/identity/oidc/provider/{name}");
|
|
5086
4686
|
}
|
|
5087
4687
|
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
|
-
});
|
|
4688
|
+
return this.request.get("/identity/oidc/provider/{name}/.well-known/keys");
|
|
5093
4689
|
}
|
|
5094
4690
|
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
|
-
});
|
|
4691
|
+
return this.request.get("/identity/oidc/provider/{name}/.well-known/openid-configuration");
|
|
5100
4692
|
}
|
|
5101
4693
|
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
|
-
});
|
|
4694
|
+
return this.request.get("/identity/oidc/provider/{name}/authorize");
|
|
5107
4695
|
}
|
|
5108
4696
|
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
|
-
});
|
|
4697
|
+
const req = this.request.post("/identity/oidc/provider/{name}/authorize");
|
|
5114
4698
|
req.type("application/json");
|
|
5115
4699
|
if (args && "client_id" in args) req.send({ client_id: args["client_id"] });
|
|
5116
4700
|
if (args && "code_challenge" in args) req.send({ code_challenge: args["code_challenge"] });
|
|
@@ -5124,11 +4708,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5124
4708
|
return req;
|
|
5125
4709
|
}
|
|
5126
4710
|
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
|
-
});
|
|
4711
|
+
const req = this.request.post("/identity/oidc/provider/{name}/token");
|
|
5132
4712
|
req.type("application/json");
|
|
5133
4713
|
if (args && "client_id" in args) req.send({ client_id: args["client_id"] });
|
|
5134
4714
|
if (args && "client_secret" in args) req.send({ client_secret: args["client_secret"] });
|
|
@@ -5140,41 +4720,18 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5140
4720
|
return req;
|
|
5141
4721
|
}
|
|
5142
4722
|
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
|
-
});
|
|
4723
|
+
return this.request.get("/identity/oidc/provider/{name}/userinfo");
|
|
5155
4724
|
}
|
|
5156
4725
|
oidcListRoles(args) {
|
|
5157
|
-
const req = this.request.get("/identity/oidc/role")
|
|
5158
|
-
name: "openBaoHttp",
|
|
5159
|
-
pathname: "/identity/oidc/role",
|
|
5160
|
-
method: "get"
|
|
5161
|
-
});
|
|
4726
|
+
const req = this.request.get("/identity/oidc/role");
|
|
5162
4727
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
5163
4728
|
return req;
|
|
5164
4729
|
}
|
|
5165
4730
|
oidcReadRole(args) {
|
|
5166
|
-
return this.request.get("/identity/oidc/role/{name}")
|
|
5167
|
-
name: "openBaoHttp",
|
|
5168
|
-
pathname: "/identity/oidc/role/{name}",
|
|
5169
|
-
method: "get"
|
|
5170
|
-
});
|
|
4731
|
+
return this.request.get("/identity/oidc/role/{name}");
|
|
5171
4732
|
}
|
|
5172
4733
|
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
|
-
});
|
|
4734
|
+
const req = this.request.post("/identity/oidc/role/{name}");
|
|
5178
4735
|
req.type("application/json");
|
|
5179
4736
|
if (args && "client_id" in args) req.send({ client_id: args["client_id"] });
|
|
5180
4737
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
@@ -5183,59 +4740,31 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5183
4740
|
return req;
|
|
5184
4741
|
}
|
|
5185
4742
|
oidcDeleteRole(args) {
|
|
5186
|
-
return this.request.delete("/identity/oidc/role/{name}")
|
|
5187
|
-
name: "openBaoHttp",
|
|
5188
|
-
pathname: "/identity/oidc/role/{name}",
|
|
5189
|
-
method: "delete"
|
|
5190
|
-
});
|
|
4743
|
+
return this.request.delete("/identity/oidc/role/{name}");
|
|
5191
4744
|
}
|
|
5192
4745
|
oidcListScopes(args) {
|
|
5193
|
-
const req = this.request.get("/identity/oidc/scope")
|
|
5194
|
-
name: "openBaoHttp",
|
|
5195
|
-
pathname: "/identity/oidc/scope",
|
|
5196
|
-
method: "get"
|
|
5197
|
-
});
|
|
4746
|
+
const req = this.request.get("/identity/oidc/scope");
|
|
5198
4747
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
5199
4748
|
return req;
|
|
5200
4749
|
}
|
|
5201
4750
|
oidcReadScope(args) {
|
|
5202
|
-
return this.request.get("/identity/oidc/scope/{name}")
|
|
5203
|
-
name: "openBaoHttp",
|
|
5204
|
-
pathname: "/identity/oidc/scope/{name}",
|
|
5205
|
-
method: "get"
|
|
5206
|
-
});
|
|
4751
|
+
return this.request.get("/identity/oidc/scope/{name}");
|
|
5207
4752
|
}
|
|
5208
4753
|
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
|
-
});
|
|
4754
|
+
const req = this.request.post("/identity/oidc/scope/{name}");
|
|
5214
4755
|
req.type("application/json");
|
|
5215
4756
|
if (args && "description" in args) req.send({ description: args["description"] });
|
|
5216
4757
|
if (args && "template" in args) req.send({ template: args["template"] });
|
|
5217
4758
|
return req;
|
|
5218
4759
|
}
|
|
5219
4760
|
oidcDeleteScope(args) {
|
|
5220
|
-
return this.request.delete("/identity/oidc/scope/{name}")
|
|
5221
|
-
name: "openBaoHttp",
|
|
5222
|
-
pathname: "/identity/oidc/scope/{name}",
|
|
5223
|
-
method: "delete"
|
|
5224
|
-
});
|
|
4761
|
+
return this.request.delete("/identity/oidc/scope/{name}");
|
|
5225
4762
|
}
|
|
5226
4763
|
oidcGenerateToken(args) {
|
|
5227
|
-
return this.request.get("/identity/oidc/token/{name}")
|
|
5228
|
-
name: "openBaoHttp",
|
|
5229
|
-
pathname: "/identity/oidc/token/{name}",
|
|
5230
|
-
method: "get"
|
|
5231
|
-
});
|
|
4764
|
+
return this.request.get("/identity/oidc/token/{name}");
|
|
5232
4765
|
}
|
|
5233
4766
|
personaCreate(args) {
|
|
5234
|
-
const req = this.request.post("/identity/persona")
|
|
5235
|
-
name: "openBaoHttp",
|
|
5236
|
-
pathname: "/identity/persona",
|
|
5237
|
-
method: "post"
|
|
5238
|
-
});
|
|
4767
|
+
const req = this.request.post("/identity/persona");
|
|
5239
4768
|
req.type("application/json");
|
|
5240
4769
|
if (args && "entity_id" in args) req.send({ entity_id: args["entity_id"] });
|
|
5241
4770
|
if (args && "id" in args) req.send({ id: args["id"] });
|
|
@@ -5245,27 +4774,15 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5245
4774
|
return req;
|
|
5246
4775
|
}
|
|
5247
4776
|
personaListById(args) {
|
|
5248
|
-
const req = this.request.get("/identity/persona/id")
|
|
5249
|
-
name: "openBaoHttp",
|
|
5250
|
-
pathname: "/identity/persona/id",
|
|
5251
|
-
method: "get"
|
|
5252
|
-
});
|
|
4777
|
+
const req = this.request.get("/identity/persona/id");
|
|
5253
4778
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
5254
4779
|
return req;
|
|
5255
4780
|
}
|
|
5256
4781
|
personaReadById(args) {
|
|
5257
|
-
return this.request.get("/identity/persona/id/{id}")
|
|
5258
|
-
name: "openBaoHttp",
|
|
5259
|
-
pathname: "/identity/persona/id/{id}",
|
|
5260
|
-
method: "get"
|
|
5261
|
-
});
|
|
4782
|
+
return this.request.get("/identity/persona/id/{id}");
|
|
5262
4783
|
}
|
|
5263
4784
|
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
|
-
});
|
|
4785
|
+
const req = this.request.post("/identity/persona/id/{id}");
|
|
5269
4786
|
req.type("application/json");
|
|
5270
4787
|
if (args && "entity_id" in args) req.send({ entity_id: args["entity_id"] });
|
|
5271
4788
|
if (args && "metadata" in args) req.send({ metadata: args["metadata"] });
|
|
@@ -5274,33 +4791,21 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5274
4791
|
return req;
|
|
5275
4792
|
}
|
|
5276
4793
|
personaDeleteById(args) {
|
|
5277
|
-
return this.request.delete("/identity/persona/id/{id}")
|
|
5278
|
-
name: "openBaoHttp",
|
|
5279
|
-
pathname: "/identity/persona/id/{id}",
|
|
5280
|
-
method: "delete"
|
|
5281
|
-
});
|
|
4794
|
+
return this.request.delete("/identity/persona/id/{id}");
|
|
5282
4795
|
}
|
|
5283
4796
|
/**
|
|
5284
4797
|
* Read the backend level settings.
|
|
5285
4798
|
*
|
|
5286
4799
|
*/
|
|
5287
4800
|
kvReadConfig(args) {
|
|
5288
|
-
return this.request.get("/kv/config")
|
|
5289
|
-
name: "openBaoHttp",
|
|
5290
|
-
pathname: "/kv/config",
|
|
5291
|
-
method: "get"
|
|
5292
|
-
});
|
|
4801
|
+
return this.request.get("/kv/config");
|
|
5293
4802
|
}
|
|
5294
4803
|
/**
|
|
5295
4804
|
* Configure backend level settings that are applied to every key in the key-value store.
|
|
5296
4805
|
*
|
|
5297
4806
|
*/
|
|
5298
4807
|
kvWriteConfig(args) {
|
|
5299
|
-
const req = this.request.post("/kv/config")
|
|
5300
|
-
name: "openBaoHttp",
|
|
5301
|
-
pathname: "/kv/config",
|
|
5302
|
-
method: "post"
|
|
5303
|
-
});
|
|
4808
|
+
const req = this.request.post("/kv/config");
|
|
5304
4809
|
req.type("application/json");
|
|
5305
4810
|
if (args && "cas_required" in args) req.send({ cas_required: args["cas_required"] });
|
|
5306
4811
|
if (args && "delete_version_after" in args) req.send({ delete_version_after: args["delete_version_after"] });
|
|
@@ -5309,18 +4814,10 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5309
4814
|
return req;
|
|
5310
4815
|
}
|
|
5311
4816
|
kvReadDataPath(args) {
|
|
5312
|
-
return this.request.get("/kv/data/{path}")
|
|
5313
|
-
name: "openBaoHttp",
|
|
5314
|
-
pathname: "/kv/data/{path}",
|
|
5315
|
-
method: "get"
|
|
5316
|
-
});
|
|
4817
|
+
return this.request.get("/kv/data/{path}");
|
|
5317
4818
|
}
|
|
5318
4819
|
kvWriteDataPath(args) {
|
|
5319
|
-
const req = this.request.post("/kv/data/{path}")
|
|
5320
|
-
name: "openBaoHttp",
|
|
5321
|
-
pathname: "/kv/data/{path}",
|
|
5322
|
-
method: "post"
|
|
5323
|
-
});
|
|
4820
|
+
const req = this.request.post("/kv/data/{path}");
|
|
5324
4821
|
req.type("application/json");
|
|
5325
4822
|
if (args && "data" in args) req.send({ data: args["data"] });
|
|
5326
4823
|
if (args && "options" in args) req.send({ options: args["options"] });
|
|
@@ -5328,56 +4825,32 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5328
4825
|
return req;
|
|
5329
4826
|
}
|
|
5330
4827
|
kvDeleteDataPath(args) {
|
|
5331
|
-
return this.request.delete("/kv/data/{path}")
|
|
5332
|
-
name: "openBaoHttp",
|
|
5333
|
-
pathname: "/kv/data/{path}",
|
|
5334
|
-
method: "delete"
|
|
5335
|
-
});
|
|
4828
|
+
return this.request.delete("/kv/data/{path}");
|
|
5336
4829
|
}
|
|
5337
4830
|
kvWriteDeletePath(args) {
|
|
5338
|
-
const req = this.request.post("/kv/delete/{path}")
|
|
5339
|
-
name: "openBaoHttp",
|
|
5340
|
-
pathname: "/kv/delete/{path}",
|
|
5341
|
-
method: "post"
|
|
5342
|
-
});
|
|
4831
|
+
const req = this.request.post("/kv/delete/{path}");
|
|
5343
4832
|
req.type("application/json");
|
|
5344
4833
|
if (args && "versions" in args) req.send({ versions: args["versions"] });
|
|
5345
4834
|
return req;
|
|
5346
4835
|
}
|
|
5347
4836
|
kvWriteDestroyPath(args) {
|
|
5348
|
-
const req = this.request.post("/kv/destroy/{path}")
|
|
5349
|
-
name: "openBaoHttp",
|
|
5350
|
-
pathname: "/kv/destroy/{path}",
|
|
5351
|
-
method: "post"
|
|
5352
|
-
});
|
|
4837
|
+
const req = this.request.post("/kv/destroy/{path}");
|
|
5353
4838
|
req.type("application/json");
|
|
5354
4839
|
if (args && "versions" in args) req.send({ versions: args["versions"] });
|
|
5355
4840
|
return req;
|
|
5356
4841
|
}
|
|
5357
4842
|
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
|
-
});
|
|
4843
|
+
const req = this.request.get("/kv/detailed-metadata/{path}");
|
|
5363
4844
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
5364
4845
|
return req;
|
|
5365
4846
|
}
|
|
5366
4847
|
kvReadMetadataPath(args) {
|
|
5367
|
-
const req = this.request.get("/kv/metadata/{path}")
|
|
5368
|
-
name: "openBaoHttp",
|
|
5369
|
-
pathname: "/kv/metadata/{path}",
|
|
5370
|
-
method: "get"
|
|
5371
|
-
});
|
|
4848
|
+
const req = this.request.get("/kv/metadata/{path}");
|
|
5372
4849
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
5373
4850
|
return req;
|
|
5374
4851
|
}
|
|
5375
4852
|
kvWriteMetadataPath(args) {
|
|
5376
|
-
const req = this.request.post("/kv/metadata/{path}")
|
|
5377
|
-
name: "openBaoHttp",
|
|
5378
|
-
pathname: "/kv/metadata/{path}",
|
|
5379
|
-
method: "post"
|
|
5380
|
-
});
|
|
4853
|
+
const req = this.request.post("/kv/metadata/{path}");
|
|
5381
4854
|
req.type("application/json");
|
|
5382
4855
|
if (args && "after" in args) req.send({ after: args["after"] });
|
|
5383
4856
|
if (args && "cas_required" in args) req.send({ cas_required: args["cas_required"] });
|
|
@@ -5390,25 +4863,13 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5390
4863
|
return req;
|
|
5391
4864
|
}
|
|
5392
4865
|
kvDeleteMetadataPath(args) {
|
|
5393
|
-
return this.request.delete("/kv/metadata/{path}")
|
|
5394
|
-
name: "openBaoHttp",
|
|
5395
|
-
pathname: "/kv/metadata/{path}",
|
|
5396
|
-
method: "delete"
|
|
5397
|
-
});
|
|
4866
|
+
return this.request.delete("/kv/metadata/{path}");
|
|
5398
4867
|
}
|
|
5399
4868
|
kvReadSubkeysPath(args) {
|
|
5400
|
-
return this.request.get("/kv/subkeys/{path}")
|
|
5401
|
-
name: "openBaoHttp",
|
|
5402
|
-
pathname: "/kv/subkeys/{path}",
|
|
5403
|
-
method: "get"
|
|
5404
|
-
});
|
|
4869
|
+
return this.request.get("/kv/subkeys/{path}");
|
|
5405
4870
|
}
|
|
5406
4871
|
kvWriteUndeletePath(args) {
|
|
5407
|
-
const req = this.request.post("/kv/undelete/{path}")
|
|
5408
|
-
name: "openBaoHttp",
|
|
5409
|
-
pathname: "/kv/undelete/{path}",
|
|
5410
|
-
method: "post"
|
|
5411
|
-
});
|
|
4872
|
+
const req = this.request.post("/kv/undelete/{path}");
|
|
5412
4873
|
req.type("application/json");
|
|
5413
4874
|
if (args && "versions" in args) req.send({ versions: args["versions"] });
|
|
5414
4875
|
return req;
|
|
@@ -5418,18 +4879,10 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5418
4879
|
*
|
|
5419
4880
|
*/
|
|
5420
4881
|
auditingListEnabledDevices(args) {
|
|
5421
|
-
return this.request.get("/sys/audit")
|
|
5422
|
-
name: "openBaoHttp",
|
|
5423
|
-
pathname: "/sys/audit",
|
|
5424
|
-
method: "get"
|
|
5425
|
-
});
|
|
4882
|
+
return this.request.get("/sys/audit");
|
|
5426
4883
|
}
|
|
5427
4884
|
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
|
-
});
|
|
4885
|
+
const req = this.request.post("/sys/audit-hash/{path}");
|
|
5433
4886
|
req.type("application/json");
|
|
5434
4887
|
if (args && "input" in args) req.send({ input: args["input"] });
|
|
5435
4888
|
return req;
|
|
@@ -5439,11 +4892,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5439
4892
|
*
|
|
5440
4893
|
*/
|
|
5441
4894
|
auditingEnableDevice(args) {
|
|
5442
|
-
const req = this.request.post("/sys/audit/{path}")
|
|
5443
|
-
name: "openBaoHttp",
|
|
5444
|
-
pathname: "/sys/audit/{path}",
|
|
5445
|
-
method: "post"
|
|
5446
|
-
});
|
|
4895
|
+
const req = this.request.post("/sys/audit/{path}");
|
|
5447
4896
|
req.type("application/json");
|
|
5448
4897
|
if (args && "description" in args) req.send({ description: args["description"] });
|
|
5449
4898
|
if (args && "local" in args) req.send({ local: args["local"] });
|
|
@@ -5456,29 +4905,17 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5456
4905
|
*
|
|
5457
4906
|
*/
|
|
5458
4907
|
auditingDisableDevice(args) {
|
|
5459
|
-
return this.request.delete("/sys/audit/{path}")
|
|
5460
|
-
name: "openBaoHttp",
|
|
5461
|
-
pathname: "/sys/audit/{path}",
|
|
5462
|
-
method: "delete"
|
|
5463
|
-
});
|
|
4908
|
+
return this.request.delete("/sys/audit/{path}");
|
|
5464
4909
|
}
|
|
5465
4910
|
authListEnabledMethods(args) {
|
|
5466
|
-
return this.request.get("/sys/auth")
|
|
5467
|
-
name: "openBaoHttp",
|
|
5468
|
-
pathname: "/sys/auth",
|
|
5469
|
-
method: "get"
|
|
5470
|
-
});
|
|
4911
|
+
return this.request.get("/sys/auth");
|
|
5471
4912
|
}
|
|
5472
4913
|
/**
|
|
5473
4914
|
* Read the configuration of the auth engine at the given path.
|
|
5474
4915
|
*
|
|
5475
4916
|
*/
|
|
5476
4917
|
authReadConfiguration(args) {
|
|
5477
|
-
return this.request.get("/sys/auth/{path}")
|
|
5478
|
-
name: "openBaoHttp",
|
|
5479
|
-
pathname: "/sys/auth/{path}",
|
|
5480
|
-
method: "get"
|
|
5481
|
-
});
|
|
4918
|
+
return this.request.get("/sys/auth/{path}");
|
|
5482
4919
|
}
|
|
5483
4920
|
/**
|
|
5484
4921
|
* Enables a new auth method.
|
|
@@ -5488,11 +4925,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5488
4925
|
* For example, enable the "foo" auth method will make it accessible at /auth/foo.
|
|
5489
4926
|
*/
|
|
5490
4927
|
authEnableMethod(args) {
|
|
5491
|
-
const req = this.request.post("/sys/auth/{path}")
|
|
5492
|
-
name: "openBaoHttp",
|
|
5493
|
-
pathname: "/sys/auth/{path}",
|
|
5494
|
-
method: "post"
|
|
5495
|
-
});
|
|
4928
|
+
const req = this.request.post("/sys/auth/{path}");
|
|
5496
4929
|
req.type("application/json");
|
|
5497
4930
|
if (args && "config" in args) req.send({ config: args["config"] });
|
|
5498
4931
|
if (args && "description" in args) req.send({ description: args["description"] });
|
|
@@ -5510,11 +4943,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5510
4943
|
*
|
|
5511
4944
|
*/
|
|
5512
4945
|
authDisableMethod(args) {
|
|
5513
|
-
return this.request.delete("/sys/auth/{path}")
|
|
5514
|
-
name: "openBaoHttp",
|
|
5515
|
-
pathname: "/sys/auth/{path}",
|
|
5516
|
-
method: "delete"
|
|
5517
|
-
});
|
|
4946
|
+
return this.request.delete("/sys/auth/{path}");
|
|
5518
4947
|
}
|
|
5519
4948
|
/**
|
|
5520
4949
|
* Reads the given auth path's configuration.
|
|
@@ -5522,11 +4951,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5522
4951
|
* @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
4952
|
*/
|
|
5524
4953
|
authReadTuningInformation(args) {
|
|
5525
|
-
return this.request.get("/sys/auth/{path}/tune")
|
|
5526
|
-
name: "openBaoHttp",
|
|
5527
|
-
pathname: "/sys/auth/{path}/tune",
|
|
5528
|
-
method: "get"
|
|
5529
|
-
});
|
|
4954
|
+
return this.request.get("/sys/auth/{path}/tune");
|
|
5530
4955
|
}
|
|
5531
4956
|
/**
|
|
5532
4957
|
* Tune configuration parameters for a given auth path.
|
|
@@ -5534,11 +4959,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5534
4959
|
* @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
4960
|
*/
|
|
5536
4961
|
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
|
-
});
|
|
4962
|
+
const req = this.request.post("/sys/auth/{path}/tune");
|
|
5542
4963
|
req.type("application/json");
|
|
5543
4964
|
if (args && "allowed_response_headers" in args) req.send({ allowed_response_headers: args["allowed_response_headers"] });
|
|
5544
4965
|
if (args && "audit_non_hmac_request_keys" in args) req.send({ audit_non_hmac_request_keys: args["audit_non_hmac_request_keys"] });
|
|
@@ -5555,11 +4976,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5555
4976
|
return req;
|
|
5556
4977
|
}
|
|
5557
4978
|
queryTokenCapabilities(args) {
|
|
5558
|
-
const req = this.request.post("/sys/capabilities")
|
|
5559
|
-
name: "openBaoHttp",
|
|
5560
|
-
pathname: "/sys/capabilities",
|
|
5561
|
-
method: "post"
|
|
5562
|
-
});
|
|
4979
|
+
const req = this.request.post("/sys/capabilities");
|
|
5563
4980
|
req.type("application/json");
|
|
5564
4981
|
if (args && "path" in args) req.send({ path: args["path"] });
|
|
5565
4982
|
if (args && "paths" in args) req.send({ paths: args["paths"] });
|
|
@@ -5567,11 +4984,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5567
4984
|
return req;
|
|
5568
4985
|
}
|
|
5569
4986
|
queryTokenAccessorCapabilities(args) {
|
|
5570
|
-
const req = this.request.post("/sys/capabilities-accessor")
|
|
5571
|
-
name: "openBaoHttp",
|
|
5572
|
-
pathname: "/sys/capabilities-accessor",
|
|
5573
|
-
method: "post"
|
|
5574
|
-
});
|
|
4987
|
+
const req = this.request.post("/sys/capabilities-accessor");
|
|
5575
4988
|
req.type("application/json");
|
|
5576
4989
|
if (args && "accessor" in args) req.send({ accessor: args["accessor"] });
|
|
5577
4990
|
if (args && "path" in args) req.send({ path: args["path"] });
|
|
@@ -5579,11 +4992,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5579
4992
|
return req;
|
|
5580
4993
|
}
|
|
5581
4994
|
queryTokenSelfCapabilities(args) {
|
|
5582
|
-
const req = this.request.post("/sys/capabilities-self")
|
|
5583
|
-
name: "openBaoHttp",
|
|
5584
|
-
pathname: "/sys/capabilities-self",
|
|
5585
|
-
method: "post"
|
|
5586
|
-
});
|
|
4995
|
+
const req = this.request.post("/sys/capabilities-self");
|
|
5587
4996
|
req.type("application/json");
|
|
5588
4997
|
if (args && "path" in args) req.send({ path: args["path"] });
|
|
5589
4998
|
if (args && "paths" in args) req.send({ paths: args["paths"] });
|
|
@@ -5595,33 +5004,21 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5595
5004
|
*
|
|
5596
5005
|
*/
|
|
5597
5006
|
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
|
-
});
|
|
5007
|
+
return this.request.get("/sys/config/auditing/request-headers");
|
|
5603
5008
|
}
|
|
5604
5009
|
/**
|
|
5605
5010
|
* List the information for the given request header.
|
|
5606
5011
|
*
|
|
5607
5012
|
*/
|
|
5608
5013
|
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
|
-
});
|
|
5014
|
+
return this.request.get("/sys/config/auditing/request-headers/{header}");
|
|
5614
5015
|
}
|
|
5615
5016
|
/**
|
|
5616
5017
|
* Enable auditing of a header.
|
|
5617
5018
|
*
|
|
5618
5019
|
*/
|
|
5619
5020
|
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
|
-
});
|
|
5021
|
+
const req = this.request.post("/sys/config/auditing/request-headers/{header}");
|
|
5625
5022
|
req.type("application/json");
|
|
5626
5023
|
if (args && "hmac" in args) req.send({ hmac: args["hmac"] });
|
|
5627
5024
|
return req;
|
|
@@ -5631,33 +5028,21 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5631
5028
|
*
|
|
5632
5029
|
*/
|
|
5633
5030
|
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
|
-
});
|
|
5031
|
+
return this.request.delete("/sys/config/auditing/request-headers/{header}");
|
|
5639
5032
|
}
|
|
5640
5033
|
/**
|
|
5641
5034
|
* Return the current CORS settings.
|
|
5642
5035
|
*
|
|
5643
5036
|
*/
|
|
5644
5037
|
corsReadConfiguration(args) {
|
|
5645
|
-
return this.request.get("/sys/config/cors")
|
|
5646
|
-
name: "openBaoHttp",
|
|
5647
|
-
pathname: "/sys/config/cors",
|
|
5648
|
-
method: "get"
|
|
5649
|
-
});
|
|
5038
|
+
return this.request.get("/sys/config/cors");
|
|
5650
5039
|
}
|
|
5651
5040
|
/**
|
|
5652
5041
|
* Configure the CORS settings.
|
|
5653
5042
|
*
|
|
5654
5043
|
*/
|
|
5655
5044
|
corsConfigure(args) {
|
|
5656
|
-
const req = this.request.post("/sys/config/cors")
|
|
5657
|
-
name: "openBaoHttp",
|
|
5658
|
-
pathname: "/sys/config/cors",
|
|
5659
|
-
method: "post"
|
|
5660
|
-
});
|
|
5045
|
+
const req = this.request.post("/sys/config/cors");
|
|
5661
5046
|
req.type("application/json");
|
|
5662
5047
|
if (args && "allowed_headers" in args) req.send({ allowed_headers: args["allowed_headers"] });
|
|
5663
5048
|
if (args && "allowed_origins" in args) req.send({ allowed_origins: args["allowed_origins"] });
|
|
@@ -5669,22 +5054,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5669
5054
|
*
|
|
5670
5055
|
*/
|
|
5671
5056
|
corsDeleteConfiguration(args) {
|
|
5672
|
-
return this.request.delete("/sys/config/cors")
|
|
5673
|
-
name: "openBaoHttp",
|
|
5674
|
-
pathname: "/sys/config/cors",
|
|
5675
|
-
method: "delete"
|
|
5676
|
-
});
|
|
5057
|
+
return this.request.delete("/sys/config/cors");
|
|
5677
5058
|
}
|
|
5678
5059
|
/**
|
|
5679
5060
|
* Reload the given subsystem
|
|
5680
5061
|
*
|
|
5681
5062
|
*/
|
|
5682
5063
|
reloadSubsystem(args) {
|
|
5683
|
-
return this.request.post("/sys/config/reload/{subsystem}")
|
|
5684
|
-
name: "openBaoHttp",
|
|
5685
|
-
pathname: "/sys/config/reload/{subsystem}",
|
|
5686
|
-
method: "post"
|
|
5687
|
-
});
|
|
5064
|
+
return this.request.post("/sys/config/reload/{subsystem}");
|
|
5688
5065
|
}
|
|
5689
5066
|
/**
|
|
5690
5067
|
* Return a sanitized version of the OpenBao server configuration.
|
|
@@ -5692,22 +5069,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5692
5069
|
* @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
5070
|
*/
|
|
5694
5071
|
readSanitizedConfigurationState(args) {
|
|
5695
|
-
return this.request.get("/sys/config/state/sanitized")
|
|
5696
|
-
name: "openBaoHttp",
|
|
5697
|
-
pathname: "/sys/config/state/sanitized",
|
|
5698
|
-
method: "get"
|
|
5699
|
-
});
|
|
5072
|
+
return this.request.get("/sys/config/state/sanitized");
|
|
5700
5073
|
}
|
|
5701
5074
|
/**
|
|
5702
5075
|
* Return a list of configured UI headers.
|
|
5703
5076
|
*
|
|
5704
5077
|
*/
|
|
5705
5078
|
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
|
-
});
|
|
5079
|
+
const req = this.request.get("/sys/config/ui/headers");
|
|
5711
5080
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
5712
5081
|
return req;
|
|
5713
5082
|
}
|
|
@@ -5716,22 +5085,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5716
5085
|
*
|
|
5717
5086
|
*/
|
|
5718
5087
|
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
|
-
});
|
|
5088
|
+
return this.request.get("/sys/config/ui/headers/{header}");
|
|
5724
5089
|
}
|
|
5725
5090
|
/**
|
|
5726
5091
|
* Configure the values to be returned for the UI header.
|
|
5727
5092
|
*
|
|
5728
5093
|
*/
|
|
5729
5094
|
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
|
-
});
|
|
5095
|
+
const req = this.request.post("/sys/config/ui/headers/{header}");
|
|
5735
5096
|
req.type("application/json");
|
|
5736
5097
|
if (args && "multivalue" in args) req.send({ multivalue: args["multivalue"] });
|
|
5737
5098
|
if (args && "values" in args) req.send({ values: args["values"] });
|
|
@@ -5742,22 +5103,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5742
5103
|
*
|
|
5743
5104
|
*/
|
|
5744
5105
|
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
|
-
});
|
|
5106
|
+
return this.request.delete("/sys/config/ui/headers/{header}");
|
|
5750
5107
|
}
|
|
5751
5108
|
/**
|
|
5752
5109
|
* Decodes the encoded token with the otp.
|
|
5753
5110
|
*
|
|
5754
5111
|
*/
|
|
5755
5112
|
decode(args) {
|
|
5756
|
-
const req = this.request.post("/sys/decode-token")
|
|
5757
|
-
name: "openBaoHttp",
|
|
5758
|
-
pathname: "/sys/decode-token",
|
|
5759
|
-
method: "post"
|
|
5760
|
-
});
|
|
5113
|
+
const req = this.request.post("/sys/decode-token");
|
|
5761
5114
|
req.type("application/json");
|
|
5762
5115
|
if (args && "encoded_token" in args) req.send({ encoded_token: args["encoded_token"] });
|
|
5763
5116
|
if (args && "otp" in args) req.send({ otp: args["otp"] });
|
|
@@ -5768,48 +5121,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5768
5121
|
*
|
|
5769
5122
|
*/
|
|
5770
5123
|
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
|
-
});
|
|
5124
|
+
return this.request.get("/sys/generate-root");
|
|
5802
5125
|
}
|
|
5803
5126
|
/**
|
|
5804
5127
|
* Read the configuration and progress of the current root generation attempt.
|
|
5805
5128
|
*
|
|
5806
5129
|
*/
|
|
5807
5130
|
rootTokenGenerationReadProgress(args) {
|
|
5808
|
-
return this.request.get("/sys/generate-root/attempt")
|
|
5809
|
-
name: "openBaoHttp",
|
|
5810
|
-
pathname: "/sys/generate-root/attempt",
|
|
5811
|
-
method: "get"
|
|
5812
|
-
});
|
|
5131
|
+
return this.request.get("/sys/generate-root/attempt");
|
|
5813
5132
|
}
|
|
5814
5133
|
/**
|
|
5815
5134
|
* Initializes a new root generation attempt.
|
|
@@ -5817,11 +5136,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5817
5136
|
* @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
5137
|
*/
|
|
5819
5138
|
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
|
-
});
|
|
5139
|
+
const req = this.request.post("/sys/generate-root/attempt");
|
|
5825
5140
|
req.type("application/json");
|
|
5826
5141
|
if (args && "pgp_key" in args) req.send({ pgp_key: args["pgp_key"] });
|
|
5827
5142
|
return req;
|
|
@@ -5831,11 +5146,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5831
5146
|
*
|
|
5832
5147
|
*/
|
|
5833
5148
|
rootTokenGenerationCancel(args) {
|
|
5834
|
-
return this.request.delete("/sys/generate-root/attempt")
|
|
5835
|
-
name: "openBaoHttp",
|
|
5836
|
-
pathname: "/sys/generate-root/attempt",
|
|
5837
|
-
method: "delete"
|
|
5838
|
-
});
|
|
5149
|
+
return this.request.delete("/sys/generate-root/attempt");
|
|
5839
5150
|
}
|
|
5840
5151
|
/**
|
|
5841
5152
|
* Enter a single unseal key share to progress the root generation attempt.
|
|
@@ -5843,11 +5154,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5843
5154
|
* @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
5155
|
*/
|
|
5845
5156
|
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
|
-
});
|
|
5157
|
+
const req = this.request.post("/sys/generate-root/update");
|
|
5851
5158
|
req.type("application/json");
|
|
5852
5159
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
5853
5160
|
if (args && "nonce" in args) req.send({ nonce: args["nonce"] });
|
|
@@ -5858,22 +5165,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5858
5165
|
*
|
|
5859
5166
|
*/
|
|
5860
5167
|
haStatus(args) {
|
|
5861
|
-
return this.request.get("/sys/ha-status")
|
|
5862
|
-
name: "openBaoHttp",
|
|
5863
|
-
pathname: "/sys/ha-status",
|
|
5864
|
-
method: "get"
|
|
5865
|
-
});
|
|
5168
|
+
return this.request.get("/sys/ha-status");
|
|
5866
5169
|
}
|
|
5867
5170
|
/**
|
|
5868
5171
|
* Returns the health status of OpenBao.
|
|
5869
5172
|
*
|
|
5870
5173
|
*/
|
|
5871
5174
|
readHealthStatus(args) {
|
|
5872
|
-
return this.request.get("/sys/health")
|
|
5873
|
-
name: "openBaoHttp",
|
|
5874
|
-
pathname: "/sys/health",
|
|
5875
|
-
method: "get"
|
|
5876
|
-
});
|
|
5175
|
+
return this.request.get("/sys/health");
|
|
5877
5176
|
}
|
|
5878
5177
|
/**
|
|
5879
5178
|
* Information about the host instance that this OpenBao server is running on.
|
|
@@ -5883,11 +5182,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5883
5182
|
* disk, and memory utilization
|
|
5884
5183
|
*/
|
|
5885
5184
|
collectHostInformation(args) {
|
|
5886
|
-
return this.request.get("/sys/host-info")
|
|
5887
|
-
name: "openBaoHttp",
|
|
5888
|
-
pathname: "/sys/host-info",
|
|
5889
|
-
method: "get"
|
|
5890
|
-
});
|
|
5185
|
+
return this.request.get("/sys/host-info");
|
|
5891
5186
|
}
|
|
5892
5187
|
/**
|
|
5893
5188
|
* reports in-flight requests
|
|
@@ -5897,22 +5192,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5897
5192
|
* Returns a map of in-flight requests.
|
|
5898
5193
|
*/
|
|
5899
5194
|
collectInFlightRequestInformation(args) {
|
|
5900
|
-
return this.request.get("/sys/in-flight-req")
|
|
5901
|
-
name: "openBaoHttp",
|
|
5902
|
-
pathname: "/sys/in-flight-req",
|
|
5903
|
-
method: "get"
|
|
5904
|
-
});
|
|
5195
|
+
return this.request.get("/sys/in-flight-req");
|
|
5905
5196
|
}
|
|
5906
5197
|
/**
|
|
5907
5198
|
* Returns the initialization status of OpenBao.
|
|
5908
5199
|
*
|
|
5909
5200
|
*/
|
|
5910
5201
|
readInitializationStatus(args) {
|
|
5911
|
-
return this.request.get("/sys/init")
|
|
5912
|
-
name: "openBaoHttp",
|
|
5913
|
-
pathname: "/sys/init",
|
|
5914
|
-
method: "get"
|
|
5915
|
-
});
|
|
5202
|
+
return this.request.get("/sys/init");
|
|
5916
5203
|
}
|
|
5917
5204
|
/**
|
|
5918
5205
|
* Initialize a new OpenBao instance.
|
|
@@ -5920,11 +5207,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5920
5207
|
* @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
5208
|
*/
|
|
5922
5209
|
initializeSystem(args) {
|
|
5923
|
-
const req = this.request.post("/sys/init")
|
|
5924
|
-
name: "openBaoHttp",
|
|
5925
|
-
pathname: "/sys/init",
|
|
5926
|
-
method: "post"
|
|
5927
|
-
});
|
|
5210
|
+
const req = this.request.post("/sys/init");
|
|
5928
5211
|
req.type("application/json");
|
|
5929
5212
|
if (args && "pgp_keys" in args) req.send({ pgp_keys: args["pgp_keys"] });
|
|
5930
5213
|
if (args && "recovery_pgp_keys" in args) req.send({ recovery_pgp_keys: args["recovery_pgp_keys"] });
|
|
@@ -5936,179 +5219,35 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
5936
5219
|
if (args && "stored_shares" in args) req.send({ stored_shares: args["stored_shares"] });
|
|
5937
5220
|
return req;
|
|
5938
5221
|
}
|
|
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
|
-
});
|
|
5222
|
+
encryptionKeyStatus(args) {
|
|
5223
|
+
return this.request.get("/sys/key-status");
|
|
5949
5224
|
}
|
|
5950
5225
|
/**
|
|
5951
|
-
*
|
|
5226
|
+
* Returns the high availability status and current leader instance of OpenBao.
|
|
5952
5227
|
*
|
|
5953
5228
|
*/
|
|
5954
|
-
|
|
5955
|
-
return this.request.get("/sys/
|
|
5956
|
-
name: "openBaoHttp",
|
|
5957
|
-
pathname: "/sys/internal/counters/requests",
|
|
5958
|
-
method: "get"
|
|
5959
|
-
});
|
|
5229
|
+
leaderStatus(args) {
|
|
5230
|
+
return this.request.get("/sys/leader");
|
|
5960
5231
|
}
|
|
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
|
-
});
|
|
5232
|
+
leasesList(args) {
|
|
5233
|
+
return this.request.get("/sys/leases");
|
|
5971
5234
|
}
|
|
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
|
-
});
|
|
5235
|
+
leasesCount(args) {
|
|
5236
|
+
return this.request.get("/sys/leases/count");
|
|
6086
5237
|
}
|
|
6087
5238
|
leasesReadLease(args) {
|
|
6088
|
-
const req = this.request.post("/sys/leases/lookup")
|
|
6089
|
-
name: "openBaoHttp",
|
|
6090
|
-
pathname: "/sys/leases/lookup",
|
|
6091
|
-
method: "post"
|
|
6092
|
-
});
|
|
5239
|
+
const req = this.request.post("/sys/leases/lookup");
|
|
6093
5240
|
req.type("application/json");
|
|
6094
5241
|
if (args && "lease_id" in args) req.send({ lease_id: args["lease_id"] });
|
|
6095
5242
|
return req;
|
|
6096
5243
|
}
|
|
6097
5244
|
leasesLookUp(args) {
|
|
6098
|
-
const req = this.request.get("/sys/leases/lookup/")
|
|
6099
|
-
name: "openBaoHttp",
|
|
6100
|
-
pathname: "/sys/leases/lookup/",
|
|
6101
|
-
method: "get"
|
|
6102
|
-
});
|
|
5245
|
+
const req = this.request.get("/sys/leases/lookup/");
|
|
6103
5246
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6104
5247
|
return req;
|
|
6105
5248
|
}
|
|
6106
5249
|
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
|
-
});
|
|
5250
|
+
const req = this.request.get("/sys/leases/lookup/{prefix}");
|
|
6112
5251
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6113
5252
|
return req;
|
|
6114
5253
|
}
|
|
@@ -6117,11 +5256,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6117
5256
|
*
|
|
6118
5257
|
*/
|
|
6119
5258
|
leasesRenewLease(args) {
|
|
6120
|
-
const req = this.request.post("/sys/leases/renew")
|
|
6121
|
-
name: "openBaoHttp",
|
|
6122
|
-
pathname: "/sys/leases/renew",
|
|
6123
|
-
method: "post"
|
|
6124
|
-
});
|
|
5259
|
+
const req = this.request.post("/sys/leases/renew");
|
|
6125
5260
|
req.type("application/json");
|
|
6126
5261
|
if (args && "increment" in args) req.send({ increment: args["increment"] });
|
|
6127
5262
|
if (args && "lease_id" in args) req.send({ lease_id: args["lease_id"] });
|
|
@@ -6133,11 +5268,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6133
5268
|
*
|
|
6134
5269
|
*/
|
|
6135
5270
|
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
|
-
});
|
|
5271
|
+
const req = this.request.post("/sys/leases/renew/{url_lease_id}");
|
|
6141
5272
|
req.type("application/json");
|
|
6142
5273
|
if (args && "increment" in args) req.send({ increment: args["increment"] });
|
|
6143
5274
|
if (args && "lease_id" in args) req.send({ lease_id: args["lease_id"] });
|
|
@@ -6148,11 +5279,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6148
5279
|
*
|
|
6149
5280
|
*/
|
|
6150
5281
|
leasesRevokeLease(args) {
|
|
6151
|
-
const req = this.request.post("/sys/leases/revoke")
|
|
6152
|
-
name: "openBaoHttp",
|
|
6153
|
-
pathname: "/sys/leases/revoke",
|
|
6154
|
-
method: "post"
|
|
6155
|
-
});
|
|
5282
|
+
const req = this.request.post("/sys/leases/revoke");
|
|
6156
5283
|
req.type("application/json");
|
|
6157
5284
|
if (args && "lease_id" in args) req.send({ lease_id: args["lease_id"] });
|
|
6158
5285
|
if (args && "sync" in args) req.send({ sync: args["sync"] });
|
|
@@ -6167,22 +5294,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6167
5294
|
* 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
5295
|
*/
|
|
6169
5296
|
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
|
-
});
|
|
5297
|
+
return this.request.post("/sys/leases/revoke-force/{prefix}");
|
|
6175
5298
|
}
|
|
6176
5299
|
/**
|
|
6177
5300
|
* Revokes all secrets (via a lease ID prefix) or tokens (via the tokens' path property) generated under a given prefix immediately.
|
|
6178
5301
|
*
|
|
6179
5302
|
*/
|
|
6180
5303
|
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
|
-
});
|
|
5304
|
+
const req = this.request.post("/sys/leases/revoke-prefix/{prefix}");
|
|
6186
5305
|
req.type("application/json");
|
|
6187
5306
|
if (args && "sync" in args) req.send({ sync: args["sync"] });
|
|
6188
5307
|
return req;
|
|
@@ -6192,66 +5311,42 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6192
5311
|
*
|
|
6193
5312
|
*/
|
|
6194
5313
|
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
|
-
});
|
|
5314
|
+
const req = this.request.post("/sys/leases/revoke/{url_lease_id}");
|
|
6200
5315
|
req.type("application/json");
|
|
6201
5316
|
if (args && "lease_id" in args) req.send({ lease_id: args["lease_id"] });
|
|
6202
5317
|
if (args && "sync" in args) req.send({ sync: args["sync"] });
|
|
6203
5318
|
return req;
|
|
6204
5319
|
}
|
|
6205
5320
|
leasesTidy(args) {
|
|
6206
|
-
return this.request.post("/sys/leases/tidy")
|
|
6207
|
-
name: "openBaoHttp",
|
|
6208
|
-
pathname: "/sys/leases/tidy",
|
|
6209
|
-
method: "post"
|
|
6210
|
-
});
|
|
5321
|
+
return this.request.post("/sys/leases/tidy");
|
|
6211
5322
|
}
|
|
6212
5323
|
/**
|
|
6213
5324
|
* Report the locked user count metrics, for this namespace and all child namespaces.
|
|
6214
5325
|
*
|
|
6215
5326
|
*/
|
|
6216
5327
|
lockedUsersList(args) {
|
|
6217
|
-
return this.request.get("/sys/locked-users")
|
|
6218
|
-
name: "openBaoHttp",
|
|
6219
|
-
pathname: "/sys/locked-users",
|
|
6220
|
-
method: "get"
|
|
6221
|
-
});
|
|
5328
|
+
return this.request.get("/sys/locked-users");
|
|
6222
5329
|
}
|
|
6223
5330
|
/**
|
|
6224
5331
|
* Unlocks the user with given mount_accessor and alias_identifier
|
|
6225
5332
|
*
|
|
6226
5333
|
*/
|
|
6227
5334
|
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
|
-
});
|
|
5335
|
+
return this.request.post("/sys/locked-users/{mount_accessor}/unlock/{alias_identifier}");
|
|
6233
5336
|
}
|
|
6234
5337
|
/**
|
|
6235
5338
|
* Read the log level for all existing loggers.
|
|
6236
5339
|
*
|
|
6237
5340
|
*/
|
|
6238
5341
|
loggersReadVerbosityLevel(args) {
|
|
6239
|
-
return this.request.get("/sys/loggers")
|
|
6240
|
-
name: "openBaoHttp",
|
|
6241
|
-
pathname: "/sys/loggers",
|
|
6242
|
-
method: "get"
|
|
6243
|
-
});
|
|
5342
|
+
return this.request.get("/sys/loggers");
|
|
6244
5343
|
}
|
|
6245
5344
|
/**
|
|
6246
5345
|
* Modify the log level for all existing loggers.
|
|
6247
5346
|
*
|
|
6248
5347
|
*/
|
|
6249
5348
|
loggersUpdateVerbosityLevel(args) {
|
|
6250
|
-
const req = this.request.post("/sys/loggers")
|
|
6251
|
-
name: "openBaoHttp",
|
|
6252
|
-
pathname: "/sys/loggers",
|
|
6253
|
-
method: "post"
|
|
6254
|
-
});
|
|
5349
|
+
const req = this.request.post("/sys/loggers");
|
|
6255
5350
|
req.type("application/json");
|
|
6256
5351
|
if (args && "level" in args) req.send({ level: args["level"] });
|
|
6257
5352
|
return req;
|
|
@@ -6261,33 +5356,21 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6261
5356
|
*
|
|
6262
5357
|
*/
|
|
6263
5358
|
loggersRevertVerbosityLevel(args) {
|
|
6264
|
-
return this.request.delete("/sys/loggers")
|
|
6265
|
-
name: "openBaoHttp",
|
|
6266
|
-
pathname: "/sys/loggers",
|
|
6267
|
-
method: "delete"
|
|
6268
|
-
});
|
|
5359
|
+
return this.request.delete("/sys/loggers");
|
|
6269
5360
|
}
|
|
6270
5361
|
/**
|
|
6271
5362
|
* Read the log level for a single logger.
|
|
6272
5363
|
*
|
|
6273
5364
|
*/
|
|
6274
5365
|
loggersReadVerbosityLevelFor(args) {
|
|
6275
|
-
return this.request.get("/sys/loggers/{name}")
|
|
6276
|
-
name: "openBaoHttp",
|
|
6277
|
-
pathname: "/sys/loggers/{name}",
|
|
6278
|
-
method: "get"
|
|
6279
|
-
});
|
|
5366
|
+
return this.request.get("/sys/loggers/{name}");
|
|
6280
5367
|
}
|
|
6281
5368
|
/**
|
|
6282
5369
|
* Modify the log level of a single logger.
|
|
6283
5370
|
*
|
|
6284
5371
|
*/
|
|
6285
5372
|
loggersUpdateVerbosityLevelFor(args) {
|
|
6286
|
-
const req = this.request.post("/sys/loggers/{name}")
|
|
6287
|
-
name: "openBaoHttp",
|
|
6288
|
-
pathname: "/sys/loggers/{name}",
|
|
6289
|
-
method: "post"
|
|
6290
|
-
});
|
|
5373
|
+
const req = this.request.post("/sys/loggers/{name}");
|
|
6291
5374
|
req.type("application/json");
|
|
6292
5375
|
if (args && "level" in args) req.send({ level: args["level"] });
|
|
6293
5376
|
return req;
|
|
@@ -6297,69 +5380,41 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6297
5380
|
*
|
|
6298
5381
|
*/
|
|
6299
5382
|
loggersRevertVerbosityLevelFor(args) {
|
|
6300
|
-
return this.request.delete("/sys/loggers/{name}")
|
|
6301
|
-
name: "openBaoHttp",
|
|
6302
|
-
pathname: "/sys/loggers/{name}",
|
|
6303
|
-
method: "delete"
|
|
6304
|
-
});
|
|
5383
|
+
return this.request.delete("/sys/loggers/{name}");
|
|
6305
5384
|
}
|
|
6306
5385
|
metrics(args) {
|
|
6307
|
-
return this.request.get("/sys/metrics")
|
|
6308
|
-
name: "openBaoHttp",
|
|
6309
|
-
pathname: "/sys/metrics",
|
|
6310
|
-
method: "get"
|
|
6311
|
-
});
|
|
5386
|
+
return this.request.get("/sys/metrics");
|
|
6312
5387
|
}
|
|
6313
5388
|
/**
|
|
6314
5389
|
* Validates the login for the given MFA methods. Upon successful validation, it returns an auth response containing the client token
|
|
6315
5390
|
*
|
|
6316
5391
|
*/
|
|
6317
5392
|
mfaValidate(args) {
|
|
6318
|
-
const req = this.request.post("/sys/mfa/validate")
|
|
6319
|
-
name: "openBaoHttp",
|
|
6320
|
-
pathname: "/sys/mfa/validate",
|
|
6321
|
-
method: "post"
|
|
6322
|
-
});
|
|
5393
|
+
const req = this.request.post("/sys/mfa/validate");
|
|
6323
5394
|
req.type("application/json");
|
|
6324
5395
|
if (args && "mfa_payload" in args) req.send({ mfa_payload: args["mfa_payload"] });
|
|
6325
5396
|
if (args && "mfa_request_id" in args) req.send({ mfa_request_id: args["mfa_request_id"] });
|
|
6326
5397
|
return req;
|
|
6327
5398
|
}
|
|
6328
5399
|
monitor(args) {
|
|
6329
|
-
return this.request.get("/sys/monitor")
|
|
6330
|
-
name: "openBaoHttp",
|
|
6331
|
-
pathname: "/sys/monitor",
|
|
6332
|
-
method: "get"
|
|
6333
|
-
});
|
|
5400
|
+
return this.request.get("/sys/monitor");
|
|
6334
5401
|
}
|
|
6335
5402
|
mountsListSecretsEngines(args) {
|
|
6336
|
-
return this.request.get("/sys/mounts")
|
|
6337
|
-
name: "openBaoHttp",
|
|
6338
|
-
pathname: "/sys/mounts",
|
|
6339
|
-
method: "get"
|
|
6340
|
-
});
|
|
5403
|
+
return this.request.get("/sys/mounts");
|
|
6341
5404
|
}
|
|
6342
5405
|
/**
|
|
6343
5406
|
* Read the configuration of the secret engine at the given path.
|
|
6344
5407
|
*
|
|
6345
5408
|
*/
|
|
6346
5409
|
mountsReadConfiguration(args) {
|
|
6347
|
-
return this.request.get("/sys/mounts/{path}")
|
|
6348
|
-
name: "openBaoHttp",
|
|
6349
|
-
pathname: "/sys/mounts/{path}",
|
|
6350
|
-
method: "get"
|
|
6351
|
-
});
|
|
5410
|
+
return this.request.get("/sys/mounts/{path}");
|
|
6352
5411
|
}
|
|
6353
5412
|
/**
|
|
6354
5413
|
* Enable a new secrets engine at the given path.
|
|
6355
5414
|
*
|
|
6356
5415
|
*/
|
|
6357
5416
|
mountsEnableSecretsEngine(args) {
|
|
6358
|
-
const req = this.request.post("/sys/mounts/{path}")
|
|
6359
|
-
name: "openBaoHttp",
|
|
6360
|
-
pathname: "/sys/mounts/{path}",
|
|
6361
|
-
method: "post"
|
|
6362
|
-
});
|
|
5417
|
+
const req = this.request.post("/sys/mounts/{path}");
|
|
6363
5418
|
req.type("application/json");
|
|
6364
5419
|
if (args && "config" in args) req.send({ config: args["config"] });
|
|
6365
5420
|
if (args && "description" in args) req.send({ description: args["description"] });
|
|
@@ -6377,25 +5432,13 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6377
5432
|
*
|
|
6378
5433
|
*/
|
|
6379
5434
|
mountsDisableSecretsEngine(args) {
|
|
6380
|
-
return this.request.delete("/sys/mounts/{path}")
|
|
6381
|
-
name: "openBaoHttp",
|
|
6382
|
-
pathname: "/sys/mounts/{path}",
|
|
6383
|
-
method: "delete"
|
|
6384
|
-
});
|
|
5435
|
+
return this.request.delete("/sys/mounts/{path}");
|
|
6385
5436
|
}
|
|
6386
5437
|
mountsReadTuningInformation(args) {
|
|
6387
|
-
return this.request.get("/sys/mounts/{path}/tune")
|
|
6388
|
-
name: "openBaoHttp",
|
|
6389
|
-
pathname: "/sys/mounts/{path}/tune",
|
|
6390
|
-
method: "get"
|
|
6391
|
-
});
|
|
5438
|
+
return this.request.get("/sys/mounts/{path}/tune");
|
|
6392
5439
|
}
|
|
6393
5440
|
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
|
-
});
|
|
5441
|
+
const req = this.request.post("/sys/mounts/{path}/tune");
|
|
6399
5442
|
req.type("application/json");
|
|
6400
5443
|
if (args && "allowed_managed_keys" in args) req.send({ allowed_managed_keys: args["allowed_managed_keys"] });
|
|
6401
5444
|
if (args && "allowed_response_headers" in args) req.send({ allowed_response_headers: args["allowed_response_headers"] });
|
|
@@ -6417,11 +5460,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6417
5460
|
*
|
|
6418
5461
|
*/
|
|
6419
5462
|
namespacesListNamespaces(args) {
|
|
6420
|
-
const req = this.request.get("/sys/namespaces")
|
|
6421
|
-
name: "openBaoHttp",
|
|
6422
|
-
pathname: "/sys/namespaces",
|
|
6423
|
-
method: "get"
|
|
6424
|
-
});
|
|
5463
|
+
const req = this.request.get("/sys/namespaces");
|
|
6425
5464
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6426
5465
|
return req;
|
|
6427
5466
|
}
|
|
@@ -6430,11 +5469,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6430
5469
|
*
|
|
6431
5470
|
*/
|
|
6432
5471
|
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
|
-
});
|
|
5472
|
+
const req = this.request.post("/sys/namespaces/api-lock/lock");
|
|
6438
5473
|
req.type("application/json");
|
|
6439
5474
|
if (args && "path" in args) req.send({ path: args["path"] });
|
|
6440
5475
|
return req;
|
|
@@ -6444,22 +5479,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6444
5479
|
*
|
|
6445
5480
|
*/
|
|
6446
5481
|
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
|
-
});
|
|
5482
|
+
return this.request.post("/sys/namespaces/api-lock/lock/{path}");
|
|
6452
5483
|
}
|
|
6453
5484
|
/**
|
|
6454
5485
|
* Unlock a namespace.
|
|
6455
5486
|
*
|
|
6456
5487
|
*/
|
|
6457
5488
|
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
|
-
});
|
|
5489
|
+
const req = this.request.post("/sys/namespaces/api-lock/unlock");
|
|
6463
5490
|
req.type("application/json");
|
|
6464
5491
|
if (args && "path" in args) req.send({ path: args["path"] });
|
|
6465
5492
|
if (args && "unlock_key" in args) req.send({ unlock_key: args["unlock_key"] });
|
|
@@ -6470,11 +5497,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6470
5497
|
*
|
|
6471
5498
|
*/
|
|
6472
5499
|
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
|
-
});
|
|
5500
|
+
const req = this.request.post("/sys/namespaces/api-lock/unlock/{path}");
|
|
6478
5501
|
req.type("application/json");
|
|
6479
5502
|
if (args && "unlock_key" in args) req.send({ unlock_key: args["unlock_key"] });
|
|
6480
5503
|
return req;
|
|
@@ -6484,22 +5507,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6484
5507
|
*
|
|
6485
5508
|
*/
|
|
6486
5509
|
namespacesReadNamespacesPath(args) {
|
|
6487
|
-
return this.request.get("/sys/namespaces/{path}")
|
|
6488
|
-
name: "openBaoHttp",
|
|
6489
|
-
pathname: "/sys/namespaces/{path}",
|
|
6490
|
-
method: "get"
|
|
6491
|
-
});
|
|
5510
|
+
return this.request.get("/sys/namespaces/{path}");
|
|
6492
5511
|
}
|
|
6493
5512
|
/**
|
|
6494
5513
|
* Create or update a namespace.
|
|
6495
5514
|
*
|
|
6496
5515
|
*/
|
|
6497
5516
|
namespacesWriteNamespacesPath(args) {
|
|
6498
|
-
const req = this.request.post("/sys/namespaces/{path}")
|
|
6499
|
-
name: "openBaoHttp",
|
|
6500
|
-
pathname: "/sys/namespaces/{path}",
|
|
6501
|
-
method: "post"
|
|
6502
|
-
});
|
|
5517
|
+
const req = this.request.post("/sys/namespaces/{path}");
|
|
6503
5518
|
req.type("application/json");
|
|
6504
5519
|
if (args && "custom_metadata" in args) req.send({ custom_metadata: args["custom_metadata"] });
|
|
6505
5520
|
return req;
|
|
@@ -6509,40 +5524,24 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6509
5524
|
*
|
|
6510
5525
|
*/
|
|
6511
5526
|
namespacesDeleteNamespacesPath(args) {
|
|
6512
|
-
return this.request.delete("/sys/namespaces/{path}")
|
|
6513
|
-
name: "openBaoHttp",
|
|
6514
|
-
pathname: "/sys/namespaces/{path}",
|
|
6515
|
-
method: "delete"
|
|
6516
|
-
});
|
|
5527
|
+
return this.request.delete("/sys/namespaces/{path}");
|
|
6517
5528
|
}
|
|
6518
5529
|
pluginsCatalogListPlugins(args) {
|
|
6519
|
-
return this.request.get("/sys/plugins/catalog")
|
|
6520
|
-
name: "openBaoHttp",
|
|
6521
|
-
pathname: "/sys/plugins/catalog",
|
|
6522
|
-
method: "get"
|
|
6523
|
-
});
|
|
5530
|
+
return this.request.get("/sys/plugins/catalog");
|
|
6524
5531
|
}
|
|
6525
5532
|
/**
|
|
6526
5533
|
* Return the configuration data for the plugin with the given name.
|
|
6527
5534
|
*
|
|
6528
5535
|
*/
|
|
6529
5536
|
pluginsCatalogReadPluginConfiguration(args) {
|
|
6530
|
-
return this.request.get("/sys/plugins/catalog/{name}")
|
|
6531
|
-
name: "openBaoHttp",
|
|
6532
|
-
pathname: "/sys/plugins/catalog/{name}",
|
|
6533
|
-
method: "get"
|
|
6534
|
-
});
|
|
5537
|
+
return this.request.get("/sys/plugins/catalog/{name}");
|
|
6535
5538
|
}
|
|
6536
5539
|
/**
|
|
6537
5540
|
* Register a new plugin, or updates an existing one with the supplied name.
|
|
6538
5541
|
*
|
|
6539
5542
|
*/
|
|
6540
5543
|
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
|
-
});
|
|
5544
|
+
const req = this.request.post("/sys/plugins/catalog/{name}");
|
|
6546
5545
|
req.type("application/json");
|
|
6547
5546
|
if (args && "args" in args) req.send({ args: args["args"] });
|
|
6548
5547
|
if (args && "command" in args) req.send({ command: args["command"] });
|
|
@@ -6558,22 +5557,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6558
5557
|
*
|
|
6559
5558
|
*/
|
|
6560
5559
|
pluginsCatalogRemovePlugin(args) {
|
|
6561
|
-
return this.request.delete("/sys/plugins/catalog/{name}")
|
|
6562
|
-
name: "openBaoHttp",
|
|
6563
|
-
pathname: "/sys/plugins/catalog/{name}",
|
|
6564
|
-
method: "delete"
|
|
6565
|
-
});
|
|
5560
|
+
return this.request.delete("/sys/plugins/catalog/{name}");
|
|
6566
5561
|
}
|
|
6567
5562
|
/**
|
|
6568
5563
|
* List the plugins in the catalog.
|
|
6569
5564
|
*
|
|
6570
5565
|
*/
|
|
6571
5566
|
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
|
-
});
|
|
5567
|
+
const req = this.request.get("/sys/plugins/catalog/{type}");
|
|
6577
5568
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6578
5569
|
return req;
|
|
6579
5570
|
}
|
|
@@ -6582,22 +5573,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6582
5573
|
*
|
|
6583
5574
|
*/
|
|
6584
5575
|
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
|
-
});
|
|
5576
|
+
return this.request.get("/sys/plugins/catalog/{type}/{name}");
|
|
6590
5577
|
}
|
|
6591
5578
|
/**
|
|
6592
5579
|
* Register a new plugin, or updates an existing one with the supplied name.
|
|
6593
5580
|
*
|
|
6594
5581
|
*/
|
|
6595
5582
|
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
|
-
});
|
|
5583
|
+
const req = this.request.post("/sys/plugins/catalog/{type}/{name}");
|
|
6601
5584
|
req.type("application/json");
|
|
6602
5585
|
if (args && "args" in args) req.send({ args: args["args"] });
|
|
6603
5586
|
if (args && "command" in args) req.send({ command: args["command"] });
|
|
@@ -6612,11 +5595,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6612
5595
|
*
|
|
6613
5596
|
*/
|
|
6614
5597
|
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
|
-
});
|
|
5598
|
+
return this.request.delete("/sys/plugins/catalog/{type}/{name}");
|
|
6620
5599
|
}
|
|
6621
5600
|
/**
|
|
6622
5601
|
* Reload mounted plugin backends.
|
|
@@ -6624,11 +5603,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6624
5603
|
* @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
5604
|
*/
|
|
6626
5605
|
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
|
-
});
|
|
5606
|
+
const req = this.request.post("/sys/plugins/reload/backend");
|
|
6632
5607
|
req.type("application/json");
|
|
6633
5608
|
if (args && "mounts" in args) req.send({ mounts: args["mounts"] });
|
|
6634
5609
|
if (args && "plugin" in args) req.send({ plugin: args["plugin"] });
|
|
@@ -6636,11 +5611,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6636
5611
|
return req;
|
|
6637
5612
|
}
|
|
6638
5613
|
policiesListAclPolicies(args) {
|
|
6639
|
-
const req = this.request.get("/sys/policies/acl")
|
|
6640
|
-
name: "openBaoHttp",
|
|
6641
|
-
pathname: "/sys/policies/acl",
|
|
6642
|
-
method: "get"
|
|
6643
|
-
});
|
|
5614
|
+
const req = this.request.get("/sys/policies/acl");
|
|
6644
5615
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6645
5616
|
return req;
|
|
6646
5617
|
}
|
|
@@ -6649,11 +5620,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6649
5620
|
*
|
|
6650
5621
|
*/
|
|
6651
5622
|
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
|
-
});
|
|
5623
|
+
const req = this.request.get("/sys/policies/acl/{name}");
|
|
6657
5624
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6658
5625
|
return req;
|
|
6659
5626
|
}
|
|
@@ -6662,11 +5629,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6662
5629
|
*
|
|
6663
5630
|
*/
|
|
6664
5631
|
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
|
-
});
|
|
5632
|
+
const req = this.request.post("/sys/policies/acl/{name}");
|
|
6670
5633
|
req.type("application/json");
|
|
6671
5634
|
if (args && "cas" in args) req.send({ cas: args["cas"] });
|
|
6672
5635
|
if (args && "cas_required" in args) req.send({ cas_required: args["cas_required"] });
|
|
@@ -6680,22 +5643,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6680
5643
|
*
|
|
6681
5644
|
*/
|
|
6682
5645
|
policiesDeleteAclPolicy(args) {
|
|
6683
|
-
return this.request.delete("/sys/policies/acl/{name}")
|
|
6684
|
-
name: "openBaoHttp",
|
|
6685
|
-
pathname: "/sys/policies/acl/{name}",
|
|
6686
|
-
method: "delete"
|
|
6687
|
-
});
|
|
5646
|
+
return this.request.delete("/sys/policies/acl/{name}");
|
|
6688
5647
|
}
|
|
6689
5648
|
/**
|
|
6690
5649
|
* List ACL policies with detailed information.
|
|
6691
5650
|
*
|
|
6692
5651
|
*/
|
|
6693
5652
|
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
|
-
});
|
|
5653
|
+
const req = this.request.get("/sys/policies/detailed/acl");
|
|
6699
5654
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6700
5655
|
return req;
|
|
6701
5656
|
}
|
|
@@ -6704,11 +5659,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6704
5659
|
*
|
|
6705
5660
|
*/
|
|
6706
5661
|
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
|
-
});
|
|
5662
|
+
const req = this.request.get("/sys/policies/detailed/acl/{name}");
|
|
6712
5663
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6713
5664
|
return req;
|
|
6714
5665
|
}
|
|
@@ -6717,11 +5668,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6717
5668
|
*
|
|
6718
5669
|
*/
|
|
6719
5670
|
policiesListPasswordPolicies(args) {
|
|
6720
|
-
const req = this.request.get("/sys/policies/password")
|
|
6721
|
-
name: "openBaoHttp",
|
|
6722
|
-
pathname: "/sys/policies/password",
|
|
6723
|
-
method: "get"
|
|
6724
|
-
});
|
|
5671
|
+
const req = this.request.get("/sys/policies/password");
|
|
6725
5672
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6726
5673
|
return req;
|
|
6727
5674
|
}
|
|
@@ -6730,22 +5677,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6730
5677
|
*
|
|
6731
5678
|
*/
|
|
6732
5679
|
policiesReadPasswordPolicy(args) {
|
|
6733
|
-
return this.request.get("/sys/policies/password/{name}")
|
|
6734
|
-
name: "openBaoHttp",
|
|
6735
|
-
pathname: "/sys/policies/password/{name}",
|
|
6736
|
-
method: "get"
|
|
6737
|
-
});
|
|
5680
|
+
return this.request.get("/sys/policies/password/{name}");
|
|
6738
5681
|
}
|
|
6739
5682
|
/**
|
|
6740
5683
|
* Add a new or update an existing password policy.
|
|
6741
5684
|
*
|
|
6742
5685
|
*/
|
|
6743
5686
|
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
|
-
});
|
|
5687
|
+
const req = this.request.post("/sys/policies/password/{name}");
|
|
6749
5688
|
req.type("application/json");
|
|
6750
5689
|
if (args && "policy" in args) req.send({ policy: args["policy"] });
|
|
6751
5690
|
return req;
|
|
@@ -6755,222 +5694,25 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6755
5694
|
*
|
|
6756
5695
|
*/
|
|
6757
5696
|
policiesDeletePasswordPolicy(args) {
|
|
6758
|
-
return this.request.delete("/sys/policies/password/{name}")
|
|
6759
|
-
name: "openBaoHttp",
|
|
6760
|
-
pathname: "/sys/policies/password/{name}",
|
|
6761
|
-
method: "delete"
|
|
6762
|
-
});
|
|
5697
|
+
return this.request.delete("/sys/policies/password/{name}");
|
|
6763
5698
|
}
|
|
6764
5699
|
/**
|
|
6765
5700
|
* Generate a password from an existing password policy.
|
|
6766
5701
|
*
|
|
6767
5702
|
*/
|
|
6768
5703
|
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
|
-
});
|
|
5704
|
+
return this.request.get("/sys/policies/password/{name}/generate");
|
|
6774
5705
|
}
|
|
6775
5706
|
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
|
-
});
|
|
5707
|
+
const req = this.request.get("/sys/policy");
|
|
6794
5708
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6795
5709
|
return req;
|
|
6796
5710
|
}
|
|
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
5711
|
rateLimitQuotasReadConfiguration(args) {
|
|
6962
|
-
return this.request.get("/sys/quotas/config")
|
|
6963
|
-
name: "openBaoHttp",
|
|
6964
|
-
pathname: "/sys/quotas/config",
|
|
6965
|
-
method: "get"
|
|
6966
|
-
});
|
|
5712
|
+
return this.request.get("/sys/quotas/config");
|
|
6967
5713
|
}
|
|
6968
5714
|
rateLimitQuotasConfigure(args) {
|
|
6969
|
-
const req = this.request.post("/sys/quotas/config")
|
|
6970
|
-
name: "openBaoHttp",
|
|
6971
|
-
pathname: "/sys/quotas/config",
|
|
6972
|
-
method: "post"
|
|
6973
|
-
});
|
|
5715
|
+
const req = this.request.post("/sys/quotas/config");
|
|
6974
5716
|
req.type("application/json");
|
|
6975
5717
|
if (args && "enable_rate_limit_audit_logging" in args) req.send({ enable_rate_limit_audit_logging: args["enable_rate_limit_audit_logging"] });
|
|
6976
5718
|
if (args && "enable_rate_limit_response_headers" in args) req.send({ enable_rate_limit_response_headers: args["enable_rate_limit_response_headers"] });
|
|
@@ -6978,27 +5720,15 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
6978
5720
|
return req;
|
|
6979
5721
|
}
|
|
6980
5722
|
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
|
-
});
|
|
5723
|
+
const req = this.request.get("/sys/quotas/rate-limit");
|
|
6986
5724
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
6987
5725
|
return req;
|
|
6988
5726
|
}
|
|
6989
5727
|
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
|
-
});
|
|
5728
|
+
return this.request.get("/sys/quotas/rate-limit/{name}");
|
|
6995
5729
|
}
|
|
6996
5730
|
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
|
-
});
|
|
5731
|
+
const req = this.request.post("/sys/quotas/rate-limit/{name}");
|
|
7002
5732
|
req.type("application/json");
|
|
7003
5733
|
if (args && "block_interval" in args) req.send({ block_interval: args["block_interval"] });
|
|
7004
5734
|
if (args && "inheritable" in args) req.send({ inheritable: args["inheritable"] });
|
|
@@ -7010,44 +5740,28 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7010
5740
|
return req;
|
|
7011
5741
|
}
|
|
7012
5742
|
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
|
-
});
|
|
5743
|
+
return this.request.delete("/sys/quotas/rate-limit/{name}");
|
|
7018
5744
|
}
|
|
7019
5745
|
/**
|
|
7020
5746
|
* Return the backup copy of PGP-encrypted unseal keys.
|
|
7021
5747
|
*
|
|
7022
5748
|
*/
|
|
7023
5749
|
rekeyReadBackupKey(args) {
|
|
7024
|
-
return this.request.get("/sys/rekey/backup")
|
|
7025
|
-
name: "openBaoHttp",
|
|
7026
|
-
pathname: "/sys/rekey/backup",
|
|
7027
|
-
method: "get"
|
|
7028
|
-
});
|
|
5750
|
+
return this.request.get("/sys/rekey/backup");
|
|
7029
5751
|
}
|
|
7030
5752
|
/**
|
|
7031
5753
|
* Delete the backup copy of PGP-encrypted unseal keys.
|
|
7032
5754
|
*
|
|
7033
5755
|
*/
|
|
7034
5756
|
rekeyDeleteBackupKey(args) {
|
|
7035
|
-
return this.request.delete("/sys/rekey/backup")
|
|
7036
|
-
name: "openBaoHttp",
|
|
7037
|
-
pathname: "/sys/rekey/backup",
|
|
7038
|
-
method: "delete"
|
|
7039
|
-
});
|
|
5757
|
+
return this.request.delete("/sys/rekey/backup");
|
|
7040
5758
|
}
|
|
7041
5759
|
/**
|
|
7042
5760
|
* Reads the configuration and progress of the current rekey attempt.
|
|
7043
5761
|
*
|
|
7044
5762
|
*/
|
|
7045
5763
|
rekeyAttemptReadProgress(args) {
|
|
7046
|
-
return this.request.get("/sys/rekey/init")
|
|
7047
|
-
name: "openBaoHttp",
|
|
7048
|
-
pathname: "/sys/rekey/init",
|
|
7049
|
-
method: "get"
|
|
7050
|
-
});
|
|
5764
|
+
return this.request.get("/sys/rekey/init");
|
|
7051
5765
|
}
|
|
7052
5766
|
/**
|
|
7053
5767
|
* Initializes a new rekey attempt.
|
|
@@ -7055,11 +5769,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7055
5769
|
* @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
5770
|
*/
|
|
7057
5771
|
rekeyAttemptInitialize(args) {
|
|
7058
|
-
const req = this.request.post("/sys/rekey/init")
|
|
7059
|
-
name: "openBaoHttp",
|
|
7060
|
-
pathname: "/sys/rekey/init",
|
|
7061
|
-
method: "post"
|
|
7062
|
-
});
|
|
5772
|
+
const req = this.request.post("/sys/rekey/init");
|
|
7063
5773
|
req.type("application/json");
|
|
7064
5774
|
if (args && "backup" in args) req.send({ backup: args["backup"] });
|
|
7065
5775
|
if (args && "pgp_keys" in args) req.send({ pgp_keys: args["pgp_keys"] });
|
|
@@ -7074,36 +5784,20 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7074
5784
|
* @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
5785
|
*/
|
|
7076
5786
|
rekeyAttemptCancel(args) {
|
|
7077
|
-
return this.request.delete("/sys/rekey/init")
|
|
7078
|
-
name: "openBaoHttp",
|
|
7079
|
-
pathname: "/sys/rekey/init",
|
|
7080
|
-
method: "delete"
|
|
7081
|
-
});
|
|
5787
|
+
return this.request.delete("/sys/rekey/init");
|
|
7082
5788
|
}
|
|
7083
5789
|
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
|
-
});
|
|
5790
|
+
return this.request.get("/sys/rekey/recovery-key-backup");
|
|
7089
5791
|
}
|
|
7090
5792
|
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
|
-
});
|
|
5793
|
+
return this.request.delete("/sys/rekey/recovery-key-backup");
|
|
7096
5794
|
}
|
|
7097
5795
|
/**
|
|
7098
5796
|
* Enter a single unseal key share to progress the rekey of the OpenBao.
|
|
7099
5797
|
*
|
|
7100
5798
|
*/
|
|
7101
5799
|
rekeyAttemptUpdate(args) {
|
|
7102
|
-
const req = this.request.post("/sys/rekey/update")
|
|
7103
|
-
name: "openBaoHttp",
|
|
7104
|
-
pathname: "/sys/rekey/update",
|
|
7105
|
-
method: "post"
|
|
7106
|
-
});
|
|
5800
|
+
const req = this.request.post("/sys/rekey/update");
|
|
7107
5801
|
req.type("application/json");
|
|
7108
5802
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
7109
5803
|
if (args && "nonce" in args) req.send({ nonce: args["nonce"] });
|
|
@@ -7114,22 +5808,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7114
5808
|
*
|
|
7115
5809
|
*/
|
|
7116
5810
|
rekeyVerificationReadProgress(args) {
|
|
7117
|
-
return this.request.get("/sys/rekey/verify")
|
|
7118
|
-
name: "openBaoHttp",
|
|
7119
|
-
pathname: "/sys/rekey/verify",
|
|
7120
|
-
method: "get"
|
|
7121
|
-
});
|
|
5811
|
+
return this.request.get("/sys/rekey/verify");
|
|
7122
5812
|
}
|
|
7123
5813
|
/**
|
|
7124
5814
|
* Enter a single new key share to progress the rekey verification operation.
|
|
7125
5815
|
*
|
|
7126
5816
|
*/
|
|
7127
5817
|
rekeyVerificationUpdate(args) {
|
|
7128
|
-
const req = this.request.post("/sys/rekey/verify")
|
|
7129
|
-
name: "openBaoHttp",
|
|
7130
|
-
pathname: "/sys/rekey/verify",
|
|
7131
|
-
method: "post"
|
|
7132
|
-
});
|
|
5818
|
+
const req = this.request.post("/sys/rekey/verify");
|
|
7133
5819
|
req.type("application/json");
|
|
7134
5820
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
7135
5821
|
if (args && "nonce" in args) req.send({ nonce: args["nonce"] });
|
|
@@ -7141,22 +5827,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7141
5827
|
* @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
5828
|
*/
|
|
7143
5829
|
rekeyVerificationCancel(args) {
|
|
7144
|
-
return this.request.delete("/sys/rekey/verify")
|
|
7145
|
-
name: "openBaoHttp",
|
|
7146
|
-
pathname: "/sys/rekey/verify",
|
|
7147
|
-
method: "delete"
|
|
7148
|
-
});
|
|
5830
|
+
return this.request.delete("/sys/rekey/verify");
|
|
7149
5831
|
}
|
|
7150
5832
|
/**
|
|
7151
5833
|
* Initiate a mount migration
|
|
7152
5834
|
*
|
|
7153
5835
|
*/
|
|
7154
5836
|
remount(args) {
|
|
7155
|
-
const req = this.request.post("/sys/remount")
|
|
7156
|
-
name: "openBaoHttp",
|
|
7157
|
-
pathname: "/sys/remount",
|
|
7158
|
-
method: "post"
|
|
7159
|
-
});
|
|
5837
|
+
const req = this.request.post("/sys/remount");
|
|
7160
5838
|
req.type("application/json");
|
|
7161
5839
|
if (args && "from" in args) req.send({ from: args["from"] });
|
|
7162
5840
|
if (args && "to" in args) req.send({ to: args["to"] });
|
|
@@ -7167,122 +5845,16 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7167
5845
|
*
|
|
7168
5846
|
*/
|
|
7169
5847
|
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;
|
|
5848
|
+
return this.request.get("/sys/remount/status/{migration_id}");
|
|
7265
5849
|
}
|
|
7266
5850
|
encryptionKeyRotate(args) {
|
|
7267
|
-
return this.request.post("/sys/rotate")
|
|
7268
|
-
name: "openBaoHttp",
|
|
7269
|
-
pathname: "/sys/rotate",
|
|
7270
|
-
method: "post"
|
|
7271
|
-
});
|
|
5851
|
+
return this.request.post("/sys/rotate");
|
|
7272
5852
|
}
|
|
7273
5853
|
encryptionKeyReadRotationConfiguration(args) {
|
|
7274
|
-
return this.request.get("/sys/rotate/config")
|
|
7275
|
-
name: "openBaoHttp",
|
|
7276
|
-
pathname: "/sys/rotate/config",
|
|
7277
|
-
method: "get"
|
|
7278
|
-
});
|
|
5854
|
+
return this.request.get("/sys/rotate/config");
|
|
7279
5855
|
}
|
|
7280
5856
|
encryptionKeyConfigureRotationConfiguration(args) {
|
|
7281
|
-
const req = this.request.post("/sys/rotate/config")
|
|
7282
|
-
name: "openBaoHttp",
|
|
7283
|
-
pathname: "/sys/rotate/config",
|
|
7284
|
-
method: "post"
|
|
7285
|
-
});
|
|
5857
|
+
const req = this.request.post("/sys/rotate/config");
|
|
7286
5858
|
req.type("application/json");
|
|
7287
5859
|
if (args && "enabled" in args) req.send({ enabled: args["enabled"] });
|
|
7288
5860
|
if (args && "interval" in args) req.send({ interval: args["interval"] });
|
|
@@ -7290,25 +5862,13 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7290
5862
|
return req;
|
|
7291
5863
|
}
|
|
7292
5864
|
encryptionKeyRotateRotateKeyring(args) {
|
|
7293
|
-
return this.request.post("/sys/rotate/keyring")
|
|
7294
|
-
name: "openBaoHttp",
|
|
7295
|
-
pathname: "/sys/rotate/keyring",
|
|
7296
|
-
method: "post"
|
|
7297
|
-
});
|
|
5865
|
+
return this.request.post("/sys/rotate/keyring");
|
|
7298
5866
|
}
|
|
7299
5867
|
encryptionKeyReadRotateKeyringConfig(args) {
|
|
7300
|
-
return this.request.get("/sys/rotate/keyring/config")
|
|
7301
|
-
name: "openBaoHttp",
|
|
7302
|
-
pathname: "/sys/rotate/keyring/config",
|
|
7303
|
-
method: "get"
|
|
7304
|
-
});
|
|
5868
|
+
return this.request.get("/sys/rotate/keyring/config");
|
|
7305
5869
|
}
|
|
7306
5870
|
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
|
-
});
|
|
5871
|
+
const req = this.request.post("/sys/rotate/keyring/config");
|
|
7312
5872
|
req.type("application/json");
|
|
7313
5873
|
if (args && "enabled" in args) req.send({ enabled: args["enabled"] });
|
|
7314
5874
|
if (args && "interval" in args) req.send({ interval: args["interval"] });
|
|
@@ -7320,33 +5880,21 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7320
5880
|
*
|
|
7321
5881
|
*/
|
|
7322
5882
|
rotateReadRotateRecoveryBackup(args) {
|
|
7323
|
-
return this.request.get("/sys/rotate/recovery/backup")
|
|
7324
|
-
name: "openBaoHttp",
|
|
7325
|
-
pathname: "/sys/rotate/recovery/backup",
|
|
7326
|
-
method: "get"
|
|
7327
|
-
});
|
|
5883
|
+
return this.request.get("/sys/rotate/recovery/backup");
|
|
7328
5884
|
}
|
|
7329
5885
|
/**
|
|
7330
5886
|
* Delete the backup copy of PGP-encrypted unseal keys.
|
|
7331
5887
|
*
|
|
7332
5888
|
*/
|
|
7333
5889
|
rotateDeleteRotateRecoveryBackup(args) {
|
|
7334
|
-
return this.request.delete("/sys/rotate/recovery/backup")
|
|
7335
|
-
name: "openBaoHttp",
|
|
7336
|
-
pathname: "/sys/rotate/recovery/backup",
|
|
7337
|
-
method: "delete"
|
|
7338
|
-
});
|
|
5890
|
+
return this.request.delete("/sys/rotate/recovery/backup");
|
|
7339
5891
|
}
|
|
7340
5892
|
/**
|
|
7341
5893
|
* Reads the configuration and progress of the current root rotate attempt.
|
|
7342
5894
|
*
|
|
7343
5895
|
*/
|
|
7344
5896
|
rotateAttemptReadRotateRecoveryInit(args) {
|
|
7345
|
-
return this.request.get("/sys/rotate/recovery/init")
|
|
7346
|
-
name: "openBaoHttp",
|
|
7347
|
-
pathname: "/sys/rotate/recovery/init",
|
|
7348
|
-
method: "get"
|
|
7349
|
-
});
|
|
5897
|
+
return this.request.get("/sys/rotate/recovery/init");
|
|
7350
5898
|
}
|
|
7351
5899
|
/**
|
|
7352
5900
|
* Initializes a new root rotate attempt.
|
|
@@ -7354,11 +5902,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7354
5902
|
* @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
5903
|
*/
|
|
7356
5904
|
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
|
-
});
|
|
5905
|
+
const req = this.request.post("/sys/rotate/recovery/init");
|
|
7362
5906
|
req.type("application/json");
|
|
7363
5907
|
if (args && "backup" in args) req.send({ backup: args["backup"] });
|
|
7364
5908
|
if (args && "pgp_keys" in args) req.send({ pgp_keys: args["pgp_keys"] });
|
|
@@ -7373,22 +5917,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7373
5917
|
* @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
5918
|
*/
|
|
7375
5919
|
rotateAttemptCancelRotateRecoveryInit(args) {
|
|
7376
|
-
return this.request.delete("/sys/rotate/recovery/init")
|
|
7377
|
-
name: "openBaoHttp",
|
|
7378
|
-
pathname: "/sys/rotate/recovery/init",
|
|
7379
|
-
method: "delete"
|
|
7380
|
-
});
|
|
5920
|
+
return this.request.delete("/sys/rotate/recovery/init");
|
|
7381
5921
|
}
|
|
7382
5922
|
/**
|
|
7383
5923
|
* Enter a single unseal key share to progress the rotation of the root key of OpenBao.
|
|
7384
5924
|
*
|
|
7385
5925
|
*/
|
|
7386
5926
|
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
|
-
});
|
|
5927
|
+
const req = this.request.post("/sys/rotate/recovery/update");
|
|
7392
5928
|
req.type("application/json");
|
|
7393
5929
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
7394
5930
|
if (args && "nonce" in args) req.send({ nonce: args["nonce"] });
|
|
@@ -7399,22 +5935,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7399
5935
|
*
|
|
7400
5936
|
*/
|
|
7401
5937
|
rotateVerificationReadRotateRecoveryVerify(args) {
|
|
7402
|
-
return this.request.get("/sys/rotate/recovery/verify")
|
|
7403
|
-
name: "openBaoHttp",
|
|
7404
|
-
pathname: "/sys/rotate/recovery/verify",
|
|
7405
|
-
method: "get"
|
|
7406
|
-
});
|
|
5938
|
+
return this.request.get("/sys/rotate/recovery/verify");
|
|
7407
5939
|
}
|
|
7408
5940
|
/**
|
|
7409
5941
|
* Enter a single new key share to progress the rotation verification operation.
|
|
7410
5942
|
*
|
|
7411
5943
|
*/
|
|
7412
5944
|
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
|
-
});
|
|
5945
|
+
const req = this.request.post("/sys/rotate/recovery/verify");
|
|
7418
5946
|
req.type("application/json");
|
|
7419
5947
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
7420
5948
|
if (args && "nonce" in args) req.send({ nonce: args["nonce"] });
|
|
@@ -7426,51 +5954,31 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7426
5954
|
* @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
5955
|
*/
|
|
7428
5956
|
rotateVerificationCancelRotateRecoveryVerify(args) {
|
|
7429
|
-
return this.request.delete("/sys/rotate/recovery/verify")
|
|
7430
|
-
name: "openBaoHttp",
|
|
7431
|
-
pathname: "/sys/rotate/recovery/verify",
|
|
7432
|
-
method: "delete"
|
|
7433
|
-
});
|
|
5957
|
+
return this.request.delete("/sys/rotate/recovery/verify");
|
|
7434
5958
|
}
|
|
7435
5959
|
rootKeyRotate(args) {
|
|
7436
|
-
return this.request.post("/sys/rotate/root")
|
|
7437
|
-
name: "openBaoHttp",
|
|
7438
|
-
pathname: "/sys/rotate/root",
|
|
7439
|
-
method: "post"
|
|
7440
|
-
});
|
|
5960
|
+
return this.request.post("/sys/rotate/root");
|
|
7441
5961
|
}
|
|
7442
5962
|
/**
|
|
7443
5963
|
* Return the backup copy of PGP-encrypted unseal keys.
|
|
7444
5964
|
*
|
|
7445
5965
|
*/
|
|
7446
5966
|
rotateReadBackupKey(args) {
|
|
7447
|
-
return this.request.get("/sys/rotate/root/backup")
|
|
7448
|
-
name: "openBaoHttp",
|
|
7449
|
-
pathname: "/sys/rotate/root/backup",
|
|
7450
|
-
method: "get"
|
|
7451
|
-
});
|
|
5967
|
+
return this.request.get("/sys/rotate/root/backup");
|
|
7452
5968
|
}
|
|
7453
5969
|
/**
|
|
7454
5970
|
* Delete the backup copy of PGP-encrypted unseal keys.
|
|
7455
5971
|
*
|
|
7456
5972
|
*/
|
|
7457
5973
|
rotateDeleteBackupKey(args) {
|
|
7458
|
-
return this.request.delete("/sys/rotate/root/backup")
|
|
7459
|
-
name: "openBaoHttp",
|
|
7460
|
-
pathname: "/sys/rotate/root/backup",
|
|
7461
|
-
method: "delete"
|
|
7462
|
-
});
|
|
5974
|
+
return this.request.delete("/sys/rotate/root/backup");
|
|
7463
5975
|
}
|
|
7464
5976
|
/**
|
|
7465
5977
|
* Reads the configuration and progress of the current root rotate attempt.
|
|
7466
5978
|
*
|
|
7467
5979
|
*/
|
|
7468
5980
|
rotateAttemptReadProgress(args) {
|
|
7469
|
-
return this.request.get("/sys/rotate/root/init")
|
|
7470
|
-
name: "openBaoHttp",
|
|
7471
|
-
pathname: "/sys/rotate/root/init",
|
|
7472
|
-
method: "get"
|
|
7473
|
-
});
|
|
5981
|
+
return this.request.get("/sys/rotate/root/init");
|
|
7474
5982
|
}
|
|
7475
5983
|
/**
|
|
7476
5984
|
* Initializes a new root rotate attempt.
|
|
@@ -7478,11 +5986,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7478
5986
|
* @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
5987
|
*/
|
|
7480
5988
|
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
|
-
});
|
|
5989
|
+
const req = this.request.post("/sys/rotate/root/init");
|
|
7486
5990
|
req.type("application/json");
|
|
7487
5991
|
if (args && "backup" in args) req.send({ backup: args["backup"] });
|
|
7488
5992
|
if (args && "pgp_keys" in args) req.send({ pgp_keys: args["pgp_keys"] });
|
|
@@ -7497,22 +6001,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7497
6001
|
* @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
6002
|
*/
|
|
7499
6003
|
rotateAttemptCancel(args) {
|
|
7500
|
-
return this.request.delete("/sys/rotate/root/init")
|
|
7501
|
-
name: "openBaoHttp",
|
|
7502
|
-
pathname: "/sys/rotate/root/init",
|
|
7503
|
-
method: "delete"
|
|
7504
|
-
});
|
|
6004
|
+
return this.request.delete("/sys/rotate/root/init");
|
|
7505
6005
|
}
|
|
7506
6006
|
/**
|
|
7507
6007
|
* Enter a single unseal key share to progress the rotation of the root key of OpenBao.
|
|
7508
6008
|
*
|
|
7509
6009
|
*/
|
|
7510
6010
|
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
|
-
});
|
|
6011
|
+
const req = this.request.post("/sys/rotate/root/update");
|
|
7516
6012
|
req.type("application/json");
|
|
7517
6013
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
7518
6014
|
if (args && "nonce" in args) req.send({ nonce: args["nonce"] });
|
|
@@ -7523,22 +6019,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7523
6019
|
*
|
|
7524
6020
|
*/
|
|
7525
6021
|
rotateVerificationReadProgress(args) {
|
|
7526
|
-
return this.request.get("/sys/rotate/root/verify")
|
|
7527
|
-
name: "openBaoHttp",
|
|
7528
|
-
pathname: "/sys/rotate/root/verify",
|
|
7529
|
-
method: "get"
|
|
7530
|
-
});
|
|
6022
|
+
return this.request.get("/sys/rotate/root/verify");
|
|
7531
6023
|
}
|
|
7532
6024
|
/**
|
|
7533
6025
|
* Enter a single new key share to progress the rotation verification operation.
|
|
7534
6026
|
*
|
|
7535
6027
|
*/
|
|
7536
6028
|
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
|
-
});
|
|
6029
|
+
const req = this.request.post("/sys/rotate/root/verify");
|
|
7542
6030
|
req.type("application/json");
|
|
7543
6031
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
7544
6032
|
if (args && "nonce" in args) req.send({ nonce: args["nonce"] });
|
|
@@ -7550,33 +6038,21 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7550
6038
|
* @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
6039
|
*/
|
|
7552
6040
|
rotateVerificationCancel(args) {
|
|
7553
|
-
return this.request.delete("/sys/rotate/root/verify")
|
|
7554
|
-
name: "openBaoHttp",
|
|
7555
|
-
pathname: "/sys/rotate/root/verify",
|
|
7556
|
-
method: "delete"
|
|
7557
|
-
});
|
|
6041
|
+
return this.request.delete("/sys/rotate/root/verify");
|
|
7558
6042
|
}
|
|
7559
6043
|
/**
|
|
7560
6044
|
* Seal the OpenBao instance.
|
|
7561
6045
|
*
|
|
7562
6046
|
*/
|
|
7563
6047
|
seal(args) {
|
|
7564
|
-
return this.request.post("/sys/seal")
|
|
7565
|
-
name: "openBaoHttp",
|
|
7566
|
-
pathname: "/sys/seal",
|
|
7567
|
-
method: "post"
|
|
7568
|
-
});
|
|
6048
|
+
return this.request.post("/sys/seal");
|
|
7569
6049
|
}
|
|
7570
6050
|
/**
|
|
7571
6051
|
* Check the seal status of an OpenBao instance.
|
|
7572
6052
|
*
|
|
7573
6053
|
*/
|
|
7574
6054
|
sealStatus(args) {
|
|
7575
|
-
return this.request.get("/sys/seal-status")
|
|
7576
|
-
name: "openBaoHttp",
|
|
7577
|
-
pathname: "/sys/seal-status",
|
|
7578
|
-
method: "get"
|
|
7579
|
-
});
|
|
6055
|
+
return this.request.get("/sys/seal-status");
|
|
7580
6056
|
}
|
|
7581
6057
|
/**
|
|
7582
6058
|
* Cause the node to give up active status.
|
|
@@ -7584,18 +6060,10 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7584
6060
|
* @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
6061
|
*/
|
|
7586
6062
|
stepDownLeader(args) {
|
|
7587
|
-
return this.request.post("/sys/step-down")
|
|
7588
|
-
name: "openBaoHttp",
|
|
7589
|
-
pathname: "/sys/step-down",
|
|
7590
|
-
method: "post"
|
|
7591
|
-
});
|
|
6063
|
+
return this.request.post("/sys/step-down");
|
|
7592
6064
|
}
|
|
7593
6065
|
generateHash(args) {
|
|
7594
|
-
const req = this.request.post("/sys/tools/hash")
|
|
7595
|
-
name: "openBaoHttp",
|
|
7596
|
-
pathname: "/sys/tools/hash",
|
|
7597
|
-
method: "post"
|
|
7598
|
-
});
|
|
6066
|
+
const req = this.request.post("/sys/tools/hash");
|
|
7599
6067
|
req.type("application/json");
|
|
7600
6068
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
7601
6069
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -7604,11 +6072,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7604
6072
|
return req;
|
|
7605
6073
|
}
|
|
7606
6074
|
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
|
-
});
|
|
6075
|
+
const req = this.request.post("/sys/tools/hash/{urlalgorithm}");
|
|
7612
6076
|
req.type("application/json");
|
|
7613
6077
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
7614
6078
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -7616,11 +6080,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7616
6080
|
return req;
|
|
7617
6081
|
}
|
|
7618
6082
|
generateRandom(args) {
|
|
7619
|
-
const req = this.request.post("/sys/tools/random")
|
|
7620
|
-
name: "openBaoHttp",
|
|
7621
|
-
pathname: "/sys/tools/random",
|
|
7622
|
-
method: "post"
|
|
7623
|
-
});
|
|
6083
|
+
const req = this.request.post("/sys/tools/random");
|
|
7624
6084
|
req.type("application/json");
|
|
7625
6085
|
if (args && "bytes" in args) req.send({ bytes: args["bytes"] });
|
|
7626
6086
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -7629,11 +6089,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7629
6089
|
return req;
|
|
7630
6090
|
}
|
|
7631
6091
|
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
|
-
});
|
|
6092
|
+
const req = this.request.post("/sys/tools/random/{source}");
|
|
7637
6093
|
req.type("application/json");
|
|
7638
6094
|
if (args && "bytes" in args) req.send({ bytes: args["bytes"] });
|
|
7639
6095
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -7641,22 +6097,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7641
6097
|
return req;
|
|
7642
6098
|
}
|
|
7643
6099
|
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
|
-
});
|
|
6100
|
+
const req = this.request.post("/sys/tools/random/{source}/{urlbytes}");
|
|
7649
6101
|
req.type("application/json");
|
|
7650
6102
|
if (args && "bytes" in args) req.send({ bytes: args["bytes"] });
|
|
7651
6103
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
7652
6104
|
return req;
|
|
7653
6105
|
}
|
|
7654
6106
|
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
|
-
});
|
|
6107
|
+
const req = this.request.post("/sys/tools/random/{urlbytes}");
|
|
7660
6108
|
req.type("application/json");
|
|
7661
6109
|
if (args && "bytes" in args) req.send({ bytes: args["bytes"] });
|
|
7662
6110
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -7668,150 +6116,74 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7668
6116
|
*
|
|
7669
6117
|
*/
|
|
7670
6118
|
unseal(args) {
|
|
7671
|
-
const req = this.request.post("/sys/unseal")
|
|
7672
|
-
name: "openBaoHttp",
|
|
7673
|
-
pathname: "/sys/unseal",
|
|
7674
|
-
method: "post"
|
|
7675
|
-
});
|
|
6119
|
+
const req = this.request.post("/sys/unseal");
|
|
7676
6120
|
req.type("application/json");
|
|
7677
6121
|
if (args && "key" in args) req.send({ key: args["key"] });
|
|
7678
6122
|
if (args && "reset" in args) req.send({ reset: args["reset"] });
|
|
7679
6123
|
return req;
|
|
7680
6124
|
}
|
|
7681
6125
|
/**
|
|
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
6126
|
* Look up wrapping properties for the given token.
|
|
7707
6127
|
*
|
|
7708
6128
|
*/
|
|
7709
6129
|
readWrappingProperties(args) {
|
|
7710
|
-
const req = this.request.post("/sys/wrapping/lookup")
|
|
7711
|
-
name: "openBaoHttp",
|
|
7712
|
-
pathname: "/sys/wrapping/lookup",
|
|
7713
|
-
method: "post"
|
|
7714
|
-
});
|
|
6130
|
+
const req = this.request.post("/sys/wrapping/lookup");
|
|
7715
6131
|
req.type("application/json");
|
|
7716
6132
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
7717
6133
|
return req;
|
|
7718
6134
|
}
|
|
7719
6135
|
rewrap(args) {
|
|
7720
|
-
const req = this.request.post("/sys/wrapping/rewrap")
|
|
7721
|
-
name: "openBaoHttp",
|
|
7722
|
-
pathname: "/sys/wrapping/rewrap",
|
|
7723
|
-
method: "post"
|
|
7724
|
-
});
|
|
6136
|
+
const req = this.request.post("/sys/wrapping/rewrap");
|
|
7725
6137
|
req.type("application/json");
|
|
7726
6138
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
7727
6139
|
return req;
|
|
7728
6140
|
}
|
|
7729
6141
|
unwrap(args) {
|
|
7730
|
-
const req = this.request.post("/sys/wrapping/unwrap")
|
|
7731
|
-
name: "openBaoHttp",
|
|
7732
|
-
pathname: "/sys/wrapping/unwrap",
|
|
7733
|
-
method: "post"
|
|
7734
|
-
});
|
|
6142
|
+
const req = this.request.post("/sys/wrapping/unwrap");
|
|
7735
6143
|
req.type("application/json");
|
|
7736
6144
|
if (args && "token" in args) req.send({ token: args["token"] });
|
|
7737
6145
|
return req;
|
|
7738
6146
|
}
|
|
7739
6147
|
wrap(args) {
|
|
7740
|
-
return this.request.post("/sys/wrapping/wrap")
|
|
7741
|
-
name: "openBaoHttp",
|
|
7742
|
-
pathname: "/sys/wrapping/wrap",
|
|
7743
|
-
method: "post"
|
|
7744
|
-
});
|
|
6148
|
+
return this.request.post("/sys/wrapping/wrap");
|
|
7745
6149
|
}
|
|
7746
6150
|
transitBackUpKey(args) {
|
|
7747
|
-
return this.request.get("/transit/backup/{name}")
|
|
7748
|
-
name: "openBaoHttp",
|
|
7749
|
-
pathname: "/transit/backup/{name}",
|
|
7750
|
-
method: "get"
|
|
7751
|
-
});
|
|
6151
|
+
return this.request.get("/transit/backup/{name}");
|
|
7752
6152
|
}
|
|
7753
6153
|
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
|
-
});
|
|
6154
|
+
return this.request.get("/transit/byok-export/{destination}/{source}");
|
|
7759
6155
|
}
|
|
7760
6156
|
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
|
-
});
|
|
6157
|
+
return this.request.get("/transit/byok-export/{destination}/{source}/{version}");
|
|
7766
6158
|
}
|
|
7767
6159
|
/**
|
|
7768
6160
|
* Returns the size of the active cache
|
|
7769
6161
|
*
|
|
7770
6162
|
*/
|
|
7771
6163
|
transitReadCacheConfiguration(args) {
|
|
7772
|
-
return this.request.get("/transit/cache-config")
|
|
7773
|
-
name: "openBaoHttp",
|
|
7774
|
-
pathname: "/transit/cache-config",
|
|
7775
|
-
method: "get"
|
|
7776
|
-
});
|
|
6164
|
+
return this.request.get("/transit/cache-config");
|
|
7777
6165
|
}
|
|
7778
6166
|
/**
|
|
7779
6167
|
* Configures a new cache of the specified size
|
|
7780
6168
|
*
|
|
7781
6169
|
*/
|
|
7782
6170
|
transitConfigureCache(args) {
|
|
7783
|
-
const req = this.request.post("/transit/cache-config")
|
|
7784
|
-
name: "openBaoHttp",
|
|
7785
|
-
pathname: "/transit/cache-config",
|
|
7786
|
-
method: "post"
|
|
7787
|
-
});
|
|
6171
|
+
const req = this.request.post("/transit/cache-config");
|
|
7788
6172
|
req.type("application/json");
|
|
7789
6173
|
if (args && "size" in args) req.send({ size: args["size"] });
|
|
7790
6174
|
return req;
|
|
7791
6175
|
}
|
|
7792
6176
|
transitReadKeysConfiguration(args) {
|
|
7793
|
-
return this.request.get("/transit/config/keys")
|
|
7794
|
-
name: "openBaoHttp",
|
|
7795
|
-
pathname: "/transit/config/keys",
|
|
7796
|
-
method: "get"
|
|
7797
|
-
});
|
|
6177
|
+
return this.request.get("/transit/config/keys");
|
|
7798
6178
|
}
|
|
7799
6179
|
transitConfigureKeys(args) {
|
|
7800
|
-
const req = this.request.post("/transit/config/keys")
|
|
7801
|
-
name: "openBaoHttp",
|
|
7802
|
-
pathname: "/transit/config/keys",
|
|
7803
|
-
method: "post"
|
|
7804
|
-
});
|
|
6180
|
+
const req = this.request.post("/transit/config/keys");
|
|
7805
6181
|
req.type("application/json");
|
|
7806
6182
|
if (args && "disable_upsert" in args) req.send({ disable_upsert: args["disable_upsert"] });
|
|
7807
6183
|
return req;
|
|
7808
6184
|
}
|
|
7809
6185
|
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
|
-
});
|
|
6186
|
+
const req = this.request.post("/transit/datakey/{plaintext}/{name}");
|
|
7815
6187
|
req.type("application/json");
|
|
7816
6188
|
if (args && "associated_data" in args) req.send({ associated_data: args["associated_data"] });
|
|
7817
6189
|
if (args && "bits" in args) req.send({ bits: args["bits"] });
|
|
@@ -7820,11 +6192,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7820
6192
|
return req;
|
|
7821
6193
|
}
|
|
7822
6194
|
transitDecrypt(args) {
|
|
7823
|
-
const req = this.request.post("/transit/decrypt/{name}")
|
|
7824
|
-
name: "openBaoHttp",
|
|
7825
|
-
pathname: "/transit/decrypt/{name}",
|
|
7826
|
-
method: "post"
|
|
7827
|
-
});
|
|
6195
|
+
const req = this.request.post("/transit/decrypt/{name}");
|
|
7828
6196
|
req.type("application/json");
|
|
7829
6197
|
if (args && "associated_data" in args) req.send({ associated_data: args["associated_data"] });
|
|
7830
6198
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
@@ -7834,11 +6202,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7834
6202
|
return req;
|
|
7835
6203
|
}
|
|
7836
6204
|
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
|
-
});
|
|
6205
|
+
const req = this.request.post("/transit/derive-key/{name}");
|
|
7842
6206
|
req.type("application/json");
|
|
7843
6207
|
if (args && "base_key_name" in args) req.send({ base_key_name: args["base_key_name"] });
|
|
7844
6208
|
if (args && "base_key_version" in args) req.send({ base_key_version: args["base_key_version"] });
|
|
@@ -7848,11 +6212,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7848
6212
|
return req;
|
|
7849
6213
|
}
|
|
7850
6214
|
transitEncrypt(args) {
|
|
7851
|
-
const req = this.request.post("/transit/encrypt/{name}")
|
|
7852
|
-
name: "openBaoHttp",
|
|
7853
|
-
pathname: "/transit/encrypt/{name}",
|
|
7854
|
-
method: "post"
|
|
7855
|
-
});
|
|
6215
|
+
const req = this.request.post("/transit/encrypt/{name}");
|
|
7856
6216
|
req.type("application/json");
|
|
7857
6217
|
if (args && "associated_data" in args) req.send({ associated_data: args["associated_data"] });
|
|
7858
6218
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
@@ -7865,25 +6225,13 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7865
6225
|
return req;
|
|
7866
6226
|
}
|
|
7867
6227
|
transitExportKey(args) {
|
|
7868
|
-
return this.request.get("/transit/export/{type}/{name}")
|
|
7869
|
-
name: "openBaoHttp",
|
|
7870
|
-
pathname: "/transit/export/{type}/{name}",
|
|
7871
|
-
method: "get"
|
|
7872
|
-
});
|
|
6228
|
+
return this.request.get("/transit/export/{type}/{name}");
|
|
7873
6229
|
}
|
|
7874
6230
|
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
|
-
});
|
|
6231
|
+
return this.request.get("/transit/export/{type}/{name}/{version}");
|
|
7880
6232
|
}
|
|
7881
6233
|
transitHash(args) {
|
|
7882
|
-
const req = this.request.post("/transit/hash")
|
|
7883
|
-
name: "openBaoHttp",
|
|
7884
|
-
pathname: "/transit/hash",
|
|
7885
|
-
method: "post"
|
|
7886
|
-
});
|
|
6234
|
+
const req = this.request.post("/transit/hash");
|
|
7887
6235
|
req.type("application/json");
|
|
7888
6236
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
7889
6237
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -7892,11 +6240,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7892
6240
|
return req;
|
|
7893
6241
|
}
|
|
7894
6242
|
transitHashWithAlgorithm(args) {
|
|
7895
|
-
const req = this.request.post("/transit/hash/{urlalgorithm}")
|
|
7896
|
-
name: "openBaoHttp",
|
|
7897
|
-
pathname: "/transit/hash/{urlalgorithm}",
|
|
7898
|
-
method: "post"
|
|
7899
|
-
});
|
|
6243
|
+
const req = this.request.post("/transit/hash/{urlalgorithm}");
|
|
7900
6244
|
req.type("application/json");
|
|
7901
6245
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
7902
6246
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -7904,11 +6248,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7904
6248
|
return req;
|
|
7905
6249
|
}
|
|
7906
6250
|
transitGenerateHmac(args) {
|
|
7907
|
-
const req = this.request.post("/transit/hmac/{name}")
|
|
7908
|
-
name: "openBaoHttp",
|
|
7909
|
-
pathname: "/transit/hmac/{name}",
|
|
7910
|
-
method: "post"
|
|
7911
|
-
});
|
|
6251
|
+
const req = this.request.post("/transit/hmac/{name}");
|
|
7912
6252
|
req.type("application/json");
|
|
7913
6253
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
7914
6254
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
@@ -7918,11 +6258,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7918
6258
|
return req;
|
|
7919
6259
|
}
|
|
7920
6260
|
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
|
-
});
|
|
6261
|
+
const req = this.request.post("/transit/hmac/{name}/{urlalgorithm}");
|
|
7926
6262
|
req.type("application/json");
|
|
7927
6263
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
7928
6264
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
@@ -7931,27 +6267,15 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7931
6267
|
return req;
|
|
7932
6268
|
}
|
|
7933
6269
|
transitListKeys(args) {
|
|
7934
|
-
const req = this.request.get("/transit/keys")
|
|
7935
|
-
name: "openBaoHttp",
|
|
7936
|
-
pathname: "/transit/keys",
|
|
7937
|
-
method: "get"
|
|
7938
|
-
});
|
|
6270
|
+
const req = this.request.get("/transit/keys");
|
|
7939
6271
|
if (args && "list" in args) req.query("list", args["list"], { arrayFormat: "repeat" });
|
|
7940
6272
|
return req;
|
|
7941
6273
|
}
|
|
7942
6274
|
transitReadKey(args) {
|
|
7943
|
-
return this.request.get("/transit/keys/{name}")
|
|
7944
|
-
name: "openBaoHttp",
|
|
7945
|
-
pathname: "/transit/keys/{name}",
|
|
7946
|
-
method: "get"
|
|
7947
|
-
});
|
|
6275
|
+
return this.request.get("/transit/keys/{name}");
|
|
7948
6276
|
}
|
|
7949
6277
|
transitCreateKey(args) {
|
|
7950
|
-
const req = this.request.post("/transit/keys/{name}")
|
|
7951
|
-
name: "openBaoHttp",
|
|
7952
|
-
pathname: "/transit/keys/{name}",
|
|
7953
|
-
method: "post"
|
|
7954
|
-
});
|
|
6278
|
+
const req = this.request.post("/transit/keys/{name}");
|
|
7955
6279
|
req.type("application/json");
|
|
7956
6280
|
if (args && "allow_plaintext_backup" in args) req.send({ allow_plaintext_backup: args["allow_plaintext_backup"] });
|
|
7957
6281
|
if (args && "auto_rotate_period" in args) req.send({ auto_rotate_period: args["auto_rotate_period"] });
|
|
@@ -7964,18 +6288,10 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7964
6288
|
return req;
|
|
7965
6289
|
}
|
|
7966
6290
|
transitDeleteKey(args) {
|
|
7967
|
-
return this.request.delete("/transit/keys/{name}")
|
|
7968
|
-
name: "openBaoHttp",
|
|
7969
|
-
pathname: "/transit/keys/{name}",
|
|
7970
|
-
method: "delete"
|
|
7971
|
-
});
|
|
6291
|
+
return this.request.delete("/transit/keys/{name}");
|
|
7972
6292
|
}
|
|
7973
6293
|
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
|
-
});
|
|
6294
|
+
const req = this.request.post("/transit/keys/{name}/config");
|
|
7979
6295
|
req.type("application/json");
|
|
7980
6296
|
if (args && "allow_plaintext_backup" in args) req.send({ allow_plaintext_backup: args["allow_plaintext_backup"] });
|
|
7981
6297
|
if (args && "auto_rotate_period" in args) req.send({ auto_rotate_period: args["auto_rotate_period"] });
|
|
@@ -7986,22 +6302,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
7986
6302
|
return req;
|
|
7987
6303
|
}
|
|
7988
6304
|
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
|
-
});
|
|
6305
|
+
const req = this.request.post("/transit/keys/{name}/csr");
|
|
7994
6306
|
req.type("application/json");
|
|
7995
6307
|
if (args && "csr" in args) req.send({ csr: args["csr"] });
|
|
7996
6308
|
if (args && "version" in args) req.send({ version: args["version"] });
|
|
7997
6309
|
return req;
|
|
7998
6310
|
}
|
|
7999
6311
|
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
|
-
});
|
|
6312
|
+
const req = this.request.post("/transit/keys/{name}/import");
|
|
8005
6313
|
req.type("application/json");
|
|
8006
6314
|
if (args && "allow_plaintext_backup" in args) req.send({ allow_plaintext_backup: args["allow_plaintext_backup"] });
|
|
8007
6315
|
if (args && "allow_rotation" in args) req.send({ allow_rotation: args["allow_rotation"] });
|
|
@@ -8016,11 +6324,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8016
6324
|
return req;
|
|
8017
6325
|
}
|
|
8018
6326
|
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
|
-
});
|
|
6327
|
+
const req = this.request.post("/transit/keys/{name}/import_version");
|
|
8024
6328
|
req.type("application/json");
|
|
8025
6329
|
if (args && "ciphertext" in args) req.send({ ciphertext: args["ciphertext"] });
|
|
8026
6330
|
if (args && "hash_function" in args) req.send({ hash_function: args["hash_function"] });
|
|
@@ -8029,53 +6333,29 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8029
6333
|
return req;
|
|
8030
6334
|
}
|
|
8031
6335
|
transitRotateKey(args) {
|
|
8032
|
-
return this.request.post("/transit/keys/{name}/rotate")
|
|
8033
|
-
name: "openBaoHttp",
|
|
8034
|
-
pathname: "/transit/keys/{name}/rotate",
|
|
8035
|
-
method: "post"
|
|
8036
|
-
});
|
|
6336
|
+
return this.request.post("/transit/keys/{name}/rotate");
|
|
8037
6337
|
}
|
|
8038
6338
|
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
|
-
});
|
|
6339
|
+
const req = this.request.post("/transit/keys/{name}/set-certificate");
|
|
8044
6340
|
req.type("application/json");
|
|
8045
6341
|
if (args && "certificate_chain" in args) req.send({ certificate_chain: args["certificate_chain"] });
|
|
8046
6342
|
if (args && "version" in args) req.send({ version: args["version"] });
|
|
8047
6343
|
return req;
|
|
8048
6344
|
}
|
|
8049
6345
|
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
|
-
});
|
|
6346
|
+
return this.request.delete("/transit/keys/{name}/soft-delete");
|
|
8055
6347
|
}
|
|
8056
6348
|
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
|
-
});
|
|
6349
|
+
return this.request.post("/transit/keys/{name}/soft-delete-restore");
|
|
8062
6350
|
}
|
|
8063
6351
|
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
|
-
});
|
|
6352
|
+
const req = this.request.post("/transit/keys/{name}/trim");
|
|
8069
6353
|
req.type("application/json");
|
|
8070
6354
|
if (args && "min_available_version" in args) req.send({ min_available_version: args["min_available_version"] });
|
|
8071
6355
|
return req;
|
|
8072
6356
|
}
|
|
8073
6357
|
transitGenerateRandom(args) {
|
|
8074
|
-
const req = this.request.post("/transit/random")
|
|
8075
|
-
name: "openBaoHttp",
|
|
8076
|
-
pathname: "/transit/random",
|
|
8077
|
-
method: "post"
|
|
8078
|
-
});
|
|
6358
|
+
const req = this.request.post("/transit/random");
|
|
8079
6359
|
req.type("application/json");
|
|
8080
6360
|
if (args && "bytes" in args) req.send({ bytes: args["bytes"] });
|
|
8081
6361
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -8084,11 +6364,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8084
6364
|
return req;
|
|
8085
6365
|
}
|
|
8086
6366
|
transitGenerateRandomWithSource(args) {
|
|
8087
|
-
const req = this.request.post("/transit/random/{source}")
|
|
8088
|
-
name: "openBaoHttp",
|
|
8089
|
-
pathname: "/transit/random/{source}",
|
|
8090
|
-
method: "post"
|
|
8091
|
-
});
|
|
6367
|
+
const req = this.request.post("/transit/random/{source}");
|
|
8092
6368
|
req.type("application/json");
|
|
8093
6369
|
if (args && "bytes" in args) req.send({ bytes: args["bytes"] });
|
|
8094
6370
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -8096,22 +6372,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8096
6372
|
return req;
|
|
8097
6373
|
}
|
|
8098
6374
|
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
|
-
});
|
|
6375
|
+
const req = this.request.post("/transit/random/{source}/{urlbytes}");
|
|
8104
6376
|
req.type("application/json");
|
|
8105
6377
|
if (args && "bytes" in args) req.send({ bytes: args["bytes"] });
|
|
8106
6378
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
8107
6379
|
return req;
|
|
8108
6380
|
}
|
|
8109
6381
|
transitGenerateRandomWithBytes(args) {
|
|
8110
|
-
const req = this.request.post("/transit/random/{urlbytes}")
|
|
8111
|
-
name: "openBaoHttp",
|
|
8112
|
-
pathname: "/transit/random/{urlbytes}",
|
|
8113
|
-
method: "post"
|
|
8114
|
-
});
|
|
6382
|
+
const req = this.request.post("/transit/random/{urlbytes}");
|
|
8115
6383
|
req.type("application/json");
|
|
8116
6384
|
if (args && "bytes" in args) req.send({ bytes: args["bytes"] });
|
|
8117
6385
|
if (args && "format" in args) req.send({ format: args["format"] });
|
|
@@ -8119,11 +6387,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8119
6387
|
return req;
|
|
8120
6388
|
}
|
|
8121
6389
|
transitRestoreKey(args) {
|
|
8122
|
-
const req = this.request.post("/transit/restore")
|
|
8123
|
-
name: "openBaoHttp",
|
|
8124
|
-
pathname: "/transit/restore",
|
|
8125
|
-
method: "post"
|
|
8126
|
-
});
|
|
6390
|
+
const req = this.request.post("/transit/restore");
|
|
8127
6391
|
req.type("application/json");
|
|
8128
6392
|
if (args && "backup" in args) req.send({ backup: args["backup"] });
|
|
8129
6393
|
if (args && "force" in args) req.send({ force: args["force"] });
|
|
@@ -8131,22 +6395,14 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8131
6395
|
return req;
|
|
8132
6396
|
}
|
|
8133
6397
|
transitRestoreAndRenameKey(args) {
|
|
8134
|
-
const req = this.request.post("/transit/restore/{name}")
|
|
8135
|
-
name: "openBaoHttp",
|
|
8136
|
-
pathname: "/transit/restore/{name}",
|
|
8137
|
-
method: "post"
|
|
8138
|
-
});
|
|
6398
|
+
const req = this.request.post("/transit/restore/{name}");
|
|
8139
6399
|
req.type("application/json");
|
|
8140
6400
|
if (args && "backup" in args) req.send({ backup: args["backup"] });
|
|
8141
6401
|
if (args && "force" in args) req.send({ force: args["force"] });
|
|
8142
6402
|
return req;
|
|
8143
6403
|
}
|
|
8144
6404
|
transitRewrap(args) {
|
|
8145
|
-
const req = this.request.post("/transit/rewrap/{name}")
|
|
8146
|
-
name: "openBaoHttp",
|
|
8147
|
-
pathname: "/transit/rewrap/{name}",
|
|
8148
|
-
method: "post"
|
|
8149
|
-
});
|
|
6405
|
+
const req = this.request.post("/transit/rewrap/{name}");
|
|
8150
6406
|
req.type("application/json");
|
|
8151
6407
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
8152
6408
|
if (args && "ciphertext" in args) req.send({ ciphertext: args["ciphertext"] });
|
|
@@ -8155,11 +6411,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8155
6411
|
return req;
|
|
8156
6412
|
}
|
|
8157
6413
|
transitSign(args) {
|
|
8158
|
-
const req = this.request.post("/transit/sign/{name}")
|
|
8159
|
-
name: "openBaoHttp",
|
|
8160
|
-
pathname: "/transit/sign/{name}",
|
|
8161
|
-
method: "post"
|
|
8162
|
-
});
|
|
6414
|
+
const req = this.request.post("/transit/sign/{name}");
|
|
8163
6415
|
req.type("application/json");
|
|
8164
6416
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
8165
6417
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
@@ -8175,11 +6427,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8175
6427
|
return req;
|
|
8176
6428
|
}
|
|
8177
6429
|
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
|
-
});
|
|
6430
|
+
const req = this.request.post("/transit/sign/{name}/{urlalgorithm}");
|
|
8183
6431
|
req.type("application/json");
|
|
8184
6432
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
8185
6433
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
@@ -8194,11 +6442,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8194
6442
|
return req;
|
|
8195
6443
|
}
|
|
8196
6444
|
transitVerify(args) {
|
|
8197
|
-
const req = this.request.post("/transit/verify/{name}")
|
|
8198
|
-
name: "openBaoHttp",
|
|
8199
|
-
pathname: "/transit/verify/{name}",
|
|
8200
|
-
method: "post"
|
|
8201
|
-
});
|
|
6445
|
+
const req = this.request.post("/transit/verify/{name}");
|
|
8202
6446
|
req.type("application/json");
|
|
8203
6447
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
8204
6448
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
@@ -8215,11 +6459,7 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8215
6459
|
return req;
|
|
8216
6460
|
}
|
|
8217
6461
|
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
|
-
});
|
|
6462
|
+
const req = this.request.post("/transit/verify/{name}/{urlalgorithm}");
|
|
8223
6463
|
req.type("application/json");
|
|
8224
6464
|
if (args && "algorithm" in args) req.send({ algorithm: args["algorithm"] });
|
|
8225
6465
|
if (args && "batch_input" in args) req.send({ batch_input: args["batch_input"] });
|
|
@@ -8235,14 +6475,42 @@ let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
|
8235
6475
|
return req;
|
|
8236
6476
|
}
|
|
8237
6477
|
transitReadWrappingKey(args) {
|
|
8238
|
-
return this.request.get("/transit/wrapping_key")
|
|
8239
|
-
name: "openBaoHttp",
|
|
8240
|
-
pathname: "/transit/wrapping_key",
|
|
8241
|
-
method: "get"
|
|
8242
|
-
});
|
|
6478
|
+
return this.request.get("/transit/wrapping_key");
|
|
8243
6479
|
}
|
|
8244
6480
|
};
|
|
8245
|
-
OpenBaoHttpClient = _OpenBaoHttpClient = __decorate([(0, _nestjs_common.Injectable)(), __decorateMetadata("design:paramtypes", [typeof (_ref$
|
|
6481
|
+
OpenBaoHttpClient = _OpenBaoHttpClient = __decorate([(0, _nestjs_common.Injectable)(), __decorateMetadata("design:paramtypes", [typeof (_ref$11 = typeof keq.KeqRequest !== "undefined" && keq.KeqRequest) === "function" ? _ref$11 : Object])], OpenBaoHttpClient);
|
|
6482
|
+
//#endregion
|
|
6483
|
+
//#region src/apis/open-bao-http/open-bao-http.module.ts
|
|
6484
|
+
const KEQ_REQUEST_TOKEN = Symbol("OpenBaoHttpKeqRequest");
|
|
6485
|
+
const { ConfigurableModuleClass: ConfigurableModuleClass$3, MODULE_OPTIONS_TOKEN: MODULE_OPTIONS_TOKEN$3 } = new _nestjs_common.ConfigurableModuleBuilder().setExtras({ isGlobal: false }, (definition, extras) => ({
|
|
6486
|
+
...definition,
|
|
6487
|
+
global: extras.isGlobal
|
|
6488
|
+
})).build();
|
|
6489
|
+
const REQUEST_PROVIDER = {
|
|
6490
|
+
provide: KEQ_REQUEST_TOKEN,
|
|
6491
|
+
useFactory: (options, globalRequest) => {
|
|
6492
|
+
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.");
|
|
6493
|
+
const request = !options.isolate && globalRequest ? globalRequest.fork() : new keq.KeqRequest();
|
|
6494
|
+
if (options.middlewares) for (const middleware of options.middlewares) request.use(middleware);
|
|
6495
|
+
return request;
|
|
6496
|
+
},
|
|
6497
|
+
inject: [MODULE_OPTIONS_TOKEN$3, {
|
|
6498
|
+
token: keq.KeqRequest,
|
|
6499
|
+
optional: true
|
|
6500
|
+
}]
|
|
6501
|
+
};
|
|
6502
|
+
const CLIENT_PROVIDER = {
|
|
6503
|
+
provide: OpenBaoHttpClient,
|
|
6504
|
+
useFactory: (request) => new OpenBaoHttpClient(request),
|
|
6505
|
+
inject: [KEQ_REQUEST_TOKEN]
|
|
6506
|
+
};
|
|
6507
|
+
let OpenBaoHttpModule = class OpenBaoHttpModule extends ConfigurableModuleClass$3 {
|
|
6508
|
+
static KEQ_REQUEST = KEQ_REQUEST_TOKEN;
|
|
6509
|
+
};
|
|
6510
|
+
OpenBaoHttpModule = __decorate([(0, _nestjs_common.Module)({
|
|
6511
|
+
providers: [REQUEST_PROVIDER, CLIENT_PROVIDER],
|
|
6512
|
+
exports: [OpenBaoHttpClient]
|
|
6513
|
+
})], OpenBaoHttpModule);
|
|
8246
6514
|
//#endregion
|
|
8247
6515
|
//#region src/modules/open-bao/set-open-bao-token.middleware.ts
|
|
8248
6516
|
/**
|
|
@@ -8343,42 +6611,27 @@ function formatError() {
|
|
|
8343
6611
|
}
|
|
8344
6612
|
//#endregion
|
|
8345
6613
|
//#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]
|
|
6614
|
+
var _ref$10;
|
|
6615
|
+
let OpenBaoModule = class OpenBaoModule extends ConfigurableModuleClass$4 {
|
|
6616
|
+
constructor(options, tokenManager) {
|
|
6617
|
+
super();
|
|
6618
|
+
this.options = options;
|
|
6619
|
+
this.tokenManager = tokenManager;
|
|
6620
|
+
}
|
|
6621
|
+
configureKeqMiddleware(consumer) {
|
|
6622
|
+
consumer.apply(formatError(), (0, _keq_request_url.setBaseUrl)(this.options.address + "/v1/"), setOpenBaoToken(() => this.tokenManager.getToken()), (0, _keq_request_exception.validateStatusCode)()).forRoutes(OpenBaoHttpModule);
|
|
6623
|
+
}
|
|
8372
6624
|
};
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
6625
|
+
OpenBaoModule = __decorate([
|
|
6626
|
+
(0, _nestjs_common.Global)(),
|
|
6627
|
+
(0, _nestjs_common.Module)({
|
|
6628
|
+
imports: [OpenBaoHttpModule.register({ isGlobal: true })],
|
|
6629
|
+
providers: [OpenBaoTokenManager],
|
|
6630
|
+
exports: [OpenBaoTokenManager, OpenBaoHttpModule]
|
|
6631
|
+
}),
|
|
6632
|
+
__decorateParam(0, (0, _nestjs_common.Inject)(MODULE_OPTIONS_TOKEN$4)),
|
|
6633
|
+
__decorateMetadata("design:paramtypes", [Object, typeof (_ref$10 = typeof OpenBaoTokenManager !== "undefined" && OpenBaoTokenManager) === "function" ? _ref$10 : Object])
|
|
6634
|
+
], OpenBaoModule);
|
|
8382
6635
|
//#endregion
|
|
8383
6636
|
//#region src/modules/open-bao/open-bao.config.ts
|
|
8384
6637
|
var OpenBaoTokenAuthConfig = class {
|