@omni-commerce/cli 0.13.0 → 0.14.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/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @omni-commerce/cli
2
2
 
3
+ CLI 0.14.1 adds `omni products bulk-update`, `bulk-update-status`, and `bulk-update-options` for the same durable price and stock file workflow as Omni Bulk Update.
4
+
3
5
  CLI 0.13.0 adds duplicate discovery, master eligibility and server-side merge dry runs. Use `products scan-duplicates`, `get-duplicate-scan`,
4
6
  `list --status duplicates --duplicate-type sku --detail full`,
5
7
  `preview-duplicate-merge` and `merge-duplicates`. `--help` and `--schema` include
package/dist/index.js CHANGED
@@ -84,7 +84,7 @@ async function openBrowser(url) {
84
84
  }
85
85
 
86
86
  // src/version.ts
87
- var CLI_VERSION = "0.13.0";
87
+ var CLI_VERSION = "0.14.1";
88
88
 
89
89
  // src/browser-login.ts
90
90
  function loginOrigin(baseUrl) {
@@ -412,7 +412,7 @@ var COMMANDS = [
412
412
  httpMethod: "POST",
413
413
  path: "/api/embed/{deploymentId}/checkout-sessions/{operation}",
414
414
  summary: "Manage customer-owned purchase offers",
415
- description: "### Operations\n\ncreate: offers[] (1\u20135), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1\u201320). 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.\n\n### Results and safeguards\n\nBatches return ordered per-target results, succeededCount and failedCount. At most ten unpaid offers may be held per customer. Merchant-approved currency, countries, shipping and tax terms are required. Shopify-listed products return the supported Shopify checkout handoff.\n\n### Payment\n\nCompletion reuses the existing Stripe ACP or x402 rail. Hosted card checkout requires this organization's seller Stripe key and a public HTTPS webhook destination; signed Stripe events and a one-shot durable deadline use the same completion service. The page collects an address within the quoted country. Indeterminate confirmation remains payment_pending and blocks a new payment; x402 uncertainty requires merchant reconciliation. Direct creation honors configured bot verification. Payment completion does not book a carrier or establish delivery.\n\n### Signed offers and buyer agents\n\nWhen the platform signing key is configured, payable offers include checkoutJwt: an ES256 JWT of the offer terms (merchant, cart_version, UCP line items and totals in minor units, expiry). Verify it with the /.well-known/ucp signing_keys entry named by its kid; it can serve as an AP2 checkout_jwt. Requests may carry a Web Bot Auth signature (Signature, Signature-Input and Signature-Agent headers); the verified agent origin is recorded on the offer and order.",
415
+ description: "### Operations\n\ncreate: offers[] (1\u20135), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1\u201320). 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.\n\n### Results and safeguards\n\nBatches return ordered per-target results, succeededCount and failedCount. At most ten unpaid offers may be held per customer. Merchant-approved currency, countries, shipping and tax terms are required. Shopify-listed products return the supported Shopify checkout handoff.\n\n### Payment\n\nCompletion uses the configured Stripe ACP, x402, Qashier or HitPay rail. Qashier uses authenticated server-side receipts and signed webhooks with a durable expiry deadline. PayNow is available through Qashier or HitPay when enabled in the merchant account; no bank statement import is required. Qashier and HitPay require a full delivery address before payment. Hosted card checkout requires this organization's seller Stripe key and a public HTTPS webhook destination; signed Stripe events and a one-shot durable deadline use the same completion service. The page collects an address within the quoted country. Indeterminate confirmation remains payment_pending and blocks a new payment; x402 uncertainty requires merchant reconciliation. Direct creation honors configured bot verification. Payment completion does not book a carrier or establish delivery.\n\n### Signed offers and buyer agents\n\nWhen the platform signing key is configured, payable offers include checkoutJwt: an ES256 JWT of the offer terms (merchant, cart_version, UCP line items and totals in minor units, expiry). Verify it with the /.well-known/ucp signing_keys entry named by its kid; it can serve as an AP2 checkout_jwt. Requests may carry a Web Bot Auth signature (Signature, Signature-Input and Signature-Agent headers); the verified agent origin is recorded on the offer and order.",
416
416
  flags: [
417
417
  {
418
418
  name: "deploymentId",
@@ -431,6 +431,58 @@ var COMMANDS = [
431
431
  acceptsFile: false,
432
432
  bodyRequired: true
433
433
  },
434
+ {
435
+ trail: ["agents", "messages"],
436
+ resourcePath: ["agents"],
437
+ methodName: "messages",
438
+ httpMethod: "POST",
439
+ path: "/api/v1/agents/{agentId}/messages",
440
+ summary: "Send a message to an agent",
441
+ description: "Message the exact built-in or custom agent in the URL, using its saved model, instructions, tools, permissions and Programmatic starting mode.\n\n### Authentication\nRequires 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`.\n\n### Conversation and execution\n- The same caller, agent and `clientThreadKey` continue one conversation. Different callers, agents and organizations are isolated.\n- No model, prompt or tool overrides are accepted.\n- `wait=false` queues durable work and returns 202; `wait=true` returns the final reply or pending approvals.\n- Send `decisions` with the same `clientThreadKey` to approve or reject a paused run.",
442
+ flags: [
443
+ {
444
+ name: "agentId",
445
+ flag: "agent-id",
446
+ required: true,
447
+ source: "path"
448
+ }
449
+ ],
450
+ acceptsJsonBody: true,
451
+ acceptsFile: false,
452
+ bodyRequired: true
453
+ },
454
+ {
455
+ trail: ["agents", "get-runs"],
456
+ resourcePath: ["agents"],
457
+ methodName: "getRuns",
458
+ httpMethod: "GET",
459
+ path: "/api/v1/agents/{agentId}/runs/{runId}",
460
+ summary: "Get an agent message run",
461
+ description: "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.",
462
+ flags: [
463
+ {
464
+ name: "agentId",
465
+ flag: "agent-id",
466
+ required: true,
467
+ source: "path"
468
+ },
469
+ {
470
+ name: "runId",
471
+ flag: "run-id",
472
+ required: true,
473
+ source: "path"
474
+ },
475
+ {
476
+ name: "organizationId",
477
+ flag: "organization-id",
478
+ required: false,
479
+ source: "query"
480
+ }
481
+ ],
482
+ acceptsJsonBody: false,
483
+ acceptsFile: false,
484
+ bodyRequired: false
485
+ },
434
486
  {
435
487
  trail: ["agents", "general", "invoke"],
436
488
  resourcePath: ["agents", "general"],
@@ -1591,7 +1643,7 @@ var COMMANDS = [
1591
1643
  httpMethod: "GET",
1592
1644
  path: "/api/v1/campaigns/{campaignId}/analytics",
1593
1645
  summary: "Get Campaign Analytics",
1594
- description: "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.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
1646
+ description: "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.\n\n### Authorization\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
1595
1647
  flags: [
1596
1648
  {
1597
1649
  name: "campaignId",
@@ -1623,7 +1675,7 @@ var COMMANDS = [
1623
1675
  httpMethod: "GET",
1624
1676
  path: "/api/v1/campaigns/{campaignId}/notifications",
1625
1677
  summary: "Get Campaign Notifications",
1626
- description: "Read the executing actor's campaign notification preference.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
1678
+ description: "Read the executing actor's campaign notification preference.\n\n### Authorization\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
1627
1679
  flags: [
1628
1680
  {
1629
1681
  name: "campaignId",
@@ -1649,7 +1701,7 @@ var COMMANDS = [
1649
1701
  httpMethod: "PUT",
1650
1702
  path: "/api/v1/campaigns/{campaignId}/notifications",
1651
1703
  summary: "Set Campaign Notifications",
1652
- description: "Set only the executing actor's campaign notification preference. Does not change campaign delivery or other members' preferences.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
1704
+ description: "Set only the executing actor's campaign notification preference. Does not change campaign delivery or other members' preferences.\n\n### Authorization\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
1653
1705
  flags: [
1654
1706
  {
1655
1707
  name: "campaignId",
@@ -1669,7 +1721,7 @@ var COMMANDS = [
1669
1721
  httpMethod: "GET",
1670
1722
  path: "/api/v1/campaigns/{campaignId}/offers",
1671
1723
  summary: "List Campaign Offers",
1672
- description: "Filter and page the canonical campaign plan or pending live proposal, with the same attention rules as the campaign editor.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
1724
+ description: "Filter and page the canonical campaign plan or pending live proposal, with the same attention rules as the campaign editor.\n\n### Authorization\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
1673
1725
  flags: [
1674
1726
  {
1675
1727
  name: "campaignId",
@@ -1725,7 +1777,7 @@ var COMMANDS = [
1725
1777
  httpMethod: "POST",
1726
1778
  path: "/api/v1/campaigns/actions",
1727
1779
  summary: "Act on Campaigns",
1728
- description: "Apply one action to 1\u201320 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.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
1780
+ description: "Apply one action to 1\u201320 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.\n\n### Authorization\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
1729
1781
  flags: [],
1730
1782
  acceptsJsonBody: true,
1731
1783
  acceptsFile: false,
@@ -1764,7 +1816,7 @@ var COMMANDS = [
1764
1816
  httpMethod: "POST",
1765
1817
  path: "/api/v1/campaigns/import",
1766
1818
  summary: "Import Campaign Workbooks",
1767
- description: "Import 1\u201310 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.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
1819
+ description: "Import 1\u201310 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.\n\n### Authorization\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
1768
1820
  flags: [],
1769
1821
  acceptsJsonBody: true,
1770
1822
  acceptsFile: false,
@@ -1797,7 +1849,7 @@ var COMMANDS = [
1797
1849
  httpMethod: "POST",
1798
1850
  path: "/api/v1/campaigns/promotion-options",
1799
1851
  summary: "Resolve Campaign Promotion Selection",
1800
- description: "Read 1\u201350 eligible draft promotions as campaign offers without creating or publishing promotions. Exact organization/store ownership and existing campaign links are checked.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
1852
+ description: "Read 1\u201350 eligible draft promotions as campaign offers without creating or publishing promotions. Exact organization/store ownership and existing campaign links are checked.\n\n### Authorization\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
1801
1853
  flags: [],
1802
1854
  acceptsJsonBody: true,
1803
1855
  acceptsFile: false,
@@ -1810,7 +1862,7 @@ var COMMANDS = [
1810
1862
  httpMethod: "POST",
1811
1863
  path: "/api/v1/campaigns/validate",
1812
1864
  summary: "Validate Campaigns",
1813
- description: "Read-only preflight of 1\u201310 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.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
1865
+ description: "Read-only preflight of 1\u201310 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.\n\n### Authorization\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
1814
1866
  flags: [],
1815
1867
  acceptsJsonBody: true,
1816
1868
  acceptsFile: false,
@@ -1893,7 +1945,7 @@ var COMMANDS = [
1893
1945
  httpMethod: "POST",
1894
1946
  path: "/api/v1/catalog/operations",
1895
1947
  summary: "Start Catalog Operation",
1896
- description: "Durable bulk price/cost updates for 1\u20132000 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.",
1948
+ description: "### Scope\n\nDurable bulk price/cost updates for 1\u20132000 products or variants. Requires catalog:write.\n\n### Consistency and progress\n\nIdentical 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.",
1897
1949
  flags: [],
1898
1950
  acceptsJsonBody: true,
1899
1951
  acceptsFile: false,
@@ -1925,6 +1977,26 @@ var COMMANDS = [
1925
1977
  acceptsFile: false,
1926
1978
  bodyRequired: true
1927
1979
  },
1980
+ {
1981
+ trail: ["catalog", "list-products"],
1982
+ resourcePath: ["catalog"],
1983
+ methodName: "listProducts",
1984
+ httpMethod: "GET",
1985
+ path: "/api/v1/catalog/products",
1986
+ summary: "Get Public Product Details",
1987
+ description: "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.",
1988
+ flags: [
1989
+ {
1990
+ name: "productIds",
1991
+ flag: "product-ids",
1992
+ required: true,
1993
+ source: "query"
1994
+ }
1995
+ ],
1996
+ acceptsJsonBody: false,
1997
+ acceptsFile: false,
1998
+ bodyRequired: false
1999
+ },
1928
2000
  {
1929
2001
  trail: ["catalog", "query"],
1930
2002
  resourcePath: ["catalog"],
@@ -1932,7 +2004,7 @@ var COMMANDS = [
1932
2004
  httpMethod: "POST",
1933
2005
  path: "/api/v1/catalog/query",
1934
2006
  summary: "Query Catalog",
1935
- 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.",
2007
+ 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.\n\nFields bound the response. Maximum 500 rows per page. Omit counts after the first page with includeCount=false. No SQL input is accepted.",
1936
2008
  flags: [],
1937
2009
  acceptsJsonBody: true,
1938
2010
  acceptsFile: false,
@@ -2081,6 +2153,26 @@ var COMMANDS = [
2081
2153
  acceptsFile: false,
2082
2154
  bodyRequired: true
2083
2155
  },
2156
+ {
2157
+ trail: ["checkout-sessions", "pay"],
2158
+ resourcePath: ["checkoutSessions"],
2159
+ methodName: "pay",
2160
+ httpMethod: "POST",
2161
+ path: "/api/v1/checkout-sessions/{sessionId}/pay",
2162
+ summary: "Start payment for an approved checkout offer",
2163
+ description: "Requires checkout:write.\n\nStarts 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.\n\nQashier 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.",
2164
+ flags: [
2165
+ {
2166
+ name: "sessionId",
2167
+ flag: "session-id",
2168
+ required: true,
2169
+ source: "path"
2170
+ }
2171
+ ],
2172
+ acceptsJsonBody: true,
2173
+ acceptsFile: false,
2174
+ bodyRequired: true
2175
+ },
2084
2176
  {
2085
2177
  trail: ["commerce", "await-jobs"],
2086
2178
  resourcePath: ["commerce"],
@@ -2114,7 +2206,7 @@ var COMMANDS = [
2114
2206
  httpMethod: "POST",
2115
2207
  path: "/api/v1/commerce/state/verify/jobs",
2116
2208
  summary: "Start Commerce Verification",
2117
- 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.",
2209
+ description: "Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read.\n\nReturns immediately with operationIds. Read bulk.status and bulk.results; a client timeout does not discard work. Fulfillment correlations continue to use commerce.verifyState.",
2118
2210
  flags: [],
2119
2211
  acceptsJsonBody: true,
2120
2212
  acceptsFile: false,
@@ -2179,7 +2271,7 @@ var COMMANDS = [
2179
2271
  httpMethod: "GET",
2180
2272
  path: "/api/v1/documents/{documentId}",
2181
2273
  summary: "Get Document",
2182
- description: "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.",
2274
+ description: "Read one knowledge base document and its indexing status. Requires `documents:read`.\n\nSet 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.",
2183
2275
  flags: [
2184
2276
  {
2185
2277
  name: "documentId",
@@ -2243,6 +2335,64 @@ var COMMANDS = [
2243
2335
  acceptsFile: false,
2244
2336
  bodyRequired: false
2245
2337
  },
2338
+ {
2339
+ trail: ["follow-ups", "list"],
2340
+ resourcePath: ["followUps"],
2341
+ methodName: "list",
2342
+ httpMethod: "GET",
2343
+ path: "/api/v1/follow-ups",
2344
+ summary: "List Follow-ups",
2345
+ description: "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.\n\n`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).\n\n### Authorization\n\nRequires `agents:invoke`.",
2346
+ flags: [
2347
+ {
2348
+ name: "threadId",
2349
+ flag: "thread-id",
2350
+ required: false,
2351
+ source: "query"
2352
+ },
2353
+ {
2354
+ name: "limit",
2355
+ flag: "limit",
2356
+ required: false,
2357
+ source: "query"
2358
+ },
2359
+ {
2360
+ name: "organizationId",
2361
+ flag: "organization-id",
2362
+ required: false,
2363
+ source: "query"
2364
+ }
2365
+ ],
2366
+ acceptsJsonBody: false,
2367
+ acceptsFile: false,
2368
+ bodyRequired: false
2369
+ },
2370
+ {
2371
+ trail: ["follow-ups", "create"],
2372
+ resourcePath: ["followUps"],
2373
+ methodName: "create",
2374
+ httpMethod: "POST",
2375
+ path: "/api/v1/follow-ups",
2376
+ summary: "Create Follow-up",
2377
+ description: "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).\n\nWhen 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.\n\nAn event follow-up waits `expires` (10d by default) for its event; a timed one may be at most a year ahead.\n\n### Authorization\n\nRequires `agents:invoke` with a person's credential (API key or session); OAuth client credentials act for no one and are refused. The follow-up runs as that person.",
2378
+ flags: [],
2379
+ acceptsJsonBody: true,
2380
+ acceptsFile: false,
2381
+ bodyRequired: true
2382
+ },
2383
+ {
2384
+ trail: ["follow-ups", "cancel"],
2385
+ resourcePath: ["followUps"],
2386
+ methodName: "cancel",
2387
+ httpMethod: "POST",
2388
+ path: "/api/v1/follow-ups/cancel",
2389
+ summary: "Cancel Follow-ups",
2390
+ description: "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.\n\nReturns `followUpIds`, `succeededCount`, `failedCount` and ordered `results`; `ok` is true only when every id was canceled.\n\n### Authorization\n\nRequires `agents:invoke`.",
2391
+ flags: [],
2392
+ acceptsJsonBody: true,
2393
+ acceptsFile: false,
2394
+ bodyRequired: true
2395
+ },
2246
2396
  {
2247
2397
  trail: ["images", "ghost-mannequin"],
2248
2398
  resourcePath: ["images"],
@@ -3088,7 +3238,7 @@ var COMMANDS = [
3088
3238
  httpMethod: "POST",
3089
3239
  path: "/api/v1/price-books",
3090
3240
  summary: "Create Price Book Rule",
3091
- description: "Create a marketplace price book rule for a platform (optional store and country). Does not change Omni product prices. Requires `price_books:write`.\n\n`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.",
3241
+ description: "Create a marketplace price book rule for a platform (optional store and country). Does not change Omni product prices. Requires `price_books:write`.\n\n### Pricing\n\n`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.\n\n### Direct checkout\n\nThe 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.",
3092
3242
  flags: [],
3093
3243
  acceptsJsonBody: true,
3094
3244
  acceptsFile: false,
@@ -3620,6 +3770,52 @@ var COMMANDS = [
3620
3770
  acceptsFile: false,
3621
3771
  bodyRequired: true
3622
3772
  },
3773
+ {
3774
+ trail: ["products", "bulk-update-options"],
3775
+ resourcePath: ["products"],
3776
+ methodName: "bulkUpdateOptions",
3777
+ httpMethod: "GET",
3778
+ path: "/api/v1/products/bulk-update",
3779
+ summary: "Get Bulk Product Update Options",
3780
+ description: "List the same active stock-file-capable sources as Omni Bulk Update, including manual warehouses and supported CSV sources. Requires catalog:read and inventory.read. Resolve a sourceId from this organization-scoped result before starting inventory/both updates; an ambiguous choice requires seller selection.",
3781
+ flags: [
3782
+ {
3783
+ name: "organizationId",
3784
+ flag: "organization-id",
3785
+ required: false,
3786
+ source: "query"
3787
+ }
3788
+ ],
3789
+ acceptsJsonBody: false,
3790
+ acceptsFile: false,
3791
+ bodyRequired: false
3792
+ },
3793
+ {
3794
+ trail: ["products", "bulk-update"],
3795
+ resourcePath: ["products"],
3796
+ methodName: "bulkUpdate",
3797
+ httpMethod: "POST",
3798
+ path: "/api/v1/products/bulk-update",
3799
+ summary: "Bulk Update Product Prices and Stock",
3800
+ description: "Update existing catalog SKUs from 1\u201310 uploaded CSV/Excel documentIds (up to 10,000 rows per file), using the same price and inventory import services as Omni Bulk Update. Requires catalog:write and the corresponding product/inventory capabilities. No product creation. Exact SKU matching rejects duplicate/ambiguous and unknown SKUs; zero values are preserved. Inventory requires an authorized manual/CSV sourceId or locationId. Explicit column names override detection. syncToMarketplaces defaults true; optional marketplaces restricts existing listing sync across supported platforms. Returns ordered per-document results and saved imports references. Updates continue through the durable file-update workflow beyond the caller lifetime; acceptance is not completion. Pass every returned reference to products.bulkUpdateStatus. Inventory apply means source balances saved and sync queued, not marketplace verification.",
3801
+ flags: [],
3802
+ acceptsJsonBody: true,
3803
+ acceptsFile: false,
3804
+ bodyRequired: true
3805
+ },
3806
+ {
3807
+ trail: ["products", "bulk-update-status"],
3808
+ resourcePath: ["products"],
3809
+ methodName: "bulkUpdateStatus",
3810
+ httpMethod: "POST",
3811
+ path: "/api/v1/products/bulk-update/status",
3812
+ summary: "Get Bulk Product Update Status",
3813
+ description: "Read up to 20 typed saved imports in requested order. Requires catalog:read and the corresponding product/inventory read capabilities. IDs are deduplicated by kind and importId. Pending imports are incomplete; invalid/unknown rows and missing organization-scoped imports remain explicit failures. Compact by default; includeRows returns at most 100 rows per import using rowOffset/rowLimit. Catalog stock apply does not certify marketplace state.",
3814
+ flags: [],
3815
+ acceptsJsonBody: true,
3816
+ acceptsFile: false,
3817
+ bodyRequired: true
3818
+ },
3623
3819
  {
3624
3820
  trail: ["products", "compare-prices"],
3625
3821
  resourcePath: ["products"],
@@ -3807,7 +4003,7 @@ var COMMANDS = [
3807
4003
  httpMethod: "POST",
3808
4004
  path: "/api/v1/products/duplicates/merge",
3809
4005
  summary: "Merge Duplicate Products",
3810
- description: "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.\n\nAll 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.\n\nEach 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.\n\nSupports every OmniCommerce marketplace. Variant families, bundles and products in different currencies cannot be merged. A stock-connected product may be kept as master; it cannot be archived into another product. Use preview masterSelections to choose an allowed master.\n\n### Authorization\n\nRequires `catalog:write`. This is a catalog operation with no remote marketplace writes.\n\n### Limits\n\n2\u201320 products and up to 10 groups per request. Pin a reviewed preview with `expectedGroups` to refuse groups that changed since.\n\nSet dryRun=true to simulate the same transaction and roll it back. The response has data.dryRun=true; succeededCount/failedCount count validation outcomes, mergedProductIds is empty and wouldMergeProductIds lists the planned sources. No product update events or duplicate scan refreshes are emitted. A successful simulation is not a saved merge; real execution validates current data again.",
4006
+ description: "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.\n\nAll 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 structure.\n\nEach 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.\n\nSupports every OmniCommerce marketplace. Variant merging requires an existing variant master, unambiguous SKU/option mappings and compatible dimensions. Bundles and products in different currencies cannot be merged. A stock-connected product may be kept as master; it cannot be archived into another product. Use preview masterSelections to choose an allowed master. Variant groups contain at most 200 child products.\n\n### Authorization\n\nRequires `catalog:write`. Variant merging also rechecks products.publish authorization before committing and before each store dispatch. Publishing uses the canonical durable marketplace jobs. Inspect groups[].publishResults and await every returned publish_job correlation together before reporting marketplace completion. Queue acceptance is not completion. Retry the same merge to resume failed store dispatches without repeating the catalog merge; a publishing failure does not roll back an already committed merge.\n\n### Limits\n\n2\u201320 products and up to 10 groups per request. Pin a reviewed preview with `expectedGroups` to refuse groups that changed since.\n\nSet dryRun=true to simulate the same transaction and roll it back. The response has data.dryRun=true; succeededCount/failedCount count validation outcomes, mergedProductIds is empty and wouldMergeProductIds lists the planned sources. No product update events or duplicate scan refreshes are emitted. A successful simulation is not a saved merge; real execution validates current data again.",
3811
4007
  flags: [],
3812
4008
  acceptsJsonBody: true,
3813
4009
  acceptsFile: false,
@@ -3833,7 +4029,7 @@ var COMMANDS = [
3833
4029
  httpMethod: "GET",
3834
4030
  path: "/api/v1/products/duplicates/scan",
3835
4031
  summary: "Get Duplicate Scan",
3836
- description: "Read the same organization-scoped duplicate scan status as Products \u2192 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.",
4032
+ description: "Read the same organization-scoped duplicate scan status as Products \u2192 Check duplicates. Requires catalog:read.\n\nqueued/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.",
3837
4033
  flags: [
3838
4034
  {
3839
4035
  name: "organizationId",
@@ -3853,7 +4049,7 @@ var COMMANDS = [
3853
4049
  httpMethod: "POST",
3854
4050
  path: "/api/v1/products/duplicates/scan",
3855
4051
  summary: "Scan Duplicate Products",
3856
- description: "Start the existing durable organization duplicate scan, equivalent to Products \u2192 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.",
4052
+ description: "Start the existing durable organization duplicate scan, equivalent to Products \u2192 Check duplicates. Requires catalog:write.\n\nAn 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.",
3857
4053
  flags: [],
3858
4054
  acceptsJsonBody: true,
3859
4055
  acceptsFile: false,
@@ -4044,7 +4240,7 @@ var COMMANDS = [
4044
4240
  httpMethod: "POST",
4045
4241
  path: "/api/v1/promotions/{promotionId}/preview",
4046
4242
  summary: "Preview Promotion Prices",
4047
- description: "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.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4243
+ description: "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.\n\n### Authorization\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4048
4244
  flags: [
4049
4245
  {
4050
4246
  name: "promotionId",
@@ -4116,7 +4312,7 @@ var COMMANDS = [
4116
4312
  httpMethod: "POST",
4117
4313
  path: "/api/v1/promotions/{promotionId}/products",
4118
4314
  summary: "Assign Products to Promotion",
4119
- description: "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.",
4315
+ description: "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.\n\nRequires `promotions:write` and current publish permission when publishing. Read promotion delivery to verify every target store.",
4120
4316
  flags: [
4121
4317
  {
4122
4318
  name: "promotionId",
@@ -4168,7 +4364,7 @@ var COMMANDS = [
4168
4364
  httpMethod: "POST",
4169
4365
  path: "/api/v1/promotions/batch",
4170
4366
  summary: "Create Promotions with Products",
4171
- description: "Create 1\u201350 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.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4367
+ description: "Create 1\u201350 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.\n\n### Authorization\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4172
4368
  flags: [],
4173
4369
  acceptsJsonBody: true,
4174
4370
  acceptsFile: false,
@@ -4181,7 +4377,7 @@ var COMMANDS = [
4181
4377
  httpMethod: "GET",
4182
4378
  path: "/api/v1/promotions/campaign-options",
4183
4379
  summary: "Find Promotion Campaigns",
4184
- description: "Search campaign options with assigned promotions in the authenticated organization.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4380
+ description: "Search campaign options with assigned promotions in the authenticated organization.\n\n### Authorization\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4185
4381
  flags: [
4186
4382
  {
4187
4383
  name: "organizationId",
@@ -4207,7 +4403,7 @@ var COMMANDS = [
4207
4403
  httpMethod: "GET",
4208
4404
  path: "/api/v1/promotions/capabilities",
4209
4405
  summary: "Get Promotion Marketplace Capabilities",
4210
- description: "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.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4406
+ description: "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.\n\n### Authorization\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4211
4407
  flags: [
4212
4408
  {
4213
4409
  name: "organizationId",
@@ -4227,7 +4423,7 @@ var COMMANDS = [
4227
4423
  httpMethod: "POST",
4228
4424
  path: "/api/v1/promotions/delete",
4229
4425
  summary: "Delete Promotions",
4230
- description: "Delete 1\u2013500 promotions with the canonical marketplace cleanup flow. Requires promotions.delete permission. Ordered per-target errors and partial failures remain explicit.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4426
+ description: "Delete 1\u2013500 promotions with the canonical marketplace cleanup flow. Requires promotions.delete permission. Ordered per-target errors and partial failures remain explicit.\n\n### Authorization\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4231
4427
  flags: [],
4232
4428
  acceptsJsonBody: true,
4233
4429
  acceptsFile: false,
@@ -4240,7 +4436,7 @@ var COMMANDS = [
4240
4436
  httpMethod: "POST",
4241
4437
  path: "/api/v1/promotions/delivery",
4242
4438
  summary: "Read Promotion Delivery",
4243
- description: "Read exact store/assignment delivery evidence for 1\u201350 promotions. A saved or active promotion is not proof that marketplace delivery succeeded. Check every returned deliveryStatuses entry, including explicit unsupported or unavailable states.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4439
+ description: "Read exact store/assignment delivery evidence for 1\u201350 promotions. A saved or active promotion is not proof that marketplace delivery succeeded. Check every returned deliveryStatuses entry, including explicit unsupported or unavailable states.\n\n### Authorization\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4244
4440
  flags: [],
4245
4441
  acceptsJsonBody: true,
4246
4442
  acceptsFile: false,
@@ -4253,7 +4449,7 @@ var COMMANDS = [
4253
4449
  httpMethod: "POST",
4254
4450
  path: "/api/v1/promotions/product-options",
4255
4451
  summary: "Find Eligible Promotion Products",
4256
- description: "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.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4452
+ description: "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.\n\n### Authorization\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4257
4453
  flags: [],
4258
4454
  acceptsJsonBody: true,
4259
4455
  acceptsFile: false,
@@ -4266,7 +4462,7 @@ var COMMANDS = [
4266
4462
  httpMethod: "POST",
4267
4463
  path: "/api/v1/promotions/status",
4268
4464
  summary: "Set Promotion Statuses",
4269
- description: "Activate/publish, pause or archive 1\u2013500 promotions. Activation requires promotions.publish permission. Uses the canonical status transition and durable marketplace sync/teardown flow; verify delivery separately.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4465
+ description: "Activate/publish, pause or archive 1\u2013500 promotions. Activation requires promotions.publish permission. Uses the canonical status transition and durable marketplace sync/teardown flow; verify delivery separately.\n\n### Authorization\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4270
4466
  flags: [],
4271
4467
  acceptsJsonBody: true,
4272
4468
  acceptsFile: false,
@@ -4279,7 +4475,7 @@ var COMMANDS = [
4279
4475
  httpMethod: "POST",
4280
4476
  path: "/api/v1/promotions/validate",
4281
4477
  summary: "Validate Promotions",
4282
- description: "Read-only validation of 1\u201350 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.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4478
+ description: "Read-only validation of 1\u201350 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.\n\n### Authorization\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
4283
4479
  flags: [],
4284
4480
  acceptsJsonBody: true,
4285
4481
  acceptsFile: false,