@adapty/core 4.0.2 → 4.1.0-dev.1396a8d7cefb0e3107a7ddc23796d2d092e89ec2

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.mts CHANGED
@@ -529,6 +529,50 @@ interface AdaptyFlowPaywall {
529
529
  id: string;
530
530
  webPurchaseUrl?: string;
531
531
  }
532
+ /**
533
+ * Describes a single layout of a flow UI schema.
534
+ *
535
+ * @remarks
536
+ * Renderer data, not a public API.
537
+ * @internal
538
+ */
539
+ interface AdaptyFlowUiSchemaLayout {
540
+ readonly flowLayoutId: string;
541
+ }
542
+ /**
543
+ * Describes a single grid of a flow UI schema.
544
+ *
545
+ * @remarks
546
+ * Renderer data, not a public API.
547
+ * @internal
548
+ */
549
+ interface AdaptyFlowUiSchemaGrid {
550
+ /**
551
+ * Platforms this grid applies to, or `'all'` for every platform.
552
+ * @readonly
553
+ */
554
+ readonly platforms?: 'all' | ('ios' | 'android')[];
555
+ /**
556
+ * Device classes this grid applies to, or `'all'` for every device class.
557
+ * @readonly
558
+ */
559
+ readonly devices?: 'all' | ('phone' | 'tab')[];
560
+ readonly customId?: string;
561
+ readonly hBreakpoints?: number[];
562
+ readonly vBreakpoints?: number[];
563
+ readonly cells: number[];
564
+ }
565
+ /**
566
+ * Layout schema used by the Adapty UI builder to render a flow.
567
+ *
568
+ * @remarks
569
+ * Renderer data, not a public API.
570
+ * @internal
571
+ */
572
+ interface AdaptyFlowUiSchema {
573
+ readonly layouts: AdaptyFlowUiSchemaLayout[];
574
+ readonly grids: AdaptyFlowUiSchemaGrid[];
575
+ }
532
576
  /**
533
577
  * Describes an object that represents a flow,
534
578
  * fetched for a placement.
@@ -557,6 +601,15 @@ interface AdaptyFlow {
557
601
  * @readonly
558
602
  */
559
603
  readonly paywalls: AdaptyFlowPaywall[];
604
+ /**
605
+ * Layout schema used by the Adapty UI builder to render this flow.
606
+ *
607
+ * @remarks
608
+ * Renderer data, not a public API.
609
+ * @internal
610
+ * @readonly
611
+ */
612
+ readonly uiSchema?: AdaptyFlowUiSchema;
560
613
  id: string;
561
614
  flowVersionId?: string;
562
615
  /** Server response creation timestamp in milliseconds. */
@@ -655,14 +708,12 @@ type AdaptyPurchaseResult = {
655
708
  };
656
709
  };
657
710
  /**
658
- * Identifier of an attribution source applied to a profile.
711
+ * Identifiers of attribution providers applied to the profile.
659
712
  *
660
- * Known value is `'apple_search_ads'`. Other identifiers may be emitted
661
- * in future versions, so any string is accepted — clients must tolerate
662
- * unknown values.
713
+ * Other identifiers may be emitted in future versions, so any string is accepted
663
714
  * @public
664
715
  */
665
- type AttributionSource = 'apple_search_ads' | (string & {});
716
+ type AdaptyExternalAttributionProvider = 'apple_search_ads' | 'adjust' | 'appsflyer' | 'branch' | 'tenjin' | (string & {});
666
717
  /**
667
718
  * Interface representing a user profile in Adapty,
668
719
  * including details about the user's subscriptions and consumable products.
@@ -677,12 +728,10 @@ interface AdaptyProfile {
677
728
  */
678
729
  readonly accessLevels?: Record<string, AdaptyAccessLevel>;
679
730
  /**
680
- * Identifiers of attribution sources applied to the profile.
681
- * Known value is `'apple_search_ads'`; unknown values may appear
682
- * in future versions.
731
+ * Identifiers of attribution providers applied to the profile.
683
732
  * @readonly
684
733
  */
