@omni-commerce/sdk 0.24.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/index.cjs +208 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1693 -24
- package/dist/index.d.ts +1693 -24
- package/dist/index.js +208 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -365,7 +365,11 @@ interface paths {
|
|
|
365
365
|
};
|
|
366
366
|
/**
|
|
367
367
|
* Get Order Analytics
|
|
368
|
-
* @description Order KPIs with their change against the previous period, a daily trend, sales by order status and by marketplace, and the top products by net sales. Repeat buyers are counted but not listed.
|
|
368
|
+
* @description Order KPIs with their change against the previous period, a daily trend, sales by order status and by marketplace, and the top products by net sales. Repeat buyers are counted but not listed.
|
|
369
|
+
*
|
|
370
|
+
* ### Order attribution
|
|
371
|
+
*
|
|
372
|
+
* `attribution` contains normalized order channels and creator handles, Net Revenue rankings partitioned by currency and exact store, and evidence coverage. Joint creator/channel groups count each order once; missing evidence is explicit. Matches the Orders analysis page. Requires `analytics:read`.
|
|
369
373
|
*
|
|
370
374
|
* Amounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.
|
|
371
375
|
*/
|
|
@@ -1391,7 +1395,7 @@ interface paths {
|
|
|
1391
1395
|
* Upload Document
|
|
1392
1396
|
* @description Upload one file to the knowledge base as multipart/form-data. Requires `documents:write`.
|
|
1393
1397
|
*
|
|
1394
|
-
* Accepted: PDF up to 20 MB, Word (.docx) and PowerPoint (.pptx) up to 20 MB, Excel (.xlsx/.xlsm) up to
|
|
1398
|
+
* Accepted: PDF up to 20 MB, Word (.docx) and PowerPoint (.pptx) up to 20 MB, Excel (.xlsx/.xlsm) up to 20 MB, images up to 8 MB, CSV and Markdown up to 2 MB. PDFs, Word, PowerPoint, Markdown, and images are indexed in the background; poll `GET /api/v1/documents/{documentId}` until `status` is `completed`. CSV and Excel are stored for agents to read but are not indexed.
|
|
1395
1399
|
*/
|
|
1396
1400
|
post: operations["post_v1_documents"];
|
|
1397
1401
|
delete?: never;
|
|
@@ -1587,6 +1591,8 @@ interface paths {
|
|
|
1587
1591
|
* Get Developer Job Status
|
|
1588
1592
|
* @description Fetch shared async status for developer-platform operations, including product workflow jobs, bulk CSV import jobs, Look generation jobs, import jobs, enrichment jobs, price comparison jobs, and sync jobs.
|
|
1589
1593
|
*
|
|
1594
|
+
* Marketplace-only bulk imports expose data.deferStoreSelection: true. For imports with automatic publishing enabled, inspect data.publishing for per-store results.
|
|
1595
|
+
*
|
|
1590
1596
|
* Price comparison jobs expose partial progress in data.results and their final batch result in data.result; completed means processing finished, so inspect data.result.success for comparison failures.
|
|
1591
1597
|
*/
|
|
1592
1598
|
get: operations["get_v1_jobs_by_jobid"];
|
|
@@ -2455,6 +2461,10 @@ interface paths {
|
|
|
2455
2461
|
* Bulk Import Products from JSON or CSV
|
|
2456
2462
|
* @description Queue a bulk product import for the authenticated organization.
|
|
2457
2463
|
*
|
|
2464
|
+
* ### Destinations
|
|
2465
|
+
*
|
|
2466
|
+
* Supply targetMarketplaces and marketplaceStoreSelections to prepare for specific connected stores. Set deferStoreSelection=true to choose marketplaces only and assign stores later with POST /api/v1/products/marketplace-stores. Omit marketplaceStoreSelections and leave workflow.publish off when deferring. Automatic publishing requires catalog:sync in addition to catalog:write.
|
|
2467
|
+
*
|
|
2458
2468
|
* Supply explicit SKU options in each row's `variationAttributes` and native marketplace attributes in `marketplaceAttributes`. Enrichment never infers SKU options. At Zalora publish time, a missing required Size defaults to One Size only when valid for the selected category and supplied size system. Supplied sizes are preserved; missing or incompatible size systems and other required options block publishing. Each row remains a standalone product; no child variants are created for the default.
|
|
2459
2469
|
*
|
|
2460
2470
|
* ### Input options
|
|
@@ -2814,13 +2824,13 @@ interface paths {
|
|
|
2814
2824
|
*
|
|
2815
2825
|
* ### Enrichment options
|
|
2816
2826
|
*
|
|
2817
|
-
* Fields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included; images are not queued here. Optional marketplaceStoreSelections maps each marketplace to an array of connected store IDs. Multiple stores on one marketplace get independent category and attribute reviews in the same review group. Set includeListingCopy=false for taxonomy only. Store countries come from the authenticated organization connections.
|
|
2827
|
+
* Fields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included; images are not queued here. Optional marketplaceStoreSelections maps each marketplace to an array of connected store IDs. Multiple stores on one marketplace get independent category and attribute reviews in the same review group. Set includeListingCopy=false for taxonomy only. Store countries come from the authenticated organization connections. Use deferredMarketplaces to enrich product content and save marketplace drafts for later store assignment. This option excludes store-specific taxonomy and publish=true. Assign stores with POST /api/v1/products/marketplace-stores before publishing.
|
|
2818
2828
|
*
|
|
2819
2829
|
* autoApplyHighConfidence defaults to false. Independent enrichmentAutoApplyThreshold and taxonomyAutoApplyThreshold accept 0.62–1; omitted thresholds use organization settings. Low-confidence or blocked proposals remain in Review. AI usage is billed to the authenticated organization.
|
|
2820
2830
|
*
|
|
2821
2831
|
* ### Publishing after approval
|
|
2822
2832
|
*
|
|
2823
|
-
* Set publish=true (default false) to queue publishing after every required Review scope is approved and applied. This additionally requires catalog:write. Automatic and manual approvals use the same durable continuation. Selected stores are captured at queue time; without explicit destinations the product's saved marketplace assignments are used. Pending, rejected, failed or cancelled scopes block that product while eligible products continue. Accepted publish jobs are distinct from successful marketplace publication. Open links.review to inspect reviews and per-store publishing receipts.
|
|
2833
|
+
* Set publish=true (default false) to queue publishing after every required Review scope is approved and applied. This additionally requires catalog:write and catalog:sync. Automatic and manual approvals use the same durable continuation. Selected stores are captured at queue time; without explicit destinations the product's saved marketplace assignments are used. Pending, rejected, failed or cancelled scopes block that product while eligible products continue. Accepted publish jobs are distinct from successful marketplace publication. Open links.review to inspect reviews and per-store publishing receipts.
|
|
2824
2834
|
*/
|
|
2825
2835
|
post: operations["post_v1_products_enrich"];
|
|
2826
2836
|
delete?: never;
|
|
@@ -2829,6 +2839,34 @@ interface paths {
|
|
|
2829
2839
|
patch?: never;
|
|
2830
2840
|
trace?: never;
|
|
2831
2841
|
};
|
|
2842
|
+
"/api/v1/products/marketplace-stores": {
|
|
2843
|
+
parameters: {
|
|
2844
|
+
query?: never;
|
|
2845
|
+
header?: never;
|
|
2846
|
+
path?: never;
|
|
2847
|
+
cookie?: never;
|
|
2848
|
+
};
|
|
2849
|
+
get?: never;
|
|
2850
|
+
put?: never;
|
|
2851
|
+
/**
|
|
2852
|
+
* Assign Product Marketplace Stores
|
|
2853
|
+
* @description Requires catalog:write. Assign one or more connected stores per marketplace to 1–100 products, including marketplace-only drafts. Get exact store IDs and countries from GET /api/v1/marketplaces/connected.
|
|
2854
|
+
*
|
|
2855
|
+
* ### Store selection
|
|
2856
|
+
*
|
|
2857
|
+
* Each product family is updated independently. Existing listings keep their remote identities. Reusing a store ID across countries requires storeCountries to identify the connection. Each product can use only one country per store ID. Copy compatible taxonomy from an existing sourceStoreId when supplied.
|
|
2858
|
+
*
|
|
2859
|
+
* ### Publish assigned stores
|
|
2860
|
+
*
|
|
2861
|
+
* The response includes exact data.storeTargets for publishing the successful products. HTTP 207 means at least one product failed. Inspect each result before passing those storeTargets to POST /api/v1/products/{productId}/publish.
|
|
2862
|
+
*/
|
|
2863
|
+
post: operations["post_v1_products_marketplace_stores"];
|
|
2864
|
+
delete?: never;
|
|
2865
|
+
options?: never;
|
|
2866
|
+
head?: never;
|
|
2867
|
+
patch?: never;
|
|
2868
|
+
trace?: never;
|
|
2869
|
+
};
|
|
2832
2870
|
"/api/v1/promotions": {
|
|
2833
2871
|
parameters: {
|
|
2834
2872
|
query?: never;
|
|
@@ -3740,6 +3778,148 @@ interface paths {
|
|
|
3740
3778
|
patch?: never;
|
|
3741
3779
|
trace?: never;
|
|
3742
3780
|
};
|
|
3781
|
+
"/api/v1/wiki/export": {
|
|
3782
|
+
parameters: {
|
|
3783
|
+
query?: never;
|
|
3784
|
+
header?: never;
|
|
3785
|
+
path?: never;
|
|
3786
|
+
cookie?: never;
|
|
3787
|
+
};
|
|
3788
|
+
/**
|
|
3789
|
+
* Export Wiki
|
|
3790
|
+
* @description Export every active General page as a markdown file with YAML front matter, and the glossary (titles, aliases, related pages) as SKOS in JSON-LD. Requires documents:read.
|
|
3791
|
+
*/
|
|
3792
|
+
get: operations["get_v1_wiki_export"];
|
|
3793
|
+
put?: never;
|
|
3794
|
+
post?: never;
|
|
3795
|
+
delete?: never;
|
|
3796
|
+
options?: never;
|
|
3797
|
+
head?: never;
|
|
3798
|
+
patch?: never;
|
|
3799
|
+
trace?: never;
|
|
3800
|
+
};
|
|
3801
|
+
"/api/v1/wiki/import": {
|
|
3802
|
+
parameters: {
|
|
3803
|
+
query?: never;
|
|
3804
|
+
header?: never;
|
|
3805
|
+
path?: never;
|
|
3806
|
+
cookie?: never;
|
|
3807
|
+
};
|
|
3808
|
+
get?: never;
|
|
3809
|
+
put?: never;
|
|
3810
|
+
/**
|
|
3811
|
+
* Import Wiki
|
|
3812
|
+
* @description Create or update General pages from markdown files. Requires documents:write. Front matter may set title, summary, aliases, hiddenLabels, appliesTo and reviewBy; without front matter the first # heading is the title.
|
|
3813
|
+
*
|
|
3814
|
+
* Definitions from older exports are imported into the page body.
|
|
3815
|
+
*
|
|
3816
|
+
* A file updates the page that already holds its title and otherwise creates one, so importing an export is idempotent. Each file is saved on its own and reported separately.
|
|
3817
|
+
*/
|
|
3818
|
+
post: operations["post_v1_wiki_import"];
|
|
3819
|
+
delete?: never;
|
|
3820
|
+
options?: never;
|
|
3821
|
+
head?: never;
|
|
3822
|
+
patch?: never;
|
|
3823
|
+
trace?: never;
|
|
3824
|
+
};
|
|
3825
|
+
"/api/v1/wiki/pages": {
|
|
3826
|
+
parameters: {
|
|
3827
|
+
query?: never;
|
|
3828
|
+
header?: never;
|
|
3829
|
+
path?: never;
|
|
3830
|
+
cookie?: never;
|
|
3831
|
+
};
|
|
3832
|
+
/**
|
|
3833
|
+
* List Wiki Pages
|
|
3834
|
+
* @description List the organization's wiki pages with title, aliases and an excerpt. Requires documents:read. Filter with q (title, alias, summary and fragment text) and status (active, stale, archived); sort by newest, title or most_used.
|
|
3835
|
+
*/
|
|
3836
|
+
get: operations["get_v1_wiki_pages"];
|
|
3837
|
+
put?: never;
|
|
3838
|
+
/**
|
|
3839
|
+
* Create Wiki Page
|
|
3840
|
+
* @description Create a wiki page. Requires documents:write. The page is saved directly; the approval card applies only to changes an agent proposes in chat.
|
|
3841
|
+
*
|
|
3842
|
+
* Titles and aliases are unique within the organization. Link other pages in the body as [[Page title]]. The page is findable by name at once; fragment, meaning and graph search follow within about a minute.
|
|
3843
|
+
*/
|
|
3844
|
+
post: operations["post_v1_wiki_pages"];
|
|
3845
|
+
delete?: never;
|
|
3846
|
+
options?: never;
|
|
3847
|
+
head?: never;
|
|
3848
|
+
patch?: never;
|
|
3849
|
+
trace?: never;
|
|
3850
|
+
};
|
|
3851
|
+
"/api/v1/wiki/pages/{pageId}": {
|
|
3852
|
+
parameters: {
|
|
3853
|
+
query?: never;
|
|
3854
|
+
header?: never;
|
|
3855
|
+
path?: never;
|
|
3856
|
+
cookie?: never;
|
|
3857
|
+
};
|
|
3858
|
+
/**
|
|
3859
|
+
* Get Wiki Page
|
|
3860
|
+
* @description Read one page with its body, labels, linked pages and pages that link to it. Requires documents:read.
|
|
3861
|
+
*/
|
|
3862
|
+
get: operations["get_v1_wiki_pages_by_pageid"];
|
|
3863
|
+
put?: never;
|
|
3864
|
+
post?: never;
|
|
3865
|
+
/**
|
|
3866
|
+
* Archive Wiki Page
|
|
3867
|
+
* @description Archive the page. Requires documents:write. Agents stop using it and it leaves search; its history and names are kept, and PATCH with status active restores it.
|
|
3868
|
+
*/
|
|
3869
|
+
delete: operations["delete_v1_wiki_pages_by_pageid"];
|
|
3870
|
+
options?: never;
|
|
3871
|
+
head?: never;
|
|
3872
|
+
/**
|
|
3873
|
+
* Update Wiki Page
|
|
3874
|
+
* @description Save a new revision. Requires documents:write. Send only the fields that change; aliases and appliesTo replace the existing lists.
|
|
3875
|
+
*
|
|
3876
|
+
* Pass baseRevisionNumber to refuse the update with 409 if the page changed since you read it. status archives or restores the page. restoreRevisionNumber brings back an earlier revision as the newest one and ignores other fields.
|
|
3877
|
+
*/
|
|
3878
|
+
patch: operations["patch_v1_wiki_pages_by_pageid"];
|
|
3879
|
+
trace?: never;
|
|
3880
|
+
};
|
|
3881
|
+
"/api/v1/wiki/pages/{pageId}/revisions": {
|
|
3882
|
+
parameters: {
|
|
3883
|
+
query?: never;
|
|
3884
|
+
header?: never;
|
|
3885
|
+
path?: never;
|
|
3886
|
+
cookie?: never;
|
|
3887
|
+
};
|
|
3888
|
+
/**
|
|
3889
|
+
* List Wiki Page Revisions
|
|
3890
|
+
* @description Every saved revision of a page, newest first, with author, origin and change summary. Requires documents:read.
|
|
3891
|
+
*/
|
|
3892
|
+
get: operations["get_v1_wiki_pages_by_pageid_revisions"];
|
|
3893
|
+
put?: never;
|
|
3894
|
+
post?: never;
|
|
3895
|
+
delete?: never;
|
|
3896
|
+
options?: never;
|
|
3897
|
+
head?: never;
|
|
3898
|
+
patch?: never;
|
|
3899
|
+
trace?: never;
|
|
3900
|
+
};
|
|
3901
|
+
"/api/v1/wiki/search": {
|
|
3902
|
+
parameters: {
|
|
3903
|
+
query?: never;
|
|
3904
|
+
header?: never;
|
|
3905
|
+
path?: never;
|
|
3906
|
+
cookie?: never;
|
|
3907
|
+
};
|
|
3908
|
+
get?: never;
|
|
3909
|
+
put?: never;
|
|
3910
|
+
/**
|
|
3911
|
+
* Search Wiki
|
|
3912
|
+
* @description Search the wiki and return the best-matching fragments, the same search agents use. Requires documents:read.
|
|
3913
|
+
*
|
|
3914
|
+
* Results fuse name matches, full text, meaning, graph relationships and page links. retrieval reports which signals were available; degraded is true when the graph or meaning search could not be used.
|
|
3915
|
+
*/
|
|
3916
|
+
post: operations["post_v1_wiki_search"];
|
|
3917
|
+
delete?: never;
|
|
3918
|
+
options?: never;
|
|
3919
|
+
head?: never;
|
|
3920
|
+
patch?: never;
|
|
3921
|
+
trace?: never;
|
|
3922
|
+
};
|
|
3743
3923
|
"/api/v1/zalora/import": {
|
|
3744
3924
|
parameters: {
|
|
3745
3925
|
query?: never;
|
|
@@ -7937,6 +8117,48 @@ interface operations {
|
|
|
7937
8117
|
[key: string]: string;
|
|
7938
8118
|
};
|
|
7939
8119
|
data: {
|
|
8120
|
+
attribution: {
|
|
8121
|
+
channels: {
|
|
8122
|
+
key: string;
|
|
8123
|
+
label: string;
|
|
8124
|
+
platform: string;
|
|
8125
|
+
accountId: string | null;
|
|
8126
|
+
currency: string | null;
|
|
8127
|
+
attribution: {
|
|
8128
|
+
channels: string[];
|
|
8129
|
+
creatorHandles: string[];
|
|
8130
|
+
storefront: string | null;
|
|
8131
|
+
};
|
|
8132
|
+
/** @description Seller Analytics Net Revenue, in the row currency. */
|
|
8133
|
+
revenue: number;
|
|
8134
|
+
orderCount: number;
|
|
8135
|
+
unitsSold: number;
|
|
8136
|
+
}[];
|
|
8137
|
+
creators: {
|
|
8138
|
+
key: string;
|
|
8139
|
+
label: string;
|
|
8140
|
+
platform: string;
|
|
8141
|
+
accountId: string | null;
|
|
8142
|
+
currency: string | null;
|
|
8143
|
+
attribution: {
|
|
8144
|
+
channels: string[];
|
|
8145
|
+
creatorHandles: string[];
|
|
8146
|
+
storefront: string | null;
|
|
8147
|
+
};
|
|
8148
|
+
/** @description Seller Analytics Net Revenue, in the row currency. */
|
|
8149
|
+
revenue: number;
|
|
8150
|
+
orderCount: number;
|
|
8151
|
+
unitsSold: number;
|
|
8152
|
+
}[];
|
|
8153
|
+
coverage: {
|
|
8154
|
+
orderCount: number;
|
|
8155
|
+
withChannel: number;
|
|
8156
|
+
withCreator: number;
|
|
8157
|
+
multipleChannels: number;
|
|
8158
|
+
multipleCreators: number;
|
|
8159
|
+
};
|
|
8160
|
+
notes: string[];
|
|
8161
|
+
};
|
|
7940
8162
|
filters: {
|
|
7941
8163
|
from: string;
|
|
7942
8164
|
to: string;
|
|
@@ -11538,6 +11760,36 @@ interface operations {
|
|
|
11538
11760
|
offerId: string;
|
|
11539
11761
|
name: string;
|
|
11540
11762
|
error: string;
|
|
11763
|
+
windowId?: string;
|
|
11764
|
+
correction?: string;
|
|
11765
|
+
workbookLocations?: {
|
|
11766
|
+
sheet: string;
|
|
11767
|
+
row?: number;
|
|
11768
|
+
sku?: string;
|
|
11769
|
+
itemId?: string;
|
|
11770
|
+
ean?: string;
|
|
11771
|
+
sourceReference?: string;
|
|
11772
|
+
}[];
|
|
11773
|
+
storeErrors?: {
|
|
11774
|
+
/** @enum {string} */
|
|
11775
|
+
marketplace:
|
|
11776
|
+
| "shopee"
|
|
11777
|
+
| "lazada"
|
|
11778
|
+
| "tiktok"
|
|
11779
|
+
| "shopify"
|
|
11780
|
+
| "whatsapp"
|
|
11781
|
+
| "zalora"
|
|
11782
|
+
| "amazon"
|
|
11783
|
+
| "ebay";
|
|
11784
|
+
storeId: string;
|
|
11785
|
+
country: string;
|
|
11786
|
+
errors: string[];
|
|
11787
|
+
assignmentErrors?: {
|
|
11788
|
+
productId: string;
|
|
11789
|
+
sku: string | null;
|
|
11790
|
+
error: string;
|
|
11791
|
+
}[];
|
|
11792
|
+
}[];
|
|
11541
11793
|
}[];
|
|
11542
11794
|
scheduleIssues: {
|
|
11543
11795
|
windowId: string;
|
|
@@ -11745,6 +11997,36 @@ interface operations {
|
|
|
11745
11997
|
offerId: string;
|
|
11746
11998
|
name: string;
|
|
11747
11999
|
error: string;
|
|
12000
|
+
windowId?: string;
|
|
12001
|
+
correction?: string;
|
|
12002
|
+
workbookLocations?: {
|
|
12003
|
+
sheet: string;
|
|
12004
|
+
row?: number;
|
|
12005
|
+
sku?: string;
|
|
12006
|
+
itemId?: string;
|
|
12007
|
+
ean?: string;
|
|
12008
|
+
sourceReference?: string;
|
|
12009
|
+
}[];
|
|
12010
|
+
storeErrors?: {
|
|
12011
|
+
/** @enum {string} */
|
|
12012
|
+
marketplace:
|
|
12013
|
+
| "shopee"
|
|
12014
|
+
| "lazada"
|
|
12015
|
+
| "tiktok"
|
|
12016
|
+
| "shopify"
|
|
12017
|
+
| "whatsapp"
|
|
12018
|
+
| "zalora"
|
|
12019
|
+
| "amazon"
|
|
12020
|
+
| "ebay";
|
|
12021
|
+
storeId: string;
|
|
12022
|
+
country: string;
|
|
12023
|
+
errors: string[];
|
|
12024
|
+
assignmentErrors?: {
|
|
12025
|
+
productId: string;
|
|
12026
|
+
sku: string | null;
|
|
12027
|
+
error: string;
|
|
12028
|
+
}[];
|
|
12029
|
+
}[];
|
|
11748
12030
|
}[];
|
|
11749
12031
|
scheduleIssues: {
|
|
11750
12032
|
windowId: string;
|
|
@@ -12230,6 +12512,36 @@ interface operations {
|
|
|
12230
12512
|
offerId: string;
|
|
12231
12513
|
name: string;
|
|
12232
12514
|
error: string;
|
|
12515
|
+
windowId?: string;
|
|
12516
|
+
correction?: string;
|
|
12517
|
+
workbookLocations?: {
|
|
12518
|
+
sheet: string;
|
|
12519
|
+
row?: number;
|
|
12520
|
+
sku?: string;
|
|
12521
|
+
itemId?: string;
|
|
12522
|
+
ean?: string;
|
|
12523
|
+
sourceReference?: string;
|
|
12524
|
+
}[];
|
|
12525
|
+
storeErrors?: {
|
|
12526
|
+
/** @enum {string} */
|
|
12527
|
+
marketplace:
|
|
12528
|
+
| "shopee"
|
|
12529
|
+
| "lazada"
|
|
12530
|
+
| "tiktok"
|
|
12531
|
+
| "shopify"
|
|
12532
|
+
| "whatsapp"
|
|
12533
|
+
| "zalora"
|
|
12534
|
+
| "amazon"
|
|
12535
|
+
| "ebay";
|
|
12536
|
+
storeId: string;
|
|
12537
|
+
country: string;
|
|
12538
|
+
errors: string[];
|
|
12539
|
+
assignmentErrors?: {
|
|
12540
|
+
productId: string;
|
|
12541
|
+
sku: string | null;
|
|
12542
|
+
error: string;
|
|
12543
|
+
}[];
|
|
12544
|
+
}[];
|
|
12233
12545
|
}[];
|
|
12234
12546
|
scheduleIssues: {
|
|
12235
12547
|
windowId: string;
|
|
@@ -12682,6 +12994,36 @@ interface operations {
|
|
|
12682
12994
|
offerId: string;
|
|
12683
12995
|
name: string;
|
|
12684
12996
|
error: string;
|
|
12997
|
+
windowId?: string;
|
|
12998
|
+
correction?: string;
|
|
12999
|
+
workbookLocations?: {
|
|
13000
|
+
sheet: string;
|
|
13001
|
+
row?: number;
|
|
13002
|
+
sku?: string;
|
|
13003
|
+
itemId?: string;
|
|
13004
|
+
ean?: string;
|
|
13005
|
+
sourceReference?: string;
|
|
13006
|
+
}[];
|
|
13007
|
+
storeErrors?: {
|
|
13008
|
+
/** @enum {string} */
|
|
13009
|
+
marketplace:
|
|
13010
|
+
| "shopee"
|
|
13011
|
+
| "lazada"
|
|
13012
|
+
| "tiktok"
|
|
13013
|
+
| "shopify"
|
|
13014
|
+
| "whatsapp"
|
|
13015
|
+
| "zalora"
|
|
13016
|
+
| "amazon"
|
|
13017
|
+
| "ebay";
|
|
13018
|
+
storeId: string;
|
|
13019
|
+
country: string;
|
|
13020
|
+
errors: string[];
|
|
13021
|
+
assignmentErrors?: {
|
|
13022
|
+
productId: string;
|
|
13023
|
+
sku: string | null;
|
|
13024
|
+
error: string;
|
|
13025
|
+
}[];
|
|
13026
|
+
}[];
|
|
12685
13027
|
}[];
|
|
12686
13028
|
scheduleIssues: {
|
|
12687
13029
|
windowId: string;
|
|
@@ -12765,6 +13107,8 @@ interface operations {
|
|
|
12765
13107
|
| "discard_change";
|
|
12766
13108
|
expectedRevision: number;
|
|
12767
13109
|
expectedPendingVersion?: number;
|
|
13110
|
+
/** @description Fingerprint from the marketplace validation report, supplied only after the user explicitly acknowledges its seller-review findings for this revision and proposal version. */
|
|
13111
|
+
sellerReviewAcknowledgement?: string;
|
|
12768
13112
|
/** @description Required for session auth. Optional for an API key, which already identifies the organization. */
|
|
12769
13113
|
organizationId?: string;
|
|
12770
13114
|
};
|
|
@@ -12905,6 +13249,36 @@ interface operations {
|
|
|
12905
13249
|
offerId: string;
|
|
12906
13250
|
name: string;
|
|
12907
13251
|
error: string;
|
|
13252
|
+
windowId?: string;
|
|
13253
|
+
correction?: string;
|
|
13254
|
+
workbookLocations?: {
|
|
13255
|
+
sheet: string;
|
|
13256
|
+
row?: number;
|
|
13257
|
+
sku?: string;
|
|
13258
|
+
itemId?: string;
|
|
13259
|
+
ean?: string;
|
|
13260
|
+
sourceReference?: string;
|
|
13261
|
+
}[];
|
|
13262
|
+
storeErrors?: {
|
|
13263
|
+
/** @enum {string} */
|
|
13264
|
+
marketplace:
|
|
13265
|
+
| "shopee"
|
|
13266
|
+
| "lazada"
|
|
13267
|
+
| "tiktok"
|
|
13268
|
+
| "shopify"
|
|
13269
|
+
| "whatsapp"
|
|
13270
|
+
| "zalora"
|
|
13271
|
+
| "amazon"
|
|
13272
|
+
| "ebay";
|
|
13273
|
+
storeId: string;
|
|
13274
|
+
country: string;
|
|
13275
|
+
errors: string[];
|
|
13276
|
+
assignmentErrors?: {
|
|
13277
|
+
productId: string;
|
|
13278
|
+
sku: string | null;
|
|
13279
|
+
error: string;
|
|
13280
|
+
}[];
|
|
13281
|
+
}[];
|
|
12908
13282
|
}[];
|
|
12909
13283
|
scheduleIssues: {
|
|
12910
13284
|
windowId: string;
|
|
@@ -13477,6 +13851,8 @@ interface operations {
|
|
|
13477
13851
|
campaignId: string;
|
|
13478
13852
|
expectedRevision: number;
|
|
13479
13853
|
expectedPendingVersion?: number;
|
|
13854
|
+
/** @description Fingerprint from the marketplace validation report, supplied only after the user explicitly acknowledges its seller-review findings for this revision and proposal version. */
|
|
13855
|
+
sellerReviewAcknowledgement?: string;
|
|
13480
13856
|
}[];
|
|
13481
13857
|
/** @description Required for session auth. Optional for an API key, which already identifies the organization. */
|
|
13482
13858
|
organizationId?: string;
|
|
@@ -13856,6 +14232,23 @@ interface operations {
|
|
|
13856
14232
|
warnings?: string[];
|
|
13857
14233
|
issueCount?: number;
|
|
13858
14234
|
issues?: string[];
|
|
14235
|
+
issueDetails?: {
|
|
14236
|
+
/** @enum {string} */
|
|
14237
|
+
stage: "workbook_validation" | "campaign_readiness";
|
|
14238
|
+
message: string;
|
|
14239
|
+
correction: string;
|
|
14240
|
+
locations: {
|
|
14241
|
+
sheet: string;
|
|
14242
|
+
row?: number;
|
|
14243
|
+
sku?: string;
|
|
14244
|
+
itemId?: string;
|
|
14245
|
+
ean?: string;
|
|
14246
|
+
sourceReference?: string;
|
|
14247
|
+
}[];
|
|
14248
|
+
field?: string;
|
|
14249
|
+
targetIds?: string[];
|
|
14250
|
+
}[];
|
|
14251
|
+
omittedIssueCount?: number;
|
|
13859
14252
|
error?: string;
|
|
13860
14253
|
}[];
|
|
13861
14254
|
};
|
|
@@ -14301,6 +14694,45 @@ interface operations {
|
|
|
14301
14694
|
| "archived";
|
|
14302
14695
|
plan?: components["schemas"]["CampaignPlan"];
|
|
14303
14696
|
shiftMs?: number;
|
|
14697
|
+
marketplaceValidation?: {
|
|
14698
|
+
organizationId: string;
|
|
14699
|
+
campaignId: string;
|
|
14700
|
+
revision: number;
|
|
14701
|
+
pendingVersion: number | null;
|
|
14702
|
+
checkedAt: string;
|
|
14703
|
+
planIssues: string[];
|
|
14704
|
+
issues: {
|
|
14705
|
+
offerId: string;
|
|
14706
|
+
offerName: string;
|
|
14707
|
+
message: string;
|
|
14708
|
+
}[];
|
|
14709
|
+
checks: {
|
|
14710
|
+
offerId: string;
|
|
14711
|
+
offerName: string;
|
|
14712
|
+
windowId: string;
|
|
14713
|
+
store: {
|
|
14714
|
+
/** @enum {string} */
|
|
14715
|
+
marketplace:
|
|
14716
|
+
| "shopee"
|
|
14717
|
+
| "lazada"
|
|
14718
|
+
| "tiktok"
|
|
14719
|
+
| "shopify"
|
|
14720
|
+
| "whatsapp"
|
|
14721
|
+
| "zalora"
|
|
14722
|
+
| "amazon"
|
|
14723
|
+
| "ebay";
|
|
14724
|
+
country: string;
|
|
14725
|
+
storeId: string;
|
|
14726
|
+
storeName?: string;
|
|
14727
|
+
};
|
|
14728
|
+
productId?: string;
|
|
14729
|
+
sku?: string;
|
|
14730
|
+
/** @enum {string} */
|
|
14731
|
+
status: "passed" | "blocked" | "seller_review";
|
|
14732
|
+
message: string;
|
|
14733
|
+
}[];
|
|
14734
|
+
sellerReviewFingerprint: string | null;
|
|
14735
|
+
};
|
|
14304
14736
|
}[];
|
|
14305
14737
|
};
|
|
14306
14738
|
};
|
|
@@ -19064,6 +19496,11 @@ interface operations {
|
|
|
19064
19496
|
items?: {
|
|
19065
19497
|
/** Format: uuid */
|
|
19066
19498
|
id?: string;
|
|
19499
|
+
attribution?: {
|
|
19500
|
+
channels: string[];
|
|
19501
|
+
creatorHandles: string[];
|
|
19502
|
+
storefront: string | null;
|
|
19503
|
+
};
|
|
19067
19504
|
status?: string;
|
|
19068
19505
|
/** @enum {string} */
|
|
19069
19506
|
statusGroup?:
|
|
@@ -19386,6 +19823,11 @@ interface operations {
|
|
|
19386
19823
|
externalOrderNumber: string | null;
|
|
19387
19824
|
/** Format: uri */
|
|
19388
19825
|
marketplaceOrderUrl?: string | null;
|
|
19826
|
+
attribution: {
|
|
19827
|
+
channels: string[];
|
|
19828
|
+
creatorHandles: string[];
|
|
19829
|
+
storefront: string | null;
|
|
19830
|
+
};
|
|
19389
19831
|
marketplace: string;
|
|
19390
19832
|
marketplaceLabel?: string;
|
|
19391
19833
|
/** @description Normalized display status for the source order. */
|
|
@@ -23534,7 +23976,7 @@ interface operations {
|
|
|
23534
23976
|
| "price"
|
|
23535
23977
|
| "inventory"
|
|
23536
23978
|
)[];
|
|
23537
|
-
/** @description Optional exact assigned stores to publish. Omit to publish every eligible assigned store in the selected marketplaces. Duplicate marketplace/store pairs are removed. Invalid or disconnected targets return explicit failures while valid targets continue. */
|
|
23979
|
+
/** @description Optional exact assigned stores to publish. Assign stores to marketplace drafts through POST /api/v1/products/marketplace-stores first. Omit to publish every eligible assigned store in the selected marketplaces. Duplicate marketplace/store pairs are removed. Invalid or disconnected targets return explicit failures while valid targets continue. */
|
|
23538
23980
|
storeTargets?: {
|
|
23539
23981
|
/** @enum {string} */
|
|
23540
23982
|
marketplace:
|
|
@@ -23771,6 +24213,8 @@ interface operations {
|
|
|
23771
24213
|
| "amazon"
|
|
23772
24214
|
| "ebay"
|
|
23773
24215
|
)[];
|
|
24216
|
+
/** @description Save marketplace drafts and assign stores later. Omit marketplaceStoreSelections and leave workflow.publish off. */
|
|
24217
|
+
deferStoreSelection?: boolean;
|
|
23774
24218
|
targetCountries?: string[];
|
|
23775
24219
|
fieldMapping?: {
|
|
23776
24220
|
[key: string]: string;
|
|
@@ -23783,8 +24227,8 @@ interface operations {
|
|
|
23783
24227
|
| "fail_job";
|
|
23784
24228
|
autoApproveThreshold?: number | null;
|
|
23785
24229
|
spendCeilingUsd?: number | null;
|
|
23786
|
-
/** @description
|
|
23787
|
-
marketplaceStoreSelections
|
|
24230
|
+
/** @description Required unless deferStoreSelection is true. */
|
|
24231
|
+
marketplaceStoreSelections?: {
|
|
23788
24232
|
/** @description Connected shopee store IDs. */
|
|
23789
24233
|
shopee?: string[];
|
|
23790
24234
|
/** @description Connected lazada store IDs. */
|
|
@@ -23861,10 +24305,12 @@ interface operations {
|
|
|
23861
24305
|
| "ebay"
|
|
23862
24306
|
)[];
|
|
23863
24307
|
targetCountries?: string | string[];
|
|
24308
|
+
/** @description Send true as a form field to save marketplace-only drafts. */
|
|
24309
|
+
deferStoreSelection?: boolean;
|
|
23864
24310
|
/** @description JSON object mapping CSV headers to import fields, e.g. `{"sku":"SKU","title":"Product Name"}`. */
|
|
23865
24311
|
fieldMapping?: string;
|
|
23866
|
-
/** @description
|
|
23867
|
-
marketplaceStoreSelections
|
|
24312
|
+
/** @description Required unless deferStoreSelection is true. Send connected store ID arrays for each target marketplace as a JSON object encoded in the form field. */
|
|
24313
|
+
marketplaceStoreSelections?:
|
|
23868
24314
|
| {
|
|
23869
24315
|
/** @description Connected shopee store IDs. */
|
|
23870
24316
|
shopee?: string[];
|
|
@@ -23935,6 +24381,8 @@ interface operations {
|
|
|
23935
24381
|
data?: {
|
|
23936
24382
|
rowCount?: number;
|
|
23937
24383
|
fileName?: string;
|
|
24384
|
+
/** @description True for marketplace-only imports. */
|
|
24385
|
+
deferStoreSelection?: boolean;
|
|
23938
24386
|
targetMarketplaces?: string[];
|
|
23939
24387
|
targetCountries?: string[];
|
|
23940
24388
|
fieldMapping?: Record<string, never>;
|
|
@@ -23957,7 +24405,7 @@ interface operations {
|
|
|
23957
24405
|
};
|
|
23958
24406
|
content?: never;
|
|
23959
24407
|
};
|
|
23960
|
-
/** @description Forbidden -
|
|
24408
|
+
/** @description Forbidden - Credential cannot access this organization or lacks the required catalog scope. */
|
|
23961
24409
|
403: {
|
|
23962
24410
|
headers: {
|
|
23963
24411
|
[name: string]: unknown;
|
|
@@ -25603,6 +26051,17 @@ interface operations {
|
|
|
25603
26051
|
| "amazon"
|
|
25604
26052
|
| "ebay"
|
|
25605
26053
|
)[];
|
|
26054
|
+
/** @description Prepare marketplace destinations for later store assignment. Requires product content enrichment and excludes store-specific taxonomy and automatic publishing. */
|
|
26055
|
+
deferredMarketplaces?: (
|
|
26056
|
+
| "shopee"
|
|
26057
|
+
| "lazada"
|
|
26058
|
+
| "tiktok"
|
|
26059
|
+
| "shopify"
|
|
26060
|
+
| "whatsapp"
|
|
26061
|
+
| "zalora"
|
|
26062
|
+
| "amazon"
|
|
26063
|
+
| "ebay"
|
|
26064
|
+
)[];
|
|
25606
26065
|
marketplaceStoreSelections?: {
|
|
25607
26066
|
[key: string]: string[] | string;
|
|
25608
26067
|
};
|
|
@@ -25625,7 +26084,7 @@ interface operations {
|
|
|
25625
26084
|
/** @description Marketplace taxonomy confidence threshold, independent of copy and import-row autoApproveThreshold. Omit to use the organization setting. */
|
|
25626
26085
|
taxonomyAutoApplyThreshold?: number;
|
|
25627
26086
|
/**
|
|
25628
|
-
* @description Publish after all required reviews are approved and applied. Requires catalog:write in addition to catalog:enrich.
|
|
26087
|
+
* @description Publish after all required reviews are approved and applied. Requires catalog:write and catalog:sync in addition to catalog:enrich.
|
|
25629
26088
|
* @default false
|
|
25630
26089
|
*/
|
|
25631
26090
|
publish?: boolean;
|
|
@@ -25661,10 +26120,24 @@ interface operations {
|
|
|
25661
26120
|
failedCount: number;
|
|
25662
26121
|
batchJobId?: string;
|
|
25663
26122
|
enrichmentBatchId?: string;
|
|
26123
|
+
taxonomyBatchIds?: string[];
|
|
26124
|
+
/** @description Prepare marketplace destinations for later store assignment. Requires product content enrichment and excludes store-specific taxonomy and automatic publishing. */
|
|
26125
|
+
deferredMarketplaces?: (
|
|
26126
|
+
| "shopee"
|
|
26127
|
+
| "lazada"
|
|
26128
|
+
| "tiktok"
|
|
26129
|
+
| "shopify"
|
|
26130
|
+
| "whatsapp"
|
|
26131
|
+
| "zalora"
|
|
26132
|
+
| "amazon"
|
|
26133
|
+
| "ebay"
|
|
26134
|
+
)[];
|
|
25664
26135
|
results: {
|
|
25665
26136
|
productId: string;
|
|
25666
26137
|
success: boolean;
|
|
25667
|
-
jobId
|
|
26138
|
+
jobId?: string;
|
|
26139
|
+
jobIds: string[];
|
|
26140
|
+
taxonomyBatchIds: string[];
|
|
25668
26141
|
}[];
|
|
25669
26142
|
};
|
|
25670
26143
|
};
|
|
@@ -25714,6 +26187,162 @@ interface operations {
|
|
|
25714
26187
|
};
|
|
25715
26188
|
};
|
|
25716
26189
|
};
|
|
26190
|
+
post_v1_products_marketplace_stores: {
|
|
26191
|
+
parameters: {
|
|
26192
|
+
query?: never;
|
|
26193
|
+
header?: never;
|
|
26194
|
+
path?: never;
|
|
26195
|
+
cookie?: never;
|
|
26196
|
+
};
|
|
26197
|
+
requestBody: {
|
|
26198
|
+
content: {
|
|
26199
|
+
/**
|
|
26200
|
+
* @example {
|
|
26201
|
+
* "productIds": [
|
|
26202
|
+
* "10480f82-762d-45c5-a427-af809b2477f6"
|
|
26203
|
+
* ],
|
|
26204
|
+
* "selections": [
|
|
26205
|
+
* {
|
|
26206
|
+
* "marketplace": "shopify",
|
|
26207
|
+
* "storeIds": [
|
|
26208
|
+
* "shop-1",
|
|
26209
|
+
* "shop-2"
|
|
26210
|
+
* ]
|
|
26211
|
+
* }
|
|
26212
|
+
* ]
|
|
26213
|
+
* }
|
|
26214
|
+
*/
|
|
26215
|
+
"application/json": {
|
|
26216
|
+
productIds: string[];
|
|
26217
|
+
selections: {
|
|
26218
|
+
/** @enum {string} */
|
|
26219
|
+
marketplace:
|
|
26220
|
+
| "shopee"
|
|
26221
|
+
| "lazada"
|
|
26222
|
+
| "tiktok"
|
|
26223
|
+
| "shopify"
|
|
26224
|
+
| "whatsapp"
|
|
26225
|
+
| "zalora"
|
|
26226
|
+
| "amazon"
|
|
26227
|
+
| "ebay";
|
|
26228
|
+
storeIds: string[];
|
|
26229
|
+
sourceStoreId?: string;
|
|
26230
|
+
storeCountries?: {
|
|
26231
|
+
[key: string]: string;
|
|
26232
|
+
};
|
|
26233
|
+
}[];
|
|
26234
|
+
/** @description Required for session auth; derived from the credential for bearer auth. */
|
|
26235
|
+
organizationId?: string;
|
|
26236
|
+
};
|
|
26237
|
+
};
|
|
26238
|
+
};
|
|
26239
|
+
responses: {
|
|
26240
|
+
/** @description Store assignment results in requested product order. */
|
|
26241
|
+
200: {
|
|
26242
|
+
headers: {
|
|
26243
|
+
[name: string]: unknown;
|
|
26244
|
+
};
|
|
26245
|
+
content: {
|
|
26246
|
+
"application/json": {
|
|
26247
|
+
ok: boolean;
|
|
26248
|
+
/** @enum {string} */
|
|
26249
|
+
status: "completed" | "failed";
|
|
26250
|
+
data: {
|
|
26251
|
+
success: boolean;
|
|
26252
|
+
productIds: string[];
|
|
26253
|
+
storeTargets: {
|
|
26254
|
+
/** @enum {string} */
|
|
26255
|
+
marketplace:
|
|
26256
|
+
| "shopee"
|
|
26257
|
+
| "lazada"
|
|
26258
|
+
| "tiktok"
|
|
26259
|
+
| "shopify"
|
|
26260
|
+
| "whatsapp"
|
|
26261
|
+
| "zalora"
|
|
26262
|
+
| "amazon"
|
|
26263
|
+
| "ebay";
|
|
26264
|
+
storeId: string;
|
|
26265
|
+
}[];
|
|
26266
|
+
succeededCount: number;
|
|
26267
|
+
failedCount: number;
|
|
26268
|
+
results: {
|
|
26269
|
+
productId: string;
|
|
26270
|
+
success: boolean;
|
|
26271
|
+
storeIds?: string[];
|
|
26272
|
+
error?: string;
|
|
26273
|
+
}[];
|
|
26274
|
+
};
|
|
26275
|
+
};
|
|
26276
|
+
};
|
|
26277
|
+
};
|
|
26278
|
+
/** @description One or more product assignments failed. */
|
|
26279
|
+
207: {
|
|
26280
|
+
headers: {
|
|
26281
|
+
[name: string]: unknown;
|
|
26282
|
+
};
|
|
26283
|
+
content: {
|
|
26284
|
+
"application/json": {
|
|
26285
|
+
ok: boolean;
|
|
26286
|
+
/** @enum {string} */
|
|
26287
|
+
status: "completed" | "failed";
|
|
26288
|
+
data: {
|
|
26289
|
+
success: boolean;
|
|
26290
|
+
productIds: string[];
|
|
26291
|
+
storeTargets: {
|
|
26292
|
+
/** @enum {string} */
|
|
26293
|
+
marketplace:
|
|
26294
|
+
| "shopee"
|
|
26295
|
+
| "lazada"
|
|
26296
|
+
| "tiktok"
|
|
26297
|
+
| "shopify"
|
|
26298
|
+
| "whatsapp"
|
|
26299
|
+
| "zalora"
|
|
26300
|
+
| "amazon"
|
|
26301
|
+
| "ebay";
|
|
26302
|
+
storeId: string;
|
|
26303
|
+
}[];
|
|
26304
|
+
succeededCount: number;
|
|
26305
|
+
failedCount: number;
|
|
26306
|
+
results: {
|
|
26307
|
+
productId: string;
|
|
26308
|
+
success: boolean;
|
|
26309
|
+
storeIds?: string[];
|
|
26310
|
+
error?: string;
|
|
26311
|
+
}[];
|
|
26312
|
+
};
|
|
26313
|
+
};
|
|
26314
|
+
};
|
|
26315
|
+
};
|
|
26316
|
+
/** @description Invalid request or queue preparation failed. Inspect the error before resubmitting. */
|
|
26317
|
+
400: {
|
|
26318
|
+
headers: {
|
|
26319
|
+
[name: string]: unknown;
|
|
26320
|
+
};
|
|
26321
|
+
content?: never;
|
|
26322
|
+
};
|
|
26323
|
+
/** @description Missing or invalid credentials. */
|
|
26324
|
+
401: {
|
|
26325
|
+
headers: {
|
|
26326
|
+
[name: string]: unknown;
|
|
26327
|
+
};
|
|
26328
|
+
content?: never;
|
|
26329
|
+
};
|
|
26330
|
+
/** @description Missing scope, insufficient permission, organization mismatch, or inactive organization. */
|
|
26331
|
+
403: {
|
|
26332
|
+
headers: {
|
|
26333
|
+
[name: string]: unknown;
|
|
26334
|
+
};
|
|
26335
|
+
content?: never;
|
|
26336
|
+
};
|
|
26337
|
+
/** @description Rate limit exceeded. */
|
|
26338
|
+
429: {
|
|
26339
|
+
headers: {
|
|
26340
|
+
[name: string]: unknown;
|
|
26341
|
+
};
|
|
26342
|
+
content?: never;
|
|
26343
|
+
};
|
|
26344
|
+
};
|
|
26345
|
+
};
|
|
25717
26346
|
get_v1_promotions: {
|
|
25718
26347
|
parameters: {
|
|
25719
26348
|
query?: {
|
|
@@ -30338,6 +30967,941 @@ interface operations {
|
|
|
30338
30967
|
};
|
|
30339
30968
|
};
|
|
30340
30969
|
};
|
|
30970
|
+
get_v1_wiki_export: {
|
|
30971
|
+
parameters: {
|
|
30972
|
+
query?: {
|
|
30973
|
+
organizationId?: string;
|
|
30974
|
+
};
|
|
30975
|
+
header?: never;
|
|
30976
|
+
path?: never;
|
|
30977
|
+
cookie?: never;
|
|
30978
|
+
};
|
|
30979
|
+
requestBody?: never;
|
|
30980
|
+
responses: {
|
|
30981
|
+
/** @description Wiki export. */
|
|
30982
|
+
200: {
|
|
30983
|
+
headers: {
|
|
30984
|
+
[name: string]: unknown;
|
|
30985
|
+
};
|
|
30986
|
+
content: {
|
|
30987
|
+
"application/json": {
|
|
30988
|
+
ok: boolean;
|
|
30989
|
+
/** @constant */
|
|
30990
|
+
apiVersion: "developer_v1";
|
|
30991
|
+
operationId: string;
|
|
30992
|
+
/** @enum {string} */
|
|
30993
|
+
status: "accepted" | "completed" | "failed";
|
|
30994
|
+
jobId?: string;
|
|
30995
|
+
warnings: string[];
|
|
30996
|
+
recommendations: string[];
|
|
30997
|
+
links: {
|
|
30998
|
+
[key: string]: string;
|
|
30999
|
+
};
|
|
31000
|
+
data: {
|
|
31001
|
+
files: {
|
|
31002
|
+
path: string;
|
|
31003
|
+
markdown: string;
|
|
31004
|
+
}[];
|
|
31005
|
+
skos: {
|
|
31006
|
+
[key: string]: unknown;
|
|
31007
|
+
};
|
|
31008
|
+
};
|
|
31009
|
+
};
|
|
31010
|
+
};
|
|
31011
|
+
};
|
|
31012
|
+
/** @description Invalid request. */
|
|
31013
|
+
400: {
|
|
31014
|
+
headers: {
|
|
31015
|
+
[name: string]: unknown;
|
|
31016
|
+
};
|
|
31017
|
+
content?: never;
|
|
31018
|
+
};
|
|
31019
|
+
/** @description Missing credentials. */
|
|
31020
|
+
401: {
|
|
31021
|
+
headers: {
|
|
31022
|
+
[name: string]: unknown;
|
|
31023
|
+
};
|
|
31024
|
+
content?: never;
|
|
31025
|
+
};
|
|
31026
|
+
/** @description Missing OAuth scope or organization capability. */
|
|
31027
|
+
403: {
|
|
31028
|
+
headers: {
|
|
31029
|
+
[name: string]: unknown;
|
|
31030
|
+
};
|
|
31031
|
+
content?: never;
|
|
31032
|
+
};
|
|
31033
|
+
/** @description Wiki page not found in this organization. */
|
|
31034
|
+
404: {
|
|
31035
|
+
headers: {
|
|
31036
|
+
[name: string]: unknown;
|
|
31037
|
+
};
|
|
31038
|
+
content?: never;
|
|
31039
|
+
};
|
|
31040
|
+
};
|
|
31041
|
+
};
|
|
31042
|
+
post_v1_wiki_import: {
|
|
31043
|
+
parameters: {
|
|
31044
|
+
query?: never;
|
|
31045
|
+
header?: never;
|
|
31046
|
+
path?: never;
|
|
31047
|
+
cookie?: never;
|
|
31048
|
+
};
|
|
31049
|
+
requestBody: {
|
|
31050
|
+
content: {
|
|
31051
|
+
"application/json": {
|
|
31052
|
+
organizationId?: string;
|
|
31053
|
+
files: {
|
|
31054
|
+
path?: string;
|
|
31055
|
+
markdown: string;
|
|
31056
|
+
}[];
|
|
31057
|
+
};
|
|
31058
|
+
};
|
|
31059
|
+
};
|
|
31060
|
+
responses: {
|
|
31061
|
+
/** @description Import result. */
|
|
31062
|
+
200: {
|
|
31063
|
+
headers: {
|
|
31064
|
+
[name: string]: unknown;
|
|
31065
|
+
};
|
|
31066
|
+
content: {
|
|
31067
|
+
"application/json": {
|
|
31068
|
+
ok: boolean;
|
|
31069
|
+
/** @constant */
|
|
31070
|
+
apiVersion: "developer_v1";
|
|
31071
|
+
operationId: string;
|
|
31072
|
+
/** @enum {string} */
|
|
31073
|
+
status: "accepted" | "completed" | "failed";
|
|
31074
|
+
jobId?: string;
|
|
31075
|
+
warnings: string[];
|
|
31076
|
+
recommendations: string[];
|
|
31077
|
+
links: {
|
|
31078
|
+
[key: string]: string;
|
|
31079
|
+
};
|
|
31080
|
+
data: {
|
|
31081
|
+
created: number;
|
|
31082
|
+
updated: number;
|
|
31083
|
+
unchanged: number;
|
|
31084
|
+
failed: number;
|
|
31085
|
+
results: {
|
|
31086
|
+
path: string | null;
|
|
31087
|
+
title: string | null;
|
|
31088
|
+
/** @enum {string} */
|
|
31089
|
+
outcome: "created" | "updated" | "unchanged" | "failed";
|
|
31090
|
+
pageId?: string;
|
|
31091
|
+
error?: string;
|
|
31092
|
+
}[];
|
|
31093
|
+
};
|
|
31094
|
+
};
|
|
31095
|
+
};
|
|
31096
|
+
};
|
|
31097
|
+
/** @description Invalid request. */
|
|
31098
|
+
400: {
|
|
31099
|
+
headers: {
|
|
31100
|
+
[name: string]: unknown;
|
|
31101
|
+
};
|
|
31102
|
+
content?: never;
|
|
31103
|
+
};
|
|
31104
|
+
/** @description Missing credentials. */
|
|
31105
|
+
401: {
|
|
31106
|
+
headers: {
|
|
31107
|
+
[name: string]: unknown;
|
|
31108
|
+
};
|
|
31109
|
+
content?: never;
|
|
31110
|
+
};
|
|
31111
|
+
/** @description Missing OAuth scope or organization capability. */
|
|
31112
|
+
403: {
|
|
31113
|
+
headers: {
|
|
31114
|
+
[name: string]: unknown;
|
|
31115
|
+
};
|
|
31116
|
+
content?: never;
|
|
31117
|
+
};
|
|
31118
|
+
/** @description Wiki page not found in this organization. */
|
|
31119
|
+
404: {
|
|
31120
|
+
headers: {
|
|
31121
|
+
[name: string]: unknown;
|
|
31122
|
+
};
|
|
31123
|
+
content?: never;
|
|
31124
|
+
};
|
|
31125
|
+
};
|
|
31126
|
+
};
|
|
31127
|
+
get_v1_wiki_pages: {
|
|
31128
|
+
parameters: {
|
|
31129
|
+
query?: {
|
|
31130
|
+
organizationId?: string;
|
|
31131
|
+
q?: string;
|
|
31132
|
+
status?: "active" | "stale" | "archived";
|
|
31133
|
+
sort?: "newest" | "title" | "most_used";
|
|
31134
|
+
limit?: number;
|
|
31135
|
+
offset?: number;
|
|
31136
|
+
};
|
|
31137
|
+
header?: never;
|
|
31138
|
+
path?: never;
|
|
31139
|
+
cookie?: never;
|
|
31140
|
+
};
|
|
31141
|
+
requestBody?: never;
|
|
31142
|
+
responses: {
|
|
31143
|
+
/** @description Wiki pages. */
|
|
31144
|
+
200: {
|
|
31145
|
+
headers: {
|
|
31146
|
+
[name: string]: unknown;
|
|
31147
|
+
};
|
|
31148
|
+
content: {
|
|
31149
|
+
"application/json": {
|
|
31150
|
+
ok: boolean;
|
|
31151
|
+
/** @constant */
|
|
31152
|
+
apiVersion: "developer_v1";
|
|
31153
|
+
operationId: string;
|
|
31154
|
+
/** @enum {string} */
|
|
31155
|
+
status: "accepted" | "completed" | "failed";
|
|
31156
|
+
jobId?: string;
|
|
31157
|
+
warnings: string[];
|
|
31158
|
+
recommendations: string[];
|
|
31159
|
+
links: {
|
|
31160
|
+
[key: string]: string;
|
|
31161
|
+
};
|
|
31162
|
+
data: {
|
|
31163
|
+
total: number;
|
|
31164
|
+
pages: {
|
|
31165
|
+
id: string;
|
|
31166
|
+
title: string;
|
|
31167
|
+
summary: string;
|
|
31168
|
+
aliases: string[];
|
|
31169
|
+
excerpt: string;
|
|
31170
|
+
/** @enum {string} */
|
|
31171
|
+
status: "active" | "archived";
|
|
31172
|
+
systemDefined: boolean;
|
|
31173
|
+
stale: boolean;
|
|
31174
|
+
appliesTo: {
|
|
31175
|
+
/** @enum {string} */
|
|
31176
|
+
type:
|
|
31177
|
+
| "store"
|
|
31178
|
+
| "marketplace"
|
|
31179
|
+
| "brand"
|
|
31180
|
+
| "category"
|
|
31181
|
+
| "product"
|
|
31182
|
+
| "supplier";
|
|
31183
|
+
id: string;
|
|
31184
|
+
name?: string;
|
|
31185
|
+
}[];
|
|
31186
|
+
updatedAt: string;
|
|
31187
|
+
updatedByName: string | null;
|
|
31188
|
+
}[];
|
|
31189
|
+
};
|
|
31190
|
+
};
|
|
31191
|
+
};
|
|
31192
|
+
};
|
|
31193
|
+
/** @description Invalid request. */
|
|
31194
|
+
400: {
|
|
31195
|
+
headers: {
|
|
31196
|
+
[name: string]: unknown;
|
|
31197
|
+
};
|
|
31198
|
+
content?: never;
|
|
31199
|
+
};
|
|
31200
|
+
/** @description Missing credentials. */
|
|
31201
|
+
401: {
|
|
31202
|
+
headers: {
|
|
31203
|
+
[name: string]: unknown;
|
|
31204
|
+
};
|
|
31205
|
+
content?: never;
|
|
31206
|
+
};
|
|
31207
|
+
/** @description Missing OAuth scope or organization capability. */
|
|
31208
|
+
403: {
|
|
31209
|
+
headers: {
|
|
31210
|
+
[name: string]: unknown;
|
|
31211
|
+
};
|
|
31212
|
+
content?: never;
|
|
31213
|
+
};
|
|
31214
|
+
/** @description Wiki page not found in this organization. */
|
|
31215
|
+
404: {
|
|
31216
|
+
headers: {
|
|
31217
|
+
[name: string]: unknown;
|
|
31218
|
+
};
|
|
31219
|
+
content?: never;
|
|
31220
|
+
};
|
|
31221
|
+
};
|
|
31222
|
+
};
|
|
31223
|
+
post_v1_wiki_pages: {
|
|
31224
|
+
parameters: {
|
|
31225
|
+
query?: never;
|
|
31226
|
+
header?: never;
|
|
31227
|
+
path?: never;
|
|
31228
|
+
cookie?: never;
|
|
31229
|
+
};
|
|
31230
|
+
requestBody: {
|
|
31231
|
+
content: {
|
|
31232
|
+
"application/json": {
|
|
31233
|
+
organizationId?: string;
|
|
31234
|
+
title: string;
|
|
31235
|
+
summary?: string;
|
|
31236
|
+
body?: string;
|
|
31237
|
+
aliases?: string[];
|
|
31238
|
+
appliesTo?: {
|
|
31239
|
+
/** @enum {string} */
|
|
31240
|
+
type:
|
|
31241
|
+
| "store"
|
|
31242
|
+
| "marketplace"
|
|
31243
|
+
| "brand"
|
|
31244
|
+
| "category"
|
|
31245
|
+
| "product"
|
|
31246
|
+
| "supplier";
|
|
31247
|
+
id: string;
|
|
31248
|
+
name?: string;
|
|
31249
|
+
}[];
|
|
31250
|
+
reviewBy?: string | null;
|
|
31251
|
+
changeSummary?: string;
|
|
31252
|
+
};
|
|
31253
|
+
};
|
|
31254
|
+
};
|
|
31255
|
+
responses: {
|
|
31256
|
+
/** @description Created wiki page. */
|
|
31257
|
+
201: {
|
|
31258
|
+
headers: {
|
|
31259
|
+
[name: string]: unknown;
|
|
31260
|
+
};
|
|
31261
|
+
content: {
|
|
31262
|
+
"application/json": {
|
|
31263
|
+
ok: boolean;
|
|
31264
|
+
/** @constant */
|
|
31265
|
+
apiVersion: "developer_v1";
|
|
31266
|
+
operationId: string;
|
|
31267
|
+
/** @enum {string} */
|
|
31268
|
+
status: "accepted" | "completed" | "failed";
|
|
31269
|
+
jobId?: string;
|
|
31270
|
+
warnings: string[];
|
|
31271
|
+
recommendations: string[];
|
|
31272
|
+
links: {
|
|
31273
|
+
[key: string]: string;
|
|
31274
|
+
};
|
|
31275
|
+
data: {
|
|
31276
|
+
id: string;
|
|
31277
|
+
organizationId: string;
|
|
31278
|
+
title: string;
|
|
31279
|
+
summary: string;
|
|
31280
|
+
body: string;
|
|
31281
|
+
/** @enum {string} */
|
|
31282
|
+
status: "active" | "archived";
|
|
31283
|
+
systemDefined: boolean;
|
|
31284
|
+
stale: boolean;
|
|
31285
|
+
appliesTo: {
|
|
31286
|
+
/** @enum {string} */
|
|
31287
|
+
type:
|
|
31288
|
+
| "store"
|
|
31289
|
+
| "marketplace"
|
|
31290
|
+
| "brand"
|
|
31291
|
+
| "category"
|
|
31292
|
+
| "product"
|
|
31293
|
+
| "supplier";
|
|
31294
|
+
id: string;
|
|
31295
|
+
name?: string;
|
|
31296
|
+
}[];
|
|
31297
|
+
labels: {
|
|
31298
|
+
label: string;
|
|
31299
|
+
/** @enum {string} */
|
|
31300
|
+
labelType: "pref" | "alt" | "hidden";
|
|
31301
|
+
language: string | null;
|
|
31302
|
+
}[];
|
|
31303
|
+
revisionNumber: number;
|
|
31304
|
+
lastConfirmedAt: string;
|
|
31305
|
+
reviewBy: string | null;
|
|
31306
|
+
/** @enum {string} */
|
|
31307
|
+
indexStatus: "pending" | "indexed" | "failed";
|
|
31308
|
+
createdAt: string;
|
|
31309
|
+
updatedAt: string;
|
|
31310
|
+
editors: string[];
|
|
31311
|
+
links: {
|
|
31312
|
+
id: string;
|
|
31313
|
+
title: string;
|
|
31314
|
+
summary: string;
|
|
31315
|
+
}[];
|
|
31316
|
+
backlinks: {
|
|
31317
|
+
id: string;
|
|
31318
|
+
title: string;
|
|
31319
|
+
summary: string;
|
|
31320
|
+
}[];
|
|
31321
|
+
};
|
|
31322
|
+
};
|
|
31323
|
+
};
|
|
31324
|
+
};
|
|
31325
|
+
/** @description Invalid request. */
|
|
31326
|
+
400: {
|
|
31327
|
+
headers: {
|
|
31328
|
+
[name: string]: unknown;
|
|
31329
|
+
};
|
|
31330
|
+
content?: never;
|
|
31331
|
+
};
|
|
31332
|
+
/** @description Missing credentials. */
|
|
31333
|
+
401: {
|
|
31334
|
+
headers: {
|
|
31335
|
+
[name: string]: unknown;
|
|
31336
|
+
};
|
|
31337
|
+
content?: never;
|
|
31338
|
+
};
|
|
31339
|
+
/** @description Missing OAuth scope or organization capability. */
|
|
31340
|
+
403: {
|
|
31341
|
+
headers: {
|
|
31342
|
+
[name: string]: unknown;
|
|
31343
|
+
};
|
|
31344
|
+
content?: never;
|
|
31345
|
+
};
|
|
31346
|
+
/** @description Wiki page not found in this organization. */
|
|
31347
|
+
404: {
|
|
31348
|
+
headers: {
|
|
31349
|
+
[name: string]: unknown;
|
|
31350
|
+
};
|
|
31351
|
+
content?: never;
|
|
31352
|
+
};
|
|
31353
|
+
/** @description A title or alias is already used by another page, or the page changed since baseRevisionNumber. */
|
|
31354
|
+
409: {
|
|
31355
|
+
headers: {
|
|
31356
|
+
[name: string]: unknown;
|
|
31357
|
+
};
|
|
31358
|
+
content?: never;
|
|
31359
|
+
};
|
|
31360
|
+
};
|
|
31361
|
+
};
|
|
31362
|
+
get_v1_wiki_pages_by_pageid: {
|
|
31363
|
+
parameters: {
|
|
31364
|
+
query?: {
|
|
31365
|
+
organizationId?: string;
|
|
31366
|
+
};
|
|
31367
|
+
header?: never;
|
|
31368
|
+
path: {
|
|
31369
|
+
pageId: string;
|
|
31370
|
+
};
|
|
31371
|
+
cookie?: never;
|
|
31372
|
+
};
|
|
31373
|
+
requestBody?: never;
|
|
31374
|
+
responses: {
|
|
31375
|
+
/** @description Wiki page. */
|
|
31376
|
+
200: {
|
|
31377
|
+
headers: {
|
|
31378
|
+
[name: string]: unknown;
|
|
31379
|
+
};
|
|
31380
|
+
content: {
|
|
31381
|
+
"application/json": {
|
|
31382
|
+
ok: boolean;
|
|
31383
|
+
/** @constant */
|
|
31384
|
+
apiVersion: "developer_v1";
|
|
31385
|
+
operationId: string;
|
|
31386
|
+
/** @enum {string} */
|
|
31387
|
+
status: "accepted" | "completed" | "failed";
|
|
31388
|
+
jobId?: string;
|
|
31389
|
+
warnings: string[];
|
|
31390
|
+
recommendations: string[];
|
|
31391
|
+
links: {
|
|
31392
|
+
[key: string]: string;
|
|
31393
|
+
};
|
|
31394
|
+
data: {
|
|
31395
|
+
id: string;
|
|
31396
|
+
organizationId: string;
|
|
31397
|
+
title: string;
|
|
31398
|
+
summary: string;
|
|
31399
|
+
body: string;
|
|
31400
|
+
/** @enum {string} */
|
|
31401
|
+
status: "active" | "archived";
|
|
31402
|
+
systemDefined: boolean;
|
|
31403
|
+
stale: boolean;
|
|
31404
|
+
appliesTo: {
|
|
31405
|
+
/** @enum {string} */
|
|
31406
|
+
type:
|
|
31407
|
+
| "store"
|
|
31408
|
+
| "marketplace"
|
|
31409
|
+
| "brand"
|
|
31410
|
+
| "category"
|
|
31411
|
+
| "product"
|
|
31412
|
+
| "supplier";
|
|
31413
|
+
id: string;
|
|
31414
|
+
name?: string;
|
|
31415
|
+
}[];
|
|
31416
|
+
labels: {
|
|
31417
|
+
label: string;
|
|
31418
|
+
/** @enum {string} */
|
|
31419
|
+
labelType: "pref" | "alt" | "hidden";
|
|
31420
|
+
language: string | null;
|
|
31421
|
+
}[];
|
|
31422
|
+
revisionNumber: number;
|
|
31423
|
+
lastConfirmedAt: string;
|
|
31424
|
+
reviewBy: string | null;
|
|
31425
|
+
/** @enum {string} */
|
|
31426
|
+
indexStatus: "pending" | "indexed" | "failed";
|
|
31427
|
+
createdAt: string;
|
|
31428
|
+
updatedAt: string;
|
|
31429
|
+
editors: string[];
|
|
31430
|
+
links: {
|
|
31431
|
+
id: string;
|
|
31432
|
+
title: string;
|
|
31433
|
+
summary: string;
|
|
31434
|
+
}[];
|
|
31435
|
+
backlinks: {
|
|
31436
|
+
id: string;
|
|
31437
|
+
title: string;
|
|
31438
|
+
summary: string;
|
|
31439
|
+
}[];
|
|
31440
|
+
};
|
|
31441
|
+
};
|
|
31442
|
+
};
|
|
31443
|
+
};
|
|
31444
|
+
/** @description Invalid request. */
|
|
31445
|
+
400: {
|
|
31446
|
+
headers: {
|
|
31447
|
+
[name: string]: unknown;
|
|
31448
|
+
};
|
|
31449
|
+
content?: never;
|
|
31450
|
+
};
|
|
31451
|
+
/** @description Missing credentials. */
|
|
31452
|
+
401: {
|
|
31453
|
+
headers: {
|
|
31454
|
+
[name: string]: unknown;
|
|
31455
|
+
};
|
|
31456
|
+
content?: never;
|
|
31457
|
+
};
|
|
31458
|
+
/** @description Missing OAuth scope or organization capability. */
|
|
31459
|
+
403: {
|
|
31460
|
+
headers: {
|
|
31461
|
+
[name: string]: unknown;
|
|
31462
|
+
};
|
|
31463
|
+
content?: never;
|
|
31464
|
+
};
|
|
31465
|
+
/** @description Wiki page not found in this organization. */
|
|
31466
|
+
404: {
|
|
31467
|
+
headers: {
|
|
31468
|
+
[name: string]: unknown;
|
|
31469
|
+
};
|
|
31470
|
+
content?: never;
|
|
31471
|
+
};
|
|
31472
|
+
};
|
|
31473
|
+
};
|
|
31474
|
+
delete_v1_wiki_pages_by_pageid: {
|
|
31475
|
+
parameters: {
|
|
31476
|
+
query?: {
|
|
31477
|
+
organizationId?: string;
|
|
31478
|
+
};
|
|
31479
|
+
header?: never;
|
|
31480
|
+
path: {
|
|
31481
|
+
pageId: string;
|
|
31482
|
+
};
|
|
31483
|
+
cookie?: never;
|
|
31484
|
+
};
|
|
31485
|
+
requestBody?: never;
|
|
31486
|
+
responses: {
|
|
31487
|
+
/** @description Archived wiki page. */
|
|
31488
|
+
200: {
|
|
31489
|
+
headers: {
|
|
31490
|
+
[name: string]: unknown;
|
|
31491
|
+
};
|
|
31492
|
+
content: {
|
|
31493
|
+
"application/json": {
|
|
31494
|
+
ok: boolean;
|
|
31495
|
+
/** @constant */
|
|
31496
|
+
apiVersion: "developer_v1";
|
|
31497
|
+
operationId: string;
|
|
31498
|
+
/** @enum {string} */
|
|
31499
|
+
status: "accepted" | "completed" | "failed";
|
|
31500
|
+
jobId?: string;
|
|
31501
|
+
warnings: string[];
|
|
31502
|
+
recommendations: string[];
|
|
31503
|
+
links: {
|
|
31504
|
+
[key: string]: string;
|
|
31505
|
+
};
|
|
31506
|
+
data: {
|
|
31507
|
+
id: string;
|
|
31508
|
+
organizationId: string;
|
|
31509
|
+
title: string;
|
|
31510
|
+
summary: string;
|
|
31511
|
+
body: string;
|
|
31512
|
+
/** @enum {string} */
|
|
31513
|
+
status: "active" | "archived";
|
|
31514
|
+
systemDefined: boolean;
|
|
31515
|
+
stale: boolean;
|
|
31516
|
+
appliesTo: {
|
|
31517
|
+
/** @enum {string} */
|
|
31518
|
+
type:
|
|
31519
|
+
| "store"
|
|
31520
|
+
| "marketplace"
|
|
31521
|
+
| "brand"
|
|
31522
|
+
| "category"
|
|
31523
|
+
| "product"
|
|
31524
|
+
| "supplier";
|
|
31525
|
+
id: string;
|
|
31526
|
+
name?: string;
|
|
31527
|
+
}[];
|
|
31528
|
+
labels: {
|
|
31529
|
+
label: string;
|
|
31530
|
+
/** @enum {string} */
|
|
31531
|
+
labelType: "pref" | "alt" | "hidden";
|
|
31532
|
+
language: string | null;
|
|
31533
|
+
}[];
|
|
31534
|
+
revisionNumber: number;
|
|
31535
|
+
lastConfirmedAt: string;
|
|
31536
|
+
reviewBy: string | null;
|
|
31537
|
+
/** @enum {string} */
|
|
31538
|
+
indexStatus: "pending" | "indexed" | "failed";
|
|
31539
|
+
createdAt: string;
|
|
31540
|
+
updatedAt: string;
|
|
31541
|
+
editors: string[];
|
|
31542
|
+
links: {
|
|
31543
|
+
id: string;
|
|
31544
|
+
title: string;
|
|
31545
|
+
summary: string;
|
|
31546
|
+
}[];
|
|
31547
|
+
backlinks: {
|
|
31548
|
+
id: string;
|
|
31549
|
+
title: string;
|
|
31550
|
+
summary: string;
|
|
31551
|
+
}[];
|
|
31552
|
+
};
|
|
31553
|
+
};
|
|
31554
|
+
};
|
|
31555
|
+
};
|
|
31556
|
+
/** @description Invalid request. */
|
|
31557
|
+
400: {
|
|
31558
|
+
headers: {
|
|
31559
|
+
[name: string]: unknown;
|
|
31560
|
+
};
|
|
31561
|
+
content?: never;
|
|
31562
|
+
};
|
|
31563
|
+
/** @description Missing credentials. */
|
|
31564
|
+
401: {
|
|
31565
|
+
headers: {
|
|
31566
|
+
[name: string]: unknown;
|
|
31567
|
+
};
|
|
31568
|
+
content?: never;
|
|
31569
|
+
};
|
|
31570
|
+
/** @description Missing OAuth scope or organization capability. */
|
|
31571
|
+
403: {
|
|
31572
|
+
headers: {
|
|
31573
|
+
[name: string]: unknown;
|
|
31574
|
+
};
|
|
31575
|
+
content?: never;
|
|
31576
|
+
};
|
|
31577
|
+
/** @description Wiki page not found in this organization. */
|
|
31578
|
+
404: {
|
|
31579
|
+
headers: {
|
|
31580
|
+
[name: string]: unknown;
|
|
31581
|
+
};
|
|
31582
|
+
content?: never;
|
|
31583
|
+
};
|
|
31584
|
+
};
|
|
31585
|
+
};
|
|
31586
|
+
patch_v1_wiki_pages_by_pageid: {
|
|
31587
|
+
parameters: {
|
|
31588
|
+
query?: never;
|
|
31589
|
+
header?: never;
|
|
31590
|
+
path: {
|
|
31591
|
+
pageId: string;
|
|
31592
|
+
};
|
|
31593
|
+
cookie?: never;
|
|
31594
|
+
};
|
|
31595
|
+
requestBody: {
|
|
31596
|
+
content: {
|
|
31597
|
+
"application/json": {
|
|
31598
|
+
organizationId?: string;
|
|
31599
|
+
title?: string;
|
|
31600
|
+
summary?: string;
|
|
31601
|
+
body?: string;
|
|
31602
|
+
aliases?: string[];
|
|
31603
|
+
appliesTo?: {
|
|
31604
|
+
/** @enum {string} */
|
|
31605
|
+
type:
|
|
31606
|
+
| "store"
|
|
31607
|
+
| "marketplace"
|
|
31608
|
+
| "brand"
|
|
31609
|
+
| "category"
|
|
31610
|
+
| "product"
|
|
31611
|
+
| "supplier";
|
|
31612
|
+
id: string;
|
|
31613
|
+
name?: string;
|
|
31614
|
+
}[];
|
|
31615
|
+
reviewBy?: string | null;
|
|
31616
|
+
changeSummary?: string;
|
|
31617
|
+
baseRevisionNumber?: number;
|
|
31618
|
+
/** @enum {string} */
|
|
31619
|
+
status?: "active" | "archived";
|
|
31620
|
+
restoreRevisionNumber?: number;
|
|
31621
|
+
};
|
|
31622
|
+
};
|
|
31623
|
+
};
|
|
31624
|
+
responses: {
|
|
31625
|
+
/** @description Updated wiki page. */
|
|
31626
|
+
200: {
|
|
31627
|
+
headers: {
|
|
31628
|
+
[name: string]: unknown;
|
|
31629
|
+
};
|
|
31630
|
+
content: {
|
|
31631
|
+
"application/json": {
|
|
31632
|
+
ok: boolean;
|
|
31633
|
+
/** @constant */
|
|
31634
|
+
apiVersion: "developer_v1";
|
|
31635
|
+
operationId: string;
|
|
31636
|
+
/** @enum {string} */
|
|
31637
|
+
status: "accepted" | "completed" | "failed";
|
|
31638
|
+
jobId?: string;
|
|
31639
|
+
warnings: string[];
|
|
31640
|
+
recommendations: string[];
|
|
31641
|
+
links: {
|
|
31642
|
+
[key: string]: string;
|
|
31643
|
+
};
|
|
31644
|
+
data: {
|
|
31645
|
+
id: string;
|
|
31646
|
+
organizationId: string;
|
|
31647
|
+
title: string;
|
|
31648
|
+
summary: string;
|
|
31649
|
+
body: string;
|
|
31650
|
+
/** @enum {string} */
|
|
31651
|
+
status: "active" | "archived";
|
|
31652
|
+
systemDefined: boolean;
|
|
31653
|
+
stale: boolean;
|
|
31654
|
+
appliesTo: {
|
|
31655
|
+
/** @enum {string} */
|
|
31656
|
+
type:
|
|
31657
|
+
| "store"
|
|
31658
|
+
| "marketplace"
|
|
31659
|
+
| "brand"
|
|
31660
|
+
| "category"
|
|
31661
|
+
| "product"
|
|
31662
|
+
| "supplier";
|
|
31663
|
+
id: string;
|
|
31664
|
+
name?: string;
|
|
31665
|
+
}[];
|
|
31666
|
+
labels: {
|
|
31667
|
+
label: string;
|
|
31668
|
+
/** @enum {string} */
|
|
31669
|
+
labelType: "pref" | "alt" | "hidden";
|
|
31670
|
+
language: string | null;
|
|
31671
|
+
}[];
|
|
31672
|
+
revisionNumber: number;
|
|
31673
|
+
lastConfirmedAt: string;
|
|
31674
|
+
reviewBy: string | null;
|
|
31675
|
+
/** @enum {string} */
|
|
31676
|
+
indexStatus: "pending" | "indexed" | "failed";
|
|
31677
|
+
createdAt: string;
|
|
31678
|
+
updatedAt: string;
|
|
31679
|
+
editors: string[];
|
|
31680
|
+
links: {
|
|
31681
|
+
id: string;
|
|
31682
|
+
title: string;
|
|
31683
|
+
summary: string;
|
|
31684
|
+
}[];
|
|
31685
|
+
backlinks: {
|
|
31686
|
+
id: string;
|
|
31687
|
+
title: string;
|
|
31688
|
+
summary: string;
|
|
31689
|
+
}[];
|
|
31690
|
+
};
|
|
31691
|
+
};
|
|
31692
|
+
};
|
|
31693
|
+
};
|
|
31694
|
+
/** @description Invalid request. */
|
|
31695
|
+
400: {
|
|
31696
|
+
headers: {
|
|
31697
|
+
[name: string]: unknown;
|
|
31698
|
+
};
|
|
31699
|
+
content?: never;
|
|
31700
|
+
};
|
|
31701
|
+
/** @description Missing credentials. */
|
|
31702
|
+
401: {
|
|
31703
|
+
headers: {
|
|
31704
|
+
[name: string]: unknown;
|
|
31705
|
+
};
|
|
31706
|
+
content?: never;
|
|
31707
|
+
};
|
|
31708
|
+
/** @description Missing OAuth scope or organization capability. */
|
|
31709
|
+
403: {
|
|
31710
|
+
headers: {
|
|
31711
|
+
[name: string]: unknown;
|
|
31712
|
+
};
|
|
31713
|
+
content?: never;
|
|
31714
|
+
};
|
|
31715
|
+
/** @description Wiki page not found in this organization. */
|
|
31716
|
+
404: {
|
|
31717
|
+
headers: {
|
|
31718
|
+
[name: string]: unknown;
|
|
31719
|
+
};
|
|
31720
|
+
content?: never;
|
|
31721
|
+
};
|
|
31722
|
+
/** @description A title or alias is already used by another page, or the page changed since baseRevisionNumber. */
|
|
31723
|
+
409: {
|
|
31724
|
+
headers: {
|
|
31725
|
+
[name: string]: unknown;
|
|
31726
|
+
};
|
|
31727
|
+
content?: never;
|
|
31728
|
+
};
|
|
31729
|
+
};
|
|
31730
|
+
};
|
|
31731
|
+
get_v1_wiki_pages_by_pageid_revisions: {
|
|
31732
|
+
parameters: {
|
|
31733
|
+
query?: {
|
|
31734
|
+
organizationId?: string;
|
|
31735
|
+
};
|
|
31736
|
+
header?: never;
|
|
31737
|
+
path: {
|
|
31738
|
+
pageId: string;
|
|
31739
|
+
};
|
|
31740
|
+
cookie?: never;
|
|
31741
|
+
};
|
|
31742
|
+
requestBody?: never;
|
|
31743
|
+
responses: {
|
|
31744
|
+
/** @description Revisions. */
|
|
31745
|
+
200: {
|
|
31746
|
+
headers: {
|
|
31747
|
+
[name: string]: unknown;
|
|
31748
|
+
};
|
|
31749
|
+
content: {
|
|
31750
|
+
"application/json": {
|
|
31751
|
+
ok: boolean;
|
|
31752
|
+
/** @constant */
|
|
31753
|
+
apiVersion: "developer_v1";
|
|
31754
|
+
operationId: string;
|
|
31755
|
+
/** @enum {string} */
|
|
31756
|
+
status: "accepted" | "completed" | "failed";
|
|
31757
|
+
jobId?: string;
|
|
31758
|
+
warnings: string[];
|
|
31759
|
+
recommendations: string[];
|
|
31760
|
+
links: {
|
|
31761
|
+
[key: string]: string;
|
|
31762
|
+
};
|
|
31763
|
+
data: {
|
|
31764
|
+
revisions: {
|
|
31765
|
+
revisionNumber: number;
|
|
31766
|
+
title: string;
|
|
31767
|
+
summary: string;
|
|
31768
|
+
body: string;
|
|
31769
|
+
/** @enum {string} */
|
|
31770
|
+
originType:
|
|
31771
|
+
| "person"
|
|
31772
|
+
| "agent"
|
|
31773
|
+
| "import"
|
|
31774
|
+
| "bootstrap"
|
|
31775
|
+
| "system";
|
|
31776
|
+
changeSummary: string | null;
|
|
31777
|
+
createdByName: string | null;
|
|
31778
|
+
createdAt: string;
|
|
31779
|
+
}[];
|
|
31780
|
+
};
|
|
31781
|
+
};
|
|
31782
|
+
};
|
|
31783
|
+
};
|
|
31784
|
+
/** @description Invalid request. */
|
|
31785
|
+
400: {
|
|
31786
|
+
headers: {
|
|
31787
|
+
[name: string]: unknown;
|
|
31788
|
+
};
|
|
31789
|
+
content?: never;
|
|
31790
|
+
};
|
|
31791
|
+
/** @description Missing credentials. */
|
|
31792
|
+
401: {
|
|
31793
|
+
headers: {
|
|
31794
|
+
[name: string]: unknown;
|
|
31795
|
+
};
|
|
31796
|
+
content?: never;
|
|
31797
|
+
};
|
|
31798
|
+
/** @description Missing OAuth scope or organization capability. */
|
|
31799
|
+
403: {
|
|
31800
|
+
headers: {
|
|
31801
|
+
[name: string]: unknown;
|
|
31802
|
+
};
|
|
31803
|
+
content?: never;
|
|
31804
|
+
};
|
|
31805
|
+
/** @description Wiki page not found in this organization. */
|
|
31806
|
+
404: {
|
|
31807
|
+
headers: {
|
|
31808
|
+
[name: string]: unknown;
|
|
31809
|
+
};
|
|
31810
|
+
content?: never;
|
|
31811
|
+
};
|
|
31812
|
+
};
|
|
31813
|
+
};
|
|
31814
|
+
post_v1_wiki_search: {
|
|
31815
|
+
parameters: {
|
|
31816
|
+
query?: never;
|
|
31817
|
+
header?: never;
|
|
31818
|
+
path?: never;
|
|
31819
|
+
cookie?: never;
|
|
31820
|
+
};
|
|
31821
|
+
requestBody: {
|
|
31822
|
+
content: {
|
|
31823
|
+
"application/json": {
|
|
31824
|
+
organizationId?: string;
|
|
31825
|
+
query: string;
|
|
31826
|
+
topK?: number;
|
|
31827
|
+
};
|
|
31828
|
+
};
|
|
31829
|
+
};
|
|
31830
|
+
responses: {
|
|
31831
|
+
/** @description Matching fragments. */
|
|
31832
|
+
200: {
|
|
31833
|
+
headers: {
|
|
31834
|
+
[name: string]: unknown;
|
|
31835
|
+
};
|
|
31836
|
+
content: {
|
|
31837
|
+
"application/json": {
|
|
31838
|
+
ok: boolean;
|
|
31839
|
+
/** @constant */
|
|
31840
|
+
apiVersion: "developer_v1";
|
|
31841
|
+
operationId: string;
|
|
31842
|
+
/** @enum {string} */
|
|
31843
|
+
status: "accepted" | "completed" | "failed";
|
|
31844
|
+
jobId?: string;
|
|
31845
|
+
warnings: string[];
|
|
31846
|
+
recommendations: string[];
|
|
31847
|
+
links: {
|
|
31848
|
+
[key: string]: string;
|
|
31849
|
+
};
|
|
31850
|
+
data: {
|
|
31851
|
+
query: string;
|
|
31852
|
+
count: number;
|
|
31853
|
+
hits: {
|
|
31854
|
+
pageId: string;
|
|
31855
|
+
title: string;
|
|
31856
|
+
summary: string;
|
|
31857
|
+
chunkId: string;
|
|
31858
|
+
chunkIndex: number;
|
|
31859
|
+
revisionNumber: number;
|
|
31860
|
+
snippet: string;
|
|
31861
|
+
score: number;
|
|
31862
|
+
matchedBy: ("label" | "text" | "meaning" | "graph" | "link")[];
|
|
31863
|
+
stale: boolean;
|
|
31864
|
+
lastConfirmedAt: string | null;
|
|
31865
|
+
}[];
|
|
31866
|
+
retrieval: {
|
|
31867
|
+
graph: boolean;
|
|
31868
|
+
meaning: boolean;
|
|
31869
|
+
degraded: boolean;
|
|
31870
|
+
};
|
|
31871
|
+
};
|
|
31872
|
+
};
|
|
31873
|
+
};
|
|
31874
|
+
};
|
|
31875
|
+
/** @description Invalid request. */
|
|
31876
|
+
400: {
|
|
31877
|
+
headers: {
|
|
31878
|
+
[name: string]: unknown;
|
|
31879
|
+
};
|
|
31880
|
+
content?: never;
|
|
31881
|
+
};
|
|
31882
|
+
/** @description Missing credentials. */
|
|
31883
|
+
401: {
|
|
31884
|
+
headers: {
|
|
31885
|
+
[name: string]: unknown;
|
|
31886
|
+
};
|
|
31887
|
+
content?: never;
|
|
31888
|
+
};
|
|
31889
|
+
/** @description Missing OAuth scope or organization capability. */
|
|
31890
|
+
403: {
|
|
31891
|
+
headers: {
|
|
31892
|
+
[name: string]: unknown;
|
|
31893
|
+
};
|
|
31894
|
+
content?: never;
|
|
31895
|
+
};
|
|
31896
|
+
/** @description Wiki page not found in this organization. */
|
|
31897
|
+
404: {
|
|
31898
|
+
headers: {
|
|
31899
|
+
[name: string]: unknown;
|
|
31900
|
+
};
|
|
31901
|
+
content?: never;
|
|
31902
|
+
};
|
|
31903
|
+
};
|
|
31904
|
+
};
|
|
30341
31905
|
get_v1_zalora_import: {
|
|
30342
31906
|
parameters: {
|
|
30343
31907
|
query: {
|
|
@@ -32743,7 +34307,11 @@ declare class AnalyticsClient {
|
|
|
32743
34307
|
/**
|
|
32744
34308
|
* Get Order Analytics
|
|
32745
34309
|
*
|
|
32746
|
-
* Order KPIs with their change against the previous period, a daily trend, sales by order status and by marketplace, and the top products by net sales. Repeat buyers are counted but not listed.
|
|
34310
|
+
* Order KPIs with their change against the previous period, a daily trend, sales by order status and by marketplace, and the top products by net sales. Repeat buyers are counted but not listed.
|
|
34311
|
+
|
|
34312
|
+
### Order attribution
|
|
34313
|
+
|
|
34314
|
+
`attribution` contains normalized order channels and creator handles, Net Revenue rankings partitioned by currency and exact store, and evidence coverage. Joint creator/channel groups count each order once; missing evidence is explicit. Matches the Orders analysis page. Requires `analytics:read`.
|
|
32747
34315
|
|
|
32748
34316
|
Amounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.
|
|
32749
34317
|
*
|
|
@@ -33373,7 +34941,7 @@ declare class DocumentsClient {
|
|
|
33373
34941
|
*
|
|
33374
34942
|
* Upload one file to the knowledge base as multipart/form-data. Requires `documents:write`.
|
|
33375
34943
|
|
|
33376
|
-
Accepted: PDF up to 20 MB, Word (.docx) and PowerPoint (.pptx) up to 20 MB, Excel (.xlsx/.xlsm) up to
|
|
34944
|
+
Accepted: PDF up to 20 MB, Word (.docx) and PowerPoint (.pptx) up to 20 MB, Excel (.xlsx/.xlsm) up to 20 MB, images up to 8 MB, CSV and Markdown up to 2 MB. PDFs, Word, PowerPoint, Markdown, and images are indexed in the background; poll `GET /api/v1/documents/{documentId}` until `status` is `completed`. CSV and Excel are stored for agents to read but are not indexed.
|
|
33377
34945
|
*
|
|
33378
34946
|
* `POST /api/v1/documents`
|
|
33379
34947
|
*/
|
|
@@ -33499,6 +35067,8 @@ declare class JobsClient {
|
|
|
33499
35067
|
*
|
|
33500
35068
|
* Fetch shared async status for developer-platform operations, including product workflow jobs, bulk CSV import jobs, Look generation jobs, import jobs, enrichment jobs, price comparison jobs, and sync jobs.
|
|
33501
35069
|
|
|
35070
|
+
Marketplace-only bulk imports expose data.deferStoreSelection: true. For imports with automatic publishing enabled, inspect data.publishing for per-store results.
|
|
35071
|
+
|
|
33502
35072
|
Price comparison jobs expose partial progress in data.results and their final batch result in data.result; completed means processing finished, so inspect data.result.success for comparison failures.
|
|
33503
35073
|
*
|
|
33504
35074
|
* `GET /api/v1/jobs/{jobId}`
|
|
@@ -34063,14 +35633,11 @@ declare class ProductsClient {
|
|
|
34063
35633
|
*
|
|
34064
35634
|
* Queue a bulk product import for the authenticated organization.
|
|
34065
35635
|
|
|
34066
|
-
|
|
35636
|
+
### Destinations
|
|
34067
35637
|
|
|
34068
|
-
|
|
35638
|
+
Supply targetMarketplaces and marketplaceStoreSelections to prepare for specific connected stores. Set deferStoreSelection=true to choose marketplaces only and assign stores later with POST /api/v1/products/marketplace-stores. Omit marketplaceStoreSelections and leave workflow.publish off when deferring. Automatic publishing requires catalog:sync in addition to catalog:write.
|
|
34069
35639
|
|
|
34070
|
-
|
|
34071
|
-
- Send JSON with a `products` array of 1–5,000 flat product objects (8 MiB request maximum).
|
|
34072
|
-
- Send JSON with inline `csvText`.
|
|
34073
|
-
- Send
|
|
35640
|
+
Supply explicit SKU options in each row's `variationAttributes` and native marketplace attributes in `marketplaceAttributes`. Enrichment never infers SKU options. At Zalora publish time, a missing required Size defaults to One Size only when valid for the selected category and supplied size system. Supplied sizes are preserved; missing
|
|
34074
35641
|
*
|
|
34075
35642
|
* `POST /api/v1/products/bulk-import`
|
|
34076
35643
|
*/
|
|
@@ -34248,13 +35815,27 @@ declare class ProductsClient {
|
|
|
34248
35815
|
|
|
34249
35816
|
### Enrichment options
|
|
34250
35817
|
|
|
34251
|
-
Fields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included; images are not queued here. Optional marketplaceStoreSelections maps each marketplace to an array of connected store IDs. Multiple stores on one marketplace get independent category and attribute reviews in the same review group. Set includeListingCopy=false for taxonomy only. Store countries come from the authenticated organization connections.
|
|
34252
|
-
|
|
34253
|
-
autoApplyHighConfidence defaults to false.
|
|
35818
|
+
Fields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included; images are not queued here. Optional marketplaceStoreSelections maps each marketplace to an array of connected store IDs. Multiple stores on one marketplace get independent category and attribute reviews in the same review group. Set includeListingCopy=false for taxonomy only. Store countries come from the authenticated organization connections. Use deferredMarketplaces to enrich product
|
|
34254
35819
|
*
|
|
34255
35820
|
* `POST /api/v1/products/enrich`
|
|
34256
35821
|
*/
|
|
34257
35822
|
enrich(request: OperationBody<operations["post_v1_products_enrich"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_enrich"]>>;
|
|
35823
|
+
/**
|
|
35824
|
+
* Assign Product Marketplace Stores
|
|
35825
|
+
*
|
|
35826
|
+
* Requires catalog:write. Assign one or more connected stores per marketplace to 1–100 products, including marketplace-only drafts. Get exact store IDs and countries from GET /api/v1/marketplaces/connected.
|
|
35827
|
+
|
|
35828
|
+
### Store selection
|
|
35829
|
+
|
|
35830
|
+
Each product family is updated independently. Existing listings keep their remote identities. Reusing a store ID across countries requires storeCountries to identify the connection. Each product can use only one country per store ID. Copy compatible taxonomy from an existing sourceStoreId when supplied.
|
|
35831
|
+
|
|
35832
|
+
### Publish assigned stores
|
|
35833
|
+
|
|
35834
|
+
The response includes exact data.storeTargets for publishing the successful products. HTTP 207 means at least one product failed. Inspect each result before passing those storeTargets to POST /api/v1/products/{productId}/publish.
|
|
35835
|
+
*
|
|
35836
|
+
* `POST /api/v1/products/marketplace-stores`
|
|
35837
|
+
*/
|
|
35838
|
+
assignMarketplaceStores(request: OperationBody<operations["post_v1_products_marketplace_stores"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_marketplace_stores"]>>;
|
|
34258
35839
|
/** Read a bounded chunk without summary classification; persist progress to resume. */
|
|
34259
35840
|
scan(request?: ProductScanRequest, options?: ProductScanOptions): Promise<ProductScanResult>;
|
|
34260
35841
|
/**
|
|
@@ -34901,6 +36482,92 @@ declare class WebhooksClient {
|
|
|
34901
36482
|
*/
|
|
34902
36483
|
create(request: OperationBody<operations["post_v1_webhooks"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_webhooks"]>>;
|
|
34903
36484
|
}
|
|
36485
|
+
declare class WikiClient {
|
|
36486
|
+
protected readonly _http: OmniHttp;
|
|
36487
|
+
constructor(_http: OmniHttp);
|
|
36488
|
+
/**
|
|
36489
|
+
* Export Wiki
|
|
36490
|
+
*
|
|
36491
|
+
* Export every active General page as a markdown file with YAML front matter, and the glossary (titles, aliases, related pages) as SKOS in JSON-LD. Requires documents:read.
|
|
36492
|
+
*
|
|
36493
|
+
* `GET /api/v1/wiki/export`
|
|
36494
|
+
*/
|
|
36495
|
+
exportPages(request?: OperationQuery<operations["get_v1_wiki_export"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_wiki_export"]>>;
|
|
36496
|
+
/**
|
|
36497
|
+
* Import Wiki
|
|
36498
|
+
*
|
|
36499
|
+
* Create or update General pages from markdown files. Requires documents:write. Front matter may set title, summary, aliases, hiddenLabels, appliesTo and reviewBy; without front matter the first # heading is the title.
|
|
36500
|
+
|
|
36501
|
+
Definitions from older exports are imported into the page body.
|
|
36502
|
+
|
|
36503
|
+
A file updates the page that already holds its title and otherwise creates one, so importing an export is idempotent. Each file is saved on its own and reported separately.
|
|
36504
|
+
*
|
|
36505
|
+
* `POST /api/v1/wiki/import`
|
|
36506
|
+
*/
|
|
36507
|
+
importPages(request: OperationBody<operations["post_v1_wiki_import"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_wiki_import"]>>;
|
|
36508
|
+
/**
|
|
36509
|
+
* List Wiki Pages
|
|
36510
|
+
*
|
|
36511
|
+
* List the organization's wiki pages with title, aliases and an excerpt. Requires documents:read. Filter with q (title, alias, summary and fragment text) and status (active, stale, archived); sort by newest, title or most_used.
|
|
36512
|
+
*
|
|
36513
|
+
* `GET /api/v1/wiki/pages`
|
|
36514
|
+
*/
|
|
36515
|
+
listPages(request?: OperationQuery<operations["get_v1_wiki_pages"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_wiki_pages"]>>;
|
|
36516
|
+
/**
|
|
36517
|
+
* Create Wiki Page
|
|
36518
|
+
*
|
|
36519
|
+
* Create a wiki page. Requires documents:write. The page is saved directly; the approval card applies only to changes an agent proposes in chat.
|
|
36520
|
+
|
|
36521
|
+
Titles and aliases are unique within the organization. Link other pages in the body as [[Page title]]. The page is findable by name at once; fragment, meaning and graph search follow within about a minute.
|
|
36522
|
+
*
|
|
36523
|
+
* `POST /api/v1/wiki/pages`
|
|
36524
|
+
*/
|
|
36525
|
+
createPage(request: OperationBody<operations["post_v1_wiki_pages"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_wiki_pages"]>>;
|
|
36526
|
+
/**
|
|
36527
|
+
* Archive Wiki Page
|
|
36528
|
+
*
|
|
36529
|
+
* Archive the page. Requires documents:write. Agents stop using it and it leaves search; its history and names are kept, and PATCH with status active restores it.
|
|
36530
|
+
*
|
|
36531
|
+
* `DELETE /api/v1/wiki/pages/{pageId}`
|
|
36532
|
+
*/
|
|
36533
|
+
archivePage(request: OperationPath<operations["delete_v1_wiki_pages_by_pageid"]> & OperationQuery<operations["delete_v1_wiki_pages_by_pageid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["delete_v1_wiki_pages_by_pageid"]>>;
|
|
36534
|
+
/**
|
|
36535
|
+
* Get Wiki Page
|
|
36536
|
+
*
|
|
36537
|
+
* Read one page with its body, labels, linked pages and pages that link to it. Requires documents:read.
|
|
36538
|
+
*
|
|
36539
|
+
* `GET /api/v1/wiki/pages/{pageId}`
|
|
36540
|
+
*/
|
|
36541
|
+
getPage(request: OperationPath<operations["get_v1_wiki_pages_by_pageid"]> & OperationQuery<operations["get_v1_wiki_pages_by_pageid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_wiki_pages_by_pageid"]>>;
|
|
36542
|
+
/**
|
|
36543
|
+
* Update Wiki Page
|
|
36544
|
+
*
|
|
36545
|
+
* Save a new revision. Requires documents:write. Send only the fields that change; aliases and appliesTo replace the existing lists.
|
|
36546
|
+
|
|
36547
|
+
Pass baseRevisionNumber to refuse the update with 409 if the page changed since you read it. status archives or restores the page. restoreRevisionNumber brings back an earlier revision as the newest one and ignores other fields.
|
|
36548
|
+
*
|
|
36549
|
+
* `PATCH /api/v1/wiki/pages/{pageId}`
|
|
36550
|
+
*/
|
|
36551
|
+
updatePage(request: OperationPath<operations["patch_v1_wiki_pages_by_pageid"]> & OperationBody<operations["patch_v1_wiki_pages_by_pageid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["patch_v1_wiki_pages_by_pageid"]>>;
|
|
36552
|
+
/**
|
|
36553
|
+
* List Wiki Page Revisions
|
|
36554
|
+
*
|
|
36555
|
+
* Every saved revision of a page, newest first, with author, origin and change summary. Requires documents:read.
|
|
36556
|
+
*
|
|
36557
|
+
* `GET /api/v1/wiki/pages/{pageId}/revisions`
|
|
36558
|
+
*/
|
|
36559
|
+
listRevisions(request: OperationPath<operations["get_v1_wiki_pages_by_pageid_revisions"]> & OperationQuery<operations["get_v1_wiki_pages_by_pageid_revisions"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_wiki_pages_by_pageid_revisions"]>>;
|
|
36560
|
+
/**
|
|
36561
|
+
* Search Wiki
|
|
36562
|
+
*
|
|
36563
|
+
* Search the wiki and return the best-matching fragments, the same search agents use. Requires documents:read.
|
|
36564
|
+
|
|
36565
|
+
Results fuse name matches, full text, meaning, graph relationships and page links. retrieval reports which signals were available; degraded is true when the graph or meaning search could not be used.
|
|
36566
|
+
*
|
|
36567
|
+
* `POST /api/v1/wiki/search`
|
|
36568
|
+
*/
|
|
36569
|
+
search(request: OperationBody<operations["post_v1_wiki_search"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_wiki_search"]>>;
|
|
36570
|
+
}
|
|
34904
36571
|
declare class ZaloraClient {
|
|
34905
36572
|
protected readonly _http: OmniHttp;
|
|
34906
36573
|
constructor(_http: OmniHttp);
|
|
@@ -34972,6 +36639,7 @@ declare class OmniGeneratedClient {
|
|
|
34972
36639
|
readonly ucp: UcpClient;
|
|
34973
36640
|
readonly webhookEvents: WebhookEventsClient;
|
|
34974
36641
|
readonly webhooks: WebhooksClient;
|
|
36642
|
+
readonly wiki: WikiClient;
|
|
34975
36643
|
readonly zalora: ZaloraClient;
|
|
34976
36644
|
constructor(_http: OmniHttp);
|
|
34977
36645
|
}
|
|
@@ -35017,6 +36685,7 @@ type OmniResources = {
|
|
|
35017
36685
|
ucp: UcpClient;
|
|
35018
36686
|
webhookEvents: WebhookEventsClient;
|
|
35019
36687
|
webhooks: WebhooksClient;
|
|
36688
|
+
wiki: WikiClient;
|
|
35020
36689
|
zalora: ZaloraClient;
|
|
35021
36690
|
};
|
|
35022
36691
|
|
|
@@ -35061,7 +36730,7 @@ declare function constructEvent(payload: string | Uint8Array, headers: WebhookHe
|
|
|
35061
36730
|
toleranceInSeconds?: number;
|
|
35062
36731
|
}): Promise<ConstructedWebhookEvent>;
|
|
35063
36732
|
|
|
35064
|
-
declare const SDK_VERSION = "0.
|
|
36733
|
+
declare const SDK_VERSION = "0.26.0";
|
|
35065
36734
|
|
|
35066
36735
|
type ProductCreatedWebhookEvent = components["schemas"]["ProductCreatedWebhookEvent"];
|
|
35067
36736
|
type ProductUpdatedWebhookEvent = components["schemas"]["ProductUpdatedWebhookEvent"];
|