@feelflow/ffid-sdk 5.31.1 → 5.35.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/agency/index.cjs +112 -0
- package/dist/agency/index.d.cts +177 -2
- package/dist/agency/index.d.ts +177 -2
- package/dist/agency/index.js +112 -1
- package/dist/{chunk-SLYSWV4S.js → chunk-53IBN7NO.js} +6 -2
- package/dist/{chunk-3YIX4DFI.cjs → chunk-WG2YHUGO.cjs} +6 -2
- package/dist/components/index.cjs +8 -8
- package/dist/components/index.js +1 -1
- package/dist/{constants-D61jqRIO.d.cts → constants-Ce2eXQtB.d.cts} +5 -2
- package/dist/{constants-D61jqRIO.d.ts → constants-Ce2eXQtB.d.ts} +5 -2
- package/dist/{ffid-client-BTTbDVj7.d.cts → ffid-client-C8XV7lUt.d.cts} +24 -3
- package/dist/{ffid-client-C5lc7SkY.d.ts → ffid-client-CpVixUM3.d.ts} +24 -3
- package/dist/index.cjs +58 -58
- package/dist/index.d.cts +29 -5
- package/dist/index.d.ts +29 -5
- package/dist/index.js +2 -2
- package/dist/legal/index.d.cts +1 -1
- package/dist/legal/index.d.ts +1 -1
- package/dist/server/index.cjs +6 -2
- package/dist/server/index.d.cts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +6 -2
- package/dist/server/test/index.d.cts +1 -1
- package/dist/server/test/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -18,13 +18,16 @@ declare const DEFAULT_API_BASE_URL = "https://id.feelflow.net";
|
|
|
18
18
|
*
|
|
19
19
|
* Coverage:
|
|
20
20
|
* - `openid email profile` — OIDC standard claims (always required)
|
|
21
|
-
* - `subscription:read` — `/api/v1/subscriptions/ext/*`
|
|
21
|
+
* - `subscription:read` — `/api/v1/subscriptions/ext/*` 系の **読み取り**
|
|
22
|
+
* (`check` / `plans` / 契約詳細・シート参照。プラン / 課金 gate)
|
|
22
23
|
* - `legal:read` — `/api/v1/legal/ext` 系(利用規約・同意状態)
|
|
23
24
|
*
|
|
24
25
|
* Add feature-specific scopes on top of this when needed (browser SDK):
|
|
25
26
|
* - `analytics:read` for `/api/v1/ext/analytics/config`
|
|
26
27
|
* - `organization:read` / `organization:write` for `/api/v1/organizations/ext/members`
|
|
27
|
-
* - `subscription:write` for
|
|
28
|
+
* - `subscription:write` for every subscription **mutation** — `subscribe()`
|
|
29
|
+
* (`POST /ext/subscribe`), plan changes, and cancellation. `subscription:read`
|
|
30
|
+
* does NOT cover these despite the shared `/ext/*` prefix (FFID #4744)
|
|
28
31
|
* - `legal:write` for recording user consent
|
|
29
32
|
* - `profile:read` / `profile:write` for profile UI
|
|
30
33
|
* - `organization:api-key` for org-level API key issuance
|
|
@@ -633,10 +636,31 @@ interface FFIDProvisionUserDryRun {
|
|
|
633
636
|
* response. This mirrors how `FFIDApiResponse` is narrowed on `data` / `error`.
|
|
634
637
|
*/
|
|
635
638
|
type FFIDProvisionUserResponse = FFIDProvisionUserOutcome | FFIDProvisionUserDryRun;
|
|
636
|
-
/**
|
|
639
|
+
/**
|
|
640
|
+
* Copy variant for `sendProvisionWelcomeEmail` (#5035).
|
|
641
|
+
*
|
|
642
|
+
* Both variants carry the same password-setup link; only the wording differs.
|
|
643
|
+
* Mirrors the server's `provisionEmailTemplateSchema` — the API rejects unknown
|
|
644
|
+
* values rather than defaulting, so a typo here surfaces as a 400 instead of
|
|
645
|
+
* mailing the wrong copy.
|
|
646
|
+
*/
|
|
647
|
+
type FFIDProvisionEmailTemplate = 'account-provisioned' | 'password-reset';
|
|
648
|
+
/** Parameters for `sendProvisionWelcomeEmail` (#4449, #4470, #5035). */
|
|
637
649
|
interface FFIDProvisionWelcomeEmailParams {
|
|
638
650
|
/** Email of the provisioned FFID user to notify (must already exist). */
|
|
639
651
|
email: string;
|
|
652
|
+
/**
|
|
653
|
+
* Which copy to send (#5035). Omit for the historical
|
|
654
|
+
* `account-provisioned`(「アカウント発行のお知らせ」); pass `'password-reset'`
|
|
655
|
+
* for an already-active member whose admin requested a reset
|
|
656
|
+
* (「パスワード再設定のご案内」).
|
|
657
|
+
*/
|
|
658
|
+
template?: FFIDProvisionEmailTemplate;
|
|
659
|
+
/**
|
|
660
|
+
* Post-setup landing URL (#4470). Validated against the calling service's
|
|
661
|
+
* `allowed_redirect_uris` server-side. Omit to keep the FFID login page.
|
|
662
|
+
*/
|
|
663
|
+
returnTo?: string;
|
|
640
664
|
}
|
|
641
665
|
/**
|
|
642
666
|
* Response from `sendProvisionWelcomeEmail` (#4449).
|
|
@@ -1303,8 +1327,8 @@ declare const FFID_CATALOG_ENVIRONMENTS: readonly ["staging", "production"];
|
|
|
1303
1327
|
type FFIDCatalogEnvironment = (typeof FFID_CATALOG_ENVIRONMENTS)[number];
|
|
1304
1328
|
/**
|
|
1305
1329
|
* Tax behavior of a published price.
|
|
1306
|
-
* `inclusive`: displayed price contains Stripe-calculated tax
|
|
1307
|
-
* `exclusive`: tax is added on top of the base price
|
|
1330
|
+
* `inclusive`: displayed price contains Stripe-calculated tax.
|
|
1331
|
+
* `exclusive`: tax is added on top of the base price.
|
|
1308
1332
|
*/
|
|
1309
1333
|
type FFIDTaxBehavior = 'inclusive' | 'exclusive';
|
|
1310
1334
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -18,13 +18,16 @@ declare const DEFAULT_API_BASE_URL = "https://id.feelflow.net";
|
|
|
18
18
|
*
|
|
19
19
|
* Coverage:
|
|
20
20
|
* - `openid email profile` — OIDC standard claims (always required)
|
|
21
|
-
* - `subscription:read` — `/api/v1/subscriptions/ext/*`
|
|
21
|
+
* - `subscription:read` — `/api/v1/subscriptions/ext/*` 系の **読み取り**
|
|
22
|
+
* (`check` / `plans` / 契約詳細・シート参照。プラン / 課金 gate)
|
|
22
23
|
* - `legal:read` — `/api/v1/legal/ext` 系(利用規約・同意状態)
|
|
23
24
|
*
|
|
24
25
|
* Add feature-specific scopes on top of this when needed (browser SDK):
|
|
25
26
|
* - `analytics:read` for `/api/v1/ext/analytics/config`
|
|
26
27
|
* - `organization:read` / `organization:write` for `/api/v1/organizations/ext/members`
|
|
27
|
-
* - `subscription:write` for
|
|
28
|
+
* - `subscription:write` for every subscription **mutation** — `subscribe()`
|
|
29
|
+
* (`POST /ext/subscribe`), plan changes, and cancellation. `subscription:read`
|
|
30
|
+
* does NOT cover these despite the shared `/ext/*` prefix (FFID #4744)
|
|
28
31
|
* - `legal:write` for recording user consent
|
|
29
32
|
* - `profile:read` / `profile:write` for profile UI
|
|
30
33
|
* - `organization:api-key` for org-level API key issuance
|
|
@@ -633,10 +636,31 @@ interface FFIDProvisionUserDryRun {
|
|
|
633
636
|
* response. This mirrors how `FFIDApiResponse` is narrowed on `data` / `error`.
|
|
634
637
|
*/
|
|
635
638
|
type FFIDProvisionUserResponse = FFIDProvisionUserOutcome | FFIDProvisionUserDryRun;
|
|
636
|
-
/**
|
|
639
|
+
/**
|
|
640
|
+
* Copy variant for `sendProvisionWelcomeEmail` (#5035).
|
|
641
|
+
*
|
|
642
|
+
* Both variants carry the same password-setup link; only the wording differs.
|
|
643
|
+
* Mirrors the server's `provisionEmailTemplateSchema` — the API rejects unknown
|
|
644
|
+
* values rather than defaulting, so a typo here surfaces as a 400 instead of
|
|
645
|
+
* mailing the wrong copy.
|
|
646
|
+
*/
|
|
647
|
+
type FFIDProvisionEmailTemplate = 'account-provisioned' | 'password-reset';
|
|
648
|
+
/** Parameters for `sendProvisionWelcomeEmail` (#4449, #4470, #5035). */
|
|
637
649
|
interface FFIDProvisionWelcomeEmailParams {
|
|
638
650
|
/** Email of the provisioned FFID user to notify (must already exist). */
|
|
639
651
|
email: string;
|
|
652
|
+
/**
|
|
653
|
+
* Which copy to send (#5035). Omit for the historical
|
|
654
|
+
* `account-provisioned`(「アカウント発行のお知らせ」); pass `'password-reset'`
|
|
655
|
+
* for an already-active member whose admin requested a reset
|
|
656
|
+
* (「パスワード再設定のご案内」).
|
|
657
|
+
*/
|
|
658
|
+
template?: FFIDProvisionEmailTemplate;
|
|
659
|
+
/**
|
|
660
|
+
* Post-setup landing URL (#4470). Validated against the calling service's
|
|
661
|
+
* `allowed_redirect_uris` server-side. Omit to keep the FFID login page.
|
|
662
|
+
*/
|
|
663
|
+
returnTo?: string;
|
|
640
664
|
}
|
|
641
665
|
/**
|
|
642
666
|
* Response from `sendProvisionWelcomeEmail` (#4449).
|
|
@@ -1303,8 +1327,8 @@ declare const FFID_CATALOG_ENVIRONMENTS: readonly ["staging", "production"];
|
|
|
1303
1327
|
type FFIDCatalogEnvironment = (typeof FFID_CATALOG_ENVIRONMENTS)[number];
|
|
1304
1328
|
/**
|
|
1305
1329
|
* Tax behavior of a published price.
|
|
1306
|
-
* `inclusive`: displayed price contains Stripe-calculated tax
|
|
1307
|
-
* `exclusive`: tax is added on top of the base price
|
|
1330
|
+
* `inclusive`: displayed price contains Stripe-calculated tax.
|
|
1331
|
+
* `exclusive`: tax is added on top of the base price.
|
|
1308
1332
|
*/
|
|
1309
1333
|
type FFIDTaxBehavior = 'inclusive' | 'exclusive';
|
|
1310
1334
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useFFIDContext, useSubscription } from './chunk-
|
|
2
|
-
export { ACCESS_GRANTING_EFFECTIVE_STATUSES, 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_ANNOUNCEMENTS_ERROR_CODES, FFID_CATALOG_ENVIRONMENTS, FFID_CATALOG_PUBLICATION_STATUSES, FFID_ERROR_CODES, FFID_INQUIRY_ACQUISITION_SOURCES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, canonicalizeCatalogValue, cleanupStateStorage as clearState, computeEffectiveStatusFromSession, computeFFIDCheckoutCopyHash, computeLegalDisclosureHash, computePaymentConfigurationHash, computePraxisCopyHash, computeScopeHash, computeTaxConfigurationHash, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, handleRedirectCallback, hasAccessFromUserinfo, hashCanonicalJson, isBlockedFromUserinfo, isFFIDInquiryAcquisitionSource, isFFIDInquiryCategorySite2026, normalizeRedirectUri, retrieveCodeVerifier, retrieveState, sha256Hex, storeCodeVerifier, storeState, useFFID, useFFIDAnnouncements, useSubscription, validatePublishedCatalog, withSubscription } from './chunk-
|
|
1
|
+
import { useFFIDContext, useSubscription } from './chunk-53IBN7NO.js';
|
|
2
|
+
export { ACCESS_GRANTING_EFFECTIVE_STATUSES, 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_ANNOUNCEMENTS_ERROR_CODES, FFID_CATALOG_ENVIRONMENTS, FFID_CATALOG_PUBLICATION_STATUSES, FFID_ERROR_CODES, FFID_INQUIRY_ACQUISITION_SOURCES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, canonicalizeCatalogValue, cleanupStateStorage as clearState, computeEffectiveStatusFromSession, computeFFIDCheckoutCopyHash, computeLegalDisclosureHash, computePaymentConfigurationHash, computePraxisCopyHash, computeScopeHash, computeTaxConfigurationHash, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, handleRedirectCallback, hasAccessFromUserinfo, hashCanonicalJson, isBlockedFromUserinfo, isFFIDInquiryAcquisitionSource, isFFIDInquiryCategorySite2026, normalizeRedirectUri, retrieveCodeVerifier, retrieveState, sha256Hex, storeCodeVerifier, storeState, useFFID, useFFIDAnnouncements, useSubscription, validatePublishedCatalog, withSubscription } from './chunk-53IBN7NO.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-G7VOX64X.js';
|
|
4
4
|
import { useEffect, useRef } from 'react';
|
|
5
5
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
package/dist/legal/index.d.cts
CHANGED
package/dist/legal/index.d.ts
CHANGED
package/dist/server/index.cjs
CHANGED
|
@@ -1342,7 +1342,11 @@ function createProvisioningMethods(deps) {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
return fetchWithAuth(USER_WELCOME_EMAIL_ENDPOINT, {
|
|
1344
1344
|
method: "POST",
|
|
1345
|
-
body: JSON.stringify({
|
|
1345
|
+
body: JSON.stringify({
|
|
1346
|
+
email: params.email.trim(),
|
|
1347
|
+
...params.template !== void 0 ? { template: params.template } : {},
|
|
1348
|
+
...params.returnTo !== void 0 ? { returnTo: params.returnTo } : {}
|
|
1349
|
+
})
|
|
1346
1350
|
});
|
|
1347
1351
|
}
|
|
1348
1352
|
async function provisionOrganization(params) {
|
|
@@ -1668,7 +1672,7 @@ function validateTokenResponse(tokenResponse) {
|
|
|
1668
1672
|
}
|
|
1669
1673
|
|
|
1670
1674
|
// src/client/version-check.ts
|
|
1671
|
-
var SDK_VERSION = "5.
|
|
1675
|
+
var SDK_VERSION = "5.35.0";
|
|
1672
1676
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
1673
1677
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
1674
1678
|
function sdkHeaders() {
|
package/dist/server/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as FFIDLogger, a as FFIDError, 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 FFIDAssignableMemberRole, n as FFIDCacheConfig, o as FFIDCatalogPublication, p as FFIDCatalogPublicationStatus, q as FFIDClient, r as FFIDConfig, s as FFIDListMembersResponse, t as FFIDMemberRole, u as FFIDOrganization, v as FFIDOrganizationMember, w as FFIDOtpSendResponse, x as FFIDOtpVerifyResponse, y as FFIDPasswordResetConfirmResponse, z as FFIDPasswordResetResponse, A as FFIDPasswordResetVerifyResponse, B as FFIDProfileCallOptions, C as FFIDProvisionMemberPlan, D as FFIDProvisionMemberPlanStatus, E as FFIDProvisionMemberResult, G as FFIDProvisionMemberStatus, H as FFIDProvisionOrganizationDryRun, I as FFIDProvisionOrganizationMemberInput, J as FFIDProvisionOrganizationOutcome, K as FFIDProvisionOrganizationParams, L as FFIDProvisionOrganizationResponse, M as FFIDProvisionUserDryRun, N as FFIDProvisionUserOutcome, O as FFIDProvisionUserParams, P as FFIDProvisionUserProfileInput, Q as FFIDProvisionUserResponse, R as FFIDProvisionedOrganization, S as FFIDProvisionedUser, T as FFIDPublishedPlan, U as FFIDRemoveMemberResponse, V as FFIDResetSessionResponse, W as FFIDSubscription, X as FFIDUpdateMemberRoleResponse, Y as FFIDUpdateUserProfileRequest, Z as FFIDUser, _ as FFIDUserProfile, $ as FFID_CATALOG_ENVIRONMENTS, a0 as FFID_CATALOG_PUBLICATION_STATUSES, a1 as TokenData, a2 as TokenStore, a3 as createFFIDClient, a4 as createTokenStore } from '../ffid-client-
|
|
3
|
-
export { D as DEFAULT_API_BASE_URL, a as DEFAULT_OAUTH_SCOPES } from '../constants-
|
|
1
|
+
import { F as FFIDLogger, a as FFIDError, 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-C8XV7lUt.cjs';
|
|
2
|
+
export { j as FFIDAddMemberParams, k as FFIDAddMemberRequest, l as FFIDAddMemberResponse, m as FFIDAssignableMemberRole, n as FFIDCacheConfig, o as FFIDCatalogPublication, p as FFIDCatalogPublicationStatus, q as FFIDClient, r as FFIDConfig, s as FFIDListMembersResponse, t as FFIDMemberRole, u as FFIDOrganization, v as FFIDOrganizationMember, w as FFIDOtpSendResponse, x as FFIDOtpVerifyResponse, y as FFIDPasswordResetConfirmResponse, z as FFIDPasswordResetResponse, A as FFIDPasswordResetVerifyResponse, B as FFIDProfileCallOptions, C as FFIDProvisionMemberPlan, D as FFIDProvisionMemberPlanStatus, E as FFIDProvisionMemberResult, G as FFIDProvisionMemberStatus, H as FFIDProvisionOrganizationDryRun, I as FFIDProvisionOrganizationMemberInput, J as FFIDProvisionOrganizationOutcome, K as FFIDProvisionOrganizationParams, L as FFIDProvisionOrganizationResponse, M as FFIDProvisionUserDryRun, N as FFIDProvisionUserOutcome, O as FFIDProvisionUserParams, P as FFIDProvisionUserProfileInput, Q as FFIDProvisionUserResponse, R as FFIDProvisionedOrganization, S as FFIDProvisionedUser, T as FFIDPublishedPlan, U as FFIDRemoveMemberResponse, V as FFIDResetSessionResponse, W as FFIDSubscription, X as FFIDUpdateMemberRoleResponse, Y as FFIDUpdateUserProfileRequest, Z as FFIDUser, _ as FFIDUserProfile, $ as FFID_CATALOG_ENVIRONMENTS, a0 as FFID_CATALOG_PUBLICATION_STATUSES, a1 as TokenData, a2 as TokenStore, a3 as createFFIDClient, a4 as createTokenStore } from '../ffid-client-C8XV7lUt.cjs';
|
|
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';
|
|
6
6
|
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as FFIDLogger, a as FFIDError, 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 FFIDAssignableMemberRole, n as FFIDCacheConfig, o as FFIDCatalogPublication, p as FFIDCatalogPublicationStatus, q as FFIDClient, r as FFIDConfig, s as FFIDListMembersResponse, t as FFIDMemberRole, u as FFIDOrganization, v as FFIDOrganizationMember, w as FFIDOtpSendResponse, x as FFIDOtpVerifyResponse, y as FFIDPasswordResetConfirmResponse, z as FFIDPasswordResetResponse, A as FFIDPasswordResetVerifyResponse, B as FFIDProfileCallOptions, C as FFIDProvisionMemberPlan, D as FFIDProvisionMemberPlanStatus, E as FFIDProvisionMemberResult, G as FFIDProvisionMemberStatus, H as FFIDProvisionOrganizationDryRun, I as FFIDProvisionOrganizationMemberInput, J as FFIDProvisionOrganizationOutcome, K as FFIDProvisionOrganizationParams, L as FFIDProvisionOrganizationResponse, M as FFIDProvisionUserDryRun, N as FFIDProvisionUserOutcome, O as FFIDProvisionUserParams, P as FFIDProvisionUserProfileInput, Q as FFIDProvisionUserResponse, R as FFIDProvisionedOrganization, S as FFIDProvisionedUser, T as FFIDPublishedPlan, U as FFIDRemoveMemberResponse, V as FFIDResetSessionResponse, W as FFIDSubscription, X as FFIDUpdateMemberRoleResponse, Y as FFIDUpdateUserProfileRequest, Z as FFIDUser, _ as FFIDUserProfile, $ as FFID_CATALOG_ENVIRONMENTS, a0 as FFID_CATALOG_PUBLICATION_STATUSES, a1 as TokenData, a2 as TokenStore, a3 as createFFIDClient, a4 as createTokenStore } from '../ffid-client-
|
|
3
|
-
export { D as DEFAULT_API_BASE_URL, a as DEFAULT_OAUTH_SCOPES } from '../constants-
|
|
1
|
+
import { F as FFIDLogger, a as FFIDError, 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-CpVixUM3.js';
|
|
2
|
+
export { j as FFIDAddMemberParams, k as FFIDAddMemberRequest, l as FFIDAddMemberResponse, m as FFIDAssignableMemberRole, n as FFIDCacheConfig, o as FFIDCatalogPublication, p as FFIDCatalogPublicationStatus, q as FFIDClient, r as FFIDConfig, s as FFIDListMembersResponse, t as FFIDMemberRole, u as FFIDOrganization, v as FFIDOrganizationMember, w as FFIDOtpSendResponse, x as FFIDOtpVerifyResponse, y as FFIDPasswordResetConfirmResponse, z as FFIDPasswordResetResponse, A as FFIDPasswordResetVerifyResponse, B as FFIDProfileCallOptions, C as FFIDProvisionMemberPlan, D as FFIDProvisionMemberPlanStatus, E as FFIDProvisionMemberResult, G as FFIDProvisionMemberStatus, H as FFIDProvisionOrganizationDryRun, I as FFIDProvisionOrganizationMemberInput, J as FFIDProvisionOrganizationOutcome, K as FFIDProvisionOrganizationParams, L as FFIDProvisionOrganizationResponse, M as FFIDProvisionUserDryRun, N as FFIDProvisionUserOutcome, O as FFIDProvisionUserParams, P as FFIDProvisionUserProfileInput, Q as FFIDProvisionUserResponse, R as FFIDProvisionedOrganization, S as FFIDProvisionedUser, T as FFIDPublishedPlan, U as FFIDRemoveMemberResponse, V as FFIDResetSessionResponse, W as FFIDSubscription, X as FFIDUpdateMemberRoleResponse, Y as FFIDUpdateUserProfileRequest, Z as FFIDUser, _ as FFIDUserProfile, $ as FFID_CATALOG_ENVIRONMENTS, a0 as FFID_CATALOG_PUBLICATION_STATUSES, a1 as TokenData, a2 as TokenStore, a3 as createFFIDClient, a4 as createTokenStore } from '../ffid-client-CpVixUM3.js';
|
|
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';
|
|
6
6
|
|
package/dist/server/index.js
CHANGED
|
@@ -1341,7 +1341,11 @@ function createProvisioningMethods(deps) {
|
|
|
1341
1341
|
}
|
|
1342
1342
|
return fetchWithAuth(USER_WELCOME_EMAIL_ENDPOINT, {
|
|
1343
1343
|
method: "POST",
|
|
1344
|
-
body: JSON.stringify({
|
|
1344
|
+
body: JSON.stringify({
|
|
1345
|
+
email: params.email.trim(),
|
|
1346
|
+
...params.template !== void 0 ? { template: params.template } : {},
|
|
1347
|
+
...params.returnTo !== void 0 ? { returnTo: params.returnTo } : {}
|
|
1348
|
+
})
|
|
1345
1349
|
});
|
|
1346
1350
|
}
|
|
1347
1351
|
async function provisionOrganization(params) {
|
|
@@ -1667,7 +1671,7 @@ function validateTokenResponse(tokenResponse) {
|
|
|
1667
1671
|
}
|
|
1668
1672
|
|
|
1669
1673
|
// src/client/version-check.ts
|
|
1670
|
-
var SDK_VERSION = "5.
|
|
1674
|
+
var SDK_VERSION = "5.35.0";
|
|
1671
1675
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
1672
1676
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
1673
1677
|
function sdkHeaders() {
|