@progalaxyelabs/ngx-stonescriptphp-client 1.17.1 → 1.18.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/index.d.ts
CHANGED
|
@@ -417,6 +417,46 @@ declare class StoneScriptPHPAuth implements AuthPlugin {
|
|
|
417
417
|
}>;
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
+
interface ProgalaxyElabsAuthConfig {
|
|
421
|
+
host: string;
|
|
422
|
+
platformCode: string;
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Auth plugin for progalaxyelabs-auth (Rust/Axum).
|
|
426
|
+
*
|
|
427
|
+
* Speaks the Rust auth server's native format:
|
|
428
|
+
* - Login: { access_token, refresh_token, identity, membership, ... }
|
|
429
|
+
* - Tenant selection: { requires_tenant_selection, selection_token, memberships }
|
|
430
|
+
* - New identity: { access_token, identity, is_new_identity, memberships:[] }
|
|
431
|
+
* - select-tenant: Bearer header + { tenant_id } body
|
|
432
|
+
* - refresh: { access_token, refresh_token } body mode
|
|
433
|
+
*/
|
|
434
|
+
declare class ProgalaxyElabsAuth implements AuthPlugin {
|
|
435
|
+
private config;
|
|
436
|
+
constructor(config: ProgalaxyElabsAuthConfig);
|
|
437
|
+
private get host();
|
|
438
|
+
login(email: string, password: string): Promise<AuthResult>;
|
|
439
|
+
register(email: string, password: string, displayName: string): Promise<AuthResult>;
|
|
440
|
+
logout(refreshToken?: string): Promise<void>;
|
|
441
|
+
checkSession(): Promise<AuthResult>;
|
|
442
|
+
refresh(accessToken: string, refreshToken?: string): Promise<string | null>;
|
|
443
|
+
selectTenant(tenantId: string, selectionToken: string): Promise<AuthResult>;
|
|
444
|
+
getTenantMemberships(accessToken: string): Promise<TenantMembership[]>;
|
|
445
|
+
checkTenantSlugAvailable(slug: string): Promise<{
|
|
446
|
+
available: boolean;
|
|
447
|
+
suggestion?: string;
|
|
448
|
+
}>;
|
|
449
|
+
checkOnboardingStatus(identityId: string, platformCode?: string): Promise<any>;
|
|
450
|
+
checkEmail(email: string): Promise<{
|
|
451
|
+
exists: boolean;
|
|
452
|
+
user?: any;
|
|
453
|
+
}>;
|
|
454
|
+
loginWithProvider(provider: string): Promise<AuthResult>;
|
|
455
|
+
private handleLoginResponse;
|
|
456
|
+
private toUser;
|
|
457
|
+
private toMembership;
|
|
458
|
+
}
|
|
459
|
+
|
|
420
460
|
declare class TokenService {
|
|
421
461
|
private accessToken;
|
|
422
462
|
private refreshToken;
|
|
@@ -1114,5 +1154,5 @@ declare class TenantRegisterDialogComponent {
|
|
|
1114
1154
|
static ɵcmp: i0.ɵɵComponentDeclaration<TenantRegisterDialogComponent, "lib-tenant-register-dialog", never, {}, {}, never, never, true, never>;
|
|
1115
1155
|
}
|
|
1116
1156
|
|
|
1117
|
-
export { AUTH_PLUGIN, ApiConnectionService, ApiResponse, AuthPageComponent, AuthService, CsrfService, DbService, FilesService, LoginDialogComponent, MyEnvironmentModel, ProviderRegistryService, RegisterComponent, SigninStatusService, StoneScriptPHPAuth, TenantLoginComponent, TenantLoginDialogComponent, TenantRegisterComponent, TenantRegisterDialogComponent, TokenService, VerifyStatus, provideNgxStoneScriptPhpClient };
|
|
1118
|
-
export type { AuthConfig, AuthMode, AuthPlugin, AuthProvider, AuthResponseMap, AuthResult, AuthServerConfig, BuiltInProvider, FileDeleteResponse, FileListResponse, FileMetadata, FileUploadResponse, FileUploadResult, OAuthProviderConfig, OnboardingNeededEvent, StoneScriptPHPAuthConfig, TenantCreatedEvent, TenantMembership, TenantRegisterRequestEvent, TenantSelectedEvent, User };
|
|
1157
|
+
export { AUTH_PLUGIN, ApiConnectionService, ApiResponse, AuthPageComponent, AuthService, CsrfService, DbService, FilesService, LoginDialogComponent, MyEnvironmentModel, ProgalaxyElabsAuth, ProviderRegistryService, RegisterComponent, SigninStatusService, StoneScriptPHPAuth, TenantLoginComponent, TenantLoginDialogComponent, TenantRegisterComponent, TenantRegisterDialogComponent, TokenService, VerifyStatus, provideNgxStoneScriptPhpClient };
|
|
1158
|
+
export type { AuthConfig, AuthMode, AuthPlugin, AuthProvider, AuthResponseMap, AuthResult, AuthServerConfig, BuiltInProvider, FileDeleteResponse, FileListResponse, FileMetadata, FileUploadResponse, FileUploadResult, OAuthProviderConfig, OnboardingNeededEvent, ProgalaxyElabsAuthConfig, StoneScriptPHPAuthConfig, TenantCreatedEvent, TenantMembership, TenantRegisterRequestEvent, TenantSelectedEvent, User };
|