tempest-express-sdk 0.20.0 → 0.21.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/README.md +10 -3
- package/dist/{chunk-2OYRCWG5.js → chunk-E3CJPTYY.js} +4 -4
- package/dist/chunk-E3CJPTYY.js.map +1 -0
- package/dist/cli.cjs +7 -7
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +4 -4
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +146 -400
- package/dist/index.d.ts +146 -400
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/package.json +12 -11
- package/dist/chunk-2OYRCWG5.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -295,7 +295,7 @@ function toDict(data, options = {}) {
|
|
|
295
295
|
return { ...out, ...options.include ?? {} };
|
|
296
296
|
}
|
|
297
297
|
var baseResponseSchema = zod.z.object({
|
|
298
|
-
id: zod.z.
|
|
298
|
+
id: zod.z.uuid().openapi({ description: "The unique identifier of the record." }),
|
|
299
299
|
isActive: zod.z.boolean().openapi({ description: "Whether the record is active (soft-delete flag)." }),
|
|
300
300
|
createdAt: zod.z.coerce.date().openapi({ description: "The creation timestamp of the record (UTC)." }),
|
|
301
301
|
updatedAt: zod.z.coerce.date().openapi({ description: "The last update timestamp of the record (UTC)." })
|
|
@@ -445,7 +445,7 @@ var logEntrySchema = zod.z.object({
|
|
|
445
445
|
stack: zod.z.string().nullable().optional().openapi({
|
|
446
446
|
description: "Formatted stack trace, when the record carries an error."
|
|
447
447
|
})
|
|
448
|
-
}).
|
|
448
|
+
}).loose();
|
|
449
449
|
|
|
450
450
|
// src/settings/base.ts
|
|
451
451
|
var serverSettingsShape = {
|
|
@@ -8886,14 +8886,14 @@ var webPushKeysSchema = zod.z.object({
|
|
|
8886
8886
|
auth: zod.z.string().openapi({ description: "Client auth secret (base64url)." })
|
|
8887
8887
|
}).openapi("WebPushKeys");
|
|
8888
8888
|
var webPushSubscriptionSchema = zod.z.object({
|
|
8889
|
-
endpoint: zod.z.
|
|
8889
|
+
endpoint: zod.z.url().openapi({ description: "Push service endpoint URL." }),
|
|
8890
8890
|
keys: webPushKeysSchema
|
|
8891
8891
|
}).openapi("WebPushSubscription");
|
|
8892
8892
|
var webPushPayloadSchema = zod.z.object({
|
|
8893
8893
|
title: zod.z.string().openapi({ description: "Notification title." }),
|
|
8894
8894
|
body: zod.z.string().optional().openapi({ description: "Notification body." }),
|
|
8895
8895
|
url: zod.z.string().optional().openapi({ description: "URL opened on click." }),
|
|
8896
|
-
data: zod.z.record(zod.z.unknown()).optional().openapi({ description: "Extra data." })
|
|
8896
|
+
data: zod.z.record(zod.z.string(), zod.z.unknown()).optional().openapi({ description: "Extra data." })
|
|
8897
8897
|
}).openapi("WebPushPayload");
|
|
8898
8898
|
|
|
8899
8899
|
// src/webpush/dispatcher.ts
|
|
@@ -9543,12 +9543,12 @@ function makeAdminRouter(site, options = {}) {
|
|
|
9543
9543
|
|
|
9544
9544
|
// src/auth/schemas.ts
|
|
9545
9545
|
var signupSchema = zod.z.object({
|
|
9546
|
-
email: zod.z.
|
|
9546
|
+
email: zod.z.email().openapi({ description: "Login identifier (email)." }),
|
|
9547
9547
|
password: zod.z.string().min(1).openapi({ description: "Plaintext password (hashed server-side)." }),
|
|
9548
9548
|
name: zod.z.string().max(120).optional().openapi({ description: "Optional display name." })
|
|
9549
9549
|
}).openapi("Signup");
|
|
9550
9550
|
var loginSchema = zod.z.object({
|
|
9551
|
-
email: zod.z.
|
|
9551
|
+
email: zod.z.email().openapi({ description: "Login identifier (email)." }),
|
|
9552
9552
|
password: zod.z.string().min(1).openapi({ description: "Plaintext password." })
|
|
9553
9553
|
}).openapi("Login");
|
|
9554
9554
|
var refreshSchema = zod.z.object({
|
|
@@ -9562,7 +9562,7 @@ var tokenPairSchema = zod.z.object({
|
|
|
9562
9562
|
}).openapi("TokenPair");
|
|
9563
9563
|
var userPublicSchema = zod.z.object({
|
|
9564
9564
|
id: zod.z.string().openapi({ description: "User id." }),
|
|
9565
|
-
email: zod.z.
|
|
9565
|
+
email: zod.z.email().openapi({ description: "User email." }),
|
|
9566
9566
|
name: zod.z.string().nullable().openapi({ description: "Display name, or null." }),
|
|
9567
9567
|
isActive: zod.z.boolean().openapi({ description: "Whether the account is active." }),
|
|
9568
9568
|
roles: zod.z.array(zod.z.string()).openapi({ description: "Assigned role names." })
|
|
@@ -9581,7 +9581,7 @@ var mfaChallengeSchema = zod.z.object({
|
|
|
9581
9581
|
code: zod.z.string().min(1).openapi({ description: "Authenticator code." })
|
|
9582
9582
|
}).openapi("MfaChallenge");
|
|
9583
9583
|
var activationSchema = zod.z.object({ token: zod.z.string().min(1).openapi({ description: "Activation token." }) }).openapi("Activation");
|
|
9584
|
-
var passwordResetRequestSchema = zod.z.object({ email: zod.z.
|
|
9584
|
+
var passwordResetRequestSchema = zod.z.object({ email: zod.z.email().openapi({ description: "Account email." }) }).openapi("PasswordResetRequest");
|
|
9585
9585
|
var passwordResetConfirmSchema = zod.z.object({
|
|
9586
9586
|
token: zod.z.string().min(1).openapi({ description: "Reset token." }),
|
|
9587
9587
|
password: zod.z.string().min(1).openapi({ description: "New plaintext password." })
|
|
@@ -10240,19 +10240,19 @@ function mountOpenApiJson(app, path, document) {
|
|
|
10240
10240
|
res.json(document);
|
|
10241
10241
|
});
|
|
10242
10242
|
}
|
|
10243
|
-
function swaggerHtml(specUrl, title) {
|
|
10243
|
+
function swaggerHtml(specUrl, title, assetsBase) {
|
|
10244
10244
|
return `<!doctype html>
|
|
10245
10245
|
<html lang="en">
|
|
10246
10246
|
<head>
|
|
10247
10247
|
<meta charset="utf-8" />
|
|
10248
10248
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
10249
10249
|
<title>${title}</title>
|
|
10250
|
-
<link rel="stylesheet" href="
|
|
10250
|
+
<link rel="stylesheet" href="${assetsBase}/swagger-ui.css" />
|
|
10251
10251
|
</head>
|
|
10252
10252
|
<body>
|
|
10253
10253
|
<div id="swagger-ui"></div>
|
|
10254
|
-
<script src="
|
|
10255
|
-
<script src="
|
|
10254
|
+
<script src="${assetsBase}/swagger-ui-bundle.js"></script>
|
|
10255
|
+
<script src="${assetsBase}/swagger-ui-standalone-preset.js"></script>
|
|
10256
10256
|
<script>
|
|
10257
10257
|
window.ui = SwaggerUIBundle({
|
|
10258
10258
|
url: ${JSON.stringify(specUrl)},
|
|
@@ -10269,7 +10269,7 @@ function mountSwaggerUi(app, path, specUrl, options = {}) {
|
|
|
10269
10269
|
const assetsPath = `${path.replace(/\/$/, "")}/assets`;
|
|
10270
10270
|
app.use(assetsPath, express2__default.default.static(swaggerUiDist.getAbsoluteFSPath()));
|
|
10271
10271
|
const handler = (_req, res) => {
|
|
10272
|
-
res.type("html").send(swaggerHtml(specUrl, title));
|
|
10272
|
+
res.type("html").send(swaggerHtml(specUrl, title, assetsPath));
|
|
10273
10273
|
};
|
|
10274
10274
|
app.get(path, handler);
|
|
10275
10275
|
}
|
|
@@ -11322,7 +11322,7 @@ async function withTestDatabase(models, fn) {
|
|
|
11322
11322
|
}
|
|
11323
11323
|
|
|
11324
11324
|
// src/version.ts
|
|
11325
|
-
var VERSION = "0.
|
|
11325
|
+
var VERSION = "0.21.0";
|
|
11326
11326
|
|
|
11327
11327
|
Object.defineProperty(exports, "OpenAPIRegistry", {
|
|
11328
11328
|
enumerable: true,
|