@homeflare/distilled-openbao 0.2.0

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.
Files changed (313) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +78 -0
  3. package/dist/credentials.d.ts +32 -0
  4. package/dist/credentials.d.ts.map +1 -0
  5. package/dist/credentials.js +66 -0
  6. package/dist/credentials.js.map +1 -0
  7. package/dist/credentials.test.d.ts +2 -0
  8. package/dist/credentials.test.d.ts.map +1 -0
  9. package/dist/credentials.test.js +29 -0
  10. package/dist/credentials.test.js.map +1 -0
  11. package/dist/errors.d.ts +57 -0
  12. package/dist/errors.d.ts.map +1 -0
  13. package/dist/errors.js +37 -0
  14. package/dist/errors.js.map +1 -0
  15. package/dist/index.d.ts +30 -0
  16. package/dist/index.d.ts.map +1 -0
  17. package/dist/index.js +30 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/protocol.d.ts +18 -0
  20. package/dist/protocol.d.ts.map +1 -0
  21. package/dist/protocol.js +96 -0
  22. package/dist/protocol.js.map +1 -0
  23. package/dist/protocol.test.d.ts +2 -0
  24. package/dist/protocol.test.d.ts.map +1 -0
  25. package/dist/protocol.test.js +78 -0
  26. package/dist/protocol.test.js.map +1 -0
  27. package/dist/retry.d.ts +60 -0
  28. package/dist/retry.d.ts.map +1 -0
  29. package/dist/retry.js +53 -0
  30. package/dist/retry.js.map +1 -0
  31. package/dist/services/alias.d.ts +73 -0
  32. package/dist/services/alias.d.ts.map +1 -0
  33. package/dist/services/alias.js +91 -0
  34. package/dist/services/alias.js.map +1 -0
  35. package/dist/services/approle.d.ts +918 -0
  36. package/dist/services/approle.d.ts.map +1 -0
  37. package/dist/services/approle.js +1206 -0
  38. package/dist/services/approle.js.map +1 -0
  39. package/dist/services/auditing.d.ts +97 -0
  40. package/dist/services/auditing.d.ts.map +1 -0
  41. package/dist/services/auditing.js +158 -0
  42. package/dist/services/auditing.js.map +1 -0
  43. package/dist/services/auth.d.ts +160 -0
  44. package/dist/services/auth.d.ts.map +1 -0
  45. package/dist/services/auth.js +169 -0
  46. package/dist/services/auth.js.map +1 -0
  47. package/dist/services/collect.d.ts +35 -0
  48. package/dist/services/collect.d.ts.map +1 -0
  49. package/dist/services/collect.js +46 -0
  50. package/dist/services/collect.js.map +1 -0
  51. package/dist/services/configure.d.ts +35 -0
  52. package/dist/services/configure.d.ts.map +1 -0
  53. package/dist/services/configure.js +43 -0
  54. package/dist/services/configure.js.map +1 -0
  55. package/dist/services/cors.d.ts +54 -0
  56. package/dist/services/cors.d.ts.map +1 -0
  57. package/dist/services/cors.js +65 -0
  58. package/dist/services/cors.js.map +1 -0
  59. package/dist/services/cubbyhole.d.ts +40 -0
  60. package/dist/services/cubbyhole.d.ts.map +1 -0
  61. package/dist/services/cubbyhole.js +56 -0
  62. package/dist/services/cubbyhole.js.map +1 -0
  63. package/dist/services/database.d.ts +278 -0
  64. package/dist/services/database.d.ts.map +1 -0
  65. package/dist/services/database.js +384 -0
  66. package/dist/services/database.js.map +1 -0
  67. package/dist/services/decode.d.ts +18 -0
  68. package/dist/services/decode.d.ts.map +1 -0
  69. package/dist/services/decode.js +24 -0
  70. package/dist/services/decode.js.map +1 -0
  71. package/dist/services/entity.d.ts +257 -0
  72. package/dist/services/entity.d.ts.map +1 -0
  73. package/dist/services/entity.js +313 -0
  74. package/dist/services/entity.js.map +1 -0
  75. package/dist/services/generate.d.ts +136 -0
  76. package/dist/services/generate.d.ts.map +1 -0
  77. package/dist/services/generate.js +188 -0
  78. package/dist/services/generate.js.map +1 -0
  79. package/dist/services/group.d.ts +244 -0
  80. package/dist/services/group.d.ts.map +1 -0
  81. package/dist/services/group.js +277 -0
  82. package/dist/services/group.js.map +1 -0
  83. package/dist/services/ha.d.ts +17 -0
  84. package/dist/services/ha.d.ts.map +1 -0
  85. package/dist/services/ha.js +24 -0
  86. package/dist/services/ha.js.map +1 -0
  87. package/dist/services/index.d.ts +54 -0
  88. package/dist/services/index.d.ts.map +1 -0
  89. package/dist/services/index.js +55 -0
  90. package/dist/services/index.js.map +1 -0
  91. package/dist/services/initialize.d.ts +34 -0
  92. package/dist/services/initialize.d.ts.map +1 -0
  93. package/dist/services/initialize.js +31 -0
  94. package/dist/services/initialize.js.map +1 -0
  95. package/dist/services/internal.d.ts +131 -0
  96. package/dist/services/internal.d.ts.map +1 -0
  97. package/dist/services/internal.js +199 -0
  98. package/dist/services/internal.js.map +1 -0
  99. package/dist/services/jwt.d.ts +684 -0
  100. package/dist/services/jwt.d.ts.map +1 -0
  101. package/dist/services/jwt.js +801 -0
  102. package/dist/services/jwt.js.map +1 -0
  103. package/dist/services/kubernetes.d.ts +166 -0
  104. package/dist/services/kubernetes.d.ts.map +1 -0
  105. package/dist/services/kubernetes.js +187 -0
  106. package/dist/services/kubernetes.js.map +1 -0
  107. package/dist/services/kv.d.ts +519 -0
  108. package/dist/services/kv.d.ts.map +1 -0
  109. package/dist/services/kv.js +655 -0
  110. package/dist/services/kv.js.map +1 -0
  111. package/dist/services/leader.d.ts +21 -0
  112. package/dist/services/leader.d.ts.map +1 -0
  113. package/dist/services/leader.js +29 -0
  114. package/dist/services/leader.js.map +1 -0
  115. package/dist/services/leases.d.ts +185 -0
  116. package/dist/services/leases.d.ts.map +1 -0
  117. package/dist/services/leases.js +238 -0
  118. package/dist/services/leases.js.map +1 -0
  119. package/dist/services/locked.d.ts +27 -0
  120. package/dist/services/locked.d.ts.map +1 -0
  121. package/dist/services/locked.js +42 -0
  122. package/dist/services/locked.js.map +1 -0
  123. package/dist/services/loggers.d.ts +69 -0
  124. package/dist/services/loggers.d.ts.map +1 -0
  125. package/dist/services/loggers.js +100 -0
  126. package/dist/services/loggers.js.map +1 -0
  127. package/dist/services/mfa.d.ts +386 -0
  128. package/dist/services/mfa.d.ts.map +1 -0
  129. package/dist/services/mfa.js +553 -0
  130. package/dist/services/mfa.js.map +1 -0
  131. package/dist/services/misc.d.ts +103 -0
  132. package/dist/services/misc.d.ts.map +1 -0
  133. package/dist/services/misc.js +120 -0
  134. package/dist/services/misc.js.map +1 -0
  135. package/dist/services/mounts.d.ts +173 -0
  136. package/dist/services/mounts.d.ts.map +1 -0
  137. package/dist/services/mounts.js +168 -0
  138. package/dist/services/mounts.js.map +1 -0
  139. package/dist/services/namespaces.d.ts +257 -0
  140. package/dist/services/namespaces.d.ts.map +1 -0
  141. package/dist/services/namespaces.js +320 -0
  142. package/dist/services/namespaces.js.map +1 -0
  143. package/dist/services/oidc.d.ts +509 -0
  144. package/dist/services/oidc.d.ts.map +1 -0
  145. package/dist/services/oidc.js +718 -0
  146. package/dist/services/oidc.js.map +1 -0
  147. package/dist/services/persona.d.ts +73 -0
  148. package/dist/services/persona.d.ts.map +1 -0
  149. package/dist/services/persona.js +91 -0
  150. package/dist/services/persona.js.map +1 -0
  151. package/dist/services/pki.d.ts +5783 -0
  152. package/dist/services/pki.d.ts.map +1 -0
  153. package/dist/services/pki.js +4995 -0
  154. package/dist/services/pki.js.map +1 -0
  155. package/dist/services/plugins.d.ts +203 -0
  156. package/dist/services/plugins.d.ts.map +1 -0
  157. package/dist/services/plugins.js +237 -0
  158. package/dist/services/plugins.js.map +1 -0
  159. package/dist/services/policies.d.ts +250 -0
  160. package/dist/services/policies.d.ts.map +1 -0
  161. package/dist/services/policies.js +312 -0
  162. package/dist/services/policies.js.map +1 -0
  163. package/dist/services/pprof.d.ts +104 -0
  164. package/dist/services/pprof.d.ts.map +1 -0
  165. package/dist/services/pprof.js +161 -0
  166. package/dist/services/pprof.js.map +1 -0
  167. package/dist/services/query.d.ts +65 -0
  168. package/dist/services/query.d.ts.map +1 -0
  169. package/dist/services/query.js +66 -0
  170. package/dist/services/query.js.map +1 -0
  171. package/dist/services/rate.d.ts +102 -0
  172. package/dist/services/rate.d.ts.map +1 -0
  173. package/dist/services/rate.js +129 -0
  174. package/dist/services/rate.js.map +1 -0
  175. package/dist/services/raw.d.ts +85 -0
  176. package/dist/services/raw.d.ts.map +1 -0
  177. package/dist/services/raw.js +116 -0
  178. package/dist/services/raw.js.map +1 -0
  179. package/dist/services/read.d.ts +87 -0
  180. package/dist/services/read.d.ts.map +1 -0
  181. package/dist/services/read.js +123 -0
  182. package/dist/services/read.js.map +1 -0
  183. package/dist/services/rekey.d.ts +184 -0
  184. package/dist/services/rekey.d.ts.map +1 -0
  185. package/dist/services/rekey.js +243 -0
  186. package/dist/services/rekey.js.map +1 -0
  187. package/dist/services/reload.d.ts +15 -0
  188. package/dist/services/reload.d.ts.map +1 -0
  189. package/dist/services/reload.js +27 -0
  190. package/dist/services/reload.js.map +1 -0
  191. package/dist/services/remount.d.ts +18 -0
  192. package/dist/services/remount.d.ts.map +1 -0
  193. package/dist/services/remount.js +30 -0
  194. package/dist/services/remount.js.map +1 -0
  195. package/dist/services/root.d.ts +134 -0
  196. package/dist/services/root.d.ts.map +1 -0
  197. package/dist/services/root.js +180 -0
  198. package/dist/services/root.js.map +1 -0
  199. package/dist/services/rotate.d.ts +367 -0
  200. package/dist/services/rotate.d.ts.map +1 -0
  201. package/dist/services/rotate.js +473 -0
  202. package/dist/services/rotate.js.map +1 -0
  203. package/dist/services/seal.d.ts +29 -0
  204. package/dist/services/seal.d.ts.map +1 -0
  205. package/dist/services/seal.js +37 -0
  206. package/dist/services/seal.js.map +1 -0
  207. package/dist/services/ssh.d.ts +491 -0
  208. package/dist/services/ssh.d.ts.map +1 -0
  209. package/dist/services/ssh.js +582 -0
  210. package/dist/services/ssh.js.map +1 -0
  211. package/dist/services/status.d.ts +17 -0
  212. package/dist/services/status.d.ts.map +1 -0
  213. package/dist/services/status.js +25 -0
  214. package/dist/services/status.js.map +1 -0
  215. package/dist/services/step.d.ts +14 -0
  216. package/dist/services/step.d.ts.map +1 -0
  217. package/dist/services/step.js +21 -0
  218. package/dist/services/step.js.map +1 -0
  219. package/dist/services/system.d.ts +33 -0
  220. package/dist/services/system.d.ts.map +1 -0
  221. package/dist/services/system.js +47 -0
  222. package/dist/services/system.js.map +1 -0
  223. package/dist/services/token.d.ts +408 -0
  224. package/dist/services/token.d.ts.map +1 -0
  225. package/dist/services/token.js +415 -0
  226. package/dist/services/token.js.map +1 -0
  227. package/dist/services/ui.d.ts +70 -0
  228. package/dist/services/ui.d.ts.map +1 -0
  229. package/dist/services/ui.js +95 -0
  230. package/dist/services/ui.js.map +1 -0
  231. package/dist/services/update.d.ts +25 -0
  232. package/dist/services/update.d.ts.map +1 -0
  233. package/dist/services/update.js +36 -0
  234. package/dist/services/update.js.map +1 -0
  235. package/dist/services/userpass.d.ts +151 -0
  236. package/dist/services/userpass.d.ts.map +1 -0
  237. package/dist/services/userpass.js +177 -0
  238. package/dist/services/userpass.js.map +1 -0
  239. package/dist/services/version.d.ts +22 -0
  240. package/dist/services/version.d.ts.map +1 -0
  241. package/dist/services/version.js +28 -0
  242. package/dist/services/version.js.map +1 -0
  243. package/dist/services/workflows.d.ts +122 -0
  244. package/dist/services/workflows.d.ts.map +1 -0
  245. package/dist/services/workflows.js +149 -0
  246. package/dist/services/workflows.js.map +1 -0
  247. package/dist/traits.d.ts +11 -0
  248. package/dist/traits.d.ts.map +1 -0
  249. package/dist/traits.js +12 -0
  250. package/dist/traits.js.map +1 -0
  251. package/package.json +75 -0
  252. package/src/credentials.test.ts +36 -0
  253. package/src/credentials.ts +100 -0
  254. package/src/errors.ts +73 -0
  255. package/src/index.ts +33 -0
  256. package/src/protocol.test.ts +123 -0
  257. package/src/protocol.ts +120 -0
  258. package/src/retry.ts +84 -0
  259. package/src/services/alias.ts +208 -0
  260. package/src/services/approle.ts +2750 -0
  261. package/src/services/auditing.ts +318 -0
  262. package/src/services/auth.ts +416 -0
  263. package/src/services/collect.ts +103 -0
  264. package/src/services/configure.ts +94 -0
  265. package/src/services/cors.ts +155 -0
  266. package/src/services/cubbyhole.ts +117 -0
  267. package/src/services/database.ts +854 -0
  268. package/src/services/decode.ts +49 -0
  269. package/src/services/entity.ts +744 -0
  270. package/src/services/generate.ts +409 -0
  271. package/src/services/group.ts +677 -0
  272. package/src/services/ha.ts +52 -0
  273. package/src/services/index.ts +54 -0
  274. package/src/services/initialize.ts +76 -0
  275. package/src/services/internal.ts +425 -0
  276. package/src/services/jwt.ts +1838 -0
  277. package/src/services/kubernetes.ts +446 -0
  278. package/src/services/kv.ts +1480 -0
  279. package/src/services/leader.ts +57 -0
  280. package/src/services/leases.ts +532 -0
  281. package/src/services/locked.ts +86 -0
  282. package/src/services/loggers.ts +215 -0
  283. package/src/services/mfa.ts +1193 -0
  284. package/src/services/misc.ts +286 -0
  285. package/src/services/mounts.ts +428 -0
  286. package/src/services/namespaces.ts +707 -0
  287. package/src/services/oidc.ts +1613 -0
  288. package/src/services/persona.ts +210 -0
  289. package/src/services/pki.ts +13320 -0
  290. package/src/services/plugins.ts +549 -0
  291. package/src/services/policies.ts +689 -0
  292. package/src/services/pprof.ts +351 -0
  293. package/src/services/query.ts +170 -0
  294. package/src/services/rate.ts +303 -0
  295. package/src/services/raw.ts +244 -0
  296. package/src/services/read.ts +266 -0
  297. package/src/services/rekey.ts +540 -0
  298. package/src/services/reload.ts +51 -0
  299. package/src/services/remount.ts +58 -0
  300. package/src/services/root.ts +393 -0
  301. package/src/services/rotate.ts +1088 -0
  302. package/src/services/seal.ts +75 -0
  303. package/src/services/ssh.ts +1351 -0
  304. package/src/services/status.ts +51 -0
  305. package/src/services/step.ts +43 -0
  306. package/src/services/system.ts +98 -0
  307. package/src/services/token.ts +1046 -0
  308. package/src/services/ui.ts +207 -0
  309. package/src/services/update.ts +73 -0
  310. package/src/services/userpass.ts +410 -0
  311. package/src/services/version.ts +60 -0
  312. package/src/services/workflows.ts +327 -0
  313. package/src/traits.ts +45 -0
