@valbuild/shared 0.95.0 → 0.96.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.
|
@@ -527,6 +527,8 @@ export declare const Api: {
|
|
|
527
527
|
json: z.ZodObject<{
|
|
528
528
|
nonce: z.ZodNullable<z.ZodString>;
|
|
529
529
|
baseUrl: z.ZodString;
|
|
530
|
+
contentBaseUrl: z.ZodNullable<z.ZodString>;
|
|
531
|
+
contentAuthNonce: z.ZodNullable<z.ZodString>;
|
|
530
532
|
}, z.core.$strip>;
|
|
531
533
|
}, z.core.$strip>]>;
|
|
532
534
|
};
|
|
@@ -1053,6 +1055,11 @@ export declare const Api: {
|
|
|
1053
1055
|
GET: {
|
|
1054
1056
|
req: {
|
|
1055
1057
|
path: z.ZodString;
|
|
1058
|
+
query: {
|
|
1059
|
+
limit: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1060
|
+
cursor_updatedAt: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1061
|
+
cursor_id: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string, string[]>>>;
|
|
1062
|
+
};
|
|
1056
1063
|
cookies: {
|
|
1057
1064
|
val_session: z.ZodOptional<z.ZodString>;
|
|
1058
1065
|
};
|
|
@@ -1067,7 +1074,13 @@ export declare const Api: {
|
|
|
1067
1074
|
json: z.ZodObject<{
|
|
1068
1075
|
messages: z.ZodArray<z.ZodObject<{
|
|
1069
1076
|
role: z.ZodString;
|
|
1070
|
-
content: z.ZodString
|
|
1077
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1078
|
+
type: z.ZodLiteral<"text">;
|
|
1079
|
+
text: z.ZodString;
|
|
1080
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1081
|
+
type: z.ZodLiteral<"image_url">;
|
|
1082
|
+
url: z.ZodString;
|
|
1083
|
+
}, z.core.$strip>]>>]>;
|
|
1071
1084
|
}, z.core.$strip>>;
|
|
1072
1085
|
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1073
1086
|
updatedAt: z.ZodString;
|
|
@@ -1082,6 +1095,92 @@ export declare const Api: {
|
|
|
1082
1095
|
}, z.core.$strip>]>;
|
|
1083
1096
|
};
|
|
1084
1097
|
};
|
|
1098
|
+
"/ai/session-image-to-patch-file": {
|
|
1099
|
+
POST: {
|
|
1100
|
+
req: {
|
|
1101
|
+
body: z.ZodObject<{
|
|
1102
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1103
|
+
parentRef: z.ZodUnion<readonly [z.ZodObject<{
|
|
1104
|
+
type: z.ZodLiteral<"head">;
|
|
1105
|
+
headBaseSha: z.ZodString;
|
|
1106
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1107
|
+
type: z.ZodLiteral<"patch">;
|
|
1108
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1109
|
+
}, z.core.$strip>]>;
|
|
1110
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1111
|
+
filePath: z.ZodString;
|
|
1112
|
+
key: z.ZodString;
|
|
1113
|
+
isRemote: z.ZodOptional<z.ZodBoolean>;
|
|
1114
|
+
}, z.core.$strip>>;
|
|
1115
|
+
}, z.core.$strip>;
|
|
1116
|
+
cookies: {
|
|
1117
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1118
|
+
};
|
|
1119
|
+
};
|
|
1120
|
+
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
1121
|
+
status: z.ZodLiteral<401>;
|
|
1122
|
+
json: z.ZodObject<{
|
|
1123
|
+
message: z.ZodString;
|
|
1124
|
+
}, z.core.$strip>;
|
|
1125
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1126
|
+
status: z.ZodLiteral<200>;
|
|
1127
|
+
json: z.ZodObject<{
|
|
1128
|
+
patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
|
|
1129
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1130
|
+
filePath: z.ZodString;
|
|
1131
|
+
metadata: z.ZodObject<{
|
|
1132
|
+
width: z.ZodNumber;
|
|
1133
|
+
height: z.ZodNumber;
|
|
1134
|
+
mimeType: z.ZodString;
|
|
1135
|
+
}, z.core.$strip>;
|
|
1136
|
+
}, z.core.$strip>>;
|
|
1137
|
+
}, z.core.$strip>;
|
|
1138
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1139
|
+
status: z.ZodLiteral<400>;
|
|
1140
|
+
json: z.ZodObject<{
|
|
1141
|
+
message: z.ZodString;
|
|
1142
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1143
|
+
availableKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1144
|
+
}, z.core.$strip>>;
|
|
1145
|
+
}, z.core.$strip>;
|
|
1146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1147
|
+
status: z.ZodLiteral<500>;
|
|
1148
|
+
json: z.ZodObject<{
|
|
1149
|
+
message: z.ZodString;
|
|
1150
|
+
}, z.core.$strip>;
|
|
1151
|
+
}, z.core.$strip>]>;
|
|
1152
|
+
};
|
|
1153
|
+
};
|
|
1154
|
+
"/ai/images": {
|
|
1155
|
+
PATCH: {
|
|
1156
|
+
req: {
|
|
1157
|
+
body: z.ZodObject<{
|
|
1158
|
+
key: z.ZodString;
|
|
1159
|
+
metadata: z.ZodAny;
|
|
1160
|
+
contentType: z.ZodString;
|
|
1161
|
+
}, z.core.$strip>;
|
|
1162
|
+
cookies: {
|
|
1163
|
+
val_session: z.ZodOptional<z.ZodString>;
|
|
1164
|
+
};
|
|
1165
|
+
};
|
|
1166
|
+
res: z.ZodUnion<readonly [z.ZodObject<{
|
|
1167
|
+
status: z.ZodLiteral<401>;
|
|
1168
|
+
json: z.ZodObject<{
|
|
1169
|
+
message: z.ZodString;
|
|
1170
|
+
}, z.core.$strip>;
|
|
1171
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1172
|
+
status: z.ZodLiteral<200>;
|
|
1173
|
+
json: z.ZodObject<{
|
|
1174
|
+
key: z.ZodString;
|
|
1175
|
+
}, z.core.$strip>;
|
|
1176
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1177
|
+
status: z.ZodLiteral<500>;
|
|
1178
|
+
json: z.ZodObject<{
|
|
1179
|
+
message: z.ZodString;
|
|
1180
|
+
}, z.core.$strip>;
|
|
1181
|
+
}, z.core.$strip>]>;
|
|
1182
|
+
};
|
|
1183
|
+
};
|
|
1085
1184
|
};
|
|
1086
1185
|
/**
|
|
1087
1186
|
* Extracts the keys of an object where the value is not undefined.
|
|
@@ -1651,7 +1651,9 @@ var Api = {
|
|
|
1651
1651
|
status: zod.z.literal(200),
|
|
1652
1652
|
json: zod.z.object({
|
|
1653
1653
|
nonce: zod.z.string().nullable(),
|
|
1654
|
-
baseUrl: zod.z.string()
|
|
1654
|
+
baseUrl: zod.z.string(),
|
|
1655
|
+
contentBaseUrl: zod.z.string().nullable(),
|
|
1656
|
+
contentAuthNonce: zod.z.string().nullable()
|
|
1655
1657
|
})
|
|
1656
1658
|
})])
|
|
1657
1659
|
}
|
|
@@ -2009,6 +2011,11 @@ var Api = {
|
|
|
2009
2011
|
GET: {
|
|
2010
2012
|
req: {
|
|
2011
2013
|
path: zod.z.string(),
|
|
2014
|
+
query: {
|
|
2015
|
+
limit: onlyOneStringQueryParam.optional(),
|
|
2016
|
+
cursor_updatedAt: onlyOneStringQueryParam.optional(),
|
|
2017
|
+
cursor_id: onlyOneStringQueryParam.optional()
|
|
2018
|
+
},
|
|
2012
2019
|
cookies: _defineProperty({}, VAL_SESSION_COOKIE, zod.z.string().optional())
|
|
2013
2020
|
},
|
|
2014
2021
|
res: zod.z.union([unauthorizedResponse, zod.z.object({
|
|
@@ -2016,7 +2023,13 @@ var Api = {
|
|
|
2016
2023
|
json: zod.z.object({
|
|
2017
2024
|
messages: zod.z.array(zod.z.object({
|
|
2018
2025
|
role: zod.z.string(),
|
|
2019
|
-
content: zod.z.string()
|
|
2026
|
+
content: zod.z.union([zod.z.string(), zod.z.array(zod.z.union([zod.z.object({
|
|
2027
|
+
type: zod.z.literal("text"),
|
|
2028
|
+
text: zod.z.string()
|
|
2029
|
+
}), zod.z.object({
|
|
2030
|
+
type: zod.z.literal("image_url"),
|
|
2031
|
+
url: zod.z.string()
|
|
2032
|
+
})]))])
|
|
2020
2033
|
})),
|
|
2021
2034
|
nextCursor: zod.z.object({
|
|
2022
2035
|
updatedAt: zod.z.string(),
|
|
@@ -2028,6 +2041,68 @@ var Api = {
|
|
|
2028
2041
|
json: GenericError
|
|
2029
2042
|
})])
|
|
2030
2043
|
}
|
|
2044
|
+
},
|
|
2045
|
+
"/ai/session-image-to-patch-file": {
|
|
2046
|
+
POST: {
|
|
2047
|
+
req: {
|
|
2048
|
+
body: zod.z.object({
|
|
2049
|
+
patchId: PatchId,
|
|
2050
|
+
parentRef: ParentRef,
|
|
2051
|
+
files: zod.z.array(zod.z.object({
|
|
2052
|
+
filePath: zod.z.string(),
|
|
2053
|
+
key: zod.z.string(),
|
|
2054
|
+
isRemote: zod.z["boolean"]().optional()
|
|
2055
|
+
})).min(1)
|
|
2056
|
+
}),
|
|
2057
|
+
cookies: _defineProperty({}, VAL_SESSION_COOKIE, zod.z.string().optional())
|
|
2058
|
+
},
|
|
2059
|
+
res: zod.z.union([unauthorizedResponse, zod.z.object({
|
|
2060
|
+
status: zod.z.literal(200),
|
|
2061
|
+
json: zod.z.object({
|
|
2062
|
+
patchId: PatchId,
|
|
2063
|
+
files: zod.z.array(zod.z.object({
|
|
2064
|
+
filePath: zod.z.string(),
|
|
2065
|
+
metadata: zod.z.object({
|
|
2066
|
+
width: zod.z.number(),
|
|
2067
|
+
height: zod.z.number(),
|
|
2068
|
+
mimeType: zod.z.string()
|
|
2069
|
+
})
|
|
2070
|
+
}))
|
|
2071
|
+
})
|
|
2072
|
+
}), zod.z.object({
|
|
2073
|
+
status: zod.z.literal(400),
|
|
2074
|
+
json: zod.z.object({
|
|
2075
|
+
message: zod.z.string(),
|
|
2076
|
+
details: zod.z.object({
|
|
2077
|
+
availableKeys: zod.z.array(zod.z.string()).optional()
|
|
2078
|
+
}).optional()
|
|
2079
|
+
})
|
|
2080
|
+
}), zod.z.object({
|
|
2081
|
+
status: zod.z.literal(500),
|
|
2082
|
+
json: GenericError
|
|
2083
|
+
})])
|
|
2084
|
+
}
|
|
2085
|
+
},
|
|
2086
|
+
"/ai/images": {
|
|
2087
|
+
PATCH: {
|
|
2088
|
+
req: {
|
|
2089
|
+
body: zod.z.object({
|
|
2090
|
+
key: zod.z.string(),
|
|
2091
|
+
metadata: zod.z.any(),
|
|
2092
|
+
contentType: zod.z.string()
|
|
2093
|
+
}),
|
|
2094
|
+
cookies: _defineProperty({}, VAL_SESSION_COOKIE, zod.z.string().optional())
|
|
2095
|
+
},
|
|
2096
|
+
res: zod.z.union([unauthorizedResponse, zod.z.object({
|
|
2097
|
+
status: zod.z.literal(200),
|
|
2098
|
+
json: zod.z.object({
|
|
2099
|
+
key: zod.z.string()
|
|
2100
|
+
})
|
|
2101
|
+
}), zod.z.object({
|
|
2102
|
+
status: zod.z.literal(500),
|
|
2103
|
+
json: GenericError
|
|
2104
|
+
})])
|
|
2105
|
+
}
|
|
2031
2106
|
}
|
|
2032
2107
|
};
|
|
2033
2108
|
|
|
@@ -1651,7 +1651,9 @@ var Api = {
|
|
|
1651
1651
|
status: zod.z.literal(200),
|
|
1652
1652
|
json: zod.z.object({
|
|
1653
1653
|
nonce: zod.z.string().nullable(),
|
|
1654
|
-
baseUrl: zod.z.string()
|
|
1654
|
+
baseUrl: zod.z.string(),
|
|
1655
|
+
contentBaseUrl: zod.z.string().nullable(),
|
|
1656
|
+
contentAuthNonce: zod.z.string().nullable()
|
|
1655
1657
|
})
|
|
1656
1658
|
})])
|
|
1657
1659
|
}
|
|
@@ -2009,6 +2011,11 @@ var Api = {
|
|
|
2009
2011
|
GET: {
|
|
2010
2012
|
req: {
|
|
2011
2013
|
path: zod.z.string(),
|
|
2014
|
+
query: {
|
|
2015
|
+
limit: onlyOneStringQueryParam.optional(),
|
|
2016
|
+
cursor_updatedAt: onlyOneStringQueryParam.optional(),
|
|
2017
|
+
cursor_id: onlyOneStringQueryParam.optional()
|
|
2018
|
+
},
|
|
2012
2019
|
cookies: _defineProperty({}, VAL_SESSION_COOKIE, zod.z.string().optional())
|
|
2013
2020
|
},
|
|
2014
2021
|
res: zod.z.union([unauthorizedResponse, zod.z.object({
|
|
@@ -2016,7 +2023,13 @@ var Api = {
|
|
|
2016
2023
|
json: zod.z.object({
|
|
2017
2024
|
messages: zod.z.array(zod.z.object({
|
|
2018
2025
|
role: zod.z.string(),
|
|
2019
|
-
content: zod.z.string()
|
|
2026
|
+
content: zod.z.union([zod.z.string(), zod.z.array(zod.z.union([zod.z.object({
|
|
2027
|
+
type: zod.z.literal("text"),
|
|
2028
|
+
text: zod.z.string()
|
|
2029
|
+
}), zod.z.object({
|
|
2030
|
+
type: zod.z.literal("image_url"),
|
|
2031
|
+
url: zod.z.string()
|
|
2032
|
+
})]))])
|
|
2020
2033
|
})),
|
|
2021
2034
|
nextCursor: zod.z.object({
|
|
2022
2035
|
updatedAt: zod.z.string(),
|
|
@@ -2028,6 +2041,68 @@ var Api = {
|
|
|
2028
2041
|
json: GenericError
|
|
2029
2042
|
})])
|
|
2030
2043
|
}
|
|
2044
|
+
},
|
|
2045
|
+
"/ai/session-image-to-patch-file": {
|
|
2046
|
+
POST: {
|
|
2047
|
+
req: {
|
|
2048
|
+
body: zod.z.object({
|
|
2049
|
+
patchId: PatchId,
|
|
2050
|
+
parentRef: ParentRef,
|
|
2051
|
+
files: zod.z.array(zod.z.object({
|
|
2052
|
+
filePath: zod.z.string(),
|
|
2053
|
+
key: zod.z.string(),
|
|
2054
|
+
isRemote: zod.z["boolean"]().optional()
|
|
2055
|
+
})).min(1)
|
|
2056
|
+
}),
|
|
2057
|
+
cookies: _defineProperty({}, VAL_SESSION_COOKIE, zod.z.string().optional())
|
|
2058
|
+
},
|
|
2059
|
+
res: zod.z.union([unauthorizedResponse, zod.z.object({
|
|
2060
|
+
status: zod.z.literal(200),
|
|
2061
|
+
json: zod.z.object({
|
|
2062
|
+
patchId: PatchId,
|
|
2063
|
+
files: zod.z.array(zod.z.object({
|
|
2064
|
+
filePath: zod.z.string(),
|
|
2065
|
+
metadata: zod.z.object({
|
|
2066
|
+
width: zod.z.number(),
|
|
2067
|
+
height: zod.z.number(),
|
|
2068
|
+
mimeType: zod.z.string()
|
|
2069
|
+
})
|
|
2070
|
+
}))
|
|
2071
|
+
})
|
|
2072
|
+
}), zod.z.object({
|
|
2073
|
+
status: zod.z.literal(400),
|
|
2074
|
+
json: zod.z.object({
|
|
2075
|
+
message: zod.z.string(),
|
|
2076
|
+
details: zod.z.object({
|
|
2077
|
+
availableKeys: zod.z.array(zod.z.string()).optional()
|
|
2078
|
+
}).optional()
|
|
2079
|
+
})
|
|
2080
|
+
}), zod.z.object({
|
|
2081
|
+
status: zod.z.literal(500),
|
|
2082
|
+
json: GenericError
|
|
2083
|
+
})])
|
|
2084
|
+
}
|
|
2085
|
+
},
|
|
2086
|
+
"/ai/images": {
|
|
2087
|
+
PATCH: {
|
|
2088
|
+
req: {
|
|
2089
|
+
body: zod.z.object({
|
|
2090
|
+
key: zod.z.string(),
|
|
2091
|
+
metadata: zod.z.any(),
|
|
2092
|
+
contentType: zod.z.string()
|
|
2093
|
+
}),
|
|
2094
|
+
cookies: _defineProperty({}, VAL_SESSION_COOKIE, zod.z.string().optional())
|
|
2095
|
+
},
|
|
2096
|
+
res: zod.z.union([unauthorizedResponse, zod.z.object({
|
|
2097
|
+
status: zod.z.literal(200),
|
|
2098
|
+
json: zod.z.object({
|
|
2099
|
+
key: zod.z.string()
|
|
2100
|
+
})
|
|
2101
|
+
}), zod.z.object({
|
|
2102
|
+
status: zod.z.literal(500),
|
|
2103
|
+
json: GenericError
|
|
2104
|
+
})])
|
|
2105
|
+
}
|
|
2031
2106
|
}
|
|
2032
2107
|
};
|
|
2033
2108
|
|
|
@@ -1647,7 +1647,9 @@ var Api = {
|
|
|
1647
1647
|
status: z.literal(200),
|
|
1648
1648
|
json: z.object({
|
|
1649
1649
|
nonce: z.string().nullable(),
|
|
1650
|
-
baseUrl: z.string()
|
|
1650
|
+
baseUrl: z.string(),
|
|
1651
|
+
contentBaseUrl: z.string().nullable(),
|
|
1652
|
+
contentAuthNonce: z.string().nullable()
|
|
1651
1653
|
})
|
|
1652
1654
|
})])
|
|
1653
1655
|
}
|
|
@@ -2005,6 +2007,11 @@ var Api = {
|
|
|
2005
2007
|
GET: {
|
|
2006
2008
|
req: {
|
|
2007
2009
|
path: z.string(),
|
|
2010
|
+
query: {
|
|
2011
|
+
limit: onlyOneStringQueryParam.optional(),
|
|
2012
|
+
cursor_updatedAt: onlyOneStringQueryParam.optional(),
|
|
2013
|
+
cursor_id: onlyOneStringQueryParam.optional()
|
|
2014
|
+
},
|
|
2008
2015
|
cookies: _defineProperty({}, VAL_SESSION_COOKIE, z.string().optional())
|
|
2009
2016
|
},
|
|
2010
2017
|
res: z.union([unauthorizedResponse, z.object({
|
|
@@ -2012,7 +2019,13 @@ var Api = {
|
|
|
2012
2019
|
json: z.object({
|
|
2013
2020
|
messages: z.array(z.object({
|
|
2014
2021
|
role: z.string(),
|
|
2015
|
-
content: z.string()
|
|
2022
|
+
content: z.union([z.string(), z.array(z.union([z.object({
|
|
2023
|
+
type: z.literal("text"),
|
|
2024
|
+
text: z.string()
|
|
2025
|
+
}), z.object({
|
|
2026
|
+
type: z.literal("image_url"),
|
|
2027
|
+
url: z.string()
|
|
2028
|
+
})]))])
|
|
2016
2029
|
})),
|
|
2017
2030
|
nextCursor: z.object({
|
|
2018
2031
|
updatedAt: z.string(),
|
|
@@ -2024,6 +2037,68 @@ var Api = {
|
|
|
2024
2037
|
json: GenericError
|
|
2025
2038
|
})])
|
|
2026
2039
|
}
|
|
2040
|
+
},
|
|
2041
|
+
"/ai/session-image-to-patch-file": {
|
|
2042
|
+
POST: {
|
|
2043
|
+
req: {
|
|
2044
|
+
body: z.object({
|
|
2045
|
+
patchId: PatchId,
|
|
2046
|
+
parentRef: ParentRef,
|
|
2047
|
+
files: z.array(z.object({
|
|
2048
|
+
filePath: z.string(),
|
|
2049
|
+
key: z.string(),
|
|
2050
|
+
isRemote: z["boolean"]().optional()
|
|
2051
|
+
})).min(1)
|
|
2052
|
+
}),
|
|
2053
|
+
cookies: _defineProperty({}, VAL_SESSION_COOKIE, z.string().optional())
|
|
2054
|
+
},
|
|
2055
|
+
res: z.union([unauthorizedResponse, z.object({
|
|
2056
|
+
status: z.literal(200),
|
|
2057
|
+
json: z.object({
|
|
2058
|
+
patchId: PatchId,
|
|
2059
|
+
files: z.array(z.object({
|
|
2060
|
+
filePath: z.string(),
|
|
2061
|
+
metadata: z.object({
|
|
2062
|
+
width: z.number(),
|
|
2063
|
+
height: z.number(),
|
|
2064
|
+
mimeType: z.string()
|
|
2065
|
+
})
|
|
2066
|
+
}))
|
|
2067
|
+
})
|
|
2068
|
+
}), z.object({
|
|
2069
|
+
status: z.literal(400),
|
|
2070
|
+
json: z.object({
|
|
2071
|
+
message: z.string(),
|
|
2072
|
+
details: z.object({
|
|
2073
|
+
availableKeys: z.array(z.string()).optional()
|
|
2074
|
+
}).optional()
|
|
2075
|
+
})
|
|
2076
|
+
}), z.object({
|
|
2077
|
+
status: z.literal(500),
|
|
2078
|
+
json: GenericError
|
|
2079
|
+
})])
|
|
2080
|
+
}
|
|
2081
|
+
},
|
|
2082
|
+
"/ai/images": {
|
|
2083
|
+
PATCH: {
|
|
2084
|
+
req: {
|
|
2085
|
+
body: z.object({
|
|
2086
|
+
key: z.string(),
|
|
2087
|
+
metadata: z.any(),
|
|
2088
|
+
contentType: z.string()
|
|
2089
|
+
}),
|
|
2090
|
+
cookies: _defineProperty({}, VAL_SESSION_COOKIE, z.string().optional())
|
|
2091
|
+
},
|
|
2092
|
+
res: z.union([unauthorizedResponse, z.object({
|
|
2093
|
+
status: z.literal(200),
|
|
2094
|
+
json: z.object({
|
|
2095
|
+
key: z.string()
|
|
2096
|
+
})
|
|
2097
|
+
}), z.object({
|
|
2098
|
+
status: z.literal(500),
|
|
2099
|
+
json: GenericError
|
|
2100
|
+
})])
|
|
2101
|
+
}
|
|
2027
2102
|
}
|
|
2028
2103
|
};
|
|
2029
2104
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valbuild/shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.96.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Val shared types and utilities",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"zod": "^4.3.5",
|
|
33
33
|
"zod-validation-error": "^5.0.0",
|
|
34
|
-
"@valbuild/core": "0.
|
|
34
|
+
"@valbuild/core": "0.96.0"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"dist",
|