@absolutejs/auth 0.57.8 → 0.58.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 +33 -0
- package/dist/agents/index.d.ts +1 -1
- package/dist/agents/index.js +66 -35
- package/dist/agents/index.js.map +3 -3
- package/dist/agents/postgresStores.d.ts +586 -1
- package/dist/cli/migrate.js +46 -14
- package/dist/cli/migrate.js.map +5 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.js +286 -58
- package/dist/index.js.map +14 -13
- package/dist/manifest.js +8 -1
- package/dist/manifest.js.map +3 -3
- package/dist/manifest.json +9 -0
- package/dist/mfa/challenge.d.ts +4 -2
- package/dist/mfa/config.d.ts +6 -0
- package/dist/mfa/postgresMfaStore.d.ts +45 -0
- package/dist/mfa/routes.d.ts +9 -4
- package/dist/mfa/sms.d.ts +38 -5
- package/dist/mfa/types.d.ts +4 -0
- package/dist/server.d.ts +1 -0
- package/dist/server.js +280 -59
- package/dist/server.js.map +15 -14
- package/dist/types.d.ts +5 -1
- package/dist/verification/types.d.ts +47 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1015,7 +1015,7 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
|
|
|
1015
1015
|
query: unknown;
|
|
1016
1016
|
headers: unknown;
|
|
1017
1017
|
response: {
|
|
1018
|
-
400:
|
|
1018
|
+
400: string;
|
|
1019
1019
|
401: "Authentication required";
|
|
1020
1020
|
501: "SMS MFA is not configured";
|
|
1021
1021
|
200: {
|
|
@@ -1030,6 +1030,8 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
|
|
|
1030
1030
|
property?: string;
|
|
1031
1031
|
expected?: string;
|
|
1032
1032
|
};
|
|
1033
|
+
429: string;
|
|
1034
|
+
503: string;
|
|
1033
1035
|
};
|
|
1034
1036
|
};
|
|
1035
1037
|
};
|
|
@@ -1043,7 +1045,7 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
|
|
|
1043
1045
|
query: unknown;
|
|
1044
1046
|
headers: unknown;
|
|
1045
1047
|
response: {
|
|
1046
|
-
400:
|
|
1048
|
+
400: string;
|
|
1047
1049
|
401: "Authentication required";
|
|
1048
1050
|
200: {
|
|
1049
1051
|
readonly status: "enrolled";
|
|
@@ -1057,7 +1059,8 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
|
|
|
1057
1059
|
property?: string;
|
|
1058
1060
|
expected?: string;
|
|
1059
1061
|
};
|
|
1060
|
-
429:
|
|
1062
|
+
429: string;
|
|
1063
|
+
503: string;
|
|
1061
1064
|
};
|
|
1062
1065
|
};
|
|
1063
1066
|
};
|
|
@@ -1073,7 +1076,7 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
|
|
|
1073
1076
|
query: unknown;
|
|
1074
1077
|
headers: unknown;
|
|
1075
1078
|
response: {
|
|
1076
|
-
400:
|
|
1079
|
+
400: string;
|
|
1077
1080
|
401: "SMS code expired" | "Too many attempts" | "No MFA challenge in progress" | "Invalid MFA code";
|
|
1078
1081
|
200: {
|
|
1079
1082
|
readonly status: "sent";
|
|
@@ -1089,6 +1092,8 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
|
|
|
1089
1092
|
property?: string;
|
|
1090
1093
|
expected?: string;
|
|
1091
1094
|
};
|
|
1095
|
+
429: string;
|
|
1096
|
+
503: string;
|
|
1092
1097
|
};
|
|
1093
1098
|
};
|
|
1094
1099
|
};
|
|
@@ -3486,6 +3491,7 @@ export { createNeonDatabase } from './stores/postgres';
|
|
|
3486
3491
|
export type { AnyPgDatabase } from './stores/postgres';
|
|
3487
3492
|
export * from './mfa/config';
|
|
3488
3493
|
export * from './mfa/types';
|
|
3494
|
+
export * from './verification/types';
|
|
3489
3495
|
export { consumeBackupCode, generateBackupCodes } from './mfa/backupCodes';
|
|
3490
3496
|
export { createMfaGate } from './mfa/gate';
|
|
3491
3497
|
export { mfaChallenge } from './mfa/challenge';
|
|
@@ -3555,7 +3561,7 @@ export { agentAuthPlugin, agentAuthChallenge } from './agents/routes';
|
|
|
3555
3561
|
export { resolveAgentPrincipal, agentHasScopes } from './agents/principal';
|
|
3556
3562
|
export { createOidcAgentCredentialVerifier } from './agents/oidcAdapter';
|
|
3557
3563
|
export { createInMemoryAgentDelegationStore, createInMemoryAgentIdentityRegistrationStore, createInMemoryAgentRegistrationStore } from './agents/inMemoryStores';
|
|
3558
|
-
export { agentDelegationsTable, agentIdentityRegistrationsTable, agentRegistrationsTable, createNeonAgentDelegationStore, createNeonAgentIdentityRegistrationStore, createNeonAgentRegistrationStore, createDrizzleAgentDelegationStore, createPostgresAgentDelegationStore, createPostgresAgentIdentityRegistrationStore, createPostgresAgentRegistrationStore } from './agents/postgresStores';
|
|
3564
|
+
export { agentDelegationsTable, agentDelegationsBunSqlTable, agentIdentityRegistrationsTable, agentIdentityRegistrationsBunSqlTable, agentRegistrationsTable, agentRegistrationsBunSqlTable, createBunSqlDrizzleAgentDelegationStore, createBunSqlDrizzleAgentIdentityRegistrationStore, createBunSqlDrizzleAgentRegistrationStore, createNeonAgentDelegationStore, createNeonAgentIdentityRegistrationStore, createNeonAgentRegistrationStore, createDrizzleAgentDelegationStore, createPostgresAgentDelegationStore, createPostgresAgentIdentityRegistrationStore, createPostgresAgentRegistrationStore } from './agents/postgresStores';
|
|
3559
3565
|
export { createInMemoryAccessTokenStore, createInMemoryApiClientStore, createInMemoryApiKeyStore } from './apikeys/inMemoryStores';
|
|
3560
3566
|
export { accessTokensTable, apiClientsTable, apiKeysTable, createNeonAccessTokenStore, createNeonApiClientStore, createNeonApiKeyStore, createPostgresAccessTokenStore, createPostgresApiClientStore, createPostgresApiKeyStore } from './apikeys/postgresStores';
|
|
3561
3567
|
export * from './oidc/config';
|