@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,854 @@
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
+ /** Comma separated string or array of the role names allowed to get creds from this database connection. If empty no roles are allowed. If "*" all roles are allowed. */
15
+ export type DatabaseConfigureConnectionRequestAllowedRolesList = Array<string>;
16
+ export const DatabaseConfigureConnectionRequestAllowedRolesList =
17
+ /*@__PURE__*/ S.Array(
18
+ S.String,
19
+ ) as any as S.Schema<DatabaseConfigureConnectionRequestAllowedRolesList>;
20
+
21
+ /** Specifies the database statements to be executed to rotate the root user's credentials. See the plugin's API page for more information on support and formatting for this parameter. */
22
+ export type DatabaseConfigureConnectionRequestRootRotationStatementsList =
23
+ Array<string>;
24
+ export const DatabaseConfigureConnectionRequestRootRotationStatementsList =
25
+ /*@__PURE__*/ S.Array(
26
+ S.String,
27
+ ) as any as S.Schema<DatabaseConfigureConnectionRequestRootRotationStatementsList>;
28
+
29
+ export interface DatabaseConfigureConnectionRequest {
30
+ /** Path that the backend was mounted at */
31
+ database_mount_path: string;
32
+ /** Name of this database connection */
33
+ name: string;
34
+ /** Comma separated string or array of the role names allowed to get creds from this database connection. If empty no roles are allowed. If "*" all roles are allowed. */
35
+ allowed_roles?: DatabaseConfigureConnectionRequestAllowedRolesList;
36
+ /** Password policy to use when generating passwords. */
37
+ password_policy?: string;
38
+ /** The name of a builtin or previously registered plugin known to OpenBao. This endpoint will create an instance of that plugin type. */
39
+ plugin_name?: string;
40
+ /** The version of the plugin to use. */
41
+ plugin_version?: string;
42
+ /** Specifies the database statements to be executed to rotate the root user's credentials. See the plugin's API page for more information on support and formatting for this parameter. */
43
+ root_rotation_statements?: DatabaseConfigureConnectionRequestRootRotationStatementsList;
44
+ /** If true, the connection details are verified by actually connecting to the database. Defaults to true. */
45
+ verify_connection?: boolean;
46
+ }
47
+ export const DatabaseConfigureConnectionRequest = /*@__PURE__*/ S.suspend(() =>
48
+ S.Struct({
49
+ database_mount_path: S.String.pipe(T.Label()),
50
+ name: S.String.pipe(T.Label()),
51
+ allowed_roles: S.optional(
52
+ DatabaseConfigureConnectionRequestAllowedRolesList,
53
+ ),
54
+ password_policy: S.optional(S.String),
55
+ plugin_name: S.optional(S.String),
56
+ plugin_version: S.optional(S.String),
57
+ root_rotation_statements: S.optional(
58
+ DatabaseConfigureConnectionRequestRootRotationStatementsList,
59
+ ),
60
+ verify_connection: S.optional(S.Boolean),
61
+ }).pipe(
62
+ T.Http({
63
+ method: "POST",
64
+ uri: "/{database_mount_path}/config/{name}",
65
+ code: 200,
66
+ }),
67
+ ),
68
+ ).annotate({
69
+ identifier: "DatabaseConfigureConnectionRequest",
70
+ }) as any as S.Schema<DatabaseConfigureConnectionRequest>;
71
+
72
+ export interface DatabaseConfigureConnectionResponse {}
73
+ export const DatabaseConfigureConnectionResponse = /*@__PURE__*/ S.suspend(() =>
74
+ S.Struct({}),
75
+ ).annotate({
76
+ identifier: "DatabaseConfigureConnectionResponse",
77
+ }) as any as S.Schema<DatabaseConfigureConnectionResponse>;
78
+
79
+ export interface DatabaseDeleteConnectionConfigurationRequest {
80
+ /** Path that the backend was mounted at */
81
+ database_mount_path: string;
82
+ /** Name of this database connection */
83
+ name: string;
84
+ }
85
+ export const DatabaseDeleteConnectionConfigurationRequest =
86
+ /*@__PURE__*/ S.suspend(() =>
87
+ S.Struct({
88
+ database_mount_path: S.String.pipe(T.Label()),
89
+ name: S.String.pipe(T.Label()),
90
+ }).pipe(
91
+ T.Http({
92
+ method: "DELETE",
93
+ uri: "/{database_mount_path}/config/{name}",
94
+ code: 200,
95
+ }),
96
+ ),
97
+ ).annotate({
98
+ identifier: "DatabaseDeleteConnectionConfigurationRequest",
99
+ }) as any as S.Schema<DatabaseDeleteConnectionConfigurationRequest>;
100
+
101
+ export interface DatabaseDeleteConnectionConfigurationResponse {}
102
+ export const DatabaseDeleteConnectionConfigurationResponse =
103
+ /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
104
+ identifier: "DatabaseDeleteConnectionConfigurationResponse",
105
+ }) as any as S.Schema<DatabaseDeleteConnectionConfigurationResponse>;
106
+
107
+ export interface DatabaseDeleteRoleRequest {
108
+ /** Path that the backend was mounted at */
109
+ database_mount_path: string;
110
+ /** Name of the role. */
111
+ name: string;
112
+ }
113
+ export const DatabaseDeleteRoleRequest = /*@__PURE__*/ S.suspend(() =>
114
+ S.Struct({
115
+ database_mount_path: S.String.pipe(T.Label()),
116
+ name: S.String.pipe(T.Label()),
117
+ }).pipe(
118
+ T.Http({
119
+ method: "DELETE",
120
+ uri: "/{database_mount_path}/roles/{name}",
121
+ code: 200,
122
+ }),
123
+ ),
124
+ ).annotate({
125
+ identifier: "DatabaseDeleteRoleRequest",
126
+ }) as any as S.Schema<DatabaseDeleteRoleRequest>;
127
+
128
+ export interface DatabaseDeleteRoleResponse {}
129
+ export const DatabaseDeleteRoleResponse = /*@__PURE__*/ S.suspend(() =>
130
+ S.Struct({}),
131
+ ).annotate({
132
+ identifier: "DatabaseDeleteRoleResponse",
133
+ }) as any as S.Schema<DatabaseDeleteRoleResponse>;
134
+
135
+ export interface DatabaseDeleteStaticRoleRequest {
136
+ /** Path that the backend was mounted at */
137
+ database_mount_path: string;
138
+ /** Name of the role. */
139
+ name: string;
140
+ }
141
+ export const DatabaseDeleteStaticRoleRequest = /*@__PURE__*/ S.suspend(() =>
142
+ S.Struct({
143
+ database_mount_path: S.String.pipe(T.Label()),
144
+ name: S.String.pipe(T.Label()),
145
+ }).pipe(
146
+ T.Http({
147
+ method: "DELETE",
148
+ uri: "/{database_mount_path}/static-roles/{name}",
149
+ code: 200,
150
+ }),
151
+ ),
152
+ ).annotate({
153
+ identifier: "DatabaseDeleteStaticRoleRequest",
154
+ }) as any as S.Schema<DatabaseDeleteStaticRoleRequest>;
155
+
156
+ export interface DatabaseDeleteStaticRoleResponse {}
157
+ export const DatabaseDeleteStaticRoleResponse = /*@__PURE__*/ S.suspend(() =>
158
+ S.Struct({}),
159
+ ).annotate({
160
+ identifier: "DatabaseDeleteStaticRoleResponse",
161
+ }) as any as S.Schema<DatabaseDeleteStaticRoleResponse>;
162
+
163
+ export interface DatabaseGenerateCredentialsRequest {
164
+ /** Path that the backend was mounted at */
165
+ database_mount_path: string;
166
+ /** Name of the role. */
167
+ name: string;
168
+ }
169
+ export const DatabaseGenerateCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
170
+ S.Struct({
171
+ database_mount_path: S.String.pipe(T.Label()),
172
+ name: S.String.pipe(T.Label()),
173
+ }).pipe(
174
+ T.Http({
175
+ method: "GET",
176
+ uri: "/{database_mount_path}/creds/{name}",
177
+ code: 200,
178
+ }),
179
+ ),
180
+ ).annotate({
181
+ identifier: "DatabaseGenerateCredentialsRequest",
182
+ }) as any as S.Schema<DatabaseGenerateCredentialsRequest>;
183
+
184
+ export interface DatabaseGenerateCredentialsResponse {}
185
+ export const DatabaseGenerateCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
186
+ S.Struct({}),
187
+ ).annotate({
188
+ identifier: "DatabaseGenerateCredentialsResponse",
189
+ }) as any as S.Schema<DatabaseGenerateCredentialsResponse>;
190
+
191
+ export type DatabaseListConnectionsRequestList = "true";
192
+ export const DatabaseListConnectionsRequestList = S.String;
193
+
194
+ export interface DatabaseListConnectionsRequest {
195
+ /** Path that the backend was mounted at */
196
+ database_mount_path: string;
197
+ /** Must be set to `true` */
198
+ list: DatabaseListConnectionsRequestList | (string & {});
199
+ }
200
+ export const DatabaseListConnectionsRequest = /*@__PURE__*/ S.suspend(() =>
201
+ S.Struct({
202
+ database_mount_path: S.String.pipe(T.Label()),
203
+ list: DatabaseListConnectionsRequestList.pipe(T.Query()),
204
+ }).pipe(
205
+ T.Http({ method: "GET", uri: "/{database_mount_path}/config", code: 200 }),
206
+ ),
207
+ ).annotate({
208
+ identifier: "DatabaseListConnectionsRequest",
209
+ }) as any as S.Schema<DatabaseListConnectionsRequest>;
210
+
211
+ export interface DatabaseListConnectionsResponse {}
212
+ export const DatabaseListConnectionsResponse = /*@__PURE__*/ S.suspend(() =>
213
+ S.Struct({}),
214
+ ).annotate({
215
+ identifier: "DatabaseListConnectionsResponse",
216
+ }) as any as S.Schema<DatabaseListConnectionsResponse>;
217
+
218
+ export type DatabaseListRolesRequestList = "true";
219
+ export const DatabaseListRolesRequestList = S.String;
220
+
221
+ export interface DatabaseListRolesRequest {
222
+ /** Path that the backend was mounted at */
223
+ database_mount_path: string;
224
+ /** Must be set to `true` */
225
+ list: DatabaseListRolesRequestList | (string & {});
226
+ }
227
+ export const DatabaseListRolesRequest = /*@__PURE__*/ S.suspend(() =>
228
+ S.Struct({
229
+ database_mount_path: S.String.pipe(T.Label()),
230
+ list: DatabaseListRolesRequestList.pipe(T.Query()),
231
+ }).pipe(
232
+ T.Http({ method: "GET", uri: "/{database_mount_path}/roles", code: 200 }),
233
+ ),
234
+ ).annotate({
235
+ identifier: "DatabaseListRolesRequest",
236
+ }) as any as S.Schema<DatabaseListRolesRequest>;
237
+
238
+ export interface DatabaseListRolesResponse {}
239
+ export const DatabaseListRolesResponse = /*@__PURE__*/ S.suspend(() =>
240
+ S.Struct({}),
241
+ ).annotate({
242
+ identifier: "DatabaseListRolesResponse",
243
+ }) as any as S.Schema<DatabaseListRolesResponse>;
244
+
245
+ export type DatabaseListStaticRolesRequestList = "true";
246
+ export const DatabaseListStaticRolesRequestList = S.String;
247
+
248
+ export interface DatabaseListStaticRolesRequest {
249
+ /** Path that the backend was mounted at */
250
+ database_mount_path: string;
251
+ /** Must be set to `true` */
252
+ list: DatabaseListStaticRolesRequestList | (string & {});
253
+ }
254
+ export const DatabaseListStaticRolesRequest = /*@__PURE__*/ S.suspend(() =>
255
+ S.Struct({
256
+ database_mount_path: S.String.pipe(T.Label()),
257
+ list: DatabaseListStaticRolesRequestList.pipe(T.Query()),
258
+ }).pipe(
259
+ T.Http({
260
+ method: "GET",
261
+ uri: "/{database_mount_path}/static-roles",
262
+ code: 200,
263
+ }),
264
+ ),
265
+ ).annotate({
266
+ identifier: "DatabaseListStaticRolesRequest",
267
+ }) as any as S.Schema<DatabaseListStaticRolesRequest>;
268
+
269
+ export interface DatabaseListStaticRolesResponse {}
270
+ export const DatabaseListStaticRolesResponse = /*@__PURE__*/ S.suspend(() =>
271
+ S.Struct({}),
272
+ ).annotate({
273
+ identifier: "DatabaseListStaticRolesResponse",
274
+ }) as any as S.Schema<DatabaseListStaticRolesResponse>;
275
+
276
+ export interface DatabaseReadConnectionConfigurationRequest {
277
+ /** Path that the backend was mounted at */
278
+ database_mount_path: string;
279
+ /** Name of this database connection */
280
+ name: string;
281
+ }
282
+ export const DatabaseReadConnectionConfigurationRequest =
283
+ /*@__PURE__*/ S.suspend(() =>
284
+ S.Struct({
285
+ database_mount_path: S.String.pipe(T.Label()),
286
+ name: S.String.pipe(T.Label()),
287
+ }).pipe(
288
+ T.Http({
289
+ method: "GET",
290
+ uri: "/{database_mount_path}/config/{name}",
291
+ code: 200,
292
+ }),
293
+ ),
294
+ ).annotate({
295
+ identifier: "DatabaseReadConnectionConfigurationRequest",
296
+ }) as any as S.Schema<DatabaseReadConnectionConfigurationRequest>;
297
+
298
+ export interface DatabaseReadConnectionConfigurationResponse {}
299
+ export const DatabaseReadConnectionConfigurationResponse =
300
+ /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
301
+ identifier: "DatabaseReadConnectionConfigurationResponse",
302
+ }) as any as S.Schema<DatabaseReadConnectionConfigurationResponse>;
303
+
304
+ export interface DatabaseReadRoleRequest {
305
+ /** Path that the backend was mounted at */
306
+ database_mount_path: string;
307
+ /** Name of the role. */
308
+ name: string;
309
+ }
310
+ export const DatabaseReadRoleRequest = /*@__PURE__*/ S.suspend(() =>
311
+ S.Struct({
312
+ database_mount_path: S.String.pipe(T.Label()),
313
+ name: S.String.pipe(T.Label()),
314
+ }).pipe(
315
+ T.Http({
316
+ method: "GET",
317
+ uri: "/{database_mount_path}/roles/{name}",
318
+ code: 200,
319
+ }),
320
+ ),
321
+ ).annotate({
322
+ identifier: "DatabaseReadRoleRequest",
323
+ }) as any as S.Schema<DatabaseReadRoleRequest>;
324
+
325
+ export interface DatabaseReadRoleResponse {}
326
+ export const DatabaseReadRoleResponse = /*@__PURE__*/ S.suspend(() =>
327
+ S.Struct({}),
328
+ ).annotate({
329
+ identifier: "DatabaseReadRoleResponse",
330
+ }) as any as S.Schema<DatabaseReadRoleResponse>;
331
+
332
+ export interface DatabaseReadStaticRoleRequest {
333
+ /** Path that the backend was mounted at */
334
+ database_mount_path: string;
335
+ /** Name of the role. */
336
+ name: string;
337
+ }
338
+ export const DatabaseReadStaticRoleRequest = /*@__PURE__*/ S.suspend(() =>
339
+ S.Struct({
340
+ database_mount_path: S.String.pipe(T.Label()),
341
+ name: S.String.pipe(T.Label()),
342
+ }).pipe(
343
+ T.Http({
344
+ method: "GET",
345
+ uri: "/{database_mount_path}/static-roles/{name}",
346
+ code: 200,
347
+ }),
348
+ ),
349
+ ).annotate({
350
+ identifier: "DatabaseReadStaticRoleRequest",
351
+ }) as any as S.Schema<DatabaseReadStaticRoleRequest>;
352
+
353
+ export interface DatabaseReadStaticRoleResponse {}
354
+ export const DatabaseReadStaticRoleResponse = /*@__PURE__*/ S.suspend(() =>
355
+ S.Struct({}),
356
+ ).annotate({
357
+ identifier: "DatabaseReadStaticRoleResponse",
358
+ }) as any as S.Schema<DatabaseReadStaticRoleResponse>;
359
+
360
+ export interface DatabaseReadStaticRoleCredentialsRequest {
361
+ /** Path that the backend was mounted at */
362
+ database_mount_path: string;
363
+ /** Name of the static role. */
364
+ name: string;
365
+ }
366
+ export const DatabaseReadStaticRoleCredentialsRequest = /*@__PURE__*/ S.suspend(
367
+ () =>
368
+ S.Struct({
369
+ database_mount_path: S.String.pipe(T.Label()),
370
+ name: S.String.pipe(T.Label()),
371
+ }).pipe(
372
+ T.Http({
373
+ method: "GET",
374
+ uri: "/{database_mount_path}/static-creds/{name}",
375
+ code: 200,
376
+ }),
377
+ ),
378
+ ).annotate({
379
+ identifier: "DatabaseReadStaticRoleCredentialsRequest",
380
+ }) as any as S.Schema<DatabaseReadStaticRoleCredentialsRequest>;
381
+
382
+ export interface DatabaseReadStaticRoleCredentialsResponse {}
383
+ export const DatabaseReadStaticRoleCredentialsResponse =
384
+ /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
385
+ identifier: "DatabaseReadStaticRoleCredentialsResponse",
386
+ }) as any as S.Schema<DatabaseReadStaticRoleCredentialsResponse>;
387
+
388
+ export interface DatabaseResetConnectionRequest {
389
+ /** Path that the backend was mounted at */
390
+ database_mount_path: string;
391
+ /** Name of this database connection */
392
+ name: string;
393
+ }
394
+ export const DatabaseResetConnectionRequest = /*@__PURE__*/ S.suspend(() =>
395
+ S.Struct({
396
+ database_mount_path: S.String.pipe(T.Label()),
397
+ name: S.String.pipe(T.Label()),
398
+ }).pipe(
399
+ T.Http({
400
+ method: "POST",
401
+ uri: "/{database_mount_path}/reset/{name}",
402
+ code: 200,
403
+ }),
404
+ ),
405
+ ).annotate({
406
+ identifier: "DatabaseResetConnectionRequest",
407
+ }) as any as S.Schema<DatabaseResetConnectionRequest>;
408
+
409
+ export interface DatabaseResetConnectionResponse {}
410
+ export const DatabaseResetConnectionResponse = /*@__PURE__*/ S.suspend(() =>
411
+ S.Struct({}),
412
+ ).annotate({
413
+ identifier: "DatabaseResetConnectionResponse",
414
+ }) as any as S.Schema<DatabaseResetConnectionResponse>;
415
+
416
+ export interface DatabaseRotateRootCredentialsRequest {
417
+ /** Path that the backend was mounted at */
418
+ database_mount_path: string;
419
+ /** Name of this database connection */
420
+ name: string;
421
+ }
422
+ export const DatabaseRotateRootCredentialsRequest = /*@__PURE__*/ S.suspend(
423
+ () =>
424
+ S.Struct({
425
+ database_mount_path: S.String.pipe(T.Label()),
426
+ name: S.String.pipe(T.Label()),
427
+ }).pipe(
428
+ T.Http({
429
+ method: "POST",
430
+ uri: "/{database_mount_path}/rotate-root/{name}",
431
+ code: 200,
432
+ }),
433
+ ),
434
+ ).annotate({
435
+ identifier: "DatabaseRotateRootCredentialsRequest",
436
+ }) as any as S.Schema<DatabaseRotateRootCredentialsRequest>;
437
+
438
+ export interface DatabaseRotateRootCredentialsResponse {}
439
+ export const DatabaseRotateRootCredentialsResponse = /*@__PURE__*/ S.suspend(
440
+ () => S.Struct({}),
441
+ ).annotate({
442
+ identifier: "DatabaseRotateRootCredentialsResponse",
443
+ }) as any as S.Schema<DatabaseRotateRootCredentialsResponse>;
444
+
445
+ export interface DatabaseRotateStaticRoleCredentialsRequest {
446
+ /** Path that the backend was mounted at */
447
+ database_mount_path: string;
448
+ /** Name of the static role */
449
+ name: string;
450
+ }
451
+ export const DatabaseRotateStaticRoleCredentialsRequest =
452
+ /*@__PURE__*/ S.suspend(() =>
453
+ S.Struct({
454
+ database_mount_path: S.String.pipe(T.Label()),
455
+ name: S.String.pipe(T.Label()),
456
+ }).pipe(
457
+ T.Http({
458
+ method: "POST",
459
+ uri: "/{database_mount_path}/rotate-role/{name}",
460
+ code: 200,
461
+ }),
462
+ ),
463
+ ).annotate({
464
+ identifier: "DatabaseRotateStaticRoleCredentialsRequest",
465
+ }) as any as S.Schema<DatabaseRotateStaticRoleCredentialsRequest>;
466
+
467
+ export interface DatabaseRotateStaticRoleCredentialsResponse {}
468
+ export const DatabaseRotateStaticRoleCredentialsResponse =
469
+ /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
470
+ identifier: "DatabaseRotateStaticRoleCredentialsResponse",
471
+ }) as any as S.Schema<DatabaseRotateStaticRoleCredentialsResponse>;
472
+
473
+ /** Specifies the database statements executed to create and configure a user. See the plugin's API page for more information on support and formatting for this parameter. */
474
+ export type DatabaseWriteRoleRequestCreationStatementsList = Array<string>;
475
+ export const DatabaseWriteRoleRequestCreationStatementsList =
476
+ /*@__PURE__*/ S.Array(
477
+ S.String,
478
+ ) as any as S.Schema<DatabaseWriteRoleRequestCreationStatementsList>;
479
+
480
+ /** Specifies the database statements to be executed to renew a user. Not every plugin type will support this functionality. See the plugin's API page for more information on support and formatting for this parameter. */
481
+ export type DatabaseWriteRoleRequestRenewStatementsList = Array<string>;
482
+ export const DatabaseWriteRoleRequestRenewStatementsList =
483
+ /*@__PURE__*/ S.Array(
484
+ S.String,
485
+ ) as any as S.Schema<DatabaseWriteRoleRequestRenewStatementsList>;
486
+
487
+ /** Specifies the database statements to be executed to revoke a user. See the plugin's API page for more information on support and formatting for this parameter. */
488
+ export type DatabaseWriteRoleRequestRevocationStatementsList = Array<string>;
489
+ export const DatabaseWriteRoleRequestRevocationStatementsList =
490
+ /*@__PURE__*/ S.Array(
491
+ S.String,
492
+ ) as any as S.Schema<DatabaseWriteRoleRequestRevocationStatementsList>;
493
+
494
+ /** Specifies the database statements to be executed rollback a create operation in the event of an error. Not every plugin type will support this functionality. See the plugin's API page for more information on support and formatting for this parameter. */
495
+ export type DatabaseWriteRoleRequestRollbackStatementsList = Array<string>;
496
+ export const DatabaseWriteRoleRequestRollbackStatementsList =
497
+ /*@__PURE__*/ S.Array(
498
+ S.String,
499
+ ) as any as S.Schema<DatabaseWriteRoleRequestRollbackStatementsList>;
500
+
501
+ export interface DatabaseWriteRoleRequest {
502
+ /** Path that the backend was mounted at */
503
+ database_mount_path: string;
504
+ /** Name of the role. */
505
+ name: string;
506
+ /** Specifies the database statements executed to create and configure a user. See the plugin's API page for more information on support and formatting for this parameter. */
507
+ creation_statements?: DatabaseWriteRoleRequestCreationStatementsList;
508
+ /** The configuration for the given credential_type. */
509
+ credential_config?: unknown;
510
+ /** The type of credential to manage. Options include: 'password', 'rsa_private_key'. Defaults to 'password'. */
511
+ credential_type?: string;
512
+ /** Name of the database this role acts on. */
513
+ db_name?: string;
514
+ /** Default ttl for role. */
515
+ default_ttl?: number;
516
+ /** Maximum time a credential is valid for */
517
+ max_ttl?: number;
518
+ /** Specifies the database statements to be executed to renew a user. Not every plugin type will support this functionality. See the plugin's API page for more information on support and formatting for this parameter. */
519
+ renew_statements?: DatabaseWriteRoleRequestRenewStatementsList;
520
+ /** Specifies the database statements to be executed to revoke a user. See the plugin's API page for more information on support and formatting for this parameter. */
521
+ revocation_statements?: DatabaseWriteRoleRequestRevocationStatementsList;
522
+ /** Specifies the database statements to be executed rollback a create operation in the event of an error. Not every plugin type will support this functionality. See the plugin's API page for more information on support and formatting for this parameter. */
523
+ rollback_statements?: DatabaseWriteRoleRequestRollbackStatementsList;
524
+ }
525
+ export const DatabaseWriteRoleRequest = /*@__PURE__*/ S.suspend(() =>
526
+ S.Struct({
527
+ database_mount_path: S.String.pipe(T.Label()),
528
+ name: S.String.pipe(T.Label()),
529
+ creation_statements: S.optional(
530
+ DatabaseWriteRoleRequestCreationStatementsList,
531
+ ),
532
+ credential_config: S.optional(S.Unknown),
533
+ credential_type: S.optional(S.String),
534
+ db_name: S.optional(S.String),
535
+ default_ttl: S.optional(S.Number),
536
+ max_ttl: S.optional(S.Number),
537
+ renew_statements: S.optional(DatabaseWriteRoleRequestRenewStatementsList),
538
+ revocation_statements: S.optional(
539
+ DatabaseWriteRoleRequestRevocationStatementsList,
540
+ ),
541
+ rollback_statements: S.optional(
542
+ DatabaseWriteRoleRequestRollbackStatementsList,
543
+ ),
544
+ }).pipe(
545
+ T.Http({
546
+ method: "POST",
547
+ uri: "/{database_mount_path}/roles/{name}",
548
+ code: 200,
549
+ }),
550
+ ),
551
+ ).annotate({
552
+ identifier: "DatabaseWriteRoleRequest",
553
+ }) as any as S.Schema<DatabaseWriteRoleRequest>;
554
+
555
+ export interface DatabaseWriteRoleResponse {}
556
+ export const DatabaseWriteRoleResponse = /*@__PURE__*/ S.suspend(() =>
557
+ S.Struct({}),
558
+ ).annotate({
559
+ identifier: "DatabaseWriteRoleResponse",
560
+ }) as any as S.Schema<DatabaseWriteRoleResponse>;
561
+
562
+ /** Specifies the database statements to be executed to rotate the accounts credentials. Not every plugin type will support this functionality. See the plugin's API page for more information on support and formatting for this parameter. */
563
+ export type DatabaseWriteStaticRoleRequestRotationStatementsList =
564
+ Array<string>;
565
+ export const DatabaseWriteStaticRoleRequestRotationStatementsList =
566
+ /*@__PURE__*/ S.Array(
567
+ S.String,
568
+ ) as any as S.Schema<DatabaseWriteStaticRoleRequestRotationStatementsList>;
569
+
570
+ export interface DatabaseWriteStaticRoleRequest {
571
+ /** Path that the backend was mounted at */
572
+ database_mount_path: string;
573
+ /** Name of the role. */
574
+ name: string;
575
+ /** The configuration for the given credential_type. */
576
+ credential_config?: unknown;
577
+ /** The type of credential to manage. Options include: 'password', 'rsa_private_key'. Defaults to 'password'. */
578
+ credential_type?: string;
579
+ /** Name of the database this role acts on. */
580
+ db_name?: string;
581
+ /** Period for automatic credential rotation of the given username. Not valid unless used with "username". */
582
+ rotation_period?: number;
583
+ /** Specifies the database statements to be executed to rotate the accounts credentials. Not every plugin type will support this functionality. See the plugin's API page for more information on support and formatting for this parameter. */
584
+ rotation_statements?: DatabaseWriteStaticRoleRequestRotationStatementsList;
585
+ /** Name of the static user account for OpenBao to manage. Requires "rotation_period" to be specified */
586
+ username?: string;
587
+ }
588
+ export const DatabaseWriteStaticRoleRequest = /*@__PURE__*/ S.suspend(() =>
589
+ S.Struct({
590
+ database_mount_path: S.String.pipe(T.Label()),
591
+ name: S.String.pipe(T.Label()),
592
+ credential_config: S.optional(S.Unknown),
593
+ credential_type: S.optional(S.String),
594
+ db_name: S.optional(S.String),
595
+ rotation_period: S.optional(S.Number),
596
+ rotation_statements: S.optional(
597
+ DatabaseWriteStaticRoleRequestRotationStatementsList,
598
+ ),
599
+ username: S.optional(S.String),
600
+ }).pipe(
601
+ T.Http({
602
+ method: "POST",
603
+ uri: "/{database_mount_path}/static-roles/{name}",
604
+ code: 200,
605
+ }),
606
+ ),
607
+ ).annotate({
608
+ identifier: "DatabaseWriteStaticRoleRequest",
609
+ }) as any as S.Schema<DatabaseWriteStaticRoleRequest>;
610
+
611
+ export interface DatabaseWriteStaticRoleResponse {}
612
+ export const DatabaseWriteStaticRoleResponse = /*@__PURE__*/ S.suspend(() =>
613
+ S.Struct({}),
614
+ ).annotate({
615
+ identifier: "DatabaseWriteStaticRoleResponse",
616
+ }) as any as S.Schema<DatabaseWriteStaticRoleResponse>;
617
+
618
+ export type DatabaseConfigureConnectionError = OpenBaoOpError;
619
+ export const databaseConfigureConnection: API.OperationMethod<
620
+ DatabaseConfigureConnectionRequest,
621
+ DatabaseConfigureConnectionResponse,
622
+ DatabaseConfigureConnectionError,
623
+ OpenBaoOpContext
624
+ > = /*@__PURE__*/ API.make(() => ({
625
+ input: DatabaseConfigureConnectionRequest,
626
+ output: DatabaseConfigureConnectionResponse,
627
+ errors: [],
628
+ protocol: OpenBaoProtocol,
629
+ retry: Retry.Retry,
630
+ }));
631
+
632
+ export type DatabaseDeleteConnectionConfigurationError = OpenBaoOpError;
633
+ export const databaseDeleteConnectionConfiguration: API.OperationMethod<
634
+ DatabaseDeleteConnectionConfigurationRequest,
635
+ DatabaseDeleteConnectionConfigurationResponse,
636
+ DatabaseDeleteConnectionConfigurationError,
637
+ OpenBaoOpContext
638
+ > = /*@__PURE__*/ API.make(() => ({
639
+ input: DatabaseDeleteConnectionConfigurationRequest,
640
+ output: DatabaseDeleteConnectionConfigurationResponse,
641
+ errors: [],
642
+ protocol: OpenBaoProtocol,
643
+ retry: Retry.Retry,
644
+ }));
645
+
646
+ export type DatabaseDeleteRoleError = OpenBaoOpError;
647
+ export const databaseDeleteRole: API.OperationMethod<
648
+ DatabaseDeleteRoleRequest,
649
+ DatabaseDeleteRoleResponse,
650
+ DatabaseDeleteRoleError,
651
+ OpenBaoOpContext
652
+ > = /*@__PURE__*/ API.make(() => ({
653
+ input: DatabaseDeleteRoleRequest,
654
+ output: DatabaseDeleteRoleResponse,
655
+ errors: [],
656
+ protocol: OpenBaoProtocol,
657
+ retry: Retry.Retry,
658
+ }));
659
+
660
+ export type DatabaseDeleteStaticRoleError = OpenBaoOpError;
661
+ export const databaseDeleteStaticRole: API.OperationMethod<
662
+ DatabaseDeleteStaticRoleRequest,
663
+ DatabaseDeleteStaticRoleResponse,
664
+ DatabaseDeleteStaticRoleError,
665
+ OpenBaoOpContext
666
+ > = /*@__PURE__*/ API.make(() => ({
667
+ input: DatabaseDeleteStaticRoleRequest,
668
+ output: DatabaseDeleteStaticRoleResponse,
669
+ errors: [],
670
+ protocol: OpenBaoProtocol,
671
+ retry: Retry.Retry,
672
+ }));
673
+
674
+ export type DatabaseGenerateCredentialsError = OpenBaoOpError;
675
+ export const databaseGenerateCredentials: API.OperationMethod<
676
+ DatabaseGenerateCredentialsRequest,
677
+ DatabaseGenerateCredentialsResponse,
678
+ DatabaseGenerateCredentialsError,
679
+ OpenBaoOpContext
680
+ > = /*@__PURE__*/ API.make(() => ({
681
+ input: DatabaseGenerateCredentialsRequest,
682
+ output: DatabaseGenerateCredentialsResponse,
683
+ errors: [],
684
+ protocol: OpenBaoProtocol,
685
+ retry: Retry.Retry,
686
+ }));
687
+
688
+ export type DatabaseListConnectionsError = OpenBaoOpError;
689
+ export const databaseListConnections: API.OperationMethod<
690
+ DatabaseListConnectionsRequest,
691
+ DatabaseListConnectionsResponse,
692
+ DatabaseListConnectionsError,
693
+ OpenBaoOpContext
694
+ > = /*@__PURE__*/ API.make(() => ({
695
+ input: DatabaseListConnectionsRequest,
696
+ output: DatabaseListConnectionsResponse,
697
+ errors: [],
698
+ protocol: OpenBaoProtocol,
699
+ retry: Retry.Retry,
700
+ }));
701
+
702
+ export type DatabaseListRolesError = OpenBaoOpError;
703
+ export const databaseListRoles: API.OperationMethod<
704
+ DatabaseListRolesRequest,
705
+ DatabaseListRolesResponse,
706
+ DatabaseListRolesError,
707
+ OpenBaoOpContext
708
+ > = /*@__PURE__*/ API.make(() => ({
709
+ input: DatabaseListRolesRequest,
710
+ output: DatabaseListRolesResponse,
711
+ errors: [],
712
+ protocol: OpenBaoProtocol,
713
+ retry: Retry.Retry,
714
+ }));
715
+
716
+ export type DatabaseListStaticRolesError = OpenBaoOpError;
717
+ export const databaseListStaticRoles: API.OperationMethod<
718
+ DatabaseListStaticRolesRequest,
719
+ DatabaseListStaticRolesResponse,
720
+ DatabaseListStaticRolesError,
721
+ OpenBaoOpContext
722
+ > = /*@__PURE__*/ API.make(() => ({
723
+ input: DatabaseListStaticRolesRequest,
724
+ output: DatabaseListStaticRolesResponse,
725
+ errors: [],
726
+ protocol: OpenBaoProtocol,
727
+ retry: Retry.Retry,
728
+ }));
729
+
730
+ export type DatabaseReadConnectionConfigurationError = OpenBaoOpError;
731
+ export const databaseReadConnectionConfiguration: API.OperationMethod<
732
+ DatabaseReadConnectionConfigurationRequest,
733
+ DatabaseReadConnectionConfigurationResponse,
734
+ DatabaseReadConnectionConfigurationError,
735
+ OpenBaoOpContext
736
+ > = /*@__PURE__*/ API.make(() => ({
737
+ input: DatabaseReadConnectionConfigurationRequest,
738
+ output: DatabaseReadConnectionConfigurationResponse,
739
+ errors: [],
740
+ protocol: OpenBaoProtocol,
741
+ retry: Retry.Retry,
742
+ }));
743
+
744
+ export type DatabaseReadRoleError = OpenBaoOpError;
745
+ export const databaseReadRole: API.OperationMethod<
746
+ DatabaseReadRoleRequest,
747
+ DatabaseReadRoleResponse,
748
+ DatabaseReadRoleError,
749
+ OpenBaoOpContext
750
+ > = /*@__PURE__*/ API.make(() => ({
751
+ input: DatabaseReadRoleRequest,
752
+ output: DatabaseReadRoleResponse,
753
+ errors: [],
754
+ protocol: OpenBaoProtocol,
755
+ retry: Retry.Retry,
756
+ }));
757
+
758
+ export type DatabaseReadStaticRoleError = OpenBaoOpError;
759
+ export const databaseReadStaticRole: API.OperationMethod<
760
+ DatabaseReadStaticRoleRequest,
761
+ DatabaseReadStaticRoleResponse,
762
+ DatabaseReadStaticRoleError,
763
+ OpenBaoOpContext
764
+ > = /*@__PURE__*/ API.make(() => ({
765
+ input: DatabaseReadStaticRoleRequest,
766
+ output: DatabaseReadStaticRoleResponse,
767
+ errors: [],
768
+ protocol: OpenBaoProtocol,
769
+ retry: Retry.Retry,
770
+ }));
771
+
772
+ export type DatabaseReadStaticRoleCredentialsError = OpenBaoOpError;
773
+ export const databaseReadStaticRoleCredentials: API.OperationMethod<
774
+ DatabaseReadStaticRoleCredentialsRequest,
775
+ DatabaseReadStaticRoleCredentialsResponse,
776
+ DatabaseReadStaticRoleCredentialsError,
777
+ OpenBaoOpContext
778
+ > = /*@__PURE__*/ API.make(() => ({
779
+ input: DatabaseReadStaticRoleCredentialsRequest,
780
+ output: DatabaseReadStaticRoleCredentialsResponse,
781
+ errors: [],
782
+ protocol: OpenBaoProtocol,
783
+ retry: Retry.Retry,
784
+ }));
785
+
786
+ export type DatabaseResetConnectionError = OpenBaoOpError;
787
+ export const databaseResetConnection: API.OperationMethod<
788
+ DatabaseResetConnectionRequest,
789
+ DatabaseResetConnectionResponse,
790
+ DatabaseResetConnectionError,
791
+ OpenBaoOpContext
792
+ > = /*@__PURE__*/ API.make(() => ({
793
+ input: DatabaseResetConnectionRequest,
794
+ output: DatabaseResetConnectionResponse,
795
+ errors: [],
796
+ protocol: OpenBaoProtocol,
797
+ retry: Retry.Retry,
798
+ }));
799
+
800
+ export type DatabaseRotateRootCredentialsError = OpenBaoOpError;
801
+ export const databaseRotateRootCredentials: API.OperationMethod<
802
+ DatabaseRotateRootCredentialsRequest,
803
+ DatabaseRotateRootCredentialsResponse,
804
+ DatabaseRotateRootCredentialsError,
805
+ OpenBaoOpContext
806
+ > = /*@__PURE__*/ API.make(() => ({
807
+ input: DatabaseRotateRootCredentialsRequest,
808
+ output: DatabaseRotateRootCredentialsResponse,
809
+ errors: [],
810
+ protocol: OpenBaoProtocol,
811
+ retry: Retry.Retry,
812
+ }));
813
+
814
+ export type DatabaseRotateStaticRoleCredentialsError = OpenBaoOpError;
815
+ export const databaseRotateStaticRoleCredentials: API.OperationMethod<
816
+ DatabaseRotateStaticRoleCredentialsRequest,
817
+ DatabaseRotateStaticRoleCredentialsResponse,
818
+ DatabaseRotateStaticRoleCredentialsError,
819
+ OpenBaoOpContext
820
+ > = /*@__PURE__*/ API.make(() => ({
821
+ input: DatabaseRotateStaticRoleCredentialsRequest,
822
+ output: DatabaseRotateStaticRoleCredentialsResponse,
823
+ errors: [],
824
+ protocol: OpenBaoProtocol,
825
+ retry: Retry.Retry,
826
+ }));
827
+
828
+ export type DatabaseWriteRoleError = OpenBaoOpError;
829
+ export const databaseWriteRole: API.OperationMethod<
830
+ DatabaseWriteRoleRequest,
831
+ DatabaseWriteRoleResponse,
832
+ DatabaseWriteRoleError,
833
+ OpenBaoOpContext
834
+ > = /*@__PURE__*/ API.make(() => ({
835
+ input: DatabaseWriteRoleRequest,
836
+ output: DatabaseWriteRoleResponse,
837
+ errors: [],
838
+ protocol: OpenBaoProtocol,
839
+ retry: Retry.Retry,
840
+ }));
841
+
842
+ export type DatabaseWriteStaticRoleError = OpenBaoOpError;
843
+ export const databaseWriteStaticRole: API.OperationMethod<
844
+ DatabaseWriteStaticRoleRequest,
845
+ DatabaseWriteStaticRoleResponse,
846
+ DatabaseWriteStaticRoleError,
847
+ OpenBaoOpContext
848
+ > = /*@__PURE__*/ API.make(() => ({
849
+ input: DatabaseWriteStaticRoleRequest,
850
+ output: DatabaseWriteStaticRoleResponse,
851
+ errors: [],
852
+ protocol: OpenBaoProtocol,
853
+ retry: Retry.Retry,
854
+ }));