@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,707 @@
|
|
|
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 DeleteNamespacesPathRequest {
|
|
15
|
+
/** Path of the namespace. */
|
|
16
|
+
path: string;
|
|
17
|
+
}
|
|
18
|
+
export const DeleteNamespacesPathRequest = /*@__PURE__*/ S.suspend(() =>
|
|
19
|
+
S.Struct({
|
|
20
|
+
path: S.String.pipe(T.Label()),
|
|
21
|
+
}).pipe(
|
|
22
|
+
T.Http({ method: "DELETE", uri: "/sys/namespaces/{path}", code: 200 }),
|
|
23
|
+
),
|
|
24
|
+
).annotate({
|
|
25
|
+
identifier: "DeleteNamespacesPathRequest",
|
|
26
|
+
}) as any as S.Schema<DeleteNamespacesPathRequest>;
|
|
27
|
+
|
|
28
|
+
export interface NamespacesDeleteNamespacesPathResponse {
|
|
29
|
+
/** Status of the deletion operation. */
|
|
30
|
+
status?: string;
|
|
31
|
+
}
|
|
32
|
+
export const NamespacesDeleteNamespacesPathResponse = /*@__PURE__*/ S.suspend(
|
|
33
|
+
() =>
|
|
34
|
+
S.Struct({
|
|
35
|
+
status: S.optional(S.String),
|
|
36
|
+
}),
|
|
37
|
+
).annotate({
|
|
38
|
+
identifier: "NamespacesDeleteNamespacesPathResponse",
|
|
39
|
+
}) as any as S.Schema<NamespacesDeleteNamespacesPathResponse>;
|
|
40
|
+
|
|
41
|
+
export interface LockNamespacesWriteNamespacesApiLockRequest {
|
|
42
|
+
/** Path of the namespace. */
|
|
43
|
+
path?: string;
|
|
44
|
+
}
|
|
45
|
+
export const LockNamespacesWriteNamespacesApiLockRequest =
|
|
46
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
47
|
+
S.Struct({
|
|
48
|
+
path: S.optional(S.String),
|
|
49
|
+
}).pipe(
|
|
50
|
+
T.Http({
|
|
51
|
+
method: "POST",
|
|
52
|
+
uri: "/sys/namespaces/api-lock/lock",
|
|
53
|
+
code: 200,
|
|
54
|
+
}),
|
|
55
|
+
),
|
|
56
|
+
).annotate({
|
|
57
|
+
identifier: "LockNamespacesWriteNamespacesApiLockRequest",
|
|
58
|
+
}) as any as S.Schema<LockNamespacesWriteNamespacesApiLockRequest>;
|
|
59
|
+
|
|
60
|
+
export interface NamespacesWriteNamespacesApiLockLockResponse {
|
|
61
|
+
/** Unlock key required for unlocking the namespace. */
|
|
62
|
+
unlock_key?: string;
|
|
63
|
+
}
|
|
64
|
+
export const NamespacesWriteNamespacesApiLockLockResponse =
|
|
65
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
66
|
+
S.Struct({
|
|
67
|
+
unlock_key: S.optional(S.String),
|
|
68
|
+
}),
|
|
69
|
+
).annotate({
|
|
70
|
+
identifier: "NamespacesWriteNamespacesApiLockLockResponse",
|
|
71
|
+
}) as any as S.Schema<NamespacesWriteNamespacesApiLockLockResponse>;
|
|
72
|
+
|
|
73
|
+
export interface NamespacesDeleteNamespacesPathDeleteSealedRequest {
|
|
74
|
+
/** Path of the namespace. */
|
|
75
|
+
path: string;
|
|
76
|
+
}
|
|
77
|
+
export const NamespacesDeleteNamespacesPathDeleteSealedRequest =
|
|
78
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
79
|
+
S.Struct({
|
|
80
|
+
path: S.String.pipe(T.Label()),
|
|
81
|
+
}).pipe(
|
|
82
|
+
T.Http({
|
|
83
|
+
method: "DELETE",
|
|
84
|
+
uri: "/sys/namespaces/{path}/delete-sealed",
|
|
85
|
+
code: 200,
|
|
86
|
+
}),
|
|
87
|
+
),
|
|
88
|
+
).annotate({
|
|
89
|
+
identifier: "NamespacesDeleteNamespacesPathDeleteSealedRequest",
|
|
90
|
+
}) as any as S.Schema<NamespacesDeleteNamespacesPathDeleteSealedRequest>;
|
|
91
|
+
|
|
92
|
+
export interface NamespacesDeleteNamespacesPathDeleteSealedResponse {
|
|
93
|
+
/** Status of the deletion operation. */
|
|
94
|
+
status?: string;
|
|
95
|
+
}
|
|
96
|
+
export const NamespacesDeleteNamespacesPathDeleteSealedResponse =
|
|
97
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
98
|
+
S.Struct({
|
|
99
|
+
status: S.optional(S.String),
|
|
100
|
+
}),
|
|
101
|
+
).annotate({
|
|
102
|
+
identifier: "NamespacesDeleteNamespacesPathDeleteSealedResponse",
|
|
103
|
+
}) as any as S.Schema<NamespacesDeleteNamespacesPathDeleteSealedResponse>;
|
|
104
|
+
|
|
105
|
+
export interface NamespacesReadSealRequest {
|
|
106
|
+
/** Path of the namespace. */
|
|
107
|
+
path: string;
|
|
108
|
+
}
|
|
109
|
+
export const NamespacesReadSealRequest = /*@__PURE__*/ S.suspend(() =>
|
|
110
|
+
S.Struct({
|
|
111
|
+
path: S.String.pipe(T.Label()),
|
|
112
|
+
}).pipe(
|
|
113
|
+
T.Http({
|
|
114
|
+
method: "GET",
|
|
115
|
+
uri: "/sys/namespaces/{path}/seal-status",
|
|
116
|
+
code: 200,
|
|
117
|
+
}),
|
|
118
|
+
),
|
|
119
|
+
).annotate({
|
|
120
|
+
identifier: "NamespacesReadSealRequest",
|
|
121
|
+
}) as any as S.Schema<NamespacesReadSealRequest>;
|
|
122
|
+
|
|
123
|
+
export interface NamespacesReadSealResponse {
|
|
124
|
+
initialized?: boolean;
|
|
125
|
+
n?: number;
|
|
126
|
+
nonce?: string;
|
|
127
|
+
progress?: number;
|
|
128
|
+
sealed?: boolean;
|
|
129
|
+
t?: number;
|
|
130
|
+
type?: string;
|
|
131
|
+
}
|
|
132
|
+
export const NamespacesReadSealResponse = /*@__PURE__*/ S.suspend(() =>
|
|
133
|
+
S.Struct({
|
|
134
|
+
initialized: S.optional(S.Boolean),
|
|
135
|
+
n: S.optional(S.Number),
|
|
136
|
+
nonce: S.optional(S.String),
|
|
137
|
+
progress: S.optional(S.Number),
|
|
138
|
+
sealed: S.optional(S.Boolean),
|
|
139
|
+
t: S.optional(S.Number),
|
|
140
|
+
type: S.optional(S.String),
|
|
141
|
+
}),
|
|
142
|
+
).annotate({
|
|
143
|
+
identifier: "NamespacesReadSealResponse",
|
|
144
|
+
}) as any as S.Schema<NamespacesReadSealResponse>;
|
|
145
|
+
|
|
146
|
+
export type NamespacesScanNamespacesRequestList = "true";
|
|
147
|
+
export const NamespacesScanNamespacesRequestList = S.String;
|
|
148
|
+
|
|
149
|
+
export type NamespacesScanNamespacesRequestScan = "true";
|
|
150
|
+
export const NamespacesScanNamespacesRequestScan = S.String;
|
|
151
|
+
|
|
152
|
+
export interface NamespacesScanNamespacesRequest {
|
|
153
|
+
/** Must be set to `true` or else `scan` must be set to `true` */
|
|
154
|
+
list: NamespacesScanNamespacesRequestList | (string & {});
|
|
155
|
+
/** Must be set to `true` or else `list` must be set to `true` */
|
|
156
|
+
scan: NamespacesScanNamespacesRequestScan | (string & {});
|
|
157
|
+
}
|
|
158
|
+
export const NamespacesScanNamespacesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
159
|
+
S.Struct({
|
|
160
|
+
list: NamespacesScanNamespacesRequestList.pipe(T.Query()),
|
|
161
|
+
scan: NamespacesScanNamespacesRequestScan.pipe(T.Query()),
|
|
162
|
+
}).pipe(T.Http({ method: "GET", uri: "/sys/namespaces", code: 200 })),
|
|
163
|
+
).annotate({
|
|
164
|
+
identifier: "NamespacesScanNamespacesRequest",
|
|
165
|
+
}) as any as S.Schema<NamespacesScanNamespacesRequest>;
|
|
166
|
+
|
|
167
|
+
/** List of namespace paths. */
|
|
168
|
+
export type NamespacesScanNamespacesResponseKeysList = Array<string>;
|
|
169
|
+
export const NamespacesScanNamespacesResponseKeysList = /*@__PURE__*/ S.Array(
|
|
170
|
+
S.String,
|
|
171
|
+
) as any as S.Schema<NamespacesScanNamespacesResponseKeysList>;
|
|
172
|
+
|
|
173
|
+
export interface NamespacesScanNamespacesResponse {
|
|
174
|
+
/** Map of namespace details by path. */
|
|
175
|
+
key_info?: unknown;
|
|
176
|
+
/** List of namespace paths. */
|
|
177
|
+
keys?: NamespacesScanNamespacesResponseKeysList;
|
|
178
|
+
}
|
|
179
|
+
export const NamespacesScanNamespacesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
180
|
+
S.Struct({
|
|
181
|
+
key_info: S.optional(S.Unknown),
|
|
182
|
+
keys: S.optional(NamespacesScanNamespacesResponseKeysList),
|
|
183
|
+
}),
|
|
184
|
+
).annotate({
|
|
185
|
+
identifier: "NamespacesScanNamespacesResponse",
|
|
186
|
+
}) as any as S.Schema<NamespacesScanNamespacesResponse>;
|
|
187
|
+
|
|
188
|
+
export interface NamespacesUnsealRequest {
|
|
189
|
+
/** Path of the namespace. */
|
|
190
|
+
path: string;
|
|
191
|
+
/** Specifies a single namespace unseal key share. */
|
|
192
|
+
key?: string;
|
|
193
|
+
/** Specifies whether to reset an unseal process progress. */
|
|
194
|
+
reset?: boolean;
|
|
195
|
+
}
|
|
196
|
+
export const NamespacesUnsealRequest = /*@__PURE__*/ S.suspend(() =>
|
|
197
|
+
S.Struct({
|
|
198
|
+
path: S.String.pipe(T.Label()),
|
|
199
|
+
key: S.optional(S.String),
|
|
200
|
+
reset: S.optional(S.Boolean),
|
|
201
|
+
}).pipe(
|
|
202
|
+
T.Http({ method: "POST", uri: "/sys/namespaces/{path}/unseal", code: 200 }),
|
|
203
|
+
),
|
|
204
|
+
).annotate({
|
|
205
|
+
identifier: "NamespacesUnsealRequest",
|
|
206
|
+
}) as any as S.Schema<NamespacesUnsealRequest>;
|
|
207
|
+
|
|
208
|
+
export interface NamespacesUnsealResponse {
|
|
209
|
+
initialized?: boolean;
|
|
210
|
+
n?: number;
|
|
211
|
+
nonce?: string;
|
|
212
|
+
progress?: number;
|
|
213
|
+
sealed?: boolean;
|
|
214
|
+
t?: number;
|
|
215
|
+
type?: string;
|
|
216
|
+
}
|
|
217
|
+
export const NamespacesUnsealResponse = /*@__PURE__*/ S.suspend(() =>
|
|
218
|
+
S.Struct({
|
|
219
|
+
initialized: S.optional(S.Boolean),
|
|
220
|
+
n: S.optional(S.Number),
|
|
221
|
+
nonce: S.optional(S.String),
|
|
222
|
+
progress: S.optional(S.Number),
|
|
223
|
+
sealed: S.optional(S.Boolean),
|
|
224
|
+
t: S.optional(S.Number),
|
|
225
|
+
type: S.optional(S.String),
|
|
226
|
+
}),
|
|
227
|
+
).annotate({
|
|
228
|
+
identifier: "NamespacesUnsealResponse",
|
|
229
|
+
}) as any as S.Schema<NamespacesUnsealResponse>;
|
|
230
|
+
|
|
231
|
+
export interface NamespacesWriteNamespacesApiLockLockPathRequest {
|
|
232
|
+
/** Path of the namespace. */
|
|
233
|
+
path: string;
|
|
234
|
+
}
|
|
235
|
+
export const NamespacesWriteNamespacesApiLockLockPathRequest =
|
|
236
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
237
|
+
S.Struct({
|
|
238
|
+
path: S.String.pipe(T.Label()),
|
|
239
|
+
}).pipe(
|
|
240
|
+
T.Http({
|
|
241
|
+
method: "POST",
|
|
242
|
+
uri: "/sys/namespaces/api-lock/lock/{path}",
|
|
243
|
+
code: 200,
|
|
244
|
+
}),
|
|
245
|
+
),
|
|
246
|
+
).annotate({
|
|
247
|
+
identifier: "NamespacesWriteNamespacesApiLockLockPathRequest",
|
|
248
|
+
}) as any as S.Schema<NamespacesWriteNamespacesApiLockLockPathRequest>;
|
|
249
|
+
|
|
250
|
+
export interface NamespacesWriteNamespacesApiLockLockPathResponse {
|
|
251
|
+
/** Unlock key required for unlocking the namespace. */
|
|
252
|
+
unlock_key?: string;
|
|
253
|
+
}
|
|
254
|
+
export const NamespacesWriteNamespacesApiLockLockPathResponse =
|
|
255
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
256
|
+
S.Struct({
|
|
257
|
+
unlock_key: S.optional(S.String),
|
|
258
|
+
}),
|
|
259
|
+
).annotate({
|
|
260
|
+
identifier: "NamespacesWriteNamespacesApiLockLockPathResponse",
|
|
261
|
+
}) as any as S.Schema<NamespacesWriteNamespacesApiLockLockPathResponse>;
|
|
262
|
+
|
|
263
|
+
export interface NamespacesWriteNamespacesApiLockUnlockPathRequest {
|
|
264
|
+
/** Path of the namespace. */
|
|
265
|
+
path: string;
|
|
266
|
+
/** Unlock key required for unlocking the namespace */
|
|
267
|
+
unlock_key: string;
|
|
268
|
+
}
|
|
269
|
+
export const NamespacesWriteNamespacesApiLockUnlockPathRequest =
|
|
270
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
271
|
+
S.Struct({
|
|
272
|
+
path: S.String.pipe(T.Label()),
|
|
273
|
+
unlock_key: S.String,
|
|
274
|
+
}).pipe(
|
|
275
|
+
T.Http({
|
|
276
|
+
method: "POST",
|
|
277
|
+
uri: "/sys/namespaces/api-lock/unlock/{path}",
|
|
278
|
+
code: 200,
|
|
279
|
+
}),
|
|
280
|
+
),
|
|
281
|
+
).annotate({
|
|
282
|
+
identifier: "NamespacesWriteNamespacesApiLockUnlockPathRequest",
|
|
283
|
+
}) as any as S.Schema<NamespacesWriteNamespacesApiLockUnlockPathRequest>;
|
|
284
|
+
|
|
285
|
+
export interface NamespacesWriteNamespacesApiLockUnlockPathResponse {}
|
|
286
|
+
export const NamespacesWriteNamespacesApiLockUnlockPathResponse =
|
|
287
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
288
|
+
identifier: "NamespacesWriteNamespacesApiLockUnlockPathResponse",
|
|
289
|
+
}) as any as S.Schema<NamespacesWriteNamespacesApiLockUnlockPathResponse>;
|
|
290
|
+
|
|
291
|
+
/** Specifies an array of PGP public keys used to encrypt the output unseal keys. */
|
|
292
|
+
export type NamespacesWriteNamespacesPathRequestPgpKeysList = Array<string>;
|
|
293
|
+
export const NamespacesWriteNamespacesPathRequestPgpKeysList =
|
|
294
|
+
/*@__PURE__*/ S.Array(
|
|
295
|
+
S.String,
|
|
296
|
+
) as any as S.Schema<NamespacesWriteNamespacesPathRequestPgpKeysList>;
|
|
297
|
+
|
|
298
|
+
export interface NamespacesWriteNamespacesPathRequest {
|
|
299
|
+
/** Path of the namespace. */
|
|
300
|
+
path: string;
|
|
301
|
+
/** User provided key-value pairs. */
|
|
302
|
+
custom_metadata?: unknown;
|
|
303
|
+
/** Specifies an array of PGP public keys used to encrypt the output unseal keys. */
|
|
304
|
+
pgp_keys?: NamespacesWriteNamespacesPathRequestPgpKeysList;
|
|
305
|
+
/** User provided seal config. */
|
|
306
|
+
seal?: string;
|
|
307
|
+
}
|
|
308
|
+
export const NamespacesWriteNamespacesPathRequest = /*@__PURE__*/ S.suspend(
|
|
309
|
+
() =>
|
|
310
|
+
S.Struct({
|
|
311
|
+
path: S.String.pipe(T.Label()),
|
|
312
|
+
custom_metadata: S.optional(S.Unknown),
|
|
313
|
+
pgp_keys: S.optional(NamespacesWriteNamespacesPathRequestPgpKeysList),
|
|
314
|
+
seal: S.optional(S.String),
|
|
315
|
+
}).pipe(
|
|
316
|
+
T.Http({ method: "POST", uri: "/sys/namespaces/{path}", code: 200 }),
|
|
317
|
+
),
|
|
318
|
+
).annotate({
|
|
319
|
+
identifier: "NamespacesWriteNamespacesPathRequest",
|
|
320
|
+
}) as any as S.Schema<NamespacesWriteNamespacesPathRequest>;
|
|
321
|
+
|
|
322
|
+
export interface NamespacesWriteNamespacesPathResponse {
|
|
323
|
+
/** User provided key-value pairs. */
|
|
324
|
+
custom_metadata?: unknown;
|
|
325
|
+
/** Accessor ID of the namespace. */
|
|
326
|
+
id?: string;
|
|
327
|
+
/** Key shares used to combine into unseal/recovery key of the namespace. */
|
|
328
|
+
key_shares?: unknown;
|
|
329
|
+
/** Number of keys required to reconstruct unseal/recovery key of the namespace. */
|
|
330
|
+
key_threshold?: number;
|
|
331
|
+
/** Flag representing the lock status of the namespace. */
|
|
332
|
+
locked?: boolean;
|
|
333
|
+
/** Path of the namespace. */
|
|
334
|
+
path?: string;
|
|
335
|
+
/** Flag representing the taint status of the namespace. */
|
|
336
|
+
tainted?: boolean;
|
|
337
|
+
/** Internal UUID of the namespace. */
|
|
338
|
+
uuid?: string;
|
|
339
|
+
}
|
|
340
|
+
export const NamespacesWriteNamespacesPathResponse = /*@__PURE__*/ S.suspend(
|
|
341
|
+
() =>
|
|
342
|
+
S.Struct({
|
|
343
|
+
custom_metadata: S.optional(S.Unknown),
|
|
344
|
+
id: S.optional(S.String),
|
|
345
|
+
key_shares: S.optional(S.Unknown),
|
|
346
|
+
key_threshold: S.optional(S.Number),
|
|
347
|
+
locked: S.optional(S.Boolean),
|
|
348
|
+
path: S.optional(S.String),
|
|
349
|
+
tainted: S.optional(S.Boolean),
|
|
350
|
+
uuid: S.optional(S.String),
|
|
351
|
+
}),
|
|
352
|
+
).annotate({
|
|
353
|
+
identifier: "NamespacesWriteNamespacesPathResponse",
|
|
354
|
+
}) as any as S.Schema<NamespacesWriteNamespacesPathResponse>;
|
|
355
|
+
|
|
356
|
+
/** Specifies an array of PGP public keys used to encrypt the output unseal keys. */
|
|
357
|
+
export type PatchNamespacesPathRequestPgpKeysList = Array<string>;
|
|
358
|
+
export const PatchNamespacesPathRequestPgpKeysList = /*@__PURE__*/ S.Array(
|
|
359
|
+
S.String,
|
|
360
|
+
) as any as S.Schema<PatchNamespacesPathRequestPgpKeysList>;
|
|
361
|
+
|
|
362
|
+
export interface PatchNamespacesPathRequest {
|
|
363
|
+
/** Path of the namespace. */
|
|
364
|
+
path: string;
|
|
365
|
+
/** User provided key-value pairs. */
|
|
366
|
+
custom_metadata?: unknown;
|
|
367
|
+
/** Specifies an array of PGP public keys used to encrypt the output unseal keys. */
|
|
368
|
+
pgp_keys?: PatchNamespacesPathRequestPgpKeysList;
|
|
369
|
+
/** User provided seal config. */
|
|
370
|
+
seal?: string;
|
|
371
|
+
}
|
|
372
|
+
export const PatchNamespacesPathRequest = /*@__PURE__*/ S.suspend(() =>
|
|
373
|
+
S.Struct({
|
|
374
|
+
path: S.String.pipe(T.Label()),
|
|
375
|
+
custom_metadata: S.optional(S.Unknown),
|
|
376
|
+
pgp_keys: S.optional(PatchNamespacesPathRequestPgpKeysList),
|
|
377
|
+
seal: S.optional(S.String),
|
|
378
|
+
}).pipe(
|
|
379
|
+
T.Http({ method: "PATCH", uri: "/sys/namespaces/{path}", code: 200 }),
|
|
380
|
+
),
|
|
381
|
+
).annotate({
|
|
382
|
+
identifier: "PatchNamespacesPathRequest",
|
|
383
|
+
}) as any as S.Schema<PatchNamespacesPathRequest>;
|
|
384
|
+
|
|
385
|
+
export interface NamespacesPatchNamespacesPathResponse {
|
|
386
|
+
/** User provided key-value pairs. */
|
|
387
|
+
custom_metadata?: unknown;
|
|
388
|
+
/** Accessor ID of the namespace. */
|
|
389
|
+
id?: string;
|
|
390
|
+
/** Key shares used to combine into unseal/recovery key of the namespace. */
|
|
391
|
+
key_shares?: unknown;
|
|
392
|
+
/** Number of keys required to reconstruct unseal/recovery key of the namespace. */
|
|
393
|
+
key_threshold?: number;
|
|
394
|
+
/** Flag representing the lock status of the namespace. */
|
|
395
|
+
locked?: boolean;
|
|
396
|
+
/** Path of the namespace. */
|
|
397
|
+
path?: string;
|
|
398
|
+
/** Flag representing the taint status of the namespace. */
|
|
399
|
+
tainted?: boolean;
|
|
400
|
+
/** Internal UUID of the namespace. */
|
|
401
|
+
uuid?: string;
|
|
402
|
+
}
|
|
403
|
+
export const NamespacesPatchNamespacesPathResponse = /*@__PURE__*/ S.suspend(
|
|
404
|
+
() =>
|
|
405
|
+
S.Struct({
|
|
406
|
+
custom_metadata: S.optional(S.Unknown),
|
|
407
|
+
id: S.optional(S.String),
|
|
408
|
+
key_shares: S.optional(S.Unknown),
|
|
409
|
+
key_threshold: S.optional(S.Number),
|
|
410
|
+
locked: S.optional(S.Boolean),
|
|
411
|
+
path: S.optional(S.String),
|
|
412
|
+
tainted: S.optional(S.Boolean),
|
|
413
|
+
uuid: S.optional(S.String),
|
|
414
|
+
}),
|
|
415
|
+
).annotate({
|
|
416
|
+
identifier: "NamespacesPatchNamespacesPathResponse",
|
|
417
|
+
}) as any as S.Schema<NamespacesPatchNamespacesPathResponse>;
|
|
418
|
+
|
|
419
|
+
export interface ReadNamespacesPathRequest {
|
|
420
|
+
/** Path of the namespace. */
|
|
421
|
+
path: string;
|
|
422
|
+
}
|
|
423
|
+
export const ReadNamespacesPathRequest = /*@__PURE__*/ S.suspend(() =>
|
|
424
|
+
S.Struct({
|
|
425
|
+
path: S.String.pipe(T.Label()),
|
|
426
|
+
}).pipe(T.Http({ method: "GET", uri: "/sys/namespaces/{path}", code: 200 })),
|
|
427
|
+
).annotate({
|
|
428
|
+
identifier: "ReadNamespacesPathRequest",
|
|
429
|
+
}) as any as S.Schema<ReadNamespacesPathRequest>;
|
|
430
|
+
|
|
431
|
+
export interface NamespacesReadNamespacesPathResponse {
|
|
432
|
+
/** User provided key-value pairs. */
|
|
433
|
+
custom_metadata?: unknown;
|
|
434
|
+
/** Accessor ID of the namespace. */
|
|
435
|
+
id?: string;
|
|
436
|
+
/** Key shares used to combine into unseal/recovery key of the namespace. */
|
|
437
|
+
key_shares?: unknown;
|
|
438
|
+
/** Number of keys required to reconstruct unseal/recovery key of the namespace. */
|
|
439
|
+
key_threshold?: number;
|
|
440
|
+
/** Flag representing the lock status of the namespace. */
|
|
441
|
+
locked?: boolean;
|
|
442
|
+
/** Path of the namespace. */
|
|
443
|
+
path?: string;
|
|
444
|
+
/** Flag representing the taint status of the namespace. */
|
|
445
|
+
tainted?: boolean;
|
|
446
|
+
/** Internal UUID of the namespace. */
|
|
447
|
+
uuid?: string;
|
|
448
|
+
}
|
|
449
|
+
export const NamespacesReadNamespacesPathResponse = /*@__PURE__*/ S.suspend(
|
|
450
|
+
() =>
|
|
451
|
+
S.Struct({
|
|
452
|
+
custom_metadata: S.optional(S.Unknown),
|
|
453
|
+
id: S.optional(S.String),
|
|
454
|
+
key_shares: S.optional(S.Unknown),
|
|
455
|
+
key_threshold: S.optional(S.Number),
|
|
456
|
+
locked: S.optional(S.Boolean),
|
|
457
|
+
path: S.optional(S.String),
|
|
458
|
+
tainted: S.optional(S.Boolean),
|
|
459
|
+
uuid: S.optional(S.String),
|
|
460
|
+
}),
|
|
461
|
+
).annotate({
|
|
462
|
+
identifier: "NamespacesReadNamespacesPathResponse",
|
|
463
|
+
}) as any as S.Schema<NamespacesReadNamespacesPathResponse>;
|
|
464
|
+
|
|
465
|
+
export interface SealNamespaceRequest {
|
|
466
|
+
/** Path of the namespace. */
|
|
467
|
+
path: string;
|
|
468
|
+
}
|
|
469
|
+
export const SealNamespaceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
470
|
+
S.Struct({
|
|
471
|
+
path: S.String.pipe(T.Label()),
|
|
472
|
+
}).pipe(
|
|
473
|
+
T.Http({ method: "POST", uri: "/sys/namespaces/{path}/seal", code: 200 }),
|
|
474
|
+
),
|
|
475
|
+
).annotate({
|
|
476
|
+
identifier: "SealNamespaceRequest",
|
|
477
|
+
}) as any as S.Schema<SealNamespaceRequest>;
|
|
478
|
+
|
|
479
|
+
export interface SealNamespaceResponse {}
|
|
480
|
+
export const SealNamespaceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
481
|
+
S.Struct({}),
|
|
482
|
+
).annotate({
|
|
483
|
+
identifier: "SealNamespaceResponse",
|
|
484
|
+
}) as any as S.Schema<SealNamespaceResponse>;
|
|
485
|
+
|
|
486
|
+
export interface UnlockNamespacesWriteNamespacesApiLockRequest {
|
|
487
|
+
/** Path of the namespace. */
|
|
488
|
+
path?: string;
|
|
489
|
+
/** Unlock key required for unlocking the namespace */
|
|
490
|
+
unlock_key: string;
|
|
491
|
+
}
|
|
492
|
+
export const UnlockNamespacesWriteNamespacesApiLockRequest =
|
|
493
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
494
|
+
S.Struct({
|
|
495
|
+
path: S.optional(S.String),
|
|
496
|
+
unlock_key: S.String,
|
|
497
|
+
}).pipe(
|
|
498
|
+
T.Http({
|
|
499
|
+
method: "POST",
|
|
500
|
+
uri: "/sys/namespaces/api-lock/unlock",
|
|
501
|
+
code: 200,
|
|
502
|
+
}),
|
|
503
|
+
),
|
|
504
|
+
).annotate({
|
|
505
|
+
identifier: "UnlockNamespacesWriteNamespacesApiLockRequest",
|
|
506
|
+
}) as any as S.Schema<UnlockNamespacesWriteNamespacesApiLockRequest>;
|
|
507
|
+
|
|
508
|
+
export interface UnlockNamespacesWriteNamespacesApiLockResponse {}
|
|
509
|
+
export const UnlockNamespacesWriteNamespacesApiLockResponse =
|
|
510
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
511
|
+
identifier: "UnlockNamespacesWriteNamespacesApiLockResponse",
|
|
512
|
+
}) as any as S.Schema<UnlockNamespacesWriteNamespacesApiLockResponse>;
|
|
513
|
+
|
|
514
|
+
export type DeleteNamespacesPathError = OpenBaoOpError;
|
|
515
|
+
/** Delete a namespace. */
|
|
516
|
+
export const deleteNamespacesPath: API.OperationMethod<
|
|
517
|
+
DeleteNamespacesPathRequest,
|
|
518
|
+
NamespacesDeleteNamespacesPathResponse,
|
|
519
|
+
DeleteNamespacesPathError,
|
|
520
|
+
OpenBaoOpContext
|
|
521
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
522
|
+
input: DeleteNamespacesPathRequest,
|
|
523
|
+
output: NamespacesDeleteNamespacesPathResponse,
|
|
524
|
+
errors: [],
|
|
525
|
+
protocol: OpenBaoProtocol,
|
|
526
|
+
retry: Retry.Retry,
|
|
527
|
+
}));
|
|
528
|
+
|
|
529
|
+
export type LockNamespacesWriteNamespacesApiLockError = OpenBaoOpError;
|
|
530
|
+
/** Lock a namespace. */
|
|
531
|
+
export const lockNamespacesWriteNamespacesApiLock: API.OperationMethod<
|
|
532
|
+
LockNamespacesWriteNamespacesApiLockRequest,
|
|
533
|
+
NamespacesWriteNamespacesApiLockLockResponse,
|
|
534
|
+
LockNamespacesWriteNamespacesApiLockError,
|
|
535
|
+
OpenBaoOpContext
|
|
536
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
537
|
+
input: LockNamespacesWriteNamespacesApiLockRequest,
|
|
538
|
+
output: NamespacesWriteNamespacesApiLockLockResponse,
|
|
539
|
+
errors: [],
|
|
540
|
+
protocol: OpenBaoProtocol,
|
|
541
|
+
retry: Retry.Retry,
|
|
542
|
+
}));
|
|
543
|
+
|
|
544
|
+
export type NamespacesDeleteNamespacesPathDeleteSealedError = OpenBaoOpError;
|
|
545
|
+
/** Delete a sealed namespace by wiping its physical storage. */
|
|
546
|
+
export const namespacesDeleteNamespacesPathDeleteSealed: API.OperationMethod<
|
|
547
|
+
NamespacesDeleteNamespacesPathDeleteSealedRequest,
|
|
548
|
+
NamespacesDeleteNamespacesPathDeleteSealedResponse,
|
|
549
|
+
NamespacesDeleteNamespacesPathDeleteSealedError,
|
|
550
|
+
OpenBaoOpContext
|
|
551
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
552
|
+
input: NamespacesDeleteNamespacesPathDeleteSealedRequest,
|
|
553
|
+
output: NamespacesDeleteNamespacesPathDeleteSealedResponse,
|
|
554
|
+
errors: [],
|
|
555
|
+
protocol: OpenBaoProtocol,
|
|
556
|
+
retry: Retry.Retry,
|
|
557
|
+
}));
|
|
558
|
+
|
|
559
|
+
export type NamespacesReadSealError = OpenBaoOpError;
|
|
560
|
+
/** Check the seal status of an OpenBao namespace. */
|
|
561
|
+
export const namespacesReadSeal: API.OperationMethod<
|
|
562
|
+
NamespacesReadSealRequest,
|
|
563
|
+
NamespacesReadSealResponse,
|
|
564
|
+
NamespacesReadSealError,
|
|
565
|
+
OpenBaoOpContext
|
|
566
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
567
|
+
input: NamespacesReadSealRequest,
|
|
568
|
+
output: NamespacesReadSealResponse,
|
|
569
|
+
errors: [],
|
|
570
|
+
protocol: OpenBaoProtocol,
|
|
571
|
+
retry: Retry.Retry,
|
|
572
|
+
}));
|
|
573
|
+
|
|
574
|
+
export type NamespacesScanNamespacesError = OpenBaoOpError;
|
|
575
|
+
/** Scan (recursively list) namespaces. */
|
|
576
|
+
export const namespacesScanNamespaces: API.OperationMethod<
|
|
577
|
+
NamespacesScanNamespacesRequest,
|
|
578
|
+
NamespacesScanNamespacesResponse,
|
|
579
|
+
NamespacesScanNamespacesError,
|
|
580
|
+
OpenBaoOpContext
|
|
581
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
582
|
+
input: NamespacesScanNamespacesRequest,
|
|
583
|
+
output: NamespacesScanNamespacesResponse,
|
|
584
|
+
errors: [],
|
|
585
|
+
protocol: OpenBaoProtocol,
|
|
586
|
+
retry: Retry.Retry,
|
|
587
|
+
}));
|
|
588
|
+
|
|
589
|
+
export type NamespacesUnsealError = OpenBaoOpError;
|
|
590
|
+
/** Unseal a namespace. */
|
|
591
|
+
export const namespacesUnseal: API.OperationMethod<
|
|
592
|
+
NamespacesUnsealRequest,
|
|
593
|
+
NamespacesUnsealResponse,
|
|
594
|
+
NamespacesUnsealError,
|
|
595
|
+
OpenBaoOpContext
|
|
596
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
597
|
+
input: NamespacesUnsealRequest,
|
|
598
|
+
output: NamespacesUnsealResponse,
|
|
599
|
+
errors: [],
|
|
600
|
+
protocol: OpenBaoProtocol,
|
|
601
|
+
retry: Retry.Retry,
|
|
602
|
+
}));
|
|
603
|
+
|
|
604
|
+
export type NamespacesWriteNamespacesApiLockLockPathError = OpenBaoOpError;
|
|
605
|
+
/** Lock a namespace. */
|
|
606
|
+
export const namespacesWriteNamespacesApiLockLockPath: API.OperationMethod<
|
|
607
|
+
NamespacesWriteNamespacesApiLockLockPathRequest,
|
|
608
|
+
NamespacesWriteNamespacesApiLockLockPathResponse,
|
|
609
|
+
NamespacesWriteNamespacesApiLockLockPathError,
|
|
610
|
+
OpenBaoOpContext
|
|
611
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
612
|
+
input: NamespacesWriteNamespacesApiLockLockPathRequest,
|
|
613
|
+
output: NamespacesWriteNamespacesApiLockLockPathResponse,
|
|
614
|
+
errors: [],
|
|
615
|
+
protocol: OpenBaoProtocol,
|
|
616
|
+
retry: Retry.Retry,
|
|
617
|
+
}));
|
|
618
|
+
|
|
619
|
+
export type NamespacesWriteNamespacesApiLockUnlockPathError = OpenBaoOpError;
|
|
620
|
+
/** Unlock a namespace. */
|
|
621
|
+
export const namespacesWriteNamespacesApiLockUnlockPath: API.OperationMethod<
|
|
622
|
+
NamespacesWriteNamespacesApiLockUnlockPathRequest,
|
|
623
|
+
NamespacesWriteNamespacesApiLockUnlockPathResponse,
|
|
624
|
+
NamespacesWriteNamespacesApiLockUnlockPathError,
|
|
625
|
+
OpenBaoOpContext
|
|
626
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
627
|
+
input: NamespacesWriteNamespacesApiLockUnlockPathRequest,
|
|
628
|
+
output: NamespacesWriteNamespacesApiLockUnlockPathResponse,
|
|
629
|
+
errors: [],
|
|
630
|
+
protocol: OpenBaoProtocol,
|
|
631
|
+
retry: Retry.Retry,
|
|
632
|
+
}));
|
|
633
|
+
|
|
634
|
+
export type NamespacesWriteNamespacesPathError = OpenBaoOpError;
|
|
635
|
+
/** Create or update a namespace. */
|
|
636
|
+
export const namespacesWriteNamespacesPath: API.OperationMethod<
|
|
637
|
+
NamespacesWriteNamespacesPathRequest,
|
|
638
|
+
NamespacesWriteNamespacesPathResponse,
|
|
639
|
+
NamespacesWriteNamespacesPathError,
|
|
640
|
+
OpenBaoOpContext
|
|
641
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
642
|
+
input: NamespacesWriteNamespacesPathRequest,
|
|
643
|
+
output: NamespacesWriteNamespacesPathResponse,
|
|
644
|
+
errors: [],
|
|
645
|
+
protocol: OpenBaoProtocol,
|
|
646
|
+
retry: Retry.Retry,
|
|
647
|
+
}));
|
|
648
|
+
|
|
649
|
+
export type PatchNamespacesPathError = OpenBaoOpError;
|
|
650
|
+
/** Update a namespace's custom metadata. */
|
|
651
|
+
export const patchNamespacesPath: API.OperationMethod<
|
|
652
|
+
PatchNamespacesPathRequest,
|
|
653
|
+
NamespacesPatchNamespacesPathResponse,
|
|
654
|
+
PatchNamespacesPathError,
|
|
655
|
+
OpenBaoOpContext
|
|
656
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
657
|
+
input: PatchNamespacesPathRequest,
|
|
658
|
+
output: NamespacesPatchNamespacesPathResponse,
|
|
659
|
+
errors: [],
|
|
660
|
+
protocol: OpenBaoProtocol,
|
|
661
|
+
retry: Retry.Retry,
|
|
662
|
+
}));
|
|
663
|
+
|
|
664
|
+
export type ReadNamespacesPathError = OpenBaoOpError;
|
|
665
|
+
/** Retrieve a namespace. */
|
|
666
|
+
export const readNamespacesPath: API.OperationMethod<
|
|
667
|
+
ReadNamespacesPathRequest,
|
|
668
|
+
NamespacesReadNamespacesPathResponse,
|
|
669
|
+
ReadNamespacesPathError,
|
|
670
|
+
OpenBaoOpContext
|
|
671
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
672
|
+
input: ReadNamespacesPathRequest,
|
|
673
|
+
output: NamespacesReadNamespacesPathResponse,
|
|
674
|
+
errors: [],
|
|
675
|
+
protocol: OpenBaoProtocol,
|
|
676
|
+
retry: Retry.Retry,
|
|
677
|
+
}));
|
|
678
|
+
|
|
679
|
+
export type SealNamespaceError = OpenBaoOpError;
|
|
680
|
+
/** Seal a namespace. */
|
|
681
|
+
export const sealNamespace: API.OperationMethod<
|
|
682
|
+
SealNamespaceRequest,
|
|
683
|
+
SealNamespaceResponse,
|
|
684
|
+
SealNamespaceError,
|
|
685
|
+
OpenBaoOpContext
|
|
686
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
687
|
+
input: SealNamespaceRequest,
|
|
688
|
+
output: SealNamespaceResponse,
|
|
689
|
+
errors: [],
|
|
690
|
+
protocol: OpenBaoProtocol,
|
|
691
|
+
retry: Retry.Retry,
|
|
692
|
+
}));
|
|
693
|
+
|
|
694
|
+
export type UnlockNamespacesWriteNamespacesApiLockError = OpenBaoOpError;
|
|
695
|
+
/** Unlock a namespace. */
|
|
696
|
+
export const unlockNamespacesWriteNamespacesApiLock: API.OperationMethod<
|
|
697
|
+
UnlockNamespacesWriteNamespacesApiLockRequest,
|
|
698
|
+
UnlockNamespacesWriteNamespacesApiLockResponse,
|
|
699
|
+
UnlockNamespacesWriteNamespacesApiLockError,
|
|
700
|
+
OpenBaoOpContext
|
|
701
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
702
|
+
input: UnlockNamespacesWriteNamespacesApiLockRequest,
|
|
703
|
+
output: UnlockNamespacesWriteNamespacesApiLockResponse,
|
|
704
|
+
errors: [],
|
|
705
|
+
protocol: OpenBaoProtocol,
|
|
706
|
+
retry: Retry.Retry,
|
|
707
|
+
}));
|