@blogmcp/sdk 0.11.0 → 0.13.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.
Files changed (35) hide show
  1. package/dist/community/client.d.ts +1 -1
  2. package/dist/community/client.js +2 -1
  3. package/dist/community/messages.cs.d.ts +5 -3
  4. package/dist/community/messages.cs.js +7 -3
  5. package/dist/community/messages.en.d.ts +5 -3
  6. package/dist/community/messages.en.js +7 -3
  7. package/dist/community/shapes.d.ts +15 -0
  8. package/dist/community/store.d.ts +12 -0
  9. package/dist/community/store.js +27 -27
  10. package/dist/core/client.d.ts +9 -0
  11. package/dist/core/client.js +54 -50
  12. package/dist/core/index.d.ts +2 -0
  13. package/dist/core/index.js +113 -103
  14. package/dist/core/queries.d.ts +1 -0
  15. package/dist/core/queries.js +76 -71
  16. package/dist/core/review/types.d.ts +7 -0
  17. package/dist/core/style-layers.d.ts +88 -0
  18. package/dist/core/style-layers.js +69 -0
  19. package/dist/nuxt/composables/useAsyncKb.d.ts +10 -4
  20. package/dist/packages/mdx-render-vue/dist/render/gallery/GalleryLightbox.vue.js +2 -2
  21. package/dist/packages/mdx-render-vue/dist/render/tripmap/TripMapDefault.vue.js +36 -36
  22. package/package.json +3 -3
  23. package/src/community/client.ts +3 -2
  24. package/src/community/messages.cs.ts +7 -3
  25. package/src/community/messages.en.ts +7 -3
  26. package/src/community/shapes.ts +15 -0
  27. package/src/community/store.ts +14 -2
  28. package/src/core/client.ts +12 -0
  29. package/src/core/index.ts +14 -0
  30. package/src/core/markdown.ts +1 -1
  31. package/src/core/queries.ts +8 -0
  32. package/src/core/review/types.ts +8 -0
  33. package/src/core/style-layers.ts +169 -0
  34. package/src/nuxt/composables/useAsyncKb.ts +11 -4
  35. package/src/nuxt/nuxt-imports.d.ts +2 -2
@@ -1,116 +1,126 @@
1
1
  import { ACCESS_LEVEL_ORDER as t } from "./types.js";
2
- import { CONSULTATION_ERROR_CODES as i, KbGraphQLError as n, isConsultationErrorCode as s, isKbGraphQLError as m } from "./errors.js";
3
- import { commentErrorCode as p, commentErrorMessageKey as f } from "./comments-legacy.js";
2
+ import { CONSULTATION_ERROR_CODES as i, KbGraphQLError as n, isConsultationErrorCode as s, isKbGraphQLError as l } from "./errors.js";
3
+ import { commentErrorCode as p, commentErrorMessageKey as E } from "./comments-legacy.js";
4
4
  import { createKbClient as R } from "./client.js";
