@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.js
CHANGED
|
@@ -6750,19 +6750,21 @@ function registerOperation(registry, op) {
|
|
|
6750
6750
|
} : {}
|
|
6751
6751
|
};
|
|
6752
6752
|
const resolvedThrows = resolveThrows(op.throws);
|
|
6753
|
-
const
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
}
|
|
6753
|
+
const returnKind = op.returnSchema?._def?.typeName;
|
|
6754
|
+
const noContent = op.sseConfig === void 0 && (returnKind === "ZodVoid" || returnKind === "ZodUndefined");
|
|
6755
|
+
const successResponse = noContent ? {
|
|
6756
|
+
description: "No Content"
|
|
6757
|
+
} : {
|
|
6758
|
+
description: "Success",
|
|
6759
|
+
content: {
|
|
6760
|
+
"application/json": {
|
|
6761
|
+
// SSE's schema describes one frame, not the void handler return.
|
|
6762
|
+
schema: op.sseConfig?.frame ?? op.returnSchema ?? z.unknown()
|
|
6764
6763
|
}
|
|
6765
|
-
}
|
|
6764
|
+
}
|
|
6765
|
+
};
|
|
6766
|
+
const responses = {
|
|
6767
|
+
[noContent ? 204 : 200]: successResponse,
|
|
6766
6768
|
400: errorResponse("Validation error"),
|
|
6767
6769
|
401: errorResponse("Unauthorized"),
|
|
6768
6770
|
403: errorResponse("Forbidden"),
|