@tinkerlandai/longplay-sdk 0.10.58 → 0.10.60
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/CHANGELOG.md +8 -0
- package/README.md +2 -1
- package/README.zh-CN.md +2 -1
- package/dist/{ai-usage-DBcYB8ix.d.ts → ai-usage-DM3jAubK.d.ts} +1 -1
- package/dist/{api-1Tplv-7M.d.ts → api-KIp0I50M.d.ts} +21 -21
- package/dist/check-response-K56UEZ6E.js +1 -0
- package/dist/{chunk-ZG3EYP5L.js → chunk-2KM537QH.js} +1 -1
- package/dist/{chunk-GCTD4RXV.js → chunk-2RFI2DEV.js} +1 -1
- package/dist/{chunk-KXA4JHFW.js → chunk-32AEJKJW.js} +1 -1
- package/dist/{chunk-XQAGF6SQ.js → chunk-45PGU2HW.js} +1 -1
- package/dist/{chunk-P2JQEGYV.js → chunk-4OODZM64.js} +1 -1
- package/dist/{chunk-YJ2IOBHW.js → chunk-4SI4SQ3C.js} +1 -1
- package/dist/{chunk-4VZCPOVE.js → chunk-5LNX7MHO.js} +1 -1
- package/dist/chunk-5MRSFLQA.js +1 -0
- package/dist/{chunk-AIRW6CZ7.js → chunk-5QVMWM2X.js} +1 -1
- package/dist/chunk-6TETQL5Z.js +1 -0
- package/dist/{chunk-LDNDI6G3.js → chunk-77O2O552.js} +1 -1
- package/dist/{chunk-4UOJT46E.js → chunk-7GIP3RNR.js} +1 -1
- package/dist/{chunk-RXEYS3X5.js → chunk-7STWC4L4.js} +1 -1
- package/dist/{chunk-EHYW66EH.js → chunk-BJW4AXFL.js} +1 -1
- package/dist/{chunk-227Z7LU4.js → chunk-C3HZCZVJ.js} +1 -1
- package/dist/{chunk-YIHMOK6T.js → chunk-DBYRJ4QV.js} +1 -1
- package/dist/{chunk-NQZ23AGQ.js → chunk-EB7MIZ4T.js} +1 -1
- package/dist/{chunk-G2JC7G3R.js → chunk-EE6QNOCL.js} +1 -1
- package/dist/{chunk-PZTFSADV.js → chunk-EKUDMQXT.js} +1 -1
- package/dist/{chunk-T7AK4QLG.js → chunk-FQMZY5VP.js} +1 -1
- package/dist/{chunk-6VWVBQFR.js → chunk-HUYKZH3H.js} +1 -1
- package/dist/{chunk-EP2L4VTS.js → chunk-IM5OXTEH.js} +1 -1
- package/dist/{chunk-4BHGHPI5.js → chunk-J4JJZN24.js} +1 -1
- package/dist/{chunk-GIX2F53I.js → chunk-JBSJ3JU2.js} +1 -1
- package/dist/{chunk-6HNCADWS.js → chunk-JEDRJAJ5.js} +1 -1
- package/dist/chunk-KBST6VBH.js +1 -0
- package/dist/{chunk-2PY7INHO.js → chunk-KTWKDR5L.js} +1 -1
- package/dist/{chunk-46MFVWRW.js → chunk-MB2U2GWJ.js} +1 -1
- package/dist/{chunk-NFZUVZJP.js → chunk-NAFHQVSX.js} +1 -1
- package/dist/{chunk-NPKNI2UD.js → chunk-NDNHTG5B.js} +1 -1
- package/dist/{chunk-XQJW2RXY.js → chunk-PGLBFTRK.js} +1 -1
- package/dist/{chunk-D26ZQC46.js → chunk-PJHTN5NJ.js} +1 -1
- package/dist/chunk-QJPH7AFI.js +1 -0
- package/dist/chunk-QXDLOPZK.js +1 -0
- package/dist/{chunk-PYTI77BV.js → chunk-R4CYPCBI.js} +1 -1
- package/dist/{chunk-LB2ZRTRA.js → chunk-RIEWU4MN.js} +1 -1
- package/dist/{chunk-GLVCBJL5.js → chunk-RUGB7NAN.js} +1 -1
- package/dist/chunk-S24PK62Y.js +1 -0
- package/dist/chunk-S3QZOIUO.js +1 -0
- package/dist/{chunk-IJQFSZQG.js → chunk-S55446VK.js} +1 -1
- package/dist/{chunk-QA3LXFSK.js → chunk-S5RM3VO6.js} +1 -1
- package/dist/chunk-TBXHEGSY.js +1 -0
- package/dist/{chunk-Y2DUFDPV.js → chunk-TK3WOD2O.js} +1 -1
- package/dist/{chunk-WILVPHE6.js → chunk-UM5R4RNN.js} +2 -2
- package/dist/{chunk-RSKDG2VD.js → chunk-VNYUL3PV.js} +1 -1
- package/dist/{chunk-LTWU7HH5.js → chunk-VXDVMAS6.js} +1 -1
- package/dist/{chunk-XBF44N3Z.js → chunk-XCFAKO23.js} +1 -1
- package/dist/{chunk-RB2SBQMM.js → chunk-XZLGDFZ4.js} +1 -1
- package/dist/{chunk-XH2JMWC6.js → chunk-ZCJEXNJD.js} +1 -1
- package/dist/{chunk-NTYIQ5YC.js → chunk-ZRGL2CAP.js} +1 -1
- package/dist/{configuration-sync-DeWWW5za.d.ts → configuration-sync-Dad8B5Pv.d.ts} +3 -3
- package/dist/content-IFXC4OBS.js +1 -0
- package/dist/funnel-host-purchase-NS7FJH2F.js +1 -0
- package/dist/funnel-host-recovery-paywall-R4QGRGIJ.js +1 -0
- package/dist/{funnel-local-client-Fxsyl7rh.d.ts → funnel-local-client-Cb9jJGpo.d.ts} +53 -53
- package/dist/funnel-paywall-copies-U3JIYQJ5.js +1 -0
- package/dist/funnel-paywall-prerender-5NVQIQIV.js +1 -0
- package/dist/{funnel-process-client-D9saqPse.d.ts → funnel-process-client-DE650LzB.d.ts} +28 -28
- package/dist/funnel-route-prediction-XYWNKGQZ.js +1 -0
- package/dist/funnel-route-source-4ZVBFNYV.js +1 -0
- package/dist/funnel-runtime-host-6VL6UAF5.js +1 -0
- package/dist/index.d.ts +805 -13
- package/dist/index.js +1 -1
- package/dist/merchant-bridge-contracts-IZ7ARRRO.js +1 -0
- package/dist/native-shell.js +1 -1
- package/dist/openrouter.d.ts +3 -3
- package/dist/openrouter.js +1 -1
- package/dist/operation-contracts-6RQ33K66.js +1 -0
- package/dist/page.d.ts +2 -2
- package/dist/page.js +1 -1
- package/dist/paywall-47DXK7WR.js +1 -0
- package/dist/paywall-content-MNMF4QKA.js +1 -0
- package/dist/paywall-session-APGD7FZ5.js +1 -0
- package/dist/popup.d.ts +23 -3
- package/dist/popup.js +1 -1
- package/dist/{presentation-loading-CjljfuJq.d.ts → presentation-loading-B8W6a9WB.d.ts} +10 -46
- package/dist/react-native.d.ts +7 -7
- package/dist/react-native.js +1 -1
- package/dist/screen-renderer-3YO6EUWD.js +1 -0
- package/dist/server.d.ts +10 -10
- package/dist/server.js +1 -1
- package/dist/visual.js +1 -1
- package/package.json +1 -1
- package/dist/check-response-EYOK5EU5.js +0 -1
- package/dist/chunk-6PVQF4FJ.js +0 -1
- package/dist/chunk-6UQ7BKSR.js +0 -1
- package/dist/chunk-F4E42S54.js +0 -1
- package/dist/chunk-HIH6IEV7.js +0 -1
- package/dist/chunk-QY5TS3OY.js +0 -1
- package/dist/chunk-UB5SVEM6.js +0 -1
- package/dist/chunk-XFOU4DZG.js +0 -1
- package/dist/content-2SRJS3E3.js +0 -1
- package/dist/funnel-host-purchase-PBCM5VL5.js +0 -1
- package/dist/funnel-host-recovery-paywall-7Z4VOQCV.js +0 -1
- package/dist/funnel-paywall-prerender-4J5EFPFQ.js +0 -1
- package/dist/funnel-route-prediction-4CW6WOJY.js +0 -1
- package/dist/funnel-route-source-UM5O7FJS.js +0 -1
- package/dist/funnel-runtime-host-F6B7XCVB.js +0 -1
- package/dist/merchant-bridge-contracts-YVMAYBE2.js +0 -1
- package/dist/operation-contracts-WX2HYHD5.js +0 -1
- package/dist/paywall-PWWDHKVH.js +0 -1
- package/dist/paywall-content-DSZJWOTF.js +0 -1
- package/dist/paywall-session-OOXP3SRE.js +0 -1
- package/dist/screen-renderer-WZFPWLB5.js +0 -1
- package/dist/{chunk-COMZFFUA.js → chunk-PZTWDJHN.js} +0 -0
- package/dist/{chunk-WILVPHE6.js.LEGAL.txt → chunk-UM5R4RNN.js.LEGAL.txt} +0 -0
- package/dist/{funnel-node-evaluation-CRRTh1je.d.ts → funnel-node-evaluation-COIh1hKs.d.ts} +3 -3
- package/dist/{screen-D2bUmJ4M.d.ts → screen-Pv_pViF6.d.ts} +21 -21
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { S as ScreenAnswers, P as PresentationLoadingOptions, s as screenInputBindingsSchema, a as SurfaceData, b as PaywallLoadingDocument, C as CustomerDataIntent, c as createPresentationLoading, R as RetainedPurchaseDialog } from './presentation-loading-
|
|
3
|
-
export { d as PresentationState } from './presentation-loading-
|
|
2
|
+
import { S as ScreenAnswers, P as PresentationLoadingOptions, s as screenInputBindingsSchema, a as SurfaceData, b as PaywallLoadingDocument, C as CustomerDataIntent, c as createPresentationLoading, R as RetainedPurchaseDialog } from './presentation-loading-B8W6a9WB.js';
|
|
3
|
+
export { d as PresentationState } from './presentation-loading-B8W6a9WB.js';
|
|
4
4
|
import { J as JsonValue } from './growth-rules-B4YYy64R.js';
|
|
5
|
-
import { S as StackNode, a as ScreenSelection } from './screen-
|
|
5
|
+
import { S as StackNode, a as ScreenSelection } from './screen-Pv_pViF6.js';
|
|
6
6
|
import { C as CouponInput, O as Offer } from './coupon-kfkIVf9n.js';
|
|
7
7
|
export { a as OfferUnavailableReason } from './coupon-kfkIVf9n.js';
|
|
8
|
-
import { P as PaywallSession, a as PaywallOperation, b as PaywallResolution, c as PaywallSubscriptionChange, F as FunnelCommandStorage, s as scopeSchema, d as FunnelStartInput, I as IndianaOptions, S as SessionCredentials, e as FunnelExecutionPolicy, f as PaywallRecovery, g as PaywallQuote, h as FunnelRunController, i as FunnelRunView, j as IamFunnelEntryDelivery, k as FunnelProcessRunView, l as createPaywallSession$1 } from './funnel-local-client-
|
|
9
|
-
export { C as CustomerSession, m as FeatureClient, n as FeatureClientOptions, o as FunnelControllerResponse, p as FunnelPendingEntry, q as FunnelPurchaseRecovery, r as FunnelRuntimeResponse, t as FunnelSegmentPrediction, L as LocalFunnelClient, u as LocalFunnelClientOptions, v as LongplayError, w as PaywallPurchaseInput, x as PaywallStartInput, y as PushHost, z as PushJournal, A as createFeatureClient, B as createFunnelRunController, D as createLocalFunnelClient, E as getPaywallRecovery, G as isPaywallOperationComplete, H as isPaywallOperationPending, J as isPaywallUpdateOperation, K as isPaywallUpdateQuote, M as preparePaywallFallback } from './funnel-local-client-
|
|
10
|
-
import { E as EntitlementCheckResult, M as MerchantBridgeManifest } from './funnel-node-evaluation-
|
|
11
|
-
export { a as EntitlementCheckInput, b as EntitlementCheckObservation, c as EntitlementRequirement, F as FunnelNodeEvaluationContext, e as evaluateFunnelNode } from './funnel-node-evaluation-
|
|
12
|
-
import { C as ConfigurationSync } from './configuration-sync-
|
|
13
|
-
export { a as ConfigurationStorage, b as ConfigurationSyncOptions, c as createConfigurationSync } from './configuration-sync-
|
|
14
|
-
import { c as createFunnelProcess } from './funnel-process-client-
|
|
15
|
-
export { F as FunnelProcessAdapter, a as FunnelProcessOptions, b as FunnelResourceSource, I as LongplayFeatureOptions, d as createFunnelClient, e as createLongplay } from './funnel-process-client-
|
|
16
|
-
import './api-
|
|
8
|
+
import { P as PaywallSession, a as PaywallOperation, b as PaywallResolution, c as PaywallSubscriptionChange, F as FunnelCommandStorage, s as scopeSchema, d as FunnelStartInput, I as IndianaOptions, S as SessionCredentials, e as FunnelExecutionPolicy, f as PaywallRecovery, g as PaywallQuote, h as FunnelRunController, i as FunnelRunView, j as IamFunnelEntryDelivery, k as FunnelProcessRunView, l as createPaywallSession$1 } from './funnel-local-client-Cb9jJGpo.js';
|
|
9
|
+
export { C as CustomerSession, m as FeatureClient, n as FeatureClientOptions, o as FunnelControllerResponse, p as FunnelPendingEntry, q as FunnelPurchaseRecovery, r as FunnelRuntimeResponse, t as FunnelSegmentPrediction, L as LocalFunnelClient, u as LocalFunnelClientOptions, v as LongplayError, w as PaywallPurchaseInput, x as PaywallStartInput, y as PushHost, z as PushJournal, A as createFeatureClient, B as createFunnelRunController, D as createLocalFunnelClient, E as getPaywallRecovery, G as isPaywallOperationComplete, H as isPaywallOperationPending, J as isPaywallUpdateOperation, K as isPaywallUpdateQuote, M as preparePaywallFallback } from './funnel-local-client-Cb9jJGpo.js';
|
|
10
|
+
import { E as EntitlementCheckResult, M as MerchantBridgeManifest } from './funnel-node-evaluation-COIh1hKs.js';
|
|
11
|
+
export { a as EntitlementCheckInput, b as EntitlementCheckObservation, c as EntitlementRequirement, F as FunnelNodeEvaluationContext, e as evaluateFunnelNode } from './funnel-node-evaluation-COIh1hKs.js';
|
|
12
|
+
import { C as ConfigurationSync } from './configuration-sync-Dad8B5Pv.js';
|
|
13
|
+
export { a as ConfigurationStorage, b as ConfigurationSyncOptions, c as createConfigurationSync } from './configuration-sync-Dad8B5Pv.js';
|
|
14
|
+
import { c as createFunnelProcess } from './funnel-process-client-DE650LzB.js';
|
|
15
|
+
export { F as FunnelProcessAdapter, a as FunnelProcessOptions, b as FunnelResourceSource, I as LongplayFeatureOptions, d as createFunnelClient, e as createLongplay } from './funnel-process-client-DE650LzB.js';
|
|
16
|
+
import './api-KIp0I50M.js';
|
|
17
17
|
import 'zod/v4';
|
|
18
18
|
|
|
19
19
|
/** Opt-in geometry; documents without responsive fields retain their host's legacy sizing. */
|
|
@@ -1667,6 +1667,786 @@ declare function createBrowserFunnelPurchaseStorage(input: {
|
|
|
1667
1667
|
locks?: FunnelStorageLocks;
|
|
1668
1668
|
}): FunnelPurchaseStorage;
|
|
1669
1669
|
|
|
1670
|
+
declare const copySchema: z.ZodObject<{
|
|
1671
|
+
savedAt: z.ZodNumber;
|
|
1672
|
+
funnelId: z.ZodString;
|
|
1673
|
+
context: z.ZodObject<{
|
|
1674
|
+
commerce: z.ZodObject<{
|
|
1675
|
+
provider: z.ZodString;
|
|
1676
|
+
currency: z.ZodString;
|
|
1677
|
+
intent: z.ZodOptional<z.ZodLiteral<"subscription_change">>;
|
|
1678
|
+
}, z.core.$strict>;
|
|
1679
|
+
locale: z.ZodString;
|
|
1680
|
+
}, z.core.$strict>;
|
|
1681
|
+
resolution: z.ZodObject<{
|
|
1682
|
+
id: z.ZodUUID;
|
|
1683
|
+
paywallId: z.ZodUUID;
|
|
1684
|
+
version: z.ZodNumber;
|
|
1685
|
+
document: z.ZodObject<{
|
|
1686
|
+
name: z.ZodString;
|
|
1687
|
+
kind: z.ZodLiteral<"paywall">;
|
|
1688
|
+
presentation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1689
|
+
desktopWidth: z.ZodOptional<z.ZodObject<{
|
|
1690
|
+
min: z.ZodNumber;
|
|
1691
|
+
max: z.ZodNumber;
|
|
1692
|
+
viewport: z.ZodNumber;
|
|
1693
|
+
}, z.core.$strict>>;
|
|
1694
|
+
mobile: z.ZodOptional<z.ZodEnum<{
|
|
1695
|
+
sheet: "sheet";
|
|
1696
|
+
fullscreen: "fullscreen";
|
|
1697
|
+
}>>;
|
|
1698
|
+
backdrop: z.ZodOptional<z.ZodEnum<{
|
|
1699
|
+
none: "none";
|
|
1700
|
+
scrim: "scrim";
|
|
1701
|
+
dim: "dim";
|
|
1702
|
+
"strong-dim": "strong-dim";
|
|
1703
|
+
blur: "blur";
|
|
1704
|
+
}>>;
|
|
1705
|
+
type: z.ZodLiteral<"modal">;
|
|
1706
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
1707
|
+
center: "center";
|
|
1708
|
+
top: "top";
|
|
1709
|
+
bottom: "bottom";
|
|
1710
|
+
}>>;
|
|
1711
|
+
size: z.ZodEnum<{
|
|
1712
|
+
sm: "sm";
|
|
1713
|
+
md: "md";
|
|
1714
|
+
lg: "lg";
|
|
1715
|
+
}>;
|
|
1716
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1717
|
+
desktopWidth: z.ZodOptional<z.ZodObject<{
|
|
1718
|
+
min: z.ZodNumber;
|
|
1719
|
+
max: z.ZodNumber;
|
|
1720
|
+
viewport: z.ZodNumber;
|
|
1721
|
+
}, z.core.$strict>>;
|
|
1722
|
+
mobile: z.ZodOptional<z.ZodEnum<{
|
|
1723
|
+
sheet: "sheet";
|
|
1724
|
+
fullscreen: "fullscreen";
|
|
1725
|
+
}>>;
|
|
1726
|
+
backdrop: z.ZodOptional<z.ZodEnum<{
|
|
1727
|
+
none: "none";
|
|
1728
|
+
scrim: "scrim";
|
|
1729
|
+
dim: "dim";
|
|
1730
|
+
"strong-dim": "strong-dim";
|
|
1731
|
+
blur: "blur";
|
|
1732
|
+
}>>;
|
|
1733
|
+
type: z.ZodLiteral<"sheet">;
|
|
1734
|
+
size: z.ZodEnum<{
|
|
1735
|
+
sm: "sm";
|
|
1736
|
+
md: "md";
|
|
1737
|
+
lg: "lg";
|
|
1738
|
+
}>;
|
|
1739
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1740
|
+
type: z.ZodLiteral<"fullscreen">;
|
|
1741
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1742
|
+
type: z.ZodLiteral<"inline">;
|
|
1743
|
+
}, z.core.$strict>], "type">;
|
|
1744
|
+
screen: z.ZodObject<{
|
|
1745
|
+
kind: z.ZodLiteral<"screen">;
|
|
1746
|
+
schemaVersion: z.ZodLiteral<4>;
|
|
1747
|
+
name: z.ZodString;
|
|
1748
|
+
surface: z.ZodEnum<{
|
|
1749
|
+
popup: "popup";
|
|
1750
|
+
paywall: "paywall";
|
|
1751
|
+
onboarding: "onboarding";
|
|
1752
|
+
page: "page";
|
|
1753
|
+
banner: "banner";
|
|
1754
|
+
}>;
|
|
1755
|
+
initialPageId: z.ZodOptional<z.ZodString>;
|
|
1756
|
+
presentation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1757
|
+
desktopWidth: z.ZodOptional<z.ZodObject<{
|
|
1758
|
+
min: z.ZodNumber;
|
|
1759
|
+
max: z.ZodNumber;
|
|
1760
|
+
viewport: z.ZodNumber;
|
|
1761
|
+
}, z.core.$strict>>;
|
|
1762
|
+
mobile: z.ZodOptional<z.ZodEnum<{
|
|
1763
|
+
sheet: "sheet";
|
|
1764
|
+
fullscreen: "fullscreen";
|
|
1765
|
+
}>>;
|
|
1766
|
+
backdrop: z.ZodOptional<z.ZodEnum<{
|
|
1767
|
+
none: "none";
|
|
1768
|
+
scrim: "scrim";
|
|
1769
|
+
dim: "dim";
|
|
1770
|
+
"strong-dim": "strong-dim";
|
|
1771
|
+
blur: "blur";
|
|
1772
|
+
}>>;
|
|
1773
|
+
type: z.ZodLiteral<"modal">;
|
|
1774
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
1775
|
+
center: "center";
|
|
1776
|
+
top: "top";
|
|
1777
|
+
bottom: "bottom";
|
|
1778
|
+
}>>;
|
|
1779
|
+
size: z.ZodEnum<{
|
|
1780
|
+
sm: "sm";
|
|
1781
|
+
md: "md";
|
|
1782
|
+
lg: "lg";
|
|
1783
|
+
}>;
|
|
1784
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1785
|
+
desktopWidth: z.ZodOptional<z.ZodObject<{
|
|
1786
|
+
min: z.ZodNumber;
|
|
1787
|
+
max: z.ZodNumber;
|
|
1788
|
+
viewport: z.ZodNumber;
|
|
1789
|
+
}, z.core.$strict>>;
|
|
1790
|
+
mobile: z.ZodOptional<z.ZodEnum<{
|
|
1791
|
+
sheet: "sheet";
|
|
1792
|
+
fullscreen: "fullscreen";
|
|
1793
|
+
}>>;
|
|
1794
|
+
backdrop: z.ZodOptional<z.ZodEnum<{
|
|
1795
|
+
none: "none";
|
|
1796
|
+
scrim: "scrim";
|
|
1797
|
+
dim: "dim";
|
|
1798
|
+
"strong-dim": "strong-dim";
|
|
1799
|
+
blur: "blur";
|
|
1800
|
+
}>>;
|
|
1801
|
+
type: z.ZodLiteral<"sheet">;
|
|
1802
|
+
size: z.ZodEnum<{
|
|
1803
|
+
sm: "sm";
|
|
1804
|
+
md: "md";
|
|
1805
|
+
lg: "lg";
|
|
1806
|
+
}>;
|
|
1807
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1808
|
+
type: z.ZodLiteral<"fullscreen">;
|
|
1809
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1810
|
+
type: z.ZodLiteral<"inline">;
|
|
1811
|
+
}, z.core.$strict>], "type">;
|
|
1812
|
+
theme: z.ZodObject<{
|
|
1813
|
+
primary: z.ZodString;
|
|
1814
|
+
background: z.ZodString;
|
|
1815
|
+
text: z.ZodString;
|
|
1816
|
+
radius: z.ZodEnum<{
|
|
1817
|
+
sm: "sm";
|
|
1818
|
+
md: "md";
|
|
1819
|
+
lg: "lg";
|
|
1820
|
+
none: "none";
|
|
1821
|
+
full: "full";
|
|
1822
|
+
}>;
|
|
1823
|
+
font: z.ZodEnum<{
|
|
1824
|
+
system: "system";
|
|
1825
|
+
serif: "serif";
|
|
1826
|
+
rounded: "rounded";
|
|
1827
|
+
mono: "mono";
|
|
1828
|
+
}>;
|
|
1829
|
+
fontAssets: z.ZodOptional<z.ZodObject<{
|
|
1830
|
+
family: z.ZodString;
|
|
1831
|
+
faces: z.ZodArray<z.ZodObject<{
|
|
1832
|
+
url: z.ZodString;
|
|
1833
|
+
weight: z.ZodNumber;
|
|
1834
|
+
family: z.ZodOptional<z.ZodString>;
|
|
1835
|
+
}, z.core.$strict>>;
|
|
1836
|
+
}, z.core.$strict>>;
|
|
1837
|
+
}, z.core.$strict>;
|
|
1838
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
1839
|
+
id: z.ZodString;
|
|
1840
|
+
name: z.ZodString;
|
|
1841
|
+
root: z.ZodType<StackNode, unknown, z.core.$ZodTypeInternals<StackNode, unknown>>;
|
|
1842
|
+
theme: z.ZodOptional<z.ZodObject<{
|
|
1843
|
+
primary: z.ZodString;
|
|
1844
|
+
background: z.ZodString;
|
|
1845
|
+
text: z.ZodString;
|
|
1846
|
+
radius: z.ZodEnum<{
|
|
1847
|
+
sm: "sm";
|
|
1848
|
+
md: "md";
|
|
1849
|
+
lg: "lg";
|
|
1850
|
+
none: "none";
|
|
1851
|
+
full: "full";
|
|
1852
|
+
}>;
|
|
1853
|
+
font: z.ZodEnum<{
|
|
1854
|
+
system: "system";
|
|
1855
|
+
serif: "serif";
|
|
1856
|
+
rounded: "rounded";
|
|
1857
|
+
mono: "mono";
|
|
1858
|
+
}>;
|
|
1859
|
+
fontAssets: z.ZodOptional<z.ZodObject<{
|
|
1860
|
+
family: z.ZodString;
|
|
1861
|
+
faces: z.ZodArray<z.ZodObject<{
|
|
1862
|
+
url: z.ZodString;
|
|
1863
|
+
weight: z.ZodNumber;
|
|
1864
|
+
family: z.ZodOptional<z.ZodString>;
|
|
1865
|
+
}, z.core.$strict>>;
|
|
1866
|
+
}, z.core.$strict>>;
|
|
1867
|
+
}, z.core.$strict>>;
|
|
1868
|
+
editorPosition: z.ZodOptional<z.ZodObject<{
|
|
1869
|
+
x: z.ZodNumber;
|
|
1870
|
+
y: z.ZodNumber;
|
|
1871
|
+
}, z.core.$strict>>;
|
|
1872
|
+
}, z.core.$strict>>;
|
|
1873
|
+
strings: z.ZodObject<{
|
|
1874
|
+
defaultLocale: z.ZodString;
|
|
1875
|
+
locales: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1876
|
+
}, z.core.$strict>;
|
|
1877
|
+
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1878
|
+
type: z.ZodLiteral<"navigate">;
|
|
1879
|
+
close: z.ZodLiteral<false>;
|
|
1880
|
+
pageId: z.ZodString;
|
|
1881
|
+
id: z.ZodString;
|
|
1882
|
+
event: z.ZodString;
|
|
1883
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
1884
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1885
|
+
type: z.ZodLiteral<"event">;
|
|
1886
|
+
close: z.ZodBoolean;
|
|
1887
|
+
id: z.ZodString;
|
|
1888
|
+
event: z.ZodString;
|
|
1889
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
1890
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1891
|
+
type: z.ZodLiteral<"close">;
|
|
1892
|
+
close: z.ZodLiteral<true>;
|
|
1893
|
+
id: z.ZodString;
|
|
1894
|
+
event: z.ZodString;
|
|
1895
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
1896
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1897
|
+
type: z.ZodLiteral<"open_url">;
|
|
1898
|
+
close: z.ZodBoolean;
|
|
1899
|
+
url: z.ZodString;
|
|
1900
|
+
id: z.ZodString;
|
|
1901
|
+
event: z.ZodString;
|
|
1902
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
1903
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1904
|
+
type: z.ZodLiteral<"claim_offer">;
|
|
1905
|
+
close: z.ZodBoolean;
|
|
1906
|
+
couponId: z.ZodUUID;
|
|
1907
|
+
id: z.ZodString;
|
|
1908
|
+
event: z.ZodString;
|
|
1909
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
1910
|
+
}, z.core.$strict>], "type">>;
|
|
1911
|
+
}, z.core.$strict>;
|
|
1912
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
1913
|
+
products: z.ZodObject<{
|
|
1914
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1915
|
+
productVersionId: z.ZodString;
|
|
1916
|
+
label: z.ZodString;
|
|
1917
|
+
}, z.core.$strict>>;
|
|
1918
|
+
defaultProductVersionId: z.ZodNullable<z.ZodString>;
|
|
1919
|
+
grouping: z.ZodOptional<z.ZodObject<{
|
|
1920
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
1921
|
+
id: z.ZodString;
|
|
1922
|
+
name: z.ZodString;
|
|
1923
|
+
}, z.core.$strict>>;
|
|
1924
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
1925
|
+
productVersionId: z.ZodString;
|
|
1926
|
+
tierId: z.ZodString;
|
|
1927
|
+
period: z.ZodEnum<{
|
|
1928
|
+
month: "month";
|
|
1929
|
+
year: "year";
|
|
1930
|
+
}>;
|
|
1931
|
+
}, z.core.$strict>>;
|
|
1932
|
+
}, z.core.$strict>>;
|
|
1933
|
+
}, z.core.$strict>;
|
|
1934
|
+
offeringVersionId: z.ZodNullable<z.ZodUUID>;
|
|
1935
|
+
buttons: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1936
|
+
type: z.ZodLiteral<"checkout">;
|
|
1937
|
+
product: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1938
|
+
type: z.ZodLiteral<"fixed">;
|
|
1939
|
+
productVersionId: z.ZodString;
|
|
1940
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1941
|
+
type: z.ZodLiteral<"picker">;
|
|
1942
|
+
pickerId: z.ZodString;
|
|
1943
|
+
allowedProductVersionIds: z.ZodArray<z.ZodString>;
|
|
1944
|
+
}, z.core.$strict>], "type">;
|
|
1945
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1946
|
+
type: z.ZodLiteral<"close">;
|
|
1947
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1948
|
+
type: z.ZodLiteral<"action">;
|
|
1949
|
+
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1950
|
+
type: z.ZodLiteral<"event">;
|
|
1951
|
+
event: z.ZodString;
|
|
1952
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1953
|
+
type: z.ZodLiteral<"open_url">;
|
|
1954
|
+
url: z.ZodURL;
|
|
1955
|
+
}, z.core.$strict>], "type">;
|
|
1956
|
+
}, z.core.$strict>], "type">>;
|
|
1957
|
+
}, z.core.$strict>;
|
|
1958
|
+
offering: z.ZodObject<{
|
|
1959
|
+
id: z.ZodUUID;
|
|
1960
|
+
}, z.core.$strict>;
|
|
1961
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
1962
|
+
environmentId: z.ZodUUID;
|
|
1963
|
+
offeringVersionId: z.ZodUUID;
|
|
1964
|
+
artifact: z.ZodObject<{
|
|
1965
|
+
kind: z.ZodEnum<{
|
|
1966
|
+
paywall: "paywall";
|
|
1967
|
+
funnel: "funnel";
|
|
1968
|
+
gb_features: "gb_features";
|
|
1969
|
+
gb_page_experiments: "gb_page_experiments";
|
|
1970
|
+
}>;
|
|
1971
|
+
formatVersion: z.ZodNumber;
|
|
1972
|
+
url: z.ZodString;
|
|
1973
|
+
sha256: z.ZodString;
|
|
1974
|
+
byteLength: z.ZodNumber;
|
|
1975
|
+
generation: z.ZodOptional<z.ZodString>;
|
|
1976
|
+
}, z.core.$strict>;
|
|
1977
|
+
}, z.core.$strict>>;
|
|
1978
|
+
capabilities: z.ZodObject<{
|
|
1979
|
+
paywall: z.ZodOptional<z.ZodObject<{
|
|
1980
|
+
internal_feature_id: z.ZodString;
|
|
1981
|
+
name: z.ZodString;
|
|
1982
|
+
kind: z.ZodEnum<{
|
|
1983
|
+
access: "access";
|
|
1984
|
+
metered: "metered";
|
|
1985
|
+
credit: "credit";
|
|
1986
|
+
}>;
|
|
1987
|
+
quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1988
|
+
allowed: z.ZodBoolean;
|
|
1989
|
+
observation: z.ZodOptional<z.ZodObject<{
|
|
1990
|
+
subject: z.ZodObject<{
|
|
1991
|
+
scope: z.ZodObject<{
|
|
1992
|
+
projectId: z.ZodUUID;
|
|
1993
|
+
environmentId: z.ZodUUID;
|
|
1994
|
+
environment: z.ZodEnum<{
|
|
1995
|
+
sandbox: "sandbox";
|
|
1996
|
+
live: "live";
|
|
1997
|
+
}>;
|
|
1998
|
+
}, z.core.$strict>;
|
|
1999
|
+
customerId: z.ZodUUID;
|
|
2000
|
+
}, z.core.$strict>;
|
|
2001
|
+
authority: z.ZodEnum<{
|
|
2002
|
+
longplay: "longplay";
|
|
2003
|
+
merchant: "merchant";
|
|
2004
|
+
}>;
|
|
2005
|
+
observedAt: z.ZodISODateTime;
|
|
2006
|
+
sourceRevision: z.ZodString;
|
|
2007
|
+
requirementDigest: z.ZodString;
|
|
2008
|
+
}, z.core.$strict>>;
|
|
2009
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
2010
|
+
not_entitled: "not_entitled";
|
|
2011
|
+
insufficient_balance: "insufficient_balance";
|
|
2012
|
+
capacity_exceeded: "capacity_exceeded";
|
|
2013
|
+
limit_exceeded: "limit_exceeded";
|
|
2014
|
+
awaiting_topup: "awaiting_topup";
|
|
2015
|
+
authorization_required: "authorization_required";
|
|
2016
|
+
payment_blocked: "payment_blocked";
|
|
2017
|
+
cash_budget_exceeded: "cash_budget_exceeded";
|
|
2018
|
+
unavailable: "unavailable";
|
|
2019
|
+
authentication_required: "authentication_required";
|
|
2020
|
+
}>>;
|
|
2021
|
+
preview: z.ZodNullable<z.ZodObject<{
|
|
2022
|
+
scenario: z.ZodEnum<{
|
|
2023
|
+
feature_flag: "feature_flag";
|
|
2024
|
+
usage_limit: "usage_limit";
|
|
2025
|
+
}>;
|
|
2026
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
2027
|
+
productId: z.ZodString;
|
|
2028
|
+
productVersionId: z.ZodString;
|
|
2029
|
+
name: z.ZodString;
|
|
2030
|
+
action: z.ZodEnum<{
|
|
2031
|
+
purchase: "purchase";
|
|
2032
|
+
upgrade: "upgrade";
|
|
2033
|
+
addon: "addon";
|
|
2034
|
+
topup: "topup";
|
|
2035
|
+
}>;
|
|
2036
|
+
membershipId: z.ZodNullable<z.ZodString>;
|
|
2037
|
+
featureQuantities: z.ZodOptional<z.ZodRecord<z.ZodUUID, z.ZodNumber>>;
|
|
2038
|
+
currency: z.ZodEnum<{
|
|
2039
|
+
USD: "USD";
|
|
2040
|
+
EUR: "EUR";
|
|
2041
|
+
CNY: "CNY";
|
|
2042
|
+
GBP: "GBP";
|
|
2043
|
+
JPY: "JPY";
|
|
2044
|
+
CAD: "CAD";
|
|
2045
|
+
AUD: "AUD";
|
|
2046
|
+
NZD: "NZD";
|
|
2047
|
+
CHF: "CHF";
|
|
2048
|
+
HKD: "HKD";
|
|
2049
|
+
SGD: "SGD";
|
|
2050
|
+
KRW: "KRW";
|
|
2051
|
+
INR: "INR";
|
|
2052
|
+
BRL: "BRL";
|
|
2053
|
+
MXN: "MXN";
|
|
2054
|
+
TWD: "TWD";
|
|
2055
|
+
THB: "THB";
|
|
2056
|
+
IDR: "IDR";
|
|
2057
|
+
MYR: "MYR";
|
|
2058
|
+
PHP: "PHP";
|
|
2059
|
+
VND: "VND";
|
|
2060
|
+
ZAR: "ZAR";
|
|
2061
|
+
AED: "AED";
|
|
2062
|
+
SAR: "SAR";
|
|
2063
|
+
SEK: "SEK";
|
|
2064
|
+
NOK: "NOK";
|
|
2065
|
+
DKK: "DKK";
|
|
2066
|
+
PLN: "PLN";
|
|
2067
|
+
CZK: "CZK";
|
|
2068
|
+
HUF: "HUF";
|
|
2069
|
+
ILS: "ILS";
|
|
2070
|
+
TRY: "TRY";
|
|
2071
|
+
RON: "RON";
|
|
2072
|
+
}>;
|
|
2073
|
+
amountMinor: z.ZodString;
|
|
2074
|
+
interval: z.ZodEnum<{
|
|
2075
|
+
free: "free";
|
|
2076
|
+
week: "week";
|
|
2077
|
+
month: "month";
|
|
2078
|
+
year: "year";
|
|
2079
|
+
one_time: "one_time";
|
|
2080
|
+
}>;
|
|
2081
|
+
intervalCount: z.ZodNumber;
|
|
2082
|
+
}, z.core.$strict>>;
|
|
2083
|
+
}, z.core.$strict>>;
|
|
2084
|
+
}, z.core.$strict>>;
|
|
2085
|
+
nodes: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2086
|
+
base: z.ZodObject<{
|
|
2087
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2088
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2089
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
2090
|
+
html: z.ZodOptional<z.ZodString>;
|
|
2091
|
+
price: z.ZodOptional<z.ZodObject<{
|
|
2092
|
+
current: z.ZodString;
|
|
2093
|
+
original: z.ZodNullable<z.ZodString>;
|
|
2094
|
+
period: z.ZodString;
|
|
2095
|
+
}, z.core.$strip>>;
|
|
2096
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2097
|
+
countdownAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2098
|
+
planId: z.ZodOptional<z.ZodString>;
|
|
2099
|
+
planVersionId: z.ZodOptional<z.ZodString>;
|
|
2100
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
2101
|
+
USD: "USD";
|
|
2102
|
+
EUR: "EUR";
|
|
2103
|
+
CNY: "CNY";
|
|
2104
|
+
GBP: "GBP";
|
|
2105
|
+
JPY: "JPY";
|
|
2106
|
+
CAD: "CAD";
|
|
2107
|
+
AUD: "AUD";
|
|
2108
|
+
NZD: "NZD";
|
|
2109
|
+
CHF: "CHF";
|
|
2110
|
+
HKD: "HKD";
|
|
2111
|
+
SGD: "SGD";
|
|
2112
|
+
KRW: "KRW";
|
|
2113
|
+
INR: "INR";
|
|
2114
|
+
BRL: "BRL";
|
|
2115
|
+
MXN: "MXN";
|
|
2116
|
+
TWD: "TWD";
|
|
2117
|
+
THB: "THB";
|
|
2118
|
+
IDR: "IDR";
|
|
2119
|
+
MYR: "MYR";
|
|
2120
|
+
PHP: "PHP";
|
|
2121
|
+
VND: "VND";
|
|
2122
|
+
ZAR: "ZAR";
|
|
2123
|
+
AED: "AED";
|
|
2124
|
+
SAR: "SAR";
|
|
2125
|
+
SEK: "SEK";
|
|
2126
|
+
NOK: "NOK";
|
|
2127
|
+
DKK: "DKK";
|
|
2128
|
+
PLN: "PLN";
|
|
2129
|
+
CZK: "CZK";
|
|
2130
|
+
HUF: "HUF";
|
|
2131
|
+
ILS: "ILS";
|
|
2132
|
+
TRY: "TRY";
|
|
2133
|
+
RON: "RON";
|
|
2134
|
+
}>>;
|
|
2135
|
+
couponId: z.ZodOptional<z.ZodUUID>;
|
|
2136
|
+
offerId: z.ZodOptional<z.ZodUUID>;
|
|
2137
|
+
unavailable: z.ZodOptional<z.ZodBoolean>;
|
|
2138
|
+
unavailableReason: z.ZodOptional<z.ZodString>;
|
|
2139
|
+
missing: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2140
|
+
}, z.core.$strict>;
|
|
2141
|
+
picker: z.ZodOptional<z.ZodString>;
|
|
2142
|
+
byPlan: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2143
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2144
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2145
|
+
alt: z.ZodOptional<z.ZodString>;
|
|
2146
|
+
html: z.ZodOptional<z.ZodString>;
|
|
2147
|
+
price: z.ZodOptional<z.ZodObject<{
|
|
2148
|
+
current: z.ZodString;
|
|
2149
|
+
original: z.ZodNullable<z.ZodString>;
|
|
2150
|
+
period: z.ZodString;
|
|
2151
|
+
}, z.core.$strip>>;
|
|
2152
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2153
|
+
countdownAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2154
|
+
planId: z.ZodOptional<z.ZodString>;
|
|
2155
|
+
planVersionId: z.ZodOptional<z.ZodString>;
|
|
2156
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
2157
|
+
USD: "USD";
|
|
2158
|
+
EUR: "EUR";
|
|
2159
|
+
CNY: "CNY";
|
|
2160
|
+
GBP: "GBP";
|
|
2161
|
+
JPY: "JPY";
|
|
2162
|
+
CAD: "CAD";
|
|
2163
|
+
AUD: "AUD";
|
|
2164
|
+
NZD: "NZD";
|
|
2165
|
+
CHF: "CHF";
|
|
2166
|
+
HKD: "HKD";
|
|
2167
|
+
SGD: "SGD";
|
|
2168
|
+
KRW: "KRW";
|
|
2169
|
+
INR: "INR";
|
|
2170
|
+
BRL: "BRL";
|
|
2171
|
+
MXN: "MXN";
|
|
2172
|
+
TWD: "TWD";
|
|
2173
|
+
THB: "THB";
|
|
2174
|
+
IDR: "IDR";
|
|
2175
|
+
MYR: "MYR";
|
|
2176
|
+
PHP: "PHP";
|
|
2177
|
+
VND: "VND";
|
|
2178
|
+
ZAR: "ZAR";
|
|
2179
|
+
AED: "AED";
|
|
2180
|
+
SAR: "SAR";
|
|
2181
|
+
SEK: "SEK";
|
|
2182
|
+
NOK: "NOK";
|
|
2183
|
+
DKK: "DKK";
|
|
2184
|
+
PLN: "PLN";
|
|
2185
|
+
CZK: "CZK";
|
|
2186
|
+
HUF: "HUF";
|
|
2187
|
+
ILS: "ILS";
|
|
2188
|
+
TRY: "TRY";
|
|
2189
|
+
RON: "RON";
|
|
2190
|
+
}>>;
|
|
2191
|
+
couponId: z.ZodOptional<z.ZodUUID>;
|
|
2192
|
+
offerId: z.ZodOptional<z.ZodUUID>;
|
|
2193
|
+
unavailable: z.ZodOptional<z.ZodBoolean>;
|
|
2194
|
+
unavailableReason: z.ZodOptional<z.ZodString>;
|
|
2195
|
+
missing: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2196
|
+
}, z.core.$strict>>>;
|
|
2197
|
+
}, z.core.$strict>>;
|
|
2198
|
+
plans: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2199
|
+
id: z.ZodString;
|
|
2200
|
+
versionId: z.ZodString;
|
|
2201
|
+
available: z.ZodBoolean;
|
|
2202
|
+
name: z.ZodString;
|
|
2203
|
+
price: z.ZodString;
|
|
2204
|
+
period: z.ZodString;
|
|
2205
|
+
currency: z.ZodOptional<z.ZodEnum<{
|
|
2206
|
+
USD: "USD";
|
|
2207
|
+
EUR: "EUR";
|
|
2208
|
+
CNY: "CNY";
|
|
2209
|
+
GBP: "GBP";
|
|
2210
|
+
JPY: "JPY";
|
|
2211
|
+
CAD: "CAD";
|
|
2212
|
+
AUD: "AUD";
|
|
2213
|
+
NZD: "NZD";
|
|
2214
|
+
CHF: "CHF";
|
|
2215
|
+
HKD: "HKD";
|
|
2216
|
+
SGD: "SGD";
|
|
2217
|
+
KRW: "KRW";
|
|
2218
|
+
INR: "INR";
|
|
2219
|
+
BRL: "BRL";
|
|
2220
|
+
MXN: "MXN";
|
|
2221
|
+
TWD: "TWD";
|
|
2222
|
+
THB: "THB";
|
|
2223
|
+
IDR: "IDR";
|
|
2224
|
+
MYR: "MYR";
|
|
2225
|
+
PHP: "PHP";
|
|
2226
|
+
VND: "VND";
|
|
2227
|
+
ZAR: "ZAR";
|
|
2228
|
+
AED: "AED";
|
|
2229
|
+
SAR: "SAR";
|
|
2230
|
+
SEK: "SEK";
|
|
2231
|
+
NOK: "NOK";
|
|
2232
|
+
DKK: "DKK";
|
|
2233
|
+
PLN: "PLN";
|
|
2234
|
+
CZK: "CZK";
|
|
2235
|
+
HUF: "HUF";
|
|
2236
|
+
ILS: "ILS";
|
|
2237
|
+
TRY: "TRY";
|
|
2238
|
+
RON: "RON";
|
|
2239
|
+
}>>;
|
|
2240
|
+
amountMinor: z.ZodOptional<z.ZodNumber>;
|
|
2241
|
+
interval: z.ZodOptional<z.ZodEnum<{
|
|
2242
|
+
free: "free";
|
|
2243
|
+
week: "week";
|
|
2244
|
+
month: "month";
|
|
2245
|
+
year: "year";
|
|
2246
|
+
one_time: "one_time";
|
|
2247
|
+
}>>;
|
|
2248
|
+
intervalCount: z.ZodOptional<z.ZodNumber>;
|
|
2249
|
+
prepaid: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2250
|
+
internalFeatureId: z.ZodUUID;
|
|
2251
|
+
name: z.ZodString;
|
|
2252
|
+
includedAmount: z.ZodString;
|
|
2253
|
+
reset: z.ZodEnum<{
|
|
2254
|
+
week: "week";
|
|
2255
|
+
month: "month";
|
|
2256
|
+
year: "year";
|
|
2257
|
+
hour: "hour";
|
|
2258
|
+
day: "day";
|
|
2259
|
+
lifetime: "lifetime";
|
|
2260
|
+
}>;
|
|
2261
|
+
resetCount: z.ZodNumber;
|
|
2262
|
+
terms: z.ZodObject<{
|
|
2263
|
+
units: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
2264
|
+
prices: z.ZodArray<z.ZodObject<{
|
|
2265
|
+
currency: z.ZodEnum<{
|
|
2266
|
+
USD: "USD";
|
|
2267
|
+
EUR: "EUR";
|
|
2268
|
+
CNY: "CNY";
|
|
2269
|
+
GBP: "GBP";
|
|
2270
|
+
JPY: "JPY";
|
|
2271
|
+
CAD: "CAD";
|
|
2272
|
+
AUD: "AUD";
|
|
2273
|
+
NZD: "NZD";
|
|
2274
|
+
CHF: "CHF";
|
|
2275
|
+
HKD: "HKD";
|
|
2276
|
+
SGD: "SGD";
|
|
2277
|
+
KRW: "KRW";
|
|
2278
|
+
INR: "INR";
|
|
2279
|
+
BRL: "BRL";
|
|
2280
|
+
MXN: "MXN";
|
|
2281
|
+
TWD: "TWD";
|
|
2282
|
+
THB: "THB";
|
|
2283
|
+
IDR: "IDR";
|
|
2284
|
+
MYR: "MYR";
|
|
2285
|
+
PHP: "PHP";
|
|
2286
|
+
VND: "VND";
|
|
2287
|
+
ZAR: "ZAR";
|
|
2288
|
+
AED: "AED";
|
|
2289
|
+
SAR: "SAR";
|
|
2290
|
+
SEK: "SEK";
|
|
2291
|
+
NOK: "NOK";
|
|
2292
|
+
DKK: "DKK";
|
|
2293
|
+
PLN: "PLN";
|
|
2294
|
+
CZK: "CZK";
|
|
2295
|
+
HUF: "HUF";
|
|
2296
|
+
ILS: "ILS";
|
|
2297
|
+
TRY: "TRY";
|
|
2298
|
+
RON: "RON";
|
|
2299
|
+
}>;
|
|
2300
|
+
amountMinor: z.ZodNumber;
|
|
2301
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
2302
|
+
kind: z.ZodEnum<{
|
|
2303
|
+
graduated: "graduated";
|
|
2304
|
+
volume: "volume";
|
|
2305
|
+
}>;
|
|
2306
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
2307
|
+
upTo: z.ZodNullable<z.ZodNumber>;
|
|
2308
|
+
unitAmountMinor: z.ZodNumber;
|
|
2309
|
+
flatAmountMinor: z.ZodOptional<z.ZodNumber>;
|
|
2310
|
+
}, z.core.$strict>>;
|
|
2311
|
+
}, z.core.$strict>>;
|
|
2312
|
+
}, z.core.$strict>>;
|
|
2313
|
+
minimumQuantity: z.ZodNumber;
|
|
2314
|
+
maximumQuantity: z.ZodNumber;
|
|
2315
|
+
}, z.core.$strict>;
|
|
2316
|
+
}, z.core.$strict>>>;
|
|
2317
|
+
}, z.core.$strict>>;
|
|
2318
|
+
pickers: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2319
|
+
options: z.ZodArray<z.ZodString>;
|
|
2320
|
+
selected: z.ZodNullable<z.ZodString>;
|
|
2321
|
+
}, z.core.$strict>>;
|
|
2322
|
+
quantities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2323
|
+
minimum: z.ZodNumber;
|
|
2324
|
+
maximum: z.ZodNumber;
|
|
2325
|
+
step: z.ZodNumber;
|
|
2326
|
+
value: z.ZodNumber;
|
|
2327
|
+
label: z.ZodString;
|
|
2328
|
+
available: z.ZodBoolean;
|
|
2329
|
+
}, z.core.$strict>>>;
|
|
2330
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
2331
|
+
nodeId: z.ZodString;
|
|
2332
|
+
message: z.ZodString;
|
|
2333
|
+
}, z.core.$strict>>;
|
|
2334
|
+
}, z.core.$strict>;
|
|
2335
|
+
check: z.ZodNullable<z.ZodObject<{
|
|
2336
|
+
internal_feature_id: z.ZodString;
|
|
2337
|
+
name: z.ZodString;
|
|
2338
|
+
kind: z.ZodEnum<{
|
|
2339
|
+
access: "access";
|
|
2340
|
+
metered: "metered";
|
|
2341
|
+
credit: "credit";
|
|
2342
|
+
}>;
|
|
2343
|
+
quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
2344
|
+
allowed: z.ZodBoolean;
|
|
2345
|
+
observation: z.ZodOptional<z.ZodObject<{
|
|
2346
|
+
subject: z.ZodObject<{
|
|
2347
|
+
scope: z.ZodObject<{
|
|
2348
|
+
projectId: z.ZodUUID;
|
|
2349
|
+
environmentId: z.ZodUUID;
|
|
2350
|
+
environment: z.ZodEnum<{
|
|
2351
|
+
sandbox: "sandbox";
|
|
2352
|
+
live: "live";
|
|
2353
|
+
}>;
|
|
2354
|
+
}, z.core.$strict>;
|
|
2355
|
+
customerId: z.ZodUUID;
|
|
2356
|
+
}, z.core.$strict>;
|
|
2357
|
+
authority: z.ZodEnum<{
|
|
2358
|
+
longplay: "longplay";
|
|
2359
|
+
merchant: "merchant";
|
|
2360
|
+
}>;
|
|
2361
|
+
observedAt: z.ZodISODateTime;
|
|
2362
|
+
sourceRevision: z.ZodString;
|
|
2363
|
+
requirementDigest: z.ZodString;
|
|
2364
|
+
}, z.core.$strict>>;
|
|
2365
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
2366
|
+
not_entitled: "not_entitled";
|
|
2367
|
+
insufficient_balance: "insufficient_balance";
|
|
2368
|
+
capacity_exceeded: "capacity_exceeded";
|
|
2369
|
+
limit_exceeded: "limit_exceeded";
|
|
2370
|
+
awaiting_topup: "awaiting_topup";
|
|
2371
|
+
authorization_required: "authorization_required";
|
|
2372
|
+
payment_blocked: "payment_blocked";
|
|
2373
|
+
cash_budget_exceeded: "cash_budget_exceeded";
|
|
2374
|
+
unavailable: "unavailable";
|
|
2375
|
+
authentication_required: "authentication_required";
|
|
2376
|
+
}>>;
|
|
2377
|
+
preview: z.ZodNullable<z.ZodObject<{
|
|
2378
|
+
scenario: z.ZodEnum<{
|
|
2379
|
+
feature_flag: "feature_flag";
|
|
2380
|
+
usage_limit: "usage_limit";
|
|
2381
|
+
}>;
|
|
2382
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
2383
|
+
productId: z.ZodString;
|
|
2384
|
+
productVersionId: z.ZodString;
|
|
2385
|
+
name: z.ZodString;
|
|
2386
|
+
action: z.ZodEnum<{
|
|
2387
|
+
purchase: "purchase";
|
|
2388
|
+
upgrade: "upgrade";
|
|
2389
|
+
addon: "addon";
|
|
2390
|
+
topup: "topup";
|
|
2391
|
+
}>;
|
|
2392
|
+
membershipId: z.ZodNullable<z.ZodString>;
|
|
2393
|
+
featureQuantities: z.ZodOptional<z.ZodRecord<z.ZodUUID, z.ZodNumber>>;
|
|
2394
|
+
currency: z.ZodEnum<{
|
|
2395
|
+
USD: "USD";
|
|
2396
|
+
EUR: "EUR";
|
|
2397
|
+
CNY: "CNY";
|
|
2398
|
+
GBP: "GBP";
|
|
2399
|
+
JPY: "JPY";
|
|
2400
|
+
CAD: "CAD";
|
|
2401
|
+
AUD: "AUD";
|
|
2402
|
+
NZD: "NZD";
|
|
2403
|
+
CHF: "CHF";
|
|
2404
|
+
HKD: "HKD";
|
|
2405
|
+
SGD: "SGD";
|
|
2406
|
+
KRW: "KRW";
|
|
2407
|
+
INR: "INR";
|
|
2408
|
+
BRL: "BRL";
|
|
2409
|
+
MXN: "MXN";
|
|
2410
|
+
TWD: "TWD";
|
|
2411
|
+
THB: "THB";
|
|
2412
|
+
IDR: "IDR";
|
|
2413
|
+
MYR: "MYR";
|
|
2414
|
+
PHP: "PHP";
|
|
2415
|
+
VND: "VND";
|
|
2416
|
+
ZAR: "ZAR";
|
|
2417
|
+
AED: "AED";
|
|
2418
|
+
SAR: "SAR";
|
|
2419
|
+
SEK: "SEK";
|
|
2420
|
+
NOK: "NOK";
|
|
2421
|
+
DKK: "DKK";
|
|
2422
|
+
PLN: "PLN";
|
|
2423
|
+
CZK: "CZK";
|
|
2424
|
+
HUF: "HUF";
|
|
2425
|
+
ILS: "ILS";
|
|
2426
|
+
TRY: "TRY";
|
|
2427
|
+
RON: "RON";
|
|
2428
|
+
}>;
|
|
2429
|
+
amountMinor: z.ZodString;
|
|
2430
|
+
interval: z.ZodEnum<{
|
|
2431
|
+
free: "free";
|
|
2432
|
+
week: "week";
|
|
2433
|
+
month: "month";
|
|
2434
|
+
year: "year";
|
|
2435
|
+
one_time: "one_time";
|
|
2436
|
+
}>;
|
|
2437
|
+
intervalCount: z.ZodNumber;
|
|
2438
|
+
}, z.core.$strict>>;
|
|
2439
|
+
}, z.core.$strict>>;
|
|
2440
|
+
}, z.core.$strict>>;
|
|
2441
|
+
}, z.core.$strict>;
|
|
2442
|
+
}, z.core.$strict>;
|
|
2443
|
+
/** The Paywall a pre-render last showed for one entry, with the Funnel and context it was read for. */
|
|
2444
|
+
type PaywallCopy = z.infer<typeof copySchema>;
|
|
2445
|
+
interface PaywallCopies {
|
|
2446
|
+
read(slot: string): Promise<PaywallCopy | null>;
|
|
2447
|
+
write(slot: string, copy: PaywallCopy | null): Promise<void>;
|
|
2448
|
+
}
|
|
2449
|
+
|
|
1670
2450
|
type FunnelPurchaseStart = Omit<FunnelStartInput, "customer" | "customerData" | "requestId"> & {
|
|
1671
2451
|
requestId?: string;
|
|
1672
2452
|
};
|
|
@@ -1707,6 +2487,11 @@ declare function createFunnelPurchaseClient(input: FunnelPurchaseOptions): {
|
|
|
1707
2487
|
* recover a pending original purchase ("pending"), an unpaid Checkout included.
|
|
1708
2488
|
*/
|
|
1709
2489
|
retained: () => Promise<"none" | "finished" | "pending">;
|
|
2490
|
+
/**
|
|
2491
|
+
* SDK-internal: the Paywalls a pre-render last showed this Customer, kept on the device so the
|
|
2492
|
+
* next pre-render paints one before any request answers.
|
|
2493
|
+
*/
|
|
2494
|
+
readonly paywallCopies: PaywallCopies;
|
|
1710
2495
|
/**
|
|
1711
2496
|
* Storage first, then Longplay's lookup: "found" is an original purchase Longplay knows of
|
|
1712
2497
|
* (another device or cleared storage), now retained here; "blocked" is one it cannot
|
|
@@ -2037,6 +2822,13 @@ interface PreparedFunnelPurchase {
|
|
|
2037
2822
|
* click takes over the same rendered Paywall when it presents the same, untouched one; until then
|
|
2038
2823
|
* a purchase tap waits for it. Keep `container` in place for the page's lifetime: moving it
|
|
2039
2824
|
* restarts the Paywall's frame.
|
|
2825
|
+
*
|
|
2826
|
+
* The SDK keeps on the device the Paywall it last showed this Customer for the same Paywall,
|
|
2827
|
+
* commerce and locale (at most 24 hours old). That copy renders without a request
|
|
2828
|
+
* and is ready once painted, before the merchant's checks, Longplay's original-purchase lookup and
|
|
2829
|
+
* a fresh read answer; all three still run. Until a click takes the copy they withdraw it as for
|
|
2830
|
+
* any copy; a revealed copy is left to the click, whose own Start and Run replace it when needed.
|
|
2831
|
+
* A fresh read updates changed plans in place and becomes the next kept copy.
|
|
2040
2832
|
*/
|
|
2041
2833
|
declare function prerenderFunnelPurchase$1(container: HTMLElement, input: {
|
|
2042
2834
|
client: FunnelPurchaseClient;
|
|
@@ -2980,7 +3772,7 @@ declare function createMerchantBridge(options: MerchantBridgeOptions): {
|
|
|
2980
3772
|
merchantSubscriptionId: string;
|
|
2981
3773
|
merchantProductId: string;
|
|
2982
3774
|
productVersionId: string | null;
|
|
2983
|
-
status: "active" | "
|
|
3775
|
+
status: "active" | "trialing" | "cancelled" | "expired" | "past_due";
|
|
2984
3776
|
currentPeriodStartsAt: string | null;
|
|
2985
3777
|
currentPeriodEndsAt: string | null;
|
|
2986
3778
|
cancelAtPeriodEnd: boolean;
|