5
- import { findNavNode as x, flattenNav as T, isNavigable as c, navBreadcrumbs as v, navNextPrev as g, navSiblings as A, navSubtree as S, navWalk as _ } from "./navigation.js";
6
- import { createAuthManager as C, createLocalStorageTokenStorage as I, createMemoryTokenStorage as w, decodeJwtUser as b, hasAccessLevel as L } from "./auth.js";
7
- import { DelegatedTokenError as k, createDelegatedTokenMinter as M } from "./delegated-identity.js";
8
- import { ConsultationAdapterError as O, createConsultationAdapterClient as W, isConsultationAdapterError as D } from "./consultation-adapter.js";
9
- import { generateDescription as P, stripLeadingH1 as V } from "./article-seo.js";
10
- import { createMarkedInstance as K, defaultImageHtml as F, parseMarkdownSafe as G } from "./markdown.js";
11
- import { deepMerge as B } from "./blog-config.js";
12
- import { retryWithBackoff as z } from "./retry.js";
13
- import { buildThemeCssVars as J, darkenColor as Y, hexToHsl as j, hexToRgb as X, hslToRgb as Z, lightenColor as $, rgbTriplet as ee } from "./theme.js";
14
- import { buildArticleSeo as oe, buildHomeSeo as te, buildListPageSeo as ae, localizedHref as ie, pageUrl as ne, stripLocalePrefix as se } from "./seo.js";
15
- import { buildArticleListItem as le, formatArticleDate as pe, lockedRequiredAccess as fe, resolveArticleAccessLevel as Ee, toIsoDate as Re } from "./view-model.js";
16
- import { createKbI18n as xe, mergeTranslations as Te } from "./i18n.js";
5
+ import { findNavNode as d, flattenNav as x, isNavigable as T, navBreadcrumbs as S, navNextPrev as v, navSiblings as g, navSubtree as A, navWalk as _ } from "./navigation.js";
6
+ import { LAYER_SCOPE_TOKEN as C, applyLayerScope as u, layerMatches as I, layerScope as w, layerStyleText as b, matchLayers as y, mergePinnedLayers as N, parseStyleLayers as h, sortStyleLayers as M } from "./style-layers.js";
7
+ import { createAuthManager as k, createLocalStorageTokenStorage as P, createMemoryTokenStorage as W, decodeJwtUser as D, hasAccessLevel as H } from "./auth.js";
8
+ import { DelegatedTokenError as K, createDelegatedTokenMinter as U } from "./delegated-identity.js";
9
+ import { ConsultationAdapterError as G, createConsultationAdapterClient as B, isConsultationAdapterError as q } from "./consultation-adapter.js";
10
+ import { generateDescription as Q, stripLeadingH1 as Y } from "./article-seo.js";
11
+ import { createMarkedInstance as j, defaultImageHtml as X, parseMarkdownSafe as Z } from "./markdown.js";
12
+ import { deepMerge as ee } from "./blog-config.js";
13
+ import { retryWithBackoff as oe } from "./retry.js";
14
+ import { buildThemeCssVars as ae, darkenColor as ie, hexToHsl as ne, hexToRgb as se, hslToRgb as le, lightenColor as me, rgbTriplet as pe } from "./theme.js";
15
+ import { buildArticleSeo as fe, buildHomeSeo as Re, buildListPageSeo as ce, localizedHref as de, pageUrl as xe, stripLocalePrefix as Te } from "./seo.js";
16
+ import { buildArticleListItem as ve, formatArticleDate as ge, lockedRequiredAccess as Ae, resolveArticleAccessLevel as _e, toIsoDate as Le } from "./view-model.js";
17
+ import { createKbI18n as ue, mergeTranslations as Ie } from "./i18n.js";
17
18
  import * as e from "./queries.js";
