@tinkerlandai/indiana-sdk 0.8.5 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +20 -41
  3. package/README.zh-CN.md +17 -17
  4. package/dist/{ai-usage-DUlre7JC.d.ts → ai-usage-DMNKvCiq.d.ts} +3 -3
  5. package/dist/{api-XDc4pRlN.d.ts → api--Zf0gxfj.d.ts} +128 -124
  6. package/dist/chunk-3PZ4Y6UD.js +17 -0
  7. package/dist/chunk-5O667MKA.js +1 -0
  8. package/dist/chunk-65TBYVCS.js +1 -0
  9. package/dist/chunk-67A7I6MB.js +1 -0
  10. package/dist/chunk-7DXL3LHT.js +1 -0
  11. package/dist/chunk-CCQHYQ4P.js +1 -0
  12. package/dist/chunk-CPLLMISZ.js +1 -0
  13. package/dist/chunk-G23YNWWI.js +1 -0
  14. package/dist/chunk-G56XGVMS.js +1 -0
  15. package/dist/chunk-L7LKE3MG.js +173 -0
  16. package/dist/chunk-NH2PTTNK.js +2 -0
  17. package/dist/chunk-PK5HYUHD.js +1 -0
  18. package/dist/chunk-SEW4YVR7.js +1 -0
  19. package/dist/chunk-UYSOTMY3.js +1 -0
  20. package/dist/{chunk-WWUUVURR.js → chunk-WSVH6IQA.js} +1 -1
  21. package/dist/chunk-YZSQDZXW.js +4 -0
  22. package/dist/{configuration-sync-Ce3dShy7.d.ts → configuration-sync-E98CqVwh.d.ts} +6 -5
  23. package/dist/content-3LOJVYQO.js +1 -0
  24. package/dist/{errors-C8lRYZ0n.d.ts → errors-0TSUIbUi.d.ts} +12 -1
  25. package/dist/{funnel-local-client-CUGavICI.d.ts → funnel-local-client-BjPwXlQb.d.ts} +550 -260
  26. package/dist/funnel-runtime-host-NYHKQT6T.js +1 -0
  27. package/dist/index.d.ts +689 -223
  28. package/dist/index.js +1 -1
  29. package/dist/native-shell.js +1 -1
  30. package/dist/openrouter.d.ts +3 -3
  31. package/dist/openrouter.js +1 -1
  32. package/dist/page.d.ts +6 -6
  33. package/dist/page.js +1 -1
  34. package/dist/paywall-ISCYOGPZ.js +1 -0
  35. package/dist/popup.d.ts +1 -1
  36. package/dist/popup.js +1 -1
  37. package/dist/react-native.d.ts +122 -99
  38. package/dist/react-native.js +1 -1
  39. package/dist/screen-renderer-A6VYE2QL.js +1 -0
  40. package/dist/server.d.ts +58 -58
  41. package/dist/server.js +1 -1
  42. package/dist/visual.d.ts +36 -1
  43. package/dist/visual.js +1 -2
  44. package/package.json +1 -1
  45. package/dist/chunk-3KQHKRZJ.js +0 -1
  46. package/dist/chunk-6A5WWFNS.js +0 -10
  47. package/dist/chunk-A3XRIG53.js +0 -1
  48. package/dist/chunk-BUDTHBFF.js +0 -173
  49. package/dist/chunk-FGIGKO7A.js +0 -1
  50. package/dist/chunk-GRLMT5PR.js +0 -1
  51. package/dist/chunk-HEBQUICQ.js +0 -4
  52. package/dist/chunk-KQCTDXVD.js +0 -17
  53. package/dist/chunk-LMR2TM3X.js +0 -1
  54. package/dist/chunk-OBYJWIRB.js +0 -1
  55. package/dist/chunk-RRII2DMC.js +0 -1
  56. package/dist/chunk-SOQO2RDZ.js +0 -1
  57. package/dist/chunk-SUXAWRR6.js +0 -1
  58. package/dist/chunk-VVV3JNS3.js +0 -1
  59. package/dist/content-DDMDNRCV.js +0 -1
  60. package/dist/funnel-runtime-host-QK6WDRPS.js +0 -1
  61. package/dist/paywall-4QT3JYD4.js +0 -1
  62. package/dist/screen-renderer-DLXDQQKK.js +0 -1
  63. package/dist/src-EG7RWDDY.js +0 -1
  64. package/dist/{screen-BpAejkn0.d.ts → screen-BITZ11jn.d.ts} +18 -18
@@ -1,10 +1,10 @@
1
- import { I as InvoiceModeParams, b as InvoiceModeParamsInput, A as ApiInput } from './api-XDc4pRlN.js';
2
- import { S as StackNode, d as ScreenSelection } from './screen-BpAejkn0.js';
1
+ import { I as InvoiceModeParams, a as InvoiceModeParamsInput, A as ApiInput } from './api--Zf0gxfj.js';
2
+ import { S as StackNode, d as ScreenSelection } from './screen-BITZ11jn.js';
3
3
  import * as zod from 'zod';
4
4
  import { z } from 'zod';
5
5
  import { E as EvaluationContext, J as JsonValue, F as FeatureResult } from './growth-rules-B4YYy64R.js';
6
- import { a as PushHost, S as Scope } from './errors-C8lRYZ0n.js';
7
- import { C as ConfigurationSync } from './configuration-sync-Ce3dShy7.js';
6
+ import { C as CustomerSession, a as PushHost, S as Scope } from './errors-0TSUIbUi.js';
7
+ import { C as ConfigurationSync } from './configuration-sync-E98CqVwh.js';
8
8
 
