@taggor/contract 0.3.0 → 0.5.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 (255) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/artifact-keys.d.ts +11 -11
  3. package/dist/artifact-keys.d.ts.map +1 -1
  4. package/dist/artifact-keys.js +11 -11
  5. package/dist/artifact-keys.js.map +1 -1
  6. package/dist/assets.d.ts +5 -5
  7. package/dist/assets.js +5 -5
  8. package/dist/bounded-path.d.ts +2 -2
  9. package/dist/bounded-path.js +2 -2
  10. package/dist/bounded.d.ts +2 -2
  11. package/dist/bounded.js +2 -2
  12. package/dist/build-diagnostic.d.ts +5 -5
  13. package/dist/build-diagnostic.js +5 -5
  14. package/dist/component-types.d.ts +7 -7
  15. package/dist/component-types.js +4 -4
  16. package/dist/component-types.js.map +1 -1
  17. package/dist/consent-text.d.ts +1 -1
  18. package/dist/consent-text.js +1 -1
  19. package/dist/contract-version.d.ts +17 -16
  20. package/dist/contract-version.d.ts.map +1 -1
  21. package/dist/contract-version.js +17 -16
  22. package/dist/contract-version.js.map +1 -1
  23. package/dist/credential-fields.d.ts +1 -1
  24. package/dist/credential-fields.js +1 -1
  25. package/dist/css-tokens.d.ts +1 -1
  26. package/dist/css-tokens.js +1 -1
  27. package/dist/css-value.d.ts +4 -4
  28. package/dist/css-value.js +4 -4
  29. package/dist/data-api.d.ts +11 -11
  30. package/dist/data-api.js +14 -14
  31. package/dist/data-api.js.map +1 -1
  32. package/dist/denylist-keys.d.ts +1 -1
  33. package/dist/denylist-keys.js +4 -4
  34. package/dist/diagnostic-catalog.d.ts +44 -36
  35. package/dist/diagnostic-catalog.d.ts.map +1 -1
  36. package/dist/diagnostic-catalog.js +44 -40
  37. package/dist/diagnostic-catalog.js.map +1 -1
  38. package/dist/dom-members.snapshot.d.ts +4 -4
  39. package/dist/dom-members.snapshot.js +8 -8
  40. package/dist/early-loading.d.ts +1 -1
  41. package/dist/early-loading.js +1 -1
  42. package/dist/error-catalog.d.ts +106 -7
  43. package/dist/error-catalog.d.ts.map +1 -1
  44. package/dist/error-catalog.js +143 -48
  45. package/dist/error-catalog.js.map +1 -1
  46. package/dist/executable-config.d.ts +1 -1
  47. package/dist/freeze.d.ts +2 -2
  48. package/dist/freeze.js +2 -2
  49. package/dist/gunzip.d.ts +3 -3
  50. package/dist/gunzip.js +4 -4
  51. package/dist/gunzip.js.map +1 -1
  52. package/dist/hostname.d.ts +5 -6
  53. package/dist/hostname.d.ts.map +1 -1
  54. package/dist/hostname.js +7 -8
  55. package/dist/hostname.js.map +1 -1
  56. package/dist/human-actions.d.ts +4 -4
  57. package/dist/human-actions.d.ts.map +1 -1
  58. package/dist/human-actions.js +21 -0
  59. package/dist/human-actions.js.map +1 -1
  60. package/dist/index.d.ts +5 -4
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +5 -4
  63. package/dist/index.js.map +1 -1
  64. package/dist/json-schema.d.ts +15 -16
  65. package/dist/json-schema.d.ts.map +1 -1
  66. package/dist/json-schema.js +22 -23
  67. package/dist/json-schema.js.map +1 -1
  68. package/dist/key-checksum.d.ts +1 -1
  69. package/dist/key-checksum.js +1 -1
  70. package/dist/libraries.d.ts +4 -4
  71. package/dist/libraries.d.ts.map +1 -1
  72. package/dist/libraries.js +4 -4
  73. package/dist/libraries.js.map +1 -1
  74. package/dist/limit-catalog.d.ts +17 -17
  75. package/dist/limit-catalog.d.ts.map +1 -1
  76. package/dist/limit-catalog.js +30 -30
  77. package/dist/limit-catalog.js.map +1 -1
  78. package/dist/limits.d.ts +15 -15
  79. package/dist/limits.d.ts.map +1 -1
  80. package/dist/limits.js +16 -16
  81. package/dist/limits.js.map +1 -1
  82. package/dist/locale-tag.d.ts +2 -2
  83. package/dist/locale-tag.js +2 -2
  84. package/dist/make-diagnostic.d.ts +2 -3
  85. package/dist/make-diagnostic.d.ts.map +1 -1
  86. package/dist/make-diagnostic.js.map +1 -1
  87. package/dist/manifest-compat-diagnostics.d.ts +1 -1
  88. package/dist/manifest-compat.js +1 -1
  89. package/dist/manifest.d.ts +22 -23
  90. package/dist/manifest.d.ts.map +1 -1
  91. package/dist/manifest.js +32 -33
  92. package/dist/manifest.js.map +1 -1
  93. package/dist/metering.d.ts +17 -18
  94. package/dist/metering.d.ts.map +1 -1
  95. package/dist/metering.js +17 -18
  96. package/dist/metering.js.map +1 -1
  97. package/dist/migrate.d.ts +1 -1
  98. package/dist/migrate.js +5 -5
  99. package/dist/migrate.js.map +1 -1
  100. package/dist/money.d.ts +2 -2
  101. package/dist/money.js +2 -2
  102. package/dist/names.d.ts +4 -4
  103. package/dist/names.js +4 -4
  104. package/dist/overage-pricing.d.ts +1 -1
  105. package/dist/overage-pricing.js +1 -1
  106. package/dist/plan-ids.d.ts +1 -1
  107. package/dist/plan-ids.js +1 -1
  108. package/dist/plan-limits.d.ts +13 -13
  109. package/dist/plan-limits.d.ts.map +1 -1
  110. package/dist/plan-limits.js +8 -8
  111. package/dist/plan-limits.js.map +1 -1
  112. package/dist/plan-pricing.d.ts +10 -12
  113. package/dist/plan-pricing.d.ts.map +1 -1
  114. package/dist/plan-pricing.js +12 -14
  115. package/dist/plan-pricing.js.map +1 -1
  116. package/dist/plan-usage.d.ts +18 -18
  117. package/dist/plan-usage.d.ts.map +1 -1
  118. package/dist/plan-usage.js +19 -20
  119. package/dist/plan-usage.js.map +1 -1
  120. package/dist/preview-token.js +2 -2
  121. package/dist/prop-names.d.ts +5 -5
  122. package/dist/prop-names.d.ts.map +1 -1
  123. package/dist/prop-names.js +10 -10
  124. package/dist/prop-names.js.map +1 -1
  125. package/dist/prop-type-docs.js +1 -1
  126. package/dist/prop-types.d.ts +6 -6
  127. package/dist/prop-types.js +17 -17
  128. package/dist/prop-types.js.map +1 -1
  129. package/dist/props.d.ts +5 -5
  130. package/dist/props.js +6 -6
  131. package/dist/props.js.map +1 -1
  132. package/dist/proto-guard.js +3 -3
  133. package/dist/proto-guard.js.map +1 -1
  134. package/dist/runtime-errors.d.ts +2 -2
  135. package/dist/runtime-errors.js +2 -2
  136. package/dist/runtime-pointers.d.ts +2 -2
  137. package/dist/runtime-pointers.js +2 -2
  138. package/{schema → dist/schema}/component-manifest.v1.json +5 -5
  139. package/dist/secret-scan.d.ts +10 -10
  140. package/dist/secret-scan.d.ts.map +1 -1
  141. package/dist/secret-scan.js +15 -16
  142. package/dist/secret-scan.js.map +1 -1
  143. package/dist/semver.d.ts +2 -2
  144. package/dist/semver.js +2 -2
  145. package/dist/server-key.js +1 -1
  146. package/dist/site-manifest-keys.d.ts +11 -11
  147. package/dist/site-manifest-keys.d.ts.map +1 -1
  148. package/dist/site-manifest-keys.js +18 -18
  149. package/dist/site-manifest-keys.js.map +1 -1
  150. package/dist/site-manifest.d.ts +2 -2
  151. package/dist/site-manifest.js +9 -9
  152. package/dist/site-manifest.js.map +1 -1
  153. package/dist/source-archive.d.ts +13 -13
  154. package/dist/source-archive.js +25 -25
  155. package/dist/source-archive.js.map +1 -1
  156. package/dist/source-package-corpus.d.ts +3 -4
  157. package/dist/source-package-corpus.d.ts.map +1 -1
  158. package/dist/source-package-corpus.js +4 -6
  159. package/dist/source-package-corpus.js.map +1 -1
  160. package/dist/source-package.d.ts +18 -17
  161. package/dist/source-package.d.ts.map +1 -1
  162. package/dist/source-package.js +16 -15
  163. package/dist/source-package.js.map +1 -1
  164. package/dist/source-secrets.js +1 -1
  165. package/dist/ssr-cap.d.ts +1 -1
  166. package/dist/ssr-cap.js +4 -4
  167. package/dist/ssr-kv.d.ts +2 -2
  168. package/dist/ssr-kv.js +2 -2
  169. package/dist/ssr-render.d.ts +2 -2
  170. package/dist/ssr-render.d.ts.map +1 -1
  171. package/dist/ssr-render.js +3 -3
  172. package/dist/ssr-render.js.map +1 -1
  173. package/dist/ssr-version-ledger.js +3 -3
  174. package/dist/style-references.d.ts +2 -3
  175. package/dist/style-references.d.ts.map +1 -1
  176. package/dist/style-references.js +10 -11
  177. package/dist/style-references.js.map +1 -1
  178. package/dist/support-contact.d.ts +11 -0
  179. package/dist/support-contact.d.ts.map +1 -0
  180. package/dist/support-contact.js +11 -0
  181. package/dist/support-contact.js.map +1 -0
  182. package/dist/tag-name.d.ts +6 -6
  183. package/dist/tag-name.d.ts.map +1 -1
  184. package/dist/tag-name.js +7 -7
  185. package/dist/tag-name.js.map +1 -1
  186. package/dist/tar-writer.js +1 -1
  187. package/dist/testing.d.ts +1 -1
  188. package/dist/testing.js +1 -1
  189. package/dist/text-codec.d.ts +2 -2
  190. package/dist/text-codec.js +2 -2
  191. package/dist/url-value.d.ts +1 -1
  192. package/dist/url-value.js +6 -6
  193. package/dist/usage-guard.d.ts +16 -16
  194. package/dist/usage-guard.js +15 -15
  195. package/dist/usage-mirror.d.ts +5 -5
  196. package/dist/value-check.d.ts +6 -6
  197. package/dist/value-check.js +21 -21
  198. package/dist/value-check.js.map +1 -1
  199. package/dist/value-patterns.js +2 -2
  200. package/dist/value-schema.d.ts +4 -4
  201. package/dist/value-schema.d.ts.map +1 -1
  202. package/dist/value-schema.js +5 -5
  203. package/dist/value-schema.js.map +1 -1
  204. package/dist/zod-free.d.ts +25 -24
  205. package/dist/zod-free.d.ts.map +1 -1
  206. package/dist/zod-free.js +26 -25
  207. package/dist/zod-free.js.map +1 -1
  208. package/package.json +9 -10
  209. package/schema/DEPLOYED +0 -12
  210. package/schema/published/SHA256SUMS +0 -41
  211. package/schema/published/build-diagnostic/v1.10.json +0 -83
  212. package/schema/published/build-diagnostic/v1.11.json +0 -83
  213. package/schema/published/build-diagnostic/v1.3.json +0 -83
  214. package/schema/published/build-diagnostic/v1.4.json +0 -83
  215. package/schema/published/build-diagnostic/v1.5.json +0 -83
  216. package/schema/published/build-diagnostic/v1.6.json +0 -83
  217. package/schema/published/build-diagnostic/v1.7.json +0 -83
  218. package/schema/published/build-diagnostic/v1.8.json +0 -83
  219. package/schema/published/build-diagnostic/v1.9.json +0 -83
  220. package/schema/published/component-manifest/v1.10.json +0 -1443
  221. package/schema/published/component-manifest/v1.11.json +0 -1443
  222. package/schema/published/component-manifest/v1.3.json +0 -1411
  223. package/schema/published/component-manifest/v1.4.json +0 -1419
  224. package/schema/published/component-manifest/v1.5.json +0 -1437
  225. package/schema/published/component-manifest/v1.6.json +0 -1437
  226. package/schema/published/component-manifest/v1.7.json +0 -1437
  227. package/schema/published/component-manifest/v1.8.json +0 -1437
  228. package/schema/published/component-manifest/v1.9.json +0 -1437
  229. package/schema/published/data-api/v1.10.json +0 -282
  230. package/schema/published/data-api/v1.11.json +0 -282
  231. package/schema/published/data-api/v1.3.json +0 -281
  232. package/schema/published/data-api/v1.4.json +0 -281
  233. package/schema/published/data-api/v1.5.json +0 -281
  234. package/schema/published/data-api/v1.6.json +0 -281
  235. package/schema/published/data-api/v1.7.json +0 -281
  236. package/schema/published/data-api/v1.8.json +0 -282
  237. package/schema/published/data-api/v1.9.json +0 -282
  238. package/schema/published/library-manifest/v1.10.json +0 -68
  239. package/schema/published/library-manifest/v1.11.json +0 -68
  240. package/schema/published/library-manifest/v1.5.json +0 -68
  241. package/schema/published/library-manifest/v1.6.json +0 -68
  242. package/schema/published/library-manifest/v1.7.json +0 -68
  243. package/schema/published/library-manifest/v1.8.json +0 -68
  244. package/schema/published/library-manifest/v1.9.json +0 -68
  245. package/schema/published/taggor-config/v1.10.json +0 -56
  246. package/schema/published/taggor-config/v1.11.json +0 -56
  247. package/schema/published/taggor-config/v1.5.json +0 -56
  248. package/schema/published/taggor-config/v1.6.json +0 -56
  249. package/schema/published/taggor-config/v1.7.json +0 -56
  250. package/schema/published/taggor-config/v1.8.json +0 -56
  251. package/schema/published/taggor-config/v1.9.json +0 -56
  252. /package/{schema → dist/schema}/build-diagnostic.v1.json +0 -0
  253. /package/{schema → dist/schema}/data-api.v1.json +0 -0
  254. /package/{schema → dist/schema}/library-manifest.v1.json +0 -0
  255. /package/{schema → dist/schema}/taggor-config.v1.json +0 -0
