@meistrari/vault-http-client 2.3.2 → 2.3.4
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 +56 -48
- package/dist/index.d.cts +134 -100
- package/dist/index.d.mts +134 -100
- package/dist/index.d.ts +134 -100
- package/dist/index.mjs +56 -48
- 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",
|
|
@@ -49,7 +49,7 @@ const endpoints = core.makeApi([
|
|
|
49
49
|
{
|
|
50
50
|
name: "includeDeleted",
|
|
51
51
|
type: "Query",
|
|
52
|
-
schema: zod.z.
|
|
52
|
+
schema: zod.z.enum(["true", "false"]).optional().default("false")
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
name: "limit",
|
|
@@ -84,12 +84,13 @@ const endpoints = core.makeApi([
|
|
|
84
84
|
originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
85
85
|
size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
|
|
86
86
|
createdAt: zod.z.string(),
|
|
87
|
-
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
88
|
-
|
|
87
|
+
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
88
|
+
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
89
|
+
})
|
|
89
90
|
),
|
|
90
91
|
count: zod.z.number(),
|
|
91
92
|
pages: zod.z.number()
|
|
92
|
-
})
|
|
93
|
+
})
|
|
93
94
|
},
|
|
94
95
|
{
|
|
95
96
|
method: "post",
|
|
@@ -138,12 +139,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
138
139
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
139
140
|
createdAt: zod.z.string(),
|
|
140
141
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
141
|
-
})
|
|
142
|
-
})
|
|
142
|
+
})
|
|
143
|
+
}),
|
|
143
144
|
zod.z.object({
|
|
144
145
|
url: zod.z.string(),
|
|
145
146
|
expiresAt: zod.z.string().datetime({ offset: true })
|
|
146
|
-
})
|
|
147
|
+
})
|
|
147
148
|
])
|
|
148
149
|
},
|
|
149
150
|
{
|
|
@@ -185,10 +186,10 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
185
186
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
186
187
|
createdAt: zod.z.string(),
|
|
187
188
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
188
|
-
})
|
|
189
|
+
}),
|
|
189
190
|
zod.z.null()
|
|
190
191
|
])
|
|
191
|
-
})
|
|
192
|
+
}),
|
|
192
193
|
errors: [
|
|
193
194
|
{
|
|
194
195
|
status: 404,
|
|
@@ -237,12 +238,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
237
238
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
238
239
|
createdAt: zod.z.string(),
|
|
239
240
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
240
|
-
})
|
|
241
|
-
})
|
|
241
|
+
})
|
|
242
|
+
}),
|
|
242
243
|
zod.z.object({
|
|
243
244
|
url: zod.z.string().url(),
|
|
244
245
|
expiresAt: zod.z.string().datetime({ offset: true })
|
|
245
|
-
})
|
|
246
|
+
})
|
|
246
247
|
])
|
|
247
248
|
},
|
|
248
249
|
{
|
|
@@ -294,7 +295,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
294
295
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
295
296
|
createdAt: zod.z.string(),
|
|
296
297
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
297
|
-
})
|
|
298
|
+
}),
|
|
298
299
|
errors: [
|
|
299
300
|
{
|
|
300
301
|
status: 404,
|
|
@@ -314,9 +315,16 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
314
315
|
files: zod.z.number(),
|
|
315
316
|
permalinks: zod.z.number(),
|
|
316
317
|
hasCustomSettings: zod.z.boolean()
|
|
317
|
-
})
|
|
318
|
+
})
|
|
318
319
|
)
|
|
319
320
|
},
|
|
321
|
+
{
|
|
322
|
+
method: "get",
|
|
323
|
+
path: "/_/files/count",
|
|
324
|
+
description: `Get the total count of active files across all workspaces`,
|
|
325
|
+
requestFormat: "json",
|
|
326
|
+
response: zod.z.object({ count: zod.z.number() })
|
|
327
|
+
},
|
|
320
328
|
{
|
|
321
329
|
method: "put",
|
|
322
330
|
path: "/_/workspaces/:workspaceId/settings",
|
|
@@ -359,7 +367,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
359
367
|
bucketName: zod.z.string().min(1),
|
|
360
368
|
keyArns: zod.z.array(zod.z.string()).min(1),
|
|
361
369
|
defaultS3LinkTtl: zod.z.number().gte(1)
|
|
362
|
-
})
|
|
370
|
+
})
|
|
363
371
|
},
|
|
364
372
|
{
|
|
365
373
|
method: "get",
|
|
@@ -390,10 +398,10 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
390
398
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
391
399
|
createdAt: zod.z.string(),
|
|
392
400
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
393
|
-
})
|
|
401
|
+
}),
|
|
394
402
|
zod.z.null()
|
|
395
403
|
])
|
|
396
|
-
})
|
|
404
|
+
}),
|
|
397
405
|
errors: [
|
|
398
406
|
{
|
|
399
407
|
status: 404,
|
|
@@ -414,7 +422,7 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
|
|
|
414
422
|
{
|
|
415
423
|
name: "body",
|
|
416
424
|
type: "Body",
|
|
417
|
-
schema: zod.z.object({ expiresAt: zod.z.string().datetime({ offset: true }) }).partial()
|
|
425
|
+
schema: zod.z.object({ expiresAt: zod.z.string().datetime({ offset: true }) }).partial()
|
|
418
426
|
},
|
|
419
427
|
{
|
|
420
428
|
name: "fileId",
|
|
@@ -429,7 +437,7 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
|
|
|
429
437
|
createdAt: zod.z.string(),
|
|
430
438
|
expiresAt: zod.z.union([zod.z.string(), zod.z.null()]),
|
|
431
439
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()])
|
|
432
|
-
})
|
|
440
|
+
})
|
|
433
441
|
},
|
|
434
442
|
{
|
|
435
443
|
method: "get",
|
|
@@ -451,7 +459,7 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
|
|
|
451
459
|
createdAt: zod.z.string(),
|
|
452
460
|
expiresAt: zod.z.union([zod.z.string(), zod.z.null()]),
|
|
453
461
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()])
|
|
454
|
-
})
|
|
462
|
+
})
|
|
455
463
|
)
|
|
456
464
|
},
|
|
457
465
|
{
|
|
@@ -501,12 +509,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
501
509
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
502
510
|
createdAt: zod.z.string(),
|
|
503
511
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
504
|
-
})
|
|
505
|
-
})
|
|
512
|
+
})
|
|
513
|
+
}),
|
|
506
514
|
zod.z.object({
|
|
507
515
|
url: zod.z.string(),
|
|
508
516
|
expiresAt: zod.z.string().datetime({ offset: true })
|
|
509
|
-
})
|
|
517
|
+
})
|
|
510
518
|
])
|
|
511
519
|
},
|
|
512
520
|
{
|
|
@@ -544,12 +552,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
544
552
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
545
553
|
createdAt: zod.z.string(),
|
|
546
554
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
547
|
-
})
|
|
548
|
-
})
|
|
555
|
+
})
|
|
556
|
+
}),
|
|
549
557
|
zod.z.object({
|
|
550
558
|
url: zod.z.string().url(),
|
|
551
559
|
expiresAt: zod.z.string().datetime({ offset: true })
|
|
552
|
-
})
|
|
560
|
+
})
|
|
553
561
|
])
|
|
554
562
|
},
|
|
555
563
|
{
|
|
@@ -591,7 +599,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
591
599
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
592
600
|
createdAt: zod.z.string(),
|
|
593
601
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
594
|
-
})
|
|
602
|
+
}),
|
|
595
603
|
errors: [
|
|
596
604
|
{
|
|
597
605
|
status: 404,
|
|
@@ -627,7 +635,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
627
635
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
628
636
|
createdAt: zod.z.string(),
|
|
629
637
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
630
|
-
})
|
|
638
|
+
})
|
|
631
639
|
),
|
|
632
640
|
zod.z.object({
|
|
633
641
|
files: zod.z.array(
|
|
@@ -644,9 +652,9 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
644
652
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
645
653
|
createdAt: zod.z.string(),
|
|
646
654
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
647
|
-
})
|
|
655
|
+
})
|
|
648
656
|
)
|
|
649
|
-
})
|
|
657
|
+
})
|
|
650
658
|
])
|
|
651
659
|
},
|
|
652
660
|
{
|
|
@@ -711,7 +719,7 @@ Make sure to follow redirects to the actual file download URL.
|
|
|
711
719
|
createdAt: zod.z.string(),
|
|
712
720
|
expiresAt: zod.z.union([zod.z.string(), zod.z.null()]),
|
|
713
721
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()])
|
|
714
|
-
})
|
|
722
|
+
}),
|
|
715
723
|
errors: [
|
|
716
724
|
{
|
|
717
725
|
status: 404,
|
|
@@ -749,10 +757,10 @@ Make sure to follow redirects to the actual file download URL.
|
|
|
749
757
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
750
758
|
createdAt: zod.z.string(),
|
|
751
759
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
752
|
-
})
|
|
760
|
+
}),
|
|
753
761
|
zod.z.null()
|
|
754
762
|
])
|
|
755
|
-
})
|
|
763
|
+
}),
|
|
756
764
|
errors: [
|
|
757
765
|
{
|
|
758
766
|
status: 404,
|
|
@@ -808,12 +816,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
808
816
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
809
817
|
createdAt: zod.z.string(),
|
|
810
818
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
811
|
-
})
|
|
812
|
-
})
|
|
819
|
+
})
|
|
820
|
+
}),
|
|
813
821
|
zod.z.object({
|
|
814
822
|
url: zod.z.string(),
|
|
815
823
|
expiresAt: zod.z.string().datetime({ offset: true })
|
|
816
|
-
})
|
|
824
|
+
})
|
|
817
825
|
])
|
|
818
826
|
},
|
|
819
827
|
{
|
|
@@ -851,12 +859,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
851
859
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
852
860
|
createdAt: zod.z.string(),
|
|
853
861
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
854
|
-
})
|
|
855
|
-
})
|
|
862
|
+
})
|
|
863
|
+
}),
|
|
856
864
|
zod.z.object({
|
|
857
865
|
url: zod.z.string().url(),
|
|
858
866
|
expiresAt: zod.z.string().datetime({ offset: true })
|
|
859
|
-
})
|
|
867
|
+
})
|
|
860
868
|
])
|
|
861
869
|
},
|
|
862
870
|
{
|
|
@@ -898,7 +906,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
898
906
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
899
907
|
createdAt: zod.z.string(),
|
|
900
908
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
901
|
-
})
|
|
909
|
+
}),
|
|
902
910
|
errors: [
|
|
903
911
|
{
|
|
904
912
|
status: 404,
|
|
@@ -934,7 +942,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
934
942
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
935
943
|
createdAt: zod.z.string(),
|
|
936
944
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
937
|
-
})
|
|
945
|
+
})
|
|
938
946
|
),
|
|
939
947
|
zod.z.object({
|
|
940
948
|
files: zod.z.array(
|
|
@@ -951,9 +959,9 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
951
959
|
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
952
960
|
createdAt: zod.z.string(),
|
|
953
961
|
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
954
|
-
})
|
|
962
|
+
})
|
|
955
963
|
)
|
|
956
|
-
})
|
|
964
|
+
})
|
|
957
965
|
])
|
|
958
966
|
}
|
|
959
967
|
]);
|