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