@omni-commerce/sdk 0.22.0 → 0.24.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.cjs CHANGED
@@ -35,7 +35,7 @@ function normalizeClientOptions(options = {}) {
35
35
  }
36
36
 
37
37
  // src/version.ts
38
- var SDK_VERSION = "0.22.0";
38
+ var SDK_VERSION = "0.24.0";
39
39
  var SDK_USER_AGENT = `omnicommerce-js/${SDK_VERSION}`;
40
40
 
41
41
  // src/environments.ts
@@ -767,6 +767,49 @@ var AgentsClient = class {
767
767
  __publicField(this, "general");
768
768
  this.general = new AgentsGeneralClient(this._http);
769
769
  }
770
+ /**
771
+ * Send a message to an agent
772
+ *
773
+ * Message the exact built-in or custom agent in the URL, using its saved model, instructions, tools, permissions and Programmatic starting mode.
774
+
775
+ ### Authentication
776
+ Requires an API key with `agents:invoke`, or a sign-in session. Organization-owned keys use their recorded creator's current membership and agent access; keys without a valid owner are refused. API keys identify their organization; session requests include `organizationId`.
777
+
778
+ ### Conversation and execution
779
+ - The same caller, agent and `clientThreadKey` continue one conversation. Different callers, agents and organizations are isolated.
780
+ - No model, prompt or tool overrides are accepted.
781
+ - `wait=false` queues durable work and returns 202; `wait=true` returns the final reply or pending approvals.
782
+ - Send `decisions` with the same `cli
783
+ *
784
+ * `POST /api/v1/agents/{agentId}/messages`
785
+ */
786
+ messages(request, requestOptions) {
787
+ const { agentId, ...body } = request ?? {};
788
+ return this._http.request({
789
+ method: "POST",
790
+ path: `/api/v1/agents/${encodePathParam("agentId", agentId)}/messages`,
791
+ query: void 0,
792
+ body,
793
+ ...mergeRequestOptions(requestOptions)
794
+ });
795
+ }
796
+ /**
797
+ * Get an agent message run
798
+ *
799
+ * Read an agent message run belonging to the authenticated caller and the exact agent in the URL. Current organization membership and agent sharing are checked again. Requires agents:invoke.
800
+ *
801
+ * `GET /api/v1/agents/{agentId}/runs/{runId}`
802
+ */
803
+ getRuns(request, requestOptions) {
804
+ const { agentId, runId, organizationId } = request ?? {};
805
+ return this._http.request({
806
+ method: "GET",
807
+ path: `/api/v1/agents/${encodePathParam("agentId", agentId)}/runs/${encodePathParam("runId", runId)}`,
808
+ query: { organizationId },
809
+ body: void 0,
810
+ ...mergeRequestOptions(requestOptions)
811
+ });
812
+ }
770
813
  };
771
814
  var AnalyticsClient = class {
772
815
  constructor(_http) {
@@ -1335,7 +1378,7 @@ var ApiClient = class {
1335
1378
  *
1336
1379
  * ### Operations
1337
1380
 
1338
- create: offers[] (1–5), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1–20). complete: sessionId, paymentProof, and buyer approval of cartVersion, totalAmount and currency. pay: sessionId and the same exact approval; returns checkoutUrl for Stripe-hosted card entry.
1381
+ create: offers[] (1–5), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1–20). complete: sessionId, paymentProof, and buyer approval of cartVersion, totalAmount and currency. pay: sessionId and the same exact approval; returns checkoutUrl for Stripe, Qashier or HitPay hosted payment.
1339
1382
 
1340
1383
  ### Results and safeguards
1341
1384
 
@@ -1343,7 +1386,7 @@ var ApiClient = class {
1343
1386
 
1344
1387
  ### Payment
1345
1388
 
1346
- Completion reuses the existing Stripe ACP or x402 rail. Hosted card checkout requires this org
1389
+ Completion uses the configured Stripe ACP, x402, Qashier or HitPay rail. Qashi
1347
1390
  *
1348
1391
  * `POST /api/embed/{deploymentId}/checkout-sessions/{operation}`
1349
1392
  */
@@ -1502,12 +1545,18 @@ var BulkClient = class {
1502
1545
  });
1503
1546
  }
