@agentxm/client-core 0.16.2 → 0.18.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 (494) hide show
  1. package/dist/src/unstable/agent-capabilities/catalog.d.ts +7589 -2945
  2. package/dist/src/unstable/agent-capabilities/catalog.d.ts.map +1 -1
  3. package/dist/src/unstable/agent-capabilities/data/agents/adal.d.ts +46 -24
  4. package/dist/src/unstable/agent-capabilities/data/agents/adal.d.ts.map +1 -1
  5. package/dist/src/unstable/agent-capabilities/data/agents/adal.js +52 -24
  6. package/dist/src/unstable/agent-capabilities/data/agents/adal.js.map +1 -1
  7. package/dist/src/unstable/agent-capabilities/data/agents/aider-desk.d.ts +24 -17
  8. package/dist/src/unstable/agent-capabilities/data/agents/aider-desk.d.ts.map +1 -1
  9. package/dist/src/unstable/agent-capabilities/data/agents/aider-desk.js +24 -17
  10. package/dist/src/unstable/agent-capabilities/data/agents/aider-desk.js.map +1 -1
  11. package/dist/src/unstable/agent-capabilities/data/agents/amp.d.ts +71 -32
  12. package/dist/src/unstable/agent-capabilities/data/agents/amp.d.ts.map +1 -1
  13. package/dist/src/unstable/agent-capabilities/data/agents/amp.js +76 -32
  14. package/dist/src/unstable/agent-capabilities/data/agents/amp.js.map +1 -1
  15. package/dist/src/unstable/agent-capabilities/data/agents/antigravity.d.ts +90 -36
  16. package/dist/src/unstable/agent-capabilities/data/agents/antigravity.d.ts.map +1 -1
  17. package/dist/src/unstable/agent-capabilities/data/agents/antigravity.js +101 -36
  18. package/dist/src/unstable/agent-capabilities/data/agents/antigravity.js.map +1 -1
  19. package/dist/src/unstable/agent-capabilities/data/agents/augment.d.ts +252 -34
  20. package/dist/src/unstable/agent-capabilities/data/agents/augment.d.ts.map +1 -1
  21. package/dist/src/unstable/agent-capabilities/data/agents/augment.js +226 -34
  22. package/dist/src/unstable/agent-capabilities/data/agents/augment.js.map +1 -1
  23. package/dist/src/unstable/agent-capabilities/data/agents/claude-code.d.ts +200 -31
  24. package/dist/src/unstable/agent-capabilities/data/agents/claude-code.d.ts.map +1 -1
  25. package/dist/src/unstable/agent-capabilities/data/agents/claude-code.js +159 -33
  26. package/dist/src/unstable/agent-capabilities/data/agents/claude-code.js.map +1 -1
  27. package/dist/src/unstable/agent-capabilities/data/agents/cline.d.ts +82 -28
  28. package/dist/src/unstable/agent-capabilities/data/agents/cline.d.ts.map +1 -1
  29. package/dist/src/unstable/agent-capabilities/data/agents/cline.js +87 -28
  30. package/dist/src/unstable/agent-capabilities/data/agents/cline.js.map +1 -1
  31. package/dist/src/unstable/agent-capabilities/data/agents/codearts-agent.d.ts +24 -17
  32. package/dist/src/unstable/agent-capabilities/data/agents/codearts-agent.d.ts.map +1 -1
  33. package/dist/src/unstable/agent-capabilities/data/agents/codearts-agent.js +24 -17
  34. package/dist/src/unstable/agent-capabilities/data/agents/codearts-agent.js.map +1 -1
  35. package/dist/src/unstable/agent-capabilities/data/agents/codebuddy.d.ts +272 -33
  36. package/dist/src/unstable/agent-capabilities/data/agents/codebuddy.d.ts.map +1 -1
  37. package/dist/src/unstable/agent-capabilities/data/agents/codebuddy.js +253 -33
  38. package/dist/src/unstable/agent-capabilities/data/agents/codebuddy.js.map +1 -1
  39. package/dist/src/unstable/agent-capabilities/data/agents/codemaker.d.ts +24 -17
  40. package/dist/src/unstable/agent-capabilities/data/agents/codemaker.d.ts.map +1 -1
  41. package/dist/src/unstable/agent-capabilities/data/agents/codemaker.js +24 -17
  42. package/dist/src/unstable/agent-capabilities/data/agents/codemaker.js.map +1 -1
  43. package/dist/src/unstable/agent-capabilities/data/agents/codestudio.d.ts +24 -17
  44. package/dist/src/unstable/agent-capabilities/data/agents/codestudio.d.ts.map +1 -1
  45. package/dist/src/unstable/agent-capabilities/data/agents/codestudio.js +24 -17
  46. package/dist/src/unstable/agent-capabilities/data/agents/codestudio.js.map +1 -1
  47. package/dist/src/unstable/agent-capabilities/data/agents/codex.d.ts +222 -56
  48. package/dist/src/unstable/agent-capabilities/data/agents/codex.d.ts.map +1 -1
  49. package/dist/src/unstable/agent-capabilities/data/agents/codex.js +197 -60
  50. package/dist/src/unstable/agent-capabilities/data/agents/codex.js.map +1 -1
  51. package/dist/src/unstable/agent-capabilities/data/agents/command-code.d.ts +24 -19
  52. package/dist/src/unstable/agent-capabilities/data/agents/command-code.d.ts.map +1 -1
  53. package/dist/src/unstable/agent-capabilities/data/agents/command-code.js +24 -19
  54. package/dist/src/unstable/agent-capabilities/data/agents/command-code.js.map +1 -1
  55. package/dist/src/unstable/agent-capabilities/data/agents/continue.d.ts +36 -22
  56. package/dist/src/unstable/agent-capabilities/data/agents/continue.d.ts.map +1 -1
  57. package/dist/src/unstable/agent-capabilities/data/agents/continue.js +39 -22
  58. package/dist/src/unstable/agent-capabilities/data/agents/continue.js.map +1 -1
  59. package/dist/src/unstable/agent-capabilities/data/agents/cortex.d.ts +24 -17
  60. package/dist/src/unstable/agent-capabilities/data/agents/cortex.d.ts.map +1 -1
  61. package/dist/src/unstable/agent-capabilities/data/agents/cortex.js +24 -17
  62. package/dist/src/unstable/agent-capabilities/data/agents/cortex.js.map +1 -1
  63. package/dist/src/unstable/agent-capabilities/data/agents/crush.d.ts +61 -29
  64. package/dist/src/unstable/agent-capabilities/data/agents/crush.d.ts.map +1 -1
  65. package/dist/src/unstable/agent-capabilities/data/agents/crush.js +66 -29
  66. package/dist/src/unstable/agent-capabilities/data/agents/crush.js.map +1 -1
  67. package/dist/src/unstable/agent-capabilities/data/agents/cursor.d.ts +36 -31
  68. package/dist/src/unstable/agent-capabilities/data/agents/cursor.d.ts.map +1 -1
  69. package/dist/src/unstable/agent-capabilities/data/agents/cursor.js +37 -33
  70. package/dist/src/unstable/agent-capabilities/data/agents/cursor.js.map +1 -1
  71. package/dist/src/unstable/agent-capabilities/data/agents/deepagents.d.ts +24 -17
  72. package/dist/src/unstable/agent-capabilities/data/agents/deepagents.d.ts.map +1 -1
  73. package/dist/src/unstable/agent-capabilities/data/agents/deepagents.js +24 -17
  74. package/dist/src/unstable/agent-capabilities/data/agents/deepagents.js.map +1 -1
  75. package/dist/src/unstable/agent-capabilities/data/agents/devin.d.ts +263 -35
  76. package/dist/src/unstable/agent-capabilities/data/agents/devin.d.ts.map +1 -1
  77. package/dist/src/unstable/agent-capabilities/data/agents/devin.js +254 -35
  78. package/dist/src/unstable/agent-capabilities/data/agents/devin.js.map +1 -1
  79. package/dist/src/unstable/agent-capabilities/data/agents/dexto.d.ts +24 -17
  80. package/dist/src/unstable/agent-capabilities/data/agents/dexto.d.ts.map +1 -1
  81. package/dist/src/unstable/agent-capabilities/data/agents/dexto.js +24 -17
  82. package/dist/src/unstable/agent-capabilities/data/agents/dexto.js.map +1 -1
  83. package/dist/src/unstable/agent-capabilities/data/agents/droid.d.ts +24 -19
  84. package/dist/src/unstable/agent-capabilities/data/agents/droid.d.ts.map +1 -1
  85. package/dist/src/unstable/agent-capabilities/data/agents/droid.js +24 -19
  86. package/dist/src/unstable/agent-capabilities/data/agents/droid.js.map +1 -1
  87. package/dist/src/unstable/agent-capabilities/data/agents/firebender.d.ts +24 -17
  88. package/dist/src/unstable/agent-capabilities/data/agents/firebender.d.ts.map +1 -1
  89. package/dist/src/unstable/agent-capabilities/data/agents/firebender.js +24 -17
  90. package/dist/src/unstable/agent-capabilities/data/agents/firebender.js.map +1 -1
  91. package/dist/src/unstable/agent-capabilities/data/agents/forgecode.d.ts +24 -18
  92. package/dist/src/unstable/agent-capabilities/data/agents/forgecode.d.ts.map +1 -1
  93. package/dist/src/unstable/agent-capabilities/data/agents/forgecode.js +24 -18
  94. package/dist/src/unstable/agent-capabilities/data/agents/forgecode.js.map +1 -1
  95. package/dist/src/unstable/agent-capabilities/data/agents/gemini-cli.d.ts +207 -38
  96. package/dist/src/unstable/agent-capabilities/data/agents/gemini-cli.d.ts.map +1 -1
  97. package/dist/src/unstable/agent-capabilities/data/agents/gemini-cli.js +212 -41
  98. package/dist/src/unstable/agent-capabilities/data/agents/gemini-cli.js.map +1 -1
  99. package/dist/src/unstable/agent-capabilities/data/agents/github-copilot-cli.d.ts +30 -24
  100. package/dist/src/unstable/agent-capabilities/data/agents/github-copilot-cli.d.ts.map +1 -1
  101. package/dist/src/unstable/agent-capabilities/data/agents/github-copilot-cli.js +33 -24
  102. package/dist/src/unstable/agent-capabilities/data/agents/github-copilot-cli.js.map +1 -1
  103. package/dist/src/unstable/agent-capabilities/data/agents/goose.d.ts +37 -53
  104. package/dist/src/unstable/agent-capabilities/data/agents/goose.d.ts.map +1 -1
  105. package/dist/src/unstable/agent-capabilities/data/agents/goose.js +37 -55
  106. package/dist/src/unstable/agent-capabilities/data/agents/goose.js.map +1 -1
  107. package/dist/src/unstable/agent-capabilities/data/agents/grok-cli.d.ts +59 -28
  108. package/dist/src/unstable/agent-capabilities/data/agents/grok-cli.d.ts.map +1 -1
  109. package/dist/src/unstable/agent-capabilities/data/agents/grok-cli.js +66 -28
  110. package/dist/src/unstable/agent-capabilities/data/agents/grok-cli.js.map +1 -1
  111. package/dist/src/unstable/agent-capabilities/data/agents/hermes.d.ts +49 -21
  112. package/dist/src/unstable/agent-capabilities/data/agents/hermes.d.ts.map +1 -1
  113. package/dist/src/unstable/agent-capabilities/data/agents/hermes.js +39 -21
  114. package/dist/src/unstable/agent-capabilities/data/agents/hermes.js.map +1 -1
  115. package/dist/src/unstable/agent-capabilities/data/agents/ibm-bob.d.ts +34 -23
  116. package/dist/src/unstable/agent-capabilities/data/agents/ibm-bob.d.ts.map +1 -1
  117. package/dist/src/unstable/agent-capabilities/data/agents/ibm-bob.js +37 -23
  118. package/dist/src/unstable/agent-capabilities/data/agents/ibm-bob.js.map +1 -1
  119. package/dist/src/unstable/agent-capabilities/data/agents/junie.d.ts +71 -47
  120. package/dist/src/unstable/agent-capabilities/data/agents/junie.d.ts.map +1 -1
  121. package/dist/src/unstable/agent-capabilities/data/agents/junie.js +84 -47
  122. package/dist/src/unstable/agent-capabilities/data/agents/junie.js.map +1 -1
  123. package/dist/src/unstable/agent-capabilities/data/agents/kilo.d.ts +90 -70
  124. package/dist/src/unstable/agent-capabilities/data/agents/kilo.d.ts.map +1 -1
  125. package/dist/src/unstable/agent-capabilities/data/agents/kilo.js +97 -74
  126. package/dist/src/unstable/agent-capabilities/data/agents/kilo.js.map +1 -1
  127. package/dist/src/unstable/agent-capabilities/data/agents/kimi-cli.d.ts +24 -18
  128. package/dist/src/unstable/agent-capabilities/data/agents/kimi-cli.d.ts.map +1 -1
  129. package/dist/src/unstable/agent-capabilities/data/agents/kimi-cli.js +24 -18
  130. package/dist/src/unstable/agent-capabilities/data/agents/kimi-cli.js.map +1 -1
  131. package/dist/src/unstable/agent-capabilities/data/agents/kiro-cli.d.ts +60 -33
  132. package/dist/src/unstable/agent-capabilities/data/agents/kiro-cli.d.ts.map +1 -1
  133. package/dist/src/unstable/agent-capabilities/data/agents/kiro-cli.js +69 -33
  134. package/dist/src/unstable/agent-capabilities/data/agents/kiro-cli.js.map +1 -1
  135. package/dist/src/unstable/agent-capabilities/data/agents/kode.d.ts +24 -20
  136. package/dist/src/unstable/agent-capabilities/data/agents/kode.d.ts.map +1 -1
  137. package/dist/src/unstable/agent-capabilities/data/agents/kode.js +24 -20
  138. package/dist/src/unstable/agent-capabilities/data/agents/kode.js.map +1 -1
  139. package/dist/src/unstable/agent-capabilities/data/agents/mcpjam.d.ts +24 -17
  140. package/dist/src/unstable/agent-capabilities/data/agents/mcpjam.d.ts.map +1 -1
  141. package/dist/src/unstable/agent-capabilities/data/agents/mcpjam.js +24 -17
  142. package/dist/src/unstable/agent-capabilities/data/agents/mcpjam.js.map +1 -1
  143. package/dist/src/unstable/agent-capabilities/data/agents/mistral-vibe.d.ts +24 -20
  144. package/dist/src/unstable/agent-capabilities/data/agents/mistral-vibe.d.ts.map +1 -1
  145. package/dist/src/unstable/agent-capabilities/data/agents/mistral-vibe.js +24 -20
  146. package/dist/src/unstable/agent-capabilities/data/agents/mistral-vibe.js.map +1 -1
  147. package/dist/src/unstable/agent-capabilities/data/agents/mux.d.ts +24 -19
  148. package/dist/src/unstable/agent-capabilities/data/agents/mux.d.ts.map +1 -1
  149. package/dist/src/unstable/agent-capabilities/data/agents/mux.js +24 -19
  150. package/dist/src/unstable/agent-capabilities/data/agents/mux.js.map +1 -1
  151. package/dist/src/unstable/agent-capabilities/data/agents/neovate.d.ts +24 -18
  152. package/dist/src/unstable/agent-capabilities/data/agents/neovate.d.ts.map +1 -1
  153. package/dist/src/unstable/agent-capabilities/data/agents/neovate.js +24 -18
  154. package/dist/src/unstable/agent-capabilities/data/agents/neovate.js.map +1 -1
  155. package/dist/src/unstable/agent-capabilities/data/agents/openclaw.d.ts +24 -17
  156. package/dist/src/unstable/agent-capabilities/data/agents/openclaw.d.ts.map +1 -1
  157. package/dist/src/unstable/agent-capabilities/data/agents/openclaw.js +24 -17
  158. package/dist/src/unstable/agent-capabilities/data/agents/openclaw.js.map +1 -1
  159. package/dist/src/unstable/agent-capabilities/data/agents/opencode.d.ts +98 -32
  160. package/dist/src/unstable/agent-capabilities/data/agents/opencode.d.ts.map +1 -1
  161. package/dist/src/unstable/agent-capabilities/data/agents/opencode.js +101 -32
  162. package/dist/src/unstable/agent-capabilities/data/agents/opencode.js.map +1 -1
  163. package/dist/src/unstable/agent-capabilities/data/agents/openhands.d.ts +25 -19
  164. package/dist/src/unstable/agent-capabilities/data/agents/openhands.d.ts.map +1 -1
  165. package/dist/src/unstable/agent-capabilities/data/agents/openhands.js +25 -19
  166. package/dist/src/unstable/agent-capabilities/data/agents/openhands.js.map +1 -1
  167. package/dist/src/unstable/agent-capabilities/data/agents/pi.d.ts +30 -22
  168. package/dist/src/unstable/agent-capabilities/data/agents/pi.d.ts.map +1 -1
  169. package/dist/src/unstable/agent-capabilities/data/agents/pi.js +30 -22
  170. package/dist/src/unstable/agent-capabilities/data/agents/pi.js.map +1 -1
  171. package/dist/src/unstable/agent-capabilities/data/agents/pochi.d.ts +24 -18
  172. package/dist/src/unstable/agent-capabilities/data/agents/pochi.d.ts.map +1 -1
  173. package/dist/src/unstable/agent-capabilities/data/agents/pochi.js +24 -18
  174. package/dist/src/unstable/agent-capabilities/data/agents/pochi.js.map +1 -1
  175. package/dist/src/unstable/agent-capabilities/data/agents/qoder.d.ts +199 -40
  176. package/dist/src/unstable/agent-capabilities/data/agents/qoder.d.ts.map +1 -1
  177. package/dist/src/unstable/agent-capabilities/data/agents/qoder.js +175 -43
  178. package/dist/src/unstable/agent-capabilities/data/agents/qoder.js.map +1 -1
  179. package/dist/src/unstable/agent-capabilities/data/agents/qwen-code.d.ts +239 -34
  180. package/dist/src/unstable/agent-capabilities/data/agents/qwen-code.d.ts.map +1 -1
  181. package/dist/src/unstable/agent-capabilities/data/agents/qwen-code.js +209 -34
  182. package/dist/src/unstable/agent-capabilities/data/agents/qwen-code.js.map +1 -1
  183. package/dist/src/unstable/agent-capabilities/data/agents/replit.d.ts +24 -18
  184. package/dist/src/unstable/agent-capabilities/data/agents/replit.d.ts.map +1 -1
  185. package/dist/src/unstable/agent-capabilities/data/agents/replit.js +24 -18
  186. package/dist/src/unstable/agent-capabilities/data/agents/replit.js.map +1 -1
  187. package/dist/src/unstable/agent-capabilities/data/agents/roo.d.ts +46 -64
  188. package/dist/src/unstable/agent-capabilities/data/agents/roo.d.ts.map +1 -1
  189. package/dist/src/unstable/agent-capabilities/data/agents/roo.js +48 -67
  190. package/dist/src/unstable/agent-capabilities/data/agents/roo.js.map +1 -1
  191. package/dist/src/unstable/agent-capabilities/data/agents/rovodev.d.ts +24 -18
  192. package/dist/src/unstable/agent-capabilities/data/agents/rovodev.d.ts.map +1 -1
  193. package/dist/src/unstable/agent-capabilities/data/agents/rovodev.js +24 -18
  194. package/dist/src/unstable/agent-capabilities/data/agents/rovodev.js.map +1 -1
  195. package/dist/src/unstable/agent-capabilities/data/agents/tabnine-cli.d.ts +24 -18
  196. package/dist/src/unstable/agent-capabilities/data/agents/tabnine-cli.d.ts.map +1 -1
  197. package/dist/src/unstable/agent-capabilities/data/agents/tabnine-cli.js +24 -18
  198. package/dist/src/unstable/agent-capabilities/data/agents/tabnine-cli.js.map +1 -1
  199. package/dist/src/unstable/agent-capabilities/data/agents/trae-cn.d.ts +24 -19
  200. package/dist/src/unstable/agent-capabilities/data/agents/trae-cn.d.ts.map +1 -1
  201. package/dist/src/unstable/agent-capabilities/data/agents/trae-cn.js +24 -19
  202. package/dist/src/unstable/agent-capabilities/data/agents/trae-cn.js.map +1 -1
  203. package/dist/src/unstable/agent-capabilities/data/agents/trae.d.ts +24 -19
  204. package/dist/src/unstable/agent-capabilities/data/agents/trae.d.ts.map +1 -1
  205. package/dist/src/unstable/agent-capabilities/data/agents/trae.js +24 -19
  206. package/dist/src/unstable/agent-capabilities/data/agents/trae.js.map +1 -1
  207. package/dist/src/unstable/agent-capabilities/data/agents/warp.d.ts +24 -17
  208. package/dist/src/unstable/agent-capabilities/data/agents/warp.d.ts.map +1 -1
  209. package/dist/src/unstable/agent-capabilities/data/agents/warp.js +24 -17
  210. package/dist/src/unstable/agent-capabilities/data/agents/warp.js.map +1 -1
  211. package/dist/src/unstable/agent-capabilities/data/agents/windsurf.d.ts +232 -39
  212. package/dist/src/unstable/agent-capabilities/data/agents/windsurf.d.ts.map +1 -1
  213. package/dist/src/unstable/agent-capabilities/data/agents/windsurf.js +177 -42
  214. package/dist/src/unstable/agent-capabilities/data/agents/windsurf.js.map +1 -1
  215. package/dist/src/unstable/agent-capabilities/data/agents/zencoder.d.ts +34 -23
  216. package/dist/src/unstable/agent-capabilities/data/agents/zencoder.d.ts.map +1 -1
  217. package/dist/src/unstable/agent-capabilities/data/agents/zencoder.js +34 -23
  218. package/dist/src/unstable/agent-capabilities/data/agents/zencoder.js.map +1 -1
  219. package/dist/src/unstable/agent-capabilities/derive.d.ts +76 -14
  220. package/dist/src/unstable/agent-capabilities/derive.d.ts.map +1 -1
  221. package/dist/src/unstable/agent-capabilities/derive.js +167 -38
  222. package/dist/src/unstable/agent-capabilities/derive.js.map +1 -1
  223. package/dist/src/unstable/agent-capabilities/index.d.ts +2 -2
  224. package/dist/src/unstable/agent-capabilities/index.d.ts.map +1 -1
  225. package/dist/src/unstable/agent-capabilities/index.js +2 -2
  226. package/dist/src/unstable/agent-capabilities/index.js.map +1 -1
  227. package/dist/src/unstable/agent-capabilities/schema.d.ts +653 -479
  228. package/dist/src/unstable/agent-capabilities/schema.d.ts.map +1 -1
  229. package/dist/src/unstable/agent-capabilities/schema.js +330 -117
  230. package/dist/src/unstable/agent-capabilities/schema.js.map +1 -1
  231. package/dist/src/unstable/agents/augment/service.d.ts.map +1 -1
  232. package/dist/src/unstable/agents/augment/service.js +4 -9
  233. package/dist/src/unstable/agents/augment/service.js.map +1 -1
  234. package/dist/src/unstable/agents/codex/service.js +1 -1
  235. package/dist/src/unstable/agents/codex/service.js.map +1 -1
  236. package/dist/src/unstable/agents/gemini-cli/service.js +1 -1
  237. package/dist/src/unstable/agents/instructions.d.ts +3 -3
  238. package/dist/src/unstable/agents/instructions.d.ts.map +1 -1
  239. package/dist/src/unstable/agents/instructions.js +16 -4
  240. package/dist/src/unstable/agents/instructions.js.map +1 -1
  241. package/dist/src/unstable/agents/junie/service.d.ts.map +1 -1
  242. package/dist/src/unstable/agents/junie/service.js +5 -0
  243. package/dist/src/unstable/agents/junie/service.js.map +1 -1
  244. package/dist/src/unstable/agents/kiro-cli/service.d.ts.map +1 -1
  245. package/dist/src/unstable/agents/kiro-cli/service.js +3 -8
  246. package/dist/src/unstable/agents/kiro-cli/service.js.map +1 -1
  247. package/dist/src/unstable/agents/mcp-sync.d.ts.map +1 -1
  248. package/dist/src/unstable/agents/mcp-sync.js +27 -11
  249. package/dist/src/unstable/agents/mcp-sync.js.map +1 -1
  250. package/dist/src/unstable/agents/repository.d.ts.map +1 -1
  251. package/dist/src/unstable/agents/repository.js +63 -42
  252. package/dist/src/unstable/agents/repository.js.map +1 -1
  253. package/dist/src/unstable/app-error/cause-chain.d.ts +11 -0
  254. package/dist/src/unstable/app-error/cause-chain.d.ts.map +1 -0
  255. package/dist/src/unstable/app-error/cause-chain.js +91 -0
  256. package/dist/src/unstable/app-error/cause-chain.js.map +1 -0
  257. package/dist/src/unstable/app-error/index.d.ts +1 -0
  258. package/dist/src/unstable/app-error/index.d.ts.map +1 -1
  259. package/dist/src/unstable/app-error/index.js +1 -0
  260. package/dist/src/unstable/app-error/index.js.map +1 -1
  261. package/dist/src/unstable/app-error/render.d.ts.map +1 -1
  262. package/dist/src/unstable/app-error/render.js +11 -29
  263. package/dist/src/unstable/app-error/render.js.map +1 -1
  264. package/dist/src/unstable/auth/auth-client.d.ts +1 -1
  265. package/dist/src/unstable/auth/auth-middleware.d.ts +2 -2
  266. package/dist/src/unstable/auth/device-login.d.ts +1 -1
  267. package/dist/src/unstable/auth/guard.d.ts +1 -1
  268. package/dist/src/unstable/auth/loopback-login.d.ts +1 -1
  269. package/dist/src/unstable/auth/token-resolution.d.ts +1 -1
  270. package/dist/src/unstable/cli/prompt/autocomplete-multiselect.d.ts +1 -0
  271. package/dist/src/unstable/cli/prompt/autocomplete-multiselect.d.ts.map +1 -1
  272. package/dist/src/unstable/cli/prompt/autocomplete-multiselect.js +11 -1
  273. package/dist/src/unstable/cli/prompt/autocomplete-multiselect.js.map +1 -1
  274. package/dist/src/unstable/cli-runtime/command-summary.d.ts +1 -1
  275. package/dist/src/unstable/cli-runtime/command-summary.d.ts.map +1 -1
  276. package/dist/src/unstable/cli-runtime/command-summary.js.map +1 -1
  277. package/dist/src/unstable/cli-runtime/handle-error.d.ts +4 -1
  278. package/dist/src/unstable/cli-runtime/handle-error.d.ts.map +1 -1
  279. package/dist/src/unstable/cli-runtime/handle-error.js +13 -17
  280. package/dist/src/unstable/cli-runtime/handle-error.js.map +1 -1
  281. package/dist/src/unstable/cli-runtime/json-envelope.d.ts +17 -2
  282. package/dist/src/unstable/cli-runtime/json-envelope.d.ts.map +1 -1
  283. package/dist/src/unstable/cli-runtime/json-envelope.js +10 -2
  284. package/dist/src/unstable/cli-runtime/json-envelope.js.map +1 -1
  285. package/dist/src/unstable/cli-runtime/run-cli-main.d.ts.map +1 -1
  286. package/dist/src/unstable/cli-runtime/run-cli-main.js +29 -8
  287. package/dist/src/unstable/cli-runtime/run-cli-main.js.map +1 -1
  288. package/dist/src/unstable/cli-runtime/runtime-envelope.d.ts +1 -1
  289. package/dist/src/unstable/cli-runtime/runtime-envelope.d.ts.map +1 -1
  290. package/dist/src/unstable/cli-runtime/runtime-envelope.js +2 -3
  291. package/dist/src/unstable/cli-runtime/runtime-envelope.js.map +1 -1
  292. package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts +1 -1
  293. package/dist/src/unstable/extensions/configured-entry.d.ts +11 -0
  294. package/dist/src/unstable/extensions/configured-entry.d.ts.map +1 -0
  295. package/dist/src/unstable/extensions/configured-entry.js +8 -0
  296. package/dist/src/unstable/extensions/configured-entry.js.map +1 -0
  297. package/dist/src/unstable/extensions/index.d.ts +1 -0
  298. package/dist/src/unstable/extensions/index.d.ts.map +1 -1
  299. package/dist/src/unstable/extensions/index.js +1 -0
  300. package/dist/src/unstable/extensions/index.js.map +1 -1
  301. package/dist/src/unstable/extensions/materializable-from-disk.d.ts.map +1 -1
  302. package/dist/src/unstable/extensions/materializable-from-disk.js +5 -4
  303. package/dist/src/unstable/extensions/materializable-from-disk.js.map +1 -1
  304. package/dist/src/unstable/files/manager.d.ts.map +1 -1
  305. package/dist/src/unstable/files/manager.js +2 -2
  306. package/dist/src/unstable/files/manager.js.map +1 -1
  307. package/dist/src/unstable/git/detect.d.ts +7 -0
  308. package/dist/src/unstable/git/detect.d.ts.map +1 -0
  309. package/dist/src/unstable/git/detect.js +23 -0
  310. package/dist/src/unstable/git/detect.js.map +1 -0
  311. package/dist/src/unstable/git/index.d.ts +1 -0
  312. package/dist/src/unstable/git/index.d.ts.map +1 -1
  313. package/dist/src/unstable/git/index.js +1 -0
  314. package/dist/src/unstable/git/index.js.map +1 -1
  315. package/dist/src/unstable/hooks/manager.d.ts.map +1 -1
  316. package/dist/src/unstable/hooks/manager.js +169 -49
  317. package/dist/src/unstable/hooks/manager.js.map +1 -1
  318. package/dist/src/unstable/hooks/manifest-schema.d.ts +126 -5
  319. package/dist/src/unstable/hooks/manifest-schema.d.ts.map +1 -1
  320. package/dist/src/unstable/hooks/manifest-schema.js +74 -9
  321. package/dist/src/unstable/hooks/manifest-schema.js.map +1 -1
  322. package/dist/src/unstable/hooks/operations/new-hook.d.ts +2 -2
  323. package/dist/src/unstable/hooks/operations/new-hook.d.ts.map +1 -1
  324. package/dist/src/unstable/hooks/operations/new-hook.js +4 -2
  325. package/dist/src/unstable/hooks/operations/new-hook.js.map +1 -1
  326. package/dist/src/unstable/libraries/index.d.ts +3 -0
  327. package/dist/src/unstable/libraries/index.d.ts.map +1 -0
  328. package/dist/src/unstable/libraries/index.js +2 -0
  329. package/dist/src/unstable/libraries/index.js.map +1 -0
  330. package/dist/src/unstable/libraries/ref.d.ts +17 -0
  331. package/dist/src/unstable/libraries/ref.d.ts.map +1 -0
  332. package/dist/src/unstable/libraries/ref.js +43 -0
  333. package/dist/src/unstable/libraries/ref.js.map +1 -0
  334. package/dist/src/unstable/lint/catalog/hook/matcher-raw-portability.d.ts +4 -0
  335. package/dist/src/unstable/lint/catalog/hook/matcher-raw-portability.d.ts.map +1 -0
  336. package/dist/src/unstable/lint/catalog/hook/matcher-raw-portability.js +51 -0
  337. package/dist/src/unstable/lint/catalog/hook/matcher-raw-portability.js.map +1 -0
  338. package/dist/src/unstable/lint/catalog/hook.d.ts.map +1 -1
  339. package/dist/src/unstable/lint/catalog/hook.js +2 -0
  340. package/dist/src/unstable/lint/catalog/hook.js.map +1 -1
  341. package/dist/src/unstable/lint/catalog/mcp-server/manifest-keys-recognized.js +2 -2
  342. package/dist/src/unstable/lint/catalog/mcp-server/manifest-keys-recognized.js.map +1 -1
  343. package/dist/src/unstable/lint/catalog/mcp-server/manifest-present.js +3 -3
  344. package/dist/src/unstable/lint/catalog/mcp-server/manifest-present.js.map +1 -1
  345. package/dist/src/unstable/lint/catalog/mcp-server/manifest-schema-valid.js +2 -2
  346. package/dist/src/unstable/lint/catalog/mcp-server/manifest-schema-valid.js.map +1 -1
  347. package/dist/src/unstable/lint/catalog/shared/manifest-json.js +1 -1
  348. package/dist/src/unstable/lint/catalog/shared/manifest-json.js.map +1 -1
  349. package/dist/src/unstable/lint/catalog/shared/schema-rule.js +1 -1
  350. package/dist/src/unstable/lint/catalog/shared/schema-rule.js.map +1 -1
  351. package/dist/src/unstable/lint/catalog/workspace/mcp-server-agent-drift.d.ts.map +1 -1
  352. package/dist/src/unstable/lint/catalog/workspace/mcp-server-agent-drift.js +6 -3
  353. package/dist/src/unstable/lint/catalog/workspace/mcp-server-agent-drift.js.map +1 -1
  354. package/dist/src/unstable/lint/catalog/workspace/mcp-server-agent-orphaned.d.ts.map +1 -1
  355. package/dist/src/unstable/lint/catalog/workspace/mcp-server-agent-orphaned.js +4 -1
  356. package/dist/src/unstable/lint/catalog/workspace/mcp-server-agent-orphaned.js.map +1 -1
  357. package/dist/src/unstable/lockfile/index.d.ts +3 -3
  358. package/dist/src/unstable/lockfile/index.d.ts.map +1 -1
  359. package/dist/src/unstable/lockfile/index.js +2 -2
  360. package/dist/src/unstable/lockfile/index.js.map +1 -1
  361. package/dist/src/unstable/lockfile/lockfile.d.ts +969 -36
  362. package/dist/src/unstable/lockfile/lockfile.d.ts.map +1 -1
  363. package/dist/src/unstable/lockfile/lockfile.js +223 -31
  364. package/dist/src/unstable/lockfile/lockfile.js.map +1 -1
  365. package/dist/src/unstable/lockfile/schema.d.ts +96 -0
  366. package/dist/src/unstable/lockfile/schema.d.ts.map +1 -1
  367. package/dist/src/unstable/lockfile/schema.js +54 -0
  368. package/dist/src/unstable/lockfile/schema.js.map +1 -1
  369. package/dist/src/unstable/mcps/config-writer.d.ts.map +1 -1
  370. package/dist/src/unstable/mcps/config-writer.js +89 -58
  371. package/dist/src/unstable/mcps/config-writer.js.map +1 -1
  372. package/dist/src/unstable/mcps/index.d.ts +1 -0
  373. package/dist/src/unstable/mcps/index.d.ts.map +1 -1
  374. package/dist/src/unstable/mcps/index.js +1 -0
  375. package/dist/src/unstable/mcps/index.js.map +1 -1
  376. package/dist/src/unstable/mcps/inspection.d.ts.map +1 -1
  377. package/dist/src/unstable/mcps/inspection.js +29 -8
  378. package/dist/src/unstable/mcps/inspection.js.map +1 -1
  379. package/dist/src/unstable/mcps/manifest-schema.d.ts +3 -3
  380. package/dist/src/unstable/mcps/manifest-schema.d.ts.map +1 -1
  381. package/dist/src/unstable/mcps/manifest-schema.js +4 -4
  382. package/dist/src/unstable/mcps/manifest-schema.js.map +1 -1
  383. package/dist/src/unstable/mcps/metadata.d.ts +26 -0
  384. package/dist/src/unstable/mcps/metadata.d.ts.map +1 -0
  385. package/dist/src/unstable/mcps/metadata.js +75 -0
  386. package/dist/src/unstable/mcps/metadata.js.map +1 -0
  387. package/dist/src/unstable/mcps/operations/publish.d.ts +1 -1
  388. package/dist/src/unstable/mcps/operations/publish.js +1 -1
  389. package/dist/src/unstable/mcps/projection.d.ts.map +1 -1
  390. package/dist/src/unstable/mcps/projection.js +22 -4
  391. package/dist/src/unstable/mcps/projection.js.map +1 -1
  392. package/dist/src/unstable/mcps/resolution.d.ts.map +1 -1
  393. package/dist/src/unstable/mcps/resolution.js +18 -10
  394. package/dist/src/unstable/mcps/resolution.js.map +1 -1
  395. package/dist/src/unstable/packs/dependency-resolution.d.ts +3 -1
  396. package/dist/src/unstable/packs/dependency-resolution.d.ts.map +1 -1
  397. package/dist/src/unstable/packs/dependency-resolution.js +11 -10
  398. package/dist/src/unstable/packs/dependency-resolution.js.map +1 -1
  399. package/dist/src/unstable/packs/expansion.d.ts +3 -0
  400. package/dist/src/unstable/packs/expansion.d.ts.map +1 -1
  401. package/dist/src/unstable/packs/expansion.js +2 -2
  402. package/dist/src/unstable/packs/expansion.js.map +1 -1
  403. package/dist/src/unstable/publish/manifest-policy.d.ts +42 -2
  404. package/dist/src/unstable/publish/manifest-policy.d.ts.map +1 -1
  405. package/dist/src/unstable/registry/__generated__/registry-client.d.ts +2304 -127
  406. package/dist/src/unstable/registry/__generated__/registry-client.d.ts.map +1 -1
  407. package/dist/src/unstable/registry/__generated__/registry-client.js +369 -10
  408. package/dist/src/unstable/registry/__generated__/registry-client.js.map +1 -1
  409. package/dist/src/unstable/registry/admin-client.d.ts +72 -0
  410. package/dist/src/unstable/registry/admin-client.d.ts.map +1 -0
  411. package/dist/src/unstable/registry/admin-client.js +71 -0
  412. package/dist/src/unstable/registry/admin-client.js.map +1 -0
  413. package/dist/src/unstable/registry/client.d.ts +52 -0
  414. package/dist/src/unstable/registry/client.d.ts.map +1 -1
  415. package/dist/src/unstable/registry/client.js.map +1 -1
  416. package/dist/src/unstable/registry/index.d.ts +6 -2
  417. package/dist/src/unstable/registry/index.d.ts.map +1 -1
  418. package/dist/src/unstable/registry/index.js +3 -1
  419. package/dist/src/unstable/registry/index.js.map +1 -1
  420. package/dist/src/unstable/registry/local-client.d.ts.map +1 -1
  421. package/dist/src/unstable/registry/local-client.js +1 -0
  422. package/dist/src/unstable/registry/local-client.js.map +1 -1
  423. package/dist/src/unstable/registry/release-age-policy.d.ts +18 -0
  424. package/dist/src/unstable/registry/release-age-policy.d.ts.map +1 -0
  425. package/dist/src/unstable/registry/release-age-policy.js +41 -0
  426. package/dist/src/unstable/registry/release-age-policy.js.map +1 -0
  427. package/dist/src/unstable/registry/remote-client.d.ts.map +1 -1
  428. package/dist/src/unstable/registry/remote-client.js +59 -0
  429. package/dist/src/unstable/registry/remote-client.js.map +1 -1
  430. package/dist/src/unstable/registry/utils.d.ts +2 -0
  431. package/dist/src/unstable/registry/utils.d.ts.map +1 -1
  432. package/dist/src/unstable/registry/utils.js +7 -0
  433. package/dist/src/unstable/registry/utils.js.map +1 -1
  434. package/dist/src/unstable/rules/manager.d.ts.map +1 -1
  435. package/dist/src/unstable/rules/manager.js +2 -2
  436. package/dist/src/unstable/rules/manager.js.map +1 -1
  437. package/dist/src/unstable/settings/index.d.ts +2 -2
  438. package/dist/src/unstable/settings/index.d.ts.map +1 -1
  439. package/dist/src/unstable/settings/index.js +1 -1
  440. package/dist/src/unstable/settings/index.js.map +1 -1
  441. package/dist/src/unstable/settings/schema.d.ts +62 -5
  442. package/dist/src/unstable/settings/schema.d.ts.map +1 -1
  443. package/dist/src/unstable/settings/schema.js +88 -4
  444. package/dist/src/unstable/settings/schema.js.map +1 -1
  445. package/dist/src/unstable/source-resolution/providers/registry/host-provider.d.ts.map +1 -1
  446. package/dist/src/unstable/source-resolution/providers/registry/host-provider.js +8 -7
  447. package/dist/src/unstable/source-resolution/providers/registry/host-provider.js.map +1 -1
  448. package/dist/src/unstable/sources/provider.d.ts +3 -0
  449. package/dist/src/unstable/sources/provider.d.ts.map +1 -1
  450. package/dist/src/unstable/utils/transient-backup.d.ts +27 -0
  451. package/dist/src/unstable/utils/transient-backup.d.ts.map +1 -0
  452. package/dist/src/unstable/utils/transient-backup.js +53 -0
  453. package/dist/src/unstable/utils/transient-backup.js.map +1 -0
  454. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.d.ts +9 -8
  455. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.d.ts.map +1 -1
  456. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js +30 -0
  457. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js.map +1 -1
  458. package/dist/src/unstable/workspace/initialization-interaction.d.ts.map +1 -1
  459. package/dist/src/unstable/workspace/initialization-interaction.js +1 -0
  460. package/dist/src/unstable/workspace/initialization-interaction.js.map +1 -1
  461. package/dist/src/unstable/workspace/initialization.d.ts +56 -24
  462. package/dist/src/unstable/workspace/initialization.d.ts.map +1 -1
  463. package/dist/src/unstable/workspace/initialization.js +5 -2
  464. package/dist/src/unstable/workspace/initialization.js.map +1 -1
  465. package/dist/src/unstable/workspace/read-model/__fixtures__/builder.d.ts +1 -1
  466. package/dist/src/unstable/workspace/read-model/__fixtures__/builder.d.ts.map +1 -1
  467. package/dist/src/unstable/workspace/read-model/__fixtures__/builder.js +14 -5
  468. package/dist/src/unstable/workspace/read-model/__fixtures__/builder.js.map +1 -1
  469. package/dist/src/unstable/workspace/service-interface.d.ts +27 -2
  470. package/dist/src/unstable/workspace/service-interface.d.ts.map +1 -1
  471. package/dist/src/unstable/workspace/service-interface.js.map +1 -1
  472. package/dist/src/unstable/workspace/service.d.ts +85 -7
  473. package/dist/src/unstable/workspace/service.d.ts.map +1 -1
  474. package/dist/src/unstable/workspace/service.js +148 -50
  475. package/dist/src/unstable/workspace/service.js.map +1 -1
  476. package/dist/src/unstable/workspace/test-stubs.d.ts +2 -0
  477. package/dist/src/unstable/workspace/test-stubs.d.ts.map +1 -1
  478. package/dist/src/unstable/workspace/test-stubs.js +11 -0
  479. package/dist/src/unstable/workspace/test-stubs.js.map +1 -1
  480. package/dist/src/unstable/workspace/version-currency/collectors.d.ts.map +1 -1
  481. package/dist/src/unstable/workspace/version-currency/collectors.js +2 -3
  482. package/dist/src/unstable/workspace/version-currency/collectors.js.map +1 -1
  483. package/dist/src/unstable/workspace/version-currency/test-stubs.d.ts.map +1 -1
  484. package/dist/src/unstable/workspace/version-currency/test-stubs.js +1 -0
  485. package/dist/src/unstable/workspace/version-currency/test-stubs.js.map +1 -1
  486. package/dist/src/unstable/yaml/index.d.ts +13 -0
  487. package/dist/src/unstable/yaml/index.d.ts.map +1 -0
  488. package/dist/src/unstable/yaml/index.js +73 -0
  489. package/dist/src/unstable/yaml/index.js.map +1 -0
  490. package/package.json +12 -4
  491. package/site-content/__generated__/schemas/axm-lock.schema.json +77 -0
  492. package/site-content/__generated__/schemas/hook.schema.json +166 -10
  493. package/site-content/__generated__/schemas/{mcp-server.schema.json → mcp.schema.json} +1 -1
  494. package/site-content/__generated__/schemas/settings.schema.json +80 -11
