@detergent-software/atk 9.5.0 → 9.6.0-dev.10

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 (262) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/README.md +10 -7
  3. package/build/command-manifest.json +151 -26
  4. package/build/commands/browse.d.ts +1 -0
  5. package/build/commands/browse.d.ts.map +1 -1
  6. package/build/commands/browse.js +12 -7
  7. package/build/commands/browse.js.map +1 -1
  8. package/build/commands/deprecate.d.ts +6 -5
  9. package/build/commands/deprecate.d.ts.map +1 -1
  10. package/build/commands/deprecate.js +31 -43
  11. package/build/commands/deprecate.js.map +1 -1
  12. package/build/commands/freeze.d.ts +1 -0
  13. package/build/commands/freeze.d.ts.map +1 -1
  14. package/build/commands/info.d.ts +1 -0
  15. package/build/commands/info.d.ts.map +1 -1
  16. package/build/commands/info.js +20 -39
  17. package/build/commands/info.js.map +1 -1
  18. package/build/commands/init.js +1 -1
  19. package/build/commands/init.js.map +1 -1
  20. package/build/commands/install.d.ts.map +1 -1
  21. package/build/commands/install.js +65 -12
  22. package/build/commands/install.js.map +1 -1
  23. package/build/commands/list.d.ts +1 -0
  24. package/build/commands/list.d.ts.map +1 -1
  25. package/build/commands/list.js +7 -7
  26. package/build/commands/list.js.map +1 -1
  27. package/build/commands/move.d.ts +6 -4
  28. package/build/commands/move.d.ts.map +1 -1
  29. package/build/commands/move.js +219 -89
  30. package/build/commands/move.js.map +1 -1
  31. package/build/commands/outdated.d.ts +1 -0
  32. package/build/commands/outdated.d.ts.map +1 -1
  33. package/build/commands/outdated.js +6 -4
  34. package/build/commands/outdated.js.map +1 -1
  35. package/build/commands/pin.d.ts +1 -0
  36. package/build/commands/pin.d.ts.map +1 -1
  37. package/build/commands/promote.d.ts +4 -3
  38. package/build/commands/promote.d.ts.map +1 -1
  39. package/build/commands/promote.js +19 -16
  40. package/build/commands/promote.js.map +1 -1
  41. package/build/commands/register.d.ts +1 -0
  42. package/build/commands/register.d.ts.map +1 -1
  43. package/build/commands/schema.d.ts +1 -0
  44. package/build/commands/schema.d.ts.map +1 -1
  45. package/build/commands/schema.js +3 -2
  46. package/build/commands/schema.js.map +1 -1
  47. package/build/commands/search.d.ts +1 -0
  48. package/build/commands/search.d.ts.map +1 -1
  49. package/build/commands/search.js +9 -5
  50. package/build/commands/search.js.map +1 -1
  51. package/build/commands/star.d.ts +23 -0
  52. package/build/commands/star.d.ts.map +1 -0
  53. package/build/commands/star.js +36 -0
  54. package/build/commands/star.js.map +1 -0
  55. package/build/commands/stars.d.ts +11 -0
  56. package/build/commands/stars.d.ts.map +1 -0
  57. package/build/commands/stars.js +57 -0
  58. package/build/commands/stars.js.map +1 -0
  59. package/build/commands/sync.d.ts +1 -0
  60. package/build/commands/sync.d.ts.map +1 -1
  61. package/build/commands/thaw.d.ts +1 -0
  62. package/build/commands/thaw.d.ts.map +1 -1
  63. package/build/commands/uninstall.d.ts +1 -0
  64. package/build/commands/uninstall.d.ts.map +1 -1
  65. package/build/commands/unpin.d.ts +1 -0
  66. package/build/commands/unpin.d.ts.map +1 -1
  67. package/build/commands/unpublish.d.ts +4 -3
  68. package/build/commands/unpublish.d.ts.map +1 -1
  69. package/build/commands/unpublish.js +20 -37
  70. package/build/commands/unpublish.js.map +1 -1
  71. package/build/commands/unstar.d.ts +23 -0
  72. package/build/commands/unstar.d.ts.map +1 -0
  73. package/build/commands/unstar.js +36 -0
  74. package/build/commands/unstar.js.map +1 -0
  75. package/build/commands/update.d.ts +2 -0
  76. package/build/commands/update.d.ts.map +1 -1
  77. package/build/commands/update.js +82 -4
  78. package/build/commands/update.js.map +1 -1
  79. package/build/commands/why.d.ts +1 -0
  80. package/build/commands/why.d.ts.map +1 -1
  81. package/build/components/AssetTable.d.ts +3 -1
  82. package/build/components/AssetTable.d.ts.map +1 -1
  83. package/build/components/AssetTable.js +11 -4
  84. package/build/components/AssetTable.js.map +1 -1
  85. package/build/components/BrowseExpandedRow.d.ts.map +1 -1
  86. package/build/components/BrowseExpandedRow.js +1 -1
  87. package/build/components/BrowseExpandedRow.js.map +1 -1
  88. package/build/components/BrowseList.d.ts +1 -1
  89. package/build/components/BrowseList.d.ts.map +1 -1
  90. package/build/components/BrowseList.js +10 -7
  91. package/build/components/BrowseList.js.map +1 -1
  92. package/build/components/DeprecationSummary.d.ts.map +1 -1
  93. package/build/components/DeprecationSummary.js +22 -5
  94. package/build/components/DeprecationSummary.js.map +1 -1
  95. package/build/components/InstallSummary.d.ts +4 -2
  96. package/build/components/InstallSummary.d.ts.map +1 -1
  97. package/build/components/InstallSummary.js +13 -4
  98. package/build/components/InstallSummary.js.map +1 -1
  99. package/build/components/ListBrowseList.d.ts +7 -6
  100. package/build/components/ListBrowseList.d.ts.map +1 -1
  101. package/build/components/ListBrowseList.js +15 -11
  102. package/build/components/ListBrowseList.js.map +1 -1
  103. package/build/components/PluginReviewQuestion.d.ts +22 -0
  104. package/build/components/PluginReviewQuestion.d.ts.map +1 -0
  105. package/build/components/PluginReviewQuestion.js +30 -0
  106. package/build/components/PluginReviewQuestion.js.map +1 -0
  107. package/build/components/RegistryChangeSummary.d.ts +6 -0
  108. package/build/components/RegistryChangeSummary.d.ts.map +1 -1
  109. package/build/components/RegistryChangeSummary.js +19 -1
  110. package/build/components/RegistryChangeSummary.js.map +1 -1
  111. package/build/components/StarCommand.d.ts +17 -0
  112. package/build/components/StarCommand.d.ts.map +1 -0
  113. package/build/components/StarCommand.js +53 -0
  114. package/build/components/StarCommand.js.map +1 -0
  115. package/build/components/StarResult.d.ts +7 -0
  116. package/build/components/StarResult.d.ts.map +1 -0
  117. package/build/components/StarResult.js +24 -0
  118. package/build/components/StarResult.js.map +1 -0
  119. package/build/components/UsageFields.d.ts +1 -1
  120. package/build/components/UsageFields.d.ts.map +1 -1
  121. package/build/components/UsageFields.js +2 -2
  122. package/build/components/UsageFields.js.map +1 -1
  123. package/build/hooks/useBrowseState.d.ts +4 -2
  124. package/build/hooks/useBrowseState.d.ts.map +1 -1
  125. package/build/hooks/useBrowseState.js +18 -11
  126. package/build/hooks/useBrowseState.js.map +1 -1
  127. package/build/hooks/useInitState.js +2 -2
  128. package/build/hooks/useInitState.js.map +1 -1
  129. package/build/hooks/useListState.d.ts.map +1 -1
  130. package/build/hooks/useListState.js +1 -0
  131. package/build/hooks/useListState.js.map +1 -1
  132. package/build/lib/adapter.d.ts.map +1 -1
  133. package/build/lib/adapter.js +1 -0
  134. package/build/lib/adapter.js.map +1 -1
  135. package/build/lib/atk-api/client.d.ts +65 -13
  136. package/build/lib/atk-api/client.d.ts.map +1 -1
  137. package/build/lib/atk-api/client.js +82 -32
  138. package/build/lib/atk-api/client.js.map +1 -1
  139. package/build/lib/atk-api/domain.d.ts +23 -2
  140. package/build/lib/atk-api/domain.d.ts.map +1 -1
  141. package/build/lib/atk-api/domain.js.map +1 -1
  142. package/build/lib/atk-api/errors.d.ts +9 -1
  143. package/build/lib/atk-api/errors.d.ts.map +1 -1
  144. package/build/lib/atk-api/errors.js +8 -1
  145. package/build/lib/atk-api/errors.js.map +1 -1
  146. package/build/lib/atk-api/generated/index.d.ts +2 -2
  147. package/build/lib/atk-api/generated/index.d.ts.map +1 -1
  148. package/build/lib/atk-api/generated/index.js +1 -1
  149. package/build/lib/atk-api/generated/index.js.map +1 -1
  150. package/build/lib/atk-api/generated/sdk.gen.d.ts +20 -8
  151. package/build/lib/atk-api/generated/sdk.gen.d.ts.map +1 -1
  152. package/build/lib/atk-api/generated/sdk.gen.js +31 -7
  153. package/build/lib/atk-api/generated/sdk.gen.js.map +1 -1
  154. package/build/lib/atk-api/generated/types.gen.d.ts +391 -39
  155. package/build/lib/atk-api/generated/types.gen.d.ts.map +1 -1
  156. package/build/lib/atk-api/index.d.ts +4 -4
  157. package/build/lib/atk-api/index.d.ts.map +1 -1
  158. package/build/lib/atk-api/index.js +1 -1
  159. package/build/lib/atk-api/index.js.map +1 -1
  160. package/build/lib/atk-api/testing.d.ts +6 -1
  161. package/build/lib/atk-api/testing.d.ts.map +1 -1
  162. package/build/lib/atk-api/testing.js +31 -1
  163. package/build/lib/atk-api/testing.js.map +1 -1
  164. package/build/lib/atk-api/web-routes.d.ts +17 -4
  165. package/build/lib/atk-api/web-routes.d.ts.map +1 -1
  166. package/build/lib/atk-api/web-routes.js +15 -1
  167. package/build/lib/atk-api/web-routes.js.map +1 -1
  168. package/build/lib/atk-schemas/bundle.d.ts +2 -0
  169. package/build/lib/atk-schemas/bundle.d.ts.map +1 -1
  170. package/build/lib/atk-schemas/index.d.ts +3 -0
  171. package/build/lib/atk-schemas/index.d.ts.map +1 -1
  172. package/build/lib/atk-schemas/index.js +3 -0
  173. package/build/lib/atk-schemas/index.js.map +1 -1
  174. package/build/lib/atk-schemas/manifest.d.ts +13 -0
  175. package/build/lib/atk-schemas/manifest.d.ts.map +1 -1
  176. package/build/lib/atk-schemas/manifest.js +8 -1
  177. package/build/lib/atk-schemas/manifest.js.map +1 -1
  178. package/build/lib/atk-schemas/registry.d.ts +30 -0
  179. package/build/lib/atk-schemas/registry.d.ts.map +1 -1
  180. package/build/lib/atk-schemas/registry.js +10 -0
  181. package/build/lib/atk-schemas/registry.js.map +1 -1
  182. package/build/lib/atk-schemas/unknown-types.d.ts +27 -0
  183. package/build/lib/atk-schemas/unknown-types.d.ts.map +1 -0
  184. package/build/lib/atk-schemas/unknown-types.js +116 -0
  185. package/build/lib/atk-schemas/unknown-types.js.map +1 -0
  186. package/build/lib/checksum.d.ts +4 -3
  187. package/build/lib/checksum.d.ts.map +1 -1
  188. package/build/lib/checksum.js +5 -4
  189. package/build/lib/checksum.js.map +1 -1
  190. package/build/lib/claude-code-version.d.ts +37 -0
  191. package/build/lib/claude-code-version.d.ts.map +1 -0
  192. package/build/lib/claude-code-version.js +75 -0
  193. package/build/lib/claude-code-version.js.map +1 -0
  194. package/build/lib/cross-scope.d.ts +2 -0
  195. package/build/lib/cross-scope.d.ts.map +1 -1
  196. package/build/lib/cross-scope.js +4 -3
  197. package/build/lib/cross-scope.js.map +1 -1
  198. package/build/lib/diagnostics.d.ts.map +1 -1
  199. package/build/lib/diagnostics.js +19 -9
  200. package/build/lib/diagnostics.js.map +1 -1
  201. package/build/lib/init.d.ts +4 -2
  202. package/build/lib/init.d.ts.map +1 -1
  203. package/build/lib/init.js +15 -1
  204. package/build/lib/init.js.map +1 -1
  205. package/build/lib/mover.d.ts +50 -0
  206. package/build/lib/mover.d.ts.map +1 -1
  207. package/build/lib/mover.js +207 -54
  208. package/build/lib/mover.js.map +1 -1
  209. package/build/lib/multi-tool-install.d.ts +5 -2
  210. package/build/lib/multi-tool-install.d.ts.map +1 -1
  211. package/build/lib/multi-tool-install.js +8 -5
  212. package/build/lib/multi-tool-install.js.map +1 -1
  213. package/build/lib/owned-paths.d.ts +5 -0
  214. package/build/lib/owned-paths.d.ts.map +1 -1
  215. package/build/lib/owned-paths.js +8 -0
  216. package/build/lib/owned-paths.js.map +1 -1
  217. package/build/lib/plugin-review.d.ts +77 -0
  218. package/build/lib/plugin-review.d.ts.map +1 -0
  219. package/build/lib/plugin-review.js +124 -0
  220. package/build/lib/plugin-review.js.map +1 -0
  221. package/build/lib/publisher.d.ts.map +1 -1
  222. package/build/lib/publisher.js +23 -16
  223. package/build/lib/publisher.js.map +1 -1
  224. package/build/lib/registry-change-json.d.ts +95 -4
  225. package/build/lib/registry-change-json.d.ts.map +1 -1
  226. package/build/lib/registry-change-json.js +76 -7
  227. package/build/lib/registry-change-json.js.map +1 -1
  228. package/build/lib/registry-mutate.d.ts +41 -1
  229. package/build/lib/registry-mutate.d.ts.map +1 -1
  230. package/build/lib/registry-mutate.js +178 -6
  231. package/build/lib/registry-mutate.js.map +1 -1
  232. package/build/lib/registry.d.ts.map +1 -1
  233. package/build/lib/registry.js +10 -3
  234. package/build/lib/registry.js.map +1 -1
  235. package/build/lib/schemas/adapter.d.ts +3 -0
  236. package/build/lib/schemas/adapter.d.ts.map +1 -1
  237. package/build/lib/schemas/config.d.ts +2 -0
  238. package/build/lib/schemas/config.d.ts.map +1 -1
  239. package/build/lib/schemas/index.d.ts +1 -1
  240. package/build/lib/schemas/index.d.ts.map +1 -1
  241. package/build/lib/schemas/index.js +1 -1
  242. package/build/lib/schemas/index.js.map +1 -1
  243. package/build/lib/schemas/lockfile.d.ts +8 -0
  244. package/build/lib/schemas/lockfile.d.ts.map +1 -1
  245. package/build/lib/search.d.ts +4 -4
  246. package/build/lib/search.d.ts.map +1 -1
  247. package/build/lib/search.js +7 -7
  248. package/build/lib/search.js.map +1 -1
  249. package/build/lib/stars.d.ts +46 -0
  250. package/build/lib/stars.d.ts.map +1 -0
  251. package/build/lib/stars.js +100 -0
  252. package/build/lib/stars.js.map +1 -0
  253. package/build/lib/subject.d.ts +52 -0
  254. package/build/lib/subject.d.ts.map +1 -0
  255. package/build/lib/subject.js +51 -0
  256. package/build/lib/subject.js.map +1 -0
  257. package/build/lib/usage.d.ts +11 -2
  258. package/build/lib/usage.d.ts.map +1 -1
  259. package/build/lib/usage.js +24 -8
  260. package/build/lib/usage.js.map +1 -1
  261. package/package.json +1 -1
  262. package/tool-adapters/claude-code.json +10 -1
