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