@finueva/auth 0.1.0 → 0.4.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.
@@ -0,0 +1,11 @@
1
+ //#region src/errors.d.ts
2
+ type AuthErrorCode = "invalid_credentials" | "authentication_required" | "request_origin_denied" | "invalid_invitation" | "invitation_unavailable" | "invitation_recipient_mismatch" | "email_verification_required" | "invalid_workspace_selection" | "organization_context_too_large" | "credential_rate_limited" | "state_conflict" | "access_denied" | "identity_authority_unavailable";
3
+ type AuthErrorStatus = 401 | 403 | 409 | 422 | 429 | 503;
4
+ declare class AuthError extends Error {
5
+ readonly code: AuthErrorCode;
6
+ readonly status: AuthErrorStatus;
7
+ readonly retryAfterSeconds?: number;
8
+ constructor(code: AuthErrorCode, status: AuthErrorStatus, retryAfterSeconds?: number);
9
+ }
10
+ //#endregion
11
+ export { AuthErrorCode as n, AuthErrorStatus as r, AuthError as t };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { a as AuthSession, c as DriveCredentialInput, d as SignInInput, i as AuthClientOptions, l as FinuevaAuthClient, n as AuthErrorCode, o as AuthUser, r as AuthErrorStatus, s as DriveCredential, t as AuthError, u as PersonalWorkspaceSelection } from "./errors-C-cHFWC7.js";
1
+ import { a as AuthPersistenceDriver, c as AuthUser, d as FinuevaAuthClient, f as InvitationAcceptance, g as WorkspaceSelection, h as SignInInput, i as AuthPersistence, l as DriveCredential, m as PersonalWorkspaceSelection, n as AuthClientOptions, o as AuthSession, p as OrganizationWorkspaceSelection, r as AuthOrganization, s as AuthState, t as AcceptInvitationInput, u as DriveCredentialInput } from "./types-zEqO1_r2.js";
2
+ import { n as AuthErrorCode, r as AuthErrorStatus, t as AuthError } from "./errors-Crd93Rah.js";
2
3
  //#region src/client.d.ts
3
4
  declare function createAuthClient(options: AuthClientOptions): FinuevaAuthClient;
4
5
  //#endregion
5
- export { type AuthClientOptions, AuthError, type AuthErrorCode, type AuthErrorStatus, type AuthSession, type AuthUser, type DriveCredential, type DriveCredentialInput, type FinuevaAuthClient, type PersonalWorkspaceSelection, type SignInInput, createAuthClient };
6
+ export { type AcceptInvitationInput, type AuthClientOptions, AuthError, type AuthErrorCode, type AuthErrorStatus, type AuthOrganization, type AuthPersistence, type AuthPersistenceDriver, type AuthSession, type AuthState, type AuthUser, type DriveCredential, type DriveCredentialInput, type FinuevaAuthClient, type InvitationAcceptance, type OrganizationWorkspaceSelection, type PersonalWorkspaceSelection, type SignInInput, type WorkspaceSelection, createAuthClient };