685
- readonly appliedAttributionSources?: AttributionSource[];
734
+ readonly appliedExternalAttributionProviders?: AdaptyExternalAttributionProvider[];
686
735
  /**
687
736
  * Object representing custom attributes set for the user using
688
737
  * the {@link Adapty.updateProfile} method.
@@ -1034,6 +1083,55 @@ interface AdaptyPaywallProduct {
1034
1083
  readonly isFamilyShareable: boolean;
1035
1084
  };
1036
1085
  }
1086
+ /**
1087
+ * Describes a product promoted in the App Store,
1088
+ * received through the `'onPromotedPurchaseReceived'` event.
1089
+ *
1090
+ * @remarks
1091
+ * Unlike {@link AdaptyPaywallProduct}, a promoted product does not belong to a
1092
+ * paywall, so it carries no placement, variation or A/B test information.
1093
+ * @public
1094
+ */
1095
+ interface AdaptyPromotedProduct {
1096
+ /**
1097
+ * A description of the product.
1098
+ */
1099
+ readonly localizedDescription: string;
1100
+ /**
1101
+ * The name of the product.
1102
+ */
1103
+ readonly localizedTitle: string;
1104
+ /**
1105
+ * The region code of the locale used to format the price of the product.
1106
+ * ISO 3166 ALPHA-2 (US, DE)
1107
+ */
1108
+ readonly regionCode?: string;
1109
+ /**
1110
+ * The cost of the product in the local currency
1111
+ */
1112
+ readonly price?: AdaptyPrice;
1113
+ /**
1114
+ * Unique identifier of a product
1115
+ * from App Store Connect or Google Play Console
1116
+ */
1117
+ readonly vendorProductId: string;
1118
+ /**
1119
+ * Internal payload data attached to the product.
1120
+ * @internal
1121
+ */
1122
+ payloadData?: string;
1123
+ subscription?: AdaptySubscriptionDetails;
1124
+ ios?: {
1125
+ /**
1126
+ * Boolean value that indicates
1127
+ * whether the product is available for family sharing
1128
+ * in App Store Connect.
1129
+ * Will be `false` for iOS version below 14.0 and macOS version below 11.0.
1130
+ * @see {@link https://developer.apple.com/documentation/storekit/skproduct/3564805-isfamilyshareable}
1131
+ */
1132
+ readonly isFamilyShareable: boolean;
1133
+ };
1134
+ }
1037
1135
  interface AdaptySubscriptionDetails {
1038
1136
  /**
1039
1137
  * The period details for products that are subscriptions.
@@ -1686,6 +1784,11 @@ interface CreateFlowViewParamsInput {
1686
1784
  * built with.
1687
1785
  */
1688
1786
  locale?: string;
1787
+ /**
1788
+ * The id of a custom layout to render instead of the one resolved
1789
+ * automatically for the current device.
1790
+ */
1791
+ customLayoutId?: string;
1689
1792
  /**
1690
1793
  * `true` if you want to prefetch products before presenting a flow view.
1691
1794
  */
@@ -1980,6 +2083,16 @@ interface ActivateParamsInput {
1980
2083
  * @defaultValue `false`
1981
2084
  */
1982
2085
  ipAddressCollectionDisabled?: boolean;
2086
+ /**
2087
+ * Enables the Adapty Attribution service.
2088
+ *
2089
+ * @remarks
2090
+ * When enabled, the SDK registers the install with Adapty Attribution so
2091
+ * acquisition data can be attributed without a third-party attribution SDK.
2092
+ *
2093
+ * @defaultValue `false`
2094
+ */
2095
+ adaptyAttributionEnabled?: boolean;
1983
2096
  ios?: {
1984
2097
  /**
1985
2098
  * Disables IDFA collection
@@ -2149,6 +2262,7 @@ interface components {
2149
2262
  method: 'adapty_ui_create_flow_view';
2150
2263
  flow: components['defs']['AdaptyFlow'];
2151
2264
  locale?: components['defs']['AdaptyLocale'];
2265
+ custom_layout_id?: string;
2152
2266
  load_timeout?: number;
2153
2267
  preload_products?: boolean;
2154
2268
  custom_tags?: components['defs']['AdaptyUI.CustomTagsValues'];
@@ -2357,6 +2471,15 @@ interface components {
2357
2471
  }, {
2358
2472
  success: components['defs']['AdaptyPurchaseResult'];
2359
2473
  }]>;
2474
+ 'MakePromotedPurchase.Request': {
2475
+ method: 'make_promoted_purchase';
2476
+ product: components['defs']['AdaptyPromotedProduct.Request'];
2477
+ };
2478
+ 'MakePromotedPurchase.Response': OneOf<[{
2479
+ error: components['defs']['AdaptyError'];
2480
+ }, {
2481
+ success: components['defs']['AdaptyPurchaseResult'];
2482
+ }]>;
2360
2483
  'OpenWebPaywall.Request': {
2361
2484
  method: 'open_web_paywall';
2362
2485
  open_in?: components['defs']['AdaptyWebPresentation'];
@@ -2443,12 +2566,12 @@ interface components {
2443
2566
  }, {
2444
2567
  success: true;
2445
2568
  }]>;
2446
- 'UpdateAttributionData.Request': {
2447
- method: 'update_attribution_data';
2569
+ 'UpdateExternalAttributionData.Request': {
2570
+ method: 'update_external_attribution_data';
2448
2571
  attribution: string;
2449
- source: string;
2572
+ provider: string;
2450
2573
  };
2451
- 'UpdateAttributionData.Response': OneOf<[{
2574
+ 'UpdateExternalAttributionData.Response': OneOf<[{
2452
2575
  error: components['defs']['AdaptyError'];
2453
2576
  }, {
2454
2577
  success: true;
@@ -2563,6 +2686,10 @@ interface components {
2563
2686
  id: 'did_load_latest_profile';
2564
2687
  profile: components['defs']['AdaptyProfile'];
2565
2688
  };
2689
+ 'Event.DidReceivePromotedPurchase': {
2690
+ id: 'did_receive_promoted_purchase';
2691
+ product: components['defs']['AdaptyPromotedProduct.Response'];
2692
+ };
2566
2693
  'Event.OnInstallationDetailsSuccess': {
2567
2694
  id: 'on_installation_details_success';
2568
2695
  details: components['defs']['AdaptyInstallationDetails'];
@@ -2726,6 +2853,7 @@ interface components {
2726
2853
  google_enable_pending_prepaid_plans?: boolean;
2727
2854
  google_local_access_level_allowed?: boolean;
2728
2855
  ip_address_collection_disabled?: boolean;
2856
+ adapty_attribution_enabled?: boolean;
2729
2857
  clear_data_on_backup?: boolean;
2730
2858
  server_cluster?: 'default' | 'eu' | 'cn';
2731
2859
  backend_proxy_host?: string;
@@ -2761,7 +2889,7 @@ interface components {
2761
2889
  is_family_shareable?: boolean;
2762
2890
  region_code?: string;
2763
2891
  price: components['defs']['AdaptyPrice'];
2764
- subscription?: components['defs']['AdaptyPaywallProduct.Subscription'];
2892
+ subscription?: components['defs']['AdaptyProduct.Subscription'];
2765
2893
  payload_data?: string;
2766
2894
  };
2767
2895
  AdaptyPrice: {
@@ -2770,7 +2898,26 @@ interface components {
2770
2898
  currency_symbol?: string;
2771
2899
  localized_string?: string;
2772
2900
  };
2773
- 'AdaptyPaywallProduct.Subscription': {
2901
+ 'AdaptyPromotedProduct.Request': {
2902
+ vendor_product_id: string;
2903
+ subscription?: {
2904
+ offer?: {
2905
+ offer_identifier: components['defs']['AdaptySubscriptionOffer.Identifier'];
2906
+ };
2907
+ };
2908
+ payload_data?: string;
2909
+ };
2910
+ 'AdaptyPromotedProduct.Response': {
2911
+ vendor_product_id: string;
2912
+ localized_description: string;
2913
+ localized_title: string;
2914
+ is_family_shareable?: boolean;
2915
+ region_code?: string;
2916
+ price: components['defs']['AdaptyPrice'];
2917
+ subscription?: components['defs']['AdaptyProduct.Subscription'];
2918
+ payload_data?: string;
2919
+ };
2920
+ 'AdaptyProduct.Subscription': {
2774
2921
  group_identifier?: string;
2775
2922
  period: components['defs']['AdaptySubscriptionPeriod'];
2776
2923
  localized_period?: string;
@@ -2784,7 +2931,11 @@ interface components {
2784
2931
  access_level_id: string;
2785
2932
  product_type: string;
2786
2933
  paywall_product_index: number;
2787
- subscription_offer_identifier?: components['defs']['AdaptySubscriptionOffer.Identifier'];
2934
+ subscription?: {
2935
+ offer?: {
2936
+ offer_identifier: components['defs']['AdaptySubscriptionOffer.Identifier'];
2937
+ };
2938
+ };
2788
2939
  paywall_variation_id: string;
2789
2940
  paywall_ab_test_name: string;
2790
2941
  paywall_name: string;
@@ -2825,6 +2976,19 @@ interface components {
2825
2976
  remote_configs?: components['defs']['AdaptyRemoteConfig'][];
2826
2977
  flow_version_id?: string;
2827
2978
  variations: components['defs']['AdaptyFlowPaywall'][];
2979
+ ui_schema?: {
2980
+ layouts: {
2981
+ flow_layout_id: string;
2982
+ }[];
2983
+ grids: {
2984
+ platforms?: OneOf<['all', ('ios' | 'android')[]]>;
2985
+ devices?: OneOf<['all', ('phone' | 'tab')[]]>;
2986
+ custom_id?: string;
2987
+ h_breakpoints?: number[];
2988
+ v_breakpoints?: number[];
2989
+ cells: number[];
2990
+ }[];
2991
+ };
2828
2992
  payload_data?: string;
2829
2993
  response_created_at: number;
2830
2994
  };
@@ -3138,56 +3302,73 @@ declare abstract class SimpleCoder<Model extends Record<string, any>, Serializab
3138
3302
  //#endregion
3139
3303
  //#region src/coders/adapty-access-level.d.ts
3140
3304
  //# sourceMappingURL=coder.d.ts.map
3141
- type Model$32 = AdaptyAccessLevel;
3142
- type Serializable$33 = Def['AdaptyProfile.AccessLevel'];
3143
- declare class AdaptyAccessLevelCoder extends SimpleCoder<Model$32, Serializable$33> {
3144
- protected properties: Properties<Model$32, Serializable$33>;
3305
+ type Model$34 = AdaptyAccessLevel;
3306
+ type Serializable$35 = Def['AdaptyProfile.AccessLevel'];
3307
+ declare class AdaptyAccessLevelCoder extends SimpleCoder<Model$34, Serializable$35> {
3308
+ protected properties: Properties<Model$34, Serializable$35>;
3145
3309
  }
3146
3310
 
3147
3311
  //#endregion
3148
3312
  //#region src/coders/adapty-configuration.d.ts
3149
- type Model$31 = ActivateParamsInput;
3150
- type Serializable$32 = Def['AdaptyConfiguration'];
3313
+ type Model$33 = ActivateParamsInput;
3314
+ type Serializable$34 = Def['AdaptyConfiguration'];
3151
3315
  declare class AdaptyConfigurationCoder {
3152
3316
  private readonly platform;
3153
3317
  private readonly sdkMetadata;
3154
3318
  constructor(platform: IPlatformAdapter, sdkMetadata: ISdkMetadataAdapter);
3155
- encode(apiKey: string, params: Model$31): Serializable$32;
3319
+ encode(apiKey: string, params: Model$33): Serializable$34;
3156
3320
  }
3157
3321
 
3158
3322
  //#endregion
3159
3323
  //#region src/coders/adapty-discount-phase.d.ts
3160
- type Model$30 = AdaptyDiscountPhase;
3161
- type Serializable$31 = Def['AdaptySubscriptionOffer.Phase'];
3162
- declare class AdaptyDiscountPhaseCoder extends SimpleCoder<Model$30, Serializable$31> {
3163
- protected properties: Properties<Model$30, Serializable$31>;
3324
+ type Model$32 = AdaptyDiscountPhase;
3325
+ type Serializable$33 = Def['AdaptySubscriptionOffer.Phase'];
3326
+ declare class AdaptyDiscountPhaseCoder extends SimpleCoder<Model$32, Serializable$33> {
3327
+ protected properties: Properties<Model$32, Serializable$33>;
3164
3328
  }
3165
3329
 
3166
3330
  //#endregion
3167
3331
  //#region src/coders/adapty-flow-paywall.d.ts
3168
- type Model$29 = AdaptyFlowPaywall;
3169
- type CodableModel$3 = Omit<Model$29, 'productIdentifiers'> & {
3332
+ type Model$31 = AdaptyFlowPaywall;
3333
+ type CodableModel$3 = Omit<Model$31, 'productIdentifiers'> & {
3170
3334
  products?: ProductReference[];
3171
3335
  };
3172
- type Serializable$30 = Def['AdaptyFlowPaywall'];
3173
- declare class AdaptyFlowPaywallCoder extends Coder<Model$29, CodableModel$3, Serializable$30> {
3174
- protected properties: Properties<CodableModel$3, Serializable$30>;
3175
- decode(data: Serializable$30): Model$29;
3176
- encode(data: Model$29): Serializable$30;
3336
+ type Serializable$32 = Def['AdaptyFlowPaywall'];
3337
+ declare class AdaptyFlowPaywallCoder extends Coder<Model$31, CodableModel$3, Serializable$32> {
3338
+ protected properties: Properties<CodableModel$3, Serializable$32>;
3339
+ decode(data: Serializable$32): Model$31;
3340
+ encode(data: Model$31): Serializable$32;
3341
+ }
3342
+
3343
+ //#endregion
3344
+ //#region src/coders/adapty-flow-ui-schema.d.ts
3345
+ type Model$30 = AdaptyFlowUiSchema;
3346
+ type Serializable$31 = NonNullable<Def['AdaptyFlow']['ui_schema']>;
3347
+ /**
3348
+ * `ui_schema` is written by hand rather than declared through `Properties`,
3349
+ * because `platforms` and `devices` are unions of an `'all'` literal and an
3350
+ * array, and `PropertyMeta` can only carry a single runtime type per property.
3351
+ *
3352
+ * The flow is passed back to the native side (e.g. `adapty_ui_create_flow_view`),
3353
+ * so this schema has to survive a decode/encode round trip unchanged.
3354
+ */
3355
+ declare class AdaptyFlowUiSchemaCoder implements Converter<Model$30, Serializable$31> {
3356
+ decode(json: Serializable$31): Model$30;
3357
+ encode(model: Model$30): Serializable$31;
3177
3358
  }
3178
3359
 
3179
3360
  //#endregion
3180
3361
  //#region src/coders/adapty-flow.d.ts
3181
- type Model$28 = AdaptyFlow;
3182
- type Serializable$29 = Def['AdaptyFlow'];
3183
- declare class AdaptyFlowCoder extends SimpleCoder<Model$28, Serializable$29> {
3184
- protected properties: Properties<Model$28, Serializable$29>;
3362
+ type Model$29 = AdaptyFlow;
3363
+ type Serializable$30 = Def['AdaptyFlow'];
3364
+ declare class AdaptyFlowCoder extends SimpleCoder<Model$29, Serializable$30> {
3365
+ protected properties: Properties<Model$29, Serializable$30>;
3185
3366
  }
3186
3367
 
3187
3368
  //#endregion
3188
3369
  //#region src/coders/adapty-identify-params.d.ts
3189
- type Model$27 = IdentifyParamsInput;
3190
- type Serializable$28 = {
3370
+ type Model$28 = IdentifyParamsInput;
3371
+ type Serializable$29 = {
3191
3372
  app_account_token?: string;
3192
3373
  obfuscated_account_id?: string;
3193
3374
  obfuscated_profile_id?: string;
@@ -3195,7 +3376,7 @@ type Serializable$28 = {
3195
3376
  declare class AdaptyIdentifyParamsCoder {
3196
3377
  private readonly platform;
3197
3378
  constructor(platform: IPlatformAdapter);
3198
- encode(params?: Model$27): Serializable$28 | undefined;
3379
+ encode(params?: Model$28): Serializable$29 | undefined;
3199
3380
  }
3200
3381
 
3201
3382
  //#endregion
@@ -3217,12 +3398,14 @@ declare class AdaptyInstallationStatusCoder implements Converter<AdaptyInstallat
3217
3398
  //#region src/types/bridge.d.ts
3218
3399
  //# sourceMappingURL=adapty-installation-status.d.ts.map
3219
3400
  /**
3220
- * Valid list of callable bridge handlers
3221
- * Must be the same as
3222
- * - iOS RNAConstants.MethodName
3401
+ * Valid list of callable bridge handlers.
3402
+ *
3403
+ * The source of truth is `cross_platform.yaml`: one entry per `$requests`
3404
+ * method const. `bridge.test.ts` asserts the two stay in sync — a method the
3405
+ * native side does not register would fail at runtime, not at compile time.
3223
3406
  * @internal
3224
3407
  */
3225
- 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"];
3408
+ declare const MethodNames: readonly ["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", "get_log_level", "get_sdk_version", "identify", "log_show_flow", "logout", "make_promoted_purchase", "make_purchase", "open_web_paywall", "present_code_redemption_sheet", "report_transaction", "restore_purchases", "set_fallback", "set_integration_identifiers", "set_log_level", "update_collecting_refund_data_consent", "update_external_attribution_data", "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"];
3226
3409
  type MethodName = (typeof MethodNames)[number];
3227
3410
  /**
3228
3411
  * Types of values that can be passed
@@ -3249,6 +3432,7 @@ interface AdaptyBridgeError {
3249
3432
  }
3250
3433
  interface EventMap {
3251
3434
  onLatestProfileLoad: string;
3435
+ onPromotedPurchaseReceived: string;
3252
3436
  onInstallationDetailsSuccess: string;
3253
3437
  onInstallationDetailsFail: string;
3254
3438
  }
@@ -3264,64 +3448,73 @@ interface ErrorConverter<Model extends Record<string, any>> extends Converter<Mo
3264
3448
  //#endregion
3265
3449
  //#region src/coders/adapty-native-error.d.ts
3266
3450
  //# sourceMappingURL=error-coder.d.ts.map
3267
- type Model$26 = AdaptyNativeError;
3268
- type Serializable$27 = Def['AdaptyError'];
3269
- declare class AdaptyNativeErrorCoder extends SimpleCoder<Model$26, Serializable$27> implements ErrorConverter<Model$26> {
3451
+ type Model$27 = AdaptyNativeError;
3452
+ type Serializable$28 = Def['AdaptyError'];
3453
+ declare class AdaptyNativeErrorCoder extends SimpleCoder<Model$27, Serializable$28> implements ErrorConverter<Model$27> {
3270
3454
  type: 'error';
3271
- protected properties: Properties<Model$26, Serializable$27>;
3272
- getError(data: Model$26): AdaptyError;
3455
+ protected properties: Properties<Model$27, Serializable$28>;
3456
+ getError(data: Model$27): AdaptyError;
3273
3457
  }
3274
3458
 
3275
3459
  //#endregion
3276
3460
  //#region src/coders/adapty-non-subscription.d.ts
3277
- type Model$25 = AdaptyNonSubscription;
3278
- type Serializable$26 = Def['AdaptyProfile.NonSubscription'];
3279
- declare class AdaptyNonSubscriptionCoder extends SimpleCoder<Model$25, Serializable$26> {
3280
- protected properties: Properties<Model$25, Serializable$26>;
3461
+ type Model$26 = AdaptyNonSubscription;
3462
+ type Serializable$27 = Def['AdaptyProfile.NonSubscription'];
3463
+ declare class AdaptyNonSubscriptionCoder extends SimpleCoder<Model$26, Serializable$27> {
3464
+ protected properties: Properties<Model$26, Serializable$27>;
3281
3465
  }
3282
3466
 
3283
3467
  //#endregion
3284
3468
  //#region src/coders/adapty-onboarding-builder.d.ts
3285
- type Model$24 = AdaptyOnboardingBuilder;
3286
- type Serializable$25 = Required<Def['AdaptyOnboarding']>['onboarding_builder'];
3287
- declare class AdaptyOnboardingBuilderCoder extends SimpleCoder<Model$24, Serializable$25> {
3288
- protected properties: Properties<Model$24, Serializable$25>;
3469
+ type Model$25 = AdaptyOnboardingBuilder;
3470
+ type Serializable$26 = Required<Def['AdaptyOnboarding']>['onboarding_builder'];
3471
+ declare class AdaptyOnboardingBuilderCoder extends SimpleCoder<Model$25, Serializable$26> {
3472
+ protected properties: Properties<Model$25, Serializable$26>;
3289
3473
  }
3290
3474
 
3291
3475
  //#endregion
3292
3476
  //#region src/coders/adapty-onboarding.d.ts
3293
- type Model$23 = AdaptyOnboarding;
3294
- type CodableModel$2 = Omit<Model$23, 'hasViewConfiguration'>;
3295
- type Serializable$24 = Def['AdaptyOnboarding'];
3296
- declare class AdaptyOnboardingCoder extends Coder<Model$23, CodableModel$2, Serializable$24> {
3297
- protected properties: Properties<CodableModel$2, Serializable$24>;
3298
- decode(data: Serializable$24): Model$23;
3299
- encode(data: Model$23): Serializable$24;
3477
+ type Model$24 = AdaptyOnboarding;
3478
+ type CodableModel$2 = Omit<Model$24, 'hasViewConfiguration'>;
3479
+ type Serializable$25 = Def['AdaptyOnboarding'];
3480
+ declare class AdaptyOnboardingCoder extends Coder<Model$24, CodableModel$2, Serializable$25> {
3481
+ protected properties: Properties<CodableModel$2, Serializable$25>;
3482
+ decode(data: Serializable$25): Model$24;
3483
+ encode(data: Model$24): Serializable$25;
3300
3484
  }
3301
3485
 
3302
3486
  //#endregion
3303
3487
  //#region src/coders/adapty-paywall-product.d.ts
3304
- type Model$22 = AdaptyPaywallProduct;
3305
- type Serializable$23 = Def['AdaptyPaywallProduct.Response'];
3306
- declare class AdaptyPaywallProductCoder extends SimpleCoder<Model$22, Serializable$23> {
3307
- protected properties: Properties<Model$22, Serializable$23>;
3308
- getInput(data: Serializable$23): Def['AdaptyPaywallProduct.Request'];
3488
+ type Model$23 = AdaptyPaywallProduct;
3489
+ type Serializable$24 = Def['AdaptyPaywallProduct.Response'];
3490
+ declare class AdaptyPaywallProductCoder extends SimpleCoder<Model$23, Serializable$24> {
3491
+ protected properties: Properties<Model$23, Serializable$24>;
3492
+ getInput(data: Serializable$24): Def['AdaptyPaywallProduct.Request'];
3309
3493
  }
3310
3494
 
3311
3495
  //#endregion
3312
3496
  //#region src/coders/adapty-placement.d.ts
3313
- type Model$21 = AdaptyPlacement;
3314
- type Serializable$22 = Def['AdaptyPlacement'];
3315
- declare class AdaptyPlacementCoder extends SimpleCoder<Model$21, Serializable$22> {
3316
- protected properties: Properties<Model$21, Serializable$22>;
3497
+ type Model$22 = AdaptyPlacement;
3498
+ type Serializable$23 = Def['AdaptyPlacement'];
3499
+ declare class AdaptyPlacementCoder extends SimpleCoder<Model$22, Serializable$23> {
3500
+ protected properties: Properties<Model$22, Serializable$23>;
3317
3501
  }
3318
3502
 
3319
3503
  //#endregion
3320
3504
  //#region src/coders/adapty-price.d.ts
3321
- type Model$20 = AdaptyPrice;
3322
- type Serializable$21 = Def['AdaptyPrice'];
3323
- declare class AdaptyPriceCoder extends SimpleCoder<Model$20, Serializable$21> {
3505
+ type Model$21 = AdaptyPrice;
3506
+ type Serializable$22 = Def['AdaptyPrice'];
3507
+ declare class AdaptyPriceCoder extends SimpleCoder<Model$21, Serializable$22> {
3508
+ protected properties: Properties<Model$21, Serializable$22>;
3509
+ }
3510
+
3511
+ //#endregion
3512
+ //#region src/coders/adapty-promoted-product.d.ts
3513
+ type Model$20 = AdaptyPromotedProduct;
3514
+ type Serializable$21 = Def['AdaptyPromotedProduct.Response'];
3515
+ declare class AdaptyPromotedProductCoder extends SimpleCoder<Model$20, Serializable$21> {
3324
3516
  protected properties: Properties<Model$20, Serializable$21>;
3517
+ getInput(data: Serializable$21): Def['AdaptyPromotedProduct.Request'];
3325
3518
  }
3326
3519
 
3327
3520
  //#endregion
@@ -3374,7 +3567,7 @@ declare class AdaptyRemoteConfigCoder extends Coder<Model$15, CodableModel$1, Se
3374
3567
  //#endregion
3375
3568
  //#region src/coders/adapty-subscription-details.d.ts
3376
3569
  type Model$14 = AdaptySubscriptionDetails;
3377
- type Serializable$15 = Def['AdaptyPaywallProduct.Subscription'];
3570
+ type Serializable$15 = Def['AdaptyProduct.Subscription'];
3378
3571
  declare class AdaptySubscriptionDetailsCoder extends SimpleCoder<Model$14, Serializable$15> {
3379
3572
  protected properties: Properties<Model$14, Serializable$15>;
3380
3573
  decode(data: Serializable$15): Model$14;
@@ -3433,6 +3626,7 @@ declare class AdaptyUICreateOnboardingViewParamsCoder {
3433
3626
  type Model$8 = CreateFlowViewParamsInput;
3434
3627
  type Serializable$8 = {
3435
3628
  locale?: Def['AdaptyLocale'];
3629
+ custom_layout_id?: string;
3436
3630
  preload_products?: boolean;
3437
3631
  load_timeout?: number;
3438
3632
  custom_tags?: Def['AdaptyUI.CustomTagsValues'];
@@ -3577,12 +3771,14 @@ declare class CoderFactory {
3577
3771
  createOnboardingCoder(): AdaptyOnboardingCoder;
3578
3772
  createFlowCoder(): AdaptyFlowCoder;
3579
3773
  createFlowPaywallCoder(): AdaptyFlowPaywallCoder;
3774
+ createFlowUiSchemaCoder(): AdaptyFlowUiSchemaCoder;
3580
3775
  createPaywallProductCoder(): AdaptyPaywallProductCoder;
3581
3776
  createPlacementCoder(): AdaptyPlacementCoder;
3582
3777
  createPriceCoder(): AdaptyPriceCoder;
3583
3778
  createProductReferenceCoder(): ProductReferenceCoder;
3584
3779
  createProfileCoder(): AdaptyProfileCoder;
3585
3780
  createProfileParametersCoder(): AdaptyProfileParametersCoder;
3781
+ createPromotedProductCoder(): AdaptyPromotedProductCoder;
3586
3782
  createRemoteConfigCoder(): AdaptyRemoteConfigCoder;
3587
3783
  createSubscriptionCoder(): AdaptySubscriptionCoder;
3588
3784
  createSubscriptionDetailsCoder(): AdaptySubscriptionDetailsCoder;
@@ -3700,7 +3896,7 @@ declare function extractOnboardingCallbackArgs<T extends keyof OnboardingEventHa
3700
3896
 
3701
3897
  //#endregion
3702
3898
  //#region src/coders/parse.d.ts
3703
- declare const AdaptyTypes: readonly ["AdaptyError", "AdaptyProfile", "AdaptyPurchaseResult", "AdaptyFlow", "AdaptyPaywallProduct", "AdaptyOnboarding", "AdaptyRemoteConfig", "AdaptyInstallationStatus", "AdaptyInstallationDetails", "AdaptyUiView", "AdaptyUiDialogActionType", "AdaptyUiOnboardingMeta", "AdaptyUiOnboardingStateParams", "AdaptyUiOnboardingStateUpdatedAction", "Array<AdaptyPaywallProduct>", "BridgeError", "String", "Boolean", "Void"];
3899
+ declare const AdaptyTypes: readonly ["AdaptyError", "AdaptyProfile", "AdaptyPurchaseResult", "AdaptyFlow", "AdaptyPaywallProduct", "AdaptyPromotedProduct", "AdaptyOnboarding", "AdaptyRemoteConfig", "AdaptyInstallationStatus", "AdaptyInstallationDetails", "AdaptyUiView", "AdaptyUiDialogActionType", "AdaptyUiOnboardingMeta", "AdaptyUiOnboardingStateParams", "AdaptyUiOnboardingStateUpdatedAction", "Array<AdaptyPaywallProduct>", "BridgeError", "String", "Boolean", "Void"];
3704
3900
  type AdaptyType = (typeof AdaptyTypes)[number];
3705
3901
  declare function parseMethodResult<T>(factory: CoderFactory, input: string, resultType: AdaptyType, ctx?: LogContext): T;
3706
3902
  declare function parseCommonEvent(factory: CoderFactory, event: string, input: string, ctx?: LogContext): any;
@@ -3768,5 +3964,5 @@ declare function withErrorContext<T extends (...args: never[]) => unknown>(callb
3768
3964
  //#endregion
3769
3965
  //# sourceMappingURL=with-error-context.d.ts.map
3770
3966
 
3771
- 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 };
3967
+ export { ActivateParamsInput, AdaptyAccessLevel, AdaptyAndroidPurchaseParams, AdaptyAndroidSubscriptionUpdateReplacementMode, AdaptyBridgeError, AdaptyCustomAsset, AdaptyCustomColorAsset, AdaptyCustomGradientAsset, AdaptyCustomImageAsset, AdaptyCustomVideoAsset, AdaptyDiscountPhase, AdaptyError, AdaptyErrorInput, AdaptyExternalAttributionProvider, AdaptyFlow, AdaptyFlowPaywall, AdaptyFlowUiSchema, AdaptyFlowUiSchemaGrid, AdaptyFlowUiSchemaLayout, AdaptyIOSPresentationStyle, AdaptyInstallationDetails, AdaptyInstallationStatus, AdaptyNativeError, AdaptyNonSubscription, AdaptyOnboarding, AdaptyOnboardingBuilder, AdaptyPaywallProduct, AdaptyPermission, AdaptyPlacement, AdaptyPrice, AdaptyProductIdentifier, AdaptyProfile, AdaptyProfileParameters, AdaptyPromotedProduct, AdaptyPurchaseResult, AdaptyRemoteConfig, AdaptySubscription, AdaptySubscriptionDetails, AdaptySubscriptionOffer, AdaptySubscriptionOfferId, AdaptySubscriptionPeriod, AdaptyType, AdaptyUiDialogActionType, AdaptyUiDialogConfig, AdaptyUiMediaCache, AdaptyUiOnboardingMeta, AdaptyUiOnboardingStateParams, AdaptyUiView, AppTrackingTransparencyStatus, ArgType, 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 };
3772
3968
  //# sourceMappingURL=index.d.mts.map