@meistrari/vault-http-client 2.3.2 → 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",
@@ -82,12 +82,13 @@ const endpoints = makeApi([
82
82
  originalFileName: z.union([z.string(), z.null()]).optional(),
83
83
  size: z.union([z.number(), z.null()]).optional(),
84
84
  createdAt: z.string(),
85
- createdBy: z.union([z.string(), z.null()]).optional()
86
- }).strict()
85
+ createdBy: z.union([z.string(), z.null()]).optional(),
86
+ deletedAt: z.union([z.string(), z.null()]).optional()
87
+ })
87
88
  ),
88
89
  count: z.number(),
89
90
  pages: z.number()
90
- }).strict()
91
+ })
91
92
  },
92
93
  {
93
94
  method: "post",
@@ -136,12 +137,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
136
137
  createdBy: z.union([z.string(), z.null()]).optional(),
137
138
  createdAt: z.string(),
138
139
  deletedAt: z.union([z.string(), z.null()]).optional()
139
- }).strict()
140
- }).strict(),
140
+ })
141
+ }),
141
142
  z.object({
142
143
  url: z.string(),
143
144
  expiresAt: z.string().datetime({ offset: true })
144
- }).strict()
145
+ })
145
146
  ])
146
147
  },
147
148
  {
@@ -183,10 +184,10 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
183
184
  createdBy: z.union([z.string(), z.null()]).optional(),
184
185
  createdAt: z.string(),
185
186
  deletedAt: z.union([z.string(), z.null()]).optional()
186
- }).strict(),
187
+ }),
187
188
  z.null()
188
189
  ])
189
- }).strict(),
190
+ }),
190
191
  errors: [
191
192
  {
192
193
  status: 404,
@@ -235,12 +236,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
235
236
  createdBy: z.union([z.string(), z.null()]).optional(),
236
237
  createdAt: z.string(),
237
238
  deletedAt: z.union([z.string(), z.null()]).optional()
238
- }).strict()
239
- }).strict(),
239
+ })
240
+ }),
240
241
  z.object({
241
242
  url: z.string().url(),
242
243
  expiresAt: z.string().datetime({ offset: true })
243
- }).strict()
244
+ })
244
245
  ])
245
246
  },
246
247
  {
@@ -292,7 +293,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
292
293
  createdBy: z.union([z.string(), z.null()]).optional(),
293
294
  createdAt: z.string(),
294
295
  deletedAt: z.union([z.string(), z.null()]).optional()
295
- }).strict(),
296
+ }),
296
297
  errors: [
297
298
  {
298
299
  status: 404,
@@ -312,7 +313,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
312
313
  files: z.number(),
313
314
  permalinks: z.number(),
314
315
  hasCustomSettings: z.boolean()
315
- }).strict()
316
+ })
316
317
  )
317
318
  },
318
319
  {
@@ -357,7 +358,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
357
358
  bucketName: z.string().min(1),
358
359
  keyArns: z.array(z.string()).min(1),
359
360
  defaultS3LinkTtl: z.number().gte(1)
360
- }).strict()
361
+ })
361
362
  },
362
363
  {
363
364
  method: "get",
@@ -388,10 +389,10 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
388
389
  createdBy: z.union([z.string(), z.null()]).optional(),
389
390
  createdAt: z.string(),
390
391
  deletedAt: z.union([z.string(), z.null()]).optional()
391
- }).strict(),
392
+ }),
392
393
  z.null()
393
394
  ])
394
- }).strict(),
395
+ }),
395
396
  errors: [
396
397
  {
397
398
  status: 404,
@@ -412,7 +413,7 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
412
413
  {
413
414
  name: "body",
414
415
  type: "Body",
415
- schema: z.object({ expiresAt: z.string().datetime({ offset: true }) }).partial().strict()
416
+ schema: z.object({ expiresAt: z.string().datetime({ offset: true }) }).partial()
416
417
  },
417
418
  {
418
419
  name: "fileId",
@@ -427,7 +428,7 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
427
428
  createdAt: z.string(),
428
429
  expiresAt: z.union([z.string(), z.null()]),
429
430
  createdBy: z.union([z.string(), z.null()])
430
- }).strict()
431
+ })
431
432
  },
432
433
  {
433
434
  method: "get",
@@ -449,7 +450,7 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
449
450
  createdAt: z.string(),
450
451
  expiresAt: z.union([z.string(), z.null()]),
451
452
  createdBy: z.union([z.string(), z.null()])
452
- }).strict()
453
+ })
453
454
  )
454
455
  },
455
456
  {
@@ -499,12 +500,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
499
500
  createdBy: z.union([z.string(), z.null()]).optional(),
500
501
  createdAt: z.string(),
501
502
  deletedAt: z.union([z.string(), z.null()]).optional()
502
- }).strict()
503
- }).strict(),
503
+ })
504
+ }),
504
505
  z.object({
505
506
  url: z.string(),
506
507
  expiresAt: z.string().datetime({ offset: true })
507
- }).strict()
508
+ })
508
509
  ])
