@taggor/contract 0.0.0-stage → 0.2.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 (343) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -2
  3. package/dist/.tsbuildinfo +1 -0
  4. package/dist/artifact-keys.d.ts +169 -0
  5. package/dist/artifact-keys.d.ts.map +1 -0
  6. package/dist/artifact-keys.js +195 -0
  7. package/dist/artifact-keys.js.map +1 -0
  8. package/dist/assets.d.ts +72 -0
  9. package/dist/assets.d.ts.map +1 -0
  10. package/dist/assets.js +94 -0
  11. package/dist/assets.js.map +1 -0
  12. package/dist/bounded-path.d.ts +29 -0
  13. package/dist/bounded-path.d.ts.map +1 -0
  14. package/dist/bounded-path.js +57 -0
  15. package/dist/bounded-path.js.map +1 -0
  16. package/dist/bounded.d.ts +47 -0
  17. package/dist/bounded.d.ts.map +1 -0
  18. package/dist/bounded.js +93 -0
  19. package/dist/bounded.js.map +1 -0
  20. package/dist/build-diagnostic.d.ts +89 -0
  21. package/dist/build-diagnostic.d.ts.map +1 -0
  22. package/dist/build-diagnostic.js +91 -0
  23. package/dist/build-diagnostic.js.map +1 -0
  24. package/dist/component-types.d.ts +61 -0
  25. package/dist/component-types.d.ts.map +1 -0
  26. package/dist/component-types.js +277 -0
  27. package/dist/component-types.js.map +1 -0
  28. package/dist/consent-text.d.ts +31 -0
  29. package/dist/consent-text.d.ts.map +1 -0
  30. package/dist/consent-text.js +41 -0
  31. package/dist/consent-text.js.map +1 -0
  32. package/dist/contract-version.d.ts +150 -0
  33. package/dist/contract-version.d.ts.map +1 -0
  34. package/dist/contract-version.js +198 -0
  35. package/dist/contract-version.js.map +1 -0
  36. package/dist/credential-fields.d.ts +31 -0
  37. package/dist/credential-fields.d.ts.map +1 -0
  38. package/dist/credential-fields.js +36 -0
  39. package/dist/credential-fields.js.map +1 -0
  40. package/dist/css-tokens.d.ts +46 -0
  41. package/dist/css-tokens.d.ts.map +1 -0
  42. package/dist/css-tokens.js +189 -0
  43. package/dist/css-tokens.js.map +1 -0
  44. package/dist/css-value.d.ts +42 -0
  45. package/dist/css-value.d.ts.map +1 -0
  46. package/dist/css-value.js +78 -0
  47. package/dist/css-value.js.map +1 -0
  48. package/dist/data-api.d.ts +127 -0
  49. package/dist/data-api.d.ts.map +1 -0
  50. package/dist/data-api.js +167 -0
  51. package/dist/data-api.js.map +1 -0
  52. package/dist/denylist-keys.d.ts +19 -0
  53. package/dist/denylist-keys.d.ts.map +1 -0
  54. package/dist/denylist-keys.js +48 -0
  55. package/dist/denylist-keys.js.map +1 -0
  56. package/dist/diagnostic-catalog.d.ts +1402 -0
  57. package/dist/diagnostic-catalog.d.ts.map +1 -0
  58. package/dist/diagnostic-catalog.js +1311 -0
  59. package/dist/diagnostic-catalog.js.map +1 -0
  60. package/dist/dom-members.snapshot.d.ts +33 -0
  61. package/dist/dom-members.snapshot.d.ts.map +1 -0
  62. package/dist/dom-members.snapshot.js +760 -0
  63. package/dist/dom-members.snapshot.js.map +1 -0
  64. package/dist/early-loading.d.ts +27 -0
  65. package/dist/early-loading.d.ts.map +1 -0
  66. package/dist/early-loading.js +44 -0
  67. package/dist/early-loading.js.map +1 -0
  68. package/dist/error-catalog.d.ts +749 -0
  69. package/dist/error-catalog.d.ts.map +1 -0
  70. package/dist/error-catalog.js +720 -0
  71. package/dist/error-catalog.js.map +1 -0
  72. package/dist/executable-config.d.ts +35 -0
  73. package/dist/executable-config.d.ts.map +1 -0
  74. package/dist/executable-config.js +44 -0
  75. package/dist/executable-config.js.map +1 -0
  76. package/dist/freeze.d.ts +17 -0
  77. package/dist/freeze.d.ts.map +1 -0
  78. package/dist/freeze.js +29 -0
  79. package/dist/freeze.js.map +1 -0
  80. package/dist/gunzip.d.ts +33 -0
  81. package/dist/gunzip.d.ts.map +1 -0
  82. package/dist/gunzip.js +330 -0
  83. package/dist/gunzip.js.map +1 -0
  84. package/dist/hostname.d.ts +74 -0
  85. package/dist/hostname.d.ts.map +1 -0
  86. package/dist/hostname.js +215 -0
  87. package/dist/hostname.js.map +1 -0
  88. package/dist/human-actions.d.ts +49 -0
  89. package/dist/human-actions.d.ts.map +1 -0
  90. package/dist/human-actions.js +272 -0
  91. package/dist/human-actions.js.map +1 -0
  92. package/dist/index.d.ts +73 -0
  93. package/dist/index.d.ts.map +1 -0
  94. package/dist/index.js +73 -0
  95. package/dist/index.js.map +1 -0
  96. package/dist/json-schema.d.ts +108 -0
  97. package/dist/json-schema.d.ts.map +1 -0
  98. package/dist/json-schema.js +240 -0
  99. package/dist/json-schema.js.map +1 -0
  100. package/dist/key-checksum.d.ts +33 -0
  101. package/dist/key-checksum.d.ts.map +1 -0
  102. package/dist/key-checksum.js +67 -0
  103. package/dist/key-checksum.js.map +1 -0
  104. package/dist/libraries.d.ts +60 -0
  105. package/dist/libraries.d.ts.map +1 -0
  106. package/dist/libraries.js +120 -0
  107. package/dist/libraries.js.map +1 -0
  108. package/dist/limit-catalog.d.ts +381 -0
  109. package/dist/limit-catalog.d.ts.map +1 -0
  110. package/dist/limit-catalog.js +429 -0
  111. package/dist/limit-catalog.js.map +1 -0
  112. package/dist/limits.d.ts +167 -0
  113. package/dist/limits.d.ts.map +1 -0
  114. package/dist/limits.js +175 -0
  115. package/dist/limits.js.map +1 -0
  116. package/dist/locale-tag.d.ts +21 -0
  117. package/dist/locale-tag.d.ts.map +1 -0
  118. package/dist/locale-tag.js +21 -0
  119. package/dist/locale-tag.js.map +1 -0
  120. package/dist/make-diagnostic.d.ts +74 -0
  121. package/dist/make-diagnostic.d.ts.map +1 -0
  122. package/dist/make-diagnostic.js +100 -0
  123. package/dist/make-diagnostic.js.map +1 -0
  124. package/dist/manifest-compat-diagnostics.d.ts +23 -0
  125. package/dist/manifest-compat-diagnostics.d.ts.map +1 -0
  126. package/dist/manifest-compat-diagnostics.js +150 -0
  127. package/dist/manifest-compat-diagnostics.js.map +1 -0
  128. package/dist/manifest-compat.d.ts +58 -0
  129. package/dist/manifest-compat.d.ts.map +1 -0
  130. package/dist/manifest-compat.js +377 -0
  131. package/dist/manifest-compat.js.map +1 -0
  132. package/dist/manifest.d.ts +1769 -0
  133. package/dist/manifest.d.ts.map +1 -0
  134. package/dist/manifest.js +421 -0
  135. package/dist/manifest.js.map +1 -0
  136. package/dist/metering.d.ts +126 -0
  137. package/dist/metering.d.ts.map +1 -0
  138. package/dist/metering.js +147 -0
  139. package/dist/metering.js.map +1 -0
  140. package/dist/migrate.d.ts +70 -0
  141. package/dist/migrate.d.ts.map +1 -0
  142. package/dist/migrate.js +159 -0
  143. package/dist/migrate.js.map +1 -0
  144. package/dist/money.d.ts +41 -0
  145. package/dist/money.d.ts.map +1 -0
  146. package/dist/money.js +52 -0
  147. package/dist/money.js.map +1 -0
  148. package/dist/names.d.ts +37 -0
  149. package/dist/names.d.ts.map +1 -0
  150. package/dist/names.js +55 -0
  151. package/dist/names.js.map +1 -0
  152. package/dist/overage-pricing.d.ts +89 -0
  153. package/dist/overage-pricing.d.ts.map +1 -0
  154. package/dist/overage-pricing.js +170 -0
  155. package/dist/overage-pricing.js.map +1 -0
  156. package/dist/plan-ids.d.ts +10 -0
  157. package/dist/plan-ids.d.ts.map +1 -0
  158. package/dist/plan-ids.js +8 -0
  159. package/dist/plan-ids.js.map +1 -0
  160. package/dist/plan-limits.d.ts +138 -0
  161. package/dist/plan-limits.d.ts.map +1 -0
  162. package/dist/plan-limits.js +112 -0
  163. package/dist/plan-limits.js.map +1 -0
  164. package/dist/plan-pricing.d.ts +145 -0
  165. package/dist/plan-pricing.d.ts.map +1 -0
  166. package/dist/plan-pricing.js +172 -0
  167. package/dist/plan-pricing.js.map +1 -0
  168. package/dist/plan-usage.d.ts +112 -0
  169. package/dist/plan-usage.d.ts.map +1 -0
  170. package/dist/plan-usage.js +134 -0
  171. package/dist/plan-usage.js.map +1 -0
  172. package/dist/preview-token.d.ts +52 -0
  173. package/dist/preview-token.d.ts.map +1 -0
  174. package/dist/preview-token.js +106 -0
  175. package/dist/preview-token.js.map +1 -0
  176. package/dist/prop-names.d.ts +51 -0
  177. package/dist/prop-names.d.ts.map +1 -0
  178. package/dist/prop-names.js +150 -0
  179. package/dist/prop-names.js.map +1 -0
  180. package/dist/prop-type-docs.d.ts +20 -0
  181. package/dist/prop-type-docs.d.ts.map +1 -0
  182. package/dist/prop-type-docs.js +89 -0
  183. package/dist/prop-type-docs.js.map +1 -0
  184. package/dist/prop-types.d.ts +97 -0
  185. package/dist/prop-types.d.ts.map +1 -0
  186. package/dist/prop-types.js +299 -0
  187. package/dist/prop-types.js.map +1 -0
  188. package/dist/props.d.ts +996 -0
  189. package/dist/props.d.ts.map +1 -0
  190. package/dist/props.js +183 -0
  191. package/dist/props.js.map +1 -0
  192. package/dist/proto-guard.d.ts +29 -0
  193. package/dist/proto-guard.d.ts.map +1 -0
  194. package/dist/proto-guard.js +79 -0
  195. package/dist/proto-guard.js.map +1 -0
  196. package/dist/runtime-errors.d.ts +42 -0
  197. package/dist/runtime-errors.d.ts.map +1 -0
  198. package/dist/runtime-errors.js +42 -0
  199. package/dist/runtime-errors.js.map +1 -0
  200. package/dist/runtime-pointers.d.ts +58 -0
  201. package/dist/runtime-pointers.d.ts.map +1 -0
  202. package/dist/runtime-pointers.js +84 -0
  203. package/dist/runtime-pointers.js.map +1 -0
  204. package/dist/secret-scan.d.ts +191 -0
  205. package/dist/secret-scan.d.ts.map +1 -0
  206. package/dist/secret-scan.js +542 -0
  207. package/dist/secret-scan.js.map +1 -0
  208. package/dist/semver.d.ts +89 -0
  209. package/dist/semver.d.ts.map +1 -0
  210. package/dist/semver.js +400 -0
  211. package/dist/semver.js.map +1 -0
  212. package/dist/server-key.d.ts +68 -0
  213. package/dist/server-key.d.ts.map +1 -0
  214. package/dist/server-key.js +150 -0
  215. package/dist/server-key.js.map +1 -0
  216. package/dist/site-manifest-keys.d.ts +107 -0
  217. package/dist/site-manifest-keys.d.ts.map +1 -0
  218. package/dist/site-manifest-keys.js +146 -0
  219. package/dist/site-manifest-keys.js.map +1 -0
  220. package/dist/site-manifest.d.ts +286 -0
  221. package/dist/site-manifest.d.ts.map +1 -0
  222. package/dist/site-manifest.js +100 -0
  223. package/dist/site-manifest.js.map +1 -0
  224. package/dist/source-archive.d.ts +119 -0
  225. package/dist/source-archive.d.ts.map +1 -0
  226. package/dist/source-archive.js +644 -0
  227. package/dist/source-archive.js.map +1 -0
  228. package/dist/source-package-corpus.d.ts +55 -0
  229. package/dist/source-package-corpus.d.ts.map +1 -0
  230. package/dist/source-package-corpus.js +303 -0
  231. package/dist/source-package-corpus.js.map +1 -0
  232. package/dist/source-package.d.ts +227 -0
  233. package/dist/source-package.d.ts.map +1 -0
  234. package/dist/source-package.js +361 -0
  235. package/dist/source-package.js.map +1 -0
  236. package/dist/source-secrets.d.ts +21 -0
  237. package/dist/source-secrets.d.ts.map +1 -0
  238. package/dist/source-secrets.js +43 -0
  239. package/dist/source-secrets.js.map +1 -0
  240. package/dist/ssr-cap.d.ts +61 -0
  241. package/dist/ssr-cap.d.ts.map +1 -0
  242. package/dist/ssr-cap.js +107 -0
  243. package/dist/ssr-cap.js.map +1 -0
  244. package/dist/ssr-kv.d.ts +18 -0
  245. package/dist/ssr-kv.d.ts.map +1 -0
  246. package/dist/ssr-kv.js +18 -0
  247. package/dist/ssr-kv.js.map +1 -0
  248. package/dist/ssr-version-ledger.d.ts +53 -0
  249. package/dist/ssr-version-ledger.d.ts.map +1 -0
  250. package/dist/ssr-version-ledger.js +88 -0
  251. package/dist/ssr-version-ledger.js.map +1 -0
  252. package/dist/style-references.d.ts +58 -0
  253. package/dist/style-references.d.ts.map +1 -0
  254. package/dist/style-references.js +241 -0
  255. package/dist/style-references.js.map +1 -0
  256. package/dist/tag-name.d.ts +87 -0
  257. package/dist/tag-name.d.ts.map +1 -0
  258. package/dist/tag-name.js +222 -0
  259. package/dist/tag-name.js.map +1 -0
  260. package/dist/tar-writer.d.ts +74 -0
  261. package/dist/tar-writer.d.ts.map +1 -0
  262. package/dist/tar-writer.js +148 -0
  263. package/dist/tar-writer.js.map +1 -0
  264. package/dist/testing.d.ts +11 -0
  265. package/dist/testing.d.ts.map +1 -0
  266. package/dist/testing.js +11 -0
  267. package/dist/testing.js.map +1 -0
  268. package/dist/text-codec.d.ts +36 -0
  269. package/dist/text-codec.d.ts.map +1 -0
  270. package/dist/text-codec.js +32 -0
  271. package/dist/text-codec.js.map +1 -0
  272. package/dist/url-value.d.ts +41 -0
  273. package/dist/url-value.d.ts.map +1 -0
  274. package/dist/url-value.js +147 -0
  275. package/dist/url-value.js.map +1 -0
  276. package/dist/usage-guard.d.ts +99 -0
  277. package/dist/usage-guard.d.ts.map +1 -0
  278. package/dist/usage-guard.js +104 -0
  279. package/dist/usage-guard.js.map +1 -0
  280. package/dist/usage-mirror.d.ts +55 -0
  281. package/dist/usage-mirror.d.ts.map +1 -0
  282. package/dist/usage-mirror.js +52 -0
  283. package/dist/usage-mirror.js.map +1 -0
  284. package/dist/value-check.d.ts +88 -0
  285. package/dist/value-check.d.ts.map +1 -0
  286. package/dist/value-check.js +279 -0
  287. package/dist/value-check.js.map +1 -0
  288. package/dist/value-patterns.d.ts +9 -0
  289. package/dist/value-patterns.d.ts.map +1 -0
  290. package/dist/value-patterns.js +17 -0
  291. package/dist/value-patterns.js.map +1 -0
  292. package/dist/value-schema.d.ts +796 -0
  293. package/dist/value-schema.d.ts.map +1 -0
  294. package/dist/value-schema.js +231 -0
  295. package/dist/value-schema.js.map +1 -0
  296. package/dist/zod-free.d.ts +60 -0
  297. package/dist/zod-free.d.ts.map +1 -0
  298. package/dist/zod-free.js +59 -0
  299. package/dist/zod-free.js.map +1 -0
  300. package/package.json +75 -3
  301. package/schema/DEPLOYED +12 -0
  302. package/schema/build-diagnostic.v1.json +63 -0
  303. package/schema/component-manifest.v1.json +1000 -0
  304. package/schema/data-api.v1.json +194 -0
  305. package/schema/library-manifest.v1.json +60 -0
  306. package/schema/published/SHA256SUMS +36 -0
  307. package/schema/published/build-diagnostic/v1.10.json +83 -0
  308. package/schema/published/build-diagnostic/v1.3.json +83 -0
  309. package/schema/published/build-diagnostic/v1.4.json +83 -0
  310. package/schema/published/build-diagnostic/v1.5.json +83 -0
  311. package/schema/published/build-diagnostic/v1.6.json +83 -0
  312. package/schema/published/build-diagnostic/v1.7.json +83 -0
  313. package/schema/published/build-diagnostic/v1.8.json +83 -0
  314. package/schema/published/build-diagnostic/v1.9.json +83 -0
  315. package/schema/published/component-manifest/v1.10.json +1443 -0
  316. package/schema/published/component-manifest/v1.3.json +1411 -0
  317. package/schema/published/component-manifest/v1.4.json +1419 -0
  318. package/schema/published/component-manifest/v1.5.json +1437 -0
  319. package/schema/published/component-manifest/v1.6.json +1437 -0
  320. package/schema/published/component-manifest/v1.7.json +1437 -0
  321. package/schema/published/component-manifest/v1.8.json +1437 -0
  322. package/schema/published/component-manifest/v1.9.json +1437 -0
  323. package/schema/published/data-api/v1.10.json +282 -0
  324. package/schema/published/data-api/v1.3.json +281 -0
  325. package/schema/published/data-api/v1.4.json +281 -0
  326. package/schema/published/data-api/v1.5.json +281 -0
  327. package/schema/published/data-api/v1.6.json +281 -0
  328. package/schema/published/data-api/v1.7.json +281 -0
  329. package/schema/published/data-api/v1.8.json +282 -0
  330. package/schema/published/data-api/v1.9.json +282 -0
  331. package/schema/published/library-manifest/v1.10.json +68 -0
  332. package/schema/published/library-manifest/v1.5.json +68 -0
  333. package/schema/published/library-manifest/v1.6.json +68 -0
  334. package/schema/published/library-manifest/v1.7.json +68 -0
  335. package/schema/published/library-manifest/v1.8.json +68 -0
  336. package/schema/published/library-manifest/v1.9.json +68 -0
  337. package/schema/published/taggor-config/v1.10.json +56 -0
  338. package/schema/published/taggor-config/v1.5.json +56 -0
  339. package/schema/published/taggor-config/v1.6.json +56 -0
  340. package/schema/published/taggor-config/v1.7.json +56 -0
  341. package/schema/published/taggor-config/v1.8.json +56 -0
  342. package/schema/published/taggor-config/v1.9.json +56 -0
  343. package/schema/taggor-config.v1.json +39 -0
