@feelflow/ffid-sdk 12.2.0 → 12.2.2
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/README.md +1 -1
- package/dist/{FFIDCookieLink-yt5SUr-W.d.cts → FFIDCookieLink-B91Fpinc.d.cts} +2 -1
- package/dist/{FFIDCookieLink-yt5SUr-W.d.ts → FFIDCookieLink-B91Fpinc.d.ts} +2 -1
- package/dist/agency/index.d.cts +22 -1
- package/dist/agency/index.d.ts +22 -1
- package/dist/announcements/index.d.cts +2 -1
- package/dist/announcements/index.d.ts +2 -1
- package/dist/{chunk-LT7FQ7BT.cjs → chunk-4UCL6JN6.cjs} +8 -6
- package/dist/{chunk-75ISD4I4.js → chunk-OQCNCKJ4.js} +8 -6
- 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/consent/index.d.cts +4 -3
- package/dist/consent/index.d.ts +4 -3
- package/dist/{ffid-client-DMwmK8mM.d.cts → ffid-client-C4Mjg70P.d.cts} +5 -3
- package/dist/{ffid-client-Dr2KVlIZ.d.ts → ffid-client-E9ja3Jus.d.ts} +5 -3
- package/dist/{index-f9k9reXO.d.cts → index-BCX5kug1.d.cts} +251 -249
- package/dist/{index-f9k9reXO.d.ts → index-BCX5kug1.d.ts} +251 -249
- package/dist/index.cjs +93 -93
- package/dist/index.d.cts +113 -112
- package/dist/index.d.ts +113 -112
- package/dist/index.js +2 -2
- package/dist/legal/index.d.cts +2 -1
- package/dist/legal/index.d.ts +2 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.cts +4 -3
- package/dist/server/index.d.ts +4 -3
- package/dist/server/index.js +1 -1
- package/dist/server/test/index.d.cts +3 -2
- package/dist/server/test/index.d.ts +3 -2
- package/dist/webhooks/index.d.cts +2 -1
- package/dist/webhooks/index.d.ts +2 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -425,7 +425,7 @@ if (error || !access?.hasAccess) {
|
|
|
425
425
|
- `effectiveStatus`: `active` / `past_due_grace` / `blocked` / `canceled` / `trial_expired` / `expired`。
|
|
426
426
|
- `gracePeriodEndsAt`: `past_due_grace` が `blocked` に変わる時刻。表示・警告用であり、アクセス判定の source of truth にしない。
|
|
427
427
|
- `failPolicy`: 現在は `failClosed` 固定。FFID に到達できない、または canonical decision を取得できない場合は `result.error` ではなく `data.hasAccess=false` / `denialReason='ffid_unreachable'` / `data.error` を返す。呼び出し側は `result.error` だけで通過判定しない。
|
|
428
|
-
- `denialReason` には `member_limit_reached`(10.0.0)も含まれる。flat
|
|
428
|
+
- `denialReason` には `member_limit_reached`(10.0.0)も含まれる。flat プランの人数枠、または per_seat 契約の席数(`quantity`。FFID #6371)が満員で席を付けられない利用者は、ログイン時に OAuth の `denial_reason: 'member_limit_reached'` で止まる。`checkServiceAccess()` 自体はこの値を返さず、人数枠・クレジット残高は `hasAccess` に影響しない。`memberLimitReached` / `credits` / `pricingModel` は情報として decision に載る(古い FFID は返さない)。
|
|
429
429
|
|
|
430
430
|
### Credits(flat プラン、v10.0.0)
|
|
431
431
|
|
|
@@ -1082,4 +1082,5 @@ interface FFIDCookieLinkProps {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
declare function FFIDCookieLink({ children, className, style, id, }: FFIDCookieLinkProps): React.JSX.Element;
|
|
1084
1084
|
|
|
1085
|
-
export {
|
|
1085
|
+
export { ALL_DENIED_EXCEPT_NECESSARY as A, CONSENT_COOKIE_MAX_AGE_SEC as C, DEFAULT_CONSENT_ERROR_MESSAGES as D, FFIDConsentMergeWarningSchema as E, FFIDConsentSourceSchema as I, FFIDConsentStateSchema as J, FFIDConsentUpdateSchema as K, FFIDCookieBanner as L, FFIDCookieLink as O, FFIDCookiePolicySchema as R, FFIDCookieSettings as S, FFIDInternalConsentSourceSchema as W, FFIDPublicConsentSourceSchema as Y, FFID_CONSENT_ERROR_CODES as Z, FFID_CONSENT_NOT_DECIDED_STATE as _, GetCategoriesWireSchema as a0, GetConsentMeWireSchema as a1, GetDocumentWireSchema as a3, PostConsentRequestSchema as a7, PostConsentWireSchema as a8, PostSyncRequestSchema as aa, PostSyncWireSchema as ab, PostWithdrawWireSchema as ac, clearConsentDismissalTimestamp as af, clearConsentSessionMirror as ag, createGtagBridge as ah, decodeConsentCookie as ai, deleteConsentCookie as aj, encodeConsentCookie as ak, mapCategoriesToGtagParams as al, readConsentCookie as am, readConsentDismissalTimestamp as an, readConsentSessionMirror as ao, useFFIDConsent as ap, useFFIDConsentPreferences as aq, writeConsentCookie as ar, writeConsentDismissalTimestamp as as, writeConsentSessionMirror as at, CONSENT_COOKIE_NAME as i, CONSENT_DISMISSAL_TIMESTAMP_KEY as j, CONSENT_SESSION_STORAGE_KEY as k, COOKIE_VERSION as l, DeviceIdSchema as m, FFIDAnalyticsProvider as n, FFIDConsentCategoriesSchema as p, FFIDConsentCategoryCodeSchema as r, FFIDConsentCategoryMetadataSchema as s, FFIDConsentContext as t, FFIDConsentError as v, FFIDConsentMergeStrategySchema as y };
|
|
1086
|
+
export type { GetCategoriesWire as $, FFIDConsentMergeWarningEvent as B, FFIDConsentResult as F, GetConsentMeWire as G, FFIDConsentSource as H, FFIDCookieBannerClassNames as M, FFIDCookieBannerProps as N, PostConsentWire as P, FFIDCookieLinkProps as Q, FFIDCookieSettingsClassNames as T, FFIDCookieSettingsProps as U, FFIDInternalConsentSource as V, FFIDPublicConsentSource as X, FFIDConsentState as a, GetDocumentWire as a2, GtagBridge as a4, GtagBridgeOptions as a5, PostConsentRequest as a6, PostSyncRequest as a9, UseFFIDConsentPreferencesReturn as ad, UseFFIDConsentReturn as ae, FFIDConsentUpdate as b, FFIDConsentCategories as c, FFIDConsentSyncResult as d, FFIDConsentCategoryMetadata as e, FFIDCookiePolicy as f, PostSyncWire as g, PostWithdrawWire as h, FFIDAnalyticsProviderProps as o, FFIDConsentCategoryCode as q, FFIDConsentContextValue as u, FFIDConsentErrorCode as w, FFIDConsentMergeStrategy as x, FFIDConsentMergeWarning as z };
|
|
@@ -1082,4 +1082,5 @@ interface FFIDCookieLinkProps {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
declare function FFIDCookieLink({ children, className, style, id, }: FFIDCookieLinkProps): React.JSX.Element;
|
|
1084
1084
|
|
|
1085
|
-
export {
|
|
1085
|
+
export { ALL_DENIED_EXCEPT_NECESSARY as A, CONSENT_COOKIE_MAX_AGE_SEC as C, DEFAULT_CONSENT_ERROR_MESSAGES as D, FFIDConsentMergeWarningSchema as E, FFIDConsentSourceSchema as I, FFIDConsentStateSchema as J, FFIDConsentUpdateSchema as K, FFIDCookieBanner as L, FFIDCookieLink as O, FFIDCookiePolicySchema as R, FFIDCookieSettings as S, FFIDInternalConsentSourceSchema as W, FFIDPublicConsentSourceSchema as Y, FFID_CONSENT_ERROR_CODES as Z, FFID_CONSENT_NOT_DECIDED_STATE as _, GetCategoriesWireSchema as a0, GetConsentMeWireSchema as a1, GetDocumentWireSchema as a3, PostConsentRequestSchema as a7, PostConsentWireSchema as a8, PostSyncRequestSchema as aa, PostSyncWireSchema as ab, PostWithdrawWireSchema as ac, clearConsentDismissalTimestamp as af, clearConsentSessionMirror as ag, createGtagBridge as ah, decodeConsentCookie as ai, deleteConsentCookie as aj, encodeConsentCookie as ak, mapCategoriesToGtagParams as al, readConsentCookie as am, readConsentDismissalTimestamp as an, readConsentSessionMirror as ao, useFFIDConsent as ap, useFFIDConsentPreferences as aq, writeConsentCookie as ar, writeConsentDismissalTimestamp as as, writeConsentSessionMirror as at, CONSENT_COOKIE_NAME as i, CONSENT_DISMISSAL_TIMESTAMP_KEY as j, CONSENT_SESSION_STORAGE_KEY as k, COOKIE_VERSION as l, DeviceIdSchema as m, FFIDAnalyticsProvider as n, FFIDConsentCategoriesSchema as p, FFIDConsentCategoryCodeSchema as r, FFIDConsentCategoryMetadataSchema as s, FFIDConsentContext as t, FFIDConsentError as v, FFIDConsentMergeStrategySchema as y };
|
|
1086
|
+
export type { GetCategoriesWire as $, FFIDConsentMergeWarningEvent as B, FFIDConsentResult as F, GetConsentMeWire as G, FFIDConsentSource as H, FFIDCookieBannerClassNames as M, FFIDCookieBannerProps as N, PostConsentWire as P, FFIDCookieLinkProps as Q, FFIDCookieSettingsClassNames as T, FFIDCookieSettingsProps as U, FFIDInternalConsentSource as V, FFIDPublicConsentSource as X, FFIDConsentState as a, GetDocumentWire as a2, GtagBridge as a4, GtagBridgeOptions as a5, PostConsentRequest as a6, PostSyncRequest as a9, UseFFIDConsentPreferencesReturn as ad, UseFFIDConsentReturn as ae, FFIDConsentUpdate as b, FFIDConsentCategories as c, FFIDConsentSyncResult as d, FFIDConsentCategoryMetadata as e, FFIDCookiePolicy as f, PostSyncWire as g, PostWithdrawWire as h, FFIDAnalyticsProviderProps as o, FFIDConsentCategoryCode as q, FFIDConsentContextValue as u, FFIDConsentErrorCode as w, FFIDConsentMergeStrategy as x, FFIDConsentMergeWarning as z };
|
package/dist/agency/index.d.cts
CHANGED
|
@@ -272,6 +272,12 @@ interface FFIDAgencyClient {
|
|
|
272
272
|
getAgency(agencyId: string): Promise<FFIDAgencyApiResponse<{
|
|
273
273
|
agency: FFIDAgency;
|
|
274
274
|
}>>;
|
|
275
|
+
/**
|
|
276
|
+
* 代理店を更新する。`settings` はセクション内のキー単位で既存値にマージされる。
|
|
277
|
+
*
|
|
278
|
+
* `settings.branding.logoUrl` / `faviconUrl` は型が許すので受け付けるが、**保存しない**(FFID #6972)—
|
|
279
|
+
* ロゴとファビコンは {@link FFIDAgencyClient.uploadAsset} で変える。保存済みの値は消えない。
|
|
280
|
+
*/
|
|
275
281
|
updateAgency(agencyId: string, data: FFIDUpdateAgencyRequest): Promise<FFIDAgencyApiResponse<{
|
|
276
282
|
agency: FFIDAgency;
|
|
277
283
|
}>>;
|
|
@@ -319,6 +325,18 @@ interface FFIDAgencyClient {
|
|
|
319
325
|
getBranding(agencyId: string): Promise<FFIDAgencyApiResponse<{
|
|
320
326
|
branding: FFIDAgencyBrandingSettings;
|
|
321
327
|
}>>;
|
|
328
|
+
/**
|
|
329
|
+
* ブランディング(色 2 種・会社名)を更新する。
|
|
330
|
+
*
|
|
331
|
+
* FFID は型にないキーを 400 `UNKNOWN_SETTINGS_KEY` で拒否する(FFID #6972。`error.details.fields`
|
|
332
|
+
* にキー名)。`logoUrl` / `faviconUrl` は型が許すので受け付けるが、**保存しない** —
|
|
333
|
+
* ロゴとファビコンは {@link FFIDAgencyClient.uploadAsset} で変える。2 つはこのメソッドの
|
|
334
|
+
* 引数の型から次の major 版で外す。
|
|
335
|
+
*
|
|
336
|
+
* ⚠️ `error.code` の型({@link FFIDAgencyErrorCode})は `UNKNOWN_SETTINGS_KEY` を含まない
|
|
337
|
+
* (閉じた union にコードを足すのは破壊的変更なので次の major 版で扱う)。実行時には届くので、
|
|
338
|
+
* 比べるときは `(error.code as string) === 'UNKNOWN_SETTINGS_KEY'` とする。
|
|
339
|
+
*/
|
|
322
340
|
updateBranding(agencyId: string, data: FFIDAgencyBrandingSettings): Promise<FFIDAgencyApiResponse<{
|
|
323
341
|
branding: FFIDAgencyBrandingSettings;
|
|
324
342
|
}>>;
|
|
@@ -328,6 +346,7 @@ interface FFIDAgencyClient {
|
|
|
328
346
|
getDomain(agencyId: string): Promise<FFIDAgencyApiResponse<{
|
|
329
347
|
domain: FFIDAgencyDomainSettings;
|
|
330
348
|
}>>;
|
|
349
|
+
/** FFID は `customDomain` 以外のキーを 400 `UNKNOWN_SETTINGS_KEY` で拒否する(FFID #6972)。 */
|
|
331
350
|
setupDomain(agencyId: string, data: FFIDSetupDomainRequest): Promise<FFIDAgencyApiResponse<{
|
|
332
351
|
domain: FFIDAgencyDomainSettings;
|
|
333
352
|
}>>;
|
|
@@ -340,6 +359,7 @@ interface FFIDAgencyClient {
|
|
|
340
359
|
getEmailSettings(agencyId: string): Promise<FFIDAgencyApiResponse<{
|
|
341
360
|
emailSettings: FFIDAgencyEmailSettings;
|
|
342
361
|
}>>;
|
|
362
|
+
/** FFID は型にないキーを 400 `UNKNOWN_SETTINGS_KEY` で拒否する(FFID #6972)。 */
|
|
343
363
|
updateEmailSettings(agencyId: string, data: FFIDUpdateEmailSettingsRequest): Promise<FFIDAgencyApiResponse<{
|
|
344
364
|
emailSettings: FFIDAgencyEmailSettings;
|
|
345
365
|
}>>;
|
|
@@ -534,4 +554,5 @@ declare const FFID_AGENCY_ERROR_CODES: {
|
|
|
534
554
|
};
|
|
535
555
|
declare function createFFIDAgencyClient(config?: FFIDAgencyClientConfig): FFIDAgencyClient;
|
|
536
556
|
|
|
537
|
-
export {
|
|
557
|
+
export { FFID_AGENCY_ERROR_CODES, createFFIDAgencyClient, createFFIDAgencyServerClient };
|
|
558
|
+
export type { FFIDAddAgencyMemberRequest, FFIDAgency, FFIDAgencyApiResponse, FFIDAgencyAssetType, FFIDAgencyBillingConfig, FFIDAgencyBillingOverride, FFIDAgencyBillingSummary, FFIDAgencyBillingType, FFIDAgencyBrandingSettings, FFIDAgencyClient, FFIDAgencyClientConfig, FFIDAgencyDnsRecord, FFIDAgencyDomainSettings, FFIDAgencyEmailSettings, FFIDAgencyError, FFIDAgencyErrorCode, FFIDAgencyHierarchyNode, FFIDAgencyHierarchyResponse, FFIDAgencyInvoice, FFIDAgencyInvoiceStatus, FFIDAgencyLogger, FFIDAgencyMember, FFIDAgencyMemberRole, FFIDAgencyMemberStatus, FFIDAgencyOrganization, FFIDAgencyRevenue, FFIDAgencySdkErrorCode, FFIDAgencyServerClient, FFIDAgencyServerClientConfig, FFIDAgencyServerClientError, FFIDAgencyServerClientErrorCode, FFIDAgencyServerClientResponse, FFIDAgencyServerError, FFIDAgencyServerErrorCode, FFIDAgencyServerResponse, FFIDAgencySettings, FFIDAgencyStatus, FFIDCreateSubAgencyRequest, FFIDLinkOrganizationRequest, FFIDProvisionOrganizationRequest, FFIDProvisionedOrganization, FFIDSetupDomainRequest, FFIDSslStatus, FFIDUpdateAgencyBillingRequest, FFIDUpdateAgencyMemberRequest, FFIDUpdateAgencyRequest, FFIDUpdateEmailSettingsRequest, FFIDWelcomeEmailOutcome };
|
package/dist/agency/index.d.ts
CHANGED
|
@@ -272,6 +272,12 @@ interface FFIDAgencyClient {
|
|
|
272
272
|
getAgency(agencyId: string): Promise<FFIDAgencyApiResponse<{
|
|
273
273
|
agency: FFIDAgency;
|
|
274
274
|
}>>;
|
|
275
|
+
/**
|
|
276
|
+
* 代理店を更新する。`settings` はセクション内のキー単位で既存値にマージされる。
|
|
277
|
+
*
|
|
278
|
+
* `settings.branding.logoUrl` / `faviconUrl` は型が許すので受け付けるが、**保存しない**(FFID #6972)—
|
|
279
|
+
* ロゴとファビコンは {@link FFIDAgencyClient.uploadAsset} で変える。保存済みの値は消えない。
|
|
280
|
+
*/
|
|
275
281
|
updateAgency(agencyId: string, data: FFIDUpdateAgencyRequest): Promise<FFIDAgencyApiResponse<{
|
|
276
282
|
agency: FFIDAgency;
|
|
277
283
|
}>>;
|
|
@@ -319,6 +325,18 @@ interface FFIDAgencyClient {
|
|
|
319
325
|
getBranding(agencyId: string): Promise<FFIDAgencyApiResponse<{
|
|
320
326
|
branding: FFIDAgencyBrandingSettings;
|
|
321
327
|
}>>;
|
|
328
|
+
/**
|
|
329
|
+
* ブランディング(色 2 種・会社名)を更新する。
|
|
330
|
+
*
|
|
331
|
+
* FFID は型にないキーを 400 `UNKNOWN_SETTINGS_KEY` で拒否する(FFID #6972。`error.details.fields`
|
|
332
|
+
* にキー名)。`logoUrl` / `faviconUrl` は型が許すので受け付けるが、**保存しない** —
|
|
333
|
+
* ロゴとファビコンは {@link FFIDAgencyClient.uploadAsset} で変える。2 つはこのメソッドの
|
|
334
|
+
* 引数の型から次の major 版で外す。
|
|
335
|
+
*
|
|
336
|
+
* ⚠️ `error.code` の型({@link FFIDAgencyErrorCode})は `UNKNOWN_SETTINGS_KEY` を含まない
|
|
337
|
+
* (閉じた union にコードを足すのは破壊的変更なので次の major 版で扱う)。実行時には届くので、
|
|
338
|
+
* 比べるときは `(error.code as string) === 'UNKNOWN_SETTINGS_KEY'` とする。
|
|
339
|
+
*/
|
|
322
340
|
updateBranding(agencyId: string, data: FFIDAgencyBrandingSettings): Promise<FFIDAgencyApiResponse<{
|
|
323
341
|
branding: FFIDAgencyBrandingSettings;
|
|
324
342
|
}>>;
|
|
@@ -328,6 +346,7 @@ interface FFIDAgencyClient {
|
|
|
328
346
|
getDomain(agencyId: string): Promise<FFIDAgencyApiResponse<{
|
|
329
347
|
domain: FFIDAgencyDomainSettings;
|
|
330
348
|
}>>;
|
|
349
|
+
/** FFID は `customDomain` 以外のキーを 400 `UNKNOWN_SETTINGS_KEY` で拒否する(FFID #6972)。 */
|
|
331
350
|
setupDomain(agencyId: string, data: FFIDSetupDomainRequest): Promise<FFIDAgencyApiResponse<{
|
|
332
351
|
domain: FFIDAgencyDomainSettings;
|
|
333
352
|
}>>;
|
|
@@ -340,6 +359,7 @@ interface FFIDAgencyClient {
|
|
|
340
359
|
getEmailSettings(agencyId: string): Promise<FFIDAgencyApiResponse<{
|
|
341
360
|
emailSettings: FFIDAgencyEmailSettings;
|
|
342
361
|
}>>;
|
|
362
|
+
/** FFID は型にないキーを 400 `UNKNOWN_SETTINGS_KEY` で拒否する(FFID #6972)。 */
|
|
343
363
|
updateEmailSettings(agencyId: string, data: FFIDUpdateEmailSettingsRequest): Promise<FFIDAgencyApiResponse<{
|
|
344
364
|
emailSettings: FFIDAgencyEmailSettings;
|
|
345
365
|
}>>;
|
|
@@ -534,4 +554,5 @@ declare const FFID_AGENCY_ERROR_CODES: {
|
|
|
534
554
|
};
|
|
535
555
|
declare function createFFIDAgencyClient(config?: FFIDAgencyClientConfig): FFIDAgencyClient;
|
|
536
556
|
|
|
537
|
-
export {
|
|
557
|
+
export { FFID_AGENCY_ERROR_CODES, createFFIDAgencyClient, createFFIDAgencyServerClient };
|
|
558
|
+
export type { FFIDAddAgencyMemberRequest, FFIDAgency, FFIDAgencyApiResponse, FFIDAgencyAssetType, FFIDAgencyBillingConfig, FFIDAgencyBillingOverride, FFIDAgencyBillingSummary, FFIDAgencyBillingType, FFIDAgencyBrandingSettings, FFIDAgencyClient, FFIDAgencyClientConfig, FFIDAgencyDnsRecord, FFIDAgencyDomainSettings, FFIDAgencyEmailSettings, FFIDAgencyError, FFIDAgencyErrorCode, FFIDAgencyHierarchyNode, FFIDAgencyHierarchyResponse, FFIDAgencyInvoice, FFIDAgencyInvoiceStatus, FFIDAgencyLogger, FFIDAgencyMember, FFIDAgencyMemberRole, FFIDAgencyMemberStatus, FFIDAgencyOrganization, FFIDAgencyRevenue, FFIDAgencySdkErrorCode, FFIDAgencyServerClient, FFIDAgencyServerClientConfig, FFIDAgencyServerClientError, FFIDAgencyServerClientErrorCode, FFIDAgencyServerClientResponse, FFIDAgencyServerError, FFIDAgencyServerErrorCode, FFIDAgencyServerResponse, FFIDAgencySettings, FFIDAgencyStatus, FFIDCreateSubAgencyRequest, FFIDLinkOrganizationRequest, FFIDProvisionOrganizationRequest, FFIDProvisionedOrganization, FFIDSetupDomainRequest, FFIDSslStatus, FFIDUpdateAgencyBillingRequest, FFIDUpdateAgencyMemberRequest, FFIDUpdateAgencyRequest, FFIDUpdateEmailSettingsRequest, FFIDWelcomeEmailOutcome };
|
|
@@ -162,4 +162,5 @@ declare function createFFIDAnnouncementsClient(config?: FFIDAnnouncementsClientC
|
|
|
162
162
|
/** Type of the FFID Announcements client */
|
|
163
163
|
type FFIDAnnouncementsClient = ReturnType<typeof createFFIDAnnouncementsClient>;
|
|
164
164
|
|
|
165
|
-
export {
|
|
165
|
+
export { FFID_ANNOUNCEMENTS_ERROR_CODES, createFFIDAnnouncementsClient };
|
|
166
|
+
export type { Announcement, AnnouncementListResponse, AnnouncementStatus, AnnouncementType, FFIDAnnouncementsApiResponse, FFIDAnnouncementsClient, FFIDAnnouncementsClientConfig, FFIDAnnouncementsError, FFIDAnnouncementsErrorCode, FFIDAnnouncementsLogger, FFIDAnnouncementsServerResponse, ListAnnouncementsOptions };
|
|
@@ -162,4 +162,5 @@ declare function createFFIDAnnouncementsClient(config?: FFIDAnnouncementsClientC
|
|
|
162
162
|
/** Type of the FFID Announcements client */
|
|
163
163
|
type FFIDAnnouncementsClient = ReturnType<typeof createFFIDAnnouncementsClient>;
|
|
164
164
|
|
|
165
|
-
export {
|
|
165
|
+
export { FFID_ANNOUNCEMENTS_ERROR_CODES, createFFIDAnnouncementsClient };
|
|
166
|
+
export type { Announcement, AnnouncementListResponse, AnnouncementStatus, AnnouncementType, FFIDAnnouncementsApiResponse, FFIDAnnouncementsClient, FFIDAnnouncementsClientConfig, FFIDAnnouncementsError, FFIDAnnouncementsErrorCode, FFIDAnnouncementsLogger, FFIDAnnouncementsServerResponse, ListAnnouncementsOptions };
|
|
@@ -1394,7 +1394,7 @@ var FFID_ORGANIZATION_PROFILE_ERROR_CODES = {
|
|
|
1394
1394
|
};
|
|
1395
1395
|
|
|
1396
1396
|
// src/client/version-check.ts
|
|
1397
|
-
var SDK_VERSION = "12.2.
|
|
1397
|
+
var SDK_VERSION = "12.2.2";
|
|
1398
1398
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
1399
1399
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
1400
1400
|
function sdkHeaders() {
|
|
@@ -5306,10 +5306,12 @@ function FFIDUserMenu({
|
|
|
5306
5306
|
}) {
|
|
5307
5307
|
const { user, currentOrganization, logout, isLoading, isAuthenticated } = useFFID();
|
|
5308
5308
|
const [isOpen, setIsOpen] = react.useState(false);
|
|
5309
|
-
const
|
|
5310
|
-
react.
|
|
5311
|
-
|
|
5312
|
-
|
|
5309
|
+
const avatarUrl = user?.avatarUrl ?? null;
|
|
5310
|
+
const [avatarState, setAvatarState] = react.useState({ url: avatarUrl, failed: false });
|
|
5311
|
+
if (avatarState.url !== avatarUrl) {
|
|
5312
|
+
setAvatarState({ url: avatarUrl, failed: false });
|
|
5313
|
+
}
|
|
5314
|
+
const avatarError = avatarState.url === avatarUrl && avatarState.failed;
|
|
5313
5315
|
if (!isAuthenticated || !user) {
|
|
5314
5316
|
return null;
|
|
5315
5317
|
}
|
|
@@ -5352,7 +5354,7 @@ function FFIDUserMenu({
|
|
|
5352
5354
|
className: classNames.avatar,
|
|
5353
5355
|
src: user.avatarUrl,
|
|
5354
5356
|
alt: displayName,
|
|
5355
|
-
onError: () =>
|
|
5357
|
+
onError: () => setAvatarState({ url: avatarUrl, failed: true }),
|
|
5356
5358
|
style: { width: SIZE_AVATAR_MD, height: SIZE_AVATAR_MD, borderRadius: "50%" }
|
|
5357
5359
|
}
|
|
5358
5360
|
) : defaultAvatar;
|
|
@@ -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 = "12.2.
|
|
1395
|
+
var SDK_VERSION = "12.2.2";
|
|
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() {
|
|
@@ -5304,10 +5304,12 @@ function FFIDUserMenu({
|
|
|
5304
5304
|
}) {
|
|
5305
5305
|
const { user, currentOrganization, logout, isLoading, isAuthenticated } = useFFID();
|
|
5306
5306
|
const [isOpen, setIsOpen] = useState(false);
|
|
5307
|
-
const
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5307
|
+
const avatarUrl = user?.avatarUrl ?? null;
|
|
5308
|
+
const [avatarState, setAvatarState] = useState({ url: avatarUrl, failed: false });
|
|
5309
|
+
if (avatarState.url !== avatarUrl) {
|
|
5310
|
+
setAvatarState({ url: avatarUrl, failed: false });
|
|
5311
|
+
}
|
|
5312
|
+
const avatarError = avatarState.url === avatarUrl && avatarState.failed;
|
|
5311
5313
|
if (!isAuthenticated || !user) {
|
|
5312
5314
|
return null;
|
|
5313
5315
|
}
|
|
@@ -5350,7 +5352,7 @@ function FFIDUserMenu({
|
|
|
5350
5352
|
className: classNames.avatar,
|
|
5351
5353
|
src: user.avatarUrl,
|
|
5352
5354
|
alt: displayName,
|
|
5353
|
-
onError: () =>
|
|
5355
|
+
onError: () => setAvatarState({ url: avatarUrl, failed: true }),
|
|
5354
5356
|
style: { width: SIZE_AVATAR_MD, height: SIZE_AVATAR_MD, borderRadius: "50%" }
|
|
5355
5357
|
}
|
|
5356
5358
|
) : defaultAvatar;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk4UCL6JN6_cjs = require('../chunk-4UCL6JN6.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 chunk4UCL6JN6_cjs.FFIDAnnouncementBadge; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk4UCL6JN6_cjs.FFIDAnnouncementList; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk4UCL6JN6_cjs.FFIDInquiryForm; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk4UCL6JN6_cjs.FFIDLoginButton; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk4UCL6JN6_cjs.FFIDOrganizationSwitcher; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk4UCL6JN6_cjs.FFIDSubscriptionBadge; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk4UCL6JN6_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-BCX5kug1.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-BCX5kug1.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-OQCNCKJ4.js';
|
package/dist/consent/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDConsentResult, a as FFIDConsentState, b as FFIDConsentUpdate, c as FFIDConsentCategories, d as FFIDConsentSyncResult, e as FFIDConsentCategoryMetadata, f as FFIDCookiePolicy, P as PostConsentWire, G as GetConsentMeWire, g as PostSyncWire, h as PostWithdrawWire } from '../FFIDCookieLink-
|
|
2
|
-
export { A as ALL_DENIED_EXCEPT_NECESSARY, C as CONSENT_COOKIE_MAX_AGE_SEC, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, k as CONSENT_SESSION_STORAGE_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, m as DeviceIdSchema, n as FFIDAnalyticsProvider, o as FFIDAnalyticsProviderProps, p as FFIDConsentCategoriesSchema, q as FFIDConsentCategoryCode, r as FFIDConsentCategoryCodeSchema, s as FFIDConsentCategoryMetadataSchema, t as FFIDConsentContext, u as FFIDConsentContextValue, v as FFIDConsentError, w as FFIDConsentErrorCode, x as FFIDConsentMergeStrategy, y as FFIDConsentMergeStrategySchema, z as FFIDConsentMergeWarning, B as FFIDConsentMergeWarningEvent, E as FFIDConsentMergeWarningSchema, H as FFIDConsentSource, I as FFIDConsentSourceSchema, J as FFIDConsentStateSchema, K as FFIDConsentUpdateSchema, L as FFIDCookieBanner, M as FFIDCookieBannerClassNames, N as FFIDCookieBannerProps, O as FFIDCookieLink, Q as FFIDCookieLinkProps, R as FFIDCookiePolicySchema, S as FFIDCookieSettings, T as FFIDCookieSettingsClassNames, U as FFIDCookieSettingsProps, V as FFIDInternalConsentSource, W as FFIDInternalConsentSourceSchema, X as FFIDPublicConsentSource, Y as FFIDPublicConsentSourceSchema, Z as FFID_CONSENT_ERROR_CODES, _ as FFID_CONSENT_NOT_DECIDED_STATE, $ as GetCategoriesWire, a0 as GetCategoriesWireSchema, a1 as GetConsentMeWireSchema, a2 as GetDocumentWire, a3 as GetDocumentWireSchema, a4 as GtagBridge, a5 as GtagBridgeOptions, a6 as PostConsentRequest, a7 as PostConsentRequestSchema, a8 as PostConsentWireSchema, a9 as PostSyncRequest, aa as PostSyncRequestSchema, ab as PostSyncWireSchema, ac as PostWithdrawWireSchema, ad as UseFFIDConsentPreferencesReturn, ae as UseFFIDConsentReturn, af as clearConsentDismissalTimestamp, ag as clearConsentSessionMirror, ah as createGtagBridge, ai as decodeConsentCookie, aj as deleteConsentCookie, ak as encodeConsentCookie, al as mapCategoriesToGtagParams, am as readConsentCookie, an as readConsentDismissalTimestamp, ao as readConsentSessionMirror, ap as useFFIDConsent, aq as useFFIDConsentPreferences, ar as writeConsentCookie, as as writeConsentDismissalTimestamp, at as writeConsentSessionMirror } from '../FFIDCookieLink-
|
|
1
|
+
import { F as FFIDConsentResult, a as FFIDConsentState, b as FFIDConsentUpdate, c as FFIDConsentCategories, d as FFIDConsentSyncResult, e as FFIDConsentCategoryMetadata, f as FFIDCookiePolicy, P as PostConsentWire, G as GetConsentMeWire, g as PostSyncWire, h as PostWithdrawWire } from '../FFIDCookieLink-B91Fpinc.cjs';
|
|
2
|
+
export { A as ALL_DENIED_EXCEPT_NECESSARY, C as CONSENT_COOKIE_MAX_AGE_SEC, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, k as CONSENT_SESSION_STORAGE_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, m as DeviceIdSchema, n as FFIDAnalyticsProvider, o as FFIDAnalyticsProviderProps, p as FFIDConsentCategoriesSchema, q as FFIDConsentCategoryCode, r as FFIDConsentCategoryCodeSchema, s as FFIDConsentCategoryMetadataSchema, t as FFIDConsentContext, u as FFIDConsentContextValue, v as FFIDConsentError, w as FFIDConsentErrorCode, x as FFIDConsentMergeStrategy, y as FFIDConsentMergeStrategySchema, z as FFIDConsentMergeWarning, B as FFIDConsentMergeWarningEvent, E as FFIDConsentMergeWarningSchema, H as FFIDConsentSource, I as FFIDConsentSourceSchema, J as FFIDConsentStateSchema, K as FFIDConsentUpdateSchema, L as FFIDCookieBanner, M as FFIDCookieBannerClassNames, N as FFIDCookieBannerProps, O as FFIDCookieLink, Q as FFIDCookieLinkProps, R as FFIDCookiePolicySchema, S as FFIDCookieSettings, T as FFIDCookieSettingsClassNames, U as FFIDCookieSettingsProps, V as FFIDInternalConsentSource, W as FFIDInternalConsentSourceSchema, X as FFIDPublicConsentSource, Y as FFIDPublicConsentSourceSchema, Z as FFID_CONSENT_ERROR_CODES, _ as FFID_CONSENT_NOT_DECIDED_STATE, $ as GetCategoriesWire, a0 as GetCategoriesWireSchema, a1 as GetConsentMeWireSchema, a2 as GetDocumentWire, a3 as GetDocumentWireSchema, a4 as GtagBridge, a5 as GtagBridgeOptions, a6 as PostConsentRequest, a7 as PostConsentRequestSchema, a8 as PostConsentWireSchema, a9 as PostSyncRequest, aa as PostSyncRequestSchema, ab as PostSyncWireSchema, ac as PostWithdrawWireSchema, ad as UseFFIDConsentPreferencesReturn, ae as UseFFIDConsentReturn, af as clearConsentDismissalTimestamp, ag as clearConsentSessionMirror, ah as createGtagBridge, ai as decodeConsentCookie, aj as deleteConsentCookie, ak as encodeConsentCookie, al as mapCategoriesToGtagParams, am as readConsentCookie, an as readConsentDismissalTimestamp, ao as readConsentSessionMirror, ap as useFFIDConsent, aq as useFFIDConsentPreferences, ar as writeConsentCookie, as as writeConsentDismissalTimestamp, at as writeConsentSessionMirror } from '../FFIDCookieLink-B91Fpinc.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
@@ -163,4 +163,5 @@ declare function mapWithdrawWireToState(wire: PostWithdrawWire): FFIDConsentStat
|
|
|
163
163
|
*/
|
|
164
164
|
declare function mapSyncWireToResult(wire: PostSyncWire): FFIDConsentSyncResult;
|
|
165
165
|
|
|
166
|
-
export {
|
|
166
|
+
export { DEVICE_ID_LOCAL_STORAGE_KEY, DEVICE_ID_SESSION_STORAGE_KEY, FFIDConsentCategories, FFIDConsentCategoryMetadata, FFIDConsentResult, FFIDConsentState, FFIDConsentSyncResult, FFIDConsentUpdate, FFIDCookiePolicy, GetConsentMeWire, PostConsentWire, PostSyncWire, PostWithdrawWire, clearDeviceId, createConsentClient, generateDeviceId, getOrCreateDeviceId, isUuidV7, isValidDeviceId, mapConsentWireToState, mapMeWireToState, mapSyncWireToResult, mapWithdrawWireToState };
|
|
167
|
+
export type { ConsentClientOptions, FFIDConsentClient };
|
package/dist/consent/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDConsentResult, a as FFIDConsentState, b as FFIDConsentUpdate, c as FFIDConsentCategories, d as FFIDConsentSyncResult, e as FFIDConsentCategoryMetadata, f as FFIDCookiePolicy, P as PostConsentWire, G as GetConsentMeWire, g as PostSyncWire, h as PostWithdrawWire } from '../FFIDCookieLink-
|
|
2
|
-
export { A as ALL_DENIED_EXCEPT_NECESSARY, C as CONSENT_COOKIE_MAX_AGE_SEC, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, k as CONSENT_SESSION_STORAGE_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, m as DeviceIdSchema, n as FFIDAnalyticsProvider, o as FFIDAnalyticsProviderProps, p as FFIDConsentCategoriesSchema, q as FFIDConsentCategoryCode, r as FFIDConsentCategoryCodeSchema, s as FFIDConsentCategoryMetadataSchema, t as FFIDConsentContext, u as FFIDConsentContextValue, v as FFIDConsentError, w as FFIDConsentErrorCode, x as FFIDConsentMergeStrategy, y as FFIDConsentMergeStrategySchema, z as FFIDConsentMergeWarning, B as FFIDConsentMergeWarningEvent, E as FFIDConsentMergeWarningSchema, H as FFIDConsentSource, I as FFIDConsentSourceSchema, J as FFIDConsentStateSchema, K as FFIDConsentUpdateSchema, L as FFIDCookieBanner, M as FFIDCookieBannerClassNames, N as FFIDCookieBannerProps, O as FFIDCookieLink, Q as FFIDCookieLinkProps, R as FFIDCookiePolicySchema, S as FFIDCookieSettings, T as FFIDCookieSettingsClassNames, U as FFIDCookieSettingsProps, V as FFIDInternalConsentSource, W as FFIDInternalConsentSourceSchema, X as FFIDPublicConsentSource, Y as FFIDPublicConsentSourceSchema, Z as FFID_CONSENT_ERROR_CODES, _ as FFID_CONSENT_NOT_DECIDED_STATE, $ as GetCategoriesWire, a0 as GetCategoriesWireSchema, a1 as GetConsentMeWireSchema, a2 as GetDocumentWire, a3 as GetDocumentWireSchema, a4 as GtagBridge, a5 as GtagBridgeOptions, a6 as PostConsentRequest, a7 as PostConsentRequestSchema, a8 as PostConsentWireSchema, a9 as PostSyncRequest, aa as PostSyncRequestSchema, ab as PostSyncWireSchema, ac as PostWithdrawWireSchema, ad as UseFFIDConsentPreferencesReturn, ae as UseFFIDConsentReturn, af as clearConsentDismissalTimestamp, ag as clearConsentSessionMirror, ah as createGtagBridge, ai as decodeConsentCookie, aj as deleteConsentCookie, ak as encodeConsentCookie, al as mapCategoriesToGtagParams, am as readConsentCookie, an as readConsentDismissalTimestamp, ao as readConsentSessionMirror, ap as useFFIDConsent, aq as useFFIDConsentPreferences, ar as writeConsentCookie, as as writeConsentDismissalTimestamp, at as writeConsentSessionMirror } from '../FFIDCookieLink-
|
|
1
|
+
import { F as FFIDConsentResult, a as FFIDConsentState, b as FFIDConsentUpdate, c as FFIDConsentCategories, d as FFIDConsentSyncResult, e as FFIDConsentCategoryMetadata, f as FFIDCookiePolicy, P as PostConsentWire, G as GetConsentMeWire, g as PostSyncWire, h as PostWithdrawWire } from '../FFIDCookieLink-B91Fpinc.js';
|
|
2
|
+
export { A as ALL_DENIED_EXCEPT_NECESSARY, C as CONSENT_COOKIE_MAX_AGE_SEC, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, k as CONSENT_SESSION_STORAGE_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, m as DeviceIdSchema, n as FFIDAnalyticsProvider, o as FFIDAnalyticsProviderProps, p as FFIDConsentCategoriesSchema, q as FFIDConsentCategoryCode, r as FFIDConsentCategoryCodeSchema, s as FFIDConsentCategoryMetadataSchema, t as FFIDConsentContext, u as FFIDConsentContextValue, v as FFIDConsentError, w as FFIDConsentErrorCode, x as FFIDConsentMergeStrategy, y as FFIDConsentMergeStrategySchema, z as FFIDConsentMergeWarning, B as FFIDConsentMergeWarningEvent, E as FFIDConsentMergeWarningSchema, H as FFIDConsentSource, I as FFIDConsentSourceSchema, J as FFIDConsentStateSchema, K as FFIDConsentUpdateSchema, L as FFIDCookieBanner, M as FFIDCookieBannerClassNames, N as FFIDCookieBannerProps, O as FFIDCookieLink, Q as FFIDCookieLinkProps, R as FFIDCookiePolicySchema, S as FFIDCookieSettings, T as FFIDCookieSettingsClassNames, U as FFIDCookieSettingsProps, V as FFIDInternalConsentSource, W as FFIDInternalConsentSourceSchema, X as FFIDPublicConsentSource, Y as FFIDPublicConsentSourceSchema, Z as FFID_CONSENT_ERROR_CODES, _ as FFID_CONSENT_NOT_DECIDED_STATE, $ as GetCategoriesWire, a0 as GetCategoriesWireSchema, a1 as GetConsentMeWireSchema, a2 as GetDocumentWire, a3 as GetDocumentWireSchema, a4 as GtagBridge, a5 as GtagBridgeOptions, a6 as PostConsentRequest, a7 as PostConsentRequestSchema, a8 as PostConsentWireSchema, a9 as PostSyncRequest, aa as PostSyncRequestSchema, ab as PostSyncWireSchema, ac as PostWithdrawWireSchema, ad as UseFFIDConsentPreferencesReturn, ae as UseFFIDConsentReturn, af as clearConsentDismissalTimestamp, ag as clearConsentSessionMirror, ah as createGtagBridge, ai as decodeConsentCookie, aj as deleteConsentCookie, ak as encodeConsentCookie, al as mapCategoriesToGtagParams, am as readConsentCookie, an as readConsentDismissalTimestamp, ao as readConsentSessionMirror, ap as useFFIDConsent, aq as useFFIDConsentPreferences, ar as writeConsentCookie, as as writeConsentDismissalTimestamp, at as writeConsentSessionMirror } from '../FFIDCookieLink-B91Fpinc.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
@@ -163,4 +163,5 @@ declare function mapWithdrawWireToState(wire: PostWithdrawWire): FFIDConsentStat
|
|
|
163
163
|
*/
|
|
164
164
|
declare function mapSyncWireToResult(wire: PostSyncWire): FFIDConsentSyncResult;
|
|
165
165
|
|
|
166
|
-
export {
|
|
166
|
+
export { DEVICE_ID_LOCAL_STORAGE_KEY, DEVICE_ID_SESSION_STORAGE_KEY, FFIDConsentCategories, FFIDConsentCategoryMetadata, FFIDConsentResult, FFIDConsentState, FFIDConsentSyncResult, FFIDConsentUpdate, FFIDCookiePolicy, GetConsentMeWire, PostConsentWire, PostSyncWire, PostWithdrawWire, clearDeviceId, createConsentClient, generateDeviceId, getOrCreateDeviceId, isUuidV7, isValidDeviceId, mapConsentWireToState, mapMeWireToState, mapSyncWireToResult, mapWithdrawWireToState };
|
|
167
|
+
export type { ConsentClientOptions, FFIDConsentClient };
|
|
@@ -1035,8 +1035,9 @@ type FFIDServiceAccessFailPolicy = 'failClosed';
|
|
|
1035
1035
|
/**
|
|
1036
1036
|
* Why access was denied.
|
|
1037
1037
|
*
|
|
1038
|
-
* `member_limit_reached` (10.0.0) is FFID's denial reason when
|
|
1039
|
-
* limit is full and the user has no seat
|
|
1038
|
+
* `member_limit_reached` (10.0.0) is FFID's denial reason when the contract's member
|
|
1039
|
+
* limit is full and the user has no seat: a flat plan's member limit, or (FFID #6371)
|
|
1040
|
+
* a per_seat contract's seat count (`quantity`). It reaches you through OAuth
|
|
1040
1041
|
* (`denial_reason` on the authorize redirect / userinfo 403; see
|
|
1041
1042
|
* `FFIDOAuthDenialReason` for that vocabulary); `checkServiceAccess()`
|
|
1042
1043
|
* derives its decision from `effectiveStatus` and never returns it, because a full
|
|
@@ -2931,4 +2932,5 @@ declare function createFFIDClient(config: FFIDConfig): {
|
|
|
2931
2932
|
/** Type of the FFID client */
|
|
2932
2933
|
type FFIDClient = ReturnType<typeof createFFIDClient>;
|
|
2933
2934
|
|
|
2934
|
-
export {
|
|
2935
|
+
export { FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES as ad, FFID_CATALOG_ENVIRONMENTS as ae, FFID_CATALOG_PUBLICATION_STATUSES as af, FFID_COMPANY_SIZE_CODES as ag, FFID_INDUSTRY_CODES as ah, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES as ai, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB as aj, FFID_ORGANIZATION_PROFILE_ERROR_CODES as ak, createFFIDClient as an, createTokenStore as ao };
|
|
2936
|
+
export type { FFIDProvisionUserResponse as $, FFIDMemberSeatAssignmentResult as A, FFIDOrganization as B, FFIDOrganizationLogoUploadResponse as C, FFIDOrganizationMember as D, FFIDOrganizationProfile as E, FFIDError as F, FFIDOrganizationProfileErrorCode as G, FFIDOrganizationProfileResponse as H, FFIDOtpSendResponse as I, FFIDOtpVerifyResponse as J, FFIDPasswordResetConfirmResponse as K, FFIDPasswordResetResponse as L, FFIDPasswordResetVerifyResponse as M, FFIDProfileCallOptions as N, FFIDProvisionMemberPlan as O, FFIDProvisionMemberPlanStatus as P, FFIDProvisionMemberResult as Q, FFIDProvisionMemberStatus as R, FFIDProvisionOrganizationDryRun as S, FFIDProvisionOrganizationMemberInput as T, FFIDProvisionOrganizationOutcome as U, FFIDProvisionOrganizationParams as V, FFIDProvisionOrganizationResponse as W, FFIDProvisionUserDryRun as X, FFIDProvisionUserOutcome as Y, FFIDProvisionUserParams as Z, FFIDProvisionUserProfileInput as _, FFIDLogger as a, FFIDProvisionedOrganization as a0, FFIDProvisionedUser as a1, FFIDPublishedPlan as a2, FFIDRemoveMemberResponse as a3, FFIDResetSessionResponse as a4, FFIDSubscription as a5, FFIDUpdateMemberRoleResponse as a6, FFIDUpdateUserProfileRequest as a7, FFIDUploadOrganizationLogoParams as a8, FFIDUpsertOrganizationProfileParams as a9, FFIDUpsertOrganizationProfileRequest as aa, FFIDUser as ab, FFIDUserProfile as ac, TokenData as al, TokenStore as am, FFIDCacheAdapter as b, FFIDVerifyAccessTokenOptions as c, FFIDApiResponse as d, FFIDOAuthUserInfo as e, FFIDCatalogEnvironment as f, FFIDBillingInterval as g, FFIDTaxBehavior as h, FFIDPublishedCatalog as i, FFIDAddMemberParams as j, FFIDAddMemberRequest as k, FFIDAddMemberResponse as l, FFIDAllowedLogoMimeType as m, FFIDAssignableMemberRole as n, FFIDCacheConfig as o, FFIDCatalogPublication as p, FFIDCatalogPublicationStatus as q, FFIDClient as r, FFIDCompanySizeCode as s, FFIDConfig as t, FFIDIndustryCode as u, FFIDListMembersResponse as v, FFIDListingConsentInput as w, FFIDLogoWallEntry as x, FFIDLogoWallResponse as y, FFIDMemberRole as z };
|
|
@@ -1035,8 +1035,9 @@ type FFIDServiceAccessFailPolicy = 'failClosed';
|
|
|
1035
1035
|
/**
|
|
1036
1036
|
* Why access was denied.
|
|
1037
1037
|
*
|
|
1038
|
-
* `member_limit_reached` (10.0.0) is FFID's denial reason when
|
|
1039
|
-
* limit is full and the user has no seat
|
|
1038
|
+
* `member_limit_reached` (10.0.0) is FFID's denial reason when the contract's member
|
|
1039
|
+
* limit is full and the user has no seat: a flat plan's member limit, or (FFID #6371)
|
|
1040
|
+
* a per_seat contract's seat count (`quantity`). It reaches you through OAuth
|
|
1040
1041
|
* (`denial_reason` on the authorize redirect / userinfo 403; see
|
|
1041
1042
|
* `FFIDOAuthDenialReason` for that vocabulary); `checkServiceAccess()`
|
|
1042
1043
|
* derives its decision from `effectiveStatus` and never returns it, because a full
|
|
@@ -2931,4 +2932,5 @@ declare function createFFIDClient(config: FFIDConfig): {
|
|
|
2931
2932
|
/** Type of the FFID client */
|
|
2932
2933
|
type FFIDClient = ReturnType<typeof createFFIDClient>;
|
|
2933
2934
|
|
|
2934
|
-
export {
|
|
2935
|
+
export { FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES as ad, FFID_CATALOG_ENVIRONMENTS as ae, FFID_CATALOG_PUBLICATION_STATUSES as af, FFID_COMPANY_SIZE_CODES as ag, FFID_INDUSTRY_CODES as ah, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES as ai, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB as aj, FFID_ORGANIZATION_PROFILE_ERROR_CODES as ak, createFFIDClient as an, createTokenStore as ao };
|
|
2936
|
+
export type { FFIDProvisionUserResponse as $, FFIDMemberSeatAssignmentResult as A, FFIDOrganization as B, FFIDOrganizationLogoUploadResponse as C, FFIDOrganizationMember as D, FFIDOrganizationProfile as E, FFIDError as F, FFIDOrganizationProfileErrorCode as G, FFIDOrganizationProfileResponse as H, FFIDOtpSendResponse as I, FFIDOtpVerifyResponse as J, FFIDPasswordResetConfirmResponse as K, FFIDPasswordResetResponse as L, FFIDPasswordResetVerifyResponse as M, FFIDProfileCallOptions as N, FFIDProvisionMemberPlan as O, FFIDProvisionMemberPlanStatus as P, FFIDProvisionMemberResult as Q, FFIDProvisionMemberStatus as R, FFIDProvisionOrganizationDryRun as S, FFIDProvisionOrganizationMemberInput as T, FFIDProvisionOrganizationOutcome as U, FFIDProvisionOrganizationParams as V, FFIDProvisionOrganizationResponse as W, FFIDProvisionUserDryRun as X, FFIDProvisionUserOutcome as Y, FFIDProvisionUserParams as Z, FFIDProvisionUserProfileInput as _, FFIDLogger as a, FFIDProvisionedOrganization as a0, FFIDProvisionedUser as a1, FFIDPublishedPlan as a2, FFIDRemoveMemberResponse as a3, FFIDResetSessionResponse as a4, FFIDSubscription as a5, FFIDUpdateMemberRoleResponse as a6, FFIDUpdateUserProfileRequest as a7, FFIDUploadOrganizationLogoParams as a8, FFIDUpsertOrganizationProfileParams as a9, FFIDUpsertOrganizationProfileRequest as aa, FFIDUser as ab, FFIDUserProfile as ac, TokenData as al, TokenStore as am, FFIDCacheAdapter as b, FFIDVerifyAccessTokenOptions as c, FFIDApiResponse as d, FFIDOAuthUserInfo as e, FFIDCatalogEnvironment as f, FFIDBillingInterval as g, FFIDTaxBehavior as h, FFIDPublishedCatalog as i, FFIDAddMemberParams as j, FFIDAddMemberRequest as k, FFIDAddMemberResponse as l, FFIDAllowedLogoMimeType as m, FFIDAssignableMemberRole as n, FFIDCacheConfig as o, FFIDCatalogPublication as p, FFIDCatalogPublicationStatus as q, FFIDClient as r, FFIDCompanySizeCode as s, FFIDConfig as t, FFIDIndustryCode as u, FFIDListMembersResponse as v, FFIDListingConsentInput as w, FFIDLogoWallEntry as x, FFIDLogoWallResponse as y, FFIDMemberRole as z };
|