@tinkerlandai/indiana-sdk 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { F as FunnelRuntimeResponse, a as FunnelRunView, b as FunnelCommand, c as FunnelDataQueries, I as IndianaOptions, P as PaywallSession, S as SubscriptionOperation, d as FunnelStartInput } from './funnel-runtime-start-CcuXliU_.js';
2
- export { e as FeatureClient, f as FeatureClientOptions, g as FunnelNodeEvaluationContext, h as IndianaError, i as PaywallPurchaseInput, j as PaywallStartInput, k as createFeatureClient, l as createPaywallSession, m as evaluateFunnelNode } from './funnel-runtime-start-CcuXliU_.js';
1
+ import { F as FunnelRuntimeResponse, a as FunnelRunView, b as FunnelCommand, c as FunnelDataQueries, I as IndianaOptions, P as PaywallSession, S as SubscriptionOperation, d as FunnelStartInput } from './funnel-runtime-start-DvrWekm0.js';
2
+ export { e as FeatureClient, f as FeatureClientOptions, g as FunnelNodeEvaluationContext, h as IndianaError, i as PaywallPurchaseInput, j as PaywallStartInput, k as createFeatureClient, l as createPaywallSession, m as evaluateFunnelNode } from './funnel-runtime-start-DvrWekm0.js';
3
3
  import { C as CouponInput, a as CustomerDataIntent, O as Offer } from './customer-page-aZb5Twue.js';
4
4
  export { b as OfferUnavailableReason } from './customer-page-aZb5Twue.js';
5
5
  import * as zod from 'zod';
6
6
  import { z } from 'zod';
7
- import { O as OfferingItem, A as ApiInput } from './ai-usage-DX99gvfl.js';
7
+ import { O as OfferingItem, A as ApiInput } from './ai-usage-CO0lDavO.js';
8
8
  import { S as StackNode } from './screen-DfuSw6Tz.js';
9
9
  import '@ai-sdk/provider';
10
10
 
@@ -101,19 +101,23 @@ declare const entitlementCheckResultSchema: z.ZodObject<{
101
101
  type EntitlementCheckResult = z.infer<typeof entitlementCheckResultSchema>;
102
102
 
103
103
  /** The store supplies the intent hint. Only verified provider facts prove ownership. */
104
- declare const nativeRestoreCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
104
+ declare const nativeRestoreCommandSchema: z.ZodUnion<readonly [z.ZodObject<{
105
+ intent: z.ZodLiteral<"read">;
106
+ requestId: z.ZodUUID;
107
+ purchaseIntentId: z.ZodUUID;
108
+ }, z.core.$strict>, z.ZodObject<{
105
109
  requestId: z.ZodUUID;
106
110
  provider: z.ZodLiteral<"apple">;
107
111
  purchaseIntentId: z.ZodUUID;
108
- productId: z.ZodString;
112
+ productId: z.ZodOptional<z.ZodString>;
109
113
  signedTransaction: z.ZodString;
110
114
  }, z.core.$strict>, z.ZodObject<{
111
115
  requestId: z.ZodUUID;
112
116
  provider: z.ZodLiteral<"google">;
113
117
  purchaseIntentId: z.ZodUUID;
114
- productId: z.ZodString;
118
+ productId: z.ZodOptional<z.ZodString>;
115
119
  purchaseToken: z.ZodString;
116
- }, z.core.$strict>], "provider">;
120
+ }, z.core.$strict>]>;
117
121
  type NativeRestoreCommand = z.infer<typeof nativeRestoreCommandSchema>;
118
122
 
119
123
  type Mutation = Exclude<FunnelCommand, {
@@ -845,6 +849,25 @@ declare function createFunnelRunController(options: IndianaOptions & {
845
849
  grooveCustomerId: string;
846
850
  };
847
851
  expiresAt: string;
852
+ append?: {
853
+ subscriptionId: string;
854
+ customerId: string;
855
+ sourceItems: {
856
+ id: string;
857
+ price_id: string;
858
+ quantity: number;
859
+ discounts?: {
860
+ id: string;
861
+ coupon: string;
862
+ start: number;
863
+ end: number | null;
864
+ }[] | undefined;
865
+ }[];
866
+ prorationDate: number;
867
+ amountMinor: number;
868
+ periodStartMs: number;
869
+ periodEndMs: number;
870
+ } | undefined;
848
871
  } | null;
849
872
  nativeOffer?: {
850
873
  offerKind: "none" | "introductory" | "promotional";
@@ -901,6 +924,25 @@ declare function createFunnelRunController(options: IndianaOptions & {
901
924
  grooveCustomerId: string;
902
925
  };
903
926
  expiresAt: string;
927
+ append?: {
928
+ subscriptionId: string;
929
+ customerId: string;
930
+ sourceItems: {
931
+ id: string;
932
+ price_id: string;
933
+ quantity: number;
934
+ discounts?: {
935
+ id: string;
936
+ coupon: string;
937
+ start: number;
938
+ end: number | null;
939
+ }[] | undefined;
940
+ }[];
941
+ prorationDate: number;
942
+ amountMinor: number;
943
+ periodStartMs: number;
944
+ periodEndMs: number;
945
+ } | undefined;
904
946
  } | null;
905
947
  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";
906
948
  catalogAmountMinor: number;
@@ -943,6 +985,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
943
985
  basePlanId?: string | undefined;
944
986
  offerId?: string | undefined;
945
987
  } | null;
988
+ append?: boolean | undefined;
946
989
  } | null;
947
990
  purchaseRequestId: string | null;
948
991
  } | null;
