@omni-commerce/sdk 0.20.1 → 0.21.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.
package/dist/index.d.cts CHANGED
@@ -971,6 +971,90 @@ interface paths {
971
971
  patch?: never;
972
972
  trace?: never;
973
973
  };
974
+ "/api/v1/catalog/operations": {
975
+ parameters: {
976
+ query?: never;
977
+ header?: never;
978
+ path?: never;
979
+ cookie?: never;
980
+ };
981
+ /**
982
+ * List Catalog Operations for Session
983
+ * @description Read the latest 20 compact catalog-operation summaries linked to an authorized session. Requires catalog:read; product data scope is rechecked.
984
+ */
985
+ get: operations["get_v1_catalog_operations"];
986
+ put?: never;
987
+ /**
988
+ * Start Catalog Operation
989
+ * @description Durable bulk price/cost updates for 1–2000 products or variants. Requires catalog:write. Identical duplicates collapse in requested order; conflicting duplicates fail. An idempotencyKey freezes the original targets and versions. Reusing it with changed input returns 409. expectedUpdatedAt guards reviewed values. Catalog cost never syncs to marketplaces. syncToMarketplaces queues existing canonical marketplace services for every applicable connected listing. A failed target does not stop other targets. The operation continues after the caller disconnects. Read aggregate status, then page failures through bulk.results. Optional sessionId links progress to the initiating user's existing session.
990
+ */
991
+ post: operations["post_v1_catalog_operations"];
992
+ delete?: never;
993
+ options?: never;
994
+ head?: never;
995
+ patch?: never;
996
+ trace?: never;
997
+ };
998
+ "/api/v1/catalog/operations/results": {
999
+ parameters: {
1000
+ query?: never;
1001
+ header?: never;
1002
+ path?: never;
1003
+ cookie?: never;
1004
+ };
1005
+ get?: never;
1006
+ put?: never;
1007
+ /**
1008
+ * Get Catalog Operation Results
1009
+ * @description Read ordered per-product receipts and verification evidence for up to 50 operationIds. Filter status=failed to inspect failures directly. At most 100 rows across the requested operations per page. Requires catalog:read.
1010
+ */
1011
+ post: operations["post_v1_catalog_operations_results"];
1012
+ delete?: never;
1013
+ options?: never;
1014
+ head?: never;
1015
+ patch?: never;
1016
+ trace?: never;
1017
+ };
1018
+ "/api/v1/catalog/operations/status": {
1019
+ parameters: {
1020
+ query?: never;
1021
+ header?: never;
1022
+ path?: never;
1023
+ cookie?: never;
1024
+ };
1025
+ get?: never;
1026
+ put?: never;
1027
+ /**
1028
+ * Get Catalog Operation Status
1029
+ * @description Read compact progress for up to 50 operationIds in first-requested order. Pending is incomplete, and partial failures remain explicit. Requires catalog:read. Detailed receipts are returned only by the paginated report API.
1030
+ */
1031
+ post: operations["post_v1_catalog_operations_status"];
1032
+ delete?: never;
1033
+ options?: never;
1034
+ head?: never;
1035
+ patch?: never;
1036
+ trace?: never;
1037
+ };
1038
+ "/api/v1/catalog/query": {
1039
+ parameters: {
1040
+ query?: never;
1041
+ header?: never;
1042
+ path?: never;
1043
+ cookie?: never;
1044
+ };
1045
+ get?: never;
1046
+ put?: never;
1047
+ /**
1048
+ * Query Catalog
1049
+ * @description Filter and project simple products and variants on the server. Requires catalog:read. Defaults to active sellable SKUs, excluding parent containers. costComparison=above_price compares known cost in each product's catalog currency using valid recorded conversions; unknown costs or unavailable conversions do not match. Fields bound the response. Maximum 500 rows per page. Omit counts after the first page with includeCount=false. No SQL input is accepted.
1050
+ */
1051
+ post: operations["post_v1_catalog_query"];
1052
+ delete?: never;
1053
+ options?: never;
1054
+ head?: never;
1055
+ patch?: never;
1056
+ trace?: never;
1057
+ };
974
1058
  "/api/v1/checkout-sessions": {
975
1059
  parameters: {
976
1060
  query?: never;
@@ -1115,6 +1199,26 @@ interface paths {
1115
1199
  patch?: never;
1116
1200
  trace?: never;
1117
1201
  };
1202
+ "/api/v1/commerce/state/verify/jobs": {
1203
+ parameters: {
1204
+ query?: never;
1205
+ header?: never;
1206
+ path?: never;
1207
+ cookie?: never;
1208
+ };
1209
+ get?: never;
1210
+ put?: never;
1211
+ /**
1212
+ * Start Commerce Verification
1213
+ * @description Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read. Returns immediately with operationIds. Read bulk.status and bulk.results; a client timeout does not discard work. Fulfillment correlations continue to use commerce.verifyState.
1214
+ */
1215
+ post: operations["post_v1_commerce_state_verify_jobs"];
1216
+ delete?: never;
1217
+ options?: never;
1218
+ head?: never;
1219
+ patch?: never;
1220
+ trace?: never;
1221
+ };
1118
1222
  "/api/v1/compare": {
1119
1223
  parameters: {
1120
1224
  query?: never;
@@ -13537,98 +13641,632 @@ interface operations {
13537
13641
  results: {
13538
13642
  index: number;
13539
13643
  success: boolean;
13540
- issues: {
13541
- path: (string | number)[];
13542
- message: string;
13644
+ issues: {
13645
+ path: (string | number)[];
13646
+ message: string;
13647
+ }[];
13648
+ campaignId?: string;
13649
+ revision?: number;
13650
+ pendingChangeVersion?: number;
13651
+ /** @enum {string} */
13652
+ stage?:
13653
+ | "draft"
13654
+ | "approved"
13655
+ | "running"
13656
+ | "ending"
13657
+ | "completed"
13658
+ | "archived";
13659
+ plan?: components["schemas"]["CampaignPlan"];
13660
+ shiftMs?: number;
13661
+ }[];
13662
+ };
13663
+ };
13664
+ };
13665
+ /** @description Invalid input or domain validation failed. */
13666
+ 400: {
13667
+ headers: {
13668
+ [name: string]: unknown;
13669
+ };
13670
+ content?: never;
13671
+ };
13672
+ /** @description Missing or expired credentials. */
13673
+ 401: {
13674
+ headers: {
13675
+ [name: string]: unknown;
13676
+ };
13677
+ content?: never;
13678
+ };
13679
+ /** @description Insufficient current organization, store, operation or OAuth permissions. */
13680
+ 403: {
13681
+ headers: {
13682
+ [name: string]: unknown;
13683
+ };
13684
+ content?: never;
13685
+ };
13686
+ };
13687
+ };
13688
+ get_v1_catalog_items: {
13689
+ parameters: {
13690
+ query?: {
13691
+ /** @description Optional organization scope for session-authenticated calls. OAuth client credentials resolve the organization from the token. */
13692
+ organizationId?: string;
13693
+ /** @description Inclusive item update lower bound for incremental exports. */
13694
+ updatedSince?: string;
13695
+ cursor?: string;
13696
+ limit?: number;
13697
+ /** @description Use csv for the documented catalog columns; omit for JSON. */
13698
+ format?: "json" | "csv";
13699
+ };
13700
+ header?: never;
13701
+ path?: never;
13702
+ cookie?: never;
13703
+ };
13704
+ requestBody?: never;
13705
+ responses: {
13706
+ /** @description Catalog page as JSON, or CSV with X-Has-More and X-Next-Cursor headers. */
13707
+ 200: {
13708
+ headers: {
13709
+ [name: string]: unknown;
13710
+ };
13711
+ content?: never;
13712
+ };
13713
+ /** @description Invalid cursor or updatedSince value. */
13714
+ 400: {
13715
+ headers: {
13716
+ [name: string]: unknown;
13717
+ };
13718
+ content?: never;
13719
+ };
13720
+ /** @description Unauthorized. */
13721
+ 401: {
13722
+ headers: {
13723
+ [name: string]: unknown;
13724
+ };
13725
+ content?: never;
13726
+ };
13727
+ /** @description Missing catalog:read scope. */
13728
+ 403: {
13729
+ headers: {
13730
+ [name: string]: unknown;
13731
+ };
13732
+ content?: never;
13733
+ };
13734
+ /** @description Internal server error. */
13735
+ 500: {
13736
+ headers: {
13737
+ [name: string]: unknown;
13738
+ };
13739
+ content?: never;
13740
+ };
13741
+ };
13742
+ };
13743
+ get_v1_catalog_operations: {
13744
+ parameters: {
13745
+ query: {
13746
+ organizationId?: string;
13747
+ sessionId: string;
13748
+ };
13749
+ header?: never;
13750
+ path?: never;
13751
+ cookie?: never;
13752
+ };
13753
+ requestBody?: never;
13754
+ responses: {
13755
+ /** @description Operation summaries */
13756
+ 200: {
13757
+ headers: {
13758
+ [name: string]: unknown;
13759
+ };
13760
+ content: {
13761
+ "application/json": {
13762
+ ok?: boolean;
13763
+ data?: {
13764
+ results: {
13765
+ operationId: string;
13766
+ /** @enum {string} */
13767
+ kind?: "update" | "verify";
13768
+ success: boolean;
13769
+ allTerminal: boolean;
13770
+ status: string;
13771
+ totalCount?: number;
13772
+ succeededCount?: number;
13773
+ failedCount?: number;
13774
+ pendingCount?: number;
13775
+ syncingCount?: number;
13776
+ verifiedCount?: number;
13777
+ verificationRequested?: boolean;
13778
+ phases?: {
13779
+ [key: string]: number;
13780
+ };
13781
+ updatedAt?: string;
13782
+ completedAt?: string | null;
13783
+ error?: string;
13784
+ report?: string;
13785
+ }[];
13786
+ };
13787
+ };
13788
+ };
13789
+ };
13790
+ /** @description Invalid session ID. */
13791
+ 400: {
13792
+ headers: {
13793
+ [name: string]: unknown;
13794
+ };
13795
+ content?: never;
13796
+ };
13797
+ /** @description Authentication required. */
13798
+ 401: {
13799
+ headers: {
13800
+ [name: string]: unknown;
13801
+ };
13802
+ content?: never;
13803
+ };
13804
+ /** @description Missing catalog:read or organization access. */
13805
+ 403: {
13806
+ headers: {
13807
+ [name: string]: unknown;
13808
+ };
13809
+ content?: never;
13810
+ };
13811
+ };
13812
+ };
13813
+ post_v1_catalog_operations: {
13814
+ parameters: {
13815
+ query?: never;
13816
+ header?: never;
13817
+ path?: never;
13818
+ cookie?: never;
13819
+ };
13820
+ requestBody: {
13821
+ content: {
13822
+ "application/json": {
13823
+ organizationId?: string;
13824
+ idempotencyKey: string;
13825
+ updates: {
13826
+ /** Format: uuid */
13827
+ productId: string;
13828
+ price?: number;
13829
+ salePrice?: number | null;
13830
+ currency?: string;
13831
+ costPrice?: number | null;
13832
+ costPriceCurrency?: string;
13833
+ /** Format: date-time */
13834
+ expectedUpdatedAt?: string;
13835
+ targets?: {
13836
+ /** @enum {string} */
13837
+ platform:
13838
+ | "shopee"
13839
+ | "lazada"
13840
+ | "tiktok"
13841
+ | "shopify"
13842
+ | "whatsapp"
13843
+ | "zalora"
13844
+ | "amazon"
13845
+ | "ebay";
13846
+ accountId: string;
13847
+ }[];
13848
+ }[];
13849
+ /** @default false */
13850
+ syncToMarketplaces?: boolean;
13851
+ /** @default true */
13852
+ verify?: boolean;
13853
+ /** Format: uuid */
13854
+ sessionId?: string;
13855
+ };
13856
+ };
13857
+ };
13858
+ responses: {
13859
+ /** @description Durable operation accepted; completion and verification remain pending. */
13860
+ 202: {
13861
+ headers: {
13862
+ [name: string]: unknown;
13863
+ };
13864
+ content: {
13865
+ "application/json": {
13866
+ ok: boolean;
13867
+ apiVersion?: string;
13868
+ operationId?: string;
13869
+ status?: string;
13870
+ data: {
13871
+ queued: boolean;
13872
+ operationIds: string[];
13873
+ productIds: string[];
13874
+ operation: {
13875
+ operationId: string;
13876
+ /** @enum {string} */
13877
+ kind?: "update" | "verify";
13878
+ success: boolean;
13879
+ allTerminal: boolean;
13880
+ status: string;
13881
+ totalCount?: number;
13882
+ succeededCount?: number;
13883
+ failedCount?: number;
13884
+ pendingCount?: number;
13885
+ syncingCount?: number;
13886
+ verifiedCount?: number;
13887
+ verificationRequested?: boolean;
13888
+ phases?: {
13889
+ [key: string]: number;
13890
+ };
13891
+ updatedAt?: string;
13892
+ completedAt?: string | null;
13893
+ error?: string;
13894
+ report?: string;
13895
+ };
13896
+ };
13897
+ };
13898
+ };
13899
+ };
13900
+ /** @description Invalid request. */
13901
+ 400: {
13902
+ headers: {
13903
+ [name: string]: unknown;
13904
+ };
13905
+ content?: never;
13906
+ };
13907
+ /** @description Authentication required. */
13908
+ 401: {
13909
+ headers: {
13910
+ [name: string]: unknown;
13911
+ };
13912
+ content?: never;
13913
+ };
13914
+ /** @description Missing capability or organization/product access. */
13915
+ 403: {
13916
+ headers: {
13917
+ [name: string]: unknown;
13918
+ };
13919
+ content?: never;
13920
+ };
13921
+ /** @description Idempotency key reused with different input. */
13922
+ 409: {
13923
+ headers: {
13924
+ [name: string]: unknown;
13925
+ };
13926
+ content?: never;
13927
+ };
13928
+ /** @description Temporarily unavailable. Retry the same idempotency key. */
13929
+ 503: {
13930
+ headers: {
13931
+ [name: string]: unknown;
13932
+ };
13933
+ content?: never;
13934
+ };
13935
+ };
13936
+ };
13937
+ post_v1_catalog_operations_results: {
13938
+ parameters: {
13939
+ query?: never;
13940
+ header?: never;
13941
+ path?: never;
13942
+ cookie?: never;
13943
+ };
13944
+ requestBody: {
13945
+ content: {
13946
+ "application/json": {
13947
+ organizationId?: string;
13948
+ operationIds: string[];
13949
+ /** @enum {string} */
13950
+ status?: "succeeded" | "failed" | "pending";
13951
+ /** @default 0 */
13952
+ cursor?: number;
13953
+ /** @default 25 */
13954
+ limit?: number;
13955
+ };
13956
+ };
13957
+ };
13958
+ responses: {
13959
+ /** @description Result */
13960
+ 200: {
13961
+ headers: {
13962
+ [name: string]: unknown;
13963
+ };
13964
+ content: {
13965
+ "application/json": {
13966
+ ok: boolean;
13967
+ apiVersion?: string;
13968
+ operationId?: string;
13969
+ status?: string;
13970
+ data: {
13971
+ operationIds: string[];
13972
+ hasMore: boolean;
13973
+ nextCursor: number | null;
13974
+ results: {
13975
+ [key: string]: unknown;
13976
+ }[];
13977
+ };
13978
+ };
13979
+ };
13980
+ };
13981
+ /** @description Invalid request. */
13982
+ 400: {
13983
+ headers: {
13984
+ [name: string]: unknown;
13985
+ };
13986
+ content?: never;
13987
+ };
13988
+ /** @description Authentication required. */
13989
+ 401: {
13990
+ headers: {
13991
+ [name: string]: unknown;
13992
+ };
13993
+ content?: never;
13994
+ };
13995
+ /** @description Missing capability or organization/product access. */
13996
+ 403: {
13997
+ headers: {
13998
+ [name: string]: unknown;
13999
+ };
14000
+ content?: never;
14001
+ };
14002
+ /** @description Idempotency key reused with different input. */
14003
+ 409: {
14004
+ headers: {
14005
+ [name: string]: unknown;
14006
+ };
14007
+ content?: never;
14008
+ };
14009
+ /** @description Temporarily unavailable. Retry the same idempotency key. */
14010
+ 503: {
14011
+ headers: {
14012
+ [name: string]: unknown;
14013
+ };
14014
+ content?: never;
14015
+ };
14016
+ };
14017
+ };
14018
+ post_v1_catalog_operations_status: {
14019
+ parameters: {
14020
+ query?: never;
14021
+ header?: never;
14022
+ path?: never;
14023
+ cookie?: never;
14024
+ };
14025
+ requestBody: {
14026
+ content: {
14027
+ "application/json": {
14028
+ organizationId?: string;
14029
+ operationIds: string[];
14030
+ };
14031
+ };
14032
+ };
14033
+ responses: {
14034
+ /** @description Result */
14035
+ 200: {
14036
+ headers: {
14037
+ [name: string]: unknown;
14038
+ };
14039
+ content: {
14040
+ "application/json": {
14041
+ ok: boolean;
14042
+ apiVersion?: string;
14043
+ operationId?: string;
14044
+ status?: string;
14045
+ data: {
14046
+ success: boolean;
14047
+ operationIds: string[];
14048
+ allTerminal: boolean;
14049
+ succeededCount: number;
14050
+ failedCount: number;
14051
+ results: {
14052
+ operationId: string;
14053
+ /** @enum {string} */
14054
+ kind?: "update" | "verify";
14055
+ success: boolean;
14056
+ allTerminal: boolean;
14057
+ status: string;
14058
+ totalCount?: number;
14059
+ succeededCount?: number;
14060
+ failedCount?: number;
14061
+ pendingCount?: number;
14062
+ syncingCount?: number;
14063
+ verifiedCount?: number;
14064
+ verificationRequested?: boolean;
14065
+ phases?: {
14066
+ [key: string]: number;
14067
+ };
14068
+ updatedAt?: string;
14069
+ completedAt?: string | null;
14070
+ error?: string;
14071
+ report?: string;
13543
14072
  }[];
13544
- campaignId?: string;
13545
- revision?: number;
13546
- pendingChangeVersion?: number;
13547
- /** @enum {string} */
13548
- stage?:
13549
- | "draft"
13550
- | "approved"
13551
- | "running"
13552
- | "ending"
13553
- | "completed"
13554
- | "archived";
13555
- plan?: components["schemas"]["CampaignPlan"];
13556
- shiftMs?: number;
13557
- }[];
14073
+ };
13558
14074
  };
13559
14075
  };
13560
14076
  };
13561
- /** @description Invalid input or domain validation failed. */
14077
+ /** @description Invalid request. */
13562
14078
  400: {
13563
14079
  headers: {
13564
14080
  [name: string]: unknown;
13565
14081
  };
13566
14082
  content?: never;
13567
14083
  };
13568
- /** @description Missing or expired credentials. */
14084
+ /** @description Authentication required. */
13569
14085
  401: {
13570
14086
  headers: {
13571
14087
  [name: string]: unknown;
13572
14088
  };
13573
14089
  content?: never;
13574
14090
  };
13575
- /** @description Insufficient current organization, store, operation or OAuth permissions. */
14091
+ /** @description Missing capability or organization/product access. */
13576
14092
  403: {
13577
14093
  headers: {
13578
14094
  [name: string]: unknown;
13579
14095
  };
13580
14096
  content?: never;
13581
14097
  };
14098
+ /** @description Idempotency key reused with different input. */
14099
+ 409: {
14100
+ headers: {
14101
+ [name: string]: unknown;
14102
+ };
14103
+ content?: never;
14104
+ };
14105
+ /** @description Temporarily unavailable. Retry the same idempotency key. */
14106
+ 503: {
14107
+ headers: {
14108
+ [name: string]: unknown;
14109
+ };
14110
+ content?: never;
14111
+ };
13582
14112
  };
13583
14113
  };
