@meistrari/vault-http-client 2.14.1 → 2.17.6

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 CHANGED
@@ -3,6 +3,18 @@
3
3
  const core = require('@zodios/core');
4
4
  const zod = require('zod');
5
5
 
6
+ const postAssets_Body = zod.z.object({
7
+ assetClass: zod.z.string().min(1).max(128).regex(/^[a-z0-9][a-z0-9._:-]*$/),
8
+ subject: zod.z.string().min(1).max(255),
9
+ mimeType: zod.z.enum([
10
+ "image/png",
11
+ "image/jpeg",
12
+ "image/gif",
13
+ "image/webp",
14
+ "image/avif"
15
+ ]),
16
+ size: zod.z.number().int().gte(0).lte(9007199254740991).optional()
17
+ });
6
18
  const postFiles_Body = zod.z.object({
7
19
  fileName: zod.z.string(),
8
20
  parentId: zod.z.string(),
@@ -11,8 +23,7 @@ const postFiles_Body = zod.z.object({
11
23
  sha256sum: zod.z.string(),
12
24
  size: zod.z.number(),
13
25
  mimeType: zod.z.string(),
14
- createdBy: zod.z.string(),
15
- path: zod.z.string()
26
+ createdBy: zod.z.string()
16
27
  }).partial();
17
28
  const postFilesBulk_Body = zod.z.array(
18
29
  zod.z.object({
@@ -23,11 +34,23 @@ const postFilesBulk_Body = zod.z.array(
23
34
  sha256sum: zod.z.string(),
24
35
  size: zod.z.number(),
25
36
  mimeType: zod.z.string(),
26
- createdBy: zod.z.string(),
27
- path: zod.z.string()
37
+ createdBy: zod.z.string()
28
38
  }).partial()
29
39
  );
30
- const put_WorkspacesByWorkspaceIdSettings_Body = zod.z.object({
40
+ const postFilesByFileIdMultipartPart_Body = zod.z.object({
41
+ uploadId: zod.z.string().min(1).max(4096),
42
+ partNumber: zod.z.number().int().gte(1).lte(1e4)
43
+ });
44
+ const postFilesByFileIdMultipartComplete_Body = zod.z.object({
45
+ uploadId: zod.z.string().min(1).max(4096),
46
+ parts: zod.z.array(
47
+ zod.z.object({
48
+ partNumber: zod.z.number().int().gte(1).lte(1e4),
49
+ etag: zod.z.string().min(1).max(256)
50
+ })
51
+ ).min(1).max(1e4)
52
+ });
53
+ const putWorkspacesByWorkspaceIdSettings_Body = zod.z.object({
31
54
  bucketName: zod.z.string().min(1),
32
55
  keyArns: zod.z.array(zod.z.string()).min(1),
33
56
  defaultS3LinkTtl: zod.z.number().gte(1)
@@ -128,7 +151,9 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
128
151
  response: zod.z.object({
129
152
  id: zod.z.string(),
130
153
  uploadUrl: zod.z.string().url(),
131
- expiresAt: zod.z.string().datetime({ offset: true }),
154
+ expiresAt: zod.z.string().regex(
155
+ /^(?:(?:\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))$/
156
+ ).datetime({ offset: true }),
132
157
  metadata: zod.z.object({
133
158
  id: zod.z.string(),
134
159
  path: zod.z.string(),
@@ -168,6 +193,16 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
168
193
  type: "Query",
169
194
  schema: zod.z.enum(["true", "false"]).optional().default("false")
170
195
  },
196
+ {
197
+ name: "includeChildren",
198
+ type: "Query",
199
+ schema: zod.z.enum(["true", "false"]).optional().default("false")
200
+ },
201
+ {
202
+ name: "includeParent",
203
+ type: "Query",
204
+ schema: zod.z.enum(["true", "false"]).optional().default("false")
205
+ },
171
206
  {
172
207
  name: "fileId",
173
208
  type: "Path",
@@ -176,7 +211,9 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
176
211
  ],
177
212
  response: zod.z.object({
178
213
  url: zod.z.string(),
179
- expiresAt: zod.z.string().datetime({ offset: true }),
214
+ expiresAt: zod.z.string().regex(
215
+ /^(?:(?:\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))$/
216
+ ).datetime({ offset: true }),
180
217
  metadata: zod.z.union([
181
218
  zod.z.object({
182
219
  id: zod.z.string(),
@@ -210,7 +247,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
210
247
  deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
211
248
  uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
212
249
  })
213
- ),
250
+ ).optional(),
214
251
  parent: zod.z.union([
215
252
  zod.z.object({
216
253
  id: zod.z.string(),
@@ -229,7 +266,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
229
266
  uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
230
267
  }),
231
268
  zod.z.null()
232
- ])
269
+ ]).optional()
233
270
  }),
234
271
  zod.z.null()
235
272
  ])
@@ -318,7 +355,9 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
318
355
  response: zod.z.object({
319
356
  id: zod.z.string(),
320
357
  uploadUrl: zod.z.string().url(),
321
- expiresAt: zod.z.string().datetime({ offset: true }),
358
+ expiresAt: zod.z.string().regex(
359
+ /^(?:(?:\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))$/
360
+ ).datetime({ offset: true }),
322
361
  metadata: zod.z.object({
323
362
  id: zod.z.string(),
324
363
  path: zod.z.string(),
@@ -476,7 +515,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
476
515
  {
477
516
  name: "body",
478
517
  type: "Body",
479
- schema: put_WorkspacesByWorkspaceIdSettings_Body
518
+ schema: putWorkspacesByWorkspaceIdSettings_Body
480
519
  },
481
520
  {
482
521
  name: "workspaceId",
@@ -525,6 +564,86 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
525
564
  ],
526
565
  response: zod.z.void()
527
566
  },
567
+ {
568
+ method: "post",
569
+ path: "/assets",
570
+ description: `Create an asset and get a pre-signed upload URL for the dedicated assets bucket.`,
571
+ requestFormat: "json",
572
+ parameters: [
573
+ {
574
+ name: "body",
575
+ type: "Body",
576
+ schema: postAssets_Body
577
+ },
578
+ {
579
+ name: "expiresIn",
580
+ type: "Query",
581
+ schema: zod.z.number().optional().default(3600)
582
+ }
583
+ ],
584
+ response: zod.z.object({
585
+ assetId: zod.z.string(),
586
+ assetUrl: zod.z.string().url(),
587
+ uploadUrl: zod.z.string().url(),
588
+ expiresAt: zod.z.string().regex(
589
+ /^(?:(?:\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))$/
590
+ ).datetime({ offset: true }),
591
+ uploadHeaders: zod.z.object({
592
+ "cache-control": zod.z.string(),
593
+ "content-disposition": zod.z.string(),
594
+ "content-type": zod.z.string(),
595
+ "if-none-match": zod.z.string()
596
+ }),
597
+ asset: zod.z.object({
598
+ id: zod.z.string(),
599
+ path: zod.z.string(),
600
+ assetUrl: zod.z.string().url(),
601
+ assetClass: zod.z.string(),
602
+ subject: zod.z.string(),
603
+ mimeType: zod.z.string(),
604
+ size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
605
+ bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
606
+ createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
607
+ createdAt: zod.z.string(),
608
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
609
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
610
+ })
611
+ })
612
+ },
613
+ {
614
+ method: "get",
615
+ path: "/assets/:assetId",
616
+ description: `Get a stored asset by ID, including its stable CloudFront URL.`,
617
+ requestFormat: "json",
618
+ parameters: [
619
+ {
620
+ name: "assetId",
621
+ type: "Path",
622
+ schema: zod.z.string()
623
+ }
624
+ ],
625
+ response: zod.z.object({
626
+ id: zod.z.string(),
627
+ path: zod.z.string(),
628
+ assetUrl: zod.z.string().url(),
629
+ assetClass: zod.z.string(),
630
+ subject: zod.z.string(),
631
+ mimeType: zod.z.string(),
632
+ size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
633
+ bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
634
+ createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
635
+ createdAt: zod.z.string(),
636
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
637
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
638
+ }),
639
+ errors: [
640
+ {
641
+ status: 404,
642
+ description: `Asset not found`,
643
+ schema: zod.z.void()
644
+ }
645
+ ]
646
+ },
528
647
  {
529
648
  method: "post",
530
649
  path: "/files",
@@ -550,7 +669,9 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
550
669
  response: zod.z.object({
551
670
  id: zod.z.string(),
552
671
  uploadUrl: zod.z.string(),
553
- expiresAt: zod.z.string().datetime({ offset: true }),
672
+ expiresAt: zod.z.string().regex(
673
+ /^(?:(?:\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))$/
674
+ ).datetime({ offset: true }),
554
675
  metadata: zod.z.object({
555
676
  id: zod.z.string(),
556
677
  path: zod.z.string(),
@@ -654,7 +775,9 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
654
775
  ],
655
776
  response: zod.z.object({
656
777
  url: zod.z.string(),
657
- expiresAt: zod.z.string().datetime({ offset: true }),
778
+ expiresAt: zod.z.string().regex(
779
+ /^(?:(?:\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))$/
780
+ ).datetime({ offset: true }),
658
781
  metadata: zod.z.union([
659
782
  zod.z.object({
660
783
  id: zod.z.string(),
@@ -717,6 +840,87 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
717
840
  uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
718
841
  })
719
842
  },
843
+ {
844
+ method: "post",
845
+ path: "/files/:fileId/multipart",
846
+ description: `Initiate a multipart upload for a file.`,
847
+ requestFormat: "json",
848
+ parameters: [
849
+ {
850
+ name: "fileId",
851
+ type: "Path",
852
+ schema: zod.z.string()
853
+ }
854
+ ],
855
+ response: zod.z.object({ uploadId: zod.z.string().min(1) })
856
+ },
857
+ {
858
+ method: "delete",
859
+ path: "/files/:fileId/multipart",
860
+ description: `Abort a multipart upload and discard its uploaded parts.`,
861
+ requestFormat: "json",
862
+ parameters: [
863
+ {
864
+ name: "uploadId",
865
+ type: "Query",
866
+ schema: zod.z.string().min(1).max(4096)
867
+ },
868
+ {
869
+ name: "fileId",
870
+ type: "Path",
871
+ schema: zod.z.string()
872
+ }
873
+ ],
874
+ response: zod.z.void()
875
+ },
876
+ {
877
+ method: "post",
878
+ path: "/files/:fileId/multipart/complete",
879
+ description: `Complete a multipart upload and assemble the file in S3.`,
880
+ requestFormat: "json",
881
+ parameters: [
882
+ {
883
+ name: "body",
884
+ type: "Body",
885
+ schema: postFilesByFileIdMultipartComplete_Body
886
+ },
887
+ {
888
+ name: "fileId",
889
+ type: "Path",
890
+ schema: zod.z.string()
891
+ }
892
+ ],
893
+ response: zod.z.void()
894
+ },
895
+ {
896
+ method: "post",
897
+ path: "/files/:fileId/multipart/part",
898
+ description: `Get a pre-signed URL for one multipart upload part.`,
899
+ requestFormat: "json",
900
+ parameters: [
901
+ {
902
+ name: "body",
903
+ type: "Body",
904
+ schema: postFilesByFileIdMultipartPart_Body
905
+ },
906
+ {
907
+ name: "expiresIn",
908
+ type: "Query",
909
+ schema: zod.z.number().optional().default(3600)
910
+ },
911
+ {
912
+ name: "fileId",
913
+ type: "Path",
914
+ schema: zod.z.string()
915
+ }
916
+ ],
917
+ response: zod.z.object({
918
+ uploadUrl: zod.z.string().url(),
919
+ expiresAt: zod.z.string().regex(
920
+ /^(?:(?:\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))$/
921
+ ).datetime({ offset: true })
922
+ })
923
+ },
720
924
  {
721
925
  method: "post",
722
926
  path: "/files/:fileId/permalinks",
@@ -729,7 +933,11 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
729
933
  {
730
934
  name: "body",
731
935
  type: "Body",
732
- schema: zod.z.object({ expiresAt: zod.z.string().datetime({ offset: true }) }).partial()
936
+ schema: zod.z.object({
937
+ expiresAt: zod.z.string().regex(
938
+ /^(?:(?:\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))$/
939
+ ).datetime({ offset: true })
940
+ }).partial()
733
941
  },
734
942
  {
735
943
  name: "fileId",
@@ -741,7 +949,7 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
741
949
  id: zod.z.string(),
742
950
  fileId: zod.z.string(),
743
951
  workspaceId: zod.z.string(),
744
- createdAt: zod.z.string(),
952
+ createdAt: zod.z.string().datetime({ offset: true }),
745
953
  expiresAt: zod.z.union([zod.z.string(), zod.z.null()]),
746
954
  createdBy: zod.z.union([zod.z.string(), zod.z.null()])
747
955
  })
@@ -763,46 +971,12 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
763
971
  id: zod.z.string(),
764
972
  fileId: zod.z.string(),
765
973
  workspaceId: zod.z.string(),
766
- createdAt: zod.z.string(),
974
+ createdAt: zod.z.string().datetime({ offset: true }),
767
975
  expiresAt: zod.z.union([zod.z.string(), zod.z.null()]),
768
976
  createdBy: zod.z.union([zod.z.string(), zod.z.null()])
769
977
  })
770
978
  )
771
979
  },
772
- {
773
- method: "post",
774
- path: "/files/:filename",
775
- description: `Create a file and get a pre-signed upload URL (legacy endpoint).
776
-
777
- This endpoint is deprecated. Use POST /files instead with `originalFileName` in the request body.
778
-
779
- The `sha256` body param is used as the file's primary key. If not provided, a random UUID will be generated.
780
-
781
- The returned `url` is valid for 1 hour by default. You can change the expiration time by passing the `expiresIn` query parameter.
782
- `,
783
- requestFormat: "json",
784
- parameters: [
785
- {
786
- name: "body",
787
- type: "Body",
788
- schema: postFiles_Body
789
- },
790
- {
791
- name: "expiresIn",
792
- type: "Query",
793
- schema: zod.z.number().optional().default(3600)
794
- },
795
- {
796
- name: "filename",
797
- type: "Path",
798
- schema: zod.z.string()
799
- }
800
- ],
801
- response: zod.z.object({
802
- url: zod.z.string(),
803
- expiresAt: zod.z.string().datetime({ offset: true })
804
- })
805
- },
806
980
  {
807
981
  method: "put",
808
982
  path: "/files/:id",
@@ -820,33 +994,29 @@ The returned `url` is valid for 1 hour by default. You can change the
820
994
  schema: zod.z.string()
821
995
  }
822
996
  ],
823
- response: zod.z.union([
824
- zod.z.object({
997
+ response: zod.z.object({
998
+ id: zod.z.string(),
999
+ uploadUrl: zod.z.string().url(),
1000
+ expiresAt: zod.z.string().regex(
1001
+ /^(?:(?:\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))$/
1002
+ ).datetime({ offset: true }),
1003
+ metadata: zod.z.object({
825
1004
  id: zod.z.string(),
826
- uploadUrl: zod.z.string().url(),
827
- expiresAt: zod.z.string().datetime({ offset: true }),
828
- metadata: zod.z.object({
829
- id: zod.z.string(),
830
- path: zod.z.string(),
831
- workspaceId: zod.z.string(),
832
- parentId: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
833
- originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
834
- mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
835
- size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
836
- legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
837
- bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
838
- encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
839
- createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
840
- createdAt: zod.z.string(),
841
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
842
- uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
843
- })
844
- }),
845
- zod.z.object({
846
- url: zod.z.string().url(),
847
- expiresAt: zod.z.string().datetime({ offset: true })
1005
+ path: zod.z.string(),
1006
+ workspaceId: zod.z.string(),
1007
+ parentId: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1008
+ originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1009
+ mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1010
+ size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
1011
+ legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1012
+ bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1013
+ encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1014
+ createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1015
+ createdAt: zod.z.string(),
1016
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1017
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
848
1018
  })
849
- ])
1019
+ })
850
1020
  },
851
1021
  {
852
1022
  method: "delete",
@@ -968,7 +1138,9 @@ The returned `url` is valid for 1 hour by default. You can change the
968
1138
  zod.z.object({
969
1139
  id: zod.z.string(),
970
1140
  uploadUrl: zod.z.string(),
971
- expiresAt: zod.z.string().datetime({ offset: true }),
1141
+ expiresAt: zod.z.string().regex(
1142
+ /^(?:(?:\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))$/
1143
+ ).datetime({ offset: true }),
972
1144
  metadata: zod.z.object({
973
1145
  id: zod.z.string(),
974
1146
  path: zod.z.string(),
@@ -1048,7 +1220,7 @@ Make sure to follow redirects to the actual file download URL.
1048
1220
  id: zod.z.string(),
1049
1221
  fileId: zod.z.string(),
1050
1222
  workspaceId: zod.z.string(),
1051
- createdAt: zod.z.string(),
1223
+ createdAt: zod.z.string().datetime({ offset: true }),
1052
1224
  expiresAt: zod.z.union([zod.z.string(), zod.z.null()]),
1053
1225
  createdBy: zod.z.union([zod.z.string(), zod.z.null()])
1054
1226
  }),
@@ -1066,7 +1238,7 @@ function createApiClient(baseUrl, options) {
1066
1238
  return new core.Zodios(baseUrl, endpoints, options);
1067
1239
  }
1068
1240
 
1069
- const version = "2.14.0";
1241
+ const version = "2.17.6";
1070
1242
  const packageInfo = {
1071
1243
  version: version};
1072
1244