@@ -31,7 +31,7 @@ export type ApiErrorDetail = {
31
31
  */
32
32
  path?: string | null;
33
33
  /**
34
- * Publish only: index into the request's `dependencies` when the problem is in that entry; `path` is then relative to the entry, as it is to the request for the root asset. Absent for the root asset
34
+ * Publish and unpublish only: index into the request's `dependencies` (publish) or `targets` (unpublish) when the problem is in that entry; for publish, `path` is then relative to the entry, as it is to the request for the root asset. Absent for the request's own asset or target
35
35
  */
36
36
  entry?: number | null;
37
37
  };
@@ -42,7 +42,7 @@ export type AssetUsage = {
42
42
  /**
43
43
  * Asset type
44
44
  */
45
- type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
45
+ type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
46
46
  /**
47
47
  * Asset name
48
48
  */
@@ -59,6 +59,10 @@ export type AssetUsage = {
59
59
  * Distinct users who fetched any version through `/download`
60
60
  */
61
61
  downloads: number;
62
+ /**
63
+ * Distinct users who star it now (`PUT /stars/...`)
64
+ */
65
+ stars: number;
62
66
  };
63
67
  /**
64
68
  * A bundle's counts
@@ -80,6 +84,10 @@ export type BundleUsage = {
80
84
  * Distinct users who fetched any version through `/download`
81
85
  */
82
86
  downloads: number;
87
+ /**
88
+ * Distinct users who star it now (`PUT /stars/...`)
89
+ */
90
+ stars: number;
83
91
  };
