@tinkerlandai/indiana-sdk 0.8.5 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +20 -41
- package/README.zh-CN.md +17 -17
- package/dist/{ai-usage-DUlre7JC.d.ts → ai-usage-DMNKvCiq.d.ts} +3 -3
- package/dist/{api-XDc4pRlN.d.ts → api--Zf0gxfj.d.ts} +128 -124
- package/dist/chunk-3PZ4Y6UD.js +17 -0
- package/dist/chunk-5O667MKA.js +1 -0
- package/dist/chunk-65TBYVCS.js +1 -0
- package/dist/chunk-67A7I6MB.js +1 -0
- package/dist/chunk-7DXL3LHT.js +1 -0
- package/dist/chunk-CCQHYQ4P.js +1 -0
- package/dist/chunk-CPLLMISZ.js +1 -0
- package/dist/chunk-G23YNWWI.js +1 -0
- package/dist/chunk-G56XGVMS.js +1 -0
- package/dist/chunk-L7LKE3MG.js +173 -0
- package/dist/chunk-NH2PTTNK.js +2 -0
- package/dist/chunk-PK5HYUHD.js +1 -0
- package/dist/chunk-SEW4YVR7.js +1 -0
- package/dist/chunk-UYSOTMY3.js +1 -0
- package/dist/{chunk-WWUUVURR.js → chunk-WSVH6IQA.js} +1 -1
- package/dist/chunk-YZSQDZXW.js +4 -0
- package/dist/{configuration-sync-Ce3dShy7.d.ts → configuration-sync-E98CqVwh.d.ts} +6 -5
- package/dist/content-3LOJVYQO.js +1 -0
- package/dist/{errors-C8lRYZ0n.d.ts → errors-0TSUIbUi.d.ts} +12 -1
- package/dist/{funnel-local-client-CUGavICI.d.ts → funnel-local-client-BjPwXlQb.d.ts} +550 -260
- package/dist/funnel-runtime-host-NYHKQT6T.js +1 -0
- package/dist/index.d.ts +689 -223
- package/dist/index.js +1 -1
- package/dist/native-shell.js +1 -1
- package/dist/openrouter.d.ts +3 -3
- package/dist/openrouter.js +1 -1
- package/dist/page.d.ts +6 -6
- package/dist/page.js +1 -1
- package/dist/paywall-ISCYOGPZ.js +1 -0
- package/dist/popup.d.ts +1 -1
- package/dist/popup.js +1 -1
- package/dist/react-native.d.ts +122 -99
- package/dist/react-native.js +1 -1
- package/dist/screen-renderer-A6VYE2QL.js +1 -0
- package/dist/server.d.ts +58 -58
- package/dist/server.js +1 -1
- package/dist/visual.d.ts +36 -1
- package/dist/visual.js +1 -2
- package/package.json +1 -1
- package/dist/chunk-3KQHKRZJ.js +0 -1
- package/dist/chunk-6A5WWFNS.js +0 -10
- package/dist/chunk-A3XRIG53.js +0 -1
- package/dist/chunk-BUDTHBFF.js +0 -173
- package/dist/chunk-FGIGKO7A.js +0 -1
- package/dist/chunk-GRLMT5PR.js +0 -1
- package/dist/chunk-HEBQUICQ.js +0 -4
- package/dist/chunk-KQCTDXVD.js +0 -17
- package/dist/chunk-LMR2TM3X.js +0 -1
- package/dist/chunk-OBYJWIRB.js +0 -1
- package/dist/chunk-RRII2DMC.js +0 -1
- package/dist/chunk-SOQO2RDZ.js +0 -1
- package/dist/chunk-SUXAWRR6.js +0 -1
- package/dist/chunk-VVV3JNS3.js +0 -1
- package/dist/content-DDMDNRCV.js +0 -1
- package/dist/funnel-runtime-host-QK6WDRPS.js +0 -1
- package/dist/paywall-4QT3JYD4.js +0 -1
- package/dist/screen-renderer-DLXDQQKK.js +0 -1
- package/dist/src-EG7RWDDY.js +0 -1
- package/dist/{screen-BpAejkn0.d.ts → screen-BITZ11jn.d.ts} +18 -18
package/dist/index.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ import { z } from 'zod';
|
|
|
3
3
|
import { C as CouponInput, S as ScreenAnswers, s as screenInputBindingsSchema, a as SurfaceData, b as CustomerDataIntent, O as Offer } from './customer-page-9B97Qdt_.js';
|
|
4
4
|
export { c as OfferUnavailableReason } from './customer-page-9B97Qdt_.js';
|
|
5
5
|
import { J as JsonValue, F as FeatureResult } from './growth-rules-B4YYy64R.js';
|
|
6
|
-
import { S as StackNode } from './screen-
|
|
7
|
-
import { F as FunnelRuntimeResponse, a as FunnelRunView, b as FunnelMutation, c as FunnelPurchaseRecovery, d as FunnelSegmentPrediction, P as PaywallDelivery, e as PaywallResolution, f as FunnelDataQueries, I as IndianaOptions, g as PaywallSession, S as SubscriptionOperation, h as FeatureClientOptions, R as RemoteFeatureResult, i as FunnelCommandStorage, j as FunnelStartInput } from './funnel-local-client-
|
|
8
|
-
export { k as FeatureClient, l as FunnelNodeEvaluationContext, m as FunnelPendingEntry, L as LocalFunnelClient, n as LocalFunnelClientOptions, o as PaywallPurchaseInput, p as PaywallStartInput, q as
|
|
9
|
-
import { I as InvoiceModeParams, A as ApiInput, O as OfferingItem } from './api
|
|
10
|
-
import { C as ConfigurationSync } from './configuration-sync-
|
|
11
|
-
export { a as ConfigurationStorage, b as ConfigurationSyncOptions, c as createConfigurationSync } from './configuration-sync-
|
|
12
|
-
import { P as PushAddressObservation } from './errors-
|
|
13
|
-
export { I as IndianaError, a as PushHost, b as PushJournal } from './errors-
|
|
6
|
+
import { S as StackNode } from './screen-BITZ11jn.js';
|
|
7
|
+
import { F as FunnelRuntimeResponse, a as FunnelRunView, b as FunnelMutation, c as FunnelPurchaseRecovery, d as FunnelSegmentPrediction, P as PaywallDelivery, e as PaywallResolution, f as FunnelDataQueries, I as IndianaOptions, g as PaywallSession, S as SubscriptionOperation, h as FeatureClientOptions, R as RemoteFeatureResult, i as FunnelCommandStorage, j as FunnelStartInput } from './funnel-local-client-BjPwXlQb.js';
|
|
8
|
+
export { k as FeatureClient, l as FunnelNodeEvaluationContext, m as FunnelPendingEntry, L as LocalFunnelClient, n as LocalFunnelClientOptions, o as PaywallPurchaseInput, p as PaywallStartInput, q as SessionCredentials, r as createFeatureClient, s as createLocalFunnelClient, t as createPaywallSession, u as evaluateFunnelNode } from './funnel-local-client-BjPwXlQb.js';
|
|
9
|
+
import { I as InvoiceModeParams, A as ApiInput, O as OfferingItem } from './api--Zf0gxfj.js';
|
|
10
|
+
import { C as ConfigurationSync } from './configuration-sync-E98CqVwh.js';
|
|
11
|
+
export { a as ConfigurationStorage, b as ConfigurationSyncOptions, c as createConfigurationSync } from './configuration-sync-E98CqVwh.js';
|
|
12
|
+
import { C as CustomerSession, P as PushAddressObservation } from './errors-0TSUIbUi.js';
|
|
13
|
+
export { I as IndianaError, a as PushHost, b as PushJournal } from './errors-0TSUIbUi.js';
|
|
14
14
|
import 'zod/v4';
|
|
15
15
|
|
|
16
16
|
/** Currency always comes from business data; locale only controls notation. No currency conversion. */
|
|
@@ -298,6 +298,156 @@ declare const nativeRestoreCommandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
298
298
|
}, z.core.$strict>]>;
|
|
299
299
|
type NativeRestoreCommand = z.infer<typeof nativeRestoreCommandSchema>;
|
|
300
300
|
|
|
301
|
+
declare const funnelPageExperimentsResponseSchema: z.ZodObject<{
|
|
302
|
+
scope: z.ZodObject<{
|
|
303
|
+
projectId: z.ZodString;
|
|
304
|
+
environment: z.ZodEnum<{
|
|
305
|
+
sandbox: "sandbox";
|
|
306
|
+
live: "live";
|
|
307
|
+
}>;
|
|
308
|
+
}, z.core.$strict>;
|
|
309
|
+
runId: z.ZodUUID;
|
|
310
|
+
assignments: z.ZodArray<z.ZodObject<{
|
|
311
|
+
experimentId: z.ZodUUID;
|
|
312
|
+
experimentKey: z.ZodString;
|
|
313
|
+
variationKey: z.ZodString;
|
|
314
|
+
inExperiment: z.ZodBoolean;
|
|
315
|
+
generation: z.ZodString;
|
|
316
|
+
receiptId: z.ZodUUID;
|
|
317
|
+
}, z.core.$strict>>;
|
|
318
|
+
payload: z.ZodObject<{
|
|
319
|
+
trackExposures: z.ZodBoolean;
|
|
320
|
+
environmentId: z.ZodUUID;
|
|
321
|
+
generation: z.ZodString;
|
|
322
|
+
experiments: z.ZodArray<z.ZodObject<{
|
|
323
|
+
name: z.ZodOptional<z.ZodString>;
|
|
324
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
325
|
+
attribute: z.ZodOptional<z.ZodString>;
|
|
326
|
+
seed: z.ZodString;
|
|
327
|
+
hashVersion: z.ZodLiteral<2>;
|
|
328
|
+
ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
329
|
+
}, z.core.$strict>>>;
|
|
330
|
+
key: z.ZodString;
|
|
331
|
+
condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
332
|
+
force: z.ZodOptional<z.ZodNumber>;
|
|
333
|
+
hashAttribute: z.ZodOptional<z.ZodString>;
|
|
334
|
+
seed: z.ZodOptional<z.ZodString>;
|
|
335
|
+
hashVersion: z.ZodOptional<z.ZodLiteral<2>>;
|
|
336
|
+
ranges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
337
|
+
urlPatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
338
|
+
include: z.ZodBoolean;
|
|
339
|
+
type: z.ZodEnum<{
|
|
340
|
+
regex: "regex";
|
|
341
|
+
simple: "simple";
|
|
342
|
+
}>;
|
|
343
|
+
pattern: z.ZodString;
|
|
344
|
+
}, z.core.$strict>>>;
|
|
345
|
+
persistQueryString: z.ZodOptional<z.ZodBoolean>;
|
|
346
|
+
parentConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
347
|
+
id: z.ZodString;
|
|
348
|
+
condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
349
|
+
gate: z.ZodOptional<z.ZodBoolean>;
|
|
350
|
+
}, z.core.$strict>>>;
|
|
351
|
+
weights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
352
|
+
coverage: z.ZodOptional<z.ZodNumber>;
|
|
353
|
+
fallbackAttribute: z.ZodOptional<z.ZodString>;
|
|
354
|
+
disableStickyBucketing: z.ZodOptional<z.ZodBoolean>;
|
|
355
|
+
bucketVersion: z.ZodOptional<z.ZodNumber>;
|
|
356
|
+
minBucketVersion: z.ZodOptional<z.ZodNumber>;
|
|
357
|
+
meta: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
358
|
+
key: z.ZodOptional<z.ZodString>;
|
|
359
|
+
name: z.ZodOptional<z.ZodString>;
|
|
360
|
+
passthrough: z.ZodOptional<z.ZodBoolean>;
|
|
361
|
+
}, z.core.$strict>>>;
|
|
362
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
363
|
+
changeId: z.ZodString;
|
|
364
|
+
variations: z.ZodTuple<[z.ZodObject<{
|
|
365
|
+
css: z.ZodDefault<z.ZodString>;
|
|
366
|
+
js: z.ZodDefault<z.ZodString>;
|
|
367
|
+
domMutations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
368
|
+
selector: z.ZodString;
|
|
369
|
+
action: z.ZodEnum<{
|
|
370
|
+
set: "set";
|
|
371
|
+
remove: "remove";
|
|
372
|
+
append: "append";
|
|
373
|
+
}>;
|
|
374
|
+
attribute: z.ZodString;
|
|
375
|
+
value: z.ZodOptional<z.ZodString>;
|
|
376
|
+
parentSelector: z.ZodOptional<z.ZodString>;
|
|
377
|
+
insertBeforeSelector: z.ZodOptional<z.ZodString>;
|
|
378
|
+
}, z.core.$strict>>>;
|
|
379
|
+
renderGuard: z.ZodOptional<z.ZodObject<{
|
|
380
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
381
|
+
renderKey: z.ZodString;
|
|
382
|
+
routeTemplate: z.ZodString;
|
|
383
|
+
selectors: z.ZodArray<z.ZodString>;
|
|
384
|
+
present: z.ZodArray<z.ZodNumber>;
|
|
385
|
+
absent: z.ZodArray<z.ZodNumber>;
|
|
386
|
+
}, z.core.$strict>>;
|
|
387
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
388
|
+
css: z.ZodDefault<z.ZodString>;
|
|
389
|
+
js: z.ZodDefault<z.ZodString>;
|
|
390
|
+
domMutations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
391
|
+
selector: z.ZodString;
|
|
392
|
+
action: z.ZodEnum<{
|
|
393
|
+
set: "set";
|
|
394
|
+
remove: "remove";
|
|
395
|
+
append: "append";
|
|
396
|
+
}>;
|
|
397
|
+
attribute: z.ZodString;
|
|
398
|
+
value: z.ZodOptional<z.ZodString>;
|
|
399
|
+
parentSelector: z.ZodOptional<z.ZodString>;
|
|
400
|
+
insertBeforeSelector: z.ZodOptional<z.ZodString>;
|
|
401
|
+
}, z.core.$strict>>>;
|
|
402
|
+
renderGuard: z.ZodOptional<z.ZodObject<{
|
|
403
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
404
|
+
renderKey: z.ZodString;
|
|
405
|
+
routeTemplate: z.ZodString;
|
|
406
|
+
selectors: z.ZodArray<z.ZodString>;
|
|
407
|
+
present: z.ZodArray<z.ZodNumber>;
|
|
408
|
+
absent: z.ZodArray<z.ZodNumber>;
|
|
409
|
+
}, z.core.$strict>>;
|
|
410
|
+
}, z.core.$strict>], z.ZodObject<{
|
|
411
|
+
css: z.ZodDefault<z.ZodString>;
|
|
412
|
+
js: z.ZodDefault<z.ZodString>;
|
|
413
|
+
domMutations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
414
|
+
selector: z.ZodString;
|
|
415
|
+
action: z.ZodEnum<{
|
|
416
|
+
set: "set";
|
|
417
|
+
remove: "remove";
|
|
418
|
+
append: "append";
|
|
419
|
+
}>;
|
|
420
|
+
attribute: z.ZodString;
|
|
421
|
+
value: z.ZodOptional<z.ZodString>;
|
|
422
|
+
parentSelector: z.ZodOptional<z.ZodString>;
|
|
423
|
+
insertBeforeSelector: z.ZodOptional<z.ZodString>;
|
|
424
|
+
}, z.core.$strict>>>;
|
|
425
|
+
renderGuard: z.ZodOptional<z.ZodObject<{
|
|
426
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
427
|
+
renderKey: z.ZodString;
|
|
428
|
+
routeTemplate: z.ZodString;
|
|
429
|
+
selectors: z.ZodArray<z.ZodString>;
|
|
430
|
+
present: z.ZodArray<z.ZodNumber>;
|
|
431
|
+
absent: z.ZodArray<z.ZodNumber>;
|
|
432
|
+
}, z.core.$strict>>;
|
|
433
|
+
}, z.core.$strict>>;
|
|
434
|
+
}, z.core.$strict>>;
|
|
435
|
+
savedGroups: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
436
|
+
type: z.ZodLiteral<"hashed">;
|
|
437
|
+
attributeKey: z.ZodString;
|
|
438
|
+
values: z.ZodArray<z.ZodString>;
|
|
439
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
440
|
+
type: z.ZodLiteral<"list">;
|
|
441
|
+
attributeKey: z.ZodString;
|
|
442
|
+
values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
443
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
444
|
+
type: z.ZodLiteral<"condition">;
|
|
445
|
+
condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
446
|
+
}, z.core.$strict>]>>;
|
|
447
|
+
}, z.core.$strict>;
|
|
448
|
+
}, z.core.$strict>;
|
|
449
|
+
type FunnelPageExperimentsResponse = z.infer<typeof funnelPageExperimentsResponseSchema>;
|
|
450
|
+
|
|
301
451
|
type ContentActionIntent = {
|
|
302
452
|
requestId: string;
|
|
303
453
|
contentVersionId: string;
|
|
@@ -367,6 +517,7 @@ interface FunnelRunController {
|
|
|
367
517
|
retry(): Promise<FunnelControllerResponse>;
|
|
368
518
|
/** A separate projection; no local evaluation, command settlement or execution. */
|
|
369
519
|
review?(receiptId?: string): Promise<FunnelRuntimeResponse>;
|
|
520
|
+
pageExperiments?(release: string, usedReceiptIds?: string[]): Promise<FunnelPageExperimentsResponse>;
|
|
370
521
|
identify(token: string): void;
|
|
371
522
|
subscribe(listener: (run: FunnelRunView) => void): () => void;
|
|
372
523
|
subscribeError?(listener: (error: unknown) => void): () => void;
|
|
@@ -678,18 +829,18 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
678
829
|
ranges: [number, number][];
|
|
679
830
|
attribute?: string | undefined;
|
|
680
831
|
}[] | undefined;
|
|
832
|
+
condition?: Record<string, zod.JSONType> | undefined;
|
|
833
|
+
force?: number | undefined;
|
|
834
|
+
hashAttribute?: string | undefined;
|
|
681
835
|
seed?: string | undefined;
|
|
682
836
|
hashVersion?: 2 | undefined;
|
|
683
837
|
ranges?: [number, number][] | undefined;
|
|
684
|
-
condition?: Record<string, zod.JSONType> | undefined;
|
|
685
838
|
urlPatterns?: {
|
|
686
839
|
include: boolean;
|
|
687
840
|
type: "regex" | "simple";
|
|
688
841
|
pattern: string;
|
|
689
842
|
}[] | undefined;
|
|
690
|
-
force?: number | undefined;
|
|
691
843
|
persistQueryString?: boolean | undefined;
|
|
692
|
-
hashAttribute?: string | undefined;
|
|
693
844
|
parentConditions?: {
|
|
694
845
|
id: string;
|
|
695
846
|
condition: Record<string, zod.JSONType>;
|
|
@@ -898,6 +1049,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
898
1049
|
notParticipating: string;
|
|
899
1050
|
id: string;
|
|
900
1051
|
name: string;
|
|
1052
|
+
applyPageExperiment?: true | undefined;
|
|
901
1053
|
position?: {
|
|
902
1054
|
x: number;
|
|
903
1055
|
y: number;
|
|
@@ -938,7 +1090,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
938
1090
|
event: string;
|
|
939
1091
|
} | {
|
|
940
1092
|
type: "api";
|
|
941
|
-
operation: "update" | "
|
|
1093
|
+
operation: "update" | "refund" | "sendMessage" | "readBalanceSource" | "adjustBalance" | "readUsage" | "setUsage" | "manageBalanceGrant" | "listBalanceGrants" | "restoreNativePurchase" | "setupPayment" | "readPaymentSetup" | "verifySubscriptions" | "previewAttach" | "attach" | "readSubscriptionOperation" | "previewUpdate" | "readSubscriptionUpdate" | "previewRefund" | "readRefund" | "readBillingControls" | "prepareBillingAuthorization" | "confirmBillingAuthorization" | "setBillingCoupons" | "revokeBillingAuthorization" | "listBillingInvoices" | "confirmBillingAdjustment" | "manageBillingLimits" | "manageUsageEntity" | "readUsageAnalytics" | "readCreditAnalytics" | "submitUsageBatch" | "readUsageBatch" | "checkEntitlement" | "resolveOffering" | "readHoldings" | "readLedger" | "readBillingInvoice" | "readCreditStatement" | "quoteBalance" | "trackUsage" | "mutateBalance" | "redeemReward" | "createReferralCode" | "claimRewardProduct" | "readSeats" | "manageSeat" | "redeemCoupon" | "listOffers" | "grantOffer";
|
|
942
1094
|
inputs: Record<string, {
|
|
943
1095
|
source: "literal";
|
|
944
1096
|
value: zod.JSONType;
|
|
@@ -1981,7 +2133,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
1981
2133
|
visit: number;
|
|
1982
2134
|
nodeId: string;
|
|
1983
2135
|
nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
|
|
1984
|
-
status: "
|
|
2136
|
+
status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
|
|
1985
2137
|
stopped: boolean;
|
|
1986
2138
|
canBack: boolean;
|
|
1987
2139
|
authenticated: boolean;
|
|
@@ -2263,7 +2415,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
2263
2415
|
cursor: {
|
|
2264
2416
|
at: string;
|
|
2265
2417
|
id: string;
|
|
2266
|
-
type: "
|
|
2418
|
+
type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
|
|
2267
2419
|
};
|
|
2268
2420
|
} | {
|
|
2269
2421
|
kind: "billing";
|
|
@@ -2701,7 +2853,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
2701
2853
|
totalMinor: number;
|
|
2702
2854
|
} | null;
|
|
2703
2855
|
expiresAt: string;
|
|
2704
|
-
provider: "
|
|
2856
|
+
provider: "stripe" | "apple" | "google";
|
|
2705
2857
|
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";
|
|
2706
2858
|
lines: {
|
|
2707
2859
|
lineId: string;
|
|
@@ -2761,9 +2913,9 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
2761
2913
|
automaticTax: boolean;
|
|
2762
2914
|
execution: {
|
|
2763
2915
|
provider: "stripe";
|
|
2764
|
-
executor: "
|
|
2916
|
+
executor: "indiana" | "merchant";
|
|
2765
2917
|
accountId: string;
|
|
2766
|
-
mode: "
|
|
2918
|
+
mode: "payment" | "subscription";
|
|
2767
2919
|
lineItems: {
|
|
2768
2920
|
price: string | null;
|
|
2769
2921
|
quantity: number;
|
|
@@ -2833,13 +2985,13 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
2833
2985
|
operationId: string;
|
|
2834
2986
|
orderId: string;
|
|
2835
2987
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
2836
|
-
executor: "
|
|
2988
|
+
executor: "indiana" | "merchant";
|
|
2837
2989
|
checkoutUrl: string | null;
|
|
2838
2990
|
execution: {
|
|
2839
2991
|
provider: "stripe";
|
|
2840
|
-
executor: "
|
|
2992
|
+
executor: "indiana" | "merchant";
|
|
2841
2993
|
accountId: string;
|
|
2842
|
-
mode: "
|
|
2994
|
+
mode: "payment" | "subscription";
|
|
2843
2995
|
lineItems: {
|
|
2844
2996
|
price: string | null;
|
|
2845
2997
|
quantity: number;
|
|
@@ -2910,7 +3062,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
2910
3062
|
productVersionId: string;
|
|
2911
3063
|
provider: "apple" | "google";
|
|
2912
3064
|
productId: string;
|
|
2913
|
-
productKind: "
|
|
3065
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
2914
3066
|
replacement: {
|
|
2915
3067
|
sourceOrderId: string;
|
|
2916
3068
|
sourceProductId: string;
|
|
@@ -3013,7 +3165,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
3013
3165
|
} | {
|
|
3014
3166
|
type: "client_action";
|
|
3015
3167
|
receiptId: string;
|
|
3016
|
-
outcome: "success" | "
|
|
3168
|
+
outcome: "success" | "cancel" | "failed" | "opened" | "failure";
|
|
3017
3169
|
};
|
|
3018
3170
|
requestId: string;
|
|
3019
3171
|
nodeId: string;
|
|
@@ -3086,7 +3238,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
3086
3238
|
} | {
|
|
3087
3239
|
type: "client_action";
|
|
3088
3240
|
receiptId: string;
|
|
3089
|
-
outcome: "success" | "
|
|
3241
|
+
outcome: "success" | "cancel" | "failed" | "opened" | "failure";
|
|
3090
3242
|
};
|
|
3091
3243
|
requestId: string;
|
|
3092
3244
|
nodeId: string;
|
|
@@ -3147,7 +3299,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
3147
3299
|
visit: number;
|
|
3148
3300
|
nodeId: string;
|
|
3149
3301
|
nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
|
|
3150
|
-
status: "
|
|
3302
|
+
status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
|
|
3151
3303
|
stopped: boolean;
|
|
3152
3304
|
canBack: boolean;
|
|
3153
3305
|
authenticated: boolean;
|
|
@@ -3429,7 +3581,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
3429
3581
|
cursor: {
|
|
3430
3582
|
at: string;
|
|
3431
3583
|
id: string;
|
|
3432
|
-
type: "
|
|
3584
|
+
type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
|
|
3433
3585
|
};
|
|
3434
3586
|
} | {
|
|
3435
3587
|
kind: "billing";
|
|
@@ -3867,7 +4019,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
3867
4019
|
totalMinor: number;
|
|
3868
4020
|
} | null;
|
|
3869
4021
|
expiresAt: string;
|
|
3870
|
-
provider: "
|
|
4022
|
+
provider: "stripe" | "apple" | "google";
|
|
3871
4023
|
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";
|
|
3872
4024
|
lines: {
|
|
3873
4025
|
lineId: string;
|
|
@@ -3927,9 +4079,9 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
3927
4079
|
automaticTax: boolean;
|
|
3928
4080
|
execution: {
|
|
3929
4081
|
provider: "stripe";
|
|
3930
|
-
executor: "
|
|
4082
|
+
executor: "indiana" | "merchant";
|
|
3931
4083
|
accountId: string;
|
|
3932
|
-
mode: "
|
|
4084
|
+
mode: "payment" | "subscription";
|
|
3933
4085
|
lineItems: {
|
|
3934
4086
|
price: string | null;
|
|
3935
4087
|
quantity: number;
|
|
@@ -3999,13 +4151,13 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
3999
4151
|
operationId: string;
|
|
4000
4152
|
orderId: string;
|
|
4001
4153
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
4002
|
-
executor: "
|
|
4154
|
+
executor: "indiana" | "merchant";
|
|
4003
4155
|
checkoutUrl: string | null;
|
|
4004
4156
|
execution: {
|
|
4005
4157
|
provider: "stripe";
|
|
4006
|
-
executor: "
|
|
4158
|
+
executor: "indiana" | "merchant";
|
|
4007
4159
|
accountId: string;
|
|
4008
|
-
mode: "
|
|
4160
|
+
mode: "payment" | "subscription";
|
|
4009
4161
|
lineItems: {
|
|
4010
4162
|
price: string | null;
|
|
4011
4163
|
quantity: number;
|
|
@@ -4076,7 +4228,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
4076
4228
|
productVersionId: string;
|
|
4077
4229
|
provider: "apple" | "google";
|
|
4078
4230
|
productId: string;
|
|
4079
|
-
productKind: "
|
|
4231
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
4080
4232
|
replacement: {
|
|
4081
4233
|
sourceOrderId: string;
|
|
4082
4234
|
sourceProductId: string;
|
|
@@ -4192,7 +4344,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
4192
4344
|
totalMinor: number;
|
|
4193
4345
|
} | null;
|
|
4194
4346
|
expiresAt: string;
|
|
4195
|
-
provider: "
|
|
4347
|
+
provider: "stripe" | "apple" | "google";
|
|
4196
4348
|
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";
|
|
4197
4349
|
lines: {
|
|
4198
4350
|
lineId: string;
|
|
@@ -4252,9 +4404,9 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
4252
4404
|
automaticTax: boolean;
|
|
4253
4405
|
execution: {
|
|
4254
4406
|
provider: "stripe";
|
|
4255
|
-
executor: "
|
|
4407
|
+
executor: "indiana" | "merchant";
|
|
4256
4408
|
accountId: string;
|
|
4257
|
-
mode: "
|
|
4409
|
+
mode: "payment" | "subscription";
|
|
4258
4410
|
lineItems: {
|
|
4259
4411
|
price: string | null;
|
|
4260
4412
|
quantity: number;
|
|
@@ -4324,13 +4476,13 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
4324
4476
|
operationId: string;
|
|
4325
4477
|
orderId: string;
|
|
4326
4478
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
4327
|
-
executor: "
|
|
4479
|
+
executor: "indiana" | "merchant";
|
|
4328
4480
|
checkoutUrl: string | null;
|
|
4329
4481
|
execution: {
|
|
4330
4482
|
provider: "stripe";
|
|
4331
|
-
executor: "
|
|
4483
|
+
executor: "indiana" | "merchant";
|
|
4332
4484
|
accountId: string;
|
|
4333
|
-
mode: "
|
|
4485
|
+
mode: "payment" | "subscription";
|
|
4334
4486
|
lineItems: {
|
|
4335
4487
|
price: string | null;
|
|
4336
4488
|
quantity: number;
|
|
@@ -4401,7 +4553,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
4401
4553
|
productVersionId: string;
|
|
4402
4554
|
provider: "apple" | "google";
|
|
4403
4555
|
productId: string;
|
|
4404
|
-
productKind: "
|
|
4556
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
4405
4557
|
replacement: {
|
|
4406
4558
|
sourceOrderId: string;
|
|
4407
4559
|
sourceProductId: string;
|
|
@@ -4812,6 +4964,136 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
4812
4964
|
};
|
|
4813
4965
|
} | undefined;
|
|
4814
4966
|
}>;
|
|
4967
|
+
pageExperiments(release: string, usedReceiptIds?: string[]): Promise<{
|
|
4968
|
+
scope: {
|
|
4969
|
+
projectId: string;
|
|
4970
|
+
environment: "sandbox" | "live";
|
|
4971
|
+
};
|
|
4972
|
+
runId: string;
|
|
4973
|
+
assignments: {
|
|
4974
|
+
experimentId: string;
|
|
4975
|
+
experimentKey: string;
|
|
4976
|
+
variationKey: string;
|
|
4977
|
+
inExperiment: boolean;
|
|
4978
|
+
generation: string;
|
|
4979
|
+
receiptId: string;
|
|
4980
|
+
}[];
|
|
4981
|
+
payload: {
|
|
4982
|
+
trackExposures: boolean;
|
|
4983
|
+
environmentId: string;
|
|
4984
|
+
generation: string;
|
|
4985
|
+
experiments: {
|
|
4986
|
+
key: string;
|
|
4987
|
+
changeId: string;
|
|
4988
|
+
variations: [{
|
|
4989
|
+
css: string;
|
|
4990
|
+
js: string;
|
|
4991
|
+
domMutations: {
|
|
4992
|
+
selector: string;
|
|
4993
|
+
action: "set" | "remove" | "append";
|
|
4994
|
+
attribute: string;
|
|
4995
|
+
value?: string | undefined;
|
|
4996
|
+
parentSelector?: string | undefined;
|
|
4997
|
+
insertBeforeSelector?: string | undefined;
|
|
4998
|
+
}[];
|
|
4999
|
+
renderGuard?: {
|
|
5000
|
+
schemaVersion: 1;
|
|
5001
|
+
renderKey: string;
|
|
5002
|
+
routeTemplate: string;
|
|
5003
|
+
selectors: string[];
|
|
5004
|
+
present: number[];
|
|
5005
|
+
absent: number[];
|
|
5006
|
+
} | undefined;
|
|
5007
|
+
}, {
|
|
5008
|
+
css: string;
|
|
5009
|
+
js: string;
|
|
5010
|
+
domMutations: {
|
|
5011
|
+
selector: string;
|
|
5012
|
+
action: "set" | "remove" | "append";
|
|
5013
|
+
attribute: string;
|
|
5014
|
+
value?: string | undefined;
|
|
5015
|
+
parentSelector?: string | undefined;
|
|
5016
|
+
insertBeforeSelector?: string | undefined;
|
|
5017
|
+
}[];
|
|
5018
|
+
renderGuard?: {
|
|
5019
|
+
schemaVersion: 1;
|
|
5020
|
+
renderKey: string;
|
|
5021
|
+
routeTemplate: string;
|
|
5022
|
+
selectors: string[];
|
|
5023
|
+
present: number[];
|
|
5024
|
+
absent: number[];
|
|
5025
|
+
} | undefined;
|
|
5026
|
+
}, ...{
|
|
5027
|
+
css: string;
|
|
5028
|
+
js: string;
|
|
5029
|
+
domMutations: {
|
|
5030
|
+
selector: string;
|
|
5031
|
+
action: "set" | "remove" | "append";
|
|
5032
|
+
attribute: string;
|
|
5033
|
+
value?: string | undefined;
|
|
5034
|
+
parentSelector?: string | undefined;
|
|
5035
|
+
insertBeforeSelector?: string | undefined;
|
|
5036
|
+
}[];
|
|
5037
|
+
renderGuard?: {
|
|
5038
|
+
schemaVersion: 1;
|
|
5039
|
+
renderKey: string;
|
|
5040
|
+
routeTemplate: string;
|
|
5041
|
+
selectors: string[];
|
|
5042
|
+
present: number[];
|
|
5043
|
+
absent: number[];
|
|
5044
|
+
} | undefined;
|
|
5045
|
+
}[]];
|
|
5046
|
+
name?: string | undefined;
|
|
5047
|
+
filters?: {
|
|
5048
|
+
seed: string;
|
|
5049
|
+
hashVersion: 2;
|
|
5050
|
+
ranges: [number, number][];
|
|
5051
|
+
attribute?: string | undefined;
|
|
5052
|
+
}[] | undefined;
|
|
5053
|
+
condition?: Record<string, zod.JSONType> | undefined;
|
|
5054
|
+
force?: number | undefined;
|
|
5055
|
+
hashAttribute?: string | undefined;
|
|
5056
|
+
seed?: string | undefined;
|
|
5057
|
+
hashVersion?: 2 | undefined;
|
|
5058
|
+
ranges?: [number, number][] | undefined;
|
|
5059
|
+
urlPatterns?: {
|
|
5060
|
+
include: boolean;
|
|
5061
|
+
type: "regex" | "simple";
|
|
5062
|
+
pattern: string;
|
|
5063
|
+
}[] | undefined;
|
|
5064
|
+
persistQueryString?: boolean | undefined;
|
|
5065
|
+
parentConditions?: {
|
|
5066
|
+
id: string;
|
|
5067
|
+
condition: Record<string, zod.JSONType>;
|
|
5068
|
+
gate?: boolean | undefined;
|
|
5069
|
+
}[] | undefined;
|
|
5070
|
+
weights?: number[] | undefined;
|
|
5071
|
+
coverage?: number | undefined;
|
|
5072
|
+
fallbackAttribute?: string | undefined;
|
|
5073
|
+
disableStickyBucketing?: boolean | undefined;
|
|
5074
|
+
bucketVersion?: number | undefined;
|
|
5075
|
+
minBucketVersion?: number | undefined;
|
|
5076
|
+
meta?: {
|
|
5077
|
+
key?: string | undefined;
|
|
5078
|
+
name?: string | undefined;
|
|
5079
|
+
passthrough?: boolean | undefined;
|
|
5080
|
+
}[] | undefined;
|
|
5081
|
+
phase?: string | undefined;
|
|
5082
|
+
}[];
|
|
5083
|
+
savedGroups: Record<string, {
|
|
5084
|
+
type: "hashed";
|
|
5085
|
+
attributeKey: string;
|
|
5086
|
+
values: string[];
|
|
5087
|
+
} | {
|
|
5088
|
+
type: "list";
|
|
5089
|
+
attributeKey: string;
|
|
5090
|
+
values: (string | number)[];
|
|
5091
|
+
} | {
|
|
5092
|
+
type: "condition";
|
|
5093
|
+
condition: Record<string, zod.JSONType>;
|
|
5094
|
+
}>;
|
|
5095
|
+
};
|
|
5096
|
+
}>;
|
|
4815
5097
|
review(receiptId?: string): Promise<{
|
|
4816
5098
|
scope: {
|
|
4817
5099
|
projectId: string;
|
|
@@ -4828,7 +5110,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
4828
5110
|
visit: number;
|
|
4829
5111
|
nodeId: string;
|
|
4830
5112
|
nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
|
|
4831
|
-
status: "
|
|
5113
|
+
status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
|
|
4832
5114
|
stopped: boolean;
|
|
4833
5115
|
canBack: boolean;
|
|
4834
5116
|
authenticated: boolean;
|
|
@@ -5110,7 +5392,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
5110
5392
|
cursor: {
|
|
5111
5393
|
at: string;
|
|
5112
5394
|
id: string;
|
|
5113
|
-
type: "
|
|
5395
|
+
type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
|
|
5114
5396
|
};
|
|
5115
5397
|
} | {
|
|
5116
5398
|
kind: "billing";
|
|
@@ -5548,7 +5830,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
5548
5830
|
totalMinor: number;
|
|
5549
5831
|
} | null;
|
|
5550
5832
|
expiresAt: string;
|
|
5551
|
-
provider: "
|
|
5833
|
+
provider: "stripe" | "apple" | "google";
|
|
5552
5834
|
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";
|
|
5553
5835
|
lines: {
|
|
5554
5836
|
lineId: string;
|
|
@@ -5608,9 +5890,9 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
5608
5890
|
automaticTax: boolean;
|
|
5609
5891
|
execution: {
|
|
5610
5892
|
provider: "stripe";
|
|
5611
|
-
executor: "
|
|
5893
|
+
executor: "indiana" | "merchant";
|
|
5612
5894
|
accountId: string;
|
|
5613
|
-
mode: "
|
|
5895
|
+
mode: "payment" | "subscription";
|
|
5614
5896
|
lineItems: {
|
|
5615
5897
|
price: string | null;
|
|
5616
5898
|
quantity: number;
|
|
@@ -5680,13 +5962,13 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
5680
5962
|
operationId: string;
|
|
5681
5963
|
orderId: string;
|
|
5682
5964
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
5683
|
-
executor: "
|
|
5965
|
+
executor: "indiana" | "merchant";
|
|
5684
5966
|
checkoutUrl: string | null;
|
|
5685
5967
|
execution: {
|
|
5686
5968
|
provider: "stripe";
|
|
5687
|
-
executor: "
|
|
5969
|
+
executor: "indiana" | "merchant";
|
|
5688
5970
|
accountId: string;
|
|
5689
|
-
mode: "
|
|
5971
|
+
mode: "payment" | "subscription";
|
|
5690
5972
|
lineItems: {
|
|
5691
5973
|
price: string | null;
|
|
5692
5974
|
quantity: number;
|
|
@@ -5757,7 +6039,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
5757
6039
|
productVersionId: string;
|
|
5758
6040
|
provider: "apple" | "google";
|
|
5759
6041
|
productId: string;
|
|
5760
|
-
productKind: "
|
|
6042
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
5761
6043
|
replacement: {
|
|
5762
6044
|
sourceOrderId: string;
|
|
5763
6045
|
sourceProductId: string;
|
|
@@ -5873,7 +6155,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
5873
6155
|
totalMinor: number;
|
|
5874
6156
|
} | null;
|
|
5875
6157
|
expiresAt: string;
|
|
5876
|
-
provider: "
|
|
6158
|
+
provider: "stripe" | "apple" | "google";
|
|
5877
6159
|
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";
|
|
5878
6160
|
lines: {
|
|
5879
6161
|
lineId: string;
|
|
@@ -5933,9 +6215,9 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
5933
6215
|
automaticTax: boolean;
|
|
5934
6216
|
execution: {
|
|
5935
6217
|
provider: "stripe";
|
|
5936
|
-
executor: "
|
|
6218
|
+
executor: "indiana" | "merchant";
|
|
5937
6219
|
accountId: string;
|
|
5938
|
-
mode: "
|
|
6220
|
+
mode: "payment" | "subscription";
|
|
5939
6221
|
lineItems: {
|
|
5940
6222
|
price: string | null;
|
|
5941
6223
|
quantity: number;
|
|
@@ -6005,13 +6287,13 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
6005
6287
|
operationId: string;
|
|
6006
6288
|
orderId: string;
|
|
6007
6289
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
6008
|
-
executor: "
|
|
6290
|
+
executor: "indiana" | "merchant";
|
|
6009
6291
|
checkoutUrl: string | null;
|
|
6010
6292
|
execution: {
|
|
6011
6293
|
provider: "stripe";
|
|
6012
|
-
executor: "
|
|
6294
|
+
executor: "indiana" | "merchant";
|
|
6013
6295
|
accountId: string;
|
|
6014
|
-
mode: "
|
|
6296
|
+
mode: "payment" | "subscription";
|
|
6015
6297
|
lineItems: {
|
|
6016
6298
|
price: string | null;
|
|
6017
6299
|
quantity: number;
|
|
@@ -6082,7 +6364,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
6082
6364
|
productVersionId: string;
|
|
6083
6365
|
provider: "apple" | "google";
|
|
6084
6366
|
productId: string;
|
|
6085
|
-
productKind: "
|
|
6367
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
6086
6368
|
replacement: {
|
|
6087
6369
|
sourceOrderId: string;
|
|
6088
6370
|
sourceProductId: string;
|
|
@@ -6247,7 +6529,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
6247
6529
|
visit: number;
|
|
6248
6530
|
nodeId: string;
|
|
6249
6531
|
nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
|
|
6250
|
-
status: "
|
|
6532
|
+
status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
|
|
6251
6533
|
stopped: boolean;
|
|
6252
6534
|
canBack: boolean;
|
|
6253
6535
|
authenticated: boolean;
|
|
@@ -6529,7 +6811,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
6529
6811
|
cursor: {
|
|
6530
6812
|
at: string;
|
|
6531
6813
|
id: string;
|
|
6532
|
-
type: "
|
|
6814
|
+
type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
|
|
6533
6815
|
};
|
|
6534
6816
|
} | {
|
|
6535
6817
|
kind: "billing";
|
|
@@ -6967,7 +7249,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
6967
7249
|
totalMinor: number;
|
|
6968
7250
|
} | null;
|
|
6969
7251
|
expiresAt: string;
|
|
6970
|
-
provider: "
|
|
7252
|
+
provider: "stripe" | "apple" | "google";
|
|
6971
7253
|
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";
|
|
6972
7254
|
lines: {
|
|
6973
7255
|
lineId: string;
|
|
@@ -7027,9 +7309,9 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
7027
7309
|
automaticTax: boolean;
|
|
7028
7310
|
execution: {
|
|
7029
7311
|
provider: "stripe";
|
|
7030
|
-
executor: "
|
|
7312
|
+
executor: "indiana" | "merchant";
|
|
7031
7313
|
accountId: string;
|
|
7032
|
-
mode: "
|
|
7314
|
+
mode: "payment" | "subscription";
|
|
7033
7315
|
lineItems: {
|
|
7034
7316
|
price: string | null;
|
|
7035
7317
|
quantity: number;
|
|
@@ -7099,13 +7381,13 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
7099
7381
|
operationId: string;
|
|
7100
7382
|
orderId: string;
|
|
7101
7383
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
7102
|
-
executor: "
|
|
7384
|
+
executor: "indiana" | "merchant";
|
|
7103
7385
|
checkoutUrl: string | null;
|
|
7104
7386
|
execution: {
|
|
7105
7387
|
provider: "stripe";
|
|
7106
|
-
executor: "
|
|
7388
|
+
executor: "indiana" | "merchant";
|
|
7107
7389
|
accountId: string;
|
|
7108
|
-
mode: "
|
|
7390
|
+
mode: "payment" | "subscription";
|
|
7109
7391
|
lineItems: {
|
|
7110
7392
|
price: string | null;
|
|
7111
7393
|
quantity: number;
|
|
@@ -7176,7 +7458,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
7176
7458
|
productVersionId: string;
|
|
7177
7459
|
provider: "apple" | "google";
|
|
7178
7460
|
productId: string;
|
|
7179
|
-
productKind: "
|
|
7461
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
7180
7462
|
replacement: {
|
|
7181
7463
|
sourceOrderId: string;
|
|
7182
7464
|
sourceProductId: string;
|
|
@@ -7292,7 +7574,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
7292
7574
|
totalMinor: number;
|
|
7293
7575
|
} | null;
|
|
7294
7576
|
expiresAt: string;
|
|
7295
|
-
provider: "
|
|
7577
|
+
provider: "stripe" | "apple" | "google";
|
|
7296
7578
|
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";
|
|
7297
7579
|
lines: {
|
|
7298
7580
|
lineId: string;
|
|
@@ -7352,9 +7634,9 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
7352
7634
|
automaticTax: boolean;
|
|
7353
7635
|
execution: {
|
|
7354
7636
|
provider: "stripe";
|
|
7355
|
-
executor: "
|
|
7637
|
+
executor: "indiana" | "merchant";
|
|
7356
7638
|
accountId: string;
|
|
7357
|
-
mode: "
|
|
7639
|
+
mode: "payment" | "subscription";
|
|
7358
7640
|
lineItems: {
|
|
7359
7641
|
price: string | null;
|
|
7360
7642
|
quantity: number;
|
|
@@ -7424,13 +7706,13 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
7424
7706
|
operationId: string;
|
|
7425
7707
|
orderId: string;
|
|
7426
7708
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
7427
|
-
executor: "
|
|
7709
|
+
executor: "indiana" | "merchant";
|
|
7428
7710
|
checkoutUrl: string | null;
|
|
7429
7711
|
execution: {
|
|
7430
7712
|
provider: "stripe";
|
|
7431
|
-
executor: "
|
|
7713
|
+
executor: "indiana" | "merchant";
|
|
7432
7714
|
accountId: string;
|
|
7433
|
-
mode: "
|
|
7715
|
+
mode: "payment" | "subscription";
|
|
7434
7716
|
lineItems: {
|
|
7435
7717
|
price: string | null;
|
|
7436
7718
|
quantity: number;
|
|
@@ -7501,7 +7783,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
7501
7783
|
productVersionId: string;
|
|
7502
7784
|
provider: "apple" | "google";
|
|
7503
7785
|
productId: string;
|
|
7504
|
-
productKind: "
|
|
7786
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
7505
7787
|
replacement: {
|
|
7506
7788
|
sourceOrderId: string;
|
|
7507
7789
|
sourceProductId: string;
|
|
@@ -7664,7 +7946,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
7664
7946
|
visit: number;
|
|
7665
7947
|
nodeId: string;
|
|
7666
7948
|
nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
|
|
7667
|
-
status: "
|
|
7949
|
+
status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
|
|
7668
7950
|
stopped: boolean;
|
|
7669
7951
|
canBack: boolean;
|
|
7670
7952
|
authenticated: boolean;
|
|
@@ -7946,7 +8228,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
7946
8228
|
cursor: {
|
|
7947
8229
|
at: string;
|
|
7948
8230
|
id: string;
|
|
7949
|
-
type: "
|
|
8231
|
+
type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
|
|
7950
8232
|
};
|
|
7951
8233
|
} | {
|
|
7952
8234
|
kind: "billing";
|
|
@@ -8384,7 +8666,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
8384
8666
|
totalMinor: number;
|
|
8385
8667
|
} | null;
|
|
8386
8668
|
expiresAt: string;
|
|
8387
|
-
provider: "
|
|
8669
|
+
provider: "stripe" | "apple" | "google";
|
|
8388
8670
|
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";
|
|
8389
8671
|
lines: {
|
|
8390
8672
|
lineId: string;
|
|
@@ -8444,9 +8726,9 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
8444
8726
|
automaticTax: boolean;
|
|
8445
8727
|
execution: {
|
|
8446
8728
|
provider: "stripe";
|
|
8447
|
-
executor: "
|
|
8729
|
+
executor: "indiana" | "merchant";
|
|
8448
8730
|
accountId: string;
|
|
8449
|
-
mode: "
|
|
8731
|
+
mode: "payment" | "subscription";
|
|
8450
8732
|
lineItems: {
|
|
8451
8733
|
price: string | null;
|
|
8452
8734
|
quantity: number;
|
|
@@ -8516,13 +8798,13 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
8516
8798
|
operationId: string;
|
|
8517
8799
|
orderId: string;
|
|
8518
8800
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
8519
|
-
executor: "
|
|
8801
|
+
executor: "indiana" | "merchant";
|
|
8520
8802
|
checkoutUrl: string | null;
|
|
8521
8803
|
execution: {
|
|
8522
8804
|
provider: "stripe";
|
|
8523
|
-
executor: "
|
|
8805
|
+
executor: "indiana" | "merchant";
|
|
8524
8806
|
accountId: string;
|
|
8525
|
-
mode: "
|
|
8807
|
+
mode: "payment" | "subscription";
|
|
8526
8808
|
lineItems: {
|
|
8527
8809
|
price: string | null;
|
|
8528
8810
|
quantity: number;
|
|
@@ -8593,7 +8875,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
8593
8875
|
productVersionId: string;
|
|
8594
8876
|
provider: "apple" | "google";
|
|
8595
8877
|
productId: string;
|
|
8596
|
-
productKind: "
|
|
8878
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
8597
8879
|
replacement: {
|
|
8598
8880
|
sourceOrderId: string;
|
|
8599
8881
|
sourceProductId: string;
|
|
@@ -8709,7 +8991,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
8709
8991
|
totalMinor: number;
|
|
8710
8992
|
} | null;
|
|
8711
8993
|
expiresAt: string;
|
|
8712
|
-
provider: "
|
|
8994
|
+
provider: "stripe" | "apple" | "google";
|
|
8713
8995
|
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";
|
|
8714
8996
|
lines: {
|
|
8715
8997
|
lineId: string;
|
|
@@ -8769,9 +9051,9 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
8769
9051
|
automaticTax: boolean;
|
|
8770
9052
|
execution: {
|
|
8771
9053
|
provider: "stripe";
|
|
8772
|
-
executor: "
|
|
9054
|
+
executor: "indiana" | "merchant";
|
|
8773
9055
|
accountId: string;
|
|
8774
|
-
mode: "
|
|
9056
|
+
mode: "payment" | "subscription";
|
|
8775
9057
|
lineItems: {
|
|
8776
9058
|
price: string | null;
|
|
8777
9059
|
quantity: number;
|
|
@@ -8841,13 +9123,13 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
8841
9123
|
operationId: string;
|
|
8842
9124
|
orderId: string;
|
|
8843
9125
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
8844
|
-
executor: "
|
|
9126
|
+
executor: "indiana" | "merchant";
|
|
8845
9127
|
checkoutUrl: string | null;
|
|
8846
9128
|
execution: {
|
|
8847
9129
|
provider: "stripe";
|
|
8848
|
-
executor: "
|
|
9130
|
+
executor: "indiana" | "merchant";
|
|
8849
9131
|
accountId: string;
|
|
8850
|
-
mode: "
|
|
9132
|
+
mode: "payment" | "subscription";
|
|
8851
9133
|
lineItems: {
|
|
8852
9134
|
price: string | null;
|
|
8853
9135
|
quantity: number;
|
|
@@ -8918,7 +9200,7 @@ declare function createFunnelRunController(options: IndianaOptions & {
|
|
|
8918
9200
|
productVersionId: string;
|
|
8919
9201
|
provider: "apple" | "google";
|
|
8920
9202
|
productId: string;
|
|
8921
|
-
productKind: "
|
|
9203
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
8922
9204
|
replacement: {
|
|
8923
9205
|
sourceOrderId: string;
|
|
8924
9206
|
sourceProductId: string;
|
|
@@ -9414,6 +9696,8 @@ declare function showPaywall$1(container: HTMLElement, options: PaywallHostOptio
|
|
|
9414
9696
|
|
|
9415
9697
|
type FunnelHostOptions = {
|
|
9416
9698
|
client: FunnelRunController;
|
|
9699
|
+
/** Exact merchant build; enables only page experiments explicitly selected by accepted Splits. */
|
|
9700
|
+
appManifestRelease?: string;
|
|
9417
9701
|
onPurchase?: PaywallHostOptions["onPurchase"];
|
|
9418
9702
|
onCheckoutUrl?: PaywallHostOptions["onCheckoutUrl"];
|
|
9419
9703
|
resolveOfferId?: PaywallHostOptions["resolveOfferId"];
|
|
@@ -9463,7 +9747,7 @@ type FunnelResourceSource = {
|
|
|
9463
9747
|
/** Customer facade: compose capabilities under one transport and identity lifecycle. */
|
|
9464
9748
|
declare function createIndiana(options: IndianaOptions): {
|
|
9465
9749
|
subscribeIdentity(listener: (identified: boolean) => void): () => void;
|
|
9466
|
-
identify(
|
|
9750
|
+
identify(value: string | CustomerSession): void;
|
|
9467
9751
|
reset(): void;
|
|
9468
9752
|
/** Bind once from a Local result or Run; every resource request carries its original Funnel. */
|
|
9469
9753
|
forFunnel(source: FunnelResourceSource): {
|
|
@@ -9740,7 +10024,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
9740
10024
|
totalMinor: number;
|
|
9741
10025
|
} | null;
|
|
9742
10026
|
expiresAt: string;
|
|
9743
|
-
provider: "
|
|
10027
|
+
provider: "stripe" | "apple" | "google";
|
|
9744
10028
|
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";
|
|
9745
10029
|
lines: {
|
|
9746
10030
|
lineId: string;
|
|
@@ -9800,9 +10084,9 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
9800
10084
|
automaticTax: boolean;
|
|
9801
10085
|
execution: {
|
|
9802
10086
|
provider: "stripe";
|
|
9803
|
-
executor: "
|
|
10087
|
+
executor: "indiana" | "merchant";
|
|
9804
10088
|
accountId: string;
|
|
9805
|
-
mode: "
|
|
10089
|
+
mode: "payment" | "subscription";
|
|
9806
10090
|
lineItems: {
|
|
9807
10091
|
price: string | null;
|
|
9808
10092
|
quantity: number;
|
|
@@ -10692,7 +10976,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
10692
10976
|
type: "forever";
|
|
10693
10977
|
};
|
|
10694
10978
|
renewalAmountMinor: number;
|
|
10695
|
-
status: "pending" | "
|
|
10979
|
+
status: "pending" | "paid" | "failed" | "trialing" | "cancelled" | "created";
|
|
10696
10980
|
url: string | null;
|
|
10697
10981
|
} | {
|
|
10698
10982
|
type: "subscription";
|
|
@@ -10709,7 +10993,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
10709
10993
|
type: "forever";
|
|
10710
10994
|
};
|
|
10711
10995
|
renewalAmountMinor: number;
|
|
10712
|
-
status: "
|
|
10996
|
+
status: "running" | "pending" | "failed" | "applied";
|
|
10713
10997
|
}>;
|
|
10714
10998
|
createReferralCode(input: {
|
|
10715
10999
|
programId: string;
|
|
@@ -10823,7 +11107,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
10823
11107
|
retainedProductVersionIds: string[];
|
|
10824
11108
|
execution: {
|
|
10825
11109
|
provider: "stripe";
|
|
10826
|
-
executor: "
|
|
11110
|
+
executor: "indiana" | "merchant";
|
|
10827
11111
|
accountId: string;
|
|
10828
11112
|
subscriptionId: string;
|
|
10829
11113
|
action: "update" | "cancel" | "release" | "schedule";
|
|
@@ -10918,14 +11202,14 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
10918
11202
|
operationId: string;
|
|
10919
11203
|
membershipId: string;
|
|
10920
11204
|
productVersionId: string;
|
|
10921
|
-
status: "
|
|
11205
|
+
status: "scheduled" | "prepared" | "pending" | "failed" | "effective" | "confirmed" | "quoted" | "cancelled";
|
|
10922
11206
|
timing: "immediate" | "renewal";
|
|
10923
11207
|
effectiveAt: string;
|
|
10924
11208
|
checkoutUrl: string | null;
|
|
10925
|
-
executor: "
|
|
11209
|
+
executor: "indiana" | "merchant";
|
|
10926
11210
|
execution: {
|
|
10927
11211
|
provider: "stripe";
|
|
10928
|
-
executor: "
|
|
11212
|
+
executor: "indiana" | "merchant";
|
|
10929
11213
|
accountId: string;
|
|
10930
11214
|
subscriptionId: string;
|
|
10931
11215
|
action: "update" | "cancel" | "release" | "schedule";
|
|
@@ -10985,7 +11269,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
10985
11269
|
operationId: string;
|
|
10986
11270
|
membershipId: string;
|
|
10987
11271
|
productVersionId: string;
|
|
10988
|
-
status: "
|
|
11272
|
+
status: "prepared" | "pending" | "failed" | "effective" | "cancelled";
|
|
10989
11273
|
timing: "store";
|
|
10990
11274
|
effectiveAt: string | null;
|
|
10991
11275
|
checkoutUrl: null;
|
|
@@ -10996,7 +11280,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
10996
11280
|
productVersionId: string;
|
|
10997
11281
|
provider: "apple" | "google";
|
|
10998
11282
|
productId: string;
|
|
10999
|
-
productKind: "
|
|
11283
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
11000
11284
|
replacement: {
|
|
11001
11285
|
sourceOrderId: string;
|
|
11002
11286
|
sourceProductId: string;
|
|
@@ -11037,14 +11321,14 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
11037
11321
|
operationId: string;
|
|
11038
11322
|
membershipId: string;
|
|
11039
11323
|
productVersionId: string;
|
|
11040
|
-
status: "
|
|
11324
|
+
status: "scheduled" | "prepared" | "pending" | "failed" | "effective" | "confirmed" | "quoted" | "cancelled";
|
|
11041
11325
|
timing: "immediate" | "renewal";
|
|
11042
11326
|
effectiveAt: string;
|
|
11043
11327
|
checkoutUrl: string | null;
|
|
11044
|
-
executor: "
|
|
11328
|
+
executor: "indiana" | "merchant";
|
|
11045
11329
|
execution: {
|
|
11046
11330
|
provider: "stripe";
|
|
11047
|
-
executor: "
|
|
11331
|
+
executor: "indiana" | "merchant";
|
|
11048
11332
|
accountId: string;
|
|
11049
11333
|
subscriptionId: string;
|
|
11050
11334
|
action: "update" | "cancel" | "release" | "schedule";
|
|
@@ -11104,7 +11388,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
11104
11388
|
operationId: string;
|
|
11105
11389
|
membershipId: string;
|
|
11106
11390
|
productVersionId: string;
|
|
11107
|
-
status: "
|
|
11391
|
+
status: "prepared" | "pending" | "failed" | "effective" | "cancelled";
|
|
11108
11392
|
timing: "store";
|
|
11109
11393
|
effectiveAt: string | null;
|
|
11110
11394
|
checkoutUrl: null;
|
|
@@ -11115,7 +11399,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
11115
11399
|
productVersionId: string;
|
|
11116
11400
|
provider: "apple" | "google";
|
|
11117
11401
|
productId: string;
|
|
11118
|
-
productKind: "
|
|
11402
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
11119
11403
|
replacement: {
|
|
11120
11404
|
sourceOrderId: string;
|
|
11121
11405
|
sourceProductId: string;
|
|
@@ -11156,7 +11440,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
11156
11440
|
requestId: string;
|
|
11157
11441
|
orderId: string;
|
|
11158
11442
|
purchaseIntentId: string;
|
|
11159
|
-
status: "pending" | "
|
|
11443
|
+
status: "pending" | "paid" | "failed" | "trialing" | "cancelled" | "created";
|
|
11160
11444
|
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";
|
|
11161
11445
|
refunded: boolean;
|
|
11162
11446
|
completion: {
|
|
@@ -11210,7 +11494,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
11210
11494
|
totalMinor: number;
|
|
11211
11495
|
} | null;
|
|
11212
11496
|
expiresAt: string;
|
|
11213
|
-
provider: "
|
|
11497
|
+
provider: "stripe" | "apple" | "google";
|
|
11214
11498
|
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";
|
|
11215
11499
|
lines: {
|
|
11216
11500
|
lineId: string;
|
|
@@ -11270,9 +11554,9 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
11270
11554
|
automaticTax: boolean;
|
|
11271
11555
|
execution: {
|
|
11272
11556
|
provider: "stripe";
|
|
11273
|
-
executor: "
|
|
11557
|
+
executor: "indiana" | "merchant";
|
|
11274
11558
|
accountId: string;
|
|
11275
|
-
mode: "
|
|
11559
|
+
mode: "payment" | "subscription";
|
|
11276
11560
|
lineItems: {
|
|
11277
11561
|
price: string | null;
|
|
11278
11562
|
quantity: number;
|
|
@@ -11349,13 +11633,13 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
11349
11633
|
operationId: string;
|
|
11350
11634
|
orderId: string;
|
|
11351
11635
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
11352
|
-
executor: "
|
|
11636
|
+
executor: "indiana" | "merchant";
|
|
11353
11637
|
checkoutUrl: string | null;
|
|
11354
11638
|
execution: {
|
|
11355
11639
|
provider: "stripe";
|
|
11356
|
-
executor: "
|
|
11640
|
+
executor: "indiana" | "merchant";
|
|
11357
11641
|
accountId: string;
|
|
11358
|
-
mode: "
|
|
11642
|
+
mode: "payment" | "subscription";
|
|
11359
11643
|
lineItems: {
|
|
11360
11644
|
price: string | null;
|
|
11361
11645
|
quantity: number;
|
|
@@ -11426,7 +11710,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
11426
11710
|
productVersionId: string;
|
|
11427
11711
|
provider: "apple" | "google";
|
|
11428
11712
|
productId: string;
|
|
11429
|
-
productKind: "
|
|
11713
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
11430
11714
|
replacement: {
|
|
11431
11715
|
sourceOrderId: string;
|
|
11432
11716
|
sourceProductId: string;
|
|
@@ -11469,13 +11753,13 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
11469
11753
|
operationId: string;
|
|
11470
11754
|
orderId: string;
|
|
11471
11755
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
11472
|
-
executor: "
|
|
11756
|
+
executor: "indiana" | "merchant";
|
|
11473
11757
|
checkoutUrl: string | null;
|
|
11474
11758
|
execution: {
|
|
11475
11759
|
provider: "stripe";
|
|
11476
|
-
executor: "
|
|
11760
|
+
executor: "indiana" | "merchant";
|
|
11477
11761
|
accountId: string;
|
|
11478
|
-
mode: "
|
|
11762
|
+
mode: "payment" | "subscription";
|
|
11479
11763
|
lineItems: {
|
|
11480
11764
|
price: string | null;
|
|
11481
11765
|
quantity: number;
|
|
@@ -11546,7 +11830,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
11546
11830
|
productVersionId: string;
|
|
11547
11831
|
provider: "apple" | "google";
|
|
11548
11832
|
productId: string;
|
|
11549
|
-
productKind: "
|
|
11833
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
11550
11834
|
replacement: {
|
|
11551
11835
|
sourceOrderId: string;
|
|
11552
11836
|
sourceProductId: string;
|
|
@@ -11660,7 +11944,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
11660
11944
|
id: string;
|
|
11661
11945
|
sourceKind: "usage" | "product" | "manual";
|
|
11662
11946
|
providerInvoiceId: string | null;
|
|
11663
|
-
status: "void" | "
|
|
11947
|
+
status: "void" | "open" | "pending" | "accruing" | "paid" | "failed";
|
|
11664
11948
|
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";
|
|
11665
11949
|
startsAt: string | null;
|
|
11666
11950
|
endsAt: string | null;
|
|
@@ -11890,7 +12174,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
11890
12174
|
}[];
|
|
11891
12175
|
autoTopups: {
|
|
11892
12176
|
authorizationId: string;
|
|
11893
|
-
status: "
|
|
12177
|
+
status: "blocked" | "idle" | "pending";
|
|
11894
12178
|
taskId: string | null;
|
|
11895
12179
|
invoiceId: string | null;
|
|
11896
12180
|
hostedInvoiceUrl: string | null;
|
|
@@ -12173,7 +12457,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
12173
12457
|
id: string;
|
|
12174
12458
|
sourceKind: "usage" | "product" | "manual";
|
|
12175
12459
|
providerInvoiceId: string | null;
|
|
12176
|
-
status: "void" | "
|
|
12460
|
+
status: "void" | "open" | "pending" | "accruing" | "paid" | "failed";
|
|
12177
12461
|
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";
|
|
12178
12462
|
startsAt: string | null;
|
|
12179
12463
|
endsAt: string | null;
|
|
@@ -12234,7 +12518,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
12234
12518
|
id: string;
|
|
12235
12519
|
sourceKind: "usage" | "product" | "manual";
|
|
12236
12520
|
providerInvoiceId: string | null;
|
|
12237
|
-
status: "void" | "
|
|
12521
|
+
status: "void" | "open" | "pending" | "accruing" | "paid" | "failed";
|
|
12238
12522
|
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";
|
|
12239
12523
|
startsAt: string | null;
|
|
12240
12524
|
endsAt: string | null;
|
|
@@ -12303,7 +12587,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
12303
12587
|
properties: {
|
|
12304
12588
|
[k: string]: string;
|
|
12305
12589
|
};
|
|
12306
|
-
reservationStatus: "
|
|
12590
|
+
reservationStatus: "expired" | "pending" | "confirmed" | "released" | null;
|
|
12307
12591
|
expiresAt: string | null;
|
|
12308
12592
|
charges: ({
|
|
12309
12593
|
funding: "balance";
|
|
@@ -12356,10 +12640,10 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
12356
12640
|
occurredAt: string;
|
|
12357
12641
|
} | {
|
|
12358
12642
|
type: "source";
|
|
12359
|
-
reason: "topup" | "
|
|
12643
|
+
reason: "topup" | "membership" | "manual" | "rollover" | "trial" | "seat" | "upgrade_carry";
|
|
12360
12644
|
quantity: string;
|
|
12361
12645
|
unlimited: boolean;
|
|
12362
|
-
status: "unavailable" | "active" | "
|
|
12646
|
+
status: "unavailable" | "active" | "scheduled" | "expired" | "revoked";
|
|
12363
12647
|
startsAt: string;
|
|
12364
12648
|
expiresAt: string | null;
|
|
12365
12649
|
orderId: string | null;
|
|
@@ -12396,7 +12680,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
12396
12680
|
nextCursor: {
|
|
12397
12681
|
at: string;
|
|
12398
12682
|
id: string;
|
|
12399
|
-
type: "
|
|
12683
|
+
type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
|
|
12400
12684
|
} | null;
|
|
12401
12685
|
};
|
|
12402
12686
|
}>;
|
|
@@ -12548,7 +12832,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
12548
12832
|
name: string;
|
|
12549
12833
|
groupId: string | null;
|
|
12550
12834
|
membershipType: "addon" | "main";
|
|
12551
|
-
status: "unknown" | "active" | "
|
|
12835
|
+
status: "unknown" | "active" | "scheduled" | "expired" | "past_due" | "paused" | "ended" | "pending" | "trial" | "trialing";
|
|
12552
12836
|
cancelAtPeriodEnd: boolean;
|
|
12553
12837
|
accessEnabled: boolean;
|
|
12554
12838
|
renewalChange: {
|
|
@@ -12564,7 +12848,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
12564
12848
|
fromQuantity: number;
|
|
12565
12849
|
toQuantity: number;
|
|
12566
12850
|
} | null;
|
|
12567
|
-
status: "
|
|
12851
|
+
status: "scheduled" | "prepared" | "pending" | "confirmed" | "quoted";
|
|
12568
12852
|
feature?: {
|
|
12569
12853
|
internal_feature_id: string;
|
|
12570
12854
|
name: string;
|
|
@@ -12573,7 +12857,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
12573
12857
|
} | undefined;
|
|
12574
12858
|
} | null;
|
|
12575
12859
|
period: {
|
|
12576
|
-
phase: "
|
|
12860
|
+
phase: "paid" | "trial";
|
|
12577
12861
|
startsAt: string;
|
|
12578
12862
|
endsAt: string | null;
|
|
12579
12863
|
} | null;
|
|
@@ -12695,6 +12979,29 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
12695
12979
|
updatedAt: string | null;
|
|
12696
12980
|
}>;
|
|
12697
12981
|
};
|
|
12982
|
+
session: {
|
|
12983
|
+
identify(value: string | CustomerSession): void;
|
|
12984
|
+
reset: () => void;
|
|
12985
|
+
subscribeIdentity(listener: () => void, beforeChange?: () => void): () => void;
|
|
12986
|
+
access(): string | Promise<string>;
|
|
12987
|
+
peek: () => string | undefined;
|
|
12988
|
+
snapshot: () => {
|
|
12989
|
+
customerId: string;
|
|
12990
|
+
sessionId: string;
|
|
12991
|
+
accessToken: string;
|
|
12992
|
+
refreshToken: string;
|
|
12993
|
+
expiresAt: string;
|
|
12994
|
+
refreshExpiresAt: string;
|
|
12995
|
+
} | undefined;
|
|
12996
|
+
refresh: () => Promise<{
|
|
12997
|
+
customerId: string;
|
|
12998
|
+
sessionId: string;
|
|
12999
|
+
accessToken: string;
|
|
13000
|
+
refreshToken: string;
|
|
13001
|
+
expiresAt: string;
|
|
13002
|
+
refreshExpiresAt: string;
|
|
13003
|
+
}>;
|
|
13004
|
+
};
|
|
12698
13005
|
};
|
|
12699
13006
|
|
|
12700
13007
|
interface FunnelStorageLocks {
|
|
@@ -13017,18 +13324,18 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
13017
13324
|
ranges: [number, number][];
|
|
13018
13325
|
attribute?: string | undefined;
|
|
13019
13326
|
}[] | undefined;
|
|
13327
|
+
condition?: Record<string, zod.JSONType> | undefined;
|
|
13328
|
+
force?: number | undefined;
|
|
13329
|
+
hashAttribute?: string | undefined;
|
|
13020
13330
|
seed?: string | undefined;
|
|
13021
13331
|
hashVersion?: 2 | undefined;
|
|
13022
13332
|
ranges?: [number, number][] | undefined;
|
|
13023
|
-
condition?: Record<string, zod.JSONType> | undefined;
|
|
13024
13333
|
urlPatterns?: {
|
|
13025
13334
|
include: boolean;
|
|
13026
13335
|
type: "regex" | "simple";
|
|
13027
13336
|
pattern: string;
|
|
13028
13337
|
}[] | undefined;
|
|
13029
|
-
force?: number | undefined;
|
|
13030
13338
|
persistQueryString?: boolean | undefined;
|
|
13031
|
-
hashAttribute?: string | undefined;
|
|
13032
13339
|
parentConditions?: {
|
|
13033
13340
|
id: string;
|
|
13034
13341
|
condition: Record<string, zod.JSONType>;
|
|
@@ -13237,6 +13544,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
13237
13544
|
notParticipating: string;
|
|
13238
13545
|
id: string;
|
|
13239
13546
|
name: string;
|
|
13547
|
+
applyPageExperiment?: true | undefined;
|
|
13240
13548
|
position?: {
|
|
13241
13549
|
x: number;
|
|
13242
13550
|
y: number;
|
|
@@ -13277,7 +13585,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
13277
13585
|
event: string;
|
|
13278
13586
|
} | {
|
|
13279
13587
|
type: "api";
|
|
13280
|
-
operation: "update" | "
|
|
13588
|
+
operation: "update" | "refund" | "sendMessage" | "readBalanceSource" | "adjustBalance" | "readUsage" | "setUsage" | "manageBalanceGrant" | "listBalanceGrants" | "restoreNativePurchase" | "setupPayment" | "readPaymentSetup" | "verifySubscriptions" | "previewAttach" | "attach" | "readSubscriptionOperation" | "previewUpdate" | "readSubscriptionUpdate" | "previewRefund" | "readRefund" | "readBillingControls" | "prepareBillingAuthorization" | "confirmBillingAuthorization" | "setBillingCoupons" | "revokeBillingAuthorization" | "listBillingInvoices" | "confirmBillingAdjustment" | "manageBillingLimits" | "manageUsageEntity" | "readUsageAnalytics" | "readCreditAnalytics" | "submitUsageBatch" | "readUsageBatch" | "checkEntitlement" | "resolveOffering" | "readHoldings" | "readLedger" | "readBillingInvoice" | "readCreditStatement" | "quoteBalance" | "trackUsage" | "mutateBalance" | "redeemReward" | "createReferralCode" | "claimRewardProduct" | "readSeats" | "manageSeat" | "redeemCoupon" | "listOffers" | "grantOffer";
|
|
13281
13589
|
inputs: Record<string, {
|
|
13282
13590
|
source: "literal";
|
|
13283
13591
|
value: zod.JSONType;
|
|
@@ -14320,7 +14628,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
14320
14628
|
visit: number;
|
|
14321
14629
|
nodeId: string;
|
|
14322
14630
|
nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
|
|
14323
|
-
status: "
|
|
14631
|
+
status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
|
|
14324
14632
|
stopped: boolean;
|
|
14325
14633
|
canBack: boolean;
|
|
14326
14634
|
authenticated: boolean;
|
|
@@ -14602,7 +14910,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
14602
14910
|
cursor: {
|
|
14603
14911
|
at: string;
|
|
14604
14912
|
id: string;
|
|
14605
|
-
type: "
|
|
14913
|
+
type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
|
|
14606
14914
|
};
|
|
14607
14915
|
} | {
|
|
14608
14916
|
kind: "billing";
|
|
@@ -15040,7 +15348,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
15040
15348
|
totalMinor: number;
|
|
15041
15349
|
} | null;
|
|
15042
15350
|
expiresAt: string;
|
|
15043
|
-
provider: "
|
|
15351
|
+
provider: "stripe" | "apple" | "google";
|
|
15044
15352
|
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";
|
|
15045
15353
|
lines: {
|
|
15046
15354
|
lineId: string;
|
|
@@ -15100,9 +15408,9 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
15100
15408
|
automaticTax: boolean;
|
|
15101
15409
|
execution: {
|
|
15102
15410
|
provider: "stripe";
|
|
15103
|
-
executor: "
|
|
15411
|
+
executor: "indiana" | "merchant";
|
|
15104
15412
|
accountId: string;
|
|
15105
|
-
mode: "
|
|
15413
|
+
mode: "payment" | "subscription";
|
|
15106
15414
|
lineItems: {
|
|
15107
15415
|
price: string | null;
|
|
15108
15416
|
quantity: number;
|
|
@@ -15172,13 +15480,13 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
15172
15480
|
operationId: string;
|
|
15173
15481
|
orderId: string;
|
|
15174
15482
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
15175
|
-
executor: "
|
|
15483
|
+
executor: "indiana" | "merchant";
|
|
15176
15484
|
checkoutUrl: string | null;
|
|
15177
15485
|
execution: {
|
|
15178
15486
|
provider: "stripe";
|
|
15179
|
-
executor: "
|
|
15487
|
+
executor: "indiana" | "merchant";
|
|
15180
15488
|
accountId: string;
|
|
15181
|
-
mode: "
|
|
15489
|
+
mode: "payment" | "subscription";
|
|
15182
15490
|
lineItems: {
|
|
15183
15491
|
price: string | null;
|
|
15184
15492
|
quantity: number;
|
|
@@ -15249,7 +15557,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
15249
15557
|
productVersionId: string;
|
|
15250
15558
|
provider: "apple" | "google";
|
|
15251
15559
|
productId: string;
|
|
15252
|
-
productKind: "
|
|
15560
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
15253
15561
|
replacement: {
|
|
15254
15562
|
sourceOrderId: string;
|
|
15255
15563
|
sourceProductId: string;
|
|
@@ -15352,7 +15660,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
15352
15660
|
} | {
|
|
15353
15661
|
type: "client_action";
|
|
15354
15662
|
receiptId: string;
|
|
15355
|
-
outcome: "success" | "
|
|
15663
|
+
outcome: "success" | "cancel" | "failed" | "opened" | "failure";
|
|
15356
15664
|
};
|
|
15357
15665
|
requestId: string;
|
|
15358
15666
|
nodeId: string;
|
|
@@ -15425,7 +15733,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
15425
15733
|
} | {
|
|
15426
15734
|
type: "client_action";
|
|
15427
15735
|
receiptId: string;
|
|
15428
|
-
outcome: "success" | "
|
|
15736
|
+
outcome: "success" | "cancel" | "failed" | "opened" | "failure";
|
|
15429
15737
|
};
|
|
15430
15738
|
requestId: string;
|
|
15431
15739
|
nodeId: string;
|
|
@@ -15486,7 +15794,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
15486
15794
|
visit: number;
|
|
15487
15795
|
nodeId: string;
|
|
15488
15796
|
nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
|
|
15489
|
-
status: "
|
|
15797
|
+
status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
|
|
15490
15798
|
stopped: boolean;
|
|
15491
15799
|
canBack: boolean;
|
|
15492
15800
|
authenticated: boolean;
|
|
@@ -15768,7 +16076,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
15768
16076
|
cursor: {
|
|
15769
16077
|
at: string;
|
|
15770
16078
|
id: string;
|
|
15771
|
-
type: "
|
|
16079
|
+
type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
|
|
15772
16080
|
};
|
|
15773
16081
|
} | {
|
|
15774
16082
|
kind: "billing";
|
|
@@ -16206,7 +16514,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
16206
16514
|
totalMinor: number;
|
|
16207
16515
|
} | null;
|
|
16208
16516
|
expiresAt: string;
|
|
16209
|
-
provider: "
|
|
16517
|
+
provider: "stripe" | "apple" | "google";
|
|
16210
16518
|
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";
|
|
16211
16519
|
lines: {
|
|
16212
16520
|
lineId: string;
|
|
@@ -16266,9 +16574,9 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
16266
16574
|
automaticTax: boolean;
|
|
16267
16575
|
execution: {
|
|
16268
16576
|
provider: "stripe";
|
|
16269
|
-
executor: "
|
|
16577
|
+
executor: "indiana" | "merchant";
|
|
16270
16578
|
accountId: string;
|
|
16271
|
-
mode: "
|
|
16579
|
+
mode: "payment" | "subscription";
|
|
16272
16580
|
lineItems: {
|
|
16273
16581
|
price: string | null;
|
|
16274
16582
|
quantity: number;
|
|
@@ -16338,13 +16646,13 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
16338
16646
|
operationId: string;
|
|
16339
16647
|
orderId: string;
|
|
16340
16648
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
16341
|
-
executor: "
|
|
16649
|
+
executor: "indiana" | "merchant";
|
|
16342
16650
|
checkoutUrl: string | null;
|
|
16343
16651
|
execution: {
|
|
16344
16652
|
provider: "stripe";
|
|
16345
|
-
executor: "
|
|
16653
|
+
executor: "indiana" | "merchant";
|
|
16346
16654
|
accountId: string;
|
|
16347
|
-
mode: "
|
|
16655
|
+
mode: "payment" | "subscription";
|
|
16348
16656
|
lineItems: {
|
|
16349
16657
|
price: string | null;
|
|
16350
16658
|
quantity: number;
|
|
@@ -16415,7 +16723,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
16415
16723
|
productVersionId: string;
|
|
16416
16724
|
provider: "apple" | "google";
|
|
16417
16725
|
productId: string;
|
|
16418
|
-
productKind: "
|
|
16726
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
16419
16727
|
replacement: {
|
|
16420
16728
|
sourceOrderId: string;
|
|
16421
16729
|
sourceProductId: string;
|
|
@@ -16531,7 +16839,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
16531
16839
|
totalMinor: number;
|
|
16532
16840
|
} | null;
|
|
16533
16841
|
expiresAt: string;
|
|
16534
|
-
provider: "
|
|
16842
|
+
provider: "stripe" | "apple" | "google";
|
|
16535
16843
|
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";
|
|
16536
16844
|
lines: {
|
|
16537
16845
|
lineId: string;
|
|
@@ -16591,9 +16899,9 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
16591
16899
|
automaticTax: boolean;
|
|
16592
16900
|
execution: {
|
|
16593
16901
|
provider: "stripe";
|
|
16594
|
-
executor: "
|
|
16902
|
+
executor: "indiana" | "merchant";
|
|
16595
16903
|
accountId: string;
|
|
16596
|
-
mode: "
|
|
16904
|
+
mode: "payment" | "subscription";
|
|
16597
16905
|
lineItems: {
|
|
16598
16906
|
price: string | null;
|
|
16599
16907
|
quantity: number;
|
|
@@ -16663,13 +16971,13 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
16663
16971
|
operationId: string;
|
|
16664
16972
|
orderId: string;
|
|
16665
16973
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
16666
|
-
executor: "
|
|
16974
|
+
executor: "indiana" | "merchant";
|
|
16667
16975
|
checkoutUrl: string | null;
|
|
16668
16976
|
execution: {
|
|
16669
16977
|
provider: "stripe";
|
|
16670
|
-
executor: "
|
|
16978
|
+
executor: "indiana" | "merchant";
|
|
16671
16979
|
accountId: string;
|
|
16672
|
-
mode: "
|
|
16980
|
+
mode: "payment" | "subscription";
|
|
16673
16981
|
lineItems: {
|
|
16674
16982
|
price: string | null;
|
|
16675
16983
|
quantity: number;
|
|
@@ -16740,7 +17048,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
16740
17048
|
productVersionId: string;
|
|
16741
17049
|
provider: "apple" | "google";
|
|
16742
17050
|
productId: string;
|
|
16743
|
-
productKind: "
|
|
17051
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
16744
17052
|
replacement: {
|
|
16745
17053
|
sourceOrderId: string;
|
|
16746
17054
|
sourceProductId: string;
|
|
@@ -17151,6 +17459,136 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
17151
17459
|
};
|
|
17152
17460
|
} | undefined;
|
|
17153
17461
|
}>;
|
|
17462
|
+
pageExperiments(release: string, usedReceiptIds?: string[]): Promise<{
|
|
17463
|
+
scope: {
|
|
17464
|
+
projectId: string;
|
|
17465
|
+
environment: "sandbox" | "live";
|
|
17466
|
+
};
|
|
17467
|
+
runId: string;
|
|
17468
|
+
assignments: {
|
|
17469
|
+
experimentId: string;
|
|
17470
|
+
experimentKey: string;
|
|
17471
|
+
variationKey: string;
|
|
17472
|
+
inExperiment: boolean;
|
|
17473
|
+
generation: string;
|
|
17474
|
+
receiptId: string;
|
|
17475
|
+
}[];
|
|
17476
|
+
payload: {
|
|
17477
|
+
trackExposures: boolean;
|
|
17478
|
+
environmentId: string;
|
|
17479
|
+
generation: string;
|
|
17480
|
+
experiments: {
|
|
17481
|
+
key: string;
|
|
17482
|
+
changeId: string;
|
|
17483
|
+
variations: [{
|
|
17484
|
+
css: string;
|
|
17485
|
+
js: string;
|
|
17486
|
+
domMutations: {
|
|
17487
|
+
selector: string;
|
|
17488
|
+
action: "set" | "remove" | "append";
|
|
17489
|
+
attribute: string;
|
|
17490
|
+
value?: string | undefined;
|
|
17491
|
+
parentSelector?: string | undefined;
|
|
17492
|
+
insertBeforeSelector?: string | undefined;
|
|
17493
|
+
}[];
|
|
17494
|
+
renderGuard?: {
|
|
17495
|
+
schemaVersion: 1;
|
|
17496
|
+
renderKey: string;
|
|
17497
|
+
routeTemplate: string;
|
|
17498
|
+
selectors: string[];
|
|
17499
|
+
present: number[];
|
|
17500
|
+
absent: number[];
|
|
17501
|
+
} | undefined;
|
|
17502
|
+
}, {
|
|
17503
|
+
css: string;
|
|
17504
|
+
js: string;
|
|
17505
|
+
domMutations: {
|
|
17506
|
+
selector: string;
|
|
17507
|
+
action: "set" | "remove" | "append";
|
|
17508
|
+
attribute: string;
|
|
17509
|
+
value?: string | undefined;
|
|
17510
|
+
parentSelector?: string | undefined;
|
|
17511
|
+
insertBeforeSelector?: string | undefined;
|
|
17512
|
+
}[];
|
|
17513
|
+
renderGuard?: {
|
|
17514
|
+
schemaVersion: 1;
|
|
17515
|
+
renderKey: string;
|
|
17516
|
+
routeTemplate: string;
|
|
17517
|
+
selectors: string[];
|
|
17518
|
+
present: number[];
|
|
17519
|
+
absent: number[];
|
|
17520
|
+
} | undefined;
|
|
17521
|
+
}, ...{
|
|
17522
|
+
css: string;
|
|
17523
|
+
js: string;
|
|
17524
|
+
domMutations: {
|
|
17525
|
+
selector: string;
|
|
17526
|
+
action: "set" | "remove" | "append";
|
|
17527
|
+
attribute: string;
|
|
17528
|
+
value?: string | undefined;
|
|
17529
|
+
parentSelector?: string | undefined;
|
|
17530
|
+
insertBeforeSelector?: string | undefined;
|
|
17531
|
+
}[];
|
|
17532
|
+
renderGuard?: {
|
|
17533
|
+
schemaVersion: 1;
|
|
17534
|
+
renderKey: string;
|
|
17535
|
+
routeTemplate: string;
|
|
17536
|
+
selectors: string[];
|
|
17537
|
+
present: number[];
|
|
17538
|
+
absent: number[];
|
|
17539
|
+
} | undefined;
|
|
17540
|
+
}[]];
|
|
17541
|
+
name?: string | undefined;
|
|
17542
|
+
filters?: {
|
|
17543
|
+
seed: string;
|
|
17544
|
+
hashVersion: 2;
|
|
17545
|
+
ranges: [number, number][];
|
|
17546
|
+
attribute?: string | undefined;
|
|
17547
|
+
}[] | undefined;
|
|
17548
|
+
condition?: Record<string, zod.JSONType> | undefined;
|
|
17549
|
+
force?: number | undefined;
|
|
17550
|
+
hashAttribute?: string | undefined;
|
|
17551
|
+
seed?: string | undefined;
|
|
17552
|
+
hashVersion?: 2 | undefined;
|
|
17553
|
+
ranges?: [number, number][] | undefined;
|
|
17554
|
+
urlPatterns?: {
|
|
17555
|
+
include: boolean;
|
|
17556
|
+
type: "regex" | "simple";
|
|
17557
|
+
pattern: string;
|
|
17558
|
+
}[] | undefined;
|
|
17559
|
+
persistQueryString?: boolean | undefined;
|
|
17560
|
+
parentConditions?: {
|
|
17561
|
+
id: string;
|
|
17562
|
+
condition: Record<string, zod.JSONType>;
|
|
17563
|
+
gate?: boolean | undefined;
|
|
17564
|
+
}[] | undefined;
|
|
17565
|
+
weights?: number[] | undefined;
|
|
17566
|
+
coverage?: number | undefined;
|
|
17567
|
+
fallbackAttribute?: string | undefined;
|
|
17568
|
+
disableStickyBucketing?: boolean | undefined;
|
|
17569
|
+
bucketVersion?: number | undefined;
|
|
17570
|
+
minBucketVersion?: number | undefined;
|
|
17571
|
+
meta?: {
|
|
17572
|
+
key?: string | undefined;
|
|
17573
|
+
name?: string | undefined;
|
|
17574
|
+
passthrough?: boolean | undefined;
|
|
17575
|
+
}[] | undefined;
|
|
17576
|
+
phase?: string | undefined;
|
|
17577
|
+
}[];
|
|
17578
|
+
savedGroups: Record<string, {
|
|
17579
|
+
type: "hashed";
|
|
17580
|
+
attributeKey: string;
|
|
17581
|
+
values: string[];
|
|
17582
|
+
} | {
|
|
17583
|
+
type: "list";
|
|
17584
|
+
attributeKey: string;
|
|
17585
|
+
values: (string | number)[];
|
|
17586
|
+
} | {
|
|
17587
|
+
type: "condition";
|
|
17588
|
+
condition: Record<string, zod.JSONType>;
|
|
17589
|
+
}>;
|
|
17590
|
+
};
|
|
17591
|
+
}>;
|
|
17154
17592
|
review(receiptId?: string): Promise<{
|
|
17155
17593
|
scope: {
|
|
17156
17594
|
projectId: string;
|
|
@@ -17167,7 +17605,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
17167
17605
|
visit: number;
|
|
17168
17606
|
nodeId: string;
|
|
17169
17607
|
nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
|
|
17170
|
-
status: "
|
|
17608
|
+
status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
|
|
17171
17609
|
stopped: boolean;
|
|
17172
17610
|
canBack: boolean;
|
|
17173
17611
|
authenticated: boolean;
|
|
@@ -17449,7 +17887,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
17449
17887
|
cursor: {
|
|
17450
17888
|
at: string;
|
|
17451
17889
|
id: string;
|
|
17452
|
-
type: "
|
|
17890
|
+
type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
|
|
17453
17891
|
};
|
|
17454
17892
|
} | {
|
|
17455
17893
|
kind: "billing";
|
|
@@ -17887,7 +18325,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
17887
18325
|
totalMinor: number;
|
|
17888
18326
|
} | null;
|
|
17889
18327
|
expiresAt: string;
|
|
17890
|
-
provider: "
|
|
18328
|
+
provider: "stripe" | "apple" | "google";
|
|
17891
18329
|
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";
|
|
17892
18330
|
lines: {
|
|
17893
18331
|
lineId: string;
|
|
@@ -17947,9 +18385,9 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
17947
18385
|
automaticTax: boolean;
|
|
17948
18386
|
execution: {
|
|
17949
18387
|
provider: "stripe";
|
|
17950
|
-
executor: "
|
|
18388
|
+
executor: "indiana" | "merchant";
|
|
17951
18389
|
accountId: string;
|
|
17952
|
-
mode: "
|
|
18390
|
+
mode: "payment" | "subscription";
|
|
17953
18391
|
lineItems: {
|
|
17954
18392
|
price: string | null;
|
|
17955
18393
|
quantity: number;
|
|
@@ -18019,13 +18457,13 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
18019
18457
|
operationId: string;
|
|
18020
18458
|
orderId: string;
|
|
18021
18459
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
18022
|
-
executor: "
|
|
18460
|
+
executor: "indiana" | "merchant";
|
|
18023
18461
|
checkoutUrl: string | null;
|
|
18024
18462
|
execution: {
|
|
18025
18463
|
provider: "stripe";
|
|
18026
|
-
executor: "
|
|
18464
|
+
executor: "indiana" | "merchant";
|
|
18027
18465
|
accountId: string;
|
|
18028
|
-
mode: "
|
|
18466
|
+
mode: "payment" | "subscription";
|
|
18029
18467
|
lineItems: {
|
|
18030
18468
|
price: string | null;
|
|
18031
18469
|
quantity: number;
|
|
@@ -18096,7 +18534,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
18096
18534
|
productVersionId: string;
|
|
18097
18535
|
provider: "apple" | "google";
|
|
18098
18536
|
productId: string;
|
|
18099
|
-
productKind: "
|
|
18537
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
18100
18538
|
replacement: {
|
|
18101
18539
|
sourceOrderId: string;
|
|
18102
18540
|
sourceProductId: string;
|
|
@@ -18212,7 +18650,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
18212
18650
|
totalMinor: number;
|
|
18213
18651
|
} | null;
|
|
18214
18652
|
expiresAt: string;
|
|
18215
|
-
provider: "
|
|
18653
|
+
provider: "stripe" | "apple" | "google";
|
|
18216
18654
|
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";
|
|
18217
18655
|
lines: {
|
|
18218
18656
|
lineId: string;
|
|
@@ -18272,9 +18710,9 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
18272
18710
|
automaticTax: boolean;
|
|
18273
18711
|
execution: {
|
|
18274
18712
|
provider: "stripe";
|
|
18275
|
-
executor: "
|
|
18713
|
+
executor: "indiana" | "merchant";
|
|
18276
18714
|
accountId: string;
|
|
18277
|
-
mode: "
|
|
18715
|
+
mode: "payment" | "subscription";
|
|
18278
18716
|
lineItems: {
|
|
18279
18717
|
price: string | null;
|
|
18280
18718
|
quantity: number;
|
|
@@ -18344,13 +18782,13 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
18344
18782
|
operationId: string;
|
|
18345
18783
|
orderId: string;
|
|
18346
18784
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
18347
|
-
executor: "
|
|
18785
|
+
executor: "indiana" | "merchant";
|
|
18348
18786
|
checkoutUrl: string | null;
|
|
18349
18787
|
execution: {
|
|
18350
18788
|
provider: "stripe";
|
|
18351
|
-
executor: "
|
|
18789
|
+
executor: "indiana" | "merchant";
|
|
18352
18790
|
accountId: string;
|
|
18353
|
-
mode: "
|
|
18791
|
+
mode: "payment" | "subscription";
|
|
18354
18792
|
lineItems: {
|
|
18355
18793
|
price: string | null;
|
|
18356
18794
|
quantity: number;
|
|
@@ -18421,7 +18859,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
18421
18859
|
productVersionId: string;
|
|
18422
18860
|
provider: "apple" | "google";
|
|
18423
18861
|
productId: string;
|
|
18424
|
-
productKind: "
|
|
18862
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
18425
18863
|
replacement: {
|
|
18426
18864
|
sourceOrderId: string;
|
|
18427
18865
|
sourceProductId: string;
|
|
@@ -18586,7 +19024,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
18586
19024
|
visit: number;
|
|
18587
19025
|
nodeId: string;
|
|
18588
19026
|
nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
|
|
18589
|
-
status: "
|
|
19027
|
+
status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
|
|
18590
19028
|
stopped: boolean;
|
|
18591
19029
|
canBack: boolean;
|
|
18592
19030
|
authenticated: boolean;
|
|
@@ -18868,7 +19306,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
18868
19306
|
cursor: {
|
|
18869
19307
|
at: string;
|
|
18870
19308
|
id: string;
|
|
18871
|
-
type: "
|
|
19309
|
+
type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
|
|
18872
19310
|
};
|
|
18873
19311
|
} | {
|
|
18874
19312
|
kind: "billing";
|
|
@@ -19306,7 +19744,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
19306
19744
|
totalMinor: number;
|
|
19307
19745
|
} | null;
|
|
19308
19746
|
expiresAt: string;
|
|
19309
|
-
provider: "
|
|
19747
|
+
provider: "stripe" | "apple" | "google";
|
|
19310
19748
|
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";
|
|
19311
19749
|
lines: {
|
|
19312
19750
|
lineId: string;
|
|
@@ -19366,9 +19804,9 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
19366
19804
|
automaticTax: boolean;
|
|
19367
19805
|
execution: {
|
|
19368
19806
|
provider: "stripe";
|
|
19369
|
-
executor: "
|
|
19807
|
+
executor: "indiana" | "merchant";
|
|
19370
19808
|
accountId: string;
|
|
19371
|
-
mode: "
|
|
19809
|
+
mode: "payment" | "subscription";
|
|
19372
19810
|
lineItems: {
|
|
19373
19811
|
price: string | null;
|
|
19374
19812
|
quantity: number;
|
|
@@ -19438,13 +19876,13 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
19438
19876
|
operationId: string;
|
|
19439
19877
|
orderId: string;
|
|
19440
19878
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
19441
|
-
executor: "
|
|
19879
|
+
executor: "indiana" | "merchant";
|
|
19442
19880
|
checkoutUrl: string | null;
|
|
19443
19881
|
execution: {
|
|
19444
19882
|
provider: "stripe";
|
|
19445
|
-
executor: "
|
|
19883
|
+
executor: "indiana" | "merchant";
|
|
19446
19884
|
accountId: string;
|
|
19447
|
-
mode: "
|
|
19885
|
+
mode: "payment" | "subscription";
|
|
19448
19886
|
lineItems: {
|
|
19449
19887
|
price: string | null;
|
|
19450
19888
|
quantity: number;
|
|
@@ -19515,7 +19953,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
19515
19953
|
productVersionId: string;
|
|
19516
19954
|
provider: "apple" | "google";
|
|
19517
19955
|
productId: string;
|
|
19518
|
-
productKind: "
|
|
19956
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
19519
19957
|
replacement: {
|
|
19520
19958
|
sourceOrderId: string;
|
|
19521
19959
|
sourceProductId: string;
|
|
@@ -19631,7 +20069,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
19631
20069
|
totalMinor: number;
|
|
19632
20070
|
} | null;
|
|
19633
20071
|
expiresAt: string;
|
|
19634
|
-
provider: "
|
|
20072
|
+
provider: "stripe" | "apple" | "google";
|
|
19635
20073
|
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";
|
|
19636
20074
|
lines: {
|
|
19637
20075
|
lineId: string;
|
|
@@ -19691,9 +20129,9 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
19691
20129
|
automaticTax: boolean;
|
|
19692
20130
|
execution: {
|
|
19693
20131
|
provider: "stripe";
|
|
19694
|
-
executor: "
|
|
20132
|
+
executor: "indiana" | "merchant";
|
|
19695
20133
|
accountId: string;
|
|
19696
|
-
mode: "
|
|
20134
|
+
mode: "payment" | "subscription";
|
|
19697
20135
|
lineItems: {
|
|
19698
20136
|
price: string | null;
|
|
19699
20137
|
quantity: number;
|
|
@@ -19763,13 +20201,13 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
19763
20201
|
operationId: string;
|
|
19764
20202
|
orderId: string;
|
|
19765
20203
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
19766
|
-
executor: "
|
|
20204
|
+
executor: "indiana" | "merchant";
|
|
19767
20205
|
checkoutUrl: string | null;
|
|
19768
20206
|
execution: {
|
|
19769
20207
|
provider: "stripe";
|
|
19770
|
-
executor: "
|
|
20208
|
+
executor: "indiana" | "merchant";
|
|
19771
20209
|
accountId: string;
|
|
19772
|
-
mode: "
|
|
20210
|
+
mode: "payment" | "subscription";
|
|
19773
20211
|
lineItems: {
|
|
19774
20212
|
price: string | null;
|
|
19775
20213
|
quantity: number;
|
|
@@ -19840,7 +20278,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
19840
20278
|
productVersionId: string;
|
|
19841
20279
|
provider: "apple" | "google";
|
|
19842
20280
|
productId: string;
|
|
19843
|
-
productKind: "
|
|
20281
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
19844
20282
|
replacement: {
|
|
19845
20283
|
sourceOrderId: string;
|
|
19846
20284
|
sourceProductId: string;
|
|
@@ -20003,7 +20441,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
20003
20441
|
visit: number;
|
|
20004
20442
|
nodeId: string;
|
|
20005
20443
|
nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
|
|
20006
|
-
status: "
|
|
20444
|
+
status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
|
|
20007
20445
|
stopped: boolean;
|
|
20008
20446
|
canBack: boolean;
|
|
20009
20447
|
authenticated: boolean;
|
|
@@ -20285,7 +20723,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
20285
20723
|
cursor: {
|
|
20286
20724
|
at: string;
|
|
20287
20725
|
id: string;
|
|
20288
|
-
type: "
|
|
20726
|
+
type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
|
|
20289
20727
|
};
|
|
20290
20728
|
} | {
|
|
20291
20729
|
kind: "billing";
|
|
@@ -20723,7 +21161,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
20723
21161
|
totalMinor: number;
|
|
20724
21162
|
} | null;
|
|
20725
21163
|
expiresAt: string;
|
|
20726
|
-
provider: "
|
|
21164
|
+
provider: "stripe" | "apple" | "google";
|
|
20727
21165
|
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";
|
|
20728
21166
|
lines: {
|
|
20729
21167
|
lineId: string;
|
|
@@ -20783,9 +21221,9 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
20783
21221
|
automaticTax: boolean;
|
|
20784
21222
|
execution: {
|
|
20785
21223
|
provider: "stripe";
|
|
20786
|
-
executor: "
|
|
21224
|
+
executor: "indiana" | "merchant";
|
|
20787
21225
|
accountId: string;
|
|
20788
|
-
mode: "
|
|
21226
|
+
mode: "payment" | "subscription";
|
|
20789
21227
|
lineItems: {
|
|
20790
21228
|
price: string | null;
|
|
20791
21229
|
quantity: number;
|
|
@@ -20855,13 +21293,13 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
20855
21293
|
operationId: string;
|
|
20856
21294
|
orderId: string;
|
|
20857
21295
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
20858
|
-
executor: "
|
|
21296
|
+
executor: "indiana" | "merchant";
|
|
20859
21297
|
checkoutUrl: string | null;
|
|
20860
21298
|
execution: {
|
|
20861
21299
|
provider: "stripe";
|
|
20862
|
-
executor: "
|
|
21300
|
+
executor: "indiana" | "merchant";
|
|
20863
21301
|
accountId: string;
|
|
20864
|
-
mode: "
|
|
21302
|
+
mode: "payment" | "subscription";
|
|
20865
21303
|
lineItems: {
|
|
20866
21304
|
price: string | null;
|
|
20867
21305
|
quantity: number;
|
|
@@ -20932,7 +21370,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
20932
21370
|
productVersionId: string;
|
|
20933
21371
|
provider: "apple" | "google";
|
|
20934
21372
|
productId: string;
|
|
20935
|
-
productKind: "
|
|
21373
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
20936
21374
|
replacement: {
|
|
20937
21375
|
sourceOrderId: string;
|
|
20938
21376
|
sourceProductId: string;
|
|
@@ -21048,7 +21486,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
21048
21486
|
totalMinor: number;
|
|
21049
21487
|
} | null;
|
|
21050
21488
|
expiresAt: string;
|
|
21051
|
-
provider: "
|
|
21489
|
+
provider: "stripe" | "apple" | "google";
|
|
21052
21490
|
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";
|
|
21053
21491
|
lines: {
|
|
21054
21492
|
lineId: string;
|
|
@@ -21108,9 +21546,9 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
21108
21546
|
automaticTax: boolean;
|
|
21109
21547
|
execution: {
|
|
21110
21548
|
provider: "stripe";
|
|
21111
|
-
executor: "
|
|
21549
|
+
executor: "indiana" | "merchant";
|
|
21112
21550
|
accountId: string;
|
|
21113
|
-
mode: "
|
|
21551
|
+
mode: "payment" | "subscription";
|
|
21114
21552
|
lineItems: {
|
|
21115
21553
|
price: string | null;
|
|
21116
21554
|
quantity: number;
|
|
@@ -21180,13 +21618,13 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
21180
21618
|
operationId: string;
|
|
21181
21619
|
orderId: string;
|
|
21182
21620
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
21183
|
-
executor: "
|
|
21621
|
+
executor: "indiana" | "merchant";
|
|
21184
21622
|
checkoutUrl: string | null;
|
|
21185
21623
|
execution: {
|
|
21186
21624
|
provider: "stripe";
|
|
21187
|
-
executor: "
|
|
21625
|
+
executor: "indiana" | "merchant";
|
|
21188
21626
|
accountId: string;
|
|
21189
|
-
mode: "
|
|
21627
|
+
mode: "payment" | "subscription";
|
|
21190
21628
|
lineItems: {
|
|
21191
21629
|
price: string | null;
|
|
21192
21630
|
quantity: number;
|
|
@@ -21257,7 +21695,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
21257
21695
|
productVersionId: string;
|
|
21258
21696
|
provider: "apple" | "google";
|
|
21259
21697
|
productId: string;
|
|
21260
|
-
productKind: "
|
|
21698
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
21261
21699
|
replacement: {
|
|
21262
21700
|
sourceOrderId: string;
|
|
21263
21701
|
sourceProductId: string;
|
|
@@ -21423,7 +21861,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
21423
21861
|
visit: number;
|
|
21424
21862
|
nodeId: string;
|
|
21425
21863
|
nodeType: "output" | "action" | "feature" | "split" | "condition" | "entry" | "coupon" | "end" | "screen" | "offering" | "coupons" | "external_page" | "wait";
|
|
21426
|
-
status: "
|
|
21864
|
+
status: "running" | "failed" | "completed" | "closed" | "ineligible" | "waiting";
|
|
21427
21865
|
stopped: boolean;
|
|
21428
21866
|
canBack: boolean;
|
|
21429
21867
|
authenticated: boolean;
|
|
@@ -21705,7 +22143,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
21705
22143
|
cursor: {
|
|
21706
22144
|
at: string;
|
|
21707
22145
|
id: string;
|
|
21708
|
-
type: "
|
|
22146
|
+
type: "usage" | "source" | "invoice" | "debt" | "transaction" | "settlement";
|
|
21709
22147
|
};
|
|
21710
22148
|
} | {
|
|
21711
22149
|
kind: "billing";
|
|
@@ -22143,7 +22581,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
22143
22581
|
totalMinor: number;
|
|
22144
22582
|
} | null;
|
|
22145
22583
|
expiresAt: string;
|
|
22146
|
-
provider: "
|
|
22584
|
+
provider: "stripe" | "apple" | "google";
|
|
22147
22585
|
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";
|
|
22148
22586
|
lines: {
|
|
22149
22587
|
lineId: string;
|
|
@@ -22203,9 +22641,9 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
22203
22641
|
automaticTax: boolean;
|
|
22204
22642
|
execution: {
|
|
22205
22643
|
provider: "stripe";
|
|
22206
|
-
executor: "
|
|
22644
|
+
executor: "indiana" | "merchant";
|
|
22207
22645
|
accountId: string;
|
|
22208
|
-
mode: "
|
|
22646
|
+
mode: "payment" | "subscription";
|
|
22209
22647
|
lineItems: {
|
|
22210
22648
|
price: string | null;
|
|
22211
22649
|
quantity: number;
|
|
@@ -22275,13 +22713,13 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
22275
22713
|
operationId: string;
|
|
22276
22714
|
orderId: string;
|
|
22277
22715
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
22278
|
-
executor: "
|
|
22716
|
+
executor: "indiana" | "merchant";
|
|
22279
22717
|
checkoutUrl: string | null;
|
|
22280
22718
|
execution: {
|
|
22281
22719
|
provider: "stripe";
|
|
22282
|
-
executor: "
|
|
22720
|
+
executor: "indiana" | "merchant";
|
|
22283
22721
|
accountId: string;
|
|
22284
|
-
mode: "
|
|
22722
|
+
mode: "payment" | "subscription";
|
|
22285
22723
|
lineItems: {
|
|
22286
22724
|
price: string | null;
|
|
22287
22725
|
quantity: number;
|
|
@@ -22352,7 +22790,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
22352
22790
|
productVersionId: string;
|
|
22353
22791
|
provider: "apple" | "google";
|
|
22354
22792
|
productId: string;
|
|
22355
|
-
productKind: "
|
|
22793
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
22356
22794
|
replacement: {
|
|
22357
22795
|
sourceOrderId: string;
|
|
22358
22796
|
sourceProductId: string;
|
|
@@ -22468,7 +22906,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
22468
22906
|
totalMinor: number;
|
|
22469
22907
|
} | null;
|
|
22470
22908
|
expiresAt: string;
|
|
22471
|
-
provider: "
|
|
22909
|
+
provider: "stripe" | "apple" | "google";
|
|
22472
22910
|
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";
|
|
22473
22911
|
lines: {
|
|
22474
22912
|
lineId: string;
|
|
@@ -22528,9 +22966,9 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
22528
22966
|
automaticTax: boolean;
|
|
22529
22967
|
execution: {
|
|
22530
22968
|
provider: "stripe";
|
|
22531
|
-
executor: "
|
|
22969
|
+
executor: "indiana" | "merchant";
|
|
22532
22970
|
accountId: string;
|
|
22533
|
-
mode: "
|
|
22971
|
+
mode: "payment" | "subscription";
|
|
22534
22972
|
lineItems: {
|
|
22535
22973
|
price: string | null;
|
|
22536
22974
|
quantity: number;
|
|
@@ -22600,13 +23038,13 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
22600
23038
|
operationId: string;
|
|
22601
23039
|
orderId: string;
|
|
22602
23040
|
status: "pending" | "failed" | "complete" | "cancelled";
|
|
22603
|
-
executor: "
|
|
23041
|
+
executor: "indiana" | "merchant";
|
|
22604
23042
|
checkoutUrl: string | null;
|
|
22605
23043
|
execution: {
|
|
22606
23044
|
provider: "stripe";
|
|
22607
|
-
executor: "
|
|
23045
|
+
executor: "indiana" | "merchant";
|
|
22608
23046
|
accountId: string;
|
|
22609
|
-
mode: "
|
|
23047
|
+
mode: "payment" | "subscription";
|
|
22610
23048
|
lineItems: {
|
|
22611
23049
|
price: string | null;
|
|
22612
23050
|
quantity: number;
|
|
@@ -22677,7 +23115,7 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
22677
23115
|
productVersionId: string;
|
|
22678
23116
|
provider: "apple" | "google";
|
|
22679
23117
|
productId: string;
|
|
22680
|
-
productKind: "
|
|
23118
|
+
productKind: "lifetime" | "membership" | "credit_pack";
|
|
22681
23119
|
replacement: {
|
|
22682
23120
|
sourceOrderId: string;
|
|
22683
23121
|
sourceProductId: string;
|
|
@@ -22825,6 +23263,34 @@ declare function createFunnelClient(options: IndianaOptions & {
|
|
|
22825
23263
|
}>;
|
|
22826
23264
|
};
|
|
22827
23265
|
|
|
23266
|
+
type IamFunnelEntriesOptions = IndianaOptions & {
|
|
23267
|
+
scope: NonNullable<IndianaOptions["scope"]>;
|
|
23268
|
+
environmentId: string;
|
|
23269
|
+
appManifestRelease: string;
|
|
23270
|
+
session: NonNullable<IndianaOptions["session"]>;
|
|
23271
|
+
container: HTMLElement;
|
|
23272
|
+
host?: Omit<FunnelHostOptions, "client">;
|
|
23273
|
+
onStatus?: (status: string, entryId?: string) => void;
|
|
23274
|
+
};
|
|
23275
|
+
/** Explicitly installed Web presentation host. No source scan or automatic credential creation. */
|
|
23276
|
+
declare function createIamFunnelEntries(options: IamFunnelEntriesOptions): {
|
|
23277
|
+
start(): Promise<void>;
|
|
23278
|
+
refresh: () => Promise<void>;
|
|
23279
|
+
retry(): Promise<void>;
|
|
23280
|
+
destroy(): void;
|
|
23281
|
+
};
|
|
23282
|
+
|
|
23283
|
+
/** Uses the accepted Split key. No new bucketing, force override or anonymous exposure. */
|
|
23284
|
+
declare function createFunnelPageExperiments(options: {
|
|
23285
|
+
client: FunnelRunController;
|
|
23286
|
+
appManifestRelease: string;
|
|
23287
|
+
onError?: (error: unknown) => void;
|
|
23288
|
+
}): {
|
|
23289
|
+
start: () => Promise<void>;
|
|
23290
|
+
refresh: () => Promise<void>;
|
|
23291
|
+
destroy(): void;
|
|
23292
|
+
};
|
|
23293
|
+
|
|
22828
23294
|
declare function showPaywall(...args: Parameters<typeof showPaywall$1>): Promise<{
|
|
22829
23295
|
check: {
|
|
22830
23296
|
internal_feature_id: string;
|
|
@@ -23167,4 +23633,4 @@ declare function prepareContent(...args: Parameters<typeof prepareContent$1>): P
|
|
|
23167
23633
|
updateCapabilities: (data: SurfaceData) => void | undefined;
|
|
23168
23634
|
}>;
|
|
23169
23635
|
|
|
23170
|
-
export { ConfigurationSync, type ContentActionIntent, type ContentHostOptions, FeatureClientOptions, FunnelCommandStorage, type FunnelControllerResponse, type FunnelHostOptions, FunnelPurchaseRecovery, type FunnelResourceSource, type FunnelRunController, FunnelRuntimeResponse, FunnelSegmentPrediction, type IndianaFeatureOptions, IndianaOptions, Offer, type PaywallHostOptions, PaywallSession, createBrowserFunnelCommandStorage, createFunnelClient, createFunnelRunController, createIndiana, formatCouponDiscount, formatCouponMoney, formatCouponTerms, mountContent, prepareContent, showFunnelRun, showPaywall };
|
|
23636
|
+
export { ConfigurationSync, type ContentActionIntent, type ContentHostOptions, CustomerSession, FeatureClientOptions, FunnelCommandStorage, type FunnelControllerResponse, type FunnelHostOptions, FunnelPurchaseRecovery, type FunnelResourceSource, type FunnelRunController, FunnelRuntimeResponse, FunnelSegmentPrediction, type IamFunnelEntriesOptions, type IndianaFeatureOptions, IndianaOptions, Offer, type PaywallHostOptions, PaywallSession, createBrowserFunnelCommandStorage, createFunnelClient, createFunnelPageExperiments, createFunnelRunController, createIamFunnelEntries, createIndiana, formatCouponDiscount, formatCouponMoney, formatCouponTerms, mountContent, prepareContent, showFunnelRun, showPaywall };
|