@@ -0,0 +1,720 @@
1
+ /** Base of every `docs_url` of an API or CLI error: the code's page on the docs site (E20). */
2
+ export const ERROR_DOCS_BASE_URL = "https://docs.taggor.dev/errors/";
3
+ /** Format of an API error code. */
4
+ export const API_ERROR_CODE_PATTERN = /^[a-z]+(_[a-z]+)*$/;
5
+ /** Format of a CLI error code: the message key, `area.name`. */
6
+ export const CLI_ERROR_CODE_PATTERN = /^[a-z]+\.[A-Za-z]+$/;
7
+ /**
8
+ * Inputs: any entry with a hint. Output: true when both locales have non-blank text.
9
+ * Errors: none. Side effects: none.
10
+ */
11
+ export function hasErrorHint(entry) {
12
+ return entry.hint.en.trim().length > 0 && entry.hint["pt-BR"].trim().length > 0;
13
+ }
14
+ /**
15
+ * The docs page of an error code.
16
+ * Inputs: an API or CLI error code. Output: its absolute URL. Errors: none. Side effects: none.
17
+ */
18
+ export function errorDocsUrl(code) {
19
+ return `${ERROR_DOCS_BASE_URL}${code}`;
20
+ }
21
+ /** Shorthand for a `LocalizedText`, to keep the table below readable. */
22
+ const text = (en, ptBR) => ({ en, "pt-BR": ptBR });
23
+ /** Every error code of the API, with status, title and hint. */
24
+ export const apiErrorCatalog = {
25
+ validation_failed: {
26
+ status: 400,
27
+ title: "Request validation failed",
28
+ hint: text("Fix each field listed in errors[] (location and JSON Pointer) and send the request again.", "Corrija cada campo listado em errors[] (local e JSON Pointer) e envie a requisição de novo."),
29
+ },
30
+ malformed_request: {
31
+ status: 400,
32
+ title: "Malformed request",
33
+ hint: text("Send a well-formed body (valid JSON, matching Content-Type) and try again.", "Envie um corpo bem formado (JSON válido, com o Content-Type correspondente) e tente de novo."),
34
+ },
35
+ unauthenticated: {
36
+ status: 401,
37
+ title: "Authentication required",
38
+ hint: text("Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.", "Envie uma chave de API válida em `Authorization: Bearer <chave>`, ou rode `taggor login`."),
39
+ },
40
+ cross_site_request: {
41
+ status: 403,
42
+ title: "Cross-site request refused",
43
+ hint: text("Make the request from the portal's own origin, or use an API key instead of a session cookie.", "Faça a requisição a partir da origem do próprio portal, ou use uma chave de API em vez do cookie de sessão."),
44
+ },
45
+ workspace_suspended: {
46
+ status: 403,
47
+ title: "The workspace is suspended",
48
+ hint: text("Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. Write to support to ask for a review; use another workspace in the meantime.", "A Taggor suspendeu este workspace: as chaves, as sessões e a publicação estão recusadas e os sites não entregam nada. Seus dados foram mantidos. Escreva ao suporte para pedir revisão; use outro workspace enquanto isso."),
49
+ },
50
+ component_disabled: {
51
+ status: 403,
52
+ title: "The component is disabled",
53
+ hint: text("Taggor disabled this component, so it is not delivered and no new version of it is accepted. Your data is kept. Write to support to ask for a review.", "A Taggor desativou este componente: ele não é entregue e nenhuma versão nova é aceita. Seus dados foram mantidos. Escreva ao suporte para pedir revisão."),
54
+ },
55
+ suspension_state_changed: {
56
+ status: 409,
57
+ title: "The workspace's suspension changed during the walk",
58
+ hint: text("Another operator suspended or lifted this workspace while a multi-page call was under way, so this page did nothing. Check the workspace state, then start again without `after`.", "Outro operador suspendeu ou levantou este workspace durante uma chamada em várias páginas, então esta página não fez nada. Confira o estado do workspace e recomece sem `after`."),
59
+ },
60
+ captcha_failed: {
61
+ status: 403,
62
+ title: "The human check failed",
63
+ hint: text("The Turnstile token is missing, expired or already used. Solve the check again and send the report once more; the token is single use.", "O token do Turnstile está ausente, expirou ou já foi usado. Resolva a verificação de novo e envie a denúncia mais uma vez; o token vale uma vez só."),
64
+ },
65
+ abuse_reports_unavailable: {
66
+ status: 503,
67
+ title: "The abuse report channel is temporarily unavailable",
68
+ hint: text("Nothing was recorded. Retry after the Retry-After seconds; if it keeps failing, write to the abuse contact the policy page lists.", "Nada foi registrado. Tente de novo depois dos segundos de Retry-After; se continuar falhando, escreva ao contato de abuso que a página da política indica."),
69
+ },
70
+ abuse_case_closed: {
71
+ status: 409,
72
+ title: "The abuse case is already closed",
73
+ hint: text("A closed case is never rewritten. If the report was wrong or new facts arrived, a new report opens a new case.", "Um caso encerrado nunca é reescrito. Se a denúncia estava errada ou surgiram fatos novos, uma nova denúncia abre um novo caso."),
74
+ },
75
+ usage_flag_reviewed: {
76
+ status: 409,
77
+ title: "The usage flag is already closed",
78
+ hint: text("A verdict is never rewritten. If it was wrong, a later spike of the same site opens a new flag; ask the platform team to record the correction.", "Um veredito nunca é reescrito. Se estava errado, um novo pico do mesmo site abre outro alerta; peça à equipe da plataforma para registrar a correção."),
79
+ },
80
+ insufficient_scope: {
81
+ status: 403,
82
+ title: "The credential lacks a required scope",
83
+ hint: text("Create an API key with the scope this route needs (see the route's documentation) and use it.", "Crie uma chave de API com o escopo que esta rota exige (veja a documentação da rota) e use-a."),
84
+ },
85
+ permission_denied: {
86
+ status: 403,
87
+ title: "The workspace role does not permit this action",
88
+ hint: text("Ask a workspace owner or admin to do this, or to raise your role.", "Peça a um proprietário ou administrador do workspace para fazer isto, ou para elevar o seu papel."),
89
+ },
90
+ human_action_required: {
91
+ status: 403,
92
+ title: "This action is for a person in the portal",
93
+ hint: text("Do not retry. Tell the person to do it in the portal: the response names the page (`human_action.portal_path`) and the steps. Credentials, payment, legal acceptance, deleting the workspace and changing the owner are never done by an agent.", "Não tente de novo. Diga à pessoa para fazer isso no portal: a resposta informa a página (`human_action.portal_path`) e os passos. Credenciais, pagamento, aceite legal, apagar o workspace e trocar o dono nunca são feitos por um agente."),
94
+ },
95
+ api_key_creation_requires_session: {
96
+ status: 403,
97
+ title: "Only a portal session creates API keys",
98
+ hint: text("Create the API key in the portal (Settings, API keys), then use it here.", "Crie a chave de API no portal (Configurações, Chaves de API) e use-a aqui."),
99
+ },
100
+ api_key_scope_exceeds_role: {
101
+ status: 403,
102
+ title: "The requested scopes exceed the creator's workspace role",
103
+ hint: text("Request only scopes your workspace role allows, or ask an owner to create the key.", "Peça só escopos que o seu papel no workspace permite, ou peça a um proprietário para criar a chave."),
104
+ },
105
+ user_preferences_require_session: {
106
+ status: 403,
107
+ title: "User preferences require a portal session",
108
+ hint: text("Change preferences from the portal while signed in; API keys cannot.", "Altere as preferências no portal, com login; chaves de API não podem."),
109
+ },
110
+ user_sessions_require_portal: {
111
+ status: 403,
112
+ title: "Session management requires a portal session",
113
+ hint: text("Manage sessions from the portal while signed in; API keys cannot.", "Gerencie as sessões no portal, com login; chaves de API não podem."),
114
+ },
115
+ session_not_found: {
116
+ status: 404,
117
+ title: "Session not found",
118
+ hint: text("List your sessions again and use an id from that list; it may already be revoked.", "Liste suas sessões de novo e use um id dessa lista; ela pode já ter sido revogada."),
119
+ },
120
+ invitation_role_exceeds_role: {
121
+ status: 403,
122
+ title: "The invitation's role is above the sender's own role",
123
+ hint: text("Invite with a role equal to or below yours, or ask an owner to send it.", "Convide com um papel igual ou abaixo do seu, ou peça a um proprietário para enviar."),
124
+ },
125
+ invitation_email_mismatch: {
126
+ status: 403,
127
+ title: "The signed-in e-mail is not the one the invitation is for",
128
+ hint: text("Sign in with the e-mail address the invitation was sent to, or ask for a new invitation.", "Entre com o e-mail para o qual o convite foi enviado, ou peça um novo convite."),
129
+ },
130
+ invitation_requires_session: {
131
+ status: 403,
132
+ title: "Only a portal session accepts invitations",
133
+ hint: text("Open the invitation link in the portal and accept it while signed in.", "Abra o link do convite no portal e aceite com login."),
134
+ },
135
+ invitation_unavailable: {
136
+ status: 410,
137
+ title: "The invitation can no longer be accepted",
138
+ hint: text("Ask the workspace admin to send a new invitation; this one expired or was revoked.", "Peça ao administrador do workspace um novo convite; este expirou ou foi revogado."),
139
+ },
140
+ invitation_already_pending: {
141
+ status: 409,
142
+ title: "This address already has a pending invitation",
143
+ hint: text("Wait for the person to accept, or revoke the pending invitation before sending another.", "Espere a pessoa aceitar, ou revogue o convite pendente antes de enviar outro."),
144
+ },
145
+ invitee_already_member: {
146
+ status: 409,
147
+ title: "This address already belongs to a member",
148
+ hint: text("Change the member's role instead of inviting again.", "Altere o papel do membro em vez de convidar de novo."),
149
+ },
150
+ invitation_not_pending: {
151
+ status: 409,
152
+ title: "The invitation is no longer pending",
153
+ hint: text("List the invitations to see its current state; send a new one if it was revoked or expired.", "Liste os convites para ver o estado atual; envie um novo se foi revogado ou expirou."),
154
+ },
155
+ invitation_quota_exceeded: {
156
+ status: 429,
157
+ title: "Too many invitations sent today in this workspace",
158
+ hint: text("Try again tomorrow, or revoke pending invitations nobody will accept.", "Tente de novo amanhã, ou revogue convites pendentes que ninguém vai aceitar."),
159
+ },
160
+ notification_quota_exceeded: {
161
+ status: 429,
162
+ title: "The confirmation could not be requested now",
163
+ hint: text("The notification settings were saved; try again later. Workspace members can be recipients without a confirmation.", "A configuração foi salva; tente de novo mais tarde. Membros do workspace podem ser destinatários sem confirmação."),
164
+ },
165
+ notification_token_invalid: {
166
+ status: 404,
167
+ title: "The notification link is not valid",
168
+ hint: text("Ask a workspace owner or admin to save the notification settings again to get a new confirmation e-mail; an unsubscribe link of a newer e-mail also works.", "Peça a quem é dono ou admin do workspace para salvar a configuração de avisos de novo e gerar outro e-mail de confirmação; o link de descadastro de um e-mail mais novo também serve."),
169
+ },
170
+ owner_transfer_unavailable: {
171
+ status: 410,
172
+ title: "The ownership offer can no longer be accepted",
173
+ hint: text("Ask the current owner to send a new offer in Settings; this one expired, was canceled, was already used or no longer fits the workspace.", "Peça ao dono atual uma nova oferta em Configurações; esta expirou, foi cancelada, já foi usada ou não vale mais para o workspace."),
174
+ },
175
+ owner_transfer_already_pending: {
176
+ status: 409,
177
+ title: "The workspace already has a pending ownership offer",
178
+ hint: text("Cancel the pending offer in Settings, or wait for it to expire, before offering again.", "Cancele a oferta pendente em Configurações, ou espere ela expirar, antes de oferecer de novo."),
179
+ },
180
+ owner_transfer_not_ready: {
181
+ status: 409,
182
+ title: "The ownership offer cannot be accepted yet",
183
+ hint: text("Open the link again after the time the e-mail gives (ready_at): offers wait before they can be accepted, so the current owner can cancel one made by mistake or by someone else.", "Abra o link de novo depois do horário que o e-mail informa (ready_at): as ofertas esperam antes de poderem ser aceitas, para o dono atual poder cancelar uma feita por engano ou por outra pessoa."),
184
+ },
185
+ owner_recently_changed: {
186
+ status: 409,
187
+ title: "The workspace changed owner recently",
188
+ hint: text("A deletion cannot be requested for 7 days after the owner changed. Try again after that, or contact Taggor support if the change was not expected.", "Não dá para pedir a exclusão por 7 dias depois da troca de dono. Tente de novo depois disso, ou fale com o suporte da Taggor se a troca não era esperada."),
189
+ },
190
+ workspace_has_subscription: {
191
+ status: 409,
192
+ title: "The workspace still has a subscription",
193
+ hint: text("Cancel the subscription in Settings, Plan and billing (the Stripe portal) first, then request the deletion.", "Cancele a assinatura em Configurações, Plano e cobrança (o portal da Stripe) antes, e então peça a exclusão."),
194
+ },
195
+ lifecycle_rate_limited: {
196
+ status: 429,
197
+ title: "Too many deletion requests or ownership offers today",
198
+ hint: text("A workspace can make 5 deletion requests and 5 ownership offers a day; try again tomorrow (UTC).", "Um workspace pode fazer 5 pedidos de exclusão e 5 ofertas de posse por dia; tente de novo amanhã (UTC)."),
199
+ },
200
+ workspace_deletion_scheduled: {
201
+ status: 409,
202
+ title: "The workspace is scheduled for deletion",
203
+ hint: text("Cancel the deletion in Settings during the grace period first; a workspace scheduled for deletion cannot be handed over, and it cannot be scheduled twice.", "Cancele a exclusão em Configurações durante a carência antes; um workspace marcado para exclusão não pode ser transferido, e não pode ser marcado duas vezes."),
204
+ },
205
+ email_unavailable: {
206
+ status: 503,
207
+ title: "E-mail cannot be sent in this environment",
208
+ hint: text("Share the invitation link yourself, or retry in an environment that sends e-mail.", "Compartilhe o link do convite você mesmo, ou tente de novo em um ambiente que envie e-mail."),
209
+ },
210
+ session_required: {
211
+ status: 403,
212
+ title: "This route needs a portal session",
213
+ hint: text("Do this from the portal while signed in; API keys cannot call this route.", "Faça isto no portal, com login; chaves de API não podem chamar esta rota."),
214
+ },
215
+ invalid_preferences: {
216
+ status: 422,
217
+ title: "User preferences are invalid",
218
+ hint: text("Send only the preference keys and values the documentation lists.", "Envie só as chaves e valores de preferência que a documentação lista."),
219
+ },
220
+ legal_versions_changed: {
221
+ status: 409,
222
+ title: "The legal texts changed while the page was open",
223
+ hint: text("Read the current Terms and Privacy Policy that the response names, then accept again.", "Leia os Termos e a Política de Privacidade vigentes que a resposta informa e aceite de novo."),
224
+ },
225
+ invalid_login_state: {
226
+ status: 400,
227
+ title: "Invalid or expired login",
228
+ hint: text("Start the sign-in again from the beginning; do not reuse an old login link.", "Comece o login de novo desde o início; não reutilize um link de login antigo."),
229
+ },
230
+ login_failed: {
231
+ status: 400,
232
+ title: "Login failed",
233
+ hint: text("Start the sign-in again; if it keeps failing, contact support with the request_id.", "Comece o login de novo; se continuar falhando, fale com o suporte com o request_id."),
234
+ },
235
+ identity_provider_unavailable: {
236
+ status: 503,
237
+ title: "Sign-in is not available",
238
+ hint: text("Wait a minute and try again; the sign-in provider did not answer.", "Espere um minuto e tente de novo; o provedor de login não respondeu."),
239
+ },
240
+ not_found: {
241
+ status: 404,
242
+ title: "Resource not found",
243
+ hint: text("Check the id or path, and that you are in the right workspace; list the resources to find it.", "Confira o id ou o caminho e se você está no workspace certo; liste os recursos para achá-lo."),
244
+ },
245
+ method_not_allowed: {
246
+ status: 405,
247
+ title: "Method not allowed",
248
+ hint: text("Use one of the methods in the Allow response header.", "Use um dos métodos do cabeçalho de resposta Allow."),
249
+ },
250
+ unsupported_media_type: {
251
+ status: 415,
252
+ title: "Unsupported media type",
253
+ hint: text("Send the body with the Content-Type the route documents (usually application/json).", "Envie o corpo com o Content-Type que a rota documenta (em geral application/json)."),
254
+ },
255
+ request_rejected: {
256
+ status: 400,
257
+ title: "Request rejected",
258
+ hint: text("Read the detail, fix the request accordingly and send it again.", "Leia o detail, corrija a requisição conforme ele diz e envie de novo."),
259
+ },
260
+ rate_limited: {
261
+ status: 429,
262
+ title: "Too many requests",
263
+ hint: text("Wait for the number of seconds in the Retry-After header, then retry with backoff.", "Espere o número de segundos do cabeçalho Retry-After e tente de novo com backoff."),
264
+ },
265
+ client_has_sites: {
266
+ status: 409,
267
+ title: "The client still has sites",
268
+ hint: text("Move the client's sites to another client or delete them, then delete the client again.", "Mova os sites do cliente para outro cliente ou apague-os, e apague o cliente de novo."),
269
+ },
270
+ rate_limiter_unavailable: {
271
+ status: 503,
272
+ title: "Rate limiting is temporarily unavailable",
273
+ hint: text("Retry after a few seconds with backoff; nothing in your request needs to change.", "Tente de novo em alguns segundos, com backoff; nada na sua requisição precisa mudar."),
274
+ },
275
+ invalid_cursor: {
276
+ status: 400,
277
+ title: "Invalid pagination cursor",
278
+ hint: text("Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.", "Passe o next_cursor da página anterior sem alterar, ou tire o cursor para recomeçar."),
279
+ },
280
+ idempotency_request_in_progress: {
281
+ status: 409,
282
+ title: "A request with this idempotency key is in progress",
283
+ hint: text("Wait a few seconds and send the same request with the same key again to get its result.", "Espere alguns segundos e envie a mesma requisição com a mesma chave para obter o resultado."),
284
+ },
285
+ idempotency_key_reused: {
286
+ status: 422,
287
+ title: "Idempotency key reused with a different request",
288
+ hint: text("Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.", "Use uma nova Idempotency-Key para outra requisição; reuse a chave só para repetir a mesma."),
289
+ },
290
+ build_not_publishable: {
291
+ status: 409,
292
+ title: "The build cannot become a version",
293
+ hint: text("Read the build's diagnostics (`taggor logs`), fix the source and publish again.", "Leia os diagnósticos do build (`taggor logs`), corrija o fonte e publique de novo."),
294
+ },
295
+ version_already_exists: {
296
+ status: 409,
297
+ title: "The version already exists",
298
+ hint: text("Raise the semver in taggor.json and publish again; a published version never changes.", "Aumente o semver no taggor.json e publique de novo; uma versão publicada nunca muda."),
299
+ },
300
+ invalid_tag_name: {
301
+ status: 400,
302
+ title: "The tag name is not a valid custom element name",
303
+ hint: text("Use lowercase letters, digits and hyphens, with at least one hyphen (`my-form`).", "Use letras minúsculas, dígitos e hífens, com pelo menos um hífen (`meu-form`)."),
304
+ },
305
+ component_already_exists: {
306
+ status: 409,
307
+ title: "The workspace already has a component with this tag",
308
+ hint: text("Publish a new version of the existing component, or choose another tag name.", "Publique uma nova versão do componente existente, ou escolha outro nome de tag."),
309
+ },
310
+ tag_conflict: {
311
+ status: 409,
312
+ title: "Two components of the site use the same Custom Element tag",
313
+ hint: text("Detach one of the two components from the site, or rename the tag of one of them.", "Desanexe um dos dois componentes do site, ou renomeie a tag de um deles."),
314
+ },
315
+ component_archived: {
316
+ status: 409,
317
+ title: "The component is archived",
318
+ hint: text("Restore the component in the portal before changing it, or use another component.", "Restaure o componente no portal antes de alterá-lo, ou use outro componente."),
319
+ },
320
+ version_not_ready: {
321
+ status: 409,
322
+ title: "The version's build did not succeed",
323
+ hint: text("Fix the build errors, publish a new version and use that one.", "Corrija os erros do build, publique uma nova versão e use essa."),
324
+ },
325
+ breaking_change_not_allowed: {
326
+ status: 409,
327
+ title: "The version breaks the one in production",
328
+ hint: text("Raise the major version, or remove the breaking change (props, events or parts removed or retyped).", "Aumente a versão major, ou desfaça a mudança incompatível (props, eventos ou partes removidos ou com tipo trocado)."),
329
+ },
330
+ no_previous_version: {
331
+ status: 409,
332
+ title: "The channel has no earlier version to go back to",
333
+ hint: text("Promote a specific version to the channel instead of rolling back.", "Promova uma versão específica para o canal em vez de reverter."),
334
+ },
335
+ channel_moved: {
336
+ status: 409,
337
+ title: "The channel no longer points to the version the request expected",
338
+ hint: text("Read the channel again (GET the component's channels) and decide on what it serves now; send that version as expected_from_version_id if you still want to roll back.", "Leia o canal de novo (GET dos canais do componente) e decida sobre o que ele serve agora; mande essa versão como expected_from_version_id se ainda quiser reverter."),
339
+ },
340
+ site_component_limit: {
341
+ status: 409,
342
+ title: "The site already has the most components its plan allows",
343
+ hint: text("Detach a component the site no longer needs, or move the workspace to a plan with a higher limit (the problem's upgrade_url), then attach again. The components already attached keep working.", "Desanexe um componente que o site não usa mais, ou mude o workspace para um plano com limite maior (o upgrade_url do problema), e anexe de novo. Os componentes já anexados continuam funcionando."),
344
+ },
345
+ member_limit_reached: {
346
+ status: 409,
347
+ title: "The workspace has no member seat left on its plan",
348
+ hint: text("Remove a member or revoke a pending invitation, or move the workspace to a plan with more members (the problem's upgrade_url), then invite again. Members already in the workspace keep their access.", "Remova um membro ou revogue um convite pendente, ou mude o workspace para um plano com mais membros (o upgrade_url do problema), e convide de novo. Quem já é membro mantém o acesso."),
349
+ },
350
+ site_props_invalid: {
351
+ status: 422,
352
+ title: "The site's props do not fit the component",
353
+ hint: text("Fix each path listed in errors (a prop the component declares, with a value of its type) and send the props again.", "Corrija cada caminho listado em errors (uma prop que o componente declara, com um valor do tipo dela) e envie as props de novo."),
354
+ },
355
+ site_props_incompatible: {
356
+ status: 409,
357
+ title: "The site's saved props do not fit the new version",
358
+ hint: text("Save props that fit the new version with PUT on the site's component props, or promote again with force_drop_invalid to drop only the invalid fields; until then the site keeps the version it had.", "Salve props que sirvam à nova versão com PUT nas props do componente do site, ou promova de novo com force_drop_invalid para remover só os campos inválidos; até lá o site mantém a versão que tinha."),
359
+ },
360
+ site_props_conflict: {
361
+ status: 409,
362
+ title: "The site's props changed since they were read",
363
+ hint: text("Read the site's components again (GET), apply your change to the props it shows now and send the PUT with the new props_revision as expected_props_revision.", "Leia os componentes do site de novo (GET), aplique sua mudança sobre as props que ele mostra agora e mande o PUT com o novo props_revision em expected_props_revision."),
364
+ },
365
+ channel_has_no_version: {
366
+ status: 409,
367
+ title: "The channel has no version yet",
368
+ hint: text("Promote a version to the channel the site uses, then save the props.", "Promova uma versão para o canal que o site usa e salve as props depois."),
369
+ },
370
+ plan_limit_reached: {
371
+ status: 402,
372
+ title: "The workspace reached a limit of its plan",
373
+ hint: text("Delete what the workspace no longer uses (for a site limit, a site it does not need), or move to a higher plan with the `upgrade_url` of the problem. Nothing was created.", "Exclua o que o workspace não usa mais (no limite de sites, um site de que não precisa) ou passe para um plano maior pelo `upgrade_url` do problema. Nada foi criado."),
374
+ },
375
+ invalid_webhook_signature: {
376
+ status: 400,
377
+ title: "The webhook signature is invalid",
378
+ hint: text("Only Stripe calls this endpoint. If you are Stripe's delivery, check that the endpoint's signing secret in the dashboard is the one this environment holds and that the body reaches Taggor unchanged; Stripe retries on its own.", "Só o Stripe chama este endpoint. Se é uma entrega do Stripe, confira se o segredo de assinatura do endpoint no painel é o que este ambiente guarda e se o corpo chega ao Taggor sem alteração; o Stripe repete sozinho."),
379
+ },
380
+ billing_conflict: {
381
+ status: 409,
382
+ title: "The billing request does not fit the workspace's billing state",
383
+ hint: text("Read `detail`: the workspace already has a subscription (manage it in the customer portal), has no billing account yet (start a checkout first) or already used its trial. Nothing was created.", "Leia `detail`: o workspace já tem uma assinatura (gerencie no portal do cliente), ainda não tem conta de cobrança (comece por um checkout) ou já usou o teste. Nada foi criado."),
384
+ },
385
+ billing_unavailable: {
386
+ status: 503,
387
+ title: "Billing is temporarily unavailable",
388
+ hint: text("Nothing was charged or changed. Retry after a short wait; if it persists, write to support with the request id.", "Nada foi cobrado nem alterado. Tente de novo depois de um instante; se persistir, escreva ao suporte com o id da requisição."),
389
+ },
390
+ retention_exceeds_plan: {
391
+ status: 422,
392
+ title: "A collection cannot keep submissions longer than the plan does",
393
+ hint: text("Ask for no more days than the `limit` of the problem (what the plan keeps), or move to a higher plan with its `upgrade_url`. Asking for fewer days is always accepted.", "Peça no máximo os dias do `limit` do problema (o que o plano guarda) ou passe para um plano maior pelo `upgrade_url`. Pedir menos dias é sempre aceito."),
394
+ },
395
+ api_key_in_use: {
396
+ status: 409,
397
+ title: "An API key cannot revoke itself",
398
+ hint: text("Revoke this key with another credential (another key or the portal).", "Revogue esta chave com outra credencial (outra chave ou o portal)."),
399
+ },
400
+ api_key_quota_exceeded: {
401
+ status: 409,
402
+ title: "The workspace reached its limit of active API keys",
403
+ hint: text("Revoke a key you no longer use (`DELETE /v1/api-keys/{id}`), then create the new one; or ask for a higher plan.", "Revogue uma chave que você não usa mais (`DELETE /v1/api-keys/{id}`) e crie a nova; ou peça um plano maior."),
404
+ },
405
+ server_key_limit_reached: {
406
+ status: 409,
407
+ title: "The site already holds its two SSR server keys",
408
+ hint: text("Revoke the key your servers no longer send (`DELETE /v1/sites/{site_id}/server-keys/{key_id}`), then create the new one.", "Revogue a chave que seus servidores não enviam mais (`DELETE /v1/sites/{site_id}/server-keys/{key_id}`) e crie a nova."),
409
+ },
410
+ semver_bump_too_small: {
411
+ status: 409,
412
+ title: "The semver is too small for the manifest changes",
413
+ hint: text("Raise the semver as far as the detail says (minor for additions, major for breaking changes) and publish again.", "Aumente o semver até onde o detail diz (minor para adições, major para mudanças incompatíveis) e publique de novo."),
414
+ },
415
+ breaking_collection_change: {
416
+ status: 409,
417
+ title: "The version breaks the schema of a collection that holds data",
418
+ hint: text("Keep existing collection fields and their types, adding only optional fields; or export and delete the data first.", "Mantenha os campos da coleção e seus tipos, adicionando só campos opcionais; ou exporte e apague os dados antes."),
419
+ },
420
+ payload_too_large: {
421
+ status: 413,
422
+ title: "The request body is too large",
423
+ hint: text("Send a smaller body; for a component, pack only src/, taggor.json and package.json.", "Envie um corpo menor; para um componente, empacote só src/, taggor.json e package.json."),
424
+ },
425
+ source_package_invalid: {
426
+ status: 422,
427
+ title: "The source package is not valid",
428
+ hint: text("Read the diagnostics in errors, fix the package (or let `taggor publish` pack it) and send it again.", "Leia os diagnósticos em errors, corrija o pacote (ou deixe o `taggor publish` empacotar) e envie de novo."),
429
+ },
430
+ conversion_event_not_in_manifest: {
431
+ status: 422,
432
+ title: "The conversion event is not declared in the component's manifest",
433
+ hint: text("Name an event the version declares in `events` or in `data.track`, or publish a version that declares it and send its `version_id`.", "Use um evento que a versão declara em `events` ou em `data.track`, ou publique uma versão que o declare e envie o `version_id` dela."),
434
+ },
435
+ export_too_large: {
436
+ status: 422,
437
+ title: "The export holds too many submissions",
438
+ hint: text("Narrow the export with a date range (`since`) and export in parts.", "Restrinja a exportação com um intervalo de datas (`since`) e exporte em partes."),
439
+ },
440
+ build_quota_exceeded: {
441
+ status: 429,
442
+ title: "The workspace reached its build limit for the last 7 days",
443
+ hint: text("The Free plan allows a number of builds in any 7 days (buildsPerWeek) and stops at it: nothing was stored. Try again when Retry-After says a place frees (the problem also has used, limit and resets_at), or move the workspace to a paid plan in the portal (Settings, Billing).", "O plano Free permite um número de builds em qualquer janela de 7 dias (buildsPerWeek) e para nele: nada foi guardado. Tente de novo quando o Retry-After disser que uma vaga abre (o problema também traz used, limit e resets_at), ou mude o workspace para um plano pago no portal (Configurações, Cobrança)."),
444
+ },
445
+ platform_build_capacity: {
446
+ status: 429,
447
+ title: "The platform reached its weekly emergency build fuse",
448
+ hint: text("Nothing is wrong with your request, your workspace or your plan: retry the same upload after the Retry-After seconds (the next UTC Monday).", "Não há nada de errado com sua requisição, seu workspace nem seu plano: repita o mesmo envio depois dos segundos de Retry-After (a próxima segunda-feira UTC)."),
449
+ },
450
+ database_unavailable: {
451
+ status: 503,
452
+ title: "The service is temporarily unavailable",
453
+ hint: text("Retry the same request after the Retry-After seconds, with backoff; nothing in it needs to change.", "Repita a mesma requisição depois dos segundos de Retry-After, com backoff; nada nela precisa mudar."),
454
+ },
455
+ manifest_publish_unavailable: {
456
+ status: 503,
457
+ title: "The change was saved but the site manifest is not updated yet",
458
+ hint: text("The change itself is saved. Send the same request again after the Retry-After seconds (attaching is idempotent); if it keeps failing, the hourly reconciliation still updates the site, and support can find it by the request_id.", "A mudança em si foi salva. Envie a mesma requisição de novo depois dos segundos de Retry-After (anexar é idempotente); se continuar falhando, a conferência de hora em hora ainda atualiza o site, e o suporte o encontra pelo request_id."),
459
+ },
460
+ internal_error: {
461
+ status: 500,
462
+ title: "Internal server error",
463
+ hint: text("Retry once after a few seconds; if it persists, contact support quoting the request_id.", "Tente de novo uma vez depois de alguns segundos; se persistir, fale com o suporte citando o request_id."),
464
+ },
465
+ configuration_error: {
466
+ status: 500,
467
+ title: "Service misconfigured",
468
+ hint: text("Nothing to change in your request; contact support quoting the request_id.", "Nada a mudar na sua requisição; fale com o suporte citando o request_id."),
469
+ },
470
+ };
471
+ /**
472
+ * The CLI errors that carry a hint. Each key is a `CliError` code (a key of the CLI's message
473
+ * table); a code absent here is listed in `scripts/error-hint-exemptions.json` until it gets one.
474
+ */
475
+ export const cliErrorCatalog = {
476
+ "api.error": {
477
+ title: text("The API refused the request", "A API recusou a requisição"),
478
+ hint: text("Read the API error shown with it (code and detail), fix the request and run the command again.", "Leia o erro da API mostrado junto (código e detail), corrija a requisição e rode o comando de novo."),
479
+ },
480
+ "sites.invalidHold": {
481
+ title: text("The hold is not 1 to 3 seconds", "A espera não é de 1 a 3 segundos"),
482
+ hint: text("Pass a whole number of seconds from 1 to 3 to `--hold`: the page is never held longer than that, so a Taggor outage cannot freeze it.", "Passe a `--hold` um número inteiro de segundos de 1 a 3: a página nunca é segurada por mais tempo, então uma queda do Taggor não a congela."),
483
+ },
484
+ "sites.invalidLoading": {
485
+ title: text("The loading value is not eager or idle", "O valor de loading não é eager nem idle"),
486
+ hint: text("Pass `eager` (import on load, the default) or `idle` (once the page is idle) to `--loading`; `visible` is not available yet.", "Passe `eager` (importar na carga, o padrão) ou `idle` (quando a página estiver ociosa) a `--loading`; `visible` ainda não existe."),
487
+ },
488
+ "api.network": {
489
+ title: text("The API cannot be reached", "A API não pôde ser alcançada"),
490
+ hint: text("Check your connection and the API URL (`--api-url`), then run the command again.", "Confira sua conexão e a URL da API (`--api-url`) e rode o comando de novo."),
491
+ },
492
+ "publish.attachFailedAfterVersion": {
493
+ title: text("The version was created but attaching to the site failed", "A versão foi criada, mas anexar ao site falhou"),
494
+ hint: text("The version exists and the channel moved; nothing is lost. Run the same taggor publish command again: attaching is idempotent.", "A versão existe e o canal foi movido; nada se perdeu. Rode o mesmo comando taggor publish de novo: anexar é idempotente."),
495
+ },
496
+ "api.rateLimited": {
497
+ title: text("Too many requests", "Requisições demais"),
498
+ hint: text("Wait the number of seconds shown, then run the command again.", "Espere o número de segundos mostrado e rode o comando de novo."),
499
+ },
500
+ "auth.notLoggedIn": {
501
+ title: text("Not logged in", "Sem login"),
502
+ hint: text("Run `taggor login`, or use an API key from the portal.", "Rode `taggor login`, ou use uma chave de API do portal."),
503
+ },
504
+ "auth.rejected": {
505
+ title: text("The API rejected the login", "A API rejeitou o login"),
506
+ hint: text("The saved login expired or was revoked: run `taggor login` again.", "O login salvo expirou ou foi revogado: rode `taggor login` de novo."),
507
+ },
508
+ "auth.forbidden": {
509
+ title: text("Not allowed", "Sem permissão"),
510
+ hint: text("Use a login or API key whose workspace role and scopes allow this command.", "Use um login ou chave de API cujo papel e escopos no workspace permitam este comando."),
511
+ },
512
+ "auth.humanActionRequired": {
513
+ title: text("This is for a person", "Isto é para uma pessoa"),
514
+ hint: text("Do not retry. Tell the person to do it in the portal: the message names the page and the steps (credentials, payment, legal acceptance, deleting the workspace and changing the owner are never done by an agent).", "Não tente de novo. Diga à pessoa para fazer isso no portal: a mensagem informa a página e os passos (credenciais, pagamento, aceite legal, apagar o workspace e trocar o dono nunca são feitos por um agente)."),
515
+ },
516
+ "input.missingFlag": {
517
+ title: text("A flag is required", "Falta uma flag"),
518
+ hint: text("Pass the flag the message names; this run cannot ask questions.", "Passe a flag que a mensagem cita; esta execução não pode fazer perguntas."),
519
+ },
520
+ "agent.noProject": {
521
+ title: text("No Taggor project here", "Nenhum projeto Taggor aqui"),
522
+ hint: text("Run `taggor init` first, or run `taggor agent install` inside a Taggor project (a folder with a taggor.json).", "Rode `taggor init` antes, ou rode `taggor agent install` dentro de um projeto Taggor (uma pasta com taggor.json)."),
523
+ },
524
+ "agent.noBundle": {
525
+ title: text("This CLI carries no agent files", "Esta CLI não traz os arquivos do agente"),
526
+ hint: text("Download the CLI from the portal (the build the agents page links to) and run the command again.", "Baixe a CLI do portal (o build que a página de agentes indica) e rode o comando de novo."),
527
+ },
528
+ "agent.badTarget": {
529
+ title: text("Unknown agent", "Agente desconhecido"),
530
+ hint: text("Pass --agent claude, codex, cursor or all.", "Passe --agent claude, codex, cursor ou all."),
531
+ },
532
+ "agent.unsafePath": {
533
+ title: text("Refused to write an agent file", "Recusei gravar um arquivo do agente"),
534
+ hint: text("The path is a link, a directory or outside the agent files (.claude/skills/taggor, AGENTS.md, CLAUDE.md, .cursor/rules/taggor.mdc). Replace the link with a real file or folder, or move it away, and run again.", "O caminho é um link, uma pasta ou está fora dos arquivos do agente (.claude/skills/taggor, AGENTS.md, CLAUDE.md, .cursor/rules/taggor.mdc). Troque o link por um arquivo ou pasta de verdade, ou tire-o do caminho, e rode de novo."),
535
+ },
536
+ "agent.markers": {
537
+ title: text("The Taggor block markers cannot be read", "Não consigo ler os marcadores do bloco da Taggor"),
538
+ hint: text("The file needs exactly one `<!-- taggor:start -->` line followed by one `<!-- taggor:end -->` line. Fix or delete the leftover marker (nothing was changed) and run the command again.", "O arquivo precisa de exatamente uma linha `<!-- taggor:start -->` seguida de uma `<!-- taggor:end -->`. Arrume ou apague o marcador sobrando (nada foi alterado) e rode o comando de novo."),
539
+ },
540
+ "agent.bundleCorrupt": {
541
+ title: text("The agent files in this CLI are damaged", "Os arquivos do agente desta CLI estão danificados"),
542
+ hint: text("Nothing was written. Download the CLI again from the portal and check its sha256.", "Nada foi gravado. Baixe a CLI de novo do portal e confira o sha256."),
543
+ },
544
+ "publish.noProject": {
545
+ title: text("No taggor.json found", "Nenhum taggor.json encontrado"),
546
+ hint: text("Run the command inside a Taggor project, or create one with `taggor init`.", "Rode o comando dentro de um projeto Taggor, ou crie um com `taggor init`."),
547
+ },
548
+ "publish.buildTimeout": {
549
+ title: text("The build did not finish in time", "O build não terminou a tempo"),
550
+ hint: text("Check the build with `taggor logs`, or raise the wait with `--timeout`.", "Veja o build com `taggor logs`, ou aumente a espera com `--timeout`."),
551
+ },
552
+ "pull.versionAndChannel": {
553
+ title: text("--version and --channel together", "--version e --channel juntos"),
554
+ hint: text("Pass one of them: `--version ver_…` for an exact version, or `--channel production|staging` for the one a channel points to.", "Passe só um: `--version ver_…` para uma versão exata, ou `--channel production|staging` para a que um canal aponta."),
555
+ },
556
+ "pull.noVersions": {
557
+ title: text("The component has no version to pull", "O componente não tem versão para baixar"),
558
+ hint: text("Publish one with `taggor publish`, then pull it.", "Publique uma com `taggor publish` e baixe depois."),
559
+ },
560
+ "pull.channelEmpty": {
561
+ title: text("The channel points to nothing", "O canal não aponta para nada"),
562
+ hint: text("Pass `--version ver_…` (see `taggor versions <component>`), or pull without `--channel` for the newest version.", "Passe `--version ver_…` (veja `taggor versions <componente>`), ou baixe sem `--channel` para a versão mais recente."),
563
+ },
564
+ "pull.hashMismatch": {
565
+ title: text("The downloaded source does not match its hash", "O código baixado não confere com o hash"),
566
+ hint: text("Nothing was written. Run the command again; if it repeats, check the network path (a proxy) and report the request id.", "Nada foi gravado. Rode o comando de novo; se repetir, confira o caminho de rede (um proxy) e informe o id da requisição."),
567
+ },
568
+ "pull.noHash": {
569
+ title: text("The API sent the source without its hash", "A API enviou o código sem o hash"),
570
+ hint: text("Nothing was written. Check `--api-url` points to a Taggor API and update the CLI.", "Nada foi gravado. Confira se `--api-url` aponta para uma API do Taggor e atualize a CLI."),
571
+ },
572
+ "pull.tooLarge": {
573
+ title: text("The source package is over the size limit", "O pacote de código passa do limite de tamanho"),
574
+ hint: text("Nothing was written. A published source is at most 5 MiB compressed: check `--api-url` and report the request id.", "Nada foi gravado. Um código publicado tem no máximo 5 MiB comprimido: confira `--api-url` e informe o id da requisição."),
575
+ },
576
+ "pull.packageRefused": {
577
+ title: text("The downloaded source was refused", "O código baixado foi recusado"),
578
+ hint: text("Nothing was written. The package failed the same checks the API runs on upload (paths, links, size): report the request id.", "Nada foi gravado. O pacote falhou nas mesmas conferências que a API faz no envio (caminhos, links, tamanho): informe o id da requisição."),
579
+ },
580
+ "pull.secrets": {
581
+ title: text("The downloaded source holds a credential", "O código baixado tem uma credencial"),
582
+ hint: text("Nothing was written. Treat the key as leaked: rotate it, then publish a fixed version and pull that one.", "Nada foi gravado. Trate a chave como vazada: troque-a, publique uma versão corrigida e baixe essa."),
583
+ },
584
+ "pull.notEmpty": {
585
+ title: text("The folder is not empty", "A pasta não está vazia"),
586
+ hint: text("Pull into an empty folder with `--dir <folder>`, or add `--force` to write into this one (files with the same name are replaced and listed).", "Baixe numa pasta vazia com `--dir <pasta>`, ou use `--force` para gravar nesta (arquivos com o mesmo nome são trocados e listados)."),
587
+ },
588
+ "projects.invalidDays": {
589
+ title: text("Invalid --older-than", "--older-than inválido"),
590
+ hint: text("Pass a whole number of days, for example `--older-than 30`.", "Passe um número inteiro de dias, por exemplo `--older-than 30`."),
591
+ },
592
+ "projects.unsafeName": {
593
+ title: text("Not a project folder of Taggor", "Não é uma pasta de projeto do Taggor"),
594
+ hint: text("Nothing was deleted. `taggor projects clean` only removes real folders directly under ~/.taggor/projects.", "Nada foi apagado. `taggor projects clean` só remove pastas reais direto em ~/.taggor/projects."),
595
+ },
596
+ "login.expired": {
597
+ title: text("The login code expired", "O código de login expirou"),
598
+ hint: text("Run `taggor login` again and approve the new code in the browser sooner.", "Rode `taggor login` de novo e aprove o novo código no navegador mais cedo."),
599
+ },
600
+ "login.denied": {
601
+ title: text("The login was denied", "O login foi negado"),
602
+ hint: text("Run `taggor login` again and approve the request in the browser.", "Rode `taggor login` de novo e aprove o pedido no navegador."),
603
+ },
604
+ "init.renamedProjectKey": {
605
+ title: text("taggor.json uses an older name for its component list", "O taggor.json usa um nome antigo para a lista de componentes"),
606
+ hint: text("Rename the key the message names to `components` in taggor.json; each entry and its `path` stay as they are.", "Renomeie para `components` a chave que a mensagem cita no taggor.json; cada entrada e o seu `path` ficam como estão."),
607
+ },
608
+ "props.invalidName": {
609
+ title: text("Not a prop name", "Não é um nome de prop"),
610
+ hint: text("Use the prop name as the component's manifest declares it (lowerCamelCase, such as privacyPolicy), or its page attribute (privacy-policy). Names an HTML element already has (title, id, lang, hidden…) can never be a prop.", "Use o nome da prop como o manifesto do componente a declara (lowerCamelCase, como privacyPolicy), ou o atributo dela na página (privacy-policy). Nomes que um elemento HTML já tem (title, id, lang, hidden…) nunca podem ser prop."),
611
+ },
612
+ "protection.invalidSuspects": {
613
+ title: text("Unknown choice for suspect submissions", "Escolha desconhecida para envios suspeitos"),
614
+ hint: text("Pass --suspects keep (store it marked), drop (answer it but do not store it) or default.", "Passe --suspects keep (guarda marcado), drop (responde mas não guarda) ou default."),
615
+ },
616
+ "protection.invalidDailyCap": {
617
+ title: text("The daily cap is not a whole number", "O teto diário não é um número inteiro"),
618
+ hint: text("Pass --daily-cap with a whole number from 1, or default.", "Passe --daily-cap com um número inteiro a partir de 1, ou default."),
619
+ },
620
+ "protection.nothingToSet": {
621
+ title: text("Nothing to change", "Nada a mudar"),
622
+ hint: text("Give --suspects and/or --daily-cap.", "Informe --suspects e/ou --daily-cap."),
623
+ },
624
+ "protection.aboveCeiling": {
625
+ title: text("The daily cap is above the platform's ceiling", "O teto diário passa do máximo da plataforma"),
626
+ hint: text("Use a lower --daily-cap; the ceiling is `daily_cap_max` of GET /v1/sites/{id}/submission-usage.", "Use um --daily-cap menor; o máximo é o `daily_cap_max` de GET /v1/sites/{id}/submission-usage."),
627
+ },
628
+ // The strict file of `taggor data export --out`; given hints when the server key file reused it
629
+ // (spike, ADR 0066), which took them off the exemption list.
630
+ "data.outExists": {
631
+ title: text("The export file already exists", "O arquivo da exportação já existe"),
632
+ hint: text("Name another file with --out, or pass --force to replace it. Nothing was written.", "Indique outro arquivo em --out, ou passe --force para trocá-lo. Nada foi gravado."),
633
+ },
634
+ "data.outUnsafe": {
635
+ title: text("The export file is a link or not a regular file", "O arquivo da exportação é um link ou não é um arquivo comum"),
636
+ hint: text("Name a regular file with --out; a link is refused even with --force.", "Indique um arquivo comum em --out; um link é recusado mesmo com --force."),
637
+ },
638
+ "data.outFailed": {
639
+ title: text("Could not write the export file", "Não foi possível gravar o arquivo da exportação"),
640
+ hint: text("Check that the folder of --out exists and is writable, then run the export again.", "Confira se a pasta de --out existe e aceita escrita e rode a exportação de novo."),
641
+ },
642
+ // `taggor sites server-keys` (spike, ADR 0066, no ticket): the SSR server keys of a site.
643
+ "serverkeys.secretDestination": {
644
+ title: text("Say where the new server key's secret goes", "Diga para onde vai o segredo da chave de servidor nova"),
645
+ hint: text("Pass --out <new file> (the secret is written there as the server key variable and never printed; the choice for an agent) or --reveal (printed once). Nothing was created.", "Passe --out <arquivo novo> (o segredo é gravado lá como a variável da chave de servidor e nunca impresso; a escolha para um agente) ou --reveal (impresso uma vez). Nada foi criado."),
646
+ },
647
+ "serverkeys.invalidKeyId": {
648
+ title: text("Not a server key id", "Não é um id de chave de servidor"),
649
+ hint: text("Pass the ssk_... id that `taggor sites server-keys list --site <site>` shows, never the key itself.", "Passe o id ssk_... que `taggor sites server-keys list --site <site>` mostra, nunca a chave em si."),
650
+ },
651
+ "serverkeys.limitReached": {
652
+ title: text("The site already has two server keys", "O site já tem duas chaves de servidor"),
653
+ hint: text("Revoke the key your servers no longer send (`taggor sites server-keys revoke <ssk_id> --site <site>`), then create the new one.", "Revogue a chave que os seus servidores não enviam mais (`taggor sites server-keys revoke <ssk_id> --site <site>`) e crie a nova."),
654
+ },
655
+ "serverkeys.unexpectedAnswer": {
656
+ title: text("The API did not answer a valid server key", "A API não respondeu uma chave de servidor válida"),
657
+ hint: text("Nothing was written and the new key was revoked. Check that --api-url (or the API URL variable) is the Taggor API, then try again.", "Nada foi gravado e a chave nova foi revogada. Confira se --api-url (ou a variável da URL da API) é a API do Taggor e tente de novo."),
658
+ },
659
+ "serverkeys.outExists": {
660
+ title: text("The secret file already exists", "O arquivo do segredo já existe"),
661
+ hint: text("Name a new file with --out; the secret is never written over an existing one. No key was created.", "Indique um arquivo novo em --out; o segredo nunca é gravado por cima de um existente. Nenhuma chave foi criada."),
662
+ },
663
+ "serverkeys.outUnsafe": {
664
+ title: text("The secret file is a link or not a regular file", "O arquivo do segredo é um link ou não é um arquivo comum"),
665
+ hint: text("Name a new regular file with --out. No key was created.", "Indique um arquivo comum novo em --out. Nenhuma chave foi criada."),
666
+ },
667
+ "serverkeys.outFailed": {
668
+ title: text("Could not write the secret file", "Não foi possível gravar o arquivo do segredo"),
669
+ hint: text("Check that the folder of --out exists and is writable, then run the command again.", "Confira se a pasta de --out existe e aceita escrita e rode o comando de novo."),
670
+ },
671
+ "serverkeys.notSavedRevoked": {
672
+ title: text("The secret could not be saved, so the new key was revoked", "O segredo não pôde ser gravado, então a chave nova foi revogada"),
673
+ hint: text("Fix the folder of --out (space, permissions) and run the command again; no active key was left without its secret.", "Corrija a pasta de --out (espaço, permissões) e rode o comando de novo; nenhuma chave ativa ficou sem o segredo."),
674
+ },
675
+ "serverkeys.notSavedKept": {
676
+ title: text("The secret could not be saved and the new key is still active", "O segredo não pôde ser gravado e a chave nova continua ativa"),
677
+ hint: text("Revoke it with the command the message gives (`taggor sites server-keys revoke <ssk_id> --site <site>`), then create another.", "Revogue-a com o comando que a mensagem dá (`taggor sites server-keys revoke <ssk_id> --site <site>`) e crie outra."),
678
+ },
679
+ "build.quotaExceeded": {
680
+ title: text("The workspace reached its build limit for the last 7 days", "O workspace atingiu o limite de builds dos últimos 7 dias"),
681
+ hint: text("Wait the time shown (a place frees when the oldest build leaves the 7-day window), or ask for a higher plan. Nothing was sent.", "Espere o tempo mostrado (uma vaga abre quando o build mais antigo sai da janela de 7 dias) ou peça um plano maior. Nada foi enviado."),
682
+ },
683
+ "build.platformFuse": {
684
+ title: text("The platform paused new builds for the week", "A plataforma pausou novos builds nesta semana"),
685
+ hint: text("It is the platform's emergency fuse, not your plan: send the same upload again after the time shown. Nothing was sent.", "É o fusível de emergência da plataforma, não o seu plano: envie o mesmo pacote de novo depois do tempo mostrado. Nada foi enviado."),
686
+ },
687
+ "props.invalidKind": {
688
+ title: text("Unknown way to read the value", "Jeito de ler o valor desconhecido"),
689
+ hint: text("Pass --as string (the default), number, boolean or json.", "Passe --as string (o padrão), number, boolean ou json."),
690
+ },
691
+ "props.invalidValue": {
692
+ title: text("The value is not of the kind asked", "O valor não é do tipo pedido"),
693
+ hint: text("Write the value the way --as reads it: a plain number, true or false, or valid JSON; leave --as out for text.", "Escreva o valor do jeito que o --as lê: um número simples, true ou false, ou JSON válido; tire o --as para texto."),
694
+ },
695
+ "props.notAttached": {
696
+ title: text("The component is not attached to the site", "O componente não está anexado ao site"),
697
+ hint: text("Run `taggor attach <component> --site <site key>` first, then save the prop again.", "Rode antes `taggor attach <componente> --site <chave do site>` e salve a prop de novo."),
698
+ },
699
+ "sites.deleteInPortal": {
700
+ title: text("Deleting a site is done in the portal", "Apagar um site é feito no portal"),
701
+ hint: text("Nothing was deleted and the CLI cannot do it. Tell the person to open the site's page in the portal, go to Settings and choose Delete site; do not look for another way.", "Nada foi apagado e a CLI não faz isso. Peça à pessoa para abrir a página do site no portal, ir em Settings e escolher Delete site; não procure outro caminho."),
702
+ },
703
+ "props.conflict": {
704
+ title: text("The site's props kept changing", "As props do site continuaram mudando"),
705
+ hint: text("Someone else (or a channel move) changed the site's props three times while this ran; nothing was lost. Run the command again.", "Outra pessoa (ou uma mudança de canal) alterou as props do site três vezes enquanto isto rodava; nada se perdeu. Rode o comando de novo."),
706
+ },
707
+ "props.noVersion": {
708
+ title: text("The channel has no version yet", "O canal ainda não tem versão"),
709
+ hint: text("Run `taggor publish` (and `taggor promote` for production) so the channel the site uses has a version, then save the prop.", "Rode `taggor publish` (e `taggor promote` para produção) para o canal do site ter uma versão e salve a prop depois."),
710
+ },
711
+ "props.invalid": {
712
+ title: text("The API refused the prop value", "A API recusou o valor da prop"),
713
+ hint: text("Each path listed is a prop the component's version must declare, with a value of its type; a privacy policy URL is an https address. For a number or a boolean pass --as number or --as boolean.", "Cada caminho listado é uma prop que a versão do componente precisa declarar, com um valor do tipo dela; a URL da política de privacidade é um endereço https. Para número ou booleano passe --as number ou --as boolean."),
714
+ },
715
+ "config.invalidApiUrl": {
716
+ title: text("Invalid API URL", "URL da API inválida"),
717
+ hint: text("Pass an https origin such as https://api.taggor.dev (http only for localhost).", "Passe uma origem https como https://api.taggor.dev (http só para localhost)."),
718
+ },
719
+ };
720
+ //# sourceMappingURL=error-catalog.js.map