@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,207 @@
|
|
|
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 type ListUiHeadersRequestList = "true";
|
|
15
|
+
export const ListUiHeadersRequestList = S.String;
|
|
16
|
+
|
|
17
|
+
export interface ListUiHeadersRequest {
|
|
18
|
+
/** Must be set to `true` */
|
|
19
|
+
list: ListUiHeadersRequestList | (string & {});
|
|
20
|
+
}
|
|
21
|
+
export const ListUiHeadersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
22
|
+
S.Struct({
|
|
23
|
+
list: ListUiHeadersRequestList.pipe(T.Query()),
|
|
24
|
+
}).pipe(T.Http({ method: "GET", uri: "/sys/config/ui/headers", code: 200 })),
|
|
25
|
+
).annotate({
|
|
26
|
+
identifier: "ListUiHeadersRequest",
|
|
27
|
+
}) as any as S.Schema<ListUiHeadersRequest>;
|
|
28
|
+
|
|
29
|
+
/** Lists of configured UI headers. Omitted if list is empty */
|
|
30
|
+
export type UiHeadersListResponseKeysList = Array<string>;
|
|
31
|
+
export const UiHeadersListResponseKeysList = /*@__PURE__*/ S.Array(
|
|
32
|
+
S.String,
|
|
33
|
+
) as any as S.Schema<UiHeadersListResponseKeysList>;
|
|
34
|
+
|
|
35
|
+
export interface UiHeadersListResponse {
|
|
36
|
+
/** Lists of configured UI headers. Omitted if list is empty */
|
|
37
|
+
keys?: UiHeadersListResponseKeysList;
|
|
38
|
+
}
|
|
39
|
+
export const UiHeadersListResponse = /*@__PURE__*/ S.suspend(() =>
|
|
40
|
+
S.Struct({
|
|
41
|
+
keys: S.optional(UiHeadersListResponseKeysList),
|
|
42
|
+
}),
|
|
43
|
+
).annotate({
|
|
44
|
+
identifier: "UiHeadersListResponse",
|
|
45
|
+
}) as any as S.Schema<UiHeadersListResponse>;
|
|
46
|
+
|
|
47
|
+
/** The values to set the header. */
|
|
48
|
+
export type UiHeadersConfigureRequestValuesList = Array<string>;
|
|
49
|
+
export const UiHeadersConfigureRequestValuesList = /*@__PURE__*/ S.Array(
|
|
50
|
+
S.String,
|
|
51
|
+
) as any as S.Schema<UiHeadersConfigureRequestValuesList>;
|
|
52
|
+
|
|
53
|
+
export interface UiHeadersConfigureRequest {
|
|
54
|
+
/** The name of the header. */
|
|
55
|
+
header: string;
|
|
56
|
+
/** Returns multiple values if true */
|
|
57
|
+
multivalue?: boolean;
|
|
58
|
+
/** The values to set the header. */
|
|
59
|
+
values?: UiHeadersConfigureRequestValuesList;
|
|
60
|
+
}
|
|
61
|
+
export const UiHeadersConfigureRequest = /*@__PURE__*/ S.suspend(() =>
|
|
62
|
+
S.Struct({
|
|
63
|
+
header: S.String.pipe(T.Label()),
|
|
64
|
+
multivalue: S.optional(S.Boolean),
|
|
65
|
+
values: S.optional(UiHeadersConfigureRequestValuesList),
|
|
66
|
+
}).pipe(
|
|
67
|
+
T.Http({
|
|
68
|
+
method: "POST",
|
|
69
|
+
uri: "/sys/config/ui/headers/{header}",
|
|
70
|
+
code: 200,
|
|
71
|
+
}),
|
|
72
|
+
),
|
|
73
|
+
).annotate({
|
|
74
|
+
identifier: "UiHeadersConfigureRequest",
|
|
75
|
+
}) as any as S.Schema<UiHeadersConfigureRequest>;
|
|
76
|
+
|
|
77
|
+
export interface UiHeadersConfigureResponse {}
|
|
78
|
+
export const UiHeadersConfigureResponse = /*@__PURE__*/ S.suspend(() =>
|
|
79
|
+
S.Struct({}),
|
|
80
|
+
).annotate({
|
|
81
|
+
identifier: "UiHeadersConfigureResponse",
|
|
82
|
+
}) as any as S.Schema<UiHeadersConfigureResponse>;
|
|
83
|
+
|
|
84
|
+
export interface UiHeadersDeleteConfigurationRequest {
|
|
85
|
+
/** The name of the header. */
|
|
86
|
+
header: string;
|
|
87
|
+
}
|
|
88
|
+
export const UiHeadersDeleteConfigurationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
89
|
+
S.Struct({
|
|
90
|
+
header: S.String.pipe(T.Label()),
|
|
91
|
+
}).pipe(
|
|
92
|
+
T.Http({
|
|
93
|
+
method: "DELETE",
|
|
94
|
+
uri: "/sys/config/ui/headers/{header}",
|
|
95
|
+
code: 200,
|
|
96
|
+
}),
|
|
97
|
+
),
|
|
98
|
+
).annotate({
|
|
99
|
+
identifier: "UiHeadersDeleteConfigurationRequest",
|
|
100
|
+
}) as any as S.Schema<UiHeadersDeleteConfigurationRequest>;
|
|
101
|
+
|
|
102
|
+
export interface UiHeadersDeleteConfigurationResponse {}
|
|
103
|
+
export const UiHeadersDeleteConfigurationResponse = /*@__PURE__*/ S.suspend(
|
|
104
|
+
() => S.Struct({}),
|
|
105
|
+
).annotate({
|
|
106
|
+
identifier: "UiHeadersDeleteConfigurationResponse",
|
|
107
|
+
}) as any as S.Schema<UiHeadersDeleteConfigurationResponse>;
|
|
108
|
+
|
|
109
|
+
export interface UiHeadersReadConfigurationRequest {
|
|
110
|
+
/** The name of the header. */
|
|
111
|
+
header: string;
|
|
112
|
+
}
|
|
113
|
+
export const UiHeadersReadConfigurationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
114
|
+
S.Struct({
|
|
115
|
+
header: S.String.pipe(T.Label()),
|
|
116
|
+
}).pipe(
|
|
117
|
+
T.Http({
|
|
118
|
+
method: "GET",
|
|
119
|
+
uri: "/sys/config/ui/headers/{header}",
|
|
120
|
+
code: 200,
|
|
121
|
+
}),
|
|
122
|
+
),
|
|
123
|
+
).annotate({
|
|
124
|
+
identifier: "UiHeadersReadConfigurationRequest",
|
|
125
|
+
}) as any as S.Schema<UiHeadersReadConfigurationRequest>;
|
|
126
|
+
|
|
127
|
+
/** returns all header values when `multivalue` request parameter is true */
|
|
128
|
+
export type UiHeadersReadConfigurationResponseValuesList = Array<string>;
|
|
129
|
+
export const UiHeadersReadConfigurationResponseValuesList =
|
|
130
|
+
/*@__PURE__*/ S.Array(
|
|
131
|
+
S.String,
|
|
132
|
+
) as any as S.Schema<UiHeadersReadConfigurationResponseValuesList>;
|
|
133
|
+
|
|
134
|
+
export interface UiHeadersReadConfigurationResponse {
|
|
135
|
+
/** returns the first header value when `multivalue` request parameter is false */
|
|
136
|
+
value?: string;
|
|
137
|
+
/** returns all header values when `multivalue` request parameter is true */
|
|
138
|
+
values?: UiHeadersReadConfigurationResponseValuesList;
|
|
139
|
+
}
|
|
140
|
+
export const UiHeadersReadConfigurationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
141
|
+
S.Struct({
|
|
142
|
+
value: S.optional(S.String),
|
|
143
|
+
values: S.optional(UiHeadersReadConfigurationResponseValuesList),
|
|
144
|
+
}),
|
|
145
|
+
).annotate({
|
|
146
|
+
identifier: "UiHeadersReadConfigurationResponse",
|
|
147
|
+
}) as any as S.Schema<UiHeadersReadConfigurationResponse>;
|
|
148
|
+
|
|
149
|
+
export type ListUiHeadersError = OpenBaoOpError;
|
|
150
|
+
/** Return a list of configured UI headers. */
|
|
151
|
+
export const listUiHeaders: API.OperationMethod<
|
|
152
|
+
ListUiHeadersRequest,
|
|
153
|
+
UiHeadersListResponse,
|
|
154
|
+
ListUiHeadersError,
|
|
155
|
+
OpenBaoOpContext
|
|
156
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
157
|
+
input: ListUiHeadersRequest,
|
|
158
|
+
output: UiHeadersListResponse,
|
|
159
|
+
errors: [],
|
|
160
|
+
protocol: OpenBaoProtocol,
|
|
161
|
+
retry: Retry.Retry,
|
|
162
|
+
}));
|
|
163
|
+
|
|
164
|
+
export type UiHeadersConfigureError = OpenBaoOpError;
|
|
165
|
+
/** Configure the values to be returned for the UI header. */
|
|
166
|
+
export const uiHeadersConfigure: API.OperationMethod<
|
|
167
|
+
UiHeadersConfigureRequest,
|
|
168
|
+
UiHeadersConfigureResponse,
|
|
169
|
+
UiHeadersConfigureError,
|
|
170
|
+
OpenBaoOpContext
|
|
171
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
172
|
+
input: UiHeadersConfigureRequest,
|
|
173
|
+
output: UiHeadersConfigureResponse,
|
|
174
|
+
errors: [],
|
|
175
|
+
protocol: OpenBaoProtocol,
|
|
176
|
+
retry: Retry.Retry,
|
|
177
|
+
}));
|
|
178
|
+
|
|
179
|
+
export type UiHeadersDeleteConfigurationError = OpenBaoOpError;
|
|
180
|
+
/** Remove a UI header. */
|
|
181
|
+
export const uiHeadersDeleteConfiguration: API.OperationMethod<
|
|
182
|
+
UiHeadersDeleteConfigurationRequest,
|
|
183
|
+
UiHeadersDeleteConfigurationResponse,
|
|
184
|
+
UiHeadersDeleteConfigurationError,
|
|
185
|
+
OpenBaoOpContext
|
|
186
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
187
|
+
input: UiHeadersDeleteConfigurationRequest,
|
|
188
|
+
output: UiHeadersDeleteConfigurationResponse,
|
|
189
|
+
errors: [],
|
|
190
|
+
protocol: OpenBaoProtocol,
|
|
191
|
+
retry: Retry.Retry,
|
|
192
|
+
}));
|
|
193
|
+
|
|
194
|
+
export type UiHeadersReadConfigurationError = OpenBaoOpError;
|
|
195
|
+
/** Return the given UI header's configuration */
|
|
196
|
+
export const uiHeadersReadConfiguration: API.OperationMethod<
|
|
197
|
+
UiHeadersReadConfigurationRequest,
|
|
198
|
+
UiHeadersReadConfigurationResponse,
|
|
199
|
+
UiHeadersReadConfigurationError,
|
|
200
|
+
OpenBaoOpContext
|
|
201
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
202
|
+
input: UiHeadersReadConfigurationRequest,
|
|
203
|
+
output: UiHeadersReadConfigurationResponse,
|
|
204
|
+
errors: [],
|
|
205
|
+
protocol: OpenBaoProtocol,
|
|
206
|
+
retry: Retry.Retry,
|
|
207
|
+
}));
|
|
@@ -0,0 +1,73 @@
|
|
|
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 UpdateGenerationAttemptRootTokenRequest {
|
|
15
|
+
/** Unseal key share. */
|
|
16
|
+
key: string;
|
|
17
|
+
/** Nonce for the generation operation. */
|
|
18
|
+
nonce: string;
|
|
19
|
+
}
|
|
20
|
+
export const UpdateGenerationAttemptRootTokenRequest = /*@__PURE__*/ S.suspend(
|
|
21
|
+
() =>
|
|
22
|
+
S.Struct({
|
|
23
|
+
key: S.String,
|
|
24
|
+
nonce: S.String,
|
|
25
|
+
}).pipe(
|
|
26
|
+
T.Http({
|
|
27
|
+
method: "POST",
|
|
28
|
+
uri: "/sys/generate-root-token/update",
|
|
29
|
+
code: 200,
|
|
30
|
+
}),
|
|
31
|
+
),
|
|
32
|
+
).annotate({
|
|
33
|
+
identifier: "UpdateGenerationAttemptRootTokenRequest",
|
|
34
|
+
}) as any as S.Schema<UpdateGenerationAttemptRootTokenRequest>;
|
|
35
|
+
|
|
36
|
+
export interface UpdateGenerationAttemptRootTokenResponse {
|
|
37
|
+
complete?: boolean;
|
|
38
|
+
encoded_token?: string;
|
|
39
|
+
nonce?: string;
|
|
40
|
+
pgp_fingerprint?: string;
|
|
41
|
+
progress?: number;
|
|
42
|
+
required?: number;
|
|
43
|
+
started?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export const UpdateGenerationAttemptRootTokenResponse = /*@__PURE__*/ S.suspend(
|
|
46
|
+
() =>
|
|
47
|
+
S.Struct({
|
|
48
|
+
complete: S.optional(S.Boolean),
|
|
49
|
+
encoded_token: S.optional(S.String),
|
|
50
|
+
nonce: S.optional(S.String),
|
|
51
|
+
pgp_fingerprint: S.optional(S.String),
|
|
52
|
+
progress: S.optional(S.Number),
|
|
53
|
+
required: S.optional(S.Number),
|
|
54
|
+
started: S.optional(S.Boolean),
|
|
55
|
+
}),
|
|
56
|
+
).annotate({
|
|
57
|
+
identifier: "UpdateGenerationAttemptRootTokenResponse",
|
|
58
|
+
}) as any as S.Schema<UpdateGenerationAttemptRootTokenResponse>;
|
|
59
|
+
|
|
60
|
+
export type UpdateGenerationAttemptRootTokenError = OpenBaoOpError;
|
|
61
|
+
/** Provide an unseal key share for root token generation. If the threshold number of unseal key shares is reached, OpenBao will complete the root generation and issue the new token. Otherwise, this API must be called multiple times until that threshold is met. The attempt nonce must be provided with each call. */
|
|
62
|
+
export const updateGenerationAttemptRootToken: API.OperationMethod<
|
|
63
|
+
UpdateGenerationAttemptRootTokenRequest,
|
|
64
|
+
UpdateGenerationAttemptRootTokenResponse,
|
|
65
|
+
UpdateGenerationAttemptRootTokenError,
|
|
66
|
+
OpenBaoOpContext
|
|
67
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
68
|
+
input: UpdateGenerationAttemptRootTokenRequest,
|
|
69
|
+
output: UpdateGenerationAttemptRootTokenResponse,
|
|
70
|
+
errors: [],
|
|
71
|
+
protocol: OpenBaoProtocol,
|
|
72
|
+
retry: Retry.Retry,
|
|
73
|
+
}));
|
|
@@ -0,0 +1,410 @@
|
|
|
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 LoginUserpassRequest {
|
|
15
|
+
/** Path that the backend was mounted at */
|
|
16
|
+
userpass_mount_path: string;
|
|
17
|
+
/** Username of the user. */
|
|
18
|
+
username: string;
|
|
19
|
+
/** Password for this user. */
|
|
20
|
+
password?: string;
|
|
21
|
+
}
|
|
22
|
+
export const LoginUserpassRequest = /*@__PURE__*/ S.suspend(() =>
|
|
23
|
+
S.Struct({
|
|
24
|
+
userpass_mount_path: S.String.pipe(T.Label()),
|
|
25
|
+
username: S.String.pipe(T.Label()),
|
|
26
|
+
password: S.optional(S.String),
|
|
27
|
+
}).pipe(
|
|
28
|
+
T.Http({
|
|
29
|
+
method: "POST",
|
|
30
|
+
uri: "/auth/{userpass_mount_path}/login/{username}",
|
|
31
|
+
code: 200,
|
|
32
|
+
}),
|
|
33
|
+
),
|
|
34
|
+
).annotate({
|
|
35
|
+
identifier: "LoginUserpassRequest",
|
|
36
|
+
}) as any as S.Schema<LoginUserpassRequest>;
|
|
37
|
+
|
|
38
|
+
export interface LoginUserpassResponse {}
|
|
39
|
+
export const LoginUserpassResponse = /*@__PURE__*/ S.suspend(() =>
|
|
40
|
+
S.Struct({}),
|
|
41
|
+
).annotate({
|
|
42
|
+
identifier: "LoginUserpassResponse",
|
|
43
|
+
}) as any as S.Schema<LoginUserpassResponse>;
|
|
44
|
+
|
|
45
|
+
export interface UserpassDeleteUserRequest {
|
|
46
|
+
/** Path that the backend was mounted at */
|
|
47
|
+
userpass_mount_path: string;
|
|
48
|
+
/** Username for this user. */
|
|
49
|
+
username: string;
|
|
50
|
+
}
|
|
51
|
+
export const UserpassDeleteUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
52
|
+
S.Struct({
|
|
53
|
+
userpass_mount_path: S.String.pipe(T.Label()),
|
|
54
|
+
username: S.String.pipe(T.Label()),
|
|
55
|
+
}).pipe(
|
|
56
|
+
T.Http({
|
|
57
|
+
method: "DELETE",
|
|
58
|
+
uri: "/auth/{userpass_mount_path}/users/{username}",
|
|
59
|
+
code: 200,
|
|
60
|
+
}),
|
|
61
|
+
),
|
|
62
|
+
).annotate({
|
|
63
|
+
identifier: "UserpassDeleteUserRequest",
|
|
64
|
+
}) as any as S.Schema<UserpassDeleteUserRequest>;
|
|
65
|
+
|
|
66
|
+
export interface UserpassDeleteUserResponse {}
|
|
67
|
+
export const UserpassDeleteUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
68
|
+
S.Struct({}),
|
|
69
|
+
).annotate({
|
|
70
|
+
identifier: "UserpassDeleteUserResponse",
|
|
71
|
+
}) as any as S.Schema<UserpassDeleteUserResponse>;
|
|
72
|
+
|
|
73
|
+
export type UserpassListUsersRequestList = "true";
|
|
74
|
+
export const UserpassListUsersRequestList = S.String;
|
|
75
|
+
|
|
76
|
+
export interface UserpassListUsersRequest {
|
|
77
|
+
/** Path that the backend was mounted at */
|
|
78
|
+
userpass_mount_path: string;
|
|
79
|
+
/** Must be set to `true` */
|
|
80
|
+
list: UserpassListUsersRequestList | (string & {});
|
|
81
|
+
}
|
|
82
|
+
export const UserpassListUsersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
83
|
+
S.Struct({
|
|
84
|
+
userpass_mount_path: S.String.pipe(T.Label()),
|
|
85
|
+
list: UserpassListUsersRequestList.pipe(T.Query()),
|
|
86
|
+
}).pipe(
|
|
87
|
+
T.Http({
|
|
88
|
+
method: "GET",
|
|
89
|
+
uri: "/auth/{userpass_mount_path}/users",
|
|
90
|
+
code: 200,
|
|
91
|
+
}),
|
|
92
|
+
),
|
|
93
|
+
).annotate({
|
|
94
|
+
identifier: "UserpassListUsersRequest",
|
|
95
|
+
}) as any as S.Schema<UserpassListUsersRequest>;
|
|
96
|
+
|
|
97
|
+
export interface UserpassListUsersResponse {}
|
|
98
|
+
export const UserpassListUsersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
99
|
+
S.Struct({}),
|
|
100
|
+
).annotate({
|
|
101
|
+
identifier: "UserpassListUsersResponse",
|
|
102
|
+
}) as any as S.Schema<UserpassListUsersResponse>;
|
|
103
|
+
|
|
104
|
+
export interface UserpassReadUserRequest {
|
|
105
|
+
/** Path that the backend was mounted at */
|
|
106
|
+
userpass_mount_path: string;
|
|
107
|
+
/** Username for this user. */
|
|
108
|
+
username: string;
|
|
109
|
+
}
|
|
110
|
+
export const UserpassReadUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
111
|
+
S.Struct({
|
|
112
|
+
userpass_mount_path: S.String.pipe(T.Label()),
|
|
113
|
+
username: S.String.pipe(T.Label()),
|
|
114
|
+
}).pipe(
|
|
115
|
+
T.Http({
|
|
116
|
+
method: "GET",
|
|
117
|
+
uri: "/auth/{userpass_mount_path}/users/{username}",
|
|
118
|
+
code: 200,
|
|
119
|
+
}),
|
|
120
|
+
),
|
|
121
|
+
).annotate({
|
|
122
|
+
identifier: "UserpassReadUserRequest",
|
|
123
|
+
}) as any as S.Schema<UserpassReadUserRequest>;
|
|
124
|
+
|
|
125
|
+
export interface UserpassReadUserResponse {}
|
|
126
|
+
export const UserpassReadUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
127
|
+
S.Struct({}),
|
|
128
|
+
).annotate({
|
|
129
|
+
identifier: "UserpassReadUserResponse",
|
|
130
|
+
}) as any as S.Schema<UserpassReadUserResponse>;
|
|
131
|
+
|
|
132
|
+
export interface UserpassResetPasswordRequest {
|
|
133
|
+
/** Path that the backend was mounted at */
|
|
134
|
+
userpass_mount_path: string;
|
|
135
|
+
/** Username for this user. */
|
|
136
|
+
username: string;
|
|
137
|
+
/** Password for this user. */
|
|
138
|
+
password?: string;
|
|
139
|
+
/** Pre-hashed bcrypt password for this user. Mutually exclusive with password. */
|
|
140
|
+
password_hash?: string;
|
|
141
|
+
}
|
|
142
|
+
export const UserpassResetPasswordRequest = /*@__PURE__*/ S.suspend(() =>
|
|
143
|
+
S.Struct({
|
|
144
|
+
userpass_mount_path: S.String.pipe(T.Label()),
|
|
145
|
+
username: S.String.pipe(T.Label()),
|
|
146
|
+
password: S.optional(S.String),
|
|
147
|
+
password_hash: S.optional(S.String),
|
|
148
|
+
}).pipe(
|
|
149
|
+
T.Http({
|
|
150
|
+
method: "POST",
|
|
151
|
+
uri: "/auth/{userpass_mount_path}/users/{username}/password",
|
|
152
|
+
code: 200,
|
|
153
|
+
}),
|
|
154
|
+
),
|
|
155
|
+
).annotate({
|
|
156
|
+
identifier: "UserpassResetPasswordRequest",
|
|
157
|
+
}) as any as S.Schema<UserpassResetPasswordRequest>;
|
|
158
|
+
|
|
159
|
+
export interface UserpassResetPasswordResponse {}
|
|
160
|
+
export const UserpassResetPasswordResponse = /*@__PURE__*/ S.suspend(() =>
|
|
161
|
+
S.Struct({}),
|
|
162
|
+
).annotate({
|
|
163
|
+
identifier: "UserpassResetPasswordResponse",
|
|
164
|
+
}) as any as S.Schema<UserpassResetPasswordResponse>;
|
|
165
|
+
|
|
166
|
+
/** Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. */
|
|
167
|
+
export type UserpassUpdatePoliciesRequestPoliciesList = Array<string>;
|
|
168
|
+
export const UserpassUpdatePoliciesRequestPoliciesList = /*@__PURE__*/ S.Array(
|
|
169
|
+
S.String,
|
|
170
|
+
) as any as S.Schema<UserpassUpdatePoliciesRequestPoliciesList>;
|
|
171
|
+
|
|
172
|
+
/** Comma-separated list of policies */
|
|
173
|
+
export type UserpassUpdatePoliciesRequestTokenPoliciesList = Array<string>;
|
|
174
|
+
export const UserpassUpdatePoliciesRequestTokenPoliciesList =
|
|
175
|
+
/*@__PURE__*/ S.Array(
|
|
176
|
+
S.String,
|
|
177
|
+
) as any as S.Schema<UserpassUpdatePoliciesRequestTokenPoliciesList>;
|
|
178
|
+
|
|
179
|
+
export interface UserpassUpdatePoliciesRequest {
|
|
180
|
+
/** Path that the backend was mounted at */
|
|
181
|
+
userpass_mount_path: string;
|
|
182
|
+
/** Username for this user. */
|
|
183
|
+
username: string;
|
|
184
|
+
/** Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. */
|
|
185
|
+
policies?: UserpassUpdatePoliciesRequestPoliciesList;
|
|
186
|
+
/** Comma-separated list of policies */
|
|
187
|
+
token_policies?: UserpassUpdatePoliciesRequestTokenPoliciesList;
|
|
188
|
+
}
|
|
189
|
+
export const UserpassUpdatePoliciesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
190
|
+
S.Struct({
|
|
191
|
+
userpass_mount_path: S.String.pipe(T.Label()),
|
|
192
|
+
username: S.String.pipe(T.Label()),
|
|
193
|
+
policies: S.optional(UserpassUpdatePoliciesRequestPoliciesList),
|
|
194
|
+
token_policies: S.optional(UserpassUpdatePoliciesRequestTokenPoliciesList),
|
|
195
|
+
}).pipe(
|
|
196
|
+
T.Http({
|
|
197
|
+
method: "POST",
|
|
198
|
+
uri: "/auth/{userpass_mount_path}/users/{username}/policies",
|
|
199
|
+
code: 200,
|
|
200
|
+
}),
|
|
201
|
+
),
|
|
202
|
+
).annotate({
|
|
203
|
+
identifier: "UserpassUpdatePoliciesRequest",
|
|
204
|
+
}) as any as S.Schema<UserpassUpdatePoliciesRequest>;
|
|
205
|
+
|
|
206
|
+
export interface UserpassUpdatePoliciesResponse {}
|
|
207
|
+
export const UserpassUpdatePoliciesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
208
|
+
S.Struct({}),
|
|
209
|
+
).annotate({
|
|
210
|
+
identifier: "UserpassUpdatePoliciesResponse",
|
|
211
|
+
}) as any as S.Schema<UserpassUpdatePoliciesResponse>;
|
|
212
|
+
|
|
213
|
+
/** Use "token_bound_cidrs" instead. If this and "token_bound_cidrs" are both specified, only "token_bound_cidrs" will be used. */
|
|
214
|
+
export type UserpassWriteUserRequestBoundCidrsList = Array<string>;
|
|
215
|
+
export const UserpassWriteUserRequestBoundCidrsList = /*@__PURE__*/ S.Array(
|
|
216
|
+
S.String,
|
|
217
|
+
) as any as S.Schema<UserpassWriteUserRequestBoundCidrsList>;
|
|
218
|
+
|
|
219
|
+
/** Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. */
|
|
220
|
+
export type UserpassWriteUserRequestPoliciesList = Array<string>;
|
|
221
|
+
export const UserpassWriteUserRequestPoliciesList = /*@__PURE__*/ S.Array(
|
|
222
|
+
S.String,
|
|
223
|
+
) as any as S.Schema<UserpassWriteUserRequestPoliciesList>;
|
|
224
|
+
|
|
225
|
+
/** Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. */
|
|
226
|
+
export type UserpassWriteUserRequestTokenBoundCidrsList = Array<string>;
|
|
227
|
+
export const UserpassWriteUserRequestTokenBoundCidrsList =
|
|
228
|
+
/*@__PURE__*/ S.Array(
|
|
229
|
+
S.String,
|
|
230
|
+
) as any as S.Schema<UserpassWriteUserRequestTokenBoundCidrsList>;
|
|
231
|
+
|
|
232
|
+
/** Comma-separated list of policies */
|
|
233
|
+
export type UserpassWriteUserRequestTokenPoliciesList = Array<string>;
|
|
234
|
+
export const UserpassWriteUserRequestTokenPoliciesList = /*@__PURE__*/ S.Array(
|
|
235
|
+
S.String,
|
|
236
|
+
) as any as S.Schema<UserpassWriteUserRequestTokenPoliciesList>;
|
|
237
|
+
|
|
238
|
+
export interface UserpassWriteUserRequest {
|
|
239
|
+
/** Path that the backend was mounted at */
|
|
240
|
+
userpass_mount_path: string;
|
|
241
|
+
/** Username for this user. */
|
|
242
|
+
username: string;
|
|
243
|
+
/** Use "token_bound_cidrs" instead. If this and "token_bound_cidrs" are both specified, only "token_bound_cidrs" will be used. */
|
|
244
|
+
bound_cidrs?: UserpassWriteUserRequestBoundCidrsList;
|
|
245
|
+
/** Use "token_max_ttl" instead. If this and "token_max_ttl" are both specified, only "token_max_ttl" will be used. */
|
|
246
|
+
max_ttl?: number;
|
|
247
|
+
/** Password for this user. */
|
|
248
|
+
password?: string;
|
|
249
|
+
/** Pre-hashed bcrypt password for this user. Mutually exclusive with password. */
|
|
250
|
+
password_hash?: string;
|
|
251
|
+
/** Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. */
|
|
252
|
+
policies?: UserpassWriteUserRequestPoliciesList;
|
|
253
|
+
/** Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. */
|
|
254
|
+
token_bound_cidrs?: UserpassWriteUserRequestTokenBoundCidrsList;
|
|
255
|
+
/** If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. */
|
|
256
|
+
token_explicit_max_ttl?: number;
|
|
257
|
+
/** The maximum lifetime of the generated token */
|
|
258
|
+
token_max_ttl?: number;
|
|
259
|
+
/** If true, the 'default' policy will not automatically be added to generated tokens */
|
|
260
|
+
token_no_default_policy?: boolean;
|
|
261
|
+
/** The maximum number of times a token may be used, a value of zero means unlimited */
|
|
262
|
+
token_num_uses?: number;
|
|
263
|
+
/** If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). */
|
|
264
|
+
token_period?: number;
|
|
265
|
+
/** Comma-separated list of policies */
|
|
266
|
+
token_policies?: UserpassWriteUserRequestTokenPoliciesList;
|
|
267
|
+
/** If true, CIDRs for the token will be strictly bound to the source IP address of the login request */
|
|
268
|
+
token_strictly_bind_ip?: boolean;
|
|
269
|
+
/** The initial ttl of the token to generate */
|
|
270
|
+
token_ttl?: number;
|
|
271
|
+
/** The type of token to generate, service or batch */
|
|
272
|
+
token_type?: string;
|
|
273
|
+
/** Use "token_ttl" instead. If this and "token_ttl" are both specified, only "token_ttl" will be used. */
|
|
274
|
+
ttl?: number;
|
|
275
|
+
}
|
|
276
|
+
export const UserpassWriteUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
277
|
+
S.Struct({
|
|
278
|
+
userpass_mount_path: S.String.pipe(T.Label()),
|
|
279
|
+
username: S.String.pipe(T.Label()),
|
|
280
|
+
bound_cidrs: S.optional(UserpassWriteUserRequestBoundCidrsList),
|
|
281
|
+
max_ttl: S.optional(S.Number),
|
|
282
|
+
password: S.optional(S.String),
|
|
283
|
+
password_hash: S.optional(S.String),
|
|
284
|
+
policies: S.optional(UserpassWriteUserRequestPoliciesList),
|
|
285
|
+
token_bound_cidrs: S.optional(UserpassWriteUserRequestTokenBoundCidrsList),
|
|
286
|
+
token_explicit_max_ttl: S.optional(S.Number),
|
|
287
|
+
token_max_ttl: S.optional(S.Number),
|
|
288
|
+
token_no_default_policy: S.optional(S.Boolean),
|
|
289
|
+
token_num_uses: S.optional(S.Number),
|
|
290
|
+
token_period: S.optional(S.Number),
|
|
291
|
+
token_policies: S.optional(UserpassWriteUserRequestTokenPoliciesList),
|
|
292
|
+
token_strictly_bind_ip: S.optional(S.Boolean),
|
|
293
|
+
token_ttl: S.optional(S.Number),
|
|
294
|
+
token_type: S.optional(S.String),
|
|
295
|
+
ttl: S.optional(S.Number),
|
|
296
|
+
}).pipe(
|
|
297
|
+
T.Http({
|
|
298
|
+
method: "POST",
|
|
299
|
+
uri: "/auth/{userpass_mount_path}/users/{username}",
|
|
300
|
+
code: 200,
|
|
301
|
+
}),
|
|
302
|
+
),
|
|
303
|
+
).annotate({
|
|
304
|
+
identifier: "UserpassWriteUserRequest",
|
|
305
|
+
}) as any as S.Schema<UserpassWriteUserRequest>;
|
|
306
|
+
|
|
307
|
+
export interface UserpassWriteUserResponse {}
|
|
308
|
+
export const UserpassWriteUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
309
|
+
S.Struct({}),
|
|
310
|
+
).annotate({
|
|
311
|
+
identifier: "UserpassWriteUserResponse",
|
|
312
|
+
}) as any as S.Schema<UserpassWriteUserResponse>;
|
|
313
|
+
|
|
314
|
+
export type LoginUserpassError = OpenBaoOpError;
|
|
315
|
+
export const loginUserpass: API.OperationMethod<
|
|
316
|
+
LoginUserpassRequest,
|
|
317
|
+
LoginUserpassResponse,
|
|
318
|
+
LoginUserpassError,
|
|
319
|
+
OpenBaoOpContext
|
|
320
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
321
|
+
input: LoginUserpassRequest,
|
|
322
|
+
output: LoginUserpassResponse,
|
|
323
|
+
errors: [],
|
|
324
|
+
protocol: OpenBaoProtocol,
|
|
325
|
+
retry: Retry.Retry,
|
|
326
|
+
}));
|
|
327
|
+
|
|
328
|
+
export type UserpassDeleteUserError = OpenBaoOpError;
|
|
329
|
+
export const userpassDeleteUser: API.OperationMethod<
|
|
330
|
+
UserpassDeleteUserRequest,
|
|
331
|
+
UserpassDeleteUserResponse,
|
|
332
|
+
UserpassDeleteUserError,
|
|
333
|
+
OpenBaoOpContext
|
|
334
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
335
|
+
input: UserpassDeleteUserRequest,
|
|
336
|
+
output: UserpassDeleteUserResponse,
|
|
337
|
+
errors: [],
|
|
338
|
+
protocol: OpenBaoProtocol,
|
|
339
|
+
retry: Retry.Retry,
|
|
340
|
+
}));
|
|
341
|
+
|
|
342
|
+
export type UserpassListUsersError = OpenBaoOpError;
|
|
343
|
+
export const userpassListUsers: API.OperationMethod<
|
|
344
|
+
UserpassListUsersRequest,
|
|
345
|
+
UserpassListUsersResponse,
|
|
346
|
+
UserpassListUsersError,
|
|
347
|
+
OpenBaoOpContext
|
|
348
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
349
|
+
input: UserpassListUsersRequest,
|
|
350
|
+
output: UserpassListUsersResponse,
|
|
351
|
+
errors: [],
|
|
352
|
+
protocol: OpenBaoProtocol,
|
|
353
|
+
retry: Retry.Retry,
|
|
354
|
+
}));
|
|
355
|
+
|
|
356
|
+
export type UserpassReadUserError = OpenBaoOpError;
|
|
357
|
+
export const userpassReadUser: API.OperationMethod<
|
|
358
|
+
UserpassReadUserRequest,
|
|
359
|
+
UserpassReadUserResponse,
|
|
360
|
+
UserpassReadUserError,
|
|
361
|
+
OpenBaoOpContext
|
|
362
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
363
|
+
input: UserpassReadUserRequest,
|
|
364
|
+
output: UserpassReadUserResponse,
|
|
365
|
+
errors: [],
|
|
366
|
+
protocol: OpenBaoProtocol,
|
|
367
|
+
retry: Retry.Retry,
|
|
368
|
+
}));
|
|
369
|
+
|
|
370
|
+
export type UserpassResetPasswordError = OpenBaoOpError;
|
|
371
|
+
export const userpassResetPassword: API.OperationMethod<
|
|
372
|
+
UserpassResetPasswordRequest,
|
|
373
|
+
UserpassResetPasswordResponse,
|
|
374
|
+
UserpassResetPasswordError,
|
|
375
|
+
OpenBaoOpContext
|
|
376
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
377
|
+
input: UserpassResetPasswordRequest,
|
|
378
|
+
output: UserpassResetPasswordResponse,
|
|
379
|
+
errors: [],
|
|
380
|
+
protocol: OpenBaoProtocol,
|
|
381
|
+
retry: Retry.Retry,
|
|
382
|
+
}));
|
|
383
|
+
|
|
384
|
+
export type UserpassUpdatePoliciesError = OpenBaoOpError;
|
|
385
|
+
export const userpassUpdatePolicies: API.OperationMethod<
|
|
386
|
+
UserpassUpdatePoliciesRequest,
|
|
387
|
+
UserpassUpdatePoliciesResponse,
|
|
388
|
+
UserpassUpdatePoliciesError,
|
|
389
|
+
OpenBaoOpContext
|
|
390
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
391
|
+
input: UserpassUpdatePoliciesRequest,
|
|
392
|
+
output: UserpassUpdatePoliciesResponse,
|
|
393
|
+
errors: [],
|
|
394
|
+
protocol: OpenBaoProtocol,
|
|
395
|
+
retry: Retry.Retry,
|
|
396
|
+
}));
|
|
397
|
+
|
|
398
|
+
export type UserpassWriteUserError = OpenBaoOpError;
|
|
399
|
+
export const userpassWriteUser: API.OperationMethod<
|
|
400
|
+
UserpassWriteUserRequest,
|
|
401
|
+
UserpassWriteUserResponse,
|
|
402
|
+
UserpassWriteUserError,
|
|
403
|
+
OpenBaoOpContext
|
|
404
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
405
|
+
input: UserpassWriteUserRequest,
|
|
406
|
+
output: UserpassWriteUserResponse,
|
|
407
|
+
errors: [],
|
|
408
|
+
protocol: OpenBaoProtocol,
|
|
409
|
+
retry: Retry.Retry,
|
|
410
|
+
}));
|