@tinkerlandai/indiana-sdk 0.3.1 → 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.
- package/CHANGELOG.md +19 -0
- package/README.md +18 -13
- package/README.zh-CN.md +7 -4
- package/THIRD_PARTY_NOTICES.md +27 -0
- package/dist/ai-usage-BzydP8eN.d.ts +11085 -0
- package/dist/chunk-3OSMEG44.js +17 -0
- package/dist/chunk-GA6X57BO.js +1 -0
- package/dist/chunk-GTBD4BJ4.js +11 -0
- package/dist/chunk-QUW4UOKZ.js +4 -0
- package/dist/chunk-RMFH5TWV.js +1 -0
- package/dist/chunk-YNUVRZRQ.js +1 -0
- package/dist/chunk-ZT523F45.js +1 -0
- package/dist/funnel-runtime-host-RZRB2CY6.js +1 -0
- package/dist/{funnel-runtime-start-CQhy2kx1.d.ts → funnel-runtime-start-JHA9ES24.d.ts} +68 -29
- package/dist/index.d.ts +109 -53
- package/dist/index.js +1 -1
- package/dist/native-shell.js +1 -1
- package/dist/openrouter.d.ts +3 -2
- package/dist/openrouter.js +1 -1
- package/dist/page.d.ts +13 -12
- package/dist/page.js +1 -4
- package/dist/{paywall-Y3FIG43H.js → paywall-MYBEOVTQ.js} +1 -1
- package/dist/popup.d.ts +254 -1
- package/dist/popup.js +8 -7
- package/dist/{screen-Keau_Qa2.d.ts → screen-16d-xADb.d.ts} +354 -463
- package/dist/server.d.ts +4 -3
- package/dist/server.js +1 -1
- package/dist/src-E2GXK6WA.js +1 -0
- package/dist/visual-editor-agent-FDCV3BXP.js +1 -0
- package/dist/visual.d.ts +38 -0
- package/dist/visual.js +1 -0
- package/package.json +8 -2
- package/dist/ai-usage-D_mBF5Gp.d.ts +0 -9942
- package/dist/chunk-CRJJ4EA2.js +0 -1
- package/dist/chunk-D37O6FAW.js +0 -11
- package/dist/chunk-G5ZGWOLJ.js +0 -1
- package/dist/chunk-MJG7X7LM.js +0 -17
- package/dist/funnel-runtime-host-X7AGEGHN.js +0 -1
- package/dist/src-RZJKF6LQ.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-
|
|
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-
|
|
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-
|
|
8
|
-
import { S as StackNode } from './screen-
|
|
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" | "
|
|
172
|
-
status: "
|
|
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: "
|
|
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: "
|
|
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" | "
|
|
1056
|
-
status: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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" | "
|
|
2139
|
-
status: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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" | "
|
|
3600
|
-
status: "
|
|
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: "
|
|
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: "
|
|
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" | "
|
|
4543
|
-
status: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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" | "
|
|
5685
|
-
status: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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" | "
|
|
6771
|
-
status: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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;
|
|
@@ -8331,6 +8368,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
8331
8368
|
inserted: number;
|
|
8332
8369
|
duplicates: number;
|
|
8333
8370
|
rejected: number;
|
|
8371
|
+
skipped: number;
|
|
8334
8372
|
}>;
|
|
8335
8373
|
setupPayment(input: Omit<ApiInput<"setupPayment">, "customerId">): Promise<{
|
|
8336
8374
|
requestId: string;
|
|
@@ -8341,7 +8379,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
8341
8379
|
setup: {
|
|
8342
8380
|
id: string;
|
|
8343
8381
|
provider: "stripe";
|
|
8344
|
-
status: "
|
|
8382
|
+
status: "complete" | "prepared" | "expired";
|
|
8345
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";
|
|
8346
8384
|
makeDefault: boolean;
|
|
8347
8385
|
url: string | null;
|
|
@@ -8376,7 +8414,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
8376
8414
|
setup: {
|
|
8377
8415
|
id: string;
|
|
8378
8416
|
provider: "stripe";
|
|
8379
|
-
status: "
|
|
8417
|
+
status: "complete" | "prepared" | "expired";
|
|
8380
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";
|
|
8381
8419
|
makeDefault: boolean;
|
|
8382
8420
|
url: string | null;
|
|
@@ -8448,6 +8486,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
8448
8486
|
paymentBehavior?: "error_if_incomplete" | undefined;
|
|
8449
8487
|
cancelAtPeriodEnd?: boolean | undefined;
|
|
8450
8488
|
clearCancelAt?: true | undefined;
|
|
8489
|
+
billingCycleAnchorNow?: true | undefined;
|
|
8451
8490
|
} | null;
|
|
8452
8491
|
cancel: {
|
|
8453
8492
|
prorate: false;
|
|
@@ -8470,11 +8509,13 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
8470
8509
|
grooveUpdateId: string;
|
|
8471
8510
|
grooveCustomerId: string;
|
|
8472
8511
|
};
|
|
8512
|
+
resetBillingCycleAnchor?: true | undefined;
|
|
8473
8513
|
} | null;
|
|
8474
8514
|
release: {
|
|
8475
8515
|
schedule: string;
|
|
8476
8516
|
} | null;
|
|
8477
8517
|
expiresAt: string;
|
|
8518
|
+
invoiceMode?: InvoiceModeParams | undefined;
|
|
8478
8519
|
};
|
|
8479
8520
|
carryOverBalances?: {
|
|
8480
8521
|
enabled: true;
|
|
@@ -8547,6 +8588,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
8547
8588
|
paymentBehavior?: "error_if_incomplete" | undefined;
|
|
8548
8589
|
cancelAtPeriodEnd?: boolean | undefined;
|
|
8549
8590
|
clearCancelAt?: true | undefined;
|
|
8591
|
+
billingCycleAnchorNow?: true | undefined;
|
|
8550
8592
|
} | null;
|
|
8551
8593
|
cancel: {
|
|
8552
8594
|
prorate: false;
|
|
@@ -8569,12 +8611,15 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
8569
8611
|
grooveUpdateId: string;
|
|
8570
8612
|
grooveCustomerId: string;
|
|
8571
8613
|
};
|
|
8614
|
+
resetBillingCycleAnchor?: true | undefined;
|
|
8572
8615
|
} | null;
|
|
8573
8616
|
release: {
|
|
8574
8617
|
schedule: string;
|
|
8575
8618
|
} | null;
|
|
8576
8619
|
expiresAt: string;
|
|
8620
|
+
invoiceMode?: InvoiceModeParams | undefined;
|
|
8577
8621
|
} | null;
|
|
8622
|
+
invoiceMode?: boolean | undefined;
|
|
8578
8623
|
} | {
|
|
8579
8624
|
operationId: string;
|
|
8580
8625
|
membershipId: string;
|
|
@@ -8662,6 +8707,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
8662
8707
|
paymentBehavior?: "error_if_incomplete" | undefined;
|
|
8663
8708
|
cancelAtPeriodEnd?: boolean | undefined;
|
|
8664
8709
|
clearCancelAt?: true | undefined;
|
|
8710
|
+
billingCycleAnchorNow?: true | undefined;
|
|
8665
8711
|
} | null;
|
|
8666
8712
|
cancel: {
|
|
8667
8713
|
prorate: false;
|
|
@@ -8684,12 +8730,15 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
8684
8730
|
grooveUpdateId: string;
|
|
8685
8731
|
grooveCustomerId: string;
|
|
8686
8732
|
};
|
|
8733
|
+
resetBillingCycleAnchor?: true | undefined;
|
|
8687
8734
|
} | null;
|
|
8688
8735
|
release: {
|
|
8689
8736
|
schedule: string;
|
|
8690
8737
|
} | null;
|
|
8691
8738
|
expiresAt: string;
|
|
8739
|
+
invoiceMode?: InvoiceModeParams | undefined;
|
|
8692
8740
|
} | null;
|
|
8741
|
+
invoiceMode?: boolean | undefined;
|
|
8693
8742
|
} | {
|
|
8694
8743
|
operationId: string;
|
|
8695
8744
|
membershipId: string;
|
|
@@ -8746,7 +8795,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
8746
8795
|
requestId: string;
|
|
8747
8796
|
orderId: string;
|
|
8748
8797
|
purchaseIntentId: string;
|
|
8749
|
-
status: "
|
|
8798
|
+
status: "paid" | "created" | "pending" | "trialing" | "cancelled" | "failed";
|
|
8750
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";
|
|
8751
8800
|
refunded: boolean;
|
|
8752
8801
|
completion: {
|
|
@@ -8913,6 +8962,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
8913
8962
|
grooveCustomerId: string;
|
|
8914
8963
|
};
|
|
8915
8964
|
expiresAt: string;
|
|
8965
|
+
invoiceMode?: InvoiceModeParams | undefined;
|
|
8916
8966
|
append?: {
|
|
8917
8967
|
subscriptionId: string;
|
|
8918
8968
|
customerId: string;
|
|
@@ -8956,7 +9006,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
8956
9006
|
operation: {
|
|
8957
9007
|
operationId: string;
|
|
8958
9008
|
orderId: string;
|
|
8959
|
-
status: "
|
|
9009
|
+
status: "complete" | "pending" | "cancelled" | "failed";
|
|
8960
9010
|
executor: "merchant" | "indiana";
|
|
8961
9011
|
checkoutUrl: string | null;
|
|
8962
9012
|
execution: {
|
|
@@ -9001,6 +9051,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
9001
9051
|
grooveCustomerId: string;
|
|
9002
9052
|
};
|
|
9003
9053
|
expiresAt: string;
|
|
9054
|
+
invoiceMode?: InvoiceModeParams | undefined;
|
|
9004
9055
|
append?: {
|
|
9005
9056
|
subscriptionId: string;
|
|
9006
9057
|
customerId: string;
|
|
@@ -9063,6 +9114,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
9063
9114
|
offerId?: string | undefined;
|
|
9064
9115
|
} | null;
|
|
9065
9116
|
append?: boolean | undefined;
|
|
9117
|
+
invoiceMode?: boolean | undefined;
|
|
9066
9118
|
};
|
|
9067
9119
|
}>;
|
|
9068
9120
|
readSubscriptionOperation(input: Omit<ApiInput<"readSubscriptionOperation">, "customerId">): Promise<{
|
|
@@ -9074,7 +9126,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
9074
9126
|
operation: {
|
|
9075
9127
|
operationId: string;
|
|
9076
9128
|
orderId: string;
|
|
9077
|
-
status: "
|
|
9129
|
+
status: "complete" | "pending" | "cancelled" | "failed";
|
|
9078
9130
|
executor: "merchant" | "indiana";
|
|
9079
9131
|
checkoutUrl: string | null;
|
|
9080
9132
|
execution: {
|
|
@@ -9119,6 +9171,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
9119
9171
|
grooveCustomerId: string;
|
|
9120
9172
|
};
|
|
9121
9173
|
expiresAt: string;
|
|
9174
|
+
invoiceMode?: InvoiceModeParams | undefined;
|
|
9122
9175
|
append?: {
|
|
9123
9176
|
subscriptionId: string;
|
|
9124
9177
|
customerId: string;
|
|
@@ -9181,6 +9234,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
9181
9234
|
offerId?: string | undefined;
|
|
9182
9235
|
} | null;
|
|
9183
9236
|
append?: boolean | undefined;
|
|
9237
|
+
invoiceMode?: boolean | undefined;
|
|
9184
9238
|
};
|
|
9185
9239
|
}>;
|
|
9186
9240
|
checkEntitlement(input: Omit<ApiInput<"checkEntitlement">, "customerId">): Promise<{
|
|
@@ -9669,7 +9723,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
9669
9723
|
occurredAt: string;
|
|
9670
9724
|
} | {
|
|
9671
9725
|
type: "transaction";
|
|
9672
|
-
purpose: "
|
|
9726
|
+
purpose: "invoice" | "product";
|
|
9673
9727
|
productVersionId: string | null;
|
|
9674
9728
|
productName: string | null;
|
|
9675
9729
|
productVersion: number | null;
|
|
@@ -9692,7 +9746,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
9692
9746
|
occurredAt: string;
|
|
9693
9747
|
} | {
|
|
9694
9748
|
type: "source";
|
|
9695
|
-
reason: "rollover" | "membership" | "trial" | "
|
|
9749
|
+
reason: "rollover" | "membership" | "trial" | "manual" | "topup" | "seat" | "upgrade_carry";
|
|
9696
9750
|
quantity: string;
|
|
9697
9751
|
unlimited: boolean;
|
|
9698
9752
|
status: "active" | "revoked" | "expired" | "scheduled" | "unavailable";
|
|
@@ -9732,7 +9786,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
9732
9786
|
nextCursor: {
|
|
9733
9787
|
at: string;
|
|
9734
9788
|
id: string;
|
|
9735
|
-
type: "
|
|
9789
|
+
type: "invoice" | "source" | "usage" | "debt" | "transaction" | "settlement";
|
|
9736
9790
|
} | null;
|
|
9737
9791
|
};
|
|
9738
9792
|
}>;
|
|
@@ -9745,9 +9799,9 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
9745
9799
|
detail: {
|
|
9746
9800
|
invoice: {
|
|
9747
9801
|
id: string;
|
|
9748
|
-
sourceKind: "usage" | "product";
|
|
9802
|
+
sourceKind: "usage" | "product" | "manual";
|
|
9749
9803
|
providerInvoiceId: string | null;
|
|
9750
|
-
status: "void" | "
|
|
9804
|
+
status: "void" | "open" | "paid" | "pending" | "failed" | "accruing";
|
|
9751
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";
|
|
9752
9806
|
startsAt: string | null;
|
|
9753
9807
|
endsAt: string | null;
|
|
@@ -10046,6 +10100,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
10046
10100
|
basis: "usage" | "credits";
|
|
10047
10101
|
limit: string | null;
|
|
10048
10102
|
thresholds: number[];
|
|
10103
|
+
anchor?: "billing_cycle" | "utc" | undefined;
|
|
10049
10104
|
filter?: {
|
|
10050
10105
|
[k: string]: string;
|
|
10051
10106
|
} | undefined;
|
|
@@ -10064,6 +10119,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
10064
10119
|
limit: string | null;
|
|
10065
10120
|
thresholds: number[];
|
|
10066
10121
|
notifiedThresholds: number[];
|
|
10122
|
+
anchor?: "billing_cycle" | "utc" | undefined;
|
|
10067
10123
|
filter?: {
|
|
10068
10124
|
[k: string]: string;
|
|
10069
10125
|
} | undefined;
|
|
@@ -10358,9 +10414,9 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
10358
10414
|
invoices: {
|
|
10359
10415
|
rows: {
|
|
10360
10416
|
id: string;
|
|
10361
|
-
sourceKind: "usage" | "product";
|
|
10417
|
+
sourceKind: "usage" | "product" | "manual";
|
|
10362
10418
|
providerInvoiceId: string | null;
|
|
10363
|
-
status: "void" | "
|
|
10419
|
+
status: "void" | "open" | "paid" | "pending" | "failed" | "accruing";
|
|
10364
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";
|
|
10365
10421
|
startsAt: string | null;
|
|
10366
10422
|
endsAt: string | null;
|
|
@@ -10420,9 +10476,9 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
10420
10476
|
};
|
|
10421
10477
|
invoice: {
|
|
10422
10478
|
id: string;
|
|
10423
|
-
sourceKind: "usage" | "product";
|
|
10479
|
+
sourceKind: "usage" | "product" | "manual";
|
|
10424
10480
|
providerInvoiceId: string | null;
|
|
10425
|
-
status: "void" | "
|
|
10481
|
+
status: "void" | "open" | "paid" | "pending" | "failed" | "accruing";
|
|
10426
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";
|
|
10427
10483
|
startsAt: string | null;
|
|
10428
10484
|
endsAt: string | null;
|
|
@@ -10501,7 +10557,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
10501
10557
|
type: "forever";
|
|
10502
10558
|
};
|
|
10503
10559
|
renewalAmountMinor: number;
|
|
10504
|
-
status: "
|
|
10560
|
+
status: "paid" | "created" | "pending" | "trialing" | "cancelled" | "failed";
|
|
10505
10561
|
url: string | null;
|
|
10506
10562
|
} | {
|
|
10507
10563
|
type: "subscription";
|
|
@@ -10518,7 +10574,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
10518
10574
|
type: "forever";
|
|
10519
10575
|
};
|
|
10520
10576
|
renewalAmountMinor: number;
|
|
10521
|
-
status: "
|
|
10577
|
+
status: "running" | "pending" | "failed" | "applied";
|
|
10522
10578
|
}>;
|
|
10523
10579
|
createReferralCode(input: {
|
|
10524
10580
|
programId: string;
|