@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,684 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as API from "@distilled.cloud/core/api";
3
+ import { type OpenBaoOpError, type OpenBaoOpContext } from "../protocol.ts";
4
+ export type { OpenBaoOpError, OpenBaoOpContext };
5
+ /** A list of supported signing algorithms. Defaults to RS256. */
6
+ export type JwtConfigureRequestJwtSupportedAlgsList = Array<string>;
7
+ export declare const JwtConfigureRequestJwtSupportedAlgsList: S.Schema<JwtConfigureRequestJwtSupportedAlgsList>;
8
+ /** A list of PEM-encoded public keys to use to authenticate signatures locally. Cannot be used with "jwks_url" or "oidc_discovery_url". */
9
+ export type JwtConfigureRequestJwtValidationPubkeysList = Array<string>;
10
+ export declare const JwtConfigureRequestJwtValidationPubkeysList: S.Schema<JwtConfigureRequestJwtValidationPubkeysList>;
11
+ /** The response types to request. Allowed values are 'code' and 'id_token'. Defaults to 'code'. */
12
+ export type JwtConfigureRequestOidcResponseTypesList = Array<string>;
13
+ export declare const JwtConfigureRequestOidcResponseTypesList: S.Schema<JwtConfigureRequestOidcResponseTypesList>;
14
+ /** A list of hostnames to accept when performing TLS validation, which applies both to OIDC and JWKS. This overrides default checks that expect the TLS subject to match the hostname specified in the connection URL */
15
+ export type JwtConfigureRequestOverrideAllowedServerNamesList = Array<string>;
16
+ export declare const JwtConfigureRequestOverrideAllowedServerNamesList: S.Schema<JwtConfigureRequestOverrideAllowedServerNamesList>;
17
+ export interface JwtConfigureRequest {
18
+ /** Path that the backend was mounted at */
19
+ jwt_mount_path: string;
20
+ /** The value against which to match the 'iss' claim in a JWT. Optional. */
21
+ bound_issuer?: string;
22
+ /** The default role to use if none is provided during login. If not set, a role is required during login. */
23
+ default_role?: string;
24
+ /** The CA certificate or chain of certificates, in PEM format, to use to validate connections to the JWKS URL. If not set, system certificates are used. */
25
+ jwks_ca_pem?: string;
26
+ /** JWKS URL to use to authenticate signatures. Cannot be used with "oidc_discovery_url" or "jwt_validation_pubkeys". */
27
+ jwks_url?: string;
28
+ /** A list of supported signing algorithms. Defaults to RS256. */
29
+ jwt_supported_algs?: JwtConfigureRequestJwtSupportedAlgsList;
30
+ /** A list of PEM-encoded public keys to use to authenticate signatures locally. Cannot be used with "jwks_url" or "oidc_discovery_url". */
31
+ jwt_validation_pubkeys?: JwtConfigureRequestJwtValidationPubkeysList;
32
+ /** Pass namespace in the OIDC state parameter instead of as a separate query parameter. With this setting, the allowed redirect URL(s) in OpenBao and on the provider side should not contain a namespace query parameter. This means only one redirect URL entry needs to be maintained on the provider side for all OpenBao namespaces that will be authenticating against it. Defaults to true for new configs. */
33
+ namespace_in_state?: boolean;
34
+ /** The OAuth Client ID configured with your OIDC provider. */
35
+ oidc_client_id?: string;
36
+ /** The OAuth Client Secret configured with your OIDC provider. */
37
+ oidc_client_secret?: string;
38
+ /** The CA certificate or chain of certificates, in PEM format, to use to validate connections to the OIDC Discovery URL. If not set, system certificates are used. */
39
+ oidc_discovery_ca_pem?: string;
40
+ /** The base URL of the OIDC Discovery URL without ".well-known/openid-configuration" component. Cannot be used with "jwks_url" or "jwt_validation_pubkeys". */
41
+ oidc_discovery_url?: string;
42
+ /** The response mode to be used in the OAuth2 request. Allowed values are 'query' and 'form_post'. */
43
+ oidc_response_mode?: string;
44
+ /** The response types to request. Allowed values are 'code' and 'id_token'. Defaults to 'code'. */
45
+ oidc_response_types?: JwtConfigureRequestOidcResponseTypesList;
46
+ /** A list of hostnames to accept when performing TLS validation, which applies both to OIDC and JWKS. This overrides default checks that expect the TLS subject to match the hostname specified in the connection URL */
47
+ override_allowed_server_names?: JwtConfigureRequestOverrideAllowedServerNamesList;
48
+ /** Provider-specific configuration. Optional. */
49
+ provider_config?: unknown;
50
+ /** When true and oidc_discovery_url or jwks_url are specified, if the connection fails to load, a warning will be issued and status can be checked later by reading the config endpoint. */
51
+ skip_jwks_validation?: boolean;
52
+ }
53
+ export declare const JwtConfigureRequest: S.Schema<JwtConfigureRequest>;
54
+ export interface JwtConfigureResponse {
55
+ }
56
+ export declare const JwtConfigureResponse: S.Schema<JwtConfigureResponse>;
57
+ /** A list of supported signing algorithms. Defaults to RS256. */
58
+ export type JwtConfigureRequestJwtSupportedAlgsList2 = Array<string>;
59
+ export declare const JwtConfigureRequestJwtSupportedAlgsList2: S.Schema<JwtConfigureRequestJwtSupportedAlgsList2>;
60
+ /** A list of PEM-encoded public keys to use to authenticate signatures locally. Cannot be used with "jwks_url" or "oidc_discovery_url". */
61
+ export type JwtConfigureRequestJwtValidationPubkeysList2 = Array<string>;
62
+ export declare const JwtConfigureRequestJwtValidationPubkeysList2: S.Schema<JwtConfigureRequestJwtValidationPubkeysList2>;
63
+ /** The response types to request. Allowed values are 'code' and 'id_token'. Defaults to 'code'. */
64
+ export type JwtConfigureRequestOidcResponseTypesList2 = Array<string>;
65
+ export declare const JwtConfigureRequestOidcResponseTypesList2: S.Schema<JwtConfigureRequestOidcResponseTypesList2>;
66
+ /** A list of hostnames to accept when performing TLS validation, which applies both to OIDC and JWKS. This overrides default checks that expect the TLS subject to match the hostname specified in the connection URL */
67
+ export type JwtConfigureRequestOverrideAllowedServerNamesList2 = Array<string>;
68
+ export declare const JwtConfigureRequestOverrideAllowedServerNamesList2: S.Schema<JwtConfigureRequestOverrideAllowedServerNamesList2>;
69
+ export interface JwtConfigureRequest2 {
70
+ /** Path that the backend was mounted at */
71
+ oidc_mount_path: string;
72
+ /** The value against which to match the 'iss' claim in a JWT. Optional. */
73
+ bound_issuer?: string;
74
+ /** The default role to use if none is provided during login. If not set, a role is required during login. */
75
+ default_role?: string;
76
+ /** The CA certificate or chain of certificates, in PEM format, to use to validate connections to the JWKS URL. If not set, system certificates are used. */
77
+ jwks_ca_pem?: string;
78
+ /** JWKS URL to use to authenticate signatures. Cannot be used with "oidc_discovery_url" or "jwt_validation_pubkeys". */
79
+ jwks_url?: string;
80
+ /** A list of supported signing algorithms. Defaults to RS256. */
81
+ jwt_supported_algs?: JwtConfigureRequestJwtSupportedAlgsList2;
82
+ /** A list of PEM-encoded public keys to use to authenticate signatures locally. Cannot be used with "jwks_url" or "oidc_discovery_url". */
83
+ jwt_validation_pubkeys?: JwtConfigureRequestJwtValidationPubkeysList2;
84
+ /** Pass namespace in the OIDC state parameter instead of as a separate query parameter. With this setting, the allowed redirect URL(s) in OpenBao and on the provider side should not contain a namespace query parameter. This means only one redirect URL entry needs to be maintained on the provider side for all OpenBao namespaces that will be authenticating against it. Defaults to true for new configs. */
85
+ namespace_in_state?: boolean;
86
+ /** The OAuth Client ID configured with your OIDC provider. */
87
+ oidc_client_id?: string;
88
+ /** The OAuth Client Secret configured with your OIDC provider. */
89
+ oidc_client_secret?: string;
90
+ /** The CA certificate or chain of certificates, in PEM format, to use to validate connections to the OIDC Discovery URL. If not set, system certificates are used. */
91
+ oidc_discovery_ca_pem?: string;
92
+ /** The base URL of the OIDC Discovery URL without ".well-known/openid-configuration" component. Cannot be used with "jwks_url" or "jwt_validation_pubkeys". */
93
+ oidc_discovery_url?: string;
94
+ /** The response mode to be used in the OAuth2 request. Allowed values are 'query' and 'form_post'. */
95
+ oidc_response_mode?: string;
96
+ /** The response types to request. Allowed values are 'code' and 'id_token'. Defaults to 'code'. */
97
+ oidc_response_types?: JwtConfigureRequestOidcResponseTypesList2;
98
+ /** A list of hostnames to accept when performing TLS validation, which applies both to OIDC and JWKS. This overrides default checks that expect the TLS subject to match the hostname specified in the connection URL */
99
+ override_allowed_server_names?: JwtConfigureRequestOverrideAllowedServerNamesList2;
100
+ /** Provider-specific configuration. Optional. */
101
+ provider_config?: unknown;
102
+ /** When true and oidc_discovery_url or jwks_url are specified, if the connection fails to load, a warning will be issued and status can be checked later by reading the config endpoint. */
103
+ skip_jwks_validation?: boolean;
104
+ }
105
+ export declare const JwtConfigureRequest2: S.Schema<JwtConfigureRequest2>;
106
+ export interface JwtConfigure2Response {
107
+ }
108
+ export declare const JwtConfigure2Response: S.Schema<JwtConfigure2Response>;
109
+ export interface JwtDeleteRoleRequest {
110
+ /** Path that the backend was mounted at */
111
+ jwt_mount_path: string;
112
+ /** Name of the cel role */
113
+ name: string;
114
+ }
115
+ export declare const JwtDeleteRoleRequest: S.Schema<JwtDeleteRoleRequest>;
116
+ export interface JwtDeleteRoleResponse {
117
+ }
118
+ export declare const JwtDeleteRoleResponse: S.Schema<JwtDeleteRoleResponse>;
119
+ export interface JwtDeleteRoleRequest2 {
120
+ /** Path that the backend was mounted at */
121
+ jwt_mount_path: string;
122
+ /** Name of the role. */
123
+ name: string;
124
+ }
125
+ export declare const JwtDeleteRoleRequest2: S.Schema<JwtDeleteRoleRequest2>;
126
+ export interface JwtDeleteRole2Response {
127
+ }
128
+ export declare const JwtDeleteRole2Response: S.Schema<JwtDeleteRole2Response>;
129
+ export interface JwtDeleteRoleRequest3 {
130
+ /** Path that the backend was mounted at */
131
+ oidc_mount_path: string;
132
+ /** Name of the cel role */
133
+ name: string;
134
+ }
135
+ export declare const JwtDeleteRoleRequest3: S.Schema<JwtDeleteRoleRequest3>;
136
+ export interface JwtDeleteRole3Response {
137
+ }
138
+ export declare const JwtDeleteRole3Response: S.Schema<JwtDeleteRole3Response>;
139
+ export interface JwtDeleteRoleRequest4 {
140
+ /** Path that the backend was mounted at */
141
+ oidc_mount_path: string;
142
+ /** Name of the role. */
143
+ name: string;
144
+ }
145
+ export declare const JwtDeleteRoleRequest4: S.Schema<JwtDeleteRoleRequest4>;
146
+ export interface JwtDeleteRole4Response {
147
+ }
148
+ export declare const JwtDeleteRole4Response: S.Schema<JwtDeleteRole4Response>;
149
+ export type JwtListCelRequestList = "true";
150
+ export declare const JwtListCelRequestList: any;
151
+ export interface JwtListCelRequest {
152
+ /** Path that the backend was mounted at */
153
+ jwt_mount_path: string;
154
+ /** Must be set to `true` */
155
+ list: JwtListCelRequestList | (string & {});
156
+ }
157
+ export declare const JwtListCelRequest: S.Schema<JwtListCelRequest>;
158
+ /** List of CEL roles */
159
+ export type JwtListCelResponseKeysList = Array<string>;
160
+ export declare const JwtListCelResponseKeysList: S.Schema<JwtListCelResponseKeysList>;
161
+ export interface JwtListCelResponse {
162
+ /** List of CEL roles */
163
+ keys?: JwtListCelResponseKeysList;
164
+ }
165
+ export declare const JwtListCelResponse: S.Schema<JwtListCelResponse>;
166
+ export type JwtListCelRequestList2 = "true";
167
+ export declare const JwtListCelRequestList2: any;
168
+ export interface JwtListCelRequest2 {
169
+ /** Path that the backend was mounted at */
170
+ oidc_mount_path: string;
171
+ /** Must be set to `true` */
172
+ list: JwtListCelRequestList2 | (string & {});
173
+ }
174
+ export declare const JwtListCelRequest2: S.Schema<JwtListCelRequest2>;
175
+ export type JwtListRolesRequestList = "true";
176
+ export declare const JwtListRolesRequestList: any;
177
+ export interface JwtListRolesRequest {
178
+ /** Path that the backend was mounted at */
179
+ jwt_mount_path: string;
180
+ /** Must be set to `true` */
181
+ list: JwtListRolesRequestList | (string & {});
182
+ }
183
+ export declare const JwtListRolesRequest: S.Schema<JwtListRolesRequest>;
184
+ export interface JwtListRolesResponse {
185
+ }
186
+ export declare const JwtListRolesResponse: S.Schema<JwtListRolesResponse>;
187
+ export type JwtListRolesRequestList2 = "true";
188
+ export declare const JwtListRolesRequestList2: any;
189
+ export interface JwtListRolesRequest2 {
190
+ /** Path that the backend was mounted at */
191
+ oidc_mount_path: string;
192
+ /** Must be set to `true` */
193
+ list: JwtListRolesRequestList2 | (string & {});
194
+ }
195
+ export declare const JwtListRolesRequest2: S.Schema<JwtListRolesRequest2>;
196
+ export interface JwtListRoles2Response {
197
+ }
198
+ export declare const JwtListRoles2Response: S.Schema<JwtListRoles2Response>;
199
+ export interface JwtOidcCallbackRequest {
200
+ /** Path that the backend was mounted at */
201
+ jwt_mount_path: string;
202
+ client_nonce?: string;
203
+ code?: string;
204
+ confirmation?: string;
205
+ error?: string;
206
+ error_description?: string;
207
+ error_uri?: string;
208
+ state?: string;
209
+ }
210
+ export declare const JwtOidcCallbackRequest: S.Schema<JwtOidcCallbackRequest>;
211
+ export interface JwtOidcCallbackResponse {
212
+ }
213
+ export declare const JwtOidcCallbackResponse: S.Schema<JwtOidcCallbackResponse>;
214
+ export interface JwtOidcCallbackRequest2 {
215
+ /** Path that the backend was mounted at */
216
+ oidc_mount_path: string;
217
+ client_nonce?: string;
218
+ code?: string;
219
+ confirmation?: string;
220
+ error?: string;
221
+ error_description?: string;
222
+ error_uri?: string;
223
+ state?: string;
224
+ }
225
+ export declare const JwtOidcCallbackRequest2: S.Schema<JwtOidcCallbackRequest2>;
226
+ export interface JwtOidcCallback2Response {
227
+ }
228
+ export declare const JwtOidcCallback2Response: S.Schema<JwtOidcCallback2Response>;
229
+ export interface JwtOidcRequestAuthorizationUrlRequest {
230
+ /** Path that the backend was mounted at */
231
+ jwt_mount_path: string;
232
+ /** Client-provided nonce that must match during callback, if present. Required only in direct callback mode. */
233
+ client_nonce?: string;
234
+ /** The OAuth redirect_uri to use in the authorization URL. Not needed with device flow. */
235
+ redirect_uri?: string;
236
+ /** The role to issue an OIDC authorization URL against. */
237
+ role?: string;
238
+ }
239
+ export declare const JwtOidcRequestAuthorizationUrlRequest: S.Schema<JwtOidcRequestAuthorizationUrlRequest>;
240
+ export interface JwtOidcRequestAuthorizationUrlResponse {
241
+ }
242
+ export declare const JwtOidcRequestAuthorizationUrlResponse: S.Schema<JwtOidcRequestAuthorizationUrlResponse>;
243
+ export interface JwtOidcRequestAuthorizationUrlRequest2 {
244
+ /** Path that the backend was mounted at */
245
+ oidc_mount_path: string;
246
+ /** Client-provided nonce that must match during callback, if present. Required only in direct callback mode. */
247
+ client_nonce?: string;
248
+ /** The OAuth redirect_uri to use in the authorization URL. Not needed with device flow. */
249
+ redirect_uri?: string;
250
+ /** The role to issue an OIDC authorization URL against. */
251
+ role?: string;
252
+ }
253
+ export declare const JwtOidcRequestAuthorizationUrlRequest2: S.Schema<JwtOidcRequestAuthorizationUrlRequest2>;
254
+ export interface JwtOidcRequestAuthorizationUrl2Response {
255
+ }
256
+ export declare const JwtOidcRequestAuthorizationUrl2Response: S.Schema<JwtOidcRequestAuthorizationUrl2Response>;
257
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
258
+ export type JwtPatchRoleRequestBoundAudiencesList = Array<string>;
259
+ export declare const JwtPatchRoleRequestBoundAudiencesList: S.Schema<JwtPatchRoleRequestBoundAudiencesList>;
260
+ export interface JwtPatchRoleRequest {
261
+ /** Path that the backend was mounted at */
262
+ jwt_mount_path: string;
263
+ /** Name of the cel role */
264
+ name: string;
265
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
266
+ bound_audiences?: JwtPatchRoleRequestBoundAudiencesList;
267
+ /** CEL variables and expression defining the program for the role. This is a map with two fields: 1. 'variables', a list of objects with two fields ('name' and 'expression') defining each variable and the exact execution order. 2. 'expression', the final statement to execute and whose result is returned. For example: cel_program = { "variables": [ { "name": "condition", "expression": "len(claims.groups) > 0" }, { "name": "result", "expression": "pb.Auth{Alias: claims.aud, Groups: claims.groups}" } ], "expression": "condition ? result : false" } */
268
+ cel_program?: unknown;
269
+ /** Duration in seconds of leeway when validating all claims to account for clock skew. Defaults to 60 (1 minute) if set to 0 and can be disabled if set to -1. */
270
+ clock_skew_leeway?: number;
271
+ /** Duration in seconds of leeway when validating expiration of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
272
+ expiration_leeway?: number;
273
+ /** Static error message if validation fails */
274
+ message?: string;
275
+ /** Duration in seconds of leeway when validating not before values of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
276
+ not_before_leeway?: number;
277
+ }
278
+ export declare const JwtPatchRoleRequest: S.Schema<JwtPatchRoleRequest>;
279
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
280
+ export type JwtPatchRoleResponseBoundAudiencesList = Array<string>;
281
+ export declare const JwtPatchRoleResponseBoundAudiencesList: S.Schema<JwtPatchRoleResponseBoundAudiencesList>;
282
+ export interface JwtPatchRoleResponse {
283
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
284
+ bound_audiences?: JwtPatchRoleResponseBoundAudiencesList;
285
+ /** CEL variables and expression defining the program for the role. This is a map with two fields: 1. 'variables', a list of objects with two fields ('name' and 'expression') defining each variable and the exact execution order. 2. 'expression', the final statement to execute and whose result is returned. For example: cel_program = { "variables": [ { "name": "condition", "expression": "len(claims.groups) > 0" }, { "name": "result", "expression": "pb.Auth{Alias: claims.aud, Groups: claims.groups}" } ], "expression": "condition ? result : false" } */
286
+ cel_program?: unknown;
287
+ /** Duration in seconds of leeway when validating all claims to account for clock skew. Defaults to 60 (1 minute) if set to 0 and can be disabled if set to -1. */
288
+ clock_skew_leeway?: number;
289
+ /** Duration in seconds of leeway when validating expiration of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
290
+ expiration_leeway?: number;
291
+ /** Static error message if validation fails */
292
+ message?: string;
293
+ /** Name of the cel role */
294
+ name?: string;
295
+ /** Duration in seconds of leeway when validating not before values of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
296
+ not_before_leeway?: number;
297
+ }
298
+ export declare const JwtPatchRoleResponse: S.Schema<JwtPatchRoleResponse>;
299
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
300
+ export type JwtPatchRoleRequestBoundAudiencesList2 = Array<string>;
301
+ export declare const JwtPatchRoleRequestBoundAudiencesList2: S.Schema<JwtPatchRoleRequestBoundAudiencesList2>;
302
+ export interface JwtPatchRoleRequest2 {
303
+ /** Path that the backend was mounted at */
304
+ oidc_mount_path: string;
305
+ /** Name of the cel role */
306
+ name: string;
307
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
308
+ bound_audiences?: JwtPatchRoleRequestBoundAudiencesList2;
309
+ /** CEL variables and expression defining the program for the role. This is a map with two fields: 1. 'variables', a list of objects with two fields ('name' and 'expression') defining each variable and the exact execution order. 2. 'expression', the final statement to execute and whose result is returned. For example: cel_program = { "variables": [ { "name": "condition", "expression": "len(claims.groups) > 0" }, { "name": "result", "expression": "pb.Auth{Alias: claims.aud, Groups: claims.groups}" } ], "expression": "condition ? result : false" } */
310
+ cel_program?: unknown;
311
+ /** Duration in seconds of leeway when validating all claims to account for clock skew. Defaults to 60 (1 minute) if set to 0 and can be disabled if set to -1. */
312
+ clock_skew_leeway?: number;
313
+ /** Duration in seconds of leeway when validating expiration of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
314
+ expiration_leeway?: number;
315
+ /** Static error message if validation fails */
316
+ message?: string;
317
+ /** Duration in seconds of leeway when validating not before values of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
318
+ not_before_leeway?: number;
319
+ }
320
+ export declare const JwtPatchRoleRequest2: S.Schema<JwtPatchRoleRequest2>;
321
+ export interface JwtReadConfigurationRequest {
322
+ /** Path that the backend was mounted at */
323
+ jwt_mount_path: string;
324
+ }
325
+ export declare const JwtReadConfigurationRequest: S.Schema<JwtReadConfigurationRequest>;
326
+ export interface JwtReadConfigurationResponse {
327
+ }
328
+ export declare const JwtReadConfigurationResponse: S.Schema<JwtReadConfigurationResponse>;
329
+ export interface JwtReadConfigurationRequest2 {
330
+ /** Path that the backend was mounted at */
331
+ oidc_mount_path: string;
332
+ }
333
+ export declare const JwtReadConfigurationRequest2: S.Schema<JwtReadConfigurationRequest2>;
334
+ export interface JwtReadConfiguration2Response {
335
+ }
336
+ export declare const JwtReadConfiguration2Response: S.Schema<JwtReadConfiguration2Response>;
337
+ export interface JwtReadRoleRequest {
338
+ /** Path that the backend was mounted at */
339
+ jwt_mount_path: string;
340
+ /** Name of the cel role */
341
+ name: string;
342
+ }
343
+ export declare const JwtReadRoleRequest: S.Schema<JwtReadRoleRequest>;
344
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
345
+ export type JwtReadRoleResponseBoundAudiencesList = Array<string>;
346
+ export declare const JwtReadRoleResponseBoundAudiencesList: S.Schema<JwtReadRoleResponseBoundAudiencesList>;
347
+ export interface JwtReadRoleResponse {
348
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
349
+ bound_audiences?: JwtReadRoleResponseBoundAudiencesList;
350
+ /** CEL variables and expression defining the program for the role. This is a map with two fields: 1. 'variables', a list of objects with two fields ('name' and 'expression') defining each variable and the exact execution order. 2. 'expression', the final statement to execute and whose result is returned. For example: cel_program = { "variables": [ { "name": "condition", "expression": "len(claims.groups) > 0" }, { "name": "result", "expression": "pb.Auth{Alias: claims.aud, Groups: claims.groups}" } ], "expression": "condition ? result : false" } */
351
+ cel_program?: unknown;
352
+ /** Duration in seconds of leeway when validating all claims to account for clock skew. Defaults to 60 (1 minute) if set to 0 and can be disabled if set to -1. */
353
+ clock_skew_leeway?: number;
354
+ /** Duration in seconds of leeway when validating expiration of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
355
+ expiration_leeway?: number;
356
+ /** Static error message if validation fails */
357
+ message?: string;
358
+ /** Name of the cel role */
359
+ name?: string;
360
+ /** Duration in seconds of leeway when validating not before values of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
361
+ not_before_leeway?: number;
362
+ }
363
+ export declare const JwtReadRoleResponse: S.Schema<JwtReadRoleResponse>;
364
+ export interface JwtReadRoleRequest2 {
365
+ /** Path that the backend was mounted at */
366
+ jwt_mount_path: string;
367
+ /** Name of the role. */
368
+ name: string;
369
+ }
370
+ export declare const JwtReadRoleRequest2: S.Schema<JwtReadRoleRequest2>;
371
+ export interface JwtReadRole2Response {
372
+ }
373
+ export declare const JwtReadRole2Response: S.Schema<JwtReadRole2Response>;
374
+ export interface JwtReadRoleRequest3 {
375
+ /** Path that the backend was mounted at */
376
+ oidc_mount_path: string;
377
+ /** Name of the cel role */
378
+ name: string;
379
+ }
380
+ export declare const JwtReadRoleRequest3: S.Schema<JwtReadRoleRequest3>;
381
+ export interface JwtReadRoleRequest4 {
382
+ /** Path that the backend was mounted at */
383
+ oidc_mount_path: string;
384
+ /** Name of the role. */
385
+ name: string;
386
+ }
387
+ export declare const JwtReadRoleRequest4: S.Schema<JwtReadRoleRequest4>;
388
+ export interface JwtReadRole4Response {
389
+ }
390
+ export declare const JwtReadRole4Response: S.Schema<JwtReadRole4Response>;
391
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
392
+ export type JwtWriteRoleRequestBoundAudiencesList = Array<string>;
393
+ export declare const JwtWriteRoleRequestBoundAudiencesList: S.Schema<JwtWriteRoleRequestBoundAudiencesList>;
394
+ export interface JwtWriteRoleRequest {
395
+ /** Path that the backend was mounted at */
396
+ jwt_mount_path: string;
397
+ /** Name of the cel role */
398
+ name: string;
399
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
400
+ bound_audiences?: JwtWriteRoleRequestBoundAudiencesList;
401
+ /** CEL variables and expression defining the program for the role. This is a map with two fields: 1. 'variables', a list of objects with two fields ('name' and 'expression') defining each variable and the exact execution order. 2. 'expression', the final statement to execute and whose result is returned. For example: cel_program = { "variables": [ { "name": "condition", "expression": "len(claims.groups) > 0" }, { "name": "result", "expression": "pb.Auth{Alias: claims.aud, Groups: claims.groups}" } ], "expression": "condition ? result : false" } */
402
+ cel_program?: unknown;
403
+ /** Duration in seconds of leeway when validating all claims to account for clock skew. Defaults to 60 (1 minute) if set to 0 and can be disabled if set to -1. */
404
+ clock_skew_leeway?: number;
405
+ /** Duration in seconds of leeway when validating expiration of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
406
+ expiration_leeway?: number;
407
+ /** Static error message if validation fails */
408
+ message?: string;
409
+ /** Duration in seconds of leeway when validating not before values of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
410
+ not_before_leeway?: number;
411
+ }
412
+ export declare const JwtWriteRoleRequest: S.Schema<JwtWriteRoleRequest>;
413
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
414
+ export type JwtWriteRoleResponseBoundAudiencesList = Array<string>;
415
+ export declare const JwtWriteRoleResponseBoundAudiencesList: S.Schema<JwtWriteRoleResponseBoundAudiencesList>;
416
+ export interface JwtWriteRoleResponse {
417
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
418
+ bound_audiences?: JwtWriteRoleResponseBoundAudiencesList;
419
+ /** CEL variables and expression defining the program for the role. This is a map with two fields: 1. 'variables', a list of objects with two fields ('name' and 'expression') defining each variable and the exact execution order. 2. 'expression', the final statement to execute and whose result is returned. For example: cel_program = { "variables": [ { "name": "condition", "expression": "len(claims.groups) > 0" }, { "name": "result", "expression": "pb.Auth{Alias: claims.aud, Groups: claims.groups}" } ], "expression": "condition ? result : false" } */
420
+ cel_program?: unknown;
421
+ /** Duration in seconds of leeway when validating all claims to account for clock skew. Defaults to 60 (1 minute) if set to 0 and can be disabled if set to -1. */
422
+ clock_skew_leeway?: number;
423
+ /** Duration in seconds of leeway when validating expiration of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
424
+ expiration_leeway?: number;
425
+ /** Static error message if validation fails */
426
+ message?: string;
427
+ /** Name of the cel role */
428
+ name?: string;
429
+ /** Duration in seconds of leeway when validating not before values of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
430
+ not_before_leeway?: number;
431
+ }
432
+ export declare const JwtWriteRoleResponse: S.Schema<JwtWriteRoleResponse>;
433
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
434
+ export type JwtWriteRoleRequestBoundAudiencesList2 = Array<string>;
435
+ export declare const JwtWriteRoleRequestBoundAudiencesList2: S.Schema<JwtWriteRoleRequestBoundAudiencesList2>;
436
+ export interface JwtWriteRoleRequest2 {
437
+ /** Path that the backend was mounted at */
438
+ jwt_mount_path: string;
439
+ /** Name of the role. */
440
+ name: string;
441
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
442
+ bound_audiences?: JwtWriteRoleRequestBoundAudiencesList2;
443
+ /** CEL variables and expression defining the program for the role. This is a map with two fields: 1. 'variables', a list of objects with two fields ('name' and 'expression') defining each variable and the exact execution order. 2. 'expression', the final statement to execute and whose result is returned. For example: cel_program = { "variables": [ { "name": "condition", "expression": "len(claims.groups) > 0" }, { "name": "result", "expression": "pb.Auth{Alias: claims.aud, Groups: claims.groups}" } ], "expression": "condition ? result : false" } */
444
+ cel_program?: unknown;
445
+ /** Duration in seconds of leeway when validating all claims to account for clock skew. Defaults to 60 (1 minute) if set to 0 and can be disabled if set to -1. */
446
+ clock_skew_leeway?: number;
447
+ /** Duration in seconds of leeway when validating expiration of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
448
+ expiration_leeway?: number;
449
+ /** Static error message if validation fails */
450
+ message?: string;
451
+ /** Duration in seconds of leeway when validating not before values of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
452
+ not_before_leeway?: number;
453
+ }
454
+ export declare const JwtWriteRoleRequest2: S.Schema<JwtWriteRoleRequest2>;
455
+ export interface JwtWriteRole2Response {
456
+ }
457
+ export declare const JwtWriteRole2Response: S.Schema<JwtWriteRole2Response>;
458
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
459
+ export type JwtWriteRoleRequestBoundAudiencesList3 = Array<string>;
460
+ export declare const JwtWriteRoleRequestBoundAudiencesList3: S.Schema<JwtWriteRoleRequestBoundAudiencesList3>;
461
+ export interface JwtWriteRoleRequest3 {
462
+ /** Path that the backend was mounted at */
463
+ oidc_mount_path: string;
464
+ /** Name of the cel role */
465
+ name: string;
466
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
467
+ bound_audiences?: JwtWriteRoleRequestBoundAudiencesList3;
468
+ /** CEL variables and expression defining the program for the role. This is a map with two fields: 1. 'variables', a list of objects with two fields ('name' and 'expression') defining each variable and the exact execution order. 2. 'expression', the final statement to execute and whose result is returned. For example: cel_program = { "variables": [ { "name": "condition", "expression": "len(claims.groups) > 0" }, { "name": "result", "expression": "pb.Auth{Alias: claims.aud, Groups: claims.groups}" } ], "expression": "condition ? result : false" } */
469
+ cel_program?: unknown;
470
+ /** Duration in seconds of leeway when validating all claims to account for clock skew. Defaults to 60 (1 minute) if set to 0 and can be disabled if set to -1. */
471
+ clock_skew_leeway?: number;
472
+ /** Duration in seconds of leeway when validating expiration of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
473
+ expiration_leeway?: number;
474
+ /** Static error message if validation fails */
475
+ message?: string;
476
+ /** Duration in seconds of leeway when validating not before values of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
477
+ not_before_leeway?: number;
478
+ }
479
+ export declare const JwtWriteRoleRequest3: S.Schema<JwtWriteRoleRequest3>;
480
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
481
+ export type JwtWriteRoleRequestBoundAudiencesList4 = Array<string>;
482
+ export declare const JwtWriteRoleRequestBoundAudiencesList4: S.Schema<JwtWriteRoleRequestBoundAudiencesList4>;
483
+ export interface JwtWriteRoleRequest4 {
484
+ /** Path that the backend was mounted at */
485
+ oidc_mount_path: string;
486
+ /** Name of the role. */
487
+ name: string;
488
+ /** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
489
+ bound_audiences?: JwtWriteRoleRequestBoundAudiencesList4;
490
+ /** CEL variables and expression defining the program for the role. This is a map with two fields: 1. 'variables', a list of objects with two fields ('name' and 'expression') defining each variable and the exact execution order. 2. 'expression', the final statement to execute and whose result is returned. For example: cel_program = { "variables": [ { "name": "condition", "expression": "len(claims.groups) > 0" }, { "name": "result", "expression": "pb.Auth{Alias: claims.aud, Groups: claims.groups}" } ], "expression": "condition ? result : false" } */
491
+ cel_program?: unknown;
492
+ /** Duration in seconds of leeway when validating all claims to account for clock skew. Defaults to 60 (1 minute) if set to 0 and can be disabled if set to -1. */
493
+ clock_skew_leeway?: number;
494
+ /** Duration in seconds of leeway when validating expiration of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
495
+ expiration_leeway?: number;
496
+ /** Static error message if validation fails */
497
+ message?: string;
498
+ /** Duration in seconds of leeway when validating not before values of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. */
499
+ not_before_leeway?: number;
500
+ }
501
+ export declare const JwtWriteRoleRequest4: S.Schema<JwtWriteRoleRequest4>;
502
+ export interface JwtWriteRole4Response {
503
+ }
504
+ export declare const JwtWriteRole4Response: S.Schema<JwtWriteRole4Response>;
505
+ export interface LoginJwtRequest {
506
+ /** Path that the backend was mounted at */
507
+ jwt_mount_path: string;
508
+ /** The signed JWT to validate. */
509
+ jwt?: string;
510
+ /** The CEL role to log in against. */
511
+ role?: string;
512
+ }
513
+ export declare const LoginJwtRequest: S.Schema<LoginJwtRequest>;
514
+ export interface LoginJwtResponse {
515
+ }
516
+ export declare const LoginJwtResponse: S.Schema<LoginJwtResponse>;
517
+ export interface LoginJwtRequest2 {
518
+ /** Path that the backend was mounted at */
519
+ jwt_mount_path: string;
520
+ /** The signed JWT to validate. */
521
+ jwt?: string;
522
+ /** The CEL role to log in against. */
523
+ role?: string;
524
+ }
525
+ export declare const LoginJwtRequest2: S.Schema<LoginJwtRequest2>;
526
+ export interface LoginJwt2Response {
527
+ }
528
+ export declare const LoginJwt2Response: S.Schema<LoginJwt2Response>;
529
+ export interface LoginJwtRequest3 {
530
+ /** Path that the backend was mounted at */
531
+ oidc_mount_path: string;
532
+ /** The signed JWT to validate. */
533
+ jwt?: string;
534
+ /** The CEL role to log in against. */
535
+ role?: string;
536
+ }
537
+ export declare const LoginJwtRequest3: S.Schema<LoginJwtRequest3>;
538
+ export interface LoginJwt3Response {
539
+ }
540
+ export declare const LoginJwt3Response: S.Schema<LoginJwt3Response>;
541
+ export interface LoginJwtRequest4 {
542
+ /** Path that the backend was mounted at */
543
+ oidc_mount_path: string;
544
+ /** The signed JWT to validate. */
545
+ jwt?: string;
546
+ /** The CEL role to log in against. */
547
+ role?: string;
548
+ }
549
+ export declare const LoginJwtRequest4: S.Schema<LoginJwtRequest4>;
550
+ export interface LoginJwt4Response {
551
+ }
552
+ export declare const LoginJwt4Response: S.Schema<LoginJwt4Response>;
553
+ export interface PollJwtWriteOidcRequest {
554
+ /** Path that the backend was mounted at */
555
+ jwt_mount_path: string;
556
+ client_nonce?: string;
557
+ state?: string;
558
+ }
559
+ export declare const PollJwtWriteOidcRequest: S.Schema<PollJwtWriteOidcRequest>;
560
+ export interface PollJwtWriteOidcResponse {
561
+ }
562
+ export declare const PollJwtWriteOidcResponse: S.Schema<PollJwtWriteOidcResponse>;
563
+ export interface PostJwtOidcCallbackFormRequest {
564
+ /** Path that the backend was mounted at */
565
+ jwt_mount_path: string;
566
+ client_nonce?: string;
567
+ code?: string;
568
+ confirmation?: string;
569
+ error?: string;
570
+ error_description?: string;
571
+ error_uri?: string;
572
+ state?: string;
573
+ id_token?: string;
574
+ }
575
+ export declare const PostJwtOidcCallbackFormRequest: S.Schema<PostJwtOidcCallbackFormRequest>;
576
+ export interface PostJwtOidcCallbackFormResponse {
577
+ }
578
+ export declare const PostJwtOidcCallbackFormResponse: S.Schema<PostJwtOidcCallbackFormResponse>;
579
+ export interface PostJwtOidcCallbackFormRequest2 {
580
+ /** Path that the backend was mounted at */
581
+ oidc_mount_path: string;
582
+ client_nonce?: string;
583
+ code?: string;
584
+ confirmation?: string;
585
+ error?: string;
586
+ error_description?: string;
587
+ error_uri?: string;
588
+ state?: string;
589
+ id_token?: string;
590
+ }
591
+ export declare const PostJwtOidcCallbackFormRequest2: S.Schema<PostJwtOidcCallbackFormRequest2>;
592
+ export interface PostJwtOidcCallbackForm2Response {
593
+ }
594
+ export declare const PostJwtOidcCallbackForm2Response: S.Schema<PostJwtOidcCallbackForm2Response>;
595
+ export type JwtConfigureError = OpenBaoOpError;
596
+ /** 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. */
597
+ export declare const jwtConfigure: API.OperationMethod<JwtConfigureRequest, JwtConfigureResponse, JwtConfigureError, OpenBaoOpContext>;
598
+ export type JwtConfigure2Error = OpenBaoOpError;
599
+ /** 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. */
600
+ export declare const jwtConfigure2: API.OperationMethod<JwtConfigureRequest2, JwtConfigure2Response, JwtConfigure2Error, OpenBaoOpContext>;
601
+ export type JwtDeleteRoleError = OpenBaoOpError;
602
+ export declare const jwtDeleteRole: API.OperationMethod<JwtDeleteRoleRequest, JwtDeleteRoleResponse, JwtDeleteRoleError, OpenBaoOpContext>;
603
+ export type JwtDeleteRole2Error = OpenBaoOpError;
604
+ /** Delete an existing role. */
605
+ export declare const jwtDeleteRole2: API.OperationMethod<JwtDeleteRoleRequest2, JwtDeleteRole2Response, JwtDeleteRole2Error, OpenBaoOpContext>;
606
+ export type JwtDeleteRole3Error = OpenBaoOpError;
607
+ export declare const jwtDeleteRole3: API.OperationMethod<JwtDeleteRoleRequest3, JwtDeleteRole3Response, JwtDeleteRole3Error, OpenBaoOpContext>;
608
+ export type JwtDeleteRole4Error = OpenBaoOpError;
609
+ /** Delete an existing role. */
610
+ export declare const jwtDeleteRole4: API.OperationMethod<JwtDeleteRoleRequest4, JwtDeleteRole4Response, JwtDeleteRole4Error, OpenBaoOpContext>;
611
+ export type JwtListCelError = OpenBaoOpError;
612
+ export declare const jwtListCel: API.OperationMethod<JwtListCelRequest, JwtListCelResponse, JwtListCelError, OpenBaoOpContext>;
613
+ export type JwtListCel2Error = OpenBaoOpError;
614
+ export declare const jwtListCel2: API.OperationMethod<JwtListCelRequest2, JwtListCelResponse, JwtListCel2Error, OpenBaoOpContext>;
615
+ export type JwtListRolesError = OpenBaoOpError;
616
+ /** Lists all the roles registered with the backend. The list will contain the names of the roles. */
617
+ export declare const jwtListRoles: API.OperationMethod<JwtListRolesRequest, JwtListRolesResponse, JwtListRolesError, OpenBaoOpContext>;
618
+ export type JwtListRoles2Error = OpenBaoOpError;
619
+ /** Lists all the roles registered with the backend. The list will contain the names of the roles. */
620
+ export declare const jwtListRoles2: API.OperationMethod<JwtListRolesRequest2, JwtListRoles2Response, JwtListRoles2Error, OpenBaoOpContext>;
621
+ export type JwtOidcCallbackError = OpenBaoOpError;
622
+ /** Callback endpoint to complete an OIDC login. */
623
+ export declare const jwtOidcCallback: API.OperationMethod<JwtOidcCallbackRequest, JwtOidcCallbackResponse, JwtOidcCallbackError, OpenBaoOpContext>;
624
+ export type JwtOidcCallback2Error = OpenBaoOpError;
625
+ /** Callback endpoint to complete an OIDC login. */
626
+ export declare const jwtOidcCallback2: API.OperationMethod<JwtOidcCallbackRequest2, JwtOidcCallback2Response, JwtOidcCallback2Error, OpenBaoOpContext>;
627
+ export type JwtOidcRequestAuthorizationUrlError = OpenBaoOpError;
628
+ /** Request an authorization URL to start an OIDC login flow. */
629
+ export declare const jwtOidcRequestAuthorizationUrl: API.OperationMethod<JwtOidcRequestAuthorizationUrlRequest, JwtOidcRequestAuthorizationUrlResponse, JwtOidcRequestAuthorizationUrlError, OpenBaoOpContext>;
630
+ export type JwtOidcRequestAuthorizationUrl2Error = OpenBaoOpError;
631
+ /** Request an authorization URL to start an OIDC login flow. */
632
+ export declare const jwtOidcRequestAuthorizationUrl2: API.OperationMethod<JwtOidcRequestAuthorizationUrlRequest2, JwtOidcRequestAuthorizationUrl2Response, JwtOidcRequestAuthorizationUrl2Error, OpenBaoOpContext>;
633
+ export type JwtPatchRoleError = OpenBaoOpError;
634
+ export declare const jwtPatchRole: API.OperationMethod<JwtPatchRoleRequest, JwtPatchRoleResponse, JwtPatchRoleError, OpenBaoOpContext>;
635
+ export type JwtPatchRole2Error = OpenBaoOpError;
636
+ export declare const jwtPatchRole2: API.OperationMethod<JwtPatchRoleRequest2, JwtPatchRoleResponse, JwtPatchRole2Error, OpenBaoOpContext>;
637
+ export type JwtReadConfigurationError = OpenBaoOpError;
638
+ /** Read the current JWT authentication backend configuration. */
639
+ export declare const jwtReadConfiguration: API.OperationMethod<JwtReadConfigurationRequest, JwtReadConfigurationResponse, JwtReadConfigurationError, OpenBaoOpContext>;
640
+ export type JwtReadConfiguration2Error = OpenBaoOpError;
641
+ /** Read the current JWT authentication backend configuration. */
642
+ export declare const jwtReadConfiguration2: API.OperationMethod<JwtReadConfigurationRequest2, JwtReadConfiguration2Response, JwtReadConfiguration2Error, OpenBaoOpContext>;
643
+ export type JwtReadRoleError = OpenBaoOpError;
644
+ export declare const jwtReadRole: API.OperationMethod<JwtReadRoleRequest, JwtReadRoleResponse, JwtReadRoleError, OpenBaoOpContext>;
645
+ export type JwtReadRole2Error = OpenBaoOpError;
646
+ /** Read an existing role. */
647
+ export declare const jwtReadRole2: API.OperationMethod<JwtReadRoleRequest2, JwtReadRole2Response, JwtReadRole2Error, OpenBaoOpContext>;
648
+ export type JwtReadRole3Error = OpenBaoOpError;
649
+ export declare const jwtReadRole3: API.OperationMethod<JwtReadRoleRequest3, JwtReadRoleResponse, JwtReadRole3Error, OpenBaoOpContext>;
650
+ export type JwtReadRole4Error = OpenBaoOpError;
651
+ /** Read an existing role. */
652
+ export declare const jwtReadRole4: API.OperationMethod<JwtReadRoleRequest4, JwtReadRole4Response, JwtReadRole4Error, OpenBaoOpContext>;
653
+ export type JwtWriteRoleError = OpenBaoOpError;
654
+ export declare const jwtWriteRole: API.OperationMethod<JwtWriteRoleRequest, JwtWriteRoleResponse, JwtWriteRoleError, OpenBaoOpContext>;
655
+ export type JwtWriteRole2Error = OpenBaoOpError;
656
+ /** 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 */
657
+ export declare const jwtWriteRole2: API.OperationMethod<JwtWriteRoleRequest2, JwtWriteRole2Response, JwtWriteRole2Error, OpenBaoOpContext>;
658
+ export type JwtWriteRole3Error = OpenBaoOpError;
659
+ export declare const jwtWriteRole3: API.OperationMethod<JwtWriteRoleRequest3, JwtWriteRoleResponse, JwtWriteRole3Error, OpenBaoOpContext>;
660
+ export type JwtWriteRole4Error = OpenBaoOpError;
661
+ /** 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 */
662
+ export declare const jwtWriteRole4: API.OperationMethod<JwtWriteRoleRequest4, JwtWriteRole4Response, JwtWriteRole4Error, OpenBaoOpContext>;
663
+ export type LoginJwtError = OpenBaoOpError;
664
+ /** Authenticates to OpenBao using a JWT (or OIDC) token against a CEL role. */
665
+ export declare const loginJwt: API.OperationMethod<LoginJwtRequest, LoginJwtResponse, LoginJwtError, OpenBaoOpContext>;
666
+ export type LoginJwt2Error = OpenBaoOpError;
667
+ /** Authenticates to OpenBao using a JWT (or OIDC) token. */
668
+ export declare const loginJwt2: API.OperationMethod<LoginJwtRequest2, LoginJwt2Response, LoginJwt2Error, OpenBaoOpContext>;
669
+ export type LoginJwt3Error = OpenBaoOpError;
670
+ /** Authenticates to OpenBao using a JWT (or OIDC) token against a CEL role. */
671
+ export declare const loginJwt3: API.OperationMethod<LoginJwtRequest3, LoginJwt3Response, LoginJwt3Error, OpenBaoOpContext>;
672
+ export type LoginJwt4Error = OpenBaoOpError;
673
+ /** Authenticates to OpenBao using a JWT (or OIDC) token. */
674
+ export declare const loginJwt4: API.OperationMethod<LoginJwtRequest4, LoginJwt4Response, LoginJwt4Error, OpenBaoOpContext>;
675
+ export type PollJwtWriteOidcError = OpenBaoOpError;
676
+ /** Poll endpoint to complete an OIDC login. */
677
+ export declare const pollJwtWriteOidc: API.OperationMethod<PollJwtWriteOidcRequest, PollJwtWriteOidcResponse, PollJwtWriteOidcError, OpenBaoOpContext>;
678
+ export type PostJwtOidcCallbackFormError = OpenBaoOpError;
679
+ /** Callback endpoint to handle form_posts. */
680
+ export declare const postJwtOidcCallbackForm: API.OperationMethod<PostJwtOidcCallbackFormRequest, PostJwtOidcCallbackFormResponse, PostJwtOidcCallbackFormError, OpenBaoOpContext>;
681
+ export type PostJwtOidcCallbackForm2Error = OpenBaoOpError;
682
+ /** Callback endpoint to handle form_posts. */
683
+ export declare const postJwtOidcCallbackForm2: API.OperationMethod<PostJwtOidcCallbackFormRequest2, PostJwtOidcCallbackForm2Response, PostJwtOidcCallbackForm2Error, OpenBaoOpContext>;
684
+ //# sourceMappingURL=jwt.d.ts.map