@finueva/auth 0.27.0 → 0.29.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.
@@ -19,6 +19,34 @@ declare class AuthError extends Error {
19
19
  constructor(code: AuthErrorCode, status: AuthErrorStatus, retryAfterSeconds?: number);
20
20
  }
21
21
  //#endregion
22
+ //#region src/organization-directory/contract.d.ts
23
+ interface OrganizationDirectoryEntry {
24
+ organizationId: string;
25
+ applicationId: string;
26
+ organizationGeneration: string;
27
+ name: string;
28
+ lifecycle: "active" | "closing" | "deleted";
29
+ /** Milliseconds since the Unix epoch. */
30
+ registeredAt: number;
31
+ }
32
+ //#endregion
33
+ //#region src/organization-directory/registration.d.ts
34
+ interface OrganizationApplicationRegistration {
35
+ organizationId: string;
36
+ applicationId: string;
37
+ organizationGeneration: string;
38
+ name: string;
39
+ registered: boolean;
40
+ }
41
+ interface RegisterOrganizationApplicationInput {
42
+ organizationGeneration: string;
43
+ idempotencyKey: string;
44
+ }
45
+ interface RegisteredOrganizationApplication {
46
+ organization: OrganizationDirectoryEntry;
47
+ outcome: "registered" | "replayed";
48
+ }
49
+ //#endregion
22
50
  //#region src/types.d.ts
