@absolutejs/auth 0.27.0-beta.0 → 0.27.0-beta.1

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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Elysia } from 'elysia';
2
2
  import type { AuthHtmxUser } from './htmx/types';
3
3
  import { AuthConfig } from './types';
4
- export declare const auth: <UserType>({ providersConfiguration, authorizeRoute, callbackRoute, profileRoute, signoutRoute, statusRoute, refreshRoute, revokeRoute, cleanupIntervalMs, maxSessions, sessionDurationMs, authSessionStore, audit, credentials, mfa, passwordless, lockout, sessions, sso, scim, organizations, roles, portal, authorization, compliance, webauthn, webhooks, htmx, resolveAuthIntent, onAuthorizeSuccess, onAuthorizeError, onProfileSuccess, onProfileError, onCallbackSuccess, onLinkIdentity, onLinkIdentityConflict, onLinkConnector, onCallbackError, onStatus, onRefreshSuccess, onRefreshError, onSignOut, onRevocationSuccess, onRevocationError, onSessionCleanup }: AuthConfig<UserType>) => Promise<Elysia<"", {
4
+ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute, callbackRoute, profileRoute, signoutRoute, statusRoute, refreshRoute, revokeRoute, cleanupIntervalMs, maxSessions, sessionDurationMs, authSessionStore, audit, credentials, mfa, passwordless, lockout, sessions, sso, scim, apikeys, organizations, roles, portal, authorization, compliance, webauthn, webhooks, htmx, resolveAuthIntent, onAuthorizeSuccess, onAuthorizeError, onProfileSuccess, onProfileError, onCallbackSuccess, onLinkIdentity, onLinkIdentityConflict, onLinkConnector, onCallbackError, onStatus, onRefreshSuccess, onRefreshError, onSignOut, onRevocationSuccess, onRevocationError, onSessionCleanup }: AuthConfig<UserType>) => Promise<Elysia<"", {
5
5
  decorator: {};
6
6
  store: {
7
7
  session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<unknown>;
@@ -6300,7 +6300,7 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
6300
6300
  readonly message: "User is not authenticated";
6301
6301
  }) => AuthFailReturn) | undefined) => Promise<import("elysia").ElysiaCustomStatusResponse<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn>>;
6302
6302
  }>;
6303
- })), ((((((((((((((((((({
6303
+ })), (((((((((((((((((((({
6304
6304
  [x: string]: {
6305
6305
  delete: {
6306
6306
  body: unknown;
@@ -7273,7 +7273,33 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
7273
7273
  };
7274
7274
  };
7275
7275
  };
7276
- }))) & ({} | ({
7276
+ }))) & ({} | {
7277
+ [x: string]: {
7278
+ post: {
7279
+ body: {
7280
+ client_id?: string | undefined;
7281
+ client_secret?: string | undefined;
7282
+ grant_type?: string | undefined;
7283
+ scope?: string | undefined;
7284
+ };
7285
+ params: {};
7286
+ query: unknown;
7287
+ headers: unknown;
7288
+ response: {
7289
+ 200: Response;
7290
+ 422: {
7291
+ type: "validation";
7292
+ on: string;
7293
+ summary?: string;
7294
+ message?: string;
7295
+ found?: unknown;
7296
+ property?: string;
7297
+ expected?: string;
7298
+ };
7299
+ };
7300
+ };
7301
+ };
7302
+ })) & ({} | ({
7277
7303
  [x: string]: {
7278
7304
  get: {
7279
7305
  body: unknown;
@@ -7674,8 +7700,8 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
7674
7700
  oidc: {
7675
7701
  put: {
7676
7702
  body: {
7677
- redirectUri?: string | undefined;
7678
7703
  scopes?: string[] | undefined;
7704
+ redirectUri?: string | undefined;
7679
7705
  issuer: string;
7680
7706
  clientId: string;
7681
7707
  clientSecret: string;
@@ -8439,6 +8465,15 @@ export * from './scim/config';
8439
8465
  export { scimRoutes } from './scim/routes';
8440
8466
  export { createInMemoryScimTokenStore } from './scim/inMemoryScimTokenStore';
8441
8467
  export { createNeonScimTokenStore, createPostgresScimTokenStore, scimTokensTable } from './scim/postgresScimTokenStore';
8468
+ export * from './apikeys/config';
8469
+ export * from './apikeys/types';
8470
+ export { apiKeysRoutes } from './apikeys/routes';
8471
+ export { createInMemoryAccessTokenStore, createInMemoryApiClientStore, createInMemoryApiKeyStore } from './apikeys/inMemoryStores';
8472
+ export { accessTokensTable, apiClientsTable, apiKeysTable, createNeonAccessTokenStore, createNeonApiClientStore, createNeonApiKeyStore, createPostgresAccessTokenStore, createPostgresApiClientStore, createPostgresApiKeyStore } from './apikeys/postgresStores';
8473
+ export * from './adaptive/config';
8474
+ export * from './adaptive/types';
8475
+ export { createInMemoryKnownDeviceStore, createInMemoryLoginHistoryStore } from './adaptive/inMemoryStores';
8476
+ export { createNeonKnownDeviceStore, createNeonLoginHistoryStore, createPostgresKnownDeviceStore, createPostgresLoginHistoryStore, knownDevicesTable, loginHistoryTable } from './adaptive/postgresStores';
8442
8477
  export { ssoDiscoveryRoute } from './sso/discoveryRoute';
8443
8478
  export { oidcSsoRoutes } from './sso/oidcRoutes';
8444
8479
  export { samlSsoRoutes } from './sso/samlRoutes';