@palbase/backend 36.0.1 → 37.0.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/openapi/index.cjs +14 -12
- package/dist/openapi/index.cjs.map +1 -1
- package/dist/openapi/index.js +14 -12
- package/dist/openapi/index.js.map +1 -1
- package/dist/test/index.cjs +21 -3
- package/dist/test/index.cjs.map +1 -1
- package/dist/test/index.js +21 -3
- package/dist/test/index.js.map +1 -1
- package/docs/README.md +1 -1
- package/docs/llms-full.txt +1 -1
- package/docs/paltimate/2026-09-06-fake-offset-claim/research.md +75 -0
- package/docs/paltimate/2026-09-06-fake-offset-claim/verification.md +145 -0
- package/package.json +1 -1
- package/stager/return_types.js +9 -4
- package/template/package.json +1 -1
package/dist/openapi/index.cjs
CHANGED
|
@@ -7015,19 +7015,21 @@ function registerOperation(registry, op) {
|
|
|
7015
7015
|
} : {}
|
|
7016
7016
|
};
|
|
7017
7017
|
const resolvedThrows = resolveThrows(op.throws);
|
|
7018
|
-
const
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
}
|
|
7018
|
+
const returnKind = op.returnSchema?._def?.typeName;
|
|
7019
|
+
const noContent = op.sseConfig === void 0 && (returnKind === "ZodVoid" || returnKind === "ZodUndefined");
|
|
7020
|
+
const successResponse = noContent ? {
|
|
7021
|
+
description: "No Content"
|
|
7022
|
+
} : {
|
|
7023
|
+
description: "Success",
|
|
7024
|
+
content: {
|
|
7025
|
+
"application/json": {
|
|
7026
|
+
// SSE's schema describes one frame, not the void handler return.
|
|
7027
|
+
schema: op.sseConfig?.frame ?? op.returnSchema ?? import_zod2.z.unknown()
|
|
7029
7028
|
}
|
|
7030
|
-
}
|
|
7029
|
+
}
|
|
7030
|
+
};
|
|
7031
|
+
const responses = {
|
|
7032
|
+
[noContent ? 204 : 200]: successResponse,
|
|
7031
7033
|
400: errorResponse("Validation error"),
|
|
7032
7034
|
401: errorResponse("Unauthorized"),
|
|
7033
7035
|
403: errorResponse("Forbidden"),
|