23
51
  interface AuthUser {
24
52
  id: string;
@@ -557,6 +585,9 @@ interface FinuevaAuthClient {
557
585
  listOrganizations(input?: OrganizationPageInput): Promise<OrganizationPage>;
558
586
  getOrganization(organizationId: string): Promise<AuthOrganization>;
559
587
  getOrganizationMemberAuthority(organizationId: string, memberId: string): Promise<OrganizationMemberAuthority>;
588
+ /** Browser cookie session and exact registered app Origin required. Native bearer setup is not supported. */
589
+ getOrganizationApplicationRegistration(organizationId: string, applicationId: string): Promise<OrganizationApplicationRegistration>;
590
+ registerOrganizationApplication(organizationId: string, applicationId: string, input: RegisterOrganizationApplicationInput): Promise<RegisteredOrganizationApplication>;
560
591
  createOrganization(name: string, slug: string, idempotencyKey: string): Promise<CreatedOrganization>;
561
592
  createOrganizationTeam(organizationId: string, name: string, idempotencyKey: string): Promise<CreatedOrganizationTeam>;
562
593
  createOrganizationMemberInvitation(organizationId: string, input: CreateOrganizationMemberInvitationInput): Promise<CreatedOrganizationMemberInvitation>;
@@ -658,4 +689,4 @@ interface FinuevaAuthClient {
658
689
  onSessionChange(listener: (session: AuthSession | null) => void): () => void;
659
690
  }
660
691
  //#endregion
661
- export { OrganizationWorkspaceSelection as $, EnterpriseConnection as A, UpdateEnterpriseConnectionInput as At, OrganizationDisplay as B, CreatedOrganizationTeam as C, SocialIdTokenProvider as Ct, DepartedOrganizationMemberPage as D, TwoFactorEnrollment as Dt, DepartedOrganizationMember as E, SuspendedOrganizationMemberStatus as Et, InvitationDecline as F, AuthError as Ft, OrganizationMemberPage as G, OrganizationInvitationPage as H, OrganizationClosure as I, AuthErrorCode as It, OrganizationPageInput as J, OrganizationMemberPageInput as K, OrganizationClosureCancelInput as L, AuthErrorStatus as Lt, EnterpriseConnectionSetup as M, UpdateOrganizationTeamDisplayInput as Mt, FinuevaAuthClient as N, UpdateProfileInput as Nt, DriveCredential as O, TwoFactorStatus as Ot, InvitationAcceptance as P, WorkspaceSelection as Pt, OrganizationTeamPage as Q, OrganizationClosureStartInput as R, UserApiCredential as Rt, CreatedOrganizationMemberInvitation as S, SocialIdTokenInput as St, DeletedOrganizationTeam as T, SuspendedOrganizationMemberPage as Tt, OrganizationMember as U, OrganizationInvitation as V, OrganizationMemberAuthority as W, OrganizationTeamDisplay as X, OrganizationTeam as Y, OrganizationTeamMemberPage as Z, ClosingOrganization as _, RotateScimCredentialInput as _t, AuthPersistence as a, PlatformRoleApplied as at, CreateOrganizationMemberInvitationInput as b, SendVerificationEmailInput as bt, AuthSessionInventory as c, PlatformRoleFirstApproval as ct, AuthUser as d, ReceivedOrganizationInvitationPage as dt, PasskeyInventory as et, CanceledOrganizationInvitation as f, RecentAuthenticationStatus as ft, CeremonyReturnInput as g, RestoredOrganizationMember as gt, CeremonyRecentAuthenticationRequest as h, ResentOrganizationInvitation as ht, AuthOrganization as i, PlatformRole as it, EnterpriseConnectionAction as j, UpdateOrganizationDisplayInput as jt, DriveCredentialInput as k, TwoFactorStepUpInput as kt, AuthSessionSummary as l, PlatformStatus as lt, CeremonyHandoffInput as m, RemovedOrganizationTeamMember as mt, AddedOrganizationTeamMember as n, PersonalWorkspaceSelection as nt, AuthPersistenceDriver as o, PlatformRoleApproval as ot, CeremonyHandoff as p, RemovedOrganizationMember as pt, OrganizationPage as q, AuthClientOptions as r, PlatformBootstrapRoleChangeInput as rt, AuthSession as s, PlatformRoleChangeRecentAuthenticationInput as st, AcceptInvitationInput as t, PasskeySummary as tt, AuthState as u, ReceivedOrganizationInvitation as ut, ClosingOrganizationList as v, ScimCredentialIssuance as vt, DeclineInvitationInput as w, SuspendedOrganizationMember as wt, CreatedOrganization as x, SignInInput as xt, CreateEnterpriseConnectionInput as y, ScimCredentialState as yt, OrganizationDeparture as z, UserApiCredentialInput as zt };
692
+ export { OrganizationWorkspaceSelection as $, EnterpriseConnection as A, UpdateEnterpriseConnectionInput as At, OrganizationDisplay as B, AuthErrorCode as Bt, CreatedOrganizationTeam as C, SocialIdTokenProvider as Ct, DepartedOrganizationMemberPage as D, TwoFactorEnrollment as Dt, DepartedOrganizationMember as E, SuspendedOrganizationMemberStatus as Et, InvitationDecline as F, OrganizationApplicationRegistration as Ft, OrganizationMemberPage as G, OrganizationInvitationPage as H, UserApiCredential as Ht, OrganizationClosure as I, RegisterOrganizationApplicationInput as It, OrganizationPageInput as J, OrganizationMemberPageInput as K, OrganizationClosureCancelInput as L, RegisteredOrganizationApplication as Lt, EnterpriseConnectionSetup as M, UpdateOrganizationTeamDisplayInput as Mt, FinuevaAuthClient as N, UpdateProfileInput as Nt, DriveCredential as O, TwoFactorStatus as Ot, InvitationAcceptance as P, WorkspaceSelection as Pt, OrganizationTeamPage as Q, OrganizationClosureStartInput as R, OrganizationDirectoryEntry as Rt, CreatedOrganizationMemberInvitation as S, SocialIdTokenInput as St, DeletedOrganizationTeam as T, SuspendedOrganizationMemberPage as Tt, OrganizationMember as U, UserApiCredentialInput as Ut, OrganizationInvitation as V, AuthErrorStatus as Vt, OrganizationMemberAuthority as W, OrganizationTeamDisplay as X, OrganizationTeam as Y, OrganizationTeamMemberPage as Z, ClosingOrganization as _, RotateScimCredentialInput as _t, AuthPersistence as a, PlatformRoleApplied as at, CreateOrganizationMemberInvitationInput as b, SendVerificationEmailInput as bt, AuthSessionInventory as c, PlatformRoleFirstApproval as ct, AuthUser as d, ReceivedOrganizationInvitationPage as dt, PasskeyInventory as et, CanceledOrganizationInvitation as f, RecentAuthenticationStatus as ft, CeremonyReturnInput as g, RestoredOrganizationMember as gt, CeremonyRecentAuthenticationRequest as h, ResentOrganizationInvitation as ht, AuthOrganization as i, PlatformRole as it, EnterpriseConnectionAction as j, UpdateOrganizationDisplayInput as jt, DriveCredentialInput as k, TwoFactorStepUpInput as kt, AuthSessionSummary as l, PlatformStatus as lt, CeremonyHandoffInput as m, RemovedOrganizationTeamMember as mt, AddedOrganizationTeamMember as n, PersonalWorkspaceSelection as nt, AuthPersistenceDriver as o, PlatformRoleApproval as ot, CeremonyHandoff as p, RemovedOrganizationMember as pt, OrganizationPage as q, AuthClientOptions as r, PlatformBootstrapRoleChangeInput as rt, AuthSession as s, PlatformRoleChangeRecentAuthenticationInput as st, AcceptInvitationInput as t, PasskeySummary as tt, AuthState as u, ReceivedOrganizationInvitation as ut, ClosingOrganizationList as v, ScimCredentialIssuance as vt, DeclineInvitationInput as w, SuspendedOrganizationMember as wt, CreatedOrganization as x, SignInInput as xt, CreateEnterpriseConnectionInput as y, ScimCredentialState as yt, OrganizationDeparture as z, AuthError as zt };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finueva/auth",
3
- "version": "0.27.0",
3
+ "version": "0.29.0",
4
4
  "description": "Public browser and server SDK for Finueva Auth",
5
5
  "type": "module",
6
6
  "sideEffects": false,