@@ -1681,6 +1724,25 @@ declare function createFunnelRunController(options: IndianaOptions & {
1681
1724
  grooveCustomerId: string;
1682
1725
  };
1683
1726
  expiresAt: string;
1727
+ append?: {
1728
+ subscriptionId: string;
1729
+ customerId: string;
1730
+ sourceItems: {
1731
+ id: string;
1732
+ price_id: string;
1733
+ quantity: number;
1734
+ discounts?: {
1735
+ id: string;
1736
+ coupon: string;
1737
+ start: number;
1738
+ end: number | null;
1739
+ }[] | undefined;
1740
+ }[];
1741
+ prorationDate: number;
1742
+ amountMinor: number;
1743
+ periodStartMs: number;
1744
+ periodEndMs: number;
1745
+ } | undefined;
1684
1746
  } | null;
1685
1747
  nativeOffer?: {
1686
1748
  offerKind: "none" | "introductory" | "promotional";
@@ -1737,6 +1799,25 @@ declare function createFunnelRunController(options: IndianaOptions & {
1737
1799
  grooveCustomerId: string;
1738
1800
  };
1739
1801
  expiresAt: string;
1802
+ append?: {
1803
+ subscriptionId: string;
1804
+ customerId: string;
1805
+ sourceItems: {
1806
+ id: string;
1807
+ price_id: string;
1808
+ quantity: number;
1809
+ discounts?: {
1810
+ id: string;
1811
+ coupon: string;
1812
+ start: number;
1813
+ end: number | null;
1814
+ }[] | undefined;
1815
+ }[];
1816
+ prorationDate: number;
1817
+ amountMinor: number;
1818
+ periodStartMs: number;
1819
+ periodEndMs: number;
1820
+ } | undefined;
1740
1821
  } | null;
1741
1822
  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";
1742
1823
  catalogAmountMinor: number;
@@ -1779,6 +1860,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
1779
1860
  basePlanId?: string | undefined;
1780
1861
  offerId?: string | undefined;
1781
1862
  } | null;
1863
+ append?: boolean | undefined;
1782
1864
  } | null;
1783
1865
  purchaseRequestId: string | null;
1784
1866
  } | null;
@@ -1945,6 +2027,25 @@ declare function createFunnelRunController(options: IndianaOptions & {
1945
2027
  grooveCustomerId: string;
1946
2028
  };
1947
2029
  expiresAt: string;
2030
+ append?: {
2031
+ subscriptionId: string;
2032
+ customerId: string;
2033
+ sourceItems: {
2034
+ id: string;
2035
+ price_id: string;
2036
+ quantity: number;
2037
+ discounts?: {
2038
+ id: string;
2039
+ coupon: string;
2040
+ start: number;
2041
+ end: number | null;
2042
+ }[] | undefined;
2043
+ }[];
2044
+ prorationDate: number;
2045
+ amountMinor: number;
2046
+ periodStartMs: number;
2047
+ periodEndMs: number;
2048
+ } | undefined;
1948
2049
  } | null;
1949
2050
  nativeOffer?: {
1950
2051
  offerKind: "none" | "introductory" | "promotional";
@@ -2001,6 +2102,25 @@ declare function createFunnelRunController(options: IndianaOptions & {
2001
2102
  grooveCustomerId: string;
2002
2103
  };
2003
2104
  expiresAt: string;
2105
+ append?: {
2106
+ subscriptionId: string;
2107
+ customerId: string;
2108
+ sourceItems: {
2109
+ id: string;
2110
+ price_id: string;
2111
+ quantity: number;
2112
+ discounts?: {
2113
+ id: string;
2114
+ coupon: string;
2115
+ start: number;
2116
+ end: number | null;
2117
+ }[] | undefined;
2118
+ }[];
2119
+ prorationDate: number;
2120
+ amountMinor: number;
2121
+ periodStartMs: number;
2122
+ periodEndMs: number;
2123
+ } | undefined;
2004
2124
  } | null;
2005
2125
  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";
2006
2126
  catalogAmountMinor: number;
@@ -2043,9 +2163,11 @@ declare function createFunnelRunController(options: IndianaOptions & {
2043
2163
  basePlanId?: string | undefined;
2044
2164
  offerId?: string | undefined;
2045
2165
  } | null;
2166
+ append?: boolean | undefined;
2046
2167
  } | null;
2047
2168
  } | undefined;
2048
2169
  runToken?: string | undefined;
2170
+ customerId?: string | undefined;
2049
2171
  }>;
2050
2172
  resume(requestId?: string | undefined): Promise<FunnelControllerResponse>;
2051
2173
  submit(input: Intent): Promise<{
@@ -2756,6 +2878,25 @@ declare function createFunnelRunController(options: IndianaOptions & {
2756
2878
  grooveCustomerId: string;
2757
2879
  };
2758
2880
  expiresAt: string;
2881
+ append?: {
2882
+ subscriptionId: string;
2883
+ customerId: string;
2884
+ sourceItems: {
2885
+ id: string;
2886
+ price_id: string;
2887
+ quantity: number;
2888
+ discounts?: {
2889
+ id: string;
2890
+ coupon: string;
2891
+ start: number;
2892
+ end: number | null;
2893
+ }[] | undefined;
2894
+ }[];
2895
+ prorationDate: number;
2896
+ amountMinor: number;
2897
+ periodStartMs: number;
2898
+ periodEndMs: number;
2899
+ } | undefined;
2759
2900
  } | null;
2760
2901
  nativeOffer?: {
2761
2902
  offerKind: "none" | "introductory" | "promotional";
@@ -2812,6 +2953,25 @@ declare function createFunnelRunController(options: IndianaOptions & {
2812
2953
  grooveCustomerId: string;
2813
2954
  };
2814
2955
  expiresAt: string;
2956
+ append?: {
2957
+ subscriptionId: string;
2958
+ customerId: string;
2959
+ sourceItems: {
2960
+ id: string;
2961
+ price_id: string;
2962
+ quantity: number;
2963
+ discounts?: {
2964
+ id: string;
2965
+ coupon: string;
2966
+ start: number;
2967
+ end: number | null;
2968
+ }[] | undefined;
2969
+ }[];
2970
+ prorationDate: number;
2971
+ amountMinor: number;
2972
+ periodStartMs: number;
2973
+ periodEndMs: number;
2974
+ } | undefined;
2815
2975
  } | null;
2816
2976
  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";
2817
2977
  catalogAmountMinor: number;
@@ -2854,6 +3014,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
2854
3014
  basePlanId?: string | undefined;
2855
3015
  offerId?: string | undefined;
2856
3016
  } | null;
3017
+ append?: boolean | undefined;
2857
3018
  } | null;
