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