@omni-commerce/sdk 0.30.0 → 0.31.1

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
@@ -3486,6 +3486,128 @@ interface paths {
3486
3486
  patch?: never;
3487
3487
  trace?: never;
3488
3488
  };
3489
+ "/api/v1/review-queue": {
3490
+ parameters: {
3491
+ query?: never;
3492
+ header?: never;
3493
+ path?: never;
3494
+ cookie?: never;
3495
+ };
3496
+ /**
3497
+ * List Review Queue Jobs
3498
+ * @description Requires `catalog:read`.
3499
+ *
3500
+ * Lists the same jobs as the Review queue, including outstanding bulk imports and updates before their product proposals exist. Use workflow, status, query, and date filters with limit and offset. Date-only bounds are inclusive calendar dates in timeZone (defaults to the session time zone or Asia/Singapore).
3501
+ */
3502
+ get: operations["get_v1_review_queue"];
3503
+ put?: never;
3504
+ post?: never;
3505
+ delete?: never;
3506
+ options?: never;
3507
+ head?: never;
3508
+ patch?: never;
3509
+ trace?: never;
3510
+ };
3511
+ "/api/v1/review-queue/{batchId}": {
3512
+ parameters: {
3513
+ query?: never;
3514
+ header?: never;
3515
+ path?: never;
3516
+ cookie?: never;
3517
+ };
3518
+ /**
3519
+ * Get Review Queue Job
3520
+ * @description Requires `catalog:read`.
3521
+ *
3522
+ * Returns an AI product review job, including its linked review scopes. The queue parameter selects a product subset in queueSelection. Pass itemId to also read one saved proposal and its issues. Use the import workflow status API for entries with importJob.
3523
+ */
3524
+ get: operations["get_v1_review_queue_by_batchid"];
3525
+ put?: never;
3526
+ post?: never;
3527
+ delete?: never;
3528
+ options?: never;
3529
+ head?: never;
3530
+ /**
3531
+ * Rename Review Queue Job
3532
+ * @description Requires `catalog:write`.
3533
+ *
3534
+ * Use an empty title to restore the default display title.
3535
+ */
3536
+ patch: operations["patch_v1_review_queue_by_batchid"];
3537
+ trace?: never;
3538
+ };
3539
+ "/api/v1/review-queue/{batchId}/approve": {
3540
+ parameters: {
3541
+ query?: never;
3542
+ header?: never;
3543
+ path?: never;
3544
+ cookie?: never;
3545
+ };
3546
+ get?: never;
3547
+ put?: never;
3548
+ /**
3549
+ * Approve Review Queue Items
3550
+ * @description Requires `catalog:write`.
3551
+ *
3552
+ * Applies up to 100 explicitly selected review item IDs from the job and its linked batches. Approves the saved proposals through the catalog's normal stale-product and gallery checks. Set allowProductChangedOverride explicitly to approve despite an intervening product change. Already applied items are safe to resubmit. Call the publish endpoint separately to release approved changes.
3553
+ */
3554
+ post: operations["post_v1_review_queue_by_batchid_approve"];
3555
+ delete?: never;
3556
+ options?: never;
3557
+ head?: never;
3558
+ patch?: never;
3559
+ trace?: never;
3560
+ };
3561
+ "/api/v1/review-queue/{batchId}/publish": {
3562
+ parameters: {
3563
+ query?: never;
3564
+ header?: never;
3565
+ path?: never;
3566
+ cookie?: never;
3567
+ };
3568
+ get?: never;
3569
+ put?: never;
3570
+ /**
3571
+ * Publish Review Queue Products
3572
+ * @description Requires `catalog:sync`.
3573
+ *
3574
+ * Specify productIds and visibility. Only products with all review scopes applied and outstanding releases to assigned marketplace stores are eligible. Optionally filter by marketplaces. Inspect every product and listing result for preparation failures. HTTP 202 confirms queue acceptance. Pass every returned correlation to POST /api/v1/commerce/jobs/await to check marketplace outcomes.
3575
+ */
3576
+ post: operations["post_v1_review_queue_by_batchid_publish"];
3577
+ delete?: never;
3578
+ options?: never;
3579
+ head?: never;
3580
+ patch?: never;
3581
+ trace?: never;
3582
+ };
3583
+ "/api/v1/review-queue/settings": {
3584
+ parameters: {
3585
+ query?: never;
3586
+ header?: never;
3587
+ path?: never;
3588
+ cookie?: never;
3589
+ };
3590
+ /**
3591
+ * Get Review Queue Settings
3592
+ * @description Requires catalog:review-settings for bearer credentials and company settings read permission for delegated users.
3593
+ *
3594
+ * Returns the organization defaults for enrichment and taxonomy auto-apply confidence.
3595
+ */
3596
+ get: operations["get_v1_review_queue_settings"];
3597
+ put?: never;
3598
+ post?: never;
3599
+ delete?: never;
3600
+ options?: never;
3601
+ head?: never;
3602
+ /**
3603
+ * Update Review Queue Settings
3604
+ * @description Requires catalog:review-settings for bearer credentials and company settings write permission for delegated users.
3605
+ *
3606
+ * Update either or both thresholds from 0.50 to 1.00. Existing review jobs retain their saved settings.
3607
+ */
3608
+ patch: operations["patch_v1_review_queue_settings"];
3609
+ trace?: never;
3610
+ };
3489
3611
  "/api/v1/reviews": {
3490
3612
  parameters: {
3491
3613
  query?: never;
@@ -29575,6 +29697,911 @@ interface operations {
29575
29697
  };
29576
29698
  };
29577
29699
  };