@@ -0,0 +1,2750 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-openbao, generated — see fetch-specs.ts). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as T from "../traits.ts";
5
+ import {
6
+ OpenBaoProtocol,
7
+ type OpenBaoOpError,
8
+ type OpenBaoOpContext,
9
+ } from "../protocol.ts";
10
+ import * as Retry from "../retry.ts";
11
+
12
+ export type { OpenBaoOpError, OpenBaoOpContext };
13
+
14
+ export interface AppRoleDeleteBindSecretIdRequest {
15
+ /** Path that the backend was mounted at */
16
+ approle_mount_path: string;
17
+ /** Name of the role. Must be less than 4096 bytes. */
18
+ role_name: string;
19
+ }
20
+ export const AppRoleDeleteBindSecretIdRequest = /*@__PURE__*/ S.suspend(() =>
21
+ S.Struct({
22
+ approle_mount_path: S.String.pipe(T.Label()),
23
+ role_name: S.String.pipe(T.Label()),
24
+ }).pipe(
25
+ T.Http({
26
+ method: "DELETE",
27
+ uri: "/auth/{approle_mount_path}/role/{role_name}/bind-secret-id",
28
+ code: 200,
29
+ }),
30
+ ),
31
+ ).annotate({
32
+ identifier: "AppRoleDeleteBindSecretIdRequest",
33
+ }) as any as S.Schema<AppRoleDeleteBindSecretIdRequest>;
34
+
35
+ export interface AppRoleDeleteBindSecretIdResponse {}
36
+ export const AppRoleDeleteBindSecretIdResponse = /*@__PURE__*/ S.suspend(() =>
37
+ S.Struct({}),
38
+ ).annotate({
39
+ identifier: "AppRoleDeleteBindSecretIdResponse",
40
+ }) as any as S.Schema<AppRoleDeleteBindSecretIdResponse>;
41
+
42
+ export interface AppRoleDeleteBoundCidrListRequest {
43
+ /** Path that the backend was mounted at */
44
+ approle_mount_path: string;
45
+ /** Name of the role. Must be less than 4096 bytes. */
46
+ role_name: string;
47
+ }
48
+ export const AppRoleDeleteBoundCidrListRequest = /*@__PURE__*/ S.suspend(() =>
49
+ S.Struct({
50
+ approle_mount_path: S.String.pipe(T.Label()),
51
+ role_name: S.String.pipe(T.Label()),
52
+ }).pipe(
53
+ T.Http({
54
+ method: "DELETE",
55
+ uri: "/auth/{approle_mount_path}/role/{role_name}/bound-cidr-list",
56
+ code: 200,
57
+ }),
58
+ ),
59
+ ).annotate({
60
+ identifier: "AppRoleDeleteBoundCidrListRequest",
61
+ }) as any as S.Schema<AppRoleDeleteBoundCidrListRequest>;
62
+
63
+ export interface AppRoleDeleteBoundCidrListResponse {}
64
+ export const AppRoleDeleteBoundCidrListResponse = /*@__PURE__*/ S.suspend(() =>
65
+ S.Struct({}),
66
+ ).annotate({
67
+ identifier: "AppRoleDeleteBoundCidrListResponse",
68
+ }) as any as S.Schema<AppRoleDeleteBoundCidrListResponse>;
69
+
70
+ export interface AppRoleDeletePeriodRequest {
71
+ /** Path that the backend was mounted at */
72
+ approle_mount_path: string;
73
+ /** Name of the role. Must be less than 4096 bytes. */
74
+ role_name: string;
75
+ }
76
+ export const AppRoleDeletePeriodRequest = /*@__PURE__*/ S.suspend(() =>
77
+ S.Struct({
78
+ approle_mount_path: S.String.pipe(T.Label()),
79
+ role_name: S.String.pipe(T.Label()),
80
+ }).pipe(
81
+ T.Http({
82
+ method: "DELETE",
83
+ uri: "/auth/{approle_mount_path}/role/{role_name}/period",
84
+ code: 200,
85
+ }),
86
+ ),
87
+ ).annotate({
88
+ identifier: "AppRoleDeletePeriodRequest",
89
+ }) as any as S.Schema<AppRoleDeletePeriodRequest>;
90
+
91
+ export interface AppRoleDeletePeriodResponse {}
92
+ export const AppRoleDeletePeriodResponse = /*@__PURE__*/ S.suspend(() =>
93
+ S.Struct({}),
94
+ ).annotate({
95
+ identifier: "AppRoleDeletePeriodResponse",
96
+ }) as any as S.Schema<AppRoleDeletePeriodResponse>;
97
+
98
+ export interface AppRoleDeletePoliciesRequest {
99
+ /** Path that the backend was mounted at */
100
+ approle_mount_path: string;
101
+ /** Name of the role. Must be less than 4096 bytes. */
102
+ role_name: string;
103
+ }
104
+ export const AppRoleDeletePoliciesRequest = /*@__PURE__*/ S.suspend(() =>
105
+ S.Struct({
106
+ approle_mount_path: S.String.pipe(T.Label()),
107
+ role_name: S.String.pipe(T.Label()),
108
+ }).pipe(
109
+ T.Http({
110
+ method: "DELETE",
111
+ uri: "/auth/{approle_mount_path}/role/{role_name}/policies",
112
+ code: 200,
113
+ }),
114
+ ),
115
+ ).annotate({
116
+ identifier: "AppRoleDeletePoliciesRequest",
117
+ }) as any as S.Schema<AppRoleDeletePoliciesRequest>;
118
+
119
+ export interface AppRoleDeletePoliciesResponse {}
120
+ export const AppRoleDeletePoliciesResponse = /*@__PURE__*/ S.suspend(() =>
121
+ S.Struct({}),
122
+ ).annotate({
123
+ identifier: "AppRoleDeletePoliciesResponse",
124
+ }) as any as S.Schema<AppRoleDeletePoliciesResponse>;
125
+
126
+ export interface AppRoleDeleteRoleRequest {
127
+ /** Path that the backend was mounted at */
128
+ approle_mount_path: string;
129
+ /** Name of the role. Must be less than 4096 bytes. */
130
+ role_name: string;
131
+ }
132
+ export const AppRoleDeleteRoleRequest = /*@__PURE__*/ S.suspend(() =>
133
+ S.Struct({
134
+ approle_mount_path: S.String.pipe(T.Label()),
135
+ role_name: S.String.pipe(T.Label()),
136
+ }).pipe(
137
+ T.Http({
138
+ method: "DELETE",
139
+ uri: "/auth/{approle_mount_path}/role/{role_name}",
140
+ code: 200,
141
+ }),
142
+ ),
143
+ ).annotate({
144
+ identifier: "AppRoleDeleteRoleRequest",
145
+ }) as any as S.Schema<AppRoleDeleteRoleRequest>;
146
+
147
+ export interface AppRoleDeleteRoleResponse {}
148
+ export const AppRoleDeleteRoleResponse = /*@__PURE__*/ S.suspend(() =>
149
+ S.Struct({}),
150
+ ).annotate({
151
+ identifier: "AppRoleDeleteRoleResponse",
152
+ }) as any as S.Schema<AppRoleDeleteRoleResponse>;
153
+
154
+ export interface AppRoleDeleteSecretIdBoundCidrsRequest {
155
+ /** Path that the backend was mounted at */
156
+ approle_mount_path: string;
157
+ /** Name of the role. Must be less than 4096 bytes. */
158
+ role_name: string;
159
+ }
160
+ export const AppRoleDeleteSecretIdBoundCidrsRequest = /*@__PURE__*/ S.suspend(
161
+ () =>
162
+ S.Struct({
163
+ approle_mount_path: S.String.pipe(T.Label()),
164
+ role_name: S.String.pipe(T.Label()),
165
+ }).pipe(
166
+ T.Http({
167
+ method: "DELETE",
168
+ uri: "/auth/{approle_mount_path}/role/{role_name}/secret-id-bound-cidrs",
169
+ code: 200,
170
+ }),
171
+ ),
172
+ ).annotate({
173
+ identifier: "AppRoleDeleteSecretIdBoundCidrsRequest",
174
+ }) as any as S.Schema<AppRoleDeleteSecretIdBoundCidrsRequest>;
175
+
176
+ export interface AppRoleDeleteSecretIdBoundCidrsResponse {}
177
+ export const AppRoleDeleteSecretIdBoundCidrsResponse = /*@__PURE__*/ S.suspend(
178
+ () => S.Struct({}),
179
+ ).annotate({
180
+ identifier: "AppRoleDeleteSecretIdBoundCidrsResponse",
181
+ }) as any as S.Schema<AppRoleDeleteSecretIdBoundCidrsResponse>;
182
+
183
+ export interface AppRoleDeleteSecretIdNumUsesRequest {
184
+ /** Path that the backend was mounted at */
185
+ approle_mount_path: string;
186
+ /** Name of the role. Must be less than 4096 bytes. */
187
+ role_name: string;
188
+ }
189
+ export const AppRoleDeleteSecretIdNumUsesRequest = /*@__PURE__*/ S.suspend(() =>
190
+ S.Struct({
191
+ approle_mount_path: S.String.pipe(T.Label()),
192
+ role_name: S.String.pipe(T.Label()),
193
+ }).pipe(
194
+ T.Http({
195
+ method: "DELETE",
196
+ uri: "/auth/{approle_mount_path}/role/{role_name}/secret-id-num-uses",
197
+ code: 200,
198
+ }),
199
+ ),
200
+ ).annotate({
201
+ identifier: "AppRoleDeleteSecretIdNumUsesRequest",
202
+ }) as any as S.Schema<AppRoleDeleteSecretIdNumUsesRequest>;
203
+
204
+ export interface AppRoleDeleteSecretIdNumUsesResponse {}
205
+ export const AppRoleDeleteSecretIdNumUsesResponse = /*@__PURE__*/ S.suspend(
206
+ () => S.Struct({}),
207
+ ).annotate({
208
+ identifier: "AppRoleDeleteSecretIdNumUsesResponse",
209
+ }) as any as S.Schema<AppRoleDeleteSecretIdNumUsesResponse>;
210
+
211
+ export interface AppRoleDeleteSecretIdTtlRequest {
212
+ /** Path that the backend was mounted at */
213
+ approle_mount_path: string;
214
+ /** Name of the role. Must be less than 4096 bytes. */
215
+ role_name: string;
216
+ }
217
+ export const AppRoleDeleteSecretIdTtlRequest = /*@__PURE__*/ S.suspend(() =>
218
+ S.Struct({
219
+ approle_mount_path: S.String.pipe(T.Label()),
220
+ role_name: S.String.pipe(T.Label()),
221
+ }).pipe(
222
+ T.Http({
223
+ method: "DELETE",
224
+ uri: "/auth/{approle_mount_path}/role/{role_name}/secret-id-ttl",
225
+ code: 200,
226
+ }),
227
+ ),
228
+ ).annotate({
229
+ identifier: "AppRoleDeleteSecretIdTtlRequest",
230
+ }) as any as S.Schema<AppRoleDeleteSecretIdTtlRequest>;
231
+
232
+ export interface AppRoleDeleteSecretIdTtlResponse {}
233
+ export const AppRoleDeleteSecretIdTtlResponse = /*@__PURE__*/ S.suspend(() =>
234
+ S.Struct({}),
235
+ ).annotate({
236
+ identifier: "AppRoleDeleteSecretIdTtlResponse",
237
+ }) as any as S.Schema<AppRoleDeleteSecretIdTtlResponse>;
238
+
239
+ export interface AppRoleDeleteTokenBoundCidrsRequest {
240
+ /** Path that the backend was mounted at */
241
+ approle_mount_path: string;
242
+ /** Name of the role. Must be less than 4096 bytes. */
243
+ role_name: string;
244
+ }
245
+ export const AppRoleDeleteTokenBoundCidrsRequest = /*@__PURE__*/ S.suspend(() =>
246
+ S.Struct({
247
+ approle_mount_path: S.String.pipe(T.Label()),
248
+ role_name: S.String.pipe(T.Label()),
249
+ }).pipe(
250
+ T.Http({
251
+ method: "DELETE",
252
+ uri: "/auth/{approle_mount_path}/role/{role_name}/token-bound-cidrs",
253
+ code: 200,
254
+ }),
255
+ ),
256
+ ).annotate({
257
+ identifier: "AppRoleDeleteTokenBoundCidrsRequest",
258
+ }) as any as S.Schema<AppRoleDeleteTokenBoundCidrsRequest>;
259
+
260
+ export interface AppRoleDeleteTokenBoundCidrsResponse {}
261
+ export const AppRoleDeleteTokenBoundCidrsResponse = /*@__PURE__*/ S.suspend(
262
+ () => S.Struct({}),
263
+ ).annotate({
264
+ identifier: "AppRoleDeleteTokenBoundCidrsResponse",
265
+ }) as any as S.Schema<AppRoleDeleteTokenBoundCidrsResponse>;
266
+
267
+ export interface AppRoleDeleteTokenMaxTtlRequest {
268
+ /** Path that the backend was mounted at */
269
+ approle_mount_path: string;
270
+ /** Name of the role. Must be less than 4096 bytes. */
271
+ role_name: string;
272
+ }
273
+ export const AppRoleDeleteTokenMaxTtlRequest = /*@__PURE__*/ S.suspend(() =>
274
+ S.Struct({
275
+ approle_mount_path: S.String.pipe(T.Label()),
276
+ role_name: S.String.pipe(T.Label()),
277
+ }).pipe(
278
+ T.Http({
279
+ method: "DELETE",
280
+ uri: "/auth/{approle_mount_path}/role/{role_name}/token-max-ttl",
281
+ code: 200,
282
+ }),
283
+ ),
284
+ ).annotate({
285
+ identifier: "AppRoleDeleteTokenMaxTtlRequest",
286
+ }) as any as S.Schema<AppRoleDeleteTokenMaxTtlRequest>;
287
+
288
+ export interface AppRoleDeleteTokenMaxTtlResponse {}
289
+ export const AppRoleDeleteTokenMaxTtlResponse = /*@__PURE__*/ S.suspend(() =>
290
+ S.Struct({}),
291
+ ).annotate({
292
+ identifier: "AppRoleDeleteTokenMaxTtlResponse",
293
+ }) as any as S.Schema<AppRoleDeleteTokenMaxTtlResponse>;
294
+
295
+ export interface AppRoleDeleteTokenNumUsesRequest {
296
+ /** Path that the backend was mounted at */
297
+ approle_mount_path: string;
298
+ /** Name of the role. Must be less than 4096 bytes. */
299
+ role_name: string;
300
+ }
301
+ export const AppRoleDeleteTokenNumUsesRequest = /*@__PURE__*/ S.suspend(() =>
302
+ S.Struct({
303
+ approle_mount_path: S.String.pipe(T.Label()),
304
+ role_name: S.String.pipe(T.Label()),
305
+ }).pipe(
306
+ T.Http({
307
+ method: "DELETE",
308
+ uri: "/auth/{approle_mount_path}/role/{role_name}/token-num-uses",
309
+ code: 200,
310
+ }),
311
+ ),
312
+ ).annotate({
313
+ identifier: "AppRoleDeleteTokenNumUsesRequest",
314
+ }) as any as S.Schema<AppRoleDeleteTokenNumUsesRequest>;
315
+
316
+ export interface AppRoleDeleteTokenNumUsesResponse {}
317
+ export const AppRoleDeleteTokenNumUsesResponse = /*@__PURE__*/ S.suspend(() =>
318
+ S.Struct({}),
319
+ ).annotate({
320
+ identifier: "AppRoleDeleteTokenNumUsesResponse",
321
+ }) as any as S.Schema<AppRoleDeleteTokenNumUsesResponse>;
322
+
323
+ export interface AppRoleDeleteTokenTtlRequest {
324
+ /** Path that the backend was mounted at */
325
+ approle_mount_path: string;
326
+ /** Name of the role. Must be less than 4096 bytes. */
327
+ role_name: string;
328
+ }
329
+ export const AppRoleDeleteTokenTtlRequest = /*@__PURE__*/ S.suspend(() =>
330
+ S.Struct({
331
+ approle_mount_path: S.String.pipe(T.Label()),
332
+ role_name: S.String.pipe(T.Label()),
333
+ }).pipe(
334
+ T.Http({
335
+ method: "DELETE",
336
+ uri: "/auth/{approle_mount_path}/role/{role_name}/token-ttl",
337
+ code: 200,
338
+ }),
339
+ ),
340
+ ).annotate({
341
+ identifier: "AppRoleDeleteTokenTtlRequest",
342
+ }) as any as S.Schema<AppRoleDeleteTokenTtlRequest>;
343
+
344
+ export interface AppRoleDeleteTokenTtlResponse {}
345
+ export const AppRoleDeleteTokenTtlResponse = /*@__PURE__*/ S.suspend(() =>
346
+ S.Struct({}),
347
+ ).annotate({
348
+ identifier: "AppRoleDeleteTokenTtlResponse",
349
+ }) as any as S.Schema<AppRoleDeleteTokenTtlResponse>;
350
+
351
+ export interface AppRoleDestroySecretIdRequest {
352
+ /** Path that the backend was mounted at */
353
+ approle_mount_path: string;
354
+ /** Name of the role. Must be less than 4096 bytes. */
355
+ role_name: string;
356
+ /** SecretID attached to the role. */
357
+ secret_id?: string;
358
+ }
359
+ export const AppRoleDestroySecretIdRequest = /*@__PURE__*/ S.suspend(() =>
360
+ S.Struct({
361
+ approle_mount_path: S.String.pipe(T.Label()),
362
+ role_name: S.String.pipe(T.Label()),
363
+ secret_id: S.optional(S.String),
364
+ }).pipe(
365
+ T.Http({
366
+ method: "POST",
367
+ uri: "/auth/{approle_mount_path}/role/{role_name}/secret-id/destroy",
368
+ code: 200,
369
+ }),
370
+ ),
371
+ ).annotate({
372
+ identifier: "AppRoleDestroySecretIdRequest",
373
+ }) as any as S.Schema<AppRoleDestroySecretIdRequest>;
374
+
375
+ export interface AppRoleDestroySecretIdResponse {}
376
+ export const AppRoleDestroySecretIdResponse = /*@__PURE__*/ S.suspend(() =>
377
+ S.Struct({}),
378
+ ).annotate({
379
+ identifier: "AppRoleDestroySecretIdResponse",
380
+ }) as any as S.Schema<AppRoleDestroySecretIdResponse>;
381
+
382
+ export interface AppRoleDestroySecretId2Request {
383
+ /** Path that the backend was mounted at */
384
+ approle_mount_path: string;
385
+ /** Name of the role. Must be less than 4096 bytes. */
386
+ role_name: string;
387
+ }
388
+ export const AppRoleDestroySecretId2Request = /*@__PURE__*/ S.suspend(() =>
389
+ S.Struct({
390
+ approle_mount_path: S.String.pipe(T.Label()),
391
+ role_name: S.String.pipe(T.Label()),
392
+ }).pipe(
393
+ T.Http({
394
+ method: "DELETE",
395
+ uri: "/auth/{approle_mount_path}/role/{role_name}/secret-id/destroy",
396
+ code: 200,
397
+ }),
398
+ ),
399
+ ).annotate({
400
+ identifier: "AppRoleDestroySecretId2Request",
401
+ }) as any as S.Schema<AppRoleDestroySecretId2Request>;
402
+
403
+ export interface AppRoleDestroySecretId2Response {}
404
+ export const AppRoleDestroySecretId2Response = /*@__PURE__*/ S.suspend(() =>
405
+ S.Struct({}),
406
+ ).annotate({
407
+ identifier: "AppRoleDestroySecretId2Response",
408
+ }) as any as S.Schema<AppRoleDestroySecretId2Response>;
409
+
410
+ export interface AppRoleDestroySecretIdByAccessorRequest {
411
+ /** Path that the backend was mounted at */
412
+ approle_mount_path: string;
413
+ /** Name of the role. Must be less than 4096 bytes. */
414
+ role_name: string;
415
+ /** Accessor of the SecretID */
416
+ secret_id_accessor?: string;
417
+ }
418
+ export const AppRoleDestroySecretIdByAccessorRequest = /*@__PURE__*/ S.suspend(
419
+ () =>
420
+ S.Struct({
421
+ approle_mount_path: S.String.pipe(T.Label()),
422
+ role_name: S.String.pipe(T.Label()),
423
+ secret_id_accessor: S.optional(S.String),
424
+ }).pipe(
425
+ T.Http({
426
+ method: "POST",
427
+ uri: "/auth/{approle_mount_path}/role/{role_name}/secret-id-accessor/destroy",
428
+ code: 200,
429
+ }),
430
+ ),
431
+ ).annotate({
432
+ identifier: "AppRoleDestroySecretIdByAccessorRequest",
433
+ }) as any as S.Schema<AppRoleDestroySecretIdByAccessorRequest>;
434
+
435
+ export interface AppRoleDestroySecretIdByAccessorResponse {}
436
+ export const AppRoleDestroySecretIdByAccessorResponse = /*@__PURE__*/ S.suspend(
437
+ () => S.Struct({}),
438
+ ).annotate({
439
+ identifier: "AppRoleDestroySecretIdByAccessorResponse",
440
+ }) as any as S.Schema<AppRoleDestroySecretIdByAccessorResponse>;
441
+
442
+ export interface AppRoleDestroySecretIdByAccessor2Request {
443
+ /** Path that the backend was mounted at */
444
+ approle_mount_path: string;
445
+ /** Name of the role. Must be less than 4096 bytes. */
446
+ role_name: string;
447
+ }
448
+ export const AppRoleDestroySecretIdByAccessor2Request = /*@__PURE__*/ S.suspend(
449
+ () =>
450
+ S.Struct({
451
+ approle_mount_path: S.String.pipe(T.Label()),
452
+ role_name: S.String.pipe(T.Label()),
453
+ }).pipe(
454
+ T.Http({
455
+ method: "DELETE",
456
+ uri: "/auth/{approle_mount_path}/role/{role_name}/secret-id-accessor/destroy",
457
+ code: 200,
458
+ }),
459
+ ),
460
+ ).annotate({
461
+ identifier: "AppRoleDestroySecretIdByAccessor2Request",
462
+ }) as any as S.Schema<AppRoleDestroySecretIdByAccessor2Request>;
463
+
464
+ export interface AppRoleDestroySecretIdByAccessor2Response {}
465
+ export const AppRoleDestroySecretIdByAccessor2Response =
466
+ /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
467
+ identifier: "AppRoleDestroySecretIdByAccessor2Response",
468
+ }) as any as S.Schema<AppRoleDestroySecretIdByAccessor2Response>;
469
+
470
+ export type AppRoleListRolesRequestList = "true";
471
+ export const AppRoleListRolesRequestList = S.String;
472
+
473
+ export interface AppRoleListRolesRequest {
474
+ /** Path that the backend was mounted at */
475
+ approle_mount_path: string;
476
+ /** Must be set to `true` */
477
+ list: AppRoleListRolesRequestList | (string & {});
478
+ }
479
+ export const AppRoleListRolesRequest = /*@__PURE__*/ S.suspend(() =>
480
+ S.Struct({
481
+ approle_mount_path: S.String.pipe(T.Label()),
482
+ list: AppRoleListRolesRequestList.pipe(T.Query()),
483
+ }).pipe(
484
+ T.Http({
485
+ method: "GET",
486
+ uri: "/auth/{approle_mount_path}/role",
487
+ code: 200,
488
+ }),
489
+ ),
490
+ ).annotate({
491
+ identifier: "AppRoleListRolesRequest",
492
+ }) as any as S.Schema<AppRoleListRolesRequest>;
493
+
494
+ export type AppRoleListRolesResponseKeysList = Array<string>;
495
+ export const AppRoleListRolesResponseKeysList = /*@__PURE__*/ S.Array(
496
+ S.String,
497
+ ) as any as S.Schema<AppRoleListRolesResponseKeysList>;
498
+
499
+ export interface AppRoleListRolesResponse {
500
+ keys?: AppRoleListRolesResponseKeysList;
501
+ }
502
+ export const AppRoleListRolesResponse = /*@__PURE__*/ S.suspend(() =>
503
+ S.Struct({
504
+ keys: S.optional(AppRoleListRolesResponseKeysList),
505
+ }),
506
+ ).annotate({
507
+ identifier: "AppRoleListRolesResponse",
508
+ }) as any as S.Schema<AppRoleListRolesResponse>;
509
+
510
+ export type AppRoleListSecretIdsRequestList = "true";
511
+ export const AppRoleListSecretIdsRequestList = S.String;
512
+
513
+ export interface AppRoleListSecretIdsRequest {
514
+ /** Path that the backend was mounted at */
515
+ approle_mount_path: string;
516
+ /** Name of the role. Must be less than 4096 bytes. */
517
+ role_name: string;
518
+ /** Must be set to `true` */
519
+ list: AppRoleListSecretIdsRequestList | (string & {});
520
+ }
521
+ export const AppRoleListSecretIdsRequest = /*@__PURE__*/ S.suspend(() =>
522
+ S.Struct({
523
+ approle_mount_path: S.String.pipe(T.Label()),
524
+ role_name: S.String.pipe(T.Label()),
525
+ list: AppRoleListSecretIdsRequestList.pipe(T.Query()),
526
+ }).pipe(
527
+ T.Http({
528
+ method: "GET",
529
+ uri: "/auth/{approle_mount_path}/role/{role_name}/secret-id",
530
+ code: 200,
531
+ }),
532
+ ),
533
+ ).annotate({
534
+ identifier: "AppRoleListSecretIdsRequest",
535
+ }) as any as S.Schema<AppRoleListSecretIdsRequest>;
536
+
537
+ export type AppRoleListSecretIdsResponseKeysList = Array<string>;
538
+ export const AppRoleListSecretIdsResponseKeysList = /*@__PURE__*/ S.Array(
539
+ S.String,
540
+ ) as any as S.Schema<AppRoleListSecretIdsResponseKeysList>;
541
+
542
+ export interface AppRoleListSecretIdsResponse {
543
+ keys?: AppRoleListSecretIdsResponseKeysList;
544
+ }
545
+ export const AppRoleListSecretIdsResponse = /*@__PURE__*/ S.suspend(() =>
546
+ S.Struct({
547
+ keys: S.optional(AppRoleListSecretIdsResponseKeysList),
548
+ }),
549
+ ).annotate({
550
+ identifier: "AppRoleListSecretIdsResponse",
551
+ }) as any as S.Schema<AppRoleListSecretIdsResponse>;
552
+
553
+ export interface AppRoleLookUpSecretIdRequest {
554
+ /** Path that the backend was mounted at */
555
+ approle_mount_path: string;
556
+ /** Name of the role. Must be less than 4096 bytes. */
557
+ role_name: string;
558
+ /** SecretID attached to the role. */
559
+ secret_id?: string;
560
+ }
561
+ export const AppRoleLookUpSecretIdRequest = /*@__PURE__*/ S.suspend(() =>
562
+ S.Struct({
563
+ approle_mount_path: S.String.pipe(T.Label()),
564
+ role_name: S.String.pipe(T.Label()),
565
+ secret_id: S.optional(S.String),
566
+ }).pipe(
567
+ T.Http({
568
+ method: "POST",
569
+ uri: "/auth/{approle_mount_path}/role/{role_name}/secret-id/lookup",
570
+ code: 200,
571
+ }),
572
+ ),
573
+ ).annotate({
574
+ identifier: "AppRoleLookUpSecretIdRequest",
575
+ }) as any as S.Schema<AppRoleLookUpSecretIdRequest>;
576
+
577
+ /** List of CIDR blocks enforcing secret IDs to be used from specific set of IP addresses. If 'bound_cidr_list' is set on the role, then the list of CIDR blocks listed here should be a subset of the CIDR blocks listed on the role. */
578
+ export type AppRoleLookUpSecretIdResponseCidrListList = Array<string>;
579
+ export const AppRoleLookUpSecretIdResponseCidrListList = /*@__PURE__*/ S.Array(
580
+ S.String,
581
+ ) as any as S.Schema<AppRoleLookUpSecretIdResponseCidrListList>;
582
+
583
+ /** List of CIDR blocks. If set, specifies the blocks of IP addresses which can use the returned token. Should be a subset of the token CIDR blocks listed on the role, if any. */
584
+ export type AppRoleLookUpSecretIdResponseTokenBoundCidrsList = Array<string>;
585
+ export const AppRoleLookUpSecretIdResponseTokenBoundCidrsList =
586
+ /*@__PURE__*/ S.Array(
587
+ S.String,
588
+ ) as any as S.Schema<AppRoleLookUpSecretIdResponseTokenBoundCidrsList>;
589
+
590
+ export interface AppRoleLookUpSecretIdResponse {
591
+ /** List of CIDR blocks enforcing secret IDs to be used from specific set of IP addresses. If 'bound_cidr_list' is set on the role, then the list of CIDR blocks listed here should be a subset of the CIDR blocks listed on the role. */
592
+ cidr_list?: AppRoleLookUpSecretIdResponseCidrListList;
593
+ creation_time?: string;
594
+ expiration_time?: string;
595
+ last_updated_time?: string;
596
+ metadata?: unknown;
597
+ /** Accessor of the secret ID */
598
+ secret_id_accessor?: string;
599
+ /** Number of times a secret ID can access the role, after which the secret ID will expire. */
600
+ secret_id_num_uses?: number;
601
+ /** Duration in seconds after which the issued secret ID expires. */
602
+ secret_id_ttl?: number;
603
+ /** List of CIDR blocks. If set, specifies the blocks of IP addresses which can use the returned token. Should be a subset of the token CIDR blocks listed on the role, if any. */
604
+ token_bound_cidrs?: AppRoleLookUpSecretIdResponseTokenBoundCidrsList;
605
+ }
606
+ export const AppRoleLookUpSecretIdResponse = /*@__PURE__*/ S.suspend(() =>
607
+ S.Struct({
608
+ cidr_list: S.optional(AppRoleLookUpSecretIdResponseCidrListList),
609
+ creation_time: S.optional(S.String),
610
+ expiration_time: S.optional(S.String),
611
+ last_updated_time: S.optional(S.String),
612
+ metadata: S.optional(S.Unknown),
613
+ secret_id_accessor: S.optional(S.String),
614
+ secret_id_num_uses: S.optional(S.Number),
615
+ secret_id_ttl: S.optional(S.Number),
616
+ token_bound_cidrs: S.optional(
617
+ AppRoleLookUpSecretIdResponseTokenBoundCidrsList,
618
+ ),
619
+ }),
620
+ ).annotate({
621
+ identifier: "AppRoleLookUpSecretIdResponse",
622
+ }) as any as S.Schema<AppRoleLookUpSecretIdResponse>;
623
+
624
+ export interface AppRoleLookUpSecretIdByAccessorRequest {
625
+ /** Path that the backend was mounted at */
626
+ approle_mount_path: string;
627
+ /** Name of the role. Must be less than 4096 bytes. */
628
+ role_name: string;
629
+ /** Accessor of the SecretID */
630
+ secret_id_accessor?: string;
631
+ }
632
+ export const AppRoleLookUpSecretIdByAccessorRequest = /*@__PURE__*/ S.suspend(
633
+ () =>
634
+ S.Struct({
635
+ approle_mount_path: S.String.pipe(T.Label()),
636
+ role_name: S.String.pipe(T.Label()),
637
+ secret_id_accessor: S.optional(S.String),
638
+ }).pipe(
639
+ T.Http({
640
+ method: "POST",
641
+ uri: "/auth/{approle_mount_path}/role/{role_name}/secret-id-accessor/lookup",
642
+ code: 200,
643
+ }),
644
+ ),
645
+ ).annotate({
646
+ identifier: "AppRoleLookUpSecretIdByAccessorRequest",
647
+ }) as any as S.Schema<AppRoleLookUpSecretIdByAccessorRequest>;
648
+
649
+ /** List of CIDR blocks enforcing secret IDs to be used from specific set of IP addresses. If 'bound_cidr_list' is set on the role, then the list of CIDR blocks listed here should be a subset of the CIDR blocks listed on the role. */
650
+ export type AppRoleLookUpSecretIdByAccessorResponseCidrListList = Array<string>;
651
+ export const AppRoleLookUpSecretIdByAccessorResponseCidrListList =
652
+ /*@__PURE__*/ S.Array(
653
+ S.String,
654
+ ) as any as S.Schema<AppRoleLookUpSecretIdByAccessorResponseCidrListList>;
655
+
656
+ /** List of CIDR blocks. If set, specifies the blocks of IP addresses which can use the returned token. Should be a subset of the token CIDR blocks listed on the role, if any. */
657
+ export type AppRoleLookUpSecretIdByAccessorResponseTokenBoundCidrsList =
658
+ Array<string>;
659
+ export const AppRoleLookUpSecretIdByAccessorResponseTokenBoundCidrsList =
660
+ /*@__PURE__*/ S.Array(
661
+ S.String,
662
+ ) as any as S.Schema<AppRoleLookUpSecretIdByAccessorResponseTokenBoundCidrsList>;
663
+
664
+ export interface AppRoleLookUpSecretIdByAccessorResponse {
665
+ /** List of CIDR blocks enforcing secret IDs to be used from specific set of IP addresses. If 'bound_cidr_list' is set on the role, then the list of CIDR blocks listed here should be a subset of the CIDR blocks listed on the role. */
666
+ cidr_list?: AppRoleLookUpSecretIdByAccessorResponseCidrListList;
667
+ creation_time?: string;
668
+ expiration_time?: string;
669
+ last_updated_time?: string;
670
+ metadata?: unknown;
671
+ /** Accessor of the secret ID */
672
+ secret_id_accessor?: string;
673
+ /** Number of times a secret ID can access the role, after which the secret ID will expire. */
674
+ secret_id_num_uses?: number;
675
+ /** Duration in seconds after which the issued secret ID expires. */
676
+ secret_id_ttl?: number;
677
+ /** List of CIDR blocks. If set, specifies the blocks of IP addresses which can use the returned token. Should be a subset of the token CIDR blocks listed on the role, if any. */
678
+ token_bound_cidrs?: AppRoleLookUpSecretIdByAccessorResponseTokenBoundCidrsList;
679
+ }
680
+ export const AppRoleLookUpSecretIdByAccessorResponse = /*@__PURE__*/ S.suspend(
681
+ () =>
682
+ S.Struct({
683
+ cidr_list: S.optional(
684
+ AppRoleLookUpSecretIdByAccessorResponseCidrListList,
685
+ ),
686
+ creation_time: S.optional(S.String),
687
+ expiration_time: S.optional(S.String),
688
+ last_updated_time: S.optional(S.String),
689
+ metadata: S.optional(S.Unknown),
690
+ secret_id_accessor: S.optional(S.String),
691
+ secret_id_num_uses: S.optional(S.Number),
692
+ secret_id_ttl: S.optional(S.Number),
693
+ token_bound_cidrs: S.optional(
694
+ AppRoleLookUpSecretIdByAccessorResponseTokenBoundCidrsList,
695
+ ),
696
+ }),
697
+ ).annotate({
698
+ identifier: "AppRoleLookUpSecretIdByAccessorResponse",
699
+ }) as any as S.Schema<AppRoleLookUpSecretIdByAccessorResponse>;
700
+
701
+ export interface AppRoleReadBindSecretIdRequest {
702
+ /** Path that the backend was mounted at */
703
+ approle_mount_path: string;
704
+ /** Name of the role. Must be less than 4096 bytes. */
705
+ role_name: string;
706
+ }
707
+ export const AppRoleReadBindSecretIdRequest = /*@__PURE__*/ S.suspend(() =>
708
+ S.Struct({
709
+ approle_mount_path: S.String.pipe(T.Label()),
710
+ role_name: S.String.pipe(T.Label()),
711
+ }).pipe(
712
+ T.Http({
713
+ method: "GET",
714
+ uri: "/auth/{approle_mount_path}/role/{role_name}/bind-secret-id",
715
+ code: 200,
716
+ }),
717
+ ),
718
+ ).annotate({
719
+ identifier: "AppRoleReadBindSecretIdRequest",
720
+ }) as any as S.Schema<AppRoleReadBindSecretIdRequest>;
721
+
722
+ export interface AppRoleReadBindSecretIdResponse {
723
+ /** Impose secret_id to be presented when logging in using this role. Defaults to 'true'. */
724
+ bind_secret_id?: boolean;
725
+ }
726
+ export const AppRoleReadBindSecretIdResponse = /*@__PURE__*/ S.suspend(() =>
727
+ S.Struct({
728
+ bind_secret_id: S.optional(S.Boolean),
729
+ }),
730
+ ).annotate({
731
+ identifier: "AppRoleReadBindSecretIdResponse",
732
+ }) as any as S.Schema<AppRoleReadBindSecretIdResponse>;
733
+
734
+ export interface AppRoleReadBoundCidrListRequest {
735
+ /** Path that the backend was mounted at */
736
+ approle_mount_path: string;
737
+ /** Name of the role. Must be less than 4096 bytes. */
738
+ role_name: string;
739
+ }
740
+ export const AppRoleReadBoundCidrListRequest = /*@__PURE__*/ S.suspend(() =>
741
+ S.Struct({
742
+ approle_mount_path: S.String.pipe(T.Label()),
743
+ role_name: S.String.pipe(T.Label()),
744
+ }).pipe(
745
+ T.Http({
746
+ method: "GET",
747
+ uri: "/auth/{approle_mount_path}/role/{role_name}/bound-cidr-list",
748
+ code: 200,
749
+ }),
750
+ ),
751
+ ).annotate({
752
+ identifier: "AppRoleReadBoundCidrListRequest",
753
+ }) as any as S.Schema<AppRoleReadBoundCidrListRequest>;
754
+
755
+ /** Deprecated: Please use "secret_id_bound_cidrs" instead. Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. */
756
+ export type AppRoleReadBoundCidrListResponseBoundCidrListList = Array<string>;
757
+ export const AppRoleReadBoundCidrListResponseBoundCidrListList =
758
+ /*@__PURE__*/ S.Array(
759
+ S.String,
760
+ ) as any as S.Schema<AppRoleReadBoundCidrListResponseBoundCidrListList>;
761
+
762
+ export interface AppRoleReadBoundCidrListResponse {
763
+ /** Deprecated: Please use "secret_id_bound_cidrs" instead. Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. */
764
+ bound_cidr_list?: AppRoleReadBoundCidrListResponseBoundCidrListList;
765
+ }
766
+ export const AppRoleReadBoundCidrListResponse = /*@__PURE__*/ S.suspend(() =>
767
+ S.Struct({
768
+ bound_cidr_list: S.optional(
769
+ AppRoleReadBoundCidrListResponseBoundCidrListList,
770
+ ),
771
+ }),
772
+ ).annotate({
773
+ identifier: "AppRoleReadBoundCidrListResponse",
774
+ }) as any as S.Schema<AppRoleReadBoundCidrListResponse>;
775
+
776
+ export interface AppRoleReadLocalSecretIdsRequest {
777
+ /** Path that the backend was mounted at */
778
+ approle_mount_path: string;
779
+ /** Name of the role. Must be less than 4096 bytes. */
780
+ role_name: string;
781
+ }
782
+ export const AppRoleReadLocalSecretIdsRequest = /*@__PURE__*/ S.suspend(() =>
783
+ S.Struct({
784
+ approle_mount_path: S.String.pipe(T.Label()),
785
+ role_name: S.String.pipe(T.Label()),
786
+ }).pipe(
787
+ T.Http({
788
+ method: "GET",
789
+ uri: "/auth/{approle_mount_path}/role/{role_name}/local-secret-ids",
790
+ code: 200,
791
+ }),
792
+ ),
793
+ ).annotate({
794
+ identifier: "AppRoleReadLocalSecretIdsRequest",
795
+ }) as any as S.Schema<AppRoleReadLocalSecretIdsRequest>;
796
+
797
+ export interface AppRoleReadLocalSecretIdsResponse {
798
+ /** If true, the secret identifiers generated using this role will be cluster local. This can only be set during role creation and once set, it can't be reset later */
799
+ local_secret_ids?: boolean;
800
+ }
801
+ export const AppRoleReadLocalSecretIdsResponse = /*@__PURE__*/ S.suspend(() =>
802
+ S.Struct({
803
+ local_secret_ids: S.optional(S.Boolean),
804
+ }),
805
+ ).annotate({
806
+ identifier: "AppRoleReadLocalSecretIdsResponse",
807
+ }) as any as S.Schema<AppRoleReadLocalSecretIdsResponse>;
808
+
809
+ export interface AppRoleReadPeriodRequest {
810
+ /** Path that the backend was mounted at */
811
+ approle_mount_path: string;
812
+ /** Name of the role. Must be less than 4096 bytes. */
813
+ role_name: string;
814
+ }
815
+ export const AppRoleReadPeriodRequest = /*@__PURE__*/ S.suspend(() =>
816
+ S.Struct({
817
+ approle_mount_path: S.String.pipe(T.Label()),
818
+ role_name: S.String.pipe(T.Label()),
819
+ }).pipe(
820
+ T.Http({
821
+ method: "GET",
822
+ uri: "/auth/{approle_mount_path}/role/{role_name}/period",
823
+ code: 200,
824
+ }),
825
+ ),
826
+ ).annotate({
827
+ identifier: "AppRoleReadPeriodRequest",
828
+ }) as any as S.Schema<AppRoleReadPeriodRequest>;
829
+
830
+ export interface AppRoleReadPeriodResponse {
831
+ /** Use "token_period" instead. If this and "token_period" are both specified, only "token_period" will be used. */
832
+ period?: number;
833
+ /** If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). */
834
+ token_period?: number;
835
+ }
836
+ export const AppRoleReadPeriodResponse = /*@__PURE__*/ S.suspend(() =>
837
+ S.Struct({
838
+ period: S.optional(S.Number),
839
+ token_period: S.optional(S.Number),
840
+ }),
841
+ ).annotate({
842
+ identifier: "AppRoleReadPeriodResponse",
843
+ }) as any as S.Schema<AppRoleReadPeriodResponse>;
844
+
845
+ export interface AppRoleReadPoliciesRequest {
846
+ /** Path that the backend was mounted at */
847
+ approle_mount_path: string;
848
+ /** Name of the role. Must be less than 4096 bytes. */
849
+ role_name: string;
850
+ }
851
+ export const AppRoleReadPoliciesRequest = /*@__PURE__*/ S.suspend(() =>
852
+ S.Struct({
853
+ approle_mount_path: S.String.pipe(T.Label()),
854
+ role_name: S.String.pipe(T.Label()),
855
+ }).pipe(
856
+ T.Http({
857
+ method: "GET",
858
+ uri: "/auth/{approle_mount_path}/role/{role_name}/policies",
859
+ code: 200,
860
+ }),
861
+ ),
862
+ ).annotate({
863
+ identifier: "AppRoleReadPoliciesRequest",
864
+ }) as any as S.Schema<AppRoleReadPoliciesRequest>;
865
+
866
+ /** Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. */
867
+ export type AppRoleReadPoliciesResponsePoliciesList = Array<string>;
868
+ export const AppRoleReadPoliciesResponsePoliciesList = /*@__PURE__*/ S.Array(
869
+ S.String,
870
+ ) as any as S.Schema<AppRoleReadPoliciesResponsePoliciesList>;
871
+
872
+ /** Comma-separated list of policies */
873
+ export type AppRoleReadPoliciesResponseTokenPoliciesList = Array<string>;
874
+ export const AppRoleReadPoliciesResponseTokenPoliciesList =
875
+ /*@__PURE__*/ S.Array(
876
+ S.String,
877
+ ) as any as S.Schema<AppRoleReadPoliciesResponseTokenPoliciesList>;
878
+
879
+ export interface AppRoleReadPoliciesResponse {
880
+ /** Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. */
881
+ policies?: AppRoleReadPoliciesResponsePoliciesList;
882
+ /** Comma-separated list of policies */
883
+ token_policies?: AppRoleReadPoliciesResponseTokenPoliciesList;
884
+ }
885
+ export const AppRoleReadPoliciesResponse = /*@__PURE__*/ S.suspend(() =>
886
+ S.Struct({
887
+ policies: S.optional(AppRoleReadPoliciesResponsePoliciesList),
888
+ token_policies: S.optional(AppRoleReadPoliciesResponseTokenPoliciesList),
889
+ }),
890
+ ).annotate({
891
+ identifier: "AppRoleReadPoliciesResponse",
892
+ }) as any as S.Schema<AppRoleReadPoliciesResponse>;
893
+
894
+ export interface AppRoleReadRoleRequest {
895
+ /** Path that the backend was mounted at */
896
+ approle_mount_path: string;
897
+ /** Name of the role. Must be less than 4096 bytes. */
898
+ role_name: string;
899
+ }
900
+ export const AppRoleReadRoleRequest = /*@__PURE__*/ S.suspend(() =>
901
+ S.Struct({
902
+ approle_mount_path: S.String.pipe(T.Label()),
903
+ role_name: S.String.pipe(T.Label()),
904
+ }).pipe(
905
+ T.Http({
906
+ method: "GET",
907
+ uri: "/auth/{approle_mount_path}/role/{role_name}",
908
+ code: 200,
909
+ }),
910
+ ),
911
+ ).annotate({
912
+ identifier: "AppRoleReadRoleRequest",
913
+ }) as any as S.Schema<AppRoleReadRoleRequest>;
914
+
915
+ /** Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. */
916
+ export type AppRoleReadRoleResponsePoliciesList = Array<string>;
917
+ export const AppRoleReadRoleResponsePoliciesList = /*@__PURE__*/ S.Array(
918
+ S.String,
919
+ ) as any as S.Schema<AppRoleReadRoleResponsePoliciesList>;
920
+
921
+ /** Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. */
922
+ export type AppRoleReadRoleResponseSecretIdBoundCidrsList = Array<string>;
923
+ export const AppRoleReadRoleResponseSecretIdBoundCidrsList =
924
+ /*@__PURE__*/ S.Array(
925
+ S.String,
926
+ ) as any as S.Schema<AppRoleReadRoleResponseSecretIdBoundCidrsList>;
927
+
928
+ /** Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. */
929
+ export type AppRoleReadRoleResponseTokenBoundCidrsList = Array<string>;
930
+ export const AppRoleReadRoleResponseTokenBoundCidrsList = /*@__PURE__*/ S.Array(
931
+ S.String,
932
+ ) as any as S.Schema<AppRoleReadRoleResponseTokenBoundCidrsList>;
933
+
934
+ /** Comma-separated list of policies */
935
+ export type AppRoleReadRoleResponseTokenPoliciesList = Array<string>;
936
+ export const AppRoleReadRoleResponseTokenPoliciesList = /*@__PURE__*/ S.Array(
937
+ S.String,
938
+ ) as any as S.Schema<AppRoleReadRoleResponseTokenPoliciesList>;
939
+
940
+ export interface AppRoleReadRoleResponse {
941
+ /** Impose secret ID to be presented when logging in using this role. */
942
+ bind_secret_id?: boolean;
943
+ /** If true, the secret identifiers generated using this role will be cluster local. This can only be set during role creation and once set, it can't be reset later */
944
+ local_secret_ids?: boolean;
945
+ /** Use "token_period" instead. If this and "token_period" are both specified, only "token_period" will be used. */
946
+ period?: number;
947
+ /** Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. */
948
+ policies?: AppRoleReadRoleResponsePoliciesList;
949
+ /** Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. */
950
+ secret_id_bound_cidrs?: AppRoleReadRoleResponseSecretIdBoundCidrsList;
951
+ /** Number of times a secret ID can access the role, after which the secret ID will expire. */
952
+ secret_id_num_uses?: number;
953
+ /** Duration in seconds after which the issued secret ID expires. */
954
+ secret_id_ttl?: number;
955
+ /** Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. */
956
+ token_bound_cidrs?: AppRoleReadRoleResponseTokenBoundCidrsList;
957
+ /** If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. */
958
+ token_explicit_max_ttl?: number;
959
+ /** The maximum lifetime of the generated token */
960
+ token_max_ttl?: number;
961
+ /** If true, the 'default' policy will not automatically be added to generated tokens */
962
+ token_no_default_policy?: boolean;
963
+ /** The maximum number of times a token may be used, a value of zero means unlimited */
964
+ token_num_uses?: number;
965
+ /** If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. */
966
+ token_period?: number;
967
+ /** Comma-separated list of policies */
968
+ token_policies?: AppRoleReadRoleResponseTokenPoliciesList;
969
+ /** If true, CIDRs for the token will be strictly bound to the source IP address of the login request */
970
+ token_strictly_bind_ip?: boolean;
971
+ /** The initial ttl of the token to generate */
972
+ token_ttl?: number;
973
+ /** The type of token to generate, service or batch */
974
+ token_type?: string;
975
+ }
976
+ export const AppRoleReadRoleResponse = /*@__PURE__*/ S.suspend(() =>
977
+ S.Struct({
978
+ bind_secret_id: S.optional(S.Boolean),
979
+ local_secret_ids: S.optional(S.Boolean),
980
+ period: S.optional(S.Number),
981
+ policies: S.optional(AppRoleReadRoleResponsePoliciesList),
982
+ secret_id_bound_cidrs: S.optional(
983
+ AppRoleReadRoleResponseSecretIdBoundCidrsList,
984
+ ),
985
+ secret_id_num_uses: S.optional(S.Number),
986
+ secret_id_ttl: S.optional(S.Number),
987
+ token_bound_cidrs: S.optional(AppRoleReadRoleResponseTokenBoundCidrsList),
988
+ token_explicit_max_ttl: S.optional(S.Number),
989
+ token_max_ttl: S.optional(S.Number),
990
+ token_no_default_policy: S.optional(S.Boolean),
991
+ token_num_uses: S.optional(S.Number),
992
+ token_period: S.optional(S.Number),
993
+ token_policies: S.optional(AppRoleReadRoleResponseTokenPoliciesList),
994
+ token_strictly_bind_ip: S.optional(S.Boolean),
995
+ token_ttl: S.optional(S.Number),
996
+ token_type: S.optional(S.String),
997
+ }),
998
+ ).annotate({
999
+ identifier: "AppRoleReadRoleResponse",
1000
+ }) as any as S.Schema<AppRoleReadRoleResponse>;
1001
+
1002
+ export interface AppRoleReadRoleIdRequest {
1003
+ /** Path that the backend was mounted at */
1004
+ approle_mount_path: string;
1005
+ /** Name of the role. Must be less than 4096 bytes. */
1006
+ role_name: string;
1007
+ }
1008
+ export const AppRoleReadRoleIdRequest = /*@__PURE__*/ S.suspend(() =>
1009
+ S.Struct({
1010
+ approle_mount_path: S.String.pipe(T.Label()),
1011
+ role_name: S.String.pipe(T.Label()),
1012
+ }).pipe(
1013
+ T.Http({
1014
+ method: "GET",
1015
+ uri: "/auth/{approle_mount_path}/role/{role_name}/role-id",
1016
+ code: 200,
1017
+ }),
1018
+ ),
1019
+ ).annotate({
1020
+ identifier: "AppRoleReadRoleIdRequest",
1021
+ }) as any as S.Schema<AppRoleReadRoleIdRequest>;
1022
+
1023
+ export interface AppRoleReadRoleIdResponse {
1024
+ /** Identifier of the role. Defaults to a UUID. */
1025
+ role_id?: string;
1026
+ }
1027
+ export const AppRoleReadRoleIdResponse = /*@__PURE__*/ S.suspend(() =>
1028
+ S.Struct({
1029
+ role_id: S.optional(S.String),
1030
+ }),
1031
+ ).annotate({
1032
+ identifier: "AppRoleReadRoleIdResponse",
1033
+ }) as any as S.Schema<AppRoleReadRoleIdResponse>;
1034
+
1035
+ export interface AppRoleReadSecretIdBoundCidrsRequest {
1036
+ /** Path that the backend was mounted at */
1037
+ approle_mount_path: string;
1038
+ /** Name of the role. Must be less than 4096 bytes. */
1039
+ role_name: string;
1040
+ }
1041
+ export const AppRoleReadSecretIdBoundCidrsRequest = /*@__PURE__*/ S.suspend(
1042
+ () =>
1043
+ S.Struct({
1044
+ approle_mount_path: S.String.pipe(T.Label()),
1045
+ role_name: S.String.pipe(T.Label()),
1046
+ }).pipe(
1047
+ T.Http({
1048
+ method: "GET",
1049
+ uri: "/auth/{approle_mount_path}/role/{role_name}/secret-id-bound-cidrs",
1050
+ code: 200,
1051
+ }),
1052
+ ),
1053
+ ).annotate({
1054
+ identifier: "AppRoleReadSecretIdBoundCidrsRequest",
1055
+ }) as any as S.Schema<AppRoleReadSecretIdBoundCidrsRequest>;
1056
+
1057
+ /** Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. */
1058
+ export type AppRoleReadSecretIdBoundCidrsResponseSecretIdBoundCidrsList =
1059
+ Array<string>;
1060
+ export const AppRoleReadSecretIdBoundCidrsResponseSecretIdBoundCidrsList =
1061
+ /*@__PURE__*/ S.Array(
1062
+ S.String,
1063
+ ) as any as S.Schema<AppRoleReadSecretIdBoundCidrsResponseSecretIdBoundCidrsList>;
1064
+
1065
+ export interface AppRoleReadSecretIdBoundCidrsResponse {
1066
+ /** Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. */
1067
+ secret_id_bound_cidrs?: AppRoleReadSecretIdBoundCidrsResponseSecretIdBoundCidrsList;
1068
+ }
1069
+ export const AppRoleReadSecretIdBoundCidrsResponse = /*@__PURE__*/ S.suspend(
1070
+ () =>
1071
+ S.Struct({
1072
+ secret_id_bound_cidrs: S.optional(
1073
+ AppRoleReadSecretIdBoundCidrsResponseSecretIdBoundCidrsList,
1074
+ ),
1075
+ }),
1076
+ ).annotate({
1077
+ identifier: "AppRoleReadSecretIdBoundCidrsResponse",
1078
+ }) as any as S.Schema<AppRoleReadSecretIdBoundCidrsResponse>;
1079
+
1080
+ export interface AppRoleReadSecretIdNumUsesRequest {
1081
+ /** Path that the backend was mounted at */
1082
+ approle_mount_path: string;
1083
+ /** Name of the role. Must be less than 4096 bytes. */
1084
+ role_name: string;
1085
+ }
1086
+ export const AppRoleReadSecretIdNumUsesRequest = /*@__PURE__*/ S.suspend(() =>
1087
+ S.Struct({
1088
+ approle_mount_path: S.String.pipe(T.Label()),
1089
+ role_name: S.String.pipe(T.Label()),
1090
+ }).pipe(
1091
+ T.Http({
1092
+ method: "GET",
1093
+ uri: "/auth/{approle_mount_path}/role/{role_name}/secret-id-num-uses",
1094
+ code: 200,
1095
+ }),
1096
+ ),
1097
+ ).annotate({
1098
+ identifier: "AppRoleReadSecretIdNumUsesRequest",
1099
+ }) as any as S.Schema<AppRoleReadSecretIdNumUsesRequest>;
1100
+
1101
+ export interface AppRoleReadSecretIdNumUsesResponse {
1102
+ /** Number of times a secret ID can access the role, after which the SecretID will expire. Defaults to 0 meaning that the secret ID is of unlimited use. */
1103
+ secret_id_num_uses?: number;
1104
+ }
1105
+ export const AppRoleReadSecretIdNumUsesResponse = /*@__PURE__*/ S.suspend(() =>
1106
+ S.Struct({
1107
+ secret_id_num_uses: S.optional(S.Number),
1108
+ }),
1109
+ ).annotate({
1110
+ identifier: "AppRoleReadSecretIdNumUsesResponse",
1111
+ }) as any as S.Schema<AppRoleReadSecretIdNumUsesResponse>;
1112
+
1113
+ export interface AppRoleReadSecretIdTtlRequest {
1114
+ /** Path that the backend was mounted at */
1115
+ approle_mount_path: string;
1116
+ /** Name of the role. Must be less than 4096 bytes. */
1117
+ role_name: string;
1118
+ }
1119
+ export const AppRoleReadSecretIdTtlRequest = /*@__PURE__*/ S.suspend(() =>
1120
+ S.Struct({
1121
+ approle_mount_path: S.String.pipe(T.Label()),
1122
+ role_name: S.String.pipe(T.Label()),
1123
+ }).pipe(
1124
+ T.Http({
1125
+ method: "GET",
1126
+ uri: "/auth/{approle_mount_path}/role/{role_name}/secret-id-ttl",
1127
+ code: 200,
1128
+ }),
1129
+ ),
1130
+ ).annotate({
1131
+ identifier: "AppRoleReadSecretIdTtlRequest",
1132
+ }) as any as S.Schema<AppRoleReadSecretIdTtlRequest>;
1133
+
1134
+ export interface AppRoleReadSecretIdTtlResponse {
1135
+ /** Duration in seconds after which the issued secret ID should expire. Defaults to 0, meaning no expiration. */
1136
+ secret_id_ttl?: number;
1137
+ }
1138
+ export const AppRoleReadSecretIdTtlResponse = /*@__PURE__*/ S.suspend(() =>
1139
+ S.Struct({
1140
+ secret_id_ttl: S.optional(S.Number),
1141
+ }),
1142
+ ).annotate({
1143
+ identifier: "AppRoleReadSecretIdTtlResponse",
1144
+ }) as any as S.Schema<AppRoleReadSecretIdTtlResponse>;
1145
+
1146
+ export interface AppRoleReadTokenBoundCidrsRequest {
1147
+ /** Path that the backend was mounted at */
1148
+ approle_mount_path: string;
1149
+ /** Name of the role. Must be less than 4096 bytes. */
1150
+ role_name: string;
1151
+ }
1152
+ export const AppRoleReadTokenBoundCidrsRequest = /*@__PURE__*/ S.suspend(() =>
1153
+ S.Struct({
1154
+ approle_mount_path: S.String.pipe(T.Label()),
1155
+ role_name: S.String.pipe(T.Label()),
1156
+ }).pipe(
1157
+ T.Http({
1158
+ method: "GET",
1159
+ uri: "/auth/{approle_mount_path}/role/{role_name}/token-bound-cidrs",
1160
+ code: 200,
1161
+ }),
1162
+ ),
1163
+ ).annotate({
1164
+ identifier: "AppRoleReadTokenBoundCidrsRequest",
1165
+ }) as any as S.Schema<AppRoleReadTokenBoundCidrsRequest>;
1166
+
1167
+ /** Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can use the returned token. Should be a subset of the token CIDR blocks listed on the role, if any. */
1168
+ export type AppRoleReadTokenBoundCidrsResponseTokenBoundCidrsList =
1169
+ Array<string>;
1170
+ export const AppRoleReadTokenBoundCidrsResponseTokenBoundCidrsList =
1171
+ /*@__PURE__*/ S.Array(
1172
+ S.String,
1173
+ ) as any as S.Schema<AppRoleReadTokenBoundCidrsResponseTokenBoundCidrsList>;
1174
+
1175
+ export interface AppRoleReadTokenBoundCidrsResponse {
1176
+ /** Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can use the returned token. Should be a subset of the token CIDR blocks listed on the role, if any. */
1177
+ token_bound_cidrs?: AppRoleReadTokenBoundCidrsResponseTokenBoundCidrsList;
1178
+ }
1179
+ export const AppRoleReadTokenBoundCidrsResponse = /*@__PURE__*/ S.suspend(() =>
1180
+ S.Struct({
1181
+ token_bound_cidrs: S.optional(
1182
+ AppRoleReadTokenBoundCidrsResponseTokenBoundCidrsList,
1183
+ ),
1184
+ }),
1185
+ ).annotate({
1186
+ identifier: "AppRoleReadTokenBoundCidrsResponse",
1187
+ }) as any as S.Schema<AppRoleReadTokenBoundCidrsResponse>;
1188
+
1189
+ export interface AppRoleReadTokenMaxTtlRequest {
1190
+ /** Path that the backend was mounted at */
1191
+ approle_mount_path: string;
1192
+ /** Name of the role. Must be less than 4096 bytes. */
1193
+ role_name: string;
1194
+ }
1195
+ export const AppRoleReadTokenMaxTtlRequest = /*@__PURE__*/ S.suspend(() =>
1196
+ S.Struct({
1197
+ approle_mount_path: S.String.pipe(T.Label()),
1198
+ role_name: S.String.pipe(T.Label()),
1199
+ }).pipe(
1200
+ T.Http({
1201
+ method: "GET",
1202
+ uri: "/auth/{approle_mount_path}/role/{role_name}/token-max-ttl",
1203
+ code: 200,
1204
+ }),
1205
+ ),
1206
+ ).annotate({
1207
+ identifier: "AppRoleReadTokenMaxTtlRequest",
1208
+ }) as any as S.Schema<AppRoleReadTokenMaxTtlRequest>;
1209
+
1210
+ export interface AppRoleReadTokenMaxTtlResponse {
1211
+ /** The maximum lifetime of the generated token */
1212
+ token_max_ttl?: number;
1213
+ }
1214
+ export const AppRoleReadTokenMaxTtlResponse = /*@__PURE__*/ S.suspend(() =>
1215
+ S.Struct({
1216
+ token_max_ttl: S.optional(S.Number),
1217
+ }),
1218
+ ).annotate({
1219
+ identifier: "AppRoleReadTokenMaxTtlResponse",
1220
+ }) as any as S.Schema<AppRoleReadTokenMaxTtlResponse>;
1221
+
1222
+ export interface AppRoleReadTokenNumUsesRequest {
1223
+ /** Path that the backend was mounted at */
1224
+ approle_mount_path: string;
1225
+ /** Name of the role. Must be less than 4096 bytes. */
1226
+ role_name: string;
1227
+ }
1228
+ export const AppRoleReadTokenNumUsesRequest = /*@__PURE__*/ S.suspend(() =>
1229
+ S.Struct({
1230
+ approle_mount_path: S.String.pipe(T.Label()),
1231
+ role_name: S.String.pipe(T.Label()),
1232
+ }).pipe(
1233
+ T.Http({
1234
+ method: "GET",
1235
+ uri: "/auth/{approle_mount_path}/role/{role_name}/token-num-uses",
1236
+ code: 200,
1237
+ }),
1238
+ ),
1239
+ ).annotate({
1240
+ identifier: "AppRoleReadTokenNumUsesRequest",
1241
+ }) as any as S.Schema<AppRoleReadTokenNumUsesRequest>;
1242
+
1243
+ export interface AppRoleReadTokenNumUsesResponse {
1244
+ /** The maximum number of times a token may be used, a value of zero means unlimited */
1245
+ token_num_uses?: number;
1246
+ }
1247
+ export const AppRoleReadTokenNumUsesResponse = /*@__PURE__*/ S.suspend(() =>
1248
+ S.Struct({
1249
+ token_num_uses: S.optional(S.Number),
1250
+ }),
1251
+ ).annotate({
1252
+ identifier: "AppRoleReadTokenNumUsesResponse",
1253
+ }) as any as S.Schema<AppRoleReadTokenNumUsesResponse>;
1254
+
1255
+ export interface AppRoleReadTokenTtlRequest {
1256
+ /** Path that the backend was mounted at */
1257
+ approle_mount_path: string;
1258
+ /** Name of the role. Must be less than 4096 bytes. */
1259
+ role_name: string;
1260
+ }
1261
+ export const AppRoleReadTokenTtlRequest = /*@__PURE__*/ S.suspend(() =>
1262
+ S.Struct({
1263
+ approle_mount_path: S.String.pipe(T.Label()),
1264
+ role_name: S.String.pipe(T.Label()),
1265
+ }).pipe(
1266
+ T.Http({
1267
+ method: "GET",
1268
+ uri: "/auth/{approle_mount_path}/role/{role_name}/token-ttl",
1269
+ code: 200,
1270
+ }),
1271
+ ),
1272
+ ).annotate({
1273
+ identifier: "AppRoleReadTokenTtlRequest",
1274
+ }) as any as S.Schema<AppRoleReadTokenTtlRequest>;
1275
+
1276
+ export interface AppRoleReadTokenTtlResponse {
1277
+ /** The initial ttl of the token to generate */
1278
+ token_ttl?: number;
1279
+ }
1280
+ export const AppRoleReadTokenTtlResponse = /*@__PURE__*/ S.suspend(() =>
1281
+ S.Struct({
1282
+ token_ttl: S.optional(S.Number),
1283
+ }),
1284
+ ).annotate({
1285
+ identifier: "AppRoleReadTokenTtlResponse",
1286
+ }) as any as S.Schema<AppRoleReadTokenTtlResponse>;
1287
+
1288
+ export interface AppRoleTidySecretIdRequest {
1289
+ /** Path that the backend was mounted at */
1290
+ approle_mount_path: string;
1291
+ }
1292
+ export const AppRoleTidySecretIdRequest = /*@__PURE__*/ S.suspend(() =>
1293
+ S.Struct({
1294
+ approle_mount_path: S.String.pipe(T.Label()),
1295
+ }).pipe(
1296
+ T.Http({
1297
+ method: "POST",
1298
+ uri: "/auth/{approle_mount_path}/tidy/secret-id",
1299
+ code: 200,
1300
+ }),
1301
+ ),
1302
+ ).annotate({
1303
+ identifier: "AppRoleTidySecretIdRequest",
1304
+ }) as any as S.Schema<AppRoleTidySecretIdRequest>;
1305
+
1306
+ export interface AppRoleTidySecretIdResponse {}
1307
+ export const AppRoleTidySecretIdResponse = /*@__PURE__*/ S.suspend(() =>
1308
+ S.Struct({}),
1309
+ ).annotate({
1310
+ identifier: "AppRoleTidySecretIdResponse",
1311
+ }) as any as S.Schema<AppRoleTidySecretIdResponse>;
1312
+
1313
+ export interface AppRoleWriteBindSecretIdRequest {
1314
+ /** Path that the backend was mounted at */
1315
+ approle_mount_path: string;
1316
+ /** Name of the role. Must be less than 4096 bytes. */
1317
+ role_name: string;
1318
+ /** Impose secret_id to be presented when logging in using this role. */
1319
+ bind_secret_id?: boolean;
1320
+ }
1321
+ export const AppRoleWriteBindSecretIdRequest = /*@__PURE__*/ S.suspend(() =>
1322
+ S.Struct({
1323
+ approle_mount_path: S.String.pipe(T.Label()),
1324
+ role_name: S.String.pipe(T.Label()),
1325
+ bind_secret_id: S.optional(S.Boolean),
1326
+ }).pipe(
1327
+ T.Http({
1328
+ method: "POST",
1329
+ uri: "/auth/{approle_mount_path}/role/{role_name}/bind-secret-id",
1330
+ code: 200,
1331
+ }),
1332
+ ),
1333
+ ).annotate({
1334
+ identifier: "AppRoleWriteBindSecretIdRequest",
1335
+ }) as any as S.Schema<AppRoleWriteBindSecretIdRequest>;
1336
+
1337
+ export interface AppRoleWriteBindSecretIdResponse {}
1338
+ export const AppRoleWriteBindSecretIdResponse = /*@__PURE__*/ S.suspend(() =>
1339
+ S.Struct({}),
1340
+ ).annotate({
1341
+ identifier: "AppRoleWriteBindSecretIdResponse",
1342
+ }) as any as S.Schema<AppRoleWriteBindSecretIdResponse>;
1343
+
1344
+ /** Comma separated string or list of CIDR blocks enforcing secret IDs to be used from specific set of IP addresses. If 'bound_cidr_list' is set on the role, then the list of CIDR blocks listed here should be a subset of the CIDR blocks listed on the role. */
1345
+ export type AppRoleWriteCustomSecretIdRequestCidrListList = Array<string>;
1346
+ export const AppRoleWriteCustomSecretIdRequestCidrListList =
1347
+ /*@__PURE__*/ S.Array(
1348
+ S.String,
1349
+ ) as any as S.Schema<AppRoleWriteCustomSecretIdRequestCidrListList>;
1350
+
1351
+ /** Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can use the returned token. Should be a subset of the token CIDR blocks listed on the role, if any. */
1352
+ export type AppRoleWriteCustomSecretIdRequestTokenBoundCidrsList =
1353
+ Array<string>;
1354
+ export const AppRoleWriteCustomSecretIdRequestTokenBoundCidrsList =
1355
+ /*@__PURE__*/ S.Array(
1356
+ S.String,
1357
+ ) as any as S.Schema<AppRoleWriteCustomSecretIdRequestTokenBoundCidrsList>;
1358
+
1359
+ export interface AppRoleWriteCustomSecretIdRequest {
1360
+ /** Path that the backend was mounted at */
1361
+ approle_mount_path: string;
1362
+ /** Name of the role. Must be less than 4096 bytes. */
1363
+ role_name: string;
1364
+ /** Comma separated string or list of CIDR blocks enforcing secret IDs to be used from specific set of IP addresses. If 'bound_cidr_list' is set on the role, then the list of CIDR blocks listed here should be a subset of the CIDR blocks listed on the role. */
1365
+ cidr_list?: AppRoleWriteCustomSecretIdRequestCidrListList;
1366
+ /** Metadata to be tied to the SecretID. This should be a JSON formatted string containing metadata in key value pairs. */
1367
+ metadata?: string;
1368
+ /** Number of times this SecretID can be used, after which the SecretID expires. Overrides secret_id_num_uses role option when supplied. May not be higher than role's secret_id_num_uses. */
1369
+ num_uses?: number;
1370
+ /** SecretID to be attached to the role. */
1371
+ secret_id?: string;
1372
+ /** Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can use the returned token. Should be a subset of the token CIDR blocks listed on the role, if any. */
1373
+ token_bound_cidrs?: AppRoleWriteCustomSecretIdRequestTokenBoundCidrsList;
1374
+ /** Duration in seconds after which this SecretID expires. Overrides secret_id_ttl role option when supplied. May not be longer than role's secret_id_ttl. */
1375
+ ttl?: number;
1376
+ }
1377
+ export const AppRoleWriteCustomSecretIdRequest = /*@__PURE__*/ S.suspend(() =>
1378
+ S.Struct({
1379
+ approle_mount_path: S.String.pipe(T.Label()),
1380
+ role_name: S.String.pipe(T.Label()),
1381
+ cidr_list: S.optional(AppRoleWriteCustomSecretIdRequestCidrListList),
1382
+ metadata: S.optional(S.String),
1383
+ num_uses: S.optional(S.Number),
1384
+ secret_id: S.optional(S.String),
1385
+ token_bound_cidrs: S.optional(
1386
+ AppRoleWriteCustomSecretIdRequestTokenBoundCidrsList,
1387
+ ),
1388
+ ttl: S.optional(S.Number),
1389
+ }).pipe(
1390
+ T.Http({
1391
+ method: "POST",
1392
+ uri: "/auth/{approle_mount_path}/role/{role_name}/custom-secret-id",
1393
+ code: 200,
1394
+ }),
1395
+ ),
1396
+ ).annotate({
1397
+ identifier: "AppRoleWriteCustomSecretIdRequest",
1398
+ }) as any as S.Schema<AppRoleWriteCustomSecretIdRequest>;
1399
+
1400
+ export interface AppRoleWriteCustomSecretIdResponse {
1401
+ /** Secret ID attached to the role. */
1402
+ secret_id?: string;
1403
+ /** Accessor of the secret ID */
1404
+ secret_id_accessor?: string;
1405
+ /** Number of times a secret ID can access the role, after which the secret ID will expire. */
1406
+ secret_id_num_uses?: number;
1407
+ /** Duration in seconds after which the issued secret ID expires. */
1408
+ secret_id_ttl?: number;
1409
+ }
1410
+ export const AppRoleWriteCustomSecretIdResponse = /*@__PURE__*/ S.suspend(() =>
1411
+ S.Struct({
1412
+ secret_id: S.optional(S.String),
1413
+ secret_id_accessor: S.optional(S.String),
1414
+ secret_id_num_uses: S.optional(S.Number),
1415
+ secret_id_ttl: S.optional(S.Number),
1416
+ }),
1417
+ ).annotate({
1418
+ identifier: "AppRoleWriteCustomSecretIdResponse",
1419
+ }) as any as S.Schema<AppRoleWriteCustomSecretIdResponse>;
1420
+
1421
+ export interface AppRoleWritePeriodRequest {
1422
+ /** Path that the backend was mounted at */
1423
+ approle_mount_path: string;
1424
+ /** Name of the role. Must be less than 4096 bytes. */
1425
+ role_name: string;
1426
+ /** Use "token_period" instead. If this and "token_period" are both specified, only "token_period" will be used. */
1427
+ period?: number;
1428
+ /** If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). */
1429
+ token_period?: number;
1430
+ }
1431
+ export const AppRoleWritePeriodRequest = /*@__PURE__*/ S.suspend(() =>
1432
+ S.Struct({
1433
+ approle_mount_path: S.String.pipe(T.Label()),
1434
+ role_name: S.String.pipe(T.Label()),
1435
+ period: S.optional(S.Number),
1436
+ token_period: S.optional(S.Number),
1437
+ }).pipe(
1438
+ T.Http({
1439
+ method: "POST",
1440
+ uri: "/auth/{approle_mount_path}/role/{role_name}/period",
1441
+ code: 200,
1442
+ }),
1443
+ ),
1444
+ ).annotate({
1445
+ identifier: "AppRoleWritePeriodRequest",
1446
+ }) as any as S.Schema<AppRoleWritePeriodRequest>;
1447
+
1448
+ export interface AppRoleWritePeriodResponse {}
1449
+ export const AppRoleWritePeriodResponse = /*@__PURE__*/ S.suspend(() =>
1450
+ S.Struct({}),
1451
+ ).annotate({
1452
+ identifier: "AppRoleWritePeriodResponse",
1453
+ }) as any as S.Schema<AppRoleWritePeriodResponse>;
1454
+
1455
+ /** Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. */
1456
+ export type AppRoleWritePoliciesRequestPoliciesList = Array<string>;
1457
+ export const AppRoleWritePoliciesRequestPoliciesList = /*@__PURE__*/ S.Array(
1458
+ S.String,
1459
+ ) as any as S.Schema<AppRoleWritePoliciesRequestPoliciesList>;
1460
+
1461
+ /** Comma-separated list of policies */
1462
+ export type AppRoleWritePoliciesRequestTokenPoliciesList = Array<string>;
1463
+ export const AppRoleWritePoliciesRequestTokenPoliciesList =
1464
+ /*@__PURE__*/ S.Array(
1465
+ S.String,
1466
+ ) as any as S.Schema<AppRoleWritePoliciesRequestTokenPoliciesList>;
1467
+
1468
+ export interface AppRoleWritePoliciesRequest {
1469
+ /** Path that the backend was mounted at */
1470
+ approle_mount_path: string;
1471
+ /** Name of the role. Must be less than 4096 bytes. */
1472
+ role_name: string;
1473
+ /** Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. */
1474
+ policies?: AppRoleWritePoliciesRequestPoliciesList;
1475
+ /** Comma-separated list of policies */
1476
+ token_policies?: AppRoleWritePoliciesRequestTokenPoliciesList;
1477
+ }
1478
+ export const AppRoleWritePoliciesRequest = /*@__PURE__*/ S.suspend(() =>
1479
+ S.Struct({
1480
+ approle_mount_path: S.String.pipe(T.Label()),
1481
+ role_name: S.String.pipe(T.Label()),
1482
+ policies: S.optional(AppRoleWritePoliciesRequestPoliciesList),
1483
+ token_policies: S.optional(AppRoleWritePoliciesRequestTokenPoliciesList),
1484
+ }).pipe(
1485
+ T.Http({
1486
+ method: "POST",
1487
+ uri: "/auth/{approle_mount_path}/role/{role_name}/policies",
1488
+ code: 200,
1489
+ }),
1490
+ ),
1491
+ ).annotate({
1492
+ identifier: "AppRoleWritePoliciesRequest",
1493
+ }) as any as S.Schema<AppRoleWritePoliciesRequest>;
1494
+
1495
+ export interface AppRoleWritePoliciesResponse {}
1496
+ export const AppRoleWritePoliciesResponse = /*@__PURE__*/ S.suspend(() =>
1497
+ S.Struct({}),
1498
+ ).annotate({
1499
+ identifier: "AppRoleWritePoliciesResponse",
1500
+ }) as any as S.Schema<AppRoleWritePoliciesResponse>;
1501
+
1502
+ /** Use "secret_id_bound_cidrs" instead. */
1503
+ export type AppRoleWriteRoleRequestBoundCidrListList = Array<string>;
1504
+ export const AppRoleWriteRoleRequestBoundCidrListList = /*@__PURE__*/ S.Array(
1505
+ S.String,
1506
+ ) as any as S.Schema<AppRoleWriteRoleRequestBoundCidrListList>;
1507
+
1508
+ /** Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. */
1509
+ export type AppRoleWriteRoleRequestPoliciesList = Array<string>;
1510
+ export const AppRoleWriteRoleRequestPoliciesList = /*@__PURE__*/ S.Array(
1511
+ S.String,
1512
+ ) as any as S.Schema<AppRoleWriteRoleRequestPoliciesList>;
1513
+
1514
+ /** Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. */
1515
+ export type AppRoleWriteRoleRequestSecretIdBoundCidrsList = Array<string>;
1516
+ export const AppRoleWriteRoleRequestSecretIdBoundCidrsList =
1517
+ /*@__PURE__*/ S.Array(
1518
+ S.String,
1519
+ ) as any as S.Schema<AppRoleWriteRoleRequestSecretIdBoundCidrsList>;
1520
+
1521
+ /** Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. */
1522
+ export type AppRoleWriteRoleRequestTokenBoundCidrsList = Array<string>;
1523
+ export const AppRoleWriteRoleRequestTokenBoundCidrsList = /*@__PURE__*/ S.Array(
1524
+ S.String,
1525
+ ) as any as S.Schema<AppRoleWriteRoleRequestTokenBoundCidrsList>;
1526
+
1527
+ /** Comma-separated list of policies */
1528
+ export type AppRoleWriteRoleRequestTokenPoliciesList = Array<string>;
1529
+ export const AppRoleWriteRoleRequestTokenPoliciesList = /*@__PURE__*/ S.Array(
1530
+ S.String,
1531
+ ) as any as S.Schema<AppRoleWriteRoleRequestTokenPoliciesList>;
1532
+
1533
+ export interface AppRoleWriteRoleRequest {
1534
+ /** Path that the backend was mounted at */
1535
+ approle_mount_path: string;
1536
+ /** Name of the role. Must be less than 4096 bytes. */
1537
+ role_name: string;
1538
+ /** Impose secret_id to be presented when logging in using this role. Defaults to 'true'. */
1539
+ bind_secret_id?: boolean;
1540
+ /** Use "secret_id_bound_cidrs" instead. */
1541
+ bound_cidr_list?: AppRoleWriteRoleRequestBoundCidrListList;
1542
+ /** If set, the secret IDs generated using this role will be cluster local. This can only be set during role creation and once set, it can't be reset later. */
1543
+ local_secret_ids?: boolean;
1544
+ /** Use "token_period" instead. If this and "token_period" are both specified, only "token_period" will be used. */
1545
+ period?: number;
1546
+ /** Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. */
1547
+ policies?: AppRoleWriteRoleRequestPoliciesList;
1548
+ /** Identifier of the role. Defaults to a UUID. */
1549
+ role_id?: string;
1550
+ /** Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. */
1551
+ secret_id_bound_cidrs?: AppRoleWriteRoleRequestSecretIdBoundCidrsList;
1552
+ /** Number of times a SecretID can access the role, after which the SecretID will expire. Defaults to 0 meaning that the the secret_id is of unlimited use. */
1553
+ secret_id_num_uses?: number;
1554
+ /** Duration in seconds after which the issued SecretID should expire. Defaults to 0, meaning no expiration. */
1555
+ secret_id_ttl?: number;
1556
+ /** Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. */
1557
+ token_bound_cidrs?: AppRoleWriteRoleRequestTokenBoundCidrsList;
1558
+ /** If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. */
1559
+ token_explicit_max_ttl?: number;
1560
+ /** The maximum lifetime of the generated token */
1561
+ token_max_ttl?: number;
1562
+ /** If true, the 'default' policy will not automatically be added to generated tokens */
1563
+ token_no_default_policy?: boolean;
1564
+ /** The maximum number of times a token may be used, a value of zero means unlimited */
1565
+ token_num_uses?: number;
1566
+ /** If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). */
1567
+ token_period?: number;
1568
+ /** Comma-separated list of policies */
1569
+ token_policies?: AppRoleWriteRoleRequestTokenPoliciesList;
1570
+ /** If true, CIDRs for the token will be strictly bound to the source IP address of the login request */
1571
+ token_strictly_bind_ip?: boolean;
1572
+ /** The initial ttl of the token to generate */
1573
+ token_ttl?: number;
1574
+ /** The type of token to generate, service or batch */
1575
+ token_type?: string;
1576
+ }
1577
+ export const AppRoleWriteRoleRequest = /*@__PURE__*/ S.suspend(() =>
1578
+ S.Struct({
1579
+ approle_mount_path: S.String.pipe(T.Label()),
1580
+ role_name: S.String.pipe(T.Label()),
1581
+ bind_secret_id: S.optional(S.Boolean),
1582
+ bound_cidr_list: S.optional(AppRoleWriteRoleRequestBoundCidrListList),
1583
+ local_secret_ids: S.optional(S.Boolean),
1584
+ period: S.optional(S.Number),
1585
+ policies: S.optional(AppRoleWriteRoleRequestPoliciesList),
1586
+ role_id: S.optional(S.String),
1587
+ secret_id_bound_cidrs: S.optional(
1588
+ AppRoleWriteRoleRequestSecretIdBoundCidrsList,
1589
+ ),
1590
+ secret_id_num_uses: S.optional(S.Number),
1591
+ secret_id_ttl: S.optional(S.Number),
1592
+ token_bound_cidrs: S.optional(AppRoleWriteRoleRequestTokenBoundCidrsList),
1593
+ token_explicit_max_ttl: S.optional(S.Number),
1594
+ token_max_ttl: S.optional(S.Number),
1595
+ token_no_default_policy: S.optional(S.Boolean),
1596
+ token_num_uses: S.optional(S.Number),
1597
+ token_period: S.optional(S.Number),
1598
+ token_policies: S.optional(AppRoleWriteRoleRequestTokenPoliciesList),
1599
+ token_strictly_bind_ip: S.optional(S.Boolean),
1600
+ token_ttl: S.optional(S.Number),
1601
+ token_type: S.optional(S.String),
1602
+ }).pipe(
1603
+ T.Http({
1604
+ method: "POST",
1605
+ uri: "/auth/{approle_mount_path}/role/{role_name}",
1606
+ code: 200,
1607
+ }),
1608
+ ),
1609
+ ).annotate({
1610
+ identifier: "AppRoleWriteRoleRequest",
1611
+ }) as any as S.Schema<AppRoleWriteRoleRequest>;
1612
+
1613
+ export interface AppRoleWriteRoleResponse {}
1614
+ export const AppRoleWriteRoleResponse = /*@__PURE__*/ S.suspend(() =>
1615
+ S.Struct({}),
1616
+ ).annotate({
1617
+ identifier: "AppRoleWriteRoleResponse",
1618
+ }) as any as S.Schema<AppRoleWriteRoleResponse>;
1619
+
1620
+ export interface AppRoleWriteRoleIdRequest {
1621
+ /** Path that the backend was mounted at */
1622
+ approle_mount_path: string;
1623
+ /** Name of the role. Must be less than 4096 bytes. */
1624
+ role_name: string;
1625
+ /** Identifier of the role. Defaults to a UUID. */
1626
+ role_id?: string;
1627
+ }
1628
+ export const AppRoleWriteRoleIdRequest = /*@__PURE__*/ S.suspend(() =>
1629
+ S.Struct({
1630
+ approle_mount_path: S.String.pipe(T.Label()),
1631
+ role_name: S.String.pipe(T.Label()),
1632
+ role_id: S.optional(S.String),
1633
+ }).pipe(
1634
+ T.Http({
1635
+ method: "POST",
1636
+ uri: "/auth/{approle_mount_path}/role/{role_name}/role-id",
1637
+ code: 200,
1638
+ }),
1639
+ ),
1640
+ ).annotate({
1641
+ identifier: "AppRoleWriteRoleIdRequest",
1642
+ }) as any as S.Schema<AppRoleWriteRoleIdRequest>;
1643
+
1644
+ export interface AppRoleWriteRoleIdResponse {}
1645
+ export const AppRoleWriteRoleIdResponse = /*@__PURE__*/ S.suspend(() =>
1646
+ S.Struct({}),
1647
+ ).annotate({
1648
+ identifier: "AppRoleWriteRoleIdResponse",
1649
+ }) as any as S.Schema<AppRoleWriteRoleIdResponse>;
1650
+
1651
+ /** Comma separated string or list of CIDR blocks enforcing secret IDs to be used from specific set of IP addresses. If 'bound_cidr_list' is set on the role, then the list of CIDR blocks listed here should be a subset of the CIDR blocks listed on the role. */
1652
+ export type AppRoleWriteSecretIdRequestCidrListList = Array<string>;
1653
+ export const AppRoleWriteSecretIdRequestCidrListList = /*@__PURE__*/ S.Array(
1654
+ S.String,
1655
+ ) as any as S.Schema<AppRoleWriteSecretIdRequestCidrListList>;
1656
+
1657
+ /** Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. */
1658
+ export type AppRoleWriteSecretIdRequestTokenBoundCidrsList = Array<string>;
1659
+ export const AppRoleWriteSecretIdRequestTokenBoundCidrsList =
1660
+ /*@__PURE__*/ S.Array(
1661
+ S.String,
1662
+ ) as any as S.Schema<AppRoleWriteSecretIdRequestTokenBoundCidrsList>;
1663
+
1664
+ export interface AppRoleWriteSecretIdRequest {
1665
+ /** Path that the backend was mounted at */
1666
+ approle_mount_path: string;
1667
+ /** Name of the role. Must be less than 4096 bytes. */
1668
+ role_name: string;
1669
+ /** Optional entry to list begin listing after, not required to exist. Only used in list operations. */
1670
+ after?: string;
1671
+ /** Comma separated string or list of CIDR blocks enforcing secret IDs to be used from specific set of IP addresses. If 'bound_cidr_list' is set on the role, then the list of CIDR blocks listed here should be a subset of the CIDR blocks listed on the role. */
1672
+ cidr_list?: AppRoleWriteSecretIdRequestCidrListList;
1673
+ /** Optional number of entries to return; defaults to all entries. Only used in list operations. */
1674
+ limit?: number;
1675
+ /** Metadata to be tied to the SecretID. This should be a JSON formatted string containing the metadata in key value pairs. */
1676
+ metadata?: string;
1677
+ /** Number of times this SecretID can be used, after which the SecretID expires. Overrides secret_id_num_uses role option when supplied. May not be higher than role's secret_id_num_uses. */
1678
+ num_uses?: number;
1679
+ /** Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. */
1680
+ token_bound_cidrs?: AppRoleWriteSecretIdRequestTokenBoundCidrsList;
1681
+ /** Duration in seconds after which this SecretID expires. Overrides secret_id_ttl role option when supplied. May not be longer than role's secret_id_ttl. */
1682
+ ttl?: number;
1683
+ }
1684
+ export const AppRoleWriteSecretIdRequest = /*@__PURE__*/ S.suspend(() =>
1685
+ S.Struct({
1686
+ approle_mount_path: S.String.pipe(T.Label()),
1687
+ role_name: S.String.pipe(T.Label()),
1688
+ after: S.optional(S.String),
1689
+ cidr_list: S.optional(AppRoleWriteSecretIdRequestCidrListList),
1690
+ limit: S.optional(S.Number),
1691
+ metadata: S.optional(S.String),
1692
+ num_uses: S.optional(S.Number),
1693
+ token_bound_cidrs: S.optional(
1694
+ AppRoleWriteSecretIdRequestTokenBoundCidrsList,
1695
+ ),
1696
+ ttl: S.optional(S.Number),
1697
+ }).pipe(
1698
+ T.Http({
1699
+ method: "POST",
1700
+ uri: "/auth/{approle_mount_path}/role/{role_name}/secret-id",
1701
+ code: 200,
1702
+ }),
1703
+ ),
1704
+ ).annotate({
1705
+ identifier: "AppRoleWriteSecretIdRequest",
1706
+ }) as any as S.Schema<AppRoleWriteSecretIdRequest>;
1707
+
1708
+ export interface AppRoleWriteSecretIdResponse {
1709
+ /** Secret ID attached to the role. */
1710
+ secret_id?: string;
1711
+ /** Accessor of the secret ID */
1712
+ secret_id_accessor?: string;
1713
+ /** Number of times a secret ID can access the role, after which the secret ID will expire. */
1714
+ secret_id_num_uses?: number;
1715
+ /** Duration in seconds after which the issued secret ID expires. */
1716
+ secret_id_ttl?: number;
1717
+ }
1718
+ export const AppRoleWriteSecretIdResponse = /*@__PURE__*/ S.suspend(() =>
1719
+ S.Struct({
1720
+ secret_id: S.optional(S.String),
1721
+ secret_id_accessor: S.optional(S.String),
1722
+ secret_id_num_uses: S.optional(S.Number),
1723
+ secret_id_ttl: S.optional(S.Number),
1724
+ }),
1725
+ ).annotate({
1726
+ identifier: "AppRoleWriteSecretIdResponse",
1727
+ }) as any as S.Schema<AppRoleWriteSecretIdResponse>;
1728
+
1729
+ /** Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. */
1730
+ export type AppRoleWriteSecretIdBoundCidrsRequestSecretIdBoundCidrsList =
1731
+ Array<string>;
1732
+ export const AppRoleWriteSecretIdBoundCidrsRequestSecretIdBoundCidrsList =
1733
+ /*@__PURE__*/ S.Array(
1734
+ S.String,
1735
+ ) as any as S.Schema<AppRoleWriteSecretIdBoundCidrsRequestSecretIdBoundCidrsList>;
1736
+
1737
+ export interface AppRoleWriteSecretIdBoundCidrsRequest {
1738
+ /** Path that the backend was mounted at */
1739
+ approle_mount_path: string;
1740
+ /** Name of the role. Must be less than 4096 bytes. */
1741
+ role_name: string;
1742
+ /** Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. */
1743
+ secret_id_bound_cidrs?: AppRoleWriteSecretIdBoundCidrsRequestSecretIdBoundCidrsList;
1744
+ }
1745
+ export const AppRoleWriteSecretIdBoundCidrsRequest = /*@__PURE__*/ S.suspend(
1746
+ () =>
1747
+ S.Struct({
1748
+ approle_mount_path: S.String.pipe(T.Label()),
1749
+ role_name: S.String.pipe(T.Label()),
1750
+ secret_id_bound_cidrs: S.optional(
1751
+ AppRoleWriteSecretIdBoundCidrsRequestSecretIdBoundCidrsList,
1752
+ ),
1753
+ }).pipe(
1754
+ T.Http({
1755
+ method: "POST",
1756
+ uri: "/auth/{approle_mount_path}/role/{role_name}/secret-id-bound-cidrs",
1757
+ code: 200,
1758
+ }),
1759
+ ),
1760
+ ).annotate({
1761
+ identifier: "AppRoleWriteSecretIdBoundCidrsRequest",
1762
+ }) as any as S.Schema<AppRoleWriteSecretIdBoundCidrsRequest>;
1763
+
1764
+ export interface AppRoleWriteSecretIdBoundCidrsResponse {}
1765
+ export const AppRoleWriteSecretIdBoundCidrsResponse = /*@__PURE__*/ S.suspend(
1766
+ () => S.Struct({}),
1767
+ ).annotate({
1768
+ identifier: "AppRoleWriteSecretIdBoundCidrsResponse",
1769
+ }) as any as S.Schema<AppRoleWriteSecretIdBoundCidrsResponse>;
1770
+
1771
+ export interface AppRoleWriteSecretIdNumUsesRequest {
1772
+ /** Path that the backend was mounted at */
1773
+ approle_mount_path: string;
1774
+ /** Name of the role. Must be less than 4096 bytes. */
1775
+ role_name: string;
1776
+ /** Number of times a SecretID can access the role, after which the SecretID will expire. */
1777
+ secret_id_num_uses?: number;
1778
+ }
1779
+ export const AppRoleWriteSecretIdNumUsesRequest = /*@__PURE__*/ S.suspend(() =>
1780
+ S.Struct({
1781
+ approle_mount_path: S.String.pipe(T.Label()),
1782
+ role_name: S.String.pipe(T.Label()),
1783
+ secret_id_num_uses: S.optional(S.Number),
1784
+ }).pipe(
1785
+ T.Http({
1786
+ method: "POST",
1787
+ uri: "/auth/{approle_mount_path}/role/{role_name}/secret-id-num-uses",
1788
+ code: 200,
1789
+ }),
1790
+ ),
1791
+ ).annotate({
1792
+ identifier: "AppRoleWriteSecretIdNumUsesRequest",
1793
+ }) as any as S.Schema<AppRoleWriteSecretIdNumUsesRequest>;
1794
+
1795
+ export interface AppRoleWriteSecretIdNumUsesResponse {}
1796
+ export const AppRoleWriteSecretIdNumUsesResponse = /*@__PURE__*/ S.suspend(() =>
1797
+ S.Struct({}),
1798
+ ).annotate({
1799
+ identifier: "AppRoleWriteSecretIdNumUsesResponse",
1800
+ }) as any as S.Schema<AppRoleWriteSecretIdNumUsesResponse>;
1801
+
1802
+ export interface AppRoleWriteSecretIdTtlRequest {
1803
+ /** Path that the backend was mounted at */
1804
+ approle_mount_path: string;
1805
+ /** Name of the role. Must be less than 4096 bytes. */
1806
+ role_name: string;
1807
+ /** Duration in seconds after which the issued SecretID should expire. Defaults to 0, meaning no expiration. */
1808
+ secret_id_ttl?: number;
1809
+ }
1810
+ export const AppRoleWriteSecretIdTtlRequest = /*@__PURE__*/ S.suspend(() =>
1811
+ S.Struct({
1812
+ approle_mount_path: S.String.pipe(T.Label()),
1813
+ role_name: S.String.pipe(T.Label()),
1814
+ secret_id_ttl: S.optional(S.Number),
1815
+ }).pipe(
1816
+ T.Http({
1817
+ method: "POST",
1818
+ uri: "/auth/{approle_mount_path}/role/{role_name}/secret-id-ttl",
1819
+ code: 200,
1820
+ }),
1821
+ ),
1822
+ ).annotate({
1823
+ identifier: "AppRoleWriteSecretIdTtlRequest",
1824
+ }) as any as S.Schema<AppRoleWriteSecretIdTtlRequest>;
1825
+
1826
+ export interface AppRoleWriteSecretIdTtlResponse {}
1827
+ export const AppRoleWriteSecretIdTtlResponse = /*@__PURE__*/ S.suspend(() =>
1828
+ S.Struct({}),
1829
+ ).annotate({
1830
+ identifier: "AppRoleWriteSecretIdTtlResponse",
1831
+ }) as any as S.Schema<AppRoleWriteSecretIdTtlResponse>;
1832
+
1833
+ /** Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. */
1834
+ export type AppRoleWriteTokenBoundCidrsRequestTokenBoundCidrsList =
1835
+ Array<string>;
1836
+ export const AppRoleWriteTokenBoundCidrsRequestTokenBoundCidrsList =
1837
+ /*@__PURE__*/ S.Array(
1838
+ S.String,
1839
+ ) as any as S.Schema<AppRoleWriteTokenBoundCidrsRequestTokenBoundCidrsList>;
1840
+
1841
+ export interface AppRoleWriteTokenBoundCidrsRequest {
1842
+ /** Path that the backend was mounted at */
1843
+ approle_mount_path: string;
1844
+ /** Name of the role. Must be less than 4096 bytes. */
1845
+ role_name: string;
1846
+ /** Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. */
1847
+ token_bound_cidrs?: AppRoleWriteTokenBoundCidrsRequestTokenBoundCidrsList;
1848
+ }
1849
+ export const AppRoleWriteTokenBoundCidrsRequest = /*@__PURE__*/ S.suspend(() =>
1850
+ S.Struct({
1851
+ approle_mount_path: S.String.pipe(T.Label()),
1852
+ role_name: S.String.pipe(T.Label()),
1853
+ token_bound_cidrs: S.optional(
1854
+ AppRoleWriteTokenBoundCidrsRequestTokenBoundCidrsList,
1855
+ ),
1856
+ }).pipe(
1857
+ T.Http({
1858
+ method: "POST",
1859
+ uri: "/auth/{approle_mount_path}/role/{role_name}/token-bound-cidrs",
1860
+ code: 200,
1861
+ }),
1862
+ ),
1863
+ ).annotate({
1864
+ identifier: "AppRoleWriteTokenBoundCidrsRequest",
1865
+ }) as any as S.Schema<AppRoleWriteTokenBoundCidrsRequest>;
1866
+
1867
+ export interface AppRoleWriteTokenBoundCidrsResponse {}
1868
+ export const AppRoleWriteTokenBoundCidrsResponse = /*@__PURE__*/ S.suspend(() =>
1869
+ S.Struct({}),
1870
+ ).annotate({
1871
+ identifier: "AppRoleWriteTokenBoundCidrsResponse",
1872
+ }) as any as S.Schema<AppRoleWriteTokenBoundCidrsResponse>;
1873
+
1874
+ export interface AppRoleWriteTokenMaxTtlRequest {
1875
+ /** Path that the backend was mounted at */
1876
+ approle_mount_path: string;
1877
+ /** Name of the role. Must be less than 4096 bytes. */
1878
+ role_name: string;
1879
+ /** The maximum lifetime of the generated token */
1880
+ token_max_ttl?: number;
1881
+ }
1882
+ export const AppRoleWriteTokenMaxTtlRequest = /*@__PURE__*/ S.suspend(() =>
1883
+ S.Struct({
1884
+ approle_mount_path: S.String.pipe(T.Label()),
1885
+ role_name: S.String.pipe(T.Label()),
1886
+ token_max_ttl: S.optional(S.Number),
1887
+ }).pipe(
1888
+ T.Http({
1889
+ method: "POST",
1890
+ uri: "/auth/{approle_mount_path}/role/{role_name}/token-max-ttl",
1891
+ code: 200,
1892
+ }),
1893
+ ),
1894
+ ).annotate({
1895
+ identifier: "AppRoleWriteTokenMaxTtlRequest",
1896
+ }) as any as S.Schema<AppRoleWriteTokenMaxTtlRequest>;
1897
+
1898
+ export interface AppRoleWriteTokenMaxTtlResponse {}
1899
+ export const AppRoleWriteTokenMaxTtlResponse = /*@__PURE__*/ S.suspend(() =>
1900
+ S.Struct({}),
1901
+ ).annotate({
1902
+ identifier: "AppRoleWriteTokenMaxTtlResponse",
1903
+ }) as any as S.Schema<AppRoleWriteTokenMaxTtlResponse>;
1904
+
1905
+ export interface AppRoleWriteTokenNumUsesRequest {
1906
+ /** Path that the backend was mounted at */
1907
+ approle_mount_path: string;
1908
+ /** Name of the role. Must be less than 4096 bytes. */
1909
+ role_name: string;
1910
+ /** The maximum number of times a token may be used, a value of zero means unlimited */
1911
+ token_num_uses?: number;
1912
+ }
1913
+ export const AppRoleWriteTokenNumUsesRequest = /*@__PURE__*/ S.suspend(() =>
1914
+ S.Struct({
1915
+ approle_mount_path: S.String.pipe(T.Label()),
1916
+ role_name: S.String.pipe(T.Label()),
1917
+ token_num_uses: S.optional(S.Number),
1918
+ }).pipe(
1919
+ T.Http({
1920
+ method: "POST",
1921
+ uri: "/auth/{approle_mount_path}/role/{role_name}/token-num-uses",
1922
+ code: 200,
1923
+ }),
1924
+ ),
1925
+ ).annotate({
1926
+ identifier: "AppRoleWriteTokenNumUsesRequest",
1927
+ }) as any as S.Schema<AppRoleWriteTokenNumUsesRequest>;
1928
+
1929
+ export interface AppRoleWriteTokenNumUsesResponse {}
1930
+ export const AppRoleWriteTokenNumUsesResponse = /*@__PURE__*/ S.suspend(() =>
1931
+ S.Struct({}),
1932
+ ).annotate({
1933
+ identifier: "AppRoleWriteTokenNumUsesResponse",
1934
+ }) as any as S.Schema<AppRoleWriteTokenNumUsesResponse>;
1935
+
1936
+ export interface AppRoleWriteTokenTtlRequest {
1937
+ /** Path that the backend was mounted at */
1938
+ approle_mount_path: string;
1939
+ /** Name of the role. Must be less than 4096 bytes. */
1940
+ role_name: string;
1941
+ /** The initial ttl of the token to generate */
1942
+ token_ttl?: number;
1943
+ }
1944
+ export const AppRoleWriteTokenTtlRequest = /*@__PURE__*/ S.suspend(() =>
1945
+ S.Struct({
1946
+ approle_mount_path: S.String.pipe(T.Label()),
1947
+ role_name: S.String.pipe(T.Label()),
1948
+ token_ttl: S.optional(S.Number),
1949
+ }).pipe(
1950
+ T.Http({
1951
+ method: "POST",
1952
+ uri: "/auth/{approle_mount_path}/role/{role_name}/token-ttl",
1953
+ code: 200,
1954
+ }),
1955
+ ),
1956
+ ).annotate({
1957
+ identifier: "AppRoleWriteTokenTtlRequest",
1958
+ }) as any as S.Schema<AppRoleWriteTokenTtlRequest>;
1959
+
1960
+ export interface AppRoleWriteTokenTtlResponse {}
1961
+ export const AppRoleWriteTokenTtlResponse = /*@__PURE__*/ S.suspend(() =>
1962
+ S.Struct({}),
1963
+ ).annotate({
1964
+ identifier: "AppRoleWriteTokenTtlResponse",
1965
+ }) as any as S.Schema<AppRoleWriteTokenTtlResponse>;
1966
+
1967
+ /** Deprecated: Please use "secret_id_bound_cidrs" instead. Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. */
1968
+ export type ListAppRoleWriteBoundCidrRequestBoundCidrListList = Array<string>;
1969
+ export const ListAppRoleWriteBoundCidrRequestBoundCidrListList =
1970
+ /*@__PURE__*/ S.Array(
1971
+ S.String,
1972
+ ) as any as S.Schema<ListAppRoleWriteBoundCidrRequestBoundCidrListList>;
1973
+
1974
+ export interface ListAppRoleWriteBoundCidrRequest {
1975
+ /** Path that the backend was mounted at */
1976
+ approle_mount_path: string;
1977
+ /** Name of the role. Must be less than 4096 bytes. */
1978
+ role_name: string;
1979
+ /** Deprecated: Please use "secret_id_bound_cidrs" instead. Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. */
1980
+ bound_cidr_list?: ListAppRoleWriteBoundCidrRequestBoundCidrListList;
1981
+ }
1982
+ export const ListAppRoleWriteBoundCidrRequest = /*@__PURE__*/ S.suspend(() =>
1983
+ S.Struct({
1984
+ approle_mount_path: S.String.pipe(T.Label()),
1985
+ role_name: S.String.pipe(T.Label()),
1986
+ bound_cidr_list: S.optional(
1987
+ ListAppRoleWriteBoundCidrRequestBoundCidrListList,
1988
+ ),
1989
+ }).pipe(
1990
+ T.Http({
1991
+ method: "POST",
1992
+ uri: "/auth/{approle_mount_path}/role/{role_name}/bound-cidr-list",
1993
+ code: 200,
1994
+ }),
1995
+ ),
1996
+ ).annotate({
1997
+ identifier: "ListAppRoleWriteBoundCidrRequest",
1998
+ }) as any as S.Schema<ListAppRoleWriteBoundCidrRequest>;
1999
+
2000
+ export interface ListAppRoleWriteBoundCidrResponse {}
2001
+ export const ListAppRoleWriteBoundCidrResponse = /*@__PURE__*/ S.suspend(() =>
2002
+ S.Struct({}),
2003
+ ).annotate({
2004
+ identifier: "ListAppRoleWriteBoundCidrResponse",
2005
+ }) as any as S.Schema<ListAppRoleWriteBoundCidrResponse>;
2006
+
2007
+ export interface LoginAppRoleRequest {
2008
+ /** Path that the backend was mounted at */
2009
+ approle_mount_path: string;
2010
+ /** Unique identifier of the Role. Required to be supplied when the 'bind_secret_id' constraint is set. */
2011
+ role_id?: string;
2012
+ /** SecretID belong to the App role */
2013
+ secret_id?: string;
2014
+ }
2015
+ export const LoginAppRoleRequest = /*@__PURE__*/ S.suspend(() =>
2016
+ S.Struct({
2017
+ approle_mount_path: S.String.pipe(T.Label()),
2018
+ role_id: S.optional(S.String),
2019
+ secret_id: S.optional(S.String),
2020
+ }).pipe(
2021
+ T.Http({
2022
+ method: "POST",
2023
+ uri: "/auth/{approle_mount_path}/login",
2024
+ code: 200,
2025
+ }),
2026
+ ),
2027
+ ).annotate({
2028
+ identifier: "LoginAppRoleRequest",
2029
+ }) as any as S.Schema<LoginAppRoleRequest>;
2030
+
2031
+ export interface LoginAppRoleResponse {}
2032
+ export const LoginAppRoleResponse = /*@__PURE__*/ S.suspend(() =>
2033
+ S.Struct({}),
2034
+ ).annotate({
2035
+ identifier: "LoginAppRoleResponse",
2036
+ }) as any as S.Schema<LoginAppRoleResponse>;
2037
+
2038
+ export type AppRoleDeleteBindSecretIdError = OpenBaoOpError;
2039
+ export const appRoleDeleteBindSecretId: API.OperationMethod<
2040
+ AppRoleDeleteBindSecretIdRequest,
2041
+ AppRoleDeleteBindSecretIdResponse,
2042
+ AppRoleDeleteBindSecretIdError,
2043
+ OpenBaoOpContext
2044
+ > = /*@__PURE__*/ API.make(() => ({
2045
+ input: AppRoleDeleteBindSecretIdRequest,
2046
+ output: AppRoleDeleteBindSecretIdResponse,
2047
+ errors: [],
2048
+ protocol: OpenBaoProtocol,
2049
+ retry: Retry.Retry,
2050
+ }));
2051
+
2052
+ export type AppRoleDeleteBoundCidrListError = OpenBaoOpError;
2053
+ export const appRoleDeleteBoundCidrList: API.OperationMethod<
2054
+ AppRoleDeleteBoundCidrListRequest,
2055
+ AppRoleDeleteBoundCidrListResponse,
2056
+ AppRoleDeleteBoundCidrListError,
2057
+ OpenBaoOpContext
2058
+ > = /*@__PURE__*/ API.make(() => ({
2059
+ input: AppRoleDeleteBoundCidrListRequest,
2060
+ output: AppRoleDeleteBoundCidrListResponse,
2061
+ errors: [],
2062
+ protocol: OpenBaoProtocol,
2063
+ retry: Retry.Retry,
2064
+ }));
2065
+
2066
+ export type AppRoleDeletePeriodError = OpenBaoOpError;
2067
+ export const appRoleDeletePeriod: API.OperationMethod<
2068
+ AppRoleDeletePeriodRequest,
2069
+ AppRoleDeletePeriodResponse,
2070
+ AppRoleDeletePeriodError,
2071
+ OpenBaoOpContext
2072
+ > = /*@__PURE__*/ API.make(() => ({
2073
+ input: AppRoleDeletePeriodRequest,
2074
+ output: AppRoleDeletePeriodResponse,
2075
+ errors: [],
2076
+ protocol: OpenBaoProtocol,
2077
+ retry: Retry.Retry,
2078
+ }));
2079
+
2080
+ export type AppRoleDeletePoliciesError = OpenBaoOpError;
2081
+ export const appRoleDeletePolicies: API.OperationMethod<
2082
+ AppRoleDeletePoliciesRequest,
2083
+ AppRoleDeletePoliciesResponse,
2084
+ AppRoleDeletePoliciesError,
2085
+ OpenBaoOpContext
2086
+ > = /*@__PURE__*/ API.make(() => ({
2087
+ input: AppRoleDeletePoliciesRequest,
2088
+ output: AppRoleDeletePoliciesResponse,
2089
+ errors: [],
2090
+ protocol: OpenBaoProtocol,
2091
+ retry: Retry.Retry,
2092
+ }));
2093
+
2094
+ export type AppRoleDeleteRoleError = OpenBaoOpError;
2095
+ export const appRoleDeleteRole: API.OperationMethod<
2096
+ AppRoleDeleteRoleRequest,
2097
+ AppRoleDeleteRoleResponse,
2098
+ AppRoleDeleteRoleError,
2099
+ OpenBaoOpContext
2100
+ > = /*@__PURE__*/ API.make(() => ({
2101
+ input: AppRoleDeleteRoleRequest,
2102
+ output: AppRoleDeleteRoleResponse,
2103
+ errors: [],
2104
+ protocol: OpenBaoProtocol,
2105
+ retry: Retry.Retry,
2106
+ }));
2107
+
2108
+ export type AppRoleDeleteSecretIdBoundCidrsError = OpenBaoOpError;
2109
+ export const appRoleDeleteSecretIdBoundCidrs: API.OperationMethod<
2110
+ AppRoleDeleteSecretIdBoundCidrsRequest,
2111
+ AppRoleDeleteSecretIdBoundCidrsResponse,
2112
+ AppRoleDeleteSecretIdBoundCidrsError,
2113
+ OpenBaoOpContext
2114
+ > = /*@__PURE__*/ API.make(() => ({
2115
+ input: AppRoleDeleteSecretIdBoundCidrsRequest,
2116
+ output: AppRoleDeleteSecretIdBoundCidrsResponse,
2117
+ errors: [],
2118
+ protocol: OpenBaoProtocol,
2119
+ retry: Retry.Retry,
2120
+ }));
2121
+
2122
+ export type AppRoleDeleteSecretIdNumUsesError = OpenBaoOpError;
2123
+ export const appRoleDeleteSecretIdNumUses: API.OperationMethod<
2124
+ AppRoleDeleteSecretIdNumUsesRequest,
2125
+ AppRoleDeleteSecretIdNumUsesResponse,
2126
+ AppRoleDeleteSecretIdNumUsesError,
2127
+ OpenBaoOpContext
2128
+ > = /*@__PURE__*/ API.make(() => ({
2129
+ input: AppRoleDeleteSecretIdNumUsesRequest,
2130
+ output: AppRoleDeleteSecretIdNumUsesResponse,
2131
+ errors: [],
2132
+ protocol: OpenBaoProtocol,
2133
+ retry: Retry.Retry,
2134
+ }));
2135
+
2136
+ export type AppRoleDeleteSecretIdTtlError = OpenBaoOpError;
2137
+ export const appRoleDeleteSecretIdTtl: API.OperationMethod<
2138
+ AppRoleDeleteSecretIdTtlRequest,
2139
+ AppRoleDeleteSecretIdTtlResponse,
2140
+ AppRoleDeleteSecretIdTtlError,
2141
+ OpenBaoOpContext
2142
+ > = /*@__PURE__*/ API.make(() => ({
2143
+ input: AppRoleDeleteSecretIdTtlRequest,
2144
+ output: AppRoleDeleteSecretIdTtlResponse,
2145
+ errors: [],
2146
+ protocol: OpenBaoProtocol,
2147
+ retry: Retry.Retry,
2148
+ }));
2149
+
2150
+ export type AppRoleDeleteTokenBoundCidrsError = OpenBaoOpError;
2151
+ export const appRoleDeleteTokenBoundCidrs: API.OperationMethod<
2152
+ AppRoleDeleteTokenBoundCidrsRequest,
2153
+ AppRoleDeleteTokenBoundCidrsResponse,
2154
+ AppRoleDeleteTokenBoundCidrsError,
2155
+ OpenBaoOpContext
2156
+ > = /*@__PURE__*/ API.make(() => ({
2157
+ input: AppRoleDeleteTokenBoundCidrsRequest,
2158
+ output: AppRoleDeleteTokenBoundCidrsResponse,
2159
+ errors: [],
2160
+ protocol: OpenBaoProtocol,
2161
+ retry: Retry.Retry,
2162
+ }));
2163
+
2164
+ export type AppRoleDeleteTokenMaxTtlError = OpenBaoOpError;
2165
+ export const appRoleDeleteTokenMaxTtl: API.OperationMethod<
2166
+ AppRoleDeleteTokenMaxTtlRequest,
2167
+ AppRoleDeleteTokenMaxTtlResponse,
2168
+ AppRoleDeleteTokenMaxTtlError,
2169
+ OpenBaoOpContext
2170
+ > = /*@__PURE__*/ API.make(() => ({
2171
+ input: AppRoleDeleteTokenMaxTtlRequest,
2172
+ output: AppRoleDeleteTokenMaxTtlResponse,
2173
+ errors: [],
2174
+ protocol: OpenBaoProtocol,
2175
+ retry: Retry.Retry,
2176
+ }));
2177
+
2178
+ export type AppRoleDeleteTokenNumUsesError = OpenBaoOpError;
2179
+ export const appRoleDeleteTokenNumUses: API.OperationMethod<
2180
+ AppRoleDeleteTokenNumUsesRequest,
2181
+ AppRoleDeleteTokenNumUsesResponse,
2182
+ AppRoleDeleteTokenNumUsesError,
2183
+ OpenBaoOpContext
2184
+ > = /*@__PURE__*/ API.make(() => ({
2185
+ input: AppRoleDeleteTokenNumUsesRequest,
2186
+ output: AppRoleDeleteTokenNumUsesResponse,
2187
+ errors: [],
2188
+ protocol: OpenBaoProtocol,
2189
+ retry: Retry.Retry,
2190
+ }));
2191
+
2192
+ export type AppRoleDeleteTokenTtlError = OpenBaoOpError;
2193
+ export const appRoleDeleteTokenTtl: API.OperationMethod<
2194
+ AppRoleDeleteTokenTtlRequest,
2195
+ AppRoleDeleteTokenTtlResponse,
2196
+ AppRoleDeleteTokenTtlError,
2197
+ OpenBaoOpContext
2198
+ > = /*@__PURE__*/ API.make(() => ({
2199
+ input: AppRoleDeleteTokenTtlRequest,
2200
+ output: AppRoleDeleteTokenTtlResponse,
2201
+ errors: [],
2202
+ protocol: OpenBaoProtocol,
2203
+ retry: Retry.Retry,
2204
+ }));
2205
+
2206
+ export type AppRoleDestroySecretIdError = OpenBaoOpError;
2207
+ export const appRoleDestroySecretId: API.OperationMethod<
2208
+ AppRoleDestroySecretIdRequest,
2209
+ AppRoleDestroySecretIdResponse,
2210
+ AppRoleDestroySecretIdError,
2211
+ OpenBaoOpContext
2212
+ > = /*@__PURE__*/ API.make(() => ({
2213
+ input: AppRoleDestroySecretIdRequest,
2214
+ output: AppRoleDestroySecretIdResponse,
2215
+ errors: [],
2216
+ protocol: OpenBaoProtocol,
2217
+ retry: Retry.Retry,
2218
+ }));
2219
+
2220
+ export type AppRoleDestroySecretId2Error = OpenBaoOpError;
2221
+ export const appRoleDestroySecretId2: API.OperationMethod<
2222
+ AppRoleDestroySecretId2Request,
2223
+ AppRoleDestroySecretId2Response,
2224
+ AppRoleDestroySecretId2Error,
2225
+ OpenBaoOpContext
2226
+ > = /*@__PURE__*/ API.make(() => ({
2227
+ input: AppRoleDestroySecretId2Request,
2228
+ output: AppRoleDestroySecretId2Response,
2229
+ errors: [],
2230
+ protocol: OpenBaoProtocol,
2231
+ retry: Retry.Retry,
2232
+ }));
2233
+
2234
+ export type AppRoleDestroySecretIdByAccessorError = OpenBaoOpError;
2235
+ export const appRoleDestroySecretIdByAccessor: API.OperationMethod<
2236
+ AppRoleDestroySecretIdByAccessorRequest,
2237
+ AppRoleDestroySecretIdByAccessorResponse,
2238
+ AppRoleDestroySecretIdByAccessorError,
2239
+ OpenBaoOpContext
2240
+ > = /*@__PURE__*/ API.make(() => ({
2241
+ input: AppRoleDestroySecretIdByAccessorRequest,
2242
+ output: AppRoleDestroySecretIdByAccessorResponse,
2243
+ errors: [],
2244
+ protocol: OpenBaoProtocol,
2245
+ retry: Retry.Retry,
2246
+ }));
2247
+
2248
+ export type AppRoleDestroySecretIdByAccessor2Error = OpenBaoOpError;
2249
+ export const appRoleDestroySecretIdByAccessor2: API.OperationMethod<
2250
+ AppRoleDestroySecretIdByAccessor2Request,
2251
+ AppRoleDestroySecretIdByAccessor2Response,
2252
+ AppRoleDestroySecretIdByAccessor2Error,
2253
+ OpenBaoOpContext
2254
+ > = /*@__PURE__*/ API.make(() => ({
2255
+ input: AppRoleDestroySecretIdByAccessor2Request,
2256
+ output: AppRoleDestroySecretIdByAccessor2Response,
2257
+ errors: [],
2258
+ protocol: OpenBaoProtocol,
2259
+ retry: Retry.Retry,
2260
+ }));
2261
+
2262
+ export type AppRoleListRolesError = OpenBaoOpError;
2263
+ export const appRoleListRoles: API.OperationMethod<
2264
+ AppRoleListRolesRequest,
2265
+ AppRoleListRolesResponse,
2266
+ AppRoleListRolesError,
2267
+ OpenBaoOpContext
2268
+ > = /*@__PURE__*/ API.make(() => ({
2269
+ input: AppRoleListRolesRequest,
2270
+ output: AppRoleListRolesResponse,
2271
+ errors: [],
2272
+ protocol: OpenBaoProtocol,
2273
+ retry: Retry.Retry,
2274
+ }));
2275
+
2276
+ export type AppRoleListSecretIdsError = OpenBaoOpError;
2277
+ export const appRoleListSecretIds: API.OperationMethod<
2278
+ AppRoleListSecretIdsRequest,
2279
+ AppRoleListSecretIdsResponse,
2280
+ AppRoleListSecretIdsError,
2281
+ OpenBaoOpContext
2282
+ > = /*@__PURE__*/ API.make(() => ({
2283
+ input: AppRoleListSecretIdsRequest,
2284
+ output: AppRoleListSecretIdsResponse,
2285
+ errors: [],
2286
+ protocol: OpenBaoProtocol,
2287
+ retry: Retry.Retry,
2288
+ }));
2289
+
2290
+ export type AppRoleLookUpSecretIdError = OpenBaoOpError;
2291
+ export const appRoleLookUpSecretId: API.OperationMethod<
2292
+ AppRoleLookUpSecretIdRequest,
2293
+ AppRoleLookUpSecretIdResponse,
2294
+ AppRoleLookUpSecretIdError,
2295
+ OpenBaoOpContext
2296
+ > = /*@__PURE__*/ API.make(() => ({
2297
+ input: AppRoleLookUpSecretIdRequest,
2298
+ output: AppRoleLookUpSecretIdResponse,
2299
+ errors: [],
2300
+ protocol: OpenBaoProtocol,
2301
+ retry: Retry.Retry,
2302
+ }));
2303
+
2304
+ export type AppRoleLookUpSecretIdByAccessorError = OpenBaoOpError;
2305
+ export const appRoleLookUpSecretIdByAccessor: API.OperationMethod<
2306
+ AppRoleLookUpSecretIdByAccessorRequest,
2307
+ AppRoleLookUpSecretIdByAccessorResponse,
2308
+ AppRoleLookUpSecretIdByAccessorError,
2309
+ OpenBaoOpContext
2310
+ > = /*@__PURE__*/ API.make(() => ({
2311
+ input: AppRoleLookUpSecretIdByAccessorRequest,
2312
+ output: AppRoleLookUpSecretIdByAccessorResponse,
2313
+ errors: [],
2314
+ protocol: OpenBaoProtocol,
2315
+ retry: Retry.Retry,
2316
+ }));
2317
+
2318
+ export type AppRoleReadBindSecretIdError = OpenBaoOpError;
2319
+ export const appRoleReadBindSecretId: API.OperationMethod<
2320
+ AppRoleReadBindSecretIdRequest,
2321
+ AppRoleReadBindSecretIdResponse,
2322
+ AppRoleReadBindSecretIdError,
2323
+ OpenBaoOpContext
2324
+ > = /*@__PURE__*/ API.make(() => ({
2325
+ input: AppRoleReadBindSecretIdRequest,
2326
+ output: AppRoleReadBindSecretIdResponse,
2327
+ errors: [],
2328
+ protocol: OpenBaoProtocol,
2329
+ retry: Retry.Retry,
2330
+ }));
2331
+
2332
+ export type AppRoleReadBoundCidrListError = OpenBaoOpError;
2333
+ export const appRoleReadBoundCidrList: API.OperationMethod<
2334
+ AppRoleReadBoundCidrListRequest,
2335
+ AppRoleReadBoundCidrListResponse,
2336
+ AppRoleReadBoundCidrListError,
2337
+ OpenBaoOpContext
2338
+ > = /*@__PURE__*/ API.make(() => ({
2339
+ input: AppRoleReadBoundCidrListRequest,
2340
+ output: AppRoleReadBoundCidrListResponse,
2341
+ errors: [],
2342
+ protocol: OpenBaoProtocol,
2343
+ retry: Retry.Retry,
2344
+ }));
2345
+
2346
+ export type AppRoleReadLocalSecretIdsError = OpenBaoOpError;
2347
+ export const appRoleReadLocalSecretIds: API.OperationMethod<
2348
+ AppRoleReadLocalSecretIdsRequest,
2349
+ AppRoleReadLocalSecretIdsResponse,
2350
+ AppRoleReadLocalSecretIdsError,
2351
+ OpenBaoOpContext
2352
+ > = /*@__PURE__*/ API.make(() => ({
2353
+ input: AppRoleReadLocalSecretIdsRequest,
2354
+ output: AppRoleReadLocalSecretIdsResponse,
2355
+ errors: [],
2356
+ protocol: OpenBaoProtocol,
2357
+ retry: Retry.Retry,
2358
+ }));
2359
+
2360
+ export type AppRoleReadPeriodError = OpenBaoOpError;
2361
+ export const appRoleReadPeriod: API.OperationMethod<
2362
+ AppRoleReadPeriodRequest,
2363
+ AppRoleReadPeriodResponse,
2364
+ AppRoleReadPeriodError,
2365
+ OpenBaoOpContext
2366
+ > = /*@__PURE__*/ API.make(() => ({
2367
+ input: AppRoleReadPeriodRequest,
2368
+ output: AppRoleReadPeriodResponse,
2369
+ errors: [],
2370
+ protocol: OpenBaoProtocol,
2371
+ retry: Retry.Retry,
2372
+ }));
2373
+
2374
+ export type AppRoleReadPoliciesError = OpenBaoOpError;
2375
+ export const appRoleReadPolicies: API.OperationMethod<
2376
+ AppRoleReadPoliciesRequest,
2377
+ AppRoleReadPoliciesResponse,
2378
+ AppRoleReadPoliciesError,
2379
+ OpenBaoOpContext
2380
+ > = /*@__PURE__*/ API.make(() => ({
2381
+ input: AppRoleReadPoliciesRequest,
2382
+ output: AppRoleReadPoliciesResponse,
2383
+ errors: [],
2384
+ protocol: OpenBaoProtocol,
2385
+ retry: Retry.Retry,
2386
+ }));
2387
+
2388
+ export type AppRoleReadRoleError = OpenBaoOpError;
2389
+ export const appRoleReadRole: API.OperationMethod<
2390
+ AppRoleReadRoleRequest,
2391
+ AppRoleReadRoleResponse,
2392
+ AppRoleReadRoleError,
2393
+ OpenBaoOpContext
2394
+ > = /*@__PURE__*/ API.make(() => ({
2395
+ input: AppRoleReadRoleRequest,
2396
+ output: AppRoleReadRoleResponse,
2397
+ errors: [],
2398
+ protocol: OpenBaoProtocol,
2399
+ retry: Retry.Retry,
2400
+ }));
2401
+
2402
+ export type AppRoleReadRoleIdError = OpenBaoOpError;
2403
+ export const appRoleReadRoleId: API.OperationMethod<
2404
+ AppRoleReadRoleIdRequest,
2405
+ AppRoleReadRoleIdResponse,
2406
+ AppRoleReadRoleIdError,
2407
+ OpenBaoOpContext
2408
+ > = /*@__PURE__*/ API.make(() => ({
2409
+ input: AppRoleReadRoleIdRequest,
2410
+ output: AppRoleReadRoleIdResponse,
2411
+ errors: [],
2412
+ protocol: OpenBaoProtocol,
2413
+ retry: Retry.Retry,
2414
+ }));
2415
+
2416
+ export type AppRoleReadSecretIdBoundCidrsError = OpenBaoOpError;
2417
+ export const appRoleReadSecretIdBoundCidrs: API.OperationMethod<
2418
+ AppRoleReadSecretIdBoundCidrsRequest,
2419
+ AppRoleReadSecretIdBoundCidrsResponse,
2420
+ AppRoleReadSecretIdBoundCidrsError,
2421
+ OpenBaoOpContext
2422
+ > = /*@__PURE__*/ API.make(() => ({
2423
+ input: AppRoleReadSecretIdBoundCidrsRequest,
2424
+ output: AppRoleReadSecretIdBoundCidrsResponse,
2425
+ errors: [],
2426
+ protocol: OpenBaoProtocol,
2427
+ retry: Retry.Retry,
2428
+ }));
2429
+
2430
+ export type AppRoleReadSecretIdNumUsesError = OpenBaoOpError;
2431
+ export const appRoleReadSecretIdNumUses: API.OperationMethod<
2432
+ AppRoleReadSecretIdNumUsesRequest,
2433
+ AppRoleReadSecretIdNumUsesResponse,
2434
+ AppRoleReadSecretIdNumUsesError,
2435
+ OpenBaoOpContext
2436
+ > = /*@__PURE__*/ API.make(() => ({
2437
+ input: AppRoleReadSecretIdNumUsesRequest,
2438
+ output: AppRoleReadSecretIdNumUsesResponse,
2439
+ errors: [],
2440
+ protocol: OpenBaoProtocol,
2441
+ retry: Retry.Retry,
2442
+ }));
2443
+
2444
+ export type AppRoleReadSecretIdTtlError = OpenBaoOpError;
2445
+ export const appRoleReadSecretIdTtl: API.OperationMethod<
2446
+ AppRoleReadSecretIdTtlRequest,
2447
+ AppRoleReadSecretIdTtlResponse,
2448
+ AppRoleReadSecretIdTtlError,
2449
+ OpenBaoOpContext
2450
+ > = /*@__PURE__*/ API.make(() => ({
2451
+ input: AppRoleReadSecretIdTtlRequest,
2452
+ output: AppRoleReadSecretIdTtlResponse,
2453
+ errors: [],
2454
+ protocol: OpenBaoProtocol,
2455
+ retry: Retry.Retry,
2456
+ }));
2457
+
2458
+ export type AppRoleReadTokenBoundCidrsError = OpenBaoOpError;
2459
+ export const appRoleReadTokenBoundCidrs: API.OperationMethod<
2460
+ AppRoleReadTokenBoundCidrsRequest,
2461
+ AppRoleReadTokenBoundCidrsResponse,
2462
+ AppRoleReadTokenBoundCidrsError,
2463
+ OpenBaoOpContext
2464
+ > = /*@__PURE__*/ API.make(() => ({
2465
+ input: AppRoleReadTokenBoundCidrsRequest,
2466
+ output: AppRoleReadTokenBoundCidrsResponse,
2467
+ errors: [],
2468
+ protocol: OpenBaoProtocol,
2469
+ retry: Retry.Retry,
2470
+ }));
2471
+
2472
+ export type AppRoleReadTokenMaxTtlError = OpenBaoOpError;
2473
+ export const appRoleReadTokenMaxTtl: API.OperationMethod<
2474
+ AppRoleReadTokenMaxTtlRequest,
2475
+ AppRoleReadTokenMaxTtlResponse,
2476
+ AppRoleReadTokenMaxTtlError,
2477
+ OpenBaoOpContext
2478
+ > = /*@__PURE__*/ API.make(() => ({
2479
+ input: AppRoleReadTokenMaxTtlRequest,
2480
+ output: AppRoleReadTokenMaxTtlResponse,
2481
+ errors: [],
2482
+ protocol: OpenBaoProtocol,
2483
+ retry: Retry.Retry,
2484
+ }));
2485
+
2486
+ export type AppRoleReadTokenNumUsesError = OpenBaoOpError;
2487
+ export const appRoleReadTokenNumUses: API.OperationMethod<
2488
+ AppRoleReadTokenNumUsesRequest,
2489
+ AppRoleReadTokenNumUsesResponse,
2490
+ AppRoleReadTokenNumUsesError,
2491
+ OpenBaoOpContext
2492
+ > = /*@__PURE__*/ API.make(() => ({
2493
+ input: AppRoleReadTokenNumUsesRequest,
2494
+ output: AppRoleReadTokenNumUsesResponse,
2495
+ errors: [],
2496
+ protocol: OpenBaoProtocol,
2497
+ retry: Retry.Retry,
2498
+ }));
2499
+
2500
+ export type AppRoleReadTokenTtlError = OpenBaoOpError;
2501
+ export const appRoleReadTokenTtl: API.OperationMethod<
2502
+ AppRoleReadTokenTtlRequest,
2503
+ AppRoleReadTokenTtlResponse,
2504
+ AppRoleReadTokenTtlError,
2505
+ OpenBaoOpContext
2506
+ > = /*@__PURE__*/ API.make(() => ({
2507
+ input: AppRoleReadTokenTtlRequest,
2508
+ output: AppRoleReadTokenTtlResponse,
2509
+ errors: [],
2510
+ protocol: OpenBaoProtocol,
2511
+ retry: Retry.Retry,
2512
+ }));
2513
+
2514
+ export type AppRoleTidySecretIdError = OpenBaoOpError;
2515
+ export const appRoleTidySecretId: API.OperationMethod<
2516
+ AppRoleTidySecretIdRequest,
2517
+ AppRoleTidySecretIdResponse,
2518
+ AppRoleTidySecretIdError,
2519
+ OpenBaoOpContext
2520
+ > = /*@__PURE__*/ API.make(() => ({
2521
+ input: AppRoleTidySecretIdRequest,
2522
+ output: AppRoleTidySecretIdResponse,
2523
+ errors: [],
2524
+ protocol: OpenBaoProtocol,
2525
+ retry: Retry.Retry,
2526
+ }));
2527
+
2528
+ export type AppRoleWriteBindSecretIdError = OpenBaoOpError;
2529
+ export const appRoleWriteBindSecretId: API.OperationMethod<
2530
+ AppRoleWriteBindSecretIdRequest,
2531
+ AppRoleWriteBindSecretIdResponse,
2532
+ AppRoleWriteBindSecretIdError,
2533
+ OpenBaoOpContext
2534
+ > = /*@__PURE__*/ API.make(() => ({
2535
+ input: AppRoleWriteBindSecretIdRequest,
2536
+ output: AppRoleWriteBindSecretIdResponse,
2537
+ errors: [],
2538
+ protocol: OpenBaoProtocol,
2539
+ retry: Retry.Retry,
2540
+ }));
2541
+
2542
+ export type AppRoleWriteCustomSecretIdError = OpenBaoOpError;
2543
+ export const appRoleWriteCustomSecretId: API.OperationMethod<
2544
+ AppRoleWriteCustomSecretIdRequest,
2545
+ AppRoleWriteCustomSecretIdResponse,
2546
+ AppRoleWriteCustomSecretIdError,
2547
+ OpenBaoOpContext
2548
+ > = /*@__PURE__*/ API.make(() => ({
2549
+ input: AppRoleWriteCustomSecretIdRequest,
2550
+ output: AppRoleWriteCustomSecretIdResponse,
2551
+ errors: [],
2552
+ protocol: OpenBaoProtocol,
2553
+ retry: Retry.Retry,
2554
+ }));
2555
+
2556
+ export type AppRoleWritePeriodError = OpenBaoOpError;
2557
+ export const appRoleWritePeriod: API.OperationMethod<
2558
+ AppRoleWritePeriodRequest,
2559
+ AppRoleWritePeriodResponse,
2560
+ AppRoleWritePeriodError,
2561
+ OpenBaoOpContext
2562
+ > = /*@__PURE__*/ API.make(() => ({
2563
+ input: AppRoleWritePeriodRequest,
2564
+ output: AppRoleWritePeriodResponse,
2565
+ errors: [],
2566
+ protocol: OpenBaoProtocol,
2567
+ retry: Retry.Retry,
2568
+ }));
2569
+
2570
+ export type AppRoleWritePoliciesError = OpenBaoOpError;
2571
+ export const appRoleWritePolicies: API.OperationMethod<
2572
+ AppRoleWritePoliciesRequest,
2573
+ AppRoleWritePoliciesResponse,
2574
+ AppRoleWritePoliciesError,
2575
+ OpenBaoOpContext
2576
+ > = /*@__PURE__*/ API.make(() => ({
2577
+ input: AppRoleWritePoliciesRequest,
2578
+ output: AppRoleWritePoliciesResponse,
2579
+ errors: [],
2580
+ protocol: OpenBaoProtocol,
2581
+ retry: Retry.Retry,
2582
+ }));
2583
+
2584
+ export type AppRoleWriteRoleError = OpenBaoOpError;
2585
+ export const appRoleWriteRole: API.OperationMethod<
2586
+ AppRoleWriteRoleRequest,
2587
+ AppRoleWriteRoleResponse,
2588
+ AppRoleWriteRoleError,
2589
+ OpenBaoOpContext
2590
+ > = /*@__PURE__*/ API.make(() => ({
2591
+ input: AppRoleWriteRoleRequest,
2592
+ output: AppRoleWriteRoleResponse,
2593
+ errors: [],
2594
+ protocol: OpenBaoProtocol,
2595
+ retry: Retry.Retry,
2596
+ }));
2597
+
2598
+ export type AppRoleWriteRoleIdError = OpenBaoOpError;
2599
+ export const appRoleWriteRoleId: API.OperationMethod<
2600
+ AppRoleWriteRoleIdRequest,
2601
+ AppRoleWriteRoleIdResponse,
2602
+ AppRoleWriteRoleIdError,
2603
+ OpenBaoOpContext
2604
+ > = /*@__PURE__*/ API.make(() => ({
2605
+ input: AppRoleWriteRoleIdRequest,
2606
+ output: AppRoleWriteRoleIdResponse,
2607
+ errors: [],
2608
+ protocol: OpenBaoProtocol,
2609
+ retry: Retry.Retry,
2610
+ }));
2611
+
2612
+ export type AppRoleWriteSecretIdError = OpenBaoOpError;
2613
+ export const appRoleWriteSecretId: API.OperationMethod<
2614
+ AppRoleWriteSecretIdRequest,
2615
+ AppRoleWriteSecretIdResponse,
2616
+ AppRoleWriteSecretIdError,
2617
+ OpenBaoOpContext
2618
+ > = /*@__PURE__*/ API.make(() => ({
2619
+ input: AppRoleWriteSecretIdRequest,
2620
+ output: AppRoleWriteSecretIdResponse,
2621
+ errors: [],
2622
+ protocol: OpenBaoProtocol,
2623
+ retry: Retry.Retry,
2624
+ }));
2625
+
2626
+ export type AppRoleWriteSecretIdBoundCidrsError = OpenBaoOpError;
2627
+ export const appRoleWriteSecretIdBoundCidrs: API.OperationMethod<
2628
+ AppRoleWriteSecretIdBoundCidrsRequest,
2629
+ AppRoleWriteSecretIdBoundCidrsResponse,
2630
+ AppRoleWriteSecretIdBoundCidrsError,
2631
+ OpenBaoOpContext
2632
+ > = /*@__PURE__*/ API.make(() => ({
2633
+ input: AppRoleWriteSecretIdBoundCidrsRequest,
2634
+ output: AppRoleWriteSecretIdBoundCidrsResponse,
2635
+ errors: [],
2636
+ protocol: OpenBaoProtocol,
2637
+ retry: Retry.Retry,
2638
+ }));
2639
+
2640
+ export type AppRoleWriteSecretIdNumUsesError = OpenBaoOpError;
2641
+ export const appRoleWriteSecretIdNumUses: API.OperationMethod<
2642
+ AppRoleWriteSecretIdNumUsesRequest,
2643
+ AppRoleWriteSecretIdNumUsesResponse,
2644
+ AppRoleWriteSecretIdNumUsesError,
2645
+ OpenBaoOpContext
2646
+ > = /*@__PURE__*/ API.make(() => ({
2647
+ input: AppRoleWriteSecretIdNumUsesRequest,
2648
+ output: AppRoleWriteSecretIdNumUsesResponse,
2649
+ errors: [],
2650
+ protocol: OpenBaoProtocol,
2651
+ retry: Retry.Retry,
2652
+ }));
2653
+
2654
+ export type AppRoleWriteSecretIdTtlError = OpenBaoOpError;
2655
+ export const appRoleWriteSecretIdTtl: API.OperationMethod<
2656
+ AppRoleWriteSecretIdTtlRequest,
2657
+ AppRoleWriteSecretIdTtlResponse,
2658
+ AppRoleWriteSecretIdTtlError,
2659
+ OpenBaoOpContext
2660
+ > = /*@__PURE__*/ API.make(() => ({
2661
+ input: AppRoleWriteSecretIdTtlRequest,
2662
+ output: AppRoleWriteSecretIdTtlResponse,
2663
+ errors: [],
2664
+ protocol: OpenBaoProtocol,
2665
+ retry: Retry.Retry,
2666
+ }));
2667
+
2668
+ export type AppRoleWriteTokenBoundCidrsError = OpenBaoOpError;
2669
+ export const appRoleWriteTokenBoundCidrs: API.OperationMethod<
2670
+ AppRoleWriteTokenBoundCidrsRequest,
2671
+ AppRoleWriteTokenBoundCidrsResponse,
2672
+ AppRoleWriteTokenBoundCidrsError,
2673
+ OpenBaoOpContext
2674
+ > = /*@__PURE__*/ API.make(() => ({
2675
+ input: AppRoleWriteTokenBoundCidrsRequest,
2676
+ output: AppRoleWriteTokenBoundCidrsResponse,
2677
+ errors: [],
2678
+ protocol: OpenBaoProtocol,
2679
+ retry: Retry.Retry,
2680
+ }));
2681
+
2682
+ export type AppRoleWriteTokenMaxTtlError = OpenBaoOpError;
2683
+ export const appRoleWriteTokenMaxTtl: API.OperationMethod<
2684
+ AppRoleWriteTokenMaxTtlRequest,
2685
+ AppRoleWriteTokenMaxTtlResponse,
2686
+ AppRoleWriteTokenMaxTtlError,
2687
+ OpenBaoOpContext
2688
+ > = /*@__PURE__*/ API.make(() => ({
2689
+ input: AppRoleWriteTokenMaxTtlRequest,
2690
+ output: AppRoleWriteTokenMaxTtlResponse,
2691
+ errors: [],
2692
+ protocol: OpenBaoProtocol,
2693
+ retry: Retry.Retry,
2694
+ }));
2695
+
2696
+ export type AppRoleWriteTokenNumUsesError = OpenBaoOpError;
2697
+ export const appRoleWriteTokenNumUses: API.OperationMethod<
2698
+ AppRoleWriteTokenNumUsesRequest,
2699
+ AppRoleWriteTokenNumUsesResponse,
2700
+ AppRoleWriteTokenNumUsesError,
2701
+ OpenBaoOpContext
2702
+ > = /*@__PURE__*/ API.make(() => ({
2703
+ input: AppRoleWriteTokenNumUsesRequest,
2704
+ output: AppRoleWriteTokenNumUsesResponse,
2705
+ errors: [],
2706
+ protocol: OpenBaoProtocol,
2707
+ retry: Retry.Retry,
2708
+ }));
2709
+
2710
+ export type AppRoleWriteTokenTtlError = OpenBaoOpError;
2711
+ export const appRoleWriteTokenTtl: API.OperationMethod<
2712
+ AppRoleWriteTokenTtlRequest,
2713
+ AppRoleWriteTokenTtlResponse,
2714
+ AppRoleWriteTokenTtlError,
2715
+ OpenBaoOpContext
2716
+ > = /*@__PURE__*/ API.make(() => ({
2717
+ input: AppRoleWriteTokenTtlRequest,
2718
+ output: AppRoleWriteTokenTtlResponse,
2719
+ errors: [],
2720
+ protocol: OpenBaoProtocol,
2721
+ retry: Retry.Retry,
2722
+ }));
2723
+
2724
+ export type ListAppRoleWriteBoundCidrError = OpenBaoOpError;
2725
+ export const listAppRoleWriteBoundCidr: API.OperationMethod<
2726
+ ListAppRoleWriteBoundCidrRequest,
2727
+ ListAppRoleWriteBoundCidrResponse,
2728
+ ListAppRoleWriteBoundCidrError,
2729
+ OpenBaoOpContext
2730
+ > = /*@__PURE__*/ API.make(() => ({
2731
+ input: ListAppRoleWriteBoundCidrRequest,
2732
+ output: ListAppRoleWriteBoundCidrResponse,
2733
+ errors: [],
2734
+ protocol: OpenBaoProtocol,
2735
+ retry: Retry.Retry,
2736
+ }));
2737
+
2738
+ export type LoginAppRoleError = OpenBaoOpError;
2739
+ export const loginAppRole: API.OperationMethod<
2740
+ LoginAppRoleRequest,
2741
+ LoginAppRoleResponse,
2742
+ LoginAppRoleError,
2743
+ OpenBaoOpContext
2744
+ > = /*@__PURE__*/ API.make(() => ({
2745
+ input: LoginAppRoleRequest,
2746
+ output: LoginAppRoleResponse,
2747
+ errors: [],
2748
+ protocol: OpenBaoProtocol,
2749
+ retry: Retry.Retry,
2750
+ }));