@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 +250 -78
- package/dist/index.d.cts +366 -130
- package/dist/index.d.mts +366 -130
- package/dist/index.d.ts +366 -130
- package/dist/index.mjs +250 -78
- package/package.json +24 -23
package/dist/index.d.cts
CHANGED
|
@@ -109,9 +109,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
109
109
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
110
110
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
111
111
|
createdBy: zod.ZodOptional<zod.ZodString>;
|
|
112
|
-
path: zod.ZodOptional<zod.ZodString>;
|
|
113
112
|
}, "strip", zod.ZodTypeAny, {
|
|
114
|
-
path?: string | undefined;
|
|
115
113
|
size?: number | undefined;
|
|
116
114
|
createdBy?: string | undefined;
|
|
117
115
|
fileName?: string | undefined;
|
|
@@ -121,7 +119,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
121
119
|
sha256sum?: string | undefined;
|
|
122
120
|
mimeType?: string | undefined;
|
|
123
121
|
}, {
|
|
124
|
-
path?: string | undefined;
|
|
125
122
|
size?: number | undefined;
|
|
126
123
|
createdBy?: string | undefined;
|
|
127
124
|
fileName?: string | undefined;
|
|
@@ -248,6 +245,14 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
248
245
|
name: "preserveFileName";
|
|
249
246
|
type: "Query";
|
|
250
247
|
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
|
|
248
|
+
}, {
|
|
249
|
+
name: "includeChildren";
|
|
250
|
+
type: "Query";
|
|
251
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
|
|
252
|
+
}, {
|
|
253
|
+
name: "includeParent";
|
|
254
|
+
type: "Query";
|
|
255
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
|
|
251
256
|
}, {
|
|
252
257
|
name: "fileId";
|
|
253
258
|
type: "Path";
|
|
@@ -271,7 +276,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
271
276
|
createdAt: zod.ZodString;
|
|
272
277
|
deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
273
278
|
uploadedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
274
|
-
children: zod.ZodArray<zod.ZodObject<{
|
|
279
|
+
children: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
275
280
|
id: zod.ZodString;
|
|
276
281
|
path: zod.ZodString;
|
|
277
282
|
workspaceId: zod.ZodString;
|
|
@@ -316,8 +321,8 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
316
321
|
bucketName?: string | null | undefined;
|
|
317
322
|
encryptionKey?: string | null | undefined;
|
|
318
323
|
uploadedAt?: string | null | undefined;
|
|
319
|
-
}>, "many"
|
|
320
|
-
parent: zod.ZodUnion<[zod.ZodObject<{
|
|
324
|
+
}>, "many">>;
|
|
325
|
+
parent: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
|
|
321
326
|
id: zod.ZodString;
|
|
322
327
|
path: zod.ZodString;
|
|
323
328
|
workspaceId: zod.ZodString;
|
|
@@ -362,13 +367,23 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
362
367
|
bucketName?: string | null | undefined;
|
|
363
368
|
encryptionKey?: string | null | undefined;
|
|
364
369
|
uploadedAt?: string | null | undefined;
|
|
365
|
-
}>, zod.ZodNull]
|
|
370
|
+
}>, zod.ZodNull]>>;
|
|
366
371
|
}, "strip", zod.ZodTypeAny, {
|
|
367
372
|
path: string;
|
|
368
373
|
workspaceId: string;
|
|
369
374
|
id: string;
|
|
370
375
|
createdAt: string;
|
|
371
|
-
|
|
376
|
+
deletedAt?: string | null | undefined;
|
|
377
|
+
originalFileName?: string | null | undefined;
|
|
378
|
+
size?: number | null | undefined;
|
|
379
|
+
createdBy?: string | null | undefined;
|
|
380
|
+
parentId?: string | null | undefined;
|
|
381
|
+
mimeType?: string | null | undefined;
|
|
382
|
+
legacyKey?: string | null | undefined;
|
|
383
|
+
bucketName?: string | null | undefined;
|
|
384
|
+
encryptionKey?: string | null | undefined;
|
|
385
|
+
uploadedAt?: string | null | undefined;
|
|
386
|
+
children?: {
|
|
372
387
|
path: string;
|
|
373
388
|
workspaceId: string;
|
|
374
389
|
id: string;
|
|
@@ -383,8 +398,8 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
383
398
|
bucketName?: string | null | undefined;
|
|
384
399
|
encryptionKey?: string | null | undefined;
|
|
385
400
|
uploadedAt?: string | null | undefined;
|
|
386
|
-
}[];
|
|
387
|
-
parent
|
|
401
|
+
}[] | undefined;
|
|
402
|
+
parent?: {
|
|
388
403
|
path: string;
|
|
389
404
|
workspaceId: string;
|
|
390
405
|
id: string;
|
|
@@ -399,7 +414,12 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
399
414
|
bucketName?: string | null | undefined;
|
|
400
415
|
encryptionKey?: string | null | undefined;
|
|
401
416
|
uploadedAt?: string | null | undefined;
|
|
402
|
-
} | null;
|
|
417
|
+
} | null | undefined;
|
|
418
|
+
}, {
|
|
419
|
+
path: string;
|
|
420
|
+
workspaceId: string;
|
|
421
|
+
id: string;
|
|
422
|
+
createdAt: string;
|
|
403
423
|
deletedAt?: string | null | undefined;
|
|
404
424
|
originalFileName?: string | null | undefined;
|
|
405
425
|
size?: number | null | undefined;
|
|
@@ -410,12 +430,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
410
430
|
bucketName?: string | null | undefined;
|
|
411
431
|
encryptionKey?: string | null | undefined;
|
|
412
432
|
uploadedAt?: string | null | undefined;
|
|
413
|
-
|
|
414
|
-
path: string;
|
|
415
|
-
workspaceId: string;
|
|
416
|
-
id: string;
|
|
417
|
-
createdAt: string;
|
|
418
|
-
children: {
|
|
433
|
+
children?: {
|
|
419
434
|
path: string;
|
|
420
435
|
workspaceId: string;
|
|
421
436
|
id: string;
|
|
@@ -430,8 +445,8 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
430
445
|
bucketName?: string | null | undefined;
|
|
431
446
|
encryptionKey?: string | null | undefined;
|
|
432
447
|
uploadedAt?: string | null | undefined;
|
|
433
|
-
}[];
|
|
434
|
-
parent
|
|
448
|
+
}[] | undefined;
|
|
449
|
+
parent?: {
|
|
435
450
|
path: string;
|
|
436
451
|
workspaceId: string;
|
|
437
452
|
id: string;
|
|
@@ -446,7 +461,15 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
446
461
|
bucketName?: string | null | undefined;
|
|
447
462
|
encryptionKey?: string | null | undefined;
|
|
448
463
|
uploadedAt?: string | null | undefined;
|
|
449
|
-
} | null;
|
|
464
|
+
} | null | undefined;
|
|
465
|
+
}>, zod.ZodNull]>;
|
|
466
|
+
}, "strip", zod.ZodTypeAny, {
|
|
467
|
+
expiresAt: string;
|
|
468
|
+
metadata: {
|
|
469
|
+
path: string;
|
|
470
|
+
workspaceId: string;
|
|
471
|
+
id: string;
|
|
472
|
+
createdAt: string;
|
|
450
473
|
deletedAt?: string | null | undefined;
|
|
451
474
|
originalFileName?: string | null | undefined;
|
|
452
475
|
size?: number | null | undefined;
|
|
@@ -457,15 +480,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
457
480
|
bucketName?: string | null | undefined;
|
|
458
481
|
encryptionKey?: string | null | undefined;
|
|
459
482
|
uploadedAt?: string | null | undefined;
|
|
460
|
-
|
|
461
|
-
}, "strip", zod.ZodTypeAny, {
|
|
462
|
-
expiresAt: string;
|
|
463
|
-
metadata: {
|
|
464
|
-
path: string;
|
|
465
|
-
workspaceId: string;
|
|
466
|
-
id: string;
|
|
467
|
-
createdAt: string;
|
|
468
|
-
children: {
|
|
483
|
+
children?: {
|
|
469
484
|
path: string;
|
|
470
485
|
workspaceId: string;
|
|
471
486
|
id: string;
|
|
@@ -480,8 +495,8 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
480
495
|
bucketName?: string | null | undefined;
|
|
481
496
|
encryptionKey?: string | null | undefined;
|
|
482
497
|
uploadedAt?: string | null | undefined;
|
|
483
|
-
}[];
|
|
484
|
-
parent
|
|
498
|
+
}[] | undefined;
|
|
499
|
+
parent?: {
|
|
485
500
|
path: string;
|
|
486
501
|
workspaceId: string;
|
|
487
502
|
id: string;
|
|
@@ -496,7 +511,16 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
496
511
|
bucketName?: string | null | undefined;
|
|
497
512
|
encryptionKey?: string | null | undefined;
|
|
498
513
|
uploadedAt?: string | null | undefined;
|
|
499
|
-
} | null;
|
|
514
|
+
} | null | undefined;
|
|
515
|
+
} | null;
|
|
516
|
+
url: string;
|
|
517
|
+
}, {
|
|
518
|
+
expiresAt: string;
|
|
519
|
+
metadata: {
|
|
520
|
+
path: string;
|
|
521
|
+
workspaceId: string;
|
|
522
|
+
id: string;
|
|
523
|
+
createdAt: string;
|
|
500
524
|
deletedAt?: string | null | undefined;
|
|
501
525
|
originalFileName?: string | null | undefined;
|
|
502
526
|
size?: number | null | undefined;
|
|
@@ -507,16 +531,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
507
531
|
bucketName?: string | null | undefined;
|
|
508
532
|
encryptionKey?: string | null | undefined;
|
|
509
533
|
uploadedAt?: string | null | undefined;
|
|
510
|
-
|
|
511
|
-
url: string;
|
|
512
|
-
}, {
|
|
513
|
-
expiresAt: string;
|
|
514
|
-
metadata: {
|
|
515
|
-
path: string;
|
|
516
|
-
workspaceId: string;
|
|
517
|
-
id: string;
|
|
518
|
-
createdAt: string;
|
|
519
|
-
children: {
|
|
534
|
+
children?: {
|
|
520
535
|
path: string;
|
|
521
536
|
workspaceId: string;
|
|
522
537
|
id: string;
|
|
@@ -531,8 +546,8 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
531
546
|
bucketName?: string | null | undefined;
|
|
532
547
|
encryptionKey?: string | null | undefined;
|
|
533
548
|
uploadedAt?: string | null | undefined;
|
|
534
|
-
}[];
|
|
535
|
-
parent
|
|
549
|
+
}[] | undefined;
|
|
550
|
+
parent?: {
|
|
536
551
|
path: string;
|
|
537
552
|
workspaceId: string;
|
|
538
553
|
id: string;
|
|
@@ -547,17 +562,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
547
562
|
bucketName?: string | null | undefined;
|
|
548
563
|
encryptionKey?: string | null | undefined;
|
|
549
564
|
uploadedAt?: string | null | undefined;
|
|
550
|
-
} | null;
|
|
551
|
-
deletedAt?: string | null | undefined;
|
|
552
|
-
originalFileName?: string | null | undefined;
|
|
553
|
-
size?: number | null | undefined;
|
|
554
|
-
createdBy?: string | null | undefined;
|
|
555
|
-
parentId?: string | null | undefined;
|
|
556
|
-
mimeType?: string | null | undefined;
|
|
557
|
-
legacyKey?: string | null | undefined;
|
|
558
|
-
bucketName?: string | null | undefined;
|
|
559
|
-
encryptionKey?: string | null | undefined;
|
|
560
|
-
uploadedAt?: string | null | undefined;
|
|
565
|
+
} | null | undefined;
|
|
561
566
|
} | null;
|
|
562
567
|
url: string;
|
|
563
568
|
}>;
|
|
@@ -1034,6 +1039,202 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
1034
1039
|
schema: zod.ZodString;
|
|
1035
1040
|
}];
|
|
1036
1041
|
response: zod.ZodVoid;
|
|
1042
|
+
}, {
|
|
1043
|
+
method: "post";
|
|
1044
|
+
path: "/assets";
|
|
1045
|
+
description: "Create an asset and get a pre-signed upload URL for the dedicated assets bucket.";
|
|
1046
|
+
requestFormat: "json";
|
|
1047
|
+
parameters: [{
|
|
1048
|
+
name: "body";
|
|
1049
|
+
type: "Body";
|
|
1050
|
+
schema: zod.ZodObject<{
|
|
1051
|
+
assetClass: zod.ZodString;
|
|
1052
|
+
subject: zod.ZodString;
|
|
1053
|
+
mimeType: zod.ZodEnum<["image/png", "image/jpeg", "image/gif", "image/webp", "image/avif"]>;
|
|
1054
|
+
size: zod.ZodOptional<zod.ZodNumber>;
|
|
1055
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1056
|
+
mimeType: "image/png" | "image/jpeg" | "image/gif" | "image/webp" | "image/avif";
|
|
1057
|
+
assetClass: string;
|
|
1058
|
+
subject: string;
|
|
1059
|
+
size?: number | undefined;
|
|
1060
|
+
}, {
|
|
1061
|
+
mimeType: "image/png" | "image/jpeg" | "image/gif" | "image/webp" | "image/avif";
|
|
1062
|
+
assetClass: string;
|
|
1063
|
+
subject: string;
|
|
1064
|
+
size?: number | undefined;
|
|
1065
|
+
}>;
|
|
1066
|
+
}, {
|
|
1067
|
+
name: "expiresIn";
|
|
1068
|
+
type: "Query";
|
|
1069
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
|
|
1070
|
+
}];
|
|
1071
|
+
response: zod.ZodObject<{
|
|
1072
|
+
assetId: zod.ZodString;
|
|
1073
|
+
assetUrl: zod.ZodString;
|
|
1074
|
+
uploadUrl: zod.ZodString;
|
|
1075
|
+
expiresAt: zod.ZodString;
|
|
1076
|
+
uploadHeaders: zod.ZodObject<{
|
|
1077
|
+
"cache-control": zod.ZodString;
|
|
1078
|
+
"content-disposition": zod.ZodString;
|
|
1079
|
+
"content-type": zod.ZodString;
|
|
1080
|
+
"if-none-match": zod.ZodString;
|
|
1081
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1082
|
+
"cache-control": string;
|
|
1083
|
+
"content-disposition": string;
|
|
1084
|
+
"content-type": string;
|
|
1085
|
+
"if-none-match": string;
|
|
1086
|
+
}, {
|
|
1087
|
+
"cache-control": string;
|
|
1088
|
+
"content-disposition": string;
|
|
1089
|
+
"content-type": string;
|
|
1090
|
+
"if-none-match": string;
|
|
1091
|
+
}>;
|
|
1092
|
+
asset: zod.ZodObject<{
|
|
1093
|
+
id: zod.ZodString;
|
|
1094
|
+
path: zod.ZodString;
|
|
1095
|
+
assetUrl: zod.ZodString;
|
|
1096
|
+
assetClass: zod.ZodString;
|
|
1097
|
+
subject: zod.ZodString;
|
|
1098
|
+
mimeType: zod.ZodString;
|
|
1099
|
+
size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
|
|
1100
|
+
bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
1101
|
+
createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
1102
|
+
createdAt: zod.ZodString;
|
|
1103
|
+
uploadedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
1104
|
+
deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
1105
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1106
|
+
path: string;
|
|
1107
|
+
id: string;
|
|
1108
|
+
createdAt: string;
|
|
1109
|
+
mimeType: string;
|
|
1110
|
+
assetClass: string;
|
|
1111
|
+
subject: string;
|
|
1112
|
+
assetUrl: string;
|
|
1113
|
+
deletedAt?: string | null | undefined;
|
|
1114
|
+
size?: number | null | undefined;
|
|
1115
|
+
createdBy?: string | null | undefined;
|
|
1116
|
+
bucketName?: string | null | undefined;
|
|
1117
|
+
uploadedAt?: string | null | undefined;
|
|
1118
|
+
}, {
|
|
1119
|
+
path: string;
|
|
1120
|
+
id: string;
|
|
1121
|
+
createdAt: string;
|
|
1122
|
+
mimeType: string;
|
|
1123
|
+
assetClass: string;
|
|
1124
|
+
subject: string;
|
|
1125
|
+
assetUrl: string;
|
|
1126
|
+
deletedAt?: string | null | undefined;
|
|
1127
|
+
size?: number | null | undefined;
|
|
1128
|
+
createdBy?: string | null | undefined;
|
|
1129
|
+
bucketName?: string | null | undefined;
|
|
1130
|
+
uploadedAt?: string | null | undefined;
|
|
1131
|
+
}>;
|
|
1132
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1133
|
+
uploadUrl: string;
|
|
1134
|
+
expiresAt: string;
|
|
1135
|
+
assetId: string;
|
|
1136
|
+
assetUrl: string;
|
|
1137
|
+
uploadHeaders: {
|
|
1138
|
+
"cache-control": string;
|
|
1139
|
+
"content-disposition": string;
|
|
1140
|
+
"content-type": string;
|
|
1141
|
+
"if-none-match": string;
|
|
1142
|
+
};
|
|
1143
|
+
asset: {
|
|
1144
|
+
path: string;
|
|
1145
|
+
id: string;
|
|
1146
|
+
createdAt: string;
|
|
1147
|
+
mimeType: string;
|
|
1148
|
+
assetClass: string;
|
|
1149
|
+
subject: string;
|
|
1150
|
+
assetUrl: string;
|
|
1151
|
+
deletedAt?: string | null | undefined;
|
|
1152
|
+
size?: number | null | undefined;
|
|
1153
|
+
createdBy?: string | null | undefined;
|
|
1154
|
+
bucketName?: string | null | undefined;
|
|
1155
|
+
uploadedAt?: string | null | undefined;
|
|
1156
|
+
};
|
|
1157
|
+
}, {
|
|
1158
|
+
uploadUrl: string;
|
|
1159
|
+
expiresAt: string;
|
|
1160
|
+
assetId: string;
|
|
1161
|
+
assetUrl: string;
|
|
1162
|
+
uploadHeaders: {
|
|
1163
|
+
"cache-control": string;
|
|
1164
|
+
"content-disposition": string;
|
|
1165
|
+
"content-type": string;
|
|
1166
|
+
"if-none-match": string;
|
|
1167
|
+
};
|
|
1168
|
+
asset: {
|
|
1169
|
+
path: string;
|
|
1170
|
+
id: string;
|
|
1171
|
+
createdAt: string;
|
|
1172
|
+
mimeType: string;
|
|
1173
|
+
assetClass: string;
|
|
1174
|
+
subject: string;
|
|
1175
|
+
assetUrl: string;
|
|
1176
|
+
deletedAt?: string | null | undefined;
|
|
1177
|
+
size?: number | null | undefined;
|
|
1178
|
+
createdBy?: string | null | undefined;
|
|
1179
|
+
bucketName?: string | null | undefined;
|
|
1180
|
+
uploadedAt?: string | null | undefined;
|
|
1181
|
+
};
|
|
1182
|
+
}>;
|
|
1183
|
+
}, {
|
|
1184
|
+
method: "get";
|
|
1185
|
+
path: "/assets/:assetId";
|
|
1186
|
+
description: "Get a stored asset by ID, including its stable CloudFront URL.";
|
|
1187
|
+
requestFormat: "json";
|
|
1188
|
+
parameters: [{
|
|
1189
|
+
name: "assetId";
|
|
1190
|
+
type: "Path";
|
|
1191
|
+
schema: zod.ZodString;
|
|
1192
|
+
}];
|
|
1193
|
+
response: zod.ZodObject<{
|
|
1194
|
+
id: zod.ZodString;
|
|
1195
|
+
path: zod.ZodString;
|
|
1196
|
+
assetUrl: zod.ZodString;
|
|
1197
|
+
assetClass: zod.ZodString;
|
|
1198
|
+
subject: zod.ZodString;
|
|
1199
|
+
mimeType: zod.ZodString;
|
|
1200
|
+
size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
|
|
1201
|
+
bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
1202
|
+
createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
1203
|
+
createdAt: zod.ZodString;
|
|
1204
|
+
uploadedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
1205
|
+
deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
1206
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1207
|
+
path: string;
|
|
1208
|
+
id: string;
|
|
1209
|
+
createdAt: string;
|
|
1210
|
+
mimeType: string;
|
|
1211
|
+
assetClass: string;
|
|
1212
|
+
subject: string;
|
|
1213
|
+
assetUrl: string;
|
|
1214
|
+
deletedAt?: string | null | undefined;
|
|
1215
|
+
size?: number | null | undefined;
|
|
1216
|
+
createdBy?: string | null | undefined;
|
|
1217
|
+
bucketName?: string | null | undefined;
|
|
1218
|
+
uploadedAt?: string | null | undefined;
|
|
1219
|
+
}, {
|
|
1220
|
+
path: string;
|
|
1221
|
+
id: string;
|
|
1222
|
+
createdAt: string;
|
|
1223
|
+
mimeType: string;
|
|
1224
|
+
assetClass: string;
|
|
1225
|
+
subject: string;
|
|
1226
|
+
assetUrl: string;
|
|
1227
|
+
deletedAt?: string | null | undefined;
|
|
1228
|
+
size?: number | null | undefined;
|
|
1229
|
+
createdBy?: string | null | undefined;
|
|
1230
|
+
bucketName?: string | null | undefined;
|
|
1231
|
+
uploadedAt?: string | null | undefined;
|
|
1232
|
+
}>;
|
|
1233
|
+
errors: [{
|
|
1234
|
+
status: 404;
|
|
1235
|
+
description: string;
|
|
1236
|
+
schema: zod.ZodVoid;
|
|
1237
|
+
}];
|
|
1037
1238
|
}, {
|
|
1038
1239
|
method: "post";
|
|
1039
1240
|
path: "/files";
|
|
@@ -1051,9 +1252,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
1051
1252
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
1052
1253
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
1053
1254
|
createdBy: zod.ZodOptional<zod.ZodString>;
|
|
1054
|
-
path: zod.ZodOptional<zod.ZodString>;
|
|
1055
1255
|
}, "strip", zod.ZodTypeAny, {
|
|
1056
|
-
path?: string | undefined;
|
|
1057
1256
|
size?: number | undefined;
|
|
1058
1257
|
createdBy?: string | undefined;
|
|
1059
1258
|
fileName?: string | undefined;
|
|
@@ -1063,7 +1262,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
1063
1262
|
sha256sum?: string | undefined;
|
|
1064
1263
|
mimeType?: string | undefined;
|
|
1065
1264
|
}, {
|
|
1066
|
-
path?: string | undefined;
|
|
1067
1265
|
size?: number | undefined;
|
|
1068
1266
|
createdBy?: string | undefined;
|
|
1069
1267
|
fileName?: string | undefined;
|
|
@@ -1467,6 +1665,114 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
1467
1665
|
encryptionKey?: string | null | undefined;
|
|
1468
1666
|
uploadedAt?: string | null | undefined;
|
|
1469
1667
|
}>;
|
|
1668
|
+
}, {
|
|
1669
|
+
method: "post";
|
|
1670
|
+
path: "/files/:fileId/multipart";
|
|
1671
|
+
description: "Initiate a multipart upload for a file.";
|
|
1672
|
+
requestFormat: "json";
|
|
1673
|
+
parameters: [{
|
|
1674
|
+
name: "fileId";
|
|
1675
|
+
type: "Path";
|
|
1676
|
+
schema: zod.ZodString;
|
|
1677
|
+
}];
|
|
1678
|
+
response: zod.ZodObject<{
|
|
1679
|
+
uploadId: zod.ZodString;
|
|
1680
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1681
|
+
uploadId: string;
|
|
1682
|
+
}, {
|
|
1683
|
+
uploadId: string;
|
|
1684
|
+
}>;
|
|
1685
|
+
}, {
|
|
1686
|
+
method: "delete";
|
|
1687
|
+
path: "/files/:fileId/multipart";
|
|
1688
|
+
description: "Abort a multipart upload and discard its uploaded parts.";
|
|
1689
|
+
requestFormat: "json";
|
|
1690
|
+
parameters: [{
|
|
1691
|
+
name: "uploadId";
|
|
1692
|
+
type: "Query";
|
|
1693
|
+
schema: zod.ZodString;
|
|
1694
|
+
}, {
|
|
1695
|
+
name: "fileId";
|
|
1696
|
+
type: "Path";
|
|
1697
|
+
schema: zod.ZodString;
|
|
1698
|
+
}];
|
|
1699
|
+
response: zod.ZodVoid;
|
|
1700
|
+
}, {
|
|
1701
|
+
method: "post";
|
|
1702
|
+
path: "/files/:fileId/multipart/complete";
|
|
1703
|
+
description: "Complete a multipart upload and assemble the file in S3.";
|
|
1704
|
+
requestFormat: "json";
|
|
1705
|
+
parameters: [{
|
|
1706
|
+
name: "body";
|
|
1707
|
+
type: "Body";
|
|
1708
|
+
schema: zod.ZodObject<{
|
|
1709
|
+
uploadId: zod.ZodString;
|
|
1710
|
+
parts: zod.ZodArray<zod.ZodObject<{
|
|
1711
|
+
partNumber: zod.ZodNumber;
|
|
1712
|
+
etag: zod.ZodString;
|
|
1713
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1714
|
+
partNumber: number;
|
|
1715
|
+
etag: string;
|
|
1716
|
+
}, {
|
|
1717
|
+
partNumber: number;
|
|
1718
|
+
etag: string;
|
|
1719
|
+
}>, "many">;
|
|
1720
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1721
|
+
uploadId: string;
|
|
1722
|
+
parts: {
|
|
1723
|
+
partNumber: number;
|
|
1724
|
+
etag: string;
|
|
1725
|
+
}[];
|
|
1726
|
+
}, {
|
|
1727
|
+
uploadId: string;
|
|
1728
|
+
parts: {
|
|
1729
|
+
partNumber: number;
|
|
1730
|
+
etag: string;
|
|
1731
|
+
}[];
|
|
1732
|
+
}>;
|
|
1733
|
+
}, {
|
|
1734
|
+
name: "fileId";
|
|
1735
|
+
type: "Path";
|
|
1736
|
+
schema: zod.ZodString;
|
|
1737
|
+
}];
|
|
1738
|
+
response: zod.ZodVoid;
|
|
1739
|
+
}, {
|
|
1740
|
+
method: "post";
|
|
1741
|
+
path: "/files/:fileId/multipart/part";
|
|
1742
|
+
description: "Get a pre-signed URL for one multipart upload part.";
|
|
1743
|
+
requestFormat: "json";
|
|
1744
|
+
parameters: [{
|
|
1745
|
+
name: "body";
|
|
1746
|
+
type: "Body";
|
|
1747
|
+
schema: zod.ZodObject<{
|
|
1748
|
+
uploadId: zod.ZodString;
|
|
1749
|
+
partNumber: zod.ZodNumber;
|
|
1750
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1751
|
+
uploadId: string;
|
|
1752
|
+
partNumber: number;
|
|
1753
|
+
}, {
|
|
1754
|
+
uploadId: string;
|
|
1755
|
+
partNumber: number;
|
|
1756
|
+
}>;
|
|
1757
|
+
}, {
|
|
1758
|
+
name: "expiresIn";
|
|
1759
|
+
type: "Query";
|
|
1760
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
|
|
1761
|
+
}, {
|
|
1762
|
+
name: "fileId";
|
|
1763
|
+
type: "Path";
|
|
1764
|
+
schema: zod.ZodString;
|
|
1765
|
+
}];
|
|
1766
|
+
response: zod.ZodObject<{
|
|
1767
|
+
uploadUrl: zod.ZodString;
|
|
1768
|
+
expiresAt: zod.ZodString;
|
|
1769
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1770
|
+
uploadUrl: string;
|
|
1771
|
+
expiresAt: string;
|
|
1772
|
+
}, {
|
|
1773
|
+
uploadUrl: string;
|
|
1774
|
+
expiresAt: string;
|
|
1775
|
+
}>;
|
|
1470
1776
|
}, {
|
|
1471
1777
|
method: "post";
|
|
1472
1778
|
path: "/files/:fileId/permalinks";
|
|
@@ -1541,64 +1847,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
1541
1847
|
expiresAt: string | null;
|
|
1542
1848
|
fileId: string;
|
|
1543
1849
|
}>, "many">;
|
|
1544
|
-
}, {
|
|
1545
|
-
method: "post";
|
|
1546
|
-
path: "/files/:filename";
|
|
1547
|
-
description: "Create a file and get a pre-signed upload URL (legacy endpoint).\n\nThis endpoint is deprecated. Use POST /files instead with `originalFileName` in the request body.\n\nThe `sha256` body param is used as the file's primary key. If not provided, a random UUID will be generated.\n\nThe returned `url` is valid for 1 hour by default. You can change the expiration time by passing the `expiresIn` query parameter.\n";
|
|
1548
|
-
requestFormat: "json";
|
|
1549
|
-
parameters: [{
|
|
1550
|
-
name: "body";
|
|
1551
|
-
type: "Body";
|
|
1552
|
-
schema: zod.ZodObject<{
|
|
1553
|
-
fileName: zod.ZodOptional<zod.ZodString>;
|
|
1554
|
-
parentId: zod.ZodOptional<zod.ZodString>;
|
|
1555
|
-
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
1556
|
-
onParentConflict: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "update-parent-id", "ignore"]>>>;
|
|
1557
|
-
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
1558
|
-
size: zod.ZodOptional<zod.ZodNumber>;
|
|
1559
|
-
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
1560
|
-
createdBy: zod.ZodOptional<zod.ZodString>;
|
|
1561
|
-
path: zod.ZodOptional<zod.ZodString>;
|
|
1562
|
-
}, "strip", zod.ZodTypeAny, {
|
|
1563
|
-
path?: string | undefined;
|
|
1564
|
-
size?: number | undefined;
|
|
1565
|
-
createdBy?: string | undefined;
|
|
1566
|
-
fileName?: string | undefined;
|
|
1567
|
-
parentId?: string | undefined;
|
|
1568
|
-
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1569
|
-
onParentConflict?: "error" | "update-parent-id" | "ignore" | undefined;
|
|
1570
|
-
sha256sum?: string | undefined;
|
|
1571
|
-
mimeType?: string | undefined;
|
|
1572
|
-
}, {
|
|
1573
|
-
path?: string | undefined;
|
|
1574
|
-
size?: number | undefined;
|
|
1575
|
-
createdBy?: string | undefined;
|
|
1576
|
-
fileName?: string | undefined;
|
|
1577
|
-
parentId?: string | undefined;
|
|
1578
|
-
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1579
|
-
onParentConflict?: "error" | "update-parent-id" | "ignore" | undefined;
|
|
1580
|
-
sha256sum?: string | undefined;
|
|
1581
|
-
mimeType?: string | undefined;
|
|
1582
|
-
}>;
|
|
1583
|
-
}, {
|
|
1584
|
-
name: "expiresIn";
|
|
1585
|
-
type: "Query";
|
|
1586
|
-
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
|
|
1587
|
-
}, {
|
|
1588
|
-
name: "filename";
|
|
1589
|
-
type: "Path";
|
|
1590
|
-
schema: zod.ZodString;
|
|
1591
|
-
}];
|
|
1592
|
-
response: zod.ZodObject<{
|
|
1593
|
-
url: zod.ZodString;
|
|
1594
|
-
expiresAt: zod.ZodString;
|
|
1595
|
-
}, "strip", zod.ZodTypeAny, {
|
|
1596
|
-
expiresAt: string;
|
|
1597
|
-
url: string;
|
|
1598
|
-
}, {
|
|
1599
|
-
expiresAt: string;
|
|
1600
|
-
url: string;
|
|
1601
|
-
}>;
|
|
1602
1850
|
}, {
|
|
1603
1851
|
method: "put";
|
|
1604
1852
|
path: "/files/:id";
|
|
@@ -1613,7 +1861,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
1613
1861
|
type: "Path";
|
|
1614
1862
|
schema: zod.ZodString;
|
|
1615
1863
|
}];
|
|
1616
|
-
response: zod.
|
|
1864
|
+
response: zod.ZodObject<{
|
|
1617
1865
|
id: zod.ZodString;
|
|
1618
1866
|
uploadUrl: zod.ZodString;
|
|
1619
1867
|
expiresAt: zod.ZodString;
|
|
@@ -1703,16 +1951,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
1703
1951
|
encryptionKey?: string | null | undefined;
|
|
1704
1952
|
uploadedAt?: string | null | undefined;
|
|
1705
1953
|
};
|
|
1706
|
-
}
|
|
1707
|
-
url: zod.ZodString;
|
|
1708
|
-
expiresAt: zod.ZodString;
|
|
1709
|
-
}, "strip", zod.ZodTypeAny, {
|
|
1710
|
-
expiresAt: string;
|
|
1711
|
-
url: string;
|
|
1712
|
-
}, {
|
|
1713
|
-
expiresAt: string;
|
|
1714
|
-
url: string;
|
|
1715
|
-
}>]>;
|
|
1954
|
+
}>;
|
|
1716
1955
|
}, {
|
|
1717
1956
|
method: "delete";
|
|
1718
1957
|
path: "/files/:id";
|
|
@@ -1913,9 +2152,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
1913
2152
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
1914
2153
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
1915
2154
|
createdBy: zod.ZodOptional<zod.ZodString>;
|
|
1916
|
-
path: zod.ZodOptional<zod.ZodString>;
|
|
1917
2155
|
}, "strip", zod.ZodTypeAny, {
|
|
1918
|
-
path?: string | undefined;
|
|
1919
2156
|
size?: number | undefined;
|
|
1920
2157
|
createdBy?: string | undefined;
|
|
1921
2158
|
fileName?: string | undefined;
|
|
@@ -1925,7 +2162,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
1925
2162
|
sha256sum?: string | undefined;
|
|
1926
2163
|
mimeType?: string | undefined;
|
|
1927
2164
|
}, {
|
|
1928
|
-
path?: string | undefined;
|
|
1929
2165
|
size?: number | undefined;
|
|
1930
2166
|
createdBy?: string | undefined;
|
|
1931
2167
|
fileName?: string | undefined;
|