@omni-commerce/cli 0.15.0 → 0.17.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/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @omni-commerce/cli
2
2
 
3
+ CLI 0.17.0 exposes normalized order attribution through `omni orders list`, `omni orders get`, and `omni analytics get-orders`. Use `--from`, `--to`, `--store`, `--currency`, `--time-zone`, and `--format json` for scoped channel/creator reports.
4
+
5
+ CLI 0.16.0 supports marketplace-only bulk import and enrichment, including CSV uploads. Use `omni products assign-marketplace-stores` to save stores before publishing.
6
+
3
7
  CLI 0.15.0 supports multiple order, return, and job IDs in batch flags and adds `omni returns upload-evidence`.
4
8
 
5
9
  CLI 0.14.1 adds `omni products bulk-update`, `bulk-update-status`, and `bulk-update-options` for the same durable price and stock file workflow as Omni Bulk Update.
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.15.0";
87
+ var CLI_VERSION = "0.17.0";
88
88
 
89
89
  // src/browser-login.ts
90
90
  function loginOrigin(baseUrl) {
@@ -266,7 +266,8 @@ async function uploadBody(filePath, fields2) {
266
266
  const type = UPLOAD_CONTENT_TYPES[extname(filePath).toLowerCase()] ?? "application/octet-stream";
267
267
  form.append(
268
268
  "file",
269
- new File([await readFile2(filePath)], basename(filePath), { type })
269
+ new Blob([await readFile2(filePath)], { type }),
270
+ basename(filePath)
270
271
  );
271
272
  for (const [key, value] of Object.entries(fields2)) {
272
273
  if (value === void 0 || value === null) continue;
@@ -307,7 +308,7 @@ async function executeCommand(client, command2, request) {
307
308
  for (const [key, value] of Object.entries(request)) {
308
309
  if (!consumed.has(key)) body[key] = value;
309
310
  }
310
- if (command2.acceptsFile) {
311
+ if (command2.acceptsFile && (!command2.fileOptional || body.file !== void 0)) {
311
312
  const { file, ...fields2 } = body;
312
313
  return client.request({
313
314
  method: command2.httpMethod,
@@ -728,7 +729,7 @@ var COMMANDS = [
728
729
  httpMethod: "GET",
729
730
  path: "/api/v1/analytics/orders",
730
731
  summary: "Get Order Analytics",
731
- 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.",
732
+ 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.\n\n### Order attribution\n\n`attribution` contains normalized order channels and creator handles, Net Revenue rankings partitioned by currency and exact store, and evidence coverage. Joint creator/channel groups count each order once; missing evidence is explicit. 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.",
732
733
  flags: [
733
734
  {
734
735
  name: "organizationId",
@@ -2258,7 +2259,7 @@ var COMMANDS = [
2258
2259
  httpMethod: "POST",
2259
2260
  path: "/api/v1/documents",
2260
2261
  summary: "Upload Document",
2261
- 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.",
2262
+ 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 20 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.",
2262
2263
  flags: [],
2263
2264
  acceptsJsonBody: true,
2264
2265
  acceptsFile: true,
@@ -2492,7 +2493,7 @@ var COMMANDS = [
2492
2493
  httpMethod: "GET",
2493
2494
  path: "/api/v1/jobs/{jobId}",
2494
2495
  summary: "Get Developer Job Status",
2495
- 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.",
2496
+ 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\nMarketplace-only bulk imports expose data.deferStoreSelection: true. For imports with automatic publishing enabled, inspect data.publishing for per-store results.\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.",
2496
2497
  flags: [
2497
2498
  {
2498
2499
  name: "jobId",
@@ -3732,10 +3733,11 @@ var COMMANDS = [
3732
3733
  httpMethod: "POST",
3733
3734
  path: "/api/v1/products/bulk-import",
3734
3735
  summary: "Bulk Import Products from JSON or CSV",
3735
- 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`.",
3736
+ description: "Queue a bulk product import for the authenticated organization.\n\n### Destinations\n\nSupply targetMarketplaces and marketplaceStoreSelections to prepare for specific connected stores. Set deferStoreSelection=true to choose marketplaces only and assign stores later with POST /api/v1/products/marketplace-stores. Omit marketplaceStoreSelections and leave workflow.publish off when deferring. Automatic publishing requires catalog:sync in addition to catalog:write.\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`.",
3736
3737
  flags: [],
3737
3738
  acceptsJsonBody: true,
3738
- acceptsFile: false,
3739
+ acceptsFile: true,
3740
+ fileOptional: true,
3739
3741
  bodyRequired: true
3740
3742
  },
3741
3743
  {
@@ -4069,7 +4071,20 @@ var COMMANDS = [
4069
4071
  httpMethod: "POST",
4070
4072
  path: "/api/v1/products/enrich",
4071
4073
  summary: "Queue Product Enrichment",
4072
- 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.",
4074
+ 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. Use deferredMarketplaces to enrich product content and save marketplace drafts for later store assignment. This option excludes store-specific taxonomy and publish=true. Assign stores with POST /api/v1/products/marketplace-stores before publishing.\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 and catalog:sync. 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.",
4075
+ flags: [],
4076
+ acceptsJsonBody: true,
4077
+ acceptsFile: false,
4078
+ bodyRequired: true
4079
+ },
4080
+ {
4081
+ trail: ["products", "assign-marketplace-stores"],
4082
+ resourcePath: ["products"],
4083
+ methodName: "assignMarketplaceStores",
4084
+ httpMethod: "POST",
4085
+ path: "/api/v1/products/marketplace-stores",
4086
+ summary: "Assign Product Marketplace Stores",
4087
+ description: "Requires catalog:write. Assign one or more connected stores per marketplace to 1\u2013100 products, including marketplace-only drafts. Get exact store IDs and countries from GET /api/v1/marketplaces/connected.\n\n### Store selection\n\nEach product family is updated independently. Existing listings keep their remote identities. Reusing a store ID across countries requires storeCountries to identify the connection. Each product can use only one country per store ID. Copy compatible taxonomy from an existing sourceStoreId when supplied.\n\n### Publish assigned stores\n\nThe response includes exact data.storeTargets for publishing the successful products. HTTP 207 means at least one product failed. Inspect each result before passing those storeTargets to POST /api/v1/products/{productId}/publish.",
4073
4088
  flags: [],
4074
4089
  acceptsJsonBody: true,
4075
4090
  acceptsFile: false,
@@ -5543,6 +5558,213 @@ var COMMANDS = [
5543
5558
  acceptsFile: false,
5544
5559
  bodyRequired: true
5545
5560
  },
5561
+ {
5562
+ trail: ["wiki", "export-pages"],
5563
+ resourcePath: ["wiki"],
5564
+ methodName: "exportPages",
5565
+ httpMethod: "GET",
5566
+ path: "/api/v1/wiki/export",
5567
+ summary: "Export Wiki",
5568
+ description: "Export every active General page as a markdown file with YAML front matter, and the glossary (titles, aliases, related pages) as SKOS in JSON-LD. Requires documents:read.",
5569
+ flags: [
5570
+ {
5571
+ name: "organizationId",
5572
+ flag: "organization-id",
5573
+ required: false,
5574
+ source: "query"
5575
+ }
5576
+ ],
5577
+ acceptsJsonBody: false,
5578
+ acceptsFile: false,
5579
+ bodyRequired: false
5580
+ },
5581
+ {
5582
+ trail: ["wiki", "import-pages"],
5583
+ resourcePath: ["wiki"],
5584
+ methodName: "importPages",
5585
+ httpMethod: "POST",
5586
+ path: "/api/v1/wiki/import",
5587
+ summary: "Import Wiki",
5588
+ description: "Create or update General pages from markdown files. Requires documents:write. Front matter may set title, summary, aliases, hiddenLabels, appliesTo and reviewBy; without front matter the first # heading is the title.\n\nDefinitions from older exports are imported into the page body.\n\nA file updates the page that already holds its title and otherwise creates one, so importing an export is idempotent. Each file is saved on its own and reported separately.",
5589
+ flags: [],
5590
+ acceptsJsonBody: true,
5591
+ acceptsFile: false,
5592
+ bodyRequired: true
5593
+ },
5594
+ {
5595
+ trail: ["wiki", "list-pages"],
5596
+ resourcePath: ["wiki"],
5597
+ methodName: "listPages",
5598
+ httpMethod: "GET",
5599
+ path: "/api/v1/wiki/pages",
5600
+ summary: "List Wiki Pages",
5601
+ description: "List the organization's wiki pages with title, aliases and an excerpt. Requires documents:read. Filter with q (title, alias, summary and fragment text) and status (active, stale, archived); sort by newest, title or most_used.",
5602
+ flags: [
5603
+ {
5604
+ name: "organizationId",
5605
+ flag: "organization-id",
5606
+ required: false,
5607
+ source: "query"
5608
+ },
5609
+ {
5610
+ name: "q",
5611
+ flag: "q",
5612
+ required: false,
5613
+ source: "query"
5614
+ },
5615
+ {
5616
+ name: "status",
5617
+ flag: "status",
5618
+ required: false,
5619
+ source: "query"
5620
+ },
5621
+ {
5622
+ name: "sort",
5623
+ flag: "sort",
5624
+ required: false,
5625
+ source: "query"
5626
+ },
5627
+ {
5628
+ name: "limit",
5629
+ flag: "limit",
5630
+ required: false,
5631
+ source: "query"
5632
+ },
5633
+ {
5634
+ name: "offset",
5635
+ flag: "offset",
5636
+ required: false,
5637
+ source: "query"
5638
+ }
5639
+ ],
5640
+ acceptsJsonBody: false,
5641
+ acceptsFile: false,
5642
+ bodyRequired: false
5643
+ },
5644
+ {
5645
+ trail: ["wiki", "create-page"],
5646
+ resourcePath: ["wiki"],
5647
+ methodName: "createPage",
5648
+ httpMethod: "POST",
5649
+ path: "/api/v1/wiki/pages",
5650
+ summary: "Create Wiki Page",
5651
+ description: "Create a wiki page. Requires documents:write. The page is saved directly; the approval card applies only to changes an agent proposes in chat.\n\nTitles and aliases are unique within the organization. Link other pages in the body as [[Page title]]. The page is findable by name at once; fragment, meaning and graph search follow within about a minute.",
5652
+ flags: [],
5653
+ acceptsJsonBody: true,
5654
+ acceptsFile: false,
5655
+ bodyRequired: true
5656
+ },
5657
+ {
5658
+ trail: ["wiki", "archive-page"],
5659
+ resourcePath: ["wiki"],
5660
+ methodName: "archivePage",
5661
+ httpMethod: "DELETE",
5662
+ path: "/api/v1/wiki/pages/{pageId}",
5663
+ summary: "Archive Wiki Page",
5664
+ description: "Archive the page. Requires documents:write. Agents stop using it and it leaves search; its history and names are kept, and PATCH with status active restores it.",
5665
+ flags: [
5666
+ {
5667
+ name: "pageId",
5668
+ flag: "page-id",
5669
+ required: true,
5670
+ source: "path"
5671
+ },
5672
+ {
5673
+ name: "organizationId",
5674
+ flag: "organization-id",
5675
+ required: false,
5676
+ source: "query"
5677
+ }
5678
+ ],
5679
+ acceptsJsonBody: false,
5680
+ acceptsFile: false,
5681
+ bodyRequired: false
5682
+ },
5683
+ {
5684
+ trail: ["wiki", "get-page"],
5685
+ resourcePath: ["wiki"],
5686
+ methodName: "getPage",
5687
+ httpMethod: "GET",
5688
+ path: "/api/v1/wiki/pages/{pageId}",
5689
+ summary: "Get Wiki Page",
5690
+ description: "Read one page with its body, labels, linked pages and pages that link to it. Requires documents:read.",
5691
+ flags: [
5692
+ {
5693
+ name: "pageId",
5694
+ flag: "page-id",
5695
+ required: true,
5696
+ source: "path"
5697
+ },
5698
+ {
5699
+ name: "organizationId",
5700
+ flag: "organization-id",
5701
+ required: false,
5702
+ source: "query"
5703
+ }
5704
+ ],
5705
+ acceptsJsonBody: false,
5706
+ acceptsFile: false,
5707
+ bodyRequired: false
5708
+ },
5709
+ {
5710
+ trail: ["wiki", "update-page"],
5711
+ resourcePath: ["wiki"],
5712
+ methodName: "updatePage",
5713
+ httpMethod: "PATCH",
5714
+ path: "/api/v1/wiki/pages/{pageId}",
5715
+ summary: "Update Wiki Page",
5716
+ description: "Save a new revision. Requires documents:write. Send only the fields that change; aliases and appliesTo replace the existing lists.\n\nPass baseRevisionNumber to refuse the update with 409 if the page changed since you read it. status archives or restores the page. restoreRevisionNumber brings back an earlier revision as the newest one and ignores other fields.",
5717
+ flags: [
5718
+ {
5719
+ name: "pageId",
5720
+ flag: "page-id",
5721
+ required: true,
5722
+ source: "path"
5723
+ }
5724
+ ],
5725
+ acceptsJsonBody: true,
5726
+ acceptsFile: false,
5727
+ bodyRequired: true
5728
+ },
5729
+ {
5730
+ trail: ["wiki", "list-revisions"],
5731
+ resourcePath: ["wiki"],
5732
+ methodName: "listRevisions",
5733
+ httpMethod: "GET",
5734
+ path: "/api/v1/wiki/pages/{pageId}/revisions",
5735
+ summary: "List Wiki Page Revisions",
5736
+ description: "Every saved revision of a page, newest first, with author, origin and change summary. Requires documents:read.",
5737
+ flags: [
5738
+ {
5739
+ name: "pageId",
5740
+ flag: "page-id",
5741
+ required: true,
5742
+ source: "path"
5743
+ },
5744
+ {
5745
+ name: "organizationId",
5746
+ flag: "organization-id",
5747
+ required: false,
5748
+ source: "query"
5749
+ }
5750
+ ],
5751
+ acceptsJsonBody: false,
5752
+ acceptsFile: false,
5753
+ bodyRequired: false
5754
+ },
5755
+ {
5756
+ trail: ["wiki", "search"],
5757
+ resourcePath: ["wiki"],
5758
+ methodName: "search",
5759
+ httpMethod: "POST",
5760
+ path: "/api/v1/wiki/search",
5761
+ summary: "Search Wiki",
5762
+ description: "Search the wiki and return the best-matching fragments, the same search agents use. Requires documents:read.\n\nResults fuse name matches, full text, meaning, graph relationships and page links. retrieval reports which signals were available; degraded is true when the graph or meaning search could not be used.",
5763
+ flags: [],
5764
+ acceptsJsonBody: true,
5765
+ acceptsFile: false,
5766
+ bodyRequired: true
5767
+ },
5546
5768
  {
5547
5769
  trail: ["zalora", "get-import"],
5548
5770
  resourcePath: ["zalora"],
@@ -5885,7 +6107,7 @@ var CAMPAIGN_INPUTS = {
5885
6107
  {
5886
6108
  type: "string",
5887
6109
  format: "date-time",
5888
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6110
+ pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
5889
6111
  },
5890
6112
  {
5891
6113
  type: "null"
@@ -6124,7 +6346,7 @@ var CAMPAIGN_INPUTS = {
6124
6346
  {
6125
6347
  type: "string",
6126
6348
  format: "date-time",
6127
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6349
+ pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6128
6350
  },
6129
6351
  {
6130
6352
  type: "null"
@@ -6478,7 +6700,7 @@ var CAMPAIGN_INPUTS = {
6478
6700
  {
6479
6701
  type: "string",
6480
6702
  format: "date-time",
6481
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6703
+ pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6482
6704
  },
6483
6705
  {
6484
6706
  type: "null"
@@ -6490,7 +6712,7 @@ var CAMPAIGN_INPUTS = {
6490
6712
  {
6491
6713
  type: "string",
6492
6714
  format: "date-time",
6493
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6715
+ pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6494
6716
  },
6495
6717
  {
6496
6718
  type: "null"
@@ -6502,7 +6724,7 @@ var CAMPAIGN_INPUTS = {
6502
6724
  {
6503
6725
  type: "string",
6504
6726
  format: "date-time",
6505
- pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6727
+ pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
6506
6728
  },
6507
6729
  {
6508
6730
  type: "null"
@@ -6586,6 +6808,11 @@ var CAMPAIGN_INPUTS = {
6586
6808
  exclusiveMinimum: 0,
6587
6809
  maximum: 9007199254740991
6588
6810
  },
6811
+ sellerReviewAcknowledgement: {
6812
+ description: "Fingerprint from the marketplace validation report, supplied only after the user explicitly acknowledges its seller-review findings for this revision and proposal version.",
6813
+ type: "string",
6814
+ pattern: "^[a-f0-9]{64}$"
6815
+ },
6589
6816
  organizationId: {
6590
6817
  description: "Required for session auth. Optional for an API key, which already identifies the organization.",
6591
6818
  type: "string",
@@ -6894,7 +7121,8 @@ function printCommandHelp(command2) {
6894
7121
  const input2 = flag.queryArray ? "value[,value...]" : flag.name;
6895
7122
  return ` --${flag.flag} <${input2}> ${req} ${flag.source}`;
6896
7123
  }).join("\n");
6897
- const jsonLine = `${command2.acceptsFile ? " --file <path> required file to upload\n" : ""}${command2.acceptsJsonBody && !isCampaignCommand(command2) ? ` --json <object|-> ${command2.bodyRequired && !command2.acceptsFile ? "required" : "optional"} body
7124
+ const jsonLine = `${command2.acceptsFile ? ` --file <path> ${command2.fileOptional ? "upload a file instead of JSON rows" : "required file to upload"}
7125
+ ` : ""}${command2.acceptsJsonBody && !isCampaignCommand(command2) ? ` --json <object|-> ${command2.bodyRequired && !command2.acceptsFile ? "required" : "optional"} body
6898
7126
  ` : ""}`;
6899
7127
  return `omni ${command2.trail.join(" ")}
6900
7128
 
@@ -7056,11 +7284,12 @@ ${unique.map((line) => ` omni ${line}`).join("\n")}
7056
7284
  }
7057
7285
  const body = await parseJsonBody(flagString(parsed.flags, "json"));
7058
7286
  const filePath = command2.acceptsFile ? flagString(parsed.flags, "file") : void 0;
7059
- if (command2.acceptsFile && !filePath) {
7287
+ if (command2.acceptsFile && !command2.fileOptional && !filePath) {
7060
7288
  throw new Error(`omni ${command2.trail.join(" ")} requires --file <path>`);
7061
7289
  }
7062
7290
  if (command2.bodyRequired && !body && !filePath) {
7063
- throw new Error(`omni ${command2.trail.join(" ")} requires --json`);
7291
+ const input2 = command2.fileOptional ? "--json or --file <path>" : "--json";
7292
+ throw new Error(`omni ${command2.trail.join(" ")} requires ${input2}`);
7064
7293
  }
7065
7294
  if (isCampaignCommand(command2) && body)
7066
7295
  throw new Error(