@omni-commerce/cli 0.11.0 → 0.13.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.js CHANGED
@@ -84,7 +84,7 @@ async function openBrowser(url) {
84
84
  }
85
85
 
86
86
  // src/version.ts
87
- var CLI_VERSION = "0.11.0";
87
+ var CLI_VERSION = "0.13.0";
88
88
 
89
89
  // src/browser-login.ts
90
90
  function loginOrigin(baseUrl) {
@@ -320,7 +320,7 @@ async function executeCommand(client, command2, request) {
320
320
  method: command2.httpMethod,
321
321
  path: interpolatePath(command2.path, pathValues),
322
322
  query: Object.keys(query).length > 0 ? query : void 0,
323
- body: command2.acceptsJsonBody && Object.keys(body).length > 0 ? body : void 0
323
+ body: command2.acceptsJsonBody && (command2.bodyRequired || Object.keys(body).length > 0) ? body : void 0
324
324
  });
325
325
  }
326
326
 
@@ -372,6 +372,7 @@ var COMMANDS = [
372
372
  httpMethod: "GET",
373
373
  path: "/api/embed/{deploymentId}/.well-known/agent-card.json",
374
374
  summary: "Discover a published merchant agent",
375
+ description: "A2A 1.0 Agent Card for any configured agent published to a customer deployment. Private model settings, prompts and publisher identity are excluded.",
375
376
  flags: [
376
377
  {
377
378
  name: "deploymentId",
@@ -391,6 +392,7 @@ var COMMANDS = [
391
392
  httpMethod: "POST",
392
393
  path: "/api/embed/{deploymentId}/a2a",
393
394
  summary: "Call a merchant agent using A2A",
395
+ description: "Official A2A 1.0 JSON-RPC SendMessage, GetTask and CancelTask.\n\n### Authentication\n\nUses the existing customer JWT from /api/embed/{deploymentId}/session; send the same Origin when creating and using the session.\n\n### Messages\n\nSendMessage accepts text user messages with a UUID messageId and up to 4000 characters. For asynchronous execution set configuration.returnImmediately=true and retrieve the task. Every task is bound to the customer session.\n\nBot verification and storefront protection apply. Payment proofs belong in the checkout completion endpoint, outside model messages.\n\n### Signed offers and buyer agents\n\nPayable offers in purchase-offers artifacts include checkoutJwt when the platform signing key is configured. Requests may carry a Web Bot Auth signature; the verified agent origin is recorded on resulting offers and orders.",
394
396
  flags: [
395
397
  {
396
398
  name: "deploymentId",
@@ -410,6 +412,7 @@ var COMMANDS = [
410
412
  httpMethod: "POST",
411
413
  path: "/api/embed/{deploymentId}/checkout-sessions/{operation}",
412
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.",
413
416
  flags: [
414
417
  {
415
418
  name: "deploymentId",
@@ -435,6 +438,7 @@ var COMMANDS = [
435
438
  httpMethod: "POST",
436
439
  path: "/api/v1/agents/general/invoke",
437
440
  summary: "Invoke the Omni agent",
441
+ description: 'Run the general Omni agent and wait until it completes, pauses for approval, or fails. Requires `agents:invoke`.\n\nA waiting call can take several minutes; raise the client timeout. Send `decisions` with the same `thread_id` to approve or reject a paused run. Omit `config.enabled_tools` to use the organization\'s agent tools. Attach images on the latest user message as `{ type: "image", url }` HTTP(S) URLs.',
438
442
  flags: [],
439
443
  acceptsJsonBody: true,
440
444
  acceptsFile: false,
@@ -447,6 +451,7 @@ var COMMANDS = [
447
451
  httpMethod: "POST",
448
452
  path: "/api/v1/agents/general/runs",
449
453
  summary: "Start an Omni agent run",
454
+ description: "Queue the general Omni agent and return immediately with the run in `queued` state. Poll the URL in the `Location` header (`GET /api/v1/agents/general/runs/{runId}`), honoring `Retry-After`. Requires `agents:invoke`. The request body matches invoke.",
450
455
  flags: [],
451
456
  acceptsJsonBody: true,
452
457
  acceptsFile: false,
@@ -459,6 +464,7 @@ var COMMANDS = [
459
464
  httpMethod: "GET",
460
465
  path: "/api/v1/agents/general/runs/{runId}",
461
466
  summary: "Get an Omni agent run",
467
+ description: "Read a queued, running, completed, paused, or failed Omni agent run. Requires `agents:invoke`.",
462
468
  flags: [
463
469
  {
464
470
  name: "runId",
@@ -484,6 +490,7 @@ var COMMANDS = [
484
490
  httpMethod: "GET",
485
491
  path: "/api/v1/analytics/ads",
486
492
  summary: "Get Ads Analytics",
493
+ description: "Ad spend, attributed sales, ROAS, and ACOS over the last 28 days, and per-product sales and ad metrics for today, yesterday, 7-day and 28-day averages, and the same day one and four weeks ago. Matches the Ads page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. The periods count back from the end of the range.",
487
494
  flags: [
488
495
  {
489
496
  name: "organizationId",
@@ -545,6 +552,7 @@ var COMMANDS = [
545
552
  httpMethod: "GET",
546
553
  path: "/api/v1/analytics/ai-traffic",
547
554
  summary: "Get AI Traffic Analytics",
555
+ description: "Visits and crawls from AI assistants and search engines: totals, a daily trend, breakdowns by source, route, country, and product, and recent events. Matches the AI Traffic page. Requires `analytics:read`.\n\nA range covers at most 365 days; a longer one is shortened to the last 365 days. Read the applied range from `data.filters`.",
548
556
  flags: [
549
557
  {
550
558
  name: "organizationId",
@@ -606,6 +614,7 @@ var COMMANDS = [
606
614
  httpMethod: "GET",
607
615
  path: "/api/v1/analytics/content",
608
616
  summary: "Get Video and LIVE Analytics",
617
+ description: "Views, product clicks, orders, and GMV from shoppable videos and LIVE streams, by day, by content type, and per video. Matches the Video / LIVE page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
609
618
  flags: [
610
619
  {
611
620
  name: "organizationId",
@@ -667,6 +676,7 @@ var COMMANDS = [
667
676
  httpMethod: "GET",
668
677
  path: "/api/v1/analytics/orders",
669
678
  summary: "Get Order Analytics",
679
+ description: "Order KPIs with their change against the previous period, a daily trend, sales by order status and by marketplace, and the top products by net sales. Repeat buyers are counted but not listed. Matches the Orders analysis page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
670
680
  flags: [
671
681
  {
672
682
  name: "organizationId",
@@ -728,6 +738,7 @@ var COMMANDS = [
728
738
  httpMethod: "GET",
729
739
  path: "/api/v1/analytics/overview",
730
740
  summary: "Get Growth Overview",
741
+ description: "Sales, traffic, and profit KPIs with their change against the previous period, a daily trend, the traffic funnel, sales by channel, top and lagging products, and ranked next actions. Matches the Growth Intelligence overview page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
731
742
  flags: [
732
743
  {
733
744
  name: "organizationId",
@@ -789,6 +800,7 @@ var COMMANDS = [
789
800
  httpMethod: "GET",
790
801
  path: "/api/v1/analytics/pricing",
791
802
  summary: "Get Pricing Analytics",
803
+ description: "Selling products with their margin, velocity, stock cover, prices, competitor median, and a pricing recommendation. Matches the Pricing page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
792
804
  flags: [
793
805
  {
794
806
  name: "organizationId",
@@ -850,6 +862,7 @@ var COMMANDS = [
850
862
  httpMethod: "GET",
851
863
  path: "/api/v1/analytics/products",
852
864
  summary: "Get Product Analytics",
865
+ description: "Per-product sales, traffic, price, stock, profit, and ad performance, ranked by net sales, with ranked insights. Pass `productId` for specific products, for example on a product page. Matches the Products page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
853
866
  flags: [
854
867
  {
855
868
  name: "organizationId",
@@ -929,6 +942,7 @@ var COMMANDS = [
929
942
  httpMethod: "GET",
930
943
  path: "/api/v1/analytics/profit",
931
944
  summary: "Get Profit Analytics",
945
+ description: "Revenue, costs, fees, and profit with a waterfall, cost breakdowns, a daily trend, the most and least profitable products, and products missing a cost price. Session members also need finance access. Matches the P&L Analysis page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
932
946
  flags: [
933
947
  {
934
948
  name: "organizationId",
@@ -996,6 +1010,7 @@ var COMMANDS = [
996
1010
  httpMethod: "GET",
997
1011
  path: "/api/v1/analytics/reports",
998
1012
  summary: "Get Business Report",
1013
+ description: "The management summary: headline KPIs, top products, sales by marketplace, alerts, settlement totals, and data quality. Matches the Business Reports page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
999
1014
  flags: [
1000
1015
  {
1001
1016
  name: "organizationId",
@@ -1057,6 +1072,7 @@ var COMMANDS = [
1057
1072
  httpMethod: "GET",
1058
1073
  path: "/api/v1/analytics/stores",
1059
1074
  summary: "Get Store Analytics",
1075
+ description: "Seller Centre shop metrics: visitors, page views, followers, the placed, paid, and confirmed buyer funnel, a daily trend, and the app and web split. Matches the Analytics (Seller Centre) page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
1060
1076
  flags: [
1061
1077
  {
1062
1078
  name: "organizationId",
@@ -1118,6 +1134,7 @@ var COMMANDS = [
1118
1134
  httpMethod: "GET",
1119
1135
  path: "/api/v1/analytics/traffic",
1120
1136
  summary: "Get Traffic Analytics",
1137
+ description: "Impressions, page views, visitors, add-to-cart, and conversion, with the funnel, a daily trend, products ranked by lost conversion, diagnostics, and the videos that drive traffic. Matches the Traffic page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
1121
1138
  flags: [
1122
1139
  {
1123
1140
  name: "organizationId",
@@ -1179,6 +1196,7 @@ var COMMANDS = [
1179
1196
  httpMethod: "GET",
1180
1197
  path: "/api/v1/aop/{aopId}/config",
1181
1198
  summary: "Get AOP configuration",
1199
+ description: "Retrieve prompt, agent, structured inputs/output, and notification settings. Requires `aops:read`.",
1182
1200
  flags: [
1183
1201
  {
1184
1202
  name: "aopId",
@@ -1204,6 +1222,7 @@ var COMMANDS = [
1204
1222
  httpMethod: "PUT",
1205
1223
  path: "/api/v1/aop/{aopId}/config",
1206
1224
  summary: "Overwrite AOP configuration",
1225
+ description: "Updates AOP configuration. Omitted fields keep their current values. Send `user_notification_configs: null` to clear notification overrides. Requires `aops:write`.",
1207
1226
  flags: [
1208
1227
  {
1209
1228
  name: "aopId",
@@ -1223,6 +1242,7 @@ var COMMANDS = [
1223
1242
  httpMethod: "POST",
1224
1243
  path: "/api/v1/aop/{aopId}/execute",
1225
1244
  summary: "Execute an AOP",
1245
+ description: "Start an AOP run and return immediately with a `thread_id`. Poll `GET /api/v1/threads/{thread_id}/status`. Requires `aops:write`.",
1226
1246
  flags: [
1227
1247
  {
1228
1248
  name: "aopId",
@@ -1242,6 +1262,7 @@ var COMMANDS = [
1242
1262
  httpMethod: "POST",
1243
1263
  path: "/api/v1/aop/create",
1244
1264
  summary: "Create AOP",
1265
+ description: "Create an organization-scoped AOP. Use `[[ placeholder ]]` in the prompt for user inputs supplied at execution time. Requires `aops:write`.",
1245
1266
  flags: [],
1246
1267
  acceptsJsonBody: true,
1247
1268
  acceptsFile: false,
@@ -1254,6 +1275,7 @@ var COMMANDS = [
1254
1275
  httpMethod: "POST",
1255
1276
  path: "/api/v1/aop/retry",
1256
1277
  summary: "Retry a failed AOP execution",
1278
+ description: "Looks up a failed AOP thread, then enqueues a new run. Requires `aops:write`.",
1257
1279
  flags: [],
1258
1280
  acceptsJsonBody: true,
1259
1281
  acceptsFile: false,
@@ -1266,6 +1288,7 @@ var COMMANDS = [
1266
1288
  httpMethod: "GET",
1267
1289
  path: "/api/v1/brand-kits",
1268
1290
  summary: "List Brand Kits",
1291
+ description: "List full brand kits and canonical image-source websites. Requires branding:read. Supports q, limit (1\u20131000), and offset. Bearer credentials resolve the organization; sessions supply organizationId.",
1269
1292
  flags: [
1270
1293
  {
1271
1294
  name: "organizationId",
@@ -1303,6 +1326,7 @@ var COMMANDS = [
1303
1326
  httpMethod: "POST",
1304
1327
  path: "/api/v1/brand-kits",
1305
1328
  summary: "Create Brand Kit",
1329
+ description: "Create a full brand kit with optional imageSourceUrls. Requires branding:write. All brandKit fields are supported; omitted fields receive canonical defaults.\n\nSource websites accept HTTP(S) URLs or domain/path scopes and return normalized host/path values. The kit and sources save atomically. Use public HTTP(S) URLs for logo/icons; embedded images are rejected.",
1306
1330
  flags: [],
1307
1331
  acceptsJsonBody: true,
1308
1332
  acceptsFile: false,
@@ -1315,6 +1339,7 @@ var COMMANDS = [
1315
1339
  httpMethod: "DELETE",
1316
1340
  path: "/api/v1/brand-kits/{brandKitId}",
1317
1341
  summary: "Delete Brand Kit",
1342
+ description: "Delete the organization-owned kit and its saved brand image-source websites. Requires branding:write. Historical job snapshots are preserved.",
1318
1343
  flags: [
1319
1344
  {
1320
1345
  name: "brandKitId",
@@ -1340,6 +1365,7 @@ var COMMANDS = [
1340
1365
  httpMethod: "GET",
1341
1366
  path: "/api/v1/brand-kits/{brandKitId}",
1342
1367
  summary: "Get Brand Kit",
1368
+ description: "Read the complete kit and imageSourceUrls. Requires branding:read.",
1343
1369
  flags: [
1344
1370
  {
1345
1371
  name: "brandKitId",
@@ -1365,6 +1391,7 @@ var COMMANDS = [
1365
1391
  httpMethod: "PATCH",
1366
1392
  path: "/api/v1/brand-kits/{brandKitId}",
1367
1393
  summary: "Update Brand Kit",
1394
+ description: "Edit name, any nested brandKit fields, and imageSourceUrls. Requires branding:write. Nested objects merge and arrays replace; omitted fields are preserved.\n\nimageSourceUrls: [] clears websites. Renaming keeps source websites attached. Parent kit IDs must belong to this organization. Existing running jobs keep their frozen source snapshot until explicitly retried with brandKitIds.",
1368
1395
  flags: [
1369
1396
  {
1370
1397
  name: "brandKitId",
@@ -1384,6 +1411,7 @@ var COMMANDS = [
1384
1411
  httpMethod: "POST",
1385
1412
  path: "/api/v1/brandsgateway/import",
1386
1413
  summary: "Import BrandsGateway Products",
1414
+ description: "Requires catalog:write and a connected BrandsGateway account. Uses the same parameters and import service as the import_brandsgateway_products tool.\n\n### Selection\n\nChoose catalogProductIds or importAllMatching with filters. maxProducts limits new imports to 1\u201350 across pages (default 50); already imported products are skipped. Numeric brandIds, vendorIds (supplier warehouses), categoryIds, and conditionIds arrays match any value within each field and all supplied fields together. Omit a field for no restriction; empty arrays and legacy singular/string filters are rejected. Brands accept at most 500 IDs; other filter arrays accept at most 50 each. Broad combinations may exceed the supplier request budget and return a failure asking you to narrow the filters.\n\n### Updated dates and enrichment\n\nupdatedAtMin and updatedAtMax map to the supplier updated_at_min and updated_at_max filters; dates use midnight UTC. There is no creation-date sorting. Products import as drafts. Connected marketplace selections and country apply to the entire import. Enrichment and taxonomy are queued according to the organization's BrandsGateway preferences; any AI usage is billed to that organization. This endpoint does not publish listings.\n\n### Result\n\nReturns HTTP 200 when the import attempt finishes, including partial failures. Inspect ok, data.success, counts, results, and data.error; failed or partial imports have ok=false and status=failed. Enrichment may still be running when data.enrichmentQueued=true.",
1387
1415
  flags: [],
1388
1416
  acceptsJsonBody: true,
1389
1417
  acceptsFile: false,
@@ -1396,6 +1424,7 @@ var COMMANDS = [
1396
1424
  httpMethod: "GET",
1397
1425
  path: "/api/v1/campaigns",
1398
1426
  summary: "List Campaigns",
1427
+ description: "List campaigns for the authenticated organization. `stage=all` is the workspace working set: draft and running. Requires `promotions:read`.",
1399
1428
  flags: [
1400
1429
  {
1401
1430
  name: "organizationId",
@@ -1463,6 +1492,7 @@ var COMMANDS = [
1463
1492
  httpMethod: "POST",
1464
1493
  path: "/api/v1/campaigns",
1465
1494
  summary: "Create Campaign",
1495
+ description: "Create a draft campaign. `ownerId` and `approverId` must be members of the organization, and every store must already be connected. Requires `promotions:write`.",
1466
1496
  flags: [],
1467
1497
  acceptsJsonBody: true,
1468
1498
  acceptsFile: false,
@@ -1475,6 +1505,7 @@ var COMMANDS = [
1475
1505
  httpMethod: "GET",
1476
1506
  path: "/api/v1/campaigns/{campaignId}",
1477
1507
  summary: "Get Campaign",
1508
+ description: "Read one campaign, including its plan, executions, audit, schedule, and progress. Requires `promotions:read`.",
1478
1509
  flags: [
1479
1510
  {
1480
1511
  name: "campaignId",
@@ -1500,6 +1531,7 @@ var COMMANDS = [
1500
1531
  httpMethod: "PATCH",
1501
1532
  path: "/api/v1/campaigns/{campaignId}",
1502
1533
  summary: "Change Campaign Details",
1534
+ description: "Partially edit the brief, upsert windows and promotion offers by stable id, or explicitly remove offer/window IDs. Omitted fields and children stay unchanged. Uses the campaign editor's canonical merger and marketplace validation.\n\nRunning edits build on the pending proposal and require named-approver approval before delivery. Send expectedRevision; expectedPendingVersion can guard a reviewed proposal (null for none). Requires promotions:write.",
1503
1535
  flags: [
1504
1536
  {
1505
1537
  name: "campaignId",
@@ -1519,6 +1551,7 @@ var COMMANDS = [
1519
1551
  httpMethod: "PUT",
1520
1552
  path: "/api/v1/campaigns/{campaignId}",
1521
1553
  summary: "Update Campaign",
1554
+ description: "Replace a draft or approved plan, or propose one change to a running plan. Send `expectedRevision` from the last read. Requires `promotions:write`.",
1522
1555
  flags: [
1523
1556
  {
1524
1557
  name: "campaignId",
@@ -1538,6 +1571,7 @@ var COMMANDS = [
1538
1571
  httpMethod: "POST",
1539
1572
  path: "/api/v1/campaigns/{campaignId}/actions",
1540
1573
  summary: "Act on Campaign",
1574
+ description: "Approve, start, end, resume, retry, or decide a proposed live change. Approve, run, resume, and approving a change must be called by the named approver. Requires `promotions:write`.",
1541
1575
  flags: [
1542
1576
  {
1543
1577
  name: "campaignId",
@@ -1557,6 +1591,7 @@ var COMMANDS = [
1557
1591
  httpMethod: "GET",
1558
1592
  path: "/api/v1/campaigns/{campaignId}/analytics",
1559
1593
  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.",
1560
1595
  flags: [
1561
1596
  {
1562
1597
  name: "campaignId",
@@ -1588,6 +1623,7 @@ var COMMANDS = [
1588
1623
  httpMethod: "GET",
1589
1624
  path: "/api/v1/campaigns/{campaignId}/notifications",
1590
1625
  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.",
1591
1627
  flags: [
1592
1628
  {
1593
1629
  name: "campaignId",
@@ -1613,6 +1649,7 @@ var COMMANDS = [
1613
1649
  httpMethod: "PUT",
1614
1650
  path: "/api/v1/campaigns/{campaignId}/notifications",
1615
1651
  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.",
1616
1653
  flags: [
1617
1654
  {
1618
1655
  name: "campaignId",
@@ -1632,6 +1669,7 @@ var COMMANDS = [
1632
1669
  httpMethod: "GET",
1633
1670
  path: "/api/v1/campaigns/{campaignId}/offers",
1634
1671
  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.",
1635
1673
  flags: [
1636
1674
  {
1637
1675
  name: "campaignId",
@@ -1687,6 +1725,7 @@ var COMMANDS = [
1687
1725
  httpMethod: "POST",
1688
1726
  path: "/api/v1/campaigns/actions",
1689
1727
  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.",
1690
1729
  flags: [],
1691
1730
  acceptsJsonBody: true,
1692
1731
  acceptsFile: false,
@@ -1699,6 +1738,7 @@ var COMMANDS = [
1699
1738
  httpMethod: "POST",
1700
1739
  path: "/api/v1/campaigns/archive",
1701
1740
  summary: "Archive Campaigns",
1741
+ description: "Archive campaigns, or restore archived campaigns by id or by the current archived list filters. Requires `promotions:write`.",
1702
1742
  flags: [],
1703
1743
  acceptsJsonBody: true,
1704
1744
  acceptsFile: false,
@@ -1711,6 +1751,7 @@ var COMMANDS = [
1711
1751
  httpMethod: "POST",
1712
1752
  path: "/api/v1/campaigns/delete",
1713
1753
  summary: "Delete Campaigns",
1754
+ description: "Permanently delete archived campaigns by explicit id or by archived list filters. Requires `promotions:write`.",
1714
1755
  flags: [],
1715
1756
  acceptsJsonBody: true,
1716
1757
  acceptsFile: false,
@@ -1723,6 +1764,7 @@ var COMMANDS = [
1723
1764
  httpMethod: "POST",
1724
1765
  path: "/api/v1/campaigns/import",
1725
1766
  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.",
1726
1768
  flags: [],
1727
1769
  acceptsJsonBody: true,
1728
1770
  acceptsFile: false,
@@ -1735,6 +1777,7 @@ var COMMANDS = [
1735
1777
  httpMethod: "GET",
1736
1778
  path: "/api/v1/campaigns/options",
1737
1779
  summary: "Get Campaign Options",
1780
+ description: "List the organization members and connected stores a campaign plan can name. Use a member `id` for `ownerId` and `approverId`. Requires `promotions:write`.",
1738
1781
  flags: [
1739
1782
  {
1740
1783
  name: "organizationId",
@@ -1754,6 +1797,7 @@ var COMMANDS = [
1754
1797
  httpMethod: "POST",
1755
1798
  path: "/api/v1/campaigns/promotion-options",
1756
1799
  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.",
1757
1801
  flags: [],
1758
1802
  acceptsJsonBody: true,
1759
1803
  acceptsFile: false,
@@ -1766,6 +1810,7 @@ var COMMANDS = [
1766
1810
  httpMethod: "POST",
1767
1811
  path: "/api/v1/campaigns/validate",
1768
1812
  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.",
1769
1814
  flags: [],
1770
1815
  acceptsJsonBody: true,
1771
1816
  acceptsFile: false,
@@ -1778,6 +1823,7 @@ var COMMANDS = [
1778
1823
  httpMethod: "GET",
1779
1824
  path: "/api/v1/catalog/items",
1780
1825
  summary: "Export Catalog Items",
1826
+ description: "Cursor-page the authenticated organization's product and variant catalog for pricing systems. Requires `catalog:read`.\n\nEach item includes product-family identity, SKU/UPC, cost, current, sale, compare-at, MAP, and MSRP prices, inventory, active promotion context, and exact marketplace identifiers. Set `format=csv` for a flat catalog-intake CSV shape.",
1781
1827
  flags: [
1782
1828
  {
1783
1829
  name: "organizationId",
@@ -1814,6 +1860,84 @@ var COMMANDS = [
1814
1860
  acceptsFile: false,
1815
1861
  bodyRequired: false
1816
1862
  },
1863
+ {
1864
+ trail: ["bulk", "list-for-session"],
1865
+ resourcePath: ["bulk"],
1866
+ methodName: "listForSession",
1867
+ httpMethod: "GET",
1868
+ path: "/api/v1/catalog/operations",
1869
+ summary: "List Catalog Operations for Session",
1870
+ description: "Read the latest 20 compact catalog-operation summaries linked to an authorized session. Requires catalog:read; product data scope is rechecked.",
1871
+ flags: [
1872
+ {
1873
+ name: "organizationId",
1874
+ flag: "organization-id",
1875
+ required: false,
1876
+ source: "query"
1877
+ },
1878
+ {
1879
+ name: "sessionId",
1880
+ flag: "session-id",
1881
+ required: true,
1882
+ source: "query"
1883
+ }
1884
+ ],
1885
+ acceptsJsonBody: false,
1886
+ acceptsFile: false,
1887
+ bodyRequired: false
1888
+ },
1889
+ {
1890
+ trail: ["bulk", "start"],
1891
+ resourcePath: ["bulk"],
1892
+ methodName: "start",
1893
+ httpMethod: "POST",
1894
+ path: "/api/v1/catalog/operations",
1895
+ 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.",
1897
+ flags: [],
1898
+ acceptsJsonBody: true,
1899
+ acceptsFile: false,
1900
+ bodyRequired: true
1901
+ },
1902
+ {
1903
+ trail: ["bulk", "results"],
1904
+ resourcePath: ["bulk"],
1905
+ methodName: "results",
1906
+ httpMethod: "POST",
1907
+ path: "/api/v1/catalog/operations/results",
1908
+ summary: "Get Catalog Operation Results",
1909
+ description: "Read ordered per-product receipts and verification evidence for up to 50 operationIds. Filter status=failed to inspect failures directly. At most 100 rows across the requested operations per page. Requires catalog:read.",
1910
+ flags: [],
1911
+ acceptsJsonBody: true,
1912
+ acceptsFile: false,
1913
+ bodyRequired: true
1914
+ },
1915
+ {
1916
+ trail: ["bulk", "status"],
1917
+ resourcePath: ["bulk"],
1918
+ methodName: "status",
1919
+ httpMethod: "POST",
1920
+ path: "/api/v1/catalog/operations/status",
1921
+ summary: "Get Catalog Operation Status",
1922
+ description: "Read compact progress for up to 50 operationIds in first-requested order. Pending is incomplete, and partial failures remain explicit. Requires catalog:read. Detailed receipts are returned only by the paginated report API.",
1923
+ flags: [],
1924
+ acceptsJsonBody: true,
1925
+ acceptsFile: false,
1926
+ bodyRequired: true
1927
+ },
1928
+ {
1929
+ trail: ["catalog", "query"],
1930
+ resourcePath: ["catalog"],
1931
+ methodName: "query",
1932
+ httpMethod: "POST",
1933
+ path: "/api/v1/catalog/query",
1934
+ 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.",
1936
+ flags: [],
1937
+ acceptsJsonBody: true,
1938
+ acceptsFile: false,
1939
+ bodyRequired: true
1940
+ },
1817
1941
  {
1818
1942
  trail: ["checkout-sessions", "create"],
1819
1943
  resourcePath: ["checkoutSessions"],
@@ -1821,6 +1945,7 @@ var COMMANDS = [
1821
1945
  httpMethod: "POST",
1822
1946
  path: "/api/v1/checkout-sessions",
1823
1947
  summary: "Create Agentic Checkout Session",
1948
+ description: "Create a merchant-fulfilled checkout session, reserve inventory, and return rail-specific payment requirements. Requires an OAuth client token with `checkout:write`.",
1824
1949
  flags: [],
1825
1950
  acceptsJsonBody: true,
1826
1951
  acceptsFile: false,
@@ -1833,6 +1958,7 @@ var COMMANDS = [
1833
1958
  httpMethod: "GET",
1834
1959
  path: "/api/v1/checkout-sessions/{sessionId}",
1835
1960
  summary: "Get Agentic Checkout Session",
1961
+ description: "Fetch the current checkout session, cart items, totals, payment requirements, and linked order when completed.",
1836
1962
  flags: [
1837
1963
  {
1838
1964
  name: "sessionId",
@@ -1858,6 +1984,7 @@ var COMMANDS = [
1858
1984
  httpMethod: "PATCH",
1859
1985
  path: "/api/v1/checkout-sessions/{sessionId}",
1860
1986
  summary: "Update Agentic Checkout Session",
1987
+ description: "Update cart/contact fields, recompute totals, and refresh inventory reservations before payment. Requires `checkout:write`.",
1861
1988
  flags: [
1862
1989
  {
1863
1990
  name: "sessionId",
@@ -1883,6 +2010,7 @@ var COMMANDS = [
1883
2010
  httpMethod: "PUT",
1884
2011
  path: "/api/v1/checkout-sessions/{sessionId}",
1885
2012
  summary: "Replace Agentic Checkout Session Fields",
2013
+ description: "UCP-compatible update method for cart/contact fields. The current implementation applies provided fields and leaves omitted fields unchanged. Requires `checkout:write`.",
1886
2014
  flags: [
1887
2015
  {
1888
2016
  name: "sessionId",
@@ -1908,6 +2036,7 @@ var COMMANDS = [
1908
2036
  httpMethod: "POST",
1909
2037
  path: "/api/v1/checkout-sessions/{sessionId}/cancel",
1910
2038
  summary: "Cancel Agentic Checkout Session",
2039
+ description: "Cancel a ready-for-payment checkout session and release reserved inventory. This operation is exposed for UCP REST clients and requires `checkout:write`.",
1911
2040
  flags: [
1912
2041
  {
1913
2042
  name: "sessionId",
@@ -1933,6 +2062,7 @@ var COMMANDS = [
1933
2062
  httpMethod: "POST",
1934
2063
  path: "/api/v1/checkout-sessions/{sessionId}/complete",
1935
2064
  summary: "Complete Agentic Checkout Session",
2065
+ description: "Settle the selected rail and create a native `agentic` order. Definitive settlement failures return 402. Pending confirmation locks the offer in `payment_pending`; durable recovery resumes the same attempt.",
1936
2066
  flags: [
1937
2067
  {
1938
2068
  name: "sessionId",
@@ -1958,6 +2088,7 @@ var COMMANDS = [
1958
2088
  httpMethod: "POST",
1959
2089
  path: "/api/v1/commerce/jobs/await",
1960
2090
  summary: "Await Commerce Jobs",
2091
+ description: "Wait for a mixed batch of returned commerce correlations: inventory_job, price_event, price_book_sync, publish_job, delist_batch, store_switch, omni_delete, zalora_import, enrichment_batch, order_action and return_action.\n\n### Request limits and access\n\nMaximum 50000 entries; IDs are trimmed and duplicates collapse by kind/id in first-requested order. timeoutMs=0 reads once; bounded waits allow up to 120000ms. Catalog jobs require catalog:read; order/return jobs require orders:read; mixed batches require both. Session callers include organizationId.\n\n### Result interpretation\n\nEvery job retains its target identity, status, errors and available label artifacts. Missing or inaccessible fulfillment jobs fail explicitly. needs_review is an uncertain outcome, never automatic success or authorization to resubmit. data.success describes completion; use state verification before claiming a marketplace effect. Scheduled future actions are verified after execution, not when scheduled.",
1961
2092
  flags: [],
1962
2093
  acceptsJsonBody: true,
1963
2094
  acceptsFile: false,
@@ -1970,6 +2101,20 @@ var COMMANDS = [
1970
2101
  httpMethod: "POST",
1971
2102
  path: "/api/v1/commerce/state/verify",
1972
2103
  summary: "Verify Commerce State",
2104
+ description: "Perform fresh marketplace verification using the canonical services for every supported marketplace.\n\n### Targets and access\n\nFor products provide productIds plus expected, or targets[{productId,expected}] for mixed values. For order, return and price-book operations provide their returned order_action/return_action/price_book_sync correlations; product and fulfillment checks may share one request. Maximum 50000 entries per target array, with bounded concurrency. Catalog verification requires catalog:read; fulfillment verification requires orders:read; mixed batches require both. Session callers include organizationId.\n\n### Verification results\n\nMissing, unauthorized, unsupported and unconfirmed targets fail explicitly. A return decision can be confirmed while later lifecycle steps remain pending. Labels confirm generated artifacts, not physical printing. Provider acceptance alone does not establish a changed state; tracking omitted by the provider remains unconfirmed. This read never resubmits a marketplace action.",
2105
+ flags: [],
2106
+ acceptsJsonBody: true,
2107
+ acceptsFile: false,
2108
+ bodyRequired: true
2109
+ },
2110
+ {
2111
+ trail: ["commerce", "start-verification"],
2112
+ resourcePath: ["commerce"],
2113
+ methodName: "startVerification",
2114
+ httpMethod: "POST",
2115
+ path: "/api/v1/commerce/state/verify/jobs",
2116
+ 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.",
1973
2118
  flags: [],
1974
2119
  acceptsJsonBody: true,
1975
2120
  acceptsFile: false,
@@ -1982,6 +2127,7 @@ var COMMANDS = [
1982
2127
  httpMethod: "GET",
1983
2128
  path: "/api/v1/compare",
1984
2129
  summary: "Compare Public Products",
2130
+ description: "Compare 2 to 10 public products side-by-side across price, ACO readiness, marketplace coverage, and inventory.",
1985
2131
  flags: [
1986
2132
  {
1987
2133
  name: "products",
@@ -2007,6 +2153,7 @@ var COMMANDS = [
2007
2153
  httpMethod: "GET",
2008
2154
  path: "/api/v1/directory",
2009
2155
  summary: "List Public Merchants",
2156
+ description: "Discover merchants with public products available through OmniCommerce's public agent APIs.",
2010
2157
  flags: [],
2011
2158
  acceptsJsonBody: false,
2012
2159
  acceptsFile: false,
@@ -2019,6 +2166,7 @@ var COMMANDS = [
2019
2166
  httpMethod: "POST",
2020
2167
  path: "/api/v1/documents",
2021
2168
  summary: "Upload Document",
2169
+ description: "Upload one file to the knowledge base as multipart/form-data. Requires `documents:write`.\n\nAccepted: PDF up to 20 MB, Word (.docx) and PowerPoint (.pptx) up to 20 MB, Excel (.xlsx/.xlsm) up to 10 MB, images up to 8 MB, CSV and Markdown up to 2 MB. PDFs, Word, PowerPoint, Markdown, and images are indexed in the background; poll `GET /api/v1/documents/{documentId}` until `status` is `completed`. CSV and Excel are stored for agents to read but are not indexed.",
2022
2170
  flags: [],
2023
2171
  acceptsJsonBody: true,
2024
2172
  acceptsFile: true,
@@ -2031,6 +2179,7 @@ var COMMANDS = [
2031
2179
  httpMethod: "GET",
2032
2180
  path: "/api/v1/documents/{documentId}",
2033
2181
  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.",
2034
2183
  flags: [
2035
2184
  {
2036
2185
  name: "documentId",
@@ -2062,6 +2211,7 @@ var COMMANDS = [
2062
2211
  httpMethod: "POST",
2063
2212
  path: "/api/v1/evaluate",
2064
2213
  summary: "Evaluate SKU Readiness",
2214
+ description: "Score a persisted product or inline SKU payload for agentic commerce readiness, engine eligibility, and recommended fixes.",
2065
2215
  flags: [],
2066
2216
  acceptsJsonBody: true,
2067
2217
  acceptsFile: false,
@@ -2074,6 +2224,7 @@ var COMMANDS = [
2074
2224
  httpMethod: "GET",
2075
2225
  path: "/api/v1/feed/{domain}/llms.txt",
2076
2226
  summary: "Get Merchant LLM Feed",
2227
+ description: "Return a plain-text, LLM-optimized merchant feed keyed by website domain.",
2077
2228
  flags: [
2078
2229
  {
2079
2230
  name: "domain",
@@ -2099,6 +2250,7 @@ var COMMANDS = [
2099
2250
  httpMethod: "POST",
2100
2251
  path: "/api/v1/images/ghost-mannequin",
2101
2252
  summary: "Generate Ghost Mannequin Image",
2253
+ description: "Remove the visible mannequin from a product photo and return the generated image URL. The source image must be an HTTP(S) URL; data URIs are rejected. Authenticate with an OmniCommerce API key that has the `catalog:enrich` scope.",
2102
2254
  flags: [],
2103
2255
  acceptsJsonBody: true,
2104
2256
  acceptsFile: false,
@@ -2111,6 +2263,7 @@ var COMMANDS = [
2111
2263
  httpMethod: "GET",
2112
2264
  path: "/api/v1/inventory",
2113
2265
  summary: "List Inventory Groups",
2266
+ description: "Read active inventory using the same canonical quantities, filters and grouping as the inventory assistant. Requires catalog:read and inventory.read permission. Organization scope comes only from the credential.\n\n### Stock and listing absence\n\nstatus=in_stock means positive available stock (on hand minus locked), with variants rolled up for product groups. unlistedMarketplaces checks every organization store and the entire saved catalog, including product/variant identities, exact catalog SKUs, and historical listings. Source marketplace/country/storeIds filters do not restrict absence evidence. All supported marketplaces are accepted.\n\nlistingPresence reports saved-catalog evidence and unknown missing-SKU families. It does not establish fresh live marketplace absence. Stock quantities from duplicate SKU records must not be added as independent physical inventory.\n\n### Pagination\n\nGroups are one page, maximum 30. totalGroups is the full matching count. Continue with nextOffset and identical filters until hasMore=false.",
2114
2267
  flags: [
2115
2268
  {
2116
2269
  name: "productIds",
@@ -2184,6 +2337,7 @@ var COMMANDS = [
2184
2337
  httpMethod: "GET",
2185
2338
  path: "/api/v1/jobs/{jobId}",
2186
2339
  summary: "Get Developer Job Status",
2340
+ description: "Fetch shared async status for developer-platform operations, including product workflow jobs, bulk CSV import jobs, Look generation jobs, import jobs, enrichment jobs, price comparison jobs, and sync jobs.\n\nPrice comparison jobs expose partial progress in data.results and their final batch result in data.result; completed means processing finished, so inspect data.result.success for comparison failures.",
2187
2341
  flags: [
2188
2342
  {
2189
2343
  name: "jobId",
@@ -2209,6 +2363,7 @@ var COMMANDS = [
2209
2363
  httpMethod: "POST",
2210
2364
  path: "/api/v1/jobs/{jobId}/cancel",
2211
2365
  summary: "Cancel Developer Job",
2366
+ description: "Request cancellation for a running or pending developer job.\n\nSupported jobs:\n\n- Product workflows returned by `POST /api/v1/products`\n\n- Bulk CSV imports returned by `POST /api/v1/products/bulk-import`\n\n- Look generation returned by `POST /api/v1/looks`\n\nCompleted or failed jobs cannot be cancelled and are returned with their current terminal status.",
2212
2367
  flags: [
2213
2368
  {
2214
2369
  name: "jobId",
@@ -2228,6 +2383,7 @@ var COMMANDS = [
2228
2383
  httpMethod: "GET",
2229
2384
  path: "/api/v1/looks",
2230
2385
  summary: "List Looks",
2386
+ description: "List AI-styled product Looks for the authenticated organization, newest first. Use query parameters for search, status filtering, and pagination.",
2231
2387
  flags: [
2232
2388
  {
2233
2389
  name: "q",
@@ -2265,6 +2421,7 @@ var COMMANDS = [
2265
2421
  httpMethod: "POST",
2266
2422
  path: "/api/v1/looks",
2267
2423
  summary: "Create Look",
2424
+ description: "Create a Look from existing catalog products and queue AI image generation for a fast preview. The response is asynchronous: poll `GET /api/v1/jobs/{jobId}?organizationId={organizationId}` until the `look_...` job completes, then fetch the generated Look with `GET /api/v1/looks/{lookId}`.",
2268
2425
  flags: [],
2269
2426
  acceptsJsonBody: true,
2270
2427
  acceptsFile: false,
@@ -2277,6 +2434,7 @@ var COMMANDS = [
2277
2434
  httpMethod: "GET",
2278
2435
  path: "/api/v1/looks/{lookId}",
2279
2436
  summary: "Get Look",
2437
+ description: "Fetch a single Look by ID, including the generated hero image URL and the shoppable product cards used in the Look.",
2280
2438
  flags: [
2281
2439
  {
2282
2440
  name: "lookId",
@@ -2296,6 +2454,7 @@ var COMMANDS = [
2296
2454
  httpMethod: "POST",
2297
2455
  path: "/api/v1/manage-product-category/recommend",
2298
2456
  summary: "Recommend Marketplace Product Categories",
2457
+ description: "Suggest best-fit marketplace categories and category attribute values for a persisted product using semantic taxonomy search. Authenticate with an OmniCommerce API key as `Authorization: Bearer omni_sk_...`.",
2299
2458
  flags: [],
2300
2459
  acceptsJsonBody: true,
2301
2460
  acceptsFile: false,
@@ -2308,6 +2467,7 @@ var COMMANDS = [
2308
2467
  httpMethod: "GET",
2309
2468
  path: "/api/v1/marketplaces/connected",
2310
2469
  summary: "List Connected Marketplaces",
2470
+ description: "List connected marketplace stores for the authenticated organization. Results are scoped to the API key organization unless `organizationId` is supplied for session-authenticated calls.",
2311
2471
  flags: [
2312
2472
  {
2313
2473
  name: "organizationId",
@@ -2339,6 +2499,7 @@ var COMMANDS = [
2339
2499
  httpMethod: "GET",
2340
2500
  path: "/api/v1/merchants/{merchantId}/manifest",
2341
2501
  summary: "Get Public Merchant Manifest",
2502
+ description: "Return machine-readable capability and endpoint metadata for a single public merchant.",
2342
2503
  flags: [
2343
2504
  {
2344
2505
  name: "merchantId",
@@ -2358,6 +2519,7 @@ var COMMANDS = [
2358
2519
  httpMethod: "GET",
2359
2520
  path: "/api/v1/merchants/{merchantId}/products",
2360
2521
  summary: "List Public Merchant Products",
2522
+ description: "Browse a single merchant's public product feed with optional marketplace and localization filters.",
2361
2523
  flags: [
2362
2524
  {
2363
2525
  name: "merchantId",
@@ -2407,6 +2569,7 @@ var COMMANDS = [
2407
2569
  httpMethod: "GET",
2408
2570
  path: "/api/v1/merchants/{merchantId}/search",
2409
2571
  summary: "Search Within Public Merchant Catalog",
2572
+ description: "Search within a single merchant's public product feed using the same filter model as the cross-merchant search API.",
2410
2573
  flags: [
2411
2574
  {
2412
2575
  name: "merchantId",
@@ -2534,6 +2697,7 @@ var COMMANDS = [
2534
2697
  httpMethod: "POST",
2535
2698
  path: "/api/v1/monitor",
2536
2699
  summary: "Run AI Shelf Share Monitor",
2700
+ description: "Queue AI Shelf Share replay/monitoring for a product, query, or organization catalog.",
2537
2701
  flags: [],
2538
2702
  acceptsJsonBody: true,
2539
2703
  acceptsFile: false,
@@ -2546,6 +2710,7 @@ var COMMANDS = [
2546
2710
  httpMethod: "POST",
2547
2711
  path: "/api/v1/oauth/revoke",
2548
2712
  summary: "Revoke Access Token",
2713
+ description: "Revoke an OAuth bearer access token using client_secret_post authentication.",
2549
2714
  flags: [],
2550
2715
  acceptsJsonBody: true,
2551
2716
  acceptsFile: false,
@@ -2558,6 +2723,7 @@ var COMMANDS = [
2558
2723
  httpMethod: "POST",
2559
2724
  path: "/api/v1/oauth/token",
2560
2725
  summary: "Get Access Token",
2726
+ description: "Exchange client credentials for an access token using OAuth 2.0 client_credentials grant. Tokens are valid for 1 hour.",
2561
2727
  flags: [],
2562
2728
  acceptsJsonBody: true,
2563
2729
  acceptsFile: false,
@@ -2570,6 +2736,7 @@ var COMMANDS = [
2570
2736
  httpMethod: "GET",
2571
2737
  path: "/api/v1/orders",
2572
2738
  summary: "List Orders",
2739
+ description: "List orders for the authenticated organization using the same filters, sorting, and pagination semantics as the workspace Orders listing page. Requires `orders:read`.",
2573
2740
  flags: [
2574
2741
  {
2575
2742
  name: "organizationId",
@@ -2655,6 +2822,7 @@ var COMMANDS = [
2655
2822
  httpMethod: "POST",
2656
2823
  path: "/api/v1/orders",
2657
2824
  summary: "Create Order",
2825
+ description: "Create a native `agentic` order with line items. This operation uses the same upsert path as agentic checkout completion.\n\n### Authentication\n\nRequires `orders:write`.\n\n### Upsert behavior\n\n- Reusing an `externalOrderId` updates the existing order instead of creating a duplicate.\n- For one-row-per-SKU integrations, use the marketplace order ID as `externalOrderId` and the row ID as `items[].externalOrderItemId`.\n- When `totalAmount` is omitted, OmniCommerce recomputes it from all order lines after the upsert.\n\n### Pricing and catalog defaults\n\n- Each line can provide `price`, `unitPrice`, `paidPrice`, and `costPrice`.\n- When `productId` is provided, missing price or currency values may resolve from the product catalog.\n- An explicit `costPrice` updates `product_data.costPrice` and is snapshotted on the order line. Omitting it never clears an existing product cost.\n\n### Country resolution\n\nWhen `country` is empty, OmniCommerce may derive it from an unambiguous order currency, such as PHP for the Philippines. USD is not used to infer a country.",
2658
2826
  flags: [],
2659
2827
  acceptsJsonBody: true,
2660
2828
  acceptsFile: false,
@@ -2667,6 +2835,7 @@ var COMMANDS = [
2667
2835
  httpMethod: "GET",
2668
2836
  path: "/api/v1/orders/{orderId}",
2669
2837
  summary: "Get Order",
2838
+ description: "Get one order by its OmniCommerce UUID for the authenticated organization.\n\n### Authentication\n\nRequires `orders:read`.\n\n### Response\n\nThe organization-scoped detail includes:\n\n- Line items and normalized status\n- Buyer and contact fields\n- Shipping and billing addresses\n- Return context\n- Finance breakdown\n- Settlement projection, when available\n\nOrders outside the authenticated organization are not exposed and return `404 Not Found`.",
2670
2839
  flags: [
2671
2840
  {
2672
2841
  name: "orderId",
@@ -2692,6 +2861,7 @@ var COMMANDS = [
2692
2861
  httpMethod: "PATCH",
2693
2862
  path: "/api/v1/orders/{orderId}",
2694
2863
  summary: "Update Order",
2864
+ description: "Update a native **agentic** order.\n\n### Authentication\n\nRequires `orders:write`.\n\n### Supported changes\n\n- External order identifiers, status, currency, and country\n- `totalAmount`, `shippingFee`, and `discountAmount`\n- Metadata and `orderCreatedAt`\n- Line identifiers, prices, COGS, currency, status, and quantity\n\n### Line upserts\n\n- A matching `externalOrderItemId` updates the existing line.\n- A new `externalOrderItemId` with `productName` and `quantity` appends a line.\n- When lines change and `totalAmount` is omitted, OmniCommerce recomputes the total from all lines.\n\n### Country resolution\n\nWhen `country` is omitted and the stored country is empty, OmniCommerce may derive it from an unambiguous resulting order currency.\n\n### Restrictions and events\n\nMarketplace-owned orders from Shopee, Lazada, TikTok, and Shopify are rejected with `409 Conflict`. A status change emits `order.status.changed`; other changes emit `order.updated`.",
2695
2865
  flags: [
2696
2866
  {
2697
2867
  name: "orderId",
@@ -2711,6 +2881,7 @@ var COMMANDS = [
2711
2881
  httpMethod: "GET",
2712
2882
  path: "/api/v1/orders/{orderId}/action-options",
2713
2883
  summary: "Get Order Action Options",
2884
+ description: "Ask the marketplace which choices an action needs, such as pickup or drop-off for `ship`. Requires `orders:write`.\n\nSend the chosen choice's `payload` with `POST /api/v1/orders/{orderId}/actions`.",
2714
2885
  flags: [
2715
2886
  {
2716
2887
  name: "orderId",
@@ -2742,6 +2913,7 @@ var COMMANDS = [
2742
2913
  httpMethod: "GET",
2743
2914
  path: "/api/v1/orders/{orderId}/actions",
2744
2915
  summary: "List Order Actions",
2916
+ description: "The order's 20 most recent action jobs, newest first, plus its latest successful label job. Requires `orders:read`.\n\nPoll this after queueing an action. A succeeded `labels` job lists its label files in `labels`.",
2745
2917
  flags: [
2746
2918
  {
2747
2919
  name: "orderId",
@@ -2767,6 +2939,7 @@ var COMMANDS = [
2767
2939
  httpMethod: "POST",
2768
2940
  path: "/api/v1/orders/{orderId}/actions",
2769
2941
  summary: "Queue Order Action",
2942
+ description: "Ship, cancel, generate shipping labels for, or update tracking on a marketplace order. Requires `orders:write`.\n\nThe 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.",
2770
2943
  flags: [
2771
2944
  {
2772
2945
  name: "orderId",
@@ -2786,6 +2959,7 @@ var COMMANDS = [
2786
2959
  httpMethod: "GET",
2787
2960
  path: "/api/v1/orders/actions",
2788
2961
  summary: "Check Order Action Options",
2962
+ description: "### Authorization\n\nRequires orders:write.\n\n### Choices\n\nRead current marketplace choices for ship, cancel, labels or update_tracking for 1\u201350 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.",
2789
2963
  flags: [
2790
2964
  {
2791
2965
  name: "orderIds",
@@ -2817,6 +2991,7 @@ var COMMANDS = [
2817
2991
  httpMethod: "POST",
2818
2992
  path: "/api/v1/orders/actions",
2819
2993
  summary: "Process Order Actions",
2994
+ description: "### Authorization\n\nRequires orders:write.\n\n### Batch submission\n\nQueue 1\u201350 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.\n\n### Recovery and completion\n\nRetain requestId and unchanged operations for retries; a changed operation with a reused key fails that target. Follow links.poll or GET /api/v1/orders/actions/jobs with every returned jobId (orders:read). The durable worker rechecks initiating permissions before marketplace writes. Label jobs return download URLs after success; the API does not control a physical printer. Completed jobs and partial failures remain explicit.",
2820
2995
  flags: [],
2821
2996
  acceptsJsonBody: true,
2822
2997
  acceptsFile: false,
@@ -2829,6 +3004,7 @@ var COMMANDS = [
2829
3004
  httpMethod: "GET",
2830
3005
  path: "/api/v1/orders/actions/jobs",
2831
3006
  summary: "Get Order Action Jobs",
3007
+ description: "### Authorization\n\nRequires orders:read.\n\n### Outcomes and labels\n\nRead every requested order action job in one batch of 1\u201350 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.",
2832
3008
  flags: [
2833
3009
  {
2834
3010
  name: "jobIds",
@@ -2854,6 +3030,7 @@ var COMMANDS = [
2854
3030
  httpMethod: "POST",
2855
3031
  path: "/api/v1/orders/picking-list",
2856
3032
  summary: "Create Picking List",
3033
+ description: "### Authorization\n\nRequires orders:read. API keys resolve organization scope from their credential; session callers include organizationId.\n\n### PDF output\n\nCreate a private PDF picking list for 1\u2013500 order UUIDs, trimmed and deduplicated in first-requested order. Missing or inaccessible orders fail the complete selection without creating a partial document. The same grouping, product quantities, SKU/variation and currency-labeled prices as the workspace Orders page are used. timeZone accepts an IANA time zone; omitted API requests use UTC. This does not arrange shipment or change orders.\n\nThe result contains structured list data, every orderId, a saved documentId and a signed HTTPS downloadUrl valid until expiresAt (five minutes). Generate a fresh list for a new download URL. Download the PDF and send it to your own printer; the API does not control local printers. PDF rendering may take up to 120 seconds.",
2857
3034
  flags: [],
2858
3035
  acceptsJsonBody: true,
2859
3036
  acceptsFile: false,
@@ -2866,6 +3043,7 @@ var COMMANDS = [
2866
3043
  httpMethod: "POST",
2867
3044
  path: "/api/v1/organizations",
2868
3045
  summary: "Create Organization",
3046
+ description: "Create a new organization for the signed-in user. This endpoint uses first-party session authentication because API keys are scoped to an existing organization.",
2869
3047
  flags: [],
2870
3048
  acceptsJsonBody: true,
2871
3049
  acceptsFile: false,
@@ -2878,6 +3056,7 @@ var COMMANDS = [
2878
3056
  httpMethod: "GET",
2879
3057
  path: "/api/v1/price-books",
2880
3058
  summary: "List Price Book Rules",
3059
+ description: "List marketplace price book rules for the authenticated organization. A rule applies either a buyer formula or a markup percent to the catalog price at publish time, by platform and optional store/country. Requires `price_books:read`.",
2881
3060
  flags: [
2882
3061
  {
2883
3062
  name: "organizationId",
@@ -2909,6 +3088,7 @@ var COMMANDS = [
2909
3088
  httpMethod: "POST",
2910
3089
  path: "/api/v1/price-books",
2911
3090
  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.",
2912
3092
  flags: [],
2913
3093
  acceptsJsonBody: true,
2914
3094
  acceptsFile: false,
@@ -2921,6 +3101,7 @@ var COMMANDS = [
2921
3101
  httpMethod: "DELETE",
2922
3102
  path: "/api/v1/price-books/{ruleId}",
2923
3103
  summary: "Delete Price Book Rule",
3104
+ description: "Delete a marketplace price book rule by ID. Requires `price_books:write`.",
2924
3105
  flags: [
2925
3106
  {
2926
3107
  name: "ruleId",
@@ -2946,6 +3127,7 @@ var COMMANDS = [
2946
3127
  httpMethod: "GET",
2947
3128
  path: "/api/v1/price-books/{ruleId}",
2948
3129
  summary: "Get Price Book Rule",
3130
+ description: "Fetch one marketplace price book rule by ID. Requires `price_books:read`.",
2949
3131
  flags: [
2950
3132
  {
2951
3133
  name: "ruleId",
@@ -2971,6 +3153,7 @@ var COMMANDS = [
2971
3153
  httpMethod: "PATCH",
2972
3154
  path: "/api/v1/price-books/{ruleId}",
2973
3155
  summary: "Update Price Book Rule",
3156
+ description: "Update store, country, markup, buyer formula, rounding, currency, or enabled flag for a price book rule. Platform cannot be changed; create a new rule instead. Requires `price_books:write`.",
2974
3157
  flags: [
2975
3158
  {
2976
3159
  name: "ruleId",
@@ -2996,6 +3179,7 @@ var COMMANDS = [
2996
3179
  httpMethod: "POST",
2997
3180
  path: "/api/v1/price-books/preview",
2998
3181
  summary: "Preview Channel List Price",
3182
+ description: "Compute channel list price from a canonical list price using matching enabled rules (or a forced ruleId). Requires `price_books:read`.",
2999
3183
  flags: [],
3000
3184
  acceptsJsonBody: true,
3001
3185
  acceptsFile: false,
@@ -3008,6 +3192,7 @@ var COMMANDS = [
3008
3192
  httpMethod: "GET",
3009
3193
  path: "/api/v1/products",
3010
3194
  summary: "List Products",
3195
+ description: "List products for the authenticated organization with optional filters and pagination. Authenticate with an API key or OAuth bearer token. The organization is taken from that credential; do not send `organizationId`.\n\n### Stock and variants\n\nRows are in `items`. Read catalog stock from `items[].stockQuantity`: parent rows already aggregate their non-deleted variants, and virtual bundles use component availability with any manual cap. Null means unknown, not zero. A row with `variantCount` above 0 has variants; fetch them from `GET /api/v1/products/{productId}`. List rows do not contain `inventoryQuantity`, `inventory.quantity`, or an embedded `variants` array.\n\n### Duplicate discovery and merge\n\nUse status=duplicates, duplicateType=sku and detail=full for exact-SKU candidates. Each root row includes duplicateMatches with peer productIds, names, SKUs and match reasons. Follow pagination; detail=summary omits this evidence. Start or refresh the saved scan with products.scanDuplicates and inspect products.getDuplicateScan. Combine each root ID with its exact_sku peer IDs, deduplicate, then call products.previewDuplicateMerge with 2\u201320 productIds. Inspect every group's masterSelections: a sole allowed product must stay master; multiple allowed products leave the content/price/stock choice to the seller. Preview again with masterProductIds, review all listings, then call products.mergeDuplicates with the reviewed expectedGroups. Content similarity alone is not permission to merge. See /guides/merge-marketplace-listings for CLI and SDK examples.",
3011
3196
  flags: [
3012
3197
  {
3013
3198
  name: "status",
@@ -3171,6 +3356,7 @@ var COMMANDS = [
3171
3356
  httpMethod: "POST",
3172
3357
  path: "/api/v1/products",
3173
3358
  summary: "Create Product",
3359
+ description: "Queue a single-product create workflow for the authenticated organization. Product enrichment is disabled by default; set `workflow.enrich` to `true` to enable it.\n\n### Request behavior\n\n- `product` contains developer-supplied fields. Unknown fields are preserved as enrichment context.\n- SKU is the unique product upsert identifier.\n- Externally hosted HTTP(S) images are copied to managed R2 storage.\n- `targetMarketplaces` and `targetCountries` are optional; enrichment can run without publishing targets.\n\n### Asynchronous result\n\nThe API returns a job ID. Poll `GET /api/v1/jobs/{jobId}` for completion. Product creation, image ingestion, enrichment, and taxonomy assignment run in the same product workflow job. ACO generation runs separately when enabled; poll `result.geoJobId` for its completion.",
3174
3360
  flags: [],
3175
3361
  acceptsJsonBody: true,
3176
3362
  acceptsFile: false,
@@ -3183,6 +3369,7 @@ var COMMANDS = [
3183
3369
  httpMethod: "DELETE",
3184
3370
  path: "/api/v1/products/{productId}",
3185
3371
  summary: "Delete Product",
3372
+ description: "Soft-delete a product by ID. The product will be marked as deleted but not permanently removed. Call again on a deleted product to permanently delete it. Supports API key Bearer token authentication.",
3186
3373
  flags: [
3187
3374
  {
3188
3375
  name: "productId",
@@ -3202,6 +3389,7 @@ var COMMANDS = [
3202
3389
  httpMethod: "GET",
3203
3390
  path: "/api/v1/products/{productId}",
3204
3391
  summary: "Get Product",
3392
+ description: "Retrieve a single product by ID for the authenticated organization.\n\nAuthenticate with an API key using Bearer token authentication.\n\nWhen available, the response includes generated Agentic Commerce Optimization (ACO) data:\n\n- Profile metadata and FAQs\n- Localization content and cultural notes\n- Intent queries and signals\n- Sources and claims\n\nA parent product returns its variants in `variants`, with each variant's option values, price, stock, image, and marketplace listings.",
3205
3393
  flags: [
3206
3394
  {
3207
3395
  name: "productId",
@@ -3221,6 +3409,7 @@ var COMMANDS = [
3221
3409
  httpMethod: "PATCH",
3222
3410
  path: "/api/v1/products/{productId}",
3223
3411
  summary: "Update Product",
3412
+ description: "Update an existing product by ID. Only provided fields will be updated. Supports API key Bearer token authentication.",
3224
3413
  flags: [
3225
3414
  {
3226
3415
  name: "productId",
@@ -3240,6 +3429,7 @@ var COMMANDS = [
3240
3429
  httpMethod: "PATCH",
3241
3430
  path: "/api/v1/products/{productId}/cost",
3242
3431
  summary: "Update Product Cost",
3432
+ description: "Set catalog cost for one simple product or variant UUID. Cost is Omni-only and never syncs to marketplaces. Prefer `POST /api/v1/products/cost` for Windmill or other bulk jobs.\n\nRequires `catalog:write`. When `costPriceCurrency` differs from the product selling currency and `costPriceFxRate` is omitted, Omni stores an FX quote on the product.",
3243
3433
  flags: [
3244
3434
  {
3245
3435
  name: "productId",
@@ -3259,6 +3449,7 @@ var COMMANDS = [
3259
3449
  httpMethod: "POST",
3260
3450
  path: "/api/v1/products/{productId}/delist",
3261
3451
  summary: "Delist Product",
3452
+ description: "Queue delist for one product on the marketplaces you name. `marketplaces` accepts one or more of shopee, lazada, tiktok, shopify, whatsapp, zalora, amazon, and ebay. Each named marketplace must already have a listing; other channels are left untouched. Omit `marketplaces` to delist every existing listing. This does not delete the OmniCommerce product.\n\nPoll GET /api/v1/jobs/{jobId} until data.status is succeeded, partial, or failed. Accepted means the job was queued, not that the marketplace has removed the listing.",
3262
3453
  flags: [
3263
3454
  {
3264
3455
  name: "productId",
@@ -3278,6 +3469,7 @@ var COMMANDS = [
3278
3469
  httpMethod: "POST",
3279
3470
  path: "/api/v1/products/{productId}/images",
3280
3471
  summary: "Upload Product Image",
3472
+ description: "Upload one image to a product's or variant's gallery as multipart/form-data. Requires `catalog:write`.\n\nJPEG, PNG, WebP, AVIF, or HEIC up to 8 MB; WebP, AVIF, and HEIC are stored as JPEG. The image is added at `position`, or at the end. Publish the product to send the new gallery to marketplaces.",
3281
3473
  flags: [
3282
3474
  {
3283
3475
  name: "productId",
@@ -3297,6 +3489,7 @@ var COMMANDS = [
3297
3489
  httpMethod: "PATCH",
3298
3490
  path: "/api/v1/products/{productId}/inventory",
3299
3491
  summary: "Update Product Inventory",
3492
+ description: "Update canonical on-hand inventory for a simple product or variant UUID. Multi-variant parent products must be updated through their variant IDs. A successful quantity change emits `product.inventory.changed` to matching developer webhook subscriptions.\n\n### Authorization\n\nRequires an API credential with `catalog:write`. OmniCommerce derives `organizationId` from that credential; the request body cannot select or override an organization. ERP-managed and multi-source inventory keeps its existing ownership protections.\n\n### Marketplace sync\n\nThe update is Omni-only by default. Set `syncToMarketplaces` to `true` to create one durable inventory outbox job per marketplace account. Omit `targets` to sync every enabled, published account for the product, or provide exact `{ platform, accountId }` targets. Every explicit target is validated before inventory changes. The response contains each job ID and immediate target status; use `GET /api/v1/jobs/{jobId}` for progress.",
3300
3493
  flags: [
3301
3494
  {
3302
3495
  name: "productId",
@@ -3316,6 +3509,7 @@ var COMMANDS = [
3316
3509
  httpMethod: "GET",
3317
3510
  path: "/api/v1/products/{productId}/listings",
3318
3511
  summary: "Get Product Listings",
3512
+ description: "Where a product is listed: each marketplace's store, live or delisted state, item id, buyer-facing URL, and the latest publish attempt with any rejection details. Requires `catalog:read`.\n\nPoll after `POST /api/v1/products/{productId}/publish`.",
3319
3513
  flags: [
3320
3514
  {
3321
3515
  name: "productId",
@@ -3341,6 +3535,7 @@ var COMMANDS = [
3341
3535
  httpMethod: "PATCH",
3342
3536
  path: "/api/v1/products/{productId}/price",
3343
3537
  summary: "Update Product Price",
3538
+ description: "Update the canonical catalog price for a simple product or variant UUID. Multi-variant parent products must be updated through their variant IDs. A successful change emits `product.price.changed` to matching developer webhook subscriptions.\n\n### Authorization\n\nRequires an API credential with `catalog:write`. OmniCommerce derives `organizationId` from that credential; the request body cannot select or override an organization.\n\n### Marketplace sync\n\nThe update is Omni-only by default. Set `syncToMarketplaces` to `true` to queue durable marketplace work. Omit `targets` to sync every enabled, published account for the product, or provide exact `{ platform, accountId }` targets. Every explicit target is validated before the catalog changes. The response contains pollable job IDs and immediate per-target queue status; use `GET /api/v1/jobs/{jobId}` for progress.\n\nAn explicit marketplace push also refreshes matching catalog prices without recording a catalog change. For this unchanged-price refresh, send `Idempotency-Key` to reuse its saved job and exact targets on retries. Use a new key for a new refresh.",
3344
3539
  flags: [
3345
3540
  {
3346
3541
  name: "productId",
@@ -3360,6 +3555,7 @@ var COMMANDS = [
3360
3555
  httpMethod: "POST",
3361
3556
  path: "/api/v1/products/{productId}/publish",
3362
3557
  summary: "Publish Product",
3558
+ description: "### Publishing\n\nQueue durable marketplace publish/update jobs for a product. Omit marketplaces to use every enabled or already listed marketplace, or name the marketplaces to target. Omit updateFields for a full publish with live/draft visibility. Set updateFields to update only saved values for those fields on existing listings with assigned stores; other fields and listing visibility stay unchanged. No new listing is created by a selected-field update.\n\n### Marketplace capabilities\n\nSEO is Shopify-only; highlights support Lazada, TikTok and Amazon; attributes exclude WhatsApp. Category-only updates require a full publish on TikTok and Amazon. Unsupported combinations and missing listings/stores return explicit per-marketplace failures while valid targets continue.\n\n### Completion\n\nAccepted means queued; inspect every result and await every jobId and inventory correlation with jobs.wait, then verify the listings.",
3363
3559
  flags: [
3364
3560
  {
3365
3561
  name: "productId",
@@ -3379,6 +3575,7 @@ var COMMANDS = [
3379
3575
  httpMethod: "POST",
3380
3576
  path: "/api/v1/products/bulk-import",
3381
3577
  summary: "Bulk Import Products from JSON or CSV",
3578
+ description: "Queue a bulk product import for the authenticated organization.\n\nSupply explicit SKU options in each row's `variationAttributes` and native marketplace attributes in `marketplaceAttributes`. Enrichment never infers SKU options. At Zalora publish time, a missing required Size defaults to One Size only when valid for the selected category and supplied size system. Supplied sizes are preserved; missing or incompatible size systems and other required options block publishing. Each row remains a standalone product; no child variants are created for the default.\n\n### Input options\n\n- Upload a CSV (2 MiB) or JSON products file (8 MiB) using `multipart/form-data`.\n- Send JSON with a `products` array of 1\u20135,000 flat product objects (8 MiB request maximum).\n- Send JSON with inline `csvText`.\n- Send JSON referencing a stored `documentId`.\n\n### Asynchronous result\n\nThe API creates import rows, then queues draft creation and AI Review through Inngest. Completed import jobs expose `reviewBatchIds`, `reviewUrls`, and `reviewWarnings`. Set workflow.autoApplyHighConfidence=true with independent workflow.enrichmentAutoApplyThreshold and workflow.taxonomyAutoApplyThreshold (0.62\u20131) to apply qualifying proposals; image changes still require visual approval. autoApproveThreshold is a separate import-row setting, not a Review threshold. Set workflow.publish=true to queue publication to saved stores after every required scope for a product is approved and applied. Both automatic and manual approval resume publishing. Pending, rejected, failed and cancelled scopes block that product while eligible products continue. Poll GET /api/v1/jobs/{jobId}; publishing includes ordered per-product/store receipts and verified publish-job status. Import completed does not mean published.\n\nCancel an in-flight import with `POST /api/v1/jobs/{jobId}/cancel`.",
3382
3579
  flags: [],
3383
3580
  acceptsJsonBody: true,
3384
3581
  acceptsFile: false,
@@ -3391,6 +3588,7 @@ var COMMANDS = [
3391
3588
  httpMethod: "GET",
3392
3589
  path: "/api/v1/products/bulk-import/retries/{retryJobId}",
3393
3590
  summary: "Get Import Retry Progress",
3591
+ description: "Read actual row and review generation progress using an importretry_... handle. Requires catalog:read. success is null while running, true only for successful completion, and false for missing targets, dispatch failure, or stage failures.\n\nRow IDs, review request IDs, errors, and per-stage counts remain available. The same handle works with GET /api/v1/jobs/{jobId} and SDK jobs.wait.",
3394
3592
  flags: [
3395
3593
  {
3396
3594
  name: "retryJobId",
@@ -3416,6 +3614,7 @@ var COMMANDS = [
3416
3614
  httpMethod: "POST",
3417
3615
  path: "/api/v1/products/bulk-import/retry",
3418
3616
  summary: "Retry Failed Import or Review Jobs",
3617
+ description: "Retry 1\u201320 jobs with durable background execution. Requires catalog:write.\n\n### Targets\n\njobIds accepts import UUIDs, bulk_... developer job handles, or review_<batch UUID> for a Review job (including jobs created in the app). Inputs are trimmed, bounded, and deduplicated in first-requested order.\n\n### Retry scope\n\nstages=all retries failed source rows and linked review stages; stages=images retries failed review images only. Completed work, applied products, cancelled stages, and active work are preserved. Optional brandKitIds replaces image-source selection using the kits' current organization-owned websites. Omit it to keep frozen sources. To resume interrupted dispatch, pass an importretry_... handle without overrides; the saved target plan is reused.\n\n### Results\n\nUse the returned ordered results and retryJobIds; partial enqueue failures remain explicit. HTTP 202 means accepted, not successful generation. Read every retry handle with getBulkImportRetry or jobs.wait. Newly imported rows enter the normal Review pipeline.",
3419
3618
  flags: [],
3420
3619
  acceptsJsonBody: true,
3421
3620
  acceptsFile: false,
@@ -3428,6 +3627,7 @@ var COMMANDS = [
3428
3627
  httpMethod: "POST",
3429
3628
  path: "/api/v1/products/compare-prices",
3430
3629
  summary: "Compare Product Market Prices",
3630
+ description: "Research market offers for a batch of OmniCommerce simple product or variant UUIDs using the same BigGo API and Serper Shopping fallback as pricing strategy. Read-only; no prices are changed.\n\n### Authorization\n\nRequires catalog:read. API keys resolve organizationId from the credential; session callers must provide an authorized organizationId.\n\n### Durable batches\n\nAccepts 1\u201350 input entries, trimmed and deduplicated in first-requested order. Returns HTTP 202 and a durable jobId. Retrieve progress and results from GET /api/v1/products/compare-prices/jobs/{jobId} or await jobs.wait in the SDK with a suitable timeout. A client timeout does not cancel the job. Use variant IDs for products with variants. Each listing market has its own durable search step; searches use bounded concurrency and retry failed providers once. Final result.success is true only when every requested product and listing market succeeds. Partial failures remain explicit.\n\nOmit country/gl to compare every recorded listing market. Global Zalora compares its exact country prices in SG, MY, ID, PH, HK, and TW as present on the listing; variant offers use exact SKU/variant identity. An India Shopify store selling in SGD is researched in Singapore because market selection follows selling currency, not the store address. gl overrides country and restricts research to that market. Unsupported currencies and missing country prices are reported without silently skipping listings or converting currencies.\n\nresults[].markets contains separate platform/store/country prices and shopping statistics. Prices come from persisted marketplace snapshots or acknowledged marketplace writes; priceSource and priceAsOf identify the evidence. Published listings without exact price evidence may return catalog research but success is false, with an explicit verification error. Unlisted products use their catalog price/currency. Research does not refresh the connected marketplace listing; refresh stale listing data before comparing.\n\nMarket comparison measures recorded listing list price minus market median (p50), with percentage relative to the median. Catalog fallback comparisons use the explicitly named catalog_price_vs_market_median metric. The product-level currentPrice/currency remain catalog fields; product-level research/comparison are available only for a single market with compatible currency. For multiple markets, consume markets[]. These differences are not recommended selling prices; monetary values are never combined across currencies.\n\nShopping search coverage depends on the provider index; individual marketplaces and listings are not verified.\n\nOffers may refer to different variants, pack sizes, bundles, or similar products. Verify the offer before using its price.\n\nPricing strategy excludes offers from ebay and walmart.",
3431
3631
  flags: [],
3432
3632
  acceptsJsonBody: true,
3433
3633
  acceptsFile: false,
@@ -3440,6 +3640,7 @@ var COMMANDS = [
3440
3640
  httpMethod: "GET",
3441
3641
  path: "/api/v1/products/compare-prices/jobs/{jobId}",
3442
3642
  summary: "Get Product Price Comparison",
3643
+ description: "Read durable batch progress and ordered per-product results. Requires catalog:read and the job's organization.\n\ncompleted means every target was processed; inspect result.success, succeededCount, failedCount, and each result for partial failures. Session callers must supply organizationId.",
3443
3644
  flags: [
3444
3645
  {
3445
3646
  name: "jobId",
@@ -3465,6 +3666,7 @@ var COMMANDS = [
3465
3666
  httpMethod: "POST",
3466
3667
  path: "/api/v1/products/cost",
3467
3668
  summary: "Batch Update Product Cost",
3669
+ description: "Set catalog cost price and currency for one or more products. Cost is Omni-only and never syncs to marketplaces.\n\nEach update targets `productId` or `sku` (Omni `products.sku`). Provide `costPrice` with `costPriceCurrency` when the source amount is not in the product selling currency. If `costPriceFxRate` is omitted and the currencies differ, Omni quotes FX via the canonical FX service and stores the rate on the product.\n\n### Authorization\n\nRequires `catalog:write`. `organizationId` comes from the credential; the body cannot select an organization.\n\n### Limits\n\n`updates` is required, 1\u2013200 items. Duplicate product IDs fail after the first occurrence. `costPrice: null` clears cost and FX.",
3468
3670
  flags: [],
3469
3671
  acceptsJsonBody: true,
3470
3672
  acceptsFile: false,
@@ -3477,6 +3679,7 @@ var COMMANDS = [
3477
3679
  httpMethod: "GET",
3478
3680
  path: "/api/v1/products/count",
3479
3681
  summary: "Count Products",
3682
+ description: "Count matching catalog parent products using the Products page's canonical filters and authorization, without loading rows, pricing, or location data.\n\nProducts are counted once even when multiple listings match. This does not count variants or verify live marketplace status. status is the catalog lifecycle/derived view. All marketplaces are supported. Use storeKeys for exact marketplace/country/account identity.\n\nAuthenticate with a read-only catalog credential; organization comes only from that credential.",
3480
3683
  flags: [
3481
3684
  {
3482
3685
  name: "status",
@@ -3597,6 +3800,65 @@ var COMMANDS = [
3597
3800
  acceptsFile: false,
3598
3801
  bodyRequired: false
3599
3802
  },
3803
+ {
3804
+ trail: ["products", "merge-duplicates"],
3805
+ resourcePath: ["products"],
3806
+ methodName: "mergeDuplicates",
3807
+ httpMethod: "POST",
3808
+ path: "/api/v1/products/duplicates/merge",
3809
+ 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.",
3811
+ flags: [],
3812
+ acceptsJsonBody: true,
3813
+ acceptsFile: false,
3814
+ bodyRequired: true
3815
+ },
3816
+ {
3817
+ trail: ["products", "preview-duplicate-merge"],
3818
+ resourcePath: ["products"],
3819
+ methodName: "previewDuplicateMerge",
3820
+ httpMethod: "POST",
3821
+ path: "/api/v1/products/duplicates/merge-preview",
3822
+ summary: "Preview Duplicate Product Merge",
3823
+ description: "Read-only preview of merging duplicate catalog products into one master product. Uses the same contract and rules as `POST /api/v1/products/duplicates/merge` and the assistant's Fix Listing Duplicates tool.\n\nProducts are grouped by exact SKU. Each group shows its master (first in `productIds`), every product's marketplace listings per store with live status. A blocked group reports its `error`; nothing is changed.\n\nSupports every OmniCommerce marketplace. All marketplace listings are preserved. Different listing identities in the same store block that group; the merge never delists listings.\n\nDiscover candidates with `GET /api/v1/products?status=duplicates&duplicateType=sku&detail=full`. Refresh the saved scan through `POST /api/v1/products/duplicates/scan` when needed. Each group's `masterSelections[]` contains productId, allowed and a seller-facing note, matching the UI's enabled/disabled master choices. A sole allowed choice must be master to retain stock connections. No allowed choices means the group cannot merge. Several allowed choices require deciding which product's content, price and stock to keep; no universal best master is inferred.\n\nA preview can return HTTP 200 with ok=false and still provide usable groups/masterSelections. For stock_source_requires_master, choose an allowed master and preview again. Once every selected group succeeds, pass the reviewed groups' productIds (master first) and sku as expectedGroups to merge. Preview is read-only and does not publish to marketplaces.\n\n### Authorization\n\nRequires `catalog:read`.",
3824
+ flags: [],
3825
+ acceptsJsonBody: true,
3826
+ acceptsFile: false,
3827
+ bodyRequired: true
3828
+ },
3829
+ {
3830
+ trail: ["products", "get-duplicate-scan"],
3831
+ resourcePath: ["products"],
3832
+ methodName: "getDuplicateScan",
3833
+ httpMethod: "GET",
3834
+ path: "/api/v1/products/duplicates/scan",
3835
+ 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.",
3837
+ flags: [
3838
+ {
3839
+ name: "organizationId",
3840
+ flag: "organization-id",
3841
+ required: false,
3842
+ source: "query"
3843
+ }
3844
+ ],
3845
+ acceptsJsonBody: false,
3846
+ acceptsFile: false,
3847
+ bodyRequired: false
3848
+ },
3849
+ {
3850
+ trail: ["products", "scan-duplicates"],
3851
+ resourcePath: ["products"],
3852
+ methodName: "scanDuplicates",
3853
+ httpMethod: "POST",
3854
+ path: "/api/v1/products/duplicates/scan",
3855
+ 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.",
3857
+ flags: [],
3858
+ acceptsJsonBody: true,
3859
+ acceptsFile: false,
3860
+ bodyRequired: true
3861
+ },
3600
3862
  {
3601
3863
  trail: ["products", "enrich"],
3602
3864
  resourcePath: ["products"],
@@ -3604,6 +3866,7 @@ var COMMANDS = [
3604
3866
  httpMethod: "POST",
3605
3867
  path: "/api/v1/products/enrich",
3606
3868
  summary: "Queue Product Enrichment",
3869
+ description: "Requires catalog:enrich. Queue content enrichment for 1\u20131,000 existing Omni product IDs across all supported marketplaces. Returns 202 after queue submission without awaiting AI completion or publication.\n\n### Enrichment options\n\nFields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included; images are not queued here. Optional marketplaceStoreSelections maps each marketplace to an array of connected store IDs. Multiple stores on one marketplace get independent category and attribute reviews in the same review group. Set includeListingCopy=false for taxonomy only. Store countries come from the authenticated organization connections.\n\nautoApplyHighConfidence defaults to false. Independent enrichmentAutoApplyThreshold and taxonomyAutoApplyThreshold accept 0.62\u20131; omitted thresholds use organization settings. Low-confidence or blocked proposals remain in Review. AI usage is billed to the authenticated organization.\n\n### Publishing after approval\n\nSet publish=true (default false) to queue publishing after every required Review scope is approved and applied. This additionally requires catalog:write. Automatic and manual approvals use the same durable continuation. Selected stores are captured at queue time; without explicit destinations the product's saved marketplace assignments are used. Pending, rejected, failed or cancelled scopes block that product while eligible products continue. Accepted publish jobs are distinct from successful marketplace publication. Open links.review to inspect reviews and per-store publishing receipts.",
3607
3870
  flags: [],
3608
3871
  acceptsJsonBody: true,
3609
3872
  acceptsFile: false,
@@ -3616,6 +3879,7 @@ var COMMANDS = [
3616
3879
  httpMethod: "GET",
3617
3880
  path: "/api/v1/promotions",
3618
3881
  summary: "List Promotions",
3882
+ description: "List central promotions for the authenticated organization with filters and offset pagination matching the workspace Promotions listing. Requires `promotions:read`.",
3619
3883
  flags: [
3620
3884
  {
3621
3885
  name: "organizationId",
@@ -3689,6 +3953,7 @@ var COMMANDS = [
3689
3953
  httpMethod: "POST",
3690
3954
  path: "/api/v1/promotions",
3691
3955
  summary: "Create Promotion",
3956
+ description: "Create a central promotion targeting connected stores. Requires `promotions:write`. Fixed-amount discounts resolve currency from the selected store countries.",
3692
3957
  flags: [],
3693
3958
  acceptsJsonBody: true,
3694
3959
  acceptsFile: false,
@@ -3701,6 +3966,7 @@ var COMMANDS = [
3701
3966
  httpMethod: "DELETE",
3702
3967
  path: "/api/v1/promotions/{promotionId}",
3703
3968
  summary: "Delete Promotion",
3969
+ description: "Delete a promotion by ID. Requires `promotions:write`.",
3704
3970
  flags: [
3705
3971
  {
3706
3972
  name: "promotionId",
@@ -3726,6 +3992,7 @@ var COMMANDS = [
3726
3992
  httpMethod: "GET",
3727
3993
  path: "/api/v1/promotions/{promotionId}",
3728
3994
  summary: "Get Promotion",
3995
+ description: "Fetch one promotion by ID, including effective status. Requires `promotions:read`.",
3729
3996
  flags: [
3730
3997
  {
3731
3998
  name: "promotionId",
@@ -3751,6 +4018,7 @@ var COMMANDS = [
3751
4018
  httpMethod: "PATCH",
3752
4019
  path: "/api/v1/promotions/{promotionId}",
3753
4020
  summary: "Update Promotion",
4021
+ description: "Update promotion fields (name, discount, schedule, status, stores). Requires `promotions:write`.",
3754
4022
  flags: [
3755
4023
  {
3756
4024
  name: "promotionId",
@@ -3776,6 +4044,7 @@ var COMMANDS = [
3776
4044
  httpMethod: "POST",
3777
4045
  path: "/api/v1/promotions/{promotionId}/preview",
3778
4046
  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.",
3779
4048
  flags: [
3780
4049
  {
3781
4050
  name: "promotionId",
@@ -3795,6 +4064,7 @@ var COMMANDS = [
3795
4064
  httpMethod: "DELETE",
3796
4065
  path: "/api/v1/promotions/{promotionId}/products",
3797
4066
  summary: "Unassign Products from Promotion",
4067
+ description: "Remove product assignments and queue marketplace teardown. Requires `promotions:write`.",
3798
4068
  flags: [
3799
4069
  {
3800
4070
  name: "promotionId",
@@ -3820,6 +4090,7 @@ var COMMANDS = [
3820
4090
  httpMethod: "GET",
3821
4091
  path: "/api/v1/promotions/{promotionId}/products",
3822
4092
  summary: "List Promotion Assignments",
4093
+ description: "List products assigned to a promotion. Requires `promotions:read`.",
3823
4094
  flags: [
3824
4095
  {
3825
4096
  name: "promotionId",
@@ -3845,6 +4116,7 @@ var COMMANDS = [
3845
4116
  httpMethod: "POST",
3846
4117
  path: "/api/v1/promotions/{promotionId}/products",
3847
4118
  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.",
3848
4120
  flags: [
3849
4121
  {
3850
4122
  name: "promotionId",
@@ -3870,6 +4142,7 @@ var COMMANDS = [
3870
4142
  httpMethod: "POST",
3871
4143
  path: "/api/v1/promotions/{promotionId}/retry",
3872
4144
  summary: "Retry Marketplace Delivery",
4145
+ description: "Run marketplace delivery again after a failure, for example once a store is reconnected. Requires `promotions:write`.\n\nYou do not need this to publish a promotion: creating or activating it, editing it while active or scheduled, and assigning products already deliver it, and pausing, ending, or archiving removes it. A retry brings each marketplace back in line with the promotion's current status.",
3873
4146
  flags: [
3874
4147
  {
3875
4148
  name: "promotionId",
@@ -3895,6 +4168,7 @@ var COMMANDS = [
3895
4168
  httpMethod: "POST",
3896
4169
  path: "/api/v1/promotions/batch",
3897
4170
  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.",
3898
4172
  flags: [],
3899
4173
  acceptsJsonBody: true,
3900
4174
  acceptsFile: false,
@@ -3907,6 +4181,7 @@ var COMMANDS = [
3907
4181
  httpMethod: "GET",
3908
4182
  path: "/api/v1/promotions/campaign-options",
3909
4183
  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.",
3910
4185
  flags: [
3911
4186
  {
3912
4187
  name: "organizationId",
@@ -3932,6 +4207,7 @@ var COMMANDS = [
3932
4207
  httpMethod: "GET",
3933
4208
  path: "/api/v1/promotions/capabilities",
3934
4209
  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.",
3935
4211
  flags: [
3936
4212
  {
3937
4213
  name: "organizationId",
@@ -3951,6 +4227,7 @@ var COMMANDS = [
3951
4227
  httpMethod: "POST",
3952
4228
  path: "/api/v1/promotions/delete",
3953
4229
  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.",
3954
4231
  flags: [],
3955
4232
  acceptsJsonBody: true,
3956
4233
  acceptsFile: false,
@@ -3963,6 +4240,7 @@ var COMMANDS = [
3963
4240
  httpMethod: "POST",
3964
4241
  path: "/api/v1/promotions/delivery",
3965
4242
  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.",
3966
4244
  flags: [],
3967
4245
  acceptsJsonBody: true,
3968
4246
  acceptsFile: false,
@@ -3975,6 +4253,7 @@ var COMMANDS = [
3975
4253
  httpMethod: "POST",
3976
4254
  path: "/api/v1/promotions/product-options",
3977
4255
  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.",
3978
4257
  flags: [],
3979
4258
  acceptsJsonBody: true,
3980
4259
  acceptsFile: false,
@@ -3987,6 +4266,7 @@ var COMMANDS = [
3987
4266
  httpMethod: "POST",
3988
4267
  path: "/api/v1/promotions/status",
3989
4268
  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.",
3990
4270
  flags: [],
3991
4271
  acceptsJsonBody: true,
3992
4272
  acceptsFile: false,
@@ -3999,6 +4279,7 @@ var COMMANDS = [
3999
4279
  httpMethod: "POST",
4000
4280
  path: "/api/v1/promotions/validate",
4001
4281
  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.",
4002
4283
  flags: [],
4003
4284
  acceptsJsonBody: true,
4004
4285
  acceptsFile: false,
@@ -4011,6 +4292,7 @@ var COMMANDS = [
4011
4292
  httpMethod: "GET",
4012
4293
  path: "/api/v1/returns",
4013
4294
  summary: "List Returns",
4295
+ description: "List normalized, PII-free marketplace returns with SKU-level lines. Requires `returns:read`. Use updatedSince and cursor for bootstrap/recovery alongside return webhooks.",
4014
4296
  flags: [
4015
4297
  {
4016
4298
  name: "organizationId",
@@ -4066,6 +4348,7 @@ var COMMANDS = [
4066
4348
  httpMethod: "GET",
4067
4349
  path: "/api/v1/returns/{returnId}",
4068
4350
  summary: "Get Return",
4351
+ description: "Get one normalized, PII-free return by OmniCommerce UUID. Requires `returns:read`; another organization's return returns 404.",
4069
4352
  flags: [
4070
4353
  {
4071
4354
  name: "returnId",
@@ -4091,6 +4374,7 @@ var COMMANDS = [
4091
4374
  httpMethod: "GET",
4092
4375
  path: "/api/v1/returns/actions",
4093
4376
  summary: "Check Return Actions",
4377
+ description: "### Authorization\n\nRequires orders:write.\n\n### Eligibility\n\nRead live marketplace decisions for 1\u201350 OmniCommerce return UUIDs using repeated returnIds query parameters. Refreshes the saved return state through the same service as the order UI. All targets are organization- and store-scoped before marketplace access. Results preserve first-requested order; one provider failure does not block another store. data.success describes eligibility checks, not whether an action is available. Completed, cancelled and other terminal returns have no actions. Check actions.length and limitation; never infer eligibility from status alone. Amazon and WhatsApp currently return explicit processing limitations. Other marketplaces expose only decisions supported by their current API state. No buyer remarks, shipping evidence or raw provider payloads are returned. Pass each chosen action id and version unchanged to POST /api/v1/returns/actions.",
4094
4378
  flags: [
4095
4379
  {
4096
4380
  name: "returnIds",
@@ -4116,6 +4400,7 @@ var COMMANDS = [
4116
4400
  httpMethod: "POST",
4117
4401
  path: "/api/v1/returns/actions",
4118
4402
  summary: "Process Returns",
4403
+ description: "### Authorization\n\nRequires orders:write.\n\n### Submit decisions\n\nQueue 1\u201350 selected return decisions, including a one-element batch for a single return. Use only actionId/version pairs from a fresh eligibility check. Identical duplicate return operations are deduplicated in first-requested order; conflicting duplicates are rejected. requestId is a UUID idempotency key: retry the same key and unchanged operations after a transport failure. An active matching decision is reused; conflicting active decisions return 409. Returns HTTP 202 with every returnId and jobId. The durable worker rechecks current permissions, store identity, eligibility and version immediately before writing, then verifies the marketplace result. Follow links.poll or GET /api/v1/returns/actions/jobs with every jobIds entry; requires orders:read. data.success is true only when all jobs succeeded, so newly queued work has success=false and pendingCount>0. failed and needs_review are terminal failures; needs_review means the marketplace outcome is uncertain and must be checked before another action. Client disconnection does not cancel queued work.",
4119
4404
  flags: [],
4120
4405
  acceptsJsonBody: true,
4121
4406
  acceptsFile: false,
@@ -4128,6 +4413,7 @@ var COMMANDS = [
4128
4413
  httpMethod: "GET",
4129
4414
  path: "/api/v1/returns/actions/jobs",
4130
4415
  summary: "Get Return Action Jobs",
4416
+ description: "### Authorization\n\nRequires orders:read.\n\n### Job outcomes\n\nRead the current state of 1\u201350 return-processing job UUIDs in one request using repeated jobIds parameters. Use every job ID returned by submission. Results preserve first-requested order. pendingCount counts queued, running and submitting; succeededCount counts succeeded; failedCount includes failed and needs_review. data.success is true only if every requested job succeeded. The top-level completed status refers to this lookup, not to the jobs. Missing or cross-organization jobs return 404; jobs outside assigned stores are forbidden. Evidence contains accepted/verified flags and before/after marketplace statuses, without raw provider payloads.",
4131
4417
  flags: [
4132
4418
  {
4133
4419
  name: "jobIds",
@@ -4153,6 +4439,7 @@ var COMMANDS = [
4153
4439
  httpMethod: "GET",
4154
4440
  path: "/api/v1/returns/orders",
4155
4441
  summary: "Get Order Returns",
4442
+ description: "Requires orders:read. Read stored return requests for 1\u201350 order UUIDs using repeated orderIds query parameters.\n\n### Return identity\n\nResults preserve first-requested order and include distinct active and historical return requests. processingEligible is a local candidate flag, not live eligibility. Pass returnId values to GET /api/v1/returns/actions before choosing a decision. Every order is authorized before reading returns, including store restrictions; no buyer data is exposed.",
4156
4443
  flags: [
4157
4444
  {
4158
4445
  name: "orderIds",
@@ -4178,6 +4465,7 @@ var COMMANDS = [
4178
4465
  httpMethod: "GET",
4179
4466
  path: "/api/v1/reviews",
4180
4467
  summary: "List Reviews",
4468
+ description: "List marketplace product reviews, newest first unless `sortBy` says otherwise. Requires `reviews:read`.\n\nUse `priority=unreplied` for a reply queue. `replyRestriction` is null when a reply will be accepted.",
4181
4469
  flags: [
4182
4470
  {
4183
4471
  name: "organizationId",
@@ -4251,6 +4539,7 @@ var COMMANDS = [
4251
4539
  httpMethod: "GET",
4252
4540
  path: "/api/v1/reviews/{reviewId}",
4253
4541
  summary: "Get Review",
4542
+ description: "Read one review by its OmniCommerce UUID. Requires `reviews:read`.",
4254
4543
  flags: [
4255
4544
  {
4256
4545
  name: "reviewId",
@@ -4276,6 +4565,7 @@ var COMMANDS = [
4276
4565
  httpMethod: "POST",
4277
4566
  path: "/api/v1/reviews/{reviewId}/reply",
4278
4567
  summary: "Reply to Review",
4568
+ description: "Reply to one review identified by its OmniCommerce UUID in the URL. Requires `reviews:write`. Supply `reply` or set `generateWithAi: true`. `submit` defaults to true; set false with AI generation to return a draft without posting. Optional `instructions` guide AI writing. AI generation uses organization AI credits.\n\nRead `data.submitted` for confirmed marketplace submission. Generated text is retained when submission fails. Unsupported marketplaces return their capability limitation. Check review state before retrying an unconfirmed submission. Amazon review requests are separate.",
4279
4569
  flags: [
4280
4570
  {
4281
4571
  name: "reviewId",
@@ -4295,6 +4585,7 @@ var COMMANDS = [
4295
4585
  httpMethod: "GET",
4296
4586
  path: "/api/v1/scripts",
4297
4587
  summary: "List Organization Scripts",
4588
+ description: "Discover custom Windmill scripts and their script__ tool names. Uses the same search and active/draft/archived filters as the app. Requires scripts:read. Default all excludes archived scripts; use status=archived to see archives.",
4298
4589
  flags: [
4299
4590
  {
4300
4591
  name: "organizationId",
@@ -4326,6 +4617,7 @@ var COMMANDS = [
4326
4617
  httpMethod: "POST",
4327
4618
  path: "/api/v1/scripts",
4328
4619
  summary: "Create Script",
4620
+ description: "Create an inactive TypeScript script. Optional source uses the canonical parser and 64 KiB UTF-8 limit; omitted source uses the starter. Requires scripts:write. Deploy explicitly before execution.",
4329
4621
  flags: [],
4330
4622
  acceptsJsonBody: true,
4331
4623
  acceptsFile: false,
@@ -4338,6 +4630,7 @@ var COMMANDS = [
4338
4630
  httpMethod: "DELETE",
4339
4631
  path: "/api/v1/scripts/{scriptId}",
4340
4632
  summary: "Archive Script",
4633
+ description: "Archive and deactivate an organization script, retaining version and run history. Requires scripts:write and the automations.delete capability for user credentials.",
4341
4634
  flags: [
4342
4635
  {
4343
4636
  name: "scriptId",
@@ -4363,6 +4656,7 @@ var COMMANDS = [
4363
4656
  httpMethod: "GET",
4364
4657
  path: "/api/v1/scripts/{scriptId}",
4365
4658
  summary: "Get Script",
4659
+ description: "Read script metadata, tool name, and all immutable versions with argument/output JSON schemas. Requires scripts:read. The activeVersionId identifies the current execution schema.",
4366
4660
  flags: [
4367
4661
  {
4368
4662
  name: "scriptId",
@@ -4388,6 +4682,7 @@ var COMMANDS = [
4388
4682
  httpMethod: "PATCH",
4389
4683
  path: "/api/v1/scripts/{scriptId}",
4390
4684
  summary: "Update Script",
4685
+ description: "Update metadata, approval mode, or draft source. Saving source does not change the active immutable deployment. Requires scripts:write.",
4391
4686
  flags: [
4392
4687
  {
4393
4688
  name: "scriptId",
@@ -4407,6 +4702,7 @@ var COMMANDS = [
4407
4702
  httpMethod: "POST",
4408
4703
  path: "/api/v1/scripts/{scriptId}/activate",
4409
4704
  summary: "Activate Script Version",
4705
+ description: "Switch to a previously accepted immutable version belonging to this script, including rollback. Draft/failed versions cannot be activated. Requires scripts:write.",
4410
4706
  flags: [
4411
4707
  {
4412
4708
  name: "scriptId",
@@ -4426,6 +4722,7 @@ var COMMANDS = [
4426
4722
  httpMethod: "POST",
4427
4723
  path: "/api/v1/scripts/{scriptId}/deploy",
4428
4724
  summary: "Deploy Script",
4725
+ description: "Validate TypeScript source and create an immutable Windmill version. activate defaults to true. activate=false saves a draft version; it cannot execute until redeployed and accepted. Requires scripts:write. Does not enable the tool for agents automatically.",
4429
4726
  flags: [
4430
4727
  {
4431
4728
  name: "scriptId",
@@ -4445,6 +4742,7 @@ var COMMANDS = [
4445
4742
  httpMethod: "GET",
4446
4743
  path: "/api/v1/scripts/{scriptId}/runs",
4447
4744
  summary: "List Script Runs",
4745
+ description: "Read recent runs and result/error references through the canonical run service. Requires scripts:read.",
4448
4746
  flags: [
4449
4747
  {
4450
4748
  name: "scriptId",
@@ -4476,6 +4774,7 @@ var COMMANDS = [
4476
4774
  httpMethod: "POST",
4477
4775
  path: "/api/v1/scripts/{scriptId}/runs",
4478
4776
  summary: "Execute Script",
4777
+ description: "Submit a durable run of the active or explicitly pinned accepted version. Requires scripts:execute. Arguments must match its schema and fit 256 KiB.\n\nOptional idempotencyKey identifies one invocation within this organization: reuse only for the same version and arguments.\n\nHTTP 202 retains the run record and does not establish execution success; pass every run.id to scripts.awaitRuns and inspect resultRef/errorRef. Runs use immutable hashes and existing durable reconciliation.",
4479
4778
  flags: [
4480
4779
  {
4481
4780
  name: "scriptId",
@@ -4495,6 +4794,7 @@ var COMMANDS = [
4495
4794
  httpMethod: "GET",
4496
4795
  path: "/api/v1/scripts/{scriptId}/source",
4497
4796
  summary: "Get Script Source",
4797
+ description: "Read current draft source from the organization's Windmill workspace. This may differ from the active version. Requires scripts:read.",
4498
4798
  flags: [
4499
4799
  {
4500
4800
  name: "scriptId",
@@ -4520,6 +4820,7 @@ var COMMANDS = [
4520
4820
  httpMethod: "POST",
4521
4821
  path: "/api/v1/scripts/jobs/await",
4522
4822
  summary: "Read Script Run Results",
4823
+ description: "Refresh 1\u2013100 script run IDs in first-requested order, trimming and deduplicating IDs. Requires scripts:read.\n\nThis is a status snapshot and may return pending jobs; it never submits customer code again. success is true only when all requested runs succeeded. Results retain explicit per-target not_found/unavailable failures.\n\nUse script run IDs with this endpoint; the generic developer jobs API does not resolve them.",
4523
4824
  flags: [],
4524
4825
  acceptsJsonBody: true,
4525
4826
  acceptsFile: false,
@@ -4532,6 +4833,7 @@ var COMMANDS = [
4532
4833
  httpMethod: "POST",
4533
4834
  path: "/api/v1/scripts/jobs/cancel",
4534
4835
  summary: "Cancel Script Runs",
4836
+ description: "Request cancellation for 1\u2013100 run IDs, trimmed and deduplicated in first-requested order. Requires scripts:execute. Check each requested/confirmed/status; request acceptance does not confirm cancellation or roll back prior side effects. success requires every cancellation to be confirmed.",
4535
4837
  flags: [],
4536
4838
  acceptsJsonBody: true,
4537
4839
  acceptsFile: false,
@@ -4544,6 +4846,7 @@ var COMMANDS = [
4544
4846
  httpMethod: "GET",
4545
4847
  path: "/api/v1/search",
4546
4848
  summary: "Search Public Merchant Products",
4849
+ description: "Search across all public merchants and products with optional merchant, pricing, stock, marketplace, and localization filters.",
4547
4850
  flags: [
4548
4851
  {
4549
4852
  name: "currency",
@@ -4671,6 +4974,7 @@ var COMMANDS = [
4671
4974
  httpMethod: "POST",
4672
4975
  path: "/api/v1/search",
4673
4976
  summary: "Search Public Merchant Products",
4977
+ description: "Search across all public merchants and products with optional merchant, pricing, stock, marketplace, and localization filters.",
4674
4978
  flags: [
4675
4979
  {
4676
4980
  name: "currency",
@@ -4798,6 +5102,7 @@ var COMMANDS = [
4798
5102
  httpMethod: "GET",
4799
5103
  path: "/api/v1/settlements",
4800
5104
  summary: "List Settlements",
5105
+ description: "List the latest normalized order-settlement snapshots created by finance ingestion. Requires `settlements:read`. Use updatedSince and cursor for recovery; money remains partitioned by currency.",
4801
5106
  flags: [
4802
5107
  {
4803
5108
  name: "organizationId",
@@ -4859,6 +5164,7 @@ var COMMANDS = [
4859
5164
  httpMethod: "POST",
4860
5165
  path: "/api/v1/settlements",
4861
5166
  summary: "Apply Settlements",
5167
+ description: "Apply marketplace-agnostic settlement lines to existing orders.\n\n### Authentication\n\nRequires `orders:write`.\n\n### What this endpoint does\n\n- Stores every submitted line as marketplace financial evidence.\n- Projects **settled** rows into the order finance ledger.\n- Keeps pending, reversed, and voided rows as evidence only, removing any earlier developer API ledger projection for the same `sourceEventKey`.\n- Recomputes Payment received when a marketplace-specific formula exists. Zalora is currently supported.\n\n### Order matching\n\nOrders are matched by organization, marketplace platform, and exact `externalOrderId`. Include `externalOrderItemId` when an order has multiple lines.\n\n- `accountId` is an exact store match, never a wildcard.\n- `marketplace=zalora` can match Zalora Seller Center orders (`platform=zalora`) and reconciliation-era agentic carts.\n- If the same `externalOrderId` exists in both groups, the line is ambiguous. Pass `accountId` to disambiguate it.\n- Ledger rows retain the platform of the matched order.\n\n### Zalora ITR parity\n\n- Send one `lines[]` entry per report row. `transactionType` can represent Commission, Item Price Credit, ZAP Commitments, Payment Gateway Fee, shipping, penalties, or credits.\n- `settlementStatus=settled` is paid; `pending` is not.\n- Payment received is calculated from Item Price Credit \u2212 ZAP \u2212 Commission ledger entries. Payment gateway, shipping, and penalty entries still post to P&L when settled but are excluded from that formula.\n- Item Price Credit updates Payment received without changing line `paidPrice` or `unitPrice`. Use `PATCH /api/v1/orders/{orderId}` when displayed prices must also change.\n\n### Important limitations\n\nThis is not an order-price API. Selling prices, COGS, and returns belong on `POST /api/v1/orders` or `PATCH /api/v1/orders/{orderId}`. Do not send `paymentReceived`.\n\nThis endpoint does not replace ITR apply for:\n\n- Spreadsheet parsing\n- Updating `paidPrice` or `unitPrice`\n- Automatically marking returned or cancelled lines and restoring return inventory\n- SKU fallback matching\n- Rewriting order currency or totals\n- Rebasing COGS currency\n- Undo or redo\n\nDo not apply the same fee lines through both this API and the Zalora Item Transaction Report tool. Their `source_event_key` namespaces differ (`developer_api:\u2026` and `zalora_report:\u2026`), so Payment received would be counted twice.",
4862
5168
  flags: [],
4863
5169
  acceptsJsonBody: true,
4864
5170
  acceptsFile: false,
@@ -4871,6 +5177,7 @@ var COMMANDS = [
4871
5177
  httpMethod: "GET",
4872
5178
  path: "/api/v1/settlements/{settlementId}",
4873
5179
  summary: "Get Settlement",
5180
+ description: "Get the latest normalized settlement snapshot by stable settlement ID. Requires `settlements:read`.",
4874
5181
  flags: [
4875
5182
  {
4876
5183
  name: "settlementId",
@@ -4896,6 +5203,7 @@ var COMMANDS = [
4896
5203
  httpMethod: "POST",
4897
5204
  path: "/api/v1/sync",
4898
5205
  summary: "Sync Product Commercial Fields",
5206
+ description: "Update price, sale price, or stock quantity in OmniCommerce and queue marketplace sync workers where applicable.",
4899
5207
  flags: [],
4900
5208
  acceptsJsonBody: true,
4901
5209
  acceptsFile: false,
@@ -4908,6 +5216,7 @@ var COMMANDS = [
4908
5216
  httpMethod: "GET",
4909
5217
  path: "/api/v1/threads/{thread_id}/status",
4910
5218
  summary: "Get Thread Status",
5219
+ description: "Poll an AOP execution started by `POST /api/v1/aop/{aopId}/execute`. Requires `aops:read`. Status values are `running`, `completed`, or `failed`.",
4911
5220
  flags: [
4912
5221
  {
4913
5222
  name: "thread_id",
@@ -4939,6 +5248,7 @@ var COMMANDS = [
4939
5248
  httpMethod: "GET",
4940
5249
  path: "/api/v1/webhook-events",
4941
5250
  summary: "List Webhook Events",
5251
+ description: "Pull immutable webhook events for recovery or scheduled reconciliation. Requires `webhooks:manage`. Results are organization-scoped and ordered oldest first; continue with the opaque cursor. This is the pull fallback for a receiver that missed push deliveries.",
4942
5252
  flags: [
4943
5253
  {
4944
5254
  name: "organizationId",
@@ -4982,6 +5292,7 @@ var COMMANDS = [
4982
5292
  httpMethod: "GET",
4983
5293
  path: "/api/v1/webhooks",
4984
5294
  summary: "List Developer Webhooks",
5295
+ description: "List configured developer webhook subscriptions for the authenticated organization.",
4985
5296
  flags: [],
4986
5297
  acceptsJsonBody: false,
4987
5298
  acceptsFile: false,
@@ -4994,6 +5305,7 @@ var COMMANDS = [
4994
5305
  httpMethod: "POST",
4995
5306
  path: "/api/v1/webhooks",
4996
5307
  summary: "Create Developer Webhook",
5308
+ description: "Create a developer webhook subscription for the authenticated organization. The signing secret is returned only once.",
4997
5309
  flags: [],
4998
5310
  acceptsJsonBody: true,
4999
5311
  acceptsFile: false,
@@ -5006,6 +5318,7 @@ var COMMANDS = [
5006
5318
  httpMethod: "GET",
5007
5319
  path: "/api/v1/zalora/import",
5008
5320
  summary: "Get Selected Zalora Import Status",
5321
+ description: "Requires catalog:read. Follow the unchanged links.job URL returned by POST. Reads current state once without waiting.\n\n### Completion\n\ndata.status is pending, running, success, or error; data.terminal and data.success identify completion. data.productIds contains mapped Omni IDs for the supplied product sets. Failed imports remain explicit, including missingExternalIds. The top-level completed status describes this status request, not the import.\n\nKeep the original target IDs: the status lookup resolves those targets and does not prove that a modified selection was part of this job.",
5009
5322
  flags: [
5010
5323
  {
5011
5324
  name: "organizationId",
@@ -5043,6 +5356,7 @@ var COMMANDS = [
5043
5356
  httpMethod: "POST",
5044
5357
  path: "/api/v1/zalora/import",
5045
5358
  summary: "Import Selected Zalora Products",
5359
+ description: "Requires catalog:write. Queue an exact import of 1\u201325 Zalora productSetIds from a connected store. Omit storeId only when one store or one default store is unambiguous.\n\nReturns 202 with links.job for optional status checks and retrieval of Omni product IDs. Only one import may run per store at a time. This endpoint does not invoke an AOP, enrich products, or publish listings.",
5046
5360
  flags: [],
5047
5361
  acceptsJsonBody: true,
5048
5362
  acceptsFile: false,
@@ -5055,6 +5369,7 @@ var COMMANDS = [
5055
5369
  httpMethod: "POST",
5056
5370
  path: "/ucp/v1/checkout-sessions",
5057
5371
  summary: "Create UCP Checkout Session",
5372
+ description: "Create a UCP shopping checkout session against the authenticated organization. The facade translates UCP line items to native agentic checkout sessions, reserves inventory, and returns a UCP checkout resource. Requires `UCP-Agent` and OAuth `checkout:write`.",
5058
5373
  flags: [],
5059
5374
  acceptsJsonBody: true,
5060
5375
  acceptsFile: false,
@@ -5067,6 +5382,7 @@ var COMMANDS = [
5067
5382
  httpMethod: "GET",
5068
5383
  path: "/ucp/v1/checkout-sessions/{sessionId}",
5069
5384
  summary: "Get UCP Checkout Session",
5385
+ description: "Fetch the current UCP checkout resource for a native agentic checkout session. Requires `UCP-Agent` and bearer authentication.",
5070
5386
  flags: [
5071
5387
  {
5072
5388
  name: "sessionId",
@@ -5092,6 +5408,7 @@ var COMMANDS = [
5092
5408
  httpMethod: "PATCH",
5093
5409
  path: "/ucp/v1/checkout-sessions/{sessionId}",
5094
5410
  summary: "Update UCP Checkout Session",
5411
+ description: "Update UCP cart, buyer, fulfillment, or payment rail fields. Provided fields are applied to the native checkout session and inventory reservations are refreshed when line items change. Requires `UCP-Agent` and OAuth `checkout:write`.",
5095
5412
  flags: [
5096
5413
  {
5097
5414
  name: "sessionId",
@@ -5117,6 +5434,7 @@ var COMMANDS = [
5117
5434
  httpMethod: "PUT",
5118
5435
  path: "/ucp/v1/checkout-sessions/{sessionId}",
5119
5436
  summary: "Replace UCP Checkout Session Fields",
5437
+ description: "UCP-compatible update method. Current behavior matches PATCH: provided fields are applied and omitted fields remain unchanged. Requires `UCP-Agent` and OAuth `checkout:write`.",
5120
5438
  flags: [
5121
5439
  {
5122
5440
  name: "sessionId",
@@ -5142,6 +5460,7 @@ var COMMANDS = [
5142
5460
  httpMethod: "POST",
5143
5461
  path: "/ucp/v1/checkout-sessions/{sessionId}/cancel",
5144
5462
  summary: "Cancel UCP Checkout Session",
5463
+ description: "Cancel a ready-for-payment UCP checkout session and release reserved inventory. Requires `UCP-Agent` and OAuth `checkout:write`.",
5145
5464
  flags: [
5146
5465
  {
5147
5466
  name: "sessionId",
@@ -5167,6 +5486,7 @@ var COMMANDS = [
5167
5486
  httpMethod: "POST",
5168
5487
  path: "/ucp/v1/checkout-sessions/{sessionId}/complete",
5169
5488
  summary: "Complete UCP Checkout Session",
5489
+ description: "Settle the selected rail and create a native `agentic` order. Settlement failures return HTTP 402 with the checkout still ready for payment. Requires `UCP-Agent` and OAuth `checkout:write`.",
5170
5490
  flags: [
5171
5491
  {
5172
5492
  name: "sessionId",
@@ -5192,6 +5512,7 @@ var COMMANDS = [
5192
5512
  httpMethod: "GET",
5193
5513
  path: "/ucp/v1/orders/{orderId}",
5194
5514
  summary: "Get UCP Order",
5515
+ description: "Fetch the native OmniCommerce order created by a completed UCP checkout session. Only `agentic` orders are exposed through this facade.",
5195
5516
  flags: [
5196
5517
  {
5197
5518
  name: "orderId",
@@ -6344,6 +6665,9 @@ function printCommandHelp(command2) {
6344
6665
  return `omni ${command2.trail.join(" ")}
6345
6666
 
6346
6667
  ${command2.summary}
6668
+ ${command2.description ? `
6669
+ ${command2.description}
6670
+ ` : ""}
6347
6671
 
6348
6672
  ${command2.httpMethod} ${command2.path}
6349
6673