@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,266 @@
|
|
|
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 ReadEncryptionKeyConfigRequest {}
|
|
15
|
+
export const ReadEncryptionKeyConfigRequest = /*@__PURE__*/ S.suspend(() =>
|
|
16
|
+
S.Struct({}).pipe(
|
|
17
|
+
T.Http({ method: "GET", uri: "/sys/rotate/config", code: 200 }),
|
|
18
|
+
),
|
|
19
|
+
).annotate({
|
|
20
|
+
identifier: "ReadEncryptionKeyConfigRequest",
|
|
21
|
+
}) as any as S.Schema<ReadEncryptionKeyConfigRequest>;
|
|
22
|
+
|
|
23
|
+
export interface ReadEncryptionKeyConfigResponse {
|
|
24
|
+
/** Whether automatic rotation is enabled. */
|
|
25
|
+
enabled?: boolean;
|
|
26
|
+
/** How long after installation of an active key term that the key will be automatically rotated. */
|
|
27
|
+
interval?: number;
|
|
28
|
+
/** The number of encryption operations performed before the barrier key is automatically rotated. */
|
|
29
|
+
max_operations?: number;
|
|
30
|
+
}
|
|
31
|
+
export const ReadEncryptionKeyConfigResponse = /*@__PURE__*/ S.suspend(() =>
|
|
32
|
+
S.Struct({
|
|
33
|
+
enabled: S.optional(S.Boolean),
|
|
34
|
+
interval: S.optional(S.Number),
|
|
35
|
+
max_operations: S.optional(S.Number),
|
|
36
|
+
}),
|
|
37
|
+
).annotate({
|
|
38
|
+
identifier: "ReadEncryptionKeyConfigResponse",
|
|
39
|
+
}) as any as S.Schema<ReadEncryptionKeyConfigResponse>;
|
|
40
|
+
|
|
41
|
+
export interface ReadHealthStatusRequest {}
|
|
42
|
+
export const ReadHealthStatusRequest = /*@__PURE__*/ S.suspend(() =>
|
|
43
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/sys/health", code: 200 })),
|
|
44
|
+
).annotate({
|
|
45
|
+
identifier: "ReadHealthStatusRequest",
|
|
46
|
+
}) as any as S.Schema<ReadHealthStatusRequest>;
|
|
47
|
+
|
|
48
|
+
export interface ReadHealthStatusResponse {}
|
|
49
|
+
export const ReadHealthStatusResponse = /*@__PURE__*/ S.suspend(() =>
|
|
50
|
+
S.Struct({}),
|
|
51
|
+
).annotate({
|
|
52
|
+
identifier: "ReadHealthStatusResponse",
|
|
53
|
+
}) as any as S.Schema<ReadHealthStatusResponse>;
|
|
54
|
+
|
|
55
|
+
export interface ReadInitializationStatusRequest {}
|
|
56
|
+
export const ReadInitializationStatusRequest = /*@__PURE__*/ S.suspend(() =>
|
|
57
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/sys/init", code: 200 })),
|
|
58
|
+
).annotate({
|
|
59
|
+
identifier: "ReadInitializationStatusRequest",
|
|
60
|
+
}) as any as S.Schema<ReadInitializationStatusRequest>;
|
|
61
|
+
|
|
62
|
+
export interface ReadInitializationStatusResponse {}
|
|
63
|
+
export const ReadInitializationStatusResponse = /*@__PURE__*/ S.suspend(() =>
|
|
64
|
+
S.Struct({}),
|
|
65
|
+
).annotate({
|
|
66
|
+
identifier: "ReadInitializationStatusResponse",
|
|
67
|
+
}) as any as S.Schema<ReadInitializationStatusResponse>;
|
|
68
|
+
|
|
69
|
+
export interface ReadRotateKeyringConfigRequest {}
|
|
70
|
+
export const ReadRotateKeyringConfigRequest = /*@__PURE__*/ S.suspend(() =>
|
|
71
|
+
S.Struct({}).pipe(
|
|
72
|
+
T.Http({ method: "GET", uri: "/sys/rotate/keyring/config", code: 200 }),
|
|
73
|
+
),
|
|
74
|
+
).annotate({
|
|
75
|
+
identifier: "ReadRotateKeyringConfigRequest",
|
|
76
|
+
}) as any as S.Schema<ReadRotateKeyringConfigRequest>;
|
|
77
|
+
|
|
78
|
+
export interface ReadRotateKeyringConfigResponse {
|
|
79
|
+
/** Whether automatic rotation is enabled. */
|
|
80
|
+
enabled?: boolean;
|
|
81
|
+
/** How long after installation of an active key term that the key will be automatically rotated. */
|
|
82
|
+
interval?: number;
|
|
83
|
+
/** The number of encryption operations performed before the barrier key is automatically rotated. */
|
|
84
|
+
max_operations?: number;
|
|
85
|
+
}
|
|
86
|
+
export const ReadRotateKeyringConfigResponse = /*@__PURE__*/ S.suspend(() =>
|
|
87
|
+
S.Struct({
|
|
88
|
+
enabled: S.optional(S.Boolean),
|
|
89
|
+
interval: S.optional(S.Number),
|
|
90
|
+
max_operations: S.optional(S.Number),
|
|
91
|
+
}),
|
|
92
|
+
).annotate({
|
|
93
|
+
identifier: "ReadRotateKeyringConfigResponse",
|
|
94
|
+
}) as any as S.Schema<ReadRotateKeyringConfigResponse>;
|
|
95
|
+
|
|
96
|
+
export interface ReadSanitizedConfigurationStateRequest {}
|
|
97
|
+
export const ReadSanitizedConfigurationStateRequest = /*@__PURE__*/ S.suspend(
|
|
98
|
+
() =>
|
|
99
|
+
S.Struct({}).pipe(
|
|
100
|
+
T.Http({ method: "GET", uri: "/sys/config/state/sanitized", code: 200 }),
|
|
101
|
+
),
|
|
102
|
+
).annotate({
|
|
103
|
+
identifier: "ReadSanitizedConfigurationStateRequest",
|
|
104
|
+
}) as any as S.Schema<ReadSanitizedConfigurationStateRequest>;
|
|
105
|
+
|
|
106
|
+
export interface ReadSanitizedConfigurationStateResponse {}
|
|
107
|
+
export const ReadSanitizedConfigurationStateResponse = /*@__PURE__*/ S.suspend(
|
|
108
|
+
() => S.Struct({}),
|
|
109
|
+
).annotate({
|
|
110
|
+
identifier: "ReadSanitizedConfigurationStateResponse",
|
|
111
|
+
}) as any as S.Schema<ReadSanitizedConfigurationStateResponse>;
|
|
112
|
+
|
|
113
|
+
export interface ReadWrappingPropertiesRequest {
|
|
114
|
+
token?: string;
|
|
115
|
+
}
|
|
116
|
+
export const ReadWrappingPropertiesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
117
|
+
S.Struct({
|
|
118
|
+
token: S.optional(S.String),
|
|
119
|
+
}).pipe(T.Http({ method: "POST", uri: "/sys/wrapping/lookup", code: 200 })),
|
|
120
|
+
).annotate({
|
|
121
|
+
identifier: "ReadWrappingPropertiesRequest",
|
|
122
|
+
}) as any as S.Schema<ReadWrappingPropertiesRequest>;
|
|
123
|
+
|
|
124
|
+
export interface ReadWrappingPropertiesResponse {
|
|
125
|
+
creation_path?: string;
|
|
126
|
+
creation_time?: string;
|
|
127
|
+
creation_ttl?: number;
|
|
128
|
+
}
|
|
129
|
+
export const ReadWrappingPropertiesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
130
|
+
S.Struct({
|
|
131
|
+
creation_path: S.optional(S.String),
|
|
132
|
+
creation_time: S.optional(S.String),
|
|
133
|
+
creation_ttl: S.optional(S.Number),
|
|
134
|
+
}),
|
|
135
|
+
).annotate({
|
|
136
|
+
identifier: "ReadWrappingPropertiesResponse",
|
|
137
|
+
}) as any as S.Schema<ReadWrappingPropertiesResponse>;
|
|
138
|
+
|
|
139
|
+
export interface ReadWrappingProperties2Request {}
|
|
140
|
+
export const ReadWrappingProperties2Request = /*@__PURE__*/ S.suspend(() =>
|
|
141
|
+
S.Struct({}).pipe(
|
|
142
|
+
T.Http({ method: "GET", uri: "/sys/wrapping/lookup", code: 200 }),
|
|
143
|
+
),
|
|
144
|
+
).annotate({
|
|
145
|
+
identifier: "ReadWrappingProperties2Request",
|
|
146
|
+
}) as any as S.Schema<ReadWrappingProperties2Request>;
|
|
147
|
+
|
|
148
|
+
export interface ReadWrappingProperties2Response {
|
|
149
|
+
creation_path?: string;
|
|
150
|
+
creation_time?: string;
|
|
151
|
+
creation_ttl?: number;
|
|
152
|
+
}
|
|
153
|
+
export const ReadWrappingProperties2Response = /*@__PURE__*/ S.suspend(() =>
|
|
154
|
+
S.Struct({
|
|
155
|
+
creation_path: S.optional(S.String),
|
|
156
|
+
creation_time: S.optional(S.String),
|
|
157
|
+
creation_ttl: S.optional(S.Number),
|
|
158
|
+
}),
|
|
159
|
+
).annotate({
|
|
160
|
+
identifier: "ReadWrappingProperties2Response",
|
|
161
|
+
}) as any as S.Schema<ReadWrappingProperties2Response>;
|
|
162
|
+
|
|
163
|
+
export type ReadEncryptionKeyConfigError = OpenBaoOpError;
|
|
164
|
+
/** Get the automatic key rotation config. */
|
|
165
|
+
export const readEncryptionKeyConfig: API.OperationMethod<
|
|
166
|
+
ReadEncryptionKeyConfigRequest,
|
|
167
|
+
ReadEncryptionKeyConfigResponse,
|
|
168
|
+
ReadEncryptionKeyConfigError,
|
|
169
|
+
OpenBaoOpContext
|
|
170
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
171
|
+
input: ReadEncryptionKeyConfigRequest,
|
|
172
|
+
output: ReadEncryptionKeyConfigResponse,
|
|
173
|
+
errors: [],
|
|
174
|
+
protocol: OpenBaoProtocol,
|
|
175
|
+
retry: Retry.Retry,
|
|
176
|
+
}));
|
|
177
|
+
|
|
178
|
+
export type ReadHealthStatusError = OpenBaoOpError;
|
|
179
|
+
/** Returns the health status of OpenBao. */
|
|
180
|
+
export const readHealthStatus: API.OperationMethod<
|
|
181
|
+
ReadHealthStatusRequest,
|
|
182
|
+
ReadHealthStatusResponse,
|
|
183
|
+
ReadHealthStatusError,
|
|
184
|
+
OpenBaoOpContext
|
|
185
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
186
|
+
input: ReadHealthStatusRequest,
|
|
187
|
+
output: ReadHealthStatusResponse,
|
|
188
|
+
errors: [],
|
|
189
|
+
protocol: OpenBaoProtocol,
|
|
190
|
+
retry: Retry.Retry,
|
|
191
|
+
}));
|
|
192
|
+
|
|
193
|
+
export type ReadInitializationStatusError = OpenBaoOpError;
|
|
194
|
+
/** Returns the initialization status of OpenBao. */
|
|
195
|
+
export const readInitializationStatus: API.OperationMethod<
|
|
196
|
+
ReadInitializationStatusRequest,
|
|
197
|
+
ReadInitializationStatusResponse,
|
|
198
|
+
ReadInitializationStatusError,
|
|
199
|
+
OpenBaoOpContext
|
|
200
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
201
|
+
input: ReadInitializationStatusRequest,
|
|
202
|
+
output: ReadInitializationStatusResponse,
|
|
203
|
+
errors: [],
|
|
204
|
+
protocol: OpenBaoProtocol,
|
|
205
|
+
retry: Retry.Retry,
|
|
206
|
+
}));
|
|
207
|
+
|
|
208
|
+
export type ReadRotateKeyringConfigError = OpenBaoOpError;
|
|
209
|
+
/** Get the automatic key rotation config. */
|
|
210
|
+
export const readRotateKeyringConfig: API.OperationMethod<
|
|
211
|
+
ReadRotateKeyringConfigRequest,
|
|
212
|
+
ReadRotateKeyringConfigResponse,
|
|
213
|
+
ReadRotateKeyringConfigError,
|
|
214
|
+
OpenBaoOpContext
|
|
215
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
216
|
+
input: ReadRotateKeyringConfigRequest,
|
|
217
|
+
output: ReadRotateKeyringConfigResponse,
|
|
218
|
+
errors: [],
|
|
219
|
+
protocol: OpenBaoProtocol,
|
|
220
|
+
retry: Retry.Retry,
|
|
221
|
+
}));
|
|
222
|
+
|
|
223
|
+
export type ReadSanitizedConfigurationStateError = OpenBaoOpError;
|
|
224
|
+
/** Return a sanitized version of the OpenBao server configuration. The sanitized output strips configuration values in the storage, HA storage, and seals stanzas, which may contain sensitive values such as API tokens. It also removes any token or secret fields in other stanzas, such as the circonus_api_token from telemetry. */
|
|
225
|
+
export const readSanitizedConfigurationState: API.OperationMethod<
|
|
226
|
+
ReadSanitizedConfigurationStateRequest,
|
|
227
|
+
ReadSanitizedConfigurationStateResponse,
|
|
228
|
+
ReadSanitizedConfigurationStateError,
|
|
229
|
+
OpenBaoOpContext
|
|
230
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
231
|
+
input: ReadSanitizedConfigurationStateRequest,
|
|
232
|
+
output: ReadSanitizedConfigurationStateResponse,
|
|
233
|
+
errors: [],
|
|
234
|
+
protocol: OpenBaoProtocol,
|
|
235
|
+
retry: Retry.Retry,
|
|
236
|
+
}));
|
|
237
|
+
|
|
238
|
+
export type ReadWrappingPropertiesError = OpenBaoOpError;
|
|
239
|
+
/** Look up wrapping properties for the given token. */
|
|
240
|
+
export const readWrappingProperties: API.OperationMethod<
|
|
241
|
+
ReadWrappingPropertiesRequest,
|
|
242
|
+
ReadWrappingPropertiesResponse,
|
|
243
|
+
ReadWrappingPropertiesError,
|
|
244
|
+
OpenBaoOpContext
|
|
245
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
246
|
+
input: ReadWrappingPropertiesRequest,
|
|
247
|
+
output: ReadWrappingPropertiesResponse,
|
|
248
|
+
errors: [],
|
|
249
|
+
protocol: OpenBaoProtocol,
|
|
250
|
+
retry: Retry.Retry,
|
|
251
|
+
}));
|
|
252
|
+
|
|
253
|
+
export type ReadWrappingProperties2Error = OpenBaoOpError;
|
|
254
|
+
/** Look up wrapping properties for the requester's token. */
|
|
255
|
+
export const readWrappingProperties2: API.OperationMethod<
|
|
256
|
+
ReadWrappingProperties2Request,
|
|
257
|
+
ReadWrappingProperties2Response,
|
|
258
|
+
ReadWrappingProperties2Error,
|
|
259
|
+
OpenBaoOpContext
|
|
260
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
261
|
+
input: ReadWrappingProperties2Request,
|
|
262
|
+
output: ReadWrappingProperties2Response,
|
|
263
|
+
errors: [],
|
|
264
|
+
protocol: OpenBaoProtocol,
|
|
265
|
+
retry: Retry.Retry,
|
|
266
|
+
}));
|