@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,549 @@
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 PluginsCatalogListPluginsRequest {}
15
+ export const PluginsCatalogListPluginsRequest = /*@__PURE__*/ S.suspend(() =>
16
+ S.Struct({}).pipe(
17
+ T.Http({ method: "GET", uri: "/sys/plugins/catalog", code: 200 }),
18
+ ),
19
+ ).annotate({
20
+ identifier: "PluginsCatalogListPluginsRequest",
21
+ }) as any as S.Schema<PluginsCatalogListPluginsRequest>;
22
+
23
+ export type PluginsCatalogListPluginsResponseAuthList = Array<string>;
24
+ export const PluginsCatalogListPluginsResponseAuthList = /*@__PURE__*/ S.Array(
25
+ S.String,
26
+ ) as any as S.Schema<PluginsCatalogListPluginsResponseAuthList>;
27
+
28
+ export type PluginsCatalogListPluginsResponseDatabaseList = Array<string>;
29
+ export const PluginsCatalogListPluginsResponseDatabaseList =
30
+ /*@__PURE__*/ S.Array(
31
+ S.String,
32
+ ) as any as S.Schema<PluginsCatalogListPluginsResponseDatabaseList>;
33
+
34
+ export type PluginsCatalogListPluginsResponseSecretList = Array<string>;
35
+ export const PluginsCatalogListPluginsResponseSecretList =
36
+ /*@__PURE__*/ S.Array(
37
+ S.String,
38
+ ) as any as S.Schema<PluginsCatalogListPluginsResponseSecretList>;
39
+
40
+ export interface PluginsCatalogListPluginsResponse {
41
+ auth?: PluginsCatalogListPluginsResponseAuthList;
42
+ database?: PluginsCatalogListPluginsResponseDatabaseList;
43
+ detailed?: unknown;
44
+ secret?: PluginsCatalogListPluginsResponseSecretList;
45
+ }
46
+ export const PluginsCatalogListPluginsResponse = /*@__PURE__*/ S.suspend(() =>
47
+ S.Struct({
48
+ auth: S.optional(PluginsCatalogListPluginsResponseAuthList),
49
+ database: S.optional(PluginsCatalogListPluginsResponseDatabaseList),
50
+ detailed: S.optional(S.Unknown),
51
+ secret: S.optional(PluginsCatalogListPluginsResponseSecretList),
52
+ }),
53
+ ).annotate({
54
+ identifier: "PluginsCatalogListPluginsResponse",
55
+ }) as any as S.Schema<PluginsCatalogListPluginsResponse>;
56
+
57
+ export type PluginsCatalogListPluginsWithTypeRequestList = "true";
58
+ export const PluginsCatalogListPluginsWithTypeRequestList = S.String;
59
+
60
+ export interface PluginsCatalogListPluginsWithTypeRequest {
61
+ /** The type of the plugin, may be auth, secret, or database */
62
+ type: string;
63
+ /** Must be set to `true` */
64
+ list: PluginsCatalogListPluginsWithTypeRequestList | (string & {});
65
+ }
66
+ export const PluginsCatalogListPluginsWithTypeRequest = /*@__PURE__*/ S.suspend(
67
+ () =>
68
+ S.Struct({
69
+ type: S.String.pipe(T.Label()),
70
+ list: PluginsCatalogListPluginsWithTypeRequestList.pipe(T.Query()),
71
+ }).pipe(
72
+ T.Http({ method: "GET", uri: "/sys/plugins/catalog/{type}", code: 200 }),
73
+ ),
74
+ ).annotate({
75
+ identifier: "PluginsCatalogListPluginsWithTypeRequest",
76
+ }) as any as S.Schema<PluginsCatalogListPluginsWithTypeRequest>;
77
+
78
+ /** List of plugin names in the catalog */
79
+ export type PluginsCatalogListPluginsWithTypeResponseKeysList = Array<string>;
80
+ export const PluginsCatalogListPluginsWithTypeResponseKeysList =
81
+ /*@__PURE__*/ S.Array(
82
+ S.String,
83
+ ) as any as S.Schema<PluginsCatalogListPluginsWithTypeResponseKeysList>;
84
+
85
+ export interface PluginsCatalogListPluginsWithTypeResponse {
86
+ /** List of plugin names in the catalog */
87
+ keys?: PluginsCatalogListPluginsWithTypeResponseKeysList;
88
+ }
89
+ export const PluginsCatalogListPluginsWithTypeResponse =
90
+ /*@__PURE__*/ S.suspend(() =>
91
+ S.Struct({
92
+ keys: S.optional(PluginsCatalogListPluginsWithTypeResponseKeysList),
93
+ }),
94
+ ).annotate({
95
+ identifier: "PluginsCatalogListPluginsWithTypeResponse",
96
+ }) as any as S.Schema<PluginsCatalogListPluginsWithTypeResponse>;
97
+
98
+ export interface PluginsCatalogReadPluginConfigurationRequest {
99
+ /** The name of the plugin */
100
+ name: string;
101
+ }
102
+ export const PluginsCatalogReadPluginConfigurationRequest =
103
+ /*@__PURE__*/ S.suspend(() =>
104
+ S.Struct({
105
+ name: S.String.pipe(T.Label()),
106
+ }).pipe(
107
+ T.Http({ method: "GET", uri: "/sys/plugins/catalog/{name}", code: 200 }),
108
+ ),
109
+ ).annotate({
110
+ identifier: "PluginsCatalogReadPluginConfigurationRequest",
111
+ }) as any as S.Schema<PluginsCatalogReadPluginConfigurationRequest>;
112
+
113
+ /** The args passed to plugin command. */
114
+ export type PluginsCatalogReadPluginConfigurationResponseArgsList =
115
+ Array<string>;
116
+ export const PluginsCatalogReadPluginConfigurationResponseArgsList =
117
+ /*@__PURE__*/ S.Array(
118
+ S.String,
119
+ ) as any as S.Schema<PluginsCatalogReadPluginConfigurationResponseArgsList>;
120
+
121
+ export interface PluginsCatalogReadPluginConfigurationResponse {
122
+ /** The args passed to plugin command. */
123
+ args?: PluginsCatalogReadPluginConfigurationResponseArgsList;
124
+ builtin?: boolean;
125
+ /** The command used to start the plugin. The executable defined in this command must exist in OpenBao's plugin directory. */
126
+ command?: string;
127
+ declarative?: boolean;
128
+ deprecation_status?: string;
129
+ /** The name of the plugin */
130
+ name?: string;
131
+ oci?: boolean;
132
+ /** The SHA256 sum of the executable used in the command field. This should be HEX encoded. */
133
+ sha256?: string;
134
+ /** The semantic version of the plugin to use. */
135
+ version?: string;
136
+ }
137
+ export const PluginsCatalogReadPluginConfigurationResponse =
138
+ /*@__PURE__*/ S.suspend(() =>
139
+ S.Struct({
140
+ args: S.optional(PluginsCatalogReadPluginConfigurationResponseArgsList),
141
+ builtin: S.optional(S.Boolean),
142
+ command: S.optional(S.String),
143
+ declarative: S.optional(S.Boolean),
144
+ deprecation_status: S.optional(S.String),
145
+ name: S.optional(S.String),
146
+ oci: S.optional(S.Boolean),
147
+ sha256: S.optional(S.String),
148
+ version: S.optional(S.String),
149
+ }),
150
+ ).annotate({
151
+ identifier: "PluginsCatalogReadPluginConfigurationResponse",
152
+ }) as any as S.Schema<PluginsCatalogReadPluginConfigurationResponse>;
153
+
154
+ export interface PluginsCatalogReadPluginConfigurationWithTypeRequest {
155
+ /** The type of the plugin, may be auth, secret, or database */
156
+ type: string;
157
+ /** The name of the plugin */
158
+ name: string;
159
+ }
160
+ export const PluginsCatalogReadPluginConfigurationWithTypeRequest =
161
+ /*@__PURE__*/ S.suspend(() =>
162
+ S.Struct({
163
+ type: S.String.pipe(T.Label()),
164
+ name: S.String.pipe(T.Label()),
165
+ }).pipe(
166
+ T.Http({
167
+ method: "GET",
168
+ uri: "/sys/plugins/catalog/{type}/{name}",
169
+ code: 200,
170
+ }),
171
+ ),
172
+ ).annotate({
173
+ identifier: "PluginsCatalogReadPluginConfigurationWithTypeRequest",
174
+ }) as any as S.Schema<PluginsCatalogReadPluginConfigurationWithTypeRequest>;
175
+
176
+ /** The args passed to plugin command. */
177
+ export type PluginsCatalogReadPluginConfigurationWithTypeResponseArgsList =
178
+ Array<string>;
179
+ export const PluginsCatalogReadPluginConfigurationWithTypeResponseArgsList =
180
+ /*@__PURE__*/ S.Array(
181
+ S.String,
182
+ ) as any as S.Schema<PluginsCatalogReadPluginConfigurationWithTypeResponseArgsList>;
183
+
184
+ export interface PluginsCatalogReadPluginConfigurationWithTypeResponse {
185
+ /** The args passed to plugin command. */
186
+ args?: PluginsCatalogReadPluginConfigurationWithTypeResponseArgsList;
187
+ builtin?: boolean;
188
+ /** The command used to start the plugin. The executable defined in this command must exist in OpenBao's plugin directory. */
189
+ command?: string;
190
+ declarative?: boolean;
191
+ deprecation_status?: string;
192
+ /** The name of the plugin */
193
+ name?: string;
194
+ oci?: boolean;
195
+ /** The SHA256 sum of the executable used in the command field. This should be HEX encoded. */
196
+ sha256?: string;
197
+ /** The semantic version of the plugin to use. */
198
+ version?: string;
199
+ }
200
+ export const PluginsCatalogReadPluginConfigurationWithTypeResponse =
201
+ /*@__PURE__*/ S.suspend(() =>
202
+ S.Struct({
203
+ args: S.optional(
204
+ PluginsCatalogReadPluginConfigurationWithTypeResponseArgsList,
205
+ ),
206
+ builtin: S.optional(S.Boolean),
207
+ command: S.optional(S.String),
208
+ declarative: S.optional(S.Boolean),
209
+ deprecation_status: S.optional(S.String),
210
+ name: S.optional(S.String),
211
+ oci: S.optional(S.Boolean),
212
+ sha256: S.optional(S.String),
213
+ version: S.optional(S.String),
214
+ }),
215
+ ).annotate({
216
+ identifier: "PluginsCatalogReadPluginConfigurationWithTypeResponse",
217
+ }) as any as S.Schema<PluginsCatalogReadPluginConfigurationWithTypeResponse>;
218
+
219
+ /** The args passed to plugin command. */
220
+ export type PluginsCatalogRegisterPluginRequestArgsList = Array<string>;
221
+ export const PluginsCatalogRegisterPluginRequestArgsList =
222
+ /*@__PURE__*/ S.Array(
223
+ S.String,
224
+ ) as any as S.Schema<PluginsCatalogRegisterPluginRequestArgsList>;
225
+
226
+ /** The environment variables passed to plugin command. Each entry is of the form "key=value". */
227
+ export type PluginsCatalogRegisterPluginRequestEnvList = Array<string>;
228
+ export const PluginsCatalogRegisterPluginRequestEnvList = /*@__PURE__*/ S.Array(
229
+ S.String,
230
+ ) as any as S.Schema<PluginsCatalogRegisterPluginRequestEnvList>;
231
+
232
+ export interface PluginsCatalogRegisterPluginRequest {
233
+ /** The name of the plugin */
234
+ name: string;
235
+ /** The args passed to plugin command. */
236
+ args?: PluginsCatalogRegisterPluginRequestArgsList;
237
+ /** The command used to start the plugin. The executable defined in this command must exist in OpenBao's plugin directory. */
238
+ command?: string;
239
+ /** The environment variables passed to plugin command. Each entry is of the form "key=value". */
240
+ env?: PluginsCatalogRegisterPluginRequestEnvList;
241
+ oci?: boolean;
242
+ /** The SHA256 sum of the executable used in the command field. This should be HEX encoded. */
243
+ sha256?: string;
244
+ /** The type of the plugin, may be auth, secret, or database */
245
+ type?: string;
246
+ /** The semantic version of the plugin to use. */
247
+ version?: string;
248
+ }
249
+ export const PluginsCatalogRegisterPluginRequest = /*@__PURE__*/ S.suspend(() =>
250
+ S.Struct({
251
+ name: S.String.pipe(T.Label()),
252
+ args: S.optional(PluginsCatalogRegisterPluginRequestArgsList),
253
+ command: S.optional(S.String),
254
+ env: S.optional(PluginsCatalogRegisterPluginRequestEnvList),
255
+ oci: S.optional(S.Boolean),
256
+ sha256: S.optional(S.String),
257
+ type: S.optional(S.String),
258
+ version: S.optional(S.String),
259
+ }).pipe(
260
+ T.Http({ method: "POST", uri: "/sys/plugins/catalog/{name}", code: 200 }),
261
+ ),
262
+ ).annotate({
263
+ identifier: "PluginsCatalogRegisterPluginRequest",
264
+ }) as any as S.Schema<PluginsCatalogRegisterPluginRequest>;
265
+
266
+ export interface PluginsCatalogRegisterPluginResponse {}
267
+ export const PluginsCatalogRegisterPluginResponse = /*@__PURE__*/ S.suspend(
268
+ () => S.Struct({}),
269
+ ).annotate({
270
+ identifier: "PluginsCatalogRegisterPluginResponse",
271
+ }) as any as S.Schema<PluginsCatalogRegisterPluginResponse>;
272
+
273
+ /** The args passed to plugin command. */
274
+ export type PluginsCatalogRegisterPluginWithTypeRequestArgsList = Array<string>;
275
+ export const PluginsCatalogRegisterPluginWithTypeRequestArgsList =
276
+ /*@__PURE__*/ S.Array(
277
+ S.String,
278
+ ) as any as S.Schema<PluginsCatalogRegisterPluginWithTypeRequestArgsList>;
279
+
280
+ /** The environment variables passed to plugin command. Each entry is of the form "key=value". */
281
+ export type PluginsCatalogRegisterPluginWithTypeRequestEnvList = Array<string>;
282
+ export const PluginsCatalogRegisterPluginWithTypeRequestEnvList =
283
+ /*@__PURE__*/ S.Array(
284
+ S.String,
285
+ ) as any as S.Schema<PluginsCatalogRegisterPluginWithTypeRequestEnvList>;
286
+
287
+ export interface PluginsCatalogRegisterPluginWithTypeRequest {
288
+ /** The type of the plugin, may be auth, secret, or database */
289
+ type: string;
290
+ /** The name of the plugin */
291
+ name: string;
292
+ /** The args passed to plugin command. */
293
+ args?: PluginsCatalogRegisterPluginWithTypeRequestArgsList;
294
+ /** The command used to start the plugin. The executable defined in this command must exist in OpenBao's plugin directory. */
295
+ command?: string;
296
+ /** The environment variables passed to plugin command. Each entry is of the form "key=value". */
297
+ env?: PluginsCatalogRegisterPluginWithTypeRequestEnvList;
298
+ oci?: boolean;
299
+ /** The SHA256 sum of the executable used in the command field. This should be HEX encoded. */
300
+ sha256?: string;
301
+ /** The semantic version of the plugin to use. */
302
+ version?: string;
303
+ }
304
+ export const PluginsCatalogRegisterPluginWithTypeRequest =
305
+ /*@__PURE__*/ S.suspend(() =>
306
+ S.Struct({
307
+ type: S.String.pipe(T.Label()),
308
+ name: S.String.pipe(T.Label()),
309
+ args: S.optional(PluginsCatalogRegisterPluginWithTypeRequestArgsList),
310
+ command: S.optional(S.String),
311
+ env: S.optional(PluginsCatalogRegisterPluginWithTypeRequestEnvList),
312
+ oci: S.optional(S.Boolean),
313
+ sha256: S.optional(S.String),
314
+ version: S.optional(S.String),
315
+ }).pipe(
316
+ T.Http({
317
+ method: "POST",
318
+ uri: "/sys/plugins/catalog/{type}/{name}",
319
+ code: 200,
320
+ }),
321
+ ),
322
+ ).annotate({
323
+ identifier: "PluginsCatalogRegisterPluginWithTypeRequest",
324
+ }) as any as S.Schema<PluginsCatalogRegisterPluginWithTypeRequest>;
325
+
326
+ export interface PluginsCatalogRegisterPluginWithTypeResponse {}
327
+ export const PluginsCatalogRegisterPluginWithTypeResponse =
328
+ /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
329
+ identifier: "PluginsCatalogRegisterPluginWithTypeResponse",
330
+ }) as any as S.Schema<PluginsCatalogRegisterPluginWithTypeResponse>;
331
+
332
+ export interface PluginsCatalogRemovePluginRequest {
333
+ /** The name of the plugin */
334
+ name: string;
335
+ }
336
+ export const PluginsCatalogRemovePluginRequest = /*@__PURE__*/ S.suspend(() =>
337
+ S.Struct({
338
+ name: S.String.pipe(T.Label()),
339
+ }).pipe(
340
+ T.Http({ method: "DELETE", uri: "/sys/plugins/catalog/{name}", code: 200 }),
341
+ ),
342
+ ).annotate({
343
+ identifier: "PluginsCatalogRemovePluginRequest",
344
+ }) as any as S.Schema<PluginsCatalogRemovePluginRequest>;
345
+
346
+ export interface PluginsCatalogRemovePluginResponse {}
347
+ export const PluginsCatalogRemovePluginResponse = /*@__PURE__*/ S.suspend(() =>
348
+ S.Struct({}),
349
+ ).annotate({
350
+ identifier: "PluginsCatalogRemovePluginResponse",
351
+ }) as any as S.Schema<PluginsCatalogRemovePluginResponse>;
352
+
353
+ export interface PluginsCatalogRemovePluginWithTypeRequest {
354
+ /** The type of the plugin, may be auth, secret, or database */
355
+ type: string;
356
+ /** The name of the plugin */
357
+ name: string;
358
+ }
359
+ export const PluginsCatalogRemovePluginWithTypeRequest =
360
+ /*@__PURE__*/ S.suspend(() =>
361
+ S.Struct({
362
+ type: S.String.pipe(T.Label()),
363
+ name: S.String.pipe(T.Label()),
364
+ }).pipe(
365
+ T.Http({
366
+ method: "DELETE",
367
+ uri: "/sys/plugins/catalog/{type}/{name}",
368
+ code: 200,
369
+ }),
370
+ ),
371
+ ).annotate({
372
+ identifier: "PluginsCatalogRemovePluginWithTypeRequest",
373
+ }) as any as S.Schema<PluginsCatalogRemovePluginWithTypeRequest>;
374
+
375
+ export interface PluginsCatalogRemovePluginWithTypeResponse {}
376
+ export const PluginsCatalogRemovePluginWithTypeResponse =
377
+ /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
378
+ identifier: "PluginsCatalogRemovePluginWithTypeResponse",
379
+ }) as any as S.Schema<PluginsCatalogRemovePluginWithTypeResponse>;
380
+
381
+ /** The mount paths of the plugin backends to reload. */
382
+ export type PluginsReloadBackendsRequestMountsList = Array<string>;
383
+ export const PluginsReloadBackendsRequestMountsList = /*@__PURE__*/ S.Array(
384
+ S.String,
385
+ ) as any as S.Schema<PluginsReloadBackendsRequestMountsList>;
386
+
387
+ export interface PluginsReloadBackendsRequest {
388
+ /** The mount paths of the plugin backends to reload. */
389
+ mounts?: PluginsReloadBackendsRequestMountsList;
390
+ /** The name of the plugin to reload, as registered in the plugin catalog. */
391
+ plugin?: string;
392
+ scope?: string;
393
+ }
394
+ export const PluginsReloadBackendsRequest = /*@__PURE__*/ S.suspend(() =>
395
+ S.Struct({
396
+ mounts: S.optional(PluginsReloadBackendsRequestMountsList),
397
+ plugin: S.optional(S.String),
398
+ scope: S.optional(S.String),
399
+ }).pipe(
400
+ T.Http({ method: "POST", uri: "/sys/plugins/reload/backend", code: 200 }),
401
+ ),
402
+ ).annotate({
403
+ identifier: "PluginsReloadBackendsRequest",
404
+ }) as any as S.Schema<PluginsReloadBackendsRequest>;
405
+
406
+ export interface PluginsReloadBackendsResponse {
407
+ reload_id?: string;
408
+ }
409
+ export const PluginsReloadBackendsResponse = /*@__PURE__*/ S.suspend(() =>
410
+ S.Struct({
411
+ reload_id: S.optional(S.String),
412
+ }),
413
+ ).annotate({
414
+ identifier: "PluginsReloadBackendsResponse",
415
+ }) as any as S.Schema<PluginsReloadBackendsResponse>;
416
+
417
+ export type PluginsCatalogListPluginsError = OpenBaoOpError;
418
+ export const pluginsCatalogListPlugins: API.OperationMethod<
419
+ PluginsCatalogListPluginsRequest,
420
+ PluginsCatalogListPluginsResponse,
421
+ PluginsCatalogListPluginsError,
422
+ OpenBaoOpContext
423
+ > = /*@__PURE__*/ API.make(() => ({
424
+ input: PluginsCatalogListPluginsRequest,
425
+ output: PluginsCatalogListPluginsResponse,
426
+ errors: [],
427
+ protocol: OpenBaoProtocol,
428
+ retry: Retry.Retry,
429
+ }));
430
+
431
+ export type PluginsCatalogListPluginsWithTypeError = OpenBaoOpError;
432
+ /** List the plugins in the catalog. */
433
+ export const pluginsCatalogListPluginsWithType: API.OperationMethod<
434
+ PluginsCatalogListPluginsWithTypeRequest,
435
+ PluginsCatalogListPluginsWithTypeResponse,
436
+ PluginsCatalogListPluginsWithTypeError,
437
+ OpenBaoOpContext
438
+ > = /*@__PURE__*/ API.make(() => ({
439
+ input: PluginsCatalogListPluginsWithTypeRequest,
440
+ output: PluginsCatalogListPluginsWithTypeResponse,
441
+ errors: [],
442
+ protocol: OpenBaoProtocol,
443
+ retry: Retry.Retry,
444
+ }));
445
+
446
+ export type PluginsCatalogReadPluginConfigurationError = OpenBaoOpError;
447
+ /** Return the configuration data for the plugin with the given name. */
448
+ export const pluginsCatalogReadPluginConfiguration: API.OperationMethod<
449
+ PluginsCatalogReadPluginConfigurationRequest,
450
+ PluginsCatalogReadPluginConfigurationResponse,
451
+ PluginsCatalogReadPluginConfigurationError,
452
+ OpenBaoOpContext
453
+ > = /*@__PURE__*/ API.make(() => ({
454
+ input: PluginsCatalogReadPluginConfigurationRequest,
455
+ output: PluginsCatalogReadPluginConfigurationResponse,
456
+ errors: [],
457
+ protocol: OpenBaoProtocol,
458
+ retry: Retry.Retry,
459
+ }));
460
+
461
+ export type PluginsCatalogReadPluginConfigurationWithTypeError = OpenBaoOpError;
462
+ /** Return the configuration data for the plugin with the given name. */
463
+ export const pluginsCatalogReadPluginConfigurationWithType: API.OperationMethod<
464
+ PluginsCatalogReadPluginConfigurationWithTypeRequest,
465
+ PluginsCatalogReadPluginConfigurationWithTypeResponse,
466
+ PluginsCatalogReadPluginConfigurationWithTypeError,
467
+ OpenBaoOpContext
468
+ > = /*@__PURE__*/ API.make(() => ({
469
+ input: PluginsCatalogReadPluginConfigurationWithTypeRequest,
470
+ output: PluginsCatalogReadPluginConfigurationWithTypeResponse,
471
+ errors: [],
472
+ protocol: OpenBaoProtocol,
473
+ retry: Retry.Retry,
474
+ }));
475
+
476
+ export type PluginsCatalogRegisterPluginError = OpenBaoOpError;
477
+ /** Register a new plugin, or updates an existing one with the supplied name. */
478
+ export const pluginsCatalogRegisterPlugin: API.OperationMethod<
479
+ PluginsCatalogRegisterPluginRequest,
480
+ PluginsCatalogRegisterPluginResponse,
481
+ PluginsCatalogRegisterPluginError,
482
+ OpenBaoOpContext
483
+ > = /*@__PURE__*/ API.make(() => ({
484
+ input: PluginsCatalogRegisterPluginRequest,
485
+ output: PluginsCatalogRegisterPluginResponse,
486
+ errors: [],
487
+ protocol: OpenBaoProtocol,
488
+ retry: Retry.Retry,
489
+ }));
490
+
491
+ export type PluginsCatalogRegisterPluginWithTypeError = OpenBaoOpError;
492
+ /** Register a new plugin, or updates an existing one with the supplied name. */
493
+ export const pluginsCatalogRegisterPluginWithType: API.OperationMethod<
494
+ PluginsCatalogRegisterPluginWithTypeRequest,
495
+ PluginsCatalogRegisterPluginWithTypeResponse,
496
+ PluginsCatalogRegisterPluginWithTypeError,
497
+ OpenBaoOpContext
498
+ > = /*@__PURE__*/ API.make(() => ({
499
+ input: PluginsCatalogRegisterPluginWithTypeRequest,
500
+ output: PluginsCatalogRegisterPluginWithTypeResponse,
501
+ errors: [],
502
+ protocol: OpenBaoProtocol,
503
+ retry: Retry.Retry,
504
+ }));
505
+
506
+ export type PluginsCatalogRemovePluginError = OpenBaoOpError;
507
+ /** Remove the plugin with the given name. */
508
+ export const pluginsCatalogRemovePlugin: API.OperationMethod<
509
+ PluginsCatalogRemovePluginRequest,
510
+ PluginsCatalogRemovePluginResponse,
511
+ PluginsCatalogRemovePluginError,
512
+ OpenBaoOpContext
513
+ > = /*@__PURE__*/ API.make(() => ({
514
+ input: PluginsCatalogRemovePluginRequest,
515
+ output: PluginsCatalogRemovePluginResponse,
516
+ errors: [],
517
+ protocol: OpenBaoProtocol,
518
+ retry: Retry.Retry,
519
+ }));
520
+
521
+ export type PluginsCatalogRemovePluginWithTypeError = OpenBaoOpError;
522
+ /** Remove the plugin with the given name. */
523
+ export const pluginsCatalogRemovePluginWithType: API.OperationMethod<
524
+ PluginsCatalogRemovePluginWithTypeRequest,
525
+ PluginsCatalogRemovePluginWithTypeResponse,
526
+ PluginsCatalogRemovePluginWithTypeError,
527
+ OpenBaoOpContext
528
+ > = /*@__PURE__*/ API.make(() => ({
529
+ input: PluginsCatalogRemovePluginWithTypeRequest,
530
+ output: PluginsCatalogRemovePluginWithTypeResponse,
531
+ errors: [],
532
+ protocol: OpenBaoProtocol,
533
+ retry: Retry.Retry,
534
+ }));
535
+
536
+ export type PluginsReloadBackendsError = OpenBaoOpError;
537
+ /** Reload mounted plugin backends. Either the plugin name (`plugin`) or the desired plugin backend mounts (`mounts`) must be provided, but not both. In the case that the plugin name is provided, all mounted paths that use that plugin backend will be reloaded. If (`scope`) is provided and is (`global`), the plugin(s) are reloaded globally. */
538
+ export const pluginsReloadBackends: API.OperationMethod<
539
+ PluginsReloadBackendsRequest,
540
+ PluginsReloadBackendsResponse,
541
+ PluginsReloadBackendsError,
542
+ OpenBaoOpContext
543
+ > = /*@__PURE__*/ API.make(() => ({
544
+ input: PluginsReloadBackendsRequest,
545
+ output: PluginsReloadBackendsResponse,
546
+ errors: [],
547
+ protocol: OpenBaoProtocol,
548
+ retry: Retry.Retry,
549
+ }));