@tinkerlandai/longplay-sdk 0.10.15 → 0.10.16

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 (55) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +13 -15
  3. package/README.zh-CN.md +14 -16
  4. package/dist/{ai-usage-C3dCagmQ.d.ts → ai-usage-DejUdb17.d.ts} +1 -1
  5. package/dist/{api-Cefn6AaL.d.ts → api-RQUBSSEJ.d.ts} +60 -26
  6. package/dist/{chunk-OZZMZH7X.js → chunk-26HU2HXU.js} +1 -1
  7. package/dist/chunk-4IGRIYOQ.js +1 -0
  8. package/dist/{chunk-V73OHOTK.js → chunk-55MXKW5J.js} +1 -1
  9. package/dist/{chunk-6RZKX552.js → chunk-67XTOBGE.js} +1 -1
  10. package/dist/{chunk-RT35MPPD.js → chunk-6MBVIE3H.js} +1 -1
  11. package/dist/chunk-AC32XJZW.js +1 -0
  12. package/dist/{chunk-VXY2C4AL.js → chunk-APO7QUBB.js} +1 -1
  13. package/dist/chunk-EEZLS2YP.js +1 -0
  14. package/dist/chunk-EFFXE6CX.js +6 -0
  15. package/dist/chunk-FKBSUKXE.js +1 -0
  16. package/dist/{chunk-TPAQWTO4.js → chunk-JKLILKI5.js} +1 -1
  17. package/dist/{chunk-VSMITXQD.js → chunk-LC2VUKYM.js} +1 -1
  18. package/dist/{chunk-LUIKKMG5.js → chunk-M5HQW67G.js} +1 -1
  19. package/dist/chunk-ML6EHT43.js +10 -0
  20. package/dist/chunk-PFHS7HK3.js +17 -0
  21. package/dist/chunk-T5COWMDA.js +1 -0
  22. package/dist/{configuration-sync-D2n_gGj6.d.ts → configuration-sync-C2jtm37f.d.ts} +97 -9
  23. package/dist/{content-WXHCWIUL.js → content-XCLXWNGN.js} +1 -1
  24. package/dist/{funnel-local-client-9U-_hkEE.d.ts → funnel-local-client-P_R6FHVV.d.ts} +7995 -5523
  25. package/dist/{funnel-node-evaluation-DSSSmXHX.d.ts → funnel-node-evaluation-BLnJp8vj.d.ts} +11 -13
  26. package/dist/{funnel-process-client-BaHMeArI.d.ts → funnel-process-client-CY-GQ_SF.d.ts} +5498 -4539
  27. package/dist/funnel-runtime-host-GFTN7KQK.js +1 -0
  28. package/dist/index.d.ts +1258 -273
  29. package/dist/index.js +1 -1
  30. package/dist/native-shell.js +1 -1
  31. package/dist/openrouter.d.ts +3 -3
  32. package/dist/openrouter.js +1 -1
  33. package/dist/page.d.ts +2 -2
  34. package/dist/page.js +1 -1
  35. package/dist/paywall-H3KQZEJG.js +1 -0
  36. package/dist/popup.d.ts +11 -5
  37. package/dist/popup.js +1 -1
  38. package/dist/react-native.d.ts +1541 -7
  39. package/dist/react-native.js +1 -1
  40. package/dist/{screen-D81zCpfi.d.ts → screen-DRP7nsrQ.d.ts} +613 -357
  41. package/dist/screen-renderer-IZ3VJGU6.js +1 -0
  42. package/dist/server.d.ts +717 -9
  43. package/dist/server.js +1 -1
  44. package/dist/visual.js +1 -1
  45. package/package.json +1 -1
  46. package/dist/chunk-33FQUT3Z.js +0 -179
  47. package/dist/chunk-E5ECPR6Z.js +0 -1
  48. package/dist/chunk-LHA6VWP7.js +0 -1
  49. package/dist/chunk-MOWYD2TV.js +0 -1
  50. package/dist/chunk-RQZ42NQJ.js +0 -6
  51. package/dist/chunk-VSJOHWDL.js +0 -17
  52. package/dist/chunk-XAHWOLRT.js +0 -1
  53. package/dist/funnel-runtime-host-WQ64FAME.js +0 -1
  54. package/dist/paywall-H4YN4FTL.js +0 -1
  55. package/dist/screen-renderer-NHJ6OQTF.js +0 -1
package/dist/index.d.ts CHANGED
@@ -2,17 +2,17 @@ import * as zod from 'zod';
2
2
  import { z } from 'zod';
3
3
  import { S as ScreenAnswers, s as screenInputBindingsSchema, a as SurfaceData, C as CustomerDataIntent } from './customer-page-km5f1PJZ.js';
4
4
  import { J as JsonValue, F as FeatureResult } from './growth-rules-B4YYy64R.js';
5
- import { S as StackNode, a as ScreenSelection } from './screen-D81zCpfi.js';
6
- import { P as PaywallSession, S as SubscriptionOperation, F as FunnelRunView, I as IndianaOptions, C as CustomerSession, R as RemoteFeatureResult, a as PushAddressObservation, b as FunnelCommandStorage, c as FunnelStartInput, d as FunnelSegmentPrediction, e as PaywallDelivery, f as FunnelDataQueries, g as FunnelRuntimeResponse, h as FunnelMutation, i as FunnelProcessRunView } from './funnel-local-client-9U-_hkEE.js';
7
- export { j as FeatureClient, k as FeatureClientOptions, l as FunnelPendingEntry, m as FunnelPurchaseRecovery, L as LocalFunnelClient, n as LocalFunnelClientOptions, o as LongplayError, p as PaywallPurchaseInput, q as PaywallStartInput, r as PushHost, s as PushJournal, t as SessionCredentials, u as createFeatureClient, v as createLocalFunnelClient, w as createPaywallSession } from './funnel-local-client-9U-_hkEE.js';
8
- import { F as FunnelRunController, a as FunnelResourceSource, I as IndianaFeatureOptions, N as NativeRestoreCommand, b as IamFunnelEntryDelivery, c as createFunnelProcess } from './funnel-process-client-BaHMeArI.js';
9
- export { d as FunnelControllerResponse, e as FunnelProcessAdapter, f as FunnelProcessOptions, g as createFunnelRunController } from './funnel-process-client-BaHMeArI.js';
5
+ import { S as StackNode, a as ScreenSelection } from './screen-DRP7nsrQ.js';
6
+ import { P as PaywallSession, S as SubscriptionOperation, a as PaywallRecovery, F as FunnelRunView, I as IndianaOptions, C as CustomerSession, R as RemoteFeatureResult, b as PushAddressObservation, c as FunnelCommandStorage, d as FunnelStartInput, e as FunnelSegmentPrediction, f as PaywallDelivery, g as FunnelDataQueries, h as FunnelRuntimeResponse, i as FunnelMutation, j as FunnelProcessRunView } from './funnel-local-client-P_R6FHVV.js';
7
+ export { k as FeatureClient, l as FeatureClientOptions, m as FunnelPendingEntry, n as FunnelPurchaseRecovery, L as LocalFunnelClient, o as LocalFunnelClientOptions, p as LongplayError, q as PaywallPurchaseInput, r as PaywallStartInput, s as PushHost, t as PushJournal, u as SessionCredentials, v as createFeatureClient, w as createLocalFunnelClient, x as createPaywallSession, y as getPaywallRecovery, z as preparePaywallFallback } from './funnel-local-client-P_R6FHVV.js';
8
+ import { F as FunnelRunController, a as FunnelResourceSource, I as IndianaFeatureOptions, N as NativeRestoreCommand, b as IamFunnelEntryDelivery, c as createFunnelProcess } from './funnel-process-client-CY-GQ_SF.js';
9
+ export { d as FunnelControllerResponse, e as FunnelProcessAdapter, f as FunnelProcessOptions, g as createFunnelRunController } from './funnel-process-client-CY-GQ_SF.js';
10
10
  import { C as CouponInput, O as Offer } from './coupon-fA1QujHt.js';
11
11
  export { a as OfferUnavailableReason } from './coupon-fA1QujHt.js';
12
- import { M as MerchantBridgeManifest } from './funnel-node-evaluation-DSSSmXHX.js';
13
- export { F as FunnelNodeEvaluationContext, e as evaluateFunnelNode } from './funnel-node-evaluation-DSSSmXHX.js';
14
- import { A as ApiInput, O as OfferingItem, I as InvoiceModeParams } from './api-Cefn6AaL.js';
15
- export { C as ConfigurationStorage, a as ConfigurationSync, b as ConfigurationSyncOptions, c as createConfigurationSync } from './configuration-sync-D2n_gGj6.js';
12
+ import { M as MerchantBridgeManifest } from './funnel-node-evaluation-BLnJp8vj.js';
13
+ export { F as FunnelNodeEvaluationContext, e as evaluateFunnelNode } from './funnel-node-evaluation-BLnJp8vj.js';
14
+ import { A as ApiInput, O as OfferingItem, I as InvoiceModeParams } from './api-RQUBSSEJ.js';
15
+ export { C as ConfigurationStorage, a as ConfigurationSync, b as ConfigurationSyncOptions, c as createConfigurationSync } from './configuration-sync-C2jtm37f.js';
16
16
  import 'zod/v4';
17
17
 
18
18
  /** Currency always comes from business data; locale only controls notation. No currency conversion. */