18
- import { prepareProps as ve } from "@blogmcp/mdx-schema/prepareProps";
19
- import { extractTitleHeading as Ae, inlineMarkdownToPlainText as Se } from "@blogmcp/mdx-schema/title";
20
- import { componentMetadata as ue, getComponentMetadata as Ce, getComponentNames as Ie } from "@blogmcp/mdx-schema/metadata";
21
- import { REVIEW_PAGE_PATH as be, REVIEW_ROUTE_PATTERN as Le, isReviewTokenFormat as Ne } from "./review/types.js";
22
- import { formatReviewForAgent as Me, formatReviewRound as he } from "./review/format.js";
23
- import { REVIEW_REASON_STATUS as We, createReviewClient as De, getReviewSession as He } from "./review/client.js";
24
- import { REVIEW_LAYER_SCRIPT_URL as Ve, REVIEW_SESSION_ELEMENT_ID as Ue, renderReviewStatusHtml as Ke, reviewBootstrapHtml as Fe, reviewContentWithMedia as Ge, reviewFieldAttrs as ye, reviewIgnoreAttrs as Be, reviewResponseHeaders as qe, reviewRootAttrs as ze, reviewStatusText as Qe } from "./review/page.js";
25
- import { createReviewPlan as Ye, normalizeReviewText as je } from "./review/plan.js";
26
- import { REVIEW_FIELD_ATTR as Ze, REVIEW_IGNORE_ATTR as $e, REVIEW_ROOT_ATTR as er, stampReviewDom as rr } from "./review/stamp.js";
27
- import { default as tr } from "./translations/cs.json.js";
28
- import { default as ir } from "./translations/en.json.js";
19
+ import { prepareProps as be } from "@blogmcp/mdx-schema/prepareProps";
20
+ import { extractTitleHeading as Ne, inlineMarkdownToPlainText as he } from "@blogmcp/mdx-schema/title";
21
+ import { componentMetadata as Oe, getComponentMetadata as ke, getComponentNames as Pe } from "@blogmcp/mdx-schema/metadata";
22
+ import { REVIEW_PAGE_PATH as De, REVIEW_ROUTE_PATTERN as He, isReviewTokenFormat as Ve } from "./review/types.js";
23
+ import { formatReviewForAgent as Ue, formatReviewRound as Fe } from "./review/format.js";
24
+ import { REVIEW_REASON_STATUS as Be, createReviewClient as qe, getReviewSession as ze } from "./review/client.js";
25
+ import { REVIEW_LAYER_SCRIPT_URL as Ye, REVIEW_SESSION_ELEMENT_ID as Je, renderReviewStatusHtml as je, reviewBootstrapHtml as Xe, reviewContentWithMedia as Ze, reviewFieldAttrs as $e, reviewIgnoreAttrs as er, reviewResponseHeaders as rr, reviewRootAttrs as or, reviewStatusText as tr } from "./review/page.js";
26
+ import { createReviewPlan as ir, normalizeReviewText as nr } from "./review/plan.js";
27
+ import { REVIEW_FIELD_ATTR as lr, REVIEW_IGNORE_ATTR as mr, REVIEW_ROOT_ATTR as pr, stampReviewDom as Er } from "./review/stamp.js";
28
+ import { default as Rr } from "./translations/cs.json.js";
29
+ import { default as dr } from "./translations/en.json.js";
29
30
  export {
30
31
  t as ACCESS_LEVEL_ORDER,
31
32
  i as CONSULTATION_ERROR_CODES,
32
- O as ConsultationAdapterError,
33
- k as DelegatedTokenError,
33
+ G as ConsultationAdapterError,
34
+ K as DelegatedTokenError,
34
35
  n as KbGraphQLError,
35
- Ze as REVIEW_FIELD_ATTR,
36
- $e as REVIEW_IGNORE_ATTR,
37
- Ve as REVIEW_LAYER_SCRIPT_URL,
38
- be as REVIEW_PAGE_PATH,
39
- We as REVIEW_REASON_STATUS,
40
- er as REVIEW_ROOT_ATTR,
41
- Le as REVIEW_ROUTE_PATTERN,
42
- Ue as REVIEW_SESSION_ELEMENT_ID,
43
- le as buildArticleListItem,
44
- oe as buildArticleSeo,
45
- te as buildHomeSeo,
46
- ae as buildListPageSeo,
47
- J as buildThemeCssVars,
36
+ C as LAYER_SCOPE_TOKEN,
37
+ lr as REVIEW_FIELD_ATTR,
38
+ mr as REVIEW_IGNORE_ATTR,
39
+ Ye as REVIEW_LAYER_SCRIPT_URL,
40
+ De as REVIEW_PAGE_PATH,
41
+ Be as REVIEW_REASON_STATUS,
42
+ pr as REVIEW_ROOT_ATTR,
43
+ He as REVIEW_ROUTE_PATTERN,
44
+ Je as REVIEW_SESSION_ELEMENT_ID,
45
+ u as applyLayerScope,
46
+ ve as buildArticleListItem,
47
+ fe as buildArticleSeo,
48
+ Re as buildHomeSeo,
49
+ ce as buildListPageSeo,
50
+ ae as buildThemeCssVars,
48
51
  p as commentErrorCode,
49
- f as commentErrorMessageKey,
50
- ue as componentMetadata,
51
- C as createAuthManager,
52
- W as createConsultationAdapterClient,
53
- M as createDelegatedTokenMinter,
52
+ E as commentErrorMessageKey,
53
+ Oe as componentMetadata,
54
+ k as createAuthManager,
55
+ B as createConsultationAdapterClient,
56
+ U as createDelegatedTokenMinter,
54
57
  R as createKbClient,
55
- xe as createKbI18n,
56
- I as createLocalStorageTokenStorage,
57
- K as createMarkedInstance,
58
- w as createMemoryTokenStorage,
59
- De as createReviewClient,
60
- Ye as createReviewPlan,
61
- tr as csTranslations,
62
- Y as darkenColor,
63
- b as decodeJwtUser,
64
- B as deepMerge,
65
- F as defaultImageHtml,
66
- ir as enTranslations,
67
- Ae as extractTitleHeading,
68
- x as findNavNode,
69
- T as flattenNav,
70
- pe as formatArticleDate,
71
- Me as formatReviewForAgent,
72
- he as formatReviewRound,
73
- P as generateDescription,
74
- Ce as getComponentMetadata,
75
- Ie as getComponentNames,
76
- He as getReviewSession,
77
- L as hasAccessLevel,
78
- j as hexToHsl,
79
- X as hexToRgb,
80
- Z as hslToRgb,
81
- Se as inlineMarkdownToPlainText,
82
- D as isConsultationAdapterError,
58
+ ue as createKbI18n,
59
+ P as createLocalStorageTokenStorage,
60
+ j as createMarkedInstance,
61
+ W as createMemoryTokenStorage,
62
+ qe as createReviewClient,
63
+ ir as createReviewPlan,
64
+ Rr as csTranslations,
65
+ ie as darkenColor,
66
+ D as decodeJwtUser,
67
+ ee as deepMerge,
68
+ X as defaultImageHtml,
69
+ dr as enTranslations,
70
+ Ne as extractTitleHeading,
71
+ d as findNavNode,
72
+ x as flattenNav,
73
+ ge as formatArticleDate,
74
+ Ue as formatReviewForAgent,
75
+ Fe as formatReviewRound,
76
+ Q as generateDescription,
77
+ ke as getComponentMetadata,
78
+ Pe as getComponentNames,
79
+ ze as getReviewSession,
80
+ H as hasAccessLevel,
81
+ ne as hexToHsl,
82
+ se as hexToRgb,
83
+ le as hslToRgb,
84
+ he as inlineMarkdownToPlainText,
85
+ q as isConsultationAdapterError,
83
86
  s as isConsultationErrorCode,
84
- m as isKbGraphQLError,
85
- c as isNavigable,
86
- Ne as isReviewTokenFormat,
87
- $ as lightenColor,
88
- ie as localizedHref,
89
- fe as lockedRequiredAccess,
90
- Te as mergeTranslations,
91
- v as navBreadcrumbs,
92
- g as navNextPrev,
93
- A as navSiblings,
94
- S as navSubtree,
87
+ l as isKbGraphQLError,
88
+ T as isNavigable,
89
+ Ve as isReviewTokenFormat,
90
+ I as layerMatches,
91
+ w as layerScope,
92
+ b as layerStyleText,
93
+ me as lightenColor,
94
+ de as localizedHref,
95
+ Ae as lockedRequiredAccess,
96
+ y as matchLayers,
97
+ N as mergePinnedLayers,
98
+ Ie as mergeTranslations,
99
+ S as navBreadcrumbs,
100
+ v as navNextPrev,
101
+ g as navSiblings,
102
+ A as navSubtree,
95
103
  _ as navWalk,
96
- je as normalizeReviewText,
97
- ne as pageUrl,
98
- G as parseMarkdownSafe,
99
- ve as prepareProps,
104
+ nr as normalizeReviewText,
105
+ xe as pageUrl,
106
+ Z as parseMarkdownSafe,
107
+ h as parseStyleLayers,
108
+ be as prepareProps,
100
109
  e as queries,
101
- Ke as renderReviewStatusHtml,
102
- Ee as resolveArticleAccessLevel,
103
- z as retryWithBackoff,
104
- Fe as reviewBootstrapHtml,
105
- Ge as reviewContentWithMedia,
106
- ye as reviewFieldAttrs,
107
- Be as reviewIgnoreAttrs,
108
- qe as reviewResponseHeaders,
109
- ze as reviewRootAttrs,
110
- Qe as reviewStatusText,
111
- ee as rgbTriplet,
112
- rr as stampReviewDom,
113
- V as stripLeadingH1,
114
- se as stripLocalePrefix,
115
- Re as toIsoDate
110
+ je as renderReviewStatusHtml,
111
+ _e as resolveArticleAccessLevel,
112
+ oe as retryWithBackoff,
113
+ Xe as reviewBootstrapHtml,
114
+ Ze as reviewContentWithMedia,
115
+ $e as reviewFieldAttrs,
116
+ er as reviewIgnoreAttrs,
117
+ rr as reviewResponseHeaders,
118
+ or as reviewRootAttrs,
119
+ tr as reviewStatusText,
120
+ pe as rgbTriplet,
121
+ M as sortStyleLayers,
122
+ Er as stampReviewDom,
123
+ Y as stripLeadingH1,
124
+ Te as stripLocalePrefix,
125
+ Le as toIsoDate
116
126
  };
