@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,744 @@
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
+ /** Policies to be tied to the entity. */
15
+ export type CreateEntityRequestPoliciesList = Array<string>;
16
+ export const CreateEntityRequestPoliciesList = /*@__PURE__*/ S.Array(
17
+ S.String,
18
+ ) as any as S.Schema<CreateEntityRequestPoliciesList>;
19
+
20
+ export interface CreateEntityRequest {
21
+ /** If set true, tokens tied to this identity will not be able to be used (but will not be revoked). */
22
+ disabled?: boolean;
23
+ /** ID of the entity. If set, updates the corresponding existing entity. */
24
+ id?: string;
25
+ /** Metadata to be associated with the entity. In CLI, this parameter can be repeated multiple times, and it all gets merged together. For example: bao <command> <path> metadata=key1=value1 metadata=key2=value2 */
26
+ metadata?: unknown;
27
+ /** Name of the entity */
28
+ name?: string;
29
+ /** Policies to be tied to the entity. */
30
+ policies?: CreateEntityRequestPoliciesList;
31
+ }
32
+ export const CreateEntityRequest = /*@__PURE__*/ S.suspend(() =>
33
+ S.Struct({
34
+ disabled: S.optional(S.Boolean),
35
+ id: S.optional(S.String),
36
+ metadata: S.optional(S.Unknown),
37
+ name: S.optional(S.String),
38
+ policies: S.optional(CreateEntityRequestPoliciesList),
39
+ }).pipe(T.Http({ method: "POST", uri: "/identity/entity", code: 200 })),
40
+ ).annotate({
41
+ identifier: "CreateEntityRequest",
42
+ }) as any as S.Schema<CreateEntityRequest>;
43
+
44
+ export interface CreateEntityResponse {}
45
+ export const CreateEntityResponse = /*@__PURE__*/ S.suspend(() =>
46
+ S.Struct({}),
47
+ ).annotate({
48
+ identifier: "CreateEntityResponse",
49
+ }) as any as S.Schema<CreateEntityResponse>;
50
+
51
+ /** Entity IDs to delete */
52
+ export type DeleteEntityBatchRequestEntityIdsList = Array<string>;
53
+ export const DeleteEntityBatchRequestEntityIdsList = /*@__PURE__*/ S.Array(
54
+ S.String,
55
+ ) as any as S.Schema<DeleteEntityBatchRequestEntityIdsList>;
56
+
57
+ export interface DeleteEntityBatchRequest {
58
+ /** Entity IDs to delete */
59
+ entity_ids?: DeleteEntityBatchRequestEntityIdsList;
60
+ }
61
+ export const DeleteEntityBatchRequest = /*@__PURE__*/ S.suspend(() =>
62
+ S.Struct({
63
+ entity_ids: S.optional(DeleteEntityBatchRequestEntityIdsList),
64
+ }).pipe(
65
+ T.Http({ method: "POST", uri: "/identity/entity/batch-delete", code: 200 }),
66
+ ),
67
+ ).annotate({
68
+ identifier: "DeleteEntityBatchRequest",
69
+ }) as any as S.Schema<DeleteEntityBatchRequest>;
70
+
71
+ export interface DeleteEntityBatchResponse {}
72
+ export const DeleteEntityBatchResponse = /*@__PURE__*/ S.suspend(() =>
73
+ S.Struct({}),
74
+ ).annotate({
75
+ identifier: "DeleteEntityBatchResponse",
76
+ }) as any as S.Schema<DeleteEntityBatchResponse>;
77
+
78
+ export interface EntityCreateAliasRequest {
79
+ /** Entity ID to which this alias belongs */
80
+ canonical_id?: string;
81
+ /** User provided key-value pairs */
82
+ custom_metadata?: unknown;
83
+ /** Entity ID to which this alias belongs. This field is deprecated, use canonical_id. */
84
+ entity_id?: string;
85
+ /** ID of the entity alias. If set, updates the corresponding entity alias. */
86
+ id?: string;
87
+ /** Mount accessor to which this alias belongs to; unused for a modify */
88
+ mount_accessor?: string;
89
+ /** Name of the alias; unused for a modify */
90
+ name?: string;
91
+ }
92
+ export const EntityCreateAliasRequest = /*@__PURE__*/ S.suspend(() =>
93
+ S.Struct({
94
+ canonical_id: S.optional(S.String),
95
+ custom_metadata: S.optional(S.Unknown),
96
+ entity_id: S.optional(S.String),
97
+ id: S.optional(S.String),
98
+ mount_accessor: S.optional(S.String),
99
+ name: S.optional(S.String),
100
+ }).pipe(T.Http({ method: "POST", uri: "/identity/entity-alias", code: 200 })),
101
+ ).annotate({
102
+ identifier: "EntityCreateAliasRequest",
103
+ }) as any as S.Schema<EntityCreateAliasRequest>;
104
+
105
+ export interface EntityCreateAliasResponse {}
106
+ export const EntityCreateAliasResponse = /*@__PURE__*/ S.suspend(() =>
107
+ S.Struct({}),
108
+ ).annotate({
109
+ identifier: "EntityCreateAliasResponse",
110
+ }) as any as S.Schema<EntityCreateAliasResponse>;
111
+
112
+ export interface EntityDeleteAliasByIdRequest {
113
+ /** ID of the alias */
114
+ id: string;
115
+ }
116
+ export const EntityDeleteAliasByIdRequest = /*@__PURE__*/ S.suspend(() =>
117
+ S.Struct({
118
+ id: S.String.pipe(T.Label()),
119
+ }).pipe(
120
+ T.Http({
121
+ method: "DELETE",
122
+ uri: "/identity/entity-alias/id/{id}",
123
+ code: 200,
124
+ }),
125
+ ),
126
+ ).annotate({
127
+ identifier: "EntityDeleteAliasByIdRequest",
128
+ }) as any as S.Schema<EntityDeleteAliasByIdRequest>;
129
+
130
+ export interface EntityDeleteAliasByIdResponse {}
131
+ export const EntityDeleteAliasByIdResponse = /*@__PURE__*/ S.suspend(() =>
132
+ S.Struct({}),
133
+ ).annotate({
134
+ identifier: "EntityDeleteAliasByIdResponse",
135
+ }) as any as S.Schema<EntityDeleteAliasByIdResponse>;
136
+
137
+ export interface EntityDeleteByIdRequest {
138
+ /** ID of the entity. If set, updates the corresponding existing entity. */
139
+ id: string;
140
+ }
141
+ export const EntityDeleteByIdRequest = /*@__PURE__*/ S.suspend(() =>
142
+ S.Struct({
143
+ id: S.String.pipe(T.Label()),
144
+ }).pipe(
145
+ T.Http({ method: "DELETE", uri: "/identity/entity/id/{id}", code: 200 }),
146
+ ),
147
+ ).annotate({
148
+ identifier: "EntityDeleteByIdRequest",
149
+ }) as any as S.Schema<EntityDeleteByIdRequest>;
150
+
151
+ export interface EntityDeleteByIdResponse {}
152
+ export const EntityDeleteByIdResponse = /*@__PURE__*/ S.suspend(() =>
153
+ S.Struct({}),
154
+ ).annotate({
155
+ identifier: "EntityDeleteByIdResponse",
156
+ }) as any as S.Schema<EntityDeleteByIdResponse>;
157
+
158
+ export interface EntityDeleteByNameRequest {
159
+ /** Name of the entity */
160
+ name: string;
161
+ }
162
+ export const EntityDeleteByNameRequest = /*@__PURE__*/ S.suspend(() =>
163
+ S.Struct({
164
+ name: S.String.pipe(T.Label()),
165
+ }).pipe(
166
+ T.Http({
167
+ method: "DELETE",
168
+ uri: "/identity/entity/name/{name}",
169
+ code: 200,
170
+ }),
171
+ ),
172
+ ).annotate({
173
+ identifier: "EntityDeleteByNameRequest",
174
+ }) as any as S.Schema<EntityDeleteByNameRequest>;
175
+
176
+ export interface EntityDeleteByNameResponse {}
177
+ export const EntityDeleteByNameResponse = /*@__PURE__*/ S.suspend(() =>
178
+ S.Struct({}),
179
+ ).annotate({
180
+ identifier: "EntityDeleteByNameResponse",
181
+ }) as any as S.Schema<EntityDeleteByNameResponse>;
182
+
183
+ export type EntityListAliasesByIdRequestList = "true";
184
+ export const EntityListAliasesByIdRequestList = S.String;
185
+
186
+ export interface EntityListAliasesByIdRequest {
187
+ /** Must be set to `true` */
188
+ list: EntityListAliasesByIdRequestList | (string & {});
189
+ }
190
+ export const EntityListAliasesByIdRequest = /*@__PURE__*/ S.suspend(() =>
191
+ S.Struct({
192
+ list: EntityListAliasesByIdRequestList.pipe(T.Query()),
193
+ }).pipe(
194
+ T.Http({ method: "GET", uri: "/identity/entity-alias/id", code: 200 }),
195
+ ),
196
+ ).annotate({
197
+ identifier: "EntityListAliasesByIdRequest",
198
+ }) as any as S.Schema<EntityListAliasesByIdRequest>;
199
+
200
+ export interface EntityListAliasesByIdResponse {}
201
+ export const EntityListAliasesByIdResponse = /*@__PURE__*/ S.suspend(() =>
202
+ S.Struct({}),
203
+ ).annotate({
204
+ identifier: "EntityListAliasesByIdResponse",
205
+ }) as any as S.Schema<EntityListAliasesByIdResponse>;
206
+
207
+ export type EntityListByIdRequestList = "true";
208
+ export const EntityListByIdRequestList = S.String;
209
+
210
+ export interface EntityListByIdRequest {
211
+ /** Must be set to `true` */
212
+ list: EntityListByIdRequestList | (string & {});
213
+ }
214
+ export const EntityListByIdRequest = /*@__PURE__*/ S.suspend(() =>
215
+ S.Struct({
216
+ list: EntityListByIdRequestList.pipe(T.Query()),
217
+ }).pipe(T.Http({ method: "GET", uri: "/identity/entity/id", code: 200 })),
218
+ ).annotate({
219
+ identifier: "EntityListByIdRequest",
220
+ }) as any as S.Schema<EntityListByIdRequest>;
221
+
222
+ export interface EntityListByIdResponse {}
223
+ export const EntityListByIdResponse = /*@__PURE__*/ S.suspend(() =>
224
+ S.Struct({}),
225
+ ).annotate({
226
+ identifier: "EntityListByIdResponse",
227
+ }) as any as S.Schema<EntityListByIdResponse>;
228
+
229
+ export type EntityListByNameRequestList = "true";
230
+ export const EntityListByNameRequestList = S.String;
231
+
232
+ export interface EntityListByNameRequest {
233
+ /** Must be set to `true` */
234
+ list: EntityListByNameRequestList | (string & {});
235
+ }
236
+ export const EntityListByNameRequest = /*@__PURE__*/ S.suspend(() =>
237
+ S.Struct({
238
+ list: EntityListByNameRequestList.pipe(T.Query()),
239
+ }).pipe(T.Http({ method: "GET", uri: "/identity/entity/name", code: 200 })),
240
+ ).annotate({
241
+ identifier: "EntityListByNameRequest",
242
+ }) as any as S.Schema<EntityListByNameRequest>;
243
+
244
+ export interface EntityListByNameResponse {}
245
+ export const EntityListByNameResponse = /*@__PURE__*/ S.suspend(() =>
246
+ S.Struct({}),
247
+ ).annotate({
248
+ identifier: "EntityListByNameResponse",
249
+ }) as any as S.Schema<EntityListByNameResponse>;
250
+
251
+ export interface EntityLookUpRequest {
252
+ /** ID of the alias. */
253
+ alias_id?: string;
254
+ /** Accessor of the mount to which the alias belongs to. This should be supplied in conjunction with 'alias_name'. */
255
+ alias_mount_accessor?: string;
256
+ /** Name of the alias. This should be supplied in conjunction with 'alias_mount_accessor'. */
257
+ alias_name?: string;
258
+ /** ID of the entity. */
259
+ id?: string;
260
+ /** Name of the entity. */
261
+ name?: string;
262
+ }
263
+ export const EntityLookUpRequest = /*@__PURE__*/ S.suspend(() =>
264
+ S.Struct({
265
+ alias_id: S.optional(S.String),
266
+ alias_mount_accessor: S.optional(S.String),
267
+ alias_name: S.optional(S.String),
268
+ id: S.optional(S.String),
269
+ name: S.optional(S.String),
270
+ }).pipe(
271
+ T.Http({ method: "POST", uri: "/identity/lookup/entity", code: 200 }),
272
+ ),
273
+ ).annotate({
274
+ identifier: "EntityLookUpRequest",
275
+ }) as any as S.Schema<EntityLookUpRequest>;
276
+
277
+ export interface EntityLookUpResponse {}
278
+ export const EntityLookUpResponse = /*@__PURE__*/ S.suspend(() =>
279
+ S.Struct({}),
280
+ ).annotate({
281
+ identifier: "EntityLookUpResponse",
282
+ }) as any as S.Schema<EntityLookUpResponse>;
283
+
284
+ export interface EntityReadAliasByIdRequest {
285
+ /** ID of the alias */
286
+ id: string;
287
+ }
288
+ export const EntityReadAliasByIdRequest = /*@__PURE__*/ S.suspend(() =>
289
+ S.Struct({
290
+ id: S.String.pipe(T.Label()),
291
+ }).pipe(
292
+ T.Http({ method: "GET", uri: "/identity/entity-alias/id/{id}", code: 200 }),
293
+ ),
294
+ ).annotate({
295
+ identifier: "EntityReadAliasByIdRequest",
296
+ }) as any as S.Schema<EntityReadAliasByIdRequest>;
297
+
298
+ export interface EntityReadAliasByIdResponse {}
299
+ export const EntityReadAliasByIdResponse = /*@__PURE__*/ S.suspend(() =>
300
+ S.Struct({}),
301
+ ).annotate({
302
+ identifier: "EntityReadAliasByIdResponse",
303
+ }) as any as S.Schema<EntityReadAliasByIdResponse>;
304
+
305
+ export interface EntityReadByIdRequest {
306
+ /** ID of the entity. If set, updates the corresponding existing entity. */
307
+ id: string;
308
+ }
309
+ export const EntityReadByIdRequest = /*@__PURE__*/ S.suspend(() =>
310
+ S.Struct({
311
+ id: S.String.pipe(T.Label()),
312
+ }).pipe(
313
+ T.Http({ method: "GET", uri: "/identity/entity/id/{id}", code: 200 }),
314
+ ),
315
+ ).annotate({
316
+ identifier: "EntityReadByIdRequest",
317
+ }) as any as S.Schema<EntityReadByIdRequest>;
318
+
319
+ export interface EntityReadByIdResponse {}
320
+ export const EntityReadByIdResponse = /*@__PURE__*/ S.suspend(() =>
321
+ S.Struct({}),
322
+ ).annotate({
323
+ identifier: "EntityReadByIdResponse",
324
+ }) as any as S.Schema<EntityReadByIdResponse>;
325
+
326
+ export interface EntityReadByNameRequest {
327
+ /** Name of the entity */
328
+ name: string;
329
+ }
330
+ export const EntityReadByNameRequest = /*@__PURE__*/ S.suspend(() =>
331
+ S.Struct({
332
+ name: S.String.pipe(T.Label()),
333
+ }).pipe(
334
+ T.Http({ method: "GET", uri: "/identity/entity/name/{name}", code: 200 }),
335
+ ),
336
+ ).annotate({
337
+ identifier: "EntityReadByNameRequest",
338
+ }) as any as S.Schema<EntityReadByNameRequest>;
339
+
340
+ export interface EntityReadByNameResponse {}
341
+ export const EntityReadByNameResponse = /*@__PURE__*/ S.suspend(() =>
342
+ S.Struct({}),
343
+ ).annotate({
344
+ identifier: "EntityReadByNameResponse",
345
+ }) as any as S.Schema<EntityReadByNameResponse>;
346
+
347
+ export interface EntityUpdateAliasByIdRequest {
348
+ /** ID of the alias */
349
+ id: string;
350
+ /** Entity ID to which this alias should be tied to */
351
+ canonical_id?: string;
352
+ /** User provided key-value pairs */
353
+ custom_metadata?: unknown;
354
+ /** Entity ID to which this alias belongs to. This field is deprecated, use canonical_id. */
355
+ entity_id?: string;
356
+ /** (Unused) */
357
+ mount_accessor?: string;
358
+ /** (Unused) */
359
+ name?: string;
360
+ }
361
+ export const EntityUpdateAliasByIdRequest = /*@__PURE__*/ S.suspend(() =>
362
+ S.Struct({
363
+ id: S.String.pipe(T.Label()),
364
+ canonical_id: S.optional(S.String),
365
+ custom_metadata: S.optional(S.Unknown),
366
+ entity_id: S.optional(S.String),
367
+ mount_accessor: S.optional(S.String),
368
+ name: S.optional(S.String),
369
+ }).pipe(
370
+ T.Http({
371
+ method: "POST",
372
+ uri: "/identity/entity-alias/id/{id}",
373
+ code: 200,
374
+ }),
375
+ ),
376
+ ).annotate({
377
+ identifier: "EntityUpdateAliasByIdRequest",
378
+ }) as any as S.Schema<EntityUpdateAliasByIdRequest>;
379
+
380
+ export interface EntityUpdateAliasByIdResponse {}
381
+ export const EntityUpdateAliasByIdResponse = /*@__PURE__*/ S.suspend(() =>
382
+ S.Struct({}),
383
+ ).annotate({
384
+ identifier: "EntityUpdateAliasByIdResponse",
385
+ }) as any as S.Schema<EntityUpdateAliasByIdResponse>;
386
+
387
+ /** Policies to be tied to the entity. */
388
+ export type EntityUpdateByIdRequestPoliciesList = Array<string>;
389
+ export const EntityUpdateByIdRequestPoliciesList = /*@__PURE__*/ S.Array(
390
+ S.String,
391
+ ) as any as S.Schema<EntityUpdateByIdRequestPoliciesList>;
392
+
393
+ export interface EntityUpdateByIdRequest {
394
+ /** ID of the entity. If set, updates the corresponding existing entity. */
395
+ id: string;
396
+ /** If set true, tokens tied to this identity will not be able to be used (but will not be revoked). */
397
+ disabled?: boolean;
398
+ /** Metadata to be associated with the entity. In CLI, this parameter can be repeated multiple times, and it all gets merged together. For example: bao <command> <path> metadata=key1=value1 metadata=key2=value2 */
399
+ metadata?: unknown;
400
+ /** Name of the entity */
401
+ name?: string;
402
+ /** Policies to be tied to the entity. */
403
+ policies?: EntityUpdateByIdRequestPoliciesList;
404
+ }
405
+ export const EntityUpdateByIdRequest = /*@__PURE__*/ S.suspend(() =>
406
+ S.Struct({
407
+ id: S.String.pipe(T.Label()),
408
+ disabled: S.optional(S.Boolean),
409
+ metadata: S.optional(S.Unknown),
410
+ name: S.optional(S.String),
411
+ policies: S.optional(EntityUpdateByIdRequestPoliciesList),
412
+ }).pipe(
413
+ T.Http({ method: "POST", uri: "/identity/entity/id/{id}", code: 200 }),
414
+ ),
415
+ ).annotate({
416
+ identifier: "EntityUpdateByIdRequest",
417
+ }) as any as S.Schema<EntityUpdateByIdRequest>;
418
+
419
+ export interface EntityUpdateByIdResponse {}
420
+ export const EntityUpdateByIdResponse = /*@__PURE__*/ S.suspend(() =>
421
+ S.Struct({}),
422
+ ).annotate({
423
+ identifier: "EntityUpdateByIdResponse",
424
+ }) as any as S.Schema<EntityUpdateByIdResponse>;
425
+
426
+ /** Policies to be tied to the entity. */
427
+ export type EntityUpdateByNameRequestPoliciesList = Array<string>;
428
+ export const EntityUpdateByNameRequestPoliciesList = /*@__PURE__*/ S.Array(
429
+ S.String,
430
+ ) as any as S.Schema<EntityUpdateByNameRequestPoliciesList>;
431
+
432
+ export interface EntityUpdateByNameRequest {
433
+ /** Name of the entity */
434
+ name: string;
435
+ /** If set true, tokens tied to this identity will not be able to be used (but will not be revoked). */
436
+ disabled?: boolean;
437
+ /** ID of the entity. If set, updates the corresponding existing entity. */
438
+ id?: string;
439
+ /** Metadata to be associated with the entity. In CLI, this parameter can be repeated multiple times, and it all gets merged together. For example: bao <command> <path> metadata=key1=value1 metadata=key2=value2 */
440
+ metadata?: unknown;
441
+ /** Policies to be tied to the entity. */
442
+ policies?: EntityUpdateByNameRequestPoliciesList;
443
+ }
444
+ export const EntityUpdateByNameRequest = /*@__PURE__*/ S.suspend(() =>
445
+ S.Struct({
446
+ name: S.String.pipe(T.Label()),
447
+ disabled: S.optional(S.Boolean),
448
+ id: S.optional(S.String),
449
+ metadata: S.optional(S.Unknown),
450
+ policies: S.optional(EntityUpdateByNameRequestPoliciesList),
451
+ }).pipe(
452
+ T.Http({ method: "POST", uri: "/identity/entity/name/{name}", code: 200 }),
453
+ ),
454
+ ).annotate({
455
+ identifier: "EntityUpdateByNameRequest",
456
+ }) as any as S.Schema<EntityUpdateByNameRequest>;
457
+
458
+ export interface EntityUpdateByNameResponse {}
459
+ export const EntityUpdateByNameResponse = /*@__PURE__*/ S.suspend(() =>
460
+ S.Struct({}),
461
+ ).annotate({
462
+ identifier: "EntityUpdateByNameResponse",
463
+ }) as any as S.Schema<EntityUpdateByNameResponse>;
464
+
465
+ /** Alias IDs to keep in case of conflicting aliases. Ignored if no conflicting aliases found */
466
+ export type MergeEntityRequestConflictingAliasIdsToKeepList = Array<string>;
467
+ export const MergeEntityRequestConflictingAliasIdsToKeepList =
468
+ /*@__PURE__*/ S.Array(
469
+ S.String,
470
+ ) as any as S.Schema<MergeEntityRequestConflictingAliasIdsToKeepList>;
471
+
472
+ /** Entity IDs which need to get merged */
473
+ export type MergeEntityRequestFromEntityIdsList = Array<string>;
474
+ export const MergeEntityRequestFromEntityIdsList = /*@__PURE__*/ S.Array(
475
+ S.String,
476
+ ) as any as S.Schema<MergeEntityRequestFromEntityIdsList>;
477
+
478
+ export interface MergeEntityRequest {
479
+ /** Alias IDs to keep in case of conflicting aliases. Ignored if no conflicting aliases found */
480
+ conflicting_alias_ids_to_keep?: MergeEntityRequestConflictingAliasIdsToKeepList;
481
+ /** Setting this will follow the 'mine' strategy for merging MFA secrets. If there are secrets of the same type both in entities that are merged from and in entity into which all others are getting merged, secrets in the destination will be unaltered. If not set, this API will throw an error containing all the conflicts. */
482
+ force?: boolean;
483
+ /** Entity IDs which need to get merged */
484
+ from_entity_ids?: MergeEntityRequestFromEntityIdsList;
485
+ /** Entity ID into which all the other entities need to get merged */
486
+ to_entity_id?: string;
487
+ }
488
+ export const MergeEntityRequest = /*@__PURE__*/ S.suspend(() =>
489
+ S.Struct({
490
+ conflicting_alias_ids_to_keep: S.optional(
491
+ MergeEntityRequestConflictingAliasIdsToKeepList,
492
+ ),
493
+ force: S.optional(S.Boolean),
494
+ from_entity_ids: S.optional(MergeEntityRequestFromEntityIdsList),
495
+ to_entity_id: S.optional(S.String),
496
+ }).pipe(T.Http({ method: "POST", uri: "/identity/entity/merge", code: 200 })),
497
+ ).annotate({
498
+ identifier: "MergeEntityRequest",
499
+ }) as any as S.Schema<MergeEntityRequest>;
500
+
501
+ export interface MergeEntityResponse {}
502
+ export const MergeEntityResponse = /*@__PURE__*/ S.suspend(() =>
503
+ S.Struct({}),
504
+ ).annotate({
505
+ identifier: "MergeEntityResponse",
506
+ }) as any as S.Schema<MergeEntityResponse>;
507
+
508
+ export type CreateEntityError = OpenBaoOpError;
509
+ export const createEntity: API.OperationMethod<
510
+ CreateEntityRequest,
511
+ CreateEntityResponse,
512
+ CreateEntityError,
513
+ OpenBaoOpContext
514
+ > = /*@__PURE__*/ API.make(() => ({
515
+ input: CreateEntityRequest,
516
+ output: CreateEntityResponse,
517
+ errors: [],
518
+ protocol: OpenBaoProtocol,
519
+ retry: Retry.Retry,
520
+ }));
521
+
522
+ export type DeleteEntityBatchError = OpenBaoOpError;
523
+ export const deleteEntityBatch: API.OperationMethod<
524
+ DeleteEntityBatchRequest,
525
+ DeleteEntityBatchResponse,
526
+ DeleteEntityBatchError,
527
+ OpenBaoOpContext
528
+ > = /*@__PURE__*/ API.make(() => ({
529
+ input: DeleteEntityBatchRequest,
530
+ output: DeleteEntityBatchResponse,
531
+ errors: [],
532
+ protocol: OpenBaoProtocol,
533
+ retry: Retry.Retry,
534
+ }));
535
+
536
+ export type EntityCreateAliasError = OpenBaoOpError;
537
+ export const entityCreateAlias: API.OperationMethod<
538
+ EntityCreateAliasRequest,
539
+ EntityCreateAliasResponse,
540
+ EntityCreateAliasError,
541
+ OpenBaoOpContext
542
+ > = /*@__PURE__*/ API.make(() => ({
543
+ input: EntityCreateAliasRequest,
544
+ output: EntityCreateAliasResponse,
545
+ errors: [],
546
+ protocol: OpenBaoProtocol,
547
+ retry: Retry.Retry,
548
+ }));
549
+
550
+ export type EntityDeleteAliasByIdError = OpenBaoOpError;
551
+ export const entityDeleteAliasById: API.OperationMethod<
552
+ EntityDeleteAliasByIdRequest,
553
+ EntityDeleteAliasByIdResponse,
554
+ EntityDeleteAliasByIdError,
555
+ OpenBaoOpContext
556
+ > = /*@__PURE__*/ API.make(() => ({
557
+ input: EntityDeleteAliasByIdRequest,
558
+ output: EntityDeleteAliasByIdResponse,
559
+ errors: [],
560
+ protocol: OpenBaoProtocol,
561
+ retry: Retry.Retry,
562
+ }));
563
+
564
+ export type EntityDeleteByIdError = OpenBaoOpError;
565
+ export const entityDeleteById: API.OperationMethod<
566
+ EntityDeleteByIdRequest,
567
+ EntityDeleteByIdResponse,
568
+ EntityDeleteByIdError,
569
+ OpenBaoOpContext
570
+ > = /*@__PURE__*/ API.make(() => ({
571
+ input: EntityDeleteByIdRequest,
572
+ output: EntityDeleteByIdResponse,
573
+ errors: [],
574
+ protocol: OpenBaoProtocol,
575
+ retry: Retry.Retry,
576
+ }));
577
+
578
+ export type EntityDeleteByNameError = OpenBaoOpError;
579
+ export const entityDeleteByName: API.OperationMethod<
580
+ EntityDeleteByNameRequest,
581
+ EntityDeleteByNameResponse,
582
+ EntityDeleteByNameError,
583
+ OpenBaoOpContext
584
+ > = /*@__PURE__*/ API.make(() => ({
585
+ input: EntityDeleteByNameRequest,
586
+ output: EntityDeleteByNameResponse,
587
+ errors: [],
588
+ protocol: OpenBaoProtocol,
589
+ retry: Retry.Retry,
590
+ }));
591
+
592
+ export type EntityListAliasesByIdError = OpenBaoOpError;
593
+ export const entityListAliasesById: API.OperationMethod<
594
+ EntityListAliasesByIdRequest,
595
+ EntityListAliasesByIdResponse,
596
+ EntityListAliasesByIdError,
597
+ OpenBaoOpContext
598
+ > = /*@__PURE__*/ API.make(() => ({
599
+ input: EntityListAliasesByIdRequest,
600
+ output: EntityListAliasesByIdResponse,
601
+ errors: [],
602
+ protocol: OpenBaoProtocol,
603
+ retry: Retry.Retry,
604
+ }));
605
+
606
+ export type EntityListByIdError = OpenBaoOpError;
607
+ export const entityListById: API.OperationMethod<
608
+ EntityListByIdRequest,
609
+ EntityListByIdResponse,
610
+ EntityListByIdError,
611
+ OpenBaoOpContext
612
+ > = /*@__PURE__*/ API.make(() => ({
613
+ input: EntityListByIdRequest,
614
+ output: EntityListByIdResponse,
615
+ errors: [],
616
+ protocol: OpenBaoProtocol,
617
+ retry: Retry.Retry,
618
+ }));
619
+
620
+ export type EntityListByNameError = OpenBaoOpError;
621
+ export const entityListByName: API.OperationMethod<
622
+ EntityListByNameRequest,
623
+ EntityListByNameResponse,
624
+ EntityListByNameError,
625
+ OpenBaoOpContext
626
+ > = /*@__PURE__*/ API.make(() => ({
627
+ input: EntityListByNameRequest,
628
+ output: EntityListByNameResponse,
629
+ errors: [],
630
+ protocol: OpenBaoProtocol,
631
+ retry: Retry.Retry,
632
+ }));
633
+
634
+ export type EntityLookUpError = OpenBaoOpError;
635
+ export const entityLookUp: API.OperationMethod<
636
+ EntityLookUpRequest,
637
+ EntityLookUpResponse,
638
+ EntityLookUpError,
639
+ OpenBaoOpContext
640
+ > = /*@__PURE__*/ API.make(() => ({
641
+ input: EntityLookUpRequest,
642
+ output: EntityLookUpResponse,
643
+ errors: [],
644
+ protocol: OpenBaoProtocol,
645
+ retry: Retry.Retry,
646
+ }));
647
+
648
+ export type EntityReadAliasByIdError = OpenBaoOpError;
649
+ export const entityReadAliasById: API.OperationMethod<
650
+ EntityReadAliasByIdRequest,
651
+ EntityReadAliasByIdResponse,
652
+ EntityReadAliasByIdError,
653
+ OpenBaoOpContext
654
+ > = /*@__PURE__*/ API.make(() => ({
655
+ input: EntityReadAliasByIdRequest,
656
+ output: EntityReadAliasByIdResponse,
657
+ errors: [],
658
+ protocol: OpenBaoProtocol,
659
+ retry: Retry.Retry,
660
+ }));
661
+
662
+ export type EntityReadByIdError = OpenBaoOpError;
663
+ export const entityReadById: API.OperationMethod<
664
+ EntityReadByIdRequest,
665
+ EntityReadByIdResponse,
666
+ EntityReadByIdError,
667
+ OpenBaoOpContext
668
+ > = /*@__PURE__*/ API.make(() => ({
669
+ input: EntityReadByIdRequest,
670
+ output: EntityReadByIdResponse,
671
+ errors: [],
672
+ protocol: OpenBaoProtocol,
673
+ retry: Retry.Retry,
674
+ }));
675
+
676
+ export type EntityReadByNameError = OpenBaoOpError;
677
+ export const entityReadByName: API.OperationMethod<
678
+ EntityReadByNameRequest,
679
+ EntityReadByNameResponse,
680
+ EntityReadByNameError,
681
+ OpenBaoOpContext
682
+ > = /*@__PURE__*/ API.make(() => ({
683
+ input: EntityReadByNameRequest,
684
+ output: EntityReadByNameResponse,
685
+ errors: [],
686
+ protocol: OpenBaoProtocol,
687
+ retry: Retry.Retry,
688
+ }));
689
+
690
+ export type EntityUpdateAliasByIdError = OpenBaoOpError;
691
+ export const entityUpdateAliasById: API.OperationMethod<
692
+ EntityUpdateAliasByIdRequest,
693
+ EntityUpdateAliasByIdResponse,
694
+ EntityUpdateAliasByIdError,
695
+ OpenBaoOpContext
696
+ > = /*@__PURE__*/ API.make(() => ({
697
+ input: EntityUpdateAliasByIdRequest,
698
+ output: EntityUpdateAliasByIdResponse,
699
+ errors: [],
700
+ protocol: OpenBaoProtocol,
701
+ retry: Retry.Retry,
702
+ }));
703
+
704
+ export type EntityUpdateByIdError = OpenBaoOpError;
705
+ export const entityUpdateById: API.OperationMethod<
706
+ EntityUpdateByIdRequest,
707
+ EntityUpdateByIdResponse,
708
+ EntityUpdateByIdError,
709
+ OpenBaoOpContext
710
+ > = /*@__PURE__*/ API.make(() => ({
711
+ input: EntityUpdateByIdRequest,
712
+ output: EntityUpdateByIdResponse,
713
+ errors: [],
714
+ protocol: OpenBaoProtocol,
715
+ retry: Retry.Retry,
716
+ }));
717
+
718
+ export type EntityUpdateByNameError = OpenBaoOpError;
719
+ export const entityUpdateByName: API.OperationMethod<
720
+ EntityUpdateByNameRequest,
721
+ EntityUpdateByNameResponse,
722
+ EntityUpdateByNameError,
723
+ OpenBaoOpContext
724
+ > = /*@__PURE__*/ API.make(() => ({
725
+ input: EntityUpdateByNameRequest,
726
+ output: EntityUpdateByNameResponse,
727
+ errors: [],
728
+ protocol: OpenBaoProtocol,
729
+ retry: Retry.Retry,
730
+ }));
731
+
732
+ export type MergeEntityError = OpenBaoOpError;
733
+ export const mergeEntity: API.OperationMethod<
734
+ MergeEntityRequest,
735
+ MergeEntityResponse,
736
+ MergeEntityError,
737
+ OpenBaoOpContext
738
+ > = /*@__PURE__*/ API.make(() => ({
739
+ input: MergeEntityRequest,
740
+ output: MergeEntityResponse,
741
+ errors: [],
742
+ protocol: OpenBaoProtocol,
743
+ retry: Retry.Retry,
744
+ }));