@palbase/backend 21.0.0 → 21.0.1
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/openapi/index.cjs +23 -2
- package/dist/openapi/index.cjs.map +1 -1
- package/dist/openapi/index.js +23 -2
- package/dist/openapi/index.js.map +1 -1
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.d.cts +3 -3
- package/dist/test/index.d.ts +3 -3
- package/dist/test/index.js.map +1 -1
- package/package.json +2 -2
package/dist/openapi/index.cjs
CHANGED
|
@@ -6205,7 +6205,8 @@ function registerControllerRoute(registry, route) {
|
|
|
6205
6205
|
pathParams: route.pathParams,
|
|
6206
6206
|
returnSchema: route.returnSchema,
|
|
6207
6207
|
effectiveAuth: route.effectiveAuth,
|
|
6208
|
-
throws: route.throws
|
|
6208
|
+
throws: route.throws,
|
|
6209
|
+
...route.uploadConfig !== void 0 ? { uploadConfig: route.uploadConfig } : {}
|
|
6209
6210
|
});
|
|
6210
6211
|
}
|
|
6211
6212
|
function registerOperation(registry, op) {
|
|
@@ -6253,7 +6254,27 @@ function registerOperation(registry, op) {
|
|
|
6253
6254
|
...security ? { security } : {},
|
|
6254
6255
|
responses,
|
|
6255
6256
|
...refined ? { "x-palbase-refined": true } : {},
|
|
6256
|
-
...resolvedThrows.length > 0 ? { "x-palbase-errors": errorExtension(resolvedThrows) } : {}
|
|
6257
|
+
...resolvedThrows.length > 0 ? { "x-palbase-errors": errorExtension(resolvedThrows) } : {},
|
|
6258
|
+
// WHAT MAKES AN UPLOAD ROUTE AN UPLOAD ROUTE, to every generator.
|
|
6259
|
+
//
|
|
6260
|
+
// An `@Upload` route's bytes never pass through the backend: the client
|
|
6261
|
+
// PUTs them straight at a signed URL the authorize pre-flight mints, and
|
|
6262
|
+
// the decorated method is the completion handler. Nothing about that is
|
|
6263
|
+
// visible in the request body — the pre-flight body is ordinary JSON — so a
|
|
6264
|
+
// document without this extension describes an upload route as a plain
|
|
6265
|
+
// POST, and every client generated from it has NO WAY TO SEND A FILE.
|
|
6266
|
+
//
|
|
6267
|
+
// Measured 2026-08-24 against centauri: the Swift generator reads
|
|
6268
|
+
// `x-palbase-upload` (palbase-swiftgen Parse.swift) and, finding none,
|
|
6269
|
+
// emitted `PBEndpoint` instead of `PBUploadEndpoint` — `uploadImage` lost
|
|
6270
|
+
// its `file:` parameter and the app stopped compiling. Photo upload and
|
|
6271
|
+
// identity verification, both gone, from an absent extension.
|
|
6272
|
+
...op.uploadConfig !== void 0 ? {
|
|
6273
|
+
"x-palbase-upload": {
|
|
6274
|
+
bucket: op.uploadConfig.bucket,
|
|
6275
|
+
pathTemplate: op.uploadConfig.pathTemplate
|
|
6276
|
+
}
|
|
6277
|
+
} : {}
|
|
6257
6278
|
});
|
|
6258
6279
|
}
|
|
6259
6280
|
function resolveThrows(throws) {
|