@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,749 @@
1
+ /**
2
+ * `apiErrorCatalog` and `cliErrorCatalog` (TAG-1105): the single list of the error codes the API
3
+ * answers (RFC 9457 `code`) and of the CLI errors an agent can act on, each with what to do about
4
+ * it (`hint`, en and pt-BR). Zod-free.
5
+ *
6
+ * The rule: every error has a stable `code`, a message that says what to do and not only what
7
+ * went wrong, a `hint` and a `docs_url` that points to a page that exists. The API builds its
8
+ * problem details from here (`apps/api/src/interfaces/http/problem.ts`), `pnpm --filter
9
+ * @taggor/contract gen` writes one docs page per code (`docs/errors/<locale>/<code>.md`, served
10
+ * at `/errors/<code>`) and checks it for freshness in `make check`, and
11
+ * `scripts/check-error-hints.ts` fails when `apps/api`, `apps/builder` or `cli` raise a code that
12
+ * has no hint. Build diagnostics keep their own catalog (`diagnostic-catalog.ts`, pages under
13
+ * `/diagnostics/`), which already requires a hint per code. Codes are public API: add, never
14
+ * rename or reuse.
15
+ */
16
+ import type { LocalizedText } from "./prop-type-docs.js";
17
+ /** Base of every `docs_url` of an API or CLI error: the code's page on the docs site (E20). */
18
+ export declare const ERROR_DOCS_BASE_URL = "https://docs.taggor.dev/errors/";
19
+ /** Format of an API error code. */
20
+ export declare const API_ERROR_CODE_PATTERN: RegExp;
21
+ /** Format of a CLI error code: the message key, `area.name`. */
22
+ export declare const CLI_ERROR_CODE_PATTERN: RegExp;
23
+ /** One API error code. */
24
+ export interface ApiErrorEntry {
25
+ /** HTTP status, unless the caller overrides it (only `request_rejected` does). */
26
+ readonly status: number;
27
+ /** Fixed title of the problem (RFC 9457). */
28
+ readonly title: string;
29
+ /** What to do about it, in an imperative sentence. */
30
+ readonly hint: LocalizedText;
31
+ }
32
+ /** One CLI error code. */
33
+ export interface CliErrorEntry {
34
+ /** A few words, for headings. */
35
+ readonly title: LocalizedText;
36
+ /** What to do about it, in an imperative sentence. */
37
+ readonly hint: LocalizedText;
38
+ }
39
+ /**
40
+ * Inputs: any entry with a hint. Output: true when both locales have non-blank text.
41
+ * Errors: none. Side effects: none.
42
+ */
43
+ export declare function hasErrorHint(entry: {
44
+ readonly hint: LocalizedText;
45
+ }): boolean;
46
+ /**
47
+ * The docs page of an error code.
48
+ * Inputs: an API or CLI error code. Output: its absolute URL. Errors: none. Side effects: none.
49
+ */
50
+ export declare function errorDocsUrl(code: string): string;
51
+ /** Every error code of the API, with status, title and hint. */
52
+ export declare const apiErrorCatalog: {
53
+ readonly validation_failed: {
54
+ readonly status: 400;
55
+ readonly title: "Request validation failed";
56
+ readonly hint: LocalizedText;
57
+ };
58
+ readonly malformed_request: {
59
+ readonly status: 400;
60
+ readonly title: "Malformed request";
61
+ readonly hint: LocalizedText;
62
+ };
63
+ readonly unauthenticated: {
64
+ readonly status: 401;
65
+ readonly title: "Authentication required";
66
+ readonly hint: LocalizedText;
67
+ };
68
+ readonly cross_site_request: {
69
+ readonly status: 403;
70
+ readonly title: "Cross-site request refused";
71
+ readonly hint: LocalizedText;
72
+ };
73
+ readonly workspace_suspended: {
74
+ readonly status: 403;
75
+ readonly title: "The workspace is suspended";
76
+ readonly hint: LocalizedText;
77
+ };
78
+ readonly component_disabled: {
79
+ readonly status: 403;
80
+ readonly title: "The component is disabled";
81
+ readonly hint: LocalizedText;
82
+ };
83
+ readonly suspension_state_changed: {
84
+ readonly status: 409;
85
+ readonly title: "The workspace's suspension changed during the walk";
86
+ readonly hint: LocalizedText;
87
+ };
88
+ readonly captcha_failed: {
89
+ readonly status: 403;
90
+ readonly title: "The human check failed";
91
+ readonly hint: LocalizedText;
92
+ };
93
+ readonly abuse_reports_unavailable: {
94
+ readonly status: 503;
95
+ readonly title: "The abuse report channel is temporarily unavailable";
96
+ readonly hint: LocalizedText;
97
+ };
98
+ readonly abuse_case_closed: {
99
+ readonly status: 409;
100
+ readonly title: "The abuse case is already closed";
101
+ readonly hint: LocalizedText;
102
+ };
103
+ readonly usage_flag_reviewed: {
104
+ readonly status: 409;
105
+ readonly title: "The usage flag is already closed";
106
+ readonly hint: LocalizedText;
107
+ };
108
+ readonly insufficient_scope: {
109
+ readonly status: 403;
110
+ readonly title: "The credential lacks a required scope";
111
+ readonly hint: LocalizedText;
112
+ };
113
+ readonly permission_denied: {
114
+ readonly status: 403;
115
+ readonly title: "The workspace role does not permit this action";
116
+ readonly hint: LocalizedText;
117
+ };
118
+ readonly human_action_required: {
119
+ readonly status: 403;
120
+ readonly title: "This action is for a person in the portal";
121
+ readonly hint: LocalizedText;
122
+ };
123
+ readonly api_key_creation_requires_session: {
124
+ readonly status: 403;
125
+ readonly title: "Only a portal session creates API keys";
126
+ readonly hint: LocalizedText;
127
+ };
128
+ readonly api_key_scope_exceeds_role: {
129
+ readonly status: 403;
130
+ readonly title: "The requested scopes exceed the creator's workspace role";
131
+ readonly hint: LocalizedText;
132
+ };
133
+ readonly user_preferences_require_session: {
134
+ readonly status: 403;
135
+ readonly title: "User preferences require a portal session";
136
+ readonly hint: LocalizedText;
137
+ };
138
+ readonly user_sessions_require_portal: {
139
+ readonly status: 403;
140
+ readonly title: "Session management requires a portal session";
141
+ readonly hint: LocalizedText;
142
+ };
143
+ readonly session_not_found: {
144
+ readonly status: 404;
145
+ readonly title: "Session not found";
146
+ readonly hint: LocalizedText;
147
+ };
148
+ readonly invitation_role_exceeds_role: {
149
+ readonly status: 403;
150
+ readonly title: "The invitation's role is above the sender's own role";
151
+ readonly hint: LocalizedText;
152
+ };
153
+ readonly invitation_email_mismatch: {
154
+ readonly status: 403;
155
+ readonly title: "The signed-in e-mail is not the one the invitation is for";
156
+ readonly hint: LocalizedText;
157
+ };
158
+ readonly invitation_requires_session: {
159
+ readonly status: 403;
160
+ readonly title: "Only a portal session accepts invitations";
161
+ readonly hint: LocalizedText;
162
+ };
163
+ readonly invitation_unavailable: {
164
+ readonly status: 410;
165
+ readonly title: "The invitation can no longer be accepted";
166
+ readonly hint: LocalizedText;
167
+ };
168
+ readonly invitation_already_pending: {
169
+ readonly status: 409;
170
+ readonly title: "This address already has a pending invitation";
171
+ readonly hint: LocalizedText;
172
+ };
173
+ readonly invitee_already_member: {
174
+ readonly status: 409;
175
+ readonly title: "This address already belongs to a member";
176
+ readonly hint: LocalizedText;
177
+ };
178
+ readonly invitation_not_pending: {
179
+ readonly status: 409;
180
+ readonly title: "The invitation is no longer pending";
181
+ readonly hint: LocalizedText;
182
+ };
183
+ readonly invitation_quota_exceeded: {
184
+ readonly status: 429;
185
+ readonly title: "Too many invitations sent today in this workspace";
186
+ readonly hint: LocalizedText;
187
+ };
188
+ readonly notification_quota_exceeded: {
189
+ readonly status: 429;
190
+ readonly title: "The confirmation could not be requested now";
191
+ readonly hint: LocalizedText;
192
+ };
193
+ readonly notification_token_invalid: {
194
+ readonly status: 404;
195
+ readonly title: "The notification link is not valid";
196
+ readonly hint: LocalizedText;
197
+ };
198
+ readonly owner_transfer_unavailable: {
199
+ readonly status: 410;
200
+ readonly title: "The ownership offer can no longer be accepted";
201
+ readonly hint: LocalizedText;
202
+ };
203
+ readonly owner_transfer_already_pending: {
204
+ readonly status: 409;
205
+ readonly title: "The workspace already has a pending ownership offer";
206
+ readonly hint: LocalizedText;
207
+ };
208
+ readonly owner_transfer_not_ready: {
209
+ readonly status: 409;
210
+ readonly title: "The ownership offer cannot be accepted yet";
211
+ readonly hint: LocalizedText;
212
+ };
213
+ readonly owner_recently_changed: {
214
+ readonly status: 409;
215
+ readonly title: "The workspace changed owner recently";
216
+ readonly hint: LocalizedText;
217
+ };
218
+ readonly workspace_has_subscription: {
219
+ readonly status: 409;
220
+ readonly title: "The workspace still has a subscription";
221
+ readonly hint: LocalizedText;
222
+ };
223
+ readonly lifecycle_rate_limited: {
224
+ readonly status: 429;
225
+ readonly title: "Too many deletion requests or ownership offers today";
226
+ readonly hint: LocalizedText;
227
+ };
228
+ readonly workspace_deletion_scheduled: {
229
+ readonly status: 409;
230
+ readonly title: "The workspace is scheduled for deletion";
231
+ readonly hint: LocalizedText;
232
+ };
233
+ readonly email_unavailable: {
234
+ readonly status: 503;
235
+ readonly title: "E-mail cannot be sent in this environment";
236
+ readonly hint: LocalizedText;
237
+ };
238
+ readonly session_required: {
239
+ readonly status: 403;
240
+ readonly title: "This route needs a portal session";
241
+ readonly hint: LocalizedText;
242
+ };
243
+ readonly invalid_preferences: {
244
+ readonly status: 422;
245
+ readonly title: "User preferences are invalid";
246
+ readonly hint: LocalizedText;
247
+ };
248
+ readonly legal_versions_changed: {
249
+ readonly status: 409;
250
+ readonly title: "The legal texts changed while the page was open";
251
+ readonly hint: LocalizedText;
252
+ };
253
+ readonly invalid_login_state: {
254
+ readonly status: 400;
255
+ readonly title: "Invalid or expired login";
256
+ readonly hint: LocalizedText;
257
+ };
258
+ readonly login_failed: {
259
+ readonly status: 400;
260
+ readonly title: "Login failed";
261
+ readonly hint: LocalizedText;
262
+ };
263
+ readonly identity_provider_unavailable: {
264
+ readonly status: 503;
265
+ readonly title: "Sign-in is not available";
266
+ readonly hint: LocalizedText;
267
+ };
268
+ readonly not_found: {
269
+ readonly status: 404;
270
+ readonly title: "Resource not found";
271
+ readonly hint: LocalizedText;
272
+ };
273
+ readonly method_not_allowed: {
274
+ readonly status: 405;
275
+ readonly title: "Method not allowed";
276
+ readonly hint: LocalizedText;
277
+ };
278
+ readonly unsupported_media_type: {
279
+ readonly status: 415;
280
+ readonly title: "Unsupported media type";
281
+ readonly hint: LocalizedText;
282
+ };
283
+ readonly request_rejected: {
284
+ readonly status: 400;
285
+ readonly title: "Request rejected";
286
+ readonly hint: LocalizedText;
287
+ };
288
+ readonly rate_limited: {
289
+ readonly status: 429;
290
+ readonly title: "Too many requests";
291
+ readonly hint: LocalizedText;
292
+ };
293
+ readonly client_has_sites: {
294
+ readonly status: 409;
295
+ readonly title: "The client still has sites";
296
+ readonly hint: LocalizedText;
297
+ };
298
+ readonly rate_limiter_unavailable: {
299
+ readonly status: 503;
300
+ readonly title: "Rate limiting is temporarily unavailable";
301
+ readonly hint: LocalizedText;
302
+ };
303
+ readonly invalid_cursor: {
304
+ readonly status: 400;
305
+ readonly title: "Invalid pagination cursor";
306
+ readonly hint: LocalizedText;
307
+ };
308
+ readonly idempotency_request_in_progress: {
309
+ readonly status: 409;
310
+ readonly title: "A request with this idempotency key is in progress";
311
+ readonly hint: LocalizedText;
312
+ };
313
+ readonly idempotency_key_reused: {
314
+ readonly status: 422;
315
+ readonly title: "Idempotency key reused with a different request";
316
+ readonly hint: LocalizedText;
317
+ };
318
+ readonly build_not_publishable: {
319
+ readonly status: 409;
320
+ readonly title: "The build cannot become a version";
321
+ readonly hint: LocalizedText;
322
+ };
323
+ readonly version_already_exists: {
324
+ readonly status: 409;
325
+ readonly title: "The version already exists";
326
+ readonly hint: LocalizedText;
327
+ };
328
+ readonly invalid_tag_name: {
329
+ readonly status: 400;
330
+ readonly title: "The tag name is not a valid custom element name";
331
+ readonly hint: LocalizedText;
332
+ };
333
+ readonly component_already_exists: {
334
+ readonly status: 409;
335
+ readonly title: "The workspace already has a component with this tag";
336
+ readonly hint: LocalizedText;
337
+ };
338
+ readonly tag_conflict: {
339
+ readonly status: 409;
340
+ readonly title: "Two components of the site use the same Custom Element tag";
341
+ readonly hint: LocalizedText;
342
+ };
343
+ readonly component_archived: {
344
+ readonly status: 409;
345
+ readonly title: "The component is archived";
346
+ readonly hint: LocalizedText;
347
+ };
348
+ readonly version_not_ready: {
349
+ readonly status: 409;
350
+ readonly title: "The version's build did not succeed";
351
+ readonly hint: LocalizedText;
352
+ };
353
+ readonly breaking_change_not_allowed: {
354
+ readonly status: 409;
355
+ readonly title: "The version breaks the one in production";
356
+ readonly hint: LocalizedText;
357
+ };
358
+ readonly no_previous_version: {
359
+ readonly status: 409;
360
+ readonly title: "The channel has no earlier version to go back to";
361
+ readonly hint: LocalizedText;
362
+ };
363
+ readonly channel_moved: {
364
+ readonly status: 409;
365
+ readonly title: "The channel no longer points to the version the request expected";
366
+ readonly hint: LocalizedText;
367
+ };
368
+ readonly site_component_limit: {
369
+ readonly status: 409;
370
+ readonly title: "The site already has the most components its plan allows";
371
+ readonly hint: LocalizedText;
372
+ };
373
+ readonly member_limit_reached: {
374
+ readonly status: 409;
375
+ readonly title: "The workspace has no member seat left on its plan";
376
+ readonly hint: LocalizedText;
377
+ };
378
+ readonly site_props_invalid: {
379
+ readonly status: 422;
380
+ readonly title: "The site's props do not fit the component";
381
+ readonly hint: LocalizedText;
382
+ };
383
+ readonly site_props_incompatible: {
384
+ readonly status: 409;
385
+ readonly title: "The site's saved props do not fit the new version";
386
+ readonly hint: LocalizedText;
387
+ };
388
+ readonly site_props_conflict: {
389
+ readonly status: 409;
390
+ readonly title: "The site's props changed since they were read";
391
+ readonly hint: LocalizedText;
392
+ };
393
+ readonly channel_has_no_version: {
394
+ readonly status: 409;
395
+ readonly title: "The channel has no version yet";
396
+ readonly hint: LocalizedText;
397
+ };
398
+ readonly plan_limit_reached: {
399
+ readonly status: 402;
400
+ readonly title: "The workspace reached a limit of its plan";
401
+ readonly hint: LocalizedText;
402
+ };
403
+ readonly invalid_webhook_signature: {
404
+ readonly status: 400;
405
+ readonly title: "The webhook signature is invalid";
406
+ readonly hint: LocalizedText;
407
+ };
408
+ readonly billing_conflict: {
409
+ readonly status: 409;
410
+ readonly title: "The billing request does not fit the workspace's billing state";
411
+ readonly hint: LocalizedText;
412
+ };
413
+ readonly billing_unavailable: {
414
+ readonly status: 503;
415
+ readonly title: "Billing is temporarily unavailable";
416
+ readonly hint: LocalizedText;
417
+ };
418
+ readonly retention_exceeds_plan: {
419
+ readonly status: 422;
420
+ readonly title: "A collection cannot keep submissions longer than the plan does";
421
+ readonly hint: LocalizedText;
422
+ };
423
+ readonly api_key_in_use: {
424
+ readonly status: 409;
425
+ readonly title: "An API key cannot revoke itself";
426
+ readonly hint: LocalizedText;
427
+ };
428
+ readonly api_key_quota_exceeded: {
429
+ readonly status: 409;
430
+ readonly title: "The workspace reached its limit of active API keys";
431
+ readonly hint: LocalizedText;
432
+ };
433
+ readonly server_key_limit_reached: {
434
+ readonly status: 409;
435
+ readonly title: "The site already holds its two SSR server keys";
436
+ readonly hint: LocalizedText;
437
+ };
438
+ readonly semver_bump_too_small: {
439
+ readonly status: 409;
440
+ readonly title: "The semver is too small for the manifest changes";
441
+ readonly hint: LocalizedText;
442
+ };
443
+ readonly breaking_collection_change: {
444
+ readonly status: 409;
445
+ readonly title: "The version breaks the schema of a collection that holds data";
446
+ readonly hint: LocalizedText;
447
+ };
448
+ readonly payload_too_large: {
449
+ readonly status: 413;
450
+ readonly title: "The request body is too large";
451
+ readonly hint: LocalizedText;
452
+ };
453
+ readonly source_package_invalid: {
454
+ readonly status: 422;
455
+ readonly title: "The source package is not valid";
456
+ readonly hint: LocalizedText;
457
+ };
458
+ readonly conversion_event_not_in_manifest: {
459
+ readonly status: 422;
460
+ readonly title: "The conversion event is not declared in the component's manifest";
461
+ readonly hint: LocalizedText;
462
+ };
463
+ readonly export_too_large: {
464
+ readonly status: 422;
465
+ readonly title: "The export holds too many submissions";
466
+ readonly hint: LocalizedText;
467
+ };
468
+ readonly build_quota_exceeded: {
469
+ readonly status: 429;
470
+ readonly title: "The workspace reached its build limit for the last 7 days";
471
+ readonly hint: LocalizedText;
472
+ };
473
+ readonly platform_build_capacity: {
474
+ readonly status: 429;
475
+ readonly title: "The platform reached its weekly emergency build fuse";
476
+ readonly hint: LocalizedText;
477
+ };
478
+ readonly database_unavailable: {
479
+ readonly status: 503;
480
+ readonly title: "The service is temporarily unavailable";
481
+ readonly hint: LocalizedText;
482
+ };
483
+ readonly manifest_publish_unavailable: {
484
+ readonly status: 503;
485
+ readonly title: "The change was saved but the site manifest is not updated yet";
486
+ readonly hint: LocalizedText;
487
+ };
488
+ readonly internal_error: {
489
+ readonly status: 500;
490
+ readonly title: "Internal server error";
491
+ readonly hint: LocalizedText;
492
+ };
493
+ readonly configuration_error: {
494
+ readonly status: 500;
495
+ readonly title: "Service misconfigured";
496
+ readonly hint: LocalizedText;
497
+ };
498
+ };
499
+ /** A code of `apiErrorCatalog`. */
500
+ export type ApiErrorCode = keyof typeof apiErrorCatalog;
501
+ /**
502
+ * The CLI errors that carry a hint. Each key is a `CliError` code (a key of the CLI's message
503
+ * table); a code absent here is listed in `scripts/error-hint-exemptions.json` until it gets one.
504
+ */
505
+ export declare const cliErrorCatalog: {
506
+ readonly "api.error": {
507
+ readonly title: LocalizedText;
508
+ readonly hint: LocalizedText;
509
+ };
510
+ readonly "sites.invalidHold": {
511
+ readonly title: LocalizedText;
512
+ readonly hint: LocalizedText;
513
+ };
514
+ readonly "sites.invalidLoading": {
515
+ readonly title: LocalizedText;
516
+ readonly hint: LocalizedText;
517
+ };
518
+ readonly "api.network": {
519
+ readonly title: LocalizedText;
520
+ readonly hint: LocalizedText;
521
+ };
522
+ readonly "publish.attachFailedAfterVersion": {
523
+ readonly title: LocalizedText;
524
+ readonly hint: LocalizedText;
525
+ };
526
+ readonly "api.rateLimited": {
527
+ readonly title: LocalizedText;
528
+ readonly hint: LocalizedText;
529
+ };
530
+ readonly "auth.notLoggedIn": {
531
+ readonly title: LocalizedText;
532
+ readonly hint: LocalizedText;
533
+ };
534
+ readonly "auth.rejected": {
535
+ readonly title: LocalizedText;
536
+ readonly hint: LocalizedText;
537
+ };
538
+ readonly "auth.forbidden": {
539
+ readonly title: LocalizedText;
540
+ readonly hint: LocalizedText;
541
+ };
542
+ readonly "auth.humanActionRequired": {
543
+ readonly title: LocalizedText;
544
+ readonly hint: LocalizedText;
545
+ };
546
+ readonly "input.missingFlag": {
547
+ readonly title: LocalizedText;
548
+ readonly hint: LocalizedText;
549
+ };
550
+ readonly "agent.noProject": {
551
+ readonly title: LocalizedText;
552
+ readonly hint: LocalizedText;
553
+ };
554
+ readonly "agent.noBundle": {
555
+ readonly title: LocalizedText;
556
+ readonly hint: LocalizedText;
557
+ };
558
+ readonly "agent.badTarget": {
559
+ readonly title: LocalizedText;
560
+ readonly hint: LocalizedText;
561
+ };
562
+ readonly "agent.unsafePath": {
563
+ readonly title: LocalizedText;
564
+ readonly hint: LocalizedText;
565
+ };
566
+ readonly "agent.markers": {
567
+ readonly title: LocalizedText;
568
+ readonly hint: LocalizedText;
569
+ };
570
+ readonly "agent.bundleCorrupt": {
571
+ readonly title: LocalizedText;
572
+ readonly hint: LocalizedText;
573
+ };
574
+ readonly "publish.noProject": {
575
+ readonly title: LocalizedText;
576
+ readonly hint: LocalizedText;
577
+ };
578
+ readonly "publish.buildTimeout": {
579
+ readonly title: LocalizedText;
580
+ readonly hint: LocalizedText;
581
+ };
582
+ readonly "pull.versionAndChannel": {
583
+ readonly title: LocalizedText;
584
+ readonly hint: LocalizedText;
585
+ };
586
+ readonly "pull.noVersions": {
587
+ readonly title: LocalizedText;
588
+ readonly hint: LocalizedText;
589
+ };
590
+ readonly "pull.channelEmpty": {
591
+ readonly title: LocalizedText;
592
+ readonly hint: LocalizedText;
593
+ };
594
+ readonly "pull.hashMismatch": {
595
+ readonly title: LocalizedText;
596
+ readonly hint: LocalizedText;
597
+ };
598
+ readonly "pull.noHash": {
599
+ readonly title: LocalizedText;
600
+ readonly hint: LocalizedText;
601
+ };
602
+ readonly "pull.tooLarge": {
603
+ readonly title: LocalizedText;
604
+ readonly hint: LocalizedText;
605
+ };
606
+ readonly "pull.packageRefused": {
607
+ readonly title: LocalizedText;
608
+ readonly hint: LocalizedText;
609
+ };
610
+ readonly "pull.secrets": {
611
+ readonly title: LocalizedText;
612
+ readonly hint: LocalizedText;
613
+ };
614
+ readonly "pull.notEmpty": {
615
+ readonly title: LocalizedText;
616
+ readonly hint: LocalizedText;
617
+ };
618
+ readonly "projects.invalidDays": {
619
+ readonly title: LocalizedText;
620
+ readonly hint: LocalizedText;
621
+ };
622
+ readonly "projects.unsafeName": {
623
+ readonly title: LocalizedText;
624
+ readonly hint: LocalizedText;
625
+ };
626
+ readonly "login.expired": {
627
+ readonly title: LocalizedText;
628
+ readonly hint: LocalizedText;
629
+ };
630
+ readonly "login.denied": {
631
+ readonly title: LocalizedText;
632
+ readonly hint: LocalizedText;
633
+ };
634
+ readonly "init.renamedProjectKey": {
635
+ readonly title: LocalizedText;
636
+ readonly hint: LocalizedText;
637
+ };
638
+ readonly "props.invalidName": {
639
+ readonly title: LocalizedText;
640
+ readonly hint: LocalizedText;
641
+ };
642
+ readonly "protection.invalidSuspects": {
643
+ readonly title: LocalizedText;
644
+ readonly hint: LocalizedText;
645
+ };
646
+ readonly "protection.invalidDailyCap": {
647
+ readonly title: LocalizedText;
648
+ readonly hint: LocalizedText;
649
+ };
650
+ readonly "protection.nothingToSet": {
651
+ readonly title: LocalizedText;
652
+ readonly hint: LocalizedText;
653
+ };
654
+ readonly "protection.aboveCeiling": {
655
+ readonly title: LocalizedText;
656
+ readonly hint: LocalizedText;
657
+ };
658
+ readonly "data.outExists": {
659
+ readonly title: LocalizedText;
660
+ readonly hint: LocalizedText;
661
+ };
662
+ readonly "data.outUnsafe": {
663
+ readonly title: LocalizedText;
664
+ readonly hint: LocalizedText;
665
+ };
666
+ readonly "data.outFailed": {
667
+ readonly title: LocalizedText;
668
+ readonly hint: LocalizedText;
669
+ };
670
+ readonly "serverkeys.secretDestination": {
671
+ readonly title: LocalizedText;
672
+ readonly hint: LocalizedText;
673
+ };
674
+ readonly "serverkeys.invalidKeyId": {
675
+ readonly title: LocalizedText;
676
+ readonly hint: LocalizedText;
677
+ };
678
+ readonly "serverkeys.limitReached": {
679
+ readonly title: LocalizedText;
680
+ readonly hint: LocalizedText;
681
+ };
682
+ readonly "serverkeys.unexpectedAnswer": {
683
+ readonly title: LocalizedText;
684
+ readonly hint: LocalizedText;
685
+ };
686
+ readonly "serverkeys.outExists": {
687
+ readonly title: LocalizedText;
688
+ readonly hint: LocalizedText;
689
+ };
690
+ readonly "serverkeys.outUnsafe": {
691
+ readonly title: LocalizedText;
692
+ readonly hint: LocalizedText;
693
+ };
694
+ readonly "serverkeys.outFailed": {
695
+ readonly title: LocalizedText;
696
+ readonly hint: LocalizedText;
697
+ };
698
+ readonly "serverkeys.notSavedRevoked": {
699
+ readonly title: LocalizedText;
700
+ readonly hint: LocalizedText;
701
+ };
702
+ readonly "serverkeys.notSavedKept": {
703
+ readonly title: LocalizedText;
704
+ readonly hint: LocalizedText;
705
+ };
706
+ readonly "build.quotaExceeded": {
707
+ readonly title: LocalizedText;
708
+ readonly hint: LocalizedText;
709
+ };
710
+ readonly "build.platformFuse": {
711
+ readonly title: LocalizedText;
712
+ readonly hint: LocalizedText;
713
+ };
714
+ readonly "props.invalidKind": {
715
+ readonly title: LocalizedText;
716
+ readonly hint: LocalizedText;
717
+ };
718
+ readonly "props.invalidValue": {
719
+ readonly title: LocalizedText;
720
+ readonly hint: LocalizedText;
721
+ };
722
+ readonly "props.notAttached": {
723
+ readonly title: LocalizedText;
724
+ readonly hint: LocalizedText;
725
+ };
726
+ readonly "sites.deleteInPortal": {
727
+ readonly title: LocalizedText;
728
+ readonly hint: LocalizedText;
729
+ };
730
+ readonly "props.conflict": {
731
+ readonly title: LocalizedText;
732
+ readonly hint: LocalizedText;
733
+ };
734
+ readonly "props.noVersion": {
735
+ readonly title: LocalizedText;
736
+ readonly hint: LocalizedText;
737
+ };
738
+ readonly "props.invalid": {
739
+ readonly title: LocalizedText;
740
+ readonly hint: LocalizedText;
741
+ };
742
+ readonly "config.invalidApiUrl": {
743
+ readonly title: LocalizedText;
744
+ readonly hint: LocalizedText;
745
+ };
746
+ };
747
+ /** A code of `cliErrorCatalog`. */
748
+ export type CliErrorCode = keyof typeof cliErrorCatalog;
749
+ //# sourceMappingURL=error-catalog.d.ts.map