@@ -18,6 +18,7 @@ export declare const ARTICLE_VERSION = "\n query ArticleVersion($versionId: ID!
18
18
  export declare const SEARCH_KNOWLEDGE_BASE = "\n query SearchKnowledgeBase($query: String!, $tags: [String!], $contentType: String, $limit: Int, $minSimilarity: Float, $searchMode: SearchMode) {\n searchKnowledgeBase(query: $query, tags: $tags, contentType: $contentType, limit: $limit, minSimilarity: $minSimilarity, searchMode: $searchMode) {\n articleId\n filename\n title\n chunkText\n similarity\n }\n }\n";
19
19
  export declare const GET_KB_CONTEXT = "\n query GetKBContext($query: String!, $maxChunks: Int) {\n getKBContext(query: $query, maxChunks: $maxChunks) {\n chunks {\n filename\n title\n text\n similarity\n }\n totalChunks\n }\n }\n";
20
20
  export declare const KB_NAVIGATION = "\n query KbNavigation($scope: String, $locale: String) {\n kbNavigation(scope: $scope, locale: $locale)\n }\n";
21
+ export declare const KB_STYLE_LAYERS = "\n query KbStyleLayers {\n kbStyleLayers\n }\n";
21
22
  export declare const ACCESSIBLE_TAGS = "\n query AccessibleTags {\n accessibleKbTags {\n tags {\n id\n slug\n name\n description\n color\n }\n totalCount\n }\n }\n";
