@omni-commerce/cli 0.16.0 → 0.18.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.18.0 adds `omni email list-accounts`, `search`, `get-message` and `create-draft` for your own connected mailbox. Run `omni auth login` again to receive the `email:read` and `email:write` scopes; nothing is sent.
4
+
5
+ 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.
6
+
3
7
  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.
4
8
 
5
9
  CLI 0.15.0 supports multiple order, return, and job IDs in batch flags and adds `omni returns upload-evidence`.
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.16.0";
87
+ var CLI_VERSION = "0.18.0";
88
88
 
89
89
  // src/browser-login.ts
90
90
  function loginOrigin(baseUrl) {
@@ -432,14 +432,54 @@ var COMMANDS = [
432
432
  acceptsFile: false,
433
433
  bodyRequired: true
434
434
  },
435
+ {
436
+ trail: ["agents", "invoke"],
437
+ resourcePath: ["agents"],
438
+ methodName: "invoke",
439
+ httpMethod: "POST",
440
+ path: "/api/v1/agents/{agentId}/invoke",
441
+ summary: "Invoke a saved agent",
442
+ description: "Invoke the exact built-in or custom agent in the URL using its saved configuration and Programmatic starting mode. Uses the same invocation request and run response as the general agent and MCP.\n\nRequires agents:invoke and current organization membership and agent access. Organization-owned keys use their recorded creator; no alternate organization member is substituted. Session requests include organizationId.\n\nSend one or more new messages (at most 50 and 100000 text characters) ending with a user message. Omit thread_id to create a conversation, or reuse the returned thread_id to continue its stored history. An initial batch can import external history, including human replies. Do not resend history on subsequent turns. Optional message IDs follow native LangGraph replacement semantics, not request idempotency; retrying an invocation may run the agent again.\n\nConversations are stored in Omni sessions and checkpoints and isolated by organization, caller, credential, agent and audience. Uploaded HTTP(S) images belong on the latest user message.\n\naudience=customer uses the public storefront tool boundary and accepts user/assistant messages. It does not establish a verified customer identity. audience=member is the default. Saved agents accept user/assistant messages and reject configuration overrides; general/invoke accepts config.\n\nSend decisions instead of messages with the same thread_id and audience to resume approvals. Resolve pending approvals before sending new messages.",
443
+ flags: [
444
+ {
445
+ name: "agentId",
446
+ flag: "agent-id",
447
+ required: true,
448
+ source: "path"
449
+ }
450
+ ],
451
+ acceptsJsonBody: true,
452
+ acceptsFile: false,
453
+ bodyRequired: true
454
+ },
435
455
  {
436
456
  trail: ["agents", "messages"],
437
457
  resourcePath: ["agents"],
438
458
  methodName: "messages",
439
459
  httpMethod: "POST",
440
460
  path: "/api/v1/agents/{agentId}/messages",
441
- summary: "Send a message to an agent",
442
- description: "Message the exact built-in or custom agent in the URL, using its saved model, instructions, tools, permissions and Programmatic starting mode.\n\n### Authentication\nRequires an API key with `agents:invoke`, or a sign-in session. Organization-owned keys use their recorded creator's current membership and agent access; keys without a valid owner are refused. API keys identify their organization; session requests include `organizationId`.\n\n### Conversation and execution\n- The same caller, agent and `clientThreadKey` continue one conversation. Different callers, agents and organizations are isolated.\n- No model, prompt or tool overrides are accepted.\n- `wait=false` queues durable work and returns 202; `wait=true` returns the final reply or pending approvals.\n- Send `decisions` with the same `clientThreadKey` to approve or reject a paused run.",
461
+ summary: "Invoke a saved agent (alias)",
462
+ description: "Alias of /agents/{agentId}/invoke with the identical request and response. Prefer /invoke.\n\nInvoke the exact built-in or custom agent in the URL using its saved configuration and Programmatic starting mode. Uses the same invocation request and run response as the general agent and MCP.\n\nRequires agents:invoke and current organization membership and agent access. Organization-owned keys use their recorded creator; no alternate organization member is substituted. Session requests include organizationId.\n\nSend one or more new messages (at most 50 and 100000 text characters) ending with a user message. Omit thread_id to create a conversation, or reuse the returned thread_id to continue its stored history. An initial batch can import external history, including human replies. Do not resend history on subsequent turns. Optional message IDs follow native LangGraph replacement semantics, not request idempotency; retrying an invocation may run the agent again.\n\nConversations are stored in Omni sessions and checkpoints and isolated by organization, caller, credential, agent and audience. Uploaded HTTP(S) images belong on the latest user message.\n\naudience=customer uses the public storefront tool boundary and accepts user/assistant messages. It does not establish a verified customer identity. audience=member is the default. Saved agents accept user/assistant messages and reject configuration overrides; general/invoke accepts config.\n\nSend decisions instead of messages with the same thread_id and audience to resume approvals. Resolve pending approvals before sending new messages.",
463
+ flags: [
464
+ {
465
+ name: "agentId",
466
+ flag: "agent-id",
467
+ required: true,
468
+ source: "path"
469
+ }
470
+ ],
471
+ acceptsJsonBody: true,
472
+ acceptsFile: false,
473
+ bodyRequired: true
474
+ },
475
+ {
476
+ trail: ["agents", "runs"],
477
+ resourcePath: ["agents"],
478
+ methodName: "runs",
479
+ httpMethod: "POST",
480
+ path: "/api/v1/agents/{agentId}/runs",
481
+ summary: "Start a saved agent run",
482
+ description: "Queue durable execution using the identical invocation contract. Poll Location, honoring Retry-After.\n\nInvoke the exact built-in or custom agent in the URL using its saved configuration and Programmatic starting mode. Uses the same invocation request and run response as the general agent and MCP.\n\nRequires agents:invoke and current organization membership and agent access. Organization-owned keys use their recorded creator; no alternate organization member is substituted. Session requests include organizationId.\n\nSend one or more new messages (at most 50 and 100000 text characters) ending with a user message. Omit thread_id to create a conversation, or reuse the returned thread_id to continue its stored history. An initial batch can import external history, including human replies. Do not resend history on subsequent turns. Optional message IDs follow native LangGraph replacement semantics, not request idempotency; retrying an invocation may run the agent again.\n\nConversations are stored in Omni sessions and checkpoints and isolated by organization, caller, credential, agent and audience. Uploaded HTTP(S) images belong on the latest user message.\n\naudience=customer uses the public storefront tool boundary and accepts user/assistant messages. It does not establish a verified customer identity. audience=member is the default. Saved agents accept user/assistant messages and reject configuration overrides; general/invoke accepts config.\n\nSend decisions instead of messages with the same thread_id and audience to resume approvals. Resolve pending approvals before sending new messages.",
443
483
  flags: [
444
484
  {
445
485
  name: "agentId",
@@ -458,8 +498,8 @@ var COMMANDS = [
458
498
  methodName: "getRuns",
459
499
  httpMethod: "GET",
460
500
  path: "/api/v1/agents/{agentId}/runs/{runId}",
461
- summary: "Get an agent message run",
462
- description: "Read an agent message run belonging to the authenticated caller and the exact agent in the URL. Current organization membership and agent sharing are checked again. Requires agents:invoke.",
501
+ summary: "Get a saved agent run",
502
+ description: "Read the canonical run resource. Organization, caller, credential and exact agent access are checked again. Requires agents:invoke.",
463
503
  flags: [
464
504
  {
465
505
  name: "agentId",
@@ -491,7 +531,7 @@ var COMMANDS = [
491
531
  httpMethod: "POST",
492
532
  path: "/api/v1/agents/general/invoke",
493
533
  summary: "Invoke the Omni agent",
494
- 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.',
534
+ 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. Send only new messages on each turn; thread_id continues the conversation stored in Omni sessions and checkpoints. Omit thread_id for a new conversation. Optional message IDs use native LangGraph replacement semantics, not run idempotency. audience=customer restricts tools to public storefront access without establishing a verified customer identity. Attach images on the latest user message as `{ type: "image", url }` HTTP(S) URLs.',
495
535
  flags: [],
496
536
  acceptsJsonBody: true,
497
537
  acceptsFile: false,
@@ -729,7 +769,7 @@ var COMMANDS = [
729
769
  httpMethod: "GET",
730
770
  path: "/api/v1/analytics/orders",
731
771
  summary: "Get Order Analytics",
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. 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.",
772
+ 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.",
733
773
  flags: [
734
774
  {
735
775
  name: "organizationId",
@@ -2259,7 +2299,7 @@ var COMMANDS = [
2259
2299
  httpMethod: "POST",
2260
2300
  path: "/api/v1/documents",
2261
2301
  summary: "Upload Document",
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 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.",
2302
+ 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.",
2263
2303
  flags: [],
2264
2304
  acceptsJsonBody: true,
2265
2305
  acceptsFile: true,
@@ -2297,6 +2337,121 @@ var COMMANDS = [
2297
2337
  acceptsFile: false,
2298
2338
  bodyRequired: false
2299
2339
  },
2340
+ {
2341
+ trail: ["email", "list-accounts"],
2342
+ resourcePath: ["email"],
2343
+ methodName: "listAccounts",
2344
+ httpMethod: "GET",
2345
+ path: "/api/v1/email/accounts",
2346
+ summary: "List Email Accounts",
2347
+ description: "Your connected Gmail and Outlook accounts, default first. Pass an account's `connectionId` to the other email endpoints to choose it.\n\n### Authorization\n\nRequires `email:read` and the integration permission the matching chat tool needs, with a person's credential: a CLI login, a signed-in session, or the SDK key inside your own chat sandbox. Only your own connected mailboxes are reachable; another account's `connectionId` is refused.",
2348
+ flags: [
2349
+ {
2350
+ name: "organizationId",
2351
+ flag: "organization-id",
2352
+ required: false,
2353
+ source: "query"
2354
+ }
2355
+ ],
2356
+ acceptsJsonBody: false,
2357
+ acceptsFile: false,
2358
+ bodyRequired: false
2359
+ },
2360
+ {
2361
+ trail: ["email", "create-draft"],
2362
+ resourcePath: ["email"],
2363
+ methodName: "createDraft",
2364
+ httpMethod: "POST",
2365
+ path: "/api/v1/email/drafts",
2366
+ summary: "Create Email Draft",
2367
+ description: "Save a draft in your mailbox; nothing is sent. Pass `replyToMessageId` (and `threadId`) from Search Emails to draft a reply in its conversation. Review and send it from Gmail or Outlook.\n\nWhen the provider saved a draft whose threading could not be verified, the request fails with `unverifiedDraftId` in `data` so you can find or discard it.\n\n### Authorization\n\nRequires `email:write` and the integration permission the matching chat tool needs, with a person's credential: a CLI login, a signed-in session, or the SDK key inside your own chat sandbox. Only your own connected mailboxes are reachable; another account's `connectionId` is refused.",
2368
+ flags: [],
2369
+ acceptsJsonBody: true,
2370
+ acceptsFile: false,
2371
+ bodyRequired: true
2372
+ },
2373
+ {
2374
+ trail: ["email", "get-message"],
2375
+ resourcePath: ["email"],
2376
+ methodName: "getMessage",
2377
+ httpMethod: "GET",
2378
+ path: "/api/v1/email/messages/{messageId}",
2379
+ summary: "Get Email Message",
2380
+ description: "One message from your mailbox: headers, plain-text body (at most 12,000 characters) and attachment metadata. Use a message `id` from Search Emails; encode it as one path segment.\n\n### Authorization\n\nRequires `email:read` and the integration permission the matching chat tool needs, with a person's credential: a CLI login, a signed-in session, or the SDK key inside your own chat sandbox. Only your own connected mailboxes are reachable; another account's `connectionId` is refused.",
2381
+ flags: [
2382
+ {
2383
+ name: "messageId",
2384
+ flag: "message-id",
2385
+ required: true,
2386
+ source: "path"
2387
+ },
2388
+ {
2389
+ name: "connectionId",
2390
+ flag: "connection-id",
2391
+ required: false,
2392
+ source: "query"
2393
+ },
2394
+ {
2395
+ name: "organizationId",
2396
+ flag: "organization-id",
2397
+ required: false,
2398
+ source: "query"
2399
+ }
2400
+ ],
2401
+ acceptsJsonBody: false,
2402
+ acceptsFile: false,
2403
+ bodyRequired: false
2404
+ },
2405
+ {
2406
+ trail: ["email", "search"],
2407
+ resourcePath: ["email"],
2408
+ methodName: "search",
2409
+ httpMethod: "GET",
2410
+ path: "/api/v1/email/search",
2411
+ summary: "Search Emails",
2412
+ description: "One page of message summaries (subject, from, to, date, snippet, read and draft state) from your mailbox. Gmail accepts its search operators (`from:`, `subject:`, `newer_than:`); Outlook takes free text.\n\nPass `nextPageToken` back as `pageToken` with the same mailbox, query, `readState` and `maxResults` until it is null; a token is refused with different search arguments. `readState=unread` filters unread messages, which is not the same as unreplied.\n\n### Authorization\n\nRequires `email:read` and the integration permission the matching chat tool needs, with a person's credential: a CLI login, a signed-in session, or the SDK key inside your own chat sandbox. Only your own connected mailboxes are reachable; another account's `connectionId` is refused.",
2413
+ flags: [
2414
+ {
2415
+ name: "query",
2416
+ flag: "query",
2417
+ required: false,
2418
+ source: "query"
2419
+ },
2420
+ {
2421
+ name: "connectionId",
2422
+ flag: "connection-id",
2423
+ required: false,
2424
+ source: "query"
2425
+ },
2426
+ {
2427
+ name: "maxResults",
2428
+ flag: "max-results",
2429
+ required: false,
2430
+ source: "query"
2431
+ },
2432
+ {
2433
+ name: "pageToken",
2434
+ flag: "page-token",
2435
+ required: false,
2436
+ source: "query"
2437
+ },
2438
+ {
2439
+ name: "readState",
2440
+ flag: "read-state",
2441
+ required: false,
2442
+ source: "query"
2443
+ },
2444
+ {
2445
+ name: "organizationId",
2446
+ flag: "organization-id",
2447
+ required: false,
2448
+ source: "query"
2449
+ }
2450
+ ],
2451
+ acceptsJsonBody: false,
2452
+ acceptsFile: false,
2453
+ bodyRequired: false
2454
+ },
2300
2455
  {
2301
2456
  trail: ["evaluate", "run"],
2302
2457
  resourcePath: ["evaluate"],
@@ -5558,6 +5713,213 @@ var COMMANDS = [
5558
5713
  acceptsFile: false,
5559
5714
  bodyRequired: true
5560
5715
  },
5716
+ {
5717
+ trail: ["wiki", "export-pages"],
5718
+ resourcePath: ["wiki"],
5719
+ methodName: "exportPages",
5720
+ httpMethod: "GET",
5721
+ path: "/api/v1/wiki/export",
5722
+ summary: "Export Wiki",
5723
+ 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.",
5724
+ flags: [
5725
+ {
5726
+ name: "organizationId",
5727
+ flag: "organization-id",
5728
+ required: false,
5729
+ source: "query"
5730
+ }
5731
+ ],
5732
+ acceptsJsonBody: false,
5733
+ acceptsFile: false,
5734
+ bodyRequired: false
5735
+ },
5736
+ {
5737
+ trail: ["wiki", "import-pages"],
5738
+ resourcePath: ["wiki"],
5739
+ methodName: "importPages",
5740
+ httpMethod: "POST",
5741
+ path: "/api/v1/wiki/import",
5742
+ summary: "Import Wiki",
5743
+ 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.",
5744
+ flags: [],
5745
+ acceptsJsonBody: true,
5746
+ acceptsFile: false,
5747
+ bodyRequired: true
5748
+ },
5749
+ {
5750
+ trail: ["wiki", "list-pages"],
5751
+ resourcePath: ["wiki"],
5752
+ methodName: "listPages",
5753
+ httpMethod: "GET",
5754
+ path: "/api/v1/wiki/pages",
5755
+ summary: "List Wiki Pages",
5756
+ 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.",
5757
+ flags: [
5758
+ {
5759
+ name: "organizationId",
5760
+ flag: "organization-id",
5761
+ required: false,
5762
+ source: "query"
5763
+ },
5764
+ {
5765
+ name: "q",
5766
+ flag: "q",
5767
+ required: false,
5768
+ source: "query"
5769
+ },
5770
+ {
5771
+ name: "status",
5772
+ flag: "status",
5773
+ required: false,
5774
+ source: "query"
5775
+ },
5776
+ {
5777
+ name: "sort",
5778
+ flag: "sort",
5779
+ required: false,
5780
+ source: "query"
5781
+ },
5782
+ {
5783
+ name: "limit",
5784
+ flag: "limit",
5785
+ required: false,
5786
+ source: "query"
5787
+ },
5788
+ {
5789
+ name: "offset",
5790
+ flag: "offset",
5791
+ required: false,
5792
+ source: "query"
5793
+ }
5794
+ ],
5795
+ acceptsJsonBody: false,
5796
+ acceptsFile: false,
5797
+ bodyRequired: false
5798
+ },
5799
+ {
5800
+ trail: ["wiki", "create-page"],
5801
+ resourcePath: ["wiki"],
5802
+ methodName: "createPage",
5803
+ httpMethod: "POST",
5804
+ path: "/api/v1/wiki/pages",
5805
+ summary: "Create Wiki Page",
5806
+ 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.",
5807
+ flags: [],
5808
+ acceptsJsonBody: true,
5809
+ acceptsFile: false,
5810
+ bodyRequired: true
5811
+ },
5812
+ {
5813
+ trail: ["wiki", "archive-page"],
5814
+ resourcePath: ["wiki"],
5815
+ methodName: "archivePage",
5816
+ httpMethod: "DELETE",
5817
+ path: "/api/v1/wiki/pages/{pageId}",
5818
+ summary: "Archive Wiki Page",
5819
+ 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.",
5820
+ flags: [
5821
+ {
5822
+ name: "pageId",
5823
+ flag: "page-id",
5824
+ required: true,
5825
+ source: "path"
5826
+ },
5827
+ {
5828
+ name: "organizationId",
5829
+ flag: "organization-id",
5830
+ required: false,
5831
+ source: "query"
5832
+ }
5833
+ ],
5834
+ acceptsJsonBody: false,
5835
+ acceptsFile: false,
5836
+ bodyRequired: false
5837
+ },
5838
+ {
5839
+ trail: ["wiki", "get-page"],
5840
+ resourcePath: ["wiki"],
5841
+ methodName: "getPage",
5842
+ httpMethod: "GET",
5843
+ path: "/api/v1/wiki/pages/{pageId}",
5844
+ summary: "Get Wiki Page",
5845
+ description: "Read one page with its body, labels, linked pages and pages that link to it. Requires documents:read.",
5846
+ flags: [
5847
+ {
5848
+ name: "pageId",
5849
+ flag: "page-id",
5850
+ required: true,
5851
+ source: "path"
5852
+ },
5853
+ {
5854
+ name: "organizationId",
5855
+ flag: "organization-id",
5856
+ required: false,
5857
+ source: "query"
5858
+ }
5859
+ ],
5860
+ acceptsJsonBody: false,
5861
+ acceptsFile: false,
5862
+ bodyRequired: false
5863
+ },
5864
+ {
5865
+ trail: ["wiki", "update-page"],
5866
+ resourcePath: ["wiki"],
5867
+ methodName: "updatePage",
5868
+ httpMethod: "PATCH",
5869
+ path: "/api/v1/wiki/pages/{pageId}",
5870
+ summary: "Update Wiki Page",
5871
+ 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.",
5872
+ flags: [
5873
+ {
5874
+ name: "pageId",
5875
+ flag: "page-id",
5876
+ required: true,
5877
+ source: "path"
5878
+ }
5879
+ ],
5880
+ acceptsJsonBody: true,
5881
+ acceptsFile: false,
5882
+ bodyRequired: true
5883
+ },
5884
+ {
5885
+ trail: ["wiki", "list-revisions"],
5886
+ resourcePath: ["wiki"],
5887
+ methodName: "listRevisions",
5888
+ httpMethod: "GET",
5889
+ path: "/api/v1/wiki/pages/{pageId}/revisions",
5890
+ summary: "List Wiki Page Revisions",
5891
+ description: "Every saved revision of a page, newest first, with author, origin and change summary. Requires documents:read.",
5892
+ flags: [
5893
+ {
5894
+ name: "pageId",
5895
+ flag: "page-id",
5896
+ required: true,
5897
+ source: "path"
5898
+ },
5899
+ {
5900
+ name: "organizationId",
5901
+ flag: "organization-id",
5902
+ required: false,
5903
+ source: "query"
5904
+ }
5905
+ ],
5906
+ acceptsJsonBody: false,
5907
+ acceptsFile: false,
5908
+ bodyRequired: false
5909
+ },
5910
+ {
5911
+ trail: ["wiki", "search"],
5912
+ resourcePath: ["wiki"],
5913
+ methodName: "search",
5914
+ httpMethod: "POST",
5915
+ path: "/api/v1/wiki/search",
5916
+ summary: "Search Wiki",
5917
+ 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.",
5918
+ flags: [],
5919
+ acceptsJsonBody: true,
5920
+ acceptsFile: false,
5921
+ bodyRequired: true
5922
+ },
5561
5923
  {
5562
5924
  trail: ["zalora", "get-import"],
5563
5925
  resourcePath: ["zalora"],
@@ -5900,7 +6262,7 @@ var CAMPAIGN_INPUTS = {
5900
6262
  {
5901
6263
  type: "string",
5902
6264
  format: "date-time",
5903
- 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)))$"
6265
+ 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)))$"
5904
6266
  },
5905
6267
  {
5906
6268
  type: "null"
@@ -6139,7 +6501,7 @@ var CAMPAIGN_INPUTS = {
6139
6501
  {
6140
6502
  type: "string",
6141
6503
  format: "date-time",
6142
- 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)))$"
6504
+ 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)))$"
6143
6505
  },
6144
6506
  {
6145
6507
  type: "null"
@@ -6281,6 +6643,12 @@ var CAMPAIGN_INPUTS = {
6281
6643
  type: "string",
6282
6644
  enum: ["general", "shop_follow"]
6283
6645
  },
6646
+ redemptionPoints: {
6647
+ description: "Membership points required per voucher redemption. Required for shopee_redemption and lazada_points_redeemable; unavailable for other voucher types.",
6648
+ type: "integer",
6649
+ exclusiveMinimum: 0,
6650
+ maximum: 9007199254740991
6651
+ },
6284
6652
  repeatPurchaseMinCount: {
6285
6653
  description: "Shopee Repeat Buyer: minimum completed shop orders, 1 or 2. Required for shopee_repeat_buyer.",
6286
6654
  type: "integer",
@@ -6493,7 +6861,7 @@ var CAMPAIGN_INPUTS = {
6493
6861
  {
6494
6862
  type: "string",
6495
6863
  format: "date-time",
6496
- 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)))$"
6864
+ 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)))$"
6497
6865
  },
6498
6866
  {
6499
6867
  type: "null"
@@ -6505,7 +6873,7 @@ var CAMPAIGN_INPUTS = {
6505
6873
  {
6506
6874
  type: "string",
6507
6875
  format: "date-time",
6508
- 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)))$"
6876
+ 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)))$"
6509
6877
  },
