@meetkai/mka1 0.54.49 → 0.54.51
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.
- package/README.md +313 -304
- package/bin/mcp-server.js +929 -484
- package/bin/mcp-server.js.map +30 -21
- package/dist/commonjs/funcs/flagsEnvironmentsGenerateEvaluationKey.d.ts +1 -1
- package/dist/commonjs/funcs/flagsEnvironmentsGenerateEvaluationKey.js +1 -1
- package/dist/commonjs/funcs/reposCreate.d.ts +3 -1
- package/dist/commonjs/funcs/reposCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/reposCreate.js +3 -1
- package/dist/commonjs/funcs/reposCreate.js.map +1 -1
- package/dist/commonjs/funcs/reposList.d.ts +3 -1
- package/dist/commonjs/funcs/reposList.d.ts.map +1 -1
- package/dist/commonjs/funcs/reposList.js +8 -2
- package/dist/commonjs/funcs/reposList.js.map +1 -1
- package/dist/commonjs/funcs/reposTagsDelete.d.ts +29 -0
- package/dist/commonjs/funcs/reposTagsDelete.d.ts.map +1 -0
- package/dist/commonjs/funcs/reposTagsDelete.js +155 -0
- package/dist/commonjs/funcs/reposTagsDelete.js.map +1 -0
- package/dist/commonjs/funcs/reposTagsList.d.ts +35 -0
- package/dist/commonjs/funcs/reposTagsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/reposTagsList.js +156 -0
- package/dist/commonjs/funcs/reposTagsList.js.map +1 -0
- package/dist/commonjs/funcs/reposUpdate.d.ts +15 -3
- package/dist/commonjs/funcs/reposUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/reposUpdate.js +15 -3
- package/dist/commonjs/funcs/reposUpdate.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +5 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/flagsEnvironmentsGenerateEvaluationKey.js +1 -1
- package/dist/commonjs/mcp-server/tools/flagsEnvironmentsGenerateEvaluationKey.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/reposCreate.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/reposCreate.js +3 -1
- package/dist/commonjs/mcp-server/tools/reposCreate.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/reposList.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/reposList.js +3 -1
- package/dist/commonjs/mcp-server/tools/reposList.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/reposTagsDelete.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/reposTagsDelete.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposTagsDelete.js +73 -0
- package/dist/commonjs/mcp-server/tools/reposTagsDelete.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposTagsList.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/reposTagsList.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposTagsList.js +79 -0
- package/dist/commonjs/mcp-server/tools/reposTagsList.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposUpdate.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/reposUpdate.js +15 -3
- package/dist/commonjs/mcp-server/tools/reposUpdate.js.map +1 -1
- package/dist/commonjs/models/components/createreporequest.d.ts +23 -0
- package/dist/commonjs/models/components/createreporequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createreporequest.js +16 -1
- package/dist/commonjs/models/components/createreporequest.js.map +1 -1
- package/dist/commonjs/models/components/featureflagenvironment.d.ts +10 -0
- package/dist/commonjs/models/components/featureflagenvironment.d.ts.map +1 -1
- package/dist/commonjs/models/components/featureflagenvironment.js +8 -0
- package/dist/commonjs/models/components/featureflagenvironment.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +3 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +3 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/patchreporequest.d.ts +9 -0
- package/dist/commonjs/models/components/patchreporequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/patchreporequest.js +3 -0
- package/dist/commonjs/models/components/patchreporequest.js.map +1 -1
- package/dist/commonjs/models/components/repo.d.ts +21 -0
- package/dist/commonjs/models/components/repo.d.ts.map +1 -1
- package/dist/commonjs/models/components/repo.js +5 -0
- package/dist/commonjs/models/components/repo.js.map +1 -1
- package/dist/commonjs/models/components/repokind.d.ts +36 -0
- package/dist/commonjs/models/components/repokind.d.ts.map +1 -0
- package/dist/commonjs/models/components/repokind.js +63 -0
- package/dist/commonjs/models/components/repokind.js.map +1 -0
- package/dist/commonjs/models/components/repotag.d.ts +42 -0
- package/dist/commonjs/models/components/repotag.d.ts.map +1 -0
- package/dist/commonjs/models/components/repotag.js +77 -0
- package/dist/commonjs/models/components/repotag.js.map +1 -0
- package/dist/commonjs/models/components/repotaglist.d.ts +29 -0
- package/dist/commonjs/models/components/repotaglist.d.ts.map +1 -0
- package/dist/commonjs/models/components/repotaglist.js +61 -0
- package/dist/commonjs/models/components/repotaglist.js.map +1 -0
- package/dist/commonjs/models/operations/deleterepotag.d.ts +35 -0
- package/dist/commonjs/models/operations/deleterepotag.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deleterepotag.js +73 -0
- package/dist/commonjs/models/operations/deleterepotag.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listrepos.d.ts +8 -0
- package/dist/commonjs/models/operations/listrepos.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listrepos.js +2 -0
- package/dist/commonjs/models/operations/listrepos.js.map +1 -1
- package/dist/commonjs/models/operations/listrepotags.d.ts +30 -0
- package/dist/commonjs/models/operations/listrepotags.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listrepotags.js +71 -0
- package/dist/commonjs/models/operations/listrepotags.js.map +1 -0
- package/dist/commonjs/react-query/flagsEnvironmentsGenerateEvaluationKey.d.ts +1 -1
- package/dist/commonjs/react-query/flagsEnvironmentsGenerateEvaluationKey.js +1 -1
- package/dist/commonjs/react-query/index.d.ts +2 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +2 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/reposCreate.d.ts +3 -1
- package/dist/commonjs/react-query/reposCreate.d.ts.map +1 -1
- package/dist/commonjs/react-query/reposCreate.js +3 -1
- package/dist/commonjs/react-query/reposCreate.js.map +1 -1
- package/dist/commonjs/react-query/reposList.core.d.ts +2 -0
- package/dist/commonjs/react-query/reposList.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/reposList.core.js +4 -1
- package/dist/commonjs/react-query/reposList.core.js.map +1 -1
- package/dist/commonjs/react-query/reposList.d.ts +14 -5
- package/dist/commonjs/react-query/reposList.d.ts.map +1 -1
- package/dist/commonjs/react-query/reposList.js +6 -2
- package/dist/commonjs/react-query/reposList.js.map +1 -1
- package/dist/commonjs/react-query/reposTagsDelete.d.ts +38 -0
- package/dist/commonjs/react-query/reposTagsDelete.d.ts.map +1 -0
- package/dist/commonjs/react-query/reposTagsDelete.js +56 -0
- package/dist/commonjs/react-query/reposTagsDelete.js.map +1 -0
- package/dist/commonjs/react-query/reposTagsList.core.d.ts +15 -0
- package/dist/commonjs/react-query/reposTagsList.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/reposTagsList.core.js +36 -0
- package/dist/commonjs/react-query/reposTagsList.core.js.map +1 -0
- package/dist/commonjs/react-query/reposTagsList.d.ts +69 -0
- package/dist/commonjs/react-query/reposTagsList.d.ts.map +1 -0
- package/dist/commonjs/react-query/reposTagsList.js +88 -0
- package/dist/commonjs/react-query/reposTagsList.js.map +1 -0
- package/dist/commonjs/react-query/reposUpdate.d.ts +15 -3
- package/dist/commonjs/react-query/reposUpdate.d.ts.map +1 -1
- package/dist/commonjs/react-query/reposUpdate.js +15 -3
- package/dist/commonjs/react-query/reposUpdate.js.map +1 -1
- package/dist/commonjs/sdk/environments.d.ts +1 -1
- package/dist/commonjs/sdk/environments.js +1 -1
- package/dist/commonjs/sdk/repos.d.ts +24 -5
- package/dist/commonjs/sdk/repos.d.ts.map +1 -1
- package/dist/commonjs/sdk/repos.js +25 -5
- package/dist/commonjs/sdk/repos.js.map +1 -1
- package/dist/commonjs/sdk/tags.d.ts +43 -0
- package/dist/commonjs/sdk/tags.d.ts.map +1 -0
- package/dist/commonjs/sdk/tags.js +55 -0
- package/dist/commonjs/sdk/tags.js.map +1 -0
- package/dist/esm/funcs/flagsEnvironmentsGenerateEvaluationKey.d.ts +1 -1
- package/dist/esm/funcs/flagsEnvironmentsGenerateEvaluationKey.js +1 -1
- package/dist/esm/funcs/reposCreate.d.ts +3 -1
- package/dist/esm/funcs/reposCreate.d.ts.map +1 -1
- package/dist/esm/funcs/reposCreate.js +3 -1
- package/dist/esm/funcs/reposCreate.js.map +1 -1
- package/dist/esm/funcs/reposList.d.ts +3 -1
- package/dist/esm/funcs/reposList.d.ts.map +1 -1
- package/dist/esm/funcs/reposList.js +9 -3
- package/dist/esm/funcs/reposList.js.map +1 -1
- package/dist/esm/funcs/reposTagsDelete.d.ts +29 -0
- package/dist/esm/funcs/reposTagsDelete.d.ts.map +1 -0
- package/dist/esm/funcs/reposTagsDelete.js +119 -0
- package/dist/esm/funcs/reposTagsDelete.js.map +1 -0
- package/dist/esm/funcs/reposTagsList.d.ts +35 -0
- package/dist/esm/funcs/reposTagsList.d.ts.map +1 -0
- package/dist/esm/funcs/reposTagsList.js +120 -0
- package/dist/esm/funcs/reposTagsList.js.map +1 -0
- package/dist/esm/funcs/reposUpdate.d.ts +15 -3
- package/dist/esm/funcs/reposUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/reposUpdate.js +15 -3
- package/dist/esm/funcs/reposUpdate.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +5 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/flagsEnvironmentsGenerateEvaluationKey.js +1 -1
- package/dist/esm/mcp-server/tools/flagsEnvironmentsGenerateEvaluationKey.js.map +1 -1
- package/dist/esm/mcp-server/tools/reposCreate.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/reposCreate.js +3 -1
- package/dist/esm/mcp-server/tools/reposCreate.js.map +1 -1
- package/dist/esm/mcp-server/tools/reposList.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/reposList.js +3 -1
- package/dist/esm/mcp-server/tools/reposList.js.map +1 -1
- package/dist/esm/mcp-server/tools/reposTagsDelete.d.ts +8 -0
- package/dist/esm/mcp-server/tools/reposTagsDelete.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/reposTagsDelete.js +37 -0
- package/dist/esm/mcp-server/tools/reposTagsDelete.js.map +1 -0
- package/dist/esm/mcp-server/tools/reposTagsList.d.ts +8 -0
- package/dist/esm/mcp-server/tools/reposTagsList.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/reposTagsList.js +43 -0
- package/dist/esm/mcp-server/tools/reposTagsList.js.map +1 -0
- package/dist/esm/mcp-server/tools/reposUpdate.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/reposUpdate.js +15 -3
- package/dist/esm/mcp-server/tools/reposUpdate.js.map +1 -1
- package/dist/esm/models/components/createreporequest.d.ts +23 -0
- package/dist/esm/models/components/createreporequest.d.ts.map +1 -1
- package/dist/esm/models/components/createreporequest.js +15 -0
- package/dist/esm/models/components/createreporequest.js.map +1 -1
- package/dist/esm/models/components/featureflagenvironment.d.ts +10 -0
- package/dist/esm/models/components/featureflagenvironment.d.ts.map +1 -1
- package/dist/esm/models/components/featureflagenvironment.js +8 -0
- package/dist/esm/models/components/featureflagenvironment.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +3 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +3 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/patchreporequest.d.ts +9 -0
- package/dist/esm/models/components/patchreporequest.d.ts.map +1 -1
- package/dist/esm/models/components/patchreporequest.js +3 -0
- package/dist/esm/models/components/patchreporequest.js.map +1 -1
- package/dist/esm/models/components/repo.d.ts +21 -0
- package/dist/esm/models/components/repo.d.ts.map +1 -1
- package/dist/esm/models/components/repo.js +5 -0
- package/dist/esm/models/components/repo.js.map +1 -1
- package/dist/esm/models/components/repokind.d.ts +36 -0
- package/dist/esm/models/components/repokind.d.ts.map +1 -0
- package/dist/esm/models/components/repokind.js +27 -0
- package/dist/esm/models/components/repokind.js.map +1 -0
- package/dist/esm/models/components/repotag.d.ts +42 -0
- package/dist/esm/models/components/repotag.d.ts.map +1 -0
- package/dist/esm/models/components/repotag.js +39 -0
- package/dist/esm/models/components/repotag.js.map +1 -0
- package/dist/esm/models/components/repotaglist.d.ts +29 -0
- package/dist/esm/models/components/repotaglist.d.ts.map +1 -0
- package/dist/esm/models/components/repotaglist.js +23 -0
- package/dist/esm/models/components/repotaglist.js.map +1 -0
- package/dist/esm/models/operations/deleterepotag.d.ts +35 -0
- package/dist/esm/models/operations/deleterepotag.d.ts.map +1 -0
- package/dist/esm/models/operations/deleterepotag.js +35 -0
- package/dist/esm/models/operations/deleterepotag.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listrepos.d.ts +8 -0
- package/dist/esm/models/operations/listrepos.d.ts.map +1 -1
- package/dist/esm/models/operations/listrepos.js +2 -0
- package/dist/esm/models/operations/listrepos.js.map +1 -1
- package/dist/esm/models/operations/listrepotags.d.ts +30 -0
- package/dist/esm/models/operations/listrepotags.d.ts.map +1 -0
- package/dist/esm/models/operations/listrepotags.js +33 -0
- package/dist/esm/models/operations/listrepotags.js.map +1 -0
- package/dist/esm/react-query/flagsEnvironmentsGenerateEvaluationKey.d.ts +1 -1
- package/dist/esm/react-query/flagsEnvironmentsGenerateEvaluationKey.js +1 -1
- package/dist/esm/react-query/index.d.ts +2 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +2 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/reposCreate.d.ts +3 -1
- package/dist/esm/react-query/reposCreate.d.ts.map +1 -1
- package/dist/esm/react-query/reposCreate.js +3 -1
- package/dist/esm/react-query/reposCreate.js.map +1 -1
- package/dist/esm/react-query/reposList.core.d.ts +2 -0
- package/dist/esm/react-query/reposList.core.d.ts.map +1 -1
- package/dist/esm/react-query/reposList.core.js +4 -1
- package/dist/esm/react-query/reposList.core.js.map +1 -1
- package/dist/esm/react-query/reposList.d.ts +14 -5
- package/dist/esm/react-query/reposList.d.ts.map +1 -1
- package/dist/esm/react-query/reposList.js +6 -2
- package/dist/esm/react-query/reposList.js.map +1 -1
- package/dist/esm/react-query/reposTagsDelete.d.ts +38 -0
- package/dist/esm/react-query/reposTagsDelete.d.ts.map +1 -0
- package/dist/esm/react-query/reposTagsDelete.js +51 -0
- package/dist/esm/react-query/reposTagsDelete.js.map +1 -0
- package/dist/esm/react-query/reposTagsList.core.d.ts +15 -0
- package/dist/esm/react-query/reposTagsList.core.d.ts.map +1 -0
- package/dist/esm/react-query/reposTagsList.core.js +31 -0
- package/dist/esm/react-query/reposTagsList.core.js.map +1 -0
- package/dist/esm/react-query/reposTagsList.d.ts +69 -0
- package/dist/esm/react-query/reposTagsList.d.ts.map +1 -0
- package/dist/esm/react-query/reposTagsList.js +78 -0
- package/dist/esm/react-query/reposTagsList.js.map +1 -0
- package/dist/esm/react-query/reposUpdate.d.ts +15 -3
- package/dist/esm/react-query/reposUpdate.d.ts.map +1 -1
- package/dist/esm/react-query/reposUpdate.js +15 -3
- package/dist/esm/react-query/reposUpdate.js.map +1 -1
- package/dist/esm/sdk/environments.d.ts +1 -1
- package/dist/esm/sdk/environments.js +1 -1
- package/dist/esm/sdk/repos.d.ts +24 -5
- package/dist/esm/sdk/repos.d.ts.map +1 -1
- package/dist/esm/sdk/repos.js +25 -5
- package/dist/esm/sdk/repos.js.map +1 -1
- package/dist/esm/sdk/tags.d.ts +43 -0
- package/dist/esm/sdk/tags.d.ts.map +1 -0
- package/dist/esm/sdk/tags.js +51 -0
- package/dist/esm/sdk/tags.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/flagsEnvironmentsGenerateEvaluationKey.ts +1 -1
- package/src/funcs/reposCreate.ts +3 -1
- package/src/funcs/reposList.ts +10 -3
- package/src/funcs/reposTagsDelete.ts +212 -0
- package/src/funcs/reposTagsList.ts +213 -0
- package/src/funcs/reposUpdate.ts +15 -3
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/flagsEnvironmentsGenerateEvaluationKey.ts +1 -1
- package/src/mcp-server/tools/reposCreate.ts +3 -1
- package/src/mcp-server/tools/reposList.ts +3 -1
- package/src/mcp-server/tools/reposTagsDelete.ts +45 -0
- package/src/mcp-server/tools/reposTagsList.ts +52 -0
- package/src/mcp-server/tools/reposUpdate.ts +15 -3
- package/src/models/components/createreporequest.ts +31 -0
- package/src/models/components/featureflagenvironment.ts +18 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/patchreporequest.ts +15 -0
- package/src/models/components/repo.ts +29 -0
- package/src/models/components/repokind.ts +43 -0
- package/src/models/components/repotag.ts +90 -0
- package/src/models/components/repotaglist.ts +66 -0
- package/src/models/operations/deleterepotag.ts +84 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listrepos.ts +10 -0
- package/src/models/operations/listrepotags.ts +77 -0
- package/src/react-query/flagsEnvironmentsGenerateEvaluationKey.ts +1 -1
- package/src/react-query/index.ts +2 -0
- package/src/react-query/reposCreate.ts +3 -1
- package/src/react-query/reposList.core.ts +9 -2
- package/src/react-query/reposList.ts +17 -4
- package/src/react-query/reposTagsDelete.ts +119 -0
- package/src/react-query/reposTagsList.core.ts +75 -0
- package/src/react-query/reposTagsList.ts +167 -0
- package/src/react-query/reposUpdate.ts +15 -3
- package/src/sdk/environments.ts +1 -1
- package/src/sdk/repos.ts +27 -5
- package/src/sdk/tags.ts +69 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
MutationKey,
|
|
7
|
+
useMutation,
|
|
8
|
+
UseMutationResult,
|
|
9
|
+
} from "@tanstack/react-query";
|
|
10
|
+
import { SDKCore } from "../core.js";
|
|
11
|
+
import { reposTagsDelete } from "../funcs/reposTagsDelete.js";
|
|
12
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
27
|
+
import { useSDKContext } from "./_context.js";
|
|
28
|
+
import { MutationHookOptions } from "./_types.js";
|
|
29
|
+
|
|
30
|
+
export type ReposTagsDeleteMutationVariables = {
|
|
31
|
+
request: operations.DeleteRepoTagRequest;
|
|
32
|
+
options?: RequestOptions;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type ReposTagsDeleteMutationData = void;
|
|
36
|
+
|
|
37
|
+
export type ReposTagsDeleteMutationError =
|
|
38
|
+
| errors.RepoError
|
|
39
|
+
| SDKError
|
|
40
|
+
| ResponseValidationError
|
|
41
|
+
| ConnectionError
|
|
42
|
+
| RequestAbortedError
|
|
43
|
+
| RequestTimeoutError
|
|
44
|
+
| InvalidRequestError
|
|
45
|
+
| UnexpectedClientError
|
|
46
|
+
| SDKValidationError;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Delete an image tag
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* Removes one tag; org owner/admin only (`write:repos` for a key). The
|
|
53
|
+
* same untag as the registry's `DELETE /v2/{org}/{name}/manifests/{tag}`:
|
|
54
|
+
* the name goes and the image stays, reachable by digest and by any
|
|
55
|
+
* other tag that names it.
|
|
56
|
+
*
|
|
57
|
+
* What makes a repository convertible afterwards is the kind switch
|
|
58
|
+
* itself: `PATCH` to another `kind` first collects every image no tag
|
|
59
|
+
* reaches (a multi-arch index's per-platform images included) and is
|
|
60
|
+
* refused with `409 kind_has_content` only for images a tag still
|
|
61
|
+
* names. So delete the tags the listing shows, then switch.
|
|
62
|
+
*/
|
|
63
|
+
export function useReposTagsDeleteMutation(
|
|
64
|
+
options?: MutationHookOptions<
|
|
65
|
+
ReposTagsDeleteMutationData,
|
|
66
|
+
ReposTagsDeleteMutationError,
|
|
67
|
+
ReposTagsDeleteMutationVariables
|
|
68
|
+
>,
|
|
69
|
+
): UseMutationResult<
|
|
70
|
+
ReposTagsDeleteMutationData,
|
|
71
|
+
ReposTagsDeleteMutationError,
|
|
72
|
+
ReposTagsDeleteMutationVariables
|
|
73
|
+
> {
|
|
74
|
+
const client = useSDKContext();
|
|
75
|
+
return useMutation({
|
|
76
|
+
...buildReposTagsDeleteMutation(client, options),
|
|
77
|
+
...options,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function mutationKeyReposTagsDelete(): MutationKey {
|
|
82
|
+
return ["@meetkai/mka1", "tags", "delete"];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function buildReposTagsDeleteMutation(
|
|
86
|
+
client$: SDKCore,
|
|
87
|
+
hookOptions?: RequestOptions,
|
|
88
|
+
): {
|
|
89
|
+
mutationKey: MutationKey;
|
|
90
|
+
mutationFn: (
|
|
91
|
+
variables: ReposTagsDeleteMutationVariables,
|
|
92
|
+
) => Promise<ReposTagsDeleteMutationData>;
|
|
93
|
+
} {
|
|
94
|
+
return {
|
|
95
|
+
mutationKey: mutationKeyReposTagsDelete(),
|
|
96
|
+
mutationFn: function reposTagsDeleteMutationFn({
|
|
97
|
+
request,
|
|
98
|
+
options,
|
|
99
|
+
}): Promise<ReposTagsDeleteMutationData> {
|
|
100
|
+
const mergedOptions = {
|
|
101
|
+
...hookOptions,
|
|
102
|
+
...options,
|
|
103
|
+
fetchOptions: {
|
|
104
|
+
...hookOptions?.fetchOptions,
|
|
105
|
+
...options?.fetchOptions,
|
|
106
|
+
signal: combineSignals(
|
|
107
|
+
hookOptions?.fetchOptions?.signal,
|
|
108
|
+
options?.fetchOptions?.signal,
|
|
109
|
+
),
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
return unwrapAsync(reposTagsDelete(
|
|
113
|
+
client$,
|
|
114
|
+
request,
|
|
115
|
+
mergedOptions,
|
|
116
|
+
));
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
QueryClient,
|
|
7
|
+
QueryFunctionContext,
|
|
8
|
+
QueryKey,
|
|
9
|
+
} from "@tanstack/react-query";
|
|
10
|
+
import { SDKCore } from "../core.js";
|
|
11
|
+
import { reposTagsList } from "../funcs/reposTagsList.js";
|
|
12
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import * as operations from "../models/operations/index.js";
|
|
16
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
17
|
+
export type ReposTagsListQueryData = components.RepoTagList;
|
|
18
|
+
|
|
19
|
+
export function prefetchReposTagsList(
|
|
20
|
+
queryClient: QueryClient,
|
|
21
|
+
client$: SDKCore,
|
|
22
|
+
request: operations.ListRepoTagsRequest,
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): Promise<void> {
|
|
25
|
+
return queryClient.prefetchQuery({
|
|
26
|
+
...buildReposTagsListQuery(
|
|
27
|
+
client$,
|
|
28
|
+
request,
|
|
29
|
+
options,
|
|
30
|
+
),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function buildReposTagsListQuery(
|
|
35
|
+
client$: SDKCore,
|
|
36
|
+
request: operations.ListRepoTagsRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): {
|
|
39
|
+
queryKey: QueryKey;
|
|
40
|
+
queryFn: (context: QueryFunctionContext) => Promise<ReposTagsListQueryData>;
|
|
41
|
+
} {
|
|
42
|
+
return {
|
|
43
|
+
queryKey: queryKeyReposTagsList(request.org, request.name, {
|
|
44
|
+
xOnBehalfOf: request.xOnBehalfOf,
|
|
45
|
+
}),
|
|
46
|
+
queryFn: async function reposTagsListQueryFn(
|
|
47
|
+
ctx,
|
|
48
|
+
): Promise<ReposTagsListQueryData> {
|
|
49
|
+
const sig = combineSignals(
|
|
50
|
+
ctx.signal,
|
|
51
|
+
options?.signal,
|
|
52
|
+
options?.fetchOptions?.signal,
|
|
53
|
+
);
|
|
54
|
+
const mergedOptions = {
|
|
55
|
+
...options?.fetchOptions,
|
|
56
|
+
...options,
|
|
57
|
+
signal: sig,
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
return unwrapAsync(reposTagsList(
|
|
61
|
+
client$,
|
|
62
|
+
request,
|
|
63
|
+
mergedOptions,
|
|
64
|
+
));
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function queryKeyReposTagsList(
|
|
70
|
+
org: string,
|
|
71
|
+
name: string,
|
|
72
|
+
parameters: { xOnBehalfOf?: string | undefined },
|
|
73
|
+
): QueryKey {
|
|
74
|
+
return ["@meetkai/mka1", "tags", "list", org, name, parameters];
|
|
75
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
InvalidateQueryFilters,
|
|
7
|
+
QueryClient,
|
|
8
|
+
useQuery,
|
|
9
|
+
UseQueryResult,
|
|
10
|
+
useSuspenseQuery,
|
|
11
|
+
UseSuspenseQueryResult,
|
|
12
|
+
} from "@tanstack/react-query";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import * as errors from "../models/errors/index.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { useSDKContext } from "./_context.js";
|
|
26
|
+
import {
|
|
27
|
+
QueryHookOptions,
|
|
28
|
+
SuspenseQueryHookOptions,
|
|
29
|
+
TupleToPrefixes,
|
|
30
|
+
} from "./_types.js";
|
|
31
|
+
import {
|
|
32
|
+
buildReposTagsListQuery,
|
|
33
|
+
prefetchReposTagsList,
|
|
34
|
+
queryKeyReposTagsList,
|
|
35
|
+
ReposTagsListQueryData,
|
|
36
|
+
} from "./reposTagsList.core.js";
|
|
37
|
+
export {
|
|
38
|
+
buildReposTagsListQuery,
|
|
39
|
+
prefetchReposTagsList,
|
|
40
|
+
queryKeyReposTagsList,
|
|
41
|
+
type ReposTagsListQueryData,
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type ReposTagsListQueryError =
|
|
45
|
+
| errors.RepoError
|
|
46
|
+
| SDKError
|
|
47
|
+
| ResponseValidationError
|
|
48
|
+
| ConnectionError
|
|
49
|
+
| RequestAbortedError
|
|
50
|
+
| RequestTimeoutError
|
|
51
|
+
| InvalidRequestError
|
|
52
|
+
| UnexpectedClientError
|
|
53
|
+
| SDKValidationError;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* List an image repository's tags
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* Lists the container-image tags a repository holds, newest-moved first,
|
|
60
|
+
* each with the manifest it points at, the manifest's media type, the
|
|
61
|
+
* image's declared size and when the tag last moved. The same access
|
|
62
|
+
* check as reading the repository (org owner/admin; `read:repos` for a
|
|
63
|
+
* key).
|
|
64
|
+
*
|
|
65
|
+
* It is a fact about what the repository HOLDS, not about its `kind`:
|
|
66
|
+
* a `model` lists `[]`, and a legacy `kind: null` repository that still
|
|
67
|
+
* holds images lists them — those are the tags a `409 kind_has_content`
|
|
68
|
+
* on PATCH is about, and deleting them through this API is what makes
|
|
69
|
+
* that PATCH go through.
|
|
70
|
+
*
|
|
71
|
+
* One page, of at most 1000 tags; `truncated` says whether the
|
|
72
|
+
* repository holds more. The registry's own `GET /v2/{org}/{name}/tags/list`
|
|
73
|
+
* is the paginated, names-only listing every OCI client speaks.
|
|
74
|
+
*/
|
|
75
|
+
export function useReposTagsList(
|
|
76
|
+
request: operations.ListRepoTagsRequest,
|
|
77
|
+
options?: QueryHookOptions<ReposTagsListQueryData, ReposTagsListQueryError>,
|
|
78
|
+
): UseQueryResult<ReposTagsListQueryData, ReposTagsListQueryError> {
|
|
79
|
+
const client = useSDKContext();
|
|
80
|
+
return useQuery({
|
|
81
|
+
...buildReposTagsListQuery(
|
|
82
|
+
client,
|
|
83
|
+
request,
|
|
84
|
+
options,
|
|
85
|
+
),
|
|
86
|
+
...options,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* List an image repository's tags
|
|
92
|
+
*
|
|
93
|
+
* @remarks
|
|
94
|
+
* Lists the container-image tags a repository holds, newest-moved first,
|
|
95
|
+
* each with the manifest it points at, the manifest's media type, the
|
|
96
|
+
* image's declared size and when the tag last moved. The same access
|
|
97
|
+
* check as reading the repository (org owner/admin; `read:repos` for a
|
|
98
|
+
* key).
|
|
99
|
+
*
|
|
100
|
+
* It is a fact about what the repository HOLDS, not about its `kind`:
|
|
101
|
+
* a `model` lists `[]`, and a legacy `kind: null` repository that still
|
|
102
|
+
* holds images lists them — those are the tags a `409 kind_has_content`
|
|
103
|
+
* on PATCH is about, and deleting them through this API is what makes
|
|
104
|
+
* that PATCH go through.
|
|
105
|
+
*
|
|
106
|
+
* One page, of at most 1000 tags; `truncated` says whether the
|
|
107
|
+
* repository holds more. The registry's own `GET /v2/{org}/{name}/tags/list`
|
|
108
|
+
* is the paginated, names-only listing every OCI client speaks.
|
|
109
|
+
*/
|
|
110
|
+
export function useReposTagsListSuspense(
|
|
111
|
+
request: operations.ListRepoTagsRequest,
|
|
112
|
+
options?: SuspenseQueryHookOptions<
|
|
113
|
+
ReposTagsListQueryData,
|
|
114
|
+
ReposTagsListQueryError
|
|
115
|
+
>,
|
|
116
|
+
): UseSuspenseQueryResult<ReposTagsListQueryData, ReposTagsListQueryError> {
|
|
117
|
+
const client = useSDKContext();
|
|
118
|
+
return useSuspenseQuery({
|
|
119
|
+
...buildReposTagsListQuery(
|
|
120
|
+
client,
|
|
121
|
+
request,
|
|
122
|
+
options,
|
|
123
|
+
),
|
|
124
|
+
...options,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function setReposTagsListData(
|
|
129
|
+
client: QueryClient,
|
|
130
|
+
queryKeyBase: [
|
|
131
|
+
org: string,
|
|
132
|
+
name: string,
|
|
133
|
+
parameters: { xOnBehalfOf?: string | undefined },
|
|
134
|
+
],
|
|
135
|
+
data: ReposTagsListQueryData,
|
|
136
|
+
): ReposTagsListQueryData | undefined {
|
|
137
|
+
const key = queryKeyReposTagsList(...queryKeyBase);
|
|
138
|
+
|
|
139
|
+
return client.setQueryData<ReposTagsListQueryData>(key, data);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function invalidateReposTagsList(
|
|
143
|
+
client: QueryClient,
|
|
144
|
+
queryKeyBase: TupleToPrefixes<
|
|
145
|
+
[
|
|
146
|
+
org: string,
|
|
147
|
+
name: string,
|
|
148
|
+
parameters: { xOnBehalfOf?: string | undefined },
|
|
149
|
+
]
|
|
150
|
+
>,
|
|
151
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
152
|
+
): Promise<void> {
|
|
153
|
+
return client.invalidateQueries({
|
|
154
|
+
...filters,
|
|
155
|
+
queryKey: ["@meetkai/mka1", "tags", "list", ...queryKeyBase],
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function invalidateAllReposTagsList(
|
|
160
|
+
client: QueryClient,
|
|
161
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
162
|
+
): Promise<void> {
|
|
163
|
+
return client.invalidateQueries({
|
|
164
|
+
...filters,
|
|
165
|
+
queryKey: ["@meetkai/mka1", "tags", "list"],
|
|
166
|
+
});
|
|
167
|
+
}
|
|
@@ -50,9 +50,21 @@ export type ReposUpdateMutationError =
|
|
|
50
50
|
* Update a repository's labels
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* Applies a label-only update (name/description); org owner/admin
|
|
54
|
-
* The repository id is stable, so a rename is a one-row DB update
|
|
55
|
-
* Gitea write. Omitted fields are left unchanged.
|
|
53
|
+
* Applies a label-only update (name/description/kind); org owner/admin
|
|
54
|
+
* only. The repository id is stable, so a rename is a one-row DB update
|
|
55
|
+
* — no Gitea write. Omitted fields are left unchanged.
|
|
56
|
+
*
|
|
57
|
+
* `kind` is the ONE way a repository's kind changes after creation (the
|
|
58
|
+
* protocol planes never change it): it types a legacy `kind: null`
|
|
59
|
+
* repository and corrects a wrong kind. `repo`, `model` and `dataset`
|
|
60
|
+
* convert freely and any repository may become `image`; a repository
|
|
61
|
+
* whose container images are still named by a tag can be given no
|
|
62
|
+
* other kind — leaving `image`, or typing a legacy `null` row as
|
|
63
|
+
* anything else, is refused with `409 kind_has_content` (list and
|
|
64
|
+
* delete the tags through this API first). A switch away from `image`
|
|
65
|
+
* collects every image no tag reaches before it is judged, so an image
|
|
66
|
+
* only ever pushed by digest, or untagged through the registry, never
|
|
67
|
+
* blocks it. A kind is never un-set.
|
|
56
68
|
*/
|
|
57
69
|
export function useReposUpdateMutation(
|
|
58
70
|
options?: MutationHookOptions<
|
package/src/sdk/environments.ts
CHANGED
|
@@ -131,7 +131,7 @@ export class Environments extends ClientSDK {
|
|
|
131
131
|
* Generate or replace an environment evaluation key
|
|
132
132
|
*
|
|
133
133
|
* @remarks
|
|
134
|
-
* Returns the new plaintext key once. Only its SHA-256 digest
|
|
134
|
+
* Returns the new plaintext key once. Only its SHA-256 digest and a display hint are stored; generating another key immediately replaces the previous credential on this replica.
|
|
135
135
|
*/
|
|
136
136
|
async generateEvaluationKey(
|
|
137
137
|
request: operations.GenerateFeatureFlagEvaluationKeyRequest,
|
package/src/sdk/repos.ts
CHANGED
|
@@ -11,14 +11,22 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
|
11
11
|
import * as components from "../models/components/index.js";
|
|
12
12
|
import * as operations from "../models/operations/index.js";
|
|
13
13
|
import { unwrapAsync } from "../types/fp.js";
|
|
14
|
+
import { Tags } from "./tags.js";
|
|
14
15
|
|
|
15
16
|
export class Repos extends ClientSDK {
|
|
17
|
+
private _tags?: Tags;
|
|
18
|
+
get tags(): Tags {
|
|
19
|
+
return (this._tags ??= new Tags(this._options));
|
|
20
|
+
}
|
|
21
|
+
|
|
16
22
|
/**
|
|
17
23
|
* List the caller's org's repositories
|
|
18
24
|
*
|
|
19
25
|
* @remarks
|
|
20
26
|
* Returns every repository in the caller's org (org owner/admin only).
|
|
21
|
-
* Pure DB read.
|
|
27
|
+
* Pure DB read. With `kind`, only repositories of that kind; an untyped
|
|
28
|
+
* (legacy, `kind: null`) repository appears in the unfiltered listing
|
|
29
|
+
* only.
|
|
22
30
|
*/
|
|
23
31
|
async list(
|
|
24
32
|
request: operations.ListReposRequest,
|
|
@@ -37,7 +45,9 @@ export class Repos extends ClientSDK {
|
|
|
37
45
|
* @remarks
|
|
38
46
|
* Provisions a repository (org owner/admin only): DB insert
|
|
39
47
|
* (authoritative) → Gitea create (rolled back on failure). The repository
|
|
40
|
-
* belongs to the caller's org.
|
|
48
|
+
* belongs to the caller's org. `kind` says what it will hold and defaults
|
|
49
|
+
* to `repo` (a plain git repository); it decides which protocol planes
|
|
50
|
+
* answer for the name (see the `Repo` schema).
|
|
41
51
|
*/
|
|
42
52
|
async create(
|
|
43
53
|
request: operations.CreateRepoRequest,
|
|
@@ -90,9 +100,21 @@ export class Repos extends ClientSDK {
|
|
|
90
100
|
* Update a repository's labels
|
|
91
101
|
*
|
|
92
102
|
* @remarks
|
|
93
|
-
* Applies a label-only update (name/description); org owner/admin
|
|
94
|
-
* The repository id is stable, so a rename is a one-row DB update
|
|
95
|
-
* Gitea write. Omitted fields are left unchanged.
|
|
103
|
+
* Applies a label-only update (name/description/kind); org owner/admin
|
|
104
|
+
* only. The repository id is stable, so a rename is a one-row DB update
|
|
105
|
+
* — no Gitea write. Omitted fields are left unchanged.
|
|
106
|
+
*
|
|
107
|
+
* `kind` is the ONE way a repository's kind changes after creation (the
|
|
108
|
+
* protocol planes never change it): it types a legacy `kind: null`
|
|
109
|
+
* repository and corrects a wrong kind. `repo`, `model` and `dataset`
|
|
110
|
+
* convert freely and any repository may become `image`; a repository
|
|
111
|
+
* whose container images are still named by a tag can be given no
|
|
112
|
+
* other kind — leaving `image`, or typing a legacy `null` row as
|
|
113
|
+
* anything else, is refused with `409 kind_has_content` (list and
|
|
114
|
+
* delete the tags through this API first). A switch away from `image`
|
|
115
|
+
* collects every image no tag reaches before it is judged, so an image
|
|
116
|
+
* only ever pushed by digest, or untagged through the registry, never
|
|
117
|
+
* blocks it. A kind is never un-set.
|
|
96
118
|
*/
|
|
97
119
|
async update(
|
|
98
120
|
request: operations.PatchRepoRequest,
|
package/src/sdk/tags.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { reposTagsDelete } from "../funcs/reposTagsDelete.js";
|
|
6
|
+
import { reposTagsList } from "../funcs/reposTagsList.js";
|
|
7
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
+
import * as components from "../models/components/index.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
10
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
11
|
+
|
|
12
|
+
export class Tags extends ClientSDK {
|
|
13
|
+
/**
|
|
14
|
+
* List an image repository's tags
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* Lists the container-image tags a repository holds, newest-moved first,
|
|
18
|
+
* each with the manifest it points at, the manifest's media type, the
|
|
19
|
+
* image's declared size and when the tag last moved. The same access
|
|
20
|
+
* check as reading the repository (org owner/admin; `read:repos` for a
|
|
21
|
+
* key).
|
|
22
|
+
*
|
|
23
|
+
* It is a fact about what the repository HOLDS, not about its `kind`:
|
|
24
|
+
* a `model` lists `[]`, and a legacy `kind: null` repository that still
|
|
25
|
+
* holds images lists them — those are the tags a `409 kind_has_content`
|
|
26
|
+
* on PATCH is about, and deleting them through this API is what makes
|
|
27
|
+
* that PATCH go through.
|
|
28
|
+
*
|
|
29
|
+
* One page, of at most 1000 tags; `truncated` says whether the
|
|
30
|
+
* repository holds more. The registry's own `GET /v2/{org}/{name}/tags/list`
|
|
31
|
+
* is the paginated, names-only listing every OCI client speaks.
|
|
32
|
+
*/
|
|
33
|
+
async list(
|
|
34
|
+
request: operations.ListRepoTagsRequest,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): Promise<components.RepoTagList> {
|
|
37
|
+
return unwrapAsync(reposTagsList(
|
|
38
|
+
this,
|
|
39
|
+
request,
|
|
40
|
+
options,
|
|
41
|
+
));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Delete an image tag
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* Removes one tag; org owner/admin only (`write:repos` for a key). The
|
|
49
|
+
* same untag as the registry's `DELETE /v2/{org}/{name}/manifests/{tag}`:
|
|
50
|
+
* the name goes and the image stays, reachable by digest and by any
|
|
51
|
+
* other tag that names it.
|
|
52
|
+
*
|
|
53
|
+
* What makes a repository convertible afterwards is the kind switch
|
|
54
|
+
* itself: `PATCH` to another `kind` first collects every image no tag
|
|
55
|
+
* reaches (a multi-arch index's per-platform images included) and is
|
|
56
|
+
* refused with `409 kind_has_content` only for images a tag still
|
|
57
|
+
* names. So delete the tags the listing shows, then switch.
|
|
58
|
+
*/
|
|
59
|
+
async delete(
|
|
60
|
+
request: operations.DeleteRepoTagRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<void> {
|
|
63
|
+
return unwrapAsync(reposTagsDelete(
|
|
64
|
+
this,
|
|
65
|
+
request,
|
|
66
|
+
options,
|
|
67
|
+
));
|
|
68
|
+
}
|
|
69
|
+
}
|