22
23
  export declare const LOCALIZED_TAGS = "\n query LocalizedTags($languageCode: String!) {\n localizedTags(languageCode: $languageCode) {\n id\n name\n slug\n description\n color\n accessLevel\n languageCode\n isFallback\n }\n }\n";
23
24
  export declare const KB_LANGUAGES = "\n query KBLanguages {\n kbLanguages {\n id\n code\n name\n nativeName\n isSource\n isEnabled\n sortOrder\n }\n }\n";
@@ -78,7 +78,7 @@ const s = `
78
78
  totalCount
79
79
  }
80
80
  }
81
- `, o = `
81
+ `, a = `
82
82
  id
83
83
  filename
84
84
  contentType
@@ -116,13 +116,13 @@ const s = `
116
116
  accessRights
117
117
  `, c = `
118
118
  query ArticleWithTranslation($filename: String!, $languageCode: String!) {
119
- articleWithTranslation(filename: $filename, languageCode: $languageCode) {${o}}
119
+ articleWithTranslation(filename: $filename, languageCode: $languageCode) {${a}}
120
120
  }
121
121
  `, u = `
122
122
  query ArticleWithTranslationById($id: ID!, $languageCode: String!) {
123
- articleWithTranslationById(id: $id, languageCode: $languageCode) {${o}}
123
+ articleWithTranslationById(id: $id, languageCode: $languageCode) {${a}}
124
124
  }
125
- `, a = `
125
+ `, o = `
126
126
  id
127
127
  filename
128
128
  title
@@ -136,11 +136,11 @@ const s = `
136
136
  excerpt
137
137
  `, d = `
138
138
  query ArticlePreview($filename: String!, $languageCode: String!) {
139
- articlePreview(filename: $filename, languageCode: $languageCode) {${a}}
139
+ articlePreview(filename: $filename, languageCode: $languageCode) {${o}}
140
140
  }
141
141
  `, g = `
142
142
  query ArticlePreviewById($id: ID!, $languageCode: String!) {
143
- articlePreviewById(id: $id, languageCode: $languageCode) {${a}}
143
+ articlePreviewById(id: $id, languageCode: $languageCode) {${o}}
144
144
  }
145
145
  `, $ = `
146
146
  query ArticleAliasTarget($filename: String!) {
@@ -187,6 +187,10 @@ const s = `
187
187
  kbNavigation(scope: $scope, locale: $locale)
188
188
  }
189
189
  `, T = `
190
+ query KbStyleLayers {
191
+ kbStyleLayers
192
+ }
193
+ `, A = `
190
194
  query AccessibleTags {
191
195
  accessibleKbTags {
192
196
  tags {
@@ -199,7 +203,7 @@ const s = `
199
203
  totalCount
200
204
  }
201
205
  }
202
- `, A = `
206
+ `, E = `
203
207
  query LocalizedTags($languageCode: String!) {
204
208
  localizedTags(languageCode: $languageCode) {
205
209
  id
@@ -212,7 +216,7 @@ const s = `
212
216
  isFallback
213
217
  }
214
218
  }
215
- `, E = `
219
+ `, y = `
216
220
  query KBLanguages {
217
221
  kbLanguages {
218
222
  id
@@ -224,7 +228,7 @@ const s = `
224
228
  sortOrder
225
229
  }
226
230
  }
227
- `, p = `
231
+ `, _ = `
228
232
  query ArticleTranslations($articleId: ID!) {
229
233
  listArticleTranslations(articleId: $articleId) {
230
234
  id
@@ -235,7 +239,7 @@ const s = `
235
239
  updatedAt
236
240
  }
237
241
  }
238
- `, y = `
242
+ `, p = `
239
243
  query GetTranslation($sourceFilename: String!, $languageCode: String!) {
240
244
  getTranslation(sourceFilename: $sourceFilename, languageCode: $languageCode) {
241
245
  id
@@ -263,7 +267,7 @@ const s = `
263
267
  isTranslated
264
268
  isEdited
265
269
  createdAt
266
- `, _ = `
270
+ `, L = `
267
271
  query ArticleComments($articleId: ID!, $languageCode: String!) {
268
272
  articleComments(articleId: $articleId, languageCode: $languageCode) {
269
273
  comments {
@@ -290,7 +294,7 @@ const s = `
290
294
  }
291
295
  }
292
296
  }
