@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.
- package/LICENSE +201 -0
- package/README.md +78 -0
- package/dist/credentials.d.ts +32 -0
- package/dist/credentials.d.ts.map +1 -0
- package/dist/credentials.js +66 -0
- package/dist/credentials.js.map +1 -0
- package/dist/credentials.test.d.ts +2 -0
- package/dist/credentials.test.d.ts.map +1 -0
- package/dist/credentials.test.js +29 -0
- package/dist/credentials.test.js.map +1 -0
- package/dist/errors.d.ts +57 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +37 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -0
- package/dist/protocol.d.ts +18 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +96 -0
- package/dist/protocol.js.map +1 -0
- package/dist/protocol.test.d.ts +2 -0
- package/dist/protocol.test.d.ts.map +1 -0
- package/dist/protocol.test.js +78 -0
- package/dist/protocol.test.js.map +1 -0
- package/dist/retry.d.ts +60 -0
- package/dist/retry.d.ts.map +1 -0
- package/dist/retry.js +53 -0
- package/dist/retry.js.map +1 -0
- package/dist/services/alias.d.ts +73 -0
- package/dist/services/alias.d.ts.map +1 -0
- package/dist/services/alias.js +91 -0
- package/dist/services/alias.js.map +1 -0
- package/dist/services/approle.d.ts +918 -0
- package/dist/services/approle.d.ts.map +1 -0
- package/dist/services/approle.js +1206 -0
- package/dist/services/approle.js.map +1 -0
- package/dist/services/auditing.d.ts +97 -0
- package/dist/services/auditing.d.ts.map +1 -0
- package/dist/services/auditing.js +158 -0
- package/dist/services/auditing.js.map +1 -0
- package/dist/services/auth.d.ts +160 -0
- package/dist/services/auth.d.ts.map +1 -0
- package/dist/services/auth.js +169 -0
- package/dist/services/auth.js.map +1 -0
- package/dist/services/collect.d.ts +35 -0
- package/dist/services/collect.d.ts.map +1 -0
- package/dist/services/collect.js +46 -0
- package/dist/services/collect.js.map +1 -0
- package/dist/services/configure.d.ts +35 -0
- package/dist/services/configure.d.ts.map +1 -0
- package/dist/services/configure.js +43 -0
- package/dist/services/configure.js.map +1 -0
- package/dist/services/cors.d.ts +54 -0
- package/dist/services/cors.d.ts.map +1 -0
- package/dist/services/cors.js +65 -0
- package/dist/services/cors.js.map +1 -0
- package/dist/services/cubbyhole.d.ts +40 -0
- package/dist/services/cubbyhole.d.ts.map +1 -0
- package/dist/services/cubbyhole.js +56 -0
- package/dist/services/cubbyhole.js.map +1 -0
- package/dist/services/database.d.ts +278 -0
- package/dist/services/database.d.ts.map +1 -0
- package/dist/services/database.js +384 -0
- package/dist/services/database.js.map +1 -0
- package/dist/services/decode.d.ts +18 -0
- package/dist/services/decode.d.ts.map +1 -0
- package/dist/services/decode.js +24 -0
- package/dist/services/decode.js.map +1 -0
- package/dist/services/entity.d.ts +257 -0
- package/dist/services/entity.d.ts.map +1 -0
- package/dist/services/entity.js +313 -0
- package/dist/services/entity.js.map +1 -0
- package/dist/services/generate.d.ts +136 -0
- package/dist/services/generate.d.ts.map +1 -0
- package/dist/services/generate.js +188 -0
- package/dist/services/generate.js.map +1 -0
- package/dist/services/group.d.ts +244 -0
- package/dist/services/group.d.ts.map +1 -0
- package/dist/services/group.js +277 -0
- package/dist/services/group.js.map +1 -0
- package/dist/services/ha.d.ts +17 -0
- package/dist/services/ha.d.ts.map +1 -0
- package/dist/services/ha.js +24 -0
- package/dist/services/ha.js.map +1 -0
- package/dist/services/index.d.ts +54 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +55 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/initialize.d.ts +34 -0
- package/dist/services/initialize.d.ts.map +1 -0
- package/dist/services/initialize.js +31 -0
- package/dist/services/initialize.js.map +1 -0
- package/dist/services/internal.d.ts +131 -0
- package/dist/services/internal.d.ts.map +1 -0
- package/dist/services/internal.js +199 -0
- package/dist/services/internal.js.map +1 -0
- package/dist/services/jwt.d.ts +684 -0
- package/dist/services/jwt.d.ts.map +1 -0
- package/dist/services/jwt.js +801 -0
- package/dist/services/jwt.js.map +1 -0
- package/dist/services/kubernetes.d.ts +166 -0
- package/dist/services/kubernetes.d.ts.map +1 -0
- package/dist/services/kubernetes.js +187 -0
- package/dist/services/kubernetes.js.map +1 -0
- package/dist/services/kv.d.ts +519 -0
- package/dist/services/kv.d.ts.map +1 -0
- package/dist/services/kv.js +655 -0
- package/dist/services/kv.js.map +1 -0
- package/dist/services/leader.d.ts +21 -0
- package/dist/services/leader.d.ts.map +1 -0
- package/dist/services/leader.js +29 -0
- package/dist/services/leader.js.map +1 -0
- package/dist/services/leases.d.ts +185 -0
- package/dist/services/leases.d.ts.map +1 -0
- package/dist/services/leases.js +238 -0
- package/dist/services/leases.js.map +1 -0
- package/dist/services/locked.d.ts +27 -0
- package/dist/services/locked.d.ts.map +1 -0
- package/dist/services/locked.js +42 -0
- package/dist/services/locked.js.map +1 -0
- package/dist/services/loggers.d.ts +69 -0
- package/dist/services/loggers.d.ts.map +1 -0
- package/dist/services/loggers.js +100 -0
- package/dist/services/loggers.js.map +1 -0
- package/dist/services/mfa.d.ts +386 -0
- package/dist/services/mfa.d.ts.map +1 -0
- package/dist/services/mfa.js +553 -0
- package/dist/services/mfa.js.map +1 -0
- package/dist/services/misc.d.ts +103 -0
- package/dist/services/misc.d.ts.map +1 -0
- package/dist/services/misc.js +120 -0
- package/dist/services/misc.js.map +1 -0
- package/dist/services/mounts.d.ts +173 -0
- package/dist/services/mounts.d.ts.map +1 -0
- package/dist/services/mounts.js +168 -0
- package/dist/services/mounts.js.map +1 -0
- package/dist/services/namespaces.d.ts +257 -0
- package/dist/services/namespaces.d.ts.map +1 -0
- package/dist/services/namespaces.js +320 -0
- package/dist/services/namespaces.js.map +1 -0
- package/dist/services/oidc.d.ts +509 -0
- package/dist/services/oidc.d.ts.map +1 -0
- package/dist/services/oidc.js +718 -0
- package/dist/services/oidc.js.map +1 -0
- package/dist/services/persona.d.ts +73 -0
- package/dist/services/persona.d.ts.map +1 -0
- package/dist/services/persona.js +91 -0
- package/dist/services/persona.js.map +1 -0
- package/dist/services/pki.d.ts +5783 -0
- package/dist/services/pki.d.ts.map +1 -0
- package/dist/services/pki.js +4995 -0
- package/dist/services/pki.js.map +1 -0
- package/dist/services/plugins.d.ts +203 -0
- package/dist/services/plugins.d.ts.map +1 -0
- package/dist/services/plugins.js +237 -0
- package/dist/services/plugins.js.map +1 -0
- package/dist/services/policies.d.ts +250 -0
- package/dist/services/policies.d.ts.map +1 -0
- package/dist/services/policies.js +312 -0
- package/dist/services/policies.js.map +1 -0
- package/dist/services/pprof.d.ts +104 -0
- package/dist/services/pprof.d.ts.map +1 -0
- package/dist/services/pprof.js +161 -0
- package/dist/services/pprof.js.map +1 -0
- package/dist/services/query.d.ts +65 -0
- package/dist/services/query.d.ts.map +1 -0
- package/dist/services/query.js +66 -0
- package/dist/services/query.js.map +1 -0
- package/dist/services/rate.d.ts +102 -0
- package/dist/services/rate.d.ts.map +1 -0
- package/dist/services/rate.js +129 -0
- package/dist/services/rate.js.map +1 -0
- package/dist/services/raw.d.ts +85 -0
- package/dist/services/raw.d.ts.map +1 -0
- package/dist/services/raw.js +116 -0
- package/dist/services/raw.js.map +1 -0
- package/dist/services/read.d.ts +87 -0
- package/dist/services/read.d.ts.map +1 -0
- package/dist/services/read.js +123 -0
- package/dist/services/read.js.map +1 -0
- package/dist/services/rekey.d.ts +184 -0
- package/dist/services/rekey.d.ts.map +1 -0
- package/dist/services/rekey.js +243 -0
- package/dist/services/rekey.js.map +1 -0
- package/dist/services/reload.d.ts +15 -0
- package/dist/services/reload.d.ts.map +1 -0
- package/dist/services/reload.js +27 -0
- package/dist/services/reload.js.map +1 -0
- package/dist/services/remount.d.ts +18 -0
- package/dist/services/remount.d.ts.map +1 -0
- package/dist/services/remount.js +30 -0
- package/dist/services/remount.js.map +1 -0
- package/dist/services/root.d.ts +134 -0
- package/dist/services/root.d.ts.map +1 -0
- package/dist/services/root.js +180 -0
- package/dist/services/root.js.map +1 -0
- package/dist/services/rotate.d.ts +367 -0
- package/dist/services/rotate.d.ts.map +1 -0
- package/dist/services/rotate.js +473 -0
- package/dist/services/rotate.js.map +1 -0
- package/dist/services/seal.d.ts +29 -0
- package/dist/services/seal.d.ts.map +1 -0
- package/dist/services/seal.js +37 -0
- package/dist/services/seal.js.map +1 -0
- package/dist/services/ssh.d.ts +491 -0
- package/dist/services/ssh.d.ts.map +1 -0
- package/dist/services/ssh.js +582 -0
- package/dist/services/ssh.js.map +1 -0
- package/dist/services/status.d.ts +17 -0
- package/dist/services/status.d.ts.map +1 -0
- package/dist/services/status.js +25 -0
- package/dist/services/status.js.map +1 -0
- package/dist/services/step.d.ts +14 -0
- package/dist/services/step.d.ts.map +1 -0
- package/dist/services/step.js +21 -0
- package/dist/services/step.js.map +1 -0
- package/dist/services/system.d.ts +33 -0
- package/dist/services/system.d.ts.map +1 -0
- package/dist/services/system.js +47 -0
- package/dist/services/system.js.map +1 -0
- package/dist/services/token.d.ts +408 -0
- package/dist/services/token.d.ts.map +1 -0
- package/dist/services/token.js +415 -0
- package/dist/services/token.js.map +1 -0
- package/dist/services/ui.d.ts +70 -0
- package/dist/services/ui.d.ts.map +1 -0
- package/dist/services/ui.js +95 -0
- package/dist/services/ui.js.map +1 -0
- package/dist/services/update.d.ts +25 -0
- package/dist/services/update.d.ts.map +1 -0
- package/dist/services/update.js +36 -0
- package/dist/services/update.js.map +1 -0
- package/dist/services/userpass.d.ts +151 -0
- package/dist/services/userpass.d.ts.map +1 -0
- package/dist/services/userpass.js +177 -0
- package/dist/services/userpass.js.map +1 -0
- package/dist/services/version.d.ts +22 -0
- package/dist/services/version.d.ts.map +1 -0
- package/dist/services/version.js +28 -0
- package/dist/services/version.js.map +1 -0
- package/dist/services/workflows.d.ts +122 -0
- package/dist/services/workflows.d.ts.map +1 -0
- package/dist/services/workflows.js +149 -0
- package/dist/services/workflows.js.map +1 -0
- package/dist/traits.d.ts +11 -0
- package/dist/traits.d.ts.map +1 -0
- package/dist/traits.js +12 -0
- package/dist/traits.js.map +1 -0
- package/package.json +75 -0
- package/src/credentials.test.ts +36 -0
- package/src/credentials.ts +100 -0
- package/src/errors.ts +73 -0
- package/src/index.ts +33 -0
- package/src/protocol.test.ts +123 -0
- package/src/protocol.ts +120 -0
- package/src/retry.ts +84 -0
- package/src/services/alias.ts +208 -0
- package/src/services/approle.ts +2750 -0
- package/src/services/auditing.ts +318 -0
- package/src/services/auth.ts +416 -0
- package/src/services/collect.ts +103 -0
- package/src/services/configure.ts +94 -0
- package/src/services/cors.ts +155 -0
- package/src/services/cubbyhole.ts +117 -0
- package/src/services/database.ts +854 -0
- package/src/services/decode.ts +49 -0
- package/src/services/entity.ts +744 -0
- package/src/services/generate.ts +409 -0
- package/src/services/group.ts +677 -0
- package/src/services/ha.ts +52 -0
- package/src/services/index.ts +54 -0
- package/src/services/initialize.ts +76 -0
- package/src/services/internal.ts +425 -0
- package/src/services/jwt.ts +1838 -0
- package/src/services/kubernetes.ts +446 -0
- package/src/services/kv.ts +1480 -0
- package/src/services/leader.ts +57 -0
- package/src/services/leases.ts +532 -0
- package/src/services/locked.ts +86 -0
- package/src/services/loggers.ts +215 -0
- package/src/services/mfa.ts +1193 -0
- package/src/services/misc.ts +286 -0
- package/src/services/mounts.ts +428 -0
- package/src/services/namespaces.ts +707 -0
- package/src/services/oidc.ts +1613 -0
- package/src/services/persona.ts +210 -0
- package/src/services/pki.ts +13320 -0
- package/src/services/plugins.ts +549 -0
- package/src/services/policies.ts +689 -0
- package/src/services/pprof.ts +351 -0
- package/src/services/query.ts +170 -0
- package/src/services/rate.ts +303 -0
- package/src/services/raw.ts +244 -0
- package/src/services/read.ts +266 -0
- package/src/services/rekey.ts +540 -0
- package/src/services/reload.ts +51 -0
- package/src/services/remount.ts +58 -0
- package/src/services/root.ts +393 -0
- package/src/services/rotate.ts +1088 -0
- package/src/services/seal.ts +75 -0
- package/src/services/ssh.ts +1351 -0
- package/src/services/status.ts +51 -0
- package/src/services/step.ts +43 -0
- package/src/services/system.ts +98 -0
- package/src/services/token.ts +1046 -0
- package/src/services/ui.ts +207 -0
- package/src/services/update.ts +73 -0
- package/src/services/userpass.ts +410 -0
- package/src/services/version.ts +60 -0
- package/src/services/workflows.ts +327 -0
- package/src/traits.ts +45 -0
|
@@ -0,0 +1,1838 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-openbao, generated — see fetch-specs.ts). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.ts";
|
|
5
|
+
import {
|
|
6
|
+
OpenBaoProtocol,
|
|
7
|
+
type OpenBaoOpError,
|
|
8
|
+
type OpenBaoOpContext,
|
|
9
|
+
} from "../protocol.ts";
|
|
10
|
+
import * as Retry from "../retry.ts";
|
|
11
|
+
|
|
12
|
+
export type { OpenBaoOpError, OpenBaoOpContext };
|
|
13
|
+
|
|
14
|
+
/** A list of supported signing algorithms. Defaults to RS256. */
|
|
15
|
+
export type JwtConfigureRequestJwtSupportedAlgsList = Array<string>;
|
|
16
|
+
export const JwtConfigureRequestJwtSupportedAlgsList = /*@__PURE__*/ S.Array(
|
|
17
|
+
S.String,
|
|
18
|
+
) as any as S.Schema<JwtConfigureRequestJwtSupportedAlgsList>;
|
|
19
|
+
|
|
20
|
+
/** A list of PEM-encoded public keys to use to authenticate signatures locally. Cannot be used with "jwks_url" or "oidc_discovery_url". */
|
|
21
|
+
export type JwtConfigureRequestJwtValidationPubkeysList = Array<string>;
|
|
22
|
+
export const JwtConfigureRequestJwtValidationPubkeysList =
|
|
23
|
+
/*@__PURE__*/ S.Array(
|
|
24
|
+
S.String,
|
|
25
|
+
) as any as S.Schema<JwtConfigureRequestJwtValidationPubkeysList>;
|
|
26
|
+
|
|
27
|
+
/** The response types to request. Allowed values are 'code' and 'id_token'. Defaults to 'code'. */
|
|
28
|
+
export type JwtConfigureRequestOidcResponseTypesList = Array<string>;
|
|
29
|
+
export const JwtConfigureRequestOidcResponseTypesList = /*@__PURE__*/ S.Array(
|
|
30
|
+
S.String,
|
|
31
|
+
) as any as S.Schema<JwtConfigureRequestOidcResponseTypesList>;
|
|
32
|
+
|
|
33
|
+
/** 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 */
|
|
34
|
+
export type JwtConfigureRequestOverrideAllowedServerNamesList = Array<string>;
|
|
35
|
+
export const JwtConfigureRequestOverrideAllowedServerNamesList =
|
|
36
|
+
/*@__PURE__*/ S.Array(
|
|
37
|
+
S.String,
|
|
38
|
+
) as any as S.Schema<JwtConfigureRequestOverrideAllowedServerNamesList>;
|
|
39
|
+
|
|
40
|
+
export interface JwtConfigureRequest {
|
|
41
|
+
/** Path that the backend was mounted at */
|
|
42
|
+
jwt_mount_path: string;
|
|
43
|
+
/** The value against which to match the 'iss' claim in a JWT. Optional. */
|
|
44
|
+
bound_issuer?: string;
|
|
45
|
+
/** The default role to use if none is provided during login. If not set, a role is required during login. */
|
|
46
|
+
default_role?: string;
|
|
47
|
+
/** 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. */
|
|
48
|
+
jwks_ca_pem?: string;
|
|
49
|
+
/** JWKS URL to use to authenticate signatures. Cannot be used with "oidc_discovery_url" or "jwt_validation_pubkeys". */
|
|
50
|
+
jwks_url?: string;
|
|
51
|
+
/** A list of supported signing algorithms. Defaults to RS256. */
|
|
52
|
+
jwt_supported_algs?: JwtConfigureRequestJwtSupportedAlgsList;
|
|
53
|
+
/** A list of PEM-encoded public keys to use to authenticate signatures locally. Cannot be used with "jwks_url" or "oidc_discovery_url". */
|
|
54
|
+
jwt_validation_pubkeys?: JwtConfigureRequestJwtValidationPubkeysList;
|
|
55
|
+
/** 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. */
|
|
56
|
+
namespace_in_state?: boolean;
|
|
57
|
+
/** The OAuth Client ID configured with your OIDC provider. */
|
|
58
|
+
oidc_client_id?: string;
|
|
59
|
+
/** The OAuth Client Secret configured with your OIDC provider. */
|
|
60
|
+
oidc_client_secret?: string;
|
|
61
|
+
/** 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. */
|
|
62
|
+
oidc_discovery_ca_pem?: string;
|
|
63
|
+
/** The base URL of the OIDC Discovery URL without ".well-known/openid-configuration" component. Cannot be used with "jwks_url" or "jwt_validation_pubkeys". */
|
|
64
|
+
oidc_discovery_url?: string;
|
|
65
|
+
/** The response mode to be used in the OAuth2 request. Allowed values are 'query' and 'form_post'. */
|
|
66
|
+
oidc_response_mode?: string;
|
|
67
|
+
/** The response types to request. Allowed values are 'code' and 'id_token'. Defaults to 'code'. */
|
|
68
|
+
oidc_response_types?: JwtConfigureRequestOidcResponseTypesList;
|
|
69
|
+
/** 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 */
|
|
70
|
+
override_allowed_server_names?: JwtConfigureRequestOverrideAllowedServerNamesList;
|
|
71
|
+
/** Provider-specific configuration. Optional. */
|
|
72
|
+
provider_config?: unknown;
|
|
73
|
+
/** 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. */
|
|
74
|
+
skip_jwks_validation?: boolean;
|
|
75
|
+
}
|
|
76
|
+
export const JwtConfigureRequest = /*@__PURE__*/ S.suspend(() =>
|
|
77
|
+
S.Struct({
|
|
78
|
+
jwt_mount_path: S.String.pipe(T.Label()),
|
|
79
|
+
bound_issuer: S.optional(S.String),
|
|
80
|
+
default_role: S.optional(S.String),
|
|
81
|
+
jwks_ca_pem: S.optional(S.String),
|
|
82
|
+
jwks_url: S.optional(S.String),
|
|
83
|
+
jwt_supported_algs: S.optional(JwtConfigureRequestJwtSupportedAlgsList),
|
|
84
|
+
jwt_validation_pubkeys: S.optional(
|
|
85
|
+
JwtConfigureRequestJwtValidationPubkeysList,
|
|
86
|
+
),
|
|
87
|
+
namespace_in_state: S.optional(S.Boolean),
|
|
88
|
+
oidc_client_id: S.optional(S.String),
|
|
89
|
+
oidc_client_secret: S.optional(S.String),
|
|
90
|
+
oidc_discovery_ca_pem: S.optional(S.String),
|
|
91
|
+
oidc_discovery_url: S.optional(S.String),
|
|
92
|
+
oidc_response_mode: S.optional(S.String),
|
|
93
|
+
oidc_response_types: S.optional(JwtConfigureRequestOidcResponseTypesList),
|
|
94
|
+
override_allowed_server_names: S.optional(
|
|
95
|
+
JwtConfigureRequestOverrideAllowedServerNamesList,
|
|
96
|
+
),
|
|
97
|
+
provider_config: S.optional(S.Unknown),
|
|
98
|
+
skip_jwks_validation: S.optional(S.Boolean),
|
|
99
|
+
}).pipe(
|
|
100
|
+
T.Http({ method: "POST", uri: "/auth/{jwt_mount_path}/config", code: 200 }),
|
|
101
|
+
),
|
|
102
|
+
).annotate({
|
|
103
|
+
identifier: "JwtConfigureRequest",
|
|
104
|
+
}) as any as S.Schema<JwtConfigureRequest>;
|
|
105
|
+
|
|
106
|
+
export interface JwtConfigureResponse {}
|
|
107
|
+
export const JwtConfigureResponse = /*@__PURE__*/ S.suspend(() =>
|
|
108
|
+
S.Struct({}),
|
|
109
|
+
).annotate({
|
|
110
|
+
identifier: "JwtConfigureResponse",
|
|
111
|
+
}) as any as S.Schema<JwtConfigureResponse>;
|
|
112
|
+
|
|
113
|
+
/** A list of supported signing algorithms. Defaults to RS256. */
|
|
114
|
+
export type JwtConfigureRequestJwtSupportedAlgsList2 = Array<string>;
|
|
115
|
+
export const JwtConfigureRequestJwtSupportedAlgsList2 = /*@__PURE__*/ S.Array(
|
|
116
|
+
S.String,
|
|
117
|
+
) as any as S.Schema<JwtConfigureRequestJwtSupportedAlgsList2>;
|
|
118
|
+
|
|
119
|
+
/** A list of PEM-encoded public keys to use to authenticate signatures locally. Cannot be used with "jwks_url" or "oidc_discovery_url". */
|
|
120
|
+
export type JwtConfigureRequestJwtValidationPubkeysList2 = Array<string>;
|
|
121
|
+
export const JwtConfigureRequestJwtValidationPubkeysList2 =
|
|
122
|
+
/*@__PURE__*/ S.Array(
|
|
123
|
+
S.String,
|
|
124
|
+
) as any as S.Schema<JwtConfigureRequestJwtValidationPubkeysList2>;
|
|
125
|
+
|
|
126
|
+
/** The response types to request. Allowed values are 'code' and 'id_token'. Defaults to 'code'. */
|
|
127
|
+
export type JwtConfigureRequestOidcResponseTypesList2 = Array<string>;
|
|
128
|
+
export const JwtConfigureRequestOidcResponseTypesList2 = /*@__PURE__*/ S.Array(
|
|
129
|
+
S.String,
|
|
130
|
+
) as any as S.Schema<JwtConfigureRequestOidcResponseTypesList2>;
|
|
131
|
+
|
|
132
|
+
/** 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 */
|
|
133
|
+
export type JwtConfigureRequestOverrideAllowedServerNamesList2 = Array<string>;
|
|
134
|
+
export const JwtConfigureRequestOverrideAllowedServerNamesList2 =
|
|
135
|
+
/*@__PURE__*/ S.Array(
|
|
136
|
+
S.String,
|
|
137
|
+
) as any as S.Schema<JwtConfigureRequestOverrideAllowedServerNamesList2>;
|
|
138
|
+
|
|
139
|
+
export interface JwtConfigureRequest2 {
|
|
140
|
+
/** Path that the backend was mounted at */
|
|
141
|
+
oidc_mount_path: string;
|
|
142
|
+
/** The value against which to match the 'iss' claim in a JWT. Optional. */
|
|
143
|
+
bound_issuer?: string;
|
|
144
|
+
/** The default role to use if none is provided during login. If not set, a role is required during login. */
|
|
145
|
+
default_role?: string;
|
|
146
|
+
/** 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. */
|
|
147
|
+
jwks_ca_pem?: string;
|
|
148
|
+
/** JWKS URL to use to authenticate signatures. Cannot be used with "oidc_discovery_url" or "jwt_validation_pubkeys". */
|
|
149
|
+
jwks_url?: string;
|
|
150
|
+
/** A list of supported signing algorithms. Defaults to RS256. */
|
|
151
|
+
jwt_supported_algs?: JwtConfigureRequestJwtSupportedAlgsList2;
|
|
152
|
+
/** A list of PEM-encoded public keys to use to authenticate signatures locally. Cannot be used with "jwks_url" or "oidc_discovery_url". */
|
|
153
|
+
jwt_validation_pubkeys?: JwtConfigureRequestJwtValidationPubkeysList2;
|
|
154
|
+
/** 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. */
|
|
155
|
+
namespace_in_state?: boolean;
|
|
156
|
+
/** The OAuth Client ID configured with your OIDC provider. */
|
|
157
|
+
oidc_client_id?: string;
|
|
158
|
+
/** The OAuth Client Secret configured with your OIDC provider. */
|
|
159
|
+
oidc_client_secret?: string;
|
|
160
|
+
/** 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. */
|
|
161
|
+
oidc_discovery_ca_pem?: string;
|
|
162
|
+
/** The base URL of the OIDC Discovery URL without ".well-known/openid-configuration" component. Cannot be used with "jwks_url" or "jwt_validation_pubkeys". */
|
|
163
|
+
oidc_discovery_url?: string;
|
|
164
|
+
/** The response mode to be used in the OAuth2 request. Allowed values are 'query' and 'form_post'. */
|
|
165
|
+
oidc_response_mode?: string;
|
|
166
|
+
/** The response types to request. Allowed values are 'code' and 'id_token'. Defaults to 'code'. */
|
|
167
|
+
oidc_response_types?: JwtConfigureRequestOidcResponseTypesList2;
|
|
168
|
+
/** 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 */
|
|
169
|
+
override_allowed_server_names?: JwtConfigureRequestOverrideAllowedServerNamesList2;
|
|
170
|
+
/** Provider-specific configuration. Optional. */
|
|
171
|
+
provider_config?: unknown;
|
|
172
|
+
/** 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. */
|
|
173
|
+
skip_jwks_validation?: boolean;
|
|
174
|
+
}
|
|
175
|
+
export const JwtConfigureRequest2 = /*@__PURE__*/ S.suspend(() =>
|
|
176
|
+
S.Struct({
|
|
177
|
+
oidc_mount_path: S.String.pipe(T.Label()),
|
|
178
|
+
bound_issuer: S.optional(S.String),
|
|
179
|
+
default_role: S.optional(S.String),
|
|
180
|
+
jwks_ca_pem: S.optional(S.String),
|
|
181
|
+
jwks_url: S.optional(S.String),
|
|
182
|
+
jwt_supported_algs: S.optional(JwtConfigureRequestJwtSupportedAlgsList2),
|
|
183
|
+
jwt_validation_pubkeys: S.optional(
|
|
184
|
+
JwtConfigureRequestJwtValidationPubkeysList2,
|
|
185
|
+
),
|
|
186
|
+
namespace_in_state: S.optional(S.Boolean),
|
|
187
|
+
oidc_client_id: S.optional(S.String),
|
|
188
|
+
oidc_client_secret: S.optional(S.String),
|
|
189
|
+
oidc_discovery_ca_pem: S.optional(S.String),
|
|
190
|
+
oidc_discovery_url: S.optional(S.String),
|
|
191
|
+
oidc_response_mode: S.optional(S.String),
|
|
192
|
+
oidc_response_types: S.optional(JwtConfigureRequestOidcResponseTypesList2),
|
|
193
|
+
override_allowed_server_names: S.optional(
|
|
194
|
+
JwtConfigureRequestOverrideAllowedServerNamesList2,
|
|
195
|
+
),
|
|
196
|
+
provider_config: S.optional(S.Unknown),
|
|
197
|
+
skip_jwks_validation: S.optional(S.Boolean),
|
|
198
|
+
}).pipe(
|
|
199
|
+
T.Http({
|
|
200
|
+
method: "POST",
|
|
201
|
+
uri: "/auth/{oidc_mount_path}/config",
|
|
202
|
+
code: 200,
|
|
203
|
+
}),
|
|
204
|
+
),
|
|
205
|
+
).annotate({
|
|
206
|
+
identifier: "JwtConfigureRequest2",
|
|
207
|
+
}) as any as S.Schema<JwtConfigureRequest2>;
|
|
208
|
+
|
|
209
|
+
export interface JwtConfigure2Response {}
|
|
210
|
+
export const JwtConfigure2Response = /*@__PURE__*/ S.suspend(() =>
|
|
211
|
+
S.Struct({}),
|
|
212
|
+
).annotate({
|
|
213
|
+
identifier: "JwtConfigure2Response",
|
|
214
|
+
}) as any as S.Schema<JwtConfigure2Response>;
|
|
215
|
+
|
|
216
|
+
export interface JwtDeleteRoleRequest {
|
|
217
|
+
/** Path that the backend was mounted at */
|
|
218
|
+
jwt_mount_path: string;
|
|
219
|
+
/** Name of the cel role */
|
|
220
|
+
name: string;
|
|
221
|
+
}
|
|
222
|
+
export const JwtDeleteRoleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
223
|
+
S.Struct({
|
|
224
|
+
jwt_mount_path: S.String.pipe(T.Label()),
|
|
225
|
+
name: S.String.pipe(T.Label()),
|
|
226
|
+
}).pipe(
|
|
227
|
+
T.Http({
|
|
228
|
+
method: "DELETE",
|
|
229
|
+
uri: "/auth/{jwt_mount_path}/cel/role/{name}",
|
|
230
|
+
code: 200,
|
|
231
|
+
}),
|
|
232
|
+
),
|
|
233
|
+
).annotate({
|
|
234
|
+
identifier: "JwtDeleteRoleRequest",
|
|
235
|
+
}) as any as S.Schema<JwtDeleteRoleRequest>;
|
|
236
|
+
|
|
237
|
+
export interface JwtDeleteRoleResponse {}
|
|
238
|
+
export const JwtDeleteRoleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
239
|
+
S.Struct({}),
|
|
240
|
+
).annotate({
|
|
241
|
+
identifier: "JwtDeleteRoleResponse",
|
|
242
|
+
}) as any as S.Schema<JwtDeleteRoleResponse>;
|
|
243
|
+
|
|
244
|
+
export interface JwtDeleteRoleRequest2 {
|
|
245
|
+
/** Path that the backend was mounted at */
|
|
246
|
+
jwt_mount_path: string;
|
|
247
|
+
/** Name of the role. */
|
|
248
|
+
name: string;
|
|
249
|
+
}
|
|
250
|
+
export const JwtDeleteRoleRequest2 = /*@__PURE__*/ S.suspend(() =>
|
|
251
|
+
S.Struct({
|
|
252
|
+
jwt_mount_path: S.String.pipe(T.Label()),
|
|
253
|
+
name: S.String.pipe(T.Label()),
|
|
254
|
+
}).pipe(
|
|
255
|
+
T.Http({
|
|
256
|
+
method: "DELETE",
|
|
257
|
+
uri: "/auth/{jwt_mount_path}/role/{name}",
|
|
258
|
+
code: 200,
|
|
259
|
+
}),
|
|
260
|
+
),
|
|
261
|
+
).annotate({
|
|
262
|
+
identifier: "JwtDeleteRoleRequest2",
|
|
263
|
+
}) as any as S.Schema<JwtDeleteRoleRequest2>;
|
|
264
|
+
|
|
265
|
+
export interface JwtDeleteRole2Response {}
|
|
266
|
+
export const JwtDeleteRole2Response = /*@__PURE__*/ S.suspend(() =>
|
|
267
|
+
S.Struct({}),
|
|
268
|
+
).annotate({
|
|
269
|
+
identifier: "JwtDeleteRole2Response",
|
|
270
|
+
}) as any as S.Schema<JwtDeleteRole2Response>;
|
|
271
|
+
|
|
272
|
+
export interface JwtDeleteRoleRequest3 {
|
|
273
|
+
/** Path that the backend was mounted at */
|
|
274
|
+
oidc_mount_path: string;
|
|
275
|
+
/** Name of the cel role */
|
|
276
|
+
name: string;
|
|
277
|
+
}
|
|
278
|
+
export const JwtDeleteRoleRequest3 = /*@__PURE__*/ S.suspend(() =>
|
|
279
|
+
S.Struct({
|
|
280
|
+
oidc_mount_path: S.String.pipe(T.Label()),
|
|
281
|
+
name: S.String.pipe(T.Label()),
|
|
282
|
+
}).pipe(
|
|
283
|
+
T.Http({
|
|
284
|
+
method: "DELETE",
|
|
285
|
+
uri: "/auth/{oidc_mount_path}/cel/role/{name}",
|
|
286
|
+
code: 200,
|
|
287
|
+
}),
|
|
288
|
+
),
|
|
289
|
+
).annotate({
|
|
290
|
+
identifier: "JwtDeleteRoleRequest3",
|
|
291
|
+
}) as any as S.Schema<JwtDeleteRoleRequest3>;
|
|
292
|
+
|
|
293
|
+
export interface JwtDeleteRole3Response {}
|
|
294
|
+
export const JwtDeleteRole3Response = /*@__PURE__*/ S.suspend(() =>
|
|
295
|
+
S.Struct({}),
|
|
296
|
+
).annotate({
|
|
297
|
+
identifier: "JwtDeleteRole3Response",
|
|
298
|
+
}) as any as S.Schema<JwtDeleteRole3Response>;
|
|
299
|
+
|
|
300
|
+
export interface JwtDeleteRoleRequest4 {
|
|
301
|
+
/** Path that the backend was mounted at */
|
|
302
|
+
oidc_mount_path: string;
|
|
303
|
+
/** Name of the role. */
|
|
304
|
+
name: string;
|
|
305
|
+
}
|
|
306
|
+
export const JwtDeleteRoleRequest4 = /*@__PURE__*/ S.suspend(() =>
|
|
307
|
+
S.Struct({
|
|
308
|
+
oidc_mount_path: S.String.pipe(T.Label()),
|
|
309
|
+
name: S.String.pipe(T.Label()),
|
|
310
|
+
}).pipe(
|
|
311
|
+
T.Http({
|
|
312
|
+
method: "DELETE",
|
|
313
|
+
uri: "/auth/{oidc_mount_path}/role/{name}",
|
|
314
|
+
code: 200,
|
|
315
|
+
}),
|
|
316
|
+
),
|
|
317
|
+
).annotate({
|
|
318
|
+
identifier: "JwtDeleteRoleRequest4",
|
|
319
|
+
}) as any as S.Schema<JwtDeleteRoleRequest4>;
|
|
320
|
+
|
|
321
|
+
export interface JwtDeleteRole4Response {}
|
|
322
|
+
export const JwtDeleteRole4Response = /*@__PURE__*/ S.suspend(() =>
|
|
323
|
+
S.Struct({}),
|
|
324
|
+
).annotate({
|
|
325
|
+
identifier: "JwtDeleteRole4Response",
|
|
326
|
+
}) as any as S.Schema<JwtDeleteRole4Response>;
|
|
327
|
+
|
|
328
|
+
export type JwtListCelRequestList = "true";
|
|
329
|
+
export const JwtListCelRequestList = S.String;
|
|
330
|
+
|
|
331
|
+
export interface JwtListCelRequest {
|
|
332
|
+
/** Path that the backend was mounted at */
|
|
333
|
+
jwt_mount_path: string;
|
|
334
|
+
/** Must be set to `true` */
|
|
335
|
+
list: JwtListCelRequestList | (string & {});
|
|
336
|
+
}
|
|
337
|
+
export const JwtListCelRequest = /*@__PURE__*/ S.suspend(() =>
|
|
338
|
+
S.Struct({
|
|
339
|
+
jwt_mount_path: S.String.pipe(T.Label()),
|
|
340
|
+
list: JwtListCelRequestList.pipe(T.Query()),
|
|
341
|
+
}).pipe(
|
|
342
|
+
T.Http({
|
|
343
|
+
method: "GET",
|
|
344
|
+
uri: "/auth/{jwt_mount_path}/cel/role",
|
|
345
|
+
code: 200,
|
|
346
|
+
}),
|
|
347
|
+
),
|
|
348
|
+
).annotate({
|
|
349
|
+
identifier: "JwtListCelRequest",
|
|
350
|
+
}) as any as S.Schema<JwtListCelRequest>;
|
|
351
|
+
|
|
352
|
+
/** List of CEL roles */
|
|
353
|
+
export type JwtListCelResponseKeysList = Array<string>;
|
|
354
|
+
export const JwtListCelResponseKeysList = /*@__PURE__*/ S.Array(
|
|
355
|
+
S.String,
|
|
356
|
+
) as any as S.Schema<JwtListCelResponseKeysList>;
|
|
357
|
+
|
|
358
|
+
export interface JwtListCelResponse {
|
|
359
|
+
/** List of CEL roles */
|
|
360
|
+
keys?: JwtListCelResponseKeysList;
|
|
361
|
+
}
|
|
362
|
+
export const JwtListCelResponse = /*@__PURE__*/ S.suspend(() =>
|
|
363
|
+
S.Struct({
|
|
364
|
+
keys: S.optional(JwtListCelResponseKeysList),
|
|
365
|
+
}),
|
|
366
|
+
).annotate({
|
|
367
|
+
identifier: "JwtListCelResponse",
|
|
368
|
+
}) as any as S.Schema<JwtListCelResponse>;
|
|
369
|
+
|
|
370
|
+
export type JwtListCelRequestList2 = "true";
|
|
371
|
+
export const JwtListCelRequestList2 = S.String;
|
|
372
|
+
|
|
373
|
+
export interface JwtListCelRequest2 {
|
|
374
|
+
/** Path that the backend was mounted at */
|
|
375
|
+
oidc_mount_path: string;
|
|
376
|
+
/** Must be set to `true` */
|
|
377
|
+
list: JwtListCelRequestList2 | (string & {});
|
|
378
|
+
}
|
|
379
|
+
export const JwtListCelRequest2 = /*@__PURE__*/ S.suspend(() =>
|
|
380
|
+
S.Struct({
|
|
381
|
+
oidc_mount_path: S.String.pipe(T.Label()),
|
|
382
|
+
list: JwtListCelRequestList2.pipe(T.Query()),
|
|
383
|
+
}).pipe(
|
|
384
|
+
T.Http({
|
|
385
|
+
method: "GET",
|
|
386
|
+
uri: "/auth/{oidc_mount_path}/cel/role",
|
|
387
|
+
code: 200,
|
|
388
|
+
}),
|
|
389
|
+
),
|
|
390
|
+
).annotate({
|
|
391
|
+
identifier: "JwtListCelRequest2",
|
|
392
|
+
}) as any as S.Schema<JwtListCelRequest2>;
|
|
393
|
+
|
|
394
|
+
export type JwtListRolesRequestList = "true";
|
|
395
|
+
export const JwtListRolesRequestList = S.String;
|
|
396
|
+
|
|
397
|
+
export interface JwtListRolesRequest {
|
|
398
|
+
/** Path that the backend was mounted at */
|
|
399
|
+
jwt_mount_path: string;
|
|
400
|
+
/** Must be set to `true` */
|
|
401
|
+
list: JwtListRolesRequestList | (string & {});
|
|
402
|
+
}
|
|
403
|
+
export const JwtListRolesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
404
|
+
S.Struct({
|
|
405
|
+
jwt_mount_path: S.String.pipe(T.Label()),
|
|
406
|
+
list: JwtListRolesRequestList.pipe(T.Query()),
|
|
407
|
+
}).pipe(
|
|
408
|
+
T.Http({ method: "GET", uri: "/auth/{jwt_mount_path}/role", code: 200 }),
|
|
409
|
+
),
|
|
410
|
+
).annotate({
|
|
411
|
+
identifier: "JwtListRolesRequest",
|
|
412
|
+
}) as any as S.Schema<JwtListRolesRequest>;
|
|
413
|
+
|
|
414
|
+
export interface JwtListRolesResponse {}
|
|
415
|
+
export const JwtListRolesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
416
|
+
S.Struct({}),
|
|
417
|
+
).annotate({
|
|
418
|
+
identifier: "JwtListRolesResponse",
|
|
419
|
+
}) as any as S.Schema<JwtListRolesResponse>;
|
|
420
|
+
|
|
421
|
+
export type JwtListRolesRequestList2 = "true";
|
|
422
|
+
export const JwtListRolesRequestList2 = S.String;
|
|
423
|
+
|
|
424
|
+
export interface JwtListRolesRequest2 {
|
|
425
|
+
/** Path that the backend was mounted at */
|
|
426
|
+
oidc_mount_path: string;
|
|
427
|
+
/** Must be set to `true` */
|
|
428
|
+
list: JwtListRolesRequestList2 | (string & {});
|
|
429
|
+
}
|
|
430
|
+
export const JwtListRolesRequest2 = /*@__PURE__*/ S.suspend(() =>
|
|
431
|
+
S.Struct({
|
|
432
|
+
oidc_mount_path: S.String.pipe(T.Label()),
|
|
433
|
+
list: JwtListRolesRequestList2.pipe(T.Query()),
|
|
434
|
+
}).pipe(
|
|
435
|
+
T.Http({ method: "GET", uri: "/auth/{oidc_mount_path}/role", code: 200 }),
|
|
436
|
+
),
|
|
437
|
+
).annotate({
|
|
438
|
+
identifier: "JwtListRolesRequest2",
|
|
439
|
+
}) as any as S.Schema<JwtListRolesRequest2>;
|
|
440
|
+
|
|
441
|
+
export interface JwtListRoles2Response {}
|
|
442
|
+
export const JwtListRoles2Response = /*@__PURE__*/ S.suspend(() =>
|
|
443
|
+
S.Struct({}),
|
|
444
|
+
).annotate({
|
|
445
|
+
identifier: "JwtListRoles2Response",
|
|
446
|
+
}) as any as S.Schema<JwtListRoles2Response>;
|
|
447
|
+
|
|
448
|
+
export interface JwtOidcCallbackRequest {
|
|
449
|
+
/** Path that the backend was mounted at */
|
|
450
|
+
jwt_mount_path: string;
|
|
451
|
+
client_nonce?: string;
|
|
452
|
+
code?: string;
|
|
453
|
+
confirmation?: string;
|
|
454
|
+
error?: string;
|
|
455
|
+
error_description?: string;
|
|
456
|
+
error_uri?: string;
|
|
457
|
+
state?: string;
|
|
458
|
+
}
|
|
459
|
+
export const JwtOidcCallbackRequest = /*@__PURE__*/ S.suspend(() =>
|
|
460
|
+
S.Struct({
|
|
461
|
+
jwt_mount_path: S.String.pipe(T.Label()),
|
|
462
|
+
client_nonce: S.optional(S.String.pipe(T.Query())),
|
|
463
|
+
code: S.optional(S.String.pipe(T.Query())),
|
|
464
|
+
confirmation: S.optional(S.String.pipe(T.Query())),
|
|
465
|
+
error: S.optional(S.String.pipe(T.Query())),
|
|
466
|
+
error_description: S.optional(S.String.pipe(T.Query())),
|
|
467
|
+
error_uri: S.optional(S.String.pipe(T.Query())),
|
|
468
|
+
state: S.optional(S.String.pipe(T.Query())),
|
|
469
|
+
}).pipe(
|
|
470
|
+
T.Http({
|
|
471
|
+
method: "GET",
|
|
472
|
+
uri: "/auth/{jwt_mount_path}/oidc/callback",
|
|
473
|
+
code: 200,
|
|
474
|
+
}),
|
|
475
|
+
),
|
|
476
|
+
).annotate({
|
|
477
|
+
identifier: "JwtOidcCallbackRequest",
|
|
478
|
+
}) as any as S.Schema<JwtOidcCallbackRequest>;
|
|
479
|
+
|
|
480
|
+
export interface JwtOidcCallbackResponse {}
|
|
481
|
+
export const JwtOidcCallbackResponse = /*@__PURE__*/ S.suspend(() =>
|
|
482
|
+
S.Struct({}),
|
|
483
|
+
).annotate({
|
|
484
|
+
identifier: "JwtOidcCallbackResponse",
|
|
485
|
+
}) as any as S.Schema<JwtOidcCallbackResponse>;
|
|
486
|
+
|
|
487
|
+
export interface JwtOidcCallbackRequest2 {
|
|
488
|
+
/** Path that the backend was mounted at */
|
|
489
|
+
oidc_mount_path: string;
|
|
490
|
+
client_nonce?: string;
|
|
491
|
+
code?: string;
|
|
492
|
+
confirmation?: string;
|
|
493
|
+
error?: string;
|
|
494
|
+
error_description?: string;
|
|
495
|
+
error_uri?: string;
|
|
496
|
+
state?: string;
|
|
497
|
+
}
|
|
498
|
+
export const JwtOidcCallbackRequest2 = /*@__PURE__*/ S.suspend(() =>
|
|
499
|
+
S.Struct({
|
|
500
|
+
oidc_mount_path: S.String.pipe(T.Label()),
|
|
501
|
+
client_nonce: S.optional(S.String.pipe(T.Query())),
|
|
502
|
+
code: S.optional(S.String.pipe(T.Query())),
|
|
503
|
+
confirmation: S.optional(S.String.pipe(T.Query())),
|
|
504
|
+
error: S.optional(S.String.pipe(T.Query())),
|
|
505
|
+
error_description: S.optional(S.String.pipe(T.Query())),
|
|
506
|
+
error_uri: S.optional(S.String.pipe(T.Query())),
|
|
507
|
+
state: S.optional(S.String.pipe(T.Query())),
|
|
508
|
+
}).pipe(
|
|
509
|
+
T.Http({
|
|
510
|
+
method: "GET",
|
|
511
|
+
uri: "/auth/{oidc_mount_path}/oidc/callback",
|
|
512
|
+
code: 200,
|
|
513
|
+
}),
|
|
514
|
+
),
|
|
515
|
+
).annotate({
|
|
516
|
+
identifier: "JwtOidcCallbackRequest2",
|
|
517
|
+
}) as any as S.Schema<JwtOidcCallbackRequest2>;
|
|
518
|
+
|
|
519
|
+
export interface JwtOidcCallback2Response {}
|
|
520
|
+
export const JwtOidcCallback2Response = /*@__PURE__*/ S.suspend(() =>
|
|
521
|
+
S.Struct({}),
|
|
522
|
+
).annotate({
|
|
523
|
+
identifier: "JwtOidcCallback2Response",
|
|
524
|
+
}) as any as S.Schema<JwtOidcCallback2Response>;
|
|
525
|
+
|
|
526
|
+
export interface JwtOidcRequestAuthorizationUrlRequest {
|
|
527
|
+
/** Path that the backend was mounted at */
|
|
528
|
+
jwt_mount_path: string;
|
|
529
|
+
/** Client-provided nonce that must match during callback, if present. Required only in direct callback mode. */
|
|
530
|
+
client_nonce?: string;
|
|
531
|
+
/** The OAuth redirect_uri to use in the authorization URL. Not needed with device flow. */
|
|
532
|
+
redirect_uri?: string;
|
|
533
|
+
/** The role to issue an OIDC authorization URL against. */
|
|
534
|
+
role?: string;
|
|
535
|
+
}
|
|
536
|
+
export const JwtOidcRequestAuthorizationUrlRequest = /*@__PURE__*/ S.suspend(
|
|
537
|
+
() =>
|
|
538
|
+
S.Struct({
|
|
539
|
+
jwt_mount_path: S.String.pipe(T.Label()),
|
|
540
|
+
client_nonce: S.optional(S.String),
|
|
541
|
+
redirect_uri: S.optional(S.String),
|
|
542
|
+
role: S.optional(S.String),
|
|
543
|
+
}).pipe(
|
|
544
|
+
T.Http({
|
|
545
|
+
method: "POST",
|
|
546
|
+
uri: "/auth/{jwt_mount_path}/oidc/auth_url",
|
|
547
|
+
code: 200,
|
|
548
|
+
}),
|
|
549
|
+
),
|
|
550
|
+
).annotate({
|
|
551
|
+
identifier: "JwtOidcRequestAuthorizationUrlRequest",
|
|
552
|
+
}) as any as S.Schema<JwtOidcRequestAuthorizationUrlRequest>;
|
|
553
|
+
|
|
554
|
+
export interface JwtOidcRequestAuthorizationUrlResponse {}
|
|
555
|
+
export const JwtOidcRequestAuthorizationUrlResponse = /*@__PURE__*/ S.suspend(
|
|
556
|
+
() => S.Struct({}),
|
|
557
|
+
).annotate({
|
|
558
|
+
identifier: "JwtOidcRequestAuthorizationUrlResponse",
|
|
559
|
+
}) as any as S.Schema<JwtOidcRequestAuthorizationUrlResponse>;
|
|
560
|
+
|
|
561
|
+
export interface JwtOidcRequestAuthorizationUrlRequest2 {
|
|
562
|
+
/** Path that the backend was mounted at */
|
|
563
|
+
oidc_mount_path: string;
|
|
564
|
+
/** Client-provided nonce that must match during callback, if present. Required only in direct callback mode. */
|
|
565
|
+
client_nonce?: string;
|
|
566
|
+
/** The OAuth redirect_uri to use in the authorization URL. Not needed with device flow. */
|
|
567
|
+
redirect_uri?: string;
|
|
568
|
+
/** The role to issue an OIDC authorization URL against. */
|
|
569
|
+
role?: string;
|
|
570
|
+
}
|
|
571
|
+
export const JwtOidcRequestAuthorizationUrlRequest2 = /*@__PURE__*/ S.suspend(
|
|
572
|
+
() =>
|
|
573
|
+
S.Struct({
|
|
574
|
+
oidc_mount_path: S.String.pipe(T.Label()),
|
|
575
|
+
client_nonce: S.optional(S.String),
|
|
576
|
+
redirect_uri: S.optional(S.String),
|
|
577
|
+
role: S.optional(S.String),
|
|
578
|
+
}).pipe(
|
|
579
|
+
T.Http({
|
|
580
|
+
method: "POST",
|
|
581
|
+
uri: "/auth/{oidc_mount_path}/oidc/auth_url",
|
|
582
|
+
code: 200,
|
|
583
|
+
}),
|
|
584
|
+
),
|
|
585
|
+
).annotate({
|
|
586
|
+
identifier: "JwtOidcRequestAuthorizationUrlRequest2",
|
|
587
|
+
}) as any as S.Schema<JwtOidcRequestAuthorizationUrlRequest2>;
|
|
588
|
+
|
|
589
|
+
export interface JwtOidcRequestAuthorizationUrl2Response {}
|
|
590
|
+
export const JwtOidcRequestAuthorizationUrl2Response = /*@__PURE__*/ S.suspend(
|
|
591
|
+
() => S.Struct({}),
|
|
592
|
+
).annotate({
|
|
593
|
+
identifier: "JwtOidcRequestAuthorizationUrl2Response",
|
|
594
|
+
}) as any as S.Schema<JwtOidcRequestAuthorizationUrl2Response>;
|
|
595
|
+
|
|
596
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
597
|
+
export type JwtPatchRoleRequestBoundAudiencesList = Array<string>;
|
|
598
|
+
export const JwtPatchRoleRequestBoundAudiencesList = /*@__PURE__*/ S.Array(
|
|
599
|
+
S.String,
|
|
600
|
+
) as any as S.Schema<JwtPatchRoleRequestBoundAudiencesList>;
|
|
601
|
+
|
|
602
|
+
export interface JwtPatchRoleRequest {
|
|
603
|
+
/** Path that the backend was mounted at */
|
|
604
|
+
jwt_mount_path: string;
|
|
605
|
+
/** Name of the cel role */
|
|
606
|
+
name: string;
|
|
607
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
608
|
+
bound_audiences?: JwtPatchRoleRequestBoundAudiencesList;
|
|
609
|
+
/** 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" } */
|
|
610
|
+
cel_program?: unknown;
|
|
611
|
+
/** 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. */
|
|
612
|
+
clock_skew_leeway?: number;
|
|
613
|
+
/** 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. */
|
|
614
|
+
expiration_leeway?: number;
|
|
615
|
+
/** Static error message if validation fails */
|
|
616
|
+
message?: string;
|
|
617
|
+
/** 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. */
|
|
618
|
+
not_before_leeway?: number;
|
|
619
|
+
}
|
|
620
|
+
export const JwtPatchRoleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
621
|
+
S.Struct({
|
|
622
|
+
jwt_mount_path: S.String.pipe(T.Label()),
|
|
623
|
+
name: S.String.pipe(T.Label()),
|
|
624
|
+
bound_audiences: S.optional(JwtPatchRoleRequestBoundAudiencesList),
|
|
625
|
+
cel_program: S.optional(S.Unknown),
|
|
626
|
+
clock_skew_leeway: S.optional(S.Number),
|
|
627
|
+
expiration_leeway: S.optional(S.Number),
|
|
628
|
+
message: S.optional(S.String),
|
|
629
|
+
not_before_leeway: S.optional(S.Number),
|
|
630
|
+
}).pipe(
|
|
631
|
+
T.Http({
|
|
632
|
+
method: "PATCH",
|
|
633
|
+
uri: "/auth/{jwt_mount_path}/cel/role/{name}",
|
|
634
|
+
code: 200,
|
|
635
|
+
}),
|
|
636
|
+
),
|
|
637
|
+
).annotate({
|
|
638
|
+
identifier: "JwtPatchRoleRequest",
|
|
639
|
+
}) as any as S.Schema<JwtPatchRoleRequest>;
|
|
640
|
+
|
|
641
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
642
|
+
export type JwtPatchRoleResponseBoundAudiencesList = Array<string>;
|
|
643
|
+
export const JwtPatchRoleResponseBoundAudiencesList = /*@__PURE__*/ S.Array(
|
|
644
|
+
S.String,
|
|
645
|
+
) as any as S.Schema<JwtPatchRoleResponseBoundAudiencesList>;
|
|
646
|
+
|
|
647
|
+
export interface JwtPatchRoleResponse {
|
|
648
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
649
|
+
bound_audiences?: JwtPatchRoleResponseBoundAudiencesList;
|
|
650
|
+
/** 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" } */
|
|
651
|
+
cel_program?: unknown;
|
|
652
|
+
/** 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. */
|
|
653
|
+
clock_skew_leeway?: number;
|
|
654
|
+
/** 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. */
|
|
655
|
+
expiration_leeway?: number;
|
|
656
|
+
/** Static error message if validation fails */
|
|
657
|
+
message?: string;
|
|
658
|
+
/** Name of the cel role */
|
|
659
|
+
name?: string;
|
|
660
|
+
/** 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. */
|
|
661
|
+
not_before_leeway?: number;
|
|
662
|
+
}
|
|
663
|
+
export const JwtPatchRoleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
664
|
+
S.Struct({
|
|
665
|
+
bound_audiences: S.optional(JwtPatchRoleResponseBoundAudiencesList),
|
|
666
|
+
cel_program: S.optional(S.Unknown),
|
|
667
|
+
clock_skew_leeway: S.optional(S.Number),
|
|
668
|
+
expiration_leeway: S.optional(S.Number),
|
|
669
|
+
message: S.optional(S.String),
|
|
670
|
+
name: S.optional(S.String),
|
|
671
|
+
not_before_leeway: S.optional(S.Number),
|
|
672
|
+
}),
|
|
673
|
+
).annotate({
|
|
674
|
+
identifier: "JwtPatchRoleResponse",
|
|
675
|
+
}) as any as S.Schema<JwtPatchRoleResponse>;
|
|
676
|
+
|
|
677
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
678
|
+
export type JwtPatchRoleRequestBoundAudiencesList2 = Array<string>;
|
|
679
|
+
export const JwtPatchRoleRequestBoundAudiencesList2 = /*@__PURE__*/ S.Array(
|
|
680
|
+
S.String,
|
|
681
|
+
) as any as S.Schema<JwtPatchRoleRequestBoundAudiencesList2>;
|
|
682
|
+
|
|
683
|
+
export interface JwtPatchRoleRequest2 {
|
|
684
|
+
/** Path that the backend was mounted at */
|
|
685
|
+
oidc_mount_path: string;
|
|
686
|
+
/** Name of the cel role */
|
|
687
|
+
name: string;
|
|
688
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
689
|
+
bound_audiences?: JwtPatchRoleRequestBoundAudiencesList2;
|
|
690
|
+
/** 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" } */
|
|
691
|
+
cel_program?: unknown;
|
|
692
|
+
/** 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. */
|
|
693
|
+
clock_skew_leeway?: number;
|
|
694
|
+
/** 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. */
|
|
695
|
+
expiration_leeway?: number;
|
|
696
|
+
/** Static error message if validation fails */
|
|
697
|
+
message?: string;
|
|
698
|
+
/** 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. */
|
|
699
|
+
not_before_leeway?: number;
|
|
700
|
+
}
|
|
701
|
+
export const JwtPatchRoleRequest2 = /*@__PURE__*/ S.suspend(() =>
|
|
702
|
+
S.Struct({
|
|
703
|
+
oidc_mount_path: S.String.pipe(T.Label()),
|
|
704
|
+
name: S.String.pipe(T.Label()),
|
|
705
|
+
bound_audiences: S.optional(JwtPatchRoleRequestBoundAudiencesList2),
|
|
706
|
+
cel_program: S.optional(S.Unknown),
|
|
707
|
+
clock_skew_leeway: S.optional(S.Number),
|
|
708
|
+
expiration_leeway: S.optional(S.Number),
|
|
709
|
+
message: S.optional(S.String),
|
|
710
|
+
not_before_leeway: S.optional(S.Number),
|
|
711
|
+
}).pipe(
|
|
712
|
+
T.Http({
|
|
713
|
+
method: "PATCH",
|
|
714
|
+
uri: "/auth/{oidc_mount_path}/cel/role/{name}",
|
|
715
|
+
code: 200,
|
|
716
|
+
}),
|
|
717
|
+
),
|
|
718
|
+
).annotate({
|
|
719
|
+
identifier: "JwtPatchRoleRequest2",
|
|
720
|
+
}) as any as S.Schema<JwtPatchRoleRequest2>;
|
|
721
|
+
|
|
722
|
+
export interface JwtReadConfigurationRequest {
|
|
723
|
+
/** Path that the backend was mounted at */
|
|
724
|
+
jwt_mount_path: string;
|
|
725
|
+
}
|
|
726
|
+
export const JwtReadConfigurationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
727
|
+
S.Struct({
|
|
728
|
+
jwt_mount_path: S.String.pipe(T.Label()),
|
|
729
|
+
}).pipe(
|
|
730
|
+
T.Http({ method: "GET", uri: "/auth/{jwt_mount_path}/config", code: 200 }),
|
|
731
|
+
),
|
|
732
|
+
).annotate({
|
|
733
|
+
identifier: "JwtReadConfigurationRequest",
|
|
734
|
+
}) as any as S.Schema<JwtReadConfigurationRequest>;
|
|
735
|
+
|
|
736
|
+
export interface JwtReadConfigurationResponse {}
|
|
737
|
+
export const JwtReadConfigurationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
738
|
+
S.Struct({}),
|
|
739
|
+
).annotate({
|
|
740
|
+
identifier: "JwtReadConfigurationResponse",
|
|
741
|
+
}) as any as S.Schema<JwtReadConfigurationResponse>;
|
|
742
|
+
|
|
743
|
+
export interface JwtReadConfigurationRequest2 {
|
|
744
|
+
/** Path that the backend was mounted at */
|
|
745
|
+
oidc_mount_path: string;
|
|
746
|
+
}
|
|
747
|
+
export const JwtReadConfigurationRequest2 = /*@__PURE__*/ S.suspend(() =>
|
|
748
|
+
S.Struct({
|
|
749
|
+
oidc_mount_path: S.String.pipe(T.Label()),
|
|
750
|
+
}).pipe(
|
|
751
|
+
T.Http({ method: "GET", uri: "/auth/{oidc_mount_path}/config", code: 200 }),
|
|
752
|
+
),
|
|
753
|
+
).annotate({
|
|
754
|
+
identifier: "JwtReadConfigurationRequest2",
|
|
755
|
+
}) as any as S.Schema<JwtReadConfigurationRequest2>;
|
|
756
|
+
|
|
757
|
+
export interface JwtReadConfiguration2Response {}
|
|
758
|
+
export const JwtReadConfiguration2Response = /*@__PURE__*/ S.suspend(() =>
|
|
759
|
+
S.Struct({}),
|
|
760
|
+
).annotate({
|
|
761
|
+
identifier: "JwtReadConfiguration2Response",
|
|
762
|
+
}) as any as S.Schema<JwtReadConfiguration2Response>;
|
|
763
|
+
|
|
764
|
+
export interface JwtReadRoleRequest {
|
|
765
|
+
/** Path that the backend was mounted at */
|
|
766
|
+
jwt_mount_path: string;
|
|
767
|
+
/** Name of the cel role */
|
|
768
|
+
name: string;
|
|
769
|
+
}
|
|
770
|
+
export const JwtReadRoleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
771
|
+
S.Struct({
|
|
772
|
+
jwt_mount_path: S.String.pipe(T.Label()),
|
|
773
|
+
name: S.String.pipe(T.Label()),
|
|
774
|
+
}).pipe(
|
|
775
|
+
T.Http({
|
|
776
|
+
method: "GET",
|
|
777
|
+
uri: "/auth/{jwt_mount_path}/cel/role/{name}",
|
|
778
|
+
code: 200,
|
|
779
|
+
}),
|
|
780
|
+
),
|
|
781
|
+
).annotate({
|
|
782
|
+
identifier: "JwtReadRoleRequest",
|
|
783
|
+
}) as any as S.Schema<JwtReadRoleRequest>;
|
|
784
|
+
|
|
785
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
786
|
+
export type JwtReadRoleResponseBoundAudiencesList = Array<string>;
|
|
787
|
+
export const JwtReadRoleResponseBoundAudiencesList = /*@__PURE__*/ S.Array(
|
|
788
|
+
S.String,
|
|
789
|
+
) as any as S.Schema<JwtReadRoleResponseBoundAudiencesList>;
|
|
790
|
+
|
|
791
|
+
export interface JwtReadRoleResponse {
|
|
792
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
793
|
+
bound_audiences?: JwtReadRoleResponseBoundAudiencesList;
|
|
794
|
+
/** 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" } */
|
|
795
|
+
cel_program?: unknown;
|
|
796
|
+
/** 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. */
|
|
797
|
+
clock_skew_leeway?: number;
|
|
798
|
+
/** 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. */
|
|
799
|
+
expiration_leeway?: number;
|
|
800
|
+
/** Static error message if validation fails */
|
|
801
|
+
message?: string;
|
|
802
|
+
/** Name of the cel role */
|
|
803
|
+
name?: string;
|
|
804
|
+
/** 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. */
|
|
805
|
+
not_before_leeway?: number;
|
|
806
|
+
}
|
|
807
|
+
export const JwtReadRoleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
808
|
+
S.Struct({
|
|
809
|
+
bound_audiences: S.optional(JwtReadRoleResponseBoundAudiencesList),
|
|
810
|
+
cel_program: S.optional(S.Unknown),
|
|
811
|
+
clock_skew_leeway: S.optional(S.Number),
|
|
812
|
+
expiration_leeway: S.optional(S.Number),
|
|
813
|
+
message: S.optional(S.String),
|
|
814
|
+
name: S.optional(S.String),
|
|
815
|
+
not_before_leeway: S.optional(S.Number),
|
|
816
|
+
}),
|
|
817
|
+
).annotate({
|
|
818
|
+
identifier: "JwtReadRoleResponse",
|
|
819
|
+
}) as any as S.Schema<JwtReadRoleResponse>;
|
|
820
|
+
|
|
821
|
+
export interface JwtReadRoleRequest2 {
|
|
822
|
+
/** Path that the backend was mounted at */
|
|
823
|
+
jwt_mount_path: string;
|
|
824
|
+
/** Name of the role. */
|
|
825
|
+
name: string;
|
|
826
|
+
}
|
|
827
|
+
export const JwtReadRoleRequest2 = /*@__PURE__*/ S.suspend(() =>
|
|
828
|
+
S.Struct({
|
|
829
|
+
jwt_mount_path: S.String.pipe(T.Label()),
|
|
830
|
+
name: S.String.pipe(T.Label()),
|
|
831
|
+
}).pipe(
|
|
832
|
+
T.Http({
|
|
833
|
+
method: "GET",
|
|
834
|
+
uri: "/auth/{jwt_mount_path}/role/{name}",
|
|
835
|
+
code: 200,
|
|
836
|
+
}),
|
|
837
|
+
),
|
|
838
|
+
).annotate({
|
|
839
|
+
identifier: "JwtReadRoleRequest2",
|
|
840
|
+
}) as any as S.Schema<JwtReadRoleRequest2>;
|
|
841
|
+
|
|
842
|
+
export interface JwtReadRole2Response {}
|
|
843
|
+
export const JwtReadRole2Response = /*@__PURE__*/ S.suspend(() =>
|
|
844
|
+
S.Struct({}),
|
|
845
|
+
).annotate({
|
|
846
|
+
identifier: "JwtReadRole2Response",
|
|
847
|
+
}) as any as S.Schema<JwtReadRole2Response>;
|
|
848
|
+
|
|
849
|
+
export interface JwtReadRoleRequest3 {
|
|
850
|
+
/** Path that the backend was mounted at */
|
|
851
|
+
oidc_mount_path: string;
|
|
852
|
+
/** Name of the cel role */
|
|
853
|
+
name: string;
|
|
854
|
+
}
|
|
855
|
+
export const JwtReadRoleRequest3 = /*@__PURE__*/ S.suspend(() =>
|
|
856
|
+
S.Struct({
|
|
857
|
+
oidc_mount_path: S.String.pipe(T.Label()),
|
|
858
|
+
name: S.String.pipe(T.Label()),
|
|
859
|
+
}).pipe(
|
|
860
|
+
T.Http({
|
|
861
|
+
method: "GET",
|
|
862
|
+
uri: "/auth/{oidc_mount_path}/cel/role/{name}",
|
|
863
|
+
code: 200,
|
|
864
|
+
}),
|
|
865
|
+
),
|
|
866
|
+
).annotate({
|
|
867
|
+
identifier: "JwtReadRoleRequest3",
|
|
868
|
+
}) as any as S.Schema<JwtReadRoleRequest3>;
|
|
869
|
+
|
|
870
|
+
export interface JwtReadRoleRequest4 {
|
|
871
|
+
/** Path that the backend was mounted at */
|
|
872
|
+
oidc_mount_path: string;
|
|
873
|
+
/** Name of the role. */
|
|
874
|
+
name: string;
|
|
875
|
+
}
|
|
876
|
+
export const JwtReadRoleRequest4 = /*@__PURE__*/ S.suspend(() =>
|
|
877
|
+
S.Struct({
|
|
878
|
+
oidc_mount_path: S.String.pipe(T.Label()),
|
|
879
|
+
name: S.String.pipe(T.Label()),
|
|
880
|
+
}).pipe(
|
|
881
|
+
T.Http({
|
|
882
|
+
method: "GET",
|
|
883
|
+
uri: "/auth/{oidc_mount_path}/role/{name}",
|
|
884
|
+
code: 200,
|
|
885
|
+
}),
|
|
886
|
+
),
|
|
887
|
+
).annotate({
|
|
888
|
+
identifier: "JwtReadRoleRequest4",
|
|
889
|
+
}) as any as S.Schema<JwtReadRoleRequest4>;
|
|
890
|
+
|
|
891
|
+
export interface JwtReadRole4Response {}
|
|
892
|
+
export const JwtReadRole4Response = /*@__PURE__*/ S.suspend(() =>
|
|
893
|
+
S.Struct({}),
|
|
894
|
+
).annotate({
|
|
895
|
+
identifier: "JwtReadRole4Response",
|
|
896
|
+
}) as any as S.Schema<JwtReadRole4Response>;
|
|
897
|
+
|
|
898
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
899
|
+
export type JwtWriteRoleRequestBoundAudiencesList = Array<string>;
|
|
900
|
+
export const JwtWriteRoleRequestBoundAudiencesList = /*@__PURE__*/ S.Array(
|
|
901
|
+
S.String,
|
|
902
|
+
) as any as S.Schema<JwtWriteRoleRequestBoundAudiencesList>;
|
|
903
|
+
|
|
904
|
+
export interface JwtWriteRoleRequest {
|
|
905
|
+
/** Path that the backend was mounted at */
|
|
906
|
+
jwt_mount_path: string;
|
|
907
|
+
/** Name of the cel role */
|
|
908
|
+
name: string;
|
|
909
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
910
|
+
bound_audiences?: JwtWriteRoleRequestBoundAudiencesList;
|
|
911
|
+
/** 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" } */
|
|
912
|
+
cel_program?: unknown;
|
|
913
|
+
/** 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. */
|
|
914
|
+
clock_skew_leeway?: number;
|
|
915
|
+
/** 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. */
|
|
916
|
+
expiration_leeway?: number;
|
|
917
|
+
/** Static error message if validation fails */
|
|
918
|
+
message?: string;
|
|
919
|
+
/** 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. */
|
|
920
|
+
not_before_leeway?: number;
|
|
921
|
+
}
|
|
922
|
+
export const JwtWriteRoleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
923
|
+
S.Struct({
|
|
924
|
+
jwt_mount_path: S.String.pipe(T.Label()),
|
|
925
|
+
name: S.String.pipe(T.Label()),
|
|
926
|
+
bound_audiences: S.optional(JwtWriteRoleRequestBoundAudiencesList),
|
|
927
|
+
cel_program: S.optional(S.Unknown),
|
|
928
|
+
clock_skew_leeway: S.optional(S.Number),
|
|
929
|
+
expiration_leeway: S.optional(S.Number),
|
|
930
|
+
message: S.optional(S.String),
|
|
931
|
+
not_before_leeway: S.optional(S.Number),
|
|
932
|
+
}).pipe(
|
|
933
|
+
T.Http({
|
|
934
|
+
method: "POST",
|
|
935
|
+
uri: "/auth/{jwt_mount_path}/cel/role/{name}",
|
|
936
|
+
code: 200,
|
|
937
|
+
}),
|
|
938
|
+
),
|
|
939
|
+
).annotate({
|
|
940
|
+
identifier: "JwtWriteRoleRequest",
|
|
941
|
+
}) as any as S.Schema<JwtWriteRoleRequest>;
|
|
942
|
+
|
|
943
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
944
|
+
export type JwtWriteRoleResponseBoundAudiencesList = Array<string>;
|
|
945
|
+
export const JwtWriteRoleResponseBoundAudiencesList = /*@__PURE__*/ S.Array(
|
|
946
|
+
S.String,
|
|
947
|
+
) as any as S.Schema<JwtWriteRoleResponseBoundAudiencesList>;
|
|
948
|
+
|
|
949
|
+
export interface JwtWriteRoleResponse {
|
|
950
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
951
|
+
bound_audiences?: JwtWriteRoleResponseBoundAudiencesList;
|
|
952
|
+
/** 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" } */
|
|
953
|
+
cel_program?: unknown;
|
|
954
|
+
/** 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. */
|
|
955
|
+
clock_skew_leeway?: number;
|
|
956
|
+
/** 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. */
|
|
957
|
+
expiration_leeway?: number;
|
|
958
|
+
/** Static error message if validation fails */
|
|
959
|
+
message?: string;
|
|
960
|
+
/** Name of the cel role */
|
|
961
|
+
name?: string;
|
|
962
|
+
/** 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. */
|
|
963
|
+
not_before_leeway?: number;
|
|
964
|
+
}
|
|
965
|
+
export const JwtWriteRoleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
966
|
+
S.Struct({
|
|
967
|
+
bound_audiences: S.optional(JwtWriteRoleResponseBoundAudiencesList),
|
|
968
|
+
cel_program: S.optional(S.Unknown),
|
|
969
|
+
clock_skew_leeway: S.optional(S.Number),
|
|
970
|
+
expiration_leeway: S.optional(S.Number),
|
|
971
|
+
message: S.optional(S.String),
|
|
972
|
+
name: S.optional(S.String),
|
|
973
|
+
not_before_leeway: S.optional(S.Number),
|
|
974
|
+
}),
|
|
975
|
+
).annotate({
|
|
976
|
+
identifier: "JwtWriteRoleResponse",
|
|
977
|
+
}) as any as S.Schema<JwtWriteRoleResponse>;
|
|
978
|
+
|
|
979
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
980
|
+
export type JwtWriteRoleRequestBoundAudiencesList2 = Array<string>;
|
|
981
|
+
export const JwtWriteRoleRequestBoundAudiencesList2 = /*@__PURE__*/ S.Array(
|
|
982
|
+
S.String,
|
|
983
|
+
) as any as S.Schema<JwtWriteRoleRequestBoundAudiencesList2>;
|
|
984
|
+
|
|
985
|
+
export interface JwtWriteRoleRequest2 {
|
|
986
|
+
/** Path that the backend was mounted at */
|
|
987
|
+
jwt_mount_path: string;
|
|
988
|
+
/** Name of the role. */
|
|
989
|
+
name: string;
|
|
990
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
991
|
+
bound_audiences?: JwtWriteRoleRequestBoundAudiencesList2;
|
|
992
|
+
/** 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" } */
|
|
993
|
+
cel_program?: unknown;
|
|
994
|
+
/** 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. */
|
|
995
|
+
clock_skew_leeway?: number;
|
|
996
|
+
/** 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. */
|
|
997
|
+
expiration_leeway?: number;
|
|
998
|
+
/** Static error message if validation fails */
|
|
999
|
+
message?: string;
|
|
1000
|
+
/** 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. */
|
|
1001
|
+
not_before_leeway?: number;
|
|
1002
|
+
}
|
|
1003
|
+
export const JwtWriteRoleRequest2 = /*@__PURE__*/ S.suspend(() =>
|
|
1004
|
+
S.Struct({
|
|
1005
|
+
jwt_mount_path: S.String.pipe(T.Label()),
|
|
1006
|
+
name: S.String.pipe(T.Label()),
|
|
1007
|
+
bound_audiences: S.optional(JwtWriteRoleRequestBoundAudiencesList2),
|
|
1008
|
+
cel_program: S.optional(S.Unknown),
|
|
1009
|
+
clock_skew_leeway: S.optional(S.Number),
|
|
1010
|
+
expiration_leeway: S.optional(S.Number),
|
|
1011
|
+
message: S.optional(S.String),
|
|
1012
|
+
not_before_leeway: S.optional(S.Number),
|
|
1013
|
+
}).pipe(
|
|
1014
|
+
T.Http({
|
|
1015
|
+
method: "POST",
|
|
1016
|
+
uri: "/auth/{jwt_mount_path}/role/{name}",
|
|
1017
|
+
code: 200,
|
|
1018
|
+
}),
|
|
1019
|
+
),
|
|
1020
|
+
).annotate({
|
|
1021
|
+
identifier: "JwtWriteRoleRequest2",
|
|
1022
|
+
}) as any as S.Schema<JwtWriteRoleRequest2>;
|
|
1023
|
+
|
|
1024
|
+
export interface JwtWriteRole2Response {}
|
|
1025
|
+
export const JwtWriteRole2Response = /*@__PURE__*/ S.suspend(() =>
|
|
1026
|
+
S.Struct({}),
|
|
1027
|
+
).annotate({
|
|
1028
|
+
identifier: "JwtWriteRole2Response",
|
|
1029
|
+
}) as any as S.Schema<JwtWriteRole2Response>;
|
|
1030
|
+
|
|
1031
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
1032
|
+
export type JwtWriteRoleRequestBoundAudiencesList3 = Array<string>;
|
|
1033
|
+
export const JwtWriteRoleRequestBoundAudiencesList3 = /*@__PURE__*/ S.Array(
|
|
1034
|
+
S.String,
|
|
1035
|
+
) as any as S.Schema<JwtWriteRoleRequestBoundAudiencesList3>;
|
|
1036
|
+
|
|
1037
|
+
export interface JwtWriteRoleRequest3 {
|
|
1038
|
+
/** Path that the backend was mounted at */
|
|
1039
|
+
oidc_mount_path: string;
|
|
1040
|
+
/** Name of the cel role */
|
|
1041
|
+
name: string;
|
|
1042
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
1043
|
+
bound_audiences?: JwtWriteRoleRequestBoundAudiencesList3;
|
|
1044
|
+
/** 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" } */
|
|
1045
|
+
cel_program?: unknown;
|
|
1046
|
+
/** 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. */
|
|
1047
|
+
clock_skew_leeway?: number;
|
|
1048
|
+
/** 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. */
|
|
1049
|
+
expiration_leeway?: number;
|
|
1050
|
+
/** Static error message if validation fails */
|
|
1051
|
+
message?: string;
|
|
1052
|
+
/** 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. */
|
|
1053
|
+
not_before_leeway?: number;
|
|
1054
|
+
}
|
|
1055
|
+
export const JwtWriteRoleRequest3 = /*@__PURE__*/ S.suspend(() =>
|
|
1056
|
+
S.Struct({
|
|
1057
|
+
oidc_mount_path: S.String.pipe(T.Label()),
|
|
1058
|
+
name: S.String.pipe(T.Label()),
|
|
1059
|
+
bound_audiences: S.optional(JwtWriteRoleRequestBoundAudiencesList3),
|
|
1060
|
+
cel_program: S.optional(S.Unknown),
|
|
1061
|
+
clock_skew_leeway: S.optional(S.Number),
|
|
1062
|
+
expiration_leeway: S.optional(S.Number),
|
|
1063
|
+
message: S.optional(S.String),
|
|
1064
|
+
not_before_leeway: S.optional(S.Number),
|
|
1065
|
+
}).pipe(
|
|
1066
|
+
T.Http({
|
|
1067
|
+
method: "POST",
|
|
1068
|
+
uri: "/auth/{oidc_mount_path}/cel/role/{name}",
|
|
1069
|
+
code: 200,
|
|
1070
|
+
}),
|
|
1071
|
+
),
|
|
1072
|
+
).annotate({
|
|
1073
|
+
identifier: "JwtWriteRoleRequest3",
|
|
1074
|
+
}) as any as S.Schema<JwtWriteRoleRequest3>;
|
|
1075
|
+
|
|
1076
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
1077
|
+
export type JwtWriteRoleRequestBoundAudiencesList4 = Array<string>;
|
|
1078
|
+
export const JwtWriteRoleRequestBoundAudiencesList4 = /*@__PURE__*/ S.Array(
|
|
1079
|
+
S.String,
|
|
1080
|
+
) as any as S.Schema<JwtWriteRoleRequestBoundAudiencesList4>;
|
|
1081
|
+
|
|
1082
|
+
export interface JwtWriteRoleRequest4 {
|
|
1083
|
+
/** Path that the backend was mounted at */
|
|
1084
|
+
oidc_mount_path: string;
|
|
1085
|
+
/** Name of the role. */
|
|
1086
|
+
name: string;
|
|
1087
|
+
/** Comma-separated list of 'aud' claims that are valid for login; any match is sufficient */
|
|
1088
|
+
bound_audiences?: JwtWriteRoleRequestBoundAudiencesList4;
|
|
1089
|
+
/** 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" } */
|
|
1090
|
+
cel_program?: unknown;
|
|
1091
|
+
/** 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. */
|
|
1092
|
+
clock_skew_leeway?: number;
|
|
1093
|
+
/** 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. */
|
|
1094
|
+
expiration_leeway?: number;
|
|
1095
|
+
/** Static error message if validation fails */
|
|
1096
|
+
message?: string;
|
|
1097
|
+
/** 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. */
|
|
1098
|
+
not_before_leeway?: number;
|
|
1099
|
+
}
|
|
1100
|
+
export const JwtWriteRoleRequest4 = /*@__PURE__*/ S.suspend(() =>
|
|
1101
|
+
S.Struct({
|
|
1102
|
+
oidc_mount_path: S.String.pipe(T.Label()),
|
|
1103
|
+
name: S.String.pipe(T.Label()),
|
|
1104
|
+
bound_audiences: S.optional(JwtWriteRoleRequestBoundAudiencesList4),
|
|
1105
|
+
cel_program: S.optional(S.Unknown),
|
|
1106
|
+
clock_skew_leeway: S.optional(S.Number),
|
|
1107
|
+
expiration_leeway: S.optional(S.Number),
|
|
1108
|
+
message: S.optional(S.String),
|
|
1109
|
+
not_before_leeway: S.optional(S.Number),
|
|
1110
|
+
}).pipe(
|
|
1111
|
+
T.Http({
|
|
1112
|
+
method: "POST",
|
|
1113
|
+
uri: "/auth/{oidc_mount_path}/role/{name}",
|
|
1114
|
+
code: 200,
|
|
1115
|
+
}),
|
|
1116
|
+
),
|
|
1117
|
+
).annotate({
|
|
1118
|
+
identifier: "JwtWriteRoleRequest4",
|
|
1119
|
+
}) as any as S.Schema<JwtWriteRoleRequest4>;
|
|
1120
|
+
|
|
1121
|
+
export interface JwtWriteRole4Response {}
|
|
1122
|
+
export const JwtWriteRole4Response = /*@__PURE__*/ S.suspend(() =>
|
|
1123
|
+
S.Struct({}),
|
|
1124
|
+
).annotate({
|
|
1125
|
+
identifier: "JwtWriteRole4Response",
|
|
1126
|
+
}) as any as S.Schema<JwtWriteRole4Response>;
|
|
1127
|
+
|
|
1128
|
+
export interface LoginJwtRequest {
|
|
1129
|
+
/** Path that the backend was mounted at */
|
|
1130
|
+
jwt_mount_path: string;
|
|
1131
|
+
/** The signed JWT to validate. */
|
|
1132
|
+
jwt?: string;
|
|
1133
|
+
/** The CEL role to log in against. */
|
|
1134
|
+
role?: string;
|
|
1135
|
+
}
|
|
1136
|
+
export const LoginJwtRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1137
|
+
S.Struct({
|
|
1138
|
+
jwt_mount_path: S.String.pipe(T.Label()),
|
|
1139
|
+
jwt: S.optional(S.String),
|
|
1140
|
+
role: S.optional(S.String),
|
|
1141
|
+
}).pipe(
|
|
1142
|
+
T.Http({
|
|
1143
|
+
method: "POST",
|
|
1144
|
+
uri: "/auth/{jwt_mount_path}/cel/login",
|
|
1145
|
+
code: 200,
|
|
1146
|
+
}),
|
|
1147
|
+
),
|
|
1148
|
+
).annotate({
|
|
1149
|
+
identifier: "LoginJwtRequest",
|
|
1150
|
+
}) as any as S.Schema<LoginJwtRequest>;
|
|
1151
|
+
|
|
1152
|
+
export interface LoginJwtResponse {}
|
|
1153
|
+
export const LoginJwtResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1154
|
+
S.Struct({}),
|
|
1155
|
+
).annotate({
|
|
1156
|
+
identifier: "LoginJwtResponse",
|
|
1157
|
+
}) as any as S.Schema<LoginJwtResponse>;
|
|
1158
|
+
|
|
1159
|
+
export interface LoginJwtRequest2 {
|
|
1160
|
+
/** Path that the backend was mounted at */
|
|
1161
|
+
jwt_mount_path: string;
|
|
1162
|
+
/** The signed JWT to validate. */
|
|
1163
|
+
jwt?: string;
|
|
1164
|
+
/** The CEL role to log in against. */
|
|
1165
|
+
role?: string;
|
|
1166
|
+
}
|
|
1167
|
+
export const LoginJwtRequest2 = /*@__PURE__*/ S.suspend(() =>
|
|
1168
|
+
S.Struct({
|
|
1169
|
+
jwt_mount_path: S.String.pipe(T.Label()),
|
|
1170
|
+
jwt: S.optional(S.String),
|
|
1171
|
+
role: S.optional(S.String),
|
|
1172
|
+
}).pipe(
|
|
1173
|
+
T.Http({ method: "POST", uri: "/auth/{jwt_mount_path}/login", code: 200 }),
|
|
1174
|
+
),
|
|
1175
|
+
).annotate({
|
|
1176
|
+
identifier: "LoginJwtRequest2",
|
|
1177
|
+
}) as any as S.Schema<LoginJwtRequest2>;
|
|
1178
|
+
|
|
1179
|
+
export interface LoginJwt2Response {}
|
|
1180
|
+
export const LoginJwt2Response = /*@__PURE__*/ S.suspend(() =>
|
|
1181
|
+
S.Struct({}),
|
|
1182
|
+
).annotate({
|
|
1183
|
+
identifier: "LoginJwt2Response",
|
|
1184
|
+
}) as any as S.Schema<LoginJwt2Response>;
|
|
1185
|
+
|
|
1186
|
+
export interface LoginJwtRequest3 {
|
|
1187
|
+
/** Path that the backend was mounted at */
|
|
1188
|
+
oidc_mount_path: string;
|
|
1189
|
+
/** The signed JWT to validate. */
|
|
1190
|
+
jwt?: string;
|
|
1191
|
+
/** The CEL role to log in against. */
|
|
1192
|
+
role?: string;
|
|
1193
|
+
}
|
|
1194
|
+
export const LoginJwtRequest3 = /*@__PURE__*/ S.suspend(() =>
|
|
1195
|
+
S.Struct({
|
|
1196
|
+
oidc_mount_path: S.String.pipe(T.Label()),
|
|
1197
|
+
jwt: S.optional(S.String),
|
|
1198
|
+
role: S.optional(S.String),
|
|
1199
|
+
}).pipe(
|
|
1200
|
+
T.Http({
|
|
1201
|
+
method: "POST",
|
|
1202
|
+
uri: "/auth/{oidc_mount_path}/cel/login",
|
|
1203
|
+
code: 200,
|
|
1204
|
+
}),
|
|
1205
|
+
),
|
|
1206
|
+
).annotate({
|
|
1207
|
+
identifier: "LoginJwtRequest3",
|
|
1208
|
+
}) as any as S.Schema<LoginJwtRequest3>;
|
|
1209
|
+
|
|
1210
|
+
export interface LoginJwt3Response {}
|
|
1211
|
+
export const LoginJwt3Response = /*@__PURE__*/ S.suspend(() =>
|
|
1212
|
+
S.Struct({}),
|
|
1213
|
+
).annotate({
|
|
1214
|
+
identifier: "LoginJwt3Response",
|
|
1215
|
+
}) as any as S.Schema<LoginJwt3Response>;
|
|
1216
|
+
|
|
1217
|
+
export interface LoginJwtRequest4 {
|
|
1218
|
+
/** Path that the backend was mounted at */
|
|
1219
|
+
oidc_mount_path: string;
|
|
1220
|
+
/** The signed JWT to validate. */
|
|
1221
|
+
jwt?: string;
|
|
1222
|
+
/** The CEL role to log in against. */
|
|
1223
|
+
role?: string;
|
|
1224
|
+
}
|
|
1225
|
+
export const LoginJwtRequest4 = /*@__PURE__*/ S.suspend(() =>
|
|
1226
|
+
S.Struct({
|
|
1227
|
+
oidc_mount_path: S.String.pipe(T.Label()),
|
|
1228
|
+
jwt: S.optional(S.String),
|
|
1229
|
+
role: S.optional(S.String),
|
|
1230
|
+
}).pipe(
|
|
1231
|
+
T.Http({ method: "POST", uri: "/auth/{oidc_mount_path}/login", code: 200 }),
|
|
1232
|
+
),
|
|
1233
|
+
).annotate({
|
|
1234
|
+
identifier: "LoginJwtRequest4",
|
|
1235
|
+
}) as any as S.Schema<LoginJwtRequest4>;
|
|
1236
|
+
|
|
1237
|
+
export interface LoginJwt4Response {}
|
|
1238
|
+
export const LoginJwt4Response = /*@__PURE__*/ S.suspend(() =>
|
|
1239
|
+
S.Struct({}),
|
|
1240
|
+
).annotate({
|
|
1241
|
+
identifier: "LoginJwt4Response",
|
|
1242
|
+
}) as any as S.Schema<LoginJwt4Response>;
|
|
1243
|
+
|
|
1244
|
+
export interface PollJwtWriteOidcRequest {
|
|
1245
|
+
/** Path that the backend was mounted at */
|
|
1246
|
+
jwt_mount_path: string;
|
|
1247
|
+
client_nonce?: string;
|
|
1248
|
+
state?: string;
|
|
1249
|
+
}
|
|
1250
|
+
export const PollJwtWriteOidcRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1251
|
+
S.Struct({
|
|
1252
|
+
jwt_mount_path: S.String.pipe(T.Label()),
|
|
1253
|
+
client_nonce: S.optional(S.String),
|
|
1254
|
+
state: S.optional(S.String),
|
|
1255
|
+
}).pipe(
|
|
1256
|
+
T.Http({
|
|
1257
|
+
method: "POST",
|
|
1258
|
+
uri: "/auth/{jwt_mount_path}/oidc/poll",
|
|
1259
|
+
code: 200,
|
|
1260
|
+
}),
|
|
1261
|
+
),
|
|
1262
|
+
).annotate({
|
|
1263
|
+
identifier: "PollJwtWriteOidcRequest",
|
|
1264
|
+
}) as any as S.Schema<PollJwtWriteOidcRequest>;
|
|
1265
|
+
|
|
1266
|
+
export interface PollJwtWriteOidcResponse {}
|
|
1267
|
+
export const PollJwtWriteOidcResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1268
|
+
S.Struct({}),
|
|
1269
|
+
).annotate({
|
|
1270
|
+
identifier: "PollJwtWriteOidcResponse",
|
|
1271
|
+
}) as any as S.Schema<PollJwtWriteOidcResponse>;
|
|
1272
|
+
|
|
1273
|
+
export interface PostJwtOidcCallbackFormRequest {
|
|
1274
|
+
/** Path that the backend was mounted at */
|
|
1275
|
+
jwt_mount_path: string;
|
|
1276
|
+
client_nonce?: string;
|
|
1277
|
+
code?: string;
|
|
1278
|
+
confirmation?: string;
|
|
1279
|
+
error?: string;
|
|
1280
|
+
error_description?: string;
|
|
1281
|
+
error_uri?: string;
|
|
1282
|
+
state?: string;
|
|
1283
|
+
id_token?: string;
|
|
1284
|
+
}
|
|
1285
|
+
export const PostJwtOidcCallbackFormRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1286
|
+
S.Struct({
|
|
1287
|
+
jwt_mount_path: S.String.pipe(T.Label()),
|
|
1288
|
+
client_nonce: S.optional(S.String.pipe(T.Query())),
|
|
1289
|
+
code: S.optional(S.String.pipe(T.Query())),
|
|
1290
|
+
confirmation: S.optional(S.String.pipe(T.Query())),
|
|
1291
|
+
error: S.optional(S.String.pipe(T.Query())),
|
|
1292
|
+
error_description: S.optional(S.String.pipe(T.Query())),
|
|
1293
|
+
error_uri: S.optional(S.String.pipe(T.Query())),
|
|
1294
|
+
state: S.optional(S.String.pipe(T.Query())),
|
|
1295
|
+
id_token: S.optional(S.String),
|
|
1296
|
+
}).pipe(
|
|
1297
|
+
T.Http({
|
|
1298
|
+
method: "POST",
|
|
1299
|
+
uri: "/auth/{jwt_mount_path}/oidc/callback",
|
|
1300
|
+
code: 200,
|
|
1301
|
+
}),
|
|
1302
|
+
),
|
|
1303
|
+
).annotate({
|
|
1304
|
+
identifier: "PostJwtOidcCallbackFormRequest",
|
|
1305
|
+
}) as any as S.Schema<PostJwtOidcCallbackFormRequest>;
|
|
1306
|
+
|
|
1307
|
+
export interface PostJwtOidcCallbackFormResponse {}
|
|
1308
|
+
export const PostJwtOidcCallbackFormResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1309
|
+
S.Struct({}),
|
|
1310
|
+
).annotate({
|
|
1311
|
+
identifier: "PostJwtOidcCallbackFormResponse",
|
|
1312
|
+
}) as any as S.Schema<PostJwtOidcCallbackFormResponse>;
|
|
1313
|
+
|
|
1314
|
+
export interface PostJwtOidcCallbackFormRequest2 {
|
|
1315
|
+
/** Path that the backend was mounted at */
|
|
1316
|
+
oidc_mount_path: string;
|
|
1317
|
+
client_nonce?: string;
|
|
1318
|
+
code?: string;
|
|
1319
|
+
confirmation?: string;
|
|
1320
|
+
error?: string;
|
|
1321
|
+
error_description?: string;
|
|
1322
|
+
error_uri?: string;
|
|
1323
|
+
state?: string;
|
|
1324
|
+
id_token?: string;
|
|
1325
|
+
}
|
|
1326
|
+
export const PostJwtOidcCallbackFormRequest2 = /*@__PURE__*/ S.suspend(() =>
|
|
1327
|
+
S.Struct({
|
|
1328
|
+
oidc_mount_path: S.String.pipe(T.Label()),
|
|
1329
|
+
client_nonce: S.optional(S.String.pipe(T.Query())),
|
|
1330
|
+
code: S.optional(S.String.pipe(T.Query())),
|
|
1331
|
+
confirmation: S.optional(S.String.pipe(T.Query())),
|
|
1332
|
+
error: S.optional(S.String.pipe(T.Query())),
|
|
1333
|
+
error_description: S.optional(S.String.pipe(T.Query())),
|
|
1334
|
+
error_uri: S.optional(S.String.pipe(T.Query())),
|
|
1335
|
+
state: S.optional(S.String.pipe(T.Query())),
|
|
1336
|
+
id_token: S.optional(S.String),
|
|
1337
|
+
}).pipe(
|
|
1338
|
+
T.Http({
|
|
1339
|
+
method: "POST",
|
|
1340
|
+
uri: "/auth/{oidc_mount_path}/oidc/callback",
|
|
1341
|
+
code: 200,
|
|
1342
|
+
}),
|
|
1343
|
+
),
|
|
1344
|
+
).annotate({
|
|
1345
|
+
identifier: "PostJwtOidcCallbackFormRequest2",
|
|
1346
|
+
}) as any as S.Schema<PostJwtOidcCallbackFormRequest2>;
|
|
1347
|
+
|
|
1348
|
+
export interface PostJwtOidcCallbackForm2Response {}
|
|
1349
|
+
export const PostJwtOidcCallbackForm2Response = /*@__PURE__*/ S.suspend(() =>
|
|
1350
|
+
S.Struct({}),
|
|
1351
|
+
).annotate({
|
|
1352
|
+
identifier: "PostJwtOidcCallbackForm2Response",
|
|
1353
|
+
}) as any as S.Schema<PostJwtOidcCallbackForm2Response>;
|
|
1354
|
+
|
|
1355
|
+
export type JwtConfigureError = OpenBaoOpError;
|
|
1356
|
+
/** 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. */
|
|
1357
|
+
export const jwtConfigure: API.OperationMethod<
|
|
1358
|
+
JwtConfigureRequest,
|
|
1359
|
+
JwtConfigureResponse,
|
|
1360
|
+
JwtConfigureError,
|
|
1361
|
+
OpenBaoOpContext
|
|
1362
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1363
|
+
input: JwtConfigureRequest,
|
|
1364
|
+
output: JwtConfigureResponse,
|
|
1365
|
+
errors: [],
|
|
1366
|
+
protocol: OpenBaoProtocol,
|
|
1367
|
+
retry: Retry.Retry,
|
|
1368
|
+
}));
|
|
1369
|
+
|
|
1370
|
+
export type JwtConfigure2Error = OpenBaoOpError;
|
|
1371
|
+
/** 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. */
|
|
1372
|
+
export const jwtConfigure2: API.OperationMethod<
|
|
1373
|
+
JwtConfigureRequest2,
|
|
1374
|
+
JwtConfigure2Response,
|
|
1375
|
+
JwtConfigure2Error,
|
|
1376
|
+
OpenBaoOpContext
|
|
1377
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1378
|
+
input: JwtConfigureRequest2,
|
|
1379
|
+
output: JwtConfigure2Response,
|
|
1380
|
+
errors: [],
|
|
1381
|
+
protocol: OpenBaoProtocol,
|
|
1382
|
+
retry: Retry.Retry,
|
|
1383
|
+
}));
|
|
1384
|
+
|
|
1385
|
+
export type JwtDeleteRoleError = OpenBaoOpError;
|
|
1386
|
+
export const jwtDeleteRole: API.OperationMethod<
|
|
1387
|
+
JwtDeleteRoleRequest,
|
|
1388
|
+
JwtDeleteRoleResponse,
|
|
1389
|
+
JwtDeleteRoleError,
|
|
1390
|
+
OpenBaoOpContext
|
|
1391
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1392
|
+
input: JwtDeleteRoleRequest,
|
|
1393
|
+
output: JwtDeleteRoleResponse,
|
|
1394
|
+
errors: [],
|
|
1395
|
+
protocol: OpenBaoProtocol,
|
|
1396
|
+
retry: Retry.Retry,
|
|
1397
|
+
}));
|
|
1398
|
+
|
|
1399
|
+
export type JwtDeleteRole2Error = OpenBaoOpError;
|
|
1400
|
+
/** Delete an existing role. */
|
|
1401
|
+
export const jwtDeleteRole2: API.OperationMethod<
|
|
1402
|
+
JwtDeleteRoleRequest2,
|
|
1403
|
+
JwtDeleteRole2Response,
|
|
1404
|
+
JwtDeleteRole2Error,
|
|
1405
|
+
OpenBaoOpContext
|
|
1406
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1407
|
+
input: JwtDeleteRoleRequest2,
|
|
1408
|
+
output: JwtDeleteRole2Response,
|
|
1409
|
+
errors: [],
|
|
1410
|
+
protocol: OpenBaoProtocol,
|
|
1411
|
+
retry: Retry.Retry,
|
|
1412
|
+
}));
|
|
1413
|
+
|
|
1414
|
+
export type JwtDeleteRole3Error = OpenBaoOpError;
|
|
1415
|
+
export const jwtDeleteRole3: API.OperationMethod<
|
|
1416
|
+
JwtDeleteRoleRequest3,
|
|
1417
|
+
JwtDeleteRole3Response,
|
|
1418
|
+
JwtDeleteRole3Error,
|
|
1419
|
+
OpenBaoOpContext
|
|
1420
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1421
|
+
input: JwtDeleteRoleRequest3,
|
|
1422
|
+
output: JwtDeleteRole3Response,
|
|
1423
|
+
errors: [],
|
|
1424
|
+
protocol: OpenBaoProtocol,
|
|
1425
|
+
retry: Retry.Retry,
|
|
1426
|
+
}));
|
|
1427
|
+
|
|
1428
|
+
export type JwtDeleteRole4Error = OpenBaoOpError;
|
|
1429
|
+
/** Delete an existing role. */
|
|
1430
|
+
export const jwtDeleteRole4: API.OperationMethod<
|
|
1431
|
+
JwtDeleteRoleRequest4,
|
|
1432
|
+
JwtDeleteRole4Response,
|
|
1433
|
+
JwtDeleteRole4Error,
|
|
1434
|
+
OpenBaoOpContext
|
|
1435
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1436
|
+
input: JwtDeleteRoleRequest4,
|
|
1437
|
+
output: JwtDeleteRole4Response,
|
|
1438
|
+
errors: [],
|
|
1439
|
+
protocol: OpenBaoProtocol,
|
|
1440
|
+
retry: Retry.Retry,
|
|
1441
|
+
}));
|
|
1442
|
+
|
|
1443
|
+
export type JwtListCelError = OpenBaoOpError;
|
|
1444
|
+
export const jwtListCel: API.OperationMethod<
|
|
1445
|
+
JwtListCelRequest,
|
|
1446
|
+
JwtListCelResponse,
|
|
1447
|
+
JwtListCelError,
|
|
1448
|
+
OpenBaoOpContext
|
|
1449
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1450
|
+
input: JwtListCelRequest,
|
|
1451
|
+
output: JwtListCelResponse,
|
|
1452
|
+
errors: [],
|
|
1453
|
+
protocol: OpenBaoProtocol,
|
|
1454
|
+
retry: Retry.Retry,
|
|
1455
|
+
}));
|
|
1456
|
+
|
|
1457
|
+
export type JwtListCel2Error = OpenBaoOpError;
|
|
1458
|
+
export const jwtListCel2: API.OperationMethod<
|
|
1459
|
+
JwtListCelRequest2,
|
|
1460
|
+
JwtListCelResponse,
|
|
1461
|
+
JwtListCel2Error,
|
|
1462
|
+
OpenBaoOpContext
|
|
1463
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1464
|
+
input: JwtListCelRequest2,
|
|
1465
|
+
output: JwtListCelResponse,
|
|
1466
|
+
errors: [],
|
|
1467
|
+
protocol: OpenBaoProtocol,
|
|
1468
|
+
retry: Retry.Retry,
|
|
1469
|
+
}));
|
|
1470
|
+
|
|
1471
|
+
export type JwtListRolesError = OpenBaoOpError;
|
|
1472
|
+
/** Lists all the roles registered with the backend. The list will contain the names of the roles. */
|
|
1473
|
+
export const jwtListRoles: API.OperationMethod<
|
|
1474
|
+
JwtListRolesRequest,
|
|
1475
|
+
JwtListRolesResponse,
|
|
1476
|
+
JwtListRolesError,
|
|
1477
|
+
OpenBaoOpContext
|
|
1478
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1479
|
+
input: JwtListRolesRequest,
|
|
1480
|
+
output: JwtListRolesResponse,
|
|
1481
|
+
errors: [],
|
|
1482
|
+
protocol: OpenBaoProtocol,
|
|
1483
|
+
retry: Retry.Retry,
|
|
1484
|
+
}));
|
|
1485
|
+
|
|
1486
|
+
export type JwtListRoles2Error = OpenBaoOpError;
|
|
1487
|
+
/** Lists all the roles registered with the backend. The list will contain the names of the roles. */
|
|
1488
|
+
export const jwtListRoles2: API.OperationMethod<
|
|
1489
|
+
JwtListRolesRequest2,
|
|
1490
|
+
JwtListRoles2Response,
|
|
1491
|
+
JwtListRoles2Error,
|
|
1492
|
+
OpenBaoOpContext
|
|
1493
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1494
|
+
input: JwtListRolesRequest2,
|
|
1495
|
+
output: JwtListRoles2Response,
|
|
1496
|
+
errors: [],
|
|
1497
|
+
protocol: OpenBaoProtocol,
|
|
1498
|
+
retry: Retry.Retry,
|
|
1499
|
+
}));
|
|
1500
|
+
|
|
1501
|
+
export type JwtOidcCallbackError = OpenBaoOpError;
|
|
1502
|
+
/** Callback endpoint to complete an OIDC login. */
|
|
1503
|
+
export const jwtOidcCallback: API.OperationMethod<
|
|
1504
|
+
JwtOidcCallbackRequest,
|
|
1505
|
+
JwtOidcCallbackResponse,
|
|
1506
|
+
JwtOidcCallbackError,
|
|
1507
|
+
OpenBaoOpContext
|
|
1508
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1509
|
+
input: JwtOidcCallbackRequest,
|
|
1510
|
+
output: JwtOidcCallbackResponse,
|
|
1511
|
+
errors: [],
|
|
1512
|
+
protocol: OpenBaoProtocol,
|
|
1513
|
+
retry: Retry.Retry,
|
|
1514
|
+
}));
|
|
1515
|
+
|
|
1516
|
+
export type JwtOidcCallback2Error = OpenBaoOpError;
|
|
1517
|
+
/** Callback endpoint to complete an OIDC login. */
|
|
1518
|
+
export const jwtOidcCallback2: API.OperationMethod<
|
|
1519
|
+
JwtOidcCallbackRequest2,
|
|
1520
|
+
JwtOidcCallback2Response,
|
|
1521
|
+
JwtOidcCallback2Error,
|
|
1522
|
+
OpenBaoOpContext
|
|
1523
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1524
|
+
input: JwtOidcCallbackRequest2,
|
|
1525
|
+
output: JwtOidcCallback2Response,
|
|
1526
|
+
errors: [],
|
|
1527
|
+
protocol: OpenBaoProtocol,
|
|
1528
|
+
retry: Retry.Retry,
|
|
1529
|
+
}));
|
|
1530
|
+
|
|
1531
|
+
export type JwtOidcRequestAuthorizationUrlError = OpenBaoOpError;
|
|
1532
|
+
/** Request an authorization URL to start an OIDC login flow. */
|
|
1533
|
+
export const jwtOidcRequestAuthorizationUrl: API.OperationMethod<
|
|
1534
|
+
JwtOidcRequestAuthorizationUrlRequest,
|
|
1535
|
+
JwtOidcRequestAuthorizationUrlResponse,
|
|
1536
|
+
JwtOidcRequestAuthorizationUrlError,
|
|
1537
|
+
OpenBaoOpContext
|
|
1538
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1539
|
+
input: JwtOidcRequestAuthorizationUrlRequest,
|
|
1540
|
+
output: JwtOidcRequestAuthorizationUrlResponse,
|
|
1541
|
+
errors: [],
|
|
1542
|
+
protocol: OpenBaoProtocol,
|
|
1543
|
+
retry: Retry.Retry,
|
|
1544
|
+
}));
|
|
1545
|
+
|
|
1546
|
+
export type JwtOidcRequestAuthorizationUrl2Error = OpenBaoOpError;
|
|
1547
|
+
/** Request an authorization URL to start an OIDC login flow. */
|
|
1548
|
+
export const jwtOidcRequestAuthorizationUrl2: API.OperationMethod<
|
|
1549
|
+
JwtOidcRequestAuthorizationUrlRequest2,
|
|
1550
|
+
JwtOidcRequestAuthorizationUrl2Response,
|
|
1551
|
+
JwtOidcRequestAuthorizationUrl2Error,
|
|
1552
|
+
OpenBaoOpContext
|
|
1553
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1554
|
+
input: JwtOidcRequestAuthorizationUrlRequest2,
|
|
1555
|
+
output: JwtOidcRequestAuthorizationUrl2Response,
|
|
1556
|
+
errors: [],
|
|
1557
|
+
protocol: OpenBaoProtocol,
|
|
1558
|
+
retry: Retry.Retry,
|
|
1559
|
+
}));
|
|
1560
|
+
|
|
1561
|
+
export type JwtPatchRoleError = OpenBaoOpError;
|
|
1562
|
+
export const jwtPatchRole: API.OperationMethod<
|
|
1563
|
+
JwtPatchRoleRequest,
|
|
1564
|
+
JwtPatchRoleResponse,
|
|
1565
|
+
JwtPatchRoleError,
|
|
1566
|
+
OpenBaoOpContext
|
|
1567
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1568
|
+
input: JwtPatchRoleRequest,
|
|
1569
|
+
output: JwtPatchRoleResponse,
|
|
1570
|
+
errors: [],
|
|
1571
|
+
protocol: OpenBaoProtocol,
|
|
1572
|
+
retry: Retry.Retry,
|
|
1573
|
+
}));
|
|
1574
|
+
|
|
1575
|
+
export type JwtPatchRole2Error = OpenBaoOpError;
|
|
1576
|
+
export const jwtPatchRole2: API.OperationMethod<
|
|
1577
|
+
JwtPatchRoleRequest2,
|
|
1578
|
+
JwtPatchRoleResponse,
|
|
1579
|
+
JwtPatchRole2Error,
|
|
1580
|
+
OpenBaoOpContext
|
|
1581
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1582
|
+
input: JwtPatchRoleRequest2,
|
|
1583
|
+
output: JwtPatchRoleResponse,
|
|
1584
|
+
errors: [],
|
|
1585
|
+
protocol: OpenBaoProtocol,
|
|
1586
|
+
retry: Retry.Retry,
|
|
1587
|
+
}));
|
|
1588
|
+
|
|
1589
|
+
export type JwtReadConfigurationError = OpenBaoOpError;
|
|
1590
|
+
/** Read the current JWT authentication backend configuration. */
|
|
1591
|
+
export const jwtReadConfiguration: API.OperationMethod<
|
|
1592
|
+
JwtReadConfigurationRequest,
|
|
1593
|
+
JwtReadConfigurationResponse,
|
|
1594
|
+
JwtReadConfigurationError,
|
|
1595
|
+
OpenBaoOpContext
|
|
1596
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1597
|
+
input: JwtReadConfigurationRequest,
|
|
1598
|
+
output: JwtReadConfigurationResponse,
|
|
1599
|
+
errors: [],
|
|
1600
|
+
protocol: OpenBaoProtocol,
|
|
1601
|
+
retry: Retry.Retry,
|
|
1602
|
+
}));
|
|
1603
|
+
|
|
1604
|
+
export type JwtReadConfiguration2Error = OpenBaoOpError;
|
|
1605
|
+
/** Read the current JWT authentication backend configuration. */
|
|
1606
|
+
export const jwtReadConfiguration2: API.OperationMethod<
|
|
1607
|
+
JwtReadConfigurationRequest2,
|
|
1608
|
+
JwtReadConfiguration2Response,
|
|
1609
|
+
JwtReadConfiguration2Error,
|
|
1610
|
+
OpenBaoOpContext
|
|
1611
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1612
|
+
input: JwtReadConfigurationRequest2,
|
|
1613
|
+
output: JwtReadConfiguration2Response,
|
|
1614
|
+
errors: [],
|
|
1615
|
+
protocol: OpenBaoProtocol,
|
|
1616
|
+
retry: Retry.Retry,
|
|
1617
|
+
}));
|
|
1618
|
+
|
|
1619
|
+
export type JwtReadRoleError = OpenBaoOpError;
|
|
1620
|
+
export const jwtReadRole: API.OperationMethod<
|
|
1621
|
+
JwtReadRoleRequest,
|
|
1622
|
+
JwtReadRoleResponse,
|
|
1623
|
+
JwtReadRoleError,
|
|
1624
|
+
OpenBaoOpContext
|
|
1625
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1626
|
+
input: JwtReadRoleRequest,
|
|
1627
|
+
output: JwtReadRoleResponse,
|
|
1628
|
+
errors: [],
|
|
1629
|
+
protocol: OpenBaoProtocol,
|
|
1630
|
+
retry: Retry.Retry,
|
|
1631
|
+
}));
|
|
1632
|
+
|
|
1633
|
+
export type JwtReadRole2Error = OpenBaoOpError;
|
|
1634
|
+
/** Read an existing role. */
|
|
1635
|
+
export const jwtReadRole2: API.OperationMethod<
|
|
1636
|
+
JwtReadRoleRequest2,
|
|
1637
|
+
JwtReadRole2Response,
|
|
1638
|
+
JwtReadRole2Error,
|
|
1639
|
+
OpenBaoOpContext
|
|
1640
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1641
|
+
input: JwtReadRoleRequest2,
|
|
1642
|
+
output: JwtReadRole2Response,
|
|
1643
|
+
errors: [],
|
|
1644
|
+
protocol: OpenBaoProtocol,
|
|
1645
|
+
retry: Retry.Retry,
|
|
1646
|
+
}));
|
|
1647
|
+
|
|
1648
|
+
export type JwtReadRole3Error = OpenBaoOpError;
|
|
1649
|
+
export const jwtReadRole3: API.OperationMethod<
|
|
1650
|
+
JwtReadRoleRequest3,
|
|
1651
|
+
JwtReadRoleResponse,
|
|
1652
|
+
JwtReadRole3Error,
|
|
1653
|
+
OpenBaoOpContext
|
|
1654
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1655
|
+
input: JwtReadRoleRequest3,
|
|
1656
|
+
output: JwtReadRoleResponse,
|
|
1657
|
+
errors: [],
|
|
1658
|
+
protocol: OpenBaoProtocol,
|
|
1659
|
+
retry: Retry.Retry,
|
|
1660
|
+
}));
|
|
1661
|
+
|
|
1662
|
+
export type JwtReadRole4Error = OpenBaoOpError;
|
|
1663
|
+
/** Read an existing role. */
|
|
1664
|
+
export const jwtReadRole4: API.OperationMethod<
|
|
1665
|
+
JwtReadRoleRequest4,
|
|
1666
|
+
JwtReadRole4Response,
|
|
1667
|
+
JwtReadRole4Error,
|
|
1668
|
+
OpenBaoOpContext
|
|
1669
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1670
|
+
input: JwtReadRoleRequest4,
|
|
1671
|
+
output: JwtReadRole4Response,
|
|
1672
|
+
errors: [],
|
|
1673
|
+
protocol: OpenBaoProtocol,
|
|
1674
|
+
retry: Retry.Retry,
|
|
1675
|
+
}));
|
|
1676
|
+
|
|
1677
|
+
export type JwtWriteRoleError = OpenBaoOpError;
|
|
1678
|
+
export const jwtWriteRole: API.OperationMethod<
|
|
1679
|
+
JwtWriteRoleRequest,
|
|
1680
|
+
JwtWriteRoleResponse,
|
|
1681
|
+
JwtWriteRoleError,
|
|
1682
|
+
OpenBaoOpContext
|
|
1683
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1684
|
+
input: JwtWriteRoleRequest,
|
|
1685
|
+
output: JwtWriteRoleResponse,
|
|
1686
|
+
errors: [],
|
|
1687
|
+
protocol: OpenBaoProtocol,
|
|
1688
|
+
retry: Retry.Retry,
|
|
1689
|
+
}));
|
|
1690
|
+
|
|
1691
|
+
export type JwtWriteRole2Error = OpenBaoOpError;
|
|
1692
|
+
/** 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 */
|
|
1693
|
+
export const jwtWriteRole2: API.OperationMethod<
|
|
1694
|
+
JwtWriteRoleRequest2,
|
|
1695
|
+
JwtWriteRole2Response,
|
|
1696
|
+
JwtWriteRole2Error,
|
|
1697
|
+
OpenBaoOpContext
|
|
1698
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1699
|
+
input: JwtWriteRoleRequest2,
|
|
1700
|
+
output: JwtWriteRole2Response,
|
|
1701
|
+
errors: [],
|
|
1702
|
+
protocol: OpenBaoProtocol,
|
|
1703
|
+
retry: Retry.Retry,
|
|
1704
|
+
}));
|
|
1705
|
+
|
|
1706
|
+
export type JwtWriteRole3Error = OpenBaoOpError;
|
|
1707
|
+
export const jwtWriteRole3: API.OperationMethod<
|
|
1708
|
+
JwtWriteRoleRequest3,
|
|
1709
|
+
JwtWriteRoleResponse,
|
|
1710
|
+
JwtWriteRole3Error,
|
|
1711
|
+
OpenBaoOpContext
|
|
1712
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1713
|
+
input: JwtWriteRoleRequest3,
|
|
1714
|
+
output: JwtWriteRoleResponse,
|
|
1715
|
+
errors: [],
|
|
1716
|
+
protocol: OpenBaoProtocol,
|
|
1717
|
+
retry: Retry.Retry,
|
|
1718
|
+
}));
|
|
1719
|
+
|
|
1720
|
+
export type JwtWriteRole4Error = OpenBaoOpError;
|
|
1721
|
+
/** 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 */
|
|
1722
|
+
export const jwtWriteRole4: API.OperationMethod<
|
|
1723
|
+
JwtWriteRoleRequest4,
|
|
1724
|
+
JwtWriteRole4Response,
|
|
1725
|
+
JwtWriteRole4Error,
|
|
1726
|
+
OpenBaoOpContext
|
|
1727
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1728
|
+
input: JwtWriteRoleRequest4,
|
|
1729
|
+
output: JwtWriteRole4Response,
|
|
1730
|
+
errors: [],
|
|
1731
|
+
protocol: OpenBaoProtocol,
|
|
1732
|
+
retry: Retry.Retry,
|
|
1733
|
+
}));
|
|
1734
|
+
|
|
1735
|
+
export type LoginJwtError = OpenBaoOpError;
|
|
1736
|
+
/** Authenticates to OpenBao using a JWT (or OIDC) token against a CEL role. */
|
|
1737
|
+
export const loginJwt: API.OperationMethod<
|
|
1738
|
+
LoginJwtRequest,
|
|
1739
|
+
LoginJwtResponse,
|
|
1740
|
+
LoginJwtError,
|
|
1741
|
+
OpenBaoOpContext
|
|
1742
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1743
|
+
input: LoginJwtRequest,
|
|
1744
|
+
output: LoginJwtResponse,
|
|
1745
|
+
errors: [],
|
|
1746
|
+
protocol: OpenBaoProtocol,
|
|
1747
|
+
retry: Retry.Retry,
|
|
1748
|
+
}));
|
|
1749
|
+
|
|
1750
|
+
export type LoginJwt2Error = OpenBaoOpError;
|
|
1751
|
+
/** Authenticates to OpenBao using a JWT (or OIDC) token. */
|
|
1752
|
+
export const loginJwt2: API.OperationMethod<
|
|
1753
|
+
LoginJwtRequest2,
|
|
1754
|
+
LoginJwt2Response,
|
|
1755
|
+
LoginJwt2Error,
|
|
1756
|
+
OpenBaoOpContext
|
|
1757
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1758
|
+
input: LoginJwtRequest2,
|
|
1759
|
+
output: LoginJwt2Response,
|
|
1760
|
+
errors: [],
|
|
1761
|
+
protocol: OpenBaoProtocol,
|
|
1762
|
+
retry: Retry.Retry,
|
|
1763
|
+
}));
|
|
1764
|
+
|
|
1765
|
+
export type LoginJwt3Error = OpenBaoOpError;
|
|
1766
|
+
/** Authenticates to OpenBao using a JWT (or OIDC) token against a CEL role. */
|
|
1767
|
+
export const loginJwt3: API.OperationMethod<
|
|
1768
|
+
LoginJwtRequest3,
|
|
1769
|
+
LoginJwt3Response,
|
|
1770
|
+
LoginJwt3Error,
|
|
1771
|
+
OpenBaoOpContext
|
|
1772
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1773
|
+
input: LoginJwtRequest3,
|
|
1774
|
+
output: LoginJwt3Response,
|
|
1775
|
+
errors: [],
|
|
1776
|
+
protocol: OpenBaoProtocol,
|
|
1777
|
+
retry: Retry.Retry,
|
|
1778
|
+
}));
|
|
1779
|
+
|
|
1780
|
+
export type LoginJwt4Error = OpenBaoOpError;
|
|
1781
|
+
/** Authenticates to OpenBao using a JWT (or OIDC) token. */
|
|
1782
|
+
export const loginJwt4: API.OperationMethod<
|
|
1783
|
+
LoginJwtRequest4,
|
|
1784
|
+
LoginJwt4Response,
|
|
1785
|
+
LoginJwt4Error,
|
|
1786
|
+
OpenBaoOpContext
|
|
1787
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1788
|
+
input: LoginJwtRequest4,
|
|
1789
|
+
output: LoginJwt4Response,
|
|
1790
|
+
errors: [],
|
|
1791
|
+
protocol: OpenBaoProtocol,
|
|
1792
|
+
retry: Retry.Retry,
|
|
1793
|
+
}));
|
|
1794
|
+
|
|
1795
|
+
export type PollJwtWriteOidcError = OpenBaoOpError;
|
|
1796
|
+
/** Poll endpoint to complete an OIDC login. */
|
|
1797
|
+
export const pollJwtWriteOidc: API.OperationMethod<
|
|
1798
|
+
PollJwtWriteOidcRequest,
|
|
1799
|
+
PollJwtWriteOidcResponse,
|
|
1800
|
+
PollJwtWriteOidcError,
|
|
1801
|
+
OpenBaoOpContext
|
|
1802
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1803
|
+
input: PollJwtWriteOidcRequest,
|
|
1804
|
+
output: PollJwtWriteOidcResponse,
|
|
1805
|
+
errors: [],
|
|
1806
|
+
protocol: OpenBaoProtocol,
|
|
1807
|
+
retry: Retry.Retry,
|
|
1808
|
+
}));
|
|
1809
|
+
|
|
1810
|
+
export type PostJwtOidcCallbackFormError = OpenBaoOpError;
|
|
1811
|
+
/** Callback endpoint to handle form_posts. */
|
|
1812
|
+
export const postJwtOidcCallbackForm: API.OperationMethod<
|
|
1813
|
+
PostJwtOidcCallbackFormRequest,
|
|
1814
|
+
PostJwtOidcCallbackFormResponse,
|
|
1815
|
+
PostJwtOidcCallbackFormError,
|
|
1816
|
+
OpenBaoOpContext
|
|
1817
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1818
|
+
input: PostJwtOidcCallbackFormRequest,
|
|
1819
|
+
output: PostJwtOidcCallbackFormResponse,
|
|
1820
|
+
errors: [],
|
|
1821
|
+
protocol: OpenBaoProtocol,
|
|
1822
|
+
retry: Retry.Retry,
|
|
1823
|
+
}));
|
|
1824
|
+
|
|
1825
|
+
export type PostJwtOidcCallbackForm2Error = OpenBaoOpError;
|
|
1826
|
+
/** Callback endpoint to handle form_posts. */
|
|
1827
|
+
export const postJwtOidcCallbackForm2: API.OperationMethod<
|
|
1828
|
+
PostJwtOidcCallbackFormRequest2,
|
|
1829
|
+
PostJwtOidcCallbackForm2Response,
|
|
1830
|
+
PostJwtOidcCallbackForm2Error,
|
|
1831
|
+
OpenBaoOpContext
|
|
1832
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1833
|
+
input: PostJwtOidcCallbackFormRequest2,
|
|
1834
|
+
output: PostJwtOidcCallbackForm2Response,
|
|
1835
|
+
errors: [],
|
|
1836
|
+
protocol: OpenBaoProtocol,
|
|
1837
|
+
retry: Retry.Retry,
|
|
1838
|
+
}));
|