@meistrari/vault-http-client 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +50 -8
- package/dist/index.d.cts +5357 -2
- package/dist/index.d.mts +5357 -2
- package/dist/index.d.ts +5357 -2
- package/dist/index.mjs +50 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -43,11 +43,6 @@ const endpoints = core.makeApi([
|
|
|
43
43
|
type: "Query",
|
|
44
44
|
schema: zod.z.string()
|
|
45
45
|
},
|
|
46
|
-
{
|
|
47
|
-
name: "includeDeleted",
|
|
48
|
-
type: "Query",
|
|
49
|
-
schema: zod.z.enum(["true", "false"]).optional().default("false")
|
|
50
|
-
},
|
|
51
46
|
{
|
|
52
47
|
name: "limit",
|
|
53
48
|
type: "Query",
|
|
@@ -72,6 +67,16 @@ const endpoints = core.makeApi([
|
|
|
72
67
|
name: "search",
|
|
73
68
|
type: "Query",
|
|
74
69
|
schema: zod.z.string().optional()
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "includeDeleted",
|
|
73
|
+
type: "Query",
|
|
74
|
+
schema: zod.z.enum(["true", "false"]).optional().default("false")
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "includeChildren",
|
|
78
|
+
type: "Query",
|
|
79
|
+
schema: zod.z.enum(["true", "false"]).optional().default("false")
|
|
75
80
|
}
|
|
76
81
|
],
|
|
77
82
|
response: zod.z.object({
|
|
@@ -180,7 +185,44 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
180
185
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
181
186
|
createdAt: zod.z.string(),
|
|
182
187
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
183
|
-
uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
188
|
+
uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
189
|
+
children: zod.z.array(
|
|
190
|
+
zod.z.object({
|
|
191
|
+
id: zod.z.string(),
|
|
192
|
+
path: zod.z.string(),
|
|
193
|
+
workspaceId: zod.z.string(),
|
|
194
|
+
parentId: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
195
|
+
originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
196
|
+
mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
197
|
+
size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
|
|
198
|
+
legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
199
|
+
bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
200
|
+
encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
201
|
+
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
202
|
+
createdAt: zod.z.string(),
|
|
203
|
+
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
204
|
+
uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
205
|
+
})
|
|
206
|
+
),
|
|
207
|
+
parent: zod.z.union([
|
|
208
|
+
zod.z.object({
|
|
209
|
+
id: zod.z.string(),
|
|
210
|
+
path: zod.z.string(),
|
|
211
|
+
workspaceId: zod.z.string(),
|
|
212
|
+
parentId: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
213
|
+
originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
214
|
+
mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
215
|
+
size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
|
|
216
|
+
legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
217
|
+
bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
218
|
+
encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
219
|
+
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
220
|
+
createdAt: zod.z.string(),
|
|
221
|
+
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
222
|
+
uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
223
|
+
}),
|
|
224
|
+
zod.z.null()
|
|
225
|
+
])
|
|
184
226
|
}),
|
|
185
227
|
zod.z.null()
|
|
186
228
|
])
|
|
@@ -1272,8 +1314,8 @@ function useVaultClient(vaultUrl, token) {
|
|
|
1272
1314
|
const api = createApiClient(vaultUrl, {
|
|
1273
1315
|
axiosConfig: {
|
|
1274
1316
|
headers: {
|
|
1275
|
-
Authorization: token,
|
|
1276
|
-
"User-Agent": "vault-http-client:2.
|
|
1317
|
+
"Authorization": token,
|
|
1318
|
+
"User-Agent": "vault-http-client:2.5.0"
|
|
1277
1319
|
}
|
|
1278
1320
|
}
|
|
1279
1321
|
});
|