@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,1351 @@
|
|
|
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 SshConfigureDefaultCaRequest {
|
|
15
|
+
/** Path that the backend was mounted at */
|
|
16
|
+
ssh_mount_path: string;
|
|
17
|
+
/** Generate SSH key pair internally rather than use the private_key and public_key fields. */
|
|
18
|
+
generate_signing_key?: boolean;
|
|
19
|
+
/** Optional issuer name that can be used to identify the issuer. */
|
|
20
|
+
issuer_name?: string;
|
|
21
|
+
/** Specifies the desired key bits when generating variable-length keys (such as when key_type="ssh-rsa") or which NIST P-curve to use when key_type="ec" (256, 384, or 521). */
|
|
22
|
+
key_bits?: number;
|
|
23
|
+
/** Specifies the desired key type when generating; could be a OpenSSH key type identifier (ssh-rsa, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, or ssh-ed25519) or an algorithm (rsa, ec, ed25519). */
|
|
24
|
+
key_type?: string;
|
|
25
|
+
/** Private half of the SSH key that will be used to sign certificates. */
|
|
26
|
+
private_key?: string;
|
|
27
|
+
/** Public half of the SSH key that will be used to sign certificates. */
|
|
28
|
+
public_key?: string;
|
|
29
|
+
}
|
|
30
|
+
export const SshConfigureDefaultCaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
31
|
+
S.Struct({
|
|
32
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
33
|
+
generate_signing_key: S.optional(S.Boolean),
|
|
34
|
+
issuer_name: S.optional(S.String),
|
|
35
|
+
key_bits: S.optional(S.Number),
|
|
36
|
+
key_type: S.optional(S.String),
|
|
37
|
+
private_key: S.optional(S.String),
|
|
38
|
+
public_key: S.optional(S.String),
|
|
39
|
+
}).pipe(
|
|
40
|
+
T.Http({ method: "POST", uri: "/{ssh_mount_path}/config/ca", code: 200 }),
|
|
41
|
+
),
|
|
42
|
+
).annotate({
|
|
43
|
+
identifier: "SshConfigureDefaultCaRequest",
|
|
44
|
+
}) as any as S.Schema<SshConfigureDefaultCaRequest>;
|
|
45
|
+
|
|
46
|
+
export interface SshConfigureDefaultCaResponse {
|
|
47
|
+
/** Issuer Id */
|
|
48
|
+
issuer_id?: string;
|
|
49
|
+
/** Issuer Name */
|
|
50
|
+
issuer_name?: string;
|
|
51
|
+
/** Issuer public key */
|
|
52
|
+
public_key?: boolean;
|
|
53
|
+
}
|
|
54
|
+
export const SshConfigureDefaultCaResponse = /*@__PURE__*/ S.suspend(() =>
|
|
55
|
+
S.Struct({
|
|
56
|
+
issuer_id: S.optional(S.String),
|
|
57
|
+
issuer_name: S.optional(S.String),
|
|
58
|
+
public_key: S.optional(S.Boolean),
|
|
59
|
+
}),
|
|
60
|
+
).annotate({
|
|
61
|
+
identifier: "SshConfigureDefaultCaResponse",
|
|
62
|
+
}) as any as S.Schema<SshConfigureDefaultCaResponse>;
|
|
63
|
+
|
|
64
|
+
/** [Required] Comma separated list of role names which allows credentials to be requested for any IP address. CIDR blocks previously registered under these roles will be ignored. */
|
|
65
|
+
export type SshConfigureZeroAddressRequestRolesList = Array<string>;
|
|
66
|
+
export const SshConfigureZeroAddressRequestRolesList = /*@__PURE__*/ S.Array(
|
|
67
|
+
S.String,
|
|
68
|
+
) as any as S.Schema<SshConfigureZeroAddressRequestRolesList>;
|
|
69
|
+
|
|
70
|
+
export interface SshConfigureZeroAddressRequest {
|
|
71
|
+
/** Path that the backend was mounted at */
|
|
72
|
+
ssh_mount_path: string;
|
|
73
|
+
/** [Required] Comma separated list of role names which allows credentials to be requested for any IP address. CIDR blocks previously registered under these roles will be ignored. */
|
|
74
|
+
roles?: SshConfigureZeroAddressRequestRolesList;
|
|
75
|
+
}
|
|
76
|
+
export const SshConfigureZeroAddressRequest = /*@__PURE__*/ S.suspend(() =>
|
|
77
|
+
S.Struct({
|
|
78
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
79
|
+
roles: S.optional(SshConfigureZeroAddressRequestRolesList),
|
|
80
|
+
}).pipe(
|
|
81
|
+
T.Http({
|
|
82
|
+
method: "POST",
|
|
83
|
+
uri: "/{ssh_mount_path}/config/zeroaddress",
|
|
84
|
+
code: 200,
|
|
85
|
+
}),
|
|
86
|
+
),
|
|
87
|
+
).annotate({
|
|
88
|
+
identifier: "SshConfigureZeroAddressRequest",
|
|
89
|
+
}) as any as S.Schema<SshConfigureZeroAddressRequest>;
|
|
90
|
+
|
|
91
|
+
export interface SshConfigureZeroAddressResponse {}
|
|
92
|
+
export const SshConfigureZeroAddressResponse = /*@__PURE__*/ S.suspend(() =>
|
|
93
|
+
S.Struct({}),
|
|
94
|
+
).annotate({
|
|
95
|
+
identifier: "SshConfigureZeroAddressResponse",
|
|
96
|
+
}) as any as S.Schema<SshConfigureZeroAddressResponse>;
|
|
97
|
+
|
|
98
|
+
export interface SshDeleteIssuerRequest {
|
|
99
|
+
/** Path that the backend was mounted at */
|
|
100
|
+
ssh_mount_path: string;
|
|
101
|
+
/** Reference to a existing issuer; either "default" for the configured default issuer, an identifier or the name assigned to the issuer. */
|
|
102
|
+
issuer_ref: string;
|
|
103
|
+
}
|
|
104
|
+
export const SshDeleteIssuerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
105
|
+
S.Struct({
|
|
106
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
107
|
+
issuer_ref: S.String.pipe(T.Label()),
|
|
108
|
+
}).pipe(
|
|
109
|
+
T.Http({
|
|
110
|
+
method: "DELETE",
|
|
111
|
+
uri: "/{ssh_mount_path}/issuer/{issuer_ref}",
|
|
112
|
+
code: 200,
|
|
113
|
+
}),
|
|
114
|
+
),
|
|
115
|
+
).annotate({
|
|
116
|
+
identifier: "SshDeleteIssuerRequest",
|
|
117
|
+
}) as any as S.Schema<SshDeleteIssuerRequest>;
|
|
118
|
+
|
|
119
|
+
export interface SshDeleteIssuerResponse {}
|
|
120
|
+
export const SshDeleteIssuerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
121
|
+
S.Struct({}),
|
|
122
|
+
).annotate({
|
|
123
|
+
identifier: "SshDeleteIssuerResponse",
|
|
124
|
+
}) as any as S.Schema<SshDeleteIssuerResponse>;
|
|
125
|
+
|
|
126
|
+
export interface SshDeleteRoleRequest {
|
|
127
|
+
/** Path that the backend was mounted at */
|
|
128
|
+
ssh_mount_path: string;
|
|
129
|
+
/** [Required for all types] Name of the role being created. */
|
|
130
|
+
role: string;
|
|
131
|
+
}
|
|
132
|
+
export const SshDeleteRoleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
133
|
+
S.Struct({
|
|
134
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
135
|
+
role: S.String.pipe(T.Label()),
|
|
136
|
+
}).pipe(
|
|
137
|
+
T.Http({
|
|
138
|
+
method: "DELETE",
|
|
139
|
+
uri: "/{ssh_mount_path}/roles/{role}",
|
|
140
|
+
code: 200,
|
|
141
|
+
}),
|
|
142
|
+
),
|
|
143
|
+
).annotate({
|
|
144
|
+
identifier: "SshDeleteRoleRequest",
|
|
145
|
+
}) as any as S.Schema<SshDeleteRoleRequest>;
|
|
146
|
+
|
|
147
|
+
export interface SshDeleteRoleResponse {}
|
|
148
|
+
export const SshDeleteRoleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
149
|
+
S.Struct({}),
|
|
150
|
+
).annotate({
|
|
151
|
+
identifier: "SshDeleteRoleResponse",
|
|
152
|
+
}) as any as S.Schema<SshDeleteRoleResponse>;
|
|
153
|
+
|
|
154
|
+
export interface SshDeleteZeroAddressConfigurationRequest {
|
|
155
|
+
/** Path that the backend was mounted at */
|
|
156
|
+
ssh_mount_path: string;
|
|
157
|
+
}
|
|
158
|
+
export const SshDeleteZeroAddressConfigurationRequest = /*@__PURE__*/ S.suspend(
|
|
159
|
+
() =>
|
|
160
|
+
S.Struct({
|
|
161
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
162
|
+
}).pipe(
|
|
163
|
+
T.Http({
|
|
164
|
+
method: "DELETE",
|
|
165
|
+
uri: "/{ssh_mount_path}/config/zeroaddress",
|
|
166
|
+
code: 200,
|
|
167
|
+
}),
|
|
168
|
+
),
|
|
169
|
+
).annotate({
|
|
170
|
+
identifier: "SshDeleteZeroAddressConfigurationRequest",
|
|
171
|
+
}) as any as S.Schema<SshDeleteZeroAddressConfigurationRequest>;
|
|
172
|
+
|
|
173
|
+
export interface SshDeleteZeroAddressConfigurationResponse {}
|
|
174
|
+
export const SshDeleteZeroAddressConfigurationResponse =
|
|
175
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
176
|
+
identifier: "SshDeleteZeroAddressConfigurationResponse",
|
|
177
|
+
}) as any as S.Schema<SshDeleteZeroAddressConfigurationResponse>;
|
|
178
|
+
|
|
179
|
+
export interface SshGenerateCredentialsRequest {
|
|
180
|
+
/** Path that the backend was mounted at */
|
|
181
|
+
ssh_mount_path: string;
|
|
182
|
+
/** [Required] Name of the role */
|
|
183
|
+
role: string;
|
|
184
|
+
/** [Required] IP of the remote host */
|
|
185
|
+
ip?: string;
|
|
186
|
+
/** [Optional] Username in remote host */
|
|
187
|
+
username?: string;
|
|
188
|
+
}
|
|
189
|
+
export const SshGenerateCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
190
|
+
S.Struct({
|
|
191
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
192
|
+
role: S.String.pipe(T.Label()),
|
|
193
|
+
ip: S.optional(S.String),
|
|
194
|
+
username: S.optional(S.String),
|
|
195
|
+
}).pipe(
|
|
196
|
+
T.Http({
|
|
197
|
+
method: "POST",
|
|
198
|
+
uri: "/{ssh_mount_path}/creds/{role}",
|
|
199
|
+
code: 200,
|
|
200
|
+
}),
|
|
201
|
+
),
|
|
202
|
+
).annotate({
|
|
203
|
+
identifier: "SshGenerateCredentialsRequest",
|
|
204
|
+
}) as any as S.Schema<SshGenerateCredentialsRequest>;
|
|
205
|
+
|
|
206
|
+
export interface SshGenerateCredentialsResponse {}
|
|
207
|
+
export const SshGenerateCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
208
|
+
S.Struct({}),
|
|
209
|
+
).annotate({
|
|
210
|
+
identifier: "SshGenerateCredentialsResponse",
|
|
211
|
+
}) as any as S.Schema<SshGenerateCredentialsResponse>;
|
|
212
|
+
|
|
213
|
+
export interface SshGetIssuerRequest {
|
|
214
|
+
/** Path that the backend was mounted at */
|
|
215
|
+
ssh_mount_path: string;
|
|
216
|
+
/** Reference to a existing issuer; either "default" for the configured default issuer, an identifier or the name assigned to the issuer. */
|
|
217
|
+
issuer_ref: string;
|
|
218
|
+
}
|
|
219
|
+
export const SshGetIssuerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
220
|
+
S.Struct({
|
|
221
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
222
|
+
issuer_ref: S.String.pipe(T.Label()),
|
|
223
|
+
}).pipe(
|
|
224
|
+
T.Http({
|
|
225
|
+
method: "GET",
|
|
226
|
+
uri: "/{ssh_mount_path}/issuer/{issuer_ref}/public_key",
|
|
227
|
+
code: 200,
|
|
228
|
+
}),
|
|
229
|
+
),
|
|
230
|
+
).annotate({
|
|
231
|
+
identifier: "SshGetIssuerRequest",
|
|
232
|
+
}) as any as S.Schema<SshGetIssuerRequest>;
|
|
233
|
+
|
|
234
|
+
export interface SshGetIssuerResponse {}
|
|
235
|
+
export const SshGetIssuerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
236
|
+
S.Struct({}),
|
|
237
|
+
).annotate({
|
|
238
|
+
identifier: "SshGetIssuerResponse",
|
|
239
|
+
}) as any as S.Schema<SshGetIssuerResponse>;
|
|
240
|
+
|
|
241
|
+
export interface SshIssueCertificateRequest {
|
|
242
|
+
/** Path that the backend was mounted at */
|
|
243
|
+
ssh_mount_path: string;
|
|
244
|
+
/** The desired role with configuration for this request. */
|
|
245
|
+
role: string;
|
|
246
|
+
/** Type of certificate to be created; either "user" or "host". */
|
|
247
|
+
cert_type?: string;
|
|
248
|
+
/** Critical options that the certificate should be signed for. */
|
|
249
|
+
critical_options?: unknown;
|
|
250
|
+
/** Extensions that the certificate should be signed for. */
|
|
251
|
+
extensions?: unknown;
|
|
252
|
+
/** Specifies the number of bits to use for the generated keys. */
|
|
253
|
+
key_bits?: number;
|
|
254
|
+
/** Key id that the created certificate should have. If not specified, the display name of the token will be used. */
|
|
255
|
+
key_id?: string;
|
|
256
|
+
/** Specifies the desired key type; must be `rsa`, `ed25519` or `ec` */
|
|
257
|
+
key_type?: string;
|
|
258
|
+
/** The requested Time To Live for the SSH certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be later than the role max TTL. */
|
|
259
|
+
ttl?: number;
|
|
260
|
+
/** Valid principals, either usernames or hostnames, that the certificate should be signed for. */
|
|
261
|
+
valid_principals?: string;
|
|
262
|
+
}
|
|
263
|
+
export const SshIssueCertificateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
264
|
+
S.Struct({
|
|
265
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
266
|
+
role: S.String.pipe(T.Label()),
|
|
267
|
+
cert_type: S.optional(S.String),
|
|
268
|
+
critical_options: S.optional(S.Unknown),
|
|
269
|
+
extensions: S.optional(S.Unknown),
|
|
270
|
+
key_bits: S.optional(S.Number),
|
|
271
|
+
key_id: S.optional(S.String),
|
|
272
|
+
key_type: S.optional(S.String),
|
|
273
|
+
ttl: S.optional(S.Number),
|
|
274
|
+
valid_principals: S.optional(S.String),
|
|
275
|
+
}).pipe(
|
|
276
|
+
T.Http({
|
|
277
|
+
method: "POST",
|
|
278
|
+
uri: "/{ssh_mount_path}/issue/{role}",
|
|
279
|
+
code: 200,
|
|
280
|
+
}),
|
|
281
|
+
),
|
|
282
|
+
).annotate({
|
|
283
|
+
identifier: "SshIssueCertificateRequest",
|
|
284
|
+
}) as any as S.Schema<SshIssueCertificateRequest>;
|
|
285
|
+
|
|
286
|
+
export interface SshIssueCertificateResponse {}
|
|
287
|
+
export const SshIssueCertificateResponse = /*@__PURE__*/ S.suspend(() =>
|
|
288
|
+
S.Struct({}),
|
|
289
|
+
).annotate({
|
|
290
|
+
identifier: "SshIssueCertificateResponse",
|
|
291
|
+
}) as any as S.Schema<SshIssueCertificateResponse>;
|
|
292
|
+
|
|
293
|
+
export type SshListIssuersRequestList = "true";
|
|
294
|
+
export const SshListIssuersRequestList = S.String;
|
|
295
|
+
|
|
296
|
+
export interface SshListIssuersRequest {
|
|
297
|
+
/** Path that the backend was mounted at */
|
|
298
|
+
ssh_mount_path: string;
|
|
299
|
+
/** Must be set to `true` */
|
|
300
|
+
list: SshListIssuersRequestList | (string & {});
|
|
301
|
+
}
|
|
302
|
+
export const SshListIssuersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
303
|
+
S.Struct({
|
|
304
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
305
|
+
list: SshListIssuersRequestList.pipe(T.Query()),
|
|
306
|
+
}).pipe(
|
|
307
|
+
T.Http({ method: "GET", uri: "/{ssh_mount_path}/issuers", code: 200 }),
|
|
308
|
+
),
|
|
309
|
+
).annotate({
|
|
310
|
+
identifier: "SshListIssuersRequest",
|
|
311
|
+
}) as any as S.Schema<SshListIssuersRequest>;
|
|
312
|
+
|
|
313
|
+
/** A list of keys */
|
|
314
|
+
export type SshListIssuersResponseKeysList = Array<string>;
|
|
315
|
+
export const SshListIssuersResponseKeysList = /*@__PURE__*/ S.Array(
|
|
316
|
+
S.String,
|
|
317
|
+
) as any as S.Schema<SshListIssuersResponseKeysList>;
|
|
318
|
+
|
|
319
|
+
export interface SshListIssuersResponse {
|
|
320
|
+
/** Key info with issuer identifier */
|
|
321
|
+
key_info?: unknown;
|
|
322
|
+
/** A list of keys */
|
|
323
|
+
keys?: SshListIssuersResponseKeysList;
|
|
324
|
+
}
|
|
325
|
+
export const SshListIssuersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
326
|
+
S.Struct({
|
|
327
|
+
key_info: S.optional(S.Unknown),
|
|
328
|
+
keys: S.optional(SshListIssuersResponseKeysList),
|
|
329
|
+
}),
|
|
330
|
+
).annotate({
|
|
331
|
+
identifier: "SshListIssuersResponse",
|
|
332
|
+
}) as any as S.Schema<SshListIssuersResponse>;
|
|
333
|
+
|
|
334
|
+
export type SshListRolesRequestList = "true";
|
|
335
|
+
export const SshListRolesRequestList = S.String;
|
|
336
|
+
|
|
337
|
+
export interface SshListRolesRequest {
|
|
338
|
+
/** Path that the backend was mounted at */
|
|
339
|
+
ssh_mount_path: string;
|
|
340
|
+
/** Must be set to `true` */
|
|
341
|
+
list: SshListRolesRequestList | (string & {});
|
|
342
|
+
}
|
|
343
|
+
export const SshListRolesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
344
|
+
S.Struct({
|
|
345
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
346
|
+
list: SshListRolesRequestList.pipe(T.Query()),
|
|
347
|
+
}).pipe(T.Http({ method: "GET", uri: "/{ssh_mount_path}/roles", code: 200 })),
|
|
348
|
+
).annotate({
|
|
349
|
+
identifier: "SshListRolesRequest",
|
|
350
|
+
}) as any as S.Schema<SshListRolesRequest>;
|
|
351
|
+
|
|
352
|
+
export interface SshListRolesResponse {}
|
|
353
|
+
export const SshListRolesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
354
|
+
S.Struct({}),
|
|
355
|
+
).annotate({
|
|
356
|
+
identifier: "SshListRolesResponse",
|
|
357
|
+
}) as any as S.Schema<SshListRolesResponse>;
|
|
358
|
+
|
|
359
|
+
export interface SshListRolesByIpRequest {
|
|
360
|
+
/** Path that the backend was mounted at */
|
|
361
|
+
ssh_mount_path: string;
|
|
362
|
+
/** [Required] IP address of remote host */
|
|
363
|
+
ip?: string;
|
|
364
|
+
}
|
|
365
|
+
export const SshListRolesByIpRequest = /*@__PURE__*/ S.suspend(() =>
|
|
366
|
+
S.Struct({
|
|
367
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
368
|
+
ip: S.optional(S.String),
|
|
369
|
+
}).pipe(
|
|
370
|
+
T.Http({ method: "POST", uri: "/{ssh_mount_path}/lookup", code: 200 }),
|
|
371
|
+
),
|
|
372
|
+
).annotate({
|
|
373
|
+
identifier: "SshListRolesByIpRequest",
|
|
374
|
+
}) as any as S.Schema<SshListRolesByIpRequest>;
|
|
375
|
+
|
|
376
|
+
export interface SshListRolesByIpResponse {}
|
|
377
|
+
export const SshListRolesByIpResponse = /*@__PURE__*/ S.suspend(() =>
|
|
378
|
+
S.Struct({}),
|
|
379
|
+
).annotate({
|
|
380
|
+
identifier: "SshListRolesByIpResponse",
|
|
381
|
+
}) as any as S.Schema<SshListRolesByIpResponse>;
|
|
382
|
+
|
|
383
|
+
export interface SshPurgeCaRequest {
|
|
384
|
+
/** Path that the backend was mounted at */
|
|
385
|
+
ssh_mount_path: string;
|
|
386
|
+
}
|
|
387
|
+
export const SshPurgeCaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
388
|
+
S.Struct({
|
|
389
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
390
|
+
}).pipe(
|
|
391
|
+
T.Http({ method: "DELETE", uri: "/{ssh_mount_path}/config/ca", code: 200 }),
|
|
392
|
+
),
|
|
393
|
+
).annotate({
|
|
394
|
+
identifier: "SshPurgeCaRequest",
|
|
395
|
+
}) as any as S.Schema<SshPurgeCaRequest>;
|
|
396
|
+
|
|
397
|
+
export interface SshPurgeCaResponse {}
|
|
398
|
+
export const SshPurgeCaResponse = /*@__PURE__*/ S.suspend(() =>
|
|
399
|
+
S.Struct({}),
|
|
400
|
+
).annotate({
|
|
401
|
+
identifier: "SshPurgeCaResponse",
|
|
402
|
+
}) as any as S.Schema<SshPurgeCaResponse>;
|
|
403
|
+
|
|
404
|
+
export interface SshReadDefaultCaRequest {
|
|
405
|
+
/** Path that the backend was mounted at */
|
|
406
|
+
ssh_mount_path: string;
|
|
407
|
+
}
|
|
408
|
+
export const SshReadDefaultCaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
409
|
+
S.Struct({
|
|
410
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
411
|
+
}).pipe(
|
|
412
|
+
T.Http({ method: "GET", uri: "/{ssh_mount_path}/config/ca", code: 200 }),
|
|
413
|
+
),
|
|
414
|
+
).annotate({
|
|
415
|
+
identifier: "SshReadDefaultCaRequest",
|
|
416
|
+
}) as any as S.Schema<SshReadDefaultCaRequest>;
|
|
417
|
+
|
|
418
|
+
export interface SshReadDefaultCaResponse {
|
|
419
|
+
/** Issuer Id */
|
|
420
|
+
issuer_id?: string;
|
|
421
|
+
/** Issuer Name */
|
|
422
|
+
issuer_name?: string;
|
|
423
|
+
/** Issuer public key */
|
|
424
|
+
public_key?: boolean;
|
|
425
|
+
}
|
|
426
|
+
export const SshReadDefaultCaResponse = /*@__PURE__*/ S.suspend(() =>
|
|
427
|
+
S.Struct({
|
|
428
|
+
issuer_id: S.optional(S.String),
|
|
429
|
+
issuer_name: S.optional(S.String),
|
|
430
|
+
public_key: S.optional(S.Boolean),
|
|
431
|
+
}),
|
|
432
|
+
).annotate({
|
|
433
|
+
identifier: "SshReadDefaultCaResponse",
|
|
434
|
+
}) as any as S.Schema<SshReadDefaultCaResponse>;
|
|
435
|
+
|
|
436
|
+
export interface SshReadIssuerRequest {
|
|
437
|
+
/** Path that the backend was mounted at */
|
|
438
|
+
ssh_mount_path: string;
|
|
439
|
+
/** Reference to a existing issuer; either "default" for the configured default issuer, an identifier or the name assigned to the issuer. */
|
|
440
|
+
issuer_ref: string;
|
|
441
|
+
}
|
|
442
|
+
export const SshReadIssuerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
443
|
+
S.Struct({
|
|
444
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
445
|
+
issuer_ref: S.String.pipe(T.Label()),
|
|
446
|
+
}).pipe(
|
|
447
|
+
T.Http({
|
|
448
|
+
method: "GET",
|
|
449
|
+
uri: "/{ssh_mount_path}/issuer/{issuer_ref}",
|
|
450
|
+
code: 200,
|
|
451
|
+
}),
|
|
452
|
+
),
|
|
453
|
+
).annotate({
|
|
454
|
+
identifier: "SshReadIssuerRequest",
|
|
455
|
+
}) as any as S.Schema<SshReadIssuerRequest>;
|
|
456
|
+
|
|
457
|
+
export interface SshReadIssuerResponse {
|
|
458
|
+
/** Issuer Id */
|
|
459
|
+
issuer_id?: string;
|
|
460
|
+
/** Issuer Name */
|
|
461
|
+
issuer_name?: string;
|
|
462
|
+
/** Issuer public key */
|
|
463
|
+
public_key?: boolean;
|
|
464
|
+
}
|
|
465
|
+
export const SshReadIssuerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
466
|
+
S.Struct({
|
|
467
|
+
issuer_id: S.optional(S.String),
|
|
468
|
+
issuer_name: S.optional(S.String),
|
|
469
|
+
public_key: S.optional(S.Boolean),
|
|
470
|
+
}),
|
|
471
|
+
).annotate({
|
|
472
|
+
identifier: "SshReadIssuerResponse",
|
|
473
|
+
}) as any as S.Schema<SshReadIssuerResponse>;
|
|
474
|
+
|
|
475
|
+
export interface SshReadPublicKeyRequest {
|
|
476
|
+
/** Path that the backend was mounted at */
|
|
477
|
+
ssh_mount_path: string;
|
|
478
|
+
}
|
|
479
|
+
export const SshReadPublicKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
480
|
+
S.Struct({
|
|
481
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
482
|
+
}).pipe(
|
|
483
|
+
T.Http({ method: "GET", uri: "/{ssh_mount_path}/public_key", code: 200 }),
|
|
484
|
+
),
|
|
485
|
+
).annotate({
|
|
486
|
+
identifier: "SshReadPublicKeyRequest",
|
|
487
|
+
}) as any as S.Schema<SshReadPublicKeyRequest>;
|
|
488
|
+
|
|
489
|
+
export interface SshReadPublicKeyResponse {}
|
|
490
|
+
export const SshReadPublicKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
491
|
+
S.Struct({}),
|
|
492
|
+
).annotate({
|
|
493
|
+
identifier: "SshReadPublicKeyResponse",
|
|
494
|
+
}) as any as S.Schema<SshReadPublicKeyResponse>;
|
|
495
|
+
|
|
496
|
+
export interface SshReadReadRequest {
|
|
497
|
+
/** Path that the backend was mounted at */
|
|
498
|
+
ssh_mount_path: string;
|
|
499
|
+
}
|
|
500
|
+
export const SshReadReadRequest = /*@__PURE__*/ S.suspend(() =>
|
|
501
|
+
S.Struct({
|
|
502
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
503
|
+
}).pipe(
|
|
504
|
+
T.Http({
|
|
505
|
+
method: "GET",
|
|
506
|
+
uri: "/{ssh_mount_path}/config/issuers",
|
|
507
|
+
code: 200,
|
|
508
|
+
}),
|
|
509
|
+
),
|
|
510
|
+
).annotate({
|
|
511
|
+
identifier: "SshReadReadRequest",
|
|
512
|
+
}) as any as S.Schema<SshReadReadRequest>;
|
|
513
|
+
|
|
514
|
+
export interface SshReadReadResponse {
|
|
515
|
+
/** Reference (name or identifier) to issuer set as the default. */
|
|
516
|
+
default?: string;
|
|
517
|
+
}
|
|
518
|
+
export const SshReadReadResponse = /*@__PURE__*/ S.suspend(() =>
|
|
519
|
+
S.Struct({
|
|
520
|
+
default: S.optional(S.String),
|
|
521
|
+
}),
|
|
522
|
+
).annotate({
|
|
523
|
+
identifier: "SshReadReadResponse",
|
|
524
|
+
}) as any as S.Schema<SshReadReadResponse>;
|
|
525
|
+
|
|
526
|
+
export interface SshReadRoleRequest {
|
|
527
|
+
/** Path that the backend was mounted at */
|
|
528
|
+
ssh_mount_path: string;
|
|
529
|
+
/** [Required for all types] Name of the role being created. */
|
|
530
|
+
role: string;
|
|
531
|
+
}
|
|
532
|
+
export const SshReadRoleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
533
|
+
S.Struct({
|
|
534
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
535
|
+
role: S.String.pipe(T.Label()),
|
|
536
|
+
}).pipe(
|
|
537
|
+
T.Http({ method: "GET", uri: "/{ssh_mount_path}/roles/{role}", code: 200 }),
|
|
538
|
+
),
|
|
539
|
+
).annotate({
|
|
540
|
+
identifier: "SshReadRoleRequest",
|
|
541
|
+
}) as any as S.Schema<SshReadRoleRequest>;
|
|
542
|
+
|
|
543
|
+
export interface SshReadRoleResponse {}
|
|
544
|
+
export const SshReadRoleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
545
|
+
S.Struct({}),
|
|
546
|
+
).annotate({
|
|
547
|
+
identifier: "SshReadRoleResponse",
|
|
548
|
+
}) as any as S.Schema<SshReadRoleResponse>;
|
|
549
|
+
|
|
550
|
+
export interface SshReadZeroAddressConfigurationRequest {
|
|
551
|
+
/** Path that the backend was mounted at */
|
|
552
|
+
ssh_mount_path: string;
|
|
553
|
+
}
|
|
554
|
+
export const SshReadZeroAddressConfigurationRequest = /*@__PURE__*/ S.suspend(
|
|
555
|
+
() =>
|
|
556
|
+
S.Struct({
|
|
557
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
558
|
+
}).pipe(
|
|
559
|
+
T.Http({
|
|
560
|
+
method: "GET",
|
|
561
|
+
uri: "/{ssh_mount_path}/config/zeroaddress",
|
|
562
|
+
code: 200,
|
|
563
|
+
}),
|
|
564
|
+
),
|
|
565
|
+
).annotate({
|
|
566
|
+
identifier: "SshReadZeroAddressConfigurationRequest",
|
|
567
|
+
}) as any as S.Schema<SshReadZeroAddressConfigurationRequest>;
|
|
568
|
+
|
|
569
|
+
export interface SshReadZeroAddressConfigurationResponse {}
|
|
570
|
+
export const SshReadZeroAddressConfigurationResponse = /*@__PURE__*/ S.suspend(
|
|
571
|
+
() => S.Struct({}),
|
|
572
|
+
).annotate({
|
|
573
|
+
identifier: "SshReadZeroAddressConfigurationResponse",
|
|
574
|
+
}) as any as S.Schema<SshReadZeroAddressConfigurationResponse>;
|
|
575
|
+
|
|
576
|
+
export interface SshSignCertificateRequest {
|
|
577
|
+
/** Path that the backend was mounted at */
|
|
578
|
+
ssh_mount_path: string;
|
|
579
|
+
/** The desired role with configuration for this request. */
|
|
580
|
+
role: string;
|
|
581
|
+
/** Type of certificate to be created; either "user" or "host". */
|
|
582
|
+
cert_type?: string;
|
|
583
|
+
/** Critical options that the certificate should be signed for. */
|
|
584
|
+
critical_options?: unknown;
|
|
585
|
+
/** Extensions that the certificate should be signed for. */
|
|
586
|
+
extensions?: unknown;
|
|
587
|
+
/** Key id that the created certificate should have. If not specified, the display name of the token will be used. */
|
|
588
|
+
key_id?: string;
|
|
589
|
+
/** SSH public key that should be signed. */
|
|
590
|
+
public_key?: string;
|
|
591
|
+
/** The requested Time To Live for the SSH certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be later than the role max TTL. */
|
|
592
|
+
ttl?: number;
|
|
593
|
+
/** Valid principals, either usernames or hostnames, that the certificate should be signed for. */
|
|
594
|
+
valid_principals?: string;
|
|
595
|
+
}
|
|
596
|
+
export const SshSignCertificateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
597
|
+
S.Struct({
|
|
598
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
599
|
+
role: S.String.pipe(T.Label()),
|
|
600
|
+
cert_type: S.optional(S.String),
|
|
601
|
+
critical_options: S.optional(S.Unknown),
|
|
602
|
+
extensions: S.optional(S.Unknown),
|
|
603
|
+
key_id: S.optional(S.String),
|
|
604
|
+
public_key: S.optional(S.String),
|
|
605
|
+
ttl: S.optional(S.Number),
|
|
606
|
+
valid_principals: S.optional(S.String),
|
|
607
|
+
}).pipe(
|
|
608
|
+
T.Http({ method: "POST", uri: "/{ssh_mount_path}/sign/{role}", code: 200 }),
|
|
609
|
+
),
|
|
610
|
+
).annotate({
|
|
611
|
+
identifier: "SshSignCertificateRequest",
|
|
612
|
+
}) as any as S.Schema<SshSignCertificateRequest>;
|
|
613
|
+
|
|
614
|
+
export interface SshSignCertificateResponse {}
|
|
615
|
+
export const SshSignCertificateResponse = /*@__PURE__*/ S.suspend(() =>
|
|
616
|
+
S.Struct({}),
|
|
617
|
+
).annotate({
|
|
618
|
+
identifier: "SshSignCertificateResponse",
|
|
619
|
+
}) as any as S.Schema<SshSignCertificateResponse>;
|
|
620
|
+
|
|
621
|
+
export interface SshSubmitIssuerRequest {
|
|
622
|
+
/** Path that the backend was mounted at */
|
|
623
|
+
ssh_mount_path: string;
|
|
624
|
+
/** Generate SSH key pair internally rather than use the private_key and public_key fields. */
|
|
625
|
+
generate_signing_key?: boolean;
|
|
626
|
+
/** Optional issuer name that can be used to identify the issuer. */
|
|
627
|
+
issuer_name?: string;
|
|
628
|
+
/** Specifies the desired key bits when generating variable-length keys (such as when key_type="ssh-rsa") or which NIST P-curve to use when key_type="ec" (256, 384, or 521). */
|
|
629
|
+
key_bits?: number;
|
|
630
|
+
/** Specifies the desired key type when generating; could be a OpenSSH key type identifier (ssh-rsa, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, or ssh-ed25519) or an algorithm (rsa, ec, ed25519). */
|
|
631
|
+
key_type?: string;
|
|
632
|
+
/** Private half of the SSH key that will be used to sign certificates. */
|
|
633
|
+
private_key?: string;
|
|
634
|
+
/** Public half of the SSH key that will be used to sign certificates. */
|
|
635
|
+
public_key?: string;
|
|
636
|
+
/** If true, this issuer will be set as the default issuer for performing operations. Only one issuer can be the default issuer and, if there's one set, it will be overridden. */
|
|
637
|
+
set_default?: boolean;
|
|
638
|
+
}
|
|
639
|
+
export const SshSubmitIssuerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
640
|
+
S.Struct({
|
|
641
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
642
|
+
generate_signing_key: S.optional(S.Boolean),
|
|
643
|
+
issuer_name: S.optional(S.String),
|
|
644
|
+
key_bits: S.optional(S.Number),
|
|
645
|
+
key_type: S.optional(S.String),
|
|
646
|
+
private_key: S.optional(S.String),
|
|
647
|
+
public_key: S.optional(S.String),
|
|
648
|
+
set_default: S.optional(S.Boolean),
|
|
649
|
+
}).pipe(
|
|
650
|
+
T.Http({
|
|
651
|
+
method: "POST",
|
|
652
|
+
uri: "/{ssh_mount_path}/issuers/import",
|
|
653
|
+
code: 200,
|
|
654
|
+
}),
|
|
655
|
+
),
|
|
656
|
+
).annotate({
|
|
657
|
+
identifier: "SshSubmitIssuerRequest",
|
|
658
|
+
}) as any as S.Schema<SshSubmitIssuerRequest>;
|
|
659
|
+
|
|
660
|
+
export interface SshSubmitIssuerResponse {
|
|
661
|
+
/** Issuer Id */
|
|
662
|
+
issuer_id?: string;
|
|
663
|
+
/** Issuer Name */
|
|
664
|
+
issuer_name?: string;
|
|
665
|
+
/** Issuer public key */
|
|
666
|
+
public_key?: boolean;
|
|
667
|
+
}
|
|
668
|
+
export const SshSubmitIssuerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
669
|
+
S.Struct({
|
|
670
|
+
issuer_id: S.optional(S.String),
|
|
671
|
+
issuer_name: S.optional(S.String),
|
|
672
|
+
public_key: S.optional(S.Boolean),
|
|
673
|
+
}),
|
|
674
|
+
).annotate({
|
|
675
|
+
identifier: "SshSubmitIssuerResponse",
|
|
676
|
+
}) as any as S.Schema<SshSubmitIssuerResponse>;
|
|
677
|
+
|
|
678
|
+
export interface SshSubmitIssuersImportIssuerNameRequest {
|
|
679
|
+
/** Path that the backend was mounted at */
|
|
680
|
+
ssh_mount_path: string;
|
|
681
|
+
/** Optional issuer name that can be used to identify the issuer. */
|
|
682
|
+
issuer_name: string;
|
|
683
|
+
/** Generate SSH key pair internally rather than use the private_key and public_key fields. */
|
|
684
|
+
generate_signing_key?: boolean;
|
|
685
|
+
/** Specifies the desired key bits when generating variable-length keys (such as when key_type="ssh-rsa") or which NIST P-curve to use when key_type="ec" (256, 384, or 521). */
|
|
686
|
+
key_bits?: number;
|
|
687
|
+
/** Specifies the desired key type when generating; could be a OpenSSH key type identifier (ssh-rsa, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, or ssh-ed25519) or an algorithm (rsa, ec, ed25519). */
|
|
688
|
+
key_type?: string;
|
|
689
|
+
/** Private half of the SSH key that will be used to sign certificates. */
|
|
690
|
+
private_key?: string;
|
|
691
|
+
/** Public half of the SSH key that will be used to sign certificates. */
|
|
692
|
+
public_key?: string;
|
|
693
|
+
/** If true, this issuer will be set as the default issuer for performing operations. Only one issuer can be the default issuer and, if there's one set, it will be overridden. */
|
|
694
|
+
set_default?: boolean;
|
|
695
|
+
}
|
|
696
|
+
export const SshSubmitIssuersImportIssuerNameRequest = /*@__PURE__*/ S.suspend(
|
|
697
|
+
() =>
|
|
698
|
+
S.Struct({
|
|
699
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
700
|
+
issuer_name: S.String.pipe(T.Label()),
|
|
701
|
+
generate_signing_key: S.optional(S.Boolean),
|
|
702
|
+
key_bits: S.optional(S.Number),
|
|
703
|
+
key_type: S.optional(S.String),
|
|
704
|
+
private_key: S.optional(S.String),
|
|
705
|
+
public_key: S.optional(S.String),
|
|
706
|
+
set_default: S.optional(S.Boolean),
|
|
707
|
+
}).pipe(
|
|
708
|
+
T.Http({
|
|
709
|
+
method: "POST",
|
|
710
|
+
uri: "/{ssh_mount_path}/issuers/import/{issuer_name}",
|
|
711
|
+
code: 200,
|
|
712
|
+
}),
|
|
713
|
+
),
|
|
714
|
+
).annotate({
|
|
715
|
+
identifier: "SshSubmitIssuersImportIssuerNameRequest",
|
|
716
|
+
}) as any as S.Schema<SshSubmitIssuersImportIssuerNameRequest>;
|
|
717
|
+
|
|
718
|
+
export interface SshSubmitIssuersImportIssuerNameResponse {
|
|
719
|
+
/** Issuer Id */
|
|
720
|
+
issuer_id?: string;
|
|
721
|
+
/** Issuer Name */
|
|
722
|
+
issuer_name?: string;
|
|
723
|
+
/** Issuer public key */
|
|
724
|
+
public_key?: boolean;
|
|
725
|
+
}
|
|
726
|
+
export const SshSubmitIssuersImportIssuerNameResponse = /*@__PURE__*/ S.suspend(
|
|
727
|
+
() =>
|
|
728
|
+
S.Struct({
|
|
729
|
+
issuer_id: S.optional(S.String),
|
|
730
|
+
issuer_name: S.optional(S.String),
|
|
731
|
+
public_key: S.optional(S.Boolean),
|
|
732
|
+
}),
|
|
733
|
+
).annotate({
|
|
734
|
+
identifier: "SshSubmitIssuersImportIssuerNameResponse",
|
|
735
|
+
}) as any as S.Schema<SshSubmitIssuersImportIssuerNameResponse>;
|
|
736
|
+
|
|
737
|
+
export interface SshTidyDynamicHostKeysRequest {
|
|
738
|
+
/** Path that the backend was mounted at */
|
|
739
|
+
ssh_mount_path: string;
|
|
740
|
+
}
|
|
741
|
+
export const SshTidyDynamicHostKeysRequest = /*@__PURE__*/ S.suspend(() =>
|
|
742
|
+
S.Struct({
|
|
743
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
744
|
+
}).pipe(
|
|
745
|
+
T.Http({
|
|
746
|
+
method: "DELETE",
|
|
747
|
+
uri: "/{ssh_mount_path}/tidy/dynamic-keys",
|
|
748
|
+
code: 200,
|
|
749
|
+
}),
|
|
750
|
+
),
|
|
751
|
+
).annotate({
|
|
752
|
+
identifier: "SshTidyDynamicHostKeysRequest",
|
|
753
|
+
}) as any as S.Schema<SshTidyDynamicHostKeysRequest>;
|
|
754
|
+
|
|
755
|
+
export interface SshTidyDynamicHostKeysResponse {}
|
|
756
|
+
export const SshTidyDynamicHostKeysResponse = /*@__PURE__*/ S.suspend(() =>
|
|
757
|
+
S.Struct({}),
|
|
758
|
+
).annotate({
|
|
759
|
+
identifier: "SshTidyDynamicHostKeysResponse",
|
|
760
|
+
}) as any as S.Schema<SshTidyDynamicHostKeysResponse>;
|
|
761
|
+
|
|
762
|
+
export interface SshUpdateIssuerRequest {
|
|
763
|
+
/** Path that the backend was mounted at */
|
|
764
|
+
ssh_mount_path: string;
|
|
765
|
+
/** Reference to a existing issuer; either "default" for the configured default issuer, an identifier or the name assigned to the issuer. */
|
|
766
|
+
issuer_ref: string;
|
|
767
|
+
/** Provide a name to the generated or existing issuer, the name must be unique across all issuers and not be the reserved value 'default' */
|
|
768
|
+
issuer_name?: string;
|
|
769
|
+
}
|
|
770
|
+
export const SshUpdateIssuerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
771
|
+
S.Struct({
|
|
772
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
773
|
+
issuer_ref: S.String.pipe(T.Label()),
|
|
774
|
+
issuer_name: S.optional(S.String),
|
|
775
|
+
}).pipe(
|
|
776
|
+
T.Http({
|
|
777
|
+
method: "POST",
|
|
778
|
+
uri: "/{ssh_mount_path}/issuer/{issuer_ref}",
|
|
779
|
+
code: 200,
|
|
780
|
+
}),
|
|
781
|
+
),
|
|
782
|
+
).annotate({
|
|
783
|
+
identifier: "SshUpdateIssuerRequest",
|
|
784
|
+
}) as any as S.Schema<SshUpdateIssuerRequest>;
|
|
785
|
+
|
|
786
|
+
export interface SshUpdateIssuerResponse {
|
|
787
|
+
/** Issuer Id */
|
|
788
|
+
issuer_id?: string;
|
|
789
|
+
/** Issuer Name */
|
|
790
|
+
issuer_name?: string;
|
|
791
|
+
/** Issuer public key */
|
|
792
|
+
public_key?: boolean;
|
|
793
|
+
}
|
|
794
|
+
export const SshUpdateIssuerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
795
|
+
S.Struct({
|
|
796
|
+
issuer_id: S.optional(S.String),
|
|
797
|
+
issuer_name: S.optional(S.String),
|
|
798
|
+
public_key: S.optional(S.Boolean),
|
|
799
|
+
}),
|
|
800
|
+
).annotate({
|
|
801
|
+
identifier: "SshUpdateIssuerResponse",
|
|
802
|
+
}) as any as S.Schema<SshUpdateIssuerResponse>;
|
|
803
|
+
|
|
804
|
+
export interface SshVerifyOtpRequest {
|
|
805
|
+
/** Path that the backend was mounted at */
|
|
806
|
+
ssh_mount_path: string;
|
|
807
|
+
/** [Required] One-Time-Key that needs to be validated */
|
|
808
|
+
otp?: string;
|
|
809
|
+
}
|
|
810
|
+
export const SshVerifyOtpRequest = /*@__PURE__*/ S.suspend(() =>
|
|
811
|
+
S.Struct({
|
|
812
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
813
|
+
otp: S.optional(S.String),
|
|
814
|
+
}).pipe(
|
|
815
|
+
T.Http({ method: "POST", uri: "/{ssh_mount_path}/verify", code: 200 }),
|
|
816
|
+
),
|
|
817
|
+
).annotate({
|
|
818
|
+
identifier: "SshVerifyOtpRequest",
|
|
819
|
+
}) as any as S.Schema<SshVerifyOtpRequest>;
|
|
820
|
+
|
|
821
|
+
export interface SshVerifyOtpResponse {}
|
|
822
|
+
export const SshVerifyOtpResponse = /*@__PURE__*/ S.suspend(() =>
|
|
823
|
+
S.Struct({}),
|
|
824
|
+
).annotate({
|
|
825
|
+
identifier: "SshVerifyOtpResponse",
|
|
826
|
+
}) as any as S.Schema<SshVerifyOtpResponse>;
|
|
827
|
+
|
|
828
|
+
export interface SshWriteIssuerConfigRequest {
|
|
829
|
+
/** Path that the backend was mounted at */
|
|
830
|
+
ssh_mount_path: string;
|
|
831
|
+
/** Reference (name or identifier) to issuer to be used as the default. */
|
|
832
|
+
default?: string;
|
|
833
|
+
}
|
|
834
|
+
export const SshWriteIssuerConfigRequest = /*@__PURE__*/ S.suspend(() =>
|
|
835
|
+
S.Struct({
|
|
836
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
837
|
+
default: S.optional(S.String),
|
|
838
|
+
}).pipe(
|
|
839
|
+
T.Http({
|
|
840
|
+
method: "POST",
|
|
841
|
+
uri: "/{ssh_mount_path}/config/issuers",
|
|
842
|
+
code: 200,
|
|
843
|
+
}),
|
|
844
|
+
),
|
|
845
|
+
).annotate({
|
|
846
|
+
identifier: "SshWriteIssuerConfigRequest",
|
|
847
|
+
}) as any as S.Schema<SshWriteIssuerConfigRequest>;
|
|
848
|
+
|
|
849
|
+
export interface SshWriteIssuerConfigResponse {
|
|
850
|
+
/** Reference (name or identifier) to issuer set as the default. */
|
|
851
|
+
default?: string;
|
|
852
|
+
}
|
|
853
|
+
export const SshWriteIssuerConfigResponse = /*@__PURE__*/ S.suspend(() =>
|
|
854
|
+
S.Struct({
|
|
855
|
+
default: S.optional(S.String),
|
|
856
|
+
}),
|
|
857
|
+
).annotate({
|
|
858
|
+
identifier: "SshWriteIssuerConfigResponse",
|
|
859
|
+
}) as any as S.Schema<SshWriteIssuerConfigResponse>;
|
|
860
|
+
|
|
861
|
+
/** [Not applicable for OTP type] [Optional for CA type] When supplied, this value specifies a signing algorithm for the key. Possible values: ssh-rsa, rsa-sha2-256, rsa-sha2-512, default, or the empty string. */
|
|
862
|
+
export type SshWriteRoleRequestAlgorithmSigner =
|
|
863
|
+
| ""
|
|
864
|
+
| "default"
|
|
865
|
+
| "ssh-rsa"
|
|
866
|
+
| "rsa-sha2-256"
|
|
867
|
+
| "rsa-sha2-512";
|
|
868
|
+
export const SshWriteRoleRequestAlgorithmSigner = S.String;
|
|
869
|
+
|
|
870
|
+
/** [Required for all types] Type of key used to login to hosts. It can be either 'otp' or 'ca'. 'otp' type requires agent to be installed in remote hosts. */
|
|
871
|
+
export type SshWriteRoleRequestKeyType = "otp" | "ca";
|
|
872
|
+
export const SshWriteRoleRequestKeyType = S.String;
|
|
873
|
+
|
|
874
|
+
export interface SshWriteRoleRequest {
|
|
875
|
+
/** Path that the backend was mounted at */
|
|
876
|
+
ssh_mount_path: string;
|
|
877
|
+
/** [Required for all types] Name of the role being created. */
|
|
878
|
+
role: string;
|
|
879
|
+
/** [Not applicable for OTP type] [Optional for CA type] When supplied, this value specifies a signing algorithm for the key. Possible values: ssh-rsa, rsa-sha2-256, rsa-sha2-512, default, or the empty string. */
|
|
880
|
+
algorithm_signer?: SshWriteRoleRequestAlgorithmSigner | (string & {});
|
|
881
|
+
/** [Not applicable for OTP type] [Optional for CA type] If set, host certificates that are requested are allowed to use the base domains listed in "allowed_domains", e.g. "example.com". This is a separate option as in some cases this can be considered a security threat. */
|
|
882
|
+
allow_bare_domains?: boolean;
|
|
883
|
+
/** If true and templating is enabled, the values substituted in for allowed_users and allowed_domains template expressions might contain a comma (','). As these values are comma separated lists, this can enable injection attacks. Only use this, if the data used by the templates is trusted. */
|
|
884
|
+
allow_commas_in_identity_templates?: boolean;
|
|
885
|
+
/** [Optional for CA type] If true, host and user certificates can be issued without any valid principals. For host certificates, this means that any domain a host claims to be will be trusted by the connecting client. For user certificates, when a CA certificate is placed in a user's AuthorizedKeys file, any principal on that certificate will be allowed to connect. When allowed_users or allowed_domains is set to * (corresponding to the role/certificate type), allow_empty_principals=false still permits issuance. It is recommend to leave this disabled. */
|
|
886
|
+
allow_empty_principals?: boolean;
|
|
887
|
+
/** [Not applicable for OTP type] [Optional for CA type] If set, certificates are allowed to be signed for use as a 'host'. */
|
|
888
|
+
allow_host_certificates?: boolean;
|
|
889
|
+
/** [Not applicable for OTP type] [Optional for CA type] If set, host certificates that are requested are allowed to use subdomains of those listed in "allowed_domains". */
|
|
890
|
+
allow_subdomains?: boolean;
|
|
891
|
+
/** [Not applicable for OTP type] [Optional for CA type] If set, certificates are allowed to be signed for use as a 'user'. */
|
|
892
|
+
allow_user_certificates?: boolean;
|
|
893
|
+
/** [Not applicable for OTP type] [Optional for CA type] If true, users can override the key ID for a signed certificate with the "key_id" field. When false, the key ID will always be the token display name. The key ID is logged by the SSH server and can be useful for auditing. */
|
|
894
|
+
allow_user_key_ids?: boolean;
|
|
895
|
+
/** [Not applicable for OTP type] [Optional for CA type] A comma-separated list of critical options that certificates can have when signed. To allow any critical options, set this to an empty string. */
|
|
896
|
+
allowed_critical_options?: string;
|
|
897
|
+
/** [Not applicable for OTP type] [Optional for CA type] If this option is not specified, client can request for a signed certificate for any valid host. If only certain domains are allowed, then this list enforces it. */
|
|
898
|
+
allowed_domains?: string;
|
|
899
|
+
/** [Not applicable for OTP type] [Optional for CA type] If set, Allowed domains can be specified using identity template policies. Non-templated domains are also permitted. */
|
|
900
|
+
allowed_domains_template?: boolean;
|
|
901
|
+
/** [Not applicable for OTP type] [Optional for CA type] A comma-separated list of extensions that certificates can have when signed. An empty list means that no extension overrides are allowed by an end-user; explicitly specify '*' to allow any extensions to be set. */
|
|
902
|
+
allowed_extensions?: string;
|
|
903
|
+
/** [Not applicable for OTP type] [Optional for CA type] If set, allows the enforcement of key types and minimum key sizes to be signed. */
|
|
904
|
+
allowed_user_key_lengths?: unknown;
|
|
905
|
+
/** [Optional for all types] [Works differently for CA type] If this option is not specified, or is '*', client can request a credential for any valid user at the remote host, including the admin user. If only certain usernames are to be allowed, then this list enforces it. If this field is set, then credentials can only be created for default_user and usernames present in this list. Setting this option will enable all the users with access to this role to fetch credentials for all other usernames in this list. Use with caution. N.B.: with the CA type, an empty list means that no users are allowed; explicitly specify '*' to allow any user. */
|
|
906
|
+
allowed_users?: string;
|
|
907
|
+
/** [Not applicable for OTP type] [Optional for CA type] If set, Allowed users can be specified using identity template policies. Non-templated users are also permitted. */
|
|
908
|
+
allowed_users_template?: boolean;
|
|
909
|
+
/** [Optional for OTP type] [Not applicable for CA type] Comma separated list of CIDR blocks for which the role is applicable for. CIDR blocks can belong to more than one role. */
|
|
910
|
+
cidr_list?: string;
|
|
911
|
+
/** [Not applicable for OTP type] [Optional for CA type] Critical options certificates should have if none are provided when signing. This field takes in key value pairs in JSON format. Note that these are not restricted by "allowed_critical_options". Defaults to none. */
|
|
912
|
+
default_critical_options?: unknown;
|
|
913
|
+
/** [Not applicable for OTP type] [Optional for CA type] Extensions certificates should have if none are provided when signing. This field takes in key value pairs in JSON format. Note that these are not restricted by "allowed_extensions". Defaults to none. */
|
|
914
|
+
default_extensions?: unknown;
|
|
915
|
+
/** [Not applicable for OTP type] [Optional for CA type] If set, Default extension values can be specified using identity template policies. Non-templated extension values are also permitted. */
|
|
916
|
+
default_extensions_template?: boolean;
|
|
917
|
+
/** [Required for OTP type] [Optional for CA type] Default username for which a credential will be generated. When the endpoint 'creds/' is used without a username, this value will be used as default username. */
|
|
918
|
+
default_user?: string;
|
|
919
|
+
/** [Not applicable for OTP type] [Optional for CA type] If set, Default user can be specified using identity template policies. Non-templated users are also permitted. */
|
|
920
|
+
default_user_template?: boolean;
|
|
921
|
+
/** [Optional for OTP type] [Not applicable for CA type] Comma separated list of CIDR blocks. IP addresses belonging to these blocks are not accepted by the role. This is particularly useful when big CIDR blocks are being used by the role and certain parts of it needs to be kept out. */
|
|
922
|
+
exclude_cidr_list?: string;
|
|
923
|
+
/** Reference to the issuer used to sign requests serviced by this role. */
|
|
924
|
+
issuer_ref?: string;
|
|
925
|
+
/** [Not applicable for OTP type] [Optional for CA type] When supplied, this value specifies a custom format for the key id of a signed certificate. The following variables are available for use: '{{token_display_name}}' - The display name of the token used to make the request. '{{role_name}}' - The name of the role signing the request. '{{public_key_hash}}' - A SHA256 checksum of the public key that is being signed. */
|
|
926
|
+
key_id_format?: string;
|
|
927
|
+
/** [Required for all types] Type of key used to login to hosts. It can be either 'otp' or 'ca'. 'otp' type requires agent to be installed in remote hosts. */
|
|
928
|
+
key_type?: SshWriteRoleRequestKeyType | (string & {});
|
|
929
|
+
/** [Not applicable for OTP type] [Optional for CA type] The maximum allowed lease duration */
|
|
930
|
+
max_ttl?: number;
|
|
931
|
+
/** [Not applicable for OTP type] [Optional for CA type] The duration that the SSH certificate should be backdated by at issuance. */
|
|
932
|
+
not_before_duration?: number;
|
|
933
|
+
/** [Optional for OTP type] [Not applicable for CA type] Port number for SSH connection. Default is '22'. Port number does not play any role in creation of OTP. For 'otp' type, this is just a way to inform client about the port number to use. Port number will be returned to client by OpenBao server along with OTP. */
|
|
934
|
+
port?: number;
|
|
935
|
+
/** [Not applicable for OTP type] [Optional for CA type] The lease duration if no specific lease duration is requested. The lease duration controls the expiration of certificates issued by this backend. Defaults to the value of max_ttl. */
|
|
936
|
+
ttl?: number;
|
|
937
|
+
}
|
|
938
|
+
export const SshWriteRoleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
939
|
+
S.Struct({
|
|
940
|
+
ssh_mount_path: S.String.pipe(T.Label()),
|
|
941
|
+
role: S.String.pipe(T.Label()),
|
|
942
|
+
algorithm_signer: S.optional(SshWriteRoleRequestAlgorithmSigner),
|
|
943
|
+
allow_bare_domains: S.optional(S.Boolean),
|
|
944
|
+
allow_commas_in_identity_templates: S.optional(S.Boolean),
|
|
945
|
+
allow_empty_principals: S.optional(S.Boolean),
|
|
946
|
+
allow_host_certificates: S.optional(S.Boolean),
|
|
947
|
+
allow_subdomains: S.optional(S.Boolean),
|
|
948
|
+
allow_user_certificates: S.optional(S.Boolean),
|
|
949
|
+
allow_user_key_ids: S.optional(S.Boolean),
|
|
950
|
+
allowed_critical_options: S.optional(S.String),
|
|
951
|
+
allowed_domains: S.optional(S.String),
|
|
952
|
+
allowed_domains_template: S.optional(S.Boolean),
|
|
953
|
+
allowed_extensions: S.optional(S.String),
|
|
954
|
+
allowed_user_key_lengths: S.optional(S.Unknown),
|
|
955
|
+
allowed_users: S.optional(S.String),
|
|
956
|
+
allowed_users_template: S.optional(S.Boolean),
|
|
957
|
+
cidr_list: S.optional(S.String),
|
|
958
|
+
default_critical_options: S.optional(S.Unknown),
|
|
959
|
+
default_extensions: S.optional(S.Unknown),
|
|
960
|
+
default_extensions_template: S.optional(S.Boolean),
|
|
961
|
+
default_user: S.optional(S.String),
|
|
962
|
+
default_user_template: S.optional(S.Boolean),
|
|
963
|
+
exclude_cidr_list: S.optional(S.String),
|
|
964
|
+
issuer_ref: S.optional(S.String),
|
|
965
|
+
key_id_format: S.optional(S.String),
|
|
966
|
+
key_type: S.optional(SshWriteRoleRequestKeyType),
|
|
967
|
+
max_ttl: S.optional(S.Number),
|
|
968
|
+
not_before_duration: S.optional(S.Number),
|
|
969
|
+
port: S.optional(S.Number),
|
|
970
|
+
ttl: S.optional(S.Number),
|
|
971
|
+
}).pipe(
|
|
972
|
+
T.Http({
|
|
973
|
+
method: "POST",
|
|
974
|
+
uri: "/{ssh_mount_path}/roles/{role}",
|
|
975
|
+
code: 200,
|
|
976
|
+
}),
|
|
977
|
+
),
|
|
978
|
+
).annotate({
|
|
979
|
+
identifier: "SshWriteRoleRequest",
|
|
980
|
+
}) as any as S.Schema<SshWriteRoleRequest>;
|
|
981
|
+
|
|
982
|
+
export interface SshWriteRoleResponse {}
|
|
983
|
+
export const SshWriteRoleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
984
|
+
S.Struct({}),
|
|
985
|
+
).annotate({
|
|
986
|
+
identifier: "SshWriteRoleResponse",
|
|
987
|
+
}) as any as S.Schema<SshWriteRoleResponse>;
|
|
988
|
+
|
|
989
|
+
export type SshConfigureDefaultCaError = OpenBaoOpError;
|
|
990
|
+
export const sshConfigureDefaultCa: API.OperationMethod<
|
|
991
|
+
SshConfigureDefaultCaRequest,
|
|
992
|
+
SshConfigureDefaultCaResponse,
|
|
993
|
+
SshConfigureDefaultCaError,
|
|
994
|
+
OpenBaoOpContext
|
|
995
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
996
|
+
input: SshConfigureDefaultCaRequest,
|
|
997
|
+
output: SshConfigureDefaultCaResponse,
|
|
998
|
+
errors: [],
|
|
999
|
+
protocol: OpenBaoProtocol,
|
|
1000
|
+
retry: Retry.Retry,
|
|
1001
|
+
}));
|
|
1002
|
+
|
|
1003
|
+
export type SshConfigureZeroAddressError = OpenBaoOpError;
|
|
1004
|
+
export const sshConfigureZeroAddress: API.OperationMethod<
|
|
1005
|
+
SshConfigureZeroAddressRequest,
|
|
1006
|
+
SshConfigureZeroAddressResponse,
|
|
1007
|
+
SshConfigureZeroAddressError,
|
|
1008
|
+
OpenBaoOpContext
|
|
1009
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1010
|
+
input: SshConfigureZeroAddressRequest,
|
|
1011
|
+
output: SshConfigureZeroAddressResponse,
|
|
1012
|
+
errors: [],
|
|
1013
|
+
protocol: OpenBaoProtocol,
|
|
1014
|
+
retry: Retry.Retry,
|
|
1015
|
+
}));
|
|
1016
|
+
|
|
1017
|
+
export type SshDeleteIssuerError = OpenBaoOpError;
|
|
1018
|
+
export const sshDeleteIssuer: API.OperationMethod<
|
|
1019
|
+
SshDeleteIssuerRequest,
|
|
1020
|
+
SshDeleteIssuerResponse,
|
|
1021
|
+
SshDeleteIssuerError,
|
|
1022
|
+
OpenBaoOpContext
|
|
1023
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1024
|
+
input: SshDeleteIssuerRequest,
|
|
1025
|
+
output: SshDeleteIssuerResponse,
|
|
1026
|
+
errors: [],
|
|
1027
|
+
protocol: OpenBaoProtocol,
|
|
1028
|
+
retry: Retry.Retry,
|
|
1029
|
+
}));
|
|
1030
|
+
|
|
1031
|
+
export type SshDeleteRoleError = OpenBaoOpError;
|
|
1032
|
+
export const sshDeleteRole: API.OperationMethod<
|
|
1033
|
+
SshDeleteRoleRequest,
|
|
1034
|
+
SshDeleteRoleResponse,
|
|
1035
|
+
SshDeleteRoleError,
|
|
1036
|
+
OpenBaoOpContext
|
|
1037
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1038
|
+
input: SshDeleteRoleRequest,
|
|
1039
|
+
output: SshDeleteRoleResponse,
|
|
1040
|
+
errors: [],
|
|
1041
|
+
protocol: OpenBaoProtocol,
|
|
1042
|
+
retry: Retry.Retry,
|
|
1043
|
+
}));
|
|
1044
|
+
|
|
1045
|
+
export type SshDeleteZeroAddressConfigurationError = OpenBaoOpError;
|
|
1046
|
+
export const sshDeleteZeroAddressConfiguration: API.OperationMethod<
|
|
1047
|
+
SshDeleteZeroAddressConfigurationRequest,
|
|
1048
|
+
SshDeleteZeroAddressConfigurationResponse,
|
|
1049
|
+
SshDeleteZeroAddressConfigurationError,
|
|
1050
|
+
OpenBaoOpContext
|
|
1051
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1052
|
+
input: SshDeleteZeroAddressConfigurationRequest,
|
|
1053
|
+
output: SshDeleteZeroAddressConfigurationResponse,
|
|
1054
|
+
errors: [],
|
|
1055
|
+
protocol: OpenBaoProtocol,
|
|
1056
|
+
retry: Retry.Retry,
|
|
1057
|
+
}));
|
|
1058
|
+
|
|
1059
|
+
export type SshGenerateCredentialsError = OpenBaoOpError;
|
|
1060
|
+
export const sshGenerateCredentials: API.OperationMethod<
|
|
1061
|
+
SshGenerateCredentialsRequest,
|
|
1062
|
+
SshGenerateCredentialsResponse,
|
|
1063
|
+
SshGenerateCredentialsError,
|
|
1064
|
+
OpenBaoOpContext
|
|
1065
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1066
|
+
input: SshGenerateCredentialsRequest,
|
|
1067
|
+
output: SshGenerateCredentialsResponse,
|
|
1068
|
+
errors: [],
|
|
1069
|
+
protocol: OpenBaoProtocol,
|
|
1070
|
+
retry: Retry.Retry,
|
|
1071
|
+
}));
|
|
1072
|
+
|
|
1073
|
+
export type SshGetIssuerError = OpenBaoOpError;
|
|
1074
|
+
export const sshGetIssuer: API.OperationMethod<
|
|
1075
|
+
SshGetIssuerRequest,
|
|
1076
|
+
SshGetIssuerResponse,
|
|
1077
|
+
SshGetIssuerError,
|
|
1078
|
+
OpenBaoOpContext
|
|
1079
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1080
|
+
input: SshGetIssuerRequest,
|
|
1081
|
+
output: SshGetIssuerResponse,
|
|
1082
|
+
errors: [],
|
|
1083
|
+
protocol: OpenBaoProtocol,
|
|
1084
|
+
retry: Retry.Retry,
|
|
1085
|
+
}));
|
|
1086
|
+
|
|
1087
|
+
export type SshIssueCertificateError = OpenBaoOpError;
|
|
1088
|
+
export const sshIssueCertificate: API.OperationMethod<
|
|
1089
|
+
SshIssueCertificateRequest,
|
|
1090
|
+
SshIssueCertificateResponse,
|
|
1091
|
+
SshIssueCertificateError,
|
|
1092
|
+
OpenBaoOpContext
|
|
1093
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1094
|
+
input: SshIssueCertificateRequest,
|
|
1095
|
+
output: SshIssueCertificateResponse,
|
|
1096
|
+
errors: [],
|
|
1097
|
+
protocol: OpenBaoProtocol,
|
|
1098
|
+
retry: Retry.Retry,
|
|
1099
|
+
}));
|
|
1100
|
+
|
|
1101
|
+
export type SshListIssuersError = OpenBaoOpError;
|
|
1102
|
+
export const sshListIssuers: API.OperationMethod<
|
|
1103
|
+
SshListIssuersRequest,
|
|
1104
|
+
SshListIssuersResponse,
|
|
1105
|
+
SshListIssuersError,
|
|
1106
|
+
OpenBaoOpContext
|
|
1107
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1108
|
+
input: SshListIssuersRequest,
|
|
1109
|
+
output: SshListIssuersResponse,
|
|
1110
|
+
errors: [],
|
|
1111
|
+
protocol: OpenBaoProtocol,
|
|
1112
|
+
retry: Retry.Retry,
|
|
1113
|
+
}));
|
|
1114
|
+
|
|
1115
|
+
export type SshListRolesError = OpenBaoOpError;
|
|
1116
|
+
export const sshListRoles: API.OperationMethod<
|
|
1117
|
+
SshListRolesRequest,
|
|
1118
|
+
SshListRolesResponse,
|
|
1119
|
+
SshListRolesError,
|
|
1120
|
+
OpenBaoOpContext
|
|
1121
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1122
|
+
input: SshListRolesRequest,
|
|
1123
|
+
output: SshListRolesResponse,
|
|
1124
|
+
errors: [],
|
|
1125
|
+
protocol: OpenBaoProtocol,
|
|
1126
|
+
retry: Retry.Retry,
|
|
1127
|
+
}));
|
|
1128
|
+
|
|
1129
|
+
export type SshListRolesByIpError = OpenBaoOpError;
|
|
1130
|
+
export const sshListRolesByIp: API.OperationMethod<
|
|
1131
|
+
SshListRolesByIpRequest,
|
|
1132
|
+
SshListRolesByIpResponse,
|
|
1133
|
+
SshListRolesByIpError,
|
|
1134
|
+
OpenBaoOpContext
|
|
1135
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1136
|
+
input: SshListRolesByIpRequest,
|
|
1137
|
+
output: SshListRolesByIpResponse,
|
|
1138
|
+
errors: [],
|
|
1139
|
+
protocol: OpenBaoProtocol,
|
|
1140
|
+
retry: Retry.Retry,
|
|
1141
|
+
}));
|
|
1142
|
+
|
|
1143
|
+
export type SshPurgeCaError = OpenBaoOpError;
|
|
1144
|
+
export const sshPurgeCa: API.OperationMethod<
|
|
1145
|
+
SshPurgeCaRequest,
|
|
1146
|
+
SshPurgeCaResponse,
|
|
1147
|
+
SshPurgeCaError,
|
|
1148
|
+
OpenBaoOpContext
|
|
1149
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1150
|
+
input: SshPurgeCaRequest,
|
|
1151
|
+
output: SshPurgeCaResponse,
|
|
1152
|
+
errors: [],
|
|
1153
|
+
protocol: OpenBaoProtocol,
|
|
1154
|
+
retry: Retry.Retry,
|
|
1155
|
+
}));
|
|
1156
|
+
|
|
1157
|
+
export type SshReadDefaultCaError = OpenBaoOpError;
|
|
1158
|
+
export const sshReadDefaultCa: API.OperationMethod<
|
|
1159
|
+
SshReadDefaultCaRequest,
|
|
1160
|
+
SshReadDefaultCaResponse,
|
|
1161
|
+
SshReadDefaultCaError,
|
|
1162
|
+
OpenBaoOpContext
|
|
1163
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1164
|
+
input: SshReadDefaultCaRequest,
|
|
1165
|
+
output: SshReadDefaultCaResponse,
|
|
1166
|
+
errors: [],
|
|
1167
|
+
protocol: OpenBaoProtocol,
|
|
1168
|
+
retry: Retry.Retry,
|
|
1169
|
+
}));
|
|
1170
|
+
|
|
1171
|
+
export type SshReadIssuerError = OpenBaoOpError;
|
|
1172
|
+
export const sshReadIssuer: API.OperationMethod<
|
|
1173
|
+
SshReadIssuerRequest,
|
|
1174
|
+
SshReadIssuerResponse,
|
|
1175
|
+
SshReadIssuerError,
|
|
1176
|
+
OpenBaoOpContext
|
|
1177
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1178
|
+
input: SshReadIssuerRequest,
|
|
1179
|
+
output: SshReadIssuerResponse,
|
|
1180
|
+
errors: [],
|
|
1181
|
+
protocol: OpenBaoProtocol,
|
|
1182
|
+
retry: Retry.Retry,
|
|
1183
|
+
}));
|
|
1184
|
+
|
|
1185
|
+
export type SshReadPublicKeyError = OpenBaoOpError;
|
|
1186
|
+
export const sshReadPublicKey: API.OperationMethod<
|
|
1187
|
+
SshReadPublicKeyRequest,
|
|
1188
|
+
SshReadPublicKeyResponse,
|
|
1189
|
+
SshReadPublicKeyError,
|
|
1190
|
+
OpenBaoOpContext
|
|
1191
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1192
|
+
input: SshReadPublicKeyRequest,
|
|
1193
|
+
output: SshReadPublicKeyResponse,
|
|
1194
|
+
errors: [],
|
|
1195
|
+
protocol: OpenBaoProtocol,
|
|
1196
|
+
retry: Retry.Retry,
|
|
1197
|
+
}));
|
|
1198
|
+
|
|
1199
|
+
export type SshReadReadError = OpenBaoOpError;
|
|
1200
|
+
export const sshReadRead: API.OperationMethod<
|
|
1201
|
+
SshReadReadRequest,
|
|
1202
|
+
SshReadReadResponse,
|
|
1203
|
+
SshReadReadError,
|
|
1204
|
+
OpenBaoOpContext
|
|
1205
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1206
|
+
input: SshReadReadRequest,
|
|
1207
|
+
output: SshReadReadResponse,
|
|
1208
|
+
errors: [],
|
|
1209
|
+
protocol: OpenBaoProtocol,
|
|
1210
|
+
retry: Retry.Retry,
|
|
1211
|
+
}));
|
|
1212
|
+
|
|
1213
|
+
export type SshReadRoleError = OpenBaoOpError;
|
|
1214
|
+
export const sshReadRole: API.OperationMethod<
|
|
1215
|
+
SshReadRoleRequest,
|
|
1216
|
+
SshReadRoleResponse,
|
|
1217
|
+
SshReadRoleError,
|
|
1218
|
+
OpenBaoOpContext
|
|
1219
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1220
|
+
input: SshReadRoleRequest,
|
|
1221
|
+
output: SshReadRoleResponse,
|
|
1222
|
+
errors: [],
|
|
1223
|
+
protocol: OpenBaoProtocol,
|
|
1224
|
+
retry: Retry.Retry,
|
|
1225
|
+
}));
|
|
1226
|
+
|
|
1227
|
+
export type SshReadZeroAddressConfigurationError = OpenBaoOpError;
|
|
1228
|
+
export const sshReadZeroAddressConfiguration: API.OperationMethod<
|
|
1229
|
+
SshReadZeroAddressConfigurationRequest,
|
|
1230
|
+
SshReadZeroAddressConfigurationResponse,
|
|
1231
|
+
SshReadZeroAddressConfigurationError,
|
|
1232
|
+
OpenBaoOpContext
|
|
1233
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1234
|
+
input: SshReadZeroAddressConfigurationRequest,
|
|
1235
|
+
output: SshReadZeroAddressConfigurationResponse,
|
|
1236
|
+
errors: [],
|
|
1237
|
+
protocol: OpenBaoProtocol,
|
|
1238
|
+
retry: Retry.Retry,
|
|
1239
|
+
}));
|
|
1240
|
+
|
|
1241
|
+
export type SshSignCertificateError = OpenBaoOpError;
|
|
1242
|
+
export const sshSignCertificate: API.OperationMethod<
|
|
1243
|
+
SshSignCertificateRequest,
|
|
1244
|
+
SshSignCertificateResponse,
|
|
1245
|
+
SshSignCertificateError,
|
|
1246
|
+
OpenBaoOpContext
|
|
1247
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1248
|
+
input: SshSignCertificateRequest,
|
|
1249
|
+
output: SshSignCertificateResponse,
|
|
1250
|
+
errors: [],
|
|
1251
|
+
protocol: OpenBaoProtocol,
|
|
1252
|
+
retry: Retry.Retry,
|
|
1253
|
+
}));
|
|
1254
|
+
|
|
1255
|
+
export type SshSubmitIssuerError = OpenBaoOpError;
|
|
1256
|
+
export const sshSubmitIssuer: API.OperationMethod<
|
|
1257
|
+
SshSubmitIssuerRequest,
|
|
1258
|
+
SshSubmitIssuerResponse,
|
|
1259
|
+
SshSubmitIssuerError,
|
|
1260
|
+
OpenBaoOpContext
|
|
1261
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1262
|
+
input: SshSubmitIssuerRequest,
|
|
1263
|
+
output: SshSubmitIssuerResponse,
|
|
1264
|
+
errors: [],
|
|
1265
|
+
protocol: OpenBaoProtocol,
|
|
1266
|
+
retry: Retry.Retry,
|
|
1267
|
+
}));
|
|
1268
|
+
|
|
1269
|
+
export type SshSubmitIssuersImportIssuerNameError = OpenBaoOpError;
|
|
1270
|
+
export const sshSubmitIssuersImportIssuerName: API.OperationMethod<
|
|
1271
|
+
SshSubmitIssuersImportIssuerNameRequest,
|
|
1272
|
+
SshSubmitIssuersImportIssuerNameResponse,
|
|
1273
|
+
SshSubmitIssuersImportIssuerNameError,
|
|
1274
|
+
OpenBaoOpContext
|
|
1275
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1276
|
+
input: SshSubmitIssuersImportIssuerNameRequest,
|
|
1277
|
+
output: SshSubmitIssuersImportIssuerNameResponse,
|
|
1278
|
+
errors: [],
|
|
1279
|
+
protocol: OpenBaoProtocol,
|
|
1280
|
+
retry: Retry.Retry,
|
|
1281
|
+
}));
|
|
1282
|
+
|
|
1283
|
+
export type SshTidyDynamicHostKeysError = OpenBaoOpError;
|
|
1284
|
+
export const sshTidyDynamicHostKeys: API.OperationMethod<
|
|
1285
|
+
SshTidyDynamicHostKeysRequest,
|
|
1286
|
+
SshTidyDynamicHostKeysResponse,
|
|
1287
|
+
SshTidyDynamicHostKeysError,
|
|
1288
|
+
OpenBaoOpContext
|
|
1289
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1290
|
+
input: SshTidyDynamicHostKeysRequest,
|
|
1291
|
+
output: SshTidyDynamicHostKeysResponse,
|
|
1292
|
+
errors: [],
|
|
1293
|
+
protocol: OpenBaoProtocol,
|
|
1294
|
+
retry: Retry.Retry,
|
|
1295
|
+
}));
|
|
1296
|
+
|
|
1297
|
+
export type SshUpdateIssuerError = OpenBaoOpError;
|
|
1298
|
+
export const sshUpdateIssuer: API.OperationMethod<
|
|
1299
|
+
SshUpdateIssuerRequest,
|
|
1300
|
+
SshUpdateIssuerResponse,
|
|
1301
|
+
SshUpdateIssuerError,
|
|
1302
|
+
OpenBaoOpContext
|
|
1303
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1304
|
+
input: SshUpdateIssuerRequest,
|
|
1305
|
+
output: SshUpdateIssuerResponse,
|
|
1306
|
+
errors: [],
|
|
1307
|
+
protocol: OpenBaoProtocol,
|
|
1308
|
+
retry: Retry.Retry,
|
|
1309
|
+
}));
|
|
1310
|
+
|
|
1311
|
+
export type SshVerifyOtpError = OpenBaoOpError;
|
|
1312
|
+
export const sshVerifyOtp: API.OperationMethod<
|
|
1313
|
+
SshVerifyOtpRequest,
|
|
1314
|
+
SshVerifyOtpResponse,
|
|
1315
|
+
SshVerifyOtpError,
|
|
1316
|
+
OpenBaoOpContext
|
|
1317
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1318
|
+
input: SshVerifyOtpRequest,
|
|
1319
|
+
output: SshVerifyOtpResponse,
|
|
1320
|
+
errors: [],
|
|
1321
|
+
protocol: OpenBaoProtocol,
|
|
1322
|
+
retry: Retry.Retry,
|
|
1323
|
+
}));
|
|
1324
|
+
|
|
1325
|
+
export type SshWriteIssuerConfigError = OpenBaoOpError;
|
|
1326
|
+
export const sshWriteIssuerConfig: API.OperationMethod<
|
|
1327
|
+
SshWriteIssuerConfigRequest,
|
|
1328
|
+
SshWriteIssuerConfigResponse,
|
|
1329
|
+
SshWriteIssuerConfigError,
|
|
1330
|
+
OpenBaoOpContext
|
|
1331
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1332
|
+
input: SshWriteIssuerConfigRequest,
|
|
1333
|
+
output: SshWriteIssuerConfigResponse,
|
|
1334
|
+
errors: [],
|
|
1335
|
+
protocol: OpenBaoProtocol,
|
|
1336
|
+
retry: Retry.Retry,
|
|
1337
|
+
}));
|
|
1338
|
+
|
|
1339
|
+
export type SshWriteRoleError = OpenBaoOpError;
|
|
1340
|
+
export const sshWriteRole: API.OperationMethod<
|
|
1341
|
+
SshWriteRoleRequest,
|
|
1342
|
+
SshWriteRoleResponse,
|
|
1343
|
+
SshWriteRoleError,
|
|
1344
|
+
OpenBaoOpContext
|
|
1345
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1346
|
+
input: SshWriteRoleRequest,
|
|
1347
|
+
output: SshWriteRoleResponse,
|
|
1348
|
+
errors: [],
|
|
1349
|
+
protocol: OpenBaoProtocol,
|
|
1350
|
+
retry: Retry.Retry,
|
|
1351
|
+
}));
|