@meistrari/vault-http-client 2.6.3 → 2.8.0
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 +3 -1
- package/dist/index.d.cts +42 -0
- package/dist/index.d.mts +42 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8,6 +8,7 @@ const postFilesBulk_Body = zod.z.union([
|
|
|
8
8
|
zod.z.object({
|
|
9
9
|
fileName: zod.z.string(),
|
|
10
10
|
parentId: zod.z.string(),
|
|
11
|
+
onMissingParent: zod.z.enum(["error", "create-as-root"]).default("error"),
|
|
11
12
|
sha256sum: zod.z.string(),
|
|
12
13
|
size: zod.z.number(),
|
|
13
14
|
mimeType: zod.z.string(),
|
|
@@ -20,6 +21,7 @@ const postFilesBulk_Body = zod.z.union([
|
|
|
20
21
|
const postFiles_Body = zod.z.object({
|
|
21
22
|
fileName: zod.z.string(),
|
|
22
23
|
parentId: zod.z.string(),
|
|
24
|
+
onMissingParent: zod.z.enum(["error", "create-as-root"]).default("error"),
|
|
23
25
|
sha256sum: zod.z.string(),
|
|
24
26
|
size: zod.z.number(),
|
|
25
27
|
mimeType: zod.z.string(),
|
|
@@ -1316,7 +1318,7 @@ function useVaultClient(vaultUrl, token) {
|
|
|
1316
1318
|
axiosConfig: {
|
|
1317
1319
|
headers: {
|
|
1318
1320
|
"Authorization": token,
|
|
1319
|
-
"User-Agent": "vault-http-client:2.
|
|
1321
|
+
"User-Agent": "vault-http-client:2.8.0"
|
|
1320
1322
|
}
|
|
1321
1323
|
}
|
|
1322
1324
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -105,6 +105,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
105
105
|
schema: z.ZodObject<{
|
|
106
106
|
fileName: z.ZodOptional<z.ZodString>;
|
|
107
107
|
parentId: z.ZodOptional<z.ZodString>;
|
|
108
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
108
109
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
109
110
|
size: z.ZodOptional<z.ZodNumber>;
|
|
110
111
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -114,6 +115,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
114
115
|
path?: string | undefined;
|
|
115
116
|
fileName?: string | undefined;
|
|
116
117
|
parentId?: string | undefined;
|
|
118
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
117
119
|
sha256sum?: string | undefined;
|
|
118
120
|
size?: number | undefined;
|
|
119
121
|
mimeType?: string | undefined;
|
|
@@ -122,6 +124,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
122
124
|
path?: string | undefined;
|
|
123
125
|
fileName?: string | undefined;
|
|
124
126
|
parentId?: string | undefined;
|
|
127
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
125
128
|
sha256sum?: string | undefined;
|
|
126
129
|
size?: number | undefined;
|
|
127
130
|
mimeType?: string | undefined;
|
|
@@ -1040,6 +1043,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1040
1043
|
schema: z.ZodObject<{
|
|
1041
1044
|
fileName: z.ZodOptional<z.ZodString>;
|
|
1042
1045
|
parentId: z.ZodOptional<z.ZodString>;
|
|
1046
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
1043
1047
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
1044
1048
|
size: z.ZodOptional<z.ZodNumber>;
|
|
1045
1049
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -1049,6 +1053,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1049
1053
|
path?: string | undefined;
|
|
1050
1054
|
fileName?: string | undefined;
|
|
1051
1055
|
parentId?: string | undefined;
|
|
1056
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1052
1057
|
sha256sum?: string | undefined;
|
|
1053
1058
|
size?: number | undefined;
|
|
1054
1059
|
mimeType?: string | undefined;
|
|
@@ -1057,6 +1062,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1057
1062
|
path?: string | undefined;
|
|
1058
1063
|
fileName?: string | undefined;
|
|
1059
1064
|
parentId?: string | undefined;
|
|
1065
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1060
1066
|
sha256sum?: string | undefined;
|
|
1061
1067
|
size?: number | undefined;
|
|
1062
1068
|
mimeType?: string | undefined;
|
|
@@ -1349,6 +1355,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1349
1355
|
schema: z.ZodObject<{
|
|
1350
1356
|
fileName: z.ZodOptional<z.ZodString>;
|
|
1351
1357
|
parentId: z.ZodOptional<z.ZodString>;
|
|
1358
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
1352
1359
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
1353
1360
|
size: z.ZodOptional<z.ZodNumber>;
|
|
1354
1361
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -1358,6 +1365,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1358
1365
|
path?: string | undefined;
|
|
1359
1366
|
fileName?: string | undefined;
|
|
1360
1367
|
parentId?: string | undefined;
|
|
1368
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1361
1369
|
sha256sum?: string | undefined;
|
|
1362
1370
|
size?: number | undefined;
|
|
1363
1371
|
mimeType?: string | undefined;
|
|
@@ -1366,6 +1374,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1366
1374
|
path?: string | undefined;
|
|
1367
1375
|
fileName?: string | undefined;
|
|
1368
1376
|
parentId?: string | undefined;
|
|
1377
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1369
1378
|
sha256sum?: string | undefined;
|
|
1370
1379
|
size?: number | undefined;
|
|
1371
1380
|
mimeType?: string | undefined;
|
|
@@ -1698,6 +1707,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1698
1707
|
schema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
1699
1708
|
fileName: z.ZodOptional<z.ZodString>;
|
|
1700
1709
|
parentId: z.ZodOptional<z.ZodString>;
|
|
1710
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
1701
1711
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
1702
1712
|
size: z.ZodOptional<z.ZodNumber>;
|
|
1703
1713
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -1707,6 +1717,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1707
1717
|
path?: string | undefined;
|
|
1708
1718
|
fileName?: string | undefined;
|
|
1709
1719
|
parentId?: string | undefined;
|
|
1720
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1710
1721
|
sha256sum?: string | undefined;
|
|
1711
1722
|
size?: number | undefined;
|
|
1712
1723
|
mimeType?: string | undefined;
|
|
@@ -1715,6 +1726,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1715
1726
|
path?: string | undefined;
|
|
1716
1727
|
fileName?: string | undefined;
|
|
1717
1728
|
parentId?: string | undefined;
|
|
1729
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1718
1730
|
sha256sum?: string | undefined;
|
|
1719
1731
|
size?: number | undefined;
|
|
1720
1732
|
mimeType?: string | undefined;
|
|
@@ -1944,6 +1956,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1944
1956
|
schema: z.ZodObject<{
|
|
1945
1957
|
fileName: z.ZodOptional<z.ZodString>;
|
|
1946
1958
|
parentId: z.ZodOptional<z.ZodString>;
|
|
1959
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
1947
1960
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
1948
1961
|
size: z.ZodOptional<z.ZodNumber>;
|
|
1949
1962
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -1953,6 +1966,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1953
1966
|
path?: string | undefined;
|
|
1954
1967
|
fileName?: string | undefined;
|
|
1955
1968
|
parentId?: string | undefined;
|
|
1969
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1956
1970
|
sha256sum?: string | undefined;
|
|
1957
1971
|
size?: number | undefined;
|
|
1958
1972
|
mimeType?: string | undefined;
|
|
@@ -1961,6 +1975,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1961
1975
|
path?: string | undefined;
|
|
1962
1976
|
fileName?: string | undefined;
|
|
1963
1977
|
parentId?: string | undefined;
|
|
1978
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1964
1979
|
sha256sum?: string | undefined;
|
|
1965
1980
|
size?: number | undefined;
|
|
1966
1981
|
mimeType?: string | undefined;
|
|
@@ -2179,6 +2194,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2179
2194
|
schema: z.ZodObject<{
|
|
2180
2195
|
fileName: z.ZodOptional<z.ZodString>;
|
|
2181
2196
|
parentId: z.ZodOptional<z.ZodString>;
|
|
2197
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
2182
2198
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
2183
2199
|
size: z.ZodOptional<z.ZodNumber>;
|
|
2184
2200
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -2188,6 +2204,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2188
2204
|
path?: string | undefined;
|
|
2189
2205
|
fileName?: string | undefined;
|
|
2190
2206
|
parentId?: string | undefined;
|
|
2207
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2191
2208
|
sha256sum?: string | undefined;
|
|
2192
2209
|
size?: number | undefined;
|
|
2193
2210
|
mimeType?: string | undefined;
|
|
@@ -2196,6 +2213,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2196
2213
|
path?: string | undefined;
|
|
2197
2214
|
fileName?: string | undefined;
|
|
2198
2215
|
parentId?: string | undefined;
|
|
2216
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2199
2217
|
sha256sum?: string | undefined;
|
|
2200
2218
|
size?: number | undefined;
|
|
2201
2219
|
mimeType?: string | undefined;
|
|
@@ -2528,6 +2546,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2528
2546
|
schema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
2529
2547
|
fileName: z.ZodOptional<z.ZodString>;
|
|
2530
2548
|
parentId: z.ZodOptional<z.ZodString>;
|
|
2549
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
2531
2550
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
2532
2551
|
size: z.ZodOptional<z.ZodNumber>;
|
|
2533
2552
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -2537,6 +2556,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2537
2556
|
path?: string | undefined;
|
|
2538
2557
|
fileName?: string | undefined;
|
|
2539
2558
|
parentId?: string | undefined;
|
|
2559
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2540
2560
|
sha256sum?: string | undefined;
|
|
2541
2561
|
size?: number | undefined;
|
|
2542
2562
|
mimeType?: string | undefined;
|
|
@@ -2545,6 +2565,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2545
2565
|
path?: string | undefined;
|
|
2546
2566
|
fileName?: string | undefined;
|
|
2547
2567
|
parentId?: string | undefined;
|
|
2568
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2548
2569
|
sha256sum?: string | undefined;
|
|
2549
2570
|
size?: number | undefined;
|
|
2550
2571
|
mimeType?: string | undefined;
|
|
@@ -2788,6 +2809,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2788
2809
|
schema: zod.ZodObject<{
|
|
2789
2810
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
2790
2811
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
2812
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
2791
2813
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
2792
2814
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
2793
2815
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -2799,6 +2821,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2799
2821
|
createdBy?: string | undefined;
|
|
2800
2822
|
fileName?: string | undefined;
|
|
2801
2823
|
parentId?: string | undefined;
|
|
2824
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2802
2825
|
sha256sum?: string | undefined;
|
|
2803
2826
|
mimeType?: string | undefined;
|
|
2804
2827
|
}, {
|
|
@@ -2807,6 +2830,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2807
2830
|
createdBy?: string | undefined;
|
|
2808
2831
|
fileName?: string | undefined;
|
|
2809
2832
|
parentId?: string | undefined;
|
|
2833
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2810
2834
|
sha256sum?: string | undefined;
|
|
2811
2835
|
mimeType?: string | undefined;
|
|
2812
2836
|
}>;
|
|
@@ -3723,6 +3747,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
3723
3747
|
schema: zod.ZodObject<{
|
|
3724
3748
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
3725
3749
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
3750
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
3726
3751
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
3727
3752
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
3728
3753
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -3734,6 +3759,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
3734
3759
|
createdBy?: string | undefined;
|
|
3735
3760
|
fileName?: string | undefined;
|
|
3736
3761
|
parentId?: string | undefined;
|
|
3762
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
3737
3763
|
sha256sum?: string | undefined;
|
|
3738
3764
|
mimeType?: string | undefined;
|
|
3739
3765
|
}, {
|
|
@@ -3742,6 +3768,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
3742
3768
|
createdBy?: string | undefined;
|
|
3743
3769
|
fileName?: string | undefined;
|
|
3744
3770
|
parentId?: string | undefined;
|
|
3771
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
3745
3772
|
sha256sum?: string | undefined;
|
|
3746
3773
|
mimeType?: string | undefined;
|
|
3747
3774
|
}>;
|
|
@@ -4032,6 +4059,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4032
4059
|
schema: zod.ZodObject<{
|
|
4033
4060
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
4034
4061
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
4062
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
4035
4063
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
4036
4064
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
4037
4065
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -4043,6 +4071,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4043
4071
|
createdBy?: string | undefined;
|
|
4044
4072
|
fileName?: string | undefined;
|
|
4045
4073
|
parentId?: string | undefined;
|
|
4074
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4046
4075
|
sha256sum?: string | undefined;
|
|
4047
4076
|
mimeType?: string | undefined;
|
|
4048
4077
|
}, {
|
|
@@ -4051,6 +4080,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4051
4080
|
createdBy?: string | undefined;
|
|
4052
4081
|
fileName?: string | undefined;
|
|
4053
4082
|
parentId?: string | undefined;
|
|
4083
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4054
4084
|
sha256sum?: string | undefined;
|
|
4055
4085
|
mimeType?: string | undefined;
|
|
4056
4086
|
}>;
|
|
@@ -4381,6 +4411,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4381
4411
|
schema: zod.ZodUnion<[zod.ZodArray<zod.ZodObject<{
|
|
4382
4412
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
4383
4413
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
4414
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
4384
4415
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
4385
4416
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
4386
4417
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -4392,6 +4423,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4392
4423
|
createdBy?: string | undefined;
|
|
4393
4424
|
fileName?: string | undefined;
|
|
4394
4425
|
parentId?: string | undefined;
|
|
4426
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4395
4427
|
sha256sum?: string | undefined;
|
|
4396
4428
|
mimeType?: string | undefined;
|
|
4397
4429
|
}, {
|
|
@@ -4400,6 +4432,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4400
4432
|
createdBy?: string | undefined;
|
|
4401
4433
|
fileName?: string | undefined;
|
|
4402
4434
|
parentId?: string | undefined;
|
|
4435
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4403
4436
|
sha256sum?: string | undefined;
|
|
4404
4437
|
mimeType?: string | undefined;
|
|
4405
4438
|
}>, "many">, zod.ZodObject<{
|
|
@@ -4627,6 +4660,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4627
4660
|
schema: zod.ZodObject<{
|
|
4628
4661
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
4629
4662
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
4663
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
4630
4664
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
4631
4665
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
4632
4666
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -4638,6 +4672,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4638
4672
|
createdBy?: string | undefined;
|
|
4639
4673
|
fileName?: string | undefined;
|
|
4640
4674
|
parentId?: string | undefined;
|
|
4675
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4641
4676
|
sha256sum?: string | undefined;
|
|
4642
4677
|
mimeType?: string | undefined;
|
|
4643
4678
|
}, {
|
|
@@ -4646,6 +4681,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4646
4681
|
createdBy?: string | undefined;
|
|
4647
4682
|
fileName?: string | undefined;
|
|
4648
4683
|
parentId?: string | undefined;
|
|
4684
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4649
4685
|
sha256sum?: string | undefined;
|
|
4650
4686
|
mimeType?: string | undefined;
|
|
4651
4687
|
}>;
|
|
@@ -4862,6 +4898,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4862
4898
|
schema: zod.ZodObject<{
|
|
4863
4899
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
4864
4900
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
4901
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
4865
4902
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
4866
4903
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
4867
4904
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -4873,6 +4910,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4873
4910
|
createdBy?: string | undefined;
|
|
4874
4911
|
fileName?: string | undefined;
|
|
4875
4912
|
parentId?: string | undefined;
|
|
4913
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4876
4914
|
sha256sum?: string | undefined;
|
|
4877
4915
|
mimeType?: string | undefined;
|
|
4878
4916
|
}, {
|
|
@@ -4881,6 +4919,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4881
4919
|
createdBy?: string | undefined;
|
|
4882
4920
|
fileName?: string | undefined;
|
|
4883
4921
|
parentId?: string | undefined;
|
|
4922
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4884
4923
|
sha256sum?: string | undefined;
|
|
4885
4924
|
mimeType?: string | undefined;
|
|
4886
4925
|
}>;
|
|
@@ -5211,6 +5250,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
5211
5250
|
schema: zod.ZodUnion<[zod.ZodArray<zod.ZodObject<{
|
|
5212
5251
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
5213
5252
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
5253
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
5214
5254
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
5215
5255
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
5216
5256
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -5222,6 +5262,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
5222
5262
|
createdBy?: string | undefined;
|
|
5223
5263
|
fileName?: string | undefined;
|
|
5224
5264
|
parentId?: string | undefined;
|
|
5265
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
5225
5266
|
sha256sum?: string | undefined;
|
|
5226
5267
|
mimeType?: string | undefined;
|
|
5227
5268
|
}, {
|
|
@@ -5230,6 +5271,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
5230
5271
|
createdBy?: string | undefined;
|
|
5231
5272
|
fileName?: string | undefined;
|
|
5232
5273
|
parentId?: string | undefined;
|
|
5274
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
5233
5275
|
sha256sum?: string | undefined;
|
|
5234
5276
|
mimeType?: string | undefined;
|
|
5235
5277
|
}>, "many">, zod.ZodObject<{
|
package/dist/index.d.mts
CHANGED
|
@@ -105,6 +105,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
105
105
|
schema: z.ZodObject<{
|
|
106
106
|
fileName: z.ZodOptional<z.ZodString>;
|
|
107
107
|
parentId: z.ZodOptional<z.ZodString>;
|
|
108
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
108
109
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
109
110
|
size: z.ZodOptional<z.ZodNumber>;
|
|
110
111
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -114,6 +115,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
114
115
|
path?: string | undefined;
|
|
115
116
|
fileName?: string | undefined;
|
|
116
117
|
parentId?: string | undefined;
|
|
118
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
117
119
|
sha256sum?: string | undefined;
|
|
118
120
|
size?: number | undefined;
|
|
119
121
|
mimeType?: string | undefined;
|
|
@@ -122,6 +124,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
122
124
|
path?: string | undefined;
|
|
123
125
|
fileName?: string | undefined;
|
|
124
126
|
parentId?: string | undefined;
|
|
127
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
125
128
|
sha256sum?: string | undefined;
|
|
126
129
|
size?: number | undefined;
|
|
127
130
|
mimeType?: string | undefined;
|
|
@@ -1040,6 +1043,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1040
1043
|
schema: z.ZodObject<{
|
|
1041
1044
|
fileName: z.ZodOptional<z.ZodString>;
|
|
1042
1045
|
parentId: z.ZodOptional<z.ZodString>;
|
|
1046
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
1043
1047
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
1044
1048
|
size: z.ZodOptional<z.ZodNumber>;
|
|
1045
1049
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -1049,6 +1053,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1049
1053
|
path?: string | undefined;
|
|
1050
1054
|
fileName?: string | undefined;
|
|
1051
1055
|
parentId?: string | undefined;
|
|
1056
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1052
1057
|
sha256sum?: string | undefined;
|
|
1053
1058
|
size?: number | undefined;
|
|
1054
1059
|
mimeType?: string | undefined;
|
|
@@ -1057,6 +1062,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1057
1062
|
path?: string | undefined;
|
|
1058
1063
|
fileName?: string | undefined;
|
|
1059
1064
|
parentId?: string | undefined;
|
|
1065
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1060
1066
|
sha256sum?: string | undefined;
|
|
1061
1067
|
size?: number | undefined;
|
|
1062
1068
|
mimeType?: string | undefined;
|
|
@@ -1349,6 +1355,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1349
1355
|
schema: z.ZodObject<{
|
|
1350
1356
|
fileName: z.ZodOptional<z.ZodString>;
|
|
1351
1357
|
parentId: z.ZodOptional<z.ZodString>;
|
|
1358
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
1352
1359
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
1353
1360
|
size: z.ZodOptional<z.ZodNumber>;
|
|
1354
1361
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -1358,6 +1365,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1358
1365
|
path?: string | undefined;
|
|
1359
1366
|
fileName?: string | undefined;
|
|
1360
1367
|
parentId?: string | undefined;
|
|
1368
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1361
1369
|
sha256sum?: string | undefined;
|
|
1362
1370
|
size?: number | undefined;
|
|
1363
1371
|
mimeType?: string | undefined;
|
|
@@ -1366,6 +1374,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1366
1374
|
path?: string | undefined;
|
|
1367
1375
|
fileName?: string | undefined;
|
|
1368
1376
|
parentId?: string | undefined;
|
|
1377
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1369
1378
|
sha256sum?: string | undefined;
|
|
1370
1379
|
size?: number | undefined;
|
|
1371
1380
|
mimeType?: string | undefined;
|
|
@@ -1698,6 +1707,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1698
1707
|
schema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
1699
1708
|
fileName: z.ZodOptional<z.ZodString>;
|
|
1700
1709
|
parentId: z.ZodOptional<z.ZodString>;
|
|
1710
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
1701
1711
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
1702
1712
|
size: z.ZodOptional<z.ZodNumber>;
|
|
1703
1713
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -1707,6 +1717,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1707
1717
|
path?: string | undefined;
|
|
1708
1718
|
fileName?: string | undefined;
|
|
1709
1719
|
parentId?: string | undefined;
|
|
1720
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1710
1721
|
sha256sum?: string | undefined;
|
|
1711
1722
|
size?: number | undefined;
|
|
1712
1723
|
mimeType?: string | undefined;
|
|
@@ -1715,6 +1726,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1715
1726
|
path?: string | undefined;
|
|
1716
1727
|
fileName?: string | undefined;
|
|
1717
1728
|
parentId?: string | undefined;
|
|
1729
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1718
1730
|
sha256sum?: string | undefined;
|
|
1719
1731
|
size?: number | undefined;
|
|
1720
1732
|
mimeType?: string | undefined;
|
|
@@ -1944,6 +1956,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1944
1956
|
schema: z.ZodObject<{
|
|
1945
1957
|
fileName: z.ZodOptional<z.ZodString>;
|
|
1946
1958
|
parentId: z.ZodOptional<z.ZodString>;
|
|
1959
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
1947
1960
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
1948
1961
|
size: z.ZodOptional<z.ZodNumber>;
|
|
1949
1962
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -1953,6 +1966,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1953
1966
|
path?: string | undefined;
|
|
1954
1967
|
fileName?: string | undefined;
|
|
1955
1968
|
parentId?: string | undefined;
|
|
1969
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1956
1970
|
sha256sum?: string | undefined;
|
|
1957
1971
|
size?: number | undefined;
|
|
1958
1972
|
mimeType?: string | undefined;
|
|
@@ -1961,6 +1975,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1961
1975
|
path?: string | undefined;
|
|
1962
1976
|
fileName?: string | undefined;
|
|
1963
1977
|
parentId?: string | undefined;
|
|
1978
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1964
1979
|
sha256sum?: string | undefined;
|
|
1965
1980
|
size?: number | undefined;
|
|
1966
1981
|
mimeType?: string | undefined;
|
|
@@ -2179,6 +2194,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2179
2194
|
schema: z.ZodObject<{
|
|
2180
2195
|
fileName: z.ZodOptional<z.ZodString>;
|
|
2181
2196
|
parentId: z.ZodOptional<z.ZodString>;
|
|
2197
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
2182
2198
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
2183
2199
|
size: z.ZodOptional<z.ZodNumber>;
|
|
2184
2200
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -2188,6 +2204,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2188
2204
|
path?: string | undefined;
|
|
2189
2205
|
fileName?: string | undefined;
|
|
2190
2206
|
parentId?: string | undefined;
|
|
2207
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2191
2208
|
sha256sum?: string | undefined;
|
|
2192
2209
|
size?: number | undefined;
|
|
2193
2210
|
mimeType?: string | undefined;
|
|
@@ -2196,6 +2213,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2196
2213
|
path?: string | undefined;
|
|
2197
2214
|
fileName?: string | undefined;
|
|
2198
2215
|
parentId?: string | undefined;
|
|
2216
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2199
2217
|
sha256sum?: string | undefined;
|
|
2200
2218
|
size?: number | undefined;
|
|
2201
2219
|
mimeType?: string | undefined;
|
|
@@ -2528,6 +2546,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2528
2546
|
schema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
2529
2547
|
fileName: z.ZodOptional<z.ZodString>;
|
|
2530
2548
|
parentId: z.ZodOptional<z.ZodString>;
|
|
2549
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
2531
2550
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
2532
2551
|
size: z.ZodOptional<z.ZodNumber>;
|
|
2533
2552
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -2537,6 +2556,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2537
2556
|
path?: string | undefined;
|
|
2538
2557
|
fileName?: string | undefined;
|
|
2539
2558
|
parentId?: string | undefined;
|
|
2559
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2540
2560
|
sha256sum?: string | undefined;
|
|
2541
2561
|
size?: number | undefined;
|
|
2542
2562
|
mimeType?: string | undefined;
|
|
@@ -2545,6 +2565,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2545
2565
|
path?: string | undefined;
|
|
2546
2566
|
fileName?: string | undefined;
|
|
2547
2567
|
parentId?: string | undefined;
|
|
2568
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2548
2569
|
sha256sum?: string | undefined;
|
|
2549
2570
|
size?: number | undefined;
|
|
2550
2571
|
mimeType?: string | undefined;
|
|
@@ -2788,6 +2809,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2788
2809
|
schema: zod.ZodObject<{
|
|
2789
2810
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
2790
2811
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
2812
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
2791
2813
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
2792
2814
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
2793
2815
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -2799,6 +2821,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2799
2821
|
createdBy?: string | undefined;
|
|
2800
2822
|
fileName?: string | undefined;
|
|
2801
2823
|
parentId?: string | undefined;
|
|
2824
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2802
2825
|
sha256sum?: string | undefined;
|
|
2803
2826
|
mimeType?: string | undefined;
|
|
2804
2827
|
}, {
|
|
@@ -2807,6 +2830,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2807
2830
|
createdBy?: string | undefined;
|
|
2808
2831
|
fileName?: string | undefined;
|
|
2809
2832
|
parentId?: string | undefined;
|
|
2833
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2810
2834
|
sha256sum?: string | undefined;
|
|
2811
2835
|
mimeType?: string | undefined;
|
|
2812
2836
|
}>;
|
|
@@ -3723,6 +3747,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
3723
3747
|
schema: zod.ZodObject<{
|
|
3724
3748
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
3725
3749
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
3750
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
3726
3751
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
3727
3752
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
3728
3753
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -3734,6 +3759,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
3734
3759
|
createdBy?: string | undefined;
|
|
3735
3760
|
fileName?: string | undefined;
|
|
3736
3761
|
parentId?: string | undefined;
|
|
3762
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
3737
3763
|
sha256sum?: string | undefined;
|
|
3738
3764
|
mimeType?: string | undefined;
|
|
3739
3765
|
}, {
|
|
@@ -3742,6 +3768,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
3742
3768
|
createdBy?: string | undefined;
|
|
3743
3769
|
fileName?: string | undefined;
|
|
3744
3770
|
parentId?: string | undefined;
|
|
3771
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
3745
3772
|
sha256sum?: string | undefined;
|
|
3746
3773
|
mimeType?: string | undefined;
|
|
3747
3774
|
}>;
|
|
@@ -4032,6 +4059,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4032
4059
|
schema: zod.ZodObject<{
|
|
4033
4060
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
4034
4061
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
4062
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
4035
4063
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
4036
4064
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
4037
4065
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -4043,6 +4071,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4043
4071
|
createdBy?: string | undefined;
|
|
4044
4072
|
fileName?: string | undefined;
|
|
4045
4073
|
parentId?: string | undefined;
|
|
4074
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4046
4075
|
sha256sum?: string | undefined;
|
|
4047
4076
|
mimeType?: string | undefined;
|
|
4048
4077
|
}, {
|
|
@@ -4051,6 +4080,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4051
4080
|
createdBy?: string | undefined;
|
|
4052
4081
|
fileName?: string | undefined;
|
|
4053
4082
|
parentId?: string | undefined;
|
|
4083
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4054
4084
|
sha256sum?: string | undefined;
|
|
4055
4085
|
mimeType?: string | undefined;
|
|
4056
4086
|
}>;
|
|
@@ -4381,6 +4411,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4381
4411
|
schema: zod.ZodUnion<[zod.ZodArray<zod.ZodObject<{
|
|
4382
4412
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
4383
4413
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
4414
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
4384
4415
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
4385
4416
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
4386
4417
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -4392,6 +4423,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4392
4423
|
createdBy?: string | undefined;
|
|
4393
4424
|
fileName?: string | undefined;
|
|
4394
4425
|
parentId?: string | undefined;
|
|
4426
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4395
4427
|
sha256sum?: string | undefined;
|
|
4396
4428
|
mimeType?: string | undefined;
|
|
4397
4429
|
}, {
|
|
@@ -4400,6 +4432,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4400
4432
|
createdBy?: string | undefined;
|
|
4401
4433
|
fileName?: string | undefined;
|
|
4402
4434
|
parentId?: string | undefined;
|
|
4435
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4403
4436
|
sha256sum?: string | undefined;
|
|
4404
4437
|
mimeType?: string | undefined;
|
|
4405
4438
|
}>, "many">, zod.ZodObject<{
|
|
@@ -4627,6 +4660,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4627
4660
|
schema: zod.ZodObject<{
|
|
4628
4661
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
4629
4662
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
4663
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
4630
4664
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
4631
4665
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
4632
4666
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -4638,6 +4672,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4638
4672
|
createdBy?: string | undefined;
|
|
4639
4673
|
fileName?: string | undefined;
|
|
4640
4674
|
parentId?: string | undefined;
|
|
4675
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4641
4676
|
sha256sum?: string | undefined;
|
|
4642
4677
|
mimeType?: string | undefined;
|
|
4643
4678
|
}, {
|
|
@@ -4646,6 +4681,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4646
4681
|
createdBy?: string | undefined;
|
|
4647
4682
|
fileName?: string | undefined;
|
|
4648
4683
|
parentId?: string | undefined;
|
|
4684
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4649
4685
|
sha256sum?: string | undefined;
|
|
4650
4686
|
mimeType?: string | undefined;
|
|
4651
4687
|
}>;
|
|
@@ -4862,6 +4898,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4862
4898
|
schema: zod.ZodObject<{
|
|
4863
4899
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
4864
4900
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
4901
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
4865
4902
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
4866
4903
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
4867
4904
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -4873,6 +4910,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4873
4910
|
createdBy?: string | undefined;
|
|
4874
4911
|
fileName?: string | undefined;
|
|
4875
4912
|
parentId?: string | undefined;
|
|
4913
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4876
4914
|
sha256sum?: string | undefined;
|
|
4877
4915
|
mimeType?: string | undefined;
|
|
4878
4916
|
}, {
|
|
@@ -4881,6 +4919,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4881
4919
|
createdBy?: string | undefined;
|
|
4882
4920
|
fileName?: string | undefined;
|
|
4883
4921
|
parentId?: string | undefined;
|
|
4922
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4884
4923
|
sha256sum?: string | undefined;
|
|
4885
4924
|
mimeType?: string | undefined;
|
|
4886
4925
|
}>;
|
|
@@ -5211,6 +5250,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
5211
5250
|
schema: zod.ZodUnion<[zod.ZodArray<zod.ZodObject<{
|
|
5212
5251
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
5213
5252
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
5253
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
5214
5254
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
5215
5255
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
5216
5256
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -5222,6 +5262,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
5222
5262
|
createdBy?: string | undefined;
|
|
5223
5263
|
fileName?: string | undefined;
|
|
5224
5264
|
parentId?: string | undefined;
|
|
5265
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
5225
5266
|
sha256sum?: string | undefined;
|
|
5226
5267
|
mimeType?: string | undefined;
|
|
5227
5268
|
}, {
|
|
@@ -5230,6 +5271,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
5230
5271
|
createdBy?: string | undefined;
|
|
5231
5272
|
fileName?: string | undefined;
|
|
5232
5273
|
parentId?: string | undefined;
|
|
5274
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
5233
5275
|
sha256sum?: string | undefined;
|
|
5234
5276
|
mimeType?: string | undefined;
|
|
5235
5277
|
}>, "many">, zod.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -105,6 +105,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
105
105
|
schema: z.ZodObject<{
|
|
106
106
|
fileName: z.ZodOptional<z.ZodString>;
|
|
107
107
|
parentId: z.ZodOptional<z.ZodString>;
|
|
108
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
108
109
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
109
110
|
size: z.ZodOptional<z.ZodNumber>;
|
|
110
111
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -114,6 +115,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
114
115
|
path?: string | undefined;
|
|
115
116
|
fileName?: string | undefined;
|
|
116
117
|
parentId?: string | undefined;
|
|
118
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
117
119
|
sha256sum?: string | undefined;
|
|
118
120
|
size?: number | undefined;
|
|
119
121
|
mimeType?: string | undefined;
|
|
@@ -122,6 +124,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
122
124
|
path?: string | undefined;
|
|
123
125
|
fileName?: string | undefined;
|
|
124
126
|
parentId?: string | undefined;
|
|
127
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
125
128
|
sha256sum?: string | undefined;
|
|
126
129
|
size?: number | undefined;
|
|
127
130
|
mimeType?: string | undefined;
|
|
@@ -1040,6 +1043,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1040
1043
|
schema: z.ZodObject<{
|
|
1041
1044
|
fileName: z.ZodOptional<z.ZodString>;
|
|
1042
1045
|
parentId: z.ZodOptional<z.ZodString>;
|
|
1046
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
1043
1047
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
1044
1048
|
size: z.ZodOptional<z.ZodNumber>;
|
|
1045
1049
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -1049,6 +1053,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1049
1053
|
path?: string | undefined;
|
|
1050
1054
|
fileName?: string | undefined;
|
|
1051
1055
|
parentId?: string | undefined;
|
|
1056
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1052
1057
|
sha256sum?: string | undefined;
|
|
1053
1058
|
size?: number | undefined;
|
|
1054
1059
|
mimeType?: string | undefined;
|
|
@@ -1057,6 +1062,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1057
1062
|
path?: string | undefined;
|
|
1058
1063
|
fileName?: string | undefined;
|
|
1059
1064
|
parentId?: string | undefined;
|
|
1065
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1060
1066
|
sha256sum?: string | undefined;
|
|
1061
1067
|
size?: number | undefined;
|
|
1062
1068
|
mimeType?: string | undefined;
|
|
@@ -1349,6 +1355,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1349
1355
|
schema: z.ZodObject<{
|
|
1350
1356
|
fileName: z.ZodOptional<z.ZodString>;
|
|
1351
1357
|
parentId: z.ZodOptional<z.ZodString>;
|
|
1358
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
1352
1359
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
1353
1360
|
size: z.ZodOptional<z.ZodNumber>;
|
|
1354
1361
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -1358,6 +1365,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1358
1365
|
path?: string | undefined;
|
|
1359
1366
|
fileName?: string | undefined;
|
|
1360
1367
|
parentId?: string | undefined;
|
|
1368
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1361
1369
|
sha256sum?: string | undefined;
|
|
1362
1370
|
size?: number | undefined;
|
|
1363
1371
|
mimeType?: string | undefined;
|
|
@@ -1366,6 +1374,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1366
1374
|
path?: string | undefined;
|
|
1367
1375
|
fileName?: string | undefined;
|
|
1368
1376
|
parentId?: string | undefined;
|
|
1377
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1369
1378
|
sha256sum?: string | undefined;
|
|
1370
1379
|
size?: number | undefined;
|
|
1371
1380
|
mimeType?: string | undefined;
|
|
@@ -1698,6 +1707,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1698
1707
|
schema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
1699
1708
|
fileName: z.ZodOptional<z.ZodString>;
|
|
1700
1709
|
parentId: z.ZodOptional<z.ZodString>;
|
|
1710
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
1701
1711
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
1702
1712
|
size: z.ZodOptional<z.ZodNumber>;
|
|
1703
1713
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -1707,6 +1717,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1707
1717
|
path?: string | undefined;
|
|
1708
1718
|
fileName?: string | undefined;
|
|
1709
1719
|
parentId?: string | undefined;
|
|
1720
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1710
1721
|
sha256sum?: string | undefined;
|
|
1711
1722
|
size?: number | undefined;
|
|
1712
1723
|
mimeType?: string | undefined;
|
|
@@ -1715,6 +1726,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1715
1726
|
path?: string | undefined;
|
|
1716
1727
|
fileName?: string | undefined;
|
|
1717
1728
|
parentId?: string | undefined;
|
|
1729
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1718
1730
|
sha256sum?: string | undefined;
|
|
1719
1731
|
size?: number | undefined;
|
|
1720
1732
|
mimeType?: string | undefined;
|
|
@@ -1944,6 +1956,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1944
1956
|
schema: z.ZodObject<{
|
|
1945
1957
|
fileName: z.ZodOptional<z.ZodString>;
|
|
1946
1958
|
parentId: z.ZodOptional<z.ZodString>;
|
|
1959
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
1947
1960
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
1948
1961
|
size: z.ZodOptional<z.ZodNumber>;
|
|
1949
1962
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -1953,6 +1966,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1953
1966
|
path?: string | undefined;
|
|
1954
1967
|
fileName?: string | undefined;
|
|
1955
1968
|
parentId?: string | undefined;
|
|
1969
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1956
1970
|
sha256sum?: string | undefined;
|
|
1957
1971
|
size?: number | undefined;
|
|
1958
1972
|
mimeType?: string | undefined;
|
|
@@ -1961,6 +1975,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
1961
1975
|
path?: string | undefined;
|
|
1962
1976
|
fileName?: string | undefined;
|
|
1963
1977
|
parentId?: string | undefined;
|
|
1978
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
1964
1979
|
sha256sum?: string | undefined;
|
|
1965
1980
|
size?: number | undefined;
|
|
1966
1981
|
mimeType?: string | undefined;
|
|
@@ -2179,6 +2194,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2179
2194
|
schema: z.ZodObject<{
|
|
2180
2195
|
fileName: z.ZodOptional<z.ZodString>;
|
|
2181
2196
|
parentId: z.ZodOptional<z.ZodString>;
|
|
2197
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
2182
2198
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
2183
2199
|
size: z.ZodOptional<z.ZodNumber>;
|
|
2184
2200
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -2188,6 +2204,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2188
2204
|
path?: string | undefined;
|
|
2189
2205
|
fileName?: string | undefined;
|
|
2190
2206
|
parentId?: string | undefined;
|
|
2207
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2191
2208
|
sha256sum?: string | undefined;
|
|
2192
2209
|
size?: number | undefined;
|
|
2193
2210
|
mimeType?: string | undefined;
|
|
@@ -2196,6 +2213,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2196
2213
|
path?: string | undefined;
|
|
2197
2214
|
fileName?: string | undefined;
|
|
2198
2215
|
parentId?: string | undefined;
|
|
2216
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2199
2217
|
sha256sum?: string | undefined;
|
|
2200
2218
|
size?: number | undefined;
|
|
2201
2219
|
mimeType?: string | undefined;
|
|
@@ -2528,6 +2546,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2528
2546
|
schema: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
2529
2547
|
fileName: z.ZodOptional<z.ZodString>;
|
|
2530
2548
|
parentId: z.ZodOptional<z.ZodString>;
|
|
2549
|
+
onMissingParent: z.ZodOptional<z.ZodDefault<z.ZodEnum<["error", "create-as-root"]>>>;
|
|
2531
2550
|
sha256sum: z.ZodOptional<z.ZodString>;
|
|
2532
2551
|
size: z.ZodOptional<z.ZodNumber>;
|
|
2533
2552
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
@@ -2537,6 +2556,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2537
2556
|
path?: string | undefined;
|
|
2538
2557
|
fileName?: string | undefined;
|
|
2539
2558
|
parentId?: string | undefined;
|
|
2559
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2540
2560
|
sha256sum?: string | undefined;
|
|
2541
2561
|
size?: number | undefined;
|
|
2542
2562
|
mimeType?: string | undefined;
|
|
@@ -2545,6 +2565,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
2545
2565
|
path?: string | undefined;
|
|
2546
2566
|
fileName?: string | undefined;
|
|
2547
2567
|
parentId?: string | undefined;
|
|
2568
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2548
2569
|
sha256sum?: string | undefined;
|
|
2549
2570
|
size?: number | undefined;
|
|
2550
2571
|
mimeType?: string | undefined;
|
|
@@ -2788,6 +2809,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2788
2809
|
schema: zod.ZodObject<{
|
|
2789
2810
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
2790
2811
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
2812
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
2791
2813
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
2792
2814
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
2793
2815
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -2799,6 +2821,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2799
2821
|
createdBy?: string | undefined;
|
|
2800
2822
|
fileName?: string | undefined;
|
|
2801
2823
|
parentId?: string | undefined;
|
|
2824
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2802
2825
|
sha256sum?: string | undefined;
|
|
2803
2826
|
mimeType?: string | undefined;
|
|
2804
2827
|
}, {
|
|
@@ -2807,6 +2830,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2807
2830
|
createdBy?: string | undefined;
|
|
2808
2831
|
fileName?: string | undefined;
|
|
2809
2832
|
parentId?: string | undefined;
|
|
2833
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
2810
2834
|
sha256sum?: string | undefined;
|
|
2811
2835
|
mimeType?: string | undefined;
|
|
2812
2836
|
}>;
|
|
@@ -3723,6 +3747,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
3723
3747
|
schema: zod.ZodObject<{
|
|
3724
3748
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
3725
3749
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
3750
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
3726
3751
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
3727
3752
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
3728
3753
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -3734,6 +3759,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
3734
3759
|
createdBy?: string | undefined;
|
|
3735
3760
|
fileName?: string | undefined;
|
|
3736
3761
|
parentId?: string | undefined;
|
|
3762
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
3737
3763
|
sha256sum?: string | undefined;
|
|
3738
3764
|
mimeType?: string | undefined;
|
|
3739
3765
|
}, {
|
|
@@ -3742,6 +3768,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
3742
3768
|
createdBy?: string | undefined;
|
|
3743
3769
|
fileName?: string | undefined;
|
|
3744
3770
|
parentId?: string | undefined;
|
|
3771
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
3745
3772
|
sha256sum?: string | undefined;
|
|
3746
3773
|
mimeType?: string | undefined;
|
|
3747
3774
|
}>;
|
|
@@ -4032,6 +4059,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4032
4059
|
schema: zod.ZodObject<{
|
|
4033
4060
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
4034
4061
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
4062
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
4035
4063
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
4036
4064
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
4037
4065
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -4043,6 +4071,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4043
4071
|
createdBy?: string | undefined;
|
|
4044
4072
|
fileName?: string | undefined;
|
|
4045
4073
|
parentId?: string | undefined;
|
|
4074
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4046
4075
|
sha256sum?: string | undefined;
|
|
4047
4076
|
mimeType?: string | undefined;
|
|
4048
4077
|
}, {
|
|
@@ -4051,6 +4080,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4051
4080
|
createdBy?: string | undefined;
|
|
4052
4081
|
fileName?: string | undefined;
|
|
4053
4082
|
parentId?: string | undefined;
|
|
4083
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4054
4084
|
sha256sum?: string | undefined;
|
|
4055
4085
|
mimeType?: string | undefined;
|
|
4056
4086
|
}>;
|
|
@@ -4381,6 +4411,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4381
4411
|
schema: zod.ZodUnion<[zod.ZodArray<zod.ZodObject<{
|
|
4382
4412
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
4383
4413
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
4414
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
4384
4415
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
4385
4416
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
4386
4417
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -4392,6 +4423,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4392
4423
|
createdBy?: string | undefined;
|
|
4393
4424
|
fileName?: string | undefined;
|
|
4394
4425
|
parentId?: string | undefined;
|
|
4426
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4395
4427
|
sha256sum?: string | undefined;
|
|
4396
4428
|
mimeType?: string | undefined;
|
|
4397
4429
|
}, {
|
|
@@ -4400,6 +4432,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4400
4432
|
createdBy?: string | undefined;
|
|
4401
4433
|
fileName?: string | undefined;
|
|
4402
4434
|
parentId?: string | undefined;
|
|
4435
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4403
4436
|
sha256sum?: string | undefined;
|
|
4404
4437
|
mimeType?: string | undefined;
|
|
4405
4438
|
}>, "many">, zod.ZodObject<{
|
|
@@ -4627,6 +4660,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4627
4660
|
schema: zod.ZodObject<{
|
|
4628
4661
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
4629
4662
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
4663
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
4630
4664
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
4631
4665
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
4632
4666
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -4638,6 +4672,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4638
4672
|
createdBy?: string | undefined;
|
|
4639
4673
|
fileName?: string | undefined;
|
|
4640
4674
|
parentId?: string | undefined;
|
|
4675
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4641
4676
|
sha256sum?: string | undefined;
|
|
4642
4677
|
mimeType?: string | undefined;
|
|
4643
4678
|
}, {
|
|
@@ -4646,6 +4681,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4646
4681
|
createdBy?: string | undefined;
|
|
4647
4682
|
fileName?: string | undefined;
|
|
4648
4683
|
parentId?: string | undefined;
|
|
4684
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4649
4685
|
sha256sum?: string | undefined;
|
|
4650
4686
|
mimeType?: string | undefined;
|
|
4651
4687
|
}>;
|
|
@@ -4862,6 +4898,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4862
4898
|
schema: zod.ZodObject<{
|
|
4863
4899
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
4864
4900
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
4901
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
4865
4902
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
4866
4903
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
4867
4904
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -4873,6 +4910,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4873
4910
|
createdBy?: string | undefined;
|
|
4874
4911
|
fileName?: string | undefined;
|
|
4875
4912
|
parentId?: string | undefined;
|
|
4913
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4876
4914
|
sha256sum?: string | undefined;
|
|
4877
4915
|
mimeType?: string | undefined;
|
|
4878
4916
|
}, {
|
|
@@ -4881,6 +4919,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
4881
4919
|
createdBy?: string | undefined;
|
|
4882
4920
|
fileName?: string | undefined;
|
|
4883
4921
|
parentId?: string | undefined;
|
|
4922
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
4884
4923
|
sha256sum?: string | undefined;
|
|
4885
4924
|
mimeType?: string | undefined;
|
|
4886
4925
|
}>;
|
|
@@ -5211,6 +5250,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
5211
5250
|
schema: zod.ZodUnion<[zod.ZodArray<zod.ZodObject<{
|
|
5212
5251
|
fileName: zod.ZodOptional<zod.ZodString>;
|
|
5213
5252
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
5253
|
+
onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
|
|
5214
5254
|
sha256sum: zod.ZodOptional<zod.ZodString>;
|
|
5215
5255
|
size: zod.ZodOptional<zod.ZodNumber>;
|
|
5216
5256
|
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
@@ -5222,6 +5262,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
5222
5262
|
createdBy?: string | undefined;
|
|
5223
5263
|
fileName?: string | undefined;
|
|
5224
5264
|
parentId?: string | undefined;
|
|
5265
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
5225
5266
|
sha256sum?: string | undefined;
|
|
5226
5267
|
mimeType?: string | undefined;
|
|
5227
5268
|
}, {
|
|
@@ -5230,6 +5271,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
5230
5271
|
createdBy?: string | undefined;
|
|
5231
5272
|
fileName?: string | undefined;
|
|
5232
5273
|
parentId?: string | undefined;
|
|
5274
|
+
onMissingParent?: "error" | "create-as-root" | undefined;
|
|
5233
5275
|
sha256sum?: string | undefined;
|
|
5234
5276
|
mimeType?: string | undefined;
|
|
5235
5277
|
}>, "many">, zod.ZodObject<{
|
package/dist/index.mjs
CHANGED
|
@@ -6,6 +6,7 @@ const postFilesBulk_Body = z.union([
|
|
|
6
6
|
z.object({
|
|
7
7
|
fileName: z.string(),
|
|
8
8
|
parentId: z.string(),
|
|
9
|
+
onMissingParent: z.enum(["error", "create-as-root"]).default("error"),
|
|
9
10
|
sha256sum: z.string(),
|
|
10
11
|
size: z.number(),
|
|
11
12
|
mimeType: z.string(),
|
|
@@ -18,6 +19,7 @@ const postFilesBulk_Body = z.union([
|
|
|
18
19
|
const postFiles_Body = z.object({
|
|
19
20
|
fileName: z.string(),
|
|
20
21
|
parentId: z.string(),
|
|
22
|
+
onMissingParent: z.enum(["error", "create-as-root"]).default("error"),
|
|
21
23
|
sha256sum: z.string(),
|
|
22
24
|
size: z.number(),
|
|
23
25
|
mimeType: z.string(),
|
|
@@ -1314,7 +1316,7 @@ function useVaultClient(vaultUrl, token) {
|
|
|
1314
1316
|
axiosConfig: {
|
|
1315
1317
|
headers: {
|
|
1316
1318
|
"Authorization": token,
|
|
1317
|
-
"User-Agent": "vault-http-client:2.
|
|
1319
|
+
"User-Agent": "vault-http-client:2.8.0"
|
|
1318
1320
|
}
|
|
1319
1321
|
}
|
|
1320
1322
|
});
|