@blogmcp/sdk 0.6.1 → 0.7.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 (136) hide show
  1. package/dist/consultations/channel-text.d.ts +118 -0
  2. package/dist/consultations/channel-text.js +40 -0
  3. package/dist/consultations/index.d.ts +28 -0
  4. package/dist/consultations/index.js +60 -0
  5. package/dist/consultations/messages.cs.d.ts +149 -0
  6. package/dist/consultations/messages.cs.js +143 -0
  7. package/dist/consultations/messages.d.ts +34 -0
  8. package/dist/consultations/messages.en.d.ts +143 -0
  9. package/dist/consultations/messages.en.js +141 -0
  10. package/dist/consultations/messages.js +48 -0
  11. package/dist/consultations/outcome.d.ts +121 -0
  12. package/dist/consultations/outcome.js +161 -0
  13. package/dist/consultations/public-config.d.ts +71 -0
  14. package/dist/consultations/public-config.js +104 -0
  15. package/dist/consultations/reader.d.ts +83 -0
  16. package/dist/consultations/reader.js +128 -0
  17. package/dist/consultations/routes.d.ts +214 -0
  18. package/dist/consultations/routes.js +149 -0
  19. package/dist/consultations/server/client-ip.d.ts +50 -0
  20. package/dist/consultations/server/client-ip.js +44 -0
  21. package/dist/consultations/server/contact.d.ts +23 -0
  22. package/dist/consultations/server/contact.js +138 -0
  23. package/dist/consultations/server/context.d.ts +246 -0
  24. package/dist/consultations/server/context.js +152 -0
  25. package/dist/consultations/server/cookie.d.ts +60 -0
  26. package/dist/consultations/server/cookie.js +57 -0
  27. package/dist/consultations/server/env.d.ts +20 -0
  28. package/dist/consultations/server/env.js +35 -0
  29. package/dist/consultations/server/http.d.ts +59 -0
  30. package/dist/consultations/server/http.js +64 -0
  31. package/dist/consultations/server/index.d.ts +37 -0
  32. package/dist/consultations/server/index.js +19 -0
  33. package/dist/consultations/server/origin.d.ts +39 -0
  34. package/dist/consultations/server/origin.js +31 -0
  35. package/dist/consultations/server/server.d.ts +106 -0
  36. package/dist/consultations/server/server.js +122 -0
  37. package/dist/consultations/server/session.d.ts +38 -0
  38. package/dist/consultations/server/session.js +210 -0
  39. package/dist/consultations/server/transport.d.ts +69 -0
  40. package/dist/consultations/server/transport.js +117 -0
  41. package/dist/consultations/server/turnstile.d.ts +44 -0
  42. package/dist/consultations/server/turnstile.js +31 -0
  43. package/dist/consultations/site.d.ts +100 -0
  44. package/dist/consultations/site.js +60 -0
  45. package/dist/consultations/submit-new.d.ts +103 -0
  46. package/dist/consultations/submit-new.js +72 -0
  47. package/dist/core/auth.d.ts +2 -2
  48. package/dist/core/client.d.ts +25 -4
  49. package/dist/core/client.js +35 -30
  50. package/dist/core/consultation-adapter.d.ts +2 -2
  51. package/dist/core/consultations.d.ts +1 -1
  52. package/dist/core/errors.d.ts +1 -1
  53. package/dist/core/errors.js +16 -15
  54. package/dist/core/index.d.ts +31 -31
  55. package/dist/core/index.js +35 -34
  56. package/dist/core/markdown.d.ts +1 -1
  57. package/dist/core/queries.d.ts +4 -1
  58. package/dist/core/queries.js +131 -86
  59. package/dist/core/review/format.d.ts +1 -1
  60. package/dist/core/review/index.d.ts +2 -2
  61. package/dist/core/seo.d.ts +1 -1
  62. package/dist/core/translations/cs.json.js +1 -1
  63. package/dist/core/translations/en.json.js +1 -1
  64. package/dist/core/types.d.ts +50 -1
  65. package/dist/core/view-model.d.ts +12 -2
  66. package/dist/core/view-model.js +40 -34
  67. package/dist/{packages/tripmap-core/node_modules → node_modules}/pmtiles/dist/esm/index.js +1 -1
  68. package/dist/nuxt/composables/useAsyncKb.d.ts +4 -4
  69. package/dist/nuxt/index.d.ts +1 -1
  70. package/dist/packages/tripmap-core/dist/engine.js +3 -3
  71. package/dist/packages/tripmap-core/dist/generated/maplibre-worker.bundle.js +1 -1
  72. package/dist/react/KbMdxContent.d.ts +1 -1
  73. package/dist/react/context.d.ts +4 -4
  74. package/dist/react/hooks/useImageRenderer.d.ts +1 -1
  75. package/dist/react/hooks/useKbClient.d.ts +1 -1
  76. package/dist/react/hooks/useKbContext.d.ts +1 -1
  77. package/dist/react/hooks/useKbI18n.d.ts +1 -1
  78. package/dist/react/hooks/useKbLanguage.d.ts +1 -1
  79. package/dist/react/hooks/useKbSearch.d.ts +1 -1
  80. package/dist/react/hooks/useMdxContent.d.ts +1 -1
  81. package/dist/react/index.d.ts +15 -15
  82. package/dist/react/provider.d.ts +2 -2
  83. package/dist/react/server/index.d.ts +2 -2
  84. package/dist/vue/components/KbAccessGate.vue.d.ts +4 -1
  85. package/dist/vue/components/KbAccessGate.vue.js +42 -32
  86. package/dist/vue/components/KbArticleCard.vue.d.ts +3 -1
  87. package/dist/vue/components/KbArticleCard.vue.js +67 -39
  88. package/dist/vue/composables/useArticles.d.ts +1 -1
  89. package/dist/vue/composables/useImageRenderer.d.ts +1 -1
  90. package/dist/vue/composables/useKbAuth.d.ts +1 -1
  91. package/dist/vue/composables/useKbClient.d.ts +1 -1
  92. package/dist/vue/composables/useKbComments.d.ts +1 -1
  93. package/dist/vue/composables/useKbI18n.d.ts +1 -1
  94. package/dist/vue/composables/useKbLanguage.d.ts +1 -1
  95. package/dist/vue/composables/useNavigation.d.ts +1 -1
  96. package/dist/vue/composables/useSearch.d.ts +1 -1
  97. package/dist/vue/composables/useTags.d.ts +1 -1
  98. package/dist/vue/index.d.ts +19 -19
  99. package/dist/vue/plugin.d.ts +4 -4
  100. package/package.json +15 -5
  101. package/src/consultations/channel-text.ts +168 -0
  102. package/src/consultations/index.ts +87 -0
  103. package/src/consultations/messages.cs.ts +175 -0
  104. package/src/consultations/messages.en.ts +171 -0
  105. package/src/consultations/messages.ts +91 -0
  106. package/src/consultations/outcome.ts +278 -0
  107. package/src/consultations/public-config.ts +246 -0
  108. package/src/consultations/reader.ts +281 -0
  109. package/src/consultations/routes.ts +341 -0
  110. package/src/consultations/server/client-ip.ts +106 -0
  111. package/src/consultations/server/contact.ts +267 -0
  112. package/src/consultations/server/context.ts +403 -0
  113. package/src/consultations/server/cookie.ts +129 -0
  114. package/src/consultations/server/env.ts +66 -0
  115. package/src/consultations/server/http.ts +148 -0
  116. package/src/consultations/server/index.ts +55 -0
  117. package/src/consultations/server/origin.ts +71 -0
  118. package/src/consultations/server/server.ts +322 -0
  119. package/src/consultations/server/session.ts +414 -0
  120. package/src/consultations/server/transport.ts +196 -0
  121. package/src/consultations/server/turnstile.ts +98 -0
  122. package/src/consultations/site.ts +183 -0
  123. package/src/consultations/submit-new.ts +266 -0
  124. package/src/core/auth.ts +1 -1
  125. package/src/core/client.ts +32 -1
  126. package/src/core/errors.ts +5 -2
  127. package/src/core/index.ts +3 -0
  128. package/src/core/queries.ts +56 -0
  129. package/src/core/translations/cs.json +2 -1
  130. package/src/core/translations/en.json +2 -1
  131. package/src/core/types.ts +51 -0
  132. package/src/core/view-model.ts +18 -0
  133. package/src/vue/components/KbAccessGate.vue +14 -1
  134. package/src/vue/components/KbArticleCard.vue +25 -0
  135. /package/dist/{packages/tripmap-core/node_modules → node_modules}/maplibre-gl/dist/maplibre-gl-shared.js +0 -0
  136. /package/dist/{packages/tripmap-core/node_modules → node_modules}/maplibre-gl/dist/maplibre-gl.js +0 -0
