@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.mjs CHANGED
@@ -5,14 +5,14 @@ const put_WorkspacesByWorkspaceIdSettings_Body = z.object({
5
5
  bucketName: z.string().min(1),
6
6
  keyArns: z.array(z.string()).min(1),
7
7
  defaultS3LinkTtl: z.number().gte(1)
8
- }).strict();
8
+ });
9
9
  const post_Files_Body = z.object({
10
10
  fileName: z.string(),
11
11
  sha256sum: z.string().optional(),
12
12
  size: z.number().optional(),
13
13
  mimeType: z.string().optional(),
14
14
  createdBy: z.string().optional()
15
- }).strict();
15
+ });
16
16
  const postFilesBulk_Body = z.union([
17
17
  z.array(
18
18
  z.object({
@@ -21,9 +21,9 @@ const postFilesBulk_Body = z.union([
21
21
  size: z.number().optional(),
22
22
  mimeType: z.string().optional(),
23
23
  createdBy: z.string().optional()
24
- }).strict()
24
+ })
25
25
  ),
26
- z.object({ files: z.array(z.string()) }).strict()
26
+ z.object({ files: z.array(z.string()) })
27
27
  ]);
28
28
  const postFilesByFilename_Body = z.object({
29
29
  fileName: z.string(),
@@ -31,7 +31,7 @@ const postFilesByFilename_Body = z.object({
31
31
  size: z.number(),
32
32
  mimeType: z.string(),
33
33
  createdBy: z.string()
34
- }).partial().strict();
34
+ }).partial();
35
35
  const endpoints = makeApi([
36
36
  {
37
37
  method: "get",
@@ -79,22 +79,16 @@ const endpoints = makeApi([
79
79
  files: z.array(
80
80
  z.object({
81
81
  id: z.string(),
82
- path: z.string(),
83
- workspaceId: z.string(),
84
82
  originalFileName: z.union([z.string(), z.null()]).optional(),
85
- mimeType: z.union([z.string(), z.null()]).optional(),
86
83
  size: z.union([z.number(), z.null()]).optional(),
87
- legacyKey: z.union([z.string(), z.null()]).optional(),
88
- bucketName: z.union([z.string(), z.null()]).optional(),
89
- encryptionKey: z.union([z.string(), z.null()]).optional(),
90
- createdBy: z.union([z.string(), z.null()]).optional(),
91
84
  createdAt: z.string(),
85
+ createdBy: z.union([z.string(), z.null()]).optional(),
92
86
  deletedAt: z.union([z.string(), z.null()]).optional()
93
- }).strict()
87
+ })
94
88
  ),
95
89
  count: z.number(),
96
90
  pages: z.number()
97
- }).strict()
91
+ })
98
92
  },
99
93
  {
100
94
  method: "post",
@@ -143,12 +137,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
143
137
  createdBy: z.union([z.string(), z.null()]).optional(),
144
138
  createdAt: z.string(),
145
139
  deletedAt: z.union([z.string(), z.null()]).optional()
146
- }).strict()
147
- }).strict(),
140
+ })
141
+ }),
148
142
  z.object({
149
143
  url: z.string(),
150
144
  expiresAt: z.string().datetime({ offset: true })
151
- }).strict()
145
+ })
152
146
  ])
153
147
  },
154
148
  {
@@ -190,10 +184,10 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
190
184
  createdBy: z.union([z.string(), z.null()]).optional(),
191
185
  createdAt: z.string(),
192
186
  deletedAt: z.union([z.string(), z.null()]).optional()
193
- }).strict(),
187
+ }),
194
188
  z.null()
195
189
  ])
196
- }).strict(),
190
+ }),
197
191
  errors: [
198
192
  {
199
193
  status: 404,
@@ -242,12 +236,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
242
236
  createdBy: z.union([z.string(), z.null()]).optional(),
243
237
  createdAt: z.string(),
244
238
  deletedAt: z.union([z.string(), z.null()]).optional()
245
- }).strict()
246
- }).strict(),
239
+ })
240
+ }),
247
241
  z.object({
248
242
  url: z.string().url(),
249
243
  expiresAt: z.string().datetime({ offset: true })
250
- }).strict()
244
+ })
251
245
  ])