6510
6878
  {
6511
6879
  type: "null"
@@ -6517,7 +6885,7 @@ var CAMPAIGN_INPUTS = {
6517
6885
  {
6518
6886
  type: "string",
6519
6887
  format: "date-time",
6520
- 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)))$"
6888
+ 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)))$"
6521
6889
  },
6522
6890
  {
6523
6891
  type: "null"
@@ -6601,6 +6969,11 @@ var CAMPAIGN_INPUTS = {
6601
6969
  exclusiveMinimum: 0,
6602
6970
  maximum: 9007199254740991
6603
6971
  },
6972
+ sellerReviewAcknowledgement: {
6973
+ description: "Fingerprint from the marketplace validation report, supplied only after the user explicitly acknowledges its seller-review findings for this revision and proposal version.",
6974
+ type: "string",
6975
+ pattern: "^[a-f0-9]{64}$"
6976
+ },
6604
6977
  organizationId: {
6605
6978
  description: "Required for session auth. Optional for an API key, which already identifies the organization.",
6606
6979
  type: "string",
@@ -7111,7 +7484,7 @@ ${unique.map((line) => ` omni ${line}`).join("\n")}
7111
7484
  return 1;
7112
7485
  }
7113
7486
  const timeoutRaw = flagString(parsed.flags, "timeout");
7114
- const timeoutInSeconds = timeoutRaw ? Number(timeoutRaw) : command2.path === "/api/v1/agents/general/invoke" ? 780 : void 0;
7487
+ const timeoutInSeconds = timeoutRaw ? Number(timeoutRaw) : command2.path.startsWith("/api/v1/agents/") && (command2.path.endsWith("/invoke") || command2.path.endsWith("/messages")) ? 780 : void 0;
7115
7488
  const client = new OmniClient({
7116
7489
  apiKey: credentials.apiKey,
7117
7490
  baseUrl: credentials.baseUrl,