@@ -16,6 +16,26 @@ const s = `
16
16
  totalCount
17
17
  }
18
18
  }
19
+ `, i = `
20
+ query AccessibleArticlesWithLocked($status: String, $tags: [String!], $tagMode: String, $limit: Int, $offset: Int) {
21
+ accessibleKbArticles(status: $status, tags: $tags, tagMode: $tagMode, limit: $limit, offset: $offset, includeLocked: true) {
22
+ articles {
23
+ id
24
+ filename
25
+ title
26
+ description
27
+ contentType
28
+ status
29
+ publishedAt
30
+ updatedAt
31
+ tags
32
+ featuredImageUrl
33
+ access
34
+ locked
35
+ }
36
+ totalCount
37
+ }
38
+ }
19
39
  `, o = `
20
40
  id
21
41
  filename
@@ -52,19 +72,39 @@ const s = `
52
72
  height
53
73
  }
54
74
  accessRights
55
- `, a = `
75
+ `, r = `
56
76
  query ArticleWithTranslation($filename: String!, $languageCode: String!) {
57
77
  articleWithTranslation(filename: $filename, languageCode: $languageCode) {${o}}
58
78
  }
59
- `, i = `
79
+ `, c = `
60
80
  query ArticleWithTranslationById($id: ID!, $languageCode: String!) {
61
81
  articleWithTranslationById(id: $id, languageCode: $languageCode) {${o}}
62
82
  }
63
- `, r = `
83
+ `, a = `
84
+ id
85
+ filename
86
+ title
87
+ description
88
+ languageCode
89
+ isFallback
90
+ publishedAt
91
+ featuredImageUrl
92
+ requiredAccess
93
+ mode
94
+ excerpt
95
+ `, l = `
96
+ query ArticlePreview($filename: String!, $languageCode: String!) {
97
+ articlePreview(filename: $filename, languageCode: $languageCode) {${a}}
98
+ }
99
+ `, u = `
100
+ query ArticlePreviewById($id: ID!, $languageCode: String!) {
101
+ articlePreviewById(id: $id, languageCode: $languageCode) {${a}}
102
+ }
103
+ `, d = `
64
104
  query ArticleAliasTarget($filename: String!) {
65
105
  articleAliasTarget(filename: $filename)
66
106
  }
67
- `, c = `
107
+ `, g = `
68
108
  query ArticleVersion($versionId: ID!, $previewKey: String) {
69
109
  articleVersion(versionId: $versionId, previewKey: $previewKey) {
70
110
  versionId
@@ -78,7 +118,7 @@ const s = `
78
118
  createdAt
79
119
  }
80
120
  }
81
- `, l = `
121
+ `, m = `
82
122
  query SearchKnowledgeBase($query: String!, $tags: [String!], $contentType: String, $limit: Int, $minSimilarity: Float, $searchMode: SearchMode) {
83
123
  searchKnowledgeBase(query: $query, tags: $tags, contentType: $contentType, limit: $limit, minSimilarity: $minSimilarity, searchMode: $searchMode) {
84
124
  articleId
@@ -88,7 +128,7 @@ const s = `
88
128
  similarity
89
129
  }
90
130
  }
91
- `, u = `
131
+ `, $ = `
92
132
  query GetKBContext($query: String!, $maxChunks: Int) {
93
133
  getKBContext(query: $query, maxChunks: $maxChunks) {
94
134
  chunks {
@@ -100,11 +140,11 @@ const s = `
100
140
  totalChunks
101
141
  }
102
142
  }
103
- `, d = `
143
+ `, C = `
104
144
  query KbNavigation($scope: String, $locale: String) {
105
145
  kbNavigation(scope: $scope, locale: $locale)
106
146
  }
107
- `, m = `
147
+ `, S = `
108
148
  query AccessibleTags {
109
149
  accessibleKbTags {
110
150
  tags {
@@ -117,7 +157,7 @@ const s = `
117
157
  totalCount
118
158
  }
119
159
  }
120
- `, g = `
160
+ `, I = `
121
161
  query LocalizedTags($languageCode: String!) {
122
162
  localizedTags(languageCode: $languageCode) {
123
163
  id
@@ -130,7 +170,7 @@ const s = `
130
170
  isFallback
131
171
  }
132
172
  }
133
- `, $ = `
173
+ `, T = `
134
174
  query KBLanguages {
135
175
  kbLanguages {
136
176
  id
@@ -142,7 +182,7 @@ const s = `
142
182
  sortOrder
143
183
  }
144
184
  }
145
- `, C = `
185
+ `, A = `
146
186
  query ArticleTranslations($articleId: ID!) {
147
187
  listArticleTranslations(articleId: $articleId) {
148
188
  id
@@ -153,7 +193,7 @@ const s = `
153
193
  updatedAt
154
194
  }
155
195
  }
156
- `, S = `
196
+ `, E = `
157
197
  query GetTranslation($sourceFilename: String!, $languageCode: String!) {
158
198
  getTranslation(sourceFilename: $sourceFilename, languageCode: $languageCode) {
159
199
  id
@@ -181,7 +221,7 @@ const s = `
181
221
  isTranslated
182
222
  isEdited
183
223
  createdAt
184
- `, I = `
224
+ `, y = `
185
225
  query ArticleComments($articleId: ID!, $languageCode: String!) {
186
226
  articleComments(articleId: $articleId, languageCode: $languageCode) {
187
227
  comments {
@@ -199,7 +239,7 @@ const s = `
199
239
  totalCount
200
240
  }
201
241
  }
202
- `, T = `
242
+ `, N = `
203
243
  query GetComment($commentId: ID!, $languageCode: String!) {
204
244
  comment(commentId: $commentId, languageCode: $languageCode) {
205
245
  ${e}
@@ -208,7 +248,7 @@ const s = `
208
248
  }
209
249
  }
210
250
  }
211
- `, A = `
251
+ `, _ = `
212
252
  mutation CreateComment($articleId: ID!, $content: String!, $sourceLanguageCode: String!, $parentCommentId: ID) {
213
253
  createComment(articleId: $articleId, content: $content, sourceLanguageCode: $sourceLanguageCode, parentCommentId: $parentCommentId) {
214
254
  success
@@ -218,7 +258,7 @@ const s = `
218
258
  }
219
259
  }
220
260
  }
221
- `, E = `
261
+ `, p = `
222
262
  mutation UpdateComment($commentId: ID!, $content: String!) {
223
263
  updateComment(commentId: $commentId, content: $content) {
224
264
  success
@@ -228,21 +268,21 @@ const s = `
228
268
  }
229
269
  }
230
270
  }
231
- `, N = `
271
+ `, R = `
232
272
  mutation DeleteComment($commentId: ID!) {
233
273
  deleteComment(commentId: $commentId) {
234
274
  success
235
275
  error
236
276
  }
237
277
  }
238
- `, y = `
278
+ `, L = `
239
279
  subscription CommentUpdates($articleId: ID!) {
240
280
  commentUpdates(articleId: $articleId) {
241
281
  type
242
282
  commentId
243
283
  }
244
284
  }
245
- `, p = `
285
+ `, O = `
246
286
  mutation Login($email: String!, $password: String!) {
247
287
  login(email: $email, password: $password) {
248
288
  success
@@ -256,7 +296,7 @@ const s = `
256
296
  error
257
297
  }
258
298
  }
259
- `, _ = `
299
+ `, f = `
260
300
  mutation Register($email: String!, $password: String!, $name: String) {
261
301
  register(email: $email, password: $password, name: $name) {
262
302
  success
@@ -264,14 +304,14 @@ const s = `
264
304
  error
265
305
  }
266
306
  }
267
- `, R = `
307
+ `, M = `
268
308
  mutation VerifyEmail($token: String!) {
269
309
  verifyEmail(token: $token) {
270
310
  success
271
311
  error
272
312
  }
273
313
  }
274
- `, O = `
314
+ `, P = `
275
315
  mutation ForgotPassword($email: String!) {
276
316
  forgotPassword(email: $email) {
277
317
  success
@@ -279,14 +319,14 @@ const s = `
279
319
  error
280
320
  }
281
321
  }
282
- `, L = `
322
+ `, q = `
283
323
  mutation ResetPassword($token: String!, $password: String!) {
284
324
  resetPassword(token: $token, password: $password) {
285
325
  success
286
326
  error
287
327
  }
288
328
  }
289
- `, M = `
329
+ `, h = `
290
330
  mutation ResendVerification($email: String!) {
291
331
  resendVerification(email: $email) {
292
332
  success
@@ -294,14 +334,14 @@ const s = `
294
334
  error
295
335
  }
296
336
  }
297
- `, f = `
337
+ `, D = `
298
338
  mutation ChangePassword($currentPassword: String!, $newPassword: String!) {
299
339
  changePassword(currentPassword: $currentPassword, newPassword: $newPassword) {
300
340
  success
301
341
  error
302
342
  }
303
343
  }
304
- `, P = `
344
+ `, U = `
305
345
  mutation UpdateMyProfile($name: String, $email: String) {
306
346
  updateMyProfile(name: $name, email: $email) {
307
347
  success
@@ -315,7 +355,7 @@ const s = `
315
355
  error
316
356
  }
317
357
  }
318
- `, h = `
358
+ `, b = `
319
359
  query MyReportSettings {
320
360
  myReportSettings {
321
361
  autoReportErrors
@@ -327,7 +367,7 @@ const s = `
327
367
  feedbackNotifications
328
368
  }
329
369
  }
330
- `, q = `
370
+ `, w = `
331
371
  mutation UpdateMyReportSettings(
332
372
  $autoReportErrors: String
333
373
  $autoReportContent: String
@@ -375,10 +415,12 @@ const s = `
375
415
  error
376
416
  duplicate
377
417
  consultation {${n}}
378
- `, U = `
418
+ `, k = `
379
419
  query ConsultationPublicConfig($locale: String!) {
380
420
  consultationPublicConfig(locale: $locale) {
381
421
  enabled
422
+ readerSiteUrl
423
+ emailNotices
382
424
  channels {
383
425
  channel
384
426
  mode
@@ -391,7 +433,7 @@ const s = `
391
433
  }
392
434
  }
393
435
  }
