@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.js
CHANGED
|
@@ -5990,7 +5990,8 @@ function registerControllerRoute(registry, route) {
|
|
|
5990
5990
|
pathParams: route.pathParams,
|
|
5991
5991
|
returnSchema: route.returnSchema,
|
|
5992
5992
|
effectiveAuth: route.effectiveAuth,
|
|
5993
|
-
throws: route.throws
|
|
5993
|
+
throws: route.throws,
|
|
5994
|
+
...route.uploadConfig !== void 0 ? { uploadConfig: route.uploadConfig } : {}
|
|
5994
5995
|
});
|
|
5995
5996
|
}
|
|
5996
5997
|
function registerOperation(registry, op) {
|
|
@@ -6038,7 +6039,27 @@ function registerOperation(registry, op) {
|
|
|
6038
6039
|
...security ? { security } : {},
|
|
6039
6040
|
responses,
|
|
6040
6041
|
...refined ? { "x-palbase-refined": true } : {},
|
|
6041
|
-
...resolvedThrows.length > 0 ? { "x-palbase-errors": errorExtension(resolvedThrows) } : {}
|
|
6042
|
+
...resolvedThrows.length > 0 ? { "x-palbase-errors": errorExtension(resolvedThrows) } : {},
|
|
6043
|
+
// WHAT MAKES AN UPLOAD ROUTE AN UPLOAD ROUTE, to every generator.
|
|
6044
|
+
//
|
|
6045
|
+
// An `@Upload` route's bytes never pass through the backend: the client
|
|
6046
|
+
// PUTs them straight at a signed URL the authorize pre-flight mints, and
|
|
6047
|
+
// the decorated method is the completion handler. Nothing about that is
|
|
6048
|
+
// visible in the request body — the pre-flight body is ordinary JSON — so a
|
|
6049
|
+
// document without this extension describes an upload route as a plain
|
|
6050
|
+
// POST, and every client generated from it has NO WAY TO SEND A FILE.
|
|
6051
|
+
//
|
|
6052
|
+
// Measured 2026-08-24 against centauri: the Swift generator reads
|
|
6053
|
+
// `x-palbase-upload` (palbase-swiftgen Parse.swift) and, finding none,
|
|
6054
|
+
// emitted `PBEndpoint` instead of `PBUploadEndpoint` — `uploadImage` lost
|
|
6055
|
+
// its `file:` parameter and the app stopped compiling. Photo upload and
|
|
6056
|
+
// identity verification, both gone, from an absent extension.
|
|
6057
|
+
...op.uploadConfig !== void 0 ? {
|
|
6058
|
+
"x-palbase-upload": {
|
|
6059
|
+
bucket: op.uploadConfig.bucket,
|
|
6060
|
+
pathTemplate: op.uploadConfig.pathTemplate
|
|
6061
|
+
}
|
|
6062
|
+
} : {}
|
|
6042
6063
|
});
|
|
6043
6064
|
}
|
|
6044
6065
|
function resolveThrows(throws) {
|