@meistrari/vault-http-client 2.3.1 → 2.3.3
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 -53
- package/dist/index.d.cts +218 -278
- package/dist/index.d.mts +218 -278
- package/dist/index.d.ts +218 -278
- package/dist/index.mjs +47 -53
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7,14 +7,14 @@ const put_WorkspacesByWorkspaceIdSettings_Body = zod.z.object({
|
|
|
7
7
|
bucketName: zod.z.string().min(1),
|
|
8
8
|
keyArns: zod.z.array(zod.z.string()).min(1),
|
|
9
9
|
defaultS3LinkTtl: zod.z.number().gte(1)
|
|
10
|
-
})
|
|
10
|
+
});
|
|
11
11
|
const post_Files_Body = zod.z.object({
|
|
12
12
|
fileName: zod.z.string(),
|
|
13
13
|
sha256sum: zod.z.string().optional(),
|
|
14
14
|
size: zod.z.number().optional(),
|
|
15
15
|
mimeType: zod.z.string().optional(),
|
|
16
16
|
createdBy: zod.z.string().optional()
|
|
17
|
-
})
|
|
17
|
+
});
|
|
18
18
|
const postFilesBulk_Body = zod.z.union([
|
|
19
19
|
zod.z.array(
|
|
20
20
|
zod.z.object({
|
|
@@ -23,9 +23,9 @@ const postFilesBulk_Body = zod.z.union([
|
|
|
23
23
|
size: zod.z.number().optional(),
|
|
24
24
|
mimeType: zod.z.string().optional(),
|
|
25
25
|
createdBy: zod.z.string().optional()
|
|
26
|
-
})
|
|
26
|
+
})
|
|
27
27
|
),
|
|
28
|
-
zod.z.object({ files: zod.z.array(zod.z.string()) })
|
|
28
|
+
zod.z.object({ files: zod.z.array(zod.z.string()) })
|
|
29
29
|
]);
|
|
30
30
|
const postFilesByFilename_Body = zod.z.object({
|
|
31
31
|
fileName: zod.z.string(),
|
|
@@ -33,7 +33,7 @@ const postFilesByFilename_Body = zod.z.object({
|
|
|
33
33
|
size: zod.z.number(),
|
|
34
34
|
mimeType: zod.z.string(),
|
|
35
35
|
createdBy: zod.z.string()
|
|
36
|
-
}).partial()
|
|
36
|
+
}).partial();
|
|
37
37
|
const endpoints = core.makeApi([
|
|
38
38
|
{
|
|
39
39
|
method: "get",
|
|
@@ -81,22 +81,16 @@ const endpoints = core.makeApi([
|
|
|
81
81
|
files: zod.z.array(
|
|
82
82
|
zod.z.object({
|
|
83
83
|
id: zod.z.string(),
|
|
84
|
-
path: zod.z.string(),
|
|
85
|
-
workspaceId: zod.z.string(),
|
|
86
84
|
originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
87
|
-
mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
88
85
|
size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
|
|
89
|
-
legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
90
|
-
bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
91
|
-
encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
92
|
-
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
93
86
|
createdAt: zod.z.string(),
|
|
87
|
+
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
94
88
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
95
|
-
})
|
|
89
|
+
})
|
|
96
90
|
),
|
|
97
91
|
count: zod.z.number(),
|
|
98
92
|
pages: zod.z.number()
|
|
99
|
-
})
|
|
93
|
+
})
|
|
100
94
|
},
|
|
101
95
|
{
|
|
102
96
|
method: "post",
|
|
@@ -145,12 +139,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
145
139
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
146
140
|
createdAt: zod.z.string(),
|
|
147
141
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
148
|
-
})
|
|
149
|
-
})
|
|
142
|
+
})
|
|
143
|
+
}),
|
|
150
144
|
zod.z.object({
|
|
151
145
|
url: zod.z.string(),
|
|
152
146
|
expiresAt: zod.z.string().datetime({ offset: true })
|
|
153
|
-
})
|
|
147
|
+
})
|
|
154
148
|
])
|
|
155
149
|
},
|
|
156
150
|
{
|
|
@@ -192,10 +186,10 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
192
186
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
193
187
|
createdAt: zod.z.string(),
|
|
194
188
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
195
|
-
})
|
|
189
|
+
}),
|
|
196
190
|
zod.z.null()
|
|
197
191
|
])
|
|
198
|
-
})
|
|
192
|
+
}),
|
|
199
193
|
errors: [
|
|
200
194
|
{
|
|
201
195
|
status: 404,
|
|
@@ -244,12 +238,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
244
238
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
245
239
|
createdAt: zod.z.string(),
|
|
246
240
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
247
|
-
})
|
|
248
|
-
})
|
|
241
|
+
})
|
|
242
|
+
}),
|
|
249
243
|
zod.z.object({
|
|
250
244
|
url: zod.z.string().url(),
|
|
251
245
|
expiresAt: zod.z.string().datetime({ offset: true })
|
|
252
|
-
})
|
|
246
|
+
})
|
|
253
247
|
])
|
|
254
248
|
},
|
|
255
249
|
{
|
|
@@ -301,7 +295,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
301
295
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
302
296
|
createdAt: zod.z.string(),
|
|
303
297
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
304
|
-
})
|
|
298
|
+
}),
|
|
305
299
|
errors: [
|
|
306
300
|
{
|
|
307
301
|
status: 404,
|
|
@@ -321,7 +315,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
321
315
|
files: zod.z.number(),
|
|
322
316
|
permalinks: zod.z.number(),
|
|
323
317
|
hasCustomSettings: zod.z.boolean()
|
|
324
|
-
})
|
|
318
|
+
})
|
|
325
319
|
)
|
|
326
320
|
},
|
|
327
321
|
{
|
|
@@ -366,7 +360,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
366
360
|
bucketName: zod.z.string().min(1),
|
|
367
361
|
keyArns: zod.z.array(zod.z.string()).min(1),
|
|
368
362
|
defaultS3LinkTtl: zod.z.number().gte(1)
|
|
369
|
-
})
|
|
363
|
+
})
|
|
370
364
|
},
|
|
371
365
|
{
|
|
372
366
|
method: "get",
|
|
@@ -397,10 +391,10 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
397
391
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
398
392
|
createdAt: zod.z.string(),
|
|
399
393
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
400
|
-
})
|
|
394
|
+
}),
|
|
401
395
|
zod.z.null()
|
|
402
396
|
])
|
|
403
|
-
})
|
|
397
|
+
}),
|
|
404
398
|
errors: [
|
|
405
399
|
{
|
|
406
400
|
status: 404,
|
|
@@ -421,7 +415,7 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
|
|
|
421
415
|
{
|
|
422
416
|
name: "body",
|
|
423
417
|
type: "Body",
|
|
424
|
-
schema: zod.z.object({ expiresAt: zod.z.string().datetime({ offset: true }) }).partial()
|
|
418
|
+
schema: zod.z.object({ expiresAt: zod.z.string().datetime({ offset: true }) }).partial()
|
|
425
419
|
},
|
|
426
420
|
{
|
|
427
421
|
name: "fileId",
|
|
@@ -436,7 +430,7 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
|
|
|
436
430
|
createdAt: zod.z.string(),
|
|
437
431
|
expiresAt: zod.z.union([zod.z.string(), zod.z.null()]),
|
|
438
432
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()])
|
|
439
|
-
})
|
|
433
|
+
})
|
|
440
434
|
},
|
|
441
435
|
{
|
|
442
436
|
method: "get",
|
|
@@ -458,7 +452,7 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
|
|
|
458
452
|
createdAt: zod.z.string(),
|
|
459
453
|
expiresAt: zod.z.union([zod.z.string(), zod.z.null()]),
|
|
460
454
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()])
|
|
461
|
-
})
|
|
455
|
+
})
|
|
462
456
|
)
|
|
463
457
|
},
|
|
464
458
|
{
|
|
@@ -508,12 +502,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
508
502
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
509
503
|
createdAt: zod.z.string(),
|
|
510
504
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
511
|
-
})
|
|
512
|
-
})
|
|
505
|
+
})
|
|
506
|
+
}),
|
|
513
507
|
zod.z.object({
|
|
514
508
|
url: zod.z.string(),
|
|
515
509
|
expiresAt: zod.z.string().datetime({ offset: true })
|
|
516
|
-
})
|
|
510
|
+
})
|
|
517
511
|
])
|
|
518
512
|
},
|
|
519
513
|
{
|
|
@@ -551,12 +545,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
551
545
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
552
546
|
createdAt: zod.z.string(),
|
|
553
547
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
554
|
-
})
|
|
555
|
-
})
|
|
548
|
+
})
|
|
549
|
+
}),
|
|
556
550
|
zod.z.object({
|
|
557
551
|
url: zod.z.string().url(),
|
|
558
552
|
expiresAt: zod.z.string().datetime({ offset: true })
|
|
559
|
-
})
|
|
553
|
+
})
|
|
560
554
|
])
|
|
561
555
|
},
|
|
562
556
|
{
|
|
@@ -598,7 +592,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
598
592
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
599
593
|
createdAt: zod.z.string(),
|
|
600
594
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
601
|
-
})
|
|
595
|
+
}),
|
|
602
596
|
errors: [
|
|
603
597
|
{
|
|
604
598
|
status: 404,
|
|
@@ -634,7 +628,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
634
628
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
635
629
|
createdAt: zod.z.string(),
|
|
636
630
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
637
|
-
})
|
|
631
|
+
})
|
|
638
632
|
),
|
|
639
633
|
zod.z.object({
|
|
640
634
|
files: zod.z.array(
|
|
@@ -651,9 +645,9 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
651
645
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
652
646
|
createdAt: zod.z.string(),
|
|
653
647
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
654
|
-
})
|
|
648
|
+
})
|
|
655
649
|
)
|
|
656
|
-
})
|
|
650
|
+
})
|
|
657
651
|
])
|
|
658
652
|
},
|
|
659
653
|
{
|
|
@@ -718,7 +712,7 @@ Make sure to follow redirects to the actual file download URL.
|
|
|
718
712
|
createdAt: zod.z.string(),
|
|
719
713
|
expiresAt: zod.z.union([zod.z.string(), zod.z.null()]),
|
|
720
714
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()])
|
|
721
|
-
})
|
|
715
|
+
}),
|
|
722
716
|
errors: [
|
|
723
717
|
{
|
|
724
718
|
status: 404,
|
|
@@ -756,10 +750,10 @@ Make sure to follow redirects to the actual file download URL.
|
|
|
756
750
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
757
751
|
createdAt: zod.z.string(),
|
|
758
752
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
759
|
-
})
|
|
753
|
+
}),
|
|
760
754
|
zod.z.null()
|
|
761
755
|
])
|
|
762
|
-
})
|
|
756
|
+
}),
|
|
763
757
|
errors: [
|
|
764
758
|
{
|
|
765
759
|
status: 404,
|
|
@@ -815,12 +809,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
815
809
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
816
810
|
createdAt: zod.z.string(),
|
|
817
811
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
818
|
-
})
|
|
819
|
-
})
|
|
812
|
+
})
|
|
813
|
+
}),
|
|
820
814
|
zod.z.object({
|
|
821
815
|
url: zod.z.string(),
|
|
822
816
|
expiresAt: zod.z.string().datetime({ offset: true })
|
|
823
|
-
})
|
|
817
|
+
})
|
|
824
818
|
])
|
|
825
819
|
},
|
|
826
820
|
{
|
|
@@ -858,12 +852,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
858
852
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
859
853
|
createdAt: zod.z.string(),
|
|
860
854
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
861
|
-
})
|
|
862
|
-
})
|
|
855
|
+
})
|
|
856
|
+
}),
|
|
863
857
|
zod.z.object({
|
|
864
858
|
url: zod.z.string().url(),
|
|
865
859
|
expiresAt: zod.z.string().datetime({ offset: true })
|
|
866
|
-
})
|
|
860
|
+
})
|
|
867
861
|
])
|
|
868
862
|
},
|
|
869
863
|
{
|
|
@@ -905,7 +899,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
905
899
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
906
900
|
createdAt: zod.z.string(),
|
|
907
901
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
908
|
-
})
|
|
902
|
+
}),
|
|
909
903
|
errors: [
|
|
910
904
|
{
|
|
911
905
|
status: 404,
|
|
@@ -941,7 +935,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
941
935
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
942
936
|
createdAt: zod.z.string(),
|
|
943
937
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
944
|
-
})
|
|
938
|
+
})
|
|
945
939
|
),
|
|
946
940
|
zod.z.object({
|
|
947
941
|
files: zod.z.array(
|
|
@@ -958,9 +952,9 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
958
952
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
959
953
|
createdAt: zod.z.string(),
|
|
960
954
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
961
|
-
})
|
|
955
|
+
})
|
|
962
956
|
)
|
|
963
|
-
})
|
|
957
|
+
})
|
|
964
958
|
])
|
|
965
959
|
}
|
|
966
960
|
]);
|