2858
3019
  purchaseRequestId: string | null;
2859
3020
  } | null;
@@ -3020,6 +3181,25 @@ declare function createFunnelRunController(options: IndianaOptions & {
3020
3181
  grooveCustomerId: string;
3021
3182
  };
3022
3183
  expiresAt: string;
3184
+ append?: {
3185
+ subscriptionId: string;
3186
+ customerId: string;
3187
+ sourceItems: {
3188
+ id: string;
3189
+ price_id: string;
3190
+ quantity: number;
3191
+ discounts?: {
3192
+ id: string;
3193
+ coupon: string;
3194
+ start: number;
3195
+ end: number | null;
3196
+ }[] | undefined;
3197
+ }[];
3198
+ prorationDate: number;
3199
+ amountMinor: number;
3200
+ periodStartMs: number;
3201
+ periodEndMs: number;
3202
+ } | undefined;
3023
3203
  } | null;
3024
3204
  nativeOffer?: {
3025
3205
  offerKind: "none" | "introductory" | "promotional";
@@ -3076,6 +3256,25 @@ declare function createFunnelRunController(options: IndianaOptions & {
3076
3256
  grooveCustomerId: string;
3077
3257
  };
3078
3258
  expiresAt: string;
3259
+ append?: {
3260
+ subscriptionId: string;
3261
+ customerId: string;
3262
+ sourceItems: {
3263
+ id: string;
3264
+ price_id: string;
3265
+ quantity: number;
3266
+ discounts?: {
3267
+ id: string;
3268
+ coupon: string;
3269
+ start: number;
3270
+ end: number | null;
3271
+ }[] | undefined;
3272
+ }[];
3273
+ prorationDate: number;
3274
+ amountMinor: number;
3275
+ periodStartMs: number;
3276
+ periodEndMs: number;
3277
+ } | undefined;
3079
3278
  } | null;
3080
3279
  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";
3081
3280
  catalogAmountMinor: number;
@@ -3118,9 +3317,11 @@ declare function createFunnelRunController(options: IndianaOptions & {
3118
3317
  basePlanId?: string | undefined;
3119
3318
  offerId?: string | undefined;
3120
3319
  } | null;
3320
+ append?: boolean | undefined;
3121
3321
  } | null;
3122
3322
  } | undefined;
3123
3323
  runToken?: string | undefined;
3324
+ customerId?: string | undefined;
3124
3325
  }>;
3125
3326
  retry(): Promise<FunnelControllerResponse>;
3126
3327
  identify(token: string): void;
@@ -3136,6 +3337,11 @@ type PaywallHostOptions = {
3136
3337
  signal: AbortSignal;
3137
3338
  }) => unknown | Promise<unknown>;
3138
3339
  onCheckoutUrl?: (url: string) => unknown;
3340
+ /** Explicit merchant selection from the Customer's claimed offers. The server validates eligibility. */
3341
+ resolveOfferId?: (purchase: {
3342
+ actionId: string;
3343
+ productVersionId: string;
3344
+ }) => string | undefined | Promise<string | undefined>;
3139
3345
  onOpenUrl?: (url: string) => unknown;
3140
3346
  onEvent?: (name: string) => unknown;
3141
3347
  /** An authored non-purchase button completed its action. */