9
9
  declare const currencySchema: z.ZodEnum<{
10
10
  USD: "USD";
@@ -56,8 +56,8 @@ declare const funnelDataQueriesSchema: z.ZodObject<{
56
56
  at: z.ZodISODateTime;
57
57
  id: z.ZodUUID;
58
58
  type: z.ZodEnum<{
59
- source: "source";
60
59
  usage: "usage";
60
+ source: "source";
61
61
  invoice: "invoice";
62
62
  debt: "debt";
63
63
  transaction: "transaction";
@@ -70,10 +70,10 @@ declare const funnelDataQueriesSchema: z.ZodObject<{
70
70
  }, z.core.$strict>], "kind">>;
71
71
  filter: z.ZodEnum<{
72
72
  purchase: "purchase";
73
- expired: "expired";
74
- source: "source";
75
73
  usage: "usage";
74
+ expired: "expired";
76
75
  all: "all";
76
+ source: "source";
77
77
  issued: "issued";
78
78
  reserved: "reserved";
79
79
  redeemed: "redeemed";
@@ -123,8 +123,8 @@ declare const funnelCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
123
123
  at: z.ZodISODateTime;
124
124
  id: z.ZodUUID;
125
125
  type: z.ZodEnum<{
126
- source: "source";
127
126
  usage: "usage";
127
+ source: "source";
128
128
  invoice: "invoice";
129
129
  debt: "debt";
130
130
  transaction: "transaction";
@@ -137,10 +137,10 @@ declare const funnelCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
137
137
  }, z.core.$strict>], "kind">>;
138
138
  filter: z.ZodEnum<{
139
139
  purchase: "purchase";
140
- expired: "expired";
141
- source: "source";
142
140
  usage: "usage";
141
+ expired: "expired";
143
142
  all: "all";
143
+ source: "source";
144
144
  issued: "issued";
145
145
  reserved: "reserved";
146
146
  redeemed: "redeemed";
@@ -196,8 +196,8 @@ declare const funnelCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
196
196
  receiptId: z.ZodUUID;
197
197
  outcome: z.ZodEnum<{
198
198
  success: "success";
199
- failed: "failed";
200
199
  cancel: "cancel";
200
+ failed: "failed";
201
201
  opened: "opened";
202
202
  failure: "failure";
203
203
  }>;
@@ -271,9 +271,9 @@ declare const funnelRunViewSchema: z.ZodObject<{
271
271
  wait: "wait";
272
272
  }>;
273
273
  status: z.ZodEnum<{
274
+ running: "running";
274
275
  failed: "failed";
275
276
  completed: "completed";
276
- running: "running";
277
277
  closed: "closed";
278
278
  ineligible: "ineligible";
279
279
  waiting: "waiting";
@@ -786,8 +786,8 @@ declare const funnelRunViewSchema: z.ZodObject<{
786
786
  at: z.ZodISODateTime;
787
787
  id: z.ZodUUID;
788
788
  type: z.ZodEnum<{
789
- source: "source";
790
789
  usage: "usage";
790
+ source: "source";
791
791
  invoice: "invoice";
792
792
  debt: "debt";
793
793
  transaction: "transaction";
@@ -1776,9 +1776,9 @@ declare const funnelRunViewSchema: z.ZodObject<{
1776
1776
  }, z.core.$strict>>;
1777
1777
  expiresAt: z.ZodISODateTime;
1778
1778
  provider: z.ZodEnum<{
1779
+ stripe: "stripe";
1779
1780
  apple: "apple";
1780
1781
  google: "google";
1781
- stripe: "stripe";
1782
1782
  }>;
1783
1783
  nativeOffer: z.ZodOptional<z.ZodObject<{
1784
1784
  offerKind: z.ZodEnum<{
@@ -1950,13 +1950,13 @@ declare const funnelRunViewSchema: z.ZodObject<{
1950
1950
  }, z.core.$strict>>;
1951
1951
  provider: z.ZodLiteral<"stripe">;
1952
1952
  executor: z.ZodEnum<{
1953
- merchant: "merchant";
1954
1953
  indiana: "indiana";
1954
+ merchant: "merchant";
1955
1955
  }>;
1956
1956
  accountId: z.ZodString;
1957
1957
  mode: z.ZodEnum<{
1958
- subscription: "subscription";
1959
1958
  payment: "payment";
1959
+ subscription: "subscription";
1960
1960
  }>;
1961
1961
  lineItems: z.ZodArray<z.ZodObject<{
1962
1962
  price: z.ZodNullable<z.ZodString>;
@@ -2024,8 +2024,8 @@ declare const funnelRunViewSchema: z.ZodObject<{
2024
2024
  cancelled: "cancelled";
2025
2025
  }>;
2026
2026
  executor: z.ZodEnum<{
2027
- merchant: "merchant";
2028
2027
  indiana: "indiana";
2028
+ merchant: "merchant";
2029
2029
  }>;
2030
2030
  checkoutUrl: z.ZodNullable<z.ZodURL>;
2031
2031
  execution: z.ZodNullable<z.ZodObject<{
@@ -2051,13 +2051,13 @@ declare const funnelRunViewSchema: z.ZodObject<{
2051
2051
  }, z.core.$strict>>;
2052
2052
  provider: z.ZodLiteral<"stripe">;
2053
2053
  executor: z.ZodEnum<{
2054
- merchant: "merchant";
2055
2054
  indiana: "indiana";
2055
+ merchant: "merchant";
2056
2056
  }>;
2057
2057
  accountId: z.ZodString;
2058
2058
  mode: z.ZodEnum<{
2059
- subscription: "subscription";
2060
2059
  payment: "payment";
2060
+ subscription: "subscription";
2061
2061
  }>;
2062
2062
  lineItems: z.ZodArray<z.ZodObject<{
2063
2063
  price: z.ZodNullable<z.ZodString>;
@@ -2162,8 +2162,8 @@ declare const funnelRunViewSchema: z.ZodObject<{
2162
2162
  }>;
2163
2163
  productId: z.ZodString;
2164
2164
  productKind: z.ZodEnum<{
2165
- membership: "membership";
2166
2165
  lifetime: "lifetime";
2166
+ membership: "membership";
2167
2167
  credit_pack: "credit_pack";
2168
2168
  }>;
2169
2169
  replacement: z.ZodNullable<z.ZodObject<{
@@ -2314,9 +2314,9 @@ declare const funnelRuntimeResponseSchema: z.ZodObject<{
2314
2314
  wait: "wait";
2315
2315
  }>;
2316
2316
  status: z.ZodEnum<{
2317
+ running: "running";
2317
2318
  failed: "failed";
2318
2319
  completed: "completed";
2319
- running: "running";
2320
2320
  closed: "closed";
2321
2321
  ineligible: "ineligible";
2322
2322
  waiting: "waiting";
@@ -2829,8 +2829,8 @@ declare const funnelRuntimeResponseSchema: z.ZodObject<{
2829
2829
  at: z.ZodISODateTime;
2830
2830
  id: z.ZodUUID;
2831
2831
  type: z.ZodEnum<{
2832
- source: "source";
2833
2832
  usage: "usage";
2833
+ source: "source";
2834
2834
  invoice: "invoice";
2835
2835
  debt: "debt";
2836
2836
  transaction: "transaction";
@@ -3819,9 +3819,9 @@ declare const funnelRuntimeResponseSchema: z.ZodObject<{
3819
3819
  }, z.core.$strict>>;
3820
3820
  expiresAt: z.ZodISODateTime;
3821
3821
  provider: z.ZodEnum<{
3822
+ stripe: "stripe";
3822
3823
  apple: "apple";
3823
3824
  google: "google";
3824
- stripe: "stripe";
3825
3825
  }>;
3826
3826
  nativeOffer: z.ZodOptional<z.ZodObject<{
3827
3827
  offerKind: z.ZodEnum<{
@@ -3993,13 +3993,13 @@ declare const funnelRuntimeResponseSchema: z.ZodObject<{
3993
3993
  }, z.core.$strict>>;
3994
3994
  provider: z.ZodLiteral<"stripe">;
3995
3995
  executor: z.ZodEnum<{
3996
- merchant: "merchant";
3997
3996
  indiana: "indiana";
3997
+ merchant: "merchant";
3998
3998
  }>;
3999
3999
  accountId: z.ZodString;
4000
4000
  mode: z.ZodEnum<{
4001
- subscription: "subscription";
4002
4001
  payment: "payment";
4002
+ subscription: "subscription";
4003
4003
  }>;
4004
4004
  lineItems: z.ZodArray<z.ZodObject<{
4005
4005
  price: z.ZodNullable<z.ZodString>;
@@ -4067,8 +4067,8 @@ declare const funnelRuntimeResponseSchema: z.ZodObject<{
4067
4067
  cancelled: "cancelled";
4068
4068
  }>;
4069
4069
  executor: z.ZodEnum<{
4070
- merchant: "merchant";
4071
4070
  indiana: "indiana";
4071
+ merchant: "merchant";
4072
4072
  }>;
4073
4073
  checkoutUrl: z.ZodNullable<z.ZodURL>;
4074
4074
  execution: z.ZodNullable<z.ZodObject<{
@@ -4094,13 +4094,13 @@ declare const funnelRuntimeResponseSchema: z.ZodObject<{
4094
4094
  }, z.core.$strict>>;
4095
4095
  provider: z.ZodLiteral<"stripe">;
4096
4096
  executor: z.ZodEnum<{
4097
- merchant: "merchant";
4098
4097
  indiana: "indiana";
4098
+ merchant: "merchant";
4099
4099
  }>;
4100
4100
  accountId: z.ZodString;
4101
4101
  mode: z.ZodEnum<{
4102
- subscription: "subscription";
4103
4102
  payment: "payment";
4103
+ subscription: "subscription";
4104
4104
  }>;
4105
4105
  lineItems: z.ZodArray<z.ZodObject<{
4106
4106
  price: z.ZodNullable<z.ZodString>;
@@ -4205,8 +4205,8 @@ declare const funnelRuntimeResponseSchema: z.ZodObject<{
4205
4205
  }>;
4206
4206
  productId: z.ZodString;
4207
4207
  productKind: z.ZodEnum<{
4208
- membership: "membership";
4209
4208
  lifetime: "lifetime";
4209
+ membership: "membership";
4210
4210
  credit_pack: "credit_pack";
4211
4211
  }>;
4212
4212
  replacement: z.ZodNullable<z.ZodObject<{
@@ -4409,9 +4409,9 @@ declare const funnelRuntimeResponseSchema: z.ZodObject<{
4409
4409
  }, z.core.$strict>>;
4410
4410
  expiresAt: z.ZodISODateTime;
4411
4411
  provider: z.ZodEnum<{
4412
+ stripe: "stripe";
4412
4413
  apple: "apple";
4413
4414
  google: "google";
4414
- stripe: "stripe";
4415
4415
  }>;
4416
4416
  nativeOffer: z.ZodOptional<z.ZodObject<{
4417
4417
  offerKind: z.ZodEnum<{
@@ -4583,13 +4583,13 @@ declare const funnelRuntimeResponseSchema: z.ZodObject<{
4583
4583
  }, z.core.$strict>>;
4584
4584
  provider: z.ZodLiteral<"stripe">;
4585
4585
  executor: z.ZodEnum<{
4586
- merchant: "merchant";
4587
4586
  indiana: "indiana";
4587
+ merchant: "merchant";
4588
4588
  }>;
4589
4589
  accountId: z.ZodString;
4590
4590
  mode: z.ZodEnum<{
4591
- subscription: "subscription";
4592
4591
  payment: "payment";
4592
+ subscription: "subscription";
4593
4593
  }>;
4594
4594
  lineItems: z.ZodArray<z.ZodObject<{
4595
4595
  price: z.ZodNullable<z.ZodString>;
@@ -4657,8 +4657,8 @@ declare const funnelRuntimeResponseSchema: z.ZodObject<{
4657
4657
  cancelled: "cancelled";
4658
4658
  }>;
4659
4659
  executor: z.ZodEnum<{
4660
- merchant: "merchant";
4661
4660
  indiana: "indiana";
4661
+ merchant: "merchant";
4662
4662
  }>;
4663
4663
  checkoutUrl: z.ZodNullable<z.ZodURL>;
4664
4664
  execution: z.ZodNullable<z.ZodObject<{
@@ -4684,13 +4684,13 @@ declare const funnelRuntimeResponseSchema: z.ZodObject<{
4684
4684
  }, z.core.$strict>>;
4685
4685
  provider: z.ZodLiteral<"stripe">;
4686
4686
  executor: z.ZodEnum<{
4687
- merchant: "merchant";
4688
4687
  indiana: "indiana";
4688
+ merchant: "merchant";
4689
4689
  }>;
4690
4690
  accountId: z.ZodString;
4691
4691
  mode: z.ZodEnum<{
4692
- subscription: "subscription";
4693
4692
  payment: "payment";
4693
+ subscription: "subscription";
4694
4694
  }>;
4695
4695
  lineItems: z.ZodArray<z.ZodObject<{
4696
4696
  price: z.ZodNullable<z.ZodString>;
@@ -4795,8 +4795,8 @@ declare const funnelRuntimeResponseSchema: z.ZodObject<{
4795
4795
  }>;
4796
4796
  productId: z.ZodString;
4797
4797
  productKind: z.ZodEnum<{
4798
- membership: "membership";
4799
4798
  lifetime: "lifetime";
4799
+ membership: "membership";
4800
4800
  credit_pack: "credit_pack";
4801
4801
  }>;
4802
4802
  replacement: z.ZodNullable<z.ZodObject<{
@@ -6758,9 +6758,9 @@ declare const subscriptionAttachQuoteSchema: z.ZodObject<{
6758
6758
  }, z.core.$strict>>;
6759
6759
  expiresAt: z.ZodISODateTime;
6760
6760
  provider: z.ZodEnum<{
6761
+ stripe: "stripe";
6761
6762
  apple: "apple";
6762
6763
  google: "google";
6763
- stripe: "stripe";
6764
6764
  }>;
6765
6765
  nativeOffer: z.ZodOptional<z.ZodObject<{
6766
6766
  offerKind: z.ZodEnum<{
@@ -6932,13 +6932,13 @@ declare const subscriptionAttachQuoteSchema: z.ZodObject<{
6932
6932
  }, z.core.$strict>>;
6933
6933
  provider: z.ZodLiteral<"stripe">;
6934
6934
  executor: z.ZodEnum<{
6935
- merchant: "merchant";
6936
6935
  indiana: "indiana";
6936
+ merchant: "merchant";
6937
6937
  }>;
6938
6938
  accountId: z.ZodString;
6939
6939
  mode: z.ZodEnum<{
6940
- subscription: "subscription";
6941
6940
  payment: "payment";
6941
+ subscription: "subscription";
6942
6942
  }>;
6943
6943
  lineItems: z.ZodArray<z.ZodObject<{
6944
6944
  price: z.ZodNullable<z.ZodString>;
@@ -7007,8 +7007,8 @@ declare const subscriptionOperationSchema: z.ZodObject<{
7007
7007
  cancelled: "cancelled";
7008
7008
  }>;
7009
7009
  executor: z.ZodEnum<{
7010
- merchant: "merchant";
7011
7010
  indiana: "indiana";
7011
+ merchant: "merchant";
7012
7012
  }>;
7013
7013
  checkoutUrl: z.ZodNullable<z.ZodURL>;
7014
7014
  execution: z.ZodNullable<z.ZodObject<{
@@ -7034,13 +7034,13 @@ declare const subscriptionOperationSchema: z.ZodObject<{
7034
7034
  }, z.core.$strict>>;
7035
7035
  provider: z.ZodLiteral<"stripe">;
7036
7036
  executor: z.ZodEnum<{
7037
- merchant: "merchant";
7038
7037
  indiana: "indiana";
7038
+ merchant: "merchant";
7039
7039
  }>;
7040
7040
  accountId: z.ZodString;
7041
7041
  mode: z.ZodEnum<{
7042
- subscription: "subscription";
7043
7042
  payment: "payment";
7043
+ subscription: "subscription";
7044
7044
  }>;
7045
7045
  lineItems: z.ZodArray<z.ZodObject<{
7046
7046
  price: z.ZodNullable<z.ZodString>;
@@ -7145,8 +7145,8 @@ declare const subscriptionOperationSchema: z.ZodObject<{
7145
7145
  }>;
7146
7146
  productId: z.ZodString;
7147
7147
  productKind: z.ZodEnum<{
7148
- membership: "membership";
7149
7148
  lifetime: "lifetime";
7149
+ membership: "membership";
7150
7150
  credit_pack: "credit_pack";
7151
7151
  }>;
7152
7152
  replacement: z.ZodNullable<z.ZodObject<{
@@ -7402,10 +7402,10 @@ declare const remoteFeatureResultSchema: z.ZodObject<{
7402
7402
  value: z.ZodJSONSchema;
7403
7403
  source: z.ZodEnum<{
7404
7404
  override: "override";
7405
+ unknownFeature: "unknownFeature";
7406
+ defaultValue: "defaultValue";
7405
7407
  force: "force";
7406
7408
  experiment: "experiment";
7407
- defaultValue: "defaultValue";
7408
- unknownFeature: "unknownFeature";
7409
7409
  prerequisite: "prerequisite";
7410
7410
  cyclicPrerequisite: "cyclicPrerequisite";
7411
7411
  }>;
@@ -7436,10 +7436,10 @@ declare const evaluateFeaturesResultSchema: z.ZodObject<{
7436
7436
  value: z.ZodJSONSchema;
7437
7437
  source: z.ZodEnum<{
7438
7438
  override: "override";
7439
+ unknownFeature: "unknownFeature";
7440
+ defaultValue: "defaultValue";
7439
7441
  force: "force";
7440
7442
  experiment: "experiment";
7441
- defaultValue: "defaultValue";
7442
- unknownFeature: "unknownFeature";
7443
7443
  prerequisite: "prerequisite";
7444
7444
  cyclicPrerequisite: "cyclicPrerequisite";
7445
7445
  }>;
@@ -7519,8 +7519,8 @@ declare const funnelPendingEntrySchema: z.ZodObject<{
7519
7519
  at: z.ZodISODateTime;
7520
7520
  id: z.ZodUUID;
7521
7521
  type: z.ZodEnum<{
7522
- source: "source";
7523
7522
  usage: "usage";
7523
+ source: "source";
7524
7524
  invoice: "invoice";
7525
7525
  debt: "debt";
7526
7526
  transaction: "transaction";
@@ -7533,10 +7533,10 @@ declare const funnelPendingEntrySchema: z.ZodObject<{
7533
7533
  }, z.core.$strict>], "kind">>;
7534
7534
  filter: z.ZodEnum<{
7535
7535
  purchase: "purchase";
7536
- expired: "expired";
7537
- source: "source";
7538
7536
  usage: "usage";
7537
+ expired: "expired";
7539
7538
  all: "all";
7539
+ source: "source";
7540
7540
  issued: "issued";
7541
7541
  reserved: "reserved";
7542
7542
  redeemed: "redeemed";
@@ -7592,8 +7592,8 @@ declare const funnelPendingEntrySchema: z.ZodObject<{
7592
7592
  receiptId: z.ZodUUID;
7593
7593
  outcome: z.ZodEnum<{
7594
7594
  success: "success";
7595
- failed: "failed";
7596
7595
  cancel: "cancel";
7596
+ failed: "failed";
7597
7597
  opened: "opened";
7598
7598
  failure: "failure";
7599
7599
  }>;
@@ -7672,7 +7672,7 @@ declare const funnelPendingEntrySchema: z.ZodObject<{
7672
7672
  } | {
7673
7673
  type: "client_action";
7674
7674
  receiptId: string;
7675
- outcome: "success" | "failed" | "cancel" | "opened" | "failure";
7675
+ outcome: "success" | "cancel" | "failed" | "opened" | "failure";
7676
7676
  };
7677
7677
  requestId: string;
7678
7678
  nodeId: string;
@@ -7747,13 +7747,13 @@ declare const funnelPendingEntrySchema: z.ZodObject<{
7747
7747
  cursor: {
7748
7748
  at: string;
7749
7749
  id: string;
7750
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
7750
+ type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
7751
7751
  };
7752
7752
  } | {
7753
7753
  kind: "billing";
7754
7754
  cursor: string;
7755
7755
  } | null;
7756
- filter: "purchase" | "expired" | "source" | "usage" | "all" | "issued" | "reserved" | "redeemed" | "revoked" | "refund" | "debt" | "settlement";
7756
+ filter: "purchase" | "usage" | "expired" | "all" | "source" | "issued" | "reserved" | "redeemed" | "revoked" | "refund" | "debt" | "settlement";
7757
7757
  resourceKey?: string | undefined;
7758
7758
  }>;
7759
7759
  } | undefined;
@@ -7796,7 +7796,7 @@ declare const funnelPendingEntrySchema: z.ZodObject<{
7796
7796
  } | {
7797
7797
  type: "client_action";
7798
7798
  receiptId: string;
7799
- outcome: "success" | "failed" | "cancel" | "opened" | "failure";
7799
+ outcome: "success" | "cancel" | "failed" | "opened" | "failure";
7800
7800
  };
7801
7801
  requestId: string;
7802
7802
  nodeId: string;
@@ -7877,8 +7877,8 @@ declare const funnelPendingEntrySchema: z.ZodObject<{
7877
7877
  at: z.ZodISODateTime;
7878
7878
  id: z.ZodUUID;
7879
7879
  type: z.ZodEnum<{
7880
- source: "source";
7881
7880
  usage: "usage";
7881
+ source: "source";
7882
7882
  invoice: "invoice";
7883
7883
  debt: "debt";
7884
7884
  transaction: "transaction";
@@ -7891,10 +7891,10 @@ declare const funnelPendingEntrySchema: z.ZodObject<{
7891
7891
  }, z.core.$strict>], "kind">>;
7892
7892
  filter: z.ZodEnum<{
7893
7893
  purchase: "purchase";
7894
- expired: "expired";
7895
- source: "source";
7896
7894
  usage: "usage";
7895
+ expired: "expired";
7897
7896
  all: "all";
7897
+ source: "source";
7898
7898
  issued: "issued";
7899
7899
  reserved: "reserved";
7900
7900
  redeemed: "redeemed";
@@ -7950,8 +7950,8 @@ declare const funnelPendingEntrySchema: z.ZodObject<{
7950
7950
  receiptId: z.ZodUUID;
7951
7951
  outcome: z.ZodEnum<{
7952
7952
  success: "success";
7953
- failed: "failed";
7954
7953
  cancel: "cancel";
7954
+ failed: "failed";
7955
7955
  opened: "opened";
7956
7956
  failure: "failure";
7957
7957
  }>;
@@ -8030,7 +8030,7 @@ declare const funnelPendingEntrySchema: z.ZodObject<{
8030
8030
  } | {
8031
8031
  type: "client_action";
8032
8032
  receiptId: string;
8033
- outcome: "success" | "failed" | "cancel" | "opened" | "failure";
8033
+ outcome: "success" | "cancel" | "failed" | "opened" | "failure";
8034
8034
  };
8035
8035
  requestId: string;
8036
8036
  nodeId: string;
@@ -8105,13 +8105,13 @@ declare const funnelPendingEntrySchema: z.ZodObject<{
8105
8105
  cursor: {
8106
8106
  at: string;
8107
8107
  id: string;
8108
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
8108
+ type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
8109
8109
  };
8110
8110
  } | {
8111
8111
  kind: "billing";
8112
8112
  cursor: string;
8113
8113
  } | null;
8114
- filter: "purchase" | "expired" | "source" | "usage" | "all" | "issued" | "reserved" | "redeemed" | "revoked" | "refund" | "debt" | "settlement";
8114
+ filter: "purchase" | "usage" | "expired" | "all" | "source" | "issued" | "reserved" | "redeemed" | "revoked" | "refund" | "debt" | "settlement";
8115
8115
  resourceKey?: string | undefined;
8116
8116
  }>;
8117
8117
  } | undefined;
@@ -8154,7 +8154,7 @@ declare const funnelPendingEntrySchema: z.ZodObject<{
8154
8154
  } | {
8155
8155
  type: "client_action";
8156
8156
  receiptId: string;
8157
- outcome: "success" | "failed" | "cancel" | "opened" | "failure";
8157
+ outcome: "success" | "cancel" | "failed" | "opened" | "failure";
8158
8158
  };
8159
8159
  requestId: string;
8160
8160
  nodeId: string;
@@ -8240,13 +8240,13 @@ declare const funnelPendingEntrySchema: z.ZodObject<{
8240
8240
  cursor: {
8241
8241
  at: string;
8242
8242
  id: string;
8243
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
8243
+ type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
8244
8244
  };
8245
8245
  } | {
8246
8246
  kind: "billing";
8247
8247
  cursor: string;
8248
8248
  } | null;
8249
- filter: "purchase" | "expired" | "source" | "usage" | "all" | "issued" | "reserved" | "redeemed" | "revoked" | "refund" | "debt" | "settlement";
8249
+ filter: "purchase" | "usage" | "expired" | "all" | "source" | "issued" | "reserved" | "redeemed" | "revoked" | "refund" | "debt" | "settlement";
8250
8250
  resourceKey?: string | undefined;
8251
8251
  }>;
8252
8252
  } | undefined;
@@ -8289,7 +8289,7 @@ declare const funnelPendingEntrySchema: z.ZodObject<{
8289
8289
  } | {
8290
8290
  type: "client_action";
8291
8291
  receiptId: string;
8292
- outcome: "success" | "failed" | "cancel" | "opened" | "failure";
8292
+ outcome: "success" | "cancel" | "failed" | "opened" | "failure";
8293
8293
  };
8294
8294
  requestId: string;
8295
8295
  nodeId: string;
@@ -8375,13 +8375,13 @@ declare const funnelPendingEntrySchema: z.ZodObject<{
8375
8375
  cursor: {
8376
8376
  at: string;
8377
8377
  id: string;
8378
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
8378
+ type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
8379
8379
  };
8380
8380
  } | {
8381
8381
  kind: "billing";
8382
8382
  cursor: string;
8383
8383
  } | null;
8384
- filter: "purchase" | "expired" | "source" | "usage" | "all" | "issued" | "reserved" | "redeemed" | "revoked" | "refund" | "debt" | "settlement";
8384
+ filter: "purchase" | "usage" | "expired" | "all" | "source" | "issued" | "reserved" | "redeemed" | "revoked" | "refund" | "debt" | "settlement";
8385
8385
  resourceKey?: string | undefined;
8386
8386
  }>;
8387
8387
  } | undefined;
@@ -8424,7 +8424,7 @@ declare const funnelPendingEntrySchema: z.ZodObject<{
8424
8424
  } | {
8425
8425
  type: "client_action";
8426
8426
  receiptId: string;
8427
- outcome: "success" | "failed" | "cancel" | "opened" | "failure";
8427
+ outcome: "success" | "cancel" | "failed" | "opened" | "failure";
8428
8428
  };
8429
8429
  requestId: string;
8430
8430
  nodeId: string;
@@ -8485,7 +8485,35 @@ interface FunnelCommandStorage {
8485
8485
  write(expectedRevision: number, entry: FunnelPendingEntry | null): Promise<number | null>;
8486
8486
  }
8487
8487
 
8488
+ /** Memory-only credential owner. Refresh never signals an account change. */
8489
+ declare function createSessionCredentials(exchange: (refreshToken: string) => Promise<unknown>): {
8490
+ identify(value: string | CustomerSession): void;
8491
+ reset: () => void;
8492
+ subscribeIdentity(listener: () => void, beforeChange?: () => void): () => void;
8493
+ access(): string | Promise<string>;
8494
+ peek: () => string | undefined;
8495
+ snapshot: () => {
8496
+ customerId: string;
8497
+ sessionId: string;
8498
+ accessToken: string;
8499
+ refreshToken: string;
8500
+ expiresAt: string;
8501
+ refreshExpiresAt: string;
8502
+ } | undefined;
8503
+ refresh: () => Promise<{
8504
+ customerId: string;
8505
+ sessionId: string;
8506
+ accessToken: string;
8507
+ refreshToken: string;
8508
+ expiresAt: string;
8509
+ refreshExpiresAt: string;
8510
+ }>;
8511
+ };
8512
+ type SessionCredentials = ReturnType<typeof createSessionCredentials>;
8513
+
8488
8514
  interface IndianaOptions {
8515
+ /** Share one refresh lifecycle with other clients/hosts for the same Customer. */
8516
+ session?: SessionCredentials;
8489
8517
  /** Optional native installation adapter; shares this client's identity and transport. */
8490
8518
  push?: PushHost;
8491
8519
  /** Override the per-Run CAS adapter. Secure browser hosts use Web Locks/localStorage by default; non-browser hosts supply their own adapter. */
@@ -9252,18 +9280,18 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
9252
9280
  ranges: [number, number][];
9253
9281
  attribute?: string | undefined;
9254
9282
  }[] | undefined;
9283
+ condition?: Record<string, zod.JSONType> | undefined;
9284
+ force?: number | undefined;
9285
+ hashAttribute?: string | undefined;
9255
9286
  seed?: string | undefined;
9256
9287
  hashVersion?: 2 | undefined;
9257
9288
  ranges?: [number, number][] | undefined;
9258
- condition?: Record<string, zod.JSONType> | undefined;
9259
9289
  urlPatterns?: {
9260
9290
  include: boolean;
9261
9291
  type: "regex" | "simple";
9262
9292
  pattern: string;
9263
9293
  }[] | undefined;
9264
- force?: number | undefined;
9265
9294
  persistQueryString?: boolean | undefined;
9266
- hashAttribute?: string | undefined;
9267
9295
  parentConditions?: {
9268
9296
  id: string;
9269
9297
  condition: Record<string, zod.JSONType>;
@@ -9472,6 +9500,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
9472
9500
  notParticipating: string;
9473
9501
  id: string;
9474
9502
  name: string;
9503
+ applyPageExperiment?: true | undefined;
9475
9504
  position?: {
9476
9505
  x: number;
9477
9506
  y: number;
@@ -9512,7 +9541,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
9512
9541
  event: string;
9513
9542
  } | {
9514
9543
  type: "api";
9515
- operation: "update" | "attach" | "refund" | "sendMessage" | "readBalanceSource" | "adjustBalance" | "readUsage" | "setUsage" | "manageBalanceGrant" | "listBalanceGrants" | "restoreNativePurchase" | "setupPayment" | "readPaymentSetup" | "verifySubscriptions" | "previewAttach" | "readSubscriptionOperation" | "previewUpdate" | "readSubscriptionUpdate" | "previewRefund" | "readRefund" | "readBillingControls" | "prepareBillingAuthorization" | "confirmBillingAuthorization" | "setBillingCoupons" | "revokeBillingAuthorization" | "listBillingInvoices" | "confirmBillingAdjustment" | "manageBillingLimits" | "manageUsageEntity" | "readUsageAnalytics" | "readCreditAnalytics" | "submitUsageBatch" | "readUsageBatch" | "checkEntitlement" | "resolveOffering" | "readHoldings" | "readLedger" | "readBillingInvoice" | "readCreditStatement" | "quoteBalance" | "trackUsage" | "mutateBalance" | "redeemReward" | "createReferralCode" | "claimRewardProduct" | "readSeats" | "manageSeat" | "redeemCoupon" | "listOffers" | "grantOffer";
9544
+ operation: "update" | "refund" | "sendMessage" | "readBalanceSource" | "adjustBalance" | "readUsage" | "setUsage" | "manageBalanceGrant" | "listBalanceGrants" | "restoreNativePurchase" | "setupPayment" | "readPaymentSetup" | "verifySubscriptions" | "previewAttach" | "attach" | "readSubscriptionOperation" | "previewUpdate" | "readSubscriptionUpdate" | "previewRefund" | "readRefund" | "readBillingControls" | "prepareBillingAuthorization" | "confirmBillingAuthorization" | "setBillingCoupons" | "revokeBillingAuthorization" | "listBillingInvoices" | "confirmBillingAdjustment" | "manageBillingLimits" | "manageUsageEntity" | "readUsageAnalytics" | "readCreditAnalytics" | "submitUsageBatch" | "readUsageBatch" | "checkEntitlement" | "resolveOffering" | "readHoldings" | "readLedger" | "readBillingInvoice" | "readCreditStatement" | "quoteBalance" | "trackUsage" | "mutateBalance" | "redeemReward" | "createReferralCode" | "claimRewardProduct" | "readSeats" | "manageSeat" | "redeemCoupon" | "listOffers" | "grantOffer";
9516
9545
  inputs: Record<string, {
9517
9546
  source: "literal";
9518
9547
  value: zod.JSONType;
@@ -10555,7 +10584,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
10555
10584
  visit: number;
10556
10585
  nodeId: string;
10557
10586
  nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
10558
- status: "failed" | "completed" | "running" | "closed" | "ineligible" | "waiting";
10587
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
10559
10588
  stopped: boolean;
10560
10589
  canBack: boolean;
10561
10590
  authenticated: boolean;
@@ -10837,7 +10866,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
10837
10866
  cursor: {
10838
10867
  at: string;
10839
10868
  id: string;
10840
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
10869
+ type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
10841
10870
  };
10842
10871
  } | {
10843
10872
  kind: "billing";
@@ -11275,7 +11304,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
11275
11304
  totalMinor: number;
11276
11305
  } | null;
11277
11306
  expiresAt: string;
11278
- provider: "apple" | "google" | "stripe";
11307
+ provider: "stripe" | "apple" | "google";
11279
11308
  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";
11280
11309
  lines: {
11281
11310
  lineId: string;
@@ -11335,9 +11364,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
11335
11364
  automaticTax: boolean;
11336
11365
  execution: {
11337
11366
  provider: "stripe";
11338
- executor: "merchant" | "indiana";
11367
+ executor: "indiana" | "merchant";
11339
11368
  accountId: string;
11340
- mode: "subscription" | "payment";
11369
+ mode: "payment" | "subscription";
11341
11370
  lineItems: {
11342
11371
  price: string | null;
11343
11372
  quantity: number;
@@ -11407,13 +11436,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
11407
11436
  operationId: string;
11408
11437
  orderId: string;
11409
11438
  status: "pending" | "failed" | "complete" | "cancelled";
11410
- executor: "merchant" | "indiana";
11439
+ executor: "indiana" | "merchant";
11411
11440
  checkoutUrl: string | null;
11412
11441
  execution: {
11413
11442
  provider: "stripe";
11414
- executor: "merchant" | "indiana";
11443
+ executor: "indiana" | "merchant";
11415
11444
  accountId: string;
11416
- mode: "subscription" | "payment";
11445
+ mode: "payment" | "subscription";
11417
11446
  lineItems: {
11418
11447
  price: string | null;
11419
11448
  quantity: number;
@@ -11484,7 +11513,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
11484
11513
  productVersionId: string;
11485
11514
  provider: "apple" | "google";
11486
11515
  productId: string;
11487
- productKind: "membership" | "lifetime" | "credit_pack";
11516
+ productKind: "lifetime" | "membership" | "credit_pack";
11488
11517
  replacement: {
11489
11518
  sourceOrderId: string;
11490
11519
  sourceProductId: string;
@@ -11587,7 +11616,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
11587
11616
  } | {
11588
11617
  type: "client_action";
11589
11618
  receiptId: string;
11590
- outcome: "success" | "failed" | "cancel" | "opened" | "failure";
11619
+ outcome: "success" | "cancel" | "failed" | "opened" | "failure";
11591
11620
  };
11592
11621
  requestId: string;
11593
11622
  nodeId: string;
@@ -11660,7 +11689,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
11660
11689
  } | {
11661
11690
  type: "client_action";
11662
11691
  receiptId: string;
11663
- outcome: "success" | "failed" | "cancel" | "opened" | "failure";
11692
+ outcome: "success" | "cancel" | "failed" | "opened" | "failure";
11664
11693
  };
11665
11694
  requestId: string;
11666
11695
  nodeId: string;
@@ -11721,7 +11750,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
11721
11750
  visit: number;
11722
11751
  nodeId: string;
11723
11752
  nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
11724
- status: "failed" | "completed" | "running" | "closed" | "ineligible" | "waiting";
11753
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
11725
11754
  stopped: boolean;
11726
11755
  canBack: boolean;
11727
11756
  authenticated: boolean;
@@ -12003,7 +12032,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
12003
12032
  cursor: {
12004
12033
  at: string;
12005
12034
  id: string;
12006
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
12035
+ type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
12007
12036
  };
12008
12037
  } | {
12009
12038
  kind: "billing";
@@ -12441,7 +12470,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
12441
12470
  totalMinor: number;
12442
12471
  } | null;
12443
12472
  expiresAt: string;
12444
- provider: "apple" | "google" | "stripe";
12473
+ provider: "stripe" | "apple" | "google";
12445
12474
  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";
12446
12475
  lines: {
12447
12476
  lineId: string;
@@ -12501,9 +12530,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
12501
12530
  automaticTax: boolean;
12502
12531
  execution: {
12503
12532
  provider: "stripe";
12504
- executor: "merchant" | "indiana";
12533
+ executor: "indiana" | "merchant";
12505
12534
  accountId: string;
12506
- mode: "subscription" | "payment";
12535
+ mode: "payment" | "subscription";
12507
12536
  lineItems: {
12508
12537
  price: string | null;
12509
12538
  quantity: number;
@@ -12573,13 +12602,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
12573
12602
  operationId: string;
12574
12603
  orderId: string;
12575
12604
  status: "pending" | "failed" | "complete" | "cancelled";
12576
- executor: "merchant" | "indiana";
12605
+ executor: "indiana" | "merchant";
12577
12606
  checkoutUrl: string | null;
12578
12607
  execution: {
12579
12608
  provider: "stripe";
12580
- executor: "merchant" | "indiana";
12609
+ executor: "indiana" | "merchant";
12581
12610
  accountId: string;
12582
- mode: "subscription" | "payment";
12611
+ mode: "payment" | "subscription";
12583
12612
  lineItems: {
12584
12613
  price: string | null;
12585
12614
  quantity: number;
@@ -12650,7 +12679,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
12650
12679
  productVersionId: string;
12651
12680
  provider: "apple" | "google";
12652
12681
  productId: string;
12653
- productKind: "membership" | "lifetime" | "credit_pack";
12682
+ productKind: "lifetime" | "membership" | "credit_pack";
12654
12683
  replacement: {
12655
12684
  sourceOrderId: string;
12656
12685
  sourceProductId: string;
@@ -12766,7 +12795,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
12766
12795
  totalMinor: number;
12767
12796
  } | null;
12768
12797
  expiresAt: string;
12769
- provider: "apple" | "google" | "stripe";
12798
+ provider: "stripe" | "apple" | "google";
12770
12799
  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";
12771
12800
  lines: {
12772
12801
  lineId: string;
@@ -12826,9 +12855,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
12826
12855
  automaticTax: boolean;
12827
12856
  execution: {
12828
12857
  provider: "stripe";
12829
- executor: "merchant" | "indiana";
12858
+ executor: "indiana" | "merchant";
12830
12859
  accountId: string;
12831
- mode: "subscription" | "payment";
12860
+ mode: "payment" | "subscription";
12832
12861
  lineItems: {
12833
12862
  price: string | null;
12834
12863
  quantity: number;
@@ -12898,13 +12927,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
12898
12927
  operationId: string;
12899
12928
  orderId: string;
12900
12929
  status: "pending" | "failed" | "complete" | "cancelled";
12901
- executor: "merchant" | "indiana";
12930
+ executor: "indiana" | "merchant";
12902
12931
  checkoutUrl: string | null;
12903
12932
  execution: {
12904
12933
  provider: "stripe";
12905
- executor: "merchant" | "indiana";
12934
+ executor: "indiana" | "merchant";
12906
12935
  accountId: string;
12907
- mode: "subscription" | "payment";
12936
+ mode: "payment" | "subscription";
12908
12937
  lineItems: {
12909
12938
  price: string | null;
12910
12939
  quantity: number;
@@ -12975,7 +13004,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
12975
13004
  productVersionId: string;
12976
13005
  provider: "apple" | "google";
12977
13006
  productId: string;
12978
- productKind: "membership" | "lifetime" | "credit_pack";
13007
+ productKind: "lifetime" | "membership" | "credit_pack";
12979
13008
  replacement: {
12980
13009
  sourceOrderId: string;
12981
13010
  sourceProductId: string;
@@ -13386,6 +13415,136 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
13386
13415
  };
13387
13416
  } | undefined;
13388
13417
  }>;
13418
+ pageExperiments(release: string, usedReceiptIds?: string[]): Promise<{
13419
+ scope: {
13420
+ projectId: string;
13421
+ environment: "sandbox" | "live";
13422
+ };
13423
+ runId: string;
13424
+ assignments: {
13425
+ experimentId: string;
13426
+ experimentKey: string;
13427
+ variationKey: string;
13428
+ inExperiment: boolean;
13429
+ generation: string;
13430
+ receiptId: string;
13431
+ }[];
13432
+ payload: {
13433
+ trackExposures: boolean;
13434
+ environmentId: string;
13435
+ generation: string;
13436
+ experiments: {
13437
+ key: string;
13438
+ changeId: string;
13439
+ variations: [{
13440
+ css: string;
13441
+ js: string;
13442
+ domMutations: {
13443
+ selector: string;
13444
+ action: "set" | "remove" | "append";
13445
+ attribute: string;
13446
+ value?: string | undefined;
13447
+ parentSelector?: string | undefined;
13448
+ insertBeforeSelector?: string | undefined;
13449
+ }[];
13450
+ renderGuard?: {
13451
+ schemaVersion: 1;
13452
+ renderKey: string;
13453
+ routeTemplate: string;
13454
+ selectors: string[];
13455
+ present: number[];
13456
+ absent: number[];
13457
+ } | undefined;
13458
+ }, {
13459
+ css: string;
13460
+ js: string;
13461
+ domMutations: {
13462
+ selector: string;
13463
+ action: "set" | "remove" | "append";
13464
+ attribute: string;
13465
+ value?: string | undefined;
13466
+ parentSelector?: string | undefined;
13467
+ insertBeforeSelector?: string | undefined;
13468
+ }[];
13469
+ renderGuard?: {
13470
+ schemaVersion: 1;
13471
+ renderKey: string;
13472
+ routeTemplate: string;
13473
+ selectors: string[];
13474
+ present: number[];
13475
+ absent: number[];
13476
+ } | undefined;
13477
+ }, ...{
13478
+ css: string;
13479
+ js: string;
13480
+ domMutations: {
13481
+ selector: string;
13482
+ action: "set" | "remove" | "append";
13483
+ attribute: string;
13484
+ value?: string | undefined;
13485
+ parentSelector?: string | undefined;
13486
+ insertBeforeSelector?: string | undefined;
13487
+ }[];
13488
+ renderGuard?: {
13489
+ schemaVersion: 1;
13490
+ renderKey: string;
13491
+ routeTemplate: string;
13492
+ selectors: string[];
13493
+ present: number[];
13494
+ absent: number[];
13495
+ } | undefined;
13496
+ }[]];
13497
+ name?: string | undefined;
13498
+ filters?: {
13499
+ seed: string;
13500
+ hashVersion: 2;
13501
+ ranges: [number, number][];
13502
+ attribute?: string | undefined;
13503
+ }[] | undefined;
13504
+ condition?: Record<string, zod.JSONType> | undefined;
13505
+ force?: number | undefined;
13506
+ hashAttribute?: string | undefined;
13507
+ seed?: string | undefined;
13508
+ hashVersion?: 2 | undefined;
13509
+ ranges?: [number, number][] | undefined;
13510
+ urlPatterns?: {
13511
+ include: boolean;
13512
+ type: "regex" | "simple";
13513
+ pattern: string;
13514
+ }[] | undefined;
13515
+ persistQueryString?: boolean | undefined;
13516
+ parentConditions?: {
13517
+ id: string;
13518
+ condition: Record<string, zod.JSONType>;
13519
+ gate?: boolean | undefined;
13520
+ }[] | undefined;
13521
+ weights?: number[] | undefined;
13522
+ coverage?: number | undefined;
13523
+ fallbackAttribute?: string | undefined;
13524
+ disableStickyBucketing?: boolean | undefined;
13525
+ bucketVersion?: number | undefined;
13526
+ minBucketVersion?: number | undefined;
13527
+ meta?: {
13528
+ key?: string | undefined;
13529
+ name?: string | undefined;
13530
+ passthrough?: boolean | undefined;
13531
+ }[] | undefined;
13532
+ phase?: string | undefined;
13533
+ }[];
13534
+ savedGroups: Record<string, {
13535
+ type: "hashed";
13536
+ attributeKey: string;
13537
+ values: string[];
13538
+ } | {
13539
+ type: "list";
13540
+ attributeKey: string;
13541
+ values: (string | number)[];
13542
+ } | {
13543
+ type: "condition";
13544
+ condition: Record<string, zod.JSONType>;
13545
+ }>;
13546
+ };
13547
+ }>;
13389
13548
  review(receiptId?: string): Promise<{
13390
13549
  scope: {
13391
13550
  projectId: string;
@@ -13402,7 +13561,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
13402
13561
  visit: number;
13403
13562
  nodeId: string;
13404
13563
  nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
13405
- status: "failed" | "completed" | "running" | "closed" | "ineligible" | "waiting";
13564
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
13406
13565
  stopped: boolean;
13407
13566
  canBack: boolean;
13408
13567
  authenticated: boolean;
@@ -13684,7 +13843,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
13684
13843
  cursor: {
13685
13844
  at: string;
13686
13845
  id: string;
13687
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
13846
+ type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
13688
13847
  };
13689
13848
  } | {
13690
13849
  kind: "billing";
@@ -14122,7 +14281,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
14122
14281
  totalMinor: number;
14123
14282
  } | null;
14124
14283
  expiresAt: string;
14125
- provider: "apple" | "google" | "stripe";
14284
+ provider: "stripe" | "apple" | "google";
14126
14285
  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";
14127
14286
  lines: {
14128
14287
  lineId: string;
@@ -14182,9 +14341,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
14182
14341
  automaticTax: boolean;
14183
14342
  execution: {
14184
14343
  provider: "stripe";
14185
- executor: "merchant" | "indiana";
14344
+ executor: "indiana" | "merchant";
14186
14345
  accountId: string;
14187
- mode: "subscription" | "payment";
14346
+ mode: "payment" | "subscription";
14188
14347
  lineItems: {
14189
14348
  price: string | null;
14190
14349
  quantity: number;
@@ -14254,13 +14413,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
14254
14413
  operationId: string;
14255
14414
  orderId: string;
14256
14415
  status: "pending" | "failed" | "complete" | "cancelled";
14257
- executor: "merchant" | "indiana";
14416
+ executor: "indiana" | "merchant";
14258
14417
  checkoutUrl: string | null;
14259
14418
  execution: {
14260
14419
  provider: "stripe";
14261
- executor: "merchant" | "indiana";
14420
+ executor: "indiana" | "merchant";
14262
14421
  accountId: string;
14263
- mode: "subscription" | "payment";
14422
+ mode: "payment" | "subscription";
14264
14423
  lineItems: {
14265
14424
  price: string | null;
14266
14425
  quantity: number;
@@ -14331,7 +14490,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
14331
14490
  productVersionId: string;
14332
14491
  provider: "apple" | "google";
14333
14492
  productId: string;
14334
- productKind: "membership" | "lifetime" | "credit_pack";
14493
+ productKind: "lifetime" | "membership" | "credit_pack";
14335
14494
  replacement: {
14336
14495
  sourceOrderId: string;
14337
14496
  sourceProductId: string;
@@ -14447,7 +14606,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
14447
14606
  totalMinor: number;
14448
14607
  } | null;
14449
14608
  expiresAt: string;
14450
- provider: "apple" | "google" | "stripe";
14609
+ provider: "stripe" | "apple" | "google";
14451
14610
  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";
14452
14611
  lines: {
14453
14612
  lineId: string;
@@ -14507,9 +14666,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
14507
14666
  automaticTax: boolean;
14508
14667
  execution: {
14509
14668
  provider: "stripe";
14510
- executor: "merchant" | "indiana";
14669
+ executor: "indiana" | "merchant";
14511
14670
  accountId: string;
14512
- mode: "subscription" | "payment";
14671
+ mode: "payment" | "subscription";
14513
14672
  lineItems: {
14514
14673
  price: string | null;
14515
14674
  quantity: number;
@@ -14579,13 +14738,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
14579
14738
  operationId: string;
14580
14739
  orderId: string;
14581
14740
  status: "pending" | "failed" | "complete" | "cancelled";
14582
- executor: "merchant" | "indiana";
14741
+ executor: "indiana" | "merchant";
14583
14742
  checkoutUrl: string | null;
14584
14743
  execution: {
14585
14744
  provider: "stripe";
14586
- executor: "merchant" | "indiana";
14745
+ executor: "indiana" | "merchant";
14587
14746
  accountId: string;
14588
- mode: "subscription" | "payment";
14747
+ mode: "payment" | "subscription";
14589
14748
  lineItems: {
14590
14749
  price: string | null;
14591
14750
  quantity: number;
@@ -14656,7 +14815,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
14656
14815
  productVersionId: string;
14657
14816
  provider: "apple" | "google";
14658
14817
  productId: string;
14659
- productKind: "membership" | "lifetime" | "credit_pack";
14818
+ productKind: "lifetime" | "membership" | "credit_pack";
14660
14819
  replacement: {
14661
14820
  sourceOrderId: string;
14662
14821
  sourceProductId: string;
@@ -14821,7 +14980,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
14821
14980
  visit: number;
14822
14981
  nodeId: string;
14823
14982
  nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
14824
- status: "failed" | "completed" | "running" | "closed" | "ineligible" | "waiting";
14983
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
14825
14984
  stopped: boolean;
14826
14985
  canBack: boolean;
14827
14986
  authenticated: boolean;
@@ -15103,7 +15262,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
15103
15262
  cursor: {
15104
15263
  at: string;
15105
15264
  id: string;
15106
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
15265
+ type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
15107
15266
  };
15108
15267
  } | {
15109
15268
  kind: "billing";
@@ -15541,7 +15700,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
15541
15700
  totalMinor: number;
15542
15701
  } | null;
15543
15702
  expiresAt: string;
15544
- provider: "apple" | "google" | "stripe";
15703
+ provider: "stripe" | "apple" | "google";
15545
15704
  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";
15546
15705
  lines: {
15547
15706
  lineId: string;
@@ -15601,9 +15760,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
15601
15760
  automaticTax: boolean;
15602
15761
  execution: {
15603
15762
  provider: "stripe";
15604
- executor: "merchant" | "indiana";
15763
+ executor: "indiana" | "merchant";
15605
15764
  accountId: string;
15606
- mode: "subscription" | "payment";
15765
+ mode: "payment" | "subscription";
15607
15766
  lineItems: {
15608
15767
  price: string | null;
15609
15768
  quantity: number;
@@ -15673,13 +15832,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
15673
15832
  operationId: string;
15674
15833
  orderId: string;
15675
15834
  status: "pending" | "failed" | "complete" | "cancelled";
15676
- executor: "merchant" | "indiana";
15835
+ executor: "indiana" | "merchant";
15677
15836
  checkoutUrl: string | null;
15678
15837
  execution: {
15679
15838
  provider: "stripe";
15680
- executor: "merchant" | "indiana";
15839
+ executor: "indiana" | "merchant";
15681
15840
  accountId: string;
15682
- mode: "subscription" | "payment";
15841
+ mode: "payment" | "subscription";
15683
15842
  lineItems: {
15684
15843
  price: string | null;
15685
15844
  quantity: number;
@@ -15750,7 +15909,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
15750
15909
  productVersionId: string;
15751
15910
  provider: "apple" | "google";
15752
15911
  productId: string;
15753
- productKind: "membership" | "lifetime" | "credit_pack";
15912
+ productKind: "lifetime" | "membership" | "credit_pack";
15754
15913
  replacement: {
15755
15914
  sourceOrderId: string;
15756
15915
  sourceProductId: string;
@@ -15866,7 +16025,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
15866
16025
  totalMinor: number;
15867
16026
  } | null;
15868
16027
  expiresAt: string;
15869
- provider: "apple" | "google" | "stripe";
16028
+ provider: "stripe" | "apple" | "google";
15870
16029
  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";
15871
16030
  lines: {
15872
16031
  lineId: string;
@@ -15926,9 +16085,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
15926
16085
  automaticTax: boolean;
15927
16086
  execution: {
15928
16087
  provider: "stripe";
15929
- executor: "merchant" | "indiana";
16088
+ executor: "indiana" | "merchant";
15930
16089
  accountId: string;
15931
- mode: "subscription" | "payment";
16090
+ mode: "payment" | "subscription";
15932
16091
  lineItems: {
15933
16092
  price: string | null;
15934
16093
  quantity: number;
@@ -15998,13 +16157,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
15998
16157
  operationId: string;
15999
16158
  orderId: string;
16000
16159
  status: "pending" | "failed" | "complete" | "cancelled";
16001
- executor: "merchant" | "indiana";
16160
+ executor: "indiana" | "merchant";
16002
16161
  checkoutUrl: string | null;
16003
16162
  execution: {
16004
16163
  provider: "stripe";
16005
- executor: "merchant" | "indiana";
16164
+ executor: "indiana" | "merchant";
16006
16165
  accountId: string;
16007
- mode: "subscription" | "payment";
16166
+ mode: "payment" | "subscription";
16008
16167
  lineItems: {
16009
16168
  price: string | null;
16010
16169
  quantity: number;
@@ -16075,7 +16234,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
16075
16234
  productVersionId: string;
16076
16235
  provider: "apple" | "google";
16077
16236
  productId: string;
16078
- productKind: "membership" | "lifetime" | "credit_pack";
16237
+ productKind: "lifetime" | "membership" | "credit_pack";
16079
16238
  replacement: {
16080
16239
  sourceOrderId: string;
16081
16240
  sourceProductId: string;
@@ -16238,7 +16397,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
16238
16397
  visit: number;
16239
16398
  nodeId: string;
16240
16399
  nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
16241
- status: "failed" | "completed" | "running" | "closed" | "ineligible" | "waiting";
16400
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
16242
16401
  stopped: boolean;
16243
16402
  canBack: boolean;
16244
16403
  authenticated: boolean;
@@ -16520,7 +16679,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
16520
16679
  cursor: {
16521
16680
  at: string;
16522
16681
  id: string;
16523
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
16682
+ type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
16524
16683
  };
16525
16684
  } | {
16526
16685
  kind: "billing";
@@ -16958,7 +17117,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
16958
17117
  totalMinor: number;
16959
17118
  } | null;
16960
17119
  expiresAt: string;
16961
- provider: "apple" | "google" | "stripe";
17120
+ provider: "stripe" | "apple" | "google";
16962
17121
  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";
16963
17122
  lines: {
16964
17123
  lineId: string;
@@ -17018,9 +17177,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
17018
17177
  automaticTax: boolean;
17019
17178
  execution: {
17020
17179
  provider: "stripe";
17021
- executor: "merchant" | "indiana";
17180
+ executor: "indiana" | "merchant";
17022
17181
  accountId: string;
17023
- mode: "subscription" | "payment";
17182
+ mode: "payment" | "subscription";
17024
17183
  lineItems: {
17025
17184
  price: string | null;
17026
17185
  quantity: number;
@@ -17090,13 +17249,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
17090
17249
  operationId: string;
17091
17250
  orderId: string;
17092
17251
  status: "pending" | "failed" | "complete" | "cancelled";
17093
- executor: "merchant" | "indiana";
17252
+ executor: "indiana" | "merchant";
17094
17253
  checkoutUrl: string | null;
17095
17254
  execution: {
17096
17255
  provider: "stripe";
17097
- executor: "merchant" | "indiana";
17256
+ executor: "indiana" | "merchant";
17098
17257
  accountId: string;
17099
- mode: "subscription" | "payment";
17258
+ mode: "payment" | "subscription";
17100
17259
  lineItems: {
17101
17260
  price: string | null;
17102
17261
  quantity: number;
@@ -17167,7 +17326,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
17167
17326
  productVersionId: string;
17168
17327
  provider: "apple" | "google";
17169
17328
  productId: string;
17170
- productKind: "membership" | "lifetime" | "credit_pack";
17329
+ productKind: "lifetime" | "membership" | "credit_pack";
17171
17330
  replacement: {
17172
17331
  sourceOrderId: string;
17173
17332
  sourceProductId: string;
@@ -17283,7 +17442,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
17283
17442
  totalMinor: number;
17284
17443
  } | null;
17285
17444
  expiresAt: string;
17286
- provider: "apple" | "google" | "stripe";
17445
+ provider: "stripe" | "apple" | "google";
17287
17446
  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";
17288
17447
  lines: {
17289
17448
  lineId: string;
@@ -17343,9 +17502,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
17343
17502
  automaticTax: boolean;
17344
17503
  execution: {
17345
17504
  provider: "stripe";
17346
- executor: "merchant" | "indiana";
17505
+ executor: "indiana" | "merchant";
17347
17506
  accountId: string;
17348
- mode: "subscription" | "payment";
17507
+ mode: "payment" | "subscription";
17349
17508
  lineItems: {
17350
17509
  price: string | null;
17351
17510
  quantity: number;
@@ -17415,13 +17574,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
17415
17574
  operationId: string;
17416
17575
  orderId: string;
17417
17576
  status: "pending" | "failed" | "complete" | "cancelled";
17418
- executor: "merchant" | "indiana";
17577
+ executor: "indiana" | "merchant";
17419
17578
  checkoutUrl: string | null;
17420
17579
  execution: {
17421
17580
  provider: "stripe";
17422
- executor: "merchant" | "indiana";
17581
+ executor: "indiana" | "merchant";
17423
17582
  accountId: string;
17424
- mode: "subscription" | "payment";
17583
+ mode: "payment" | "subscription";
17425
17584
  lineItems: {
17426
17585
  price: string | null;
17427
17586
  quantity: number;
@@ -17492,7 +17651,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
17492
17651
  productVersionId: string;
17493
17652
  provider: "apple" | "google";
17494
17653
  productId: string;
17495
- productKind: "membership" | "lifetime" | "credit_pack";
17654
+ productKind: "lifetime" | "membership" | "credit_pack";
17496
17655
  replacement: {
17497
17656
  sourceOrderId: string;
17498
17657
  sourceProductId: string;
@@ -17658,7 +17817,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
17658
17817
  visit: number;
17659
17818
  nodeId: string;
17660
17819
  nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
17661
- status: "failed" | "completed" | "running" | "closed" | "ineligible" | "waiting";
17820
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
17662
17821
  stopped: boolean;
17663
17822
  canBack: boolean;
17664
17823
  authenticated: boolean;
@@ -17940,7 +18099,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
17940
18099
  cursor: {
17941
18100
  at: string;
17942
18101
  id: string;
17943
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
18102
+ type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
17944
18103
  };
17945
18104
  } | {
17946
18105
  kind: "billing";
@@ -18378,7 +18537,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
18378
18537
  totalMinor: number;
18379
18538
  } | null;
18380
18539
  expiresAt: string;
18381
- provider: "apple" | "google" | "stripe";
18540
+ provider: "stripe" | "apple" | "google";
18382
18541
  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";
18383
18542
  lines: {
18384
18543
  lineId: string;
@@ -18438,9 +18597,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
18438
18597
  automaticTax: boolean;
18439
18598
  execution: {
18440
18599
  provider: "stripe";
18441
- executor: "merchant" | "indiana";
18600
+ executor: "indiana" | "merchant";
18442
18601
  accountId: string;
18443
- mode: "subscription" | "payment";
18602
+ mode: "payment" | "subscription";
18444
18603
  lineItems: {
18445
18604
  price: string | null;
18446
18605
  quantity: number;
@@ -18510,13 +18669,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
18510
18669
  operationId: string;
18511
18670
  orderId: string;
18512
18671
  status: "pending" | "failed" | "complete" | "cancelled";
18513
- executor: "merchant" | "indiana";
18672
+ executor: "indiana" | "merchant";
18514
18673
  checkoutUrl: string | null;
18515
18674
  execution: {
18516
18675
  provider: "stripe";
18517
- executor: "merchant" | "indiana";
18676
+ executor: "indiana" | "merchant";
18518
18677
  accountId: string;
18519
- mode: "subscription" | "payment";
18678
+ mode: "payment" | "subscription";
18520
18679
  lineItems: {
18521
18680
  price: string | null;
18522
18681
  quantity: number;
@@ -18587,7 +18746,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
18587
18746
  productVersionId: string;
18588
18747
  provider: "apple" | "google";
18589
18748
  productId: string;
18590
- productKind: "membership" | "lifetime" | "credit_pack";
18749
+ productKind: "lifetime" | "membership" | "credit_pack";
18591
18750
  replacement: {
18592
18751
  sourceOrderId: string;
18593
18752
  sourceProductId: string;
@@ -18703,7 +18862,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
18703
18862
  totalMinor: number;
18704
18863
  } | null;
18705
18864
  expiresAt: string;
18706
- provider: "apple" | "google" | "stripe";
18865
+ provider: "stripe" | "apple" | "google";
18707
18866
  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";
18708
18867
  lines: {
18709
18868
  lineId: string;
@@ -18763,9 +18922,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
18763
18922
  automaticTax: boolean;
18764
18923
  execution: {
18765
18924
  provider: "stripe";
18766
- executor: "merchant" | "indiana";
18925
+ executor: "indiana" | "merchant";
18767
18926
  accountId: string;
18768
- mode: "subscription" | "payment";
18927
+ mode: "payment" | "subscription";
18769
18928
  lineItems: {
18770
18929
  price: string | null;
18771
18930
  quantity: number;
@@ -18835,13 +18994,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
18835
18994
  operationId: string;
18836
18995
  orderId: string;
18837
18996
  status: "pending" | "failed" | "complete" | "cancelled";
18838
- executor: "merchant" | "indiana";
18997
+ executor: "indiana" | "merchant";
18839
18998
  checkoutUrl: string | null;
18840
18999
  execution: {
18841
19000
  provider: "stripe";
18842
- executor: "merchant" | "indiana";
19001
+ executor: "indiana" | "merchant";
18843
19002
  accountId: string;
18844
- mode: "subscription" | "payment";
19003
+ mode: "payment" | "subscription";
18845
19004
  lineItems: {
18846
19005
  price: string | null;
18847
19006
  quantity: number;
@@ -18912,7 +19071,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
18912
19071
  productVersionId: string;
18913
19072
  provider: "apple" | "google";
18914
19073
  productId: string;
18915
- productKind: "membership" | "lifetime" | "credit_pack";
19074
+ productKind: "lifetime" | "membership" | "credit_pack";
18916
19075
  replacement: {
18917
19076
  sourceOrderId: string;
18918
19077
  sourceProductId: string;
@@ -19362,18 +19521,18 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
19362
19521
  ranges: [number, number][];
19363
19522
  attribute?: string | undefined;
19364
19523
  }[] | undefined;
19524
+ condition?: Record<string, zod.JSONType> | undefined;
19525
+ force?: number | undefined;
19526
+ hashAttribute?: string | undefined;
19365
19527
  seed?: string | undefined;
19366
19528
  hashVersion?: 2 | undefined;
19367
19529
  ranges?: [number, number][] | undefined;
19368
- condition?: Record<string, zod.JSONType> | undefined;
19369
19530
  urlPatterns?: {
19370
19531
  include: boolean;
19371
19532
  type: "regex" | "simple";
19372
19533
  pattern: string;
19373
19534
  }[] | undefined;
19374
- force?: number | undefined;
19375
19535
  persistQueryString?: boolean | undefined;
19376
- hashAttribute?: string | undefined;
19377
19536
  parentConditions?: {
19378
19537
  id: string;
19379
19538
  condition: Record<string, zod.JSONType>;
@@ -19582,6 +19741,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
19582
19741
  notParticipating: string;
19583
19742
  id: string;
19584
19743
  name: string;
19744
+ applyPageExperiment?: true | undefined;
19585
19745
  position?: {
19586
19746
  x: number;
19587
19747
  y: number;
@@ -19622,7 +19782,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
19622
19782
  event: string;
19623
19783
  } | {
19624
19784
  type: "api";
19625
- operation: "update" | "attach" | "refund" | "sendMessage" | "readBalanceSource" | "adjustBalance" | "readUsage" | "setUsage" | "manageBalanceGrant" | "listBalanceGrants" | "restoreNativePurchase" | "setupPayment" | "readPaymentSetup" | "verifySubscriptions" | "previewAttach" | "readSubscriptionOperation" | "previewUpdate" | "readSubscriptionUpdate" | "previewRefund" | "readRefund" | "readBillingControls" | "prepareBillingAuthorization" | "confirmBillingAuthorization" | "setBillingCoupons" | "revokeBillingAuthorization" | "listBillingInvoices" | "confirmBillingAdjustment" | "manageBillingLimits" | "manageUsageEntity" | "readUsageAnalytics" | "readCreditAnalytics" | "submitUsageBatch" | "readUsageBatch" | "checkEntitlement" | "resolveOffering" | "readHoldings" | "readLedger" | "readBillingInvoice" | "readCreditStatement" | "quoteBalance" | "trackUsage" | "mutateBalance" | "redeemReward" | "createReferralCode" | "claimRewardProduct" | "readSeats" | "manageSeat" | "redeemCoupon" | "listOffers" | "grantOffer";
19785
+ operation: "update" | "refund" | "sendMessage" | "readBalanceSource" | "adjustBalance" | "readUsage" | "setUsage" | "manageBalanceGrant" | "listBalanceGrants" | "restoreNativePurchase" | "setupPayment" | "readPaymentSetup" | "verifySubscriptions" | "previewAttach" | "attach" | "readSubscriptionOperation" | "previewUpdate" | "readSubscriptionUpdate" | "previewRefund" | "readRefund" | "readBillingControls" | "prepareBillingAuthorization" | "confirmBillingAuthorization" | "setBillingCoupons" | "revokeBillingAuthorization" | "listBillingInvoices" | "confirmBillingAdjustment" | "manageBillingLimits" | "manageUsageEntity" | "readUsageAnalytics" | "readCreditAnalytics" | "submitUsageBatch" | "readUsageBatch" | "checkEntitlement" | "resolveOffering" | "readHoldings" | "readLedger" | "readBillingInvoice" | "readCreditStatement" | "quoteBalance" | "trackUsage" | "mutateBalance" | "redeemReward" | "createReferralCode" | "claimRewardProduct" | "readSeats" | "manageSeat" | "redeemCoupon" | "listOffers" | "grantOffer";
19626
19786
  inputs: Record<string, {
19627
19787
  source: "literal";
19628
19788
  value: zod.JSONType;
@@ -20665,7 +20825,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
20665
20825
  visit: number;
20666
20826
  nodeId: string;
20667
20827
  nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
20668
- status: "failed" | "completed" | "running" | "closed" | "ineligible" | "waiting";
20828
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
20669
20829
  stopped: boolean;
20670
20830
  canBack: boolean;
20671
20831
  authenticated: boolean;
@@ -20947,7 +21107,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
20947
21107
  cursor: {
20948
21108
  at: string;
20949
21109
  id: string;
20950
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
21110
+ type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
20951
21111
  };
20952
21112
  } | {
20953
21113
  kind: "billing";
@@ -21385,7 +21545,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
21385
21545
  totalMinor: number;
21386
21546
  } | null;
21387
21547
  expiresAt: string;
21388
- provider: "apple" | "google" | "stripe";
21548
+ provider: "stripe" | "apple" | "google";
21389
21549
  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";
21390
21550
  lines: {
21391
21551
  lineId: string;
@@ -21445,9 +21605,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
21445
21605
  automaticTax: boolean;
21446
21606
  execution: {
21447
21607
  provider: "stripe";
21448
- executor: "merchant" | "indiana";
21608
+ executor: "indiana" | "merchant";
21449
21609
  accountId: string;
21450
- mode: "subscription" | "payment";
21610
+ mode: "payment" | "subscription";
21451
21611
  lineItems: {
21452
21612
  price: string | null;
21453
21613
  quantity: number;
@@ -21517,13 +21677,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
21517
21677
  operationId: string;
21518
21678
  orderId: string;
21519
21679
  status: "pending" | "failed" | "complete" | "cancelled";
21520
- executor: "merchant" | "indiana";
21680
+ executor: "indiana" | "merchant";
21521
21681
  checkoutUrl: string | null;
21522
21682
  execution: {
21523
21683
  provider: "stripe";
21524
- executor: "merchant" | "indiana";
21684
+ executor: "indiana" | "merchant";
21525
21685
  accountId: string;
21526
- mode: "subscription" | "payment";
21686
+ mode: "payment" | "subscription";
21527
21687
  lineItems: {
21528
21688
  price: string | null;
21529
21689
  quantity: number;
@@ -21594,7 +21754,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
21594
21754
  productVersionId: string;
21595
21755
  provider: "apple" | "google";
21596
21756
  productId: string;
21597
- productKind: "membership" | "lifetime" | "credit_pack";
21757
+ productKind: "lifetime" | "membership" | "credit_pack";
21598
21758
  replacement: {
21599
21759
  sourceOrderId: string;
21600
21760
  sourceProductId: string;
@@ -21697,7 +21857,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
21697
21857
  } | {
21698
21858
  type: "client_action";
21699
21859
  receiptId: string;
21700
- outcome: "success" | "failed" | "cancel" | "opened" | "failure";
21860
+ outcome: "success" | "cancel" | "failed" | "opened" | "failure";
21701
21861
  };
21702
21862
  requestId: string;
21703
21863
  nodeId: string;
@@ -21770,7 +21930,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
21770
21930
  } | {
21771
21931
  type: "client_action";
21772
21932
  receiptId: string;
21773
- outcome: "success" | "failed" | "cancel" | "opened" | "failure";
21933
+ outcome: "success" | "cancel" | "failed" | "opened" | "failure";
21774
21934
  };
21775
21935
  requestId: string;
21776
21936
  nodeId: string;
@@ -21831,7 +21991,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
21831
21991
  visit: number;
21832
21992
  nodeId: string;
21833
21993
  nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
21834
- status: "failed" | "completed" | "running" | "closed" | "ineligible" | "waiting";
21994
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
21835
21995
  stopped: boolean;
21836
21996
  canBack: boolean;
21837
21997
  authenticated: boolean;
@@ -22113,7 +22273,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
22113
22273
  cursor: {
22114
22274
  at: string;
22115
22275
  id: string;
22116
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
22276
+ type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
22117
22277
  };
22118
22278
  } | {
22119
22279
  kind: "billing";
@@ -22551,7 +22711,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
22551
22711
  totalMinor: number;
22552
22712
  } | null;
22553
22713
  expiresAt: string;
22554
- provider: "apple" | "google" | "stripe";
22714
+ provider: "stripe" | "apple" | "google";
22555
22715
  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";
22556
22716
  lines: {
22557
22717
  lineId: string;
@@ -22611,9 +22771,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
22611
22771
  automaticTax: boolean;
22612
22772
  execution: {
22613
22773
  provider: "stripe";
22614
- executor: "merchant" | "indiana";
22774
+ executor: "indiana" | "merchant";
22615
22775
  accountId: string;
22616
- mode: "subscription" | "payment";
22776
+ mode: "payment" | "subscription";
22617
22777
  lineItems: {
22618
22778
  price: string | null;
22619
22779
  quantity: number;
@@ -22683,13 +22843,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
22683
22843
  operationId: string;
22684
22844
  orderId: string;
22685
22845
  status: "pending" | "failed" | "complete" | "cancelled";
22686
- executor: "merchant" | "indiana";
22846
+ executor: "indiana" | "merchant";
22687
22847
  checkoutUrl: string | null;
22688
22848
  execution: {
22689
22849
  provider: "stripe";
22690
- executor: "merchant" | "indiana";
22850
+ executor: "indiana" | "merchant";
22691
22851
  accountId: string;
22692
- mode: "subscription" | "payment";
22852
+ mode: "payment" | "subscription";
22693
22853
  lineItems: {
22694
22854
  price: string | null;
22695
22855
  quantity: number;
@@ -22760,7 +22920,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
22760
22920
  productVersionId: string;
22761
22921
  provider: "apple" | "google";
22762
22922
  productId: string;
22763
- productKind: "membership" | "lifetime" | "credit_pack";
22923
+ productKind: "lifetime" | "membership" | "credit_pack";
22764
22924
  replacement: {
22765
22925
  sourceOrderId: string;
22766
22926
  sourceProductId: string;
@@ -22876,7 +23036,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
22876
23036
  totalMinor: number;
22877
23037
  } | null;
22878
23038
  expiresAt: string;
22879
- provider: "apple" | "google" | "stripe";
23039
+ provider: "stripe" | "apple" | "google";
22880
23040
  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";
22881
23041
  lines: {
22882
23042
  lineId: string;
@@ -22936,9 +23096,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
22936
23096
  automaticTax: boolean;
22937
23097
  execution: {
22938
23098
  provider: "stripe";
22939
- executor: "merchant" | "indiana";
23099
+ executor: "indiana" | "merchant";
22940
23100
  accountId: string;
22941
- mode: "subscription" | "payment";
23101
+ mode: "payment" | "subscription";
22942
23102
  lineItems: {
22943
23103
  price: string | null;
22944
23104
  quantity: number;
@@ -23008,13 +23168,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
23008
23168
  operationId: string;
23009
23169
  orderId: string;
23010
23170
  status: "pending" | "failed" | "complete" | "cancelled";
23011
- executor: "merchant" | "indiana";
23171
+ executor: "indiana" | "merchant";
23012
23172
  checkoutUrl: string | null;
23013
23173
  execution: {
23014
23174
  provider: "stripe";
23015
- executor: "merchant" | "indiana";
23175
+ executor: "indiana" | "merchant";
23016
23176
  accountId: string;
23017
- mode: "subscription" | "payment";
23177
+ mode: "payment" | "subscription";
23018
23178
  lineItems: {
23019
23179
  price: string | null;
23020
23180
  quantity: number;
@@ -23085,7 +23245,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
23085
23245
  productVersionId: string;
23086
23246
  provider: "apple" | "google";
23087
23247
  productId: string;
23088
- productKind: "membership" | "lifetime" | "credit_pack";
23248
+ productKind: "lifetime" | "membership" | "credit_pack";
23089
23249
  replacement: {
23090
23250
  sourceOrderId: string;
23091
23251
  sourceProductId: string;
@@ -23496,6 +23656,136 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
23496
23656
  };
23497
23657
  } | undefined;
23498
23658
  }>;
23659
+ pageExperiments(release: string, usedReceiptIds?: string[]): Promise<{
23660
+ scope: {
23661
+ projectId: string;
23662
+ environment: "sandbox" | "live";
23663
+ };
23664
+ runId: string;
23665
+ assignments: {
23666
+ experimentId: string;
23667
+ experimentKey: string;
23668
+ variationKey: string;
23669
+ inExperiment: boolean;
23670
+ generation: string;
23671
+ receiptId: string;
23672
+ }[];
23673
+ payload: {
23674
+ trackExposures: boolean;
23675
+ environmentId: string;
23676
+ generation: string;
23677
+ experiments: {
23678
+ key: string;
23679
+ changeId: string;
23680
+ variations: [{
23681
+ css: string;
23682
+ js: string;
23683
+ domMutations: {
23684
+ selector: string;
23685
+ action: "set" | "remove" | "append";
23686
+ attribute: string;
23687
+ value?: string | undefined;
23688
+ parentSelector?: string | undefined;
23689
+ insertBeforeSelector?: string | undefined;
23690
+ }[];
23691
+ renderGuard?: {
23692
+ schemaVersion: 1;
23693
+ renderKey: string;
23694
+ routeTemplate: string;
23695
+ selectors: string[];
23696
+ present: number[];
23697
+ absent: number[];
23698
+ } | undefined;
23699
+ }, {
23700
+ css: string;
23701
+ js: string;
23702
+ domMutations: {
23703
+ selector: string;
23704
+ action: "set" | "remove" | "append";
23705
+ attribute: string;
23706
+ value?: string | undefined;
23707
+ parentSelector?: string | undefined;
23708
+ insertBeforeSelector?: string | undefined;
23709
+ }[];
23710
+ renderGuard?: {
23711
+ schemaVersion: 1;
23712
+ renderKey: string;
23713
+ routeTemplate: string;
23714
+ selectors: string[];
23715
+ present: number[];
23716
+ absent: number[];
23717
+ } | undefined;
23718
+ }, ...{
23719
+ css: string;
23720
+ js: string;
23721
+ domMutations: {
23722
+ selector: string;
23723
+ action: "set" | "remove" | "append";
23724
+ attribute: string;
23725
+ value?: string | undefined;
23726
+ parentSelector?: string | undefined;
23727
+ insertBeforeSelector?: string | undefined;
23728
+ }[];
23729
+ renderGuard?: {
23730
+ schemaVersion: 1;
23731
+ renderKey: string;
23732
+ routeTemplate: string;
23733
+ selectors: string[];
23734
+ present: number[];
23735
+ absent: number[];
23736
+ } | undefined;
23737
+ }[]];
23738
+ name?: string | undefined;
23739
+ filters?: {
23740
+ seed: string;
23741
+ hashVersion: 2;
23742
+ ranges: [number, number][];
23743
+ attribute?: string | undefined;
23744
+ }[] | undefined;
23745
+ condition?: Record<string, zod.JSONType> | undefined;
23746
+ force?: number | undefined;
23747
+ hashAttribute?: string | undefined;
23748
+ seed?: string | undefined;
23749
+ hashVersion?: 2 | undefined;
23750
+ ranges?: [number, number][] | undefined;
23751
+ urlPatterns?: {
23752
+ include: boolean;
23753
+ type: "regex" | "simple";
23754
+ pattern: string;
23755
+ }[] | undefined;
23756
+ persistQueryString?: boolean | undefined;
23757
+ parentConditions?: {
23758
+ id: string;
23759
+ condition: Record<string, zod.JSONType>;
23760
+ gate?: boolean | undefined;
23761
+ }[] | undefined;
23762
+ weights?: number[] | undefined;
23763
+ coverage?: number | undefined;
23764
+ fallbackAttribute?: string | undefined;
23765
+ disableStickyBucketing?: boolean | undefined;
23766
+ bucketVersion?: number | undefined;
23767
+ minBucketVersion?: number | undefined;
23768
+ meta?: {
23769
+ key?: string | undefined;
23770
+ name?: string | undefined;
23771
+ passthrough?: boolean | undefined;
23772
+ }[] | undefined;
23773
+ phase?: string | undefined;
23774
+ }[];
23775
+ savedGroups: Record<string, {
23776
+ type: "hashed";
23777
+ attributeKey: string;
23778
+ values: string[];
23779
+ } | {
23780
+ type: "list";
23781
+ attributeKey: string;
23782
+ values: (string | number)[];
23783
+ } | {
23784
+ type: "condition";
23785
+ condition: Record<string, zod.JSONType>;
23786
+ }>;
23787
+ };
23788
+ }>;
23499
23789
  review(receiptId?: string): Promise<{
23500
23790
  scope: {
23501
23791
  projectId: string;
@@ -23512,7 +23802,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
23512
23802
  visit: number;
23513
23803
  nodeId: string;
23514
23804
  nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
23515
- status: "failed" | "completed" | "running" | "closed" | "ineligible" | "waiting";
23805
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
23516
23806
  stopped: boolean;
23517
23807
  canBack: boolean;
23518
23808
  authenticated: boolean;
@@ -23794,7 +24084,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
23794
24084
  cursor: {
23795
24085
  at: string;
23796
24086
  id: string;
23797
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
24087
+ type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
23798
24088
  };
23799
24089
  } | {
23800
24090
  kind: "billing";
@@ -24232,7 +24522,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
24232
24522
  totalMinor: number;
24233
24523
  } | null;
24234
24524
  expiresAt: string;
24235
- provider: "apple" | "google" | "stripe";
24525
+ provider: "stripe" | "apple" | "google";
24236
24526
  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";
24237
24527
  lines: {
24238
24528
  lineId: string;
@@ -24292,9 +24582,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
24292
24582
  automaticTax: boolean;
24293
24583
  execution: {
24294
24584
  provider: "stripe";
24295
- executor: "merchant" | "indiana";
24585
+ executor: "indiana" | "merchant";
24296
24586
  accountId: string;
24297
- mode: "subscription" | "payment";
24587
+ mode: "payment" | "subscription";
24298
24588
  lineItems: {
24299
24589
  price: string | null;
24300
24590
  quantity: number;
@@ -24364,13 +24654,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
24364
24654
  operationId: string;
24365
24655
  orderId: string;
24366
24656
  status: "pending" | "failed" | "complete" | "cancelled";
24367
- executor: "merchant" | "indiana";
24657
+ executor: "indiana" | "merchant";
24368
24658
  checkoutUrl: string | null;
24369
24659
  execution: {
24370
24660
  provider: "stripe";
24371
- executor: "merchant" | "indiana";
24661
+ executor: "indiana" | "merchant";
24372
24662
  accountId: string;
24373
- mode: "subscription" | "payment";
24663
+ mode: "payment" | "subscription";
24374
24664
  lineItems: {
24375
24665
  price: string | null;
24376
24666
  quantity: number;
@@ -24441,7 +24731,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
24441
24731
  productVersionId: string;
24442
24732
  provider: "apple" | "google";
24443
24733
  productId: string;
24444
- productKind: "membership" | "lifetime" | "credit_pack";
24734
+ productKind: "lifetime" | "membership" | "credit_pack";
24445
24735
  replacement: {
24446
24736
  sourceOrderId: string;
24447
24737
  sourceProductId: string;
@@ -24557,7 +24847,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
24557
24847
  totalMinor: number;
24558
24848
  } | null;
24559
24849
  expiresAt: string;
24560
- provider: "apple" | "google" | "stripe";
24850
+ provider: "stripe" | "apple" | "google";
24561
24851
  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";
24562
24852
  lines: {
24563
24853
  lineId: string;
@@ -24617,9 +24907,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
24617
24907
  automaticTax: boolean;
24618
24908
  execution: {
24619
24909
  provider: "stripe";
24620
- executor: "merchant" | "indiana";
24910
+ executor: "indiana" | "merchant";
24621
24911
  accountId: string;
24622
- mode: "subscription" | "payment";
24912
+ mode: "payment" | "subscription";
24623
24913
  lineItems: {
24624
24914
  price: string | null;
24625
24915
  quantity: number;
@@ -24689,13 +24979,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
24689
24979
  operationId: string;
24690
24980
  orderId: string;
24691
24981
  status: "pending" | "failed" | "complete" | "cancelled";
24692
- executor: "merchant" | "indiana";
24982
+ executor: "indiana" | "merchant";
24693
24983
  checkoutUrl: string | null;
24694
24984
  execution: {
24695
24985
  provider: "stripe";
24696
- executor: "merchant" | "indiana";
24986
+ executor: "indiana" | "merchant";
24697
24987
  accountId: string;
24698
- mode: "subscription" | "payment";
24988
+ mode: "payment" | "subscription";
24699
24989
  lineItems: {
24700
24990
  price: string | null;
24701
24991
  quantity: number;
@@ -24766,7 +25056,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
24766
25056
  productVersionId: string;
24767
25057
  provider: "apple" | "google";
24768
25058
  productId: string;
24769
- productKind: "membership" | "lifetime" | "credit_pack";
25059
+ productKind: "lifetime" | "membership" | "credit_pack";
24770
25060
  replacement: {
24771
25061
  sourceOrderId: string;
24772
25062
  sourceProductId: string;
@@ -24931,7 +25221,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
24931
25221
  visit: number;
24932
25222
  nodeId: string;
24933
25223
  nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
24934
- status: "failed" | "completed" | "running" | "closed" | "ineligible" | "waiting";
25224
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
24935
25225
  stopped: boolean;
24936
25226
  canBack: boolean;
24937
25227
  authenticated: boolean;
@@ -25213,7 +25503,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
25213
25503
  cursor: {
25214
25504
  at: string;
25215
25505
  id: string;
25216
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
25506
+ type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
25217
25507
  };
25218
25508
  } | {
25219
25509
  kind: "billing";
@@ -25651,7 +25941,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
25651
25941
  totalMinor: number;
25652
25942
  } | null;
25653
25943
  expiresAt: string;
25654
- provider: "apple" | "google" | "stripe";
25944
+ provider: "stripe" | "apple" | "google";
25655
25945
  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";
25656
25946
  lines: {
25657
25947
  lineId: string;
@@ -25711,9 +26001,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
25711
26001
  automaticTax: boolean;
25712
26002
  execution: {
25713
26003
  provider: "stripe";
25714
- executor: "merchant" | "indiana";
26004
+ executor: "indiana" | "merchant";
25715
26005
  accountId: string;
25716
- mode: "subscription" | "payment";
26006
+ mode: "payment" | "subscription";
25717
26007
  lineItems: {
25718
26008
  price: string | null;
25719
26009
  quantity: number;
@@ -25783,13 +26073,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
25783
26073
  operationId: string;
25784
26074
  orderId: string;
25785
26075
  status: "pending" | "failed" | "complete" | "cancelled";
25786
- executor: "merchant" | "indiana";
26076
+ executor: "indiana" | "merchant";
25787
26077
  checkoutUrl: string | null;
25788
26078
  execution: {
25789
26079
  provider: "stripe";
25790
- executor: "merchant" | "indiana";
26080
+ executor: "indiana" | "merchant";
25791
26081
  accountId: string;
25792
- mode: "subscription" | "payment";
26082
+ mode: "payment" | "subscription";
25793
26083
  lineItems: {
25794
26084
  price: string | null;
25795
26085
  quantity: number;
@@ -25860,7 +26150,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
25860
26150
  productVersionId: string;
25861
26151
  provider: "apple" | "google";
25862
26152
  productId: string;
25863
- productKind: "membership" | "lifetime" | "credit_pack";
26153
+ productKind: "lifetime" | "membership" | "credit_pack";
25864
26154
  replacement: {
25865
26155
  sourceOrderId: string;
25866
26156
  sourceProductId: string;
@@ -25976,7 +26266,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
25976
26266
  totalMinor: number;
25977
26267
  } | null;
25978
26268
  expiresAt: string;
25979
- provider: "apple" | "google" | "stripe";
26269
+ provider: "stripe" | "apple" | "google";
25980
26270
  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";
25981
26271
  lines: {
25982
26272
  lineId: string;
@@ -26036,9 +26326,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
26036
26326
  automaticTax: boolean;
26037
26327
  execution: {
26038
26328
  provider: "stripe";
26039
- executor: "merchant" | "indiana";
26329
+ executor: "indiana" | "merchant";
26040
26330
  accountId: string;
26041
- mode: "subscription" | "payment";
26331
+ mode: "payment" | "subscription";
26042
26332
  lineItems: {
26043
26333
  price: string | null;
26044
26334
  quantity: number;
@@ -26108,13 +26398,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
26108
26398
  operationId: string;
26109
26399
  orderId: string;
26110
26400
  status: "pending" | "failed" | "complete" | "cancelled";
26111
- executor: "merchant" | "indiana";
26401
+ executor: "indiana" | "merchant";
26112
26402
  checkoutUrl: string | null;
26113
26403
  execution: {
26114
26404
  provider: "stripe";
26115
- executor: "merchant" | "indiana";
26405
+ executor: "indiana" | "merchant";
26116
26406
  accountId: string;
26117
- mode: "subscription" | "payment";
26407
+ mode: "payment" | "subscription";
26118
26408
  lineItems: {
26119
26409
  price: string | null;
26120
26410
  quantity: number;
@@ -26185,7 +26475,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
26185
26475
  productVersionId: string;
26186
26476
  provider: "apple" | "google";
26187
26477
  productId: string;
26188
- productKind: "membership" | "lifetime" | "credit_pack";
26478
+ productKind: "lifetime" | "membership" | "credit_pack";
26189
26479
  replacement: {
26190
26480
  sourceOrderId: string;
26191
26481
  sourceProductId: string;
@@ -26348,7 +26638,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
26348
26638
  visit: number;
26349
26639
  nodeId: string;
26350
26640
  nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
26351
- status: "failed" | "completed" | "running" | "closed" | "ineligible" | "waiting";
26641
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
26352
26642
  stopped: boolean;
26353
26643
  canBack: boolean;
26354
26644
  authenticated: boolean;
@@ -26630,7 +26920,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
26630
26920
  cursor: {
26631
26921
  at: string;
26632
26922
  id: string;
26633
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
26923
+ type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
26634
26924
  };
26635
26925
  } | {
26636
26926
  kind: "billing";
@@ -27068,7 +27358,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
27068
27358
  totalMinor: number;
27069
27359
  } | null;
27070
27360
  expiresAt: string;
27071
- provider: "apple" | "google" | "stripe";
27361
+ provider: "stripe" | "apple" | "google";
27072
27362
  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";
27073
27363
  lines: {
27074
27364
  lineId: string;
@@ -27128,9 +27418,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
27128
27418
  automaticTax: boolean;
27129
27419
  execution: {
27130
27420
  provider: "stripe";
27131
- executor: "merchant" | "indiana";
27421
+ executor: "indiana" | "merchant";
27132
27422
  accountId: string;
27133
- mode: "subscription" | "payment";
27423
+ mode: "payment" | "subscription";
27134
27424
  lineItems: {
27135
27425
  price: string | null;
27136
27426
  quantity: number;
@@ -27200,13 +27490,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
27200
27490
  operationId: string;
27201
27491
  orderId: string;
27202
27492
  status: "pending" | "failed" | "complete" | "cancelled";
27203
- executor: "merchant" | "indiana";
27493
+ executor: "indiana" | "merchant";
27204
27494
  checkoutUrl: string | null;
27205
27495
  execution: {
27206
27496
  provider: "stripe";
27207
- executor: "merchant" | "indiana";
27497
+ executor: "indiana" | "merchant";
27208
27498
  accountId: string;
27209
- mode: "subscription" | "payment";
27499
+ mode: "payment" | "subscription";
27210
27500
  lineItems: {
27211
27501
  price: string | null;
27212
27502
  quantity: number;
@@ -27277,7 +27567,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
27277
27567
  productVersionId: string;
27278
27568
  provider: "apple" | "google";
27279
27569
  productId: string;
27280
- productKind: "membership" | "lifetime" | "credit_pack";
27570
+ productKind: "lifetime" | "membership" | "credit_pack";
27281
27571
  replacement: {
27282
27572
  sourceOrderId: string;
27283
27573
  sourceProductId: string;
@@ -27393,7 +27683,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
27393
27683
  totalMinor: number;
27394
27684
  } | null;
27395
27685
  expiresAt: string;
27396
- provider: "apple" | "google" | "stripe";
27686
+ provider: "stripe" | "apple" | "google";
27397
27687
  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";
27398
27688
  lines: {
27399
27689
  lineId: string;
@@ -27453,9 +27743,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
27453
27743
  automaticTax: boolean;
27454
27744
  execution: {
27455
27745
  provider: "stripe";
27456
- executor: "merchant" | "indiana";
27746
+ executor: "indiana" | "merchant";
27457
27747
  accountId: string;
27458
- mode: "subscription" | "payment";
27748
+ mode: "payment" | "subscription";
27459
27749
  lineItems: {
27460
27750
  price: string | null;
27461
27751
  quantity: number;
@@ -27525,13 +27815,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
27525
27815
  operationId: string;
27526
27816
  orderId: string;
27527
27817
  status: "pending" | "failed" | "complete" | "cancelled";
27528
- executor: "merchant" | "indiana";
27818
+ executor: "indiana" | "merchant";
27529
27819
  checkoutUrl: string | null;
27530
27820
  execution: {
27531
27821
  provider: "stripe";
27532
- executor: "merchant" | "indiana";
27822
+ executor: "indiana" | "merchant";
27533
27823
  accountId: string;
27534
- mode: "subscription" | "payment";
27824
+ mode: "payment" | "subscription";
27535
27825
  lineItems: {
27536
27826
  price: string | null;
27537
27827
  quantity: number;
@@ -27602,7 +27892,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
27602
27892
  productVersionId: string;
27603
27893
  provider: "apple" | "google";
27604
27894
  productId: string;
27605
- productKind: "membership" | "lifetime" | "credit_pack";
27895
+ productKind: "lifetime" | "membership" | "credit_pack";
27606
27896
  replacement: {
27607
27897
  sourceOrderId: string;
27608
27898
  sourceProductId: string;
@@ -27768,7 +28058,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
27768
28058
  visit: number;
27769
28059
  nodeId: string;
27770
28060
  nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
27771
- status: "failed" | "completed" | "running" | "closed" | "ineligible" | "waiting";
28061
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
27772
28062
  stopped: boolean;
27773
28063
  canBack: boolean;
27774
28064
  authenticated: boolean;
@@ -28050,7 +28340,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
28050
28340
  cursor: {
28051
28341
  at: string;
28052
28342
  id: string;
28053
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
28343
+ type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
28054
28344
  };
28055
28345
  } | {
28056
28346
  kind: "billing";
@@ -28488,7 +28778,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
28488
28778
  totalMinor: number;
28489
28779
  } | null;
28490
28780
  expiresAt: string;
28491
- provider: "apple" | "google" | "stripe";
28781
+ provider: "stripe" | "apple" | "google";
28492
28782
  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";
28493
28783
  lines: {
28494
28784
  lineId: string;
@@ -28548,9 +28838,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
28548
28838
  automaticTax: boolean;
28549
28839
  execution: {
28550
28840
  provider: "stripe";
28551
- executor: "merchant" | "indiana";
28841
+ executor: "indiana" | "merchant";
28552
28842
  accountId: string;
28553
- mode: "subscription" | "payment";
28843
+ mode: "payment" | "subscription";
28554
28844
  lineItems: {
28555
28845
  price: string | null;
28556
28846
  quantity: number;
@@ -28620,13 +28910,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
28620
28910
  operationId: string;
28621
28911
  orderId: string;
28622
28912
  status: "pending" | "failed" | "complete" | "cancelled";
28623
- executor: "merchant" | "indiana";
28913
+ executor: "indiana" | "merchant";
28624
28914
  checkoutUrl: string | null;
28625
28915
  execution: {
28626
28916
  provider: "stripe";
28627
- executor: "merchant" | "indiana";
28917
+ executor: "indiana" | "merchant";
28628
28918
  accountId: string;
28629
- mode: "subscription" | "payment";
28919
+ mode: "payment" | "subscription";
28630
28920
  lineItems: {
28631
28921
  price: string | null;
28632
28922
  quantity: number;
@@ -28697,7 +28987,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
28697
28987
  productVersionId: string;
28698
28988
  provider: "apple" | "google";
28699
28989
  productId: string;
28700
- productKind: "membership" | "lifetime" | "credit_pack";
28990
+ productKind: "lifetime" | "membership" | "credit_pack";
28701
28991
  replacement: {
28702
28992
  sourceOrderId: string;
28703
28993
  sourceProductId: string;
@@ -28813,7 +29103,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
28813
29103
  totalMinor: number;
28814
29104
  } | null;
28815
29105
  expiresAt: string;
28816
- provider: "apple" | "google" | "stripe";
29106
+ provider: "stripe" | "apple" | "google";
28817
29107
  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";
28818
29108
  lines: {
28819
29109
  lineId: string;
@@ -28873,9 +29163,9 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
28873
29163
  automaticTax: boolean;
28874
29164
  execution: {
28875
29165
  provider: "stripe";
28876
- executor: "merchant" | "indiana";
29166
+ executor: "indiana" | "merchant";
28877
29167
  accountId: string;
28878
- mode: "subscription" | "payment";
29168
+ mode: "payment" | "subscription";
28879
29169
  lineItems: {
28880
29170
  price: string | null;
28881
29171
  quantity: number;
@@ -28945,13 +29235,13 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
28945
29235
  operationId: string;
28946
29236
  orderId: string;
28947
29237
  status: "pending" | "failed" | "complete" | "cancelled";
28948
- executor: "merchant" | "indiana";
29238
+ executor: "indiana" | "merchant";
28949
29239
  checkoutUrl: string | null;
28950
29240
  execution: {
28951
29241
  provider: "stripe";
28952
- executor: "merchant" | "indiana";
29242
+ executor: "indiana" | "merchant";
28953
29243
  accountId: string;
28954
- mode: "subscription" | "payment";
29244
+ mode: "payment" | "subscription";
28955
29245
  lineItems: {
28956
29246
  price: string | null;
28957
29247
  quantity: number;
@@ -29022,7 +29312,7 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
29022
29312
  productVersionId: string;
29023
29313
  provider: "apple" | "google";
29024
29314
  productId: string;
29025
- productKind: "membership" | "lifetime" | "credit_pack";
29315
+ productKind: "lifetime" | "membership" | "credit_pack";
29026
29316
  replacement: {
29027
29317
  sourceOrderId: string;
29028
29318
  sourceProductId: string;
@@ -29170,4 +29460,4 @@ declare function createLocalFunnelClient(options: LocalFunnelClientOptions): Pro
29170
29460
  }>;
29171
29461
  type LocalFunnelClient = Awaited<ReturnType<typeof createLocalFunnelClient>>;
29172
29462
 
29173
- export { type FunnelRuntimeResponse as F, type IndianaOptions as I, type LocalFunnelClient as L, type PaywallDelivery as P, type RemoteFeatureResult as R, type SubscriptionOperation as S, type FunnelRunView as a, type FunnelMutation as b, type FunnelPurchaseRecovery as c, type FunnelSegmentPrediction as d, type PaywallResolution as e, type FunnelDataQueries as f, type PaywallSession as g, type FeatureClientOptions as h, type FunnelCommandStorage as i, type FunnelStartInput as j, type FeatureClient as k, type FunnelNodeEvaluationContext as l, type FunnelPendingEntry as m, type LocalFunnelClientOptions as n, type PaywallPurchaseInput as o, type PaywallStartInput as p, createFeatureClient as q, createLocalFunnelClient as r, createPaywallSession as s, evaluateFunnelNode as t, type IndianaServerOptions as u, type FunnelLocalConfiguration as v, createFunnelStartClient as w };
29463
+ export { type FunnelRuntimeResponse as F, type IndianaOptions as I, type LocalFunnelClient as L, type PaywallDelivery as P, type RemoteFeatureResult as R, type SubscriptionOperation as S, type FunnelRunView as a, type FunnelMutation as b, type FunnelPurchaseRecovery as c, type FunnelSegmentPrediction as d, type PaywallResolution as e, type FunnelDataQueries as f, type PaywallSession as g, type FeatureClientOptions as h, type FunnelCommandStorage as i, type FunnelStartInput as j, type FeatureClient as k, type FunnelNodeEvaluationContext as l, type FunnelPendingEntry as m, type LocalFunnelClientOptions as n, type PaywallPurchaseInput as o, type PaywallStartInput as p, type SessionCredentials as q, createFeatureClient as r, createLocalFunnelClient as s, createPaywallSession as t, evaluateFunnelNode as u, type IndianaServerOptions as v, type FunnelLocalConfiguration as w, createFunnelStartClient as x };