293
- `, L = `
297
+ `, R = `
294
298
  mutation CreateComment($articleId: ID!, $content: String!, $sourceLanguageCode: String!, $parentCommentId: ID) {
295
299
  createComment(articleId: $articleId, content: $content, sourceLanguageCode: $sourceLanguageCode, parentCommentId: $parentCommentId) {
296
300
  success
@@ -300,7 +304,7 @@ const s = `
300
304
  }
301
305
  }
302
306
  }
303
- `, R = `
307
+ `, f = `
304
308
  mutation UpdateComment($commentId: ID!, $content: String!) {
305
309
  updateComment(commentId: $commentId, content: $content) {
306
310
  success
@@ -310,21 +314,21 @@ const s = `
310
314
  }
311
315
  }
312
316
  }
313
- `, f = `
317
+ `, O = `
314
318
  mutation DeleteComment($commentId: ID!) {
315
319
  deleteComment(commentId: $commentId) {
316
320
  success
317
321
  error
318
322
  }
319
323
  }
320
- `, O = `
324
+ `, M = `
321
325
  subscription CommentUpdates($articleId: ID!) {
322
326
  commentUpdates(articleId: $articleId) {
323
327
  type
324
328
  commentId
325
329
  }
326
330
  }
327
- `, M = `
331
+ `, b = `
328
332
  mutation Login($email: String!, $password: String!) {
329
333
  login(email: $email, password: $password) {
330
334
  success
@@ -338,7 +342,7 @@ const s = `
338
342
  error
339
343
  }
340
344
  }
341
- `, b = `
345
+ `, P = `
342
346
  mutation Register($email: String!, $password: String!, $name: String) {
343
347
  register(email: $email, password: $password, name: $name) {
344
348
  success
@@ -346,14 +350,14 @@ const s = `
346
350
  error
347
351
  }
348
352
  }
349
- `, P = `
353
+ `, U = `
350
354
  mutation VerifyEmail($token: String!) {
351
355
  verifyEmail(token: $token) {
352
356
  success
353
357
  error
354
358
  }
355
359
  }
356
- `, U = `
360
+ `, q = `
357
361
  mutation ForgotPassword($email: String!) {
358
362
  forgotPassword(email: $email) {
359
363
  success
@@ -368,7 +372,7 @@ const s = `
368
372
  error
369
373
  }
370
374
  }
371
- `, q = `
375
+ `, D = `
372
376
  mutation ResendVerification($email: String!) {
373
377
  resendVerification(email: $email) {
374
378
  success
@@ -376,7 +380,7 @@ const s = `
376
380
  error
377
381
  }
378
382
  }
379
- `, D = `
383
+ `, k = `
380
384
  mutation ChangePassword($currentPassword: String!, $newPassword: String!) {
381
385
  changePassword(currentPassword: $currentPassword, newPassword: $newPassword) {
382
386
  success
@@ -397,7 +401,7 @@ const s = `
397
401
  error
398
402
  }
399
403
  }
400
- `, k = `
404
+ `, B = `
401
405
  query MyReportSettings {
402
406
  myReportSettings {
403
407
  autoReportErrors
@@ -409,7 +413,7 @@ const s = `
409
413
  feedbackNotifications
410
414
  }
411
415
  }
412
- `, B = `
416
+ `, v = `
413
417
  mutation UpdateMyReportSettings(
414
418
  $autoReportErrors: String
415
419
  $autoReportContent: String
@@ -457,7 +461,7 @@ const s = `
457
461
  error
458
462
  duplicate
459
463
  consultation {${n}}
460
- `, v = `
464
+ `, G = `
461
465
  query ConsultationPublicConfig($locale: String!) {
462
466
  consultationPublicConfig(locale: $locale) {
463
467
  enabled
@@ -475,7 +479,7 @@ const s = `
475
479
  }
476
480
  }
477
481
  }
