@flowio/types 2.0.0 → 3.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.
@@ -73,6 +73,7 @@ declare namespace io.flow.ratecard.v0.models {
73
73
  readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
74
74
  readonly number?: string;
75
75
  readonly published_at?: string;
76
+ readonly ratecard_owner?: unknown;
76
77
  }
77
78
 
78
79
  interface RatecardCarrierSummary {
@@ -135,6 +136,7 @@ declare namespace io.flow.ratecard.v0.models {
135
136
  readonly dimensional_weight?: io.flow.common.v0.models.Measurement;
136
137
  readonly gravitational_weight?: io.flow.common.v0.models.Measurement;
137
138
  readonly line_items?: io.flow.common.v0.models.LineItemForm[];
139
+ readonly ratecard_owner?: unknown;
138
140
  }
139
141
 
140
142
  interface RatecardForm {
@@ -143,6 +145,7 @@ declare namespace io.flow.ratecard.v0.models {
143
145
  readonly origination_zones: io.flow.common.v0.models.Zone[];
144
146
  readonly service: string;
145
147
  readonly number?: string;
148
+ readonly ratecard_owner?: unknown;
146
149
  }
147
150
 
148
151
  interface RatecardLane {
@@ -177,6 +180,20 @@ declare namespace io.flow.ratecard.v0.models {
177
180
  readonly distance_unit: io.flow.common.v0.enums.UnitOfMeasurement;
178
181
  }
179
182
 
183
+ interface RatecardLaneImportForm {
184
+ readonly ratecard_owner: unknown;
185
+ readonly service: string;
186
+ readonly currency: string;
187
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
188
+ readonly origin: io.flow.common.v0.models.Zone;
189
+ readonly destination: io.flow.common.v0.models.Zone;
190
+ readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
191
+ readonly dim_factor: number;
192
+ readonly weight_unit: io.flow.common.v0.enums.UnitOfMeasurement;
193
+ readonly distance_unit: io.flow.common.v0.enums.UnitOfMeasurement;
194
+ readonly rates: io.flow.ratecard.v0.models.RatecardRateForm[];
195
+ }
196
+
180
197
  interface RatecardLaneVersion {
181
198
  readonly id: string;
182
199
  readonly timestamp: string;
@@ -587,7 +604,7 @@ declare namespace io.flow.bundle.checkout.v0.models {
587
604
  readonly address_configurations?: unknown[];
588
605
  readonly customer?: io.flow.customer.v0.models.Customer;
589
606
  readonly address_book?: io.flow.customer.v0.models.CustomerAddressBook;
590
- readonly payment_sources?: unknown[];
607
+ readonly payment_sources?: io.flow.payment.v0.unions.PaymentSource[];
591
608
  readonly customer_bundle?: io.flow.customer.v0.models.CustomerBundle;
592
609
  }
593
610
 
@@ -613,10 +630,10 @@ declare namespace io.flow.bundle.checkout.v0.models {
613
630
 
614
631
  interface CheckoutOrderForm {
615
632
  readonly organization: string;
616
- readonly order: io.flow.experience.v0.models.OrderPutForm;
633
+ readonly order: io.flow.experience.v0.models.OrderForm;
617
634
  readonly customer?: io.flow.customer.v0.models.CustomerForm;
618
635
  readonly address_book?: io.flow.customer.v0.models.CustomerAddressBookForm;
619
- readonly payment_sources?: unknown[];
636
+ readonly payment_sources?: io.flow.payment.v0.unions.PaymentSourceForm[];
620
637
  readonly urls?: io.flow.checkout.v0.models.CheckoutUrlsForm;
621
638
  readonly identifiers?: unknown[];
622
639
  readonly feature_keys?: string[];
@@ -628,7 +645,7 @@ declare namespace io.flow.bundle.checkout.v0.models {
628
645
  readonly order_number: string;
629
646
  readonly customer?: io.flow.customer.v0.models.CustomerForm;
630
647
  readonly address_book?: io.flow.customer.v0.models.CustomerAddressBookForm;
631
- readonly payment_sources?: unknown[];
648
+ readonly payment_sources?: io.flow.payment.v0.unions.PaymentSourceForm[];
632
649
  readonly urls?: io.flow.checkout.v0.models.CheckoutUrlsForm;
633
650
  readonly identifiers?: unknown[];
634
651
  readonly feature_keys?: string[];
@@ -637,7 +654,7 @@ declare namespace io.flow.bundle.checkout.v0.models {
637
654
 
638
655
  interface CheckoutPayment {
639
656
  readonly authorizations: io.flow.payment.v0.unions.Authorization[];
640
- readonly sources: unknown[];
657
+ readonly sources: io.flow.payment.v0.unions.PaymentSource[];
641
658
  readonly public_key: io.flow.payment.v0.models.PublicKey;
642
659
  readonly method_types: io.flow.reference.v0.enums.PaymentMethodType[];
643
660
  readonly method_rules: io.flow.experience.v0.models.PaymentMethodRule[];
@@ -2801,7 +2818,7 @@ declare namespace io.flow.billing.v0.models {
2801
2818
  readonly currency: string;
2802
2819
  readonly updated_at: string;
2803
2820
  readonly timezone: io.flow.reference.v0.models.Timezone;
2804
- readonly payment_schedule: unknown;
2821
+ readonly payment_schedule: io.flow.common.v0.unions.RepeatSchedule;
2805
2822
  readonly payment_conditions?: string;
2806
2823
  readonly deposit_rule?: io.flow.billing.v0.models.AccountDepositRule;
2807
2824
  readonly statistics: io.flow.billing.v0.models.AccountStatistics;
@@ -3609,7 +3626,7 @@ declare namespace io.flow.fulfillment.v0.models {
3609
3626
 
3610
3627
  interface DeliveryOptionForm {
3611
3628
  readonly delivery: string;
3612
- readonly items: io.flow.common.v0.models.LineItemForm[];
3629
+ readonly items: io.flow.fulfillment.v0.models.QuoteLineItemForm[];
3613
3630
  readonly destination: io.flow.fulfillment.v0.models.ShippingAddress;
3614
3631
  }
3615
3632
 
@@ -3781,12 +3798,25 @@ declare namespace io.flow.fulfillment.v0.models {
3781
3798
  interface QuoteForm {
3782
3799
  readonly destination: io.flow.fulfillment.v0.models.ShippingAddress;
3783
3800
  readonly experience: string;
3784
- readonly items: io.flow.common.v0.models.LineItemForm[];
3801
+ readonly items: io.flow.fulfillment.v0.models.QuoteLineItemForm[];
3785
3802
  readonly delivered_duty?: io.flow.common.v0.enums.DeliveredDuty;
3786
3803
  readonly delivered_duties?: io.flow.common.v0.enums.DeliveredDuty[];
3787
3804
  readonly direction?: io.flow.fulfillment.v0.enums.TierDirection;
3788
3805
  }
3789
3806
 
3807
+ interface QuoteLineItemForm {
3808
+ readonly number: string;
3809
+ readonly quantity: number;
3810
+ readonly shipment_estimate?: io.flow.common.v0.models.DatetimeRange;
3811
+ readonly price?: io.flow.common.v0.models.MoneyWithBase;
3812
+ readonly attributes?: {
3813
+ [key: string]: string;
3814
+ };
3815
+ readonly center?: string;
3816
+ readonly discount?: io.flow.common.v0.models.Money;
3817
+ readonly discounts?: io.flow.common.v0.models.DiscountsForm;
3818
+ }
3819
+
3790
3820
  interface QuoteSummary {
3791
3821
  readonly id: string;
3792
3822
  readonly destination: io.flow.fulfillment.v0.models.ShippingAddress;
@@ -3930,7 +3960,6 @@ declare namespace io.flow.fulfillment.v0.models {
3930
3960
  readonly currency: string;
3931
3961
  readonly description?: string;
3932
3962
  readonly display?: io.flow.fulfillment.v0.models.TierDisplay;
3933
- readonly experience?: io.flow.fulfillment.v0.models.FulfillmentExperienceReference;
3934
3963
  readonly shipping_lane?: string;
3935
3964
  readonly surcharge_settings?: io.flow.fulfillment.v0.models.SurchargeSetting[];
3936
3965
  }
@@ -3960,8 +3989,7 @@ declare namespace io.flow.fulfillment.v0.models {
3960
3989
  readonly description?: string;
3961
3990
  readonly direction?: io.flow.fulfillment.v0.enums.TierDirection;
3962
3991
  readonly display?: io.flow.fulfillment.v0.models.TierDisplayForm;
3963
- readonly experience?: string;
3964
- readonly shipping_lane?: string;
3992
+ readonly shipping_lane: string;
3965
3993
  readonly surcharge_settings?: io.flow.fulfillment.v0.models.SurchargeSetting[];
3966
3994
  }
3967
3995
 
@@ -4100,7 +4128,7 @@ declare namespace io.flow.organization.v0.models {
4100
4128
  readonly organization: string;
4101
4129
  readonly email: string;
4102
4130
  readonly name?: io.flow.common.v0.models.Name;
4103
- readonly role: io.flow.common.v0.enums.Role;
4131
+ readonly role?: io.flow.common.v0.enums.Role;
4104
4132
  readonly roles?: io.flow.permission.v0.unions.FlowRole[];
4105
4133
  }
4106
4134
 
@@ -4122,13 +4150,13 @@ declare namespace io.flow.organization.v0.models {
4122
4150
  interface MembershipForm {
4123
4151
  readonly organization: string;
4124
4152
  readonly user: string;
4125
- readonly role: io.flow.common.v0.enums.Role;
4126
- readonly roles: io.flow.permission.v0.unions.FlowRole[];
4153
+ readonly role?: io.flow.common.v0.enums.Role;
4154
+ readonly roles?: io.flow.permission.v0.unions.FlowRole[];
4127
4155
  }
4128
4156
 
4129
4157
  interface MembershipPutForm {
4130
- readonly role: io.flow.common.v0.enums.Role;
4131
- readonly roles: io.flow.permission.v0.unions.FlowRole[];
4158
+ readonly role?: io.flow.common.v0.enums.Role;
4159
+ readonly roles?: io.flow.permission.v0.unions.FlowRole[];
4132
4160
  }
4133
4161
 
4134
4162
  interface MembershipVersion {
@@ -4402,6 +4430,15 @@ declare namespace io.flow.search.v0.models {
4402
4430
  readonly thumbnail?: io.flow.catalog.v0.models.Image;
4403
4431
  }
4404
4432
 
4433
+ interface CatalogPriceBookItemDocument {
4434
+ readonly price_book_key: string;
4435
+ readonly price_book_item_key: string;
4436
+ readonly catalog: io.flow.common.v0.models.CatalogItemSummary;
4437
+ readonly amount: number;
4438
+ readonly starts_at: string;
4439
+ readonly ends_at?: string;
4440
+ }
4441
+
4405
4442
  interface CategorySummary {
4406
4443
  readonly name?: string;
4407
4444
  readonly count: number;
@@ -4418,11 +4455,6 @@ declare namespace io.flow.search.v0.models {
4418
4455
  readonly count?: number;
4419
4456
  }
4420
4457
 
4421
- interface PriceBookItemSearchingForm {
4422
- readonly price_book_key?: string;
4423
- readonly item_query?: string;
4424
- }
4425
-
4426
4458
  interface Suggestion {
4427
4459
  readonly label: string;
4428
4460
  readonly count: number;
@@ -4617,7 +4649,7 @@ declare namespace io.flow.harmonization.internal.v0.models {
4617
4649
  readonly customs_description: string;
4618
4650
  }
4619
4651
 
4620
- interface ProductClassificationForm {
4652
+ interface ProductClassificationJudgementForm {
4621
4653
  readonly organization_id: string;
4622
4654
  readonly product_id: string;
4623
4655
  readonly classification_model_id?: string;
@@ -4870,6 +4902,7 @@ declare namespace io.flow.label.v0.unions {
4870
4902
 
4871
4903
  declare namespace io.flow.country.picker.v0.models {
4872
4904
  interface CountryPickerCountry {
4905
+ readonly iso_3166_2: string;
4873
4906
  readonly iso_3166_3: string;
4874
4907
  readonly name: string;
4875
4908
  }
@@ -4885,80 +4918,6 @@ declare namespace io.flow.country.picker.v0.models {
4885
4918
  }
4886
4919
  }
4887
4920
 
4888
- declare namespace io.flow.classification.internal.v0.enums {
4889
- type ClassificationAction = 'ACCEPT' | 'MANUAL' | 'REJECT';
4890
- type ClassificationStatus = 'unclassified' | 'suggested' | 'classified';
4891
- }
4892
-
4893
- declare namespace io.flow.classification.internal.v0.models {
4894
- interface ClassificationRequest {
4895
- readonly organization_id: string;
4896
- readonly product_id: string;
4897
- readonly classification_model_id?: string;
4898
- readonly classification: string;
4899
- readonly action: io.flow.classification.internal.v0.enums.ClassificationAction;
4900
- }
4901
-
4902
- interface ClassificationResult {
4903
- readonly classified_task: io.flow.classification.internal.v0.models.ClassifiedTask;
4904
- readonly next_task?: io.flow.classification.internal.v0.models.ClassificationTaskId;
4905
- }
4906
-
4907
- interface ClassificationSuggestion {
4908
- readonly model_id: string;
4909
- readonly suggestion: string;
4910
- readonly value: number;
4911
- }
4912
-
4913
- interface ClassificationTask {
4914
- readonly organization_id: string;
4915
- readonly product_id?: string;
4916
- readonly description: string;
4917
- readonly items: io.flow.classification.internal.v0.models.ClassificationTaskItem[];
4918
- readonly images: string[];
4919
- readonly categories: string[];
4920
- readonly attributes: {
4921
- [key: string]: string;
4922
- };
4923
- readonly next_task?: io.flow.classification.internal.v0.models.ClassificationTaskId;
4924
- }
4925
-
4926
- interface ClassificationTaskId {
4927
- readonly organization_id: string;
4928
- readonly product_id: string;
4929
- }
4930
-
4931
- interface ClassificationTaskItem {
4932
- readonly id: string;
4933
- readonly organization_id: string;
4934
- readonly item_number: string;
4935
- readonly name: string;
4936
- readonly description: string;
4937
- readonly status: io.flow.classification.internal.v0.enums.ClassificationStatus;
4938
- readonly suggestions: io.flow.classification.internal.v0.models.ClassificationSuggestion[];
4939
- }
4940
-
4941
- interface ClassificationTaskPage {
4942
- readonly page: io.flow.classification.internal.v0.models.ClassificationTaskSummary[];
4943
- readonly next_cursor?: string;
4944
- }
4945
-
4946
- interface ClassificationTaskSummary {
4947
- readonly product_id: string;
4948
- readonly organization_id: string;
4949
- readonly description: string;
4950
- readonly status: io.flow.classification.internal.v0.enums.ClassificationStatus;
4951
- readonly suggestion_count: number;
4952
- }
4953
-
4954
- interface ClassifiedTask {
4955
- readonly product_id: string;
4956
- readonly organization_id: string;
4957
- readonly classification: string;
4958
- readonly classification_model_id: string;
4959
- }
4960
- }
4961
-
4962
4921
  declare namespace io.flow.session.v0.models {
4963
4922
  interface CartReference {
4964
4923
  readonly id: string;
@@ -5009,11 +4968,20 @@ declare namespace io.flow.session.v0.models {
5009
4968
  readonly variant?: io.flow.session.v0.models.SessionExperimentVariant;
5010
4969
  }
5011
4970
 
4971
+ interface SessionExperimentForm {
4972
+ readonly key: string;
4973
+ readonly variant?: io.flow.session.v0.models.SessionExperimentVariantForm;
4974
+ }
4975
+
5012
4976
  interface SessionExperimentVariant {
5013
4977
  readonly key: string;
5014
4978
  readonly name: string;
5015
4979
  }
5016
4980
 
4981
+ interface SessionExperimentVariantForm {
4982
+ readonly key: string;
4983
+ }
4984
+
5017
4985
  interface SessionExpirationConfig {
5018
4986
  readonly unit: io.flow.common.v0.enums.UnitOfTime;
5019
4987
  readonly value: number;
@@ -5029,7 +4997,7 @@ declare namespace io.flow.session.v0.models {
5029
4997
  readonly attributes?: {
5030
4998
  [key: string]: string;
5031
4999
  };
5032
- readonly experiment?: io.flow.session.v0.models.SessionExperiment;
5000
+ readonly experiment?: io.flow.session.v0.models.SessionExperimentForm;
5033
5001
  }
5034
5002
 
5035
5003
  interface SessionFormat {
@@ -5053,7 +5021,7 @@ declare namespace io.flow.session.v0.models {
5053
5021
  readonly attributes?: {
5054
5022
  [key: string]: string;
5055
5023
  };
5056
- readonly experiment?: io.flow.session.v0.models.SessionExperiment;
5024
+ readonly experiment?: io.flow.session.v0.models.SessionExperimentForm;
5057
5025
  }
5058
5026
 
5059
5027
  interface SessionVisit {
@@ -5243,6 +5211,7 @@ declare namespace io.flow.shopify.v0.models {
5243
5211
  readonly incoterm?: io.flow.common.v0.enums.Incoterm;
5244
5212
  readonly flow_order_id?: string;
5245
5213
  readonly tax_registration?: io.flow.harmonization.v0.models.TaxRegistration;
5214
+ readonly geo?: io.flow.experience.v0.models.OrderGeo;
5246
5215
  }
5247
5216
 
5248
5217
  interface ShopifyLocalizedVariant {
@@ -5389,6 +5358,11 @@ declare namespace io.flow.payment.internal.v0.models {
5389
5358
  readonly merchant_account: string;
5390
5359
  }
5391
5360
 
5361
+ interface AdyenPaymentDetailsForm {
5362
+ readonly fingerprint?: string;
5363
+ readonly challenge_result?: string;
5364
+ }
5365
+
5392
5366
  interface AdyenRefundForm {
5393
5367
  readonly amount: number;
5394
5368
  readonly authorization_id: string;
@@ -5849,7 +5823,8 @@ declare namespace io.flow.catalog.v0.enums {
5849
5823
  | 'consumer_url'
5850
5824
  | 'gtin'
5851
5825
  | 'mpn'
5852
- | 'excluded_regions';
5826
+ | 'excluded_regions'
5827
+ | 'facet';
5853
5828
  type FulfillmentMethodType = 'fulfillment_method';
5854
5829
  type FulfillmentMethodValue = 'digital' | 'physical';
5855
5830
  type ImageTag = 'thumbnail' | 'checkout';
@@ -6212,7 +6187,7 @@ declare namespace io.flow.catalog.v0.unions {
6212
6187
  }
6213
6188
 
6214
6189
  declare namespace io.flow.common.v0.enums {
6215
- type AttributeDataType = 'boolean' | 'decimal' | 'string';
6190
+ type AttributeDataType = 'boolean' | 'decimal' | 'string' | 'json_array';
6216
6191
  type AvailabilityStatus = 'enabled' | 'disabled';
6217
6192
  type Calendar = 'weekdays' | 'everyday';
6218
6193
  type Capability = 'crossdock';
@@ -6314,6 +6289,10 @@ declare namespace io.flow.common.v0.models {
6314
6289
  };
6315
6290
  }
6316
6291
 
6292
+ interface CheckoutReference {
6293
+ readonly id: string;
6294
+ }
6295
+
6317
6296
  interface Contact {
6318
6297
  readonly name: io.flow.common.v0.models.Name;
6319
6298
  readonly company?: string;
@@ -6325,6 +6304,10 @@ declare namespace io.flow.common.v0.models {
6325
6304
  readonly address?: io.flow.common.v0.models.BillingAddress;
6326
6305
  }
6327
6306
 
6307
+ interface CustomerReference {
6308
+ readonly number: string;
6309
+ }
6310
+
6328
6311
  interface DatetimeRange {
6329
6312
  readonly from: string;
6330
6313
  readonly to: string;
@@ -6573,6 +6556,20 @@ declare namespace io.flow.common.v0.models {
6573
6556
  readonly base?: io.flow.common.v0.models.Price;
6574
6557
  }
6575
6558
 
6559
+ interface RepeatDaily {
6560
+ readonly interval: number;
6561
+ }
6562
+
6563
+ interface RepeatMonthly {
6564
+ readonly interval: number;
6565
+ readonly days: number[];
6566
+ }
6567
+
6568
+ interface RepeatWeekly {
6569
+ readonly interval: number;
6570
+ readonly days_of_week: io.flow.common.v0.enums.DayOfWeek[];
6571
+ }
6572
+
6576
6573
  interface Rounding {
6577
6574
  readonly type: io.flow.common.v0.enums.RoundingType;
6578
6575
  readonly method: io.flow.common.v0.enums.RoundingMethod;
@@ -6588,6 +6585,10 @@ declare namespace io.flow.common.v0.models {
6588
6585
  readonly max_lead_time?: number;
6589
6586
  }
6590
6587
 
6588
+ interface SessionReference {
6589
+ readonly id: string;
6590
+ }
6591
+
6591
6592
  interface User {
6592
6593
  readonly id: string;
6593
6594
  readonly email?: string;
@@ -6645,6 +6646,17 @@ declare namespace io.flow.common.v0.unions {
6645
6646
  | {
6646
6647
  discriminator: 'provided';
6647
6648
  } & io.flow.common.v0.models.PriceSourceProvided;
6649
+
6650
+ type RepeatSchedule =
6651
+ | {
6652
+ discriminator: 'repeat_daily';
6653
+ } & io.flow.common.v0.models.RepeatDaily
6654
+ | {
6655
+ discriminator: 'repeat_weekly';
6656
+ } & io.flow.common.v0.models.RepeatWeekly
6657
+ | {
6658
+ discriminator: 'repeat_monthly';
6659
+ } & io.flow.common.v0.models.RepeatMonthly;
6648
6660
  }
6649
6661
 
6650
6662
  declare namespace io.flow.issuer.v0.models {
@@ -6786,6 +6798,7 @@ declare namespace io.flow.reference.v0.models {
6786
6798
  }
6787
6799
 
6788
6800
  declare namespace io.flow.fraud.internal.v0.enums {
6801
+ type FraudReviewResponsibleParty = 'flow' | 'organization';
6789
6802
  type RiskEvaluation = 'pending' | 'high' | 'low' | 'restricted' | 'none';
6790
6803
  }
6791
6804
 
@@ -6805,6 +6818,7 @@ declare namespace io.flow.fraud.internal.v0.models {
6805
6818
  readonly order: io.flow.experience.v0.models.OrderReference;
6806
6819
  readonly recommended_status: io.flow.fraud.v0.enums.FraudStatus;
6807
6820
  readonly apply_at?: string;
6821
+ readonly liability?: io.flow.fraud.v0.enums.FraudLiability;
6808
6822
  }
6809
6823
 
6810
6824
  interface FraudReview {
@@ -6812,6 +6826,7 @@ declare namespace io.flow.fraud.internal.v0.models {
6812
6826
  readonly organization_id: string;
6813
6827
  readonly order: io.flow.experience.v0.models.OrderReference;
6814
6828
  readonly status: io.flow.fraud.v0.enums.FraudStatus;
6829
+ readonly responsible_party: io.flow.fraud.internal.v0.enums.FraudReviewResponsibleParty;
6815
6830
  readonly description?: string;
6816
6831
  readonly risk_evaluation?: io.flow.fraud.internal.v0.enums.RiskEvaluation;
6817
6832
  readonly liability?: io.flow.fraud.v0.enums.FraudLiability;
@@ -6827,6 +6842,7 @@ declare namespace io.flow.fraud.internal.v0.models {
6827
6842
  readonly order: io.flow.experience.v0.models.OrderReference;
6828
6843
  readonly status: io.flow.fraud.v0.enums.FraudStatus;
6829
6844
  readonly created_at: string;
6845
+ readonly liability?: io.flow.fraud.v0.enums.FraudLiability;
6830
6846
  }
6831
6847
 
6832
6848
  interface FraudReviewDecisionForm {
@@ -6940,7 +6956,7 @@ declare namespace io.flow.experience.internal.v0.models {
6940
6956
 
6941
6957
  interface InternalOrder {
6942
6958
  readonly order: io.flow.experience.v0.models.Order;
6943
- readonly session?: unknown;
6959
+ readonly session?: io.flow.common.v0.models.SessionReference;
6944
6960
  readonly rates: io.flow.currency.internal.v0.models.RateDataV3[];
6945
6961
  }
6946
6962
 
@@ -7163,6 +7179,11 @@ declare namespace io.flow.tracking.internal.v0.models {
7163
7179
  readonly distribution_center: string;
7164
7180
  }
7165
7181
 
7182
+ interface FedexCrossborder {
7183
+ readonly api_key: string;
7184
+ readonly api_url: string;
7185
+ }
7186
+
7166
7187
  interface Landmark {
7167
7188
  readonly username: string;
7168
7189
  readonly password: string;
@@ -7211,7 +7232,10 @@ declare namespace io.flow.tracking.internal.v0.unions {
7211
7232
  } & io.flow.tracking.internal.v0.models.Landmark
7212
7233
  | {
7213
7234
  discriminator: 'dhl';
7214
- } & io.flow.tracking.internal.v0.models.Dhl;
7235
+ } & io.flow.tracking.internal.v0.models.Dhl
7236
+ | {
7237
+ discriminator: 'fedex_crossborder';
7238
+ } & io.flow.tracking.internal.v0.models.FedexCrossborder;
7215
7239
  }
7216
7240
 
7217
7241
  declare namespace io.flow.stripe.v0.enums {
@@ -8056,15 +8080,15 @@ declare namespace io.flow.RESERVED_WORD_export.v0.models {
8056
8080
 
8057
8081
  interface CsvPriceBookItemExportRow {
8058
8082
  readonly price_book_key: string;
8083
+ readonly price_book_item_key: string;
8059
8084
  readonly item_number: string;
8060
- readonly item_Name: string;
8085
+ readonly item_name: string;
8061
8086
  readonly amount: number;
8062
8087
  readonly item_attributes?: {
8063
8088
  [key: string]: string;
8064
8089
  };
8065
8090
  readonly starts_at: string;
8066
8091
  readonly ends_at?: string;
8067
- readonly price_book_item_key: string;
8068
8092
  }
8069
8093
 
8070
8094
  interface ExperienceExportType {
@@ -8313,11 +8337,50 @@ declare namespace io.flow.shopify.internal.v0.models {
8313
8337
  readonly short_id: string;
8314
8338
  }
8315
8339
 
8340
+ interface ShopifyGiftCardBalance {
8341
+ readonly gift_card_id: number;
8342
+ readonly last_characters: string;
8343
+ readonly amount: number;
8344
+ readonly currency: string;
8345
+ }
8346
+
8347
+ interface ShopifyGiftCardBalanceForm {
8348
+ readonly number: string;
8349
+ }
8350
+
8316
8351
  interface ShopifyGiftCardPaymentForm {
8317
8352
  readonly code: string;
8318
8353
  readonly customer_id?: number;
8319
8354
  }
8320
8355
 
8356
+ interface ShopifyGiftCardRedemption {
8357
+ readonly adjustment_id: number;
8358
+ readonly gift_card_id: number;
8359
+ readonly last_characters: string;
8360
+ readonly amount: number;
8361
+ readonly currency: string;
8362
+ }
8363
+
8364
+ interface ShopifyGiftCardRedemptionForm {
8365
+ readonly number: string;
8366
+ readonly amount: number;
8367
+ readonly currency: string;
8368
+ }
8369
+
8370
+ interface ShopifyGiftCardReversal {
8371
+ readonly adjustment_id: number;
8372
+ readonly gift_card_id: number;
8373
+ readonly last_characters: string;
8374
+ readonly amount: number;
8375
+ readonly currency: string;
8376
+ }
8377
+
8378
+ interface ShopifyGiftCardReversalForm {
8379
+ readonly number: string;
8380
+ readonly amount: number;
8381
+ readonly currency: string;
8382
+ }
8383
+
8321
8384
  interface ShopifyGrantsCheck {
8322
8385
  readonly dummy: string;
8323
8386
  }
@@ -9003,6 +9066,10 @@ declare namespace io.flow.payment.v0.enums {
9003
9066
  | 'invalid_customer'
9004
9067
  | 'invalid_destination'
9005
9068
  | 'unknown';
9069
+ type PaymentSourceConfirmationActionType =
9070
+ | 'cvv'
9071
+ | 'billing_address'
9072
+ | 'number';
9006
9073
  type RefundDeclineCode = 'expired' | 'insufficient_funds' | 'unknown';
9007
9074
  type RefundStatus = 'pending' | 'succeeded' | 'failed' | 'canceled';
9008
9075
  type ReversalErrorCode =
@@ -9228,6 +9295,32 @@ declare namespace io.flow.payment.v0.models {
9228
9295
  readonly token: string;
9229
9296
  }
9230
9297
 
9298
+ interface CardPaymentSource {
9299
+ readonly id: string;
9300
+ readonly actions?: io.flow.payment.v0.models.PaymentSourceConfirmationAction[];
9301
+ readonly summary: io.flow.payment.v0.models.CardPaymentSourceSummary;
9302
+ }
9303
+
9304
+ interface CardPaymentSourceForm {
9305
+ readonly customer_number: string;
9306
+ readonly token?: string;
9307
+ readonly last4?: string;
9308
+ readonly expiration_month?: number;
9309
+ readonly expiration_year?: number;
9310
+ readonly type?: io.flow.payment.v0.enums.CardType;
9311
+ readonly billing_address?: io.flow.common.v0.models.BillingAddress;
9312
+ }
9313
+
9314
+ interface CardPaymentSourceSummary {
9315
+ readonly customer_number: string;
9316
+ readonly token?: string;
9317
+ readonly last4?: string;
9318
+ readonly expiration_month?: number;
9319
+ readonly expiration_year?: number;
9320
+ readonly type?: io.flow.payment.v0.enums.CardType;
9321
+ readonly billing_address?: io.flow.common.v0.models.BillingAddress;
9322
+ }
9323
+
9231
9324
  interface CardReference {
9232
9325
  readonly id: string;
9233
9326
  readonly token: string;
@@ -9409,6 +9502,10 @@ declare namespace io.flow.payment.v0.models {
9409
9502
  readonly id: string;
9410
9503
  }
9411
9504
 
9505
+ interface PaymentSourceConfirmationAction {
9506
+ readonly type: io.flow.payment.v0.enums.PaymentSourceConfirmationActionType;
9507
+ }
9508
+
9412
9509
  interface PaymentVersion {
9413
9510
  readonly id: string;
9414
9511
  readonly timestamp: string;
@@ -9596,6 +9693,7 @@ declare namespace io.flow.payment.v0.models {
9596
9693
  interface StripeAuthenticationDataForm {
9597
9694
  readonly account_id: string;
9598
9695
  readonly secret_key: string;
9696
+ readonly key?: string;
9599
9697
  }
9600
9698
 
9601
9699
  interface ThreeDSecure {
@@ -9764,6 +9862,14 @@ declare namespace io.flow.payment.v0.unions {
9764
9862
  type PaymentForm = {
9765
9863
  discriminator: 'merchant_of_record_payment_form';
9766
9864
  } & io.flow.payment.v0.models.MerchantOfRecordPaymentForm;
9865
+
9866
+ type PaymentSource = {
9867
+ discriminator: 'card_payment_source';
9868
+ } & io.flow.payment.v0.models.CardPaymentSource;
9869
+
9870
+ type PaymentSourceForm = {
9871
+ discriminator: 'card_payment_source_form';
9872
+ } & io.flow.payment.v0.models.CardPaymentSourceForm;
9767
9873
  }
9768
9874
 
9769
9875
  declare namespace io.flow.invoice.v0.enums {
@@ -11499,7 +11605,7 @@ declare namespace io.flow.customer.v0.models {
11499
11605
 
11500
11606
  interface CustomerToken {
11501
11607
  readonly id: string;
11502
- readonly customer: unknown;
11608
+ readonly customer: io.flow.common.v0.models.CustomerReference;
11503
11609
  readonly token: string;
11504
11610
  }
11505
11611
  }
@@ -11629,6 +11735,13 @@ declare namespace io.flow.order.management.event.v0.models {
11629
11735
  readonly allocation: io.flow.experience.v0.models.AllocationV2;
11630
11736
  }
11631
11737
 
11738
+ interface OrderPlacedV2 {
11739
+ readonly event_id: string;
11740
+ readonly timestamp: string;
11741
+ readonly organization: string;
11742
+ readonly order_placed: io.flow.order.management.v0.models.OrderPlacedDetails;
11743
+ }
11744
+
11632
11745
  interface ReadyToFulfill {
11633
11746
  readonly event_id: string;
11634
11747
  readonly timestamp: string;
@@ -11645,6 +11758,9 @@ declare namespace io.flow.order.management.event.v0.unions {
11645
11758
  | {
11646
11759
  discriminator: 'order_placed';
11647
11760
  } & io.flow.order.management.event.v0.models.OrderPlaced
11761
+ | {
11762
+ discriminator: 'order_placed_v2';
11763
+ } & io.flow.order.management.event.v0.models.OrderPlacedV2
11648
11764
  | {
11649
11765
  discriminator: 'ready_to_fulfill';
11650
11766
  } & io.flow.order.management.event.v0.models.ReadyToFulfill;
@@ -11732,7 +11848,7 @@ declare namespace io.flow.price.v0.models {
11732
11848
  readonly currency: string;
11733
11849
  readonly name: string;
11734
11850
  readonly includes: io.flow.common.v0.enums.IncludedLevyKey;
11735
- readonly status: io.flow.common.v0.enums.PriceBookStatus;
11851
+ readonly status?: io.flow.common.v0.enums.PriceBookStatus;
11736
11852
  }
11737
11853
 
11738
11854
  interface PriceBookItem {
@@ -11884,7 +12000,7 @@ declare namespace io.flow.billing.internal.v0.enums {
11884
12000
  declare namespace io.flow.billing.internal.v0.models {
11885
12001
  interface AccountPutForm {
11886
12002
  readonly timezone: string;
11887
- readonly payment_schedule: unknown;
12003
+ readonly payment_schedule: io.flow.common.v0.unions.RepeatSchedule;
11888
12004
  readonly payment_conditions: string;
11889
12005
  readonly deposit_rule?: io.flow.billing.v0.models.AccountDepositRuleForm;
11890
12006
  }
@@ -11954,6 +12070,7 @@ declare namespace io.flow.billing.internal.v0.models {
11954
12070
  readonly days_until_posted: number;
11955
12071
  readonly logistics: io.flow.billing.internal.v0.enums.ResponsibleParty;
11956
12072
  readonly include_transaction_created_at: boolean;
12073
+ readonly include_order_exchange_rate: boolean;
11957
12074
  readonly send_statements_to_flow_ftp_server: boolean;
11958
12075
  readonly invoicing_terms?: io.flow.invoice.v0.enums.PaymentTerm;
11959
12076
  readonly transfer_method?: io.flow.billing.internal.v0.enums.TransferMethod;
@@ -12227,19 +12344,19 @@ declare namespace io.flow.checkout.v0.models {
12227
12344
  interface CheckoutToken {
12228
12345
  readonly id: string;
12229
12346
  readonly organization: io.flow.common.v0.models.OrganizationReference;
12230
- readonly checkout: unknown;
12347
+ readonly checkout: io.flow.common.v0.models.CheckoutReference;
12231
12348
  readonly order: io.flow.experience.v0.models.OrderNumberReference;
12232
12349
  readonly urls: io.flow.checkout.v0.models.CheckoutUrls;
12233
12350
  readonly expires_at: string;
12234
- readonly session: unknown;
12235
- readonly customer?: unknown;
12351
+ readonly session: io.flow.common.v0.models.SessionReference;
12352
+ readonly customer?: io.flow.common.v0.models.CustomerReference;
12236
12353
  }
12237
12354
 
12238
12355
  interface CheckoutTokenOrderForm {
12239
12356
  readonly order_form: io.flow.experience.v0.models.OrderForm;
12240
12357
  readonly customer?: io.flow.customer.v0.models.CustomerForm;
12241
12358
  readonly address_book?: io.flow.customer.v0.models.CustomerAddressBookForm;
12242
- readonly payment_sources?: unknown[];
12359
+ readonly payment_sources?: io.flow.payment.v0.unions.PaymentSourceForm[];
12243
12360
  readonly session_id: string;
12244
12361
  readonly urls?: io.flow.checkout.v0.models.CheckoutUrlsForm;
12245
12362
  readonly identifiers?: unknown[];
@@ -12254,11 +12371,13 @@ declare namespace io.flow.checkout.v0.models {
12254
12371
  interface CheckoutUrls {
12255
12372
  readonly continue_shopping?: string;
12256
12373
  readonly confirmation?: string;
12374
+ readonly invalid_checkout?: string;
12257
12375
  }
12258
12376
 
12259
12377
  interface CheckoutUrlsForm {
12260
12378
  readonly continue_shopping?: string;
12261
12379
  readonly confirmation?: string;
12380
+ readonly invalid_checkout?: string;
12262
12381
  }
12263
12382
  }
12264
12383
 
@@ -12319,9 +12438,16 @@ declare namespace io.flow.order.management.v0.models {
12319
12438
  readonly line_number?: string;
12320
12439
  readonly quantity: number;
12321
12440
  }
12441
+
12442
+ interface OrderPlacedDetails {
12443
+ readonly id: string;
12444
+ readonly order: io.flow.experience.v0.models.Order;
12445
+ readonly allocation: io.flow.experience.v0.models.AllocationV2;
12446
+ }
12322
12447
  }
12323
12448
 
12324
12449
  declare namespace io.flow.internal.v0.enums {
12450
+ type AddressConfigurationSettingProvinceCode = 'iso_3166_2' | 'name';
12325
12451
  type BillingAllocationKey =
12326
12452
  | 'freight_cost'
12327
12453
  | 'adjustment'
@@ -12385,14 +12511,15 @@ declare namespace io.flow.internal.v0.enums {
12385
12511
  | 'url_invalid'
12386
12512
  | 'organization_invalid'
12387
12513
  | 'session_invalid'
12514
+ | 'session_missing'
12388
12515
  | 'session_organization_invalid'
12389
12516
  | 'country_invalid'
12390
12517
  | 'currency_invalid'
12391
- | 'language_invalid';
12518
+ | 'language_invalid'
12519
+ | 'checkout_invalid';
12392
12520
  type CheckoutPromptBehavior = 'always' | 'incomplete';
12521
+ type CheckoutRedirectMethod = 'get' | 'post';
12393
12522
  type CheckoutShippingMethodPromptBehavior = 'always' | 'multiple';
12394
- type ClassificationAction = 'ACCEPT' | 'MANUAL' | 'REJECT';
12395
- type ClassificationStatus = 'unclassified' | 'suggested' | 'classified';
12396
12523
  type ContentElementType = 'markdown' | 'html' | 'plain_text' | 'href';
12397
12524
  type ContentStatus = 'draft' | 'live' | 'archived';
12398
12525
  type ContentType = 'text' | 'html';
@@ -12424,8 +12551,6 @@ declare namespace io.flow.internal.v0.enums {
12424
12551
  | 'catalog_item_region_availabilities_published'
12425
12552
  | 'checkout_configuration_upserted'
12426
12553
  | 'checkout_configuration_deleted'
12427
- | 'product_classification_upserted'
12428
- | 'product_classification_deleted'
12429
12554
  | 'localized_content_upserted'
12430
12555
  | 'localization_upserted'
12431
12556
  | 'rate_deleted'
@@ -12460,6 +12585,10 @@ declare namespace io.flow.internal.v0.enums {
12460
12585
  | 'experiment_results_deleted'
12461
12586
  | 'export_completed'
12462
12587
  | 'export_failed'
12588
+ | 'feature_upserted'
12589
+ | 'feature_deleted'
12590
+ | 'organization_boolean_value_upserted'
12591
+ | 'organization_boolean_value_deleted'
12463
12592
  | 'fraud_review_upserted'
12464
12593
  | 'fraud_review_deleted'
12465
12594
  | 'fraud_pending_review_upserted'
@@ -12483,6 +12612,7 @@ declare namespace io.flow.internal.v0.enums {
12483
12612
  | 'harmonization_phrase_suggestion_request_import'
12484
12613
  | 'harmonization_codes_import'
12485
12614
  | 'customs_description_sugestion_created'
12615
+ | 'product_classification_created'
12486
12616
  | 'harmonize_fully_with_rate'
12487
12617
  | 'item_harmonized'
12488
12618
  | 'harmonize_fully_request'
@@ -12709,7 +12839,7 @@ declare namespace io.flow.internal.v0.models {
12709
12839
  readonly currency: string;
12710
12840
  readonly updated_at: string;
12711
12841
  readonly timezone: io.flow.reference.v0.models.Timezone;
12712
- readonly payment_schedule: unknown;
12842
+ readonly payment_schedule: io.flow.common.v0.unions.RepeatSchedule;
12713
12843
  readonly payment_conditions?: string;
12714
12844
  readonly deposit_rule?: io.flow.internal.v0.models.AccountDepositRule;
12715
12845
  readonly statistics: io.flow.internal.v0.models.AccountStatistics;
@@ -12767,7 +12897,7 @@ declare namespace io.flow.internal.v0.models {
12767
12897
 
12768
12898
  interface AccountPutForm {
12769
12899
  readonly timezone: string;
12770
- readonly payment_schedule: unknown;
12900
+ readonly payment_schedule: io.flow.common.v0.unions.RepeatSchedule;
12771
12901
  readonly payment_conditions: string;
12772
12902
  readonly deposit_rule?: io.flow.billing.v0.models.AccountDepositRuleForm;
12773
12903
  }
@@ -12810,6 +12940,19 @@ declare namespace io.flow.internal.v0.models {
12810
12940
  readonly quantity: number;
12811
12941
  }
12812
12942
 
12943
+ interface AddressConfigurationProvinceSetting {
12944
+ readonly code: io.flow.internal.v0.enums.AddressConfigurationSettingProvinceCode;
12945
+ }
12946
+
12947
+ interface AddressConfigurationSetting {
12948
+ readonly id: string;
12949
+ readonly province: io.flow.internal.v0.models.AddressConfigurationProvinceSetting;
12950
+ }
12951
+
12952
+ interface AddressConfigurationSettingForm {
12953
+ readonly province_code: io.flow.internal.v0.enums.AddressConfigurationSettingProvinceCode;
12954
+ }
12955
+
12813
12956
  interface AdyenAuthenticationDataReference {
12814
12957
  readonly account_id: string;
12815
12958
  readonly merchant_account: string;
@@ -13569,7 +13712,7 @@ declare namespace io.flow.internal.v0.models {
13569
13712
  readonly address_configurations?: unknown[];
13570
13713
  readonly customer?: io.flow.customer.v0.models.Customer;
13571
13714
  readonly address_book?: io.flow.customer.v0.models.CustomerAddressBook;
13572
- readonly payment_sources?: unknown[];
13715
+ readonly payment_sources?: io.flow.payment.v0.unions.PaymentSource[];
13573
13716
  readonly customer_bundle?: io.flow.customer.v0.models.CustomerBundle;
13574
13717
  }
13575
13718
 
@@ -13626,6 +13769,7 @@ declare namespace io.flow.internal.v0.models {
13626
13769
  readonly code: io.flow.internal.v0.enums.CheckoutErrorCode;
13627
13770
  readonly messages: string[];
13628
13771
  readonly organization?: io.flow.common.v0.models.OrganizationReference;
13772
+ readonly redirect?: io.flow.internal.v0.models.CheckoutRedirect;
13629
13773
  }
13630
13774
 
13631
13775
  interface CheckoutFinalizeOrderForm {
@@ -13639,10 +13783,10 @@ declare namespace io.flow.internal.v0.models {
13639
13783
 
13640
13784
  interface CheckoutOrderForm {
13641
13785
  readonly organization: string;
13642
- readonly order: io.flow.experience.v0.models.OrderPutForm;
13786
+ readonly order: io.flow.experience.v0.models.OrderForm;
13643
13787
  readonly customer?: io.flow.customer.v0.models.CustomerForm;
13644
13788
  readonly address_book?: io.flow.customer.v0.models.CustomerAddressBookForm;
13645
- readonly payment_sources?: unknown[];
13789
+ readonly payment_sources?: io.flow.payment.v0.unions.PaymentSourceForm[];
13646
13790
  readonly urls?: io.flow.checkout.v0.models.CheckoutUrlsForm;
13647
13791
  readonly identifiers?: unknown[];
13648
13792
  readonly feature_keys?: string[];
@@ -13654,7 +13798,7 @@ declare namespace io.flow.internal.v0.models {
13654
13798
  readonly order_number: string;
13655
13799
  readonly customer?: io.flow.customer.v0.models.CustomerForm;
13656
13800
  readonly address_book?: io.flow.customer.v0.models.CustomerAddressBookForm;
13657
- readonly payment_sources?: unknown[];
13801
+ readonly payment_sources?: io.flow.payment.v0.unions.PaymentSourceForm[];
13658
13802
  readonly urls?: io.flow.checkout.v0.models.CheckoutUrlsForm;
13659
13803
  readonly identifiers?: unknown[];
13660
13804
  readonly feature_keys?: string[];
@@ -13663,10 +13807,11 @@ declare namespace io.flow.internal.v0.models {
13663
13807
 
13664
13808
  interface CheckoutPayment {
13665
13809
  readonly authorizations: io.flow.payment.v0.unions.Authorization[];
13666
- readonly sources: unknown[];
13810
+ readonly sources: io.flow.payment.v0.unions.PaymentSource[];
13667
13811
  readonly public_key: io.flow.payment.v0.models.PublicKey;
13668
13812
  readonly method_types: io.flow.reference.v0.enums.PaymentMethodType[];
13669
13813
  readonly method_rules: io.flow.experience.v0.models.PaymentMethodRule[];
13814
+ readonly authorization_parameters: io.flow.payment.internal.v0.models.AuthorizationParameters[];
13670
13815
  }
13671
13816
 
13672
13817
  interface CheckoutPaymentContent {
@@ -13674,6 +13819,12 @@ declare namespace io.flow.internal.v0.models {
13674
13819
  readonly paypal?: io.flow.internal.v0.models.ApmContent;
13675
13820
  }
13676
13821
 
13822
+ interface CheckoutRedirect {
13823
+ readonly method: io.flow.internal.v0.enums.CheckoutRedirectMethod;
13824
+ readonly url: string;
13825
+ readonly body?: string;
13826
+ }
13827
+
13677
13828
  interface CheckoutReferenceForm {
13678
13829
  readonly order_number: string;
13679
13830
  readonly order_form: io.flow.experience.v0.models.OrderPutForm;
@@ -13781,66 +13932,6 @@ declare namespace io.flow.internal.v0.models {
13781
13932
  readonly next_cursor?: string;
13782
13933
  }
13783
13934
 
13784
- interface ClassificationRequest {
13785
- readonly organization_id: string;
13786
- readonly product_id: string;
13787
- readonly classification_model_id?: string;
13788
- readonly classification: string;
13789
- readonly action: io.flow.internal.v0.enums.ClassificationAction;
13790
- }
13791
-
13792
- interface ClassificationResult {
13793
- readonly classified_task: io.flow.internal.v0.models.ClassifiedTask;
13794
- readonly next_task?: io.flow.internal.v0.models.ClassificationTaskId;
13795
- }
13796
-
13797
- interface ClassificationSuggestion {
13798
- readonly model_id: string;
13799
- readonly suggestion: string;
13800
- readonly value: number;
13801
- }
13802
-
13803
- interface ClassificationTask {
13804
- readonly organization_id: string;
13805
- readonly product_id?: string;
13806
- readonly description: string;
13807
- readonly items: io.flow.internal.v0.models.ClassificationTaskItem[];
13808
- readonly images: string[];
13809
- readonly categories: string[];
13810
- readonly attributes: {
13811
- [key: string]: string;
13812
- };
13813
- readonly next_task?: io.flow.internal.v0.models.ClassificationTaskId;
13814
- }
13815
-
13816
- interface ClassificationTaskId {
13817
- readonly organization_id: string;
13818
- readonly product_id: string;
13819
- }
13820
-
13821
- interface ClassificationTaskItem {
13822
- readonly id: string;
13823
- readonly organization_id: string;
13824
- readonly item_number: string;
13825
- readonly name: string;
13826
- readonly description: string;
13827
- readonly status: io.flow.internal.v0.enums.ClassificationStatus;
13828
- readonly suggestions: io.flow.internal.v0.models.ClassificationSuggestion[];
13829
- }
13830
-
13831
- interface ClassificationTaskPage {
13832
- readonly page: io.flow.internal.v0.models.ClassificationTaskSummary[];
13833
- readonly next_cursor?: string;
13834
- }
13835
-
13836
- interface ClassificationTaskSummary {
13837
- readonly product_id: string;
13838
- readonly organization_id: string;
13839
- readonly description: string;
13840
- readonly status: io.flow.internal.v0.enums.ClassificationStatus;
13841
- readonly suggestion_count: number;
13842
- }
13843
-
13844
13935
  interface ClassifiedProduct {
13845
13936
  readonly product_id: string;
13846
13937
  readonly organization_id: string;
@@ -13848,13 +13939,6 @@ declare namespace io.flow.internal.v0.models {
13848
13939
  readonly classification_model_id: string;
13849
13940
  }
13850
13941
 
13851
- interface ClassifiedTask {
13852
- readonly product_id: string;
13853
- readonly organization_id: string;
13854
- readonly classification: string;
13855
- readonly classification_model_id: string;
13856
- }
13857
-
13858
13942
  interface CompletePriceRule {
13859
13943
  readonly price_rule: io.flow.shopify.external.v0.models.PriceRule;
13860
13944
  readonly discount_codes: io.flow.shopify.external.v0.models.PriceRuleDiscountCode[];
@@ -14373,6 +14457,13 @@ declare namespace io.flow.internal.v0.models {
14373
14457
  readonly geo?: io.flow.internal.v0.models.FeatureGeoForm;
14374
14458
  }
14375
14459
 
14460
+ interface FeatureDeleted {
14461
+ readonly event_id: string;
14462
+ readonly timestamp: string;
14463
+ readonly organization: string;
14464
+ readonly feature: io.flow.feature.v0.models.Feature;
14465
+ }
14466
+
14376
14467
  interface FeatureForm {
14377
14468
  readonly name: string;
14378
14469
  readonly description?: string;
@@ -14390,6 +14481,10 @@ declare namespace io.flow.internal.v0.models {
14390
14481
  readonly region?: string;
14391
14482
  }
14392
14483
 
14484
+ interface FeatureIdReference {
14485
+ readonly id: string;
14486
+ }
14487
+
14393
14488
  interface FeatureReference {
14394
14489
  readonly id: string;
14395
14490
  readonly key: string;
@@ -14403,6 +14498,21 @@ declare namespace io.flow.internal.v0.models {
14403
14498
  readonly status: io.flow.internal.v0.enums.FeatureStatus;
14404
14499
  }
14405
14500
 
14501
+ interface FeatureTaskDataSyncFeature {
14502
+ readonly feature_id: string;
14503
+ }
14504
+
14505
+ interface FeatureTaskDataSyncOrganization {
14506
+ readonly organization_id: string;
14507
+ }
14508
+
14509
+ interface FeatureUpserted {
14510
+ readonly event_id: string;
14511
+ readonly timestamp: string;
14512
+ readonly organization: string;
14513
+ readonly feature: io.flow.feature.v0.models.Feature;
14514
+ }
14515
+
14406
14516
  interface FeatureValueForm {
14407
14517
  readonly feature_query: string;
14408
14518
  readonly context: io.flow.internal.v0.models.FeatureContextForm;
@@ -14967,7 +15077,7 @@ declare namespace io.flow.internal.v0.models {
14967
15077
 
14968
15078
  interface InternalOrder {
14969
15079
  readonly order: io.flow.experience.v0.models.Order;
14970
- readonly session?: unknown;
15080
+ readonly session?: io.flow.common.v0.models.SessionReference;
14971
15081
  readonly rates: io.flow.currency.internal.v0.models.RateDataV3[];
14972
15082
  }
14973
15083
 
@@ -14984,6 +15094,10 @@ declare namespace io.flow.internal.v0.models {
14984
15094
  readonly stripe_authentication_data: io.flow.internal.v0.models.StripeAuthenticationDataReference;
14985
15095
  }
14986
15096
 
15097
+ interface InvalidCheckoutData {
15098
+ readonly order: io.flow.experience.v0.models.OrderPutForm;
15099
+ }
15100
+
14987
15101
  interface Invoice {
14988
15102
  readonly id: string;
14989
15103
  readonly number: string;
@@ -15231,6 +15345,11 @@ declare namespace io.flow.internal.v0.models {
15231
15345
  readonly value: string;
15232
15346
  }
15233
15347
 
15348
+ interface LabelProbability {
15349
+ readonly label: string;
15350
+ readonly probability: number;
15351
+ }
15352
+
15234
15353
  interface LabelSummary {
15235
15354
  readonly commercial_invoice?: string;
15236
15355
  readonly pdf?: string;
@@ -16128,6 +16247,25 @@ declare namespace io.flow.internal.v0.models {
16128
16247
  readonly authorization?: io.flow.payment.v0.unions.AuthorizationForm;
16129
16248
  }
16130
16249
 
16250
+ interface OrganizationBooleanValue {
16251
+ readonly id: string;
16252
+ readonly organization: io.flow.common.v0.models.OrganizationReference;
16253
+ readonly feature: io.flow.internal.v0.models.FeatureIdReference;
16254
+ readonly value: boolean;
16255
+ }
16256
+
16257
+ interface OrganizationBooleanValueDeleted {
16258
+ readonly event_id: string;
16259
+ readonly timestamp: string;
16260
+ readonly value: io.flow.internal.v0.models.OrganizationBooleanValue;
16261
+ }
16262
+
16263
+ interface OrganizationBooleanValueUpserted {
16264
+ readonly event_id: string;
16265
+ readonly timestamp: string;
16266
+ readonly value: io.flow.internal.v0.models.OrganizationBooleanValue;
16267
+ }
16268
+
16131
16269
  interface OrganizationCurrencySettings {
16132
16270
  readonly id: string;
16133
16271
  readonly organization: string;
@@ -16505,18 +16643,22 @@ declare namespace io.flow.internal.v0.models {
16505
16643
  }
16506
16644
 
16507
16645
  interface ProductClassification {
16508
- readonly customs_description: string;
16646
+ readonly material: io.flow.internal.v0.models.LabelProbability[];
16647
+ readonly gender: io.flow.internal.v0.models.LabelProbability[];
16648
+ readonly construction: io.flow.internal.v0.models.LabelProbability[];
16649
+ readonly product_type: io.flow.internal.v0.models.LabelProbability[];
16509
16650
  }
16510
16651
 
16511
- interface ProductClassificationDeleted {
16652
+ interface ProductClassificationCreated {
16512
16653
  readonly event_id: string;
16513
16654
  readonly timestamp: string;
16514
16655
  readonly organization: string;
16515
16656
  readonly product_id: string;
16657
+ readonly model_id: string;
16516
16658
  readonly classification: io.flow.internal.v0.models.ProductClassification;
16517
16659
  }
16518
16660
 
16519
- interface ProductClassificationForm {
16661
+ interface ProductClassificationJudgementForm {
16520
16662
  readonly organization_id: string;
16521
16663
  readonly product_id: string;
16522
16664
  readonly classification_model_id?: string;
@@ -16529,14 +16671,6 @@ declare namespace io.flow.internal.v0.models {
16529
16671
  readonly next_product?: io.flow.internal.v0.models.ClassificationProductId;
16530
16672
  }
16531
16673
 
16532
- interface ProductClassificationUpserted {
16533
- readonly event_id: string;
16534
- readonly timestamp: string;
16535
- readonly organization: string;
16536
- readonly product_id: string;
16537
- readonly classification: io.flow.internal.v0.models.ProductClassification;
16538
- }
16539
-
16540
16674
  interface QuoteRequest {
16541
16675
  readonly id: string;
16542
16676
  readonly request_type: io.flow.internal.v0.enums.QuoteRequestType;
@@ -17643,12 +17777,6 @@ declare namespace io.flow.internal.v0.unions {
17643
17777
  | {
17644
17778
  discriminator: 'checkout_configuration_deleted';
17645
17779
  } & io.flow.internal.v0.models.CheckoutConfigurationDeleted
17646
- | {
17647
- discriminator: 'product_classification_upserted';
17648
- } & io.flow.internal.v0.models.ProductClassificationUpserted
17649
- | {
17650
- discriminator: 'product_classification_deleted';
17651
- } & io.flow.internal.v0.models.ProductClassificationDeleted
17652
17780
  | {
17653
17781
  discriminator: 'localized_content_upserted';
17654
17782
  } & io.flow.internal.v0.models.LocalizedContentUpserted
@@ -17751,6 +17879,18 @@ declare namespace io.flow.internal.v0.unions {
17751
17879
  | {
17752
17880
  discriminator: 'export_failed';
17753
17881
  } & io.flow.internal.v0.models.ExportFailed
17882
+ | {
17883
+ discriminator: 'feature_upserted';
17884
+ } & io.flow.internal.v0.models.FeatureUpserted
17885
+ | {
17886
+ discriminator: 'feature_deleted';
17887
+ } & io.flow.internal.v0.models.FeatureDeleted
17888
+ | {
17889
+ discriminator: 'organization_boolean_value_upserted';
17890
+ } & io.flow.internal.v0.models.OrganizationBooleanValueUpserted
17891
+ | {
17892
+ discriminator: 'organization_boolean_value_deleted';
17893
+ } & io.flow.internal.v0.models.OrganizationBooleanValueDeleted
17754
17894
  | {
17755
17895
  discriminator: 'fraud_review_upserted';
17756
17896
  } & io.flow.internal.v0.models.FraudReviewUpserted
@@ -17820,6 +17960,9 @@ declare namespace io.flow.internal.v0.unions {
17820
17960
  | {
17821
17961
  discriminator: 'customs_description_sugestion_created';
17822
17962
  } & io.flow.internal.v0.models.CustomsDescriptionSugestionCreated
17963
+ | {
17964
+ discriminator: 'product_classification_created';
17965
+ } & io.flow.internal.v0.models.ProductClassificationCreated
17823
17966
  | {
17824
17967
  discriminator: 'harmonize_fully_with_rate';
17825
17968
  } & io.flow.internal.v0.models.HarmonizeFullyWithRate
@@ -18054,6 +18197,14 @@ declare namespace io.flow.internal.v0.unions {
18054
18197
  discriminator: 'string';
18055
18198
  } & io.flow.internal.v0.models.StringFeatureRuleForm;
18056
18199
 
18200
+ type FeatureTaskData =
18201
+ | {
18202
+ discriminator: 'feature_task_data_sync_feature';
18203
+ } & io.flow.internal.v0.models.FeatureTaskDataSyncFeature
18204
+ | {
18205
+ discriminator: 'feature_task_data_sync_organization';
18206
+ } & io.flow.internal.v0.models.FeatureTaskDataSyncOrganization;
18207
+
18057
18208
  type FeatureValue =
18058
18209
  | {
18059
18210
  discriminator: 'boolean';
@@ -18356,6 +18507,10 @@ export type AccountReference = io.flow.internal.v0.models.AccountReference;
18356
18507
  export type AccountStatistics = io.flow.internal.v0.models.AccountStatistics;
18357
18508
  export type AccountTransactionsExportRequest = io.flow.internal.v0.models.AccountTransactionsExportRequest;
18358
18509
  export type ActionQuantity = io.flow.internal.v0.models.ActionQuantity;
18510
+ export type AddressConfigurationProvinceSetting = io.flow.internal.v0.models.AddressConfigurationProvinceSetting;
18511
+ export type AddressConfigurationSetting = io.flow.internal.v0.models.AddressConfigurationSetting;
18512
+ export type AddressConfigurationSettingForm = io.flow.internal.v0.models.AddressConfigurationSettingForm;
18513
+ export type AddressConfigurationSettingProvinceCode = io.flow.internal.v0.enums.AddressConfigurationSettingProvinceCode;
18359
18514
  export type AdyenAuthenticationDataReference = io.flow.internal.v0.models.AdyenAuthenticationDataReference;
18360
18515
  export type AdyenAuthorizationDeleted = io.flow.internal.v0.models.AdyenAuthorizationDeleted;
18361
18516
  export type AdyenAuthorizationUpserted = io.flow.internal.v0.models.AdyenAuthorizationUpserted;
@@ -18493,6 +18648,8 @@ export type CheckoutOrderNumberForm = io.flow.internal.v0.models.CheckoutOrderNu
18493
18648
  export type CheckoutPayment = io.flow.internal.v0.models.CheckoutPayment;
18494
18649
  export type CheckoutPaymentContent = io.flow.internal.v0.models.CheckoutPaymentContent;
18495
18650
  export type CheckoutPromptBehavior = io.flow.internal.v0.enums.CheckoutPromptBehavior;
18651
+ export type CheckoutRedirect = io.flow.internal.v0.models.CheckoutRedirect;
18652
+ export type CheckoutRedirectMethod = io.flow.internal.v0.enums.CheckoutRedirectMethod;
18496
18653
  export type CheckoutReferenceForm = io.flow.internal.v0.models.CheckoutReferenceForm;
18497
18654
  export type CheckoutSettings = io.flow.internal.v0.models.CheckoutSettings;
18498
18655
  export type CheckoutShippingMethodPromptBehavior = io.flow.internal.v0.enums.CheckoutShippingMethodPromptBehavior;
@@ -18507,23 +18664,12 @@ export type Cipher = io.flow.internal.v0.models.Cipher;
18507
18664
  export type CipherForm = io.flow.internal.v0.models.CipherForm;
18508
18665
  export type CipherReference = io.flow.internal.v0.models.CipherReference;
18509
18666
  export type ClassicPaymentRedirectForm = io.flow.internal.v0.models.ClassicPaymentRedirectForm;
18510
- export type ClassificationAction = io.flow.internal.v0.enums.ClassificationAction;
18511
18667
  export type ClassificationItem = io.flow.internal.v0.models.ClassificationItem;
18512
18668
  export type ClassificationProduct = io.flow.internal.v0.models.ClassificationProduct;
18513
18669
  export type ClassificationProductId = io.flow.internal.v0.models.ClassificationProductId;
18514
18670
  export type ClassificationProductSummary = io.flow.internal.v0.models.ClassificationProductSummary;
18515
18671
  export type ClassificationProductSummaryPage = io.flow.internal.v0.models.ClassificationProductSummaryPage;
18516
- export type ClassificationRequest = io.flow.internal.v0.models.ClassificationRequest;
18517
- export type ClassificationResult = io.flow.internal.v0.models.ClassificationResult;
18518
- export type ClassificationStatus = io.flow.internal.v0.enums.ClassificationStatus;
18519
- export type ClassificationSuggestion = io.flow.internal.v0.models.ClassificationSuggestion;
18520
- export type ClassificationTask = io.flow.internal.v0.models.ClassificationTask;
18521
- export type ClassificationTaskId = io.flow.internal.v0.models.ClassificationTaskId;
18522
- export type ClassificationTaskItem = io.flow.internal.v0.models.ClassificationTaskItem;
18523
- export type ClassificationTaskPage = io.flow.internal.v0.models.ClassificationTaskPage;
18524
- export type ClassificationTaskSummary = io.flow.internal.v0.models.ClassificationTaskSummary;
18525
18672
  export type ClassifiedProduct = io.flow.internal.v0.models.ClassifiedProduct;
18526
- export type ClassifiedTask = io.flow.internal.v0.models.ClassifiedTask;
18527
18673
  export type CompletePriceRule = io.flow.internal.v0.models.CompletePriceRule;
18528
18674
  export type Components = io.flow.internal.v0.models.Components;
18529
18675
  export type ConsumerOptinActivity = io.flow.internal.v0.models.ConsumerOptinActivity;
@@ -18620,8 +18766,10 @@ export type ExternalVariant = io.flow.internal.v0.models.ExternalVariant;
18620
18766
  export type Feature = io.flow.internal.v0.models.Feature;
18621
18767
  export type FeatureContextForm = io.flow.internal.v0.models.FeatureContextForm;
18622
18768
  export type FeatureDefaultValue = io.flow.internal.v0.unions.FeatureDefaultValue;
18769
+ export type FeatureDeleted = io.flow.internal.v0.models.FeatureDeleted;
18623
18770
  export type FeatureForm = io.flow.internal.v0.models.FeatureForm;
18624
18771
  export type FeatureGeoForm = io.flow.internal.v0.models.FeatureGeoForm;
18772
+ export type FeatureIdReference = io.flow.internal.v0.models.FeatureIdReference;
18625
18773
  export type FeatureReference = io.flow.internal.v0.models.FeatureReference;
18626
18774
  export type FeatureReleaseForm = io.flow.internal.v0.models.FeatureReleaseForm;
18627
18775
  export type FeatureRule = io.flow.internal.v0.unions.FeatureRule;
@@ -18629,7 +18777,11 @@ export type FeatureRuleForm = io.flow.internal.v0.unions.FeatureRuleForm;
18629
18777
  export type FeatureScope = io.flow.internal.v0.enums.FeatureScope;
18630
18778
  export type FeatureStatus = io.flow.internal.v0.enums.FeatureStatus;
18631
18779
  export type FeatureStatusForm = io.flow.internal.v0.models.FeatureStatusForm;
18780
+ export type FeatureTaskData = io.flow.internal.v0.unions.FeatureTaskData;
18781
+ export type FeatureTaskDataSyncFeature = io.flow.internal.v0.models.FeatureTaskDataSyncFeature;
18782
+ export type FeatureTaskDataSyncOrganization = io.flow.internal.v0.models.FeatureTaskDataSyncOrganization;
18632
18783
  export type FeatureType = io.flow.internal.v0.enums.FeatureType;
18784
+ export type FeatureUpserted = io.flow.internal.v0.models.FeatureUpserted;
18633
18785
  export type FeatureValue = io.flow.internal.v0.unions.FeatureValue;
18634
18786
  export type FeatureValueForm = io.flow.internal.v0.models.FeatureValueForm;
18635
18787
  export type FeatureValueResult = io.flow.internal.v0.models.FeatureValueResult;
@@ -18742,6 +18894,7 @@ export type InternalPaypalAuthorizationDetails = io.flow.internal.v0.models.Inte
18742
18894
  export type InternalRedirectAuthorizationDetails = io.flow.internal.v0.models.InternalRedirectAuthorizationDetails;
18743
18895
  export type InternalRefundForm = io.flow.internal.v0.unions.InternalRefundForm;
18744
18896
  export type InternalStripeAuthorizationDetails = io.flow.internal.v0.models.InternalStripeAuthorizationDetails;
18897
+ export type InvalidCheckoutData = io.flow.internal.v0.models.InvalidCheckoutData;
18745
18898
  export type Invoice = io.flow.internal.v0.models.Invoice;
18746
18899
  export type InvoiceLine = io.flow.internal.v0.models.InvoiceLine;
18747
18900
  export type InvoiceTransaction = io.flow.internal.v0.models.InvoiceTransaction;
@@ -18778,6 +18931,7 @@ export type Key = io.flow.internal.v0.models.Key;
18778
18931
  export type KeyReference = io.flow.internal.v0.models.KeyReference;
18779
18932
  export type Label = io.flow.internal.v0.models.Label;
18780
18933
  export type LabelBillingStrategy = io.flow.internal.v0.enums.LabelBillingStrategy;
18934
+ export type LabelProbability = io.flow.internal.v0.models.LabelProbability;
18781
18935
  export type LabelSummary = io.flow.internal.v0.models.LabelSummary;
18782
18936
  export type LabeledContent = io.flow.internal.v0.models.LabeledContent;
18783
18937
  export type LandedCostExport = io.flow.internal.v0.models.LandedCostExport;
@@ -18931,6 +19085,9 @@ export type OrderRevenueTimelineDataPoint = io.flow.internal.v0.models.OrderReve
18931
19085
  export type OrderServiceChangeCsvForm = io.flow.internal.v0.models.OrderServiceChangeCsvForm;
18932
19086
  export type OrderShipped = io.flow.internal.v0.models.OrderShipped;
18933
19087
  export type OrderSubmissionForm = io.flow.internal.v0.models.OrderSubmissionForm;
19088
+ export type OrganizationBooleanValue = io.flow.internal.v0.models.OrganizationBooleanValue;
19089
+ export type OrganizationBooleanValueDeleted = io.flow.internal.v0.models.OrganizationBooleanValueDeleted;
19090
+ export type OrganizationBooleanValueUpserted = io.flow.internal.v0.models.OrganizationBooleanValueUpserted;
18934
19091
  export type OrganizationCurrencySettings = io.flow.internal.v0.models.OrganizationCurrencySettings;
18935
19092
  export type OrganizationCurrencySettingsDeleted = io.flow.internal.v0.models.OrganizationCurrencySettingsDeleted;
18936
19093
  export type OrganizationCurrencySettingsUpserted = io.flow.internal.v0.models.OrganizationCurrencySettingsUpserted;
@@ -18991,10 +19148,9 @@ export type ProcessingTransaction = io.flow.internal.v0.models.ProcessingTransac
18991
19148
  export type ProcessingTransactionType = io.flow.internal.v0.enums.ProcessingTransactionType;
18992
19149
  export type Processor = io.flow.internal.v0.enums.Processor;
18993
19150
  export type ProductClassification = io.flow.internal.v0.models.ProductClassification;
18994
- export type ProductClassificationDeleted = io.flow.internal.v0.models.ProductClassificationDeleted;
18995
- export type ProductClassificationForm = io.flow.internal.v0.models.ProductClassificationForm;
19151
+ export type ProductClassificationCreated = io.flow.internal.v0.models.ProductClassificationCreated;
19152
+ export type ProductClassificationJudgementForm = io.flow.internal.v0.models.ProductClassificationJudgementForm;
18996
19153
  export type ProductClassificationResult = io.flow.internal.v0.models.ProductClassificationResult;
18997
- export type ProductClassificationUpserted = io.flow.internal.v0.models.ProductClassificationUpserted;
18998
19154
  export type PromptAction = io.flow.internal.v0.enums.PromptAction;
18999
19155
  export type PromptCheckoutDisplayPosition = io.flow.internal.v0.enums.PromptCheckoutDisplayPosition;
19000
19156
  export type PromptOptions = io.flow.internal.v0.enums.PromptOptions;