252
246
  },
253
247
  {
@@ -299,7 +293,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
299
293
  createdBy: z.union([z.string(), z.null()]).optional(),
300
294
  createdAt: z.string(),
301
295
  deletedAt: z.union([z.string(), z.null()]).optional()
302
- }).strict(),
296
+ }),
303
297
  errors: [
304
298
  {
305
299
  status: 404,
@@ -319,7 +313,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
319
313
  files: z.number(),
320
314
  permalinks: z.number(),
321
315
  hasCustomSettings: z.boolean()
322
- }).strict()
316
+ })
323
317
  )
324
318
  },
325
319
  {
@@ -364,7 +358,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
364
358
  bucketName: z.string().min(1),
365
359
  keyArns: z.array(z.string()).min(1),
366
360
  defaultS3LinkTtl: z.number().gte(1)
367
- }).strict()
361
+ })
368
362
  },
369
363
  {
370
364
  method: "get",
@@ -395,10 +389,10 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
395
389
  createdBy: z.union([z.string(), z.null()]).optional(),
396
390
  createdAt: z.string(),
397
391
  deletedAt: z.union([z.string(), z.null()]).optional()
398
- }).strict(),
392
+ }),
399
393
  z.null()
400
394
  ])
401
- }).strict(),
395
+ }),
402
396
  errors: [
403
397
  {
404
398
  status: 404,
@@ -419,7 +413,7 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
419
413
  {
420
414
  name: "body",
421
415
  type: "Body",
422
- schema: z.object({ expiresAt: z.string().datetime({ offset: true }) }).partial().strict()
416
+ schema: z.object({ expiresAt: z.string().datetime({ offset: true }) }).partial()
423
417
  },
424
418
  {
425
419
  name: "fileId",
@@ -434,7 +428,7 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
434
428
  createdAt: z.string(),
435
429
  expiresAt: z.union([z.string(), z.null()]),
436
430
  createdBy: z.union([z.string(), z.null()])
437
- }).strict()
431
+ })
438
432
  },
439
433
  {
440
434
  method: "get",
@@ -456,7 +450,7 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
456
450
  createdAt: z.string(),
457
451
  expiresAt: z.union([z.string(), z.null()]),
458
452
  createdBy: z.union([z.string(), z.null()])
459
- }).strict()
453
+ })
460
454
  )
461
455
  },
462
456
  {
@@ -506,12 +500,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
506
500
  createdBy: z.union([z.string(), z.null()]).optional(),
507
501
  createdAt: z.string(),
508
502
  deletedAt: z.union([z.string(), z.null()]).optional()
509
- }).strict()
510
- }).strict(),
503
+ })
504
+ }),
511
505
  z.object({
512
506
  url: z.string(),
513
507
  expiresAt: z.string().datetime({ offset: true })
514
- }).strict()
508
+ })
515
509
  ])
516
510
  },
517
511
  {
@@ -549,12 +543,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
549
543
  createdBy: z.union([z.string(), z.null()]).optional(),
550
544
  createdAt: z.string(),
551
545
  deletedAt: z.union([z.string(), z.null()]).optional()
552
- }).strict()
553
- }).strict(),
546
+ })
547
+ }),
554
548
  z.object({
555
549
  url: z.string().url(),
556
550
  expiresAt: z.string().datetime({ offset: true })
557
- }).strict()
551
+ })
558
552
  ])
559
553
  },
