@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,540 @@
|
|
|
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 CancelRekeyAttemptRequest {}
|
|
15
|
+
export const CancelRekeyAttemptRequest = /*@__PURE__*/ S.suspend(() =>
|
|
16
|
+
S.Struct({}).pipe(
|
|
17
|
+
T.Http({ method: "DELETE", uri: "/sys/rekey/init", code: 200 }),
|
|
18
|
+
),
|
|
19
|
+
).annotate({
|
|
20
|
+
identifier: "CancelRekeyAttemptRequest",
|
|
21
|
+
}) as any as S.Schema<CancelRekeyAttemptRequest>;
|
|
22
|
+
|
|
23
|
+
export interface CancelRekeyAttemptResponse {}
|
|
24
|
+
export const CancelRekeyAttemptResponse = /*@__PURE__*/ S.suspend(() =>
|
|
25
|
+
S.Struct({}),
|
|
26
|
+
).annotate({
|
|
27
|
+
identifier: "CancelRekeyAttemptResponse",
|
|
28
|
+
}) as any as S.Schema<CancelRekeyAttemptResponse>;
|
|
29
|
+
|
|
30
|
+
export interface CancelRekeyVerificationRequest {}
|
|
31
|
+
export const CancelRekeyVerificationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
32
|
+
S.Struct({}).pipe(
|
|
33
|
+
T.Http({ method: "DELETE", uri: "/sys/rekey/verify", code: 200 }),
|
|
34
|
+
),
|
|
35
|
+
).annotate({
|
|
36
|
+
identifier: "CancelRekeyVerificationRequest",
|
|
37
|
+
}) as any as S.Schema<CancelRekeyVerificationRequest>;
|
|
38
|
+
|
|
39
|
+
export interface RekeyVerificationCancelResponse {
|
|
40
|
+
n?: number;
|
|
41
|
+
nounce?: string;
|
|
42
|
+
progress?: number;
|
|
43
|
+
started?: string;
|
|
44
|
+
t?: number;
|
|
45
|
+
}
|
|
46
|
+
export const RekeyVerificationCancelResponse = /*@__PURE__*/ S.suspend(() =>
|
|
47
|
+
S.Struct({
|
|
48
|
+
n: S.optional(S.Number),
|
|
49
|
+
nounce: S.optional(S.String),
|
|
50
|
+
progress: S.optional(S.Number),
|
|
51
|
+
started: S.optional(S.String),
|
|
52
|
+
t: S.optional(S.Number),
|
|
53
|
+
}),
|
|
54
|
+
).annotate({
|
|
55
|
+
identifier: "RekeyVerificationCancelResponse",
|
|
56
|
+
}) as any as S.Schema<RekeyVerificationCancelResponse>;
|
|
57
|
+
|
|
58
|
+
/** Specifies an array of PGP public keys used to encrypt the output unseal keys. Ordering is preserved. The keys must be base64-encoded from their original binary representation. The size of this array must be the same as secret_shares. */
|
|
59
|
+
export type RekeyAttemptInitializeRequestPgpKeysList = Array<string>;
|
|
60
|
+
export const RekeyAttemptInitializeRequestPgpKeysList = /*@__PURE__*/ S.Array(
|
|
61
|
+
S.String,
|
|
62
|
+
) as any as S.Schema<RekeyAttemptInitializeRequestPgpKeysList>;
|
|
63
|
+
|
|
64
|
+
export interface RekeyAttemptInitializeRequest {
|
|
65
|
+
/** Specifies if using PGP-encrypted keys, whether OpenBao should also store a plaintext backup of the PGP-encrypted keys. */
|
|
66
|
+
backup?: boolean;
|
|
67
|
+
/** Specifies an array of PGP public keys used to encrypt the output unseal keys. Ordering is preserved. The keys must be base64-encoded from their original binary representation. The size of this array must be the same as secret_shares. */
|
|
68
|
+
pgp_keys?: RekeyAttemptInitializeRequestPgpKeysList;
|
|
69
|
+
/** Turns on verification functionality */
|
|
70
|
+
require_verification?: boolean;
|
|
71
|
+
/** Specifies the number of shares to split the unseal key into. */
|
|
72
|
+
secret_shares?: number;
|
|
73
|
+
/** Specifies the number of shares required to reconstruct the unseal key. This must be less than or equal secret_shares. If using OpenBao HSM with auto-unsealing, this value must be the same as secret_shares. */
|
|
74
|
+
secret_threshold?: number;
|
|
75
|
+
}
|
|
76
|
+
export const RekeyAttemptInitializeRequest = /*@__PURE__*/ S.suspend(() =>
|
|
77
|
+
S.Struct({
|
|
78
|
+
backup: S.optional(S.Boolean),
|
|
79
|
+
pgp_keys: S.optional(RekeyAttemptInitializeRequestPgpKeysList),
|
|
80
|
+
require_verification: S.optional(S.Boolean),
|
|
81
|
+
secret_shares: S.optional(S.Number),
|
|
82
|
+
secret_threshold: S.optional(S.Number),
|
|
83
|
+
}).pipe(T.Http({ method: "POST", uri: "/sys/rekey/init", code: 200 })),
|
|
84
|
+
).annotate({
|
|
85
|
+
identifier: "RekeyAttemptInitializeRequest",
|
|
86
|
+
}) as any as S.Schema<RekeyAttemptInitializeRequest>;
|
|
87
|
+
|
|
88
|
+
export type RekeyAttemptInitializeResponsePgpFingerprintsList = Array<string>;
|
|
89
|
+
export const RekeyAttemptInitializeResponsePgpFingerprintsList =
|
|
90
|
+
/*@__PURE__*/ S.Array(
|
|
91
|
+
S.String,
|
|
92
|
+
) as any as S.Schema<RekeyAttemptInitializeResponsePgpFingerprintsList>;
|
|
93
|
+
|
|
94
|
+
export interface RekeyAttemptInitializeResponse {
|
|
95
|
+
backup?: boolean;
|
|
96
|
+
n?: number;
|
|
97
|
+
nounce?: string;
|
|
98
|
+
pgp_fingerprints?: RekeyAttemptInitializeResponsePgpFingerprintsList;
|
|
99
|
+
progress?: number;
|
|
100
|
+
required?: number;
|
|
101
|
+
started?: string;
|
|
102
|
+
t?: number;
|
|
103
|
+
verification_nonce?: string;
|
|
104
|
+
verification_required?: boolean;
|
|
105
|
+
}
|
|
106
|
+
export const RekeyAttemptInitializeResponse = /*@__PURE__*/ S.suspend(() =>
|
|
107
|
+
S.Struct({
|
|
108
|
+
backup: S.optional(S.Boolean),
|
|
109
|
+
n: S.optional(S.Number),
|
|
110
|
+
nounce: S.optional(S.String),
|
|
111
|
+
pgp_fingerprints: S.optional(
|
|
112
|
+
RekeyAttemptInitializeResponsePgpFingerprintsList,
|
|
113
|
+
),
|
|
114
|
+
progress: S.optional(S.Number),
|
|
115
|
+
required: S.optional(S.Number),
|
|
116
|
+
started: S.optional(S.String),
|
|
117
|
+
t: S.optional(S.Number),
|
|
118
|
+
verification_nonce: S.optional(S.String),
|
|
119
|
+
verification_required: S.optional(S.Boolean),
|
|
120
|
+
}),
|
|
121
|
+
).annotate({
|
|
122
|
+
identifier: "RekeyAttemptInitializeResponse",
|
|
123
|
+
}) as any as S.Schema<RekeyAttemptInitializeResponse>;
|
|
124
|
+
|
|
125
|
+
export interface RekeyAttemptReadProgressRequest {}
|
|
126
|
+
export const RekeyAttemptReadProgressRequest = /*@__PURE__*/ S.suspend(() =>
|
|
127
|
+
S.Struct({}).pipe(
|
|
128
|
+
T.Http({ method: "GET", uri: "/sys/rekey/init", code: 200 }),
|
|
129
|
+
),
|
|
130
|
+
).annotate({
|
|
131
|
+
identifier: "RekeyAttemptReadProgressRequest",
|
|
132
|
+
}) as any as S.Schema<RekeyAttemptReadProgressRequest>;
|
|
133
|
+
|
|
134
|
+
export type RekeyAttemptReadProgressResponsePgpFingerprintsList = Array<string>;
|
|
135
|
+
export const RekeyAttemptReadProgressResponsePgpFingerprintsList =
|
|
136
|
+
/*@__PURE__*/ S.Array(
|
|
137
|
+
S.String,
|
|
138
|
+
) as any as S.Schema<RekeyAttemptReadProgressResponsePgpFingerprintsList>;
|
|
139
|
+
|
|
140
|
+
export interface RekeyAttemptReadProgressResponse {
|
|
141
|
+
backup?: boolean;
|
|
142
|
+
n?: number;
|
|
143
|
+
nounce?: string;
|
|
144
|
+
pgp_fingerprints?: RekeyAttemptReadProgressResponsePgpFingerprintsList;
|
|
145
|
+
progress?: number;
|
|
146
|
+
required?: number;
|
|
147
|
+
started?: string;
|
|
148
|
+
t?: number;
|
|
149
|
+
verification_nonce?: string;
|
|
150
|
+
verification_required?: boolean;
|
|
151
|
+
}
|
|
152
|
+
export const RekeyAttemptReadProgressResponse = /*@__PURE__*/ S.suspend(() =>
|
|
153
|
+
S.Struct({
|
|
154
|
+
backup: S.optional(S.Boolean),
|
|
155
|
+
n: S.optional(S.Number),
|
|
156
|
+
nounce: S.optional(S.String),
|
|
157
|
+
pgp_fingerprints: S.optional(
|
|
158
|
+
RekeyAttemptReadProgressResponsePgpFingerprintsList,
|
|
159
|
+
),
|
|
160
|
+
progress: S.optional(S.Number),
|
|
161
|
+
required: S.optional(S.Number),
|
|
162
|
+
started: S.optional(S.String),
|
|
163
|
+
t: S.optional(S.Number),
|
|
164
|
+
verification_nonce: S.optional(S.String),
|
|
165
|
+
verification_required: S.optional(S.Boolean),
|
|
166
|
+
}),
|
|
167
|
+
).annotate({
|
|
168
|
+
identifier: "RekeyAttemptReadProgressResponse",
|
|
169
|
+
}) as any as S.Schema<RekeyAttemptReadProgressResponse>;
|
|
170
|
+
|
|
171
|
+
export interface RekeyDeleteBackupKeyRequest {}
|
|
172
|
+
export const RekeyDeleteBackupKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
173
|
+
S.Struct({}).pipe(
|
|
174
|
+
T.Http({ method: "DELETE", uri: "/sys/rekey/backup", code: 200 }),
|
|
175
|
+
),
|
|
176
|
+
).annotate({
|
|
177
|
+
identifier: "RekeyDeleteBackupKeyRequest",
|
|
178
|
+
}) as any as S.Schema<RekeyDeleteBackupKeyRequest>;
|
|
179
|
+
|
|
180
|
+
export interface RekeyDeleteBackupKeyResponse {}
|
|
181
|
+
export const RekeyDeleteBackupKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
182
|
+
S.Struct({}),
|
|
183
|
+
).annotate({
|
|
184
|
+
identifier: "RekeyDeleteBackupKeyResponse",
|
|
185
|
+
}) as any as S.Schema<RekeyDeleteBackupKeyResponse>;
|
|
186
|
+
|
|
187
|
+
export interface RekeyDeleteBackupRecoveryKeyRequest {}
|
|
188
|
+
export const RekeyDeleteBackupRecoveryKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
189
|
+
S.Struct({}).pipe(
|
|
190
|
+
T.Http({
|
|
191
|
+
method: "DELETE",
|
|
192
|
+
uri: "/sys/rekey/recovery-key-backup",
|
|
193
|
+
code: 200,
|
|
194
|
+
}),
|
|
195
|
+
),
|
|
196
|
+
).annotate({
|
|
197
|
+
identifier: "RekeyDeleteBackupRecoveryKeyRequest",
|
|
198
|
+
}) as any as S.Schema<RekeyDeleteBackupRecoveryKeyRequest>;
|
|
199
|
+
|
|
200
|
+
export interface RekeyDeleteBackupRecoveryKeyResponse {}
|
|
201
|
+
export const RekeyDeleteBackupRecoveryKeyResponse = /*@__PURE__*/ S.suspend(
|
|
202
|
+
() => S.Struct({}),
|
|
203
|
+
).annotate({
|
|
204
|
+
identifier: "RekeyDeleteBackupRecoveryKeyResponse",
|
|
205
|
+
}) as any as S.Schema<RekeyDeleteBackupRecoveryKeyResponse>;
|
|
206
|
+
|
|
207
|
+
export interface RekeyReadBackupKeyRequest {}
|
|
208
|
+
export const RekeyReadBackupKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
209
|
+
S.Struct({}).pipe(
|
|
210
|
+
T.Http({ method: "GET", uri: "/sys/rekey/backup", code: 200 }),
|
|
211
|
+
),
|
|
212
|
+
).annotate({
|
|
213
|
+
identifier: "RekeyReadBackupKeyRequest",
|
|
214
|
+
}) as any as S.Schema<RekeyReadBackupKeyRequest>;
|
|
215
|
+
|
|
216
|
+
export interface RekeyReadBackupKeyResponse {
|
|
217
|
+
keys?: unknown;
|
|
218
|
+
keys_base64?: unknown;
|
|
219
|
+
nonce?: string;
|
|
220
|
+
}
|
|
221
|
+
export const RekeyReadBackupKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
222
|
+
S.Struct({
|
|
223
|
+
keys: S.optional(S.Unknown),
|
|
224
|
+
keys_base64: S.optional(S.Unknown),
|
|
225
|
+
nonce: S.optional(S.String),
|
|
226
|
+
}),
|
|
227
|
+
).annotate({
|
|
228
|
+
identifier: "RekeyReadBackupKeyResponse",
|
|
229
|
+
}) as any as S.Schema<RekeyReadBackupKeyResponse>;
|
|
230
|
+
|
|
231
|
+
export interface RekeyReadBackupRecoveryKeyRequest {}
|
|
232
|
+
export const RekeyReadBackupRecoveryKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
233
|
+
S.Struct({}).pipe(
|
|
234
|
+
T.Http({ method: "GET", uri: "/sys/rekey/recovery-key-backup", code: 200 }),
|
|
235
|
+
),
|
|
236
|
+
).annotate({
|
|
237
|
+
identifier: "RekeyReadBackupRecoveryKeyRequest",
|
|
238
|
+
}) as any as S.Schema<RekeyReadBackupRecoveryKeyRequest>;
|
|
239
|
+
|
|
240
|
+
export interface RekeyReadBackupRecoveryKeyResponse {
|
|
241
|
+
keys?: unknown;
|
|
242
|
+
keys_base64?: unknown;
|
|
243
|
+
nonce?: string;
|
|
244
|
+
}
|
|
245
|
+
export const RekeyReadBackupRecoveryKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
246
|
+
S.Struct({
|
|
247
|
+
keys: S.optional(S.Unknown),
|
|
248
|
+
keys_base64: S.optional(S.Unknown),
|
|
249
|
+
nonce: S.optional(S.String),
|
|
250
|
+
}),
|
|
251
|
+
).annotate({
|
|
252
|
+
identifier: "RekeyReadBackupRecoveryKeyResponse",
|
|
253
|
+
}) as any as S.Schema<RekeyReadBackupRecoveryKeyResponse>;
|
|
254
|
+
|
|
255
|
+
export interface RekeyVerificationReadProgressRequest {}
|
|
256
|
+
export const RekeyVerificationReadProgressRequest = /*@__PURE__*/ S.suspend(
|
|
257
|
+
() =>
|
|
258
|
+
S.Struct({}).pipe(
|
|
259
|
+
T.Http({ method: "GET", uri: "/sys/rekey/verify", code: 200 }),
|
|
260
|
+
),
|
|
261
|
+
).annotate({
|
|
262
|
+
identifier: "RekeyVerificationReadProgressRequest",
|
|
263
|
+
}) as any as S.Schema<RekeyVerificationReadProgressRequest>;
|
|
264
|
+
|
|
265
|
+
export interface RekeyVerificationReadProgressResponse {
|
|
266
|
+
n?: number;
|
|
267
|
+
nounce?: string;
|
|
268
|
+
progress?: number;
|
|
269
|
+
started?: string;
|
|
270
|
+
t?: number;
|
|
271
|
+
}
|
|
272
|
+
export const RekeyVerificationReadProgressResponse = /*@__PURE__*/ S.suspend(
|
|
273
|
+
() =>
|
|
274
|
+
S.Struct({
|
|
275
|
+
n: S.optional(S.Number),
|
|
276
|
+
nounce: S.optional(S.String),
|
|
277
|
+
progress: S.optional(S.Number),
|
|
278
|
+
started: S.optional(S.String),
|
|
279
|
+
t: S.optional(S.Number),
|
|
280
|
+
}),
|
|
281
|
+
).annotate({
|
|
282
|
+
identifier: "RekeyVerificationReadProgressResponse",
|
|
283
|
+
}) as any as S.Schema<RekeyVerificationReadProgressResponse>;
|
|
284
|
+
|
|
285
|
+
export interface UpdateRekeyAttemptRequest {
|
|
286
|
+
/** Specifies a single unseal key share. */
|
|
287
|
+
key?: string;
|
|
288
|
+
/** Specifies the nonce of the rekey attempt. */
|
|
289
|
+
nonce?: string;
|
|
290
|
+
}
|
|
291
|
+
export const UpdateRekeyAttemptRequest = /*@__PURE__*/ S.suspend(() =>
|
|
292
|
+
S.Struct({
|
|
293
|
+
key: S.optional(S.String),
|
|
294
|
+
nonce: S.optional(S.String),
|
|
295
|
+
}).pipe(T.Http({ method: "POST", uri: "/sys/rekey/update", code: 200 })),
|
|
296
|
+
).annotate({
|
|
297
|
+
identifier: "UpdateRekeyAttemptRequest",
|
|
298
|
+
}) as any as S.Schema<UpdateRekeyAttemptRequest>;
|
|
299
|
+
|
|
300
|
+
export type RekeyAttemptUpdateResponseKeysList = Array<string>;
|
|
301
|
+
export const RekeyAttemptUpdateResponseKeysList = /*@__PURE__*/ S.Array(
|
|
302
|
+
S.String,
|
|
303
|
+
) as any as S.Schema<RekeyAttemptUpdateResponseKeysList>;
|
|
304
|
+
|
|
305
|
+
export type RekeyAttemptUpdateResponseKeysBase64List = Array<string>;
|
|
306
|
+
export const RekeyAttemptUpdateResponseKeysBase64List = /*@__PURE__*/ S.Array(
|
|
307
|
+
S.String,
|
|
308
|
+
) as any as S.Schema<RekeyAttemptUpdateResponseKeysBase64List>;
|
|
309
|
+
|
|
310
|
+
export type RekeyAttemptUpdateResponsePgpFingerprintsList = Array<string>;
|
|
311
|
+
export const RekeyAttemptUpdateResponsePgpFingerprintsList =
|
|
312
|
+
/*@__PURE__*/ S.Array(
|
|
313
|
+
S.String,
|
|
314
|
+
) as any as S.Schema<RekeyAttemptUpdateResponsePgpFingerprintsList>;
|
|
315
|
+
|
|
316
|
+
export interface RekeyAttemptUpdateResponse {
|
|
317
|
+
backup?: boolean;
|
|
318
|
+
complete?: boolean;
|
|
319
|
+
keys?: RekeyAttemptUpdateResponseKeysList;
|
|
320
|
+
keys_base64?: RekeyAttemptUpdateResponseKeysBase64List;
|
|
321
|
+
n?: number;
|
|
322
|
+
nounce?: string;
|
|
323
|
+
pgp_fingerprints?: RekeyAttemptUpdateResponsePgpFingerprintsList;
|
|
324
|
+
progress?: number;
|
|
325
|
+
required?: number;
|
|
326
|
+
started?: string;
|
|
327
|
+
t?: number;
|
|
328
|
+
verification_nonce?: string;
|
|
329
|
+
verification_required?: boolean;
|
|
330
|
+
}
|
|
331
|
+
export const RekeyAttemptUpdateResponse = /*@__PURE__*/ S.suspend(() =>
|
|
332
|
+
S.Struct({
|
|
333
|
+
backup: S.optional(S.Boolean),
|
|
334
|
+
complete: S.optional(S.Boolean),
|
|
335
|
+
keys: S.optional(RekeyAttemptUpdateResponseKeysList),
|
|
336
|
+
keys_base64: S.optional(RekeyAttemptUpdateResponseKeysBase64List),
|
|
337
|
+
n: S.optional(S.Number),
|
|
338
|
+
nounce: S.optional(S.String),
|
|
339
|
+
pgp_fingerprints: S.optional(RekeyAttemptUpdateResponsePgpFingerprintsList),
|
|
340
|
+
progress: S.optional(S.Number),
|
|
341
|
+
required: S.optional(S.Number),
|
|
342
|
+
started: S.optional(S.String),
|
|
343
|
+
t: S.optional(S.Number),
|
|
344
|
+
verification_nonce: S.optional(S.String),
|
|
345
|
+
verification_required: S.optional(S.Boolean),
|
|
346
|
+
}),
|
|
347
|
+
).annotate({
|
|
348
|
+
identifier: "RekeyAttemptUpdateResponse",
|
|
349
|
+
}) as any as S.Schema<RekeyAttemptUpdateResponse>;
|
|
350
|
+
|
|
351
|
+
export interface UpdateRekeyVerificationRequest {
|
|
352
|
+
/** Specifies a single unseal share key from the new set of shares. */
|
|
353
|
+
key?: string;
|
|
354
|
+
/** Specifies the nonce of the rekey verification operation. */
|
|
355
|
+
nonce?: string;
|
|
356
|
+
}
|
|
357
|
+
export const UpdateRekeyVerificationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
358
|
+
S.Struct({
|
|
359
|
+
key: S.optional(S.String),
|
|
360
|
+
nonce: S.optional(S.String),
|
|
361
|
+
}).pipe(T.Http({ method: "POST", uri: "/sys/rekey/verify", code: 200 })),
|
|
362
|
+
).annotate({
|
|
363
|
+
identifier: "UpdateRekeyVerificationRequest",
|
|
364
|
+
}) as any as S.Schema<UpdateRekeyVerificationRequest>;
|
|
365
|
+
|
|
366
|
+
export interface RekeyVerificationUpdateResponse {
|
|
367
|
+
complete?: boolean;
|
|
368
|
+
nounce?: string;
|
|
369
|
+
}
|
|
370
|
+
export const RekeyVerificationUpdateResponse = /*@__PURE__*/ S.suspend(() =>
|
|
371
|
+
S.Struct({
|
|
372
|
+
complete: S.optional(S.Boolean),
|
|
373
|
+
nounce: S.optional(S.String),
|
|
374
|
+
}),
|
|
375
|
+
).annotate({
|
|
376
|
+
identifier: "RekeyVerificationUpdateResponse",
|
|
377
|
+
}) as any as S.Schema<RekeyVerificationUpdateResponse>;
|
|
378
|
+
|
|
379
|
+
export type CancelRekeyAttemptError = OpenBaoOpError;
|
|
380
|
+
/** Cancels any in-progress rekey. This clears the rekey settings as well as any progress made. This must be called to change the parameters of the rekey. Note: verification is still a part of a rekey. If rekeying is canceled during the verification flow, the current unseal keys remain valid. */
|
|
381
|
+
export const cancelRekeyAttempt: API.OperationMethod<
|
|
382
|
+
CancelRekeyAttemptRequest,
|
|
383
|
+
CancelRekeyAttemptResponse,
|
|
384
|
+
CancelRekeyAttemptError,
|
|
385
|
+
OpenBaoOpContext
|
|
386
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
387
|
+
input: CancelRekeyAttemptRequest,
|
|
388
|
+
output: CancelRekeyAttemptResponse,
|
|
389
|
+
errors: [],
|
|
390
|
+
protocol: OpenBaoProtocol,
|
|
391
|
+
retry: Retry.Retry,
|
|
392
|
+
}));
|
|
393
|
+
|
|
394
|
+
export type CancelRekeyVerificationError = OpenBaoOpError;
|
|
395
|
+
/** Cancel any in-progress rekey verification operation. This clears any progress made and resets the nonce. Unlike a `DELETE` against `sys/rekey/init`, this only resets the current verification operation, not the entire rekey atttempt. */
|
|
396
|
+
export const cancelRekeyVerification: API.OperationMethod<
|
|
397
|
+
CancelRekeyVerificationRequest,
|
|
398
|
+
RekeyVerificationCancelResponse,
|
|
399
|
+
CancelRekeyVerificationError,
|
|
400
|
+
OpenBaoOpContext
|
|
401
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
402
|
+
input: CancelRekeyVerificationRequest,
|
|
403
|
+
output: RekeyVerificationCancelResponse,
|
|
404
|
+
errors: [],
|
|
405
|
+
protocol: OpenBaoProtocol,
|
|
406
|
+
retry: Retry.Retry,
|
|
407
|
+
}));
|
|
408
|
+
|
|
409
|
+
export type RekeyAttemptInitializeError = OpenBaoOpError;
|
|
410
|
+
/** Initializes a new rekey attempt. Only a single rekey attempt can take place at a time, and changing the parameters of a rekey requires canceling and starting a new rekey, which will also provide a new nonce. */
|
|
411
|
+
export const rekeyAttemptInitialize: API.OperationMethod<
|
|
412
|
+
RekeyAttemptInitializeRequest,
|
|
413
|
+
RekeyAttemptInitializeResponse,
|
|
414
|
+
RekeyAttemptInitializeError,
|
|
415
|
+
OpenBaoOpContext
|
|
416
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
417
|
+
input: RekeyAttemptInitializeRequest,
|
|
418
|
+
output: RekeyAttemptInitializeResponse,
|
|
419
|
+
errors: [],
|
|
420
|
+
protocol: OpenBaoProtocol,
|
|
421
|
+
retry: Retry.Retry,
|
|
422
|
+
}));
|
|
423
|
+
|
|
424
|
+
export type RekeyAttemptReadProgressError = OpenBaoOpError;
|
|
425
|
+
/** Reads the configuration and progress of the current rekey attempt. */
|
|
426
|
+
export const rekeyAttemptReadProgress: API.OperationMethod<
|
|
427
|
+
RekeyAttemptReadProgressRequest,
|
|
428
|
+
RekeyAttemptReadProgressResponse,
|
|
429
|
+
RekeyAttemptReadProgressError,
|
|
430
|
+
OpenBaoOpContext
|
|
431
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
432
|
+
input: RekeyAttemptReadProgressRequest,
|
|
433
|
+
output: RekeyAttemptReadProgressResponse,
|
|
434
|
+
errors: [],
|
|
435
|
+
protocol: OpenBaoProtocol,
|
|
436
|
+
retry: Retry.Retry,
|
|
437
|
+
}));
|
|
438
|
+
|
|
439
|
+
export type RekeyDeleteBackupKeyError = OpenBaoOpError;
|
|
440
|
+
/** Delete the backup copy of PGP-encrypted unseal keys. */
|
|
441
|
+
export const rekeyDeleteBackupKey: API.OperationMethod<
|
|
442
|
+
RekeyDeleteBackupKeyRequest,
|
|
443
|
+
RekeyDeleteBackupKeyResponse,
|
|
444
|
+
RekeyDeleteBackupKeyError,
|
|
445
|
+
OpenBaoOpContext
|
|
446
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
447
|
+
input: RekeyDeleteBackupKeyRequest,
|
|
448
|
+
output: RekeyDeleteBackupKeyResponse,
|
|
449
|
+
errors: [],
|
|
450
|
+
protocol: OpenBaoProtocol,
|
|
451
|
+
retry: Retry.Retry,
|
|
452
|
+
}));
|
|
453
|
+
|
|
454
|
+
export type RekeyDeleteBackupRecoveryKeyError = OpenBaoOpError;
|
|
455
|
+
export const rekeyDeleteBackupRecoveryKey: API.OperationMethod<
|
|
456
|
+
RekeyDeleteBackupRecoveryKeyRequest,
|
|
457
|
+
RekeyDeleteBackupRecoveryKeyResponse,
|
|
458
|
+
RekeyDeleteBackupRecoveryKeyError,
|
|
459
|
+
OpenBaoOpContext
|
|
460
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
461
|
+
input: RekeyDeleteBackupRecoveryKeyRequest,
|
|
462
|
+
output: RekeyDeleteBackupRecoveryKeyResponse,
|
|
463
|
+
errors: [],
|
|
464
|
+
protocol: OpenBaoProtocol,
|
|
465
|
+
retry: Retry.Retry,
|
|
466
|
+
}));
|
|
467
|
+
|
|
468
|
+
export type RekeyReadBackupKeyError = OpenBaoOpError;
|
|
469
|
+
/** Return the backup copy of PGP-encrypted unseal keys. */
|
|
470
|
+
export const rekeyReadBackupKey: API.OperationMethod<
|
|
471
|
+
RekeyReadBackupKeyRequest,
|
|
472
|
+
RekeyReadBackupKeyResponse,
|
|
473
|
+
RekeyReadBackupKeyError,
|
|
474
|
+
OpenBaoOpContext
|
|
475
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
476
|
+
input: RekeyReadBackupKeyRequest,
|
|
477
|
+
output: RekeyReadBackupKeyResponse,
|
|
478
|
+
errors: [],
|
|
479
|
+
protocol: OpenBaoProtocol,
|
|
480
|
+
retry: Retry.Retry,
|
|
481
|
+
}));
|
|
482
|
+
|
|
483
|
+
export type RekeyReadBackupRecoveryKeyError = OpenBaoOpError;
|
|
484
|
+
export const rekeyReadBackupRecoveryKey: API.OperationMethod<
|
|
485
|
+
RekeyReadBackupRecoveryKeyRequest,
|
|
486
|
+
RekeyReadBackupRecoveryKeyResponse,
|
|
487
|
+
RekeyReadBackupRecoveryKeyError,
|
|
488
|
+
OpenBaoOpContext
|
|
489
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
490
|
+
input: RekeyReadBackupRecoveryKeyRequest,
|
|
491
|
+
output: RekeyReadBackupRecoveryKeyResponse,
|
|
492
|
+
errors: [],
|
|
493
|
+
protocol: OpenBaoProtocol,
|
|
494
|
+
retry: Retry.Retry,
|
|
495
|
+
}));
|
|
496
|
+
|
|
497
|
+
export type RekeyVerificationReadProgressError = OpenBaoOpError;
|
|
498
|
+
/** Read the configuration and progress of the current rekey verification attempt. */
|
|
499
|
+
export const rekeyVerificationReadProgress: API.OperationMethod<
|
|
500
|
+
RekeyVerificationReadProgressRequest,
|
|
501
|
+
RekeyVerificationReadProgressResponse,
|
|
502
|
+
RekeyVerificationReadProgressError,
|
|
503
|
+
OpenBaoOpContext
|
|
504
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
505
|
+
input: RekeyVerificationReadProgressRequest,
|
|
506
|
+
output: RekeyVerificationReadProgressResponse,
|
|
507
|
+
errors: [],
|
|
508
|
+
protocol: OpenBaoProtocol,
|
|
509
|
+
retry: Retry.Retry,
|
|
510
|
+
}));
|
|
511
|
+
|
|
512
|
+
export type UpdateRekeyAttemptError = OpenBaoOpError;
|
|
513
|
+
/** Enter a single unseal key share to progress the rekey of the OpenBao. */
|
|
514
|
+
export const updateRekeyAttempt: API.OperationMethod<
|
|
515
|
+
UpdateRekeyAttemptRequest,
|
|
516
|
+
RekeyAttemptUpdateResponse,
|
|
517
|
+
UpdateRekeyAttemptError,
|
|
518
|
+
OpenBaoOpContext
|
|
519
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
520
|
+
input: UpdateRekeyAttemptRequest,
|
|
521
|
+
output: RekeyAttemptUpdateResponse,
|
|
522
|
+
errors: [],
|
|
523
|
+
protocol: OpenBaoProtocol,
|
|
524
|
+
retry: Retry.Retry,
|
|
525
|
+
}));
|
|
526
|
+
|
|
527
|
+
export type UpdateRekeyVerificationError = OpenBaoOpError;
|
|
528
|
+
/** Enter a single new key share to progress the rekey verification operation. */
|
|
529
|
+
export const updateRekeyVerification: API.OperationMethod<
|
|
530
|
+
UpdateRekeyVerificationRequest,
|
|
531
|
+
RekeyVerificationUpdateResponse,
|
|
532
|
+
UpdateRekeyVerificationError,
|
|
533
|
+
OpenBaoOpContext
|
|
534
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
535
|
+
input: UpdateRekeyVerificationRequest,
|
|
536
|
+
output: RekeyVerificationUpdateResponse,
|
|
537
|
+
errors: [],
|
|
538
|
+
protocol: OpenBaoProtocol,
|
|
539
|
+
retry: Retry.Retry,
|
|
540
|
+
}));
|
|
@@ -0,0 +1,51 @@
|
|
|
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 ReloadSubsystemRequest {
|
|
15
|
+
subsystem: string;
|
|
16
|
+
}
|
|
17
|
+
export const ReloadSubsystemRequest = /*@__PURE__*/ S.suspend(() =>
|
|
18
|
+
S.Struct({
|
|
19
|
+
subsystem: S.String.pipe(T.Label()),
|
|
20
|
+
}).pipe(
|
|
21
|
+
T.Http({
|
|
22
|
+
method: "POST",
|
|
23
|
+
uri: "/sys/config/reload/{subsystem}",
|
|
24
|
+
code: 200,
|
|
25
|
+
}),
|
|
26
|
+
),
|
|
27
|
+
).annotate({
|
|
28
|
+
identifier: "ReloadSubsystemRequest",
|
|
29
|
+
}) as any as S.Schema<ReloadSubsystemRequest>;
|
|
30
|
+
|
|
31
|
+
export interface ReloadSubsystemResponse {}
|
|
32
|
+
export const ReloadSubsystemResponse = /*@__PURE__*/ S.suspend(() =>
|
|
33
|
+
S.Struct({}),
|
|
34
|
+
).annotate({
|
|
35
|
+
identifier: "ReloadSubsystemResponse",
|
|
36
|
+
}) as any as S.Schema<ReloadSubsystemResponse>;
|
|
37
|
+
|
|
38
|
+
export type ReloadSubsystemError = OpenBaoOpError;
|
|
39
|
+
/** Reload the given subsystem */
|
|
40
|
+
export const reloadSubsystem: API.OperationMethod<
|
|
41
|
+
ReloadSubsystemRequest,
|
|
42
|
+
ReloadSubsystemResponse,
|
|
43
|
+
ReloadSubsystemError,
|
|
44
|
+
OpenBaoOpContext
|
|
45
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
46
|
+
input: ReloadSubsystemRequest,
|
|
47
|
+
output: ReloadSubsystemResponse,
|
|
48
|
+
errors: [],
|
|
49
|
+
protocol: OpenBaoProtocol,
|
|
50
|
+
retry: Retry.Retry,
|
|
51
|
+
}));
|
|
@@ -0,0 +1,58 @@
|
|
|
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 RemountStatusRequest {
|
|
15
|
+
/** The ID of the migration operation */
|
|
16
|
+
migration_id: string;
|
|
17
|
+
}
|
|
18
|
+
export const RemountStatusRequest = /*@__PURE__*/ S.suspend(() =>
|
|
19
|
+
S.Struct({
|
|
20
|
+
migration_id: S.String.pipe(T.Label()),
|
|
21
|
+
}).pipe(
|
|
22
|
+
T.Http({
|
|
23
|
+
method: "GET",
|
|
24
|
+
uri: "/sys/remount/status/{migration_id}",
|
|
25
|
+
code: 200,
|
|
26
|
+
}),
|
|
27
|
+
),
|
|
28
|
+
).annotate({
|
|
29
|
+
identifier: "RemountStatusRequest",
|
|
30
|
+
}) as any as S.Schema<RemountStatusRequest>;
|
|
31
|
+
|
|
32
|
+
export interface RemountStatusResponse {
|
|
33
|
+
migration_id?: string;
|
|
34
|
+
migration_info?: unknown;
|
|
35
|
+
}
|
|
36
|
+
export const RemountStatusResponse = /*@__PURE__*/ S.suspend(() =>
|
|
37
|
+
S.Struct({
|
|
38
|
+
migration_id: S.optional(S.String),
|
|
39
|
+
migration_info: S.optional(S.Unknown),
|
|
40
|
+
}),
|
|
41
|
+
).annotate({
|
|
42
|
+
identifier: "RemountStatusResponse",
|
|
43
|
+
}) as any as S.Schema<RemountStatusResponse>;
|
|
44
|
+
|
|
45
|
+
export type RemountStatusError = OpenBaoOpError;
|
|
46
|
+
/** Check status of a mount migration */
|
|
47
|
+
export const remountStatus: API.OperationMethod<
|
|
48
|
+
RemountStatusRequest,
|
|
49
|
+
RemountStatusResponse,
|
|
50
|
+
RemountStatusError,
|
|
51
|
+
OpenBaoOpContext
|
|
52
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
53
|
+
input: RemountStatusRequest,
|
|
54
|
+
output: RemountStatusResponse,
|
|
55
|
+
errors: [],
|
|
56
|
+
protocol: OpenBaoProtocol,
|
|
57
|
+
retry: Retry.Retry,
|
|
58
|
+
}));
|