@@ -11,6 +11,14 @@ export const CLI_ERROR_CODE_PATTERN = /^[a-z]+\.[A-Za-z]+$/;
11
11
  export function hasErrorHint(entry) {
12
12
  return entry.hint.en.trim().length > 0 && entry.hint["pt-BR"].trim().length > 0;
13
13
  }
14
+ /**
15
+ * Whether an API error is answered only by Taggor's internal endpoints (`audience: "staff"`).
16
+ * Such a code has no public docs page. Inputs: an API catalog entry. Output: true for staff-only.
17
+ * Errors: none. Side effects: none.
18
+ */
19
+ export function isStaffOnly(entry) {
20
+ return entry.audience === "staff";
21
+ }
14
22
  /**
15
23
  * The docs page of an error code.
16
24
  * Inputs: an API or CLI error code. Output: its absolute URL. Errors: none. Side effects: none.
@@ -45,17 +53,18 @@ export const apiErrorCatalog = {
45
53
  workspace_suspended: {
46
54
  status: 403,
47
55
  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."),
56
+ hint: text("Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); 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. Para pedir revisão, escreva para contact@taggor.dev com o nome do workspace e o `request_id` deste erro (um campo da resposta; a CLI o imprime no fim da mensagem de erro); use outro workspace enquanto isso."),
49
57
  },
50
58
  component_disabled: {
51
59
  status: 403,
52
60
  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."),
61
+ hint: text("Taggor disabled this component, so it is not delivered and no new version of it is accepted. Your data is kept. To ask for a review, write to contact@taggor.dev with the component name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).", "A Taggor desativou este componente: ele não é entregue e nenhuma versão nova é aceita. Seus dados foram mantidos. Para pedir revisão, escreva para contact@taggor.dev com o nome do componente e o `request_id` deste erro (um campo da resposta; a CLI o imprime no fim da mensagem de erro)."),
54
62
  },
55
63
  suspension_state_changed: {
56
64
  status: 409,
65
+ audience: "staff",
57
66
  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`."),
67
+ hint: text("For Taggor staff using the internal endpoints. Another staff member 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`. A customer who sees this error: write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).", "Para a equipe da Taggor que usa os endpoints internos. Outra pessoa da equipe 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`. Cliente que vê este erro: escreva para contact@taggor.dev com o `request_id` deste erro (um campo da resposta; a CLI o imprime no fim da mensagem de erro)."),
59
68
  },
60
69
  captcha_failed: {
61
70
  status: 403,
@@ -65,22 +74,24 @@ export const apiErrorCatalog = {
65
74
  abuse_reports_unavailable: {
66
75
  status: 503,
67
76
  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."),
77
+ hint: text("Nothing was recorded. Retry after the Retry-After seconds; if it keeps failing, write to abuse@taggor.dev, the contact on the abuse page (https://taggor.dev/abuse), with the address of the page or the name of the component you are reporting.", "Nada foi registrado. Tente de novo depois dos segundos de Retry-After; se continuar falhando, escreva para abuse@taggor.dev, o contato da página de abuso (https://taggor.dev/pt-br/abuse), com o endereço da página ou o nome do componente que você denuncia."),
69
78
  },
70
79
  abuse_case_closed: {
71
80
  status: 409,
81
+ audience: "staff",
72
82
  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."),
83
+ hint: text("For Taggor staff using the internal endpoints. A closed case is never rewritten: if the report was wrong or new facts arrived, a new report opens a new case. A customer who sees this error: write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).", "Para a equipe da Taggor que usa os endpoints internos. Um caso encerrado nunca é reescrito: se a denúncia estava errada ou surgiram fatos novos, uma nova denúncia abre um novo caso. Cliente que vê este erro: escreva para contact@taggor.dev com o `request_id` deste erro (um campo da resposta; a CLI o imprime no fim da mensagem de erro)."),
74
84
  },
75
85
  usage_flag_reviewed: {
76
86
  status: 409,
87
+ audience: "staff",
77
88
  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."),
89
+ hint: text("For Taggor staff using the internal endpoints. A verdict is never rewritten: if it was wrong, a later surge of the same site opens a new flag, and the correction is recorded on that one. A customer who sees this error: write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).", "Para a equipe da Taggor que usa os endpoints internos. Um veredito nunca é reescrito: se estava errado, um novo pico do mesmo site abre outro alerta, e a correção é registrada nele. Cliente que vê este erro: escreva para contact@taggor.dev com o `request_id` deste erro (um campo da resposta; a CLI o imprime no fim da mensagem de erro)."),
79
90
  },
80
91
  insufficient_scope: {
81
92
  status: 403,
82
93
  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."),
94
+ hint: text("The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.", "O campo `missing_scopes` do erro lista os escopos que a rota exige. Crie uma chave de API com eles no portal (https://app.taggor.dev, Configurações, Chaves de API) e use-a."),
84
95
  },
85
96
  permission_denied: {
86
97
  status: 403,
@@ -89,8 +100,13 @@ export const apiErrorCatalog = {
89
100
  },
90
101
  human_action_required: {
91
102
  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."),
103
+ title: "Complete this action in the portal",
104
+ hint: text("Complete this action in the portal, signed in as a person: the response names the page (`human_action.portal_path`, on https://app.taggor.dev) and the steps. For an agent: do not retry; give the person this page and these steps. Credentials, payment, legal acceptance, deleting the workspace and changing the owner are never done by an agent.", "Conclua esta ação no portal, entrando como pessoa: a resposta informa a página (`human_action.portal_path`, em https://app.taggor.dev) e os passos. Para um agente: não tente de novo; entregue à pessoa esta página e estes passos. Credenciais, pagamento, aceite legal, apagar o workspace e trocar o dono nunca são feitos por um agente."),
105
+ },
106
+ oauth_consent_required: {
107
+ status: 403,
108
+ title: "The workspace and the permissions are not chosen yet",
109
+ hint: text("Do not retry. The person still has to choose the workspace and the permissions (Read only, or Read and publish). Give them the link in `consent_url` and ask them to open it in the portal and approve; if `missing_access` is `read_publish`, the agent already has access but this call needs Read and publish, so they pick that set. The next call works after that.", "Não tente de novo. Falta a pessoa escolher o workspace e as permissões (Somente leitura, ou Ler e publicar). Entregue a ela o link de `consent_url` e peça que abra no portal e aprove; se `missing_access` for `read_publish`, o agente já tem acesso, mas esta chamada precisa de Ler e publicar, e a pessoa escolhe esse conjunto. A próxima chamada funciona depois disso."),
94
110
  },
95
111
  api_key_creation_requires_session: {
96
112
  status: 403,
@@ -122,6 +138,21 @@ export const apiErrorCatalog = {
122
138
  title: "The invitation's role is above the sender's own role",
123
139
  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
140
  },
141
+ member_role_exceeds_role: {
142
+ status: 403,
143
+ title: "Your role does not allow changing this member",
144
+ hint: text("An admin can remove or change only members and viewers, and cannot grant the owner role. Ask an owner to make this change.", "Um admin só remove ou muda membros e leitores, e não pode dar o papel de dono. Peça a um dono para fazer essa mudança."),
145
+ },
146
+ last_owner_protected: {
147
+ status: 409,
148
+ title: "The last owner cannot be removed or demoted",
149
+ hint: text("A workspace always needs an owner. Hand the workspace to another member in Settings, Workspace, then try again.", "Um workspace sempre precisa de um dono. Passe o workspace a outro membro em Configurações, Workspace, e tente de novo."),
150
+ },
151
+ former_owner_protected: {
152
+ status: 409,
153
+ title: "The former owner cannot be removed or demoted yet",
154
+ hint: text("Someone who handed the workspace over in the last 14 days stays an admin or owner, because they can still cancel a deletion the new owner schedules. Try again after that.", "Quem passou o workspace adiante nos últimos 14 dias continua admin ou dono, porque ainda pode cancelar uma exclusão agendada pelo novo dono. Tente de novo depois disso."),
155
+ },
125
156
  invitation_email_mismatch: {
126
157
  status: 403,
127
158
  title: "The signed-in e-mail is not the one the invitation is for",
@@ -185,7 +216,7 @@ export const apiErrorCatalog = {
185
216
  owner_recently_changed: {
186
217
  status: 409,
187
218
  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."),
219
+ hint: text("A deletion cannot be requested for 7 days after the owner changed. Try again after that. If the change was not expected, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).", "Não dá para pedir a exclusão por 7 dias depois da troca de dono. Tente de novo depois disso. Se a troca não era esperada, escreva para contact@taggor.dev com o nome do workspace e o `request_id` deste erro (um campo da resposta; a CLI o imprime no fim da mensagem de erro)."),
189
220
  },
190
221
  workspace_has_subscription: {
191
222
  status: 409,
@@ -204,8 +235,8 @@ export const apiErrorCatalog = {
204
235
  },
205
236
  email_unavailable: {
206
237
  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."),
238
+ title: "The e-mail could not be sent",
239
+ hint: text("The e-mail (an invitation or a deletion confirmation) could not be sent, so nothing was saved or scheduled. Nothing in your request needs to change: try again in a few minutes. If it keeps failing, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).", "Não foi possível enviar o e-mail (um convite ou a confirmação de exclusão), então nada foi salvo nem agendado. Nada na sua requisição precisa mudar: tente de novo em alguns minutos. Se continuar falhando, escreva para contact@taggor.dev com o `request_id` deste erro (um campo da resposta; a CLI o imprime no fim da mensagem de erro)."),
209
240
  },
210
241
  session_required: {
211
242
  status: 403,
@@ -215,17 +246,17 @@ export const apiErrorCatalog = {
215
246
  invalid_preferences: {
216
247
  status: 422,
217
248
  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."),
249
+ hint: text("The `errors` field of the error lists the preference that was refused. Send at least one of these keys and no other: `locale` (en or pt-BR), `theme` (light, dark or system), `time_zone` (an IANA name such as America/Sao_Paulo) and `telemetry_consent` (true or false).", "O campo `errors` do erro lista a preferência recusada. Envie pelo menos uma destas chaves e nenhuma outra: `locale` (en ou pt-BR), `theme` (light, dark ou system), `time_zone` (um nome IANA, como America/Sao_Paulo) e `telemetry_consent` (true ou false)."),
219
250
  },
220
251
  legal_versions_changed: {
221
252
  status: 409,
222
253
  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."),
254
+ hint: text("A text or its prices changed while the page was open and nothing was recorded. Read the current Terms (https://taggor.dev/legal/terms) and Privacy Policy (https://taggor.dev/legal/privacy), reload the page and accept again.", "Um texto ou os preços dele mudaram com a página aberta e nada foi gravado. Leia os Termos (https://taggor.dev/legal/terms) e a Política de Privacidade (https://taggor.dev/legal/privacy) vigentes, recarregue a página e aceite de novo."),
224
255
  },
225
256
  legal_acceptance_unavailable: {
226
257
  status: 503,
227
258
  title: "The text to accept cannot be shown right now",
228
- hint: text("The prices shown beside the box could not be read. Nothing was recorded; retry in a moment.", "Os preços exibidos junto da caixa não puderam ser lidos. Nada foi gravado; tente de novo em instantes."),
259
+ hint: text("The page could not load the prices that go with the legal text you are accepting (on the checkout or on the consent to usage above the plan), so your acceptance was not recorded and nothing was charged. Reload the page and accept again.", "A página não conseguiu carregar os preços que acompanham o texto legal que você está aceitando (no checkout ou no consentimento de uso acima do plano), então o aceite não foi gravado e nada foi cobrado. Recarregue a página e aceite de novo."),
229
260
  },
230
261
  invalid_login_state: {
231
262
  status: 400,
@@ -235,7 +266,7 @@ export const apiErrorCatalog = {
235
266
  login_failed: {
236
267
  status: 400,
237
268
  title: "Login failed",
238
- 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."),
269
+ hint: text("Start the sign-in again; if it keeps failing, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).", "Comece o login de novo; se continuar falhando, escreva para contact@taggor.dev com o `request_id` deste erro (um campo da resposta; a CLI o imprime no fim da mensagem de erro)."),
239
270
  },
240
271
  identity_provider_unavailable: {
241
272
  status: 503,
@@ -260,7 +291,7 @@ export const apiErrorCatalog = {
260
291
  request_rejected: {
261
292
  status: 400,
262
293
  title: "Request rejected",
263
- 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."),
294
+ hint: text("Read the `detail` field of the error (and `errors`, when present): it says which field was refused and why. Fix that field, for example a missing `name` or a number sent as text, and send the request again.", "Leia o campo `detail` do erro (e `errors`, quando houver): ele diz qual campo foi recusado e por quê. Corrija esse campo, por exemplo um `name` que falta ou um número enviado como texto, e envie a requisição de novo."),
264
295
  },
265
296
  rate_limited: {
266
297
  status: 429,
@@ -274,7 +305,7 @@ export const apiErrorCatalog = {
274
305
  },
275
306
  rate_limiter_unavailable: {
276
307
  status: 503,
277
- title: "Rate limiting is temporarily unavailable",
308
+ title: "Rate limiting could not be checked",
278
309
  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."),
279
310
  },
280
311
  invalid_cursor: {
@@ -295,7 +326,7 @@ export const apiErrorCatalog = {
295
326
  build_not_publishable: {
296
327
  status: 409,
297
328
  title: "The build cannot become a version",
298
- 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."),
329
+ hint: text("Read the build's diagnostics with `taggor logs <component>` (or `taggor logs bld_...` with the build id that `taggor publish` printed), fix the source and publish again. How to follow a build: https://docs.taggor.dev/quickstart/.", "Leia os diagnósticos do build com `taggor logs <componente>` (ou `taggor logs bld_...` com o id do build que o `taggor publish` imprimiu), corrija o fonte e publique de novo. Como acompanhar um build: https://docs.taggor.dev/quickstart/."),
299
330
  },
300
331
  version_already_exists: {
301
332
  status: 409,
@@ -350,7 +381,7 @@ export const apiErrorCatalog = {
350
381
  member_limit_reached: {
351
382
  status: 409,
352
383
  title: "The workspace has no member seat left on its plan",
353
- 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."),
384
+ hint: text("Remove a member or revoke a pending invitation, then invite again. A plan with a higher member limit raises it (the problem's upgrade_url); the limit of each plan is in the plans table at https://taggor.dev/pricing#limits. Members already in the workspace keep their access.", "Remova um membro ou revogue um convite pendente e convide de novo. Um plano com limite de membros maior o aumenta (o upgrade_url do problema); o limite de cada plano está na tabela de planos em https://taggor.dev/pt-br/pricing#limits. Quem já é membro mantém o acesso."),
354
385
  },
355
386
  site_props_invalid: {
356
387
  status: 422,
@@ -380,7 +411,7 @@ export const apiErrorCatalog = {
380
411
  invalid_webhook_signature: {
381
412
  status: 400,
382
413
  title: "The webhook signature is invalid",
383
- 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."),
414
+ hint: text("Only Stripe calls this endpoint, so this concerns whoever sets up the Stripe integration. Check that the signing secret of the endpoint in the Stripe dashboard is the one Taggor holds for this environment and that nothing between Stripe and Taggor changes the request body; Stripe retries the delivery on its own.", "Só o Stripe chama este endpoint, então isto diz respeito a quem configura a integração com o Stripe. Confira se o segredo de assinatura do endpoint no painel do Stripe é o que o Taggor guarda para este ambiente e se nada entre o Stripe e o Taggor altera o corpo da requisição; o Stripe repete a entrega sozinho."),
384
415
  },
385
416
  billing_conflict: {
386
417
  status: 409,
@@ -390,7 +421,7 @@ export const apiErrorCatalog = {
390
421
  billing_unavailable: {
391
422
  status: 503,
392
423
  title: "Billing is temporarily unavailable",
393
- 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."),
424
+ hint: text("Nothing was charged or changed. Retry after a short wait; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).", "Nada foi cobrado nem alterado. Tente de novo depois de um instante; se persistir, escreva para contact@taggor.dev com o `request_id` deste erro (um campo da resposta; a CLI o imprime no fim da mensagem de erro)."),
394
425
  },
395
426
  retention_exceeds_plan: {
396
427
  status: 422,
@@ -405,7 +436,7 @@ export const apiErrorCatalog = {
405
436
  api_key_quota_exceeded: {
406
437
  status: 409,
407
438
  title: "The workspace reached its limit of active API keys",
408
- 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."),
439
+ hint: text("Revoke a key you no longer use (`DELETE /v1/api-keys/{id}`), then create the new one. A higher plan helps only where its limit is higher: the active API keys of each plan are in the plans table at https://taggor.dev/pricing#limits.", "Revogue uma chave que você não usa mais (`DELETE /v1/api-keys/{id}`) e crie a nova. Um plano maior só ajuda onde o limite dele é maior: as chaves de API ativas de cada plano estão na tabela de planos em https://taggor.dev/pt-br/pricing#limits."),
409
440
  },
410
441
  server_key_limit_reached: {
411
442
  status: 409,
@@ -444,28 +475,28 @@ export const apiErrorCatalog = {
444
475
  },
445
476
  platform_build_capacity: {
446
477
  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)."),
478
+ title: "New builds are temporarily paused",
479
+ hint: text("The platform paused new builds for a while; nothing is wrong with your request, your workspace or your plan, and nothing was stored. Retry the same upload after the number of seconds in the Retry-After header (until the next UTC Monday at the latest).", "A plataforma pausou novos builds por um tempo; não há nada de errado com sua requisição, seu workspace nem seu plano, e nada foi guardado. Repita o mesmo envio depois dos segundos do cabeçalho Retry-After (na próxima segunda-feira UTC, no máximo)."),
449
480
  },
450
481
  database_unavailable: {
451
482
  status: 503,
452
- title: "The service is temporarily unavailable",
483
+ title: "The service could not complete the request",
453
484
  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
485
  },
455
486
  manifest_publish_unavailable: {
456
487
  status: 503,
457
488
  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."),
489
+ 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 site still updates on its own, and if you want us to check it, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).", "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, o site ainda se atualiza sozinho, e se quiser que a gente confira, escreva para contact@taggor.dev com o `request_id` deste erro (um campo da resposta; a CLI o imprime no fim da mensagem de erro)."),
459
490
  },
460
491
  internal_error: {
461
492
  status: 500,
462
493
  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."),
494
+ hint: text("Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).", "Tente de novo uma vez depois de alguns segundos; se persistir, escreva para contact@taggor.dev com o `request_id` deste erro (um campo da resposta; a CLI o imprime no fim da mensagem de erro)."),
464
495
  },
465
496
  configuration_error: {
466
497
  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."),
498
+ title: "The service is unavailable right now",
499
+ hint: text("Nothing in your request needs to change. Retry in a few minutes; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).", "Nada na sua requisição precisa mudar. Tente de novo em alguns minutos; se persistir, escreva para contact@taggor.dev com o `request_id` deste erro (um campo da resposta; a CLI o imprime no fim da mensagem de erro)."),
469
500
  },
470
501
  };
471
502
  /**
@@ -475,7 +506,7 @@ export const apiErrorCatalog = {
475
506
  export const cliErrorCatalog = {
476
507
  "api.error": {
477
508
  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."),
509
+ hint: text("The message ends with the HTTP status, the error code and the request id; the code's page is under https://docs.taggor.dev/errors/ (the code is the `code` field when you run with `--json`, which also shows `detail` and `errors`). Fix what `detail` names and run the command again.", "A mensagem termina com o status HTTP, o código do erro e o id da requisição; a página do código fica em https://docs.taggor.dev/errors/ (o código é o campo `code` ao rodar com `--json`, que também mostra `detail` e `errors`). Corrija o que o `detail` cita e rode o comando de novo."),
479
510
  },
480
511
  "sites.invalidHold": {
481
512
  title: text("The hold is not 1 to 3 seconds", "A espera não é de 1 a 3 segundos"),
@@ -483,7 +514,7 @@ export const cliErrorCatalog = {
483
514
  },
484
515
  "sites.invalidLoading": {
485
516
  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."),
517
+ hint: text("Pass `eager` (import on load, the default) or `idle` (once the page is idle) to `--loading`.", "Passe `eager` (importar na carga, o padrão) ou `idle` (quando a página estiver ociosa) a `--loading`."),
487
518
  },
488
519
  "api.network": {
489
520
  title: text("The API cannot be reached", "A API não pôde ser alcançada"),
@@ -510,8 +541,8 @@ export const cliErrorCatalog = {
510
541
  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
542
  },
512
543
  "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)."),
544
+ title: text("Complete this action in the portal", "Conclua esta ação no portal"),
545
+ hint: text("Complete this action in the portal (https://app.taggor.dev), signed in as a person: the message names the page and the steps. For an agent: do not retry; give the person the page and the steps (credentials, payment, legal acceptance, deleting the workspace and changing the owner are never done by an agent).", "Conclua esta ação no portal (https://app.taggor.dev), entrando como pessoa: a mensagem informa a página e os passos. Para um agente: não tente de novo; entregue à pessoa 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
546
  },
516
547
  "input.missingFlag": {
517
548
  title: text("A flag is required", "Falta uma flag"),
@@ -523,7 +554,7 @@ export const cliErrorCatalog = {
523
554
  },
524
555
  "agent.noBundle": {
525
556
  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."),
557
+ hint: text("Download the CLI from https://app.taggor.dev/agents/, the page that lists the install command, and run the command again.", "Baixe a CLI em https://app.taggor.dev/agents/, a página que lista o comando de instalação, e rode o comando de novo."),
527
558
  },
528
559
  "agent.badTarget": {
529
560
  title: text("Unknown agent", "Agente desconhecido"),
@@ -539,7 +570,7 @@ export const cliErrorCatalog = {
539
570
  },
540
571
  "agent.bundleCorrupt": {
541
572
  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."),
573
+ hint: text("Nothing was written. Download the CLI again from https://app.taggor.dev/agents/ and check its sha256 as the install steps show (https://docs.taggor.dev/quickstart/).", "Nada foi gravado. Baixe a CLI de novo em https://app.taggor.dev/agents/ e confira o sha256 como os passos de instalação mostram (https://docs.taggor.dev/quickstart/)."),
543
574
  },
544
575
  "publish.noProject": {
545
576
  title: text("No taggor.json found", "Nenhum taggor.json encontrado"),
@@ -547,7 +578,47 @@ export const cliErrorCatalog = {
547
578
  },
548
579
  "publish.buildTimeout": {
549
580
  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`."),
581
+ hint: text("The build keeps running. Follow it with `taggor logs <component> --follow`, or `taggor logs bld_... --follow` with the build id that `taggor publish` printed (https://docs.taggor.dev/quickstart/). To wait longer next time, pass `--timeout <seconds>` to `taggor publish`.", "O build continua rodando. Acompanhe com `taggor logs <componente> --follow`, ou `taggor logs bld_... --follow` com o id do build que o `taggor publish` imprimiu (https://docs.taggor.dev/quickstart/). Para esperar mais da próxima vez, passe `--timeout <segundos>` ao `taggor publish`."),
582
+ },
583
+ "preview.buildWithSelector": {
584
+ title: text("--build with --version or --channel", "--build com --version ou --channel"),
585
+ hint: text("`--build` previews a new build of the project's component. To preview a version that exists, leave `--build` out and pass `--version ver_…` or `--channel production|staging`.", "`--build` mostra a prévia de um build novo do componente do projeto. Para ver uma versão que já existe, tire o `--build` e passe `--version ver_…` ou `--channel production|staging`."),
586
+ },
587
+ "preview.noVersions": {
588
+ title: text("The component has no version yet", "O componente ainda não tem versão"),
589
+ hint: text("Preview a build with `taggor preview <component> --build` (it spends one build of the workspace's quota), or publish a version with `taggor publish`.", "Veja a prévia de um build com `taggor preview <componente> --build` (gasta um build da cota do workspace), ou publique uma versão com `taggor publish`."),
590
+ },
591
+ "publish.invalidBuild": {
592
+ title: text("Invalid build id", "Id de build inválido"),
593
+ hint: text("Pass the id `taggor preview --build` or `taggor publish` printed, `bld_` followed by 26 characters.", "Passe o id que o `taggor preview --build` ou o `taggor publish` imprimiu, `bld_` seguido de 26 caracteres."),
594
+ },
595
+ "publish.buildNeedsComponent": {
596
+ title: text("--build needs exactly one component", "--build precisa de exatamente um componente"),
597
+ hint: text("Run `taggor publish <component> --build <bld_…>` with the component's tag or id.", "Rode `taggor publish <componente> --build <bld_…>` com a tag ou o id do componente."),
598
+ },
599
+ "publish.buildWithDryRun": {
600
+ title: text("--build with --dry-run", "--build com --dry-run"),
601
+ hint: text("`--build` sends nothing to build, so there is nothing to dry-run. Run it without `--dry-run`.", "`--build` não envia nada para construir, então não há o que simular. Rode sem `--dry-run`."),
602
+ },
603
+ "publish.buildNotFound": {
604
+ title: text("No such build in this workspace", "Esse build não existe neste workspace"),
605
+ hint: text("Check the id and the workspace (`taggor whoami`). A build of another workspace is not visible here. Run `taggor preview <component> --build` to make one.", "Confira o id e o workspace (`taggor whoami`). O build de outro workspace não aparece aqui. Rode `taggor preview <componente> --build` para criar um."),
606
+ },
607
+ "publish.buildExpired": {
608
+ title: text("The build expired", "O build expirou"),
609
+ hint: text("A build can become a version for 7 days after it finishes. Run `taggor preview <component> --build` to build again, or `taggor publish`.", "Um build vira versão por 7 dias depois de terminar. Rode `taggor preview <componente> --build` para construir de novo, ou `taggor publish`."),
610
+ },
611
+ "preview.versionAndChannel": {
612
+ title: text("--version and --channel together", "--version e --channel juntos"),
613
+ 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."),
614
+ },
615
+ "preview.channelEmpty": {
616
+ title: text("No version is assigned to this channel", "Nenhuma versão está atribuída a este canal"),
617
+ hint: text("Pass `--version ver_…` (see `taggor versions <component>`), or promote a version to the channel first.", "Passe `--version ver_…` (veja `taggor versions <componente>`), ou promova antes uma versão para o canal."),
618
+ },
619
+ "preview.unavailable": {
620
+ title: text("The preview link could not be made", "Não foi possível gerar o link de prévia"),
621
+ hint: text("Run the command again. If it repeats, write to contact@taggor.dev with the request id (printed at the end of the error message) and the CLI version (`taggor --version`).", "Rode o comando de novo. Se repetir, escreva para contact@taggor.dev com o id da requisição (impresso no fim da mensagem de erro) e a versão da CLI (`taggor --version`)."),
551
622
  },
552
623
  "pull.versionAndChannel": {
553
624
  title: text("--version and --channel together", "--version e --channel juntos"),
@@ -558,12 +629,12 @@ export const cliErrorCatalog = {
558
629
  hint: text("Publish one with `taggor publish`, then pull it.", "Publique uma com `taggor publish` e baixe depois."),
559
630
  },
560
631
  "pull.channelEmpty": {
561
- title: text("The channel points to nothing", "O canal não aponta para nada"),
632
+ title: text("No version is assigned to this channel", "Nenhuma versão está atribuída a este canal"),
562
633
  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
634
  },
564
635
  "pull.hashMismatch": {
565
636
  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."),
637
+ hint: text("Nothing was written. Run the command again; if it repeats, check the network path (a proxy) and write to contact@taggor.dev with the request id (printed at the end of the error message), the CLI version (`taggor --version`) and the version id (`ver_...`) you were pulling.", "Nada foi gravado. Rode o comando de novo; se repetir, confira o caminho de rede (um proxy) e escreva para contact@taggor.dev com o id da requisição (impresso no fim da mensagem de erro), a versão da CLI (`taggor --version`) e o id da versão (`ver_...`) que você baixava."),
567
638
  },
568
639
  "pull.noHash": {
569
640
  title: text("The API sent the source without its hash", "A API enviou o código sem o hash"),
@@ -571,20 +642,44 @@ export const cliErrorCatalog = {
571
642
  },
572
643
  "pull.tooLarge": {
573
644
  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."),
645
+ hint: text("Nothing was written. A published source is at most 5 MiB compressed: check that `--api-url` points to the Taggor API, and if it does, write to contact@taggor.dev with the request id (printed at the end of the error message), the CLI version (`taggor --version`) and the version id (`ver_...`) you were pulling.", "Nada foi gravado. Um código publicado tem no máximo 5 MiB comprimido: confira se `--api-url` aponta para a API do Taggor e, se aponta, escreva para contact@taggor.dev com o id da requisição (impresso no fim da mensagem de erro), a versão da CLI (`taggor --version`) e o id da versão (`ver_...`) que você baixava."),
575
646
  },
576
647
  "pull.packageRefused": {
577
648
  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."),
649
+ hint: text("Nothing was written. The package failed the same checks the API runs on upload (paths, links, size): write to contact@taggor.dev with the request id (printed at the end of the error message), the CLI version (`taggor --version`) and the version id (`ver_...`) you were pulling.", "Nada foi gravado. O pacote falhou nas mesmas conferências que a API faz no envio (caminhos, links, tamanho): escreva para contact@taggor.dev com o id da requisição (impresso no fim da mensagem de erro), a versão da CLI (`taggor --version`) e o id da versão (`ver_...`) que você baixava."),
579
650
  },
580
651
  "pull.secrets": {
581
652
  title: text("The downloaded source holds a credential", "O código baixado tem uma credencial"),
582
653
  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
654
  },
655
+ "init.needsLogin": {
656
+ title: text("Sign in before initializing a project", "Entre na sua conta antes de iniciar um projeto"),
657
+ hint: text("The project is kept in the folder of your workspace, so Taggor must know which one. Run `taggor login`, then `taggor init` again.", "O projeto fica na pasta do seu workspace, então o Taggor precisa saber qual. Rode `taggor login` e depois `taggor init` de novo."),
658
+ },
659
+ "workspace.noneSelected": {
660
+ title: text("No workspace is selected", "Nenhum workspace está selecionado"),
661
+ hint: text("You have more than one workspace. Pick one with `taggor workspaces use <slug>`, or pass `--workspace <slug>`.", "Você tem mais de um workspace. Escolha um com `taggor workspaces use <slug>`, ou passe `--workspace <slug>`."),
662
+ },
584
663
  "pull.notEmpty": {
585
664
  title: text("The folder is not empty", "A pasta não está vazia"),
586
665
  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
666
  },
667
+ "pull.localChanges": {
668
+ title: text("A component has changes that were never published", "Um componente tem alterações que nunca foram publicadas"),
669
+ hint: text("Pulling would overwrite your changes. Publish them first, pull into another folder with `--dir <folder>`, or add `--force` to replace them.", "O pull sobrescreveria as suas alterações. Publique antes, baixe em outra pasta com `--dir <pasta>`, ou use `--force` para substituí-las."),
670
+ },
671
+ "pull.noComponents": {
672
+ title: text("This workspace has no components", "Este workspace não tem componentes"),
673
+ hint: text("Publish a component first (`taggor init`, then `taggor publish`), or check the workspace with `taggor whoami`.", "Publique um componente antes (`taggor init`, depois `taggor publish`), ou confira o workspace com `taggor whoami`."),
674
+ },
675
+ "pull.nothingToPull": {
676
+ title: text("Nothing was pulled", "Nada foi baixado"),
677
+ hint: text("No component has a published version to bring, or their folders already have files. Publish a version, or add `--force` to replace the files.", "Nenhum componente tem versão publicada para trazer, ou as pastas deles já têm arquivos. Publique uma versão, ou use `--force` para substituir os arquivos."),
678
+ },
679
+ "pull.versionNeedsComponent": {
680
+ title: text("A version belongs to one component", "Uma versão pertence a um componente"),
681
+ hint: text("Name the component: `taggor pull <component> --version <ver_…>`. Use `--channel` to pull a channel of every component.", "Diga qual componente: `taggor pull <componente> --version <ver_…>`. Use `--channel` para baixar um canal de todos os componentes."),
682
+ },
588
683
  "projects.invalidDays": {
589
684
  title: text("Invalid --older-than", "--older-than inválido"),
590
685
  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`."),
@@ -625,8 +720,8 @@ export const cliErrorCatalog = {
625
720
  title: text("The daily cap is above the platform's ceiling", "O teto diário passa do máximo da plataforma"),
626
721
  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
722
  },
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.
723
+ // The strict file of `taggor data export --out`; given hints when the server key file reused it,
724
+ // which took them off the exemption list.
630
725
  "data.outExists": {
631
726
  title: text("The export file already exists", "O arquivo da exportação já existe"),
632
727
  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."),
@@ -639,7 +734,7 @@ export const cliErrorCatalog = {
639
734
  title: text("Could not write the export file", "Não foi possível gravar o arquivo da exportação"),
640
735
  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
736
  },
642
- // `taggor sites server-keys` (spike, ADR 0066, no ticket): the SSR server keys of a site.
737
+ // `taggor sites server-keys`: the SSR server keys of a site.
643
738
  "serverkeys.secretDestination": {
644
739
  title: text("Say where the new server key's secret goes", "Diga para onde vai o segredo da chave de servidor nova"),
645
740
  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."),
@@ -681,15 +776,15 @@ export const cliErrorCatalog = {
681
776
  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
777
  },
683
778
  "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."),
779
+ title: text("New builds are temporarily paused", "Novos builds estão temporariamente pausados"),
780
+ hint: text("The platform paused new builds for a while; your plan is not the cause and nothing was sent. Send the same upload again after the time the message shows (it comes from the API's Retry-After).", "A plataforma pausou novos builds por um tempo; o seu plano não é a causa e nada foi enviado. Envie o mesmo pacote de novo depois do tempo que a mensagem mostra (ele vem do Retry-After da API)."),
686
781
  },
687
782
  "props.invalidKind": {
688
783
  title: text("Unknown way to read the value", "Jeito de ler o valor desconhecido"),
689
784
  hint: text("Pass --as string (the default), number, boolean or json.", "Passe --as string (o padrão), number, boolean ou json."),
690
785
  },
691
786
  "props.invalidValue": {
692
- title: text("The value is not of the kind asked", "O valor não é do tipo pedido"),
787
+ title: text("Value does not match the requested type", "O valor não corresponde ao tipo pedido"),
693
788
  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
789
  },
695
790
  "props.notAttached": {
@@ -698,7 +793,7 @@ export const cliErrorCatalog = {
698
793
  },
699
794
  "sites.deleteInPortal": {
700
795
  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."),
796
+ hint: text("Nothing was deleted and the CLI cannot do it. Delete the site in the portal (https://app.taggor.dev), signed in as a person: open the site's page, go to Settings and choose Delete site. For an agent: give the person these steps; there is no other way.", "Nada foi apagado e a CLI não faz isso. Apague o site no portal (https://app.taggor.dev), entrando como pessoa: abra a página do site, vá em Settings e escolha Delete site. Para um agente: entregue à pessoa estes passos; não há outro caminho."),
702
797
  },
703
798
  "props.conflict": {
704
799
  title: text("The site's props kept changing", "As props do site continuaram mudando"),