@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.
- package/dist/community/client.d.ts +1 -1
- package/dist/community/client.js +2 -1
- package/dist/community/messages.cs.d.ts +5 -3
- package/dist/community/messages.cs.js +7 -3
- package/dist/community/messages.en.d.ts +5 -3
- package/dist/community/messages.en.js +7 -3
- package/dist/community/shapes.d.ts +15 -0
- package/dist/community/store.d.ts +12 -0
- package/dist/community/store.js +27 -27
- package/dist/core/client.d.ts +9 -0
- package/dist/core/client.js +54 -50
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +113 -103
- package/dist/core/queries.d.ts +1 -0
- package/dist/core/queries.js +76 -71
- package/dist/core/review/types.d.ts +7 -0
- package/dist/core/style-layers.d.ts +88 -0
- package/dist/core/style-layers.js +69 -0
- package/dist/nuxt/composables/useAsyncKb.d.ts +10 -4
- package/dist/packages/mdx-render-vue/dist/render/gallery/GalleryLightbox.vue.js +2 -2
- package/dist/packages/mdx-render-vue/dist/render/tripmap/TripMapDefault.vue.js +36 -36
- package/package.json +3 -3
- package/src/community/client.ts +3 -2
- package/src/community/messages.cs.ts +7 -3
- package/src/community/messages.en.ts +7 -3
- package/src/community/shapes.ts +15 -0
- package/src/community/store.ts +14 -2
- package/src/core/client.ts +12 -0
- package/src/core/index.ts +14 -0
- package/src/core/markdown.ts +1 -1
- package/src/core/queries.ts +8 -0
- package/src/core/review/types.ts +8 -0
- package/src/core/style-layers.ts +169 -0
- package/src/nuxt/composables/useAsyncKb.ts +11 -4
- package/src/nuxt/nuxt-imports.d.ts +2 -2
package/dist/core/index.js
CHANGED
|
@@ -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
|
|
3
|
-
import { commentErrorCode as p, commentErrorMessageKey as
|
|
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
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
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
|
|
19
|
-
import { extractTitleHeading as
|
|
20
|
-
import { componentMetadata as
|
|
21
|
-
import { REVIEW_PAGE_PATH as
|
|
22
|
-
import { formatReviewForAgent as
|
|
23
|
-
import { REVIEW_REASON_STATUS as
|
|
24
|
-
import { REVIEW_LAYER_SCRIPT_URL as
|
|
25
|
-
import { createReviewPlan as
|
|
26
|
-
import { REVIEW_FIELD_ATTR as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
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
|
-
|
|
33
|
-
|
|
33
|
+
G as ConsultationAdapterError,
|
|
34
|
+
K as DelegatedTokenError,
|
|
34
35
|
n as KbGraphQLError,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
};
|
package/dist/core/queries.d.ts
CHANGED
|
@@ -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";
|
package/dist/core/queries.js
CHANGED
|
@@ -78,7 +78,7 @@ const s = `
|
|
|
78
78
|
totalCount
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
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) {${
|
|
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) {${
|
|
123
|
+
articleWithTranslationById(id: $id, languageCode: $languageCode) {${a}}
|
|
124
124
|
}
|
|
125
|
-
`,
|
|
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) {${
|
|
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) {${
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
317
|
+
`, O = `
|
|
314
318
|
mutation DeleteComment($commentId: ID!) {
|
|
315
319
|
deleteComment(commentId: $commentId) {
|
|
316
320
|
success
|
|
317
321
|
error
|
|
318
322
|
}
|
|
319
323
|
}
|
|
320
|
-
`,
|
|
324
|
+
`, M = `
|
|
321
325
|
subscription CommentUpdates($articleId: ID!) {
|
|
322
326
|
commentUpdates(articleId: $articleId) {
|
|
323
327
|
type
|
|
324
328
|
commentId
|
|
325
329
|
}
|
|
326
330
|
}
|
|
327
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
353
|
+
`, U = `
|
|
350
354
|
mutation VerifyEmail($token: String!) {
|
|
351
355
|
verifyEmail(token: $token) {
|
|
352
356
|
success
|
|
353
357
|
error
|
|
354
358
|
}
|
|
355
359
|
}
|
|
356
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
492
|
+
`, W = `
|
|
489
493
|
query MyConsultation($id: ID!) {
|
|
490
494
|
myConsultation(id: $id) {${n}}
|
|
491
495
|
}
|
|
492
|
-
`,
|
|
496
|
+
`, x = `
|
|
493
497
|
mutation CreateMyConsultation($input: CreateMyConsultationInput!) {
|
|
494
498
|
createMyConsultation(input: $input) {${t}}
|
|
495
499
|
}
|
|
496
|
-
`,
|
|
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
|
-
`,
|
|
504
|
+
`, Y = `
|
|
501
505
|
mutation RequestMyConsultationErasure($consultationId: ID!) {
|
|
502
506
|
requestMyConsultationErasure(consultationId: $consultationId) {${t}}
|
|
503
507
|
}
|
|
504
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
544
|
+
`, Q = `
|
|
541
545
|
query ConsultationBySession($session: String!) {
|
|
542
546
|
consultationBySession(session: $session) {${n}}
|
|
543
547
|
}
|
|
544
|
-
`,
|
|
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
|
-
`,
|
|
552
|
+
`, X = `
|
|
549
553
|
mutation RequestConsultationErasureBySession($session: String!) {
|
|
550
554
|
requestConsultationErasureBySession(session: $session) {${t}}
|
|
551
555
|
}
|
|
552
|
-
`,
|
|
556
|
+
`, j = `
|
|
553
557
|
mutation CloseConsultationSession($session: String!) {
|
|
554
558
|
closeConsultationSession(session: $session) {${t}}
|
|
555
559
|
}
|
|
556
|
-
`,
|
|
560
|
+
`, J = `
|
|
557
561
|
mutation AttachConsultationToMyAccount($session: String!) {
|
|
558
562
|
attachConsultationToMyAccount(session: $session) {${t}}
|
|
559
563
|
}
|
|
560
|
-
`,
|
|
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
|
-
|
|
574
|
+
A as ACCESSIBLE_TAGS,
|
|
571
575
|
$ as ARTICLE_ALIAS_TARGET,
|
|
572
|
-
|
|
576
|
+
L as ARTICLE_COMMENTS,
|
|
573
577
|
d as ARTICLE_PREVIEW,
|
|
574
578
|
g as ARTICLE_PREVIEW_BY_ID,
|
|
575
|
-
|
|
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
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
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
|
-
|
|
593
|
-
|
|
596
|
+
p as GET_TRANSLATION,
|
|
597
|
+
y as KB_LANGUAGES,
|
|
594
598
|
I as KB_NAVIGATION,
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
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
|
-
|
|
615
|
+
f as UPDATE_COMMENT,
|
|
611
616
|
w as UPDATE_MY_PROFILE,
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
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';
|