@@ -226,8 +226,8 @@ export declare const ChangeTeamMemberRoleBody: Schema.Struct<{
226
226
  }>;
227
227
  export type ExtensionName = string;
228
228
  export declare const ExtensionName: Schema.String;
229
- export type ExtensionType = "skill" | "command" | "mcp-server" | "subagent" | "context" | "rule" | "pack";
230
- export declare const ExtensionType: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
229
+ export type ExtensionType = "skill" | "command" | "mcp-server" | "subagent" | "files" | "rule" | "hook" | "pack";
230
+ export declare const ExtensionType: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
231
231
  export type Version = string;
232
232
  export declare const Version: Schema.String;
233
233
  export type Repository = {
@@ -308,12 +308,34 @@ export declare const PublishIdentityMismatchEntry: Schema.Struct<{
308
308
  readonly urlPath: Schema.Union<readonly [Schema.String, Schema.Null]>;
309
309
  readonly content: Schema.Union<readonly [Schema.String, Schema.Null]>;
310
310
  }>;
311
+ export type LibraryId = string;
312
+ export declare const LibraryId: Schema.String;
313
+ export type LibraryName = string;
314
+ export declare const LibraryName: Schema.String;
315
+ export type LibraryVisibility = "public" | "internal" | "private";
316
+ export declare const LibraryVisibility: Schema.Literals<readonly ["public", "internal", "private"]>;
317
+ export type LibraryMemberId = string;
318
+ export declare const LibraryMemberId: Schema.String;
319
+ export type UpdateLibraryBody = {
320
+ readonly title?: string | null;
321
+ readonly description?: string | null | null;
322
+ };
323
+ export declare const UpdateLibraryBody: Schema.Struct<{
324
+ readonly title: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
325
+ readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
326
+ }>;
311
327
  export type PutCollaboratorBody = {
312
328
  readonly role: "write" | "read";
313
329
  };
314
330
  export declare const PutCollaboratorBody: Schema.Struct<{
315
331
  readonly role: Schema.Literals<readonly ["write", "read"]>;
316
332
  }>;
333
+ export type UpsertGrantBody = {
334
+ readonly role: "read" | "write";
335
+ };
336
+ export declare const UpsertGrantBody: Schema.Struct<{
337
+ readonly role: Schema.Literals<readonly ["read", "write"]>;
338
+ }>;
317
339
  export type ExtensionFqn = string;
318
340
  export declare const ExtensionFqn: Schema.String;
319
341
  export type ProblemDetails = {
@@ -423,7 +445,7 @@ export type ForbiddenError = {
423
445
  readonly status: number;
424
446
  readonly detail: string;
425
447
  readonly instance?: string;
426
- readonly code: "forbidden" | "insufficient_scope" | "resource_restriction" | "scope_escalation" | "gat_requires_session" | "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";
448
+ readonly code: "forbidden" | "insufficient_scope" | "resource_restriction" | "scope_escalation" | "gat_requires_session" | "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" | "library_mutation_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";
427
449
  readonly details?: ScopeCheckDetails | AuthorizationDenyDetails | PublishDetails;
428
450
  };
429
451
  export declare const ForbiddenError: Schema.Struct<{
@@ -433,7 +455,7 @@ export declare const ForbiddenError: Schema.Struct<{
433
455
  readonly status: Schema.Number;
434
456
  readonly detail: Schema.String;
435
457
  readonly instance: Schema.optionalKey<Schema.String>;
436
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
458
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
437
459
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
438
460
  readonly requiredScope: Schema.String;
439
461
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -468,13 +490,73 @@ export declare const CreateTokenRequest: Schema.Struct<{
468
490
  }>, Schema.Null]>>;
469
491
  readonly expires_in: Schema.Number;
470
492
  }>;
471
- export type UpsertTeamGrantBody = {
493
+ export type LibraryMaintainer = {
494
+ readonly kind: "user";
495
+ readonly userId: UserId;
496
+ readonly assignedAt: string | null;
497
+ readonly assignedBy: UserId | null;
498
+ } | {
499
+ readonly kind: "team";
472
500
  readonly teamId: TeamId;
473
- readonly role: "read" | "write";
501
+ readonly assignedAt: string | null;
502
+ readonly assignedBy: UserId | null;
503
+ } | {
504
+ readonly kind: "none";
505
+ readonly assignedAt: string | null;
506
+ readonly assignedBy: UserId | null;
474
507
  };
475
- export declare const UpsertTeamGrantBody: Schema.Struct<{
508
+ export declare const LibraryMaintainer: Schema.Union<readonly [Schema.Struct<{
509
+ readonly kind: Schema.Literal<"user">;
510
+ readonly userId: Schema.String;
511
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
512
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
513
+ }>, Schema.Struct<{
514
+ readonly kind: Schema.Literal<"team">;
515
+ readonly teamId: Schema.String;
516
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
517
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
518
+ }>, Schema.Struct<{
519
+ readonly kind: Schema.Literal<"none">;
520
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
521
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
522
+ }>]>;
523
+ export type LibraryMaintainerTarget = {
524
+ readonly kind: "user";
525
+ readonly userId: UserId;
526
+ } | {
527
+ readonly kind: "team";
528
+ readonly teamId: TeamId;
529
+ };
530
+ export declare const LibraryMaintainerTarget: Schema.Union<readonly [Schema.Struct<{
531
+ readonly kind: Schema.Literal<"user">;
532
+ readonly userId: Schema.String;
533
+ }>, Schema.Struct<{
534
+ readonly kind: Schema.Literal<"team">;
476
535
  readonly teamId: Schema.String;
536
+ }>]>;
537
+ export type ExtensionGrantEntry = {
538
+ readonly subject: {
539
+ readonly kind: "user";
540
+ readonly userId: UserId;
541
+ } | {
542
+ readonly kind: "team";
543
+ readonly teamId: TeamId;
544
+ };
545
+ readonly role: "read" | "write";
546
+ readonly grantedBy: UserId | null;
547
+ readonly createdAt: string;
548
+ };
549
+ export declare const ExtensionGrantEntry: Schema.Struct<{
550
+ readonly subject: Schema.Union<readonly [Schema.Struct<{
551
+ readonly kind: Schema.Literal<"user">;
552
+ readonly userId: Schema.String;
553
+ }>, Schema.Struct<{
554
+ readonly kind: Schema.Literal<"team">;
555
+ readonly teamId: Schema.String;
556
+ }>]>;
477
557
  readonly role: Schema.Literals<readonly ["read", "write"]>;
558
+ readonly grantedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
559
+ readonly createdAt: Schema.String;
478
560
  }>;
479
561
  export type TeamGrant = {
480
562
  readonly teamId: TeamId;
@@ -488,20 +570,14 @@ export declare const TeamGrant: Schema.Struct<{
488
570
  readonly grantedBy: Schema.String;
489
571
  readonly grantedAt: Schema.String;
490
572
  }>;
491
- export type MaintainerTarget = {
492
- readonly kind: "user";
493
- readonly userId: UserId;
494
- } | {
495
- readonly kind: "team";
573
+ export type UpsertTeamGrantBody = {
496
574
  readonly teamId: TeamId;
575
+ readonly role: "read" | "write";
497
576
  };
498
- export declare const MaintainerTarget: Schema.Union<readonly [Schema.Struct<{
499
- readonly kind: Schema.Literal<"user">;
500
- readonly userId: Schema.String;
501
- }>, Schema.Struct<{
502
- readonly kind: Schema.Literal<"team">;
577
+ export declare const UpsertTeamGrantBody: Schema.Struct<{
503
578
  readonly teamId: Schema.String;
504
- }>]>;
579
+ readonly role: Schema.Literals<readonly ["read", "write"]>;
580
+ }>;
505
581
  export type Maintainer = {
506
582
  readonly kind: "user";
507
583
  readonly userId: UserId;
@@ -532,6 +608,20 @@ export declare const Maintainer: Schema.Union<readonly [Schema.Struct<{
532
608
  readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
533
609
  readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
534
610
  }>]>;
611
+ export type MaintainerTarget = {
612
+ readonly kind: "user";
613
+ readonly userId: UserId;
614
+ } | {
615
+ readonly kind: "team";
616
+ readonly teamId: TeamId;
617
+ };
618
+ export declare const MaintainerTarget: Schema.Union<readonly [Schema.Struct<{
619
+ readonly kind: Schema.Literal<"user">;
620
+ readonly userId: Schema.String;
621
+ }>, Schema.Struct<{
622
+ readonly kind: Schema.Literal<"team">;
623
+ readonly teamId: Schema.String;
624
+ }>]>;
535
625
  export type Team = {
536
626
  readonly id: TeamId;
537
627
  readonly organizationId: OrgId;
@@ -572,7 +662,7 @@ export type PublishIdentity = {
572
662
  };
573
663
  export declare const PublishIdentity: Schema.Struct<{
574
664
  readonly owner: Schema.String;
575
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
665
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
576
666
  readonly name: Schema.String;
577
667
  readonly version: Schema.String;
578
668
  }>;
@@ -591,7 +681,7 @@ export type SearchHit = {
591
681
  export declare const SearchHit: Schema.Struct<{
592
682
  readonly name: Schema.String;
593
683
  readonly owner: Schema.String;
594
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
684
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
595
685
  readonly latestVersion: Schema.String;
596
686
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
597
687
  readonly repository: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
@@ -640,6 +730,42 @@ export declare const PublishLintFinding: Schema.Struct<{
640
730
  readonly path: Schema.String;
641
731
  readonly suggestions: Schema.$Array<Schema.String>;
642
732
  }>;
733
+ export type CreateLibraryBody = {
734
+ readonly name: LibraryName;
735
+ readonly title: string;
736
+ readonly description?: string | null | null;
737
+ readonly visibility?: LibraryVisibility | null;
738
+ };
739
+ export declare const CreateLibraryBody: Schema.Struct<{
740
+ readonly name: Schema.String;
741
+ readonly title: Schema.String;
742
+ readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
743
+ readonly visibility: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["public", "internal", "private"]>, Schema.Null]>>;
744
+ }>;
745
+ export type PatchLibraryVisibilityBody = {
746
+ readonly visibility: LibraryVisibility;
747
+ };
748
+ export declare const PatchLibraryVisibilityBody: Schema.Struct<{
749
+ readonly visibility: Schema.Literals<readonly ["public", "internal", "private"]>;
750
+ }>;
751
+ export type LibraryMember = {
752
+ readonly id: LibraryMemberId;
753
+ readonly libraryId: LibraryId;
754
+ readonly extensionId: string;
755
+ readonly extensionOwner: Handle;
756
+ readonly extensionType: ExtensionType;
757
+ readonly extensionName: ExtensionName;
758
+ readonly addedAt: string;
759
+ };
760
+ export declare const LibraryMember: Schema.Struct<{
761
+ readonly id: Schema.String;
762
+ readonly libraryId: Schema.String;
763
+ readonly extensionId: Schema.String;
764
+ readonly extensionOwner: Schema.String;
765
+ readonly extensionType: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
766
+ readonly extensionName: Schema.String;
767
+ readonly addedAt: Schema.String;
768
+ }>;
643
769
  export type AuthMeResponse = {
644
770
  readonly user: AuthMeUser;
645
771
  readonly orgs: ReadonlyArray<never>;
@@ -683,6 +809,95 @@ export declare const TokenListResponse: Schema.Struct<{
683
809
  readonly has_more: Schema.Boolean;
684
810
  readonly cursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
685
811
  }>;
812
+ export type Library = {
813
+ readonly id: LibraryId;
814
+ readonly owner: Handle;
815
+ readonly name: LibraryName;
816
+ readonly title: string;
817
+ readonly description: string | null;
818
+ readonly visibility: LibraryVisibility;
819
+ readonly maintainer: LibraryMaintainer;
820
+ readonly createdAt: string;
821
+ readonly updatedAt: string;
822
+ };
823
+ export declare const Library: Schema.Struct<{
824
+ readonly id: Schema.String;
825
+ readonly owner: Schema.String;
826
+ readonly name: Schema.String;
827
+ readonly title: Schema.String;
828
+ readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
829
+ readonly visibility: Schema.Literals<readonly ["public", "internal", "private"]>;
830
+ readonly maintainer: Schema.Union<readonly [Schema.Struct<{
831
+ readonly kind: Schema.Literal<"user">;
832
+ readonly userId: Schema.String;
833
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
834
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
835
+ }>, Schema.Struct<{
836
+ readonly kind: Schema.Literal<"team">;
837
+ readonly teamId: Schema.String;
838
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
839
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
840
+ }>, Schema.Struct<{
841
+ readonly kind: Schema.Literal<"none">;
842
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
843
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
844
+ }>]>;
845
+ readonly createdAt: Schema.String;
846
+ readonly updatedAt: Schema.String;
847
+ }>;
848
+ export type CreatedLibrary = {
849
+ readonly id: LibraryId;
850
+ readonly owner: Handle;
851
+ readonly name: LibraryName;
852
+ readonly title: string;
853
+ readonly description: string | null;
854
+ readonly visibility: LibraryVisibility;
855
+ readonly maintainer: LibraryMaintainer;
856
+ readonly createdAt: string;
857
+ readonly updatedAt: string;
858
+ };
859
+ export declare const CreatedLibrary: Schema.Struct<{
860
+ readonly id: Schema.String;
861
+ readonly owner: Schema.String;
862
+ readonly name: Schema.String;
863
+ readonly title: Schema.String;
864
+ readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
865
+ readonly visibility: Schema.Literals<readonly ["public", "internal", "private"]>;
866
+ readonly maintainer: Schema.Union<readonly [Schema.Struct<{
867
+ readonly kind: Schema.Literal<"user">;
868
+ readonly userId: Schema.String;
869
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
870
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
871
+ }>, Schema.Struct<{
872
+ readonly kind: Schema.Literal<"team">;
873
+ readonly teamId: Schema.String;
874
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
875
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
876
+ }>, Schema.Struct<{
877
+ readonly kind: Schema.Literal<"none">;
878
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
879
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
880
+ }>]>;
881
+ readonly createdAt: Schema.String;
882
+ readonly updatedAt: Schema.String;
883
+ }>;
884
+ export type ExtensionGrantsResponse = {
885
+ readonly grants: ReadonlyArray<ExtensionGrantEntry>;
886
+ };
887
+ export declare const ExtensionGrantsResponse: Schema.Struct<{
888
+ readonly grants: Schema.$Array<Schema.Struct<{
889
+ readonly subject: Schema.Union<readonly [Schema.Struct<{
890
+ readonly kind: Schema.Literal<"user">;
891
+ readonly userId: Schema.String;
892
+ }>, Schema.Struct<{
893
+ readonly kind: Schema.Literal<"team">;
894
+ readonly teamId: Schema.String;
895
+ }>]>;
896
+ readonly role: Schema.Literals<readonly ["read", "write"]>;
897
+ readonly grantedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
898
+ readonly createdAt: Schema.String;
899
+ }>>;
900
+ }>;
686
901
  export type TeamList = {
687
902
  readonly items: ReadonlyArray<Team>;
688
903
  readonly nextCursor: string | null;
@@ -736,7 +951,7 @@ export declare const ExtensionIdentityMismatchError: Schema.Struct<{
736
951
  readonly error: Schema.Literal<"extension_identity_mismatch">;
737
952
  readonly identity: Schema.Struct<{
738
953
  readonly owner: Schema.String;
739
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
954
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
740
955
  readonly name: Schema.String;
741
956
  readonly version: Schema.String;
742
957
  }>;
@@ -755,7 +970,7 @@ export declare const SearchResponse: Schema.Struct<{
755
970
  readonly extensions: Schema.$Array<Schema.Struct<{
756
971
  readonly name: Schema.String;
757
972
  readonly owner: Schema.String;
758
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
973
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
759
974
  readonly latestVersion: Schema.String;
760
975
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
761
976
  readonly repository: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
@@ -799,7 +1014,7 @@ export declare const ExtensionLintFailedError: Schema.Struct<{
799
1014
  readonly error: Schema.Literal<"extension_lint_failed">;
800
1015
  readonly identity: Schema.Struct<{
801
1016
  readonly owner: Schema.String;
802
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
1017
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
803
1018
  readonly name: Schema.String;
804
1019
  readonly version: Schema.String;
805
1020
  }>;
@@ -820,6 +1035,48 @@ export declare const ExtensionLintFailedError: Schema.Struct<{
820
1035
  readonly suggestions: Schema.$Array<Schema.String>;
821
1036
  }>>;
822
1037
  }>;
1038
+ export type LibraryDetail = {
1039
+ readonly library: Library;
1040
+ readonly members: ReadonlyArray<LibraryMember>;
1041
+ readonly hiddenMemberCount: number;
1042
+ };
1043
+ export declare const LibraryDetail: Schema.Struct<{
1044
+ readonly library: Schema.Struct<{
1045
+ readonly id: Schema.String;
1046
+ readonly owner: Schema.String;
1047
+ readonly name: Schema.String;
1048
+ readonly title: Schema.String;
1049
+ readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
1050
+ readonly visibility: Schema.Literals<readonly ["public", "internal", "private"]>;
1051
+ readonly maintainer: Schema.Union<readonly [Schema.Struct<{
1052
+ readonly kind: Schema.Literal<"user">;
1053
+ readonly userId: Schema.String;
1054
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1055
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
1056
+ }>, Schema.Struct<{
1057
+ readonly kind: Schema.Literal<"team">;
1058
+ readonly teamId: Schema.String;
1059
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1060
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
1061
+ }>, Schema.Struct<{
1062
+ readonly kind: Schema.Literal<"none">;
1063
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1064
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
1065
+ }>]>;
1066
+ readonly createdAt: Schema.String;
1067
+ readonly updatedAt: Schema.String;
1068
+ }>;
1069
+ readonly members: Schema.$Array<Schema.Struct<{
1070
+ readonly id: Schema.String;
1071
+ readonly libraryId: Schema.String;
1072
+ readonly extensionId: Schema.String;
1073
+ readonly extensionOwner: Schema.String;
1074
+ readonly extensionType: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
1075
+ readonly extensionName: Schema.String;
1076
+ readonly addedAt: Schema.String;
1077
+ }>>;
1078
+ readonly hiddenMemberCount: Schema.Number;
1079
+ }>;
823
1080
  export type MetaGet200 = MetaResponse;
824
1081
  export declare const MetaGet200: Schema.Struct<{
825
1082
  readonly ok: Schema.Literal<true>;
@@ -1205,7 +1462,7 @@ export declare const TokensList403: Schema.Struct<{
1205
1462
  readonly status: Schema.Number;
1206
1463
  readonly detail: Schema.String;
1207
1464
  readonly instance: Schema.optionalKey<Schema.String>;
1208
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
1465
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
1209
1466
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1210
1467
  readonly requiredScope: Schema.String;
1211
1468
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -1279,7 +1536,7 @@ export declare const TokensCreate403: Schema.Union<readonly [Schema.Struct<{
1279
1536
  readonly status: Schema.Number;
1280
1537
  readonly detail: Schema.String;
1281
1538
  readonly instance: Schema.optionalKey<Schema.String>;
1282
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
1539
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
1283
1540
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1284
1541
  readonly requiredScope: Schema.String;
1285
1542
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -1301,7 +1558,7 @@ export declare const TokensCreate403: Schema.Union<readonly [Schema.Struct<{
1301
1558
  readonly status: Schema.Number;
1302
1559
  readonly detail: Schema.String;
1303
1560
  readonly instance: Schema.optionalKey<Schema.String>;
1304
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
1561
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
1305
1562
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1306
1563
  readonly requiredScope: Schema.String;
1307
1564
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -1377,7 +1634,7 @@ export declare const TokensDelete403: Schema.Struct<{
1377
1634
  readonly status: Schema.Number;
1378
1635
  readonly detail: Schema.String;
1379
1636
  readonly instance: Schema.optionalKey<Schema.String>;
1380
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
1637
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
1381
1638
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1382
1639
  readonly requiredScope: Schema.String;
1383
1640
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -1549,7 +1806,7 @@ export declare const OrgsTeamsCreateTeam403: Schema.Struct<{
1549
1806
  readonly status: Schema.Number;
1550
1807
  readonly detail: Schema.String;
1551
1808
  readonly instance: Schema.optionalKey<Schema.String>;
1552
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
1809
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
1553
1810
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1554
1811
  readonly requiredScope: Schema.String;
1555
1812
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -1667,7 +1924,7 @@ export declare const OrgsTeamsDeleteTeam403: Schema.Struct<{
1667
1924
  readonly status: Schema.Number;
1668
1925
  readonly detail: Schema.String;
1669
1926
  readonly instance: Schema.optionalKey<Schema.String>;
1670
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
1927
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
1671
1928
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1672
1929
  readonly requiredScope: Schema.String;
1673
1930
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -1762,7 +2019,7 @@ export declare const OrgsTeamsUpdateTeam403: Schema.Struct<{
1762
2019
  readonly status: Schema.Number;
1763
2020
  readonly detail: Schema.String;
1764
2021
  readonly instance: Schema.optionalKey<Schema.String>;
1765
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
2022
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
1766
2023
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1767
2024
  readonly requiredScope: Schema.String;
1768
2025
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -1902,7 +2159,7 @@ export declare const OrgsTeamsAddTeamMember403: Schema.Struct<{
1902
2159
  readonly status: Schema.Number;
1903
2160
  readonly detail: Schema.String;
1904
2161
  readonly instance: Schema.optionalKey<Schema.String>;
1905
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
2162
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
1906
2163
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1907
2164
  readonly requiredScope: Schema.String;
1908
2165
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -1984,7 +2241,7 @@ export declare const OrgsTeamsRemoveTeamMember403: Schema.Struct<{
1984
2241
  readonly status: Schema.Number;
1985
2242
  readonly detail: Schema.String;
1986
2243
  readonly instance: Schema.optionalKey<Schema.String>;
1987
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
2244
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
1988
2245
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1989
2246
  readonly requiredScope: Schema.String;
1990
2247
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -2062,7 +2319,7 @@ export declare const OrgsTeamsChangeTeamMemberRole403: Schema.Struct<{
2062
2319
  readonly status: Schema.Number;
2063
2320
  readonly detail: Schema.String;
2064
2321
  readonly instance: Schema.optionalKey<Schema.String>;
2065
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
2322
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
2066
2323
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2067
2324
  readonly requiredScope: Schema.String;
2068
2325
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -2113,7 +2370,7 @@ export declare const ExtensionsListByOwner200: Schema.Struct<{
2113
2370
  readonly extensions: Schema.$Array<Schema.Struct<{
2114
2371
  readonly name: Schema.String;
2115
2372
  readonly owner: Schema.String;
2116
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
2373
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
2117
2374
  readonly latestVersion: Schema.String;
2118
2375
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2119
2376
  readonly repository: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
@@ -2170,7 +2427,7 @@ export declare const ExtensionsListByType200: Schema.Struct<{
2170
2427
  readonly extensions: Schema.$Array<Schema.Struct<{
2171
2428
  readonly name: Schema.String;
2172
2429
  readonly owner: Schema.String;
2173
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
2430
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
2174
2431
  readonly latestVersion: Schema.String;
2175
2432
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2176
2433
  readonly repository: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
@@ -2226,7 +2483,7 @@ export type ExtensionsGet200 = {
2226
2483
  export declare const ExtensionsGet200: Schema.Struct<{
2227
2484
  readonly name: Schema.String;
2228
2485
  readonly owner: Schema.String;
2229
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
2486
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
2230
2487
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2231
2488
  readonly repository: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2232
2489
  readonly url: Schema.String;
@@ -2300,7 +2557,7 @@ export type ExtensionsUpdateVisibility200 = {
2300
2557
  export declare const ExtensionsUpdateVisibility200: Schema.Struct<{
2301
2558
  readonly id: Schema.String;
2302
2559
  readonly owner: Schema.String;
2303
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
2560
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
2304
2561
  readonly name: Schema.String;
2305
2562
  readonly visibility: Schema.String;
2306
2563
  readonly updatedAt: Schema.String;
@@ -2356,7 +2613,7 @@ export declare const ExtensionsUpdateVisibility403: Schema.Union<readonly [Schem
2356
2613
  readonly status: Schema.Number;
2357
2614
  readonly detail: Schema.String;
2358
2615
  readonly instance: Schema.optionalKey<Schema.String>;
2359
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
2616
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
2360
2617
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2361
2618
  readonly requiredScope: Schema.String;
2362
2619
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -2378,7 +2635,7 @@ export declare const ExtensionsUpdateVisibility403: Schema.Union<readonly [Schem
2378
2635
  readonly status: Schema.Number;
2379
2636
  readonly detail: Schema.String;
2380
2637
  readonly instance: Schema.optionalKey<Schema.String>;
2381
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
2638
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
2382
2639
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2383
2640
  readonly requiredScope: Schema.String;
2384
2641
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -2449,7 +2706,7 @@ export type ExtensionsGetVersion200 = {
2449
2706
  export declare const ExtensionsGetVersion200: Schema.Struct<{
2450
2707
  readonly name: Schema.String;
2451
2708
  readonly owner: Schema.String;
2452
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
2709
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
2453
2710
  readonly version: Schema.String;
2454
2711
  readonly status: Schema.Literals<readonly ["pending", "available", "failed"]>;
2455
2712
  readonly published: Schema.String;
@@ -2525,7 +2782,7 @@ export type ExtensionsPublishVersion201 = {
2525
2782
  };
2526
2783
  export declare const ExtensionsPublishVersion201: Schema.Struct<{
2527
2784
  readonly owner: Schema.String;
2528
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
2785
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
2529
2786
  readonly name: Schema.String;
2530
2787
  readonly version: Schema.String;
2531
2788
  readonly integrity: Schema.String;
@@ -2584,7 +2841,7 @@ export declare const ExtensionsPublishVersion403: Schema.Union<readonly [Schema.
2584
2841
  readonly status: Schema.Number;
2585
2842
  readonly detail: Schema.String;
2586
2843
  readonly instance: Schema.optionalKey<Schema.String>;
2587
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
2844
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
2588
2845
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2589
2846
  readonly requiredScope: Schema.String;
2590
2847
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -2606,7 +2863,7 @@ export declare const ExtensionsPublishVersion403: Schema.Union<readonly [Schema.
2606
2863
  readonly status: Schema.Number;
2607
2864
  readonly detail: Schema.String;
2608
2865
  readonly instance: Schema.optionalKey<Schema.String>;
2609
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
2866
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
2610
2867
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2611
2868
  readonly requiredScope: Schema.String;
2612
2869
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -2712,7 +2969,7 @@ export declare const ExtensionsPublishVersion422: Schema.Union<readonly [Schema.
2712
2969
  readonly error: Schema.Literal<"extension_lint_failed">;
2713
2970
  readonly identity: Schema.Struct<{
2714
2971
  readonly owner: Schema.String;
2715
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
2972
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
2716
2973
  readonly name: Schema.String;
2717
2974
  readonly version: Schema.String;
2718
2975
  }>;
@@ -2743,7 +3000,7 @@ export declare const ExtensionsPublishVersion422: Schema.Union<readonly [Schema.
2743
3000
  readonly error: Schema.Literal<"extension_identity_mismatch">;
2744
3001
  readonly identity: Schema.Struct<{
2745
3002
  readonly owner: Schema.String;
2746
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
3003
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
2747
3004
  readonly name: Schema.String;
2748
3005
  readonly version: Schema.String;
2749
3006
  }>;
@@ -2835,7 +3092,7 @@ export declare const ExtensionsDeleteVersion403: Schema.Struct<{
2835
3092
  readonly status: Schema.Number;
2836
3093
  readonly detail: Schema.String;
2837
3094
  readonly instance: Schema.optionalKey<Schema.String>;
2838
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
3095
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
2839
3096
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2840
3097
  readonly requiredScope: Schema.String;
2841
3098
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -2922,7 +3179,7 @@ export type ExtensionsDeprecate200 = {
2922
3179
  };
2923
3180
  export declare const ExtensionsDeprecate200: Schema.Struct<{
2924
3181
  readonly owner: Schema.String;
2925
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
3182
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
2926
3183
  readonly name: Schema.String;
2927
3184
  readonly deprecatedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
2928
3185
  readonly deprecationNotice: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -2961,7 +3218,7 @@ export declare const ExtensionsDeprecate403: Schema.Struct<{
2961
3218
  readonly status: Schema.Number;
2962
3219
  readonly detail: Schema.String;
2963
3220
  readonly instance: Schema.optionalKey<Schema.String>;
2964
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
3221
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
2965
3222
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
2966
3223
  readonly requiredScope: Schema.String;
2967
3224
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3002,7 +3259,7 @@ export type ExtensionsUndeprecate200 = {
3002
3259
  };
3003
3260
  export declare const ExtensionsUndeprecate200: Schema.Struct<{
3004
3261
  readonly owner: Schema.String;
3005
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
3262
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
3006
3263
  readonly name: Schema.String;
3007
3264
  readonly deprecatedAt: Schema.Null;
3008
3265
  readonly deprecationNotice: Schema.Null;
@@ -3041,7 +3298,7 @@ export declare const ExtensionsUndeprecate403: Schema.Struct<{
3041
3298
  readonly status: Schema.Number;
3042
3299
  readonly detail: Schema.String;
3043
3300
  readonly instance: Schema.optionalKey<Schema.String>;
3044
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
3301
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3045
3302
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3046
3303
  readonly requiredScope: Schema.String;
3047
3304
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3083,7 +3340,7 @@ export type ExtensionsYankVersion200 = {
3083
3340
  };
3084
3341
  export declare const ExtensionsYankVersion200: Schema.Struct<{
3085
3342
  readonly owner: Schema.String;
3086
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
3343
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
3087
3344
  readonly name: Schema.String;
3088
3345
  readonly version: Schema.String;
3089
3346
  readonly yankedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -3135,7 +3392,7 @@ export declare const ExtensionsYankVersion403: Schema.Struct<{
3135
3392
  readonly status: Schema.Number;
3136
3393
  readonly detail: Schema.String;
3137
3394
  readonly instance: Schema.optionalKey<Schema.String>;
3138
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
3395
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3139
3396
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3140
3397
  readonly requiredScope: Schema.String;
3141
3398
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3177,7 +3434,7 @@ export type ExtensionsUnyankVersion200 = {
3177
3434
  };
3178
3435
  export declare const ExtensionsUnyankVersion200: Schema.Struct<{
3179
3436
  readonly owner: Schema.String;
3180
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
3437
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
3181
3438
  readonly name: Schema.String;
3182
3439
  readonly version: Schema.String;
3183
3440
  readonly yankedAt: Schema.Null;
@@ -3229,7 +3486,7 @@ export declare const ExtensionsUnyankVersion403: Schema.Struct<{
3229
3486
  readonly status: Schema.Number;
3230
3487
  readonly detail: Schema.String;
3231
3488
  readonly instance: Schema.optionalKey<Schema.String>;
3232
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
3489
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3233
3490
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3234
3491
  readonly requiredScope: Schema.String;
3235
3492
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3261,24 +3518,38 @@ export declare const ExtensionsUnyankVersion404: Schema.Struct<{
3261
3518
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3262
3519
  }>>;
3263
3520
  }>;
3264
- export type CollaboratorsListCollaborators200 = {
3265
- readonly collaborators: ReadonlyArray<{
3266
- readonly userId: UserId;
3267
- readonly role: string;
3268
- readonly grantedBy: UserId | null;
3269
- readonly createdAt: string;
3270
- }>;
3521
+ export type LibrariesListLibraries200 = {
3522
+ readonly libraries: ReadonlyArray<Library>;
3271
3523
  };
3272
- export declare const CollaboratorsListCollaborators200: Schema.Struct<{
3273
- readonly collaborators: Schema.$Array<Schema.Struct<{
3274
- readonly userId: Schema.String;
3275
- readonly role: Schema.String;
3276
- readonly grantedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
3524
+ export declare const LibrariesListLibraries200: Schema.Struct<{
3525
+ readonly libraries: Schema.$Array<Schema.Struct<{
3526
+ readonly id: Schema.String;
3527
+ readonly owner: Schema.String;
3528
+ readonly name: Schema.String;
3529
+ readonly title: Schema.String;
3530
+ readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
3531
+ readonly visibility: Schema.Literals<readonly ["public", "internal", "private"]>;
3532
+ readonly maintainer: Schema.Union<readonly [Schema.Struct<{
3533
+ readonly kind: Schema.Literal<"user">;
3534
+ readonly userId: Schema.String;
3535
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3536
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
3537
+ }>, Schema.Struct<{
3538
+ readonly kind: Schema.Literal<"team">;
3539
+ readonly teamId: Schema.String;
3540
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3541
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
3542
+ }>, Schema.Struct<{
3543
+ readonly kind: Schema.Literal<"none">;
3544
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3545
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
3546
+ }>]>;
3277
3547
  readonly createdAt: Schema.String;
3548
+ readonly updatedAt: Schema.String;
3278
3549
  }>>;
3279
3550
  }>;
3280
- export type CollaboratorsListCollaborators400 = DecodeErrorResponse;
3281
- export declare const CollaboratorsListCollaborators400: Schema.Struct<{
3551
+ export type LibrariesListLibraries400 = DecodeErrorResponse;
3552
+ export declare const LibrariesListLibraries400: Schema.Struct<{
3282
3553
  readonly kind: Schema.Literal<"DecodeErrorResponse">;
3283
3554
  readonly type: Schema.String;
3284
3555
  readonly title: Schema.String;
@@ -3287,8 +3558,8 @@ export declare const CollaboratorsListCollaborators400: Schema.Struct<{
3287
3558
  readonly instance: Schema.optionalKey<Schema.String>;
3288
3559
  readonly code: Schema.String;
3289
3560
  }>;
3290
- export type CollaboratorsListCollaborators401 = ProblemDetails;
3291
- export declare const CollaboratorsListCollaborators401: Schema.Struct<{
3561
+ export type LibrariesListLibraries404 = ProblemDetails;
3562
+ export declare const LibrariesListLibraries404: Schema.Struct<{
3292
3563
  readonly type: Schema.String;
3293
3564
  readonly title: Schema.String;
3294
3565
  readonly status: Schema.Number;
@@ -3303,15 +3574,88 @@ export declare const CollaboratorsListCollaborators401: Schema.Struct<{
3303
3574
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3304
3575
  }>>;
3305
3576
  }>;
3306
- export type CollaboratorsListCollaborators403 = ForbiddenError | ForbiddenError;
3307
- export declare const CollaboratorsListCollaborators403: Schema.Union<readonly [Schema.Struct<{
3577
+ export type LibrariesCreateLibraryRequestJson = CreateLibraryBody;
3578
+ export declare const LibrariesCreateLibraryRequestJson: Schema.Struct<{
3579
+ readonly name: Schema.String;
3580
+ readonly title: Schema.String;
3581
+ readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
3582
+ readonly visibility: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["public", "internal", "private"]>, Schema.Null]>>;
3583
+ }>;
3584
+ export type LibrariesCreateLibrary201 = CreatedLibrary;
3585
+ export declare const LibrariesCreateLibrary201: Schema.Struct<{
3586
+ readonly id: Schema.String;
3587
+ readonly owner: Schema.String;
3588
+ readonly name: Schema.String;
3589
+ readonly title: Schema.String;
3590
+ readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
3591
+ readonly visibility: Schema.Literals<readonly ["public", "internal", "private"]>;
3592
+ readonly maintainer: Schema.Union<readonly [Schema.Struct<{
3593
+ readonly kind: Schema.Literal<"user">;
3594
+ readonly userId: Schema.String;
3595
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3596
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
3597
+ }>, Schema.Struct<{
3598
+ readonly kind: Schema.Literal<"team">;
3599
+ readonly teamId: Schema.String;
3600
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3601
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
3602
+ }>, Schema.Struct<{
3603
+ readonly kind: Schema.Literal<"none">;
3604
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3605
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
3606
+ }>]>;
3607
+ readonly createdAt: Schema.String;
3608
+ readonly updatedAt: Schema.String;
3609
+ }>;
3610
+ export type LibrariesCreateLibrary400 = ProblemDetails | DecodeErrorResponse;
3611
+ export declare const LibrariesCreateLibrary400: Schema.Union<readonly [Schema.Struct<{
3612
+ readonly type: Schema.String;
3613
+ readonly title: Schema.String;
3614
+ readonly status: Schema.Number;
3615
+ readonly detail: Schema.String;
3616
+ readonly instance: Schema.optionalKey<Schema.String>;
3617
+ readonly code: Schema.String;
3618
+ readonly details: Schema.optionalKey<Schema.Struct<{
3619
+ readonly retryable: Schema.Boolean;
3620
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3621
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3622
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3623
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3624
+ }>>;
3625
+ }>, Schema.Struct<{
3626
+ readonly kind: Schema.Literal<"DecodeErrorResponse">;
3627
+ readonly type: Schema.String;
3628
+ readonly title: Schema.String;
3629
+ readonly status: Schema.Number;
3630
+ readonly detail: Schema.String;
3631
+ readonly instance: Schema.optionalKey<Schema.String>;
3632
+ readonly code: Schema.String;
3633
+ }>]>;
3634
+ export type LibrariesCreateLibrary401 = ProblemDetails;
3635
+ export declare const LibrariesCreateLibrary401: Schema.Struct<{
3636
+ readonly type: Schema.String;
3637
+ readonly title: Schema.String;
3638
+ readonly status: Schema.Number;
3639
+ readonly detail: Schema.String;
3640
+ readonly instance: Schema.optionalKey<Schema.String>;
3641
+ readonly code: Schema.String;
3642
+ readonly details: Schema.optionalKey<Schema.Struct<{
3643
+ readonly retryable: Schema.Boolean;
3644
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3645
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3646
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3647
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3648
+ }>>;
3649
+ }>;
3650
+ export type LibrariesCreateLibrary403 = ForbiddenError | ForbiddenError;
3651
+ export declare const LibrariesCreateLibrary403: Schema.Union<readonly [Schema.Struct<{
3308
3652
  readonly kind: Schema.Literal<"ForbiddenError">;
3309
3653
  readonly type: Schema.String;
3310
3654
  readonly title: Schema.String;
3311
3655
  readonly status: Schema.Number;
3312
3656
  readonly detail: Schema.String;
3313
3657
  readonly instance: Schema.optionalKey<Schema.String>;
3314
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
3658
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3315
3659
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3316
3660
  readonly requiredScope: Schema.String;
3317
3661
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3333,7 +3677,7 @@ export declare const CollaboratorsListCollaborators403: Schema.Union<readonly [S
3333
3677
  readonly status: Schema.Number;
3334
3678
  readonly detail: Schema.String;
3335
3679
  readonly instance: Schema.optionalKey<Schema.String>;
3336
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
3680
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3337
3681
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3338
3682
  readonly requiredScope: Schema.String;
3339
3683
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3349,8 +3693,8 @@ export declare const CollaboratorsListCollaborators403: Schema.Union<readonly [S
3349
3693
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3350
3694
  }>]>>;
3351
3695
  }>]>;
3352
- export type CollaboratorsListCollaborators404 = ProblemDetails;
3353
- export declare const CollaboratorsListCollaborators404: Schema.Struct<{
3696
+ export type LibrariesCreateLibrary404 = ProblemDetails;
3697
+ export declare const LibrariesCreateLibrary404: Schema.Struct<{
3354
3698
  readonly type: Schema.String;
3355
3699
  readonly title: Schema.String;
3356
3700
  readonly status: Schema.Number;
@@ -3365,24 +3709,1564 @@ export declare const CollaboratorsListCollaborators404: Schema.Struct<{
3365
3709
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3366
3710
  }>>;
3367
3711
  }>;
3368
- export type CollaboratorsUpsertCollaboratorRequestJson = PutCollaboratorBody;
3369
- export declare const CollaboratorsUpsertCollaboratorRequestJson: Schema.Struct<{
3370
- readonly role: Schema.Literals<readonly ["write", "read"]>;
3712
+ export type LibrariesCreateLibrary409 = ProblemDetails;
3713
+ export declare const LibrariesCreateLibrary409: Schema.Struct<{
3714
+ readonly type: Schema.String;
3715
+ readonly title: Schema.String;
3716
+ readonly status: Schema.Number;
3717
+ readonly detail: Schema.String;
3718
+ readonly instance: Schema.optionalKey<Schema.String>;
3719
+ readonly code: Schema.String;
3720
+ readonly details: Schema.optionalKey<Schema.Struct<{
3721
+ readonly retryable: Schema.Boolean;
3722
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3723
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3724
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3725
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3726
+ }>>;
3371
3727
  }>;
3372
- export type CollaboratorsUpsertCollaborator200 = {
3728
+ export type LibrariesCreateLibrary422 = ProblemDetails;
3729
+ export declare const LibrariesCreateLibrary422: Schema.Struct<{
3730
+ readonly type: Schema.String;
3731
+ readonly title: Schema.String;
3732
+ readonly status: Schema.Number;
3733
+ readonly detail: Schema.String;
3734
+ readonly instance: Schema.optionalKey<Schema.String>;
3735
+ readonly code: Schema.String;
3736
+ readonly details: Schema.optionalKey<Schema.Struct<{
3737
+ readonly retryable: Schema.Boolean;
3738
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3739
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3740
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3741
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3742
+ }>>;
3743
+ }>;
3744
+ export type LibrariesGetLibrary200 = LibraryDetail;
3745
+ export declare const LibrariesGetLibrary200: Schema.Struct<{
3746
+ readonly library: Schema.Struct<{
3747
+ readonly id: Schema.String;
3748
+ readonly owner: Schema.String;
3749
+ readonly name: Schema.String;
3750
+ readonly title: Schema.String;
3751
+ readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
3752
+ readonly visibility: Schema.Literals<readonly ["public", "internal", "private"]>;
3753
+ readonly maintainer: Schema.Union<readonly [Schema.Struct<{
3754
+ readonly kind: Schema.Literal<"user">;
3755
+ readonly userId: Schema.String;
3756
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3757
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
3758
+ }>, Schema.Struct<{
3759
+ readonly kind: Schema.Literal<"team">;
3760
+ readonly teamId: Schema.String;
3761
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3762
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
3763
+ }>, Schema.Struct<{
3764
+ readonly kind: Schema.Literal<"none">;
3765
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3766
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
3767
+ }>]>;
3768
+ readonly createdAt: Schema.String;
3769
+ readonly updatedAt: Schema.String;
3770
+ }>;
3771
+ readonly members: Schema.$Array<Schema.Struct<{
3772
+ readonly id: Schema.String;
3773
+ readonly libraryId: Schema.String;
3774
+ readonly extensionId: Schema.String;
3775
+ readonly extensionOwner: Schema.String;
3776
+ readonly extensionType: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
3777
+ readonly extensionName: Schema.String;
3778
+ readonly addedAt: Schema.String;
3779
+ }>>;
3780
+ readonly hiddenMemberCount: Schema.Number;
3781
+ }>;
3782
+ export type LibrariesGetLibrary400 = DecodeErrorResponse;
3783
+ export declare const LibrariesGetLibrary400: Schema.Struct<{
3784
+ readonly kind: Schema.Literal<"DecodeErrorResponse">;
3785
+ readonly type: Schema.String;
3786
+ readonly title: Schema.String;
3787
+ readonly status: Schema.Number;
3788
+ readonly detail: Schema.String;
3789
+ readonly instance: Schema.optionalKey<Schema.String>;
3790
+ readonly code: Schema.String;
3791
+ }>;
3792
+ export type LibrariesGetLibrary404 = ProblemDetails;
3793
+ export declare const LibrariesGetLibrary404: Schema.Struct<{
3794
+ readonly type: Schema.String;
3795
+ readonly title: Schema.String;
3796
+ readonly status: Schema.Number;
3797
+ readonly detail: Schema.String;
3798
+ readonly instance: Schema.optionalKey<Schema.String>;
3799
+ readonly code: Schema.String;
3800
+ readonly details: Schema.optionalKey<Schema.Struct<{
3801
+ readonly retryable: Schema.Boolean;
3802
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3803
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3804
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3805
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3806
+ }>>;
3807
+ }>;
3808
+ export type LibrariesGetLibrary422 = ProblemDetails;
3809
+ export declare const LibrariesGetLibrary422: Schema.Struct<{
3810
+ readonly type: Schema.String;
3811
+ readonly title: Schema.String;
3812
+ readonly status: Schema.Number;
3813
+ readonly detail: Schema.String;
3814
+ readonly instance: Schema.optionalKey<Schema.String>;
3815
+ readonly code: Schema.String;
3816
+ readonly details: Schema.optionalKey<Schema.Struct<{
3817
+ readonly retryable: Schema.Boolean;
3818
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3819
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3820
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3821
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3822
+ }>>;
3823
+ }>;
3824
+ export type LibrariesDeleteLibrary400 = DecodeErrorResponse;
3825
+ export declare const LibrariesDeleteLibrary400: Schema.Struct<{
3826
+ readonly kind: Schema.Literal<"DecodeErrorResponse">;
3827
+ readonly type: Schema.String;
3828
+ readonly title: Schema.String;
3829
+ readonly status: Schema.Number;
3830
+ readonly detail: Schema.String;
3831
+ readonly instance: Schema.optionalKey<Schema.String>;
3832
+ readonly code: Schema.String;
3833
+ }>;
3834
+ export type LibrariesDeleteLibrary401 = ProblemDetails;
3835
+ export declare const LibrariesDeleteLibrary401: Schema.Struct<{
3836
+ readonly type: Schema.String;
3837
+ readonly title: Schema.String;
3838
+ readonly status: Schema.Number;
3839
+ readonly detail: Schema.String;
3840
+ readonly instance: Schema.optionalKey<Schema.String>;
3841
+ readonly code: Schema.String;
3842
+ readonly details: Schema.optionalKey<Schema.Struct<{
3843
+ readonly retryable: Schema.Boolean;
3844
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3845
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3846
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3847
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3848
+ }>>;
3849
+ }>;
3850
+ export type LibrariesDeleteLibrary403 = ForbiddenError | ForbiddenError;
3851
+ export declare const LibrariesDeleteLibrary403: Schema.Union<readonly [Schema.Struct<{
3852
+ readonly kind: Schema.Literal<"ForbiddenError">;
3853
+ readonly type: Schema.String;
3854
+ readonly title: Schema.String;
3855
+ readonly status: Schema.Number;
3856
+ readonly detail: Schema.String;
3857
+ readonly instance: Schema.optionalKey<Schema.String>;
3858
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3859
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3860
+ readonly requiredScope: Schema.String;
3861
+ readonly grantedScopes: Schema.$Array<Schema.String>;
3862
+ }>, Schema.Struct<{
3863
+ readonly requiredScope: Schema.String;
3864
+ readonly tokenScopes: Schema.$Array<Schema.String>;
3865
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
3866
+ }>, Schema.Struct<{
3867
+ readonly retryable: Schema.Boolean;
3868
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3869
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3870
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3871
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3872
+ }>]>>;
3873
+ }>, Schema.Struct<{
3874
+ readonly kind: Schema.Literal<"ForbiddenError">;
3875
+ readonly type: Schema.String;
3876
+ readonly title: Schema.String;
3877
+ readonly status: Schema.Number;
3878
+ readonly detail: Schema.String;
3879
+ readonly instance: Schema.optionalKey<Schema.String>;
3880
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3881
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3882
+ readonly requiredScope: Schema.String;
3883
+ readonly grantedScopes: Schema.$Array<Schema.String>;
3884
+ }>, Schema.Struct<{
3885
+ readonly requiredScope: Schema.String;
3886
+ readonly tokenScopes: Schema.$Array<Schema.String>;
3887
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
3888
+ }>, Schema.Struct<{
3889
+ readonly retryable: Schema.Boolean;
3890
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3891
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3892
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3893
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3894
+ }>]>>;
3895
+ }>]>;
3896
+ export type LibrariesDeleteLibrary404 = ProblemDetails;
3897
+ export declare const LibrariesDeleteLibrary404: Schema.Struct<{
3898
+ readonly type: Schema.String;
3899
+ readonly title: Schema.String;
3900
+ readonly status: Schema.Number;
3901
+ readonly detail: Schema.String;
3902
+ readonly instance: Schema.optionalKey<Schema.String>;
3903
+ readonly code: Schema.String;
3904
+ readonly details: Schema.optionalKey<Schema.Struct<{
3905
+ readonly retryable: Schema.Boolean;
3906
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3907
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3908
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3909
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3910
+ }>>;
3911
+ }>;
3912
+ export type LibrariesDeleteLibrary422 = ProblemDetails;
3913
+ export declare const LibrariesDeleteLibrary422: Schema.Struct<{
3914
+ readonly type: Schema.String;
3915
+ readonly title: Schema.String;
3916
+ readonly status: Schema.Number;
3917
+ readonly detail: Schema.String;
3918
+ readonly instance: Schema.optionalKey<Schema.String>;
3919
+ readonly code: Schema.String;
3920
+ readonly details: Schema.optionalKey<Schema.Struct<{
3921
+ readonly retryable: Schema.Boolean;
3922
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3923
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3924
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3925
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3926
+ }>>;
3927
+ }>;
3928
+ export type LibrariesUpdateLibraryRequestJson = UpdateLibraryBody;
3929
+ export declare const LibrariesUpdateLibraryRequestJson: Schema.Struct<{
3930
+ readonly title: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3931
+ readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
3932
+ }>;
3933
+ export type LibrariesUpdateLibrary200 = Library;
3934
+ export declare const LibrariesUpdateLibrary200: Schema.Struct<{
3935
+ readonly id: Schema.String;
3936
+ readonly owner: Schema.String;
3937
+ readonly name: Schema.String;
3938
+ readonly title: Schema.String;
3939
+ readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
3940
+ readonly visibility: Schema.Literals<readonly ["public", "internal", "private"]>;
3941
+ readonly maintainer: Schema.Union<readonly [Schema.Struct<{
3942
+ readonly kind: Schema.Literal<"user">;
3943
+ readonly userId: Schema.String;
3944
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3945
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
3946
+ }>, Schema.Struct<{
3947
+ readonly kind: Schema.Literal<"team">;
3948
+ readonly teamId: Schema.String;
3949
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3950
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
3951
+ }>, Schema.Struct<{
3952
+ readonly kind: Schema.Literal<"none">;
3953
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3954
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
3955
+ }>]>;
3956
+ readonly createdAt: Schema.String;
3957
+ readonly updatedAt: Schema.String;
3958
+ }>;
3959
+ export type LibrariesUpdateLibrary400 = ProblemDetails | DecodeErrorResponse;
3960
+ export declare const LibrariesUpdateLibrary400: Schema.Union<readonly [Schema.Struct<{
3961
+ readonly type: Schema.String;
3962
+ readonly title: Schema.String;
3963
+ readonly status: Schema.Number;
3964
+ readonly detail: Schema.String;
3965
+ readonly instance: Schema.optionalKey<Schema.String>;
3966
+ readonly code: Schema.String;
3967
+ readonly details: Schema.optionalKey<Schema.Struct<{
3968
+ readonly retryable: Schema.Boolean;
3969
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3970
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3971
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3972
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3973
+ }>>;
3974
+ }>, Schema.Struct<{
3975
+ readonly kind: Schema.Literal<"DecodeErrorResponse">;
3976
+ readonly type: Schema.String;
3977
+ readonly title: Schema.String;
3978
+ readonly status: Schema.Number;
3979
+ readonly detail: Schema.String;
3980
+ readonly instance: Schema.optionalKey<Schema.String>;
3981
+ readonly code: Schema.String;
3982
+ }>]>;
3983
+ export type LibrariesUpdateLibrary401 = ProblemDetails;
3984
+ export declare const LibrariesUpdateLibrary401: Schema.Struct<{
3985
+ readonly type: Schema.String;
3986
+ readonly title: Schema.String;
3987
+ readonly status: Schema.Number;
3988
+ readonly detail: Schema.String;
3989
+ readonly instance: Schema.optionalKey<Schema.String>;
3990
+ readonly code: Schema.String;
3991
+ readonly details: Schema.optionalKey<Schema.Struct<{
3992
+ readonly retryable: Schema.Boolean;
3993
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
3994
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
3995
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
3996
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3997
+ }>>;
3998
+ }>;
3999
+ export type LibrariesUpdateLibrary403 = ForbiddenError | ForbiddenError;
4000
+ export declare const LibrariesUpdateLibrary403: Schema.Union<readonly [Schema.Struct<{
4001
+ readonly kind: Schema.Literal<"ForbiddenError">;
4002
+ readonly type: Schema.String;
4003
+ readonly title: Schema.String;
4004
+ readonly status: Schema.Number;
4005
+ readonly detail: Schema.String;
4006
+ readonly instance: Schema.optionalKey<Schema.String>;
4007
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4008
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4009
+ readonly requiredScope: Schema.String;
4010
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4011
+ }>, Schema.Struct<{
4012
+ readonly requiredScope: Schema.String;
4013
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4014
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4015
+ }>, Schema.Struct<{
4016
+ readonly retryable: Schema.Boolean;
4017
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4018
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4019
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4020
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4021
+ }>]>>;
4022
+ }>, Schema.Struct<{
4023
+ readonly kind: Schema.Literal<"ForbiddenError">;
4024
+ readonly type: Schema.String;
4025
+ readonly title: Schema.String;
4026
+ readonly status: Schema.Number;
4027
+ readonly detail: Schema.String;
4028
+ readonly instance: Schema.optionalKey<Schema.String>;
4029
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4030
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4031
+ readonly requiredScope: Schema.String;
4032
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4033
+ }>, Schema.Struct<{
4034
+ readonly requiredScope: Schema.String;
4035
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4036
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4037
+ }>, Schema.Struct<{
4038
+ readonly retryable: Schema.Boolean;
4039
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4040
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4041
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4042
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4043
+ }>]>>;
4044
+ }>]>;
4045
+ export type LibrariesUpdateLibrary404 = ProblemDetails;
4046
+ export declare const LibrariesUpdateLibrary404: Schema.Struct<{
4047
+ readonly type: Schema.String;
4048
+ readonly title: Schema.String;
4049
+ readonly status: Schema.Number;
4050
+ readonly detail: Schema.String;
4051
+ readonly instance: Schema.optionalKey<Schema.String>;
4052
+ readonly code: Schema.String;
4053
+ readonly details: Schema.optionalKey<Schema.Struct<{
4054
+ readonly retryable: Schema.Boolean;
4055
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4056
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4057
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4058
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4059
+ }>>;
4060
+ }>;
4061
+ export type LibrariesUpdateLibrary422 = ProblemDetails;
4062
+ export declare const LibrariesUpdateLibrary422: Schema.Struct<{
4063
+ readonly type: Schema.String;
4064
+ readonly title: Schema.String;
4065
+ readonly status: Schema.Number;
4066
+ readonly detail: Schema.String;
4067
+ readonly instance: Schema.optionalKey<Schema.String>;
4068
+ readonly code: Schema.String;
4069
+ readonly details: Schema.optionalKey<Schema.Struct<{
4070
+ readonly retryable: Schema.Boolean;
4071
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4072
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4073
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4074
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4075
+ }>>;
4076
+ }>;
4077
+ export type LibrariesSetLibraryVisibilityRequestJson = PatchLibraryVisibilityBody;
4078
+ export declare const LibrariesSetLibraryVisibilityRequestJson: Schema.Struct<{
4079
+ readonly visibility: Schema.Literals<readonly ["public", "internal", "private"]>;
4080
+ }>;
4081
+ export type LibrariesSetLibraryVisibility200 = Library;
4082
+ export declare const LibrariesSetLibraryVisibility200: Schema.Struct<{
4083
+ readonly id: Schema.String;
4084
+ readonly owner: Schema.String;
4085
+ readonly name: Schema.String;
4086
+ readonly title: Schema.String;
4087
+ readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
4088
+ readonly visibility: Schema.Literals<readonly ["public", "internal", "private"]>;
4089
+ readonly maintainer: Schema.Union<readonly [Schema.Struct<{
4090
+ readonly kind: Schema.Literal<"user">;
4091
+ readonly userId: Schema.String;
4092
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
4093
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
4094
+ }>, Schema.Struct<{
4095
+ readonly kind: Schema.Literal<"team">;
4096
+ readonly teamId: Schema.String;
4097
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
4098
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
4099
+ }>, Schema.Struct<{
4100
+ readonly kind: Schema.Literal<"none">;
4101
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
4102
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
4103
+ }>]>;
4104
+ readonly createdAt: Schema.String;
4105
+ readonly updatedAt: Schema.String;
4106
+ }>;
4107
+ export type LibrariesSetLibraryVisibility400 = DecodeErrorResponse;
4108
+ export declare const LibrariesSetLibraryVisibility400: Schema.Struct<{
4109
+ readonly kind: Schema.Literal<"DecodeErrorResponse">;
4110
+ readonly type: Schema.String;
4111
+ readonly title: Schema.String;
4112
+ readonly status: Schema.Number;
4113
+ readonly detail: Schema.String;
4114
+ readonly instance: Schema.optionalKey<Schema.String>;
4115
+ readonly code: Schema.String;
4116
+ }>;
4117
+ export type LibrariesSetLibraryVisibility401 = ProblemDetails;
4118
+ export declare const LibrariesSetLibraryVisibility401: Schema.Struct<{
4119
+ readonly type: Schema.String;
4120
+ readonly title: Schema.String;
4121
+ readonly status: Schema.Number;
4122
+ readonly detail: Schema.String;
4123
+ readonly instance: Schema.optionalKey<Schema.String>;
4124
+ readonly code: Schema.String;
4125
+ readonly details: Schema.optionalKey<Schema.Struct<{
4126
+ readonly retryable: Schema.Boolean;
4127
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4128
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4129
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4130
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4131
+ }>>;
4132
+ }>;
4133
+ export type LibrariesSetLibraryVisibility403 = ForbiddenError | ForbiddenError;
4134
+ export declare const LibrariesSetLibraryVisibility403: Schema.Union<readonly [Schema.Struct<{
4135
+ readonly kind: Schema.Literal<"ForbiddenError">;
4136
+ readonly type: Schema.String;
4137
+ readonly title: Schema.String;
4138
+ readonly status: Schema.Number;
4139
+ readonly detail: Schema.String;
4140
+ readonly instance: Schema.optionalKey<Schema.String>;
4141
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4142
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4143
+ readonly requiredScope: Schema.String;
4144
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4145
+ }>, Schema.Struct<{
4146
+ readonly requiredScope: Schema.String;
4147
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4148
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4149
+ }>, Schema.Struct<{
4150
+ readonly retryable: Schema.Boolean;
4151
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4152
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4153
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4154
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4155
+ }>]>>;
4156
+ }>, Schema.Struct<{
4157
+ readonly kind: Schema.Literal<"ForbiddenError">;
4158
+ readonly type: Schema.String;
4159
+ readonly title: Schema.String;
4160
+ readonly status: Schema.Number;
4161
+ readonly detail: Schema.String;
4162
+ readonly instance: Schema.optionalKey<Schema.String>;
4163
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4164
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4165
+ readonly requiredScope: Schema.String;
4166
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4167
+ }>, Schema.Struct<{
4168
+ readonly requiredScope: Schema.String;
4169
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4170
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4171
+ }>, Schema.Struct<{
4172
+ readonly retryable: Schema.Boolean;
4173
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4174
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4175
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4176
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4177
+ }>]>>;
4178
+ }>]>;
4179
+ export type LibrariesSetLibraryVisibility404 = ProblemDetails;
4180
+ export declare const LibrariesSetLibraryVisibility404: Schema.Struct<{
4181
+ readonly type: Schema.String;
4182
+ readonly title: Schema.String;
4183
+ readonly status: Schema.Number;
4184
+ readonly detail: Schema.String;
4185
+ readonly instance: Schema.optionalKey<Schema.String>;
4186
+ readonly code: Schema.String;
4187
+ readonly details: Schema.optionalKey<Schema.Struct<{
4188
+ readonly retryable: Schema.Boolean;
4189
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4190
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4191
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4192
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4193
+ }>>;
4194
+ }>;
4195
+ export type LibrariesSetLibraryVisibility422 = ProblemDetails;
4196
+ export declare const LibrariesSetLibraryVisibility422: Schema.Struct<{
4197
+ readonly type: Schema.String;
4198
+ readonly title: Schema.String;
4199
+ readonly status: Schema.Number;
4200
+ readonly detail: Schema.String;
4201
+ readonly instance: Schema.optionalKey<Schema.String>;
4202
+ readonly code: Schema.String;
4203
+ readonly details: Schema.optionalKey<Schema.Struct<{
4204
+ readonly retryable: Schema.Boolean;
4205
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4206
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4207
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4208
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4209
+ }>>;
4210
+ }>;
4211
+ export type LibrariesSetLibraryMaintainerRequestJson = LibraryMaintainerTarget;
4212
+ export declare const LibrariesSetLibraryMaintainerRequestJson: Schema.Union<readonly [Schema.Struct<{
4213
+ readonly kind: Schema.Literal<"user">;
4214
+ readonly userId: Schema.String;
4215
+ }>, Schema.Struct<{
4216
+ readonly kind: Schema.Literal<"team">;
4217
+ readonly teamId: Schema.String;
4218
+ }>]>;
4219
+ export type LibrariesSetLibraryMaintainer200 = LibraryMaintainer;
4220
+ export declare const LibrariesSetLibraryMaintainer200: Schema.Union<readonly [Schema.Struct<{
4221
+ readonly kind: Schema.Literal<"user">;
4222
+ readonly userId: Schema.String;
4223
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
4224
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
4225
+ }>, Schema.Struct<{
4226
+ readonly kind: Schema.Literal<"team">;
4227
+ readonly teamId: Schema.String;
4228
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
4229
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
4230
+ }>, Schema.Struct<{
4231
+ readonly kind: Schema.Literal<"none">;
4232
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
4233
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
4234
+ }>]>;
4235
+ export type LibrariesSetLibraryMaintainer400 = DecodeErrorResponse;
4236
+ export declare const LibrariesSetLibraryMaintainer400: Schema.Struct<{
4237
+ readonly kind: Schema.Literal<"DecodeErrorResponse">;
4238
+ readonly type: Schema.String;
4239
+ readonly title: Schema.String;
4240
+ readonly status: Schema.Number;
4241
+ readonly detail: Schema.String;
4242
+ readonly instance: Schema.optionalKey<Schema.String>;
4243
+ readonly code: Schema.String;
4244
+ }>;
4245
+ export type LibrariesSetLibraryMaintainer401 = ProblemDetails;
4246
+ export declare const LibrariesSetLibraryMaintainer401: Schema.Struct<{
4247
+ readonly type: Schema.String;
4248
+ readonly title: Schema.String;
4249
+ readonly status: Schema.Number;
4250
+ readonly detail: Schema.String;
4251
+ readonly instance: Schema.optionalKey<Schema.String>;
4252
+ readonly code: Schema.String;
4253
+ readonly details: Schema.optionalKey<Schema.Struct<{
4254
+ readonly retryable: Schema.Boolean;
4255
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4256
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4257
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4258
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4259
+ }>>;
4260
+ }>;
4261
+ export type LibrariesSetLibraryMaintainer403 = ForbiddenError | ForbiddenError;
4262
+ export declare const LibrariesSetLibraryMaintainer403: Schema.Union<readonly [Schema.Struct<{
4263
+ readonly kind: Schema.Literal<"ForbiddenError">;
4264
+ readonly type: Schema.String;
4265
+ readonly title: Schema.String;
4266
+ readonly status: Schema.Number;
4267
+ readonly detail: Schema.String;
4268
+ readonly instance: Schema.optionalKey<Schema.String>;
4269
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4270
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4271
+ readonly requiredScope: Schema.String;
4272
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4273
+ }>, Schema.Struct<{
4274
+ readonly requiredScope: Schema.String;
4275
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4276
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4277
+ }>, Schema.Struct<{
4278
+ readonly retryable: Schema.Boolean;
4279
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4280
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4281
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4282
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4283
+ }>]>>;
4284
+ }>, Schema.Struct<{
4285
+ readonly kind: Schema.Literal<"ForbiddenError">;
4286
+ readonly type: Schema.String;
4287
+ readonly title: Schema.String;
4288
+ readonly status: Schema.Number;
4289
+ readonly detail: Schema.String;
4290
+ readonly instance: Schema.optionalKey<Schema.String>;
4291
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4292
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4293
+ readonly requiredScope: Schema.String;
4294
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4295
+ }>, Schema.Struct<{
4296
+ readonly requiredScope: Schema.String;
4297
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4298
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4299
+ }>, Schema.Struct<{
4300
+ readonly retryable: Schema.Boolean;
4301
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4302
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4303
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4304
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4305
+ }>]>>;
4306
+ }>]>;
4307
+ export type LibrariesSetLibraryMaintainer404 = ProblemDetails;
4308
+ export declare const LibrariesSetLibraryMaintainer404: Schema.Struct<{
4309
+ readonly type: Schema.String;
4310
+ readonly title: Schema.String;
4311
+ readonly status: Schema.Number;
4312
+ readonly detail: Schema.String;
4313
+ readonly instance: Schema.optionalKey<Schema.String>;
4314
+ readonly code: Schema.String;
4315
+ readonly details: Schema.optionalKey<Schema.Struct<{
4316
+ readonly retryable: Schema.Boolean;
4317
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4318
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4319
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4320
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4321
+ }>>;
4322
+ }>;
4323
+ export type LibrariesSetLibraryMaintainer422 = ProblemDetails;
4324
+ export declare const LibrariesSetLibraryMaintainer422: Schema.Struct<{
4325
+ readonly type: Schema.String;
4326
+ readonly title: Schema.String;
4327
+ readonly status: Schema.Number;
4328
+ readonly detail: Schema.String;
4329
+ readonly instance: Schema.optionalKey<Schema.String>;
4330
+ readonly code: Schema.String;
4331
+ readonly details: Schema.optionalKey<Schema.Struct<{
4332
+ readonly retryable: Schema.Boolean;
4333
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4334
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4335
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4336
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4337
+ }>>;
4338
+ }>;
4339
+ export type LibrariesClearLibraryMaintainer200 = LibraryMaintainer;
4340
+ export declare const LibrariesClearLibraryMaintainer200: Schema.Union<readonly [Schema.Struct<{
4341
+ readonly kind: Schema.Literal<"user">;
4342
+ readonly userId: Schema.String;
4343
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
4344
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
4345
+ }>, Schema.Struct<{
4346
+ readonly kind: Schema.Literal<"team">;
4347
+ readonly teamId: Schema.String;
4348
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
4349
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
4350
+ }>, Schema.Struct<{
4351
+ readonly kind: Schema.Literal<"none">;
4352
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
4353
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
4354
+ }>]>;
4355
+ export type LibrariesClearLibraryMaintainer400 = DecodeErrorResponse;
4356
+ export declare const LibrariesClearLibraryMaintainer400: Schema.Struct<{
4357
+ readonly kind: Schema.Literal<"DecodeErrorResponse">;
4358
+ readonly type: Schema.String;
4359
+ readonly title: Schema.String;
4360
+ readonly status: Schema.Number;
4361
+ readonly detail: Schema.String;
4362
+ readonly instance: Schema.optionalKey<Schema.String>;
4363
+ readonly code: Schema.String;
4364
+ }>;
4365
+ export type LibrariesClearLibraryMaintainer401 = ProblemDetails;
4366
+ export declare const LibrariesClearLibraryMaintainer401: Schema.Struct<{
4367
+ readonly type: Schema.String;
4368
+ readonly title: Schema.String;
4369
+ readonly status: Schema.Number;
4370
+ readonly detail: Schema.String;
4371
+ readonly instance: Schema.optionalKey<Schema.String>;
4372
+ readonly code: Schema.String;
4373
+ readonly details: Schema.optionalKey<Schema.Struct<{
4374
+ readonly retryable: Schema.Boolean;
4375
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4376
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4377
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4378
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4379
+ }>>;
4380
+ }>;
4381
+ export type LibrariesClearLibraryMaintainer403 = ForbiddenError | ForbiddenError;
4382
+ export declare const LibrariesClearLibraryMaintainer403: Schema.Union<readonly [Schema.Struct<{
4383
+ readonly kind: Schema.Literal<"ForbiddenError">;
4384
+ readonly type: Schema.String;
4385
+ readonly title: Schema.String;
4386
+ readonly status: Schema.Number;
4387
+ readonly detail: Schema.String;
4388
+ readonly instance: Schema.optionalKey<Schema.String>;
4389
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4390
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4391
+ readonly requiredScope: Schema.String;
4392
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4393
+ }>, Schema.Struct<{
4394
+ readonly requiredScope: Schema.String;
4395
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4396
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4397
+ }>, Schema.Struct<{
4398
+ readonly retryable: Schema.Boolean;
4399
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4400
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4401
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4402
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4403
+ }>]>>;
4404
+ }>, Schema.Struct<{
4405
+ readonly kind: Schema.Literal<"ForbiddenError">;
4406
+ readonly type: Schema.String;
4407
+ readonly title: Schema.String;
4408
+ readonly status: Schema.Number;
4409
+ readonly detail: Schema.String;
4410
+ readonly instance: Schema.optionalKey<Schema.String>;
4411
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4412
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4413
+ readonly requiredScope: Schema.String;
4414
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4415
+ }>, Schema.Struct<{
4416
+ readonly requiredScope: Schema.String;
4417
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4418
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4419
+ }>, Schema.Struct<{
4420
+ readonly retryable: Schema.Boolean;
4421
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4422
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4423
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4424
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4425
+ }>]>>;
4426
+ }>]>;
4427
+ export type LibrariesClearLibraryMaintainer404 = ProblemDetails;
4428
+ export declare const LibrariesClearLibraryMaintainer404: Schema.Struct<{
4429
+ readonly type: Schema.String;
4430
+ readonly title: Schema.String;
4431
+ readonly status: Schema.Number;
4432
+ readonly detail: Schema.String;
4433
+ readonly instance: Schema.optionalKey<Schema.String>;
4434
+ readonly code: Schema.String;
4435
+ readonly details: Schema.optionalKey<Schema.Struct<{
4436
+ readonly retryable: Schema.Boolean;
4437
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4438
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4439
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4440
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4441
+ }>>;
4442
+ }>;
4443
+ export type LibrariesClearLibraryMaintainer422 = ProblemDetails;
4444
+ export declare const LibrariesClearLibraryMaintainer422: Schema.Struct<{
4445
+ readonly type: Schema.String;
4446
+ readonly title: Schema.String;
4447
+ readonly status: Schema.Number;
4448
+ readonly detail: Schema.String;
4449
+ readonly instance: Schema.optionalKey<Schema.String>;
4450
+ readonly code: Schema.String;
4451
+ readonly details: Schema.optionalKey<Schema.Struct<{
4452
+ readonly retryable: Schema.Boolean;
4453
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4454
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4455
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4456
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4457
+ }>>;
4458
+ }>;
4459
+ export type LibrariesAddLibraryMember200 = LibraryMember;
4460
+ export declare const LibrariesAddLibraryMember200: Schema.Struct<{
4461
+ readonly id: Schema.String;
4462
+ readonly libraryId: Schema.String;
4463
+ readonly extensionId: Schema.String;
4464
+ readonly extensionOwner: Schema.String;
4465
+ readonly extensionType: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
4466
+ readonly extensionName: Schema.String;
4467
+ readonly addedAt: Schema.String;
4468
+ }>;
4469
+ export type LibrariesAddLibraryMember400 = DecodeErrorResponse;
4470
+ export declare const LibrariesAddLibraryMember400: Schema.Struct<{
4471
+ readonly kind: Schema.Literal<"DecodeErrorResponse">;
4472
+ readonly type: Schema.String;
4473
+ readonly title: Schema.String;
4474
+ readonly status: Schema.Number;
4475
+ readonly detail: Schema.String;
4476
+ readonly instance: Schema.optionalKey<Schema.String>;
4477
+ readonly code: Schema.String;
4478
+ }>;
4479
+ export type LibrariesAddLibraryMember401 = ProblemDetails;
4480
+ export declare const LibrariesAddLibraryMember401: Schema.Struct<{
4481
+ readonly type: Schema.String;
4482
+ readonly title: Schema.String;
4483
+ readonly status: Schema.Number;
4484
+ readonly detail: Schema.String;
4485
+ readonly instance: Schema.optionalKey<Schema.String>;
4486
+ readonly code: Schema.String;
4487
+ readonly details: Schema.optionalKey<Schema.Struct<{
4488
+ readonly retryable: Schema.Boolean;
4489
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4490
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4491
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4492
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4493
+ }>>;
4494
+ }>;
4495
+ export type LibrariesAddLibraryMember403 = ForbiddenError | ForbiddenError;
4496
+ export declare const LibrariesAddLibraryMember403: Schema.Union<readonly [Schema.Struct<{
4497
+ readonly kind: Schema.Literal<"ForbiddenError">;
4498
+ readonly type: Schema.String;
4499
+ readonly title: Schema.String;
4500
+ readonly status: Schema.Number;
4501
+ readonly detail: Schema.String;
4502
+ readonly instance: Schema.optionalKey<Schema.String>;
4503
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4504
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4505
+ readonly requiredScope: Schema.String;
4506
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4507
+ }>, Schema.Struct<{
4508
+ readonly requiredScope: Schema.String;
4509
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4510
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4511
+ }>, Schema.Struct<{
4512
+ readonly retryable: Schema.Boolean;
4513
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4514
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4515
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4516
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4517
+ }>]>>;
4518
+ }>, Schema.Struct<{
4519
+ readonly kind: Schema.Literal<"ForbiddenError">;
4520
+ readonly type: Schema.String;
4521
+ readonly title: Schema.String;
4522
+ readonly status: Schema.Number;
4523
+ readonly detail: Schema.String;
4524
+ readonly instance: Schema.optionalKey<Schema.String>;
4525
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4526
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4527
+ readonly requiredScope: Schema.String;
4528
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4529
+ }>, Schema.Struct<{
4530
+ readonly requiredScope: Schema.String;
4531
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4532
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4533
+ }>, Schema.Struct<{
4534
+ readonly retryable: Schema.Boolean;
4535
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4536
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4537
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4538
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4539
+ }>]>>;
4540
+ }>]>;
4541
+ export type LibrariesAddLibraryMember404 = ProblemDetails;
4542
+ export declare const LibrariesAddLibraryMember404: Schema.Struct<{
4543
+ readonly type: Schema.String;
4544
+ readonly title: Schema.String;
4545
+ readonly status: Schema.Number;
4546
+ readonly detail: Schema.String;
4547
+ readonly instance: Schema.optionalKey<Schema.String>;
4548
+ readonly code: Schema.String;
4549
+ readonly details: Schema.optionalKey<Schema.Struct<{
4550
+ readonly retryable: Schema.Boolean;
4551
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4552
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4553
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4554
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4555
+ }>>;
4556
+ }>;
4557
+ export type LibrariesAddLibraryMember409 = ProblemDetails;
4558
+ export declare const LibrariesAddLibraryMember409: Schema.Struct<{
4559
+ readonly type: Schema.String;
4560
+ readonly title: Schema.String;
4561
+ readonly status: Schema.Number;
4562
+ readonly detail: Schema.String;
4563
+ readonly instance: Schema.optionalKey<Schema.String>;
4564
+ readonly code: Schema.String;
4565
+ readonly details: Schema.optionalKey<Schema.Struct<{
4566
+ readonly retryable: Schema.Boolean;
4567
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4568
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4569
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4570
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4571
+ }>>;
4572
+ }>;
4573
+ export type LibrariesAddLibraryMember422 = ProblemDetails;
4574
+ export declare const LibrariesAddLibraryMember422: Schema.Struct<{
4575
+ readonly type: Schema.String;
4576
+ readonly title: Schema.String;
4577
+ readonly status: Schema.Number;
4578
+ readonly detail: Schema.String;
4579
+ readonly instance: Schema.optionalKey<Schema.String>;
4580
+ readonly code: Schema.String;
4581
+ readonly details: Schema.optionalKey<Schema.Struct<{
4582
+ readonly retryable: Schema.Boolean;
4583
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4584
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4585
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4586
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4587
+ }>>;
4588
+ }>;
4589
+ export type LibrariesRemoveLibraryMember400 = DecodeErrorResponse;
4590
+ export declare const LibrariesRemoveLibraryMember400: Schema.Struct<{
4591
+ readonly kind: Schema.Literal<"DecodeErrorResponse">;
4592
+ readonly type: Schema.String;
4593
+ readonly title: Schema.String;
4594
+ readonly status: Schema.Number;
4595
+ readonly detail: Schema.String;
4596
+ readonly instance: Schema.optionalKey<Schema.String>;
4597
+ readonly code: Schema.String;
4598
+ }>;
4599
+ export type LibrariesRemoveLibraryMember401 = ProblemDetails;
4600
+ export declare const LibrariesRemoveLibraryMember401: Schema.Struct<{
4601
+ readonly type: Schema.String;
4602
+ readonly title: Schema.String;
4603
+ readonly status: Schema.Number;
4604
+ readonly detail: Schema.String;
4605
+ readonly instance: Schema.optionalKey<Schema.String>;
4606
+ readonly code: Schema.String;
4607
+ readonly details: Schema.optionalKey<Schema.Struct<{
4608
+ readonly retryable: Schema.Boolean;
4609
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4610
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4611
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4612
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4613
+ }>>;
4614
+ }>;
4615
+ export type LibrariesRemoveLibraryMember403 = ForbiddenError | ForbiddenError;
4616
+ export declare const LibrariesRemoveLibraryMember403: Schema.Union<readonly [Schema.Struct<{
4617
+ readonly kind: Schema.Literal<"ForbiddenError">;
4618
+ readonly type: Schema.String;
4619
+ readonly title: Schema.String;
4620
+ readonly status: Schema.Number;
4621
+ readonly detail: Schema.String;
4622
+ readonly instance: Schema.optionalKey<Schema.String>;
4623
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4624
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4625
+ readonly requiredScope: Schema.String;
4626
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4627
+ }>, Schema.Struct<{
4628
+ readonly requiredScope: Schema.String;
4629
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4630
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4631
+ }>, Schema.Struct<{
4632
+ readonly retryable: Schema.Boolean;
4633
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4634
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4635
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4636
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4637
+ }>]>>;
4638
+ }>, Schema.Struct<{
4639
+ readonly kind: Schema.Literal<"ForbiddenError">;
4640
+ readonly type: Schema.String;
4641
+ readonly title: Schema.String;
4642
+ readonly status: Schema.Number;
4643
+ readonly detail: Schema.String;
4644
+ readonly instance: Schema.optionalKey<Schema.String>;
4645
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4646
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4647
+ readonly requiredScope: Schema.String;
4648
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4649
+ }>, Schema.Struct<{
4650
+ readonly requiredScope: Schema.String;
4651
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4652
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4653
+ }>, Schema.Struct<{
4654
+ readonly retryable: Schema.Boolean;
4655
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4656
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4657
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4658
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4659
+ }>]>>;
4660
+ }>]>;
4661
+ export type LibrariesRemoveLibraryMember404 = ProblemDetails;
4662
+ export declare const LibrariesRemoveLibraryMember404: Schema.Struct<{
4663
+ readonly type: Schema.String;
4664
+ readonly title: Schema.String;
4665
+ readonly status: Schema.Number;
4666
+ readonly detail: Schema.String;
4667
+ readonly instance: Schema.optionalKey<Schema.String>;
4668
+ readonly code: Schema.String;
4669
+ readonly details: Schema.optionalKey<Schema.Struct<{
4670
+ readonly retryable: Schema.Boolean;
4671
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4672
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4673
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4674
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4675
+ }>>;
4676
+ }>;
4677
+ export type LibrariesRemoveLibraryMember422 = ProblemDetails;
4678
+ export declare const LibrariesRemoveLibraryMember422: Schema.Struct<{
4679
+ readonly type: Schema.String;
4680
+ readonly title: Schema.String;
4681
+ readonly status: Schema.Number;
4682
+ readonly detail: Schema.String;
4683
+ readonly instance: Schema.optionalKey<Schema.String>;
4684
+ readonly code: Schema.String;
4685
+ readonly details: Schema.optionalKey<Schema.Struct<{
4686
+ readonly retryable: Schema.Boolean;
4687
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4688
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4689
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4690
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4691
+ }>>;
4692
+ }>;
4693
+ export type CollaboratorsListCollaborators200 = {
4694
+ readonly collaborators: ReadonlyArray<{
4695
+ readonly userId: UserId;
4696
+ readonly role: string;
4697
+ readonly grantedBy: UserId | null;
4698
+ readonly createdAt: string;
4699
+ }>;
4700
+ };
4701
+ export declare const CollaboratorsListCollaborators200: Schema.Struct<{
4702
+ readonly collaborators: Schema.$Array<Schema.Struct<{
4703
+ readonly userId: Schema.String;
4704
+ readonly role: Schema.String;
4705
+ readonly grantedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
4706
+ readonly createdAt: Schema.String;
4707
+ }>>;
4708
+ }>;
4709
+ export type CollaboratorsListCollaborators400 = DecodeErrorResponse;
4710
+ export declare const CollaboratorsListCollaborators400: Schema.Struct<{
4711
+ readonly kind: Schema.Literal<"DecodeErrorResponse">;
4712
+ readonly type: Schema.String;
4713
+ readonly title: Schema.String;
4714
+ readonly status: Schema.Number;
4715
+ readonly detail: Schema.String;
4716
+ readonly instance: Schema.optionalKey<Schema.String>;
4717
+ readonly code: Schema.String;
4718
+ }>;
4719
+ export type CollaboratorsListCollaborators401 = ProblemDetails;
4720
+ export declare const CollaboratorsListCollaborators401: Schema.Struct<{
4721
+ readonly type: Schema.String;
4722
+ readonly title: Schema.String;
4723
+ readonly status: Schema.Number;
4724
+ readonly detail: Schema.String;
4725
+ readonly instance: Schema.optionalKey<Schema.String>;
4726
+ readonly code: Schema.String;
4727
+ readonly details: Schema.optionalKey<Schema.Struct<{
4728
+ readonly retryable: Schema.Boolean;
4729
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4730
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4731
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4732
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4733
+ }>>;
4734
+ }>;
4735
+ export type CollaboratorsListCollaborators403 = ForbiddenError | ForbiddenError;
4736
+ export declare const CollaboratorsListCollaborators403: Schema.Union<readonly [Schema.Struct<{
4737
+ readonly kind: Schema.Literal<"ForbiddenError">;
4738
+ readonly type: Schema.String;
4739
+ readonly title: Schema.String;
4740
+ readonly status: Schema.Number;
4741
+ readonly detail: Schema.String;
4742
+ readonly instance: Schema.optionalKey<Schema.String>;
4743
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4744
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4745
+ readonly requiredScope: Schema.String;
4746
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4747
+ }>, Schema.Struct<{
4748
+ readonly requiredScope: Schema.String;
4749
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4750
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4751
+ }>, Schema.Struct<{
4752
+ readonly retryable: Schema.Boolean;
4753
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4754
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4755
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4756
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4757
+ }>]>>;
4758
+ }>, Schema.Struct<{
4759
+ readonly kind: Schema.Literal<"ForbiddenError">;
4760
+ readonly type: Schema.String;
4761
+ readonly title: Schema.String;
4762
+ readonly status: Schema.Number;
4763
+ readonly detail: Schema.String;
4764
+ readonly instance: Schema.optionalKey<Schema.String>;
4765
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4766
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4767
+ readonly requiredScope: Schema.String;
4768
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4769
+ }>, Schema.Struct<{
4770
+ readonly requiredScope: Schema.String;
4771
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4772
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4773
+ }>, Schema.Struct<{
4774
+ readonly retryable: Schema.Boolean;
4775
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4776
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4777
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4778
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4779
+ }>]>>;
4780
+ }>]>;
4781
+ export type CollaboratorsListCollaborators404 = ProblemDetails;
4782
+ export declare const CollaboratorsListCollaborators404: Schema.Struct<{
4783
+ readonly type: Schema.String;
4784
+ readonly title: Schema.String;
4785
+ readonly status: Schema.Number;
4786
+ readonly detail: Schema.String;
4787
+ readonly instance: Schema.optionalKey<Schema.String>;
4788
+ readonly code: Schema.String;
4789
+ readonly details: Schema.optionalKey<Schema.Struct<{
4790
+ readonly retryable: Schema.Boolean;
4791
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4792
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4793
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4794
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4795
+ }>>;
4796
+ }>;
4797
+ export type CollaboratorsUpsertCollaboratorRequestJson = PutCollaboratorBody;
4798
+ export declare const CollaboratorsUpsertCollaboratorRequestJson: Schema.Struct<{
4799
+ readonly role: Schema.Literals<readonly ["write", "read"]>;
4800
+ }>;
4801
+ export type CollaboratorsUpsertCollaborator200 = {
4802
+ readonly userId: UserId;
4803
+ readonly role: string;
4804
+ readonly grantedBy: UserId | null;
4805
+ readonly createdAt: string;
4806
+ };
4807
+ export declare const CollaboratorsUpsertCollaborator200: Schema.Struct<{
4808
+ readonly userId: Schema.String;
4809
+ readonly role: Schema.String;
4810
+ readonly grantedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
4811
+ readonly createdAt: Schema.String;
4812
+ }>;
4813
+ export type CollaboratorsUpsertCollaborator400 = ProblemDetails | DecodeErrorResponse;
4814
+ export declare const CollaboratorsUpsertCollaborator400: Schema.Union<readonly [Schema.Struct<{
4815
+ readonly type: Schema.String;
4816
+ readonly title: Schema.String;
4817
+ readonly status: Schema.Number;
4818
+ readonly detail: Schema.String;
4819
+ readonly instance: Schema.optionalKey<Schema.String>;
4820
+ readonly code: Schema.String;
4821
+ readonly details: Schema.optionalKey<Schema.Struct<{
4822
+ readonly retryable: Schema.Boolean;
4823
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4824
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4825
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4826
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4827
+ }>>;
4828
+ }>, Schema.Struct<{
4829
+ readonly kind: Schema.Literal<"DecodeErrorResponse">;
4830
+ readonly type: Schema.String;
4831
+ readonly title: Schema.String;
4832
+ readonly status: Schema.Number;
4833
+ readonly detail: Schema.String;
4834
+ readonly instance: Schema.optionalKey<Schema.String>;
4835
+ readonly code: Schema.String;
4836
+ }>]>;
4837
+ export type CollaboratorsUpsertCollaborator401 = ProblemDetails;
4838
+ export declare const CollaboratorsUpsertCollaborator401: Schema.Struct<{
4839
+ readonly type: Schema.String;
4840
+ readonly title: Schema.String;
4841
+ readonly status: Schema.Number;
4842
+ readonly detail: Schema.String;
4843
+ readonly instance: Schema.optionalKey<Schema.String>;
4844
+ readonly code: Schema.String;
4845
+ readonly details: Schema.optionalKey<Schema.Struct<{
4846
+ readonly retryable: Schema.Boolean;
4847
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4848
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4849
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4850
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4851
+ }>>;
4852
+ }>;
4853
+ export type CollaboratorsUpsertCollaborator403 = ForbiddenError | ForbiddenError;
4854
+ export declare const CollaboratorsUpsertCollaborator403: Schema.Union<readonly [Schema.Struct<{
4855
+ readonly kind: Schema.Literal<"ForbiddenError">;
4856
+ readonly type: Schema.String;
4857
+ readonly title: Schema.String;
4858
+ readonly status: Schema.Number;
4859
+ readonly detail: Schema.String;
4860
+ readonly instance: Schema.optionalKey<Schema.String>;
4861
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4862
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4863
+ readonly requiredScope: Schema.String;
4864
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4865
+ }>, Schema.Struct<{
4866
+ readonly requiredScope: Schema.String;
4867
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4868
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4869
+ }>, Schema.Struct<{
4870
+ readonly retryable: Schema.Boolean;
4871
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4872
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4873
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4874
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4875
+ }>]>>;
4876
+ }>, Schema.Struct<{
4877
+ readonly kind: Schema.Literal<"ForbiddenError">;
4878
+ readonly type: Schema.String;
4879
+ readonly title: Schema.String;
4880
+ readonly status: Schema.Number;
4881
+ readonly detail: Schema.String;
4882
+ readonly instance: Schema.optionalKey<Schema.String>;
4883
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4884
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4885
+ readonly requiredScope: Schema.String;
4886
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4887
+ }>, Schema.Struct<{
4888
+ readonly requiredScope: Schema.String;
4889
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4890
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4891
+ }>, Schema.Struct<{
4892
+ readonly retryable: Schema.Boolean;
4893
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4894
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4895
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4896
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4897
+ }>]>>;
4898
+ }>]>;
4899
+ export type CollaboratorsUpsertCollaborator404 = ProblemDetails;
4900
+ export declare const CollaboratorsUpsertCollaborator404: Schema.Struct<{
4901
+ readonly type: Schema.String;
4902
+ readonly title: Schema.String;
4903
+ readonly status: Schema.Number;
4904
+ readonly detail: Schema.String;
4905
+ readonly instance: Schema.optionalKey<Schema.String>;
4906
+ readonly code: Schema.String;
4907
+ readonly details: Schema.optionalKey<Schema.Struct<{
4908
+ readonly retryable: Schema.Boolean;
4909
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4910
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4911
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4912
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4913
+ }>>;
4914
+ }>;
4915
+ export type CollaboratorsDeleteCollaborator400 = DecodeErrorResponse;
4916
+ export declare const CollaboratorsDeleteCollaborator400: Schema.Struct<{
4917
+ readonly kind: Schema.Literal<"DecodeErrorResponse">;
4918
+ readonly type: Schema.String;
4919
+ readonly title: Schema.String;
4920
+ readonly status: Schema.Number;
4921
+ readonly detail: Schema.String;
4922
+ readonly instance: Schema.optionalKey<Schema.String>;
4923
+ readonly code: Schema.String;
4924
+ }>;
4925
+ export type CollaboratorsDeleteCollaborator401 = ProblemDetails;
4926
+ export declare const CollaboratorsDeleteCollaborator401: Schema.Struct<{
4927
+ readonly type: Schema.String;
4928
+ readonly title: Schema.String;
4929
+ readonly status: Schema.Number;
4930
+ readonly detail: Schema.String;
4931
+ readonly instance: Schema.optionalKey<Schema.String>;
4932
+ readonly code: Schema.String;
4933
+ readonly details: Schema.optionalKey<Schema.Struct<{
4934
+ readonly retryable: Schema.Boolean;
4935
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4936
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4937
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4938
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4939
+ }>>;
4940
+ }>;
4941
+ export type CollaboratorsDeleteCollaborator403 = ForbiddenError | ForbiddenError;
4942
+ export declare const CollaboratorsDeleteCollaborator403: Schema.Union<readonly [Schema.Struct<{
4943
+ readonly kind: Schema.Literal<"ForbiddenError">;
4944
+ readonly type: Schema.String;
4945
+ readonly title: Schema.String;
4946
+ readonly status: Schema.Number;
4947
+ readonly detail: Schema.String;
4948
+ readonly instance: Schema.optionalKey<Schema.String>;
4949
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4950
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4951
+ readonly requiredScope: Schema.String;
4952
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4953
+ }>, Schema.Struct<{
4954
+ readonly requiredScope: Schema.String;
4955
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4956
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4957
+ }>, Schema.Struct<{
4958
+ readonly retryable: Schema.Boolean;
4959
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4960
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4961
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4962
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4963
+ }>]>>;
4964
+ }>, Schema.Struct<{
4965
+ readonly kind: Schema.Literal<"ForbiddenError">;
4966
+ readonly type: Schema.String;
4967
+ readonly title: Schema.String;
4968
+ readonly status: Schema.Number;
4969
+ readonly detail: Schema.String;
4970
+ readonly instance: Schema.optionalKey<Schema.String>;
4971
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4972
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4973
+ readonly requiredScope: Schema.String;
4974
+ readonly grantedScopes: Schema.$Array<Schema.String>;
4975
+ }>, Schema.Struct<{
4976
+ readonly requiredScope: Schema.String;
4977
+ readonly tokenScopes: Schema.$Array<Schema.String>;
4978
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
4979
+ }>, Schema.Struct<{
4980
+ readonly retryable: Schema.Boolean;
4981
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4982
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4983
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
4984
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4985
+ }>]>>;
4986
+ }>]>;
4987
+ export type CollaboratorsDeleteCollaborator404 = ProblemDetails;
4988
+ export declare const CollaboratorsDeleteCollaborator404: Schema.Struct<{
4989
+ readonly type: Schema.String;
4990
+ readonly title: Schema.String;
4991
+ readonly status: Schema.Number;
4992
+ readonly detail: Schema.String;
4993
+ readonly instance: Schema.optionalKey<Schema.String>;
4994
+ readonly code: Schema.String;
4995
+ readonly details: Schema.optionalKey<Schema.Struct<{
4996
+ readonly retryable: Schema.Boolean;
4997
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
4998
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
4999
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5000
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5001
+ }>>;
5002
+ }>;
5003
+ export type CollaboratorsDeleteCollaborator409 = ProblemDetails;
5004
+ export declare const CollaboratorsDeleteCollaborator409: Schema.Struct<{
5005
+ readonly type: Schema.String;
5006
+ readonly title: Schema.String;
5007
+ readonly status: Schema.Number;
5008
+ readonly detail: Schema.String;
5009
+ readonly instance: Schema.optionalKey<Schema.String>;
5010
+ readonly code: Schema.String;
5011
+ readonly details: Schema.optionalKey<Schema.Struct<{
5012
+ readonly retryable: Schema.Boolean;
5013
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5014
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5015
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5016
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5017
+ }>>;
5018
+ }>;
5019
+ export type TeamGrantsListExtensionGrants200 = ExtensionGrantsResponse;
5020
+ export declare const TeamGrantsListExtensionGrants200: Schema.Struct<{
5021
+ readonly grants: Schema.$Array<Schema.Struct<{
5022
+ readonly subject: Schema.Union<readonly [Schema.Struct<{
5023
+ readonly kind: Schema.Literal<"user">;
5024
+ readonly userId: Schema.String;
5025
+ }>, Schema.Struct<{
5026
+ readonly kind: Schema.Literal<"team">;
5027
+ readonly teamId: Schema.String;
5028
+ }>]>;
5029
+ readonly role: Schema.Literals<readonly ["read", "write"]>;
5030
+ readonly grantedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
5031
+ readonly createdAt: Schema.String;
5032
+ }>>;
5033
+ }>;
5034
+ export type TeamGrantsListExtensionGrants400 = DecodeErrorResponse;
5035
+ export declare const TeamGrantsListExtensionGrants400: Schema.Struct<{
5036
+ readonly kind: Schema.Literal<"DecodeErrorResponse">;
5037
+ readonly type: Schema.String;
5038
+ readonly title: Schema.String;
5039
+ readonly status: Schema.Number;
5040
+ readonly detail: Schema.String;
5041
+ readonly instance: Schema.optionalKey<Schema.String>;
5042
+ readonly code: Schema.String;
5043
+ }>;
5044
+ export type TeamGrantsListExtensionGrants401 = ProblemDetails;
5045
+ export declare const TeamGrantsListExtensionGrants401: Schema.Struct<{
5046
+ readonly type: Schema.String;
5047
+ readonly title: Schema.String;
5048
+ readonly status: Schema.Number;
5049
+ readonly detail: Schema.String;
5050
+ readonly instance: Schema.optionalKey<Schema.String>;
5051
+ readonly code: Schema.String;
5052
+ readonly details: Schema.optionalKey<Schema.Struct<{
5053
+ readonly retryable: Schema.Boolean;
5054
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5055
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5056
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5057
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5058
+ }>>;
5059
+ }>;
5060
+ export type TeamGrantsListExtensionGrants403 = ForbiddenError | ForbiddenError;
5061
+ export declare const TeamGrantsListExtensionGrants403: Schema.Union<readonly [Schema.Struct<{
5062
+ readonly kind: Schema.Literal<"ForbiddenError">;
5063
+ readonly type: Schema.String;
5064
+ readonly title: Schema.String;
5065
+ readonly status: Schema.Number;
5066
+ readonly detail: Schema.String;
5067
+ readonly instance: Schema.optionalKey<Schema.String>;
5068
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
5069
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5070
+ readonly requiredScope: Schema.String;
5071
+ readonly grantedScopes: Schema.$Array<Schema.String>;
5072
+ }>, Schema.Struct<{
5073
+ readonly requiredScope: Schema.String;
5074
+ readonly tokenScopes: Schema.$Array<Schema.String>;
5075
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
5076
+ }>, Schema.Struct<{
5077
+ readonly retryable: Schema.Boolean;
5078
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5079
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5080
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5081
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5082
+ }>]>>;
5083
+ }>, Schema.Struct<{
5084
+ readonly kind: Schema.Literal<"ForbiddenError">;
5085
+ readonly type: Schema.String;
5086
+ readonly title: Schema.String;
5087
+ readonly status: Schema.Number;
5088
+ readonly detail: Schema.String;
5089
+ readonly instance: Schema.optionalKey<Schema.String>;
5090
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
5091
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5092
+ readonly requiredScope: Schema.String;
5093
+ readonly grantedScopes: Schema.$Array<Schema.String>;
5094
+ }>, Schema.Struct<{
5095
+ readonly requiredScope: Schema.String;
5096
+ readonly tokenScopes: Schema.$Array<Schema.String>;
5097
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
5098
+ }>, Schema.Struct<{
5099
+ readonly retryable: Schema.Boolean;
5100
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5101
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5102
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5103
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5104
+ }>]>>;
5105
+ }>]>;
5106
+ export type TeamGrantsListExtensionGrants404 = ProblemDetails;
5107
+ export declare const TeamGrantsListExtensionGrants404: Schema.Struct<{
5108
+ readonly type: Schema.String;
5109
+ readonly title: Schema.String;
5110
+ readonly status: Schema.Number;
5111
+ readonly detail: Schema.String;
5112
+ readonly instance: Schema.optionalKey<Schema.String>;
5113
+ readonly code: Schema.String;
5114
+ readonly details: Schema.optionalKey<Schema.Struct<{
5115
+ readonly retryable: Schema.Boolean;
5116
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5117
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5118
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5119
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5120
+ }>>;
5121
+ }>;
5122
+ export type TeamGrantsUpsertTeamExtensionGrantRequestJson = UpsertTeamGrantBody;
5123
+ export declare const TeamGrantsUpsertTeamExtensionGrantRequestJson: Schema.Struct<{
5124
+ readonly teamId: Schema.String;
5125
+ readonly role: Schema.Literals<readonly ["read", "write"]>;
5126
+ }>;
5127
+ export type TeamGrantsUpsertTeamExtensionGrant200 = TeamGrant;
5128
+ export declare const TeamGrantsUpsertTeamExtensionGrant200: Schema.Struct<{
5129
+ readonly teamId: Schema.String;
5130
+ readonly role: Schema.Literals<readonly ["read", "write"]>;
5131
+ readonly grantedBy: Schema.String;
5132
+ readonly grantedAt: Schema.String;
5133
+ }>;
5134
+ export type TeamGrantsUpsertTeamExtensionGrant400 = ProblemDetails | DecodeErrorResponse;
5135
+ export declare const TeamGrantsUpsertTeamExtensionGrant400: Schema.Union<readonly [Schema.Struct<{
5136
+ readonly type: Schema.String;
5137
+ readonly title: Schema.String;
5138
+ readonly status: Schema.Number;
5139
+ readonly detail: Schema.String;
5140
+ readonly instance: Schema.optionalKey<Schema.String>;
5141
+ readonly code: Schema.String;
5142
+ readonly details: Schema.optionalKey<Schema.Struct<{
5143
+ readonly retryable: Schema.Boolean;
5144
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5145
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5146
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5147
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5148
+ }>>;
5149
+ }>, Schema.Struct<{
5150
+ readonly kind: Schema.Literal<"DecodeErrorResponse">;
5151
+ readonly type: Schema.String;
5152
+ readonly title: Schema.String;
5153
+ readonly status: Schema.Number;
5154
+ readonly detail: Schema.String;
5155
+ readonly instance: Schema.optionalKey<Schema.String>;
5156
+ readonly code: Schema.String;
5157
+ }>]>;
5158
+ export type TeamGrantsUpsertTeamExtensionGrant401 = ProblemDetails;
5159
+ export declare const TeamGrantsUpsertTeamExtensionGrant401: Schema.Struct<{
5160
+ readonly type: Schema.String;
5161
+ readonly title: Schema.String;
5162
+ readonly status: Schema.Number;
5163
+ readonly detail: Schema.String;
5164
+ readonly instance: Schema.optionalKey<Schema.String>;
5165
+ readonly code: Schema.String;
5166
+ readonly details: Schema.optionalKey<Schema.Struct<{
5167
+ readonly retryable: Schema.Boolean;
5168
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5169
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5170
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5171
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5172
+ }>>;
5173
+ }>;
5174
+ export type TeamGrantsUpsertTeamExtensionGrant403 = ForbiddenError | ForbiddenError;
5175
+ export declare const TeamGrantsUpsertTeamExtensionGrant403: Schema.Union<readonly [Schema.Struct<{
5176
+ readonly kind: Schema.Literal<"ForbiddenError">;
5177
+ readonly type: Schema.String;
5178
+ readonly title: Schema.String;
5179
+ readonly status: Schema.Number;
5180
+ readonly detail: Schema.String;
5181
+ readonly instance: Schema.optionalKey<Schema.String>;
5182
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
5183
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5184
+ readonly requiredScope: Schema.String;
5185
+ readonly grantedScopes: Schema.$Array<Schema.String>;
5186
+ }>, Schema.Struct<{
5187
+ readonly requiredScope: Schema.String;
5188
+ readonly tokenScopes: Schema.$Array<Schema.String>;
5189
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
5190
+ }>, Schema.Struct<{
5191
+ readonly retryable: Schema.Boolean;
5192
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5193
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5194
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5195
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5196
+ }>]>>;
5197
+ }>, Schema.Struct<{
5198
+ readonly kind: Schema.Literal<"ForbiddenError">;
5199
+ readonly type: Schema.String;
5200
+ readonly title: Schema.String;
5201
+ readonly status: Schema.Number;
5202
+ readonly detail: Schema.String;
5203
+ readonly instance: Schema.optionalKey<Schema.String>;
5204
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
5205
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5206
+ readonly requiredScope: Schema.String;
5207
+ readonly grantedScopes: Schema.$Array<Schema.String>;
5208
+ }>, Schema.Struct<{
5209
+ readonly requiredScope: Schema.String;
5210
+ readonly tokenScopes: Schema.$Array<Schema.String>;
5211
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
5212
+ }>, Schema.Struct<{
5213
+ readonly retryable: Schema.Boolean;
5214
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5215
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5216
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5217
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5218
+ }>]>>;
5219
+ }>]>;
5220
+ export type TeamGrantsUpsertTeamExtensionGrant404 = ProblemDetails;
5221
+ export declare const TeamGrantsUpsertTeamExtensionGrant404: Schema.Struct<{
5222
+ readonly type: Schema.String;
5223
+ readonly title: Schema.String;
5224
+ readonly status: Schema.Number;
5225
+ readonly detail: Schema.String;
5226
+ readonly instance: Schema.optionalKey<Schema.String>;
5227
+ readonly code: Schema.String;
5228
+ readonly details: Schema.optionalKey<Schema.Struct<{
5229
+ readonly retryable: Schema.Boolean;
5230
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5231
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5232
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5233
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5234
+ }>>;
5235
+ }>;
5236
+ export type TeamGrantsUpsertTeamExtensionGrant422 = ProblemDetails;
5237
+ export declare const TeamGrantsUpsertTeamExtensionGrant422: Schema.Struct<{
5238
+ readonly type: Schema.String;
5239
+ readonly title: Schema.String;
5240
+ readonly status: Schema.Number;
5241
+ readonly detail: Schema.String;
5242
+ readonly instance: Schema.optionalKey<Schema.String>;
5243
+ readonly code: Schema.String;
5244
+ readonly details: Schema.optionalKey<Schema.Struct<{
5245
+ readonly retryable: Schema.Boolean;
5246
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5247
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5248
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5249
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5250
+ }>>;
5251
+ }>;
5252
+ export type TeamGrantsUpsertUserExtensionGrantRequestJson = UpsertGrantBody;
5253
+ export declare const TeamGrantsUpsertUserExtensionGrantRequestJson: Schema.Struct<{
5254
+ readonly role: Schema.Literals<readonly ["read", "write"]>;
5255
+ }>;
5256
+ export type TeamGrantsUpsertUserExtensionGrant200 = {
3373
5257
  readonly userId: UserId;
3374
5258
  readonly role: string;
3375
5259
  readonly grantedBy: UserId | null;
3376
5260
  readonly createdAt: string;
3377
5261
  };
3378
- export declare const CollaboratorsUpsertCollaborator200: Schema.Struct<{
5262
+ export declare const TeamGrantsUpsertUserExtensionGrant200: Schema.Struct<{
3379
5263
  readonly userId: Schema.String;
3380
5264
  readonly role: Schema.String;
3381
5265
  readonly grantedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
3382
5266
  readonly createdAt: Schema.String;
3383
5267
  }>;
3384
- export type CollaboratorsUpsertCollaborator400 = ProblemDetails | DecodeErrorResponse;
3385
- export declare const CollaboratorsUpsertCollaborator400: Schema.Union<readonly [Schema.Struct<{
5268
+ export type TeamGrantsUpsertUserExtensionGrant400 = ProblemDetails | DecodeErrorResponse;
5269
+ export declare const TeamGrantsUpsertUserExtensionGrant400: Schema.Union<readonly [Schema.Struct<{
3386
5270
  readonly type: Schema.String;
3387
5271
  readonly title: Schema.String;
3388
5272
  readonly status: Schema.Number;
@@ -3405,8 +5289,8 @@ export declare const CollaboratorsUpsertCollaborator400: Schema.Union<readonly [
3405
5289
  readonly instance: Schema.optionalKey<Schema.String>;
3406
5290
  readonly code: Schema.String;
3407
5291
  }>]>;
3408
- export type CollaboratorsUpsertCollaborator401 = ProblemDetails;
3409
- export declare const CollaboratorsUpsertCollaborator401: Schema.Struct<{
5292
+ export type TeamGrantsUpsertUserExtensionGrant401 = ProblemDetails;
5293
+ export declare const TeamGrantsUpsertUserExtensionGrant401: Schema.Struct<{
3410
5294
  readonly type: Schema.String;
3411
5295
  readonly title: Schema.String;
3412
5296
  readonly status: Schema.Number;
@@ -3421,15 +5305,15 @@ export declare const CollaboratorsUpsertCollaborator401: Schema.Struct<{
3421
5305
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3422
5306
  }>>;
3423
5307
  }>;
3424
- export type CollaboratorsUpsertCollaborator403 = ForbiddenError | ForbiddenError;
3425
- export declare const CollaboratorsUpsertCollaborator403: Schema.Union<readonly [Schema.Struct<{
5308
+ export type TeamGrantsUpsertUserExtensionGrant403 = ForbiddenError | ForbiddenError;
5309
+ export declare const TeamGrantsUpsertUserExtensionGrant403: Schema.Union<readonly [Schema.Struct<{
3426
5310
  readonly kind: Schema.Literal<"ForbiddenError">;
3427
5311
  readonly type: Schema.String;
3428
5312
  readonly title: Schema.String;
3429
5313
  readonly status: Schema.Number;
3430
5314
  readonly detail: Schema.String;
3431
5315
  readonly instance: Schema.optionalKey<Schema.String>;
3432
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
5316
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3433
5317
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3434
5318
  readonly requiredScope: Schema.String;
3435
5319
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3451,7 +5335,7 @@ export declare const CollaboratorsUpsertCollaborator403: Schema.Union<readonly [
3451
5335
  readonly status: Schema.Number;
3452
5336
  readonly detail: Schema.String;
3453
5337
  readonly instance: Schema.optionalKey<Schema.String>;
3454
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
5338
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3455
5339
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3456
5340
  readonly requiredScope: Schema.String;
3457
5341
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3467,8 +5351,8 @@ export declare const CollaboratorsUpsertCollaborator403: Schema.Union<readonly [
3467
5351
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3468
5352
  }>]>>;
3469
5353
  }>]>;
3470
- export type CollaboratorsUpsertCollaborator404 = ProblemDetails;
3471
- export declare const CollaboratorsUpsertCollaborator404: Schema.Struct<{
5354
+ export type TeamGrantsUpsertUserExtensionGrant404 = ProblemDetails;
5355
+ export declare const TeamGrantsUpsertUserExtensionGrant404: Schema.Struct<{
3472
5356
  readonly type: Schema.String;
3473
5357
  readonly title: Schema.String;
3474
5358
  readonly status: Schema.Number;
@@ -3483,8 +5367,8 @@ export declare const CollaboratorsUpsertCollaborator404: Schema.Struct<{
3483
5367
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3484
5368
  }>>;
3485
5369
  }>;
3486
- export type CollaboratorsDeleteCollaborator400 = DecodeErrorResponse;
3487
- export declare const CollaboratorsDeleteCollaborator400: Schema.Struct<{
5370
+ export type TeamGrantsDeleteUserExtensionGrant400 = DecodeErrorResponse;
5371
+ export declare const TeamGrantsDeleteUserExtensionGrant400: Schema.Struct<{
3488
5372
  readonly kind: Schema.Literal<"DecodeErrorResponse">;
3489
5373
  readonly type: Schema.String;
3490
5374
  readonly title: Schema.String;
@@ -3493,8 +5377,8 @@ export declare const CollaboratorsDeleteCollaborator400: Schema.Struct<{
3493
5377
  readonly instance: Schema.optionalKey<Schema.String>;
3494
5378
  readonly code: Schema.String;
3495
5379
  }>;
3496
- export type CollaboratorsDeleteCollaborator401 = ProblemDetails;
3497
- export declare const CollaboratorsDeleteCollaborator401: Schema.Struct<{
5380
+ export type TeamGrantsDeleteUserExtensionGrant401 = ProblemDetails;
5381
+ export declare const TeamGrantsDeleteUserExtensionGrant401: Schema.Struct<{
3498
5382
  readonly type: Schema.String;
3499
5383
  readonly title: Schema.String;
3500
5384
  readonly status: Schema.Number;
@@ -3509,15 +5393,15 @@ export declare const CollaboratorsDeleteCollaborator401: Schema.Struct<{
3509
5393
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3510
5394
  }>>;
3511
5395
  }>;
3512
- export type CollaboratorsDeleteCollaborator403 = ForbiddenError | ForbiddenError;
3513
- export declare const CollaboratorsDeleteCollaborator403: Schema.Union<readonly [Schema.Struct<{
5396
+ export type TeamGrantsDeleteUserExtensionGrant403 = ForbiddenError | ForbiddenError;
5397
+ export declare const TeamGrantsDeleteUserExtensionGrant403: Schema.Union<readonly [Schema.Struct<{
3514
5398
  readonly kind: Schema.Literal<"ForbiddenError">;
3515
5399
  readonly type: Schema.String;
3516
5400
  readonly title: Schema.String;
3517
5401
  readonly status: Schema.Number;
3518
5402
  readonly detail: Schema.String;
3519
5403
  readonly instance: Schema.optionalKey<Schema.String>;
3520
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
5404
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3521
5405
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3522
5406
  readonly requiredScope: Schema.String;
3523
5407
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3539,7 +5423,7 @@ export declare const CollaboratorsDeleteCollaborator403: Schema.Union<readonly [
3539
5423
  readonly status: Schema.Number;
3540
5424
  readonly detail: Schema.String;
3541
5425
  readonly instance: Schema.optionalKey<Schema.String>;
3542
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
5426
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3543
5427
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3544
5428
  readonly requiredScope: Schema.String;
3545
5429
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3555,8 +5439,8 @@ export declare const CollaboratorsDeleteCollaborator403: Schema.Union<readonly [
3555
5439
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3556
5440
  }>]>>;
3557
5441
  }>]>;
3558
- export type CollaboratorsDeleteCollaborator404 = ProblemDetails;
3559
- export declare const CollaboratorsDeleteCollaborator404: Schema.Struct<{
5442
+ export type TeamGrantsDeleteUserExtensionGrant404 = ProblemDetails;
5443
+ export declare const TeamGrantsDeleteUserExtensionGrant404: Schema.Struct<{
3560
5444
  readonly type: Schema.String;
3561
5445
  readonly title: Schema.String;
3562
5446
  readonly status: Schema.Number;
@@ -3571,8 +5455,8 @@ export declare const CollaboratorsDeleteCollaborator404: Schema.Struct<{
3571
5455
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3572
5456
  }>>;
3573
5457
  }>;
3574
- export type CollaboratorsDeleteCollaborator409 = ProblemDetails;
3575
- export declare const CollaboratorsDeleteCollaborator409: Schema.Struct<{
5458
+ export type TeamGrantsDeleteUserExtensionGrant409 = ProblemDetails;
5459
+ export declare const TeamGrantsDeleteUserExtensionGrant409: Schema.Struct<{
3576
5460
  readonly type: Schema.String;
3577
5461
  readonly title: Schema.String;
3578
5462
  readonly status: Schema.Number;
@@ -3587,20 +5471,19 @@ export declare const CollaboratorsDeleteCollaborator409: Schema.Struct<{
3587
5471
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3588
5472
  }>>;
3589
5473
  }>;
3590
- export type TeamGrantsUpsertTeamExtensionGrantRequestJson = UpsertTeamGrantBody;
3591
- export declare const TeamGrantsUpsertTeamExtensionGrantRequestJson: Schema.Struct<{
3592
- readonly teamId: Schema.String;
5474
+ export type TeamGrantsUpsertTeamExtensionGrantByIdRequestJson = UpsertGrantBody;
5475
+ export declare const TeamGrantsUpsertTeamExtensionGrantByIdRequestJson: Schema.Struct<{
3593
5476
  readonly role: Schema.Literals<readonly ["read", "write"]>;
3594
5477
  }>;
3595
- export type TeamGrantsUpsertTeamExtensionGrant200 = TeamGrant;
3596
- export declare const TeamGrantsUpsertTeamExtensionGrant200: Schema.Struct<{
5478
+ export type TeamGrantsUpsertTeamExtensionGrantById200 = TeamGrant;
5479
+ export declare const TeamGrantsUpsertTeamExtensionGrantById200: Schema.Struct<{
3597
5480
  readonly teamId: Schema.String;
3598
5481
  readonly role: Schema.Literals<readonly ["read", "write"]>;
3599
5482
  readonly grantedBy: Schema.String;
3600
5483
  readonly grantedAt: Schema.String;
3601
5484
  }>;
3602
- export type TeamGrantsUpsertTeamExtensionGrant400 = ProblemDetails | DecodeErrorResponse;
3603
- export declare const TeamGrantsUpsertTeamExtensionGrant400: Schema.Union<readonly [Schema.Struct<{
5485
+ export type TeamGrantsUpsertTeamExtensionGrantById400 = ProblemDetails | DecodeErrorResponse;
5486
+ export declare const TeamGrantsUpsertTeamExtensionGrantById400: Schema.Union<readonly [Schema.Struct<{
3604
5487
  readonly type: Schema.String;
3605
5488
  readonly title: Schema.String;
3606
5489
  readonly status: Schema.Number;
@@ -3623,8 +5506,8 @@ export declare const TeamGrantsUpsertTeamExtensionGrant400: Schema.Union<readonl
3623
5506
  readonly instance: Schema.optionalKey<Schema.String>;
3624
5507
  readonly code: Schema.String;
3625
5508
  }>]>;
3626
- export type TeamGrantsUpsertTeamExtensionGrant401 = ProblemDetails;
3627
- export declare const TeamGrantsUpsertTeamExtensionGrant401: Schema.Struct<{
5509
+ export type TeamGrantsUpsertTeamExtensionGrantById401 = ProblemDetails;
5510
+ export declare const TeamGrantsUpsertTeamExtensionGrantById401: Schema.Struct<{
3628
5511
  readonly type: Schema.String;
3629
5512
  readonly title: Schema.String;
3630
5513
  readonly status: Schema.Number;
@@ -3639,15 +5522,15 @@ export declare const TeamGrantsUpsertTeamExtensionGrant401: Schema.Struct<{
3639
5522
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3640
5523
  }>>;
3641
5524
  }>;
3642
- export type TeamGrantsUpsertTeamExtensionGrant403 = ForbiddenError | ForbiddenError;
3643
- export declare const TeamGrantsUpsertTeamExtensionGrant403: Schema.Union<readonly [Schema.Struct<{
5525
+ export type TeamGrantsUpsertTeamExtensionGrantById403 = ForbiddenError | ForbiddenError;
5526
+ export declare const TeamGrantsUpsertTeamExtensionGrantById403: Schema.Union<readonly [Schema.Struct<{
3644
5527
  readonly kind: Schema.Literal<"ForbiddenError">;
3645
5528
  readonly type: Schema.String;
3646
5529
  readonly title: Schema.String;
3647
5530
  readonly status: Schema.Number;
3648
5531
  readonly detail: Schema.String;
3649
5532
  readonly instance: Schema.optionalKey<Schema.String>;
3650
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
5533
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3651
5534
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3652
5535
  readonly requiredScope: Schema.String;
3653
5536
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3669,7 +5552,7 @@ export declare const TeamGrantsUpsertTeamExtensionGrant403: Schema.Union<readonl
3669
5552
  readonly status: Schema.Number;
3670
5553
  readonly detail: Schema.String;
3671
5554
  readonly instance: Schema.optionalKey<Schema.String>;
3672
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
5555
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3673
5556
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3674
5557
  readonly requiredScope: Schema.String;
3675
5558
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3685,8 +5568,8 @@ export declare const TeamGrantsUpsertTeamExtensionGrant403: Schema.Union<readonl
3685
5568
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3686
5569
  }>]>>;
3687
5570
  }>]>;
3688
- export type TeamGrantsUpsertTeamExtensionGrant404 = ProblemDetails;
3689
- export declare const TeamGrantsUpsertTeamExtensionGrant404: Schema.Struct<{
5571
+ export type TeamGrantsUpsertTeamExtensionGrantById404 = ProblemDetails;
5572
+ export declare const TeamGrantsUpsertTeamExtensionGrantById404: Schema.Struct<{
3690
5573
  readonly type: Schema.String;
3691
5574
  readonly title: Schema.String;
3692
5575
  readonly status: Schema.Number;
@@ -3701,8 +5584,96 @@ export declare const TeamGrantsUpsertTeamExtensionGrant404: Schema.Struct<{
3701
5584
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3702
5585
  }>>;
3703
5586
  }>;
3704
- export type TeamGrantsUpsertTeamExtensionGrant422 = ProblemDetails;
3705
- export declare const TeamGrantsUpsertTeamExtensionGrant422: Schema.Struct<{
5587
+ export type TeamGrantsUpsertTeamExtensionGrantById422 = ProblemDetails;
5588
+ export declare const TeamGrantsUpsertTeamExtensionGrantById422: Schema.Struct<{
5589
+ readonly type: Schema.String;
5590
+ readonly title: Schema.String;
5591
+ readonly status: Schema.Number;
5592
+ readonly detail: Schema.String;
5593
+ readonly instance: Schema.optionalKey<Schema.String>;
5594
+ readonly code: Schema.String;
5595
+ readonly details: Schema.optionalKey<Schema.Struct<{
5596
+ readonly retryable: Schema.Boolean;
5597
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5598
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5599
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5600
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5601
+ }>>;
5602
+ }>;
5603
+ export type TeamGrantsDeleteTeamExtensionGrantById400 = DecodeErrorResponse;
5604
+ export declare const TeamGrantsDeleteTeamExtensionGrantById400: Schema.Struct<{
5605
+ readonly kind: Schema.Literal<"DecodeErrorResponse">;
5606
+ readonly type: Schema.String;
5607
+ readonly title: Schema.String;
5608
+ readonly status: Schema.Number;
5609
+ readonly detail: Schema.String;
5610
+ readonly instance: Schema.optionalKey<Schema.String>;
5611
+ readonly code: Schema.String;
5612
+ }>;
5613
+ export type TeamGrantsDeleteTeamExtensionGrantById401 = ProblemDetails;
5614
+ export declare const TeamGrantsDeleteTeamExtensionGrantById401: Schema.Struct<{
5615
+ readonly type: Schema.String;
5616
+ readonly title: Schema.String;
5617
+ readonly status: Schema.Number;
5618
+ readonly detail: Schema.String;
5619
+ readonly instance: Schema.optionalKey<Schema.String>;
5620
+ readonly code: Schema.String;
5621
+ readonly details: Schema.optionalKey<Schema.Struct<{
5622
+ readonly retryable: Schema.Boolean;
5623
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5624
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5625
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5626
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5627
+ }>>;
5628
+ }>;
5629
+ export type TeamGrantsDeleteTeamExtensionGrantById403 = ForbiddenError | ForbiddenError;
5630
+ export declare const TeamGrantsDeleteTeamExtensionGrantById403: Schema.Union<readonly [Schema.Struct<{
5631
+ readonly kind: Schema.Literal<"ForbiddenError">;
5632
+ readonly type: Schema.String;
5633
+ readonly title: Schema.String;
5634
+ readonly status: Schema.Number;
5635
+ readonly detail: Schema.String;
5636
+ readonly instance: Schema.optionalKey<Schema.String>;
5637
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
5638
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5639
+ readonly requiredScope: Schema.String;
5640
+ readonly grantedScopes: Schema.$Array<Schema.String>;
5641
+ }>, Schema.Struct<{
5642
+ readonly requiredScope: Schema.String;
5643
+ readonly tokenScopes: Schema.$Array<Schema.String>;
5644
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
5645
+ }>, Schema.Struct<{
5646
+ readonly retryable: Schema.Boolean;
5647
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5648
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5649
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5650
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5651
+ }>]>>;
5652
+ }>, Schema.Struct<{
5653
+ readonly kind: Schema.Literal<"ForbiddenError">;
5654
+ readonly type: Schema.String;
5655
+ readonly title: Schema.String;
5656
+ readonly status: Schema.Number;
5657
+ readonly detail: Schema.String;
5658
+ readonly instance: Schema.optionalKey<Schema.String>;
5659
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
5660
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5661
+ readonly requiredScope: Schema.String;
5662
+ readonly grantedScopes: Schema.$Array<Schema.String>;
5663
+ }>, Schema.Struct<{
5664
+ readonly requiredScope: Schema.String;
5665
+ readonly tokenScopes: Schema.$Array<Schema.String>;
5666
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
5667
+ }>, Schema.Struct<{
5668
+ readonly retryable: Schema.Boolean;
5669
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5670
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5671
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5672
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5673
+ }>]>>;
5674
+ }>]>;
5675
+ export type TeamGrantsDeleteTeamExtensionGrantById404 = ProblemDetails;
5676
+ export declare const TeamGrantsDeleteTeamExtensionGrantById404: Schema.Struct<{
3706
5677
  readonly type: Schema.String;
3707
5678
  readonly title: Schema.String;
3708
5679
  readonly status: Schema.Number;
@@ -3751,7 +5722,7 @@ export declare const TeamGrantsDeleteTeamExtensionGrant403: Schema.Union<readonl
3751
5722
  readonly status: Schema.Number;
3752
5723
  readonly detail: Schema.String;
3753
5724
  readonly instance: Schema.optionalKey<Schema.String>;
3754
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
5725
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3755
5726
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3756
5727
  readonly requiredScope: Schema.String;
3757
5728
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3773,7 +5744,7 @@ export declare const TeamGrantsDeleteTeamExtensionGrant403: Schema.Union<readonl
3773
5744
  readonly status: Schema.Number;
3774
5745
  readonly detail: Schema.String;
3775
5746
  readonly instance: Schema.optionalKey<Schema.String>;
3776
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
5747
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3777
5748
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3778
5749
  readonly requiredScope: Schema.String;
3779
5750
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3805,6 +5776,110 @@ export declare const TeamGrantsDeleteTeamExtensionGrant404: Schema.Struct<{
3805
5776
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3806
5777
  }>>;
3807
5778
  }>;
5779
+ export type MaintainerGetMaintainer200 = Maintainer;
5780
+ export declare const MaintainerGetMaintainer200: Schema.Union<readonly [Schema.Struct<{
5781
+ readonly kind: Schema.Literal<"user">;
5782
+ readonly userId: Schema.String;
5783
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
5784
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
5785
+ }>, Schema.Struct<{
5786
+ readonly kind: Schema.Literal<"team">;
5787
+ readonly teamId: Schema.String;
5788
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
5789
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
5790
+ }>, Schema.Struct<{
5791
+ readonly kind: Schema.Literal<"none">;
5792
+ readonly assignedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
5793
+ readonly assignedBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
5794
+ }>]>;
5795
+ export type MaintainerGetMaintainer400 = DecodeErrorResponse;
5796
+ export declare const MaintainerGetMaintainer400: Schema.Struct<{
5797
+ readonly kind: Schema.Literal<"DecodeErrorResponse">;
5798
+ readonly type: Schema.String;
5799
+ readonly title: Schema.String;
5800
+ readonly status: Schema.Number;
5801
+ readonly detail: Schema.String;
5802
+ readonly instance: Schema.optionalKey<Schema.String>;
5803
+ readonly code: Schema.String;
5804
+ }>;
5805
+ export type MaintainerGetMaintainer401 = ProblemDetails;
5806
+ export declare const MaintainerGetMaintainer401: Schema.Struct<{
5807
+ readonly type: Schema.String;
5808
+ readonly title: Schema.String;
5809
+ readonly status: Schema.Number;
5810
+ readonly detail: Schema.String;
5811
+ readonly instance: Schema.optionalKey<Schema.String>;
5812
+ readonly code: Schema.String;
5813
+ readonly details: Schema.optionalKey<Schema.Struct<{
5814
+ readonly retryable: Schema.Boolean;
5815
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5816
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5817
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5818
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5819
+ }>>;
5820
+ }>;
5821
+ export type MaintainerGetMaintainer403 = ForbiddenError | ForbiddenError;
5822
+ export declare const MaintainerGetMaintainer403: Schema.Union<readonly [Schema.Struct<{
5823
+ readonly kind: Schema.Literal<"ForbiddenError">;
5824
+ readonly type: Schema.String;
5825
+ readonly title: Schema.String;
5826
+ readonly status: Schema.Number;
5827
+ readonly detail: Schema.String;
5828
+ readonly instance: Schema.optionalKey<Schema.String>;
5829
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
5830
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5831
+ readonly requiredScope: Schema.String;
5832
+ readonly grantedScopes: Schema.$Array<Schema.String>;
5833
+ }>, Schema.Struct<{
5834
+ readonly requiredScope: Schema.String;
5835
+ readonly tokenScopes: Schema.$Array<Schema.String>;
5836
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
5837
+ }>, Schema.Struct<{
5838
+ readonly retryable: Schema.Boolean;
5839
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5840
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5841
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5842
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5843
+ }>]>>;
5844
+ }>, Schema.Struct<{
5845
+ readonly kind: Schema.Literal<"ForbiddenError">;
5846
+ readonly type: Schema.String;
5847
+ readonly title: Schema.String;
5848
+ readonly status: Schema.Number;
5849
+ readonly detail: Schema.String;
5850
+ readonly instance: Schema.optionalKey<Schema.String>;
5851
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
5852
+ readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5853
+ readonly requiredScope: Schema.String;
5854
+ readonly grantedScopes: Schema.$Array<Schema.String>;
5855
+ }>, Schema.Struct<{
5856
+ readonly requiredScope: Schema.String;
5857
+ readonly tokenScopes: Schema.$Array<Schema.String>;
5858
+ readonly requiredRole: Schema.optionalKey<Schema.String>;
5859
+ }>, Schema.Struct<{
5860
+ readonly retryable: Schema.Boolean;
5861
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5862
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5863
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5864
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5865
+ }>]>>;
5866
+ }>]>;
5867
+ export type MaintainerGetMaintainer404 = ProblemDetails;
5868
+ export declare const MaintainerGetMaintainer404: Schema.Struct<{
5869
+ readonly type: Schema.String;
5870
+ readonly title: Schema.String;
5871
+ readonly status: Schema.Number;
5872
+ readonly detail: Schema.String;
5873
+ readonly instance: Schema.optionalKey<Schema.String>;
5874
+ readonly code: Schema.String;
5875
+ readonly details: Schema.optionalKey<Schema.Struct<{
5876
+ readonly retryable: Schema.Boolean;
5877
+ readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
5878
+ readonly requiredScope: Schema.optionalKey<Schema.String>;
5879
+ readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
5880
+ readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5881
+ }>>;
5882
+ }>;
3808
5883
  export type MaintainerSetMaintainerRequestJson = MaintainerTarget;
3809
5884
  export declare const MaintainerSetMaintainerRequestJson: Schema.Union<readonly [Schema.Struct<{
3810
5885
  readonly kind: Schema.Literal<"user">;
@@ -3863,7 +5938,7 @@ export declare const MaintainerSetMaintainer403: Schema.Union<readonly [Schema.S
3863
5938
  readonly status: Schema.Number;
3864
5939
  readonly detail: Schema.String;
3865
5940
  readonly instance: Schema.optionalKey<Schema.String>;
3866
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
5941
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3867
5942
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3868
5943
  readonly requiredScope: Schema.String;
3869
5944
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3885,7 +5960,7 @@ export declare const MaintainerSetMaintainer403: Schema.Union<readonly [Schema.S
3885
5960
  readonly status: Schema.Number;
3886
5961
  readonly detail: Schema.String;
3887
5962
  readonly instance: Schema.optionalKey<Schema.String>;
3888
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
5963
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3889
5964
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3890
5965
  readonly requiredScope: Schema.String;
3891
5966
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -3983,7 +6058,7 @@ export declare const MaintainerClearMaintainer403: Schema.Union<readonly [Schema
3983
6058
  readonly status: Schema.Number;
3984
6059
  readonly detail: Schema.String;
3985
6060
  readonly instance: Schema.optionalKey<Schema.String>;
3986
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
6061
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
3987
6062
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
3988
6063
  readonly requiredScope: Schema.String;
3989
6064
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -4005,7 +6080,7 @@ export declare const MaintainerClearMaintainer403: Schema.Union<readonly [Schema
4005
6080
  readonly status: Schema.Number;
4006
6081
  readonly detail: Schema.String;
4007
6082
  readonly instance: Schema.optionalKey<Schema.String>;
4008
- readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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"]>;
6083
+ readonly code: Schema.Literals<readonly ["forbidden", "insufficient_scope", "resource_restriction", "scope_escalation", "gat_requires_session", "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", "library_mutation_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"]>;
4009
6084
  readonly details: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4010
6085
  readonly requiredScope: Schema.String;
4011
6086
  readonly grantedScopes: Schema.$Array<Schema.String>;
@@ -4306,7 +6381,7 @@ export declare const SearchSearchExtensions200: Schema.Struct<{
4306
6381
  readonly extensions: Schema.$Array<Schema.Struct<{
4307
6382
  readonly name: Schema.String;
4308
6383
  readonly owner: Schema.String;
4309
- readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "context", "rule", "pack"]>;
6384
+ readonly type: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"]>;
4310
6385
  readonly latestVersion: Schema.String;
4311
6386
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
4312
6387
  readonly repository: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
@@ -4591,6 +6666,70 @@ export interface RegistryClient {
4591
6666
  readonly ExtensionsUnyankVersion: <Config extends OperationConfig>(owner: string, type: string, name: string, version: string, options: {
4592
6667
  readonly config?: Config | undefined;
4593
6668
  } | undefined) => Effect.Effect<WithOptionalResponse<typeof ExtensionsUnyankVersion200.Type, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"ExtensionsUnyankVersion400", typeof ExtensionsUnyankVersion400.Type> | RegistryClientError<"ExtensionsUnyankVersion401", typeof ExtensionsUnyankVersion401.Type> | RegistryClientError<"ExtensionsUnyankVersion403", typeof ExtensionsUnyankVersion403.Type> | RegistryClientError<"ExtensionsUnyankVersion404", typeof ExtensionsUnyankVersion404.Type>>;
6669
+ /**
6670
+ * List owner Libraries
6671
+ */
6672
+ readonly LibrariesListLibraries: <Config extends OperationConfig>(owner: string, options: {
6673
+ readonly config?: Config | undefined;
6674
+ } | undefined) => Effect.Effect<WithOptionalResponse<typeof LibrariesListLibraries200.Type, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"LibrariesListLibraries400", typeof LibrariesListLibraries400.Type> | RegistryClientError<"LibrariesListLibraries404", typeof LibrariesListLibraries404.Type>>;
6675
+ /**
6676
+ * Create a Library
6677
+ */
6678
+ readonly LibrariesCreateLibrary: <Config extends OperationConfig>(owner: string, options: {
6679
+ readonly payload: typeof LibrariesCreateLibraryRequestJson.Encoded;
6680
+ readonly config?: Config | undefined;
6681
+ }) => Effect.Effect<WithOptionalResponse<typeof LibrariesCreateLibrary201.Type, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"LibrariesCreateLibrary400", typeof LibrariesCreateLibrary400.Type> | RegistryClientError<"LibrariesCreateLibrary401", typeof LibrariesCreateLibrary401.Type> | RegistryClientError<"LibrariesCreateLibrary403", typeof LibrariesCreateLibrary403.Type> | RegistryClientError<"LibrariesCreateLibrary404", typeof LibrariesCreateLibrary404.Type> | RegistryClientError<"LibrariesCreateLibrary409", typeof LibrariesCreateLibrary409.Type> | RegistryClientError<"LibrariesCreateLibrary422", typeof LibrariesCreateLibrary422.Type>>;
6682
+ /**
6683
+ * Get a Library
6684
+ */
6685
+ readonly LibrariesGetLibrary: <Config extends OperationConfig>(owner: string, name: string, options: {
6686
+ readonly config?: Config | undefined;
6687
+ } | undefined) => Effect.Effect<WithOptionalResponse<typeof LibrariesGetLibrary200.Type, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"LibrariesGetLibrary400", typeof LibrariesGetLibrary400.Type> | RegistryClientError<"LibrariesGetLibrary404", typeof LibrariesGetLibrary404.Type> | RegistryClientError<"LibrariesGetLibrary422", typeof LibrariesGetLibrary422.Type>>;
6688
+ /**
6689
+ * Delete a Library
6690
+ */
6691
+ readonly LibrariesDeleteLibrary: <Config extends OperationConfig>(owner: string, name: string, options: {
6692
+ readonly config?: Config | undefined;
6693
+ } | undefined) => Effect.Effect<WithOptionalResponse<void, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"LibrariesDeleteLibrary400", typeof LibrariesDeleteLibrary400.Type> | RegistryClientError<"LibrariesDeleteLibrary401", typeof LibrariesDeleteLibrary401.Type> | RegistryClientError<"LibrariesDeleteLibrary403", typeof LibrariesDeleteLibrary403.Type> | RegistryClientError<"LibrariesDeleteLibrary404", typeof LibrariesDeleteLibrary404.Type> | RegistryClientError<"LibrariesDeleteLibrary422", typeof LibrariesDeleteLibrary422.Type>>;
6694
+ /**
6695
+ * Update a Library
6696
+ */
6697
+ readonly LibrariesUpdateLibrary: <Config extends OperationConfig>(owner: string, name: string, options: {
6698
+ readonly payload: typeof LibrariesUpdateLibraryRequestJson.Encoded;
6699
+ readonly config?: Config | undefined;
6700
+ }) => Effect.Effect<WithOptionalResponse<typeof LibrariesUpdateLibrary200.Type, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"LibrariesUpdateLibrary400", typeof LibrariesUpdateLibrary400.Type> | RegistryClientError<"LibrariesUpdateLibrary401", typeof LibrariesUpdateLibrary401.Type> | RegistryClientError<"LibrariesUpdateLibrary403", typeof LibrariesUpdateLibrary403.Type> | RegistryClientError<"LibrariesUpdateLibrary404", typeof LibrariesUpdateLibrary404.Type> | RegistryClientError<"LibrariesUpdateLibrary422", typeof LibrariesUpdateLibrary422.Type>>;
6701
+ /**
6702
+ * Set Library visibility
6703
+ */
6704
+ readonly LibrariesSetLibraryVisibility: <Config extends OperationConfig>(owner: string, name: string, options: {
6705
+ readonly payload: typeof LibrariesSetLibraryVisibilityRequestJson.Encoded;
6706
+ readonly config?: Config | undefined;
6707
+ }) => Effect.Effect<WithOptionalResponse<typeof LibrariesSetLibraryVisibility200.Type, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"LibrariesSetLibraryVisibility400", typeof LibrariesSetLibraryVisibility400.Type> | RegistryClientError<"LibrariesSetLibraryVisibility401", typeof LibrariesSetLibraryVisibility401.Type> | RegistryClientError<"LibrariesSetLibraryVisibility403", typeof LibrariesSetLibraryVisibility403.Type> | RegistryClientError<"LibrariesSetLibraryVisibility404", typeof LibrariesSetLibraryVisibility404.Type> | RegistryClientError<"LibrariesSetLibraryVisibility422", typeof LibrariesSetLibraryVisibility422.Type>>;
6708
+ /**
6709
+ * Set Library maintainer
6710
+ */
6711
+ readonly LibrariesSetLibraryMaintainer: <Config extends OperationConfig>(owner: string, name: string, options: {
6712
+ readonly payload: typeof LibrariesSetLibraryMaintainerRequestJson.Encoded;
6713
+ readonly config?: Config | undefined;
6714
+ }) => Effect.Effect<WithOptionalResponse<typeof LibrariesSetLibraryMaintainer200.Type, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"LibrariesSetLibraryMaintainer400", typeof LibrariesSetLibraryMaintainer400.Type> | RegistryClientError<"LibrariesSetLibraryMaintainer401", typeof LibrariesSetLibraryMaintainer401.Type> | RegistryClientError<"LibrariesSetLibraryMaintainer403", typeof LibrariesSetLibraryMaintainer403.Type> | RegistryClientError<"LibrariesSetLibraryMaintainer404", typeof LibrariesSetLibraryMaintainer404.Type> | RegistryClientError<"LibrariesSetLibraryMaintainer422", typeof LibrariesSetLibraryMaintainer422.Type>>;
6715
+ /**
6716
+ * Clear Library maintainer
6717
+ */
6718
+ readonly LibrariesClearLibraryMaintainer: <Config extends OperationConfig>(owner: string, name: string, options: {
6719
+ readonly config?: Config | undefined;
6720
+ } | undefined) => Effect.Effect<WithOptionalResponse<typeof LibrariesClearLibraryMaintainer200.Type, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"LibrariesClearLibraryMaintainer400", typeof LibrariesClearLibraryMaintainer400.Type> | RegistryClientError<"LibrariesClearLibraryMaintainer401", typeof LibrariesClearLibraryMaintainer401.Type> | RegistryClientError<"LibrariesClearLibraryMaintainer403", typeof LibrariesClearLibraryMaintainer403.Type> | RegistryClientError<"LibrariesClearLibraryMaintainer404", typeof LibrariesClearLibraryMaintainer404.Type> | RegistryClientError<"LibrariesClearLibraryMaintainer422", typeof LibrariesClearLibraryMaintainer422.Type>>;
6721
+ /**
6722
+ * Add a Library member
6723
+ */
6724
+ readonly LibrariesAddLibraryMember: <Config extends OperationConfig>(owner: string, name: string, extensionOwner: string, extensionType: string, extensionName: string, options: {
6725
+ readonly config?: Config | undefined;
6726
+ } | undefined) => Effect.Effect<WithOptionalResponse<typeof LibrariesAddLibraryMember200.Type, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"LibrariesAddLibraryMember400", typeof LibrariesAddLibraryMember400.Type> | RegistryClientError<"LibrariesAddLibraryMember401", typeof LibrariesAddLibraryMember401.Type> | RegistryClientError<"LibrariesAddLibraryMember403", typeof LibrariesAddLibraryMember403.Type> | RegistryClientError<"LibrariesAddLibraryMember404", typeof LibrariesAddLibraryMember404.Type> | RegistryClientError<"LibrariesAddLibraryMember409", typeof LibrariesAddLibraryMember409.Type> | RegistryClientError<"LibrariesAddLibraryMember422", typeof LibrariesAddLibraryMember422.Type>>;
6727
+ /**
6728
+ * Remove a Library member
6729
+ */
6730
+ readonly LibrariesRemoveLibraryMember: <Config extends OperationConfig>(owner: string, name: string, extensionOwner: string, extensionType: string, extensionName: string, options: {
6731
+ readonly config?: Config | undefined;
6732
+ } | undefined) => Effect.Effect<WithOptionalResponse<void, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"LibrariesRemoveLibraryMember400", typeof LibrariesRemoveLibraryMember400.Type> | RegistryClientError<"LibrariesRemoveLibraryMember401", typeof LibrariesRemoveLibraryMember401.Type> | RegistryClientError<"LibrariesRemoveLibraryMember403", typeof LibrariesRemoveLibraryMember403.Type> | RegistryClientError<"LibrariesRemoveLibraryMember404", typeof LibrariesRemoveLibraryMember404.Type> | RegistryClientError<"LibrariesRemoveLibraryMember422", typeof LibrariesRemoveLibraryMember422.Type>>;
4594
6733
  /**
4595
6734
  * List extension collaborators
4596
6735
  */
@@ -4610,6 +6749,12 @@ export interface RegistryClient {
4610
6749
  readonly CollaboratorsDeleteCollaborator: <Config extends OperationConfig>(owner: string, type: string, name: string, userId: string, options: {
4611
6750
  readonly config?: Config | undefined;
4612
6751
  } | undefined) => Effect.Effect<WithOptionalResponse<void, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"CollaboratorsDeleteCollaborator400", typeof CollaboratorsDeleteCollaborator400.Type> | RegistryClientError<"CollaboratorsDeleteCollaborator401", typeof CollaboratorsDeleteCollaborator401.Type> | RegistryClientError<"CollaboratorsDeleteCollaborator403", typeof CollaboratorsDeleteCollaborator403.Type> | RegistryClientError<"CollaboratorsDeleteCollaborator404", typeof CollaboratorsDeleteCollaborator404.Type> | RegistryClientError<"CollaboratorsDeleteCollaborator409", typeof CollaboratorsDeleteCollaborator409.Type>>;
6752
+ /**
6753
+ * List extension grants
6754
+ */
6755
+ readonly TeamGrantsListExtensionGrants: <Config extends OperationConfig>(owner: string, type: string, name: string, options: {
6756
+ readonly config?: Config | undefined;
6757
+ } | undefined) => Effect.Effect<WithOptionalResponse<typeof TeamGrantsListExtensionGrants200.Type, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"TeamGrantsListExtensionGrants400", typeof TeamGrantsListExtensionGrants400.Type> | RegistryClientError<"TeamGrantsListExtensionGrants401", typeof TeamGrantsListExtensionGrants401.Type> | RegistryClientError<"TeamGrantsListExtensionGrants403", typeof TeamGrantsListExtensionGrants403.Type> | RegistryClientError<"TeamGrantsListExtensionGrants404", typeof TeamGrantsListExtensionGrants404.Type>>;
4613
6758
  /**
4614
6759
  * Creates or updates a grant of a team's access to this extension. The team must belong to the same organization that owns the extension (otherwise 422). Only team admins or organization owners/admins may grant.
4615
6760
  */
@@ -4617,12 +6762,44 @@ export interface RegistryClient {
4617
6762
  readonly payload: typeof TeamGrantsUpsertTeamExtensionGrantRequestJson.Encoded;
4618
6763
  readonly config?: Config | undefined;
4619
6764
  }) => Effect.Effect<WithOptionalResponse<typeof TeamGrantsUpsertTeamExtensionGrant200.Type, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"TeamGrantsUpsertTeamExtensionGrant400", typeof TeamGrantsUpsertTeamExtensionGrant400.Type> | RegistryClientError<"TeamGrantsUpsertTeamExtensionGrant401", typeof TeamGrantsUpsertTeamExtensionGrant401.Type> | RegistryClientError<"TeamGrantsUpsertTeamExtensionGrant403", typeof TeamGrantsUpsertTeamExtensionGrant403.Type> | RegistryClientError<"TeamGrantsUpsertTeamExtensionGrant404", typeof TeamGrantsUpsertTeamExtensionGrant404.Type> | RegistryClientError<"TeamGrantsUpsertTeamExtensionGrant422", typeof TeamGrantsUpsertTeamExtensionGrant422.Type>>;
6765
+ /**
6766
+ * Adds or updates the user grant identified by userId on the extension.
6767
+ */
6768
+ readonly TeamGrantsUpsertUserExtensionGrant: <Config extends OperationConfig>(owner: string, type: string, name: string, userId: string, options: {
6769
+ readonly payload: typeof TeamGrantsUpsertUserExtensionGrantRequestJson.Encoded;
6770
+ readonly config?: Config | undefined;
6771
+ }) => Effect.Effect<WithOptionalResponse<typeof TeamGrantsUpsertUserExtensionGrant200.Type, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"TeamGrantsUpsertUserExtensionGrant400", typeof TeamGrantsUpsertUserExtensionGrant400.Type> | RegistryClientError<"TeamGrantsUpsertUserExtensionGrant401", typeof TeamGrantsUpsertUserExtensionGrant401.Type> | RegistryClientError<"TeamGrantsUpsertUserExtensionGrant403", typeof TeamGrantsUpsertUserExtensionGrant403.Type> | RegistryClientError<"TeamGrantsUpsertUserExtensionGrant404", typeof TeamGrantsUpsertUserExtensionGrant404.Type>>;
6772
+ /**
6773
+ * Removes the user grant identified by userId from the extension.
6774
+ */
6775
+ readonly TeamGrantsDeleteUserExtensionGrant: <Config extends OperationConfig>(owner: string, type: string, name: string, userId: string, options: {
6776
+ readonly config?: Config | undefined;
6777
+ } | undefined) => Effect.Effect<WithOptionalResponse<void, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"TeamGrantsDeleteUserExtensionGrant400", typeof TeamGrantsDeleteUserExtensionGrant400.Type> | RegistryClientError<"TeamGrantsDeleteUserExtensionGrant401", typeof TeamGrantsDeleteUserExtensionGrant401.Type> | RegistryClientError<"TeamGrantsDeleteUserExtensionGrant403", typeof TeamGrantsDeleteUserExtensionGrant403.Type> | RegistryClientError<"TeamGrantsDeleteUserExtensionGrant404", typeof TeamGrantsDeleteUserExtensionGrant404.Type> | RegistryClientError<"TeamGrantsDeleteUserExtensionGrant409", typeof TeamGrantsDeleteUserExtensionGrant409.Type>>;
6778
+ /**
6779
+ * Adds or updates the team grant identified by teamId on the extension.
6780
+ */
6781
+ readonly TeamGrantsUpsertTeamExtensionGrantById: <Config extends OperationConfig>(owner: string, type: string, name: string, teamId: string, options: {
6782
+ readonly payload: typeof TeamGrantsUpsertTeamExtensionGrantByIdRequestJson.Encoded;
6783
+ readonly config?: Config | undefined;
6784
+ }) => Effect.Effect<WithOptionalResponse<typeof TeamGrantsUpsertTeamExtensionGrantById200.Type, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"TeamGrantsUpsertTeamExtensionGrantById400", typeof TeamGrantsUpsertTeamExtensionGrantById400.Type> | RegistryClientError<"TeamGrantsUpsertTeamExtensionGrantById401", typeof TeamGrantsUpsertTeamExtensionGrantById401.Type> | RegistryClientError<"TeamGrantsUpsertTeamExtensionGrantById403", typeof TeamGrantsUpsertTeamExtensionGrantById403.Type> | RegistryClientError<"TeamGrantsUpsertTeamExtensionGrantById404", typeof TeamGrantsUpsertTeamExtensionGrantById404.Type> | RegistryClientError<"TeamGrantsUpsertTeamExtensionGrantById422", typeof TeamGrantsUpsertTeamExtensionGrantById422.Type>>;
6785
+ /**
6786
+ * Removes the team grant identified by teamId from the extension.
6787
+ */
6788
+ readonly TeamGrantsDeleteTeamExtensionGrantById: <Config extends OperationConfig>(owner: string, type: string, name: string, teamId: string, options: {
6789
+ readonly config?: Config | undefined;
6790
+ } | undefined) => Effect.Effect<WithOptionalResponse<void, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"TeamGrantsDeleteTeamExtensionGrantById400", typeof TeamGrantsDeleteTeamExtensionGrantById400.Type> | RegistryClientError<"TeamGrantsDeleteTeamExtensionGrantById401", typeof TeamGrantsDeleteTeamExtensionGrantById401.Type> | RegistryClientError<"TeamGrantsDeleteTeamExtensionGrantById403", typeof TeamGrantsDeleteTeamExtensionGrantById403.Type> | RegistryClientError<"TeamGrantsDeleteTeamExtensionGrantById404", typeof TeamGrantsDeleteTeamExtensionGrantById404.Type>>;
4620
6791
  /**
4621
6792
  * Removes a team's grant on this extension. Idempotent — deleting a non-existent grant still returns 204.
4622
6793
  */
4623
6794
  readonly TeamGrantsDeleteTeamExtensionGrant: <Config extends OperationConfig>(owner: string, type: string, name: string, teamId: string, options: {
4624
6795
  readonly config?: Config | undefined;
4625
6796
  } | undefined) => Effect.Effect<WithOptionalResponse<void, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"TeamGrantsDeleteTeamExtensionGrant400", typeof TeamGrantsDeleteTeamExtensionGrant400.Type> | RegistryClientError<"TeamGrantsDeleteTeamExtensionGrant401", typeof TeamGrantsDeleteTeamExtensionGrant401.Type> | RegistryClientError<"TeamGrantsDeleteTeamExtensionGrant403", typeof TeamGrantsDeleteTeamExtensionGrant403.Type> | RegistryClientError<"TeamGrantsDeleteTeamExtensionGrant404", typeof TeamGrantsDeleteTeamExtensionGrant404.Type>>;
6797
+ /**
6798
+ * Returns the apex maintainer for an extension, or none when org-owner fallback is active.
6799
+ */
6800
+ readonly MaintainerGetMaintainer: <Config extends OperationConfig>(owner: string, type: string, name: string, options: {
6801
+ readonly config?: Config | undefined;
6802
+ } | undefined) => Effect.Effect<WithOptionalResponse<typeof MaintainerGetMaintainer200.Type, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"MaintainerGetMaintainer400", typeof MaintainerGetMaintainer400.Type> | RegistryClientError<"MaintainerGetMaintainer401", typeof MaintainerGetMaintainer401.Type> | RegistryClientError<"MaintainerGetMaintainer403", typeof MaintainerGetMaintainer403.Type> | RegistryClientError<"MaintainerGetMaintainer404", typeof MaintainerGetMaintainer404.Type>>;
4626
6803
  /**
4627
6804
  * Sets or transfers the apex maintainer for an extension to an eligible user or team.
4628
6805
  */