394
- `, D = `
436
+ `, B = `
395
437
  query MyConsultations($limit: Int, $offset: Int) {
396
438
  myConsultations(limit: $limit, offset: $offset) {
397
439
  id
@@ -401,23 +443,23 @@ const s = `
401
443
  messageCount
402
444
  }
403
445
  }
404
- `, w = `
446
+ `, v = `
405
447
  query MyConsultation($id: ID!) {
406
448
  myConsultation(id: $id) {${n}}
407
449
  }
408
- `, b = `
450
+ `, G = `
409
451
  mutation CreateMyConsultation($input: CreateMyConsultationInput!) {
410
452
  createMyConsultation(input: $input) {${t}}
411
453
  }
412
- `, k = `
454
+ `, x = `
413
455
  mutation PostMyConsultationMessage($consultationId: ID!, $body: String!, $clientRequestId: String!) {
414
456
  postMyConsultationMessage(consultationId: $consultationId, body: $body, clientRequestId: $clientRequestId) {${t}}
415
457
  }
416
- `, B = `
458
+ `, K = `
417
459
  mutation RequestMyConsultationErasure($consultationId: ID!) {
418
460
  requestMyConsultationErasure(consultationId: $consultationId) {${t}}
419
461
  }
420
- `, G = `
462
+ `, W = `
421
463
  query MyConsultationConsent($locale: String!) {
422
464
  myConsultationConsent(locale: $locale) {
423
465
  mode
@@ -433,7 +475,7 @@ const s = `
433
475
  }
434
476
  }
435
477
  }
436
- `, v = `
478
+ `, F = `
437
479
  mutation WithdrawMyConsultationConsent {
438
480
  withdrawMyConsultationConsent {
439
481
  success
@@ -442,7 +484,7 @@ const s = `
442
484
  threadsClosed
443
485
  }
444
486
  }
445
- `, x = `
487
+ `, Y = `
446
488
  mutation ExchangeConsultationLink($token: String!) {
447
489
  exchangeConsultationLink(token: $token) {
448
490
  success
@@ -453,74 +495,77 @@ const s = `
453
495
  consultation {${n}}
454
496
  }
455
497
  }
456
- `, K = `
498
+ `, H = `
457
499
  query ConsultationBySession($session: String!) {
458
500
  consultationBySession(session: $session) {${n}}
459
501
  }
460
- `, F = `
502
+ `, V = `
461
503
  mutation PostConsultationMessageBySession($session: String!, $body: String!, $clientRequestId: String!) {
462
504
  postConsultationMessageBySession(session: $session, body: $body, clientRequestId: $clientRequestId) {${t}}
463
505
  }
464
- `, Y = `
506
+ `, Q = `
465
507
  mutation RequestConsultationErasureBySession($session: String!) {
466
508
  requestConsultationErasureBySession(session: $session) {${t}}
467
509
  }
468
- `, W = `
510
+ `, z = `
469
511
  mutation CloseConsultationSession($session: String!) {
470
512
  closeConsultationSession(session: $session) {${t}}
471
513
  }
472
- `, H = `
514
+ `, X = `
473
515
  mutation AttachConsultationToMyAccount($session: String!) {
474
516
  attachConsultationToMyAccount(session: $session) {${t}}
475
517
  }
476
- `, V = `
518
+ `, Z = `
477
519
  mutation RequestConsultationLink($email: String!) {
478
520
  requestConsultationLink(email: $email)
479
521
  }