13584
- get_v1_catalog_items: {
14114
+ post_v1_catalog_query: {
13585
14115
  parameters: {
13586
- query?: {
13587
- /** @description Optional organization scope for session-authenticated calls. OAuth client credentials resolve the organization from the token. */
13588
- organizationId?: string;
13589
- /** @description Inclusive item update lower bound for incremental exports. */
13590
- updatedSince?: string;
13591
- cursor?: string;
13592
- limit?: number;
13593
- /** @description Use csv for the documented catalog columns; omit for JSON. */
13594
- format?: "json" | "csv";
13595
- };
14116
+ query?: never;
13596
14117
  header?: never;
13597
14118
  path?: never;
13598
14119
  cookie?: never;
13599
14120
  };
13600
- requestBody?: never;
14121
+ requestBody: {
14122
+ content: {
14123
+ "application/json": {
14124
+ organizationId?: string;
14125
+ /**
14126
+ * @default {
14127
+ * "statuses": [
14128
+ * "active"
14129
+ * ],
14130
+ * "sellableOnly": true
14131
+ * }
14132
+ */
14133
+ filters?: {
14134
+ /**
14135
+ * @default [
14136
+ * "active"
14137
+ * ]
14138
+ */
14139
+ statuses?: ("active" | "draft" | "archived")[];
14140
+ productIds?: string[];
14141
+ skus?: string[];
14142
+ currencies?: string[];
14143
+ /** @default true */
14144
+ sellableOnly?: boolean;
14145
+ /**
14146
+ * @description Compare known cost against catalog price in the catalog currency, using recorded valid cost conversions. Missing cost or conversion is excluded.
14147
+ * @constant
14148
+ */
14149
+ costComparison?: "above_price";
14150
+ };
14151
+ /**
14152
+ * @description Selected fields; id and the currency companions of monetary fields are always returned.
14153
+ * @default [
14154
+ * "id",
14155
+ * "parentId",
14156
+ * "type",
14157
+ * "name",
14158
+ * "sku",
14159
+ * "status",
14160
+ * "price",
14161
+ * "currency",
14162
+ * "cost",
14163
+ * "costCurrency",
14164
+ * "costInCatalogCurrency",
14165
+ * "costConversion",
14166
+ * "updatedAt"
14167
+ * ]
14168
+ */
14169
+ fields?: (
14170
+ | "id"
14171
+ | "parentId"
14172
+ | "type"
14173
+ | "name"
14174
+ | "sku"
14175
+ | "status"
14176
+ | "price"
14177
+ | "currency"
14178
+ | "cost"
14179
+ | "costCurrency"
14180
+ | "costInCatalogCurrency"
14181
+ | "costConversion"
14182
+ | "updatedAt"
14183
+ )[];
14184
+ /** @default 100 */
14185
+ limit?: number;
14186
+ cursor?: string;
14187
+ /** @default true */
14188
+ includeCount?: boolean;
14189
+ };
14190
+ };
14191
+ };
13601
14192
  responses: {
13602
- /** @description Catalog page as JSON, or CSV with X-Has-More and X-Next-Cursor headers. */
14193
+ /** @description Result */
13603
14194
  200: {
13604
14195
  headers: {
13605
14196
  [name: string]: unknown;
13606
14197
  };
13607
- content?: never;
14198
+ content: {
14199
+ "application/json": {
14200
+ ok: boolean;
14201
+ apiVersion?: string;
14202
+ operationId?: string;
14203
+ status?: string;
14204
+ data: {
14205
+ success: boolean;
14206
+ matchedCount: number | null;
14207
+ returnedCount: number;
14208
+ diagnostics: {
14209
+ missingCostCount: number;
14210
+ uncomparableCostCount: number;
14211
+ } | null;
14212
+ hasMore: boolean;
14213
+ nextCursor: string | null;
14214
+ filters: {
14215
+ [key: string]: unknown;
14216
+ };
14217
+ comparisonCurrency: string | null;
14218
+ items: {
14219
+ id: string;
14220
+ parentId?: string | null;
14221
+ /** @enum {string} */
14222
+ type?: "product" | "variant";
14223
+ name?: string;
14224
+ sku?: string | null;
14225
+ status?: string | null;
14226
+ price?: number | null;
14227
+ currency?: string | null;
14228
+ cost?: number | null;
14229
+ costCurrency?: string | null;
14230
+ costInCatalogCurrency?: number | null;
14231
+ costConversion?: {
14232
+ [key: string]: unknown;
14233
+ } | null;
14234
+ updatedAt?: string;
14235
+ }[];
14236
+ };
14237
+ };
14238
+ };
13608
14239
  };
13609
- /** @description Invalid cursor or updatedSince value. */
14240
+ /** @description Invalid request. */
13610
14241
  400: {
13611
14242
  headers: {
13612
14243
  [name: string]: unknown;
13613
14244
  };
13614
14245
  content?: never;
13615
14246
  };
13616
- /** @description Unauthorized. */
14247
+ /** @description Authentication required. */
13617
14248
  401: {
13618
14249
  headers: {
13619
14250
  [name: string]: unknown;
13620
14251
  };
13621
14252
  content?: never;
13622
14253
  };
13623
- /** @description Missing catalog:read scope. */
14254
+ /** @description Missing capability or organization/product access. */
13624
14255
  403: {
13625
14256
  headers: {
13626
14257
  [name: string]: unknown;
13627
14258
  };
13628
14259
  content?: never;
13629
14260
  };
13630
- /** @description Internal server error. */
13631
- 500: {
14261
+ /** @description Idempotency key reused with different input. */
14262
+ 409: {
14263
+ headers: {
14264
+ [name: string]: unknown;
14265
+ };
14266
+ content?: never;
14267
+ };
14268
+ /** @description Temporarily unavailable. Retry the same idempotency key. */
14269
+ 503: {
13632
14270
  headers: {
13633
14271
  [name: string]: unknown;
13634
14272
  };
@@ -14906,6 +15544,8 @@ interface operations {
14906
15544
  rootProductId?: string;
14907
15545
  verification: {
14908
15546
  ok: boolean;
15547
+ retryable?: boolean;
15548
+ currency?: string | null;
14909
15549
  target: string;
14910
15550
  evidence: string;
14911
15551
  action?: string;
@@ -15005,6 +15645,156 @@ interface operations {
15005
15645
  };
15006
15646
  };
15007
15647
  };
15648
+ post_v1_commerce_state_verify_jobs: {
15649
+ parameters: {
15650
+ query?: never;
15651
+ header?: never;
15652
+ path?: never;
15653
+ cookie?: never;
15654
+ };
15655
+ requestBody: {
15656
+ content: {
15657
+ "application/json": {
15658
+ organizationId?: string;
15659
+ idempotencyKey: string;
15660
+ verification: {
15661
+ /** @description Durable product verification does not accept job correlations; use commerce.verifyState for those. */
15662
+ correlations?: {
15663
+ /** @enum {string} */
15664
+ kind: "order_action" | "return_action" | "price_book_sync";
15665
+ /** Format: uuid */
15666
+ id: string;
15667
+ platform?: string;
15668
+ storeId?: string;
15669
+ productId?: string;
15670
+ productIds?: string[];
15671
+ externalIds?: string[];
15672
+ }[];
15673
+ /** @description Up to 2000 existing product or variant IDs. */
15674
+ productIds?: string[];
15675
+ /** @description Expected commerce state after a write (price, quantity, listingStatus, etc). */
15676
+ expected?: {
15677
+ price?: number;
15678
+ salePrice?: number | null;
15679
+ currency?: string;
15680
+ quantity?: number;
15681
+ /** @enum {string} */
15682
+ listingStatus?: "active" | "draft" | "unlisted" | "deleted";
15683
+ platforms?: string[];
15684
+ };
15685
+ /** @description Up to 2000 product targets with distinct expected states. Identical duplicates collapse; conflicting expectations fail. */
15686
+ targets?: {
15687
+ productId: string;
15688
+ expected: {
15689
+ price?: number;
15690
+ salePrice?: number | null;
15691
+ currency?: string;
15692
+ quantity?: number;
15693
+ /** @enum {string} */
15694
+ listingStatus?: "active" | "draft" | "unlisted" | "deleted";
15695
+ platforms?: string[];
15696
+ };
15697
+ }[];
15698
+ /**
15699
+ * @description Lifecycle action being verified. Use delete for Omni-only delete checks.
15700
+ * @enum {string}
15701
+ */
15702
+ action?:
15703
+ | "price"
15704
+ | "inventory"
15705
+ | "publish"
15706
+ | "update"
15707
+ | "delist"
15708
+ | "delete";
15709
+ /** @description Optional marketplace filter: shopee, lazada, tiktok, shopify, whatsapp, zalora, amazon, ebay. */
15710
+ platforms?: string[];
15711
+ /** @description Also assert Omni DB fields (default true). */
15712
+ includeOmni?: boolean;
15713
+ };
15714
+ /** Format: uuid */
15715
+ sessionId?: string;
15716
+ };
15717
+ };
15718
+ };
15719
+ responses: {
15720
+ /** @description Durable operation accepted; completion and verification remain pending. */
15721
+ 202: {
15722
+ headers: {
15723
+ [name: string]: unknown;
15724
+ };
15725
+ content: {
15726
+ "application/json": {
15727
+ ok: boolean;
15728
+ apiVersion?: string;
15729
+ operationId?: string;
15730
+ status?: string;
15731
+ data: {
15732
+ queued: boolean;
15733
+ operationIds: string[];
15734
+ productIds: string[];
15735
+ operation: {
15736
+ operationId: string;
15737
+ /** @enum {string} */
15738
+ kind?: "update" | "verify";
15739
+ success: boolean;
15740
+ allTerminal: boolean;
15741
+ status: string;
15742
+ totalCount?: number;
15743
+ succeededCount?: number;
15744
+ failedCount?: number;
15745
+ pendingCount?: number;
15746
+ syncingCount?: number;
15747
+ verifiedCount?: number;
15748
+ verificationRequested?: boolean;
15749
+ phases?: {
15750
+ [key: string]: number;
15751
+ };
15752
+ updatedAt?: string;
15753
+ completedAt?: string | null;
15754
+ error?: string;
15755
+ report?: string;
15756
+ };
15757
+ };
15758
+ };
15759
+ };
15760
+ };
15761
+ /** @description Invalid request. */
15762
+ 400: {
15763
+ headers: {
15764
+ [name: string]: unknown;
15765
+ };
15766
+ content?: never;
15767
+ };
15768
+ /** @description Authentication required. */
15769
+ 401: {
15770
+ headers: {
15771
+ [name: string]: unknown;
15772
+ };
15773
+ content?: never;
15774
+ };
15775
+ /** @description Missing capability or organization/product access. */
15776
+ 403: {
15777
+ headers: {
15778
+ [name: string]: unknown;
15779
+ };
15780
+ content?: never;
15781
+ };
15782
+ /** @description Idempotency key reused with different input. */
15783
+ 409: {
15784
+ headers: {
15785
+ [name: string]: unknown;
15786
+ };
15787
+ content?: never;
15788
+ };
15789
+ /** @description Temporarily unavailable. Retry the same idempotency key. */
15790
+ 503: {
15791
+ headers: {
15792
+ [name: string]: unknown;
15793
+ };
15794
+ content?: never;
15795
+ };
15796
+ };
15797
+ };
15008
15798
  get_v1_compare: {
15009
15799
  parameters: {
15010
15800
  query: {
@@ -29888,6 +30678,42 @@ declare class BrandsgatewayClient {
29888
30678
  */
29889
30679
  importProducts(request: OperationBody<operations["post_v1_brandsgateway_import"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_brandsgateway_import"]>>;
29890
30680
  }
30681
+ declare class BulkClient {
30682
+ protected readonly _http: OmniHttp;
30683
+ constructor(_http: OmniHttp);
30684
+ /**
30685
+ * List Catalog Operations for Session
30686
+ *
30687
+ * Read the latest 20 compact catalog-operation summaries linked to an authorized session. Requires catalog:read; product data scope is rechecked.
30688
+ *
30689
+ * `GET /api/v1/catalog/operations`
30690
+ */
30691
+ listForSession(request: OperationQuery<operations["get_v1_catalog_operations"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_catalog_operations"]>>;
30692
+ /**
30693
+ * Start Catalog Operation
30694
+ *
30695
+ * Durable bulk price/cost updates for 1–2000 products or variants. Requires catalog:write. Identical duplicates collapse in requested order; conflicting duplicates fail. An idempotencyKey freezes the original targets and versions. Reusing it with changed input returns 409. expectedUpdatedAt guards reviewed values. Catalog cost never syncs to marketplaces. syncToMarketplaces queues existing canonical marketplace services for every applicable connected listing. A failed target does not stop other targets. The operation continues after the caller disconnects. Read aggregate status, then page failures through bulk.results. Optional sessionId links progress to the initiating user's existing session.
30696
+ *
30697
+ * `POST /api/v1/catalog/operations`
30698
+ */
30699
+ start(request: OperationBody<operations["post_v1_catalog_operations"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_catalog_operations"]>>;
30700
+ /**
30701
+ * Get Catalog Operation Results
30702
+ *
30703
+ * Read ordered per-product receipts and verification evidence for up to 50 operationIds. Filter status=failed to inspect failures directly. At most 100 rows across the requested operations per page. Requires catalog:read.
30704
+ *
30705
+ * `POST /api/v1/catalog/operations/results`
30706
+ */
30707
+ results(request: OperationBody<operations["post_v1_catalog_operations_results"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_catalog_operations_results"]>>;
30708
+ /**
30709
+ * Get Catalog Operation Status
30710
+ *
30711
+ * Read compact progress for up to 50 operationIds in first-requested order. Pending is incomplete, and partial failures remain explicit. Requires catalog:read. Detailed receipts are returned only by the paginated report API.
30712
+ *
30713
+ * `POST /api/v1/catalog/operations/status`
30714
+ */
30715
+ status(request: OperationBody<operations["post_v1_catalog_operations_status"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_catalog_operations_status"]>>;
30716
+ }
29891
30717
  declare class CampaignsClient {
29892
30718
  protected readonly _http: OmniHttp;
29893
30719
  constructor(_http: OmniHttp);
@@ -30059,6 +30885,14 @@ declare class CatalogClient {
30059
30885
  * `GET /api/v1/catalog/items`
30060
30886
  */
30061
30887
  listItems(request?: OperationQuery<operations["get_v1_catalog_items"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_catalog_items"]>>;
30888
+ /**
30889
+ * Query Catalog
30890
+ *
30891
+ * Filter and project simple products and variants on the server. Requires catalog:read. Defaults to active sellable SKUs, excluding parent containers. costComparison=above_price compares known cost in each product's catalog currency using valid recorded conversions; unknown costs or unavailable conversions do not match. Fields bound the response. Maximum 500 rows per page. Omit counts after the first page with includeCount=false. No SQL input is accepted.
30892
+ *
30893
+ * `POST /api/v1/catalog/query`
30894
+ */
30895
+ query(request: OperationBody<operations["post_v1_catalog_query"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_catalog_query"]>>;
30062
30896
  }
30063
30897
  declare class CheckoutSessionsClient {
30064
30898
  protected readonly _http: OmniHttp;
@@ -30147,6 +30981,14 @@ declare class CommerceClient {
30147
30981
  * `POST /api/v1/commerce/state/verify`
30148
30982
  */
30149
30983
  verifyState(request: OperationBody<operations["post_v1_commerce_state_verify"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_commerce_state_verify"]>>;
30984
+ /**
30985
+ * Start Commerce Verification
30986
+ *
30987
+ * Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read. Returns immediately with operationIds. Read bulk.status and bulk.results; a client timeout does not discard work. Fulfillment correlations continue to use commerce.verifyState.
30988
+ *
30989
+ * `POST /api/v1/commerce/state/verify/jobs`
30990
+ */
30991
+ startVerification(request: OperationBody<operations["post_v1_commerce_state_verify_jobs"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_commerce_state_verify_jobs"]>>;
30150
30992
  }
30151
30993
  declare class CompareClient {
30152
30994
  protected readonly _http: OmniHttp;
@@ -31576,6 +32418,7 @@ declare class OmniGeneratedClient {
31576
32418
  readonly api: ApiClient;
31577
32419
  readonly brandKits: BrandKitsClient;
31578
32420
  readonly brandsgateway: BrandsgatewayClient;
32421
+ readonly bulk: BulkClient;
31579
32422
  readonly campaigns: CampaignsClient;
31580
32423
  readonly catalog: CatalogClient;
31581
32424
  readonly checkoutSessions: CheckoutSessionsClient;
@@ -31619,6 +32462,7 @@ type OmniResources = {
31619
32462
  api: ApiClient;
31620
32463
  brandKits: BrandKitsClient;
31621
32464
  brandsgateway: BrandsgatewayClient;
32465
+ bulk: BulkClient;
31622
32466
  campaigns: CampaignsClient;
31623
32467
  catalog: CatalogClient;
31624
32468
  checkoutSessions: CheckoutSessionsClient;
@@ -31696,7 +32540,7 @@ declare function constructEvent(payload: string | Uint8Array, headers: WebhookHe
31696
32540
  toleranceInSeconds?: number;
31697
32541
  }): Promise<ConstructedWebhookEvent>;
31698
32542
 
31699
- declare const SDK_VERSION = "0.20.1";
32543
+ declare const SDK_VERSION = "0.21.0";
31700
32544
 
31701
32545
  type ProductCreatedWebhookEvent = components["schemas"]["ProductCreatedWebhookEvent"];
31702
32546
  type ProductUpdatedWebhookEvent = components["schemas"]["ProductUpdatedWebhookEvent"];