@blogmcp/sdk 0.9.4 → 0.10.1

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 (59) hide show
  1. package/dist/community/channels.d.ts +7 -6
  2. package/dist/community/channels.js +4 -4
  3. package/dist/community/client.d.ts +74 -4
  4. package/dist/community/client.js +143 -91
  5. package/dist/community/index.d.ts +11 -6
  6. package/dist/community/index.js +111 -80
  7. package/dist/community/links.d.ts +61 -1
  8. package/dist/community/links.js +94 -40
  9. package/dist/community/manifest/index.d.ts +54 -0
  10. package/dist/community/manifest/index.js +46 -0
  11. package/dist/community/mentions.d.ts +38 -0
  12. package/dist/community/mentions.js +25 -0
  13. package/dist/community/messages.cs.d.ts +73 -3
  14. package/dist/community/messages.cs.js +82 -3
  15. package/dist/community/messages.d.ts +11 -0
  16. package/dist/community/messages.en.d.ts +69 -1
  17. package/dist/community/messages.en.js +71 -1
  18. package/dist/community/messages.js +26 -16
  19. package/dist/community/outcome.d.ts +8 -3
  20. package/dist/community/outcome.js +75 -28
  21. package/dist/community/realtime/index.d.ts +118 -0
  22. package/dist/community/realtime/index.js +215 -0
  23. package/dist/community/routes.d.ts +12 -0
  24. package/dist/community/routes.js +41 -25
  25. package/dist/community/server/bff.js +25 -25
  26. package/dist/community/server/host-routes.js +12 -0
  27. package/dist/community/server/index.d.ts +1 -1
  28. package/dist/community/server/index.js +15 -14
  29. package/dist/community/server/route-decision.d.ts +8 -0
  30. package/dist/community/server/route-decision.js +28 -22
  31. package/dist/community/shapes.d.ts +214 -2
  32. package/dist/community/shapes.js +65 -25
  33. package/dist/community/store.d.ts +18 -1
  34. package/dist/community/store.js +316 -261
  35. package/dist/community/sw/index.d.ts +45 -0
  36. package/dist/community/sw/index.js +59 -0
  37. package/dist/community/ua.d.ts +12 -0
  38. package/dist/community/ua.js +9 -0
  39. package/package.json +20 -3
  40. package/src/community/channels.ts +8 -7
  41. package/src/community/client.ts +116 -5
  42. package/src/community/index.ts +59 -1
  43. package/src/community/links.ts +119 -2
  44. package/src/community/manifest/index.ts +107 -0
  45. package/src/community/mentions.ts +59 -0
  46. package/src/community/messages.cs.ts +88 -3
  47. package/src/community/messages.en.ts +77 -1
  48. package/src/community/messages.ts +19 -0
  49. package/src/community/outcome.ts +53 -1
  50. package/src/community/realtime/index.ts +522 -0
  51. package/src/community/routes.ts +16 -0
  52. package/src/community/server/bff.ts +2 -4
  53. package/src/community/server/host-routes.ts +12 -0
  54. package/src/community/server/index.ts +1 -0
  55. package/src/community/server/route-decision.ts +15 -0
  56. package/src/community/shapes.ts +256 -3
  57. package/src/community/store.ts +114 -0
  58. package/src/community/sw/index.ts +112 -0
  59. package/src/community/ua.ts +17 -0