1504
1547
  /**
1505
- * Start Catalog Operation
1506
- *
1507
- * 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.
1508
- *
1509
- * `POST /api/v1/catalog/operations`
1510
- */
1548
+ * Start Catalog Operation
1549
+ *
1550
+ * ### Scope
1551
+
1552
+ Durable bulk price/cost updates for 1–2000 products or variants. Requires catalog:write.
1553
+
1554
+ ### Consistency and progress
1555
+
1556
+ 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.
1557
+ *
1558
+ * `POST /api/v1/catalog/operations`
1559
+ */
1511
1560
  start(request, requestOptions) {
1512
1561
  const { ...body } = request ?? {};
1513
1562
  return this._http.request({
@@ -1686,6 +1735,8 @@ var CampaignsClient = class {
1686
1735
  *
1687
1736
  * Read the same imported-order campaign analytics as the application. Monetary totals are partitioned by currency. Optional analyticsWindow selects one campaign window; voucher utilisation limitations are explicit.
1688
1737
 
1738
+ ### Authorization
1739
+
1689
1740
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
1690
1741
  *
1691
1742
  * `GET /api/v1/campaigns/{campaignId}/analytics`
@@ -1705,6 +1756,8 @@ var CampaignsClient = class {
1705
1756
  *
1706
1757
  * Read the executing actor's campaign notification preference.
1707
1758
 
1759
+ ### Authorization
1760
+
1708
1761
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
1709
1762
  *
1710
1763
  * `GET /api/v1/campaigns/{campaignId}/notifications`
@@ -1724,6 +1777,8 @@ var CampaignsClient = class {
1724
1777
  *
1725
1778
  * Set only the executing actor's campaign notification preference. Does not change campaign delivery or other members' preferences.
1726
1779
 
1780
+ ### Authorization
1781
+
1727
1782
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
1728
1783
  *
1729
1784
  * `PUT /api/v1/campaigns/{campaignId}/notifications`
@@ -1743,6 +1798,8 @@ var CampaignsClient = class {
1743
1798
  *
1744
1799
  * Filter and page the canonical campaign plan or pending live proposal, with the same attention rules as the campaign editor.
1745
1800
 
1801
+ ### Authorization
1802
+
1746
1803
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
1747
1804
  *
1748
1805
  * `GET /api/v1/campaigns/{campaignId}/offers`
@@ -1762,6 +1819,8 @@ var CampaignsClient = class {
1762
1819
  *
1763
1820
  * Apply one action to 1–20 reviewed targets. Approve, run, approve_and_run, end, resume, retry, approve_change, discard_change, archive, restore or delete. Requires each expectedRevision and the pending version for live-change decisions. Named-approver and current role/store checks remain enforced. Duplicates execute once; partial failures remain explicit. Starting queues durable delivery; inspect campaign executions to verify marketplace outcomes.
1764
1821
 
1822
+ ### Authorization
1823
+
1765
1824
  Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
1766
1825
  *
1767
1826
  * `POST /api/v1/campaigns/actions`
@@ -1815,6 +1874,8 @@ var CampaignsClient = class {
1815
1874
  *
1816
1875
  * Import 1–10 uploaded Excel document IDs. Preview defaults to true; set preview=false to save. Re-upload one document with campaignId to update a campaign. To apply a running campaign immediately, use applyChanges=true with the reviewed expectedRevision and expectedPendingVersion (null when none); only the named approver with publish permission may apply. Changed values and qualifying SKU removals use canonical marketplace validation and durable sync. Requires documents:read in addition to promotions:write. No browser session is required.
1817
1876
 
1877
+ ### Authorization
1878
+
1818
1879
  Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
1819
1880
  *
1820
1881
  * `POST /api/v1/campaigns/import`
@@ -1851,6 +1912,8 @@ var CampaignsClient = class {
1851
1912
  *
1852
1913
  * Read 1–50 eligible draft promotions as campaign offers without creating or publishing promotions. Exact organization/store ownership and existing campaign links are checked.
1853
1914
 
1915
+ ### Authorization
1916
+
1854
1917
  Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
1855
1918
  *
1856
1919
  * `POST /api/v1/campaigns/promotion-options`
@@ -1870,6 +1933,8 @@ var CampaignsClient = class {
1870
1933
  *
1871
1934
  * Read-only preflight of 1–10 saved campaign IDs or proposed plans. Uses the same readiness, connected-store and offer validation as approval. shiftToNow returns a proposed shifted plan; syncMode=campaign_start selects Full sync. Neither option saves or publishes. Save the returned plan with the reviewed revision before approve_and_run. Current marketplace delivery is separate execution evidence.
1872
1935
 
1936
+ ### Authorization
1937
+
1873
1938
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
1874
1939
  *
1875
1940
  * `POST /api/v1/campaigns/validate`
@@ -1909,12 +1974,31 @@ var CatalogClient = class {
1909
1974
  });
1910
1975
  }
1911
1976
  /**
1912
- * Query Catalog
1977
+ * Get Public Product Details
1913
1978
  *
1914
- * 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.
1979
+ * Read the same stored public product details as /catalog/{productId}, including product capabilities, FAQs, localizations, citations, variants, recorded prices, stock and marketplace offers. No account or AI generation. Missing products are explicit per-target failures.
1915
1980
  *
1916
- * `POST /api/v1/catalog/query`
1981
+ * `GET /api/v1/catalog/products`
1917
1982
  */
1983
+ listProducts(request, requestOptions) {
1984
+ const { productIds } = request ?? {};
1985
+ return this._http.request({
1986
+ method: "GET",
1987
+ path: "/api/v1/catalog/products",
1988
+ query: { productIds },
1989
+ body: void 0,
1990
+ ...mergeRequestOptions(requestOptions)
1991
+ });
1992
+ }
1993
+ /**
1994
+ * Query Catalog
1995
+ *
1996
+ * 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.
1997
+
1998
+ Fields bound the response. Maximum 500 rows per page. Omit counts after the first page with includeCount=false. No SQL input is accepted.
1999
+ *
2000
+ * `POST /api/v1/catalog/query`
2001
+ */
1918
2002
  query(request, requestOptions) {
1919
2003
  const { ...body } = request ?? {};
1920
2004
  return this._http.request({
@@ -2032,6 +2116,27 @@ var CheckoutSessionsClient = class {
2032
2116
  ...mergeRequestOptions(requestOptions)
2033
2117
  });
2034
2118
  }
2119
+ /**
2120
+ * Start payment for an approved checkout offer
2121
+ *
2122
+ * Requires checkout:write.
2123
+
2124
+ Starts seller Stripe, Qashier or HitPay hosted checkout. Buyer approval must match the current cart version, total and currency. Qashier and HitPay require a full delivery address before payment.
2125
+
2126
+ Qashier and HitPay support PayNow in Singapore when enabled for the merchant. Payment is confirmed using signed webhooks and authenticated server-side receipts. Closing the buyer page does not cancel or complete payment.
2127
+ *
2128
+ * `POST /api/v1/checkout-sessions/{sessionId}/pay`
2129
+ */
2130
+ pay(request, requestOptions) {
2131
+ const { sessionId, ...body } = request ?? {};
2132
+ return this._http.request({
2133
+ method: "POST",
2134
+ path: `/api/v1/checkout-sessions/${encodePathParam("sessionId", sessionId)}/pay`,
2135
+ query: void 0,
2136
+ body,
2137
+ ...mergeRequestOptions(requestOptions)
2138
+ });
2139
+ }
2035
2140
  };
2036
2141
  var CommerceClient = class {
2037
2142
  constructor(_http) {
@@ -2088,12 +2193,14 @@ var CommerceClient = class {
2088
2193
  });
2089
2194
  }
2090
2195
  /**
2091
- * Start Commerce Verification
2092
- *
2093
- * 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.
2094
- *
2095
- * `POST /api/v1/commerce/state/verify/jobs`
2096
- */
2196
+ * Start Commerce Verification
2197
+ *
2198
+ * Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read.
2199
+
2200
+ Returns immediately with operationIds. Read bulk.status and bulk.results; a client timeout does not discard work. Fulfillment correlations continue to use commerce.verifyState.
2201
+ *
2202
+ * `POST /api/v1/commerce/state/verify/jobs`
2203
+ */
2097
2204
  startVerification(request, requestOptions) {
2098
2205
  const { ...body } = request ?? {};
2099
2206
  return this._http.request({
@@ -2172,12 +2279,14 @@ var DocumentsClient = class {
2172
2279
  });
2173
2280
  }
2174
2281
  /**
2175
- * Get Document
2176
- *
2177
- * Read one knowledge base document and its indexing status. Requires `documents:read`. Set includeDownloadUrl=true for a private file URL valid for five minutes, suitable for SDK file downloads. URLs are scoped to the authenticated organization and are not returned for bank statements. Responses must not be cached.
2178
- *
2179
- * `GET /api/v1/documents/{documentId}`
2180
- */
2282
+ * Get Document
2283
+ *
2284
+ * Read one knowledge base document and its indexing status. Requires `documents:read`.
2285
+
2286
+ Set includeDownloadUrl=true for a private file URL valid for five minutes, suitable for SDK file downloads. URLs are scoped to the authenticated organization and are not returned for bank statements. Responses must not be cached.
2287
+ *
2288
+ * `GET /api/v1/documents/{documentId}`
2289
+ */
2181
2290
  get(request, requestOptions) {
2182
2291
  const { documentId, organizationId, includeDownloadUrl } = request ?? {};
2183
2292
  return this._http.request({
@@ -2233,6 +2342,82 @@ var FeedClient = class {
2233
2342
  });
2234
2343
  }
2235
2344
  };
2345
+ var FollowUpsClient = class {
2346
+ constructor(_http) {
2347
+ __publicField(this, "_http", _http);
2348
+ }
2349
+ /**
2350
+ * List Follow-ups
2351
+ *
2352
+ * Your follow-ups on every conversation, plus every follow-up on `threadId` (whoever left it) when you can open that conversation. Waiting follow-ups come first.
2353
+
2354
+ `state` is `waiting`, `fired`, `expired` (it waited past `expiresAt`), `canceled` or `failed` (`failure` says why: its owner lost access, or the conversation was stopped or its last run failed).
2355
+
2356
+ ### Authorization
2357
+
2358
+ Requires `agents:invoke`.
2359
+ *
2360
+ * `GET /api/v1/follow-ups`
2361
+ */
2362
+ list(request = {}, requestOptions) {
2363
+ const { threadId, limit, organizationId } = request ?? {};
2364
+ return this._http.request({
2365
+ method: "GET",
2366
+ path: "/api/v1/follow-ups",
2367
+ query: { threadId, limit, organizationId },
2368
+ body: void 0,
2369
+ ...mergeRequestOptions(requestOptions)
2370
+ });
2371
+ }
2372
+ /**
2373
+ * Create Follow-up
2374
+ *
2375
+ * Leave a one-shot follow-up on an assistant conversation you can open. Give exactly one of `at` (ISO 8601 with a timezone), `after` (a duration such as 90m, 4h, 14d or 2w) or `eventType` with an optional CEL `match` over `event` (the event's condition fields, as in AOP event triggers).
2376
+
2377
+ When it fires it continues `threadId` from `note` as you (`then=resume`, the default) or only emails you (`then=notify`). It never interrupts a run in progress: the continuation waits in the conversation's queue. A stopped conversation, or one whose last run failed, is not continued.
2378
+
2379
+ An event follow-up waits `expires` (10d by default) for its event; a timed one may be at most a year ahead.
2380
+
2381
+ ### Authorization
2382
+
2383
+ Requires `agents:invoke` with a person's credential (API key or session); OAuth client credentials
2384
+ *
2385
+ * `POST /api/v1/follow-ups`
2386
+ */
2387
+ create(request, requestOptions) {
2388
+ const { ...body } = request ?? {};
2389
+ return this._http.request({
2390
+ method: "POST",
2391
+ path: "/api/v1/follow-ups",
2392
+ query: void 0,
2393
+ body,
2394
+ ...mergeRequestOptions(requestOptions)
2395
+ });
2396
+ }
2397
+ /**
2398
+ * Cancel Follow-ups
2399
+ *
2400
+ * Cancel your follow-ups that have not fired, so they never fire. One that already fired, expired or was canceled reports why per id; another person's follow-up reads as not found.
2401
+
2402
+ Returns `followUpIds`, `succeededCount`, `failedCount` and ordered `results`; `ok` is true only when every id was canceled.
2403
+
2404
+ ### Authorization
2405
+
2406
+ Requires `agents:invoke`.
2407
+ *
2408
+ * `POST /api/v1/follow-ups/cancel`
2409
+ */
2410
+ cancel(request, requestOptions) {
2411
+ const { ...body } = request ?? {};
2412
+ return this._http.request({
2413
+ method: "POST",
2414
+ path: "/api/v1/follow-ups/cancel",
2415
+ query: void 0,
2416
+ body,
2417
+ ...mergeRequestOptions(requestOptions)
2418
+ });
2419
+ }
2420
+ };
2236
2421
  var ImagesClient = class {
2237
2422
  constructor(_http) {
2238
2423
  __publicField(this, "_http", _http);
@@ -2755,9 +2940,9 @@ var OrdersClient = class {
2755
2940
  /**
2756
2941
  * Get Order Action Options
2757
2942
  *
2758
- * Ask the marketplace which choices an action needs, such as pickup or drop-off for `ship`. Requires `orders:write`.
2943
+ * Read marketplace choices for this order, including seller cancellation reasons for `action=cancel`. Eligible orders can include orders awaiting carrier collection. Requires `orders:write`.
2759
2944
 
2760
- Send the chosen choice's `payload` with `POST /api/v1/orders/{orderId}/actions`.
2945
+ Review the selected reason or fulfillment choice and send its exact `payload` with `POST /api/v1/orders/{orderId}/actions`.
2761
2946
  *
2762
2947
  * `GET /api/v1/orders/{orderId}/action-options`
2763
2948
  */
@@ -2776,7 +2961,7 @@ var OrdersClient = class {
2776
2961
  *
2777
2962
  * The order's 20 most recent action jobs, newest first, plus its latest successful label job. Requires `orders:read`.
2778
2963
 
2779
- Poll this after queueing an action. A succeeded `labels` job lists its label files in `labels`.
2964
+ After submission, find the returned job ID here. Read its status for the marketplace outcome and `errorMessage` for failures. A succeeded `labels` job lists its label files in `labels`.
2780
2965
  *
2781
2966
  * `GET /api/v1/orders/{orderId}/actions`
2782
2967
  */
@@ -2795,7 +2980,7 @@ var OrdersClient = class {
2795
2980
  *
2796
2981
  * Ship, cancel, generate shipping labels for, or update tracking on a marketplace order. Requires `orders:write`.
2797
2982
 
2798
- The marketplace call runs in the background: the response is `202` with `jobId`; poll `GET /api/v1/orders/{orderId}/actions`. A repeated `idempotencyKey` returns `200` with the original job.
2983
+ For `cancel`, send the exact payload of a reviewed cancellation reason from the action options endpoint. The marketplace call runs in the background. The `202` response provides a `jobId`. Poll `GET /api/v1/orders/{orderId}/actions` for its outcome. A repeated `idempotencyKey` with the same request returns `200` with the original job.
2799
2984
  *
2800
2985
  * `POST /api/v1/orders/{orderId}/actions`
2801
2986
  */
@@ -2818,7 +3003,7 @@ var OrdersClient = class {
2818
3003
 
2819
3004
  ### Choices
2820
3005
 
2821
- Read current marketplace choices for ship, cancel, labels or update_tracking for 1–50 order UUIDs using repeated orderIds query parameters. The shared order service checks status, store connection and marketplace capability. Results preserve first-requested order, with explicit per-order errors. Use the exact choice payload and supply any fields marked requiresInput. An unsupported marketplace operation is an explicit failure, not a silently skipped order. Ship arranges shipment; labels generates printable files. Fulfillment behavior is identical to the existing single-order API and workspace UI.
3006
+ Read marketplace choices for `ship`, `cancel`, `labels`, or `update_tracking` for 1–50 UUIDs using repeated `orderIds` parameters. Results preserve first-requested order and report any per-order eligibility or capability errors. For `cancel`, review an available reason for each order and use its exact `payload`. Orders awaiting collection can be eligible when the marketplace permits it. For other actions, supply any fields marked `requiresInput`.
2822
3007
  *
2823
3008
  * `GET /api/v1/orders/actions`
2824
3009
  */
@@ -2841,11 +3026,9 @@ var OrdersClient = class {
2841
3026
 
2842
3027
  ### Batch submission
2843
3028
 
2844
- Queue 1–50 distinct order operations with a UUID requestId. Each operation has orderId, action (ship, cancel, labels or update_tracking), and optional payload. Use exact marketplace choices from GET /api/v1/orders/actions and supply required carrier, tracking, pickup/drop-off or cancellation details. One operation per order is allowed in a batch; later stages such as labels after shipment require another submission. All targets are authorized before any enqueue. Per-order failures are isolated; results retain request order and include every accepted jobId. data.success means all submissions were accepted, not that marketplace processing finished.
3029
+ Queue 1–50 distinct orders with a UUID `requestId` and one operation per order. Each operation carries an `orderId`, `action`, and any marketplace inputs in `payload`. For `cancel`, send the reviewed reason's exact payload from GET /api/v1/orders/actions. All targets are authorized before enqueue. Per-order results preserve request order and report acceptance or errors.
2845
3030
 
2846
- ### Recovery and completion
2847
-
2848
- Retain requestId and unchanged operations for retr
3031
+ Retain `requestId` and unchanged operations for retries. Follow `links.poll` with every returned job ID to check the marketplace outcomes. The worker rechecks permissions before each marketplace write.
2849
3032
  *
2850
3033
  * `POST /api/v1/orders/actions`
2851
3034
  */
@@ -2868,7 +3051,7 @@ var OrdersClient = class {
2868
3051
 
2869
3052
  ### Outcomes and labels
2870
3053
 
2871
- Read every requested order action job in one batch of 1–50 UUIDs using repeated jobIds parameters. Results preserve first-requested order. data.success is true only when every requested job succeeded; failedCount includes failed and not_supported, while pendingCount includes queued and running. Successful label jobs contain downloadable files in labels[]. A missing or cross-organization job returns 404; current store restrictions apply to all targets. The top-level completed status describes the lookup, not job completion. No raw provider acknowledgements are exposed.
3054
+ Read 1–50 jobs using repeated `jobIds` parameters. Results preserve first-requested order. `data.success` requires every job to succeed. `pendingCount` includes queued and running jobs. `failedCount` includes failed and unsupported jobs. Amazon cancellations can stay running while its feed is processed. Successful label jobs return download links. A missing or cross-organization job returns 404. Current store restrictions apply.
2872
3055
  *
2873
3056
  * `GET /api/v1/orders/actions/jobs`
2874
3057
  */
@@ -2956,7 +3139,13 @@ var PriceBooksClient = class {
2956
3139
  *
2957
3140
  * Create a marketplace price book rule for a platform (optional store and country). Does not change Omni product prices. Requires `price_books:write`.
2958
3141
 
3142
+ ### Pricing
3143
+
2959
3144
  `expression` is the buyer formula and replaces markup percent. `price` in that formula is the catalog price, not cost price. Without an expression, `marginValue` is the markup percent.
3145
+
3146
+ ### Direct checkout
3147
+
3148
+ The Direct checkout channel (`agentic_checkout`) applies immediately to direct checkout and public headline prices, defaults to catalog price with zero markup when no enabled rule matches, and requires null/omitted storeId and country. Marketplace rules only price their own offers; Direct checkout rules require no marketplace sync.
2960
3149
  *
2961
3150
  * `POST /api/v1/price-books`
2962
3151
  */
@@ -3459,6 +3648,69 @@ var ProductsClient = class {
3459
3648
  ...mergeRequestOptions(requestOptions)
3460
3649
  });
3461
3650
  }
3651
+ /**
3652
+ * Get Bulk Product Update Options
3653
+ *
3654
+ * List active stock-file sources used by Omni Bulk Update, including manual warehouses and supported CSV sources. Requires catalog:read and inventory.read.
3655
+
3656
+ Use an eligible sourceId before starting inventory updates. Ask the seller to choose when multiple sources are eligible.
3657
+ *
3658
+ * `GET /api/v1/products/bulk-update`
3659
+ */
3660
+ bulkUpdateOptions(request = {}, requestOptions) {
3661
+ const { organizationId } = request ?? {};
3662
+ return this._http.request({
3663
+ method: "GET",
3664
+ path: "/api/v1/products/bulk-update",
3665
+ query: { organizationId },
3666
+ body: void 0,
3667
+ ...mergeRequestOptions(requestOptions)
3668
+ });
3669
+ }
3670
+ /**
3671
+ * Bulk Update Product Prices and Stock
3672
+ *
3673
+ * Update existing catalog SKUs from 1–10 uploaded CSV or Excel documentIds, with up to 10,000 rows per file. Requires catalog:write and the corresponding product or inventory capabilities.
3674
+
3675
+ ### File and source selection
3676
+
3677
+ Exact SKU matching preserves zero values and rejects duplicate, ambiguous, or unknown SKUs. Inventory needs an authorized manual or CSV sourceId or locationId. Explicit column names override detection. syncToMarketplaces defaults to true. Use marketplaces to limit which existing listings are synced.
3678
+
3679
+ ### Track the results
3680
+
3681
+ Pass every saved import reference to products.bulkUpdateStatus. Results preserve document order. The workflow runs after the request returns. Applied inventory means source balances were saved and listing sync was queued.
3682
+ *
3683
+ * `POST /api/v1/products/bulk-update`
3684
+ */
3685
+ bulkUpdate(request, requestOptions) {
3686
+ const { ...body } = request ?? {};
3687
+ return this._http.request({
3688
+ method: "POST",
3689
+ path: "/api/v1/products/bulk-update",
3690
+ query: void 0,
3691
+ body,
3692
+ ...mergeRequestOptions(requestOptions)
3693
+ });
3694
+ }
3695
+ /**
3696
+ * Get Bulk Product Update Status
3697
+ *
3698
+ * Read up to 20 saved imports in request order. Requires catalog:read and the corresponding product or inventory read capabilities. Imports are deduplicated by kind and importId.
3699
+
3700
+ Pending imports are incomplete. Results report invalid or unknown rows and missing organization-scoped imports. Use includeRows with rowOffset and rowLimit for up to 100 rows per import. The result describes saved catalog stock.
3701
+ *
3702
+ * `POST /api/v1/products/bulk-update/status`
3703
+ */
3704
+ bulkUpdateStatus(request, requestOptions) {
3705
+ const { ...body } = request ?? {};
3706
+ return this._http.request({
3707
+ method: "POST",
3708
+ path: "/api/v1/products/bulk-update/status",
3709
+ query: void 0,
3710
+ body,
3711
+ ...mergeRequestOptions(requestOptions)
3712
+ });
3713
+ }
3462
3714
  /**
3463
3715
  * Compare Product Market Prices
3464
3716
  *
@@ -3596,11 +3848,7 @@ var ProductsClient = class {
3596
3848
  *
3597
3849
  * Merge exact-SKU duplicate products into one master product per group. The master keeps its content, images, price and stock; the group's other products are archived into it, and orders, reviews, promotions and other catalog references move to the master.
3598
3850
 
3599
- All marketplace listings move to the master, including listings in other stores of the same marketplace. Different listing identities in the same store block the group. No marketplace listing is delisted, rewritten or republished.
3600
-
3601
- Each group commits independently; the response lists every group's outcome. Sources with inventory history or immutable order composition snapshots must be reconciled before archiving so returns and stock replays keep their targets.
3602
-
3603
- Supports every OmniCommerce marketplace. Variant families, bundles and product
3851
+ All marketplace listings move to the master, including listings in other stores of the same marketplace. Different listing identities in the same store block the group. Standalone-only merges do not publish. When variants remain, variantStrategy selects keeping the master's variant set or merging compatible source variants, and the same operation automatically publishes the resulting variants to every preserved store listing. Live/draft visibility is retained; the marketplace may require a replacement listing for an incompatible variant s
3604
3852
  *
3605
3853
  * `POST /api/v1/products/duplicates/merge`
3606
3854
  */
@@ -3638,12 +3886,14 @@ var ProductsClient = class {
3638
3886
  });
3639
3887
  }
3640
3888
  /**
3641
- * Get Duplicate Scan
3642
- *
3643
- * Read the same organization-scoped duplicate scan status as Products → Check duplicates. Requires catalog:read. queued/running means the durable scan is still in progress; failed includes errorMessage. completed exposes computedAt and the number of duplicate products. Results are read through products.list with status=duplicates and detail=full. The shared UI scan currently examines at most the 5,000 most recently updated non-archived root products; a completed scan is not proof that a larger catalog has been fully examined.
3644
- *
3645
- * `GET /api/v1/products/duplicates/scan`
3646
- */
3889
+ * Get Duplicate Scan
3890
+ *
3891
+ * Read the same organization-scoped duplicate scan status as Products → Check duplicates. Requires catalog:read.
3892
+
3893
+ queued/running means the durable scan is still in progress; failed includes errorMessage. completed exposes computedAt and the number of duplicate products. Results are read through products.list with status=duplicates and detail=full. The shared UI scan currently examines at most the 5,000 most recently updated non-archived root products; a completed scan is not proof that a larger catalog has been fully examined.
3894
+ *
3895
+ * `GET /api/v1/products/duplicates/scan`
3896
+ */
3647
3897
  getDuplicateScan(request = {}, requestOptions) {
3648
3898
  const { organizationId } = request ?? {};
3649
3899
  return this._http.request({
@@ -3655,12 +3905,14 @@ var ProductsClient = class {
3655
3905
  });
3656
3906
  }
3657
3907
  /**
3658
- * Scan Duplicate Products
3659
- *
3660
- * Start the existing durable organization duplicate scan, equivalent to Products → Check duplicates. Requires catalog:write. An already queued/running scan is reused. This only refreshes duplicate evidence; it does not merge, publish or delist products. Read completion with products.getDuplicateScan, then list status=duplicates, duplicateType=sku, detail=full and page all matching results before previewing a merge. Uses the same 5,000-candidate scan limit as the UI.
3661
- *
3662
- * `POST /api/v1/products/duplicates/scan`
3663
- */
3908
+ * Scan Duplicate Products
3909
+ *
3910
+ * Start the existing durable organization duplicate scan, equivalent to Products → Check duplicates. Requires catalog:write.
3911
+
3912
+ An already queued/running scan is reused. This only refreshes duplicate evidence; it does not merge, publish or delist products. Read completion with products.getDuplicateScan, then list status=duplicates, duplicateType=sku, detail=full and page all matching results before previewing a merge. Uses the same 5,000-candidate scan limit as the UI.
3913
+ *
3914
+ * `POST /api/v1/products/duplicates/scan`
3915
+ */
3664
3916
  scanDuplicates(request, requestOptions) {
3665
3917
  const { ...body } = request ?? {};
3666
3918
  return this._http.request({
@@ -3876,6 +4128,8 @@ var PromotionsClient = class {
3876
4128
  *
3877
4129
  * Read canonical effective prices for up to 50 products, optionally scoped to an exact marketplace, store and country. Uses the same authoring permissions as the application's preview. Does not publish or change prices.
3878
4130
 
4131
+ ### Authorization
4132
+
3879
4133
  Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
3880
4134
  *
3881
4135
  * `POST /api/v1/promotions/{promotionId}/preview`
@@ -3925,12 +4179,14 @@ var PromotionsClient = class {
3925
4179
  });
3926
4180
  }
3927
4181
  /**
3928
- * Assign Products to Promotion
3929
- *
3930
- * Assign qualifying products and optional per-product discounts to a promotion. Active or scheduled promotions automatically queue durable marketplace delivery; drafts retain assignments for later publication. Requires `promotions:write` and current publish permission when publishing. Read promotion delivery to verify every target store.
3931
- *
3932
- * `POST /api/v1/promotions/{promotionId}/products`
3933
- */
4182
+ * Assign Products to Promotion
4183
+ *
4184
+ * Assign qualifying products and optional per-product discounts to a promotion. Active or scheduled promotions automatically queue durable marketplace delivery; drafts retain assignments for later publication.
4185
+
4186
+ Requires `promotions:write` and current publish permission when publishing. Read promotion delivery to verify every target store.
4187
+ *
4188
+ * `POST /api/v1/promotions/{promotionId}/products`
4189
+ */
3934
4190
  addProducts(request, requestOptions) {
3935
4191
  const { promotionId, organizationId, ...body } = request ?? {};
3936
4192
  return this._http.request({
@@ -3965,6 +4221,8 @@ var PromotionsClient = class {
3965
4221
  *
3966
4222
  * Create 1–50 promotions using the shared flat promotion-write contract, with qualifying products and per-product discounts. Set promotion.status=draft explicitly when preparing drafts; otherwise the canonical creation flow activates promotions and requires publish permission. Saved IDs and delivery evidence are retained on partial delivery failure; retry those IDs rather than creating duplicates.
3967
4223
 
4224
+ ### Authorization
4225
+
3968
4226
  Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
3969
4227
  *
3970
4228
  * `POST /api/v1/promotions/batch`
@@ -3984,6 +4242,8 @@ var PromotionsClient = class {
3984
4242
  *
3985
4243
  * Search campaign options with assigned promotions in the authenticated organization.
3986
4244
 
4245
+ ### Authorization
4246
+
3987
4247
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
3988
4248
  *
3989
4249
  * `GET /api/v1/promotions/campaign-options`
@@ -4003,6 +4263,8 @@ var PromotionsClient = class {
4003
4263
  *
4004
4264
  * Report every canonical marketplace and promotion kind, including native, projected, browser-AOP and unsupported capabilities and voucher subtypes. WhatsApp's lack of promotion publishing is explicit.
4005
4265
 
4266
+ ### Authorization
4267
+
4006
4268
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
4007
4269
  *
4008
4270
  * `GET /api/v1/promotions/capabilities`
@@ -4022,6 +4284,8 @@ var PromotionsClient = class {
4022
4284
  *
4023
4285
  * Delete 1–500 promotions with the canonical marketplace cleanup flow. Requires promotions.delete permission. Ordered per-target errors and partial failures remain explicit.
4024
4286
 
4287
+ ### Authorization
4288
+
4025
4289
  Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
4026
4290
  *
4027
4291
  * `POST /api/v1/promotions/delete`
@@ -4041,6 +4305,8 @@ var PromotionsClient = class {
4041
4305
  *
4042
4306
  * Read exact store/assignment delivery evidence for 1–50 promotions. A saved or active promotion is not proof that marketplace delivery succeeded. Check every returned deliveryStatuses entry, including explicit unsupported or unavailable states.
4043
4307
 
4308
+ ### Authorization
4309
+
4044
4310
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
4045
4311
  *
4046
4312
  * `POST /api/v1/promotions/delivery`
@@ -4060,6 +4326,8 @@ var PromotionsClient = class {
4060
4326
  *
4061
4327
  * Search or check up to 50 product IDs using canonical promotion assignment eligibility for the selected exact stores. Draft/unlisted products can be eligible for planning; live marketplace availability is rechecked during delivery.
4062
4328
 
4329
+ ### Authorization
4330
+
4063
4331
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
4064
4332
  *
4065
4333
  * `POST /api/v1/promotions/product-options`
@@ -4079,6 +4347,8 @@ var PromotionsClient = class {
4079
4347
  *
4080
4348
  * Activate/publish, pause or archive 1–500 promotions. Activation requires promotions.publish permission. Uses the canonical status transition and durable marketplace sync/teardown flow; verify delivery separately.
4081
4349
 
4350
+ ### Authorization
4351
+
4082
4352
  Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
4083
4353
  *
4084
4354
  * `POST /api/v1/promotions/status`
@@ -4098,6 +4368,8 @@ var PromotionsClient = class {
4098
4368
  *
4099
4369
  * Read-only validation of 1–50 saved promotion IDs or proposed definitions and product IDs. Reports marketplace terms, connected-store targeting and qualifying-product issues per target. Publishing still revalidates current state and can encounter marketplace API rejections.
4100
4370
 
4371
+ ### Authorization
4372
+
4101
4373
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
4102
4374
  *
4103
4375
  * `POST /api/v1/promotions/validate`
@@ -4167,6 +4439,25 @@ var ReturnsClient = class {
4167
4439
  ...mergeRequestOptions(requestOptions)
4168
4440
  });
4169
4441
  }
4442
+ /**
4443
+ * Upload Return Rejection Evidence
4444
+ *
4445
+ * Requires `orders:write`. For a rejection choice with `input.evidenceUpload: true`, upload one JPEG or PNG image up to 5 MB.
4446
+
4447
+ Use the receipt and filename in `input.evidence` when submitting the reviewed rejection. A rejection can include up to six images. Each receipt is scoped to its return and expires after 24 hours.
4448
+ *
4449
+ * `POST /api/v1/returns/{returnId}/evidence`
4450
+ */
4451
+ uploadEvidence(request, requestOptions) {
4452
+ const { returnId, organizationId, ...body } = request ?? {};
4453
+ return this._http.request({
4454
+ method: "POST",
4455
+ path: `/api/v1/returns/${encodePathParam("returnId", returnId)}/evidence`,
4456
+ query: { organizationId },
4457
+ body: toMultipartBody(body),
4458
+ ...mergeRequestOptions(requestOptions)
4459
+ });
4460
+ }
4170
4461
  /**
4171
4462
  * Check Return Actions
4172
4463
  *
@@ -5081,6 +5372,7 @@ var OmniGeneratedClient = class {
5081
5372
  __publicField(this, "documents");
5082
5373
  __publicField(this, "evaluate");
5083
5374
  __publicField(this, "feed");
5375
+ __publicField(this, "followUps");
5084
5376
  __publicField(this, "images");
5085
5377
  __publicField(this, "inventory");
5086
5378
  __publicField(this, "jobs");
@@ -5122,6 +5414,7 @@ var OmniGeneratedClient = class {
5122
5414
  this.documents = new DocumentsClient(this._http);
5123
5415
  this.evaluate = new EvaluateClient(this._http);
5124
5416
  this.feed = new FeedClient(this._http);
5417
+ this.followUps = new FollowUpsClient(this._http);
5125
5418
  this.images = new ImagesClient(this._http);
5126
5419
  this.inventory = new InventoryClient(this._http);
5127
5420
  this.jobs = new JobsClient(this._http);