@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/dist/index.d.cts CHANGED
@@ -179,6 +179,36 @@ interface paths {
179
179
  patch?: never;
180
180
  trace?: never;
181
181
  };
182
+ "/api/v1/agents/{agentId}/invoke": {
183
+ parameters: {
184
+ query?: never;
185
+ header?: never;
186
+ path?: never;
187
+ cookie?: never;
188
+ };
189
+ get?: never;
190
+ put?: never;
191
+ /**
192
+ * Invoke a saved agent
193
+ * @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.
194
+ *
195
+ * 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.
196
+ *
197
+ * 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, not request idempotency; retrying an invocation may run the agent again.
198
+ *
199
+ * Conversations 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.
200
+ *
201
+ * audience=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.
202
+ *
203
+ * Send decisions instead of messages with the same thread_id and audience to resume approvals. Resolve pending approvals before sending new messages.
204
+ */
205
+ post: operations["post_v1_agents_by_agentid_invoke"];
206
+ delete?: never;
207
+ options?: never;
208
+ head?: never;
209
+ patch?: never;
210
+ trace?: never;
211
+ };
182
212
  "/api/v1/agents/{agentId}/messages": {
183
213
  parameters: {
184
214
  query?: never;
@@ -189,17 +219,21 @@ interface paths {
189
219
  get?: never;
190
220
  put?: never;
191
221
  /**
192
- * Send a message to an agent
193
- * @description Message the exact built-in or custom agent in the URL, using its saved model, instructions, tools, permissions and Programmatic starting mode.
222
+ * Invoke a saved agent (alias)
223
+ * @deprecated
224
+ * @description Alias of /agents/{agentId}/invoke with the identical request and response. Prefer /invoke.
194
225
  *
195
- * ### Authentication
196
- * 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`.
226
+ * 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.
227
+ *
228
+ * 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.
229
+ *
230
+ * 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, not request idempotency; retrying an invocation may run the agent again.
231
+ *
232
+ * Conversations 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.
197
233
  *
198
- * ### Conversation and execution
199
- * - The same caller, agent and `clientThreadKey` continue one conversation. Different callers, agents and organizations are isolated.
200
- * - No model, prompt or tool overrides are accepted.
201
- * - `wait=false` queues durable work and returns 202; `wait=true` returns the final reply or pending approvals.
202
- * - Send `decisions` with the same `clientThreadKey` to approve or reject a paused run.
234
+ * audience=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.
235
+ *
236
+ * Send decisions instead of messages with the same thread_id and audience to resume approvals. Resolve pending approvals before sending new messages.
203
237
  */
204
238
  post: operations["post_v1_agents_by_agentid_messages"];
205
239
  delete?: never;
@@ -208,6 +242,38 @@ interface paths {
208
242
  patch?: never;
209
243
  trace?: never;
210
244
  };
245
+ "/api/v1/agents/{agentId}/runs": {
246
+ parameters: {
247
+ query?: never;
248
+ header?: never;
249
+ path?: never;
250
+ cookie?: never;
251
+ };
252
+ get?: never;
253
+ put?: never;
254
+ /**
255
+ * Start a saved agent run
256
+ * @description Queue durable execution using the identical invocation contract. Poll Location, honoring Retry-After.
257
+ *
258
+ * 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.
259
+ *
260
+ * 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.
261
+ *
262
+ * 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, not request idempotency; retrying an invocation may run the agent again.
263
+ *
264
+ * Conversations 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.
265
+ *
266
+ * audience=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.
267
+ *
268
+ * Send decisions instead of messages with the same thread_id and audience to resume approvals. Resolve pending approvals before sending new messages.
269
+ */
270
+ post: operations["post_v1_agents_by_agentid_runs"];
271
+ delete?: never;
272
+ options?: never;
273
+ head?: never;
274
+ patch?: never;
275
+ trace?: never;
276
+ };
211
277
  "/api/v1/agents/{agentId}/runs/{runId}": {
212
278
  parameters: {
213
279
  query?: never;
@@ -216,8 +282,8 @@ interface paths {
216
282
  cookie?: never;
217
283
  };
218
284
  /**
219
- * Get an agent message run
220
- * @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.
285
+ * Get a saved agent run
286
+ * @description Read the canonical run resource. Organization, caller, credential and exact agent access are checked again. Requires agents:invoke.
221
287
  */
222
288
  get: operations["get_v1_agents_by_agentid_runs_by_runid"];
223
289
  put?: never;
@@ -241,7 +307,7 @@ interface paths {
241
307
  * Invoke the Omni agent
242
308
  * @description Run the general Omni agent and wait until it completes, pauses for approval, or fails. Requires `agents:invoke`.
243
309
  *
244
- * 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.
310
+ * 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.
245
311
  */
246
312
  post: operations["post_v1_agents_general_invoke"];
247
313
  delete?: never;
@@ -365,7 +431,11 @@ interface paths {
365
431
  };
366
432
  /**
367
433
  * Get Order Analytics
368
- * @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`.
434
+ * @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.
435
+ *
436
+ * ### Order attribution
437
+ *
438
+ * `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`.
369
439
  *
370
440
  * Amounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.
371
441
  */
@@ -1391,7 +1461,7 @@ interface paths {
1391
1461
  * Upload Document
1392
1462
  * @description Upload one file to the knowledge base as multipart/form-data. Requires `documents:write`.
1393
1463
  *
1394
- * Accepted: 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.
1464
+ * 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.
1395
1465
  */
1396
1466
  post: operations["post_v1_documents"];
1397
1467
  delete?: never;
@@ -1422,6 +1492,106 @@ interface paths {
1422
1492
  patch?: never;
1423
1493
  trace?: never;
1424
1494
  };
1495
+ "/api/v1/email/accounts": {
1496
+ parameters: {
1497
+ query?: never;
1498
+ header?: never;
1499
+ path?: never;
1500
+ cookie?: never;
1501
+ };
1502
+ /**
1503
+ * List Email Accounts
1504
+ * @description Your connected Gmail and Outlook accounts, default first. Pass an account's `connectionId` to the other email endpoints to choose it.
1505
+ *
1506
+ * ### Authorization
1507
+ *
1508
+ * 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.
1509
+ */
1510
+ get: operations["get_v1_email_accounts"];
1511
+ put?: never;
1512
+ post?: never;
1513
+ delete?: never;
1514
+ options?: never;
1515
+ head?: never;
1516
+ patch?: never;
1517
+ trace?: never;
1518
+ };
1519
+ "/api/v1/email/drafts": {
1520
+ parameters: {
1521
+ query?: never;
1522
+ header?: never;
1523
+ path?: never;
1524
+ cookie?: never;
1525
+ };
1526
+ get?: never;
1527
+ put?: never;
1528
+ /**
1529
+ * Create Email Draft
1530
+ * @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.
1531
+ *
1532
+ * 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.
1533
+ *
1534
+ * ### Authorization
1535
+ *
1536
+ * 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.
1537
+ */
1538
+ post: operations["post_v1_email_drafts"];
1539
+ delete?: never;
1540
+ options?: never;
1541
+ head?: never;
1542
+ patch?: never;
1543
+ trace?: never;
1544
+ };
1545
+ "/api/v1/email/messages/{messageId}": {
1546
+ parameters: {
1547
+ query?: never;
1548
+ header?: never;
1549
+ path?: never;
1550
+ cookie?: never;
1551
+ };
1552
+ /**
1553
+ * Get Email Message
1554
+ * @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.
1555
+ *
1556
+ * ### Authorization
1557
+ *
1558
+ * 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.
1559
+ */
1560
+ get: operations["get_v1_email_messages_by_messageid"];
1561
+ put?: never;
1562
+ post?: never;
1563
+ delete?: never;
1564
+ options?: never;
1565
+ head?: never;
1566
+ patch?: never;
1567
+ trace?: never;
1568
+ };
1569
+ "/api/v1/email/search": {
1570
+ parameters: {
1571
+ query?: never;
1572
+ header?: never;
1573
+ path?: never;
1574
+ cookie?: never;
1575
+ };
1576
+ /**
1577
+ * Search Emails
1578
+ * @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.
1579
+ *
1580
+ * 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.
1581
+ *
1582
+ * ### Authorization
1583
+ *
1584
+ * 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.
1585
+ */
1586
+ get: operations["get_v1_email_search"];
1587
+ put?: never;
1588
+ post?: never;
1589
+ delete?: never;
1590
+ options?: never;
1591
+ head?: never;
1592
+ patch?: never;
1593
+ trace?: never;
1594
+ };
1425
1595
  "/api/v1/evaluate": {
1426
1596
  parameters: {
1427
1597
  query?: never;
@@ -3774,6 +3944,148 @@ interface paths {
3774
3944
  patch?: never;
3775
3945
  trace?: never;
3776
3946
  };
3947
+ "/api/v1/wiki/export": {
3948
+ parameters: {
3949
+ query?: never;
3950
+ header?: never;
3951
+ path?: never;
3952
+ cookie?: never;
3953
+ };
3954
+ /**
3955
+ * Export Wiki
3956
+ * @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.
3957
+ */
3958
+ get: operations["get_v1_wiki_export"];
3959
+ put?: never;
3960
+ post?: never;
3961
+ delete?: never;
3962
+ options?: never;
3963
+ head?: never;
3964
+ patch?: never;
3965
+ trace?: never;
3966
+ };
3967
+ "/api/v1/wiki/import": {
3968
+ parameters: {
3969
+ query?: never;
3970
+ header?: never;
3971
+ path?: never;
3972
+ cookie?: never;
3973
+ };
3974
+ get?: never;
3975
+ put?: never;
3976
+ /**
3977
+ * Import Wiki
3978
+ * @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.
3979
+ *
3980
+ * Definitions from older exports are imported into the page body.
3981
+ *
3982
+ * 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.
3983
+ */
3984
+ post: operations["post_v1_wiki_import"];
3985
+ delete?: never;
3986
+ options?: never;
3987
+ head?: never;
3988
+ patch?: never;
3989
+ trace?: never;
3990
+ };
3991
+ "/api/v1/wiki/pages": {
3992
+ parameters: {
3993
+ query?: never;
3994
+ header?: never;
3995
+ path?: never;
3996
+ cookie?: never;
3997
+ };
3998
+ /**
3999
+ * List Wiki Pages
4000
+ * @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.
4001
+ */
4002
+ get: operations["get_v1_wiki_pages"];
4003
+ put?: never;
4004
+ /**
4005
+ * Create Wiki Page
4006
+ * @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.
4007
+ *
4008
+ * 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.
4009
+ */
4010
+ post: operations["post_v1_wiki_pages"];
4011
+ delete?: never;
4012
+ options?: never;
4013
+ head?: never;
4014
+ patch?: never;
4015
+ trace?: never;
4016
+ };
4017
+ "/api/v1/wiki/pages/{pageId}": {
4018
+ parameters: {
4019
+ query?: never;
4020
+ header?: never;
4021
+ path?: never;
4022
+ cookie?: never;
4023
+ };
4024
+ /**
4025
+ * Get Wiki Page
4026
+ * @description Read one page with its body, labels, linked pages and pages that link to it. Requires documents:read.
4027
+ */
4028
+ get: operations["get_v1_wiki_pages_by_pageid"];
4029
+ put?: never;
4030
+ post?: never;
4031
+ /**
4032
+ * Archive Wiki Page
4033
+ * @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.
4034
+ */
4035
+ delete: operations["delete_v1_wiki_pages_by_pageid"];
4036
+ options?: never;
4037
+ head?: never;
4038
+ /**
4039
+ * Update Wiki Page
4040
+ * @description Save a new revision. Requires documents:write. Send only the fields that change; aliases and appliesTo replace the existing lists.
4041
+ *
4042
+ * 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.
4043
+ */
4044
+ patch: operations["patch_v1_wiki_pages_by_pageid"];
4045
+ trace?: never;
4046
+ };
4047
+ "/api/v1/wiki/pages/{pageId}/revisions": {
4048
+ parameters: {
4049
+ query?: never;
4050
+ header?: never;
4051
+ path?: never;
4052
+ cookie?: never;
4053
+ };
4054
+ /**
4055
+ * List Wiki Page Revisions
4056
+ * @description Every saved revision of a page, newest first, with author, origin and change summary. Requires documents:read.
4057
+ */
4058
+ get: operations["get_v1_wiki_pages_by_pageid_revisions"];
4059
+ put?: never;
4060
+ post?: never;
4061
+ delete?: never;
4062
+ options?: never;
4063
+ head?: never;
4064
+ patch?: never;
4065
+ trace?: never;
4066
+ };
4067
+ "/api/v1/wiki/search": {
4068
+ parameters: {
4069
+ query?: never;
4070
+ header?: never;
4071
+ path?: never;
4072
+ cookie?: never;
4073
+ };
4074
+ get?: never;
4075
+ put?: never;
4076
+ /**
4077
+ * Search Wiki
4078
+ * @description Search the wiki and return the best-matching fragments, the same search agents use. Requires documents:read.
4079
+ *
4080
+ * 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.
4081
+ */
4082
+ post: operations["post_v1_wiki_search"];
4083
+ delete?: never;
4084
+ options?: never;
4085
+ head?: never;
4086
+ patch?: never;
4087
+ trace?: never;
4088
+ };
3777
4089
  "/api/v1/zalora/import": {
3778
4090
  parameters: {
3779
4091
  query?: never;
@@ -4701,6 +5013,8 @@ interface components {
4701
5013
  voucherReward?: "discount" | "coins_cashback";
4702
5014
  /** @enum {string} */
4703
5015
  voucherAudience?: "general" | "shop_follow";
5016
+ /** @description Membership points required per voucher redemption. Required for shopee_redemption and lazada_points_redeemable; unavailable for other voucher types. */
5017
+ redemptionPoints?: number;
4704
5018
  /** @description Shopee Repeat Buyer: minimum completed shop orders, 1 or 2. Required for shopee_repeat_buyer. */
4705
5019
  repeatPurchaseMinCount?: number;
4706
5020
  /** @description Shopee Repeat Buyer: lookback window in days, one of 30, 90, 180 or 365. Required for shopee_repeat_buyer. */
@@ -6769,7 +7083,7 @@ interface operations {
6769
7083
  };
6770
7084
  };
6771
7085
  };
6772
- post_v1_agents_by_agentid_messages: {
7086
+ post_v1_agents_by_agentid_invoke: {
6773
7087
  parameters: {
6774
7088
  query?: never;
6775
7089
  header?: never;
@@ -6782,18 +7096,53 @@ interface operations {
6782
7096
  content: {
6783
7097
  /**
6784
7098
  * @example {
6785
- * "message": "Summarize today's orders.",
6786
- * "clientThreadKey": "daily-report",
6787
- * "wait": true
7099
+ * "thread_id": "whatsapp-123",
7100
+ * "channel": "whatsapp",
7101
+ * "audience": "customer",
7102
+ * "messages": [
7103
+ * {
7104
+ * "id": "wamid.123",
7105
+ * "role": "user",
7106
+ * "content": "Can you deliver tomorrow?"
7107
+ * }
7108
+ * ]
6788
7109
  * }
6789
7110
  */
6790
7111
  "application/json": {
6791
7112
  organizationId?: string;
6792
- message?: string;
6793
- /** @default default */
6794
- clientThreadKey?: string;
6795
- /** @default false */
6796
- wait?: boolean;
7113
+ thread_id?: string | null;
7114
+ channel?: string;
7115
+ /** @enum {string} */
7116
+ audience?: "member" | "customer";
7117
+ messages?: {
7118
+ /** @enum {string} */
7119
+ role?: "user" | "assistant" | "system";
7120
+ content:
7121
+ | string
7122
+ | (
7123
+ | {
7124
+ /** @constant */
7125
+ type: "text";
7126
+ text: string;
7127
+ }
7128
+ | {
7129
+ /** @constant */
7130
+ type: "image";
7131
+ url: string;
7132
+ filename?: string;
7133
+ }
7134
+ )[];
7135
+ id?: string;
7136
+ name?: string;
7137
+ }[];
7138
+ config?: {
7139
+ enabled_tools?: string[];
7140
+ model?: string | null;
7141
+ system_prompt?: string;
7142
+ structured_output?: {
7143
+ [key: string]: unknown;
7144
+ } | null;
7145
+ };
6797
7146
  decisions?: {
6798
7147
  /** @enum {string} */
6799
7148
  action: "approve" | "reject";
@@ -6803,60 +7152,40 @@ interface operations {
6803
7152
  };
6804
7153
  };
6805
7154
  responses: {
6806
- /** @description The agent's verbatim final reply or pending approvals. */
7155
+ /** @description The run completed or paused for approval. */
6807
7156
  200: {
6808
7157
  headers: {
6809
7158
  [name: string]: unknown;
6810
7159
  };
6811
7160
  content: {
6812
7161
  "application/json": {
6813
- agentId: string;
6814
- threadKey: string;
6815
- runId: string;
6816
- threadId: string;
6817
- /** @enum {string} */
6818
- status:
6819
- | "accepted"
6820
- | "running"
6821
- | "completed"
6822
- | "awaiting_approval"
6823
- | "failed";
6824
- reply: string | null;
6825
- approvals:
6826
- | {
6827
- interrupt_instance_id: string;
6828
- tool_name: string | null;
6829
- tool_args: unknown;
6830
- message: string;
6831
- }[]
6832
- | null;
6833
- error: string | null;
6834
- };
6835
- };
6836
- };
6837
- /** @description Accepted for durable execution. */
6838
- 202: {
6839
- headers: {
6840
- /** @description Caller-scoped status URL for this agent's run. */
6841
- Location?: string;
6842
- /** @description Seconds to wait before reading an open run again. */
6843
- "Retry-After"?: number;
6844
- [name: string]: unknown;
6845
- };
6846
- content: {
6847
- "application/json": {
6848
- agentId: string;
6849
- threadKey: string;
6850
- runId: string;
6851
- threadId: string;
7162
+ run_id: string;
7163
+ thread_id: string;
6852
7164
  /** @enum {string} */
6853
7165
  status:
6854
- | "accepted"
7166
+ | "queued"
6855
7167
  | "running"
6856
7168
  | "completed"
6857
7169
  | "awaiting_approval"
6858
7170
  | "failed";
6859
- reply: string | null;
7171
+ messages: {
7172
+ /** @enum {string} */
7173
+ type: "human" | "ai" | "tool" | "system";
7174
+ /** @enum {string} */
7175
+ role: "user" | "assistant" | "tool" | "system";
7176
+ content: string;
7177
+ id?: string;
7178
+ name?: string;
7179
+ tool_calls?: {
7180
+ id?: string;
7181
+ name: string;
7182
+ args: unknown;
7183
+ }[];
7184
+ tool_call_id?: string;
7185
+ }[];
7186
+ structured_output: {
7187
+ [key: string]: unknown;
7188
+ } | null;
6860
7189
  approvals:
6861
7190
  | {
6862
7191
  interrupt_instance_id: string;
@@ -6869,14 +7198,14 @@ interface operations {
6869
7198
  };
6870
7199
  };
6871
7200
  };
6872
- /** @description Invalid message, decisions or organization scope. */
7201
+ /** @description Invalid invocation, configuration override for a saved agent, or organization mismatch. */
6873
7202
  400: {
6874
7203
  headers: {
6875
7204
  [name: string]: unknown;
6876
7205
  };
6877
7206
  content?: never;
6878
7207
  };
6879
- /** @description A valid Bearer API key or sign-in session is required. */
7208
+ /** @description Authentication required. */
6880
7209
  401: {
6881
7210
  headers: {
6882
7211
  [name: string]: unknown;
@@ -6890,21 +7219,371 @@ interface operations {
6890
7219
  };
6891
7220
  content?: never;
6892
7221
  };
6893
- /** @description Missing agents:invoke scope, inactive agent, revoked key, or the credential owner lacks organization membership or agent sharing access. */
7222
+ /** @description Missing agents:invoke scope, inactive agent or credential, or missing membership or agent access. */
6894
7223
  403: {
6895
7224
  headers: {
6896
7225
  [name: string]: unknown;
6897
7226
  };
6898
7227
  content?: never;
6899
7228
  };
6900
- /** @description The run does not belong to this agent and caller. */
7229
+ /** @description The conversation or run is not available to this caller and agent. */
6901
7230
  404: {
6902
7231
  headers: {
6903
7232
  [name: string]: unknown;
6904
7233
  };
6905
7234
  content?: never;
6906
7235
  };
6907
- /** @description This conversation already has an active run, or there is no matching pending approval. */
7236
+ /** @description The thread has an active run or an unresolved approval. */
7237
+ 409: {
7238
+ headers: {
7239
+ [name: string]: unknown;
7240
+ };
7241
+ content?: never;
7242
+ };
7243
+ /** @description The agent run failed. */
7244
+ 500: {
7245
+ headers: {
7246
+ [name: string]: unknown;
7247
+ };
7248
+ content?: never;
7249
+ };
7250
+ /** @description The waiting request timed out. The error includes the stored run ID. */
7251
+ 504: {
7252
+ headers: {
7253
+ [name: string]: unknown;
7254
+ };
7255
+ content?: never;
7256
+ };
7257
+ };
7258
+ };
7259
+ post_v1_agents_by_agentid_messages: {
7260
+ parameters: {
7261
+ query?: never;
7262
+ header?: never;
7263
+ path: {
7264
+ agentId: string;
7265
+ };
7266
+ cookie?: never;
7267
+ };
7268
+ requestBody: {
7269
+ content: {
7270
+ /**
7271
+ * @example {
7272
+ * "thread_id": "whatsapp-123",
7273
+ * "channel": "whatsapp",
7274
+ * "audience": "customer",
7275
+ * "messages": [
7276
+ * {
7277
+ * "id": "wamid.123",
7278
+ * "role": "user",
7279
+ * "content": "Can you deliver tomorrow?"
7280
+ * }
7281
+ * ]
7282
+ * }
7283
+ */
7284
+ "application/json": {
7285
+ organizationId?: string;
7286
+ thread_id?: string | null;
7287
+ channel?: string;
7288
+ /** @enum {string} */
7289
+ audience?: "member" | "customer";
7290
+ messages?: {
7291
+ /** @enum {string} */
7292
+ role?: "user" | "assistant" | "system";
7293
+ content:
7294
+ | string
7295
+ | (
7296
+ | {
7297
+ /** @constant */
7298
+ type: "text";
7299
+ text: string;
7300
+ }
7301
+ | {
7302
+ /** @constant */
7303
+ type: "image";
7304
+ url: string;
7305
+ filename?: string;
7306
+ }
7307
+ )[];
7308
+ id?: string;
7309
+ name?: string;
7310
+ }[];
7311
+ config?: {
7312
+ enabled_tools?: string[];
7313
+ model?: string | null;
7314
+ system_prompt?: string;
7315
+ structured_output?: {
7316
+ [key: string]: unknown;
7317
+ } | null;
7318
+ };
7319
+ decisions?: {
7320
+ /** @enum {string} */
7321
+ action: "approve" | "reject";
7322
+ reason?: string;
7323
+ }[];
7324
+ };
7325
+ };
7326
+ };
7327
+ responses: {
7328
+ /** @description The run completed or paused for approval. */
7329
+ 200: {
7330
+ headers: {
7331
+ [name: string]: unknown;
7332
+ };
7333
+ content: {
7334
+ "application/json": {
7335
+ run_id: string;
7336
+ thread_id: string;
7337
+ /** @enum {string} */
7338
+ status:
7339
+ | "queued"
7340
+ | "running"
7341
+ | "completed"
7342
+ | "awaiting_approval"
7343
+ | "failed";
7344
+ messages: {
7345
+ /** @enum {string} */
7346
+ type: "human" | "ai" | "tool" | "system";
7347
+ /** @enum {string} */
7348
+ role: "user" | "assistant" | "tool" | "system";
7349
+ content: string;
7350
+ id?: string;
7351
+ name?: string;
7352
+ tool_calls?: {
7353
+ id?: string;
7354
+ name: string;
7355
+ args: unknown;
7356
+ }[];
7357
+ tool_call_id?: string;
7358
+ }[];
7359
+ structured_output: {
7360
+ [key: string]: unknown;
7361
+ } | null;
7362
+ approvals:
7363
+ | {
7364
+ interrupt_instance_id: string;
7365
+ tool_name: string | null;
7366
+ tool_args: unknown;
7367
+ message: string;
7368
+ }[]
7369
+ | null;
7370
+ error: string | null;
7371
+ };
7372
+ };
7373
+ };
7374
+ /** @description Invalid invocation, configuration override for a saved agent, or organization mismatch. */
7375
+ 400: {
7376
+ headers: {
7377
+ [name: string]: unknown;
7378
+ };
7379
+ content?: never;
7380
+ };
7381
+ /** @description Authentication required. */
7382
+ 401: {
7383
+ headers: {
7384
+ [name: string]: unknown;
7385
+ };
7386
+ content?: never;
7387
+ };
7388
+ /** @description Insufficient AI credits. */
7389
+ 402: {
7390
+ headers: {
7391
+ [name: string]: unknown;
7392
+ };
7393
+ content?: never;
7394
+ };
7395
+ /** @description Missing agents:invoke scope, inactive agent or credential, or missing membership or agent access. */
7396
+ 403: {
7397
+ headers: {
7398
+ [name: string]: unknown;
7399
+ };
7400
+ content?: never;
7401
+ };
7402
+ /** @description The conversation or run is not available to this caller and agent. */
7403
+ 404: {
7404
+ headers: {
7405
+ [name: string]: unknown;
7406
+ };
7407
+ content?: never;
7408
+ };
7409
+ /** @description The thread has an active run or an unresolved approval. */
7410
+ 409: {
7411
+ headers: {
7412
+ [name: string]: unknown;
7413
+ };
7414
+ content?: never;
7415
+ };
7416
+ /** @description The agent run failed. */
7417
+ 500: {
7418
+ headers: {
7419
+ [name: string]: unknown;
7420
+ };
7421
+ content?: never;
7422
+ };
7423
+ /** @description The waiting request timed out. The error includes the stored run ID. */
7424
+ 504: {
7425
+ headers: {
7426
+ [name: string]: unknown;
7427
+ };
7428
+ content?: never;
7429
+ };
7430
+ };
7431
+ };
7432
+ post_v1_agents_by_agentid_runs: {
7433
+ parameters: {
7434
+ query?: never;
7435
+ header?: never;
7436
+ path: {
7437
+ agentId: string;
7438
+ };
7439
+ cookie?: never;
7440
+ };
7441
+ requestBody: {
7442
+ content: {
7443
+ /**
7444
+ * @example {
7445
+ * "thread_id": "whatsapp-123",
7446
+ * "channel": "whatsapp",
7447
+ * "audience": "customer",
7448
+ * "messages": [
7449
+ * {
7450
+ * "id": "wamid.123",
7451
+ * "role": "user",
7452
+ * "content": "Can you deliver tomorrow?"
7453
+ * }
7454
+ * ]
7455
+ * }
7456
+ */
7457
+ "application/json": {
7458
+ organizationId?: string;
7459
+ thread_id?: string | null;
7460
+ channel?: string;
7461
+ /** @enum {string} */
7462
+ audience?: "member" | "customer";
7463
+ messages?: {
7464
+ /** @enum {string} */
7465
+ role?: "user" | "assistant" | "system";
7466
+ content:
7467
+ | string
7468
+ | (
7469
+ | {
7470
+ /** @constant */
7471
+ type: "text";
7472
+ text: string;
7473
+ }
7474
+ | {
7475
+ /** @constant */
7476
+ type: "image";
7477
+ url: string;
7478
+ filename?: string;
7479
+ }
7480
+ )[];
7481
+ id?: string;
7482
+ name?: string;
7483
+ }[];
7484
+ config?: {
7485
+ enabled_tools?: string[];
7486
+ model?: string | null;
7487
+ system_prompt?: string;
7488
+ structured_output?: {
7489
+ [key: string]: unknown;
7490
+ } | null;
7491
+ };
7492
+ decisions?: {
7493
+ /** @enum {string} */
7494
+ action: "approve" | "reject";
7495
+ reason?: string;
7496
+ }[];
7497
+ };
7498
+ };
7499
+ };
7500
+ responses: {
7501
+ /** @description Queued for durable execution. */
7502
+ 202: {
7503
+ headers: {
7504
+ /** @description Seconds before polling again. */
7505
+ "Retry-After"?: number;
7506
+ /** @description Caller-scoped run status URL. */
7507
+ Location?: string;
7508
+ [name: string]: unknown;
7509
+ };
7510
+ content: {
7511
+ "application/json": {
7512
+ run_id: string;
7513
+ thread_id: string;
7514
+ /** @enum {string} */
7515
+ status:
7516
+ | "queued"
7517
+ | "running"
7518
+ | "completed"
7519
+ | "awaiting_approval"
7520
+ | "failed";
7521
+ messages: {
7522
+ /** @enum {string} */
7523
+ type: "human" | "ai" | "tool" | "system";
7524
+ /** @enum {string} */
7525
+ role: "user" | "assistant" | "tool" | "system";
7526
+ content: string;
7527
+ id?: string;
7528
+ name?: string;
7529
+ tool_calls?: {
7530
+ id?: string;
7531
+ name: string;
7532
+ args: unknown;
7533
+ }[];
7534
+ tool_call_id?: string;
7535
+ }[];
7536
+ structured_output: {
7537
+ [key: string]: unknown;
7538
+ } | null;
7539
+ approvals:
7540
+ | {
7541
+ interrupt_instance_id: string;
7542
+ tool_name: string | null;
7543
+ tool_args: unknown;
7544
+ message: string;
7545
+ }[]
7546
+ | null;
7547
+ error: string | null;
7548
+ };
7549
+ };
7550
+ };
7551
+ /** @description Invalid invocation, configuration override for a saved agent, or organization mismatch. */
7552
+ 400: {
7553
+ headers: {
7554
+ [name: string]: unknown;
7555
+ };
7556
+ content?: never;
7557
+ };
7558
+ /** @description Authentication required. */
7559
+ 401: {
7560
+ headers: {
7561
+ [name: string]: unknown;
7562
+ };
7563
+ content?: never;
7564
+ };
7565
+ /** @description Insufficient AI credits. */
7566
+ 402: {
7567
+ headers: {
7568
+ [name: string]: unknown;
7569
+ };
7570
+ content?: never;
7571
+ };
7572
+ /** @description Missing agents:invoke scope, inactive agent or credential, or missing membership or agent access. */
7573
+ 403: {
7574
+ headers: {
7575
+ [name: string]: unknown;
7576
+ };
7577
+ content?: never;
7578
+ };
7579
+ /** @description The conversation or run is not available to this caller and agent. */
7580
+ 404: {
7581
+ headers: {
7582
+ [name: string]: unknown;
7583
+ };
7584
+ content?: never;
7585
+ };
7586
+ /** @description The thread has an active run or an unresolved approval. */
6908
7587
  409: {
6909
7588
  headers: {
6910
7589
  [name: string]: unknown;
@@ -6930,7 +7609,7 @@ interface operations {
6930
7609
  get_v1_agents_by_agentid_runs_by_runid: {
6931
7610
  parameters: {
6932
7611
  query?: {
6933
- /** @description Required for sign-in sessions. API keys already identify their organization. */
7612
+ /** @description Required for session authentication; API keys identify their organization. */
6934
7613
  organizationId?: string;
6935
7614
  };
6936
7615
  header?: never;
@@ -6942,27 +7621,42 @@ interface operations {
6942
7621
  };
6943
7622
  requestBody?: never;
6944
7623
  responses: {
6945
- /** @description Current run status, reply and approvals. */
7624
+ /** @description The run resource. */
6946
7625
  200: {
6947
7626
  headers: {
6948
- /** @description Seconds to wait before reading an open run again. */
7627
+ /** @description Seconds before polling again. */
6949
7628
  "Retry-After"?: number;
6950
7629
  [name: string]: unknown;
6951
7630
  };
6952
7631
  content: {
6953
7632
  "application/json": {
6954
- agentId: string;
6955
- threadKey: string;
6956
- runId: string;
6957
- threadId: string;
7633
+ run_id: string;
7634
+ thread_id: string;
6958
7635
  /** @enum {string} */
6959
7636
  status:
6960
- | "accepted"
7637
+ | "queued"
6961
7638
  | "running"
6962
7639
  | "completed"
6963
7640
  | "awaiting_approval"
6964
7641
  | "failed";
6965
- reply: string | null;
7642
+ messages: {
7643
+ /** @enum {string} */
7644
+ type: "human" | "ai" | "tool" | "system";
7645
+ /** @enum {string} */
7646
+ role: "user" | "assistant" | "tool" | "system";
7647
+ content: string;
7648
+ id?: string;
7649
+ name?: string;
7650
+ tool_calls?: {
7651
+ id?: string;
7652
+ name: string;
7653
+ args: unknown;
7654
+ }[];
7655
+ tool_call_id?: string;
7656
+ }[];
7657
+ structured_output: {
7658
+ [key: string]: unknown;
7659
+ } | null;
6966
7660
  approvals:
6967
7661
  | {
6968
7662
  interrupt_instance_id: string;
@@ -6975,14 +7669,14 @@ interface operations {
6975
7669
  };
6976
7670
  };
6977
7671
  };
6978
- /** @description Invalid message, decisions or organization scope. */
7672
+ /** @description Invalid invocation, configuration override for a saved agent, or organization mismatch. */
6979
7673
  400: {
6980
7674
  headers: {
6981
7675
  [name: string]: unknown;
6982
7676
  };
6983
7677
  content?: never;
6984
7678
  };
6985
- /** @description A valid Bearer API key or sign-in session is required. */
7679
+ /** @description Authentication required. */
6986
7680
  401: {
6987
7681
  headers: {
6988
7682
  [name: string]: unknown;
@@ -6996,21 +7690,21 @@ interface operations {
6996
7690
  };
6997
7691
  content?: never;
6998
7692
  };
6999
- /** @description Missing agents:invoke scope, inactive agent, revoked key, or the credential owner lacks organization membership or agent sharing access. */
7693
+ /** @description Missing agents:invoke scope, inactive agent or credential, or missing membership or agent access. */
7000
7694
  403: {
7001
7695
  headers: {
7002
7696
  [name: string]: unknown;
7003
7697
  };
7004
7698
  content?: never;
7005
7699
  };
7006
- /** @description The run does not belong to this agent and caller. */
7700
+ /** @description The conversation or run is not available to this caller and agent. */
7007
7701
  404: {
7008
7702
  headers: {
7009
7703
  [name: string]: unknown;
7010
7704
  };
7011
7705
  content?: never;
7012
7706
  };
7013
- /** @description This conversation already has an active run, or there is no matching pending approval. */
7707
+ /** @description The thread has an active run or an unresolved approval. */
7014
7708
  409: {
7015
7709
  headers: {
7016
7710
  [name: string]: unknown;
@@ -7024,6 +7718,13 @@ interface operations {
7024
7718
  };
7025
7719
  content?: never;
7026
7720
  };
7721
+ /** @description The waiting request timed out. The error includes the stored run ID. */
7722
+ 504: {
7723
+ headers: {
7724
+ [name: string]: unknown;
7725
+ };
7726
+ content?: never;
7727
+ };
7027
7728
  };
7028
7729
  };
7029
7730
  post_v1_agents_general_invoke: {
@@ -7049,6 +7750,8 @@ interface operations {
7049
7750
  organizationId?: string;
7050
7751
  thread_id?: string | null;
7051
7752
  channel?: string;
7753
+ /** @enum {string} */
7754
+ audience?: "member" | "customer";
7052
7755
  messages?: {
7053
7756
  /** @enum {string} */
7054
7757
  role?: "user" | "assistant" | "system";
@@ -7207,6 +7910,8 @@ interface operations {
7207
7910
  organizationId?: string;
7208
7911
  thread_id?: string | null;
7209
7912
  channel?: string;
7913
+ /** @enum {string} */
7914
+ audience?: "member" | "customer";
7210
7915
  messages?: {
7211
7916
  /** @enum {string} */
7212
7917
  role?: "user" | "assistant" | "system";
@@ -7971,6 +8676,48 @@ interface operations {
7971
8676
  [key: string]: string;
7972
8677
  };
7973
8678
  data: {
8679
+ attribution: {
8680
+ channels: {
8681
+ key: string;
8682
+ label: string;
8683
+ platform: string;
8684
+ accountId: string | null;
8685
+ currency: string | null;
8686
+ attribution: {
8687
+ channels: string[];
8688
+ creatorHandles: string[];
8689
+ storefront: string | null;
8690
+ };
8691
+ /** @description Seller Analytics Net Revenue, in the row currency. */
8692
+ revenue: number;
8693
+ orderCount: number;
8694
+ unitsSold: number;
8695
+ }[];
8696
+ creators: {
8697
+ key: string;
8698
+ label: string;
8699
+ platform: string;
8700
+ accountId: string | null;
8701
+ currency: string | null;
8702
+ attribution: {
8703
+ channels: string[];
8704
+ creatorHandles: string[];
8705
+ storefront: string | null;
8706
+ };
8707
+ /** @description Seller Analytics Net Revenue, in the row currency. */
8708
+ revenue: number;
8709
+ orderCount: number;
8710
+ unitsSold: number;
8711
+ }[];
8712
+ coverage: {
8713
+ orderCount: number;
8714
+ withChannel: number;
8715
+ withCreator: number;
8716
+ multipleChannels: number;
8717
+ multipleCreators: number;
8718
+ };
8719
+ notes: string[];
8720
+ };
7974
8721
  filters: {
7975
8722
  from: string;
7976
8723
  to: string;
@@ -11362,6 +12109,8 @@ interface operations {
11362
12109
  voucherReward?: "discount" | "coins_cashback";
11363
12110
  /** @enum {string} */
11364
12111
  voucherAudience?: "general" | "shop_follow";
12112
+ /** @description Membership points required per voucher redemption. Required for shopee_redemption and lazada_points_redeemable; unavailable for other voucher types. */
12113
+ redemptionPoints?: number;
11365
12114
  /** @description Shopee Repeat Buyer: minimum completed shop orders, 1 or 2. Required for shopee_repeat_buyer. */
11366
12115
  repeatPurchaseMinCount?: number;
11367
12116
  /** @description Shopee Repeat Buyer: lookback window in days, one of 30, 90, 180 or 365. Required for shopee_repeat_buyer. */
@@ -12114,6 +12863,8 @@ interface operations {
12114
12863
  voucherReward?: "discount" | "coins_cashback";
12115
12864
  /** @enum {string} */
12116
12865
  voucherAudience?: "general" | "shop_follow";
12866
+ /** @description Membership points required per voucher redemption. Required for shopee_redemption and lazada_points_redeemable; unavailable for other voucher types. */
12867
+ redemptionPoints?: number;
12117
12868
  /** @description Shopee Repeat Buyer: minimum completed shop orders, 1 or 2. Required for shopee_repeat_buyer. */
12118
12869
  repeatPurchaseMinCount?: number;
12119
12870
  /** @description Shopee Repeat Buyer: lookback window in days, one of 30, 90, 180 or 365. Required for shopee_repeat_buyer. */
@@ -12595,6 +13346,8 @@ interface operations {
12595
13346
  voucherReward?: "discount" | "coins_cashback";
12596
13347
  /** @enum {string} */
12597
13348
  voucherAudience?: "general" | "shop_follow";
13349
+ /** @description Membership points required per voucher redemption. Required for shopee_redemption and lazada_points_redeemable; unavailable for other voucher types. */
13350
+ redemptionPoints?: number;
12598
13351
  /** @description Shopee Repeat Buyer: minimum completed shop orders, 1 or 2. Required for shopee_repeat_buyer. */
12599
13352
  repeatPurchaseMinCount?: number;
12600
13353
  /** @description Shopee Repeat Buyer: lookback window in days, one of 30, 90, 180 or 365. Required for shopee_repeat_buyer. */
@@ -12919,6 +13672,8 @@ interface operations {
12919
13672
  | "discard_change";
12920
13673
  expectedRevision: number;
12921
13674
  expectedPendingVersion?: number;
13675
+ /** @description Fingerprint from the marketplace validation report, supplied only after the user explicitly acknowledges its seller-review findings for this revision and proposal version. */
13676
+ sellerReviewAcknowledgement?: string;
12922
13677
  /** @description Required for session auth. Optional for an API key, which already identifies the organization. */
12923
13678
  organizationId?: string;
12924
13679
  };
@@ -13533,6 +14288,8 @@ interface operations {
13533
14288
  voucherReward?: "discount" | "coins_cashback";
13534
14289
  /** @enum {string} */
13535
14290
  voucherAudience?: "general" | "shop_follow";
14291
+ /** @description Membership points required per voucher redemption. Required for shopee_redemption and lazada_points_redeemable; unavailable for other voucher types. */
14292
+ redemptionPoints?: number;
13536
14293
  /** @description Shopee Repeat Buyer: minimum completed shop orders, 1 or 2. Required for shopee_repeat_buyer. */
13537
14294
  repeatPurchaseMinCount?: number;
13538
14295
  /** @description Shopee Repeat Buyer: lookback window in days, one of 30, 90, 180 or 365. Required for shopee_repeat_buyer. */
@@ -13661,6 +14418,8 @@ interface operations {
13661
14418
  campaignId: string;
13662
14419
  expectedRevision: number;
13663
14420
  expectedPendingVersion?: number;
14421
+ /** @description Fingerprint from the marketplace validation report, supplied only after the user explicitly acknowledges its seller-review findings for this revision and proposal version. */
14422
+ sellerReviewAcknowledgement?: string;
13664
14423
  }[];
13665
14424
  /** @description Required for session auth. Optional for an API key, which already identifies the organization. */
13666
14425
  organizationId?: string;
@@ -14338,6 +15097,8 @@ interface operations {
14338
15097
  voucherReward?: "discount" | "coins_cashback";
14339
15098
  /** @enum {string} */
14340
15099
  voucherAudience?: "general" | "shop_follow";
15100
+ /** @description Membership points required per voucher redemption. Required for shopee_redemption and lazada_points_redeemable; unavailable for other voucher types. */
15101
+ redemptionPoints?: number;
14341
15102
  /** @description Shopee Repeat Buyer: minimum completed shop orders, 1 or 2. Required for shopee_repeat_buyer. */
14342
15103
  repeatPurchaseMinCount?: number;
14343
15104
  /** @description Shopee Repeat Buyer: lookback window in days, one of 30, 90, 180 or 365. Required for shopee_repeat_buyer. */
@@ -14502,6 +15263,45 @@ interface operations {
14502
15263
  | "archived";
14503
15264
  plan?: components["schemas"]["CampaignPlan"];
14504
15265
  shiftMs?: number;
15266
+ marketplaceValidation?: {
15267
+ organizationId: string;
15268
+ campaignId: string;
15269
+ revision: number;
15270
+ pendingVersion: number | null;
15271
+ checkedAt: string;
15272
+ planIssues: string[];
15273
+ issues: {
15274
+ offerId: string;
15275
+ offerName: string;
15276
+ message: string;
15277
+ }[];
15278
+ checks: {
15279
+ offerId: string;
15280
+ offerName: string;
15281
+ windowId: string;
15282
+ store: {
15283
+ /** @enum {string} */
15284
+ marketplace:
15285
+ | "shopee"
15286
+ | "lazada"
15287
+ | "tiktok"
15288
+ | "shopify"
15289
+ | "whatsapp"
15290
+ | "zalora"
15291
+ | "amazon"
15292
+ | "ebay";
15293
+ country: string;
15294
+ storeId: string;
15295
+ storeName?: string;
15296
+ };
15297
+ productId?: string;
15298
+ sku?: string;
15299
+ /** @enum {string} */
15300
+ status: "passed" | "blocked" | "seller_review";
15301
+ message: string;
15302
+ }[];
15303
+ sellerReviewFingerprint: string | null;
15304
+ };
14505
15305
  }[];
14506
15306
  };
14507
15307
  };
@@ -17247,6 +18047,326 @@ interface operations {
17247
18047
  };
17248
18048
  };
17249
18049
  };
18050
+ get_v1_email_accounts: {
18051
+ parameters: {
18052
+ query?: {
18053
+ /** @description Required for session auth. Optional for API keys, which already belong to one organization. */
18054
+ organizationId?: string;
18055
+ };
18056
+ header?: never;
18057
+ path?: never;
18058
+ cookie?: never;
18059
+ };
18060
+ requestBody?: never;
18061
+ responses: {
18062
+ /** @description Your connected accounts. */
18063
+ 200: {
18064
+ headers: {
18065
+ [name: string]: unknown;
18066
+ };
18067
+ content: {
18068
+ "application/json": {
18069
+ ok?: boolean;
18070
+ operationId?: string;
18071
+ status?: string;
18072
+ data?: {
18073
+ accounts?: {
18074
+ connectionId?: string;
18075
+ /** @enum {string} */
18076
+ provider?: "gmail" | "outlook";
18077
+ emailAddress?: string;
18078
+ isDefault?: boolean;
18079
+ capabilities?: string[];
18080
+ /** @enum {string} */
18081
+ status?: "active" | "needs_reauth" | "revoked";
18082
+ }[];
18083
+ count?: number;
18084
+ };
18085
+ };
18086
+ };
18087
+ };
18088
+ /** @description Invalid request, no connected mailbox, a mailbox that needs reconnecting, or a provider refusal (`error` says which). */
18089
+ 400: {
18090
+ headers: {
18091
+ [name: string]: unknown;
18092
+ };
18093
+ content?: never;
18094
+ };
18095
+ /** @description Unauthorized */
18096
+ 401: {
18097
+ headers: {
18098
+ [name: string]: unknown;
18099
+ };
18100
+ content?: never;
18101
+ };
18102
+ /** @description Missing scope or integration permission, or a credential that acts for no person: organization API clients, Applications and Computer previews cannot reach mail. */
18103
+ 403: {
18104
+ headers: {
18105
+ [name: string]: unknown;
18106
+ };
18107
+ content?: never;
18108
+ };
18109
+ /** @description Internal Server Error */
18110
+ 500: {
18111
+ headers: {
18112
+ [name: string]: unknown;
18113
+ };
18114
+ content?: never;
18115
+ };
18116
+ };
18117
+ };
18118
+ post_v1_email_drafts: {
18119
+ parameters: {
18120
+ query?: never;
18121
+ header?: never;
18122
+ path?: never;
18123
+ cookie?: never;
18124
+ };
18125
+ requestBody: {
18126
+ content: {
18127
+ /**
18128
+ * @example {
18129
+ * "to": "buyer@example.com",
18130
+ * "subject": "Re: Order 1042",
18131
+ * "body": "Thanks for your order. It ships tomorrow.",
18132
+ * "replyToMessageId": "18c2f0a9b7e4d123"
18133
+ * }
18134
+ */
18135
+ "application/json": {
18136
+ to: string;
18137
+ subject: string;
18138
+ body: string;
18139
+ /** @description Connected account id from email_list_accounts. Omit to use the user's default. */
18140
+ connectionId?: string;
18141
+ replyToMessageId?: string;
18142
+ threadId?: string;
18143
+ /** @description Required for session auth. Optional for API keys, which already belong to one organization. */
18144
+ organizationId?: string;
18145
+ };
18146
+ };
18147
+ };
18148
+ responses: {
18149
+ /** @description The saved draft. */
18150
+ 200: {
18151
+ headers: {
18152
+ [name: string]: unknown;
18153
+ };
18154
+ content: {
18155
+ "application/json": {
18156
+ ok?: boolean;
18157
+ operationId?: string;
18158
+ status?: string;
18159
+ data?: {
18160
+ connectionId?: string;
18161
+ /** @enum {string} */
18162
+ provider?: "gmail" | "outlook";
18163
+ emailAddress?: string;
18164
+ draft?: {
18165
+ draftId?: string | null;
18166
+ messageId?: string | null;
18167
+ /** @description Gmail only. */
18168
+ threadId?: string | null;
18169
+ /** @description Outlook only: opens the draft. */
18170
+ webLink?: string | null;
18171
+ };
18172
+ note?: string;
18173
+ };
18174
+ };
18175
+ };
18176
+ };
18177
+ /** @description Invalid request, no connected mailbox, a mailbox that needs reconnecting, or a provider refusal (`error` says which). */
18178
+ 400: {
18179
+ headers: {
18180
+ [name: string]: unknown;
18181
+ };
18182
+ content?: never;
18183
+ };
18184
+ /** @description Unauthorized */
18185
+ 401: {
18186
+ headers: {
18187
+ [name: string]: unknown;
18188
+ };
18189
+ content?: never;
18190
+ };
18191
+ /** @description Missing scope or integration permission, or a credential that acts for no person: organization API clients, Applications and Computer previews cannot reach mail. */
18192
+ 403: {
18193
+ headers: {
18194
+ [name: string]: unknown;
18195
+ };
18196
+ content?: never;
18197
+ };
18198
+ /** @description Internal Server Error */
18199
+ 500: {
18200
+ headers: {
18201
+ [name: string]: unknown;
18202
+ };
18203
+ content?: never;
18204
+ };
18205
+ };
18206
+ };
18207
+ get_v1_email_messages_by_messageid: {
18208
+ parameters: {
18209
+ query?: {
18210
+ /** @description Connected account from `GET /api/v1/email/accounts`. Defaults to your default mailbox. */
18211
+ connectionId?: string;
18212
+ /** @description Required for session auth. Optional for API keys, which already belong to one organization. */
18213
+ organizationId?: string;
18214
+ };
18215
+ header?: never;
18216
+ path: {
18217
+ /** @description Provider message id from Search Emails. */
18218
+ messageId: string;
18219
+ };
18220
+ cookie?: never;
18221
+ };
18222
+ requestBody?: never;
18223
+ responses: {
18224
+ /** @description The message. */
18225
+ 200: {
18226
+ headers: {
18227
+ [name: string]: unknown;
18228
+ };
18229
+ content: {
18230
+ "application/json": {
18231
+ ok?: boolean;
18232
+ operationId?: string;
18233
+ status?: string;
18234
+ data?: {
18235
+ connectionId?: string;
18236
+ /** @enum {string} */
18237
+ provider?: "gmail" | "outlook";
18238
+ emailAddress?: string;
18239
+ message?: {
18240
+ id?: string;
18241
+ threadId?: string | null;
18242
+ subject?: string;
18243
+ from?: string;
18244
+ to?: string;
18245
+ date?: string;
18246
+ snippet?: string;
18247
+ bodyText?: string;
18248
+ hasAttachments?: boolean;
18249
+ attachments?: Record<string, never>[];
18250
+ };
18251
+ };
18252
+ };
18253
+ };
18254
+ };
18255
+ /** @description Invalid request, no connected mailbox, a mailbox that needs reconnecting, or a provider refusal (`error` says which). */
18256
+ 400: {
18257
+ headers: {
18258
+ [name: string]: unknown;
18259
+ };
18260
+ content?: never;
18261
+ };
18262
+ /** @description Unauthorized */
18263
+ 401: {
18264
+ headers: {
18265
+ [name: string]: unknown;
18266
+ };
18267
+ content?: never;
18268
+ };
18269
+ /** @description Missing scope or integration permission, or a credential that acts for no person: organization API clients, Applications and Computer previews cannot reach mail. */
18270
+ 403: {
18271
+ headers: {
18272
+ [name: string]: unknown;
18273
+ };
18274
+ content?: never;
18275
+ };
18276
+ /** @description Internal Server Error */
18277
+ 500: {
18278
+ headers: {
18279
+ [name: string]: unknown;
18280
+ };
18281
+ content?: never;
18282
+ };
18283
+ };
18284
+ };
18285
+ get_v1_email_search: {
18286
+ parameters: {
18287
+ query?: {
18288
+ /** @description Search query. Empty lists the newest messages. */
18289
+ query?: string;
18290
+ /** @description Connected account from `GET /api/v1/email/accounts`. Defaults to your default mailbox. */
18291
+ connectionId?: string;
18292
+ /** @description 1–50; 20 when omitted. */
18293
+ maxResults?: number;
18294
+ /** @description `nextPageToken` from the previous page. */
18295
+ pageToken?: string;
18296
+ /** @description Filter by read state. */
18297
+ readState?: "all" | "unread" | "read";
18298
+ /** @description Required for session auth. Optional for API keys, which already belong to one organization. */
18299
+ organizationId?: string;
18300
+ };
18301
+ header?: never;
18302
+ path?: never;
18303
+ cookie?: never;
18304
+ };
18305
+ requestBody?: never;
18306
+ responses: {
18307
+ /** @description One page of matching messages. */
18308
+ 200: {
18309
+ headers: {
18310
+ [name: string]: unknown;
18311
+ };
18312
+ content: {
18313
+ "application/json": {
18314
+ ok?: boolean;
18315
+ operationId?: string;
18316
+ status?: string;
18317
+ data?: {
18318
+ connectionId?: string;
18319
+ /** @enum {string} */
18320
+ provider?: "gmail" | "outlook";
18321
+ emailAddress?: string;
18322
+ query?: string;
18323
+ results?: {
18324
+ id?: string;
18325
+ threadId?: string | null;
18326
+ subject?: string;
18327
+ from?: string;
18328
+ to?: string;
18329
+ date?: string;
18330
+ snippet?: string;
18331
+ isRead?: boolean;
18332
+ isDraft?: boolean;
18333
+ }[];
18334
+ count?: number;
18335
+ nextPageToken?: string | null;
18336
+ };
18337
+ };
18338
+ };
18339
+ };
18340
+ /** @description Invalid request, no connected mailbox, a mailbox that needs reconnecting, or a provider refusal (`error` says which). */
18341
+ 400: {
18342
+ headers: {
18343
+ [name: string]: unknown;
18344
+ };
18345
+ content?: never;
18346
+ };
18347
+ /** @description Unauthorized */
18348
+ 401: {
18349
+ headers: {
18350
+ [name: string]: unknown;
18351
+ };
18352
+ content?: never;
18353
+ };
18354
+ /** @description Missing scope or integration permission, or a credential that acts for no person: organization API clients, Applications and Computer previews cannot reach mail. */
18355
+ 403: {
18356
+ headers: {
18357
+ [name: string]: unknown;
18358
+ };
18359
+ content?: never;
18360
+ };
18361
+ /** @description Internal Server Error */
18362
+ 500: {
18363
+ headers: {
18364
+ [name: string]: unknown;
18365
+ };
18366
+ content?: never;
18367
+ };
18368
+ };
18369
+ };
17250
18370
  post_v1_evaluate: {
17251
18371
  parameters: {
17252
18372
  query?: never;
@@ -19265,6 +20385,11 @@ interface operations {
19265
20385
  items?: {
19266
20386
  /** Format: uuid */
19267
20387
  id?: string;
20388
+ attribution?: {
20389
+ channels: string[];
20390
+ creatorHandles: string[];
20391
+ storefront: string | null;
20392
+ };
19268
20393
  status?: string;
19269
20394
  /** @enum {string} */
19270
20395
  statusGroup?:
@@ -19587,6 +20712,11 @@ interface operations {
19587
20712
  externalOrderNumber: string | null;
19588
20713
  /** Format: uri */
19589
20714
  marketplaceOrderUrl?: string | null;
20715
+ attribution: {
20716
+ channels: string[];
20717
+ creatorHandles: string[];
20718
+ storefront: string | null;
20719
+ };
19590
20720
  marketplace: string;
19591
20721
  marketplaceLabel?: string;
19592
20722
  /** @description Normalized display status for the source order. */
@@ -26314,6 +27444,8 @@ interface operations {
26314
27444
  voucherReward?: "discount" | "coins_cashback";
26315
27445
  /** @enum {string} */
26316
27446
  voucherAudience?: "general" | "shop_follow";
27447
+ /** @description Membership points required per voucher redemption. Required for shopee_redemption and lazada_points_redeemable; unavailable for other voucher types. */
27448
+ redemptionPoints?: number;
26317
27449
  /** @description Shopee Repeat Buyer: minimum completed shop orders, 1 or 2. Required for shopee_repeat_buyer. */
26318
27450
  repeatPurchaseMinCount?: number;
26319
27451
  /** @description Shopee Repeat Buyer: lookback window in days, one of 30, 90, 180 or 365. Required for shopee_repeat_buyer. */
@@ -26678,6 +27810,8 @@ interface operations {
26678
27810
  voucherReward?: "discount" | "coins_cashback";
26679
27811
  /** @enum {string} */
26680
27812
  voucherAudience?: "general" | "shop_follow";
27813
+ /** @description Membership points required per voucher redemption. Required for shopee_redemption and lazada_points_redeemable; unavailable for other voucher types. */
27814
+ redemptionPoints?: number;
26681
27815
  /** @description Shopee Repeat Buyer: minimum completed shop orders, 1 or 2. Required for shopee_repeat_buyer. */
26682
27816
  repeatPurchaseMinCount?: number;
26683
27817
  /** @description Shopee Repeat Buyer: lookback window in days, one of 30, 90, 180 or 365. Required for shopee_repeat_buyer. */
@@ -27276,6 +28410,8 @@ interface operations {
27276
28410
  voucherReward?: "discount" | "coins_cashback";
27277
28411
  /** @enum {string} */
27278
28412
  voucherAudience?: "general" | "shop_follow";
28413
+ /** @description Membership points required per voucher redemption. Required for shopee_redemption and lazada_points_redeemable; unavailable for other voucher types. */
28414
+ redemptionPoints?: number;
27279
28415
  /** @description Shopee Repeat Buyer: minimum completed shop orders, 1 or 2. Required for shopee_repeat_buyer. */
27280
28416
  repeatPurchaseMinCount?: number;
27281
28417
  /** @description Shopee Repeat Buyer: lookback window in days, one of 30, 90, 180 or 365. Required for shopee_repeat_buyer. */
@@ -30726,6 +31862,941 @@ interface operations {
30726
31862
  };
30727
31863
  };
30728
31864
  };
31865
+ get_v1_wiki_export: {
31866
+ parameters: {
31867
+ query?: {
31868
+ organizationId?: string;
31869
+ };
31870
+ header?: never;
31871
+ path?: never;
31872
+ cookie?: never;
31873
+ };
31874
+ requestBody?: never;
31875
+ responses: {
31876
+ /** @description Wiki export. */
31877
+ 200: {
31878
+ headers: {
31879
+ [name: string]: unknown;
31880
+ };
31881
+ content: {
31882
+ "application/json": {
31883
+ ok: boolean;
31884
+ /** @constant */
31885
+ apiVersion: "developer_v1";
31886
+ operationId: string;
31887
+ /** @enum {string} */
31888
+ status: "accepted" | "completed" | "failed";
31889
+ jobId?: string;
31890
+ warnings: string[];
31891
+ recommendations: string[];
31892
+ links: {
31893
+ [key: string]: string;
31894
+ };
31895
+ data: {
31896
+ files: {
31897
+ path: string;
31898
+ markdown: string;
31899
+ }[];
31900
+ skos: {
31901
+ [key: string]: unknown;
31902
+ };
31903
+ };
31904
+ };
31905
+ };
31906
+ };
31907
+ /** @description Invalid request. */
31908
+ 400: {
31909
+ headers: {
31910
+ [name: string]: unknown;
31911
+ };
31912
+ content?: never;
31913
+ };
31914
+ /** @description Missing credentials. */
31915
+ 401: {
31916
+ headers: {
31917
+ [name: string]: unknown;
31918
+ };
31919
+ content?: never;
31920
+ };
31921
+ /** @description Missing OAuth scope or organization capability. */
31922
+ 403: {
31923
+ headers: {
31924
+ [name: string]: unknown;
31925
+ };
31926
+ content?: never;
31927
+ };
31928
+ /** @description Wiki page not found in this organization. */
31929
+ 404: {
31930
+ headers: {
31931
+ [name: string]: unknown;
31932
+ };
31933
+ content?: never;
31934
+ };
31935
+ };
31936
+ };
31937
+ post_v1_wiki_import: {
31938
+ parameters: {
31939
+ query?: never;
31940
+ header?: never;
31941
+ path?: never;
31942
+ cookie?: never;
31943
+ };
31944
+ requestBody: {
31945
+ content: {
31946
+ "application/json": {
31947
+ organizationId?: string;
31948
+ files: {
31949
+ path?: string;
31950
+ markdown: string;
31951
+ }[];
31952
+ };
31953
+ };
31954
+ };
31955
+ responses: {
31956
+ /** @description Import result. */
31957
+ 200: {
31958
+ headers: {
31959
+ [name: string]: unknown;
31960
+ };
31961
+ content: {
31962
+ "application/json": {
31963
+ ok: boolean;
31964
+ /** @constant */
31965
+ apiVersion: "developer_v1";
31966
+ operationId: string;
31967
+ /** @enum {string} */
31968
+ status: "accepted" | "completed" | "failed";
31969
+ jobId?: string;
31970
+ warnings: string[];
31971
+ recommendations: string[];
31972
+ links: {
31973
+ [key: string]: string;
31974
+ };
31975
+ data: {
31976
+ created: number;
31977
+ updated: number;
31978
+ unchanged: number;
31979
+ failed: number;
31980
+ results: {
31981
+ path: string | null;
31982
+ title: string | null;
31983
+ /** @enum {string} */
31984
+ outcome: "created" | "updated" | "unchanged" | "failed";
31985
+ pageId?: string;
31986
+ error?: string;
31987
+ }[];
31988
+ };
31989
+ };
31990
+ };
31991
+ };
31992
+ /** @description Invalid request. */
31993
+ 400: {
31994
+ headers: {
31995
+ [name: string]: unknown;
31996
+ };
31997
+ content?: never;
31998
+ };
31999
+ /** @description Missing credentials. */
32000
+ 401: {
32001
+ headers: {
32002
+ [name: string]: unknown;
32003
+ };
32004
+ content?: never;
32005
+ };
32006
+ /** @description Missing OAuth scope or organization capability. */
32007
+ 403: {
32008
+ headers: {
32009
+ [name: string]: unknown;
32010
+ };
32011
+ content?: never;
32012
+ };
32013
+ /** @description Wiki page not found in this organization. */
32014
+ 404: {
32015
+ headers: {
32016
+ [name: string]: unknown;
32017
+ };
32018
+ content?: never;
32019
+ };
32020
+ };
32021
+ };
32022
+ get_v1_wiki_pages: {
32023
+ parameters: {
32024
+ query?: {
32025
+ organizationId?: string;
32026
+ q?: string;
32027
+ status?: "active" | "stale" | "archived";
32028
+ sort?: "newest" | "title" | "most_used";
32029
+ limit?: number;
32030
+ offset?: number;
32031
+ };
32032
+ header?: never;
32033
+ path?: never;
32034
+ cookie?: never;
32035
+ };
32036
+ requestBody?: never;
32037
+ responses: {
32038
+ /** @description Wiki pages. */
32039
+ 200: {
32040
+ headers: {
32041
+ [name: string]: unknown;
32042
+ };
32043
+ content: {
32044
+ "application/json": {
32045
+ ok: boolean;
32046
+ /** @constant */
32047
+ apiVersion: "developer_v1";
32048
+ operationId: string;
32049
+ /** @enum {string} */
32050
+ status: "accepted" | "completed" | "failed";
32051
+ jobId?: string;
32052
+ warnings: string[];
32053
+ recommendations: string[];
32054
+ links: {
32055
+ [key: string]: string;
32056
+ };
32057
+ data: {
32058
+ total: number;
32059
+ pages: {
32060
+ id: string;
32061
+ title: string;
32062
+ summary: string;
32063
+ aliases: string[];
32064
+ excerpt: string;
32065
+ /** @enum {string} */
32066
+ status: "active" | "archived";
32067
+ systemDefined: boolean;
32068
+ stale: boolean;
32069
+ appliesTo: {
32070
+ /** @enum {string} */
32071
+ type:
32072
+ | "store"
32073
+ | "marketplace"
32074
+ | "brand"
32075
+ | "category"
32076
+ | "product"
32077
+ | "supplier";
32078
+ id: string;
32079
+ name?: string;
32080
+ }[];
32081
+ updatedAt: string;
32082
+ updatedByName: string | null;
32083
+ }[];
32084
+ };
32085
+ };
32086
+ };
32087
+ };
32088
+ /** @description Invalid request. */
32089
+ 400: {
32090
+ headers: {
32091
+ [name: string]: unknown;
32092
+ };
32093
+ content?: never;
32094
+ };
32095
+ /** @description Missing credentials. */
32096
+ 401: {
32097
+ headers: {
32098
+ [name: string]: unknown;
32099
+ };
32100
+ content?: never;
32101
+ };
32102
+ /** @description Missing OAuth scope or organization capability. */
32103
+ 403: {
32104
+ headers: {
32105
+ [name: string]: unknown;
32106
+ };
32107
+ content?: never;
32108
+ };
32109
+ /** @description Wiki page not found in this organization. */
32110
+ 404: {
32111
+ headers: {
32112
+ [name: string]: unknown;
32113
+ };
32114
+ content?: never;
32115
+ };
32116
+ };
32117
+ };
32118
+ post_v1_wiki_pages: {
32119
+ parameters: {
32120
+ query?: never;
32121
+ header?: never;
32122
+ path?: never;
32123
+ cookie?: never;
32124
+ };
32125
+ requestBody: {
32126
+ content: {
32127
+ "application/json": {
32128
+ organizationId?: string;
32129
+ title: string;
32130
+ summary?: string;
32131
+ body?: string;
32132
+ aliases?: string[];
32133
+ appliesTo?: {
32134
+ /** @enum {string} */
32135
+ type:
32136
+ | "store"
32137
+ | "marketplace"
32138
+ | "brand"
32139
+ | "category"
32140
+ | "product"
32141
+ | "supplier";
32142
+ id: string;
32143
+ name?: string;
32144
+ }[];
32145
+ reviewBy?: string | null;
32146
+ changeSummary?: string;
32147
+ };
32148
+ };
32149
+ };
32150
+ responses: {
32151
+ /** @description Created wiki page. */
32152
+ 201: {
32153
+ headers: {
32154
+ [name: string]: unknown;
32155
+ };
32156
+ content: {
32157
+ "application/json": {
32158
+ ok: boolean;
32159
+ /** @constant */
32160
+ apiVersion: "developer_v1";
32161
+ operationId: string;
32162
+ /** @enum {string} */
32163
+ status: "accepted" | "completed" | "failed";
32164
+ jobId?: string;
32165
+ warnings: string[];
32166
+ recommendations: string[];
32167
+ links: {
32168
+ [key: string]: string;
32169
+ };
32170
+ data: {
32171
+ id: string;
32172
+ organizationId: string;
32173
+ title: string;
32174
+ summary: string;
32175
+ body: string;
32176
+ /** @enum {string} */
32177
+ status: "active" | "archived";
32178
+ systemDefined: boolean;
32179
+ stale: boolean;
32180
+ appliesTo: {
32181
+ /** @enum {string} */
32182
+ type:
32183
+ | "store"
32184
+ | "marketplace"
32185
+ | "brand"
32186
+ | "category"
32187
+ | "product"
32188
+ | "supplier";
32189
+ id: string;
32190
+ name?: string;
32191
+ }[];
32192
+ labels: {
32193
+ label: string;
32194
+ /** @enum {string} */
32195
+ labelType: "pref" | "alt" | "hidden";
32196
+ language: string | null;
32197
+ }[];
32198
+ revisionNumber: number;
32199
+ lastConfirmedAt: string;
32200
+ reviewBy: string | null;
32201
+ /** @enum {string} */
32202
+ indexStatus: "pending" | "indexed" | "failed";
32203
+ createdAt: string;
32204
+ updatedAt: string;
32205
+ editors: string[];
32206
+ links: {
32207
+ id: string;
32208
+ title: string;
32209
+ summary: string;
32210
+ }[];
32211
+ backlinks: {
32212
+ id: string;
32213
+ title: string;
32214
+ summary: string;
32215
+ }[];
32216
+ };
32217
+ };
32218
+ };
32219
+ };
32220
+ /** @description Invalid request. */
32221
+ 400: {
32222
+ headers: {
32223
+ [name: string]: unknown;
32224
+ };
32225
+ content?: never;
32226
+ };
32227
+ /** @description Missing credentials. */
32228
+ 401: {
32229
+ headers: {
32230
+ [name: string]: unknown;
32231
+ };
32232
+ content?: never;
32233
+ };
32234
+ /** @description Missing OAuth scope or organization capability. */
32235
+ 403: {
32236
+ headers: {
32237
+ [name: string]: unknown;
32238
+ };
32239
+ content?: never;
32240
+ };
32241
+ /** @description Wiki page not found in this organization. */
32242
+ 404: {
32243
+ headers: {
32244
+ [name: string]: unknown;
32245
+ };
32246
+ content?: never;
32247
+ };
32248
+ /** @description A title or alias is already used by another page, or the page changed since baseRevisionNumber. */
32249
+ 409: {
32250
+ headers: {
32251
+ [name: string]: unknown;
32252
+ };
32253
+ content?: never;
32254
+ };
32255
+ };
32256
+ };
32257
+ get_v1_wiki_pages_by_pageid: {
32258
+ parameters: {
32259
+ query?: {
32260
+ organizationId?: string;
32261
+ };
32262
+ header?: never;
32263
+ path: {
32264
+ pageId: string;
32265
+ };
32266
+ cookie?: never;
32267
+ };
32268
+ requestBody?: never;
32269
+ responses: {
32270
+ /** @description Wiki page. */
32271
+ 200: {
32272
+ headers: {
32273
+ [name: string]: unknown;
32274
+ };
32275
+ content: {
32276
+ "application/json": {
32277
+ ok: boolean;
32278
+ /** @constant */
32279
+ apiVersion: "developer_v1";
32280
+ operationId: string;
32281
+ /** @enum {string} */
32282
+ status: "accepted" | "completed" | "failed";
32283
+ jobId?: string;
32284
+ warnings: string[];
32285
+ recommendations: string[];
32286
+ links: {
32287
+ [key: string]: string;
32288
+ };
32289
+ data: {
32290
+ id: string;
32291
+ organizationId: string;
32292
+ title: string;
32293
+ summary: string;
32294
+ body: string;
32295
+ /** @enum {string} */
32296
+ status: "active" | "archived";
32297
+ systemDefined: boolean;
32298
+ stale: boolean;
32299
+ appliesTo: {
32300
+ /** @enum {string} */
32301
+ type:
32302
+ | "store"
32303
+ | "marketplace"
32304
+ | "brand"
32305
+ | "category"
32306
+ | "product"
32307
+ | "supplier";
32308
+ id: string;
32309
+ name?: string;
32310
+ }[];
32311
+ labels: {
32312
+ label: string;
32313
+ /** @enum {string} */
32314
+ labelType: "pref" | "alt" | "hidden";
32315
+ language: string | null;
32316
+ }[];
32317
+ revisionNumber: number;
32318
+ lastConfirmedAt: string;
32319
+ reviewBy: string | null;
32320
+ /** @enum {string} */
32321
+ indexStatus: "pending" | "indexed" | "failed";
32322
+ createdAt: string;
32323
+ updatedAt: string;
32324
+ editors: string[];
32325
+ links: {
32326
+ id: string;
32327
+ title: string;
32328
+ summary: string;
32329
+ }[];
32330
+ backlinks: {
32331
+ id: string;
32332
+ title: string;
32333
+ summary: string;
32334
+ }[];
32335
+ };
32336
+ };
32337
+ };
32338
+ };
32339
+ /** @description Invalid request. */
32340
+ 400: {
32341
+ headers: {
32342
+ [name: string]: unknown;
32343
+ };
32344
+ content?: never;
32345
+ };
32346
+ /** @description Missing credentials. */
32347
+ 401: {
32348
+ headers: {
32349
+ [name: string]: unknown;
32350
+ };
32351
+ content?: never;
32352
+ };
32353
+ /** @description Missing OAuth scope or organization capability. */
32354
+ 403: {
32355
+ headers: {
32356
+ [name: string]: unknown;
32357
+ };
32358
+ content?: never;
32359
+ };
32360
+ /** @description Wiki page not found in this organization. */
32361
+ 404: {
32362
+ headers: {
32363
+ [name: string]: unknown;
32364
+ };
32365
+ content?: never;
32366
+ };
32367
+ };
32368
+ };
32369
+ delete_v1_wiki_pages_by_pageid: {
32370
+ parameters: {
32371
+ query?: {
32372
+ organizationId?: string;
32373
+ };
32374
+ header?: never;
32375
+ path: {
32376
+ pageId: string;
32377
+ };
32378
+ cookie?: never;
32379
+ };
32380
+ requestBody?: never;
32381
+ responses: {
32382
+ /** @description Archived wiki page. */
32383
+ 200: {
32384
+ headers: {
32385
+ [name: string]: unknown;
32386
+ };
32387
+ content: {
32388
+ "application/json": {
32389
+ ok: boolean;
32390
+ /** @constant */
32391
+ apiVersion: "developer_v1";
32392
+ operationId: string;
32393
+ /** @enum {string} */
32394
+ status: "accepted" | "completed" | "failed";
32395
+ jobId?: string;
32396
+ warnings: string[];
32397
+ recommendations: string[];
32398
+ links: {
32399
+ [key: string]: string;
32400
+ };
32401
+ data: {
32402
+ id: string;
32403
+ organizationId: string;
32404
+ title: string;
32405
+ summary: string;
32406
+ body: string;
32407
+ /** @enum {string} */
32408
+ status: "active" | "archived";
32409
+ systemDefined: boolean;
32410
+ stale: boolean;
32411
+ appliesTo: {
32412
+ /** @enum {string} */
32413
+ type:
32414
+ | "store"
32415
+ | "marketplace"
32416
+ | "brand"
32417
+ | "category"
32418
+ | "product"
32419
+ | "supplier";
32420
+ id: string;
32421
+ name?: string;
32422
+ }[];
32423
+ labels: {
32424
+ label: string;
32425
+ /** @enum {string} */
32426
+ labelType: "pref" | "alt" | "hidden";
32427
+ language: string | null;
32428
+ }[];
32429
+ revisionNumber: number;
32430
+ lastConfirmedAt: string;
32431
+ reviewBy: string | null;
32432
+ /** @enum {string} */
32433
+ indexStatus: "pending" | "indexed" | "failed";
32434
+ createdAt: string;
32435
+ updatedAt: string;
32436
+ editors: string[];
32437
+ links: {
32438
+ id: string;
32439
+ title: string;
32440
+ summary: string;
32441
+ }[];
32442
+ backlinks: {
32443
+ id: string;
32444
+ title: string;
32445
+ summary: string;
32446
+ }[];
32447
+ };
32448
+ };
32449
+ };
32450
+ };
32451
+ /** @description Invalid request. */
32452
+ 400: {
32453
+ headers: {
32454
+ [name: string]: unknown;
32455
+ };
32456
+ content?: never;
32457
+ };
32458
+ /** @description Missing credentials. */
32459
+ 401: {
32460
+ headers: {
32461
+ [name: string]: unknown;
32462
+ };
32463
+ content?: never;
32464
+ };
32465
+ /** @description Missing OAuth scope or organization capability. */
32466
+ 403: {
32467
+ headers: {
32468
+ [name: string]: unknown;
32469
+ };
32470
+ content?: never;
32471
+ };
32472
+ /** @description Wiki page not found in this organization. */
32473
+ 404: {
32474
+ headers: {
32475
+ [name: string]: unknown;
32476
+ };
32477
+ content?: never;
32478
+ };
32479
+ };
32480
+ };
32481
+ patch_v1_wiki_pages_by_pageid: {
32482
+ parameters: {
32483
+ query?: never;
32484
+ header?: never;
32485
+ path: {
32486
+ pageId: string;
32487
+ };
32488
+ cookie?: never;
32489
+ };
32490
+ requestBody: {
32491
+ content: {
32492
+ "application/json": {
32493
+ organizationId?: string;
32494
+ title?: string;
32495
+ summary?: string;
32496
+ body?: string;
32497
+ aliases?: string[];
32498
+ appliesTo?: {
32499
+ /** @enum {string} */
32500
+ type:
32501
+ | "store"
32502
+ | "marketplace"
32503
+ | "brand"
32504
+ | "category"
32505
+ | "product"
32506
+ | "supplier";
32507
+ id: string;
32508
+ name?: string;
32509
+ }[];
32510
+ reviewBy?: string | null;
32511
+ changeSummary?: string;
32512
+ baseRevisionNumber?: number;
32513
+ /** @enum {string} */
32514
+ status?: "active" | "archived";
32515
+ restoreRevisionNumber?: number;
32516
+ };
32517
+ };
32518
+ };
32519
+ responses: {
32520
+ /** @description Updated wiki page. */
32521
+ 200: {
32522
+ headers: {
32523
+ [name: string]: unknown;
32524
+ };
32525
+ content: {
32526
+ "application/json": {
32527
+ ok: boolean;
32528
+ /** @constant */
32529
+ apiVersion: "developer_v1";
32530
+ operationId: string;
32531
+ /** @enum {string} */
32532
+ status: "accepted" | "completed" | "failed";
32533
+ jobId?: string;
32534
+ warnings: string[];
32535
+ recommendations: string[];
32536
+ links: {
32537
+ [key: string]: string;
32538
+ };
32539
+ data: {
32540
+ id: string;
32541
+ organizationId: string;
32542
+ title: string;
32543
+ summary: string;
32544
+ body: string;
32545
+ /** @enum {string} */
32546
+ status: "active" | "archived";
32547
+ systemDefined: boolean;
32548
+ stale: boolean;
32549
+ appliesTo: {
32550
+ /** @enum {string} */
32551
+ type:
32552
+ | "store"
32553
+ | "marketplace"
32554
+ | "brand"
32555
+ | "category"
32556
+ | "product"
32557
+ | "supplier";
32558
+ id: string;
32559
+ name?: string;
32560
+ }[];
32561
+ labels: {
32562
+ label: string;
32563
+ /** @enum {string} */
32564
+ labelType: "pref" | "alt" | "hidden";
32565
+ language: string | null;
32566
+ }[];
32567
+ revisionNumber: number;
32568
+ lastConfirmedAt: string;
32569
+ reviewBy: string | null;
32570
+ /** @enum {string} */
32571
+ indexStatus: "pending" | "indexed" | "failed";
32572
+ createdAt: string;
32573
+ updatedAt: string;
32574
+ editors: string[];
32575
+ links: {
32576
+ id: string;
32577
+ title: string;
32578
+ summary: string;
32579
+ }[];
32580
+ backlinks: {
32581
+ id: string;
32582
+ title: string;
32583
+ summary: string;
32584
+ }[];
32585
+ };
32586
+ };
32587
+ };
32588
+ };
32589
+ /** @description Invalid request. */
32590
+ 400: {
32591
+ headers: {
32592
+ [name: string]: unknown;
32593
+ };
32594
+ content?: never;
32595
+ };
32596
+ /** @description Missing credentials. */
32597
+ 401: {
32598
+ headers: {
32599
+ [name: string]: unknown;
32600
+ };
32601
+ content?: never;
32602
+ };
32603
+ /** @description Missing OAuth scope or organization capability. */
32604
+ 403: {
32605
+ headers: {
32606
+ [name: string]: unknown;
32607
+ };
32608
+ content?: never;
32609
+ };
32610
+ /** @description Wiki page not found in this organization. */
32611
+ 404: {
32612
+ headers: {
32613
+ [name: string]: unknown;
32614
+ };
32615
+ content?: never;
32616
+ };
32617
+ /** @description A title or alias is already used by another page, or the page changed since baseRevisionNumber. */
32618
+ 409: {
32619
+ headers: {
32620
+ [name: string]: unknown;
32621
+ };
32622
+ content?: never;
32623
+ };
32624
+ };
32625
+ };
32626
+ get_v1_wiki_pages_by_pageid_revisions: {
32627
+ parameters: {
32628
+ query?: {
32629
+ organizationId?: string;
32630
+ };
32631
+ header?: never;
32632
+ path: {
32633
+ pageId: string;
32634
+ };
32635
+ cookie?: never;
32636
+ };
32637
+ requestBody?: never;
32638
+ responses: {
32639
+ /** @description Revisions. */
32640
+ 200: {
32641
+ headers: {
32642
+ [name: string]: unknown;
32643
+ };
32644
+ content: {
32645
+ "application/json": {
32646
+ ok: boolean;
32647
+ /** @constant */
32648
+ apiVersion: "developer_v1";
32649
+ operationId: string;
32650
+ /** @enum {string} */
32651
+ status: "accepted" | "completed" | "failed";
32652
+ jobId?: string;
32653
+ warnings: string[];
32654
+ recommendations: string[];
32655
+ links: {
32656
+ [key: string]: string;
32657
+ };
32658
+ data: {
32659
+ revisions: {
32660
+ revisionNumber: number;
32661
+ title: string;
32662
+ summary: string;
32663
+ body: string;
32664
+ /** @enum {string} */
32665
+ originType:
32666
+ | "person"
32667
+ | "agent"
32668
+ | "import"
32669
+ | "bootstrap"
32670
+ | "system";
32671
+ changeSummary: string | null;
32672
+ createdByName: string | null;
32673
+ createdAt: string;
32674
+ }[];
32675
+ };
32676
+ };
32677
+ };
32678
+ };
32679
+ /** @description Invalid request. */
32680
+ 400: {
32681
+ headers: {
32682
+ [name: string]: unknown;
32683
+ };
32684
+ content?: never;
32685
+ };
32686
+ /** @description Missing credentials. */
32687
+ 401: {
32688
+ headers: {
32689
+ [name: string]: unknown;
32690
+ };
32691
+ content?: never;
32692
+ };
32693
+ /** @description Missing OAuth scope or organization capability. */
32694
+ 403: {
32695
+ headers: {
32696
+ [name: string]: unknown;
32697
+ };
32698
+ content?: never;
32699
+ };
32700
+ /** @description Wiki page not found in this organization. */
32701
+ 404: {
32702
+ headers: {
32703
+ [name: string]: unknown;
32704
+ };
32705
+ content?: never;
32706
+ };
32707
+ };
32708
+ };
32709
+ post_v1_wiki_search: {
32710
+ parameters: {
32711
+ query?: never;
32712
+ header?: never;
32713
+ path?: never;
32714
+ cookie?: never;
32715
+ };
32716
+ requestBody: {
32717
+ content: {
32718
+ "application/json": {
32719
+ organizationId?: string;
32720
+ query: string;
32721
+ topK?: number;
32722
+ };
32723
+ };
32724
+ };
32725
+ responses: {
32726
+ /** @description Matching fragments. */
32727
+ 200: {
32728
+ headers: {
32729
+ [name: string]: unknown;
32730
+ };
32731
+ content: {
32732
+ "application/json": {
32733
+ ok: boolean;
32734
+ /** @constant */
32735
+ apiVersion: "developer_v1";
32736
+ operationId: string;
32737
+ /** @enum {string} */
32738
+ status: "accepted" | "completed" | "failed";
32739
+ jobId?: string;
32740
+ warnings: string[];
32741
+ recommendations: string[];
32742
+ links: {
32743
+ [key: string]: string;
32744
+ };
32745
+ data: {
32746
+ query: string;
32747
+ count: number;
32748
+ hits: {
32749
+ pageId: string;
32750
+ title: string;
32751
+ summary: string;
32752
+ chunkId: string;
32753
+ chunkIndex: number;
32754
+ revisionNumber: number;
32755
+ snippet: string;
32756
+ score: number;
32757
+ matchedBy: ("label" | "text" | "meaning" | "graph" | "link")[];
32758
+ stale: boolean;
32759
+ lastConfirmedAt: string | null;
32760
+ }[];
32761
+ retrieval: {
32762
+ graph: boolean;
32763
+ meaning: boolean;
32764
+ degraded: boolean;
32765
+ };
32766
+ };
32767
+ };
32768
+ };
32769
+ };
32770
+ /** @description Invalid request. */
32771
+ 400: {
32772
+ headers: {
32773
+ [name: string]: unknown;
32774
+ };
32775
+ content?: never;
32776
+ };
32777
+ /** @description Missing credentials. */
32778
+ 401: {
32779
+ headers: {
32780
+ [name: string]: unknown;
32781
+ };
32782
+ content?: never;
32783
+ };
32784
+ /** @description Missing OAuth scope or organization capability. */
32785
+ 403: {
32786
+ headers: {
32787
+ [name: string]: unknown;
32788
+ };
32789
+ content?: never;
32790
+ };
32791
+ /** @description Wiki page not found in this organization. */
32792
+ 404: {
32793
+ headers: {
32794
+ [name: string]: unknown;
32795
+ };
32796
+ content?: never;
32797
+ };
32798
+ };
32799
+ };
30729
32800
  get_v1_zalora_import: {
30730
32801
  parameters: {
30731
32802
  query: {
@@ -33043,7 +35114,7 @@ declare class AgentsGeneralClient {
33043
35114
  *
33044
35115
  * Run the general Omni agent and wait until it completes, pauses for approval, or fails. Requires `agents:invoke`.
33045
35116
 
33046
- 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.
35117
+ 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.
33047
35118
  *
33048
35119
  * `POST /api/v1/agents/general/invoke`
33049
35120
  */
@@ -33070,26 +35141,49 @@ declare class AgentsClient {
33070
35141
  readonly general: AgentsGeneralClient;
33071
35142
  constructor(_http: OmniHttp);
33072
35143
  /**
33073
- * Send a message to an agent
35144
+ * Invoke a saved agent
33074
35145
  *
33075
- * Message the exact built-in or custom agent in the URL, using its saved model, instructions, tools, permissions and Programmatic starting mode.
35146
+ * 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.
33076
35147
 
33077
- ### Authentication
33078
- 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`.
35148
+ 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.
35149
+
35150
+ 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,
35151
+ *
35152
+ * `POST /api/v1/agents/{agentId}/invoke`
35153
+ */
35154
+ invoke(request: OperationPath<operations["post_v1_agents_by_agentid_invoke"]> & OperationBody<operations["post_v1_agents_by_agentid_invoke"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_agents_by_agentid_invoke"]>>;
35155
+ /**
35156
+ * Invoke a saved agent (alias)
35157
+ *
35158
+ * Alias of /agents/{agentId}/invoke with the identical request and response. Prefer /invoke.
35159
+
35160
+ 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.
33079
35161
 
33080
- ### Conversation and execution
33081
- - The same caller, agent and `clientThreadKey` continue one conversation. Different callers, agents and organizations are isolated.
33082
- - No model, prompt or tool overrides are accepted.
33083
- - `wait=false` queues durable work and returns 202; `wait=true` returns the final reply or pending approvals.
33084
- - Send `decisions` with the same `cli
35162
+ 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.
35163
+
35164
+ 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
33085
35165
  *
33086
35166
  * `POST /api/v1/agents/{agentId}/messages`
33087
35167
  */
33088
35168
  messages(request: OperationPath<operations["post_v1_agents_by_agentid_messages"]> & OperationBody<operations["post_v1_agents_by_agentid_messages"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_agents_by_agentid_messages"]>>;
33089
35169
  /**
33090
- * Get an agent message run
35170
+ * Start a saved agent run
33091
35171
  *
33092
- * 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.
35172
+ * Queue durable execution using the identical invocation contract. Poll Location, honoring Retry-After.
35173
+
35174
+ 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.
35175
+
35176
+ 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.
35177
+
35178
+ 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
35179
+ *
35180
+ * `POST /api/v1/agents/{agentId}/runs`
35181
+ */
35182
+ runs(request: OperationPath<operations["post_v1_agents_by_agentid_runs"]> & OperationBody<operations["post_v1_agents_by_agentid_runs"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_agents_by_agentid_runs"]>>;
35183
+ /**
35184
+ * Get a saved agent run
35185
+ *
35186
+ * Read the canonical run resource. Organization, caller, credential and exact agent access are checked again. Requires agents:invoke.
33093
35187
  *
33094
35188
  * `GET /api/v1/agents/{agentId}/runs/{runId}`
33095
35189
  */
@@ -33131,7 +35225,11 @@ declare class AnalyticsClient {
33131
35225
  /**
33132
35226
  * Get Order Analytics
33133
35227
  *
33134
- * 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`.
35228
+ * 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.
35229
+
35230
+ ### Order attribution
35231
+
35232
+ `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`.
33135
35233
 
33136
35234
  Amounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.
33137
35235
  *
@@ -33761,7 +35859,7 @@ declare class DocumentsClient {
33761
35859
  *
33762
35860
  * Upload one file to the knowledge base as multipart/form-data. Requires `documents:write`.
33763
35861
 
33764
- Accepted: 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.
35862
+ 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.
33765
35863
  *
33766
35864
  * `POST /api/v1/documents`
33767
35865
  */
@@ -33777,6 +35875,62 @@ declare class DocumentsClient {
33777
35875
  */
33778
35876
  get(request: OperationPath<operations["get_v1_documents_by_documentid"]> & OperationQuery<operations["get_v1_documents_by_documentid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_documents_by_documentid"]>>;
33779
35877
  }
35878
+ declare class EmailClient {
35879
+ protected readonly _http: OmniHttp;
35880
+ constructor(_http: OmniHttp);
35881
+ /**
35882
+ * List Email Accounts
35883
+ *
35884
+ * Your connected Gmail and Outlook accounts, default first. Pass an account's `connectionId` to the other email endpoints to choose it.
35885
+
35886
+ ### Authorization
35887
+
35888
+ 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.
35889
+ *
35890
+ * `GET /api/v1/email/accounts`
35891
+ */
35892
+ listAccounts(request?: OperationQuery<operations["get_v1_email_accounts"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_email_accounts"]>>;
35893
+ /**
35894
+ * Create Email Draft
35895
+ *
35896
+ * 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.
35897
+
35898
+ 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.
35899
+
35900
+ ### Authorization
35901
+
35902
+ 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.
35903
+ *
35904
+ * `POST /api/v1/email/drafts`
35905
+ */
35906
+ createDraft(request: OperationBody<operations["post_v1_email_drafts"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_email_drafts"]>>;
35907
+ /**
35908
+ * Get Email Message
35909
+ *
35910
+ * 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.
35911
+
35912
+ ### Authorization
35913
+
35914
+ 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.
35915
+ *
35916
+ * `GET /api/v1/email/messages/{messageId}`
35917
+ */
35918
+ getMessage(request: OperationPath<operations["get_v1_email_messages_by_messageid"]> & OperationQuery<operations["get_v1_email_messages_by_messageid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_email_messages_by_messageid"]>>;
35919
+ /**
35920
+ * Search Emails
35921
+ *
35922
+ * 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.
35923
+
35924
+ 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.
35925
+
35926
+ ### Authorization
35927
+
35928
+ 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.
35929
+ *
35930
+ * `GET /api/v1/email/search`
35931
+ */
35932
+ search(request?: OperationQuery<operations["get_v1_email_search"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_email_search"]>>;
35933
+ }
33780
35934
  declare class EvaluateClient {
33781
35935
  protected readonly _http: OmniHttp;
33782
35936
  constructor(_http: OmniHttp);
@@ -35302,6 +37456,92 @@ declare class WebhooksClient {
35302
37456
  */
35303
37457
  create(request: OperationBody<operations["post_v1_webhooks"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_webhooks"]>>;
35304
37458
  }
37459
+ declare class WikiClient {
37460
+ protected readonly _http: OmniHttp;
37461
+ constructor(_http: OmniHttp);
37462
+ /**
37463
+ * Export Wiki
37464
+ *
37465
+ * 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.
37466
+ *
37467
+ * `GET /api/v1/wiki/export`
37468
+ */
37469
+ exportPages(request?: OperationQuery<operations["get_v1_wiki_export"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_wiki_export"]>>;
37470
+ /**
37471
+ * Import Wiki
37472
+ *
37473
+ * 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.
37474
+
37475
+ Definitions from older exports are imported into the page body.
37476
+
37477
+ 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.
37478
+ *
37479
+ * `POST /api/v1/wiki/import`
37480
+ */
37481
+ importPages(request: OperationBody<operations["post_v1_wiki_import"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_wiki_import"]>>;
37482
+ /**
37483
+ * List Wiki Pages
37484
+ *
37485
+ * 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.
37486
+ *
37487
+ * `GET /api/v1/wiki/pages`
37488
+ */
37489
+ listPages(request?: OperationQuery<operations["get_v1_wiki_pages"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_wiki_pages"]>>;
37490
+ /**
37491
+ * Create Wiki Page
37492
+ *
37493
+ * Create a wiki page. Requires documents:write. The page is saved directly; the approval card applies only to changes an agent proposes in chat.
37494
+
37495
+ 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.
37496
+ *
37497
+ * `POST /api/v1/wiki/pages`
37498
+ */
37499
+ createPage(request: OperationBody<operations["post_v1_wiki_pages"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_wiki_pages"]>>;
37500
+ /**
37501
+ * Archive Wiki Page
37502
+ *
37503
+ * 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.
37504
+ *
37505
+ * `DELETE /api/v1/wiki/pages/{pageId}`
37506
+ */
37507
+ archivePage(request: OperationPath<operations["delete_v1_wiki_pages_by_pageid"]> & OperationQuery<operations["delete_v1_wiki_pages_by_pageid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["delete_v1_wiki_pages_by_pageid"]>>;
37508
+ /**
37509
+ * Get Wiki Page
37510
+ *
37511
+ * Read one page with its body, labels, linked pages and pages that link to it. Requires documents:read.
37512
+ *
37513
+ * `GET /api/v1/wiki/pages/{pageId}`
37514
+ */
37515
+ getPage(request: OperationPath<operations["get_v1_wiki_pages_by_pageid"]> & OperationQuery<operations["get_v1_wiki_pages_by_pageid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_wiki_pages_by_pageid"]>>;
37516
+ /**
37517
+ * Update Wiki Page
37518
+ *
37519
+ * Save a new revision. Requires documents:write. Send only the fields that change; aliases and appliesTo replace the existing lists.
37520
+
37521
+ 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.
37522
+ *
37523
+ * `PATCH /api/v1/wiki/pages/{pageId}`
37524
+ */
37525
+ updatePage(request: OperationPath<operations["patch_v1_wiki_pages_by_pageid"]> & OperationBody<operations["patch_v1_wiki_pages_by_pageid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["patch_v1_wiki_pages_by_pageid"]>>;
37526
+ /**
37527
+ * List Wiki Page Revisions
37528
+ *
37529
+ * Every saved revision of a page, newest first, with author, origin and change summary. Requires documents:read.
37530
+ *
37531
+ * `GET /api/v1/wiki/pages/{pageId}/revisions`
37532
+ */
37533
+ listRevisions(request: OperationPath<operations["get_v1_wiki_pages_by_pageid_revisions"]> & OperationQuery<operations["get_v1_wiki_pages_by_pageid_revisions"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_wiki_pages_by_pageid_revisions"]>>;
37534
+ /**
37535
+ * Search Wiki
37536
+ *
37537
+ * Search the wiki and return the best-matching fragments, the same search agents use. Requires documents:read.
37538
+
37539
+ 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.
37540
+ *
37541
+ * `POST /api/v1/wiki/search`
37542
+ */
37543
+ search(request: OperationBody<operations["post_v1_wiki_search"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_wiki_search"]>>;
37544
+ }
35305
37545
  declare class ZaloraClient {
35306
37546
  protected readonly _http: OmniHttp;
35307
37547
  constructor(_http: OmniHttp);
@@ -35346,6 +37586,7 @@ declare class OmniGeneratedClient {
35346
37586
  readonly compare: CompareClient;
35347
37587
  readonly directory: DirectoryClient;
35348
37588
  readonly documents: DocumentsClient;
37589
+ readonly email: EmailClient;
35349
37590
  readonly evaluate: EvaluateClient;
35350
37591
  readonly feed: FeedClient;
35351
37592
  readonly followUps: FollowUpsClient;
@@ -35373,6 +37614,7 @@ declare class OmniGeneratedClient {
35373
37614
  readonly ucp: UcpClient;
35374
37615
  readonly webhookEvents: WebhookEventsClient;
35375
37616
  readonly webhooks: WebhooksClient;
37617
+ readonly wiki: WikiClient;
35376
37618
  readonly zalora: ZaloraClient;
35377
37619
  constructor(_http: OmniHttp);
35378
37620
  }
@@ -35391,6 +37633,7 @@ type OmniResources = {
35391
37633
  compare: CompareClient;
35392
37634
  directory: DirectoryClient;
35393
37635
  documents: DocumentsClient;
37636
+ email: EmailClient;
35394
37637
  evaluate: EvaluateClient;
35395
37638
  feed: FeedClient;
35396
37639
  followUps: FollowUpsClient;
@@ -35418,6 +37661,7 @@ type OmniResources = {
35418
37661
  ucp: UcpClient;
35419
37662
  webhookEvents: WebhookEventsClient;
35420
37663
  webhooks: WebhooksClient;
37664
+ wiki: WikiClient;
35421
37665
  zalora: ZaloraClient;
35422
37666
  };
35423
37667
 
@@ -35462,7 +37706,7 @@ declare function constructEvent(payload: string | Uint8Array, headers: WebhookHe
35462
37706
  toleranceInSeconds?: number;
35463
37707
  }): Promise<ConstructedWebhookEvent>;
35464
37708
 
35465
- declare const SDK_VERSION = "0.25.0";
37709
+ declare const SDK_VERSION = "0.27.0";
35466
37710
 
35467
37711
  type ProductCreatedWebhookEvent = components["schemas"]["ProductCreatedWebhookEvent"];
35468
37712
  type ProductUpdatedWebhookEvent = components["schemas"]["ProductUpdatedWebhookEvent"];