@tinkerlandai/indiana-sdk 0.4.0 → 0.5.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +6 -6
  3. package/README.zh-CN.md +4 -4
  4. package/THIRD_PARTY_NOTICES.md +0 -1
  5. package/dist/ai-usage-BzydP8eN.d.ts +11085 -0
  6. package/dist/chunk-3OSMEG44.js +17 -0
  7. package/dist/chunk-GA6X57BO.js +1 -0
  8. package/dist/chunk-GTBD4BJ4.js +11 -0
  9. package/dist/{chunk-2UFPTDCV.js → chunk-QUW4UOKZ.js} +1 -1
  10. package/dist/chunk-RMFH5TWV.js +1 -0
  11. package/dist/chunk-YNUVRZRQ.js +1 -0
  12. package/dist/funnel-runtime-host-RZRB2CY6.js +1 -0
  13. package/dist/{funnel-runtime-start-B93fV5gJ.d.ts → funnel-runtime-start-JHA9ES24.d.ts} +63 -29
  14. package/dist/index.d.ts +108 -53
  15. package/dist/index.js +1 -1
  16. package/dist/native-shell.js +1 -1
  17. package/dist/openrouter.d.ts +3 -2
  18. package/dist/openrouter.js +1 -1
  19. package/dist/page.d.ts +12 -12
  20. package/dist/page.js +1 -1
  21. package/dist/{paywall-M5CIDUIT.js → paywall-MYBEOVTQ.js} +1 -1
  22. package/dist/popup.d.ts +254 -1
  23. package/dist/popup.js +6 -6
  24. package/dist/{screen-Keau_Qa2.d.ts → screen-16d-xADb.d.ts} +354 -463
  25. package/dist/server.d.ts +4 -3
  26. package/dist/server.js +1 -1
  27. package/dist/src-E2GXK6WA.js +1 -0
  28. package/dist/visual-editor-agent-FDCV3BXP.js +1 -0
  29. package/dist/visual.js +1 -1
  30. package/package.json +3 -2
  31. package/dist/ai-usage-D9xVKhvu.d.ts +0 -9953
  32. package/dist/chunk-LFNFVYC2.js +0 -1
  33. package/dist/chunk-PVJKOUNE.js +0 -11
  34. package/dist/chunk-TZ6REIUE.js +0 -17
  35. package/dist/chunk-VTSEZ4GI.js +0 -1
  36. package/dist/funnel-runtime-host-4PQY2MFC.js +0 -1
  37. package/dist/src-XEDJAKEB.js +0 -1
  38. package/dist/visual-editor-agent-PYMKMPY3.js +0 -1
package/dist/index.d.ts CHANGED
@@ -1,13 +1,14 @@
1
1
  import * as zod from 'zod';
2
2
  import { z } from 'zod';
