@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.mjs
CHANGED
|
@@ -41,11 +41,6 @@ const endpoints = makeApi([
|
|
|
41
41
|
type: "Query",
|
|
42
42
|
schema: z.string()
|
|
43
43
|
},
|
|
44
|
-
{
|
|
45
|
-
name: "includeDeleted",
|
|
46
|
-
type: "Query",
|
|
47
|
-
schema: z.enum(["true", "false"]).optional().default("false")
|
|
48
|
-
},
|
|
49
44
|
{
|
|
50
45
|
name: "limit",
|
|
51
46
|
type: "Query",
|
|
@@ -70,6 +65,16 @@ const endpoints = makeApi([
|
|
|
70
65
|
name: "search",
|
|
71
66
|
type: "Query",
|
|
72
67
|
schema: z.string().optional()
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "includeDeleted",
|
|
71
|
+
type: "Query",
|
|
72
|
+
schema: z.enum(["true", "false"]).optional().default("false")
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "includeChildren",
|
|
76
|
+
type: "Query",
|
|
77
|
+
schema: z.enum(["true", "false"]).optional().default("false")
|
|
73
78
|
}
|
|
74
79
|
],
|
|
75
80
|
response: z.object({
|
|
@@ -178,7 +183,44 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
178
183
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
179
184
|
createdAt: z.string(),
|
|
180
185
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
181
|
-
uploadedAt: z.union([z.string(), z.null()]).optional()
|
|
186
|
+
uploadedAt: z.union([z.string(), z.null()]).optional(),
|
|
187
|
+
children: z.array(
|
|
188
|
+
z.object({
|
|
189
|
+
id: z.string(),
|
|
190
|
+
path: z.string(),
|
|
191
|
+
workspaceId: z.string(),
|
|
192
|
+
parentId: z.union([z.string(), z.null()]).optional(),
|
|
193
|
+
originalFileName: z.union([z.string(), z.null()]).optional(),
|
|
194
|
+
mimeType: z.union([z.string(), z.null()]).optional(),
|
|
195
|
+
size: z.union([z.number(), z.null()]).optional(),
|
|
196
|
+
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
197
|
+
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
198
|
+
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
199
|
+
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
200
|
+
createdAt: z.string(),
|
|
201
|
+
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
202
|
+
uploadedAt: z.union([z.string(), z.null()]).optional()
|
|
203
|
+
})
|
|
204
|
+
),
|
|
205
|
+
parent: z.union([
|
|
206
|
+
z.object({
|
|
207
|
+
id: z.string(),
|
|
208
|
+
path: z.string(),
|
|
209
|
+
workspaceId: z.string(),
|
|
210
|
+
parentId: z.union([z.string(), z.null()]).optional(),
|
|
211
|
+
originalFileName: z.union([z.string(), z.null()]).optional(),
|
|
212
|
+
mimeType: z.union([z.string(), z.null()]).optional(),
|
|
213
|
+
size: z.union([z.number(), z.null()]).optional(),
|
|
214
|
+
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
215
|
+
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
216
|
+
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
217
|
+
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
218
|
+
createdAt: z.string(),
|
|
219
|
+
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
220
|
+
uploadedAt: z.union([z.string(), z.null()]).optional()
|
|
221
|
+
}),
|
|
222
|
+
z.null()
|
|
223
|
+
])
|
|
182
224
|
}),
|
|
183
225
|
z.null()
|
|
184
226
|
])
|
|
@@ -1270,8 +1312,8 @@ function useVaultClient(vaultUrl, token) {
|
|
|
1270
1312
|
const api = createApiClient(vaultUrl, {
|
|
1271
1313
|
axiosConfig: {
|
|
1272
1314
|
headers: {
|
|
1273
|
-
Authorization: token,
|
|
1274
|
-
"User-Agent": "vault-http-client:2.
|
|
1315
|
+
"Authorization": token,
|
|
1316
|
+
"User-Agent": "vault-http-client:2.5.0"
|
|
1275
1317
|
}
|
|
1276
1318
|
}
|
|
1277
1319
|
});
|