84
92
  /**
85
93
  * Published versions of a bundle
@@ -126,7 +134,7 @@ export type CheckoutResponse = {
126
134
  /**
127
135
  * Asset type
128
136
  */
129
- type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
137
+ type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
130
138
  /**
131
139
  * Resolved version
132
140
  */
@@ -185,7 +193,7 @@ export type DeprecateRequest = {
185
193
  /**
186
194
  * Asset type; needed only when the name exists as more than one type in the scope
187
195
  */
188
- type?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
196
+ type?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
189
197
  /**
190
198
  * asset or bundle; needed only when the name exists as both in the scope
191
199
  */
@@ -210,6 +218,31 @@ export type DeprecateRequest = {
210
218
  * Which client is asking; only affects the PR footer
211
219
  */
212
220
  client?: 'cli' | 'web' | 'api';
221
+ /**
222
+ * More items to deprecate (or undo) in the same pull request, at most 20, with the request's `reason`, `replacement` and `undo`. With them, the request's own target is the first of a batch: each target gets the checks of a single deprecate, and every new deprecation.json carries the same `deprecatedAt`. All or nothing, in one pull request with a batch title and branch. No item may be named twice. Problems with a target name its index in `details[].entry`.
223
+ */
224
+ targets?: Array<DeprecateTarget> | null;
225
+ };
226
+ /**
227
+ * An item deprecated (or undone) in the same pull request as the request's own target
228
+ */
229
+ export type DeprecateTarget = {
230
+ /**
231
+ * Asset or bundle name (bare, no @org prefix)
232
+ */
233
+ name: string;
234
+ /**
235
+ * Org scope (bare name; a leading `@` is ignored). Omit for global entries.
236
+ */
237
+ org?: string | null;
238
+ /**
239
+ * Asset type; needed only when the name exists as more than one type in the scope
240
+ */
241
+ type?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
242
+ /**
243
+ * asset or bundle; needed only when the name exists as both in the scope
244
+ */
245
+ kind?: 'asset' | 'bundle';
213
246
  };
214
247
  /**
215
248
  * The one file a deprecate or undo changes
@@ -228,6 +261,39 @@ export type DeprecationChange = {
228
261
  */
229
262
  content?: DeprecationFile | null;
230
263
  };
