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