@meistrari/vault-http-client 2.4.0 → 2.6.2
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 +51 -8
- package/dist/index.d.cts +5363 -2
- package/dist/index.d.mts +5363 -2
- package/dist/index.d.ts +5363 -2
- package/dist/index.mjs +51 -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({
|
|
@@ -84,6 +89,7 @@ const endpoints = makeApi([
|
|
|
84
89
|
})
|
|
85
90
|
),
|
|
86
91
|
count: z.number(),
|
|
92
|
+
childrenCount: z.number(),
|
|
87
93
|
pages: z.number()
|
|
88
94
|
})
|
|
89
95
|
},
|
|
@@ -178,7 +184,44 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
178
184
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
179
185
|
createdAt: z.string(),
|
|
180
186
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
181
|
-
uploadedAt: z.union([z.string(), z.null()]).optional()
|
|
187
|
+
uploadedAt: z.union([z.string(), z.null()]).optional(),
|
|
188
|
+
children: z.array(
|
|
189
|
+
z.object({
|
|
190
|
+
id: z.string(),
|
|
191
|
+
path: z.string(),
|
|
192
|
+
workspaceId: z.string(),
|
|
193
|
+
parentId: z.union([z.string(), z.null()]).optional(),
|
|
194
|
+
originalFileName: z.union([z.string(), z.null()]).optional(),
|
|
195
|
+
mimeType: z.union([z.string(), z.null()]).optional(),
|
|
196
|
+
size: z.union([z.number(), z.null()]).optional(),
|
|
197
|
+
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
198
|
+
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
199
|
+
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
200
|
+
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
201
|
+
createdAt: z.string(),
|
|
202
|
+
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
203
|
+
uploadedAt: z.union([z.string(), z.null()]).optional()
|
|
204
|
+
})
|
|
205
|
+
),
|
|
206
|
+
parent: z.union([
|
|
207
|
+
z.object({
|
|
208
|
+
id: z.string(),
|
|
209
|
+
path: z.string(),
|
|
210
|
+
workspaceId: z.string(),
|
|
211
|
+
parentId: z.union([z.string(), z.null()]).optional(),
|
|
212
|
+
originalFileName: z.union([z.string(), z.null()]).optional(),
|
|
213
|
+
mimeType: z.union([z.string(), z.null()]).optional(),
|
|
214
|
+
size: z.union([z.number(), z.null()]).optional(),
|
|
215
|
+
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
216
|
+
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
217
|
+
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
218
|
+
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
219
|
+
createdAt: z.string(),
|
|
220
|
+
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
221
|
+
uploadedAt: z.union([z.string(), z.null()]).optional()
|
|
222
|
+
}),
|
|
223
|
+
z.null()
|
|
224
|
+
])
|
|
182
225
|
}),
|
|
183
226
|
z.null()
|
|
184
227
|
])
|
|
@@ -1270,8 +1313,8 @@ function useVaultClient(vaultUrl, token) {
|
|
|
1270
1313
|
const api = createApiClient(vaultUrl, {
|
|
1271
1314
|
axiosConfig: {
|
|
1272
1315
|
headers: {
|
|
1273
|
-
Authorization: token,
|
|
1274
|
-
"User-Agent": "vault-http-client:2.
|
|
1316
|
+
"Authorization": token,
|
|
1317
|
+
"User-Agent": "vault-http-client:2.6.2"
|
|
1275
1318
|
}
|
|
1276
1319
|
}
|
|
1277
1320
|
});
|