@feelflow/ffid-sdk 11.0.0 → 12.0.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-QORWLPWG.js → chunk-OL7KVPQ4.js} +1 -1
- package/dist/{chunk-VR3QR64A.cjs → chunk-XRWDTYA7.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-By_vcKYu.d.ts → ffid-client-ByfZA9sJ.d.ts} +2 -1
- package/dist/{ffid-client-C3A8L9uW.d.cts → ffid-client-DW8_m1_M.d.cts} +2 -1
- package/dist/{index-BknVfXhZ.d.cts → index-f9k9reXO.d.cts} +2 -1
- package/dist/{index-BknVfXhZ.d.ts → index-f9k9reXO.d.ts} +2 -1
- package/dist/index.cjs +91 -91
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/server/index.cjs +36 -9
- package/dist/server/index.d.cts +22 -10
- package/dist/server/index.d.ts +22 -10
- package/dist/server/index.js +36 -9
- package/dist/server/test/index.d.cts +1 -1
- package/dist/server/test/index.d.ts +1 -1
- package/dist/webhooks/index.d.cts +13 -2
- package/dist/webhooks/index.d.ts +13 -2
- package/package.json +1 -1
|
@@ -1390,7 +1390,7 @@ var FFID_ORGANIZATION_PROFILE_ERROR_CODES = {
|
|
|
1390
1390
|
};
|
|
1391
1391
|
|
|
1392
1392
|
// src/client/version-check.ts
|
|
1393
|
-
var SDK_VERSION = "
|
|
1393
|
+
var SDK_VERSION = "12.0.0";
|
|
1394
1394
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
1395
1395
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
1396
1396
|
function sdkHeaders() {
|
|
@@ -1392,7 +1392,7 @@ var FFID_ORGANIZATION_PROFILE_ERROR_CODES = {
|
|
|
1392
1392
|
};
|
|
1393
1393
|
|
|
1394
1394
|
// src/client/version-check.ts
|
|
1395
|
-
var SDK_VERSION = "
|
|
1395
|
+
var SDK_VERSION = "12.0.0";
|
|
1396
1396
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
1397
1397
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
1398
1398
|
function sdkHeaders() {
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXRWDTYA7_cjs = require('../chunk-XRWDTYA7.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 chunkXRWDTYA7_cjs.FFIDAnnouncementBadge; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkXRWDTYA7_cjs.FFIDAnnouncementList; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkXRWDTYA7_cjs.FFIDInquiryForm; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkXRWDTYA7_cjs.FFIDLoginButton; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkXRWDTYA7_cjs.FFIDOrganizationSwitcher; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkXRWDTYA7_cjs.FFIDSubscriptionBadge; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkXRWDTYA7_cjs.FFIDUserMenu; }
|
|
34
34
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a8 as FFIDAnnouncementBadge, bk as FFIDAnnouncementBadgeClassNames, bl as FFIDAnnouncementBadgeProps, a9 as FFIDAnnouncementList, bm as FFIDAnnouncementListClassNames, bn as FFIDAnnouncementListProps, ar as FFIDInquiryForm, as as FFIDInquiryFormCategoryItem, at as FFIDInquiryFormClassNames, au as FFIDInquiryFormLegalLayout, av as FFIDInquiryFormOrganization, aw as FFIDInquiryFormPlaceholderContext, ax as FFIDInquiryFormPrefill, ay as FFIDInquiryFormProps, az as FFIDInquiryFormSubmitData, aA as FFIDInquiryFormSubmitResult, aC as FFIDLoginButton, bo as FFIDLoginButtonProps, aE as FFIDOrganizationSwitcher, bp as FFIDOrganizationSwitcherClassNames, bq as FFIDOrganizationSwitcherProps, aS as FFIDSubscriptionBadge, br as FFIDSubscriptionBadgeClassNames, bs as FFIDSubscriptionBadgeProps, aW as FFIDUserMenu, bt as FFIDUserMenuClassNames, bu as FFIDUserMenuProps } from '../index-
|
|
1
|
+
export { a8 as FFIDAnnouncementBadge, bk as FFIDAnnouncementBadgeClassNames, bl as FFIDAnnouncementBadgeProps, a9 as FFIDAnnouncementList, bm as FFIDAnnouncementListClassNames, bn as FFIDAnnouncementListProps, ar as FFIDInquiryForm, as as FFIDInquiryFormCategoryItem, at as FFIDInquiryFormClassNames, au as FFIDInquiryFormLegalLayout, av as FFIDInquiryFormOrganization, aw as FFIDInquiryFormPlaceholderContext, ax as FFIDInquiryFormPrefill, ay as FFIDInquiryFormProps, az as FFIDInquiryFormSubmitData, aA as FFIDInquiryFormSubmitResult, aC as FFIDLoginButton, bo as FFIDLoginButtonProps, aE as FFIDOrganizationSwitcher, bp as FFIDOrganizationSwitcherClassNames, bq as FFIDOrganizationSwitcherProps, aS as FFIDSubscriptionBadge, br as FFIDSubscriptionBadgeClassNames, bs as FFIDSubscriptionBadgeProps, aW as FFIDUserMenu, bt as FFIDUserMenuClassNames, bu as FFIDUserMenuProps } from '../index-f9k9reXO.cjs';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a8 as FFIDAnnouncementBadge, bk as FFIDAnnouncementBadgeClassNames, bl as FFIDAnnouncementBadgeProps, a9 as FFIDAnnouncementList, bm as FFIDAnnouncementListClassNames, bn as FFIDAnnouncementListProps, ar as FFIDInquiryForm, as as FFIDInquiryFormCategoryItem, at as FFIDInquiryFormClassNames, au as FFIDInquiryFormLegalLayout, av as FFIDInquiryFormOrganization, aw as FFIDInquiryFormPlaceholderContext, ax as FFIDInquiryFormPrefill, ay as FFIDInquiryFormProps, az as FFIDInquiryFormSubmitData, aA as FFIDInquiryFormSubmitResult, aC as FFIDLoginButton, bo as FFIDLoginButtonProps, aE as FFIDOrganizationSwitcher, bp as FFIDOrganizationSwitcherClassNames, bq as FFIDOrganizationSwitcherProps, aS as FFIDSubscriptionBadge, br as FFIDSubscriptionBadgeClassNames, bs as FFIDSubscriptionBadgeProps, aW as FFIDUserMenu, bt as FFIDUserMenuClassNames, bu as FFIDUserMenuProps } from '../index-
|
|
1
|
+
export { a8 as FFIDAnnouncementBadge, bk as FFIDAnnouncementBadgeClassNames, bl as FFIDAnnouncementBadgeProps, a9 as FFIDAnnouncementList, bm as FFIDAnnouncementListClassNames, bn as FFIDAnnouncementListProps, ar as FFIDInquiryForm, as as FFIDInquiryFormCategoryItem, at as FFIDInquiryFormClassNames, au as FFIDInquiryFormLegalLayout, av as FFIDInquiryFormOrganization, aw as FFIDInquiryFormPlaceholderContext, ax as FFIDInquiryFormPrefill, ay as FFIDInquiryFormProps, az as FFIDInquiryFormSubmitData, aA as FFIDInquiryFormSubmitResult, aC as FFIDLoginButton, bo as FFIDLoginButtonProps, aE as FFIDOrganizationSwitcher, bp as FFIDOrganizationSwitcherClassNames, bq as FFIDOrganizationSwitcherProps, aS as FFIDSubscriptionBadge, br as FFIDSubscriptionBadgeClassNames, bs as FFIDSubscriptionBadgeProps, aW as FFIDUserMenu, bt as FFIDUserMenuClassNames, bu as FFIDUserMenuProps } from '../index-f9k9reXO.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-OL7KVPQ4.js';
|
|
@@ -361,11 +361,12 @@ interface FFIDSubscribeResponse {
|
|
|
361
361
|
code: string;
|
|
362
362
|
name: string;
|
|
363
363
|
};
|
|
364
|
+
/** `priceMonthly` は `customPricing` プランで `null`(個別見積り)。11.1.0 で `FFIDPlanInfo` と揃えた */
|
|
364
365
|
plan: {
|
|
365
366
|
id: string;
|
|
366
367
|
code: string;
|
|
367
368
|
name: string;
|
|
368
|
-
priceMonthly: number;
|
|
369
|
+
priceMonthly: number | null;
|
|
369
370
|
priceYearly: number | null;
|
|
370
371
|
trialDays: number;
|
|
371
372
|
};
|
|
@@ -361,11 +361,12 @@ interface FFIDSubscribeResponse {
|
|
|
361
361
|
code: string;
|
|
362
362
|
name: string;
|
|
363
363
|
};
|
|
364
|
+
/** `priceMonthly` は `customPricing` プランで `null`(個別見積り)。11.1.0 で `FFIDPlanInfo` と揃えた */
|
|
364
365
|
plan: {
|
|
365
366
|
id: string;
|
|
366
367
|
code: string;
|
|
367
368
|
name: string;
|
|
368
|
-
priceMonthly: number;
|
|
369
|
+
priceMonthly: number | null;
|
|
369
370
|
priceYearly: number | null;
|
|
370
371
|
trialDays: number;
|
|
371
372
|
};
|
|
@@ -276,11 +276,12 @@ interface FFIDSubscribeResponse {
|
|
|
276
276
|
code: string;
|
|
277
277
|
name: string;
|
|
278
278
|
};
|
|
279
|
+
/** `priceMonthly` は `customPricing` プランで `null`(個別見積り)。11.1.0 で `FFIDPlanInfo` と揃えた */
|
|
279
280
|
plan: {
|
|
280
281
|
id: string;
|
|
281
282
|
code: string;
|
|
282
283
|
name: string;
|
|
283
|
-
priceMonthly: number;
|
|
284
|
+
priceMonthly: number | null;
|
|
284
285
|
priceYearly: number | null;
|
|
285
286
|
trialDays: number;
|
|
286
287
|
};
|
|
@@ -276,11 +276,12 @@ interface FFIDSubscribeResponse {
|
|
|
276
276
|
code: string;
|
|
277
277
|
name: string;
|
|
278
278
|
};
|
|
279
|
+
/** `priceMonthly` は `customPricing` プランで `null`(個別見積り)。11.1.0 で `FFIDPlanInfo` と揃えた */
|
|
279
280
|
plan: {
|
|
280
281
|
id: string;
|
|
281
282
|
code: string;
|
|
282
283
|
name: string;
|
|
283
|
-
priceMonthly: number;
|
|
284
|
+
priceMonthly: number | null;
|
|
284
285
|
priceYearly: number | null;
|
|
285
286
|
trialDays: number;
|
|
286
287
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXRWDTYA7_cjs = require('./chunk-XRWDTYA7.cjs');
|
|
4
4
|
var chunkRZCQ22GH_cjs = require('./chunk-RZCQ22GH.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 } = chunkXRWDTYA7_cjs.useFFIDContext();
|
|
58
|
+
const { effectiveStatus, isBlocked, isGrace } = chunkXRWDTYA7_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 } = chunkXRWDTYA7_cjs.useFFIDContext();
|
|
80
80
|
const hasRedirected = react.useRef(false);
|
|
81
81
|
react.useEffect(() => {
|
|
82
82
|
if (!isLoading && !isAuthenticated && options.redirectToLogin && !hasRedirected.current) {
|
|
@@ -105,351 +105,351 @@ 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 chunkXRWDTYA7_cjs.ACCESS_GRANTING_EFFECTIVE_STATUSES; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "AGENCY_INVITE_COOKIE_MAX_AGE_SEC", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkXRWDTYA7_cjs.AGENCY_INVITE_COOKIE_MAX_AGE_SEC; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "AGENCY_INVITE_COOKIE_NAME", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkXRWDTYA7_cjs.AGENCY_INVITE_COOKIE_NAME; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "AGENCY_INVITE_TOKEN_PARAM", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkXRWDTYA7_cjs.AGENCY_INVITE_TOKEN_PARAM; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "AGENCY_INVITE_TOKEN_REDACTION", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkXRWDTYA7_cjs.AGENCY_INVITE_TOKEN_REDACTION; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "BLOCKING_EFFECTIVE_STATUSES", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkXRWDTYA7_cjs.BLOCKING_EFFECTIVE_STATUSES; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "CATALOG_HASH_PATTERN", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkXRWDTYA7_cjs.CATALOG_HASH_PATTERN; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "DEFAULT_API_BASE_URL", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkXRWDTYA7_cjs.DEFAULT_API_BASE_URL; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "DEFAULT_OAUTH_SCOPES", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkXRWDTYA7_cjs.DEFAULT_OAUTH_SCOPES; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "EFFECTIVE_SUBSCRIPTION_STATUSES", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkXRWDTYA7_cjs.EFFECTIVE_SUBSCRIPTION_STATUSES; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "FFIDAnnouncementBadge", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkXRWDTYA7_cjs.FFIDAnnouncementBadge; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkXRWDTYA7_cjs.FFIDAnnouncementList; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "FFIDCatalogHashError", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkXRWDTYA7_cjs.FFIDCatalogHashError; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkXRWDTYA7_cjs.FFIDInquiryForm; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkXRWDTYA7_cjs.FFIDLoginButton; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkXRWDTYA7_cjs.FFIDOrganizationSwitcher; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "FFIDProvider", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkXRWDTYA7_cjs.FFIDProvider; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "FFIDSDKError", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkXRWDTYA7_cjs.FFIDSDKError; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkXRWDTYA7_cjs.FFIDSubscriptionBadge; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkXRWDTYA7_cjs.FFIDUserMenu; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "FFID_ANNOUNCEMENTS_ERROR_CODES", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_ANNOUNCEMENTS_ERROR_CODES; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "FFID_CATALOG_ENVIRONMENTS", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_CATALOG_ENVIRONMENTS; }
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "FFID_CATALOG_PUBLICATION_STATUSES", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_CATALOG_PUBLICATION_STATUSES; }
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "FFID_COMPANY_SIZE_CODES", {
|
|
203
203
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_COMPANY_SIZE_CODES; }
|
|
205
205
|
});
|
|
206
206
|
Object.defineProperty(exports, "FFID_CREDITS_CONSUME_MAX_AMOUNT", {
|
|
207
207
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_CREDITS_CONSUME_MAX_AMOUNT; }
|
|
209
209
|
});
|
|
210
210
|
Object.defineProperty(exports, "FFID_CREDITS_CONSUME_MIN_AMOUNT", {
|
|
211
211
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_CREDITS_CONSUME_MIN_AMOUNT; }
|
|
213
213
|
});
|
|
214
214
|
Object.defineProperty(exports, "FFID_CREDITS_ERROR_CODES", {
|
|
215
215
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_CREDITS_ERROR_CODES; }
|
|
217
217
|
});
|
|
218
218
|
Object.defineProperty(exports, "FFID_CREDITS_FEATURE_PATTERN", {
|
|
219
219
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_CREDITS_FEATURE_PATTERN; }
|
|
221
221
|
});
|
|
222
222
|
Object.defineProperty(exports, "FFID_CREDITS_HISTORY_DEFAULT_LIMIT", {
|
|
223
223
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_CREDITS_HISTORY_DEFAULT_LIMIT; }
|
|
225
225
|
});
|
|
226
226
|
Object.defineProperty(exports, "FFID_CREDITS_HISTORY_MAX_LIMIT", {
|
|
227
227
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_CREDITS_HISTORY_MAX_LIMIT; }
|
|
229
229
|
});
|
|
230
230
|
Object.defineProperty(exports, "FFID_CREDITS_HISTORY_MIN_LIMIT", {
|
|
231
231
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_CREDITS_HISTORY_MIN_LIMIT; }
|
|
233
233
|
});
|
|
234
234
|
Object.defineProperty(exports, "FFID_CREDITS_IDEMPOTENCY_KEY_PATTERN", {
|
|
235
235
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_CREDITS_IDEMPOTENCY_KEY_PATTERN; }
|
|
237
237
|
});
|
|
238
238
|
Object.defineProperty(exports, "FFID_CREDITS_LOW_THRESHOLD_PERCENT", {
|
|
239
239
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_CREDITS_LOW_THRESHOLD_PERCENT; }
|
|
241
241
|
});
|
|
242
242
|
Object.defineProperty(exports, "FFID_CREDITS_METADATA_MAX_BYTES", {
|
|
243
243
|
enumerable: true,
|
|
244
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_CREDITS_METADATA_MAX_BYTES; }
|
|
245
245
|
});
|
|
246
246
|
Object.defineProperty(exports, "FFID_CREDIT_GRANT_KINDS", {
|
|
247
247
|
enumerable: true,
|
|
248
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_CREDIT_GRANT_KINDS; }
|
|
249
249
|
});
|
|
250
250
|
Object.defineProperty(exports, "FFID_CREDIT_HISTORY_TYPES", {
|
|
251
251
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_CREDIT_HISTORY_TYPES; }
|
|
253
253
|
});
|
|
254
254
|
Object.defineProperty(exports, "FFID_CREDIT_PACK_MAX_QUANTITY", {
|
|
255
255
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_CREDIT_PACK_MAX_QUANTITY; }
|
|
257
257
|
});
|
|
258
258
|
Object.defineProperty(exports, "FFID_CREDIT_PACK_MIN_QUANTITY", {
|
|
259
259
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_CREDIT_PACK_MIN_QUANTITY; }
|
|
261
261
|
});
|
|
262
262
|
Object.defineProperty(exports, "FFID_ERROR_CODES", {
|
|
263
263
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
264
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_ERROR_CODES; }
|
|
265
265
|
});
|
|
266
266
|
Object.defineProperty(exports, "FFID_INDUSTRY_CODES", {
|
|
267
267
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_INDUSTRY_CODES; }
|
|
269
269
|
});
|
|
270
270
|
Object.defineProperty(exports, "FFID_INQUIRY_ACQUISITION_SOURCES", {
|
|
271
271
|
enumerable: true,
|
|
272
|
-
get: function () { return
|
|
272
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_INQUIRY_ACQUISITION_SOURCES; }
|
|
273
273
|
});
|
|
274
274
|
Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES", {
|
|
275
275
|
enumerable: true,
|
|
276
|
-
get: function () { return
|
|
276
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_INQUIRY_CATEGORIES; }
|
|
277
277
|
});
|
|
278
278
|
Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES_SITE_2026", {
|
|
279
279
|
enumerable: true,
|
|
280
|
-
get: function () { return
|
|
280
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_INQUIRY_CATEGORIES_SITE_2026; }
|
|
281
281
|
});
|
|
282
282
|
Object.defineProperty(exports, "FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES", {
|
|
283
283
|
enumerable: true,
|
|
284
|
-
get: function () { return
|
|
284
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES; }
|
|
285
285
|
});
|
|
286
286
|
Object.defineProperty(exports, "FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB", {
|
|
287
287
|
enumerable: true,
|
|
288
|
-
get: function () { return
|
|
288
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB; }
|
|
289
289
|
});
|
|
290
290
|
Object.defineProperty(exports, "FFID_OAUTH_DENIAL_REASONS", {
|
|
291
291
|
enumerable: true,
|
|
292
|
-
get: function () { return
|
|
292
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_OAUTH_DENIAL_REASONS; }
|
|
293
293
|
});
|
|
294
294
|
Object.defineProperty(exports, "FFID_ORGANIZATION_PROFILE_ERROR_CODES", {
|
|
295
295
|
enumerable: true,
|
|
296
|
-
get: function () { return
|
|
296
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_ORGANIZATION_PROFILE_ERROR_CODES; }
|
|
297
297
|
});
|
|
298
298
|
Object.defineProperty(exports, "FFID_SUBSCRIPTION_ERROR_CODES", {
|
|
299
299
|
enumerable: true,
|
|
300
|
-
get: function () { return
|
|
300
|
+
get: function () { return chunkXRWDTYA7_cjs.FFID_SUBSCRIPTION_ERROR_CODES; }
|
|
301
301
|
});
|
|
302
302
|
Object.defineProperty(exports, "canonicalizeCatalogValue", {
|
|
303
303
|
enumerable: true,
|
|
304
|
-
get: function () { return
|
|
304
|
+
get: function () { return chunkXRWDTYA7_cjs.canonicalizeCatalogValue; }
|
|
305
305
|
});
|
|
306
306
|
Object.defineProperty(exports, "captureAgencyInviteToken", {
|
|
307
307
|
enumerable: true,
|
|
308
|
-
get: function () { return
|
|
308
|
+
get: function () { return chunkXRWDTYA7_cjs.captureAgencyInviteToken; }
|
|
309
309
|
});
|
|
310
310
|
Object.defineProperty(exports, "clearAgencyInviteToken", {
|
|
311
311
|
enumerable: true,
|
|
312
|
-
get: function () { return
|
|
312
|
+
get: function () { return chunkXRWDTYA7_cjs.clearAgencyInviteToken; }
|
|
313
313
|
});
|
|
314
314
|
Object.defineProperty(exports, "clearState", {
|
|
315
315
|
enumerable: true,
|
|
316
|
-
get: function () { return
|
|
316
|
+
get: function () { return chunkXRWDTYA7_cjs.cleanupStateStorage; }
|
|
317
317
|
});
|
|
318
318
|
Object.defineProperty(exports, "computeEffectiveStatusFromSession", {
|
|
319
319
|
enumerable: true,
|
|
320
|
-
get: function () { return
|
|
320
|
+
get: function () { return chunkXRWDTYA7_cjs.computeEffectiveStatusFromSession; }
|
|
321
321
|
});
|
|
322
322
|
Object.defineProperty(exports, "computeFFIDCheckoutCopyHash", {
|
|
323
323
|
enumerable: true,
|
|
324
|
-
get: function () { return
|
|
324
|
+
get: function () { return chunkXRWDTYA7_cjs.computeFFIDCheckoutCopyHash; }
|
|
325
325
|
});
|
|
326
326
|
Object.defineProperty(exports, "computeLegalDisclosureHash", {
|
|
327
327
|
enumerable: true,
|
|
328
|
-
get: function () { return
|
|
328
|
+
get: function () { return chunkXRWDTYA7_cjs.computeLegalDisclosureHash; }
|
|
329
329
|
});
|
|
330
330
|
Object.defineProperty(exports, "computePaymentConfigurationHash", {
|
|
331
331
|
enumerable: true,
|
|
332
|
-
get: function () { return
|
|
332
|
+
get: function () { return chunkXRWDTYA7_cjs.computePaymentConfigurationHash; }
|
|
333
333
|
});
|
|
334
334
|
Object.defineProperty(exports, "computePraxisCopyHash", {
|
|
335
335
|
enumerable: true,
|
|
336
|
-
get: function () { return
|
|
336
|
+
get: function () { return chunkXRWDTYA7_cjs.computePraxisCopyHash; }
|
|
337
337
|
});
|
|
338
338
|
Object.defineProperty(exports, "computeScopeHash", {
|
|
339
339
|
enumerable: true,
|
|
340
|
-
get: function () { return
|
|
340
|
+
get: function () { return chunkXRWDTYA7_cjs.computeScopeHash; }
|
|
341
341
|
});
|
|
342
342
|
Object.defineProperty(exports, "computeTaxConfigurationHash", {
|
|
343
343
|
enumerable: true,
|
|
344
|
-
get: function () { return
|
|
344
|
+
get: function () { return chunkXRWDTYA7_cjs.computeTaxConfigurationHash; }
|
|
345
345
|
});
|
|
346
346
|
Object.defineProperty(exports, "createFFIDAnnouncementsClient", {
|
|
347
347
|
enumerable: true,
|
|
348
|
-
get: function () { return
|
|
348
|
+
get: function () { return chunkXRWDTYA7_cjs.createFFIDAnnouncementsClient; }
|
|
349
349
|
});
|
|
350
350
|
Object.defineProperty(exports, "createFFIDClient", {
|
|
351
351
|
enumerable: true,
|
|
352
|
-
get: function () { return
|
|
352
|
+
get: function () { return chunkXRWDTYA7_cjs.createFFIDClient; }
|
|
353
353
|
});
|
|
354
354
|
Object.defineProperty(exports, "createTokenStore", {
|
|
355
355
|
enumerable: true,
|
|
356
|
-
get: function () { return
|
|
356
|
+
get: function () { return chunkXRWDTYA7_cjs.createTokenStore; }
|
|
357
357
|
});
|
|
358
358
|
Object.defineProperty(exports, "generateCodeChallenge", {
|
|
359
359
|
enumerable: true,
|
|
360
|
-
get: function () { return
|
|
360
|
+
get: function () { return chunkXRWDTYA7_cjs.generateCodeChallenge; }
|
|
361
361
|
});
|
|
362
362
|
Object.defineProperty(exports, "generateCodeVerifier", {
|
|
363
363
|
enumerable: true,
|
|
364
|
-
get: function () { return
|
|
364
|
+
get: function () { return chunkXRWDTYA7_cjs.generateCodeVerifier; }
|
|
365
365
|
});
|
|
366
366
|
Object.defineProperty(exports, "getFFIDAuthorizationError", {
|
|
367
367
|
enumerable: true,
|
|
368
|
-
get: function () { return
|
|
368
|
+
get: function () { return chunkXRWDTYA7_cjs.getFFIDAuthorizationError; }
|
|
369
369
|
});
|
|
370
370
|
Object.defineProperty(exports, "handleRedirectCallback", {
|
|
371
371
|
enumerable: true,
|
|
372
|
-
get: function () { return
|
|
372
|
+
get: function () { return chunkXRWDTYA7_cjs.handleRedirectCallback; }
|
|
373
373
|
});
|
|
374
374
|
Object.defineProperty(exports, "hasAccessFromUserinfo", {
|
|
375
375
|
enumerable: true,
|
|
376
|
-
get: function () { return
|
|
376
|
+
get: function () { return chunkXRWDTYA7_cjs.hasAccessFromUserinfo; }
|
|
377
377
|
});
|
|
378
378
|
Object.defineProperty(exports, "hashCanonicalJson", {
|
|
379
379
|
enumerable: true,
|
|
380
|
-
get: function () { return
|
|
380
|
+
get: function () { return chunkXRWDTYA7_cjs.hashCanonicalJson; }
|
|
381
381
|
});
|
|
382
382
|
Object.defineProperty(exports, "isBlockedFromUserinfo", {
|
|
383
383
|
enumerable: true,
|
|
384
|
-
get: function () { return
|
|
384
|
+
get: function () { return chunkXRWDTYA7_cjs.isBlockedFromUserinfo; }
|
|
385
385
|
});
|
|
386
386
|
Object.defineProperty(exports, "isFFIDInquiryAcquisitionSource", {
|
|
387
387
|
enumerable: true,
|
|
388
|
-
get: function () { return
|
|
388
|
+
get: function () { return chunkXRWDTYA7_cjs.isFFIDInquiryAcquisitionSource; }
|
|
389
389
|
});
|
|
390
390
|
Object.defineProperty(exports, "isFFIDInquiryCategorySite2026", {
|
|
391
391
|
enumerable: true,
|
|
392
|
-
get: function () { return
|
|
392
|
+
get: function () { return chunkXRWDTYA7_cjs.isFFIDInquiryCategorySite2026; }
|
|
393
393
|
});
|
|
394
394
|
Object.defineProperty(exports, "isFFIDOAuthDenialReason", {
|
|
395
395
|
enumerable: true,
|
|
396
|
-
get: function () { return
|
|
396
|
+
get: function () { return chunkXRWDTYA7_cjs.isFFIDOAuthDenialReason; }
|
|
397
397
|
});
|
|
398
398
|
Object.defineProperty(exports, "normalizeRedirectUri", {
|
|
399
399
|
enumerable: true,
|
|
400
|
-
get: function () { return
|
|
400
|
+
get: function () { return chunkXRWDTYA7_cjs.normalizeRedirectUri; }
|
|
401
401
|
});
|
|
402
402
|
Object.defineProperty(exports, "readAgencyInviteCookie", {
|
|
403
403
|
enumerable: true,
|
|
404
|
-
get: function () { return
|
|
404
|
+
get: function () { return chunkXRWDTYA7_cjs.readAgencyInviteCookie; }
|
|
405
405
|
});
|
|
406
406
|
Object.defineProperty(exports, "readAgencyInviteToken", {
|
|
407
407
|
enumerable: true,
|
|
408
|
-
get: function () { return
|
|
408
|
+
get: function () { return chunkXRWDTYA7_cjs.readAgencyInviteToken; }
|
|
409
409
|
});
|
|
410
410
|
Object.defineProperty(exports, "redactAgencyInviteToken", {
|
|
411
411
|
enumerable: true,
|
|
412
|
-
get: function () { return
|
|
412
|
+
get: function () { return chunkXRWDTYA7_cjs.redactAgencyInviteToken; }
|
|
413
413
|
});
|
|
414
414
|
Object.defineProperty(exports, "retrieveCodeVerifier", {
|
|
415
415
|
enumerable: true,
|
|
416
|
-
get: function () { return
|
|
416
|
+
get: function () { return chunkXRWDTYA7_cjs.retrieveCodeVerifier; }
|
|
417
417
|
});
|
|
418
418
|
Object.defineProperty(exports, "retrieveState", {
|
|
419
419
|
enumerable: true,
|
|
420
|
-
get: function () { return
|
|
420
|
+
get: function () { return chunkXRWDTYA7_cjs.retrieveState; }
|
|
421
421
|
});
|
|
422
422
|
Object.defineProperty(exports, "sha256Hex", {
|
|
423
423
|
enumerable: true,
|
|
424
|
-
get: function () { return
|
|
424
|
+
get: function () { return chunkXRWDTYA7_cjs.sha256Hex; }
|
|
425
425
|
});
|
|
426
426
|
Object.defineProperty(exports, "storeCodeVerifier", {
|
|
427
427
|
enumerable: true,
|
|
428
|
-
get: function () { return
|
|
428
|
+
get: function () { return chunkXRWDTYA7_cjs.storeCodeVerifier; }
|
|
429
429
|
});
|
|
430
430
|
Object.defineProperty(exports, "storeState", {
|
|
431
431
|
enumerable: true,
|
|
432
|
-
get: function () { return
|
|
432
|
+
get: function () { return chunkXRWDTYA7_cjs.storeState; }
|
|
433
433
|
});
|
|
434
434
|
Object.defineProperty(exports, "useFFID", {
|
|
435
435
|
enumerable: true,
|
|
436
|
-
get: function () { return
|
|
436
|
+
get: function () { return chunkXRWDTYA7_cjs.useFFID; }
|
|
437
437
|
});
|
|
438
438
|
Object.defineProperty(exports, "useFFIDAnnouncements", {
|
|
439
439
|
enumerable: true,
|
|
440
|
-
get: function () { return
|
|
440
|
+
get: function () { return chunkXRWDTYA7_cjs.useFFIDAnnouncements; }
|
|
441
441
|
});
|
|
442
442
|
Object.defineProperty(exports, "useSubscription", {
|
|
443
443
|
enumerable: true,
|
|
444
|
-
get: function () { return
|
|
444
|
+
get: function () { return chunkXRWDTYA7_cjs.useSubscription; }
|
|
445
445
|
});
|
|
446
446
|
Object.defineProperty(exports, "validatePublishedCatalog", {
|
|
447
447
|
enumerable: true,
|
|
448
|
-
get: function () { return
|
|
448
|
+
get: function () { return chunkXRWDTYA7_cjs.validatePublishedCatalog; }
|
|
449
449
|
});
|
|
450
450
|
Object.defineProperty(exports, "withSubscription", {
|
|
451
451
|
enumerable: true,
|
|
452
|
-
get: function () { return
|
|
452
|
+
get: function () { return chunkXRWDTYA7_cjs.withSubscription; }
|
|
453
453
|
});
|
|
454
454
|
Object.defineProperty(exports, "ALL_DENIED_EXCEPT_NECESSARY", {
|
|
455
455
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDOAuthUserInfoSubscription, a as FFIDAccountType, b as FFIDPrompt, c as FFIDConfig, d as FFIDApiResponse, e as FFIDSessionResponse, f as FFIDSignOutResult, g as FFIDError, h as FFIDSubscriptionCheckResponse, i as FFIDCheckServiceAccessParams, j as FFIDServiceAccessDecision, k as FFIDAnalyticsConfig, l as FFIDSeatsSummary, m as FFIDListPlansResponse, n as FFIDPublishedCatalog, o as FFIDSubscriptionDetail, p as FFIDSubscribeParams, q as FFIDSubscribeResponse, r as FFIDChangePlanParams, s as FFIDChangePlanResponse, t as FFIDCancelSubscriptionParams, u as FFIDCancelSubscriptionResponse, v as FFIDCancelPendingDowngradeResponse, w as FFIDPreviewPlanChangeParams, x as FFIDPlanChangePreviewResponse, y as FFIDPreviewSeatChangeParams, z as FFIDSeatChangePreviewResponse, A as FFIDVerifyAccessTokenOptions, B as FFIDOAuthUserInfo, C as FFIDInquiryCreateParams, D as FFIDInquiryCreateResponse, E as FFIDCreditBalance, G as FFIDListCreditHistoryOptions, H as FFIDCreditHistoryPage, I as FFIDCreditPackList, J as FFIDCreatePackCheckoutParams, K as FFIDCreditPackCheckout, L as FFIDCreditConsumeParams, M as FFIDCreditConsumeResult, N as FFIDBuyCreditsUrlParams, T as TokenStore, O as FFIDAuthMode, P as FFIDLogger, Q as FFIDCacheAdapter, R as FFIDUser, S as FFIDOrganization, U as FFIDSubscription, V as FFIDSubscriptionContextValue, W as EffectiveSubscriptionStatus, X as FFIDSubscriptionStatus, Y as FFIDCatalogEnvironment, Z as FFIDBillingInterval, _ as FFIDTaxBehavior, $ as FFIDAnnouncementsClientConfig, a0 as ListAnnouncementsOptions, a1 as FFIDAnnouncementsApiResponse, a2 as AnnouncementListResponse, a3 as FFIDAnnouncementsLogger } from './index-
|
|
2
|
-
export { a4 as Announcement, a5 as AnnouncementStatus, a6 as AnnouncementType, a7 as EFFECTIVE_SUBSCRIPTION_STATUSES, a8 as FFIDAnnouncementBadge, a9 as FFIDAnnouncementList, aa as FFIDAnnouncementsError, ab as FFIDAnnouncementsErrorCode, ac as FFIDAnnouncementsServerResponse, ad as FFIDApiResponseMeta, ae as FFIDCacheConfig, af as FFIDCatalogPublication, ag as FFIDCatalogPublicationStatus, ah as FFIDContextValue, ai as FFIDCreditBreakdown, aj as FFIDCreditGrantKind, ak as FFIDCreditHistoryItem, al as FFIDCreditHistoryType, am as FFIDCreditPack, an as FFIDCreditsInsufficientDetails, ao as FFIDInquiryAcquisitionSource, ap as FFIDInquiryCategory, aq as FFIDInquiryCategorySite2026, ar as FFIDInquiryForm, as as FFIDInquiryFormCategoryItem, at as FFIDInquiryFormClassNames, au as FFIDInquiryFormLegalLayout, av as FFIDInquiryFormOrganization, aw as FFIDInquiryFormPlaceholderContext, ax as FFIDInquiryFormPrefill, ay as FFIDInquiryFormProps, az as FFIDInquiryFormSubmitData, aA as FFIDInquiryFormSubmitResult, aB as FFIDJwtClaims, aC as FFIDLoginButton, aD as FFIDOAuthUserInfoMemberRole, aE as FFIDOrganizationSwitcher, aF as FFIDPlanChangeLineItem, aG as FFIDPlanChangePreview, aH as FFIDPlanInfo, aI as FFIDPricingModel, aJ as FFIDPublishedPlan, aK as FFIDSeatAssignmentClaim, aL as FFIDSeatAssignmentStatus, aM as FFIDSeatChangeLineItem, aN as FFIDSeatChangePreview, aO as FFIDSeatModel, aP as FFIDServiceAccessDenialReason, aQ as FFIDServiceAccessFailPolicy, aR as FFIDServiceInfo, aS as FFIDSubscriptionBadge, aT as FFIDSubscriptionCheckCredits, aU as FFIDSubscriptionSummary, aV as FFIDSupportedCurrency, aW as FFIDUserMenu, aX as FFID_CATALOG_ENVIRONMENTS, aY as FFID_CATALOG_PUBLICATION_STATUSES, aZ as FFID_CREDITS_CONSUME_MAX_AMOUNT, a_ as FFID_CREDITS_CONSUME_MIN_AMOUNT, a$ as FFID_CREDITS_FEATURE_PATTERN, b0 as FFID_CREDITS_HISTORY_DEFAULT_LIMIT, b1 as FFID_CREDITS_HISTORY_MAX_LIMIT, b2 as FFID_CREDITS_HISTORY_MIN_LIMIT, b3 as FFID_CREDITS_IDEMPOTENCY_KEY_PATTERN, b4 as FFID_CREDITS_LOW_THRESHOLD_PERCENT, b5 as FFID_CREDITS_METADATA_MAX_BYTES, b6 as FFID_CREDIT_GRANT_KINDS, b7 as FFID_CREDIT_HISTORY_TYPES, b8 as FFID_CREDIT_PACK_MAX_QUANTITY, b9 as FFID_CREDIT_PACK_MIN_QUANTITY, ba as FFID_INQUIRY_ACQUISITION_SOURCES, bb as FFID_INQUIRY_CATEGORIES, bc as FFID_INQUIRY_CATEGORIES_SITE_2026, bd as TokenData, be as UseFFIDAnnouncementsOptions, bf as UseFFIDAnnouncementsReturn, bg as createTokenStore, bh as isFFIDInquiryAcquisitionSource, bi as isFFIDInquiryCategorySite2026, bj as useFFIDAnnouncements } from './index-
|
|
1
|
+
import { F as FFIDOAuthUserInfoSubscription, a as FFIDAccountType, b as FFIDPrompt, c as FFIDConfig, d as FFIDApiResponse, e as FFIDSessionResponse, f as FFIDSignOutResult, g as FFIDError, h as FFIDSubscriptionCheckResponse, i as FFIDCheckServiceAccessParams, j as FFIDServiceAccessDecision, k as FFIDAnalyticsConfig, l as FFIDSeatsSummary, m as FFIDListPlansResponse, n as FFIDPublishedCatalog, o as FFIDSubscriptionDetail, p as FFIDSubscribeParams, q as FFIDSubscribeResponse, r as FFIDChangePlanParams, s as FFIDChangePlanResponse, t as FFIDCancelSubscriptionParams, u as FFIDCancelSubscriptionResponse, v as FFIDCancelPendingDowngradeResponse, w as FFIDPreviewPlanChangeParams, x as FFIDPlanChangePreviewResponse, y as FFIDPreviewSeatChangeParams, z as FFIDSeatChangePreviewResponse, A as FFIDVerifyAccessTokenOptions, B as FFIDOAuthUserInfo, C as FFIDInquiryCreateParams, D as FFIDInquiryCreateResponse, E as FFIDCreditBalance, G as FFIDListCreditHistoryOptions, H as FFIDCreditHistoryPage, I as FFIDCreditPackList, J as FFIDCreatePackCheckoutParams, K as FFIDCreditPackCheckout, L as FFIDCreditConsumeParams, M as FFIDCreditConsumeResult, N as FFIDBuyCreditsUrlParams, T as TokenStore, O as FFIDAuthMode, P as FFIDLogger, Q as FFIDCacheAdapter, R as FFIDUser, S as FFIDOrganization, U as FFIDSubscription, V as FFIDSubscriptionContextValue, W as EffectiveSubscriptionStatus, X as FFIDSubscriptionStatus, Y as FFIDCatalogEnvironment, Z as FFIDBillingInterval, _ as FFIDTaxBehavior, $ as FFIDAnnouncementsClientConfig, a0 as ListAnnouncementsOptions, a1 as FFIDAnnouncementsApiResponse, a2 as AnnouncementListResponse, a3 as FFIDAnnouncementsLogger } from './index-f9k9reXO.cjs';
|
|
2
|
+
export { a4 as Announcement, a5 as AnnouncementStatus, a6 as AnnouncementType, a7 as EFFECTIVE_SUBSCRIPTION_STATUSES, a8 as FFIDAnnouncementBadge, a9 as FFIDAnnouncementList, aa as FFIDAnnouncementsError, ab as FFIDAnnouncementsErrorCode, ac as FFIDAnnouncementsServerResponse, ad as FFIDApiResponseMeta, ae as FFIDCacheConfig, af as FFIDCatalogPublication, ag as FFIDCatalogPublicationStatus, ah as FFIDContextValue, ai as FFIDCreditBreakdown, aj as FFIDCreditGrantKind, ak as FFIDCreditHistoryItem, al as FFIDCreditHistoryType, am as FFIDCreditPack, an as FFIDCreditsInsufficientDetails, ao as FFIDInquiryAcquisitionSource, ap as FFIDInquiryCategory, aq as FFIDInquiryCategorySite2026, ar as FFIDInquiryForm, as as FFIDInquiryFormCategoryItem, at as FFIDInquiryFormClassNames, au as FFIDInquiryFormLegalLayout, av as FFIDInquiryFormOrganization, aw as FFIDInquiryFormPlaceholderContext, ax as FFIDInquiryFormPrefill, ay as FFIDInquiryFormProps, az as FFIDInquiryFormSubmitData, aA as FFIDInquiryFormSubmitResult, aB as FFIDJwtClaims, aC as FFIDLoginButton, aD as FFIDOAuthUserInfoMemberRole, aE as FFIDOrganizationSwitcher, aF as FFIDPlanChangeLineItem, aG as FFIDPlanChangePreview, aH as FFIDPlanInfo, aI as FFIDPricingModel, aJ as FFIDPublishedPlan, aK as FFIDSeatAssignmentClaim, aL as FFIDSeatAssignmentStatus, aM as FFIDSeatChangeLineItem, aN as FFIDSeatChangePreview, aO as FFIDSeatModel, aP as FFIDServiceAccessDenialReason, aQ as FFIDServiceAccessFailPolicy, aR as FFIDServiceInfo, aS as FFIDSubscriptionBadge, aT as FFIDSubscriptionCheckCredits, aU as FFIDSubscriptionSummary, aV as FFIDSupportedCurrency, aW as FFIDUserMenu, aX as FFID_CATALOG_ENVIRONMENTS, aY as FFID_CATALOG_PUBLICATION_STATUSES, aZ as FFID_CREDITS_CONSUME_MAX_AMOUNT, a_ as FFID_CREDITS_CONSUME_MIN_AMOUNT, a$ as FFID_CREDITS_FEATURE_PATTERN, b0 as FFID_CREDITS_HISTORY_DEFAULT_LIMIT, b1 as FFID_CREDITS_HISTORY_MAX_LIMIT, b2 as FFID_CREDITS_HISTORY_MIN_LIMIT, b3 as FFID_CREDITS_IDEMPOTENCY_KEY_PATTERN, b4 as FFID_CREDITS_LOW_THRESHOLD_PERCENT, b5 as FFID_CREDITS_METADATA_MAX_BYTES, b6 as FFID_CREDIT_GRANT_KINDS, b7 as FFID_CREDIT_HISTORY_TYPES, b8 as FFID_CREDIT_PACK_MAX_QUANTITY, b9 as FFID_CREDIT_PACK_MIN_QUANTITY, ba as FFID_INQUIRY_ACQUISITION_SOURCES, bb as FFID_INQUIRY_CATEGORIES, bc as FFID_INQUIRY_CATEGORIES_SITE_2026, bd as TokenData, be as UseFFIDAnnouncementsOptions, bf as UseFFIDAnnouncementsReturn, bg as createTokenStore, bh as isFFIDInquiryAcquisitionSource, bi as isFFIDInquiryCategorySite2026, bj as useFFIDAnnouncements } from './index-f9k9reXO.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, n as FFIDAnalyticsProvider, o as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, q as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, v as FFIDConsentError, w as FFIDConsentErrorCode, x as FFIDConsentMergeStrategy, z as FFIDConsentMergeWarning, B as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, H as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, L as FFIDCookieBanner, M as FFIDCookieBannerClassNames, N as FFIDCookieBannerProps, O as FFIDCookieLink, Q as FFIDCookieLinkProps, f as FFIDCookiePolicy, S as FFIDCookieSettings, T as FFIDCookieSettingsClassNames, U as FFIDCookieSettingsProps, Z as FFID_CONSENT_ERROR_CODES, ad as UseFFIDConsentPreferencesReturn, ae as UseFFIDConsentReturn, af as clearConsentDismissalTimestamp, ai as decodeConsentCookie, ak as encodeConsentCookie, am as readConsentCookie, an as readConsentDismissalTimestamp, ap as useFFIDConsent, aq as useFFIDConsentPreferences, ar as writeConsentCookie, as as writeConsentDismissalTimestamp } from './FFIDCookieLink-yt5SUr-W.cjs';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { ReactNode, ComponentType, FC } from 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDOAuthUserInfoSubscription, a as FFIDAccountType, b as FFIDPrompt, c as FFIDConfig, d as FFIDApiResponse, e as FFIDSessionResponse, f as FFIDSignOutResult, g as FFIDError, h as FFIDSubscriptionCheckResponse, i as FFIDCheckServiceAccessParams, j as FFIDServiceAccessDecision, k as FFIDAnalyticsConfig, l as FFIDSeatsSummary, m as FFIDListPlansResponse, n as FFIDPublishedCatalog, o as FFIDSubscriptionDetail, p as FFIDSubscribeParams, q as FFIDSubscribeResponse, r as FFIDChangePlanParams, s as FFIDChangePlanResponse, t as FFIDCancelSubscriptionParams, u as FFIDCancelSubscriptionResponse, v as FFIDCancelPendingDowngradeResponse, w as FFIDPreviewPlanChangeParams, x as FFIDPlanChangePreviewResponse, y as FFIDPreviewSeatChangeParams, z as FFIDSeatChangePreviewResponse, A as FFIDVerifyAccessTokenOptions, B as FFIDOAuthUserInfo, C as FFIDInquiryCreateParams, D as FFIDInquiryCreateResponse, E as FFIDCreditBalance, G as FFIDListCreditHistoryOptions, H as FFIDCreditHistoryPage, I as FFIDCreditPackList, J as FFIDCreatePackCheckoutParams, K as FFIDCreditPackCheckout, L as FFIDCreditConsumeParams, M as FFIDCreditConsumeResult, N as FFIDBuyCreditsUrlParams, T as TokenStore, O as FFIDAuthMode, P as FFIDLogger, Q as FFIDCacheAdapter, R as FFIDUser, S as FFIDOrganization, U as FFIDSubscription, V as FFIDSubscriptionContextValue, W as EffectiveSubscriptionStatus, X as FFIDSubscriptionStatus, Y as FFIDCatalogEnvironment, Z as FFIDBillingInterval, _ as FFIDTaxBehavior, $ as FFIDAnnouncementsClientConfig, a0 as ListAnnouncementsOptions, a1 as FFIDAnnouncementsApiResponse, a2 as AnnouncementListResponse, a3 as FFIDAnnouncementsLogger } from './index-
|
|
2
|
-
export { a4 as Announcement, a5 as AnnouncementStatus, a6 as AnnouncementType, a7 as EFFECTIVE_SUBSCRIPTION_STATUSES, a8 as FFIDAnnouncementBadge, a9 as FFIDAnnouncementList, aa as FFIDAnnouncementsError, ab as FFIDAnnouncementsErrorCode, ac as FFIDAnnouncementsServerResponse, ad as FFIDApiResponseMeta, ae as FFIDCacheConfig, af as FFIDCatalogPublication, ag as FFIDCatalogPublicationStatus, ah as FFIDContextValue, ai as FFIDCreditBreakdown, aj as FFIDCreditGrantKind, ak as FFIDCreditHistoryItem, al as FFIDCreditHistoryType, am as FFIDCreditPack, an as FFIDCreditsInsufficientDetails, ao as FFIDInquiryAcquisitionSource, ap as FFIDInquiryCategory, aq as FFIDInquiryCategorySite2026, ar as FFIDInquiryForm, as as FFIDInquiryFormCategoryItem, at as FFIDInquiryFormClassNames, au as FFIDInquiryFormLegalLayout, av as FFIDInquiryFormOrganization, aw as FFIDInquiryFormPlaceholderContext, ax as FFIDInquiryFormPrefill, ay as FFIDInquiryFormProps, az as FFIDInquiryFormSubmitData, aA as FFIDInquiryFormSubmitResult, aB as FFIDJwtClaims, aC as FFIDLoginButton, aD as FFIDOAuthUserInfoMemberRole, aE as FFIDOrganizationSwitcher, aF as FFIDPlanChangeLineItem, aG as FFIDPlanChangePreview, aH as FFIDPlanInfo, aI as FFIDPricingModel, aJ as FFIDPublishedPlan, aK as FFIDSeatAssignmentClaim, aL as FFIDSeatAssignmentStatus, aM as FFIDSeatChangeLineItem, aN as FFIDSeatChangePreview, aO as FFIDSeatModel, aP as FFIDServiceAccessDenialReason, aQ as FFIDServiceAccessFailPolicy, aR as FFIDServiceInfo, aS as FFIDSubscriptionBadge, aT as FFIDSubscriptionCheckCredits, aU as FFIDSubscriptionSummary, aV as FFIDSupportedCurrency, aW as FFIDUserMenu, aX as FFID_CATALOG_ENVIRONMENTS, aY as FFID_CATALOG_PUBLICATION_STATUSES, aZ as FFID_CREDITS_CONSUME_MAX_AMOUNT, a_ as FFID_CREDITS_CONSUME_MIN_AMOUNT, a$ as FFID_CREDITS_FEATURE_PATTERN, b0 as FFID_CREDITS_HISTORY_DEFAULT_LIMIT, b1 as FFID_CREDITS_HISTORY_MAX_LIMIT, b2 as FFID_CREDITS_HISTORY_MIN_LIMIT, b3 as FFID_CREDITS_IDEMPOTENCY_KEY_PATTERN, b4 as FFID_CREDITS_LOW_THRESHOLD_PERCENT, b5 as FFID_CREDITS_METADATA_MAX_BYTES, b6 as FFID_CREDIT_GRANT_KINDS, b7 as FFID_CREDIT_HISTORY_TYPES, b8 as FFID_CREDIT_PACK_MAX_QUANTITY, b9 as FFID_CREDIT_PACK_MIN_QUANTITY, ba as FFID_INQUIRY_ACQUISITION_SOURCES, bb as FFID_INQUIRY_CATEGORIES, bc as FFID_INQUIRY_CATEGORIES_SITE_2026, bd as TokenData, be as UseFFIDAnnouncementsOptions, bf as UseFFIDAnnouncementsReturn, bg as createTokenStore, bh as isFFIDInquiryAcquisitionSource, bi as isFFIDInquiryCategorySite2026, bj as useFFIDAnnouncements } from './index-
|
|
1
|
+
import { F as FFIDOAuthUserInfoSubscription, a as FFIDAccountType, b as FFIDPrompt, c as FFIDConfig, d as FFIDApiResponse, e as FFIDSessionResponse, f as FFIDSignOutResult, g as FFIDError, h as FFIDSubscriptionCheckResponse, i as FFIDCheckServiceAccessParams, j as FFIDServiceAccessDecision, k as FFIDAnalyticsConfig, l as FFIDSeatsSummary, m as FFIDListPlansResponse, n as FFIDPublishedCatalog, o as FFIDSubscriptionDetail, p as FFIDSubscribeParams, q as FFIDSubscribeResponse, r as FFIDChangePlanParams, s as FFIDChangePlanResponse, t as FFIDCancelSubscriptionParams, u as FFIDCancelSubscriptionResponse, v as FFIDCancelPendingDowngradeResponse, w as FFIDPreviewPlanChangeParams, x as FFIDPlanChangePreviewResponse, y as FFIDPreviewSeatChangeParams, z as FFIDSeatChangePreviewResponse, A as FFIDVerifyAccessTokenOptions, B as FFIDOAuthUserInfo, C as FFIDInquiryCreateParams, D as FFIDInquiryCreateResponse, E as FFIDCreditBalance, G as FFIDListCreditHistoryOptions, H as FFIDCreditHistoryPage, I as FFIDCreditPackList, J as FFIDCreatePackCheckoutParams, K as FFIDCreditPackCheckout, L as FFIDCreditConsumeParams, M as FFIDCreditConsumeResult, N as FFIDBuyCreditsUrlParams, T as TokenStore, O as FFIDAuthMode, P as FFIDLogger, Q as FFIDCacheAdapter, R as FFIDUser, S as FFIDOrganization, U as FFIDSubscription, V as FFIDSubscriptionContextValue, W as EffectiveSubscriptionStatus, X as FFIDSubscriptionStatus, Y as FFIDCatalogEnvironment, Z as FFIDBillingInterval, _ as FFIDTaxBehavior, $ as FFIDAnnouncementsClientConfig, a0 as ListAnnouncementsOptions, a1 as FFIDAnnouncementsApiResponse, a2 as AnnouncementListResponse, a3 as FFIDAnnouncementsLogger } from './index-f9k9reXO.js';
|
|
2
|
+
export { a4 as Announcement, a5 as AnnouncementStatus, a6 as AnnouncementType, a7 as EFFECTIVE_SUBSCRIPTION_STATUSES, a8 as FFIDAnnouncementBadge, a9 as FFIDAnnouncementList, aa as FFIDAnnouncementsError, ab as FFIDAnnouncementsErrorCode, ac as FFIDAnnouncementsServerResponse, ad as FFIDApiResponseMeta, ae as FFIDCacheConfig, af as FFIDCatalogPublication, ag as FFIDCatalogPublicationStatus, ah as FFIDContextValue, ai as FFIDCreditBreakdown, aj as FFIDCreditGrantKind, ak as FFIDCreditHistoryItem, al as FFIDCreditHistoryType, am as FFIDCreditPack, an as FFIDCreditsInsufficientDetails, ao as FFIDInquiryAcquisitionSource, ap as FFIDInquiryCategory, aq as FFIDInquiryCategorySite2026, ar as FFIDInquiryForm, as as FFIDInquiryFormCategoryItem, at as FFIDInquiryFormClassNames, au as FFIDInquiryFormLegalLayout, av as FFIDInquiryFormOrganization, aw as FFIDInquiryFormPlaceholderContext, ax as FFIDInquiryFormPrefill, ay as FFIDInquiryFormProps, az as FFIDInquiryFormSubmitData, aA as FFIDInquiryFormSubmitResult, aB as FFIDJwtClaims, aC as FFIDLoginButton, aD as FFIDOAuthUserInfoMemberRole, aE as FFIDOrganizationSwitcher, aF as FFIDPlanChangeLineItem, aG as FFIDPlanChangePreview, aH as FFIDPlanInfo, aI as FFIDPricingModel, aJ as FFIDPublishedPlan, aK as FFIDSeatAssignmentClaim, aL as FFIDSeatAssignmentStatus, aM as FFIDSeatChangeLineItem, aN as FFIDSeatChangePreview, aO as FFIDSeatModel, aP as FFIDServiceAccessDenialReason, aQ as FFIDServiceAccessFailPolicy, aR as FFIDServiceInfo, aS as FFIDSubscriptionBadge, aT as FFIDSubscriptionCheckCredits, aU as FFIDSubscriptionSummary, aV as FFIDSupportedCurrency, aW as FFIDUserMenu, aX as FFID_CATALOG_ENVIRONMENTS, aY as FFID_CATALOG_PUBLICATION_STATUSES, aZ as FFID_CREDITS_CONSUME_MAX_AMOUNT, a_ as FFID_CREDITS_CONSUME_MIN_AMOUNT, a$ as FFID_CREDITS_FEATURE_PATTERN, b0 as FFID_CREDITS_HISTORY_DEFAULT_LIMIT, b1 as FFID_CREDITS_HISTORY_MAX_LIMIT, b2 as FFID_CREDITS_HISTORY_MIN_LIMIT, b3 as FFID_CREDITS_IDEMPOTENCY_KEY_PATTERN, b4 as FFID_CREDITS_LOW_THRESHOLD_PERCENT, b5 as FFID_CREDITS_METADATA_MAX_BYTES, b6 as FFID_CREDIT_GRANT_KINDS, b7 as FFID_CREDIT_HISTORY_TYPES, b8 as FFID_CREDIT_PACK_MAX_QUANTITY, b9 as FFID_CREDIT_PACK_MIN_QUANTITY, ba as FFID_INQUIRY_ACQUISITION_SOURCES, bb as FFID_INQUIRY_CATEGORIES, bc as FFID_INQUIRY_CATEGORIES_SITE_2026, bd as TokenData, be as UseFFIDAnnouncementsOptions, bf as UseFFIDAnnouncementsReturn, bg as createTokenStore, bh as isFFIDInquiryAcquisitionSource, bi as isFFIDInquiryCategorySite2026, bj as useFFIDAnnouncements } from './index-f9k9reXO.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, n as FFIDAnalyticsProvider, o as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, q as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, v as FFIDConsentError, w as FFIDConsentErrorCode, x as FFIDConsentMergeStrategy, z as FFIDConsentMergeWarning, B as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, H as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, L as FFIDCookieBanner, M as FFIDCookieBannerClassNames, N as FFIDCookieBannerProps, O as FFIDCookieLink, Q as FFIDCookieLinkProps, f as FFIDCookiePolicy, S as FFIDCookieSettings, T as FFIDCookieSettingsClassNames, U as FFIDCookieSettingsProps, Z as FFID_CONSENT_ERROR_CODES, ad as UseFFIDConsentPreferencesReturn, ae as UseFFIDConsentReturn, af as clearConsentDismissalTimestamp, ai as decodeConsentCookie, ak as encodeConsentCookie, am as readConsentCookie, an as readConsentDismissalTimestamp, ap as useFFIDConsent, aq as useFFIDConsentPreferences, ar as writeConsentCookie, as as writeConsentDismissalTimestamp } from './FFIDCookieLink-yt5SUr-W.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { ReactNode, ComponentType, FC } from 'react';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useFFIDContext, useSubscription } from './chunk-
|
|
2
|
-
export { ACCESS_GRANTING_EFFECTIVE_STATUSES, AGENCY_INVITE_COOKIE_MAX_AGE_SEC, AGENCY_INVITE_COOKIE_NAME, AGENCY_INVITE_TOKEN_PARAM, AGENCY_INVITE_TOKEN_REDACTION, BLOCKING_EFFECTIVE_STATUSES, CATALOG_HASH_PATTERN, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, EFFECTIVE_SUBSCRIPTION_STATUSES, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDCatalogHashError, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSDKError, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_CATALOG_ENVIRONMENTS, FFID_CATALOG_PUBLICATION_STATUSES, FFID_COMPANY_SIZE_CODES, FFID_CREDITS_CONSUME_MAX_AMOUNT, FFID_CREDITS_CONSUME_MIN_AMOUNT, FFID_CREDITS_ERROR_CODES, FFID_CREDITS_FEATURE_PATTERN, FFID_CREDITS_HISTORY_DEFAULT_LIMIT, FFID_CREDITS_HISTORY_MAX_LIMIT, FFID_CREDITS_HISTORY_MIN_LIMIT, FFID_CREDITS_IDEMPOTENCY_KEY_PATTERN, FFID_CREDITS_LOW_THRESHOLD_PERCENT, FFID_CREDITS_METADATA_MAX_BYTES, FFID_CREDIT_GRANT_KINDS, FFID_CREDIT_HISTORY_TYPES, FFID_CREDIT_PACK_MAX_QUANTITY, FFID_CREDIT_PACK_MIN_QUANTITY, FFID_ERROR_CODES, FFID_INDUSTRY_CODES, FFID_INQUIRY_ACQUISITION_SOURCES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB, FFID_OAUTH_DENIAL_REASONS, FFID_ORGANIZATION_PROFILE_ERROR_CODES, FFID_SUBSCRIPTION_ERROR_CODES, canonicalizeCatalogValue, captureAgencyInviteToken, clearAgencyInviteToken, cleanupStateStorage as clearState, computeEffectiveStatusFromSession, computeFFIDCheckoutCopyHash, computeLegalDisclosureHash, computePaymentConfigurationHash, computePraxisCopyHash, computeScopeHash, computeTaxConfigurationHash, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, getFFIDAuthorizationError, handleRedirectCallback, hasAccessFromUserinfo, hashCanonicalJson, isBlockedFromUserinfo, isFFIDInquiryAcquisitionSource, isFFIDInquiryCategorySite2026, isFFIDOAuthDenialReason, normalizeRedirectUri, readAgencyInviteCookie, readAgencyInviteToken, redactAgencyInviteToken, retrieveCodeVerifier, retrieveState, sha256Hex, storeCodeVerifier, storeState, useFFID, useFFIDAnnouncements, useSubscription, validatePublishedCatalog, withSubscription } from './chunk-
|
|
1
|
+
import { useFFIDContext, useSubscription } from './chunk-OL7KVPQ4.js';
|
|
2
|
+
export { ACCESS_GRANTING_EFFECTIVE_STATUSES, AGENCY_INVITE_COOKIE_MAX_AGE_SEC, AGENCY_INVITE_COOKIE_NAME, AGENCY_INVITE_TOKEN_PARAM, AGENCY_INVITE_TOKEN_REDACTION, BLOCKING_EFFECTIVE_STATUSES, CATALOG_HASH_PATTERN, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, EFFECTIVE_SUBSCRIPTION_STATUSES, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDCatalogHashError, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSDKError, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_CATALOG_ENVIRONMENTS, FFID_CATALOG_PUBLICATION_STATUSES, FFID_COMPANY_SIZE_CODES, FFID_CREDITS_CONSUME_MAX_AMOUNT, FFID_CREDITS_CONSUME_MIN_AMOUNT, FFID_CREDITS_ERROR_CODES, FFID_CREDITS_FEATURE_PATTERN, FFID_CREDITS_HISTORY_DEFAULT_LIMIT, FFID_CREDITS_HISTORY_MAX_LIMIT, FFID_CREDITS_HISTORY_MIN_LIMIT, FFID_CREDITS_IDEMPOTENCY_KEY_PATTERN, FFID_CREDITS_LOW_THRESHOLD_PERCENT, FFID_CREDITS_METADATA_MAX_BYTES, FFID_CREDIT_GRANT_KINDS, FFID_CREDIT_HISTORY_TYPES, FFID_CREDIT_PACK_MAX_QUANTITY, FFID_CREDIT_PACK_MIN_QUANTITY, FFID_ERROR_CODES, FFID_INDUSTRY_CODES, FFID_INQUIRY_ACQUISITION_SOURCES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB, FFID_OAUTH_DENIAL_REASONS, FFID_ORGANIZATION_PROFILE_ERROR_CODES, FFID_SUBSCRIPTION_ERROR_CODES, canonicalizeCatalogValue, captureAgencyInviteToken, clearAgencyInviteToken, cleanupStateStorage as clearState, computeEffectiveStatusFromSession, computeFFIDCheckoutCopyHash, computeLegalDisclosureHash, computePaymentConfigurationHash, computePraxisCopyHash, computeScopeHash, computeTaxConfigurationHash, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, getFFIDAuthorizationError, handleRedirectCallback, hasAccessFromUserinfo, hashCanonicalJson, isBlockedFromUserinfo, isFFIDInquiryAcquisitionSource, isFFIDInquiryCategorySite2026, isFFIDOAuthDenialReason, normalizeRedirectUri, readAgencyInviteCookie, readAgencyInviteToken, redactAgencyInviteToken, retrieveCodeVerifier, retrieveState, sha256Hex, storeCodeVerifier, storeState, useFFID, useFFIDAnnouncements, useSubscription, validatePublishedCatalog, withSubscription } from './chunk-OL7KVPQ4.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-S2AEBJRX.js';
|
|
4
4
|
import { useEffect, useRef } from 'react';
|
|
5
5
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
package/dist/server/index.cjs
CHANGED
|
@@ -1387,7 +1387,7 @@ var FFID_ORGANIZATION_PROFILE_ERROR_CODES = {
|
|
|
1387
1387
|
};
|
|
1388
1388
|
|
|
1389
1389
|
// src/client/version-check.ts
|
|
1390
|
-
var SDK_VERSION = "
|
|
1390
|
+
var SDK_VERSION = "12.0.0";
|
|
1391
1391
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
1392
1392
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
1393
1393
|
function sdkHeaders() {
|
|
@@ -4595,6 +4595,19 @@ function generateServerState() {
|
|
|
4595
4595
|
globalThis.crypto.getRandomValues(bytes);
|
|
4596
4596
|
return Array.from(bytes, (b) => b.toString(HEX_RADIX2).padStart(2, "0")).join("");
|
|
4597
4597
|
}
|
|
4598
|
+
var STORED_STATE_SEPARATOR = ".";
|
|
4599
|
+
function packStoredLoginHandle(handle) {
|
|
4600
|
+
return `${handle.state}${STORED_STATE_SEPARATOR}${handle.codeVerifier}`;
|
|
4601
|
+
}
|
|
4602
|
+
function unpackStoredLoginHandle(stored) {
|
|
4603
|
+
if (!stored) return null;
|
|
4604
|
+
const sep = stored.indexOf(STORED_STATE_SEPARATOR);
|
|
4605
|
+
if (sep <= 0) return null;
|
|
4606
|
+
const state = stored.slice(0, sep);
|
|
4607
|
+
const codeVerifier = stored.slice(sep + STORED_STATE_SEPARATOR.length);
|
|
4608
|
+
if (!codeVerifier) return null;
|
|
4609
|
+
return { state, codeVerifier };
|
|
4610
|
+
}
|
|
4598
4611
|
|
|
4599
4612
|
// src/server/auth/server-oauth-token.ts
|
|
4600
4613
|
var OAUTH_TOKEN_ENDPOINT2 = "/api/v1/oauth/token";
|
|
@@ -4656,7 +4669,7 @@ async function postToken(deps, body, fallbackErrorCode) {
|
|
|
4656
4669
|
}
|
|
4657
4670
|
return { tokens: toTokens(validation.tokens) };
|
|
4658
4671
|
}
|
|
4659
|
-
function exchangeAuthorizationCodeServer(deps, code) {
|
|
4672
|
+
function exchangeAuthorizationCodeServer(deps, code, codeVerifier) {
|
|
4660
4673
|
return postToken(
|
|
4661
4674
|
deps,
|
|
4662
4675
|
{
|
|
@@ -4664,7 +4677,8 @@ function exchangeAuthorizationCodeServer(deps, code) {
|
|
|
4664
4677
|
code,
|
|
4665
4678
|
client_id: deps.clientId,
|
|
4666
4679
|
client_secret: deps.clientSecret,
|
|
4667
|
-
redirect_uri: deps.redirectUri
|
|
4680
|
+
redirect_uri: deps.redirectUri,
|
|
4681
|
+
code_verifier: codeVerifier
|
|
4668
4682
|
},
|
|
4669
4683
|
FFID_ERROR_CODES.TOKEN_EXCHANGE_ERROR
|
|
4670
4684
|
);
|
|
@@ -4685,6 +4699,7 @@ function refreshTokensServer(deps, refreshToken) {
|
|
|
4685
4699
|
// src/server/auth/server-auth-client.ts
|
|
4686
4700
|
var OAUTH_AUTHORIZE_ENDPOINT2 = "/api/v1/oauth/authorize";
|
|
4687
4701
|
var SCREEN_HINT_SIGNUP2 = "signup";
|
|
4702
|
+
var CODE_CHALLENGE_METHOD_S256 = "S256";
|
|
4688
4703
|
function createServerAuthClient(config) {
|
|
4689
4704
|
if (!config.serviceCode?.trim()) {
|
|
4690
4705
|
throw new Error("FFID Server Auth: serviceCode \u304C\u672A\u8A2D\u5B9A\u3067\u3059");
|
|
@@ -4709,20 +4724,29 @@ function createServerAuthClient(config) {
|
|
|
4709
4724
|
redirectUri: config.redirectUri,
|
|
4710
4725
|
timeout: config.timeout
|
|
4711
4726
|
};
|
|
4712
|
-
function buildAuthorizeUrl(opts) {
|
|
4727
|
+
async function buildAuthorizeUrl(opts) {
|
|
4713
4728
|
const state = generateServerState();
|
|
4729
|
+
const codeVerifier = generateCodeVerifier();
|
|
4730
|
+
const codeChallenge = await generateCodeChallenge(codeVerifier);
|
|
4714
4731
|
const params = new URLSearchParams({
|
|
4715
4732
|
response_type: "code",
|
|
4716
4733
|
client_id: clientId,
|
|
4717
4734
|
scope: config.scope,
|
|
4718
4735
|
redirect_uri: config.redirectUri,
|
|
4719
|
-
state
|
|
4736
|
+
state,
|
|
4737
|
+
code_challenge: codeChallenge,
|
|
4738
|
+
code_challenge_method: CODE_CHALLENGE_METHOD_S256
|
|
4720
4739
|
});
|
|
4721
4740
|
const organizationId = opts?.organizationId?.trim();
|
|
4722
4741
|
if (organizationId) params.set("organization_id", organizationId);
|
|
4723
4742
|
if (opts?.screenHint === SCREEN_HINT_SIGNUP2) params.set("screen_hint", SCREEN_HINT_SIGNUP2);
|
|
4724
4743
|
if (opts?.prompt) params.set("prompt", opts.prompt);
|
|
4725
|
-
return {
|
|
4744
|
+
return {
|
|
4745
|
+
url: `${apiBaseUrl}${OAUTH_AUTHORIZE_ENDPOINT2}?${params.toString()}`,
|
|
4746
|
+
// Opaque cookie value: state + verifier. Only `state` and the challenge
|
|
4747
|
+
// reach the URL; the verifier stays in the caller's httpOnly cookie.
|
|
4748
|
+
state: packStoredLoginHandle({ state, codeVerifier })
|
|
4749
|
+
};
|
|
4726
4750
|
}
|
|
4727
4751
|
async function handleCallback(input) {
|
|
4728
4752
|
let url;
|
|
@@ -4736,12 +4760,15 @@ function createServerAuthClient(config) {
|
|
|
4736
4760
|
}
|
|
4737
4761
|
};
|
|
4738
4762
|
}
|
|
4763
|
+
const stored = unpackStoredLoginHandle(input.storedState);
|
|
4739
4764
|
const returnedState = url.searchParams.get("state") ?? void 0;
|
|
4740
|
-
if (!
|
|
4765
|
+
if (!stored || !returnedState || stored.state !== returnedState) {
|
|
4741
4766
|
return {
|
|
4742
4767
|
error: {
|
|
4743
4768
|
code: FFID_ERROR_CODES.STATE_MISMATCH_ERROR,
|
|
4744
|
-
|
|
4769
|
+
// Not "CSRF suspected": a state-only cookie written before 12.0.0 also
|
|
4770
|
+
// lands here, once per in-flight login across the upgrade (#6611).
|
|
4771
|
+
message: "OAuth state \u304C\u4E00\u81F4\u3057\u306A\u3044\u304B\u3001\u30ED\u30B0\u30A4\u30F3\u306E\u958B\u59CB\u304B\u3089\u6642\u9593\u304C\u7D4C\u3063\u3066\u3044\u307E\u3059\u3002\u3082\u3046\u4E00\u5EA6\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044"
|
|
4745
4772
|
}
|
|
4746
4773
|
};
|
|
4747
4774
|
}
|
|
@@ -4758,7 +4785,7 @@ function createServerAuthClient(config) {
|
|
|
4758
4785
|
}
|
|
4759
4786
|
};
|
|
4760
4787
|
}
|
|
4761
|
-
return exchangeAuthorizationCodeServer(deps, code);
|
|
4788
|
+
return exchangeAuthorizationCodeServer(deps, code, stored.codeVerifier);
|
|
4762
4789
|
}
|
|
4763
4790
|
function refresh(refreshToken) {
|
|
4764
4791
|
return refreshTokensServer(deps, refreshToken);
|
package/dist/server/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDError, a as FFIDLogger, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo, f as FFIDCatalogEnvironment, g as FFIDBillingInterval, h as FFIDTaxBehavior, i as FFIDPublishedCatalog } from '../ffid-client-
|
|
2
|
-
export { j as FFIDAddMemberParams, k as FFIDAddMemberRequest, l as FFIDAddMemberResponse, m as FFIDAllowedLogoMimeType, n as FFIDAssignableMemberRole, o as FFIDCacheConfig, p as FFIDCatalogPublication, q as FFIDCatalogPublicationStatus, r as FFIDClient, s as FFIDCompanySizeCode, t as FFIDConfig, u as FFIDIndustryCode, v as FFIDListMembersResponse, w as FFIDListingConsentInput, x as FFIDLogoWallEntry, y as FFIDLogoWallResponse, z as FFIDMemberRole, A as FFIDMemberSeatAssignmentResult, B as FFIDOrganization, C as FFIDOrganizationLogoUploadResponse, D as FFIDOrganizationMember, E as FFIDOrganizationProfile, G as FFIDOrganizationProfileErrorCode, H as FFIDOrganizationProfileResponse, I as FFIDOtpSendResponse, J as FFIDOtpVerifyResponse, K as FFIDPasswordResetConfirmResponse, L as FFIDPasswordResetResponse, M as FFIDPasswordResetVerifyResponse, N as FFIDProfileCallOptions, O as FFIDProvisionMemberPlan, P as FFIDProvisionMemberPlanStatus, Q as FFIDProvisionMemberResult, R as FFIDProvisionMemberStatus, S as FFIDProvisionOrganizationDryRun, T as FFIDProvisionOrganizationMemberInput, U as FFIDProvisionOrganizationOutcome, V as FFIDProvisionOrganizationParams, W as FFIDProvisionOrganizationResponse, X as FFIDProvisionUserDryRun, Y as FFIDProvisionUserOutcome, Z as FFIDProvisionUserParams, _ as FFIDProvisionUserProfileInput, $ as FFIDProvisionUserResponse, a0 as FFIDProvisionedOrganization, a1 as FFIDProvisionedUser, a2 as FFIDPublishedPlan, a3 as FFIDRemoveMemberResponse, a4 as FFIDResetSessionResponse, a5 as FFIDSubscription, a6 as FFIDUpdateMemberRoleResponse, a7 as FFIDUpdateUserProfileRequest, a8 as FFIDUploadOrganizationLogoParams, a9 as FFIDUpsertOrganizationProfileParams, aa as FFIDUpsertOrganizationProfileRequest, ab as FFIDUser, ac as FFIDUserProfile, ad as FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES, ae as FFID_CATALOG_ENVIRONMENTS, af as FFID_CATALOG_PUBLICATION_STATUSES, ag as FFID_COMPANY_SIZE_CODES, ah as FFID_INDUSTRY_CODES, ai as FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES, aj as FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB, ak as FFID_ORGANIZATION_PROFILE_ERROR_CODES, al as TokenData, am as TokenStore, an as createFFIDClient, ao as createTokenStore } from '../ffid-client-
|
|
1
|
+
import { F as FFIDError, a as FFIDLogger, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo, f as FFIDCatalogEnvironment, g as FFIDBillingInterval, h as FFIDTaxBehavior, i as FFIDPublishedCatalog } from '../ffid-client-DW8_m1_M.cjs';
|
|
2
|
+
export { j as FFIDAddMemberParams, k as FFIDAddMemberRequest, l as FFIDAddMemberResponse, m as FFIDAllowedLogoMimeType, n as FFIDAssignableMemberRole, o as FFIDCacheConfig, p as FFIDCatalogPublication, q as FFIDCatalogPublicationStatus, r as FFIDClient, s as FFIDCompanySizeCode, t as FFIDConfig, u as FFIDIndustryCode, v as FFIDListMembersResponse, w as FFIDListingConsentInput, x as FFIDLogoWallEntry, y as FFIDLogoWallResponse, z as FFIDMemberRole, A as FFIDMemberSeatAssignmentResult, B as FFIDOrganization, C as FFIDOrganizationLogoUploadResponse, D as FFIDOrganizationMember, E as FFIDOrganizationProfile, G as FFIDOrganizationProfileErrorCode, H as FFIDOrganizationProfileResponse, I as FFIDOtpSendResponse, J as FFIDOtpVerifyResponse, K as FFIDPasswordResetConfirmResponse, L as FFIDPasswordResetResponse, M as FFIDPasswordResetVerifyResponse, N as FFIDProfileCallOptions, O as FFIDProvisionMemberPlan, P as FFIDProvisionMemberPlanStatus, Q as FFIDProvisionMemberResult, R as FFIDProvisionMemberStatus, S as FFIDProvisionOrganizationDryRun, T as FFIDProvisionOrganizationMemberInput, U as FFIDProvisionOrganizationOutcome, V as FFIDProvisionOrganizationParams, W as FFIDProvisionOrganizationResponse, X as FFIDProvisionUserDryRun, Y as FFIDProvisionUserOutcome, Z as FFIDProvisionUserParams, _ as FFIDProvisionUserProfileInput, $ as FFIDProvisionUserResponse, a0 as FFIDProvisionedOrganization, a1 as FFIDProvisionedUser, a2 as FFIDPublishedPlan, a3 as FFIDRemoveMemberResponse, a4 as FFIDResetSessionResponse, a5 as FFIDSubscription, a6 as FFIDUpdateMemberRoleResponse, a7 as FFIDUpdateUserProfileRequest, a8 as FFIDUploadOrganizationLogoParams, a9 as FFIDUpsertOrganizationProfileParams, aa as FFIDUpsertOrganizationProfileRequest, ab as FFIDUser, ac as FFIDUserProfile, ad as FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES, ae as FFID_CATALOG_ENVIRONMENTS, af as FFID_CATALOG_PUBLICATION_STATUSES, ag as FFID_COMPANY_SIZE_CODES, ah as FFID_INDUSTRY_CODES, ai as FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES, aj as FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB, ak as FFID_ORGANIZATION_PROFILE_ERROR_CODES, al as TokenData, am as TokenStore, an as createFFIDClient, ao as createTokenStore } from '../ffid-client-DW8_m1_M.cjs';
|
|
3
3
|
export { D as DEFAULT_API_BASE_URL, a as DEFAULT_OAUTH_SCOPES } from '../constants-Ce2eXQtB.cjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import '../types-Cjb9J0rL.cjs';
|
|
@@ -356,14 +356,22 @@ interface BuildAuthorizeUrlOptions {
|
|
|
356
356
|
interface BuildAuthorizeUrlResult {
|
|
357
357
|
/** Authorize URL to 302 the browser to. */
|
|
358
358
|
url: string;
|
|
359
|
-
/**
|
|
359
|
+
/**
|
|
360
|
+
* Opaque value to persist in an httpOnly cookie and pass back as
|
|
361
|
+
* `storedState`. Since 12.0.0 (#6611) it is `<state>.<code_verifier>`, not the
|
|
362
|
+
* raw OAuth `state` — do not compare it with the callback's `state` query
|
|
363
|
+
* yourself, and do not parse it; {@link ServerAuthClient.handleCallback} does.
|
|
364
|
+
*/
|
|
360
365
|
state: string;
|
|
361
366
|
}
|
|
362
367
|
/** Input to {@link ServerAuthClient.handleCallback}. */
|
|
363
368
|
interface HandleCallbackInput {
|
|
364
369
|
/** The callback request URL (absolute). `code` / `state` are read from its query. */
|
|
365
370
|
url: string | URL;
|
|
366
|
-
/**
|
|
371
|
+
/**
|
|
372
|
+
* The value previously stored in the httpOnly cookie — `result.state` from
|
|
373
|
+
* {@link ServerAuthClient.buildAuthorizeUrl}, verbatim (undefined if absent).
|
|
374
|
+
*/
|
|
367
375
|
storedState: string | undefined;
|
|
368
376
|
}
|
|
369
377
|
/**
|
|
@@ -380,14 +388,18 @@ type ServerTokenResult = {
|
|
|
380
388
|
/** Framework-agnostic confidential / BFF auth client. */
|
|
381
389
|
interface ServerAuthClient {
|
|
382
390
|
/**
|
|
383
|
-
* Build the authorize URL
|
|
384
|
-
*
|
|
385
|
-
* `
|
|
391
|
+
* Build the authorize URL with a fresh `state` and a PKCE S256
|
|
392
|
+
* `code_challenge` (#6611). The caller stores the returned `state` (which also
|
|
393
|
+
* carries the `code_verifier`) in an httpOnly cookie, then 302s to `url`.
|
|
394
|
+
* Async since 12.0.0 — the S256 challenge uses Web Crypto `subtle.digest`.
|
|
386
395
|
*/
|
|
387
|
-
buildAuthorizeUrl(opts?: BuildAuthorizeUrlOptions): BuildAuthorizeUrlResult
|
|
396
|
+
buildAuthorizeUrl(opts?: BuildAuthorizeUrlOptions): Promise<BuildAuthorizeUrlResult>;
|
|
388
397
|
/**
|
|
389
|
-
* Validate `state` (CSRF, fail-closed
|
|
390
|
-
*
|
|
398
|
+
* Validate `state` (CSRF, fail-closed; a stored value without the PKCE
|
|
399
|
+
* verifier is also a mismatch) then exchange `code` for tokens using the
|
|
400
|
+
* `client_secret` and `code_verifier` (server→server; browser JS never reads
|
|
401
|
+
* the secret, the verifier, or the tokens — the verifier and tokens travel only
|
|
402
|
+
* in httpOnly cookies, never in a URL).
|
|
391
403
|
*/
|
|
392
404
|
handleCallback(input: HandleCallbackInput): Promise<ServerTokenResult>;
|
|
393
405
|
/** Refresh tokens (`refresh_token` grant, `client_secret`-authenticated). */
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDError, a as FFIDLogger, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo, f as FFIDCatalogEnvironment, g as FFIDBillingInterval, h as FFIDTaxBehavior, i as FFIDPublishedCatalog } from '../ffid-client-
|
|
2
|
-
export { j as FFIDAddMemberParams, k as FFIDAddMemberRequest, l as FFIDAddMemberResponse, m as FFIDAllowedLogoMimeType, n as FFIDAssignableMemberRole, o as FFIDCacheConfig, p as FFIDCatalogPublication, q as FFIDCatalogPublicationStatus, r as FFIDClient, s as FFIDCompanySizeCode, t as FFIDConfig, u as FFIDIndustryCode, v as FFIDListMembersResponse, w as FFIDListingConsentInput, x as FFIDLogoWallEntry, y as FFIDLogoWallResponse, z as FFIDMemberRole, A as FFIDMemberSeatAssignmentResult, B as FFIDOrganization, C as FFIDOrganizationLogoUploadResponse, D as FFIDOrganizationMember, E as FFIDOrganizationProfile, G as FFIDOrganizationProfileErrorCode, H as FFIDOrganizationProfileResponse, I as FFIDOtpSendResponse, J as FFIDOtpVerifyResponse, K as FFIDPasswordResetConfirmResponse, L as FFIDPasswordResetResponse, M as FFIDPasswordResetVerifyResponse, N as FFIDProfileCallOptions, O as FFIDProvisionMemberPlan, P as FFIDProvisionMemberPlanStatus, Q as FFIDProvisionMemberResult, R as FFIDProvisionMemberStatus, S as FFIDProvisionOrganizationDryRun, T as FFIDProvisionOrganizationMemberInput, U as FFIDProvisionOrganizationOutcome, V as FFIDProvisionOrganizationParams, W as FFIDProvisionOrganizationResponse, X as FFIDProvisionUserDryRun, Y as FFIDProvisionUserOutcome, Z as FFIDProvisionUserParams, _ as FFIDProvisionUserProfileInput, $ as FFIDProvisionUserResponse, a0 as FFIDProvisionedOrganization, a1 as FFIDProvisionedUser, a2 as FFIDPublishedPlan, a3 as FFIDRemoveMemberResponse, a4 as FFIDResetSessionResponse, a5 as FFIDSubscription, a6 as FFIDUpdateMemberRoleResponse, a7 as FFIDUpdateUserProfileRequest, a8 as FFIDUploadOrganizationLogoParams, a9 as FFIDUpsertOrganizationProfileParams, aa as FFIDUpsertOrganizationProfileRequest, ab as FFIDUser, ac as FFIDUserProfile, ad as FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES, ae as FFID_CATALOG_ENVIRONMENTS, af as FFID_CATALOG_PUBLICATION_STATUSES, ag as FFID_COMPANY_SIZE_CODES, ah as FFID_INDUSTRY_CODES, ai as FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES, aj as FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB, ak as FFID_ORGANIZATION_PROFILE_ERROR_CODES, al as TokenData, am as TokenStore, an as createFFIDClient, ao as createTokenStore } from '../ffid-client-
|
|
1
|
+
import { F as FFIDError, a as FFIDLogger, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo, f as FFIDCatalogEnvironment, g as FFIDBillingInterval, h as FFIDTaxBehavior, i as FFIDPublishedCatalog } from '../ffid-client-ByfZA9sJ.js';
|
|
2
|
+
export { j as FFIDAddMemberParams, k as FFIDAddMemberRequest, l as FFIDAddMemberResponse, m as FFIDAllowedLogoMimeType, n as FFIDAssignableMemberRole, o as FFIDCacheConfig, p as FFIDCatalogPublication, q as FFIDCatalogPublicationStatus, r as FFIDClient, s as FFIDCompanySizeCode, t as FFIDConfig, u as FFIDIndustryCode, v as FFIDListMembersResponse, w as FFIDListingConsentInput, x as FFIDLogoWallEntry, y as FFIDLogoWallResponse, z as FFIDMemberRole, A as FFIDMemberSeatAssignmentResult, B as FFIDOrganization, C as FFIDOrganizationLogoUploadResponse, D as FFIDOrganizationMember, E as FFIDOrganizationProfile, G as FFIDOrganizationProfileErrorCode, H as FFIDOrganizationProfileResponse, I as FFIDOtpSendResponse, J as FFIDOtpVerifyResponse, K as FFIDPasswordResetConfirmResponse, L as FFIDPasswordResetResponse, M as FFIDPasswordResetVerifyResponse, N as FFIDProfileCallOptions, O as FFIDProvisionMemberPlan, P as FFIDProvisionMemberPlanStatus, Q as FFIDProvisionMemberResult, R as FFIDProvisionMemberStatus, S as FFIDProvisionOrganizationDryRun, T as FFIDProvisionOrganizationMemberInput, U as FFIDProvisionOrganizationOutcome, V as FFIDProvisionOrganizationParams, W as FFIDProvisionOrganizationResponse, X as FFIDProvisionUserDryRun, Y as FFIDProvisionUserOutcome, Z as FFIDProvisionUserParams, _ as FFIDProvisionUserProfileInput, $ as FFIDProvisionUserResponse, a0 as FFIDProvisionedOrganization, a1 as FFIDProvisionedUser, a2 as FFIDPublishedPlan, a3 as FFIDRemoveMemberResponse, a4 as FFIDResetSessionResponse, a5 as FFIDSubscription, a6 as FFIDUpdateMemberRoleResponse, a7 as FFIDUpdateUserProfileRequest, a8 as FFIDUploadOrganizationLogoParams, a9 as FFIDUpsertOrganizationProfileParams, aa as FFIDUpsertOrganizationProfileRequest, ab as FFIDUser, ac as FFIDUserProfile, ad as FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES, ae as FFID_CATALOG_ENVIRONMENTS, af as FFID_CATALOG_PUBLICATION_STATUSES, ag as FFID_COMPANY_SIZE_CODES, ah as FFID_INDUSTRY_CODES, ai as FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES, aj as FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB, ak as FFID_ORGANIZATION_PROFILE_ERROR_CODES, al as TokenData, am as TokenStore, an as createFFIDClient, ao as createTokenStore } from '../ffid-client-ByfZA9sJ.js';
|
|
3
3
|
export { D as DEFAULT_API_BASE_URL, a as DEFAULT_OAUTH_SCOPES } from '../constants-Ce2eXQtB.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import '../types-Cjb9J0rL.js';
|
|
@@ -356,14 +356,22 @@ interface BuildAuthorizeUrlOptions {
|
|
|
356
356
|
interface BuildAuthorizeUrlResult {
|
|
357
357
|
/** Authorize URL to 302 the browser to. */
|
|
358
358
|
url: string;
|
|
359
|
-
/**
|
|
359
|
+
/**
|
|
360
|
+
* Opaque value to persist in an httpOnly cookie and pass back as
|
|
361
|
+
* `storedState`. Since 12.0.0 (#6611) it is `<state>.<code_verifier>`, not the
|
|
362
|
+
* raw OAuth `state` — do not compare it with the callback's `state` query
|
|
363
|
+
* yourself, and do not parse it; {@link ServerAuthClient.handleCallback} does.
|
|
364
|
+
*/
|
|
360
365
|
state: string;
|
|
361
366
|
}
|
|
362
367
|
/** Input to {@link ServerAuthClient.handleCallback}. */
|
|
363
368
|
interface HandleCallbackInput {
|
|
364
369
|
/** The callback request URL (absolute). `code` / `state` are read from its query. */
|
|
365
370
|
url: string | URL;
|
|
366
|
-
/**
|
|
371
|
+
/**
|
|
372
|
+
* The value previously stored in the httpOnly cookie — `result.state` from
|
|
373
|
+
* {@link ServerAuthClient.buildAuthorizeUrl}, verbatim (undefined if absent).
|
|
374
|
+
*/
|
|
367
375
|
storedState: string | undefined;
|
|
368
376
|
}
|
|
369
377
|
/**
|
|
@@ -380,14 +388,18 @@ type ServerTokenResult = {
|
|
|
380
388
|
/** Framework-agnostic confidential / BFF auth client. */
|
|
381
389
|
interface ServerAuthClient {
|
|
382
390
|
/**
|
|
383
|
-
* Build the authorize URL
|
|
384
|
-
*
|
|
385
|
-
* `
|
|
391
|
+
* Build the authorize URL with a fresh `state` and a PKCE S256
|
|
392
|
+
* `code_challenge` (#6611). The caller stores the returned `state` (which also
|
|
393
|
+
* carries the `code_verifier`) in an httpOnly cookie, then 302s to `url`.
|
|
394
|
+
* Async since 12.0.0 — the S256 challenge uses Web Crypto `subtle.digest`.
|
|
386
395
|
*/
|
|
387
|
-
buildAuthorizeUrl(opts?: BuildAuthorizeUrlOptions): BuildAuthorizeUrlResult
|
|
396
|
+
buildAuthorizeUrl(opts?: BuildAuthorizeUrlOptions): Promise<BuildAuthorizeUrlResult>;
|
|
388
397
|
/**
|
|
389
|
-
* Validate `state` (CSRF, fail-closed
|
|
390
|
-
*
|
|
398
|
+
* Validate `state` (CSRF, fail-closed; a stored value without the PKCE
|
|
399
|
+
* verifier is also a mismatch) then exchange `code` for tokens using the
|
|
400
|
+
* `client_secret` and `code_verifier` (server→server; browser JS never reads
|
|
401
|
+
* the secret, the verifier, or the tokens — the verifier and tokens travel only
|
|
402
|
+
* in httpOnly cookies, never in a URL).
|
|
391
403
|
*/
|
|
392
404
|
handleCallback(input: HandleCallbackInput): Promise<ServerTokenResult>;
|
|
393
405
|
/** Refresh tokens (`refresh_token` grant, `client_secret`-authenticated). */
|
package/dist/server/index.js
CHANGED
|
@@ -1386,7 +1386,7 @@ var FFID_ORGANIZATION_PROFILE_ERROR_CODES = {
|
|
|
1386
1386
|
};
|
|
1387
1387
|
|
|
1388
1388
|
// src/client/version-check.ts
|
|
1389
|
-
var SDK_VERSION = "
|
|
1389
|
+
var SDK_VERSION = "12.0.0";
|
|
1390
1390
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
1391
1391
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
1392
1392
|
function sdkHeaders() {
|
|
@@ -4594,6 +4594,19 @@ function generateServerState() {
|
|
|
4594
4594
|
globalThis.crypto.getRandomValues(bytes);
|
|
4595
4595
|
return Array.from(bytes, (b) => b.toString(HEX_RADIX2).padStart(2, "0")).join("");
|
|
4596
4596
|
}
|
|
4597
|
+
var STORED_STATE_SEPARATOR = ".";
|
|
4598
|
+
function packStoredLoginHandle(handle) {
|
|
4599
|
+
return `${handle.state}${STORED_STATE_SEPARATOR}${handle.codeVerifier}`;
|
|
4600
|
+
}
|
|
4601
|
+
function unpackStoredLoginHandle(stored) {
|
|
4602
|
+
if (!stored) return null;
|
|
4603
|
+
const sep = stored.indexOf(STORED_STATE_SEPARATOR);
|
|
4604
|
+
if (sep <= 0) return null;
|
|
4605
|
+
const state = stored.slice(0, sep);
|
|
4606
|
+
const codeVerifier = stored.slice(sep + STORED_STATE_SEPARATOR.length);
|
|
4607
|
+
if (!codeVerifier) return null;
|
|
4608
|
+
return { state, codeVerifier };
|
|
4609
|
+
}
|
|
4597
4610
|
|
|
4598
4611
|
// src/server/auth/server-oauth-token.ts
|
|
4599
4612
|
var OAUTH_TOKEN_ENDPOINT2 = "/api/v1/oauth/token";
|
|
@@ -4655,7 +4668,7 @@ async function postToken(deps, body, fallbackErrorCode) {
|
|
|
4655
4668
|
}
|
|
4656
4669
|
return { tokens: toTokens(validation.tokens) };
|
|
4657
4670
|
}
|
|
4658
|
-
function exchangeAuthorizationCodeServer(deps, code) {
|
|
4671
|
+
function exchangeAuthorizationCodeServer(deps, code, codeVerifier) {
|
|
4659
4672
|
return postToken(
|
|
4660
4673
|
deps,
|
|
4661
4674
|
{
|
|
@@ -4663,7 +4676,8 @@ function exchangeAuthorizationCodeServer(deps, code) {
|
|
|
4663
4676
|
code,
|
|
4664
4677
|
client_id: deps.clientId,
|
|
4665
4678
|
client_secret: deps.clientSecret,
|
|
4666
|
-
redirect_uri: deps.redirectUri
|
|
4679
|
+
redirect_uri: deps.redirectUri,
|
|
4680
|
+
code_verifier: codeVerifier
|
|
4667
4681
|
},
|
|
4668
4682
|
FFID_ERROR_CODES.TOKEN_EXCHANGE_ERROR
|
|
4669
4683
|
);
|
|
@@ -4684,6 +4698,7 @@ function refreshTokensServer(deps, refreshToken) {
|
|
|
4684
4698
|
// src/server/auth/server-auth-client.ts
|
|
4685
4699
|
var OAUTH_AUTHORIZE_ENDPOINT2 = "/api/v1/oauth/authorize";
|
|
4686
4700
|
var SCREEN_HINT_SIGNUP2 = "signup";
|
|
4701
|
+
var CODE_CHALLENGE_METHOD_S256 = "S256";
|
|
4687
4702
|
function createServerAuthClient(config) {
|
|
4688
4703
|
if (!config.serviceCode?.trim()) {
|
|
4689
4704
|
throw new Error("FFID Server Auth: serviceCode \u304C\u672A\u8A2D\u5B9A\u3067\u3059");
|
|
@@ -4708,20 +4723,29 @@ function createServerAuthClient(config) {
|
|
|
4708
4723
|
redirectUri: config.redirectUri,
|
|
4709
4724
|
timeout: config.timeout
|
|
4710
4725
|
};
|
|
4711
|
-
function buildAuthorizeUrl(opts) {
|
|
4726
|
+
async function buildAuthorizeUrl(opts) {
|
|
4712
4727
|
const state = generateServerState();
|
|
4728
|
+
const codeVerifier = generateCodeVerifier();
|
|
4729
|
+
const codeChallenge = await generateCodeChallenge(codeVerifier);
|
|
4713
4730
|
const params = new URLSearchParams({
|
|
4714
4731
|
response_type: "code",
|
|
4715
4732
|
client_id: clientId,
|
|
4716
4733
|
scope: config.scope,
|
|
4717
4734
|
redirect_uri: config.redirectUri,
|
|
4718
|
-
state
|
|
4735
|
+
state,
|
|
4736
|
+
code_challenge: codeChallenge,
|
|
4737
|
+
code_challenge_method: CODE_CHALLENGE_METHOD_S256
|
|
4719
4738
|
});
|
|
4720
4739
|
const organizationId = opts?.organizationId?.trim();
|
|
4721
4740
|
if (organizationId) params.set("organization_id", organizationId);
|
|
4722
4741
|
if (opts?.screenHint === SCREEN_HINT_SIGNUP2) params.set("screen_hint", SCREEN_HINT_SIGNUP2);
|
|
4723
4742
|
if (opts?.prompt) params.set("prompt", opts.prompt);
|
|
4724
|
-
return {
|
|
4743
|
+
return {
|
|
4744
|
+
url: `${apiBaseUrl}${OAUTH_AUTHORIZE_ENDPOINT2}?${params.toString()}`,
|
|
4745
|
+
// Opaque cookie value: state + verifier. Only `state` and the challenge
|
|
4746
|
+
// reach the URL; the verifier stays in the caller's httpOnly cookie.
|
|
4747
|
+
state: packStoredLoginHandle({ state, codeVerifier })
|
|
4748
|
+
};
|
|
4725
4749
|
}
|
|
4726
4750
|
async function handleCallback(input) {
|
|
4727
4751
|
let url;
|
|
@@ -4735,12 +4759,15 @@ function createServerAuthClient(config) {
|
|
|
4735
4759
|
}
|
|
4736
4760
|
};
|
|
4737
4761
|
}
|
|
4762
|
+
const stored = unpackStoredLoginHandle(input.storedState);
|
|
4738
4763
|
const returnedState = url.searchParams.get("state") ?? void 0;
|
|
4739
|
-
if (!
|
|
4764
|
+
if (!stored || !returnedState || stored.state !== returnedState) {
|
|
4740
4765
|
return {
|
|
4741
4766
|
error: {
|
|
4742
4767
|
code: FFID_ERROR_CODES.STATE_MISMATCH_ERROR,
|
|
4743
|
-
|
|
4768
|
+
// Not "CSRF suspected": a state-only cookie written before 12.0.0 also
|
|
4769
|
+
// lands here, once per in-flight login across the upgrade (#6611).
|
|
4770
|
+
message: "OAuth state \u304C\u4E00\u81F4\u3057\u306A\u3044\u304B\u3001\u30ED\u30B0\u30A4\u30F3\u306E\u958B\u59CB\u304B\u3089\u6642\u9593\u304C\u7D4C\u3063\u3066\u3044\u307E\u3059\u3002\u3082\u3046\u4E00\u5EA6\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044"
|
|
4744
4771
|
}
|
|
4745
4772
|
};
|
|
4746
4773
|
}
|
|
@@ -4757,7 +4784,7 @@ function createServerAuthClient(config) {
|
|
|
4757
4784
|
}
|
|
4758
4785
|
};
|
|
4759
4786
|
}
|
|
4760
|
-
return exchangeAuthorizationCodeServer(deps, code);
|
|
4787
|
+
return exchangeAuthorizationCodeServer(deps, code, stored.codeVerifier);
|
|
4761
4788
|
}
|
|
4762
4789
|
function refresh(refreshToken) {
|
|
4763
4790
|
return refreshTokensServer(deps, refreshToken);
|
|
@@ -115,7 +115,17 @@ interface FFIDCreditsPackPurchasedPayload extends FFIDCreditsEventBase {
|
|
|
115
115
|
*/
|
|
116
116
|
|
|
117
117
|
/** All supported webhook event types */
|
|
118
|
-
type FFIDWebhookEventType = 'subscription.created' | 'subscription.reactivated' | 'subscription.updated' | 'subscription.canceled' | 'subscription.downgrade_scheduled' | 'subscription.downgrade_applied' | 'subscription.downgrade_canceled' | 'subscription.trial_ending' | 'subscription.payment_failed' | 'user.created' | 'user.updated' | 'user.deleted' | 'user.deletion_requested' | 'organization.created' | 'organization.updated' | 'organization.member.added' | 'organization.member.removed' | 'organization.member.role_changed' | 'legal.document.updated' | 'legal.agreement.required' | 'system.maintenance.scheduled' | 'system.maintenance.started' | 'system.maintenance.completed' | 'announcement.published' | 'credits.granted' | 'credits.low' | 'credits.exhausted' | 'credits.pack_purchased' | 'test.ping';
|
|
118
|
+
type FFIDWebhookEventType = 'subscription.created' | 'subscription.reactivated' | 'subscription.updated' | 'subscription.seats.changed' | 'subscription.canceled' | 'subscription.downgrade_scheduled' | 'subscription.downgrade_applied' | 'subscription.downgrade_canceled' | 'subscription.trial_ending' | 'subscription.payment_failed' | 'user.created' | 'user.updated' | 'user.deleted' | 'user.deletion_requested' | 'organization.created' | 'organization.updated' | 'organization.member.added' | 'organization.member.removed' | 'organization.member.role_changed' | 'legal.document.updated' | 'legal.agreement.required' | 'system.maintenance.scheduled' | 'system.maintenance.started' | 'system.maintenance.completed' | 'announcement.published' | 'credits.granted' | 'credits.low' | 'credits.exhausted' | 'credits.pack_purchased' | 'test.ping';
|
|
119
|
+
/**
|
|
120
|
+
* Seat-roster reconciliation hint. Fetch the current roster from FFID; delivery
|
|
121
|
+
* can be delayed, duplicated or reordered. This event grants no access by itself.
|
|
122
|
+
*/
|
|
123
|
+
interface FFIDSubscriptionSeatsChangedPayload {
|
|
124
|
+
subscriptionId: string;
|
|
125
|
+
organizationId: string;
|
|
126
|
+
/** Compare with the receiver's own service before reading/reconciling its roster. */
|
|
127
|
+
serviceCode?: string;
|
|
128
|
+
}
|
|
119
129
|
interface FFIDSubscriptionCreatedPayload {
|
|
120
130
|
subscriptionId: string;
|
|
121
131
|
organizationId?: string;
|
|
@@ -500,6 +510,7 @@ interface FFIDWebhookEventMap {
|
|
|
500
510
|
'subscription.created': FFIDSubscriptionCreatedPayload;
|
|
501
511
|
'subscription.reactivated': FFIDSubscriptionReactivatedPayload;
|
|
502
512
|
'subscription.updated': FFIDSubscriptionUpdatedPayload;
|
|
513
|
+
'subscription.seats.changed': FFIDSubscriptionSeatsChangedPayload;
|
|
503
514
|
'subscription.canceled': FFIDSubscriptionCanceledPayload;
|
|
504
515
|
'subscription.downgrade_scheduled': FFIDSubscriptionDowngradeScheduledPayload;
|
|
505
516
|
'subscription.downgrade_applied': FFIDSubscriptionDowngradeAppliedPayload;
|
|
@@ -650,4 +661,4 @@ declare function createFFIDWebhookHandler(config: FFIDWebhookHandlerConfig): {
|
|
|
650
661
|
/** Type of the FFID Webhook handler */
|
|
651
662
|
type FFIDWebhookHandler = ReturnType<typeof createFFIDWebhookHandler>;
|
|
652
663
|
|
|
653
|
-
export { DEFAULT_TOLERANCE_SECONDS, type FFIDAnnouncementPublishedPayload, type FFIDCreditsExhaustedPayload, type FFIDCreditsGrantedPayload, type FFIDCreditsLowPayload, type FFIDCreditsPackPurchasedPayload, type FFIDLegalAgreementRequiredPayload, type FFIDLegalDocumentUpdatedPayload, type FFIDOrganizationCreatedPayload, type FFIDOrganizationMemberAddedPayload, type FFIDOrganizationMemberRemovedPayload, type FFIDOrganizationMemberRoleChangedPayload, type FFIDOrganizationUpdatedPayload, type FFIDSubscriptionCanceledPayload, type FFIDSubscriptionCreatedPayload, type FFIDSubscriptionDowngradeAppliedPayload, type FFIDSubscriptionDowngradeCanceledPayload, type FFIDSubscriptionDowngradeScheduledPayload, type FFIDSubscriptionPaymentFailedPayload, type FFIDSubscriptionReactivatedPayload, type FFIDSubscriptionTrialEndingPayload, type FFIDSubscriptionUpdatedPayload, type FFIDSystemMaintenancePayload, type FFIDTestPingPayload, type FFIDUserCreatedPayload, type FFIDUserDeletedPayload, type FFIDUserDeletionRequestedPayload, type FFIDUserUpdatedPayload, FFIDWebhookError, type FFIDWebhookEvent, type FFIDWebhookEventHandler, type FFIDWebhookEventMap, type FFIDWebhookEventType, type FFIDWebhookHandler, type FFIDWebhookHandlerConfig, type FFIDWebhookLogger, FFIDWebhookPayloadError, FFIDWebhookSignatureError, FFIDWebhookTimestampError, FFID_WEBHOOK_EVENT_ID_HEADER, FFID_WEBHOOK_SIGNATURE_HEADER, FFID_WEBHOOK_SIGNATURE_VERSION, FFID_WEBHOOK_TIMESTAMP_HEADER, computeSignature, createFFIDWebhookHandler, parseSignatureHeader, verifyWebhookSignature };
|
|
664
|
+
export { DEFAULT_TOLERANCE_SECONDS, type FFIDAnnouncementPublishedPayload, type FFIDCreditsExhaustedPayload, type FFIDCreditsGrantedPayload, type FFIDCreditsLowPayload, type FFIDCreditsPackPurchasedPayload, type FFIDLegalAgreementRequiredPayload, type FFIDLegalDocumentUpdatedPayload, type FFIDOrganizationCreatedPayload, type FFIDOrganizationMemberAddedPayload, type FFIDOrganizationMemberRemovedPayload, type FFIDOrganizationMemberRoleChangedPayload, type FFIDOrganizationUpdatedPayload, type FFIDSubscriptionCanceledPayload, type FFIDSubscriptionCreatedPayload, type FFIDSubscriptionDowngradeAppliedPayload, type FFIDSubscriptionDowngradeCanceledPayload, type FFIDSubscriptionDowngradeScheduledPayload, type FFIDSubscriptionPaymentFailedPayload, type FFIDSubscriptionReactivatedPayload, type FFIDSubscriptionSeatsChangedPayload, type FFIDSubscriptionTrialEndingPayload, type FFIDSubscriptionUpdatedPayload, type FFIDSystemMaintenancePayload, type FFIDTestPingPayload, type FFIDUserCreatedPayload, type FFIDUserDeletedPayload, type FFIDUserDeletionRequestedPayload, type FFIDUserUpdatedPayload, FFIDWebhookError, type FFIDWebhookEvent, type FFIDWebhookEventHandler, type FFIDWebhookEventMap, type FFIDWebhookEventType, type FFIDWebhookHandler, type FFIDWebhookHandlerConfig, type FFIDWebhookLogger, FFIDWebhookPayloadError, FFIDWebhookSignatureError, FFIDWebhookTimestampError, FFID_WEBHOOK_EVENT_ID_HEADER, FFID_WEBHOOK_SIGNATURE_HEADER, FFID_WEBHOOK_SIGNATURE_VERSION, FFID_WEBHOOK_TIMESTAMP_HEADER, computeSignature, createFFIDWebhookHandler, parseSignatureHeader, verifyWebhookSignature };
|
package/dist/webhooks/index.d.ts
CHANGED
|
@@ -115,7 +115,17 @@ interface FFIDCreditsPackPurchasedPayload extends FFIDCreditsEventBase {
|
|
|
115
115
|
*/
|
|
116
116
|
|
|
117
117
|
/** All supported webhook event types */
|
|
118
|
-
type FFIDWebhookEventType = 'subscription.created' | 'subscription.reactivated' | 'subscription.updated' | 'subscription.canceled' | 'subscription.downgrade_scheduled' | 'subscription.downgrade_applied' | 'subscription.downgrade_canceled' | 'subscription.trial_ending' | 'subscription.payment_failed' | 'user.created' | 'user.updated' | 'user.deleted' | 'user.deletion_requested' | 'organization.created' | 'organization.updated' | 'organization.member.added' | 'organization.member.removed' | 'organization.member.role_changed' | 'legal.document.updated' | 'legal.agreement.required' | 'system.maintenance.scheduled' | 'system.maintenance.started' | 'system.maintenance.completed' | 'announcement.published' | 'credits.granted' | 'credits.low' | 'credits.exhausted' | 'credits.pack_purchased' | 'test.ping';
|
|
118
|
+
type FFIDWebhookEventType = 'subscription.created' | 'subscription.reactivated' | 'subscription.updated' | 'subscription.seats.changed' | 'subscription.canceled' | 'subscription.downgrade_scheduled' | 'subscription.downgrade_applied' | 'subscription.downgrade_canceled' | 'subscription.trial_ending' | 'subscription.payment_failed' | 'user.created' | 'user.updated' | 'user.deleted' | 'user.deletion_requested' | 'organization.created' | 'organization.updated' | 'organization.member.added' | 'organization.member.removed' | 'organization.member.role_changed' | 'legal.document.updated' | 'legal.agreement.required' | 'system.maintenance.scheduled' | 'system.maintenance.started' | 'system.maintenance.completed' | 'announcement.published' | 'credits.granted' | 'credits.low' | 'credits.exhausted' | 'credits.pack_purchased' | 'test.ping';
|
|
119
|
+
/**
|
|
120
|
+
* Seat-roster reconciliation hint. Fetch the current roster from FFID; delivery
|
|
121
|
+
* can be delayed, duplicated or reordered. This event grants no access by itself.
|
|
122
|
+
*/
|
|
123
|
+
interface FFIDSubscriptionSeatsChangedPayload {
|
|
124
|
+
subscriptionId: string;
|
|
125
|
+
organizationId: string;
|
|
126
|
+
/** Compare with the receiver's own service before reading/reconciling its roster. */
|
|
127
|
+
serviceCode?: string;
|
|
128
|
+
}
|
|
119
129
|
interface FFIDSubscriptionCreatedPayload {
|
|
120
130
|
subscriptionId: string;
|
|
121
131
|
organizationId?: string;
|
|
@@ -500,6 +510,7 @@ interface FFIDWebhookEventMap {
|
|
|
500
510
|
'subscription.created': FFIDSubscriptionCreatedPayload;
|
|
501
511
|
'subscription.reactivated': FFIDSubscriptionReactivatedPayload;
|
|
502
512
|
'subscription.updated': FFIDSubscriptionUpdatedPayload;
|
|
513
|
+
'subscription.seats.changed': FFIDSubscriptionSeatsChangedPayload;
|
|
503
514
|
'subscription.canceled': FFIDSubscriptionCanceledPayload;
|
|
504
515
|
'subscription.downgrade_scheduled': FFIDSubscriptionDowngradeScheduledPayload;
|
|
505
516
|
'subscription.downgrade_applied': FFIDSubscriptionDowngradeAppliedPayload;
|
|
@@ -650,4 +661,4 @@ declare function createFFIDWebhookHandler(config: FFIDWebhookHandlerConfig): {
|
|
|
650
661
|
/** Type of the FFID Webhook handler */
|
|
651
662
|
type FFIDWebhookHandler = ReturnType<typeof createFFIDWebhookHandler>;
|
|
652
663
|
|
|
653
|
-
export { DEFAULT_TOLERANCE_SECONDS, type FFIDAnnouncementPublishedPayload, type FFIDCreditsExhaustedPayload, type FFIDCreditsGrantedPayload, type FFIDCreditsLowPayload, type FFIDCreditsPackPurchasedPayload, type FFIDLegalAgreementRequiredPayload, type FFIDLegalDocumentUpdatedPayload, type FFIDOrganizationCreatedPayload, type FFIDOrganizationMemberAddedPayload, type FFIDOrganizationMemberRemovedPayload, type FFIDOrganizationMemberRoleChangedPayload, type FFIDOrganizationUpdatedPayload, type FFIDSubscriptionCanceledPayload, type FFIDSubscriptionCreatedPayload, type FFIDSubscriptionDowngradeAppliedPayload, type FFIDSubscriptionDowngradeCanceledPayload, type FFIDSubscriptionDowngradeScheduledPayload, type FFIDSubscriptionPaymentFailedPayload, type FFIDSubscriptionReactivatedPayload, type FFIDSubscriptionTrialEndingPayload, type FFIDSubscriptionUpdatedPayload, type FFIDSystemMaintenancePayload, type FFIDTestPingPayload, type FFIDUserCreatedPayload, type FFIDUserDeletedPayload, type FFIDUserDeletionRequestedPayload, type FFIDUserUpdatedPayload, FFIDWebhookError, type FFIDWebhookEvent, type FFIDWebhookEventHandler, type FFIDWebhookEventMap, type FFIDWebhookEventType, type FFIDWebhookHandler, type FFIDWebhookHandlerConfig, type FFIDWebhookLogger, FFIDWebhookPayloadError, FFIDWebhookSignatureError, FFIDWebhookTimestampError, FFID_WEBHOOK_EVENT_ID_HEADER, FFID_WEBHOOK_SIGNATURE_HEADER, FFID_WEBHOOK_SIGNATURE_VERSION, FFID_WEBHOOK_TIMESTAMP_HEADER, computeSignature, createFFIDWebhookHandler, parseSignatureHeader, verifyWebhookSignature };
|
|
664
|
+
export { DEFAULT_TOLERANCE_SECONDS, type FFIDAnnouncementPublishedPayload, type FFIDCreditsExhaustedPayload, type FFIDCreditsGrantedPayload, type FFIDCreditsLowPayload, type FFIDCreditsPackPurchasedPayload, type FFIDLegalAgreementRequiredPayload, type FFIDLegalDocumentUpdatedPayload, type FFIDOrganizationCreatedPayload, type FFIDOrganizationMemberAddedPayload, type FFIDOrganizationMemberRemovedPayload, type FFIDOrganizationMemberRoleChangedPayload, type FFIDOrganizationUpdatedPayload, type FFIDSubscriptionCanceledPayload, type FFIDSubscriptionCreatedPayload, type FFIDSubscriptionDowngradeAppliedPayload, type FFIDSubscriptionDowngradeCanceledPayload, type FFIDSubscriptionDowngradeScheduledPayload, type FFIDSubscriptionPaymentFailedPayload, type FFIDSubscriptionReactivatedPayload, type FFIDSubscriptionSeatsChangedPayload, type FFIDSubscriptionTrialEndingPayload, type FFIDSubscriptionUpdatedPayload, type FFIDSystemMaintenancePayload, type FFIDTestPingPayload, type FFIDUserCreatedPayload, type FFIDUserDeletedPayload, type FFIDUserDeletionRequestedPayload, type FFIDUserUpdatedPayload, FFIDWebhookError, type FFIDWebhookEvent, type FFIDWebhookEventHandler, type FFIDWebhookEventMap, type FFIDWebhookEventType, type FFIDWebhookHandler, type FFIDWebhookHandlerConfig, type FFIDWebhookLogger, FFIDWebhookPayloadError, FFIDWebhookSignatureError, FFIDWebhookTimestampError, FFID_WEBHOOK_EVENT_ID_HEADER, FFID_WEBHOOK_SIGNATURE_HEADER, FFID_WEBHOOK_SIGNATURE_VERSION, FFID_WEBHOOK_TIMESTAMP_HEADER, computeSignature, createFFIDWebhookHandler, parseSignatureHeader, verifyWebhookSignature };
|