@finueva/auth 0.26.0 → 0.28.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/dist/device.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3676 -3586
- package/dist/server.d.ts +40 -4
- package/dist/server.js +1219 -1037
- package/dist/{types-rx4YxsoH.d.ts → types-B_5eALVZ.d.ts} +32 -1
- package/package.json +1 -1
package/dist/server.d.ts
CHANGED
|
@@ -1,4 +1,33 @@
|
|
|
1
|
-
import { $ as OrganizationWorkspaceSelection, B as OrganizationDisplay, C as CreatedOrganizationTeam, Ct as SocialIdTokenProvider, F as InvitationDecline, Ft as
|
|
1
|
+
import { $ as OrganizationWorkspaceSelection, B as OrganizationDisplay, Bt as AuthErrorCode, C as CreatedOrganizationTeam, Ct as SocialIdTokenProvider, F as InvitationDecline, Ft as OrganizationApplicationRegistration, G as OrganizationMemberPage, H as OrganizationInvitationPage, Ht as UserApiCredential, It as RegisterOrganizationApplicationInput, J as OrganizationPageInput, K as OrganizationMemberPageInput, Lt as RegisteredOrganizationApplication, Mt as UpdateOrganizationTeamDisplayInput, O as DriveCredential, P as InvitationAcceptance, Pt as WorkspaceSelection, Q as OrganizationTeamPage, Rt as OrganizationDirectoryEntry, S as CreatedOrganizationMemberInvitation, St as SocialIdTokenInput, T as DeletedOrganizationTeam, U as OrganizationMember, Ut as UserApiCredentialInput, V as OrganizationInvitation, Vt as AuthErrorStatus, W as OrganizationMemberAuthority, X as OrganizationTeamDisplay, Y as OrganizationTeam, Z as OrganizationTeamMemberPage, b as CreateOrganizationMemberInvitationInput, d as AuthUser, dt as ReceivedOrganizationInvitationPage, f as CanceledOrganizationInvitation, ht as ResentOrganizationInvitation, i as AuthOrganization, jt as UpdateOrganizationDisplayInput, k as DriveCredentialInput, mt as RemovedOrganizationTeamMember, n as AddedOrganizationTeamMember, nt as PersonalWorkspaceSelection, pt as RemovedOrganizationMember, q as OrganizationPage, s as AuthSession, t as AcceptInvitationInput, ut as ReceivedOrganizationInvitation, w as DeclineInvitationInput, x as CreatedOrganization, z as OrganizationDeparture, zt as AuthError } from "./types-B_5eALVZ.js";
|
|
2
|
+
//#region src/organization-directory/service.d.ts
|
|
3
|
+
interface OrganizationDirectoryLookupInput {
|
|
4
|
+
organizationId: string;
|
|
5
|
+
applicationId: string;
|
|
6
|
+
organizationGeneration: string;
|
|
7
|
+
}
|
|
8
|
+
interface OrganizationDirectorySearchInput {
|
|
9
|
+
applicationId: string;
|
|
10
|
+
query?: string;
|
|
11
|
+
limit?: number;
|
|
12
|
+
cursor?: string;
|
|
13
|
+
}
|
|
14
|
+
interface OrganizationDirectoryPage {
|
|
15
|
+
organizations: OrganizationDirectoryEntry[];
|
|
16
|
+
/** An empty page can have a continuation. Only null means the search is exhausted. */
|
|
17
|
+
nextCursor: string | null;
|
|
18
|
+
}
|
|
19
|
+
interface OrganizationDirectoryAuthOptions {
|
|
20
|
+
authOrigin: string;
|
|
21
|
+
fetch?: typeof globalThis.fetch;
|
|
22
|
+
timeoutMs?: number;
|
|
23
|
+
}
|
|
24
|
+
interface FinuevaOrganizationDirectoryAuth {
|
|
25
|
+
lookupOrganization(input: OrganizationDirectoryLookupInput, serviceAssertion: string): Promise<OrganizationDirectoryEntry | null>;
|
|
26
|
+
searchOrganizations(input: OrganizationDirectorySearchInput, serviceAssertion: string): Promise<OrganizationDirectoryPage>;
|
|
27
|
+
}
|
|
28
|
+
/** Server-only directory. A directory entry identifies an incarnation; it grants no membership or billing authority. */
|
|
29
|
+
declare function createOrganizationDirectoryAuth(options: OrganizationDirectoryAuthOptions): FinuevaOrganizationDirectoryAuth;
|
|
30
|
+
//#endregion
|
|
2
31
|
//#region src/product-operations/types.d.ts
|
|
3
32
|
type AccountProductOperationPhase = "snapshot" | "consume" | "receipt";
|
|
4
33
|
interface AccountProductOperationProof {
|
|
@@ -193,9 +222,13 @@ interface DriveRecipientAuthOptions {
|
|
|
193
222
|
fetch?: typeof globalThis.fetch;
|
|
194
223
|
timeoutMs?: number;
|
|
195
224
|
}
|
|
196
|
-
|
|
225
|
+
type ResolveDriveRecipientInput = {
|
|
197
226
|
email: string;
|
|
198
|
-
|
|
227
|
+
userId?: never;
|
|
228
|
+
} | {
|
|
229
|
+
userId: string;
|
|
230
|
+
email?: never;
|
|
231
|
+
};
|
|
199
232
|
interface DriveRecipient {
|
|
200
233
|
userId: string;
|
|
201
234
|
name: string;
|
|
@@ -256,6 +289,9 @@ interface FinuevaServerAuth {
|
|
|
256
289
|
applicationCredential: string;
|
|
257
290
|
}): Promise<OrganizationMemberApplicationAccess>;
|
|
258
291
|
getOrganizationMemberAuthority(organizationId: string, memberId: string): Promise<OrganizationMemberAuthority>;
|
|
292
|
+
/** Browser cookie session and exact registered app Origin required. Native bearer setup is not supported. */
|
|
293
|
+
getOrganizationApplicationRegistration(organizationId: string, applicationId: string): Promise<OrganizationApplicationRegistration>;
|
|
294
|
+
registerOrganizationApplication(organizationId: string, applicationId: string, input: RegisterOrganizationApplicationInput): Promise<RegisteredOrganizationApplication>;
|
|
259
295
|
createOrganization(name: string, slug: string, idempotencyKey: string): Promise<CreatedOrganization>;
|
|
260
296
|
createOrganizationTeam(organizationId: string, name: string, idempotencyKey: string): Promise<CreatedOrganizationTeam>;
|
|
261
297
|
createOrganizationMemberInvitation(organizationId: string, input: CreateOrganizationMemberInvitationInput): Promise<CreatedOrganizationMemberInvitation>;
|
|
@@ -286,4 +322,4 @@ interface FinuevaServerAuth {
|
|
|
286
322
|
}
|
|
287
323
|
declare function createServerAuth(options: ServerAuthOptions): FinuevaServerAuth;
|
|
288
324
|
//#endregion
|
|
289
|
-
export { type AcceptInvitationInput, type AccountProductOperationAuthOptions, type AccountProductOperationConsumer, type AccountProductOperationInput, type AccountProductOperationPhase, type AccountProductOperationProof, type AccountProductOperationReceipt, type AccountProductOperationSnapshot, type AccountProductOperationSnapshotInput, type AddedOrganizationTeamMember, AuthError, type AuthErrorCode, type AuthErrorStatus, type AuthOrganization, type AuthSession, type AuthUser, type CanceledOrganizationInvitation, type CompleteGoogleAccountRecoveryInput, type CreateOrganizationMemberInvitationInput, type CreatedOrganization, type CreatedOrganizationMemberInvitation, type CreatedOrganizationTeam, type DeclineInvitationInput, type DeletedOrganizationTeam, type DriveCredential, type DriveCredentialInput, type DriveProvisioningAuthOptions, type DriveProvisioningCredential, type DriveRecipient, type DriveRecipientAuthOptions, type FinuevaDriveProvisioningAuth, type FinuevaDriveRecipientAuth, type FinuevaIdentityResolverAuth, type FinuevaMembershipResolverAuth, FinuevaServerAuth, type GoogleAccountRecovery, type GoogleAccountRecoveryInput, type IdentityResolverAuthOptions, type InvitationAcceptance, type InvitationDecline, type MembershipResolverAuthOptions, type OrganizationDeparture, type OrganizationDisplay, type OrganizationInvitation, type OrganizationInvitationPage, type OrganizationMember, type OrganizationMemberApplicationAccess, type OrganizationMemberApplicationAccessInput, type OrganizationMemberAuthority, type OrganizationMemberPage, type OrganizationMemberPageInput, type OrganizationPage, type OrganizationPageInput, type OrganizationPresenceAuthorization, type OrganizationPresenceInput, type OrganizationTeam, type OrganizationTeamDisplay, type OrganizationTeamMemberPage, type OrganizationTeamPage, type OrganizationWorkspaceSelection, type PersonalWorkspaceSelection, type ReceivedOrganizationInvitation, type ReceivedOrganizationInvitationPage, type RemovedOrganizationMember, type RemovedOrganizationTeamMember, type ResentOrganizationInvitation, type ResolveDriveRecipientInput, type ResolveIdentityInput, type ResolveMembershipBatchInput, type ResolveMembershipInput, type ResolvedIdentity, type ResolvedMembership, type ResolvedMembershipBatch, type ResolvedMembershipRole, ServerAuthOptions, ServerInvitationAcceptance, ServerSignOutResult, ServerSocialIdTokenSession, type SocialIdTokenInput, type SocialIdTokenProvider, type UpdateOrganizationDisplayInput, type UpdateOrganizationTeamDisplayInput, type UserApiCredential, type UserApiCredentialInput, type UserApiIdentity, type UserApiVerifierOptions, type WorkspaceSelection, createAccountProductOperationAuth, createDriveProvisioningAuth, createDriveRecipientAuth, createIdentityResolverAuth, createMembershipResolverAuth, createServerAuth, createUserApiVerifier };
|
|
325
|
+
export { type AcceptInvitationInput, type AccountProductOperationAuthOptions, type AccountProductOperationConsumer, type AccountProductOperationInput, type AccountProductOperationPhase, type AccountProductOperationProof, type AccountProductOperationReceipt, type AccountProductOperationSnapshot, type AccountProductOperationSnapshotInput, type AddedOrganizationTeamMember, AuthError, type AuthErrorCode, type AuthErrorStatus, type AuthOrganization, type AuthSession, type AuthUser, type CanceledOrganizationInvitation, type CompleteGoogleAccountRecoveryInput, type CreateOrganizationMemberInvitationInput, type CreatedOrganization, type CreatedOrganizationMemberInvitation, type CreatedOrganizationTeam, type DeclineInvitationInput, type DeletedOrganizationTeam, type DriveCredential, type DriveCredentialInput, type DriveProvisioningAuthOptions, type DriveProvisioningCredential, type DriveRecipient, type DriveRecipientAuthOptions, type FinuevaDriveProvisioningAuth, type FinuevaDriveRecipientAuth, type FinuevaIdentityResolverAuth, type FinuevaMembershipResolverAuth, type FinuevaOrganizationDirectoryAuth, FinuevaServerAuth, type GoogleAccountRecovery, type GoogleAccountRecoveryInput, type IdentityResolverAuthOptions, type InvitationAcceptance, type InvitationDecline, type MembershipResolverAuthOptions, type OrganizationApplicationRegistration, type OrganizationDeparture, type OrganizationDirectoryAuthOptions, type OrganizationDirectoryEntry, type OrganizationDirectoryLookupInput, type OrganizationDirectoryPage, type OrganizationDirectorySearchInput, type OrganizationDisplay, type OrganizationInvitation, type OrganizationInvitationPage, type OrganizationMember, type OrganizationMemberApplicationAccess, type OrganizationMemberApplicationAccessInput, type OrganizationMemberAuthority, type OrganizationMemberPage, type OrganizationMemberPageInput, type OrganizationPage, type OrganizationPageInput, type OrganizationPresenceAuthorization, type OrganizationPresenceInput, type OrganizationTeam, type OrganizationTeamDisplay, type OrganizationTeamMemberPage, type OrganizationTeamPage, type OrganizationWorkspaceSelection, type PersonalWorkspaceSelection, type ReceivedOrganizationInvitation, type ReceivedOrganizationInvitationPage, type RegisterOrganizationApplicationInput, type RegisteredOrganizationApplication, type RemovedOrganizationMember, type RemovedOrganizationTeamMember, type ResentOrganizationInvitation, type ResolveDriveRecipientInput, type ResolveIdentityInput, type ResolveMembershipBatchInput, type ResolveMembershipInput, type ResolvedIdentity, type ResolvedMembership, type ResolvedMembershipBatch, type ResolvedMembershipRole, ServerAuthOptions, ServerInvitationAcceptance, ServerSignOutResult, ServerSocialIdTokenSession, type SocialIdTokenInput, type SocialIdTokenProvider, type UpdateOrganizationDisplayInput, type UpdateOrganizationTeamDisplayInput, type UserApiCredential, type UserApiCredentialInput, type UserApiIdentity, type UserApiVerifierOptions, type WorkspaceSelection, createAccountProductOperationAuth, createDriveProvisioningAuth, createDriveRecipientAuth, createIdentityResolverAuth, createMembershipResolverAuth, createOrganizationDirectoryAuth, createServerAuth, createUserApiVerifier };
|