@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,1193 @@
|
|
|
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 MfaAdminDestroyTotpSecretRequest {
|
|
15
|
+
/** Identifier of the entity from which the MFA method secret needs to be removed. */
|
|
16
|
+
entity_id: string;
|
|
17
|
+
/** The unique identifier for this MFA method. */
|
|
18
|
+
method_id: string;
|
|
19
|
+
}
|
|
20
|
+
export const MfaAdminDestroyTotpSecretRequest = /*@__PURE__*/ S.suspend(() =>
|
|
21
|
+
S.Struct({
|
|
22
|
+
entity_id: S.String,
|
|
23
|
+
method_id: S.String,
|
|
24
|
+
}).pipe(
|
|
25
|
+
T.Http({
|
|
26
|
+
method: "POST",
|
|
27
|
+
uri: "/identity/mfa/method/totp/admin-destroy",
|
|
28
|
+
code: 200,
|
|
29
|
+
}),
|
|
30
|
+
),
|
|
31
|
+
).annotate({
|
|
32
|
+
identifier: "MfaAdminDestroyTotpSecretRequest",
|
|
33
|
+
}) as any as S.Schema<MfaAdminDestroyTotpSecretRequest>;
|
|
34
|
+
|
|
35
|
+
export interface MfaAdminDestroyTotpSecretResponse {}
|
|
36
|
+
export const MfaAdminDestroyTotpSecretResponse = /*@__PURE__*/ S.suspend(() =>
|
|
37
|
+
S.Struct({}),
|
|
38
|
+
).annotate({
|
|
39
|
+
identifier: "MfaAdminDestroyTotpSecretResponse",
|
|
40
|
+
}) as any as S.Schema<MfaAdminDestroyTotpSecretResponse>;
|
|
41
|
+
|
|
42
|
+
export interface MfaAdminGenerateTotpSecretRequest {
|
|
43
|
+
/** Entity ID on which the generated secret needs to get stored. */
|
|
44
|
+
entity_id: string;
|
|
45
|
+
/** The unique identifier for this MFA method. */
|
|
46
|
+
method_id: string;
|
|
47
|
+
}
|
|
48
|
+
export const MfaAdminGenerateTotpSecretRequest = /*@__PURE__*/ S.suspend(() =>
|
|
49
|
+
S.Struct({
|
|
50
|
+
entity_id: S.String,
|
|
51
|
+
method_id: S.String,
|
|
52
|
+
}).pipe(
|
|
53
|
+
T.Http({
|
|
54
|
+
method: "POST",
|
|
55
|
+
uri: "/identity/mfa/method/totp/admin-generate",
|
|
56
|
+
code: 200,
|
|
57
|
+
}),
|
|
58
|
+
),
|
|
59
|
+
).annotate({
|
|
60
|
+
identifier: "MfaAdminGenerateTotpSecretRequest",
|
|
61
|
+
}) as any as S.Schema<MfaAdminGenerateTotpSecretRequest>;
|
|
62
|
+
|
|
63
|
+
export interface MfaAdminGenerateTotpSecretResponse {}
|
|
64
|
+
export const MfaAdminGenerateTotpSecretResponse = /*@__PURE__*/ S.suspend(() =>
|
|
65
|
+
S.Struct({}),
|
|
66
|
+
).annotate({
|
|
67
|
+
identifier: "MfaAdminGenerateTotpSecretResponse",
|
|
68
|
+
}) as any as S.Schema<MfaAdminGenerateTotpSecretResponse>;
|
|
69
|
+
|
|
70
|
+
export interface MfaConfigureDuoMethodRequest {
|
|
71
|
+
/** The unique identifier for this MFA method. */
|
|
72
|
+
method_id: string;
|
|
73
|
+
/** API host name for Duo. */
|
|
74
|
+
api_hostname?: string;
|
|
75
|
+
/** Integration key for Duo. */
|
|
76
|
+
integration_key?: string;
|
|
77
|
+
/** The unique name identifier for this MFA method. */
|
|
78
|
+
method_name?: string;
|
|
79
|
+
/** Push information for Duo. */
|
|
80
|
+
push_info?: string;
|
|
81
|
+
/** Secret key for Duo. */
|
|
82
|
+
secret_key?: string;
|
|
83
|
+
/** If true, the user is reminded to use the passcode upon MFA validation. This option does not enforce using the passcode. Defaults to false. */
|
|
84
|
+
use_passcode?: boolean;
|
|
85
|
+
/** A template string for mapping Identity names to MFA method names. Values to subtitute should be placed in {{}}. For example, "{{alias.name}}@example.com". Currently-supported mappings: alias.name: The name returned by the mount configured via the mount_accessor parameter If blank, the Alias's name field will be used as-is. */
|
|
86
|
+
username_format?: string;
|
|
87
|
+
}
|
|
88
|
+
export const MfaConfigureDuoMethodRequest = /*@__PURE__*/ S.suspend(() =>
|
|
89
|
+
S.Struct({
|
|
90
|
+
method_id: S.String.pipe(T.Label()),
|
|
91
|
+
api_hostname: S.optional(S.String),
|
|
92
|
+
integration_key: S.optional(S.String),
|
|
93
|
+
method_name: S.optional(S.String),
|
|
94
|
+
push_info: S.optional(S.String),
|
|
95
|
+
secret_key: S.optional(S.String),
|
|
96
|
+
use_passcode: S.optional(S.Boolean),
|
|
97
|
+
username_format: S.optional(S.String),
|
|
98
|
+
}).pipe(
|
|
99
|
+
T.Http({
|
|
100
|
+
method: "POST",
|
|
101
|
+
uri: "/identity/mfa/method/duo/{method_id}",
|
|
102
|
+
code: 200,
|
|
103
|
+
}),
|
|
104
|
+
),
|
|
105
|
+
).annotate({
|
|
106
|
+
identifier: "MfaConfigureDuoMethodRequest",
|
|
107
|
+
}) as any as S.Schema<MfaConfigureDuoMethodRequest>;
|
|
108
|
+
|
|
109
|
+
export interface MfaConfigureDuoMethodResponse {}
|
|
110
|
+
export const MfaConfigureDuoMethodResponse = /*@__PURE__*/ S.suspend(() =>
|
|
111
|
+
S.Struct({}),
|
|
112
|
+
).annotate({
|
|
113
|
+
identifier: "MfaConfigureDuoMethodResponse",
|
|
114
|
+
}) as any as S.Schema<MfaConfigureDuoMethodResponse>;
|
|
115
|
+
|
|
116
|
+
export interface MfaConfigureOktaMethodRequest {
|
|
117
|
+
/** The unique identifier for this MFA method. */
|
|
118
|
+
method_id: string;
|
|
119
|
+
/** Okta API key. */
|
|
120
|
+
api_token?: string;
|
|
121
|
+
/** The base domain to use for the Okta API. When not specified in the configuration, "okta.com" is used. */
|
|
122
|
+
base_url?: string;
|
|
123
|
+
/** The unique name identifier for this MFA method. */
|
|
124
|
+
method_name?: string;
|
|
125
|
+
/** Name of the organization to be used in the Okta API. */
|
|
126
|
+
org_name?: string;
|
|
127
|
+
/** If true, the username will only match the primary email for the account. Defaults to false. */
|
|
128
|
+
primary_email?: boolean;
|
|
129
|
+
/** (DEPRECATED) Use base_url instead. */
|
|
130
|
+
production?: boolean;
|
|
131
|
+
/** A template string for mapping Identity names to MFA method names. Values to substitute should be placed in {{}}. For example, "{{entity.name}}@example.com". If blank, the Entity's name field will be used as-is. */
|
|
132
|
+
username_format?: string;
|
|
133
|
+
}
|
|
134
|
+
export const MfaConfigureOktaMethodRequest = /*@__PURE__*/ S.suspend(() =>
|
|
135
|
+
S.Struct({
|
|
136
|
+
method_id: S.String.pipe(T.Label()),
|
|
137
|
+
api_token: S.optional(S.String),
|
|
138
|
+
base_url: S.optional(S.String),
|
|
139
|
+
method_name: S.optional(S.String),
|
|
140
|
+
org_name: S.optional(S.String),
|
|
141
|
+
primary_email: S.optional(S.Boolean),
|
|
142
|
+
production: S.optional(S.Boolean),
|
|
143
|
+
username_format: S.optional(S.String),
|
|
144
|
+
}).pipe(
|
|
145
|
+
T.Http({
|
|
146
|
+
method: "POST",
|
|
147
|
+
uri: "/identity/mfa/method/okta/{method_id}",
|
|
148
|
+
code: 200,
|
|
149
|
+
}),
|
|
150
|
+
),
|
|
151
|
+
).annotate({
|
|
152
|
+
identifier: "MfaConfigureOktaMethodRequest",
|
|
153
|
+
}) as any as S.Schema<MfaConfigureOktaMethodRequest>;
|
|
154
|
+
|
|
155
|
+
export interface MfaConfigureOktaMethodResponse {}
|
|
156
|
+
export const MfaConfigureOktaMethodResponse = /*@__PURE__*/ S.suspend(() =>
|
|
157
|
+
S.Struct({}),
|
|
158
|
+
).annotate({
|
|
159
|
+
identifier: "MfaConfigureOktaMethodResponse",
|
|
160
|
+
}) as any as S.Schema<MfaConfigureOktaMethodResponse>;
|
|
161
|
+
|
|
162
|
+
export interface MfaConfigurePingIdMethodRequest {
|
|
163
|
+
/** The unique identifier for this MFA method. */
|
|
164
|
+
method_id: string;
|
|
165
|
+
/** The unique name identifier for this MFA method. */
|
|
166
|
+
method_name?: string;
|
|
167
|
+
/** The settings file provided by Ping, Base64-encoded. This must be a settings file suitable for third-party clients, not the PingID SDK or PingFederate. */
|
|
168
|
+
settings_file_base64?: string;
|
|
169
|
+
/** A template string for mapping Identity names to MFA method names. Values to subtitute should be placed in {{}}. For example, "{{alias.name}}@example.com". Currently-supported mappings: alias.name: The name returned by the mount configured via the mount_accessor parameter If blank, the Alias's name field will be used as-is. */
|
|
170
|
+
username_format?: string;
|
|
171
|
+
}
|
|
172
|
+
export const MfaConfigurePingIdMethodRequest = /*@__PURE__*/ S.suspend(() =>
|
|
173
|
+
S.Struct({
|
|
174
|
+
method_id: S.String.pipe(T.Label()),
|
|
175
|
+
method_name: S.optional(S.String),
|
|
176
|
+
settings_file_base64: S.optional(S.String),
|
|
177
|
+
username_format: S.optional(S.String),
|
|
178
|
+
}).pipe(
|
|
179
|
+
T.Http({
|
|
180
|
+
method: "POST",
|
|
181
|
+
uri: "/identity/mfa/method/pingid/{method_id}",
|
|
182
|
+
code: 200,
|
|
183
|
+
}),
|
|
184
|
+
),
|
|
185
|
+
).annotate({
|
|
186
|
+
identifier: "MfaConfigurePingIdMethodRequest",
|
|
187
|
+
}) as any as S.Schema<MfaConfigurePingIdMethodRequest>;
|
|
188
|
+
|
|
189
|
+
export interface MfaConfigurePingIdMethodResponse {}
|
|
190
|
+
export const MfaConfigurePingIdMethodResponse = /*@__PURE__*/ S.suspend(() =>
|
|
191
|
+
S.Struct({}),
|
|
192
|
+
).annotate({
|
|
193
|
+
identifier: "MfaConfigurePingIdMethodResponse",
|
|
194
|
+
}) as any as S.Schema<MfaConfigurePingIdMethodResponse>;
|
|
195
|
+
|
|
196
|
+
export interface MfaConfigureTotpMethodRequest {
|
|
197
|
+
/** The unique identifier for this MFA method. */
|
|
198
|
+
method_id: string;
|
|
199
|
+
/** The hashing algorithm used to generate the TOTP token. Options include SHA1, SHA256 and SHA512. */
|
|
200
|
+
algorithm?: string;
|
|
201
|
+
/** The number of digits in the generated TOTP token. This value can either be 6 or 8. */
|
|
202
|
+
digits?: number;
|
|
203
|
+
/** The name of the key's issuing organization. */
|
|
204
|
+
issuer?: string;
|
|
205
|
+
/** Determines the size in bytes of the generated key. */
|
|
206
|
+
key_size?: number;
|
|
207
|
+
/** Max number of allowed validation attempts. */
|
|
208
|
+
max_validation_attempts?: number;
|
|
209
|
+
/** The unique name identifier for this MFA method. */
|
|
210
|
+
method_name?: string;
|
|
211
|
+
/** The length of time used to generate a counter for the TOTP token calculation. */
|
|
212
|
+
period?: number;
|
|
213
|
+
/** The pixel size of the generated square QR code. */
|
|
214
|
+
qr_size?: number;
|
|
215
|
+
/** The number of delay periods that are allowed when validating a TOTP token. This value can either be 0 or 1. */
|
|
216
|
+
skew?: number;
|
|
217
|
+
}
|
|
218
|
+
export const MfaConfigureTotpMethodRequest = /*@__PURE__*/ S.suspend(() =>
|
|
219
|
+
S.Struct({
|
|
220
|
+
method_id: S.String.pipe(T.Label()),
|
|
221
|
+
algorithm: S.optional(S.String),
|
|
222
|
+
digits: S.optional(S.Number),
|
|
223
|
+
issuer: S.optional(S.String),
|
|
224
|
+
key_size: S.optional(S.Number),
|
|
225
|
+
max_validation_attempts: S.optional(S.Number),
|
|
226
|
+
method_name: S.optional(S.String),
|
|
227
|
+
period: S.optional(S.Number),
|
|
228
|
+
qr_size: S.optional(S.Number),
|
|
229
|
+
skew: S.optional(S.Number),
|
|
230
|
+
}).pipe(
|
|
231
|
+
T.Http({
|
|
232
|
+
method: "POST",
|
|
233
|
+
uri: "/identity/mfa/method/totp/{method_id}",
|
|
234
|
+
code: 200,
|
|
235
|
+
}),
|
|
236
|
+
),
|
|
237
|
+
).annotate({
|
|
238
|
+
identifier: "MfaConfigureTotpMethodRequest",
|
|
239
|
+
}) as any as S.Schema<MfaConfigureTotpMethodRequest>;
|
|
240
|
+
|
|
241
|
+
export interface MfaConfigureTotpMethodResponse {}
|
|
242
|
+
export const MfaConfigureTotpMethodResponse = /*@__PURE__*/ S.suspend(() =>
|
|
243
|
+
S.Struct({}),
|
|
244
|
+
).annotate({
|
|
245
|
+
identifier: "MfaConfigureTotpMethodResponse",
|
|
246
|
+
}) as any as S.Schema<MfaConfigureTotpMethodResponse>;
|
|
247
|
+
|
|
248
|
+
export interface MfaDeleteDuoMethodRequest {
|
|
249
|
+
/** The unique identifier for this MFA method. */
|
|
250
|
+
method_id: string;
|
|
251
|
+
}
|
|
252
|
+
export const MfaDeleteDuoMethodRequest = /*@__PURE__*/ S.suspend(() =>
|
|
253
|
+
S.Struct({
|
|
254
|
+
method_id: S.String.pipe(T.Label()),
|
|
255
|
+
}).pipe(
|
|
256
|
+
T.Http({
|
|
257
|
+
method: "DELETE",
|
|
258
|
+
uri: "/identity/mfa/method/duo/{method_id}",
|
|
259
|
+
code: 200,
|
|
260
|
+
}),
|
|
261
|
+
),
|
|
262
|
+
).annotate({
|
|
263
|
+
identifier: "MfaDeleteDuoMethodRequest",
|
|
264
|
+
}) as any as S.Schema<MfaDeleteDuoMethodRequest>;
|
|
265
|
+
|
|
266
|
+
export interface MfaDeleteDuoMethodResponse {}
|
|
267
|
+
export const MfaDeleteDuoMethodResponse = /*@__PURE__*/ S.suspend(() =>
|
|
268
|
+
S.Struct({}),
|
|
269
|
+
).annotate({
|
|
270
|
+
identifier: "MfaDeleteDuoMethodResponse",
|
|
271
|
+
}) as any as S.Schema<MfaDeleteDuoMethodResponse>;
|
|
272
|
+
|
|
273
|
+
export interface MfaDeleteLoginEnforcementRequest {
|
|
274
|
+
/** Name for this login enforcement configuration */
|
|
275
|
+
name: string;
|
|
276
|
+
}
|
|
277
|
+
export const MfaDeleteLoginEnforcementRequest = /*@__PURE__*/ S.suspend(() =>
|
|
278
|
+
S.Struct({
|
|
279
|
+
name: S.String.pipe(T.Label()),
|
|
280
|
+
}).pipe(
|
|
281
|
+
T.Http({
|
|
282
|
+
method: "DELETE",
|
|
283
|
+
uri: "/identity/mfa/login-enforcement/{name}",
|
|
284
|
+
code: 200,
|
|
285
|
+
}),
|
|
286
|
+
),
|
|
287
|
+
).annotate({
|
|
288
|
+
identifier: "MfaDeleteLoginEnforcementRequest",
|
|
289
|
+
}) as any as S.Schema<MfaDeleteLoginEnforcementRequest>;
|
|
290
|
+
|
|
291
|
+
export interface MfaDeleteLoginEnforcementResponse {}
|
|
292
|
+
export const MfaDeleteLoginEnforcementResponse = /*@__PURE__*/ S.suspend(() =>
|
|
293
|
+
S.Struct({}),
|
|
294
|
+
).annotate({
|
|
295
|
+
identifier: "MfaDeleteLoginEnforcementResponse",
|
|
296
|
+
}) as any as S.Schema<MfaDeleteLoginEnforcementResponse>;
|
|
297
|
+
|
|
298
|
+
export interface MfaDeleteOktaMethodRequest {
|
|
299
|
+
/** The unique identifier for this MFA method. */
|
|
300
|
+
method_id: string;
|
|
301
|
+
}
|
|
302
|
+
export const MfaDeleteOktaMethodRequest = /*@__PURE__*/ S.suspend(() =>
|
|
303
|
+
S.Struct({
|
|
304
|
+
method_id: S.String.pipe(T.Label()),
|
|
305
|
+
}).pipe(
|
|
306
|
+
T.Http({
|
|
307
|
+
method: "DELETE",
|
|
308
|
+
uri: "/identity/mfa/method/okta/{method_id}",
|
|
309
|
+
code: 200,
|
|
310
|
+
}),
|
|
311
|
+
),
|
|
312
|
+
).annotate({
|
|
313
|
+
identifier: "MfaDeleteOktaMethodRequest",
|
|
314
|
+
}) as any as S.Schema<MfaDeleteOktaMethodRequest>;
|
|
315
|
+
|
|
316
|
+
export interface MfaDeleteOktaMethodResponse {}
|
|
317
|
+
export const MfaDeleteOktaMethodResponse = /*@__PURE__*/ S.suspend(() =>
|
|
318
|
+
S.Struct({}),
|
|
319
|
+
).annotate({
|
|
320
|
+
identifier: "MfaDeleteOktaMethodResponse",
|
|
321
|
+
}) as any as S.Schema<MfaDeleteOktaMethodResponse>;
|
|
322
|
+
|
|
323
|
+
export interface MfaDeletePingIdMethodRequest {
|
|
324
|
+
/** The unique identifier for this MFA method. */
|
|
325
|
+
method_id: string;
|
|
326
|
+
}
|
|
327
|
+
export const MfaDeletePingIdMethodRequest = /*@__PURE__*/ S.suspend(() =>
|
|
328
|
+
S.Struct({
|
|
329
|
+
method_id: S.String.pipe(T.Label()),
|
|
330
|
+
}).pipe(
|
|
331
|
+
T.Http({
|
|
332
|
+
method: "DELETE",
|
|
333
|
+
uri: "/identity/mfa/method/pingid/{method_id}",
|
|
334
|
+
code: 200,
|
|
335
|
+
}),
|
|
336
|
+
),
|
|
337
|
+
).annotate({
|
|
338
|
+
identifier: "MfaDeletePingIdMethodRequest",
|
|
339
|
+
}) as any as S.Schema<MfaDeletePingIdMethodRequest>;
|
|
340
|
+
|
|
341
|
+
export interface MfaDeletePingIdMethodResponse {}
|
|
342
|
+
export const MfaDeletePingIdMethodResponse = /*@__PURE__*/ S.suspend(() =>
|
|
343
|
+
S.Struct({}),
|
|
344
|
+
).annotate({
|
|
345
|
+
identifier: "MfaDeletePingIdMethodResponse",
|
|
346
|
+
}) as any as S.Schema<MfaDeletePingIdMethodResponse>;
|
|
347
|
+
|
|
348
|
+
export interface MfaDeleteTotpMethodRequest {
|
|
349
|
+
/** The unique identifier for this MFA method. */
|
|
350
|
+
method_id: string;
|
|
351
|
+
}
|
|
352
|
+
export const MfaDeleteTotpMethodRequest = /*@__PURE__*/ S.suspend(() =>
|
|
353
|
+
S.Struct({
|
|
354
|
+
method_id: S.String.pipe(T.Label()),
|
|
355
|
+
}).pipe(
|
|
356
|
+
T.Http({
|
|
357
|
+
method: "DELETE",
|
|
358
|
+
uri: "/identity/mfa/method/totp/{method_id}",
|
|
359
|
+
code: 200,
|
|
360
|
+
}),
|
|
361
|
+
),
|
|
362
|
+
).annotate({
|
|
363
|
+
identifier: "MfaDeleteTotpMethodRequest",
|
|
364
|
+
}) as any as S.Schema<MfaDeleteTotpMethodRequest>;
|
|
365
|
+
|
|
366
|
+
export interface MfaDeleteTotpMethodResponse {}
|
|
367
|
+
export const MfaDeleteTotpMethodResponse = /*@__PURE__*/ S.suspend(() =>
|
|
368
|
+
S.Struct({}),
|
|
369
|
+
).annotate({
|
|
370
|
+
identifier: "MfaDeleteTotpMethodResponse",
|
|
371
|
+
}) as any as S.Schema<MfaDeleteTotpMethodResponse>;
|
|
372
|
+
|
|
373
|
+
export interface MfaGenerateTotpSecretRequest {
|
|
374
|
+
/** The unique identifier for this MFA method. */
|
|
375
|
+
method_id: string;
|
|
376
|
+
}
|
|
377
|
+
export const MfaGenerateTotpSecretRequest = /*@__PURE__*/ S.suspend(() =>
|
|
378
|
+
S.Struct({
|
|
379
|
+
method_id: S.String,
|
|
380
|
+
}).pipe(
|
|
381
|
+
T.Http({
|
|
382
|
+
method: "POST",
|
|
383
|
+
uri: "/identity/mfa/method/totp/generate",
|
|
384
|
+
code: 200,
|
|
385
|
+
}),
|
|
386
|
+
),
|
|
387
|
+
).annotate({
|
|
388
|
+
identifier: "MfaGenerateTotpSecretRequest",
|
|
389
|
+
}) as any as S.Schema<MfaGenerateTotpSecretRequest>;
|
|
390
|
+
|
|
391
|
+
export interface MfaGenerateTotpSecretResponse {}
|
|
392
|
+
export const MfaGenerateTotpSecretResponse = /*@__PURE__*/ S.suspend(() =>
|
|
393
|
+
S.Struct({}),
|
|
394
|
+
).annotate({
|
|
395
|
+
identifier: "MfaGenerateTotpSecretResponse",
|
|
396
|
+
}) as any as S.Schema<MfaGenerateTotpSecretResponse>;
|
|
397
|
+
|
|
398
|
+
export type MfaListDuoMethodsRequestList = "true";
|
|
399
|
+
export const MfaListDuoMethodsRequestList = S.String;
|
|
400
|
+
|
|
401
|
+
export interface MfaListDuoMethodsRequest {
|
|
402
|
+
/** Must be set to `true` */
|
|
403
|
+
list: MfaListDuoMethodsRequestList | (string & {});
|
|
404
|
+
}
|
|
405
|
+
export const MfaListDuoMethodsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
406
|
+
S.Struct({
|
|
407
|
+
list: MfaListDuoMethodsRequestList.pipe(T.Query()),
|
|
408
|
+
}).pipe(
|
|
409
|
+
T.Http({ method: "GET", uri: "/identity/mfa/method/duo", code: 200 }),
|
|
410
|
+
),
|
|
411
|
+
).annotate({
|
|
412
|
+
identifier: "MfaListDuoMethodsRequest",
|
|
413
|
+
}) as any as S.Schema<MfaListDuoMethodsRequest>;
|
|
414
|
+
|
|
415
|
+
export interface MfaListDuoMethodsResponse {}
|
|
416
|
+
export const MfaListDuoMethodsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
417
|
+
S.Struct({}),
|
|
418
|
+
).annotate({
|
|
419
|
+
identifier: "MfaListDuoMethodsResponse",
|
|
420
|
+
}) as any as S.Schema<MfaListDuoMethodsResponse>;
|
|
421
|
+
|
|
422
|
+
export type MfaListLoginEnforcementsRequestList = "true";
|
|
423
|
+
export const MfaListLoginEnforcementsRequestList = S.String;
|
|
424
|
+
|
|
425
|
+
export interface MfaListLoginEnforcementsRequest {
|
|
426
|
+
/** Must be set to `true` */
|
|
427
|
+
list: MfaListLoginEnforcementsRequestList | (string & {});
|
|
428
|
+
}
|
|
429
|
+
export const MfaListLoginEnforcementsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
430
|
+
S.Struct({
|
|
431
|
+
list: MfaListLoginEnforcementsRequestList.pipe(T.Query()),
|
|
432
|
+
}).pipe(
|
|
433
|
+
T.Http({
|
|
434
|
+
method: "GET",
|
|
435
|
+
uri: "/identity/mfa/login-enforcement",
|
|
436
|
+
code: 200,
|
|
437
|
+
}),
|
|
438
|
+
),
|
|
439
|
+
).annotate({
|
|
440
|
+
identifier: "MfaListLoginEnforcementsRequest",
|
|
441
|
+
}) as any as S.Schema<MfaListLoginEnforcementsRequest>;
|
|
442
|
+
|
|
443
|
+
export interface MfaListLoginEnforcementsResponse {}
|
|
444
|
+
export const MfaListLoginEnforcementsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
445
|
+
S.Struct({}),
|
|
446
|
+
).annotate({
|
|
447
|
+
identifier: "MfaListLoginEnforcementsResponse",
|
|
448
|
+
}) as any as S.Schema<MfaListLoginEnforcementsResponse>;
|
|
449
|
+
|
|
450
|
+
export type MfaListMethodsRequestList = "true";
|
|
451
|
+
export const MfaListMethodsRequestList = S.String;
|
|
452
|
+
|
|
453
|
+
export interface MfaListMethodsRequest {
|
|
454
|
+
/** Must be set to `true` */
|
|
455
|
+
list: MfaListMethodsRequestList | (string & {});
|
|
456
|
+
}
|
|
457
|
+
export const MfaListMethodsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
458
|
+
S.Struct({
|
|
459
|
+
list: MfaListMethodsRequestList.pipe(T.Query()),
|
|
460
|
+
}).pipe(T.Http({ method: "GET", uri: "/identity/mfa/method", code: 200 })),
|
|
461
|
+
).annotate({
|
|
462
|
+
identifier: "MfaListMethodsRequest",
|
|
463
|
+
}) as any as S.Schema<MfaListMethodsRequest>;
|
|
464
|
+
|
|
465
|
+
export interface MfaListMethodsResponse {}
|
|
466
|
+
export const MfaListMethodsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
467
|
+
S.Struct({}),
|
|
468
|
+
).annotate({
|
|
469
|
+
identifier: "MfaListMethodsResponse",
|
|
470
|
+
}) as any as S.Schema<MfaListMethodsResponse>;
|
|
471
|
+
|
|
472
|
+
export type MfaListOktaMethodsRequestList = "true";
|
|
473
|
+
export const MfaListOktaMethodsRequestList = S.String;
|
|
474
|
+
|
|
475
|
+
export interface MfaListOktaMethodsRequest {
|
|
476
|
+
/** Must be set to `true` */
|
|
477
|
+
list: MfaListOktaMethodsRequestList | (string & {});
|
|
478
|
+
}
|
|
479
|
+
export const MfaListOktaMethodsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
480
|
+
S.Struct({
|
|
481
|
+
list: MfaListOktaMethodsRequestList.pipe(T.Query()),
|
|
482
|
+
}).pipe(
|
|
483
|
+
T.Http({ method: "GET", uri: "/identity/mfa/method/okta", code: 200 }),
|
|
484
|
+
),
|
|
485
|
+
).annotate({
|
|
486
|
+
identifier: "MfaListOktaMethodsRequest",
|
|
487
|
+
}) as any as S.Schema<MfaListOktaMethodsRequest>;
|
|
488
|
+
|
|
489
|
+
export interface MfaListOktaMethodsResponse {}
|
|
490
|
+
export const MfaListOktaMethodsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
491
|
+
S.Struct({}),
|
|
492
|
+
).annotate({
|
|
493
|
+
identifier: "MfaListOktaMethodsResponse",
|
|
494
|
+
}) as any as S.Schema<MfaListOktaMethodsResponse>;
|
|
495
|
+
|
|
496
|
+
export type MfaListPingIdMethodsRequestList = "true";
|
|
497
|
+
export const MfaListPingIdMethodsRequestList = S.String;
|
|
498
|
+
|
|
499
|
+
export interface MfaListPingIdMethodsRequest {
|
|
500
|
+
/** Must be set to `true` */
|
|
501
|
+
list: MfaListPingIdMethodsRequestList | (string & {});
|
|
502
|
+
}
|
|
503
|
+
export const MfaListPingIdMethodsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
504
|
+
S.Struct({
|
|
505
|
+
list: MfaListPingIdMethodsRequestList.pipe(T.Query()),
|
|
506
|
+
}).pipe(
|
|
507
|
+
T.Http({ method: "GET", uri: "/identity/mfa/method/pingid", code: 200 }),
|
|
508
|
+
),
|
|
509
|
+
).annotate({
|
|
510
|
+
identifier: "MfaListPingIdMethodsRequest",
|
|
511
|
+
}) as any as S.Schema<MfaListPingIdMethodsRequest>;
|
|
512
|
+
|
|
513
|
+
export interface MfaListPingIdMethodsResponse {}
|
|
514
|
+
export const MfaListPingIdMethodsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
515
|
+
S.Struct({}),
|
|
516
|
+
).annotate({
|
|
517
|
+
identifier: "MfaListPingIdMethodsResponse",
|
|
518
|
+
}) as any as S.Schema<MfaListPingIdMethodsResponse>;
|
|
519
|
+
|
|
520
|
+
export type MfaListTotpMethodsRequestList = "true";
|
|
521
|
+
export const MfaListTotpMethodsRequestList = S.String;
|
|
522
|
+
|
|
523
|
+
export interface MfaListTotpMethodsRequest {
|
|
524
|
+
/** Must be set to `true` */
|
|
525
|
+
list: MfaListTotpMethodsRequestList | (string & {});
|
|
526
|
+
}
|
|
527
|
+
export const MfaListTotpMethodsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
528
|
+
S.Struct({
|
|
529
|
+
list: MfaListTotpMethodsRequestList.pipe(T.Query()),
|
|
530
|
+
}).pipe(
|
|
531
|
+
T.Http({ method: "GET", uri: "/identity/mfa/method/totp", code: 200 }),
|
|
532
|
+
),
|
|
533
|
+
).annotate({
|
|
534
|
+
identifier: "MfaListTotpMethodsRequest",
|
|
535
|
+
}) as any as S.Schema<MfaListTotpMethodsRequest>;
|
|
536
|
+
|
|
537
|
+
export interface MfaListTotpMethodsResponse {}
|
|
538
|
+
export const MfaListTotpMethodsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
539
|
+
S.Struct({}),
|
|
540
|
+
).annotate({
|
|
541
|
+
identifier: "MfaListTotpMethodsResponse",
|
|
542
|
+
}) as any as S.Schema<MfaListTotpMethodsResponse>;
|
|
543
|
+
|
|
544
|
+
export interface MfaReadDuoMethodConfigurationRequest {
|
|
545
|
+
/** The unique identifier for this MFA method. */
|
|
546
|
+
method_id: string;
|
|
547
|
+
}
|
|
548
|
+
export const MfaReadDuoMethodConfigurationRequest = /*@__PURE__*/ S.suspend(
|
|
549
|
+
() =>
|
|
550
|
+
S.Struct({
|
|
551
|
+
method_id: S.String.pipe(T.Label()),
|
|
552
|
+
}).pipe(
|
|
553
|
+
T.Http({
|
|
554
|
+
method: "GET",
|
|
555
|
+
uri: "/identity/mfa/method/duo/{method_id}",
|
|
556
|
+
code: 200,
|
|
557
|
+
}),
|
|
558
|
+
),
|
|
559
|
+
).annotate({
|
|
560
|
+
identifier: "MfaReadDuoMethodConfigurationRequest",
|
|
561
|
+
}) as any as S.Schema<MfaReadDuoMethodConfigurationRequest>;
|
|
562
|
+
|
|
563
|
+
export interface MfaReadDuoMethodConfigurationResponse {}
|
|
564
|
+
export const MfaReadDuoMethodConfigurationResponse = /*@__PURE__*/ S.suspend(
|
|
565
|
+
() => S.Struct({}),
|
|
566
|
+
).annotate({
|
|
567
|
+
identifier: "MfaReadDuoMethodConfigurationResponse",
|
|
568
|
+
}) as any as S.Schema<MfaReadDuoMethodConfigurationResponse>;
|
|
569
|
+
|
|
570
|
+
export interface MfaReadLoginEnforcementRequest {
|
|
571
|
+
/** Name for this login enforcement configuration */
|
|
572
|
+
name: string;
|
|
573
|
+
}
|
|
574
|
+
export const MfaReadLoginEnforcementRequest = /*@__PURE__*/ S.suspend(() =>
|
|
575
|
+
S.Struct({
|
|
576
|
+
name: S.String.pipe(T.Label()),
|
|
577
|
+
}).pipe(
|
|
578
|
+
T.Http({
|
|
579
|
+
method: "GET",
|
|
580
|
+
uri: "/identity/mfa/login-enforcement/{name}",
|
|
581
|
+
code: 200,
|
|
582
|
+
}),
|
|
583
|
+
),
|
|
584
|
+
).annotate({
|
|
585
|
+
identifier: "MfaReadLoginEnforcementRequest",
|
|
586
|
+
}) as any as S.Schema<MfaReadLoginEnforcementRequest>;
|
|
587
|
+
|
|
588
|
+
export interface MfaReadLoginEnforcementResponse {}
|
|
589
|
+
export const MfaReadLoginEnforcementResponse = /*@__PURE__*/ S.suspend(() =>
|
|
590
|
+
S.Struct({}),
|
|
591
|
+
).annotate({
|
|
592
|
+
identifier: "MfaReadLoginEnforcementResponse",
|
|
593
|
+
}) as any as S.Schema<MfaReadLoginEnforcementResponse>;
|
|
594
|
+
|
|
595
|
+
export interface MfaReadMethodConfigurationRequest {
|
|
596
|
+
/** The unique identifier for this MFA method. */
|
|
597
|
+
method_id: string;
|
|
598
|
+
}
|
|
599
|
+
export const MfaReadMethodConfigurationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
600
|
+
S.Struct({
|
|
601
|
+
method_id: S.String.pipe(T.Label()),
|
|
602
|
+
}).pipe(
|
|
603
|
+
T.Http({
|
|
604
|
+
method: "GET",
|
|
605
|
+
uri: "/identity/mfa/method/{method_id}",
|
|
606
|
+
code: 200,
|
|
607
|
+
}),
|
|
608
|
+
),
|
|
609
|
+
).annotate({
|
|
610
|
+
identifier: "MfaReadMethodConfigurationRequest",
|
|
611
|
+
}) as any as S.Schema<MfaReadMethodConfigurationRequest>;
|
|
612
|
+
|
|
613
|
+
export interface MfaReadMethodConfigurationResponse {}
|
|
614
|
+
export const MfaReadMethodConfigurationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
615
|
+
S.Struct({}),
|
|
616
|
+
).annotate({
|
|
617
|
+
identifier: "MfaReadMethodConfigurationResponse",
|
|
618
|
+
}) as any as S.Schema<MfaReadMethodConfigurationResponse>;
|
|
619
|
+
|
|
620
|
+
export interface MfaReadOktaMethodConfigurationRequest {
|
|
621
|
+
/** The unique identifier for this MFA method. */
|
|
622
|
+
method_id: string;
|
|
623
|
+
}
|
|
624
|
+
export const MfaReadOktaMethodConfigurationRequest = /*@__PURE__*/ S.suspend(
|
|
625
|
+
() =>
|
|
626
|
+
S.Struct({
|
|
627
|
+
method_id: S.String.pipe(T.Label()),
|
|
628
|
+
}).pipe(
|
|
629
|
+
T.Http({
|
|
630
|
+
method: "GET",
|
|
631
|
+
uri: "/identity/mfa/method/okta/{method_id}",
|
|
632
|
+
code: 200,
|
|
633
|
+
}),
|
|
634
|
+
),
|
|
635
|
+
).annotate({
|
|
636
|
+
identifier: "MfaReadOktaMethodConfigurationRequest",
|
|
637
|
+
}) as any as S.Schema<MfaReadOktaMethodConfigurationRequest>;
|
|
638
|
+
|
|
639
|
+
export interface MfaReadOktaMethodConfigurationResponse {}
|
|
640
|
+
export const MfaReadOktaMethodConfigurationResponse = /*@__PURE__*/ S.suspend(
|
|
641
|
+
() => S.Struct({}),
|
|
642
|
+
).annotate({
|
|
643
|
+
identifier: "MfaReadOktaMethodConfigurationResponse",
|
|
644
|
+
}) as any as S.Schema<MfaReadOktaMethodConfigurationResponse>;
|
|
645
|
+
|
|
646
|
+
export interface MfaReadPingIdMethodConfigurationRequest {
|
|
647
|
+
/** The unique identifier for this MFA method. */
|
|
648
|
+
method_id: string;
|
|
649
|
+
}
|
|
650
|
+
export const MfaReadPingIdMethodConfigurationRequest = /*@__PURE__*/ S.suspend(
|
|
651
|
+
() =>
|
|
652
|
+
S.Struct({
|
|
653
|
+
method_id: S.String.pipe(T.Label()),
|
|
654
|
+
}).pipe(
|
|
655
|
+
T.Http({
|
|
656
|
+
method: "GET",
|
|
657
|
+
uri: "/identity/mfa/method/pingid/{method_id}",
|
|
658
|
+
code: 200,
|
|
659
|
+
}),
|
|
660
|
+
),
|
|
661
|
+
).annotate({
|
|
662
|
+
identifier: "MfaReadPingIdMethodConfigurationRequest",
|
|
663
|
+
}) as any as S.Schema<MfaReadPingIdMethodConfigurationRequest>;
|
|
664
|
+
|
|
665
|
+
export interface MfaReadPingIdMethodConfigurationResponse {}
|
|
666
|
+
export const MfaReadPingIdMethodConfigurationResponse = /*@__PURE__*/ S.suspend(
|
|
667
|
+
() => S.Struct({}),
|
|
668
|
+
).annotate({
|
|
669
|
+
identifier: "MfaReadPingIdMethodConfigurationResponse",
|
|
670
|
+
}) as any as S.Schema<MfaReadPingIdMethodConfigurationResponse>;
|
|
671
|
+
|
|
672
|
+
export interface MfaReadTotpMethodConfigurationRequest {
|
|
673
|
+
/** The unique identifier for this MFA method. */
|
|
674
|
+
method_id: string;
|
|
675
|
+
}
|
|
676
|
+
export const MfaReadTotpMethodConfigurationRequest = /*@__PURE__*/ S.suspend(
|
|
677
|
+
() =>
|
|
678
|
+
S.Struct({
|
|
679
|
+
method_id: S.String.pipe(T.Label()),
|
|
680
|
+
}).pipe(
|
|
681
|
+
T.Http({
|
|
682
|
+
method: "GET",
|
|
683
|
+
uri: "/identity/mfa/method/totp/{method_id}",
|
|
684
|
+
code: 200,
|
|
685
|
+
}),
|
|
686
|
+
),
|
|
687
|
+
).annotate({
|
|
688
|
+
identifier: "MfaReadTotpMethodConfigurationRequest",
|
|
689
|
+
}) as any as S.Schema<MfaReadTotpMethodConfigurationRequest>;
|
|
690
|
+
|
|
691
|
+
export interface MfaReadTotpMethodConfigurationResponse {}
|
|
692
|
+
export const MfaReadTotpMethodConfigurationResponse = /*@__PURE__*/ S.suspend(
|
|
693
|
+
() => S.Struct({}),
|
|
694
|
+
).annotate({
|
|
695
|
+
identifier: "MfaReadTotpMethodConfigurationResponse",
|
|
696
|
+
}) as any as S.Schema<MfaReadTotpMethodConfigurationResponse>;
|
|
697
|
+
|
|
698
|
+
/** Array of auth mount accessor IDs */
|
|
699
|
+
export type MfaWriteLoginEnforcementRequestAuthMethodAccessorsList =
|
|
700
|
+
Array<string>;
|
|
701
|
+
export const MfaWriteLoginEnforcementRequestAuthMethodAccessorsList =
|
|
702
|
+
/*@__PURE__*/ S.Array(
|
|
703
|
+
S.String,
|
|
704
|
+
) as any as S.Schema<MfaWriteLoginEnforcementRequestAuthMethodAccessorsList>;
|
|
705
|
+
|
|
706
|
+
/** Array of auth mount types */
|
|
707
|
+
export type MfaWriteLoginEnforcementRequestAuthMethodTypesList = Array<string>;
|
|
708
|
+
export const MfaWriteLoginEnforcementRequestAuthMethodTypesList =
|
|
709
|
+
/*@__PURE__*/ S.Array(
|
|
710
|
+
S.String,
|
|
711
|
+
) as any as S.Schema<MfaWriteLoginEnforcementRequestAuthMethodTypesList>;
|
|
712
|
+
|
|
713
|
+
/** Array of identity entity IDs */
|
|
714
|
+
export type MfaWriteLoginEnforcementRequestIdentityEntityIdsList =
|
|
715
|
+
Array<string>;
|
|
716
|
+
export const MfaWriteLoginEnforcementRequestIdentityEntityIdsList =
|
|
717
|
+
/*@__PURE__*/ S.Array(
|
|
718
|
+
S.String,
|
|
719
|
+
) as any as S.Schema<MfaWriteLoginEnforcementRequestIdentityEntityIdsList>;
|
|
720
|
+
|
|
721
|
+
/** Array of identity group IDs */
|
|
722
|
+
export type MfaWriteLoginEnforcementRequestIdentityGroupIdsList = Array<string>;
|
|
723
|
+
export const MfaWriteLoginEnforcementRequestIdentityGroupIdsList =
|
|
724
|
+
/*@__PURE__*/ S.Array(
|
|
725
|
+
S.String,
|
|
726
|
+
) as any as S.Schema<MfaWriteLoginEnforcementRequestIdentityGroupIdsList>;
|
|
727
|
+
|
|
728
|
+
/** Array of Method IDs that determine what methods will be enforced */
|
|
729
|
+
export type MfaWriteLoginEnforcementRequestMfaMethodIdsList = Array<string>;
|
|
730
|
+
export const MfaWriteLoginEnforcementRequestMfaMethodIdsList =
|
|
731
|
+
/*@__PURE__*/ S.Array(
|
|
732
|
+
S.String,
|
|
733
|
+
) as any as S.Schema<MfaWriteLoginEnforcementRequestMfaMethodIdsList>;
|
|
734
|
+
|
|
735
|
+
export interface MfaWriteLoginEnforcementRequest {
|
|
736
|
+
/** Name for this login enforcement configuration */
|
|
737
|
+
name: string;
|
|
738
|
+
/** Array of auth mount accessor IDs */
|
|
739
|
+
auth_method_accessors?: MfaWriteLoginEnforcementRequestAuthMethodAccessorsList;
|
|
740
|
+
/** Array of auth mount types */
|
|
741
|
+
auth_method_types?: MfaWriteLoginEnforcementRequestAuthMethodTypesList;
|
|
742
|
+
/** Array of identity entity IDs */
|
|
743
|
+
identity_entity_ids?: MfaWriteLoginEnforcementRequestIdentityEntityIdsList;
|
|
744
|
+
/** Array of identity group IDs */
|
|
745
|
+
identity_group_ids?: MfaWriteLoginEnforcementRequestIdentityGroupIdsList;
|
|
746
|
+
/** Array of Method IDs that determine what methods will be enforced */
|
|
747
|
+
mfa_method_ids: MfaWriteLoginEnforcementRequestMfaMethodIdsList;
|
|
748
|
+
}
|
|
749
|
+
export const MfaWriteLoginEnforcementRequest = /*@__PURE__*/ S.suspend(() =>
|
|
750
|
+
S.Struct({
|
|
751
|
+
name: S.String.pipe(T.Label()),
|
|
752
|
+
auth_method_accessors: S.optional(
|
|
753
|
+
MfaWriteLoginEnforcementRequestAuthMethodAccessorsList,
|
|
754
|
+
),
|
|
755
|
+
auth_method_types: S.optional(
|
|
756
|
+
MfaWriteLoginEnforcementRequestAuthMethodTypesList,
|
|
757
|
+
),
|
|
758
|
+
identity_entity_ids: S.optional(
|
|
759
|
+
MfaWriteLoginEnforcementRequestIdentityEntityIdsList,
|
|
760
|
+
),
|
|
761
|
+
identity_group_ids: S.optional(
|
|
762
|
+
MfaWriteLoginEnforcementRequestIdentityGroupIdsList,
|
|
763
|
+
),
|
|
764
|
+
mfa_method_ids: MfaWriteLoginEnforcementRequestMfaMethodIdsList,
|
|
765
|
+
}).pipe(
|
|
766
|
+
T.Http({
|
|
767
|
+
method: "POST",
|
|
768
|
+
uri: "/identity/mfa/login-enforcement/{name}",
|
|
769
|
+
code: 200,
|
|
770
|
+
}),
|
|
771
|
+
),
|
|
772
|
+
).annotate({
|
|
773
|
+
identifier: "MfaWriteLoginEnforcementRequest",
|
|
774
|
+
}) as any as S.Schema<MfaWriteLoginEnforcementRequest>;
|
|
775
|
+
|
|
776
|
+
export interface MfaWriteLoginEnforcementResponse {}
|
|
777
|
+
export const MfaWriteLoginEnforcementResponse = /*@__PURE__*/ S.suspend(() =>
|
|
778
|
+
S.Struct({}),
|
|
779
|
+
).annotate({
|
|
780
|
+
identifier: "MfaWriteLoginEnforcementResponse",
|
|
781
|
+
}) as any as S.Schema<MfaWriteLoginEnforcementResponse>;
|
|
782
|
+
|
|
783
|
+
export interface ValidateMfaRequest {
|
|
784
|
+
/** A map from MFA method ID to a slice of passcodes or an empty slice if the method does not use passcodes */
|
|
785
|
+
mfa_payload: unknown;
|
|
786
|
+
/** ID for this MFA request */
|
|
787
|
+
mfa_request_id: string;
|
|
788
|
+
}
|
|
789
|
+
export const ValidateMfaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
790
|
+
S.Struct({
|
|
791
|
+
mfa_payload: S.Unknown,
|
|
792
|
+
mfa_request_id: S.String,
|
|
793
|
+
}).pipe(T.Http({ method: "POST", uri: "/sys/mfa/validate", code: 200 })),
|
|
794
|
+
).annotate({
|
|
795
|
+
identifier: "ValidateMfaRequest",
|
|
796
|
+
}) as any as S.Schema<ValidateMfaRequest>;
|
|
797
|
+
|
|
798
|
+
export interface ValidateMfaResponse {}
|
|
799
|
+
export const ValidateMfaResponse = /*@__PURE__*/ S.suspend(() =>
|
|
800
|
+
S.Struct({}),
|
|
801
|
+
).annotate({
|
|
802
|
+
identifier: "ValidateMfaResponse",
|
|
803
|
+
}) as any as S.Schema<ValidateMfaResponse>;
|
|
804
|
+
|
|
805
|
+
export type MfaAdminDestroyTotpSecretError = OpenBaoOpError;
|
|
806
|
+
/** Destroys a TOTP secret for the given MFA method ID on the given entity */
|
|
807
|
+
export const mfaAdminDestroyTotpSecret: API.OperationMethod<
|
|
808
|
+
MfaAdminDestroyTotpSecretRequest,
|
|
809
|
+
MfaAdminDestroyTotpSecretResponse,
|
|
810
|
+
MfaAdminDestroyTotpSecretError,
|
|
811
|
+
OpenBaoOpContext
|
|
812
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
813
|
+
input: MfaAdminDestroyTotpSecretRequest,
|
|
814
|
+
output: MfaAdminDestroyTotpSecretResponse,
|
|
815
|
+
errors: [],
|
|
816
|
+
protocol: OpenBaoProtocol,
|
|
817
|
+
retry: Retry.Retry,
|
|
818
|
+
}));
|
|
819
|
+
|
|
820
|
+
export type MfaAdminGenerateTotpSecretError = OpenBaoOpError;
|
|
821
|
+
/** Update or create TOTP secret for the given method ID on the given entity. */
|
|
822
|
+
export const mfaAdminGenerateTotpSecret: API.OperationMethod<
|
|
823
|
+
MfaAdminGenerateTotpSecretRequest,
|
|
824
|
+
MfaAdminGenerateTotpSecretResponse,
|
|
825
|
+
MfaAdminGenerateTotpSecretError,
|
|
826
|
+
OpenBaoOpContext
|
|
827
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
828
|
+
input: MfaAdminGenerateTotpSecretRequest,
|
|
829
|
+
output: MfaAdminGenerateTotpSecretResponse,
|
|
830
|
+
errors: [],
|
|
831
|
+
protocol: OpenBaoProtocol,
|
|
832
|
+
retry: Retry.Retry,
|
|
833
|
+
}));
|
|
834
|
+
|
|
835
|
+
export type MfaConfigureDuoMethodError = OpenBaoOpError;
|
|
836
|
+
/** Update or create a configuration for the given MFA method */
|
|
837
|
+
export const mfaConfigureDuoMethod: API.OperationMethod<
|
|
838
|
+
MfaConfigureDuoMethodRequest,
|
|
839
|
+
MfaConfigureDuoMethodResponse,
|
|
840
|
+
MfaConfigureDuoMethodError,
|
|
841
|
+
OpenBaoOpContext
|
|
842
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
843
|
+
input: MfaConfigureDuoMethodRequest,
|
|
844
|
+
output: MfaConfigureDuoMethodResponse,
|
|
845
|
+
errors: [],
|
|
846
|
+
protocol: OpenBaoProtocol,
|
|
847
|
+
retry: Retry.Retry,
|
|
848
|
+
}));
|
|
849
|
+
|
|
850
|
+
export type MfaConfigureOktaMethodError = OpenBaoOpError;
|
|
851
|
+
/** Update or create a configuration for the given MFA method */
|
|
852
|
+
export const mfaConfigureOktaMethod: API.OperationMethod<
|
|
853
|
+
MfaConfigureOktaMethodRequest,
|
|
854
|
+
MfaConfigureOktaMethodResponse,
|
|
855
|
+
MfaConfigureOktaMethodError,
|
|
856
|
+
OpenBaoOpContext
|
|
857
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
858
|
+
input: MfaConfigureOktaMethodRequest,
|
|
859
|
+
output: MfaConfigureOktaMethodResponse,
|
|
860
|
+
errors: [],
|
|
861
|
+
protocol: OpenBaoProtocol,
|
|
862
|
+
retry: Retry.Retry,
|
|
863
|
+
}));
|
|
864
|
+
|
|
865
|
+
export type MfaConfigurePingIdMethodError = OpenBaoOpError;
|
|
866
|
+
/** Update or create a configuration for the given MFA method */
|
|
867
|
+
export const mfaConfigurePingIdMethod: API.OperationMethod<
|
|
868
|
+
MfaConfigurePingIdMethodRequest,
|
|
869
|
+
MfaConfigurePingIdMethodResponse,
|
|
870
|
+
MfaConfigurePingIdMethodError,
|
|
871
|
+
OpenBaoOpContext
|
|
872
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
873
|
+
input: MfaConfigurePingIdMethodRequest,
|
|
874
|
+
output: MfaConfigurePingIdMethodResponse,
|
|
875
|
+
errors: [],
|
|
876
|
+
protocol: OpenBaoProtocol,
|
|
877
|
+
retry: Retry.Retry,
|
|
878
|
+
}));
|
|
879
|
+
|
|
880
|
+
export type MfaConfigureTotpMethodError = OpenBaoOpError;
|
|
881
|
+
/** Update or create a configuration for the given MFA method */
|
|
882
|
+
export const mfaConfigureTotpMethod: API.OperationMethod<
|
|
883
|
+
MfaConfigureTotpMethodRequest,
|
|
884
|
+
MfaConfigureTotpMethodResponse,
|
|
885
|
+
MfaConfigureTotpMethodError,
|
|
886
|
+
OpenBaoOpContext
|
|
887
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
888
|
+
input: MfaConfigureTotpMethodRequest,
|
|
889
|
+
output: MfaConfigureTotpMethodResponse,
|
|
890
|
+
errors: [],
|
|
891
|
+
protocol: OpenBaoProtocol,
|
|
892
|
+
retry: Retry.Retry,
|
|
893
|
+
}));
|
|
894
|
+
|
|
895
|
+
export type MfaDeleteDuoMethodError = OpenBaoOpError;
|
|
896
|
+
/** Delete a configuration for the given MFA method */
|
|
897
|
+
export const mfaDeleteDuoMethod: API.OperationMethod<
|
|
898
|
+
MfaDeleteDuoMethodRequest,
|
|
899
|
+
MfaDeleteDuoMethodResponse,
|
|
900
|
+
MfaDeleteDuoMethodError,
|
|
901
|
+
OpenBaoOpContext
|
|
902
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
903
|
+
input: MfaDeleteDuoMethodRequest,
|
|
904
|
+
output: MfaDeleteDuoMethodResponse,
|
|
905
|
+
errors: [],
|
|
906
|
+
protocol: OpenBaoProtocol,
|
|
907
|
+
retry: Retry.Retry,
|
|
908
|
+
}));
|
|
909
|
+
|
|
910
|
+
export type MfaDeleteLoginEnforcementError = OpenBaoOpError;
|
|
911
|
+
/** Delete a login enforcement */
|
|
912
|
+
export const mfaDeleteLoginEnforcement: API.OperationMethod<
|
|
913
|
+
MfaDeleteLoginEnforcementRequest,
|
|
914
|
+
MfaDeleteLoginEnforcementResponse,
|
|
915
|
+
MfaDeleteLoginEnforcementError,
|
|
916
|
+
OpenBaoOpContext
|
|
917
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
918
|
+
input: MfaDeleteLoginEnforcementRequest,
|
|
919
|
+
output: MfaDeleteLoginEnforcementResponse,
|
|
920
|
+
errors: [],
|
|
921
|
+
protocol: OpenBaoProtocol,
|
|
922
|
+
retry: Retry.Retry,
|
|
923
|
+
}));
|
|
924
|
+
|
|
925
|
+
export type MfaDeleteOktaMethodError = OpenBaoOpError;
|
|
926
|
+
/** Delete a configuration for the given MFA method */
|
|
927
|
+
export const mfaDeleteOktaMethod: API.OperationMethod<
|
|
928
|
+
MfaDeleteOktaMethodRequest,
|
|
929
|
+
MfaDeleteOktaMethodResponse,
|
|
930
|
+
MfaDeleteOktaMethodError,
|
|
931
|
+
OpenBaoOpContext
|
|
932
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
933
|
+
input: MfaDeleteOktaMethodRequest,
|
|
934
|
+
output: MfaDeleteOktaMethodResponse,
|
|
935
|
+
errors: [],
|
|
936
|
+
protocol: OpenBaoProtocol,
|
|
937
|
+
retry: Retry.Retry,
|
|
938
|
+
}));
|
|
939
|
+
|
|
940
|
+
export type MfaDeletePingIdMethodError = OpenBaoOpError;
|
|
941
|
+
/** Delete a configuration for the given MFA method */
|
|
942
|
+
export const mfaDeletePingIdMethod: API.OperationMethod<
|
|
943
|
+
MfaDeletePingIdMethodRequest,
|
|
944
|
+
MfaDeletePingIdMethodResponse,
|
|
945
|
+
MfaDeletePingIdMethodError,
|
|
946
|
+
OpenBaoOpContext
|
|
947
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
948
|
+
input: MfaDeletePingIdMethodRequest,
|
|
949
|
+
output: MfaDeletePingIdMethodResponse,
|
|
950
|
+
errors: [],
|
|
951
|
+
protocol: OpenBaoProtocol,
|
|
952
|
+
retry: Retry.Retry,
|
|
953
|
+
}));
|
|
954
|
+
|
|
955
|
+
export type MfaDeleteTotpMethodError = OpenBaoOpError;
|
|
956
|
+
/** Delete a configuration for the given MFA method */
|
|
957
|
+
export const mfaDeleteTotpMethod: API.OperationMethod<
|
|
958
|
+
MfaDeleteTotpMethodRequest,
|
|
959
|
+
MfaDeleteTotpMethodResponse,
|
|
960
|
+
MfaDeleteTotpMethodError,
|
|
961
|
+
OpenBaoOpContext
|
|
962
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
963
|
+
input: MfaDeleteTotpMethodRequest,
|
|
964
|
+
output: MfaDeleteTotpMethodResponse,
|
|
965
|
+
errors: [],
|
|
966
|
+
protocol: OpenBaoProtocol,
|
|
967
|
+
retry: Retry.Retry,
|
|
968
|
+
}));
|
|
969
|
+
|
|
970
|
+
export type MfaGenerateTotpSecretError = OpenBaoOpError;
|
|
971
|
+
/** Update or create TOTP secret for the given method ID on the given entity. */
|
|
972
|
+
export const mfaGenerateTotpSecret: API.OperationMethod<
|
|
973
|
+
MfaGenerateTotpSecretRequest,
|
|
974
|
+
MfaGenerateTotpSecretResponse,
|
|
975
|
+
MfaGenerateTotpSecretError,
|
|
976
|
+
OpenBaoOpContext
|
|
977
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
978
|
+
input: MfaGenerateTotpSecretRequest,
|
|
979
|
+
output: MfaGenerateTotpSecretResponse,
|
|
980
|
+
errors: [],
|
|
981
|
+
protocol: OpenBaoProtocol,
|
|
982
|
+
retry: Retry.Retry,
|
|
983
|
+
}));
|
|
984
|
+
|
|
985
|
+
export type MfaListDuoMethodsError = OpenBaoOpError;
|
|
986
|
+
/** List MFA method configurations for the given MFA method */
|
|
987
|
+
export const mfaListDuoMethods: API.OperationMethod<
|
|
988
|
+
MfaListDuoMethodsRequest,
|
|
989
|
+
MfaListDuoMethodsResponse,
|
|
990
|
+
MfaListDuoMethodsError,
|
|
991
|
+
OpenBaoOpContext
|
|
992
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
993
|
+
input: MfaListDuoMethodsRequest,
|
|
994
|
+
output: MfaListDuoMethodsResponse,
|
|
995
|
+
errors: [],
|
|
996
|
+
protocol: OpenBaoProtocol,
|
|
997
|
+
retry: Retry.Retry,
|
|
998
|
+
}));
|
|
999
|
+
|
|
1000
|
+
export type MfaListLoginEnforcementsError = OpenBaoOpError;
|
|
1001
|
+
/** List login enforcements */
|
|
1002
|
+
export const mfaListLoginEnforcements: API.OperationMethod<
|
|
1003
|
+
MfaListLoginEnforcementsRequest,
|
|
1004
|
+
MfaListLoginEnforcementsResponse,
|
|
1005
|
+
MfaListLoginEnforcementsError,
|
|
1006
|
+
OpenBaoOpContext
|
|
1007
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1008
|
+
input: MfaListLoginEnforcementsRequest,
|
|
1009
|
+
output: MfaListLoginEnforcementsResponse,
|
|
1010
|
+
errors: [],
|
|
1011
|
+
protocol: OpenBaoProtocol,
|
|
1012
|
+
retry: Retry.Retry,
|
|
1013
|
+
}));
|
|
1014
|
+
|
|
1015
|
+
export type MfaListMethodsError = OpenBaoOpError;
|
|
1016
|
+
/** List MFA method configurations for all MFA methods */
|
|
1017
|
+
export const mfaListMethods: API.OperationMethod<
|
|
1018
|
+
MfaListMethodsRequest,
|
|
1019
|
+
MfaListMethodsResponse,
|
|
1020
|
+
MfaListMethodsError,
|
|
1021
|
+
OpenBaoOpContext
|
|
1022
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1023
|
+
input: MfaListMethodsRequest,
|
|
1024
|
+
output: MfaListMethodsResponse,
|
|
1025
|
+
errors: [],
|
|
1026
|
+
protocol: OpenBaoProtocol,
|
|
1027
|
+
retry: Retry.Retry,
|
|
1028
|
+
}));
|
|
1029
|
+
|
|
1030
|
+
export type MfaListOktaMethodsError = OpenBaoOpError;
|
|
1031
|
+
/** List MFA method configurations for the given MFA method */
|
|
1032
|
+
export const mfaListOktaMethods: API.OperationMethod<
|
|
1033
|
+
MfaListOktaMethodsRequest,
|
|
1034
|
+
MfaListOktaMethodsResponse,
|
|
1035
|
+
MfaListOktaMethodsError,
|
|
1036
|
+
OpenBaoOpContext
|
|
1037
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1038
|
+
input: MfaListOktaMethodsRequest,
|
|
1039
|
+
output: MfaListOktaMethodsResponse,
|
|
1040
|
+
errors: [],
|
|
1041
|
+
protocol: OpenBaoProtocol,
|
|
1042
|
+
retry: Retry.Retry,
|
|
1043
|
+
}));
|
|
1044
|
+
|
|
1045
|
+
export type MfaListPingIdMethodsError = OpenBaoOpError;
|
|
1046
|
+
/** List MFA method configurations for the given MFA method */
|
|
1047
|
+
export const mfaListPingIdMethods: API.OperationMethod<
|
|
1048
|
+
MfaListPingIdMethodsRequest,
|
|
1049
|
+
MfaListPingIdMethodsResponse,
|
|
1050
|
+
MfaListPingIdMethodsError,
|
|
1051
|
+
OpenBaoOpContext
|
|
1052
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1053
|
+
input: MfaListPingIdMethodsRequest,
|
|
1054
|
+
output: MfaListPingIdMethodsResponse,
|
|
1055
|
+
errors: [],
|
|
1056
|
+
protocol: OpenBaoProtocol,
|
|
1057
|
+
retry: Retry.Retry,
|
|
1058
|
+
}));
|
|
1059
|
+
|
|
1060
|
+
export type MfaListTotpMethodsError = OpenBaoOpError;
|
|
1061
|
+
/** List MFA method configurations for the given MFA method */
|
|
1062
|
+
export const mfaListTotpMethods: API.OperationMethod<
|
|
1063
|
+
MfaListTotpMethodsRequest,
|
|
1064
|
+
MfaListTotpMethodsResponse,
|
|
1065
|
+
MfaListTotpMethodsError,
|
|
1066
|
+
OpenBaoOpContext
|
|
1067
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1068
|
+
input: MfaListTotpMethodsRequest,
|
|
1069
|
+
output: MfaListTotpMethodsResponse,
|
|
1070
|
+
errors: [],
|
|
1071
|
+
protocol: OpenBaoProtocol,
|
|
1072
|
+
retry: Retry.Retry,
|
|
1073
|
+
}));
|
|
1074
|
+
|
|
1075
|
+
export type MfaReadDuoMethodConfigurationError = OpenBaoOpError;
|
|
1076
|
+
/** Read the current configuration for the given MFA method */
|
|
1077
|
+
export const mfaReadDuoMethodConfiguration: API.OperationMethod<
|
|
1078
|
+
MfaReadDuoMethodConfigurationRequest,
|
|
1079
|
+
MfaReadDuoMethodConfigurationResponse,
|
|
1080
|
+
MfaReadDuoMethodConfigurationError,
|
|
1081
|
+
OpenBaoOpContext
|
|
1082
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1083
|
+
input: MfaReadDuoMethodConfigurationRequest,
|
|
1084
|
+
output: MfaReadDuoMethodConfigurationResponse,
|
|
1085
|
+
errors: [],
|
|
1086
|
+
protocol: OpenBaoProtocol,
|
|
1087
|
+
retry: Retry.Retry,
|
|
1088
|
+
}));
|
|
1089
|
+
|
|
1090
|
+
export type MfaReadLoginEnforcementError = OpenBaoOpError;
|
|
1091
|
+
/** Read the current login enforcement */
|
|
1092
|
+
export const mfaReadLoginEnforcement: API.OperationMethod<
|
|
1093
|
+
MfaReadLoginEnforcementRequest,
|
|
1094
|
+
MfaReadLoginEnforcementResponse,
|
|
1095
|
+
MfaReadLoginEnforcementError,
|
|
1096
|
+
OpenBaoOpContext
|
|
1097
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1098
|
+
input: MfaReadLoginEnforcementRequest,
|
|
1099
|
+
output: MfaReadLoginEnforcementResponse,
|
|
1100
|
+
errors: [],
|
|
1101
|
+
protocol: OpenBaoProtocol,
|
|
1102
|
+
retry: Retry.Retry,
|
|
1103
|
+
}));
|
|
1104
|
+
|
|
1105
|
+
export type MfaReadMethodConfigurationError = OpenBaoOpError;
|
|
1106
|
+
/** Read the current configuration for the given ID regardless of the MFA method type */
|
|
1107
|
+
export const mfaReadMethodConfiguration: API.OperationMethod<
|
|
1108
|
+
MfaReadMethodConfigurationRequest,
|
|
1109
|
+
MfaReadMethodConfigurationResponse,
|
|
1110
|
+
MfaReadMethodConfigurationError,
|
|
1111
|
+
OpenBaoOpContext
|
|
1112
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1113
|
+
input: MfaReadMethodConfigurationRequest,
|
|
1114
|
+
output: MfaReadMethodConfigurationResponse,
|
|
1115
|
+
errors: [],
|
|
1116
|
+
protocol: OpenBaoProtocol,
|
|
1117
|
+
retry: Retry.Retry,
|
|
1118
|
+
}));
|
|
1119
|
+
|
|
1120
|
+
export type MfaReadOktaMethodConfigurationError = OpenBaoOpError;
|
|
1121
|
+
/** Read the current configuration for the given MFA method */
|
|
1122
|
+
export const mfaReadOktaMethodConfiguration: API.OperationMethod<
|
|
1123
|
+
MfaReadOktaMethodConfigurationRequest,
|
|
1124
|
+
MfaReadOktaMethodConfigurationResponse,
|
|
1125
|
+
MfaReadOktaMethodConfigurationError,
|
|
1126
|
+
OpenBaoOpContext
|
|
1127
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1128
|
+
input: MfaReadOktaMethodConfigurationRequest,
|
|
1129
|
+
output: MfaReadOktaMethodConfigurationResponse,
|
|
1130
|
+
errors: [],
|
|
1131
|
+
protocol: OpenBaoProtocol,
|
|
1132
|
+
retry: Retry.Retry,
|
|
1133
|
+
}));
|
|
1134
|
+
|
|
1135
|
+
export type MfaReadPingIdMethodConfigurationError = OpenBaoOpError;
|
|
1136
|
+
/** Read the current configuration for the given MFA method */
|
|
1137
|
+
export const mfaReadPingIdMethodConfiguration: API.OperationMethod<
|
|
1138
|
+
MfaReadPingIdMethodConfigurationRequest,
|
|
1139
|
+
MfaReadPingIdMethodConfigurationResponse,
|
|
1140
|
+
MfaReadPingIdMethodConfigurationError,
|
|
1141
|
+
OpenBaoOpContext
|
|
1142
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1143
|
+
input: MfaReadPingIdMethodConfigurationRequest,
|
|
1144
|
+
output: MfaReadPingIdMethodConfigurationResponse,
|
|
1145
|
+
errors: [],
|
|
1146
|
+
protocol: OpenBaoProtocol,
|
|
1147
|
+
retry: Retry.Retry,
|
|
1148
|
+
}));
|
|
1149
|
+
|
|
1150
|
+
export type MfaReadTotpMethodConfigurationError = OpenBaoOpError;
|
|
1151
|
+
/** Read the current configuration for the given MFA method */
|
|
1152
|
+
export const mfaReadTotpMethodConfiguration: API.OperationMethod<
|
|
1153
|
+
MfaReadTotpMethodConfigurationRequest,
|
|
1154
|
+
MfaReadTotpMethodConfigurationResponse,
|
|
1155
|
+
MfaReadTotpMethodConfigurationError,
|
|
1156
|
+
OpenBaoOpContext
|
|
1157
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1158
|
+
input: MfaReadTotpMethodConfigurationRequest,
|
|
1159
|
+
output: MfaReadTotpMethodConfigurationResponse,
|
|
1160
|
+
errors: [],
|
|
1161
|
+
protocol: OpenBaoProtocol,
|
|
1162
|
+
retry: Retry.Retry,
|
|
1163
|
+
}));
|
|
1164
|
+
|
|
1165
|
+
export type MfaWriteLoginEnforcementError = OpenBaoOpError;
|
|
1166
|
+
/** Create or update a login enforcement */
|
|
1167
|
+
export const mfaWriteLoginEnforcement: API.OperationMethod<
|
|
1168
|
+
MfaWriteLoginEnforcementRequest,
|
|
1169
|
+
MfaWriteLoginEnforcementResponse,
|
|
1170
|
+
MfaWriteLoginEnforcementError,
|
|
1171
|
+
OpenBaoOpContext
|
|
1172
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1173
|
+
input: MfaWriteLoginEnforcementRequest,
|
|
1174
|
+
output: MfaWriteLoginEnforcementResponse,
|
|
1175
|
+
errors: [],
|
|
1176
|
+
protocol: OpenBaoProtocol,
|
|
1177
|
+
retry: Retry.Retry,
|
|
1178
|
+
}));
|
|
1179
|
+
|
|
1180
|
+
export type ValidateMfaError = OpenBaoOpError;
|
|
1181
|
+
/** Validates the login for the given MFA methods. Upon successful validation, it returns an auth response containing the client token */
|
|
1182
|
+
export const validateMfa: API.OperationMethod<
|
|
1183
|
+
ValidateMfaRequest,
|
|
1184
|
+
ValidateMfaResponse,
|
|
1185
|
+
ValidateMfaError,
|
|
1186
|
+
OpenBaoOpContext
|
|
1187
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1188
|
+
input: ValidateMfaRequest,
|
|
1189
|
+
output: ValidateMfaResponse,
|
|
1190
|
+
errors: [],
|
|
1191
|
+
protocol: OpenBaoProtocol,
|
|
1192
|
+
retry: Retry.Retry,
|
|
1193
|
+
}));
|