478
- `, G = `
482
+ `, K = `
479
483
  query MyConsultations($limit: Int, $offset: Int) {
480
484
  myConsultations(limit: $limit, offset: $offset) {
481
485
  id
@@ -485,23 +489,23 @@ const s = `
485
489
  messageCount
486
490
  }
487
491
  }
488
- `, K = `
492
+ `, W = `
489
493
  query MyConsultation($id: ID!) {
490
494
  myConsultation(id: $id) {${n}}
491
495
  }
492
- `, W = `
496
+ `, x = `
493
497
  mutation CreateMyConsultation($input: CreateMyConsultationInput!) {
494
498
  createMyConsultation(input: $input) {${t}}
495
499
  }
496
- `, x = `
500
+ `, F = `
497
501
  mutation PostMyConsultationMessage($consultationId: ID!, $body: String!, $clientRequestId: String!) {
498
502
  postMyConsultationMessage(consultationId: $consultationId, body: $body, clientRequestId: $clientRequestId) {${t}}
499
503
  }
500
- `, F = `
504
+ `, Y = `
501
505
  mutation RequestMyConsultationErasure($consultationId: ID!) {
502
506
  requestMyConsultationErasure(consultationId: $consultationId) {${t}}
503
507
  }
504
- `, Y = `
508
+ `, H = `
505
509
  query MyConsultationConsent($locale: String!) {
506
510
  myConsultationConsent(locale: $locale) {
507
511
  mode
@@ -517,7 +521,7 @@ const s = `
517
521
  }
518
522
  }
519
523
  }
520
- `, H = `
524
+ `, V = `
521
525
  mutation WithdrawMyConsultationConsent {
522
526
  withdrawMyConsultationConsent {
523
527
  success
@@ -526,7 +530,7 @@ const s = `
526
530
  threadsClosed
527
531
  }
528
532
  }
529
- `, V = `
533
+ `, z = `
530
534
  mutation ExchangeConsultationLink($token: String!) {
531
535
  exchangeConsultationLink(token: $token) {
532
536
  success
@@ -537,27 +541,27 @@ const s = `
537
541
  consultation {${n}}
538
542
  }
539
543
  }
540
- `, z = `
544
+ `, Q = `
541
545
  query ConsultationBySession($session: String!) {
542
546
  consultationBySession(session: $session) {${n}}
543
547
  }
544
- `, Q = `
548
+ `, Z = `
545
549
  mutation PostConsultationMessageBySession($session: String!, $body: String!, $clientRequestId: String!) {
546
550
  postConsultationMessageBySession(session: $session, body: $body, clientRequestId: $clientRequestId) {${t}}
547
551
  }
548
- `, Z = `
552
+ `, X = `
549
553
  mutation RequestConsultationErasureBySession($session: String!) {
550
554
  requestConsultationErasureBySession(session: $session) {${t}}
551
555
  }
552
- `, X = `
556
+ `, j = `
553
557
  mutation CloseConsultationSession($session: String!) {
554
558
  closeConsultationSession(session: $session) {${t}}
555
559
  }
556
- `, j = `
560
+ `, J = `
557
561
  mutation AttachConsultationToMyAccount($session: String!) {
558
562
  attachConsultationToMyAccount(session: $session) {${t}}
559
563
  }
560
- `, J = `
564
+ `, ee = `
561
565
  mutation RequestConsultationLink($email: String!) {
562
566
  requestConsultationLink(email: $email)
563
567
  }
