@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,57 @@
|
|
|
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 LeaderStatusRequest {}
|
|
15
|
+
export const LeaderStatusRequest = /*@__PURE__*/ S.suspend(() =>
|
|
16
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/sys/leader", code: 200 })),
|
|
17
|
+
).annotate({
|
|
18
|
+
identifier: "LeaderStatusRequest",
|
|
19
|
+
}) as any as S.Schema<LeaderStatusRequest>;
|
|
20
|
+
|
|
21
|
+
export interface LeaderStatusResponse {
|
|
22
|
+
active_time?: string;
|
|
23
|
+
ha_enabled?: boolean;
|
|
24
|
+
is_self?: boolean;
|
|
25
|
+
leader_address?: string;
|
|
26
|
+
leader_cluster_address?: string;
|
|
27
|
+
raft_applied_index?: number;
|
|
28
|
+
raft_committed_index?: number;
|
|
29
|
+
}
|
|
30
|
+
export const LeaderStatusResponse = /*@__PURE__*/ S.suspend(() =>
|
|
31
|
+
S.Struct({
|
|
32
|
+
active_time: S.optional(S.String),
|
|
33
|
+
ha_enabled: S.optional(S.Boolean),
|
|
34
|
+
is_self: S.optional(S.Boolean),
|
|
35
|
+
leader_address: S.optional(S.String),
|
|
36
|
+
leader_cluster_address: S.optional(S.String),
|
|
37
|
+
raft_applied_index: S.optional(S.Number),
|
|
38
|
+
raft_committed_index: S.optional(S.Number),
|
|
39
|
+
}),
|
|
40
|
+
).annotate({
|
|
41
|
+
identifier: "LeaderStatusResponse",
|
|
42
|
+
}) as any as S.Schema<LeaderStatusResponse>;
|
|
43
|
+
|
|
44
|
+
export type LeaderStatusError = OpenBaoOpError;
|
|
45
|
+
/** Returns the high availability status and current leader instance of OpenBao. */
|
|
46
|
+
export const leaderStatus: API.OperationMethod<
|
|
47
|
+
LeaderStatusRequest,
|
|
48
|
+
LeaderStatusResponse,
|
|
49
|
+
LeaderStatusError,
|
|
50
|
+
OpenBaoOpContext
|
|
51
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
52
|
+
input: LeaderStatusRequest,
|
|
53
|
+
output: LeaderStatusResponse,
|
|
54
|
+
errors: [],
|
|
55
|
+
protocol: OpenBaoProtocol,
|
|
56
|
+
retry: Retry.Retry,
|
|
57
|
+
}));
|
|
@@ -0,0 +1,532 @@
|
|
|
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 LeasesCountRequest {}
|
|
15
|
+
export const LeasesCountRequest = /*@__PURE__*/ S.suspend(() =>
|
|
16
|
+
S.Struct({}).pipe(
|
|
17
|
+
T.Http({ method: "GET", uri: "/sys/leases/count", code: 200 }),
|
|
18
|
+
),
|
|
19
|
+
).annotate({
|
|
20
|
+
identifier: "LeasesCountRequest",
|
|
21
|
+
}) as any as S.Schema<LeasesCountRequest>;
|
|
22
|
+
|
|
23
|
+
export interface LeasesCountResponse {
|
|
24
|
+
/** Number of matching leases per mount */
|
|
25
|
+
counts?: number;
|
|
26
|
+
/** Number of matching leases */
|
|
27
|
+
lease_count?: number;
|
|
28
|
+
}
|
|
29
|
+
export const LeasesCountResponse = /*@__PURE__*/ S.suspend(() =>
|
|
30
|
+
S.Struct({
|
|
31
|
+
counts: S.optional(S.Number),
|
|
32
|
+
lease_count: S.optional(S.Number),
|
|
33
|
+
}),
|
|
34
|
+
).annotate({
|
|
35
|
+
identifier: "LeasesCountResponse",
|
|
36
|
+
}) as any as S.Schema<LeasesCountResponse>;
|
|
37
|
+
|
|
38
|
+
export interface LeasesForceRevokeLeaseWithPrefix2Request {
|
|
39
|
+
/** The path to revoke keys under. Example: "prod/aws/ops" */
|
|
40
|
+
prefix: string;
|
|
41
|
+
}
|
|
42
|
+
export const LeasesForceRevokeLeaseWithPrefix2Request = /*@__PURE__*/ S.suspend(
|
|
43
|
+
() =>
|
|
44
|
+
S.Struct({
|
|
45
|
+
prefix: S.String.pipe(T.Label()),
|
|
46
|
+
}).pipe(
|
|
47
|
+
T.Http({
|
|
48
|
+
method: "POST",
|
|
49
|
+
uri: "/sys/leases/revoke-force/{prefix}",
|
|
50
|
+
code: 200,
|
|
51
|
+
}),
|
|
52
|
+
),
|
|
53
|
+
).annotate({
|
|
54
|
+
identifier: "LeasesForceRevokeLeaseWithPrefix2Request",
|
|
55
|
+
}) as any as S.Schema<LeasesForceRevokeLeaseWithPrefix2Request>;
|
|
56
|
+
|
|
57
|
+
export interface LeasesForceRevokeLeaseWithPrefix2Response {}
|
|
58
|
+
export const LeasesForceRevokeLeaseWithPrefix2Response =
|
|
59
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
60
|
+
identifier: "LeasesForceRevokeLeaseWithPrefix2Response",
|
|
61
|
+
}) as any as S.Schema<LeasesForceRevokeLeaseWithPrefix2Response>;
|
|
62
|
+
|
|
63
|
+
export type LeasesLookUpRequestList = "true";
|
|
64
|
+
export const LeasesLookUpRequestList = S.String;
|
|
65
|
+
|
|
66
|
+
export interface LeasesLookUpRequest {
|
|
67
|
+
/** Must be set to `true` */
|
|
68
|
+
list: LeasesLookUpRequestList | (string & {});
|
|
69
|
+
}
|
|
70
|
+
export const LeasesLookUpRequest = /*@__PURE__*/ S.suspend(() =>
|
|
71
|
+
S.Struct({
|
|
72
|
+
list: LeasesLookUpRequestList.pipe(T.Query()),
|
|
73
|
+
}).pipe(T.Http({ method: "GET", uri: "/sys/leases/lookup/", code: 200 })),
|
|
74
|
+
).annotate({
|
|
75
|
+
identifier: "LeasesLookUpRequest",
|
|
76
|
+
}) as any as S.Schema<LeasesLookUpRequest>;
|
|
77
|
+
|
|
78
|
+
/** A list of lease ids */
|
|
79
|
+
export type LeasesLookUpResponseKeysList = Array<string>;
|
|
80
|
+
export const LeasesLookUpResponseKeysList = /*@__PURE__*/ S.Array(
|
|
81
|
+
S.String,
|
|
82
|
+
) as any as S.Schema<LeasesLookUpResponseKeysList>;
|
|
83
|
+
|
|
84
|
+
export interface LeasesLookUpResponse {
|
|
85
|
+
/** A list of lease ids */
|
|
86
|
+
keys?: LeasesLookUpResponseKeysList;
|
|
87
|
+
}
|
|
88
|
+
export const LeasesLookUpResponse = /*@__PURE__*/ S.suspend(() =>
|
|
89
|
+
S.Struct({
|
|
90
|
+
keys: S.optional(LeasesLookUpResponseKeysList),
|
|
91
|
+
}),
|
|
92
|
+
).annotate({
|
|
93
|
+
identifier: "LeasesLookUpResponse",
|
|
94
|
+
}) as any as S.Schema<LeasesLookUpResponse>;
|
|
95
|
+
|
|
96
|
+
export type LeasesLookUpWithPrefixRequestList = "true";
|
|
97
|
+
export const LeasesLookUpWithPrefixRequestList = S.String;
|
|
98
|
+
|
|
99
|
+
export interface LeasesLookUpWithPrefixRequest {
|
|
100
|
+
/** The path to list leases under. Example: "aws/creds/deploy" */
|
|
101
|
+
prefix: string;
|
|
102
|
+
/** Must be set to `true` */
|
|
103
|
+
list: LeasesLookUpWithPrefixRequestList | (string & {});
|
|
104
|
+
}
|
|
105
|
+
export const LeasesLookUpWithPrefixRequest = /*@__PURE__*/ S.suspend(() =>
|
|
106
|
+
S.Struct({
|
|
107
|
+
prefix: S.String.pipe(T.Label()),
|
|
108
|
+
list: LeasesLookUpWithPrefixRequestList.pipe(T.Query()),
|
|
109
|
+
}).pipe(
|
|
110
|
+
T.Http({ method: "GET", uri: "/sys/leases/lookup/{prefix}", code: 200 }),
|
|
111
|
+
),
|
|
112
|
+
).annotate({
|
|
113
|
+
identifier: "LeasesLookUpWithPrefixRequest",
|
|
114
|
+
}) as any as S.Schema<LeasesLookUpWithPrefixRequest>;
|
|
115
|
+
|
|
116
|
+
/** A list of lease ids */
|
|
117
|
+
export type LeasesLookUpWithPrefixResponseKeysList = Array<string>;
|
|
118
|
+
export const LeasesLookUpWithPrefixResponseKeysList = /*@__PURE__*/ S.Array(
|
|
119
|
+
S.String,
|
|
120
|
+
) as any as S.Schema<LeasesLookUpWithPrefixResponseKeysList>;
|
|
121
|
+
|
|
122
|
+
export interface LeasesLookUpWithPrefixResponse {
|
|
123
|
+
/** A list of lease ids */
|
|
124
|
+
keys?: LeasesLookUpWithPrefixResponseKeysList;
|
|
125
|
+
}
|
|
126
|
+
export const LeasesLookUpWithPrefixResponse = /*@__PURE__*/ S.suspend(() =>
|
|
127
|
+
S.Struct({
|
|
128
|
+
keys: S.optional(LeasesLookUpWithPrefixResponseKeysList),
|
|
129
|
+
}),
|
|
130
|
+
).annotate({
|
|
131
|
+
identifier: "LeasesLookUpWithPrefixResponse",
|
|
132
|
+
}) as any as S.Schema<LeasesLookUpWithPrefixResponse>;
|
|
133
|
+
|
|
134
|
+
export interface LeasesRenewLeaseRequest {
|
|
135
|
+
/** The lease identifier to renew. This is included with a lease. */
|
|
136
|
+
url_lease_id: string;
|
|
137
|
+
/** The desired increment in seconds to the lease */
|
|
138
|
+
increment?: number;
|
|
139
|
+
/** The lease identifier to renew. This is included with a lease. */
|
|
140
|
+
lease_id?: string;
|
|
141
|
+
}
|
|
142
|
+
export const LeasesRenewLeaseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
143
|
+
S.Struct({
|
|
144
|
+
url_lease_id: S.String.pipe(T.Label()),
|
|
145
|
+
increment: S.optional(S.Number),
|
|
146
|
+
lease_id: S.optional(S.String),
|
|
147
|
+
}).pipe(
|
|
148
|
+
T.Http({
|
|
149
|
+
method: "POST",
|
|
150
|
+
uri: "/sys/leases/renew/{url_lease_id}",
|
|
151
|
+
code: 200,
|
|
152
|
+
}),
|
|
153
|
+
),
|
|
154
|
+
).annotate({
|
|
155
|
+
identifier: "LeasesRenewLeaseRequest",
|
|
156
|
+
}) as any as S.Schema<LeasesRenewLeaseRequest>;
|
|
157
|
+
|
|
158
|
+
export interface LeasesRenewLeaseResponse {}
|
|
159
|
+
export const LeasesRenewLeaseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
160
|
+
S.Struct({}),
|
|
161
|
+
).annotate({
|
|
162
|
+
identifier: "LeasesRenewLeaseResponse",
|
|
163
|
+
}) as any as S.Schema<LeasesRenewLeaseResponse>;
|
|
164
|
+
|
|
165
|
+
export interface LeasesRenewLease2Request {
|
|
166
|
+
/** The desired increment in seconds to the lease */
|
|
167
|
+
increment?: number;
|
|
168
|
+
/** The lease identifier to renew. This is included with a lease. */
|
|
169
|
+
lease_id?: string;
|
|
170
|
+
/** The lease identifier to renew. This is included with a lease. */
|
|
171
|
+
url_lease_id?: string;
|
|
172
|
+
}
|
|
173
|
+
export const LeasesRenewLease2Request = /*@__PURE__*/ S.suspend(() =>
|
|
174
|
+
S.Struct({
|
|
175
|
+
increment: S.optional(S.Number),
|
|
176
|
+
lease_id: S.optional(S.String),
|
|
177
|
+
url_lease_id: S.optional(S.String),
|
|
178
|
+
}).pipe(T.Http({ method: "POST", uri: "/sys/leases/renew", code: 200 })),
|
|
179
|
+
).annotate({
|
|
180
|
+
identifier: "LeasesRenewLease2Request",
|
|
181
|
+
}) as any as S.Schema<LeasesRenewLease2Request>;
|
|
182
|
+
|
|
183
|
+
export interface LeasesRenewLease2Response {}
|
|
184
|
+
export const LeasesRenewLease2Response = /*@__PURE__*/ S.suspend(() =>
|
|
185
|
+
S.Struct({}),
|
|
186
|
+
).annotate({
|
|
187
|
+
identifier: "LeasesRenewLease2Response",
|
|
188
|
+
}) as any as S.Schema<LeasesRenewLease2Response>;
|
|
189
|
+
|
|
190
|
+
export interface LeasesRevokeLease2Request {
|
|
191
|
+
/** The lease identifier to renew. This is included with a lease. */
|
|
192
|
+
lease_id?: string;
|
|
193
|
+
/** Whether or not to perform the revocation synchronously */
|
|
194
|
+
sync?: boolean;
|
|
195
|
+
/** The lease identifier to renew. This is included with a lease. */
|
|
196
|
+
url_lease_id?: string;
|
|
197
|
+
}
|
|
198
|
+
export const LeasesRevokeLease2Request = /*@__PURE__*/ S.suspend(() =>
|
|
199
|
+
S.Struct({
|
|
200
|
+
lease_id: S.optional(S.String),
|
|
201
|
+
sync: S.optional(S.Boolean),
|
|
202
|
+
url_lease_id: S.optional(S.String),
|
|
203
|
+
}).pipe(T.Http({ method: "POST", uri: "/sys/leases/revoke", code: 200 })),
|
|
204
|
+
).annotate({
|
|
205
|
+
identifier: "LeasesRevokeLease2Request",
|
|
206
|
+
}) as any as S.Schema<LeasesRevokeLease2Request>;
|
|
207
|
+
|
|
208
|
+
export interface LeasesRevokeLease2Response {}
|
|
209
|
+
export const LeasesRevokeLease2Response = /*@__PURE__*/ S.suspend(() =>
|
|
210
|
+
S.Struct({}),
|
|
211
|
+
).annotate({
|
|
212
|
+
identifier: "LeasesRevokeLease2Response",
|
|
213
|
+
}) as any as S.Schema<LeasesRevokeLease2Response>;
|
|
214
|
+
|
|
215
|
+
export interface LeasesTidyRequest {}
|
|
216
|
+
export const LeasesTidyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
217
|
+
S.Struct({}).pipe(
|
|
218
|
+
T.Http({ method: "POST", uri: "/sys/leases/tidy", code: 200 }),
|
|
219
|
+
),
|
|
220
|
+
).annotate({
|
|
221
|
+
identifier: "LeasesTidyRequest",
|
|
222
|
+
}) as any as S.Schema<LeasesTidyRequest>;
|
|
223
|
+
|
|
224
|
+
export interface LeasesTidyResponse {}
|
|
225
|
+
export const LeasesTidyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
226
|
+
S.Struct({}),
|
|
227
|
+
).annotate({
|
|
228
|
+
identifier: "LeasesTidyResponse",
|
|
229
|
+
}) as any as S.Schema<LeasesTidyResponse>;
|
|
230
|
+
|
|
231
|
+
export interface ListLeasesRequest {}
|
|
232
|
+
export const ListLeasesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
233
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/sys/leases", code: 200 })),
|
|
234
|
+
).annotate({
|
|
235
|
+
identifier: "ListLeasesRequest",
|
|
236
|
+
}) as any as S.Schema<ListLeasesRequest>;
|
|
237
|
+
|
|
238
|
+
export interface LeasesListResponse {
|
|
239
|
+
/** Number of matching leases per mount */
|
|
240
|
+
counts?: number;
|
|
241
|
+
/** Number of matching leases */
|
|
242
|
+
lease_count?: number;
|
|
243
|
+
}
|
|
244
|
+
export const LeasesListResponse = /*@__PURE__*/ S.suspend(() =>
|
|
245
|
+
S.Struct({
|
|
246
|
+
counts: S.optional(S.Number),
|
|
247
|
+
lease_count: S.optional(S.Number),
|
|
248
|
+
}),
|
|
249
|
+
).annotate({
|
|
250
|
+
identifier: "LeasesListResponse",
|
|
251
|
+
}) as any as S.Schema<LeasesListResponse>;
|
|
252
|
+
|
|
253
|
+
export interface ReadLeaseRequest {
|
|
254
|
+
/** The lease identifier to renew. This is included with a lease. */
|
|
255
|
+
lease_id?: string;
|
|
256
|
+
}
|
|
257
|
+
export const ReadLeaseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
258
|
+
S.Struct({
|
|
259
|
+
lease_id: S.optional(S.String),
|
|
260
|
+
}).pipe(T.Http({ method: "POST", uri: "/sys/leases/lookup", code: 200 })),
|
|
261
|
+
).annotate({
|
|
262
|
+
identifier: "ReadLeaseRequest",
|
|
263
|
+
}) as any as S.Schema<ReadLeaseRequest>;
|
|
264
|
+
|
|
265
|
+
export interface LeasesReadLeaseResponse {
|
|
266
|
+
/** Optional lease expiry time */
|
|
267
|
+
expire_time?: string;
|
|
268
|
+
/** Lease id */
|
|
269
|
+
id?: string;
|
|
270
|
+
/** Timestamp for the lease's issue time */
|
|
271
|
+
issue_time?: string;
|
|
272
|
+
/** Optional Timestamp of the last time the lease was renewed */
|
|
273
|
+
last_renewal?: string;
|
|
274
|
+
/** Path of the namespace of the lease */
|
|
275
|
+
namespace_path?: string;
|
|
276
|
+
/** Lease path (will start with the mount path) */
|
|
277
|
+
path?: string;
|
|
278
|
+
/** True if the lease is able to be renewed */
|
|
279
|
+
renewable?: boolean;
|
|
280
|
+
/** Details about errors during last time revocation was tried (if any) */
|
|
281
|
+
revoke_error?: string;
|
|
282
|
+
/** Time to Live set for the lease, returns 0 if unset */
|
|
283
|
+
ttl?: number;
|
|
284
|
+
}
|
|
285
|
+
export const LeasesReadLeaseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
286
|
+
S.Struct({
|
|
287
|
+
expire_time: S.optional(S.String),
|
|
288
|
+
id: S.optional(S.String),
|
|
289
|
+
issue_time: S.optional(S.String),
|
|
290
|
+
last_renewal: S.optional(S.String),
|
|
291
|
+
namespace_path: S.optional(S.String),
|
|
292
|
+
path: S.optional(S.String),
|
|
293
|
+
renewable: S.optional(S.Boolean),
|
|
294
|
+
revoke_error: S.optional(S.String),
|
|
295
|
+
ttl: S.optional(S.Number),
|
|
296
|
+
}),
|
|
297
|
+
).annotate({
|
|
298
|
+
identifier: "LeasesReadLeaseResponse",
|
|
299
|
+
}) as any as S.Schema<LeasesReadLeaseResponse>;
|
|
300
|
+
|
|
301
|
+
export interface RevokeLeaseRequest {
|
|
302
|
+
/** The lease identifier to renew. This is included with a lease. */
|
|
303
|
+
url_lease_id: string;
|
|
304
|
+
/** The lease identifier to renew. This is included with a lease. */
|
|
305
|
+
lease_id?: string;
|
|
306
|
+
/** Whether or not to perform the revocation synchronously */
|
|
307
|
+
sync?: boolean;
|
|
308
|
+
}
|
|
309
|
+
export const RevokeLeaseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
310
|
+
S.Struct({
|
|
311
|
+
url_lease_id: S.String.pipe(T.Label()),
|
|
312
|
+
lease_id: S.optional(S.String),
|
|
313
|
+
sync: S.optional(S.Boolean),
|
|
314
|
+
}).pipe(
|
|
315
|
+
T.Http({
|
|
316
|
+
method: "POST",
|
|
317
|
+
uri: "/sys/leases/revoke/{url_lease_id}",
|
|
318
|
+
code: 200,
|
|
319
|
+
}),
|
|
320
|
+
),
|
|
321
|
+
).annotate({
|
|
322
|
+
identifier: "RevokeLeaseRequest",
|
|
323
|
+
}) as any as S.Schema<RevokeLeaseRequest>;
|
|
324
|
+
|
|
325
|
+
export interface RevokeLeaseResponse {}
|
|
326
|
+
export const RevokeLeaseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
327
|
+
S.Struct({}),
|
|
328
|
+
).annotate({
|
|
329
|
+
identifier: "RevokeLeaseResponse",
|
|
330
|
+
}) as any as S.Schema<RevokeLeaseResponse>;
|
|
331
|
+
|
|
332
|
+
export interface RevokeLeaseWithPrefix2Request {
|
|
333
|
+
/** The path to revoke keys under. Example: "prod/aws/ops" */
|
|
334
|
+
prefix: string;
|
|
335
|
+
/** Whether or not to perform the revocation synchronously */
|
|
336
|
+
sync?: boolean;
|
|
337
|
+
}
|
|
338
|
+
export const RevokeLeaseWithPrefix2Request = /*@__PURE__*/ S.suspend(() =>
|
|
339
|
+
S.Struct({
|
|
340
|
+
prefix: S.String.pipe(T.Label()),
|
|
341
|
+
sync: S.optional(S.Boolean),
|
|
342
|
+
}).pipe(
|
|
343
|
+
T.Http({
|
|
344
|
+
method: "POST",
|
|
345
|
+
uri: "/sys/leases/revoke-prefix/{prefix}",
|
|
346
|
+
code: 200,
|
|
347
|
+
}),
|
|
348
|
+
),
|
|
349
|
+
).annotate({
|
|
350
|
+
identifier: "RevokeLeaseWithPrefix2Request",
|
|
351
|
+
}) as any as S.Schema<RevokeLeaseWithPrefix2Request>;
|
|
352
|
+
|
|
353
|
+
export interface RevokeLeaseWithPrefix2Response {}
|
|
354
|
+
export const RevokeLeaseWithPrefix2Response = /*@__PURE__*/ S.suspend(() =>
|
|
355
|
+
S.Struct({}),
|
|
356
|
+
).annotate({
|
|
357
|
+
identifier: "RevokeLeaseWithPrefix2Response",
|
|
358
|
+
}) as any as S.Schema<RevokeLeaseWithPrefix2Response>;
|
|
359
|
+
|
|
360
|
+
export type LeasesCountError = OpenBaoOpError;
|
|
361
|
+
export const leasesCount: API.OperationMethod<
|
|
362
|
+
LeasesCountRequest,
|
|
363
|
+
LeasesCountResponse,
|
|
364
|
+
LeasesCountError,
|
|
365
|
+
OpenBaoOpContext
|
|
366
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
367
|
+
input: LeasesCountRequest,
|
|
368
|
+
output: LeasesCountResponse,
|
|
369
|
+
errors: [],
|
|
370
|
+
protocol: OpenBaoProtocol,
|
|
371
|
+
retry: Retry.Retry,
|
|
372
|
+
}));
|
|
373
|
+
|
|
374
|
+
export type LeasesForceRevokeLeaseWithPrefix2Error = OpenBaoOpError;
|
|
375
|
+
/** Revokes all secrets or tokens generated under a given prefix immediately Unlike `/sys/leases/revoke-prefix`, this path ignores backend errors encountered during revocation. This is potentially very dangerous and should only be used in specific emergency situations where errors in the backend or the connected backend service prevent normal revocation. By ignoring these errors, OpenBao abdicates responsibility for ensuring that the issued credentials or secrets are properly revoked and/or cleaned up. Access to this endpoint should be tightly controlled. */
|
|
376
|
+
export const leasesForceRevokeLeaseWithPrefix2: API.OperationMethod<
|
|
377
|
+
LeasesForceRevokeLeaseWithPrefix2Request,
|
|
378
|
+
LeasesForceRevokeLeaseWithPrefix2Response,
|
|
379
|
+
LeasesForceRevokeLeaseWithPrefix2Error,
|
|
380
|
+
OpenBaoOpContext
|
|
381
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
382
|
+
input: LeasesForceRevokeLeaseWithPrefix2Request,
|
|
383
|
+
output: LeasesForceRevokeLeaseWithPrefix2Response,
|
|
384
|
+
errors: [],
|
|
385
|
+
protocol: OpenBaoProtocol,
|
|
386
|
+
retry: Retry.Retry,
|
|
387
|
+
}));
|
|
388
|
+
|
|
389
|
+
export type LeasesLookUpError = OpenBaoOpError;
|
|
390
|
+
export const leasesLookUp: API.OperationMethod<
|
|
391
|
+
LeasesLookUpRequest,
|
|
392
|
+
LeasesLookUpResponse,
|
|
393
|
+
LeasesLookUpError,
|
|
394
|
+
OpenBaoOpContext
|
|
395
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
396
|
+
input: LeasesLookUpRequest,
|
|
397
|
+
output: LeasesLookUpResponse,
|
|
398
|
+
errors: [],
|
|
399
|
+
protocol: OpenBaoProtocol,
|
|
400
|
+
retry: Retry.Retry,
|
|
401
|
+
}));
|
|
402
|
+
|
|
403
|
+
export type LeasesLookUpWithPrefixError = OpenBaoOpError;
|
|
404
|
+
export const leasesLookUpWithPrefix: API.OperationMethod<
|
|
405
|
+
LeasesLookUpWithPrefixRequest,
|
|
406
|
+
LeasesLookUpWithPrefixResponse,
|
|
407
|
+
LeasesLookUpWithPrefixError,
|
|
408
|
+
OpenBaoOpContext
|
|
409
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
410
|
+
input: LeasesLookUpWithPrefixRequest,
|
|
411
|
+
output: LeasesLookUpWithPrefixResponse,
|
|
412
|
+
errors: [],
|
|
413
|
+
protocol: OpenBaoProtocol,
|
|
414
|
+
retry: Retry.Retry,
|
|
415
|
+
}));
|
|
416
|
+
|
|
417
|
+
export type LeasesRenewLeaseError = OpenBaoOpError;
|
|
418
|
+
/** Renews a lease, requesting to extend the lease. */
|
|
419
|
+
export const leasesRenewLease: API.OperationMethod<
|
|
420
|
+
LeasesRenewLeaseRequest,
|
|
421
|
+
LeasesRenewLeaseResponse,
|
|
422
|
+
LeasesRenewLeaseError,
|
|
423
|
+
OpenBaoOpContext
|
|
424
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
425
|
+
input: LeasesRenewLeaseRequest,
|
|
426
|
+
output: LeasesRenewLeaseResponse,
|
|
427
|
+
errors: [],
|
|
428
|
+
protocol: OpenBaoProtocol,
|
|
429
|
+
retry: Retry.Retry,
|
|
430
|
+
}));
|
|
431
|
+
|
|
432
|
+
export type LeasesRenewLease2Error = OpenBaoOpError;
|
|
433
|
+
/** Renews a lease, requesting to extend the lease. */
|
|
434
|
+
export const leasesRenewLease2: API.OperationMethod<
|
|
435
|
+
LeasesRenewLease2Request,
|
|
436
|
+
LeasesRenewLease2Response,
|
|
437
|
+
LeasesRenewLease2Error,
|
|
438
|
+
OpenBaoOpContext
|
|
439
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
440
|
+
input: LeasesRenewLease2Request,
|
|
441
|
+
output: LeasesRenewLease2Response,
|
|
442
|
+
errors: [],
|
|
443
|
+
protocol: OpenBaoProtocol,
|
|
444
|
+
retry: Retry.Retry,
|
|
445
|
+
}));
|
|
446
|
+
|
|
447
|
+
export type LeasesRevokeLease2Error = OpenBaoOpError;
|
|
448
|
+
/** Revokes a lease immediately. */
|
|
449
|
+
export const leasesRevokeLease2: API.OperationMethod<
|
|
450
|
+
LeasesRevokeLease2Request,
|
|
451
|
+
LeasesRevokeLease2Response,
|
|
452
|
+
LeasesRevokeLease2Error,
|
|
453
|
+
OpenBaoOpContext
|
|
454
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
455
|
+
input: LeasesRevokeLease2Request,
|
|
456
|
+
output: LeasesRevokeLease2Response,
|
|
457
|
+
errors: [],
|
|
458
|
+
protocol: OpenBaoProtocol,
|
|
459
|
+
retry: Retry.Retry,
|
|
460
|
+
}));
|
|
461
|
+
|
|
462
|
+
export type LeasesTidyError = OpenBaoOpError;
|
|
463
|
+
export const leasesTidy: API.OperationMethod<
|
|
464
|
+
LeasesTidyRequest,
|
|
465
|
+
LeasesTidyResponse,
|
|
466
|
+
LeasesTidyError,
|
|
467
|
+
OpenBaoOpContext
|
|
468
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
469
|
+
input: LeasesTidyRequest,
|
|
470
|
+
output: LeasesTidyResponse,
|
|
471
|
+
errors: [],
|
|
472
|
+
protocol: OpenBaoProtocol,
|
|
473
|
+
retry: Retry.Retry,
|
|
474
|
+
}));
|
|
475
|
+
|
|
476
|
+
export type ListLeasesError = OpenBaoOpError;
|
|
477
|
+
export const listLeases: API.OperationMethod<
|
|
478
|
+
ListLeasesRequest,
|
|
479
|
+
LeasesListResponse,
|
|
480
|
+
ListLeasesError,
|
|
481
|
+
OpenBaoOpContext
|
|
482
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
483
|
+
input: ListLeasesRequest,
|
|
484
|
+
output: LeasesListResponse,
|
|
485
|
+
errors: [],
|
|
486
|
+
protocol: OpenBaoProtocol,
|
|
487
|
+
retry: Retry.Retry,
|
|
488
|
+
}));
|
|
489
|
+
|
|
490
|
+
export type ReadLeaseError = OpenBaoOpError;
|
|
491
|
+
export const readLease: API.OperationMethod<
|
|
492
|
+
ReadLeaseRequest,
|
|
493
|
+
LeasesReadLeaseResponse,
|
|
494
|
+
ReadLeaseError,
|
|
495
|
+
OpenBaoOpContext
|
|
496
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
497
|
+
input: ReadLeaseRequest,
|
|
498
|
+
output: LeasesReadLeaseResponse,
|
|
499
|
+
errors: [],
|
|
500
|
+
protocol: OpenBaoProtocol,
|
|
501
|
+
retry: Retry.Retry,
|
|
502
|
+
}));
|
|
503
|
+
|
|
504
|
+
export type RevokeLeaseError = OpenBaoOpError;
|
|
505
|
+
/** Revokes a lease immediately. */
|
|
506
|
+
export const revokeLease: API.OperationMethod<
|
|
507
|
+
RevokeLeaseRequest,
|
|
508
|
+
RevokeLeaseResponse,
|
|
509
|
+
RevokeLeaseError,
|
|
510
|
+
OpenBaoOpContext
|
|
511
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
512
|
+
input: RevokeLeaseRequest,
|
|
513
|
+
output: RevokeLeaseResponse,
|
|
514
|
+
errors: [],
|
|
515
|
+
protocol: OpenBaoProtocol,
|
|
516
|
+
retry: Retry.Retry,
|
|
517
|
+
}));
|
|
518
|
+
|
|
519
|
+
export type RevokeLeaseWithPrefix2Error = OpenBaoOpError;
|
|
520
|
+
/** Revokes all secrets (via a lease ID prefix) or tokens (via the tokens' path property) generated under a given prefix immediately. */
|
|
521
|
+
export const revokeLeaseWithPrefix2: API.OperationMethod<
|
|
522
|
+
RevokeLeaseWithPrefix2Request,
|
|
523
|
+
RevokeLeaseWithPrefix2Response,
|
|
524
|
+
RevokeLeaseWithPrefix2Error,
|
|
525
|
+
OpenBaoOpContext
|
|
526
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
527
|
+
input: RevokeLeaseWithPrefix2Request,
|
|
528
|
+
output: RevokeLeaseWithPrefix2Response,
|
|
529
|
+
errors: [],
|
|
530
|
+
protocol: OpenBaoProtocol,
|
|
531
|
+
retry: Retry.Retry,
|
|
532
|
+
}));
|
|
@@ -0,0 +1,86 @@
|
|
|
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 ListLockedUsersRequest {}
|
|
15
|
+
export const ListLockedUsersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
16
|
+
S.Struct({}).pipe(
|
|
17
|
+
T.Http({ method: "GET", uri: "/sys/locked-users", code: 200 }),
|
|
18
|
+
),
|
|
19
|
+
).annotate({
|
|
20
|
+
identifier: "ListLockedUsersRequest",
|
|
21
|
+
}) as any as S.Schema<ListLockedUsersRequest>;
|
|
22
|
+
|
|
23
|
+
export interface ListLockedUsersResponse {}
|
|
24
|
+
export const ListLockedUsersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
25
|
+
S.Struct({}),
|
|
26
|
+
).annotate({
|
|
27
|
+
identifier: "ListLockedUsersResponse",
|
|
28
|
+
}) as any as S.Schema<ListLockedUsersResponse>;
|
|
29
|
+
|
|
30
|
+
export interface UnlockLockedUserRequest {
|
|
31
|
+
/** MountAccessor is the identifier of the mount entry to which the user belongs */
|
|
32
|
+
mount_accessor: string;
|
|
33
|
+
/** It is the name of the alias (user). For example, if the alias belongs to userpass backend, the name should be a valid username within userpass auth method. If the alias belongs to an approle auth method, the name should be a valid RoleID */
|
|
34
|
+
alias_identifier: string;
|
|
35
|
+
}
|
|
36
|
+
export const UnlockLockedUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
37
|
+
S.Struct({
|
|
38
|
+
mount_accessor: S.String.pipe(T.Label()),
|
|
39
|
+
alias_identifier: S.String.pipe(T.Label()),
|
|
40
|
+
}).pipe(
|
|
41
|
+
T.Http({
|
|
42
|
+
method: "POST",
|
|
43
|
+
uri: "/sys/locked-users/{mount_accessor}/unlock/{alias_identifier}",
|
|
44
|
+
code: 200,
|
|
45
|
+
}),
|
|
46
|
+
),
|
|
47
|
+
).annotate({
|
|
48
|
+
identifier: "UnlockLockedUserRequest",
|
|
49
|
+
}) as any as S.Schema<UnlockLockedUserRequest>;
|
|
50
|
+
|
|
51
|
+
export interface UnlockLockedUserResponse {}
|
|
52
|
+
export const UnlockLockedUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
53
|
+
S.Struct({}),
|
|
54
|
+
).annotate({
|
|
55
|
+
identifier: "UnlockLockedUserResponse",
|
|
56
|
+
}) as any as S.Schema<UnlockLockedUserResponse>;
|
|
57
|
+
|
|
58
|
+
export type ListLockedUsersError = OpenBaoOpError;
|
|
59
|
+
/** Report the locked user count metrics, for this namespace and all child namespaces. */
|
|
60
|
+
export const listLockedUsers: API.OperationMethod<
|
|
61
|
+
ListLockedUsersRequest,
|
|
62
|
+
ListLockedUsersResponse,
|
|
63
|
+
ListLockedUsersError,
|
|
64
|
+
OpenBaoOpContext
|
|
65
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
66
|
+
input: ListLockedUsersRequest,
|
|
67
|
+
output: ListLockedUsersResponse,
|
|
68
|
+
errors: [],
|
|
69
|
+
protocol: OpenBaoProtocol,
|
|
70
|
+
retry: Retry.Retry,
|
|
71
|
+
}));
|
|
72
|
+
|
|
73
|
+
export type UnlockLockedUserError = OpenBaoOpError;
|
|
74
|
+
/** Unlocks the user with given mount_accessor and alias_identifier */
|
|
75
|
+
export const unlockLockedUser: API.OperationMethod<
|
|
76
|
+
UnlockLockedUserRequest,
|
|
77
|
+
UnlockLockedUserResponse,
|
|
78
|
+
UnlockLockedUserError,
|
|
79
|
+
OpenBaoOpContext
|
|
80
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
81
|
+
input: UnlockLockedUserRequest,
|
|
82
|
+
output: UnlockLockedUserResponse,
|
|
83
|
+
errors: [],
|
|
84
|
+
protocol: OpenBaoProtocol,
|
|
85
|
+
retry: Retry.Retry,
|
|
86
|
+
}));
|