@pithy-sh/auth 0.10.0 → 0.12.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 +30 -2
- package/dist/admin/users.js +1 -1
- package/dist/audit/actions.d.ts +58 -0
- package/dist/audit/actions.d.ts.map +1 -1
- package/dist/audit/actions.js +59 -1
- package/dist/audit/emit.d.ts +36 -0
- package/dist/audit/emit.d.ts.map +1 -1
- package/dist/audit/emit.js +48 -2
- package/dist/audit/evidence.d.ts +8 -2
- package/dist/audit/evidence.d.ts.map +1 -1
- package/dist/capability.d.ts +47 -8
- package/dist/capability.d.ts.map +1 -1
- package/dist/capability.js +56 -6
- package/dist/client/api.d.ts +55 -12
- package/dist/client/api.d.ts.map +1 -1
- package/dist/client/api.js +57 -18
- package/dist/client/bearer.d.ts +110 -0
- package/dist/client/bearer.d.ts.map +1 -0
- package/dist/client/bearer.js +265 -0
- package/dist/client/handoff.d.ts +77 -0
- package/dist/client/handoff.d.ts.map +1 -0
- package/dist/client/handoff.js +119 -0
- package/dist/client/mcp.d.ts +70 -0
- package/dist/client/mcp.d.ts.map +1 -0
- package/dist/client/mcp.js +65 -0
- package/dist/data/betterAuth.d.ts +3 -2
- package/dist/data/betterAuth.d.ts.map +1 -1
- package/dist/data/betterAuth.js +5 -3
- package/dist/data/kitFields.d.ts +5 -0
- package/dist/data/kitFields.d.ts.map +1 -1
- package/dist/data/kitFields.js +5 -0
- package/dist/data/tables.d.ts +26 -4
- package/dist/data/tables.d.ts.map +1 -1
- package/dist/data/tables.js +5 -3
- package/dist/data/userLifecycle.d.ts +10 -0
- package/dist/data/userLifecycle.d.ts.map +1 -1
- package/dist/data/userLifecycle.js +8 -3
- package/dist/data/verificationOutcome.d.ts +53 -0
- package/dist/data/verificationOutcome.d.ts.map +1 -0
- package/dist/data/verificationOutcome.js +50 -0
- package/dist/email/send.js +6 -2
- package/dist/http/adminRoutes.d.ts.map +1 -1
- package/dist/http/adminRoutes.js +319 -8
- package/dist/http/csrf.d.ts.map +1 -1
- package/dist/http/csrf.js +2 -1
- package/dist/http/guards.d.ts +15 -10
- package/dist/http/guards.d.ts.map +1 -1
- package/dist/http/guards.js +76 -10
- package/dist/http/handoff.d.ts +76 -0
- package/dist/http/handoff.d.ts.map +1 -0
- package/dist/http/handoff.js +316 -0
- package/dist/http/middleware.d.ts +37 -1
- package/dist/http/middleware.d.ts.map +1 -1
- package/dist/http/middleware.js +68 -6
- package/dist/http/resolve.d.ts.map +1 -1
- package/dist/http/resolve.js +9 -3
- package/dist/http/responses.d.ts +322 -0
- package/dist/http/responses.d.ts.map +1 -1
- package/dist/http/responses.js +202 -5
- package/dist/http/routes.d.ts +3 -0
- package/dist/http/routes.d.ts.map +1 -1
- package/dist/http/routes.js +78 -5
- package/dist/http/schemas.d.ts +114 -0
- package/dist/http/schemas.d.ts.map +1 -1
- package/dist/http/schemas.js +94 -1
- package/dist/http/views.d.ts +60 -3
- package/dist/http/views.d.ts.map +1 -1
- package/dist/http/views.js +143 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/instance/auth.d.ts +148 -10
- package/dist/instance/auth.d.ts.map +1 -1
- package/dist/instance/auth.js +87 -42
- package/dist/instance/plugins.d.ts +6 -0
- package/dist/instance/plugins.d.ts.map +1 -1
- package/dist/instance/plugins.js +14 -1
- package/dist/ledger/read.d.ts +53 -0
- package/dist/ledger/read.d.ts.map +1 -0
- package/dist/ledger/read.js +85 -0
- package/dist/ledger/record.d.ts +35 -0
- package/dist/ledger/record.d.ts.map +1 -0
- package/dist/ledger/record.js +98 -0
- package/dist/lifecycle/audited.d.ts +48 -0
- package/dist/lifecycle/audited.d.ts.map +1 -0
- package/dist/lifecycle/audited.js +65 -0
- package/dist/lifecycle/enforce.d.ts +37 -2
- package/dist/lifecycle/enforce.d.ts.map +1 -1
- package/dist/lifecycle/enforce.js +46 -5
- package/dist/lifecycle/erasure.d.ts +9 -0
- package/dist/lifecycle/erasure.d.ts.map +1 -0
- package/dist/lifecycle/erasure.js +96 -0
- package/dist/lifecycle/inactivity.d.ts +19 -0
- package/dist/lifecycle/inactivity.d.ts.map +1 -0
- package/dist/lifecycle/inactivity.js +28 -0
- package/dist/lifecycle/reason.d.ts +11 -0
- package/dist/lifecycle/reason.d.ts.map +1 -0
- package/dist/lifecycle/reason.js +13 -0
- package/dist/lifecycle/request.d.ts +5 -2
- package/dist/lifecycle/request.d.ts.map +1 -1
- package/dist/lifecycle/request.js +6 -2
- package/dist/lifecycle/transitions.d.ts +179 -18
- package/dist/lifecycle/transitions.d.ts.map +1 -1
- package/dist/lifecycle/transitions.js +391 -70
- package/dist/mcp/argumentClass.d.ts +51 -0
- package/dist/mcp/argumentClass.d.ts.map +1 -0
- package/dist/mcp/argumentClass.js +69 -0
- package/dist/mcp/capability.d.ts +50 -0
- package/dist/mcp/capability.d.ts.map +1 -0
- package/dist/mcp/capability.js +140 -0
- package/dist/mcp/clientMetadata.d.ts +40 -0
- package/dist/mcp/clientMetadata.d.ts.map +1 -0
- package/dist/mcp/clientMetadata.js +68 -0
- package/dist/mcp/consent.d.ts +49 -0
- package/dist/mcp/consent.d.ts.map +1 -0
- package/dist/mcp/consent.js +69 -0
- package/dist/mcp/dispatch.d.ts +35 -0
- package/dist/mcp/dispatch.d.ts.map +1 -0
- package/dist/mcp/dispatch.js +135 -0
- package/dist/mcp/floor.d.ts +37 -0
- package/dist/mcp/floor.d.ts.map +1 -0
- package/dist/mcp/floor.js +41 -0
- package/dist/mcp/host.d.ts +34 -0
- package/dist/mcp/host.d.ts.map +1 -0
- package/dist/mcp/host.js +2 -0
- package/dist/mcp/http/redirectList.d.ts +9 -0
- package/dist/mcp/http/redirectList.d.ts.map +1 -0
- package/dist/mcp/http/redirectList.js +24 -0
- package/dist/mcp/http/responses.d.ts +143 -0
- package/dist/mcp/http/responses.d.ts.map +1 -0
- package/dist/mcp/http/responses.js +83 -0
- package/dist/mcp/http/routes.d.ts +28 -0
- package/dist/mcp/http/routes.d.ts.map +1 -0
- package/dist/mcp/http/routes.js +517 -0
- package/dist/mcp/http/schemas.d.ts +24 -0
- package/dist/mcp/http/schemas.d.ts.map +1 -0
- package/dist/mcp/http/schemas.js +18 -0
- package/dist/mcp/marker.d.ts +15 -0
- package/dist/mcp/marker.d.ts.map +1 -0
- package/dist/mcp/marker.js +15 -0
- package/dist/mcp/provider.d.ts +78 -0
- package/dist/mcp/provider.d.ts.map +1 -0
- package/dist/mcp/provider.js +108 -0
- package/dist/mcp/purge.d.ts +15 -0
- package/dist/mcp/purge.d.ts.map +1 -0
- package/dist/mcp/purge.js +31 -0
- package/dist/mcp/rpc.d.ts +79 -0
- package/dist/mcp/rpc.d.ts.map +1 -0
- package/dist/mcp/rpc.js +103 -0
- package/dist/mcp/toolAudit.d.ts +76 -0
- package/dist/mcp/toolAudit.d.ts.map +1 -0
- package/dist/mcp/toolAudit.js +86 -0
- package/dist/migrations/0005_purge_once.d.ts +22 -0
- package/dist/migrations/0005_purge_once.d.ts.map +1 -0
- package/dist/migrations/0005_purge_once.js +35 -0
- package/dist/migrations/0006_verification_outcomes.d.ts +15 -0
- package/dist/migrations/0006_verification_outcomes.d.ts.map +1 -0
- package/dist/migrations/0006_verification_outcomes.js +35 -0
- package/dist/migrations/0007_erasure_record.d.ts +17 -0
- package/dist/migrations/0007_erasure_record.d.ts.map +1 -0
- package/dist/migrations/0007_erasure_record.js +36 -0
- package/dist/migrations/0008_last_active.d.ts +15 -0
- package/dist/migrations/0008_last_active.d.ts.map +1 -0
- package/dist/migrations/0008_last_active.js +29 -0
- package/dist/migrations/pluginTables.d.ts +8 -0
- package/dist/migrations/pluginTables.d.ts.map +1 -1
- package/dist/migrations/pluginTables.js +8 -1
- package/dist/migrations/set.d.ts +5 -1
- package/dist/migrations/set.d.ts.map +1 -1
- package/dist/migrations/set.js +10 -2
- package/dist/peer.d.ts +3 -2
- package/dist/peer.d.ts.map +1 -1
- package/dist/processing/activities.d.ts +6 -0
- package/dist/processing/activities.d.ts.map +1 -0
- package/dist/processing/activities.js +12 -0
- package/dist/purge/contribution.d.ts +62 -0
- package/dist/purge/contribution.d.ts.map +1 -0
- package/dist/purge/contribution.js +155 -0
- package/dist/purge/retryPolicy.d.ts +22 -0
- package/dist/purge/retryPolicy.d.ts.map +1 -0
- package/dist/purge/retryPolicy.js +26 -0
- package/dist/purge/run.d.ts +158 -0
- package/dist/purge/run.d.ts.map +1 -0
- package/dist/purge/run.js +205 -0
- package/dist/purge/specs.d.ts +71 -0
- package/dist/purge/specs.d.ts.map +1 -0
- package/dist/purge/specs.js +72 -0
- package/dist/purge/start.d.ts +42 -0
- package/dist/purge/start.d.ts.map +1 -0
- package/dist/purge/start.js +37 -0
- package/dist/purge/workflow.d.ts +71 -0
- package/dist/purge/workflow.d.ts.map +1 -0
- package/dist/purge/workflow.js +140 -0
- package/dist/test-utils/accountFootprint.d.ts +13 -0
- package/dist/test-utils/accountFootprint.d.ts.map +1 -0
- package/dist/test-utils/accountFootprint.js +49 -0
- package/dist/test-utils/liveApp.d.ts +6 -0
- package/dist/test-utils/liveApp.d.ts.map +1 -1
- package/dist/test-utils/liveApp.js +7 -2
- package/dist/token/handoff.d.ts +80 -0
- package/dist/token/handoff.d.ts.map +1 -0
- package/dist/token/handoff.js +136 -0
- package/dist/version.generated.d.ts +1 -1
- package/dist/version.generated.js +1 -1
- package/docs/account-lifecycle.md +176 -12
- package/docs/apple-signin.md +32 -4
- package/docs/facebook-oauth.md +2 -2
- package/docs/github-oauth.md +2 -2
- package/docs/google-oauth.md +9 -7
- package/docs/microsoft-oauth.md +2 -2
- package/package.json +11 -5
- package/pithy.manifest.json +2 -2
- package/pithy.mcp.manifest.json +36 -0
- package/src/audit/actions.ts +58 -0
- package/src/audit/emit.ts +66 -1
- package/src/audit/evidence.ts +8 -4
- package/src/capability.ts +122 -18
- package/src/client/api.ts +69 -19
- package/src/client/bearer.ts +388 -0
- package/src/client/handoff.ts +172 -0
- package/src/client/mcp.ts +140 -0
- package/src/data/betterAuth.ts +8 -4
- package/src/data/kitFields.ts +2 -0
- package/src/data/tables.ts +4 -2
- package/src/data/userLifecycle.ts +19 -4
- package/src/data/verificationOutcome.ts +86 -0
- package/src/email/send.ts +2 -2
- package/src/http/adminRoutes.ts +465 -4
- package/src/http/csrf.ts +4 -1
- package/src/http/guards.ts +79 -10
- package/src/http/handoff.ts +350 -0
- package/src/http/middleware.ts +74 -5
- package/src/http/resolve.ts +25 -25
- package/src/http/responses.ts +374 -3
- package/src/http/routes.ts +116 -5
- package/src/http/schemas.ts +195 -0
- package/src/http/views.ts +192 -3
- package/src/index.ts +2 -0
- package/src/instance/auth.ts +58 -3
- package/src/instance/plugins.ts +20 -2
- package/src/ledger/read.ts +133 -0
- package/src/ledger/record.ts +198 -0
- package/src/lifecycle/audited.ts +104 -0
- package/src/lifecycle/enforce.ts +55 -5
- package/src/lifecycle/erasure.ts +118 -0
- package/src/lifecycle/inactivity.ts +56 -0
- package/src/lifecycle/reason.ts +11 -0
- package/src/lifecycle/request.ts +10 -2
- package/src/lifecycle/transitions.ts +552 -93
- package/src/mcp/argumentClass.ts +112 -0
- package/src/mcp/capability.ts +194 -0
- package/src/mcp/clientMetadata.ts +81 -0
- package/src/mcp/consent.ts +95 -0
- package/src/mcp/dispatch.ts +154 -0
- package/src/mcp/floor.ts +62 -0
- package/src/mcp/host.ts +36 -0
- package/src/mcp/http/redirectList.ts +26 -0
- package/src/mcp/http/responses.ts +157 -0
- package/src/mcp/http/routes.ts +635 -0
- package/src/mcp/http/schemas.ts +37 -0
- package/src/mcp/marker.ts +18 -0
- package/src/mcp/provider.ts +151 -0
- package/src/mcp/purge.ts +39 -0
- package/src/mcp/rpc.ts +135 -0
- package/src/mcp/toolAudit.ts +132 -0
- package/src/migrations/0005_purge_once.ts +42 -0
- package/src/migrations/0006_verification_outcomes.ts +51 -0
- package/src/migrations/0007_erasure_record.ts +43 -0
- package/src/migrations/0008_last_active.ts +30 -0
- package/src/migrations/pluginTables.ts +19 -1
- package/src/migrations/set.ts +9 -1
- package/src/processing/activities.ts +14 -0
- package/src/purge/contribution.ts +218 -0
- package/src/purge/retryPolicy.ts +26 -0
- package/src/purge/run.ts +348 -0
- package/src/purge/specs.ts +95 -0
- package/src/purge/start.ts +79 -0
- package/src/purge/workflow.ts +202 -0
- package/src/seeds/example.ts +2 -2
- package/src/test-utils/accountFootprint.ts +104 -0
- package/src/test-utils/liveApp.ts +10 -1
- package/src/token/handoff.ts +180 -0
- package/src/version.generated.ts +1 -1
package/dist/data/kitFields.d.ts
CHANGED
|
@@ -44,6 +44,11 @@ export declare const KIT_USER_FIELDS: {
|
|
|
44
44
|
readonly required: false;
|
|
45
45
|
readonly input: false;
|
|
46
46
|
};
|
|
47
|
+
readonly lastActiveAt: {
|
|
48
|
+
readonly type: "number";
|
|
49
|
+
readonly required: false;
|
|
50
|
+
readonly input: false;
|
|
51
|
+
};
|
|
47
52
|
readonly locale: {
|
|
48
53
|
readonly type: "string";
|
|
49
54
|
readonly required: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kitFields.d.ts","sourceRoot":"","sources":["../../src/data/kitFields.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kitFields.d.ts","sourceRoot":"","sources":["../../src/data/kitFields.ts"],"names":[],"mappings":"AA2DA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,eAAe;;iBA/BX,IAAI,EAAE,QAAQ;iBAAE,QAAQ;iBAAS,KAAK;;;iBACnC,IAAI,EAAE,QAAQ;iBAAE,QAAQ;iBAAS,KAAK;;;iBAC3C,IAAI,EAAE,QAAQ;iBAAE,QAAQ;iBAAS,KAAK;;;iBACrC,IAAI,EAAE,QAAQ;iBAAE,QAAQ;iBAAS,KAAK;;;iBAEpC,IAAI,EAAE,QAAQ;iBAAE,QAAQ;iBAAS,KAAK;;;iBA2B5C,IAAI,EAAE,QAAQ;iBAAE,QAAQ;iBAAS,KAAK;iBAAQ,SAAS;qBAAI,KAAK;;;CAElE,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,kBAAkB;aAC7B,QAAQ;iBAAI,IAAI,EAAE,QAAQ;iBAAE,QAAQ;iBAAS,KAAK;;aAClD,QAAQ;iBAAI,IAAI,EAAE,QAAQ;iBAAE,QAAQ;iBAAS,KAAK;;aAClD,eAAe;iBAAI,IAAI,EAAE,MAAM;iBAAE,QAAQ;iBAAS,KAAK;;CAC/C,CAAC"}
|
package/dist/data/kitFields.js
CHANGED
package/dist/data/tables.d.ts
CHANGED
|
@@ -8,15 +8,15 @@ import type { Kysely } from "kysely";
|
|
|
8
8
|
* `pithy_auth_*` SQL. One source of truth shared by the capability wiring, the Better-Auth instance
|
|
9
9
|
* (whose Kysely adapter wraps this same Kysely), the device registry, and the migration.
|
|
10
10
|
*
|
|
11
|
-
* The first six tables are Better-Auth-managed; `pithyAuthDevices`, `pithyAuthRotatedTokens
|
|
12
|
-
* `pithyAuthUserLifecycle` are ours. Setting Better Auth's `modelName` to these exact camelCase keys lets the one `CamelCasePlugin`
|
|
11
|
+
* The first six tables are Better-Auth-managed; `pithyAuthDevices`, `pithyAuthRotatedTokens`,
|
|
12
|
+
* `pithyAuthUserLifecycle` and `pithyAuthVerificationOutcomes` are ours. Setting Better Auth's `modelName` to these exact camelCase keys lets the one `CamelCasePlugin`
|
|
13
13
|
* own the camelCase ↔ snake_case boundary uniformly for both Better Auth's queries and our migration DDL.
|
|
14
14
|
*/
|
|
15
15
|
export declare const authTables: {
|
|
16
16
|
pithyAuthUsers: import("zod").ZodObject<{
|
|
17
17
|
id: import("zod").ZodString;
|
|
18
|
-
name: import("zod").ZodString
|
|
19
|
-
email: import("zod").ZodString
|
|
18
|
+
name: import("@pithy-sh/core/src/privacy/classes").Marked<import("zod").ZodString, "pii">;
|
|
19
|
+
email: import("@pithy-sh/core/src/privacy/classes").Marked<import("zod").ZodString, "pii">;
|
|
20
20
|
emailVerified: import("zod").ZodCodec<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<0>, import("zod").ZodLiteral<1>, import("zod").ZodBoolean, import("zod").ZodString]>, import("zod").ZodBoolean>;
|
|
21
21
|
image: import("zod").ZodNullable<import("zod").ZodString>;
|
|
22
22
|
locale: import("zod").ZodNullable<import("zod").ZodString>;
|
|
@@ -26,6 +26,7 @@ export declare const authTables: {
|
|
|
26
26
|
suspendedUntil: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodCodec<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString, import("zod").ZodDate]>, import("zod").ZodDate>>>;
|
|
27
27
|
deletedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodCodec<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString, import("zod").ZodDate]>, import("zod").ZodDate>>>;
|
|
28
28
|
purgeAfter: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodCodec<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString, import("zod").ZodDate]>, import("zod").ZodDate>>>;
|
|
29
|
+
lastActiveAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodCodec<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString, import("zod").ZodDate]>, import("zod").ZodDate>>>;
|
|
29
30
|
}, import("zod/v4/core").$strip>;
|
|
30
31
|
pithyAuthSessions: import("zod").ZodObject<{
|
|
31
32
|
id: import("zod").ZodString;
|
|
@@ -107,6 +108,8 @@ export declare const authTables: {
|
|
|
107
108
|
userId: import("zod").ZodString;
|
|
108
109
|
action: import("zod").ZodEnum<{
|
|
109
110
|
deleted: "deleted";
|
|
111
|
+
purge_failed: "purge_failed";
|
|
112
|
+
purge_retained: "purge_retained";
|
|
110
113
|
purge_step: "purge_step";
|
|
111
114
|
purged: "purged";
|
|
112
115
|
reinstated: "reinstated";
|
|
@@ -122,8 +125,27 @@ export declare const authTables: {
|
|
|
122
125
|
reason: import("zod").ZodNullable<import("zod").ZodString>;
|
|
123
126
|
suspendedUntil: import("zod").ZodNullable<import("zod").ZodCodec<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString, import("zod").ZodDate]>, import("zod").ZodDate>>;
|
|
124
127
|
step: import("zod").ZodNullable<import("zod").ZodString>;
|
|
128
|
+
notify: import("zod").ZodNullable<import("zod").ZodCodec<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<0>, import("zod").ZodLiteral<1>, import("zod").ZodBoolean, import("zod").ZodString]>, import("zod").ZodBoolean>>;
|
|
129
|
+
mode: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
130
|
+
hard: "hard";
|
|
131
|
+
soft: "soft";
|
|
132
|
+
}>>>;
|
|
133
|
+
purgeAfter: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodCodec<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString, import("zod").ZodDate]>, import("zod").ZodDate>>>;
|
|
125
134
|
createdAt: import("zod").ZodCodec<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString, import("zod").ZodDate]>, import("zod").ZodDate>;
|
|
126
135
|
}, import("zod/v4/core").$strip>;
|
|
136
|
+
pithyAuthVerificationOutcomes: import("zod").ZodObject<{
|
|
137
|
+
id: import("zod").ZodNumber;
|
|
138
|
+
verificationId: import("zod").ZodString;
|
|
139
|
+
type: import("zod").ZodEnum<{
|
|
140
|
+
magic_link: "magic_link";
|
|
141
|
+
otp: "otp";
|
|
142
|
+
}>;
|
|
143
|
+
userId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
144
|
+
emailJobId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
145
|
+
issuedAt: import("zod").ZodCodec<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString, import("zod").ZodDate]>, import("zod").ZodDate>;
|
|
146
|
+
expiresAt: import("zod").ZodCodec<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString, import("zod").ZodDate]>, import("zod").ZodDate>;
|
|
147
|
+
usedAt: import("zod").ZodNullable<import("zod").ZodCodec<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString, import("zod").ZodDate]>, import("zod").ZodDate>>;
|
|
148
|
+
}, import("zod/v4/core").$strip>;
|
|
127
149
|
};
|
|
128
150
|
export type AuthTables = typeof authTables;
|
|
129
151
|
/** The typed Kysely view over the auth tables — shared by the Better-Auth adapter and the device registry. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tables.d.ts","sourceRoot":"","sources":["../../src/data/tables.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"tables.d.ts","sourceRoot":"","sources":["../../src/data/tables.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAOrC;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU;IACrB,cAAc;;;;;;;;;;;;;;;IACd,iBAAiB;;;;;;;;;;;;;IACjB,iBAAiB;;;;;;;;;;;;;;;;IACjB,sBAAsB;;;;;;;;IACtB,aAAa;;;;;;;;;IACb,kBAAkB;;;;;;IAClB,gBAAgB;;;;;;;;;;;;;;;;;IAChB,sBAAsB;;;;;;IACtB,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACtB,6BAA6B;;;;;;;;;;;;;CAC9B,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAE3C,8GAA8G;AAC9G,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC;AAE9D,yGAAyG;AACzG,wBAAgB,YAAY,CAAC,EAAE,EAAE,UAAU,GAAG,YAAY,CAEzD"}
|
package/dist/data/tables.js
CHANGED
|
@@ -4,6 +4,7 @@ import { Account, Jwks, RateLimit, Session, User, Verification } from "./betterA
|
|
|
4
4
|
import { Device } from "./device.js";
|
|
5
5
|
import { RotatedToken } from "./rotatedToken.js";
|
|
6
6
|
import { UserLifecycleEvent } from "./userLifecycle.js";
|
|
7
|
+
import { VerificationOutcome } from "./verificationOutcome.js";
|
|
7
8
|
import { createDatabase } from "@pithy-sh/core/src/data/db";
|
|
8
9
|
//#region src/data/tables.ts
|
|
9
10
|
/**
|
|
@@ -11,8 +12,8 @@ import { createDatabase } from "@pithy-sh/core/src/data/db";
|
|
|
11
12
|
* `pithy_auth_*` SQL. One source of truth shared by the capability wiring, the Better-Auth instance
|
|
12
13
|
* (whose Kysely adapter wraps this same Kysely), the device registry, and the migration.
|
|
13
14
|
*
|
|
14
|
-
* The first six tables are Better-Auth-managed; `pithyAuthDevices`, `pithyAuthRotatedTokens
|
|
15
|
-
* `pithyAuthUserLifecycle` are ours. Setting Better Auth's `modelName` to these exact camelCase keys lets the one `CamelCasePlugin`
|
|
15
|
+
* The first six tables are Better-Auth-managed; `pithyAuthDevices`, `pithyAuthRotatedTokens`,
|
|
16
|
+
* `pithyAuthUserLifecycle` and `pithyAuthVerificationOutcomes` are ours. Setting Better Auth's `modelName` to these exact camelCase keys lets the one `CamelCasePlugin`
|
|
16
17
|
* own the camelCase ↔ snake_case boundary uniformly for both Better Auth's queries and our migration DDL.
|
|
17
18
|
*/
|
|
18
19
|
const authTables = {
|
|
@@ -24,7 +25,8 @@ const authTables = {
|
|
|
24
25
|
pithyAuthRateLimit: RateLimit,
|
|
25
26
|
pithyAuthDevices: Device,
|
|
26
27
|
pithyAuthRotatedTokens: RotatedToken,
|
|
27
|
-
pithyAuthUserLifecycle: UserLifecycleEvent
|
|
28
|
+
pithyAuthUserLifecycle: UserLifecycleEvent,
|
|
29
|
+
pithyAuthVerificationOutcomes: VerificationOutcome
|
|
28
30
|
};
|
|
29
31
|
/** Build the auth Kysely over a D1 binding. Carries `CamelCasePlugin`, so query code stays camelCase. */
|
|
30
32
|
function authDatabase(d1) {
|
|
@@ -20,6 +20,8 @@ import { z } from "zod";
|
|
|
20
20
|
/** What happened to the account. */
|
|
21
21
|
export declare const UserLifecycleAction: z.ZodEnum<{
|
|
22
22
|
deleted: "deleted";
|
|
23
|
+
purge_failed: "purge_failed";
|
|
24
|
+
purge_retained: "purge_retained";
|
|
23
25
|
purge_step: "purge_step";
|
|
24
26
|
purged: "purged";
|
|
25
27
|
reinstated: "reinstated";
|
|
@@ -40,6 +42,8 @@ export declare const UserLifecycleEvent: z.ZodObject<{
|
|
|
40
42
|
userId: z.ZodString;
|
|
41
43
|
action: z.ZodEnum<{
|
|
42
44
|
deleted: "deleted";
|
|
45
|
+
purge_failed: "purge_failed";
|
|
46
|
+
purge_retained: "purge_retained";
|
|
43
47
|
purge_step: "purge_step";
|
|
44
48
|
purged: "purged";
|
|
45
49
|
reinstated: "reinstated";
|
|
@@ -55,6 +59,12 @@ export declare const UserLifecycleEvent: z.ZodObject<{
|
|
|
55
59
|
reason: z.ZodNullable<z.ZodString>;
|
|
56
60
|
suspendedUntil: z.ZodNullable<z.ZodCodec<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodDate]>, z.ZodDate>>;
|
|
57
61
|
step: z.ZodNullable<z.ZodString>;
|
|
62
|
+
notify: z.ZodNullable<z.ZodCodec<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodBoolean, z.ZodString]>, z.ZodBoolean>>;
|
|
63
|
+
mode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
64
|
+
hard: "hard";
|
|
65
|
+
soft: "soft";
|
|
66
|
+
}>>>;
|
|
67
|
+
purgeAfter: z.ZodDefault<z.ZodNullable<z.ZodCodec<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodDate]>, z.ZodDate>>>;
|
|
58
68
|
createdAt: z.ZodCodec<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodDate]>, z.ZodDate>;
|
|
59
69
|
}, z.core.$strip>;
|
|
60
70
|
export type UserLifecycleEvent = z.output<typeof UserLifecycleEvent>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userLifecycle.d.ts","sourceRoot":"","sources":["../../src/data/userLifecycle.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;GAeG;AAEH,oCAAoC;AACpC,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"userLifecycle.d.ts","sourceRoot":"","sources":["../../src/data/userLifecycle.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;GAeG;AAEH,oCAAoC;AACpC,eAAO,MAAM,mBAAmB;;;;;;;;;EAI7B,CAAC;AACJ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEvE,+BAA+B;AAC/B,eAAO,MAAM,sBAAsB;;;;EAIhC,CAAC;AACJ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE7E,iCAAiC;AACjC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqD5B,CAAC;AACJ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
import { SQLiteDate } from "@pithy-sh/core/src/data/codecs";
|
|
4
|
+
import { SQLiteBoolean, SQLiteDate } from "@pithy-sh/core/src/data/codecs";
|
|
5
5
|
//#region src/data/userLifecycle.ts
|
|
6
6
|
/**
|
|
7
7
|
* `pithy_auth_user_lifecycle` — every transition an account went through, who made it, and why.
|
|
@@ -26,8 +26,10 @@ const UserLifecycleAction = z.enum([
|
|
|
26
26
|
"deleted",
|
|
27
27
|
"restored",
|
|
28
28
|
"purge_step",
|
|
29
|
+
"purge_retained",
|
|
30
|
+
"purge_failed",
|
|
29
31
|
"purged"
|
|
30
|
-
]).describe("The transition: `suspended` and `reinstated`; `deleted` (by an operator, or by the account's owner) and `restored` inside the purge window; `purge_step`, one capability's rows erased during a purge, named in `step`; and `purged`, the erasure finished.");
|
|
32
|
+
]).describe("The transition: `suspended` and `reinstated`; `deleted` (by an operator, or by the account's owner) and `restored` inside the purge window; `purge_step`, one capability's rows erased during a purge, named in `step`; `purge_retained`, one capability's rows kept through a purge under the basis in `reason` (#814); `purge_failed`, the purge gave up at the step named in `step`, until the next daily pass (#823); and `purged`, the erasure finished.");
|
|
31
33
|
/** Who made the transition. */
|
|
32
34
|
const UserLifecycleActorType = z.enum([
|
|
33
35
|
"control-plane",
|
|
@@ -43,7 +45,10 @@ const UserLifecycleEvent = z.object({
|
|
|
43
45
|
actorId: z.string().nullable().describe("The acting principal's id — the user's own id for a self-service deletion, the connection's for a management client. Null for `system`, and for a management client that named none."),
|
|
44
46
|
reason: z.string().nullable().describe("Why, in the words of whoever made the transition. For a suspension this is the sentence the locked-out person is shown, so it is written for them. Null for a transition nobody had to justify — a purge, a self-service deletion."),
|
|
45
47
|
suspendedUntil: SQLiteDate.nullable().describe("For a `suspended` row, when that suspension ends by itself; null for one that lasts until a reinstatement, and for every other action. Ms-epoch in SQLite."),
|
|
46
|
-
step: z.string().nullable().describe("For a `purge_step` row, the capability whose rows that step erased
|
|
48
|
+
step: z.string().nullable().describe("For a `purge_step` row, the capability whose rows that step erased; for a `purge_retained` row, the capability whose rows it kept; for a `purge_failed` row, the step the purge gave up at — a capability, `mail` or `complete`. Null for every other action."),
|
|
49
|
+
notify: SQLiteBoolean.nullable().describe("For a hard deletion's `deleted` row, whether the purge sends the deletion-complete mail — false when the deletion asked for none. Null for every other row, and for a hard deletion that did not say. The purge reads it, so a purge the daily pass starts keeps the choice (#622)."),
|
|
50
|
+
mode: z.enum(["soft", "hard"]).nullable().default(null).describe("For a `deleted` row, how the deletion was asked for: `soft` with a window, `hard` with none — a hard deletion bringing a soft one forward writes its own `hard` row. Null for every other row, and for a deletion recorded before `0007_erasure_record` (#823)."),
|
|
51
|
+
purgeAfter: SQLiteDate.nullable().default(null).describe("For a `deleted` row, when its purge comes due — kept here because the purge erases the account's own column. Null for every other row, and before `0007_erasure_record` (#823). Ms-epoch in SQLite."),
|
|
47
52
|
createdAt: SQLiteDate.describe("When the transition happened. Ms-epoch in SQLite; a `Date` in app code.")
|
|
48
53
|
}).describe("One transition in `pithy_auth_user_lifecycle`: an account suspended, reinstated, deleted, restored or purged, with who did it and why.");
|
|
49
54
|
//#endregion
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
/**
|
|
5
|
+
* `pithy_auth_verification_outcomes` — the verification ledger (#829): one row per sign-in link or code auth
|
|
6
|
+
* issued, and whether it was used.
|
|
7
|
+
*
|
|
8
|
+
* **Why a ledger, and not a read of `pithy_auth_verifications`.** Better Auth consumes a verification row on its
|
|
9
|
+
* first use and deletes it, so a used link leaves nothing behind, and an unused one looks exactly like one still
|
|
10
|
+
* waiting until the cleanup on some later read takes it. "How many sign-ins failed because mail did not land"
|
|
11
|
+
* needs both halves, so auth writes its own record: when it issues, and again when the link or code is used.
|
|
12
|
+
*
|
|
13
|
+
* **Never the token, never the address.** The row names the verification by its row id, the person by their user
|
|
14
|
+
* id where one exists, and the mail by its `pithy_email_jobs` id — which is where the address already lives,
|
|
15
|
+
* under email's own retention. A sign-up has no user when its link is sent, so its row joins to its mail by the
|
|
16
|
+
* job id alone and gains the user id when the link is used and the account exists.
|
|
17
|
+
*
|
|
18
|
+
* **No foreign key, to the user or to the job.** The two live in different capabilities' tables, and a purge of
|
|
19
|
+
* the account erases its rows here by user id (`../purge/contribution.ts`).
|
|
20
|
+
*
|
|
21
|
+
* Written by the kit through its own Kysely, so its dates take the house ms-epoch `SQLiteDate`.
|
|
22
|
+
*/
|
|
23
|
+
/** What was issued. */
|
|
24
|
+
export declare const VerificationType: z.ZodEnum<{
|
|
25
|
+
magic_link: "magic_link";
|
|
26
|
+
otp: "otp";
|
|
27
|
+
}>;
|
|
28
|
+
export type VerificationType = z.output<typeof VerificationType>;
|
|
29
|
+
/** One issued link or code, as stored. */
|
|
30
|
+
export declare const VerificationOutcome: z.ZodObject<{
|
|
31
|
+
id: z.ZodNumber;
|
|
32
|
+
verificationId: z.ZodString;
|
|
33
|
+
type: z.ZodEnum<{
|
|
34
|
+
magic_link: "magic_link";
|
|
35
|
+
otp: "otp";
|
|
36
|
+
}>;
|
|
37
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
38
|
+
emailJobId: z.ZodNullable<z.ZodString>;
|
|
39
|
+
issuedAt: z.ZodCodec<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodDate]>, z.ZodDate>;
|
|
40
|
+
expiresAt: z.ZodCodec<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodDate]>, z.ZodDate>;
|
|
41
|
+
usedAt: z.ZodNullable<z.ZodCodec<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodDate]>, z.ZodDate>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type VerificationOutcome = z.output<typeof VerificationOutcome>;
|
|
44
|
+
/** Where an issued link or code stands at a moment: used, expired unused, or still pending. */
|
|
45
|
+
export declare const VerificationState: z.ZodEnum<{
|
|
46
|
+
expired: "expired";
|
|
47
|
+
pending: "pending";
|
|
48
|
+
used: "used";
|
|
49
|
+
}>;
|
|
50
|
+
export type VerificationState = z.output<typeof VerificationState>;
|
|
51
|
+
/** Where one row stands at `now`. Used wins over expiry: a link used a second before it ran out was used. */
|
|
52
|
+
export declare function verificationStateAt(row: Pick<VerificationOutcome, "expiresAt" | "usedAt">, now: Date): VerificationState;
|
|
53
|
+
//# sourceMappingURL=verificationOutcome.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verificationOutcome.d.ts","sourceRoot":"","sources":["../../src/data/verificationOutcome.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;GAkBG;AAEH,uBAAuB;AACvB,eAAO,MAAM,gBAAgB;;;EAI1B,CAAC;AACJ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEjE,0CAA0C;AAC1C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;iBAgC7B,CAAC;AACJ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEvE,+FAA+F;AAC/F,eAAO,MAAM,iBAAiB;;;;EAI3B,CAAC;AACJ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEnE,6GAA6G;AAC7G,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,IAAI,CAAC,mBAAmB,EAAE,WAAW,GAAG,QAAQ,CAAC,EACtD,GAAG,EAAE,IAAI,GACR,iBAAiB,CAGnB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { SQLiteDate } from "@pithy-sh/core/src/data/codecs";
|
|
5
|
+
//#region src/data/verificationOutcome.ts
|
|
6
|
+
/**
|
|
7
|
+
* `pithy_auth_verification_outcomes` — the verification ledger (#829): one row per sign-in link or code auth
|
|
8
|
+
* issued, and whether it was used.
|
|
9
|
+
*
|
|
10
|
+
* **Why a ledger, and not a read of `pithy_auth_verifications`.** Better Auth consumes a verification row on its
|
|
11
|
+
* first use and deletes it, so a used link leaves nothing behind, and an unused one looks exactly like one still
|
|
12
|
+
* waiting until the cleanup on some later read takes it. "How many sign-ins failed because mail did not land"
|
|
13
|
+
* needs both halves, so auth writes its own record: when it issues, and again when the link or code is used.
|
|
14
|
+
*
|
|
15
|
+
* **Never the token, never the address.** The row names the verification by its row id, the person by their user
|
|
16
|
+
* id where one exists, and the mail by its `pithy_email_jobs` id — which is where the address already lives,
|
|
17
|
+
* under email's own retention. A sign-up has no user when its link is sent, so its row joins to its mail by the
|
|
18
|
+
* job id alone and gains the user id when the link is used and the account exists.
|
|
19
|
+
*
|
|
20
|
+
* **No foreign key, to the user or to the job.** The two live in different capabilities' tables, and a purge of
|
|
21
|
+
* the account erases its rows here by user id (`../purge/contribution.ts`).
|
|
22
|
+
*
|
|
23
|
+
* Written by the kit through its own Kysely, so its dates take the house ms-epoch `SQLiteDate`.
|
|
24
|
+
*/
|
|
25
|
+
/** What was issued. */
|
|
26
|
+
const VerificationType = z.enum(["magic_link", "otp"]).describe("What was issued: `magic_link`, a sign-in link; `otp`, a one-time sign-in code. The only two auth sends — it composes no password, so no reset, and no separate email-verification mail.");
|
|
27
|
+
/** One issued link or code, as stored. */
|
|
28
|
+
const VerificationOutcome = z.object({
|
|
29
|
+
id: z.number().int().describe("Primary key. Auto-incrementing, so two rows issued in the same millisecond keep their order."),
|
|
30
|
+
verificationId: z.string().describe("The `pithy_auth_verifications` row that carries this link or code. A wrong code is re-issued under a new row with the same expiry, and this follows it. Indexed."),
|
|
31
|
+
type: VerificationType.describe("What was issued."),
|
|
32
|
+
userId: z.string().nullable().describe("The account it signs in to, when one existed at issue or was created by its use. Null for a sign-up nobody completed. Indexed, so a purge finds the account's rows."),
|
|
33
|
+
emailJobId: z.string().nullable().describe("The `pithy_email_jobs` row that carried it — how a reader joins it to a bounce, a deferral or a suppression. Null when the email seam failed and nothing was queued."),
|
|
34
|
+
issuedAt: SQLiteDate.describe("When it was issued. Ms-epoch in SQLite; a `Date` in app code."),
|
|
35
|
+
expiresAt: SQLiteDate.describe("When it stops working, used or not. Ms-epoch in SQLite."),
|
|
36
|
+
usedAt: SQLiteDate.nullable().describe("When it was used to sign in, or null while it has not been. Ms-epoch in SQLite.")
|
|
37
|
+
}).describe("One sign-in link or code in `pithy_auth_verification_outcomes`: what it was, whose, the mail that carried it, and when it was issued, expires and was used. Never the token or the address.");
|
|
38
|
+
/** Where an issued link or code stands at a moment: used, expired unused, or still pending. */
|
|
39
|
+
const VerificationState = z.enum([
|
|
40
|
+
"used",
|
|
41
|
+
"expired",
|
|
42
|
+
"pending"
|
|
43
|
+
]).describe("Where it stands: `used`, it signed somebody in; `expired`, it ran out unused; `pending`, it is unused and still works.");
|
|
44
|
+
/** Where one row stands at `now`. Used wins over expiry: a link used a second before it ran out was used. */
|
|
45
|
+
function verificationStateAt(row, now) {
|
|
46
|
+
if (row.usedAt !== null) return "used";
|
|
47
|
+
return row.expiresAt.getTime() <= now.getTime() ? "expired" : "pending";
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
export { VerificationOutcome, VerificationState, VerificationType, verificationStateAt };
|
package/dist/email/send.js
CHANGED
|
@@ -64,9 +64,13 @@ function makeSendAuthEmail(enqueue, expiresMinutes, localeFor) {
|
|
|
64
64
|
function deliveryOf(result) {
|
|
65
65
|
if (result.status === "suppressed") return {
|
|
66
66
|
delivery: "withheld",
|
|
67
|
-
reason: result.suppressionReason ?? result.status
|
|
67
|
+
reason: result.suppressionReason ?? result.status,
|
|
68
|
+
jobId: result.jobId
|
|
69
|
+
};
|
|
70
|
+
return {
|
|
71
|
+
delivery: "queued",
|
|
72
|
+
jobId: result.jobId
|
|
68
73
|
};
|
|
69
|
-
return { delivery: "queued" };
|
|
70
74
|
}
|
|
71
75
|
//#endregion
|
|
72
76
|
export { makeSendAuthEmail };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adminRoutes.d.ts","sourceRoot":"","sources":["../../src/http/adminRoutes.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"adminRoutes.d.ts","sourceRoot":"","sources":["../../src/http/adminRoutes.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAS7E,OAAO,KAAK,EAAW,IAAI,EAAE,MAAM,MAAM,CAAC;AAe1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AA8ThD;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,UAAU,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,YAAY,CAAC,KAAK,IAAI,CAmgB7F"}
|