264
+ /**
265
+ * What a deprecate batch does with one of the request's `targets`
266
+ */
267
+ export type DeprecationEntryPlan = {
268
+ /**
269
+ * asset or bundle
270
+ */
271
+ kind: 'asset' | 'bundle';
272
+ /**
273
+ * Name
274
+ */
275
+ name: string;
276
+ /**
277
+ * Org scope (null for global)
278
+ */
279
+ org?: string | null;
280
+ /**
281
+ * Asset type (assets only)
282
+ */
283
+ assetType?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
284
+ /**
285
+ * The deprecation in effect today, or null
286
+ */
287
+ current?: DeprecationState | null;
288
+ /**
289
+ * The file change
290
+ */
291
+ change: DeprecationChange;
292
+ /**
293
+ * Non-blocking advice
294
+ */
295
+ warnings: Array<string>;
296
+ };
231
297
  /**
232
298
  * Contents of a deprecation.json sidecar
233
299
  */
@@ -268,7 +334,7 @@ export type DeprecationPlan = {
268
334
  /**
269
335
  * Asset type (assets only)
270
336
  */
271
- assetType?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
337
+ assetType?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
272
338
  /**
273
339
  * The deprecation in effect today, or null
274
340
  */
@@ -293,6 +359,10 @@ export type DeprecationPlan = {
293
359
  * Non-blocking advice
294
360
  */
295
361
  warnings: Array<string>;
362
+ /**
363
+ * A deprecate batch's `targets`, planned in request order; absent otherwise. The fields above describe the request's own target, except the branch, title and body, which are the batch's
364
+ */
365
+ entries?: Array<DeprecationEntryPlan>;
296
366
  };
297
367
  /**
298
368
  * How an item is deprecated today
@@ -347,7 +417,7 @@ export type FileListResponse = {
347
417
  /**
348
418
  * Asset type
349
419
  */
350
- type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
420
+ type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
351
421
  /**
352
422
  * Resolved version
353
423
  */
@@ -402,7 +472,7 @@ export type InstalledAsset = {
402
472
  /**
403
473
  * Asset type
404
474
  */
405
- type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
475
+ type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
406
476
  /**
407
477
  * Asset name
408
478
  */
@@ -481,7 +551,7 @@ export type PromoteRequest = {
481
551
  /**
482
552
  * Asset type; needed only when the name exists as more than one type in the org
483
553
  */
484
- type?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
554
+ type?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
485
555
  /**
486
556
  * asset or bundle; needed only when the name exists as both in the org
487
557
  */
@@ -494,6 +564,31 @@ export type PromoteRequest = {
494
564
  * Which client is asking; only affects the PR footer
495
565
  */
496
566
  client?: 'cli' | 'web' | 'api';
567
+ /**
568
+ * More org-scoped items to promote in the same pull request, at most 20. With them, the request's own target is the first of a batch: each target gets the checks of a single promote, with every other target already global, so a bundle and its members can promote together. A bundle's refs to an asset promoted in the batch lose their `org` in every version's bundle.json. All or nothing, in one pull request with a batch title and branch. No item may be named twice. Problems with a target name its index in `details[].entry`.
569
+ */
570
+ targets?: Array<PromoteTarget> | null;
571
+ };
572
+ /**
573
+ * An item promoted in the same pull request as the request's own target
574
+ */
575
+ export type PromoteTarget = {
576
+ /**
577
+ * Asset or bundle name (bare, no @org prefix)
578
+ */
579
+ name: string;
580
+ /**
581
+ * The org it lives in today (bare name; a leading `@` is ignored)
582
+ */
583
+ org: string;
584
+ /**
585
+ * Asset type; needed only when the name exists as more than one type in the org
586
+ */
587
+ type?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
588
+ /**
589
+ * asset or bundle; needed only when the name exists as both in the org
590
+ */
591
+ kind?: 'asset' | 'bundle';
497
592
  };
498
593
  /**
499
594
  * A dependency of the asset being published, resolved against the registry
@@ -506,7 +601,7 @@ export type PublishDependency = {
506
601
  /**
507
602
  * Dependency asset type
508
603
  */
509
- type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
604
+ type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
510
605
  /**
511
606
  * The manifest's version range, when it gives one
512
607
  */
@@ -554,7 +649,7 @@ export type PublishEntryPlan = {
554
649
  /**
555
650
  * Asset type
556
651
  */
557
- assetType: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
652
+ assetType: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
558
653
  /**
559
654
  * Version being published
560
655
  */
@@ -589,7 +684,7 @@ export type PublishEntryPlan = {
589
684
  */
590
685
  export type PublishFile = {
591
686
  /**
592
- * Path relative to the version directory (no dotfiles, no `..`)
687
+ * Path relative to the version directory (no dotfiles, no `..`; a plugin's `.claude-plugin/` folder is the one exception)
593
688
  */
594
689
  path: string;
595
690
  /**
@@ -620,7 +715,7 @@ export type PublishPlan = {
620
715
  /**
621
716
  * Asset type (assets only)
622
717
  */
623
- assetType?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
718
+ assetType?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
624
719
  /**
625
720
  * Version being published
626
721
  */
@@ -746,6 +841,39 @@ export type PublishResponse = {
746
841
  */
747
842
  warnings: Array<string>;
748
843
  };
844
+ /**
845
+ * What an unpublish or promote batch does with one of the request's `targets`
846
+ */
847
+ export type RegistryChangeEntryPlan = {
848
+ /**
849
+ * asset or bundle
850
+ */
851
+ kind: 'asset' | 'bundle';
852
+ /**
853
+ * Name
854
+ */
855
+ name: string;
856
+ /**
857
+ * Org scope (null for global)
858
+ */
859
+ org?: string | null;
860
+ /**
861
+ * Asset type (assets only)
862
+ */
863
+ assetType?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
864
+ /**
865
+ * Versions affected
866
+ */
867
+ versions: Array<string>;
868
+ /**
869
+ * Directories removed or moved
870
+ */
871
+ changes: Array<RegistryPathChange>;
872
+ /**
873
+ * Non-blocking advice
874
+ */
875
+ warnings: Array<string>;
876
+ };
749
877
  /**
750
878
  * What an unpublish or promote would do
751
879
  */
@@ -769,7 +897,7 @@ export type RegistryChangePlan = {
769
897
  /**
770
898
  * Asset type (assets only)
771
899
  */
772
- assetType?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
900
+ assetType?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
773
901
  /**
774
902
  * Versions affected
775
903
  */
@@ -794,6 +922,10 @@ export type RegistryChangePlan = {
794
922
  * Non-blocking advice
795
923
  */
796
924
  warnings: Array<string>;
925
+ /**
926
+ * An unpublish or promote batch's `targets`, planned in request order; absent otherwise. The fields above describe the request's own target, except the branch, title and body, which are the batch's
927
+ */
928
+ entries?: Array<RegistryChangeEntryPlan>;
797
929
  };
798
930
  /**
799
931
  * Result of an unpublish, promote or deprecate
@@ -833,6 +965,57 @@ export type RegistryPathChange = {
833
965
  */
834
966
  to?: string | null;
835
967
  };
968
+ /**
969
+ * An asset the caller starred
970
+ */
971
+ export type StarredAsset = {
972
+ /**
973
+ * Asset type
974
+ */
975
+ type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
976
+ /**
977
+ * Asset name
978
+ */
979
+ name: string;
980
+ /**
981
+ * Org scope
982
+ */
983
+ org?: string | null;
984
+ /**
985
+ * When the caller starred it (ISO 8601, UTC)
986
+ */
987
+ starredAt: string;
988
+ };
989
+ /**
990
+ * A bundle the caller starred
991
+ */
992
+ export type StarredBundle = {
993
+ /**
994
+ * Bundle name
995
+ */
996
+ name: string;
997
+ /**
998
+ * Org scope
999
+ */
1000
+ org?: string | null;
1001
+ /**
1002
+ * When the caller starred it (ISO 8601, UTC)
1003
+ */
1004
+ starredAt: string;
1005
+ };
1006
+ /**
1007
+ * The caller's stars
1008
+ */
1009
+ export type StarsResponse = {
1010
+ /**
1011
+ * The assets the caller starred that the registry has, newest first
1012
+ */
1013
+ assets: Array<StarredAsset>;
1014
+ /**
1015
+ * The bundles the caller starred that the registry has, newest first
1016
+ */
1017
+ bundles: Array<StarredBundle>;
1018
+ };
836
1019
  /**
837
1020
  * Unpublish payload
838
1021
  */
@@ -848,7 +1031,7 @@ export type UnpublishRequest = {
848
1031
  /**
849
1032
  * Asset type; needed only when the name exists as more than one type in the scope
850
1033
  */
851
- type?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
1034
+ type?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
852
1035
  /**
853
1036
  * asset or bundle; needed only when the name exists as both in the scope
854
1037
  */
@@ -865,9 +1048,38 @@ export type UnpublishRequest = {
865
1048
  * Which client is asking; only affects the PR footer
866
1049
  */
867
1050
  client?: 'cli' | 'web' | 'api';
1051
+ /**
1052
+ * More items to unpublish in the same pull request, at most 20. With them, the request's own target is the first of a batch: each target gets the checks of a single unpublish, with every other target's removal counted as gone, so a bundle and its members can go together. All or nothing, in one pull request with a batch title and branch. No item may be named twice. Problems with a target name its index in `details[].entry`.
1053
+ */
1054
+ targets?: Array<UnpublishTarget> | null;
868
1055
  };
869
1056
  /**
870
- * Install and download counts for every asset and bundle in the registry
1057
+ * An item unpublished in the same pull request as the request's own target
1058
+ */
1059
+ export type UnpublishTarget = {
1060
+ /**
1061
+ * Asset or bundle name (bare, no @org prefix)
1062
+ */
1063
+ name: string;
1064
+ /**
1065
+ * Org scope (bare name; a leading `@` is ignored). Omit for global entries.
1066
+ */
1067
+ org?: string | null;
1068
+ /**
1069
+ * Asset type; needed only when the name exists as more than one type in the scope
1070
+ */
1071
+ type?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
1072
+ /**
1073
+ * asset or bundle; needed only when the name exists as both in the scope
1074
+ */
1075
+ kind?: 'asset' | 'bundle';
1076
+ /**
1077
+ * Remove only this version. Omit to remove every version.
1078
+ */
1079
+ version?: string | null;
1080
+ };
1081
+ /**
1082
+ * Install, download and star counts for every asset and bundle in the registry
871
1083
  */
872
1084
  export type UsageResponse = {
873
1085
  /**
@@ -1006,7 +1218,7 @@ export type GetAssetManifestData = {
1006
1218
  /**
1007
1219
  * Asset type
1008
1220
  */
1009
- type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
1221
+ type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
1010
1222
  /**
1011
1223
  * Asset name (bare, no @org prefix)
1012
1224
  */
@@ -1062,7 +1274,7 @@ export type GetAssetReadmeData = {
1062
1274
  /**
1063
1275
  * Asset type
1064
1276
  */
1065
- type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
1277
+ type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
1066
1278
  /**
1067
1279
  * Asset name (bare, no @org prefix)
1068
1280
  */
@@ -1120,7 +1332,7 @@ export type ListAssetFilesData = {
1120
1332
  /**
1121
1333
  * Asset type
1122
1334
  */
1123
- type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
1335
+ type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
1124
1336
  /**
1125
1337
  * Asset name (bare, no @org prefix)
1126
1338
  */
@@ -1174,7 +1386,7 @@ export type GetAssetFileData = {
1174
1386
  /**
1175
1387
  * Asset type
1176
1388
  */
1177
- type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
1389
+ type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
1178
1390
  /**
1179
1391
  * Asset name (bare, no @org prefix)
1180
1392
  */
@@ -1232,7 +1444,7 @@ export type DownloadAssetData = {
1232
1444
  /**
1233
1445
  * Asset type
1234
1446
  */
1235
- type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
1447
+ type: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
1236
1448
  /**
1237
1449
  * Asset name (bare, no @org prefix)
1238
1450
  */
@@ -1506,7 +1718,7 @@ export type CheckoutData = {
1506
1718
  /**
1507
1719
  * Asset type; required only when the name exists as more than one type
1508
1720
  */
1509
- type?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config';
1721
+ type?: 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
1510
1722
  /**
1511
1723
  * Exact version; defaults to `latest`
1512
1724
  */
@@ -1652,7 +1864,7 @@ export type UnpublishPlanData = {
1652
1864
  };
1653
1865
  export type UnpublishPlanErrors = {
1654
1866
  /**
1655
- * Invalid name, org or version (`validation_failed`), or the name exists as more than one type or kind in the scope (`ambiguous_name`; pass `type` or `kind`)
1867
+ * Invalid name, org or version (`validation_failed`), or the name exists as more than one type or kind in the scope (`ambiguous_name`; pass `type` or `kind`). An unpublish or promote batch: also more than 20 `targets`, or an item named twice. A detail about one of `targets` carries its index in `entry`
1656
1868
  */
1657
1869
  400: ApiError;
1658
1870
  /**
@@ -1664,11 +1876,11 @@ export type UnpublishPlanErrors = {
1664
1876
  */
1665
1877
  403: ApiError;
1666
1878
  /**
1667
- * The target, or the requested version of it, is not in the registry (`not_found`)
1879
+ * The target, or the requested version of it, is not in the registry (`not_found`). In an unpublish or promote batch, a detail per missing target, with `entry` for `targets`
1668
1880
  */
1669
1881
  404: ApiError;
1670
1882
  /**
1671
- * `referenced_by_bundles` (details list the bundles, then the dependent asset versions), `global_exists` (promote), `bundle_scope_invalid` (promote; details list the refs), `registry_changed` (the registry moved on; retry), `branch_exists`, or `pr_open` (a pull request is open on the branch; the message has its URL)
1883
+ * `referenced_by_bundles` (details list the bundles, then the dependent asset versions), `global_exists` (promote), `bundle_scope_invalid` (promote; details list the refs), `registry_changed` (the registry moved on; retry), `branch_exists`, or `pr_open` (a pull request is open on the branch; the message has its URL). In an unpublish or promote batch, every failing target is reported, each detail with `entry` for `targets`, under the first failure's code
1672
1884
  */
1673
1885
  409: ApiError;
1674
1886
  /**
@@ -1700,7 +1912,7 @@ export type UnpublishData = {
1700
1912
  };
1701
1913
  export type UnpublishErrors = {
1702
1914
  /**
1703
- * Invalid name, org or version (`validation_failed`), or the name exists as more than one type or kind in the scope (`ambiguous_name`; pass `type` or `kind`)
1915
+ * Invalid name, org or version (`validation_failed`), or the name exists as more than one type or kind in the scope (`ambiguous_name`; pass `type` or `kind`). An unpublish or promote batch: also more than 20 `targets`, or an item named twice. A detail about one of `targets` carries its index in `entry`
1704
1916
  */
1705
1917
  400: ApiError;
1706
1918
  /**
@@ -1712,11 +1924,11 @@ export type UnpublishErrors = {
1712
1924
  */
1713
1925
  403: ApiError;
1714
1926
  /**
1715
- * The target, or the requested version of it, is not in the registry (`not_found`)
1927
+ * The target, or the requested version of it, is not in the registry (`not_found`). In an unpublish or promote batch, a detail per missing target, with `entry` for `targets`
1716
1928
  */
1717
1929
  404: ApiError;
1718
1930
  /**
1719
- * `referenced_by_bundles` (details list the bundles, then the dependent asset versions), `global_exists` (promote), `bundle_scope_invalid` (promote; details list the refs), `registry_changed` (the registry moved on; retry), `branch_exists`, or `pr_open` (a pull request is open on the branch; the message has its URL)
1931
+ * `referenced_by_bundles` (details list the bundles, then the dependent asset versions), `global_exists` (promote), `bundle_scope_invalid` (promote; details list the refs), `registry_changed` (the registry moved on; retry), `branch_exists`, or `pr_open` (a pull request is open on the branch; the message has its URL). In an unpublish or promote batch, every failing target is reported, each detail with `entry` for `targets`, under the first failure's code
1720
1932
  */
1721
1933
  409: ApiError;
1722
1934
  /**
@@ -1748,7 +1960,7 @@ export type PromotePlanData = {
1748
1960
  };
1749
1961
  export type PromotePlanErrors = {
1750
1962
  /**
1751
- * Invalid name, org or version (`validation_failed`), or the name exists as more than one type or kind in the scope (`ambiguous_name`; pass `type` or `kind`)
1963
+ * Invalid name, org or version (`validation_failed`), or the name exists as more than one type or kind in the scope (`ambiguous_name`; pass `type` or `kind`). An unpublish or promote batch: also more than 20 `targets`, or an item named twice. A detail about one of `targets` carries its index in `entry`
1752
1964
  */
1753
1965
  400: ApiError;
1754
1966
  /**
@@ -1760,11 +1972,11 @@ export type PromotePlanErrors = {
1760
1972
  */
1761
1973
  403: ApiError;
1762
1974
  /**
1763
- * The target, or the requested version of it, is not in the registry (`not_found`)
1975
+ * The target, or the requested version of it, is not in the registry (`not_found`). In an unpublish or promote batch, a detail per missing target, with `entry` for `targets`
1764
1976
  */
1765
1977
  404: ApiError;
1766
1978
  /**
1767
- * `referenced_by_bundles` (details list the bundles, then the dependent asset versions), `global_exists` (promote), `bundle_scope_invalid` (promote; details list the refs), `registry_changed` (the registry moved on; retry), `branch_exists`, or `pr_open` (a pull request is open on the branch; the message has its URL)
1979
+ * `referenced_by_bundles` (details list the bundles, then the dependent asset versions), `global_exists` (promote), `bundle_scope_invalid` (promote; details list the refs), `registry_changed` (the registry moved on; retry), `branch_exists`, or `pr_open` (a pull request is open on the branch; the message has its URL). In an unpublish or promote batch, every failing target is reported, each detail with `entry` for `targets`, under the first failure's code
1768
1980
  */
1769
1981
  409: ApiError;
1770
1982
  /**
@@ -1796,7 +2008,7 @@ export type PromoteData = {
1796
2008
  };
1797
2009
  export type PromoteErrors = {
1798
2010
  /**
1799
- * Invalid name, org or version (`validation_failed`), or the name exists as more than one type or kind in the scope (`ambiguous_name`; pass `type` or `kind`)
2011
+ * Invalid name, org or version (`validation_failed`), or the name exists as more than one type or kind in the scope (`ambiguous_name`; pass `type` or `kind`). An unpublish or promote batch: also more than 20 `targets`, or an item named twice. A detail about one of `targets` carries its index in `entry`
1800
2012
  */
1801
2013
  400: ApiError;
1802
2014
  /**
@@ -1808,11 +2020,11 @@ export type PromoteErrors = {
1808
2020
  */
1809
2021
  403: ApiError;
1810
2022
  /**
1811
- * The target, or the requested version of it, is not in the registry (`not_found`)
2023
+ * The target, or the requested version of it, is not in the registry (`not_found`). In an unpublish or promote batch, a detail per missing target, with `entry` for `targets`
1812
2024
  */
1813
2025
  404: ApiError;
1814
2026
  /**
1815
- * `referenced_by_bundles` (details list the bundles, then the dependent asset versions), `global_exists` (promote), `bundle_scope_invalid` (promote; details list the refs), `registry_changed` (the registry moved on; retry), `branch_exists`, or `pr_open` (a pull request is open on the branch; the message has its URL)
2027
+ * `referenced_by_bundles` (details list the bundles, then the dependent asset versions), `global_exists` (promote), `bundle_scope_invalid` (promote; details list the refs), `registry_changed` (the registry moved on; retry), `branch_exists`, or `pr_open` (a pull request is open on the branch; the message has its URL). In an unpublish or promote batch, every failing target is reported, each detail with `entry` for `targets`, under the first failure's code
1816
2028
  */
1817
2029
  409: ApiError;
1818
2030
  /**
@@ -1844,7 +2056,7 @@ export type DeprecatePlanData = {
1844
2056
  };
1845
2057
  export type DeprecatePlanErrors = {
1846
2058
  /**
1847
- * Invalid name or org, missing reason, undo with a reason or replacement, or an item named as its own replacement (`validation_failed`); the name exists as more than one type or kind in the scope (`ambiguous_name`); or the replacement is not in the registry (`replacement_not_found`)
2059
+ * Invalid name or org, missing reason, undo with a reason or replacement, or an item named as its own replacement (`validation_failed`); the name exists as more than one type or kind in the scope (`ambiguous_name`); or the replacement is not in the registry (`replacement_not_found`). A deprecate batch: also more than 20 `targets`, or an item named twice. A detail about one of `targets` carries its index in `entry`
1848
2060
  */
1849
2061
  400: ApiError;
1850
2062
  /**
@@ -1856,11 +2068,11 @@ export type DeprecatePlanErrors = {
1856
2068
  */
1857
2069
  403: ApiError;
1858
2070
  /**
1859
- * The target is not in the registry (`not_found`)
2071
+ * The target is not in the registry (`not_found`). In a deprecate batch, a detail per missing target, with `entry` for `targets`
1860
2072
  */
1861
2073
  404: ApiError;
1862
2074
  /**
1863
- * `deprecation_unchanged` (already deprecated with this reason and replacement), `not_deprecated` (undo with no deprecation.json), `deprecation_in_manifest` (undo of a deprecation set by legacy `metadata.deprecated`; publish a version without it), `registry_changed` (the registry moved on; retry), `branch_exists`, or `pr_open` (a pull request is open on the branch; the message has its URL)
2075
+ * `deprecation_unchanged` (already deprecated with this reason and replacement), `not_deprecated` (undo with no deprecation.json), `deprecation_in_manifest` (undo of a deprecation set by legacy `metadata.deprecated`; publish a version without it), `registry_changed` (the registry moved on; retry), `branch_exists`, or `pr_open` (a pull request is open on the branch; the message has its URL). In a deprecate batch, every failing target is reported, each detail with `entry` for `targets`, under the first failure's code
1864
2076
  */
1865
2077
  409: ApiError;
1866
2078
  /**
@@ -1892,7 +2104,7 @@ export type DeprecateData = {
1892
2104
  };
1893
2105
  export type DeprecateErrors = {
1894
2106
  /**
1895
- * Invalid name or org, missing reason, undo with a reason or replacement, or an item named as its own replacement (`validation_failed`); the name exists as more than one type or kind in the scope (`ambiguous_name`); or the replacement is not in the registry (`replacement_not_found`)
2107
+ * Invalid name or org, missing reason, undo with a reason or replacement, or an item named as its own replacement (`validation_failed`); the name exists as more than one type or kind in the scope (`ambiguous_name`); or the replacement is not in the registry (`replacement_not_found`). A deprecate batch: also more than 20 `targets`, or an item named twice. A detail about one of `targets` carries its index in `entry`
1896
2108
  */
1897
2109
  400: ApiError;
1898
2110
  /**
@@ -1904,11 +2116,11 @@ export type DeprecateErrors = {
1904
2116
  */
1905
2117
  403: ApiError;
1906
2118
  /**
1907
- * The target is not in the registry (`not_found`)
2119
+ * The target is not in the registry (`not_found`). In a deprecate batch, a detail per missing target, with `entry` for `targets`
1908
2120
  */
1909
2121
  404: ApiError;
1910
2122
  /**
1911
- * `deprecation_unchanged` (already deprecated with this reason and replacement), `not_deprecated` (undo with no deprecation.json), `deprecation_in_manifest` (undo of a deprecation set by legacy `metadata.deprecated`; publish a version without it), `registry_changed` (the registry moved on; retry), `branch_exists`, or `pr_open` (a pull request is open on the branch; the message has its URL)
2123
+ * `deprecation_unchanged` (already deprecated with this reason and replacement), `not_deprecated` (undo with no deprecation.json), `deprecation_in_manifest` (undo of a deprecation set by legacy `metadata.deprecated`; publish a version without it), `registry_changed` (the registry moved on; retry), `branch_exists`, or `pr_open` (a pull request is open on the branch; the message has its URL). In a deprecate batch, every failing target is reported, each detail with `entry` for `targets`, under the first failure's code
1912
2124
  */
1913
2125
  409: ApiError;
1914
2126
  /**
@@ -2032,4 +2244,144 @@ export type GetUsageResponses = {
2032
2244
  200: UsageResponse;
2033
2245
  };
2034
2246
  export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
2247
+ export type UnstarSubjectData = {
2248
+ body?: never;
2249
+ path: {
2250
+ /**
2251
+ * `bundle`, or the asset type
2252
+ */
2253
+ type: 'bundle' | 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
2254
+ /**
2255
+ * Asset or bundle name (bare, no @org prefix)
2256
+ */
2257
+ name: string;
2258
+ };
2259
+ query?: {
2260
+ /**
2261
+ * Org scope (bare name, no `@`); omit for global
2262
+ */
2263
+ org?: string;
2264
+ };
2265
+ url: '/stars/{type}/{name}';
2266
+ };
2267
+ export type UnstarSubjectErrors = {
2268
+ /**
2269
+ * Missing or invalid token (`unauthenticated`, `unsupported_token`, `invalid_token`), or GitHub sign-in has ended (`github_auth_retired`)
2270
+ */
2271
+ 401: ApiError;
2272
+ /**
2273
+ * A guest account of the Emergent Software tenant (`guest_not_allowed`)
2274
+ */
2275
+ 403: ApiError;
2276
+ /**
2277
+ * The calling ATK CLI is older than the API's minimum (`cli_outdated`); the message names the minimum and `npm i -g @detergent-software/atk`
2278
+ */
2279
+ 426: ApiError;
2280
+ /**
2281
+ * Entra could not be reached to validate the token (`entra_unavailable`)
2282
+ */
2283
+ 502: ApiError;
2284
+ /**
2285
+ * The usage database could not be reached (`usage_unavailable`)
2286
+ */
2287
+ 503: ApiError;
2288
+ };
2289
+ export type UnstarSubjectError = UnstarSubjectErrors[keyof UnstarSubjectErrors];
2290
+ export type UnstarSubjectResponses = {
2291
+ /**
2292
+ * Not starred
2293
+ */
2294
+ 204: void;
2295
+ };
2296
+ export type UnstarSubjectResponse = UnstarSubjectResponses[keyof UnstarSubjectResponses];
2297
+ export type StarSubjectData = {
2298
+ body?: never;
2299
+ path: {
2300
+ /**
2301
+ * `bundle`, or the asset type
2302
+ */
2303
+ type: 'bundle' | 'skill' | 'agent' | 'rule' | 'hook' | 'memory-template' | 'mcp-config' | 'plugin';
2304
+ /**
2305
+ * Asset or bundle name (bare, no @org prefix)
2306
+ */
2307
+ name: string;
2308
+ };
2309
+ query?: {
2310
+ /**
2311
+ * Org scope (bare name, no `@`); omit for global
2312
+ */
2313
+ org?: string;
2314
+ };
2315
+ url: '/stars/{type}/{name}';
2316
+ };
2317
+ export type StarSubjectErrors = {
2318
+ /**
2319
+ * Missing or invalid token (`unauthenticated`, `unsupported_token`, `invalid_token`), or GitHub sign-in has ended (`github_auth_retired`)
2320
+ */
2321
+ 401: ApiError;
2322
+ /**
2323
+ * A guest account of the Emergent Software tenant (`guest_not_allowed`)
2324
+ */
2325
+ 403: ApiError;
2326
+ /**
2327
+ * The registry has no such asset or bundle (`not_found`); nothing is written
2328
+ */
2329
+ 404: ApiError;
2330
+ /**
2331
+ * The calling ATK CLI is older than the API's minimum (`cli_outdated`); the message names the minimum and `npm i -g @detergent-software/atk`
2332
+ */
2333
+ 426: ApiError;
2334
+ /**
2335
+ * Entra could not be reached to validate the token (`entra_unavailable`)
2336
+ */
2337
+ 502: ApiError;
2338
+ /**
2339
+ * The usage database could not be reached (`usage_unavailable`)
2340
+ */
2341
+ 503: ApiError;
2342
+ };
2343
+ export type StarSubjectError = StarSubjectErrors[keyof StarSubjectErrors];
2344
+ export type StarSubjectResponses = {
2345
+ /**
2346
+ * Starred
2347
+ */
2348
+ 204: void;
2349
+ };
2350
+ export type StarSubjectResponse = StarSubjectResponses[keyof StarSubjectResponses];
2351
+ export type ListStarsData = {
2352
+ body?: never;
2353
+ path?: never;
2354
+ query?: never;
2355
+ url: '/stars';
2356
+ };
2357
+ export type ListStarsErrors = {
2358
+ /**
2359
+ * Missing or invalid token (`unauthenticated`, `unsupported_token`, `invalid_token`), or GitHub sign-in has ended (`github_auth_retired`)
2360
+ */
2361
+ 401: ApiError;
2362
+ /**
2363
+ * A guest account of the Emergent Software tenant (`guest_not_allowed`)
2364
+ */
2365
+ 403: ApiError;
2366
+ /**
2367
+ * The calling ATK CLI is older than the API's minimum (`cli_outdated`); the message names the minimum and `npm i -g @detergent-software/atk`
2368
+ */
2369
+ 426: ApiError;
2370
+ /**
2371
+ * Entra could not be reached to validate the token (`entra_unavailable`)
2372
+ */
2373
+ 502: ApiError;
2374
+ /**
2375
+ * The usage database could not be reached (`usage_unavailable`)
2376
+ */
2377
+ 503: ApiError;
2378
+ };
2379
+ export type ListStarsError = ListStarsErrors[keyof ListStarsErrors];
2380
+ export type ListStarsResponses = {
2381
+ /**
2382
+ * Stars
2383
+ */
2384
+ 200: StarsResponse;
2385
+ };
2386
+ export type ListStarsResponse = ListStarsResponses[keyof ListStarsResponses];
2035
2387
  //# sourceMappingURL=types.gen.d.ts.map