@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,416 @@
|
|
|
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 AuthDisableMethodRequest {
|
|
15
|
+
/** The path to mount to. Cannot be delimited. Example: "user" */
|
|
16
|
+
path: string;
|
|
17
|
+
}
|
|
18
|
+
export const AuthDisableMethodRequest = /*@__PURE__*/ S.suspend(() =>
|
|
19
|
+
S.Struct({
|
|
20
|
+
path: S.String.pipe(T.Label()),
|
|
21
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/sys/auth/{path}", code: 200 })),
|
|
22
|
+
).annotate({
|
|
23
|
+
identifier: "AuthDisableMethodRequest",
|
|
24
|
+
}) as any as S.Schema<AuthDisableMethodRequest>;
|
|
25
|
+
|
|
26
|
+
export interface AuthDisableMethodResponse {}
|
|
27
|
+
export const AuthDisableMethodResponse = /*@__PURE__*/ S.suspend(() =>
|
|
28
|
+
S.Struct({}),
|
|
29
|
+
).annotate({
|
|
30
|
+
identifier: "AuthDisableMethodResponse",
|
|
31
|
+
}) as any as S.Schema<AuthDisableMethodResponse>;
|
|
32
|
+
|
|
33
|
+
export interface AuthEnableMethodRequest {
|
|
34
|
+
/** The path to mount to. Cannot be delimited. Example: "user" */
|
|
35
|
+
path: string;
|
|
36
|
+
/** Configuration for this mount, such as plugin_name. */
|
|
37
|
+
config?: unknown;
|
|
38
|
+
/** User-friendly description for this credential backend. */
|
|
39
|
+
description?: string;
|
|
40
|
+
/** Whether to give the mount access to OpenBao's external entropy. */
|
|
41
|
+
external_entropy_access?: boolean;
|
|
42
|
+
/** Mark the mount as a local mount, which is not replicated and is unaffected by replication. */
|
|
43
|
+
local?: boolean;
|
|
44
|
+
/** The options to pass into the backend. Should be a json object with string keys and values. */
|
|
45
|
+
options?: unknown;
|
|
46
|
+
/** Name of the auth plugin to use based from the name in the plugin catalog. */
|
|
47
|
+
plugin_name?: string;
|
|
48
|
+
/** The semantic version of the plugin to use. */
|
|
49
|
+
plugin_version?: string;
|
|
50
|
+
/** Whether to turn on seal wrapping for the mount. */
|
|
51
|
+
seal_wrap?: boolean;
|
|
52
|
+
/** The type of the backend. Example: "userpass" */
|
|
53
|
+
type?: string;
|
|
54
|
+
}
|
|
55
|
+
export const AuthEnableMethodRequest = /*@__PURE__*/ S.suspend(() =>
|
|
56
|
+
S.Struct({
|
|
57
|
+
path: S.String.pipe(T.Label()),
|
|
58
|
+
config: S.optional(S.Unknown),
|
|
59
|
+
description: S.optional(S.String),
|
|
60
|
+
external_entropy_access: S.optional(S.Boolean),
|
|
61
|
+
local: S.optional(S.Boolean),
|
|
62
|
+
options: S.optional(S.Unknown),
|
|
63
|
+
plugin_name: S.optional(S.String),
|
|
64
|
+
plugin_version: S.optional(S.String),
|
|
65
|
+
seal_wrap: S.optional(S.Boolean),
|
|
66
|
+
type: S.optional(S.String),
|
|
67
|
+
}).pipe(T.Http({ method: "POST", uri: "/sys/auth/{path}", code: 200 })),
|
|
68
|
+
).annotate({
|
|
69
|
+
identifier: "AuthEnableMethodRequest",
|
|
70
|
+
}) as any as S.Schema<AuthEnableMethodRequest>;
|
|
71
|
+
|
|
72
|
+
export interface AuthEnableMethodResponse {}
|
|
73
|
+
export const AuthEnableMethodResponse = /*@__PURE__*/ S.suspend(() =>
|
|
74
|
+
S.Struct({}),
|
|
75
|
+
).annotate({
|
|
76
|
+
identifier: "AuthEnableMethodResponse",
|
|
77
|
+
}) as any as S.Schema<AuthEnableMethodResponse>;
|
|
78
|
+
|
|
79
|
+
export interface AuthListEnabledMethodsRequest {}
|
|
80
|
+
export const AuthListEnabledMethodsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
81
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/sys/auth", code: 200 })),
|
|
82
|
+
).annotate({
|
|
83
|
+
identifier: "AuthListEnabledMethodsRequest",
|
|
84
|
+
}) as any as S.Schema<AuthListEnabledMethodsRequest>;
|
|
85
|
+
|
|
86
|
+
export interface AuthListEnabledMethodsResponse {}
|
|
87
|
+
export const AuthListEnabledMethodsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
88
|
+
S.Struct({}),
|
|
89
|
+
).annotate({
|
|
90
|
+
identifier: "AuthListEnabledMethodsResponse",
|
|
91
|
+
}) as any as S.Schema<AuthListEnabledMethodsResponse>;
|
|
92
|
+
|
|
93
|
+
export interface AuthReadConfigurationRequest {
|
|
94
|
+
/** The path to mount to. Cannot be delimited. Example: "user" */
|
|
95
|
+
path: string;
|
|
96
|
+
}
|
|
97
|
+
export const AuthReadConfigurationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
98
|
+
S.Struct({
|
|
99
|
+
path: S.String.pipe(T.Label()),
|
|
100
|
+
}).pipe(T.Http({ method: "GET", uri: "/sys/auth/{path}", code: 200 })),
|
|
101
|
+
).annotate({
|
|
102
|
+
identifier: "AuthReadConfigurationRequest",
|
|
103
|
+
}) as any as S.Schema<AuthReadConfigurationRequest>;
|
|
104
|
+
|
|
105
|
+
export interface AuthReadConfigurationResponse {
|
|
106
|
+
accessor?: string;
|
|
107
|
+
config?: unknown;
|
|
108
|
+
deprecation_status?: string;
|
|
109
|
+
description?: string;
|
|
110
|
+
external_entropy_access?: boolean;
|
|
111
|
+
local?: boolean;
|
|
112
|
+
options?: unknown;
|
|
113
|
+
plugin_version?: string;
|
|
114
|
+
running_plugin_version?: string;
|
|
115
|
+
running_sha256?: string;
|
|
116
|
+
seal_wrap?: boolean;
|
|
117
|
+
type?: string;
|
|
118
|
+
uuid?: string;
|
|
119
|
+
}
|
|
120
|
+
export const AuthReadConfigurationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
121
|
+
S.Struct({
|
|
122
|
+
accessor: S.optional(S.String),
|
|
123
|
+
config: S.optional(S.Unknown),
|
|
124
|
+
deprecation_status: S.optional(S.String),
|
|
125
|
+
description: S.optional(S.String),
|
|
126
|
+
external_entropy_access: S.optional(S.Boolean),
|
|
127
|
+
local: S.optional(S.Boolean),
|
|
128
|
+
options: S.optional(S.Unknown),
|
|
129
|
+
plugin_version: S.optional(S.String),
|
|
130
|
+
running_plugin_version: S.optional(S.String),
|
|
131
|
+
running_sha256: S.optional(S.String),
|
|
132
|
+
seal_wrap: S.optional(S.Boolean),
|
|
133
|
+
type: S.optional(S.String),
|
|
134
|
+
uuid: S.optional(S.String),
|
|
135
|
+
}),
|
|
136
|
+
).annotate({
|
|
137
|
+
identifier: "AuthReadConfigurationResponse",
|
|
138
|
+
}) as any as S.Schema<AuthReadConfigurationResponse>;
|
|
139
|
+
|
|
140
|
+
export interface AuthReadTuningInformationRequest {
|
|
141
|
+
/** Tune the configuration parameters for an auth path. */
|
|
142
|
+
path: string;
|
|
143
|
+
}
|
|
144
|
+
export const AuthReadTuningInformationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
145
|
+
S.Struct({
|
|
146
|
+
path: S.String.pipe(T.Label()),
|
|
147
|
+
}).pipe(T.Http({ method: "GET", uri: "/sys/auth/{path}/tune", code: 200 })),
|
|
148
|
+
).annotate({
|
|
149
|
+
identifier: "AuthReadTuningInformationRequest",
|
|
150
|
+
}) as any as S.Schema<AuthReadTuningInformationRequest>;
|
|
151
|
+
|
|
152
|
+
export type AuthReadTuningInformationResponseAllowedResponseHeadersList =
|
|
153
|
+
Array<string>;
|
|
154
|
+
export const AuthReadTuningInformationResponseAllowedResponseHeadersList =
|
|
155
|
+
/*@__PURE__*/ S.Array(
|
|
156
|
+
S.String,
|
|
157
|
+
) as any as S.Schema<AuthReadTuningInformationResponseAllowedResponseHeadersList>;
|
|
158
|
+
|
|
159
|
+
export type AuthReadTuningInformationResponseAuditNonHmacRequestKeysList =
|
|
160
|
+
Array<string>;
|
|
161
|
+
export const AuthReadTuningInformationResponseAuditNonHmacRequestKeysList =
|
|
162
|
+
/*@__PURE__*/ S.Array(
|
|
163
|
+
S.String,
|
|
164
|
+
) as any as S.Schema<AuthReadTuningInformationResponseAuditNonHmacRequestKeysList>;
|
|
165
|
+
|
|
166
|
+
export type AuthReadTuningInformationResponseAuditNonHmacResponseKeysList =
|
|
167
|
+
Array<string>;
|
|
168
|
+
export const AuthReadTuningInformationResponseAuditNonHmacResponseKeysList =
|
|
169
|
+
/*@__PURE__*/ S.Array(
|
|
170
|
+
S.String,
|
|
171
|
+
) as any as S.Schema<AuthReadTuningInformationResponseAuditNonHmacResponseKeysList>;
|
|
172
|
+
|
|
173
|
+
export type AuthReadTuningInformationResponsePassthroughRequestHeadersList =
|
|
174
|
+
Array<string>;
|
|
175
|
+
export const AuthReadTuningInformationResponsePassthroughRequestHeadersList =
|
|
176
|
+
/*@__PURE__*/ S.Array(
|
|
177
|
+
S.String,
|
|
178
|
+
) as any as S.Schema<AuthReadTuningInformationResponsePassthroughRequestHeadersList>;
|
|
179
|
+
|
|
180
|
+
export interface AuthReadTuningInformationResponse {
|
|
181
|
+
allowed_response_headers?: AuthReadTuningInformationResponseAllowedResponseHeadersList;
|
|
182
|
+
audit_non_hmac_request_keys?: AuthReadTuningInformationResponseAuditNonHmacRequestKeysList;
|
|
183
|
+
audit_non_hmac_response_keys?: AuthReadTuningInformationResponseAuditNonHmacResponseKeysList;
|
|
184
|
+
default_lease_ttl?: number;
|
|
185
|
+
description?: string;
|
|
186
|
+
external_entropy_access?: boolean;
|
|
187
|
+
force_no_cache?: boolean;
|
|
188
|
+
listing_visibility?: string;
|
|
189
|
+
max_lease_ttl?: number;
|
|
190
|
+
options?: unknown;
|
|
191
|
+
passthrough_request_headers?: AuthReadTuningInformationResponsePassthroughRequestHeadersList;
|
|
192
|
+
plugin_version?: string;
|
|
193
|
+
token_type?: string;
|
|
194
|
+
user_lockout_counter_reset_duration?: number;
|
|
195
|
+
user_lockout_disable?: boolean;
|
|
196
|
+
user_lockout_duration?: number;
|
|
197
|
+
user_lockout_threshold?: number;
|
|
198
|
+
}
|
|
199
|
+
export const AuthReadTuningInformationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
200
|
+
S.Struct({
|
|
201
|
+
allowed_response_headers: S.optional(
|
|
202
|
+
AuthReadTuningInformationResponseAllowedResponseHeadersList,
|
|
203
|
+
),
|
|
204
|
+
audit_non_hmac_request_keys: S.optional(
|
|
205
|
+
AuthReadTuningInformationResponseAuditNonHmacRequestKeysList,
|
|
206
|
+
),
|
|
207
|
+
audit_non_hmac_response_keys: S.optional(
|
|
208
|
+
AuthReadTuningInformationResponseAuditNonHmacResponseKeysList,
|
|
209
|
+
),
|
|
210
|
+
default_lease_ttl: S.optional(S.Number),
|
|
211
|
+
description: S.optional(S.String),
|
|
212
|
+
external_entropy_access: S.optional(S.Boolean),
|
|
213
|
+
force_no_cache: S.optional(S.Boolean),
|
|
214
|
+
listing_visibility: S.optional(S.String),
|
|
215
|
+
max_lease_ttl: S.optional(S.Number),
|
|
216
|
+
options: S.optional(S.Unknown),
|
|
217
|
+
passthrough_request_headers: S.optional(
|
|
218
|
+
AuthReadTuningInformationResponsePassthroughRequestHeadersList,
|
|
219
|
+
),
|
|
220
|
+
plugin_version: S.optional(S.String),
|
|
221
|
+
token_type: S.optional(S.String),
|
|
222
|
+
user_lockout_counter_reset_duration: S.optional(S.Number),
|
|
223
|
+
user_lockout_disable: S.optional(S.Boolean),
|
|
224
|
+
user_lockout_duration: S.optional(S.Number),
|
|
225
|
+
user_lockout_threshold: S.optional(S.Number),
|
|
226
|
+
}),
|
|
227
|
+
).annotate({
|
|
228
|
+
identifier: "AuthReadTuningInformationResponse",
|
|
229
|
+
}) as any as S.Schema<AuthReadTuningInformationResponse>;
|
|
230
|
+
|
|
231
|
+
/** A list of headers to whitelist and allow a plugin to set on responses. */
|
|
232
|
+
export type AuthTuneConfigurationParametersRequestAllowedResponseHeadersList =
|
|
233
|
+
Array<string>;
|
|
234
|
+
export const AuthTuneConfigurationParametersRequestAllowedResponseHeadersList =
|
|
235
|
+
/*@__PURE__*/ S.Array(
|
|
236
|
+
S.String,
|
|
237
|
+
) as any as S.Schema<AuthTuneConfigurationParametersRequestAllowedResponseHeadersList>;
|
|
238
|
+
|
|
239
|
+
/** The list of keys in the request data object that will not be HMAC'ed by audit devices. */
|
|
240
|
+
export type AuthTuneConfigurationParametersRequestAuditNonHmacRequestKeysList =
|
|
241
|
+
Array<string>;
|
|
242
|
+
export const AuthTuneConfigurationParametersRequestAuditNonHmacRequestKeysList =
|
|
243
|
+
/*@__PURE__*/ S.Array(
|
|
244
|
+
S.String,
|
|
245
|
+
) as any as S.Schema<AuthTuneConfigurationParametersRequestAuditNonHmacRequestKeysList>;
|
|
246
|
+
|
|
247
|
+
/** The list of keys in the response data object that will not be HMAC'ed by audit devices. */
|
|
248
|
+
export type AuthTuneConfigurationParametersRequestAuditNonHmacResponseKeysList =
|
|
249
|
+
Array<string>;
|
|
250
|
+
export const AuthTuneConfigurationParametersRequestAuditNonHmacResponseKeysList =
|
|
251
|
+
/*@__PURE__*/ S.Array(
|
|
252
|
+
S.String,
|
|
253
|
+
) as any as S.Schema<AuthTuneConfigurationParametersRequestAuditNonHmacResponseKeysList>;
|
|
254
|
+
|
|
255
|
+
/** A list of headers to whitelist and pass from the request to the plugin. */
|
|
256
|
+
export type AuthTuneConfigurationParametersRequestPassthroughRequestHeadersList =
|
|
257
|
+
Array<string>;
|
|
258
|
+
export const AuthTuneConfigurationParametersRequestPassthroughRequestHeadersList =
|
|
259
|
+
/*@__PURE__*/ S.Array(
|
|
260
|
+
S.String,
|
|
261
|
+
) as any as S.Schema<AuthTuneConfigurationParametersRequestPassthroughRequestHeadersList>;
|
|
262
|
+
|
|
263
|
+
export interface AuthTuneConfigurationParametersRequest {
|
|
264
|
+
/** Tune the configuration parameters for an auth path. */
|
|
265
|
+
path: string;
|
|
266
|
+
/** A list of headers to whitelist and allow a plugin to set on responses. */
|
|
267
|
+
allowed_response_headers?: AuthTuneConfigurationParametersRequestAllowedResponseHeadersList;
|
|
268
|
+
/** The list of keys in the request data object that will not be HMAC'ed by audit devices. */
|
|
269
|
+
audit_non_hmac_request_keys?: AuthTuneConfigurationParametersRequestAuditNonHmacRequestKeysList;
|
|
270
|
+
/** The list of keys in the response data object that will not be HMAC'ed by audit devices. */
|
|
271
|
+
audit_non_hmac_response_keys?: AuthTuneConfigurationParametersRequestAuditNonHmacResponseKeysList;
|
|
272
|
+
/** The default lease TTL for this mount. */
|
|
273
|
+
default_lease_ttl?: string;
|
|
274
|
+
/** User-friendly description for this credential backend. */
|
|
275
|
+
description?: string;
|
|
276
|
+
/** Determines the visibility of the mount in the UI-specific listing endpoint. Accepted value are 'unauth' and 'hidden', with the empty default ('') behaving like 'hidden'. */
|
|
277
|
+
listing_visibility?: string;
|
|
278
|
+
/** The max lease TTL for this mount. */
|
|
279
|
+
max_lease_ttl?: string;
|
|
280
|
+
/** The options to pass into the backend. Should be a json object with string keys and values. */
|
|
281
|
+
options?: unknown;
|
|
282
|
+
/** A list of headers to whitelist and pass from the request to the plugin. */
|
|
283
|
+
passthrough_request_headers?: AuthTuneConfigurationParametersRequestPassthroughRequestHeadersList;
|
|
284
|
+
/** The semantic version of the plugin to use. */
|
|
285
|
+
plugin_version?: string;
|
|
286
|
+
/** The type of token to issue (service or batch). */
|
|
287
|
+
token_type?: string;
|
|
288
|
+
/** The user lockout configuration to pass into the backend. Should be a json object with string keys and values. */
|
|
289
|
+
user_lockout_config?: unknown;
|
|
290
|
+
}
|
|
291
|
+
export const AuthTuneConfigurationParametersRequest = /*@__PURE__*/ S.suspend(
|
|
292
|
+
() =>
|
|
293
|
+
S.Struct({
|
|
294
|
+
path: S.String.pipe(T.Label()),
|
|
295
|
+
allowed_response_headers: S.optional(
|
|
296
|
+
AuthTuneConfigurationParametersRequestAllowedResponseHeadersList,
|
|
297
|
+
),
|
|
298
|
+
audit_non_hmac_request_keys: S.optional(
|
|
299
|
+
AuthTuneConfigurationParametersRequestAuditNonHmacRequestKeysList,
|
|
300
|
+
),
|
|
301
|
+
audit_non_hmac_response_keys: S.optional(
|
|
302
|
+
AuthTuneConfigurationParametersRequestAuditNonHmacResponseKeysList,
|
|
303
|
+
),
|
|
304
|
+
default_lease_ttl: S.optional(S.String),
|
|
305
|
+
description: S.optional(S.String),
|
|
306
|
+
listing_visibility: S.optional(S.String),
|
|
307
|
+
max_lease_ttl: S.optional(S.String),
|
|
308
|
+
options: S.optional(S.Unknown),
|
|
309
|
+
passthrough_request_headers: S.optional(
|
|
310
|
+
AuthTuneConfigurationParametersRequestPassthroughRequestHeadersList,
|
|
311
|
+
),
|
|
312
|
+
plugin_version: S.optional(S.String),
|
|
313
|
+
token_type: S.optional(S.String),
|
|
314
|
+
user_lockout_config: S.optional(S.Unknown),
|
|
315
|
+
}).pipe(
|
|
316
|
+
T.Http({ method: "POST", uri: "/sys/auth/{path}/tune", code: 200 }),
|
|
317
|
+
),
|
|
318
|
+
).annotate({
|
|
319
|
+
identifier: "AuthTuneConfigurationParametersRequest",
|
|
320
|
+
}) as any as S.Schema<AuthTuneConfigurationParametersRequest>;
|
|
321
|
+
|
|
322
|
+
export interface AuthTuneConfigurationParametersResponse {}
|
|
323
|
+
export const AuthTuneConfigurationParametersResponse = /*@__PURE__*/ S.suspend(
|
|
324
|
+
() => S.Struct({}),
|
|
325
|
+
).annotate({
|
|
326
|
+
identifier: "AuthTuneConfigurationParametersResponse",
|
|
327
|
+
}) as any as S.Schema<AuthTuneConfigurationParametersResponse>;
|
|
328
|
+
|
|
329
|
+
export type AuthDisableMethodError = OpenBaoOpError;
|
|
330
|
+
/** Disable the auth method at the given auth path */
|
|
331
|
+
export const authDisableMethod: API.OperationMethod<
|
|
332
|
+
AuthDisableMethodRequest,
|
|
333
|
+
AuthDisableMethodResponse,
|
|
334
|
+
AuthDisableMethodError,
|
|
335
|
+
OpenBaoOpContext
|
|
336
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
337
|
+
input: AuthDisableMethodRequest,
|
|
338
|
+
output: AuthDisableMethodResponse,
|
|
339
|
+
errors: [],
|
|
340
|
+
protocol: OpenBaoProtocol,
|
|
341
|
+
retry: Retry.Retry,
|
|
342
|
+
}));
|
|
343
|
+
|
|
344
|
+
export type AuthEnableMethodError = OpenBaoOpError;
|
|
345
|
+
/** Enables a new auth method. After enabling, the auth method can be accessed and configured via the auth path specified as part of the URL. This auth path will be nested under the auth prefix. For example, enable the "foo" auth method will make it accessible at /auth/foo. */
|
|
346
|
+
export const authEnableMethod: API.OperationMethod<
|
|
347
|
+
AuthEnableMethodRequest,
|
|
348
|
+
AuthEnableMethodResponse,
|
|
349
|
+
AuthEnableMethodError,
|
|
350
|
+
OpenBaoOpContext
|
|
351
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
352
|
+
input: AuthEnableMethodRequest,
|
|
353
|
+
output: AuthEnableMethodResponse,
|
|
354
|
+
errors: [],
|
|
355
|
+
protocol: OpenBaoProtocol,
|
|
356
|
+
retry: Retry.Retry,
|
|
357
|
+
}));
|
|
358
|
+
|
|
359
|
+
export type AuthListEnabledMethodsError = OpenBaoOpError;
|
|
360
|
+
export const authListEnabledMethods: API.OperationMethod<
|
|
361
|
+
AuthListEnabledMethodsRequest,
|
|
362
|
+
AuthListEnabledMethodsResponse,
|
|
363
|
+
AuthListEnabledMethodsError,
|
|
364
|
+
OpenBaoOpContext
|
|
365
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
366
|
+
input: AuthListEnabledMethodsRequest,
|
|
367
|
+
output: AuthListEnabledMethodsResponse,
|
|
368
|
+
errors: [],
|
|
369
|
+
protocol: OpenBaoProtocol,
|
|
370
|
+
retry: Retry.Retry,
|
|
371
|
+
}));
|
|
372
|
+
|
|
373
|
+
export type AuthReadConfigurationError = OpenBaoOpError;
|
|
374
|
+
/** Read the configuration of the auth engine at the given path. */
|
|
375
|
+
export const authReadConfiguration: API.OperationMethod<
|
|
376
|
+
AuthReadConfigurationRequest,
|
|
377
|
+
AuthReadConfigurationResponse,
|
|
378
|
+
AuthReadConfigurationError,
|
|
379
|
+
OpenBaoOpContext
|
|
380
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
381
|
+
input: AuthReadConfigurationRequest,
|
|
382
|
+
output: AuthReadConfigurationResponse,
|
|
383
|
+
errors: [],
|
|
384
|
+
protocol: OpenBaoProtocol,
|
|
385
|
+
retry: Retry.Retry,
|
|
386
|
+
}));
|
|
387
|
+
|
|
388
|
+
export type AuthReadTuningInformationError = OpenBaoOpError;
|
|
389
|
+
/** Reads the given auth path's configuration. This endpoint requires sudo capability on the final path, but the same functionality can be achieved without sudo via `sys/mounts/auth/[auth-path]/tune`. */
|
|
390
|
+
export const authReadTuningInformation: API.OperationMethod<
|
|
391
|
+
AuthReadTuningInformationRequest,
|
|
392
|
+
AuthReadTuningInformationResponse,
|
|
393
|
+
AuthReadTuningInformationError,
|
|
394
|
+
OpenBaoOpContext
|
|
395
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
396
|
+
input: AuthReadTuningInformationRequest,
|
|
397
|
+
output: AuthReadTuningInformationResponse,
|
|
398
|
+
errors: [],
|
|
399
|
+
protocol: OpenBaoProtocol,
|
|
400
|
+
retry: Retry.Retry,
|
|
401
|
+
}));
|
|
402
|
+
|
|
403
|
+
export type AuthTuneConfigurationParametersError = OpenBaoOpError;
|
|
404
|
+
/** Tune configuration parameters for a given auth path. This endpoint requires sudo capability on the final path, but the same functionality can be achieved without sudo via `sys/mounts/auth/[auth-path]/tune`. */
|
|
405
|
+
export const authTuneConfigurationParameters: API.OperationMethod<
|
|
406
|
+
AuthTuneConfigurationParametersRequest,
|
|
407
|
+
AuthTuneConfigurationParametersResponse,
|
|
408
|
+
AuthTuneConfigurationParametersError,
|
|
409
|
+
OpenBaoOpContext
|
|
410
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
411
|
+
input: AuthTuneConfigurationParametersRequest,
|
|
412
|
+
output: AuthTuneConfigurationParametersResponse,
|
|
413
|
+
errors: [],
|
|
414
|
+
protocol: OpenBaoProtocol,
|
|
415
|
+
retry: Retry.Retry,
|
|
416
|
+
}));
|
|
@@ -0,0 +1,103 @@
|
|
|
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 CollectHostInformationRequest {}
|
|
15
|
+
export const CollectHostInformationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
16
|
+
S.Struct({}).pipe(
|
|
17
|
+
T.Http({ method: "GET", uri: "/sys/host-info", code: 200 }),
|
|
18
|
+
),
|
|
19
|
+
).annotate({
|
|
20
|
+
identifier: "CollectHostInformationRequest",
|
|
21
|
+
}) as any as S.Schema<CollectHostInformationRequest>;
|
|
22
|
+
|
|
23
|
+
export type CollectHostInformationResponseCpuList = Array<unknown>;
|
|
24
|
+
export const CollectHostInformationResponseCpuList = /*@__PURE__*/ S.Array(
|
|
25
|
+
S.Unknown,
|
|
26
|
+
) as any as S.Schema<CollectHostInformationResponseCpuList>;
|
|
27
|
+
|
|
28
|
+
export type CollectHostInformationResponseCpuTimesList = Array<unknown>;
|
|
29
|
+
export const CollectHostInformationResponseCpuTimesList = /*@__PURE__*/ S.Array(
|
|
30
|
+
S.Unknown,
|
|
31
|
+
) as any as S.Schema<CollectHostInformationResponseCpuTimesList>;
|
|
32
|
+
|
|
33
|
+
export type CollectHostInformationResponseDiskList = Array<unknown>;
|
|
34
|
+
export const CollectHostInformationResponseDiskList = /*@__PURE__*/ S.Array(
|
|
35
|
+
S.Unknown,
|
|
36
|
+
) as any as S.Schema<CollectHostInformationResponseDiskList>;
|
|
37
|
+
|
|
38
|
+
export interface CollectHostInformationResponse {
|
|
39
|
+
cpu?: CollectHostInformationResponseCpuList;
|
|
40
|
+
cpu_times?: CollectHostInformationResponseCpuTimesList;
|
|
41
|
+
disk?: CollectHostInformationResponseDiskList;
|
|
42
|
+
host?: unknown;
|
|
43
|
+
memory?: unknown;
|
|
44
|
+
timestamp?: string;
|
|
45
|
+
}
|
|
46
|
+
export const CollectHostInformationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
47
|
+
S.Struct({
|
|
48
|
+
cpu: S.optional(CollectHostInformationResponseCpuList),
|
|
49
|
+
cpu_times: S.optional(CollectHostInformationResponseCpuTimesList),
|
|
50
|
+
disk: S.optional(CollectHostInformationResponseDiskList),
|
|
51
|
+
host: S.optional(S.Unknown),
|
|
52
|
+
memory: S.optional(S.Unknown),
|
|
53
|
+
timestamp: S.optional(S.String),
|
|
54
|
+
}),
|
|
55
|
+
).annotate({
|
|
56
|
+
identifier: "CollectHostInformationResponse",
|
|
57
|
+
}) as any as S.Schema<CollectHostInformationResponse>;
|
|
58
|
+
|
|
59
|
+
export interface CollectInFlightRequestInformationRequest {}
|
|
60
|
+
export const CollectInFlightRequestInformationRequest = /*@__PURE__*/ S.suspend(
|
|
61
|
+
() =>
|
|
62
|
+
S.Struct({}).pipe(
|
|
63
|
+
T.Http({ method: "GET", uri: "/sys/in-flight-req", code: 200 }),
|
|
64
|
+
),
|
|
65
|
+
).annotate({
|
|
66
|
+
identifier: "CollectInFlightRequestInformationRequest",
|
|
67
|
+
}) as any as S.Schema<CollectInFlightRequestInformationRequest>;
|
|
68
|
+
|
|
69
|
+
export interface CollectInFlightRequestInformationResponse {}
|
|
70
|
+
export const CollectInFlightRequestInformationResponse =
|
|
71
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
72
|
+
identifier: "CollectInFlightRequestInformationResponse",
|
|
73
|
+
}) as any as S.Schema<CollectInFlightRequestInformationResponse>;
|
|
74
|
+
|
|
75
|
+
export type CollectHostInformationError = OpenBaoOpError;
|
|
76
|
+
/** Information about the host instance that this OpenBao server is running on. Information about the host instance that this OpenBao server is running on. The information that gets collected includes host hardware information, and CPU, disk, and memory utilization */
|
|
77
|
+
export const collectHostInformation: API.OperationMethod<
|
|
78
|
+
CollectHostInformationRequest,
|
|
79
|
+
CollectHostInformationResponse,
|
|
80
|
+
CollectHostInformationError,
|
|
81
|
+
OpenBaoOpContext
|
|
82
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
83
|
+
input: CollectHostInformationRequest,
|
|
84
|
+
output: CollectHostInformationResponse,
|
|
85
|
+
errors: [],
|
|
86
|
+
protocol: OpenBaoProtocol,
|
|
87
|
+
retry: Retry.Retry,
|
|
88
|
+
}));
|
|
89
|
+
|
|
90
|
+
export type CollectInFlightRequestInformationError = OpenBaoOpError;
|
|
91
|
+
/** reports in-flight requests This path responds to the following HTTP methods. GET / Returns a map of in-flight requests. */
|
|
92
|
+
export const collectInFlightRequestInformation: API.OperationMethod<
|
|
93
|
+
CollectInFlightRequestInformationRequest,
|
|
94
|
+
CollectInFlightRequestInformationResponse,
|
|
95
|
+
CollectInFlightRequestInformationError,
|
|
96
|
+
OpenBaoOpContext
|
|
97
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
98
|
+
input: CollectInFlightRequestInformationRequest,
|
|
99
|
+
output: CollectInFlightRequestInformationResponse,
|
|
100
|
+
errors: [],
|
|
101
|
+
protocol: OpenBaoProtocol,
|
|
102
|
+
retry: Retry.Retry,
|
|
103
|
+
}));
|
|
@@ -0,0 +1,94 @@
|
|
|
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 ConfigureEncryptionKeyConfigRequest {
|
|
15
|
+
/** Whether automatic rotation is enabled. */
|
|
16
|
+
enabled?: boolean;
|
|
17
|
+
/** How long after installation of an active key term that the key will be automatically rotated. */
|
|
18
|
+
interval?: number;
|
|
19
|
+
/** The number of encryption operations performed before the barrier key is automatically rotated. */
|
|
20
|
+
max_operations?: number;
|
|
21
|
+
}
|
|
22
|
+
export const ConfigureEncryptionKeyConfigRequest = /*@__PURE__*/ S.suspend(() =>
|
|
23
|
+
S.Struct({
|
|
24
|
+
enabled: S.optional(S.Boolean),
|
|
25
|
+
interval: S.optional(S.Number),
|
|
26
|
+
max_operations: S.optional(S.Number),
|
|
27
|
+
}).pipe(T.Http({ method: "POST", uri: "/sys/rotate/config", code: 200 })),
|
|
28
|
+
).annotate({
|
|
29
|
+
identifier: "ConfigureEncryptionKeyConfigRequest",
|
|
30
|
+
}) as any as S.Schema<ConfigureEncryptionKeyConfigRequest>;
|
|
31
|
+
|
|
32
|
+
export interface ConfigureEncryptionKeyConfigResponse {}
|
|
33
|
+
export const ConfigureEncryptionKeyConfigResponse = /*@__PURE__*/ S.suspend(
|
|
34
|
+
() => S.Struct({}),
|
|
35
|
+
).annotate({
|
|
36
|
+
identifier: "ConfigureEncryptionKeyConfigResponse",
|
|
37
|
+
}) as any as S.Schema<ConfigureEncryptionKeyConfigResponse>;
|
|
38
|
+
|
|
39
|
+
export interface ConfigureRotateKeyringConfigRequest {
|
|
40
|
+
/** Whether automatic rotation is enabled. */
|
|
41
|
+
enabled?: boolean;
|
|
42
|
+
/** How long after installation of an active key term that the key will be automatically rotated. */
|
|
43
|
+
interval?: number;
|
|
44
|
+
/** The number of encryption operations performed before the barrier key is automatically rotated. */
|
|
45
|
+
max_operations?: number;
|
|
46
|
+
}
|
|
47
|
+
export const ConfigureRotateKeyringConfigRequest = /*@__PURE__*/ S.suspend(() =>
|
|
48
|
+
S.Struct({
|
|
49
|
+
enabled: S.optional(S.Boolean),
|
|
50
|
+
interval: S.optional(S.Number),
|
|
51
|
+
max_operations: S.optional(S.Number),
|
|
52
|
+
}).pipe(
|
|
53
|
+
T.Http({ method: "POST", uri: "/sys/rotate/keyring/config", code: 200 }),
|
|
54
|
+
),
|
|
55
|
+
).annotate({
|
|
56
|
+
identifier: "ConfigureRotateKeyringConfigRequest",
|
|
57
|
+
}) as any as S.Schema<ConfigureRotateKeyringConfigRequest>;
|
|
58
|
+
|
|
59
|
+
export interface ConfigureRotateKeyringConfigResponse {}
|
|
60
|
+
export const ConfigureRotateKeyringConfigResponse = /*@__PURE__*/ S.suspend(
|
|
61
|
+
() => S.Struct({}),
|
|
62
|
+
).annotate({
|
|
63
|
+
identifier: "ConfigureRotateKeyringConfigResponse",
|
|
64
|
+
}) as any as S.Schema<ConfigureRotateKeyringConfigResponse>;
|
|
65
|
+
|
|
66
|
+
export type ConfigureEncryptionKeyConfigError = OpenBaoOpError;
|
|
67
|
+
/** Configure the automatic key rotation. */
|
|
68
|
+
export const configureEncryptionKeyConfig: API.OperationMethod<
|
|
69
|
+
ConfigureEncryptionKeyConfigRequest,
|
|
70
|
+
ConfigureEncryptionKeyConfigResponse,
|
|
71
|
+
ConfigureEncryptionKeyConfigError,
|
|
72
|
+
OpenBaoOpContext
|
|
73
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
74
|
+
input: ConfigureEncryptionKeyConfigRequest,
|
|
75
|
+
output: ConfigureEncryptionKeyConfigResponse,
|
|
76
|
+
errors: [],
|
|
77
|
+
protocol: OpenBaoProtocol,
|
|
78
|
+
retry: Retry.Retry,
|
|
79
|
+
}));
|
|
80
|
+
|
|
81
|
+
export type ConfigureRotateKeyringConfigError = OpenBaoOpError;
|
|
82
|
+
/** Configure the automatic key rotation. */
|
|
83
|
+
export const configureRotateKeyringConfig: API.OperationMethod<
|
|
84
|
+
ConfigureRotateKeyringConfigRequest,
|
|
85
|
+
ConfigureRotateKeyringConfigResponse,
|
|
86
|
+
ConfigureRotateKeyringConfigError,
|
|
87
|
+
OpenBaoOpContext
|
|
88
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
89
|
+
input: ConfigureRotateKeyringConfigRequest,
|
|
90
|
+
output: ConfigureRotateKeyringConfigResponse,
|
|
91
|
+
errors: [],
|
|
92
|
+
protocol: OpenBaoProtocol,
|
|
93
|
+
retry: Retry.Retry,
|
|
94
|
+
}));
|