@kanorio/sdk 1.3.0 → 1.4.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/generated/delivery.d.ts +7 -3
- package/dist/generated/management.d.ts +142 -21
- package/dist/http.d.ts +1 -1
- package/dist/http.js +1 -1
- package/package.json +1 -1
|
@@ -1460,10 +1460,14 @@ export interface components {
|
|
|
1460
1460
|
[key: string]: unknown;
|
|
1461
1461
|
};
|
|
1462
1462
|
access?: components["schemas"]["AccessSummary"];
|
|
1463
|
-
/** @description Multilingual sites: the locale this item was served in (the requested locale when a translation
|
|
1463
|
+
/** @description Multilingual sites: the locale this item was served in (the requested locale when at least one field has a translation, otherwise the primary locale). Fields fall back one by one, so check fieldLocales for a particular field */
|
|
1464
1464
|
resolvedLocale?: string;
|
|
1465
1465
|
/** @description Multilingual sites: secondary locales that have a published translation of this item */
|
|
1466
1466
|
availableLocales?: string[];
|
|
1467
|
+
/** @description Multilingual sites: the locale each translatable field was served in, keyed by its path in fieldData (`title`, `content`, or `seo.title` on system collections). A field with no translation in the requested locale shows the primary locale here even when resolvedLocale is the requested one. json, image and gallery fields are never machine-translated, so check this before treating one of them as translated. Lists only the fields this response includes */
|
|
1468
|
+
fieldLocales?: {
|
|
1469
|
+
[key: string]: string;
|
|
1470
|
+
};
|
|
1467
1471
|
/** @description Multilingual sites: the slug in every live locale */
|
|
1468
1472
|
localeSlugs?: {
|
|
1469
1473
|
[key: string]: string;
|
|
@@ -2032,7 +2036,7 @@ export interface operations {
|
|
|
2032
2036
|
includeDepth?: 1;
|
|
2033
2037
|
/** @description Comma-separated blog content formats: markdown, html, plaintext */
|
|
2034
2038
|
formats?: string;
|
|
2035
|
-
/** @description Locale for item fields marked localized; for the blog, blog_categories, blog_tags and authors collections, the post, category, tag and author translations (titles, excerpts, bodies, SEO fields). Expanded references are translated too. One of the site's locales from /site (a code such as `en-US` or the URL prefix such as `en`); omit it for the primary locale. Other values return 400 UNSUPPORTED_LOCALE, and so do locales that are not live yet (still translating, or added without going live), except in preview: with a preview token they are accepted and their draft translations are returned. Untranslated fields fall back to the primary locale. On multilingual sites each item carries resolvedLocale and
|
|
2039
|
+
/** @description Locale for item fields marked localized; for the blog, blog_categories, blog_tags and authors collections, the post, category, tag and author translations (titles, excerpts, bodies, SEO fields). Expanded references are translated too. One of the site's locales from /site (a code such as `en-US` or the URL prefix such as `en`); omit it for the primary locale. Other values return 400 UNSUPPORTED_LOCALE, and so do locales that are not live yet (still translating, or added without going live), except in preview: with a preview token they are accepted and their draft translations are returned. Untranslated fields fall back to the primary locale, field by field. On multilingual sites each item carries resolvedLocale, availableLocales and fieldLocales (the locale each translatable field was served in). */
|
|
2036
2040
|
locale?: string;
|
|
2037
2041
|
/** @description Pass `preview=1` with `X-Kanorio-Preview: knr_pv_<token>` (or a server-held PAT with `collections:view`) to read unpublished draft `fieldData` (`Cache-Control: no-store`). */
|
|
2038
2042
|
preview?: "1";
|
|
@@ -2070,7 +2074,7 @@ export interface operations {
|
|
|
2070
2074
|
preview?: "1";
|
|
2071
2075
|
/** @description Reference include depth. Only 1 is accepted in v1. */
|
|
2072
2076
|
includeDepth?: 1;
|
|
2073
|
-
/** @description Locale for the item, the same as the list endpoint (system collections use the post, category, tag and author translations; expanded references are translated too). One of the site's locales from /site (a code such as `en-US` or the URL prefix such as `en`); omit it for the primary locale. Other values return 400 UNSUPPORTED_LOCALE, and so do locales that are not live yet (still translating, or added without going live), except in preview: with a preview token they are accepted and their draft translations are returned. Untranslated fields fall back to the primary locale. On multilingual sites the item carries resolvedLocale and
|
|
2077
|
+
/** @description Locale for the item, the same as the list endpoint (system collections use the post, category, tag and author translations; expanded references are translated too). One of the site's locales from /site (a code such as `en-US` or the URL prefix such as `en`); omit it for the primary locale. Other values return 400 UNSUPPORTED_LOCALE, and so do locales that are not live yet (still translating, or added without going live), except in preview: with a preview token they are accepted and their draft translations are returned. Untranslated fields fall back to the primary locale, field by field. On multilingual sites the item carries resolvedLocale, availableLocales and fieldLocales (the locale each translatable field was served in). */
|
|
2074
2078
|
locale?: string;
|
|
2075
2079
|
};
|
|
2076
2080
|
header?: never;
|
|
@@ -1304,7 +1304,7 @@ export interface paths {
|
|
|
1304
1304
|
get?: never;
|
|
1305
1305
|
/**
|
|
1306
1306
|
* webhooks.update_events
|
|
1307
|
-
* @description Replace the subscribed event list and optional filter (collectionKeys / formIds) of a webhook endpoint. Pass null for events to subscribe to all events (including future events). Errors: FORBIDDEN, WEBHOOK_NOT_FOUND, VALIDATION.
|
|
1307
|
+
* @description Replace the subscribed event list and optional filter (collectionKeys / formIds) of a webhook endpoint. Pass null for events to subscribe to all events (including future events). The list you send becomes the whole subscription: events you leave out stop being delivered. To add events, read the endpoint with webhooks.get and send its subscribedEvents plus the new keys. Errors: FORBIDDEN, WEBHOOK_NOT_FOUND, VALIDATION.
|
|
1308
1308
|
*/
|
|
1309
1309
|
put: operations["webhooks_update_events"];
|
|
1310
1310
|
post?: never;
|
|
@@ -1321,7 +1321,11 @@ export interface paths {
|
|
|
1321
1321
|
path?: never;
|
|
1322
1322
|
cookie?: never;
|
|
1323
1323
|
};
|
|
1324
|
-
|
|
1324
|
+
/**
|
|
1325
|
+
* webhooks.get
|
|
1326
|
+
* @description Get one webhook endpoint with the same fields as an entry of webhooks.list: subscribedEvents (null = all events, including future ones), filter and recent deliveries. Read it before webhooks.update_events, which replaces the whole event list: to add events, send the current subscribedEvents plus the new ones. Errors: FORBIDDEN, WEBHOOK_NOT_FOUND.
|
|
1327
|
+
*/
|
|
1328
|
+
get: operations["webhooks_get"];
|
|
1325
1329
|
put?: never;
|
|
1326
1330
|
post?: never;
|
|
1327
1331
|
/**
|
|
@@ -1496,7 +1500,7 @@ export interface paths {
|
|
|
1496
1500
|
get: operations["localization_translations_get"];
|
|
1497
1501
|
/**
|
|
1498
1502
|
* localization.translations.upsert
|
|
1499
|
-
* @description Write translated text for some fields of one record in one secondary locale. Only the given paths change; an empty string clears that field (visitors see the primary text). Paths must come from localization.translations.get source.fields. sourceHash must equal the current source.sourceHash; if the source changed since you read it the write is rejected with SOURCE_HASH_MISMATCH (details.sourceHash) — read it again and re-translate the outdated fields. Fields you write are locked against machine re-translation, including a translation that was already running when you wrote; if their source changes later they are re-translated using your wording as reference. slug sets this locale's URL slug (one segment, lowercase; pages translate only their last segment). null makes the locale follow the primary slug. Changing a live slug adds a 301 from the old URL in that locale. Pages, global sections, site settings, blog posts and collection items keep translations as drafts that go live when the record is published (or with localization.translations.publish); every other record type goes live on write. On a site with its own frontend (frontendMode HEADLESS), which is never published, site settings translations also go live on write. Errors: FORBIDDEN, VALIDATION (details.issues, each with path, code and message: a json value that is not valid JSON or does not pass the field's checks, or code invalid_placeholder when a text uses a template variable (a triple-brace placeholder such as the order number) that the source text does not have; nothing is written), ENTITY_NOT_FOUND, LOCALE_NOT_FOUND, LOCALE_IS_PRIMARY, INVALID_FIELD_PATH (details.paths), SOURCE_HASH_MISMATCH, INVALID_SLUG, SLUG_TAKEN.
|
|
1503
|
+
* @description Write translated text for some fields of one record in one secondary locale. Only the given paths change; an empty string clears that field (visitors see the primary text). Paths must come from localization.translations.get source.fields. sourceHash must equal the current source.sourceHash; if the source changed since you read it the write is rejected with SOURCE_HASH_MISMATCH (details.sourceHash) — read it again and re-translate the outdated fields. Fields you write are locked against machine re-translation, including a translation that was already running when you wrote; if their source changes later they are re-translated using your wording as reference. slug sets this locale's URL slug (one segment, lowercase; pages translate only their last segment). null makes the locale follow the primary slug. Changing a live slug adds a 301 from the old URL in that locale. Pages, global sections, site settings, blog posts and collection items keep translations as drafts that go live when the record is published (or with localization.translations.publish), even when that locale's translation is already live; every other record type goes live on write. On a site with its own frontend (frontendMode HEADLESS), which is never published, site settings translations also go live on write. The response says which happened: live, and translation.publishState (changed = live with draft edits waiting). Errors: FORBIDDEN, VALIDATION (details.issues, each with path, code and message: a json value that is not valid JSON or does not pass the field's checks, or code invalid_placeholder when a text uses a template variable (a triple-brace placeholder such as the order number) that the source text does not have; nothing is written), ENTITY_NOT_FOUND, LOCALE_NOT_FOUND, LOCALE_IS_PRIMARY, INVALID_FIELD_PATH (details.paths), SOURCE_HASH_MISMATCH, INVALID_SLUG, SLUG_TAKEN.
|
|
1500
1504
|
*/
|
|
1501
1505
|
put: operations["localization_translations_upsert"];
|
|
1502
1506
|
post?: never;
|
|
@@ -18759,13 +18763,11 @@ export interface operations {
|
|
|
18759
18763
|
/**
|
|
18760
18764
|
* @example {
|
|
18761
18765
|
* "events": [
|
|
18762
|
-
* "collections.item.published"
|
|
18766
|
+
* "collections.item.published",
|
|
18767
|
+
* "collections.items.bulkChanged",
|
|
18768
|
+
* "content.translation.published"
|
|
18763
18769
|
* ],
|
|
18764
|
-
* "filter":
|
|
18765
|
-
* "collectionKeys": [
|
|
18766
|
-
* "blog"
|
|
18767
|
-
* ]
|
|
18768
|
-
* }
|
|
18770
|
+
* "filter": null
|
|
18769
18771
|
* }
|
|
18770
18772
|
*/
|
|
18771
18773
|
"application/json": {
|
|
@@ -18792,17 +18794,95 @@ export interface operations {
|
|
|
18792
18794
|
* @example {
|
|
18793
18795
|
* "id": "wh_example01",
|
|
18794
18796
|
* "subscribedEvents": [
|
|
18795
|
-
* "collections.item.published"
|
|
18797
|
+
* "collections.item.published",
|
|
18798
|
+
* "collections.items.bulkChanged",
|
|
18799
|
+
* "content.translation.published"
|
|
18796
18800
|
* ],
|
|
18797
|
-
* "filter":
|
|
18798
|
-
*
|
|
18799
|
-
|
|
18800
|
-
|
|
18801
|
-
|
|
18801
|
+
* "filter": null
|
|
18802
|
+
* }
|
|
18803
|
+
*/
|
|
18804
|
+
"application/json": {
|
|
18805
|
+
id: string;
|
|
18806
|
+
subscribedEvents: string[] | null;
|
|
18807
|
+
/** @description Optional sub-event filter for collection keys or form IDs. */
|
|
18808
|
+
filter?: {
|
|
18809
|
+
/** @description Only deliver collections.* events for these collection keys. */
|
|
18810
|
+
collectionKeys?: string[];
|
|
18811
|
+
/** @description Only deliver form events (customers.form.submitted, forms.form.updated and forms.form.deleted) for these form IDs. */
|
|
18812
|
+
formIds?: string[];
|
|
18813
|
+
} | null;
|
|
18814
|
+
};
|
|
18815
|
+
};
|
|
18816
|
+
};
|
|
18817
|
+
400: components["responses"]["Error400"];
|
|
18818
|
+
401: components["responses"]["Error401"];
|
|
18819
|
+
403: components["responses"]["Error403"];
|
|
18820
|
+
404: components["responses"]["Error404"];
|
|
18821
|
+
429: components["responses"]["Error429"];
|
|
18822
|
+
500: components["responses"]["Error500"];
|
|
18823
|
+
503: components["responses"]["Error503"];
|
|
18824
|
+
};
|
|
18825
|
+
};
|
|
18826
|
+
webhooks_get: {
|
|
18827
|
+
parameters: {
|
|
18828
|
+
query?: never;
|
|
18829
|
+
header?: never;
|
|
18830
|
+
path: {
|
|
18831
|
+
/** @description Website id. Get it from sites.list or from sites.create. */
|
|
18832
|
+
id: string;
|
|
18833
|
+
/** @description Webhook destination id. Get it from webhooks.list. */
|
|
18834
|
+
webhookId: string;
|
|
18835
|
+
};
|
|
18836
|
+
cookie?: never;
|
|
18837
|
+
};
|
|
18838
|
+
requestBody?: never;
|
|
18839
|
+
responses: {
|
|
18840
|
+
/** @description OK */
|
|
18841
|
+
200: {
|
|
18842
|
+
headers: {
|
|
18843
|
+
[name: string]: unknown;
|
|
18844
|
+
};
|
|
18845
|
+
content: {
|
|
18846
|
+
/**
|
|
18847
|
+
* @example {
|
|
18848
|
+
* "id": "wh_example01",
|
|
18849
|
+
* "label": "Vercel ISR Revalidate",
|
|
18850
|
+
* "addressPreview": "https://www.sunnybakery.example/…date",
|
|
18851
|
+
* "status": "ACTIVE",
|
|
18852
|
+
* "withinPlan": true,
|
|
18853
|
+
* "autoDisabled": false,
|
|
18854
|
+
* "createdAt": "2026-10-01T02:30:00.000Z",
|
|
18855
|
+
* "subscribedEvents": [
|
|
18856
|
+
* "collections.item.published",
|
|
18857
|
+
* "collections.items.bulkChanged"
|
|
18858
|
+
* ],
|
|
18859
|
+
* "filter": null,
|
|
18860
|
+
* "recentDeliveries": [
|
|
18861
|
+
* {
|
|
18862
|
+
* "id": "msg_example01",
|
|
18863
|
+
* "eventKey": "collections.item.published",
|
|
18864
|
+
* "status": "SENT",
|
|
18865
|
+
* "error": null,
|
|
18866
|
+
* "createdAt": "2026-10-06T08:00:00.000Z",
|
|
18867
|
+
* "attempts": 1,
|
|
18868
|
+
* "nextRetryAt": null,
|
|
18869
|
+
* "statusCode": 200,
|
|
18870
|
+
* "durationMs": 142
|
|
18871
|
+
* }
|
|
18872
|
+
* ]
|
|
18802
18873
|
* }
|
|
18803
18874
|
*/
|
|
18804
18875
|
"application/json": {
|
|
18805
18876
|
id: string;
|
|
18877
|
+
label: string | null;
|
|
18878
|
+
/** @description Masked destination URL (domain + last 4 chars of path). */
|
|
18879
|
+
addressPreview: string | null;
|
|
18880
|
+
/** @description ACTIVE or DISABLED. */
|
|
18881
|
+
status: string;
|
|
18882
|
+
withinPlan: boolean;
|
|
18883
|
+
autoDisabled: boolean;
|
|
18884
|
+
createdAt: string;
|
|
18885
|
+
/** @description null = subscribed to all events (including future events); array = only these event keys. */
|
|
18806
18886
|
subscribedEvents: string[] | null;
|
|
18807
18887
|
/** @description Optional sub-event filter for collection keys or form IDs. */
|
|
18808
18888
|
filter?: {
|
|
@@ -18811,6 +18891,17 @@ export interface operations {
|
|
|
18811
18891
|
/** @description Only deliver form events (customers.form.submitted, forms.form.updated and forms.form.deleted) for these form IDs. */
|
|
18812
18892
|
formIds?: string[];
|
|
18813
18893
|
} | null;
|
|
18894
|
+
recentDeliveries: {
|
|
18895
|
+
id: string;
|
|
18896
|
+
eventKey: string;
|
|
18897
|
+
status: string;
|
|
18898
|
+
error: string | null;
|
|
18899
|
+
createdAt: string;
|
|
18900
|
+
attempts: number;
|
|
18901
|
+
nextRetryAt: string | null;
|
|
18902
|
+
statusCode: number | null;
|
|
18903
|
+
durationMs: number | null;
|
|
18904
|
+
}[];
|
|
18814
18905
|
};
|
|
18815
18906
|
};
|
|
18816
18907
|
};
|
|
@@ -19447,6 +19538,7 @@ export interface operations {
|
|
|
19447
19538
|
* "entityId": "prod_example01",
|
|
19448
19539
|
* "locale": "fr-FR",
|
|
19449
19540
|
* "status": "PUBLISHED",
|
|
19541
|
+
* "publishState": "published",
|
|
19450
19542
|
* "translatedBy": "AGENT",
|
|
19451
19543
|
* "fieldCount": 2,
|
|
19452
19544
|
* "sourceHash": "c1a0e6f2b47d93e8",
|
|
@@ -19464,10 +19556,15 @@ export interface operations {
|
|
|
19464
19556
|
entityId: string;
|
|
19465
19557
|
locale: string;
|
|
19466
19558
|
/**
|
|
19467
|
-
* @description PUBLISHED =
|
|
19559
|
+
* @description PUBLISHED = a published copy exists and is live; it can still be older than the draft copy (see publishState).
|
|
19468
19560
|
* @enum {string}
|
|
19469
19561
|
*/
|
|
19470
19562
|
status: "DRAFT" | "PUBLISHED";
|
|
19563
|
+
/**
|
|
19564
|
+
* @description draft = never put live; published = the live copy matches the draft copy; changed = live, but the draft copy has edits (text or slug) that visitors do not see yet. Put them live with localization.translations.publish, or by publishing the record.
|
|
19565
|
+
* @enum {string}
|
|
19566
|
+
*/
|
|
19567
|
+
publishState: "draft" | "published" | "changed";
|
|
19471
19568
|
/**
|
|
19472
19569
|
* @description Most significant author across fields: HUMAN > SEO_FIX > AGENT > EXTERNAL > MACHINE.
|
|
19473
19570
|
* @enum {string}
|
|
@@ -19633,6 +19730,7 @@ export interface operations {
|
|
|
19633
19730
|
* "entityId": "prod_example01",
|
|
19634
19731
|
* "locale": "fr-FR",
|
|
19635
19732
|
* "status": "PUBLISHED",
|
|
19733
|
+
* "publishState": "published",
|
|
19636
19734
|
* "translatedBy": "AGENT",
|
|
19637
19735
|
* "fieldCount": 2,
|
|
19638
19736
|
* "sourceHash": "c1a0e6f2b47d93e8",
|
|
@@ -19689,10 +19787,15 @@ export interface operations {
|
|
|
19689
19787
|
entityId: string;
|
|
19690
19788
|
locale: string;
|
|
19691
19789
|
/**
|
|
19692
|
-
* @description PUBLISHED =
|
|
19790
|
+
* @description PUBLISHED = a published copy exists and is live; it can still be older than the draft copy (see publishState).
|
|
19693
19791
|
* @enum {string}
|
|
19694
19792
|
*/
|
|
19695
19793
|
status: "DRAFT" | "PUBLISHED";
|
|
19794
|
+
/**
|
|
19795
|
+
* @description draft = never put live; published = the live copy matches the draft copy; changed = live, but the draft copy has edits (text or slug) that visitors do not see yet. Put them live with localization.translations.publish, or by publishing the record.
|
|
19796
|
+
* @enum {string}
|
|
19797
|
+
*/
|
|
19798
|
+
publishState: "draft" | "published" | "changed";
|
|
19696
19799
|
/**
|
|
19697
19800
|
* @description Most significant author across fields: HUMAN > SEO_FIX > AGENT > EXTERNAL > MACHINE.
|
|
19698
19801
|
* @enum {string}
|
|
@@ -19820,6 +19923,7 @@ export interface operations {
|
|
|
19820
19923
|
* "entityId": "prod_example01",
|
|
19821
19924
|
* "locale": "fr-FR",
|
|
19822
19925
|
* "status": "PUBLISHED",
|
|
19926
|
+
* "publishState": "published",
|
|
19823
19927
|
* "translatedBy": "AGENT",
|
|
19824
19928
|
* "fieldCount": 2,
|
|
19825
19929
|
* "sourceHash": "c1a0e6f2b47d93e8",
|
|
@@ -19855,10 +19959,15 @@ export interface operations {
|
|
|
19855
19959
|
entityId: string;
|
|
19856
19960
|
locale: string;
|
|
19857
19961
|
/**
|
|
19858
|
-
* @description PUBLISHED =
|
|
19962
|
+
* @description PUBLISHED = a published copy exists and is live; it can still be older than the draft copy (see publishState).
|
|
19859
19963
|
* @enum {string}
|
|
19860
19964
|
*/
|
|
19861
19965
|
status: "DRAFT" | "PUBLISHED";
|
|
19966
|
+
/**
|
|
19967
|
+
* @description draft = never put live; published = the live copy matches the draft copy; changed = live, but the draft copy has edits (text or slug) that visitors do not see yet. Put them live with localization.translations.publish, or by publishing the record.
|
|
19968
|
+
* @enum {string}
|
|
19969
|
+
*/
|
|
19970
|
+
publishState: "draft" | "published" | "changed";
|
|
19862
19971
|
/**
|
|
19863
19972
|
* @description Most significant author across fields: HUMAN > SEO_FIX > AGENT > EXTERNAL > MACHINE.
|
|
19864
19973
|
* @enum {string}
|
|
@@ -19891,7 +20000,7 @@ export interface operations {
|
|
|
19891
20000
|
slug: string | null;
|
|
19892
20001
|
publishedSlug: string | null;
|
|
19893
20002
|
};
|
|
19894
|
-
/** @description true when visitors already see this
|
|
20003
|
+
/** @description true when visitors already see this write; false when it was saved to the draft copy only (translation.status can still be PUBLISHED for the older live copy): call localization.translations.publish, or publish the record, to put it live. */
|
|
19895
20004
|
live: boolean;
|
|
19896
20005
|
};
|
|
19897
20006
|
};
|
|
@@ -19982,6 +20091,7 @@ export interface operations {
|
|
|
19982
20091
|
* "entityId": "pg_example789",
|
|
19983
20092
|
* "locale": "fr-FR",
|
|
19984
20093
|
* "status": "PUBLISHED",
|
|
20094
|
+
* "publishState": "published",
|
|
19985
20095
|
* "translatedBy": "AGENT",
|
|
19986
20096
|
* "fieldCount": 2,
|
|
19987
20097
|
* "sourceHash": "c1a0e6f2b47d93e8",
|
|
@@ -20016,10 +20126,15 @@ export interface operations {
|
|
|
20016
20126
|
entityId: string;
|
|
20017
20127
|
locale: string;
|
|
20018
20128
|
/**
|
|
20019
|
-
* @description PUBLISHED =
|
|
20129
|
+
* @description PUBLISHED = a published copy exists and is live; it can still be older than the draft copy (see publishState).
|
|
20020
20130
|
* @enum {string}
|
|
20021
20131
|
*/
|
|
20022
20132
|
status: "DRAFT" | "PUBLISHED";
|
|
20133
|
+
/**
|
|
20134
|
+
* @description draft = never put live; published = the live copy matches the draft copy; changed = live, but the draft copy has edits (text or slug) that visitors do not see yet. Put them live with localization.translations.publish, or by publishing the record.
|
|
20135
|
+
* @enum {string}
|
|
20136
|
+
*/
|
|
20137
|
+
publishState: "draft" | "published" | "changed";
|
|
20023
20138
|
/**
|
|
20024
20139
|
* @description Most significant author across fields: HUMAN > SEO_FIX > AGENT > EXTERNAL > MACHINE.
|
|
20025
20140
|
* @enum {string}
|
|
@@ -20110,6 +20225,7 @@ export interface operations {
|
|
|
20110
20225
|
* "entityId": "prod_example01",
|
|
20111
20226
|
* "locale": "fr-FR",
|
|
20112
20227
|
* "status": "PUBLISHED",
|
|
20228
|
+
* "publishState": "published",
|
|
20113
20229
|
* "translatedBy": "AGENT",
|
|
20114
20230
|
* "fieldCount": 2,
|
|
20115
20231
|
* "sourceHash": "c1a0e6f2b47d93e8",
|
|
@@ -20150,10 +20266,15 @@ export interface operations {
|
|
|
20150
20266
|
entityId: string;
|
|
20151
20267
|
locale: string;
|
|
20152
20268
|
/**
|
|
20153
|
-
* @description PUBLISHED =
|
|
20269
|
+
* @description PUBLISHED = a published copy exists and is live; it can still be older than the draft copy (see publishState).
|
|
20154
20270
|
* @enum {string}
|
|
20155
20271
|
*/
|
|
20156
20272
|
status: "DRAFT" | "PUBLISHED";
|
|
20273
|
+
/**
|
|
20274
|
+
* @description draft = never put live; published = the live copy matches the draft copy; changed = live, but the draft copy has edits (text or slug) that visitors do not see yet. Put them live with localization.translations.publish, or by publishing the record.
|
|
20275
|
+
* @enum {string}
|
|
20276
|
+
*/
|
|
20277
|
+
publishState: "draft" | "published" | "changed";
|
|
20157
20278
|
/**
|
|
20158
20279
|
* @description Most significant author across fields: HUMAN > SEO_FIX > AGENT > EXTERNAL > MACHINE.
|
|
20159
20280
|
* @enum {string}
|
package/dist/http.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* and reads the Deprecation and Sunset headers (RFC 9745, RFC 8594). No business logic.
|
|
4
4
|
*/
|
|
5
5
|
import { type ServerKeyOptions } from "./server-key.js";
|
|
6
|
-
export declare const KANORIO_SDK_VERSION = "1.
|
|
6
|
+
export declare const KANORIO_SDK_VERSION = "1.4.0";
|
|
7
7
|
export declare const SDK_VERSION_HEADER = "x-kanorio-sdk-version";
|
|
8
8
|
export interface ErrorEnvelope {
|
|
9
9
|
error: {
|
package/dist/http.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* and reads the Deprecation and Sunset headers (RFC 9745, RFC 8594). No business logic.
|
|
4
4
|
*/
|
|
5
5
|
import { EDGE_CHALLENGE_CODE, edgeChallengeMessage, isEdgeChallenge, serverKeyRequest } from "./server-key.js";
|
|
6
|
-
export const KANORIO_SDK_VERSION = "1.
|
|
6
|
+
export const KANORIO_SDK_VERSION = "1.4.0";
|
|
7
7
|
export const SDK_VERSION_HEADER = "x-kanorio-sdk-version";
|
|
8
8
|
export function isErrorEnvelope(value) {
|
|
9
9
|
if (typeof value !== "object" || value === null)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanorio/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Typed fetch clients and headless helpers (SEO rewrites, JSON-LD, webhook revalidateTag) for the Kanorio Management API, Content Delivery API and Customer API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|