@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,801 @@
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.js";
5
+ import { OpenBaoProtocol, } from "../protocol.js";
6
+ import * as Retry from "../retry.js";
7
+ export const JwtConfigureRequestJwtSupportedAlgsList = /*@__PURE__*/ S.Array(S.String);
8
+ export const JwtConfigureRequestJwtValidationPubkeysList =
9
+ /*@__PURE__*/ S.Array(S.String);
10
+ export const JwtConfigureRequestOidcResponseTypesList = /*@__PURE__*/ S.Array(S.String);
11
+ export const JwtConfigureRequestOverrideAllowedServerNamesList =
12
+ /*@__PURE__*/ S.Array(S.String);
13
+ export const JwtConfigureRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
14
+ jwt_mount_path: S.String.pipe(T.Label()),
15
+ bound_issuer: S.optional(S.String),
16
+ default_role: S.optional(S.String),
17
+ jwks_ca_pem: S.optional(S.String),
18
+ jwks_url: S.optional(S.String),
19
+ jwt_supported_algs: S.optional(JwtConfigureRequestJwtSupportedAlgsList),
20
+ jwt_validation_pubkeys: S.optional(JwtConfigureRequestJwtValidationPubkeysList),
21
+ namespace_in_state: S.optional(S.Boolean),
22
+ oidc_client_id: S.optional(S.String),
23
+ oidc_client_secret: S.optional(S.String),
24
+ oidc_discovery_ca_pem: S.optional(S.String),
25
+ oidc_discovery_url: S.optional(S.String),
26
+ oidc_response_mode: S.optional(S.String),
27
+ oidc_response_types: S.optional(JwtConfigureRequestOidcResponseTypesList),
28
+ override_allowed_server_names: S.optional(JwtConfigureRequestOverrideAllowedServerNamesList),
29
+ provider_config: S.optional(S.Unknown),
30
+ skip_jwks_validation: S.optional(S.Boolean),
31
+ }).pipe(T.Http({ method: "POST", uri: "/auth/{jwt_mount_path}/config", code: 200 }))).annotate({
32
+ identifier: "JwtConfigureRequest",
33
+ });
34
+ export const JwtConfigureResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
35
+ identifier: "JwtConfigureResponse",
36
+ });
37
+ export const JwtConfigureRequestJwtSupportedAlgsList2 = /*@__PURE__*/ S.Array(S.String);
38
+ export const JwtConfigureRequestJwtValidationPubkeysList2 =
39
+ /*@__PURE__*/ S.Array(S.String);
40
+ export const JwtConfigureRequestOidcResponseTypesList2 = /*@__PURE__*/ S.Array(S.String);
41
+ export const JwtConfigureRequestOverrideAllowedServerNamesList2 =
42
+ /*@__PURE__*/ S.Array(S.String);
43
+ export const JwtConfigureRequest2 = /*@__PURE__*/ S.suspend(() => S.Struct({
44
+ oidc_mount_path: S.String.pipe(T.Label()),
45
+ bound_issuer: S.optional(S.String),
46
+ default_role: S.optional(S.String),
47
+ jwks_ca_pem: S.optional(S.String),
48
+ jwks_url: S.optional(S.String),
49
+ jwt_supported_algs: S.optional(JwtConfigureRequestJwtSupportedAlgsList2),
50
+ jwt_validation_pubkeys: S.optional(JwtConfigureRequestJwtValidationPubkeysList2),
51
+ namespace_in_state: S.optional(S.Boolean),
52
+ oidc_client_id: S.optional(S.String),
53
+ oidc_client_secret: S.optional(S.String),
54
+ oidc_discovery_ca_pem: S.optional(S.String),
55
+ oidc_discovery_url: S.optional(S.String),
56
+ oidc_response_mode: S.optional(S.String),
57
+ oidc_response_types: S.optional(JwtConfigureRequestOidcResponseTypesList2),
58
+ override_allowed_server_names: S.optional(JwtConfigureRequestOverrideAllowedServerNamesList2),
59
+ provider_config: S.optional(S.Unknown),
60
+ skip_jwks_validation: S.optional(S.Boolean),
61
+ }).pipe(T.Http({
62
+ method: "POST",
63
+ uri: "/auth/{oidc_mount_path}/config",
64
+ code: 200,
65
+ }))).annotate({
66
+ identifier: "JwtConfigureRequest2",
67
+ });
68
+ export const JwtConfigure2Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
69
+ identifier: "JwtConfigure2Response",
70
+ });
71
+ export const JwtDeleteRoleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
72
+ jwt_mount_path: S.String.pipe(T.Label()),
73
+ name: S.String.pipe(T.Label()),
74
+ }).pipe(T.Http({
75
+ method: "DELETE",
76
+ uri: "/auth/{jwt_mount_path}/cel/role/{name}",
77
+ code: 200,
78
+ }))).annotate({
79
+ identifier: "JwtDeleteRoleRequest",
80
+ });
81
+ export const JwtDeleteRoleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
82
+ identifier: "JwtDeleteRoleResponse",
83
+ });
84
+ export const JwtDeleteRoleRequest2 = /*@__PURE__*/ S.suspend(() => S.Struct({
85
+ jwt_mount_path: S.String.pipe(T.Label()),
86
+ name: S.String.pipe(T.Label()),
87
+ }).pipe(T.Http({
88
+ method: "DELETE",
89
+ uri: "/auth/{jwt_mount_path}/role/{name}",
90
+ code: 200,
91
+ }))).annotate({
92
+ identifier: "JwtDeleteRoleRequest2",
93
+ });
94
+ export const JwtDeleteRole2Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
95
+ identifier: "JwtDeleteRole2Response",
96
+ });
97
+ export const JwtDeleteRoleRequest3 = /*@__PURE__*/ S.suspend(() => S.Struct({
98
+ oidc_mount_path: S.String.pipe(T.Label()),
99
+ name: S.String.pipe(T.Label()),
100
+ }).pipe(T.Http({
101
+ method: "DELETE",
102
+ uri: "/auth/{oidc_mount_path}/cel/role/{name}",
103
+ code: 200,
104
+ }))).annotate({
105
+ identifier: "JwtDeleteRoleRequest3",
106
+ });
107
+ export const JwtDeleteRole3Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
108
+ identifier: "JwtDeleteRole3Response",
109
+ });
110
+ export const JwtDeleteRoleRequest4 = /*@__PURE__*/ S.suspend(() => S.Struct({
111
+ oidc_mount_path: S.String.pipe(T.Label()),
112
+ name: S.String.pipe(T.Label()),
113
+ }).pipe(T.Http({
114
+ method: "DELETE",
115
+ uri: "/auth/{oidc_mount_path}/role/{name}",
116
+ code: 200,
117
+ }))).annotate({
118
+ identifier: "JwtDeleteRoleRequest4",
119
+ });
120
+ export const JwtDeleteRole4Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
121
+ identifier: "JwtDeleteRole4Response",
122
+ });
123
+ export const JwtListCelRequestList = S.String;
124
+ export const JwtListCelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
125
+ jwt_mount_path: S.String.pipe(T.Label()),
126
+ list: JwtListCelRequestList.pipe(T.Query()),
127
+ }).pipe(T.Http({
128
+ method: "GET",
129
+ uri: "/auth/{jwt_mount_path}/cel/role",
130
+ code: 200,
131
+ }))).annotate({
132
+ identifier: "JwtListCelRequest",
133
+ });
134
+ export const JwtListCelResponseKeysList = /*@__PURE__*/ S.Array(S.String);
135
+ export const JwtListCelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
136
+ keys: S.optional(JwtListCelResponseKeysList),
137
+ })).annotate({
138
+ identifier: "JwtListCelResponse",
139
+ });
140
+ export const JwtListCelRequestList2 = S.String;
141
+ export const JwtListCelRequest2 = /*@__PURE__*/ S.suspend(() => S.Struct({
142
+ oidc_mount_path: S.String.pipe(T.Label()),
143
+ list: JwtListCelRequestList2.pipe(T.Query()),
144
+ }).pipe(T.Http({
145
+ method: "GET",
146
+ uri: "/auth/{oidc_mount_path}/cel/role",
147
+ code: 200,
148
+ }))).annotate({
149
+ identifier: "JwtListCelRequest2",
150
+ });
151
+ export const JwtListRolesRequestList = S.String;
152
+ export const JwtListRolesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
153
+ jwt_mount_path: S.String.pipe(T.Label()),
154
+ list: JwtListRolesRequestList.pipe(T.Query()),
155
+ }).pipe(T.Http({ method: "GET", uri: "/auth/{jwt_mount_path}/role", code: 200 }))).annotate({
156
+ identifier: "JwtListRolesRequest",
157
+ });
158
+ export const JwtListRolesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
159
+ identifier: "JwtListRolesResponse",
160
+ });
161
+ export const JwtListRolesRequestList2 = S.String;
162
+ export const JwtListRolesRequest2 = /*@__PURE__*/ S.suspend(() => S.Struct({
163
+ oidc_mount_path: S.String.pipe(T.Label()),
164
+ list: JwtListRolesRequestList2.pipe(T.Query()),
165
+ }).pipe(T.Http({ method: "GET", uri: "/auth/{oidc_mount_path}/role", code: 200 }))).annotate({
166
+ identifier: "JwtListRolesRequest2",
167
+ });
168
+ export const JwtListRoles2Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
169
+ identifier: "JwtListRoles2Response",
170
+ });
171
+ export const JwtOidcCallbackRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
172
+ jwt_mount_path: S.String.pipe(T.Label()),
173
+ client_nonce: S.optional(S.String.pipe(T.Query())),
174
+ code: S.optional(S.String.pipe(T.Query())),
175
+ confirmation: S.optional(S.String.pipe(T.Query())),
176
+ error: S.optional(S.String.pipe(T.Query())),
177
+ error_description: S.optional(S.String.pipe(T.Query())),
178
+ error_uri: S.optional(S.String.pipe(T.Query())),
179
+ state: S.optional(S.String.pipe(T.Query())),
180
+ }).pipe(T.Http({
181
+ method: "GET",
182
+ uri: "/auth/{jwt_mount_path}/oidc/callback",
183
+ code: 200,
184
+ }))).annotate({
185
+ identifier: "JwtOidcCallbackRequest",
186
+ });
187
+ export const JwtOidcCallbackResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
188
+ identifier: "JwtOidcCallbackResponse",
189
+ });
190
+ export const JwtOidcCallbackRequest2 = /*@__PURE__*/ S.suspend(() => S.Struct({
191
+ oidc_mount_path: S.String.pipe(T.Label()),
192
+ client_nonce: S.optional(S.String.pipe(T.Query())),
193
+ code: S.optional(S.String.pipe(T.Query())),
194
+ confirmation: S.optional(S.String.pipe(T.Query())),
195
+ error: S.optional(S.String.pipe(T.Query())),
196
+ error_description: S.optional(S.String.pipe(T.Query())),
197
+ error_uri: S.optional(S.String.pipe(T.Query())),
198
+ state: S.optional(S.String.pipe(T.Query())),
199
+ }).pipe(T.Http({
200
+ method: "GET",
201
+ uri: "/auth/{oidc_mount_path}/oidc/callback",
202
+ code: 200,
203
+ }))).annotate({
204
+ identifier: "JwtOidcCallbackRequest2",
205
+ });
206
+ export const JwtOidcCallback2Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
207
+ identifier: "JwtOidcCallback2Response",
208
+ });
209
+ export const JwtOidcRequestAuthorizationUrlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
210
+ jwt_mount_path: S.String.pipe(T.Label()),
211
+ client_nonce: S.optional(S.String),
212
+ redirect_uri: S.optional(S.String),
213
+ role: S.optional(S.String),
214
+ }).pipe(T.Http({
215
+ method: "POST",
216
+ uri: "/auth/{jwt_mount_path}/oidc/auth_url",
217
+ code: 200,
218
+ }))).annotate({
219
+ identifier: "JwtOidcRequestAuthorizationUrlRequest",
220
+ });
221
+ export const JwtOidcRequestAuthorizationUrlResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
222
+ identifier: "JwtOidcRequestAuthorizationUrlResponse",
223
+ });
224
+ export const JwtOidcRequestAuthorizationUrlRequest2 = /*@__PURE__*/ S.suspend(() => S.Struct({
225
+ oidc_mount_path: S.String.pipe(T.Label()),
226
+ client_nonce: S.optional(S.String),
227
+ redirect_uri: S.optional(S.String),
228
+ role: S.optional(S.String),
229
+ }).pipe(T.Http({
230
+ method: "POST",
231
+ uri: "/auth/{oidc_mount_path}/oidc/auth_url",
232
+ code: 200,
233
+ }))).annotate({
234
+ identifier: "JwtOidcRequestAuthorizationUrlRequest2",
235
+ });
236
+ export const JwtOidcRequestAuthorizationUrl2Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
237
+ identifier: "JwtOidcRequestAuthorizationUrl2Response",
238
+ });
239
+ export const JwtPatchRoleRequestBoundAudiencesList = /*@__PURE__*/ S.Array(S.String);
240
+ export const JwtPatchRoleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
241
+ jwt_mount_path: S.String.pipe(T.Label()),
242
+ name: S.String.pipe(T.Label()),
243
+ bound_audiences: S.optional(JwtPatchRoleRequestBoundAudiencesList),
244
+ cel_program: S.optional(S.Unknown),
245
+ clock_skew_leeway: S.optional(S.Number),
246
+ expiration_leeway: S.optional(S.Number),
247
+ message: S.optional(S.String),
248
+ not_before_leeway: S.optional(S.Number),
249
+ }).pipe(T.Http({
250
+ method: "PATCH",
251
+ uri: "/auth/{jwt_mount_path}/cel/role/{name}",
252
+ code: 200,
253
+ }))).annotate({
254
+ identifier: "JwtPatchRoleRequest",
255
+ });
256
+ export const JwtPatchRoleResponseBoundAudiencesList = /*@__PURE__*/ S.Array(S.String);
257
+ export const JwtPatchRoleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
258
+ bound_audiences: S.optional(JwtPatchRoleResponseBoundAudiencesList),
259
+ cel_program: S.optional(S.Unknown),
260
+ clock_skew_leeway: S.optional(S.Number),
261
+ expiration_leeway: S.optional(S.Number),
262
+ message: S.optional(S.String),
263
+ name: S.optional(S.String),
264
+ not_before_leeway: S.optional(S.Number),
265
+ })).annotate({
266
+ identifier: "JwtPatchRoleResponse",
267
+ });
268
+ export const JwtPatchRoleRequestBoundAudiencesList2 = /*@__PURE__*/ S.Array(S.String);
269
+ export const JwtPatchRoleRequest2 = /*@__PURE__*/ S.suspend(() => S.Struct({
270
+ oidc_mount_path: S.String.pipe(T.Label()),
271
+ name: S.String.pipe(T.Label()),
272
+ bound_audiences: S.optional(JwtPatchRoleRequestBoundAudiencesList2),
273
+ cel_program: S.optional(S.Unknown),
274
+ clock_skew_leeway: S.optional(S.Number),
275
+ expiration_leeway: S.optional(S.Number),
276
+ message: S.optional(S.String),
277
+ not_before_leeway: S.optional(S.Number),
278
+ }).pipe(T.Http({
279
+ method: "PATCH",
280
+ uri: "/auth/{oidc_mount_path}/cel/role/{name}",
281
+ code: 200,
282
+ }))).annotate({
283
+ identifier: "JwtPatchRoleRequest2",
284
+ });
285
+ export const JwtReadConfigurationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
286
+ jwt_mount_path: S.String.pipe(T.Label()),
287
+ }).pipe(T.Http({ method: "GET", uri: "/auth/{jwt_mount_path}/config", code: 200 }))).annotate({
288
+ identifier: "JwtReadConfigurationRequest",
289
+ });
290
+ export const JwtReadConfigurationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
291
+ identifier: "JwtReadConfigurationResponse",
292
+ });
293
+ export const JwtReadConfigurationRequest2 = /*@__PURE__*/ S.suspend(() => S.Struct({
294
+ oidc_mount_path: S.String.pipe(T.Label()),
295
+ }).pipe(T.Http({ method: "GET", uri: "/auth/{oidc_mount_path}/config", code: 200 }))).annotate({
296
+ identifier: "JwtReadConfigurationRequest2",
297
+ });
298
+ export const JwtReadConfiguration2Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
299
+ identifier: "JwtReadConfiguration2Response",
300
+ });
301
+ export const JwtReadRoleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
302
+ jwt_mount_path: S.String.pipe(T.Label()),
303
+ name: S.String.pipe(T.Label()),
304
+ }).pipe(T.Http({
305
+ method: "GET",
306
+ uri: "/auth/{jwt_mount_path}/cel/role/{name}",
307
+ code: 200,
308
+ }))).annotate({
309
+ identifier: "JwtReadRoleRequest",
310
+ });
311
+ export const JwtReadRoleResponseBoundAudiencesList = /*@__PURE__*/ S.Array(S.String);
312
+ export const JwtReadRoleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
313
+ bound_audiences: S.optional(JwtReadRoleResponseBoundAudiencesList),
314
+ cel_program: S.optional(S.Unknown),
315
+ clock_skew_leeway: S.optional(S.Number),
316
+ expiration_leeway: S.optional(S.Number),
317
+ message: S.optional(S.String),
318
+ name: S.optional(S.String),
319
+ not_before_leeway: S.optional(S.Number),
320
+ })).annotate({
321
+ identifier: "JwtReadRoleResponse",
322
+ });
323
+ export const JwtReadRoleRequest2 = /*@__PURE__*/ S.suspend(() => S.Struct({
324
+ jwt_mount_path: S.String.pipe(T.Label()),
325
+ name: S.String.pipe(T.Label()),
326
+ }).pipe(T.Http({
327
+ method: "GET",
328
+ uri: "/auth/{jwt_mount_path}/role/{name}",
329
+ code: 200,
330
+ }))).annotate({
331
+ identifier: "JwtReadRoleRequest2",
332
+ });
333
+ export const JwtReadRole2Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
334
+ identifier: "JwtReadRole2Response",
335
+ });
336
+ export const JwtReadRoleRequest3 = /*@__PURE__*/ S.suspend(() => S.Struct({
337
+ oidc_mount_path: S.String.pipe(T.Label()),
338
+ name: S.String.pipe(T.Label()),
339
+ }).pipe(T.Http({
340
+ method: "GET",
341
+ uri: "/auth/{oidc_mount_path}/cel/role/{name}",
342
+ code: 200,
343
+ }))).annotate({
344
+ identifier: "JwtReadRoleRequest3",
345
+ });
346
+ export const JwtReadRoleRequest4 = /*@__PURE__*/ S.suspend(() => S.Struct({
347
+ oidc_mount_path: S.String.pipe(T.Label()),
348
+ name: S.String.pipe(T.Label()),
349
+ }).pipe(T.Http({
350
+ method: "GET",
351
+ uri: "/auth/{oidc_mount_path}/role/{name}",
352
+ code: 200,
353
+ }))).annotate({
354
+ identifier: "JwtReadRoleRequest4",
355
+ });
356
+ export const JwtReadRole4Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
357
+ identifier: "JwtReadRole4Response",
358
+ });
359
+ export const JwtWriteRoleRequestBoundAudiencesList = /*@__PURE__*/ S.Array(S.String);
360
+ export const JwtWriteRoleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
361
+ jwt_mount_path: S.String.pipe(T.Label()),
362
+ name: S.String.pipe(T.Label()),
363
+ bound_audiences: S.optional(JwtWriteRoleRequestBoundAudiencesList),
364
+ cel_program: S.optional(S.Unknown),
365
+ clock_skew_leeway: S.optional(S.Number),
366
+ expiration_leeway: S.optional(S.Number),
367
+ message: S.optional(S.String),
368
+ not_before_leeway: S.optional(S.Number),
369
+ }).pipe(T.Http({
370
+ method: "POST",
371
+ uri: "/auth/{jwt_mount_path}/cel/role/{name}",
372
+ code: 200,
373
+ }))).annotate({
374
+ identifier: "JwtWriteRoleRequest",
375
+ });
376
+ export const JwtWriteRoleResponseBoundAudiencesList = /*@__PURE__*/ S.Array(S.String);
377
+ export const JwtWriteRoleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
378
+ bound_audiences: S.optional(JwtWriteRoleResponseBoundAudiencesList),
379
+ cel_program: S.optional(S.Unknown),
380
+ clock_skew_leeway: S.optional(S.Number),
381
+ expiration_leeway: S.optional(S.Number),
382
+ message: S.optional(S.String),
383
+ name: S.optional(S.String),
384
+ not_before_leeway: S.optional(S.Number),
385
+ })).annotate({
386
+ identifier: "JwtWriteRoleResponse",
387
+ });
388
+ export const JwtWriteRoleRequestBoundAudiencesList2 = /*@__PURE__*/ S.Array(S.String);
389
+ export const JwtWriteRoleRequest2 = /*@__PURE__*/ S.suspend(() => S.Struct({
390
+ jwt_mount_path: S.String.pipe(T.Label()),
391
+ name: S.String.pipe(T.Label()),
392
+ bound_audiences: S.optional(JwtWriteRoleRequestBoundAudiencesList2),
393
+ cel_program: S.optional(S.Unknown),
394
+ clock_skew_leeway: S.optional(S.Number),
395
+ expiration_leeway: S.optional(S.Number),
396
+ message: S.optional(S.String),
397
+ not_before_leeway: S.optional(S.Number),
398
+ }).pipe(T.Http({
399
+ method: "POST",
400
+ uri: "/auth/{jwt_mount_path}/role/{name}",
401
+ code: 200,
402
+ }))).annotate({
403
+ identifier: "JwtWriteRoleRequest2",
404
+ });
405
+ export const JwtWriteRole2Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
406
+ identifier: "JwtWriteRole2Response",
407
+ });
408
+ export const JwtWriteRoleRequestBoundAudiencesList3 = /*@__PURE__*/ S.Array(S.String);
409
+ export const JwtWriteRoleRequest3 = /*@__PURE__*/ S.suspend(() => S.Struct({
410
+ oidc_mount_path: S.String.pipe(T.Label()),
411
+ name: S.String.pipe(T.Label()),
412
+ bound_audiences: S.optional(JwtWriteRoleRequestBoundAudiencesList3),
413
+ cel_program: S.optional(S.Unknown),
414
+ clock_skew_leeway: S.optional(S.Number),
415
+ expiration_leeway: S.optional(S.Number),
416
+ message: S.optional(S.String),
417
+ not_before_leeway: S.optional(S.Number),
418
+ }).pipe(T.Http({
419
+ method: "POST",
420
+ uri: "/auth/{oidc_mount_path}/cel/role/{name}",
421
+ code: 200,
422
+ }))).annotate({
423
+ identifier: "JwtWriteRoleRequest3",
424
+ });
425
+ export const JwtWriteRoleRequestBoundAudiencesList4 = /*@__PURE__*/ S.Array(S.String);
426
+ export const JwtWriteRoleRequest4 = /*@__PURE__*/ S.suspend(() => S.Struct({
427
+ oidc_mount_path: S.String.pipe(T.Label()),
428
+ name: S.String.pipe(T.Label()),
429
+ bound_audiences: S.optional(JwtWriteRoleRequestBoundAudiencesList4),
430
+ cel_program: S.optional(S.Unknown),
431
+ clock_skew_leeway: S.optional(S.Number),
432
+ expiration_leeway: S.optional(S.Number),
433
+ message: S.optional(S.String),
434
+ not_before_leeway: S.optional(S.Number),
435
+ }).pipe(T.Http({
436
+ method: "POST",
437
+ uri: "/auth/{oidc_mount_path}/role/{name}",
438
+ code: 200,
439
+ }))).annotate({
440
+ identifier: "JwtWriteRoleRequest4",
441
+ });
442
+ export const JwtWriteRole4Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
443
+ identifier: "JwtWriteRole4Response",
444
+ });
445
+ export const LoginJwtRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
446
+ jwt_mount_path: S.String.pipe(T.Label()),
447
+ jwt: S.optional(S.String),
448
+ role: S.optional(S.String),
449
+ }).pipe(T.Http({
450
+ method: "POST",
451
+ uri: "/auth/{jwt_mount_path}/cel/login",
452
+ code: 200,
453
+ }))).annotate({
454
+ identifier: "LoginJwtRequest",
455
+ });
456
+ export const LoginJwtResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
457
+ identifier: "LoginJwtResponse",
458
+ });
459
+ export const LoginJwtRequest2 = /*@__PURE__*/ S.suspend(() => S.Struct({
460
+ jwt_mount_path: S.String.pipe(T.Label()),
461
+ jwt: S.optional(S.String),
462
+ role: S.optional(S.String),
463
+ }).pipe(T.Http({ method: "POST", uri: "/auth/{jwt_mount_path}/login", code: 200 }))).annotate({
464
+ identifier: "LoginJwtRequest2",
465
+ });
466
+ export const LoginJwt2Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
467
+ identifier: "LoginJwt2Response",
468
+ });
469
+ export const LoginJwtRequest3 = /*@__PURE__*/ S.suspend(() => S.Struct({
470
+ oidc_mount_path: S.String.pipe(T.Label()),
471
+ jwt: S.optional(S.String),
472
+ role: S.optional(S.String),
473
+ }).pipe(T.Http({
474
+ method: "POST",
475
+ uri: "/auth/{oidc_mount_path}/cel/login",
476
+ code: 200,
477
+ }))).annotate({
478
+ identifier: "LoginJwtRequest3",
479
+ });
480
+ export const LoginJwt3Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
481
+ identifier: "LoginJwt3Response",
482
+ });
483
+ export const LoginJwtRequest4 = /*@__PURE__*/ S.suspend(() => S.Struct({
484
+ oidc_mount_path: S.String.pipe(T.Label()),
485
+ jwt: S.optional(S.String),
486
+ role: S.optional(S.String),
487
+ }).pipe(T.Http({ method: "POST", uri: "/auth/{oidc_mount_path}/login", code: 200 }))).annotate({
488
+ identifier: "LoginJwtRequest4",
489
+ });
490
+ export const LoginJwt4Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
491
+ identifier: "LoginJwt4Response",
492
+ });
493
+ export const PollJwtWriteOidcRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
494
+ jwt_mount_path: S.String.pipe(T.Label()),
495
+ client_nonce: S.optional(S.String),
496
+ state: S.optional(S.String),
497
+ }).pipe(T.Http({
498
+ method: "POST",
499
+ uri: "/auth/{jwt_mount_path}/oidc/poll",
500
+ code: 200,
501
+ }))).annotate({
502
+ identifier: "PollJwtWriteOidcRequest",
503
+ });
504
+ export const PollJwtWriteOidcResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
505
+ identifier: "PollJwtWriteOidcResponse",
506
+ });
507
+ export const PostJwtOidcCallbackFormRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
508
+ jwt_mount_path: S.String.pipe(T.Label()),
509
+ client_nonce: S.optional(S.String.pipe(T.Query())),
510
+ code: S.optional(S.String.pipe(T.Query())),
511
+ confirmation: S.optional(S.String.pipe(T.Query())),
512
+ error: S.optional(S.String.pipe(T.Query())),
513
+ error_description: S.optional(S.String.pipe(T.Query())),
514
+ error_uri: S.optional(S.String.pipe(T.Query())),
515
+ state: S.optional(S.String.pipe(T.Query())),
516
+ id_token: S.optional(S.String),
517
+ }).pipe(T.Http({
518
+ method: "POST",
519
+ uri: "/auth/{jwt_mount_path}/oidc/callback",
520
+ code: 200,
521
+ }))).annotate({
522
+ identifier: "PostJwtOidcCallbackFormRequest",
523
+ });
524
+ export const PostJwtOidcCallbackFormResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
525
+ identifier: "PostJwtOidcCallbackFormResponse",
526
+ });
527
+ export const PostJwtOidcCallbackFormRequest2 = /*@__PURE__*/ S.suspend(() => S.Struct({
528
+ oidc_mount_path: S.String.pipe(T.Label()),
529
+ client_nonce: S.optional(S.String.pipe(T.Query())),
530
+ code: S.optional(S.String.pipe(T.Query())),
531
+ confirmation: S.optional(S.String.pipe(T.Query())),
532
+ error: S.optional(S.String.pipe(T.Query())),
533
+ error_description: S.optional(S.String.pipe(T.Query())),
534
+ error_uri: S.optional(S.String.pipe(T.Query())),
535
+ state: S.optional(S.String.pipe(T.Query())),
536
+ id_token: S.optional(S.String),
537
+ }).pipe(T.Http({
538
+ method: "POST",
539
+ uri: "/auth/{oidc_mount_path}/oidc/callback",
540
+ code: 200,
541
+ }))).annotate({
542
+ identifier: "PostJwtOidcCallbackFormRequest2",
543
+ });
544
+ export const PostJwtOidcCallbackForm2Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
545
+ identifier: "PostJwtOidcCallbackForm2Response",
546
+ });
547
+ /** Configure the JWT authentication backend. The JWT authentication backend validates JWTs (or OIDC) using the configured credentials. If using OIDC Discovery, the URL must be provided, along with (optionally) the CA cert to use for the connection. If performing JWT validation locally, a set of public keys must be provided. */
548
+ export const jwtConfigure = /*@__PURE__*/ API.make(() => ({
549
+ input: JwtConfigureRequest,
550
+ output: JwtConfigureResponse,
551
+ errors: [],
552
+ protocol: OpenBaoProtocol,
553
+ retry: Retry.Retry,
554
+ }));
555
+ /** Configure the JWT authentication backend. The JWT authentication backend validates JWTs (or OIDC) using the configured credentials. If using OIDC Discovery, the URL must be provided, along with (optionally) the CA cert to use for the connection. If performing JWT validation locally, a set of public keys must be provided. */
556
+ export const jwtConfigure2 = /*@__PURE__*/ API.make(() => ({
557
+ input: JwtConfigureRequest2,
558
+ output: JwtConfigure2Response,
559
+ errors: [],
560
+ protocol: OpenBaoProtocol,
561
+ retry: Retry.Retry,
562
+ }));
563
+ export const jwtDeleteRole = /*@__PURE__*/ API.make(() => ({
564
+ input: JwtDeleteRoleRequest,
565
+ output: JwtDeleteRoleResponse,
566
+ errors: [],
567
+ protocol: OpenBaoProtocol,
568
+ retry: Retry.Retry,
569
+ }));
570
+ /** Delete an existing role. */
571
+ export const jwtDeleteRole2 = /*@__PURE__*/ API.make(() => ({
572
+ input: JwtDeleteRoleRequest2,
573
+ output: JwtDeleteRole2Response,
574
+ errors: [],
575
+ protocol: OpenBaoProtocol,
576
+ retry: Retry.Retry,
577
+ }));
578
+ export const jwtDeleteRole3 = /*@__PURE__*/ API.make(() => ({
579
+ input: JwtDeleteRoleRequest3,
580
+ output: JwtDeleteRole3Response,
581
+ errors: [],
582
+ protocol: OpenBaoProtocol,
583
+ retry: Retry.Retry,
584
+ }));
585
+ /** Delete an existing role. */
586
+ export const jwtDeleteRole4 = /*@__PURE__*/ API.make(() => ({
587
+ input: JwtDeleteRoleRequest4,
588
+ output: JwtDeleteRole4Response,
589
+ errors: [],
590
+ protocol: OpenBaoProtocol,
591
+ retry: Retry.Retry,
592
+ }));
593
+ export const jwtListCel = /*@__PURE__*/ API.make(() => ({
594
+ input: JwtListCelRequest,
595
+ output: JwtListCelResponse,
596
+ errors: [],
597
+ protocol: OpenBaoProtocol,
598
+ retry: Retry.Retry,
599
+ }));
600
+ export const jwtListCel2 = /*@__PURE__*/ API.make(() => ({
601
+ input: JwtListCelRequest2,
602
+ output: JwtListCelResponse,
603
+ errors: [],
604
+ protocol: OpenBaoProtocol,
605
+ retry: Retry.Retry,
606
+ }));
607
+ /** Lists all the roles registered with the backend. The list will contain the names of the roles. */
608
+ export const jwtListRoles = /*@__PURE__*/ API.make(() => ({
609
+ input: JwtListRolesRequest,
610
+ output: JwtListRolesResponse,
611
+ errors: [],
612
+ protocol: OpenBaoProtocol,
613
+ retry: Retry.Retry,
614
+ }));
615
+ /** Lists all the roles registered with the backend. The list will contain the names of the roles. */
616
+ export const jwtListRoles2 = /*@__PURE__*/ API.make(() => ({
617
+ input: JwtListRolesRequest2,
618
+ output: JwtListRoles2Response,
619
+ errors: [],
620
+ protocol: OpenBaoProtocol,
621
+ retry: Retry.Retry,
622
+ }));
623
+ /** Callback endpoint to complete an OIDC login. */
624
+ export const jwtOidcCallback = /*@__PURE__*/ API.make(() => ({
625
+ input: JwtOidcCallbackRequest,
626
+ output: JwtOidcCallbackResponse,
627
+ errors: [],
628
+ protocol: OpenBaoProtocol,
629
+ retry: Retry.Retry,
630
+ }));
631
+ /** Callback endpoint to complete an OIDC login. */
632
+ export const jwtOidcCallback2 = /*@__PURE__*/ API.make(() => ({
633
+ input: JwtOidcCallbackRequest2,
634
+ output: JwtOidcCallback2Response,
635
+ errors: [],
636
+ protocol: OpenBaoProtocol,
637
+ retry: Retry.Retry,
638
+ }));
639
+ /** Request an authorization URL to start an OIDC login flow. */
640
+ export const jwtOidcRequestAuthorizationUrl = /*@__PURE__*/ API.make(() => ({
641
+ input: JwtOidcRequestAuthorizationUrlRequest,
642
+ output: JwtOidcRequestAuthorizationUrlResponse,
643
+ errors: [],
644
+ protocol: OpenBaoProtocol,
645
+ retry: Retry.Retry,
646
+ }));
647
+ /** Request an authorization URL to start an OIDC login flow. */
648
+ export const jwtOidcRequestAuthorizationUrl2 = /*@__PURE__*/ API.make(() => ({
649
+ input: JwtOidcRequestAuthorizationUrlRequest2,
650
+ output: JwtOidcRequestAuthorizationUrl2Response,
651
+ errors: [],
652
+ protocol: OpenBaoProtocol,
653
+ retry: Retry.Retry,
654
+ }));
655
+ export const jwtPatchRole = /*@__PURE__*/ API.make(() => ({
656
+ input: JwtPatchRoleRequest,
657
+ output: JwtPatchRoleResponse,
658
+ errors: [],
659
+ protocol: OpenBaoProtocol,
660
+ retry: Retry.Retry,
661
+ }));
662
+ export const jwtPatchRole2 = /*@__PURE__*/ API.make(() => ({
663
+ input: JwtPatchRoleRequest2,
664
+ output: JwtPatchRoleResponse,
665
+ errors: [],
666
+ protocol: OpenBaoProtocol,
667
+ retry: Retry.Retry,
668
+ }));
669
+ /** Read the current JWT authentication backend configuration. */
670
+ export const jwtReadConfiguration = /*@__PURE__*/ API.make(() => ({
671
+ input: JwtReadConfigurationRequest,
672
+ output: JwtReadConfigurationResponse,
673
+ errors: [],
674
+ protocol: OpenBaoProtocol,
675
+ retry: Retry.Retry,
676
+ }));
677
+ /** Read the current JWT authentication backend configuration. */
678
+ export const jwtReadConfiguration2 = /*@__PURE__*/ API.make(() => ({
679
+ input: JwtReadConfigurationRequest2,
680
+ output: JwtReadConfiguration2Response,
681
+ errors: [],
682
+ protocol: OpenBaoProtocol,
683
+ retry: Retry.Retry,
684
+ }));
685
+ export const jwtReadRole = /*@__PURE__*/ API.make(() => ({
686
+ input: JwtReadRoleRequest,
687
+ output: JwtReadRoleResponse,
688
+ errors: [],
689
+ protocol: OpenBaoProtocol,
690
+ retry: Retry.Retry,
691
+ }));
692
+ /** Read an existing role. */
693
+ export const jwtReadRole2 = /*@__PURE__*/ API.make(() => ({
694
+ input: JwtReadRoleRequest2,
695
+ output: JwtReadRole2Response,
696
+ errors: [],
697
+ protocol: OpenBaoProtocol,
698
+ retry: Retry.Retry,
699
+ }));
700
+ export const jwtReadRole3 = /*@__PURE__*/ API.make(() => ({
701
+ input: JwtReadRoleRequest3,
702
+ output: JwtReadRoleResponse,
703
+ errors: [],
704
+ protocol: OpenBaoProtocol,
705
+ retry: Retry.Retry,
706
+ }));
707
+ /** Read an existing role. */
708
+ export const jwtReadRole4 = /*@__PURE__*/ API.make(() => ({
709
+ input: JwtReadRoleRequest4,
710
+ output: JwtReadRole4Response,
711
+ errors: [],
712
+ protocol: OpenBaoProtocol,
713
+ retry: Retry.Retry,
714
+ }));
715
+ export const jwtWriteRole = /*@__PURE__*/ API.make(() => ({
716
+ input: JwtWriteRoleRequest,
717
+ output: JwtWriteRoleResponse,
718
+ errors: [],
719
+ protocol: OpenBaoProtocol,
720
+ retry: Retry.Retry,
721
+ }));
722
+ /** Register an role with the backend. A role is required to authenticate with this backend. The role binds JWT token information with token policies and settings. The bindings, token polices and token settings can all be configured using this endpoint */
723
+ export const jwtWriteRole2 = /*@__PURE__*/ API.make(() => ({
724
+ input: JwtWriteRoleRequest2,
725
+ output: JwtWriteRole2Response,
726
+ errors: [],
727
+ protocol: OpenBaoProtocol,
728
+ retry: Retry.Retry,
729
+ }));
730
+ export const jwtWriteRole3 = /*@__PURE__*/ API.make(() => ({
731
+ input: JwtWriteRoleRequest3,
732
+ output: JwtWriteRoleResponse,
733
+ errors: [],
734
+ protocol: OpenBaoProtocol,
735
+ retry: Retry.Retry,
736
+ }));
737
+ /** Register an role with the backend. A role is required to authenticate with this backend. The role binds JWT token information with token policies and settings. The bindings, token polices and token settings can all be configured using this endpoint */
738
+ export const jwtWriteRole4 = /*@__PURE__*/ API.make(() => ({
739
+ input: JwtWriteRoleRequest4,
740
+ output: JwtWriteRole4Response,
741
+ errors: [],
742
+ protocol: OpenBaoProtocol,
743
+ retry: Retry.Retry,
744
+ }));
745
+ /** Authenticates to OpenBao using a JWT (or OIDC) token against a CEL role. */
746
+ export const loginJwt = /*@__PURE__*/ API.make(() => ({
747
+ input: LoginJwtRequest,
748
+ output: LoginJwtResponse,
749
+ errors: [],
750
+ protocol: OpenBaoProtocol,
751
+ retry: Retry.Retry,
752
+ }));
753
+ /** Authenticates to OpenBao using a JWT (or OIDC) token. */
754
+ export const loginJwt2 = /*@__PURE__*/ API.make(() => ({
755
+ input: LoginJwtRequest2,
756
+ output: LoginJwt2Response,
757
+ errors: [],
758
+ protocol: OpenBaoProtocol,
759
+ retry: Retry.Retry,
760
+ }));
761
+ /** Authenticates to OpenBao using a JWT (or OIDC) token against a CEL role. */
762
+ export const loginJwt3 = /*@__PURE__*/ API.make(() => ({
763
+ input: LoginJwtRequest3,
764
+ output: LoginJwt3Response,
765
+ errors: [],
766
+ protocol: OpenBaoProtocol,
767
+ retry: Retry.Retry,
768
+ }));
769
+ /** Authenticates to OpenBao using a JWT (or OIDC) token. */
770
+ export const loginJwt4 = /*@__PURE__*/ API.make(() => ({
771
+ input: LoginJwtRequest4,
772
+ output: LoginJwt4Response,
773
+ errors: [],
774
+ protocol: OpenBaoProtocol,
775
+ retry: Retry.Retry,
776
+ }));
777
+ /** Poll endpoint to complete an OIDC login. */
778
+ export const pollJwtWriteOidc = /*@__PURE__*/ API.make(() => ({
779
+ input: PollJwtWriteOidcRequest,
780
+ output: PollJwtWriteOidcResponse,
781
+ errors: [],
782
+ protocol: OpenBaoProtocol,
783
+ retry: Retry.Retry,
784
+ }));
785
+ /** Callback endpoint to handle form_posts. */
786
+ export const postJwtOidcCallbackForm = /*@__PURE__*/ API.make(() => ({
787
+ input: PostJwtOidcCallbackFormRequest,
788
+ output: PostJwtOidcCallbackFormResponse,
789
+ errors: [],
790
+ protocol: OpenBaoProtocol,
791
+ retry: Retry.Retry,
792
+ }));
793
+ /** Callback endpoint to handle form_posts. */
794
+ export const postJwtOidcCallbackForm2 = /*@__PURE__*/ API.make(() => ({
795
+ input: PostJwtOidcCallbackFormRequest2,
796
+ output: PostJwtOidcCallbackForm2Response,
797
+ errors: [],
798
+ protocol: OpenBaoProtocol,
799
+ retry: Retry.Retry,
800
+ }));
801
+ //# sourceMappingURL=jwt.js.map