@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.
- 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 +97 -2
- package/dist/server.js +1126 -788
- 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 {
|
|
@@ -229,6 +258,69 @@ interface FinuevaDriveProvisioningAuth {
|
|
|
229
258
|
/** Service authority only. Never pass an incoming User request or session to this client. */
|
|
230
259
|
declare function createDriveProvisioningAuth(options: DriveProvisioningAuthOptions): FinuevaDriveProvisioningAuth;
|
|
231
260
|
//#endregion
|
|
261
|
+
//#region src/user-directory.d.ts
|
|
262
|
+
interface UserDirectoryEntry {
|
|
263
|
+
applicationId: string;
|
|
264
|
+
/** Opaque application-scoped identifier. This is not the canonical Auth User ID. */
|
|
265
|
+
userId: string;
|
|
266
|
+
/** Immutable application-scoped incarnation. A replacement User cannot inherit it. */
|
|
267
|
+
userGeneration: string;
|
|
268
|
+
lifecycle: "active" | "suspended" | "deleted";
|
|
269
|
+
}
|
|
270
|
+
interface UserDirectoryLookupInput {
|
|
271
|
+
applicationId: string;
|
|
272
|
+
userId: string;
|
|
273
|
+
userGeneration: string;
|
|
274
|
+
}
|
|
275
|
+
interface UserDirectoryListInput {
|
|
276
|
+
applicationId: string;
|
|
277
|
+
limit?: number;
|
|
278
|
+
cursor?: string;
|
|
279
|
+
}
|
|
280
|
+
interface UserDirectoryMembersInput extends UserDirectoryListInput {
|
|
281
|
+
organizationId: string;
|
|
282
|
+
organizationGeneration: string;
|
|
283
|
+
}
|
|
284
|
+
interface UserDirectoryResolveInput {
|
|
285
|
+
applicationId: string;
|
|
286
|
+
authUserId: string;
|
|
287
|
+
}
|
|
288
|
+
interface UserDirectoryPage {
|
|
289
|
+
users: UserDirectoryEntry[];
|
|
290
|
+
/** Only null means the collection is exhausted. */ nextCursor: string | null;
|
|
291
|
+
}
|
|
292
|
+
interface UserDirectoryMember {
|
|
293
|
+
user: UserDirectoryEntry;
|
|
294
|
+
role: "owner" | "admin" | "member";
|
|
295
|
+
membershipStatus: "active" | "suspended";
|
|
296
|
+
}
|
|
297
|
+
interface UserDirectoryMembersPage {
|
|
298
|
+
applicationId: string;
|
|
299
|
+
organizationId: string;
|
|
300
|
+
organizationGeneration: string;
|
|
301
|
+
members: UserDirectoryMember[];
|
|
302
|
+
nextCursor: string | null;
|
|
303
|
+
}
|
|
304
|
+
/** Private service authority. Never forward this object to an operator or browser. */
|
|
305
|
+
interface UserDirectoryBinding {
|
|
306
|
+
user: UserDirectoryEntry;
|
|
307
|
+
authUserId: string;
|
|
308
|
+
}
|
|
309
|
+
interface UserDirectoryAuthOptions {
|
|
310
|
+
authOrigin: string;
|
|
311
|
+
fetch?: typeof globalThis.fetch;
|
|
312
|
+
timeoutMs?: number;
|
|
313
|
+
}
|
|
314
|
+
interface FinuevaUserDirectoryAuth {
|
|
315
|
+
listUsers(input: UserDirectoryListInput, assertion: string): Promise<UserDirectoryPage>;
|
|
316
|
+
lookupUser(input: UserDirectoryLookupInput, assertion: string): Promise<UserDirectoryEntry | null>;
|
|
317
|
+
listOrganizationMembers(input: UserDirectoryMembersInput, assertion: string): Promise<UserDirectoryMembersPage>;
|
|
318
|
+
resolveUser(input: UserDirectoryResolveInput, assertion: string): Promise<UserDirectoryEntry | null>;
|
|
319
|
+
resolveUserBinding(input: UserDirectoryLookupInput, assertion: string): Promise<UserDirectoryBinding | null>;
|
|
320
|
+
}
|
|
321
|
+
/** Server-only service assertions. This client has no session authority and performs no automatic retry. */
|
|
322
|
+
declare function createUserDirectoryAuth(options: UserDirectoryAuthOptions): FinuevaUserDirectoryAuth;
|
|
323
|
+
//#endregion
|
|
232
324
|
//#region src/server.d.ts
|
|
233
325
|
interface ServerAuthOptions {
|
|
234
326
|
authOrigin: string;
|
|
@@ -260,6 +352,9 @@ interface FinuevaServerAuth {
|
|
|
260
352
|
applicationCredential: string;
|
|
261
353
|
}): Promise<OrganizationMemberApplicationAccess>;
|
|
262
354
|
getOrganizationMemberAuthority(organizationId: string, memberId: string): Promise<OrganizationMemberAuthority>;
|
|
355
|
+
/** Browser cookie session and exact registered app Origin required. Native bearer setup is not supported. */
|
|
356
|
+
getOrganizationApplicationRegistration(organizationId: string, applicationId: string): Promise<OrganizationApplicationRegistration>;
|
|
357
|
+
registerOrganizationApplication(organizationId: string, applicationId: string, input: RegisterOrganizationApplicationInput): Promise<RegisteredOrganizationApplication>;
|
|
263
358
|
createOrganization(name: string, slug: string, idempotencyKey: string): Promise<CreatedOrganization>;
|
|
264
359
|
createOrganizationTeam(organizationId: string, name: string, idempotencyKey: string): Promise<CreatedOrganizationTeam>;
|
|
265
360
|
createOrganizationMemberInvitation(organizationId: string, input: CreateOrganizationMemberInvitationInput): Promise<CreatedOrganizationMemberInvitation>;
|
|
@@ -290,4 +385,4 @@ interface FinuevaServerAuth {
|
|
|
290
385
|
}
|
|
291
386
|
declare function createServerAuth(options: ServerAuthOptions): FinuevaServerAuth;
|
|
292
387
|
//#endregion
|
|
293
|
-
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 };
|
|
388
|
+
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 FinuevaUserDirectoryAuth, 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 UserDirectoryAuthOptions, type UserDirectoryBinding, type UserDirectoryEntry, type UserDirectoryListInput, type UserDirectoryLookupInput, type UserDirectoryMember, type UserDirectoryMembersInput, type UserDirectoryMembersPage, type UserDirectoryPage, type UserDirectoryResolveInput, type WorkspaceSelection, createAccountProductOperationAuth, createDriveProvisioningAuth, createDriveRecipientAuth, createIdentityResolverAuth, createMembershipResolverAuth, createOrganizationDirectoryAuth, createServerAuth, createUserApiVerifier, createUserDirectoryAuth };
|