@feelflow/ffid-sdk 5.5.0 → 5.6.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/{chunk-WNYMSUHN.js → chunk-4SJKXEYB.js} +1 -1
- package/dist/{chunk-JKP3MBTT.cjs → chunk-WGSEZSZI.cjs} +1 -1
- package/dist/components/index.cjs +8 -8
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{ffid-client-w1s-JnFf.d.ts → ffid-client-BXl7Dop7.d.ts} +61 -53
- package/dist/{ffid-client-CARfFhtf.d.cts → ffid-client-CmxQxkoK.d.cts} +61 -53
- package/dist/{index-lAvUS_oz.d.cts → index-_oO5sHjX.d.cts} +1 -54
- package/dist/{index-lAvUS_oz.d.ts → index-_oO5sHjX.d.ts} +1 -54
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +64 -3
- package/dist/index.d.ts +64 -3
- package/dist/index.js +2 -2
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.cts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +1 -1
- package/dist/server/test/index.d.cts +1 -1
- package/dist/server/test/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -840,7 +840,7 @@ function createProfileMethods(deps) {
|
|
|
840
840
|
}
|
|
841
841
|
|
|
842
842
|
// src/client/version-check.ts
|
|
843
|
-
var SDK_VERSION = "5.
|
|
843
|
+
var SDK_VERSION = "5.6.0";
|
|
844
844
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
845
845
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
846
846
|
function sdkHeaders() {
|
|
@@ -842,7 +842,7 @@ function createProfileMethods(deps) {
|
|
|
842
842
|
}
|
|
843
843
|
|
|
844
844
|
// src/client/version-check.ts
|
|
845
|
-
var SDK_VERSION = "5.
|
|
845
|
+
var SDK_VERSION = "5.6.0";
|
|
846
846
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
847
847
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
848
848
|
function sdkHeaders() {
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWGSEZSZI_cjs = require('../chunk-WGSEZSZI.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "FFIDAnnouncementBadge", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDAnnouncementBadge; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDAnnouncementList; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDInquiryForm; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDLoginButton; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDOrganizationSwitcher; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDSubscriptionBadge; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDUserMenu; }
|
|
34
34
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { M as FFIDAnnouncementBadge, al as FFIDAnnouncementBadgeClassNames, am as FFIDAnnouncementBadgeProps, N as FFIDAnnouncementList, an as FFIDAnnouncementListClassNames, ao as FFIDAnnouncementListProps, V as FFIDInquiryForm, W as FFIDInquiryFormCategoryItem, X as FFIDInquiryFormClassNames, Y as FFIDInquiryFormLegalLayout, Z as FFIDInquiryFormOrganization, _ as FFIDInquiryFormPlaceholderContext, $ as FFIDInquiryFormPrefill, a0 as FFIDInquiryFormProps, a1 as FFIDInquiryFormSubmitData, a2 as FFIDInquiryFormSubmitResult, a4 as FFIDLoginButton, ap as FFIDLoginButtonProps, a7 as FFIDOrganizationSwitcher, aq as FFIDOrganizationSwitcherClassNames, ar as FFIDOrganizationSwitcherProps, ac as FFIDSubscriptionBadge, as as FFIDSubscriptionBadgeClassNames, at as FFIDSubscriptionBadgeProps, ae as FFIDUserMenu, au as FFIDUserMenuClassNames, av as FFIDUserMenuProps } from '../index-_oO5sHjX.cjs';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { M as FFIDAnnouncementBadge, al as FFIDAnnouncementBadgeClassNames, am as FFIDAnnouncementBadgeProps, N as FFIDAnnouncementList, an as FFIDAnnouncementListClassNames, ao as FFIDAnnouncementListProps, V as FFIDInquiryForm, W as FFIDInquiryFormCategoryItem, X as FFIDInquiryFormClassNames, Y as FFIDInquiryFormLegalLayout, Z as FFIDInquiryFormOrganization, _ as FFIDInquiryFormPlaceholderContext, $ as FFIDInquiryFormPrefill, a0 as FFIDInquiryFormProps, a1 as FFIDInquiryFormSubmitData, a2 as FFIDInquiryFormSubmitResult, a4 as FFIDLoginButton, ap as FFIDLoginButtonProps, a7 as FFIDOrganizationSwitcher, aq as FFIDOrganizationSwitcherClassNames, ar as FFIDOrganizationSwitcherProps, ac as FFIDSubscriptionBadge, as as FFIDSubscriptionBadgeClassNames, at as FFIDSubscriptionBadgeProps, ae as FFIDUserMenu, au as FFIDUserMenuClassNames, av as FFIDUserMenuProps } from '../index-_oO5sHjX.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDSubscriptionBadge, FFIDUserMenu } from '../chunk-
|
|
1
|
+
export { FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDSubscriptionBadge, FFIDUserMenu } from '../chunk-4SJKXEYB.js';
|
|
@@ -576,6 +576,67 @@ interface FFIDSeatChangePreviewResponse {
|
|
|
576
576
|
preview: FFIDSeatChangePreview;
|
|
577
577
|
}
|
|
578
578
|
|
|
579
|
+
/** Member role in an organization */
|
|
580
|
+
type FFIDMemberRole = 'owner' | 'admin' | 'member' | 'viewer';
|
|
581
|
+
/** Member role assignable through organization member management APIs */
|
|
582
|
+
type FFIDAssignableMemberRole = Exclude<FFIDMemberRole, 'owner'>;
|
|
583
|
+
/** Member status in an organization */
|
|
584
|
+
type FFIDMemberStatus = 'active' | 'invited' | 'suspended';
|
|
585
|
+
/** Organization member returned by the ext members API */
|
|
586
|
+
interface FFIDOrganizationMember {
|
|
587
|
+
/** User ID (UUID) */
|
|
588
|
+
userId: string;
|
|
589
|
+
/** Email address */
|
|
590
|
+
email: string;
|
|
591
|
+
/** Display name */
|
|
592
|
+
displayName: string | null;
|
|
593
|
+
/** Avatar URL */
|
|
594
|
+
avatarUrl: string | null;
|
|
595
|
+
/** Role in the organization */
|
|
596
|
+
role: FFIDMemberRole;
|
|
597
|
+
/** Membership status */
|
|
598
|
+
status: FFIDMemberStatus;
|
|
599
|
+
/**
|
|
600
|
+
* Whether the member's email address is confirmed.
|
|
601
|
+
*
|
|
602
|
+
* `null` means FFID could not determine the auth user confirmation state
|
|
603
|
+
* (for example, the auth user row was not readable).
|
|
604
|
+
*/
|
|
605
|
+
emailVerified: boolean | null;
|
|
606
|
+
/** When the user joined */
|
|
607
|
+
joinedAt: string | null;
|
|
608
|
+
/** When the user was invited */
|
|
609
|
+
invitedAt: string | null;
|
|
610
|
+
/** Last sign-in timestamp */
|
|
611
|
+
lastSignInAt: string | null;
|
|
612
|
+
}
|
|
613
|
+
/** Response from listMembers (ext) */
|
|
614
|
+
interface FFIDListMembersResponse {
|
|
615
|
+
organizationId: string;
|
|
616
|
+
members: FFIDOrganizationMember[];
|
|
617
|
+
}
|
|
618
|
+
/** Request body for addMember (ext) */
|
|
619
|
+
interface FFIDAddMemberRequest {
|
|
620
|
+
email: string;
|
|
621
|
+
role?: FFIDAssignableMemberRole;
|
|
622
|
+
}
|
|
623
|
+
/** Params object for addMember (ext), matching the existing organization members methods */
|
|
624
|
+
interface FFIDAddMemberParams extends FFIDAddMemberRequest {
|
|
625
|
+
organizationId: string;
|
|
626
|
+
}
|
|
627
|
+
/** Response from addMember (ext) */
|
|
628
|
+
interface FFIDAddMemberResponse {
|
|
629
|
+
member: FFIDOrganizationMember;
|
|
630
|
+
}
|
|
631
|
+
/** Response from updateMemberRole (ext) */
|
|
632
|
+
interface FFIDUpdateMemberRoleResponse {
|
|
633
|
+
member: FFIDOrganizationMember;
|
|
634
|
+
}
|
|
635
|
+
/** Response from removeMember (ext) */
|
|
636
|
+
interface FFIDRemoveMemberResponse {
|
|
637
|
+
message: string;
|
|
638
|
+
}
|
|
639
|
+
|
|
579
640
|
/**
|
|
580
641
|
* FFID SDK Type Definitions
|
|
581
642
|
*
|
|
@@ -900,59 +961,6 @@ interface FFIDCreatePortalParams {
|
|
|
900
961
|
returnUrl: string;
|
|
901
962
|
}
|
|
902
963
|
|
|
903
|
-
/** Member role in an organization */
|
|
904
|
-
type FFIDMemberRole = 'owner' | 'admin' | 'member' | 'viewer';
|
|
905
|
-
/** Member role assignable through organization member management APIs */
|
|
906
|
-
type FFIDAssignableMemberRole = Exclude<FFIDMemberRole, 'owner'>;
|
|
907
|
-
/** Member status in an organization */
|
|
908
|
-
type FFIDMemberStatus = 'active' | 'invited' | 'suspended';
|
|
909
|
-
/** Organization member returned by the ext members API */
|
|
910
|
-
interface FFIDOrganizationMember {
|
|
911
|
-
/** User ID (UUID) */
|
|
912
|
-
userId: string;
|
|
913
|
-
/** Email address */
|
|
914
|
-
email: string;
|
|
915
|
-
/** Display name */
|
|
916
|
-
displayName: string | null;
|
|
917
|
-
/** Avatar URL */
|
|
918
|
-
avatarUrl: string | null;
|
|
919
|
-
/** Role in the organization */
|
|
920
|
-
role: FFIDMemberRole;
|
|
921
|
-
/** Membership status */
|
|
922
|
-
status: FFIDMemberStatus;
|
|
923
|
-
/** When the user joined */
|
|
924
|
-
joinedAt: string | null;
|
|
925
|
-
/** When the user was invited */
|
|
926
|
-
invitedAt: string | null;
|
|
927
|
-
/** Last sign-in timestamp */
|
|
928
|
-
lastSignInAt: string | null;
|
|
929
|
-
}
|
|
930
|
-
/** Response from listMembers (ext) */
|
|
931
|
-
interface FFIDListMembersResponse {
|
|
932
|
-
organizationId: string;
|
|
933
|
-
members: FFIDOrganizationMember[];
|
|
934
|
-
}
|
|
935
|
-
/** Request body for addMember (ext) */
|
|
936
|
-
interface FFIDAddMemberRequest {
|
|
937
|
-
email: string;
|
|
938
|
-
role?: FFIDAssignableMemberRole;
|
|
939
|
-
}
|
|
940
|
-
/** Params object for addMember (ext), matching the existing organization members methods */
|
|
941
|
-
interface FFIDAddMemberParams extends FFIDAddMemberRequest {
|
|
942
|
-
organizationId: string;
|
|
943
|
-
}
|
|
944
|
-
/** Response from addMember (ext) */
|
|
945
|
-
interface FFIDAddMemberResponse {
|
|
946
|
-
member: FFIDOrganizationMember;
|
|
947
|
-
}
|
|
948
|
-
/** Response from updateMemberRole (ext) */
|
|
949
|
-
interface FFIDUpdateMemberRoleResponse {
|
|
950
|
-
member: FFIDOrganizationMember;
|
|
951
|
-
}
|
|
952
|
-
/** Response from removeMember (ext) */
|
|
953
|
-
interface FFIDRemoveMemberResponse {
|
|
954
|
-
message: string;
|
|
955
|
-
}
|
|
956
964
|
/**
|
|
957
965
|
* User profile for the authenticated user (returned by `getProfile` / `updateProfile`).
|
|
958
966
|
*
|
|
@@ -576,6 +576,67 @@ interface FFIDSeatChangePreviewResponse {
|
|
|
576
576
|
preview: FFIDSeatChangePreview;
|
|
577
577
|
}
|
|
578
578
|
|
|
579
|
+
/** Member role in an organization */
|
|
580
|
+
type FFIDMemberRole = 'owner' | 'admin' | 'member' | 'viewer';
|
|
581
|
+
/** Member role assignable through organization member management APIs */
|
|
582
|
+
type FFIDAssignableMemberRole = Exclude<FFIDMemberRole, 'owner'>;
|
|
583
|
+
/** Member status in an organization */
|
|
584
|
+
type FFIDMemberStatus = 'active' | 'invited' | 'suspended';
|
|
585
|
+
/** Organization member returned by the ext members API */
|
|
586
|
+
interface FFIDOrganizationMember {
|
|
587
|
+
/** User ID (UUID) */
|
|
588
|
+
userId: string;
|
|
589
|
+
/** Email address */
|
|
590
|
+
email: string;
|
|
591
|
+
/** Display name */
|
|
592
|
+
displayName: string | null;
|
|
593
|
+
/** Avatar URL */
|
|
594
|
+
avatarUrl: string | null;
|
|
595
|
+
/** Role in the organization */
|
|
596
|
+
role: FFIDMemberRole;
|
|
597
|
+
/** Membership status */
|
|
598
|
+
status: FFIDMemberStatus;
|
|
599
|
+
/**
|
|
600
|
+
* Whether the member's email address is confirmed.
|
|
601
|
+
*
|
|
602
|
+
* `null` means FFID could not determine the auth user confirmation state
|
|
603
|
+
* (for example, the auth user row was not readable).
|
|
604
|
+
*/
|
|
605
|
+
emailVerified: boolean | null;
|
|
606
|
+
/** When the user joined */
|
|
607
|
+
joinedAt: string | null;
|
|
608
|
+
/** When the user was invited */
|
|
609
|
+
invitedAt: string | null;
|
|
610
|
+
/** Last sign-in timestamp */
|
|
611
|
+
lastSignInAt: string | null;
|
|
612
|
+
}
|
|
613
|
+
/** Response from listMembers (ext) */
|
|
614
|
+
interface FFIDListMembersResponse {
|
|
615
|
+
organizationId: string;
|
|
616
|
+
members: FFIDOrganizationMember[];
|
|
617
|
+
}
|
|
618
|
+
/** Request body for addMember (ext) */
|
|
619
|
+
interface FFIDAddMemberRequest {
|
|
620
|
+
email: string;
|
|
621
|
+
role?: FFIDAssignableMemberRole;
|
|
622
|
+
}
|
|
623
|
+
/** Params object for addMember (ext), matching the existing organization members methods */
|
|
624
|
+
interface FFIDAddMemberParams extends FFIDAddMemberRequest {
|
|
625
|
+
organizationId: string;
|
|
626
|
+
}
|
|
627
|
+
/** Response from addMember (ext) */
|
|
628
|
+
interface FFIDAddMemberResponse {
|
|
629
|
+
member: FFIDOrganizationMember;
|
|
630
|
+
}
|
|
631
|
+
/** Response from updateMemberRole (ext) */
|
|
632
|
+
interface FFIDUpdateMemberRoleResponse {
|
|
633
|
+
member: FFIDOrganizationMember;
|
|
634
|
+
}
|
|
635
|
+
/** Response from removeMember (ext) */
|
|
636
|
+
interface FFIDRemoveMemberResponse {
|
|
637
|
+
message: string;
|
|
638
|
+
}
|
|
639
|
+
|
|
579
640
|
/**
|
|
580
641
|
* FFID SDK Type Definitions
|
|
581
642
|
*
|
|
@@ -900,59 +961,6 @@ interface FFIDCreatePortalParams {
|
|
|
900
961
|
returnUrl: string;
|
|
901
962
|
}
|
|
902
963
|
|
|
903
|
-
/** Member role in an organization */
|
|
904
|
-
type FFIDMemberRole = 'owner' | 'admin' | 'member' | 'viewer';
|
|
905
|
-
/** Member role assignable through organization member management APIs */
|
|
906
|
-
type FFIDAssignableMemberRole = Exclude<FFIDMemberRole, 'owner'>;
|
|
907
|
-
/** Member status in an organization */
|
|
908
|
-
type FFIDMemberStatus = 'active' | 'invited' | 'suspended';
|
|
909
|
-
/** Organization member returned by the ext members API */
|
|
910
|
-
interface FFIDOrganizationMember {
|
|
911
|
-
/** User ID (UUID) */
|
|
912
|
-
userId: string;
|
|
913
|
-
/** Email address */
|
|
914
|
-
email: string;
|
|
915
|
-
/** Display name */
|
|
916
|
-
displayName: string | null;
|
|
917
|
-
/** Avatar URL */
|
|
918
|
-
avatarUrl: string | null;
|
|
919
|
-
/** Role in the organization */
|
|
920
|
-
role: FFIDMemberRole;
|
|
921
|
-
/** Membership status */
|
|
922
|
-
status: FFIDMemberStatus;
|
|
923
|
-
/** When the user joined */
|
|
924
|
-
joinedAt: string | null;
|
|
925
|
-
/** When the user was invited */
|
|
926
|
-
invitedAt: string | null;
|
|
927
|
-
/** Last sign-in timestamp */
|
|
928
|
-
lastSignInAt: string | null;
|
|
929
|
-
}
|
|
930
|
-
/** Response from listMembers (ext) */
|
|
931
|
-
interface FFIDListMembersResponse {
|
|
932
|
-
organizationId: string;
|
|
933
|
-
members: FFIDOrganizationMember[];
|
|
934
|
-
}
|
|
935
|
-
/** Request body for addMember (ext) */
|
|
936
|
-
interface FFIDAddMemberRequest {
|
|
937
|
-
email: string;
|
|
938
|
-
role?: FFIDAssignableMemberRole;
|
|
939
|
-
}
|
|
940
|
-
/** Params object for addMember (ext), matching the existing organization members methods */
|
|
941
|
-
interface FFIDAddMemberParams extends FFIDAddMemberRequest {
|
|
942
|
-
organizationId: string;
|
|
943
|
-
}
|
|
944
|
-
/** Response from addMember (ext) */
|
|
945
|
-
interface FFIDAddMemberResponse {
|
|
946
|
-
member: FFIDOrganizationMember;
|
|
947
|
-
}
|
|
948
|
-
/** Response from updateMemberRole (ext) */
|
|
949
|
-
interface FFIDUpdateMemberRoleResponse {
|
|
950
|
-
member: FFIDOrganizationMember;
|
|
951
|
-
}
|
|
952
|
-
/** Response from removeMember (ext) */
|
|
953
|
-
interface FFIDRemoveMemberResponse {
|
|
954
|
-
message: string;
|
|
955
|
-
}
|
|
956
964
|
/**
|
|
957
965
|
* User profile for the authenticated user (returned by `getProfile` / `updateProfile`).
|
|
958
966
|
*
|
|
@@ -606,59 +606,6 @@ interface FFIDCreatePortalParams {
|
|
|
606
606
|
returnUrl: string;
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
-
/** Member role in an organization */
|
|
610
|
-
type FFIDMemberRole = 'owner' | 'admin' | 'member' | 'viewer';
|
|
611
|
-
/** Member role assignable through organization member management APIs */
|
|
612
|
-
type FFIDAssignableMemberRole = Exclude<FFIDMemberRole, 'owner'>;
|
|
613
|
-
/** Member status in an organization */
|
|
614
|
-
type FFIDMemberStatus = 'active' | 'invited' | 'suspended';
|
|
615
|
-
/** Organization member returned by the ext members API */
|
|
616
|
-
interface FFIDOrganizationMember {
|
|
617
|
-
/** User ID (UUID) */
|
|
618
|
-
userId: string;
|
|
619
|
-
/** Email address */
|
|
620
|
-
email: string;
|
|
621
|
-
/** Display name */
|
|
622
|
-
displayName: string | null;
|
|
623
|
-
/** Avatar URL */
|
|
624
|
-
avatarUrl: string | null;
|
|
625
|
-
/** Role in the organization */
|
|
626
|
-
role: FFIDMemberRole;
|
|
627
|
-
/** Membership status */
|
|
628
|
-
status: FFIDMemberStatus;
|
|
629
|
-
/** When the user joined */
|
|
630
|
-
joinedAt: string | null;
|
|
631
|
-
/** When the user was invited */
|
|
632
|
-
invitedAt: string | null;
|
|
633
|
-
/** Last sign-in timestamp */
|
|
634
|
-
lastSignInAt: string | null;
|
|
635
|
-
}
|
|
636
|
-
/** Response from listMembers (ext) */
|
|
637
|
-
interface FFIDListMembersResponse {
|
|
638
|
-
organizationId: string;
|
|
639
|
-
members: FFIDOrganizationMember[];
|
|
640
|
-
}
|
|
641
|
-
/** Request body for addMember (ext) */
|
|
642
|
-
interface FFIDAddMemberRequest {
|
|
643
|
-
email: string;
|
|
644
|
-
role?: FFIDAssignableMemberRole;
|
|
645
|
-
}
|
|
646
|
-
/** Params object for addMember (ext), matching the existing organization members methods */
|
|
647
|
-
interface FFIDAddMemberParams extends FFIDAddMemberRequest {
|
|
648
|
-
organizationId: string;
|
|
649
|
-
}
|
|
650
|
-
/** Response from addMember (ext) */
|
|
651
|
-
interface FFIDAddMemberResponse {
|
|
652
|
-
member: FFIDOrganizationMember;
|
|
653
|
-
}
|
|
654
|
-
/** Response from updateMemberRole (ext) */
|
|
655
|
-
interface FFIDUpdateMemberRoleResponse {
|
|
656
|
-
member: FFIDOrganizationMember;
|
|
657
|
-
}
|
|
658
|
-
/** Response from removeMember (ext) */
|
|
659
|
-
interface FFIDRemoveMemberResponse {
|
|
660
|
-
message: string;
|
|
661
|
-
}
|
|
662
609
|
/**
|
|
663
610
|
* User profile for the authenticated user (returned by `getProfile` / `updateProfile`).
|
|
664
611
|
*
|
|
@@ -1570,4 +1517,4 @@ interface FFIDInquiryFormPlaceholderContext {
|
|
|
1570
1517
|
}
|
|
1571
1518
|
declare function FFIDInquiryForm({ mode, prefill, organizations, preselectedOrganizationId, categories, termsVersion, privacyVersion, termsHref, privacyHref, turnstileToken, turnstileSlot, onSubmit, onChange, legalLayout, messagePlaceholder, requireCategorySelection, unstyled, classNames, locale, className, }: FFIDInquiryFormProps): react_jsx_runtime.JSX.Element;
|
|
1572
1519
|
|
|
1573
|
-
export { type
|
|
1520
|
+
export { type FFIDInquiryFormPrefill as $, type FFIDSubscriptionContextValue as A, type FFIDOAuthUserInfoSubscription as B, type FFIDAnnouncementsClientConfig as C, type FFIDAnnouncementsApiResponse as D, type EffectiveSubscriptionStatus as E, type FFIDSubscriptionStatus as F, type AnnouncementListResponse as G, type FFIDAnnouncementsLogger as H, type Announcement as I, type AnnouncementStatus as J, type AnnouncementType as K, type ListAnnouncementsOptions as L, FFIDAnnouncementBadge as M, FFIDAnnouncementList as N, type FFIDAnnouncementsError as O, type FFIDAnnouncementsErrorCode as P, type FFIDAnnouncementsServerResponse as Q, type FFIDCacheConfig as R, type FFIDContextValue as S, type FFIDInquiryCategory as T, type FFIDInquiryCategorySite2026 as U, FFIDInquiryForm as V, type FFIDInquiryFormCategoryItem as W, type FFIDInquiryFormClassNames as X, type FFIDInquiryFormLegalLayout as Y, type FFIDInquiryFormOrganization as Z, type FFIDInquiryFormPlaceholderContext as _, type FFIDConfig as a, type FFIDInquiryFormProps as a0, type FFIDInquiryFormSubmitData as a1, type FFIDInquiryFormSubmitResult as a2, type FFIDJwtClaims as a3, FFIDLoginButton as a4, type FFIDOAuthTokenResponse as a5, type FFIDOAuthUserInfoMemberRole as a6, FFIDOrganizationSwitcher as a7, type FFIDRedirectErrorCode as a8, type FFIDSeatModel as a9, type FFIDServiceAccessDenialReason as aa, type FFIDServiceAccessFailPolicy as ab, FFIDSubscriptionBadge as ac, type FFIDTokenIntrospectionResponse as ad, FFIDUserMenu as ae, FFID_INQUIRY_CATEGORIES as af, FFID_INQUIRY_CATEGORIES_SITE_2026 as ag, type UseFFIDAnnouncementsOptions as ah, type UseFFIDAnnouncementsReturn as ai, isFFIDInquiryCategorySite2026 as aj, useFFIDAnnouncements as ak, type FFIDAnnouncementBadgeClassNames as al, type FFIDAnnouncementBadgeProps as am, type FFIDAnnouncementListClassNames as an, type FFIDAnnouncementListProps as ao, type FFIDLoginButtonProps as ap, type FFIDOrganizationSwitcherClassNames as aq, type FFIDOrganizationSwitcherProps as ar, type FFIDSubscriptionBadgeClassNames as as, type FFIDSubscriptionBadgeProps as at, type FFIDUserMenuClassNames as au, type FFIDUserMenuProps as av, type FFIDApiResponse as b, type FFIDSessionResponse as c, type FFIDRedirectResult as d, type FFIDError as e, type FFIDSubscriptionCheckResponse as f, type FFIDCheckServiceAccessParams as g, type FFIDServiceAccessDecision as h, type FFIDProfileCallOptions as i, type FFIDUserProfile as j, type FFIDUpdateUserProfileRequest as k, type FFIDAnalyticsConfig as l, type FFIDCreateCheckoutParams as m, type FFIDCheckoutSessionResponse as n, type FFIDCreatePortalParams as o, type FFIDPortalSessionResponse as p, type FFIDVerifyAccessTokenOptions as q, type FFIDOAuthUserInfo as r, type FFIDInquiryCreateParams as s, type FFIDInquiryCreateResponse as t, type FFIDAuthMode as u, type FFIDLogger as v, type FFIDCacheAdapter as w, type FFIDUser as x, type FFIDOrganization as y, type FFIDSubscription as z };
|
|
@@ -606,59 +606,6 @@ interface FFIDCreatePortalParams {
|
|
|
606
606
|
returnUrl: string;
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
-
/** Member role in an organization */
|
|
610
|
-
type FFIDMemberRole = 'owner' | 'admin' | 'member' | 'viewer';
|
|
611
|
-
/** Member role assignable through organization member management APIs */
|
|
612
|
-
type FFIDAssignableMemberRole = Exclude<FFIDMemberRole, 'owner'>;
|
|
613
|
-
/** Member status in an organization */
|
|
614
|
-
type FFIDMemberStatus = 'active' | 'invited' | 'suspended';
|
|
615
|
-
/** Organization member returned by the ext members API */
|
|
616
|
-
interface FFIDOrganizationMember {
|
|
617
|
-
/** User ID (UUID) */
|
|
618
|
-
userId: string;
|
|
619
|
-
/** Email address */
|
|
620
|
-
email: string;
|
|
621
|
-
/** Display name */
|
|
622
|
-
displayName: string | null;
|
|
623
|
-
/** Avatar URL */
|
|
624
|
-
avatarUrl: string | null;
|
|
625
|
-
/** Role in the organization */
|
|
626
|
-
role: FFIDMemberRole;
|
|
627
|
-
/** Membership status */
|
|
628
|
-
status: FFIDMemberStatus;
|
|
629
|
-
/** When the user joined */
|
|
630
|
-
joinedAt: string | null;
|
|
631
|
-
/** When the user was invited */
|
|
632
|
-
invitedAt: string | null;
|
|
633
|
-
/** Last sign-in timestamp */
|
|
634
|
-
lastSignInAt: string | null;
|
|
635
|
-
}
|
|
636
|
-
/** Response from listMembers (ext) */
|
|
637
|
-
interface FFIDListMembersResponse {
|
|
638
|
-
organizationId: string;
|
|
639
|
-
members: FFIDOrganizationMember[];
|
|
640
|
-
}
|
|
641
|
-
/** Request body for addMember (ext) */
|
|
642
|
-
interface FFIDAddMemberRequest {
|
|
643
|
-
email: string;
|
|
644
|
-
role?: FFIDAssignableMemberRole;
|
|
645
|
-
}
|
|
646
|
-
/** Params object for addMember (ext), matching the existing organization members methods */
|
|
647
|
-
interface FFIDAddMemberParams extends FFIDAddMemberRequest {
|
|
648
|
-
organizationId: string;
|
|
649
|
-
}
|
|
650
|
-
/** Response from addMember (ext) */
|
|
651
|
-
interface FFIDAddMemberResponse {
|
|
652
|
-
member: FFIDOrganizationMember;
|
|
653
|
-
}
|
|
654
|
-
/** Response from updateMemberRole (ext) */
|
|
655
|
-
interface FFIDUpdateMemberRoleResponse {
|
|
656
|
-
member: FFIDOrganizationMember;
|
|
657
|
-
}
|
|
658
|
-
/** Response from removeMember (ext) */
|
|
659
|
-
interface FFIDRemoveMemberResponse {
|
|
660
|
-
message: string;
|
|
661
|
-
}
|
|
662
609
|
/**
|
|
663
610
|
* User profile for the authenticated user (returned by `getProfile` / `updateProfile`).
|
|
664
611
|
*
|
|
@@ -1570,4 +1517,4 @@ interface FFIDInquiryFormPlaceholderContext {
|
|
|
1570
1517
|
}
|
|
1571
1518
|
declare function FFIDInquiryForm({ mode, prefill, organizations, preselectedOrganizationId, categories, termsVersion, privacyVersion, termsHref, privacyHref, turnstileToken, turnstileSlot, onSubmit, onChange, legalLayout, messagePlaceholder, requireCategorySelection, unstyled, classNames, locale, className, }: FFIDInquiryFormProps): react_jsx_runtime.JSX.Element;
|
|
1572
1519
|
|
|
1573
|
-
export { type
|
|
1520
|
+
export { type FFIDInquiryFormPrefill as $, type FFIDSubscriptionContextValue as A, type FFIDOAuthUserInfoSubscription as B, type FFIDAnnouncementsClientConfig as C, type FFIDAnnouncementsApiResponse as D, type EffectiveSubscriptionStatus as E, type FFIDSubscriptionStatus as F, type AnnouncementListResponse as G, type FFIDAnnouncementsLogger as H, type Announcement as I, type AnnouncementStatus as J, type AnnouncementType as K, type ListAnnouncementsOptions as L, FFIDAnnouncementBadge as M, FFIDAnnouncementList as N, type FFIDAnnouncementsError as O, type FFIDAnnouncementsErrorCode as P, type FFIDAnnouncementsServerResponse as Q, type FFIDCacheConfig as R, type FFIDContextValue as S, type FFIDInquiryCategory as T, type FFIDInquiryCategorySite2026 as U, FFIDInquiryForm as V, type FFIDInquiryFormCategoryItem as W, type FFIDInquiryFormClassNames as X, type FFIDInquiryFormLegalLayout as Y, type FFIDInquiryFormOrganization as Z, type FFIDInquiryFormPlaceholderContext as _, type FFIDConfig as a, type FFIDInquiryFormProps as a0, type FFIDInquiryFormSubmitData as a1, type FFIDInquiryFormSubmitResult as a2, type FFIDJwtClaims as a3, FFIDLoginButton as a4, type FFIDOAuthTokenResponse as a5, type FFIDOAuthUserInfoMemberRole as a6, FFIDOrganizationSwitcher as a7, type FFIDRedirectErrorCode as a8, type FFIDSeatModel as a9, type FFIDServiceAccessDenialReason as aa, type FFIDServiceAccessFailPolicy as ab, FFIDSubscriptionBadge as ac, type FFIDTokenIntrospectionResponse as ad, FFIDUserMenu as ae, FFID_INQUIRY_CATEGORIES as af, FFID_INQUIRY_CATEGORIES_SITE_2026 as ag, type UseFFIDAnnouncementsOptions as ah, type UseFFIDAnnouncementsReturn as ai, isFFIDInquiryCategorySite2026 as aj, useFFIDAnnouncements as ak, type FFIDAnnouncementBadgeClassNames as al, type FFIDAnnouncementBadgeProps as am, type FFIDAnnouncementListClassNames as an, type FFIDAnnouncementListProps as ao, type FFIDLoginButtonProps as ap, type FFIDOrganizationSwitcherClassNames as aq, type FFIDOrganizationSwitcherProps as ar, type FFIDSubscriptionBadgeClassNames as as, type FFIDSubscriptionBadgeProps as at, type FFIDUserMenuClassNames as au, type FFIDUserMenuProps as av, type FFIDApiResponse as b, type FFIDSessionResponse as c, type FFIDRedirectResult as d, type FFIDError as e, type FFIDSubscriptionCheckResponse as f, type FFIDCheckServiceAccessParams as g, type FFIDServiceAccessDecision as h, type FFIDProfileCallOptions as i, type FFIDUserProfile as j, type FFIDUpdateUserProfileRequest as k, type FFIDAnalyticsConfig as l, type FFIDCreateCheckoutParams as m, type FFIDCheckoutSessionResponse as n, type FFIDCreatePortalParams as o, type FFIDPortalSessionResponse as p, type FFIDVerifyAccessTokenOptions as q, type FFIDOAuthUserInfo as r, type FFIDInquiryCreateParams as s, type FFIDInquiryCreateResponse as t, type FFIDAuthMode as u, type FFIDLogger as v, type FFIDCacheAdapter as w, type FFIDUser as x, type FFIDOrganization as y, type FFIDSubscription as z };
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWGSEZSZI_cjs = require('./chunk-WGSEZSZI.cjs');
|
|
4
4
|
var chunkQ5SZVLNB_cjs = require('./chunk-Q5SZVLNB.cjs');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -54,8 +54,8 @@ function defaultRedirect(url) {
|
|
|
54
54
|
}
|
|
55
55
|
function useRequireActiveSubscription(options) {
|
|
56
56
|
const { redirectTo, allowGrace = true, onRedirect } = options;
|
|
57
|
-
const { isLoading, error } =
|
|
58
|
-
const { effectiveStatus, isBlocked, isGrace } =
|
|
57
|
+
const { isLoading, error } = chunkWGSEZSZI_cjs.useFFIDContext();
|
|
58
|
+
const { effectiveStatus, isBlocked, isGrace } = chunkWGSEZSZI_cjs.useSubscription();
|
|
59
59
|
const hasFetchError = error !== null && effectiveStatus === null;
|
|
60
60
|
const shouldRedirect = !isLoading && !hasFetchError && (isBlocked || !allowGrace && isGrace || effectiveStatus === null);
|
|
61
61
|
react.useEffect(() => {
|
|
@@ -76,7 +76,7 @@ function useRequireActiveSubscription(options) {
|
|
|
76
76
|
}
|
|
77
77
|
function withFFIDAuth(Component, options = {}) {
|
|
78
78
|
const WrappedComponent = (props) => {
|
|
79
|
-
const { isLoading, isAuthenticated, login } =
|
|
79
|
+
const { isLoading, isAuthenticated, login } = chunkWGSEZSZI_cjs.useFFIDContext();
|
|
80
80
|
const hasRedirected = react.useRef(false);
|
|
81
81
|
react.useEffect(() => {
|
|
82
82
|
if (!isLoading && !isAuthenticated && options.redirectToLogin && !hasRedirected.current) {
|
|
@@ -105,131 +105,131 @@ var FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS = 1e3;
|
|
|
105
105
|
|
|
106
106
|
Object.defineProperty(exports, "ACCESS_GRANTING_EFFECTIVE_STATUSES", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkWGSEZSZI_cjs.ACCESS_GRANTING_EFFECTIVE_STATUSES; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "BLOCKING_EFFECTIVE_STATUSES", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkWGSEZSZI_cjs.BLOCKING_EFFECTIVE_STATUSES; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "DEFAULT_API_BASE_URL", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkWGSEZSZI_cjs.DEFAULT_API_BASE_URL; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "DEFAULT_OAUTH_SCOPES", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkWGSEZSZI_cjs.DEFAULT_OAUTH_SCOPES; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "FFIDAnnouncementBadge", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDAnnouncementBadge; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDAnnouncementList; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDInquiryForm; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDLoginButton; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDOrganizationSwitcher; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "FFIDProvider", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDProvider; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "FFIDSDKError", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDSDKError; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDSubscriptionBadge; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDUserMenu; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "FFID_ANNOUNCEMENTS_ERROR_CODES", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkWGSEZSZI_cjs.FFID_ANNOUNCEMENTS_ERROR_CODES; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkWGSEZSZI_cjs.FFID_INQUIRY_CATEGORIES; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES_SITE_2026", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkWGSEZSZI_cjs.FFID_INQUIRY_CATEGORIES_SITE_2026; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "computeEffectiveStatusFromSession", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkWGSEZSZI_cjs.computeEffectiveStatusFromSession; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "createFFIDAnnouncementsClient", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkWGSEZSZI_cjs.createFFIDAnnouncementsClient; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "createFFIDClient", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkWGSEZSZI_cjs.createFFIDClient; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "createTokenStore", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkWGSEZSZI_cjs.createTokenStore; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "generateCodeChallenge", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkWGSEZSZI_cjs.generateCodeChallenge; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "generateCodeVerifier", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkWGSEZSZI_cjs.generateCodeVerifier; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "hasAccessFromUserinfo", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkWGSEZSZI_cjs.hasAccessFromUserinfo; }
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "isBlockedFromUserinfo", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkWGSEZSZI_cjs.isBlockedFromUserinfo; }
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "isFFIDInquiryCategorySite2026", {
|
|
203
203
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkWGSEZSZI_cjs.isFFIDInquiryCategorySite2026; }
|
|
205
205
|
});
|
|
206
206
|
Object.defineProperty(exports, "normalizeRedirectUri", {
|
|
207
207
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkWGSEZSZI_cjs.normalizeRedirectUri; }
|
|
209
209
|
});
|
|
210
210
|
Object.defineProperty(exports, "retrieveCodeVerifier", {
|
|
211
211
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkWGSEZSZI_cjs.retrieveCodeVerifier; }
|
|
213
213
|
});
|
|
214
214
|
Object.defineProperty(exports, "storeCodeVerifier", {
|
|
215
215
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunkWGSEZSZI_cjs.storeCodeVerifier; }
|
|
217
217
|
});
|
|
218
218
|
Object.defineProperty(exports, "useFFID", {
|
|
219
219
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunkWGSEZSZI_cjs.useFFID; }
|
|
221
221
|
});
|
|
222
222
|
Object.defineProperty(exports, "useFFIDAnnouncements", {
|
|
223
223
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunkWGSEZSZI_cjs.useFFIDAnnouncements; }
|
|
225
225
|
});
|
|
226
226
|
Object.defineProperty(exports, "useSubscription", {
|
|
227
227
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunkWGSEZSZI_cjs.useSubscription; }
|
|
229
229
|
});
|
|
230
230
|
Object.defineProperty(exports, "withSubscription", {
|
|
231
231
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunkWGSEZSZI_cjs.withSubscription; }
|
|
233
233
|
});
|
|
234
234
|
Object.defineProperty(exports, "ALL_DENIED_EXCEPT_NECESSARY", {
|
|
235
235
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDSubscriptionStatus, a as FFIDConfig, b as FFIDApiResponse, c as FFIDSessionResponse, d as FFIDRedirectResult, e as FFIDError, f as FFIDSubscriptionCheckResponse, g as FFIDCheckServiceAccessParams, h as FFIDServiceAccessDecision, i as
|
|
2
|
-
export {
|
|
1
|
+
import { F as FFIDSubscriptionStatus, a as FFIDConfig, b as FFIDApiResponse, c as FFIDSessionResponse, d as FFIDRedirectResult, e as FFIDError, f as FFIDSubscriptionCheckResponse, g as FFIDCheckServiceAccessParams, h as FFIDServiceAccessDecision, i as FFIDProfileCallOptions, j as FFIDUserProfile, k as FFIDUpdateUserProfileRequest, l as FFIDAnalyticsConfig, m as FFIDCreateCheckoutParams, n as FFIDCheckoutSessionResponse, o as FFIDCreatePortalParams, p as FFIDPortalSessionResponse, q as FFIDVerifyAccessTokenOptions, r as FFIDOAuthUserInfo, s as FFIDInquiryCreateParams, t as FFIDInquiryCreateResponse, u as FFIDAuthMode, v as FFIDLogger, w as FFIDCacheAdapter, x as FFIDUser, y as FFIDOrganization, z as FFIDSubscription, A as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, B as FFIDOAuthUserInfoSubscription, C as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, D as FFIDAnnouncementsApiResponse, G as AnnouncementListResponse, H as FFIDAnnouncementsLogger } from './index-_oO5sHjX.cjs';
|
|
2
|
+
export { I as Announcement, J as AnnouncementStatus, K as AnnouncementType, M as FFIDAnnouncementBadge, N as FFIDAnnouncementList, O as FFIDAnnouncementsError, P as FFIDAnnouncementsErrorCode, Q as FFIDAnnouncementsServerResponse, R as FFIDCacheConfig, S as FFIDContextValue, T as FFIDInquiryCategory, U as FFIDInquiryCategorySite2026, V as FFIDInquiryForm, W as FFIDInquiryFormCategoryItem, X as FFIDInquiryFormClassNames, Y as FFIDInquiryFormLegalLayout, Z as FFIDInquiryFormOrganization, _ as FFIDInquiryFormPlaceholderContext, $ as FFIDInquiryFormPrefill, a0 as FFIDInquiryFormProps, a1 as FFIDInquiryFormSubmitData, a2 as FFIDInquiryFormSubmitResult, a3 as FFIDJwtClaims, a4 as FFIDLoginButton, a5 as FFIDOAuthTokenResponse, a6 as FFIDOAuthUserInfoMemberRole, a7 as FFIDOrganizationSwitcher, a8 as FFIDRedirectErrorCode, a9 as FFIDSeatModel, aa as FFIDServiceAccessDenialReason, ab as FFIDServiceAccessFailPolicy, ac as FFIDSubscriptionBadge, ad as FFIDTokenIntrospectionResponse, ae as FFIDUserMenu, af as FFID_INQUIRY_CATEGORIES, ag as FFID_INQUIRY_CATEGORIES_SITE_2026, ah as UseFFIDAnnouncementsOptions, ai as UseFFIDAnnouncementsReturn, aj as isFFIDInquiryCategorySite2026, ak as useFFIDAnnouncements } from './index-_oO5sHjX.cjs';
|
|
3
3
|
export { A as ALL_DENIED_EXCEPT_NECESSARY, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, r as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, I as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, f as FFIDCookiePolicy, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, _ as FFID_CONSENT_ERROR_CODES, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, aj as decodeConsentCookie, al as encodeConsentCookie, an as readConsentCookie, ao as readConsentDismissalTimestamp, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp } from './FFIDCookieLink-CE01gYc4.cjs';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { ReactNode, ComponentType, FC } from 'react';
|
|
@@ -428,6 +428,67 @@ interface FFIDSeatChangePreviewResponse {
|
|
|
428
428
|
preview: FFIDSeatChangePreview;
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
+
/** Member role in an organization */
|
|
432
|
+
type FFIDMemberRole = 'owner' | 'admin' | 'member' | 'viewer';
|
|
433
|
+
/** Member role assignable through organization member management APIs */
|
|
434
|
+
type FFIDAssignableMemberRole = Exclude<FFIDMemberRole, 'owner'>;
|
|
435
|
+
/** Member status in an organization */
|
|
436
|
+
type FFIDMemberStatus = 'active' | 'invited' | 'suspended';
|
|
437
|
+
/** Organization member returned by the ext members API */
|
|
438
|
+
interface FFIDOrganizationMember {
|
|
439
|
+
/** User ID (UUID) */
|
|
440
|
+
userId: string;
|
|
441
|
+
/** Email address */
|
|
442
|
+
email: string;
|
|
443
|
+
/** Display name */
|
|
444
|
+
displayName: string | null;
|
|
445
|
+
/** Avatar URL */
|
|
446
|
+
avatarUrl: string | null;
|
|
447
|
+
/** Role in the organization */
|
|
448
|
+
role: FFIDMemberRole;
|
|
449
|
+
/** Membership status */
|
|
450
|
+
status: FFIDMemberStatus;
|
|
451
|
+
/**
|
|
452
|
+
* Whether the member's email address is confirmed.
|
|
453
|
+
*
|
|
454
|
+
* `null` means FFID could not determine the auth user confirmation state
|
|
455
|
+
* (for example, the auth user row was not readable).
|
|
456
|
+
*/
|
|
457
|
+
emailVerified: boolean | null;
|
|
458
|
+
/** When the user joined */
|
|
459
|
+
joinedAt: string | null;
|
|
460
|
+
/** When the user was invited */
|
|
461
|
+
invitedAt: string | null;
|
|
462
|
+
/** Last sign-in timestamp */
|
|
463
|
+
lastSignInAt: string | null;
|
|
464
|
+
}
|
|
465
|
+
/** Response from listMembers (ext) */
|
|
466
|
+
interface FFIDListMembersResponse {
|
|
467
|
+
organizationId: string;
|
|
468
|
+
members: FFIDOrganizationMember[];
|
|
469
|
+
}
|
|
470
|
+
/** Request body for addMember (ext) */
|
|
471
|
+
interface FFIDAddMemberRequest {
|
|
472
|
+
email: string;
|
|
473
|
+
role?: FFIDAssignableMemberRole;
|
|
474
|
+
}
|
|
475
|
+
/** Params object for addMember (ext), matching the existing organization members methods */
|
|
476
|
+
interface FFIDAddMemberParams extends FFIDAddMemberRequest {
|
|
477
|
+
organizationId: string;
|
|
478
|
+
}
|
|
479
|
+
/** Response from addMember (ext) */
|
|
480
|
+
interface FFIDAddMemberResponse {
|
|
481
|
+
member: FFIDOrganizationMember;
|
|
482
|
+
}
|
|
483
|
+
/** Response from updateMemberRole (ext) */
|
|
484
|
+
interface FFIDUpdateMemberRoleResponse {
|
|
485
|
+
member: FFIDOrganizationMember;
|
|
486
|
+
}
|
|
487
|
+
/** Response from removeMember (ext) */
|
|
488
|
+
interface FFIDRemoveMemberResponse {
|
|
489
|
+
message: string;
|
|
490
|
+
}
|
|
491
|
+
|
|
431
492
|
/** OTP / magic link methods - sendOtp / verifyOtp */
|
|
432
493
|
|
|
433
494
|
/** Response from sendOtp */
|
|
@@ -1312,4 +1373,4 @@ declare function createInquiryMethods(deps: InquiryMethodsDeps): {
|
|
|
1312
1373
|
};
|
|
1313
1374
|
type FFIDInquiryClient = ReturnType<typeof createInquiryMethods>;
|
|
1314
1375
|
|
|
1315
|
-
export { ACCESS_GRANTING_EFFECTIVE_STATUSES, AnnouncementListResponse, BLOCKING_EFFECTIVE_STATUSES, type ComputeEffectiveStatusInput, type ContractWizardFlowType, type ContractWizardResubscribeOptions, type ContractWizardSubscribeOptions, type ContractWizardSubscriptionOptions, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, EffectiveSubscriptionStatus, FFIDAddMemberParams, FFIDAddMemberRequest, FFIDAddMemberResponse, FFIDAnnouncementsApiResponse, type FFIDAnnouncementsClient, FFIDAnnouncementsClientConfig, FFIDAnnouncementsLogger, FFIDApiResponse, type FFIDBillingInterval, FFIDCacheAdapter, type FFIDCancelPendingDowngradeResponse, type FFIDCancelSubscriptionParams, type FFIDCancelSubscriptionResponse, type FFIDChangePlanParams, type FFIDChangePlanResponse, FFIDCheckServiceAccessParams, FFIDCheckoutSessionResponse, type FFIDClient, FFIDConfig, FFIDCreateCheckoutParams, FFIDCreatePortalParams, FFIDError, type FFIDInquiryClient, FFIDInquiryCreateParams, FFIDInquiryCreateResponse, FFIDListMembersResponse, type FFIDListPlansResponse, FFIDLogger, FFIDMemberRole, type FFIDNewsletterBodySource, type FFIDNewsletterCampaignStatus, type FFIDNewsletterClient, type FFIDNewsletterConfirmParams, type FFIDNewsletterConfirmResponse, type FFIDNewsletterDispatchParams, type FFIDNewsletterDispatchResponse, type FFIDNewsletterSegment, type FFIDNewsletterSubscribeParams, type FFIDNewsletterSubscribeResponse, type FFIDNewsletterType, type FFIDNewsletterUnsubscribeParams, type FFIDNewsletterUnsubscribeResponse, FFIDOAuthUserInfo, FFIDOAuthUserInfoSubscription, FFIDOrganization, type FFIDOtpSendResponse, type FFIDOtpVerifyResponse, type FFIDPasswordResetConfirmResponse, type FFIDPasswordResetResponse, type FFIDPasswordResetVerifyResponse, type FFIDPlanChangeLineItem, type FFIDPlanChangePreview, type FFIDPlanChangePreviewResponse, type FFIDPlanInfo, FFIDPortalSessionResponse, type FFIDPreviewPlanChangeParams, type FFIDPreviewSeatChangeParams, FFIDProfileCallOptions, FFIDProvider, type FFIDProviderProps, FFIDRedirectResult, FFIDRemoveMemberResponse, type FFIDResetSessionResponse, FFIDSDKError, type FFIDSeatChangeLineItem, type FFIDSeatChangePreview, type FFIDSeatChangePreviewResponse, FFIDServiceAccessDecision, type FFIDServiceInfo, FFIDSessionResponse, type FFIDSubscribeParams, type FFIDSubscribeResponse, FFIDSubscription, FFIDSubscriptionCheckResponse, FFIDSubscriptionContextValue, type FFIDSubscriptionDetail, FFIDSubscriptionStatus, type FFIDSubscriptionSummary, type FFIDSupportedCurrency, FFIDUpdateMemberRoleResponse, FFIDUpdateUserProfileRequest, FFIDUser, FFIDUserProfile, FFIDVerifyAccessTokenOptions, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS, FFID_NEWSLETTER_TYPES, type KVNamespaceLike, ListAnnouncementsOptions, type NormalizeRedirectUriResult, type RedirectToAuthorizeOptions, type TokenData, type TokenStore, type UseFFIDReturn, type UseRequireActiveSubscriptionOptions, type UseRequireActiveSubscriptionReturn, type WithFFIDAuthOptions, type WithSubscriptionOptions, computeEffectiveStatusFromSession, createFFIDAnnouncementsClient, createFFIDClient, createKVCacheAdapter, createMemoryCacheAdapter, createTokenStore, generateCodeChallenge, generateCodeVerifier, hasAccessFromUserinfo, isBlockedFromUserinfo, normalizeRedirectUri, retrieveCodeVerifier, storeCodeVerifier, useFFID, useRequireActiveSubscription, useSubscription, withFFIDAuth, withSubscription };
|
|
1376
|
+
export { ACCESS_GRANTING_EFFECTIVE_STATUSES, AnnouncementListResponse, BLOCKING_EFFECTIVE_STATUSES, type ComputeEffectiveStatusInput, type ContractWizardFlowType, type ContractWizardResubscribeOptions, type ContractWizardSubscribeOptions, type ContractWizardSubscriptionOptions, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, EffectiveSubscriptionStatus, type FFIDAddMemberParams, type FFIDAddMemberRequest, type FFIDAddMemberResponse, FFIDAnnouncementsApiResponse, type FFIDAnnouncementsClient, FFIDAnnouncementsClientConfig, FFIDAnnouncementsLogger, FFIDApiResponse, type FFIDAssignableMemberRole, type FFIDBillingInterval, FFIDCacheAdapter, type FFIDCancelPendingDowngradeResponse, type FFIDCancelSubscriptionParams, type FFIDCancelSubscriptionResponse, type FFIDChangePlanParams, type FFIDChangePlanResponse, FFIDCheckServiceAccessParams, FFIDCheckoutSessionResponse, type FFIDClient, FFIDConfig, FFIDCreateCheckoutParams, FFIDCreatePortalParams, FFIDError, type FFIDInquiryClient, FFIDInquiryCreateParams, FFIDInquiryCreateResponse, type FFIDListMembersResponse, type FFIDListPlansResponse, FFIDLogger, type FFIDMemberRole, type FFIDMemberStatus, type FFIDNewsletterBodySource, type FFIDNewsletterCampaignStatus, type FFIDNewsletterClient, type FFIDNewsletterConfirmParams, type FFIDNewsletterConfirmResponse, type FFIDNewsletterDispatchParams, type FFIDNewsletterDispatchResponse, type FFIDNewsletterSegment, type FFIDNewsletterSubscribeParams, type FFIDNewsletterSubscribeResponse, type FFIDNewsletterType, type FFIDNewsletterUnsubscribeParams, type FFIDNewsletterUnsubscribeResponse, FFIDOAuthUserInfo, FFIDOAuthUserInfoSubscription, FFIDOrganization, type FFIDOrganizationMember, type FFIDOtpSendResponse, type FFIDOtpVerifyResponse, type FFIDPasswordResetConfirmResponse, type FFIDPasswordResetResponse, type FFIDPasswordResetVerifyResponse, type FFIDPlanChangeLineItem, type FFIDPlanChangePreview, type FFIDPlanChangePreviewResponse, type FFIDPlanInfo, FFIDPortalSessionResponse, type FFIDPreviewPlanChangeParams, type FFIDPreviewSeatChangeParams, FFIDProfileCallOptions, FFIDProvider, type FFIDProviderProps, FFIDRedirectResult, type FFIDRemoveMemberResponse, type FFIDResetSessionResponse, FFIDSDKError, type FFIDSeatChangeLineItem, type FFIDSeatChangePreview, type FFIDSeatChangePreviewResponse, FFIDServiceAccessDecision, type FFIDServiceInfo, FFIDSessionResponse, type FFIDSubscribeParams, type FFIDSubscribeResponse, FFIDSubscription, FFIDSubscriptionCheckResponse, FFIDSubscriptionContextValue, type FFIDSubscriptionDetail, FFIDSubscriptionStatus, type FFIDSubscriptionSummary, type FFIDSupportedCurrency, type FFIDUpdateMemberRoleResponse, FFIDUpdateUserProfileRequest, FFIDUser, FFIDUserProfile, FFIDVerifyAccessTokenOptions, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS, FFID_NEWSLETTER_TYPES, type KVNamespaceLike, ListAnnouncementsOptions, type NormalizeRedirectUriResult, type RedirectToAuthorizeOptions, type TokenData, type TokenStore, type UseFFIDReturn, type UseRequireActiveSubscriptionOptions, type UseRequireActiveSubscriptionReturn, type WithFFIDAuthOptions, type WithSubscriptionOptions, computeEffectiveStatusFromSession, createFFIDAnnouncementsClient, createFFIDClient, createKVCacheAdapter, createMemoryCacheAdapter, createTokenStore, generateCodeChallenge, generateCodeVerifier, hasAccessFromUserinfo, isBlockedFromUserinfo, normalizeRedirectUri, retrieveCodeVerifier, storeCodeVerifier, useFFID, useRequireActiveSubscription, useSubscription, withFFIDAuth, withSubscription };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDSubscriptionStatus, a as FFIDConfig, b as FFIDApiResponse, c as FFIDSessionResponse, d as FFIDRedirectResult, e as FFIDError, f as FFIDSubscriptionCheckResponse, g as FFIDCheckServiceAccessParams, h as FFIDServiceAccessDecision, i as
|
|
2
|
-
export {
|
|
1
|
+
import { F as FFIDSubscriptionStatus, a as FFIDConfig, b as FFIDApiResponse, c as FFIDSessionResponse, d as FFIDRedirectResult, e as FFIDError, f as FFIDSubscriptionCheckResponse, g as FFIDCheckServiceAccessParams, h as FFIDServiceAccessDecision, i as FFIDProfileCallOptions, j as FFIDUserProfile, k as FFIDUpdateUserProfileRequest, l as FFIDAnalyticsConfig, m as FFIDCreateCheckoutParams, n as FFIDCheckoutSessionResponse, o as FFIDCreatePortalParams, p as FFIDPortalSessionResponse, q as FFIDVerifyAccessTokenOptions, r as FFIDOAuthUserInfo, s as FFIDInquiryCreateParams, t as FFIDInquiryCreateResponse, u as FFIDAuthMode, v as FFIDLogger, w as FFIDCacheAdapter, x as FFIDUser, y as FFIDOrganization, z as FFIDSubscription, A as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, B as FFIDOAuthUserInfoSubscription, C as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, D as FFIDAnnouncementsApiResponse, G as AnnouncementListResponse, H as FFIDAnnouncementsLogger } from './index-_oO5sHjX.js';
|
|
2
|
+
export { I as Announcement, J as AnnouncementStatus, K as AnnouncementType, M as FFIDAnnouncementBadge, N as FFIDAnnouncementList, O as FFIDAnnouncementsError, P as FFIDAnnouncementsErrorCode, Q as FFIDAnnouncementsServerResponse, R as FFIDCacheConfig, S as FFIDContextValue, T as FFIDInquiryCategory, U as FFIDInquiryCategorySite2026, V as FFIDInquiryForm, W as FFIDInquiryFormCategoryItem, X as FFIDInquiryFormClassNames, Y as FFIDInquiryFormLegalLayout, Z as FFIDInquiryFormOrganization, _ as FFIDInquiryFormPlaceholderContext, $ as FFIDInquiryFormPrefill, a0 as FFIDInquiryFormProps, a1 as FFIDInquiryFormSubmitData, a2 as FFIDInquiryFormSubmitResult, a3 as FFIDJwtClaims, a4 as FFIDLoginButton, a5 as FFIDOAuthTokenResponse, a6 as FFIDOAuthUserInfoMemberRole, a7 as FFIDOrganizationSwitcher, a8 as FFIDRedirectErrorCode, a9 as FFIDSeatModel, aa as FFIDServiceAccessDenialReason, ab as FFIDServiceAccessFailPolicy, ac as FFIDSubscriptionBadge, ad as FFIDTokenIntrospectionResponse, ae as FFIDUserMenu, af as FFID_INQUIRY_CATEGORIES, ag as FFID_INQUIRY_CATEGORIES_SITE_2026, ah as UseFFIDAnnouncementsOptions, ai as UseFFIDAnnouncementsReturn, aj as isFFIDInquiryCategorySite2026, ak as useFFIDAnnouncements } from './index-_oO5sHjX.js';
|
|
3
3
|
export { A as ALL_DENIED_EXCEPT_NECESSARY, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, r as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, I as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, f as FFIDCookiePolicy, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, _ as FFID_CONSENT_ERROR_CODES, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, aj as decodeConsentCookie, al as encodeConsentCookie, an as readConsentCookie, ao as readConsentDismissalTimestamp, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp } from './FFIDCookieLink-CE01gYc4.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { ReactNode, ComponentType, FC } from 'react';
|
|
@@ -428,6 +428,67 @@ interface FFIDSeatChangePreviewResponse {
|
|
|
428
428
|
preview: FFIDSeatChangePreview;
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
+
/** Member role in an organization */
|
|
432
|
+
type FFIDMemberRole = 'owner' | 'admin' | 'member' | 'viewer';
|
|
433
|
+
/** Member role assignable through organization member management APIs */
|
|
434
|
+
type FFIDAssignableMemberRole = Exclude<FFIDMemberRole, 'owner'>;
|
|
435
|
+
/** Member status in an organization */
|
|
436
|
+
type FFIDMemberStatus = 'active' | 'invited' | 'suspended';
|
|
437
|
+
/** Organization member returned by the ext members API */
|
|
438
|
+
interface FFIDOrganizationMember {
|
|
439
|
+
/** User ID (UUID) */
|
|
440
|
+
userId: string;
|
|
441
|
+
/** Email address */
|
|
442
|
+
email: string;
|
|
443
|
+
/** Display name */
|
|
444
|
+
displayName: string | null;
|
|
445
|
+
/** Avatar URL */
|
|
446
|
+
avatarUrl: string | null;
|
|
447
|
+
/** Role in the organization */
|
|
448
|
+
role: FFIDMemberRole;
|
|
449
|
+
/** Membership status */
|
|
450
|
+
status: FFIDMemberStatus;
|
|
451
|
+
/**
|
|
452
|
+
* Whether the member's email address is confirmed.
|
|
453
|
+
*
|
|
454
|
+
* `null` means FFID could not determine the auth user confirmation state
|
|
455
|
+
* (for example, the auth user row was not readable).
|
|
456
|
+
*/
|
|
457
|
+
emailVerified: boolean | null;
|
|
458
|
+
/** When the user joined */
|
|
459
|
+
joinedAt: string | null;
|
|
460
|
+
/** When the user was invited */
|
|
461
|
+
invitedAt: string | null;
|
|
462
|
+
/** Last sign-in timestamp */
|
|
463
|
+
lastSignInAt: string | null;
|
|
464
|
+
}
|
|
465
|
+
/** Response from listMembers (ext) */
|
|
466
|
+
interface FFIDListMembersResponse {
|
|
467
|
+
organizationId: string;
|
|
468
|
+
members: FFIDOrganizationMember[];
|
|
469
|
+
}
|
|
470
|
+
/** Request body for addMember (ext) */
|
|
471
|
+
interface FFIDAddMemberRequest {
|
|
472
|
+
email: string;
|
|
473
|
+
role?: FFIDAssignableMemberRole;
|
|
474
|
+
}
|
|
475
|
+
/** Params object for addMember (ext), matching the existing organization members methods */
|
|
476
|
+
interface FFIDAddMemberParams extends FFIDAddMemberRequest {
|
|
477
|
+
organizationId: string;
|
|
478
|
+
}
|
|
479
|
+
/** Response from addMember (ext) */
|
|
480
|
+
interface FFIDAddMemberResponse {
|
|
481
|
+
member: FFIDOrganizationMember;
|
|
482
|
+
}
|
|
483
|
+
/** Response from updateMemberRole (ext) */
|
|
484
|
+
interface FFIDUpdateMemberRoleResponse {
|
|
485
|
+
member: FFIDOrganizationMember;
|
|
486
|
+
}
|
|
487
|
+
/** Response from removeMember (ext) */
|
|
488
|
+
interface FFIDRemoveMemberResponse {
|
|
489
|
+
message: string;
|
|
490
|
+
}
|
|
491
|
+
|
|
431
492
|
/** OTP / magic link methods - sendOtp / verifyOtp */
|
|
432
493
|
|
|
433
494
|
/** Response from sendOtp */
|
|
@@ -1312,4 +1373,4 @@ declare function createInquiryMethods(deps: InquiryMethodsDeps): {
|
|
|
1312
1373
|
};
|
|
1313
1374
|
type FFIDInquiryClient = ReturnType<typeof createInquiryMethods>;
|
|
1314
1375
|
|
|
1315
|
-
export { ACCESS_GRANTING_EFFECTIVE_STATUSES, AnnouncementListResponse, BLOCKING_EFFECTIVE_STATUSES, type ComputeEffectiveStatusInput, type ContractWizardFlowType, type ContractWizardResubscribeOptions, type ContractWizardSubscribeOptions, type ContractWizardSubscriptionOptions, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, EffectiveSubscriptionStatus, FFIDAddMemberParams, FFIDAddMemberRequest, FFIDAddMemberResponse, FFIDAnnouncementsApiResponse, type FFIDAnnouncementsClient, FFIDAnnouncementsClientConfig, FFIDAnnouncementsLogger, FFIDApiResponse, type FFIDBillingInterval, FFIDCacheAdapter, type FFIDCancelPendingDowngradeResponse, type FFIDCancelSubscriptionParams, type FFIDCancelSubscriptionResponse, type FFIDChangePlanParams, type FFIDChangePlanResponse, FFIDCheckServiceAccessParams, FFIDCheckoutSessionResponse, type FFIDClient, FFIDConfig, FFIDCreateCheckoutParams, FFIDCreatePortalParams, FFIDError, type FFIDInquiryClient, FFIDInquiryCreateParams, FFIDInquiryCreateResponse, FFIDListMembersResponse, type FFIDListPlansResponse, FFIDLogger, FFIDMemberRole, type FFIDNewsletterBodySource, type FFIDNewsletterCampaignStatus, type FFIDNewsletterClient, type FFIDNewsletterConfirmParams, type FFIDNewsletterConfirmResponse, type FFIDNewsletterDispatchParams, type FFIDNewsletterDispatchResponse, type FFIDNewsletterSegment, type FFIDNewsletterSubscribeParams, type FFIDNewsletterSubscribeResponse, type FFIDNewsletterType, type FFIDNewsletterUnsubscribeParams, type FFIDNewsletterUnsubscribeResponse, FFIDOAuthUserInfo, FFIDOAuthUserInfoSubscription, FFIDOrganization, type FFIDOtpSendResponse, type FFIDOtpVerifyResponse, type FFIDPasswordResetConfirmResponse, type FFIDPasswordResetResponse, type FFIDPasswordResetVerifyResponse, type FFIDPlanChangeLineItem, type FFIDPlanChangePreview, type FFIDPlanChangePreviewResponse, type FFIDPlanInfo, FFIDPortalSessionResponse, type FFIDPreviewPlanChangeParams, type FFIDPreviewSeatChangeParams, FFIDProfileCallOptions, FFIDProvider, type FFIDProviderProps, FFIDRedirectResult, FFIDRemoveMemberResponse, type FFIDResetSessionResponse, FFIDSDKError, type FFIDSeatChangeLineItem, type FFIDSeatChangePreview, type FFIDSeatChangePreviewResponse, FFIDServiceAccessDecision, type FFIDServiceInfo, FFIDSessionResponse, type FFIDSubscribeParams, type FFIDSubscribeResponse, FFIDSubscription, FFIDSubscriptionCheckResponse, FFIDSubscriptionContextValue, type FFIDSubscriptionDetail, FFIDSubscriptionStatus, type FFIDSubscriptionSummary, type FFIDSupportedCurrency, FFIDUpdateMemberRoleResponse, FFIDUpdateUserProfileRequest, FFIDUser, FFIDUserProfile, FFIDVerifyAccessTokenOptions, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS, FFID_NEWSLETTER_TYPES, type KVNamespaceLike, ListAnnouncementsOptions, type NormalizeRedirectUriResult, type RedirectToAuthorizeOptions, type TokenData, type TokenStore, type UseFFIDReturn, type UseRequireActiveSubscriptionOptions, type UseRequireActiveSubscriptionReturn, type WithFFIDAuthOptions, type WithSubscriptionOptions, computeEffectiveStatusFromSession, createFFIDAnnouncementsClient, createFFIDClient, createKVCacheAdapter, createMemoryCacheAdapter, createTokenStore, generateCodeChallenge, generateCodeVerifier, hasAccessFromUserinfo, isBlockedFromUserinfo, normalizeRedirectUri, retrieveCodeVerifier, storeCodeVerifier, useFFID, useRequireActiveSubscription, useSubscription, withFFIDAuth, withSubscription };
|
|
1376
|
+
export { ACCESS_GRANTING_EFFECTIVE_STATUSES, AnnouncementListResponse, BLOCKING_EFFECTIVE_STATUSES, type ComputeEffectiveStatusInput, type ContractWizardFlowType, type ContractWizardResubscribeOptions, type ContractWizardSubscribeOptions, type ContractWizardSubscriptionOptions, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, EffectiveSubscriptionStatus, type FFIDAddMemberParams, type FFIDAddMemberRequest, type FFIDAddMemberResponse, FFIDAnnouncementsApiResponse, type FFIDAnnouncementsClient, FFIDAnnouncementsClientConfig, FFIDAnnouncementsLogger, FFIDApiResponse, type FFIDAssignableMemberRole, type FFIDBillingInterval, FFIDCacheAdapter, type FFIDCancelPendingDowngradeResponse, type FFIDCancelSubscriptionParams, type FFIDCancelSubscriptionResponse, type FFIDChangePlanParams, type FFIDChangePlanResponse, FFIDCheckServiceAccessParams, FFIDCheckoutSessionResponse, type FFIDClient, FFIDConfig, FFIDCreateCheckoutParams, FFIDCreatePortalParams, FFIDError, type FFIDInquiryClient, FFIDInquiryCreateParams, FFIDInquiryCreateResponse, type FFIDListMembersResponse, type FFIDListPlansResponse, FFIDLogger, type FFIDMemberRole, type FFIDMemberStatus, type FFIDNewsletterBodySource, type FFIDNewsletterCampaignStatus, type FFIDNewsletterClient, type FFIDNewsletterConfirmParams, type FFIDNewsletterConfirmResponse, type FFIDNewsletterDispatchParams, type FFIDNewsletterDispatchResponse, type FFIDNewsletterSegment, type FFIDNewsletterSubscribeParams, type FFIDNewsletterSubscribeResponse, type FFIDNewsletterType, type FFIDNewsletterUnsubscribeParams, type FFIDNewsletterUnsubscribeResponse, FFIDOAuthUserInfo, FFIDOAuthUserInfoSubscription, FFIDOrganization, type FFIDOrganizationMember, type FFIDOtpSendResponse, type FFIDOtpVerifyResponse, type FFIDPasswordResetConfirmResponse, type FFIDPasswordResetResponse, type FFIDPasswordResetVerifyResponse, type FFIDPlanChangeLineItem, type FFIDPlanChangePreview, type FFIDPlanChangePreviewResponse, type FFIDPlanInfo, FFIDPortalSessionResponse, type FFIDPreviewPlanChangeParams, type FFIDPreviewSeatChangeParams, FFIDProfileCallOptions, FFIDProvider, type FFIDProviderProps, FFIDRedirectResult, type FFIDRemoveMemberResponse, type FFIDResetSessionResponse, FFIDSDKError, type FFIDSeatChangeLineItem, type FFIDSeatChangePreview, type FFIDSeatChangePreviewResponse, FFIDServiceAccessDecision, type FFIDServiceInfo, FFIDSessionResponse, type FFIDSubscribeParams, type FFIDSubscribeResponse, FFIDSubscription, FFIDSubscriptionCheckResponse, FFIDSubscriptionContextValue, type FFIDSubscriptionDetail, FFIDSubscriptionStatus, type FFIDSubscriptionSummary, type FFIDSupportedCurrency, type FFIDUpdateMemberRoleResponse, FFIDUpdateUserProfileRequest, FFIDUser, FFIDUserProfile, FFIDVerifyAccessTokenOptions, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS, FFID_NEWSLETTER_TYPES, type KVNamespaceLike, ListAnnouncementsOptions, type NormalizeRedirectUriResult, type RedirectToAuthorizeOptions, type TokenData, type TokenStore, type UseFFIDReturn, type UseRequireActiveSubscriptionOptions, type UseRequireActiveSubscriptionReturn, type WithFFIDAuthOptions, type WithSubscriptionOptions, computeEffectiveStatusFromSession, createFFIDAnnouncementsClient, createFFIDClient, createKVCacheAdapter, createMemoryCacheAdapter, createTokenStore, generateCodeChallenge, generateCodeVerifier, hasAccessFromUserinfo, isBlockedFromUserinfo, normalizeRedirectUri, retrieveCodeVerifier, storeCodeVerifier, useFFID, useRequireActiveSubscription, useSubscription, withFFIDAuth, withSubscription };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useFFIDContext, useSubscription } from './chunk-
|
|
2
|
-
export { ACCESS_GRANTING_EFFECTIVE_STATUSES, BLOCKING_EFFECTIVE_STATUSES, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSDKError, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, computeEffectiveStatusFromSession, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, hasAccessFromUserinfo, isBlockedFromUserinfo, isFFIDInquiryCategorySite2026, normalizeRedirectUri, retrieveCodeVerifier, storeCodeVerifier, useFFID, useFFIDAnnouncements, useSubscription, withSubscription } from './chunk-
|
|
1
|
+
import { useFFIDContext, useSubscription } from './chunk-4SJKXEYB.js';
|
|
2
|
+
export { ACCESS_GRANTING_EFFECTIVE_STATUSES, BLOCKING_EFFECTIVE_STATUSES, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSDKError, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, computeEffectiveStatusFromSession, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, hasAccessFromUserinfo, isBlockedFromUserinfo, isFFIDInquiryCategorySite2026, normalizeRedirectUri, retrieveCodeVerifier, storeCodeVerifier, useFFID, useFFIDAnnouncements, useSubscription, withSubscription } from './chunk-4SJKXEYB.js';
|
|
3
3
|
export { ALL_DENIED_EXCEPT_NECESSARY, CONSENT_COOKIE_NAME, CONSENT_DISMISSAL_TIMESTAMP_KEY, COOKIE_VERSION, DEFAULT_CONSENT_ERROR_MESSAGES, FFIDAnalyticsProvider, FFIDConsentError, FFIDCookieBanner, FFIDCookieLink, FFIDCookieSettings, FFID_CONSENT_ERROR_CODES, clearConsentDismissalTimestamp, decodeConsentCookie, encodeConsentCookie, readConsentCookie, readConsentDismissalTimestamp, useFFIDConsent, useFFIDConsentPreferences, writeConsentCookie, writeConsentDismissalTimestamp } from './chunk-KJ7FUNA6.js';
|
|
4
4
|
import { useEffect, useRef } from 'react';
|
|
5
5
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
package/dist/server/index.cjs
CHANGED
|
@@ -837,7 +837,7 @@ function createProfileMethods(deps) {
|
|
|
837
837
|
}
|
|
838
838
|
|
|
839
839
|
// src/client/version-check.ts
|
|
840
|
-
var SDK_VERSION = "5.
|
|
840
|
+
var SDK_VERSION = "5.6.0";
|
|
841
841
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
842
842
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
843
843
|
function sdkHeaders() {
|
package/dist/server/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo } from '../ffid-client-
|
|
2
|
-
export { f as FFIDAddMemberParams, g as FFIDAddMemberRequest, h as FFIDAddMemberResponse, i as FFIDAssignableMemberRole, j as FFIDCacheConfig, k as FFIDClient, l as FFIDConfig, m as FFIDListMembersResponse, n as FFIDMemberRole, o as FFIDOrganization, p as FFIDOrganizationMember, q as FFIDOtpSendResponse, r as FFIDOtpVerifyResponse, s as FFIDPasswordResetConfirmResponse, t as FFIDPasswordResetResponse, u as FFIDPasswordResetVerifyResponse, v as FFIDProfileCallOptions, w as FFIDRemoveMemberResponse, x as FFIDResetSessionResponse, y as FFIDSubscription, z as FFIDUpdateMemberRoleResponse, A as FFIDUpdateUserProfileRequest, B as FFIDUser, C as FFIDUserProfile, T as TokenData, D as TokenStore, E as createFFIDClient, G as createTokenStore } from '../ffid-client-
|
|
1
|
+
import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo } from '../ffid-client-CmxQxkoK.cjs';
|
|
2
|
+
export { f as FFIDAddMemberParams, g as FFIDAddMemberRequest, h as FFIDAddMemberResponse, i as FFIDAssignableMemberRole, j as FFIDCacheConfig, k as FFIDClient, l as FFIDConfig, m as FFIDListMembersResponse, n as FFIDMemberRole, o as FFIDOrganization, p as FFIDOrganizationMember, q as FFIDOtpSendResponse, r as FFIDOtpVerifyResponse, s as FFIDPasswordResetConfirmResponse, t as FFIDPasswordResetResponse, u as FFIDPasswordResetVerifyResponse, v as FFIDProfileCallOptions, w as FFIDRemoveMemberResponse, x as FFIDResetSessionResponse, y as FFIDSubscription, z as FFIDUpdateMemberRoleResponse, A as FFIDUpdateUserProfileRequest, B as FFIDUser, C as FFIDUserProfile, T as TokenData, D as TokenStore, E as createFFIDClient, G as createTokenStore } from '../ffid-client-CmxQxkoK.cjs';
|
|
3
3
|
export { D as DEFAULT_API_BASE_URL, a as DEFAULT_OAUTH_SCOPES } from '../constants-D61jqRIO.cjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import '../types-5g_Bg6Ey.cjs';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo } from '../ffid-client-
|
|
2
|
-
export { f as FFIDAddMemberParams, g as FFIDAddMemberRequest, h as FFIDAddMemberResponse, i as FFIDAssignableMemberRole, j as FFIDCacheConfig, k as FFIDClient, l as FFIDConfig, m as FFIDListMembersResponse, n as FFIDMemberRole, o as FFIDOrganization, p as FFIDOrganizationMember, q as FFIDOtpSendResponse, r as FFIDOtpVerifyResponse, s as FFIDPasswordResetConfirmResponse, t as FFIDPasswordResetResponse, u as FFIDPasswordResetVerifyResponse, v as FFIDProfileCallOptions, w as FFIDRemoveMemberResponse, x as FFIDResetSessionResponse, y as FFIDSubscription, z as FFIDUpdateMemberRoleResponse, A as FFIDUpdateUserProfileRequest, B as FFIDUser, C as FFIDUserProfile, T as TokenData, D as TokenStore, E as createFFIDClient, G as createTokenStore } from '../ffid-client-
|
|
1
|
+
import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo } from '../ffid-client-BXl7Dop7.js';
|
|
2
|
+
export { f as FFIDAddMemberParams, g as FFIDAddMemberRequest, h as FFIDAddMemberResponse, i as FFIDAssignableMemberRole, j as FFIDCacheConfig, k as FFIDClient, l as FFIDConfig, m as FFIDListMembersResponse, n as FFIDMemberRole, o as FFIDOrganization, p as FFIDOrganizationMember, q as FFIDOtpSendResponse, r as FFIDOtpVerifyResponse, s as FFIDPasswordResetConfirmResponse, t as FFIDPasswordResetResponse, u as FFIDPasswordResetVerifyResponse, v as FFIDProfileCallOptions, w as FFIDRemoveMemberResponse, x as FFIDResetSessionResponse, y as FFIDSubscription, z as FFIDUpdateMemberRoleResponse, A as FFIDUpdateUserProfileRequest, B as FFIDUser, C as FFIDUserProfile, T as TokenData, D as TokenStore, E as createFFIDClient, G as createTokenStore } from '../ffid-client-BXl7Dop7.js';
|
|
3
3
|
export { D as DEFAULT_API_BASE_URL, a as DEFAULT_OAUTH_SCOPES } from '../constants-D61jqRIO.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import '../types-5g_Bg6Ey.js';
|
package/dist/server/index.js
CHANGED
|
@@ -836,7 +836,7 @@ function createProfileMethods(deps) {
|
|
|
836
836
|
}
|
|
837
837
|
|
|
838
838
|
// src/client/version-check.ts
|
|
839
|
-
var SDK_VERSION = "5.
|
|
839
|
+
var SDK_VERSION = "5.6.0";
|
|
840
840
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
841
841
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
842
842
|
function sdkHeaders() {
|