@frak-labs/core-sdk 1.2.0-beta.8ffb7167 → 1.2.0-beta.b9160b52

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.
Files changed (46) hide show
  1. package/cdn/bundle.js +1 -1
  2. package/dist/{actions-DtPVuk2e.js → actions-CMPlZ7CH.js} +2 -2
  3. package/dist/{actions-DtPVuk2e.js.map → actions-CMPlZ7CH.js.map} +1 -1
  4. package/dist/{actions-Cyn4asew.cjs → actions-DwDtd2rq.cjs} +2 -2
  5. package/dist/{actions-Cyn4asew.cjs.map → actions-DwDtd2rq.cjs.map} +1 -1
  6. package/dist/actions.cjs +1 -1
  7. package/dist/actions.d.cts +2 -2
  8. package/dist/actions.d.ts +2 -2
  9. package/dist/actions.js +1 -1
  10. package/dist/bundle.cjs +1 -1
  11. package/dist/bundle.d.cts +4 -4
  12. package/dist/bundle.d.ts +4 -4
  13. package/dist/bundle.js +1 -1
  14. package/dist/frakContext-BGx4IVAK.cjs +2 -0
  15. package/dist/{frakContext-CeVlWFcX.cjs.map → frakContext-BGx4IVAK.cjs.map} +1 -1
  16. package/dist/frakContext-Db64Zo2o.js +2 -0
  17. package/dist/{frakContext-Bgidv-Se.js.map → frakContext-Db64Zo2o.js.map} +1 -1
  18. package/dist/{getCurrencyAmountKey-DQcwjJiB.js → getCurrencyAmountKey-C-1W-BRg.js} +1 -1
  19. package/dist/{getCurrencyAmountKey-DQcwjJiB.js.map → getCurrencyAmountKey-C-1W-BRg.js.map} +1 -1
  20. package/dist/{getCurrencyAmountKey-h2eOiYzv.cjs → getCurrencyAmountKey-oIVOsRrF.cjs} +2 -2
  21. package/dist/{getCurrencyAmountKey-h2eOiYzv.cjs.map → getCurrencyAmountKey-oIVOsRrF.cjs.map} +1 -1
  22. package/dist/{index-Bxos0XKv.d.ts → index-BrMCc4nK.d.cts} +16 -34
  23. package/dist/{index-DQYipoH_.d.ts → index-DjAbFZuV.d.ts} +9 -28
  24. package/dist/{index-DPez7SXh.d.cts → index-DlDKFfSX.d.cts} +9 -28
  25. package/dist/{index-CGoyXIxE.d.cts → index-Dmng11I3.d.ts} +16 -34
  26. package/dist/index.cjs +1 -1
  27. package/dist/index.d.cts +3 -3
  28. package/dist/index.d.ts +3 -3
  29. package/dist/index.js +1 -1
  30. package/dist/{merchantInformation--tLnowAN.d.ts → merchantInformation-BFdhF3De.d.cts} +28 -15
  31. package/dist/{merchantInformation-BSuahpjl.d.cts → merchantInformation-BFdhF3De.d.ts} +28 -15
  32. package/dist/{openSso-CjZ8lAEA.d.ts → openSso-DYe9Eyet.d.ts} +66 -35
  33. package/dist/{openSso-DSXbUP-j.d.cts → openSso-NCXikBK6.d.cts} +66 -35
  34. package/dist/rewards.cjs +1 -1
  35. package/dist/rewards.cjs.map +1 -1
  36. package/dist/rewards.d.cts +11 -6
  37. package/dist/rewards.d.ts +11 -6
  38. package/dist/rewards.js +1 -1
  39. package/dist/rewards.js.map +1 -1
  40. package/dist/{src-DKVdYUwV.js → src-Bigq2qnT.js} +2 -2
  41. package/dist/{src-DKVdYUwV.js.map → src-Bigq2qnT.js.map} +1 -1
  42. package/dist/{src-N8U2UQt0.cjs → src-D2D9Cw9X.cjs} +2 -2
  43. package/dist/{src-N8U2UQt0.cjs.map → src-D2D9Cw9X.cjs.map} +1 -1
  44. package/package.json +5 -4
  45. package/dist/frakContext-Bgidv-Se.js +0 -2
  46. package/dist/frakContext-CeVlWFcX.cjs +0 -2
@@ -1,6 +1,5 @@
1
- import { i as GetMerchantInformationReturnType } from "./merchantInformation-BSuahpjl.cjs";
2
- import { B as FinalActionType, C as DisplayModalParamsType, D as ModalStepTypes, E as ModalRpcStepsResultType, L as PrepareSsoParamsType, M as SiweAuthenticateReturnType, N as SiweAuthenticationParams, O as SendTransactionModalStepType, P as LoginModalStepType, R as PrepareSsoReturnType, V as FinalModalStepType, b as DisplaySharingPageParamsType, d as WalletStatusReturnType, f as UserReferralStatusType, h as DisplayEmbeddedWalletResultType, i as FrakContext, k as SendTransactionReturnType, m as DisplayEmbeddedWalletParamsType, p as SendInteractionParamsType, s as FrakClient, w as ModalRpcMetadata, x as DisplaySharingPageResultType } from "./openSso-DSXbUP-j.cjs";
3
-
1
+ import { i as GetMerchantInformationReturnType } from "./merchantInformation-BFdhF3De.cjs";
2
+ import { B as FinalActionType, C as DisplayModalParamsType, D as ModalStepTypes, E as ModalRpcStepsResultType, L as PrepareSsoParamsType, M as SiweAuthenticateReturnType, N as SiweAuthenticationParams, O as SendTransactionModalStepType, P as LoginModalStepType, R as PrepareSsoReturnType, V as FinalModalStepType, b as DisplaySharingPageParamsType, d as WalletStatusReturnType, f as UserReferralStatusType, h as DisplayEmbeddedWalletResultType, i as FrakContext, k as SendTransactionReturnType, m as DisplayEmbeddedWalletParamsType, p as SendInteractionParamsType, s as FrakClient, w as ModalRpcMetadata, x as DisplaySharingPageResultType } from "./openSso-NCXikBK6.cjs";
4
3
  //#region src/actions/displayEmbeddedWallet.d.ts
5
4
  /**
6
5
  * Function used to display the Frak embedded wallet popup
@@ -115,10 +114,7 @@ declare function displayEmbeddedWallet(client: FrakClient, params: DisplayEmbedd
115
114
  * });
116
115
  * ```
117
116
  */
118
- declare function displayModal<T extends ModalStepTypes[] = ModalStepTypes[]>(client: FrakClient, {
119
- steps,
120
- metadata
121
- }: DisplayModalParamsType<T>, placement?: string): Promise<ModalRpcStepsResultType<T>>;
117
+ declare function displayModal<T extends ModalStepTypes[] = ModalStepTypes[]>(client: FrakClient, { steps, metadata }: DisplayModalParamsType<T>, placement?: string): Promise<ModalRpcStepsResultType<T>>;
122
118
  //#endregion
123
119
  //#region src/actions/displaySharingPage.d.ts
124
120
  /**
@@ -321,11 +317,7 @@ type ReferralState = "idle" | "processing" | "success" | "no-referrer" | "self-r
321
317
  *
322
318
  * @see {@link @frak-labs/core-sdk!ModalStepTypes} for modal step types
323
319
  */
