@stapel/vocabularies-react 0.1.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 (130) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/LICENSE +21 -0
  3. package/MODULE.md +92 -0
  4. package/README.md +173 -0
  5. package/dist/api/extensions.d.ts +8 -0
  6. package/dist/api/extensions.d.ts.map +1 -0
  7. package/dist/api/extensions.js +8 -0
  8. package/dist/api/extensions.js.map +1 -0
  9. package/dist/api/generated/schema.d.ts +234 -0
  10. package/dist/api/generated/schema.d.ts.map +1 -0
  11. package/dist/api/generated/schema.js +2 -0
  12. package/dist/api/generated/schema.js.map +1 -0
  13. package/dist/api/types.d.ts +23 -0
  14. package/dist/api/types.d.ts.map +1 -0
  15. package/dist/api/types.js +2 -0
  16. package/dist/api/types.js.map +1 -0
  17. package/dist/api/vocabulariesApi.d.ts +14 -0
  18. package/dist/api/vocabulariesApi.d.ts.map +1 -0
  19. package/dist/api/vocabulariesApi.js +4 -0
  20. package/dist/api/vocabulariesApi.js.map +1 -0
  21. package/dist/client.d.ts +49 -0
  22. package/dist/client.d.ts.map +1 -0
  23. package/dist/client.js +118 -0
  24. package/dist/client.js.map +1 -0
  25. package/dist/default/VocabularyTermSelect.d.ts +24 -0
  26. package/dist/default/VocabularyTermSelect.d.ts.map +1 -0
  27. package/dist/default/VocabularyTermSelect.js +75 -0
  28. package/dist/default/VocabularyTermSelect.js.map +1 -0
  29. package/dist/default/index.d.ts +16 -0
  30. package/dist/default/index.d.ts.map +1 -0
  31. package/dist/default/index.js +14 -0
  32. package/dist/default/index.js.map +1 -0
  33. package/dist/default/types.d.ts +12 -0
  34. package/dist/default/types.d.ts.map +1 -0
  35. package/dist/default/types.js +2 -0
  36. package/dist/default/types.js.map +1 -0
  37. package/dist/flows/errors.d.ts +12 -0
  38. package/dist/flows/errors.d.ts.map +1 -0
  39. package/dist/flows/errors.js +13 -0
  40. package/dist/flows/errors.js.map +1 -0
  41. package/dist/flows/registry.d.ts +22 -0
  42. package/dist/flows/registry.d.ts.map +1 -0
  43. package/dist/flows/registry.js +20 -0
  44. package/dist/flows/registry.js.map +1 -0
  45. package/dist/headless/VocabulariesProvider.d.ts +19 -0
  46. package/dist/headless/VocabulariesProvider.d.ts.map +1 -0
  47. package/dist/headless/VocabulariesProvider.js +15 -0
  48. package/dist/headless/VocabulariesProvider.js.map +1 -0
  49. package/dist/i18n/errorsMap.d.ts +10 -0
  50. package/dist/i18n/errorsMap.d.ts.map +1 -0
  51. package/dist/i18n/errorsMap.js +20 -0
  52. package/dist/i18n/errorsMap.js.map +1 -0
  53. package/dist/i18n/es.d.ts +21 -0
  54. package/dist/i18n/es.d.ts.map +1 -0
  55. package/dist/i18n/es.js +38 -0
  56. package/dist/i18n/es.js.map +1 -0
  57. package/dist/i18n/generated/errors.es.gen.d.ts +16 -0
  58. package/dist/i18n/generated/errors.es.gen.d.ts.map +1 -0
  59. package/dist/i18n/generated/errors.es.gen.js +58 -0
  60. package/dist/i18n/generated/errors.es.gen.js.map +1 -0
  61. package/dist/i18n/generated/errors.gen.d.ts +305 -0
  62. package/dist/i18n/generated/errors.gen.d.ts.map +1 -0
  63. package/dist/i18n/generated/errors.gen.js +156 -0
  64. package/dist/i18n/generated/errors.gen.js.map +1 -0
  65. package/dist/i18n/generated/errors.ru.gen.d.ts +16 -0
  66. package/dist/i18n/generated/errors.ru.gen.d.ts.map +1 -0
  67. package/dist/i18n/generated/errors.ru.gen.js +58 -0
  68. package/dist/i18n/generated/errors.ru.gen.js.map +1 -0
  69. package/dist/i18n/keys.d.ts +33 -0
  70. package/dist/i18n/keys.d.ts.map +1 -0
  71. package/dist/i18n/keys.js +44 -0
  72. package/dist/i18n/keys.js.map +1 -0
  73. package/dist/i18n/ru.d.ts +26 -0
  74. package/dist/i18n/ru.d.ts.map +1 -0
  75. package/dist/i18n/ru.js +43 -0
  76. package/dist/i18n/ru.js.map +1 -0
  77. package/dist/index.d.ts +34 -0
  78. package/dist/index.d.ts.map +1 -0
  79. package/dist/index.js +38 -0
  80. package/dist/index.js.map +1 -0
  81. package/dist/model/context.d.ts +11 -0
  82. package/dist/model/context.d.ts.map +1 -0
  83. package/dist/model/context.js +16 -0
  84. package/dist/model/context.js.map +1 -0
  85. package/dist/model/queryKeys.d.ts +5 -0
  86. package/dist/model/queryKeys.d.ts.map +1 -0
  87. package/dist/model/queryKeys.js +28 -0
  88. package/dist/model/queryKeys.js.map +1 -0
  89. package/dist/model/runtime.d.ts +17 -0
  90. package/dist/model/runtime.d.ts.map +1 -0
  91. package/dist/model/runtime.js +6 -0
  92. package/dist/model/runtime.js.map +1 -0
  93. package/dist/model/useTermLabels.d.ts +26 -0
  94. package/dist/model/useTermLabels.d.ts.map +1 -0
  95. package/dist/model/useTermLabels.js +58 -0
  96. package/dist/model/useTermLabels.js.map +1 -0
  97. package/dist/model/useTermSearch.d.ts +24 -0
  98. package/dist/model/useTermSearch.d.ts.map +1 -0
  99. package/dist/model/useTermSearch.js +85 -0
  100. package/dist/model/useTermSearch.js.map +1 -0
  101. package/llms.txt +79 -0
  102. package/manifest.json +466 -0
  103. package/package.json +108 -0
  104. package/src/analytics/generated/events.json +7 -0
  105. package/src/api/extensions.ts +7 -0
  106. package/src/api/generated/schema.ts +236 -0
  107. package/src/api/types.ts +27 -0
  108. package/src/api/vocabulariesApi.ts +17 -0
  109. package/src/client.ts +176 -0
  110. package/src/default/VocabularyTermSelect.tsx +147 -0
  111. package/src/default/index.ts +15 -0
  112. package/src/default/types.ts +11 -0
  113. package/src/flows/errors.ts +16 -0
  114. package/src/flows/registry.ts +32 -0
  115. package/src/headless/VocabulariesProvider.tsx +20 -0
  116. package/src/i18n/errorsMap.ts +31 -0
  117. package/src/i18n/es.ts +49 -0
  118. package/src/i18n/generated/errors.es.gen.ts +64 -0
  119. package/src/i18n/generated/errors.gen.ts +187 -0
  120. package/src/i18n/generated/errors.json +351 -0
  121. package/src/i18n/generated/errors.ru.gen.ts +64 -0
  122. package/src/i18n/keys.ts +53 -0
  123. package/src/i18n/ru.ts +54 -0
  124. package/src/index.ts +92 -0
  125. package/src/model/context.tsx +28 -0
  126. package/src/model/queryKeys.ts +35 -0
  127. package/src/model/runtime.ts +25 -0
  128. package/src/model/useTermLabels.ts +72 -0
  129. package/src/model/useTermSearch.ts +118 -0
  130. package/tsconfig.json +26 -0
