@adapty/core 3.17.2 → 4.0.0-beta.1-dev.c014d57cfcbd780e854d741136d31a1ad10e09dd

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -505,51 +505,63 @@ interface AdaptyPrice {
505
505
  localizedString?: string;
506
506
  }
507
507
  /**
508
- * Describes an object that represents a paywall.
509
- * Used in {@link Adapty.getPaywall} method.
508
+ * Describes a single paywall variation inside a flow.
510
509
  * @public
511
510
  */
512
- interface AdaptyPaywall {
511
+ interface AdaptyFlowPaywall {
513
512
  readonly placement: AdaptyPlacement;
514
513
  /**
515
- * If `true`, it is possible to fetch the view object
516
- * and use it with AdaptyUI library.
514
+ * A paywall name.
517
515
  * @readonly
518
516
  */
519
- readonly hasViewConfiguration: boolean;
517
+ readonly name: string;
520
518
  /**
521
- * A paywall name.
519
+ * An identifier of a variation,
520
+ * used to attribute purchases to this paywall.
522
521
  * @readonly
523
522
  */
524
- readonly name: string;
523
+ readonly variationId: string;
525
524
  /**
526
- * A remote config configured in Adapty Dashboard for this paywall.
525
+ * Array of product identifiers for this paywall
527
526
  * @readonly
528
527
  */
529
- readonly remoteConfig?: AdaptyRemoteConfig;
528
+ readonly productIdentifiers: AdaptyProductIdentifier[];
529
+ id: string;
530
+ webPurchaseUrl?: string;
531
+ }
532
+ /**
533
+ * Describes an object that represents a flow,
534
+ * fetched for a placement.
535
+ * @public
536
+ */
537
+ interface AdaptyFlow {
538
+ readonly placement: AdaptyPlacement;
539
+ /**
540
+ * A flow name.
541
+ * @readonly
542
+ */
543
+ readonly name: string;
530
544
  /**
531
545
  * An identifier of a variation,
532
- * used to attribute purchases to this paywall.
546
+ * used to attribute purchases to this flow.
533
547
  * @readonly
534
548
  */
535
549
  readonly variationId: string;
536
550
  /**
537
- * Array of initial products info
551
+ * Remote configs configured in Adapty Dashboard for this flow.
538
552
  * @readonly
539
- * @deprecated Use {@link AdaptyPaywall.productIdentifiers} instead
540
553
  */
541
- readonly products: ProductReference[];
554
+ readonly remoteConfigs?: AdaptyRemoteConfig[];
542
555
  /**
543
- * Array of product identifiers for this paywall
556
+ * Paywall variations contained in this flow.
544
557
  * @readonly
545
558
  */
546
- readonly productIdentifiers: AdaptyProductIdentifier[];
559
+ readonly paywalls: AdaptyFlowPaywall[];
547
560
  id: string;
548
- version?: number;
549
- webPurchaseUrl?: string;
561
+ flowVersionId?: string;
562
+ /** Server response creation timestamp in milliseconds. */
563
+ responseCreatedAt: number;
550
564
  payloadData?: string;
551
- requestLocale: string;
552
- paywallBuilder?: AdaptyPaywallBuilder;
553
565
  }
554
566
  interface AdaptyOnboarding {
555
567
  readonly placement: AdaptyPlacement;
@@ -627,10 +639,6 @@ interface AdaptyRemoteConfig {
627
639
  */
628
640
  readonly dataString: string;
629
641
  }
630
- interface AdaptyPaywallBuilder {
631
- readonly id: string;
632
- readonly lang: string;
633
- }
634
642
  interface AdaptyOnboardingBuilder {
635
643
  readonly url: string;
636
644
  }
@@ -980,11 +988,11 @@ interface AdaptyPaywallProduct {
980
988
  */
981
989
  readonly localizedTitle: string;
982
990
  /**
983
- * Same as `abTestName` property of the parent {@link AdaptyPaywall}.
991
+ * Same as `abTestName` property of the parent {@link AdaptyFlowPaywall}.
984
992
  */
985
993
  readonly paywallABTestName: string;
986
994
  /**
987
- * Same as `name` property of the parent {@link AdaptyPaywall}.
995
+ * Same as `name` property of the parent {@link AdaptyFlowPaywall}.
988
996
  */
989
997
  readonly paywallName: string;
990
998
  readonly accessLevelId: string;
@@ -995,7 +1003,7 @@ interface AdaptyPaywallProduct {
995
1003
  readonly price?: AdaptyPrice;
996
1004
  readonly adaptyId: string;
997
1005
  /**
998
- * Same as `variationId` property of the parent {@link AdaptyPaywall}.
1006
+ * Same as `variationId` property of the parent {@link AdaptyFlowPaywall}.
999
1007
  */
1000
1008
  readonly variationId: string;
1001
1009
  /**
@@ -1063,6 +1071,9 @@ type AdaptySubscriptionOfferId = {
1063
1071
  } | {
1064
1072
  id: string;
1065
1073
  type: 'promotional' | 'win_back';
1074
+ } | {
1075
+ id?: string;
1076
+ type: 'code';
1066
1077
  };
1067
1078
  /**
1068
1079
  * Discount model to products
@@ -1130,6 +1141,7 @@ interface AdaptyProfileParameters {
1130
1141
  phoneNumber?: string;
1131
1142
  }
1132
1143
  interface ProductReference {
1144
+ flowProductId?: string;
1133
1145
  vendorId: string;
1134
1146
  adaptyId: string;
1135
1147
  accessLevelId: string;
@@ -1203,9 +1215,145 @@ interface AdaptyInstallationDetails {
1203
1215
  */
1204
1216
  readonly payload?: string;
1205
1217
  } //#endregion
1206
- //#region src/ui-builder/types.d.ts
1218
+ //#region src/types/flow-events.d.ts
1207
1219
 
1208
1220
  //# sourceMappingURL=index.d.ts.map
1221
+ declare const FlowEventId: {
1222
+ readonly DidAppear: "flow_view_did_appear";
1223
+ readonly DidDisappear: "flow_view_did_disappear";
1224
+ readonly DidPerformAction: "flow_view_did_perform_action";
1225
+ readonly DidSelectProduct: "flow_view_did_select_product";
1226
+ readonly DidStartPurchase: "flow_view_did_start_purchase";
1227
+ readonly DidFinishPurchase: "flow_view_did_finish_purchase";
1228
+ readonly DidFailPurchase: "flow_view_did_fail_purchase";
1229
+ readonly DidStartRestore: "flow_view_did_start_restore";
1230
+ readonly DidFinishRestore: "flow_view_did_finish_restore";
1231
+ readonly DidFailRestore: "flow_view_did_fail_restore";
1232
+ readonly DidReceiveError: "flow_view_did_receive_error";
1233
+ readonly DidFailLoadingProducts: "flow_view_did_fail_loading_products";
1234
+ readonly DidFinishWebPaymentNavigation: "flow_view_did_finish_web_payment_navigation";
1235
+ readonly DidRequestAppReview: "flow_view_did_request_app_review";
1236
+ readonly DidReceiveAnalyticEvent: "flow_view_did_receive_analytic_event";
1237
+ readonly DidAskPermission: "flow_view_did_ask_permission";
1238
+ readonly ObserverDidInitiatePurchase: "flow_view_observer_did_initiate_purchase";
1239
+ readonly ObserverDidInitiateRestore: "flow_view_observer_did_initiate_restore";
1240
+ };
1241
+ type FlowEventIdType = (typeof FlowEventId)[keyof typeof FlowEventId];
1242
+ /**
1243
+ * Permission identifier a flow view asks the host app to request.
1244
+ *
1245
+ * The literals below are the known cross-platform set; any string is valid —
1246
+ * unknown or platform-specific ids (e.g. Android `'phone'`, `'sms'`) and future
1247
+ * values pass through unchanged. The `(string & {})` keeps the known values as
1248
+ * autocomplete hints while still accepting arbitrary strings.
1249
+ */
1250
+ type AdaptyPermission = 'push' | 'camera' | 'microphone' | 'location_when_use' | 'location_always' | 'location_full_accuracy' | 'photos' | 'contacts' | 'tracking' | 'calendar' | 'bluetooth' | 'motion' | 'reminders' | 'speech' | 'media_library' | 'local_network' | 'focus_status' | 'homekit' | 'health' | 'siri' | 'music' | (string & {});
1251
+ interface FlowEventView {
1252
+ id: string;
1253
+ placementId?: string;
1254
+ variationId?: string;
1255
+ }
1256
+ interface BaseFlowEvent {
1257
+ id: FlowEventIdType;
1258
+ view: FlowEventView;
1259
+ }
1260
+ interface FlowDidAppearEvent extends BaseFlowEvent {
1261
+ id: typeof FlowEventId.DidAppear;
1262
+ }
1263
+ interface FlowDidDisappearEvent extends BaseFlowEvent {
1264
+ id: typeof FlowEventId.DidDisappear;
1265
+ }
1266
+ type FlowUserAction = {
1267
+ type: 'close';
1268
+ } | {
1269
+ type: 'system_back';
1270
+ } | {
1271
+ type: 'open_url';
1272
+ value: string;
1273
+ openIn: WebPresentation;
1274
+ } | {
1275
+ type: 'custom';
1276
+ value: string;
1277
+ };
1278
+ interface FlowDidPerformActionEvent extends BaseFlowEvent {
1279
+ id: typeof FlowEventId.DidPerformAction;
1280
+ action: FlowUserAction;
1281
+ }
1282
+ interface FlowDidSelectProductEvent extends BaseFlowEvent {
1283
+ id: typeof FlowEventId.DidSelectProduct;
1284
+ productId: string;
1285
+ }
1286
+ interface FlowDidStartPurchaseEvent extends BaseFlowEvent {
1287
+ id: typeof FlowEventId.DidStartPurchase;
1288
+ product: AdaptyPaywallProduct;
1289
+ }
1290
+ interface FlowDidFinishPurchaseEvent extends BaseFlowEvent {
1291
+ id: typeof FlowEventId.DidFinishPurchase;
1292
+ purchaseResult: AdaptyPurchaseResult;
1293
+ product: AdaptyPaywallProduct;
1294
+ }
1295
+ interface FlowDidFailPurchaseEvent extends BaseFlowEvent {
1296
+ id: typeof FlowEventId.DidFailPurchase;
1297
+ error: AdaptyError;
1298
+ product: AdaptyPaywallProduct;
1299
+ }
1300
+ interface FlowDidStartRestoreEvent extends BaseFlowEvent {
1301
+ id: typeof FlowEventId.DidStartRestore;
1302
+ }
1303
+ interface FlowDidFinishRestoreEvent extends BaseFlowEvent {
1304
+ id: typeof FlowEventId.DidFinishRestore;
1305
+ profile: AdaptyProfile;
1306
+ }
1307
+ interface FlowDidFailRestoreEvent extends BaseFlowEvent {
1308
+ id: typeof FlowEventId.DidFailRestore;
1309
+ error: AdaptyError;
1310
+ }
1311
+ interface FlowDidReceiveErrorEvent extends BaseFlowEvent {
1312
+ id: typeof FlowEventId.DidReceiveError;
1313
+ error: AdaptyError;
1314
+ }
1315
+ interface FlowDidFailLoadingProductsEvent extends BaseFlowEvent {
1316
+ id: typeof FlowEventId.DidFailLoadingProducts;
1317
+ error: AdaptyError;
1318
+ }
1319
+ interface FlowDidFinishWebPaymentNavigationEvent extends BaseFlowEvent {
1320
+ id: typeof FlowEventId.DidFinishWebPaymentNavigation;
1321
+ product?: AdaptyPaywallProduct;
1322
+ error?: AdaptyError;
1323
+ }
1324
+ interface FlowDidRequestAppReviewEvent extends BaseFlowEvent {
1325
+ id: typeof FlowEventId.DidRequestAppReview;
1326
+ }
1327
+ interface FlowDidReceiveAnalyticEvent extends BaseFlowEvent {
1328
+ id: typeof FlowEventId.DidReceiveAnalyticEvent;
1329
+ name: string;
1330
+ params: Record<string, unknown>;
1331
+ }
1332
+ interface FlowDidAskPermissionEvent extends BaseFlowEvent {
1333
+ id: typeof FlowEventId.DidAskPermission;
1334
+ /** Correlation id — sent back to native in the response. SDK-internal. */
1335
+ eventId: string;
1336
+ /** Permission identifier the flow view asks the host to request. */
1337
+ permission: AdaptyPermission;
1338
+ /** Arbitrary string key/value args attached by the dashboard. */
1339
+ customArgs: Record<string, string>;
1340
+ }
1341
+ interface FlowObserverDidInitiatePurchaseEvent extends BaseFlowEvent {
1342
+ id: typeof FlowEventId.ObserverDidInitiatePurchase;
1343
+ /** Correlation id — sent back to native in the reply. SDK-internal. */
1344
+ eventId: string;
1345
+ /** Product the user initiated the purchase for. */
1346
+ product: AdaptyPaywallProduct;
1347
+ }
1348
+ interface FlowObserverDidInitiateRestoreEvent extends BaseFlowEvent {
1349
+ id: typeof FlowEventId.ObserverDidInitiateRestore;
1350
+ /** Correlation id — sent back to native in the reply. SDK-internal. */
1351
+ eventId: string;
1352
+ }
1353
+ type ParsedFlowEvent = FlowDidAppearEvent | FlowDidDisappearEvent | FlowDidPerformActionEvent | FlowDidSelectProductEvent | FlowDidStartPurchaseEvent | FlowDidFinishPurchaseEvent | FlowDidFailPurchaseEvent | FlowDidStartRestoreEvent | FlowDidFinishRestoreEvent | FlowDidFailRestoreEvent | FlowDidReceiveErrorEvent | FlowDidFailLoadingProductsEvent | FlowDidFinishWebPaymentNavigationEvent | FlowDidRequestAppReviewEvent | FlowDidReceiveAnalyticEvent | FlowDidAskPermissionEvent | FlowObserverDidInitiatePurchaseEvent | FlowObserverDidInitiateRestoreEvent;
1354
+
1355
+ //#endregion
1356
+ //#region src/ui-builder/types.d.ts
1209
1357
  /**
1210
1358
  * @internal
1211
1359
  */
@@ -1224,12 +1372,21 @@ type ProductPurchaseParams = Array<{
1224
1372
  productId: AdaptyProductIdentifier;
1225
1373
  params: MakePurchaseParamsInput;
1226
1374
  }>;
1375
+ /**
1376
+ * Result of an OS permission request, returned to native by the SDK.
1377
+ */
1378
+ type FlowPermissionStatus = 'granted' | 'denied' | 'unavailable';
1379
+ interface FlowPermissionResponse {
1380
+ status: FlowPermissionStatus;
1381
+ /** Optional human-readable detail (e.g. the OS status string). */
1382
+ detail?: string;
1383
+ }
1227
1384
  /**
1228
1385
  * Hashmap of possible events to their callbacks
1229
1386
  *
1230
1387
  * @see {@link https://adapty.io/docs/react-native-handling-events-1 | [DOC] Handling View Events}
1231
1388
  */
1232
- interface EventHandlers {
1389
+ interface FlowEventHandlers {
1233
1390
  /**
1234
1391
  * Called when a user taps the close button on the paywall view
1235
1392
  *
@@ -1241,9 +1398,9 @@ interface EventHandlers {
1241
1398
  /**
1242
1399
  * Called when a user navigates back on Android
1243
1400
  *
1244
- * If you return `true`, the paywall view will be closed.
1245
- * We strongly recommend to return `true` in this case.
1246
- * @default true
1401
+ * Return `true` to close the flow view.
1402
+ * By default, this handler returns `false`, so the paywall view stays open.
1403
+ * @default false
1247
1404
  */
1248
1405
  onAndroidSystemBack: () => EventHandlerResult;
1249
1406
  /**
@@ -1263,7 +1420,7 @@ interface EventHandlers {
1263
1420
  *
1264
1421
  * If you return `true` from this callback, the paywall view will be closed.
1265
1422
  * We strongly recommend returning `purchaseResult.type !== 'user_cancelled'` in this case.
1266
- * @default `purchaseResult.type !== 'user_cancelled'`
1423
+ * @default false
1267
1424
  *
1268
1425
  * @param {AdaptyPurchaseResult} purchaseResult - object, which provides details about the purchase.
1269
1426
  * If the result is `'success'`, it also includes the updated user's profile.
@@ -1283,15 +1440,26 @@ interface EventHandlers {
1283
1440
  * If you return `true` from this callback, the paywall view will be closed.
1284
1441
  */
1285
1442
  onRestoreStarted: () => EventHandlerResult;
1286
- onPaywallClosed: () => EventHandlerResult;
1287
- onPaywallShown: () => EventHandlerResult;
1443
+ /**
1444
+ * Called when the paywall view disappears
1445
+ *
1446
+ * If you return `true`, the paywall view will be closed.
1447
+ * @default false
1448
+ */
1449
+ onDisappeared: () => EventHandlerResult;
1450
+ /**
1451
+ * Called when the paywall view appears
1452
+ *
1453
+ * If you return `true`, the paywall view will be closed.
1454
+ * @default false
1455
+ */
1456
+ onAppeared: () => EventHandlerResult;
1288
1457
  onWebPaymentNavigationFinished: (product?: AdaptyPaywallProduct, error?: AdaptyError) => EventHandlerResult;
1289
1458
  /**
1290
- * Called when a purchase is completed
1459
+ * Called when a restore is completed
1291
1460
  *
1292
1461
  * If you return `true` from this callback, the paywall view will be closed.
1293
- * We strongly recommend to return `true` in this case.
1294
- * @default true
1462
+ * @default false
1295
1463
  *
1296
1464
  * @param {AdaptyProfile} profile - updated user profile
1297
1465
  */
@@ -1305,14 +1473,13 @@ interface EventHandlers {
1305
1473
  */
1306
1474
  onRestoreFailed: (error: AdaptyError) => EventHandlerResult;
1307
1475
  /**
1308
- * Called if a paywall view fails to render.
1309
- * This should not ever happen, but if it does, feel free to report it to us.
1476
+ * Called when the paywall view receives an error (e.g. it fails to render).
1310
1477
  *
1311
1478
  * If you return `true` from this callback, the paywall view will be closed.
1312
1479
  *
1313
1480
  * @param {AdaptyError} error - AdaptyError object with error code and message
1314
1481
  */
1315
- onRenderingFailed: (error: AdaptyError) => EventHandlerResult;
1482
+ onError: (error: AdaptyError) => EventHandlerResult;
1316
1483
  /**
1317
1484
  * Called if a product list fails to load on a presented view,
1318
1485
  * for example, if there is no internet connection
@@ -1332,6 +1499,85 @@ interface EventHandlers {
1332
1499
  * `'browser_out_app'` (default) — external browser (e.g. `Linking.openURL`)
1333
1500
  */
1334
1501
  onUrlPress: (url: string, openIn: WebPresentation) => EventHandlerResult;
1502
+ /**
1503
+ * Called when the flow view asks the host app to show the native
1504
+ * app review prompt (e.g. `SKStoreReviewController` on iOS,
1505
+ * In-App Review on Android).
1506
+ *
1507
+ * This is a notification: returning `true` would close the view,
1508
+ * but for an app-review prompt you almost always want to keep it open.
1509
+ */
1510
+ onRequestAppReview: () => EventHandlerResult;
1511
+ /**
1512
+ * Called when the flow view reports an analytics event.
1513
+ *
1514
+ * This is a notification: the return value follows the standard
1515
+ * close-on-`true` contract, but you normally keep the view open.
1516
+ *
1517
+ * @param name - analytics event name
1518
+ * @param params - arbitrary event parameters
1519
+ */
1520
+ onAnalytics: (name: string, params: Record<string, unknown>) => EventHandlerResult;
1521
+ /**
1522
+ * Called when the flow view asks the host app to request an OS-level
1523
+ * permission (e.g. notifications, ATT). This is the only **asynchronous**
1524
+ * handler: return a `Promise` that resolves with the resulting status.
1525
+ *
1526
+ * If you do not provide a handler, the SDK replies `'unavailable'`.
1527
+ *
1528
+ * @param permission - permission identifier the flow view requested
1529
+ * @param customArgs - arbitrary string args configured in the dashboard
1530
+ */
1531
+ onRequestPermission: (permission: AdaptyPermission, customArgs: Record<string, string>) => Promise<FlowPermissionResponse>;
1532
+ /**
1533
+ * Called in **observer mode** when the user taps the purchase button inside
1534
+ * an Adapty-rendered flow (paywall) view. Adapty does NOT make the purchase —
1535
+ * your app performs it through its own purchase API. Drive the paywall's
1536
+ * loading state with the two provided callbacks:
1537
+ *
1538
+ * - call `onStartPurchase()` right before you begin the purchase (shows the
1539
+ * paywall's loading indicator);
1540
+ * - call `onFinishPurchase()` once it settles, success or failure (hides it).
1541
+ *
1542
+ * The return value follows the standard close-on-`true` contract; you
1543
+ * normally keep the view open (`false`) and dismiss it yourself after the
1544
+ * purchase succeeds.
1545
+ *
1546
+ * @remarks
1547
+ * Fires only when the SDK was activated in observer mode
1548
+ * (`activate(apiKey, { observerMode: true })`). Without it, Adapty handles
1549
+ * purchases itself and this event is never emitted.
1550
+ *
1551
+ * Adapty does not see the purchase you make, so after it succeeds you must
1552
+ * report the transaction to Adapty yourself (e.g. via `reportTransaction`). The
1553
+ * `onStartPurchase`/`onFinishPurchase` callbacks only drive the paywall's
1554
+ * loading UI;
1555
+ *
1556
+ * @param product - product the user initiated the purchase for
1557
+ * @param onStartPurchase - notify the paywall the purchase started
1558
+ * @param onFinishPurchase - notify the paywall the purchase finished
1559
+ */
1560
+ onObserverPurchaseInitiated: (product: AdaptyPaywallProduct, onStartPurchase: () => void, onFinishPurchase: () => void) => EventHandlerResult;
1561
+ /**
1562
+ * Called in **observer mode** when the user taps the restore button inside an
1563
+ * Adapty-rendered flow (paywall) view. Adapty does NOT restore — your app
1564
+ * performs it through its own API. Drive the paywall's loading state with the
1565
+ * two provided callbacks (`onStartRestore()` / `onFinishRestore()`).
1566
+ *
1567
+ * @remarks
1568
+ * Fires only when the SDK was activated in observer mode
1569
+ * (`activate(apiKey, { observerMode: true })`). Without it, Adapty handles
1570
+ * restores itself and this event is never emitted.
1571
+ *
1572
+ * Report any transactions surfaced by the restore to Adapty yourself (e.g.
1573
+ * via `reportTransaction`) so they flow into events and analytics. The
1574
+ * `onStartRestore`/`onFinishRestore` callbacks only drive the paywall's
1575
+ * loading UI; they do not report anything.
1576
+ *
1577
+ * @param onStartRestore - notify the paywall the restore started
1578
+ * @param onFinishRestore - notify the paywall the restore finished
1579
+ */
1580
+ onObserverRestoreInitiated: (onStartRestore: () => void, onFinishRestore: () => void) => EventHandlerResult;
1335
1581
  }
1336
1582
  interface OnboardingEventHandlers {
1337
1583
  onClose: (actionId: string, meta: AdaptyUiOnboardingMeta) => EventHandlerResult;
@@ -1394,7 +1640,7 @@ type OnboardingStateUpdatedAction = {
1394
1640
  *
1395
1641
  * @see {@link https://docs.adapty.io/docs/paywall-builder-fetching | [DOC] Creating Paywall View}
1396
1642
  */
1397
- interface CreatePaywallViewParamsInput {
1643
+ interface CreateFlowViewParamsInput {
1398
1644
  /**
1399
1645
  * `true` if you want to prefetch products before presenting a paywall view.
1400
1646
  */
@@ -1420,6 +1666,14 @@ interface CreatePaywallViewParamsInput {
1420
1666
  customTimers?: Record<string, Date>;
1421
1667
  customAssets?: Record<string, AdaptyCustomAsset>;
1422
1668
  productPurchaseParams?: ProductPurchaseParams;
1669
+ /**
1670
+ * Android only. When `true`, the flow view applies safe-area paddings.
1671
+ *
1672
+ * @remarks
1673
+ * Ignored on iOS. When omitted, the default is decided by the presenting
1674
+ * API you use.
1675
+ */
1676
+ enableSafeArea?: boolean;
1423
1677
  }
1424
1678
  /**
1425
1679
  * Additional options for creating an onboarding view
@@ -1609,8 +1863,17 @@ type GetPlacementForDefaultAudienceParamsInput = {
1609
1863
  */
1610
1864
  interface ActivateParamsInput {
1611
1865
  /**
1612
- * Turn it on if you handle purchases and subscription status yourself
1613
- * and use Adapty for sending subscription events and analytics
1866
+ * Observer mode. Turn it on when your app handles purchases and subscription
1867
+ * status itself (through your own purchase code or a third-party SDK) and
1868
+ * uses Adapty only for sending subscription events and analytics.
1869
+ *
1870
+ * @remarks
1871
+ * This also enables using Adapty Flow (paywall) views in observer mode: the
1872
+ * paywall is still rendered by Adapty, but when the user taps buy/restore the
1873
+ * SDK does NOT make the purchase — it notifies your app through the
1874
+ * `onObserverPurchaseInitiated` / `onObserverRestoreInitiated` flow event
1875
+ * handlers. Report completed purchases back to Adapty (e.g. via
1876
+ * `reportTransaction`) so they still flow into events and analytics.
1614
1877
  *
1615
1878
  * @defaultValue `false`
1616
1879
  */
@@ -1640,12 +1903,6 @@ interface ActivateParamsInput {
1640
1903
  backendProxyPort?: number;
1641
1904
  activateUi?: boolean;
1642
1905
  mediaCache?: AdaptyUiMediaCache;
1643
- /**
1644
- * Locks methods threads until the SDK is ready.
1645
- * @defaultValue `false`
1646
- * @deprecated Turned on by default
1647
- */
1648
- lockMethodsUntilReady?: boolean;
1649
1906
  /**
1650
1907
  * Does not activate SDK until any other method is called
1651
1908
  * Fixes annoying iOS simulator auhtentication
@@ -1736,66 +1993,12 @@ interface AdaptyAndroidPurchaseParams {
1736
1993
  */
1737
1994
  isOfferPersonalized?: boolean;
1738
1995
  }
1739
- interface AdaptyAndroidSubscriptionUpdateParameters {
1740
- oldSubVendorProductId: string;
1741
- prorationMode: AdaptyAndroidSubscriptionUpdateReplacementMode;
1742
- /**
1743
- * @deprecated Use {@link AdaptyAndroidPurchaseParams.isOfferPersonalized} instead.
1744
- * This field has been moved to the upper level in the new structure.
1745
- *
1746
- * @example
1747
- * // OLD (deprecated):
1748
- * android: {
1749
- * oldSubVendorProductId: 'old_product_id',
1750
- * prorationMode: 'charge_prorated_price',
1751
- * isOfferPersonalized: true // This field is deprecated
1752
- * }
1753
- *
1754
- * // NEW:
1755
- * android: {
1756
- * subscriptionUpdateParams: {
1757
- * oldSubVendorProductId: 'old_product_id',
1758
- * prorationMode: 'charge_prorated_price'
1759
- * },
1760
- * isOfferPersonalized: true // Moved to upper level
1761
- * }
1762
- */
1763
- isOfferPersonalized?: boolean;
1764
- }
1765
1996
  type MakePurchaseParamsInput = {
1766
1997
  /**
1767
1998
  * Android purchase parameters
1768
1999
  * @platform android
1769
2000
  */
1770
2001
  android?: AdaptyAndroidPurchaseParams;
1771
- } | {
1772
- /**
1773
- * @deprecated Use the new parameter structure instead
1774
- *
1775
- * @example
1776
- * // OLD (deprecated):
1777
- * makePurchase(product, {
1778
- * android: {
1779
- * oldSubVendorProductId: 'old_product_id',
1780
- * prorationMode: 'charge_prorated_price',
1781
- * isOfferPersonalized: true
1782
- * }
1783
- * });
1784
- *
1785
- * // NEW:
1786
- * makePurchase(product, {
1787
- * android: {
1788
- * subscriptionUpdateParams: {
1789
- * oldSubVendorProductId: 'old_product_id',
1790
- * prorationMode: 'charge_prorated_price'
1791
- * },
1792
- * isOfferPersonalized: true, // Note: moved to upper level
1793
- * }
1794
- * });
1795
- *
1796
- * @platform android
1797
- */
1798
- android?: AdaptyAndroidSubscriptionUpdateParameters;
1799
2002
  };
1800
2003
  type FileLocation = {
1801
2004
  ios: {
@@ -1894,20 +2097,21 @@ interface components {
1894
2097
  }, {
1895
2098
  success: true;
1896
2099
  }]>;
1897
- 'AdaptyUICreatePaywallView.Request': {
1898
- method: 'adapty_ui_create_paywall_view';
1899
- paywall: components['defs']['AdaptyPaywall'];
2100
+ 'AdaptyUICreateFlowView.Request': {
2101
+ method: 'adapty_ui_create_flow_view';
2102
+ flow: components['defs']['AdaptyFlow'];
1900
2103
  load_timeout?: number;
1901
2104
  preload_products?: boolean;
1902
2105
  custom_tags?: components['defs']['AdaptyUI.CustomTagsValues'];
1903
2106
  custom_timers?: components['defs']['AdaptyUI.CustomTimersValues'];
1904
2107
  custom_assets?: components['defs']['AdaptyUI.CustomAssets'];
1905
2108
  product_purchase_parameters?: components['defs']['AdaptyUI.ProductPurchaseParameters'];
2109
+ enable_safe_area_paddings?: boolean;
1906
2110
  };
1907
- 'AdaptyUICreatePaywallView.Response': OneOf<[{
2111
+ 'AdaptyUICreateFlowView.Response': OneOf<[{
1908
2112
  error: components['defs']['AdaptyError'];
1909
2113
  }, {
1910
- success: components['defs']['AdaptyUI.PaywallView'];
2114
+ success: components['defs']['AdaptyUI.FlowView'];
1911
2115
  }]>;
1912
2116
  'AdaptyUICreateOnboardingView.Request': {
1913
2117
  method: 'adapty_ui_create_onboarding_view';
@@ -1929,12 +2133,12 @@ interface components {
1929
2133
  }, {
1930
2134
  success: true;
1931
2135
  }]>;
1932
- 'AdaptyUIDismissPaywallView.Request': {
1933
- method: 'adapty_ui_dismiss_paywall_view';
2136
+ 'AdaptyUIDismissFlowView.Request': {
2137
+ method: 'adapty_ui_dismiss_flow_view';
1934
2138
  id: string;
1935
2139
  destroy?: boolean;
1936
2140
  };
1937
- 'AdaptyUIDismissPaywallView.Response': OneOf<[{
2141
+ 'AdaptyUIDismissFlowView.Response': OneOf<[{
1938
2142
  error: components['defs']['AdaptyError'];
1939
2143
  }, {
1940
2144
  success: true;
@@ -1949,12 +2153,12 @@ interface components {
1949
2153
  }, {
1950
2154
  success: true;
1951
2155
  }]>;
1952
- 'AdaptyUIPresentPaywallView.Request': {
1953
- method: 'adapty_ui_present_paywall_view';
2156
+ 'AdaptyUIPresentFlowView.Request': {
2157
+ method: 'adapty_ui_present_flow_view';
1954
2158
  id: string;
1955
2159
  ios_presentation_style?: components['defs']['AdaptyUI.IOSPresentationStyle'];
1956
2160
  };
1957
- 'AdaptyUIPresentPaywallView.Response': OneOf<[{
2161
+ 'AdaptyUIPresentFlowView.Response': OneOf<[{
1958
2162
  error: components['defs']['AdaptyError'];
1959
2163
  }, {
1960
2164
  success: true;
@@ -1969,6 +2173,24 @@ interface components {
1969
2173
  }, {
1970
2174
  success: components['defs']['AdaptyUI.DialogActionType'];
1971
2175
  }]>;
2176
+ 'AdaptyUIOpenUrl.Request': {
2177
+ method: 'adapty_ui_open_url';
2178
+ url: string;
2179
+ open_in?: components['defs']['AdaptyWebPresentation'];
2180
+ };
2181
+ 'AdaptyUIOpenUrl.Response': OneOf<[{
2182
+ error: components['defs']['AdaptyError'];
2183
+ }, {
2184
+ success: true;
2185
+ }]>;
2186
+ 'AdaptyUIRequestAppReview.Request': {
2187
+ method: 'adapty_ui_request_app_review';
2188
+ };
2189
+ 'AdaptyUIRequestAppReview.Response': OneOf<[{
2190
+ error: components['defs']['AdaptyError'];
2191
+ }, {
2192
+ success: true;
2193
+ }]>;
1972
2194
  'GetOnboarding.Request': {
1973
2195
  method: 'get_onboarding';
1974
2196
  placement_id: string;
@@ -1992,32 +2214,30 @@ interface components {
1992
2214
  }, {
1993
2215
  success: components['defs']['AdaptyOnboarding'];
1994
2216
  }]>;
1995
- 'GetPaywall.Request': {
1996
- method: 'get_paywall';
2217
+ 'GetFlow.Request': {
2218
+ method: 'get_flow';
1997
2219
  placement_id: string;
1998
- locale?: components['defs']['AdaptyLocale'];
1999
2220
  fetch_policy?: components['defs']['AdaptyPlacementFetchPolicy'];
2000
2221
  load_timeout?: number;
2001
2222
  };
2002
- 'GetPaywall.Response': OneOf<[{
2223
+ 'GetFlow.Response': OneOf<[{
2003
2224
  error: components['defs']['AdaptyError'];
2004
2225
  }, {
2005
- success: components['defs']['AdaptyPaywall'];
2226
+ success: components['defs']['AdaptyFlow'];
2006
2227
  }]>;
2007
- 'GetPaywallForDefaultAudience.Request': {
2008
- method: 'get_paywall_for_default_audience';
2228
+ 'GetFlowForDefaultAudience.Request': {
2229
+ method: 'get_flow_for_default_audience';
2009
2230
  placement_id: string;
2010
- locale?: components['defs']['AdaptyLocale'];
2011
2231
  fetch_policy?: components['defs']['AdaptyPlacementFetchPolicy'];
2012
2232
  };
2013
- 'GetPaywallForDefaultAudience.Response': OneOf<[{
2233
+ 'GetFlowForDefaultAudience.Response': OneOf<[{
2014
2234
  error: components['defs']['AdaptyError'];
2015
2235
  }, {
2016
- success: components['defs']['AdaptyPaywall'];
2236
+ success: components['defs']['AdaptyFlow'];
2017
2237
  }]>;
2018
2238
  'GetPaywallProducts.Request': {
2019
2239
  method: 'get_paywall_products';
2020
- paywall: components['defs']['AdaptyPaywall'];
2240
+ flow: components['defs']['AdaptyFlow'];
2021
2241
  };
2022
2242
  'GetPaywallProducts.Response': OneOf<[{
2023
2243
  error: components['defs']['AdaptyError'];
@@ -2069,11 +2289,11 @@ interface components {
2069
2289
  }, {
2070
2290
  success: true;
2071
2291
  }]>;
2072
- 'LogShowPaywall.Request': {
2073
- method: 'log_show_paywall';
2074
- paywall: components['defs']['AdaptyPaywall'];
2292
+ 'LogShowFlow.Request': {
2293
+ method: 'log_show_flow';
2294
+ flow: components['defs']['AdaptyFlow'];
2075
2295
  };
2076
- 'LogShowPaywall.Response': OneOf<[{
2296
+ 'LogShowFlow.Response': OneOf<[{
2077
2297
  error: components['defs']['AdaptyError'];
2078
2298
  }, {
2079
2299
  success: true;
@@ -2094,7 +2314,7 @@ interface components {
2094
2314
  } & OneOf<[{
2095
2315
  product: components['defs']['AdaptyPaywallProduct.Request'];
2096
2316
  }, {
2097
- paywall: components['defs']['AdaptyPaywall'];
2317
+ paywall: components['defs']['AdaptyFlowPaywall'];
2098
2318
  }]>;
2099
2319
  'OpenWebPaywall.Response': OneOf<[{
2100
2320
  error: components['defs']['AdaptyError'];
@@ -2106,7 +2326,7 @@ interface components {
2106
2326
  } & OneOf<[{
2107
2327
  product: components['defs']['AdaptyPaywallProduct.Request'];
2108
2328
  }, {
2109
- paywall: components['defs']['AdaptyPaywall'];
2329
+ paywall: components['defs']['AdaptyFlowPaywall'];
2110
2330
  }]>;
2111
2331
  'CreateWebPaywallUrl.Response': OneOf<[{
2112
2332
  error: components['defs']['AdaptyError'];
@@ -2211,8 +2431,85 @@ interface components {
2211
2431
  }, {
2212
2432
  success: true;
2213
2433
  }]>;
2434
+ 'FlowViewDidAnswerPermission.Request': {
2435
+ method: 'flow_view_did_answer_permission';
2436
+ event_id: string;
2437
+ status: 'granted' | 'denied' | 'unavailable';
2438
+ detail?: string;
2439
+ };
2440
+ 'FlowViewDidAnswerPermission.Response': OneOf<[{
2441
+ error: components['defs']['AdaptyError'];
2442
+ }, {
2443
+ success: true;
2444
+ }]>;
2445
+ 'ObserverPurchaseDidStart.Request': {
2446
+ method: 'observer_purchase_did_start';
2447
+ event_id: string;
2448
+ };
2449
+ 'ObserverPurchaseDidStart.Response': OneOf<[{
2450
+ error: components['defs']['AdaptyError'];
2451
+ }, {
2452
+ success: true;
2453
+ }]>;
2454
+ 'ObserverPurchaseDidFinish.Request': {
2455
+ method: 'observer_purchase_did_finish';
2456
+ event_id: string;
2457
+ };
2458
+ 'ObserverPurchaseDidFinish.Response': OneOf<[{
2459
+ error: components['defs']['AdaptyError'];
2460
+ }, {
2461
+ success: true;
2462
+ }]>;
2463
+ 'ObserverRestoreDidStart.Request': {
2464
+ method: 'observer_restore_did_start';
2465
+ event_id: string;
2466
+ };
2467
+ 'ObserverRestoreDidStart.Response': OneOf<[{
2468
+ error: components['defs']['AdaptyError'];
2469
+ }, {
2470
+ success: true;
2471
+ }]>;
2472
+ 'ObserverRestoreDidFinish.Request': {
2473
+ method: 'observer_restore_did_finish';
2474
+ event_id: string;
2475
+ };
2476
+ 'ObserverRestoreDidFinish.Response': OneOf<[{
2477
+ error: components['defs']['AdaptyError'];
2478
+ }, {
2479
+ success: true;
2480
+ }]>;
2214
2481
  };
2215
2482
  events: {
2483
+ 'FlowViewEvent.DidAskPermission': {
2484
+ id: 'flow_view_did_ask_permission';
2485
+ view: components['defs']['AdaptyUI.FlowView'];
2486
+ event_id: string;
2487
+ permission: components['defs']['AdaptyUI.Permission'];
2488
+ custom_args?: {
2489
+ [key: string]: string;
2490
+ };
2491
+ };
2492
+ 'FlowViewEvent.DidRequestAppReview': {
2493
+ id: 'flow_view_did_request_app_review';
2494
+ view: components['defs']['AdaptyUI.FlowView'];
2495
+ };
2496
+ 'FlowViewEvent.ObserverDidInitiatePurchase': {
2497
+ id: 'flow_view_observer_did_initiate_purchase';
2498
+ view: components['defs']['AdaptyUI.FlowView'];
2499
+ event_id: string;
2500
+ product: components['defs']['AdaptyPaywallProduct.Response'];
2501
+ };
2502
+ 'FlowViewEvent.ObserverDidInitiateRestore': {
2503
+ id: 'flow_view_observer_did_initiate_restore';
2504
+ view: components['defs']['AdaptyUI.FlowView'];
2505
+ event_id: string;
2506
+ };
2507
+ 'FlowViewEvent.DidReceiveAnalyticEvent': {
2508
+ id: 'flow_view_did_receive_analytic_event';
2509
+ view: components['defs']['AdaptyUI.FlowView'];
2510
+ name: string;
2511
+ params: Record<string, unknown>;
2512
+ };
2216
2513
  'Event.DidLoadLatestProfile': {
2217
2514
  id: 'did_load_latest_profile';
2218
2515
  profile: components['defs']['AdaptyProfile'];
@@ -2225,68 +2522,68 @@ interface components {
2225
2522
  id: 'on_installation_details_fail';
2226
2523
  error: components['defs']['AdaptyError'];
2227
2524
  };
2228
- 'PaywallViewEvent.DidAppear': {
2229
- id: 'paywall_view_did_appear';
2230
- view: components['defs']['AdaptyUI.PaywallView'];
2525
+ 'FlowViewEvent.DidAppear': {
2526
+ id: 'flow_view_did_appear';
2527
+ view: components['defs']['AdaptyUI.FlowView'];
2231
2528
  };
2232
- 'PaywallViewEvent.DidDisappear': {
2233
- id: 'paywall_view_did_disappear';
2234
- view: components['defs']['AdaptyUI.PaywallView'];
2529
+ 'FlowViewEvent.DidDisappear': {
2530
+ id: 'flow_view_did_disappear';
2531
+ view: components['defs']['AdaptyUI.FlowView'];
2235
2532
  };
2236
- 'PaywallViewEvent.DidUserAction': {
2237
- id: 'paywall_view_did_perform_action';
2238
- view: components['defs']['AdaptyUI.PaywallView'];
2533
+ 'FlowViewEvent.DidUserAction': {
2534
+ id: 'flow_view_did_perform_action';
2535
+ view: components['defs']['AdaptyUI.FlowView'];
2239
2536
  action: components['defs']['AdaptyUI.UserAction'];
2240
2537
  };
2241
- 'PaywallViewEvent.DidSelectProduct': {
2242
- id: 'paywall_view_did_select_product';
2243
- view: components['defs']['AdaptyUI.PaywallView'];
2538
+ 'FlowViewEvent.DidSelectProduct': {
2539
+ id: 'flow_view_did_select_product';
2540
+ view: components['defs']['AdaptyUI.FlowView'];
2244
2541
  product_id: string;
2245
2542
  };
2246
- 'PaywallViewEvent.WillPurchase': {
2247
- id: 'paywall_view_did_start_purchase';
2248
- view: components['defs']['AdaptyUI.PaywallView'];
2543
+ 'FlowViewEvent.WillPurchase': {
2544
+ id: 'flow_view_did_start_purchase';
2545
+ view: components['defs']['AdaptyUI.FlowView'];
2249
2546
  product: components['defs']['AdaptyPaywallProduct.Response'];
2250
2547
  };
2251
- 'PaywallViewEvent.DidPurchase': {
2252
- id: 'paywall_view_did_finish_purchase';
2253
- view: components['defs']['AdaptyUI.PaywallView'];
2548
+ 'FlowViewEvent.DidPurchase': {
2549
+ id: 'flow_view_did_finish_purchase';
2550
+ view: components['defs']['AdaptyUI.FlowView'];
2254
2551
  product: components['defs']['AdaptyPaywallProduct.Response'];
2255
2552
  purchased_result: components['defs']['AdaptyPurchaseResult'];
2256
2553
  };
2257
- 'PaywallViewEvent.DidFailPurchase': {
2258
- id: 'paywall_view_did_fail_purchase';
2259
- view: components['defs']['AdaptyUI.PaywallView'];
2554
+ 'FlowViewEvent.DidFailPurchase': {
2555
+ id: 'flow_view_did_fail_purchase';
2556
+ view: components['defs']['AdaptyUI.FlowView'];
2260
2557
  product: components['defs']['AdaptyPaywallProduct.Response'];
2261
2558
  error: components['defs']['AdaptyError'];
2262
2559
  };
2263
- 'PaywallViewEvent.WillRestorePurchase': {
2264
- id: 'paywall_view_did_start_restore';
2265
- view: components['defs']['AdaptyUI.PaywallView'];
2560
+ 'FlowViewEvent.WillRestorePurchase': {
2561
+ id: 'flow_view_did_start_restore';
2562
+ view: components['defs']['AdaptyUI.FlowView'];
2266
2563
  };
2267
- 'PaywallViewEvent.DidRestorePurchase': {
2268
- id: 'paywall_view_did_finish_restore';
2269
- view: components['defs']['AdaptyUI.PaywallView'];
2564
+ 'FlowViewEvent.DidRestorePurchase': {
2565
+ id: 'flow_view_did_finish_restore';
2566
+ view: components['defs']['AdaptyUI.FlowView'];
2270
2567
  profile: components['defs']['AdaptyProfile'];
2271
2568
  };
2272
- 'PaywallViewEvent.DidFailRestorePurchase': {
2273
- id: 'paywall_view_did_fail_restore';
2274
- view: components['defs']['AdaptyUI.PaywallView'];
2569
+ 'FlowViewEvent.DidFailRestorePurchase': {
2570
+ id: 'flow_view_did_fail_restore';
2571
+ view: components['defs']['AdaptyUI.FlowView'];
2275
2572
  error: components['defs']['AdaptyError'];
2276
2573
  };
2277
- 'PaywallViewEvent.DidFailRendering': {
2278
- id: 'paywall_view_did_fail_rendering';
2279
- view: components['defs']['AdaptyUI.PaywallView'];
2574
+ 'FlowViewEvent.DidReceiveError': {
2575
+ id: 'flow_view_did_receive_error';
2576
+ view: components['defs']['AdaptyUI.FlowView'];
2280
2577
  error: components['defs']['AdaptyError'];
2281
2578
  };
2282
- 'PaywallViewEvent.DidFailLoadingProducts': {
2283
- id: 'paywall_view_did_fail_loading_products';
2284
- view: components['defs']['AdaptyUI.PaywallView'];
2579
+ 'FlowViewEvent.DidFailLoadingProducts': {
2580
+ id: 'flow_view_did_fail_loading_products';
2581
+ view: components['defs']['AdaptyUI.FlowView'];
2285
2582
  error: components['defs']['AdaptyError'];
2286
2583
  };
2287
- 'PaywallViewEvent.DidFinishWebPaymentNavigation': {
2288
- id: 'paywall_view_did_finish_web_payment_navigation';
2289
- view: components['defs']['AdaptyUI.PaywallView'];
2584
+ 'FlowViewEvent.DidFinishWebPaymentNavigation': {
2585
+ id: 'flow_view_did_finish_web_payment_navigation';
2586
+ view: components['defs']['AdaptyUI.FlowView'];
2290
2587
  product?: components['defs']['AdaptyPaywallProduct.Response'];
2291
2588
  error?: components['defs']['AdaptyError'];
2292
2589
  };
@@ -2401,6 +2698,7 @@ interface components {
2401
2698
  };
2402
2699
  'AdaptyPaywallProduct.Response': {
2403
2700
  vendor_product_id: string;
2701
+ flow_product_id?: string;
2404
2702
  adapty_product_id: string;
2405
2703
  access_level_id: string;
2406
2704
  product_type: string;
@@ -2470,18 +2768,24 @@ interface components {
2470
2768
  response_created_at: number;
2471
2769
  request_locale: components['defs']['AdaptyLocale'];
2472
2770
  };
2473
- AdaptyPaywall: {
2771
+ AdaptyFlow: {
2772
+ placement: components['defs']['AdaptyPlacement'];
2773
+ flow_id: string;
2774
+ flow_name: string;
2775
+ variation_id: string;
2776
+ remote_configs?: components['defs']['AdaptyRemoteConfig'][];
2777
+ flow_version_id?: string;
2778
+ variations: components['defs']['AdaptyFlowPaywall'][];
2779
+ payload_data?: string;
2780
+ response_created_at: number;
2781
+ };
2782
+ AdaptyFlowPaywall: {
2474
2783
  placement: components['defs']['AdaptyPlacement'];
2475
2784
  paywall_id: string;
2476
2785
  paywall_name: string;
2477
2786
  variation_id: string;
2478
- remote_config?: components['defs']['AdaptyRemoteConfig'];
2479
- paywall_builder?: components['defs']['AdaptyPaywall.ViewConfiguration'];
2480
- products: components['defs']['AdaptyPaywall.ProductReference'][];
2787
+ products: components['defs']['AdaptyFlowPaywall.ProductReference'][];
2481
2788
  web_purchase_url?: string;
2482
- payload_data?: string;
2483
- response_created_at: number;
2484
- request_locale: components['defs']['AdaptyLocale'];
2485
2789
  };
2486
2790
  AdaptyPlacement: {
2487
2791
  developer_id: string;
@@ -2501,7 +2805,8 @@ interface components {
2501
2805
  lang: components['defs']['AdaptyLocale'];
2502
2806
  data: string;
2503
2807
  };
2504
- 'AdaptyPaywall.ProductReference': {
2808
+ 'AdaptyFlowPaywall.ProductReference': {
2809
+ flow_product_id?: string;
2505
2810
  vendor_product_id: string;
2506
2811
  adapty_product_id: string;
2507
2812
  access_level_id: string;
@@ -2511,11 +2816,6 @@ interface components {
2511
2816
  base_plan_id?: string;
2512
2817
  offer_id?: string;
2513
2818
  };
2514
- 'AdaptyPaywall.ViewConfiguration': {
2515
- paywall_builder_id: string;
2516
- lang: components['defs']['AdaptyLocale'];
2517
- json?: string;
2518
- };
2519
2819
  AdaptySubscriptionPeriod: {
2520
2820
  unit: components['defs']['AdaptySubscriptionPeriod.Unit'];
2521
2821
  number_of_units: number;
@@ -2525,7 +2825,6 @@ interface components {
2525
2825
  profile_id: string;
2526
2826
  customer_user_id?: string;
2527
2827
  segment_hash: string;
2528
- applied_attribution_sources?: 'apple_search_ads'[];
2529
2828
  custom_attributes?: components['defs']['AdaptyProfile.CustomAttributes'];
2530
2829
  paid_access_levels?: {
2531
2830
  [key: string]: components['defs']['AdaptyProfile.AccessLevel'];
@@ -2538,6 +2837,7 @@ interface components {
2538
2837
  };
2539
2838
  timestamp: number;
2540
2839
  is_test_user: boolean;
2840
+ applied_attribution_sources?: string[];
2541
2841
  };
2542
2842
  'AdaptyProfile.AccessLevel': {
2543
2843
  id: string;
@@ -2614,6 +2914,9 @@ interface components {
2614
2914
  }, {
2615
2915
  id: string;
2616
2916
  type: 'promotional' | 'win_back';
2917
+ }, {
2918
+ id?: string;
2919
+ type: 'code';
2617
2920
  }]>;
2618
2921
  'AdaptySubscriptionOffer.PaymentMode': 'pay_as_you_go' | 'pay_up_front' | 'free_trial' | 'unknown';
2619
2922
  AdaptyPurchaseResult: OneOf<[{
@@ -2637,7 +2940,7 @@ interface components {
2637
2940
  payload?: string;
2638
2941
  };
2639
2942
  'AdaptyUI.CustomAssets': (components['assets']['Color'] | components['assets']['ColorGradient'] | components['assets']['Image'] | components['assets']['Video'])[];
2640
- 'AdaptyUI.PaywallView': {
2943
+ 'AdaptyUI.FlowView': {
2641
2944
  id: string;
2642
2945
  placement_id: string;
2643
2946
  variation_id: string;
@@ -2657,15 +2960,13 @@ interface components {
2657
2960
  type: 'custom';
2658
2961
  value: string;
2659
2962
  }]>;
2963
+ 'AdaptyUI.Permission': 'push' | 'camera' | 'microphone' | 'location_when_use' | 'location_always' | 'location_full_accuracy' | 'photos' | 'contacts' | 'tracking' | 'calendar' | 'bluetooth' | 'motion' | 'reminders' | 'speech' | 'media_library' | 'local_network' | 'focus_status' | 'homekit' | 'health' | 'siri' | 'music' | string;
2660
2964
  'AdaptyUI.CustomTagsValues': {
2661
2965
  [key: string]: string;
2662
2966
  };
2663
2967
  'AdaptyUI.CustomTimersValues': {
2664
2968
  [key: string]: components['defs']['Date'];
2665
2969
  };
2666
- 'AdaptyUI.AndroidPersonalizedOffers': {
2667
- [key: string]: boolean;
2668
- };
2669
2970
  'AdaptyUI.ProductPurchaseParameters': {
2670
2971
  [key: string]: components['defs']['AdaptyPurchaseParameters'];
2671
2972
  };
@@ -2733,6 +3034,8 @@ interface components {
2733
3034
  Video: {
2734
3035
  id: string;
2735
3036
  type: 'video';
3037
+ h_res?: number;
3038
+ v_res?: number;
2736
3039
  } & OneOf<[{
2737
3040
  asset_id: string;
2738
3041
  }, {
@@ -2810,10 +3113,31 @@ declare class AdaptyDiscountPhaseCoder extends SimpleCoder<Model$30, Serializabl
2810
3113
  protected properties: Properties<Model$30, Serializable$31>;
2811
3114
  }
2812
3115
 
3116
+ //#endregion
3117
+ //#region src/coders/adapty-flow-paywall.d.ts
3118
+ type Model$29 = AdaptyFlowPaywall;
3119
+ type CodableModel$3 = Omit<Model$29, 'productIdentifiers'> & {
3120
+ products?: ProductReference[];
3121
+ };
3122
+ type Serializable$30 = Def['AdaptyFlowPaywall'];
3123
+ declare class AdaptyFlowPaywallCoder extends Coder<Model$29, CodableModel$3, Serializable$30> {
3124
+ protected properties: Properties<CodableModel$3, Serializable$30>;
3125
+ decode(data: Serializable$30): Model$29;
3126
+ encode(data: Model$29): Serializable$30;
3127
+ }
3128
+
3129
+ //#endregion
3130
+ //#region src/coders/adapty-flow.d.ts
3131
+ type Model$28 = AdaptyFlow;
3132
+ type Serializable$29 = Def['AdaptyFlow'];
3133
+ declare class AdaptyFlowCoder extends SimpleCoder<Model$28, Serializable$29> {
3134
+ protected properties: Properties<Model$28, Serializable$29>;
3135
+ }
3136
+
2813
3137
  //#endregion
2814
3138
  //#region src/coders/adapty-identify-params.d.ts
2815
- type Model$29 = IdentifyParamsInput;
2816
- type Serializable$30 = {
3139
+ type Model$27 = IdentifyParamsInput;
3140
+ type Serializable$28 = {
2817
3141
  app_account_token?: string;
2818
3142
  obfuscated_account_id?: string;
2819
3143
  obfuscated_profile_id?: string;
@@ -2821,7 +3145,7 @@ type Serializable$30 = {
2821
3145
  declare class AdaptyIdentifyParamsCoder {
2822
3146
  private readonly platform;
2823
3147
  constructor(platform: IPlatformAdapter);
2824
- encode(params?: Model$29): Serializable$30 | undefined;
3148
+ encode(params?: Model$27): Serializable$28 | undefined;
2825
3149
  }
2826
3150
 
2827
3151
  //#endregion
@@ -2848,7 +3172,7 @@ declare class AdaptyInstallationStatusCoder implements Converter<AdaptyInstallat
2848
3172
  * - iOS RNAConstants.MethodName
2849
3173
  * @internal
2850
3174
  */
2851
- declare const MethodNames: readonly ["activate", "adapty_ui_activate", "adapty_ui_create_paywall_view", "adapty_ui_dismiss_paywall_view", "adapty_ui_present_paywall_view", "adapty_ui_show_dialog", "adapty_ui_create_onboarding_view", "adapty_ui_dismiss_onboarding_view", "adapty_ui_present_onboarding_view", "create_web_paywall_url", "get_current_installation_status", "is_activated", "get_paywall", "get_paywall_for_default_audience", "get_paywall_products", "get_onboarding", "get_onboarding_for_default_audience", "get_profile", "identify", "log_show_paywall", "logout", "make_purchase", "open_web_paywall", "present_code_redemption_sheet", "report_transaction", "restore_purchases", "set_fallback", "set_integration_identifiers", "set_log_level", "update_attribution_data", "update_collecting_refund_data_consent", "update_profile", "update_refund_preference"];
3175
+ declare const MethodNames: readonly ["activate", "adapty_ui_activate", "adapty_ui_create_flow_view", "adapty_ui_dismiss_flow_view", "adapty_ui_present_flow_view", "adapty_ui_show_dialog", "adapty_ui_create_onboarding_view", "adapty_ui_dismiss_onboarding_view", "adapty_ui_present_onboarding_view", "create_web_paywall_url", "get_current_installation_status", "is_activated", "get_flow", "get_flow_for_default_audience", "get_paywall_products", "get_onboarding", "get_onboarding_for_default_audience", "get_profile", "identify", "log_show_flow", "logout", "make_purchase", "open_web_paywall", "present_code_redemption_sheet", "report_transaction", "restore_purchases", "set_fallback", "set_integration_identifiers", "set_log_level", "update_attribution_data", "update_collecting_refund_data_consent", "update_profile", "update_refund_preference", "flow_view_did_answer_permission", "adapty_ui_open_url", "adapty_ui_request_app_review", "observer_purchase_did_start", "observer_purchase_did_finish", "observer_restore_did_start", "observer_restore_did_finish"];
2852
3176
  type MethodName = (typeof MethodNames)[number];
2853
3177
  /**
2854
3178
  * Types of values that can be passed
@@ -2890,67 +3214,48 @@ interface ErrorConverter<Model extends Record<string, any>> extends Converter<Mo
2890
3214
  //#endregion
2891
3215
  //#region src/coders/adapty-native-error.d.ts
2892
3216
  //# sourceMappingURL=error-coder.d.ts.map
2893
- type Model$28 = AdaptyNativeError;
2894
- type Serializable$29 = Def['AdaptyError'];
2895
- declare class AdaptyNativeErrorCoder extends SimpleCoder<Model$28, Serializable$29> implements ErrorConverter<Model$28> {
3217
+ type Model$26 = AdaptyNativeError;
3218
+ type Serializable$27 = Def['AdaptyError'];
3219
+ declare class AdaptyNativeErrorCoder extends SimpleCoder<Model$26, Serializable$27> implements ErrorConverter<Model$26> {
2896
3220
  type: 'error';
2897
- protected properties: Properties<Model$28, Serializable$29>;
2898
- getError(data: Model$28): AdaptyError;
3221
+ protected properties: Properties<Model$26, Serializable$27>;
3222
+ getError(data: Model$26): AdaptyError;
2899
3223
  }
2900
3224
 
2901
3225
  //#endregion
2902
3226
  //#region src/coders/adapty-non-subscription.d.ts
2903
- type Model$27 = AdaptyNonSubscription;
2904
- type Serializable$28 = Def['AdaptyProfile.NonSubscription'];
2905
- declare class AdaptyNonSubscriptionCoder extends SimpleCoder<Model$27, Serializable$28> {
2906
- protected properties: Properties<Model$27, Serializable$28>;
3227
+ type Model$25 = AdaptyNonSubscription;
3228
+ type Serializable$26 = Def['AdaptyProfile.NonSubscription'];
3229
+ declare class AdaptyNonSubscriptionCoder extends SimpleCoder<Model$25, Serializable$26> {
3230
+ protected properties: Properties<Model$25, Serializable$26>;
2907
3231
  }
2908
3232
 
2909
3233
  //#endregion
2910
3234
  //#region src/coders/adapty-onboarding-builder.d.ts
2911
- type Model$26 = AdaptyOnboardingBuilder;
2912
- type Serializable$27 = Required<Def['AdaptyOnboarding']>['onboarding_builder'];
2913
- declare class AdaptyOnboardingBuilderCoder extends SimpleCoder<Model$26, Serializable$27> {
2914
- protected properties: Properties<Model$26, Serializable$27>;
3235
+ type Model$24 = AdaptyOnboardingBuilder;
3236
+ type Serializable$25 = Required<Def['AdaptyOnboarding']>['onboarding_builder'];
3237
+ declare class AdaptyOnboardingBuilderCoder extends SimpleCoder<Model$24, Serializable$25> {
3238
+ protected properties: Properties<Model$24, Serializable$25>;
2915
3239
  }
2916
3240
 
2917
3241
  //#endregion
2918
3242
  //#region src/coders/adapty-onboarding.d.ts
2919
- type Model$25 = AdaptyOnboarding;
2920
- type CodableModel$3 = Omit<Model$25, 'hasViewConfiguration'>;
2921
- type Serializable$26 = Def['AdaptyOnboarding'];
2922
- declare class AdaptyOnboardingCoder extends Coder<Model$25, CodableModel$3, Serializable$26> {
2923
- protected properties: Properties<CodableModel$3, Serializable$26>;
2924
- decode(data: Serializable$26): Model$25;
2925
- encode(data: Model$25): Serializable$26;
2926
- }
2927
-
2928
- //#endregion
2929
- //#region src/coders/adapty-paywall-builder.d.ts
2930
- type Model$24 = AdaptyPaywallBuilder;
2931
- type Serializable$25 = Required<Def['AdaptyPaywall']>['paywall_builder'];
2932
- declare class AdaptyPaywallBuilderCoder extends SimpleCoder<Model$24, Serializable$25> {
2933
- protected properties: Properties<Model$24, Serializable$25>;
3243
+ type Model$23 = AdaptyOnboarding;
3244
+ type CodableModel$2 = Omit<Model$23, 'hasViewConfiguration'>;
3245
+ type Serializable$24 = Def['AdaptyOnboarding'];
3246
+ declare class AdaptyOnboardingCoder extends Coder<Model$23, CodableModel$2, Serializable$24> {
3247
+ protected properties: Properties<CodableModel$2, Serializable$24>;
3248
+ decode(data: Serializable$24): Model$23;
3249
+ encode(data: Model$23): Serializable$24;
2934
3250
  }
2935
3251
 
2936
3252
  //#endregion
2937
3253
  //#region src/coders/adapty-paywall-product.d.ts
2938
- type Model$23 = AdaptyPaywallProduct;
2939
- type Serializable$24 = Def['AdaptyPaywallProduct.Response'];
2940
- declare class AdaptyPaywallProductCoder extends SimpleCoder<Model$23, Serializable$24> {
2941
- protected properties: Properties<Model$23, Serializable$24>;
2942
- getInput(data: Serializable$24): Def['AdaptyPaywallProduct.Request'];
2943
- }
2944
-
2945
- //#endregion
2946
- //#region src/coders/adapty-paywall.d.ts
2947
- type Model$22 = AdaptyPaywall;
2948
- type CodableModel$2 = Omit<Model$22, 'hasViewConfiguration' | 'productIdentifiers'>;
2949
- type Serializable$23 = Def['AdaptyPaywall'];
2950
- declare class AdaptyPaywallCoder extends Coder<Model$22, CodableModel$2, Serializable$23> {
2951
- protected properties: Properties<CodableModel$2, Serializable$23>;
2952
- decode(data: Serializable$23): Model$22;
2953
- encode(data: Model$22): Serializable$23;
3254
+ type Model$22 = AdaptyPaywallProduct;
3255
+ type Serializable$23 = Def['AdaptyPaywallProduct.Response'];
3256
+ declare class AdaptyPaywallProductCoder extends SimpleCoder<Model$22, Serializable$23> {
3257
+ protected properties: Properties<Model$22, Serializable$23>;
3258
+ getInput(data: Serializable$23): Def['AdaptyPaywallProduct.Request'];
2954
3259
  }
2955
3260
 
2956
3261
  //#endregion
@@ -3009,7 +3314,7 @@ declare class AdaptyPurchaseResultCoder extends SimpleCoder<Model$16, Serializab
3009
3314
  //#region src/coders/adapty-remote-config.d.ts
3010
3315
  type Model$15 = AdaptyRemoteConfig;
3011
3316
  type CodableModel$1 = Omit<Model$15, 'dataString'>;
3012
- type Serializable$16 = Required<Def['AdaptyPaywall']>['remote_config'];
3317
+ type Serializable$16 = Def['AdaptyRemoteConfig'];
3013
3318
  declare class AdaptyRemoteConfigCoder extends Coder<Model$15, CodableModel$1, Serializable$16> {
3014
3319
  protected properties: Properties<CodableModel$1, Serializable$16>;
3015
3320
  decode(data: Serializable$16): Model$15;
@@ -3074,8 +3379,8 @@ declare class AdaptyUICreateOnboardingViewParamsCoder {
3074
3379
  }
3075
3380
 
3076
3381
  //#endregion
3077
- //#region src/coders/adapty-ui-create-paywall-view-params.d.ts
3078
- type Model$8 = CreatePaywallViewParamsInput;
3382
+ //#region src/coders/adapty-ui-create-flow-view-params.d.ts
3383
+ type Model$8 = CreateFlowViewParamsInput;
3079
3384
  type Serializable$8 = {
3080
3385
  preload_products?: boolean;
3081
3386
  load_timeout?: number;
@@ -3083,8 +3388,9 @@ type Serializable$8 = {
3083
3388
  custom_timers?: Def['AdaptyUI.CustomTimersValues'];
3084
3389
  custom_assets?: Def['AdaptyUI.CustomAssets'];
3085
3390
  product_purchase_parameters?: Def['AdaptyUI.ProductPurchaseParameters'];
3391
+ enable_safe_area_paddings?: boolean;
3086
3392
  };
3087
- declare class AdaptyUICreatePaywallViewParamsCoder {
3393
+ declare class AdaptyUICreateFlowViewParamsCoder {
3088
3394
  private readonly platform;
3089
3395
  constructor(platform: IPlatformAdapter);
3090
3396
  encode(data: Model$8): Serializable$8;
@@ -3183,7 +3489,7 @@ declare class JSONCoder implements Converter<Model$2, Serialized$1> {
3183
3489
  //#endregion
3184
3490
  //#region src/coders/product-reference.d.ts
3185
3491
  type Model$1 = ProductReference;
3186
- type Serializable$2 = Def['AdaptyPaywall.ProductReference'];
3492
+ type Serializable$2 = Def['AdaptyFlowPaywall.ProductReference'];
3187
3493
  declare class ProductReferenceCoder extends SimpleCoder<Model$1, Serializable$2> {
3188
3494
  protected properties: Properties<Model$1, Serializable$2>;
3189
3495
  }
@@ -3218,8 +3524,8 @@ declare class CoderFactory {
3218
3524
  createNonSubscriptionCoder(): AdaptyNonSubscriptionCoder;
3219
3525
  createOnboardingBuilderCoder(): AdaptyOnboardingBuilderCoder;
3220
3526
  createOnboardingCoder(): AdaptyOnboardingCoder;
3221
- createPaywallBuilderCoder(): AdaptyPaywallBuilderCoder;
3222
- createPaywallCoder(): AdaptyPaywallCoder;
3527
+ createFlowCoder(): AdaptyFlowCoder;
3528
+ createFlowPaywallCoder(): AdaptyFlowPaywallCoder;
3223
3529
  createPaywallProductCoder(): AdaptyPaywallProductCoder;
3224
3530
  createPlacementCoder(): AdaptyPlacementCoder;
3225
3531
  createPriceCoder(): AdaptyPriceCoder;
@@ -3233,7 +3539,7 @@ declare class CoderFactory {
3233
3539
  createSubscriptionOfferIdCoder(): AdaptySubscriptionOfferIdCoder;
3234
3540
  createSubscriptionPeriodCoder(): AdaptySubscriptionPeriodCoder;
3235
3541
  createUiCreateOnboardingViewParamsCoder(): AdaptyUICreateOnboardingViewParamsCoder;
3236
- createUiCreatePaywallViewParamsCoder(): AdaptyUICreatePaywallViewParamsCoder;
3542
+ createUiCreateFlowViewParamsCoder(): AdaptyUICreateFlowViewParamsCoder;
3237
3543
  createUiDialogConfigCoder(): AdaptyUiDialogConfigCoder;
3238
3544
  createUiMediaCacheCoder(): AdaptyUiMediaCacheCoder;
3239
3545
  createUiOnboardingMetaCoder(): AdaptyUiOnboardingMetaCoder;
@@ -3245,102 +3551,9 @@ declare class CoderFactory {
3245
3551
  createHashmapCoder<T extends Converter<any, any>>(coder: T | null): HashmapCoder<T>;
3246
3552
  }
3247
3553
 
3248
- //#endregion
3249
- //#region src/types/paywall-events.d.ts
3250
- //# sourceMappingURL=factory.d.ts.map
3251
- declare const PaywallEventId: {
3252
- readonly DidAppear: "paywall_view_did_appear";
3253
- readonly DidDisappear: "paywall_view_did_disappear";
3254
- readonly DidPerformAction: "paywall_view_did_perform_action";
3255
- readonly DidSelectProduct: "paywall_view_did_select_product";
3256
- readonly DidStartPurchase: "paywall_view_did_start_purchase";
3257
- readonly DidFinishPurchase: "paywall_view_did_finish_purchase";
3258
- readonly DidFailPurchase: "paywall_view_did_fail_purchase";
3259
- readonly DidStartRestore: "paywall_view_did_start_restore";
3260
- readonly DidFinishRestore: "paywall_view_did_finish_restore";
3261
- readonly DidFailRestore: "paywall_view_did_fail_restore";
3262
- readonly DidFailRendering: "paywall_view_did_fail_rendering";
3263
- readonly DidFailLoadingProducts: "paywall_view_did_fail_loading_products";
3264
- readonly DidFinishWebPaymentNavigation: "paywall_view_did_finish_web_payment_navigation";
3265
- };
3266
- type PaywallEventIdType = (typeof PaywallEventId)[keyof typeof PaywallEventId];
3267
- interface PaywallEventView {
3268
- id: string;
3269
- placementId?: string;
3270
- variationId?: string;
3271
- }
3272
- interface BasePaywallEvent {
3273
- id: PaywallEventIdType;
3274
- view: PaywallEventView;
3275
- }
3276
- interface PaywallDidAppearEvent extends BasePaywallEvent {
3277
- id: typeof PaywallEventId.DidAppear;
3278
- }
3279
- interface PaywallDidDisappearEvent extends BasePaywallEvent {
3280
- id: typeof PaywallEventId.DidDisappear;
3281
- }
3282
- type PaywallUserAction = {
3283
- type: 'close';
3284
- } | {
3285
- type: 'system_back';
3286
- } | {
3287
- type: 'open_url';
3288
- value: string;
3289
- openIn: WebPresentation;
3290
- } | {
3291
- type: 'custom';
3292
- value: string;
3293
- };
3294
- interface PaywallDidPerformActionEvent extends BasePaywallEvent {
3295
- id: typeof PaywallEventId.DidPerformAction;
3296
- action: PaywallUserAction;
3297
- }
3298
- interface PaywallDidSelectProductEvent extends BasePaywallEvent {
3299
- id: typeof PaywallEventId.DidSelectProduct;
3300
- productId: string;
3301
- }
3302
- interface PaywallDidStartPurchaseEvent extends BasePaywallEvent {
3303
- id: typeof PaywallEventId.DidStartPurchase;
3304
- product: AdaptyPaywallProduct;
3305
- }
3306
- interface PaywallDidFinishPurchaseEvent extends BasePaywallEvent {
3307
- id: typeof PaywallEventId.DidFinishPurchase;
3308
- purchaseResult: AdaptyPurchaseResult;
3309
- product: AdaptyPaywallProduct;
3310
- }
3311
- interface PaywallDidFailPurchaseEvent extends BasePaywallEvent {
3312
- id: typeof PaywallEventId.DidFailPurchase;
3313
- error: AdaptyError;
3314
- product: AdaptyPaywallProduct;
3315
- }
3316
- interface PaywallDidStartRestoreEvent extends BasePaywallEvent {
3317
- id: typeof PaywallEventId.DidStartRestore;
3318
- }
3319
- interface PaywallDidFinishRestoreEvent extends BasePaywallEvent {
3320
- id: typeof PaywallEventId.DidFinishRestore;
3321
- profile: AdaptyProfile;
3322
- }
3323
- interface PaywallDidFailRestoreEvent extends BasePaywallEvent {
3324
- id: typeof PaywallEventId.DidFailRestore;
3325
- error: AdaptyError;
3326
- }
3327
- interface PaywallDidFailRenderingEvent extends BasePaywallEvent {
3328
- id: typeof PaywallEventId.DidFailRendering;
3329
- error: AdaptyError;
3330
- }
3331
- interface PaywallDidFailLoadingProductsEvent extends BasePaywallEvent {
3332
- id: typeof PaywallEventId.DidFailLoadingProducts;
3333
- error: AdaptyError;
3334
- }
3335
- interface PaywallDidFinishWebPaymentNavigationEvent extends BasePaywallEvent {
3336
- id: typeof PaywallEventId.DidFinishWebPaymentNavigation;
3337
- product?: AdaptyPaywallProduct;
3338
- error?: AdaptyError;
3339
- }
3340
- type ParsedPaywallEvent = PaywallDidAppearEvent | PaywallDidDisappearEvent | PaywallDidPerformActionEvent | PaywallDidSelectProductEvent | PaywallDidStartPurchaseEvent | PaywallDidFinishPurchaseEvent | PaywallDidFailPurchaseEvent | PaywallDidStartRestoreEvent | PaywallDidFinishRestoreEvent | PaywallDidFailRestoreEvent | PaywallDidFailRenderingEvent | PaywallDidFailLoadingProductsEvent | PaywallDidFinishWebPaymentNavigationEvent;
3341
-
3342
3554
  //#endregion
3343
3555
  //#region src/types/onboarding-events.d.ts
3556
+ //# sourceMappingURL=factory.d.ts.map
3344
3557
  declare const OnboardingEventId: {
3345
3558
  readonly Close: "onboarding_on_close_action";
3346
3559
  readonly Custom: "onboarding_on_custom_action";
@@ -3400,19 +3613,19 @@ interface OnboardingErrorEvent extends BaseOnboardingEvent {
3400
3613
  type ParsedOnboardingEvent = OnboardingCloseEvent | OnboardingCustomEvent | OnboardingPaywallEvent | OnboardingStateUpdatedEvent | OnboardingFinishedLoadingEvent | OnboardingAnalyticsEvent | OnboardingErrorEvent;
3401
3614
 
3402
3615
  //#endregion
3403
- //#region src/ui-builder/paywall-event-mapping.d.ts
3404
- type EventName$1 = keyof EventHandlers;
3616
+ //#region src/ui-builder/flow-event-mapping.d.ts
3617
+ type EventName$1 = keyof FlowEventHandlers;
3405
3618
  /**
3406
3619
  * Resolves native event to handler name based on event data
3407
3620
  */
3408
- declare const NATIVE_EVENT_RESOLVER: Record<PaywallEventIdType, (event: ParsedPaywallEvent) => EventName$1 | null>;
3621
+ declare const NATIVE_EVENT_RESOLVER: Record<FlowEventIdType, (event: ParsedFlowEvent) => EventName$1 | null>;
3409
3622
  /**
3410
3623
  * Maps handler name to native event name
3411
3624
  * Used in addListener/addInternalListener to subscribe to correct native event
3412
3625
  */
3413
- declare const HANDLER_TO_NATIVE_EVENT: Record<EventName$1, PaywallEventIdType>;
3414
- type ExtractedArgs$1<T extends keyof EventHandlers> = Parameters<EventHandlers[T]>;
3415
- declare function extractPaywallCallbackArgs<T extends keyof EventHandlers>(handlerName: T, event: ParsedPaywallEvent): ExtractedArgs$1<T>;
3626
+ declare const HANDLER_TO_NATIVE_EVENT: Record<EventName$1, FlowEventIdType>;
3627
+ type ExtractedArgs$1<T extends keyof FlowEventHandlers> = Parameters<FlowEventHandlers[T]>;
3628
+ declare function extractFlowCallbackArgs<T extends keyof FlowEventHandlers>(handlerName: T, event: ParsedFlowEvent): ExtractedArgs$1<T>;
3416
3629
 
3417
3630
  //#endregion
3418
3631
  //#region src/ui-builder/onboarding-event-mapping.d.ts
@@ -3436,18 +3649,18 @@ declare function extractOnboardingCallbackArgs<T extends keyof OnboardingEventHa
3436
3649
 
3437
3650
  //#endregion
3438
3651
  //#region src/coders/parse.d.ts
3439
- declare const AdaptyTypes: readonly ["AdaptyError", "AdaptyProfile", "AdaptyPurchaseResult", "AdaptyPaywall", "AdaptyPaywallProduct", "AdaptyOnboarding", "AdaptyRemoteConfig", "AdaptyPaywallBuilder", "AdaptyInstallationStatus", "AdaptyInstallationDetails", "AdaptyUiView", "AdaptyUiDialogActionType", "AdaptyUiOnboardingMeta", "AdaptyUiOnboardingStateParams", "AdaptyUiOnboardingStateUpdatedAction", "Array<AdaptyPaywallProduct>", "BridgeError", "String", "Boolean", "Void"];
3652
+ declare const AdaptyTypes: readonly ["AdaptyError", "AdaptyProfile", "AdaptyPurchaseResult", "AdaptyFlow", "AdaptyPaywallProduct", "AdaptyOnboarding", "AdaptyRemoteConfig", "AdaptyInstallationStatus", "AdaptyInstallationDetails", "AdaptyUiView", "AdaptyUiDialogActionType", "AdaptyUiOnboardingMeta", "AdaptyUiOnboardingStateParams", "AdaptyUiOnboardingStateUpdatedAction", "Array<AdaptyPaywallProduct>", "BridgeError", "String", "Boolean", "Void"];
3440
3653
  type AdaptyType = (typeof AdaptyTypes)[number];
3441
3654
  declare function parseMethodResult<T>(factory: CoderFactory, input: string, resultType: AdaptyType, ctx?: LogContext): T;
3442
3655
  declare function parseCommonEvent(factory: CoderFactory, event: string, input: string, ctx?: LogContext): any;
3443
3656
 
3444
3657
  //#endregion
3445
- //#region src/coders/parse-paywall.d.ts
3446
- declare function parsePaywallEvent(factory: CoderFactory, input: string, ctx?: LogContext): ParsedPaywallEvent | null;
3658
+ //#region src/coders/parse-flow.d.ts
3659
+ declare function parseFlowEvent(factory: CoderFactory, input: string, ctx?: LogContext): ParsedFlowEvent | null;
3447
3660
 
3448
3661
  //#endregion
3449
3662
  //#region src/coders/parse-onboarding.d.ts
3450
- //# sourceMappingURL=parse-paywall.d.ts.map
3663
+ //# sourceMappingURL=parse-flow.d.ts.map
3451
3664
  declare function parseOnboardingEvent(factory: CoderFactory, input: string, ctx?: LogContext): ParsedOnboardingEvent | null;
3452
3665
 
3453
3666
  //#endregion
@@ -3504,5 +3717,5 @@ declare function withErrorContext<T extends (...args: never[]) => unknown>(callb
3504
3717
  //#endregion
3505
3718
  //# sourceMappingURL=with-error-context.d.ts.map
3506
3719
 
3507
- export { ActivateParamsInput, AdaptyAccessLevel, AdaptyAndroidPurchaseParams, AdaptyAndroidSubscriptionUpdateParameters, AdaptyAndroidSubscriptionUpdateReplacementMode, AdaptyBridgeError, AdaptyCustomAsset, AdaptyCustomColorAsset, AdaptyCustomGradientAsset, AdaptyCustomImageAsset, AdaptyCustomVideoAsset, AdaptyDiscountPhase, AdaptyError, AdaptyErrorInput, AdaptyIOSPresentationStyle, AdaptyInstallationDetails, AdaptyInstallationStatus, AdaptyNativeError, AdaptyNonSubscription, AdaptyOnboarding, AdaptyOnboardingBuilder, AdaptyPaywall, AdaptyPaywallBuilder, AdaptyPaywallProduct, AdaptyPlacement, AdaptyPrice, AdaptyProductIdentifier, AdaptyProfile, AdaptyProfileParameters, AdaptyPurchaseResult, AdaptyRemoteConfig, AdaptySubscription, AdaptySubscriptionDetails, AdaptySubscriptionOffer, AdaptySubscriptionOfferId, AdaptySubscriptionPeriod, AdaptyType, AdaptyUiDialogActionType, AdaptyUiDialogConfig, AdaptyUiMediaCache, AdaptyUiOnboardingMeta, AdaptyUiOnboardingStateParams, AdaptyUiView, AppTrackingTransparencyStatus, ArgType, AttributionSource, CancellationReason, CoderDependencies, CoderFactory, Converter, CreateOnboardingViewParamsInput, CreatePaywallViewParamsInput, DefaultLoggerAdapter, DefaultPlatformAdapter, DefaultSdkMetadataAdapter, ErrorCode, ErrorCodeName, ErrorConverter, EventHandlerResult, EventHandlers, FetchPolicy, FileLocation, Gender, GetPaywallProductsParamsInput, GetPlacementForDefaultAudienceParamsInput, GetPlacementParamsInput, HANDLER_TO_EVENT_CONFIG, HANDLER_TO_NATIVE_EVENT, ILogContext, ILogScope, ILoggerAdapter, IPlatformAdapter, ISdkMetadataAdapter, IdentifyParamsInput, Log, LogArgs, LogContext, LogEvent, LogLevel, LogScope, LogSink, LogTrace, LoggerConfig, MakePurchaseParamsInput, MethodName, MethodNames, NATIVE_EVENT_RESOLVER, NATIVE_EVENT_TO_HANDLERS, ONBOARDING_EVENT_MAPPINGS, OfferType, OnboardingAnalyticsEvent, OnboardingAnalyticsEventName, OnboardingCloseEvent, OnboardingCustomEvent, OnboardingErrorEvent, OnboardingEventHandlers, OnboardingEventId, OnboardingEventIdType, OnboardingEventView, OnboardingFinishedLoadingEvent, OnboardingPaywallEvent, OnboardingStateUpdatedAction, OnboardingStateUpdatedEvent, ParsedOnboardingEvent, ParsedPaywallEvent, PaywallDidAppearEvent, PaywallDidDisappearEvent, PaywallDidFailLoadingProductsEvent, PaywallDidFailPurchaseEvent, PaywallDidFailRenderingEvent, PaywallDidFailRestoreEvent, PaywallDidFinishPurchaseEvent, PaywallDidFinishRestoreEvent, PaywallDidFinishWebPaymentNavigationEvent, PaywallDidPerformActionEvent, PaywallDidSelectProductEvent, PaywallDidStartPurchaseEvent, PaywallDidStartRestoreEvent, PaywallEventId, PaywallEventIdType, PaywallEventView, PaywallUserAction, PlatformOS, ProductPeriod, ProductPurchaseParams, ProductReference, RefundPreference, ScopeArgs, Serializable$1 as Serializable, UserEventName, VendorStore, WebPresentation, components, consoleLogSink, extractOnboardingCallbackArgs, extractPaywallCallbackArgs, filterUndefined, generateId, getErrorCode, getErrorPrompt, mapValues, mergeOptions, parseCommonEvent, parseMethodResult, parseOnboardingEvent, parsePaywallEvent, withErrorContext };
3720
+ export { ActivateParamsInput, AdaptyAccessLevel, AdaptyAndroidPurchaseParams, AdaptyAndroidSubscriptionUpdateReplacementMode, AdaptyBridgeError, AdaptyCustomAsset, AdaptyCustomColorAsset, AdaptyCustomGradientAsset, AdaptyCustomImageAsset, AdaptyCustomVideoAsset, AdaptyDiscountPhase, AdaptyError, AdaptyErrorInput, AdaptyFlow, AdaptyFlowPaywall, AdaptyIOSPresentationStyle, AdaptyInstallationDetails, AdaptyInstallationStatus, AdaptyNativeError, AdaptyNonSubscription, AdaptyOnboarding, AdaptyOnboardingBuilder, AdaptyPaywallProduct, AdaptyPermission, AdaptyPlacement, AdaptyPrice, AdaptyProductIdentifier, AdaptyProfile, AdaptyProfileParameters, AdaptyPurchaseResult, AdaptyRemoteConfig, AdaptySubscription, AdaptySubscriptionDetails, AdaptySubscriptionOffer, AdaptySubscriptionOfferId, AdaptySubscriptionPeriod, AdaptyType, AdaptyUiDialogActionType, AdaptyUiDialogConfig, AdaptyUiMediaCache, AdaptyUiOnboardingMeta, AdaptyUiOnboardingStateParams, AdaptyUiView, AppTrackingTransparencyStatus, ArgType, AttributionSource, CancellationReason, CoderDependencies, CoderFactory, Converter, CreateFlowViewParamsInput, CreateOnboardingViewParamsInput, DefaultLoggerAdapter, DefaultPlatformAdapter, DefaultSdkMetadataAdapter, ErrorCode, ErrorCodeName, ErrorConverter, EventHandlerResult, FetchPolicy, FileLocation, FlowDidAppearEvent, FlowDidAskPermissionEvent, FlowDidDisappearEvent, FlowDidFailLoadingProductsEvent, FlowDidFailPurchaseEvent, FlowDidFailRestoreEvent, FlowDidFinishPurchaseEvent, FlowDidFinishRestoreEvent, FlowDidFinishWebPaymentNavigationEvent, FlowDidPerformActionEvent, FlowDidReceiveAnalyticEvent, FlowDidReceiveErrorEvent, FlowDidRequestAppReviewEvent, FlowDidSelectProductEvent, FlowDidStartPurchaseEvent, FlowDidStartRestoreEvent, FlowEventHandlers, FlowEventId, FlowEventIdType, FlowEventView, FlowObserverDidInitiatePurchaseEvent, FlowObserverDidInitiateRestoreEvent, FlowPermissionResponse, FlowPermissionStatus, FlowUserAction, Gender, GetPaywallProductsParamsInput, GetPlacementForDefaultAudienceParamsInput, GetPlacementParamsInput, HANDLER_TO_EVENT_CONFIG, HANDLER_TO_NATIVE_EVENT, ILogContext, ILogScope, ILoggerAdapter, IPlatformAdapter, ISdkMetadataAdapter, IdentifyParamsInput, Log, LogArgs, LogContext, LogEvent, LogLevel, LogScope, LogSink, LogTrace, LoggerConfig, MakePurchaseParamsInput, MethodName, MethodNames, NATIVE_EVENT_RESOLVER, NATIVE_EVENT_TO_HANDLERS, ONBOARDING_EVENT_MAPPINGS, OfferType, OnboardingAnalyticsEvent, OnboardingAnalyticsEventName, OnboardingCloseEvent, OnboardingCustomEvent, OnboardingErrorEvent, OnboardingEventHandlers, OnboardingEventId, OnboardingEventIdType, OnboardingEventView, OnboardingFinishedLoadingEvent, OnboardingPaywallEvent, OnboardingStateUpdatedAction, OnboardingStateUpdatedEvent, ParsedFlowEvent, ParsedOnboardingEvent, PlatformOS, ProductPeriod, ProductPurchaseParams, ProductReference, RefundPreference, ScopeArgs, Serializable$1 as Serializable, UserEventName, VendorStore, WebPresentation, components, consoleLogSink, extractFlowCallbackArgs, extractOnboardingCallbackArgs, filterUndefined, generateId, getErrorCode, getErrorPrompt, mapValues, mergeOptions, parseCommonEvent, parseFlowEvent, parseMethodResult, parseOnboardingEvent, withErrorContext };
3508
3721
  //# sourceMappingURL=index.d.cts.map