@agentxm/client-core 0.7.4 → 0.9.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 (289) hide show
  1. package/dist/src/unstable/agents/command-sync.js +3 -3
  2. package/dist/src/unstable/agents/command-sync.js.map +1 -1
  3. package/dist/src/unstable/agents/detection.js +1 -1
  4. package/dist/src/unstable/agents/detection.js.map +1 -1
  5. package/dist/src/unstable/agents/mcp-sync.js +7 -7
  6. package/dist/src/unstable/agents/mcp-sync.js.map +1 -1
  7. package/dist/src/unstable/agents/repository.js +1 -1
  8. package/dist/src/unstable/agents/repository.js.map +1 -1
  9. package/dist/src/unstable/agents/subagent-sync.js +7 -7
  10. package/dist/src/unstable/agents/subagent-sync.js.map +1 -1
  11. package/dist/src/unstable/app-error/app-error.d.ts +25 -7
  12. package/dist/src/unstable/app-error/app-error.d.ts.map +1 -1
  13. package/dist/src/unstable/app-error/app-error.js +46 -4
  14. package/dist/src/unstable/app-error/app-error.js.map +1 -1
  15. package/dist/src/unstable/app-error/builders.js +5 -5
  16. package/dist/src/unstable/app-error/builders.js.map +1 -1
  17. package/dist/src/unstable/app-error/index.d.ts +1 -1
  18. package/dist/src/unstable/app-error/index.d.ts.map +1 -1
  19. package/dist/src/unstable/app-error/index.js +1 -1
  20. package/dist/src/unstable/app-error/index.js.map +1 -1
  21. package/dist/src/unstable/app-error/render.d.ts.map +1 -1
  22. package/dist/src/unstable/app-error/render.js +39 -3
  23. package/dist/src/unstable/app-error/render.js.map +1 -1
  24. package/dist/src/unstable/auth/auth-client.js +16 -16
  25. package/dist/src/unstable/auth/auth-client.js.map +1 -1
  26. package/dist/src/unstable/auth/credential-store.js +11 -11
  27. package/dist/src/unstable/auth/credential-store.js.map +1 -1
  28. package/dist/src/unstable/auth/guard.js +1 -1
  29. package/dist/src/unstable/auth/guard.js.map +1 -1
  30. package/dist/src/unstable/auth/token-resolution.js +1 -1
  31. package/dist/src/unstable/auth/token-resolution.js.map +1 -1
  32. package/dist/src/unstable/cli/prompt/helpers.js +1 -1
  33. package/dist/src/unstable/cli/prompt/helpers.js.map +1 -1
  34. package/dist/src/unstable/cli-runtime/handle-error.d.ts.map +1 -1
  35. package/dist/src/unstable/cli-runtime/handle-error.js +4 -2
  36. package/dist/src/unstable/cli-runtime/handle-error.js.map +1 -1
  37. package/dist/src/unstable/cli-runtime/json-envelope.d.ts +22 -6
  38. package/dist/src/unstable/cli-runtime/json-envelope.d.ts.map +1 -1
  39. package/dist/src/unstable/cli-runtime/json-envelope.js +15 -4
  40. package/dist/src/unstable/cli-runtime/json-envelope.js.map +1 -1
  41. package/dist/src/unstable/cli-runtime/runtime-envelope.d.ts.map +1 -1
  42. package/dist/src/unstable/cli-runtime/runtime-envelope.js +13 -3
  43. package/dist/src/unstable/cli-runtime/runtime-envelope.js.map +1 -1
  44. package/dist/src/unstable/cli-runtime/telemetry.js +1 -1
  45. package/dist/src/unstable/cli-runtime/telemetry.js.map +1 -1
  46. package/dist/src/unstable/commands/command-content.js +1 -1
  47. package/dist/src/unstable/commands/command-content.js.map +1 -1
  48. package/dist/src/unstable/commands/manager.js +9 -9
  49. package/dist/src/unstable/commands/manager.js.map +1 -1
  50. package/dist/src/unstable/commands/manifest-schema.d.ts +9 -2
  51. package/dist/src/unstable/commands/manifest-schema.d.ts.map +1 -1
  52. package/dist/src/unstable/commands/operations/disable.js +1 -1
  53. package/dist/src/unstable/commands/operations/disable.js.map +1 -1
  54. package/dist/src/unstable/commands/operations/enable.js +3 -3
  55. package/dist/src/unstable/commands/operations/enable.js.map +1 -1
  56. package/dist/src/unstable/commands/operations/install.js +7 -7
  57. package/dist/src/unstable/commands/operations/install.js.map +1 -1
  58. package/dist/src/unstable/commands/operations/new-command.js +4 -4
  59. package/dist/src/unstable/commands/operations/new-command.js.map +1 -1
  60. package/dist/src/unstable/commands/operations/publish.d.ts.map +1 -1
  61. package/dist/src/unstable/commands/operations/publish.js +10 -16
  62. package/dist/src/unstable/commands/operations/publish.js.map +1 -1
  63. package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts +9 -2
  64. package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts.map +1 -1
  65. package/dist/src/unstable/commands/operations/shared-command-helpers.js +5 -5
  66. package/dist/src/unstable/commands/operations/shared-command-helpers.js.map +1 -1
  67. package/dist/src/unstable/commands/operations/uninstall.js +1 -1
  68. package/dist/src/unstable/commands/operations/uninstall.js.map +1 -1
  69. package/dist/src/unstable/commands/reconciliation-adapter.js +1 -1
  70. package/dist/src/unstable/commands/reconciliation-adapter.js.map +1 -1
  71. package/dist/src/unstable/extensions/common.d.ts +45 -2
  72. package/dist/src/unstable/extensions/common.d.ts.map +1 -1
  73. package/dist/src/unstable/extensions/common.js +64 -8
  74. package/dist/src/unstable/extensions/common.js.map +1 -1
  75. package/dist/src/unstable/extensions/fqn.js +1 -1
  76. package/dist/src/unstable/extensions/fqn.js.map +1 -1
  77. package/dist/src/unstable/extensions/frontmatter.js +1 -1
  78. package/dist/src/unstable/extensions/frontmatter.js.map +1 -1
  79. package/dist/src/unstable/extensions/materializable-from-disk.js +7 -7
  80. package/dist/src/unstable/extensions/materializable-from-disk.js.map +1 -1
  81. package/dist/src/unstable/extensions/reconciliation-utils.js +1 -1
  82. package/dist/src/unstable/extensions/reconciliation-utils.js.map +1 -1
  83. package/dist/src/unstable/extensions/utils.js +1 -1
  84. package/dist/src/unstable/extensions/utils.js.map +1 -1
  85. package/dist/src/unstable/git/operations.js +1 -1
  86. package/dist/src/unstable/git/operations.js.map +1 -1
  87. package/dist/src/unstable/lockfile/lockfile.js +5 -5
  88. package/dist/src/unstable/lockfile/lockfile.js.map +1 -1
  89. package/dist/src/unstable/lockfile/resolved-version.js +1 -1
  90. package/dist/src/unstable/lockfile/resolved-version.js.map +1 -1
  91. package/dist/src/unstable/mcp-servers/manager.js +7 -7
  92. package/dist/src/unstable/mcp-servers/manager.js.map +1 -1
  93. package/dist/src/unstable/mcp-servers/manifest-schema.d.ts +9 -2
  94. package/dist/src/unstable/mcp-servers/manifest-schema.d.ts.map +1 -1
  95. package/dist/src/unstable/mcp-servers/operations/install.js +11 -11
  96. package/dist/src/unstable/mcp-servers/operations/install.js.map +1 -1
  97. package/dist/src/unstable/mcp-servers/operations/publish.d.ts.map +1 -1
  98. package/dist/src/unstable/mcp-servers/operations/publish.js +8 -14
  99. package/dist/src/unstable/mcp-servers/operations/publish.js.map +1 -1
  100. package/dist/src/unstable/mcp-servers/operations/uninstall.js +5 -5
  101. package/dist/src/unstable/mcp-servers/operations/uninstall.js.map +1 -1
  102. package/dist/src/unstable/mcp-servers/reconciliation-adapter.js +1 -1
  103. package/dist/src/unstable/mcp-servers/reconciliation-adapter.js.map +1 -1
  104. package/dist/src/unstable/packaging/cargo.d.ts +5 -2
  105. package/dist/src/unstable/packaging/cargo.d.ts.map +1 -1
  106. package/dist/src/unstable/packaging/cargo.js +96 -55
  107. package/dist/src/unstable/packaging/cargo.js.map +1 -1
  108. package/dist/src/unstable/packs/dependency-resolution.js +4 -4
  109. package/dist/src/unstable/packs/dependency-resolution.js.map +1 -1
  110. package/dist/src/unstable/packs/expansion.js +1 -1
  111. package/dist/src/unstable/packs/expansion.js.map +1 -1
  112. package/dist/src/unstable/packs/manager.js +2 -2
  113. package/dist/src/unstable/packs/manager.js.map +1 -1
  114. package/dist/src/unstable/packs/manifest-schema.d.ts +9 -2
  115. package/dist/src/unstable/packs/manifest-schema.d.ts.map +1 -1
  116. package/dist/src/unstable/packs/operations/add-to-pack.js +5 -5
  117. package/dist/src/unstable/packs/operations/add-to-pack.js.map +1 -1
  118. package/dist/src/unstable/packs/operations/install.js +6 -6
  119. package/dist/src/unstable/packs/operations/install.js.map +1 -1
  120. package/dist/src/unstable/packs/operations/new-pack.js +4 -4
  121. package/dist/src/unstable/packs/operations/new-pack.js.map +1 -1
  122. package/dist/src/unstable/packs/operations/publish.d.ts.map +1 -1
  123. package/dist/src/unstable/packs/operations/publish.js +9 -15
  124. package/dist/src/unstable/packs/operations/publish.js.map +1 -1
  125. package/dist/src/unstable/packs/operations/remove-from-pack.js +5 -5
  126. package/dist/src/unstable/packs/operations/remove-from-pack.js.map +1 -1
  127. package/dist/src/unstable/packs/operations/uninstall.js +1 -1
  128. package/dist/src/unstable/packs/operations/uninstall.js.map +1 -1
  129. package/dist/src/unstable/packs/operations/unpack.js +2 -2
  130. package/dist/src/unstable/packs/operations/unpack.js.map +1 -1
  131. package/dist/src/unstable/plan/apply-plan.js +2 -2
  132. package/dist/src/unstable/plan/apply-plan.js.map +1 -1
  133. package/dist/src/unstable/plan/resolve-plan.js +3 -3
  134. package/dist/src/unstable/plan/resolve-plan.js.map +1 -1
  135. package/dist/src/unstable/publish/manifest-policy.d.ts +45 -10
  136. package/dist/src/unstable/publish/manifest-policy.d.ts.map +1 -1
  137. package/dist/src/unstable/registry/__generated__/registry-client.d.ts +429 -447
  138. package/dist/src/unstable/registry/__generated__/registry-client.d.ts.map +1 -1
  139. package/dist/src/unstable/registry/__generated__/registry-client.js +102 -184
  140. package/dist/src/unstable/registry/__generated__/registry-client.js.map +1 -1
  141. package/dist/src/unstable/registry/client.d.ts +3 -1
  142. package/dist/src/unstable/registry/client.d.ts.map +1 -1
  143. package/dist/src/unstable/registry/client.js.map +1 -1
  144. package/dist/src/unstable/registry/error-mapping.d.ts +7 -25
  145. package/dist/src/unstable/registry/error-mapping.d.ts.map +1 -1
  146. package/dist/src/unstable/registry/error-mapping.js +15 -154
  147. package/dist/src/unstable/registry/error-mapping.js.map +1 -1
  148. package/dist/src/unstable/registry/index.d.ts +1 -1
  149. package/dist/src/unstable/registry/index.d.ts.map +1 -1
  150. package/dist/src/unstable/registry/index.js +1 -1
  151. package/dist/src/unstable/registry/index.js.map +1 -1
  152. package/dist/src/unstable/registry/local-client.d.ts.map +1 -1
  153. package/dist/src/unstable/registry/local-client.js +7 -6
  154. package/dist/src/unstable/registry/local-client.js.map +1 -1
  155. package/dist/src/unstable/registry/remote-client.d.ts.map +1 -1
  156. package/dist/src/unstable/registry/remote-client.js +27 -144
  157. package/dist/src/unstable/registry/remote-client.js.map +1 -1
  158. package/dist/src/unstable/registry/schema.d.ts +11 -2
  159. package/dist/src/unstable/registry/schema.d.ts.map +1 -1
  160. package/dist/src/unstable/registry/schema.js +5 -3
  161. package/dist/src/unstable/registry/schema.js.map +1 -1
  162. package/dist/src/unstable/registry/translate.d.ts +19 -0
  163. package/dist/src/unstable/registry/translate.d.ts.map +1 -0
  164. package/dist/src/unstable/registry/translate.js +142 -0
  165. package/dist/src/unstable/registry/translate.js.map +1 -0
  166. package/dist/src/unstable/registry/utils.js +4 -4
  167. package/dist/src/unstable/registry/utils.js.map +1 -1
  168. package/dist/src/unstable/settings/ignored-patterns.js +2 -2
  169. package/dist/src/unstable/settings/ignored-patterns.js.map +1 -1
  170. package/dist/src/unstable/settings/schema.d.ts +1 -0
  171. package/dist/src/unstable/settings/schema.d.ts.map +1 -1
  172. package/dist/src/unstable/settings/schema.js +5 -0
  173. package/dist/src/unstable/settings/schema.js.map +1 -1
  174. package/dist/src/unstable/settings/settings.js +3 -3
  175. package/dist/src/unstable/settings/settings.js.map +1 -1
  176. package/dist/src/unstable/skills/manager.js +1 -1
  177. package/dist/src/unstable/skills/manager.js.map +1 -1
  178. package/dist/src/unstable/skills/manifest-schema.d.ts +9 -2
  179. package/dist/src/unstable/skills/manifest-schema.d.ts.map +1 -1
  180. package/dist/src/unstable/skills/materialization.js +4 -4
  181. package/dist/src/unstable/skills/materialization.js.map +1 -1
  182. package/dist/src/unstable/skills/operations/copy.js +3 -3
  183. package/dist/src/unstable/skills/operations/copy.js.map +1 -1
  184. package/dist/src/unstable/skills/operations/disable.js +2 -2
  185. package/dist/src/unstable/skills/operations/disable.js.map +1 -1
  186. package/dist/src/unstable/skills/operations/enable.js +1 -1
  187. package/dist/src/unstable/skills/operations/enable.js.map +1 -1
  188. package/dist/src/unstable/skills/operations/install.js +5 -5
  189. package/dist/src/unstable/skills/operations/install.js.map +1 -1
  190. package/dist/src/unstable/skills/operations/new-skill.js +4 -4
  191. package/dist/src/unstable/skills/operations/new-skill.js.map +1 -1
  192. package/dist/src/unstable/skills/operations/publish.d.ts.map +1 -1
  193. package/dist/src/unstable/skills/operations/publish.js +10 -17
  194. package/dist/src/unstable/skills/operations/publish.js.map +1 -1
  195. package/dist/src/unstable/skills/operations/uninstall.js +2 -2
  196. package/dist/src/unstable/skills/operations/uninstall.js.map +1 -1
  197. package/dist/src/unstable/source-resolution/providers/azurerepos/repo-exists.js +2 -2
  198. package/dist/src/unstable/source-resolution/providers/azurerepos/repo-exists.js.map +1 -1
  199. package/dist/src/unstable/source-resolution/providers/azurerepos/scp.js +2 -2
  200. package/dist/src/unstable/source-resolution/providers/azurerepos/scp.js.map +1 -1
  201. package/dist/src/unstable/source-resolution/providers/azurerepos/url.js +3 -3
  202. package/dist/src/unstable/source-resolution/providers/azurerepos/url.js.map +1 -1
  203. package/dist/src/unstable/source-resolution/providers/bitbucket/resolve-repo.js +1 -1
  204. package/dist/src/unstable/source-resolution/providers/bitbucket/resolve-repo.js.map +1 -1
  205. package/dist/src/unstable/source-resolution/providers/bitbucket/scp.js +2 -2
  206. package/dist/src/unstable/source-resolution/providers/bitbucket/scp.js.map +1 -1
  207. package/dist/src/unstable/source-resolution/providers/bitbucket/url.js +3 -3
  208. package/dist/src/unstable/source-resolution/providers/bitbucket/url.js.map +1 -1
  209. package/dist/src/unstable/source-resolution/providers/git-hosting.js +3 -3
  210. package/dist/src/unstable/source-resolution/providers/git-hosting.js.map +1 -1
  211. package/dist/src/unstable/source-resolution/providers/git.js +2 -2
  212. package/dist/src/unstable/source-resolution/providers/git.js.map +1 -1
  213. package/dist/src/unstable/source-resolution/providers/github/resolve-repo.js +1 -1
  214. package/dist/src/unstable/source-resolution/providers/github/resolve-repo.js.map +1 -1
  215. package/dist/src/unstable/source-resolution/providers/github/scp.js +2 -2
  216. package/dist/src/unstable/source-resolution/providers/github/scp.js.map +1 -1
  217. package/dist/src/unstable/source-resolution/providers/github/url.js +3 -3
  218. package/dist/src/unstable/source-resolution/providers/github/url.js.map +1 -1
  219. package/dist/src/unstable/source-resolution/providers/gitlab/resolve-repo.js +1 -1
  220. package/dist/src/unstable/source-resolution/providers/gitlab/resolve-repo.js.map +1 -1
  221. package/dist/src/unstable/source-resolution/providers/gitlab/scp.js +2 -2
  222. package/dist/src/unstable/source-resolution/providers/gitlab/scp.js.map +1 -1
  223. package/dist/src/unstable/source-resolution/providers/gitlab/url.js +3 -3
  224. package/dist/src/unstable/source-resolution/providers/gitlab/url.js.map +1 -1
  225. package/dist/src/unstable/source-resolution/providers/local.js +2 -2
  226. package/dist/src/unstable/source-resolution/providers/local.js.map +1 -1
  227. package/dist/src/unstable/source-resolution/providers/parse-provider-shorthand.d.ts +1 -1
  228. package/dist/src/unstable/source-resolution/providers/parse-provider-shorthand.d.ts.map +1 -1
  229. package/dist/src/unstable/source-resolution/providers/parse-provider-shorthand.js +2 -2
  230. package/dist/src/unstable/source-resolution/providers/parse-provider-shorthand.js.map +1 -1
  231. package/dist/src/unstable/source-resolution/providers/registry/host-provider.d.ts.map +1 -1
  232. package/dist/src/unstable/source-resolution/providers/registry/host-provider.js +4 -3
  233. package/dist/src/unstable/source-resolution/providers/registry/host-provider.js.map +1 -1
  234. package/dist/src/unstable/source-resolution/resolve-identifier.js +5 -5
  235. package/dist/src/unstable/source-resolution/resolve-identifier.js.map +1 -1
  236. package/dist/src/unstable/source-resolution/resolve-source-pattern.js +1 -1
  237. package/dist/src/unstable/source-resolution/resolve-source-pattern.js.map +1 -1
  238. package/dist/src/unstable/source-resolution/resolve-source.js +23 -23
  239. package/dist/src/unstable/source-resolution/resolve-source.js.map +1 -1
  240. package/dist/src/unstable/sources/lock-entry-to-ref.js +4 -4
  241. package/dist/src/unstable/sources/lock-entry-to-ref.js.map +1 -1
  242. package/dist/src/unstable/subagents/manager.js +7 -7
  243. package/dist/src/unstable/subagents/manager.js.map +1 -1
  244. package/dist/src/unstable/subagents/manifest-schema.d.ts +9 -2
  245. package/dist/src/unstable/subagents/manifest-schema.d.ts.map +1 -1
  246. package/dist/src/unstable/subagents/operations/disable.js +2 -2
  247. package/dist/src/unstable/subagents/operations/disable.js.map +1 -1
  248. package/dist/src/unstable/subagents/operations/enable.js +2 -2
  249. package/dist/src/unstable/subagents/operations/enable.js.map +1 -1
  250. package/dist/src/unstable/subagents/operations/publish.d.ts.map +1 -1
  251. package/dist/src/unstable/subagents/operations/publish.js +12 -19
  252. package/dist/src/unstable/subagents/operations/publish.js.map +1 -1
  253. package/dist/src/unstable/subagents/subagent-content.js +4 -4
  254. package/dist/src/unstable/subagents/subagent-content.js.map +1 -1
  255. package/dist/src/unstable/update-check/update-check.d.ts +5 -7
  256. package/dist/src/unstable/update-check/update-check.d.ts.map +1 -1
  257. package/dist/src/unstable/update-check/update-check.js +6 -9
  258. package/dist/src/unstable/update-check/update-check.js.map +1 -1
  259. package/dist/src/unstable/utils/build-zip-archive.js +3 -3
  260. package/dist/src/unstable/utils/build-zip-archive.js.map +1 -1
  261. package/dist/src/unstable/utils/create-symlink.js +4 -4
  262. package/dist/src/unstable/utils/create-symlink.js.map +1 -1
  263. package/dist/src/unstable/version-resolution/version-resolution.js +5 -5
  264. package/dist/src/unstable/version-resolution/version-resolution.js.map +1 -1
  265. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js +18 -18
  266. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js.map +1 -1
  267. package/dist/src/unstable/workspace/configured-entry-resolution/timeout.js +1 -1
  268. package/dist/src/unstable/workspace/configured-entry-resolution/timeout.js.map +1 -1
  269. package/dist/src/unstable/workspace/initialization.d.ts +4 -0
  270. package/dist/src/unstable/workspace/initialization.d.ts.map +1 -1
  271. package/dist/src/unstable/workspace/initialization.js +5 -5
  272. package/dist/src/unstable/workspace/initialization.js.map +1 -1
  273. package/dist/src/unstable/workspace/read-model/discovery/skills.js +2 -2
  274. package/dist/src/unstable/workspace/read-model/discovery/skills.js.map +1 -1
  275. package/dist/src/unstable/workspace/read-model/discovery/subagents.js +1 -1
  276. package/dist/src/unstable/workspace/read-model/discovery/subagents.js.map +1 -1
  277. package/dist/src/unstable/workspace/reconciliation.js +6 -6
  278. package/dist/src/unstable/workspace/reconciliation.js.map +1 -1
  279. package/dist/src/unstable/workspace/rendered-file-cleanup.js +1 -1
  280. package/dist/src/unstable/workspace/rendered-file-cleanup.js.map +1 -1
  281. package/dist/src/unstable/workspace/service.js +6 -6
  282. package/dist/src/unstable/workspace/service.js.map +1 -1
  283. package/package.json +2 -2
  284. package/site-content/__generated__/schemas/command.schema.json +110 -20
  285. package/site-content/__generated__/schemas/mcp-server.schema.json +110 -20
  286. package/site-content/__generated__/schemas/pack.schema.json +110 -20
  287. package/site-content/__generated__/schemas/settings.schema.json +5 -0
  288. package/site-content/__generated__/schemas/skill.schema.json +110 -20
  289. package/site-content/__generated__/schemas/subagent.schema.json +110 -20