@@ -0,0 +1,38 @@
1
+ import { vocabulariesErrorBundleEs } from "./generated/errors.es.gen.js";
2
+ import { vocabulariesI18nBundleEn } from "./keys.js";
3
+ export { vocabulariesErrorBundleEs } from "./generated/errors.es.gen.js";
4
+ /**
5
+ * Spanish bundle for vocabularies-react — shipped as the
6
+ * `@stapel/vocabularies-react/i18n/es` subpath (i18n-shipping.md §2) so the locale is
7
+ * opt-in: a host that never registers it never carries these strings (the main
8
+ * entry does not import this module).
9
+ *
10
+ * TWO SOURCES, ON PURPOSE — see the ru bundle's header: the generated
11
+ * `vocabulariesErrorBundleEs` covers the codes stapel-core owns, and the 3
12
+ * stapel-vocabularies owns are authored below until upstream ships a
13
+ * `translations/errors.es.json`.
14
+ */
15
+ export const vocabulariesI18nBundleEs = {
16
+ // Backend error codes — generated es texts for every key core owns.
17
+ ...vocabulariesErrorBundleEs,
18
+ // Backend error codes stapel-vocabularies owns — authored here (see above).
19
+ "error.400.vocabularies_bad_parent": "No hay ningún término «{parent}» en el nivel superior de «{level}»",
20
+ "error.404.vocabularies_level_not_found": "El vocabulario «{vocabulary}» no tiene el nivel «{level}»",
21
+ "error.404.vocabularies_vocabulary_not_found": "Vocabulario no encontrado",
22
+ // vocabularies-react UI
23
+ "vocabularies.error.unknown": "Algo salió mal. Inténtalo de nuevo.",
24
+ "vocabularies.termSelect.placeholder": "Escribe para buscar…",
25
+ "vocabularies.termSelect.noMatches": "Ningún término coincide.",
26
+ "vocabularies.termSelect.unavailable.title": "No se puede cargar esta lista",
27
+ "vocabularies.termSelect.unavailable": "Los valores de este campo vienen de un servicio de vocabularios que no está configurado aquí, así que no hay nada que elegir. Nadie puede responder a esta pregunta hasta que se conecte — avísanos, por favor.",
28
+ };
29
+ /**
30
+ * Register the Spanish bundle. The en bundle goes UNDER it
31
+ * (merge-priority convention): a key this locale has not translated yet
32
+ * degrades to ENGLISH, never to a raw key.
33
+ */
34
+ export function registerVocabulariesI18nEs(engine, locale = "es") {
35
+ engine.registerBundle(locale, vocabulariesI18nBundleEn);
36
+ engine.registerBundle(locale, vocabulariesI18nBundleEs);
37
+ }
38
+ //# sourceMappingURL=es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"es.js","sourceRoot":"","sources":["../../src/i18n/es.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAErD,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAEzE;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAmB;IACtD,oEAAoE;IACpE,GAAG,yBAAyB;IAE5B,4EAA4E;IAC5E,mCAAmC,EACjC,oEAAoE;IACtE,wCAAwC,EACtC,2DAA2D;IAC7D,6CAA6C,EAAE,2BAA2B;IAE1E,wBAAwB;IACxB,4BAA4B,EAAE,qCAAqC;IACnE,qCAAqC,EAAE,sBAAsB;IAC7D,mCAAmC,EAAE,0BAA0B;IAC/D,2CAA2C,EAAE,+BAA+B;IAC5E,qCAAqC,EACnC,iNAAiN;CACpN,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,0BAA0B,CACxC,MAAkB,EAClB,MAAM,GAAG,IAAI;IAEb,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;IACxD,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;AAC1D,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { VocabulariesErrorCode } from "./errors.gen.js";
2
+ /**
3
+ * `es` texts for the backend error codes this catalog carries.
4
+ *
5
+ * PARTIAL, and deliberately typed to say so: 3 key(s) owned by
6
+ * stapel_vocabularies are absent, because that owner ships no locale catalog
7
+ * (ERRORS_LOCALE_EXEMPT_OWNERS). English for them still comes from the registry
8
+ * artifact via the en bundle; the pair layers its own authored `es`
9
+ * strings over this one until upstream ships translations. `Partial` is what
10
+ * makes the gap visible to TypeScript instead of a silent English fallback.
11
+ *
12
+ * Import from the pair's `./i18n/es` subpath, NOT the main entry, so
13
+ * the locale stays out of hosts that don't ship it.
14
+ */
15
+ export declare const vocabulariesErrorBundleEs: Partial<Record<VocabulariesErrorCode, string>>;
16
+ //# sourceMappingURL=errors.es.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.es.gen.d.ts","sourceRoot":"","sources":["../../../src/i18n/generated/errors.es.gen.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,yBAAyB,EAAE,OAAO,CAAC,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAAC,CA2CpF,CAAC"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * `es` texts for the backend error codes this catalog carries.
3
+ *
4
+ * PARTIAL, and deliberately typed to say so: 3 key(s) owned by
5
+ * stapel_vocabularies are absent, because that owner ships no locale catalog
6
+ * (ERRORS_LOCALE_EXEMPT_OWNERS). English for them still comes from the registry
7
+ * artifact via the en bundle; the pair layers its own authored `es`
8
+ * strings over this one until upstream ships translations. `Partial` is what
9
+ * makes the gap visible to TypeScript instead of a silent English fallback.
10
+ *
11
+ * Import from the pair's `./i18n/es` subpath, NOT the main entry, so
12
+ * the locale stays out of hosts that don't ship it.
13
+ */
14
+ export const vocabulariesErrorBundleEs = {
15
+ "error.400.bad_request": "Solicitud incorrecta",
16
+ "error.400.captcha_invalid": "La verificación del captcha ha fallado. Inténtalo de nuevo.",
17
+ "error.400.captcha_required": "Se requiere el token del captcha.",
18
+ "error.400.expected_list": "Se esperaba una lista de elementos",
19
+ "error.400.field.blank": "{field} no puede estar vacío",
20
+ "error.400.field.does_not_exist": "{field} no existe",
21
+ "error.400.field.invalid": "{field} no es válido",
22
+ "error.400.field.invalid_choice": "{field} no es una opción válida",
23
+ "error.400.field.max_length": "{field} debe tener como máximo {max_length} caracteres",
24
+ "error.400.field.max_value": "{field} debe ser como máximo {max_value}",
25
+ "error.400.field.min_length": "{field} debe tener al menos {min_length} caracteres",
26
+ "error.400.field.min_value": "{field} debe ser como mínimo {min_value}",
27
+ "error.400.field.null": "{field} no puede ser nulo",
28
+ "error.400.field.required": "{field} es obligatorio",
29
+ "error.400.field.unique": "{field} debe ser único",
30
+ "error.400.invalid_ad_id": "ID de anuncio no válido",
31
+ "error.400.validation_error": "Error de validación",
32
+ "error.400.verification_failed": "La verificación ha fallado",
33
+ "error.400.verification_invalid_factor": "Este factor de verificación no está disponible",
34
+ "error.401.unauthorized": "Se requiere autenticación",
35
+ "error.402.payment_required": "Se requiere pago",
36
+ "error.403.forbidden": "No tienes permiso para realizar esta acción",
37
+ "error.403.network_blocked": "No se permiten solicitudes desde esta red.",
38
+ "error.403.verification_enrollment_required": "Es necesario registrar un factor de verificación.",
39
+ "error.403.verification_required": "Se requiere verificación adicional",
40
+ "error.404.ad_not_found": "Anuncio no encontrado",
41
+ "error.404.not_found": "Recurso solicitado no encontrado",
42
+ "error.404.verification_challenge_not_found": "Desafío de verificación no encontrado o caducado",
43
+ "error.405.method_not_allowed": "Método no permitido",
44
+ "error.406.not_acceptable": "No aceptable",
45
+ "error.408.request_timeout": "Tiempo de espera de la solicitud agotado",
46
+ "error.409.conflict": "El recurso ya existe",
47
+ "error.410.gone": "El recurso se ha eliminado permanentemente",
48
+ "error.413.payload_too_large": "El cuerpo de la solicitud es demasiado grande",
49
+ "error.415.unsupported_media_type": "Tipo de contenido no compatible",
50
+ "error.422.unprocessable_entity": "Entidad no procesable",
51
+ "error.423.locked": "El recurso está bloqueado",
52
+ "error.423.verification_locked": "Demasiados intentos fallidos — verificación bloqueada",
53
+ "error.429.rate_limit": "Demasiados intentos. Inténtalo de nuevo en {retry_after_minutes} minutos.",
54
+ "error.429.too_many_requests": "Demasiadas solicitudes. Inténtalo de nuevo más tarde.",
55
+ "error.500.internal": "Algo salió mal",
56
+ "error.503.mandate_unavailable": "No se puede verificar el mandato del espacio de trabajo",
57
+ };
58
+ //# sourceMappingURL=errors.es.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.es.gen.js","sourceRoot":"","sources":["../../../src/i18n/generated/errors.es.gen.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAmD;IACvF,uBAAuB,EAAE,sBAAsB;IAC/C,2BAA2B,EAAE,6DAA6D;IAC1F,4BAA4B,EAAE,mCAAmC;IACjE,yBAAyB,EAAE,oCAAoC;IAC/D,uBAAuB,EAAE,8BAA8B;IACvD,gCAAgC,EAAE,mBAAmB;IACrD,yBAAyB,EAAE,sBAAsB;IACjD,gCAAgC,EAAE,iCAAiC;IACnE,4BAA4B,EAAE,wDAAwD;IACtF,2BAA2B,EAAE,0CAA0C;IACvE,4BAA4B,EAAE,qDAAqD;IACnF,2BAA2B,EAAE,0CAA0C;IACvE,sBAAsB,EAAE,2BAA2B;IACnD,0BAA0B,EAAE,wBAAwB;IACpD,wBAAwB,EAAE,wBAAwB;IAClD,yBAAyB,EAAE,yBAAyB;IACpD,4BAA4B,EAAE,qBAAqB;IACnD,+BAA+B,EAAE,4BAA4B;IAC7D,uCAAuC,EAAE,gDAAgD;IACzF,wBAAwB,EAAE,2BAA2B;IACrD,4BAA4B,EAAE,kBAAkB;IAChD,qBAAqB,EAAE,6CAA6C;IACpE,2BAA2B,EAAE,4CAA4C;IACzE,4CAA4C,EAAE,mDAAmD;IACjG,iCAAiC,EAAE,oCAAoC;IACvE,wBAAwB,EAAE,uBAAuB;IACjD,qBAAqB,EAAE,kCAAkC;IACzD,4CAA4C,EAAE,kDAAkD;IAChG,8BAA8B,EAAE,qBAAqB;IACrD,0BAA0B,EAAE,cAAc;IAC1C,2BAA2B,EAAE,0CAA0C;IACvE,oBAAoB,EAAE,sBAAsB;IAC5C,gBAAgB,EAAE,4CAA4C;IAC9D,6BAA6B,EAAE,+CAA+C;IAC9E,kCAAkC,EAAE,iCAAiC;IACrE,gCAAgC,EAAE,uBAAuB;IACzD,kBAAkB,EAAE,2BAA2B;IAC/C,+BAA+B,EAAE,uDAAuD;IACxF,sBAAsB,EAAE,2EAA2E;IACnG,6BAA6B,EAAE,uDAAuD;IACtF,oBAAoB,EAAE,gBAAgB;IACtC,+BAA+B,EAAE,yDAAyD;CAC3F,CAAC"}
@@ -0,0 +1,305 @@
1
+ /**
2
+ * Remediation vocabulary (frontend-core-architecture §2.5). Declared by the
3
+ * backend on the error registry and consumed verbatim from its `errors.json`
4
+ * artifact. A host maps it to UX — retryable → "try again"; `wait_and_retry` →
5
+ * timer from `params.retry_after_minutes`; `verify` → the step-up seam;
6
+ * `fix_input` → highlight the offending field.
7
+ */
8
+ export type Remediation = "retry" | "wait_and_retry" | "reauthenticate" | "verify" | "fix_input" | "contact_support" | "bug";
9
+ export interface VocabulariesErrorSpec {
10
+ /** HTTP status the backend raises this key with. */
11
+ readonly status: number;
12
+ /** `{param}` interpolation slots present in the message. */
13
+ readonly params: readonly string[];
14
+ /** Remediation hint declared by the backend (see {@link Remediation}). */
15
+ readonly remediation: Remediation;
16
+ /** English fallback (source: stapel-auth errors.json). */
17
+ readonly en: string;
18
+ }
19
+ /**
20
+ * The VOCABULARIES_ERRORS map — every `error.*` key stapel-auth can raise, keyed by its
21
+ * canonical code. The single source of truth behind the en fallback bundle, the
22
+ * remediation lookup, and the manifest `errors` block.
23
+ */
24
+ export declare const VOCABULARIES_ERRORS: {
25
+ readonly "error.400.bad_request": {
26
+ readonly status: 400;
27
+ readonly params: readonly [];
28
+ readonly remediation: "fix_input";
29
+ readonly en: "Bad request";
30
+ };
31
+ readonly "error.400.captcha_invalid": {
32
+ readonly status: 400;
33
+ readonly params: readonly [];
34
+ readonly remediation: "retry";
35
+ readonly en: "Captcha verification failed. Please try again.";
36
+ };
37
+ readonly "error.400.captcha_required": {
38
+ readonly status: 400;
39
+ readonly params: readonly [];
40
+ readonly remediation: "retry";
41
+ readonly en: "Captcha token is required.";
42
+ };
43
+ readonly "error.400.expected_list": {
44
+ readonly status: 400;
45
+ readonly params: readonly [];
46
+ readonly remediation: "fix_input";
47
+ readonly en: "Expected a list of items";
48
+ };
49
+ readonly "error.400.field.blank": {
50
+ readonly status: 400;
51
+ readonly params: readonly ["field"];
52
+ readonly remediation: "fix_input";
53
+ readonly en: "{field} may not be blank";
54
+ };
55
+ readonly "error.400.field.does_not_exist": {
56
+ readonly status: 400;
57
+ readonly params: readonly ["field"];
58
+ readonly remediation: "fix_input";
59
+ readonly en: "{field} does not exist";
60
+ };
61
+ readonly "error.400.field.invalid": {
62
+ readonly status: 400;
63
+ readonly params: readonly ["field"];
64
+ readonly remediation: "fix_input";
65
+ readonly en: "{field} is invalid";
66
+ };
67
+ readonly "error.400.field.invalid_choice": {
68
+ readonly status: 400;
69
+ readonly params: readonly ["field"];
70
+ readonly remediation: "fix_input";
71
+ readonly en: "{field} is not a valid choice";
72
+ };
73
+ readonly "error.400.field.max_length": {
74
+ readonly status: 400;
75
+ readonly params: readonly ["field", "max_length"];
76
+ readonly remediation: "fix_input";
77
+ readonly en: "{field} must be at most {max_length} characters";
78
+ };
79
+ readonly "error.400.field.max_value": {
80
+ readonly status: 400;
81
+ readonly params: readonly ["field", "max_value"];
82
+ readonly remediation: "fix_input";
83
+ readonly en: "{field} must be at most {max_value}";
84
+ };
85
+ readonly "error.400.field.min_length": {
86
+ readonly status: 400;
87
+ readonly params: readonly ["field", "min_length"];
88
+ readonly remediation: "fix_input";
89
+ readonly en: "{field} must be at least {min_length} characters";
90
+ };
91
+ readonly "error.400.field.min_value": {
92
+ readonly status: 400;
93
+ readonly params: readonly ["field", "min_value"];
94
+ readonly remediation: "fix_input";
95
+ readonly en: "{field} must be at least {min_value}";
96
+ };
97
+ readonly "error.400.field.null": {
98
+ readonly status: 400;
99
+ readonly params: readonly ["field"];
100
+ readonly remediation: "fix_input";
101
+ readonly en: "{field} may not be null";
102
+ };
103
+ readonly "error.400.field.required": {
104
+ readonly status: 400;
105
+ readonly params: readonly ["field"];
106
+ readonly remediation: "fix_input";
107
+ readonly en: "{field} is required";
108
+ };
109
+ readonly "error.400.field.unique": {
110
+ readonly status: 400;
111
+ readonly params: readonly ["field"];
112
+ readonly remediation: "fix_input";
113
+ readonly en: "{field} must be unique";
114
+ };
115
+ readonly "error.400.invalid_ad_id": {
116
+ readonly status: 400;
117
+ readonly params: readonly [];
118
+ readonly remediation: "fix_input";
119
+ readonly en: "Invalid advertisement ID";
120
+ };
121
+ readonly "error.400.validation_error": {
122
+ readonly status: 400;
123
+ readonly params: readonly [];
124
+ readonly remediation: "fix_input";
125
+ readonly en: "Validation error";
126
+ };
127
+ readonly "error.400.verification_failed": {
128
+ readonly status: 400;
129
+ readonly params: readonly [];
130
+ readonly remediation: "verify";
131
+ readonly en: "Verification failed";
132
+ };
133
+ readonly "error.400.verification_invalid_factor": {
134
+ readonly status: 400;
135
+ readonly params: readonly [];
136
+ readonly remediation: "verify";
137
+ readonly en: "This verification factor is not available";
138
+ };
139
+ readonly "error.400.vocabularies_bad_parent": {
140
+ readonly status: 400;
141
+ readonly params: readonly ["parent", "level"];
142
+ readonly remediation: "fix_input";
143
+ readonly en: "No term '{parent}' at the parent level of '{level}'";
144
+ };
145
+ readonly "error.401.unauthorized": {
146
+ readonly status: 401;
147
+ readonly params: readonly [];
148
+ readonly remediation: "reauthenticate";
149
+ readonly en: "Authentication required";
150
+ };
151
+ readonly "error.402.payment_required": {
152
+ readonly status: 402;
153
+ readonly params: readonly [];
154
+ readonly remediation: "retry";
155
+ readonly en: "Payment required";
156
+ };
157
+ readonly "error.403.forbidden": {
158
+ readonly status: 403;
159
+ readonly params: readonly [];
160
+ readonly remediation: "retry";
161
+ readonly en: "You do not have permission to perform this action";
162
+ };
163
+ readonly "error.403.network_blocked": {
164
+ readonly status: 403;
165
+ readonly params: readonly [];
166
+ readonly remediation: "contact_support";
167
+ readonly en: "Requests from this network are not allowed";
168
+ };
169
+ readonly "error.403.verification_enrollment_required": {
170
+ readonly status: 403;
171
+ readonly params: readonly [];
172
+ readonly remediation: "verify";
173
+ readonly en: "Verification factor enrollment required";
174
+ };
175
+ readonly "error.403.verification_required": {
176
+ readonly status: 403;
177
+ readonly params: readonly [];
178
+ readonly remediation: "verify";
179
+ readonly en: "Additional verification required";
180
+ };
181
+ readonly "error.404.ad_not_found": {
182
+ readonly status: 404;
183
+ readonly params: readonly [];
184
+ readonly remediation: "retry";
185
+ readonly en: "Listing not found";
186
+ };
187
+ readonly "error.404.not_found": {
188
+ readonly status: 404;
189
+ readonly params: readonly [];
190
+ readonly remediation: "retry";
191
+ readonly en: "Requested resource not found";
192
+ };
193
+ readonly "error.404.verification_challenge_not_found": {
194
+ readonly status: 404;
195
+ readonly params: readonly [];
196
+ readonly remediation: "verify";
197
+ readonly en: "Verification challenge not found or expired";
198
+ };
199
+ readonly "error.404.vocabularies_level_not_found": {
200
+ readonly status: 404;
201
+ readonly params: readonly ["vocabulary", "level"];
202
+ readonly remediation: "retry";
203
+ readonly en: "Vocabulary '{vocabulary}' has no level '{level}'";
204
+ };
205
+ readonly "error.404.vocabularies_vocabulary_not_found": {
206
+ readonly status: 404;
207
+ readonly params: readonly [];
208
+ readonly remediation: "retry";
209
+ readonly en: "Vocabulary not found";
210
+ };
211
+ readonly "error.405.method_not_allowed": {
212
+ readonly status: 405;
213
+ readonly params: readonly [];
214
+ readonly remediation: "retry";
215
+ readonly en: "Method not allowed";
216
+ };
217
+ readonly "error.406.not_acceptable": {
218
+ readonly status: 406;
219
+ readonly params: readonly [];
220
+ readonly remediation: "retry";
221
+ readonly en: "Not acceptable";
222
+ };
223
+ readonly "error.408.request_timeout": {
224
+ readonly status: 408;
225
+ readonly params: readonly [];
226
+ readonly remediation: "retry";
227
+ readonly en: "Request timeout";
228
+ };
229
+ readonly "error.409.conflict": {
230
+ readonly status: 409;
231
+ readonly params: readonly [];
232
+ readonly remediation: "fix_input";
233
+ readonly en: "Resource already exists";
234
+ };
235
+ readonly "error.410.gone": {
236
+ readonly status: 410;
237
+ readonly params: readonly [];
238
+ readonly remediation: "retry";
239
+ readonly en: "Resource has been permanently removed";
240
+ };
241
+ readonly "error.413.payload_too_large": {
242
+ readonly status: 413;
243
+ readonly params: readonly [];
244
+ readonly remediation: "retry";
245
+ readonly en: "Request body is too large";
246
+ };
247
+ readonly "error.415.unsupported_media_type": {
248
+ readonly status: 415;
249
+ readonly params: readonly [];
250
+ readonly remediation: "retry";
251
+ readonly en: "Unsupported media type";
252
+ };
253
+ readonly "error.422.unprocessable_entity": {
254
+ readonly status: 422;
255
+ readonly params: readonly [];
256
+ readonly remediation: "wait_and_retry";
257
+ readonly en: "Unprocessable entity";
258
+ };
259
+ readonly "error.423.locked": {
260
+ readonly status: 423;
261
+ readonly params: readonly [];
262
+ readonly remediation: "wait_and_retry";
263
+ readonly en: "Resource is locked";
264
+ };
265
+ readonly "error.423.verification_locked": {
266
+ readonly status: 423;
267
+ readonly params: readonly [];
268
+ readonly remediation: "wait_and_retry";
269
+ readonly en: "Too many failed attempts — verification locked";
270
+ };
271
+ readonly "error.429.rate_limit": {
272
+ readonly status: 429;
273
+ readonly params: readonly ["retry_after_minutes"];
274
+ readonly remediation: "wait_and_retry";
275
+ readonly en: "Too many attempts. Try again in {retry_after_minutes} minutes.";
276
+ };
277
+ readonly "error.429.too_many_requests": {
278
+ readonly status: 429;
279
+ readonly params: readonly [];
280
+ readonly remediation: "wait_and_retry";
281
+ readonly en: "Too many requests. Please try again later.";
282
+ };
283
+ readonly "error.500.internal": {
284
+ readonly status: 500;
285
+ readonly params: readonly [];
286
+ readonly remediation: "contact_support";
287
+ readonly en: "Something went wrong";
288
+ };
289
+ readonly "error.503.mandate_unavailable": {
290
+ readonly status: 503;
291
+ readonly params: readonly [];
292
+ readonly remediation: "retry";
293
+ readonly en: "Cannot verify workspace mandate right now";
294
+ };
295
+ };
296
+ export type VocabulariesErrorCode = keyof typeof VOCABULARIES_ERRORS;
297
+ /** Every backend error code this module can surface, sorted. */
298
+ export declare const VOCABULARIES_ERROR_CODES: readonly VocabulariesErrorCode[];
299
+ /**
300
+ * English fallback bundle — one string per backend key, so a `StapelApiError.code`
301
+ * never renders as a raw key. Merged UNDER the hand-polished UI copy in
302
+ * {@link authI18nBundleEn} (polish wins; this guarantees coverage).
303
+ */
304
+ export declare const vocabulariesErrorBundleEn: Record<VocabulariesErrorCode, string>;
305
+ //# sourceMappingURL=errors.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.gen.d.ts","sourceRoot":"","sources":["../../../src/i18n/generated/errors.gen.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GACnB,OAAO,GACP,gBAAgB,GAChB,gBAAgB,GAChB,QAAQ,GACR,WAAW,GACX,iBAAiB,GACjB,KAAK,CAAC;AAEV,MAAM,WAAW,qBAAqB;IACpC,oDAAoD;IACpD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,4DAA4D;IAC5D,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,0EAA0E;IAC1E,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CtB,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAErE,gEAAgE;AAChE,eAAO,MAAM,wBAAwB,EAAE,SAAS,qBAAqB,EA8CpE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,qBAAqB,EAAE,MAAM,CA8C3E,CAAC"}
@@ -0,0 +1,156 @@
1
+ // AUTO-GENERATED by scripts/gen-errors.mjs — do not edit by hand.
2
+ // Source: stapel-auth canonical errors.json (backend codegen artifact).
3
+ // Regenerate: pnpm gen:errors · Drift gate: pnpm gen:errors:check
4
+ /**
5
+ * The VOCABULARIES_ERRORS map — every `error.*` key stapel-auth can raise, keyed by its
6
+ * canonical code. The single source of truth behind the en fallback bundle, the
7
+ * remediation lookup, and the manifest `errors` block.
8
+ */
9
+ export const VOCABULARIES_ERRORS = {
10
+ "error.400.bad_request": { status: 400, params: [], remediation: "fix_input", en: "Bad request" },
11
+ "error.400.captcha_invalid": { status: 400, params: [], remediation: "retry", en: "Captcha verification failed. Please try again." },
12
+ "error.400.captcha_required": { status: 400, params: [], remediation: "retry", en: "Captcha token is required." },
13
+ "error.400.expected_list": { status: 400, params: [], remediation: "fix_input", en: "Expected a list of items" },
14
+ "error.400.field.blank": { status: 400, params: ["field"], remediation: "fix_input", en: "{field} may not be blank" },
15
+ "error.400.field.does_not_exist": { status: 400, params: ["field"], remediation: "fix_input", en: "{field} does not exist" },
16
+ "error.400.field.invalid": { status: 400, params: ["field"], remediation: "fix_input", en: "{field} is invalid" },
17
+ "error.400.field.invalid_choice": { status: 400, params: ["field"], remediation: "fix_input", en: "{field} is not a valid choice" },
18
+ "error.400.field.max_length": { status: 400, params: ["field", "max_length"], remediation: "fix_input", en: "{field} must be at most {max_length} characters" },
19
+ "error.400.field.max_value": { status: 400, params: ["field", "max_value"], remediation: "fix_input", en: "{field} must be at most {max_value}" },
20
+ "error.400.field.min_length": { status: 400, params: ["field", "min_length"], remediation: "fix_input", en: "{field} must be at least {min_length} characters" },
21
+ "error.400.field.min_value": { status: 400, params: ["field", "min_value"], remediation: "fix_input", en: "{field} must be at least {min_value}" },
22
+ "error.400.field.null": { status: 400, params: ["field"], remediation: "fix_input", en: "{field} may not be null" },
23
+ "error.400.field.required": { status: 400, params: ["field"], remediation: "fix_input", en: "{field} is required" },
24
+ "error.400.field.unique": { status: 400, params: ["field"], remediation: "fix_input", en: "{field} must be unique" },
25
+ "error.400.invalid_ad_id": { status: 400, params: [], remediation: "fix_input", en: "Invalid advertisement ID" },
26
+ "error.400.validation_error": { status: 400, params: [], remediation: "fix_input", en: "Validation error" },
27
+ "error.400.verification_failed": { status: 400, params: [], remediation: "verify", en: "Verification failed" },
28
+ "error.400.verification_invalid_factor": { status: 400, params: [], remediation: "verify", en: "This verification factor is not available" },
29
+ "error.400.vocabularies_bad_parent": { status: 400, params: ["parent", "level"], remediation: "fix_input", en: "No term '{parent}' at the parent level of '{level}'" },
30
+ "error.401.unauthorized": { status: 401, params: [], remediation: "reauthenticate", en: "Authentication required" },
31
+ "error.402.payment_required": { status: 402, params: [], remediation: "retry", en: "Payment required" },
32
+ "error.403.forbidden": { status: 403, params: [], remediation: "retry", en: "You do not have permission to perform this action" },
33
+ "error.403.network_blocked": { status: 403, params: [], remediation: "contact_support", en: "Requests from this network are not allowed" },
34
+ "error.403.verification_enrollment_required": { status: 403, params: [], remediation: "verify", en: "Verification factor enrollment required" },
35
+ "error.403.verification_required": { status: 403, params: [], remediation: "verify", en: "Additional verification required" },
36
+ "error.404.ad_not_found": { status: 404, params: [], remediation: "retry", en: "Listing not found" },
37
+ "error.404.not_found": { status: 404, params: [], remediation: "retry", en: "Requested resource not found" },
38
+ "error.404.verification_challenge_not_found": { status: 404, params: [], remediation: "verify", en: "Verification challenge not found or expired" },
39
+ "error.404.vocabularies_level_not_found": { status: 404, params: ["vocabulary", "level"], remediation: "retry", en: "Vocabulary '{vocabulary}' has no level '{level}'" },
40
+ "error.404.vocabularies_vocabulary_not_found": { status: 404, params: [], remediation: "retry", en: "Vocabulary not found" },
41
+ "error.405.method_not_allowed": { status: 405, params: [], remediation: "retry", en: "Method not allowed" },
42
+ "error.406.not_acceptable": { status: 406, params: [], remediation: "retry", en: "Not acceptable" },
43
+ "error.408.request_timeout": { status: 408, params: [], remediation: "retry", en: "Request timeout" },
44
+ "error.409.conflict": { status: 409, params: [], remediation: "fix_input", en: "Resource already exists" },
45
+ "error.410.gone": { status: 410, params: [], remediation: "retry", en: "Resource has been permanently removed" },
46
+ "error.413.payload_too_large": { status: 413, params: [], remediation: "retry", en: "Request body is too large" },
47
+ "error.415.unsupported_media_type": { status: 415, params: [], remediation: "retry", en: "Unsupported media type" },
48
+ "error.422.unprocessable_entity": { status: 422, params: [], remediation: "wait_and_retry", en: "Unprocessable entity" },
49
+ "error.423.locked": { status: 423, params: [], remediation: "wait_and_retry", en: "Resource is locked" },
50
+ "error.423.verification_locked": { status: 423, params: [], remediation: "wait_and_retry", en: "Too many failed attempts — verification locked" },
51
+ "error.429.rate_limit": { status: 429, params: ["retry_after_minutes"], remediation: "wait_and_retry", en: "Too many attempts. Try again in {retry_after_minutes} minutes." },
52
+ "error.429.too_many_requests": { status: 429, params: [], remediation: "wait_and_retry", en: "Too many requests. Please try again later." },
53
+ "error.500.internal": { status: 500, params: [], remediation: "contact_support", en: "Something went wrong" },
54
+ "error.503.mandate_unavailable": { status: 503, params: [], remediation: "retry", en: "Cannot verify workspace mandate right now" },
55
+ };
56
+ /** Every backend error code this module can surface, sorted. */
57
+ export const VOCABULARIES_ERROR_CODES = [
58
+ "error.400.bad_request",
59
+ "error.400.captcha_invalid",
60
+ "error.400.captcha_required",
61
+ "error.400.expected_list",
62
+ "error.400.field.blank",
63
+ "error.400.field.does_not_exist",
64
+ "error.400.field.invalid",
65
+ "error.400.field.invalid_choice",
66
+ "error.400.field.max_length",
67
+ "error.400.field.max_value",
68
+ "error.400.field.min_length",
69
+ "error.400.field.min_value",
70
+ "error.400.field.null",
71
+ "error.400.field.required",
72
+ "error.400.field.unique",
73
+ "error.400.invalid_ad_id",
74
+ "error.400.validation_error",
75
+ "error.400.verification_failed",
76
+ "error.400.verification_invalid_factor",
77
+ "error.400.vocabularies_bad_parent",
78
+ "error.401.unauthorized",
79
+ "error.402.payment_required",
80
+ "error.403.forbidden",
81
+ "error.403.network_blocked",
82
+ "error.403.verification_enrollment_required",
83
+ "error.403.verification_required",
84
+ "error.404.ad_not_found",
85
+ "error.404.not_found",
86
+ "error.404.verification_challenge_not_found",
87
+ "error.404.vocabularies_level_not_found",
88
+ "error.404.vocabularies_vocabulary_not_found",
89
+ "error.405.method_not_allowed",
90
+ "error.406.not_acceptable",
91
+ "error.408.request_timeout",
92
+ "error.409.conflict",
93
+ "error.410.gone",
94
+ "error.413.payload_too_large",
95
+ "error.415.unsupported_media_type",
96
+ "error.422.unprocessable_entity",
97
+ "error.423.locked",
98
+ "error.423.verification_locked",
99
+ "error.429.rate_limit",
100
+ "error.429.too_many_requests",
101
+ "error.500.internal",
102
+ "error.503.mandate_unavailable",
103
+ ];
104
+ /**
105
+ * English fallback bundle — one string per backend key, so a `StapelApiError.code`
106
+ * never renders as a raw key. Merged UNDER the hand-polished UI copy in
107
+ * {@link authI18nBundleEn} (polish wins; this guarantees coverage).
108
+ */
109
+ export const vocabulariesErrorBundleEn = {
110
+ "error.400.bad_request": "Bad request",
111
+ "error.400.captcha_invalid": "Captcha verification failed. Please try again.",
112
+ "error.400.captcha_required": "Captcha token is required.",
113
+ "error.400.expected_list": "Expected a list of items",
114
+ "error.400.field.blank": "{field} may not be blank",
115
+ "error.400.field.does_not_exist": "{field} does not exist",
116
+ "error.400.field.invalid": "{field} is invalid",
117
+ "error.400.field.invalid_choice": "{field} is not a valid choice",
118
+ "error.400.field.max_length": "{field} must be at most {max_length} characters",
119
+ "error.400.field.max_value": "{field} must be at most {max_value}",
120
+ "error.400.field.min_length": "{field} must be at least {min_length} characters",
121
+ "error.400.field.min_value": "{field} must be at least {min_value}",
122
+ "error.400.field.null": "{field} may not be null",
123
+ "error.400.field.required": "{field} is required",
124
+ "error.400.field.unique": "{field} must be unique",
125
+ "error.400.invalid_ad_id": "Invalid advertisement ID",
126
+ "error.400.validation_error": "Validation error",
127
+ "error.400.verification_failed": "Verification failed",
128
+ "error.400.verification_invalid_factor": "This verification factor is not available",
129
+ "error.400.vocabularies_bad_parent": "No term '{parent}' at the parent level of '{level}'",
130
+ "error.401.unauthorized": "Authentication required",
131
+ "error.402.payment_required": "Payment required",
132
+ "error.403.forbidden": "You do not have permission to perform this action",
133
+ "error.403.network_blocked": "Requests from this network are not allowed",
134
+ "error.403.verification_enrollment_required": "Verification factor enrollment required",
135
+ "error.403.verification_required": "Additional verification required",
136
+ "error.404.ad_not_found": "Listing not found",
137
+ "error.404.not_found": "Requested resource not found",
138
+ "error.404.verification_challenge_not_found": "Verification challenge not found or expired",
139
+ "error.404.vocabularies_level_not_found": "Vocabulary '{vocabulary}' has no level '{level}'",
140
+ "error.404.vocabularies_vocabulary_not_found": "Vocabulary not found",
141
+ "error.405.method_not_allowed": "Method not allowed",
142
+ "error.406.not_acceptable": "Not acceptable",
143
+ "error.408.request_timeout": "Request timeout",
144
+ "error.409.conflict": "Resource already exists",
145
+ "error.410.gone": "Resource has been permanently removed",
146
+ "error.413.payload_too_large": "Request body is too large",
147
+ "error.415.unsupported_media_type": "Unsupported media type",
148
+ "error.422.unprocessable_entity": "Unprocessable entity",
149
+ "error.423.locked": "Resource is locked",
150
+ "error.423.verification_locked": "Too many failed attempts — verification locked",
151
+ "error.429.rate_limit": "Too many attempts. Try again in {retry_after_minutes} minutes.",
152
+ "error.429.too_many_requests": "Too many requests. Please try again later.",
153
+ "error.500.internal": "Something went wrong",
154
+ "error.503.mandate_unavailable": "Cannot verify workspace mandate right now",
155
+ };
156
+ //# sourceMappingURL=errors.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.gen.js","sourceRoot":"","sources":["../../../src/i18n/generated/errors.gen.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,wEAAwE;AACxE,sEAAsE;AA6BtE;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,uBAAuB,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,EAAE,aAAa,EAAE;IACjG,2BAA2B,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,EAAE,gDAAgD,EAAE;IACpI,4BAA4B,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,EAAE,4BAA4B,EAAE;IACjH,yBAAyB,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,EAAE,0BAA0B,EAAE;IAChH,uBAAuB,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,EAAE,0BAA0B,EAAE;IACrH,gCAAgC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,EAAE,wBAAwB,EAAE;IAC5H,yBAAyB,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,EAAE,oBAAoB,EAAE;IACjH,gCAAgC,EAAE,EAAE,MAAM,EAA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B;IACjD,0BAA0B,EAAE,qBAAqB;IACjD,wBAAwB,EAAE,wBAAwB;IAClD,yBAAyB,EAAE,0BAA0B;IACrD,4BAA4B,EAAE,kBAAkB;IAChD,+BAA+B,EAAE,qBAAqB;IACtD,uCAAuC,EAAE,2CAA2C;IACpF,mCAAmC,EAAE,qDAAqD;IAC1F,wBAAwB,EAAE,yBAAyB;IACnD,4BAA4B,EAAE,kBAAkB;IAChD,qBAAqB,EAAE,mDAAmD;IAC1E,2BAA2B,EAAE,4CAA4C;IACzE,4CAA4C,EAAE,yCAAyC;IACvF,iCAAiC,EAAE,kCAAkC;IACrE,wBAAwB,EAAE,mBAAmB;IAC7C,qBAAqB,EAAE,8BAA8B;IACrD,4CAA4C,EAAE,6CAA6C;IAC3F,wCAAwC,EAAE,kDAAkD;IAC5F,6CAA6C,EAAE,sBAAsB;IACrE,8BAA8B,EAAE,oBAAoB;IACpD,0BAA0B,EAAE,gBAAgB;IAC5C,2BAA2B,EAAE,iBAAiB;IAC9C,oBAAoB,EAAE,yBAAyB;IAC/C,gBAAgB,EAAE,uCAAuC;IACzD,6BAA6B,EAAE,2BAA2B;IAC1D,kCAAkC,EAAE,wBAAwB;IAC5D,gCAAgC,EAAE,sBAAsB;IACxD,kBAAkB,EAAE,oBAAoB;IACxC,+BAA+B,EAAE,gDAAgD;IACjF,sBAAsB,EAAE,gEAAgE;IACxF,6BAA6B,EAAE,4CAA4C;IAC3E,oBAAoB,EAAE,sBAAsB;IAC5C,+BAA+B,EAAE,2CAA2C;CAC7E,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { VocabulariesErrorCode } from "./errors.gen.js";
2
+ /**
3
+ * `ru` texts for the backend error codes this catalog carries.
4
+ *
5
+ * PARTIAL, and deliberately typed to say so: 3 key(s) owned by
6
+ * stapel_vocabularies are absent, because that owner ships no locale catalog
7
+ * (ERRORS_LOCALE_EXEMPT_OWNERS). English for them still comes from the registry
8
+ * artifact via the en bundle; the pair layers its own authored `ru`
9
+ * strings over this one until upstream ships translations. `Partial` is what
10
+ * makes the gap visible to TypeScript instead of a silent English fallback.
11
+ *
12
+ * Import from the pair's `./i18n/ru` subpath, NOT the main entry, so
13
+ * the locale stays out of hosts that don't ship it.
14
+ */
15
+ export declare const vocabulariesErrorBundleRu: Partial<Record<VocabulariesErrorCode, string>>;
16
+ //# sourceMappingURL=errors.ru.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.ru.gen.d.ts","sourceRoot":"","sources":["../../../src/i18n/generated/errors.ru.gen.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,yBAAyB,EAAE,OAAO,CAAC,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAAC,CA2CpF,CAAC"}