324
- declare function processReferral(client: FrakClient, {
325
- walletStatus,
326
- frakContext,
327
- options
328
- }: {
320
+ declare function processReferral(client: FrakClient, { walletStatus, frakContext, options }: {
329
321
  walletStatus?: WalletStatusReturnType;
330
322
  frakContext?: FrakContext | null;
331
323
  options?: ProcessReferralOptions;
@@ -344,9 +336,7 @@ declare function processReferral(client: FrakClient, {
344
336
  *
345
337
  * @see {@link processReferral} for more details on the automatic referral handling process
346
338
  */
347
- declare function referralInteraction(client: FrakClient, {
348
- options
349
- }?: {
339
+ declare function referralInteraction(client: FrakClient, { options }?: {
350
340
  options?: ProcessReferralOptions;
351
341
  }): Promise<("idle" | "processing" | "success" | "no-referrer" | "self-referral") | undefined>;
352
342
  //#endregion
@@ -536,10 +526,7 @@ type ModalBuilder = ModalStepBuilder<[LoginModalStepType]>;
536
526
  * @see {@link ModalRpcStepsResultType} for more info about the result of each modal steps
537
527
  * @see {@link displayModal} for more info about how the modal is displayed
538
528
  */
539
- declare function modalBuilder(client: FrakClient, {
540
- metadata,
541
- login
542
- }: {
529
+ declare function modalBuilder(client: FrakClient, { metadata, login }: {
543
530
  metadata?: ModalRpcMetadata;
544
531
  login?: LoginModalStepType["params"];
545
532
  }): ModalBuilder;
@@ -582,10 +569,7 @@ type SendTransactionParams = {
582
569
  * });
583
570
  * console.log("Transaction hash:", hash);
584
571
  */
585
- declare function sendTransaction(client: FrakClient, {
586
- tx,
587
- metadata
588
- }: SendTransactionParams): Promise<SendTransactionReturnType>;
572
+ declare function sendTransaction(client: FrakClient, { tx, metadata }: SendTransactionParams): Promise<SendTransactionReturnType>;
589
573
  //#endregion
590
574
  //#region src/actions/wrapper/siweAuthenticate.d.ts
591
575
  /**
@@ -639,10 +623,7 @@ type SiweAuthenticateModalParams = {
639
623
  * console.log("Parsed final message:", parseSiweMessage(message));
640
624
  * console.log("Siwe signature:", signature);
641
625
  */
642
- declare function siweAuthenticate(client: FrakClient, {
643
- siwe,
644
- metadata
645
- }: SiweAuthenticateModalParams): Promise<SiweAuthenticateReturnType>;
626
+ declare function siweAuthenticate(client: FrakClient, { siwe, metadata }: SiweAuthenticateModalParams): Promise<SiweAuthenticateReturnType>;
646
627
  //#endregion
647
628
  export { displayEmbeddedWallet as C, displayModal as S, getUserReferralStatus as _, ModalBuilder as a, ensureIdentity as b, watchWalletStatus as c, REFERRAL_SUCCESS_EVENT as d, setupReferral as f, prepareSso as g, processReferral as h, sendTransaction as i, trackPurchaseStatus as l, ProcessReferralOptions as m, siweAuthenticate as n, ModalStepBuilder as o, referralInteraction as p, SendTransactionParams as r, modalBuilder as s, SiweAuthenticateModalParams as t, sendInteraction as u, getMergeToken as v, displaySharingPage as x, getMerchantInformation as y };
648
- //# sourceMappingURL=index-DPez7SXh.d.cts.map
629
+ //# sourceMappingURL=index-DlDKFfSX.d.cts.map
@@ -1,7 +1,6 @@
1
- import { f as Currency, h as Language, p as FrakWalletSdkConfig, u as TokenAmountType, v as AttributionDefaults, y as AttributionParams } from "./merchantInformation-BSuahpjl.cjs";
2
- import { G as MerchantConfigResponse, J as SdkResolvedConfig, L as PrepareSsoParamsType, a as FrakContextV1, i as FrakContext, o as FrakContextV2, s as FrakClient, z as SsoMetadata } from "./openSso-DSXbUP-j.cjs";
1
+ import { f as Currency, h as Language, p as FrakWalletSdkConfig, u as TokenAmountType, v as AttributionDefaults, y as AttributionParams } from "./merchantInformation-BFdhF3De.js";
2
+ import { G as MerchantConfigResponse, J as SdkResolvedConfig, L as PrepareSsoParamsType, a as FrakContextV1, i as FrakContext, o as FrakContextV2, s as FrakClient, z as SsoMetadata } from "./openSso-DYe9Eyet.js";
3
3
  import { Address, Hex } from "viem";
4
-
5
4
  //#region src/types/compression.d.ts
6
5
  /**
7
6
  * The received encoded data from a client
@@ -40,10 +39,7 @@ type KeyProvider<DataType> = (value: DataType) => string[];
40
39
  * const iframe = await createIframe({ config: frakConfig });
41
40
  * const client = createIFrameFrakClient({ config: frakConfig, iframe });
42
41
  */
43
- declare function createIFrameFrakClient({
44
- config,
45
- iframe
46
- }: {
42
+ declare function createIFrameFrakClient({ config, iframe }: {
47
43
  config: FrakWalletSdkConfig;
48
44
  iframe: HTMLIFrameElement;
49
45
  }): FrakClient;
@@ -64,9 +60,7 @@ declare function createIFrameFrakClient({
64
60
  * }
65
61
  * const client = await setupClient({ config: frakConfig });
66
62
  */
67
- declare function setupClient({
68
- config
69
- }: {
63
+ declare function setupClient({ config }: {
70
64
  config: FrakWalletSdkConfig;
71
65
  }): Promise<FrakClient | undefined>;
72
66
  //#endregion
@@ -166,9 +160,7 @@ declare function decompress(context?: string): FrakContext | undefined;
166
160
  * @param args.url - The URL to parse
167
161
  * @returns The parsed FrakContext, or null if absent
168
162
  */
169
- declare function parse({
170
- url
171
- }: {
163
+ declare function parse({ url }: {
172
164
  url: string;
173
165
  }): FrakContext | null | undefined;
174
166
  /**
@@ -185,11 +177,7 @@ declare function parse({
185
177
  * @param args.attribution - Optional attribution overrides. Defaults are applied even when omitted.
186
178
  * @returns The updated URL string, or null on failure
187
179
  */
188
- declare function update({
189
- url,
190
- context,
191
- attribution
192
- }: {
180
+ declare function update({ url, context, attribution }: {
193
181
  url?: string;
194
182
  context: FrakContextV1 | FrakContextV2;
195
183
  attribution?: AttributionParams;
@@ -211,10 +199,7 @@ declare function remove(url: string): string;
211
199
  * @param args.url - Base URL (defaults to `window.location.href`)
212
200
  * @param args.context - Context to set, or null to remove
213
201
  */
214
- declare function replaceUrl({
215
- url: baseUrl,
216
- context
217
- }: {
202
+ declare function replaceUrl({ url: baseUrl, context }: {
218
203
  url?: string;
219
204
  context: FrakContextV1 | FrakContextV2 | null;
220
205
  }): void;
@@ -274,11 +259,7 @@ type MergeAttributionInput = {
274
259
  * - `utm_content` never comes from `defaults`; only `productUtmContent` or
275
260
  * `perCall.utmContent` can populate it.
276
261
  */
277
- declare function mergeAttribution({
278
- perCall,
279
- defaults,
280
- productUtmContent
281
- }: MergeAttributionInput): AttributionParams | undefined;
262
+ declare function mergeAttribution({ perCall, defaults, productUtmContent }: MergeAttributionInput): AttributionParams | undefined;
282
263
  //#endregion
283
264
  //#region src/utils/analytics/events/component.d.ts
284
265
  type ButtonBaseProps = {
@@ -391,7 +372,9 @@ declare function trackEvent<K extends keyof SdkEventMap>(client: FrakClient | un
391
372
  * Options for deep link with fallback
392
373
  */
393
374
  type DeepLinkFallbackOptions = {
394
- /** Timeout in ms before triggering fallback (default: 2500ms) */timeout?: number; /** Callback invoked when fallback is triggered (app not installed) */
375
+ /** Timeout in ms before triggering fallback (default: 2500ms) */
376
+ timeout?: number;
377
+ /** Callback invoked when fallback is triggered (app not installed) */
395
378
  onFallback?: () => void;
396
379
  };
397
380
  /**
@@ -441,7 +424,9 @@ declare function redirectToExternalBrowser(targetUrl: string): void;
441
424
  //#endregion
442
425
  //#region src/utils/cache/withCache.d.ts
443
426
  type WithCacheOptions = {
444
- /** The key to cache the data against */cacheKey: string; /** Time in ms that cached data will remain valid. Default: 30_000 (30s). Set to 0 to disable caching. */
427
+ /** The key to cache the data against */
428
+ cacheKey: string;
429
+ /** Time in ms that cached data will remain valid. Default: 30_000 (30s). Set to 0 to disable caching. */
445
430
  cacheTime?: number;
446
431
  };
447
432
  /**
@@ -460,10 +445,7 @@ type WithCacheOptions = {
460
445
  * );
461
446
  * ```
462
447
  */
463
- declare function withCache<TData>(fn: () => Promise<TData>, {
464
- cacheKey,
465
- cacheTime
466
- }: WithCacheOptions): Promise<TData>;
448
+ declare function withCache<TData>(fn: () => Promise<TData>, { cacheKey, cacheTime }: WithCacheOptions): Promise<TData>;
467
449
  /**
468
450
  * Clear all cached data (both pending promises and resolved responses).
469
451
  * Called automatically when the client is destroyed.
@@ -655,4 +637,4 @@ declare function getQueryParamCaseInsensitive(searchParams: URLSearchParams, key
655
637
  declare function deleteQueryParamCaseInsensitive(searchParams: URLSearchParams, key: string): void;
656
638
  //#endregion
657
639
  export { areAddressesEqual as A, triggerDeepLinkWithFallback as C, MergeAttributionInput as D, SdkHandshakeFailureReason as E, setupClient as F, createIFrameFrakClient as I, CompressedData as L, sdkConfigStore as M, getClientId as N, mergeAttribution as O, getBackendUrl as P, HashProtectedData as R, DeepLinkFallbackOptions as S, SdkEventMap as T, withCache as _, FullSsoParams as a, isMobile as b, findIframeInOpener as c, formatAmount as d, decompressJsonFromB64 as f, clearAllCache as g, base64urlEncode as h, CompressedSsoData as i, DEEP_LINK_SCHEME as j, FrakContextManager as k, getSupportedCurrency as l, base64urlDecode as m, getQueryParamCaseInsensitive as n, generateSsoUrl as o, compressJsonToB64 as p, AppSpecificSsoMetadata as r, baseIframeProps as s, deleteQueryParamCaseInsensitive as t, getCurrencyAmountKey as u, isIOS as v, trackEvent as w, redirectToExternalBrowser as x, isInAppBrowser as y, KeyProvider as z };
658
- //# sourceMappingURL=index-CGoyXIxE.d.cts.map
640
+ //# sourceMappingURL=index-Dmng11I3.d.ts.map
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./frakContext-CeVlWFcX.cjs`),t=require(`./src-N8U2UQt0.cjs`),n=require(`./getCurrencyAmountKey-h2eOiYzv.cjs`);exports.DEEP_LINK_SCHEME=t.f,exports.FrakContextManager=e.t,exports.areAddressesEqual=e.i,exports.base64urlDecode=e.p,exports.base64urlEncode=e.m,exports.baseIframeProps=t.a,exports.clearAllCache=e._,exports.compressJsonToB64=e.f,exports.createIFrameFrakClient=t.i,exports.decompressJsonFromB64=t.r,exports.deleteQueryParamCaseInsensitive=e.a,exports.findIframeInOpener=t.o,exports.formatAmount=n.n,exports.generateSsoUrl=e.d,exports.getBackendUrl=e.g,exports.getClientId=e.y,exports.getCurrencyAmountKey=n.t,exports.getQueryParamCaseInsensitive=e.o,exports.getSupportedCurrency=n.r,exports.isIOS=t.s,exports.isInAppBrowser=t.c,exports.isMobile=t.l,exports.mergeAttribution=t.t,exports.redirectToExternalBrowser=t.u,exports.sdkConfigStore=e.h,exports.setupClient=t.n,exports.ssoPopupFeatures=e.l,exports.ssoPopupName=e.u,exports.trackEvent=e.s,exports.triggerDeepLinkWithFallback=t.d,exports.withCache=e.v;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./frakContext-BGx4IVAK.cjs"),t=require("./src-D2D9Cw9X.cjs"),n=require("./getCurrencyAmountKey-oIVOsRrF.cjs");exports.DEEP_LINK_SCHEME=t.f,exports.FrakContextManager=e.t,exports.areAddressesEqual=e.i,exports.base64urlDecode=e.p,exports.base64urlEncode=e.m,exports.baseIframeProps=t.a,exports.clearAllCache=e._,exports.compressJsonToB64=e.f,exports.createIFrameFrakClient=t.i,exports.decompressJsonFromB64=t.r,exports.deleteQueryParamCaseInsensitive=e.a,exports.findIframeInOpener=t.o,exports.formatAmount=n.n,exports.generateSsoUrl=e.d,exports.getBackendUrl=e.g,exports.getClientId=e.y,exports.getCurrencyAmountKey=n.t,exports.getQueryParamCaseInsensitive=e.o,exports.getSupportedCurrency=n.r,exports.isIOS=t.s,exports.isInAppBrowser=t.c,exports.isMobile=t.l,exports.mergeAttribution=t.t,exports.redirectToExternalBrowser=t.u,exports.sdkConfigStore=e.h,exports.setupClient=t.n,exports.ssoPopupFeatures=e.l,exports.ssoPopupName=e.u,exports.trackEvent=e.s,exports.triggerDeepLinkWithFallback=t.d,exports.withCache=e.v;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as UtmParams, _ as LocalizedI18nConfig, a as MerchantReward, b as TrackArrivalParams, c as RuleConditions, d as InteractionTypeKey, f as Currency, g as ListenerPreloadOption, h as Language, i as GetMerchantInformationReturnType, l as RuleField, m as I18nConfig, n as ConditionOperator, o as RewardTier, p as FrakWalletSdkConfig, r as EstimatedReward, s as RuleCondition, t as ConditionGroup, u as TokenAmountType, v as AttributionDefaults, x as TrackArrivalResult, y as AttributionParams } from "./merchantInformation-BSuahpjl.cjs";
2
- import { A as SendTransactionTxType, B as FinalActionType, C as DisplayModalParamsType, D as ModalStepTypes, E as ModalRpcStepsResultType, F as OpenSsoParamsType, G as MerchantConfigResponse, H as ModalStepMetadata, I as OpenSsoReturnType, J as SdkResolvedConfig, K as ResolvedPlacement, L as PrepareSsoParamsType, M as SiweAuthenticateReturnType, N as SiweAuthenticationParams, O as SendTransactionModalStepType, P as LoginModalStepType, R as PrepareSsoReturnType, S as SharingPageProduct, T as ModalRpcStepsInput, U as IFrameLifecycleEvent, V as FinalModalStepType, W as ClientLifecycleEvent, _ as EmbeddedViewActionReferred, a as FrakContextV1, b as DisplaySharingPageParamsType, c as FrakLifecycleEvent, d as WalletStatusReturnType, f as UserReferralStatusType, g as LoggedOutEmbeddedView, h as DisplayEmbeddedWalletResultType, i as FrakContext, j as SiweAuthenticateModalStepType, k as SendTransactionReturnType, l as IFrameTransport, m as DisplayEmbeddedWalletParamsType, n as ssoPopupFeatures, o as FrakContextV2, p as SendInteractionParamsType, q as ResolvedSdkConfig, r as ssoPopupName, s as FrakClient, u as IFrameRpcSchema, v as EmbeddedViewActionSharing, w as ModalRpcMetadata, x as DisplaySharingPageResultType, y as LoggedInEmbeddedView, z as SsoMetadata } from "./openSso-DSXbUP-j.cjs";
3
- import { A as areAddressesEqual, C as triggerDeepLinkWithFallback, D as MergeAttributionInput, E as SdkHandshakeFailureReason, F as setupClient, I as createIFrameFrakClient, L as CompressedData, M as sdkConfigStore, N as getClientId, O as mergeAttribution, P as getBackendUrl, R as HashProtectedData, S as DeepLinkFallbackOptions, T as SdkEventMap, _ as withCache, a as FullSsoParams, b as isMobile, c as findIframeInOpener, d as formatAmount, f as decompressJsonFromB64, g as clearAllCache, h as base64urlEncode, i as CompressedSsoData, j as DEEP_LINK_SCHEME, k as FrakContextManager, l as getSupportedCurrency, m as base64urlDecode, n as getQueryParamCaseInsensitive, o as generateSsoUrl, p as compressJsonToB64, r as AppSpecificSsoMetadata, s as baseIframeProps, t as deleteQueryParamCaseInsensitive, u as getCurrencyAmountKey, v as isIOS, w as trackEvent, x as redirectToExternalBrowser, y as isInAppBrowser, z as KeyProvider } from "./index-CGoyXIxE.cjs";
1
+ import { S as UtmParams, _ as LocalizedI18nConfig, a as MerchantReward, b as TrackArrivalParams, c as RuleConditions, d as InteractionTypeKey, f as Currency, g as ListenerPreloadOption, h as Language, i as GetMerchantInformationReturnType, l as RuleField, m as I18nConfig, n as ConditionOperator, o as RewardTier, p as FrakWalletSdkConfig, r as EstimatedReward, s as RuleCondition, t as ConditionGroup, u as TokenAmountType, v as AttributionDefaults, x as TrackArrivalResult, y as AttributionParams } from "./merchantInformation-BFdhF3De.cjs";
2
+ import { A as SendTransactionTxType, B as FinalActionType, C as DisplayModalParamsType, D as ModalStepTypes, E as ModalRpcStepsResultType, F as OpenSsoParamsType, G as MerchantConfigResponse, H as ModalStepMetadata, I as OpenSsoReturnType, J as SdkResolvedConfig, K as ResolvedPlacement, L as PrepareSsoParamsType, M as SiweAuthenticateReturnType, N as SiweAuthenticationParams, O as SendTransactionModalStepType, P as LoginModalStepType, R as PrepareSsoReturnType, S as SharingPageProduct, T as ModalRpcStepsInput, U as IFrameLifecycleEvent, V as FinalModalStepType, W as ClientLifecycleEvent, _ as EmbeddedViewActionReferred, a as FrakContextV1, b as DisplaySharingPageParamsType, c as FrakLifecycleEvent, d as WalletStatusReturnType, f as UserReferralStatusType, g as LoggedOutEmbeddedView, h as DisplayEmbeddedWalletResultType, i as FrakContext, j as SiweAuthenticateModalStepType, k as SendTransactionReturnType, l as IFrameTransport, m as DisplayEmbeddedWalletParamsType, n as ssoPopupFeatures, o as FrakContextV2, p as SendInteractionParamsType, q as ResolvedSdkConfig, r as ssoPopupName, s as FrakClient, u as IFrameRpcSchema, v as EmbeddedViewActionSharing, w as ModalRpcMetadata, x as DisplaySharingPageResultType, y as LoggedInEmbeddedView, z as SsoMetadata } from "./openSso-NCXikBK6.cjs";
3
+ import { A as areAddressesEqual, C as triggerDeepLinkWithFallback, D as MergeAttributionInput, E as SdkHandshakeFailureReason, F as setupClient, I as createIFrameFrakClient, L as CompressedData, M as sdkConfigStore, N as getClientId, O as mergeAttribution, P as getBackendUrl, R as HashProtectedData, S as DeepLinkFallbackOptions, T as SdkEventMap, _ as withCache, a as FullSsoParams, b as isMobile, c as findIframeInOpener, d as formatAmount, f as decompressJsonFromB64, g as clearAllCache, h as base64urlEncode, i as CompressedSsoData, j as DEEP_LINK_SCHEME, k as FrakContextManager, l as getSupportedCurrency, m as base64urlDecode, n as getQueryParamCaseInsensitive, o as generateSsoUrl, p as compressJsonToB64, r as AppSpecificSsoMetadata, s as baseIframeProps, t as deleteQueryParamCaseInsensitive, u as getCurrencyAmountKey, v as isIOS, w as trackEvent, x as redirectToExternalBrowser, y as isInAppBrowser, z as KeyProvider } from "./index-BrMCc4nK.cjs";
4
4
  export { type AppSpecificSsoMetadata, type AttributionDefaults, type AttributionParams, type ClientLifecycleEvent, type CompressedData, type CompressedSsoData, type ConditionGroup, type ConditionOperator, type Currency, DEEP_LINK_SCHEME, type DeepLinkFallbackOptions, type DisplayEmbeddedWalletParamsType, type DisplayEmbeddedWalletResultType, type DisplayModalParamsType, type DisplaySharingPageParamsType, type DisplaySharingPageResultType, type EmbeddedViewActionReferred, type EmbeddedViewActionSharing, type EstimatedReward, type FinalActionType, type FinalModalStepType, type FrakClient, type FrakContext, FrakContextManager, type FrakContextV1, type FrakContextV2, type FrakLifecycleEvent, type FrakWalletSdkConfig, type FullSsoParams, type GetMerchantInformationReturnType, type HashProtectedData, type I18nConfig, type IFrameLifecycleEvent, type IFrameRpcSchema, type IFrameTransport, type InteractionTypeKey, type KeyProvider, type Language, type ListenerPreloadOption, type LocalizedI18nConfig, type LoggedInEmbeddedView, type LoggedOutEmbeddedView, type LoginModalStepType, type MerchantConfigResponse, type MerchantReward, type MergeAttributionInput, type ModalRpcMetadata, type ModalRpcStepsInput, type ModalRpcStepsResultType, type ModalStepMetadata, type ModalStepTypes, type OpenSsoParamsType, type OpenSsoReturnType, type PrepareSsoParamsType, type PrepareSsoReturnType, type ResolvedPlacement, type ResolvedSdkConfig, type RewardTier, type RuleCondition, type RuleConditions, type RuleField, type SdkEventMap, type SdkHandshakeFailureReason, type SdkResolvedConfig, type SendInteractionParamsType, type SendTransactionModalStepType, type SendTransactionReturnType, type SendTransactionTxType, type SharingPageProduct, type SiweAuthenticateModalStepType, type SiweAuthenticateReturnType, type SiweAuthenticationParams, type SsoMetadata, type TokenAmountType, type TrackArrivalParams, type TrackArrivalResult, type UserReferralStatusType, type UtmParams, type WalletStatusReturnType, areAddressesEqual, base64urlDecode, base64urlEncode, baseIframeProps, clearAllCache, compressJsonToB64, createIFrameFrakClient, decompressJsonFromB64, deleteQueryParamCaseInsensitive, findIframeInOpener, formatAmount, generateSsoUrl, getBackendUrl, getClientId, getCurrencyAmountKey, getQueryParamCaseInsensitive, getSupportedCurrency, isIOS, isInAppBrowser, isMobile, mergeAttribution, redirectToExternalBrowser, sdkConfigStore, setupClient, ssoPopupFeatures, ssoPopupName, trackEvent, triggerDeepLinkWithFallback, withCache };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as UtmParams, _ as LocalizedI18nConfig, a as MerchantReward, b as TrackArrivalParams, c as RuleConditions, d as InteractionTypeKey, f as Currency, g as ListenerPreloadOption, h as Language, i as GetMerchantInformationReturnType, l as RuleField, m as I18nConfig, n as ConditionOperator, o as RewardTier, p as FrakWalletSdkConfig, r as EstimatedReward, s as RuleCondition, t as ConditionGroup, u as TokenAmountType, v as AttributionDefaults, x as TrackArrivalResult, y as AttributionParams } from "./merchantInformation--tLnowAN.js";
2
- import { A as SendTransactionTxType, B as FinalActionType, C as DisplayModalParamsType, D as ModalStepTypes, E as ModalRpcStepsResultType, F as OpenSsoParamsType, G as MerchantConfigResponse, H as ModalStepMetadata, I as OpenSsoReturnType, J as SdkResolvedConfig, K as ResolvedPlacement, L as PrepareSsoParamsType, M as SiweAuthenticateReturnType, N as SiweAuthenticationParams, O as SendTransactionModalStepType, P as LoginModalStepType, R as PrepareSsoReturnType, S as SharingPageProduct, T as ModalRpcStepsInput, U as IFrameLifecycleEvent, V as FinalModalStepType, W as ClientLifecycleEvent, _ as EmbeddedViewActionReferred, a as FrakContextV1, b as DisplaySharingPageParamsType, c as FrakLifecycleEvent, d as WalletStatusReturnType, f as UserReferralStatusType, g as LoggedOutEmbeddedView, h as DisplayEmbeddedWalletResultType, i as FrakContext, j as SiweAuthenticateModalStepType, k as SendTransactionReturnType, l as IFrameTransport, m as DisplayEmbeddedWalletParamsType, n as ssoPopupFeatures, o as FrakContextV2, p as SendInteractionParamsType, q as ResolvedSdkConfig, r as ssoPopupName, s as FrakClient, u as IFrameRpcSchema, v as EmbeddedViewActionSharing, w as ModalRpcMetadata, x as DisplaySharingPageResultType, y as LoggedInEmbeddedView, z as SsoMetadata } from "./openSso-CjZ8lAEA.js";
3
- import { A as areAddressesEqual, C as triggerDeepLinkWithFallback, D as MergeAttributionInput, E as SdkHandshakeFailureReason, F as setupClient, I as createIFrameFrakClient, L as CompressedData, M as sdkConfigStore, N as getClientId, O as mergeAttribution, P as getBackendUrl, R as HashProtectedData, S as DeepLinkFallbackOptions, T as SdkEventMap, _ as withCache, a as FullSsoParams, b as isMobile, c as findIframeInOpener, d as formatAmount, f as decompressJsonFromB64, g as clearAllCache, h as base64urlEncode, i as CompressedSsoData, j as DEEP_LINK_SCHEME, k as FrakContextManager, l as getSupportedCurrency, m as base64urlDecode, n as getQueryParamCaseInsensitive, o as generateSsoUrl, p as compressJsonToB64, r as AppSpecificSsoMetadata, s as baseIframeProps, t as deleteQueryParamCaseInsensitive, u as getCurrencyAmountKey, v as isIOS, w as trackEvent, x as redirectToExternalBrowser, y as isInAppBrowser, z as KeyProvider } from "./index-Bxos0XKv.js";
1
+ import { S as UtmParams, _ as LocalizedI18nConfig, a as MerchantReward, b as TrackArrivalParams, c as RuleConditions, d as InteractionTypeKey, f as Currency, g as ListenerPreloadOption, h as Language, i as GetMerchantInformationReturnType, l as RuleField, m as I18nConfig, n as ConditionOperator, o as RewardTier, p as FrakWalletSdkConfig, r as EstimatedReward, s as RuleCondition, t as ConditionGroup, u as TokenAmountType, v as AttributionDefaults, x as TrackArrivalResult, y as AttributionParams } from "./merchantInformation-BFdhF3De.js";
2
+ import { A as SendTransactionTxType, B as FinalActionType, C as DisplayModalParamsType, D as ModalStepTypes, E as ModalRpcStepsResultType, F as OpenSsoParamsType, G as MerchantConfigResponse, H as ModalStepMetadata, I as OpenSsoReturnType, J as SdkResolvedConfig, K as ResolvedPlacement, L as PrepareSsoParamsType, M as SiweAuthenticateReturnType, N as SiweAuthenticationParams, O as SendTransactionModalStepType, P as LoginModalStepType, R as PrepareSsoReturnType, S as SharingPageProduct, T as ModalRpcStepsInput, U as IFrameLifecycleEvent, V as FinalModalStepType, W as ClientLifecycleEvent, _ as EmbeddedViewActionReferred, a as FrakContextV1, b as DisplaySharingPageParamsType, c as FrakLifecycleEvent, d as WalletStatusReturnType, f as UserReferralStatusType, g as LoggedOutEmbeddedView, h as DisplayEmbeddedWalletResultType, i as FrakContext, j as SiweAuthenticateModalStepType, k as SendTransactionReturnType, l as IFrameTransport, m as DisplayEmbeddedWalletParamsType, n as ssoPopupFeatures, o as FrakContextV2, p as SendInteractionParamsType, q as ResolvedSdkConfig, r as ssoPopupName, s as FrakClient, u as IFrameRpcSchema, v as EmbeddedViewActionSharing, w as ModalRpcMetadata, x as DisplaySharingPageResultType, y as LoggedInEmbeddedView, z as SsoMetadata } from "./openSso-DYe9Eyet.js";
3
+ import { A as areAddressesEqual, C as triggerDeepLinkWithFallback, D as MergeAttributionInput, E as SdkHandshakeFailureReason, F as setupClient, I as createIFrameFrakClient, L as CompressedData, M as sdkConfigStore, N as getClientId, O as mergeAttribution, P as getBackendUrl, R as HashProtectedData, S as DeepLinkFallbackOptions, T as SdkEventMap, _ as withCache, a as FullSsoParams, b as isMobile, c as findIframeInOpener, d as formatAmount, f as decompressJsonFromB64, g as clearAllCache, h as base64urlEncode, i as CompressedSsoData, j as DEEP_LINK_SCHEME, k as FrakContextManager, l as getSupportedCurrency, m as base64urlDecode, n as getQueryParamCaseInsensitive, o as generateSsoUrl, p as compressJsonToB64, r as AppSpecificSsoMetadata, s as baseIframeProps, t as deleteQueryParamCaseInsensitive, u as getCurrencyAmountKey, v as isIOS, w as trackEvent, x as redirectToExternalBrowser, y as isInAppBrowser, z as KeyProvider } from "./index-Dmng11I3.js";
4
4
  export { type AppSpecificSsoMetadata, type AttributionDefaults, type AttributionParams, type ClientLifecycleEvent, type CompressedData, type CompressedSsoData, type ConditionGroup, type ConditionOperator, type Currency, DEEP_LINK_SCHEME, type DeepLinkFallbackOptions, type DisplayEmbeddedWalletParamsType, type DisplayEmbeddedWalletResultType, type DisplayModalParamsType, type DisplaySharingPageParamsType, type DisplaySharingPageResultType, type EmbeddedViewActionReferred, type EmbeddedViewActionSharing, type EstimatedReward, type FinalActionType, type FinalModalStepType, type FrakClient, type FrakContext, FrakContextManager, type FrakContextV1, type FrakContextV2, type FrakLifecycleEvent, type FrakWalletSdkConfig, type FullSsoParams, type GetMerchantInformationReturnType, type HashProtectedData, type I18nConfig, type IFrameLifecycleEvent, type IFrameRpcSchema, type IFrameTransport, type InteractionTypeKey, type KeyProvider, type Language, type ListenerPreloadOption, type LocalizedI18nConfig, type LoggedInEmbeddedView, type LoggedOutEmbeddedView, type LoginModalStepType, type MerchantConfigResponse, type MerchantReward, type MergeAttributionInput, type ModalRpcMetadata, type ModalRpcStepsInput, type ModalRpcStepsResultType, type ModalStepMetadata, type ModalStepTypes, type OpenSsoParamsType, type OpenSsoReturnType, type PrepareSsoParamsType, type PrepareSsoReturnType, type ResolvedPlacement, type ResolvedSdkConfig, type RewardTier, type RuleCondition, type RuleConditions, type RuleField, type SdkEventMap, type SdkHandshakeFailureReason, type SdkResolvedConfig, type SendInteractionParamsType, type SendTransactionModalStepType, type SendTransactionReturnType, type SendTransactionTxType, type SharingPageProduct, type SiweAuthenticateModalStepType, type SiweAuthenticateReturnType, type SiweAuthenticationParams, type SsoMetadata, type TokenAmountType, type TrackArrivalParams, type TrackArrivalResult, type UserReferralStatusType, type UtmParams, type WalletStatusReturnType, areAddressesEqual, base64urlDecode, base64urlEncode, baseIframeProps, clearAllCache, compressJsonToB64, createIFrameFrakClient, decompressJsonFromB64, deleteQueryParamCaseInsensitive, findIframeInOpener, formatAmount, generateSsoUrl, getBackendUrl, getClientId, getCurrencyAmountKey, getQueryParamCaseInsensitive, getSupportedCurrency, isIOS, isInAppBrowser, isMobile, mergeAttribution, redirectToExternalBrowser, sdkConfigStore, setupClient, ssoPopupFeatures, ssoPopupName, trackEvent, triggerDeepLinkWithFallback, withCache };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{_ as e,a as t,d as n,f as r,g as i,h as a,i as o,l as s,m as c,o as l,p as u,s as d,t as f,u as p,v as m,y as h}from"./frakContext-Bgidv-Se.js";import{a as g,c as _,d as v,f as y,i as b,l as x,n as S,o as C,r as w,s as T,t as E,u as D}from"./src-DKVdYUwV.js";import{n as O,r as k,t as A}from"./getCurrencyAmountKey-DQcwjJiB.js";export{y as DEEP_LINK_SCHEME,f as FrakContextManager,o as areAddressesEqual,u as base64urlDecode,c as base64urlEncode,g as baseIframeProps,e as clearAllCache,r as compressJsonToB64,b as createIFrameFrakClient,w as decompressJsonFromB64,t as deleteQueryParamCaseInsensitive,C as findIframeInOpener,O as formatAmount,n as generateSsoUrl,i as getBackendUrl,h as getClientId,A as getCurrencyAmountKey,l as getQueryParamCaseInsensitive,k as getSupportedCurrency,T as isIOS,_ as isInAppBrowser,x as isMobile,E as mergeAttribution,D as redirectToExternalBrowser,a as sdkConfigStore,S as setupClient,s as ssoPopupFeatures,p as ssoPopupName,d as trackEvent,v as triggerDeepLinkWithFallback,m as withCache};
1
+ import{_ as e,a as t,d as n,f as r,g as i,h as a,i as o,l as s,m as c,o as l,p as u,s as d,t as f,u as p,v as m,y as h}from"./frakContext-Db64Zo2o.js";import{a as g,c as _,d as v,f as y,i as b,l as x,n as S,o as C,r as w,s as T,t as E,u as D}from"./src-Bigq2qnT.js";import{n as O,r as k,t as A}from"./getCurrencyAmountKey-C-1W-BRg.js";export{y as DEEP_LINK_SCHEME,f as FrakContextManager,o as areAddressesEqual,u as base64urlDecode,c as base64urlEncode,g as baseIframeProps,e as clearAllCache,r as compressJsonToB64,b as createIFrameFrakClient,w as decompressJsonFromB64,t as deleteQueryParamCaseInsensitive,C as findIframeInOpener,O as formatAmount,n as generateSsoUrl,i as getBackendUrl,h as getClientId,A as getCurrencyAmountKey,l as getQueryParamCaseInsensitive,k as getSupportedCurrency,T as isIOS,_ as isInAppBrowser,x as isMobile,E as mergeAttribution,D as redirectToExternalBrowser,a as sdkConfigStore,S as setupClient,s as ssoPopupFeatures,p as ssoPopupName,d as trackEvent,v as triggerDeepLinkWithFallback,m as withCache};
@@ -1,5 +1,4 @@
1
1
  import { Address } from "viem";
2
-
3
2
  //#region src/types/tracking.d.ts
4
3
  type UtmParams = {
5
4
  source?: string;
@@ -43,9 +42,11 @@ type AttributionParams = {
43
42
  */
44
43
  type AttributionDefaults = Omit<AttributionParams, "utmContent">;
45
44
  type TrackArrivalParams = {
46
- /** Sharer wallet address. Accepted in both V1 (legacy) and V2 (authenticated sharer) contexts. */referrerWallet?: Address;
45
+ /** Sharer wallet address. Accepted in both V1 (legacy) and V2 (authenticated sharer) contexts. */
46
+ referrerWallet?: Address;
47
47
  referrerClientId?: string;
48
- referrerMerchantId?: string; /** Epoch seconds timestamp from the referral link creation */
48
+ referrerMerchantId?: string;
49
+ /** Epoch seconds timestamp from the referral link creation */
49
50
  referralTimestamp?: number;
50
51
  };
51
52
  type TrackArrivalResult = {
@@ -302,17 +303,29 @@ type RuleConditions = RuleCondition[] | ConditionGroup;
302
303
  * @group RPC Schema
303
304
  */
304
305
  type MerchantReward = {
305
- /** Reward token address; falls back to the merchant token when omitted. */token?: Address; /** Identifier of the campaign rule this reward originates from. */
306
- campaignId: string; /** Campaign display name. */
307
- name: string; /** Interaction that triggers the reward. */
308
- interactionTypeKey: InteractionTypeKey; /** Reward paid to the referrer, when the campaign defines one. */
309
- referrer?: EstimatedReward; /** Reward paid to the referee, when the campaign defines one. */
310
- referee?: EstimatedReward; /** Raw gating rules — inspect to derive start date, minimum purchase, … */
311
- conditions: RuleConditions; /** Seconds a reward stays locked before settlement. */
312
- defaultLockupSeconds?: number; /** Days before a pending reward expires. */
313
- pendingRewardExpirationDays?: number; /** Per-user reward cap for this campaign. */
314
- maxRewardsPerUser?: number; /** Merchant-wide per-user reward cap across every campaign. */
315
- merchantMaxRewardsPerUser?: number; /** ISO-8601 campaign end date, or `null` when open-ended. */
306
+ /** Reward token address; falls back to the merchant token when omitted. */
307
+ token?: Address;
308
+ /** Identifier of the campaign rule this reward originates from. */
309
+ campaignId: string;
310
+ /** Campaign display name. */
311
+ name: string;
312
+ /** Interaction that triggers the reward. */
313
+ interactionTypeKey: InteractionTypeKey;
314
+ /** Reward paid to the referrer, when the campaign defines one. */
315
+ referrer?: EstimatedReward;
316
+ /** Reward paid to the referee, when the campaign defines one. */
317
+ referee?: EstimatedReward;
318
+ /** Raw gating rules — inspect to derive start date, minimum purchase, … */
319
+ conditions: RuleConditions;
320
+ /** Seconds a reward stays locked before settlement. */
321
+ defaultLockupSeconds?: number;
322
+ /** Days before a pending reward expires. */
323
+ pendingRewardExpirationDays?: number;
324
+ /** Per-user reward cap for this campaign. */
325
+ maxRewardsPerUser?: number;
326
+ /** Merchant-wide per-user reward cap across every campaign. */
327
+ merchantMaxRewardsPerUser?: number;
328
+ /** ISO-8601 campaign end date, or `null` when open-ended. */
316
329
  expiresAt?: string | null;
317
330
  };
318
331
  /**
@@ -341,4 +354,4 @@ type GetMerchantInformationReturnType = {
341
354
  };
342
355
  //#endregion
343
356
  export { UtmParams as S, LocalizedI18nConfig as _, MerchantReward as a, TrackArrivalParams as b, RuleConditions as c, InteractionTypeKey as d, Currency as f, ListenerPreloadOption as g, Language as h, GetMerchantInformationReturnType as i, RuleField as l, I18nConfig as m, ConditionOperator as n, RewardTier as o, FrakWalletSdkConfig as p, EstimatedReward as r, RuleCondition as s, ConditionGroup as t, TokenAmountType as u, AttributionDefaults as v, TrackArrivalResult as x, AttributionParams as y };
344
- //# sourceMappingURL=merchantInformation--tLnowAN.d.ts.map
357
+ //# sourceMappingURL=merchantInformation-BFdhF3De.d.cts.map
@@ -1,5 +1,4 @@
1
1
  import { Address } from "viem";
2
-
3
2
  //#region src/types/tracking.d.ts
4
3
  type UtmParams = {
5
4
  source?: string;
@@ -43,9 +42,11 @@ type AttributionParams = {
43
42
  */
44
43
  type AttributionDefaults = Omit<AttributionParams, "utmContent">;
45
44
  type TrackArrivalParams = {
46
- /** Sharer wallet address. Accepted in both V1 (legacy) and V2 (authenticated sharer) contexts. */referrerWallet?: Address;
45
+ /** Sharer wallet address. Accepted in both V1 (legacy) and V2 (authenticated sharer) contexts. */
46
+ referrerWallet?: Address;
47
47
  referrerClientId?: string;
48
- referrerMerchantId?: string; /** Epoch seconds timestamp from the referral link creation */
48
+ referrerMerchantId?: string;
49
+ /** Epoch seconds timestamp from the referral link creation */
49
50
  referralTimestamp?: number;
50
51
  };
51
52
  type TrackArrivalResult = {
@@ -302,17 +303,29 @@ type RuleConditions = RuleCondition[] | ConditionGroup;
302
303
  * @group RPC Schema
303
304
  */
304
305
  type MerchantReward = {
305
- /** Reward token address; falls back to the merchant token when omitted. */token?: Address; /** Identifier of the campaign rule this reward originates from. */
306
- campaignId: string; /** Campaign display name. */
307
- name: string; /** Interaction that triggers the reward. */
308
- interactionTypeKey: InteractionTypeKey; /** Reward paid to the referrer, when the campaign defines one. */
309
- referrer?: EstimatedReward; /** Reward paid to the referee, when the campaign defines one. */
310
- referee?: EstimatedReward; /** Raw gating rules — inspect to derive start date, minimum purchase, … */
311
- conditions: RuleConditions; /** Seconds a reward stays locked before settlement. */
312
- defaultLockupSeconds?: number; /** Days before a pending reward expires. */
313
- pendingRewardExpirationDays?: number; /** Per-user reward cap for this campaign. */
314
- maxRewardsPerUser?: number; /** Merchant-wide per-user reward cap across every campaign. */
315
- merchantMaxRewardsPerUser?: number; /** ISO-8601 campaign end date, or `null` when open-ended. */
306
+ /** Reward token address; falls back to the merchant token when omitted. */
307
+ token?: Address;
308
+ /** Identifier of the campaign rule this reward originates from. */
309
+ campaignId: string;
310
+ /** Campaign display name. */
311
+ name: string;
312
+ /** Interaction that triggers the reward. */
313
+ interactionTypeKey: InteractionTypeKey;
314
+ /** Reward paid to the referrer, when the campaign defines one. */
315
+ referrer?: EstimatedReward;
316
+ /** Reward paid to the referee, when the campaign defines one. */
317
+ referee?: EstimatedReward;
318
+ /** Raw gating rules — inspect to derive start date, minimum purchase, … */
319
+ conditions: RuleConditions;
320
+ /** Seconds a reward stays locked before settlement. */
321
+ defaultLockupSeconds?: number;
322
+ /** Days before a pending reward expires. */
323
+ pendingRewardExpirationDays?: number;
324
+ /** Per-user reward cap for this campaign. */
325
+ maxRewardsPerUser?: number;
326
+ /** Merchant-wide per-user reward cap across every campaign. */
327
+ merchantMaxRewardsPerUser?: number;
328
+ /** ISO-8601 campaign end date, or `null` when open-ended. */
316
329
  expiresAt?: string | null;
317
330
  };
318
331
  /**
@@ -341,4 +354,4 @@ type GetMerchantInformationReturnType = {
341
354
  };
342
355
  //#endregion
343
356
  export { UtmParams as S, LocalizedI18nConfig as _, MerchantReward as a, TrackArrivalParams as b, RuleConditions as c, InteractionTypeKey as d, Currency as f, ListenerPreloadOption as g, Language as h, GetMerchantInformationReturnType as i, RuleField as l, I18nConfig as m, ConditionOperator as n, RewardTier as o, FrakWalletSdkConfig as p, EstimatedReward as r, RuleCondition as s, ConditionGroup as t, TokenAmountType as u, AttributionDefaults as v, TrackArrivalResult as x, AttributionParams as y };
344
- //# sourceMappingURL=merchantInformation-BSuahpjl.d.cts.map
357
+ //# sourceMappingURL=merchantInformation-BFdhF3De.d.ts.map
@@ -1,9 +1,8 @@
1
- import { d as InteractionTypeKey, f as Currency, h as Language, i as GetMerchantInformationReturnType, m as I18nConfig, p as FrakWalletSdkConfig, v as AttributionDefaults, y as AttributionParams } from "./merchantInformation--tLnowAN.js";
1
+ import { d as InteractionTypeKey, f as Currency, h as Language, i as GetMerchantInformationReturnType, m as I18nConfig, p as FrakWalletSdkConfig, v as AttributionDefaults, y as AttributionParams } from "./merchantInformation-BFdhF3De.js";
2
2
  import { LifecycleMessage, RpcClient } from "@frak-labs/frame-connector";
3
3
  import { OpenPanel } from "@openpanel/web";
4
4
  import { Address, Hex } from "viem";
5
5
  import { SiweMessage } from "viem/siwe";
6
-
7
6
  //#region src/types/resolvedConfig.d.ts
8
7
  /**
9
8
  * Response from the merchant resolve endpoint
@@ -22,7 +21,8 @@ type MerchantConfigResponse = {
22
21
  * @category Config
23
22
  */
24
23
  type ResolvedPlacement = {
25
- /** Per-component configuration within this placement */components?: {
24
+ /** Per-component configuration within this placement */
25
+ components?: {
26
26
  buttonShare?: {
27
27
  text?: string;
28
28
  noRewardText?: string;
@@ -44,7 +44,8 @@ type ResolvedPlacement = {
44
44
  referrerText?: string;
45
45
  referrerNoRewardText?: string;
46
46
  ctaText?: string;
47
- ctaNoRewardText?: string; /** Custom illustration URL replacing the built-in gift icon. */
47
+ ctaNoRewardText?: string;
48
+ /** Custom illustration URL replacing the built-in gift icon. */
48
49
  imageUrl?: string;
49
50
  css?: string;
50
51
  };
@@ -54,13 +55,16 @@ type ResolvedPlacement = {
54
55
  referralCta?: string;
55
56
  inappTitle?: string;
56
57
  inappDescription?: string;
57
- inappCta?: string; /** Custom illustration URL replacing the built-in gift icon. */
58
+ inappCta?: string;
59
+ /** Custom illustration URL replacing the built-in gift icon. */
58
60
  imageUrl?: string;
59
61
  css?: string;
60
62
  };
61
63
  };
62
- targetInteraction?: string; /** Already flattened: default + lang-specific merged into one record */
63
- translations?: Record<string, string>; /** Global placement CSS (applied to modals/listener) */
64
+ targetInteraction?: string;
65
+ /** Already flattened: default + lang-specific merged into one record */
66
+ translations?: Record<string, string>;
67
+ /** Global placement CSS (applied to modals/listener) */
64
68
  css?: string;
65
69
  };
66
70
  /**
@@ -73,11 +77,13 @@ type ResolvedSdkConfig = {
73
77
  logoUrl?: string;
74
78
  homepageLink?: string;
75
79
  currency?: Currency;
76
- lang?: Language; /** When true, all SDK components should be hidden */
80
+ lang?: Language;
81
+ /** When true, all SDK components should be hidden */
77
82
  hidden?: boolean;
78
83
  css?: string;
79
84
  translations?: Record<string, string>;
80
- placements?: Record<string, ResolvedPlacement>; /** Global component defaults (used when no placement override exists) */
85
+ placements?: Record<string, ResolvedPlacement>;
86
+ /** Global component defaults (used when no placement override exists) */
81
87
  components?: ResolvedPlacement["components"];
82
88
  /**
83
89
  * Default attribution params applied when building outbound sharing URLs.
@@ -93,21 +99,33 @@ type ResolvedSdkConfig = {
93
99
  * @category Config
94
100
  */
95
101
  type SdkResolvedConfig = {
96
- /** Whether the backend config has been resolved */isResolved: boolean; /** Merchant ID from resolution */
97
- merchantId: string; /** Domain returned by the resolve endpoint */
98
- domain?: string; /** Domains allowed for this merchant (used by iframe trust check) */
99
- allowedDomains?: string[]; /** Whether the resolve returned a backend sdkConfig object */
100
- hasRawSdkConfig?: boolean; /** Merged metadata fields */
102
+ /** Whether the backend config has been resolved */
103
+ isResolved: boolean;
104
+ /** Merchant ID from resolution */
105
+ merchantId: string;
106
+ /** Domain returned by the resolve endpoint */
107
+ domain?: string;
108
+ /** Domains allowed for this merchant (used by iframe trust check) */
109
+ allowedDomains?: string[];
110
+ /** Whether the resolve returned a backend sdkConfig object */
111
+ hasRawSdkConfig?: boolean;
112
+ /** Merged metadata fields */
101
113
  name?: string;
102
114
  logoUrl?: string;
103
115
  homepageLink?: string;
104
116
  lang?: Language;
105
- currency?: Currency; /** When true, all SDK components should be hidden */
106
- hidden?: boolean; /** Global CSS from backend config (passed to iframe) */
107
- css?: string; /** Global translations (for reference / component fallback) */
108
- translations?: Record<string, string>; /** Named placements (keyed by placement ID) */
109
- placements?: Record<string, ResolvedPlacement>; /** Global component defaults (fallback for placement-level overrides) */
110
- components?: ResolvedPlacement["components"]; /** Merged attribution defaults: backend > SDK static config */
117
+ currency?: Currency;
118
+ /** When true, all SDK components should be hidden */
119
+ hidden?: boolean;
120
+ /** Global CSS from backend config (passed to iframe) */
121
+ css?: string;
122
+ /** Global translations (for reference / component fallback) */
123
+ translations?: Record<string, string>;
124
+ /** Named placements (keyed by placement ID) */
125
+ placements?: Record<string, ResolvedPlacement>;
126
+ /** Global component defaults (fallback for placement-level overrides) */
127
+ components?: ResolvedPlacement["components"];
128
+ /** Merged attribution defaults: backend > SDK static config */
111
129
  attribution?: AttributionDefaults;
112
130
  };
113
131
  //#endregion
@@ -154,9 +172,12 @@ type DeepLinkFailedEvent = {
154
172
  type ResolvedConfigEvent = {
155
173
  clientLifecycle: "resolved-config";
156
174
  data: {
157
- merchantId: string; /** The domain the backend resolved this config for */
158
- domain: string; /** All domains registered for this merchant (for domain proof) */
159
- allowedDomains: string[]; /** Full URL of the parent page (for interaction tracking) */
175
+ merchantId: string;
176
+ /** The domain the backend resolved this config for */
177
+ domain: string;
178
+ /** All domains registered for this merchant (for domain proof) */
179
+ allowedDomains: string[];
180
+ /** Full URL of the parent page (for interaction tracking) */
160
181
  sourceUrl: string;
161
182
  /**
162
183
  * Pending merge token extracted from URL (?fmt= parameter).
@@ -471,7 +492,7 @@ type ModalStepTypes = LoginModalStepType | SiweAuthenticateModalStepType | SendT
471
492
  */
472
493
  type ModalRpcStepsResultType<T extends ModalStepTypes[] = ModalStepTypes[]> = { [K in T[number]["key"]]: Extract<T[number], {
473
494
  key: K;
474
- }>["returns"] };
495
+ }>["returns"]; };
475
496
  /**
476
497
  * Type for the RPC input of a modal
477
498
  * Just the `params` type of each `ModalStepTypes`
@@ -481,7 +502,7 @@ type ModalRpcStepsResultType<T extends ModalStepTypes[] = ModalStepTypes[]> = {
481
502
  */
482
503
  type ModalRpcStepsInput<T extends ModalStepTypes[] = ModalStepTypes[]> = { [K in T[number]["key"]]?: Extract<T[number], {
483
504
  key: K;
484
- }>["params"] };
505
+ }>["params"]; };
485
506
  /**
486
507
  * RPC metadata for the modal, used on top level modal configuration
487
508
  * @group Modal Display
@@ -758,14 +779,18 @@ type DisplayEmbeddedWalletResultType = {
758
779
  * @group RPC Schema
759
780
  */
760
781
  type SendInteractionParamsType = {
761
- type: "arrival"; /** Sharer wallet address. Accepted in both wallet-only legacy contexts and merchant-context (V2) contexts. */
782
+ type: "arrival";
783
+ /** Sharer wallet address. Accepted in both wallet-only legacy contexts and merchant-context (V2) contexts. */
762
784
  referrerWallet?: Address;
763
785
  referrerClientId?: string;
764
- referrerMerchantId?: string; /** Epoch seconds timestamp from the referral link creation */
786
+ referrerMerchantId?: string;
787
+ /** Epoch seconds timestamp from the referral link creation */
765
788
  referralTimestamp?: number;
766
789
  } | {
767
- type: "sharing"; /** Epoch seconds timestamp matching the V2 context `t` field embedded in the referral link URL, used for backend correlation */
768
- sharingTimestamp?: number; /** Merchant order ID linking this sharing event to a purchase (stays server-side, never in URL) */
790
+ type: "sharing";
791
+ /** Epoch seconds timestamp matching the V2 context `t` field embedded in the referral link URL, used for backend correlation */
792
+ sharingTimestamp?: number;
793
+ /** Merchant order ID linking this sharing event to a purchase (stays server-side, never in URL) */
769
794
  purchaseId?: string;
770
795
  } | {
771
796
  type: "custom";
@@ -1021,7 +1046,8 @@ type FrakClient = {
1021
1046
  * @ignore
1022
1047
  */
1023
1048
  type FrakContextV1 = {
1024
- /** Referrer wallet address */r: Address;
1049
+ /** Referrer wallet address */
1050
+ r: Address;
1025
1051
  };
1026
1052
  /**
1027
1053
  * V2 Frak Context — anonymous-first referral context with optional wallet.
@@ -1039,10 +1065,15 @@ type FrakContextV1 = {
1039
1065
  * @ignore
1040
1066
  */
1041
1067
  type FrakContextV2 = {
1042
- /** Version discriminator */v: 2; /** Merchant ID (UUID) */
1043
- m: string; /** Link creation timestamp (epoch seconds) */
1044
- t: number; /** Sharer's anonymous clientId (UUID from localStorage). Optional when `w` is provided. */
1045
- c?: string; /** Sharer's wallet address. Preferred source of truth when the sharer is authenticated. Optional when `c` is provided. */
1068
+ /** Version discriminator */
1069
+ v: 2;
1070
+ /** Merchant ID (UUID) */
1071
+ m: string;
1072
+ /** Link creation timestamp (epoch seconds) */
1073
+ t: number;
1074
+ /** Sharer's anonymous clientId (UUID from localStorage). Optional when `w` is provided. */
1075
+ c?: string;
1076
+ /** Sharer's wallet address. Preferred source of truth when the sharer is authenticated. Optional when `c` is provided. */
1046
1077
  w?: Address;
1047
1078
  };
1048
1079
  /**
@@ -1114,4 +1145,4 @@ declare const ssoPopupName = "frak-sso";
1114
1145
  declare function openSso(client: FrakClient, inputArgs: OpenSsoParamsType): Promise<OpenSsoReturnType>;
1115
1146
  //#endregion
1116
1147
  export { SendTransactionTxType as A, FinalActionType as B, DisplayModalParamsType as C, ModalStepTypes as D, ModalRpcStepsResultType as E, OpenSsoParamsType as F, MerchantConfigResponse as G, ModalStepMetadata as H, OpenSsoReturnType as I, SdkResolvedConfig as J, ResolvedPlacement as K, PrepareSsoParamsType as L, SiweAuthenticateReturnType as M, SiweAuthenticationParams as N, SendTransactionModalStepType as O, LoginModalStepType as P, PrepareSsoReturnType as R, SharingPageProduct as S, ModalRpcStepsInput as T, IFrameLifecycleEvent as U, FinalModalStepType as V, ClientLifecycleEvent as W, EmbeddedViewActionReferred as _, FrakContextV1 as a, DisplaySharingPageParamsType as b, FrakLifecycleEvent as c, WalletStatusReturnType as d, UserReferralStatusType as f, LoggedOutEmbeddedView as g, DisplayEmbeddedWalletResultType as h, FrakContext as i, SiweAuthenticateModalStepType as j, SendTransactionReturnType as k, IFrameTransport as l, DisplayEmbeddedWalletParamsType as m, ssoPopupFeatures as n, FrakContextV2 as o, SendInteractionParamsType as p, ResolvedSdkConfig as q, ssoPopupName as r, FrakClient as s, openSso as t, IFrameRpcSchema as u, EmbeddedViewActionSharing as v, ModalRpcMetadata as w, DisplaySharingPageResultType as x, LoggedInEmbeddedView as y, SsoMetadata as z };
1117
- //# sourceMappingURL=openSso-CjZ8lAEA.d.ts.map
1148
+ //# sourceMappingURL=openSso-DYe9Eyet.d.ts.map