@omni-commerce/sdk 0.22.0 → 0.23.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
@@ -158,7 +158,7 @@ interface paths {
158
158
  * Manage customer-owned purchase offers
159
159
  * @description ### Operations
160
160
  *
161
- * create: offers[] (1–5), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1–20). complete: sessionId, paymentProof, and buyer approval of cartVersion, totalAmount and currency. pay: sessionId and the same exact approval; returns checkoutUrl for Stripe-hosted card entry.
161
+ * create: offers[] (1–5), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1–20). complete: sessionId, paymentProof, and buyer approval of cartVersion, totalAmount and currency. pay: sessionId and the same exact approval; returns checkoutUrl for Stripe, Qashier or HitPay hosted payment.
162
162
  *
163
163
  * ### Results and safeguards
164
164
  *
@@ -166,7 +166,7 @@ interface paths {
166
166
  *
167
167
  * ### Payment
168
168
  *
169
- * Completion reuses the existing Stripe ACP or x402 rail. Hosted card checkout requires this organization's seller Stripe key and a public HTTPS webhook destination; signed Stripe events and a one-shot durable deadline use the same completion service. The page collects an address within the quoted country. Indeterminate confirmation remains payment_pending and blocks a new payment; x402 uncertainty requires merchant reconciliation. Direct creation honors configured bot verification. Payment completion does not book a carrier or establish delivery.
169
+ * Completion uses the configured Stripe ACP, x402, Qashier or HitPay rail. Qashier uses authenticated server-side receipts and signed webhooks with a durable expiry deadline. PayNow is available through Qashier or HitPay when enabled in the merchant account; no bank statement import is required. Qashier and HitPay require a full delivery address before payment. Hosted card checkout requires this organization's seller Stripe key and a public HTTPS webhook destination; signed Stripe events and a one-shot durable deadline use the same completion service. The page collects an address within the quoted country. Indeterminate confirmation remains payment_pending and blocks a new payment; x402 uncertainty requires merchant reconciliation. Direct creation honors configured bot verification. Payment completion does not book a carrier or establish delivery.
170
170
  *
171
171
  * ### Signed offers and buyer agents
172
172
  *
@@ -179,6 +179,55 @@ interface paths {
179
179
  patch?: never;
180
180
  trace?: never;
181
181
  };
182
+ "/api/v1/agents/{agentId}/messages": {
183
+ parameters: {
184
+ query?: never;
185
+ header?: never;
186
+ path?: never;
187
+ cookie?: never;
188
+ };
189
+ get?: never;
190
+ put?: never;
191
+ /**
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.
194
+ *
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`.
197
+ *
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.
203
+ */
204
+ post: operations["post_v1_agents_by_agentid_messages"];
205
+ delete?: never;
206
+ options?: never;
207
+ head?: never;
208
+ patch?: never;
209
+ trace?: never;
210
+ };
211
+ "/api/v1/agents/{agentId}/runs/{runId}": {
212
+ parameters: {
213
+ query?: never;
214
+ header?: never;
215
+ path?: never;
216
+ cookie?: never;
217
+ };
218
+ /**
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.
221
+ */
222
+ get: operations["get_v1_agents_by_agentid_runs_by_runid"];
223
+ put?: never;
224
+ post?: never;
225
+ delete?: never;
226
+ options?: never;
227
+ head?: never;
228
+ patch?: never;
229
+ trace?: never;
230
+ };
182
231
  "/api/v1/agents/general/invoke": {
183
232
  parameters: {
184
233
  query?: never;
@@ -740,6 +789,8 @@ interface paths {
740
789
  * Get Campaign Analytics
741
790
  * @description Read the same imported-order campaign analytics as the application. Monetary totals are partitioned by currency. Optional analyticsWindow selects one campaign window; voucher utilisation limitations are explicit.
742
791
  *
792
+ * ### Authorization
793
+ *
743
794
  * Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
744
795
  */
745
796
  get: operations["get_v1_campaigns_by_campaignid_analytics"];
@@ -762,6 +813,8 @@ interface paths {
762
813
  * Get Campaign Notifications
763
814
  * @description Read the executing actor's campaign notification preference.
764
815
  *
816
+ * ### Authorization
817
+ *
765
818
  * Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
766
819
  */
767
820
  get: operations["get_v1_campaigns_by_campaignid_notifications"];
@@ -769,6 +822,8 @@ interface paths {
769
822
  * Set Campaign Notifications
770
823
  * @description Set only the executing actor's campaign notification preference. Does not change campaign delivery or other members' preferences.
771
824
  *
825
+ * ### Authorization
826
+ *
772
827
  * Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
773
828
  */
774
829
  put: operations["put_v1_campaigns_by_campaignid_notifications"];
@@ -790,6 +845,8 @@ interface paths {
790
845
  * List Campaign Offers
791
846
  * @description Filter and page the canonical campaign plan or pending live proposal, with the same attention rules as the campaign editor.
792
847
  *
848
+ * ### Authorization
849
+ *
793
850
  * Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
794
851
  */
795
852
  get: operations["get_v1_campaigns_by_campaignid_offers"];
@@ -814,6 +871,8 @@ interface paths {
814
871
  * Act on Campaigns
815
872
  * @description Apply one action to 1–20 reviewed targets. Approve, run, approve_and_run, end, resume, retry, approve_change, discard_change, archive, restore or delete. Requires each expectedRevision and the pending version for live-change decisions. Named-approver and current role/store checks remain enforced. Duplicates execute once; partial failures remain explicit. Starting queues durable delivery; inspect campaign executions to verify marketplace outcomes.
816
873
  *
874
+ * ### Authorization
875
+ *
817
876
  * Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
818
877
  */
819
878
  post: operations["post_v1_campaigns_actions"];
@@ -876,6 +935,8 @@ interface paths {
876
935
  * Import Campaign Workbooks
877
936
  * @description Import 1–10 uploaded Excel document IDs. Preview defaults to true; set preview=false to save. Re-upload one document with campaignId to update a campaign. To apply a running campaign immediately, use applyChanges=true with the reviewed expectedRevision and expectedPendingVersion (null when none); only the named approver with publish permission may apply. Changed values and qualifying SKU removals use canonical marketplace validation and durable sync. Requires documents:read in addition to promotions:write. No browser session is required.
878
937
  *
938
+ * ### Authorization
939
+ *
879
940
  * Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
880
941
  */
881
942
  post: operations["post_v1_campaigns_import"];
@@ -918,6 +979,8 @@ interface paths {
918
979
  * Resolve Campaign Promotion Selection
919
980
  * @description Read 1–50 eligible draft promotions as campaign offers without creating or publishing promotions. Exact organization/store ownership and existing campaign links are checked.
920
981
  *
982
+ * ### Authorization
983
+ *
921
984
  * Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
922
985
  */
923
986
  post: operations["post_v1_campaigns_promotion_options"];
@@ -940,6 +1003,8 @@ interface paths {
940
1003
  * Validate Campaigns
941
1004
  * @description Read-only preflight of 1–10 saved campaign IDs or proposed plans. Uses the same readiness, connected-store and offer validation as approval. shiftToNow returns a proposed shifted plan; syncMode=campaign_start selects Full sync. Neither option saves or publishes. Save the returned plan with the reviewed revision before approve_and_run. Current marketplace delivery is separate execution evidence.
942
1005
  *
1006
+ * ### Authorization
1007
+ *
943
1008
  * Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
944
1009
  */
945
1010
  post: operations["post_v1_campaigns_validate"];
@@ -986,7 +1051,13 @@ interface paths {
986
1051
  put?: never;
987
1052
  /**
988
1053
  * Start Catalog Operation
989
- * @description Durable bulk price/cost updates for 1–2000 products or variants. Requires catalog:write. Identical duplicates collapse in requested order; conflicting duplicates fail. An idempotencyKey freezes the original targets and versions. Reusing it with changed input returns 409. expectedUpdatedAt guards reviewed values. Catalog cost never syncs to marketplaces. syncToMarketplaces queues existing canonical marketplace services for every applicable connected listing. A failed target does not stop other targets. The operation continues after the caller disconnects. Read aggregate status, then page failures through bulk.results. Optional sessionId links progress to the initiating user's existing session.
1054
+ * @description ### Scope
1055
+ *
1056
+ * Durable bulk price/cost updates for 1–2000 products or variants. Requires catalog:write.
1057
+ *
1058
+ * ### Consistency and progress
1059
+ *
1060
+ * Identical duplicates collapse in requested order; conflicting duplicates fail. An idempotencyKey freezes the original targets and versions. Reusing it with changed input returns 409. expectedUpdatedAt guards reviewed values. Catalog cost never syncs to marketplaces. syncToMarketplaces queues existing canonical marketplace services for every applicable connected listing. A failed target does not stop other targets. The operation continues after the caller disconnects. Read aggregate status, then page failures through bulk.results. Optional sessionId links progress to the initiating user's existing session.
990
1061
  */
991
1062
  post: operations["post_v1_catalog_operations"];
992
1063
  delete?: never;
@@ -1035,6 +1106,26 @@ interface paths {
1035
1106
  patch?: never;
1036
1107
  trace?: never;
1037
1108
  };
1109
+ "/api/v1/catalog/products": {
1110
+ parameters: {
1111
+ query?: never;
1112
+ header?: never;
1113
+ path?: never;
1114
+ cookie?: never;
1115
+ };
1116
+ /**
1117
+ * Get Public Product Details
1118
+ * @description Read the same stored public product details as /catalog/{productId}, including product capabilities, FAQs, localizations, citations, variants, recorded prices, stock and marketplace offers. No account or AI generation. Missing products are explicit per-target failures.
1119
+ */
1120
+ get: operations["get_v1_catalog_products"];
1121
+ put?: never;
1122
+ post?: never;
1123
+ delete?: never;
1124
+ options?: never;
1125
+ head?: never;
1126
+ patch?: never;
1127
+ trace?: never;
1128
+ };
1038
1129
  "/api/v1/catalog/query": {
1039
1130
  parameters: {
1040
1131
  query?: never;
@@ -1046,7 +1137,9 @@ interface paths {
1046
1137
  put?: never;
1047
1138
  /**
1048
1139
  * Query Catalog
1049
- * @description Filter and project simple products and variants on the server. Requires catalog:read. Defaults to active sellable SKUs, excluding parent containers. costComparison=above_price compares known cost in each product's catalog currency using valid recorded conversions; unknown costs or unavailable conversions do not match. Fields bound the response. Maximum 500 rows per page. Omit counts after the first page with includeCount=false. No SQL input is accepted.
1140
+ * @description Filter and project simple products and variants on the server. Requires catalog:read. Defaults to active sellable SKUs, excluding parent containers. costComparison=above_price compares known cost in each product's catalog currency using valid recorded conversions; unknown costs or unavailable conversions do not match.
1141
+ *
1142
+ * Fields bound the response. Maximum 500 rows per page. Omit counts after the first page with includeCount=false. No SQL input is accepted.
1050
1143
  */
1051
1144
  post: operations["post_v1_catalog_query"];
1052
1145
  delete?: never;
@@ -1143,6 +1236,30 @@ interface paths {
1143
1236
  patch?: never;
1144
1237
  trace?: never;
1145
1238
  };
1239
+ "/api/v1/checkout-sessions/{sessionId}/pay": {
1240
+ parameters: {
1241
+ query?: never;
1242
+ header?: never;
1243
+ path?: never;
1244
+ cookie?: never;
1245
+ };
1246
+ get?: never;
1247
+ put?: never;
1248
+ /**
1249
+ * Start payment for an approved checkout offer
1250
+ * @description Requires checkout:write.
1251
+ *
1252
+ * Starts seller Stripe, Qashier or HitPay hosted checkout. Buyer approval must match the current cart version, total and currency. Qashier and HitPay require a full delivery address before payment.
1253
+ *
1254
+ * Qashier and HitPay support PayNow in Singapore when enabled for the merchant. Payment is confirmed using signed webhooks and authenticated server-side receipts. Closing the buyer page does not cancel or complete payment.
1255
+ */
1256
+ post: operations["post_v1_checkout_sessions_by_sessionid_pay"];
1257
+ delete?: never;
1258
+ options?: never;
1259
+ head?: never;
1260
+ patch?: never;
1261
+ trace?: never;
1262
+ };
1146
1263
  "/api/v1/commerce/jobs/await": {
1147
1264
  parameters: {
1148
1265
  query?: never;
@@ -1210,7 +1327,9 @@ interface paths {
1210
1327
  put?: never;
1211
1328
  /**
1212
1329
  * Start Commerce Verification
1213
- * @description Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read. Returns immediately with operationIds. Read bulk.status and bulk.results; a client timeout does not discard work. Fulfillment correlations continue to use commerce.verifyState.
1330
+ * @description Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read.
1331
+ *
1332
+ * Returns immediately with operationIds. Read bulk.status and bulk.results; a client timeout does not discard work. Fulfillment correlations continue to use commerce.verifyState.
1214
1333
  */
1215
1334
  post: operations["post_v1_commerce_state_verify_jobs"];
1216
1335
  delete?: never;
@@ -1290,7 +1409,9 @@ interface paths {
1290
1409
  };
1291
1410
  /**
1292
1411
  * Get Document
1293
- * @description Read one knowledge base document and its indexing status. Requires `documents:read`. Set includeDownloadUrl=true for a private file URL valid for five minutes, suitable for SDK file downloads. URLs are scoped to the authenticated organization and are not returned for bank statements. Responses must not be cached.
1412
+ * @description Read one knowledge base document and its indexing status. Requires `documents:read`.
1413
+ *
1414
+ * Set includeDownloadUrl=true for a private file URL valid for five minutes, suitable for SDK file downloads. URLs are scoped to the authenticated organization and are not returned for bank statements. Responses must not be cached.
1294
1415
  */
1295
1416
  get: operations["get_v1_documents_by_documentid"];
1296
1417
  put?: never;
@@ -1341,6 +1462,70 @@ interface paths {
1341
1462
  patch?: never;
1342
1463
  trace?: never;
1343
1464
  };
1465
+ "/api/v1/follow-ups": {
1466
+ parameters: {
1467
+ query?: never;
1468
+ header?: never;
1469
+ path?: never;
1470
+ cookie?: never;
1471
+ };
1472
+ /**
1473
+ * List Follow-ups
1474
+ * @description Your follow-ups on every conversation, plus every follow-up on `threadId` (whoever left it) when you can open that conversation. Waiting follow-ups come first.
1475
+ *
1476
+ * `state` is `waiting`, `fired`, `expired` (it waited past `expiresAt`), `canceled` or `failed` (`failure` says why: its owner lost access, or the conversation was stopped or its last run failed).
1477
+ *
1478
+ * ### Authorization
1479
+ *
1480
+ * Requires `agents:invoke`.
1481
+ */
1482
+ get: operations["get_v1_follow_ups"];
1483
+ put?: never;
1484
+ /**
1485
+ * Create Follow-up
1486
+ * @description Leave a one-shot follow-up on an assistant conversation you can open. Give exactly one of `at` (ISO 8601 with a timezone), `after` (a duration such as 90m, 4h, 14d or 2w) or `eventType` with an optional CEL `match` over `event` (the event's condition fields, as in AOP event triggers).
1487
+ *
1488
+ * When it fires it continues `threadId` from `note` as you (`then=resume`, the default) or only emails you (`then=notify`). It never interrupts a run in progress: the continuation waits in the conversation's queue. A stopped conversation, or one whose last run failed, is not continued.
1489
+ *
1490
+ * An event follow-up waits `expires` (10d by default) for its event; a timed one may be at most a year ahead.
1491
+ *
1492
+ * ### Authorization
1493
+ *
1494
+ * Requires `agents:invoke` with a person's credential (API key or session); OAuth client credentials act for no one and are refused. The follow-up runs as that person.
1495
+ */
1496
+ post: operations["post_v1_follow_ups"];
1497
+ delete?: never;
1498
+ options?: never;
1499
+ head?: never;
1500
+ patch?: never;
1501
+ trace?: never;
1502
+ };
1503
+ "/api/v1/follow-ups/cancel": {
1504
+ parameters: {
1505
+ query?: never;
1506
+ header?: never;
1507
+ path?: never;
1508
+ cookie?: never;
1509
+ };
1510
+ get?: never;
1511
+ put?: never;
1512
+ /**
1513
+ * Cancel Follow-ups
1514
+ * @description Cancel your follow-ups that have not fired, so they never fire. One that already fired, expired or was canceled reports why per id; another person's follow-up reads as not found.
1515
+ *
1516
+ * Returns `followUpIds`, `succeededCount`, `failedCount` and ordered `results`; `ok` is true only when every id was canceled.
1517
+ *
1518
+ * ### Authorization
1519
+ *
1520
+ * Requires `agents:invoke`.
1521
+ */
1522
+ post: operations["post_v1_follow_ups_cancel"];
1523
+ delete?: never;
1524
+ options?: never;
1525
+ head?: never;
1526
+ patch?: never;
1527
+ trace?: never;
1528
+ };
1344
1529
  "/api/v1/images/ghost-mannequin": {
1345
1530
  parameters: {
1346
1531
  query?: never;
@@ -1938,7 +2123,13 @@ interface paths {
1938
2123
  * Create Price Book Rule
1939
2124
  * @description Create a marketplace price book rule for a platform (optional store and country). Does not change Omni product prices. Requires `price_books:write`.
1940
2125
  *
2126
+ * ### Pricing
2127
+ *
1941
2128
  * `expression` is the buyer formula and replaces markup percent. `price` in that formula is the catalog price, not cost price. Without an expression, `marginValue` is the markup percent.
2129
+ *
2130
+ * ### Direct checkout
2131
+ *
2132
+ * The Direct checkout channel (`agentic_checkout`) applies immediately to direct checkout and public headline prices, defaults to catalog price with zero markup when no enabled rule matches, and requires null/omitted storeId and country. Marketplace rules only price their own offers; Direct checkout rules require no marketplace sync.
1942
2133
  */
1943
2134
  post: operations["post_v1_price_books"];
1944
2135
  delete?: never;
@@ -2342,6 +2533,50 @@ interface paths {
2342
2533
  patch?: never;
2343
2534
  trace?: never;
2344
2535
  };
2536
+ "/api/v1/products/bulk-update": {
2537
+ parameters: {
2538
+ query?: never;
2539
+ header?: never;
2540
+ path?: never;
2541
+ cookie?: never;
2542
+ };
2543
+ /**
2544
+ * Get Bulk Product Update Options
2545
+ * @description List the same active stock-file-capable sources as Omni Bulk Update, including manual warehouses and supported CSV sources. Requires catalog:read and inventory.read. Resolve a sourceId from this organization-scoped result before starting inventory/both updates; an ambiguous choice requires seller selection.
2546
+ */
2547
+ get: operations["get_v1_products_bulk_update"];
2548
+ put?: never;
2549
+ /**
2550
+ * Bulk Update Product Prices and Stock
2551
+ * @description Update existing catalog SKUs from 1–10 uploaded CSV/Excel documentIds (up to 10,000 rows per file), using the same price and inventory import services as Omni Bulk Update. Requires catalog:write and the corresponding product/inventory capabilities. No product creation. Exact SKU matching rejects duplicate/ambiguous and unknown SKUs; zero values are preserved. Inventory requires an authorized manual/CSV sourceId or locationId. Explicit column names override detection. syncToMarketplaces defaults true; optional marketplaces restricts existing listing sync across supported platforms. Returns ordered per-document results and saved imports references. Updates continue through the durable file-update workflow beyond the caller lifetime; acceptance is not completion. Pass every returned reference to products.bulkUpdateStatus. Inventory apply means source balances saved and sync queued, not marketplace verification.
2552
+ */
2553
+ post: operations["post_v1_products_bulk_update"];
2554
+ delete?: never;
2555
+ options?: never;
2556
+ head?: never;
2557
+ patch?: never;
2558
+ trace?: never;
2559
+ };
2560
+ "/api/v1/products/bulk-update/status": {
2561
+ parameters: {
2562
+ query?: never;
2563
+ header?: never;
2564
+ path?: never;
2565
+ cookie?: never;
2566
+ };
2567
+ get?: never;
2568
+ put?: never;
2569
+ /**
2570
+ * Get Bulk Product Update Status
2571
+ * @description Read up to 20 typed saved imports in requested order. Requires catalog:read and the corresponding product/inventory read capabilities. IDs are deduplicated by kind and importId. Pending imports are incomplete; invalid/unknown rows and missing organization-scoped imports remain explicit failures. Compact by default; includeRows returns at most 100 rows per import using rowOffset/rowLimit. Catalog stock apply does not certify marketplace state.
2572
+ */
2573
+ post: operations["post_v1_products_bulk_update_status"];
2574
+ delete?: never;
2575
+ options?: never;
2576
+ head?: never;
2577
+ patch?: never;
2578
+ trace?: never;
2579
+ };
2345
2580
  "/api/v1/products/compare-prices": {
2346
2581
  parameters: {
2347
2582
  query?: never;
@@ -2471,15 +2706,15 @@ interface paths {
2471
2706
  * Merge Duplicate Products
2472
2707
  * @description Merge exact-SKU duplicate products into one master product per group. The master keeps its content, images, price and stock; the group's other products are archived into it, and orders, reviews, promotions and other catalog references move to the master.
2473
2708
  *
2474
- * All marketplace listings move to the master, including listings in other stores of the same marketplace. Different listing identities in the same store block the group. No marketplace listing is delisted, rewritten or republished.
2709
+ * All marketplace listings move to the master, including listings in other stores of the same marketplace. Different listing identities in the same store block the group. Standalone-only merges do not publish. When variants remain, variantStrategy selects keeping the master's variant set or merging compatible source variants, and the same operation automatically publishes the resulting variants to every preserved store listing. Live/draft visibility is retained; the marketplace may require a replacement listing for an incompatible variant structure.
2475
2710
  *
2476
2711
  * Each group commits independently; the response lists every group's outcome. Sources with inventory history or immutable order composition snapshots must be reconciled before archiving so returns and stock replays keep their targets.
2477
2712
  *
2478
- * Supports every OmniCommerce marketplace. Variant families, bundles and products in different currencies cannot be merged. A stock-connected product may be kept as master; it cannot be archived into another product. Use preview masterSelections to choose an allowed master.
2713
+ * Supports every OmniCommerce marketplace. Variant merging requires an existing variant master, unambiguous SKU/option mappings and compatible dimensions. Bundles and products in different currencies cannot be merged. A stock-connected product may be kept as master; it cannot be archived into another product. Use preview masterSelections to choose an allowed master. Variant groups contain at most 200 child products.
2479
2714
  *
2480
2715
  * ### Authorization
2481
2716
  *
2482
- * Requires `catalog:write`. This is a catalog operation with no remote marketplace writes.
2717
+ * Requires `catalog:write`. Variant merging also rechecks products.publish authorization before committing and before each store dispatch. Publishing uses the canonical durable marketplace jobs. Inspect groups[].publishResults and await every returned publish_job correlation together before reporting marketplace completion. Queue acceptance is not completion. Retry the same merge to resume failed store dispatches without repeating the catalog merge; a publishing failure does not roll back an already committed merge.
2483
2718
  *
2484
2719
  * ### Limits
2485
2720
  *
@@ -2535,13 +2770,17 @@ interface paths {
2535
2770
  };
2536
2771
  /**
2537
2772
  * Get Duplicate Scan
2538
- * @description Read the same organization-scoped duplicate scan status as Products → Check duplicates. Requires catalog:read. queued/running means the durable scan is still in progress; failed includes errorMessage. completed exposes computedAt and the number of duplicate products. Results are read through products.list with status=duplicates and detail=full. The shared UI scan currently examines at most the 5,000 most recently updated non-archived root products; a completed scan is not proof that a larger catalog has been fully examined.
2773
+ * @description Read the same organization-scoped duplicate scan status as Products → Check duplicates. Requires catalog:read.
2774
+ *
2775
+ * queued/running means the durable scan is still in progress; failed includes errorMessage. completed exposes computedAt and the number of duplicate products. Results are read through products.list with status=duplicates and detail=full. The shared UI scan currently examines at most the 5,000 most recently updated non-archived root products; a completed scan is not proof that a larger catalog has been fully examined.
2539
2776
  */
2540
2777
  get: operations["get_v1_products_duplicates_scan"];
2541
2778
  put?: never;
2542
2779
  /**
2543
2780
  * Scan Duplicate Products
2544
- * @description Start the existing durable organization duplicate scan, equivalent to Products → Check duplicates. Requires catalog:write. An already queued/running scan is reused. This only refreshes duplicate evidence; it does not merge, publish or delist products. Read completion with products.getDuplicateScan, then list status=duplicates, duplicateType=sku, detail=full and page all matching results before previewing a merge. Uses the same 5,000-candidate scan limit as the UI.
2781
+ * @description Start the existing durable organization duplicate scan, equivalent to Products → Check duplicates. Requires catalog:write.
2782
+ *
2783
+ * An already queued/running scan is reused. This only refreshes duplicate evidence; it does not merge, publish or delist products. Read completion with products.getDuplicateScan, then list status=duplicates, duplicateType=sku, detail=full and page all matching results before previewing a merge. Uses the same 5,000-candidate scan limit as the UI.
2545
2784
  */
2546
2785
  post: operations["post_v1_products_duplicates_scan"];
2547
2786
  delete?: never;
@@ -2645,6 +2884,8 @@ interface paths {
2645
2884
  * Preview Promotion Prices
2646
2885
  * @description Read canonical effective prices for up to 50 products, optionally scoped to an exact marketplace, store and country. Uses the same authoring permissions as the application's preview. Does not publish or change prices.
2647
2886
  *
2887
+ * ### Authorization
2888
+ *
2648
2889
  * Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
2649
2890
  */
2650
2891
  post: operations["post_v1_promotions_by_promotionid_preview"];
@@ -2669,7 +2910,9 @@ interface paths {
2669
2910
  put?: never;
2670
2911
  /**
2671
2912
  * Assign Products to Promotion
2672
- * @description Assign qualifying products and optional per-product discounts to a promotion. Active or scheduled promotions automatically queue durable marketplace delivery; drafts retain assignments for later publication. Requires `promotions:write` and current publish permission when publishing. Read promotion delivery to verify every target store.
2913
+ * @description Assign qualifying products and optional per-product discounts to a promotion. Active or scheduled promotions automatically queue durable marketplace delivery; drafts retain assignments for later publication.
2914
+ *
2915
+ * Requires `promotions:write` and current publish permission when publishing. Read promotion delivery to verify every target store.
2673
2916
  */
2674
2917
  post: operations["post_v1_promotions_by_promotionid_products"];
2675
2918
  /**
@@ -2717,6 +2960,8 @@ interface paths {
2717
2960
  * Create Promotions with Products
2718
2961
  * @description Create 1–50 promotions using the shared flat promotion-write contract, with qualifying products and per-product discounts. Set promotion.status=draft explicitly when preparing drafts; otherwise the canonical creation flow activates promotions and requires publish permission. Saved IDs and delivery evidence are retained on partial delivery failure; retry those IDs rather than creating duplicates.
2719
2962
  *
2963
+ * ### Authorization
2964
+ *
2720
2965
  * Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
2721
2966
  */
2722
2967
  post: operations["post_v1_promotions_batch"];
@@ -2737,6 +2982,8 @@ interface paths {
2737
2982
  * Find Promotion Campaigns
2738
2983
  * @description Search campaign options with assigned promotions in the authenticated organization.
2739
2984
  *
2985
+ * ### Authorization
2986
+ *
2740
2987
  * Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
2741
2988
  */
2742
2989
  get: operations["get_v1_promotions_campaign_options"];
@@ -2759,6 +3006,8 @@ interface paths {
2759
3006
  * Get Promotion Marketplace Capabilities
2760
3007
  * @description Report every canonical marketplace and promotion kind, including native, projected, browser-AOP and unsupported capabilities and voucher subtypes. WhatsApp's lack of promotion publishing is explicit.
2761
3008
  *
3009
+ * ### Authorization
3010
+ *
2762
3011
  * Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
2763
3012
  */
2764
3013
  get: operations["get_v1_promotions_capabilities"];
@@ -2783,6 +3032,8 @@ interface paths {
2783
3032
  * Delete Promotions
2784
3033
  * @description Delete 1–500 promotions with the canonical marketplace cleanup flow. Requires promotions.delete permission. Ordered per-target errors and partial failures remain explicit.
2785
3034
  *
3035
+ * ### Authorization
3036
+ *
2786
3037
  * Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
2787
3038
  */
2788
3039
  post: operations["post_v1_promotions_delete"];
@@ -2805,6 +3056,8 @@ interface paths {
2805
3056
  * Read Promotion Delivery
2806
3057
  * @description Read exact store/assignment delivery evidence for 1–50 promotions. A saved or active promotion is not proof that marketplace delivery succeeded. Check every returned deliveryStatuses entry, including explicit unsupported or unavailable states.
2807
3058
  *
3059
+ * ### Authorization
3060
+ *
2808
3061
  * Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
2809
3062
  */
2810
3063
  post: operations["post_v1_promotions_delivery"];
@@ -2827,6 +3080,8 @@ interface paths {
2827
3080
  * Find Eligible Promotion Products
2828
3081
  * @description Search or check up to 50 product IDs using canonical promotion assignment eligibility for the selected exact stores. Draft/unlisted products can be eligible for planning; live marketplace availability is rechecked during delivery.
2829
3082
  *
3083
+ * ### Authorization
3084
+ *
2830
3085
  * Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
2831
3086
  */
2832
3087
  post: operations["post_v1_promotions_product_options"];
@@ -2849,6 +3104,8 @@ interface paths {
2849
3104
  * Set Promotion Statuses
2850
3105
  * @description Activate/publish, pause or archive 1–500 promotions. Activation requires promotions.publish permission. Uses the canonical status transition and durable marketplace sync/teardown flow; verify delivery separately.
2851
3106
  *
3107
+ * ### Authorization
3108
+ *
2852
3109
  * Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
2853
3110
  */
2854
3111
  post: operations["post_v1_promotions_status"];
@@ -2871,6 +3128,8 @@ interface paths {
2871
3128
  * Validate Promotions
2872
3129
  * @description Read-only validation of 1–50 saved promotion IDs or proposed definitions and product IDs. Reports marketplace terms, connected-store targeting and qualifying-product issues per target. Publishing still revalidates current state and can encounter marketplace API rejections.
2873
3130
  *
3131
+ * ### Authorization
3132
+ *
2874
3133
  * Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
2875
3134
  */
2876
3135
  post: operations["post_v1_promotions_validate"];
@@ -6310,12 +6569,11 @@ interface operations {
6310
6569
  content: {
6311
6570
  "application/json":
6312
6571
  | {
6572
+ /** @enum {string} */
6573
+ environment?: "live" | "sandbox";
6313
6574
  offers: {
6314
- /**
6315
- * @default acp_stripe
6316
- * @enum {string}
6317
- */
6318
- paymentRail?: "acp_stripe" | "x402";
6575
+ /** @enum {string} */
6576
+ paymentRail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
6319
6577
  items: {
6320
6578
  productId: string;
6321
6579
  quantity: number;
@@ -6445,6 +6703,263 @@ interface operations {
6445
6703
  };
6446
6704
  };
6447
6705
  };
6706
+ post_v1_agents_by_agentid_messages: {
6707
+ parameters: {
6708
+ query?: never;
6709
+ header?: never;
6710
+ path: {
6711
+ agentId: string;
6712
+ };
6713
+ cookie?: never;
6714
+ };
6715
+ requestBody: {
6716
+ content: {
6717
+ /**
6718
+ * @example {
6719
+ * "message": "Summarize today's orders.",
6720
+ * "clientThreadKey": "daily-report",
6721
+ * "wait": true
6722
+ * }
6723
+ */
6724
+ "application/json": {
6725
+ organizationId?: string;
6726
+ message?: string;
6727
+ /** @default default */
6728
+ clientThreadKey?: string;
6729
+ /** @default false */
6730
+ wait?: boolean;
6731
+ decisions?: {
6732
+ /** @enum {string} */
6733
+ action: "approve" | "reject";
6734
+ reason?: string;
6735
+ }[];
6736
+ };
6737
+ };
6738
+ };
6739
+ responses: {
6740
+ /** @description The agent's verbatim final reply or pending approvals. */
6741
+ 200: {
6742
+ headers: {
6743
+ [name: string]: unknown;
6744
+ };
6745
+ content: {
6746
+ "application/json": {
6747
+ agentId: string;
6748
+ threadKey: string;
6749
+ runId: string;
6750
+ threadId: string;
6751
+ /** @enum {string} */
6752
+ status:
6753
+ | "accepted"
6754
+ | "running"
6755
+ | "completed"
6756
+ | "awaiting_approval"
6757
+ | "failed";
6758
+ reply: string | null;
6759
+ approvals:
6760
+ | {
6761
+ interrupt_instance_id: string;
6762
+ tool_name: string | null;
6763
+ tool_args: unknown;
6764
+ message: string;
6765
+ }[]
6766
+ | null;
6767
+ error: string | null;
6768
+ };
6769
+ };
6770
+ };
6771
+ /** @description Accepted for durable execution. */
6772
+ 202: {
6773
+ headers: {
6774
+ /** @description Caller-scoped status URL for this agent's run. */
6775
+ Location?: string;
6776
+ /** @description Seconds to wait before reading an open run again. */
6777
+ "Retry-After"?: number;
6778
+ [name: string]: unknown;
6779
+ };
6780
+ content: {
6781
+ "application/json": {
6782
+ agentId: string;
6783
+ threadKey: string;
6784
+ runId: string;
6785
+ threadId: string;
6786
+ /** @enum {string} */
6787
+ status:
6788
+ | "accepted"
6789
+ | "running"
6790
+ | "completed"
6791
+ | "awaiting_approval"
6792
+ | "failed";
6793
+ reply: string | null;
6794
+ approvals:
6795
+ | {
6796
+ interrupt_instance_id: string;
6797
+ tool_name: string | null;
6798
+ tool_args: unknown;
6799
+ message: string;
6800
+ }[]
6801
+ | null;
6802
+ error: string | null;
6803
+ };
6804
+ };
6805
+ };
6806
+ /** @description Invalid message, decisions or organization scope. */
6807
+ 400: {
6808
+ headers: {
6809
+ [name: string]: unknown;
6810
+ };
6811
+ content?: never;
6812
+ };
6813
+ /** @description A valid Bearer API key or sign-in session is required. */
6814
+ 401: {
6815
+ headers: {
6816
+ [name: string]: unknown;
6817
+ };
6818
+ content?: never;
6819
+ };
6820
+ /** @description Insufficient AI credits. */
6821
+ 402: {
6822
+ headers: {
6823
+ [name: string]: unknown;
6824
+ };
6825
+ content?: never;
6826
+ };
6827
+ /** @description Missing agents:invoke scope, inactive agent, revoked key, or the credential owner lacks organization membership or agent sharing access. */
6828
+ 403: {
6829
+ headers: {
6830
+ [name: string]: unknown;
6831
+ };
6832
+ content?: never;
6833
+ };
6834
+ /** @description The run does not belong to this agent and caller. */
6835
+ 404: {
6836
+ headers: {
6837
+ [name: string]: unknown;
6838
+ };
6839
+ content?: never;
6840
+ };
6841
+ /** @description This conversation already has an active run, or there is no matching pending approval. */
6842
+ 409: {
6843
+ headers: {
6844
+ [name: string]: unknown;
6845
+ };
6846
+ content?: never;
6847
+ };
6848
+ /** @description The agent run failed. */
6849
+ 500: {
6850
+ headers: {
6851
+ [name: string]: unknown;
6852
+ };
6853
+ content?: never;
6854
+ };
6855
+ /** @description The waiting request timed out. The error includes the stored run ID. */
6856
+ 504: {
6857
+ headers: {
6858
+ [name: string]: unknown;
6859
+ };
6860
+ content?: never;
6861
+ };
6862
+ };
6863
+ };
6864
+ get_v1_agents_by_agentid_runs_by_runid: {
6865
+ parameters: {
6866
+ query?: {
6867
+ /** @description Required for sign-in sessions. API keys already identify their organization. */
6868
+ organizationId?: string;
6869
+ };
6870
+ header?: never;
6871
+ path: {
6872
+ agentId: string;
6873
+ runId: string;
6874
+ };
6875
+ cookie?: never;
6876
+ };
6877
+ requestBody?: never;
6878
+ responses: {
6879
+ /** @description Current run status, reply and approvals. */
6880
+ 200: {
6881
+ headers: {
6882
+ /** @description Seconds to wait before reading an open run again. */
6883
+ "Retry-After"?: number;
6884
+ [name: string]: unknown;
6885
+ };
6886
+ content: {
6887
+ "application/json": {
6888
+ agentId: string;
6889
+ threadKey: string;
6890
+ runId: string;
6891
+ threadId: string;
6892
+ /** @enum {string} */
6893
+ status:
6894
+ | "accepted"
6895
+ | "running"
6896
+ | "completed"
6897
+ | "awaiting_approval"
6898
+ | "failed";
6899
+ reply: string | null;
6900
+ approvals:
6901
+ | {
6902
+ interrupt_instance_id: string;
6903
+ tool_name: string | null;
6904
+ tool_args: unknown;
6905
+ message: string;
6906
+ }[]
6907
+ | null;
6908
+ error: string | null;
6909
+ };
6910
+ };
6911
+ };
6912
+ /** @description Invalid message, decisions or organization scope. */
6913
+ 400: {
6914
+ headers: {
6915
+ [name: string]: unknown;
6916
+ };
6917
+ content?: never;
6918
+ };
6919
+ /** @description A valid Bearer API key or sign-in session is required. */
6920
+ 401: {
6921
+ headers: {
6922
+ [name: string]: unknown;
6923
+ };
6924
+ content?: never;
6925
+ };
6926
+ /** @description Insufficient AI credits. */
6927
+ 402: {
6928
+ headers: {
6929
+ [name: string]: unknown;
6930
+ };
6931
+ content?: never;
6932
+ };
6933
+ /** @description Missing agents:invoke scope, inactive agent, revoked key, or the credential owner lacks organization membership or agent sharing access. */
6934
+ 403: {
6935
+ headers: {
6936
+ [name: string]: unknown;
6937
+ };
6938
+ content?: never;
6939
+ };
6940
+ /** @description The run does not belong to this agent and caller. */
6941
+ 404: {
6942
+ headers: {
6943
+ [name: string]: unknown;
6944
+ };
6945
+ content?: never;
6946
+ };
6947
+ /** @description This conversation already has an active run, or there is no matching pending approval. */
6948
+ 409: {
6949
+ headers: {
6950
+ [name: string]: unknown;
6951
+ };
6952
+ content?: never;
6953
+ };
6954
+ /** @description The agent run failed. */
6955
+ 500: {
6956
+ headers: {
6957
+ [name: string]: unknown;
6958
+ };
6959
+ content?: never;
6960
+ };
6961
+ };
6962
+ };
6448
6963
  post_v1_agents_general_invoke: {
6449
6964
  parameters: {
6450
6965
  query?: never;
@@ -14207,6 +14722,68 @@ interface operations {
14207
14722
  };
14208
14723
  };
14209
14724
  };
14725
+ get_v1_catalog_products: {
14726
+ parameters: {
14727
+ query: {
14728
+ /** @description One to ten comma-separated product IDs. Trimmed and deduplicated in requested order. Singular productId is rejected. */
14729
+ productIds: string[];
14730
+ };
14731
+ header?: never;
14732
+ path?: never;
14733
+ cookie?: never;
14734
+ };
14735
+ requestBody?: never;
14736
+ responses: {
14737
+ /** @description Success */
14738
+ 200: {
14739
+ headers: {
14740
+ [name: string]: unknown;
14741
+ };
14742
+ content: {
14743
+ "application/json": {
14744
+ ok?: boolean;
14745
+ /** @default public_products_v1 */
14746
+ apiVersion: string;
14747
+ };
14748
+ };
14749
+ };
14750
+ /** @description Bad Request */
14751
+ 400: {
14752
+ headers: {
14753
+ [name: string]: unknown;
14754
+ };
14755
+ content?: never;
14756
+ };
14757
+ /** @description Unauthorized */
14758
+ 401: {
14759
+ headers: {
14760
+ [name: string]: unknown;
14761
+ };
14762
+ content?: never;
14763
+ };
14764
+ /** @description Insufficient Credits */
14765
+ 402: {
14766
+ headers: {
14767
+ [name: string]: unknown;
14768
+ };
14769
+ content?: never;
14770
+ };
14771
+ /** @description Forbidden */
14772
+ 403: {
14773
+ headers: {
14774
+ [name: string]: unknown;
14775
+ };
14776
+ content?: never;
14777
+ };
14778
+ /** @description Internal Server Error */
14779
+ 500: {
14780
+ headers: {
14781
+ [name: string]: unknown;
14782
+ };
14783
+ content?: never;
14784
+ };
14785
+ };
14786
+ };
14210
14787
  post_v1_catalog_query: {
14211
14788
  parameters: {
14212
14789
  query?: never;
@@ -14395,13 +14972,19 @@ interface operations {
14395
14972
  * }
14396
14973
  */
14397
14974
  "application/json": {
14975
+ /**
14976
+ * @description Immutable offer environment. Sandbox simulates payments and keeps sessions/orders in separate storage without live inventory, fulfilment, messages or charges. Both modes may run concurrently. Sandbox paymentProof must be {sandboxOutcome: 'succeeded' | 'declined'} with exact approval.
14977
+ * @default live
14978
+ * @enum {string}
14979
+ */
14980
+ environment?: "live" | "sandbox";
14398
14981
  /** @description Optional for OAuth clients bound to one organization; required when the caller can access multiple organizations. */
14399
14982
  organizationId?: string;
14400
14983
  /**
14401
- * @default acp_stripe
14984
+ * @description When omitted, use the merchant's configured payment destination: Stripe, Qashier, HitPay, then x402.
14402
14985
  * @enum {string}
14403
14986
  */
14404
- paymentRail?: "acp_stripe" | "x402";
14987
+ paymentRail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
14405
14988
  items: {
14406
14989
  /** @description OmniCommerce product UUID. */
14407
14990
  productId: string;
@@ -14456,6 +15039,11 @@ interface operations {
14456
15039
  /** @default agentic_checkout_v1 */
14457
15040
  apiVersion: string;
14458
15041
  session?: {
15042
+ /**
15043
+ * @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
15044
+ * @enum {string}
15045
+ */
15046
+ environment?: "live" | "sandbox";
14459
15047
  id: string;
14460
15048
  organizationId: string;
14461
15049
  /** @enum {string} */
@@ -14466,7 +15054,7 @@ interface operations {
14466
15054
  | "cancelled"
14467
15055
  | "expired";
14468
15056
  /** @enum {string} */
14469
- paymentRail: "acp_stripe" | "x402";
15057
+ paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
14470
15058
  currency: string;
14471
15059
  subtotalAmount?: number;
14472
15060
  shippingAmount?: number;
@@ -14570,6 +15158,11 @@ interface operations {
14570
15158
  /** @default agentic_checkout_v1 */
14571
15159
  apiVersion: string;
14572
15160
  session?: {
15161
+ /**
15162
+ * @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
15163
+ * @enum {string}
15164
+ */
15165
+ environment?: "live" | "sandbox";
14573
15166
  id: string;
14574
15167
  organizationId: string;
14575
15168
  /** @enum {string} */
@@ -14580,7 +15173,7 @@ interface operations {
14580
15173
  | "cancelled"
14581
15174
  | "expired";
14582
15175
  /** @enum {string} */
14583
- paymentRail: "acp_stripe" | "x402";
15176
+ paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
14584
15177
  currency: string;
14585
15178
  subtotalAmount?: number;
14586
15179
  shippingAmount?: number;
@@ -14668,7 +15261,7 @@ interface operations {
14668
15261
  content: {
14669
15262
  "application/json": {
14670
15263
  /** @enum {string} */
14671
- paymentRail?: "acp_stripe" | "x402";
15264
+ paymentRail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
14672
15265
  items?: {
14673
15266
  /** @description OmniCommerce product UUID. */
14674
15267
  productId: string;
@@ -14723,6 +15316,11 @@ interface operations {
14723
15316
  /** @default agentic_checkout_v1 */
14724
15317
  apiVersion: string;
14725
15318
  session?: {
15319
+ /**
15320
+ * @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
15321
+ * @enum {string}
15322
+ */
15323
+ environment?: "live" | "sandbox";
14726
15324
  id: string;
14727
15325
  organizationId: string;
14728
15326
  /** @enum {string} */
@@ -14733,7 +15331,7 @@ interface operations {
14733
15331
  | "cancelled"
14734
15332
  | "expired";
14735
15333
  /** @enum {string} */
14736
- paymentRail: "acp_stripe" | "x402";
15334
+ paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
14737
15335
  currency: string;
14738
15336
  subtotalAmount?: number;
14739
15337
  shippingAmount?: number;
@@ -14835,7 +15433,7 @@ interface operations {
14835
15433
  content: {
14836
15434
  "application/json": {
14837
15435
  /** @enum {string} */
14838
- paymentRail?: "acp_stripe" | "x402";
15436
+ paymentRail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
14839
15437
  items?: {
14840
15438
  /** @description OmniCommerce product UUID. */
14841
15439
  productId: string;
@@ -14890,6 +15488,11 @@ interface operations {
14890
15488
  /** @default agentic_checkout_v1 */
14891
15489
  apiVersion: string;
14892
15490
  session?: {
15491
+ /**
15492
+ * @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
15493
+ * @enum {string}
15494
+ */
15495
+ environment?: "live" | "sandbox";
14893
15496
  id: string;
14894
15497
  organizationId: string;
14895
15498
  /** @enum {string} */
@@ -14900,7 +15503,7 @@ interface operations {
14900
15503
  | "cancelled"
14901
15504
  | "expired";
14902
15505
  /** @enum {string} */
14903
- paymentRail: "acp_stripe" | "x402";
15506
+ paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
14904
15507
  currency: string;
14905
15508
  subtotalAmount?: number;
14906
15509
  shippingAmount?: number;
@@ -15011,6 +15614,11 @@ interface operations {
15011
15614
  /** @default agentic_checkout_v1 */
15012
15615
  apiVersion: string;
15013
15616
  session?: {
15617
+ /**
15618
+ * @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
15619
+ * @enum {string}
15620
+ */
15621
+ environment?: "live" | "sandbox";
15014
15622
  id: string;
15015
15623
  organizationId: string;
15016
15624
  /** @enum {string} */
@@ -15021,7 +15629,7 @@ interface operations {
15021
15629
  | "cancelled"
15022
15630
  | "expired";
15023
15631
  /** @enum {string} */
15024
- paymentRail: "acp_stripe" | "x402";
15632
+ paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
15025
15633
  currency: string;
15026
15634
  subtotalAmount?: number;
15027
15635
  shippingAmount?: number;
@@ -15143,6 +15751,11 @@ interface operations {
15143
15751
  /** @default agentic_checkout_v1 */
15144
15752
  apiVersion: string;
15145
15753
  session?: {
15754
+ /**
15755
+ * @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
15756
+ * @enum {string}
15757
+ */
15758
+ environment?: "live" | "sandbox";
15146
15759
  id: string;
15147
15760
  organizationId: string;
15148
15761
  /** @enum {string} */
@@ -15153,7 +15766,7 @@ interface operations {
15153
15766
  | "cancelled"
15154
15767
  | "expired";
15155
15768
  /** @enum {string} */
15156
- paymentRail: "acp_stripe" | "x402";
15769
+ paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
15157
15770
  currency: string;
15158
15771
  subtotalAmount?: number;
15159
15772
  shippingAmount?: number;
@@ -15229,6 +15842,11 @@ interface operations {
15229
15842
  /** @default agentic_checkout_v1 */
15230
15843
  apiVersion: string;
15231
15844
  session?: {
15845
+ /**
15846
+ * @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
15847
+ * @enum {string}
15848
+ */
15849
+ environment?: "live" | "sandbox";
15232
15850
  id: string;
15233
15851
  organizationId: string;
15234
15852
  /** @enum {string} */
@@ -15239,7 +15857,7 @@ interface operations {
15239
15857
  | "cancelled"
15240
15858
  | "expired";
15241
15859
  /** @enum {string} */
15242
- paymentRail: "acp_stripe" | "x402";
15860
+ paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
15243
15861
  currency: string;
15244
15862
  subtotalAmount?: number;
15245
15863
  shippingAmount?: number;
@@ -15320,6 +15938,76 @@ interface operations {
15320
15938
  };
15321
15939
  };
15322
15940
  };
15941
+ post_v1_checkout_sessions_by_sessionid_pay: {
15942
+ parameters: {
15943
+ query?: never;
15944
+ header?: never;
15945
+ path: {
15946
+ sessionId: string;
15947
+ };
15948
+ cookie?: never;
15949
+ };
15950
+ requestBody: {
15951
+ content: {
15952
+ "application/json": {
15953
+ approval: {
15954
+ cartVersion: number;
15955
+ totalAmount: number;
15956
+ currency: string;
15957
+ };
15958
+ };
15959
+ };
15960
+ };
15961
+ responses: {
15962
+ /** @description Hosted checkout URL. */
15963
+ 200: {
15964
+ headers: {
15965
+ [name: string]: unknown;
15966
+ };
15967
+ content: {
15968
+ "application/json": {
15969
+ /** @constant */
15970
+ success: true;
15971
+ sessionId: string;
15972
+ /** Format: uri */
15973
+ checkoutUrl: string;
15974
+ /** Format: date-time */
15975
+ paymentExpiresAt: string;
15976
+ } & {
15977
+ [key: string]: unknown;
15978
+ };
15979
+ };
15980
+ };
15981
+ /** @description Invalid approval, unsupported payment currency or missing delivery details. */
15982
+ 400: {
15983
+ headers: {
15984
+ [name: string]: unknown;
15985
+ };
15986
+ content?: never;
15987
+ };
15988
+ /** @description Checkout disabled or organization access denied. */
15989
+ 403: {
15990
+ headers: {
15991
+ [name: string]: unknown;
15992
+ };
15993
+ content?: never;
15994
+ };
15995
+ /** @description Offer changed, payment not configured or offer no longer payable. */
15996
+ 409: {
15997
+ headers: {
15998
+ [name: string]: unknown;
15999
+ };
16000
+ content?: never;
16001
+ };
16002
+ /** @description Gateway unavailable; retry the same offer. */
16003
+ 503: {
16004
+ headers: {
16005
+ [name: string]: unknown;
16006
+ };
16007
+ content?: never;
16008
+ };
16009
+ };
16010
+ };
15323
16011
  post_v1_commerce_jobs_await: {
15324
16012
  parameters: {
15325
16013
  query?: never;
@@ -16424,6 +17112,331 @@ interface operations {
16424
17112
  };
16425
17113
  };
16426
17114
  };
17115
+ get_v1_follow_ups: {
17116
+ parameters: {
17117
+ query?: {
17118
+ /** @description Also list every follow-up on this conversation. */
17119
+ threadId?: string;
17120
+ /** @description 1–50; 20 when omitted. */
17121
+ limit?: number;
17122
+ /** @description Required for session auth. Optional for API keys, which already belong to one organization. */
17123
+ organizationId?: string;
17124
+ };
17125
+ header?: never;
17126
+ path?: never;
17127
+ cookie?: never;
17128
+ };
17129
+ requestBody?: never;
17130
+ responses: {
17131
+ /** @description The follow-ups. */
17132
+ 200: {
17133
+ headers: {
17134
+ [name: string]: unknown;
17135
+ };
17136
+ content: {
17137
+ "application/json": {
17138
+ ok?: boolean;
17139
+ operationId?: string;
17140
+ status?: string;
17141
+ data?: {
17142
+ followUps?: {
17143
+ /** Format: uuid */
17144
+ id: string;
17145
+ threadId: string;
17146
+ ownerUserId?: string;
17147
+ /** @enum {string} */
17148
+ state: "waiting" | "fired" | "expired" | "canceled" | "failed";
17149
+ /** @enum {string} */
17150
+ trigger: "schedule" | "event";
17151
+ /** Format: date-time */
17152
+ fireAt?: string | null;
17153
+ eventType?: string | null;
17154
+ /** @description CEL condition; empty when none */
17155
+ match?: string;
17156
+ note: string;
17157
+ /** @enum {string} */
17158
+ then: "resume" | "notify";
17159
+ /** Format: date-time */
17160
+ expiresAt: string;
17161
+ /** Format: date-time */
17162
+ firedAt?: string | null;
17163
+ failure?: string | null;
17164
+ /** Format: date-time */
17165
+ createdAt?: string;
17166
+ /** Format: uri */
17167
+ url?: string | null;
17168
+ }[];
17169
+ };
17170
+ };
17171
+ };
17172
+ };
17173
+ /** @description Invalid payload, or a follow-up the request cannot make. */
17174
+ 400: {
17175
+ headers: {
17176
+ [name: string]: unknown;
17177
+ };
17178
+ content?: never;
17179
+ };
17180
+ /** @description Unauthorized */
17181
+ 401: {
17182
+ headers: {
17183
+ [name: string]: unknown;
17184
+ };
17185
+ content?: never;
17186
+ };
17187
+ /** @description Missing agents:invoke scope or Assistant access, or an OAuth client credential: follow-ups belong to a person (API key or session). */
17188
+ 403: {
17189
+ headers: {
17190
+ [name: string]: unknown;
17191
+ };
17192
+ content?: never;
17193
+ };
17194
+ /** @description Internal Server Error */
17195
+ 500: {
17196
+ headers: {
17197
+ [name: string]: unknown;
17198
+ };
17199
+ content?: never;
17200
+ };
17201
+ };
17202
+ };
17203
+ post_v1_follow_ups: {
17204
+ parameters: {
17205
+ query?: never;
17206
+ header?: never;
17207
+ path?: never;
17208
+ cookie?: never;
17209
+ };
17210
+ requestBody: {
17211
+ content: {
17212
+ /**
17213
+ * @example {
17214
+ * "threadId": "thread_123",
17215
+ * "after": "7d",
17216
+ * "note": "Compare SKU A-1's units sold over the 7 days since the price cut with the 7 days before; if there is no lift, propose reverting the price."
17217
+ * }
17218
+ */
17219
+ "application/json": {
17220
+ /**
17221
+ * Format: date-time
17222
+ * @description Future ISO 8601 time with timezone. Use only one trigger.
17223
+ */
17224
+ at?: string;
17225
+ /** @description Delay such as 90m, 4h, 14d or 2w. */
17226
+ after?: string;
17227
+ /**
17228
+ * @description Fire on this event's first matching occurrence.
17229
+ * @enum {string}
17230
+ */
17231
+ eventType?:
17232
+ | "telegram.message.received"
17233
+ | "customer.message.received"
17234
+ | "product.created"
17235
+ | "product.updated"
17236
+ | "product.deleted"
17237
+ | "product.delisted"
17238
+ | "product.price.changed"
17239
+ | "product.inventory.changed"
17240
+ | "product.enrichment.started"
17241
+ | "product.enrichment.completed"
17242
+ | "product.listing.error"
17243
+ | "product.geo.created"
17244
+ | "product.geo.updated"
17245
+ | "product.ai_visibility.measured"
17246
+ | "agent.action.approved"
17247
+ | "order.created"
17248
+ | "order.updated"
17249
+ | "order.deleted"
17250
+ | "order.status.changed"
17251
+ | "look.created"
17252
+ | "look.deleted"
17253
+ | "review.created"
17254
+ | "review.updated"
17255
+ | "review.status.changed"
17256
+ | "campaign.started"
17257
+ | "campaign.window.started"
17258
+ | "campaign.window.completed"
17259
+ | "campaign.window.failed"
17260
+ | "campaign.offer.failed"
17261
+ | "campaign.completed"
17262
+ | "promotion.usage.updated"
17263
+ | "promotion.delivery.updated"
17264
+ | "promotion.monitoring.updated"
17265
+ | "account_statement.created"
17266
+ | "account_statement.updated"
17267
+ | "account_statement.status.changed"
17268
+ | "account_statement.reconciliation.changed"
17269
+ | "account_statement.transactions.synced"
17270
+ | "account_statement.transactions.failed"
17271
+ | "account_statement.sync.queued"
17272
+ | "account_statement.sync.started"
17273
+ | "account_statement.sync.completed"
17274
+ | "account_statement.sync.failed"
17275
+ | "account_statement.sync.unavailable";
17276
+ /** @description CEL event filter, e.g. event.sku == "A-1". Only with eventType. */
17277
+ match?: string;
17278
+ /** @description What to check or do when the follow-up fires. */
17279
+ note: string;
17280
+ /**
17281
+ * @description resume continues this chat (default); notify only emails you.
17282
+ * @enum {string}
17283
+ */
17284
+ then?: "resume" | "notify";
17285
+ /** @description Expiry duration; events default to 10d. Must outlast a timed trigger. */
17286
+ expires?: string;
17287
+ organizationId?: string;
17288
+ /** @description The assistant conversation (session) to continue. */
17289
+ threadId: string;
17290
+ };
17291
+ };
17292
+ };
17293
+ responses: {
17294
+ /** @description The follow-up, waiting. */
17295
+ 200: {
17296
+ headers: {
17297
+ [name: string]: unknown;
17298
+ };
17299
+ content: {
17300
+ "application/json": {
17301
+ ok?: boolean;
17302
+ operationId?: string;
17303
+ status?: string;
17304
+ data?: {
17305
+ followUp?: {
17306
+ /** Format: uuid */
17307
+ id: string;
17308
+ threadId: string;
17309
+ ownerUserId?: string;
17310
+ /** @enum {string} */
17311
+ state: "waiting" | "fired" | "expired" | "canceled" | "failed";
17312
+ /** @enum {string} */
17313
+ trigger: "schedule" | "event";
17314
+ /** Format: date-time */
17315
+ fireAt?: string | null;
17316
+ eventType?: string | null;
17317
+ /** @description CEL condition; empty when none */
17318
+ match?: string;
17319
+ note: string;
17320
+ /** @enum {string} */
17321
+ then: "resume" | "notify";
17322
+ /** Format: date-time */
17323
+ expiresAt: string;
17324
+ /** Format: date-time */
17325
+ firedAt?: string | null;
17326
+ failure?: string | null;
17327
+ /** Format: date-time */
17328
+ createdAt?: string;
17329
+ /** Format: uri */
17330
+ url?: string | null;
17331
+ };
17332
+ };
17333
+ };
17334
+ };
17335
+ };
17336
+ /** @description Invalid payload, or a follow-up the request cannot make. */
17337
+ 400: {
17338
+ headers: {
17339
+ [name: string]: unknown;
17340
+ };
17341
+ content?: never;
17342
+ };
17343
+ /** @description Unauthorized */
17344
+ 401: {
17345
+ headers: {
17346
+ [name: string]: unknown;
17347
+ };
17348
+ content?: never;
17349
+ };
17350
+ /** @description Missing agents:invoke scope or Assistant access, or an OAuth client credential: follow-ups belong to a person (API key or session). */
17351
+ 403: {
17352
+ headers: {
17353
+ [name: string]: unknown;
17354
+ };
17355
+ content?: never;
17356
+ };
17357
+ /** @description Internal Server Error */
17358
+ 500: {
17359
+ headers: {
17360
+ [name: string]: unknown;
17361
+ };
17362
+ content?: never;
17363
+ };
17364
+ };
17365
+ };
17366
+ post_v1_follow_ups_cancel: {
17367
+ parameters: {
17368
+ query?: never;
17369
+ header?: never;
17370
+ path?: never;
17371
+ cookie?: never;
17372
+ };
17373
+ requestBody: {
17374
+ content: {
17375
+ /**
17376
+ * @example {
17377
+ * "followUpIds": [
17378
+ * "3f1c2b9e-8f0a-4c51-9d1e-2a6b7c8d9e0f"
17379
+ * ]
17380
+ * }
17381
+ */
17382
+ "application/json": {
17383
+ /** @description The follow-ups to cancel, from follow_up or list_follow_ups. */
17384
+ followUpIds: string[];
17385
+ organizationId?: string;
17386
+ };
17387
+ };
17388
+ };
17389
+ responses: {
17390
+ /** @description One result per id. */
17391
+ 200: {
17392
+ headers: {
17393
+ [name: string]: unknown;
17394
+ };
17395
+ content: {
17396
+ "application/json": {
17397
+ ok?: boolean;
17398
+ operationId?: string;
17399
+ status?: string;
17400
+ data?: {
17401
+ success?: boolean;
17402
+ followUpIds?: string[];
17403
+ succeededCount?: number;
17404
+ failedCount?: number;
17405
+ results?: Record<string, never>[];
17406
+ };
17407
+ };
17408
+ };
17409
+ };
17410
+ /** @description Invalid payload, or a follow-up the request cannot make. */
17411
+ 400: {
17412
+ headers: {
17413
+ [name: string]: unknown;
17414
+ };
17415
+ content?: never;
17416
+ };
17417
+ /** @description Unauthorized */
17418
+ 401: {
17419
+ headers: {
17420
+ [name: string]: unknown;
17421
+ };
17422
+ content?: never;
17423
+ };
17424
+ /** @description Missing agents:invoke scope or Assistant access, or an OAuth client credential: follow-ups belong to a person (API key or session). */
17425
+ 403: {
17426
+ headers: {
17427
+ [name: string]: unknown;
17428
+ };
17429
+ content?: never;
17430
+ };
17431
+ /** @description Internal Server Error */
17432
+ 500: {
17433
+ headers: {
17434
+ [name: string]: unknown;
17435
+ };
17436
+ content?: never;
17437
+ };
17438
+ };
17439
+ };
16427
17440
  post_v1_images_ghost_mannequin: {
16428
17441
  parameters: {
16429
17442
  query?: never;
@@ -19477,7 +20490,8 @@ interface operations {
19477
20490
  | "whatsapp"
19478
20491
  | "zalora"
19479
20492
  | "amazon"
19480
- | "ebay";
20493
+ | "ebay"
20494
+ | "agentic_checkout";
19481
20495
  /** @description When `true`, return only enabled rules. */
19482
20496
  enabledOnly?: boolean;
19483
20497
  };
@@ -19567,7 +20581,8 @@ interface operations {
19567
20581
  | "whatsapp"
19568
20582
  | "zalora"
19569
20583
  | "amazon"
19570
- | "ebay";
20584
+ | "ebay"
20585
+ | "agentic_checkout";
19571
20586
  /** @description Optional connected store ID. Null/omit applies to all stores for the platform. */
19572
20587
  storeId?: string | null;
19573
20588
  /** @description Optional country scope (name or code). Null/omit applies to all countries. */
@@ -19862,7 +20877,8 @@ interface operations {
19862
20877
  | "whatsapp"
19863
20878
  | "zalora"
19864
20879
  | "amazon"
19865
- | "ebay";
20880
+ | "ebay"
20881
+ | "agentic_checkout";
19866
20882
  /** @description Canonical list price to mark up. */
19867
20883
  listPrice: number;
19868
20884
  storeId?: string | null;
@@ -23001,7 +24017,148 @@ interface operations {
23001
24017
  };
23002
24018
  };
23003
24019
  };
23004
- post_v1_products_bulk_import_retry: {
24020
+ post_v1_products_bulk_import_retry: {
24021
+ parameters: {
24022
+ query?: never;
24023
+ header?: never;
24024
+ path?: never;
24025
+ cookie?: never;
24026
+ };
24027
+ requestBody: {
24028
+ content: {
24029
+ "application/json": {
24030
+ organizationId?: string;
24031
+ /** @description 1–20 import UUIDs or bulk_... developer handles. Use review_<batch UUID> for a Review job, or importretry_... without overrides to resume interrupted dispatch. Duplicates are removed in first-requested order. */
24032
+ jobIds: string[];
24033
+ /**
24034
+ * @description Retry failed work only. all includes failed source rows and review stages; images retries only failed review images.
24035
+ * @default all
24036
+ * @enum {string}
24037
+ */
24038
+ stages?: "all" | "images";
24039
+ /** @description Replace the image-source kit selection for failed images using current saved websites. Omit to retain the previous selection. */
24040
+ brandKitIds?: string[];
24041
+ model?: string;
24042
+ };
24043
+ };
24044
+ };
24045
+ responses: {
24046
+ /** @description Ordered retry acceptance results. */
24047
+ 202: {
24048
+ headers: {
24049
+ [name: string]: unknown;
24050
+ };
24051
+ content: {
24052
+ "application/json": {
24053
+ ok: boolean;
24054
+ /** @constant */
24055
+ apiVersion: "developer_v1";
24056
+ operationId: string;
24057
+ /** @enum {string} */
24058
+ status: "accepted" | "completed" | "failed";
24059
+ jobId?: string;
24060
+ warnings: string[];
24061
+ recommendations: string[];
24062
+ links: {
24063
+ [key: string]: string;
24064
+ };
24065
+ data: {
24066
+ success: boolean;
24067
+ jobIds: string[];
24068
+ retryJobIds: string[];
24069
+ succeededCount: number;
24070
+ failedCount: number;
24071
+ results: {
24072
+ jobId: string;
24073
+ success: boolean;
24074
+ retryJobId?: string;
24075
+ error?: string;
24076
+ }[];
24077
+ };
24078
+ };
24079
+ };
24080
+ };
24081
+ /** @description Invalid request. */
24082
+ 400: {
24083
+ headers: {
24084
+ [name: string]: unknown;
24085
+ };
24086
+ content?: never;
24087
+ };
24088
+ /** @description Missing credentials. */
24089
+ 401: {
24090
+ headers: {
24091
+ [name: string]: unknown;
24092
+ };
24093
+ content?: never;
24094
+ };
24095
+ /** @description Missing OAuth scope or organization capability. */
24096
+ 403: {
24097
+ headers: {
24098
+ [name: string]: unknown;
24099
+ };
24100
+ content?: never;
24101
+ };
24102
+ /** @description Resource not found in this organization. */
24103
+ 404: {
24104
+ headers: {
24105
+ [name: string]: unknown;
24106
+ };
24107
+ content?: never;
24108
+ };
24109
+ };
24110
+ };
24111
+ get_v1_products_bulk_update: {
24112
+ parameters: {
24113
+ query?: {
24114
+ organizationId?: string;
24115
+ };
24116
+ header?: never;
24117
+ path?: never;
24118
+ cookie?: never;
24119
+ };
24120
+ requestBody?: never;
24121
+ responses: {
24122
+ /** @description Eligible stock sources and shared file limits. */
24123
+ 200: {
24124
+ headers: {
24125
+ [name: string]: unknown;
24126
+ };
24127
+ content: {
24128
+ "application/json": {
24129
+ ok: boolean;
24130
+ data: {
24131
+ maxDocuments: number;
24132
+ maxRowsPerFile: number;
24133
+ sources: {
24134
+ sourceId: string;
24135
+ label: string;
24136
+ locationId: string;
24137
+ locationName: string;
24138
+ ownershipModel: string;
24139
+ quantityAuthority: string;
24140
+ }[];
24141
+ };
24142
+ };
24143
+ };
24144
+ };
24145
+ /** @description Authentication required. */
24146
+ 401: {
24147
+ headers: {
24148
+ [name: string]: unknown;
24149
+ };
24150
+ content?: never;
24151
+ };
24152
+ /** @description Missing inventory read or organization access. */
24153
+ 403: {
24154
+ headers: {
24155
+ [name: string]: unknown;
24156
+ };
24157
+ content?: never;
24158
+ };
24159
+ };
24160
+ };
24161
+ post_v1_products_bulk_update: {
23005
24162
  parameters: {
23006
24163
  query?: never;
23007
24164
  header?: never;
@@ -23011,23 +24168,40 @@ interface operations {
23011
24168
  requestBody: {
23012
24169
  content: {
23013
24170
  "application/json": {
24171
+ /** @default true */
24172
+ syncToMarketplaces?: boolean;
24173
+ marketplaces?: (
24174
+ | "shopee"
24175
+ | "lazada"
24176
+ | "tiktok"
24177
+ | "shopify"
24178
+ | "whatsapp"
24179
+ | "zalora"
24180
+ | "amazon"
24181
+ | "ebay"
24182
+ )[];
23014
24183
  organizationId?: string;
23015
- /** @description 1–20 import UUIDs or bulk_... developer handles. Use review_<batch UUID> for a Review job, or importretry_... without overrides to resume interrupted dispatch. Duplicates are removed in first-requested order. */
23016
- jobIds: string[];
24184
+ documentIds: string[];
23017
24185
  /**
23018
- * @description Retry failed work only. all includes failed source rows and review stages; images retries only failed review images.
23019
- * @default all
24186
+ * @default both
23020
24187
  * @enum {string}
23021
24188
  */
23022
- stages?: "all" | "images";
23023
- /** @description Replace the image-source kit selection for failed images using current saved websites. Omit to retain the previous selection. */
23024
- brandKitIds?: string[];
23025
- model?: string;
24189
+ scope?: "price" | "inventory" | "both";
24190
+ /** Format: uuid */
24191
+ sourceId?: string;
24192
+ /** Format: uuid */
24193
+ locationId?: string;
24194
+ skuColumn?: string;
24195
+ quantityColumn?: string;
24196
+ priceColumn?: string;
24197
+ salePriceColumn?: string;
24198
+ currencyColumn?: string;
24199
+ costPriceColumn?: string;
23026
24200
  };
23027
24201
  };
23028
24202
  };
23029
24203
  responses: {
23030
- /** @description Ordered retry acceptance results. */
24204
+ /** @description Saved imports accepted; updates continue durably. */
23031
24205
  202: {
23032
24206
  headers: {
23033
24207
  [name: string]: unknown;
@@ -23035,56 +24209,164 @@ interface operations {
23035
24209
  content: {
23036
24210
  "application/json": {
23037
24211
  ok: boolean;
23038
- /** @constant */
23039
- apiVersion: "developer_v1";
23040
- operationId: string;
23041
- /** @enum {string} */
23042
- status: "accepted" | "completed" | "failed";
23043
- jobId?: string;
23044
- warnings: string[];
23045
- recommendations: string[];
23046
- links: {
23047
- [key: string]: string;
23048
- };
24212
+ apiVersion?: string;
24213
+ operationId?: string;
24214
+ status?: string;
23049
24215
  data: {
23050
24216
  success: boolean;
23051
- jobIds: string[];
23052
- retryJobIds: string[];
23053
24217
  succeededCount: number;
23054
24218
  failedCount: number;
24219
+ pendingCount: number;
24220
+ /** @enum {string} */
24221
+ status: "pending" | "completed" | "partial" | "failed";
24222
+ imports: {
24223
+ /** @enum {string} */
24224
+ kind: "price" | "inventory";
24225
+ /** Format: uuid */
24226
+ importId: string;
24227
+ }[];
24228
+ documentIds: string[];
24229
+ /** @enum {string} */
24230
+ scope: "price" | "inventory" | "both";
23055
24231
  results: {
23056
- jobId: string;
24232
+ documentId: string;
23057
24233
  success: boolean;
23058
- retryJobId?: string;
24234
+ pending?: boolean;
23059
24235
  error?: string;
24236
+ price?: {
24237
+ success: boolean;
24238
+ importId?: string;
24239
+ pending?: boolean;
24240
+ error?: string;
24241
+ };
24242
+ inventory?: {
24243
+ success: boolean;
24244
+ importId?: string;
24245
+ pending?: boolean;
24246
+ error?: string;
24247
+ };
23060
24248
  }[];
23061
24249
  };
23062
24250
  };
23063
24251
  };
23064
24252
  };
23065
- /** @description Invalid request. */
24253
+ /** @description Invalid request or inventory source. */
23066
24254
  400: {
23067
24255
  headers: {
23068
24256
  [name: string]: unknown;
23069
24257
  };
23070
24258
  content?: never;
23071
24259
  };
23072
- /** @description Missing credentials. */
24260
+ /** @description Authentication required. */
23073
24261
  401: {
23074
24262
  headers: {
23075
24263
  [name: string]: unknown;
23076
24264
  };
23077
24265
  content?: never;
23078
24266
  };
23079
- /** @description Missing OAuth scope or organization capability. */
24267
+ /** @description Missing scope, role, or organization access. */
23080
24268
  403: {
23081
24269
  headers: {
23082
24270
  [name: string]: unknown;
23083
24271
  };
23084
24272
  content?: never;
23085
24273
  };
23086
- /** @description Resource not found in this organization. */
23087
- 404: {
24274
+ };
24275
+ };
24276
+ post_v1_products_bulk_update_status: {
24277
+ parameters: {
24278
+ query?: never;
24279
+ header?: never;
24280
+ path?: never;
24281
+ cookie?: never;
24282
+ };
24283
+ requestBody: {
24284
+ content: {
24285
+ "application/json": {
24286
+ organizationId?: string;
24287
+ imports: {
24288
+ /** @enum {string} */
24289
+ kind: "price" | "inventory";
24290
+ /** Format: uuid */
24291
+ importId: string;
24292
+ }[];
24293
+ /** @default false */
24294
+ includeRows?: boolean;
24295
+ /** @default 0 */
24296
+ rowOffset?: number;
24297
+ /** @default 100 */
24298
+ rowLimit?: number;
24299
+ };
24300
+ };
24301
+ };
24302
+ responses: {
24303
+ /** @description Saved import progress. */
24304
+ 200: {
24305
+ headers: {
24306
+ [name: string]: unknown;
24307
+ };
24308
+ content: {
24309
+ "application/json": {
24310
+ ok: boolean;
24311
+ apiVersion?: string;
24312
+ operationId?: string;
24313
+ status?: string;
24314
+ data: {
24315
+ success: boolean;
24316
+ succeededCount: number;
24317
+ failedCount: number;
24318
+ pendingCount: number;
24319
+ /** @enum {string} */
24320
+ status: "pending" | "completed" | "partial" | "failed";
24321
+ imports: {
24322
+ /** @enum {string} */
24323
+ kind: "price" | "inventory";
24324
+ /** Format: uuid */
24325
+ importId: string;
24326
+ }[];
24327
+ allTerminal: boolean;
24328
+ results: {
24329
+ /** @enum {string} */
24330
+ kind: "price" | "inventory";
24331
+ /** Format: uuid */
24332
+ importId: string;
24333
+ success: boolean;
24334
+ pending: boolean;
24335
+ status?: string;
24336
+ documentId?: string;
24337
+ totalRows?: number;
24338
+ validRows?: number;
24339
+ invalidRows?: number;
24340
+ unknownRows?: number;
24341
+ appliedRows?: number;
24342
+ error?: string;
24343
+ /** @constant */
24344
+ marketplaceVerification?: "not_verified";
24345
+ rows?: {
24346
+ [key: string]: unknown;
24347
+ }[];
24348
+ nextRowOffset?: number | null;
24349
+ }[];
24350
+ };
24351
+ };
24352
+ };
24353
+ };
24354
+ /** @description Invalid request or inventory source. */
24355
+ 400: {
24356
+ headers: {
24357
+ [name: string]: unknown;
24358
+ };
24359
+ content?: never;
24360
+ };
24361
+ /** @description Authentication required. */
24362
+ 401: {
24363
+ headers: {
24364
+ [name: string]: unknown;
24365
+ };
24366
+ content?: never;
24367
+ };
24368
+ /** @description Missing scope, role, or organization access. */
24369
+ 403: {
23088
24370
  headers: {
23089
24371
  [name: string]: unknown;
23090
24372
  };
@@ -23704,11 +24986,16 @@ interface operations {
23704
24986
  * }
23705
24987
  */
23706
24988
  "application/json": {
24989
+ /**
24990
+ * @description Required for variant products. Keep the master's variants, or add compatible source variants. Both publish the resulting variants to every preserved store listing in the same operation. Choose a master with existing variants; unmatched SKUs and conflicting options block merging. Standalone-only merges do not publish.
24991
+ * @enum {string}
24992
+ */
24993
+ variantStrategy?: "keep_master" | "merge_variants";
23707
24994
  /** @description True runs the same merge transaction and rolls it back, including database reference/constraint validation. No product changes are saved, no mutation events or duplicate refreshes run, and marketplace listings stay unchanged. Requires catalog:write. Omitted/false performs the reviewed merge. This differs from CLI --dry-run, which only prints a request. */
23708
24995
  dryRun?: boolean;
23709
24996
  /** @description Required only for session-authenticated calls. API credentials use their own organization. */
23710
24997
  organizationId?: string;
23711
- /** @description Ordered standalone catalog product IDs. Products are grouped by exact SKU; each group merges into one master. */
24998
+ /** @description Ordered root catalog product IDs. Products are grouped by exact SKU; each group merges into one master. */
23712
24999
  productIds: string[];
23713
25000
  /** @description Optional master per SKU group, chosen from productIds; at most one per group. Defaults to the first requested product of each group. The master keeps its content, images, price and stock. */
23714
25001
  masterProductIds?: string[];
@@ -23716,6 +25003,8 @@ interface operations {
23716
25003
  expectedGroups?: {
23717
25004
  productIds: string[];
23718
25005
  sku: string;
25006
+ /** @description Variant/store plan version from the preview. Required when pinning a variant merge; changes fail before catalog writes. */
25007
+ variantPlanVersion?: string;
23719
25008
  }[];
23720
25009
  explanation?: string;
23721
25010
  };
@@ -23748,6 +25037,27 @@ interface operations {
23748
25037
  survivingProductId?: string;
23749
25038
  mergedProductIds?: string[];
23750
25039
  wouldMergeProductIds?: string[];
25040
+ publishResults?: {
25041
+ /** @enum {string} */
25042
+ platform:
25043
+ | "shopee"
25044
+ | "lazada"
25045
+ | "tiktok"
25046
+ | "shopify"
25047
+ | "whatsapp"
25048
+ | "zalora"
25049
+ | "amazon"
25050
+ | "ebay";
25051
+ storeId: string;
25052
+ itemId: string;
25053
+ /** @enum {string} */
25054
+ visibility: "live" | "draft";
25055
+ success: boolean;
25056
+ queued: boolean;
25057
+ jobIds: string[];
25058
+ attempt?: number;
25059
+ error?: string;
25060
+ }[];
23751
25061
  error?: string;
23752
25062
  }[];
23753
25063
  succeededCount: number;
@@ -23760,6 +25070,28 @@ interface operations {
23760
25070
  disposition?: "survivor" | "merged";
23761
25071
  error?: string;
23762
25072
  }[];
25073
+ queued?: boolean;
25074
+ correlations?: {
25075
+ /** @enum {string} */
25076
+ kind:
25077
+ | "inventory_job"
25078
+ | "price_event"
25079
+ | "price_book_sync"
25080
+ | "publish_job"
25081
+ | "delist_batch"
25082
+ | "store_switch"
25083
+ | "omni_delete"
25084
+ | "zalora_import"
25085
+ | "enrichment_batch"
25086
+ | "order_action"
25087
+ | "return_action";
25088
+ id: string;
25089
+ platform?: string;
25090
+ storeId?: string;
25091
+ productId?: string;
25092
+ productIds?: string[];
25093
+ externalIds?: string[];
25094
+ }[];
23763
25095
  message?: string;
23764
25096
  error?: string;
23765
25097
  explanation?: string;
@@ -23824,11 +25156,16 @@ interface operations {
23824
25156
  * }
23825
25157
  */
23826
25158
  "application/json": {
25159
+ /**
25160
+ * @description Required for variant products. Keep the master's variants, or add compatible source variants. Both publish the resulting variants to every preserved store listing in the same operation. Choose a master with existing variants; unmatched SKUs and conflicting options block merging. Standalone-only merges do not publish.
25161
+ * @enum {string}
25162
+ */
25163
+ variantStrategy?: "keep_master" | "merge_variants";
23827
25164
  /** @description True runs the same merge transaction and rolls it back, including database reference/constraint validation. No product changes are saved, no mutation events or duplicate refreshes run, and marketplace listings stay unchanged. Requires catalog:write. Omitted/false performs the reviewed merge. This differs from CLI --dry-run, which only prints a request. */
23828
25165
  dryRun?: boolean;
23829
25166
  /** @description Required only for session-authenticated calls. API credentials use their own organization. */
23830
25167
  organizationId?: string;
23831
- /** @description Ordered standalone catalog product IDs. Products are grouped by exact SKU; each group merges into one master. */
25168
+ /** @description Ordered root catalog product IDs. Products are grouped by exact SKU; each group merges into one master. */
23832
25169
  productIds: string[];
23833
25170
  /** @description Optional master per SKU group, chosen from productIds; at most one per group. Defaults to the first requested product of each group. The master keeps its content, images, price and stock. */
23834
25171
  masterProductIds?: string[];
@@ -23836,6 +25173,8 @@ interface operations {
23836
25173
  expectedGroups?: {
23837
25174
  productIds: string[];
23838
25175
  sku: string;
25176
+ /** @description Variant/store plan version from the preview. Required when pinning a variant merge; changes fail before catalog writes. */
25177
+ variantPlanVersion?: string;
23839
25178
  }[];
23840
25179
  explanation?: string;
23841
25180
  };
@@ -23866,6 +25205,7 @@ interface operations {
23866
25205
  price: string | null;
23867
25206
  currency: string | null;
23868
25207
  inventoryQuantity: number | null;
25208
+ variantCount?: number;
23869
25209
  marketplaces: {
23870
25210
  /** @enum {string} */
23871
25211
  platform:
@@ -23895,6 +25235,7 @@ interface operations {
23895
25235
  price: string | null;
23896
25236
  currency: string | null;
23897
25237
  inventoryQuantity: number | null;
25238
+ variantCount?: number;
23898
25239
  marketplaces: {
23899
25240
  /** @enum {string} */
23900
25241
  platform:
@@ -23920,6 +25261,35 @@ interface operations {
23920
25261
  }[];
23921
25262
  /** @constant */
23922
25263
  errorCode?: "stock_source_requires_master";
25264
+ variantPlanVersion?: string;
25265
+ /** @enum {string} */
25266
+ variantStrategy?: "keep_master" | "merge_variants";
25267
+ variants?: {
25268
+ productId: string;
25269
+ sku: string | null;
25270
+ variationAttributes: {
25271
+ [key: string]: string;
25272
+ };
25273
+ price?: string | null;
25274
+ currency?: string | null;
25275
+ inventoryQuantity?: number | null;
25276
+ }[];
25277
+ publishTargets?: {
25278
+ /** @enum {string} */
25279
+ platform:
25280
+ | "shopee"
25281
+ | "lazada"
25282
+ | "tiktok"
25283
+ | "shopify"
25284
+ | "whatsapp"
25285
+ | "zalora"
25286
+ | "amazon"
25287
+ | "ebay";
25288
+ storeId: string;
25289
+ itemId: string;
25290
+ /** @enum {string} */
25291
+ visibility: "live" | "draft";
25292
+ }[];
23923
25293
  }[];
23924
25294
  };
23925
25295
  error?: string;
@@ -29021,10 +30391,10 @@ interface operations {
29021
30391
  [key: string]: unknown;
29022
30392
  };
29023
30393
  /**
29024
- * @default acp_stripe
30394
+ * @description When omitted, use the merchant's configured payment destination: Stripe, Qashier, HitPay, then x402.
29025
30395
  * @enum {string}
29026
30396
  */
29027
- payment_rail?: "acp_stripe" | "x402";
30397
+ payment_rail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
29028
30398
  metadata?: {
29029
30399
  [key: string]: unknown;
29030
30400
  };
@@ -29281,7 +30651,7 @@ interface operations {
29281
30651
  [key: string]: unknown;
29282
30652
  };
29283
30653
  /** @enum {string} */
29284
- payment_rail?: "acp_stripe" | "x402";
30654
+ payment_rail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
29285
30655
  metadata?: {
29286
30656
  [key: string]: unknown;
29287
30657
  };
@@ -29432,7 +30802,7 @@ interface operations {
29432
30802
  [key: string]: unknown;
29433
30803
  };
29434
30804
  /** @enum {string} */
29435
- payment_rail?: "acp_stripe" | "x402";
30805
+ payment_rail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
29436
30806
  metadata?: {
29437
30807
  [key: string]: unknown;
29438
30808
  };
@@ -31103,6 +32473,31 @@ declare class AgentsClient {
31103
32473
  protected readonly _http: OmniHttp;
31104
32474
  readonly general: AgentsGeneralClient;
31105
32475
  constructor(_http: OmniHttp);
32476
+ /**
32477
+ * Send a message to an agent
32478
+ *
32479
+ * Message the exact built-in or custom agent in the URL, using its saved model, instructions, tools, permissions and Programmatic starting mode.
32480
+
32481
+ ### Authentication
32482
+ 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`.
32483
+
32484
+ ### Conversation and execution
32485
+ - The same caller, agent and `clientThreadKey` continue one conversation. Different callers, agents and organizations are isolated.
32486
+ - No model, prompt or tool overrides are accepted.
32487
+ - `wait=false` queues durable work and returns 202; `wait=true` returns the final reply or pending approvals.
32488
+ - Send `decisions` with the same `cli
32489
+ *
32490
+ * `POST /api/v1/agents/{agentId}/messages`
32491
+ */
32492
+ 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"]>>;
32493
+ /**
32494
+ * Get an agent message run
32495
+ *
32496
+ * 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.
32497
+ *
32498
+ * `GET /api/v1/agents/{agentId}/runs/{runId}`
32499
+ */
32500
+ getRuns(request: OperationPath<operations["get_v1_agents_by_agentid_runs_by_runid"]> & OperationQuery<operations["get_v1_agents_by_agentid_runs_by_runid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_agents_by_agentid_runs_by_runid"]>>;
31106
32501
  }
31107
32502
  declare class AnalyticsClient {
31108
32503
  protected readonly _http: OmniHttp;
@@ -31300,7 +32695,7 @@ declare class ApiClient {
31300
32695
  *
31301
32696
  * ### Operations
31302
32697
 
31303
- create: offers[] (1–5), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1–20). complete: sessionId, paymentProof, and buyer approval of cartVersion, totalAmount and currency. pay: sessionId and the same exact approval; returns checkoutUrl for Stripe-hosted card entry.
32698
+ create: offers[] (1–5), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1–20). complete: sessionId, paymentProof, and buyer approval of cartVersion, totalAmount and currency. pay: sessionId and the same exact approval; returns checkoutUrl for Stripe, Qashier or HitPay hosted payment.
31304
32699
 
31305
32700
  ### Results and safeguards
31306
32701
 
@@ -31308,7 +32703,7 @@ declare class ApiClient {
31308
32703
 
31309
32704
  ### Payment
31310
32705
 
31311
- Completion reuses the existing Stripe ACP or x402 rail. Hosted card checkout requires this org
32706
+ Completion uses the configured Stripe ACP, x402, Qashier or HitPay rail. Qashi
31312
32707
  *
31313
32708
  * `POST /api/embed/{deploymentId}/checkout-sessions/{operation}`
31314
32709
  */
@@ -31394,7 +32789,13 @@ declare class BulkClient {
31394
32789
  /**
31395
32790
  * Start Catalog Operation
31396
32791
  *
31397
- * Durable bulk price/cost updates for 1–2000 products or variants. Requires catalog:write. Identical duplicates collapse in requested order; conflicting duplicates fail. An idempotencyKey freezes the original targets and versions. Reusing it with changed input returns 409. expectedUpdatedAt guards reviewed values. Catalog cost never syncs to marketplaces. syncToMarketplaces queues existing canonical marketplace services for every applicable connected listing. A failed target does not stop other targets. The operation continues after the caller disconnects. Read aggregate status, then page failures through bulk.results. Optional sessionId links progress to the initiating user's existing session.
32792
+ * ### Scope
32793
+
32794
+ Durable bulk price/cost updates for 1–2000 products or variants. Requires catalog:write.
32795
+
32796
+ ### Consistency and progress
32797
+
32798
+ Identical duplicates collapse in requested order; conflicting duplicates fail. An idempotencyKey freezes the original targets and versions. Reusing it with changed input returns 409. expectedUpdatedAt guards reviewed values. Catalog cost never syncs to marketplaces. syncToMarketplaces queues existing canonical marketplace services for every applicable connected listing. A failed target does not stop other targets. The operation continues after the caller disconnects. Read aggregate status, then page failures through bulk.results. Optional sessionId links progress to the initiating user's existing session.
31398
32799
  *
31399
32800
  * `POST /api/v1/catalog/operations`
31400
32801
  */
@@ -31474,6 +32875,8 @@ declare class CampaignsClient {
31474
32875
  *
31475
32876
  * Read the same imported-order campaign analytics as the application. Monetary totals are partitioned by currency. Optional analyticsWindow selects one campaign window; voucher utilisation limitations are explicit.
31476
32877
 
32878
+ ### Authorization
32879
+
31477
32880
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
31478
32881
  *
31479
32882
  * `GET /api/v1/campaigns/{campaignId}/analytics`
@@ -31484,6 +32887,8 @@ declare class CampaignsClient {
31484
32887
  *
31485
32888
  * Read the executing actor's campaign notification preference.
31486
32889
 
32890
+ ### Authorization
32891
+
31487
32892
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
31488
32893
  *
31489
32894
  * `GET /api/v1/campaigns/{campaignId}/notifications`
@@ -31494,6 +32899,8 @@ declare class CampaignsClient {
31494
32899
  *
31495
32900
  * Set only the executing actor's campaign notification preference. Does not change campaign delivery or other members' preferences.
31496
32901
 
32902
+ ### Authorization
32903
+
31497
32904
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
31498
32905
  *
31499
32906
  * `PUT /api/v1/campaigns/{campaignId}/notifications`
@@ -31504,6 +32911,8 @@ declare class CampaignsClient {
31504
32911
  *
31505
32912
  * Filter and page the canonical campaign plan or pending live proposal, with the same attention rules as the campaign editor.
31506
32913
 
32914
+ ### Authorization
32915
+
31507
32916
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
31508
32917
  *
31509
32918
  * `GET /api/v1/campaigns/{campaignId}/offers`
@@ -31514,6 +32923,8 @@ declare class CampaignsClient {
31514
32923
  *
31515
32924
  * Apply one action to 1–20 reviewed targets. Approve, run, approve_and_run, end, resume, retry, approve_change, discard_change, archive, restore or delete. Requires each expectedRevision and the pending version for live-change decisions. Named-approver and current role/store checks remain enforced. Duplicates execute once; partial failures remain explicit. Starting queues durable delivery; inspect campaign executions to verify marketplace outcomes.
31516
32925
 
32926
+ ### Authorization
32927
+
31517
32928
  Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
31518
32929
  *
31519
32930
  * `POST /api/v1/campaigns/actions`
@@ -31540,6 +32951,8 @@ declare class CampaignsClient {
31540
32951
  *
31541
32952
  * Import 1–10 uploaded Excel document IDs. Preview defaults to true; set preview=false to save. Re-upload one document with campaignId to update a campaign. To apply a running campaign immediately, use applyChanges=true with the reviewed expectedRevision and expectedPendingVersion (null when none); only the named approver with publish permission may apply. Changed values and qualifying SKU removals use canonical marketplace validation and durable sync. Requires documents:read in addition to promotions:write. No browser session is required.
31542
32953
 
32954
+ ### Authorization
32955
+
31543
32956
  Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
31544
32957
  *
31545
32958
  * `POST /api/v1/campaigns/import`
@@ -31558,6 +32971,8 @@ declare class CampaignsClient {
31558
32971
  *
31559
32972
  * Read 1–50 eligible draft promotions as campaign offers without creating or publishing promotions. Exact organization/store ownership and existing campaign links are checked.
31560
32973
 
32974
+ ### Authorization
32975
+
31561
32976
  Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
31562
32977
  *
31563
32978
  * `POST /api/v1/campaigns/promotion-options`
@@ -31568,6 +32983,8 @@ declare class CampaignsClient {
31568
32983
  *
31569
32984
  * Read-only preflight of 1–10 saved campaign IDs or proposed plans. Uses the same readiness, connected-store and offer validation as approval. shiftToNow returns a proposed shifted plan; syncMode=campaign_start selects Full sync. Neither option saves or publishes. Save the returned plan with the reviewed revision before approve_and_run. Current marketplace delivery is separate execution evidence.
31570
32985
 
32986
+ ### Authorization
32987
+
31571
32988
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
31572
32989
  *
31573
32990
  * `POST /api/v1/campaigns/validate`
@@ -31587,10 +33004,20 @@ declare class CatalogClient {
31587
33004
  * `GET /api/v1/catalog/items`
31588
33005
  */
31589
33006
  listItems(request?: OperationQuery<operations["get_v1_catalog_items"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_catalog_items"]>>;
33007
+ /**
33008
+ * Get Public Product Details
33009
+ *
33010
+ * Read the same stored public product details as /catalog/{productId}, including product capabilities, FAQs, localizations, citations, variants, recorded prices, stock and marketplace offers. No account or AI generation. Missing products are explicit per-target failures.
33011
+ *
33012
+ * `GET /api/v1/catalog/products`
33013
+ */
33014
+ listProducts(request: OperationQuery<operations["get_v1_catalog_products"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_catalog_products"]>>;
31590
33015
  /**
31591
33016
  * Query Catalog
31592
33017
  *
31593
- * Filter and project simple products and variants on the server. Requires catalog:read. Defaults to active sellable SKUs, excluding parent containers. costComparison=above_price compares known cost in each product's catalog currency using valid recorded conversions; unknown costs or unavailable conversions do not match. Fields bound the response. Maximum 500 rows per page. Omit counts after the first page with includeCount=false. No SQL input is accepted.
33018
+ * Filter and project simple products and variants on the server. Requires catalog:read. Defaults to active sellable SKUs, excluding parent containers. costComparison=above_price compares known cost in each product's catalog currency using valid recorded conversions; unknown costs or unavailable conversions do not match.
33019
+
33020
+ Fields bound the response. Maximum 500 rows per page. Omit counts after the first page with includeCount=false. No SQL input is accepted.
31594
33021
  *
31595
33022
  * `POST /api/v1/catalog/query`
31596
33023
  */
@@ -31647,6 +33074,18 @@ declare class CheckoutSessionsClient {
31647
33074
  * `POST /api/v1/checkout-sessions/{sessionId}/complete`
31648
33075
  */
31649
33076
  complete(request: OperationPath<operations["post_v1_checkout_sessions_by_sessionid_complete"]> & OperationQuery<operations["post_v1_checkout_sessions_by_sessionid_complete"]> & OperationBody<operations["post_v1_checkout_sessions_by_sessionid_complete"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_checkout_sessions_by_sessionid_complete"]>>;
33077
+ /**
33078
+ * Start payment for an approved checkout offer
33079
+ *
33080
+ * Requires checkout:write.
33081
+
33082
+ Starts seller Stripe, Qashier or HitPay hosted checkout. Buyer approval must match the current cart version, total and currency. Qashier and HitPay require a full delivery address before payment.
33083
+
33084
+ Qashier and HitPay support PayNow in Singapore when enabled for the merchant. Payment is confirmed using signed webhooks and authenticated server-side receipts. Closing the buyer page does not cancel or complete payment.
33085
+ *
33086
+ * `POST /api/v1/checkout-sessions/{sessionId}/pay`
33087
+ */
33088
+ pay(request: OperationPath<operations["post_v1_checkout_sessions_by_sessionid_pay"]> & OperationBody<operations["post_v1_checkout_sessions_by_sessionid_pay"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_checkout_sessions_by_sessionid_pay"]>>;
31650
33089
  }
31651
33090
  declare class CommerceClient {
31652
33091
  protected readonly _http: OmniHttp;
@@ -31686,7 +33125,9 @@ declare class CommerceClient {
31686
33125
  /**
31687
33126
  * Start Commerce Verification
31688
33127
  *
31689
- * Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read. Returns immediately with operationIds. Read bulk.status and bulk.results; a client timeout does not discard work. Fulfillment correlations continue to use commerce.verifyState.
33128
+ * Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read.
33129
+
33130
+ Returns immediately with operationIds. Read bulk.status and bulk.results; a client timeout does not discard work. Fulfillment correlations continue to use commerce.verifyState.
31690
33131
  *
31691
33132
  * `POST /api/v1/commerce/state/verify/jobs`
31692
33133
  */
@@ -31732,7 +33173,9 @@ declare class DocumentsClient {
31732
33173
  /**
31733
33174
  * Get Document
31734
33175
  *
31735
- * Read one knowledge base document and its indexing status. Requires `documents:read`. Set includeDownloadUrl=true for a private file URL valid for five minutes, suitable for SDK file downloads. URLs are scoped to the authenticated organization and are not returned for bank statements. Responses must not be cached.
33176
+ * Read one knowledge base document and its indexing status. Requires `documents:read`.
33177
+
33178
+ Set includeDownloadUrl=true for a private file URL valid for five minutes, suitable for SDK file downloads. URLs are scoped to the authenticated organization and are not returned for bank statements. Responses must not be cached.
31736
33179
  *
31737
33180
  * `GET /api/v1/documents/{documentId}`
31738
33181
  */
@@ -31762,6 +33205,54 @@ declare class FeedClient {
31762
33205
  */
31763
33206
  getLlmsTxt(request: OperationPath<operations["get_v1_feed_by_domain_llms_txt"]> & OperationQuery<operations["get_v1_feed_by_domain_llms_txt"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_feed_by_domain_llms_txt"]>>;
31764
33207
  }
33208
+ declare class FollowUpsClient {
33209
+ protected readonly _http: OmniHttp;
33210
+ constructor(_http: OmniHttp);
33211
+ /**
33212
+ * List Follow-ups
33213
+ *
33214
+ * Your follow-ups on every conversation, plus every follow-up on `threadId` (whoever left it) when you can open that conversation. Waiting follow-ups come first.
33215
+
33216
+ `state` is `waiting`, `fired`, `expired` (it waited past `expiresAt`), `canceled` or `failed` (`failure` says why: its owner lost access, or the conversation was stopped or its last run failed).
33217
+
33218
+ ### Authorization
33219
+
33220
+ Requires `agents:invoke`.
33221
+ *
33222
+ * `GET /api/v1/follow-ups`
33223
+ */
33224
+ list(request?: OperationQuery<operations["get_v1_follow_ups"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_follow_ups"]>>;
33225
+ /**
33226
+ * Create Follow-up
33227
+ *
33228
+ * Leave a one-shot follow-up on an assistant conversation you can open. Give exactly one of `at` (ISO 8601 with a timezone), `after` (a duration such as 90m, 4h, 14d or 2w) or `eventType` with an optional CEL `match` over `event` (the event's condition fields, as in AOP event triggers).
33229
+
33230
+ When it fires it continues `threadId` from `note` as you (`then=resume`, the default) or only emails you (`then=notify`). It never interrupts a run in progress: the continuation waits in the conversation's queue. A stopped conversation, or one whose last run failed, is not continued.
33231
+
33232
+ An event follow-up waits `expires` (10d by default) for its event; a timed one may be at most a year ahead.
33233
+
33234
+ ### Authorization
33235
+
33236
+ Requires `agents:invoke` with a person's credential (API key or session); OAuth client credentials
33237
+ *
33238
+ * `POST /api/v1/follow-ups`
33239
+ */
33240
+ create(request: OperationBody<operations["post_v1_follow_ups"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_follow_ups"]>>;
33241
+ /**
33242
+ * Cancel Follow-ups
33243
+ *
33244
+ * Cancel your follow-ups that have not fired, so they never fire. One that already fired, expired or was canceled reports why per id; another person's follow-up reads as not found.
33245
+
33246
+ Returns `followUpIds`, `succeededCount`, `failedCount` and ordered `results`; `ok` is true only when every id was canceled.
33247
+
33248
+ ### Authorization
33249
+
33250
+ Requires `agents:invoke`.
33251
+ *
33252
+ * `POST /api/v1/follow-ups/cancel`
33253
+ */
33254
+ cancel(request: OperationBody<operations["post_v1_follow_ups_cancel"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_follow_ups_cancel"]>>;
33255
+ }
31765
33256
  declare class ImagesClient {
31766
33257
  protected readonly _http: OmniHttp;
31767
33258
  constructor(_http: OmniHttp);
@@ -32142,7 +33633,13 @@ declare class PriceBooksClient {
32142
33633
  *
32143
33634
  * Create a marketplace price book rule for a platform (optional store and country). Does not change Omni product prices. Requires `price_books:write`.
32144
33635
 
33636
+ ### Pricing
33637
+
32145
33638
  `expression` is the buyer formula and replaces markup percent. `price` in that formula is the catalog price, not cost price. Without an expression, `marginValue` is the markup percent.
33639
+
33640
+ ### Direct checkout
33641
+
33642
+ The Direct checkout channel (`agentic_checkout`) applies immediately to direct checkout and public headline prices, defaults to catalog price with zero markup when no enabled rule matches, and requires null/omitted storeId and country. Marketplace rules only price their own offers; Direct checkout rules require no marketplace sync.
32146
33643
  *
32147
33644
  * `POST /api/v1/price-books`
32148
33645
  */
@@ -32402,6 +33899,30 @@ declare class ProductsClient {
32402
33899
  * `POST /api/v1/products/bulk-import/retry`
32403
33900
  */
32404
33901
  retryBulkImport(request: OperationBody<operations["post_v1_products_bulk_import_retry"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_bulk_import_retry"]>>;
33902
+ /**
33903
+ * Get Bulk Product Update Options
33904
+ *
33905
+ * List the same active stock-file-capable sources as Omni Bulk Update, including manual warehouses and supported CSV sources. Requires catalog:read and inventory.read. Resolve a sourceId from this organization-scoped result before starting inventory/both updates; an ambiguous choice requires seller selection.
33906
+ *
33907
+ * `GET /api/v1/products/bulk-update`
33908
+ */
33909
+ bulkUpdateOptions(request?: OperationQuery<operations["get_v1_products_bulk_update"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_products_bulk_update"]>>;
33910
+ /**
33911
+ * Bulk Update Product Prices and Stock
33912
+ *
33913
+ * Update existing catalog SKUs from 1–10 uploaded CSV/Excel documentIds (up to 10,000 rows per file), using the same price and inventory import services as Omni Bulk Update. Requires catalog:write and the corresponding product/inventory capabilities. No product creation. Exact SKU matching rejects duplicate/ambiguous and unknown SKUs; zero values are preserved. Inventory requires an authorized manual/CSV sourceId or locationId. Explicit column names override detection. syncToMarketplaces defaults true; optional marketplaces restricts existing listing sync across supported platforms. Returns ordered per-document results and saved imports references. Updates continue through the durable file-update workflow beyond the caller lifetime; acceptance is not completion. Pass every returned reference
33914
+ *
33915
+ * `POST /api/v1/products/bulk-update`
33916
+ */
33917
+ bulkUpdate(request: OperationBody<operations["post_v1_products_bulk_update"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_bulk_update"]>>;
33918
+ /**
33919
+ * Get Bulk Product Update Status
33920
+ *
33921
+ * Read up to 20 typed saved imports in requested order. Requires catalog:read and the corresponding product/inventory read capabilities. IDs are deduplicated by kind and importId. Pending imports are incomplete; invalid/unknown rows and missing organization-scoped imports remain explicit failures. Compact by default; includeRows returns at most 100 rows per import using rowOffset/rowLimit. Catalog stock apply does not certify marketplace state.
33922
+ *
33923
+ * `POST /api/v1/products/bulk-update/status`
33924
+ */
33925
+ bulkUpdateStatus(request: OperationBody<operations["post_v1_products_bulk_update_status"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_bulk_update_status"]>>;
32405
33926
  /**
32406
33927
  * Compare Product Market Prices
32407
33928
  *
@@ -32463,11 +33984,7 @@ declare class ProductsClient {
32463
33984
  *
32464
33985
  * Merge exact-SKU duplicate products into one master product per group. The master keeps its content, images, price and stock; the group's other products are archived into it, and orders, reviews, promotions and other catalog references move to the master.
32465
33986
 
32466
- All marketplace listings move to the master, including listings in other stores of the same marketplace. Different listing identities in the same store block the group. No marketplace listing is delisted, rewritten or republished.
32467
-
32468
- Each group commits independently; the response lists every group's outcome. Sources with inventory history or immutable order composition snapshots must be reconciled before archiving so returns and stock replays keep their targets.
32469
-
32470
- Supports every OmniCommerce marketplace. Variant families, bundles and product
33987
+ All marketplace listings move to the master, including listings in other stores of the same marketplace. Different listing identities in the same store block the group. Standalone-only merges do not publish. When variants remain, variantStrategy selects keeping the master's variant set or merging compatible source variants, and the same operation automatically publishes the resulting variants to every preserved store listing. Live/draft visibility is retained; the marketplace may require a replacement listing for an incompatible variant s
32471
33988
  *
32472
33989
  * `POST /api/v1/products/duplicates/merge`
32473
33990
  */
@@ -32489,7 +34006,9 @@ declare class ProductsClient {
32489
34006
  /**
32490
34007
  * Get Duplicate Scan
32491
34008
  *
32492
- * Read the same organization-scoped duplicate scan status as Products → Check duplicates. Requires catalog:read. queued/running means the durable scan is still in progress; failed includes errorMessage. completed exposes computedAt and the number of duplicate products. Results are read through products.list with status=duplicates and detail=full. The shared UI scan currently examines at most the 5,000 most recently updated non-archived root products; a completed scan is not proof that a larger catalog has been fully examined.
34009
+ * Read the same organization-scoped duplicate scan status as Products → Check duplicates. Requires catalog:read.
34010
+
34011
+ queued/running means the durable scan is still in progress; failed includes errorMessage. completed exposes computedAt and the number of duplicate products. Results are read through products.list with status=duplicates and detail=full. The shared UI scan currently examines at most the 5,000 most recently updated non-archived root products; a completed scan is not proof that a larger catalog has been fully examined.
32493
34012
  *
32494
34013
  * `GET /api/v1/products/duplicates/scan`
32495
34014
  */
@@ -32497,7 +34016,9 @@ declare class ProductsClient {
32497
34016
  /**
32498
34017
  * Scan Duplicate Products
32499
34018
  *
32500
- * Start the existing durable organization duplicate scan, equivalent to Products → Check duplicates. Requires catalog:write. An already queued/running scan is reused. This only refreshes duplicate evidence; it does not merge, publish or delist products. Read completion with products.getDuplicateScan, then list status=duplicates, duplicateType=sku, detail=full and page all matching results before previewing a merge. Uses the same 5,000-candidate scan limit as the UI.
34019
+ * Start the existing durable organization duplicate scan, equivalent to Products → Check duplicates. Requires catalog:write.
34020
+
34021
+ An already queued/running scan is reused. This only refreshes duplicate evidence; it does not merge, publish or delist products. Read completion with products.getDuplicateScan, then list status=duplicates, duplicateType=sku, detail=full and page all matching results before previewing a merge. Uses the same 5,000-candidate scan limit as the UI.
32501
34022
  *
32502
34023
  * `POST /api/v1/products/duplicates/scan`
32503
34024
  */
@@ -32606,6 +34127,8 @@ declare class PromotionsClient {
32606
34127
  *
32607
34128
  * Read canonical effective prices for up to 50 products, optionally scoped to an exact marketplace, store and country. Uses the same authoring permissions as the application's preview. Does not publish or change prices.
32608
34129
 
34130
+ ### Authorization
34131
+
32609
34132
  Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
32610
34133
  *
32611
34134
  * `POST /api/v1/promotions/{promotionId}/preview`
@@ -32630,7 +34153,9 @@ declare class PromotionsClient {
32630
34153
  /**
32631
34154
  * Assign Products to Promotion
32632
34155
  *
32633
- * Assign qualifying products and optional per-product discounts to a promotion. Active or scheduled promotions automatically queue durable marketplace delivery; drafts retain assignments for later publication. Requires `promotions:write` and current publish permission when publishing. Read promotion delivery to verify every target store.
34156
+ * Assign qualifying products and optional per-product discounts to a promotion. Active or scheduled promotions automatically queue durable marketplace delivery; drafts retain assignments for later publication.
34157
+
34158
+ Requires `promotions:write` and current publish permission when publishing. Read promotion delivery to verify every target store.
32634
34159
  *
32635
34160
  * `POST /api/v1/promotions/{promotionId}/products`
32636
34161
  */
@@ -32650,6 +34175,8 @@ declare class PromotionsClient {
32650
34175
  *
32651
34176
  * Create 1–50 promotions using the shared flat promotion-write contract, with qualifying products and per-product discounts. Set promotion.status=draft explicitly when preparing drafts; otherwise the canonical creation flow activates promotions and requires publish permission. Saved IDs and delivery evidence are retained on partial delivery failure; retry those IDs rather than creating duplicates.
32652
34177
 
34178
+ ### Authorization
34179
+
32653
34180
  Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
32654
34181
  *
32655
34182
  * `POST /api/v1/promotions/batch`
@@ -32660,6 +34187,8 @@ declare class PromotionsClient {
32660
34187
  *
32661
34188
  * Search campaign options with assigned promotions in the authenticated organization.
32662
34189
 
34190
+ ### Authorization
34191
+
32663
34192
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
32664
34193
  *
32665
34194
  * `GET /api/v1/promotions/campaign-options`
@@ -32670,6 +34199,8 @@ declare class PromotionsClient {
32670
34199
  *
32671
34200
  * Report every canonical marketplace and promotion kind, including native, projected, browser-AOP and unsupported capabilities and voucher subtypes. WhatsApp's lack of promotion publishing is explicit.
32672
34201
 
34202
+ ### Authorization
34203
+
32673
34204
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
32674
34205
  *
32675
34206
  * `GET /api/v1/promotions/capabilities`
@@ -32680,6 +34211,8 @@ declare class PromotionsClient {
32680
34211
  *
32681
34212
  * Delete 1–500 promotions with the canonical marketplace cleanup flow. Requires promotions.delete permission. Ordered per-target errors and partial failures remain explicit.
32682
34213
 
34214
+ ### Authorization
34215
+
32683
34216
  Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
32684
34217
  *
32685
34218
  * `POST /api/v1/promotions/delete`
@@ -32690,6 +34223,8 @@ declare class PromotionsClient {
32690
34223
  *
32691
34224
  * Read exact store/assignment delivery evidence for 1–50 promotions. A saved or active promotion is not proof that marketplace delivery succeeded. Check every returned deliveryStatuses entry, including explicit unsupported or unavailable states.
32692
34225
 
34226
+ ### Authorization
34227
+
32693
34228
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
32694
34229
  *
32695
34230
  * `POST /api/v1/promotions/delivery`
@@ -32700,6 +34235,8 @@ declare class PromotionsClient {
32700
34235
  *
32701
34236
  * Search or check up to 50 product IDs using canonical promotion assignment eligibility for the selected exact stores. Draft/unlisted products can be eligible for planning; live marketplace availability is rechecked during delivery.
32702
34237
 
34238
+ ### Authorization
34239
+
32703
34240
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
32704
34241
  *
32705
34242
  * `POST /api/v1/promotions/product-options`
@@ -32710,6 +34247,8 @@ declare class PromotionsClient {
32710
34247
  *
32711
34248
  * Activate/publish, pause or archive 1–500 promotions. Activation requires promotions.publish permission. Uses the canonical status transition and durable marketplace sync/teardown flow; verify delivery separately.
32712
34249
 
34250
+ ### Authorization
34251
+
32713
34252
  Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
32714
34253
  *
32715
34254
  * `POST /api/v1/promotions/status`
@@ -32720,6 +34259,8 @@ declare class PromotionsClient {
32720
34259
  *
32721
34260
  * Read-only validation of 1–50 saved promotion IDs or proposed definitions and product IDs. Reports marketplace terms, connected-store targeting and qualifying-product issues per target. Publishing still revalidates current state and can encounter marketplace API rejections.
32722
34261
 
34262
+ ### Authorization
34263
+
32723
34264
  Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
32724
34265
  *
32725
34266
  * `POST /api/v1/promotions/validate`
@@ -33178,6 +34719,7 @@ declare class OmniGeneratedClient {
33178
34719
  readonly documents: DocumentsClient;
33179
34720
  readonly evaluate: EvaluateClient;
33180
34721
  readonly feed: FeedClient;
34722
+ readonly followUps: FollowUpsClient;
33181
34723
  readonly images: ImagesClient;
33182
34724
  readonly inventory: InventoryClient;
33183
34725
  readonly jobs: JobsClient;
@@ -33222,6 +34764,7 @@ type OmniResources = {
33222
34764
  documents: DocumentsClient;
33223
34765
  evaluate: EvaluateClient;
33224
34766
  feed: FeedClient;
34767
+ followUps: FollowUpsClient;
33225
34768
  images: ImagesClient;
33226
34769
  inventory: InventoryClient;
33227
34770
  jobs: JobsClient;
@@ -33290,7 +34833,7 @@ declare function constructEvent(payload: string | Uint8Array, headers: WebhookHe
33290
34833
  toleranceInSeconds?: number;
33291
34834
  }): Promise<ConstructedWebhookEvent>;
33292
34835
 
33293
- declare const SDK_VERSION = "0.22.0";
34836
+ declare const SDK_VERSION = "0.23.0";
33294
34837
 
33295
34838
  type ProductCreatedWebhookEvent = components["schemas"]["ProductCreatedWebhookEvent"];
33296
34839
  type ProductUpdatedWebhookEvent = components["schemas"]["ProductUpdatedWebhookEvent"];