509
510
  },
510
511
  {
@@ -542,12 +543,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
542
543
  createdBy: z.union([z.string(), z.null()]).optional(),
543
544
  createdAt: z.string(),
544
545
  deletedAt: z.union([z.string(), z.null()]).optional()
545
- }).strict()
546
- }).strict(),
546
+ })
547
+ }),
547
548
  z.object({
548
549
  url: z.string().url(),
549
550
  expiresAt: z.string().datetime({ offset: true })
550
- }).strict()
551
+ })
551
552
  ])
552
553
  },
553
554
  {
@@ -589,7 +590,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
589
590
  createdBy: z.union([z.string(), z.null()]).optional(),
590
591
  createdAt: z.string(),
591
592
  deletedAt: z.union([z.string(), z.null()]).optional()
592
- }).strict(),
593
+ }),
593
594
  errors: [
594
595
  {
595
596
  status: 404,
@@ -625,7 +626,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
625
626
  createdBy: z.union([z.string(), z.null()]).optional(),
626
627
  createdAt: z.string(),
627
628
  deletedAt: z.union([z.string(), z.null()]).optional()
628
- }).strict()
629
+ })
629
630
  ),
630
631
  z.object({
631
632
  files: z.array(
@@ -642,9 +643,9 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
642
643
  createdBy: z.union([z.string(), z.null()]).optional(),
643
644
  createdAt: z.string(),
644
645
  deletedAt: z.union([z.string(), z.null()]).optional()
645
- }).strict()
646
+ })
646
647
  )
647
- }).strict()
648
+ })
648
649
  ])
649
650
  },
650
651
  {
@@ -709,7 +710,7 @@ Make sure to follow redirects to the actual file download URL.
709
710
  createdAt: z.string(),
710
711
  expiresAt: z.union([z.string(), z.null()]),
711
712
  createdBy: z.union([z.string(), z.null()])
712
- }).strict(),
713
+ }),
713
714
  errors: [
714
715
  {
715
716
  status: 404,
@@ -747,10 +748,10 @@ Make sure to follow redirects to the actual file download URL.
747
748
  createdBy: z.union([z.string(), z.null()]).optional(),
748
749
  createdAt: z.string(),
749
750
  deletedAt: z.union([z.string(), z.null()]).optional()
750
- }).strict(),
751
+ }),
751
752
  z.null()
752
753
  ])
753
- }).strict(),
754
+ }),
754
755
  errors: [
755
756
  {
756
757
  status: 404,
@@ -806,12 +807,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
806
807
  createdBy: z.union([z.string(), z.null()]).optional(),
807
808
  createdAt: z.string(),
808
809
  deletedAt: z.union([z.string(), z.null()]).optional()
809
- }).strict()
810
- }).strict(),
810
+ })
811
+ }),
811
812
  z.object({
812
813
  url: z.string(),
813
814
  expiresAt: z.string().datetime({ offset: true })
814
- }).strict()
815
+ })
815
816
  ])
816
817
  },
817
818
  {
@@ -849,12 +850,12 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
849
850
  createdBy: z.union([z.string(), z.null()]).optional(),
850
851
  createdAt: z.string(),
851
852
  deletedAt: z.union([z.string(), z.null()]).optional()
852
- }).strict()
853
- }).strict(),
853
+ })
854
+ }),
854
855
  z.object({
855
856
  url: z.string().url(),
856
857
  expiresAt: z.string().datetime({ offset: true })
857
- }).strict()
858
+ })
858
859
  ])
859
860
  },
860
861
  {
@@ -896,7 +897,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
896
897
  createdBy: z.union([z.string(), z.null()]).optional(),
897
898
  createdAt: z.string(),
898
899
  deletedAt: z.union([z.string(), z.null()]).optional()
899
- }).strict(),
900
+ }),
900
901
  errors: [
901
902
  {
902
903
  status: 404,
@@ -932,7 +933,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
932
933
  createdBy: z.union([z.string(), z.null()]).optional(),
933
934
  createdAt: z.string(),
934
935
  deletedAt: z.union([z.string(), z.null()]).optional()
935
- }).strict()
936
+ })
936
937
  ),
937
938
  z.object({
938
939
  files: z.array(
@@ -949,9 +950,9 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
949
950
  createdBy: z.union([z.string(), z.null()]).optional(),
950
951
  createdAt: z.string(),
951
952
  deletedAt: z.union([z.string(), z.null()]).optional()
952
- }).strict()
953
+ })
953
954
  )
954
- }).strict()
955
+ })
955
956
  ])
956
957
  }
957
958
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/vault-http-client",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "types": "dist/index.d.ts",
5
5
  "exports": {
6
6
  ".": {