3
- import { F as FunnelRuntimeResponse, a as FunnelRunView, b as FunnelCommand, c as FunnelDataQueries, I as IndianaOptions, P as PaywallSession, S as SubscriptionOperation, d as FeatureClientOptions, e as FunnelStartInput, R as RemoteFeatureResult } from './funnel-runtime-start-B93fV5gJ.js';
4
- export { f as FeatureClient, 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-B93fV5gJ.js';
3
+ import { F as FunnelRuntimeResponse, a as FunnelRunView, b as FunnelCommand, c as FunnelDataQueries, I as IndianaOptions, P as PaywallSession, S as SubscriptionOperation, d as FeatureClientOptions, e as FunnelStartInput, R as RemoteFeatureResult } from './funnel-runtime-start-JHA9ES24.js';
4
+ export { f as FeatureClient, 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-JHA9ES24.js';
5
5
  import { C as CouponInput, a as CustomerDataIntent, O as Offer } from './customer-page-aZb5Twue.js';
6
6
  export { b as OfferUnavailableReason } from './customer-page-aZb5Twue.js';
7
- import { O as OfferingItem, A as ApiInput } from './ai-usage-D9xVKhvu.js';
8
- import { S as StackNode } from './screen-Keau_Qa2.js';
7
+ import { O as OfferingItem, I as InvoiceModeParams, A as ApiInput } from './ai-usage-BzydP8eN.js';
8
+ import { S as StackNode } from './screen-16d-xADb.js';
9
9
  import { J as JsonValue, F as FeatureResult } from './growth-rules-D64pEvg9.js';
10
10
  import '@ai-sdk/provider';
11
+ import 'zod/v4';
11
12
 
12
13
  /** Currency always comes from business data; locale only controls notation. No currency conversion. */
13
14
  declare function formatCouponMoney(cents: number, currency: string, locale?: string): string;
@@ -168,8 +169,8 @@ declare function createFunnelRunController(options: IndianaOptions & {
168
169
  revision: number;
169
170
  visit: number;
170
171
  nodeId: string;
171
- nodeType: "output" | "condition" | "action" | "split" | "end" | "coupon" | "screen" | "offering" | "feature" | "entry" | "external_page" | "wait";
172
- status: "failed" | "running" | "completed" | "closed" | "ineligible" | "waiting";
172
+ nodeType: "output" | "action" | "condition" | "split" | "end" | "coupon" | "screen" | "offering" | "feature" | "entry" | "external_page" | "wait";
173
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
173
174
  stopped: boolean;
174
175
  canBack: boolean;
175
176
  authenticated: boolean;
@@ -452,7 +453,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
452
453
  cursor: {
453
454
  at: string;
454
455
  id: string;
455
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
456
+ type: "invoice" | "source" | "usage" | "debt" | "transaction" | "settlement";
456
457
  };
457
458
  } | {
458
459
  kind: "billing";
@@ -868,6 +869,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
868
869
  grooveCustomerId: string;
869
870
  };
870
871
  expiresAt: string;
872
+ invoiceMode?: InvoiceModeParams | undefined;
871
873
  append?: {
872
874
  subscriptionId: string;
873
875
  customerId: string;
@@ -898,7 +900,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
898
900
  operation: {
899
901
  operationId: string;
900
902
  orderId: string;
901
- status: "pending" | "cancelled" | "failed" | "complete";
903
+ status: "complete" | "pending" | "cancelled" | "failed";
902
904
  executor: "merchant" | "indiana";
903
905
  checkoutUrl: string | null;
904
906
  execution: {
@@ -943,6 +945,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
943
945
  grooveCustomerId: string;
944
946
  };
945
947
  expiresAt: string;
948
+ invoiceMode?: InvoiceModeParams | undefined;
946
949
  append?: {
947
950
  subscriptionId: string;
948
951
  customerId: string;
@@ -1005,6 +1008,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
1005
1008
  offerId?: string | undefined;
1006
1009
  } | null;
1007
1010
  append?: boolean | undefined;
1011
+ invoiceMode?: boolean | undefined;
1008
1012
  } | null;
1009
1013
  purchaseRequestId: string | null;
1010
1014
  } | null;
@@ -1052,8 +1056,8 @@ declare function createFunnelRunController(options: IndianaOptions & {
1052
1056
  revision: number;
1053
1057
  visit: number;
1054
1058
  nodeId: string;
1055
- nodeType: "output" | "condition" | "action" | "split" | "end" | "coupon" | "screen" | "offering" | "feature" | "entry" | "external_page" | "wait";
1056
- status: "failed" | "running" | "completed" | "closed" | "ineligible" | "waiting";
1059
+ nodeType: "output" | "action" | "condition" | "split" | "end" | "coupon" | "screen" | "offering" | "feature" | "entry" | "external_page" | "wait";
1060
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
1057
1061
  stopped: boolean;
1058
1062
  canBack: boolean;
1059
1063
  authenticated: boolean;
@@ -1470,6 +1474,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
1470
1474
  grooveCustomerId: string;
1471
1475
  };
1472
1476
  expiresAt: string;
1477
+ invoiceMode?: InvoiceModeParams | undefined;
1473
1478
  append?: {
1474
1479
  subscriptionId: string;
1475
1480
  customerId: string;
@@ -1500,7 +1505,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
1500
1505
  operation: {
1501
1506
  operationId: string;
1502
1507
  orderId: string;
1503
- status: "pending" | "cancelled" | "failed" | "complete";
1508
+ status: "complete" | "pending" | "cancelled" | "failed";
1504
1509
  executor: "merchant" | "indiana";
1505
1510
  checkoutUrl: string | null;
1506
1511
  execution: {
@@ -1545,6 +1550,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
1545
1550
  grooveCustomerId: string;
1546
1551
  };
1547
1552
  expiresAt: string;
1553
+ invoiceMode?: InvoiceModeParams | undefined;
1548
1554
  append?: {
1549
1555
  subscriptionId: string;
1550
1556
  customerId: string;
@@ -1607,6 +1613,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
1607
1613
  offerId?: string | undefined;
1608
1614
  } | null;
1609
1615
  append?: boolean | undefined;
1616
+ invoiceMode?: boolean | undefined;
1610
1617
  } | null;
1611
1618
  purchaseRequestId: string | null;
1612
1619
  } | null;
@@ -1827,7 +1834,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
1827
1834
  cursor: {
1828
1835
  at: string;
1829
1836
  id: string;
1830
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
1837
+ type: "invoice" | "source" | "usage" | "debt" | "transaction" | "settlement";
1831
1838
  };
1832
1839
  } | {
1833
1840
  kind: "billing";
@@ -1977,6 +1984,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
1977
1984
  grooveCustomerId: string;
1978
1985
  };
1979
1986
  expiresAt: string;
1987
+ invoiceMode?: InvoiceModeParams | undefined;
1980
1988
  append?: {
1981
1989
  subscriptionId: string;
1982
1990
  customerId: string;
@@ -2007,7 +2015,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
2007
2015
  operation: {
2008
2016
  operationId: string;
2009
2017
  orderId: string;
2010
- status: "pending" | "cancelled" | "failed" | "complete";
2018
+ status: "complete" | "pending" | "cancelled" | "failed";
2011
2019
  executor: "merchant" | "indiana";
2012
2020
  checkoutUrl: string | null;
2013
2021
  execution: {
@@ -2052,6 +2060,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
2052
2060
  grooveCustomerId: string;
2053
2061
  };
2054
2062
  expiresAt: string;
2063
+ invoiceMode?: InvoiceModeParams | undefined;
2055
2064
  append?: {
2056
2065
  subscriptionId: string;
2057
2066
  customerId: string;
@@ -2114,6 +2123,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
2114
2123
  offerId?: string | undefined;
2115
2124
  } | null;
2116
2125
  append?: boolean | undefined;
2126
+ invoiceMode?: boolean | undefined;
2117
2127
  } | null;
2118
2128
  } | undefined;
2119
2129
  runToken?: string | undefined;
@@ -2135,8 +2145,8 @@ declare function createFunnelRunController(options: IndianaOptions & {
2135
2145
  revision: number;
2136
2146
  visit: number;
2137
2147
  nodeId: string;
2138
- nodeType: "output" | "condition" | "action" | "split" | "end" | "coupon" | "screen" | "offering" | "feature" | "entry" | "external_page" | "wait";
2139
- status: "failed" | "running" | "completed" | "closed" | "ineligible" | "waiting";
2148
+ nodeType: "output" | "action" | "condition" | "split" | "end" | "coupon" | "screen" | "offering" | "feature" | "entry" | "external_page" | "wait";
2149
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
2140
2150
  stopped: boolean;
2141
2151
  canBack: boolean;
2142
2152
  authenticated: boolean;
@@ -2553,6 +2563,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
2553
2563
  grooveCustomerId: string;
2554
2564
  };
2555
2565
  expiresAt: string;
2566
+ invoiceMode?: InvoiceModeParams | undefined;
2556
2567
  append?: {
2557
2568
  subscriptionId: string;
2558
2569
  customerId: string;
@@ -2583,7 +2594,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
2583
2594
  operation: {
2584
2595
  operationId: string;
2585
2596
  orderId: string;
2586
- status: "pending" | "cancelled" | "failed" | "complete";
2597
+ status: "complete" | "pending" | "cancelled" | "failed";
2587
2598
  executor: "merchant" | "indiana";
2588
2599
  checkoutUrl: string | null;
2589
2600
  execution: {
@@ -2628,6 +2639,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
2628
2639
  grooveCustomerId: string;
2629
2640
  };
2630
2641
  expiresAt: string;
2642
+ invoiceMode?: InvoiceModeParams | undefined;
2631
2643
  append?: {
2632
2644
  subscriptionId: string;
2633
2645
  customerId: string;
@@ -2690,6 +2702,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
2690
2702
  offerId?: string | undefined;
2691
2703
  } | null;
2692
2704
  append?: boolean | undefined;
2705
+ invoiceMode?: boolean | undefined;
2693
2706
  } | null;
2694
2707
  purchaseRequestId: string | null;
2695
2708
  } | null;
@@ -2910,7 +2923,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
2910
2923
  cursor: {
2911
2924
  at: string;
2912
2925
  id: string;
2913
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
2926
+ type: "invoice" | "source" | "usage" | "debt" | "transaction" | "settlement";
2914
2927
  };
2915
2928
  } | {
2916
2929
  kind: "billing";
@@ -3060,6 +3073,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
3060
3073
  grooveCustomerId: string;
3061
3074
  };
3062
3075
  expiresAt: string;
3076
+ invoiceMode?: InvoiceModeParams | undefined;
3063
3077
  append?: {
3064
3078
  subscriptionId: string;
3065
3079
  customerId: string;
@@ -3090,7 +3104,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
3090
3104
  operation: {
3091
3105
  operationId: string;
3092
3106
  orderId: string;
3093
- status: "pending" | "cancelled" | "failed" | "complete";
3107
+ status: "complete" | "pending" | "cancelled" | "failed";
3094
3108
  executor: "merchant" | "indiana";
3095
3109
  checkoutUrl: string | null;
3096
3110
  execution: {
@@ -3135,6 +3149,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
3135
3149
  grooveCustomerId: string;
3136
3150
  };
3137
3151
  expiresAt: string;
3152
+ invoiceMode?: InvoiceModeParams | undefined;
3138
3153
  append?: {
3139
3154
  subscriptionId: string;
3140
3155
  customerId: string;
@@ -3197,6 +3212,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
3197
3212
  offerId?: string | undefined;
3198
3213
  } | null;
3199
3214
  append?: boolean | undefined;
3215
+ invoiceMode?: boolean | undefined;
3200
3216
  } | null;
3201
3217
  } | undefined;
3202
3218
  runToken?: string | undefined;
@@ -3596,8 +3612,8 @@ declare function createFunnelClient(options: IndianaOptions & {
3596
3612
  revision: number;
3597
3613
  visit: number;
3598
3614
  nodeId: string;
3599
- nodeType: "output" | "condition" | "action" | "split" | "end" | "coupon" | "screen" | "offering" | "feature" | "entry" | "external_page" | "wait";
3600
- status: "failed" | "running" | "completed" | "closed" | "ineligible" | "waiting";
3615
+ nodeType: "output" | "action" | "condition" | "split" | "end" | "coupon" | "screen" | "offering" | "feature" | "entry" | "external_page" | "wait";
3616
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
3601
3617
  stopped: boolean;
3602
3618
  canBack: boolean;
3603
3619
  authenticated: boolean;
@@ -3880,7 +3896,7 @@ declare function createFunnelClient(options: IndianaOptions & {
3880
3896
  cursor: {
3881
3897
  at: string;
3882
3898
  id: string;
3883
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
3899
+ type: "invoice" | "source" | "usage" | "debt" | "transaction" | "settlement";
3884
3900
  };
3885
3901
  } | {
3886
3902
  kind: "billing";
@@ -4296,6 +4312,7 @@ declare function createFunnelClient(options: IndianaOptions & {
4296
4312
  grooveCustomerId: string;
4297
4313
  };
4298
4314
  expiresAt: string;
4315
+ invoiceMode?: InvoiceModeParams | undefined;
4299
4316
  append?: {
4300
4317
  subscriptionId: string;
4301
4318
  customerId: string;
@@ -4326,7 +4343,7 @@ declare function createFunnelClient(options: IndianaOptions & {
4326
4343
  operation: {
4327
4344
  operationId: string;
4328
4345
  orderId: string;
4329
- status: "pending" | "cancelled" | "failed" | "complete";
4346
+ status: "complete" | "pending" | "cancelled" | "failed";
4330
4347
  executor: "merchant" | "indiana";
4331
4348
  checkoutUrl: string | null;
4332
4349
  execution: {
@@ -4371,6 +4388,7 @@ declare function createFunnelClient(options: IndianaOptions & {
4371
4388
  grooveCustomerId: string;
4372
4389
  };
4373
4390
  expiresAt: string;
4391
+ invoiceMode?: InvoiceModeParams | undefined;
4374
4392
  append?: {
4375
4393
  subscriptionId: string;
4376
4394
  customerId: string;
@@ -4433,6 +4451,7 @@ declare function createFunnelClient(options: IndianaOptions & {
4433
4451
  offerId?: string | undefined;
4434
4452
  } | null;
4435
4453
  append?: boolean | undefined;
4454
+ invoiceMode?: boolean | undefined;
4436
4455
  } | null;
4437
4456
  purchaseRequestId: string | null;
4438
4457
  } | null;
@@ -4539,8 +4558,8 @@ declare function createFunnelClient(options: IndianaOptions & {
4539
4558
  revision: number;
4540
4559
  visit: number;
4541
4560
  nodeId: string;
4542
- nodeType: "output" | "condition" | "action" | "split" | "end" | "coupon" | "screen" | "offering" | "feature" | "entry" | "external_page" | "wait";
4543
- status: "failed" | "running" | "completed" | "closed" | "ineligible" | "waiting";
4561
+ nodeType: "output" | "action" | "condition" | "split" | "end" | "coupon" | "screen" | "offering" | "feature" | "entry" | "external_page" | "wait";
4562
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
4544
4563
  stopped: boolean;
4545
4564
  canBack: boolean;
4546
4565
  authenticated: boolean;
@@ -4957,6 +4976,7 @@ declare function createFunnelClient(options: IndianaOptions & {
4957
4976
  grooveCustomerId: string;
4958
4977
  };
4959
4978
  expiresAt: string;
4979
+ invoiceMode?: InvoiceModeParams | undefined;
4960
4980
  append?: {
4961
4981
  subscriptionId: string;
4962
4982
  customerId: string;
@@ -4987,7 +5007,7 @@ declare function createFunnelClient(options: IndianaOptions & {
4987
5007
  operation: {
4988
5008
  operationId: string;
4989
5009
  orderId: string;
4990
- status: "pending" | "cancelled" | "failed" | "complete";
5010
+ status: "complete" | "pending" | "cancelled" | "failed";
4991
5011
  executor: "merchant" | "indiana";
4992
5012
  checkoutUrl: string | null;
4993
5013
  execution: {
@@ -5032,6 +5052,7 @@ declare function createFunnelClient(options: IndianaOptions & {
5032
5052
  grooveCustomerId: string;
5033
5053
  };
5034
5054
  expiresAt: string;
5055
+ invoiceMode?: InvoiceModeParams | undefined;
5035
5056
  append?: {
5036
5057
  subscriptionId: string;
5037
5058
  customerId: string;
@@ -5094,6 +5115,7 @@ declare function createFunnelClient(options: IndianaOptions & {
5094
5115
  offerId?: string | undefined;
5095
5116
  } | null;
5096
5117
  append?: boolean | undefined;
5118
+ invoiceMode?: boolean | undefined;
5097
5119
  } | null;
5098
5120
  purchaseRequestId: string | null;
5099
5121
  } | null;
@@ -5314,7 +5336,7 @@ declare function createFunnelClient(options: IndianaOptions & {
5314
5336
  cursor: {
5315
5337
  at: string;
5316
5338
  id: string;
5317
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
5339
+ type: "invoice" | "source" | "usage" | "debt" | "transaction" | "settlement";
5318
5340
  };
5319
5341
  } | {
5320
5342
  kind: "billing";
@@ -5464,6 +5486,7 @@ declare function createFunnelClient(options: IndianaOptions & {
5464
5486
  grooveCustomerId: string;
5465
5487
  };
5466
5488
  expiresAt: string;
5489
+ invoiceMode?: InvoiceModeParams | undefined;
5467
5490
  append?: {
5468
5491
  subscriptionId: string;
5469
5492
  customerId: string;
@@ -5494,7 +5517,7 @@ declare function createFunnelClient(options: IndianaOptions & {
5494
5517
  operation: {
5495
5518
  operationId: string;
5496
5519
  orderId: string;
5497
- status: "pending" | "cancelled" | "failed" | "complete";
5520
+ status: "complete" | "pending" | "cancelled" | "failed";
5498
5521
  executor: "merchant" | "indiana";
5499
5522
  checkoutUrl: string | null;
5500
5523
  execution: {
@@ -5539,6 +5562,7 @@ declare function createFunnelClient(options: IndianaOptions & {
5539
5562
  grooveCustomerId: string;
5540
5563
  };
5541
5564
  expiresAt: string;
5565
+ invoiceMode?: InvoiceModeParams | undefined;
5542
5566
  append?: {
5543
5567
  subscriptionId: string;
5544
5568
  customerId: string;
@@ -5601,6 +5625,7 @@ declare function createFunnelClient(options: IndianaOptions & {
5601
5625
  offerId?: string | undefined;
5602
5626
  } | null;
5603
5627
  append?: boolean | undefined;
5628
+ invoiceMode?: boolean | undefined;
5604
5629
  } | null;
5605
5630
  } | undefined;
5606
5631
  runToken?: string | undefined;
@@ -5681,8 +5706,8 @@ declare function createFunnelClient(options: IndianaOptions & {
5681
5706
  revision: number;
5682
5707
  visit: number;
5683
5708
  nodeId: string;
5684
- nodeType: "output" | "condition" | "action" | "split" | "end" | "coupon" | "screen" | "offering" | "feature" | "entry" | "external_page" | "wait";
5685
- status: "failed" | "running" | "completed" | "closed" | "ineligible" | "waiting";
5709
+ nodeType: "output" | "action" | "condition" | "split" | "end" | "coupon" | "screen" | "offering" | "feature" | "entry" | "external_page" | "wait";
5710
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
5686
5711
  stopped: boolean;
5687
5712
  canBack: boolean;
5688
5713
  authenticated: boolean;
@@ -6099,6 +6124,7 @@ declare function createFunnelClient(options: IndianaOptions & {
6099
6124
  grooveCustomerId: string;
6100
6125
  };
6101
6126
  expiresAt: string;
6127
+ invoiceMode?: InvoiceModeParams | undefined;
6102
6128
  append?: {
6103
6129
  subscriptionId: string;
6104
6130
  customerId: string;
@@ -6129,7 +6155,7 @@ declare function createFunnelClient(options: IndianaOptions & {
6129
6155
  operation: {
6130
6156
  operationId: string;
6131
6157
  orderId: string;
6132
- status: "pending" | "cancelled" | "failed" | "complete";
6158
+ status: "complete" | "pending" | "cancelled" | "failed";
6133
6159
  executor: "merchant" | "indiana";
6134
6160
  checkoutUrl: string | null;
6135
6161
  execution: {
@@ -6174,6 +6200,7 @@ declare function createFunnelClient(options: IndianaOptions & {
6174
6200
  grooveCustomerId: string;
6175
6201
  };
6176
6202
  expiresAt: string;
6203
+ invoiceMode?: InvoiceModeParams | undefined;
6177
6204
  append?: {
6178
6205
  subscriptionId: string;
6179
6206
  customerId: string;
@@ -6236,6 +6263,7 @@ declare function createFunnelClient(options: IndianaOptions & {
6236
6263
  offerId?: string | undefined;
6237
6264
  } | null;
6238
6265
  append?: boolean | undefined;
6266
+ invoiceMode?: boolean | undefined;
6239
6267
  } | null;
6240
6268
  purchaseRequestId: string | null;
6241
6269
  } | null;
@@ -6456,7 +6484,7 @@ declare function createFunnelClient(options: IndianaOptions & {
6456
6484
  cursor: {
6457
6485
  at: string;
6458
6486
  id: string;
6459
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
6487
+ type: "invoice" | "source" | "usage" | "debt" | "transaction" | "settlement";
6460
6488
  };
6461
6489
  } | {
6462
6490
  kind: "billing";
@@ -6606,6 +6634,7 @@ declare function createFunnelClient(options: IndianaOptions & {
6606
6634
  grooveCustomerId: string;
6607
6635
  };
6608
6636
  expiresAt: string;
6637
+ invoiceMode?: InvoiceModeParams | undefined;
6609
6638
  append?: {
6610
6639
  subscriptionId: string;
6611
6640
  customerId: string;
@@ -6636,7 +6665,7 @@ declare function createFunnelClient(options: IndianaOptions & {
6636
6665
  operation: {
6637
6666
  operationId: string;
6638
6667
  orderId: string;
6639
- status: "pending" | "cancelled" | "failed" | "complete";
6668
+ status: "complete" | "pending" | "cancelled" | "failed";
6640
6669
  executor: "merchant" | "indiana";
6641
6670
  checkoutUrl: string | null;
6642
6671
  execution: {
@@ -6681,6 +6710,7 @@ declare function createFunnelClient(options: IndianaOptions & {
6681
6710
  grooveCustomerId: string;
6682
6711
  };
6683
6712
  expiresAt: string;
6713
+ invoiceMode?: InvoiceModeParams | undefined;
6684
6714
  append?: {
6685
6715
  subscriptionId: string;
6686
6716
  customerId: string;
@@ -6743,6 +6773,7 @@ declare function createFunnelClient(options: IndianaOptions & {
6743
6773
  offerId?: string | undefined;
6744
6774
  } | null;
6745
6775
  append?: boolean | undefined;
6776
+ invoiceMode?: boolean | undefined;
6746
6777
  } | null;
6747
6778
  } | undefined;
6748
6779
  runToken?: string | undefined;
@@ -6767,8 +6798,8 @@ declare function createFunnelClient(options: IndianaOptions & {
6767
6798
  revision: number;
6768
6799
  visit: number;
6769
6800
  nodeId: string;
6770
- nodeType: "output" | "condition" | "action" | "split" | "end" | "coupon" | "screen" | "offering" | "feature" | "entry" | "external_page" | "wait";
6771
- status: "failed" | "running" | "completed" | "closed" | "ineligible" | "waiting";
6801
+ nodeType: "output" | "action" | "condition" | "split" | "end" | "coupon" | "screen" | "offering" | "feature" | "entry" | "external_page" | "wait";
6802
+ status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
6772
6803
  stopped: boolean;
6773
6804
  canBack: boolean;
6774
6805
  authenticated: boolean;
@@ -7185,6 +7216,7 @@ declare function createFunnelClient(options: IndianaOptions & {
7185
7216
  grooveCustomerId: string;
7186
7217
  };
7187
7218
  expiresAt: string;
7219
+ invoiceMode?: InvoiceModeParams | undefined;
7188
7220
  append?: {
7189
7221
  subscriptionId: string;
7190
7222
  customerId: string;
@@ -7215,7 +7247,7 @@ declare function createFunnelClient(options: IndianaOptions & {
7215
7247
  operation: {
7216
7248
  operationId: string;
7217
7249
  orderId: string;
7218
- status: "pending" | "cancelled" | "failed" | "complete";
7250
+ status: "complete" | "pending" | "cancelled" | "failed";
7219
7251
  executor: "merchant" | "indiana";
7220
7252
  checkoutUrl: string | null;
7221
7253
  execution: {
@@ -7260,6 +7292,7 @@ declare function createFunnelClient(options: IndianaOptions & {
7260
7292
  grooveCustomerId: string;
7261
7293
  };
7262
7294
  expiresAt: string;
7295
+ invoiceMode?: InvoiceModeParams | undefined;
7263
7296
  append?: {
7264
7297
  subscriptionId: string;
7265
7298
  customerId: string;
@@ -7322,6 +7355,7 @@ declare function createFunnelClient(options: IndianaOptions & {
7322
7355
  offerId?: string | undefined;
7323
7356
  } | null;
7324
7357
  append?: boolean | undefined;
7358
+ invoiceMode?: boolean | undefined;
7325
7359
  } | null;
7326
7360
  purchaseRequestId: string | null;
7327
7361
  } | null;
@@ -7542,7 +7576,7 @@ declare function createFunnelClient(options: IndianaOptions & {
7542
7576
  cursor: {
7543
7577
  at: string;
7544
7578
  id: string;
7545
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
7579
+ type: "invoice" | "source" | "usage" | "debt" | "transaction" | "settlement";
7546
7580
  };
7547
7581
  } | {
7548
7582
  kind: "billing";
@@ -7692,6 +7726,7 @@ declare function createFunnelClient(options: IndianaOptions & {
7692
7726
  grooveCustomerId: string;
7693
7727
  };
7694
7728
  expiresAt: string;
7729
+ invoiceMode?: InvoiceModeParams | undefined;
7695
7730
  append?: {
7696
7731
  subscriptionId: string;
7697
7732
  customerId: string;
@@ -7722,7 +7757,7 @@ declare function createFunnelClient(options: IndianaOptions & {
7722
7757
  operation: {
7723
7758
  operationId: string;
7724
7759
  orderId: string;
7725
- status: "pending" | "cancelled" | "failed" | "complete";
7760
+ status: "complete" | "pending" | "cancelled" | "failed";
7726
7761
  executor: "merchant" | "indiana";
7727
7762
  checkoutUrl: string | null;
7728
7763
  execution: {
@@ -7767,6 +7802,7 @@ declare function createFunnelClient(options: IndianaOptions & {
7767
7802
  grooveCustomerId: string;
7768
7803
  };
7769
7804
  expiresAt: string;
7805
+ invoiceMode?: InvoiceModeParams | undefined;
7770
7806
  append?: {
7771
7807
  subscriptionId: string;
7772
7808
  customerId: string;
@@ -7829,6 +7865,7 @@ declare function createFunnelClient(options: IndianaOptions & {
7829
7865
  offerId?: string | undefined;
7830
7866
  } | null;
7831
7867
  append?: boolean | undefined;
7868
+ invoiceMode?: boolean | undefined;
7832
7869
  } | null;
7833
7870
  } | undefined;
7834
7871
  runToken: string;
@@ -8342,7 +8379,7 @@ declare function createIndiana(options: IndianaOptions): {
8342
8379
  setup: {
8343
8380
  id: string;
8344
8381
  provider: "stripe";
8345
- status: "prepared" | "complete" | "expired";
8382
+ status: "complete" | "prepared" | "expired";
8346
8383
  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";
8347
8384
  makeDefault: boolean;
8348
8385
  url: string | null;
@@ -8377,7 +8414,7 @@ declare function createIndiana(options: IndianaOptions): {
8377
8414
  setup: {
8378
8415
  id: string;
8379
8416
  provider: "stripe";
8380
- status: "prepared" | "complete" | "expired";
8417
+ status: "complete" | "prepared" | "expired";
8381
8418
  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";
8382
8419
  makeDefault: boolean;
8383
8420
  url: string | null;
@@ -8449,6 +8486,7 @@ declare function createIndiana(options: IndianaOptions): {
8449
8486
  paymentBehavior?: "error_if_incomplete" | undefined;
8450
8487
  cancelAtPeriodEnd?: boolean | undefined;
8451
8488
  clearCancelAt?: true | undefined;
8489
+ billingCycleAnchorNow?: true | undefined;
8452
8490
  } | null;
8453
8491
  cancel: {
8454
8492
  prorate: false;
@@ -8471,11 +8509,13 @@ declare function createIndiana(options: IndianaOptions): {
8471
8509
  grooveUpdateId: string;
8472
8510
  grooveCustomerId: string;
8473
8511
  };
8512
+ resetBillingCycleAnchor?: true | undefined;
8474
8513
  } | null;
8475
8514
  release: {
8476
8515
  schedule: string;
8477
8516
  } | null;
8478
8517
  expiresAt: string;
8518
+ invoiceMode?: InvoiceModeParams | undefined;
8479
8519
  };
8480
8520
  carryOverBalances?: {
8481
8521
  enabled: true;
@@ -8548,6 +8588,7 @@ declare function createIndiana(options: IndianaOptions): {
8548
8588
  paymentBehavior?: "error_if_incomplete" | undefined;
8549
8589
  cancelAtPeriodEnd?: boolean | undefined;
8550
8590
  clearCancelAt?: true | undefined;
8591
+ billingCycleAnchorNow?: true | undefined;
8551
8592
  } | null;
8552
8593
  cancel: {
8553
8594
  prorate: false;
@@ -8570,12 +8611,15 @@ declare function createIndiana(options: IndianaOptions): {
8570
8611
  grooveUpdateId: string;
8571
8612
  grooveCustomerId: string;
8572
8613
  };
8614
+ resetBillingCycleAnchor?: true | undefined;
8573
8615
  } | null;
8574
8616
  release: {
8575
8617
  schedule: string;
8576
8618
  } | null;
8577
8619
  expiresAt: string;
8620
+ invoiceMode?: InvoiceModeParams | undefined;
8578
8621
  } | null;
8622
+ invoiceMode?: boolean | undefined;
8579
8623
  } | {
8580
8624
  operationId: string;
8581
8625
  membershipId: string;
@@ -8663,6 +8707,7 @@ declare function createIndiana(options: IndianaOptions): {
8663
8707
  paymentBehavior?: "error_if_incomplete" | undefined;
8664
8708
  cancelAtPeriodEnd?: boolean | undefined;
8665
8709
  clearCancelAt?: true | undefined;
8710
+ billingCycleAnchorNow?: true | undefined;
8666
8711
  } | null;
8667
8712
  cancel: {
8668
8713
  prorate: false;
@@ -8685,12 +8730,15 @@ declare function createIndiana(options: IndianaOptions): {
8685
8730
  grooveUpdateId: string;
8686
8731
  grooveCustomerId: string;
8687
8732
  };
8733
+ resetBillingCycleAnchor?: true | undefined;
8688
8734
  } | null;
8689
8735
  release: {
8690
8736
  schedule: string;
8691
8737
  } | null;
8692
8738
  expiresAt: string;
8739
+ invoiceMode?: InvoiceModeParams | undefined;
8693
8740
  } | null;
8741
+ invoiceMode?: boolean | undefined;
8694
8742
  } | {
8695
8743
  operationId: string;
8696
8744
  membershipId: string;
@@ -8747,7 +8795,7 @@ declare function createIndiana(options: IndianaOptions): {
8747
8795
  requestId: string;
8748
8796
  orderId: string;
8749
8797
  purchaseIntentId: string;
8750
- status: "created" | "pending" | "trialing" | "paid" | "cancelled" | "failed";
8798
+ status: "paid" | "created" | "pending" | "trialing" | "cancelled" | "failed";
8751
8799
  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";
8752
8800
  refunded: boolean;
8753
8801
  completion: {
@@ -8914,6 +8962,7 @@ declare function createIndiana(options: IndianaOptions): {
8914
8962
  grooveCustomerId: string;
8915
8963
  };
8916
8964
  expiresAt: string;
8965
+ invoiceMode?: InvoiceModeParams | undefined;
8917
8966
  append?: {
8918
8967
  subscriptionId: string;
8919
8968
  customerId: string;
@@ -8957,7 +9006,7 @@ declare function createIndiana(options: IndianaOptions): {
8957
9006
  operation: {
8958
9007
  operationId: string;
8959
9008
  orderId: string;
8960
- status: "pending" | "cancelled" | "failed" | "complete";
9009
+ status: "complete" | "pending" | "cancelled" | "failed";
8961
9010
  executor: "merchant" | "indiana";
8962
9011
  checkoutUrl: string | null;
8963
9012
  execution: {
@@ -9002,6 +9051,7 @@ declare function createIndiana(options: IndianaOptions): {
9002
9051
  grooveCustomerId: string;
9003
9052
  };
9004
9053
  expiresAt: string;
9054
+ invoiceMode?: InvoiceModeParams | undefined;
9005
9055
  append?: {
9006
9056
  subscriptionId: string;
9007
9057
  customerId: string;
@@ -9064,6 +9114,7 @@ declare function createIndiana(options: IndianaOptions): {
9064
9114
  offerId?: string | undefined;
9065
9115
  } | null;
9066
9116
  append?: boolean | undefined;
9117
+ invoiceMode?: boolean | undefined;
9067
9118
  };
9068
9119
  }>;
9069
9120
  readSubscriptionOperation(input: Omit<ApiInput<"readSubscriptionOperation">, "customerId">): Promise<{
@@ -9075,7 +9126,7 @@ declare function createIndiana(options: IndianaOptions): {
9075
9126
  operation: {
9076
9127
  operationId: string;
9077
9128
  orderId: string;
9078
- status: "pending" | "cancelled" | "failed" | "complete";
9129
+ status: "complete" | "pending" | "cancelled" | "failed";
9079
9130
  executor: "merchant" | "indiana";
9080
9131
  checkoutUrl: string | null;
9081
9132
  execution: {
@@ -9120,6 +9171,7 @@ declare function createIndiana(options: IndianaOptions): {
9120
9171
  grooveCustomerId: string;
9121
9172
  };
9122
9173
  expiresAt: string;
9174
+ invoiceMode?: InvoiceModeParams | undefined;
9123
9175
  append?: {
9124
9176
  subscriptionId: string;
9125
9177
  customerId: string;
@@ -9182,6 +9234,7 @@ declare function createIndiana(options: IndianaOptions): {
9182
9234
  offerId?: string | undefined;
9183
9235
  } | null;
9184
9236
  append?: boolean | undefined;
9237
+ invoiceMode?: boolean | undefined;
9185
9238
  };
9186
9239
  }>;
9187
9240
  checkEntitlement(input: Omit<ApiInput<"checkEntitlement">, "customerId">): Promise<{
@@ -9670,7 +9723,7 @@ declare function createIndiana(options: IndianaOptions): {
9670
9723
  occurredAt: string;
9671
9724
  } | {
9672
9725
  type: "transaction";
9673
- purpose: "product" | "invoice";
9726
+ purpose: "invoice" | "product";
9674
9727
  productVersionId: string | null;
9675
9728
  productName: string | null;
9676
9729
  productVersion: number | null;
@@ -9693,7 +9746,7 @@ declare function createIndiana(options: IndianaOptions): {
9693
9746
  occurredAt: string;
9694
9747
  } | {
9695
9748
  type: "source";
9696
- reason: "rollover" | "membership" | "trial" | "topup" | "seat" | "manual" | "upgrade_carry";
9749
+ reason: "rollover" | "membership" | "trial" | "manual" | "topup" | "seat" | "upgrade_carry";
9697
9750
  quantity: string;
9698
9751
  unlimited: boolean;
9699
9752
  status: "active" | "revoked" | "expired" | "scheduled" | "unavailable";
@@ -9733,7 +9786,7 @@ declare function createIndiana(options: IndianaOptions): {
9733
9786
  nextCursor: {
9734
9787
  at: string;
9735
9788
  id: string;
9736
- type: "source" | "usage" | "invoice" | "debt" | "transaction" | "settlement";
9789
+ type: "invoice" | "source" | "usage" | "debt" | "transaction" | "settlement";
9737
9790
  } | null;
9738
9791
  };
9739
9792
  }>;
@@ -9746,9 +9799,9 @@ declare function createIndiana(options: IndianaOptions): {
9746
9799
  detail: {
9747
9800
  invoice: {
9748
9801
  id: string;
9749
- sourceKind: "usage" | "product";
9802
+ sourceKind: "usage" | "product" | "manual";
9750
9803
  providerInvoiceId: string | null;
9751
- status: "void" | "pending" | "paid" | "failed" | "accruing" | "open";
9804
+ status: "void" | "open" | "paid" | "pending" | "failed" | "accruing";
9752
9805
  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";
9753
9806
  startsAt: string | null;
9754
9807
  endsAt: string | null;
@@ -10047,6 +10100,7 @@ declare function createIndiana(options: IndianaOptions): {
10047
10100
  basis: "usage" | "credits";
10048
10101
  limit: string | null;
10049
10102
  thresholds: number[];
10103
+ anchor?: "billing_cycle" | "utc" | undefined;
10050
10104
  filter?: {
10051
10105
  [k: string]: string;
10052
10106
  } | undefined;
@@ -10065,6 +10119,7 @@ declare function createIndiana(options: IndianaOptions): {
10065
10119
  limit: string | null;
10066
10120
  thresholds: number[];
10067
10121
  notifiedThresholds: number[];
10122
+ anchor?: "billing_cycle" | "utc" | undefined;
10068
10123
  filter?: {
10069
10124
  [k: string]: string;
10070
10125
  } | undefined;
@@ -10359,9 +10414,9 @@ declare function createIndiana(options: IndianaOptions): {
10359
10414
  invoices: {
10360
10415
  rows: {
10361
10416
  id: string;
10362
- sourceKind: "usage" | "product";
10417
+ sourceKind: "usage" | "product" | "manual";
10363
10418
  providerInvoiceId: string | null;
10364
- status: "void" | "pending" | "paid" | "failed" | "accruing" | "open";
10419
+ status: "void" | "open" | "paid" | "pending" | "failed" | "accruing";
10365
10420
  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";
10366
10421
  startsAt: string | null;
10367
10422
  endsAt: string | null;
@@ -10421,9 +10476,9 @@ declare function createIndiana(options: IndianaOptions): {
10421
10476
  };
10422
10477
  invoice: {
10423
10478
  id: string;
10424
- sourceKind: "usage" | "product";
10479
+ sourceKind: "usage" | "product" | "manual";
10425
10480
  providerInvoiceId: string | null;
10426
- status: "void" | "pending" | "paid" | "failed" | "accruing" | "open";
10481
+ status: "void" | "open" | "paid" | "pending" | "failed" | "accruing";
10427
10482
  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";
10428
10483
  startsAt: string | null;
10429
10484
  endsAt: string | null;
@@ -10502,7 +10557,7 @@ declare function createIndiana(options: IndianaOptions): {
10502
10557
  type: "forever";
10503
10558
  };
10504
10559
  renewalAmountMinor: number;
10505
- status: "created" | "pending" | "trialing" | "paid" | "cancelled" | "failed";
10560
+ status: "paid" | "created" | "pending" | "trialing" | "cancelled" | "failed";
10506
10561
  url: string | null;
10507
10562
  } | {
10508
10563
  type: "subscription";
@@ -10519,7 +10574,7 @@ declare function createIndiana(options: IndianaOptions): {
10519
10574
  type: "forever";
10520
10575
  };
10521
10576
  renewalAmountMinor: number;
10522
- status: "pending" | "failed" | "applied" | "running";
10577
+ status: "running" | "pending" | "failed" | "applied";
10523
10578
  }>;
10524
10579
  createReferralCode(input: {
10525
10580
  programId: string;