29700
+ get_v1_review_queue: {
29701
+ parameters: {
29702
+ query?: {
29703
+ /** @description Session callers only. API keys resolve organization scope from the credential. */
29704
+ organizationId?: string;
29705
+ workflow?:
29706
+ | "enrichment"
29707
+ | "marketplace_taxonomy"
29708
+ | "product_images"
29709
+ | "bulk_import"
29710
+ | "bulk_update";
29711
+ status?:
29712
+ | "queued"
29713
+ | "running"
29714
+ | "pending_review"
29715
+ | "completed"
29716
+ | "partially_completed"
29717
+ | "failed"
29718
+ | "cancelled";
29719
+ query?: string;
29720
+ sortBy?: string;
29721
+ limit?: number;
29722
+ offset?: number;
29723
+ enrichmentStatus?: "queued" | "processing" | "enriched" | "failed";
29724
+ dateFrom?: string;
29725
+ dateTo?: string;
29726
+ timeZone?: string;
29727
+ };
29728
+ header?: never;
29729
+ path?: never;
29730
+ cookie?: never;
29731
+ };
29732
+ requestBody?: never;
29733
+ responses: {
29734
+ /** @description Paginated organization Review queue history. */
29735
+ 200: {
29736
+ headers: {
29737
+ [name: string]: unknown;
29738
+ };
29739
+ content: {
29740
+ "application/json": {
29741
+ ok: boolean;
29742
+ apiVersion: string;
29743
+ /** Format: uuid */
29744
+ operationId: string;
29745
+ /** @enum {string} */
29746
+ status: "completed";
29747
+ data: {
29748
+ batches: {
29749
+ /** Format: uuid */
29750
+ id: string;
29751
+ organizationId: string;
29752
+ /** @enum {string} */
29753
+ workflow:
29754
+ | "enrichment"
29755
+ | "marketplace_taxonomy"
29756
+ | "product_images"
29757
+ | "bulk_import"
29758
+ | "bulk_update";
29759
+ /** @enum {string} */
29760
+ status:
29761
+ | "queued"
29762
+ | "running"
29763
+ | "pending_review"
29764
+ | "completed"
29765
+ | "partially_completed"
29766
+ | "failed"
29767
+ | "cancelled";
29768
+ title: string | null;
29769
+ source: string;
29770
+ targetMarketplace:
29771
+ | (
29772
+ | "shopee"
29773
+ | "lazada"
29774
+ | "tiktok"
29775
+ | "shopify"
29776
+ | "whatsapp"
29777
+ | "zalora"
29778
+ | "amazon"
29779
+ | "ebay"
29780
+ )
29781
+ | null;
29782
+ targetStoreId: string | null;
29783
+ targetStoreName: string | null;
29784
+ targetCountry: string | null;
29785
+ createdAt: string;
29786
+ updatedAt: string;
29787
+ durationMs: number;
29788
+ counts: {
29789
+ [key: string]: number;
29790
+ };
29791
+ totalCount: number;
29792
+ reviewUrl: string;
29793
+ autoApproveEnabled?: boolean;
29794
+ autoPublishEnabled?: boolean;
29795
+ importJob?: {
29796
+ status: string;
29797
+ rowCount: number;
29798
+ counts: {
29799
+ [key: string]: number;
29800
+ };
29801
+ };
29802
+ }[];
29803
+ totalCount: number;
29804
+ pendingCount: number;
29805
+ statusCounts: {
29806
+ all: number;
29807
+ pending_review: number;
29808
+ queued: number;
29809
+ completed: number;
29810
+ };
29811
+ };
29812
+ links: {
29813
+ [key: string]: string;
29814
+ };
29815
+ warnings: string[];
29816
+ recommendations: string[];
29817
+ };
29818
+ };
29819
+ };
29820
+ /** @description Invalid Review queue request. */
29821
+ 400: {
29822
+ headers: {
29823
+ [name: string]: unknown;
29824
+ };
29825
+ content?: never;
29826
+ };
29827
+ /** @description Missing or invalid credentials. */
29828
+ 401: {
29829
+ headers: {
29830
+ [name: string]: unknown;
29831
+ };
29832
+ content?: never;
29833
+ };
29834
+ /** @description Missing scope, insufficient organization-wide permissions, conflicting organization, or inactive organization. */
29835
+ 403: {
29836
+ headers: {
29837
+ [name: string]: unknown;
29838
+ };
29839
+ content?: never;
29840
+ };
29841
+ /** @description Rate limit exceeded. */
29842
+ 429: {
29843
+ headers: {
29844
+ [name: string]: unknown;
29845
+ };
29846
+ content?: never;
29847
+ };
29848
+ };
29849
+ };
29850
+ get_v1_review_queue_by_batchid: {
29851
+ parameters: {
29852
+ query?: {
29853
+ /** @description Session callers only. API keys resolve organization scope from the credential. */
29854
+ organizationId?: string;
29855
+ itemId?: string;
29856
+ queue?:
29857
+ | "all"
29858
+ | "open"
29859
+ | "failed"
29860
+ | "ready"
29861
+ | "approved"
29862
+ | "needs_publish"
29863
+ | "published"
29864
+ | "insufficient_images";
29865
+ };
29866
+ header?: never;
29867
+ path: {
29868
+ batchId: string;
29869
+ };
29870
+ cookie?: never;
29871
+ };
29872
+ requestBody?: never;
29873
+ responses: {
29874
+ /** @description Review job with item summaries and an optional saved proposal. */
29875
+ 200: {
29876
+ headers: {
29877
+ [name: string]: unknown;
29878
+ };
29879
+ content: {
29880
+ "application/json": {
29881
+ ok: boolean;
29882
+ apiVersion: string;
29883
+ /** Format: uuid */
29884
+ operationId: string;
29885
+ /** @enum {string} */
29886
+ status: "completed";
29887
+ data: {
29888
+ batch: {
29889
+ /** Format: uuid */
29890
+ id: string;
29891
+ organizationId: string;
29892
+ /** @enum {string} */
29893
+ workflow:
29894
+ | "enrichment"
29895
+ | "marketplace_taxonomy"
29896
+ | "product_images"
29897
+ | "bulk_import"
29898
+ | "bulk_update";
29899
+ /** @enum {string} */
29900
+ status:
29901
+ | "queued"
29902
+ | "running"
29903
+ | "pending_review"
29904
+ | "completed"
29905
+ | "partially_completed"
29906
+ | "failed"
29907
+ | "cancelled";
29908
+ title: string | null;
29909
+ source: string;
29910
+ targetMarketplace:
29911
+ | (
29912
+ | "shopee"
29913
+ | "lazada"
29914
+ | "tiktok"
29915
+ | "shopify"
29916
+ | "whatsapp"
29917
+ | "zalora"
29918
+ | "amazon"
29919
+ | "ebay"
29920
+ )
29921
+ | null;
29922
+ targetStoreId: string | null;
29923
+ targetStoreName: string | null;
29924
+ targetCountry: string | null;
29925
+ createdAt: string;
29926
+ updatedAt: string;
29927
+ durationMs: number;
29928
+ counts: {
29929
+ [key: string]: number;
29930
+ };
29931
+ totalCount: number;
29932
+ };
29933
+ items: {
29934
+ /** Format: uuid */
29935
+ id: string;
29936
+ /** Format: uuid */
29937
+ batchId: string;
29938
+ /** @enum {string} */
29939
+ workflow:
29940
+ | "enrichment"
29941
+ | "marketplace_taxonomy"
29942
+ | "product_images";
29943
+ productId: string;
29944
+ productName: string | null;
29945
+ /** @enum {string} */
29946
+ status:
29947
+ | "queued"
29948
+ | "running"
29949
+ | "pending_review"
29950
+ | "apply_queued"
29951
+ | "applying"
29952
+ | "applied"
29953
+ | "reverted"
29954
+ | "rejected"
29955
+ | "failed"
29956
+ | "cancelled";
29957
+ confidence: number | null;
29958
+ productChanged: boolean;
29959
+ targetMarketplace:
29960
+ | (
29961
+ | "shopee"
29962
+ | "lazada"
29963
+ | "tiktok"
29964
+ | "shopify"
29965
+ | "whatsapp"
29966
+ | "zalora"
29967
+ | "amazon"
29968
+ | "ebay"
29969
+ )
29970
+ | null;
29971
+ targetStoreId: string | null;
29972
+ targetStoreName: string | null;
29973
+ targetCountry: string | null;
29974
+ publishedStoreTargets?: {
29975
+ marketplace: string;
29976
+ storeId: string;
29977
+ }[];
29978
+ hasActivePublish?: boolean;
29979
+ hasFailedPublish?: boolean;
29980
+ errorMessage: string | null;
29981
+ }[];
29982
+ queueSelection: {
29983
+ /** @enum {string} */
29984
+ value:
29985
+ | "all"
29986
+ | "open"
29987
+ | "failed"
29988
+ | "ready"
29989
+ | "approved"
29990
+ | "needs_publish"
29991
+ | "published"
29992
+ | "insufficient_images";
29993
+ productIds: string[];
29994
+ counts: {
29995
+ [key: string]: number;
29996
+ };
29997
+ };
29998
+ item?: {
29999
+ /** Format: uuid */
30000
+ id: string;
30001
+ /** Format: uuid */
30002
+ batchId: string;
30003
+ /** @enum {string} */
30004
+ workflow:
30005
+ | "enrichment"
30006
+ | "marketplace_taxonomy"
30007
+ | "product_images";
30008
+ productId: string;
30009
+ productName: string | null;
30010
+ /** @enum {string} */
30011
+ status:
30012
+ | "queued"
30013
+ | "running"
30014
+ | "pending_review"
30015
+ | "apply_queued"
30016
+ | "applying"
30017
+ | "applied"
30018
+ | "reverted"
30019
+ | "rejected"
30020
+ | "failed"
30021
+ | "cancelled";
30022
+ confidence: number | null;
30023
+ productChanged: boolean;
30024
+ targetMarketplace:
30025
+ | (
30026
+ | "shopee"
30027
+ | "lazada"
30028
+ | "tiktok"
30029
+ | "shopify"
30030
+ | "whatsapp"
30031
+ | "zalora"
30032
+ | "amazon"
30033
+ | "ebay"
30034
+ )
30035
+ | null;
30036
+ targetStoreId: string | null;
30037
+ targetStoreName: string | null;
30038
+ targetCountry: string | null;
30039
+ publishedStoreTargets?: {
30040
+ marketplace: string;
30041
+ storeId: string;
30042
+ }[];
30043
+ hasActivePublish?: boolean;
30044
+ hasFailedPublish?: boolean;
30045
+ errorMessage: string | null;
30046
+ proposal: {
30047
+ [key: string]: unknown;
30048
+ };
30049
+ issues: ({
30050
+ code: string;
30051
+ message: string;
30052
+ /** @enum {string} */
30053
+ severity: "info" | "warning" | "error";
30054
+ } & {
30055
+ [key: string]: unknown;
30056
+ })[];
30057
+ };
30058
+ };
30059
+ links: {
30060
+ [key: string]: string;
30061
+ };
30062
+ warnings: string[];
30063
+ recommendations: string[];
30064
+ };
30065
+ };
30066
+ };
30067
+ /** @description Invalid Review queue request. */
30068
+ 400: {
30069
+ headers: {
30070
+ [name: string]: unknown;
30071
+ };
30072
+ content?: never;
30073
+ };
30074
+ /** @description Missing or invalid credentials. */
30075
+ 401: {
30076
+ headers: {
30077
+ [name: string]: unknown;
30078
+ };
30079
+ content?: never;
30080
+ };
30081
+ /** @description Missing scope, insufficient organization-wide permissions, conflicting organization, or inactive organization. */
30082
+ 403: {
30083
+ headers: {
30084
+ [name: string]: unknown;
30085
+ };
30086
+ content?: never;
30087
+ };
30088
+ /** @description Review job or item was not found in the authenticated organization and job. */
30089
+ 404: {
30090
+ headers: {
30091
+ [name: string]: unknown;
30092
+ };
30093
+ content?: never;
30094
+ };
30095
+ /** @description Rate limit exceeded. */
30096
+ 429: {
30097
+ headers: {
30098
+ [name: string]: unknown;
30099
+ };
30100
+ content?: never;
30101
+ };
30102
+ };
30103
+ };
30104
+ patch_v1_review_queue_by_batchid: {
30105
+ parameters: {
30106
+ query?: never;
30107
+ header?: never;
30108
+ path: {
30109
+ batchId: string;
30110
+ };
30111
+ cookie?: never;
30112
+ };
30113
+ requestBody: {
30114
+ content: {
30115
+ "application/json": {
30116
+ organizationId?: string;
30117
+ title: string;
30118
+ };
30119
+ };
30120
+ };
30121
+ responses: {
30122
+ /** @description Updated review job title. */
30123
+ 200: {
30124
+ headers: {
30125
+ [name: string]: unknown;
30126
+ };
30127
+ content: {
30128
+ "application/json": {
30129
+ ok: boolean;
30130
+ apiVersion: string;
30131
+ /** Format: uuid */
30132
+ operationId: string;
30133
+ /** @enum {string} */
30134
+ status: "completed";
30135
+ data: {
30136
+ /** Format: uuid */
30137
+ id: string;
30138
+ title: string | null;
30139
+ };
30140
+ links: {
30141
+ [key: string]: string;
30142
+ };
30143
+ warnings: string[];
30144
+ recommendations: string[];
30145
+ };
30146
+ };
30147
+ };
30148
+ /** @description Invalid Review queue request. */
30149
+ 400: {
30150
+ headers: {
30151
+ [name: string]: unknown;
30152
+ };
30153
+ content?: never;
30154
+ };
30155
+ /** @description Missing or invalid credentials. */
30156
+ 401: {
30157
+ headers: {
30158
+ [name: string]: unknown;
30159
+ };
30160
+ content?: never;
30161
+ };
30162
+ /** @description Missing scope, insufficient organization-wide permissions, conflicting organization, or inactive organization. */
30163
+ 403: {
30164
+ headers: {
30165
+ [name: string]: unknown;
30166
+ };
30167
+ content?: never;
30168
+ };
30169
+ /** @description Review job or item was not found in the authenticated organization and job. */
30170
+ 404: {
30171
+ headers: {
30172
+ [name: string]: unknown;
30173
+ };
30174
+ content?: never;
30175
+ };
30176
+ /** @description Rate limit exceeded. */
30177
+ 429: {
30178
+ headers: {
30179
+ [name: string]: unknown;
30180
+ };
30181
+ content?: never;
30182
+ };
30183
+ };
30184
+ };
30185
+ post_v1_review_queue_by_batchid_approve: {
30186
+ parameters: {
30187
+ query?: never;
30188
+ header?: never;
30189
+ path: {
30190
+ batchId: string;
30191
+ };
30192
+ cookie?: never;
30193
+ };
30194
+ requestBody: {
30195
+ content: {
30196
+ "application/json": {
30197
+ organizationId?: string;
30198
+ itemIds: string[];
30199
+ allowProductChangedOverride?: boolean;
30200
+ };
30201
+ };
30202
+ };
30203
+ responses: {
30204
+ /** @description Approval outcomes in requested item order, including partial failures. */
30205
+ 200: {
30206
+ headers: {
30207
+ [name: string]: unknown;
30208
+ };
30209
+ content: {
30210
+ "application/json": {
30211
+ ok: boolean;
30212
+ apiVersion: string;
30213
+ /** Format: uuid */
30214
+ operationId: string;
30215
+ /** @enum {string} */
30216
+ status: "completed";
30217
+ data: {
30218
+ success: boolean;
30219
+ succeededCount: number;
30220
+ failedCount: number;
30221
+ itemIds: string[];
30222
+ results: {
30223
+ /** Format: uuid */
30224
+ itemId: string;
30225
+ success: boolean;
30226
+ error?: string;
30227
+ }[];
30228
+ };
30229
+ links: {
30230
+ [key: string]: string;
30231
+ };
30232
+ warnings: string[];
30233
+ recommendations: string[];
30234
+ };
30235
+ };
30236
+ };
30237
+ /** @description Invalid Review queue request. */
30238
+ 400: {
30239
+ headers: {
30240
+ [name: string]: unknown;
30241
+ };
30242
+ content?: never;
30243
+ };
30244
+ /** @description Missing or invalid credentials. */
30245
+ 401: {
30246
+ headers: {
30247
+ [name: string]: unknown;
30248
+ };
30249
+ content?: never;
30250
+ };
30251
+ /** @description Missing scope, insufficient organization-wide permissions, conflicting organization, or inactive organization. */
30252
+ 403: {
30253
+ headers: {
30254
+ [name: string]: unknown;
30255
+ };
30256
+ content?: never;
30257
+ };
30258
+ /** @description Review job or item was not found in the authenticated organization and job. */
30259
+ 404: {
30260
+ headers: {
30261
+ [name: string]: unknown;
30262
+ };
30263
+ content?: never;
30264
+ };
30265
+ /** @description Rate limit exceeded. */
30266
+ 429: {
30267
+ headers: {
30268
+ [name: string]: unknown;
30269
+ };
30270
+ content?: never;
30271
+ };
30272
+ };
30273
+ };
30274
+ post_v1_review_queue_by_batchid_publish: {
30275
+ parameters: {
30276
+ query?: never;
30277
+ header?: never;
30278
+ path: {
30279
+ batchId: string;
30280
+ };
30281
+ cookie?: never;
30282
+ };
30283
+ requestBody: {
30284
+ content: {
30285
+ "application/json": {
30286
+ organizationId?: string;
30287
+ productIds: string[];
30288
+ marketplaces?: (
30289
+ | "shopee"
30290
+ | "lazada"
30291
+ | "tiktok"
30292
+ | "shopify"
30293
+ | "whatsapp"
30294
+ | "zalora"
30295
+ | "amazon"
30296
+ | "ebay"
30297
+ )[];
30298
+ /** @enum {string} */
30299
+ visibility: "live" | "draft";
30300
+ };
30301
+ };
30302
+ };
30303
+ responses: {
30304
+ /** @description Publish preparation results when no jobs were queued. */
30305
+ 200: {
30306
+ headers: {
30307
+ [name: string]: unknown;
30308
+ };
30309
+ content: {
30310
+ "application/json": {
30311
+ ok: boolean;
30312
+ apiVersion: string;
30313
+ /** Format: uuid */
30314
+ operationId: string;
30315
+ /** @enum {string} */
30316
+ status: "completed";
30317
+ data: {
30318
+ success: boolean;
30319
+ succeededCount: number;
30320
+ failedCount: number;
30321
+ queued: boolean;
30322
+ productIds: string[];
30323
+ jobBatchId?: string;
30324
+ correlations: {
30325
+ /** @enum {string} */
30326
+ kind: "publish_job" | "inventory_job";
30327
+ id: string;
30328
+ }[];
30329
+ results: {
30330
+ /** Format: uuid */
30331
+ productId: string;
30332
+ success: boolean;
30333
+ error?: string;
30334
+ listings: {
30335
+ ok: boolean;
30336
+ productId: string;
30337
+ /** @enum {string} */
30338
+ platform?:
30339
+ | "shopee"
30340
+ | "lazada"
30341
+ | "tiktok"
30342
+ | "shopify"
30343
+ | "whatsapp"
30344
+ | "zalora"
30345
+ | "amazon"
30346
+ | "ebay";
30347
+ storeId?: string;
30348
+ jobId?: string;
30349
+ queued?: boolean;
30350
+ error?: string;
30351
+ blockingReason?: string;
30352
+ }[];
30353
+ }[];
30354
+ };
30355
+ links: {
30356
+ [key: string]: string;
30357
+ };
30358
+ warnings: string[];
30359
+ recommendations: string[];
30360
+ };
30361
+ };
30362
+ };
30363
+ /** @description At least one marketplace job queued. Check per-listing results and follow every returned correlation. */
30364
+ 202: {
30365
+ headers: {
30366
+ [name: string]: unknown;
30367
+ };
30368
+ content: {
30369
+ "application/json": {
30370
+ ok: boolean;
30371
+ apiVersion: string;
30372
+ /** Format: uuid */
30373
+ operationId: string;
30374
+ /** @enum {string} */
30375
+ status: "accepted";
30376
+ data: {
30377
+ success: boolean;
30378
+ succeededCount: number;
30379
+ failedCount: number;
30380
+ queued: boolean;
30381
+ productIds: string[];
30382
+ jobBatchId?: string;
30383
+ correlations: {
30384
+ /** @enum {string} */
30385
+ kind: "publish_job" | "inventory_job";
30386
+ id: string;
30387
+ }[];
30388
+ results: {
30389
+ /** Format: uuid */
30390
+ productId: string;
30391
+ success: boolean;
30392
+ error?: string;
30393
+ listings: {
30394
+ ok: boolean;
30395
+ productId: string;
30396
+ /** @enum {string} */
30397
+ platform?:
30398
+ | "shopee"
30399
+ | "lazada"
30400
+ | "tiktok"
30401
+ | "shopify"
30402
+ | "whatsapp"
30403
+ | "zalora"
30404
+ | "amazon"
30405
+ | "ebay";
30406
+ storeId?: string;
30407
+ jobId?: string;
30408
+ queued?: boolean;
30409
+ error?: string;
30410
+ blockingReason?: string;
30411
+ }[];
30412
+ }[];
30413
+ };
30414
+ links: {
30415
+ [key: string]: string;
30416
+ };
30417
+ warnings: string[];
30418
+ recommendations: string[];
30419
+ };
30420
+ };
30421
+ };
30422
+ /** @description Invalid Review queue request. */
30423
+ 400: {
30424
+ headers: {
30425
+ [name: string]: unknown;
30426
+ };
30427
+ content?: never;
30428
+ };
30429
+ /** @description Missing or invalid credentials. */
30430
+ 401: {
30431
+ headers: {
30432
+ [name: string]: unknown;
30433
+ };
30434
+ content?: never;
30435
+ };
30436
+ /** @description Missing scope, insufficient organization-wide permissions, conflicting organization, or inactive organization. */
30437
+ 403: {
30438
+ headers: {
30439
+ [name: string]: unknown;
30440
+ };
30441
+ content?: never;
30442
+ };
30443
+ /** @description Review job or item was not found in the authenticated organization and job. */
30444
+ 404: {
30445
+ headers: {
30446
+ [name: string]: unknown;
30447
+ };
30448
+ content?: never;
30449
+ };
30450
+ /** @description The resolved product selection exceeds the publish limit. */
30451
+ 413: {
30452
+ headers: {
30453
+ [name: string]: unknown;
30454
+ };
30455
+ content?: never;
30456
+ };
30457
+ /** @description Rate limit exceeded. */
30458
+ 429: {
30459
+ headers: {
30460
+ [name: string]: unknown;
30461
+ };
30462
+ content?: never;
30463
+ };
30464
+ };
30465
+ };
30466
+ get_v1_review_queue_settings: {
30467
+ parameters: {
30468
+ query?: {
30469
+ /** @description Session callers only. API keys resolve organization scope from the credential. */
30470
+ organizationId?: string;
30471
+ };
30472
+ header?: never;
30473
+ path?: never;
30474
+ cookie?: never;
30475
+ };
30476
+ requestBody?: never;
30477
+ responses: {
30478
+ /** @description Organization default auto-apply thresholds. */
30479
+ 200: {
30480
+ headers: {
30481
+ [name: string]: unknown;
30482
+ };
30483
+ content: {
30484
+ "application/json": {
30485
+ ok: boolean;
30486
+ apiVersion: string;
30487
+ /** Format: uuid */
30488
+ operationId: string;
30489
+ /** @enum {string} */
30490
+ status: "completed";
30491
+ data: {
30492
+ enrichmentAutoApplyThreshold: number;
30493
+ taxonomyAutoApplyThreshold: number;
30494
+ };
30495
+ links: {
30496
+ [key: string]: string;
30497
+ };
30498
+ warnings: string[];
30499
+ recommendations: string[];
30500
+ };
30501
+ };
30502
+ };
30503
+ /** @description Invalid Review queue request. */
30504
+ 400: {
30505
+ headers: {
30506
+ [name: string]: unknown;
30507
+ };
30508
+ content?: never;
30509
+ };
30510
+ /** @description Missing or invalid credentials. */
30511
+ 401: {
30512
+ headers: {
30513
+ [name: string]: unknown;
30514
+ };
30515
+ content?: never;
30516
+ };
30517
+ /** @description Missing scope, insufficient organization-wide permissions, conflicting organization, or inactive organization. */
30518
+ 403: {
30519
+ headers: {
30520
+ [name: string]: unknown;
30521
+ };
30522
+ content?: never;
30523
+ };
30524
+ /** @description Rate limit exceeded. */
30525
+ 429: {
30526
+ headers: {
30527
+ [name: string]: unknown;
30528
+ };
30529
+ content?: never;
30530
+ };
30531
+ };
30532
+ };
30533
+ patch_v1_review_queue_settings: {
30534
+ parameters: {
30535
+ query?: never;
30536
+ header?: never;
30537
+ path?: never;
30538
+ cookie?: never;
30539
+ };
30540
+ requestBody: {
30541
+ content: {
30542
+ "application/json": {
30543
+ organizationId?: string;
30544
+ enrichmentAutoApplyThreshold?: number;
30545
+ taxonomyAutoApplyThreshold?: number;
30546
+ };
30547
+ };
30548
+ };
30549
+ responses: {
30550
+ /** @description Updated organization default auto-apply thresholds. */
30551
+ 200: {
30552
+ headers: {
30553
+ [name: string]: unknown;
30554
+ };
30555
+ content: {
30556
+ "application/json": {
30557
+ ok: boolean;
30558
+ apiVersion: string;
30559
+ /** Format: uuid */
30560
+ operationId: string;
30561
+ /** @enum {string} */
30562
+ status: "completed";
30563
+ data: {
30564
+ enrichmentAutoApplyThreshold: number;
30565
+ taxonomyAutoApplyThreshold: number;
30566
+ };
30567
+ links: {
30568
+ [key: string]: string;
30569
+ };
30570
+ warnings: string[];
30571
+ recommendations: string[];
30572
+ };
30573
+ };
30574
+ };
30575
+ /** @description Invalid Review queue request. */
30576
+ 400: {
30577
+ headers: {
30578
+ [name: string]: unknown;
30579
+ };
30580
+ content?: never;
30581
+ };
30582
+ /** @description Missing or invalid credentials. */
30583
+ 401: {
30584
+ headers: {
30585
+ [name: string]: unknown;
30586
+ };
30587
+ content?: never;
30588
+ };
30589
+ /** @description Missing scope, insufficient organization-wide permissions, conflicting organization, or inactive organization. */
30590
+ 403: {
30591
+ headers: {
30592
+ [name: string]: unknown;
30593
+ };
30594
+ content?: never;
30595
+ };
30596
+ /** @description Rate limit exceeded. */
30597
+ 429: {
30598
+ headers: {
30599
+ [name: string]: unknown;
30600
+ };
30601
+ content?: never;
30602
+ };
30603
+ };
30604
+ };
29578
30605
  get_v1_reviews: {
29579
30606
  parameters: {
29580
30607
  query?: {
@@ -36935,6 +37962,80 @@ declare class ReturnsClient {
36935
37962
  */
36936
37963
  listForOrders(request: OperationQuery<operations["get_v1_returns_orders"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_returns_orders"]>>;
36937
37964
  }
37965
+ declare class ReviewQueueClient {
37966
+ protected readonly _http: OmniHttp;
37967
+ constructor(_http: OmniHttp);
37968
+ /**
37969
+ * List Review Queue Jobs
37970
+ *
37971
+ * Requires `catalog:read`.
37972
+
37973
+ Lists the same jobs as the Review queue, including outstanding bulk imports and updates before their product proposals exist. Use workflow, status, query, and date filters with limit and offset. Date-only bounds are inclusive calendar dates in timeZone (defaults to the session time zone or Asia/Singapore).
37974
+ *
37975
+ * `GET /api/v1/review-queue`
37976
+ */
37977
+ list(request?: OperationQuery<operations["get_v1_review_queue"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_review_queue"]>>;
37978
+ /**
37979
+ * Get Review Queue Job
37980
+ *
37981
+ * Requires `catalog:read`.
37982
+
37983
+ Returns an AI product review job, including its linked review scopes. The queue parameter selects a product subset in queueSelection. Pass itemId to also read one saved proposal and its issues. Use the import workflow status API for entries with importJob.
37984
+ *
37985
+ * `GET /api/v1/review-queue/{batchId}`
37986
+ */
37987
+ get(request: OperationPath<operations["get_v1_review_queue_by_batchid"]> & OperationQuery<operations["get_v1_review_queue_by_batchid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_review_queue_by_batchid"]>>;
37988
+ /**
37989
+ * Rename Review Queue Job
37990
+ *
37991
+ * Requires `catalog:write`.
37992
+
37993
+ Use an empty title to restore the default display title.
37994
+ *
37995
+ * `PATCH /api/v1/review-queue/{batchId}`
37996
+ */
37997
+ update(request: OperationPath<operations["patch_v1_review_queue_by_batchid"]> & OperationBody<operations["patch_v1_review_queue_by_batchid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["patch_v1_review_queue_by_batchid"]>>;
37998
+ /**
37999
+ * Approve Review Queue Items
38000
+ *
38001
+ * Requires `catalog:write`.
38002
+
38003
+ Applies up to 100 explicitly selected review item IDs from the job and its linked batches. Approves the saved proposals through the catalog's normal stale-product and gallery checks. Set allowProductChangedOverride explicitly to approve despite an intervening product change. Already applied items are safe to resubmit. Call the publish endpoint separately to release approved changes.
38004
+ *
38005
+ * `POST /api/v1/review-queue/{batchId}/approve`
38006
+ */
38007
+ approve(request: OperationPath<operations["post_v1_review_queue_by_batchid_approve"]> & OperationBody<operations["post_v1_review_queue_by_batchid_approve"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_review_queue_by_batchid_approve"]>>;
38008
+ /**
38009
+ * Publish Review Queue Products
38010
+ *
38011
+ * Requires `catalog:sync`.
38012
+
38013
+ Specify productIds and visibility. Only products with all review scopes applied and outstanding releases to assigned marketplace stores are eligible. Optionally filter by marketplaces. Inspect every product and listing result for preparation failures. HTTP 202 confirms queue acceptance. Pass every returned correlation to POST /api/v1/commerce/jobs/await to check marketplace outcomes.
38014
+ *
38015
+ * `POST /api/v1/review-queue/{batchId}/publish`
38016
+ */
38017
+ publish(request: OperationPath<operations["post_v1_review_queue_by_batchid_publish"]> & OperationBody<operations["post_v1_review_queue_by_batchid_publish"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_review_queue_by_batchid_publish"]>>;
38018
+ /**
38019
+ * Get Review Queue Settings
38020
+ *
38021
+ * Requires catalog:review-settings for bearer credentials and company settings read permission for delegated users.
38022
+
38023
+ Returns the organization defaults for enrichment and taxonomy auto-apply confidence.
38024
+ *
38025
+ * `GET /api/v1/review-queue/settings`
38026
+ */
38027
+ getSettings(request?: OperationQuery<operations["get_v1_review_queue_settings"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_review_queue_settings"]>>;
38028
+ /**
38029
+ * Update Review Queue Settings
38030
+ *
38031
+ * Requires catalog:review-settings for bearer credentials and company settings write permission for delegated users.
38032
+
38033
+ Update either or both thresholds from 0.50 to 1.00. Existing review jobs retain their saved settings.
38034
+ *
38035
+ * `PATCH /api/v1/review-queue/settings`
38036
+ */
38037
+ updateSettings(request: OperationBody<operations["patch_v1_review_queue_settings"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["patch_v1_review_queue_settings"]>>;
38038
+ }
36938
38039
  declare class ReviewsClient {
36939
38040
  protected readonly _http: OmniHttp;
36940
38041
  constructor(_http: OmniHttp);
@@ -37414,6 +38515,7 @@ declare class OmniGeneratedClient {
37414
38515
  readonly products: ProductsClient;
37415
38516
  readonly promotions: PromotionsClient;
37416
38517
  readonly returns: ReturnsClient;
38518
+ readonly reviewQueue: ReviewQueueClient;
37417
38519
  readonly reviews: ReviewsClient;
37418
38520
  readonly scripts: ScriptsClient;
37419
38521
  readonly search: SearchClient;
@@ -37461,6 +38563,7 @@ type OmniResources = {
37461
38563
  products: ProductsClient;
37462
38564
  promotions: PromotionsClient;
37463
38565
  returns: ReturnsClient;
38566
+ reviewQueue: ReviewQueueClient;
37464
38567
  reviews: ReviewsClient;
37465
38568
  scripts: ScriptsClient;
37466
38569
  search: SearchClient;
@@ -37515,7 +38618,7 @@ declare function constructEvent(payload: string | Uint8Array, headers: WebhookHe
37515
38618
  toleranceInSeconds?: number;
37516
38619
  }): Promise<ConstructedWebhookEvent>;
37517
38620
 
37518
- declare const SDK_VERSION = "0.30.0";
38621
+ declare const SDK_VERSION = "0.31.1";
37519
38622
 
37520
38623
  type ProductCreatedWebhookEvent = components["schemas"]["ProductCreatedWebhookEvent"];
37521
38624
  type ProductUpdatedWebhookEvent = components["schemas"]["ProductUpdatedWebhookEvent"];