@flowio/types 0.0.13 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1976,6 +1976,7 @@ declare namespace io.flow.shopify.external.v0.models {
1976
1976
  readonly taxable: boolean;
1977
1977
  readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
1978
1978
  readonly total_discount?: string;
1979
+ readonly id?: number;
1979
1980
  }
1980
1981
  interface ShopifyLineLevelDiscountAllocation {
1981
1982
  readonly amount: number;
@@ -3572,6 +3573,7 @@ declare namespace io.flow.search.v0.unions {
3572
3573
  declare namespace io.flow.harmonization.internal.v0.enums {
3573
3574
  type ItemClassificationAction = 'ACCEPT' | 'MANUAL' | 'REJECT';
3574
3575
  type ItemClassificationStatus = 'Unclassified' | 'Suggested' | 'Classified';
3576
+ type ItemType = 'standard' | 'multi_product';
3575
3577
  }
3576
3578
  declare namespace io.flow.harmonization.internal.v0.models {
3577
3579
  interface BlacklistedItem {
@@ -3679,6 +3681,44 @@ declare namespace io.flow.harmonization.internal.v0.models {
3679
3681
  [key: string]: io.flow.harmonization.internal.v0.models.TariffCodeDuty;
3680
3682
  };
3681
3683
  }
3684
+ interface ItemHarmonizationSummary {
3685
+ readonly organization_id: string;
3686
+ readonly item_id: string;
3687
+ readonly item_number: string;
3688
+ readonly customs_description?: string;
3689
+ readonly origin: string;
3690
+ readonly hs6?: string;
3691
+ readonly tariff_code?: string;
3692
+ readonly duty: io.flow.price.v0.models.Duty;
3693
+ readonly price_composition_rate: number;
3694
+ readonly duty_composition_rate: number;
3695
+ }
3696
+ interface MultiProductItem {
3697
+ readonly item_id: string;
3698
+ readonly item_number: string;
3699
+ readonly product_id?: string;
3700
+ readonly organization_id: string;
3701
+ readonly sub_items: io.flow.harmonization.internal.v0.models.MultiProductSubItem[];
3702
+ }
3703
+ interface MultiProductItemForm {
3704
+ readonly sub_item_forms: io.flow.harmonization.internal.v0.models.MultiProductSubItemForm[];
3705
+ }
3706
+ interface MultiProductSubItem {
3707
+ readonly id: string;
3708
+ readonly origin: string;
3709
+ readonly composition_proportion: number;
3710
+ readonly description: string;
3711
+ readonly hs6_code?: string;
3712
+ readonly phrase_id?: string;
3713
+ readonly customs_description?: string;
3714
+ readonly classification_status: io.flow.harmonization.internal.v0.enums.ItemClassificationStatus;
3715
+ }
3716
+ interface MultiProductSubItemForm {
3717
+ readonly composition_proportion: number;
3718
+ readonly origin: string;
3719
+ readonly description: string;
3720
+ readonly customs_description: string;
3721
+ }
3682
3722
  interface ProductClassificationForm {
3683
3723
  readonly organization_id: string;
3684
3724
  readonly product_id: string;
@@ -3717,6 +3757,11 @@ declare namespace io.flow.harmonization.internal.v0.models {
3717
3757
  readonly destination: string;
3718
3758
  readonly code: string;
3719
3759
  }
3760
+ interface UnclassifiedProductsForm {
3761
+ readonly organization_id: string;
3762
+ readonly product_id: string;
3763
+ readonly ignore?: boolean;
3764
+ }
3720
3765
  interface UnphrasedProductsExport {
3721
3766
  readonly message: string;
3722
3767
  }
@@ -8930,6 +8975,7 @@ declare namespace io.flow.adyen.v0.models {
8930
8975
  readonly selectedBrand?: string;
8931
8976
  readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
8932
8977
  readonly threeDS2RequestData?: io.flow.adyen.v0.models.Threeds2RequestData;
8978
+ readonly recurringProcessingModel?: io.flow.adyen.v0.enums.RecurringProcessingModel;
8933
8979
  }
8934
8980
  interface AuthorizeRequest3D {
8935
8981
  readonly merchantAccount: string;
@@ -9047,6 +9093,14 @@ declare namespace io.flow.adyen.v0.models {
9047
9093
  interface NotificationResponse {
9048
9094
  readonly notificationResponse: string;
9049
9095
  }
9096
+ interface OriginKeysRequest {
9097
+ readonly originDomains: string[];
9098
+ }
9099
+ interface OriginKeysResponse {
9100
+ readonly originKeys: {
9101
+ [key: string]: string;
9102
+ };
9103
+ }
9050
9104
  interface OuterNotificationRequestItem {
9051
9105
  readonly NotificationRequestItem: io.flow.adyen.v0.models.InnerNotificationRequestItem;
9052
9106
  }
@@ -9866,7 +9920,7 @@ declare namespace io.flow.internal.v0.enums {
9866
9920
  type DutyCompoundExpressionType = 'sum' | 'max' | 'min';
9867
9921
  type DutyRateUnitOfMeasure = 'kg' | 'sq m' | 'item' | 'pair';
9868
9922
  type DutySimpleExpressionType = 'free' | 'percent' | 'per_uom' | 'flat';
9869
- type EventType = 'adyen_authorization_deleted' | 'adyen_authorization_upserted' | 'adyen_cancel_deleted' | 'adyen_cancel_upserted' | 'adyen_capture_deleted' | 'adyen_capture_upserted' | 'adyen_refund_deleted' | 'adyen_refund_upserted' | 'billing_statement_upserted' | 'billing_statement_deleted' | 'tax_remittance_transaction_upserted' | 'tax_remittance_transaction_deleted' | 'account_transactions_export_request' | 'account_orders_export_request' | 'carrier_account_upserted' | 'catalog_import_request' | 'catalog_item_region_availabilities_published' | 'checkout_configuration_upserted' | 'checkout_configuration_deleted' | 'product_classification_upserted' | 'product_classification_deleted' | 'localized_content_upserted' | 'localization_upserted' | 'rate_deleted' | 'rate_upserted' | 'spot_rate_deleted' | 'spot_rate_upserted' | 'organization_currency_settings_upserted' | 'organization_currency_settings_deleted' | 'rate_deleted_v2' | 'rate_upserted_v2' | 'customs_description_import' | 'customs_description_tariffs_import' | 'item_dimension_estimate_upserted' | 'item_dimension_estimate_deleted' | 'duty_rate_request' | 'duty_rate_bulk_request' | 'duty_raw_upserted' | 'duty_raw_bulk_upserted' | 'duty_rate_upserted' | 'duty_rate_response' | 'duty_rate_bulk_response' | 'item_sales_margin_deleted' | 'item_sales_margin_upserted' | 'order_attribute_deleted' | 'order_attribute_upserted' | 'experience_export_request' | 'experience_import_request' | 'submitted_order_upserted' | 'experiment_upserted' | 'experiment_deleted' | 'experiment_results_upserted' | 'experiment_results_deleted' | 'export_completed' | 'export_failed' | 'fraud_review_upserted' | 'fraud_review_deleted' | 'fraud_pending_review_upserted' | 'fraud_pending_review_deleted' | 'fraud_review_decision_upserted' | 'fraud_review_decision_deleted' | 'ftp_file_upserted' | 'ftp_file_deleted' | 'ftp_file_to_process_uploaded' | 'pregenerated_quote_upserted' | 'pregenerated_quote_deleted' | 'pregenerated_request_event' | 'blacklisted_item_created' | 'blacklisted_item_updated' | 'blacklisted_item_deleted' | 'all_items_export' | 'harmonized_items_hs6_export' | 'unharmonized_items_export' | 'dutied_items_export' | 'landed_cost_export' | 'harmonization_phrase_suggestion_request_import' | 'harmonization_codes_import' | 'customs_description_sugestion_created' | 'harmonize_fully_with_rate' | 'item_harmonized' | 'harmonize_fully_request' | 'import_completed' | 'import_failed' | 'next_installment_upserted' | 'next_installment_deleted' | 'installment_upserted' | 'installment_deleted' | 'installment_program_upserted' | 'installment_program_deleted' | 'installment_plan_upserted' | 'installment_plan_deleted' | 'installment_plan_authorization_upserted' | 'installment_plan_authorization_deleted' | 'issuer_upserted' | 'issuer_deleted' | 'localized_item_upserted_v2' | 'localized_item_deleted' | 'localized_item_deleted_v2' | 'localized_item_snapshot' | 'localized_item_prices_export_request' | 'optin_prompt_upserted' | 'optin_prompt_deleted' | 'order_fulfillment_deleted' | 'order_fulfillment_upserted' | 'order_placed' | 'ready_to_fulfill' | 'fulfillment_cancel' | 'order_shipped' | 'items_shipped' | 'internal_authorization_upserted' | 'internal_authorization_deleted' | 'afterpay_authorization_upserted' | 'afterpay_authorization_deleted' | 'afterpay_capture_upserted' | 'afterpay_capture_deleted' | 'afterpay_refund_upserted' | 'afterpay_refund_deleted' | 'adyen_merchant_account_upserted' | 'adyen_merchant_account_deleted' | 'paypal_payment_deleted' | 'paypal_payment_upserted' | 'paypal_execution_deleted' | 'paypal_execution_upserted' | 'paypal_refund_deleted' | 'paypal_refund_upserted' | 'order_rates_published_v3' | 'ratecard_lanes_import_request' | 'shopify_shop_upserted' | 'shopify_shop_deleted' | 'shopify_experience_short_id_upserted' | 'shopify_experience_short_id_deleted' | 'stripe_authorization_deleted' | 'stripe_authorization_upserted' | 'stripe_reversal_deleted' | 'stripe_reversal_upserted' | 'stripe_capture_deleted' | 'stripe_capture_upserted' | 'stripe_refund_deleted' | 'stripe_refund_upserted' | 'svb_virtual_card_clearing_upserted' | 'svb_virtual_card_clearing_deleted' | 'tracking_request_upserted' | 'tracking_response_upserted' | 'user_upserted' | 'user_deleted';
9923
+ type EventType = 'adyen_authorization_deleted' | 'adyen_authorization_upserted' | 'adyen_cancel_deleted' | 'adyen_cancel_upserted' | 'adyen_capture_deleted' | 'adyen_capture_upserted' | 'adyen_refund_deleted' | 'adyen_refund_upserted' | 'billing_statement_upserted' | 'billing_statement_deleted' | 'tax_remittance_transaction_upserted' | 'tax_remittance_transaction_deleted' | 'account_transactions_export_request' | 'account_orders_export_request' | 'carrier_account_upserted' | 'catalog_import_request' | 'catalog_item_region_availabilities_published' | 'checkout_configuration_upserted' | 'checkout_configuration_deleted' | 'product_classification_upserted' | 'product_classification_deleted' | 'localized_content_upserted' | 'localization_upserted' | 'rate_deleted' | 'rate_upserted' | 'spot_rate_deleted' | 'spot_rate_upserted' | 'organization_currency_settings_upserted' | 'organization_currency_settings_deleted' | 'rate_deleted_v2' | 'rate_upserted_v2' | 'customs_description_import' | 'customs_description_tariffs_import' | 'item_dimension_estimate_upserted' | 'item_dimension_estimate_deleted' | 'duty_rate_request' | 'duty_rate_bulk_request' | 'duty_raw_upserted' | 'duty_raw_bulk_upserted' | 'duty_rate_upserted' | 'duty_rate_response' | 'duty_rate_bulk_response' | 'item_sales_margin_deleted' | 'item_sales_margin_upserted' | 'order_attribute_deleted' | 'order_attribute_upserted' | 'experience_export_request' | 'experience_import_request' | 'submitted_order_upserted' | 'experiment_upserted' | 'experiment_deleted' | 'experiment_results_upserted' | 'experiment_results_deleted' | 'export_completed' | 'export_failed' | 'fraud_review_upserted' | 'fraud_review_deleted' | 'fraud_pending_review_upserted' | 'fraud_pending_review_deleted' | 'fraud_review_decision_upserted' | 'fraud_review_decision_deleted' | 'ftp_file_upserted' | 'ftp_file_deleted' | 'ftp_file_to_process_uploaded' | 'pregenerated_quote_upserted' | 'pregenerated_quote_deleted' | 'pregenerated_request_event' | 'blacklisted_item_created' | 'blacklisted_item_updated' | 'blacklisted_item_deleted' | 'all_items_export' | 'harmonized_items_hs6_export' | 'unharmonized_items_export' | 'dutied_items_export' | 'landed_cost_export' | 'harmonization_phrase_suggestion_request_import' | 'harmonization_codes_import' | 'customs_description_sugestion_created' | 'harmonize_fully_with_rate' | 'item_harmonized' | 'harmonize_fully_request' | 'import_completed' | 'import_failed' | 'next_installment_upserted' | 'next_installment_deleted' | 'installment_upserted' | 'installment_deleted' | 'installment_program_upserted' | 'installment_program_deleted' | 'installment_plan_upserted' | 'installment_plan_deleted' | 'installment_plan_authorization_upserted' | 'installment_plan_authorization_deleted' | 'issuer_upserted' | 'issuer_deleted' | 'localized_item_upserted_v2' | 'localized_item_deleted' | 'localized_item_deleted_v2' | 'localized_item_snapshot' | 'localized_item_prices_export_request' | 'optin_prompt_upserted' | 'optin_prompt_deleted' | 'order_fulfillment_deleted' | 'order_fulfillment_upserted' | 'order_placed' | 'ready_to_fulfill' | 'fulfillment_cancel' | 'order_shipped' | 'items_shipped' | 'internal_authorization_upserted' | 'internal_authorization_deleted' | 'afterpay_authorization_upserted' | 'afterpay_authorization_deleted' | 'afterpay_capture_upserted' | 'afterpay_capture_deleted' | 'afterpay_refund_upserted' | 'afterpay_refund_deleted' | 'adyen_merchant_account_upserted' | 'adyen_merchant_account_deleted' | 'paypal_payment_deleted' | 'paypal_payment_upserted' | 'paypal_execution_deleted' | 'paypal_execution_upserted' | 'paypal_refund_deleted' | 'paypal_refund_upserted' | 'order_rates_published_v3' | 'ratecard_lanes_import_request' | 'shopify_shop_upserted' | 'shopify_shop_deleted' | 'shopify_experience_short_id_upserted' | 'shopify_experience_short_id_deleted' | 'stripe_authorization_deleted' | 'stripe_authorization_upserted' | 'stripe_reversal_deleted' | 'stripe_reversal_upserted' | 'stripe_capture_deleted' | 'stripe_capture_upserted' | 'stripe_refund_deleted' | 'stripe_refund_upserted' | 'svb_virtual_card_clearing_upserted' | 'svb_virtual_card_clearing_deleted' | 'tracking_request_upserted' | 'tracking_response_upserted' | 'user_upserted_v2' | 'user_deleted_v2';
9870
9924
  type ExperienceImportType = 'experience_with_settings';
9871
9925
  type ExperienceOrderAction = 'submit' | 'refund_gift_cards';
9872
9926
  type ExperienceOrderActionTrigger = 'zero_balance' | 'unsubmitted_order';
@@ -9876,6 +9930,7 @@ declare namespace io.flow.internal.v0.enums {
9876
9930
  type FlowApp = 'console';
9877
9931
  type FlowFieldName = 'item-number' | 'sku-attribute' | 'product_id-attribute';
9878
9932
  type Format = 'text' | 'phone' | 'email';
9933
+ type FraudReviewResponsibleParty = 'flow' | 'organization';
9879
9934
  type FtpIntent = 'orders_from_flow' | 'pricebooks_from_flow' | 'pricebooks_to_flow' | 'catalog_to_flow' | 'inventory_to_flow';
9880
9935
  type FtpProtocol = 'sftp' | 'ftp';
9881
9936
  type HttpMethod = 'get' | 'post';
@@ -9931,7 +9986,7 @@ declare namespace io.flow.internal.v0.enums {
9931
9986
  type SimpleRoundingStrategy = 'no_rounding' | 'currency_precision';
9932
9987
  type Status = 'draft' | 'ended' | 'live';
9933
9988
  type SubscriptionFrequency = 'yearly' | 'monthly';
9934
- type SuggestionAction = 'accept' | 'review';
9989
+ type SuggestionAction = 'accept' | 'validate' | 'review';
9935
9990
  type TaxCalculationErrorCode = 'generic_error' | 'outside_of_jurisdiction';
9936
9991
  type TimeseriesType = 'daily' | 'weekly' | 'monthly' | 'yearly';
9937
9992
  type TrackingIntegrationType = 'api' | 'bulk' | 'aftership';
@@ -10394,6 +10449,7 @@ declare namespace io.flow.internal.v0.models {
10394
10449
  readonly days_until_posted: number;
10395
10450
  readonly logistics: io.flow.internal.v0.enums.ResponsibleParty;
10396
10451
  readonly include_transaction_created_at: boolean;
10452
+ readonly include_order_exchange_rate: boolean;
10397
10453
  readonly send_statements_to_flow_ftp_server: boolean;
10398
10454
  readonly invoicing_terms?: io.flow.invoice.v0.enums.PaymentTerm;
10399
10455
  readonly transfer_method?: io.flow.internal.v0.enums.TransferMethod;
@@ -10526,7 +10582,8 @@ declare namespace io.flow.internal.v0.models {
10526
10582
  readonly features: io.flow.feature.v0.models.FeatureValueResult;
10527
10583
  }
10528
10584
  interface BrowserBundleCountryPickerForm {
10529
- readonly country: string;
10585
+ readonly country?: string;
10586
+ readonly ip?: string;
10530
10587
  readonly is_destination: boolean;
10531
10588
  }
10532
10589
  interface BrowserBundleError {
@@ -10970,6 +11027,7 @@ declare namespace io.flow.internal.v0.models {
10970
11027
  readonly description?: string;
10971
11028
  }
10972
11029
  interface CountryPickerCountry {
11030
+ readonly iso_3166_2: string;
10973
11031
  readonly iso_3166_3: string;
10974
11032
  readonly name: string;
10975
11033
  }
@@ -11471,6 +11529,7 @@ declare namespace io.flow.internal.v0.models {
11471
11529
  readonly order: io.flow.experience.v0.models.OrderReference;
11472
11530
  readonly recommended_status: io.flow.fraud.v0.enums.FraudStatus;
11473
11531
  readonly apply_at?: string;
11532
+ readonly liability?: io.flow.fraud.v0.enums.FraudLiability;
11474
11533
  }
11475
11534
  interface FraudPendingReviewDeleted {
11476
11535
  readonly event_id: string;
@@ -11490,6 +11549,7 @@ declare namespace io.flow.internal.v0.models {
11490
11549
  readonly organization_id: string;
11491
11550
  readonly order: io.flow.experience.v0.models.OrderReference;
11492
11551
  readonly status: io.flow.fraud.v0.enums.FraudStatus;
11552
+ readonly responsible_party: io.flow.internal.v0.enums.FraudReviewResponsibleParty;
11493
11553
  readonly description?: string;
11494
11554
  readonly risk_evaluation?: io.flow.internal.v0.enums.RiskEvaluation;
11495
11555
  readonly liability?: io.flow.fraud.v0.enums.FraudLiability;
@@ -11504,6 +11564,7 @@ declare namespace io.flow.internal.v0.models {
11504
11564
  readonly order: io.flow.experience.v0.models.OrderReference;
11505
11565
  readonly status: io.flow.fraud.v0.enums.FraudStatus;
11506
11566
  readonly created_at: string;
11567
+ readonly liability?: io.flow.fraud.v0.enums.FraudLiability;
11507
11568
  }
11508
11569
  interface FraudReviewDecisionDeleted {
11509
11570
  readonly event_id: string;
@@ -12349,7 +12410,10 @@ declare namespace io.flow.internal.v0.models {
12349
12410
  readonly apibuilder?: string;
12350
12411
  }
12351
12412
  interface MarketingGatewayFeedSourceGoogle {
12352
- readonly account_id: string;
12413
+ readonly account_id: number;
12414
+ readonly country: string;
12415
+ readonly currency: string;
12416
+ readonly language: string;
12353
12417
  }
12354
12418
  interface MarketingGatewayFilterSummary {
12355
12419
  readonly id: string;
@@ -12623,6 +12687,7 @@ declare namespace io.flow.internal.v0.models {
12623
12687
  interface MultiProductItem {
12624
12688
  readonly item_id: string;
12625
12689
  readonly item_number: string;
12690
+ readonly product_id?: string;
12626
12691
  readonly organization_id: string;
12627
12692
  readonly sub_items: io.flow.internal.v0.models.MultiProductSubItem[];
12628
12693
  }
@@ -13399,6 +13464,13 @@ declare namespace io.flow.internal.v0.models {
13399
13464
  readonly item_number: string;
13400
13465
  readonly quantity: number;
13401
13466
  }
13467
+ interface SessionRollout {
13468
+ readonly id: string;
13469
+ readonly percent: number;
13470
+ }
13471
+ interface SessionRolloutForm {
13472
+ readonly percent: number;
13473
+ }
13402
13474
  interface SfExpress {
13403
13475
  readonly checkword: string;
13404
13476
  readonly customer_code: string;
@@ -13985,6 +14057,11 @@ declare namespace io.flow.internal.v0.models {
13985
14057
  readonly id: string;
13986
14058
  readonly description: string;
13987
14059
  }
14060
+ interface UnclassifiedProductsForm {
14061
+ readonly organization_id: string;
14062
+ readonly product_id: string;
14063
+ readonly ignore?: boolean;
14064
+ }
13988
14065
  interface UnharmonizedItemsExport {
13989
14066
  readonly event_id: string;
13990
14067
  readonly timestamp: string;
@@ -13994,10 +14071,10 @@ declare namespace io.flow.internal.v0.models {
13994
14071
  interface UnphrasedProductsExport {
13995
14072
  readonly message: string;
13996
14073
  }
13997
- interface UserDeleted {
14074
+ interface UserDeletedV2 {
13998
14075
  readonly event_id: string;
13999
14076
  readonly timestamp: string;
14000
- readonly id: string;
14077
+ readonly user: io.flow.common.v0.models.User;
14001
14078
  }
14002
14079
  interface UserOneTimeToken {
14003
14080
  readonly user: io.flow.common.v0.models.UserReference;
@@ -14006,13 +14083,10 @@ declare namespace io.flow.internal.v0.models {
14006
14083
  interface UserStatusForm {
14007
14084
  readonly status: io.flow.common.v0.enums.UserStatus;
14008
14085
  }
14009
- interface UserUpserted {
14086
+ interface UserUpsertedV2 {
14010
14087
  readonly event_id: string;
14011
14088
  readonly timestamp: string;
14012
- readonly id: string;
14013
- readonly email?: string;
14014
- readonly name: io.flow.common.v0.models.Name;
14015
- readonly status: string;
14089
+ readonly user: io.flow.common.v0.models.User;
14016
14090
  }
14017
14091
  interface ValidationCharacterLength {
14018
14092
  readonly min?: number;
@@ -14378,10 +14452,10 @@ declare namespace io.flow.internal.v0.unions {
14378
14452
  } & io.flow.internal.v0.models.TrackingRequestUpserted | {
14379
14453
  discriminator: 'tracking_response_upserted';
14380
14454
  } & io.flow.internal.v0.models.TrackingResponseUpserted | {
14381
- discriminator: 'user_upserted';
14382
- } & io.flow.internal.v0.models.UserUpserted | {
14383
- discriminator: 'user_deleted';
14384
- } & io.flow.internal.v0.models.UserDeleted;
14455
+ discriminator: 'user_upserted_v2';
14456
+ } & io.flow.internal.v0.models.UserUpsertedV2 | {
14457
+ discriminator: 'user_deleted_v2';
14458
+ } & io.flow.internal.v0.models.UserDeletedV2;
14385
14459
  type ExportSchedule = {
14386
14460
  discriminator: 'export_schedule_daily';
14387
14461
  } & io.flow.internal.v0.models.ExportScheduleDaily | {
@@ -14906,6 +14980,7 @@ export declare type FraudReviewDecisionDeleted = io.flow.internal.v0.models.Frau
14906
14980
  export declare type FraudReviewDecisionForm = io.flow.internal.v0.models.FraudReviewDecisionForm;
14907
14981
  export declare type FraudReviewDecisionUpserted = io.flow.internal.v0.models.FraudReviewDecisionUpserted;
14908
14982
  export declare type FraudReviewDeleted = io.flow.internal.v0.models.FraudReviewDeleted;
14983
+ export declare type FraudReviewResponsibleParty = io.flow.internal.v0.enums.FraudReviewResponsibleParty;
14909
14984
  export declare type FraudReviewUpserted = io.flow.internal.v0.models.FraudReviewUpserted;
14910
14985
  export declare type FraudReviewVersion = io.flow.internal.v0.models.FraudReviewVersion;
14911
14986
  export declare type FraudSummary = io.flow.internal.v0.models.FraudSummary;
@@ -15281,6 +15356,8 @@ export declare type SerialReservation = io.flow.internal.v0.models.SerialReserva
15281
15356
  export declare type SerialReservationError = io.flow.internal.v0.enums.SerialReservationError;
15282
15357
  export declare type SerialReservationForm = io.flow.internal.v0.models.SerialReservationForm;
15283
15358
  export declare type SerialReservationItem = io.flow.internal.v0.models.SerialReservationItem;
15359
+ export declare type SessionRollout = io.flow.internal.v0.models.SessionRollout;
15360
+ export declare type SessionRolloutForm = io.flow.internal.v0.models.SessionRolloutForm;
15284
15361
  export declare type SfExpress = io.flow.internal.v0.models.SfExpress;
15285
15362
  export declare type ShippedItemValue = io.flow.internal.v0.models.ShippedItemValue;
15286
15363
  export declare type Shop = io.flow.internal.v0.models.Shop;
@@ -15402,12 +15479,13 @@ export declare type TransactionSummary = io.flow.internal.v0.unions.TransactionS
15402
15479
  export declare type TransferMethod = io.flow.internal.v0.enums.TransferMethod;
15403
15480
  export declare type TransferTransaction = io.flow.internal.v0.models.TransferTransaction;
15404
15481
  export declare type Tribe = io.flow.internal.v0.models.Tribe;
15482
+ export declare type UnclassifiedProductsForm = io.flow.internal.v0.models.UnclassifiedProductsForm;
15405
15483
  export declare type UnharmonizedItemsExport = io.flow.internal.v0.models.UnharmonizedItemsExport;
15406
15484
  export declare type UnphrasedProductsExport = io.flow.internal.v0.models.UnphrasedProductsExport;
15407
- export declare type UserDeleted = io.flow.internal.v0.models.UserDeleted;
15485
+ export declare type UserDeletedV2 = io.flow.internal.v0.models.UserDeletedV2;
15408
15486
  export declare type UserOneTimeToken = io.flow.internal.v0.models.UserOneTimeToken;
15409
15487
  export declare type UserStatusForm = io.flow.internal.v0.models.UserStatusForm;
15410
- export declare type UserUpserted = io.flow.internal.v0.models.UserUpserted;
15488
+ export declare type UserUpsertedV2 = io.flow.internal.v0.models.UserUpsertedV2;
15411
15489
  export declare type ValidationCharacterLength = io.flow.internal.v0.models.ValidationCharacterLength;
15412
15490
  export declare type ValidationRule = io.flow.internal.v0.unions.ValidationRule;
15413
15491
  export declare type Variant = io.flow.internal.v0.unions.Variant;
package/dist/api.d.ts CHANGED
@@ -580,6 +580,7 @@ declare namespace io.flow.shopify.external.v0.models {
580
580
  readonly taxable: boolean;
581
581
  readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
582
582
  readonly total_discount?: string;
583
+ readonly id?: number;
583
584
  }
584
585
  interface ShopifyLineLevelDiscountAllocation {
585
586
  readonly amount: number;
@@ -889,9 +890,12 @@ declare namespace io.flow.v0.enums {
889
890
  type InventoryStatus = 'has_inventory' | 'no_inventory';
890
891
  type InvitationErrorCode = 'expired' | 'invalid_email';
891
892
  type ItemAvailabilityStatus = 'available' | 'low' | 'out_of_stock';
893
+ type LaneDirection = 'outbound' | 'return';
894
+ type LanePreselectPreference = 'lowest_cost' | 'default_tier';
892
895
  type LaneStrategy = 'oldest' | 'fastest' | 'lowest_cost' | 'highest_priority';
893
896
  type LevyComponent = 'goods' | 'duty' | 'insurance' | 'freight' | 'vat';
894
897
  type LevyStrategy = 'minimum' | 'average' | 'maximum';
898
+ type LocationErrorCode = 'address_required' | 'ip_invalid' | 'ip_required' | 'timezone_unavailable';
895
899
  type MarginType = 'fixed' | 'percent';
896
900
  type MeasurementSystem = 'imperial' | 'metric';
897
901
  type MerchantGiftCardErrorCode = 'invalid' | 'expired' | 'empty' | 'insufficient_funds' | 'unsupported_currency';
@@ -948,7 +952,6 @@ declare namespace io.flow.v0.enums {
948
952
  type TaxabilityType = 'tax_rule';
949
953
  type TaxabilityValue = 'exempt';
950
954
  type ThreeDSecureCode = 'verified' | 'not_verified' | 'failed';
951
- type TierDirection = 'outbound' | 'return';
952
955
  type TierEstimateType = 'calculated' | 'custom';
953
956
  type TierStrategy = 'fastest' | 'lowest_cost';
954
957
  type TokenType = 'permanent' | 'one_time';
@@ -1061,6 +1064,7 @@ declare namespace io.flow.v0.models {
1061
1064
  readonly fingerprint_token: string;
1062
1065
  }
1063
1066
  interface AdyenNativeActionDetails {
1067
+ readonly origin_key?: string;
1064
1068
  readonly data?: io.flow.v0.unions.AdyenNativeData;
1065
1069
  }
1066
1070
  interface Allocation {
@@ -1239,6 +1243,7 @@ declare namespace io.flow.v0.models {
1239
1243
  }
1240
1244
  interface AuthorizationResultActionNative {
1241
1245
  readonly type: io.flow.v0.enums.AuthorizationResultActionType;
1246
+ readonly authorization: io.flow.v0.models.AuthorizationReference;
1242
1247
  readonly details?: io.flow.v0.unions.AuthorizationResultActionDetails;
1243
1248
  }
1244
1249
  interface AuthorizationResultActionPost {
@@ -1427,12 +1432,15 @@ declare namespace io.flow.v0.models {
1427
1432
  readonly browse_optin_responses: io.flow.v0.models.BrowseOptinResponses;
1428
1433
  }
1429
1434
  interface BrowserInfo {
1435
+ readonly origin?: string;
1430
1436
  readonly language?: string;
1431
1437
  readonly java_enabled?: boolean;
1432
1438
  readonly color_depth?: number;
1433
1439
  readonly screen_height?: number;
1434
1440
  readonly screen_width?: number;
1435
1441
  readonly time_zone_offset?: number;
1442
+ readonly user_agent?: string;
1443
+ readonly accept?: string;
1436
1444
  }
1437
1445
  interface Capture {
1438
1446
  readonly id: string;
@@ -2679,6 +2687,7 @@ declare namespace io.flow.v0.models {
2679
2687
  interface ExperiencePaymentMethodRuleForm {
2680
2688
  readonly payment_method_id: string;
2681
2689
  readonly tags: io.flow.v0.enums.ExperiencePaymentMethodTag[];
2690
+ readonly q?: string;
2682
2691
  }
2683
2692
  interface ExperiencePriceBookMapping {
2684
2693
  readonly id: string;
@@ -3838,6 +3847,10 @@ declare namespace io.flow.v0.models {
3838
3847
  readonly locale: io.flow.v0.models.Locale;
3839
3848
  readonly name: string;
3840
3849
  }
3850
+ interface LocationError {
3851
+ readonly code: io.flow.v0.enums.LocationErrorCode;
3852
+ readonly messages: string[];
3853
+ }
3841
3854
  interface LogisticsSettings {
3842
3855
  readonly shipping_configuration: io.flow.v0.models.ShippingConfigurationReference;
3843
3856
  }
@@ -4754,6 +4767,7 @@ declare namespace io.flow.v0.models {
4754
4767
  readonly content?: io.flow.v0.models.PaymentMethodRuleContent[];
4755
4768
  readonly issuers?: io.flow.v0.models.PaymentMethodIssuer[];
4756
4769
  readonly programs: io.flow.v0.models.InstallmentProgramSummary[];
4770
+ readonly q?: io.flow.v0.models.Query;
4757
4771
  }
4758
4772
  interface PaymentMethodRuleContent {
4759
4773
  readonly key: io.flow.v0.enums.PaymentMethodRuleContentKey;
@@ -5120,7 +5134,7 @@ declare namespace io.flow.v0.models {
5120
5134
  readonly items: io.flow.v0.models.QuoteLineItemForm[];
5121
5135
  readonly delivered_duty?: io.flow.v0.enums.DeliveredDuty;
5122
5136
  readonly delivered_duties?: io.flow.v0.enums.DeliveredDuty[];
5123
- readonly direction?: io.flow.v0.enums.TierDirection;
5137
+ readonly direction?: io.flow.v0.enums.LaneDirection;
5124
5138
  }
5125
5139
  interface QuoteLineItemForm {
5126
5140
  readonly number: string;
@@ -5545,6 +5559,7 @@ declare namespace io.flow.v0.models {
5545
5559
  readonly key: string;
5546
5560
  readonly order?: io.flow.v0.models.ReservationOrderReference;
5547
5561
  readonly items: io.flow.v0.models.ReservationItem[];
5562
+ readonly reserved_until?: string;
5548
5563
  }
5549
5564
  interface ReservationForm {
5550
5565
  readonly order_number?: string;
@@ -5999,6 +6014,15 @@ declare namespace io.flow.v0.models {
5999
6014
  readonly tiers: io.flow.v0.models.Tier[];
6000
6015
  readonly query: io.flow.v0.models.Query;
6001
6016
  readonly strategy: io.flow.v0.enums.LaneStrategy;
6017
+ readonly direction?: io.flow.v0.enums.LaneDirection;
6018
+ readonly preference?: io.flow.v0.enums.LanePreselectPreference;
6019
+ }
6020
+ interface ShippingLaneDefaultTier {
6021
+ readonly id: string;
6022
+ readonly tier: io.flow.v0.models.TierReference;
6023
+ }
6024
+ interface ShippingLaneDefaultTierForm {
6025
+ readonly tier_id: string;
6002
6026
  }
6003
6027
  interface ShippingLaneDeleted {
6004
6028
  readonly event_id: string;
@@ -6009,6 +6033,8 @@ declare namespace io.flow.v0.models {
6009
6033
  readonly from: string;
6010
6034
  readonly to: string;
6011
6035
  readonly strategy?: io.flow.v0.enums.LaneStrategy;
6036
+ readonly direction?: io.flow.v0.enums.LaneDirection;
6037
+ readonly preference?: io.flow.v0.enums.LanePreselectPreference;
6012
6038
  }
6013
6039
  interface ShippingLaneSummary {
6014
6040
  readonly shipping_lane_id: string;
@@ -6329,6 +6355,7 @@ declare namespace io.flow.v0.models {
6329
6355
  interface StripeAuthorizationResultActionDetails {
6330
6356
  readonly client_secret?: string;
6331
6357
  readonly payment_method_id?: string;
6358
+ readonly publishable_key?: string;
6332
6359
  }
6333
6360
  interface Subcatalog {
6334
6361
  readonly id: string;
@@ -6534,7 +6561,7 @@ declare namespace io.flow.v0.models {
6534
6561
  }
6535
6562
  interface Tier {
6536
6563
  readonly id: string;
6537
- readonly direction: io.flow.v0.enums.TierDirection;
6564
+ readonly direction: io.flow.v0.enums.LaneDirection;
6538
6565
  readonly integration: io.flow.v0.enums.ShipmentIntegrationType;
6539
6566
  readonly name: string;
6540
6567
  readonly message?: string;
@@ -6575,7 +6602,7 @@ declare namespace io.flow.v0.models {
6575
6602
  readonly strategy: io.flow.v0.enums.TierStrategy;
6576
6603
  readonly visibility: io.flow.v0.enums.Visibility;
6577
6604
  readonly description?: string;
6578
- readonly direction?: io.flow.v0.enums.TierDirection;
6605
+ readonly direction?: io.flow.v0.enums.LaneDirection;
6579
6606
  readonly display?: io.flow.v0.models.TierDisplayForm;
6580
6607
  readonly shipping_lane: string;
6581
6608
  readonly surcharge_settings?: io.flow.v0.models.SurchargeSetting[];
@@ -8194,7 +8221,9 @@ export declare type LabelFormatUpserted = io.flow.v0.models.LabelFormatUpserted;
8194
8221
  export declare type LabelOrderSummary = io.flow.v0.models.LabelOrderSummary;
8195
8222
  export declare type LabelUpserted = io.flow.v0.models.LabelUpserted;
8196
8223
  export declare type LandedCostItem = io.flow.v0.models.LandedCostItem;
8224
+ export declare type LaneDirection = io.flow.v0.enums.LaneDirection;
8197
8225
  export declare type LaneLandedCost = io.flow.v0.models.LaneLandedCost;
8226
+ export declare type LanePreselectPreference = io.flow.v0.enums.LanePreselectPreference;
8198
8227
  export declare type LaneStrategy = io.flow.v0.enums.LaneStrategy;
8199
8228
  export declare type Language = io.flow.v0.models.Language;
8200
8229
  export declare type LevyComponent = io.flow.v0.enums.LevyComponent;
@@ -8222,6 +8251,8 @@ export declare type LocalizedLineItemDiscount = io.flow.v0.models.LocalizedLineI
8222
8251
  export declare type LocalizedPrice = io.flow.v0.unions.LocalizedPrice;
8223
8252
  export declare type LocalizedTotal = io.flow.v0.models.LocalizedTotal;
8224
8253
  export declare type LocalizedTranslation = io.flow.v0.models.LocalizedTranslation;
8254
+ export declare type LocationError = io.flow.v0.models.LocationError;
8255
+ export declare type LocationErrorCode = io.flow.v0.enums.LocationErrorCode;
8225
8256
  export declare type LogisticsSettings = io.flow.v0.models.LogisticsSettings;
8226
8257
  export declare type Manifest = io.flow.v0.models.Manifest;
8227
8258
  export declare type ManifestForm = io.flow.v0.models.ManifestForm;
@@ -8640,6 +8671,8 @@ export declare type ShippingLabelPackage = io.flow.v0.models.ShippingLabelPackag
8640
8671
  export declare type ShippingLabelSummary = io.flow.v0.models.ShippingLabelSummary;
8641
8672
  export declare type ShippingLabelVersion = io.flow.v0.models.ShippingLabelVersion;
8642
8673
  export declare type ShippingLane = io.flow.v0.models.ShippingLane;
8674
+ export declare type ShippingLaneDefaultTier = io.flow.v0.models.ShippingLaneDefaultTier;
8675
+ export declare type ShippingLaneDefaultTierForm = io.flow.v0.models.ShippingLaneDefaultTierForm;
8643
8676
  export declare type ShippingLaneDeleted = io.flow.v0.models.ShippingLaneDeleted;
8644
8677
  export declare type ShippingLaneForm = io.flow.v0.models.ShippingLaneForm;
8645
8678
  export declare type ShippingLaneSummary = io.flow.v0.models.ShippingLaneSummary;
@@ -8746,7 +8779,6 @@ export declare type ThreeDSecure = io.flow.v0.models.ThreeDSecure;
8746
8779
  export declare type ThreeDSecureCode = io.flow.v0.enums.ThreeDSecureCode;
8747
8780
  export declare type Tier = io.flow.v0.models.Tier;
8748
8781
  export declare type TierDeletedV2 = io.flow.v0.models.TierDeletedV2;
8749
- export declare type TierDirection = io.flow.v0.enums.TierDirection;
8750
8782
  export declare type TierDisplay = io.flow.v0.models.TierDisplay;
8751
8783
  export declare type TierDisplayForm = io.flow.v0.models.TierDisplayForm;
8752
8784
  export declare type TierEstimate = io.flow.v0.models.TierEstimate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "0.0.13",
3
+ "version": "1.0.0",
4
4
  "description": "TypeScript type definitions for custom types found in Flow API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -2499,6 +2499,7 @@ declare namespace io.flow.shopify.external.v0.models {
2499
2499
  readonly taxable: boolean;
2500
2500
  readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
2501
2501
  readonly total_discount?: string;
2502
+ readonly id?: number;
2502
2503
  }
2503
2504
 
2504
2505
  interface ShopifyLineLevelDiscountAllocation {
@@ -4448,6 +4449,7 @@ declare namespace io.flow.search.v0.unions {
4448
4449
  declare namespace io.flow.harmonization.internal.v0.enums {
4449
4450
  type ItemClassificationAction = 'ACCEPT' | 'MANUAL' | 'REJECT';
4450
4451
  type ItemClassificationStatus = 'Unclassified' | 'Suggested' | 'Classified';
4452
+ type ItemType = 'standard' | 'multi_product';
4451
4453
  }
4452
4454
 
4453
4455
  declare namespace io.flow.harmonization.internal.v0.models {
@@ -4572,6 +4574,49 @@ declare namespace io.flow.harmonization.internal.v0.models {
4572
4574
  };
4573
4575
  }
4574
4576
 
4577
+ interface ItemHarmonizationSummary {
4578
+ readonly organization_id: string;
4579
+ readonly item_id: string;
4580
+ readonly item_number: string;
4581
+ readonly customs_description?: string;
4582
+ readonly origin: string;
4583
+ readonly hs6?: string;
4584
+ readonly tariff_code?: string;
4585
+ readonly duty: io.flow.price.v0.models.Duty;
4586
+ readonly price_composition_rate: number;
4587
+ readonly duty_composition_rate: number;
4588
+ }
4589
+
4590
+ interface MultiProductItem {
4591
+ readonly item_id: string;
4592
+ readonly item_number: string;
4593
+ readonly product_id?: string;
4594
+ readonly organization_id: string;
4595
+ readonly sub_items: io.flow.harmonization.internal.v0.models.MultiProductSubItem[];
4596
+ }
4597
+
4598
+ interface MultiProductItemForm {
4599
+ readonly sub_item_forms: io.flow.harmonization.internal.v0.models.MultiProductSubItemForm[];
4600
+ }
4601
+
4602
+ interface MultiProductSubItem {
4603
+ readonly id: string;
4604
+ readonly origin: string;
4605
+ readonly composition_proportion: number;
4606
+ readonly description: string;
4607
+ readonly hs6_code?: string;
4608
+ readonly phrase_id?: string;
4609
+ readonly customs_description?: string;
4610
+ readonly classification_status: io.flow.harmonization.internal.v0.enums.ItemClassificationStatus;
4611
+ }
4612
+
4613
+ interface MultiProductSubItemForm {
4614
+ readonly composition_proportion: number;
4615
+ readonly origin: string;
4616
+ readonly description: string;
4617
+ readonly customs_description: string;
4618
+ }
4619
+
4575
4620
  interface ProductClassificationForm {
4576
4621
  readonly organization_id: string;
4577
4622
  readonly product_id: string;
@@ -4618,6 +4663,12 @@ declare namespace io.flow.harmonization.internal.v0.models {
4618
4663
  readonly code: string;
4619
4664
  }
4620
4665
 
4666
+ interface UnclassifiedProductsForm {
4667
+ readonly organization_id: string;
4668
+ readonly product_id: string;
4669
+ readonly ignore?: boolean;
4670
+ }
4671
+
4621
4672
  interface UnphrasedProductsExport {
4622
4673
  readonly message: string;
4623
4674
  }
@@ -11108,6 +11159,7 @@ declare namespace io.flow.adyen.v0.models {
11108
11159
  readonly selectedBrand?: string;
11109
11160
  readonly browserInfo?: io.flow.adyen.v0.unions.BrowserInfo;
11110
11161
  readonly threeDS2RequestData?: io.flow.adyen.v0.models.Threeds2RequestData;
11162
+ readonly recurringProcessingModel?: io.flow.adyen.v0.enums.RecurringProcessingModel;
11111
11163
  }
11112
11164
 
11113
11165
  interface AuthorizeRequest3D {
@@ -11243,6 +11295,16 @@ declare namespace io.flow.adyen.v0.models {
11243
11295
  readonly notificationResponse: string;
11244
11296
  }
11245
11297
 
11298
+ interface OriginKeysRequest {
11299
+ readonly originDomains: string[];
11300
+ }
11301
+
11302
+ interface OriginKeysResponse {
11303
+ readonly originKeys: {
11304
+ [key: string]: string;
11305
+ };
11306
+ }
11307
+
11246
11308
  interface OuterNotificationRequestItem {
11247
11309
  readonly NotificationRequestItem: io.flow.adyen.v0.models.InnerNotificationRequestItem;
11248
11310
  }
@@ -12486,8 +12548,8 @@ declare namespace io.flow.internal.v0.enums {
12486
12548
  | 'svb_virtual_card_clearing_deleted'
12487
12549
  | 'tracking_request_upserted'
12488
12550
  | 'tracking_response_upserted'
12489
- | 'user_upserted'
12490
- | 'user_deleted';
12551
+ | 'user_upserted_v2'
12552
+ | 'user_deleted_v2';
12491
12553
  type ExperienceImportType = 'experience_with_settings';
12492
12554
  type ExperienceOrderAction = 'submit' | 'refund_gift_cards';
12493
12555
  type ExperienceOrderActionTrigger = 'zero_balance' | 'unsubmitted_order';
@@ -12497,6 +12559,7 @@ declare namespace io.flow.internal.v0.enums {
12497
12559
  type FlowApp = 'console';
12498
12560
  type FlowFieldName = 'item-number' | 'sku-attribute' | 'product_id-attribute';
12499
12561
  type Format = 'text' | 'phone' | 'email';
12562
+ type FraudReviewResponsibleParty = 'flow' | 'organization';
12500
12563
  type FtpIntent =
12501
12564
  | 'orders_from_flow'
12502
12565
  | 'pricebooks_from_flow'
@@ -12633,7 +12696,7 @@ declare namespace io.flow.internal.v0.enums {
12633
12696
  type SimpleRoundingStrategy = 'no_rounding' | 'currency_precision';
12634
12697
  type Status = 'draft' | 'ended' | 'live';
12635
12698
  type SubscriptionFrequency = 'yearly' | 'monthly';
12636
- type SuggestionAction = 'accept' | 'review';
12699
+ type SuggestionAction = 'accept' | 'validate' | 'review';
12637
12700
  type TaxCalculationErrorCode = 'generic_error' | 'outside_of_jurisdiction';
12638
12701
  type TimeseriesType = 'daily' | 'weekly' | 'monthly' | 'yearly';
12639
12702
  type TrackingIntegrationType = 'api' | 'bulk' | 'aftership';
@@ -13165,6 +13228,7 @@ declare namespace io.flow.internal.v0.models {
13165
13228
  readonly days_until_posted: number;
13166
13229
  readonly logistics: io.flow.internal.v0.enums.ResponsibleParty;
13167
13230
  readonly include_transaction_created_at: boolean;
13231
+ readonly include_order_exchange_rate: boolean;
13168
13232
  readonly send_statements_to_flow_ftp_server: boolean;
13169
13233
  readonly invoicing_terms?: io.flow.invoice.v0.enums.PaymentTerm;
13170
13234
  readonly transfer_method?: io.flow.internal.v0.enums.TransferMethod;
@@ -13320,7 +13384,8 @@ declare namespace io.flow.internal.v0.models {
13320
13384
  }
13321
13385
 
13322
13386
  interface BrowserBundleCountryPickerForm {
13323
- readonly country: string;
13387
+ readonly country?: string;
13388
+ readonly ip?: string;
13324
13389
  readonly is_destination: boolean;
13325
13390
  }
13326
13391
 
@@ -13841,6 +13906,7 @@ declare namespace io.flow.internal.v0.models {
13841
13906
  }
13842
13907
 
13843
13908
  interface CountryPickerCountry {
13909
+ readonly iso_3166_2: string;
13844
13910
  readonly iso_3166_3: string;
13845
13911
  readonly name: string;
13846
13912
  }
@@ -14430,6 +14496,7 @@ declare namespace io.flow.internal.v0.models {
14430
14496
  readonly order: io.flow.experience.v0.models.OrderReference;
14431
14497
  readonly recommended_status: io.flow.fraud.v0.enums.FraudStatus;
14432
14498
  readonly apply_at?: string;
14499
+ readonly liability?: io.flow.fraud.v0.enums.FraudLiability;
14433
14500
  }
14434
14501
 
14435
14502
  interface FraudPendingReviewDeleted {
@@ -14452,6 +14519,7 @@ declare namespace io.flow.internal.v0.models {
14452
14519
  readonly organization_id: string;
14453
14520
  readonly order: io.flow.experience.v0.models.OrderReference;
14454
14521
  readonly status: io.flow.fraud.v0.enums.FraudStatus;
14522
+ readonly responsible_party: io.flow.internal.v0.enums.FraudReviewResponsibleParty;
14455
14523
  readonly description?: string;
14456
14524
  readonly risk_evaluation?: io.flow.internal.v0.enums.RiskEvaluation;
14457
14525
  readonly liability?: io.flow.fraud.v0.enums.FraudLiability;
@@ -14467,6 +14535,7 @@ declare namespace io.flow.internal.v0.models {
14467
14535
  readonly order: io.flow.experience.v0.models.OrderReference;
14468
14536
  readonly status: io.flow.fraud.v0.enums.FraudStatus;
14469
14537
  readonly created_at: string;
14538
+ readonly liability?: io.flow.fraud.v0.enums.FraudLiability;
14470
14539
  }
14471
14540
 
14472
14541
  interface FraudReviewDecisionDeleted {
@@ -15458,7 +15527,10 @@ declare namespace io.flow.internal.v0.models {
15458
15527
  }
15459
15528
 
15460
15529
  interface MarketingGatewayFeedSourceGoogle {
15461
- readonly account_id: string;
15530
+ readonly account_id: number;
15531
+ readonly country: string;
15532
+ readonly currency: string;
15533
+ readonly language: string;
15462
15534
  }
15463
15535
 
15464
15536
  interface MarketingGatewayFilterSummary {
@@ -15775,6 +15847,7 @@ declare namespace io.flow.internal.v0.models {
15775
15847
  interface MultiProductItem {
15776
15848
  readonly item_id: string;
15777
15849
  readonly item_number: string;
15850
+ readonly product_id?: string;
15778
15851
  readonly organization_id: string;
15779
15852
  readonly sub_items: io.flow.internal.v0.models.MultiProductSubItem[];
15780
15853
  }
@@ -16673,6 +16746,15 @@ declare namespace io.flow.internal.v0.models {
16673
16746
  readonly quantity: number;
16674
16747
  }
16675
16748
 
16749
+ interface SessionRollout {
16750
+ readonly id: string;
16751
+ readonly percent: number;
16752
+ }
16753
+
16754
+ interface SessionRolloutForm {
16755
+ readonly percent: number;
16756
+ }
16757
+
16676
16758
  interface SfExpress {
16677
16759
  readonly checkword: string;
16678
16760
  readonly customer_code: string;
@@ -17360,6 +17442,12 @@ declare namespace io.flow.internal.v0.models {
17360
17442
  readonly description: string;
17361
17443
  }
17362
17444
 
17445
+ interface UnclassifiedProductsForm {
17446
+ readonly organization_id: string;
17447
+ readonly product_id: string;
17448
+ readonly ignore?: boolean;
17449
+ }
17450
+
17363
17451
  interface UnharmonizedItemsExport {
17364
17452
  readonly event_id: string;
17365
17453
  readonly timestamp: string;
@@ -17371,10 +17459,10 @@ declare namespace io.flow.internal.v0.models {
17371
17459
  readonly message: string;
17372
17460
  }
17373
17461
 
17374
- interface UserDeleted {
17462
+ interface UserDeletedV2 {
17375
17463
  readonly event_id: string;
17376
17464
  readonly timestamp: string;
17377
- readonly id: string;
17465
+ readonly user: io.flow.common.v0.models.User;
17378
17466
  }
17379
17467
 
17380
17468
  interface UserOneTimeToken {
@@ -17386,13 +17474,10 @@ declare namespace io.flow.internal.v0.models {
17386
17474
  readonly status: io.flow.common.v0.enums.UserStatus;
17387
17475
  }
17388
17476
 
17389
- interface UserUpserted {
17477
+ interface UserUpsertedV2 {
17390
17478
  readonly event_id: string;
17391
17479
  readonly timestamp: string;
17392
- readonly id: string;
17393
- readonly email?: string;
17394
- readonly name: io.flow.common.v0.models.Name;
17395
- readonly status: string;
17480
+ readonly user: io.flow.common.v0.models.User;
17396
17481
  }
17397
17482
 
17398
17483
  interface ValidationCharacterLength {
@@ -17931,11 +18016,11 @@ declare namespace io.flow.internal.v0.unions {
17931
18016
  discriminator: 'tracking_response_upserted';
17932
18017
  } & io.flow.internal.v0.models.TrackingResponseUpserted
17933
18018
  | {
17934
- discriminator: 'user_upserted';
17935
- } & io.flow.internal.v0.models.UserUpserted
18019
+ discriminator: 'user_upserted_v2';
18020
+ } & io.flow.internal.v0.models.UserUpsertedV2
17936
18021
  | {
17937
- discriminator: 'user_deleted';
17938
- } & io.flow.internal.v0.models.UserDeleted;
18022
+ discriminator: 'user_deleted_v2';
18023
+ } & io.flow.internal.v0.models.UserDeletedV2;
17939
18024
 
17940
18025
  type ExportSchedule =
17941
18026
  | {
@@ -18574,6 +18659,7 @@ export type FraudReviewDecisionDeleted = io.flow.internal.v0.models.FraudReviewD
18574
18659
  export type FraudReviewDecisionForm = io.flow.internal.v0.models.FraudReviewDecisionForm;
18575
18660
  export type FraudReviewDecisionUpserted = io.flow.internal.v0.models.FraudReviewDecisionUpserted;
18576
18661
  export type FraudReviewDeleted = io.flow.internal.v0.models.FraudReviewDeleted;
18662
+ export type FraudReviewResponsibleParty = io.flow.internal.v0.enums.FraudReviewResponsibleParty;
18577
18663
  export type FraudReviewUpserted = io.flow.internal.v0.models.FraudReviewUpserted;
18578
18664
  export type FraudReviewVersion = io.flow.internal.v0.models.FraudReviewVersion;
18579
18665
  export type FraudSummary = io.flow.internal.v0.models.FraudSummary;
@@ -18949,6 +19035,8 @@ export type SerialReservation = io.flow.internal.v0.models.SerialReservation;
18949
19035
  export type SerialReservationError = io.flow.internal.v0.enums.SerialReservationError;
18950
19036
  export type SerialReservationForm = io.flow.internal.v0.models.SerialReservationForm;
18951
19037
  export type SerialReservationItem = io.flow.internal.v0.models.SerialReservationItem;
19038
+ export type SessionRollout = io.flow.internal.v0.models.SessionRollout;
19039
+ export type SessionRolloutForm = io.flow.internal.v0.models.SessionRolloutForm;
18952
19040
  export type SfExpress = io.flow.internal.v0.models.SfExpress;
18953
19041
  export type ShippedItemValue = io.flow.internal.v0.models.ShippedItemValue;
18954
19042
  export type Shop = io.flow.internal.v0.models.Shop;
@@ -19070,12 +19158,13 @@ export type TransactionSummary = io.flow.internal.v0.unions.TransactionSummary;
19070
19158
  export type TransferMethod = io.flow.internal.v0.enums.TransferMethod;
19071
19159
  export type TransferTransaction = io.flow.internal.v0.models.TransferTransaction;
19072
19160
  export type Tribe = io.flow.internal.v0.models.Tribe;
19161
+ export type UnclassifiedProductsForm = io.flow.internal.v0.models.UnclassifiedProductsForm;
19073
19162
  export type UnharmonizedItemsExport = io.flow.internal.v0.models.UnharmonizedItemsExport;
19074
19163
  export type UnphrasedProductsExport = io.flow.internal.v0.models.UnphrasedProductsExport;
19075
- export type UserDeleted = io.flow.internal.v0.models.UserDeleted;
19164
+ export type UserDeletedV2 = io.flow.internal.v0.models.UserDeletedV2;
19076
19165
  export type UserOneTimeToken = io.flow.internal.v0.models.UserOneTimeToken;
19077
19166
  export type UserStatusForm = io.flow.internal.v0.models.UserStatusForm;
19078
- export type UserUpserted = io.flow.internal.v0.models.UserUpserted;
19167
+ export type UserUpsertedV2 = io.flow.internal.v0.models.UserUpsertedV2;
19079
19168
  export type ValidationCharacterLength = io.flow.internal.v0.models.ValidationCharacterLength;
19080
19169
  export type ValidationRule = io.flow.internal.v0.unions.ValidationRule;
19081
19170
  export type Variant = io.flow.internal.v0.unions.Variant;
package/src/api.ts CHANGED
@@ -743,6 +743,7 @@ declare namespace io.flow.shopify.external.v0.models {
743
743
  readonly taxable: boolean;
744
744
  readonly tax_lines: io.flow.shopify.external.v0.models.ShopifyTaxLine[];
745
745
  readonly total_discount?: string;
746
+ readonly id?: number;
746
747
  }
747
748
 
748
749
  interface ShopifyLineLevelDiscountAllocation {
@@ -1388,9 +1389,16 @@ declare namespace io.flow.v0.enums {
1388
1389
  type InventoryStatus = 'has_inventory' | 'no_inventory';
1389
1390
  type InvitationErrorCode = 'expired' | 'invalid_email';
1390
1391
  type ItemAvailabilityStatus = 'available' | 'low' | 'out_of_stock';
1392
+ type LaneDirection = 'outbound' | 'return';
1393
+ type LanePreselectPreference = 'lowest_cost' | 'default_tier';
1391
1394
  type LaneStrategy = 'oldest' | 'fastest' | 'lowest_cost' | 'highest_priority';
1392
1395
  type LevyComponent = 'goods' | 'duty' | 'insurance' | 'freight' | 'vat';
1393
1396
  type LevyStrategy = 'minimum' | 'average' | 'maximum';
1397
+ type LocationErrorCode =
1398
+ | 'address_required'
1399
+ | 'ip_invalid'
1400
+ | 'ip_required'
1401
+ | 'timezone_unavailable';
1394
1402
  type MarginType = 'fixed' | 'percent';
1395
1403
  type MeasurementSystem = 'imperial' | 'metric';
1396
1404
  type MerchantGiftCardErrorCode =
@@ -1581,7 +1589,6 @@ declare namespace io.flow.v0.enums {
1581
1589
  type TaxabilityType = 'tax_rule';
1582
1590
  type TaxabilityValue = 'exempt';
1583
1591
  type ThreeDSecureCode = 'verified' | 'not_verified' | 'failed';
1584
- type TierDirection = 'outbound' | 'return';
1585
1592
  type TierEstimateType = 'calculated' | 'custom';
1586
1593
  type TierStrategy = 'fastest' | 'lowest_cost';
1587
1594
  type TokenType = 'permanent' | 'one_time';
@@ -1728,6 +1735,7 @@ declare namespace io.flow.v0.models {
1728
1735
  }
1729
1736
 
1730
1737
  interface AdyenNativeActionDetails {
1738
+ readonly origin_key?: string;
1731
1739
  readonly data?: io.flow.v0.unions.AdyenNativeData;
1732
1740
  }
1733
1741
 
@@ -1937,6 +1945,7 @@ declare namespace io.flow.v0.models {
1937
1945
 
1938
1946
  interface AuthorizationResultActionNative {
1939
1947
  readonly type: io.flow.v0.enums.AuthorizationResultActionType;
1948
+ readonly authorization: io.flow.v0.models.AuthorizationReference;
1940
1949
  readonly details?: io.flow.v0.unions.AuthorizationResultActionDetails;
1941
1950
  }
1942
1951
 
@@ -2154,12 +2163,15 @@ declare namespace io.flow.v0.models {
2154
2163
  }
2155
2164
 
2156
2165
  interface BrowserInfo {
2166
+ readonly origin?: string;
2157
2167
  readonly language?: string;
2158
2168
  readonly java_enabled?: boolean;
2159
2169
  readonly color_depth?: number;
2160
2170
  readonly screen_height?: number;
2161
2171
  readonly screen_width?: number;
2162
2172
  readonly time_zone_offset?: number;
2173
+ readonly user_agent?: string;
2174
+ readonly accept?: string;
2163
2175
  }
2164
2176
 
2165
2177
  interface Capture {
@@ -3609,6 +3621,7 @@ declare namespace io.flow.v0.models {
3609
3621
  interface ExperiencePaymentMethodRuleForm {
3610
3622
  readonly payment_method_id: string;
3611
3623
  readonly tags: io.flow.v0.enums.ExperiencePaymentMethodTag[];
3624
+ readonly q?: string;
3612
3625
  }
3613
3626
 
3614
3627
  interface ExperiencePriceBookMapping {
@@ -4958,6 +4971,11 @@ declare namespace io.flow.v0.models {
4958
4971
  readonly name: string;
4959
4972
  }
4960
4973
 
4974
+ interface LocationError {
4975
+ readonly code: io.flow.v0.enums.LocationErrorCode;
4976
+ readonly messages: string[];
4977
+ }
4978
+
4961
4979
  interface LogisticsSettings {
4962
4980
  readonly shipping_configuration: io.flow.v0.models.ShippingConfigurationReference;
4963
4981
  }
@@ -6021,6 +6039,7 @@ declare namespace io.flow.v0.models {
6021
6039
  readonly content?: io.flow.v0.models.PaymentMethodRuleContent[];
6022
6040
  readonly issuers?: io.flow.v0.models.PaymentMethodIssuer[];
6023
6041
  readonly programs: io.flow.v0.models.InstallmentProgramSummary[];
6042
+ readonly q?: io.flow.v0.models.Query;
6024
6043
  }
6025
6044
 
6026
6045
  interface PaymentMethodRuleContent {
@@ -6452,7 +6471,7 @@ declare namespace io.flow.v0.models {
6452
6471
  readonly items: io.flow.v0.models.QuoteLineItemForm[];
6453
6472
  readonly delivered_duty?: io.flow.v0.enums.DeliveredDuty;
6454
6473
  readonly delivered_duties?: io.flow.v0.enums.DeliveredDuty[];
6455
- readonly direction?: io.flow.v0.enums.TierDirection;
6474
+ readonly direction?: io.flow.v0.enums.LaneDirection;
6456
6475
  }
6457
6476
 
6458
6477
  interface QuoteLineItemForm {
@@ -6938,6 +6957,7 @@ declare namespace io.flow.v0.models {
6938
6957
  readonly key: string;
6939
6958
  readonly order?: io.flow.v0.models.ReservationOrderReference;
6940
6959
  readonly items: io.flow.v0.models.ReservationItem[];
6960
+ readonly reserved_until?: string;
6941
6961
  }
6942
6962
 
6943
6963
  interface ReservationForm {
@@ -7468,6 +7488,17 @@ declare namespace io.flow.v0.models {
7468
7488
  readonly tiers: io.flow.v0.models.Tier[];
7469
7489
  readonly query: io.flow.v0.models.Query;
7470
7490
  readonly strategy: io.flow.v0.enums.LaneStrategy;
7491
+ readonly direction?: io.flow.v0.enums.LaneDirection;
7492
+ readonly preference?: io.flow.v0.enums.LanePreselectPreference;
7493
+ }
7494
+
7495
+ interface ShippingLaneDefaultTier {
7496
+ readonly id: string;
7497
+ readonly tier: io.flow.v0.models.TierReference;
7498
+ }
7499
+
7500
+ interface ShippingLaneDefaultTierForm {
7501
+ readonly tier_id: string;
7471
7502
  }
7472
7503
 
7473
7504
  interface ShippingLaneDeleted {
@@ -7480,6 +7511,8 @@ declare namespace io.flow.v0.models {
7480
7511
  readonly from: string;
7481
7512
  readonly to: string;
7482
7513
  readonly strategy?: io.flow.v0.enums.LaneStrategy;
7514
+ readonly direction?: io.flow.v0.enums.LaneDirection;
7515
+ readonly preference?: io.flow.v0.enums.LanePreselectPreference;
7483
7516
  }
7484
7517
 
7485
7518
  interface ShippingLaneSummary {
@@ -7850,6 +7883,7 @@ declare namespace io.flow.v0.models {
7850
7883
  interface StripeAuthorizationResultActionDetails {
7851
7884
  readonly client_secret?: string;
7852
7885
  readonly payment_method_id?: string;
7886
+ readonly publishable_key?: string;
7853
7887
  }
7854
7888
 
7855
7889
  interface Subcatalog {
@@ -8092,7 +8126,7 @@ declare namespace io.flow.v0.models {
8092
8126
 
8093
8127
  interface Tier {
8094
8128
  readonly id: string;
8095
- readonly direction: io.flow.v0.enums.TierDirection;
8129
+ readonly direction: io.flow.v0.enums.LaneDirection;
8096
8130
  readonly integration: io.flow.v0.enums.ShipmentIntegrationType;
8097
8131
  readonly name: string;
8098
8132
  readonly message?: string;
@@ -8138,7 +8172,7 @@ declare namespace io.flow.v0.models {
8138
8172
  readonly strategy: io.flow.v0.enums.TierStrategy;
8139
8173
  readonly visibility: io.flow.v0.enums.Visibility;
8140
8174
  readonly description?: string;
8141
- readonly direction?: io.flow.v0.enums.TierDirection;
8175
+ readonly direction?: io.flow.v0.enums.LaneDirection;
8142
8176
  readonly display?: io.flow.v0.models.TierDisplayForm;
8143
8177
  readonly shipping_lane: string;
8144
8178
  readonly surcharge_settings?: io.flow.v0.models.SurchargeSetting[];
@@ -10189,7 +10223,9 @@ export type LabelFormatUpserted = io.flow.v0.models.LabelFormatUpserted;
10189
10223
  export type LabelOrderSummary = io.flow.v0.models.LabelOrderSummary;
10190
10224
  export type LabelUpserted = io.flow.v0.models.LabelUpserted;
10191
10225
  export type LandedCostItem = io.flow.v0.models.LandedCostItem;
10226
+ export type LaneDirection = io.flow.v0.enums.LaneDirection;
10192
10227
  export type LaneLandedCost = io.flow.v0.models.LaneLandedCost;
10228
+ export type LanePreselectPreference = io.flow.v0.enums.LanePreselectPreference;
10193
10229
  export type LaneStrategy = io.flow.v0.enums.LaneStrategy;
10194
10230
  export type Language = io.flow.v0.models.Language;
10195
10231
  export type LevyComponent = io.flow.v0.enums.LevyComponent;
@@ -10217,6 +10253,8 @@ export type LocalizedLineItemDiscount = io.flow.v0.models.LocalizedLineItemDisco
10217
10253
  export type LocalizedPrice = io.flow.v0.unions.LocalizedPrice;
10218
10254
  export type LocalizedTotal = io.flow.v0.models.LocalizedTotal;
10219
10255
  export type LocalizedTranslation = io.flow.v0.models.LocalizedTranslation;
10256
+ export type LocationError = io.flow.v0.models.LocationError;
10257
+ export type LocationErrorCode = io.flow.v0.enums.LocationErrorCode;
10220
10258
  export type LogisticsSettings = io.flow.v0.models.LogisticsSettings;
10221
10259
  export type Manifest = io.flow.v0.models.Manifest;
10222
10260
  export type ManifestForm = io.flow.v0.models.ManifestForm;
@@ -10635,6 +10673,8 @@ export type ShippingLabelPackage = io.flow.v0.models.ShippingLabelPackage;
10635
10673
  export type ShippingLabelSummary = io.flow.v0.models.ShippingLabelSummary;
10636
10674
  export type ShippingLabelVersion = io.flow.v0.models.ShippingLabelVersion;
10637
10675
  export type ShippingLane = io.flow.v0.models.ShippingLane;
10676
+ export type ShippingLaneDefaultTier = io.flow.v0.models.ShippingLaneDefaultTier;
10677
+ export type ShippingLaneDefaultTierForm = io.flow.v0.models.ShippingLaneDefaultTierForm;
10638
10678
  export type ShippingLaneDeleted = io.flow.v0.models.ShippingLaneDeleted;
10639
10679
  export type ShippingLaneForm = io.flow.v0.models.ShippingLaneForm;
10640
10680
  export type ShippingLaneSummary = io.flow.v0.models.ShippingLaneSummary;
@@ -10741,7 +10781,6 @@ export type ThreeDSecure = io.flow.v0.models.ThreeDSecure;
10741
10781
  export type ThreeDSecureCode = io.flow.v0.enums.ThreeDSecureCode;
10742
10782
  export type Tier = io.flow.v0.models.Tier;
10743
10783
  export type TierDeletedV2 = io.flow.v0.models.TierDeletedV2;
10744
- export type TierDirection = io.flow.v0.enums.TierDirection;
10745
10784
  export type TierDisplay = io.flow.v0.models.TierDisplay;
10746
10785
  export type TierDisplayForm = io.flow.v0.models.TierDisplayForm;
10747
10786
  export type TierEstimate = io.flow.v0.models.TierEstimate;