@@ -102,24 +102,6 @@ export type ResourceRestrictions = {
102
102
  export declare const ResourceRestrictions: Schema.Struct<{
103
103
  readonly extensions: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>;
104
104
  }>;
105
- export type UnauthorizedError = {
106
- readonly kind: "UnauthorizedError";
107
- readonly type: string;
108
- readonly title: string;
109
- readonly status: number;
110
- readonly detail: string;
111
- readonly instance?: string;
112
- readonly code: string;
113
- };
114
- export declare const UnauthorizedError: Schema.Struct<{
115
- readonly kind: Schema.Literal<"UnauthorizedError">;
116
- readonly type: Schema.String;
117
- readonly title: Schema.String;
118
- readonly status: Schema.Number;
119
- readonly detail: Schema.String;
120
- readonly instance: Schema.optionalKey<Schema.String>;
121
- readonly code: Schema.String;
122
- }>;
123
105
  export type TokenId = string;
124
106
  export declare const TokenId: Schema.String;
125
107
  export type IsoDateTimeString = string;
@@ -252,190 +234,7 @@ export type PutCollaboratorBody = {
252
234
  export declare const PutCollaboratorBody: Schema.Struct<{
253
235
  readonly role: Schema.Literals<readonly ["admin", "write", "read"]>;
254
236
  }>;
255
- export type InternalError = {
256
- readonly kind: "InternalError";
257
- readonly type: string;
258
- readonly title: string;
259
- readonly status: number;
260
- readonly detail: string;
261
- readonly instance?: string;
262
- readonly code: string;
263
- readonly details?: PublishDetails;
264
- };
265
- export declare const InternalError: Schema.Struct<{
266
- readonly kind: Schema.Literal<"InternalError">;
267
- readonly type: Schema.String;
268
- readonly title: Schema.String;
269
- readonly status: Schema.Number;
270
- readonly detail: Schema.String;
271
- readonly instance: Schema.optionalKey<Schema.String>;
272
- readonly code: Schema.String;
273
- readonly details: Schema.optionalKey<Schema.Struct<{
274
- readonly retryable: Schema.Boolean;
275
- readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
276
- readonly requiredScope: Schema.optionalKey<Schema.String>;
277
- readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
278
- readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
279
- }>>;
280
- }>;
281
- export type InvalidRequestError = {
282
- readonly kind: "InvalidRequestError";
283
- readonly type: string;
284
- readonly title: string;
285
- readonly status: number;
286
- readonly detail: string;
287
- readonly instance?: string;
288
- readonly code: string;
289
- readonly details?: PublishDetails;
290
- };
291
- export declare const InvalidRequestError: Schema.Struct<{
292
- readonly kind: Schema.Literal<"InvalidRequestError">;
293
- readonly type: Schema.String;
294
- readonly title: Schema.String;
295
- readonly status: Schema.Number;
296
- readonly detail: Schema.String;
297
- readonly instance: Schema.optionalKey<Schema.String>;
298
- readonly code: Schema.String;
299
- readonly details: Schema.optionalKey<Schema.Struct<{
300
- readonly retryable: Schema.Boolean;
301
- readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
302
- readonly requiredScope: Schema.optionalKey<Schema.String>;
303
- readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
304
- readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
305
- }>>;
306
- }>;
307
- export type NotImplementedError = {
308
- readonly kind: "NotImplementedError";
309
- readonly type: string;
310
- readonly title: string;
311
- readonly status: number;
312
- readonly detail: string;
313
- readonly instance?: string;
314
- readonly code: string;
315
- readonly details?: PublishDetails;
316
- };
317
- export declare const NotImplementedError: Schema.Struct<{
318
- readonly kind: Schema.Literal<"NotImplementedError">;
319
- readonly type: Schema.String;
320
- readonly title: Schema.String;
321
- readonly status: Schema.Number;
322
- readonly detail: Schema.String;
323
- readonly instance: Schema.optionalKey<Schema.String>;
324
- readonly code: Schema.String;
325
- readonly details: Schema.optionalKey<Schema.Struct<{
326
- readonly retryable: Schema.Boolean;
327
- readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
328
- readonly requiredScope: Schema.optionalKey<Schema.String>;
329
- readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
330
- readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
331
- }>>;
332
- }>;
333
- export type UnprocessableEntityError = {
334
- readonly kind: "UnprocessableEntityError";
335
- readonly type: string;
336
- readonly title: string;
337
- readonly status: number;
338
- readonly detail: string;
339
- readonly instance?: string;
340
- readonly code: string;
341
- readonly details?: PublishDetails;
342
- };
343
- export declare const UnprocessableEntityError: Schema.Struct<{
344
- readonly kind: Schema.Literal<"UnprocessableEntityError">;
345
- readonly type: Schema.String;
346
- readonly title: Schema.String;
347
- readonly status: Schema.Number;
348
- readonly detail: Schema.String;
349
- readonly instance: Schema.optionalKey<Schema.String>;
350
- readonly code: Schema.String;
351
- readonly details: Schema.optionalKey<Schema.Struct<{
352
- readonly retryable: Schema.Boolean;
353
- readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
354
- readonly requiredScope: Schema.optionalKey<Schema.String>;
355
- readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
356
- readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
357
- }>>;
358
- }>;
359
- export type NotFoundError = {
360
- readonly kind: "NotFoundError";
361
- readonly type: string;
362
- readonly title: string;
363
- readonly status: number;
364
- readonly detail: string;
365
- readonly instance?: string;
366
- readonly code: string;
367
- readonly details?: PublishDetails;
368
- };
369
- export declare const NotFoundError: Schema.Struct<{
370
- readonly kind: Schema.Literal<"NotFoundError">;
371
- readonly type: Schema.String;
372
- readonly title: Schema.String;
373
- readonly status: Schema.Number;
374
- readonly detail: Schema.String;
375
- readonly instance: Schema.optionalKey<Schema.String>;
376
- readonly code: Schema.String;
377
- readonly details: Schema.optionalKey<Schema.Struct<{
378
- readonly retryable: Schema.Boolean;
379
- readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
380
- readonly requiredScope: Schema.optionalKey<Schema.String>;
381
- readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
382
- readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
383
- }>>;
384
- }>;
385
- export type ConflictError = {
386
- readonly kind: "ConflictError";
387
- readonly type: string;
388
- readonly title: string;
389
- readonly status: number;
390
- readonly detail: string;
391
- readonly instance?: string;
392
- readonly code: string;
393
- readonly details?: PublishDetails;
394
- };
395
- export declare const ConflictError: Schema.Struct<{
396
- readonly kind: Schema.Literal<"ConflictError">;
397
- readonly type: Schema.String;
398
- readonly title: Schema.String;
399
- readonly status: Schema.Number;
400
- readonly detail: Schema.String;
401
- readonly instance: Schema.optionalKey<Schema.String>;
402
- readonly code: Schema.String;
403
- readonly details: Schema.optionalKey<Schema.Struct<{
404
- readonly retryable: Schema.Boolean;
405
- readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
406
- readonly requiredScope: Schema.optionalKey<Schema.String>;
407
- readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
408
- readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
409
- }>>;
410
- }>;
411
- export type PayloadTooLargeError = {
412
- readonly kind: "PayloadTooLargeError";
413
- readonly type: string;
414
- readonly title: string;
415
- readonly status: number;
416
- readonly detail: string;
417
- readonly instance?: string;
418
- readonly code: string;
419
- readonly details?: PublishDetails;
420
- };
421
- export declare const PayloadTooLargeError: Schema.Struct<{
422
- readonly kind: Schema.Literal<"PayloadTooLargeError">;
423
- readonly type: Schema.String;
424
- readonly title: Schema.String;
425
- readonly status: Schema.Number;
426
- readonly detail: Schema.String;
427
- readonly instance: Schema.optionalKey<Schema.String>;
428
- readonly code: Schema.String;
429
- readonly details: Schema.optionalKey<Schema.Struct<{
430
- readonly retryable: Schema.Boolean;
431
- readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
432
- readonly requiredScope: Schema.optionalKey<Schema.String>;
433
- readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
434
- readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
435
- }>>;
436
- }>;
437
- export type UnsupportedMediaTypeError = {
438
- readonly kind: "UnsupportedMediaTypeError";
237
+ export type ProblemDetails = {
439
238
  readonly type: string;
440
239
  readonly title: string;
441
240
  readonly status: number;
@@ -444,60 +243,7 @@ export type UnsupportedMediaTypeError = {
444
243
  readonly code: string;
445
244
  readonly details?: PublishDetails;
446
245
  };
447
- export declare const UnsupportedMediaTypeError: Schema.Struct<{
448
- readonly kind: Schema.Literal<"UnsupportedMediaTypeError">;
449
- readonly type: Schema.String;
450
- readonly title: Schema.String;
451
- readonly status: Schema.Number;
452
- readonly detail: Schema.String;
453
- readonly instance: Schema.optionalKey<Schema.String>;
454
- readonly code: Schema.String;
455
- readonly details: Schema.optionalKey<Schema.Struct<{
456
- readonly retryable: Schema.Boolean;
457
- readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
458
- readonly requiredScope: Schema.optionalKey<Schema.String>;
459
- readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
460
- readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
461
- }>>;
462
- }>;
463
- export type TooManyRequestsError = {
464
- readonly kind: "TooManyRequestsError";
465
- readonly type: string;
466
- readonly title: string;
467
- readonly status: number;
468
- readonly detail: string;
469
- readonly instance?: string;
470
- readonly code: string;
471
- readonly details?: PublishDetails;
472
- };
473
- export declare const TooManyRequestsError: Schema.Struct<{
474
- readonly kind: Schema.Literal<"TooManyRequestsError">;
475
- readonly type: Schema.String;
476
- readonly title: Schema.String;
477
- readonly status: Schema.Number;
478
- readonly detail: Schema.String;
479
- readonly instance: Schema.optionalKey<Schema.String>;
480
- readonly code: Schema.String;
481
- readonly details: Schema.optionalKey<Schema.Struct<{
482
- readonly retryable: Schema.Boolean;
483
- readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
484
- readonly requiredScope: Schema.optionalKey<Schema.String>;
485
- readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
486
- readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
487
- }>>;
488
- }>;
489
- export type ServiceUnavailableError = {
490
- readonly kind: "ServiceUnavailableError";
491
- readonly type: string;
492
- readonly title: string;
493
- readonly status: number;
494
- readonly detail: string;
495
- readonly instance?: string;
496
- readonly code: string;
497
- readonly details?: PublishDetails;
498
- };
499
- export declare const ServiceUnavailableError: Schema.Struct<{
500
- readonly kind: Schema.Literal<"ServiceUnavailableError">;
246
+ export declare const ProblemDetails: Schema.Struct<{
501
247
  readonly type: Schema.String;
502
248
  readonly title: Schema.String;
503
249
  readonly status: Schema.Number;
@@ -589,7 +335,7 @@ export type ForbiddenError = {
589
335
  readonly status: number;
590
336
  readonly detail: string;
591
337
  readonly instance?: string;
592
- readonly code: string;
338
+ readonly code: "forbidden" | "insufficient_scope" | "resource_restriction" | "scope_escalation" | "team_create_not_authorized" | "team_delete_not_authorized" | "team_update_not_authorized" | "add_team_member_not_authorized" | "remove_team_member_not_authorized" | "change_team_member_role_not_authorized" | "team_extension_grant_delete_not_authorized" | "team_extension_grant_not_authorized" | "publish/quota-exceeded" | "publish/insufficient-scope" | "publish/resource-restriction" | "publish/handle-not-owned" | "publish/publish-forbidden";
593
339
  readonly details?: ScopeCheckDetails | AuthorizationDenyDetails | PublishDetails;
594
340
  };
595
341
  export declare const ForbiddenError: Schema.Struct<{
@@ -599,7 +345,7 @@ export declare const ForbiddenError: Schema.Struct<{
599
345
  readonly status: Schema.Number;
600
346
  readonly detail: Schema.String;
601
347
  readonly instance: Schema.optionalKey<Schema.String>;
602
- readonly code: Schema.String;
348
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
603
349
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
604
350
  readonly requiredScope: Schema.String;
605
351
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -809,7 +555,7 @@ export type ExtensionIdentityMismatchError = {
809
555
  readonly status: number;
810
556
  readonly detail: string;
811
557
  readonly instance?: string;
812
- readonly code: string;
558
+ readonly code: "extension_identity_mismatch";
813
559
  readonly error: "extension_identity_mismatch";
814
560
  readonly identity: PublishIdentity;
815
561
  readonly mismatches: ReadonlyArray<PublishIdentityMismatchEntry>;
@@ -821,7 +567,7 @@ export declare const ExtensionIdentityMismatchError: Schema.Struct<{
821
567
  readonly status: Schema.Number;
822
568
  readonly detail: Schema.String;
823
569
  readonly instance: Schema.optionalKey<Schema.String>;
824
- readonly code: Schema.String;
570
+ readonly code: Schema.Literal<"extension_identity_mismatch">;
825
571
  readonly error: Schema.Literal<"extension_identity_mismatch">;
826
572
  readonly identity: Schema.Struct<{
827
573
  readonly owner: Schema.String;
@@ -867,7 +613,7 @@ export type ExtensionLintFailedError = {
867
613
  readonly status: number;
868
614
  readonly detail: string;
869
615
  readonly instance?: string;
870
- readonly code: string;
616
+ readonly code: "extension_lint_failed";
871
617
  readonly error: "extension_lint_failed";
872
618
  readonly identity: PublishIdentity;
873
619
  readonly displayRoot: string;
@@ -880,7 +626,7 @@ export declare const ExtensionLintFailedError: Schema.Struct<{
880
626
  readonly status: Schema.Number;
881
627
  readonly detail: Schema.String;
882
628
  readonly instance: Schema.optionalKey<Schema.String>;
883
- readonly code: Schema.String;
629
+ readonly code: Schema.Literal<"extension_lint_failed">;
884
630
  readonly error: Schema.Literal<"extension_lint_failed">;
885
631
  readonly identity: Schema.Struct<{
886
632
  readonly owner: Schema.String;
@@ -950,9 +696,8 @@ export declare const AuthIssueDeviceCode400: Schema.Struct<{
950
696
  readonly instance: Schema.optionalKey<Schema.String>;
951
697
  readonly code: Schema.String;
952
698
  }>;
953
- export type AuthIssueDeviceCode500 = InternalError;
699
+ export type AuthIssueDeviceCode500 = ProblemDetails;
954
700
  export declare const AuthIssueDeviceCode500: Schema.Struct<{
955
- readonly kind: Schema.Literal<"InternalError">;
956
701
  readonly type: Schema.String;
957
702
  readonly title: Schema.String;
958
703
  readonly status: Schema.Number;
@@ -996,9 +741,8 @@ export declare const AuthExchangeToken200: Schema.Struct<{
996
741
  readonly expires_at: Schema.String;
997
742
  readonly scope: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
998
743
  }>;
999
- export type AuthExchangeToken400 = InvalidRequestError | DecodeErrorResponse | TokenOAuthError;
744
+ export type AuthExchangeToken400 = ProblemDetails | DecodeErrorResponse | TokenOAuthError;
1000
745
  export declare const AuthExchangeToken400: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
1001
- readonly kind: Schema.Literal<"InvalidRequestError">;
1002
746
  readonly type: Schema.String;
1003
747
  readonly title: Schema.String;
1004
748
  readonly status: Schema.Number;
@@ -1196,15 +940,21 @@ export declare const AuthGetMe400: Schema.Struct<{
1196
940
  readonly instance: Schema.optionalKey<Schema.String>;
1197
941
  readonly code: Schema.String;
1198
942
  }>;
1199
- export type AuthGetMe401 = UnauthorizedError;
943
+ export type AuthGetMe401 = ProblemDetails;
1200
944
  export declare const AuthGetMe401: Schema.Struct<{
1201
- readonly kind: Schema.Literal<"UnauthorizedError">;
1202
945
  readonly type: Schema.String;
1203
946
  readonly title: Schema.String;
1204
947
  readonly status: Schema.Number;
1205
948
  readonly detail: Schema.String;
1206
949
  readonly instance: Schema.optionalKey<Schema.String>;
1207
950
  readonly code: Schema.String;
951
+ readonly details: Schema.optionalKey<Schema.Struct<{
952
+ readonly retryable: Schema.Boolean;
953
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
954
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
955
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
956
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
957
+ }>>;
1208
958
  }>;
1209
959
  export type AuthExchangeOidcToken400 = DecodeErrorResponse;
1210
960
  export declare const AuthExchangeOidcToken400: Schema.Struct<{
@@ -1216,9 +966,8 @@ export declare const AuthExchangeOidcToken400: Schema.Struct<{
1216
966
  readonly instance: Schema.optionalKey<Schema.String>;
1217
967
  readonly code: Schema.String;
1218
968
  }>;
1219
- export type AuthExchangeOidcToken501 = NotImplementedError;
969
+ export type AuthExchangeOidcToken501 = ProblemDetails;
1220
970
  export declare const AuthExchangeOidcToken501: Schema.Struct<{
1221
- readonly kind: Schema.Literal<"NotImplementedError">;
1222
971
  readonly type: Schema.String;
1223
972
  readonly title: Schema.String;
1224
973
  readonly status: Schema.Number;
@@ -1265,15 +1014,21 @@ export declare const TokensList400: Schema.Struct<{
1265
1014
  readonly instance: Schema.optionalKey<Schema.String>;
1266
1015
  readonly code: Schema.String;
1267
1016
  }>;
1268
- export type TokensList401 = UnauthorizedError;
1017
+ export type TokensList401 = ProblemDetails;
1269
1018
  export declare const TokensList401: Schema.Struct<{
1270
- readonly kind: Schema.Literal<"UnauthorizedError">;
1271
1019
  readonly type: Schema.String;
1272
1020
  readonly title: Schema.String;
1273
1021
  readonly status: Schema.Number;
1274
1022
  readonly detail: Schema.String;
1275
1023
  readonly instance: Schema.optionalKey<Schema.String>;
1276
1024
  readonly code: Schema.String;
1025
+ readonly details: Schema.optionalKey<Schema.Struct<{
1026
+ readonly retryable: Schema.Boolean;
1027
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
1028
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
1029
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1030
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1031
+ }>>;
1277
1032
  }>;
1278
1033
  export type TokensList403 = ForbiddenError;
1279
1034
  export declare const TokensList403: Schema.Struct<{
@@ -1283,7 +1038,7 @@ export declare const TokensList403: Schema.Struct<{
1283
1038
  readonly status: Schema.Number;
1284
1039
  readonly detail: Schema.String;
1285
1040
  readonly instance: Schema.optionalKey<Schema.String>;
1286
- readonly code: Schema.String;
1041
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
1287
1042
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1288
1043
  readonly requiredScope: Schema.String;
1289
1044
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -1324,25 +1079,31 @@ export declare const TokensCreate400: Schema.Struct<{
1324
1079
  readonly instance: Schema.optionalKey<Schema.String>;
1325
1080
  readonly code: Schema.String;
1326
1081
  }>;
1327
- export type TokensCreate401 = UnauthorizedError;
1082
+ export type TokensCreate401 = ProblemDetails;
1328
1083
  export declare const TokensCreate401: Schema.Struct<{
1329
- readonly kind: Schema.Literal<"UnauthorizedError">;
1330
1084
  readonly type: Schema.String;
1331
1085
  readonly title: Schema.String;
1332
1086
  readonly status: Schema.Number;
1333
1087
  readonly detail: Schema.String;
1334
1088
  readonly instance: Schema.optionalKey<Schema.String>;
1335
1089
  readonly code: Schema.String;
1090
+ readonly details: Schema.optionalKey<Schema.Struct<{
1091
+ readonly retryable: Schema.Boolean;
1092
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
1093
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
1094
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1095
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1096
+ }>>;
1336
1097
  }>;
1337
- export type TokensCreate403 = ForbiddenError;
1338
- export declare const TokensCreate403: Schema.Struct<{
1098
+ export type TokensCreate403 = ForbiddenError | ForbiddenError;
1099
+ export declare const TokensCreate403: Schema.Union<readonly [Schema.Struct<{
1339
1100
  readonly kind: Schema.Literal<"ForbiddenError">;
1340
1101
  readonly type: Schema.String;
1341
1102
  readonly title: Schema.String;
1342
1103
  readonly status: Schema.Number;
1343
1104
  readonly detail: Schema.String;
1344
1105
  readonly instance: Schema.optionalKey<Schema.String>;
1345
- readonly code: Schema.String;
1106
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
1346
1107
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1347
1108
  readonly requiredScope: Schema.String;
1348
1109
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -1357,10 +1118,31 @@ export declare const TokensCreate403: Schema.Struct<{
1357
1118
  readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1358
1119
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1359
1120
  }>]>>;
1360
- }>;
1361
- export type TokensCreate422 = UnprocessableEntityError;
1121
+ }>, Schema.Struct<{
1122
+ readonly kind: Schema.Literal<"ForbiddenError">;
1123
+ readonly type: Schema.String;
1124
+ readonly title: Schema.String;
1125
+ readonly status: Schema.Number;
1126
+ readonly detail: Schema.String;
1127
+ readonly instance: Schema.optionalKey<Schema.String>;
1128
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
1129
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1130
+ readonly requiredScope: Schema.String;
1131
+ readonly grantedScopes: Schema.$Array<Schema.String>;
1132
+ }>, Schema.Struct<{
1133
+ readonly requiredScope: Schema.String;
1134
+ readonly tokenScopes: Schema.$Array<Schema.String>;
1135
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
1136
+ }>, Schema.Struct<{
1137
+ readonly retryable: Schema.Boolean;
1138
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
1139
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
1140
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1141
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1142
+ }>]>>;
1143
+ }>]>;
1144
+ export type TokensCreate422 = ProblemDetails;
1362
1145
  export declare const TokensCreate422: Schema.Struct<{
1363
- readonly kind: Schema.Literal<"UnprocessableEntityError">;
1364
1146
  readonly type: Schema.String;
1365
1147
  readonly title: Schema.String;
1366
1148
  readonly status: Schema.Number;
@@ -1385,15 +1167,21 @@ export declare const TokensDelete400: Schema.Struct<{
1385
1167
  readonly instance: Schema.optionalKey<Schema.String>;
1386
1168
  readonly code: Schema.String;
1387
1169
  }>;
1388
- export type TokensDelete401 = UnauthorizedError;
1170
+ export type TokensDelete401 = ProblemDetails;
1389
1171
  export declare const TokensDelete401: Schema.Struct<{
1390
- readonly kind: Schema.Literal<"UnauthorizedError">;
1391
1172
  readonly type: Schema.String;
1392
1173
  readonly title: Schema.String;
1393
1174
  readonly status: Schema.Number;
1394
1175
  readonly detail: Schema.String;
1395
1176
  readonly instance: Schema.optionalKey<Schema.String>;
1396
1177
  readonly code: Schema.String;
1178
+ readonly details: Schema.optionalKey<Schema.Struct<{
1179
+ readonly retryable: Schema.Boolean;
1180
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
1181
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
1182
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1183
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1184
+ }>>;
1397
1185
  }>;
1398
1186
  export type TokensDelete403 = ForbiddenError;
1399
1187
  export declare const TokensDelete403: Schema.Struct<{
@@ -1403,7 +1191,7 @@ export declare const TokensDelete403: Schema.Struct<{
1403
1191
  readonly status: Schema.Number;
1404
1192
  readonly detail: Schema.String;
1405
1193
  readonly instance: Schema.optionalKey<Schema.String>;
1406
- readonly code: Schema.String;
1194
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
1407
1195
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1408
1196
  readonly requiredScope: Schema.String;
1409
1197
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -1433,9 +1221,8 @@ export declare const OwnersGetOwner400: Schema.Struct<{
1433
1221
  readonly instance: Schema.optionalKey<Schema.String>;
1434
1222
  readonly code: Schema.String;
1435
1223
  }>;
1436
- export type OwnersGetOwner404 = NotFoundError;
1224
+ export type OwnersGetOwner404 = ProblemDetails;
1437
1225
  export declare const OwnersGetOwner404: Schema.Struct<{
1438
- readonly kind: Schema.Literal<"NotFoundError">;
1439
1226
  readonly type: Schema.String;
1440
1227
  readonly title: Schema.String;
1441
1228
  readonly status: Schema.Number;
@@ -1481,19 +1268,24 @@ export declare const OrgsTeamsListTeams400: Schema.Struct<{
1481
1268
  readonly instance: Schema.optionalKey<Schema.String>;
1482
1269
  readonly code: Schema.String;
1483
1270
  }>;
1484
- export type OrgsTeamsListTeams401 = UnauthorizedError;
1271
+ export type OrgsTeamsListTeams401 = ProblemDetails;
1485
1272
  export declare const OrgsTeamsListTeams401: Schema.Struct<{
1486
- readonly kind: Schema.Literal<"UnauthorizedError">;
1487
1273
  readonly type: Schema.String;
1488
1274
  readonly title: Schema.String;
1489
1275
  readonly status: Schema.Number;
1490
1276
  readonly detail: Schema.String;
1491
1277
  readonly instance: Schema.optionalKey<Schema.String>;
1492
1278
  readonly code: Schema.String;
1279
+ readonly details: Schema.optionalKey<Schema.Struct<{
1280
+ readonly retryable: Schema.Boolean;
1281
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
1282
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
1283
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1284
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1285
+ }>>;
1493
1286
  }>;
1494
- export type OrgsTeamsListTeams404 = NotFoundError;
1287
+ export type OrgsTeamsListTeams404 = ProblemDetails;
1495
1288
  export declare const OrgsTeamsListTeams404: Schema.Struct<{
1496
- readonly kind: Schema.Literal<"NotFoundError">;
1497
1289
  readonly type: Schema.String;
1498
1290
  readonly title: Schema.String;
1499
1291
  readonly status: Schema.Number;
@@ -1523,9 +1315,8 @@ export declare const OrgsTeamsCreateTeam200: Schema.Struct<{
1523
1315
  readonly createdBy: Schema.String;
1524
1316
  readonly updatedAt: Schema.String;
1525
1317
  }>;
1526
- export type OrgsTeamsCreateTeam400 = InvalidRequestError | DecodeErrorResponse;
1318
+ export type OrgsTeamsCreateTeam400 = ProblemDetails | DecodeErrorResponse;
1527
1319
  export declare const OrgsTeamsCreateTeam400: Schema.Union<readonly [Schema.Struct<{
1528
- readonly kind: Schema.Literal<"InvalidRequestError">;
1529
1320
  readonly type: Schema.String;
1530
1321
  readonly title: Schema.String;
1531
1322
  readonly status: Schema.Number;
@@ -1548,15 +1339,21 @@ export declare const OrgsTeamsCreateTeam400: Schema.Union<readonly [Schema.Struc
1548
1339
  readonly instance: Schema.optionalKey<Schema.String>;
1549
1340
  readonly code: Schema.String;
1550
1341
  }>]>;
1551
- export type OrgsTeamsCreateTeam401 = UnauthorizedError;
1342
+ export type OrgsTeamsCreateTeam401 = ProblemDetails;
1552
1343
  export declare const OrgsTeamsCreateTeam401: Schema.Struct<{
1553
- readonly kind: Schema.Literal<"UnauthorizedError">;
1554
1344
  readonly type: Schema.String;
1555
1345
  readonly title: Schema.String;
1556
1346
  readonly status: Schema.Number;
1557
1347
  readonly detail: Schema.String;
1558
1348
  readonly instance: Schema.optionalKey<Schema.String>;
1559
1349
  readonly code: Schema.String;
1350
+ readonly details: Schema.optionalKey<Schema.Struct<{
1351
+ readonly retryable: Schema.Boolean;
1352
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
1353
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
1354
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1355
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1356
+ }>>;
1560
1357
  }>;
1561
1358
  export type OrgsTeamsCreateTeam403 = ForbiddenError;
1562
1359
  export declare const OrgsTeamsCreateTeam403: Schema.Struct<{
@@ -1566,7 +1363,7 @@ export declare const OrgsTeamsCreateTeam403: Schema.Struct<{
1566
1363
  readonly status: Schema.Number;
1567
1364
  readonly detail: Schema.String;
1568
1365
  readonly instance: Schema.optionalKey<Schema.String>;
1569
- readonly code: Schema.String;
1366
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
1570
1367
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1571
1368
  readonly requiredScope: Schema.String;
1572
1369
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -1582,9 +1379,8 @@ export declare const OrgsTeamsCreateTeam403: Schema.Struct<{
1582
1379
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1583
1380
  }>]>>;
1584
1381
  }>;
1585
- export type OrgsTeamsCreateTeam404 = NotFoundError;
1382
+ export type OrgsTeamsCreateTeam404 = ProblemDetails;
1586
1383
  export declare const OrgsTeamsCreateTeam404: Schema.Struct<{
1587
- readonly kind: Schema.Literal<"NotFoundError">;
1588
1384
  readonly type: Schema.String;
1589
1385
  readonly title: Schema.String;
1590
1386
  readonly status: Schema.Number;
@@ -1619,19 +1415,24 @@ export declare const OrgsTeamsGetTeam400: Schema.Struct<{
1619
1415
  readonly instance: Schema.optionalKey<Schema.String>;
1620
1416
  readonly code: Schema.String;
1621
1417
  }>;
1622
- export type OrgsTeamsGetTeam401 = UnauthorizedError;
1418
+ export type OrgsTeamsGetTeam401 = ProblemDetails;
1623
1419
  export declare const OrgsTeamsGetTeam401: Schema.Struct<{
1624
- readonly kind: Schema.Literal<"UnauthorizedError">;
1625
1420
  readonly type: Schema.String;
1626
1421
  readonly title: Schema.String;
1627
1422
  readonly status: Schema.Number;
1628
1423
  readonly detail: Schema.String;
1629
1424
  readonly instance: Schema.optionalKey<Schema.String>;
1630
1425
  readonly code: Schema.String;
1426
+ readonly details: Schema.optionalKey<Schema.Struct<{
1427
+ readonly retryable: Schema.Boolean;
1428
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
1429
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
1430
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1431
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1432
+ }>>;
1631
1433
  }>;
1632
- export type OrgsTeamsGetTeam404 = NotFoundError;
1434
+ export type OrgsTeamsGetTeam404 = ProblemDetails;
1633
1435
  export declare const OrgsTeamsGetTeam404: Schema.Struct<{
1634
- readonly kind: Schema.Literal<"NotFoundError">;
1635
1436
  readonly type: Schema.String;
1636
1437
  readonly title: Schema.String;
1637
1438
  readonly status: Schema.Number;
@@ -1656,15 +1457,21 @@ export declare const OrgsTeamsDeleteTeam400: Schema.Struct<{
1656
1457
  readonly instance: Schema.optionalKey<Schema.String>;
1657
1458
  readonly code: Schema.String;
1658
1459
  }>;
1659
- export type OrgsTeamsDeleteTeam401 = UnauthorizedError;
1460
+ export type OrgsTeamsDeleteTeam401 = ProblemDetails;
1660
1461
  export declare const OrgsTeamsDeleteTeam401: Schema.Struct<{
1661
- readonly kind: Schema.Literal<"UnauthorizedError">;
1662
1462
  readonly type: Schema.String;
1663
1463
  readonly title: Schema.String;
1664
1464
  readonly status: Schema.Number;
1665
1465
  readonly detail: Schema.String;
1666
1466
  readonly instance: Schema.optionalKey<Schema.String>;
1667
1467
  readonly code: Schema.String;
1468
+ readonly details: Schema.optionalKey<Schema.Struct<{
1469
+ readonly retryable: Schema.Boolean;
1470
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
1471
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
1472
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1473
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1474
+ }>>;
1668
1475
  }>;
1669
1476
  export type OrgsTeamsDeleteTeam403 = ForbiddenError;
1670
1477
  export declare const OrgsTeamsDeleteTeam403: Schema.Struct<{
@@ -1674,7 +1481,7 @@ export declare const OrgsTeamsDeleteTeam403: Schema.Struct<{
1674
1481
  readonly status: Schema.Number;
1675
1482
  readonly detail: Schema.String;
1676
1483
  readonly instance: Schema.optionalKey<Schema.String>;
1677
- readonly code: Schema.String;
1484
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
1678
1485
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1679
1486
  readonly requiredScope: Schema.String;
1680
1487
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -1690,9 +1497,8 @@ export declare const OrgsTeamsDeleteTeam403: Schema.Struct<{
1690
1497
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1691
1498
  }>]>>;
1692
1499
  }>;
1693
- export type OrgsTeamsDeleteTeam404 = NotFoundError;
1500
+ export type OrgsTeamsDeleteTeam404 = ProblemDetails;
1694
1501
  export declare const OrgsTeamsDeleteTeam404: Schema.Struct<{
1695
- readonly kind: Schema.Literal<"NotFoundError">;
1696
1502
  readonly type: Schema.String;
1697
1503
  readonly title: Schema.String;
1698
1504
  readonly status: Schema.Number;
@@ -1722,9 +1528,8 @@ export declare const OrgsTeamsUpdateTeam200: Schema.Struct<{
1722
1528
  readonly createdBy: Schema.String;
1723
1529
  readonly updatedAt: Schema.String;
1724
1530
  }>;
1725
- export type OrgsTeamsUpdateTeam400 = InvalidRequestError | DecodeErrorResponse;
1531
+ export type OrgsTeamsUpdateTeam400 = ProblemDetails | DecodeErrorResponse;
1726
1532
  export declare const OrgsTeamsUpdateTeam400: Schema.Union<readonly [Schema.Struct<{
1727
- readonly kind: Schema.Literal<"InvalidRequestError">;
1728
1533
  readonly type: Schema.String;
1729
1534
  readonly title: Schema.String;
1730
1535
  readonly status: Schema.Number;
@@ -1747,15 +1552,21 @@ export declare const OrgsTeamsUpdateTeam400: Schema.Union<readonly [Schema.Struc
1747
1552
  readonly instance: Schema.optionalKey<Schema.String>;
1748
1553
  readonly code: Schema.String;
1749
1554
  }>]>;
1750
- export type OrgsTeamsUpdateTeam401 = UnauthorizedError;
1555
+ export type OrgsTeamsUpdateTeam401 = ProblemDetails;
1751
1556
  export declare const OrgsTeamsUpdateTeam401: Schema.Struct<{
1752
- readonly kind: Schema.Literal<"UnauthorizedError">;
1753
1557
  readonly type: Schema.String;
1754
1558
  readonly title: Schema.String;
1755
1559
  readonly status: Schema.Number;
1756
1560
  readonly detail: Schema.String;
1757
1561
  readonly instance: Schema.optionalKey<Schema.String>;
1758
1562
  readonly code: Schema.String;
1563
+ readonly details: Schema.optionalKey<Schema.Struct<{
1564
+ readonly retryable: Schema.Boolean;
1565
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
1566
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
1567
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1568
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1569
+ }>>;
1759
1570
  }>;
1760
1571
  export type OrgsTeamsUpdateTeam403 = ForbiddenError;
1761
1572
  export declare const OrgsTeamsUpdateTeam403: Schema.Struct<{
@@ -1765,7 +1576,7 @@ export declare const OrgsTeamsUpdateTeam403: Schema.Struct<{
1765
1576
  readonly status: Schema.Number;
1766
1577
  readonly detail: Schema.String;
1767
1578
  readonly instance: Schema.optionalKey<Schema.String>;
1768
- readonly code: Schema.String;
1579
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
1769
1580
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1770
1581
  readonly requiredScope: Schema.String;
1771
1582
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -1781,9 +1592,8 @@ export declare const OrgsTeamsUpdateTeam403: Schema.Struct<{
1781
1592
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1782
1593
  }>]>>;
1783
1594
  }>;
1784
- export type OrgsTeamsUpdateTeam404 = NotFoundError;
1595
+ export type OrgsTeamsUpdateTeam404 = ProblemDetails;
1785
1596
  export declare const OrgsTeamsUpdateTeam404: Schema.Struct<{
1786
- readonly kind: Schema.Literal<"NotFoundError">;
1787
1597
  readonly type: Schema.String;
1788
1598
  readonly title: Schema.String;
1789
1599
  readonly status: Schema.Number;
@@ -1827,19 +1637,24 @@ export declare const OrgsTeamsListTeamMembers400: Schema.Struct<{
1827
1637
  readonly instance: Schema.optionalKey<Schema.String>;
1828
1638
  readonly code: Schema.String;
1829
1639
  }>;
1830
- export type OrgsTeamsListTeamMembers401 = UnauthorizedError;
1640
+ export type OrgsTeamsListTeamMembers401 = ProblemDetails;
1831
1641
  export declare const OrgsTeamsListTeamMembers401: Schema.Struct<{
1832
- readonly kind: Schema.Literal<"UnauthorizedError">;
1833
1642
  readonly type: Schema.String;
1834
1643
  readonly title: Schema.String;
1835
1644
  readonly status: Schema.Number;
1836
1645
  readonly detail: Schema.String;
1837
1646
  readonly instance: Schema.optionalKey<Schema.String>;
1838
1647
  readonly code: Schema.String;
1648
+ readonly details: Schema.optionalKey<Schema.Struct<{
1649
+ readonly retryable: Schema.Boolean;
1650
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
1651
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
1652
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1653
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1654
+ }>>;
1839
1655
  }>;
1840
- export type OrgsTeamsListTeamMembers404 = NotFoundError;
1656
+ export type OrgsTeamsListTeamMembers404 = ProblemDetails;
1841
1657
  export declare const OrgsTeamsListTeamMembers404: Schema.Struct<{
1842
- readonly kind: Schema.Literal<"NotFoundError">;
1843
1658
  readonly type: Schema.String;
1844
1659
  readonly title: Schema.String;
1845
1660
  readonly status: Schema.Number;
@@ -1877,15 +1692,21 @@ export declare const OrgsTeamsAddTeamMember400: Schema.Struct<{
1877
1692
  readonly instance: Schema.optionalKey<Schema.String>;
1878
1693
  readonly code: Schema.String;
1879
1694
  }>;
1880
- export type OrgsTeamsAddTeamMember401 = UnauthorizedError;
1695
+ export type OrgsTeamsAddTeamMember401 = ProblemDetails;
1881
1696
  export declare const OrgsTeamsAddTeamMember401: Schema.Struct<{
1882
- readonly kind: Schema.Literal<"UnauthorizedError">;
1883
1697
  readonly type: Schema.String;
1884
1698
  readonly title: Schema.String;
1885
1699
  readonly status: Schema.Number;
1886
1700
  readonly detail: Schema.String;
1887
1701
  readonly instance: Schema.optionalKey<Schema.String>;
1888
1702
  readonly code: Schema.String;
1703
+ readonly details: Schema.optionalKey<Schema.Struct<{
1704
+ readonly retryable: Schema.Boolean;
1705
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
1706
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
1707
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1708
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1709
+ }>>;
1889
1710
  }>;
1890
1711
  export type OrgsTeamsAddTeamMember403 = ForbiddenError;
1891
1712
  export declare const OrgsTeamsAddTeamMember403: Schema.Struct<{
@@ -1895,7 +1716,7 @@ export declare const OrgsTeamsAddTeamMember403: Schema.Struct<{
1895
1716
  readonly status: Schema.Number;
1896
1717
  readonly detail: Schema.String;
1897
1718
  readonly instance: Schema.optionalKey<Schema.String>;
1898
- readonly code: Schema.String;
1719
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
1899
1720
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1900
1721
  readonly requiredScope: Schema.String;
1901
1722
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -1911,9 +1732,8 @@ export declare const OrgsTeamsAddTeamMember403: Schema.Struct<{
1911
1732
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1912
1733
  }>]>>;
1913
1734
  }>;
1914
- export type OrgsTeamsAddTeamMember404 = NotFoundError;
1735
+ export type OrgsTeamsAddTeamMember404 = ProblemDetails;
1915
1736
  export declare const OrgsTeamsAddTeamMember404: Schema.Struct<{
1916
- readonly kind: Schema.Literal<"NotFoundError">;
1917
1737
  readonly type: Schema.String;
1918
1738
  readonly title: Schema.String;
1919
1739
  readonly status: Schema.Number;
@@ -1928,9 +1748,8 @@ export declare const OrgsTeamsAddTeamMember404: Schema.Struct<{
1928
1748
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1929
1749
  }>>;
1930
1750
  }>;
1931
- export type OrgsTeamsAddTeamMember422 = UnprocessableEntityError;
1751
+ export type OrgsTeamsAddTeamMember422 = ProblemDetails;
1932
1752
  export declare const OrgsTeamsAddTeamMember422: Schema.Struct<{
1933
- readonly kind: Schema.Literal<"UnprocessableEntityError">;
1934
1753
  readonly type: Schema.String;
1935
1754
  readonly title: Schema.String;
1936
1755
  readonly status: Schema.Number;
@@ -1955,15 +1774,21 @@ export declare const OrgsTeamsRemoveTeamMember400: Schema.Struct<{
1955
1774
  readonly instance: Schema.optionalKey<Schema.String>;
1956
1775
  readonly code: Schema.String;
1957
1776
  }>;
1958
- export type OrgsTeamsRemoveTeamMember401 = UnauthorizedError;
1777
+ export type OrgsTeamsRemoveTeamMember401 = ProblemDetails;
1959
1778
  export declare const OrgsTeamsRemoveTeamMember401: Schema.Struct<{
1960
- readonly kind: Schema.Literal<"UnauthorizedError">;
1961
1779
  readonly type: Schema.String;
1962
1780
  readonly title: Schema.String;
1963
1781
  readonly status: Schema.Number;
1964
1782
  readonly detail: Schema.String;
1965
1783
  readonly instance: Schema.optionalKey<Schema.String>;
1966
1784
  readonly code: Schema.String;
1785
+ readonly details: Schema.optionalKey<Schema.Struct<{
1786
+ readonly retryable: Schema.Boolean;
1787
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
1788
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
1789
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1790
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1791
+ }>>;
1967
1792
  }>;
1968
1793
  export type OrgsTeamsRemoveTeamMember403 = ForbiddenError;
1969
1794
  export declare const OrgsTeamsRemoveTeamMember403: Schema.Struct<{
@@ -1973,7 +1798,7 @@ export declare const OrgsTeamsRemoveTeamMember403: Schema.Struct<{
1973
1798
  readonly status: Schema.Number;
1974
1799
  readonly detail: Schema.String;
1975
1800
  readonly instance: Schema.optionalKey<Schema.String>;
1976
- readonly code: Schema.String;
1801
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
1977
1802
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1978
1803
  readonly requiredScope: Schema.String;
1979
1804
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -1989,9 +1814,8 @@ export declare const OrgsTeamsRemoveTeamMember403: Schema.Struct<{
1989
1814
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1990
1815
  }>]>>;
1991
1816
  }>;
1992
- export type OrgsTeamsRemoveTeamMember404 = NotFoundError;
1817
+ export type OrgsTeamsRemoveTeamMember404 = ProblemDetails;
1993
1818
  export declare const OrgsTeamsRemoveTeamMember404: Schema.Struct<{
1994
- readonly kind: Schema.Literal<"NotFoundError">;
1995
1819
  readonly type: Schema.String;
1996
1820
  readonly title: Schema.String;
1997
1821
  readonly status: Schema.Number;
@@ -2028,15 +1852,21 @@ export declare const OrgsTeamsChangeTeamMemberRole400: Schema.Struct<{
2028
1852
  readonly instance: Schema.optionalKey<Schema.String>;
2029
1853
  readonly code: Schema.String;
2030
1854
  }>;
2031
- export type OrgsTeamsChangeTeamMemberRole401 = UnauthorizedError;
1855
+ export type OrgsTeamsChangeTeamMemberRole401 = ProblemDetails;
2032
1856
  export declare const OrgsTeamsChangeTeamMemberRole401: Schema.Struct<{
2033
- readonly kind: Schema.Literal<"UnauthorizedError">;
2034
1857
  readonly type: Schema.String;
2035
1858
  readonly title: Schema.String;
2036
1859
  readonly status: Schema.Number;
2037
1860
  readonly detail: Schema.String;
2038
1861
  readonly instance: Schema.optionalKey<Schema.String>;
2039
1862
  readonly code: Schema.String;
1863
+ readonly details: Schema.optionalKey<Schema.Struct<{
1864
+ readonly retryable: Schema.Boolean;
1865
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
1866
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
1867
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1868
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1869
+ }>>;
2040
1870
  }>;
2041
1871
  export type OrgsTeamsChangeTeamMemberRole403 = ForbiddenError;
2042
1872
  export declare const OrgsTeamsChangeTeamMemberRole403: Schema.Struct<{
@@ -2046,7 +1876,7 @@ export declare const OrgsTeamsChangeTeamMemberRole403: Schema.Struct<{
2046
1876
  readonly status: Schema.Number;
2047
1877
  readonly detail: Schema.String;
2048
1878
  readonly instance: Schema.optionalKey<Schema.String>;
2049
- readonly code: Schema.String;
1879
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
2050
1880
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2051
1881
  readonly requiredScope: Schema.String;
2052
1882
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -2062,9 +1892,8 @@ export declare const OrgsTeamsChangeTeamMemberRole403: Schema.Struct<{
2062
1892
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2063
1893
  }>]>>;
2064
1894
  }>;
2065
- export type OrgsTeamsChangeTeamMemberRole404 = NotFoundError;
1895
+ export type OrgsTeamsChangeTeamMemberRole404 = ProblemDetails;
2066
1896
  export declare const OrgsTeamsChangeTeamMemberRole404: Schema.Struct<{
2067
- readonly kind: Schema.Literal<"NotFoundError">;
2068
1897
  readonly type: Schema.String;
2069
1898
  readonly title: Schema.String;
2070
1899
  readonly status: Schema.Number;
@@ -2223,9 +2052,8 @@ export declare const ExtensionsGet400: Schema.Struct<{
2223
2052
  readonly instance: Schema.optionalKey<Schema.String>;
2224
2053
  readonly code: Schema.String;
2225
2054
  }>;
2226
- export type ExtensionsGet404 = NotFoundError;
2055
+ export type ExtensionsGet404 = ProblemDetails;
2227
2056
  export declare const ExtensionsGet404: Schema.Struct<{
2228
- readonly kind: Schema.Literal<"NotFoundError">;
2229
2057
  readonly type: Schema.String;
2230
2058
  readonly title: Schema.String;
2231
2059
  readonly status: Schema.Number;
@@ -2263,9 +2091,8 @@ export declare const ExtensionsUpdateVisibility200: Schema.Struct<{
2263
2091
  readonly listed: Schema.Boolean;
2264
2092
  readonly updatedAt: Schema.String;
2265
2093
  }>;
2266
- export type ExtensionsUpdateVisibility400 = InvalidRequestError | DecodeErrorResponse;
2094
+ export type ExtensionsUpdateVisibility400 = ProblemDetails | DecodeErrorResponse;
2267
2095
  export declare const ExtensionsUpdateVisibility400: Schema.Union<readonly [Schema.Struct<{
2268
- readonly kind: Schema.Literal<"InvalidRequestError">;
2269
2096
  readonly type: Schema.String;
2270
2097
  readonly title: Schema.String;
2271
2098
  readonly status: Schema.Number;
@@ -2288,25 +2115,31 @@ export declare const ExtensionsUpdateVisibility400: Schema.Union<readonly [Schem
2288
2115
  readonly instance: Schema.optionalKey<Schema.String>;
2289
2116
  readonly code: Schema.String;
2290
2117
  }>]>;
2291
- export type ExtensionsUpdateVisibility401 = UnauthorizedError;
2118
+ export type ExtensionsUpdateVisibility401 = ProblemDetails;
2292
2119
  export declare const ExtensionsUpdateVisibility401: Schema.Struct<{
2293
- readonly kind: Schema.Literal<"UnauthorizedError">;
2294
2120
  readonly type: Schema.String;
2295
2121
  readonly title: Schema.String;
2296
2122
  readonly status: Schema.Number;
2297
2123
  readonly detail: Schema.String;
2298
2124
  readonly instance: Schema.optionalKey<Schema.String>;
2299
2125
  readonly code: Schema.String;
2126
+ readonly details: Schema.optionalKey<Schema.Struct<{
2127
+ readonly retryable: Schema.Boolean;
2128
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
2129
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
2130
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
2131
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2132
+ }>>;
2300
2133
  }>;
2301
- export type ExtensionsUpdateVisibility403 = ForbiddenError;
2302
- export declare const ExtensionsUpdateVisibility403: Schema.Struct<{
2134
+ export type ExtensionsUpdateVisibility403 = ForbiddenError | ForbiddenError;
2135
+ export declare const ExtensionsUpdateVisibility403: Schema.Union<readonly [Schema.Struct<{
2303
2136
  readonly kind: Schema.Literal<"ForbiddenError">;
2304
2137
  readonly type: Schema.String;
2305
2138
  readonly title: Schema.String;
2306
2139
  readonly status: Schema.Number;
2307
2140
  readonly detail: Schema.String;
2308
2141
  readonly instance: Schema.optionalKey<Schema.String>;
2309
- readonly code: Schema.String;
2142
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
2310
2143
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2311
2144
  readonly requiredScope: Schema.String;
2312
2145
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -2321,10 +2154,31 @@ export declare const ExtensionsUpdateVisibility403: Schema.Struct<{
2321
2154
  readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
2322
2155
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2323
2156
  }>]>>;
2324
- }>;
2325
- export type ExtensionsUpdateVisibility404 = NotFoundError;
2157
+ }>, Schema.Struct<{
2158
+ readonly kind: Schema.Literal<"ForbiddenError">;
2159
+ readonly type: Schema.String;
2160
+ readonly title: Schema.String;
2161
+ readonly status: Schema.Number;
2162
+ readonly detail: Schema.String;
2163
+ readonly instance: Schema.optionalKey<Schema.String>;
2164
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
2165
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2166
+ readonly requiredScope: Schema.String;
2167
+ readonly grantedScopes: Schema.$Array<Schema.String>;
2168
+ }>, Schema.Struct<{
2169
+ readonly requiredScope: Schema.String;
2170
+ readonly tokenScopes: Schema.$Array<Schema.String>;
2171
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
2172
+ }>, Schema.Struct<{
2173
+ readonly retryable: Schema.Boolean;
2174
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
2175
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
2176
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
2177
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2178
+ }>]>>;
2179
+ }>]>;
2180
+ export type ExtensionsUpdateVisibility404 = ProblemDetails;
2326
2181
  export declare const ExtensionsUpdateVisibility404: Schema.Struct<{
2327
- readonly kind: Schema.Literal<"NotFoundError">;
2328
2182
  readonly type: Schema.String;
2329
2183
  readonly title: Schema.String;
2330
2184
  readonly status: Schema.Number;
@@ -2339,9 +2193,8 @@ export declare const ExtensionsUpdateVisibility404: Schema.Struct<{
2339
2193
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2340
2194
  }>>;
2341
2195
  }>;
2342
- export type ExtensionsUpdateVisibility422 = UnprocessableEntityError;
2196
+ export type ExtensionsUpdateVisibility422 = ProblemDetails;
2343
2197
  export declare const ExtensionsUpdateVisibility422: Schema.Struct<{
2344
- readonly kind: Schema.Literal<"UnprocessableEntityError">;
2345
2198
  readonly type: Schema.String;
2346
2199
  readonly title: Schema.String;
2347
2200
  readonly status: Schema.Number;
@@ -2406,9 +2259,8 @@ export declare const ExtensionsGetVersion400: Schema.Struct<{
2406
2259
  readonly instance: Schema.optionalKey<Schema.String>;
2407
2260
  readonly code: Schema.String;
2408
2261
  }>;
2409
- export type ExtensionsGetVersion404 = NotFoundError;
2262
+ export type ExtensionsGetVersion404 = ProblemDetails;
2410
2263
  export declare const ExtensionsGetVersion404: Schema.Struct<{
2411
- readonly kind: Schema.Literal<"NotFoundError">;
2412
2264
  readonly type: Schema.String;
2413
2265
  readonly title: Schema.String;
2414
2266
  readonly status: Schema.Number;
@@ -2471,9 +2323,8 @@ export declare const ExtensionsPublishVersion201: Schema.Struct<{
2471
2323
  readonly published_at: Schema.String;
2472
2324
  readonly publish_status: Schema.Literals<readonly ["pending", "available", "failed"]>;
2473
2325
  }>;
2474
- export type ExtensionsPublishVersion400 = InvalidRequestError | DecodeErrorResponse;
2326
+ export type ExtensionsPublishVersion400 = ProblemDetails | DecodeErrorResponse;
2475
2327
  export declare const ExtensionsPublishVersion400: Schema.Union<readonly [Schema.Struct<{
2476
- readonly kind: Schema.Literal<"InvalidRequestError">;
2477
2328
  readonly type: Schema.String;
2478
2329
  readonly title: Schema.String;
2479
2330
  readonly status: Schema.Number;
@@ -2496,25 +2347,31 @@ export declare const ExtensionsPublishVersion400: Schema.Union<readonly [Schema.
2496
2347
  readonly instance: Schema.optionalKey<Schema.String>;
2497
2348
  readonly code: Schema.String;
2498
2349
  }>]>;
2499
- export type ExtensionsPublishVersion401 = UnauthorizedError;
2350
+ export type ExtensionsPublishVersion401 = ProblemDetails;
2500
2351
  export declare const ExtensionsPublishVersion401: Schema.Struct<{
2501
- readonly kind: Schema.Literal<"UnauthorizedError">;
2502
2352
  readonly type: Schema.String;
2503
2353
  readonly title: Schema.String;
2504
2354
  readonly status: Schema.Number;
2505
2355
  readonly detail: Schema.String;
2506
2356
  readonly instance: Schema.optionalKey<Schema.String>;
2507
2357
  readonly code: Schema.String;
2358
+ readonly details: Schema.optionalKey<Schema.Struct<{
2359
+ readonly retryable: Schema.Boolean;
2360
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
2361
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
2362
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
2363
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2364
+ }>>;
2508
2365
  }>;
2509
- export type ExtensionsPublishVersion403 = ForbiddenError;
2510
- export declare const ExtensionsPublishVersion403: Schema.Struct<{
2366
+ export type ExtensionsPublishVersion403 = ForbiddenError | ForbiddenError;
2367
+ export declare const ExtensionsPublishVersion403: Schema.Union<readonly [Schema.Struct<{
2511
2368
  readonly kind: Schema.Literal<"ForbiddenError">;
2512
2369
  readonly type: Schema.String;
2513
2370
  readonly title: Schema.String;
2514
2371
  readonly status: Schema.Number;
2515
2372
  readonly detail: Schema.String;
2516
2373
  readonly instance: Schema.optionalKey<Schema.String>;
2517
- readonly code: Schema.String;
2374
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
2518
2375
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2519
2376
  readonly requiredScope: Schema.String;
2520
2377
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -2529,10 +2386,31 @@ export declare const ExtensionsPublishVersion403: Schema.Struct<{
2529
2386
  readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
2530
2387
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2531
2388
  }>]>>;
2532
- }>;
2533
- export type ExtensionsPublishVersion404 = NotFoundError;
2389
+ }>, Schema.Struct<{
2390
+ readonly kind: Schema.Literal<"ForbiddenError">;
2391
+ readonly type: Schema.String;
2392
+ readonly title: Schema.String;
2393
+ readonly status: Schema.Number;
2394
+ readonly detail: Schema.String;
2395
+ readonly instance: Schema.optionalKey<Schema.String>;
2396
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
2397
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2398
+ readonly requiredScope: Schema.String;
2399
+ readonly grantedScopes: Schema.$Array<Schema.String>;
2400
+ }>, Schema.Struct<{
2401
+ readonly requiredScope: Schema.String;
2402
+ readonly tokenScopes: Schema.$Array<Schema.String>;
2403
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
2404
+ }>, Schema.Struct<{
2405
+ readonly retryable: Schema.Boolean;
2406
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
2407
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
2408
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
2409
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2410
+ }>]>>;
2411
+ }>]>;
2412
+ export type ExtensionsPublishVersion404 = ProblemDetails;
2534
2413
  export declare const ExtensionsPublishVersion404: Schema.Struct<{
2535
- readonly kind: Schema.Literal<"NotFoundError">;
2536
2414
  readonly type: Schema.String;
2537
2415
  readonly title: Schema.String;
2538
2416
  readonly status: Schema.Number;
@@ -2547,9 +2425,8 @@ export declare const ExtensionsPublishVersion404: Schema.Struct<{
2547
2425
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2548
2426
  }>>;
2549
2427
  }>;
2550
- export type ExtensionsPublishVersion409 = ConflictError;
2428
+ export type ExtensionsPublishVersion409 = ProblemDetails;
2551
2429
  export declare const ExtensionsPublishVersion409: Schema.Struct<{
2552
- readonly kind: Schema.Literal<"ConflictError">;
2553
2430
  readonly type: Schema.String;
2554
2431
  readonly title: Schema.String;
2555
2432
  readonly status: Schema.Number;
@@ -2564,9 +2441,8 @@ export declare const ExtensionsPublishVersion409: Schema.Struct<{
2564
2441
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2565
2442
  }>>;
2566
2443
  }>;
2567
- export type ExtensionsPublishVersion413 = PayloadTooLargeError;
2444
+ export type ExtensionsPublishVersion413 = ProblemDetails;
2568
2445
  export declare const ExtensionsPublishVersion413: Schema.Struct<{
2569
- readonly kind: Schema.Literal<"PayloadTooLargeError">;
2570
2446
  readonly type: Schema.String;
2571
2447
  readonly title: Schema.String;
2572
2448
  readonly status: Schema.Number;
@@ -2581,9 +2457,8 @@ export declare const ExtensionsPublishVersion413: Schema.Struct<{
2581
2457
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2582
2458
  }>>;
2583
2459
  }>;
2584
- export type ExtensionsPublishVersion415 = UnsupportedMediaTypeError;
2460
+ export type ExtensionsPublishVersion415 = ProblemDetails;
2585
2461
  export declare const ExtensionsPublishVersion415: Schema.Struct<{
2586
- readonly kind: Schema.Literal<"UnsupportedMediaTypeError">;
2587
2462
  readonly type: Schema.String;
2588
2463
  readonly title: Schema.String;
2589
2464
  readonly status: Schema.Number;
@@ -2598,9 +2473,8 @@ export declare const ExtensionsPublishVersion415: Schema.Struct<{
2598
2473
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2599
2474
  }>>;
2600
2475
  }>;
2601
- export type ExtensionsPublishVersion422 = UnprocessableEntityError | ExtensionLintFailedError | ExtensionIdentityMismatchError;
2476
+ export type ExtensionsPublishVersion422 = ProblemDetails | ExtensionLintFailedError | ExtensionIdentityMismatchError;
2602
2477
  export declare const ExtensionsPublishVersion422: Schema.Union<readonly [Schema.Struct<{
2603
- readonly kind: Schema.Literal<"UnprocessableEntityError">;
2604
2478
  readonly type: Schema.String;
2605
2479
  readonly title: Schema.String;
2606
2480
  readonly status: Schema.Number;
@@ -2621,7 +2495,7 @@ export declare const ExtensionsPublishVersion422: Schema.Union<readonly [Schema.
2621
2495
  readonly status: Schema.Number;
2622
2496
  readonly detail: Schema.String;
2623
2497
  readonly instance: Schema.optionalKey<Schema.String>;
2624
- readonly code: Schema.String;
2498
+ readonly code: Schema.Literal<"extension_lint_failed">;
2625
2499
  readonly error: Schema.Literal<"extension_lint_failed">;
2626
2500
  readonly identity: Schema.Struct<{
2627
2501
  readonly owner: Schema.String;
@@ -2652,7 +2526,7 @@ export declare const ExtensionsPublishVersion422: Schema.Union<readonly [Schema.
2652
2526
  readonly status: Schema.Number;
2653
2527
  readonly detail: Schema.String;
2654
2528
  readonly instance: Schema.optionalKey<Schema.String>;
2655
- readonly code: Schema.String;
2529
+ readonly code: Schema.Literal<"extension_identity_mismatch">;
2656
2530
  readonly error: Schema.Literal<"extension_identity_mismatch">;
2657
2531
  readonly identity: Schema.Struct<{
2658
2532
  readonly owner: Schema.String;
@@ -2666,9 +2540,8 @@ export declare const ExtensionsPublishVersion422: Schema.Union<readonly [Schema.
2666
2540
  readonly content: Schema.Union<readonly [Schema.String, Schema.Null]>;
2667
2541
  }>>;
2668
2542
  }>]>;
2669
- export type ExtensionsPublishVersion429 = TooManyRequestsError;
2543
+ export type ExtensionsPublishVersion429 = ProblemDetails;
2670
2544
  export declare const ExtensionsPublishVersion429: Schema.Struct<{
2671
- readonly kind: Schema.Literal<"TooManyRequestsError">;
2672
2545
  readonly type: Schema.String;
2673
2546
  readonly title: Schema.String;
2674
2547
  readonly status: Schema.Number;
@@ -2683,9 +2556,8 @@ export declare const ExtensionsPublishVersion429: Schema.Struct<{
2683
2556
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2684
2557
  }>>;
2685
2558
  }>;
2686
- export type ExtensionsPublishVersion500 = InternalError;
2559
+ export type ExtensionsPublishVersion500 = ProblemDetails;
2687
2560
  export declare const ExtensionsPublishVersion500: Schema.Struct<{
2688
- readonly kind: Schema.Literal<"InternalError">;
2689
2561
  readonly type: Schema.String;
2690
2562
  readonly title: Schema.String;
2691
2563
  readonly status: Schema.Number;
@@ -2700,9 +2572,8 @@ export declare const ExtensionsPublishVersion500: Schema.Struct<{
2700
2572
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2701
2573
  }>>;
2702
2574
  }>;
2703
- export type ExtensionsPublishVersion503 = ServiceUnavailableError;
2575
+ export type ExtensionsPublishVersion503 = ProblemDetails;
2704
2576
  export declare const ExtensionsPublishVersion503: Schema.Struct<{
2705
- readonly kind: Schema.Literal<"ServiceUnavailableError">;
2706
2577
  readonly type: Schema.String;
2707
2578
  readonly title: Schema.String;
2708
2579
  readonly status: Schema.Number;
@@ -2727,15 +2598,21 @@ export declare const ExtensionsDeleteVersion400: Schema.Struct<{
2727
2598
  readonly instance: Schema.optionalKey<Schema.String>;
2728
2599
  readonly code: Schema.String;
2729
2600
  }>;
2730
- export type ExtensionsDeleteVersion401 = UnauthorizedError;
2601
+ export type ExtensionsDeleteVersion401 = ProblemDetails;
2731
2602
  export declare const ExtensionsDeleteVersion401: Schema.Struct<{
2732
- readonly kind: Schema.Literal<"UnauthorizedError">;
2733
2603
  readonly type: Schema.String;
2734
2604
  readonly title: Schema.String;
2735
2605
  readonly status: Schema.Number;
2736
2606
  readonly detail: Schema.String;
2737
2607
  readonly instance: Schema.optionalKey<Schema.String>;
2738
2608
  readonly code: Schema.String;
2609
+ readonly details: Schema.optionalKey<Schema.Struct<{
2610
+ readonly retryable: Schema.Boolean;
2611
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
2612
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
2613
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
2614
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2615
+ }>>;
2739
2616
  }>;
2740
2617
  export type ExtensionsDeleteVersion403 = ForbiddenError;
2741
2618
  export declare const ExtensionsDeleteVersion403: Schema.Struct<{
@@ -2745,7 +2622,7 @@ export declare const ExtensionsDeleteVersion403: Schema.Struct<{
2745
2622
  readonly status: Schema.Number;
2746
2623
  readonly detail: Schema.String;
2747
2624
  readonly instance: Schema.optionalKey<Schema.String>;
2748
- readonly code: Schema.String;
2625
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
2749
2626
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2750
2627
  readonly requiredScope: Schema.String;
2751
2628
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -2761,9 +2638,8 @@ export declare const ExtensionsDeleteVersion403: Schema.Struct<{
2761
2638
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2762
2639
  }>]>>;
2763
2640
  }>;
2764
- export type ExtensionsDeleteVersion404 = NotFoundError;
2641
+ export type ExtensionsDeleteVersion404 = ProblemDetails;
2765
2642
  export declare const ExtensionsDeleteVersion404: Schema.Struct<{
2766
- readonly kind: Schema.Literal<"NotFoundError">;
2767
2643
  readonly type: Schema.String;
2768
2644
  readonly title: Schema.String;
2769
2645
  readonly status: Schema.Number;
@@ -2788,9 +2664,8 @@ export declare const ExtensionsDownloadArchive400: Schema.Struct<{
2788
2664
  readonly instance: Schema.optionalKey<Schema.String>;
2789
2665
  readonly code: Schema.String;
2790
2666
  }>;
2791
- export type ExtensionsDownloadArchive404 = NotFoundError;
2667
+ export type ExtensionsDownloadArchive404 = ProblemDetails;
2792
2668
  export declare const ExtensionsDownloadArchive404: Schema.Struct<{
2793
- readonly kind: Schema.Literal<"NotFoundError">;
2794
2669
  readonly type: Schema.String;
2795
2670
  readonly title: Schema.String;
2796
2671
  readonly status: Schema.Number;
@@ -2805,9 +2680,8 @@ export declare const ExtensionsDownloadArchive404: Schema.Struct<{
2805
2680
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2806
2681
  }>>;
2807
2682
  }>;
2808
- export type ExtensionsDownloadArchive500 = InternalError;
2683
+ export type ExtensionsDownloadArchive500 = ProblemDetails;
2809
2684
  export declare const ExtensionsDownloadArchive500: Schema.Struct<{
2810
- readonly kind: Schema.Literal<"InternalError">;
2811
2685
  readonly type: Schema.String;
2812
2686
  readonly title: Schema.String;
2813
2687
  readonly status: Schema.Number;
@@ -2850,15 +2724,21 @@ export declare const ExtensionsDeprecate400: Schema.Struct<{
2850
2724
  readonly instance: Schema.optionalKey<Schema.String>;
2851
2725
  readonly code: Schema.String;
2852
2726
  }>;
2853
- export type ExtensionsDeprecate401 = UnauthorizedError;
2727
+ export type ExtensionsDeprecate401 = ProblemDetails;
2854
2728
  export declare const ExtensionsDeprecate401: Schema.Struct<{
2855
- readonly kind: Schema.Literal<"UnauthorizedError">;
2856
2729
  readonly type: Schema.String;
2857
2730
  readonly title: Schema.String;
2858
2731
  readonly status: Schema.Number;
2859
2732
  readonly detail: Schema.String;
2860
2733
  readonly instance: Schema.optionalKey<Schema.String>;
2861
2734
  readonly code: Schema.String;
2735
+ readonly details: Schema.optionalKey<Schema.Struct<{
2736
+ readonly retryable: Schema.Boolean;
2737
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
2738
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
2739
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
2740
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2741
+ }>>;
2862
2742
  }>;
2863
2743
  export type ExtensionsDeprecate403 = ForbiddenError;
2864
2744
  export declare const ExtensionsDeprecate403: Schema.Struct<{
@@ -2868,7 +2748,7 @@ export declare const ExtensionsDeprecate403: Schema.Struct<{
2868
2748
  readonly status: Schema.Number;
2869
2749
  readonly detail: Schema.String;
2870
2750
  readonly instance: Schema.optionalKey<Schema.String>;
2871
- readonly code: Schema.String;
2751
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
2872
2752
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2873
2753
  readonly requiredScope: Schema.String;
2874
2754
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -2884,9 +2764,8 @@ export declare const ExtensionsDeprecate403: Schema.Struct<{
2884
2764
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2885
2765
  }>]>>;
2886
2766
  }>;
2887
- export type ExtensionsDeprecate404 = NotFoundError;
2767
+ export type ExtensionsDeprecate404 = ProblemDetails;
2888
2768
  export declare const ExtensionsDeprecate404: Schema.Struct<{
2889
- readonly kind: Schema.Literal<"NotFoundError">;
2890
2769
  readonly type: Schema.String;
2891
2770
  readonly title: Schema.String;
2892
2771
  readonly status: Schema.Number;
@@ -2925,15 +2804,21 @@ export declare const ExtensionsUndeprecate400: Schema.Struct<{
2925
2804
  readonly instance: Schema.optionalKey<Schema.String>;
2926
2805
  readonly code: Schema.String;
2927
2806
  }>;
2928
- export type ExtensionsUndeprecate401 = UnauthorizedError;
2807
+ export type ExtensionsUndeprecate401 = ProblemDetails;
2929
2808
  export declare const ExtensionsUndeprecate401: Schema.Struct<{
2930
- readonly kind: Schema.Literal<"UnauthorizedError">;
2931
2809
  readonly type: Schema.String;
2932
2810
  readonly title: Schema.String;
2933
2811
  readonly status: Schema.Number;
2934
2812
  readonly detail: Schema.String;
2935
2813
  readonly instance: Schema.optionalKey<Schema.String>;
2936
2814
  readonly code: Schema.String;
2815
+ readonly details: Schema.optionalKey<Schema.Struct<{
2816
+ readonly retryable: Schema.Boolean;
2817
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
2818
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
2819
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
2820
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2821
+ }>>;
2937
2822
  }>;
2938
2823
  export type ExtensionsUndeprecate403 = ForbiddenError;
2939
2824
  export declare const ExtensionsUndeprecate403: Schema.Struct<{
@@ -2943,7 +2828,7 @@ export declare const ExtensionsUndeprecate403: Schema.Struct<{
2943
2828
  readonly status: Schema.Number;
2944
2829
  readonly detail: Schema.String;
2945
2830
  readonly instance: Schema.optionalKey<Schema.String>;
2946
- readonly code: Schema.String;
2831
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
2947
2832
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2948
2833
  readonly requiredScope: Schema.String;
2949
2834
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -2959,9 +2844,8 @@ export declare const ExtensionsUndeprecate403: Schema.Struct<{
2959
2844
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2960
2845
  }>]>>;
2961
2846
  }>;
2962
- export type ExtensionsUndeprecate404 = NotFoundError;
2847
+ export type ExtensionsUndeprecate404 = ProblemDetails;
2963
2848
  export declare const ExtensionsUndeprecate404: Schema.Struct<{
2964
- readonly kind: Schema.Literal<"NotFoundError">;
2965
2849
  readonly type: Schema.String;
2966
2850
  readonly title: Schema.String;
2967
2851
  readonly status: Schema.Number;
@@ -3000,15 +2884,21 @@ export declare const ExtensionsYankVersion400: Schema.Struct<{
3000
2884
  readonly instance: Schema.optionalKey<Schema.String>;
3001
2885
  readonly code: Schema.String;
3002
2886
  }>;
3003
- export type ExtensionsYankVersion401 = UnauthorizedError;
2887
+ export type ExtensionsYankVersion401 = ProblemDetails;
3004
2888
  export declare const ExtensionsYankVersion401: Schema.Struct<{
3005
- readonly kind: Schema.Literal<"UnauthorizedError">;
3006
2889
  readonly type: Schema.String;
3007
2890
  readonly title: Schema.String;
3008
2891
  readonly status: Schema.Number;
3009
2892
  readonly detail: Schema.String;
3010
2893
  readonly instance: Schema.optionalKey<Schema.String>;
3011
2894
  readonly code: Schema.String;
2895
+ readonly details: Schema.optionalKey<Schema.Struct<{
2896
+ readonly retryable: Schema.Boolean;
2897
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
2898
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
2899
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
2900
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2901
+ }>>;
3012
2902
  }>;
3013
2903
  export type ExtensionsYankVersion403 = ForbiddenError;
3014
2904
  export declare const ExtensionsYankVersion403: Schema.Struct<{
@@ -3018,7 +2908,7 @@ export declare const ExtensionsYankVersion403: Schema.Struct<{
3018
2908
  readonly status: Schema.Number;
3019
2909
  readonly detail: Schema.String;
3020
2910
  readonly instance: Schema.optionalKey<Schema.String>;
3021
- readonly code: Schema.String;
2911
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
3022
2912
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3023
2913
  readonly requiredScope: Schema.String;
3024
2914
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3034,9 +2924,8 @@ export declare const ExtensionsYankVersion403: Schema.Struct<{
3034
2924
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3035
2925
  }>]>>;
3036
2926
  }>;
3037
- export type ExtensionsYankVersion404 = NotFoundError;
2927
+ export type ExtensionsYankVersion404 = ProblemDetails;
3038
2928
  export declare const ExtensionsYankVersion404: Schema.Struct<{
3039
- readonly kind: Schema.Literal<"NotFoundError">;
3040
2929
  readonly type: Schema.String;
3041
2930
  readonly title: Schema.String;
3042
2931
  readonly status: Schema.Number;
@@ -3075,15 +2964,21 @@ export declare const ExtensionsUnyankVersion400: Schema.Struct<{
3075
2964
  readonly instance: Schema.optionalKey<Schema.String>;
3076
2965
  readonly code: Schema.String;
3077
2966
  }>;
3078
- export type ExtensionsUnyankVersion401 = UnauthorizedError;
2967
+ export type ExtensionsUnyankVersion401 = ProblemDetails;
3079
2968
  export declare const ExtensionsUnyankVersion401: Schema.Struct<{
3080
- readonly kind: Schema.Literal<"UnauthorizedError">;
3081
2969
  readonly type: Schema.String;
3082
2970
  readonly title: Schema.String;
3083
2971
  readonly status: Schema.Number;
3084
2972
  readonly detail: Schema.String;
3085
2973
  readonly instance: Schema.optionalKey<Schema.String>;
3086
2974
  readonly code: Schema.String;
2975
+ readonly details: Schema.optionalKey<Schema.Struct<{
2976
+ readonly retryable: Schema.Boolean;
2977
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
2978
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
2979
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
2980
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2981
+ }>>;
3087
2982
  }>;
3088
2983
  export type ExtensionsUnyankVersion403 = ForbiddenError;
3089
2984
  export declare const ExtensionsUnyankVersion403: Schema.Struct<{
@@ -3093,7 +2988,7 @@ export declare const ExtensionsUnyankVersion403: Schema.Struct<{
3093
2988
  readonly status: Schema.Number;
3094
2989
  readonly detail: Schema.String;
3095
2990
  readonly instance: Schema.optionalKey<Schema.String>;
3096
- readonly code: Schema.String;
2991
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
3097
2992
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3098
2993
  readonly requiredScope: Schema.String;
3099
2994
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3109,9 +3004,8 @@ export declare const ExtensionsUnyankVersion403: Schema.Struct<{
3109
3004
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3110
3005
  }>]>>;
3111
3006
  }>;
3112
- export type ExtensionsUnyankVersion404 = NotFoundError;
3007
+ export type ExtensionsUnyankVersion404 = ProblemDetails;
3113
3008
  export declare const ExtensionsUnyankVersion404: Schema.Struct<{
3114
- readonly kind: Schema.Literal<"NotFoundError">;
3115
3009
  readonly type: Schema.String;
3116
3010
  readonly title: Schema.String;
3117
3011
  readonly status: Schema.Number;
@@ -3152,25 +3046,31 @@ export declare const CollaboratorsListCollaborators400: Schema.Struct<{
3152
3046
  readonly instance: Schema.optionalKey<Schema.String>;
3153
3047
  readonly code: Schema.String;
3154
3048
  }>;
3155
- export type CollaboratorsListCollaborators401 = UnauthorizedError;
3049
+ export type CollaboratorsListCollaborators401 = ProblemDetails;
3156
3050
  export declare const CollaboratorsListCollaborators401: Schema.Struct<{
3157
- readonly kind: Schema.Literal<"UnauthorizedError">;
3158
3051
  readonly type: Schema.String;
3159
3052
  readonly title: Schema.String;
3160
3053
  readonly status: Schema.Number;
3161
3054
  readonly detail: Schema.String;
3162
3055
  readonly instance: Schema.optionalKey<Schema.String>;
3163
3056
  readonly code: Schema.String;
3057
+ readonly details: Schema.optionalKey<Schema.Struct<{
3058
+ readonly retryable: Schema.Boolean;
3059
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3060
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3061
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3062
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3063
+ }>>;
3164
3064
  }>;
3165
- export type CollaboratorsListCollaborators403 = ForbiddenError;
3166
- export declare const CollaboratorsListCollaborators403: Schema.Struct<{
3065
+ export type CollaboratorsListCollaborators403 = ForbiddenError | ForbiddenError;
3066
+ export declare const CollaboratorsListCollaborators403: Schema.Union<readonly [Schema.Struct<{
3167
3067
  readonly kind: Schema.Literal<"ForbiddenError">;
3168
3068
  readonly type: Schema.String;
3169
3069
  readonly title: Schema.String;
3170
3070
  readonly status: Schema.Number;
3171
3071
  readonly detail: Schema.String;
3172
3072
  readonly instance: Schema.optionalKey<Schema.String>;
3173
- readonly code: Schema.String;
3073
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
3174
3074
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3175
3075
  readonly requiredScope: Schema.String;
3176
3076
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3185,10 +3085,31 @@ export declare const CollaboratorsListCollaborators403: Schema.Struct<{
3185
3085
  readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3186
3086
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3187
3087
  }>]>>;
3188
- }>;
3189
- export type CollaboratorsListCollaborators404 = NotFoundError;
3088
+ }>, Schema.Struct<{
3089
+ readonly kind: Schema.Literal<"ForbiddenError">;
3090
+ readonly type: Schema.String;
3091
+ readonly title: Schema.String;
3092
+ readonly status: Schema.Number;
3093
+ readonly detail: Schema.String;
3094
+ readonly instance: Schema.optionalKey<Schema.String>;
3095
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
3096
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3097
+ readonly requiredScope: Schema.String;
3098
+ readonly grantedScopes: Schema.$Array<Schema.String>;
3099
+ }>, Schema.Struct<{
3100
+ readonly requiredScope: Schema.String;
3101
+ readonly tokenScopes: Schema.$Array<Schema.String>;
3102
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
3103
+ }>, Schema.Struct<{
3104
+ readonly retryable: Schema.Boolean;
3105
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3106
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3107
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3108
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3109
+ }>]>>;
3110
+ }>]>;
3111
+ export type CollaboratorsListCollaborators404 = ProblemDetails;
3190
3112
  export declare const CollaboratorsListCollaborators404: Schema.Struct<{
3191
- readonly kind: Schema.Literal<"NotFoundError">;
3192
3113
  readonly type: Schema.String;
3193
3114
  readonly title: Schema.String;
3194
3115
  readonly status: Schema.Number;
@@ -3219,9 +3140,8 @@ export declare const CollaboratorsUpsertCollaborator200: Schema.Struct<{
3219
3140
  readonly grantedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
3220
3141
  readonly createdAt: Schema.String;
3221
3142
  }>;
3222
- export type CollaboratorsUpsertCollaborator400 = InvalidRequestError | DecodeErrorResponse;
3143
+ export type CollaboratorsUpsertCollaborator400 = ProblemDetails | DecodeErrorResponse;
3223
3144
  export declare const CollaboratorsUpsertCollaborator400: Schema.Union<readonly [Schema.Struct<{
3224
- readonly kind: Schema.Literal<"InvalidRequestError">;
3225
3145
  readonly type: Schema.String;
3226
3146
  readonly title: Schema.String;
3227
3147
  readonly status: Schema.Number;
@@ -3244,25 +3164,31 @@ export declare const CollaboratorsUpsertCollaborator400: Schema.Union<readonly [
3244
3164
  readonly instance: Schema.optionalKey<Schema.String>;
3245
3165
  readonly code: Schema.String;
3246
3166
  }>]>;
3247
- export type CollaboratorsUpsertCollaborator401 = UnauthorizedError;
3167
+ export type CollaboratorsUpsertCollaborator401 = ProblemDetails;
3248
3168
  export declare const CollaboratorsUpsertCollaborator401: Schema.Struct<{
3249
- readonly kind: Schema.Literal<"UnauthorizedError">;
3250
3169
  readonly type: Schema.String;
3251
3170
  readonly title: Schema.String;
3252
3171
  readonly status: Schema.Number;
3253
3172
  readonly detail: Schema.String;
3254
3173
  readonly instance: Schema.optionalKey<Schema.String>;
3255
3174
  readonly code: Schema.String;
3175
+ readonly details: Schema.optionalKey<Schema.Struct<{
3176
+ readonly retryable: Schema.Boolean;
3177
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3178
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3179
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3180
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3181
+ }>>;
3256
3182
  }>;
3257
- export type CollaboratorsUpsertCollaborator403 = ForbiddenError;
3258
- export declare const CollaboratorsUpsertCollaborator403: Schema.Struct<{
3183
+ export type CollaboratorsUpsertCollaborator403 = ForbiddenError | ForbiddenError;
3184
+ export declare const CollaboratorsUpsertCollaborator403: Schema.Union<readonly [Schema.Struct<{
3259
3185
  readonly kind: Schema.Literal<"ForbiddenError">;
3260
3186
  readonly type: Schema.String;
3261
3187
  readonly title: Schema.String;
3262
3188
  readonly status: Schema.Number;
3263
3189
  readonly detail: Schema.String;
3264
3190
  readonly instance: Schema.optionalKey<Schema.String>;
3265
- readonly code: Schema.String;
3191
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
3266
3192
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3267
3193
  readonly requiredScope: Schema.String;
3268
3194
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3277,10 +3203,31 @@ export declare const CollaboratorsUpsertCollaborator403: Schema.Struct<{
3277
3203
  readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3278
3204
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3279
3205
  }>]>>;
3280
- }>;
3281
- export type CollaboratorsUpsertCollaborator404 = NotFoundError;
3206
+ }>, Schema.Struct<{
3207
+ readonly kind: Schema.Literal<"ForbiddenError">;
3208
+ readonly type: Schema.String;
3209
+ readonly title: Schema.String;
3210
+ readonly status: Schema.Number;
3211
+ readonly detail: Schema.String;
3212
+ readonly instance: Schema.optionalKey<Schema.String>;
3213
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
3214
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3215
+ readonly requiredScope: Schema.String;
3216
+ readonly grantedScopes: Schema.$Array<Schema.String>;
3217
+ }>, Schema.Struct<{
3218
+ readonly requiredScope: Schema.String;
3219
+ readonly tokenScopes: Schema.$Array<Schema.String>;
3220
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
3221
+ }>, Schema.Struct<{
3222
+ readonly retryable: Schema.Boolean;
3223
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3224
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3225
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3226
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3227
+ }>]>>;
3228
+ }>]>;
3229
+ export type CollaboratorsUpsertCollaborator404 = ProblemDetails;
3282
3230
  export declare const CollaboratorsUpsertCollaborator404: Schema.Struct<{
3283
- readonly kind: Schema.Literal<"NotFoundError">;
3284
3231
  readonly type: Schema.String;
3285
3232
  readonly title: Schema.String;
3286
3233
  readonly status: Schema.Number;
@@ -3305,25 +3252,31 @@ export declare const CollaboratorsDeleteCollaborator400: Schema.Struct<{
3305
3252
  readonly instance: Schema.optionalKey<Schema.String>;
3306
3253
  readonly code: Schema.String;
3307
3254
  }>;
3308
- export type CollaboratorsDeleteCollaborator401 = UnauthorizedError;
3255
+ export type CollaboratorsDeleteCollaborator401 = ProblemDetails;
3309
3256
  export declare const CollaboratorsDeleteCollaborator401: Schema.Struct<{
3310
- readonly kind: Schema.Literal<"UnauthorizedError">;
3311
3257
  readonly type: Schema.String;
3312
3258
  readonly title: Schema.String;
3313
3259
  readonly status: Schema.Number;
3314
3260
  readonly detail: Schema.String;
3315
3261
  readonly instance: Schema.optionalKey<Schema.String>;
3316
3262
  readonly code: Schema.String;
3263
+ readonly details: Schema.optionalKey<Schema.Struct<{
3264
+ readonly retryable: Schema.Boolean;
3265
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3266
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3267
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3268
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3269
+ }>>;
3317
3270
  }>;
3318
- export type CollaboratorsDeleteCollaborator403 = ForbiddenError;
3319
- export declare const CollaboratorsDeleteCollaborator403: Schema.Struct<{
3271
+ export type CollaboratorsDeleteCollaborator403 = ForbiddenError | ForbiddenError;
3272
+ export declare const CollaboratorsDeleteCollaborator403: Schema.Union<readonly [Schema.Struct<{
3320
3273
  readonly kind: Schema.Literal<"ForbiddenError">;
3321
3274
  readonly type: Schema.String;
3322
3275
  readonly title: Schema.String;
3323
3276
  readonly status: Schema.Number;
3324
3277
  readonly detail: Schema.String;
3325
3278
  readonly instance: Schema.optionalKey<Schema.String>;
3326
- readonly code: Schema.String;
3279
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
3327
3280
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3328
3281
  readonly requiredScope: Schema.String;
3329
3282
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3338,10 +3291,31 @@ export declare const CollaboratorsDeleteCollaborator403: Schema.Struct<{
3338
3291
  readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3339
3292
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3340
3293
  }>]>>;
3341
- }>;
3342
- export type CollaboratorsDeleteCollaborator404 = NotFoundError;
3294
+ }>, Schema.Struct<{
3295
+ readonly kind: Schema.Literal<"ForbiddenError">;
3296
+ readonly type: Schema.String;
3297
+ readonly title: Schema.String;
3298
+ readonly status: Schema.Number;
3299
+ readonly detail: Schema.String;
3300
+ readonly instance: Schema.optionalKey<Schema.String>;
3301
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
3302
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3303
+ readonly requiredScope: Schema.String;
3304
+ readonly grantedScopes: Schema.$Array<Schema.String>;
3305
+ }>, Schema.Struct<{
3306
+ readonly requiredScope: Schema.String;
3307
+ readonly tokenScopes: Schema.$Array<Schema.String>;
3308
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
3309
+ }>, Schema.Struct<{
3310
+ readonly retryable: Schema.Boolean;
3311
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3312
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3313
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3314
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3315
+ }>]>>;
3316
+ }>]>;
3317
+ export type CollaboratorsDeleteCollaborator404 = ProblemDetails;
3343
3318
  export declare const CollaboratorsDeleteCollaborator404: Schema.Struct<{
3344
- readonly kind: Schema.Literal<"NotFoundError">;
3345
3319
  readonly type: Schema.String;
3346
3320
  readonly title: Schema.String;
3347
3321
  readonly status: Schema.Number;
@@ -3356,9 +3330,8 @@ export declare const CollaboratorsDeleteCollaborator404: Schema.Struct<{
3356
3330
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3357
3331
  }>>;
3358
3332
  }>;
3359
- export type CollaboratorsDeleteCollaborator409 = ConflictError;
3333
+ export type CollaboratorsDeleteCollaborator409 = ProblemDetails;
3360
3334
  export declare const CollaboratorsDeleteCollaborator409: Schema.Struct<{
3361
- readonly kind: Schema.Literal<"ConflictError">;
3362
3335
  readonly type: Schema.String;
3363
3336
  readonly title: Schema.String;
3364
3337
  readonly status: Schema.Number;
@@ -3395,15 +3368,21 @@ export declare const TeamGrantsUpsertTeamExtensionGrant400: Schema.Struct<{
3395
3368
  readonly instance: Schema.optionalKey<Schema.String>;
3396
3369
  readonly code: Schema.String;
3397
3370
  }>;
3398
- export type TeamGrantsUpsertTeamExtensionGrant401 = UnauthorizedError;
3371
+ export type TeamGrantsUpsertTeamExtensionGrant401 = ProblemDetails;
3399
3372
  export declare const TeamGrantsUpsertTeamExtensionGrant401: Schema.Struct<{
3400
- readonly kind: Schema.Literal<"UnauthorizedError">;
3401
3373
  readonly type: Schema.String;
3402
3374
  readonly title: Schema.String;
3403
3375
  readonly status: Schema.Number;
3404
3376
  readonly detail: Schema.String;
3405
3377
  readonly instance: Schema.optionalKey<Schema.String>;
3406
3378
  readonly code: Schema.String;
3379
+ readonly details: Schema.optionalKey<Schema.Struct<{
3380
+ readonly retryable: Schema.Boolean;
3381
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3382
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3383
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3384
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3385
+ }>>;
3407
3386
  }>;
3408
3387
  export type TeamGrantsUpsertTeamExtensionGrant403 = ForbiddenError | ForbiddenError;
3409
3388
  export declare const TeamGrantsUpsertTeamExtensionGrant403: Schema.Union<readonly [Schema.Struct<{
@@ -3413,7 +3392,7 @@ export declare const TeamGrantsUpsertTeamExtensionGrant403: Schema.Union<readonl
3413
3392
  readonly status: Schema.Number;
3414
3393
  readonly detail: Schema.String;
3415
3394
  readonly instance: Schema.optionalKey<Schema.String>;
3416
- readonly code: Schema.String;
3395
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
3417
3396
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3418
3397
  readonly requiredScope: Schema.String;
3419
3398
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3435,7 +3414,7 @@ export declare const TeamGrantsUpsertTeamExtensionGrant403: Schema.Union<readonl
3435
3414
  readonly status: Schema.Number;
3436
3415
  readonly detail: Schema.String;
3437
3416
  readonly instance: Schema.optionalKey<Schema.String>;
3438
- readonly code: Schema.String;
3417
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
3439
3418
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3440
3419
  readonly requiredScope: Schema.String;
3441
3420
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3451,9 +3430,8 @@ export declare const TeamGrantsUpsertTeamExtensionGrant403: Schema.Union<readonl
3451
3430
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3452
3431
  }>]>>;
3453
3432
  }>]>;
3454
- export type TeamGrantsUpsertTeamExtensionGrant404 = NotFoundError;
3433
+ export type TeamGrantsUpsertTeamExtensionGrant404 = ProblemDetails;
3455
3434
  export declare const TeamGrantsUpsertTeamExtensionGrant404: Schema.Struct<{
3456
- readonly kind: Schema.Literal<"NotFoundError">;
3457
3435
  readonly type: Schema.String;
3458
3436
  readonly title: Schema.String;
3459
3437
  readonly status: Schema.Number;
@@ -3468,9 +3446,8 @@ export declare const TeamGrantsUpsertTeamExtensionGrant404: Schema.Struct<{
3468
3446
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3469
3447
  }>>;
3470
3448
  }>;
3471
- export type TeamGrantsUpsertTeamExtensionGrant422 = UnprocessableEntityError;
3449
+ export type TeamGrantsUpsertTeamExtensionGrant422 = ProblemDetails;
3472
3450
  export declare const TeamGrantsUpsertTeamExtensionGrant422: Schema.Struct<{
3473
- readonly kind: Schema.Literal<"UnprocessableEntityError">;
3474
3451
  readonly type: Schema.String;
3475
3452
  readonly title: Schema.String;
3476
3453
  readonly status: Schema.Number;
@@ -3495,15 +3472,21 @@ export declare const TeamGrantsDeleteTeamExtensionGrant400: Schema.Struct<{
3495
3472
  readonly instance: Schema.optionalKey<Schema.String>;
3496
3473
  readonly code: Schema.String;
3497
3474
  }>;
3498
- export type TeamGrantsDeleteTeamExtensionGrant401 = UnauthorizedError;
3475
+ export type TeamGrantsDeleteTeamExtensionGrant401 = ProblemDetails;
3499
3476
  export declare const TeamGrantsDeleteTeamExtensionGrant401: Schema.Struct<{
3500
- readonly kind: Schema.Literal<"UnauthorizedError">;
3501
3477
  readonly type: Schema.String;
3502
3478
  readonly title: Schema.String;
3503
3479
  readonly status: Schema.Number;
3504
3480
  readonly detail: Schema.String;
3505
3481
  readonly instance: Schema.optionalKey<Schema.String>;
3506
3482
  readonly code: Schema.String;
3483
+ readonly details: Schema.optionalKey<Schema.Struct<{
3484
+ readonly retryable: Schema.Boolean;
3485
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3486
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3487
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3488
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3489
+ }>>;
3507
3490
  }>;
3508
3491
  export type TeamGrantsDeleteTeamExtensionGrant403 = ForbiddenError | ForbiddenError;
3509
3492
  export declare const TeamGrantsDeleteTeamExtensionGrant403: Schema.Union<readonly [Schema.Struct<{
@@ -3513,7 +3496,7 @@ export declare const TeamGrantsDeleteTeamExtensionGrant403: Schema.Union<readonl
3513
3496
  readonly status: Schema.Number;
3514
3497
  readonly detail: Schema.String;
3515
3498
  readonly instance: Schema.optionalKey<Schema.String>;
3516
- readonly code: Schema.String;
3499
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
3517
3500
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3518
3501
  readonly requiredScope: Schema.String;
3519
3502
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3535,7 +3518,7 @@ export declare const TeamGrantsDeleteTeamExtensionGrant403: Schema.Union<readonl
3535
3518
  readonly status: Schema.Number;
3536
3519
  readonly detail: Schema.String;
3537
3520
  readonly instance: Schema.optionalKey<Schema.String>;
3538
- readonly code: Schema.String;
3521
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "team_create_not_authorized", "team_delete_not_authorized", "team_update_not_authorized", "add_team_member_not_authorized", "remove_team_member_not_authorized", "change_team_member_role_not_authorized", "team_extension_grant_delete_not_authorized", "team_extension_grant_not_authorized", "publish/quota-exceeded", "publish/insufficient-scope", "publish/resource-restriction", "publish/handle-not-owned", "publish/publish-forbidden"]>;
3539
3522
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3540
3523
  readonly requiredScope: Schema.String;
3541
3524
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3551,9 +3534,8 @@ export declare const TeamGrantsDeleteTeamExtensionGrant403: Schema.Union<readonl
3551
3534
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3552
3535
  }>]>>;
3553
3536
  }>]>;
3554
- export type TeamGrantsDeleteTeamExtensionGrant404 = NotFoundError;
3537
+ export type TeamGrantsDeleteTeamExtensionGrant404 = ProblemDetails;
3555
3538
  export declare const TeamGrantsDeleteTeamExtensionGrant404: Schema.Struct<{
3556
- readonly kind: Schema.Literal<"NotFoundError">;
3557
3539
  readonly type: Schema.String;
3558
3540
  readonly title: Schema.String;
3559
3541
  readonly status: Schema.Number;