@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.
Files changed (313) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +78 -0
  3. package/dist/credentials.d.ts +32 -0
  4. package/dist/credentials.d.ts.map +1 -0
  5. package/dist/credentials.js +66 -0
  6. package/dist/credentials.js.map +1 -0
  7. package/dist/credentials.test.d.ts +2 -0
  8. package/dist/credentials.test.d.ts.map +1 -0
  9. package/dist/credentials.test.js +29 -0
  10. package/dist/credentials.test.js.map +1 -0
  11. package/dist/errors.d.ts +57 -0
  12. package/dist/errors.d.ts.map +1 -0
  13. package/dist/errors.js +37 -0
  14. package/dist/errors.js.map +1 -0
  15. package/dist/index.d.ts +30 -0
  16. package/dist/index.d.ts.map +1 -0
  17. package/dist/index.js +30 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/protocol.d.ts +18 -0
  20. package/dist/protocol.d.ts.map +1 -0
  21. package/dist/protocol.js +96 -0
  22. package/dist/protocol.js.map +1 -0
  23. package/dist/protocol.test.d.ts +2 -0
  24. package/dist/protocol.test.d.ts.map +1 -0
  25. package/dist/protocol.test.js +78 -0
  26. package/dist/protocol.test.js.map +1 -0
  27. package/dist/retry.d.ts +60 -0
  28. package/dist/retry.d.ts.map +1 -0
  29. package/dist/retry.js +53 -0
  30. package/dist/retry.js.map +1 -0
  31. package/dist/services/alias.d.ts +73 -0
  32. package/dist/services/alias.d.ts.map +1 -0
  33. package/dist/services/alias.js +91 -0
  34. package/dist/services/alias.js.map +1 -0
  35. package/dist/services/approle.d.ts +918 -0
  36. package/dist/services/approle.d.ts.map +1 -0
  37. package/dist/services/approle.js +1206 -0
  38. package/dist/services/approle.js.map +1 -0
  39. package/dist/services/auditing.d.ts +97 -0
  40. package/dist/services/auditing.d.ts.map +1 -0
  41. package/dist/services/auditing.js +158 -0
  42. package/dist/services/auditing.js.map +1 -0
  43. package/dist/services/auth.d.ts +160 -0
  44. package/dist/services/auth.d.ts.map +1 -0
  45. package/dist/services/auth.js +169 -0
  46. package/dist/services/auth.js.map +1 -0
  47. package/dist/services/collect.d.ts +35 -0
  48. package/dist/services/collect.d.ts.map +1 -0
  49. package/dist/services/collect.js +46 -0
  50. package/dist/services/collect.js.map +1 -0
  51. package/dist/services/configure.d.ts +35 -0
  52. package/dist/services/configure.d.ts.map +1 -0
  53. package/dist/services/configure.js +43 -0
  54. package/dist/services/configure.js.map +1 -0
  55. package/dist/services/cors.d.ts +54 -0
  56. package/dist/services/cors.d.ts.map +1 -0
  57. package/dist/services/cors.js +65 -0
  58. package/dist/services/cors.js.map +1 -0
  59. package/dist/services/cubbyhole.d.ts +40 -0
  60. package/dist/services/cubbyhole.d.ts.map +1 -0
  61. package/dist/services/cubbyhole.js +56 -0
  62. package/dist/services/cubbyhole.js.map +1 -0
  63. package/dist/services/database.d.ts +278 -0
  64. package/dist/services/database.d.ts.map +1 -0
  65. package/dist/services/database.js +384 -0
  66. package/dist/services/database.js.map +1 -0
  67. package/dist/services/decode.d.ts +18 -0
  68. package/dist/services/decode.d.ts.map +1 -0
  69. package/dist/services/decode.js +24 -0
  70. package/dist/services/decode.js.map +1 -0
  71. package/dist/services/entity.d.ts +257 -0
  72. package/dist/services/entity.d.ts.map +1 -0
  73. package/dist/services/entity.js +313 -0
  74. package/dist/services/entity.js.map +1 -0
  75. package/dist/services/generate.d.ts +136 -0
  76. package/dist/services/generate.d.ts.map +1 -0
  77. package/dist/services/generate.js +188 -0
  78. package/dist/services/generate.js.map +1 -0
  79. package/dist/services/group.d.ts +244 -0
  80. package/dist/services/group.d.ts.map +1 -0
  81. package/dist/services/group.js +277 -0
  82. package/dist/services/group.js.map +1 -0
  83. package/dist/services/ha.d.ts +17 -0
  84. package/dist/services/ha.d.ts.map +1 -0
  85. package/dist/services/ha.js +24 -0
  86. package/dist/services/ha.js.map +1 -0
  87. package/dist/services/index.d.ts +54 -0
  88. package/dist/services/index.d.ts.map +1 -0
  89. package/dist/services/index.js +55 -0
  90. package/dist/services/index.js.map +1 -0
  91. package/dist/services/initialize.d.ts +34 -0
  92. package/dist/services/initialize.d.ts.map +1 -0
  93. package/dist/services/initialize.js +31 -0
  94. package/dist/services/initialize.js.map +1 -0
  95. package/dist/services/internal.d.ts +131 -0
  96. package/dist/services/internal.d.ts.map +1 -0
  97. package/dist/services/internal.js +199 -0
  98. package/dist/services/internal.js.map +1 -0
  99. package/dist/services/jwt.d.ts +684 -0
  100. package/dist/services/jwt.d.ts.map +1 -0
  101. package/dist/services/jwt.js +801 -0
  102. package/dist/services/jwt.js.map +1 -0
  103. package/dist/services/kubernetes.d.ts +166 -0
  104. package/dist/services/kubernetes.d.ts.map +1 -0
  105. package/dist/services/kubernetes.js +187 -0
  106. package/dist/services/kubernetes.js.map +1 -0
  107. package/dist/services/kv.d.ts +519 -0
  108. package/dist/services/kv.d.ts.map +1 -0
  109. package/dist/services/kv.js +655 -0
  110. package/dist/services/kv.js.map +1 -0
  111. package/dist/services/leader.d.ts +21 -0
  112. package/dist/services/leader.d.ts.map +1 -0
  113. package/dist/services/leader.js +29 -0
  114. package/dist/services/leader.js.map +1 -0
  115. package/dist/services/leases.d.ts +185 -0
  116. package/dist/services/leases.d.ts.map +1 -0
  117. package/dist/services/leases.js +238 -0
  118. package/dist/services/leases.js.map +1 -0
  119. package/dist/services/locked.d.ts +27 -0
  120. package/dist/services/locked.d.ts.map +1 -0
  121. package/dist/services/locked.js +42 -0
  122. package/dist/services/locked.js.map +1 -0
  123. package/dist/services/loggers.d.ts +69 -0
  124. package/dist/services/loggers.d.ts.map +1 -0
  125. package/dist/services/loggers.js +100 -0
  126. package/dist/services/loggers.js.map +1 -0
  127. package/dist/services/mfa.d.ts +386 -0
  128. package/dist/services/mfa.d.ts.map +1 -0
  129. package/dist/services/mfa.js +553 -0
  130. package/dist/services/mfa.js.map +1 -0
  131. package/dist/services/misc.d.ts +103 -0
  132. package/dist/services/misc.d.ts.map +1 -0
  133. package/dist/services/misc.js +120 -0
  134. package/dist/services/misc.js.map +1 -0
  135. package/dist/services/mounts.d.ts +173 -0
  136. package/dist/services/mounts.d.ts.map +1 -0
  137. package/dist/services/mounts.js +168 -0
  138. package/dist/services/mounts.js.map +1 -0
  139. package/dist/services/namespaces.d.ts +257 -0
  140. package/dist/services/namespaces.d.ts.map +1 -0
  141. package/dist/services/namespaces.js +320 -0
  142. package/dist/services/namespaces.js.map +1 -0
  143. package/dist/services/oidc.d.ts +509 -0
  144. package/dist/services/oidc.d.ts.map +1 -0
  145. package/dist/services/oidc.js +718 -0
  146. package/dist/services/oidc.js.map +1 -0
  147. package/dist/services/persona.d.ts +73 -0
  148. package/dist/services/persona.d.ts.map +1 -0
  149. package/dist/services/persona.js +91 -0
  150. package/dist/services/persona.js.map +1 -0
  151. package/dist/services/pki.d.ts +5783 -0
  152. package/dist/services/pki.d.ts.map +1 -0
  153. package/dist/services/pki.js +4995 -0
  154. package/dist/services/pki.js.map +1 -0
  155. package/dist/services/plugins.d.ts +203 -0
  156. package/dist/services/plugins.d.ts.map +1 -0
  157. package/dist/services/plugins.js +237 -0
  158. package/dist/services/plugins.js.map +1 -0
  159. package/dist/services/policies.d.ts +250 -0
  160. package/dist/services/policies.d.ts.map +1 -0
  161. package/dist/services/policies.js +312 -0
  162. package/dist/services/policies.js.map +1 -0
  163. package/dist/services/pprof.d.ts +104 -0
  164. package/dist/services/pprof.d.ts.map +1 -0
  165. package/dist/services/pprof.js +161 -0
  166. package/dist/services/pprof.js.map +1 -0
  167. package/dist/services/query.d.ts +65 -0
  168. package/dist/services/query.d.ts.map +1 -0
  169. package/dist/services/query.js +66 -0
  170. package/dist/services/query.js.map +1 -0
  171. package/dist/services/rate.d.ts +102 -0
  172. package/dist/services/rate.d.ts.map +1 -0
  173. package/dist/services/rate.js +129 -0
  174. package/dist/services/rate.js.map +1 -0
  175. package/dist/services/raw.d.ts +85 -0
  176. package/dist/services/raw.d.ts.map +1 -0
  177. package/dist/services/raw.js +116 -0
  178. package/dist/services/raw.js.map +1 -0
  179. package/dist/services/read.d.ts +87 -0
  180. package/dist/services/read.d.ts.map +1 -0
  181. package/dist/services/read.js +123 -0
  182. package/dist/services/read.js.map +1 -0
  183. package/dist/services/rekey.d.ts +184 -0
  184. package/dist/services/rekey.d.ts.map +1 -0
  185. package/dist/services/rekey.js +243 -0
  186. package/dist/services/rekey.js.map +1 -0
  187. package/dist/services/reload.d.ts +15 -0
  188. package/dist/services/reload.d.ts.map +1 -0
  189. package/dist/services/reload.js +27 -0
  190. package/dist/services/reload.js.map +1 -0
  191. package/dist/services/remount.d.ts +18 -0
  192. package/dist/services/remount.d.ts.map +1 -0
  193. package/dist/services/remount.js +30 -0
  194. package/dist/services/remount.js.map +1 -0
  195. package/dist/services/root.d.ts +134 -0
  196. package/dist/services/root.d.ts.map +1 -0
  197. package/dist/services/root.js +180 -0
  198. package/dist/services/root.js.map +1 -0
  199. package/dist/services/rotate.d.ts +367 -0
  200. package/dist/services/rotate.d.ts.map +1 -0
  201. package/dist/services/rotate.js +473 -0
  202. package/dist/services/rotate.js.map +1 -0
  203. package/dist/services/seal.d.ts +29 -0
  204. package/dist/services/seal.d.ts.map +1 -0
  205. package/dist/services/seal.js +37 -0
  206. package/dist/services/seal.js.map +1 -0
  207. package/dist/services/ssh.d.ts +491 -0
  208. package/dist/services/ssh.d.ts.map +1 -0
  209. package/dist/services/ssh.js +582 -0
  210. package/dist/services/ssh.js.map +1 -0
  211. package/dist/services/status.d.ts +17 -0
  212. package/dist/services/status.d.ts.map +1 -0
  213. package/dist/services/status.js +25 -0
  214. package/dist/services/status.js.map +1 -0
  215. package/dist/services/step.d.ts +14 -0
  216. package/dist/services/step.d.ts.map +1 -0
  217. package/dist/services/step.js +21 -0
  218. package/dist/services/step.js.map +1 -0
  219. package/dist/services/system.d.ts +33 -0
  220. package/dist/services/system.d.ts.map +1 -0
  221. package/dist/services/system.js +47 -0
  222. package/dist/services/system.js.map +1 -0
  223. package/dist/services/token.d.ts +408 -0
  224. package/dist/services/token.d.ts.map +1 -0
  225. package/dist/services/token.js +415 -0
  226. package/dist/services/token.js.map +1 -0
  227. package/dist/services/ui.d.ts +70 -0
  228. package/dist/services/ui.d.ts.map +1 -0
  229. package/dist/services/ui.js +95 -0
  230. package/dist/services/ui.js.map +1 -0
  231. package/dist/services/update.d.ts +25 -0
  232. package/dist/services/update.d.ts.map +1 -0
  233. package/dist/services/update.js +36 -0
  234. package/dist/services/update.js.map +1 -0
  235. package/dist/services/userpass.d.ts +151 -0
  236. package/dist/services/userpass.d.ts.map +1 -0
  237. package/dist/services/userpass.js +177 -0
  238. package/dist/services/userpass.js.map +1 -0
  239. package/dist/services/version.d.ts +22 -0
  240. package/dist/services/version.d.ts.map +1 -0
  241. package/dist/services/version.js +28 -0
  242. package/dist/services/version.js.map +1 -0
  243. package/dist/services/workflows.d.ts +122 -0
  244. package/dist/services/workflows.d.ts.map +1 -0
  245. package/dist/services/workflows.js +149 -0
  246. package/dist/services/workflows.js.map +1 -0
  247. package/dist/traits.d.ts +11 -0
  248. package/dist/traits.d.ts.map +1 -0
  249. package/dist/traits.js +12 -0
  250. package/dist/traits.js.map +1 -0
  251. package/package.json +75 -0
  252. package/src/credentials.test.ts +36 -0
  253. package/src/credentials.ts +100 -0
  254. package/src/errors.ts +73 -0
  255. package/src/index.ts +33 -0
  256. package/src/protocol.test.ts +123 -0
  257. package/src/protocol.ts +120 -0
  258. package/src/retry.ts +84 -0
  259. package/src/services/alias.ts +208 -0
  260. package/src/services/approle.ts +2750 -0
  261. package/src/services/auditing.ts +318 -0
  262. package/src/services/auth.ts +416 -0
  263. package/src/services/collect.ts +103 -0
  264. package/src/services/configure.ts +94 -0
  265. package/src/services/cors.ts +155 -0
  266. package/src/services/cubbyhole.ts +117 -0
  267. package/src/services/database.ts +854 -0
  268. package/src/services/decode.ts +49 -0
  269. package/src/services/entity.ts +744 -0
  270. package/src/services/generate.ts +409 -0
  271. package/src/services/group.ts +677 -0
  272. package/src/services/ha.ts +52 -0
  273. package/src/services/index.ts +54 -0
  274. package/src/services/initialize.ts +76 -0
  275. package/src/services/internal.ts +425 -0
  276. package/src/services/jwt.ts +1838 -0
  277. package/src/services/kubernetes.ts +446 -0
  278. package/src/services/kv.ts +1480 -0
  279. package/src/services/leader.ts +57 -0
  280. package/src/services/leases.ts +532 -0
  281. package/src/services/locked.ts +86 -0
  282. package/src/services/loggers.ts +215 -0
  283. package/src/services/mfa.ts +1193 -0
  284. package/src/services/misc.ts +286 -0
  285. package/src/services/mounts.ts +428 -0
  286. package/src/services/namespaces.ts +707 -0
  287. package/src/services/oidc.ts +1613 -0
  288. package/src/services/persona.ts +210 -0
  289. package/src/services/pki.ts +13320 -0
  290. package/src/services/plugins.ts +549 -0
  291. package/src/services/policies.ts +689 -0
  292. package/src/services/pprof.ts +351 -0
  293. package/src/services/query.ts +170 -0
  294. package/src/services/rate.ts +303 -0
  295. package/src/services/raw.ts +244 -0
  296. package/src/services/read.ts +266 -0
  297. package/src/services/rekey.ts +540 -0
  298. package/src/services/reload.ts +51 -0
  299. package/src/services/remount.ts +58 -0
  300. package/src/services/root.ts +393 -0
  301. package/src/services/rotate.ts +1088 -0
  302. package/src/services/seal.ts +75 -0
  303. package/src/services/ssh.ts +1351 -0
  304. package/src/services/status.ts +51 -0
  305. package/src/services/step.ts +43 -0
  306. package/src/services/system.ts +98 -0
  307. package/src/services/token.ts +1046 -0
  308. package/src/services/ui.ts +207 -0
  309. package/src/services/update.ts +73 -0
  310. package/src/services/userpass.ts +410 -0
  311. package/src/services/version.ts +60 -0
  312. package/src/services/workflows.ts +327 -0
  313. package/src/traits.ts +45 -0