@@ -33,6 +33,11 @@ export declare const COMMUNITY_MESSAGES_CS: {
33
33
  readonly 'error.surfaceOff': "Diskuse tu teď není k dispozici.";
34
34
  readonly 'error.notMoved': "Diskusi teď připravujeme. Psát do ní půjde brzy.";
35
35
  readonly 'error.ledger': "Teď se to nepodařilo uložit a všechno zůstalo, jak bylo. Zkuste to prosím znovu.";
36
+ readonly 'error.readOnly': "Tahle funkce komunity je teď vypnutá. Diskuse pod články běží dál.";
37
+ readonly 'error.braked': "Psaní je teď na chvíli pozastavené. Číst můžete dál, psát půjde zase brzy.";
38
+ readonly 'error.mentionLimit': "V jednom příspěvku jste zmínili víc lidí, než zatím jde. Některé zmínky odeberte a pošlete znovu.";
39
+ readonly 'error.pushRefused': "V tomhle prohlížeči upozornění zapnout nejde. Zkuste jiný prohlížeč, nebo sledujte stránku s upozorněními.";
40
+ readonly 'error.realtimeOff': "Nové příspěvky se tu teď neukazují hned. Diskuse se obnovuje sama každou chvíli.";
36
41
  readonly 'error.submit': "Nepovedlo se to. Obnovte prosím stránku a zkuste to znovu.";
37
42
  readonly 'need.sign_in': "Do diskuse můžete psát po přihlášení.";
38
43
  readonly 'need.onboarding': "Před prvním komentářem si nastavte jméno a potvrďte pravidla diskuse.";
@@ -163,7 +168,12 @@ export declare const COMMUNITY_MESSAGES_CS: {
163
168
  readonly 'onboarding.rulesChanged': "Pravidla diskuse se od vaší poslední návštěvy změnila. Přečtěte si prosím novou verzi a potvrďte ji.";
164
169
  readonly 'onboarding.art9Title': "Souhlas se zpracováním";
165
170
  readonly 'onboarding.art9Lede': "Pro psaní do diskuse potřebujeme váš souhlas podle textu níže.";
171
+ readonly 'onboarding.art9LedeOptional': "Prosíme o váš souhlas podle textu níže. Psát ve veřejné diskusi můžete i bez něj.";
166
172
  readonly 'onboarding.art9Accept': "Souhlasím se zpracováním podle textu výše.";
173
+ readonly 'onboarding.art9Controller': "Souhlas pro {label}";
174
+ readonly 'onboarding.art9Refuse': "Nesouhlasím";
175
+ readonly 'onboarding.art9RefusedDone': "Bez tohoto souhlasu můžete psát ve veřejné diskusi.";
176
+ readonly 'onboarding.art9RequiredToWrite': "Bez souhlasu můžete diskusi jen číst.";
167
177
  readonly 'onboarding.profileTitle': "Jak vás uvidí ostatní";
168
178
  readonly 'onboarding.displayName': "Jméno v diskusi";
169
179
  readonly 'onboarding.displayNameHint': "Může to být i přezdívka. Uvidí ho všichni čtenáři.";
@@ -196,8 +206,8 @@ export declare const COMMUNITY_MESSAGES_CS: {
196
206
  readonly 'panel.statementsEmpty': "Rozhodnutí o vašem obsahu uvidíte tady.";
197
207
  readonly 'panel.reports': "Moje hlášení";
198
208
  readonly 'panel.reportsEmpty': "Hlášení, která pošlete, uvidíte tady.";
199
- readonly 'panel.notifications': "Oznámení";
200
- readonly 'panel.notificationsEmpty': "Nová oznámení uvidíte tady.";
209
+ readonly 'panel.notifications': "Upozornění";
210
+ readonly 'panel.notificationsEmpty': "Nová upozornění uvidíte tady.";
201
211
  readonly 'panel.unread_one': "{count} nepřečtené oznámení";
202
212
  readonly 'panel.unread_few': "{count} nepřečtená oznámení";
203
213
  readonly 'panel.unread_many': "{count} nepřečteného oznámení";
@@ -208,9 +218,10 @@ export declare const COMMUNITY_MESSAGES_CS: {
208
218
  readonly 'panel.consents': "Souhlasy";
209
219
  readonly 'panel.art9Given': "Souhlas se zpracováním je udělený.";
210
220
  readonly 'panel.art9NotGiven': "Souhlas se zpracováním jste zatím nedali.";
221
+ readonly 'panel.art9Refused': "Souhlas se zpracováním jste odmítli.";
211
222
  readonly 'panel.art9Withdraw': "Odvolat souhlas";
212
223
  readonly 'panel.art9WithdrawTitle': "Odvolat souhlas se zpracováním?";
213
- readonly 'panel.art9WithdrawExplain': "Diskusi můžete dál číst. Psát do ní půjde, až souhlas zase udělíte.";
224
+ readonly 'panel.art9WithdrawExplain': "Diskusi můžete dál číst. Jestli do ní půjde psát i bez souhlasu, nebo až ho zase udělíte, záleží na nastavení webu — řekne vám to před dalším komentářem.";
214
225
  readonly 'panel.art9WithdrawConfirm': "Ano, odvolat souhlas";
215
226
  readonly 'panel.art9WithdrawCancel': "Ponechat souhlas";
216
227
  readonly 'panel.art9Withdrawn': "Souhlas jste odvolali.";
@@ -282,6 +293,65 @@ export declare const COMMUNITY_MESSAGES_CS: {
282
293
  readonly 'notification.appeal_resolved': "Vaše odvolání je vyřízené.";
283
294
  readonly 'notification.erasure_scheduled': "Smazání vašeho profilu v diskusi je naplánované.";
284
295
  readonly 'notification.inactivity_warning': "Dlouho jste v diskusi nebyli. Bez další aktivity váš profil po čase smažeme.";
296
+ readonly 'notification.module_read_only': "Rozšířené funkce komunity jsou vypnuté. Diskuse pod články běží dál; co se pro vás mění, najdete na stránce Moje komunita.";
297
+ readonly 'notification.module_braked': "Psaní v komunitě je teď pozastavené. Číst můžete dál.";
298
+ readonly 'notification.reply': "Někdo odpověděl na váš příspěvek.";
299
+ readonly 'notification.mention': "Někdo vás zmínil v diskusi.";
300
+ readonly 'notification.module_push_reset': "Upozornění v prohlížeči je potřeba znovu zapnout v nastavení komunity.";
301
+ readonly 'notification.age_limit_changed': "Komunita je nově jen pro dospělé, váš profil je proto jen ke čtení. Podrobnosti najdete na stránce Moje komunita.";
302
+ readonly 'centre.title': "Upozornění";
303
+ readonly 'centre.empty': "Nová upozornění uvidíte tady.";
304
+ readonly 'centre.markAllRead': "Označit vše jako přečtené";
305
+ readonly 'centre.settings': "Nastavení upozornění";
306
+ readonly 'centre.loadMore': "Načíst starší";
307
+ readonly 'centre.unreadOnly': "Jen nepřečtené";
308
+ readonly 'centre.signIn': "Upozornění uvidíte po přihlášení.";
309
+ readonly 'centre.openMessage': "Zobrazit příspěvek";
310
+ readonly 'badge.unread_one': "{count} nové upozornění";
311
+ readonly 'badge.unread_few': "{count} nová upozornění";
312
+ readonly 'badge.unread_many': "{count} nového upozornění";
313
+ readonly 'badge.unread_other': "{count} nových upozornění";
314
+ readonly 'settings.title': "Nastavení upozornění";
315
+ readonly 'settings.signIn': "Nastavení upozornění změníte po přihlášení.";
316
+ readonly 'settings.notifyReply': "Odpovědi na moje příspěvky";
317
+ readonly 'settings.notifyMention': "Když mě někdo zmíní";
318
+ readonly 'settings.notifyTopic': "Novinky v diskusích, které sleduji";
319
+ readonly 'settings.pushEnabled': "Upozornění v prohlížeči";
320
+ readonly 'settings.digestEmail': "Denní souhrn e-mailem";
321
+ readonly 'settings.quietHours': "Noční klid: mezi 22:00 a 7:00 počkají upozornění v prohlížeči do rána.";
322
+ readonly 'settings.saved': "Uloženo.";
323
+ readonly 'settings.push.enable': "Zapnout upozornění";
324
+ readonly 'settings.push.disable': "Vypnout upozornění";
325
+ readonly 'settings.push.carries': "Upozornění doručuje tento web. Samo upozornění nenese, co přišlo ani od koho.";
326
+ readonly 'settings.push.unsupported': "Tenhle prohlížeč upozornění neumí. Nové odpovědi a zmínky najdete na stránce s upozorněními.";
327
+ readonly 'settings.push.refused': "Upozornění se v tomhle prohlížeči zapnout nepodařilo. Zkuste to prosím později nebo v jiném prohlížeči.";
328
+ readonly 'settings.push.denied': "Upozornění má tenhle prohlížeč pro tento web zablokovaná. Povolit je můžete v nastavení prohlížeče.";
329
+ readonly 'settings.push.inAppExplain': "V aplikaci Facebooku nebo Instagramu upozornění zapnout nejdou. Otevřete stránku v prohlížeči.";
330
+ readonly 'settings.push.openInBrowser': "Otevřít v prohlížeči";
331
+ readonly 'settings.push.iosGuide': "Na iPhonu a iPadu fungují upozornění jen u webu přidaného na plochu: v Safari klepněte na Sdílet a zvolte „Přidat na plochu“. Pak web otevřete z plochy a upozornění zapněte.";
332
+ readonly 'settings.push.reset': "Zapněte si upozornění znovu: nastavení webu se změnilo a dřívější zapnutí přestalo platit.";
333
+ readonly 'settings.digest.prompt': "Chcete přestat dostávat denní souhrn e-mailem?";
334
+ readonly 'settings.digest.confirm': "Odhlásit denní souhrn";
335
+ readonly 'settings.digest.unsubscribed': "Denní souhrn e-mailem jsme vypnuli.";
336
+ readonly 'settings.digest.staleLink': "Odkaz na odhlášení souhrnu už neplatí. Po přihlášení ho vypnete přepínačem v nastavení.";
337
+ readonly 'profile.memberSince': "Členem od {date}";
338
+ readonly 'profile.bio': "O mně";
339
+ readonly 'profile.notFound': "Tenhle profil jsme nenašli.";
340
+ readonly 'profile.signIn': "Profily členů uvidíte po přihlášení.";
341
+ readonly 'trust.0': "Nový člen";
342
+ readonly 'trust.1': "Člen";
343
+ readonly 'trust.2': "Stálý člen";
344
+ readonly 'trust.3': "Moderátor";
345
+ readonly 'welcome.title': "Vítejte v komunitě";
346
+ readonly 'welcome.lede': "Tady je pár věcí, které se vám na začátku hodí.";
347
+ readonly 'welcome.rules': "Jak to v diskusi chodí";
348
+ readonly 'welcome.discussions': "Projít diskuse";
349
+ readonly 'welcome.settings': "Nastavit upozornění";
350
+ readonly 'welcome.profile': "Můj profil";
351
+ readonly 'realtime.off': "Živé aktualizace jsou teď vypnuté. Diskuse se sama obnovuje každou chvíli.";
352
+ readonly 'state.readOnly': "Rozšířené funkce komunity jsou teď vypnuté. Diskuse pod článkem běží dál.";
353
+ readonly 'state.braked': "Psaní je teď na chvíli pozastavené. Číst můžete dál.";
354
+ readonly 'mention.limit': "V jednom příspěvku jste zmínili víc lidí, než zatím jde.";
285
355
  readonly 'notice.title': "Nahlásit obsah";
286
356
  readonly 'notice.lede': "Nahlásit můžete komentář, profil nebo článek, i bez přihlášení.";
287
357
  readonly 'notice.noTarget': "Hlášení otevřete přímo u obsahu, který chcete nahlásit: u komentáře zvolte „Nahlásit“.";
@@ -23,6 +23,11 @@ const e = {
23
23
  "error.surfaceOff": "Diskuse tu teď není k dispozici.",
24
24
  "error.notMoved": "Diskusi teď připravujeme. Psát do ní půjde brzy.",
25
25
  "error.ledger": "Teď se to nepodařilo uložit a všechno zůstalo, jak bylo. Zkuste to prosím znovu.",
26
+ "error.readOnly": "Tahle funkce komunity je teď vypnutá. Diskuse pod články běží dál.",
27
+ "error.braked": "Psaní je teď na chvíli pozastavené. Číst můžete dál, psát půjde zase brzy.",
28
+ "error.mentionLimit": "V jednom příspěvku jste zmínili víc lidí, než zatím jde. Některé zmínky odeberte a pošlete znovu.",
29
+ "error.pushRefused": "V tomhle prohlížeči upozornění zapnout nejde. Zkuste jiný prohlížeč, nebo sledujte stránku s upozorněními.",
30
+ "error.realtimeOff": "Nové příspěvky se tu teď neukazují hned. Diskuse se obnovuje sama každou chvíli.",
26
31
  "error.submit": "Nepovedlo se to. Obnovte prosím stránku a zkuste to znovu.",
27
32
  // ── what the composer waits for (need.<Need>) ──
28
33
  "need.sign_in": "Do diskuse můžete psát po přihlášení.",
@@ -165,7 +170,13 @@ const e = {
165
170
  "onboarding.rulesChanged": "Pravidla diskuse se od vaší poslední návštěvy změnila. Přečtěte si prosím novou verzi a potvrďte ji.",
166
171
  "onboarding.art9Title": "Souhlas se zpracováním",
167
172
  "onboarding.art9Lede": "Pro psaní do diskuse potřebujeme váš souhlas podle textu níže.",
173
+ // art9Refusal = public_write: the consent is offered, writing in the public discussion does not depend on it (§9.8 q8).
174
+ "onboarding.art9LedeOptional": "Prosíme o váš souhlas podle textu níže. Psát ve veřejné diskusi můžete i bez něj.",
168
175
  "onboarding.art9Accept": "Souhlasím se zpracováním podle textu výše.",
176
+ "onboarding.art9Controller": "Souhlas pro {label}",
177
+ "onboarding.art9Refuse": "Nesouhlasím",
178
+ "onboarding.art9RefusedDone": "Bez tohoto souhlasu můžete psát ve veřejné diskusi.",
179
+ "onboarding.art9RequiredToWrite": "Bez souhlasu můžete diskusi jen číst.",
169
180
  "onboarding.profileTitle": "Jak vás uvidí ostatní",
170
181
  "onboarding.displayName": "Jméno v diskusi",
171
182
  "onboarding.displayNameHint": "Může to být i přezdívka. Uvidí ho všichni čtenáři.",
@@ -200,8 +211,8 @@ const e = {
200
211
  "panel.statementsEmpty": "Rozhodnutí o vašem obsahu uvidíte tady.",
201
212
  "panel.reports": "Moje hlášení",
202
213
  "panel.reportsEmpty": "Hlášení, která pošlete, uvidíte tady.",
203
- "panel.notifications": "Oznámení",
204
- "panel.notificationsEmpty": "Nová oznámení uvidíte tady.",
214
+ "panel.notifications": "Upozornění",
215
+ "panel.notificationsEmpty": "Nová upozornění uvidíte tady.",
205
216
  "panel.unread_one": "{count} nepřečtené oznámení",
206
217
  "panel.unread_few": "{count} nepřečtená oznámení",
207
218
  "panel.unread_many": "{count} nepřečteného oznámení",
@@ -212,9 +223,10 @@ const e = {
212
223
  "panel.consents": "Souhlasy",
213
224
  "panel.art9Given": "Souhlas se zpracováním je udělený.",
214
225
  "panel.art9NotGiven": "Souhlas se zpracováním jste zatím nedali.",
226
+ "panel.art9Refused": "Souhlas se zpracováním jste odmítli.",
215
227
  "panel.art9Withdraw": "Odvolat souhlas",
216
228
  "panel.art9WithdrawTitle": "Odvolat souhlas se zpracováním?",
217
- "panel.art9WithdrawExplain": "Diskusi můžete dál číst. Psát do ní půjde, až souhlas zase udělíte.",
229
+ "panel.art9WithdrawExplain": "Diskusi můžete dál číst. Jestli do ní půjde psát i bez souhlasu, nebo až ho zase udělíte, záleží na nastavení webu — řekne vám to před dalším komentářem.",
218
230
  "panel.art9WithdrawConfirm": "Ano, odvolat souhlas",
219
231
  "panel.art9WithdrawCancel": "Ponechat souhlas",
220
232
  "panel.art9Withdrawn": "Souhlas jste odvolali.",
@@ -288,6 +300,73 @@ const e = {
288
300
  "notification.appeal_resolved": "Vaše odvolání je vyřízené.",
289
301
  "notification.erasure_scheduled": "Smazání vašeho profilu v diskusi je naplánované.",
290
302
  "notification.inactivity_warning": "Dlouho jste v diskusi nebyli. Bez další aktivity váš profil po čase smažeme.",
303
+ "notification.module_read_only": "Rozšířené funkce komunity jsou vypnuté. Diskuse pod články běží dál; co se pro vás mění, najdete na stránce Moje komunita.",
304
+ "notification.module_braked": "Psaní v komunitě je teď pozastavené. Číst můžete dál.",
305
+ "notification.reply": "Někdo odpověděl na váš příspěvek.",
306
+ "notification.mention": "Někdo vás zmínil v diskusi.",
307
+ "notification.module_push_reset": "Upozornění v prohlížeči je potřeba znovu zapnout v nastavení komunity.",
308
+ "notification.age_limit_changed": "Komunita je nově jen pro dospělé, váš profil je proto jen ke čtení. Podrobnosti najdete na stránce Moje komunita.",
309
+ // ── M2 T8: the notification centre (centre.*) and the header badge (badge.*) ──
310
+ "centre.title": "Upozornění",
311
+ "centre.empty": "Nová upozornění uvidíte tady.",
312
+ "centre.markAllRead": "Označit vše jako přečtené",
313
+ "centre.settings": "Nastavení upozornění",
314
+ "centre.loadMore": "Načíst starší",
315
+ "centre.unreadOnly": "Jen nepřečtené",
316
+ "centre.signIn": "Upozornění uvidíte po přihlášení.",
317
+ // M2 T10: a reply's or a mention's row links its message on the article page.
318
+ "centre.openMessage": "Zobrazit příspěvek",
319
+ "badge.unread_one": "{count} nové upozornění",
320
+ "badge.unread_few": "{count} nová upozornění",
321
+ "badge.unread_many": "{count} nového upozornění",
322
+ "badge.unread_other": "{count} nových upozornění",
323
+ // ── M2 T8: the member's settings (settings.*) ──
324
+ "settings.title": "Nastavení upozornění",
325
+ "settings.signIn": "Nastavení upozornění změníte po přihlášení.",
326
+ "settings.notifyReply": "Odpovědi na moje příspěvky",
327
+ "settings.notifyMention": "Když mě někdo zmíní",
328
+ "settings.notifyTopic": "Novinky v diskusích, které sleduji",
329
+ "settings.pushEnabled": "Upozornění v prohlížeči",
330
+ "settings.digestEmail": "Denní souhrn e-mailem",
331
+ "settings.quietHours": "Noční klid: mezi 22:00 a 7:00 počkají upozornění v prohlížeči do rána.",
332
+ "settings.saved": "Uloženo.",
333
+ "settings.push.enable": "Zapnout upozornění",
334
+ "settings.push.disable": "Vypnout upozornění",
335
+ "settings.push.carries": "Upozornění doručuje tento web. Samo upozornění nenese, co přišlo ani od koho.",
336
+ "settings.push.unsupported": "Tenhle prohlížeč upozornění neumí. Nové odpovědi a zmínky najdete na stránce s upozorněními.",
337
+ "settings.push.refused": "Upozornění se v tomhle prohlížeči zapnout nepodařilo. Zkuste to prosím později nebo v jiném prohlížeči.",
338
+ "settings.push.denied": "Upozornění má tenhle prohlížeč pro tento web zablokovaná. Povolit je můžete v nastavení prohlížeče.",
339
+ "settings.push.inAppExplain": "V aplikaci Facebooku nebo Instagramu upozornění zapnout nejdou. Otevřete stránku v prohlížeči.",
340
+ "settings.push.openInBrowser": "Otevřít v prohlížeči",
341
+ "settings.push.iosGuide": "Na iPhonu a iPadu fungují upozornění jen u webu přidaného na plochu: v Safari klepněte na Sdílet a zvolte „Přidat na plochu“. Pak web otevřete z plochy a upozornění zapněte.",
342
+ "settings.push.reset": "Zapněte si upozornění znovu: nastavení webu se změnilo a dřívější zapnutí přestalo platit.",
343
+ "settings.digest.prompt": "Chcete přestat dostávat denní souhrn e-mailem?",
344
+ "settings.digest.confirm": "Odhlásit denní souhrn",
345
+ "settings.digest.unsubscribed": "Denní souhrn e-mailem jsme vypnuli.",
346
+ "settings.digest.staleLink": "Odkaz na odhlášení souhrnu už neplatí. Po přihlášení ho vypnete přepínačem v nastavení.",
347
+ // ── M2 T8: a member's public profile (profile.*) and the trust level's label (trust.<level>, from trustLabel) ──
348
+ "profile.memberSince": "Členem od {date}",
349
+ "profile.bio": "O mně",
350
+ "profile.notFound": "Tenhle profil jsme nenašli.",
351
+ "profile.signIn": "Profily členů uvidíte po přihlášení.",
352
+ "trust.0": "Nový člen",
353
+ "trust.1": "Člen",
354
+ "trust.2": "Stálý člen",
355
+ "trust.3": "Moderátor",
356
+ // ── M2 T8: the welcome page (welcome.*) ──
357
+ "welcome.title": "Vítejte v komunitě",
358
+ "welcome.lede": "Tady je pár věcí, které se vám na začátku hodí.",
359
+ "welcome.rules": "Jak to v diskusi chodí",
360
+ "welcome.discussions": "Projít diskuse",
361
+ "welcome.settings": "Nastavit upozornění",
362
+ "welcome.profile": "Můj profil",
363
+ // ── M2 T8: the discussion under the module's states ──
364
+ "realtime.off": "Živé aktualizace jsou teď vypnuté. Diskuse se sama obnovuje každou chvíli.",
365
+ // `state.readOnly` names what module `read_only` stops (realtime → polling, push; m2-contracts.md §3.1): the
366
+ // discussion stays writable — only a brake (`state.braked`) stops its writes — so the composer stays enabled.
367
+ "state.readOnly": "Rozšířené funkce komunity jsou teď vypnuté. Diskuse pod článkem běží dál.",
368
+ "state.braked": "Psaní je teď na chvíli pozastavené. Číst můžete dál.",
369
+ "mention.limit": "V jednom příspěvku jste zmínili víc lidí, než zatím jde.",
291
370
  // ── the notice form ──
292
371
  "notice.title": "Nahlásit obsah",
293
372
  "notice.lede": "Nahlásit můžete komentář, profil nebo článek, i bez přihlášení.",
@@ -37,4 +37,15 @@ export declare function warningMessageKey(code: string): CommunityMessageKey;
37
37
  export declare function confirmMessageKey(code: string): CommunityMessageKey;
38
38
  /** The text of a filter note for the author, or null for a note this SDK has no text for (skip it). */
39
39
  export declare function noteMessageKey(code: string): CommunityMessageKey | null;
40
+ /**
41
+ * The sentence of a notification in the centre (`notification.<code>`), or null for a code this SDK has no text for
42
+ * (a newer kb-api's: skip the row's sentence, never show the code). The sentence names no member and quotes nothing:
43
+ * the page links the subject.
44
+ */
45
+ export declare function notificationMessageKey(code: string): CommunityMessageKey | null;
46
+ /**
47
+ * The label of a public trust level (`profile/get`'s `trustLabel`, m2-contracts.md §3.2, §3.10): `trust.0` „Nový člen"
48
+ * … `trust.3` „Moderátor" — a label, never the number. Null for a label this SDK does not know (show no label).
49
+ */
50
+ export declare function trustLabelMessageKey(label: string | null | undefined): CommunityMessageKey | null;
40
51
  export {};
@@ -27,6 +27,11 @@ export declare const COMMUNITY_MESSAGES_EN: {
27
27
  readonly 'error.surfaceOff': "The discussion isn't available here right now.";
28
28
  readonly 'error.notMoved': "We're preparing the discussion. You'll be able to write here soon.";
29
29
  readonly 'error.ledger': "That couldn't be saved just now, and everything is as it was. Please try again.";
30
+ readonly 'error.readOnly': "This community feature is switched off for now. The discussions under articles keep working.";
31
+ readonly 'error.braked': "Writing is paused for a while. You can keep reading, and writing will open again soon.";
32
+ readonly 'error.mentionLimit': "This post mentions more people than you can mention yet. Remove some of the mentions and send it again.";
33
+ readonly 'error.pushRefused': "Notifications cannot be switched on in this browser. Try another browser, or keep an eye on the notifications page.";
34
+ readonly 'error.realtimeOff': "New posts do not show up instantly here right now. The discussion refreshes itself every so often.";
30
35
  readonly 'error.submit': "That didn't work. Please reload the page and try again.";
31
36
  readonly 'need.sign_in': "Sign in to write in the discussion.";
32
37
  readonly 'need.onboarding': "Before your first comment, choose a name and confirm the discussion rules.";
@@ -149,7 +154,12 @@ export declare const COMMUNITY_MESSAGES_EN: {
149
154
  readonly 'onboarding.rulesChanged': "The discussion rules have changed since your last visit. Please read the new version and confirm it.";
150
155
  readonly 'onboarding.art9Title': "Consent to processing";
151
156
  readonly 'onboarding.art9Lede': "To write in the discussion, we need your consent as described below.";
157
+ readonly 'onboarding.art9LedeOptional': "We ask for your consent as described below. You can write in the public discussion without it too.";
152
158
  readonly 'onboarding.art9Accept': "I consent to the processing as described above.";
159
+ readonly 'onboarding.art9Controller': "Consent for {label}";
160
+ readonly 'onboarding.art9Refuse': "I do not consent";
161
+ readonly 'onboarding.art9RefusedDone': "You can write in the public discussion without this consent.";
162
+ readonly 'onboarding.art9RequiredToWrite': "Without the consent you can only read.";
153
163
  readonly 'onboarding.profileTitle': "How others will see you";
154
164
  readonly 'onboarding.displayName': "Name in the discussion";
155
165
  readonly 'onboarding.displayNameHint': "It can be a nickname. Every reader will see it.";
@@ -192,9 +202,10 @@ export declare const COMMUNITY_MESSAGES_EN: {
192
202
  readonly 'panel.consents': "Consents";
193
203
  readonly 'panel.art9Given': "Consent to the processing is given.";
194
204
  readonly 'panel.art9NotGiven': "You haven't given consent to the processing yet.";
205
+ readonly 'panel.art9Refused': "You declined the consent to the processing.";
195
206
  readonly 'panel.art9Withdraw': "Withdraw consent";
196
207
  readonly 'panel.art9WithdrawTitle': "Withdraw your consent to the processing?";
197
- readonly 'panel.art9WithdrawExplain': "You can keep reading the discussion. You'll be able to write again once you give the consent again.";
208
+ readonly 'panel.art9WithdrawExplain': "You can keep reading the discussion. Whether you can write without the consent, or only once you give it again, depends on the website's settings — it tells you before your next comment.";
198
209
  readonly 'panel.art9WithdrawConfirm': "Yes, withdraw consent";
199
210
  readonly 'panel.art9WithdrawCancel': "Keep the consent";
200
211
  readonly 'panel.art9Withdrawn': "You've withdrawn your consent.";
@@ -266,6 +277,63 @@ export declare const COMMUNITY_MESSAGES_EN: {
266
277
  readonly 'notification.appeal_resolved': "Your appeal has been resolved.";
267
278
  readonly 'notification.erasure_scheduled': "The deletion of your discussion profile is scheduled.";
268
279
  readonly 'notification.inactivity_warning': "You haven't been active in the discussion for a long time. Without further activity, we'll delete your profile after a while.";
280
+ readonly 'notification.module_read_only': "The community's extra features are switched off. The discussions under articles go on; what changes for you is on the My community page.";
281
+ readonly 'notification.module_braked': "Writing in the community is paused for now. You can keep reading.";
282
+ readonly 'notification.reply': "Someone replied to your post.";
283
+ readonly 'notification.mention': "Someone mentioned you in a discussion.";
284
+ readonly 'notification.module_push_reset': "Browser notifications need to be switched on again in your community settings.";
285
+ readonly 'notification.age_limit_changed': "The community is now for adults only, so your profile is read-only. The details are on the My community page.";
286
+ readonly 'centre.title': "Notifications";
287
+ readonly 'centre.empty': "New notifications will show here.";
288
+ readonly 'centre.markAllRead': "Mark all as read";
289
+ readonly 'centre.settings': "Notification settings";
290
+ readonly 'centre.loadMore': "Load older";
291
+ readonly 'centre.unreadOnly': "Unread only";
292
+ readonly 'centre.signIn': "Sign in to see your notifications.";
293
+ readonly 'centre.openMessage': "Show the post";
294
+ readonly 'badge.unread_one': "{count} new notification";
295
+ readonly 'badge.unread_other': "{count} new notifications";
296
+ readonly 'settings.title': "Notification settings";
297
+ readonly 'settings.signIn': "Sign in to change your notification settings.";
298
+ readonly 'settings.notifyReply': "Replies to my posts";
299
+ readonly 'settings.notifyMention': "When someone mentions me";
300
+ readonly 'settings.notifyTopic': "News in discussions I follow";
301
+ readonly 'settings.pushEnabled': "Browser notifications";
302
+ readonly 'settings.digestEmail': "Daily e-mail summary";
303
+ readonly 'settings.quietHours': "Quiet hours: between 22:00 and 7:00, browser notifications wait until the morning.";
304
+ readonly 'settings.saved': "Saved.";
305
+ readonly 'settings.push.enable': "Turn on notifications";
306
+ readonly 'settings.push.disable': "Turn off notifications";
307
+ readonly 'settings.push.carries': "This website delivers the notifications. A notification doesn't say what arrived or who it's from.";
308
+ readonly 'settings.push.unsupported': "This browser can't show notifications. You'll find new replies and mentions on the notifications page.";
309
+ readonly 'settings.push.refused': "Notifications couldn't be turned on in this browser. Please try again later or in another browser.";
310
+ readonly 'settings.push.denied': "This browser blocks notifications for this site. You can allow them in the browser settings.";
311
+ readonly 'settings.push.inAppExplain': "Notifications can't be turned on inside the Facebook or Instagram app. Open the page in your browser.";
312
+ readonly 'settings.push.openInBrowser': "Open in browser";
313
+ readonly 'settings.push.iosGuide': "On an iPhone or iPad, notifications work only for a site added to the Home Screen: in Safari tap Share and choose “Add to Home Screen”. Then open the site from the Home Screen and turn notifications on.";
314
+ readonly 'settings.push.reset': "Turn notifications on again: a site setting changed, so the earlier setup no longer works.";
315
+ readonly 'settings.digest.prompt': "Do you want to stop receiving the daily e-mail summary?";
316
+ readonly 'settings.digest.confirm': "Stop the daily summary";
317
+ readonly 'settings.digest.unsubscribed': "We've switched off the daily e-mail summary.";
318
+ readonly 'settings.digest.staleLink': "This unsubscribe link is no longer valid. Sign in to switch the summary off in the settings.";
319
+ readonly 'profile.memberSince': "Member since {date}";
320
+ readonly 'profile.bio': "About me";
321
+ readonly 'profile.notFound': "We couldn't find this profile.";
322
+ readonly 'profile.signIn': "Sign in to see members' profiles.";
323
+ readonly 'trust.0': "New member";
324
+ readonly 'trust.1': "Member";
325
+ readonly 'trust.2': "Regular";
326
+ readonly 'trust.3': "Moderator";
327
+ readonly 'welcome.title': "Welcome to the community";
328
+ readonly 'welcome.lede': "Here are a few things that help at the start.";
329
+ readonly 'welcome.rules': "How the discussion works";
330
+ readonly 'welcome.discussions': "Browse the discussions";
331
+ readonly 'welcome.settings': "Set up notifications";
332
+ readonly 'welcome.profile': "My profile";
333
+ readonly 'realtime.off': "Live updates are off right now. The discussion refreshes itself every so often.";
334
+ readonly 'state.readOnly': "The community's extra features are switched off for now. The discussion under the article goes on.";
335
+ readonly 'state.braked': "Writing is paused for a while. You can keep reading.";
336
+ readonly 'mention.limit': "This post mentions more people than you can mention yet.";
269
337
  readonly 'notice.title': "Report content";
270
338
  readonly 'notice.lede': "You can report a comment, a profile or an article, even without signing in.";
271
339
  readonly 'notice.noTarget': "Open a report from the content you want to report: on a comment, choose “Report”.";
@@ -22,6 +22,11 @@ const e = {
22
22
  "error.surfaceOff": "The discussion isn't available here right now.",
23
23
  "error.notMoved": "We're preparing the discussion. You'll be able to write here soon.",
24
24
  "error.ledger": "That couldn't be saved just now, and everything is as it was. Please try again.",
25
+ "error.readOnly": "This community feature is switched off for now. The discussions under articles keep working.",
26
+ "error.braked": "Writing is paused for a while. You can keep reading, and writing will open again soon.",
27
+ "error.mentionLimit": "This post mentions more people than you can mention yet. Remove some of the mentions and send it again.",
28
+ "error.pushRefused": "Notifications cannot be switched on in this browser. Try another browser, or keep an eye on the notifications page.",
29
+ "error.realtimeOff": "New posts do not show up instantly here right now. The discussion refreshes itself every so often.",
25
30
  "error.submit": "That didn't work. Please reload the page and try again.",
26
31
  "need.sign_in": "Sign in to write in the discussion.",
27
32
  "need.onboarding": "Before your first comment, choose a name and confirm the discussion rules.",
@@ -144,7 +149,13 @@ const e = {
144
149
  "onboarding.rulesChanged": "The discussion rules have changed since your last visit. Please read the new version and confirm it.",
145
150
  "onboarding.art9Title": "Consent to processing",
146
151
  "onboarding.art9Lede": "To write in the discussion, we need your consent as described below.",
152
+ // art9Refusal = public_write: the consent is offered, writing in the public discussion does not depend on it (§9.8 q8).
153
+ "onboarding.art9LedeOptional": "We ask for your consent as described below. You can write in the public discussion without it too.",
147
154
  "onboarding.art9Accept": "I consent to the processing as described above.",
155
+ "onboarding.art9Controller": "Consent for {label}",
156
+ "onboarding.art9Refuse": "I do not consent",
157
+ "onboarding.art9RefusedDone": "You can write in the public discussion without this consent.",
158
+ "onboarding.art9RequiredToWrite": "Without the consent you can only read.",
148
159
  "onboarding.profileTitle": "How others will see you",
149
160
  "onboarding.displayName": "Name in the discussion",
150
161
  "onboarding.displayNameHint": "It can be a nickname. Every reader will see it.",
@@ -187,9 +198,10 @@ const e = {
187
198
  "panel.consents": "Consents",
188
199
  "panel.art9Given": "Consent to the processing is given.",
189
200
  "panel.art9NotGiven": "You haven't given consent to the processing yet.",
201
+ "panel.art9Refused": "You declined the consent to the processing.",
190
202
  "panel.art9Withdraw": "Withdraw consent",
191
203
  "panel.art9WithdrawTitle": "Withdraw your consent to the processing?",
192
- "panel.art9WithdrawExplain": "You can keep reading the discussion. You'll be able to write again once you give the consent again.",
204
+ "panel.art9WithdrawExplain": "You can keep reading the discussion. Whether you can write without the consent, or only once you give it again, depends on the website's settings — it tells you before your next comment.",
193
205
  "panel.art9WithdrawConfirm": "Yes, withdraw consent",
194
206
  "panel.art9WithdrawCancel": "Keep the consent",
195
207
  "panel.art9Withdrawn": "You've withdrawn your consent.",
@@ -261,6 +273,64 @@ const e = {
261
273
  "notification.appeal_resolved": "Your appeal has been resolved.",
262
274
  "notification.erasure_scheduled": "The deletion of your discussion profile is scheduled.",
263
275
  "notification.inactivity_warning": "You haven't been active in the discussion for a long time. Without further activity, we'll delete your profile after a while.",
276
+ "notification.module_read_only": "The community's extra features are switched off. The discussions under articles go on; what changes for you is on the My community page.",
277
+ "notification.module_braked": "Writing in the community is paused for now. You can keep reading.",
278
+ "notification.reply": "Someone replied to your post.",
279
+ "notification.mention": "Someone mentioned you in a discussion.",
280
+ "notification.module_push_reset": "Browser notifications need to be switched on again in your community settings.",
281
+ "notification.age_limit_changed": "The community is now for adults only, so your profile is read-only. The details are on the My community page.",
282
+ "centre.title": "Notifications",
283
+ "centre.empty": "New notifications will show here.",
284
+ "centre.markAllRead": "Mark all as read",
285
+ "centre.settings": "Notification settings",
286
+ "centre.loadMore": "Load older",
287
+ "centre.unreadOnly": "Unread only",
288
+ "centre.signIn": "Sign in to see your notifications.",
289
+ // M2 T10: a reply's or a mention's row links its message on the article page.
290
+ "centre.openMessage": "Show the post",
291
+ "badge.unread_one": "{count} new notification",
292
+ "badge.unread_other": "{count} new notifications",
293
+ "settings.title": "Notification settings",
294
+ "settings.signIn": "Sign in to change your notification settings.",
295
+ "settings.notifyReply": "Replies to my posts",
296
+ "settings.notifyMention": "When someone mentions me",
297
+ "settings.notifyTopic": "News in discussions I follow",
298
+ "settings.pushEnabled": "Browser notifications",
299
+ "settings.digestEmail": "Daily e-mail summary",
300
+ "settings.quietHours": "Quiet hours: between 22:00 and 7:00, browser notifications wait until the morning.",
301
+ "settings.saved": "Saved.",
302
+ "settings.push.enable": "Turn on notifications",
303
+ "settings.push.disable": "Turn off notifications",
304
+ "settings.push.carries": "This website delivers the notifications. A notification doesn't say what arrived or who it's from.",
305
+ "settings.push.unsupported": "This browser can't show notifications. You'll find new replies and mentions on the notifications page.",
306
+ "settings.push.refused": "Notifications couldn't be turned on in this browser. Please try again later or in another browser.",
307
+ "settings.push.denied": "This browser blocks notifications for this site. You can allow them in the browser settings.",
308
+ "settings.push.inAppExplain": "Notifications can't be turned on inside the Facebook or Instagram app. Open the page in your browser.",
309
+ "settings.push.openInBrowser": "Open in browser",
310
+ "settings.push.iosGuide": "On an iPhone or iPad, notifications work only for a site added to the Home Screen: in Safari tap Share and choose “Add to Home Screen”. Then open the site from the Home Screen and turn notifications on.",
311
+ "settings.push.reset": "Turn notifications on again: a site setting changed, so the earlier setup no longer works.",
312
+ "settings.digest.prompt": "Do you want to stop receiving the daily e-mail summary?",
313
+ "settings.digest.confirm": "Stop the daily summary",
314
+ "settings.digest.unsubscribed": "We've switched off the daily e-mail summary.",
315
+ "settings.digest.staleLink": "This unsubscribe link is no longer valid. Sign in to switch the summary off in the settings.",
316
+ "profile.memberSince": "Member since {date}",
317
+ "profile.bio": "About me",
318
+ "profile.notFound": "We couldn't find this profile.",
319
+ "profile.signIn": "Sign in to see members' profiles.",
320
+ "trust.0": "New member",
321
+ "trust.1": "Member",
322
+ "trust.2": "Regular",
323
+ "trust.3": "Moderator",
324
+ "welcome.title": "Welcome to the community",
325
+ "welcome.lede": "Here are a few things that help at the start.",
326
+ "welcome.rules": "How the discussion works",
327
+ "welcome.discussions": "Browse the discussions",
328
+ "welcome.settings": "Set up notifications",
329
+ "welcome.profile": "My profile",
330
+ "realtime.off": "Live updates are off right now. The discussion refreshes itself every so often.",
331
+ "state.readOnly": "The community's extra features are switched off for now. The discussion under the article goes on.",
332
+ "state.braked": "Writing is paused for a while. You can keep reading.",
333
+ "mention.limit": "This post mentions more people than you can mention yet.",
264
334
  "notice.title": "Report content",
265
335
  "notice.lede": "You can report a comment, a profile or an article, even without signing in.",
266
336
  "notice.noTarget": "Open a report from the content you want to report: on a comment, choose “Report”.",
@@ -1,14 +1,15 @@
1
1
  import { COMMUNITY_MESSAGES_CS as a } from "./messages.cs.js";
2
2
  import { COMMUNITY_MESSAGES_EN as p } from "./messages.en.js";
3
+ import { NOTIFICATION_CODES as M, TRUST_LABELS as y } from "./shapes.js";
3
4
  const c = Object.freeze({
4
5
  cs: Object.freeze(a),
5
6
  en: Object.freeze(p)
6
7
  });
7
- function M(t) {
8
+ function h(t) {
8
9
  return (typeof t == "string" ? t.toLowerCase().split("-")[0] : "") === "cs" ? "cs" : "en";
9
10
  }
10
11
  const u = /* @__PURE__ */ new Map();
11
- function h(t, n) {
12
+ function m(t, n) {
12
13
  if (!u.has(t)) {
13
14
  let e = null;
14
15
  try {
@@ -19,48 +20,57 @@ function h(t, n) {
19
20
  }
20
21
  return u.get(t)?.select(n) ?? "other";
21
22
  }
22
- function y(t) {
23
+ function O(t) {
23
24
  const n = typeof t == "number" ? t : typeof t == "string" && t.trim() !== "" ? Number(t) : Number.NaN;
24
25
  return Number.isFinite(n) ? n : null;
25
26
  }
26
27
  function i(t, n) {
27
28
  return Object.prototype.hasOwnProperty.call(t, n) ? t[n] : void 0;
28
29
  }
29
- function m(t, n) {
30
+ function S(t, n) {
30
31
  return n ? t.replace(
31
32
  /\{(\w+)\}/g,
32
33
  (e, r) => Object.prototype.hasOwnProperty.call(n, r) && n[r] != null ? String(n[r]) : e
33
34
  ) : t;
34
35
  }
35
- function O(t, n, e) {
36
- const r = M(t), s = c[r];
36
+ function w(t, n, e) {
37
+ const r = h(t), s = c[r];
37
38
  let o = i(s, n);
38
39
  if (o === void 0) {
39
- const f = y(e?.count), g = f === null ? "other" : h(r, f);
40
+ const f = O(e?.count), g = f === null ? "other" : m(r, f);
40
41
  o = i(s, `${n}_${g}`) ?? i(s, `${n}_other`);
41
42
  }
42
- return o === void 0 ? String(n) : m(o, e);
43
+ return o === void 0 ? String(n) : S(o, e);
43
44
  }
44
45
  function l(t) {
45
46
  return typeof t != "string" ? !1 : i(c.en, t) !== void 0 || i(c.en, `${t}_other`) !== void 0;
46
47
  }
47
- function _(t) {
48
+ function C(t) {
48
49
  return typeof t == "string" && t.startsWith("identifier_") ? "warning.identifier" : t === "invisible_chars" ? "warning.invisible_chars" : "warning.other";
49
50
  }
50
- function w(t) {
51
+ function E(t) {
51
52
  const n = `confirm.${t}`;
52
53
  return t !== "title" && t !== "submit" && t !== "other" && l(n) ? n : "confirm.other";
53
54
  }
54
- function N(t) {
55
+ function $(t) {
55
56
  const n = `note.${t}`;
56
57
  return l(n) ? n : null;
57
58
  }
59
+ function I(t) {
60
+ return M.includes(t) ? `notification.${t}` : null;
61
+ }
62
+ function T(t) {
63
+ const n = typeof t == "string" ? y.indexOf(t) : -1;
64
+ return n < 0 ? null : `trust.${n}`;
65
+ }
58
66
  export {
59
67
  c as COMMUNITY_MESSAGES,
60
- O as communityMessage,
61
- M as communityMessageLanguage,
62
- w as confirmMessageKey,
68
+ w as communityMessage,
69
+ h as communityMessageLanguage,
70
+ E as confirmMessageKey,
63
71
  l as hasCommunityMessage,
64
- N as noteMessageKey,
65
- _ as warningMessageKey
72
+ $ as noteMessageKey,
73
+ I as notificationMessageKey,
74
+ T as trustLabelMessageKey,
75
+ C as warningMessageKey
66
76
  };
@@ -13,7 +13,7 @@
13
13
  */
14
14
  import type { KnownNeed } from './shapes.js';
15
15
  /** The codes a page can be told. */
16
- export declare const COMMUNITY_UI_CODES: readonly ["method", "origin", "unavailable", "invalid", "signIn", "onboarding", "age", "name", "handle", "restricted", "suspended", "terminated", "links", "fast", "blocked", "confirm", "removed", "quota", "captcha", "notFound", "surfaceOff", "notMoved", "ledger", "submit"];
16
+ export declare const COMMUNITY_UI_CODES: readonly ["method", "origin", "unavailable", "invalid", "signIn", "onboarding", "age", "name", "handle", "restricted", "suspended", "terminated", "links", "fast", "blocked", "confirm", "removed", "quota", "captcha", "notFound", "surfaceOff", "notMoved", "ledger", "readOnly", "braked", "mentionLimit", "pushRefused", "realtimeOff", "submit"];
17
17
  export type CommunityUiCode = (typeof COMMUNITY_UI_CODES)[number];
18
18
  /** True for one of COMMUNITY_UI_CODES. */
19
19
  export declare function isCommunityUiCode(code: unknown): code is CommunityUiCode;
@@ -27,10 +27,15 @@ export interface CommunityFailure {
27
27
  needs?: KnownNeed[];
28
28
  /** FILTER_BLOCKED, CONFIRMATION_REQUIRED: the filter codes (CONFIRMATION_REQUIRED: the ones to confirm). */
29
29
  codes?: string[];
30
- /** POSTING_RESTRICTED, ACCOUNT_SUSPENDED: when it ends (absent: no end set). */
30
+ /** POSTING_RESTRICTED, ACCOUNT_SUSPENDED, MODULE_READ_ONLY, BRAKED: when it ends (absent: no end set). */
31
31
  until?: string;
32
32
  /** VALIDATION: the paths of the refused fields (`displayName`, `body`, …), never their values. */
33
33
  fields?: string[];
34
+ /**
35
+ * VALIDATION: the codes kb-api gave some of those fields (`issues[].code`; M2 T9: `art9_refusal_read_only` on
36
+ * `art9Refused`) — a code only, never zod's message. Absent when none was given.
37
+ */
38
+ issueCodes?: string[];
34
39
  }
35
40
  /** What every client method resolves to; none of them throws. */
36
41
  export type CommunityOutcome<T> = {
@@ -41,7 +46,7 @@ export type CommunityOutcome<T> = {
41
46
  * Every code kb-api's community routers answer: their own, and the member, trust and quota codes they pass
42
47
  * through. A copy of `COMMUNITY_API_CODES` in kb-api's `routes/community-codes.ts`, in its order.
43
48
  */
44
- export declare const COMMUNITY_API_CODES: readonly ["SURFACE_OFF", "CUTOVER_NOT_MOVED", "NOT_FOUND", "ONBOARDING_REQUIRED", "AGE_BELOW_MINIMUM", "NAME_RESERVED", "NAME_BLOCKED", "HANDLE_TAKEN", "HANDLE_RATE", "POSTING_RESTRICTED", "ACCOUNT_SUSPENDED", "ACCOUNT_TERMINATED", "TOO_MANY_LINKS", "TOO_FAST", "FILTER_BLOCKED", "CONFIRMATION_REQUIRED", "MESSAGE_REMOVED", "REACTION_NOT_ALLOWED", "CAPTCHA_FAILED", "UNAUTHORIZED", "VALIDATION", "UNAVAILABLE", "STALE_LEASE", "STAFF_POSTING_OFF", "PRESET_CONFLICT", "INTERNAL", "NOT_A_MEMBER_SESSION", "IDENTITY_NOT_ADMITTED", "ACCOUNT_NOT_ELIGIBLE", "MEMBER_READ_ONLY", "MEMBER_DELETION_REQUESTED", "PRIVATE_SPACE", "WRONG_PROVIDER", "CASE_CLOSED", "NOTIFIER_NOT_ALLOWED", "UNSUPPORTED_RESTRICTION", "LADDER_EXCEEDED", "PERSON_REQUIRED", "APPEAL_OPEN", "APPEAL_WINDOW_CLOSED", "APPEAL_NEEDS_ANOTHER_PERSON", "GAG_PLATFORM_ONLY", "ORDER_FINAL", "BODY_JSON_INVALID", "AUDIT_DETAIL_NOT_CODE", "LEDGER_UNAVAILABLE", "INVALID_INPUT", "LEGAL_HOLD", "TEXT_MISSING", "QUOTA_DAILY", "QUOTA_IP_HOURLY"];
49
+ export declare const COMMUNITY_API_CODES: readonly ["SURFACE_OFF", "CUTOVER_NOT_MOVED", "NOT_FOUND", "ONBOARDING_REQUIRED", "AGE_BELOW_MINIMUM", "NAME_RESERVED", "NAME_BLOCKED", "HANDLE_TAKEN", "HANDLE_RATE", "POSTING_RESTRICTED", "ACCOUNT_SUSPENDED", "ACCOUNT_TERMINATED", "TOO_MANY_LINKS", "TOO_FAST", "FILTER_BLOCKED", "CONFIRMATION_REQUIRED", "MESSAGE_REMOVED", "REACTION_NOT_ALLOWED", "CAPTCHA_FAILED", "UNAUTHORIZED", "VALIDATION", "UNAVAILABLE", "STALE_LEASE", "STAFF_POSTING_OFF", "PRESET_CONFLICT", "INTERNAL", "MODULE_DARK", "MODULE_READ_ONLY", "BRAKED", "BRAKE_PLATFORM", "MODULE_CONDITIONS", "TRUST_LEVEL_INVALID", "MENTION_LIMIT", "DIGEST_UNSUBSCRIBE_INVALID", "PUSH_ENDPOINT_REFUSED", "PUSH_LIMIT", "REALTIME_OFF", "BUSY", "BRAKE_KIND_MISMATCH", "NOT_A_MEMBER_SESSION", "IDENTITY_NOT_ADMITTED", "ACCOUNT_NOT_ELIGIBLE", "MEMBER_READ_ONLY", "MEMBER_DELETION_REQUESTED", "PRIVATE_SPACE", "WRONG_PROVIDER", "CASE_CLOSED", "NOTIFIER_NOT_ALLOWED", "UNSUPPORTED_RESTRICTION", "LADDER_EXCEEDED", "PERSON_REQUIRED", "APPEAL_OPEN", "APPEAL_WINDOW_CLOSED", "APPEAL_NEEDS_ANOTHER_PERSON", "GAG_PLATFORM_ONLY", "ORDER_FINAL", "BODY_JSON_INVALID", "AUDIT_DETAIL_NOT_CODE", "LEDGER_UNAVAILABLE", "INVALID_INPUT", "LEGAL_HOLD", "TEXT_MISSING", "AGE16_NOT_ALLOWED", "QUOTA_DAILY", "QUOTA_IP_HOURLY"];
45
50
  /** A code kb-api's community routers answer. */
46
51
  export type CommunityApiCode = (typeof COMMUNITY_API_CODES)[number];
47
52
  /**