@meistrari/vault-http-client 2.17.6 → 2.20.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 +47 -19
- package/dist/index.d.cts +120 -82
- package/dist/index.d.mts +120 -82
- package/dist/index.d.ts +120 -82
- package/dist/index.mjs +47 -19
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -35,6 +35,11 @@ const postFilesBulk_Body = z.array(
|
|
|
35
35
|
createdBy: z.string()
|
|
36
36
|
}).partial()
|
|
37
37
|
);
|
|
38
|
+
const postFilesDownloadUrlsBulk_Body = z.object({
|
|
39
|
+
fileIds: z.array(z.string().min(1).max(1024)).min(1).max(100),
|
|
40
|
+
expiresIn: z.number().int().gte(1).lte(604800).optional(),
|
|
41
|
+
preserveFileName: z.boolean().optional().default(true)
|
|
42
|
+
});
|
|
38
43
|
const postFilesByFileIdMultipartPart_Body = z.object({
|
|
39
44
|
uploadId: z.string().min(1).max(4096),
|
|
40
45
|
partNumber: z.number().int().gte(1).lte(1e4)
|
|
@@ -50,7 +55,6 @@ const postFilesByFileIdMultipartComplete_Body = z.object({
|
|
|
50
55
|
});
|
|
51
56
|
const putWorkspacesByWorkspaceIdSettings_Body = z.object({
|
|
52
57
|
bucketName: z.string().min(1),
|
|
53
|
-
keyArns: z.array(z.string()).min(1),
|
|
54
58
|
defaultS3LinkTtl: z.number().gte(1)
|
|
55
59
|
});
|
|
56
60
|
const endpoints = makeApi([
|
|
@@ -162,7 +166,6 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
162
166
|
size: z.union([z.number(), z.null()]).optional(),
|
|
163
167
|
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
164
168
|
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
165
|
-
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
166
169
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
167
170
|
createdAt: z.string(),
|
|
168
171
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
@@ -223,7 +226,6 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
223
226
|
size: z.union([z.number(), z.null()]).optional(),
|
|
224
227
|
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
225
228
|
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
226
|
-
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
227
229
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
228
230
|
createdAt: z.string(),
|
|
229
231
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
@@ -239,7 +241,6 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
239
241
|
size: z.union([z.number(), z.null()]).optional(),
|
|
240
242
|
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
241
243
|
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
242
|
-
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
243
244
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
244
245
|
createdAt: z.string(),
|
|
245
246
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
@@ -257,7 +258,6 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
257
258
|
size: z.union([z.number(), z.null()]).optional(),
|
|
258
259
|
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
259
260
|
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
260
|
-
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
261
261
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
262
262
|
createdAt: z.string(),
|
|
263
263
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
@@ -309,7 +309,6 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
309
309
|
size: z.union([z.number(), z.null()]).optional(),
|
|
310
310
|
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
311
311
|
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
312
|
-
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
313
312
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
314
313
|
createdAt: z.string(),
|
|
315
314
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
@@ -366,7 +365,6 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
366
365
|
size: z.union([z.number(), z.null()]).optional(),
|
|
367
366
|
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
368
367
|
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
369
|
-
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
370
368
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
371
369
|
createdAt: z.string(),
|
|
372
370
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
@@ -420,7 +418,6 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
420
418
|
size: z.union([z.number(), z.null()]).optional(),
|
|
421
419
|
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
422
420
|
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
423
|
-
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
424
421
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
425
422
|
createdAt: z.string(),
|
|
426
423
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
@@ -493,7 +490,6 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
493
490
|
size: z.union([z.number(), z.null()]).optional(),
|
|
494
491
|
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
495
492
|
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
496
|
-
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
497
493
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
498
494
|
createdAt: z.string(),
|
|
499
495
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
@@ -544,7 +540,6 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
544
540
|
],
|
|
545
541
|
response: z.object({
|
|
546
542
|
bucketName: z.string().min(1),
|
|
547
|
-
keyArns: z.array(z.string()).min(1),
|
|
548
543
|
defaultS3LinkTtl: z.number().gte(1)
|
|
549
544
|
})
|
|
550
545
|
},
|
|
@@ -680,7 +675,6 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
680
675
|
size: z.union([z.number(), z.null()]).optional(),
|
|
681
676
|
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
682
677
|
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
683
|
-
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
684
678
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
685
679
|
createdAt: z.string(),
|
|
686
680
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
@@ -743,7 +737,6 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
743
737
|
size: z.union([z.number(), z.null()]).optional(),
|
|
744
738
|
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
745
739
|
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
746
|
-
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
747
740
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
748
741
|
createdAt: z.string(),
|
|
749
742
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
@@ -787,7 +780,6 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
787
780
|
size: z.union([z.number(), z.null()]).optional(),
|
|
788
781
|
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
789
782
|
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
790
|
-
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
791
783
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
792
784
|
createdAt: z.string(),
|
|
793
785
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
@@ -831,7 +823,6 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
831
823
|
size: z.union([z.number(), z.null()]).optional(),
|
|
832
824
|
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
833
825
|
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
834
|
-
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
835
826
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
836
827
|
createdAt: z.string(),
|
|
837
828
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
@@ -1008,7 +999,6 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
|
|
|
1008
999
|
size: z.union([z.number(), z.null()]).optional(),
|
|
1009
1000
|
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
1010
1001
|
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
1011
|
-
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
1012
1002
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
1013
1003
|
createdAt: z.string(),
|
|
1014
1004
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
@@ -1052,7 +1042,6 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
|
|
|
1052
1042
|
size: z.union([z.number(), z.null()]).optional(),
|
|
1053
1043
|
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
1054
1044
|
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
1055
|
-
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
1056
1045
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
1057
1046
|
createdAt: z.string(),
|
|
1058
1047
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
@@ -1110,7 +1099,6 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
|
|
|
1110
1099
|
size: z.union([z.number(), z.null()]).optional(),
|
|
1111
1100
|
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
1112
1101
|
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
1113
|
-
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
1114
1102
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
1115
1103
|
createdAt: z.string(),
|
|
1116
1104
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
@@ -1149,7 +1137,6 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
|
|
|
1149
1137
|
size: z.union([z.number(), z.null()]).optional(),
|
|
1150
1138
|
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
1151
1139
|
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
1152
|
-
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
1153
1140
|
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
1154
1141
|
createdAt: z.string(),
|
|
1155
1142
|
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
@@ -1159,6 +1146,47 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
|
|
|
1159
1146
|
})
|
|
1160
1147
|
)
|
|
1161
1148
|
},
|
|
1149
|
+
{
|
|
1150
|
+
method: "post",
|
|
1151
|
+
path: "/files/download-urls/bulk",
|
|
1152
|
+
description: `Read up to 100 files and sign their download URLs. Results preserve input order and duplicates. Missing, deleted and inaccessible files all return not_found.`,
|
|
1153
|
+
requestFormat: "json",
|
|
1154
|
+
parameters: [
|
|
1155
|
+
{
|
|
1156
|
+
name: "body",
|
|
1157
|
+
type: "Body",
|
|
1158
|
+
schema: postFilesDownloadUrlsBulk_Body
|
|
1159
|
+
}
|
|
1160
|
+
],
|
|
1161
|
+
response: z.array(
|
|
1162
|
+
z.union([
|
|
1163
|
+
z.object({
|
|
1164
|
+
id: z.string(),
|
|
1165
|
+
status: z.string(),
|
|
1166
|
+
url: z.string().url(),
|
|
1167
|
+
expiresAt: z.string().regex(
|
|
1168
|
+
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/
|
|
1169
|
+
).datetime({ offset: true }),
|
|
1170
|
+
metadata: z.object({
|
|
1171
|
+
id: z.string(),
|
|
1172
|
+
path: z.string(),
|
|
1173
|
+
workspaceId: z.string(),
|
|
1174
|
+
parentId: z.union([z.string(), z.null()]).optional(),
|
|
1175
|
+
originalFileName: z.union([z.string(), z.null()]).optional(),
|
|
1176
|
+
mimeType: z.union([z.string(), z.null()]).optional(),
|
|
1177
|
+
size: z.union([z.number(), z.null()]).optional(),
|
|
1178
|
+
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
1179
|
+
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
1180
|
+
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
1181
|
+
createdAt: z.string(),
|
|
1182
|
+
deletedAt: z.union([z.string(), z.null()]).optional(),
|
|
1183
|
+
uploadedAt: z.union([z.string(), z.null()]).optional()
|
|
1184
|
+
})
|
|
1185
|
+
}),
|
|
1186
|
+
z.object({ id: z.string(), status: z.enum(["not_found", "error"]) })
|
|
1187
|
+
])
|
|
1188
|
+
)
|
|
1189
|
+
},
|
|
1162
1190
|
{
|
|
1163
1191
|
method: "get",
|
|
1164
1192
|
path: "/permalinks/:permalinkId",
|
|
@@ -1236,7 +1264,7 @@ function createApiClient(baseUrl, options) {
|
|
|
1236
1264
|
return new Zodios(baseUrl, endpoints, options);
|
|
1237
1265
|
}
|
|
1238
1266
|
|
|
1239
|
-
const version = "
|
|
1267
|
+
const version = "v2.20.0";
|
|
1240
1268
|
const packageInfo = {
|
|
1241
1269
|
version: version};
|
|
1242
1270
|
|