@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,1613 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-openbao, generated — see fetch-specs.ts). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.ts";
|
|
5
|
+
import {
|
|
6
|
+
OpenBaoProtocol,
|
|
7
|
+
type OpenBaoOpError,
|
|
8
|
+
type OpenBaoOpContext,
|
|
9
|
+
} from "../protocol.ts";
|
|
10
|
+
import * as Retry from "../retry.ts";
|
|
11
|
+
|
|
12
|
+
export type { OpenBaoOpError, OpenBaoOpContext };
|
|
13
|
+
|
|
14
|
+
export interface AuthorizeOidcProviderRequest {
|
|
15
|
+
/** Name of the provider */
|
|
16
|
+
name: string;
|
|
17
|
+
}
|
|
18
|
+
export const AuthorizeOidcProviderRequest = /*@__PURE__*/ S.suspend(() =>
|
|
19
|
+
S.Struct({
|
|
20
|
+
name: S.String.pipe(T.Label()),
|
|
21
|
+
}).pipe(
|
|
22
|
+
T.Http({
|
|
23
|
+
method: "GET",
|
|
24
|
+
uri: "/identity/oidc/provider/{name}/authorize",
|
|
25
|
+
code: 200,
|
|
26
|
+
}),
|
|
27
|
+
),
|
|
28
|
+
).annotate({
|
|
29
|
+
identifier: "AuthorizeOidcProviderRequest",
|
|
30
|
+
}) as any as S.Schema<AuthorizeOidcProviderRequest>;
|
|
31
|
+
|
|
32
|
+
export interface AuthorizeOidcProviderResponse {}
|
|
33
|
+
export const AuthorizeOidcProviderResponse = /*@__PURE__*/ S.suspend(() =>
|
|
34
|
+
S.Struct({}),
|
|
35
|
+
).annotate({
|
|
36
|
+
identifier: "AuthorizeOidcProviderResponse",
|
|
37
|
+
}) as any as S.Schema<AuthorizeOidcProviderResponse>;
|
|
38
|
+
|
|
39
|
+
export interface OidcConfigureRequest {
|
|
40
|
+
/** Issuer URL to be used in the iss claim of the token. If not set, OpenBao's app_addr will be used. */
|
|
41
|
+
issuer?: string;
|
|
42
|
+
}
|
|
43
|
+
export const OidcConfigureRequest = /*@__PURE__*/ S.suspend(() =>
|
|
44
|
+
S.Struct({
|
|
45
|
+
issuer: S.optional(S.String),
|
|
46
|
+
}).pipe(T.Http({ method: "POST", uri: "/identity/oidc/config", code: 200 })),
|
|
47
|
+
).annotate({
|
|
48
|
+
identifier: "OidcConfigureRequest",
|
|
49
|
+
}) as any as S.Schema<OidcConfigureRequest>;
|
|
50
|
+
|
|
51
|
+
export interface OidcConfigureResponse {}
|
|
52
|
+
export const OidcConfigureResponse = /*@__PURE__*/ S.suspend(() =>
|
|
53
|
+
S.Struct({}),
|
|
54
|
+
).annotate({
|
|
55
|
+
identifier: "OidcConfigureResponse",
|
|
56
|
+
}) as any as S.Schema<OidcConfigureResponse>;
|
|
57
|
+
|
|
58
|
+
export interface OidcDeleteAssignmentRequest {
|
|
59
|
+
/** Name of the assignment */
|
|
60
|
+
name: string;
|
|
61
|
+
}
|
|
62
|
+
export const OidcDeleteAssignmentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
63
|
+
S.Struct({
|
|
64
|
+
name: S.String.pipe(T.Label()),
|
|
65
|
+
}).pipe(
|
|
66
|
+
T.Http({
|
|
67
|
+
method: "DELETE",
|
|
68
|
+
uri: "/identity/oidc/assignment/{name}",
|
|
69
|
+
code: 200,
|
|
70
|
+
}),
|
|
71
|
+
),
|
|
72
|
+
).annotate({
|
|
73
|
+
identifier: "OidcDeleteAssignmentRequest",
|
|
74
|
+
}) as any as S.Schema<OidcDeleteAssignmentRequest>;
|
|
75
|
+
|
|
76
|
+
export interface OidcDeleteAssignmentResponse {}
|
|
77
|
+
export const OidcDeleteAssignmentResponse = /*@__PURE__*/ S.suspend(() =>
|
|
78
|
+
S.Struct({}),
|
|
79
|
+
).annotate({
|
|
80
|
+
identifier: "OidcDeleteAssignmentResponse",
|
|
81
|
+
}) as any as S.Schema<OidcDeleteAssignmentResponse>;
|
|
82
|
+
|
|
83
|
+
export interface OidcDeleteClientRequest {
|
|
84
|
+
/** Name of the client. */
|
|
85
|
+
name: string;
|
|
86
|
+
}
|
|
87
|
+
export const OidcDeleteClientRequest = /*@__PURE__*/ S.suspend(() =>
|
|
88
|
+
S.Struct({
|
|
89
|
+
name: S.String.pipe(T.Label()),
|
|
90
|
+
}).pipe(
|
|
91
|
+
T.Http({
|
|
92
|
+
method: "DELETE",
|
|
93
|
+
uri: "/identity/oidc/client/{name}",
|
|
94
|
+
code: 200,
|
|
95
|
+
}),
|
|
96
|
+
),
|
|
97
|
+
).annotate({
|
|
98
|
+
identifier: "OidcDeleteClientRequest",
|
|
99
|
+
}) as any as S.Schema<OidcDeleteClientRequest>;
|
|
100
|
+
|
|
101
|
+
export interface OidcDeleteClientResponse {}
|
|
102
|
+
export const OidcDeleteClientResponse = /*@__PURE__*/ S.suspend(() =>
|
|
103
|
+
S.Struct({}),
|
|
104
|
+
).annotate({
|
|
105
|
+
identifier: "OidcDeleteClientResponse",
|
|
106
|
+
}) as any as S.Schema<OidcDeleteClientResponse>;
|
|
107
|
+
|
|
108
|
+
export interface OidcDeleteKeyRequest {
|
|
109
|
+
/** Name of the key */
|
|
110
|
+
name: string;
|
|
111
|
+
}
|
|
112
|
+
export const OidcDeleteKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
113
|
+
S.Struct({
|
|
114
|
+
name: S.String.pipe(T.Label()),
|
|
115
|
+
}).pipe(
|
|
116
|
+
T.Http({ method: "DELETE", uri: "/identity/oidc/key/{name}", code: 200 }),
|
|
117
|
+
),
|
|
118
|
+
).annotate({
|
|
119
|
+
identifier: "OidcDeleteKeyRequest",
|
|
120
|
+
}) as any as S.Schema<OidcDeleteKeyRequest>;
|
|
121
|
+
|
|
122
|
+
export interface OidcDeleteKeyResponse {}
|
|
123
|
+
export const OidcDeleteKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
124
|
+
S.Struct({}),
|
|
125
|
+
).annotate({
|
|
126
|
+
identifier: "OidcDeleteKeyResponse",
|
|
127
|
+
}) as any as S.Schema<OidcDeleteKeyResponse>;
|
|
128
|
+
|
|
129
|
+
export interface OidcDeleteProviderRequest {
|
|
130
|
+
/** Name of the provider */
|
|
131
|
+
name: string;
|
|
132
|
+
}
|
|
133
|
+
export const OidcDeleteProviderRequest = /*@__PURE__*/ S.suspend(() =>
|
|
134
|
+
S.Struct({
|
|
135
|
+
name: S.String.pipe(T.Label()),
|
|
136
|
+
}).pipe(
|
|
137
|
+
T.Http({
|
|
138
|
+
method: "DELETE",
|
|
139
|
+
uri: "/identity/oidc/provider/{name}",
|
|
140
|
+
code: 200,
|
|
141
|
+
}),
|
|
142
|
+
),
|
|
143
|
+
).annotate({
|
|
144
|
+
identifier: "OidcDeleteProviderRequest",
|
|
145
|
+
}) as any as S.Schema<OidcDeleteProviderRequest>;
|
|
146
|
+
|
|
147
|
+
export interface OidcDeleteProviderResponse {}
|
|
148
|
+
export const OidcDeleteProviderResponse = /*@__PURE__*/ S.suspend(() =>
|
|
149
|
+
S.Struct({}),
|
|
150
|
+
).annotate({
|
|
151
|
+
identifier: "OidcDeleteProviderResponse",
|
|
152
|
+
}) as any as S.Schema<OidcDeleteProviderResponse>;
|
|
153
|
+
|
|
154
|
+
export interface OidcDeleteRoleRequest {
|
|
155
|
+
/** Name of the role */
|
|
156
|
+
name: string;
|
|
157
|
+
}
|
|
158
|
+
export const OidcDeleteRoleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
159
|
+
S.Struct({
|
|
160
|
+
name: S.String.pipe(T.Label()),
|
|
161
|
+
}).pipe(
|
|
162
|
+
T.Http({ method: "DELETE", uri: "/identity/oidc/role/{name}", code: 200 }),
|
|
163
|
+
),
|
|
164
|
+
).annotate({
|
|
165
|
+
identifier: "OidcDeleteRoleRequest",
|
|
166
|
+
}) as any as S.Schema<OidcDeleteRoleRequest>;
|
|
167
|
+
|
|
168
|
+
export interface OidcDeleteRoleResponse {}
|
|
169
|
+
export const OidcDeleteRoleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
170
|
+
S.Struct({}),
|
|
171
|
+
).annotate({
|
|
172
|
+
identifier: "OidcDeleteRoleResponse",
|
|
173
|
+
}) as any as S.Schema<OidcDeleteRoleResponse>;
|
|
174
|
+
|
|
175
|
+
export interface OidcDeleteScopeRequest {
|
|
176
|
+
/** Name of the scope */
|
|
177
|
+
name: string;
|
|
178
|
+
}
|
|
179
|
+
export const OidcDeleteScopeRequest = /*@__PURE__*/ S.suspend(() =>
|
|
180
|
+
S.Struct({
|
|
181
|
+
name: S.String.pipe(T.Label()),
|
|
182
|
+
}).pipe(
|
|
183
|
+
T.Http({ method: "DELETE", uri: "/identity/oidc/scope/{name}", code: 200 }),
|
|
184
|
+
),
|
|
185
|
+
).annotate({
|
|
186
|
+
identifier: "OidcDeleteScopeRequest",
|
|
187
|
+
}) as any as S.Schema<OidcDeleteScopeRequest>;
|
|
188
|
+
|
|
189
|
+
export interface OidcDeleteScopeResponse {}
|
|
190
|
+
export const OidcDeleteScopeResponse = /*@__PURE__*/ S.suspend(() =>
|
|
191
|
+
S.Struct({}),
|
|
192
|
+
).annotate({
|
|
193
|
+
identifier: "OidcDeleteScopeResponse",
|
|
194
|
+
}) as any as S.Schema<OidcDeleteScopeResponse>;
|
|
195
|
+
|
|
196
|
+
export interface OidcGenerateTokenRequest {
|
|
197
|
+
/** Name of the role */
|
|
198
|
+
name: string;
|
|
199
|
+
}
|
|
200
|
+
export const OidcGenerateTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
201
|
+
S.Struct({
|
|
202
|
+
name: S.String.pipe(T.Label()),
|
|
203
|
+
}).pipe(
|
|
204
|
+
T.Http({ method: "GET", uri: "/identity/oidc/token/{name}", code: 200 }),
|
|
205
|
+
),
|
|
206
|
+
).annotate({
|
|
207
|
+
identifier: "OidcGenerateTokenRequest",
|
|
208
|
+
}) as any as S.Schema<OidcGenerateTokenRequest>;
|
|
209
|
+
|
|
210
|
+
export interface OidcGenerateTokenResponse {}
|
|
211
|
+
export const OidcGenerateTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
212
|
+
S.Struct({}),
|
|
213
|
+
).annotate({
|
|
214
|
+
identifier: "OidcGenerateTokenResponse",
|
|
215
|
+
}) as any as S.Schema<OidcGenerateTokenResponse>;
|
|
216
|
+
|
|
217
|
+
export interface OidcIntrospectRequest {
|
|
218
|
+
/** Optional client_id to verify */
|
|
219
|
+
client_id?: string;
|
|
220
|
+
/** Token to verify */
|
|
221
|
+
token?: string;
|
|
222
|
+
}
|
|
223
|
+
export const OidcIntrospectRequest = /*@__PURE__*/ S.suspend(() =>
|
|
224
|
+
S.Struct({
|
|
225
|
+
client_id: S.optional(S.String),
|
|
226
|
+
token: S.optional(S.String),
|
|
227
|
+
}).pipe(
|
|
228
|
+
T.Http({ method: "POST", uri: "/identity/oidc/introspect", code: 200 }),
|
|
229
|
+
),
|
|
230
|
+
).annotate({
|
|
231
|
+
identifier: "OidcIntrospectRequest",
|
|
232
|
+
}) as any as S.Schema<OidcIntrospectRequest>;
|
|
233
|
+
|
|
234
|
+
export interface OidcIntrospectResponse {}
|
|
235
|
+
export const OidcIntrospectResponse = /*@__PURE__*/ S.suspend(() =>
|
|
236
|
+
S.Struct({}),
|
|
237
|
+
).annotate({
|
|
238
|
+
identifier: "OidcIntrospectResponse",
|
|
239
|
+
}) as any as S.Schema<OidcIntrospectResponse>;
|
|
240
|
+
|
|
241
|
+
export type OidcListAssignmentsRequestList = "true";
|
|
242
|
+
export const OidcListAssignmentsRequestList = S.String;
|
|
243
|
+
|
|
244
|
+
export interface OidcListAssignmentsRequest {
|
|
245
|
+
/** Must be set to `true` */
|
|
246
|
+
list: OidcListAssignmentsRequestList | (string & {});
|
|
247
|
+
}
|
|
248
|
+
export const OidcListAssignmentsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
249
|
+
S.Struct({
|
|
250
|
+
list: OidcListAssignmentsRequestList.pipe(T.Query()),
|
|
251
|
+
}).pipe(
|
|
252
|
+
T.Http({ method: "GET", uri: "/identity/oidc/assignment", code: 200 }),
|
|
253
|
+
),
|
|
254
|
+
).annotate({
|
|
255
|
+
identifier: "OidcListAssignmentsRequest",
|
|
256
|
+
}) as any as S.Schema<OidcListAssignmentsRequest>;
|
|
257
|
+
|
|
258
|
+
export interface OidcListAssignmentsResponse {}
|
|
259
|
+
export const OidcListAssignmentsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
260
|
+
S.Struct({}),
|
|
261
|
+
).annotate({
|
|
262
|
+
identifier: "OidcListAssignmentsResponse",
|
|
263
|
+
}) as any as S.Schema<OidcListAssignmentsResponse>;
|
|
264
|
+
|
|
265
|
+
export type OidcListClientsRequestList = "true";
|
|
266
|
+
export const OidcListClientsRequestList = S.String;
|
|
267
|
+
|
|
268
|
+
export interface OidcListClientsRequest {
|
|
269
|
+
/** Must be set to `true` */
|
|
270
|
+
list: OidcListClientsRequestList | (string & {});
|
|
271
|
+
}
|
|
272
|
+
export const OidcListClientsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
273
|
+
S.Struct({
|
|
274
|
+
list: OidcListClientsRequestList.pipe(T.Query()),
|
|
275
|
+
}).pipe(T.Http({ method: "GET", uri: "/identity/oidc/client", code: 200 })),
|
|
276
|
+
).annotate({
|
|
277
|
+
identifier: "OidcListClientsRequest",
|
|
278
|
+
}) as any as S.Schema<OidcListClientsRequest>;
|
|
279
|
+
|
|
280
|
+
export interface OidcListClientsResponse {}
|
|
281
|
+
export const OidcListClientsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
282
|
+
S.Struct({}),
|
|
283
|
+
).annotate({
|
|
284
|
+
identifier: "OidcListClientsResponse",
|
|
285
|
+
}) as any as S.Schema<OidcListClientsResponse>;
|
|
286
|
+
|
|
287
|
+
export type OidcListKeysRequestList = "true";
|
|
288
|
+
export const OidcListKeysRequestList = S.String;
|
|
289
|
+
|
|
290
|
+
export interface OidcListKeysRequest {
|
|
291
|
+
/** Must be set to `true` */
|
|
292
|
+
list: OidcListKeysRequestList | (string & {});
|
|
293
|
+
}
|
|
294
|
+
export const OidcListKeysRequest = /*@__PURE__*/ S.suspend(() =>
|
|
295
|
+
S.Struct({
|
|
296
|
+
list: OidcListKeysRequestList.pipe(T.Query()),
|
|
297
|
+
}).pipe(T.Http({ method: "GET", uri: "/identity/oidc/key", code: 200 })),
|
|
298
|
+
).annotate({
|
|
299
|
+
identifier: "OidcListKeysRequest",
|
|
300
|
+
}) as any as S.Schema<OidcListKeysRequest>;
|
|
301
|
+
|
|
302
|
+
export interface OidcListKeysResponse {}
|
|
303
|
+
export const OidcListKeysResponse = /*@__PURE__*/ S.suspend(() =>
|
|
304
|
+
S.Struct({}),
|
|
305
|
+
).annotate({
|
|
306
|
+
identifier: "OidcListKeysResponse",
|
|
307
|
+
}) as any as S.Schema<OidcListKeysResponse>;
|
|
308
|
+
|
|
309
|
+
export type OidcListProvidersRequestList = "true";
|
|
310
|
+
export const OidcListProvidersRequestList = S.String;
|
|
311
|
+
|
|
312
|
+
export interface OidcListProvidersRequest {
|
|
313
|
+
/** Filters the list of OIDC providers to those that allow the given client ID in their set of allowed_client_ids. */
|
|
314
|
+
allowed_client_id?: string;
|
|
315
|
+
/** Must be set to `true` */
|
|
316
|
+
list: OidcListProvidersRequestList | (string & {});
|
|
317
|
+
}
|
|
318
|
+
export const OidcListProvidersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
319
|
+
S.Struct({
|
|
320
|
+
allowed_client_id: S.optional(S.String.pipe(T.Query())),
|
|
321
|
+
list: OidcListProvidersRequestList.pipe(T.Query()),
|
|
322
|
+
}).pipe(T.Http({ method: "GET", uri: "/identity/oidc/provider", code: 200 })),
|
|
323
|
+
).annotate({
|
|
324
|
+
identifier: "OidcListProvidersRequest",
|
|
325
|
+
}) as any as S.Schema<OidcListProvidersRequest>;
|
|
326
|
+
|
|
327
|
+
export interface OidcListProvidersResponse {}
|
|
328
|
+
export const OidcListProvidersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
329
|
+
S.Struct({}),
|
|
330
|
+
).annotate({
|
|
331
|
+
identifier: "OidcListProvidersResponse",
|
|
332
|
+
}) as any as S.Schema<OidcListProvidersResponse>;
|
|
333
|
+
|
|
334
|
+
export type OidcListRolesRequestList = "true";
|
|
335
|
+
export const OidcListRolesRequestList = S.String;
|
|
336
|
+
|
|
337
|
+
export interface OidcListRolesRequest {
|
|
338
|
+
/** Must be set to `true` */
|
|
339
|
+
list: OidcListRolesRequestList | (string & {});
|
|
340
|
+
}
|
|
341
|
+
export const OidcListRolesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
342
|
+
S.Struct({
|
|
343
|
+
list: OidcListRolesRequestList.pipe(T.Query()),
|
|
344
|
+
}).pipe(T.Http({ method: "GET", uri: "/identity/oidc/role", code: 200 })),
|
|
345
|
+
).annotate({
|
|
346
|
+
identifier: "OidcListRolesRequest",
|
|
347
|
+
}) as any as S.Schema<OidcListRolesRequest>;
|
|
348
|
+
|
|
349
|
+
export interface OidcListRolesResponse {}
|
|
350
|
+
export const OidcListRolesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
351
|
+
S.Struct({}),
|
|
352
|
+
).annotate({
|
|
353
|
+
identifier: "OidcListRolesResponse",
|
|
354
|
+
}) as any as S.Schema<OidcListRolesResponse>;
|
|
355
|
+
|
|
356
|
+
export type OidcListScopesRequestList = "true";
|
|
357
|
+
export const OidcListScopesRequestList = S.String;
|
|
358
|
+
|
|
359
|
+
export interface OidcListScopesRequest {
|
|
360
|
+
/** Must be set to `true` */
|
|
361
|
+
list: OidcListScopesRequestList | (string & {});
|
|
362
|
+
}
|
|
363
|
+
export const OidcListScopesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
364
|
+
S.Struct({
|
|
365
|
+
list: OidcListScopesRequestList.pipe(T.Query()),
|
|
366
|
+
}).pipe(T.Http({ method: "GET", uri: "/identity/oidc/scope", code: 200 })),
|
|
367
|
+
).annotate({
|
|
368
|
+
identifier: "OidcListScopesRequest",
|
|
369
|
+
}) as any as S.Schema<OidcListScopesRequest>;
|
|
370
|
+
|
|
371
|
+
export interface OidcListScopesResponse {}
|
|
372
|
+
export const OidcListScopesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
373
|
+
S.Struct({}),
|
|
374
|
+
).annotate({
|
|
375
|
+
identifier: "OidcListScopesResponse",
|
|
376
|
+
}) as any as S.Schema<OidcListScopesResponse>;
|
|
377
|
+
|
|
378
|
+
export interface OidcProviderAuthorizeWithParametersRequest {
|
|
379
|
+
/** Name of the provider */
|
|
380
|
+
name: string;
|
|
381
|
+
/** The ID of the requesting client. */
|
|
382
|
+
client_id: string;
|
|
383
|
+
/** The code challenge derived from the code verifier. */
|
|
384
|
+
code_challenge?: string;
|
|
385
|
+
/** The method that was used to derive the code challenge. The following methods are supported: 'S256', 'plain'. Defaults to 'plain'. */
|
|
386
|
+
code_challenge_method?: string;
|
|
387
|
+
/** The allowable elapsed time in seconds since the last time the end-user was actively authenticated. */
|
|
388
|
+
max_age?: number;
|
|
389
|
+
/** The value that will be returned in the ID token nonce claim after a token exchange. */
|
|
390
|
+
nonce?: string;
|
|
391
|
+
/** The redirection URI to which the response will be sent. */
|
|
392
|
+
redirect_uri: string;
|
|
393
|
+
/** The OIDC authentication flow to be used. The following response types are supported: 'code' */
|
|
394
|
+
response_type: string;
|
|
395
|
+
/** A space-delimited, case-sensitive list of scopes to be requested. The 'openid' scope is required. */
|
|
396
|
+
scope: string;
|
|
397
|
+
/** The value used to maintain state between the authentication request and client. */
|
|
398
|
+
state?: string;
|
|
399
|
+
}
|
|
400
|
+
export const OidcProviderAuthorizeWithParametersRequest =
|
|
401
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
402
|
+
S.Struct({
|
|
403
|
+
name: S.String.pipe(T.Label()),
|
|
404
|
+
client_id: S.String,
|
|
405
|
+
code_challenge: S.optional(S.String),
|
|
406
|
+
code_challenge_method: S.optional(S.String),
|
|
407
|
+
max_age: S.optional(S.Number),
|
|
408
|
+
nonce: S.optional(S.String),
|
|
409
|
+
redirect_uri: S.String,
|
|
410
|
+
response_type: S.String,
|
|
411
|
+
scope: S.String,
|
|
412
|
+
state: S.optional(S.String),
|
|
413
|
+
}).pipe(
|
|
414
|
+
T.Http({
|
|
415
|
+
method: "POST",
|
|
416
|
+
uri: "/identity/oidc/provider/{name}/authorize",
|
|
417
|
+
code: 200,
|
|
418
|
+
}),
|
|
419
|
+
),
|
|
420
|
+
).annotate({
|
|
421
|
+
identifier: "OidcProviderAuthorizeWithParametersRequest",
|
|
422
|
+
}) as any as S.Schema<OidcProviderAuthorizeWithParametersRequest>;
|
|
423
|
+
|
|
424
|
+
export interface OidcProviderAuthorizeWithParametersResponse {}
|
|
425
|
+
export const OidcProviderAuthorizeWithParametersResponse =
|
|
426
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
427
|
+
identifier: "OidcProviderAuthorizeWithParametersResponse",
|
|
428
|
+
}) as any as S.Schema<OidcProviderAuthorizeWithParametersResponse>;
|
|
429
|
+
|
|
430
|
+
export interface OidcProviderTokenRequest {
|
|
431
|
+
/** Name of the provider */
|
|
432
|
+
name: string;
|
|
433
|
+
/** The ID of the requesting client. */
|
|
434
|
+
client_id?: string;
|
|
435
|
+
/** The secret of the requesting client. */
|
|
436
|
+
client_secret?: string;
|
|
437
|
+
/** The authorization code received from the provider's authorization endpoint. */
|
|
438
|
+
code: string;
|
|
439
|
+
/** The code verifier associated with the authorization code. */
|
|
440
|
+
code_verifier?: string;
|
|
441
|
+
/** The authorization grant type. The following grant types are supported: 'authorization_code','client_credentials'. */
|
|
442
|
+
grant_type: string;
|
|
443
|
+
/** The callback location where the authentication response was sent. */
|
|
444
|
+
redirect_uri: string;
|
|
445
|
+
/** A space-delimited, case-sensitive list of scopes to be requested. The 'openid' scope is required. This is used when using in with 'client_credentials' flow */
|
|
446
|
+
scope: string;
|
|
447
|
+
}
|
|
448
|
+
export const OidcProviderTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
449
|
+
S.Struct({
|
|
450
|
+
name: S.String.pipe(T.Label()),
|
|
451
|
+
client_id: S.optional(S.String),
|
|
452
|
+
client_secret: S.optional(S.String),
|
|
453
|
+
code: S.String,
|
|
454
|
+
code_verifier: S.optional(S.String),
|
|
455
|
+
grant_type: S.String,
|
|
456
|
+
redirect_uri: S.String,
|
|
457
|
+
scope: S.String,
|
|
458
|
+
}).pipe(
|
|
459
|
+
T.Http({
|
|
460
|
+
method: "POST",
|
|
461
|
+
uri: "/identity/oidc/provider/{name}/token",
|
|
462
|
+
code: 200,
|
|
463
|
+
}),
|
|
464
|
+
),
|
|
465
|
+
).annotate({
|
|
466
|
+
identifier: "OidcProviderTokenRequest",
|
|
467
|
+
}) as any as S.Schema<OidcProviderTokenRequest>;
|
|
468
|
+
|
|
469
|
+
export interface OidcProviderTokenResponse {}
|
|
470
|
+
export const OidcProviderTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
471
|
+
S.Struct({}),
|
|
472
|
+
).annotate({
|
|
473
|
+
identifier: "OidcProviderTokenResponse",
|
|
474
|
+
}) as any as S.Schema<OidcProviderTokenResponse>;
|
|
475
|
+
|
|
476
|
+
export interface OidcProviderUserInfoRequest {
|
|
477
|
+
/** Name of the provider */
|
|
478
|
+
name: string;
|
|
479
|
+
}
|
|
480
|
+
export const OidcProviderUserInfoRequest = /*@__PURE__*/ S.suspend(() =>
|
|
481
|
+
S.Struct({
|
|
482
|
+
name: S.String.pipe(T.Label()),
|
|
483
|
+
}).pipe(
|
|
484
|
+
T.Http({
|
|
485
|
+
method: "GET",
|
|
486
|
+
uri: "/identity/oidc/provider/{name}/userinfo",
|
|
487
|
+
code: 200,
|
|
488
|
+
}),
|
|
489
|
+
),
|
|
490
|
+
).annotate({
|
|
491
|
+
identifier: "OidcProviderUserInfoRequest",
|
|
492
|
+
}) as any as S.Schema<OidcProviderUserInfoRequest>;
|
|
493
|
+
|
|
494
|
+
export interface OidcProviderUserInfoResponse {}
|
|
495
|
+
export const OidcProviderUserInfoResponse = /*@__PURE__*/ S.suspend(() =>
|
|
496
|
+
S.Struct({}),
|
|
497
|
+
).annotate({
|
|
498
|
+
identifier: "OidcProviderUserInfoResponse",
|
|
499
|
+
}) as any as S.Schema<OidcProviderUserInfoResponse>;
|
|
500
|
+
|
|
501
|
+
export interface OidcProviderUserInfo2Request {
|
|
502
|
+
/** Name of the provider */
|
|
503
|
+
name: string;
|
|
504
|
+
}
|
|
505
|
+
export const OidcProviderUserInfo2Request = /*@__PURE__*/ S.suspend(() =>
|
|
506
|
+
S.Struct({
|
|
507
|
+
name: S.String.pipe(T.Label()),
|
|
508
|
+
}).pipe(
|
|
509
|
+
T.Http({
|
|
510
|
+
method: "POST",
|
|
511
|
+
uri: "/identity/oidc/provider/{name}/userinfo",
|
|
512
|
+
code: 200,
|
|
513
|
+
}),
|
|
514
|
+
),
|
|
515
|
+
).annotate({
|
|
516
|
+
identifier: "OidcProviderUserInfo2Request",
|
|
517
|
+
}) as any as S.Schema<OidcProviderUserInfo2Request>;
|
|
518
|
+
|
|
519
|
+
export interface OidcProviderUserInfo2Response {}
|
|
520
|
+
export const OidcProviderUserInfo2Response = /*@__PURE__*/ S.suspend(() =>
|
|
521
|
+
S.Struct({}),
|
|
522
|
+
).annotate({
|
|
523
|
+
identifier: "OidcProviderUserInfo2Response",
|
|
524
|
+
}) as any as S.Schema<OidcProviderUserInfo2Response>;
|
|
525
|
+
|
|
526
|
+
export interface OidcReadAssignmentRequest {
|
|
527
|
+
/** Name of the assignment */
|
|
528
|
+
name: string;
|
|
529
|
+
}
|
|
530
|
+
export const OidcReadAssignmentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
531
|
+
S.Struct({
|
|
532
|
+
name: S.String.pipe(T.Label()),
|
|
533
|
+
}).pipe(
|
|
534
|
+
T.Http({
|
|
535
|
+
method: "GET",
|
|
536
|
+
uri: "/identity/oidc/assignment/{name}",
|
|
537
|
+
code: 200,
|
|
538
|
+
}),
|
|
539
|
+
),
|
|
540
|
+
).annotate({
|
|
541
|
+
identifier: "OidcReadAssignmentRequest",
|
|
542
|
+
}) as any as S.Schema<OidcReadAssignmentRequest>;
|
|
543
|
+
|
|
544
|
+
export interface OidcReadAssignmentResponse {}
|
|
545
|
+
export const OidcReadAssignmentResponse = /*@__PURE__*/ S.suspend(() =>
|
|
546
|
+
S.Struct({}),
|
|
547
|
+
).annotate({
|
|
548
|
+
identifier: "OidcReadAssignmentResponse",
|
|
549
|
+
}) as any as S.Schema<OidcReadAssignmentResponse>;
|
|
550
|
+
|
|
551
|
+
export interface OidcReadClientRequest {
|
|
552
|
+
/** Name of the client. */
|
|
553
|
+
name: string;
|
|
554
|
+
}
|
|
555
|
+
export const OidcReadClientRequest = /*@__PURE__*/ S.suspend(() =>
|
|
556
|
+
S.Struct({
|
|
557
|
+
name: S.String.pipe(T.Label()),
|
|
558
|
+
}).pipe(
|
|
559
|
+
T.Http({ method: "GET", uri: "/identity/oidc/client/{name}", code: 200 }),
|
|
560
|
+
),
|
|
561
|
+
).annotate({
|
|
562
|
+
identifier: "OidcReadClientRequest",
|
|
563
|
+
}) as any as S.Schema<OidcReadClientRequest>;
|
|
564
|
+
|
|
565
|
+
export interface OidcReadClientResponse {}
|
|
566
|
+
export const OidcReadClientResponse = /*@__PURE__*/ S.suspend(() =>
|
|
567
|
+
S.Struct({}),
|
|
568
|
+
).annotate({
|
|
569
|
+
identifier: "OidcReadClientResponse",
|
|
570
|
+
}) as any as S.Schema<OidcReadClientResponse>;
|
|
571
|
+
|
|
572
|
+
export interface OidcReadConfigurationRequest {}
|
|
573
|
+
export const OidcReadConfigurationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
574
|
+
S.Struct({}).pipe(
|
|
575
|
+
T.Http({ method: "GET", uri: "/identity/oidc/config", code: 200 }),
|
|
576
|
+
),
|
|
577
|
+
).annotate({
|
|
578
|
+
identifier: "OidcReadConfigurationRequest",
|
|
579
|
+
}) as any as S.Schema<OidcReadConfigurationRequest>;
|
|
580
|
+
|
|
581
|
+
export interface OidcReadConfigurationResponse {}
|
|
582
|
+
export const OidcReadConfigurationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
583
|
+
S.Struct({}),
|
|
584
|
+
).annotate({
|
|
585
|
+
identifier: "OidcReadConfigurationResponse",
|
|
586
|
+
}) as any as S.Schema<OidcReadConfigurationResponse>;
|
|
587
|
+
|
|
588
|
+
export interface OidcReadKeyRequest {
|
|
589
|
+
/** Name of the key */
|
|
590
|
+
name: string;
|
|
591
|
+
}
|
|
592
|
+
export const OidcReadKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
593
|
+
S.Struct({
|
|
594
|
+
name: S.String.pipe(T.Label()),
|
|
595
|
+
}).pipe(
|
|
596
|
+
T.Http({ method: "GET", uri: "/identity/oidc/key/{name}", code: 200 }),
|
|
597
|
+
),
|
|
598
|
+
).annotate({
|
|
599
|
+
identifier: "OidcReadKeyRequest",
|
|
600
|
+
}) as any as S.Schema<OidcReadKeyRequest>;
|
|
601
|
+
|
|
602
|
+
export interface OidcReadKeyResponse {}
|
|
603
|
+
export const OidcReadKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
604
|
+
S.Struct({}),
|
|
605
|
+
).annotate({
|
|
606
|
+
identifier: "OidcReadKeyResponse",
|
|
607
|
+
}) as any as S.Schema<OidcReadKeyResponse>;
|
|
608
|
+
|
|
609
|
+
export interface OidcReadOpenIdConfigurationRequest {}
|
|
610
|
+
export const OidcReadOpenIdConfigurationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
611
|
+
S.Struct({}).pipe(
|
|
612
|
+
T.Http({
|
|
613
|
+
method: "GET",
|
|
614
|
+
uri: "/identity/oidc/.well-known/openid-configuration",
|
|
615
|
+
code: 200,
|
|
616
|
+
}),
|
|
617
|
+
),
|
|
618
|
+
).annotate({
|
|
619
|
+
identifier: "OidcReadOpenIdConfigurationRequest",
|
|
620
|
+
}) as any as S.Schema<OidcReadOpenIdConfigurationRequest>;
|
|
621
|
+
|
|
622
|
+
export interface OidcReadOpenIdConfigurationResponse {}
|
|
623
|
+
export const OidcReadOpenIdConfigurationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
624
|
+
S.Struct({}),
|
|
625
|
+
).annotate({
|
|
626
|
+
identifier: "OidcReadOpenIdConfigurationResponse",
|
|
627
|
+
}) as any as S.Schema<OidcReadOpenIdConfigurationResponse>;
|
|
628
|
+
|
|
629
|
+
export interface OidcReadProviderRequest {
|
|
630
|
+
/** Name of the provider */
|
|
631
|
+
name: string;
|
|
632
|
+
}
|
|
633
|
+
export const OidcReadProviderRequest = /*@__PURE__*/ S.suspend(() =>
|
|
634
|
+
S.Struct({
|
|
635
|
+
name: S.String.pipe(T.Label()),
|
|
636
|
+
}).pipe(
|
|
637
|
+
T.Http({ method: "GET", uri: "/identity/oidc/provider/{name}", code: 200 }),
|
|
638
|
+
),
|
|
639
|
+
).annotate({
|
|
640
|
+
identifier: "OidcReadProviderRequest",
|
|
641
|
+
}) as any as S.Schema<OidcReadProviderRequest>;
|
|
642
|
+
|
|
643
|
+
export interface OidcReadProviderResponse {}
|
|
644
|
+
export const OidcReadProviderResponse = /*@__PURE__*/ S.suspend(() =>
|
|
645
|
+
S.Struct({}),
|
|
646
|
+
).annotate({
|
|
647
|
+
identifier: "OidcReadProviderResponse",
|
|
648
|
+
}) as any as S.Schema<OidcReadProviderResponse>;
|
|
649
|
+
|
|
650
|
+
export interface OidcReadProviderOpenIdConfigurationRequest {
|
|
651
|
+
/** Name of the provider */
|
|
652
|
+
name: string;
|
|
653
|
+
}
|
|
654
|
+
export const OidcReadProviderOpenIdConfigurationRequest =
|
|
655
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
656
|
+
S.Struct({
|
|
657
|
+
name: S.String.pipe(T.Label()),
|
|
658
|
+
}).pipe(
|
|
659
|
+
T.Http({
|
|
660
|
+
method: "GET",
|
|
661
|
+
uri: "/identity/oidc/provider/{name}/.well-known/openid-configuration",
|
|
662
|
+
code: 200,
|
|
663
|
+
}),
|
|
664
|
+
),
|
|
665
|
+
).annotate({
|
|
666
|
+
identifier: "OidcReadProviderOpenIdConfigurationRequest",
|
|
667
|
+
}) as any as S.Schema<OidcReadProviderOpenIdConfigurationRequest>;
|
|
668
|
+
|
|
669
|
+
export interface OidcReadProviderOpenIdConfigurationResponse {}
|
|
670
|
+
export const OidcReadProviderOpenIdConfigurationResponse =
|
|
671
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
672
|
+
identifier: "OidcReadProviderOpenIdConfigurationResponse",
|
|
673
|
+
}) as any as S.Schema<OidcReadProviderOpenIdConfigurationResponse>;
|
|
674
|
+
|
|
675
|
+
export interface OidcReadProviderPublicKeysRequest {
|
|
676
|
+
/** Name of the provider */
|
|
677
|
+
name: string;
|
|
678
|
+
}
|
|
679
|
+
export const OidcReadProviderPublicKeysRequest = /*@__PURE__*/ S.suspend(() =>
|
|
680
|
+
S.Struct({
|
|
681
|
+
name: S.String.pipe(T.Label()),
|
|
682
|
+
}).pipe(
|
|
683
|
+
T.Http({
|
|
684
|
+
method: "GET",
|
|
685
|
+
uri: "/identity/oidc/provider/{name}/.well-known/keys",
|
|
686
|
+
code: 200,
|
|
687
|
+
}),
|
|
688
|
+
),
|
|
689
|
+
).annotate({
|
|
690
|
+
identifier: "OidcReadProviderPublicKeysRequest",
|
|
691
|
+
}) as any as S.Schema<OidcReadProviderPublicKeysRequest>;
|
|
692
|
+
|
|
693
|
+
export interface OidcReadProviderPublicKeysResponse {}
|
|
694
|
+
export const OidcReadProviderPublicKeysResponse = /*@__PURE__*/ S.suspend(() =>
|
|
695
|
+
S.Struct({}),
|
|
696
|
+
).annotate({
|
|
697
|
+
identifier: "OidcReadProviderPublicKeysResponse",
|
|
698
|
+
}) as any as S.Schema<OidcReadProviderPublicKeysResponse>;
|
|
699
|
+
|
|
700
|
+
export interface OidcReadPublicKeysRequest {}
|
|
701
|
+
export const OidcReadPublicKeysRequest = /*@__PURE__*/ S.suspend(() =>
|
|
702
|
+
S.Struct({}).pipe(
|
|
703
|
+
T.Http({
|
|
704
|
+
method: "GET",
|
|
705
|
+
uri: "/identity/oidc/.well-known/keys",
|
|
706
|
+
code: 200,
|
|
707
|
+
}),
|
|
708
|
+
),
|
|
709
|
+
).annotate({
|
|
710
|
+
identifier: "OidcReadPublicKeysRequest",
|
|
711
|
+
}) as any as S.Schema<OidcReadPublicKeysRequest>;
|
|
712
|
+
|
|
713
|
+
export interface OidcReadPublicKeysResponse {}
|
|
714
|
+
export const OidcReadPublicKeysResponse = /*@__PURE__*/ S.suspend(() =>
|
|
715
|
+
S.Struct({}),
|
|
716
|
+
).annotate({
|
|
717
|
+
identifier: "OidcReadPublicKeysResponse",
|
|
718
|
+
}) as any as S.Schema<OidcReadPublicKeysResponse>;
|
|
719
|
+
|
|
720
|
+
export interface OidcReadRoleRequest {
|
|
721
|
+
/** Name of the role */
|
|
722
|
+
name: string;
|
|
723
|
+
}
|
|
724
|
+
export const OidcReadRoleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
725
|
+
S.Struct({
|
|
726
|
+
name: S.String.pipe(T.Label()),
|
|
727
|
+
}).pipe(
|
|
728
|
+
T.Http({ method: "GET", uri: "/identity/oidc/role/{name}", code: 200 }),
|
|
729
|
+
),
|
|
730
|
+
).annotate({
|
|
731
|
+
identifier: "OidcReadRoleRequest",
|
|
732
|
+
}) as any as S.Schema<OidcReadRoleRequest>;
|
|
733
|
+
|
|
734
|
+
export interface OidcReadRoleResponse {}
|
|
735
|
+
export const OidcReadRoleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
736
|
+
S.Struct({}),
|
|
737
|
+
).annotate({
|
|
738
|
+
identifier: "OidcReadRoleResponse",
|
|
739
|
+
}) as any as S.Schema<OidcReadRoleResponse>;
|
|
740
|
+
|
|
741
|
+
export interface OidcReadScopeRequest {
|
|
742
|
+
/** Name of the scope */
|
|
743
|
+
name: string;
|
|
744
|
+
}
|
|
745
|
+
export const OidcReadScopeRequest = /*@__PURE__*/ S.suspend(() =>
|
|
746
|
+
S.Struct({
|
|
747
|
+
name: S.String.pipe(T.Label()),
|
|
748
|
+
}).pipe(
|
|
749
|
+
T.Http({ method: "GET", uri: "/identity/oidc/scope/{name}", code: 200 }),
|
|
750
|
+
),
|
|
751
|
+
).annotate({
|
|
752
|
+
identifier: "OidcReadScopeRequest",
|
|
753
|
+
}) as any as S.Schema<OidcReadScopeRequest>;
|
|
754
|
+
|
|
755
|
+
export interface OidcReadScopeResponse {}
|
|
756
|
+
export const OidcReadScopeResponse = /*@__PURE__*/ S.suspend(() =>
|
|
757
|
+
S.Struct({}),
|
|
758
|
+
).annotate({
|
|
759
|
+
identifier: "OidcReadScopeResponse",
|
|
760
|
+
}) as any as S.Schema<OidcReadScopeResponse>;
|
|
761
|
+
|
|
762
|
+
export interface OidcRotateKeyRequest {
|
|
763
|
+
/** Name of the key */
|
|
764
|
+
name: string;
|
|
765
|
+
/** Controls how long the public portion of a key will be available for verification after being rotated. Setting verification_ttl here will override the verification_ttl set on the key. */
|
|
766
|
+
verification_ttl?: number;
|
|
767
|
+
}
|
|
768
|
+
export const OidcRotateKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
769
|
+
S.Struct({
|
|
770
|
+
name: S.String.pipe(T.Label()),
|
|
771
|
+
verification_ttl: S.optional(S.Number),
|
|
772
|
+
}).pipe(
|
|
773
|
+
T.Http({
|
|
774
|
+
method: "POST",
|
|
775
|
+
uri: "/identity/oidc/key/{name}/rotate",
|
|
776
|
+
code: 200,
|
|
777
|
+
}),
|
|
778
|
+
),
|
|
779
|
+
).annotate({
|
|
780
|
+
identifier: "OidcRotateKeyRequest",
|
|
781
|
+
}) as any as S.Schema<OidcRotateKeyRequest>;
|
|
782
|
+
|
|
783
|
+
export interface OidcRotateKeyResponse {}
|
|
784
|
+
export const OidcRotateKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
785
|
+
S.Struct({}),
|
|
786
|
+
).annotate({
|
|
787
|
+
identifier: "OidcRotateKeyResponse",
|
|
788
|
+
}) as any as S.Schema<OidcRotateKeyResponse>;
|
|
789
|
+
|
|
790
|
+
/** Comma separated string or array of identity entity IDs */
|
|
791
|
+
export type OidcWriteAssignmentRequestEntityIdsList = Array<string>;
|
|
792
|
+
export const OidcWriteAssignmentRequestEntityIdsList = /*@__PURE__*/ S.Array(
|
|
793
|
+
S.String,
|
|
794
|
+
) as any as S.Schema<OidcWriteAssignmentRequestEntityIdsList>;
|
|
795
|
+
|
|
796
|
+
/** Comma separated string or array of identity group IDs */
|
|
797
|
+
export type OidcWriteAssignmentRequestGroupIdsList = Array<string>;
|
|
798
|
+
export const OidcWriteAssignmentRequestGroupIdsList = /*@__PURE__*/ S.Array(
|
|
799
|
+
S.String,
|
|
800
|
+
) as any as S.Schema<OidcWriteAssignmentRequestGroupIdsList>;
|
|
801
|
+
|
|
802
|
+
export interface OidcWriteAssignmentRequest {
|
|
803
|
+
/** Name of the assignment */
|
|
804
|
+
name: string;
|
|
805
|
+
/** Comma separated string or array of identity entity IDs */
|
|
806
|
+
entity_ids?: OidcWriteAssignmentRequestEntityIdsList;
|
|
807
|
+
/** Comma separated string or array of identity group IDs */
|
|
808
|
+
group_ids?: OidcWriteAssignmentRequestGroupIdsList;
|
|
809
|
+
}
|
|
810
|
+
export const OidcWriteAssignmentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
811
|
+
S.Struct({
|
|
812
|
+
name: S.String.pipe(T.Label()),
|
|
813
|
+
entity_ids: S.optional(OidcWriteAssignmentRequestEntityIdsList),
|
|
814
|
+
group_ids: S.optional(OidcWriteAssignmentRequestGroupIdsList),
|
|
815
|
+
}).pipe(
|
|
816
|
+
T.Http({
|
|
817
|
+
method: "POST",
|
|
818
|
+
uri: "/identity/oidc/assignment/{name}",
|
|
819
|
+
code: 200,
|
|
820
|
+
}),
|
|
821
|
+
),
|
|
822
|
+
).annotate({
|
|
823
|
+
identifier: "OidcWriteAssignmentRequest",
|
|
824
|
+
}) as any as S.Schema<OidcWriteAssignmentRequest>;
|
|
825
|
+
|
|
826
|
+
export interface OidcWriteAssignmentResponse {}
|
|
827
|
+
export const OidcWriteAssignmentResponse = /*@__PURE__*/ S.suspend(() =>
|
|
828
|
+
S.Struct({}),
|
|
829
|
+
).annotate({
|
|
830
|
+
identifier: "OidcWriteAssignmentResponse",
|
|
831
|
+
}) as any as S.Schema<OidcWriteAssignmentResponse>;
|
|
832
|
+
|
|
833
|
+
/** Comma separated string or array of assignment resources. */
|
|
834
|
+
export type OidcWriteClientRequestAssignmentsList = Array<string>;
|
|
835
|
+
export const OidcWriteClientRequestAssignmentsList = /*@__PURE__*/ S.Array(
|
|
836
|
+
S.String,
|
|
837
|
+
) as any as S.Schema<OidcWriteClientRequestAssignmentsList>;
|
|
838
|
+
|
|
839
|
+
/** Comma separated string or array of redirect URIs used by the client. One of these values must exactly match the redirect_uri parameter value used in each authentication request. */
|
|
840
|
+
export type OidcWriteClientRequestRedirectUrisList = Array<string>;
|
|
841
|
+
export const OidcWriteClientRequestRedirectUrisList = /*@__PURE__*/ S.Array(
|
|
842
|
+
S.String,
|
|
843
|
+
) as any as S.Schema<OidcWriteClientRequestRedirectUrisList>;
|
|
844
|
+
|
|
845
|
+
export interface OidcWriteClientRequest {
|
|
846
|
+
/** Name of the client. */
|
|
847
|
+
name: string;
|
|
848
|
+
/** The time-to-live for access tokens obtained by the client. */
|
|
849
|
+
access_token_ttl?: number;
|
|
850
|
+
/** Comma separated string or array of assignment resources. */
|
|
851
|
+
assignments?: OidcWriteClientRequestAssignmentsList;
|
|
852
|
+
/** Whether or not to authorization code flow is allowed in this provider */
|
|
853
|
+
authorization_code?: boolean;
|
|
854
|
+
/** Whether or not to client credentials flow is allowed in this provider */
|
|
855
|
+
client_credentials?: boolean;
|
|
856
|
+
/** The client type based on its ability to maintain confidentiality of credentials. The following client types are supported: 'confidential', 'public'. Defaults to 'confidential'. */
|
|
857
|
+
client_type?: string;
|
|
858
|
+
/** The time-to-live for ID tokens obtained by the client. */
|
|
859
|
+
id_token_ttl?: number;
|
|
860
|
+
/** A reference to a named key resource. Cannot be modified after creation. Defaults to the 'default' key. */
|
|
861
|
+
key?: string;
|
|
862
|
+
/** Comma separated string or array of redirect URIs used by the client. One of these values must exactly match the redirect_uri parameter value used in each authentication request. */
|
|
863
|
+
redirect_uris?: OidcWriteClientRequestRedirectUrisList;
|
|
864
|
+
}
|
|
865
|
+
export const OidcWriteClientRequest = /*@__PURE__*/ S.suspend(() =>
|
|
866
|
+
S.Struct({
|
|
867
|
+
name: S.String.pipe(T.Label()),
|
|
868
|
+
access_token_ttl: S.optional(S.Number),
|
|
869
|
+
assignments: S.optional(OidcWriteClientRequestAssignmentsList),
|
|
870
|
+
authorization_code: S.optional(S.Boolean),
|
|
871
|
+
client_credentials: S.optional(S.Boolean),
|
|
872
|
+
client_type: S.optional(S.String),
|
|
873
|
+
id_token_ttl: S.optional(S.Number),
|
|
874
|
+
key: S.optional(S.String),
|
|
875
|
+
redirect_uris: S.optional(OidcWriteClientRequestRedirectUrisList),
|
|
876
|
+
}).pipe(
|
|
877
|
+
T.Http({ method: "POST", uri: "/identity/oidc/client/{name}", code: 200 }),
|
|
878
|
+
),
|
|
879
|
+
).annotate({
|
|
880
|
+
identifier: "OidcWriteClientRequest",
|
|
881
|
+
}) as any as S.Schema<OidcWriteClientRequest>;
|
|
882
|
+
|
|
883
|
+
export interface OidcWriteClientResponse {}
|
|
884
|
+
export const OidcWriteClientResponse = /*@__PURE__*/ S.suspend(() =>
|
|
885
|
+
S.Struct({}),
|
|
886
|
+
).annotate({
|
|
887
|
+
identifier: "OidcWriteClientResponse",
|
|
888
|
+
}) as any as S.Schema<OidcWriteClientResponse>;
|
|
889
|
+
|
|
890
|
+
/** Comma separated string or array of role client ids allowed to use this key for signing. If empty no roles are allowed. If "*" all roles are allowed. */
|
|
891
|
+
export type OidcWriteKeyRequestAllowedClientIdsList = Array<string>;
|
|
892
|
+
export const OidcWriteKeyRequestAllowedClientIdsList = /*@__PURE__*/ S.Array(
|
|
893
|
+
S.String,
|
|
894
|
+
) as any as S.Schema<OidcWriteKeyRequestAllowedClientIdsList>;
|
|
895
|
+
|
|
896
|
+
export interface OidcWriteKeyRequest {
|
|
897
|
+
/** Name of the key */
|
|
898
|
+
name: string;
|
|
899
|
+
/** Signing algorithm to use. This will default to RS256. */
|
|
900
|
+
algorithm?: string;
|
|
901
|
+
/** Comma separated string or array of role client ids allowed to use this key for signing. If empty no roles are allowed. If "*" all roles are allowed. */
|
|
902
|
+
allowed_client_ids?: OidcWriteKeyRequestAllowedClientIdsList;
|
|
903
|
+
/** How often to generate a new keypair. */
|
|
904
|
+
rotation_period?: number;
|
|
905
|
+
/** Controls how long the public portion of a key will be available for verification after being rotated. */
|
|
906
|
+
verification_ttl?: number;
|
|
907
|
+
}
|
|
908
|
+
export const OidcWriteKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
909
|
+
S.Struct({
|
|
910
|
+
name: S.String.pipe(T.Label()),
|
|
911
|
+
algorithm: S.optional(S.String),
|
|
912
|
+
allowed_client_ids: S.optional(OidcWriteKeyRequestAllowedClientIdsList),
|
|
913
|
+
rotation_period: S.optional(S.Number),
|
|
914
|
+
verification_ttl: S.optional(S.Number),
|
|
915
|
+
}).pipe(
|
|
916
|
+
T.Http({ method: "POST", uri: "/identity/oidc/key/{name}", code: 200 }),
|
|
917
|
+
),
|
|
918
|
+
).annotate({
|
|
919
|
+
identifier: "OidcWriteKeyRequest",
|
|
920
|
+
}) as any as S.Schema<OidcWriteKeyRequest>;
|
|
921
|
+
|
|
922
|
+
export interface OidcWriteKeyResponse {}
|
|
923
|
+
export const OidcWriteKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
924
|
+
S.Struct({}),
|
|
925
|
+
).annotate({
|
|
926
|
+
identifier: "OidcWriteKeyResponse",
|
|
927
|
+
}) as any as S.Schema<OidcWriteKeyResponse>;
|
|
928
|
+
|
|
929
|
+
/** The client IDs that are permitted to use the provider */
|
|
930
|
+
export type OidcWriteProviderRequestAllowedClientIdsList = Array<string>;
|
|
931
|
+
export const OidcWriteProviderRequestAllowedClientIdsList =
|
|
932
|
+
/*@__PURE__*/ S.Array(
|
|
933
|
+
S.String,
|
|
934
|
+
) as any as S.Schema<OidcWriteProviderRequestAllowedClientIdsList>;
|
|
935
|
+
|
|
936
|
+
/** The scopes supported for requesting on the provider */
|
|
937
|
+
export type OidcWriteProviderRequestScopesSupportedList = Array<string>;
|
|
938
|
+
export const OidcWriteProviderRequestScopesSupportedList =
|
|
939
|
+
/*@__PURE__*/ S.Array(
|
|
940
|
+
S.String,
|
|
941
|
+
) as any as S.Schema<OidcWriteProviderRequestScopesSupportedList>;
|
|
942
|
+
|
|
943
|
+
export interface OidcWriteProviderRequest {
|
|
944
|
+
/** Name of the provider */
|
|
945
|
+
name: string;
|
|
946
|
+
/** The client IDs that are permitted to use the provider */
|
|
947
|
+
allowed_client_ids?: OidcWriteProviderRequestAllowedClientIdsList;
|
|
948
|
+
/** Specifies what will be used for the iss claim of ID tokens. */
|
|
949
|
+
issuer?: string;
|
|
950
|
+
/** The scopes supported for requesting on the provider */
|
|
951
|
+
scopes_supported?: OidcWriteProviderRequestScopesSupportedList;
|
|
952
|
+
}
|
|
953
|
+
export const OidcWriteProviderRequest = /*@__PURE__*/ S.suspend(() =>
|
|
954
|
+
S.Struct({
|
|
955
|
+
name: S.String.pipe(T.Label()),
|
|
956
|
+
allowed_client_ids: S.optional(
|
|
957
|
+
OidcWriteProviderRequestAllowedClientIdsList,
|
|
958
|
+
),
|
|
959
|
+
issuer: S.optional(S.String),
|
|
960
|
+
scopes_supported: S.optional(OidcWriteProviderRequestScopesSupportedList),
|
|
961
|
+
}).pipe(
|
|
962
|
+
T.Http({
|
|
963
|
+
method: "POST",
|
|
964
|
+
uri: "/identity/oidc/provider/{name}",
|
|
965
|
+
code: 200,
|
|
966
|
+
}),
|
|
967
|
+
),
|
|
968
|
+
).annotate({
|
|
969
|
+
identifier: "OidcWriteProviderRequest",
|
|
970
|
+
}) as any as S.Schema<OidcWriteProviderRequest>;
|
|
971
|
+
|
|
972
|
+
export interface OidcWriteProviderResponse {}
|
|
973
|
+
export const OidcWriteProviderResponse = /*@__PURE__*/ S.suspend(() =>
|
|
974
|
+
S.Struct({}),
|
|
975
|
+
).annotate({
|
|
976
|
+
identifier: "OidcWriteProviderResponse",
|
|
977
|
+
}) as any as S.Schema<OidcWriteProviderResponse>;
|
|
978
|
+
|
|
979
|
+
export interface OidcWriteRoleRequest {
|
|
980
|
+
/** Name of the role */
|
|
981
|
+
name: string;
|
|
982
|
+
/** Optional client_id */
|
|
983
|
+
client_id?: string;
|
|
984
|
+
/** The OIDC key to use for generating tokens. The specified key must already exist. */
|
|
985
|
+
key: string;
|
|
986
|
+
/** The template string to use for generating tokens. This may be in string-ified JSON or base64 format. */
|
|
987
|
+
template?: string;
|
|
988
|
+
/** TTL of the tokens generated against the role. */
|
|
989
|
+
ttl?: number;
|
|
990
|
+
}
|
|
991
|
+
export const OidcWriteRoleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
992
|
+
S.Struct({
|
|
993
|
+
name: S.String.pipe(T.Label()),
|
|
994
|
+
client_id: S.optional(S.String),
|
|
995
|
+
key: S.String,
|
|
996
|
+
template: S.optional(S.String),
|
|
997
|
+
ttl: S.optional(S.Number),
|
|
998
|
+
}).pipe(
|
|
999
|
+
T.Http({ method: "POST", uri: "/identity/oidc/role/{name}", code: 200 }),
|
|
1000
|
+
),
|
|
1001
|
+
).annotate({
|
|
1002
|
+
identifier: "OidcWriteRoleRequest",
|
|
1003
|
+
}) as any as S.Schema<OidcWriteRoleRequest>;
|
|
1004
|
+
|
|
1005
|
+
export interface OidcWriteRoleResponse {}
|
|
1006
|
+
export const OidcWriteRoleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1007
|
+
S.Struct({}),
|
|
1008
|
+
).annotate({
|
|
1009
|
+
identifier: "OidcWriteRoleResponse",
|
|
1010
|
+
}) as any as S.Schema<OidcWriteRoleResponse>;
|
|
1011
|
+
|
|
1012
|
+
export interface OidcWriteScopeRequest {
|
|
1013
|
+
/** Name of the scope */
|
|
1014
|
+
name: string;
|
|
1015
|
+
/** The description of the scope */
|
|
1016
|
+
description?: string;
|
|
1017
|
+
/** The template string to use for the scope. This may be in string-ified JSON or base64 format. */
|
|
1018
|
+
template?: string;
|
|
1019
|
+
}
|
|
1020
|
+
export const OidcWriteScopeRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1021
|
+
S.Struct({
|
|
1022
|
+
name: S.String.pipe(T.Label()),
|
|
1023
|
+
description: S.optional(S.String),
|
|
1024
|
+
template: S.optional(S.String),
|
|
1025
|
+
}).pipe(
|
|
1026
|
+
T.Http({ method: "POST", uri: "/identity/oidc/scope/{name}", code: 200 }),
|
|
1027
|
+
),
|
|
1028
|
+
).annotate({
|
|
1029
|
+
identifier: "OidcWriteScopeRequest",
|
|
1030
|
+
}) as any as S.Schema<OidcWriteScopeRequest>;
|
|
1031
|
+
|
|
1032
|
+
export interface OidcWriteScopeResponse {}
|
|
1033
|
+
export const OidcWriteScopeResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1034
|
+
S.Struct({}),
|
|
1035
|
+
).annotate({
|
|
1036
|
+
identifier: "OidcWriteScopeResponse",
|
|
1037
|
+
}) as any as S.Schema<OidcWriteScopeResponse>;
|
|
1038
|
+
|
|
1039
|
+
export interface PollOidcWriteOidcRequest {
|
|
1040
|
+
/** Path that the backend was mounted at */
|
|
1041
|
+
oidc_mount_path: string;
|
|
1042
|
+
client_nonce?: string;
|
|
1043
|
+
state?: string;
|
|
1044
|
+
}
|
|
1045
|
+
export const PollOidcWriteOidcRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1046
|
+
S.Struct({
|
|
1047
|
+
oidc_mount_path: S.String.pipe(T.Label()),
|
|
1048
|
+
client_nonce: S.optional(S.String),
|
|
1049
|
+
state: S.optional(S.String),
|
|
1050
|
+
}).pipe(
|
|
1051
|
+
T.Http({
|
|
1052
|
+
method: "POST",
|
|
1053
|
+
uri: "/auth/{oidc_mount_path}/oidc/poll",
|
|
1054
|
+
code: 200,
|
|
1055
|
+
}),
|
|
1056
|
+
),
|
|
1057
|
+
).annotate({
|
|
1058
|
+
identifier: "PollOidcWriteOidcRequest",
|
|
1059
|
+
}) as any as S.Schema<PollOidcWriteOidcRequest>;
|
|
1060
|
+
|
|
1061
|
+
export interface PollOidcWriteOidcResponse {}
|
|
1062
|
+
export const PollOidcWriteOidcResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1063
|
+
S.Struct({}),
|
|
1064
|
+
).annotate({
|
|
1065
|
+
identifier: "PollOidcWriteOidcResponse",
|
|
1066
|
+
}) as any as S.Schema<PollOidcWriteOidcResponse>;
|
|
1067
|
+
|
|
1068
|
+
export type AuthorizeOidcProviderError = OpenBaoOpError;
|
|
1069
|
+
export const authorizeOidcProvider: API.OperationMethod<
|
|
1070
|
+
AuthorizeOidcProviderRequest,
|
|
1071
|
+
AuthorizeOidcProviderResponse,
|
|
1072
|
+
AuthorizeOidcProviderError,
|
|
1073
|
+
OpenBaoOpContext
|
|
1074
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1075
|
+
input: AuthorizeOidcProviderRequest,
|
|
1076
|
+
output: AuthorizeOidcProviderResponse,
|
|
1077
|
+
errors: [],
|
|
1078
|
+
protocol: OpenBaoProtocol,
|
|
1079
|
+
retry: Retry.Retry,
|
|
1080
|
+
}));
|
|
1081
|
+
|
|
1082
|
+
export type OidcConfigureError = OpenBaoOpError;
|
|
1083
|
+
export const oidcConfigure: API.OperationMethod<
|
|
1084
|
+
OidcConfigureRequest,
|
|
1085
|
+
OidcConfigureResponse,
|
|
1086
|
+
OidcConfigureError,
|
|
1087
|
+
OpenBaoOpContext
|
|
1088
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1089
|
+
input: OidcConfigureRequest,
|
|
1090
|
+
output: OidcConfigureResponse,
|
|
1091
|
+
errors: [],
|
|
1092
|
+
protocol: OpenBaoProtocol,
|
|
1093
|
+
retry: Retry.Retry,
|
|
1094
|
+
}));
|
|
1095
|
+
|
|
1096
|
+
export type OidcDeleteAssignmentError = OpenBaoOpError;
|
|
1097
|
+
export const oidcDeleteAssignment: API.OperationMethod<
|
|
1098
|
+
OidcDeleteAssignmentRequest,
|
|
1099
|
+
OidcDeleteAssignmentResponse,
|
|
1100
|
+
OidcDeleteAssignmentError,
|
|
1101
|
+
OpenBaoOpContext
|
|
1102
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1103
|
+
input: OidcDeleteAssignmentRequest,
|
|
1104
|
+
output: OidcDeleteAssignmentResponse,
|
|
1105
|
+
errors: [],
|
|
1106
|
+
protocol: OpenBaoProtocol,
|
|
1107
|
+
retry: Retry.Retry,
|
|
1108
|
+
}));
|
|
1109
|
+
|
|
1110
|
+
export type OidcDeleteClientError = OpenBaoOpError;
|
|
1111
|
+
export const oidcDeleteClient: API.OperationMethod<
|
|
1112
|
+
OidcDeleteClientRequest,
|
|
1113
|
+
OidcDeleteClientResponse,
|
|
1114
|
+
OidcDeleteClientError,
|
|
1115
|
+
OpenBaoOpContext
|
|
1116
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1117
|
+
input: OidcDeleteClientRequest,
|
|
1118
|
+
output: OidcDeleteClientResponse,
|
|
1119
|
+
errors: [],
|
|
1120
|
+
protocol: OpenBaoProtocol,
|
|
1121
|
+
retry: Retry.Retry,
|
|
1122
|
+
}));
|
|
1123
|
+
|
|
1124
|
+
export type OidcDeleteKeyError = OpenBaoOpError;
|
|
1125
|
+
export const oidcDeleteKey: API.OperationMethod<
|
|
1126
|
+
OidcDeleteKeyRequest,
|
|
1127
|
+
OidcDeleteKeyResponse,
|
|
1128
|
+
OidcDeleteKeyError,
|
|
1129
|
+
OpenBaoOpContext
|
|
1130
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1131
|
+
input: OidcDeleteKeyRequest,
|
|
1132
|
+
output: OidcDeleteKeyResponse,
|
|
1133
|
+
errors: [],
|
|
1134
|
+
protocol: OpenBaoProtocol,
|
|
1135
|
+
retry: Retry.Retry,
|
|
1136
|
+
}));
|
|
1137
|
+
|
|
1138
|
+
export type OidcDeleteProviderError = OpenBaoOpError;
|
|
1139
|
+
export const oidcDeleteProvider: API.OperationMethod<
|
|
1140
|
+
OidcDeleteProviderRequest,
|
|
1141
|
+
OidcDeleteProviderResponse,
|
|
1142
|
+
OidcDeleteProviderError,
|
|
1143
|
+
OpenBaoOpContext
|
|
1144
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1145
|
+
input: OidcDeleteProviderRequest,
|
|
1146
|
+
output: OidcDeleteProviderResponse,
|
|
1147
|
+
errors: [],
|
|
1148
|
+
protocol: OpenBaoProtocol,
|
|
1149
|
+
retry: Retry.Retry,
|
|
1150
|
+
}));
|
|
1151
|
+
|
|
1152
|
+
export type OidcDeleteRoleError = OpenBaoOpError;
|
|
1153
|
+
export const oidcDeleteRole: API.OperationMethod<
|
|
1154
|
+
OidcDeleteRoleRequest,
|
|
1155
|
+
OidcDeleteRoleResponse,
|
|
1156
|
+
OidcDeleteRoleError,
|
|
1157
|
+
OpenBaoOpContext
|
|
1158
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1159
|
+
input: OidcDeleteRoleRequest,
|
|
1160
|
+
output: OidcDeleteRoleResponse,
|
|
1161
|
+
errors: [],
|
|
1162
|
+
protocol: OpenBaoProtocol,
|
|
1163
|
+
retry: Retry.Retry,
|
|
1164
|
+
}));
|
|
1165
|
+
|
|
1166
|
+
export type OidcDeleteScopeError = OpenBaoOpError;
|
|
1167
|
+
export const oidcDeleteScope: API.OperationMethod<
|
|
1168
|
+
OidcDeleteScopeRequest,
|
|
1169
|
+
OidcDeleteScopeResponse,
|
|
1170
|
+
OidcDeleteScopeError,
|
|
1171
|
+
OpenBaoOpContext
|
|
1172
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1173
|
+
input: OidcDeleteScopeRequest,
|
|
1174
|
+
output: OidcDeleteScopeResponse,
|
|
1175
|
+
errors: [],
|
|
1176
|
+
protocol: OpenBaoProtocol,
|
|
1177
|
+
retry: Retry.Retry,
|
|
1178
|
+
}));
|
|
1179
|
+
|
|
1180
|
+
export type OidcGenerateTokenError = OpenBaoOpError;
|
|
1181
|
+
export const oidcGenerateToken: API.OperationMethod<
|
|
1182
|
+
OidcGenerateTokenRequest,
|
|
1183
|
+
OidcGenerateTokenResponse,
|
|
1184
|
+
OidcGenerateTokenError,
|
|
1185
|
+
OpenBaoOpContext
|
|
1186
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1187
|
+
input: OidcGenerateTokenRequest,
|
|
1188
|
+
output: OidcGenerateTokenResponse,
|
|
1189
|
+
errors: [],
|
|
1190
|
+
protocol: OpenBaoProtocol,
|
|
1191
|
+
retry: Retry.Retry,
|
|
1192
|
+
}));
|
|
1193
|
+
|
|
1194
|
+
export type OidcIntrospectError = OpenBaoOpError;
|
|
1195
|
+
export const oidcIntrospect: API.OperationMethod<
|
|
1196
|
+
OidcIntrospectRequest,
|
|
1197
|
+
OidcIntrospectResponse,
|
|
1198
|
+
OidcIntrospectError,
|
|
1199
|
+
OpenBaoOpContext
|
|
1200
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1201
|
+
input: OidcIntrospectRequest,
|
|
1202
|
+
output: OidcIntrospectResponse,
|
|
1203
|
+
errors: [],
|
|
1204
|
+
protocol: OpenBaoProtocol,
|
|
1205
|
+
retry: Retry.Retry,
|
|
1206
|
+
}));
|
|
1207
|
+
|
|
1208
|
+
export type OidcListAssignmentsError = OpenBaoOpError;
|
|
1209
|
+
export const oidcListAssignments: API.OperationMethod<
|
|
1210
|
+
OidcListAssignmentsRequest,
|
|
1211
|
+
OidcListAssignmentsResponse,
|
|
1212
|
+
OidcListAssignmentsError,
|
|
1213
|
+
OpenBaoOpContext
|
|
1214
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1215
|
+
input: OidcListAssignmentsRequest,
|
|
1216
|
+
output: OidcListAssignmentsResponse,
|
|
1217
|
+
errors: [],
|
|
1218
|
+
protocol: OpenBaoProtocol,
|
|
1219
|
+
retry: Retry.Retry,
|
|
1220
|
+
}));
|
|
1221
|
+
|
|
1222
|
+
export type OidcListClientsError = OpenBaoOpError;
|
|
1223
|
+
export const oidcListClients: API.OperationMethod<
|
|
1224
|
+
OidcListClientsRequest,
|
|
1225
|
+
OidcListClientsResponse,
|
|
1226
|
+
OidcListClientsError,
|
|
1227
|
+
OpenBaoOpContext
|
|
1228
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1229
|
+
input: OidcListClientsRequest,
|
|
1230
|
+
output: OidcListClientsResponse,
|
|
1231
|
+
errors: [],
|
|
1232
|
+
protocol: OpenBaoProtocol,
|
|
1233
|
+
retry: Retry.Retry,
|
|
1234
|
+
}));
|
|
1235
|
+
|
|
1236
|
+
export type OidcListKeysError = OpenBaoOpError;
|
|
1237
|
+
export const oidcListKeys: API.OperationMethod<
|
|
1238
|
+
OidcListKeysRequest,
|
|
1239
|
+
OidcListKeysResponse,
|
|
1240
|
+
OidcListKeysError,
|
|
1241
|
+
OpenBaoOpContext
|
|
1242
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1243
|
+
input: OidcListKeysRequest,
|
|
1244
|
+
output: OidcListKeysResponse,
|
|
1245
|
+
errors: [],
|
|
1246
|
+
protocol: OpenBaoProtocol,
|
|
1247
|
+
retry: Retry.Retry,
|
|
1248
|
+
}));
|
|
1249
|
+
|
|
1250
|
+
export type OidcListProvidersError = OpenBaoOpError;
|
|
1251
|
+
export const oidcListProviders: API.OperationMethod<
|
|
1252
|
+
OidcListProvidersRequest,
|
|
1253
|
+
OidcListProvidersResponse,
|
|
1254
|
+
OidcListProvidersError,
|
|
1255
|
+
OpenBaoOpContext
|
|
1256
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1257
|
+
input: OidcListProvidersRequest,
|
|
1258
|
+
output: OidcListProvidersResponse,
|
|
1259
|
+
errors: [],
|
|
1260
|
+
protocol: OpenBaoProtocol,
|
|
1261
|
+
retry: Retry.Retry,
|
|
1262
|
+
}));
|
|
1263
|
+
|
|
1264
|
+
export type OidcListRolesError = OpenBaoOpError;
|
|
1265
|
+
export const oidcListRoles: API.OperationMethod<
|
|
1266
|
+
OidcListRolesRequest,
|
|
1267
|
+
OidcListRolesResponse,
|
|
1268
|
+
OidcListRolesError,
|
|
1269
|
+
OpenBaoOpContext
|
|
1270
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1271
|
+
input: OidcListRolesRequest,
|
|
1272
|
+
output: OidcListRolesResponse,
|
|
1273
|
+
errors: [],
|
|
1274
|
+
protocol: OpenBaoProtocol,
|
|
1275
|
+
retry: Retry.Retry,
|
|
1276
|
+
}));
|
|
1277
|
+
|
|
1278
|
+
export type OidcListScopesError = OpenBaoOpError;
|
|
1279
|
+
export const oidcListScopes: API.OperationMethod<
|
|
1280
|
+
OidcListScopesRequest,
|
|
1281
|
+
OidcListScopesResponse,
|
|
1282
|
+
OidcListScopesError,
|
|
1283
|
+
OpenBaoOpContext
|
|
1284
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1285
|
+
input: OidcListScopesRequest,
|
|
1286
|
+
output: OidcListScopesResponse,
|
|
1287
|
+
errors: [],
|
|
1288
|
+
protocol: OpenBaoProtocol,
|
|
1289
|
+
retry: Retry.Retry,
|
|
1290
|
+
}));
|
|
1291
|
+
|
|
1292
|
+
export type OidcProviderAuthorizeWithParametersError = OpenBaoOpError;
|
|
1293
|
+
export const oidcProviderAuthorizeWithParameters: API.OperationMethod<
|
|
1294
|
+
OidcProviderAuthorizeWithParametersRequest,
|
|
1295
|
+
OidcProviderAuthorizeWithParametersResponse,
|
|
1296
|
+
OidcProviderAuthorizeWithParametersError,
|
|
1297
|
+
OpenBaoOpContext
|
|
1298
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1299
|
+
input: OidcProviderAuthorizeWithParametersRequest,
|
|
1300
|
+
output: OidcProviderAuthorizeWithParametersResponse,
|
|
1301
|
+
errors: [],
|
|
1302
|
+
protocol: OpenBaoProtocol,
|
|
1303
|
+
retry: Retry.Retry,
|
|
1304
|
+
}));
|
|
1305
|
+
|
|
1306
|
+
export type OidcProviderTokenError = OpenBaoOpError;
|
|
1307
|
+
export const oidcProviderToken: API.OperationMethod<
|
|
1308
|
+
OidcProviderTokenRequest,
|
|
1309
|
+
OidcProviderTokenResponse,
|
|
1310
|
+
OidcProviderTokenError,
|
|
1311
|
+
OpenBaoOpContext
|
|
1312
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1313
|
+
input: OidcProviderTokenRequest,
|
|
1314
|
+
output: OidcProviderTokenResponse,
|
|
1315
|
+
errors: [],
|
|
1316
|
+
protocol: OpenBaoProtocol,
|
|
1317
|
+
retry: Retry.Retry,
|
|
1318
|
+
}));
|
|
1319
|
+
|
|
1320
|
+
export type OidcProviderUserInfoError = OpenBaoOpError;
|
|
1321
|
+
export const oidcProviderUserInfo: API.OperationMethod<
|
|
1322
|
+
OidcProviderUserInfoRequest,
|
|
1323
|
+
OidcProviderUserInfoResponse,
|
|
1324
|
+
OidcProviderUserInfoError,
|
|
1325
|
+
OpenBaoOpContext
|
|
1326
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1327
|
+
input: OidcProviderUserInfoRequest,
|
|
1328
|
+
output: OidcProviderUserInfoResponse,
|
|
1329
|
+
errors: [],
|
|
1330
|
+
protocol: OpenBaoProtocol,
|
|
1331
|
+
retry: Retry.Retry,
|
|
1332
|
+
}));
|
|
1333
|
+
|
|
1334
|
+
export type OidcProviderUserInfo2Error = OpenBaoOpError;
|
|
1335
|
+
export const oidcProviderUserInfo2: API.OperationMethod<
|
|
1336
|
+
OidcProviderUserInfo2Request,
|
|
1337
|
+
OidcProviderUserInfo2Response,
|
|
1338
|
+
OidcProviderUserInfo2Error,
|
|
1339
|
+
OpenBaoOpContext
|
|
1340
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1341
|
+
input: OidcProviderUserInfo2Request,
|
|
1342
|
+
output: OidcProviderUserInfo2Response,
|
|
1343
|
+
errors: [],
|
|
1344
|
+
protocol: OpenBaoProtocol,
|
|
1345
|
+
retry: Retry.Retry,
|
|
1346
|
+
}));
|
|
1347
|
+
|
|
1348
|
+
export type OidcReadAssignmentError = OpenBaoOpError;
|
|
1349
|
+
export const oidcReadAssignment: API.OperationMethod<
|
|
1350
|
+
OidcReadAssignmentRequest,
|
|
1351
|
+
OidcReadAssignmentResponse,
|
|
1352
|
+
OidcReadAssignmentError,
|
|
1353
|
+
OpenBaoOpContext
|
|
1354
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1355
|
+
input: OidcReadAssignmentRequest,
|
|
1356
|
+
output: OidcReadAssignmentResponse,
|
|
1357
|
+
errors: [],
|
|
1358
|
+
protocol: OpenBaoProtocol,
|
|
1359
|
+
retry: Retry.Retry,
|
|
1360
|
+
}));
|
|
1361
|
+
|
|
1362
|
+
export type OidcReadClientError = OpenBaoOpError;
|
|
1363
|
+
export const oidcReadClient: API.OperationMethod<
|
|
1364
|
+
OidcReadClientRequest,
|
|
1365
|
+
OidcReadClientResponse,
|
|
1366
|
+
OidcReadClientError,
|
|
1367
|
+
OpenBaoOpContext
|
|
1368
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1369
|
+
input: OidcReadClientRequest,
|
|
1370
|
+
output: OidcReadClientResponse,
|
|
1371
|
+
errors: [],
|
|
1372
|
+
protocol: OpenBaoProtocol,
|
|
1373
|
+
retry: Retry.Retry,
|
|
1374
|
+
}));
|
|
1375
|
+
|
|
1376
|
+
export type OidcReadConfigurationError = OpenBaoOpError;
|
|
1377
|
+
export const oidcReadConfiguration: API.OperationMethod<
|
|
1378
|
+
OidcReadConfigurationRequest,
|
|
1379
|
+
OidcReadConfigurationResponse,
|
|
1380
|
+
OidcReadConfigurationError,
|
|
1381
|
+
OpenBaoOpContext
|
|
1382
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1383
|
+
input: OidcReadConfigurationRequest,
|
|
1384
|
+
output: OidcReadConfigurationResponse,
|
|
1385
|
+
errors: [],
|
|
1386
|
+
protocol: OpenBaoProtocol,
|
|
1387
|
+
retry: Retry.Retry,
|
|
1388
|
+
}));
|
|
1389
|
+
|
|
1390
|
+
export type OidcReadKeyError = OpenBaoOpError;
|
|
1391
|
+
export const oidcReadKey: API.OperationMethod<
|
|
1392
|
+
OidcReadKeyRequest,
|
|
1393
|
+
OidcReadKeyResponse,
|
|
1394
|
+
OidcReadKeyError,
|
|
1395
|
+
OpenBaoOpContext
|
|
1396
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1397
|
+
input: OidcReadKeyRequest,
|
|
1398
|
+
output: OidcReadKeyResponse,
|
|
1399
|
+
errors: [],
|
|
1400
|
+
protocol: OpenBaoProtocol,
|
|
1401
|
+
retry: Retry.Retry,
|
|
1402
|
+
}));
|
|
1403
|
+
|
|
1404
|
+
export type OidcReadOpenIdConfigurationError = OpenBaoOpError;
|
|
1405
|
+
export const oidcReadOpenIdConfiguration: API.OperationMethod<
|
|
1406
|
+
OidcReadOpenIdConfigurationRequest,
|
|
1407
|
+
OidcReadOpenIdConfigurationResponse,
|
|
1408
|
+
OidcReadOpenIdConfigurationError,
|
|
1409
|
+
OpenBaoOpContext
|
|
1410
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1411
|
+
input: OidcReadOpenIdConfigurationRequest,
|
|
1412
|
+
output: OidcReadOpenIdConfigurationResponse,
|
|
1413
|
+
errors: [],
|
|
1414
|
+
protocol: OpenBaoProtocol,
|
|
1415
|
+
retry: Retry.Retry,
|
|
1416
|
+
}));
|
|
1417
|
+
|
|
1418
|
+
export type OidcReadProviderError = OpenBaoOpError;
|
|
1419
|
+
export const oidcReadProvider: API.OperationMethod<
|
|
1420
|
+
OidcReadProviderRequest,
|
|
1421
|
+
OidcReadProviderResponse,
|
|
1422
|
+
OidcReadProviderError,
|
|
1423
|
+
OpenBaoOpContext
|
|
1424
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1425
|
+
input: OidcReadProviderRequest,
|
|
1426
|
+
output: OidcReadProviderResponse,
|
|
1427
|
+
errors: [],
|
|
1428
|
+
protocol: OpenBaoProtocol,
|
|
1429
|
+
retry: Retry.Retry,
|
|
1430
|
+
}));
|
|
1431
|
+
|
|
1432
|
+
export type OidcReadProviderOpenIdConfigurationError = OpenBaoOpError;
|
|
1433
|
+
export const oidcReadProviderOpenIdConfiguration: API.OperationMethod<
|
|
1434
|
+
OidcReadProviderOpenIdConfigurationRequest,
|
|
1435
|
+
OidcReadProviderOpenIdConfigurationResponse,
|
|
1436
|
+
OidcReadProviderOpenIdConfigurationError,
|
|
1437
|
+
OpenBaoOpContext
|
|
1438
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1439
|
+
input: OidcReadProviderOpenIdConfigurationRequest,
|
|
1440
|
+
output: OidcReadProviderOpenIdConfigurationResponse,
|
|
1441
|
+
errors: [],
|
|
1442
|
+
protocol: OpenBaoProtocol,
|
|
1443
|
+
retry: Retry.Retry,
|
|
1444
|
+
}));
|
|
1445
|
+
|
|
1446
|
+
export type OidcReadProviderPublicKeysError = OpenBaoOpError;
|
|
1447
|
+
export const oidcReadProviderPublicKeys: API.OperationMethod<
|
|
1448
|
+
OidcReadProviderPublicKeysRequest,
|
|
1449
|
+
OidcReadProviderPublicKeysResponse,
|
|
1450
|
+
OidcReadProviderPublicKeysError,
|
|
1451
|
+
OpenBaoOpContext
|
|
1452
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1453
|
+
input: OidcReadProviderPublicKeysRequest,
|
|
1454
|
+
output: OidcReadProviderPublicKeysResponse,
|
|
1455
|
+
errors: [],
|
|
1456
|
+
protocol: OpenBaoProtocol,
|
|
1457
|
+
retry: Retry.Retry,
|
|
1458
|
+
}));
|
|
1459
|
+
|
|
1460
|
+
export type OidcReadPublicKeysError = OpenBaoOpError;
|
|
1461
|
+
export const oidcReadPublicKeys: API.OperationMethod<
|
|
1462
|
+
OidcReadPublicKeysRequest,
|
|
1463
|
+
OidcReadPublicKeysResponse,
|
|
1464
|
+
OidcReadPublicKeysError,
|
|
1465
|
+
OpenBaoOpContext
|
|
1466
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1467
|
+
input: OidcReadPublicKeysRequest,
|
|
1468
|
+
output: OidcReadPublicKeysResponse,
|
|
1469
|
+
errors: [],
|
|
1470
|
+
protocol: OpenBaoProtocol,
|
|
1471
|
+
retry: Retry.Retry,
|
|
1472
|
+
}));
|
|
1473
|
+
|
|
1474
|
+
export type OidcReadRoleError = OpenBaoOpError;
|
|
1475
|
+
export const oidcReadRole: API.OperationMethod<
|
|
1476
|
+
OidcReadRoleRequest,
|
|
1477
|
+
OidcReadRoleResponse,
|
|
1478
|
+
OidcReadRoleError,
|
|
1479
|
+
OpenBaoOpContext
|
|
1480
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1481
|
+
input: OidcReadRoleRequest,
|
|
1482
|
+
output: OidcReadRoleResponse,
|
|
1483
|
+
errors: [],
|
|
1484
|
+
protocol: OpenBaoProtocol,
|
|
1485
|
+
retry: Retry.Retry,
|
|
1486
|
+
}));
|
|
1487
|
+
|
|
1488
|
+
export type OidcReadScopeError = OpenBaoOpError;
|
|
1489
|
+
export const oidcReadScope: API.OperationMethod<
|
|
1490
|
+
OidcReadScopeRequest,
|
|
1491
|
+
OidcReadScopeResponse,
|
|
1492
|
+
OidcReadScopeError,
|
|
1493
|
+
OpenBaoOpContext
|
|
1494
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1495
|
+
input: OidcReadScopeRequest,
|
|
1496
|
+
output: OidcReadScopeResponse,
|
|
1497
|
+
errors: [],
|
|
1498
|
+
protocol: OpenBaoProtocol,
|
|
1499
|
+
retry: Retry.Retry,
|
|
1500
|
+
}));
|
|
1501
|
+
|
|
1502
|
+
export type OidcRotateKeyError = OpenBaoOpError;
|
|
1503
|
+
export const oidcRotateKey: API.OperationMethod<
|
|
1504
|
+
OidcRotateKeyRequest,
|
|
1505
|
+
OidcRotateKeyResponse,
|
|
1506
|
+
OidcRotateKeyError,
|
|
1507
|
+
OpenBaoOpContext
|
|
1508
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1509
|
+
input: OidcRotateKeyRequest,
|
|
1510
|
+
output: OidcRotateKeyResponse,
|
|
1511
|
+
errors: [],
|
|
1512
|
+
protocol: OpenBaoProtocol,
|
|
1513
|
+
retry: Retry.Retry,
|
|
1514
|
+
}));
|
|
1515
|
+
|
|
1516
|
+
export type OidcWriteAssignmentError = OpenBaoOpError;
|
|
1517
|
+
export const oidcWriteAssignment: API.OperationMethod<
|
|
1518
|
+
OidcWriteAssignmentRequest,
|
|
1519
|
+
OidcWriteAssignmentResponse,
|
|
1520
|
+
OidcWriteAssignmentError,
|
|
1521
|
+
OpenBaoOpContext
|
|
1522
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1523
|
+
input: OidcWriteAssignmentRequest,
|
|
1524
|
+
output: OidcWriteAssignmentResponse,
|
|
1525
|
+
errors: [],
|
|
1526
|
+
protocol: OpenBaoProtocol,
|
|
1527
|
+
retry: Retry.Retry,
|
|
1528
|
+
}));
|
|
1529
|
+
|
|
1530
|
+
export type OidcWriteClientError = OpenBaoOpError;
|
|
1531
|
+
export const oidcWriteClient: API.OperationMethod<
|
|
1532
|
+
OidcWriteClientRequest,
|
|
1533
|
+
OidcWriteClientResponse,
|
|
1534
|
+
OidcWriteClientError,
|
|
1535
|
+
OpenBaoOpContext
|
|
1536
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1537
|
+
input: OidcWriteClientRequest,
|
|
1538
|
+
output: OidcWriteClientResponse,
|
|
1539
|
+
errors: [],
|
|
1540
|
+
protocol: OpenBaoProtocol,
|
|
1541
|
+
retry: Retry.Retry,
|
|
1542
|
+
}));
|
|
1543
|
+
|
|
1544
|
+
export type OidcWriteKeyError = OpenBaoOpError;
|
|
1545
|
+
export const oidcWriteKey: API.OperationMethod<
|
|
1546
|
+
OidcWriteKeyRequest,
|
|
1547
|
+
OidcWriteKeyResponse,
|
|
1548
|
+
OidcWriteKeyError,
|
|
1549
|
+
OpenBaoOpContext
|
|
1550
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1551
|
+
input: OidcWriteKeyRequest,
|
|
1552
|
+
output: OidcWriteKeyResponse,
|
|
1553
|
+
errors: [],
|
|
1554
|
+
protocol: OpenBaoProtocol,
|
|
1555
|
+
retry: Retry.Retry,
|
|
1556
|
+
}));
|
|
1557
|
+
|
|
1558
|
+
export type OidcWriteProviderError = OpenBaoOpError;
|
|
1559
|
+
export const oidcWriteProvider: API.OperationMethod<
|
|
1560
|
+
OidcWriteProviderRequest,
|
|
1561
|
+
OidcWriteProviderResponse,
|
|
1562
|
+
OidcWriteProviderError,
|
|
1563
|
+
OpenBaoOpContext
|
|
1564
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1565
|
+
input: OidcWriteProviderRequest,
|
|
1566
|
+
output: OidcWriteProviderResponse,
|
|
1567
|
+
errors: [],
|
|
1568
|
+
protocol: OpenBaoProtocol,
|
|
1569
|
+
retry: Retry.Retry,
|
|
1570
|
+
}));
|
|
1571
|
+
|
|
1572
|
+
export type OidcWriteRoleError = OpenBaoOpError;
|
|
1573
|
+
export const oidcWriteRole: API.OperationMethod<
|
|
1574
|
+
OidcWriteRoleRequest,
|
|
1575
|
+
OidcWriteRoleResponse,
|
|
1576
|
+
OidcWriteRoleError,
|
|
1577
|
+
OpenBaoOpContext
|
|
1578
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1579
|
+
input: OidcWriteRoleRequest,
|
|
1580
|
+
output: OidcWriteRoleResponse,
|
|
1581
|
+
errors: [],
|
|
1582
|
+
protocol: OpenBaoProtocol,
|
|
1583
|
+
retry: Retry.Retry,
|
|
1584
|
+
}));
|
|
1585
|
+
|
|
1586
|
+
export type OidcWriteScopeError = OpenBaoOpError;
|
|
1587
|
+
export const oidcWriteScope: API.OperationMethod<
|
|
1588
|
+
OidcWriteScopeRequest,
|
|
1589
|
+
OidcWriteScopeResponse,
|
|
1590
|
+
OidcWriteScopeError,
|
|
1591
|
+
OpenBaoOpContext
|
|
1592
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1593
|
+
input: OidcWriteScopeRequest,
|
|
1594
|
+
output: OidcWriteScopeResponse,
|
|
1595
|
+
errors: [],
|
|
1596
|
+
protocol: OpenBaoProtocol,
|
|
1597
|
+
retry: Retry.Retry,
|
|
1598
|
+
}));
|
|
1599
|
+
|
|
1600
|
+
export type PollOidcWriteOidcError = OpenBaoOpError;
|
|
1601
|
+
/** Poll endpoint to complete an OIDC login. */
|
|
1602
|
+
export const pollOidcWriteOidc: API.OperationMethod<
|
|
1603
|
+
PollOidcWriteOidcRequest,
|
|
1604
|
+
PollOidcWriteOidcResponse,
|
|
1605
|
+
PollOidcWriteOidcError,
|
|
1606
|
+
OpenBaoOpContext
|
|
1607
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1608
|
+
input: PollOidcWriteOidcRequest,
|
|
1609
|
+
output: PollOidcWriteOidcResponse,
|
|
1610
|
+
errors: [],
|
|
1611
|
+
protocol: OpenBaoProtocol,
|
|
1612
|
+
retry: Retry.Retry,
|
|
1613
|
+
}));
|