480
522
  `;
481
523
  export {
482
524
  s as ACCESSIBLE_ARTICLES,
483
- m as ACCESSIBLE_TAGS,
484
- r as ARTICLE_ALIAS_TARGET,
485
- I as ARTICLE_COMMENTS,
486
- C as ARTICLE_TRANSLATIONS,
487
- c as ARTICLE_VERSION,
488
- a as ARTICLE_WITH_TRANSLATION,
489
- i as ARTICLE_WITH_TRANSLATION_BY_ID,
490
- H as ATTACH_CONSULTATION_TO_MY_ACCOUNT,
491
- f as CHANGE_PASSWORD,
492
- W as CLOSE_CONSULTATION_SESSION,
493
- y as COMMENT_UPDATES_SUBSCRIPTION,
494
- K as CONSULTATION_BY_SESSION,
495
- U as CONSULTATION_PUBLIC_CONFIG,
496
- A as CREATE_COMMENT,
497
- b as CREATE_MY_CONSULTATION,
498
- N as DELETE_COMMENT,
499
- x as EXCHANGE_CONSULTATION_LINK,
500
- O as FORGOT_PASSWORD,
501
- T as GET_COMMENT,
502
- u as GET_KB_CONTEXT,
503
- S as GET_TRANSLATION,
504
- $ as KB_LANGUAGES,
505
- d as KB_NAVIGATION,
506
- g as LOCALIZED_TAGS,
507
- p as LOGIN,
508
- w as MY_CONSULTATION,
509
- D as MY_CONSULTATIONS,
510
- G as MY_CONSULTATION_CONSENT,
511
- h as MY_REPORT_SETTINGS,
512
- F as POST_CONSULTATION_MESSAGE_BY_SESSION,
513
- k as POST_MY_CONSULTATION_MESSAGE,
514
- _ as REGISTER,
515
- Y as REQUEST_CONSULTATION_ERASURE_BY_SESSION,
516
- V as REQUEST_CONSULTATION_LINK,
517
- B as REQUEST_MY_CONSULTATION_ERASURE,
518
- M as RESEND_VERIFICATION,
519
- L as RESET_PASSWORD,
520
- l as SEARCH_KNOWLEDGE_BASE,
521
- E as UPDATE_COMMENT,
522
- P as UPDATE_MY_PROFILE,
523
- q as UPDATE_MY_REPORT_SETTINGS,
524
- R as VERIFY_EMAIL,
525
- v as WITHDRAW_MY_CONSULTATION_CONSENT
525
+ i as ACCESSIBLE_ARTICLES_WITH_LOCKED,
526
+ S as ACCESSIBLE_TAGS,
527
+ d as ARTICLE_ALIAS_TARGET,
528
+ y as ARTICLE_COMMENTS,
529
+ l as ARTICLE_PREVIEW,
530
+ u as ARTICLE_PREVIEW_BY_ID,
531
+ A as ARTICLE_TRANSLATIONS,
532
+ g as ARTICLE_VERSION,
533
+ r as ARTICLE_WITH_TRANSLATION,
534
+ c as ARTICLE_WITH_TRANSLATION_BY_ID,
535
+ X as ATTACH_CONSULTATION_TO_MY_ACCOUNT,
536
+ D as CHANGE_PASSWORD,
537
+ z as CLOSE_CONSULTATION_SESSION,
538
+ L as COMMENT_UPDATES_SUBSCRIPTION,
539
+ H as CONSULTATION_BY_SESSION,
540
+ k as CONSULTATION_PUBLIC_CONFIG,
541
+ _ as CREATE_COMMENT,
542
+ G as CREATE_MY_CONSULTATION,
543
+ R as DELETE_COMMENT,
544
+ Y as EXCHANGE_CONSULTATION_LINK,
545
+ P as FORGOT_PASSWORD,
546
+ N as GET_COMMENT,
547
+ $ as GET_KB_CONTEXT,
548
+ E as GET_TRANSLATION,
549
+ T as KB_LANGUAGES,
550
+ C as KB_NAVIGATION,
551
+ I as LOCALIZED_TAGS,
552
+ O as LOGIN,
553
+ v as MY_CONSULTATION,
554
+ B as MY_CONSULTATIONS,
555
+ W as MY_CONSULTATION_CONSENT,
556
+ b as MY_REPORT_SETTINGS,
557
+ V as POST_CONSULTATION_MESSAGE_BY_SESSION,
558
+ x as POST_MY_CONSULTATION_MESSAGE,
559
+ f as REGISTER,
560
+ Q as REQUEST_CONSULTATION_ERASURE_BY_SESSION,
561
+ Z as REQUEST_CONSULTATION_LINK,
562
+ K as REQUEST_MY_CONSULTATION_ERASURE,
563
+ h as RESEND_VERIFICATION,
564
+ q as RESET_PASSWORD,
565
+ m as SEARCH_KNOWLEDGE_BASE,
566
+ p as UPDATE_COMMENT,
567
+ U as UPDATE_MY_PROFILE,
568
+ w as UPDATE_MY_REPORT_SETTINGS,
569
+ M as VERIFY_EMAIL,
570
+ F as WITHDRAW_MY_CONSULTATION_CONSENT
526
571
  };
@@ -16,7 +16,7 @@
16
16
  * The `visual_feedback` block holds exactly what the app's does: the comments anchored
17
17
  * to at least one block with a rectangle; none, no block.
18
18
  */
19
- import type { StoredReviewRound } from './types';
19
+ import type { StoredReviewRound } from './types.js';
20
20
  /** The text blocks of one round, in the app's order. */
21
21
  export declare function formatReviewRound(round: StoredReviewRound['payload'], filename: string): string[];
22
22
  /**
@@ -2,5 +2,5 @@
2
2
  * Review links — review a draft on your own article page (docs: "Add review to your
3
3
  * frontend"). Dependency-free; the review layer itself ships as `@blogmcp/review`.
4
4
  */
5
- export { REVIEW_PAGE_PATH, REVIEW_ROUTE_PATTERN, isReviewTokenFormat, type ReviewMediaScope, type ReviewMediaItem, type ReviewArticle, type ReviewRoundInfo, type ReviewSession, type ReviewState, type ReviewNodeRef, type ReviewComment, type ReviewMediaPick, type ReviewSubmissionV1, type ReviewMediaSnapshot, type StoredReviewRound, } from './types';
6
- export { formatReviewRound, formatReviewForAgent } from './format';
5
+ export { REVIEW_PAGE_PATH, REVIEW_ROUTE_PATTERN, isReviewTokenFormat, type ReviewMediaScope, type ReviewMediaItem, type ReviewArticle, type ReviewRoundInfo, type ReviewSession, type ReviewState, type ReviewNodeRef, type ReviewComment, type ReviewMediaPick, type ReviewSubmissionV1, type ReviewMediaSnapshot, type StoredReviewRound, } from './types.js';
6
+ export { formatReviewRound, formatReviewForAgent } from './format.js';
@@ -11,7 +11,7 @@
11
11
  * i18n stays in the framework layer: callers pass already-translated strings
12
12
  * (page title pieces, brand suffix, description).
13
13
  */
14
- import type { MediaGeo, ContentImageGeo } from './types';
14
+ import type { MediaGeo, ContentImageGeo } from './types.js';
15
15
  export type LocalePrefixStrategy = 'prefix_except_default';
16
16
  export interface SeoConfig {
17
17
  /** Absolute site origin, no trailing slash, e.g. `https://blog.example.com`. */
