@omni-commerce/sdk 0.25.0 → 0.27.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 +4 -0
- package/dist/index.cjs +339 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2343 -99
- package/dist/index.d.ts +2343 -99
- package/dist/index.js +339 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @omni-commerce/sdk
|
|
2
2
|
|
|
3
|
+
SDK 0.27.0 adds `email.listAccounts`, `email.search`, `email.getMessage` and `email.createDraft` for your own connected Gmail or Outlook mailbox (`email:read`, drafts `email:write`). They need a credential that acts for you; nothing is sent.
|
|
4
|
+
|
|
5
|
+
SDK 0.26.0 adds normalized order attribution to `orders.list`, `orders.get`, and `analytics.getOrders`. Read `attribution.channels`, `creatorHandles`, and `storefront`; analytics includes creator/channel Net Revenue by exact store and currency.
|
|
6
|
+
|
|
3
7
|
SDK 0.25.0 supports marketplace-only bulk import and enrichment, later store assignment with `products.assignMarketplaceStores`, and publishing to those exact stores.
|
|
4
8
|
|
|
5
9
|
SDK 0.24.0 adds typed refund and rejection inputs, return evidence uploads, and separate order refund and physical receipt status.
|
package/dist/index.cjs
CHANGED
|
@@ -35,7 +35,7 @@ function normalizeClientOptions(options = {}) {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
// src/version.ts
|
|
38
|
-
var SDK_VERSION = "0.
|
|
38
|
+
var SDK_VERSION = "0.27.0";
|
|
39
39
|
var SDK_USER_AGENT = `omnicommerce-js/${SDK_VERSION}`;
|
|
40
40
|
|
|
41
41
|
// src/environments.ts
|
|
@@ -712,7 +712,7 @@ var AgentsGeneralClient = class {
|
|
|
712
712
|
*
|
|
713
713
|
* Run the general Omni agent and wait until it completes, pauses for approval, or fails. Requires `agents:invoke`.
|
|
714
714
|
|
|
715
|
-
A 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.
|
|
715
|
+
A 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.
|
|
716
716
|
*
|
|
717
717
|
* `POST /api/v1/agents/general/invoke`
|
|
718
718
|
*/
|
|
@@ -768,18 +768,36 @@ var AgentsClient = class {
|
|
|
768
768
|
this.general = new AgentsGeneralClient(this._http);
|
|
769
769
|
}
|
|
770
770
|
/**
|
|
771
|
-
*
|
|
771
|
+
* Invoke a saved agent
|
|
772
772
|
*
|
|
773
|
-
*
|
|
773
|
+
* 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.
|
|
774
774
|
|
|
775
|
-
|
|
776
|
-
Requires an API key with `agents:invoke`, or a sign-in session. Organization-owned keys use their recorded creator's current membership and agent access; keys without a valid owner are refused. API keys identify their organization; session requests include `organizationId`.
|
|
775
|
+
Requires 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.
|
|
777
776
|
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
777
|
+
Send 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,
|
|
778
|
+
*
|
|
779
|
+
* `POST /api/v1/agents/{agentId}/invoke`
|
|
780
|
+
*/
|
|
781
|
+
invoke(request, requestOptions) {
|
|
782
|
+
const { agentId, ...body } = request ?? {};
|
|
783
|
+
return this._http.request({
|
|
784
|
+
method: "POST",
|
|
785
|
+
path: `/api/v1/agents/${encodePathParam("agentId", agentId)}/invoke`,
|
|
786
|
+
query: void 0,
|
|
787
|
+
body,
|
|
788
|
+
...mergeRequestOptions(requestOptions)
|
|
789
|
+
});
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* Invoke a saved agent (alias)
|
|
793
|
+
*
|
|
794
|
+
* Alias of /agents/{agentId}/invoke with the identical request and response. Prefer /invoke.
|
|
795
|
+
|
|
796
|
+
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.
|
|
797
|
+
|
|
798
|
+
Requires 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.
|
|
799
|
+
|
|
800
|
+
Send 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 hist
|
|
783
801
|
*
|
|
784
802
|
* `POST /api/v1/agents/{agentId}/messages`
|
|
785
803
|
*/
|
|
@@ -794,9 +812,32 @@ var AgentsClient = class {
|
|
|
794
812
|
});
|
|
795
813
|
}
|
|
796
814
|
/**
|
|
797
|
-
|
|
815
|
+
* Start a saved agent run
|
|
816
|
+
*
|
|
817
|
+
* Queue durable execution using the identical invocation contract. Poll Location, honoring Retry-After.
|
|
818
|
+
|
|
819
|
+
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.
|
|
820
|
+
|
|
821
|
+
Requires 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.
|
|
822
|
+
|
|
823
|
+
Send 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
|
|
824
|
+
*
|
|
825
|
+
* `POST /api/v1/agents/{agentId}/runs`
|
|
826
|
+
*/
|
|
827
|
+
runs(request, requestOptions) {
|
|
828
|
+
const { agentId, ...body } = request ?? {};
|
|
829
|
+
return this._http.request({
|
|
830
|
+
method: "POST",
|
|
831
|
+
path: `/api/v1/agents/${encodePathParam("agentId", agentId)}/runs`,
|
|
832
|
+
query: void 0,
|
|
833
|
+
body,
|
|
834
|
+
...mergeRequestOptions(requestOptions)
|
|
835
|
+
});
|
|
836
|
+
}
|
|
837
|
+
/**
|
|
838
|
+
* Get a saved agent run
|
|
798
839
|
*
|
|
799
|
-
* Read
|
|
840
|
+
* Read the canonical run resource. Organization, caller, credential and exact agent access are checked again. Requires agents:invoke.
|
|
800
841
|
*
|
|
801
842
|
* `GET /api/v1/agents/{agentId}/runs/{runId}`
|
|
802
843
|
*/
|
|
@@ -929,7 +970,11 @@ var AnalyticsClient = class {
|
|
|
929
970
|
/**
|
|
930
971
|
* Get Order Analytics
|
|
931
972
|
*
|
|
932
|
-
* 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.
|
|
973
|
+
* 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.
|
|
974
|
+
|
|
975
|
+
### Order attribution
|
|
976
|
+
|
|
977
|
+
`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`.
|
|
933
978
|
|
|
934
979
|
Amounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.
|
|
935
980
|
*
|
|
@@ -2264,7 +2309,7 @@ var DocumentsClient = class {
|
|
|
2264
2309
|
*
|
|
2265
2310
|
* Upload one file to the knowledge base as multipart/form-data. Requires `documents:write`.
|
|
2266
2311
|
|
|
2267
|
-
Accepted: PDF up to 20 MB, Word (.docx) and PowerPoint (.pptx) up to 20 MB, Excel (.xlsx/.xlsm) up to
|
|
2312
|
+
Accepted: 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.
|
|
2268
2313
|
*
|
|
2269
2314
|
* `POST /api/v1/documents`
|
|
2270
2315
|
*/
|
|
@@ -2298,6 +2343,113 @@ var DocumentsClient = class {
|
|
|
2298
2343
|
});
|
|
2299
2344
|
}
|
|
2300
2345
|
};
|
|
2346
|
+
var EmailClient = class {
|
|
2347
|
+
constructor(_http) {
|
|
2348
|
+
__publicField(this, "_http", _http);
|
|
2349
|
+
}
|
|
2350
|
+
/**
|
|
2351
|
+
* List Email Accounts
|
|
2352
|
+
*
|
|
2353
|
+
* Your connected Gmail and Outlook accounts, default first. Pass an account's `connectionId` to the other email endpoints to choose it.
|
|
2354
|
+
|
|
2355
|
+
### Authorization
|
|
2356
|
+
|
|
2357
|
+
Requires `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.
|
|
2358
|
+
*
|
|
2359
|
+
* `GET /api/v1/email/accounts`
|
|
2360
|
+
*/
|
|
2361
|
+
listAccounts(request = {}, requestOptions) {
|
|
2362
|
+
const { organizationId } = request ?? {};
|
|
2363
|
+
return this._http.request({
|
|
2364
|
+
method: "GET",
|
|
2365
|
+
path: "/api/v1/email/accounts",
|
|
2366
|
+
query: { organizationId },
|
|
2367
|
+
body: void 0,
|
|
2368
|
+
...mergeRequestOptions(requestOptions)
|
|
2369
|
+
});
|
|
2370
|
+
}
|
|
2371
|
+
/**
|
|
2372
|
+
* Create Email Draft
|
|
2373
|
+
*
|
|
2374
|
+
* 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.
|
|
2375
|
+
|
|
2376
|
+
When 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.
|
|
2377
|
+
|
|
2378
|
+
### Authorization
|
|
2379
|
+
|
|
2380
|
+
Requires `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.
|
|
2381
|
+
*
|
|
2382
|
+
* `POST /api/v1/email/drafts`
|
|
2383
|
+
*/
|
|
2384
|
+
createDraft(request, requestOptions) {
|
|
2385
|
+
const { ...body } = request ?? {};
|
|
2386
|
+
return this._http.request({
|
|
2387
|
+
method: "POST",
|
|
2388
|
+
path: "/api/v1/email/drafts",
|
|
2389
|
+
query: void 0,
|
|
2390
|
+
body,
|
|
2391
|
+
...mergeRequestOptions(requestOptions)
|
|
2392
|
+
});
|
|
2393
|
+
}
|
|
2394
|
+
/**
|
|
2395
|
+
* Get Email Message
|
|
2396
|
+
*
|
|
2397
|
+
* 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.
|
|
2398
|
+
|
|
2399
|
+
### Authorization
|
|
2400
|
+
|
|
2401
|
+
Requires `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.
|
|
2402
|
+
*
|
|
2403
|
+
* `GET /api/v1/email/messages/{messageId}`
|
|
2404
|
+
*/
|
|
2405
|
+
getMessage(request, requestOptions) {
|
|
2406
|
+
const { messageId, connectionId, organizationId } = request ?? {};
|
|
2407
|
+
return this._http.request({
|
|
2408
|
+
method: "GET",
|
|
2409
|
+
path: `/api/v1/email/messages/${encodePathParam("messageId", messageId)}`,
|
|
2410
|
+
query: { connectionId, organizationId },
|
|
2411
|
+
body: void 0,
|
|
2412
|
+
...mergeRequestOptions(requestOptions)
|
|
2413
|
+
});
|
|
2414
|
+
}
|
|
2415
|
+
/**
|
|
2416
|
+
* Search Emails
|
|
2417
|
+
*
|
|
2418
|
+
* 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.
|
|
2419
|
+
|
|
2420
|
+
Pass `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.
|
|
2421
|
+
|
|
2422
|
+
### Authorization
|
|
2423
|
+
|
|
2424
|
+
Requires `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.
|
|
2425
|
+
*
|
|
2426
|
+
* `GET /api/v1/email/search`
|
|
2427
|
+
*/
|
|
2428
|
+
search(request = {}, requestOptions) {
|
|
2429
|
+
const {
|
|
2430
|
+
query,
|
|
2431
|
+
connectionId,
|
|
2432
|
+
maxResults,
|
|
2433
|
+
pageToken,
|
|
2434
|
+
readState,
|
|
2435
|
+
organizationId
|
|
2436
|
+
} = request ?? {};
|
|
2437
|
+
return this._http.request({
|
|
2438
|
+
method: "GET",
|
|
2439
|
+
path: "/api/v1/email/search",
|
|
2440
|
+
query: {
|
|
2441
|
+
query,
|
|
2442
|
+
connectionId,
|
|
2443
|
+
maxResults,
|
|
2444
|
+
pageToken,
|
|
2445
|
+
readState,
|
|
2446
|
+
organizationId
|
|
2447
|
+
},
|
|
2448
|
+
body: void 0,
|
|
2449
|
+
...mergeRequestOptions(requestOptions)
|
|
2450
|
+
});
|
|
2451
|
+
}
|
|
2452
|
+
};
|
|
2301
2453
|
var EvaluateClient = class {
|
|
2302
2454
|
constructor(_http) {
|
|
2303
2455
|
__publicField(this, "_http", _http);
|
|
@@ -5328,6 +5480,174 @@ var WebhooksClient = class {
|
|
|
5328
5480
|
});
|
|
5329
5481
|
}
|
|
5330
5482
|
};
|
|
5483
|
+
var WikiClient = class {
|
|
5484
|
+
constructor(_http) {
|
|
5485
|
+
__publicField(this, "_http", _http);
|
|
5486
|
+
}
|
|
5487
|
+
/**
|
|
5488
|
+
* Export Wiki
|
|
5489
|
+
*
|
|
5490
|
+
* 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.
|
|
5491
|
+
*
|
|
5492
|
+
* `GET /api/v1/wiki/export`
|
|
5493
|
+
*/
|
|
5494
|
+
exportPages(request = {}, requestOptions) {
|
|
5495
|
+
const { organizationId } = request ?? {};
|
|
5496
|
+
return this._http.request({
|
|
5497
|
+
method: "GET",
|
|
5498
|
+
path: "/api/v1/wiki/export",
|
|
5499
|
+
query: { organizationId },
|
|
5500
|
+
body: void 0,
|
|
5501
|
+
...mergeRequestOptions(requestOptions)
|
|
5502
|
+
});
|
|
5503
|
+
}
|
|
5504
|
+
/**
|
|
5505
|
+
* Import Wiki
|
|
5506
|
+
*
|
|
5507
|
+
* 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.
|
|
5508
|
+
|
|
5509
|
+
Definitions from older exports are imported into the page body.
|
|
5510
|
+
|
|
5511
|
+
A 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.
|
|
5512
|
+
*
|
|
5513
|
+
* `POST /api/v1/wiki/import`
|
|
5514
|
+
*/
|
|
5515
|
+
importPages(request, requestOptions) {
|
|
5516
|
+
const { ...body } = request ?? {};
|
|
5517
|
+
return this._http.request({
|
|
5518
|
+
method: "POST",
|
|
5519
|
+
path: "/api/v1/wiki/import",
|
|
5520
|
+
query: void 0,
|
|
5521
|
+
body,
|
|
5522
|
+
...mergeRequestOptions(requestOptions)
|
|
5523
|
+
});
|
|
5524
|
+
}
|
|
5525
|
+
/**
|
|
5526
|
+
* List Wiki Pages
|
|
5527
|
+
*
|
|
5528
|
+
* 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.
|
|
5529
|
+
*
|
|
5530
|
+
* `GET /api/v1/wiki/pages`
|
|
5531
|
+
*/
|
|
5532
|
+
listPages(request = {}, requestOptions) {
|
|
5533
|
+
const { organizationId, q, status, sort, limit, offset } = request ?? {};
|
|
5534
|
+
return this._http.request({
|
|
5535
|
+
method: "GET",
|
|
5536
|
+
path: "/api/v1/wiki/pages",
|
|
5537
|
+
query: { organizationId, q, status, sort, limit, offset },
|
|
5538
|
+
body: void 0,
|
|
5539
|
+
...mergeRequestOptions(requestOptions)
|
|
5540
|
+
});
|
|
5541
|
+
}
|
|
5542
|
+
/**
|
|
5543
|
+
* Create Wiki Page
|
|
5544
|
+
*
|
|
5545
|
+
* Create a wiki page. Requires documents:write. The page is saved directly; the approval card applies only to changes an agent proposes in chat.
|
|
5546
|
+
|
|
5547
|
+
Titles 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.
|
|
5548
|
+
*
|
|
5549
|
+
* `POST /api/v1/wiki/pages`
|
|
5550
|
+
*/
|
|
5551
|
+
createPage(request, requestOptions) {
|
|
5552
|
+
const { ...body } = request ?? {};
|
|
5553
|
+
return this._http.request({
|
|
5554
|
+
method: "POST",
|
|
5555
|
+
path: "/api/v1/wiki/pages",
|
|
5556
|
+
query: void 0,
|
|
5557
|
+
body,
|
|
5558
|
+
...mergeRequestOptions(requestOptions)
|
|
5559
|
+
});
|
|
5560
|
+
}
|
|
5561
|
+
/**
|
|
5562
|
+
* Archive Wiki Page
|
|
5563
|
+
*
|
|
5564
|
+
* 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.
|
|
5565
|
+
*
|
|
5566
|
+
* `DELETE /api/v1/wiki/pages/{pageId}`
|
|
5567
|
+
*/
|
|
5568
|
+
archivePage(request, requestOptions) {
|
|
5569
|
+
const { pageId, organizationId } = request ?? {};
|
|
5570
|
+
return this._http.request({
|
|
5571
|
+
method: "DELETE",
|
|
5572
|
+
path: `/api/v1/wiki/pages/${encodePathParam("pageId", pageId)}`,
|
|
5573
|
+
query: { organizationId },
|
|
5574
|
+
body: void 0,
|
|
5575
|
+
...mergeRequestOptions(requestOptions)
|
|
5576
|
+
});
|
|
5577
|
+
}
|
|
5578
|
+
/**
|
|
5579
|
+
* Get Wiki Page
|
|
5580
|
+
*
|
|
5581
|
+
* Read one page with its body, labels, linked pages and pages that link to it. Requires documents:read.
|
|
5582
|
+
*
|
|
5583
|
+
* `GET /api/v1/wiki/pages/{pageId}`
|
|
5584
|
+
*/
|
|
5585
|
+
getPage(request, requestOptions) {
|
|
5586
|
+
const { pageId, organizationId } = request ?? {};
|
|
5587
|
+
return this._http.request({
|
|
5588
|
+
method: "GET",
|
|
5589
|
+
path: `/api/v1/wiki/pages/${encodePathParam("pageId", pageId)}`,
|
|
5590
|
+
query: { organizationId },
|
|
5591
|
+
body: void 0,
|
|
5592
|
+
...mergeRequestOptions(requestOptions)
|
|
5593
|
+
});
|
|
5594
|
+
}
|
|
5595
|
+
/**
|
|
5596
|
+
* Update Wiki Page
|
|
5597
|
+
*
|
|
5598
|
+
* Save a new revision. Requires documents:write. Send only the fields that change; aliases and appliesTo replace the existing lists.
|
|
5599
|
+
|
|
5600
|
+
Pass 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.
|
|
5601
|
+
*
|
|
5602
|
+
* `PATCH /api/v1/wiki/pages/{pageId}`
|
|
5603
|
+
*/
|
|
5604
|
+
updatePage(request, requestOptions) {
|
|
5605
|
+
const { pageId, ...body } = request ?? {};
|
|
5606
|
+
return this._http.request({
|
|
5607
|
+
method: "PATCH",
|
|
5608
|
+
path: `/api/v1/wiki/pages/${encodePathParam("pageId", pageId)}`,
|
|
5609
|
+
query: void 0,
|
|
5610
|
+
body,
|
|
5611
|
+
...mergeRequestOptions(requestOptions)
|
|
5612
|
+
});
|
|
5613
|
+
}
|
|
5614
|
+
/**
|
|
5615
|
+
* List Wiki Page Revisions
|
|
5616
|
+
*
|
|
5617
|
+
* Every saved revision of a page, newest first, with author, origin and change summary. Requires documents:read.
|
|
5618
|
+
*
|
|
5619
|
+
* `GET /api/v1/wiki/pages/{pageId}/revisions`
|
|
5620
|
+
*/
|
|
5621
|
+
listRevisions(request, requestOptions) {
|
|
5622
|
+
const { pageId, organizationId } = request ?? {};
|
|
5623
|
+
return this._http.request({
|
|
5624
|
+
method: "GET",
|
|
5625
|
+
path: `/api/v1/wiki/pages/${encodePathParam("pageId", pageId)}/revisions`,
|
|
5626
|
+
query: { organizationId },
|
|
5627
|
+
body: void 0,
|
|
5628
|
+
...mergeRequestOptions(requestOptions)
|
|
5629
|
+
});
|
|
5630
|
+
}
|
|
5631
|
+
/**
|
|
5632
|
+
* Search Wiki
|
|
5633
|
+
*
|
|
5634
|
+
* Search the wiki and return the best-matching fragments, the same search agents use. Requires documents:read.
|
|
5635
|
+
|
|
5636
|
+
Results 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.
|
|
5637
|
+
*
|
|
5638
|
+
* `POST /api/v1/wiki/search`
|
|
5639
|
+
*/
|
|
5640
|
+
search(request, requestOptions) {
|
|
5641
|
+
const { ...body } = request ?? {};
|
|
5642
|
+
return this._http.request({
|
|
5643
|
+
method: "POST",
|
|
5644
|
+
path: "/api/v1/wiki/search",
|
|
5645
|
+
query: void 0,
|
|
5646
|
+
body,
|
|
5647
|
+
...mergeRequestOptions(requestOptions)
|
|
5648
|
+
});
|
|
5649
|
+
}
|
|
5650
|
+
};
|
|
5331
5651
|
var ZaloraClient = class {
|
|
5332
5652
|
constructor(_http) {
|
|
5333
5653
|
__publicField(this, "_http", _http);
|
|
@@ -5392,6 +5712,7 @@ var OmniGeneratedClient = class {
|
|
|
5392
5712
|
__publicField(this, "compare");
|
|
5393
5713
|
__publicField(this, "directory");
|
|
5394
5714
|
__publicField(this, "documents");
|
|
5715
|
+
__publicField(this, "email");
|
|
5395
5716
|
__publicField(this, "evaluate");
|
|
5396
5717
|
__publicField(this, "feed");
|
|
5397
5718
|
__publicField(this, "followUps");
|
|
@@ -5419,6 +5740,7 @@ var OmniGeneratedClient = class {
|
|
|
5419
5740
|
__publicField(this, "ucp");
|
|
5420
5741
|
__publicField(this, "webhookEvents");
|
|
5421
5742
|
__publicField(this, "webhooks");
|
|
5743
|
+
__publicField(this, "wiki");
|
|
5422
5744
|
__publicField(this, "zalora");
|
|
5423
5745
|
this.agents = new AgentsClient(this._http);
|
|
5424
5746
|
this.analytics = new AnalyticsClient(this._http);
|
|
@@ -5434,6 +5756,7 @@ var OmniGeneratedClient = class {
|
|
|
5434
5756
|
this.compare = new CompareClient(this._http);
|
|
5435
5757
|
this.directory = new DirectoryClient(this._http);
|
|
5436
5758
|
this.documents = new DocumentsClient(this._http);
|
|
5759
|
+
this.email = new EmailClient(this._http);
|
|
5437
5760
|
this.evaluate = new EvaluateClient(this._http);
|
|
5438
5761
|
this.feed = new FeedClient(this._http);
|
|
5439
5762
|
this.followUps = new FollowUpsClient(this._http);
|
|
@@ -5461,6 +5784,7 @@ var OmniGeneratedClient = class {
|
|
|
5461
5784
|
this.ucp = new UcpClient(this._http);
|
|
5462
5785
|
this.webhookEvents = new WebhookEventsClient(this._http);
|
|
5463
5786
|
this.webhooks = new WebhooksClient(this._http);
|
|
5787
|
+
this.wiki = new WikiClient(this._http);
|
|
5464
5788
|
this.zalora = new ZaloraClient(this._http);
|
|
5465
5789
|
}
|
|
5466
5790
|
};
|