560
554
  {
@@ -596,7 +590,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
596
590
  createdBy: z.union([z.string(), z.null()]).optional(),
597
591
  createdAt: z.string(),
598
592
  deletedAt: z.union([z.string(), z.null()]).optional()
599
- }).strict(),
593
+ }),
600
594
  errors: [
601
595
  {
602
596
  status: 404,
@@ -632,7 +626,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
632
626
  createdBy: z.union([z.string(), z.null()]).optional(),
633
627
  createdAt: z.string(),
634
628
  deletedAt: z.union([z.string(), z.null()]).optional()
635
- }).strict()
629
+ })
636
630
  ),
637
631
  z.object({
638
632
  files: z.array(
@@ -649,9 +643,9 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
649
643
  createdBy: z.union([z.string(), z.null()]).optional(),
650
644
  createdAt: z.string(),
651
645
  deletedAt: z.union([z.string(), z.null()]).optional()
652
- }).strict()
646
+ })
653
647
  )
654
- }).strict()
648
+ })
655
649
  ])
656
650
  },
657
651
  {
@@ -716,7 +710,7 @@ Make sure to follow redirects to the actual file download URL.
716
710
  createdAt: z.string(),
717
711
  expiresAt: z.union([z.string(), z.null()]),
718
712
  createdBy: z.union([z.string(), z.null()])
719
- }).strict(),
713
+ }),
720
714
  errors: [
721
715
  {
722
716
  status: 404,
@@ -754,10 +748,10 @@ Make sure to follow redirects to the actual file download URL.
754
748
  createdBy: z.union([z.string(), z.null()]).optional(),
755
749
  createdAt: z.string(),
756
750
  deletedAt: z.union([z.string(), z.null()]).optional()
757
- }).strict(),
751
+ }),
758
752
  z.null()
759
753
  ])
760
- }).strict(),
754
+ }),
761
755
  errors: [
762
756
  {
763
757
  status: 404,
@@ -813,12 +807,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
813
807
  createdBy: z.union([z.string(), z.null()]).optional(),
814
808
  createdAt: z.string(),
815
809
  deletedAt: z.union([z.string(), z.null()]).optional()
816
- }).strict()
817
- }).strict(),
810
+ })
811
+ }),
818
812
  z.object({
819
813
  url: z.string(),
820
814
  expiresAt: z.string().datetime({ offset: true })
821
- }).strict()
815
+ })
822
816
  ])
823
817
  },
824
818
  {
@@ -856,12 +850,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
856
850
  createdBy: z.union([z.string(), z.null()]).optional(),
857
851
  createdAt: z.string(),
858
852
  deletedAt: z.union([z.string(), z.null()]).optional()
859
- }).strict()
860
- }).strict(),
853
+ })
854
+ }),
861
855
  z.object({
862
856
  url: z.string().url(),
863
857
  expiresAt: z.string().datetime({ offset: true })
864
- }).strict()
858
+ })
865
859
  ])
866
860
  },
867
861
  {
@@ -903,7 +897,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
903
897
  createdBy: z.union([z.string(), z.null()]).optional(),
904
898
  createdAt: z.string(),
905
899
  deletedAt: z.union([z.string(), z.null()]).optional()
906
- }).strict(),
900
+ }),
907
901
  errors: [
908
902
  {
909
903
  status: 404,
@@ -939,7 +933,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
939
933
  createdBy: z.union([z.string(), z.null()]).optional(),
940
934
  createdAt: z.string(),
941
935
  deletedAt: z.union([z.string(), z.null()]).optional()
942
- }).strict()
936
+ })
943
937
  ),
944
938
  z.object({
945
939
  files: z.array(
@@ -956,9 +950,9 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
956
950
  createdBy: z.union([z.string(), z.null()]).optional(),
957
951
  createdAt: z.string(),
958
952
  deletedAt: z.union([z.string(), z.null()]).optional()
959
- }).strict()
953
+ })
960
954
  )
961
- }).strict()
955
+ })
962
956
  ])
963
957
  }
964
958
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/vault-http-client",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "types": "dist/index.d.ts",
5
5
  "exports": {
6
6
  ".": {