@@ -55,14 +55,30 @@ declare const contentVersionSchema: z.ZodObject<{
55
55
  schemaVersion: z.ZodLiteral<4>;
56
56
  name: z.ZodString;
57
57
  surface: z.ZodEnum<{
58
- paywall: "paywall";
59
58
  popup: "popup";
59
+ paywall: "paywall";
60
60
  onboarding: "onboarding";
61
61
  page: "page";
62
62
  banner: "banner";
63
63
  }>;
64
64
  initialPageId: z.ZodOptional<z.ZodString>;
65
65
  presentation: z.ZodDiscriminatedUnion<[z.ZodObject<{
66
+ desktopWidth: z.ZodOptional<z.ZodObject<{
67
+ min: z.ZodNumber;
68
+ max: z.ZodNumber;
69
+ viewport: z.ZodNumber;
70
+ }, z.core.$strict>>;
71
+ mobile: z.ZodOptional<z.ZodEnum<{
72
+ sheet: "sheet";
73
+ fullscreen: "fullscreen";
74
+ }>>;
75
+ backdrop: z.ZodOptional<z.ZodEnum<{
76
+ none: "none";
77
+ scrim: "scrim";
78
+ dim: "dim";
79
+ "strong-dim": "strong-dim";
80
+ blur: "blur";
81
+ }>>;
66
82
  type: z.ZodLiteral<"modal">;
67
83
  size: z.ZodEnum<{
68
84
  sm: "sm";
@@ -70,6 +86,22 @@ declare const contentVersionSchema: z.ZodObject<{
70
86
  lg: "lg";
71
87
  }>;
72
88
  }, z.core.$strict>, z.ZodObject<{
89
+ desktopWidth: z.ZodOptional<z.ZodObject<{
90
+ min: z.ZodNumber;
91
+ max: z.ZodNumber;
92
+ viewport: z.ZodNumber;
93
+ }, z.core.$strict>>;
94
+ mobile: z.ZodOptional<z.ZodEnum<{
95
+ sheet: "sheet";
96
+ fullscreen: "fullscreen";
97
+ }>>;
98
+ backdrop: z.ZodOptional<z.ZodEnum<{
99
+ none: "none";
100
+ scrim: "scrim";
101
+ dim: "dim";
102
+ "strong-dim": "strong-dim";
103
+ blur: "blur";
104
+ }>>;
73
105
  type: z.ZodLiteral<"sheet">;
74
106
  size: z.ZodEnum<{
75
107
  sm: "sm";
@@ -86,11 +118,11 @@ declare const contentVersionSchema: z.ZodObject<{
86
118
  background: z.ZodString;
87
119
  text: z.ZodString;
88
120
  radius: z.ZodEnum<{
89
- none: "none";
90
- full: "full";
91
121
  sm: "sm";
92
122
  md: "md";
93
123
  lg: "lg";
124
+ none: "none";
125
+ full: "full";
94
126
  }>;
95
127
  font: z.ZodEnum<{
96
128
  system: "system";
@@ -98,6 +130,14 @@ declare const contentVersionSchema: z.ZodObject<{
98
130
  rounded: "rounded";
99
131
  mono: "mono";
100
132
  }>;
133
+ fontAssets: z.ZodOptional<z.ZodObject<{
134
+ family: z.ZodString;
135
+ faces: z.ZodArray<z.ZodObject<{
136
+ url: z.ZodString;
137
+ weight: z.ZodNumber;
138
+ family: z.ZodOptional<z.ZodString>;
139
+ }, z.core.$strict>>;
140
+ }, z.core.$strict>>;
101
141
  }, z.core.$strict>;
102
142
  pages: z.ZodArray<z.ZodObject<{
103
143
  id: z.ZodString;
@@ -108,11 +148,11 @@ declare const contentVersionSchema: z.ZodObject<{
108
148
  background: z.ZodString;
109
149
  text: z.ZodString;
110
150
  radius: z.ZodEnum<{
111
- none: "none";
112
- full: "full";
113
151
  sm: "sm";
114
152
  md: "md";
115
153
  lg: "lg";
154
+ none: "none";
155
+ full: "full";
116
156
  }>;
117
157
  font: z.ZodEnum<{
118
158
  system: "system";
@@ -120,6 +160,14 @@ declare const contentVersionSchema: z.ZodObject<{
120
160
  rounded: "rounded";
121
161
  mono: "mono";
122
162
  }>;
163
+ fontAssets: z.ZodOptional<z.ZodObject<{
164
+ family: z.ZodString;
165
+ faces: z.ZodArray<z.ZodObject<{
166
+ url: z.ZodString;
167
+ weight: z.ZodNumber;
168
+ family: z.ZodOptional<z.ZodString>;
169
+ }, z.core.$strict>>;
170
+ }, z.core.$strict>>;
123
171
  }, z.core.$strict>>;
124
172
  editorPosition: z.ZodOptional<z.ZodObject<{
125
173
  x: z.ZodNumber;
@@ -404,6 +452,8 @@ declare function showPaywall$1(container: HTMLElement, options: PaywallHostOptio
404
452
  } | null;
405
453
  } | null;
406
454
  host: {
455
+ readonly recovery: PaywallRecovery;
456
+ prepareFallback(): Promise<PaywallRecovery>;
407
457
  setSuspended(value: boolean): void;
408
458
  destroy: (reason?: "destroy" | "dismiss" | "action") => void;
409
459
  refresh: () => Promise<{
@@ -416,44 +466,53 @@ declare function showPaywall$1(container: HTMLElement, options: PaywallHostOptio
416
466
  presentation: {
417
467
  type: "modal";
418
468
  size: "sm" | "md" | "lg";
469
+ desktopWidth?: {
470
+ min: number;
471
+ max: number;
472
+ viewport: number;
473
+ } | undefined;
474
+ mobile?: "sheet" | "fullscreen" | undefined;
475
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
419
476
  } | {
420
477
  type: "sheet";
421
478
  size: "sm" | "md" | "lg";
479
+ desktopWidth?: {
480
+ min: number;
481
+ max: number;
482
+ viewport: number;
483
+ } | undefined;
484
+ mobile?: "sheet" | "fullscreen" | undefined;
485
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
422
486
  } | {
423
487
  type: "fullscreen";
424
488
  } | {
425
489
  type: "inline";
426
490
  };
427
- offeringVersionId: string | null;
428
- products: {
429
- items: {
430
- productVersionId: string;
431
- label: string;
432
- }[];
433
- defaultProductVersionId: string | null;
434
- grouping?: {
435
- tiers: {
436
- id: string;
437
- name: string;
438
- }[];
439
- assignments: {
440
- productVersionId: string;
441
- tierId: string;
442
- period: "month" | "year";
443
- }[];
444
- } | undefined;
445
- };
446
491
  screen: {
447
492
  kind: "screen";
448
493
  schemaVersion: 4;
449
494
  name: string;
450
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
495
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
451
496
  presentation: {
452
497
  type: "modal";
453
498
  size: "sm" | "md" | "lg";
499
+ desktopWidth?: {
500
+ min: number;
501
+ max: number;
502
+ viewport: number;
503
+ } | undefined;
504
+ mobile?: "sheet" | "fullscreen" | undefined;
505
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
454
506
  } | {
455
507
  type: "sheet";
456
508
  size: "sm" | "md" | "lg";
509
+ desktopWidth?: {
510
+ min: number;
511
+ max: number;
512
+ viewport: number;
513
+ } | undefined;
514
+ mobile?: "sheet" | "fullscreen" | undefined;
515
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
457
516
  } | {
458
517
  type: "fullscreen";
459
518
  } | {
@@ -463,8 +522,16 @@ declare function showPaywall$1(container: HTMLElement, options: PaywallHostOptio
463
522
  primary: string;
464
523
  background: string;
465
524
  text: string;
466
- radius: "none" | "full" | "sm" | "md" | "lg";
525
+ radius: "sm" | "md" | "lg" | "none" | "full";
467
526
  font: "system" | "serif" | "rounded" | "mono";
527
+ fontAssets?: {
528
+ family: string;
529
+ faces: {
530
+ url: string;
531
+ weight: number;
532
+ family?: string | undefined;
533
+ }[];
534
+ } | undefined;
468
535
  };
469
536
  pages: {
470
537
  id: string;
@@ -474,8 +541,16 @@ declare function showPaywall$1(container: HTMLElement, options: PaywallHostOptio
474
541
  primary: string;
475
542
  background: string;
476
543
  text: string;
477
- radius: "none" | "full" | "sm" | "md" | "lg";
544
+ radius: "sm" | "md" | "lg" | "none" | "full";
478
545
  font: "system" | "serif" | "rounded" | "mono";
546
+ fontAssets?: {
547
+ family: string;
548
+ faces: {
549
+ url: string;
550
+ weight: number;
551
+ family?: string | undefined;
552
+ }[];
553
+ } | undefined;
479
554
  } | undefined;
480
555
  editorPosition?: {
481
556
  x: number;
@@ -523,6 +598,25 @@ declare function showPaywall$1(container: HTMLElement, options: PaywallHostOptio
523
598
  initialPageId?: string | undefined;
524
599
  };
525
600
  schemaVersion: 3;
601
+ offeringVersionId: string | null;
602
+ products: {
603
+ items: {
604
+ productVersionId: string;
605
+ label: string;
606
+ }[];
607
+ defaultProductVersionId: string | null;
608
+ grouping?: {
609
+ tiers: {
610
+ id: string;
611
+ name: string;
612
+ }[];
613
+ assignments: {
614
+ productVersionId: string;
615
+ tierId: string;
616
+ period: "month" | "year";
617
+ }[];
618
+ } | undefined;
619
+ };
526
620
  buttons: Record<string, {
527
621
  type: "checkout";
528
622
  product: {
@@ -736,6 +830,8 @@ type FunnelHostOptions = {
736
830
  declare function showFunnelRun$1(container: HTMLElement, input: FunnelHostOptions): Promise<{
737
831
  destroy: () => void;
738
832
  refresh: () => Promise<void>;
833
+ readonly recovery: PaywallRecovery;
834
+ prepareFallback(): Promise<PaywallRecovery>;
739
835
  review: (receiptId?: string) => Promise<void>;
740
836
  exitReview: () => Promise<void>;
741
837
  readonly unappliedDrafts: Map<string, Record<string, string | boolean | string[]>>;
@@ -1758,13 +1854,27 @@ declare function createIndiana(options: IndianaOptions): {
1758
1854
  kind: "screen";
1759
1855
  schemaVersion: 4;
1760
1856
  name: string;
1761
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
1857
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
1762
1858
  presentation: {
1763
1859
  type: "modal";
1764
1860
  size: "sm" | "md" | "lg";
1861
+ desktopWidth?: {
1862
+ min: number;
1863
+ max: number;
1864
+ viewport: number;
1865
+ } | undefined;
1866
+ mobile?: "sheet" | "fullscreen" | undefined;
1867
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
1765
1868
  } | {
1766
1869
  type: "sheet";
1767
1870
  size: "sm" | "md" | "lg";
1871
+ desktopWidth?: {
1872
+ min: number;
1873
+ max: number;
1874
+ viewport: number;
1875
+ } | undefined;
1876
+ mobile?: "sheet" | "fullscreen" | undefined;
1877
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
1768
1878
  } | {
1769
1879
  type: "fullscreen";
1770
1880
  } | {
@@ -1774,8 +1884,16 @@ declare function createIndiana(options: IndianaOptions): {
1774
1884
  primary: string;
1775
1885
  background: string;
1776
1886
  text: string;
1777
- radius: "none" | "full" | "sm" | "md" | "lg";
1887
+ radius: "sm" | "md" | "lg" | "none" | "full";
1778
1888
  font: "system" | "serif" | "rounded" | "mono";
1889
+ fontAssets?: {
1890
+ family: string;
1891
+ faces: {
1892
+ url: string;
1893
+ weight: number;
1894
+ family?: string | undefined;
1895
+ }[];
1896
+ } | undefined;
1779
1897
  };
1780
1898
  pages: {
1781
1899
  id: string;
@@ -1785,8 +1903,16 @@ declare function createIndiana(options: IndianaOptions): {
1785
1903
  primary: string;
1786
1904
  background: string;
1787
1905
  text: string;
1788
- radius: "none" | "full" | "sm" | "md" | "lg";
1906
+ radius: "sm" | "md" | "lg" | "none" | "full";
1789
1907
  font: "system" | "serif" | "rounded" | "mono";
1908
+ fontAssets?: {
1909
+ family: string;
1910
+ faces: {
1911
+ url: string;
1912
+ weight: number;
1913
+ family?: string | undefined;
1914
+ }[];
1915
+ } | undefined;
1790
1916
  } | undefined;
1791
1917
  editorPosition?: {
1792
1918
  x: number;
@@ -4978,7 +5104,7 @@ declare function createIndiana(options: IndianaOptions): {
4978
5104
  detail: {
4979
5105
  invoice: {
4980
5106
  id: string;
4981
- sourceKind: "usage" | "product" | "manual";
5107
+ sourceKind: "product" | "usage" | "manual";
4982
5108
  providerInvoiceId: string | null;
4983
5109
  status: "void" | "pending" | "failed" | "paid" | "open" | "accruing";
4984
5110
  currency: "USD" | "EUR" | "CNY" | "GBP" | "JPY" | "CAD" | "AUD" | "NZD" | "CHF" | "HKD" | "SGD" | "KRW" | "INR" | "BRL" | "MXN" | "TWD" | "THB" | "IDR" | "MYR" | "PHP" | "VND" | "ZAR" | "AED" | "SAR" | "SEK" | "NOK" | "DKK" | "PLN" | "CZK" | "HUF" | "ILS" | "TRY" | "RON";
@@ -5492,7 +5618,7 @@ declare function createIndiana(options: IndianaOptions): {
5492
5618
  invoices: {
5493
5619
  rows: {
5494
5620
  id: string;
5495
- sourceKind: "usage" | "product" | "manual";
5621
+ sourceKind: "product" | "usage" | "manual";
5496
5622
  providerInvoiceId: string | null;
5497
5623
  status: "void" | "pending" | "failed" | "paid" | "open" | "accruing";
5498
5624
  currency: "USD" | "EUR" | "CNY" | "GBP" | "JPY" | "CAD" | "AUD" | "NZD" | "CHF" | "HKD" | "SGD" | "KRW" | "INR" | "BRL" | "MXN" | "TWD" | "THB" | "IDR" | "MYR" | "PHP" | "VND" | "ZAR" | "AED" | "SAR" | "SEK" | "NOK" | "DKK" | "PLN" | "CZK" | "HUF" | "ILS" | "TRY" | "RON";
@@ -5554,7 +5680,7 @@ declare function createIndiana(options: IndianaOptions): {
5554
5680
  };
5555
5681
  invoice: {
5556
5682
  id: string;
5557
- sourceKind: "usage" | "product" | "manual";
5683
+ sourceKind: "product" | "usage" | "manual";
5558
5684
  providerInvoiceId: string | null;
5559
5685
  status: "void" | "pending" | "failed" | "paid" | "open" | "accruing";
5560
5686
  currency: "USD" | "EUR" | "CNY" | "GBP" | "JPY" | "CAD" | "AUD" | "NZD" | "CHF" | "HKD" | "SGD" | "KRW" | "INR" | "BRL" | "MXN" | "TWD" | "THB" | "IDR" | "MYR" | "PHP" | "VND" | "ZAR" | "AED" | "SAR" | "SEK" | "NOK" | "DKK" | "PLN" | "CZK" | "HUF" | "ILS" | "TRY" | "RON";
@@ -5656,7 +5782,7 @@ declare function createIndiana(options: IndianaOptions): {
5656
5782
  occurredAt: string;
5657
5783
  } | {
5658
5784
  type: "transaction";
5659
- purpose: "invoice" | "product";
5785
+ purpose: "product" | "invoice";
5660
5786
  productVersionId: string | null;
5661
5787
  productName: string | null;
5662
5788
  productVersion: number | null;
@@ -6636,9 +6762,23 @@ declare function createFunnelClient(options: IndianaOptions & {
6636
6762
  presentation: {
6637
6763
  type: "modal";
6638
6764
  size: "sm" | "md" | "lg";
6765
+ desktopWidth?: {
6766
+ min: number;
6767
+ max: number;
6768
+ viewport: number;
6769
+ } | undefined;
6770
+ mobile?: "sheet" | "fullscreen" | undefined;
6771
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
6639
6772
  } | {
6640
6773
  type: "sheet";
6641
6774
  size: "sm" | "md" | "lg";
6775
+ desktopWidth?: {
6776
+ min: number;
6777
+ max: number;
6778
+ viewport: number;
6779
+ } | undefined;
6780
+ mobile?: "sheet" | "fullscreen" | undefined;
6781
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
6642
6782
  } | {
6643
6783
  type: "fullscreen";
6644
6784
  } | {
@@ -6941,13 +7081,27 @@ declare function createFunnelClient(options: IndianaOptions & {
6941
7081
  kind: "screen";
6942
7082
  schemaVersion: 4;
6943
7083
  name: string;
6944
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
7084
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
6945
7085
  presentation: {
6946
7086
  type: "modal";
6947
7087
  size: "sm" | "md" | "lg";
7088
+ desktopWidth?: {
7089
+ min: number;
7090
+ max: number;
7091
+ viewport: number;
7092
+ } | undefined;
7093
+ mobile?: "sheet" | "fullscreen" | undefined;
7094
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
6948
7095
  } | {
6949
7096
  type: "sheet";
6950
7097
  size: "sm" | "md" | "lg";
7098
+ desktopWidth?: {
7099
+ min: number;
7100
+ max: number;
7101
+ viewport: number;
7102
+ } | undefined;
7103
+ mobile?: "sheet" | "fullscreen" | undefined;
7104
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
6951
7105
  } | {
6952
7106
  type: "fullscreen";
6953
7107
  } | {
@@ -6957,8 +7111,16 @@ declare function createFunnelClient(options: IndianaOptions & {
6957
7111
  primary: string;
6958
7112
  background: string;
6959
7113
  text: string;
6960
- radius: "none" | "full" | "sm" | "md" | "lg";
7114
+ radius: "sm" | "md" | "lg" | "none" | "full";
6961
7115
  font: "system" | "serif" | "rounded" | "mono";
7116
+ fontAssets?: {
7117
+ family: string;
7118
+ faces: {
7119
+ url: string;
7120
+ weight: number;
7121
+ family?: string | undefined;
7122
+ }[];
7123
+ } | undefined;
6962
7124
  };
6963
7125
  pages: {
6964
7126
  id: string;
@@ -6968,8 +7130,16 @@ declare function createFunnelClient(options: IndianaOptions & {
6968
7130
  primary: string;
6969
7131
  background: string;
6970
7132
  text: string;
6971
- radius: "none" | "full" | "sm" | "md" | "lg";
7133
+ radius: "sm" | "md" | "lg" | "none" | "full";
6972
7134
  font: "system" | "serif" | "rounded" | "mono";
7135
+ fontAssets?: {
7136
+ family: string;
7137
+ faces: {
7138
+ url: string;
7139
+ weight: number;
7140
+ family?: string | undefined;
7141
+ }[];
7142
+ } | undefined;
6973
7143
  } | undefined;
6974
7144
  editorPosition?: {
6975
7145
  x: number;
@@ -7024,10 +7194,10 @@ declare function createFunnelClient(options: IndianaOptions & {
7024
7194
  base: {
7025
7195
  text?: string | undefined;
7026
7196
  label?: string | undefined;
7197
+ couponId?: string | undefined;
7027
7198
  alt?: string | undefined;
7028
7199
  html?: string | undefined;
7029
7200
  countdownAt?: string | undefined;
7030
- couponId?: string | undefined;
7031
7201
  missing?: string[] | undefined;
7032
7202
  };
7033
7203
  }>;
@@ -7363,9 +7533,23 @@ declare function createFunnelClient(options: IndianaOptions & {
7363
7533
  presentation: {
7364
7534
  type: "modal";
7365
7535
  size: "sm" | "md" | "lg";
7536
+ desktopWidth?: {
7537
+ min: number;
7538
+ max: number;
7539
+ viewport: number;
7540
+ } | undefined;
7541
+ mobile?: "sheet" | "fullscreen" | undefined;
7542
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
7366
7543
  } | {
7367
7544
  type: "sheet";
7368
7545
  size: "sm" | "md" | "lg";
7546
+ desktopWidth?: {
7547
+ min: number;
7548
+ max: number;
7549
+ viewport: number;
7550
+ } | undefined;
7551
+ mobile?: "sheet" | "fullscreen" | undefined;
7552
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
7369
7553
  } | {
7370
7554
  type: "fullscreen";
7371
7555
  } | {
@@ -7375,13 +7559,27 @@ declare function createFunnelClient(options: IndianaOptions & {
7375
7559
  kind: "screen";
7376
7560
  schemaVersion: 4;
7377
7561
  name: string;
7378
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
7562
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
7379
7563
  presentation: {
7380
7564
  type: "modal";
7381
7565
  size: "sm" | "md" | "lg";
7566
+ desktopWidth?: {
7567
+ min: number;
7568
+ max: number;
7569
+ viewport: number;
7570
+ } | undefined;
7571
+ mobile?: "sheet" | "fullscreen" | undefined;
7572
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
7382
7573
  } | {
7383
7574
  type: "sheet";
7384
7575
  size: "sm" | "md" | "lg";
7576
+ desktopWidth?: {
7577
+ min: number;
7578
+ max: number;
7579
+ viewport: number;
7580
+ } | undefined;
7581
+ mobile?: "sheet" | "fullscreen" | undefined;
7582
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
7385
7583
  } | {
7386
7584
  type: "fullscreen";
7387
7585
  } | {
@@ -7391,8 +7589,16 @@ declare function createFunnelClient(options: IndianaOptions & {
7391
7589
  primary: string;
7392
7590
  background: string;
7393
7591
  text: string;
7394
- radius: "none" | "full" | "sm" | "md" | "lg";
7592
+ radius: "sm" | "md" | "lg" | "none" | "full";
7395
7593
  font: "system" | "serif" | "rounded" | "mono";
7594
+ fontAssets?: {
7595
+ family: string;
7596
+ faces: {
7597
+ url: string;
7598
+ weight: number;
7599
+ family?: string | undefined;
7600
+ }[];
7601
+ } | undefined;
7396
7602
  };
7397
7603
  pages: {
7398
7604
  id: string;
@@ -7402,8 +7608,16 @@ declare function createFunnelClient(options: IndianaOptions & {
7402
7608
  primary: string;
7403
7609
  background: string;
7404
7610
  text: string;
7405
- radius: "none" | "full" | "sm" | "md" | "lg";
7611
+ radius: "sm" | "md" | "lg" | "none" | "full";
7406
7612
  font: "system" | "serif" | "rounded" | "mono";
7613
+ fontAssets?: {
7614
+ family: string;
7615
+ faces: {
7616
+ url: string;
7617
+ weight: number;
7618
+ family?: string | undefined;
7619
+ }[];
7620
+ } | undefined;
7407
7621
  } | undefined;
7408
7622
  editorPosition?: {
7409
7623
  x: number;
@@ -7835,7 +8049,7 @@ declare function createFunnelClient(options: IndianaOptions & {
7835
8049
  entry: string;
7836
8050
  nodes: {
7837
8051
  id: string;
7838
- type: "output" | "action" | "split" | "feature" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
8052
+ type: "output" | "action" | "screen" | "end" | "coupon" | "split" | "feature" | "condition" | "entry" | "offering" | "coupons" | "external_page" | "wait";
7839
8053
  outputs: Record<string, string>;
7840
8054
  writes: Record<string, string>;
7841
8055
  resources: {
@@ -7909,7 +8123,7 @@ declare function createFunnelClient(options: IndianaOptions & {
7909
8123
  revision: number;
7910
8124
  visit: number;
7911
8125
  nodeId: string;
7912
- nodeType: "output" | "action" | "split" | "feature" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
8126
+ nodeType: "output" | "action" | "screen" | "end" | "coupon" | "split" | "feature" | "condition" | "entry" | "offering" | "coupons" | "external_page" | "wait";
7913
8127
  status: "failed" | "running" | "completed" | "closed" | "ineligible" | "waiting";
7914
8128
  stopped: boolean;
7915
8129
  canBack: boolean;
@@ -7926,13 +8140,27 @@ declare function createFunnelClient(options: IndianaOptions & {
7926
8140
  kind: "screen";
7927
8141
  schemaVersion: 4;
7928
8142
  name: string;
7929
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
8143
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
7930
8144
  presentation: {
7931
8145
  type: "modal";
7932
8146
  size: "sm" | "md" | "lg";
8147
+ desktopWidth?: {
8148
+ min: number;
8149
+ max: number;
8150
+ viewport: number;
8151
+ } | undefined;
8152
+ mobile?: "sheet" | "fullscreen" | undefined;
8153
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
7933
8154
  } | {
7934
8155
  type: "sheet";
7935
8156
  size: "sm" | "md" | "lg";
8157
+ desktopWidth?: {
8158
+ min: number;
8159
+ max: number;
8160
+ viewport: number;
8161
+ } | undefined;
8162
+ mobile?: "sheet" | "fullscreen" | undefined;
8163
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
7936
8164
  } | {
7937
8165
  type: "fullscreen";
7938
8166
  } | {
@@ -7942,8 +8170,16 @@ declare function createFunnelClient(options: IndianaOptions & {
7942
8170
  primary: string;
7943
8171
  background: string;
7944
8172
  text: string;
7945
- radius: "none" | "full" | "sm" | "md" | "lg";
8173
+ radius: "sm" | "md" | "lg" | "none" | "full";
7946
8174
  font: "system" | "serif" | "rounded" | "mono";
8175
+ fontAssets?: {
8176
+ family: string;
8177
+ faces: {
8178
+ url: string;
8179
+ weight: number;
8180
+ family?: string | undefined;
8181
+ }[];
8182
+ } | undefined;
7947
8183
  };
7948
8184
  pages: {
7949
8185
  id: string;
@@ -7953,8 +8189,16 @@ declare function createFunnelClient(options: IndianaOptions & {
7953
8189
  primary: string;
7954
8190
  background: string;
7955
8191
  text: string;
7956
- radius: "none" | "full" | "sm" | "md" | "lg";
8192
+ radius: "sm" | "md" | "lg" | "none" | "full";
7957
8193
  font: "system" | "serif" | "rounded" | "mono";
8194
+ fontAssets?: {
8195
+ family: string;
8196
+ faces: {
8197
+ url: string;
8198
+ weight: number;
8199
+ family?: string | undefined;
8200
+ }[];
8201
+ } | undefined;
7958
8202
  } | undefined;
7959
8203
  editorPosition?: {
7960
8204
  x: number;
@@ -8006,9 +8250,23 @@ declare function createFunnelClient(options: IndianaOptions & {
8006
8250
  presentation: {
8007
8251
  type: "modal";
8008
8252
  size: "sm" | "md" | "lg";
8253
+ desktopWidth?: {
8254
+ min: number;
8255
+ max: number;
8256
+ viewport: number;
8257
+ } | undefined;
8258
+ mobile?: "sheet" | "fullscreen" | undefined;
8259
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
8009
8260
  } | {
8010
8261
  type: "sheet";
8011
8262
  size: "sm" | "md" | "lg";
8263
+ desktopWidth?: {
8264
+ min: number;
8265
+ max: number;
8266
+ viewport: number;
8267
+ } | undefined;
8268
+ mobile?: "sheet" | "fullscreen" | undefined;
8269
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
8012
8270
  } | {
8013
8271
  type: "fullscreen";
8014
8272
  } | {
@@ -8248,44 +8506,53 @@ declare function createFunnelClient(options: IndianaOptions & {
8248
8506
  presentation: {
8249
8507
  type: "modal";
8250
8508
  size: "sm" | "md" | "lg";
8509
+ desktopWidth?: {
8510
+ min: number;
8511
+ max: number;
8512
+ viewport: number;
8513
+ } | undefined;
8514
+ mobile?: "sheet" | "fullscreen" | undefined;
8515
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
8251
8516
  } | {
8252
8517
  type: "sheet";
8253
8518
  size: "sm" | "md" | "lg";
8519
+ desktopWidth?: {
8520
+ min: number;
8521
+ max: number;
8522
+ viewport: number;
8523
+ } | undefined;
8524
+ mobile?: "sheet" | "fullscreen" | undefined;
8525
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
8254
8526
  } | {
8255
8527
  type: "fullscreen";
8256
8528
  } | {
8257
8529
  type: "inline";
8258
8530
  };
8259
- offeringVersionId: string | null;
8260
- products: {
8261
- items: {
8262
- productVersionId: string;
8263
- label: string;
8264
- }[];
8265
- defaultProductVersionId: string | null;
8266
- grouping?: {
8267
- tiers: {
8268
- id: string;
8269
- name: string;
8270
- }[];
8271
- assignments: {
8272
- productVersionId: string;
8273
- tierId: string;
8274
- period: "month" | "year";
8275
- }[];
8276
- } | undefined;
8277
- };
8278
8531
  screen: {
8279
8532
  kind: "screen";
8280
8533
  schemaVersion: 4;
8281
8534
  name: string;
8282
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
8535
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
8283
8536
  presentation: {
8284
8537
  type: "modal";
8285
8538
  size: "sm" | "md" | "lg";
8539
+ desktopWidth?: {
8540
+ min: number;
8541
+ max: number;
8542
+ viewport: number;
8543
+ } | undefined;
8544
+ mobile?: "sheet" | "fullscreen" | undefined;
8545
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
8286
8546
  } | {
8287
8547
  type: "sheet";
8288
8548
  size: "sm" | "md" | "lg";
8549
+ desktopWidth?: {
8550
+ min: number;
8551
+ max: number;
8552
+ viewport: number;
8553
+ } | undefined;
8554
+ mobile?: "sheet" | "fullscreen" | undefined;
8555
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
8289
8556
  } | {
8290
8557
  type: "fullscreen";
8291
8558
  } | {
@@ -8295,8 +8562,16 @@ declare function createFunnelClient(options: IndianaOptions & {
8295
8562
  primary: string;
8296
8563
  background: string;
8297
8564
  text: string;
8298
- radius: "none" | "full" | "sm" | "md" | "lg";
8565
+ radius: "sm" | "md" | "lg" | "none" | "full";
8299
8566
  font: "system" | "serif" | "rounded" | "mono";
8567
+ fontAssets?: {
8568
+ family: string;
8569
+ faces: {
8570
+ url: string;
8571
+ weight: number;
8572
+ family?: string | undefined;
8573
+ }[];
8574
+ } | undefined;
8300
8575
  };
8301
8576
  pages: {
8302
8577
  id: string;
@@ -8306,8 +8581,16 @@ declare function createFunnelClient(options: IndianaOptions & {
8306
8581
  primary: string;
8307
8582
  background: string;
8308
8583
  text: string;
8309
- radius: "none" | "full" | "sm" | "md" | "lg";
8584
+ radius: "sm" | "md" | "lg" | "none" | "full";
8310
8585
  font: "system" | "serif" | "rounded" | "mono";
8586
+ fontAssets?: {
8587
+ family: string;
8588
+ faces: {
8589
+ url: string;
8590
+ weight: number;
8591
+ family?: string | undefined;
8592
+ }[];
8593
+ } | undefined;
8311
8594
  } | undefined;
8312
8595
  editorPosition?: {
8313
8596
  x: number;
@@ -8355,6 +8638,25 @@ declare function createFunnelClient(options: IndianaOptions & {
8355
8638
  initialPageId?: string | undefined;
8356
8639
  };
8357
8640
  schemaVersion: 3;
8641
+ offeringVersionId: string | null;
8642
+ products: {
8643
+ items: {
8644
+ productVersionId: string;
8645
+ label: string;
8646
+ }[];
8647
+ defaultProductVersionId: string | null;
8648
+ grouping?: {
8649
+ tiers: {
8650
+ id: string;
8651
+ name: string;
8652
+ }[];
8653
+ assignments: {
8654
+ productVersionId: string;
8655
+ tierId: string;
8656
+ period: "month" | "year";
8657
+ }[];
8658
+ } | undefined;
8659
+ };
8358
8660
  buttons: Record<string, {
8359
8661
  type: "checkout";
8360
8662
  product: {
@@ -9532,7 +9834,7 @@ declare function createFunnelClient(options: IndianaOptions & {
9532
9834
  } | {
9533
9835
  type: "wait";
9534
9836
  receiptId: string;
9535
- kind: "operation" | "event" | "timer";
9837
+ kind: "event" | "operation" | "timer";
9536
9838
  deadline: string | null;
9537
9839
  eventName?: string | undefined;
9538
9840
  } | {
@@ -9705,6 +10007,7 @@ declare function createFunnelClient(options: IndianaOptions & {
9705
10007
  operationId: string;
9706
10008
  generation: number;
9707
10009
  } | null;
10010
+ readonly hasDurableJournal: boolean;
9708
10011
  readonly prediction: FunnelSegmentPrediction | null;
9709
10012
  settle: (requestId: string) => Promise<{
9710
10013
  scope: {
@@ -9721,7 +10024,7 @@ declare function createFunnelClient(options: IndianaOptions & {
9721
10024
  revision: number;
9722
10025
  visit: number;
9723
10026
  nodeId: string;
9724
- nodeType: "output" | "action" | "split" | "feature" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
10027
+ nodeType: "output" | "action" | "screen" | "end" | "coupon" | "split" | "feature" | "condition" | "entry" | "offering" | "coupons" | "external_page" | "wait";
9725
10028
  status: "failed" | "running" | "completed" | "closed" | "ineligible" | "waiting";
9726
10029
  stopped: boolean;
9727
10030
  canBack: boolean;
@@ -9738,13 +10041,27 @@ declare function createFunnelClient(options: IndianaOptions & {
9738
10041
  kind: "screen";
9739
10042
  schemaVersion: 4;
9740
10043
  name: string;
9741
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
10044
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
9742
10045
  presentation: {
9743
10046
  type: "modal";
9744
10047
  size: "sm" | "md" | "lg";
10048
+ desktopWidth?: {
10049
+ min: number;
10050
+ max: number;
10051
+ viewport: number;
10052
+ } | undefined;
10053
+ mobile?: "sheet" | "fullscreen" | undefined;
10054
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
9745
10055
  } | {
9746
10056
  type: "sheet";
9747
10057
  size: "sm" | "md" | "lg";
10058
+ desktopWidth?: {
10059
+ min: number;
10060
+ max: number;
10061
+ viewport: number;
10062
+ } | undefined;
10063
+ mobile?: "sheet" | "fullscreen" | undefined;
10064
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
9748
10065
  } | {
9749
10066
  type: "fullscreen";
9750
10067
  } | {
@@ -9754,8 +10071,16 @@ declare function createFunnelClient(options: IndianaOptions & {
9754
10071
  primary: string;
9755
10072
  background: string;
9756
10073
  text: string;
9757
- radius: "none" | "full" | "sm" | "md" | "lg";
10074
+ radius: "sm" | "md" | "lg" | "none" | "full";
9758
10075
  font: "system" | "serif" | "rounded" | "mono";
10076
+ fontAssets?: {
10077
+ family: string;
10078
+ faces: {
10079
+ url: string;
10080
+ weight: number;
10081
+ family?: string | undefined;
10082
+ }[];
10083
+ } | undefined;
9759
10084
  };
9760
10085
  pages: {
9761
10086
  id: string;
@@ -9765,8 +10090,16 @@ declare function createFunnelClient(options: IndianaOptions & {
9765
10090
  primary: string;
9766
10091
  background: string;
9767
10092
  text: string;
9768
- radius: "none" | "full" | "sm" | "md" | "lg";
10093
+ radius: "sm" | "md" | "lg" | "none" | "full";
9769
10094
  font: "system" | "serif" | "rounded" | "mono";
10095
+ fontAssets?: {
10096
+ family: string;
10097
+ faces: {
10098
+ url: string;
10099
+ weight: number;
10100
+ family?: string | undefined;
10101
+ }[];
10102
+ } | undefined;
9770
10103
  } | undefined;
9771
10104
  editorPosition?: {
9772
10105
  x: number;
@@ -9818,9 +10151,23 @@ declare function createFunnelClient(options: IndianaOptions & {
9818
10151
  presentation: {
9819
10152
  type: "modal";
9820
10153
  size: "sm" | "md" | "lg";
10154
+ desktopWidth?: {
10155
+ min: number;
10156
+ max: number;
10157
+ viewport: number;
10158
+ } | undefined;
10159
+ mobile?: "sheet" | "fullscreen" | undefined;
10160
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
9821
10161
  } | {
9822
10162
  type: "sheet";
9823
10163
  size: "sm" | "md" | "lg";
10164
+ desktopWidth?: {
10165
+ min: number;
10166
+ max: number;
10167
+ viewport: number;
10168
+ } | undefined;
10169
+ mobile?: "sheet" | "fullscreen" | undefined;
10170
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
9824
10171
  } | {
9825
10172
  type: "fullscreen";
9826
10173
  } | {
@@ -10060,44 +10407,53 @@ declare function createFunnelClient(options: IndianaOptions & {
10060
10407
  presentation: {
10061
10408
  type: "modal";
10062
10409
  size: "sm" | "md" | "lg";
10410
+ desktopWidth?: {
10411
+ min: number;
10412
+ max: number;
10413
+ viewport: number;
10414
+ } | undefined;
10415
+ mobile?: "sheet" | "fullscreen" | undefined;
10416
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
10063
10417
  } | {
10064
10418
  type: "sheet";
10065
10419
  size: "sm" | "md" | "lg";
10420
+ desktopWidth?: {
10421
+ min: number;
10422
+ max: number;
10423
+ viewport: number;
10424
+ } | undefined;
10425
+ mobile?: "sheet" | "fullscreen" | undefined;
10426
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
10066
10427
  } | {
10067
10428
  type: "fullscreen";
10068
10429
  } | {
10069
10430
  type: "inline";
10070
10431
  };
10071
- offeringVersionId: string | null;
10072
- products: {
10073
- items: {
10074
- productVersionId: string;
10075
- label: string;
10076
- }[];
10077
- defaultProductVersionId: string | null;
10078
- grouping?: {
10079
- tiers: {
10080
- id: string;
10081
- name: string;
10082
- }[];
10083
- assignments: {
10084
- productVersionId: string;
10085
- tierId: string;
10086
- period: "month" | "year";
10087
- }[];
10088
- } | undefined;
10089
- };
10090
10432
  screen: {
10091
10433
  kind: "screen";
10092
10434
  schemaVersion: 4;
10093
10435
  name: string;
10094
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
10436
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
10095
10437
  presentation: {
10096
10438
  type: "modal";
10097
10439
  size: "sm" | "md" | "lg";
10440
+ desktopWidth?: {
10441
+ min: number;
10442
+ max: number;
10443
+ viewport: number;
10444
+ } | undefined;
10445
+ mobile?: "sheet" | "fullscreen" | undefined;
10446
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
10098
10447
  } | {
10099
10448
  type: "sheet";
10100
10449
  size: "sm" | "md" | "lg";
10450
+ desktopWidth?: {
10451
+ min: number;
10452
+ max: number;
10453
+ viewport: number;
10454
+ } | undefined;
10455
+ mobile?: "sheet" | "fullscreen" | undefined;
10456
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
10101
10457
  } | {
10102
10458
  type: "fullscreen";
10103
10459
  } | {
@@ -10107,8 +10463,16 @@ declare function createFunnelClient(options: IndianaOptions & {
10107
10463
  primary: string;
10108
10464
  background: string;
10109
10465
  text: string;
10110
- radius: "none" | "full" | "sm" | "md" | "lg";
10466
+ radius: "sm" | "md" | "lg" | "none" | "full";
10111
10467
  font: "system" | "serif" | "rounded" | "mono";
10468
+ fontAssets?: {
10469
+ family: string;
10470
+ faces: {
10471
+ url: string;
10472
+ weight: number;
10473
+ family?: string | undefined;
10474
+ }[];
10475
+ } | undefined;
10112
10476
  };
10113
10477
  pages: {
10114
10478
  id: string;
@@ -10118,8 +10482,16 @@ declare function createFunnelClient(options: IndianaOptions & {
10118
10482
  primary: string;
10119
10483
  background: string;
10120
10484
  text: string;
10121
- radius: "none" | "full" | "sm" | "md" | "lg";
10485
+ radius: "sm" | "md" | "lg" | "none" | "full";
10122
10486
  font: "system" | "serif" | "rounded" | "mono";
10487
+ fontAssets?: {
10488
+ family: string;
10489
+ faces: {
10490
+ url: string;
10491
+ weight: number;
10492
+ family?: string | undefined;
10493
+ }[];
10494
+ } | undefined;
10123
10495
  } | undefined;
10124
10496
  editorPosition?: {
10125
10497
  x: number;
@@ -10167,6 +10539,25 @@ declare function createFunnelClient(options: IndianaOptions & {
10167
10539
  initialPageId?: string | undefined;
10168
10540
  };
10169
10541
  schemaVersion: 3;
10542
+ offeringVersionId: string | null;
10543
+ products: {
10544
+ items: {
10545
+ productVersionId: string;
10546
+ label: string;
10547
+ }[];
10548
+ defaultProductVersionId: string | null;
10549
+ grouping?: {
10550
+ tiers: {
10551
+ id: string;
10552
+ name: string;
10553
+ }[];
10554
+ assignments: {
10555
+ productVersionId: string;
10556
+ tierId: string;
10557
+ period: "month" | "year";
10558
+ }[];
10559
+ } | undefined;
10560
+ };
10170
10561
  buttons: Record<string, {
10171
10562
  type: "checkout";
10172
10563
  product: {
@@ -11344,7 +11735,7 @@ declare function createFunnelClient(options: IndianaOptions & {
11344
11735
  } | {
11345
11736
  type: "wait";
11346
11737
  receiptId: string;
11347
- kind: "operation" | "event" | "timer";
11738
+ kind: "event" | "operation" | "timer";
11348
11739
  deadline: string | null;
11349
11740
  eventName?: string | undefined;
11350
11741
  } | {
@@ -12208,13 +12599,27 @@ declare function createFunnelClient(options: IndianaOptions & {
12208
12599
  kind: "screen";
12209
12600
  schemaVersion: 4;
12210
12601
  name: string;
12211
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
12602
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
12212
12603
  presentation: {
12213
12604
  type: "modal";
12214
12605
  size: "sm" | "md" | "lg";
12606
+ desktopWidth?: {
12607
+ min: number;
12608
+ max: number;
12609
+ viewport: number;
12610
+ } | undefined;
12611
+ mobile?: "sheet" | "fullscreen" | undefined;
12612
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
12215
12613
  } | {
12216
12614
  type: "sheet";
12217
12615
  size: "sm" | "md" | "lg";
12616
+ desktopWidth?: {
12617
+ min: number;
12618
+ max: number;
12619
+ viewport: number;
12620
+ } | undefined;
12621
+ mobile?: "sheet" | "fullscreen" | undefined;
12622
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
12218
12623
  } | {
12219
12624
  type: "fullscreen";
12220
12625
  } | {
@@ -12224,8 +12629,16 @@ declare function createFunnelClient(options: IndianaOptions & {
12224
12629
  primary: string;
12225
12630
  background: string;
12226
12631
  text: string;
12227
- radius: "none" | "full" | "sm" | "md" | "lg";
12632
+ radius: "sm" | "md" | "lg" | "none" | "full";
12228
12633
  font: "system" | "serif" | "rounded" | "mono";
12634
+ fontAssets?: {
12635
+ family: string;
12636
+ faces: {
12637
+ url: string;
12638
+ weight: number;
12639
+ family?: string | undefined;
12640
+ }[];
12641
+ } | undefined;
12229
12642
  };
12230
12643
  pages: {
12231
12644
  id: string;
@@ -12235,8 +12648,16 @@ declare function createFunnelClient(options: IndianaOptions & {
12235
12648
  primary: string;
12236
12649
  background: string;
12237
12650
  text: string;
12238
- radius: "none" | "full" | "sm" | "md" | "lg";
12651
+ radius: "sm" | "md" | "lg" | "none" | "full";
12239
12652
  font: "system" | "serif" | "rounded" | "mono";
12653
+ fontAssets?: {
12654
+ family: string;
12655
+ faces: {
12656
+ url: string;
12657
+ weight: number;
12658
+ family?: string | undefined;
12659
+ }[];
12660
+ } | undefined;
12240
12661
  } | undefined;
12241
12662
  editorPosition?: {
12242
12663
  x: number;
@@ -12316,44 +12737,53 @@ declare function createFunnelClient(options: IndianaOptions & {
12316
12737
  presentation: {
12317
12738
  type: "modal";
12318
12739
  size: "sm" | "md" | "lg";
12740
+ desktopWidth?: {
12741
+ min: number;
12742
+ max: number;
12743
+ viewport: number;
12744
+ } | undefined;
12745
+ mobile?: "sheet" | "fullscreen" | undefined;
12746
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
12319
12747
  } | {
12320
12748
  type: "sheet";
12321
12749
  size: "sm" | "md" | "lg";
12750
+ desktopWidth?: {
12751
+ min: number;
12752
+ max: number;
12753
+ viewport: number;
12754
+ } | undefined;
12755
+ mobile?: "sheet" | "fullscreen" | undefined;
12756
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
12322
12757
  } | {
12323
12758
  type: "fullscreen";
12324
12759
  } | {
12325
12760
  type: "inline";
12326
12761
  };
12327
- offeringVersionId: string | null;
12328
- products: {
12329
- items: {
12330
- productVersionId: string;
12331
- label: string;
12332
- }[];
12333
- defaultProductVersionId: string | null;
12334
- grouping?: {
12335
- tiers: {
12336
- id: string;
12337
- name: string;
12338
- }[];
12339
- assignments: {
12340
- productVersionId: string;
12341
- tierId: string;
12342
- period: "month" | "year";
12343
- }[];
12344
- } | undefined;
12345
- };
12346
12762
  screen: {
12347
12763
  kind: "screen";
12348
12764
  schemaVersion: 4;
12349
12765
  name: string;
12350
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
12766
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
12351
12767
  presentation: {
12352
12768
  type: "modal";
12353
12769
  size: "sm" | "md" | "lg";
12770
+ desktopWidth?: {
12771
+ min: number;
12772
+ max: number;
12773
+ viewport: number;
12774
+ } | undefined;
12775
+ mobile?: "sheet" | "fullscreen" | undefined;
12776
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
12354
12777
  } | {
12355
12778
  type: "sheet";
12356
12779
  size: "sm" | "md" | "lg";
12780
+ desktopWidth?: {
12781
+ min: number;
12782
+ max: number;
12783
+ viewport: number;
12784
+ } | undefined;
12785
+ mobile?: "sheet" | "fullscreen" | undefined;
12786
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
12357
12787
  } | {
12358
12788
  type: "fullscreen";
12359
12789
  } | {
@@ -12363,8 +12793,16 @@ declare function createFunnelClient(options: IndianaOptions & {
12363
12793
  primary: string;
12364
12794
  background: string;
12365
12795
  text: string;
12366
- radius: "none" | "full" | "sm" | "md" | "lg";
12796
+ radius: "sm" | "md" | "lg" | "none" | "full";
12367
12797
  font: "system" | "serif" | "rounded" | "mono";
12798
+ fontAssets?: {
12799
+ family: string;
12800
+ faces: {
12801
+ url: string;
12802
+ weight: number;
12803
+ family?: string | undefined;
12804
+ }[];
12805
+ } | undefined;
12368
12806
  };
12369
12807
  pages: {
12370
12808
  id: string;
@@ -12374,8 +12812,16 @@ declare function createFunnelClient(options: IndianaOptions & {
12374
12812
  primary: string;
12375
12813
  background: string;
12376
12814
  text: string;
12377
- radius: "none" | "full" | "sm" | "md" | "lg";
12815
+ radius: "sm" | "md" | "lg" | "none" | "full";
12378
12816
  font: "system" | "serif" | "rounded" | "mono";
12817
+ fontAssets?: {
12818
+ family: string;
12819
+ faces: {
12820
+ url: string;
12821
+ weight: number;
12822
+ family?: string | undefined;
12823
+ }[];
12824
+ } | undefined;
12379
12825
  } | undefined;
12380
12826
  editorPosition?: {
12381
12827
  x: number;
@@ -12423,6 +12869,25 @@ declare function createFunnelClient(options: IndianaOptions & {
12423
12869
  initialPageId?: string | undefined;
12424
12870
  };
12425
12871
  schemaVersion: 3;
12872
+ offeringVersionId: string | null;
12873
+ products: {
12874
+ items: {
12875
+ productVersionId: string;
12876
+ label: string;
12877
+ }[];
12878
+ defaultProductVersionId: string | null;
12879
+ grouping?: {
12880
+ tiers: {
12881
+ id: string;
12882
+ name: string;
12883
+ }[];
12884
+ assignments: {
12885
+ productVersionId: string;
12886
+ tierId: string;
12887
+ period: "month" | "year";
12888
+ }[];
12889
+ } | undefined;
12890
+ };
12426
12891
  buttons: Record<string, {
12427
12892
  type: "checkout";
12428
12893
  product: {
@@ -12750,7 +13215,7 @@ declare function createFunnelClient(options: IndianaOptions & {
12750
13215
  revision: number;
12751
13216
  visit: number;
12752
13217
  nodeId: string;
12753
- nodeType: "output" | "action" | "split" | "feature" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
13218
+ nodeType: "output" | "action" | "screen" | "end" | "coupon" | "split" | "feature" | "condition" | "entry" | "offering" | "coupons" | "external_page" | "wait";
12754
13219
  status: "failed" | "running" | "completed" | "closed" | "ineligible" | "waiting";
12755
13220
  stopped: boolean;
12756
13221
  canBack: boolean;
@@ -12767,13 +13232,27 @@ declare function createFunnelClient(options: IndianaOptions & {
12767
13232
  kind: "screen";
12768
13233
  schemaVersion: 4;
12769
13234
  name: string;
12770
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
13235
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
12771
13236
  presentation: {
12772
13237
  type: "modal";
12773
13238
  size: "sm" | "md" | "lg";
13239
+ desktopWidth?: {
13240
+ min: number;
13241
+ max: number;
13242
+ viewport: number;
13243
+ } | undefined;
13244
+ mobile?: "sheet" | "fullscreen" | undefined;
13245
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
12774
13246
  } | {
12775
13247
  type: "sheet";
12776
13248
  size: "sm" | "md" | "lg";
13249
+ desktopWidth?: {
13250
+ min: number;
13251
+ max: number;
13252
+ viewport: number;
13253
+ } | undefined;
13254
+ mobile?: "sheet" | "fullscreen" | undefined;
13255
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
12777
13256
  } | {
12778
13257
  type: "fullscreen";
12779
13258
  } | {
@@ -12783,8 +13262,16 @@ declare function createFunnelClient(options: IndianaOptions & {
12783
13262
  primary: string;
12784
13263
  background: string;
12785
13264
  text: string;
12786
- radius: "none" | "full" | "sm" | "md" | "lg";
13265
+ radius: "sm" | "md" | "lg" | "none" | "full";
12787
13266
  font: "system" | "serif" | "rounded" | "mono";
13267
+ fontAssets?: {
13268
+ family: string;
13269
+ faces: {
13270
+ url: string;
13271
+ weight: number;
13272
+ family?: string | undefined;
13273
+ }[];
13274
+ } | undefined;
12788
13275
  };
12789
13276
  pages: {
12790
13277
  id: string;
@@ -12794,8 +13281,16 @@ declare function createFunnelClient(options: IndianaOptions & {
12794
13281
  primary: string;
12795
13282
  background: string;
12796
13283
  text: string;
12797
- radius: "none" | "full" | "sm" | "md" | "lg";
13284
+ radius: "sm" | "md" | "lg" | "none" | "full";
12798
13285
  font: "system" | "serif" | "rounded" | "mono";
13286
+ fontAssets?: {
13287
+ family: string;
13288
+ faces: {
13289
+ url: string;
13290
+ weight: number;
13291
+ family?: string | undefined;
13292
+ }[];
13293
+ } | undefined;
12799
13294
  } | undefined;
12800
13295
  editorPosition?: {
12801
13296
  x: number;
@@ -12847,9 +13342,23 @@ declare function createFunnelClient(options: IndianaOptions & {
12847
13342
  presentation: {
12848
13343
  type: "modal";
12849
13344
  size: "sm" | "md" | "lg";
13345
+ desktopWidth?: {
13346
+ min: number;
13347
+ max: number;
13348
+ viewport: number;
13349
+ } | undefined;
13350
+ mobile?: "sheet" | "fullscreen" | undefined;
13351
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
12850
13352
  } | {
12851
13353
  type: "sheet";
12852
13354
  size: "sm" | "md" | "lg";
13355
+ desktopWidth?: {
13356
+ min: number;
13357
+ max: number;
13358
+ viewport: number;
13359
+ } | undefined;
13360
+ mobile?: "sheet" | "fullscreen" | undefined;
13361
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
12853
13362
  } | {
12854
13363
  type: "fullscreen";
12855
13364
  } | {
@@ -13089,44 +13598,53 @@ declare function createFunnelClient(options: IndianaOptions & {
13089
13598
  presentation: {
13090
13599
  type: "modal";
13091
13600
  size: "sm" | "md" | "lg";
13601
+ desktopWidth?: {
13602
+ min: number;
13603
+ max: number;
13604
+ viewport: number;
13605
+ } | undefined;
13606
+ mobile?: "sheet" | "fullscreen" | undefined;
13607
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
13092
13608
  } | {
13093
13609
  type: "sheet";
13094
13610
  size: "sm" | "md" | "lg";
13611
+ desktopWidth?: {
13612
+ min: number;
13613
+ max: number;
13614
+ viewport: number;
13615
+ } | undefined;
13616
+ mobile?: "sheet" | "fullscreen" | undefined;
13617
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
13095
13618
  } | {
13096
13619
  type: "fullscreen";
13097
13620
  } | {
13098
13621
  type: "inline";
13099
13622
  };
13100
- offeringVersionId: string | null;
13101
- products: {
13102
- items: {
13103
- productVersionId: string;
13104
- label: string;
13105
- }[];
13106
- defaultProductVersionId: string | null;
13107
- grouping?: {
13108
- tiers: {
13109
- id: string;
13110
- name: string;
13111
- }[];
13112
- assignments: {
13113
- productVersionId: string;
13114
- tierId: string;
13115
- period: "month" | "year";
13116
- }[];
13117
- } | undefined;
13118
- };
13119
13623
  screen: {
13120
13624
  kind: "screen";
13121
13625
  schemaVersion: 4;
13122
13626
  name: string;
13123
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
13627
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
13124
13628
  presentation: {
13125
13629
  type: "modal";
13126
13630
  size: "sm" | "md" | "lg";
13631
+ desktopWidth?: {
13632
+ min: number;
13633
+ max: number;
13634
+ viewport: number;
13635
+ } | undefined;
13636
+ mobile?: "sheet" | "fullscreen" | undefined;
13637
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
13127
13638
  } | {
13128
13639
  type: "sheet";
13129
13640
  size: "sm" | "md" | "lg";
13641
+ desktopWidth?: {
13642
+ min: number;
13643
+ max: number;
13644
+ viewport: number;
13645
+ } | undefined;
13646
+ mobile?: "sheet" | "fullscreen" | undefined;
13647
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
13130
13648
  } | {
13131
13649
  type: "fullscreen";
13132
13650
  } | {
@@ -13136,8 +13654,16 @@ declare function createFunnelClient(options: IndianaOptions & {
13136
13654
  primary: string;
13137
13655
  background: string;
13138
13656
  text: string;
13139
- radius: "none" | "full" | "sm" | "md" | "lg";
13657
+ radius: "sm" | "md" | "lg" | "none" | "full";
13140
13658
  font: "system" | "serif" | "rounded" | "mono";
13659
+ fontAssets?: {
13660
+ family: string;
13661
+ faces: {
13662
+ url: string;
13663
+ weight: number;
13664
+ family?: string | undefined;
13665
+ }[];
13666
+ } | undefined;
13141
13667
  };
13142
13668
  pages: {
13143
13669
  id: string;
@@ -13147,8 +13673,16 @@ declare function createFunnelClient(options: IndianaOptions & {
13147
13673
  primary: string;
13148
13674
  background: string;
13149
13675
  text: string;
13150
- radius: "none" | "full" | "sm" | "md" | "lg";
13676
+ radius: "sm" | "md" | "lg" | "none" | "full";
13151
13677
  font: "system" | "serif" | "rounded" | "mono";
13678
+ fontAssets?: {
13679
+ family: string;
13680
+ faces: {
13681
+ url: string;
13682
+ weight: number;
13683
+ family?: string | undefined;
13684
+ }[];
13685
+ } | undefined;
13152
13686
  } | undefined;
13153
13687
  editorPosition?: {
13154
13688
  x: number;
@@ -13196,6 +13730,25 @@ declare function createFunnelClient(options: IndianaOptions & {
13196
13730
  initialPageId?: string | undefined;
13197
13731
  };
13198
13732
  schemaVersion: 3;
13733
+ offeringVersionId: string | null;
13734
+ products: {
13735
+ items: {
13736
+ productVersionId: string;
13737
+ label: string;
13738
+ }[];
13739
+ defaultProductVersionId: string | null;
13740
+ grouping?: {
13741
+ tiers: {
13742
+ id: string;
13743
+ name: string;
13744
+ }[];
13745
+ assignments: {
13746
+ productVersionId: string;
13747
+ tierId: string;
13748
+ period: "month" | "year";
13749
+ }[];
13750
+ } | undefined;
13751
+ };
13199
13752
  buttons: Record<string, {
13200
13753
  type: "checkout";
13201
13754
  product: {
@@ -14373,7 +14926,7 @@ declare function createFunnelClient(options: IndianaOptions & {
14373
14926
  } | {
14374
14927
  type: "wait";
14375
14928
  receiptId: string;
14376
- kind: "operation" | "event" | "timer";
14929
+ kind: "event" | "operation" | "timer";
14377
14930
  deadline: string | null;
14378
14931
  eventName?: string | undefined;
14379
14932
  } | {
@@ -15237,13 +15790,27 @@ declare function createFunnelClient(options: IndianaOptions & {
15237
15790
  kind: "screen";
15238
15791
  schemaVersion: 4;
15239
15792
  name: string;
15240
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
15793
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
15241
15794
  presentation: {
15242
15795
  type: "modal";
15243
15796
  size: "sm" | "md" | "lg";
15797
+ desktopWidth?: {
15798
+ min: number;
15799
+ max: number;
15800
+ viewport: number;
15801
+ } | undefined;
15802
+ mobile?: "sheet" | "fullscreen" | undefined;
15803
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
15244
15804
  } | {
15245
15805
  type: "sheet";
15246
15806
  size: "sm" | "md" | "lg";
15807
+ desktopWidth?: {
15808
+ min: number;
15809
+ max: number;
15810
+ viewport: number;
15811
+ } | undefined;
15812
+ mobile?: "sheet" | "fullscreen" | undefined;
15813
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
15247
15814
  } | {
15248
15815
  type: "fullscreen";
15249
15816
  } | {
@@ -15253,8 +15820,16 @@ declare function createFunnelClient(options: IndianaOptions & {
15253
15820
  primary: string;
15254
15821
  background: string;
15255
15822
  text: string;
15256
- radius: "none" | "full" | "sm" | "md" | "lg";
15823
+ radius: "sm" | "md" | "lg" | "none" | "full";
15257
15824
  font: "system" | "serif" | "rounded" | "mono";
15825
+ fontAssets?: {
15826
+ family: string;
15827
+ faces: {
15828
+ url: string;
15829
+ weight: number;
15830
+ family?: string | undefined;
15831
+ }[];
15832
+ } | undefined;
15258
15833
  };
15259
15834
  pages: {
15260
15835
  id: string;
@@ -15264,8 +15839,16 @@ declare function createFunnelClient(options: IndianaOptions & {
15264
15839
  primary: string;
15265
15840
  background: string;
15266
15841
  text: string;
15267
- radius: "none" | "full" | "sm" | "md" | "lg";
15842
+ radius: "sm" | "md" | "lg" | "none" | "full";
15268
15843
  font: "system" | "serif" | "rounded" | "mono";
15844
+ fontAssets?: {
15845
+ family: string;
15846
+ faces: {
15847
+ url: string;
15848
+ weight: number;
15849
+ family?: string | undefined;
15850
+ }[];
15851
+ } | undefined;
15269
15852
  } | undefined;
15270
15853
  editorPosition?: {
15271
15854
  x: number;
@@ -15352,7 +15935,7 @@ declare function createFunnelClient(options: IndianaOptions & {
15352
15935
  revision: number;
15353
15936
  visit: number;
15354
15937
  nodeId: string;
15355
- nodeType: "output" | "action" | "split" | "feature" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
15938
+ nodeType: "output" | "action" | "screen" | "end" | "coupon" | "split" | "feature" | "condition" | "entry" | "offering" | "coupons" | "external_page" | "wait";
15356
15939
  status: "failed" | "running" | "completed" | "closed" | "ineligible" | "waiting";
15357
15940
  stopped: boolean;
15358
15941
  canBack: boolean;
@@ -15369,13 +15952,27 @@ declare function createFunnelClient(options: IndianaOptions & {
15369
15952
  kind: "screen";
15370
15953
  schemaVersion: 4;
15371
15954
  name: string;
15372
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
15955
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
15373
15956
  presentation: {
15374
15957
  type: "modal";
15375
15958
  size: "sm" | "md" | "lg";
15959
+ desktopWidth?: {
15960
+ min: number;
15961
+ max: number;
15962
+ viewport: number;
15963
+ } | undefined;
15964
+ mobile?: "sheet" | "fullscreen" | undefined;
15965
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
15376
15966
  } | {
15377
15967
  type: "sheet";
15378
15968
  size: "sm" | "md" | "lg";
15969
+ desktopWidth?: {
15970
+ min: number;
15971
+ max: number;
15972
+ viewport: number;
15973
+ } | undefined;
15974
+ mobile?: "sheet" | "fullscreen" | undefined;
15975
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
15379
15976
  } | {
15380
15977
  type: "fullscreen";
15381
15978
  } | {
@@ -15385,8 +15982,16 @@ declare function createFunnelClient(options: IndianaOptions & {
15385
15982
  primary: string;
15386
15983
  background: string;
15387
15984
  text: string;
15388
- radius: "none" | "full" | "sm" | "md" | "lg";
15985
+ radius: "sm" | "md" | "lg" | "none" | "full";
15389
15986
  font: "system" | "serif" | "rounded" | "mono";
15987
+ fontAssets?: {
15988
+ family: string;
15989
+ faces: {
15990
+ url: string;
15991
+ weight: number;
15992
+ family?: string | undefined;
15993
+ }[];
15994
+ } | undefined;
15390
15995
  };
15391
15996
  pages: {
15392
15997
  id: string;
@@ -15396,8 +16001,16 @@ declare function createFunnelClient(options: IndianaOptions & {
15396
16001
  primary: string;
15397
16002
  background: string;
15398
16003
  text: string;
15399
- radius: "none" | "full" | "sm" | "md" | "lg";
16004
+ radius: "sm" | "md" | "lg" | "none" | "full";
15400
16005
  font: "system" | "serif" | "rounded" | "mono";
16006
+ fontAssets?: {
16007
+ family: string;
16008
+ faces: {
16009
+ url: string;
16010
+ weight: number;
16011
+ family?: string | undefined;
16012
+ }[];
16013
+ } | undefined;
15401
16014
  } | undefined;
15402
16015
  editorPosition?: {
15403
16016
  x: number;
@@ -15449,9 +16062,23 @@ declare function createFunnelClient(options: IndianaOptions & {
15449
16062
  presentation: {
15450
16063
  type: "modal";
15451
16064
  size: "sm" | "md" | "lg";
16065
+ desktopWidth?: {
16066
+ min: number;
16067
+ max: number;
16068
+ viewport: number;
16069
+ } | undefined;
16070
+ mobile?: "sheet" | "fullscreen" | undefined;
16071
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
15452
16072
  } | {
15453
16073
  type: "sheet";
15454
16074
  size: "sm" | "md" | "lg";
16075
+ desktopWidth?: {
16076
+ min: number;
16077
+ max: number;
16078
+ viewport: number;
16079
+ } | undefined;
16080
+ mobile?: "sheet" | "fullscreen" | undefined;
16081
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
15455
16082
  } | {
15456
16083
  type: "fullscreen";
15457
16084
  } | {
@@ -15691,44 +16318,53 @@ declare function createFunnelClient(options: IndianaOptions & {
15691
16318
  presentation: {
15692
16319
  type: "modal";
15693
16320
  size: "sm" | "md" | "lg";
16321
+ desktopWidth?: {
16322
+ min: number;
16323
+ max: number;
16324
+ viewport: number;
16325
+ } | undefined;
16326
+ mobile?: "sheet" | "fullscreen" | undefined;
16327
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
15694
16328
  } | {
15695
16329
  type: "sheet";
15696
16330
  size: "sm" | "md" | "lg";
16331
+ desktopWidth?: {
16332
+ min: number;
16333
+ max: number;
16334
+ viewport: number;
16335
+ } | undefined;
16336
+ mobile?: "sheet" | "fullscreen" | undefined;
16337
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
15697
16338
  } | {
15698
16339
  type: "fullscreen";
15699
16340
  } | {
15700
16341
  type: "inline";
15701
16342
  };
15702
- offeringVersionId: string | null;
15703
- products: {
15704
- items: {
15705
- productVersionId: string;
15706
- label: string;
15707
- }[];
15708
- defaultProductVersionId: string | null;
15709
- grouping?: {
15710
- tiers: {
15711
- id: string;
15712
- name: string;
15713
- }[];
15714
- assignments: {
15715
- productVersionId: string;
15716
- tierId: string;
15717
- period: "month" | "year";
15718
- }[];
15719
- } | undefined;
15720
- };
15721
16343
  screen: {
15722
16344
  kind: "screen";
15723
16345
  schemaVersion: 4;
15724
16346
  name: string;
15725
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
16347
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
15726
16348
  presentation: {
15727
16349
  type: "modal";
15728
16350
  size: "sm" | "md" | "lg";
16351
+ desktopWidth?: {
16352
+ min: number;
16353
+ max: number;
16354
+ viewport: number;
16355
+ } | undefined;
16356
+ mobile?: "sheet" | "fullscreen" | undefined;
16357
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
15729
16358
  } | {
15730
16359
  type: "sheet";
15731
16360
  size: "sm" | "md" | "lg";
16361
+ desktopWidth?: {
16362
+ min: number;
16363
+ max: number;
16364
+ viewport: number;
16365
+ } | undefined;
16366
+ mobile?: "sheet" | "fullscreen" | undefined;
16367
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
15732
16368
  } | {
15733
16369
  type: "fullscreen";
15734
16370
  } | {
@@ -15738,8 +16374,16 @@ declare function createFunnelClient(options: IndianaOptions & {
15738
16374
  primary: string;
15739
16375
  background: string;
15740
16376
  text: string;
15741
- radius: "none" | "full" | "sm" | "md" | "lg";
16377
+ radius: "sm" | "md" | "lg" | "none" | "full";
15742
16378
  font: "system" | "serif" | "rounded" | "mono";
16379
+ fontAssets?: {
16380
+ family: string;
16381
+ faces: {
16382
+ url: string;
16383
+ weight: number;
16384
+ family?: string | undefined;
16385
+ }[];
16386
+ } | undefined;
15743
16387
  };
15744
16388
  pages: {
15745
16389
  id: string;
@@ -15749,8 +16393,16 @@ declare function createFunnelClient(options: IndianaOptions & {
15749
16393
  primary: string;
15750
16394
  background: string;
15751
16395
  text: string;
15752
- radius: "none" | "full" | "sm" | "md" | "lg";
16396
+ radius: "sm" | "md" | "lg" | "none" | "full";
15753
16397
  font: "system" | "serif" | "rounded" | "mono";
16398
+ fontAssets?: {
16399
+ family: string;
16400
+ faces: {
16401
+ url: string;
16402
+ weight: number;
16403
+ family?: string | undefined;
16404
+ }[];
16405
+ } | undefined;
15754
16406
  } | undefined;
15755
16407
  editorPosition?: {
15756
16408
  x: number;
@@ -15798,6 +16450,25 @@ declare function createFunnelClient(options: IndianaOptions & {
15798
16450
  initialPageId?: string | undefined;
15799
16451
  };
15800
16452
  schemaVersion: 3;
16453
+ offeringVersionId: string | null;
16454
+ products: {
16455
+ items: {
16456
+ productVersionId: string;
16457
+ label: string;
16458
+ }[];
16459
+ defaultProductVersionId: string | null;
16460
+ grouping?: {
16461
+ tiers: {
16462
+ id: string;
16463
+ name: string;
16464
+ }[];
16465
+ assignments: {
16466
+ productVersionId: string;
16467
+ tierId: string;
16468
+ period: "month" | "year";
16469
+ }[];
16470
+ } | undefined;
16471
+ };
15801
16472
  buttons: Record<string, {
15802
16473
  type: "checkout";
15803
16474
  product: {
@@ -16975,7 +17646,7 @@ declare function createFunnelClient(options: IndianaOptions & {
16975
17646
  } | {
16976
17647
  type: "wait";
16977
17648
  receiptId: string;
16978
- kind: "operation" | "event" | "timer";
17649
+ kind: "event" | "operation" | "timer";
16979
17650
  deadline: string | null;
16980
17651
  eventName?: string | undefined;
16981
17652
  } | {
@@ -17839,13 +18510,27 @@ declare function createFunnelClient(options: IndianaOptions & {
17839
18510
  kind: "screen";
17840
18511
  schemaVersion: 4;
17841
18512
  name: string;
17842
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
18513
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
17843
18514
  presentation: {
17844
18515
  type: "modal";
17845
18516
  size: "sm" | "md" | "lg";
18517
+ desktopWidth?: {
18518
+ min: number;
18519
+ max: number;
18520
+ viewport: number;
18521
+ } | undefined;
18522
+ mobile?: "sheet" | "fullscreen" | undefined;
18523
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
17846
18524
  } | {
17847
18525
  type: "sheet";
17848
18526
  size: "sm" | "md" | "lg";
18527
+ desktopWidth?: {
18528
+ min: number;
18529
+ max: number;
18530
+ viewport: number;
18531
+ } | undefined;
18532
+ mobile?: "sheet" | "fullscreen" | undefined;
18533
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
17849
18534
  } | {
17850
18535
  type: "fullscreen";
17851
18536
  } | {
@@ -17855,8 +18540,16 @@ declare function createFunnelClient(options: IndianaOptions & {
17855
18540
  primary: string;
17856
18541
  background: string;
17857
18542
  text: string;
17858
- radius: "none" | "full" | "sm" | "md" | "lg";
18543
+ radius: "sm" | "md" | "lg" | "none" | "full";
17859
18544
  font: "system" | "serif" | "rounded" | "mono";
18545
+ fontAssets?: {
18546
+ family: string;
18547
+ faces: {
18548
+ url: string;
18549
+ weight: number;
18550
+ family?: string | undefined;
18551
+ }[];
18552
+ } | undefined;
17860
18553
  };
17861
18554
  pages: {
17862
18555
  id: string;
@@ -17866,8 +18559,16 @@ declare function createFunnelClient(options: IndianaOptions & {
17866
18559
  primary: string;
17867
18560
  background: string;
17868
18561
  text: string;
17869
- radius: "none" | "full" | "sm" | "md" | "lg";
18562
+ radius: "sm" | "md" | "lg" | "none" | "full";
17870
18563
  font: "system" | "serif" | "rounded" | "mono";
18564
+ fontAssets?: {
18565
+ family: string;
18566
+ faces: {
18567
+ url: string;
18568
+ weight: number;
18569
+ family?: string | undefined;
18570
+ }[];
18571
+ } | undefined;
17871
18572
  } | undefined;
17872
18573
  editorPosition?: {
17873
18574
  x: number;
@@ -17952,7 +18653,7 @@ declare function createFunnelClient(options: IndianaOptions & {
17952
18653
  revision: number;
17953
18654
  visit: number;
17954
18655
  nodeId: string;
17955
- nodeType: "output" | "action" | "split" | "feature" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
18656
+ nodeType: "output" | "action" | "screen" | "end" | "coupon" | "split" | "feature" | "condition" | "entry" | "offering" | "coupons" | "external_page" | "wait";
17956
18657
  status: "failed" | "running" | "completed" | "closed" | "ineligible" | "waiting";
17957
18658
  stopped: boolean;
17958
18659
  canBack: boolean;
@@ -17969,13 +18670,27 @@ declare function createFunnelClient(options: IndianaOptions & {
17969
18670
  kind: "screen";
17970
18671
  schemaVersion: 4;
17971
18672
  name: string;
17972
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
18673
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
17973
18674
  presentation: {
17974
18675
  type: "modal";
17975
18676
  size: "sm" | "md" | "lg";
18677
+ desktopWidth?: {
18678
+ min: number;
18679
+ max: number;
18680
+ viewport: number;
18681
+ } | undefined;
18682
+ mobile?: "sheet" | "fullscreen" | undefined;
18683
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
17976
18684
  } | {
17977
18685
  type: "sheet";
17978
18686
  size: "sm" | "md" | "lg";
18687
+ desktopWidth?: {
18688
+ min: number;
18689
+ max: number;
18690
+ viewport: number;
18691
+ } | undefined;
18692
+ mobile?: "sheet" | "fullscreen" | undefined;
18693
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
17979
18694
  } | {
17980
18695
  type: "fullscreen";
17981
18696
  } | {
@@ -17985,8 +18700,16 @@ declare function createFunnelClient(options: IndianaOptions & {
17985
18700
  primary: string;
17986
18701
  background: string;
17987
18702
  text: string;
17988
- radius: "none" | "full" | "sm" | "md" | "lg";
18703
+ radius: "sm" | "md" | "lg" | "none" | "full";
17989
18704
  font: "system" | "serif" | "rounded" | "mono";
18705
+ fontAssets?: {
18706
+ family: string;
18707
+ faces: {
18708
+ url: string;
18709
+ weight: number;
18710
+ family?: string | undefined;
18711
+ }[];
18712
+ } | undefined;
17990
18713
  };
17991
18714
  pages: {
17992
18715
  id: string;
@@ -17996,8 +18719,16 @@ declare function createFunnelClient(options: IndianaOptions & {
17996
18719
  primary: string;
17997
18720
  background: string;
17998
18721
  text: string;
17999
- radius: "none" | "full" | "sm" | "md" | "lg";
18722
+ radius: "sm" | "md" | "lg" | "none" | "full";
18000
18723
  font: "system" | "serif" | "rounded" | "mono";
18724
+ fontAssets?: {
18725
+ family: string;
18726
+ faces: {
18727
+ url: string;
18728
+ weight: number;
18729
+ family?: string | undefined;
18730
+ }[];
18731
+ } | undefined;
18001
18732
  } | undefined;
18002
18733
  editorPosition?: {
18003
18734
  x: number;
@@ -18049,9 +18780,23 @@ declare function createFunnelClient(options: IndianaOptions & {
18049
18780
  presentation: {
18050
18781
  type: "modal";
18051
18782
  size: "sm" | "md" | "lg";
18783
+ desktopWidth?: {
18784
+ min: number;
18785
+ max: number;
18786
+ viewport: number;
18787
+ } | undefined;
18788
+ mobile?: "sheet" | "fullscreen" | undefined;
18789
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
18052
18790
  } | {
18053
18791
  type: "sheet";
18054
18792
  size: "sm" | "md" | "lg";
18793
+ desktopWidth?: {
18794
+ min: number;
18795
+ max: number;
18796
+ viewport: number;
18797
+ } | undefined;
18798
+ mobile?: "sheet" | "fullscreen" | undefined;
18799
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
18055
18800
  } | {
18056
18801
  type: "fullscreen";
18057
18802
  } | {
@@ -18291,44 +19036,53 @@ declare function createFunnelClient(options: IndianaOptions & {
18291
19036
  presentation: {
18292
19037
  type: "modal";
18293
19038
  size: "sm" | "md" | "lg";
19039
+ desktopWidth?: {
19040
+ min: number;
19041
+ max: number;
19042
+ viewport: number;
19043
+ } | undefined;
19044
+ mobile?: "sheet" | "fullscreen" | undefined;
19045
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
18294
19046
  } | {
18295
19047
  type: "sheet";
18296
19048
  size: "sm" | "md" | "lg";
19049
+ desktopWidth?: {
19050
+ min: number;
19051
+ max: number;
19052
+ viewport: number;
19053
+ } | undefined;
19054
+ mobile?: "sheet" | "fullscreen" | undefined;
19055
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
18297
19056
  } | {
18298
19057
  type: "fullscreen";
18299
19058
  } | {
18300
19059
  type: "inline";
18301
19060
  };
18302
- offeringVersionId: string | null;
18303
- products: {
18304
- items: {
18305
- productVersionId: string;
18306
- label: string;
18307
- }[];
18308
- defaultProductVersionId: string | null;
18309
- grouping?: {
18310
- tiers: {
18311
- id: string;
18312
- name: string;
18313
- }[];
18314
- assignments: {
18315
- productVersionId: string;
18316
- tierId: string;
18317
- period: "month" | "year";
18318
- }[];
18319
- } | undefined;
18320
- };
18321
19061
  screen: {
18322
19062
  kind: "screen";
18323
19063
  schemaVersion: 4;
18324
19064
  name: string;
18325
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
19065
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
18326
19066
  presentation: {
18327
19067
  type: "modal";
18328
19068
  size: "sm" | "md" | "lg";
19069
+ desktopWidth?: {
19070
+ min: number;
19071
+ max: number;
19072
+ viewport: number;
19073
+ } | undefined;
19074
+ mobile?: "sheet" | "fullscreen" | undefined;
19075
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
18329
19076
  } | {
18330
19077
  type: "sheet";
18331
19078
  size: "sm" | "md" | "lg";
19079
+ desktopWidth?: {
19080
+ min: number;
19081
+ max: number;
19082
+ viewport: number;
19083
+ } | undefined;
19084
+ mobile?: "sheet" | "fullscreen" | undefined;
19085
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
18332
19086
  } | {
18333
19087
  type: "fullscreen";
18334
19088
  } | {
@@ -18338,8 +19092,16 @@ declare function createFunnelClient(options: IndianaOptions & {
18338
19092
  primary: string;
18339
19093
  background: string;
18340
19094
  text: string;
18341
- radius: "none" | "full" | "sm" | "md" | "lg";
19095
+ radius: "sm" | "md" | "lg" | "none" | "full";
18342
19096
  font: "system" | "serif" | "rounded" | "mono";
19097
+ fontAssets?: {
19098
+ family: string;
19099
+ faces: {
19100
+ url: string;
19101
+ weight: number;
19102
+ family?: string | undefined;
19103
+ }[];
19104
+ } | undefined;
18343
19105
  };
18344
19106
  pages: {
18345
19107
  id: string;
@@ -18349,8 +19111,16 @@ declare function createFunnelClient(options: IndianaOptions & {
18349
19111
  primary: string;
18350
19112
  background: string;
18351
19113
  text: string;
18352
- radius: "none" | "full" | "sm" | "md" | "lg";
19114
+ radius: "sm" | "md" | "lg" | "none" | "full";
18353
19115
  font: "system" | "serif" | "rounded" | "mono";
19116
+ fontAssets?: {
19117
+ family: string;
19118
+ faces: {
19119
+ url: string;
19120
+ weight: number;
19121
+ family?: string | undefined;
19122
+ }[];
19123
+ } | undefined;
18354
19124
  } | undefined;
18355
19125
  editorPosition?: {
18356
19126
  x: number;
@@ -18398,6 +19168,25 @@ declare function createFunnelClient(options: IndianaOptions & {
18398
19168
  initialPageId?: string | undefined;
18399
19169
  };
18400
19170
  schemaVersion: 3;
19171
+ offeringVersionId: string | null;
19172
+ products: {
19173
+ items: {
19174
+ productVersionId: string;
19175
+ label: string;
19176
+ }[];
19177
+ defaultProductVersionId: string | null;
19178
+ grouping?: {
19179
+ tiers: {
19180
+ id: string;
19181
+ name: string;
19182
+ }[];
19183
+ assignments: {
19184
+ productVersionId: string;
19185
+ tierId: string;
19186
+ period: "month" | "year";
19187
+ }[];
19188
+ } | undefined;
19189
+ };
18401
19190
  buttons: Record<string, {
18402
19191
  type: "checkout";
18403
19192
  product: {
@@ -19575,7 +20364,7 @@ declare function createFunnelClient(options: IndianaOptions & {
19575
20364
  } | {
19576
20365
  type: "wait";
19577
20366
  receiptId: string;
19578
- kind: "operation" | "event" | "timer";
20367
+ kind: "event" | "operation" | "timer";
19579
20368
  deadline: string | null;
19580
20369
  eventName?: string | undefined;
19581
20370
  } | {
@@ -20439,13 +21228,27 @@ declare function createFunnelClient(options: IndianaOptions & {
20439
21228
  kind: "screen";
20440
21229
  schemaVersion: 4;
20441
21230
  name: string;
20442
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
21231
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
20443
21232
  presentation: {
20444
21233
  type: "modal";
20445
21234
  size: "sm" | "md" | "lg";
21235
+ desktopWidth?: {
21236
+ min: number;
21237
+ max: number;
21238
+ viewport: number;
21239
+ } | undefined;
21240
+ mobile?: "sheet" | "fullscreen" | undefined;
21241
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
20446
21242
  } | {
20447
21243
  type: "sheet";
20448
21244
  size: "sm" | "md" | "lg";
21245
+ desktopWidth?: {
21246
+ min: number;
21247
+ max: number;
21248
+ viewport: number;
21249
+ } | undefined;
21250
+ mobile?: "sheet" | "fullscreen" | undefined;
21251
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
20449
21252
  } | {
20450
21253
  type: "fullscreen";
20451
21254
  } | {
@@ -20455,8 +21258,16 @@ declare function createFunnelClient(options: IndianaOptions & {
20455
21258
  primary: string;
20456
21259
  background: string;
20457
21260
  text: string;
20458
- radius: "none" | "full" | "sm" | "md" | "lg";
21261
+ radius: "sm" | "md" | "lg" | "none" | "full";
20459
21262
  font: "system" | "serif" | "rounded" | "mono";
21263
+ fontAssets?: {
21264
+ family: string;
21265
+ faces: {
21266
+ url: string;
21267
+ weight: number;
21268
+ family?: string | undefined;
21269
+ }[];
21270
+ } | undefined;
20460
21271
  };
20461
21272
  pages: {
20462
21273
  id: string;
@@ -20466,8 +21277,16 @@ declare function createFunnelClient(options: IndianaOptions & {
20466
21277
  primary: string;
20467
21278
  background: string;
20468
21279
  text: string;
20469
- radius: "none" | "full" | "sm" | "md" | "lg";
21280
+ radius: "sm" | "md" | "lg" | "none" | "full";
20470
21281
  font: "system" | "serif" | "rounded" | "mono";
21282
+ fontAssets?: {
21283
+ family: string;
21284
+ faces: {
21285
+ url: string;
21286
+ weight: number;
21287
+ family?: string | undefined;
21288
+ }[];
21289
+ } | undefined;
20471
21290
  } | undefined;
20472
21291
  editorPosition?: {
20473
21292
  x: number;
@@ -20555,7 +21374,7 @@ declare function createFunnelClient(options: IndianaOptions & {
20555
21374
  revision: number;
20556
21375
  visit: number;
20557
21376
  nodeId: string;
20558
- nodeType: "output" | "action" | "split" | "feature" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
21377
+ nodeType: "output" | "action" | "screen" | "end" | "coupon" | "split" | "feature" | "condition" | "entry" | "offering" | "coupons" | "external_page" | "wait";
20559
21378
  status: "failed" | "running" | "completed" | "closed" | "ineligible" | "waiting";
20560
21379
  stopped: boolean;
20561
21380
  canBack: boolean;
@@ -20572,13 +21391,27 @@ declare function createFunnelClient(options: IndianaOptions & {
20572
21391
  kind: "screen";
20573
21392
  schemaVersion: 4;
20574
21393
  name: string;
20575
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
21394
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
20576
21395
  presentation: {
20577
21396
  type: "modal";
20578
21397
  size: "sm" | "md" | "lg";
21398
+ desktopWidth?: {
21399
+ min: number;
21400
+ max: number;
21401
+ viewport: number;
21402
+ } | undefined;
21403
+ mobile?: "sheet" | "fullscreen" | undefined;
21404
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
20579
21405
  } | {
20580
21406
  type: "sheet";
20581
21407
  size: "sm" | "md" | "lg";
21408
+ desktopWidth?: {
21409
+ min: number;
21410
+ max: number;
21411
+ viewport: number;
21412
+ } | undefined;
21413
+ mobile?: "sheet" | "fullscreen" | undefined;
21414
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
20582
21415
  } | {
20583
21416
  type: "fullscreen";
20584
21417
  } | {
@@ -20588,8 +21421,16 @@ declare function createFunnelClient(options: IndianaOptions & {
20588
21421
  primary: string;
20589
21422
  background: string;
20590
21423
  text: string;
20591
- radius: "none" | "full" | "sm" | "md" | "lg";
21424
+ radius: "sm" | "md" | "lg" | "none" | "full";
20592
21425
  font: "system" | "serif" | "rounded" | "mono";
21426
+ fontAssets?: {
21427
+ family: string;
21428
+ faces: {
21429
+ url: string;
21430
+ weight: number;
21431
+ family?: string | undefined;
21432
+ }[];
21433
+ } | undefined;
20593
21434
  };
20594
21435
  pages: {
20595
21436
  id: string;
@@ -20599,8 +21440,16 @@ declare function createFunnelClient(options: IndianaOptions & {
20599
21440
  primary: string;
20600
21441
  background: string;
20601
21442
  text: string;
20602
- radius: "none" | "full" | "sm" | "md" | "lg";
21443
+ radius: "sm" | "md" | "lg" | "none" | "full";
20603
21444
  font: "system" | "serif" | "rounded" | "mono";
21445
+ fontAssets?: {
21446
+ family: string;
21447
+ faces: {
21448
+ url: string;
21449
+ weight: number;
21450
+ family?: string | undefined;
21451
+ }[];
21452
+ } | undefined;
20604
21453
  } | undefined;
20605
21454
  editorPosition?: {
20606
21455
  x: number;
@@ -20652,9 +21501,23 @@ declare function createFunnelClient(options: IndianaOptions & {
20652
21501
  presentation: {
20653
21502
  type: "modal";
20654
21503
  size: "sm" | "md" | "lg";
21504
+ desktopWidth?: {
21505
+ min: number;
21506
+ max: number;
21507
+ viewport: number;
21508
+ } | undefined;
21509
+ mobile?: "sheet" | "fullscreen" | undefined;
21510
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
20655
21511
  } | {
20656
21512
  type: "sheet";
20657
21513
  size: "sm" | "md" | "lg";
21514
+ desktopWidth?: {
21515
+ min: number;
21516
+ max: number;
21517
+ viewport: number;
21518
+ } | undefined;
21519
+ mobile?: "sheet" | "fullscreen" | undefined;
21520
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
20658
21521
  } | {
20659
21522
  type: "fullscreen";
20660
21523
  } | {
@@ -20894,44 +21757,53 @@ declare function createFunnelClient(options: IndianaOptions & {
20894
21757
  presentation: {
20895
21758
  type: "modal";
20896
21759
  size: "sm" | "md" | "lg";
21760
+ desktopWidth?: {
21761
+ min: number;
21762
+ max: number;
21763
+ viewport: number;
21764
+ } | undefined;
21765
+ mobile?: "sheet" | "fullscreen" | undefined;
21766
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
20897
21767
  } | {
20898
21768
  type: "sheet";
20899
21769
  size: "sm" | "md" | "lg";
21770
+ desktopWidth?: {
21771
+ min: number;
21772
+ max: number;
21773
+ viewport: number;
21774
+ } | undefined;
21775
+ mobile?: "sheet" | "fullscreen" | undefined;
21776
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
20900
21777
  } | {
20901
21778
  type: "fullscreen";
20902
21779
  } | {
20903
21780
  type: "inline";
20904
21781
  };
20905
- offeringVersionId: string | null;
20906
- products: {
20907
- items: {
20908
- productVersionId: string;
20909
- label: string;
20910
- }[];
20911
- defaultProductVersionId: string | null;
20912
- grouping?: {
20913
- tiers: {
20914
- id: string;
20915
- name: string;
20916
- }[];
20917
- assignments: {
20918
- productVersionId: string;
20919
- tierId: string;
20920
- period: "month" | "year";
20921
- }[];
20922
- } | undefined;
20923
- };
20924
21782
  screen: {
20925
21783
  kind: "screen";
20926
21784
  schemaVersion: 4;
20927
21785
  name: string;
20928
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
21786
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
20929
21787
  presentation: {
20930
21788
  type: "modal";
20931
21789
  size: "sm" | "md" | "lg";
21790
+ desktopWidth?: {
21791
+ min: number;
21792
+ max: number;
21793
+ viewport: number;
21794
+ } | undefined;
21795
+ mobile?: "sheet" | "fullscreen" | undefined;
21796
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
20932
21797
  } | {
20933
21798
  type: "sheet";
20934
21799
  size: "sm" | "md" | "lg";
21800
+ desktopWidth?: {
21801
+ min: number;
21802
+ max: number;
21803
+ viewport: number;
21804
+ } | undefined;
21805
+ mobile?: "sheet" | "fullscreen" | undefined;
21806
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
20935
21807
  } | {
20936
21808
  type: "fullscreen";
20937
21809
  } | {
@@ -20941,8 +21813,16 @@ declare function createFunnelClient(options: IndianaOptions & {
20941
21813
  primary: string;
20942
21814
  background: string;
20943
21815
  text: string;
20944
- radius: "none" | "full" | "sm" | "md" | "lg";
21816
+ radius: "sm" | "md" | "lg" | "none" | "full";
20945
21817
  font: "system" | "serif" | "rounded" | "mono";
21818
+ fontAssets?: {
21819
+ family: string;
21820
+ faces: {
21821
+ url: string;
21822
+ weight: number;
21823
+ family?: string | undefined;
21824
+ }[];
21825
+ } | undefined;
20946
21826
  };
20947
21827
  pages: {
20948
21828
  id: string;
@@ -20952,8 +21832,16 @@ declare function createFunnelClient(options: IndianaOptions & {
20952
21832
  primary: string;
20953
21833
  background: string;
20954
21834
  text: string;
20955
- radius: "none" | "full" | "sm" | "md" | "lg";
21835
+ radius: "sm" | "md" | "lg" | "none" | "full";
20956
21836
  font: "system" | "serif" | "rounded" | "mono";
21837
+ fontAssets?: {
21838
+ family: string;
21839
+ faces: {
21840
+ url: string;
21841
+ weight: number;
21842
+ family?: string | undefined;
21843
+ }[];
21844
+ } | undefined;
20957
21845
  } | undefined;
20958
21846
  editorPosition?: {
20959
21847
  x: number;
@@ -21001,6 +21889,25 @@ declare function createFunnelClient(options: IndianaOptions & {
21001
21889
  initialPageId?: string | undefined;
21002
21890
  };
21003
21891
  schemaVersion: 3;
21892
+ offeringVersionId: string | null;
21893
+ products: {
21894
+ items: {
21895
+ productVersionId: string;
21896
+ label: string;
21897
+ }[];
21898
+ defaultProductVersionId: string | null;
21899
+ grouping?: {
21900
+ tiers: {
21901
+ id: string;
21902
+ name: string;
21903
+ }[];
21904
+ assignments: {
21905
+ productVersionId: string;
21906
+ tierId: string;
21907
+ period: "month" | "year";
21908
+ }[];
21909
+ } | undefined;
21910
+ };
21004
21911
  buttons: Record<string, {
21005
21912
  type: "checkout";
21006
21913
  product: {
@@ -22178,7 +23085,7 @@ declare function createFunnelClient(options: IndianaOptions & {
22178
23085
  } | {
22179
23086
  type: "wait";
22180
23087
  receiptId: string;
22181
- kind: "operation" | "event" | "timer";
23088
+ kind: "event" | "operation" | "timer";
22182
23089
  deadline: string | null;
22183
23090
  eventName?: string | undefined;
22184
23091
  } | {
@@ -23042,13 +23949,27 @@ declare function createFunnelClient(options: IndianaOptions & {
23042
23949
  kind: "screen";
23043
23950
  schemaVersion: 4;
23044
23951
  name: string;
23045
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
23952
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
23046
23953
  presentation: {
23047
23954
  type: "modal";
23048
23955
  size: "sm" | "md" | "lg";
23956
+ desktopWidth?: {
23957
+ min: number;
23958
+ max: number;
23959
+ viewport: number;
23960
+ } | undefined;
23961
+ mobile?: "sheet" | "fullscreen" | undefined;
23962
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
23049
23963
  } | {
23050
23964
  type: "sheet";
23051
23965
  size: "sm" | "md" | "lg";
23966
+ desktopWidth?: {
23967
+ min: number;
23968
+ max: number;
23969
+ viewport: number;
23970
+ } | undefined;
23971
+ mobile?: "sheet" | "fullscreen" | undefined;
23972
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
23052
23973
  } | {
23053
23974
  type: "fullscreen";
23054
23975
  } | {
@@ -23058,8 +23979,16 @@ declare function createFunnelClient(options: IndianaOptions & {
23058
23979
  primary: string;
23059
23980
  background: string;
23060
23981
  text: string;
23061
- radius: "none" | "full" | "sm" | "md" | "lg";
23982
+ radius: "sm" | "md" | "lg" | "none" | "full";
23062
23983
  font: "system" | "serif" | "rounded" | "mono";
23984
+ fontAssets?: {
23985
+ family: string;
23986
+ faces: {
23987
+ url: string;
23988
+ weight: number;
23989
+ family?: string | undefined;
23990
+ }[];
23991
+ } | undefined;
23063
23992
  };
23064
23993
  pages: {
23065
23994
  id: string;
@@ -23069,8 +23998,16 @@ declare function createFunnelClient(options: IndianaOptions & {
23069
23998
  primary: string;
23070
23999
  background: string;
23071
24000
  text: string;
23072
- radius: "none" | "full" | "sm" | "md" | "lg";
24001
+ radius: "sm" | "md" | "lg" | "none" | "full";
23073
24002
  font: "system" | "serif" | "rounded" | "mono";
24003
+ fontAssets?: {
24004
+ family: string;
24005
+ faces: {
24006
+ url: string;
24007
+ weight: number;
24008
+ family?: string | undefined;
24009
+ }[];
24010
+ } | undefined;
23074
24011
  } | undefined;
23075
24012
  editorPosition?: {
23076
24013
  x: number;
@@ -23242,6 +24179,8 @@ declare function showPaywall(...args: Parameters<typeof showPaywall$1>): Promise
23242
24179
  } | null;
23243
24180
  } | null;
23244
24181
  host: {
24182
+ readonly recovery: PaywallRecovery;
24183
+ prepareFallback(): Promise<PaywallRecovery>;
23245
24184
  setSuspended(value: boolean): void;
23246
24185
  destroy: (reason?: "destroy" | "dismiss" | "action") => void;
23247
24186
  refresh: () => Promise<{
@@ -23254,44 +24193,53 @@ declare function showPaywall(...args: Parameters<typeof showPaywall$1>): Promise
23254
24193
  presentation: {
23255
24194
  type: "modal";
23256
24195
  size: "sm" | "md" | "lg";
24196
+ desktopWidth?: {
24197
+ min: number;
24198
+ max: number;
24199
+ viewport: number;
24200
+ } | undefined;
24201
+ mobile?: "sheet" | "fullscreen" | undefined;
24202
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
23257
24203
  } | {
23258
24204
  type: "sheet";
23259
24205
  size: "sm" | "md" | "lg";
24206
+ desktopWidth?: {
24207
+ min: number;
24208
+ max: number;
24209
+ viewport: number;
24210
+ } | undefined;
24211
+ mobile?: "sheet" | "fullscreen" | undefined;
24212
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
23260
24213
  } | {
23261
24214
  type: "fullscreen";
23262
24215
  } | {
23263
24216
  type: "inline";
23264
24217
  };
23265
- offeringVersionId: string | null;
23266
- products: {
23267
- items: {
23268
- productVersionId: string;
23269
- label: string;
23270
- }[];
23271
- defaultProductVersionId: string | null;
23272
- grouping?: {
23273
- tiers: {
23274
- id: string;
23275
- name: string;
23276
- }[];
23277
- assignments: {
23278
- productVersionId: string;
23279
- tierId: string;
23280
- period: "month" | "year";
23281
- }[];
23282
- } | undefined;
23283
- };
23284
24218
  screen: {
23285
24219
  kind: "screen";
23286
24220
  schemaVersion: 4;
23287
24221
  name: string;
23288
- surface: "paywall" | "popup" | "onboarding" | "page" | "banner";
24222
+ surface: "popup" | "paywall" | "onboarding" | "page" | "banner";
23289
24223
  presentation: {
23290
24224
  type: "modal";
23291
24225
  size: "sm" | "md" | "lg";
24226
+ desktopWidth?: {
24227
+ min: number;
24228
+ max: number;
24229
+ viewport: number;
24230
+ } | undefined;
24231
+ mobile?: "sheet" | "fullscreen" | undefined;
24232
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
23292
24233
  } | {
23293
24234
  type: "sheet";
23294
24235
  size: "sm" | "md" | "lg";
24236
+ desktopWidth?: {
24237
+ min: number;
24238
+ max: number;
24239
+ viewport: number;
24240
+ } | undefined;
24241
+ mobile?: "sheet" | "fullscreen" | undefined;
24242
+ backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
23295
24243
  } | {
23296
24244
  type: "fullscreen";
23297
24245
  } | {
@@ -23301,8 +24249,16 @@ declare function showPaywall(...args: Parameters<typeof showPaywall$1>): Promise
23301
24249
  primary: string;
23302
24250
  background: string;
23303
24251
  text: string;
23304
- radius: "none" | "full" | "sm" | "md" | "lg";
24252
+ radius: "sm" | "md" | "lg" | "none" | "full";
23305
24253
  font: "system" | "serif" | "rounded" | "mono";
24254
+ fontAssets?: {
24255
+ family: string;
24256
+ faces: {
24257
+ url: string;
24258
+ weight: number;
24259
+ family?: string | undefined;
24260
+ }[];
24261
+ } | undefined;
23306
24262
  };
23307
24263
  pages: {
23308
24264
  id: string;
@@ -23312,8 +24268,16 @@ declare function showPaywall(...args: Parameters<typeof showPaywall$1>): Promise
23312
24268
  primary: string;
23313
24269
  background: string;
23314
24270
  text: string;
23315
- radius: "none" | "full" | "sm" | "md" | "lg";
24271
+ radius: "sm" | "md" | "lg" | "none" | "full";
23316
24272
  font: "system" | "serif" | "rounded" | "mono";
24273
+ fontAssets?: {
24274
+ family: string;
24275
+ faces: {
24276
+ url: string;
24277
+ weight: number;
24278
+ family?: string | undefined;
24279
+ }[];
24280
+ } | undefined;
23317
24281
  } | undefined;
23318
24282
  editorPosition?: {
23319
24283
  x: number;
@@ -23361,6 +24325,25 @@ declare function showPaywall(...args: Parameters<typeof showPaywall$1>): Promise
23361
24325
  initialPageId?: string | undefined;
23362
24326
  };
23363
24327
  schemaVersion: 3;
24328
+ offeringVersionId: string | null;
24329
+ products: {
24330
+ items: {
24331
+ productVersionId: string;
24332
+ label: string;
24333
+ }[];
24334
+ defaultProductVersionId: string | null;
24335
+ grouping?: {
24336
+ tiers: {
24337
+ id: string;
24338
+ name: string;
24339
+ }[];
24340
+ assignments: {
24341
+ productVersionId: string;
24342
+ tierId: string;
24343
+ period: "month" | "year";
24344
+ }[];
24345
+ } | undefined;
24346
+ };
23364
24347
  buttons: Record<string, {
23365
24348
  type: "checkout";
23366
24349
  product: {
@@ -23550,6 +24533,8 @@ declare function showPaywall(...args: Parameters<typeof showPaywall$1>): Promise
23550
24533
  declare function showFunnelRun(...args: Parameters<typeof showFunnelRun$1>): Promise<{
23551
24534
  destroy: () => void;
23552
24535
  refresh: () => Promise<void>;
24536
+ readonly recovery: PaywallRecovery;
24537
+ prepareFallback(): Promise<PaywallRecovery>;
23553
24538
  review: (receiptId?: string) => Promise<void>;
23554
24539
  exitReview: () => Promise<void>;
23555
24540
  readonly unappliedDrafts: Map<string, Record<string, string | boolean | string[]>>;
@@ -23571,4 +24556,4 @@ declare function prepareContent(...args: Parameters<typeof prepareContent$1>): P
23571
24556
  updateCapabilities: (data: SurfaceData) => void | undefined;
23572
24557
  }>;
23573
24558
 
23574
- export { type ContentActionIntent, type ContentHostOptions, CustomerSession, FunnelCommandStorage, type FunnelHostOptions, FunnelResourceSource, FunnelRunController, FunnelRuntimeResponse, FunnelSegmentPrediction, type IamFunnelEntriesOptions, type IamFunnelProcessEntriesOptions, IndianaFeatureOptions as LongplayFeatureOptions, IndianaOptions as LongplayOptions, MerchantBridgeError, type MerchantBridgeOptions, Offer, type PaywallHostOptions, type PaywallPurchaseIntent, PaywallSession, createBrowserFunnelCommandStorage, createFunnelClient, createFunnelPageExperiments, createFunnelProcess, createIamFunnelEntries, createIamFunnelProcessEntries, createIndiana as createLongplay, createMerchantBridge, formatCouponDiscount, formatCouponMoney, formatCouponTerms, mountContent, prepareContent, showFunnelRun, showPaywall };
24559
+ export { type ContentActionIntent, type ContentHostOptions, CustomerSession, FunnelCommandStorage, type FunnelHostOptions, FunnelResourceSource, FunnelRunController, FunnelRuntimeResponse, FunnelSegmentPrediction, type IamFunnelEntriesOptions, type IamFunnelProcessEntriesOptions, IndianaFeatureOptions as LongplayFeatureOptions, IndianaOptions as LongplayOptions, MerchantBridgeError, type MerchantBridgeOptions, Offer, type PaywallHostOptions, type PaywallPurchaseIntent, PaywallRecovery, PaywallSession, createBrowserFunnelCommandStorage, createFunnelClient, createFunnelPageExperiments, createFunnelProcess, createIamFunnelEntries, createIamFunnelProcessEntries, createIndiana as createLongplay, createMerchantBridge, formatCouponDiscount, formatCouponMoney, formatCouponTerms, mountContent, prepareContent, showFunnelRun, showPaywall };