@@ -0,0 +1,1480 @@
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 KvDeleteDataPathRequest {
15
+ /** Path that the backend was mounted at */
16
+ kv_mount_path: string;
17
+ /** Location of the secret. */
18
+ path: string;
19
+ }
20
+ export const KvDeleteDataPathRequest = /*@__PURE__*/ S.suspend(() =>
21
+ S.Struct({
22
+ kv_mount_path: S.String.pipe(T.Label()),
23
+ path: S.String.pipe(T.Label()),
24
+ }).pipe(
25
+ T.Http({
26
+ method: "DELETE",
27
+ uri: "/{kv_mount_path}/data/{path}",
28
+ code: 200,
29
+ }),
30
+ ),
31
+ ).annotate({
32
+ identifier: "KvDeleteDataPathRequest",
33
+ }) as any as S.Schema<KvDeleteDataPathRequest>;
34
+
35
+ export interface KvDeleteDataPathResponse {}
36
+ export const KvDeleteDataPathResponse = /*@__PURE__*/ S.suspend(() =>
37
+ S.Struct({}),
38
+ ).annotate({
39
+ identifier: "KvDeleteDataPathResponse",
40
+ }) as any as S.Schema<KvDeleteDataPathResponse>;
41
+
42
+ export interface KvDeleteDataPathRequest2 {
43
+ /** Path that the backend was mounted at */
44
+ secret_mount_path: string;
45
+ /** Location of the secret. */
46
+ path: string;
47
+ }
48
+ export const KvDeleteDataPathRequest2 = /*@__PURE__*/ S.suspend(() =>
49
+ S.Struct({
50
+ secret_mount_path: S.String.pipe(T.Label()),
51
+ path: S.String.pipe(T.Label()),
52
+ }).pipe(
53
+ T.Http({
54
+ method: "DELETE",
55
+ uri: "/{secret_mount_path}/data/{path}",
56
+ code: 200,
57
+ }),
58
+ ),
59
+ ).annotate({
60
+ identifier: "KvDeleteDataPathRequest2",
61
+ }) as any as S.Schema<KvDeleteDataPathRequest2>;
62
+
63
+ export interface KvDeleteDataPath2Response {}
64
+ export const KvDeleteDataPath2Response = /*@__PURE__*/ S.suspend(() =>
65
+ S.Struct({}),
66
+ ).annotate({
67
+ identifier: "KvDeleteDataPath2Response",
68
+ }) as any as S.Schema<KvDeleteDataPath2Response>;
69
+
70
+ export interface KvDeleteMetadataPathRequest {
71
+ /** Path that the backend was mounted at */
72
+ kv_mount_path: string;
73
+ /** Location of the secret. */
74
+ path: string;
75
+ }
76
+ export const KvDeleteMetadataPathRequest = /*@__PURE__*/ S.suspend(() =>
77
+ S.Struct({
78
+ kv_mount_path: S.String.pipe(T.Label()),
79
+ path: S.String.pipe(T.Label()),
80
+ }).pipe(
81
+ T.Http({
82
+ method: "DELETE",
83
+ uri: "/{kv_mount_path}/metadata/{path}",
84
+ code: 200,
85
+ }),
86
+ ),
87
+ ).annotate({
88
+ identifier: "KvDeleteMetadataPathRequest",
89
+ }) as any as S.Schema<KvDeleteMetadataPathRequest>;
90
+
91
+ export interface KvDeleteMetadataPathResponse {}
92
+ export const KvDeleteMetadataPathResponse = /*@__PURE__*/ S.suspend(() =>
93
+ S.Struct({}),
94
+ ).annotate({
95
+ identifier: "KvDeleteMetadataPathResponse",
96
+ }) as any as S.Schema<KvDeleteMetadataPathResponse>;
97
+
98
+ export interface KvDeleteMetadataPathRequest2 {
99
+ /** Path that the backend was mounted at */
100
+ secret_mount_path: string;
101
+ /** Location of the secret. */
102
+ path: string;
103
+ }
104
+ export const KvDeleteMetadataPathRequest2 = /*@__PURE__*/ S.suspend(() =>
105
+ S.Struct({
106
+ secret_mount_path: S.String.pipe(T.Label()),
107
+ path: S.String.pipe(T.Label()),
108
+ }).pipe(
109
+ T.Http({
110
+ method: "DELETE",
111
+ uri: "/{secret_mount_path}/metadata/{path}",
112
+ code: 200,
113
+ }),
114
+ ),
115
+ ).annotate({
116
+ identifier: "KvDeleteMetadataPathRequest2",
117
+ }) as any as S.Schema<KvDeleteMetadataPathRequest2>;
118
+
119
+ export interface KvDeleteMetadataPath2Response {}
120
+ export const KvDeleteMetadataPath2Response = /*@__PURE__*/ S.suspend(() =>
121
+ S.Struct({}),
122
+ ).annotate({
123
+ identifier: "KvDeleteMetadataPath2Response",
124
+ }) as any as S.Schema<KvDeleteMetadataPath2Response>;
125
+
126
+ export interface KvPatchDataPathRequest {
127
+ /** Path that the backend was mounted at */
128
+ kv_mount_path: string;
129
+ /** Location of the secret. */
130
+ path: string;
131
+ /** The contents of the data map will be stored and returned on read. */
132
+ data?: unknown;
133
+ /** Options for writing a KV entry. Set the "cas" value to use a Check-And-Set operation. If not set the write will be allowed. If set to 0 a write will only be allowed if the key doesn’t exist. If the index is non-zero the write will only be allowed if the key’s current version matches the version specified in the cas parameter. */
134
+ options?: unknown;
135
+ /** If provided during a read, the value at the version number will be returned */
136
+ version?: number;
137
+ }
138
+ export const KvPatchDataPathRequest = /*@__PURE__*/ S.suspend(() =>
139
+ S.Struct({
140
+ kv_mount_path: S.String.pipe(T.Label()),
141
+ path: S.String.pipe(T.Label()),
142
+ data: S.optional(S.Unknown),
143
+ options: S.optional(S.Unknown),
144
+ version: S.optional(S.Number),
145
+ }).pipe(
146
+ T.Http({ method: "PATCH", uri: "/{kv_mount_path}/data/{path}", code: 200 }),
147
+ ),
148
+ ).annotate({
149
+ identifier: "KvPatchDataPathRequest",
150
+ }) as any as S.Schema<KvPatchDataPathRequest>;
151
+
152
+ export interface KvPatchDataPathResponse {}
153
+ export const KvPatchDataPathResponse = /*@__PURE__*/ S.suspend(() =>
154
+ S.Struct({}),
155
+ ).annotate({
156
+ identifier: "KvPatchDataPathResponse",
157
+ }) as any as S.Schema<KvPatchDataPathResponse>;
158
+
159
+ export interface KvPatchDataPathRequest2 {
160
+ /** Path that the backend was mounted at */
161
+ secret_mount_path: string;
162
+ /** Location of the secret. */
163
+ path: string;
164
+ /** The contents of the data map will be stored and returned on read. */
165
+ data?: unknown;
166
+ /** Options for writing a KV entry. Set the "cas" value to use a Check-And-Set operation. If not set the write will be allowed. If set to 0 a write will only be allowed if the key doesn’t exist. If the index is non-zero the write will only be allowed if the key’s current version matches the version specified in the cas parameter. */
167
+ options?: unknown;
168
+ /** If provided during a read, the value at the version number will be returned */
169
+ version?: number;
170
+ }
171
+ export const KvPatchDataPathRequest2 = /*@__PURE__*/ S.suspend(() =>
172
+ S.Struct({
173
+ secret_mount_path: S.String.pipe(T.Label()),
174
+ path: S.String.pipe(T.Label()),
175
+ data: S.optional(S.Unknown),
176
+ options: S.optional(S.Unknown),
177
+ version: S.optional(S.Number),
178
+ }).pipe(
179
+ T.Http({
180
+ method: "PATCH",
181
+ uri: "/{secret_mount_path}/data/{path}",
182
+ code: 200,
183
+ }),
184
+ ),
185
+ ).annotate({
186
+ identifier: "KvPatchDataPathRequest2",
187
+ }) as any as S.Schema<KvPatchDataPathRequest2>;
188
+
189
+ export interface KvPatchDataPath2Response {}
190
+ export const KvPatchDataPath2Response = /*@__PURE__*/ S.suspend(() =>
191
+ S.Struct({}),
192
+ ).annotate({
193
+ identifier: "KvPatchDataPath2Response",
194
+ }) as any as S.Schema<KvPatchDataPath2Response>;
195
+
196
+ export interface KvPatchMetadataPathRequest {
197
+ /** Path that the backend was mounted at */
198
+ kv_mount_path: string;
199
+ /** Location of the secret. */
200
+ path: string;
201
+ /** Optional entry to list begin listing after, not required to exist. Only used for listing. */
202
+ after?: string;
203
+ /** If true the key will require the cas parameter to be set on all write requests. If false, the backend’s configuration will be used. */
204
+ cas_required?: boolean;
205
+ /** User-provided key-value pairs that are used to describe arbitrary and version-agnostic information about a secret. */
206
+ custom_metadata?: unknown;
207
+ /** The length of time before a version is deleted. If not set, the backend's configured delete_version_after is used. Cannot be greater than the backend's delete_version_after. A zero duration clears the current setting. A negative duration will cause an error. */
208
+ delete_version_after?: number;
209
+ /** Optional number of entries to return; defaults to all entries. Only used for listing. */
210
+ limit?: number;
211
+ /** The number of versions to keep. If not set, the backend’s configured max version is used. */
212
+ max_versions?: number;
213
+ /** Check-and-set parameter for metadata updates. Must match the current metadata version for the update to succeed. Set to 0 for initial metadata creation. */
214
+ metadata_cas?: number;
215
+ /** If true the key will require the cas parameter to be set on all metadata update requests. If false, the backend's configuration will be used. */
216
+ metadata_cas_required?: boolean;
217
+ }
218
+ export const KvPatchMetadataPathRequest = /*@__PURE__*/ S.suspend(() =>
219
+ S.Struct({
220
+ kv_mount_path: S.String.pipe(T.Label()),
221
+ path: S.String.pipe(T.Label()),
222
+ after: S.optional(S.String),
223
+ cas_required: S.optional(S.Boolean),
224
+ custom_metadata: S.optional(S.Unknown),
225
+ delete_version_after: S.optional(S.Number),
226
+ limit: S.optional(S.Number),
227
+ max_versions: S.optional(S.Number),
228
+ metadata_cas: S.optional(S.Number),
229
+ metadata_cas_required: S.optional(S.Boolean),
230
+ }).pipe(
231
+ T.Http({
232
+ method: "PATCH",
233
+ uri: "/{kv_mount_path}/metadata/{path}",
234
+ code: 200,
235
+ }),
236
+ ),
237
+ ).annotate({
238
+ identifier: "KvPatchMetadataPathRequest",
239
+ }) as any as S.Schema<KvPatchMetadataPathRequest>;
240
+
241
+ export interface KvPatchMetadataPathResponse {}
242
+ export const KvPatchMetadataPathResponse = /*@__PURE__*/ S.suspend(() =>
243
+ S.Struct({}),
244
+ ).annotate({
245
+ identifier: "KvPatchMetadataPathResponse",
246
+ }) as any as S.Schema<KvPatchMetadataPathResponse>;
247
+
248
+ export interface KvPatchMetadataPathRequest2 {
249
+ /** Path that the backend was mounted at */
250
+ secret_mount_path: string;
251
+ /** Location of the secret. */
252
+ path: string;
253
+ /** Optional entry to list begin listing after, not required to exist. Only used for listing. */
254
+ after?: string;
255
+ /** If true the key will require the cas parameter to be set on all write requests. If false, the backend’s configuration will be used. */
256
+ cas_required?: boolean;
257
+ /** User-provided key-value pairs that are used to describe arbitrary and version-agnostic information about a secret. */
258
+ custom_metadata?: unknown;
259
+ /** The length of time before a version is deleted. If not set, the backend's configured delete_version_after is used. Cannot be greater than the backend's delete_version_after. A zero duration clears the current setting. A negative duration will cause an error. */
260
+ delete_version_after?: number;
261
+ /** Optional number of entries to return; defaults to all entries. Only used for listing. */
262
+ limit?: number;
263
+ /** The number of versions to keep. If not set, the backend’s configured max version is used. */
264
+ max_versions?: number;
265
+ /** Check-and-set parameter for metadata updates. Must match the current metadata version for the update to succeed. Set to 0 for initial metadata creation. */
266
+ metadata_cas?: number;
267
+ /** If true the key will require the cas parameter to be set on all metadata update requests. If false, the backend's configuration will be used. */
268
+ metadata_cas_required?: boolean;
269
+ }
270
+ export const KvPatchMetadataPathRequest2 = /*@__PURE__*/ S.suspend(() =>
271
+ S.Struct({
272
+ secret_mount_path: S.String.pipe(T.Label()),
273
+ path: S.String.pipe(T.Label()),
274
+ after: S.optional(S.String),
275
+ cas_required: S.optional(S.Boolean),
276
+ custom_metadata: S.optional(S.Unknown),
277
+ delete_version_after: S.optional(S.Number),
278
+ limit: S.optional(S.Number),
279
+ max_versions: S.optional(S.Number),
280
+ metadata_cas: S.optional(S.Number),
281
+ metadata_cas_required: S.optional(S.Boolean),
282
+ }).pipe(
283
+ T.Http({
284
+ method: "PATCH",
285
+ uri: "/{secret_mount_path}/metadata/{path}",
286
+ code: 200,
287
+ }),
288
+ ),
289
+ ).annotate({
290
+ identifier: "KvPatchMetadataPathRequest2",
291
+ }) as any as S.Schema<KvPatchMetadataPathRequest2>;
292
+
293
+ export interface KvPatchMetadataPath2Response {}
294
+ export const KvPatchMetadataPath2Response = /*@__PURE__*/ S.suspend(() =>
295
+ S.Struct({}),
296
+ ).annotate({
297
+ identifier: "KvPatchMetadataPath2Response",
298
+ }) as any as S.Schema<KvPatchMetadataPath2Response>;
299
+
300
+ export interface KvReadConfigRequest {
301
+ /** Path that the backend was mounted at */
302
+ kv_mount_path: string;
303
+ }
304
+ export const KvReadConfigRequest = /*@__PURE__*/ S.suspend(() =>
305
+ S.Struct({
306
+ kv_mount_path: S.String.pipe(T.Label()),
307
+ }).pipe(T.Http({ method: "GET", uri: "/{kv_mount_path}/config", code: 200 })),
308
+ ).annotate({
309
+ identifier: "KvReadConfigRequest",
310
+ }) as any as S.Schema<KvReadConfigRequest>;
311
+
312
+ export interface KvReadConfigResponse {}
313
+ export const KvReadConfigResponse = /*@__PURE__*/ S.suspend(() =>
314
+ S.Struct({}),
315
+ ).annotate({
316
+ identifier: "KvReadConfigResponse",
317
+ }) as any as S.Schema<KvReadConfigResponse>;
318
+
319
+ export interface KvReadConfigRequest2 {
320
+ /** Path that the backend was mounted at */
321
+ secret_mount_path: string;
322
+ }
323
+ export const KvReadConfigRequest2 = /*@__PURE__*/ S.suspend(() =>
324
+ S.Struct({
325
+ secret_mount_path: S.String.pipe(T.Label()),
326
+ }).pipe(
327
+ T.Http({ method: "GET", uri: "/{secret_mount_path}/config", code: 200 }),
328
+ ),
329
+ ).annotate({
330
+ identifier: "KvReadConfigRequest2",
331
+ }) as any as S.Schema<KvReadConfigRequest2>;
332
+
333
+ export interface KvReadConfig2Response {}
334
+ export const KvReadConfig2Response = /*@__PURE__*/ S.suspend(() =>
335
+ S.Struct({}),
336
+ ).annotate({
337
+ identifier: "KvReadConfig2Response",
338
+ }) as any as S.Schema<KvReadConfig2Response>;
339
+
340
+ export interface KvReadDataPathRequest {
341
+ /** Path that the backend was mounted at */
342
+ kv_mount_path: string;
343
+ /** Location of the secret. */
344
+ path: string;
345
+ }
346
+ export const KvReadDataPathRequest = /*@__PURE__*/ S.suspend(() =>
347
+ S.Struct({
348
+ kv_mount_path: S.String.pipe(T.Label()),
349
+ path: S.String.pipe(T.Label()),
350
+ }).pipe(
351
+ T.Http({ method: "GET", uri: "/{kv_mount_path}/data/{path}", code: 200 }),
352
+ ),
353
+ ).annotate({
354
+ identifier: "KvReadDataPathRequest",
355
+ }) as any as S.Schema<KvReadDataPathRequest>;
356
+
357
+ export interface KvReadDataPathResponse {}
358
+ export const KvReadDataPathResponse = /*@__PURE__*/ S.suspend(() =>
359
+ S.Struct({}),
360
+ ).annotate({
361
+ identifier: "KvReadDataPathResponse",
362
+ }) as any as S.Schema<KvReadDataPathResponse>;
363
+
364
+ export interface KvReadDataPathRequest2 {
365
+ /** Path that the backend was mounted at */
366
+ secret_mount_path: string;
367
+ /** Location of the secret. */
368
+ path: string;
369
+ }
370
+ export const KvReadDataPathRequest2 = /*@__PURE__*/ S.suspend(() =>
371
+ S.Struct({
372
+ secret_mount_path: S.String.pipe(T.Label()),
373
+ path: S.String.pipe(T.Label()),
374
+ }).pipe(
375
+ T.Http({
376
+ method: "GET",
377
+ uri: "/{secret_mount_path}/data/{path}",
378
+ code: 200,
379
+ }),
380
+ ),
381
+ ).annotate({
382
+ identifier: "KvReadDataPathRequest2",
383
+ }) as any as S.Schema<KvReadDataPathRequest2>;
384
+
385
+ export interface KvReadDataPath2Response {}
386
+ export const KvReadDataPath2Response = /*@__PURE__*/ S.suspend(() =>
387
+ S.Struct({}),
388
+ ).annotate({
389
+ identifier: "KvReadDataPath2Response",
390
+ }) as any as S.Schema<KvReadDataPath2Response>;
391
+
392
+ export interface KvReadMetadataPathRequest {
393
+ /** Path that the backend was mounted at */
394
+ kv_mount_path: string;
395
+ /** Location of the secret. */
396
+ path: string;
397
+ /** Return a list if `true` */
398
+ list?: string;
399
+ /** Return a recursive list if `true` */
400
+ scan?: string;
401
+ }
402
+ export const KvReadMetadataPathRequest = /*@__PURE__*/ S.suspend(() =>
403
+ S.Struct({
404
+ kv_mount_path: S.String.pipe(T.Label()),
405
+ path: S.String.pipe(T.Label()),
406
+ list: S.optional(S.String.pipe(T.Query())),
407
+ scan: S.optional(S.String.pipe(T.Query())),
408
+ }).pipe(
409
+ T.Http({
410
+ method: "GET",
411
+ uri: "/{kv_mount_path}/metadata/{path}",
412
+ code: 200,
413
+ }),
414
+ ),
415
+ ).annotate({
416
+ identifier: "KvReadMetadataPathRequest",
417
+ }) as any as S.Schema<KvReadMetadataPathRequest>;
418
+
419
+ export interface KvReadMetadataPathResponse {}
420
+ export const KvReadMetadataPathResponse = /*@__PURE__*/ S.suspend(() =>
421
+ S.Struct({}),
422
+ ).annotate({
423
+ identifier: "KvReadMetadataPathResponse",
424
+ }) as any as S.Schema<KvReadMetadataPathResponse>;
425
+
426
+ export interface KvReadMetadataPathRequest2 {
427
+ /** Path that the backend was mounted at */
428
+ secret_mount_path: string;
429
+ /** Location of the secret. */
430
+ path: string;
431
+ /** Return a list if `true` */
432
+ list?: string;
433
+ /** Return a recursive list if `true` */
434
+ scan?: string;
435
+ }
436
+ export const KvReadMetadataPathRequest2 = /*@__PURE__*/ S.suspend(() =>
437
+ S.Struct({
438
+ secret_mount_path: S.String.pipe(T.Label()),
439
+ path: S.String.pipe(T.Label()),
440
+ list: S.optional(S.String.pipe(T.Query())),
441
+ scan: S.optional(S.String.pipe(T.Query())),
442
+ }).pipe(
443
+ T.Http({
444
+ method: "GET",
445
+ uri: "/{secret_mount_path}/metadata/{path}",
446
+ code: 200,
447
+ }),
448
+ ),
449
+ ).annotate({
450
+ identifier: "KvReadMetadataPathRequest2",
451
+ }) as any as S.Schema<KvReadMetadataPathRequest2>;
452
+
453
+ export interface KvReadMetadataPath2Response {}
454
+ export const KvReadMetadataPath2Response = /*@__PURE__*/ S.suspend(() =>
455
+ S.Struct({}),
456
+ ).annotate({
457
+ identifier: "KvReadMetadataPath2Response",
458
+ }) as any as S.Schema<KvReadMetadataPath2Response>;
459
+
460
+ export interface KvReadSubkeysPathRequest {
461
+ /** Path that the backend was mounted at */
462
+ kv_mount_path: string;
463
+ /** Location of the secret. */
464
+ path: string;
465
+ }
466
+ export const KvReadSubkeysPathRequest = /*@__PURE__*/ S.suspend(() =>
467
+ S.Struct({
468
+ kv_mount_path: S.String.pipe(T.Label()),
469
+ path: S.String.pipe(T.Label()),
470
+ }).pipe(
471
+ T.Http({
472
+ method: "GET",
473
+ uri: "/{kv_mount_path}/subkeys/{path}",
474
+ code: 200,
475
+ }),
476
+ ),
477
+ ).annotate({
478
+ identifier: "KvReadSubkeysPathRequest",
479
+ }) as any as S.Schema<KvReadSubkeysPathRequest>;
480
+
481
+ export interface KvReadSubkeysPathResponse {}
482
+ export const KvReadSubkeysPathResponse = /*@__PURE__*/ S.suspend(() =>
483
+ S.Struct({}),
484
+ ).annotate({
485
+ identifier: "KvReadSubkeysPathResponse",
486
+ }) as any as S.Schema<KvReadSubkeysPathResponse>;
487
+
488
+ export interface KvReadSubkeysPathRequest2 {
489
+ /** Path that the backend was mounted at */
490
+ secret_mount_path: string;
491
+ /** Location of the secret. */
492
+ path: string;
493
+ }
494
+ export const KvReadSubkeysPathRequest2 = /*@__PURE__*/ S.suspend(() =>
495
+ S.Struct({
496
+ secret_mount_path: S.String.pipe(T.Label()),
497
+ path: S.String.pipe(T.Label()),
498
+ }).pipe(
499
+ T.Http({
500
+ method: "GET",
501
+ uri: "/{secret_mount_path}/subkeys/{path}",
502
+ code: 200,
503
+ }),
504
+ ),
505
+ ).annotate({
506
+ identifier: "KvReadSubkeysPathRequest2",
507
+ }) as any as S.Schema<KvReadSubkeysPathRequest2>;
508
+
509
+ export interface KvReadSubkeysPath2Response {}
510
+ export const KvReadSubkeysPath2Response = /*@__PURE__*/ S.suspend(() =>
511
+ S.Struct({}),
512
+ ).annotate({
513
+ identifier: "KvReadSubkeysPath2Response",
514
+ }) as any as S.Schema<KvReadSubkeysPath2Response>;
515
+
516
+ export type KvScanDetailedMetadataPathRequestList = "true";
517
+ export const KvScanDetailedMetadataPathRequestList = S.String;
518
+
519
+ export type KvScanDetailedMetadataPathRequestScan = "true";
520
+ export const KvScanDetailedMetadataPathRequestScan = S.String;
521
+
522
+ export interface KvScanDetailedMetadataPathRequest {
523
+ /** Path that the backend was mounted at */
524
+ kv_mount_path: string;
525
+ /** Location of the secret. */
526
+ path: string;
527
+ /** Must be set to `true` or else `scan` must be set to `true` */
528
+ list: KvScanDetailedMetadataPathRequestList | (string & {});
529
+ /** Must be set to `true` or else `list` must be set to `true` */
530
+ scan: KvScanDetailedMetadataPathRequestScan | (string & {});
531
+ }
532
+ export const KvScanDetailedMetadataPathRequest = /*@__PURE__*/ S.suspend(() =>
533
+ S.Struct({
534
+ kv_mount_path: S.String.pipe(T.Label()),
535
+ path: S.String.pipe(T.Label()),
536
+ list: KvScanDetailedMetadataPathRequestList.pipe(T.Query()),
537
+ scan: KvScanDetailedMetadataPathRequestScan.pipe(T.Query()),
538
+ }).pipe(
539
+ T.Http({
540
+ method: "GET",
541
+ uri: "/{kv_mount_path}/detailed-metadata/{path}",
542
+ code: 200,
543
+ }),
544
+ ),
545
+ ).annotate({
546
+ identifier: "KvScanDetailedMetadataPathRequest",
547
+ }) as any as S.Schema<KvScanDetailedMetadataPathRequest>;
548
+
549
+ export interface KvScanDetailedMetadataPathResponse {}
550
+ export const KvScanDetailedMetadataPathResponse = /*@__PURE__*/ S.suspend(() =>
551
+ S.Struct({}),
552
+ ).annotate({
553
+ identifier: "KvScanDetailedMetadataPathResponse",
554
+ }) as any as S.Schema<KvScanDetailedMetadataPathResponse>;
555
+
556
+ export type KvScanDetailedMetadataPathRequestList2 = "true";
557
+ export const KvScanDetailedMetadataPathRequestList2 = S.String;
558
+
559
+ export type KvScanDetailedMetadataPathRequestScan2 = "true";
560
+ export const KvScanDetailedMetadataPathRequestScan2 = S.String;
561
+
562
+ export interface KvScanDetailedMetadataPathRequest2 {
563
+ /** Path that the backend was mounted at */
564
+ secret_mount_path: string;
565
+ /** Location of the secret. */
566
+ path: string;
567
+ /** Must be set to `true` or else `scan` must be set to `true` */
568
+ list: KvScanDetailedMetadataPathRequestList2 | (string & {});
569
+ /** Must be set to `true` or else `list` must be set to `true` */
570
+ scan: KvScanDetailedMetadataPathRequestScan2 | (string & {});
571
+ }
572
+ export const KvScanDetailedMetadataPathRequest2 = /*@__PURE__*/ S.suspend(() =>
573
+ S.Struct({
574
+ secret_mount_path: S.String.pipe(T.Label()),
575
+ path: S.String.pipe(T.Label()),
576
+ list: KvScanDetailedMetadataPathRequestList2.pipe(T.Query()),
577
+ scan: KvScanDetailedMetadataPathRequestScan2.pipe(T.Query()),
578
+ }).pipe(
579
+ T.Http({
580
+ method: "GET",
581
+ uri: "/{secret_mount_path}/detailed-metadata/{path}",
582
+ code: 200,
583
+ }),
584
+ ),
585
+ ).annotate({
586
+ identifier: "KvScanDetailedMetadataPathRequest2",
587
+ }) as any as S.Schema<KvScanDetailedMetadataPathRequest2>;
588
+
589
+ export interface KvScanDetailedMetadataPath2Response {}
590
+ export const KvScanDetailedMetadataPath2Response = /*@__PURE__*/ S.suspend(() =>
591
+ S.Struct({}),
592
+ ).annotate({
593
+ identifier: "KvScanDetailedMetadataPath2Response",
594
+ }) as any as S.Schema<KvScanDetailedMetadataPath2Response>;
595
+
596
+ export interface KvWriteConfigRequest {
597
+ /** Path that the backend was mounted at */
598
+ kv_mount_path: string;
599
+ /** If true, the backend will require the cas parameter to be set for each write */
600
+ cas_required?: boolean;
601
+ /** If set, the length of time before a version is deleted. A negative duration disables the use of delete_version_after on all keys. A zero duration clears the current setting. Accepts a Go duration format string. */
602
+ delete_version_after?: number;
603
+ /** The number of versions to keep for each key. Defaults to 10 */
604
+ max_versions?: number;
605
+ /** If true, the backend will require the metadata_cas parameter to be set for each metadata update */
606
+ metadata_cas_required?: boolean;
607
+ }
608
+ export const KvWriteConfigRequest = /*@__PURE__*/ S.suspend(() =>
609
+ S.Struct({
610
+ kv_mount_path: S.String.pipe(T.Label()),
611
+ cas_required: S.optional(S.Boolean),
612
+ delete_version_after: S.optional(S.Number),
613
+ max_versions: S.optional(S.Number),
614
+ metadata_cas_required: S.optional(S.Boolean),
615
+ }).pipe(
616
+ T.Http({ method: "POST", uri: "/{kv_mount_path}/config", code: 200 }),
617
+ ),
618
+ ).annotate({
619
+ identifier: "KvWriteConfigRequest",
620
+ }) as any as S.Schema<KvWriteConfigRequest>;
621
+
622
+ export interface KvWriteConfigResponse {}
623
+ export const KvWriteConfigResponse = /*@__PURE__*/ S.suspend(() =>
624
+ S.Struct({}),
625
+ ).annotate({
626
+ identifier: "KvWriteConfigResponse",
627
+ }) as any as S.Schema<KvWriteConfigResponse>;
628
+
629
+ export interface KvWriteConfigRequest2 {
630
+ /** Path that the backend was mounted at */
631
+ secret_mount_path: string;
632
+ /** If true, the backend will require the cas parameter to be set for each write */
633
+ cas_required?: boolean;
634
+ /** If set, the length of time before a version is deleted. A negative duration disables the use of delete_version_after on all keys. A zero duration clears the current setting. Accepts a Go duration format string. */
635
+ delete_version_after?: number;
636
+ /** The number of versions to keep for each key. Defaults to 10 */
637
+ max_versions?: number;
638
+ /** If true, the backend will require the metadata_cas parameter to be set for each metadata update */
639
+ metadata_cas_required?: boolean;
640
+ }
641
+ export const KvWriteConfigRequest2 = /*@__PURE__*/ S.suspend(() =>
642
+ S.Struct({
643
+ secret_mount_path: S.String.pipe(T.Label()),
644
+ cas_required: S.optional(S.Boolean),
645
+ delete_version_after: S.optional(S.Number),
646
+ max_versions: S.optional(S.Number),
647
+ metadata_cas_required: S.optional(S.Boolean),
648
+ }).pipe(
649
+ T.Http({ method: "POST", uri: "/{secret_mount_path}/config", code: 200 }),
650
+ ),
651
+ ).annotate({
652
+ identifier: "KvWriteConfigRequest2",
653
+ }) as any as S.Schema<KvWriteConfigRequest2>;
654
+
655
+ export interface KvWriteConfig2Response {}
656
+ export const KvWriteConfig2Response = /*@__PURE__*/ S.suspend(() =>
657
+ S.Struct({}),
658
+ ).annotate({
659
+ identifier: "KvWriteConfig2Response",
660
+ }) as any as S.Schema<KvWriteConfig2Response>;
661
+
662
+ export interface KvWriteDataPathRequest {
663
+ /** Path that the backend was mounted at */
664
+ kv_mount_path: string;
665
+ /** Location of the secret. */
666
+ path: string;
667
+ /** The contents of the data map will be stored and returned on read. */
668
+ data?: unknown;
669
+ /** Options for writing a KV entry. Set the "cas" value to use a Check-And-Set operation. If not set the write will be allowed. If set to 0 a write will only be allowed if the key doesn’t exist. If the index is non-zero the write will only be allowed if the key’s current version matches the version specified in the cas parameter. */
670
+ options?: unknown;
671
+ /** If provided during a read, the value at the version number will be returned */
672
+ version?: number;
673
+ }
674
+ export const KvWriteDataPathRequest = /*@__PURE__*/ S.suspend(() =>
675
+ S.Struct({
676
+ kv_mount_path: S.String.pipe(T.Label()),
677
+ path: S.String.pipe(T.Label()),
678
+ data: S.optional(S.Unknown),
679
+ options: S.optional(S.Unknown),
680
+ version: S.optional(S.Number),
681
+ }).pipe(
682
+ T.Http({ method: "POST", uri: "/{kv_mount_path}/data/{path}", code: 200 }),
683
+ ),
684
+ ).annotate({
685
+ identifier: "KvWriteDataPathRequest",
686
+ }) as any as S.Schema<KvWriteDataPathRequest>;
687
+
688
+ export interface KvWriteDataPathResponse {}
689
+ export const KvWriteDataPathResponse = /*@__PURE__*/ S.suspend(() =>
690
+ S.Struct({}),
691
+ ).annotate({
692
+ identifier: "KvWriteDataPathResponse",
693
+ }) as any as S.Schema<KvWriteDataPathResponse>;
694
+
695
+ export interface KvWriteDataPathRequest2 {
696
+ /** Path that the backend was mounted at */
697
+ secret_mount_path: string;
698
+ /** Location of the secret. */
699
+ path: string;
700
+ /** The contents of the data map will be stored and returned on read. */
701
+ data?: unknown;
702
+ /** Options for writing a KV entry. Set the "cas" value to use a Check-And-Set operation. If not set the write will be allowed. If set to 0 a write will only be allowed if the key doesn’t exist. If the index is non-zero the write will only be allowed if the key’s current version matches the version specified in the cas parameter. */
703
+ options?: unknown;
704
+ /** If provided during a read, the value at the version number will be returned */
705
+ version?: number;
706
+ }
707
+ export const KvWriteDataPathRequest2 = /*@__PURE__*/ S.suspend(() =>
708
+ S.Struct({
709
+ secret_mount_path: S.String.pipe(T.Label()),
710
+ path: S.String.pipe(T.Label()),
711
+ data: S.optional(S.Unknown),
712
+ options: S.optional(S.Unknown),
713
+ version: S.optional(S.Number),
714
+ }).pipe(
715
+ T.Http({
716
+ method: "POST",
717
+ uri: "/{secret_mount_path}/data/{path}",
718
+ code: 200,
719
+ }),
720
+ ),
721
+ ).annotate({
722
+ identifier: "KvWriteDataPathRequest2",
723
+ }) as any as S.Schema<KvWriteDataPathRequest2>;
724
+
725
+ export interface KvWriteDataPath2Response {}
726
+ export const KvWriteDataPath2Response = /*@__PURE__*/ S.suspend(() =>
727
+ S.Struct({}),
728
+ ).annotate({
729
+ identifier: "KvWriteDataPath2Response",
730
+ }) as any as S.Schema<KvWriteDataPath2Response>;
731
+
732
+ /** The versions to be archived. The versioned data will not be deleted, but it will no longer be returned in normal get requests. */
733
+ export type KvWriteDeletePathRequestVersionsList = Array<number>;
734
+ export const KvWriteDeletePathRequestVersionsList = /*@__PURE__*/ S.Array(
735
+ S.Number,
736
+ ) as any as S.Schema<KvWriteDeletePathRequestVersionsList>;
737
+
738
+ export interface KvWriteDeletePathRequest {
739
+ /** Path that the backend was mounted at */
740
+ kv_mount_path: string;
741
+ /** Location of the secret. */
742
+ path: string;
743
+ /** The versions to be archived. The versioned data will not be deleted, but it will no longer be returned in normal get requests. */
744
+ versions?: KvWriteDeletePathRequestVersionsList;
745
+ }
746
+ export const KvWriteDeletePathRequest = /*@__PURE__*/ S.suspend(() =>
747
+ S.Struct({
748
+ kv_mount_path: S.String.pipe(T.Label()),
749
+ path: S.String.pipe(T.Label()),
750
+ versions: S.optional(KvWriteDeletePathRequestVersionsList),
751
+ }).pipe(
752
+ T.Http({
753
+ method: "POST",
754
+ uri: "/{kv_mount_path}/delete/{path}",
755
+ code: 200,
756
+ }),
757
+ ),
758
+ ).annotate({
759
+ identifier: "KvWriteDeletePathRequest",
760
+ }) as any as S.Schema<KvWriteDeletePathRequest>;
761
+
762
+ export interface KvWriteDeletePathResponse {}
763
+ export const KvWriteDeletePathResponse = /*@__PURE__*/ S.suspend(() =>
764
+ S.Struct({}),
765
+ ).annotate({
766
+ identifier: "KvWriteDeletePathResponse",
767
+ }) as any as S.Schema<KvWriteDeletePathResponse>;
768
+
769
+ /** The versions to be archived. The versioned data will not be deleted, but it will no longer be returned in normal get requests. */
770
+ export type KvWriteDeletePathRequestVersionsList2 = Array<number>;
771
+ export const KvWriteDeletePathRequestVersionsList2 = /*@__PURE__*/ S.Array(
772
+ S.Number,
773
+ ) as any as S.Schema<KvWriteDeletePathRequestVersionsList2>;
774
+
775
+ export interface KvWriteDeletePathRequest2 {
776
+ /** Path that the backend was mounted at */
777
+ secret_mount_path: string;
778
+ /** Location of the secret. */
779
+ path: string;
780
+ /** The versions to be archived. The versioned data will not be deleted, but it will no longer be returned in normal get requests. */
781
+ versions?: KvWriteDeletePathRequestVersionsList2;
782
+ }
783
+ export const KvWriteDeletePathRequest2 = /*@__PURE__*/ S.suspend(() =>
784
+ S.Struct({
785
+ secret_mount_path: S.String.pipe(T.Label()),
786
+ path: S.String.pipe(T.Label()),
787
+ versions: S.optional(KvWriteDeletePathRequestVersionsList2),
788
+ }).pipe(
789
+ T.Http({
790
+ method: "POST",
791
+ uri: "/{secret_mount_path}/delete/{path}",
792
+ code: 200,
793
+ }),
794
+ ),
795
+ ).annotate({
796
+ identifier: "KvWriteDeletePathRequest2",
797
+ }) as any as S.Schema<KvWriteDeletePathRequest2>;
798
+
799
+ export interface KvWriteDeletePath2Response {}
800
+ export const KvWriteDeletePath2Response = /*@__PURE__*/ S.suspend(() =>
801
+ S.Struct({}),
802
+ ).annotate({
803
+ identifier: "KvWriteDeletePath2Response",
804
+ }) as any as S.Schema<KvWriteDeletePath2Response>;
805
+
806
+ /** The versions to destroy. Their data will be permanently deleted. */
807
+ export type KvWriteDestroyPathRequestVersionsList = Array<number>;
808
+ export const KvWriteDestroyPathRequestVersionsList = /*@__PURE__*/ S.Array(
809
+ S.Number,
810
+ ) as any as S.Schema<KvWriteDestroyPathRequestVersionsList>;
811
+
812
+ export interface KvWriteDestroyPathRequest {
813
+ /** Path that the backend was mounted at */
814
+ kv_mount_path: string;
815
+ /** Location of the secret. */
816
+ path: string;
817
+ /** The versions to destroy. Their data will be permanently deleted. */
818
+ versions?: KvWriteDestroyPathRequestVersionsList;
819
+ }
820
+ export const KvWriteDestroyPathRequest = /*@__PURE__*/ S.suspend(() =>
821
+ S.Struct({
822
+ kv_mount_path: S.String.pipe(T.Label()),
823
+ path: S.String.pipe(T.Label()),
824
+ versions: S.optional(KvWriteDestroyPathRequestVersionsList),
825
+ }).pipe(
826
+ T.Http({
827
+ method: "POST",
828
+ uri: "/{kv_mount_path}/destroy/{path}",
829
+ code: 200,
830
+ }),
831
+ ),
832
+ ).annotate({
833
+ identifier: "KvWriteDestroyPathRequest",
834
+ }) as any as S.Schema<KvWriteDestroyPathRequest>;
835
+
836
+ export interface KvWriteDestroyPathResponse {}
837
+ export const KvWriteDestroyPathResponse = /*@__PURE__*/ S.suspend(() =>
838
+ S.Struct({}),
839
+ ).annotate({
840
+ identifier: "KvWriteDestroyPathResponse",
841
+ }) as any as S.Schema<KvWriteDestroyPathResponse>;
842
+
843
+ /** The versions to destroy. Their data will be permanently deleted. */
844
+ export type KvWriteDestroyPathRequestVersionsList2 = Array<number>;
845
+ export const KvWriteDestroyPathRequestVersionsList2 = /*@__PURE__*/ S.Array(
846
+ S.Number,
847
+ ) as any as S.Schema<KvWriteDestroyPathRequestVersionsList2>;
848
+
849
+ export interface KvWriteDestroyPathRequest2 {
850
+ /** Path that the backend was mounted at */
851
+ secret_mount_path: string;
852
+ /** Location of the secret. */
853
+ path: string;
854
+ /** The versions to destroy. Their data will be permanently deleted. */
855
+ versions?: KvWriteDestroyPathRequestVersionsList2;
856
+ }
857
+ export const KvWriteDestroyPathRequest2 = /*@__PURE__*/ S.suspend(() =>
858
+ S.Struct({
859
+ secret_mount_path: S.String.pipe(T.Label()),
860
+ path: S.String.pipe(T.Label()),
861
+ versions: S.optional(KvWriteDestroyPathRequestVersionsList2),
862
+ }).pipe(
863
+ T.Http({
864
+ method: "POST",
865
+ uri: "/{secret_mount_path}/destroy/{path}",
866
+ code: 200,
867
+ }),
868
+ ),
869
+ ).annotate({
870
+ identifier: "KvWriteDestroyPathRequest2",
871
+ }) as any as S.Schema<KvWriteDestroyPathRequest2>;
872
+
873
+ export interface KvWriteDestroyPath2Response {}
874
+ export const KvWriteDestroyPath2Response = /*@__PURE__*/ S.suspend(() =>
875
+ S.Struct({}),
876
+ ).annotate({
877
+ identifier: "KvWriteDestroyPath2Response",
878
+ }) as any as S.Schema<KvWriteDestroyPath2Response>;
879
+
880
+ export interface KvWriteMetadataPathRequest {
881
+ /** Path that the backend was mounted at */
882
+ kv_mount_path: string;
883
+ /** Location of the secret. */
884
+ path: string;
885
+ /** Optional entry to list begin listing after, not required to exist. Only used for listing. */
886
+ after?: string;
887
+ /** If true the key will require the cas parameter to be set on all write requests. If false, the backend’s configuration will be used. */
888
+ cas_required?: boolean;
889
+ /** User-provided key-value pairs that are used to describe arbitrary and version-agnostic information about a secret. */
890
+ custom_metadata?: unknown;
891
+ /** The length of time before a version is deleted. If not set, the backend's configured delete_version_after is used. Cannot be greater than the backend's delete_version_after. A zero duration clears the current setting. A negative duration will cause an error. */
892
+ delete_version_after?: number;
893
+ /** Optional number of entries to return; defaults to all entries. Only used for listing. */
894
+ limit?: number;
895
+ /** The number of versions to keep. If not set, the backend’s configured max version is used. */
896
+ max_versions?: number;
897
+ /** Check-and-set parameter for metadata updates. Must match the current metadata version for the update to succeed. Set to 0 for initial metadata creation. */
898
+ metadata_cas?: number;
899
+ /** If true the key will require the cas parameter to be set on all metadata update requests. If false, the backend's configuration will be used. */
900
+ metadata_cas_required?: boolean;
901
+ }
902
+ export const KvWriteMetadataPathRequest = /*@__PURE__*/ S.suspend(() =>
903
+ S.Struct({
904
+ kv_mount_path: S.String.pipe(T.Label()),
905
+ path: S.String.pipe(T.Label()),
906
+ after: S.optional(S.String),
907
+ cas_required: S.optional(S.Boolean),
908
+ custom_metadata: S.optional(S.Unknown),
909
+ delete_version_after: S.optional(S.Number),
910
+ limit: S.optional(S.Number),
911
+ max_versions: S.optional(S.Number),
912
+ metadata_cas: S.optional(S.Number),
913
+ metadata_cas_required: S.optional(S.Boolean),
914
+ }).pipe(
915
+ T.Http({
916
+ method: "POST",
917
+ uri: "/{kv_mount_path}/metadata/{path}",
918
+ code: 200,
919
+ }),
920
+ ),
921
+ ).annotate({
922
+ identifier: "KvWriteMetadataPathRequest",
923
+ }) as any as S.Schema<KvWriteMetadataPathRequest>;
924
+
925
+ export interface KvWriteMetadataPathResponse {}
926
+ export const KvWriteMetadataPathResponse = /*@__PURE__*/ S.suspend(() =>
927
+ S.Struct({}),
928
+ ).annotate({
929
+ identifier: "KvWriteMetadataPathResponse",
930
+ }) as any as S.Schema<KvWriteMetadataPathResponse>;
931
+
932
+ export interface KvWriteMetadataPathRequest2 {
933
+ /** Path that the backend was mounted at */
934
+ secret_mount_path: string;
935
+ /** Location of the secret. */
936
+ path: string;
937
+ /** Optional entry to list begin listing after, not required to exist. Only used for listing. */
938
+ after?: string;
939
+ /** If true the key will require the cas parameter to be set on all write requests. If false, the backend’s configuration will be used. */
940
+ cas_required?: boolean;
941
+ /** User-provided key-value pairs that are used to describe arbitrary and version-agnostic information about a secret. */
942
+ custom_metadata?: unknown;
943
+ /** The length of time before a version is deleted. If not set, the backend's configured delete_version_after is used. Cannot be greater than the backend's delete_version_after. A zero duration clears the current setting. A negative duration will cause an error. */
944
+ delete_version_after?: number;
945
+ /** Optional number of entries to return; defaults to all entries. Only used for listing. */
946
+ limit?: number;
947
+ /** The number of versions to keep. If not set, the backend’s configured max version is used. */
948
+ max_versions?: number;
949
+ /** Check-and-set parameter for metadata updates. Must match the current metadata version for the update to succeed. Set to 0 for initial metadata creation. */
950
+ metadata_cas?: number;
951
+ /** If true the key will require the cas parameter to be set on all metadata update requests. If false, the backend's configuration will be used. */
952
+ metadata_cas_required?: boolean;
953
+ }
954
+ export const KvWriteMetadataPathRequest2 = /*@__PURE__*/ S.suspend(() =>
955
+ S.Struct({
956
+ secret_mount_path: S.String.pipe(T.Label()),
957
+ path: S.String.pipe(T.Label()),
958
+ after: S.optional(S.String),
959
+ cas_required: S.optional(S.Boolean),
960
+ custom_metadata: S.optional(S.Unknown),
961
+ delete_version_after: S.optional(S.Number),
962
+ limit: S.optional(S.Number),
963
+ max_versions: S.optional(S.Number),
964
+ metadata_cas: S.optional(S.Number),
965
+ metadata_cas_required: S.optional(S.Boolean),
966
+ }).pipe(
967
+ T.Http({
968
+ method: "POST",
969
+ uri: "/{secret_mount_path}/metadata/{path}",
970
+ code: 200,
971
+ }),
972
+ ),
973
+ ).annotate({
974
+ identifier: "KvWriteMetadataPathRequest2",
975
+ }) as any as S.Schema<KvWriteMetadataPathRequest2>;
976
+
977
+ export interface KvWriteMetadataPath2Response {}
978
+ export const KvWriteMetadataPath2Response = /*@__PURE__*/ S.suspend(() =>
979
+ S.Struct({}),
980
+ ).annotate({
981
+ identifier: "KvWriteMetadataPath2Response",
982
+ }) as any as S.Schema<KvWriteMetadataPath2Response>;
983
+
984
+ /** The versions to unarchive. The versions will be restored and their data will be returned on normal get requests. */
985
+ export type KvWriteUndeletePathRequestVersionsList = Array<number>;
986
+ export const KvWriteUndeletePathRequestVersionsList = /*@__PURE__*/ S.Array(
987
+ S.Number,
988
+ ) as any as S.Schema<KvWriteUndeletePathRequestVersionsList>;
989
+
990
+ export interface KvWriteUndeletePathRequest {
991
+ /** Path that the backend was mounted at */
992
+ kv_mount_path: string;
993
+ /** Location of the secret. */
994
+ path: string;
995
+ /** The versions to unarchive. The versions will be restored and their data will be returned on normal get requests. */
996
+ versions?: KvWriteUndeletePathRequestVersionsList;
997
+ }
998
+ export const KvWriteUndeletePathRequest = /*@__PURE__*/ S.suspend(() =>
999
+ S.Struct({
1000
+ kv_mount_path: S.String.pipe(T.Label()),
1001
+ path: S.String.pipe(T.Label()),
1002
+ versions: S.optional(KvWriteUndeletePathRequestVersionsList),
1003
+ }).pipe(
1004
+ T.Http({
1005
+ method: "POST",
1006
+ uri: "/{kv_mount_path}/undelete/{path}",
1007
+ code: 200,
1008
+ }),
1009
+ ),
1010
+ ).annotate({
1011
+ identifier: "KvWriteUndeletePathRequest",
1012
+ }) as any as S.Schema<KvWriteUndeletePathRequest>;
1013
+
1014
+ export interface KvWriteUndeletePathResponse {}
1015
+ export const KvWriteUndeletePathResponse = /*@__PURE__*/ S.suspend(() =>
1016
+ S.Struct({}),
1017
+ ).annotate({
1018
+ identifier: "KvWriteUndeletePathResponse",
1019
+ }) as any as S.Schema<KvWriteUndeletePathResponse>;
1020
+
1021
+ /** The versions to unarchive. The versions will be restored and their data will be returned on normal get requests. */
1022
+ export type KvWriteUndeletePathRequestVersionsList2 = Array<number>;
1023
+ export const KvWriteUndeletePathRequestVersionsList2 = /*@__PURE__*/ S.Array(
1024
+ S.Number,
1025
+ ) as any as S.Schema<KvWriteUndeletePathRequestVersionsList2>;
1026
+
1027
+ export interface KvWriteUndeletePathRequest2 {
1028
+ /** Path that the backend was mounted at */
1029
+ secret_mount_path: string;
1030
+ /** Location of the secret. */
1031
+ path: string;
1032
+ /** The versions to unarchive. The versions will be restored and their data will be returned on normal get requests. */
1033
+ versions?: KvWriteUndeletePathRequestVersionsList2;
1034
+ }
1035
+ export const KvWriteUndeletePathRequest2 = /*@__PURE__*/ S.suspend(() =>
1036
+ S.Struct({
1037
+ secret_mount_path: S.String.pipe(T.Label()),
1038
+ path: S.String.pipe(T.Label()),
1039
+ versions: S.optional(KvWriteUndeletePathRequestVersionsList2),
1040
+ }).pipe(
1041
+ T.Http({
1042
+ method: "POST",
1043
+ uri: "/{secret_mount_path}/undelete/{path}",
1044
+ code: 200,
1045
+ }),
1046
+ ),
1047
+ ).annotate({
1048
+ identifier: "KvWriteUndeletePathRequest2",
1049
+ }) as any as S.Schema<KvWriteUndeletePathRequest2>;
1050
+
1051
+ export interface KvWriteUndeletePath2Response {}
1052
+ export const KvWriteUndeletePath2Response = /*@__PURE__*/ S.suspend(() =>
1053
+ S.Struct({}),
1054
+ ).annotate({
1055
+ identifier: "KvWriteUndeletePath2Response",
1056
+ }) as any as S.Schema<KvWriteUndeletePath2Response>;
1057
+
1058
+ export type KvDeleteDataPathError = OpenBaoOpError;
1059
+ export const kvDeleteDataPath: API.OperationMethod<
1060
+ KvDeleteDataPathRequest,
1061
+ KvDeleteDataPathResponse,
1062
+ KvDeleteDataPathError,
1063
+ OpenBaoOpContext
1064
+ > = /*@__PURE__*/ API.make(() => ({
1065
+ input: KvDeleteDataPathRequest,
1066
+ output: KvDeleteDataPathResponse,
1067
+ errors: [],
1068
+ protocol: OpenBaoProtocol,
1069
+ retry: Retry.Retry,
1070
+ }));
1071
+
1072
+ export type KvDeleteDataPath2Error = OpenBaoOpError;
1073
+ export const kvDeleteDataPath2: API.OperationMethod<
1074
+ KvDeleteDataPathRequest2,
1075
+ KvDeleteDataPath2Response,
1076
+ KvDeleteDataPath2Error,
1077
+ OpenBaoOpContext
1078
+ > = /*@__PURE__*/ API.make(() => ({
1079
+ input: KvDeleteDataPathRequest2,
1080
+ output: KvDeleteDataPath2Response,
1081
+ errors: [],
1082
+ protocol: OpenBaoProtocol,
1083
+ retry: Retry.Retry,
1084
+ }));
1085
+
1086
+ export type KvDeleteMetadataPathError = OpenBaoOpError;
1087
+ export const kvDeleteMetadataPath: API.OperationMethod<
1088
+ KvDeleteMetadataPathRequest,
1089
+ KvDeleteMetadataPathResponse,
1090
+ KvDeleteMetadataPathError,
1091
+ OpenBaoOpContext
1092
+ > = /*@__PURE__*/ API.make(() => ({
1093
+ input: KvDeleteMetadataPathRequest,
1094
+ output: KvDeleteMetadataPathResponse,
1095
+ errors: [],
1096
+ protocol: OpenBaoProtocol,
1097
+ retry: Retry.Retry,
1098
+ }));
1099
+
1100
+ export type KvDeleteMetadataPath2Error = OpenBaoOpError;
1101
+ export const kvDeleteMetadataPath2: API.OperationMethod<
1102
+ KvDeleteMetadataPathRequest2,
1103
+ KvDeleteMetadataPath2Response,
1104
+ KvDeleteMetadataPath2Error,
1105
+ OpenBaoOpContext
1106
+ > = /*@__PURE__*/ API.make(() => ({
1107
+ input: KvDeleteMetadataPathRequest2,
1108
+ output: KvDeleteMetadataPath2Response,
1109
+ errors: [],
1110
+ protocol: OpenBaoProtocol,
1111
+ retry: Retry.Retry,
1112
+ }));
1113
+
1114
+ export type KvPatchDataPathError = OpenBaoOpError;
1115
+ export const kvPatchDataPath: API.OperationMethod<
1116
+ KvPatchDataPathRequest,
1117
+ KvPatchDataPathResponse,
1118
+ KvPatchDataPathError,
1119
+ OpenBaoOpContext
1120
+ > = /*@__PURE__*/ API.make(() => ({
1121
+ input: KvPatchDataPathRequest,
1122
+ output: KvPatchDataPathResponse,
1123
+ errors: [],
1124
+ protocol: OpenBaoProtocol,
1125
+ retry: Retry.Retry,
1126
+ }));
1127
+
1128
+ export type KvPatchDataPath2Error = OpenBaoOpError;
1129
+ export const kvPatchDataPath2: API.OperationMethod<
1130
+ KvPatchDataPathRequest2,
1131
+ KvPatchDataPath2Response,
1132
+ KvPatchDataPath2Error,
1133
+ OpenBaoOpContext
1134
+ > = /*@__PURE__*/ API.make(() => ({
1135
+ input: KvPatchDataPathRequest2,
1136
+ output: KvPatchDataPath2Response,
1137
+ errors: [],
1138
+ protocol: OpenBaoProtocol,
1139
+ retry: Retry.Retry,
1140
+ }));
1141
+
1142
+ export type KvPatchMetadataPathError = OpenBaoOpError;
1143
+ export const kvPatchMetadataPath: API.OperationMethod<
1144
+ KvPatchMetadataPathRequest,
1145
+ KvPatchMetadataPathResponse,
1146
+ KvPatchMetadataPathError,
1147
+ OpenBaoOpContext
1148
+ > = /*@__PURE__*/ API.make(() => ({
1149
+ input: KvPatchMetadataPathRequest,
1150
+ output: KvPatchMetadataPathResponse,
1151
+ errors: [],
1152
+ protocol: OpenBaoProtocol,
1153
+ retry: Retry.Retry,
1154
+ }));
1155
+
1156
+ export type KvPatchMetadataPath2Error = OpenBaoOpError;
1157
+ export const kvPatchMetadataPath2: API.OperationMethod<
1158
+ KvPatchMetadataPathRequest2,
1159
+ KvPatchMetadataPath2Response,
1160
+ KvPatchMetadataPath2Error,
1161
+ OpenBaoOpContext
1162
+ > = /*@__PURE__*/ API.make(() => ({
1163
+ input: KvPatchMetadataPathRequest2,
1164
+ output: KvPatchMetadataPath2Response,
1165
+ errors: [],
1166
+ protocol: OpenBaoProtocol,
1167
+ retry: Retry.Retry,
1168
+ }));
1169
+
1170
+ export type KvReadConfigError = OpenBaoOpError;
1171
+ /** Read the backend level settings. */
1172
+ export const kvReadConfig: API.OperationMethod<
1173
+ KvReadConfigRequest,
1174
+ KvReadConfigResponse,
1175
+ KvReadConfigError,
1176
+ OpenBaoOpContext
1177
+ > = /*@__PURE__*/ API.make(() => ({
1178
+ input: KvReadConfigRequest,
1179
+ output: KvReadConfigResponse,
1180
+ errors: [],
1181
+ protocol: OpenBaoProtocol,
1182
+ retry: Retry.Retry,
1183
+ }));
1184
+
1185
+ export type KvReadConfig2Error = OpenBaoOpError;
1186
+ /** Read the backend level settings. */
1187
+ export const kvReadConfig2: API.OperationMethod<
1188
+ KvReadConfigRequest2,
1189
+ KvReadConfig2Response,
1190
+ KvReadConfig2Error,
1191
+ OpenBaoOpContext
1192
+ > = /*@__PURE__*/ API.make(() => ({
1193
+ input: KvReadConfigRequest2,
1194
+ output: KvReadConfig2Response,
1195
+ errors: [],
1196
+ protocol: OpenBaoProtocol,
1197
+ retry: Retry.Retry,
1198
+ }));
1199
+
1200
+ export type KvReadDataPathError = OpenBaoOpError;
1201
+ export const kvReadDataPath: API.OperationMethod<
1202
+ KvReadDataPathRequest,
1203
+ KvReadDataPathResponse,
1204
+ KvReadDataPathError,
1205
+ OpenBaoOpContext
1206
+ > = /*@__PURE__*/ API.make(() => ({
1207
+ input: KvReadDataPathRequest,
1208
+ output: KvReadDataPathResponse,
1209
+ errors: [],
1210
+ protocol: OpenBaoProtocol,
1211
+ retry: Retry.Retry,
1212
+ }));
1213
+
1214
+ export type KvReadDataPath2Error = OpenBaoOpError;
1215
+ export const kvReadDataPath2: API.OperationMethod<
1216
+ KvReadDataPathRequest2,
1217
+ KvReadDataPath2Response,
1218
+ KvReadDataPath2Error,
1219
+ OpenBaoOpContext
1220
+ > = /*@__PURE__*/ API.make(() => ({
1221
+ input: KvReadDataPathRequest2,
1222
+ output: KvReadDataPath2Response,
1223
+ errors: [],
1224
+ protocol: OpenBaoProtocol,
1225
+ retry: Retry.Retry,
1226
+ }));
1227
+
1228
+ export type KvReadMetadataPathError = OpenBaoOpError;
1229
+ export const kvReadMetadataPath: API.OperationMethod<
1230
+ KvReadMetadataPathRequest,
1231
+ KvReadMetadataPathResponse,
1232
+ KvReadMetadataPathError,
1233
+ OpenBaoOpContext
1234
+ > = /*@__PURE__*/ API.make(() => ({
1235
+ input: KvReadMetadataPathRequest,
1236
+ output: KvReadMetadataPathResponse,
1237
+ errors: [],
1238
+ protocol: OpenBaoProtocol,
1239
+ retry: Retry.Retry,
1240
+ }));
1241
+
1242
+ export type KvReadMetadataPath2Error = OpenBaoOpError;
1243
+ export const kvReadMetadataPath2: API.OperationMethod<
1244
+ KvReadMetadataPathRequest2,
1245
+ KvReadMetadataPath2Response,
1246
+ KvReadMetadataPath2Error,
1247
+ OpenBaoOpContext
1248
+ > = /*@__PURE__*/ API.make(() => ({
1249
+ input: KvReadMetadataPathRequest2,
1250
+ output: KvReadMetadataPath2Response,
1251
+ errors: [],
1252
+ protocol: OpenBaoProtocol,
1253
+ retry: Retry.Retry,
1254
+ }));
1255
+
1256
+ export type KvReadSubkeysPathError = OpenBaoOpError;
1257
+ export const kvReadSubkeysPath: API.OperationMethod<
1258
+ KvReadSubkeysPathRequest,
1259
+ KvReadSubkeysPathResponse,
1260
+ KvReadSubkeysPathError,
1261
+ OpenBaoOpContext
1262
+ > = /*@__PURE__*/ API.make(() => ({
1263
+ input: KvReadSubkeysPathRequest,
1264
+ output: KvReadSubkeysPathResponse,
1265
+ errors: [],
1266
+ protocol: OpenBaoProtocol,
1267
+ retry: Retry.Retry,
1268
+ }));
1269
+
1270
+ export type KvReadSubkeysPath2Error = OpenBaoOpError;
1271
+ export const kvReadSubkeysPath2: API.OperationMethod<
1272
+ KvReadSubkeysPathRequest2,
1273
+ KvReadSubkeysPath2Response,
1274
+ KvReadSubkeysPath2Error,
1275
+ OpenBaoOpContext
1276
+ > = /*@__PURE__*/ API.make(() => ({
1277
+ input: KvReadSubkeysPathRequest2,
1278
+ output: KvReadSubkeysPath2Response,
1279
+ errors: [],
1280
+ protocol: OpenBaoProtocol,
1281
+ retry: Retry.Retry,
1282
+ }));
1283
+
1284
+ export type KvScanDetailedMetadataPathError = OpenBaoOpError;
1285
+ export const kvScanDetailedMetadataPath: API.OperationMethod<
1286
+ KvScanDetailedMetadataPathRequest,
1287
+ KvScanDetailedMetadataPathResponse,
1288
+ KvScanDetailedMetadataPathError,
1289
+ OpenBaoOpContext
1290
+ > = /*@__PURE__*/ API.make(() => ({
1291
+ input: KvScanDetailedMetadataPathRequest,
1292
+ output: KvScanDetailedMetadataPathResponse,
1293
+ errors: [],
1294
+ protocol: OpenBaoProtocol,
1295
+ retry: Retry.Retry,
1296
+ }));
1297
+
1298
+ export type KvScanDetailedMetadataPath2Error = OpenBaoOpError;
1299
+ export const kvScanDetailedMetadataPath2: API.OperationMethod<
1300
+ KvScanDetailedMetadataPathRequest2,
1301
+ KvScanDetailedMetadataPath2Response,
1302
+ KvScanDetailedMetadataPath2Error,
1303
+ OpenBaoOpContext
1304
+ > = /*@__PURE__*/ API.make(() => ({
1305
+ input: KvScanDetailedMetadataPathRequest2,
1306
+ output: KvScanDetailedMetadataPath2Response,
1307
+ errors: [],
1308
+ protocol: OpenBaoProtocol,
1309
+ retry: Retry.Retry,
1310
+ }));
1311
+
1312
+ export type KvWriteConfigError = OpenBaoOpError;
1313
+ /** Configure backend level settings that are applied to every key in the key-value store. */
1314
+ export const kvWriteConfig: API.OperationMethod<
1315
+ KvWriteConfigRequest,
1316
+ KvWriteConfigResponse,
1317
+ KvWriteConfigError,
1318
+ OpenBaoOpContext
1319
+ > = /*@__PURE__*/ API.make(() => ({
1320
+ input: KvWriteConfigRequest,
1321
+ output: KvWriteConfigResponse,
1322
+ errors: [],
1323
+ protocol: OpenBaoProtocol,
1324
+ retry: Retry.Retry,
1325
+ }));
1326
+
1327
+ export type KvWriteConfig2Error = OpenBaoOpError;
1328
+ /** Configure backend level settings that are applied to every key in the key-value store. */
1329
+ export const kvWriteConfig2: API.OperationMethod<
1330
+ KvWriteConfigRequest2,
1331
+ KvWriteConfig2Response,
1332
+ KvWriteConfig2Error,
1333
+ OpenBaoOpContext
1334
+ > = /*@__PURE__*/ API.make(() => ({
1335
+ input: KvWriteConfigRequest2,
1336
+ output: KvWriteConfig2Response,
1337
+ errors: [],
1338
+ protocol: OpenBaoProtocol,
1339
+ retry: Retry.Retry,
1340
+ }));
1341
+
1342
+ export type KvWriteDataPathError = OpenBaoOpError;
1343
+ export const kvWriteDataPath: API.OperationMethod<
1344
+ KvWriteDataPathRequest,
1345
+ KvWriteDataPathResponse,
1346
+ KvWriteDataPathError,
1347
+ OpenBaoOpContext
1348
+ > = /*@__PURE__*/ API.make(() => ({
1349
+ input: KvWriteDataPathRequest,
1350
+ output: KvWriteDataPathResponse,
1351
+ errors: [],
1352
+ protocol: OpenBaoProtocol,
1353
+ retry: Retry.Retry,
1354
+ }));
1355
+
1356
+ export type KvWriteDataPath2Error = OpenBaoOpError;
1357
+ export const kvWriteDataPath2: API.OperationMethod<
1358
+ KvWriteDataPathRequest2,
1359
+ KvWriteDataPath2Response,
1360
+ KvWriteDataPath2Error,
1361
+ OpenBaoOpContext
1362
+ > = /*@__PURE__*/ API.make(() => ({
1363
+ input: KvWriteDataPathRequest2,
1364
+ output: KvWriteDataPath2Response,
1365
+ errors: [],
1366
+ protocol: OpenBaoProtocol,
1367
+ retry: Retry.Retry,
1368
+ }));
1369
+
1370
+ export type KvWriteDeletePathError = OpenBaoOpError;
1371
+ export const kvWriteDeletePath: API.OperationMethod<
1372
+ KvWriteDeletePathRequest,
1373
+ KvWriteDeletePathResponse,
1374
+ KvWriteDeletePathError,
1375
+ OpenBaoOpContext
1376
+ > = /*@__PURE__*/ API.make(() => ({
1377
+ input: KvWriteDeletePathRequest,
1378
+ output: KvWriteDeletePathResponse,
1379
+ errors: [],
1380
+ protocol: OpenBaoProtocol,
1381
+ retry: Retry.Retry,
1382
+ }));
1383
+
1384
+ export type KvWriteDeletePath2Error = OpenBaoOpError;
1385
+ export const kvWriteDeletePath2: API.OperationMethod<
1386
+ KvWriteDeletePathRequest2,
1387
+ KvWriteDeletePath2Response,
1388
+ KvWriteDeletePath2Error,
1389
+ OpenBaoOpContext
1390
+ > = /*@__PURE__*/ API.make(() => ({
1391
+ input: KvWriteDeletePathRequest2,
1392
+ output: KvWriteDeletePath2Response,
1393
+ errors: [],
1394
+ protocol: OpenBaoProtocol,
1395
+ retry: Retry.Retry,
1396
+ }));
1397
+
1398
+ export type KvWriteDestroyPathError = OpenBaoOpError;
1399
+ export const kvWriteDestroyPath: API.OperationMethod<
1400
+ KvWriteDestroyPathRequest,
1401
+ KvWriteDestroyPathResponse,
1402
+ KvWriteDestroyPathError,
1403
+ OpenBaoOpContext
1404
+ > = /*@__PURE__*/ API.make(() => ({
1405
+ input: KvWriteDestroyPathRequest,
1406
+ output: KvWriteDestroyPathResponse,
1407
+ errors: [],
1408
+ protocol: OpenBaoProtocol,
1409
+ retry: Retry.Retry,
1410
+ }));
1411
+
1412
+ export type KvWriteDestroyPath2Error = OpenBaoOpError;
1413
+ export const kvWriteDestroyPath2: API.OperationMethod<
1414
+ KvWriteDestroyPathRequest2,
1415
+ KvWriteDestroyPath2Response,
1416
+ KvWriteDestroyPath2Error,
1417
+ OpenBaoOpContext
1418
+ > = /*@__PURE__*/ API.make(() => ({
1419
+ input: KvWriteDestroyPathRequest2,
1420
+ output: KvWriteDestroyPath2Response,
1421
+ errors: [],
1422
+ protocol: OpenBaoProtocol,
1423
+ retry: Retry.Retry,
1424
+ }));
1425
+
1426
+ export type KvWriteMetadataPathError = OpenBaoOpError;
1427
+ export const kvWriteMetadataPath: API.OperationMethod<
1428
+ KvWriteMetadataPathRequest,
1429
+ KvWriteMetadataPathResponse,
1430
+ KvWriteMetadataPathError,
1431
+ OpenBaoOpContext
1432
+ > = /*@__PURE__*/ API.make(() => ({
1433
+ input: KvWriteMetadataPathRequest,
1434
+ output: KvWriteMetadataPathResponse,
1435
+ errors: [],
1436
+ protocol: OpenBaoProtocol,
1437
+ retry: Retry.Retry,
1438
+ }));
1439
+
1440
+ export type KvWriteMetadataPath2Error = OpenBaoOpError;
1441
+ export const kvWriteMetadataPath2: API.OperationMethod<
1442
+ KvWriteMetadataPathRequest2,
1443
+ KvWriteMetadataPath2Response,
1444
+ KvWriteMetadataPath2Error,
1445
+ OpenBaoOpContext
1446
+ > = /*@__PURE__*/ API.make(() => ({
1447
+ input: KvWriteMetadataPathRequest2,
1448
+ output: KvWriteMetadataPath2Response,
1449
+ errors: [],
1450
+ protocol: OpenBaoProtocol,
1451
+ retry: Retry.Retry,
1452
+ }));
1453
+
1454
+ export type KvWriteUndeletePathError = OpenBaoOpError;
1455
+ export const kvWriteUndeletePath: API.OperationMethod<
1456
+ KvWriteUndeletePathRequest,
1457
+ KvWriteUndeletePathResponse,
1458
+ KvWriteUndeletePathError,
1459
+ OpenBaoOpContext
1460
+ > = /*@__PURE__*/ API.make(() => ({
1461
+ input: KvWriteUndeletePathRequest,
1462
+ output: KvWriteUndeletePathResponse,
1463
+ errors: [],
1464
+ protocol: OpenBaoProtocol,
1465
+ retry: Retry.Retry,
1466
+ }));
1467
+
1468
+ export type KvWriteUndeletePath2Error = OpenBaoOpError;
1469
+ export const kvWriteUndeletePath2: API.OperationMethod<
1470
+ KvWriteUndeletePathRequest2,
1471
+ KvWriteUndeletePath2Response,
1472
+ KvWriteUndeletePath2Error,
1473
+ OpenBaoOpContext
1474
+ > = /*@__PURE__*/ API.make(() => ({
1475
+ input: KvWriteUndeletePathRequest2,
1476
+ output: KvWriteUndeletePath2Response,
1477
+ errors: [],
1478
+ protocol: OpenBaoProtocol,
1479
+ retry: Retry.Retry,
1480
+ }));