@@ -3469,6 +3675,7 @@ type FunnelHostOptions = {
3469
3675
  client: FunnelRunController;
3470
3676
  onPurchase?: PaywallHostOptions["onPurchase"];
3471
3677
  onCheckoutUrl?: PaywallHostOptions["onCheckoutUrl"];
3678
+ resolveOfferId?: PaywallHostOptions["resolveOfferId"];
3472
3679
  onOpenUrl?: (instruction: {
3473
3680
  receiptId: string;
3474
3681
  url: string;
@@ -3490,7 +3697,7 @@ declare function showFunnelRun$1(container: HTMLElement, options: FunnelHostOpti
3490
3697
  declare function createFunnelClient(options: IndianaOptions & {
3491
3698
  customerToken: string;
3492
3699
  }): {
3493
- start(input: Omit<FunnelStartInput, "customerToken">): Promise<{
3700
+ start(input: Omit<FunnelStartInput, "customer" | "customerData">): Promise<{
3494
3701
  controller: {
3495
3702
  readonly view: {
3496
3703
  id: string;
@@ -4195,6 +4402,25 @@ declare function createFunnelClient(options: IndianaOptions & {
4195
4402
  grooveCustomerId: string;
4196
4403
  };
4197
4404
  expiresAt: string;
4405
+ append?: {
4406
+ subscriptionId: string;
4407
+ customerId: string;
4408
+ sourceItems: {
4409
+ id: string;
4410
+ price_id: string;
4411
+ quantity: number;
4412
+ discounts?: {
4413
+ id: string;
4414
+ coupon: string;
4415
+ start: number;
4416
+ end: number | null;
4417
+ }[] | undefined;
4418
+ }[];
4419
+ prorationDate: number;
4420
+ amountMinor: number;
4421
+ periodStartMs: number;
4422
+ periodEndMs: number;
4423
+ } | undefined;
4198
4424
  } | null;
4199
4425
  nativeOffer?: {
4200
4426
  offerKind: "none" | "introductory" | "promotional";
@@ -4251,6 +4477,25 @@ declare function createFunnelClient(options: IndianaOptions & {
4251
4477
  grooveCustomerId: string;
4252
4478
  };
4253
4479
  expiresAt: string;
4480
+ append?: {
4481
+ subscriptionId: string;
4482
+ customerId: string;
4483
+ sourceItems: {
4484
+ id: string;
4485
+ price_id: string;
4486
+ quantity: number;
4487
+ discounts?: {
4488
+ id: string;
4489
+ coupon: string;
4490
+ start: number;
4491
+ end: number | null;
4492
+ }[] | undefined;
4493
+ }[];
4494
+ prorationDate: number;
4495
+ amountMinor: number;
4496
+ periodStartMs: number;
4497
+ periodEndMs: number;
4498
+ } | undefined;
4254
4499
  } | null;
4255
4500
  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";
4256
4501
  catalogAmountMinor: number;
@@ -4293,6 +4538,7 @@ declare function createFunnelClient(options: IndianaOptions & {
4293
4538
  basePlanId?: string | undefined;
4294
4539
  offerId?: string | undefined;
4295
4540
  } | null;
4541
+ append?: boolean | undefined;
4296
4542
  } | null;
4297
4543
  purchaseRequestId: string | null;
4298
4544
  } | null;
@@ -5090,6 +5336,25 @@ declare function createFunnelClient(options: IndianaOptions & {
5090
5336
  grooveCustomerId: string;
5091
5337
  };
5092
5338
  expiresAt: string;
5339
+ append?: {
5340
+ subscriptionId: string;
5341
+ customerId: string;
5342
+ sourceItems: {
5343
+ id: string;
5344
+ price_id: string;
5345
+ quantity: number;
5346
+ discounts?: {
5347
+ id: string;
5348
+ coupon: string;
5349
+ start: number;
5350
+ end: number | null;
5351
+ }[] | undefined;
5352
+ }[];
5353
+ prorationDate: number;
5354
+ amountMinor: number;
5355
+ periodStartMs: number;
5356
+ periodEndMs: number;
5357
+ } | undefined;
5093
5358
  } | null;
5094
5359
  nativeOffer?: {
5095
5360
  offerKind: "none" | "introductory" | "promotional";
@@ -5146,6 +5411,25 @@ declare function createFunnelClient(options: IndianaOptions & {
5146
5411
  grooveCustomerId: string;
5147
5412
  };
5148
5413
  expiresAt: string;
5414
+ append?: {
5415
+ subscriptionId: string;
5416
+ customerId: string;
5417
+ sourceItems: {
5418
+ id: string;
5419
+ price_id: string;
5420
+ quantity: number;
5421
+ discounts?: {
5422
+ id: string;
5423
+ coupon: string;
5424
+ start: number;
5425
+ end: number | null;
5426
+ }[] | undefined;
5427
+ }[];
5428
+ prorationDate: number;
5429
+ amountMinor: number;
5430
+ periodStartMs: number;
5431
+ periodEndMs: number;
5432
+ } | undefined;
5149
5433
  } | null;
5150
5434
  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";
5151
5435
  catalogAmountMinor: number;
@@ -5188,6 +5472,7 @@ declare function createFunnelClient(options: IndianaOptions & {
5188
5472
  basePlanId?: string | undefined;
5189
5473
  offerId?: string | undefined;
5190
5474
  } | null;
5475
+ append?: boolean | undefined;
5191
5476
  } | null;
5192
5477
  purchaseRequestId: string | null;
5193
5478
  } | null;
@@ -5354,6 +5639,25 @@ declare function createFunnelClient(options: IndianaOptions & {
5354
5639
  grooveCustomerId: string;
5355
5640
  };
5356
5641
  expiresAt: string;
5642
+ append?: {
5643
+ subscriptionId: string;
5644
+ customerId: string;
5645
+ sourceItems: {
5646
+ id: string;
5647
+ price_id: string;
5648
+ quantity: number;
5649
+ discounts?: {
5650
+ id: string;
5651
+ coupon: string;
5652
+ start: number;
5653
+ end: number | null;
5654
+ }[] | undefined;
5655
+ }[];
5656
+ prorationDate: number;
5657
+ amountMinor: number;
5658
+ periodStartMs: number;
5659
+ periodEndMs: number;
5660
+ } | undefined;
5357
5661
  } | null;
5358
5662
  nativeOffer?: {
5359
5663
  offerKind: "none" | "introductory" | "promotional";
@@ -5410,6 +5714,25 @@ declare function createFunnelClient(options: IndianaOptions & {
5410
5714
  grooveCustomerId: string;
5411
5715
  };
5412
5716
  expiresAt: string;
5717
+ append?: {
5718
+ subscriptionId: string;
5719
+ customerId: string;
5720
+ sourceItems: {
5721
+ id: string;
5722
+ price_id: string;
5723
+ quantity: number;
5724
+ discounts?: {
5725
+ id: string;
5726
+ coupon: string;
5727
+ start: number;
5728
+ end: number | null;
5729
+ }[] | undefined;
5730
+ }[];
5731
+ prorationDate: number;
5732
+ amountMinor: number;
5733
+ periodStartMs: number;
5734
+ periodEndMs: number;
5735
+ } | undefined;
5413
5736
  } | null;
5414
5737
  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";
5415
5738
  catalogAmountMinor: number;
@@ -5452,9 +5775,11 @@ declare function createFunnelClient(options: IndianaOptions & {
5452
5775
  basePlanId?: string | undefined;
5453
5776
  offerId?: string | undefined;
5454
5777
  } | null;
5778
+ append?: boolean | undefined;
5455
5779
  } | null;
5456
5780
  } | undefined;
5457
5781
  runToken?: string | undefined;
5782
+ customerId?: string | undefined;
5458
5783
  }>;
5459
5784
  resume(requestId?: string | undefined): Promise<FunnelControllerResponse>;
5460
5785
  submit(input: {
@@ -6224,6 +6549,25 @@ declare function createFunnelClient(options: IndianaOptions & {
6224
6549
  grooveCustomerId: string;
6225
6550
  };
6226
6551
  expiresAt: string;
6552
+ append?: {
6553
+ subscriptionId: string;
6554
+ customerId: string;
6555
+ sourceItems: {
6556
+ id: string;
6557
+ price_id: string;
6558
+ quantity: number;
6559
+ discounts?: {
6560
+ id: string;
6561
+ coupon: string;
6562
+ start: number;
6563
+ end: number | null;
6564
+ }[] | undefined;
6565
+ }[];
6566
+ prorationDate: number;
6567
+ amountMinor: number;
6568
+ periodStartMs: number;
6569
+ periodEndMs: number;
6570
+ } | undefined;
6227
6571
  } | null;
6228
6572
  nativeOffer?: {
6229
6573
  offerKind: "none" | "introductory" | "promotional";
@@ -6280,6 +6624,25 @@ declare function createFunnelClient(options: IndianaOptions & {
6280
6624
  grooveCustomerId: string;
6281
6625
  };
6282
6626
  expiresAt: string;
6627
+ append?: {
6628
+ subscriptionId: string;
6629
+ customerId: string;
6630
+ sourceItems: {
6631
+ id: string;
6632
+ price_id: string;
6633
+ quantity: number;
6634
+ discounts?: {
6635
+ id: string;
6636
+ coupon: string;
6637
+ start: number;
6638
+ end: number | null;
6639
+ }[] | undefined;
6640
+ }[];
6641
+ prorationDate: number;
6642
+ amountMinor: number;
6643
+ periodStartMs: number;
6644
+ periodEndMs: number;
6645
+ } | undefined;
6283
6646
  } | null;
6284
6647
  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";
6285
6648
  catalogAmountMinor: number;
@@ -6322,6 +6685,7 @@ declare function createFunnelClient(options: IndianaOptions & {
6322
6685
  basePlanId?: string | undefined;
6323
6686
  offerId?: string | undefined;
6324
6687
  } | null;
6688
+ append?: boolean | undefined;
6325
6689
  } | null;
6326
6690
  purchaseRequestId: string | null;
6327
6691
  } | null;
@@ -6488,6 +6852,25 @@ declare function createFunnelClient(options: IndianaOptions & {
6488
6852
  grooveCustomerId: string;
6489
6853
  };
6490
6854
  expiresAt: string;
6855
+ append?: {
6856
+ subscriptionId: string;
6857
+ customerId: string;
6858
+ sourceItems: {
6859
+ id: string;
6860
+ price_id: string;
6861
+ quantity: number;
6862
+ discounts?: {
6863
+ id: string;
6864
+ coupon: string;
6865
+ start: number;
6866
+ end: number | null;
6867
+ }[] | undefined;
6868
+ }[];
6869
+ prorationDate: number;
6870
+ amountMinor: number;
6871
+ periodStartMs: number;
6872
+ periodEndMs: number;
6873
+ } | undefined;
6491
6874
  } | null;
6492
6875
  nativeOffer?: {
6493
6876
  offerKind: "none" | "introductory" | "promotional";
@@ -6544,6 +6927,25 @@ declare function createFunnelClient(options: IndianaOptions & {
6544
6927
  grooveCustomerId: string;
6545
6928
  };
6546
6929
  expiresAt: string;
6930
+ append?: {
6931
+ subscriptionId: string;
6932
+ customerId: string;
6933
+ sourceItems: {
6934
+ id: string;
6935
+ price_id: string;
6936
+ quantity: number;
6937
+ discounts?: {
6938
+ id: string;
6939
+ coupon: string;
6940
+ start: number;
6941
+ end: number | null;
6942
+ }[] | undefined;
6943
+ }[];
6944
+ prorationDate: number;
6945
+ amountMinor: number;
6946
+ periodStartMs: number;
6947
+ periodEndMs: number;
6948
+ } | undefined;
6547
6949
  } | null;
6548
6950
  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";
6549
6951
  catalogAmountMinor: number;
@@ -6586,9 +6988,11 @@ declare function createFunnelClient(options: IndianaOptions & {
6586
6988
  basePlanId?: string | undefined;
6587
6989
  offerId?: string | undefined;
6588
6990
  } | null;
6991
+ append?: boolean | undefined;
6589
6992
  } | null;
6590
6993
  } | undefined;
6591
6994
  runToken?: string | undefined;
6995
+ customerId?: string | undefined;
6592
6996
  }>;
6593
6997
  retry(): Promise<FunnelControllerResponse>;
6594
6998
  identify(token: string): void;
@@ -7302,6 +7706,25 @@ declare function createFunnelClient(options: IndianaOptions & {
7302
7706
  grooveCustomerId: string;
7303
7707
  };
7304
7708
  expiresAt: string;
7709
+ append?: {
7710
+ subscriptionId: string;
7711
+ customerId: string;
7712
+ sourceItems: {
7713
+ id: string;
7714
+ price_id: string;
7715
+ quantity: number;
7716
+ discounts?: {
7717
+ id: string;
7718
+ coupon: string;
7719
+ start: number;
7720
+ end: number | null;
7721
+ }[] | undefined;
7722
+ }[];
7723
+ prorationDate: number;
7724
+ amountMinor: number;
7725
+ periodStartMs: number;
7726
+ periodEndMs: number;
7727
+ } | undefined;
7305
7728
  } | null;
7306
7729
  nativeOffer?: {
7307
7730
  offerKind: "none" | "introductory" | "promotional";
@@ -7358,6 +7781,25 @@ declare function createFunnelClient(options: IndianaOptions & {
7358
7781
  grooveCustomerId: string;
7359
7782
  };
7360
7783
  expiresAt: string;
7784
+ append?: {
7785
+ subscriptionId: string;
7786
+ customerId: string;
7787
+ sourceItems: {
7788
+ id: string;
7789
+ price_id: string;
7790
+ quantity: number;
7791
+ discounts?: {
7792
+ id: string;
7793
+ coupon: string;
7794
+ start: number;
7795
+ end: number | null;
7796
+ }[] | undefined;
7797
+ }[];
7798
+ prorationDate: number;
7799
+ amountMinor: number;
7800
+ periodStartMs: number;
7801
+ periodEndMs: number;
7802
+ } | undefined;
7361
7803
  } | null;
7362
7804
  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";
7363
7805
  catalogAmountMinor: number;
@@ -7400,6 +7842,7 @@ declare function createFunnelClient(options: IndianaOptions & {
7400
7842
  basePlanId?: string | undefined;
7401
7843
  offerId?: string | undefined;
7402
7844
  } | null;
7845
+ append?: boolean | undefined;
7403
7846
  } | null;
7404
7847
  purchaseRequestId: string | null;
7405
7848
  } | null;
@@ -7566,6 +8009,25 @@ declare function createFunnelClient(options: IndianaOptions & {
7566
8009
  grooveCustomerId: string;
7567
8010
  };
7568
8011
  expiresAt: string;
8012
+ append?: {
8013
+ subscriptionId: string;
8014
+ customerId: string;
8015
+ sourceItems: {
8016
+ id: string;
8017
+ price_id: string;
8018
+ quantity: number;
8019
+ discounts?: {
8020
+ id: string;
8021
+ coupon: string;
8022
+ start: number;
8023
+ end: number | null;
8024
+ }[] | undefined;
8025
+ }[];
8026
+ prorationDate: number;
8027
+ amountMinor: number;
8028
+ periodStartMs: number;
8029
+ periodEndMs: number;
8030
+ } | undefined;
7569
8031
  } | null;
7570
8032
  nativeOffer?: {
7571
8033
  offerKind: "none" | "introductory" | "promotional";
@@ -7622,6 +8084,25 @@ declare function createFunnelClient(options: IndianaOptions & {
7622
8084
  grooveCustomerId: string;
7623
8085
  };
7624
8086
  expiresAt: string;
8087
+ append?: {
8088
+ subscriptionId: string;
8089
+ customerId: string;
8090
+ sourceItems: {
8091
+ id: string;
8092
+ price_id: string;
8093
+ quantity: number;
8094
+ discounts?: {
8095
+ id: string;
8096
+ coupon: string;
8097
+ start: number;
8098
+ end: number | null;
8099
+ }[] | undefined;
8100
+ }[];
8101
+ prorationDate: number;
8102
+ amountMinor: number;
8103
+ periodStartMs: number;
8104
+ periodEndMs: number;
8105
+ } | undefined;
7625
8106
  } | null;
7626
8107
  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";
7627
8108
  catalogAmountMinor: number;
@@ -7664,9 +8145,11 @@ declare function createFunnelClient(options: IndianaOptions & {
7664
8145
  basePlanId?: string | undefined;
7665
8146
  offerId?: string | undefined;
7666
8147
  } | null;
8148
+ append?: boolean | undefined;
7667
8149
  } | null;
7668
8150
  } | undefined;
7669
8151
  runToken: string;
8152
+ customerId?: string | undefined;
7670
8153
  }>;
7671
8154
  };
7672
8155
 
@@ -8241,6 +8724,25 @@ declare function createIndiana(options: IndianaOptions): {
8241
8724
  grooveCustomerId: string;
8242
8725
  };
8243
8726
  expiresAt: string;
8727
+ append?: {
8728
+ subscriptionId: string;
8729
+ customerId: string;
8730
+ sourceItems: {
8731
+ id: string;
8732
+ price_id: string;
8733
+ quantity: number;
8734
+ discounts?: {
8735
+ id: string;
8736
+ coupon: string;
8737
+ start: number;
8738
+ end: number | null;
8739
+ }[] | undefined;
8740
+ }[];
8741
+ prorationDate: number;
8742
+ amountMinor: number;
8743
+ periodStartMs: number;
8744
+ periodEndMs: number;
8745
+ } | undefined;
8244
8746
  } | null;
8245
8747
  nativeOffer?: {
8246
8748
  offerKind: "none" | "introductory" | "promotional";
@@ -8310,6 +8812,25 @@ declare function createIndiana(options: IndianaOptions): {
8310
8812
  grooveCustomerId: string;
8311
8813
  };
8312
8814
  expiresAt: string;
8815
+ append?: {
8816
+ subscriptionId: string;
8817
+ customerId: string;
8818
+ sourceItems: {
8819
+ id: string;
8820
+ price_id: string;
8821
+ quantity: number;
8822
+ discounts?: {
8823
+ id: string;
8824
+ coupon: string;
8825
+ start: number;
8826
+ end: number | null;
8827
+ }[] | undefined;
8828
+ }[];
8829
+ prorationDate: number;
8830
+ amountMinor: number;
8831
+ periodStartMs: number;
8832
+ periodEndMs: number;
8833
+ } | undefined;
8313
8834
  } | null;
8314
8835
  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";
8315
8836
  catalogAmountMinor: number;
@@ -8352,6 +8873,7 @@ declare function createIndiana(options: IndianaOptions): {
8352
8873
  basePlanId?: string | undefined;
8353
8874
  offerId?: string | undefined;
8354
8875
  } | null;
8876
+ append?: boolean | undefined;
8355
8877
  };
8356
8878
  }>;
8357
8879
  readSubscriptionOperation(input: Omit<ApiInput<"readSubscriptionOperation">, "customerId">): Promise<{
@@ -8408,6 +8930,25 @@ declare function createIndiana(options: IndianaOptions): {
8408
8930
  grooveCustomerId: string;
8409
8931
  };
8410
8932
  expiresAt: string;
8933
+ append?: {
8934
+ subscriptionId: string;
8935
+ customerId: string;
8936
+ sourceItems: {
8937
+ id: string;
8938
+ price_id: string;
8939
+ quantity: number;
8940
+ discounts?: {
8941
+ id: string;
8942
+ coupon: string;
8943
+ start: number;
8944
+ end: number | null;
8945
+ }[] | undefined;
8946
+ }[];
8947
+ prorationDate: number;
8948
+ amountMinor: number;
8949
+ periodStartMs: number;
8950
+ periodEndMs: number;
8951
+ } | undefined;
8411
8952
  } | null;
8412
8953
  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";
8413
8954
  catalogAmountMinor: number;
@@ -8450,6 +8991,7 @@ declare function createIndiana(options: IndianaOptions): {
8450
8991
  basePlanId?: string | undefined;
8451
8992
  offerId?: string | undefined;
8452
8993
  } | null;
8994
+ append?: boolean | undefined;
8453
8995
  };
8454
8996
  }>;
8455
8997
  checkEntitlement(input: Omit<ApiInput<"checkEntitlement">, "customerId">): Promise<{
@@ -9261,6 +9803,7 @@ declare function createIndiana(options: IndianaOptions): {
9261
9803
  id: string;
9262
9804
  terms: {
9263
9805
  kind: "postpaid";
9806
+ maxAmountMinorPerPeriod: string;
9264
9807
  maxOutstandingMinor: string;
9265
9808
  cashPrice: {
9266
9809
  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";
@@ -9286,21 +9829,19 @@ declare function createIndiana(options: IndianaOptions): {
9286
9829
  productVersionId: string;
9287
9830
  internal_feature_id: string;
9288
9831
  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";
9289
- maxAmountMinorPerPeriod: string;
9290
9832
  } | {
9291
9833
  kind: "auto_topup";
9292
9834
  threshold: string;
9293
- maxPurchasesPerDay: number;
9835
+ quantity: string;
9294
9836
  purchaseAmountMinor: string;
9295
9837
  purchaseUnits: string;
9296
9838
  productVersionId: string;
9297
9839
  internal_feature_id: string;
9298
9840
  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";
9299
- maxAmountMinorPerPeriod: string;
9300
- purchaseLimits?: {
9301
- hour?: number | undefined;
9302
- week?: number | undefined;
9303
- month?: number | undefined;
9841
+ purchaseLimit?: {
9842
+ interval: "hour" | "day" | "week" | "month";
9843
+ intervalCount: number;
9844
+ limit: number;
9304
9845
  } | undefined;
9305
9846
  };
9306
9847
  status: "revoked" | "prepared" | "active" | "blocked";
@@ -9346,10 +9887,14 @@ declare function createIndiana(options: IndianaOptions): {
9346
9887
  autoTopups: {
9347
9888
  authorizationId: string;
9348
9889
  status: "pending" | "blocked" | "idle";
9349
- orderId: string | null;
9890
+ taskId: string | null;
9891
+ invoiceId: string | null;
9350
9892
  hostedInvoiceUrl: string | null;
9351
- purchasesToday: number;
9352
- amountMinorThisMonth: string;
9893
+ purchaseCount: number;
9894
+ purchaseWindowEndsAt: string | null;
9895
+ attemptCount: number;
9896
+ failedAttemptCount: number;
9897
+ suspendedAt: string | null;
9353
9898
  nextAttemptAt: string | null;
9354
9899
  failureReason: string | null;
9355
9900
  }[];
@@ -9380,6 +9925,7 @@ declare function createIndiana(options: IndianaOptions): {
9380
9925
  authorizationId: string;
9381
9926
  terms: {
9382
9927
  kind: "postpaid";
9928
+ maxAmountMinorPerPeriod: string;
9383
9929
  maxOutstandingMinor: string;
9384
9930
  cashPrice: {
9385
9931
  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";
@@ -9405,21 +9951,19 @@ declare function createIndiana(options: IndianaOptions): {
9405
9951
  productVersionId: string;
9406
9952
  internal_feature_id: string;
9407
9953
  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";
9408
- maxAmountMinorPerPeriod: string;
9409
9954
  } | {
9410
9955
  kind: "auto_topup";
9411
9956
  threshold: string;
9412
- maxPurchasesPerDay: number;
9957
+ quantity: string;
9413
9958
  purchaseAmountMinor: string;
9414
9959
  purchaseUnits: string;
9415
9960
  productVersionId: string;
9416
9961
  internal_feature_id: string;
9417
9962
  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";
9418
- maxAmountMinorPerPeriod: string;
9419
- purchaseLimits?: {
9420
- hour?: number | undefined;
9421
- week?: number | undefined;
9422
- month?: number | undefined;
9963
+ purchaseLimit?: {
9964
+ interval: "hour" | "day" | "week" | "month";
9965
+ intervalCount: number;
9966
+ limit: number;
9423
9967
  } | undefined;
9424
9968
  };
9425
9969
  setupUrl: string | null;
@@ -9436,6 +9980,7 @@ declare function createIndiana(options: IndianaOptions): {
9436
9980
  id: string;
9437
9981
  terms: {
9438
9982
  kind: "postpaid";
9983
+ maxAmountMinorPerPeriod: string;
9439
9984
  maxOutstandingMinor: string;
9440
9985
  cashPrice: {
9441
9986
  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";
@@ -9461,21 +10006,19 @@ declare function createIndiana(options: IndianaOptions): {
9461
10006
  productVersionId: string;
9462
10007
  internal_feature_id: string;
9463
10008
  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";
9464
- maxAmountMinorPerPeriod: string;
9465
10009
  } | {
9466
10010
  kind: "auto_topup";
9467
10011
  threshold: string;
9468
- maxPurchasesPerDay: number;
10012
+ quantity: string;
9469
10013
  purchaseAmountMinor: string;
9470
10014
  purchaseUnits: string;
9471
10015
  productVersionId: string;
9472
10016
  internal_feature_id: string;
9473
10017
  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";
9474
- maxAmountMinorPerPeriod: string;
9475
- purchaseLimits?: {
9476
- hour?: number | undefined;
9477
- week?: number | undefined;
9478
- month?: number | undefined;
10018
+ purchaseLimit?: {
10019
+ interval: "hour" | "day" | "week" | "month";
10020
+ intervalCount: number;
10021
+ limit: number;
9479
10022
  } | undefined;
9480
10023
  };
9481
10024
  status: "revoked" | "prepared" | "active" | "blocked";
@@ -9492,7 +10035,49 @@ declare function createIndiana(options: IndianaOptions): {
9492
10035
  environment: "sandbox" | "live";
9493
10036
  };
9494
10037
  coupons: {
9495
- authorizationId: string;
10038
+ membershipId: string;
10039
+ operationId: string;
10040
+ status: "pending" | "effective";
10041
+ execution: {
10042
+ subscriptionId: string;
10043
+ customerId: string;
10044
+ accountId: string;
10045
+ sourceItems: {
10046
+ id: string;
10047
+ price_id: string;
10048
+ quantity: number;
10049
+ discounts?: {
10050
+ id: string;
10051
+ coupon: string;
10052
+ start: number;
10053
+ end: number | null;
10054
+ }[] | undefined;
10055
+ }[];
10056
+ items: {
10057
+ id: string;
10058
+ price: string;
10059
+ quantity: number;
10060
+ discounts: {
10061
+ coupon?: string | undefined;
10062
+ terms?: {
10063
+ id: string;
10064
+ duration: "once" | "repeating" | "forever";
10065
+ name?: string | undefined;
10066
+ percent_off?: number | undefined;
10067
+ amount_off?: number | undefined;
10068
+ currency?: string | undefined;
10069
+ duration_in_months?: number | undefined;
10070
+ } | undefined;
10071
+ discount?: string | undefined;
10072
+ receipt?: {
10073
+ id: string;
10074
+ coupon: string;
10075
+ start: number;
10076
+ end: number | null;
10077
+ } | undefined;
10078
+ }[];
10079
+ }[];
10080
+ } | null;
9496
10081
  grants: {
9497
10082
  id: string;
9498
10083
  couponId: string;
@@ -9527,6 +10112,7 @@ declare function createIndiana(options: IndianaOptions): {
9527
10112
  id: string;
9528
10113
  terms: {
9529
10114
  kind: "postpaid";
10115
+ maxAmountMinorPerPeriod: string;
9530
10116
  maxOutstandingMinor: string;
9531
10117
  cashPrice: {
9532
10118
  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";
@@ -9552,21 +10138,19 @@ declare function createIndiana(options: IndianaOptions): {
9552
10138
  productVersionId: string;
9553
10139
  internal_feature_id: string;
9554
10140
  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";
9555
- maxAmountMinorPerPeriod: string;
9556
10141
  } | {
9557
10142
  kind: "auto_topup";
9558
10143
  threshold: string;
9559
- maxPurchasesPerDay: number;
10144
+ quantity: string;
9560
10145
  purchaseAmountMinor: string;
9561
10146
  purchaseUnits: string;
9562
10147
  productVersionId: string;
9563
10148
  internal_feature_id: string;
9564
10149
  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";
9565
- maxAmountMinorPerPeriod: string;
9566
- purchaseLimits?: {
9567
- hour?: number | undefined;
9568
- week?: number | undefined;
9569
- month?: number | undefined;
10150
+ purchaseLimit?: {
10151
+ interval: "hour" | "day" | "week" | "month";
10152
+ intervalCount: number;
10153
+ limit: number;
9570
10154
  } | undefined;
9571
10155
  };
9572
10156
  status: "revoked" | "prepared" | "active" | "blocked";