@@ -1,4 +1,4 @@
1
- const e = { articles: "Články", topics: "Témata", search: "Hledání", knowledgeBase: "Znalostní báze", account: "Účet" }, o = { title: "Znalostní báze", subtitle: "Objevte odborné články, výzkumné poznámky a průvodce", searchPlaceholder: "Hledat články...", featured: "Doporučené", recentArticles: "Nejnovější články", viewAll: "Zobrazit vše", noArticles: "Zatím žádné články", checkBackSoon: "Brzy přidáme nový obsah.", loadError: "Nepodařilo se načíst články. Zkuste to prosím znovu." }, t = { title: "Články", browseCollection: "Procházejte naši sbírku {count} článků", filterByTopic: "Filtrovat podle tématu", allArticles: "Všechny články", noArticlesFound: "Žádné články nenalezeny", tryDifferentTopic: "Zkuste vybrat jiné téma nebo se vraťte později.", loadError: "Nepodařilo se načíst články. Zkuste to prosím znovu.", previous: "Předchozí", next: "Další", pageOf: "Stránka {page} z {total}", backToArticles: "Zpět na články", backToAllArticles: "Zpět na všechny články", allArticlesLink: "Všechny články", notFound: "Článek nenalezen", notFoundDescription: "Článek, který hledáte, neexistuje nebo byl odstraněn.", browseAllArticles: "Procházet všechny články", loadErrorTitle: "Nepodařilo se načíst článek", loadErrorDescription: "Článek nebyl nalezen nebo došlo k chybě při načítání.", translationNotAvailable: "Překlad není k dispozici – zobrazuje se původní obsah", share: "Sdílet:", copyLink: "Zkopírovat odkaz" }, n = { title: "Hledání", pageTitle: "Hledání | Znalostní báze", placeholder: "Hledat články...", matchBroad: "Volné", matchBroadDesc: "Více výsledků", matchBalanced: "Vyvážené", matchBalancedDesc: "Doporučeno", matchStrict: "Přesné", matchStrictDesc: "Přesné shody", foundResults: "Nalezen {count} výsledek | Nalezeny {count} výsledky | Nalezeno {count} výsledků", match: "shoda", noResults: "Žádné výsledky", tryDifferentKeywords: "Zkuste jiná klíčová slova nebo procházejte naše", articlesLink: "články", startSearching: "Začněte hledat", enterQuery: "Zadejte dotaz pro vyhledávání ve znalostní bázi", searchError: "Vyhledávání se nezdařilo. Zkuste to prosím znovu." }, a = { title: "Témata", subtitle: "Prozkoumejte obsah podle tématu", tags: "Štítky", browseByTopic: "Procházet články podle tématu", noTags: "Zatím žádné štítky.", allTopics: "Všechna témata", topicNotFound: "Téma nenalezeno", topicNotFoundDescription: 'Téma "{slug}" neexistuje.', articleCount: "{count} článek | {count} články | {count} článků", noArticlesYet: "Zatím žádné články", checkBackSoon: "Brzy přidáme články o {name}.", browseAllArticles: "Procházet všechny články", backToAllTopics: "Zpět na všechna témata" }, l = { signIn: "Přihlásit se", signInTitle: "Přihlášení", signInSubtitle: "Přistupte ke svému účtu a prémiovému obsahu", email: "E-mail", emailPlaceholder: "vas{'@'}email.cz", password: "Heslo", passwordPlaceholder: "Zadejte heslo", forgotPassword: "Zapomenuté heslo?", noAccount: "Nemáte účet?", createAccount: "Vytvořit účet", orContinueWith: "Nebo pokračujte přes", signOut: "Odhlásit se", register: "Registrace", registerTitle: "Vytvořit účet", registerSubtitle: "Zaregistrujte se pro přístup k prémiovému obsahu", displayName: "Jméno", displayNamePlaceholder: "Vaše jméno", confirmPassword: "Potvrzení hesla", confirmPasswordPlaceholder: "Zadejte heslo znovu", haveAccount: "Již máte účet?", goToSignIn: "Přihlásit se", checkEmail: "Zkontrolujte svůj e-mail", verificationSent: "Odeslali jsme ověřovací odkaz na {email}. Klikněte na odkaz v e-mailu pro dokončení registrace.", forgotPasswordTitle: "Zapomenuté heslo?", forgotPasswordSubtitle: "Zadejte svůj e-mail a my vám pošleme odkaz pro obnovení hesla.", sendResetLink: "Odeslat odkaz pro obnovení", resetEmailSent: "Zkontrolujte svůj e-mail", resetEmailSentDescription: "Pokud účet s adresou {email} existuje, odeslali jsme odkaz pro obnovení hesla.", backToSignIn: "Zpět na přihlášení", resetPasswordTitle: "Obnovení hesla", resetPasswordSubtitle: "Zadejte nové heslo pro svůj účet.", newPassword: "Nové heslo", newPasswordPlaceholder: "Zadejte nové heslo", confirmNewPassword: "Potvrzení nového hesla", confirmNewPasswordPlaceholder: "Zadejte nové heslo znovu", resetPassword: "Obnovit heslo", passwordResetSuccess: "Heslo obnoveno!", passwordResetSuccessDescription: "Vaše heslo bylo úspěšně obnoveno. Nyní se můžete přihlásit.", invalidResetLink: "Neplatný odkaz", invalidResetLinkDescription: "Tento odkaz pro obnovení hesla je neplatný nebo vypršel.", requestNewLink: "Požádat o nový odkaz", verifyEmailTitle: "Ověření e-mailu", verifying: "Ověřujeme váš e-mail...", emailVerified: "E-mail ověřen!", emailVerifiedDescription: "Váš e-mail byl úspěšně ověřen. Nyní se můžete přihlásit.", verificationFailed: "Ověření se nezdařilo", verificationFailedDescription: "Tento ověřovací odkaz je neplatný nebo vypršel.", validationRequired: "Toto pole je povinné", validationEmail: "Zadejte platnou e-mailovou adresu", validationPasswordMin: "Heslo musí mít alespoň 8 znaků", validationPasswordMatch: "Hesla se neshodují" }, s = { title: "Komentáře", open: "Otevřít komentáře", noComments: "Zatím žádné komentáře", beFirst: "Buďte první, kdo sdílí své myšlenky k tomuto článku.", loginPrompt: "pro přidání komentáře", loginLink: "Přihlásit se", placeholder: "Napište komentář...", cancel: "Zrušit", comment: "Komentovat", reply: "Odpovědět", edit: "Upravit", delete: "Smazat", save: "Uložit", replyingTo: "Odpovídáte na komentář...", replyPlaceholder: "Napište odpověď...", editPlaceholder: "Upravte komentář...", editing: "Úprava komentáře", confirmDelete: "Opravdu chcete smazat tento komentář?", anonymous: "Anonymní", edited: "(upraveno)", original: "Originál ({code}):", justNow: "právě teď", minutesAgo: "před {count} min", hoursAgo: "před {count} h", daysAgo: "před {count} d", charCount: "{count}/{max}", submitHint: "Stiskněte {key}+Enter pro odeslání", loadError: "Nepodařilo se načíst komentáře", submitError: "Nepodařilo se odeslat komentář" }, i = { signInToAccess: "Pro přístup k tomuto obsahu ({level}) se přihlaste.", requiresAccess: "Tento obsah vyžaduje přístup úrovně {level}.", signIn: "Přihlásit se", upgradeToPremium: "Upgradovat na Premium", browseFreeArticles: "Procházet volné články", levelPublic: "Veřejné", levelPremium: "Premium", levelPartners: "Partneři", levelInternal: "Interní" }, r = { copyright: "© {year} Znalostní báze. Všechna práva vyhrazena." }, c = { loading: "Načítání...", error: "Chyba", retry: "Zkusit znovu", close: "Zavřít", switchToLight: "Přepnout na světlý režim", switchToDark: "Přepnout na tmavý režim", languageSelector: "Aktuální jazyk: {name}. Klikněte pro změnu.", skipToContent: "Přeskočit na hlavní obsah" }, d = { pageTitle: "Účet", pageSubtitle: "Spravujte své jméno, heslo a oznámení.", profileTitle: "Profil", profileSubtitle: "Vaše jméno a e-mail.", name: "Jméno", namePlaceholder: "Vaše jméno", email: "E-mail", emailPlaceholder: "vy{'@'}priklad.cz", emailUnverified: "E-mail zatím není ověřený.", resendVerification: "Znovu odeslat ověřovací e-mail", verificationSent: "Ověřovací e-mail byl odeslán — zkontrolujte si schránku.", saveProfile: "Uložit profil", profileSaved: "Profil byl aktualizován.", emailChangeNotice: "Poslali jsme ověřovací odkaz na novou adresu. Než se příště přihlásíte, musíte si e-mail ověřit.", passwordTitle: "Heslo", passwordSubtitle: "Změňte si heslo k účtu.", currentPassword: "Současné heslo", newPassword: "Nové heslo", confirmNewPassword: "Potvrzení nového hesla", passwordsDoNotMatch: "Nová hesla se neshodují.", changePassword: "Změnit heslo", passwordChanged: "Heslo bylo aktualizováno.", passwordOauthOnly: "Váš účet používá přihlášení přes sociální síť. Heslo spravuje váš poskytovatel.", notificationsTitle: "Oznámení", notificationsSubtitle: "Rozhodněte, kdy vám máme posílat reporty a e-maily.", autoReportErrors: "Automaticky hlásit chyby, které narazím", autoReportContent: "Automaticky hlásit chybějící nebo nesprávný obsah", policyAlways: "Vždy", policyAsk: "Nejprve se zeptej", policyNever: "Nikdy", emailNotifications: "E-mailová oznámení", emailFrequencyInstant: "Posílat hned", emailFrequencyDailyDigest: "Denní souhrn", emailFrequencyNever: "Žádné e-maily", saveSettings: "Uložit předvolby", settingsSaved: "Předvolby byly uloženy.", advancedFooter: "Hledáte API klíče, MCP přístup nebo agentní klienty? Spravujte je v", advancedFooterLinkLabel: "developer portálu" }, m = {
1
+ const e = { articles: "Články", topics: "Témata", search: "Hledání", knowledgeBase: "Znalostní báze", account: "Účet" }, o = { title: "Znalostní báze", subtitle: "Objevte odborné články, výzkumné poznámky a průvodce", searchPlaceholder: "Hledat články...", featured: "Doporučené", recentArticles: "Nejnovější články", viewAll: "Zobrazit vše", noArticles: "Zatím žádné články", checkBackSoon: "Brzy přidáme nový obsah.", loadError: "Nepodařilo se načíst články. Zkuste to prosím znovu." }, t = { title: "Články", browseCollection: "Procházejte naši sbírku {count} článků", filterByTopic: "Filtrovat podle tématu", allArticles: "Všechny články", noArticlesFound: "Žádné články nenalezeny", tryDifferentTopic: "Zkuste vybrat jiné téma nebo se vraťte později.", loadError: "Nepodařilo se načíst články. Zkuste to prosím znovu.", previous: "Předchozí", next: "Další", pageOf: "Stránka {page} z {total}", backToArticles: "Zpět na články", backToAllArticles: "Zpět na všechny články", allArticlesLink: "Všechny články", notFound: "Článek nenalezen", notFoundDescription: "Článek, který hledáte, neexistuje nebo byl odstraněn.", browseAllArticles: "Procházet všechny články", loadErrorTitle: "Nepodařilo se načíst článek", loadErrorDescription: "Článek nebyl nalezen nebo došlo k chybě při načítání.", translationNotAvailable: "Překlad není k dispozici – zobrazuje se původní obsah", share: "Sdílet:", copyLink: "Zkopírovat odkaz" }, n = { title: "Hledání", pageTitle: "Hledání | Znalostní báze", placeholder: "Hledat články...", matchBroad: "Volné", matchBroadDesc: "Více výsledků", matchBalanced: "Vyvážené", matchBalancedDesc: "Doporučeno", matchStrict: "Přesné", matchStrictDesc: "Přesné shody", foundResults: "Nalezen {count} výsledek | Nalezeny {count} výsledky | Nalezeno {count} výsledků", match: "shoda", noResults: "Žádné výsledky", tryDifferentKeywords: "Zkuste jiná klíčová slova nebo procházejte naše", articlesLink: "články", startSearching: "Začněte hledat", enterQuery: "Zadejte dotaz pro vyhledávání ve znalostní bázi", searchError: "Vyhledávání se nezdařilo. Zkuste to prosím znovu." }, a = { title: "Témata", subtitle: "Prozkoumejte obsah podle tématu", tags: "Štítky", browseByTopic: "Procházet články podle tématu", noTags: "Zatím žádné štítky.", allTopics: "Všechna témata", topicNotFound: "Téma nenalezeno", topicNotFoundDescription: 'Téma "{slug}" neexistuje.', articleCount: "{count} článek | {count} články | {count} článků", noArticlesYet: "Zatím žádné články", checkBackSoon: "Brzy přidáme články o {name}.", browseAllArticles: "Procházet všechny články", backToAllTopics: "Zpět na všechna témata" }, l = { signIn: "Přihlásit se", signInTitle: "Přihlášení", signInSubtitle: "Přistupte ke svému účtu a prémiovému obsahu", email: "E-mail", emailPlaceholder: "vas{'@'}email.cz", password: "Heslo", passwordPlaceholder: "Zadejte heslo", forgotPassword: "Zapomenuté heslo?", noAccount: "Nemáte účet?", createAccount: "Vytvořit účet", orContinueWith: "Nebo pokračujte přes", signOut: "Odhlásit se", register: "Registrace", registerTitle: "Vytvořit účet", registerSubtitle: "Zaregistrujte se pro přístup k prémiovému obsahu", displayName: "Jméno", displayNamePlaceholder: "Vaše jméno", confirmPassword: "Potvrzení hesla", confirmPasswordPlaceholder: "Zadejte heslo znovu", haveAccount: "Již máte účet?", goToSignIn: "Přihlásit se", checkEmail: "Zkontrolujte svůj e-mail", verificationSent: "Odeslali jsme ověřovací odkaz na {email}. Klikněte na odkaz v e-mailu pro dokončení registrace.", forgotPasswordTitle: "Zapomenuté heslo?", forgotPasswordSubtitle: "Zadejte svůj e-mail a my vám pošleme odkaz pro obnovení hesla.", sendResetLink: "Odeslat odkaz pro obnovení", resetEmailSent: "Zkontrolujte svůj e-mail", resetEmailSentDescription: "Pokud účet s adresou {email} existuje, odeslali jsme odkaz pro obnovení hesla.", backToSignIn: "Zpět na přihlášení", resetPasswordTitle: "Obnovení hesla", resetPasswordSubtitle: "Zadejte nové heslo pro svůj účet.", newPassword: "Nové heslo", newPasswordPlaceholder: "Zadejte nové heslo", confirmNewPassword: "Potvrzení nového hesla", confirmNewPasswordPlaceholder: "Zadejte nové heslo znovu", resetPassword: "Obnovit heslo", passwordResetSuccess: "Heslo obnoveno!", passwordResetSuccessDescription: "Vaše heslo bylo úspěšně obnoveno. Nyní se můžete přihlásit.", invalidResetLink: "Neplatný odkaz", invalidResetLinkDescription: "Tento odkaz pro obnovení hesla je neplatný nebo vypršel.", requestNewLink: "Požádat o nový odkaz", verifyEmailTitle: "Ověření e-mailu", verifying: "Ověřujeme váš e-mail...", emailVerified: "E-mail ověřen!", emailVerifiedDescription: "Váš e-mail byl úspěšně ověřen. Nyní se můžete přihlásit.", verificationFailed: "Ověření se nezdařilo", verificationFailedDescription: "Tento ověřovací odkaz je neplatný nebo vypršel.", validationRequired: "Toto pole je povinné", validationEmail: "Zadejte platnou e-mailovou adresu", validationPasswordMin: "Heslo musí mít alespoň 8 znaků", validationPasswordMatch: "Hesla se neshodují" }, s = { title: "Komentáře", open: "Otevřít komentáře", noComments: "Zatím žádné komentáře", beFirst: "Buďte první, kdo sdílí své myšlenky k tomuto článku.", loginPrompt: "pro přidání komentáře", loginLink: "Přihlásit se", placeholder: "Napište komentář...", cancel: "Zrušit", comment: "Komentovat", reply: "Odpovědět", edit: "Upravit", delete: "Smazat", save: "Uložit", replyingTo: "Odpovídáte na komentář...", replyPlaceholder: "Napište odpověď...", editPlaceholder: "Upravte komentář...", editing: "Úprava komentáře", confirmDelete: "Opravdu chcete smazat tento komentář?", anonymous: "Anonymní", edited: "(upraveno)", original: "Originál ({code}):", justNow: "právě teď", minutesAgo: "před {count} min", hoursAgo: "před {count} h", daysAgo: "před {count} d", charCount: "{count}/{max}", submitHint: "Stiskněte {key}+Enter pro odeslání", loadError: "Nepodařilo se načíst komentáře", submitError: "Nepodařilo se odeslat komentář" }, i = { signInToAccess: "Pro přístup k tomuto obsahu ({level}) se přihlaste.", requiresAccess: "Tento obsah vyžaduje přístup úrovně {level}.", signIn: "Přihlásit se", upgradeToPremium: "Upgradovat na Premium", browseFreeArticles: "Procházet volné články", levelPublic: "Veřejné", levelPremium: "Premium", levelPartners: "Partneři", levelInternal: "Interní", lockedFor: "Jen pro čtenáře úrovně {level}" }, r = { copyright: "© {year} Znalostní báze. Všechna práva vyhrazena." }, c = { loading: "Načítání...", error: "Chyba", retry: "Zkusit znovu", close: "Zavřít", switchToLight: "Přepnout na světlý režim", switchToDark: "Přepnout na tmavý režim", languageSelector: "Aktuální jazyk: {name}. Klikněte pro změnu.", skipToContent: "Přeskočit na hlavní obsah" }, d = { pageTitle: "Účet", pageSubtitle: "Spravujte své jméno, heslo a oznámení.", profileTitle: "Profil", profileSubtitle: "Vaše jméno a e-mail.", name: "Jméno", namePlaceholder: "Vaše jméno", email: "E-mail", emailPlaceholder: "vy{'@'}priklad.cz", emailUnverified: "E-mail zatím není ověřený.", resendVerification: "Znovu odeslat ověřovací e-mail", verificationSent: "Ověřovací e-mail byl odeslán — zkontrolujte si schránku.", saveProfile: "Uložit profil", profileSaved: "Profil byl aktualizován.", emailChangeNotice: "Poslali jsme ověřovací odkaz na novou adresu. Než se příště přihlásíte, musíte si e-mail ověřit.", passwordTitle: "Heslo", passwordSubtitle: "Změňte si heslo k účtu.", currentPassword: "Současné heslo", newPassword: "Nové heslo", confirmNewPassword: "Potvrzení nového hesla", passwordsDoNotMatch: "Nová hesla se neshodují.", changePassword: "Změnit heslo", passwordChanged: "Heslo bylo aktualizováno.", passwordOauthOnly: "Váš účet používá přihlášení přes sociální síť. Heslo spravuje váš poskytovatel.", notificationsTitle: "Oznámení", notificationsSubtitle: "Rozhodněte, kdy vám máme posílat reporty a e-maily.", autoReportErrors: "Automaticky hlásit chyby, které narazím", autoReportContent: "Automaticky hlásit chybějící nebo nesprávný obsah", policyAlways: "Vždy", policyAsk: "Nejprve se zeptej", policyNever: "Nikdy", emailNotifications: "E-mailová oznámení", emailFrequencyInstant: "Posílat hned", emailFrequencyDailyDigest: "Denní souhrn", emailFrequencyNever: "Žádné e-maily", saveSettings: "Uložit předvolby", settingsSaved: "Předvolby byly uloženy.", advancedFooter: "Hledáte API klíče, MCP přístup nebo agentní klienty? Spravujte je v", advancedFooterLinkLabel: "developer portálu" }, m = {
2
2
  nav: e,
3
3
  home: o,
4
4
  articles: t,
@@ -1,4 +1,4 @@
1
- const e = { articles: "Articles", topics: "Topics", search: "Search", knowledgeBase: "Knowledge Base", account: "Account" }, o = { title: "Knowledge Base", subtitle: "Discover in-depth articles, research notes, and expert guides", searchPlaceholder: "Search articles...", featured: "Featured", recentArticles: "Recent Articles", viewAll: "View all", noArticles: "No articles yet", checkBackSoon: "Check back soon for new content.", loadError: "Failed to load articles. Please try again." }, t = { title: "Articles", browseCollection: "Browse our collection of {count} articles", filterByTopic: "Filter by topic", allArticles: "All articles", noArticlesFound: "No articles found", tryDifferentTopic: "Try selecting a different topic or check back later.", loadError: "Failed to load articles. Please try again.", previous: "Previous", next: "Next", pageOf: "Page {page} of {total}", backToArticles: "Back to articles", backToAllArticles: "Back to all articles", allArticlesLink: "All articles", notFound: "Article not found", notFoundDescription: "The article you're looking for doesn't exist or has been removed.", browseAllArticles: "Browse all articles", loadErrorTitle: "Failed to load article", loadErrorDescription: "The article could not be found or there was an error loading it.", translationNotAvailable: "Translation not available - showing original content", share: "Share:", copyLink: "Copy link" }, i = { title: "Search", pageTitle: "Search | Knowledge Base", placeholder: "Search articles...", matchBroad: "Broad", matchBroadDesc: "More results", matchBalanced: "Balanced", matchBalancedDesc: "Recommended", matchStrict: "Strict", matchStrictDesc: "Precise matches", foundResults: "Found {count} result | Found {count} results", match: "match", noResults: "No results found", tryDifferentKeywords: "Try different keywords or browse our", articlesLink: "articles", startSearching: "Start searching", enterQuery: "Enter a query to search our knowledge base", searchError: "Search failed. Please try again." }, a = { title: "Topics", subtitle: "Explore content by topic", tags: "Tags", browseByTopic: "Browse articles by topic", noTags: "No tags available yet.", allTopics: "All topics", topicNotFound: "Topic not found", topicNotFoundDescription: `The topic "{slug}" doesn't exist.`, articleCount: "{count} article | {count} articles", noArticlesYet: "No articles yet", checkBackSoon: "Check back soon for articles about {name}.", browseAllArticles: "Browse all articles", backToAllTopics: "Back to all topics" }, r = { signIn: "Sign in", signInTitle: "Sign in", signInSubtitle: "Access your account and premium content", email: "Email", emailPlaceholder: "you{'@'}example.com", password: "Password", passwordPlaceholder: "Enter your password", forgotPassword: "Forgot password?", noAccount: "Don't have an account?", createAccount: "Create an account", orContinueWith: "Or continue with", signOut: "Sign out", register: "Sign up", registerTitle: "Create an account", registerSubtitle: "Sign up to access premium content", displayName: "Display name", displayNamePlaceholder: "Your name", confirmPassword: "Confirm password", confirmPasswordPlaceholder: "Enter your password again", haveAccount: "Already have an account?", goToSignIn: "Sign in", checkEmail: "Check your email", verificationSent: "We've sent a verification link to {email}. Click the link in the email to complete your registration.", forgotPasswordTitle: "Forgot password?", forgotPasswordSubtitle: "Enter your email and we'll send you a reset link.", sendResetLink: "Send reset link", resetEmailSent: "Check your email", resetEmailSentDescription: "If an account with {email} exists, we've sent a password reset link.", backToSignIn: "Back to sign in", resetPasswordTitle: "Reset password", resetPasswordSubtitle: "Enter a new password for your account.", newPassword: "New password", newPasswordPlaceholder: "Enter new password", confirmNewPassword: "Confirm new password", confirmNewPasswordPlaceholder: "Enter new password again", resetPassword: "Reset password", passwordResetSuccess: "Password reset!", passwordResetSuccessDescription: "Your password has been successfully reset. You can now sign in.", invalidResetLink: "Invalid link", invalidResetLinkDescription: "This password reset link is invalid or has expired.", requestNewLink: "Request a new link", verifyEmailTitle: "Verify Email", verifying: "Verifying your email...", emailVerified: "Email verified!", emailVerifiedDescription: "Your email has been successfully verified. You can now sign in.", verificationFailed: "Verification failed", verificationFailedDescription: "This verification link is invalid or has expired.", validationRequired: "This field is required", validationEmail: "Please enter a valid email address", validationPasswordMin: "Password must be at least 8 characters", validationPasswordMatch: "Passwords do not match" }, s = { title: "Comments", open: "Open comments", noComments: "No comments yet", beFirst: "Be the first to share your thoughts on this article.", loginPrompt: "to leave a comment", loginLink: "Log in", placeholder: "Write a comment...", cancel: "Cancel", comment: "Comment", reply: "Reply", edit: "Edit", delete: "Delete", save: "Save", replyingTo: "Replying to comment...", replyPlaceholder: "Write a reply...", editPlaceholder: "Edit your comment...", editing: "Editing comment", confirmDelete: "Are you sure you want to delete this comment?", anonymous: "Anonymous", edited: "(edited)", original: "Original ({code}):", justNow: "just now", minutesAgo: "{count}m ago", hoursAgo: "{count}h ago", daysAgo: "{count}d ago", charCount: "{count}/{max}", submitHint: "Press {key}+Enter to submit", loadError: "Failed to load comments", submitError: "Failed to submit comment" }, n = { signInToAccess: "Sign in to access this {level} content.", requiresAccess: "This content requires {level} access.", signIn: "Sign in", upgradeToPremium: "Upgrade to Premium", browseFreeArticles: "Browse free articles", levelPublic: "Public", levelPremium: "Premium", levelPartners: "Partners", levelInternal: "Internal" }, l = { copyright: "© {year} Knowledge Base. All rights reserved." }, c = { loading: "Loading...", error: "Error", retry: "Try again", close: "Close", switchToLight: "Switch to light mode", switchToDark: "Switch to dark mode", languageSelector: "Current language: {name}. Click to change.", skipToContent: "Skip to main content" }, d = { pageTitle: "Account", pageSubtitle: "Manage your profile, password and notification preferences.", profileTitle: "Profile", profileSubtitle: "Your name and email.", name: "Name", namePlaceholder: "Your name", email: "Email", emailPlaceholder: "you{'@'}example.com", emailUnverified: "Email is not verified yet.", resendVerification: "Resend verification email", verificationSent: "Verification email sent — please check your inbox.", saveProfile: "Save profile", profileSaved: "Profile updated.", emailChangeNotice: "We've sent a verification link to your new email. You'll need to verify it before signing in next time.", passwordTitle: "Password", passwordSubtitle: "Change your account password.", currentPassword: "Current password", newPassword: "New password", confirmNewPassword: "Confirm new password", passwordsDoNotMatch: "New passwords don't match.", changePassword: "Change password", passwordChanged: "Password updated.", passwordOauthOnly: "Your account uses social sign-in. Password change is managed by your provider.", notificationsTitle: "Notifications", notificationsSubtitle: "Decide when we should send you reports and emails.", autoReportErrors: "Auto-report errors I encounter", autoReportContent: "Auto-report missing or wrong content", policyAlways: "Always", policyAsk: "Ask first", policyNever: "Never", emailNotifications: "Email notifications", emailFrequencyInstant: "Send immediately", emailFrequencyDailyDigest: "Daily digest", emailFrequencyNever: "Don't email me", saveSettings: "Save preferences", settingsSaved: "Preferences updated.", advancedFooter: "Looking for API keys, MCP credentials or agent clients? Manage them in the", advancedFooterLinkLabel: "developer portal" }, u = {
1
+ const e = { articles: "Articles", topics: "Topics", search: "Search", knowledgeBase: "Knowledge Base", account: "Account" }, o = { title: "Knowledge Base", subtitle: "Discover in-depth articles, research notes, and expert guides", searchPlaceholder: "Search articles...", featured: "Featured", recentArticles: "Recent Articles", viewAll: "View all", noArticles: "No articles yet", checkBackSoon: "Check back soon for new content.", loadError: "Failed to load articles. Please try again." }, t = { title: "Articles", browseCollection: "Browse our collection of {count} articles", filterByTopic: "Filter by topic", allArticles: "All articles", noArticlesFound: "No articles found", tryDifferentTopic: "Try selecting a different topic or check back later.", loadError: "Failed to load articles. Please try again.", previous: "Previous", next: "Next", pageOf: "Page {page} of {total}", backToArticles: "Back to articles", backToAllArticles: "Back to all articles", allArticlesLink: "All articles", notFound: "Article not found", notFoundDescription: "The article you're looking for doesn't exist or has been removed.", browseAllArticles: "Browse all articles", loadErrorTitle: "Failed to load article", loadErrorDescription: "The article could not be found or there was an error loading it.", translationNotAvailable: "Translation not available - showing original content", share: "Share:", copyLink: "Copy link" }, i = { title: "Search", pageTitle: "Search | Knowledge Base", placeholder: "Search articles...", matchBroad: "Broad", matchBroadDesc: "More results", matchBalanced: "Balanced", matchBalancedDesc: "Recommended", matchStrict: "Strict", matchStrictDesc: "Precise matches", foundResults: "Found {count} result | Found {count} results", match: "match", noResults: "No results found", tryDifferentKeywords: "Try different keywords or browse our", articlesLink: "articles", startSearching: "Start searching", enterQuery: "Enter a query to search our knowledge base", searchError: "Search failed. Please try again." }, a = { title: "Topics", subtitle: "Explore content by topic", tags: "Tags", browseByTopic: "Browse articles by topic", noTags: "No tags available yet.", allTopics: "All topics", topicNotFound: "Topic not found", topicNotFoundDescription: `The topic "{slug}" doesn't exist.`, articleCount: "{count} article | {count} articles", noArticlesYet: "No articles yet", checkBackSoon: "Check back soon for articles about {name}.", browseAllArticles: "Browse all articles", backToAllTopics: "Back to all topics" }, r = { signIn: "Sign in", signInTitle: "Sign in", signInSubtitle: "Access your account and premium content", email: "Email", emailPlaceholder: "you{'@'}example.com", password: "Password", passwordPlaceholder: "Enter your password", forgotPassword: "Forgot password?", noAccount: "Don't have an account?", createAccount: "Create an account", orContinueWith: "Or continue with", signOut: "Sign out", register: "Sign up", registerTitle: "Create an account", registerSubtitle: "Sign up to access premium content", displayName: "Display name", displayNamePlaceholder: "Your name", confirmPassword: "Confirm password", confirmPasswordPlaceholder: "Enter your password again", haveAccount: "Already have an account?", goToSignIn: "Sign in", checkEmail: "Check your email", verificationSent: "We've sent a verification link to {email}. Click the link in the email to complete your registration.", forgotPasswordTitle: "Forgot password?", forgotPasswordSubtitle: "Enter your email and we'll send you a reset link.", sendResetLink: "Send reset link", resetEmailSent: "Check your email", resetEmailSentDescription: "If an account with {email} exists, we've sent a password reset link.", backToSignIn: "Back to sign in", resetPasswordTitle: "Reset password", resetPasswordSubtitle: "Enter a new password for your account.", newPassword: "New password", newPasswordPlaceholder: "Enter new password", confirmNewPassword: "Confirm new password", confirmNewPasswordPlaceholder: "Enter new password again", resetPassword: "Reset password", passwordResetSuccess: "Password reset!", passwordResetSuccessDescription: "Your password has been successfully reset. You can now sign in.", invalidResetLink: "Invalid link", invalidResetLinkDescription: "This password reset link is invalid or has expired.", requestNewLink: "Request a new link", verifyEmailTitle: "Verify Email", verifying: "Verifying your email...", emailVerified: "Email verified!", emailVerifiedDescription: "Your email has been successfully verified. You can now sign in.", verificationFailed: "Verification failed", verificationFailedDescription: "This verification link is invalid or has expired.", validationRequired: "This field is required", validationEmail: "Please enter a valid email address", validationPasswordMin: "Password must be at least 8 characters", validationPasswordMatch: "Passwords do not match" }, s = { title: "Comments", open: "Open comments", noComments: "No comments yet", beFirst: "Be the first to share your thoughts on this article.", loginPrompt: "to leave a comment", loginLink: "Log in", placeholder: "Write a comment...", cancel: "Cancel", comment: "Comment", reply: "Reply", edit: "Edit", delete: "Delete", save: "Save", replyingTo: "Replying to comment...", replyPlaceholder: "Write a reply...", editPlaceholder: "Edit your comment...", editing: "Editing comment", confirmDelete: "Are you sure you want to delete this comment?", anonymous: "Anonymous", edited: "(edited)", original: "Original ({code}):", justNow: "just now", minutesAgo: "{count}m ago", hoursAgo: "{count}h ago", daysAgo: "{count}d ago", charCount: "{count}/{max}", submitHint: "Press {key}+Enter to submit", loadError: "Failed to load comments", submitError: "Failed to submit comment" }, n = { signInToAccess: "Sign in to access this {level} content.", requiresAccess: "This content requires {level} access.", signIn: "Sign in", upgradeToPremium: "Upgrade to Premium", browseFreeArticles: "Browse free articles", levelPublic: "Public", levelPremium: "Premium", levelPartners: "Partners", levelInternal: "Internal", lockedFor: "Only for {level} readers" }, l = { copyright: "© {year} Knowledge Base. All rights reserved." }, c = { loading: "Loading...", error: "Error", retry: "Try again", close: "Close", switchToLight: "Switch to light mode", switchToDark: "Switch to dark mode", languageSelector: "Current language: {name}. Click to change.", skipToContent: "Skip to main content" }, d = { pageTitle: "Account", pageSubtitle: "Manage your profile, password and notification preferences.", profileTitle: "Profile", profileSubtitle: "Your name and email.", name: "Name", namePlaceholder: "Your name", email: "Email", emailPlaceholder: "you{'@'}example.com", emailUnverified: "Email is not verified yet.", resendVerification: "Resend verification email", verificationSent: "Verification email sent — please check your inbox.", saveProfile: "Save profile", profileSaved: "Profile updated.", emailChangeNotice: "We've sent a verification link to your new email. You'll need to verify it before signing in next time.", passwordTitle: "Password", passwordSubtitle: "Change your account password.", currentPassword: "Current password", newPassword: "New password", confirmNewPassword: "Confirm new password", passwordsDoNotMatch: "New passwords don't match.", changePassword: "Change password", passwordChanged: "Password updated.", passwordOauthOnly: "Your account uses social sign-in. Password change is managed by your provider.", notificationsTitle: "Notifications", notificationsSubtitle: "Decide when we should send you reports and emails.", autoReportErrors: "Auto-report errors I encounter", autoReportContent: "Auto-report missing or wrong content", policyAlways: "Always", policyAsk: "Ask first", policyNever: "Never", emailNotifications: "Email notifications", emailFrequencyInstant: "Send immediately", emailFrequencyDailyDigest: "Daily digest", emailFrequencyNever: "Don't email me", saveSettings: "Save preferences", settingsSaved: "Preferences updated.", advancedFooter: "Looking for API keys, MCP credentials or agent clients? Manage them in the", advancedFooterLinkLabel: "developer portal" }, u = {
2
2
  nav: e,
3
3
  home: o,
4
4
  articles: t,
@@ -1,4 +1,4 @@
1
- import type { KbErrorCode } from './errors';
1
+ import type { KbErrorCode } from './errors.js';
2
2
  /**
3
3
  * Geo of an image, surfaced to the public blog ONLY when the image opted in
4
4
  * (the API gates this; absent/null otherwise). Used to emit schema.org
@@ -39,6 +39,42 @@ export interface Article {
39
39
  sourceLanguageCode?: string;
40
40
  featuredImageUrl?: string | null;
41
41
  tags?: string[];
42
+ /** Only from `articles.list({ includeLocked: true })`: the article's access tiers. */
43
+ access?: string[];
44
+ /**
45
+ * Only from `articles.list({ includeLocked: true })`: true when the caller may not open
46
+ * this article — it is listed because the tenant shows locked articles. Link it to the
47
+ * article page, which shows `articles.getPreview` instead of the article.
48
+ */
49
+ locked?: boolean;
50
+ }
51
+ /** What a locked article shows to a reader without access (the tenant's choice). */
52
+ export type LockedPreviewMode = 'title' | 'excerpt';
53
+ /**
54
+ * What a reader who may NOT open a published premium or partners article sees of it
55
+ * (`articles.getPreview`). Never the article body.
56
+ */
57
+ export interface ArticlePreview {
58
+ id: string;
59
+ filename: string;
60
+ /** In `languageCode`. */
61
+ title: string;
62
+ description: string | null;
63
+ /** The language of title, description and excerpt (the source language as a fallback). */
64
+ languageCode: string;
65
+ isFallback: boolean;
66
+ publishedAt: string | null;
67
+ /** Only when the image itself is public. */
68
+ featuredImageUrl: string | null;
69
+ /** The lowest tier that opens the article. */
70
+ requiredAccess: 'premium' | 'partners';
71
+ mode: LockedPreviewMode;
72
+ /**
73
+ * `excerpt` mode: the first words of the text, plain text — paragraphs separated by a
74
+ * blank line, ending with an ellipsis, never more than half the text. Render as text,
75
+ * never as HTML or Markdown. Null in `title` mode.
76
+ */
77
+ excerpt: string | null;
42
78
  }
43
79
  export interface ArticleWithTranslation {
44
80
  id: string;
@@ -282,6 +318,19 @@ export interface ConsultationChannelConfig {
282
318
  }
283
319
  export interface ConsultationPublicConfig {
284
320
  enabled: boolean;
321
+ /**
322
+ * The reader site the KB sends readers to (its links in notice e-mails), in
323
+ * canonical form (no trailing slash); null when none is set. A blog serves
324
+ * the reader pages only when this is the blog itself
325
+ * (`readerSiteStatus` in `@blogmcp/sdk/consultations`). Needs a KB with F4.
326
+ */
327
+ readerSiteUrl: string | null;
328
+ /**
329
+ * Answers reach readers by e-mail: the tenant's adapter sends them, or the KB
330
+ * has a mail transport. False: hide the anonymous contact form and the
331
+ * new-link page — nobody would ever be told about an answer.
332
+ */
333
+ emailNotices: boolean;
285
334
  channels: ConsultationChannelConfig[];
286
335
  }
287
336
  /** The legal text version the reader was shown (from `ConsultationPublicConfig`). */