@@ -567,49 +571,50 @@ export {
567
571
  r as ACCESSIBLE_ARTICLES_LOCALIZED,
568
572
  i as ACCESSIBLE_ARTICLES_WITH_LOCKED,
569
573
  l as ACCESSIBLE_ARTICLES_WITH_LOCKED_LOCALIZED,
570
- T as ACCESSIBLE_TAGS,
574
+ A as ACCESSIBLE_TAGS,
571
575
  $ as ARTICLE_ALIAS_TARGET,
572
- _ as ARTICLE_COMMENTS,
576
+ L as ARTICLE_COMMENTS,
573
577
  d as ARTICLE_PREVIEW,
574
578
  g as ARTICLE_PREVIEW_BY_ID,
575
- p as ARTICLE_TRANSLATIONS,
579
+ _ as ARTICLE_TRANSLATIONS,
576
580
  m as ARTICLE_VERSION,
577
581
  c as ARTICLE_WITH_TRANSLATION,
578
582
  u as ARTICLE_WITH_TRANSLATION_BY_ID,
579
- j as ATTACH_CONSULTATION_TO_MY_ACCOUNT,
580
- D as CHANGE_PASSWORD,
581
- X as CLOSE_CONSULTATION_SESSION,
582
- O as COMMENT_UPDATES_SUBSCRIPTION,
583
- z as CONSULTATION_BY_SESSION,
584
- v as CONSULTATION_PUBLIC_CONFIG,
585
- L as CREATE_COMMENT,
586
- W as CREATE_MY_CONSULTATION,
587
- f as DELETE_COMMENT,
588
- V as EXCHANGE_CONSULTATION_LINK,
589
- U as FORGOT_PASSWORD,
583
+ J as ATTACH_CONSULTATION_TO_MY_ACCOUNT,
584
+ k as CHANGE_PASSWORD,
585
+ j as CLOSE_CONSULTATION_SESSION,
586
+ M as COMMENT_UPDATES_SUBSCRIPTION,
587
+ Q as CONSULTATION_BY_SESSION,
588
+ G as CONSULTATION_PUBLIC_CONFIG,
589
+ R as CREATE_COMMENT,
590
+ x as CREATE_MY_CONSULTATION,
591
+ O as DELETE_COMMENT,
592
+ z as EXCHANGE_CONSULTATION_LINK,
593
+ q as FORGOT_PASSWORD,
590
594
  N as GET_COMMENT,
591
595
  S as GET_KB_CONTEXT,
592
- y as GET_TRANSLATION,
593
- E as KB_LANGUAGES,
596
+ p as GET_TRANSLATION,
597
+ y as KB_LANGUAGES,
594
598
  I as KB_NAVIGATION,
595
- A as LOCALIZED_TAGS,
596
- M as LOGIN,
597
- K as MY_CONSULTATION,
598
- G as MY_CONSULTATIONS,
599
- Y as MY_CONSULTATION_CONSENT,
600
- k as MY_REPORT_SETTINGS,
601
- Q as POST_CONSULTATION_MESSAGE_BY_SESSION,
602
- x as POST_MY_CONSULTATION_MESSAGE,
603
- b as REGISTER,
604
- Z as REQUEST_CONSULTATION_ERASURE_BY_SESSION,
605
- J as REQUEST_CONSULTATION_LINK,
606
- F as REQUEST_MY_CONSULTATION_ERASURE,
607
- q as RESEND_VERIFICATION,
599
+ T as KB_STYLE_LAYERS,
600
+ E as LOCALIZED_TAGS,
601
+ b as LOGIN,
602
+ W as MY_CONSULTATION,
603
+ K as MY_CONSULTATIONS,
604
+ H as MY_CONSULTATION_CONSENT,
605
+ B as MY_REPORT_SETTINGS,
606
+ Z as POST_CONSULTATION_MESSAGE_BY_SESSION,
607
+ F as POST_MY_CONSULTATION_MESSAGE,
608
+ P as REGISTER,
609
+ X as REQUEST_CONSULTATION_ERASURE_BY_SESSION,
610
+ ee as REQUEST_CONSULTATION_LINK,
611
+ Y as REQUEST_MY_CONSULTATION_ERASURE,
612
+ D as RESEND_VERIFICATION,
608
613
  h as RESET_PASSWORD,
609
614
  C as SEARCH_KNOWLEDGE_BASE,
610
- R as UPDATE_COMMENT,
615
+ f as UPDATE_COMMENT,
611
616
  w as UPDATE_MY_PROFILE,
612
- B as UPDATE_MY_REPORT_SETTINGS,
613
- P as VERIFY_EMAIL,
614
- H as WITHDRAW_MY_CONSULTATION_CONSENT
617
+ v as UPDATE_MY_REPORT_SETTINGS,
618
+ U as VERIFY_EMAIL,
619
+ V as WITHDRAW_MY_CONSULTATION_CONSENT
615
620
  };
@@ -3,6 +3,7 @@
3
3
  * your frontend"). Dependency-free: shared by the page (through `@blogmcp/review`)
4
4
  * and by server code that formats a review for the agent.
5
5
  */
6
+ import type { StyleLayer } from '../style-layers.js';
6
7
  /** The route a site serves the review page on; `{token}` is the link's token. */
7
8
  export declare const REVIEW_PAGE_PATH = "/preview/review/{token}";
8
9
  /** Express-style pattern of the same route. */
@@ -83,6 +84,12 @@ export interface ReviewSession {
83
84
  article: ReviewArticle;
84
85
  /** Media the working copy references, keyed by slug (signed URLs for non-public ones). */
85
86
  media: Record<string, ReviewMediaItem>;
87
+ /**
88
+ * Style-layer versions this link pins: on the review page a pinned version stands in for the
89
+ * published version of its layer (`mergePinnedLayers`). Absent from a knowledge base older than
90
+ * style layers; read it with `parseStyleLayers`, which takes that as an empty list.
91
+ */
92
+ styleLayers?: StyleLayer[];
86
93
  }
87
94
  export interface ReviewState {
88
95
  status: 'open';