@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 @@
|
|
|
1
|
+
{"version":3,"file":"reposTagsList.js","sourceRoot":"","sources":["../../../src/react-query/reposTagsList.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAGL,QAAQ,EAER,gBAAgB,GAEjB,MAAM,uBAAuB,CAAC;AAa/B,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAM9C,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,GAEtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,GAEtB,CAAC;AAaF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,gBAAgB,CAC9B,OAAuC,EACvC,OAA2E;IAE3E,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,OAAO,QAAQ,CAAC;QACd,GAAG,uBAAuB,CACxB,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,wBAAwB,CACtC,OAAuC,EACvC,OAGC;IAED,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,OAAO,gBAAgB,CAAC;QACtB,GAAG,uBAAuB,CACxB,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,MAAmB,EACnB,YAIC,EACD,IAA4B;IAE5B,MAAM,GAAG,GAAG,qBAAqB,CAAC,GAAG,YAAY,CAAC,CAAC;IAEnD,OAAO,MAAM,CAAC,YAAY,CAAyB,GAAG,EAAE,IAAI,CAAC,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,MAAmB,EACnB,YAMC,EACD,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,YAAY,CAAC;KAC7D,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,0BAA0B,CACxC,MAAmB,EACnB,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,MAAM,CAAC;KAC5C,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -19,9 +19,21 @@ export type ReposUpdateMutationError = errors.RepoError | SDKError | ResponseVal
|
|
|
19
19
|
* Update a repository's labels
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
|
-
* Applies a label-only update (name/description); org owner/admin
|
|
23
|
-
* The repository id is stable, so a rename is a one-row DB update
|
|
24
|
-
* Gitea write. Omitted fields are left unchanged.
|
|
22
|
+
* Applies a label-only update (name/description/kind); org owner/admin
|
|
23
|
+
* only. The repository id is stable, so a rename is a one-row DB update
|
|
24
|
+
* — no Gitea write. Omitted fields are left unchanged.
|
|
25
|
+
*
|
|
26
|
+
* `kind` is the ONE way a repository's kind changes after creation (the
|
|
27
|
+
* protocol planes never change it): it types a legacy `kind: null`
|
|
28
|
+
* repository and corrects a wrong kind. `repo`, `model` and `dataset`
|
|
29
|
+
* convert freely and any repository may become `image`; a repository
|
|
30
|
+
* whose container images are still named by a tag can be given no
|
|
31
|
+
* other kind — leaving `image`, or typing a legacy `null` row as
|
|
32
|
+
* anything else, is refused with `409 kind_has_content` (list and
|
|
33
|
+
* delete the tags through this API first). A switch away from `image`
|
|
34
|
+
* collects every image no tag reaches before it is judged, so an image
|
|
35
|
+
* only ever pushed by digest, or untagged through the registry, never
|
|
36
|
+
* blocks it. A kind is never un-set.
|
|
25
37
|
*/
|
|
26
38
|
export declare function useReposUpdateMutation(options?: MutationHookOptions<ReposUpdateMutationData, ReposUpdateMutationError, ReposUpdateMutationVariables>): UseMutationResult<ReposUpdateMutationData, ReposUpdateMutationError, ReposUpdateMutationVariables>;
|
|
27
39
|
export declare function mutationKeyReposUpdate(): MutationKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reposUpdate.d.ts","sourceRoot":"","sources":["../../../src/react-query/reposUpdate.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EAEX,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,4BAA4B,GAAG;IACzC,OAAO,EAAE,UAAU,CAAC,gBAAgB,CAAC;IACrC,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,IAAI,CAAC;AAEtD,MAAM,MAAM,wBAAwB,GAChC,MAAM,CAAC,SAAS,GAChB,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CAAC;AAEvB
|
|
1
|
+
{"version":3,"file":"reposUpdate.d.ts","sourceRoot":"","sources":["../../../src/react-query/reposUpdate.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EAEX,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,4BAA4B,GAAG;IACzC,OAAO,EAAE,UAAU,CAAC,gBAAgB,CAAC;IACrC,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,IAAI,CAAC;AAEtD,MAAM,MAAM,wBAAwB,GAChC,MAAM,CAAC,SAAS,GAChB,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,CAAC,EAAE,mBAAmB,CAC3B,uBAAuB,EACvB,wBAAwB,EACxB,4BAA4B,CAC7B,GACA,iBAAiB,CAClB,uBAAuB,EACvB,wBAAwB,EACxB,4BAA4B,CAC7B,CAMA;AAED,wBAAgB,sBAAsB,IAAI,WAAW,CAEpD;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,OAAO,EAChB,WAAW,CAAC,EAAE,cAAc,GAC3B;IACD,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,CACV,SAAS,EAAE,4BAA4B,KACpC,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACvC,CA0BA"}
|
|
@@ -10,9 +10,21 @@ import { useSDKContext } from "./_context.js";
|
|
|
10
10
|
* Update a repository's labels
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
* Applies a label-only update (name/description); org owner/admin
|
|
14
|
-
* The repository id is stable, so a rename is a one-row DB update
|
|
15
|
-
* Gitea write. Omitted fields are left unchanged.
|
|
13
|
+
* Applies a label-only update (name/description/kind); org owner/admin
|
|
14
|
+
* only. The repository id is stable, so a rename is a one-row DB update
|
|
15
|
+
* — no Gitea write. Omitted fields are left unchanged.
|
|
16
|
+
*
|
|
17
|
+
* `kind` is the ONE way a repository's kind changes after creation (the
|
|
18
|
+
* protocol planes never change it): it types a legacy `kind: null`
|
|
19
|
+
* repository and corrects a wrong kind. `repo`, `model` and `dataset`
|
|
20
|
+
* convert freely and any repository may become `image`; a repository
|
|
21
|
+
* whose container images are still named by a tag can be given no
|
|
22
|
+
* other kind — leaving `image`, or typing a legacy `null` row as
|
|
23
|
+
* anything else, is refused with `409 kind_has_content` (list and
|
|
24
|
+
* delete the tags through this API first). A switch away from `image`
|
|
25
|
+
* collects every image no tag reaches before it is judged, so an image
|
|
26
|
+
* only ever pushed by digest, or untagged through the registry, never
|
|
27
|
+
* blocks it. A kind is never un-set.
|
|
16
28
|
*/
|
|
17
29
|
export function useReposUpdateMutation(options) {
|
|
18
30
|
const client = useSDKContext();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reposUpdate.js","sourceRoot":"","sources":["../../../src/react-query/reposUpdate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAEL,WAAW,GAEZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAetD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAqB9C
|
|
1
|
+
{"version":3,"file":"reposUpdate.js","sourceRoot":"","sources":["../../../src/react-query/reposUpdate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAEL,WAAW,GAEZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAetD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAqB9C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,sBAAsB,CACpC,OAIC;IAMD,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,OAAO,WAAW,CAAC;QACjB,GAAG,wBAAwB,CAAC,MAAM,EAAE,OAAO,CAAC;QAC5C,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,sBAAsB;IACpC,OAAO,CAAC,eAAe,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,OAAgB,EAChB,WAA4B;IAO5B,OAAO;QACL,WAAW,EAAE,sBAAsB,EAAE;QACrC,UAAU,EAAE,SAAS,qBAAqB,CAAC,EACzC,OAAO,EACP,OAAO,GACR;YACC,MAAM,aAAa,GAAG;gBACpB,GAAG,WAAW;gBACd,GAAG,OAAO;gBACV,YAAY,EAAE;oBACZ,GAAG,WAAW,EAAE,YAAY;oBAC5B,GAAG,OAAO,EAAE,YAAY;oBACxB,MAAM,EAAE,cAAc,CACpB,WAAW,EAAE,YAAY,EAAE,MAAM,EACjC,OAAO,EAAE,YAAY,EAAE,MAAM,CAC9B;iBACF;aACF,CAAC;YACF,OAAO,WAAW,CAAC,WAAW,CAC5B,OAAO,EACP,OAAO,EACP,aAAa,CACd,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -43,7 +43,7 @@ export declare class Environments extends ClientSDK {
|
|
|
43
43
|
* Generate or replace an environment evaluation key
|
|
44
44
|
*
|
|
45
45
|
* @remarks
|
|
46
|
-
* Returns the new plaintext key once. Only its SHA-256 digest
|
|
46
|
+
* 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.
|
|
47
47
|
*/
|
|
48
48
|
generateEvaluationKey(request: operations.GenerateFeatureFlagEvaluationKeyRequest, options?: RequestOptions): Promise<operations.GenerateFeatureFlagEvaluationKeyResponse>;
|
|
49
49
|
}
|
|
@@ -67,7 +67,7 @@ export class Environments extends ClientSDK {
|
|
|
67
67
|
* Generate or replace an environment evaluation key
|
|
68
68
|
*
|
|
69
69
|
* @remarks
|
|
70
|
-
* Returns the new plaintext key once. Only its SHA-256 digest
|
|
70
|
+
* 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.
|
|
71
71
|
*/
|
|
72
72
|
async generateEvaluationKey(request, options) {
|
|
73
73
|
return unwrapAsync(flagsEnvironmentsGenerateEvaluationKey(this, request, options));
|
package/dist/esm/sdk/repos.d.ts
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import * as components from "../models/components/index.js";
|
|
3
3
|
import * as operations from "../models/operations/index.js";
|
|
4
|
+
import { Tags } from "./tags.js";
|
|
4
5
|
export declare class Repos extends ClientSDK {
|
|
6
|
+
private _tags?;
|
|
7
|
+
get tags(): Tags;
|
|
5
8
|
/**
|
|
6
9
|
* List the caller's org's repositories
|
|
7
10
|
*
|
|
8
11
|
* @remarks
|
|
9
12
|
* Returns every repository in the caller's org (org owner/admin only).
|
|
10
|
-
* Pure DB read.
|
|
13
|
+
* Pure DB read. With `kind`, only repositories of that kind; an untyped
|
|
14
|
+
* (legacy, `kind: null`) repository appears in the unfiltered listing
|
|
15
|
+
* only.
|
|
11
16
|
*/
|
|
12
17
|
list(request: operations.ListReposRequest, options?: RequestOptions): Promise<operations.ListReposResponseBody>;
|
|
13
18
|
/**
|
|
@@ -16,7 +21,9 @@ export declare class Repos extends ClientSDK {
|
|
|
16
21
|
* @remarks
|
|
17
22
|
* Provisions a repository (org owner/admin only): DB insert
|
|
18
23
|
* (authoritative) → Gitea create (rolled back on failure). The repository
|
|
19
|
-
* belongs to the caller's org.
|
|
24
|
+
* belongs to the caller's org. `kind` says what it will hold and defaults
|
|
25
|
+
* to `repo` (a plain git repository); it decides which protocol planes
|
|
26
|
+
* answer for the name (see the `Repo` schema).
|
|
20
27
|
*/
|
|
21
28
|
create(request: operations.CreateRepoRequest, options?: RequestOptions): Promise<components.Repo>;
|
|
22
29
|
/**
|
|
@@ -39,9 +46,21 @@ export declare class Repos extends ClientSDK {
|
|
|
39
46
|
* Update a repository's labels
|
|
40
47
|
*
|
|
41
48
|
* @remarks
|
|
42
|
-
* Applies a label-only update (name/description); org owner/admin
|
|
43
|
-
* The repository id is stable, so a rename is a one-row DB update
|
|
44
|
-
* Gitea write. Omitted fields are left unchanged.
|
|
49
|
+
* Applies a label-only update (name/description/kind); org owner/admin
|
|
50
|
+
* only. The repository id is stable, so a rename is a one-row DB update
|
|
51
|
+
* — no Gitea write. Omitted fields are left unchanged.
|
|
52
|
+
*
|
|
53
|
+
* `kind` is the ONE way a repository's kind changes after creation (the
|
|
54
|
+
* protocol planes never change it): it types a legacy `kind: null`
|
|
55
|
+
* repository and corrects a wrong kind. `repo`, `model` and `dataset`
|
|
56
|
+
* convert freely and any repository may become `image`; a repository
|
|
57
|
+
* whose container images are still named by a tag can be given no
|
|
58
|
+
* other kind — leaving `image`, or typing a legacy `null` row as
|
|
59
|
+
* anything else, is refused with `409 kind_has_content` (list and
|
|
60
|
+
* delete the tags through this API first). A switch away from `image`
|
|
61
|
+
* collects every image no tag reaches before it is judged, so an image
|
|
62
|
+
* only ever pushed by digest, or untagged through the registry, never
|
|
63
|
+
* blocks it. A kind is never un-set.
|
|
45
64
|
*/
|
|
46
65
|
update(request: operations.PatchRepoRequest, options?: RequestOptions): Promise<components.Repo>;
|
|
47
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repos.d.ts","sourceRoot":"","sources":["../../../src/sdk/repos.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"repos.d.ts","sourceRoot":"","sources":["../../../src/sdk/repos.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,qBAAa,KAAM,SAAQ,SAAS;IAClC,OAAO,CAAC,KAAK,CAAC,CAAO;IACrB,IAAI,IAAI,IAAI,IAAI,CAEf;IAED;;;;;;;;OAQG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAQ5C;;;;;;;;;OASG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;IAQ3B;;;;;;OAMG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAQhB;;;;;;OAMG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,cAAc,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;IAQ3B;;;;;;;;;;;;;;;;;;;OAmBG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;CAO5B"}
|
package/dist/esm/sdk/repos.js
CHANGED
|
@@ -8,13 +8,19 @@ import { reposList } from "../funcs/reposList.js";
|
|
|
8
8
|
import { reposUpdate } from "../funcs/reposUpdate.js";
|
|
9
9
|
import { ClientSDK } from "../lib/sdks.js";
|
|
10
10
|
import { unwrapAsync } from "../types/fp.js";
|
|
11
|
+
import { Tags } from "./tags.js";
|
|
11
12
|
export class Repos extends ClientSDK {
|
|
13
|
+
get tags() {
|
|
14
|
+
return (this._tags ?? (this._tags = new Tags(this._options)));
|
|
15
|
+
}
|
|
12
16
|
/**
|
|
13
17
|
* List the caller's org's repositories
|
|
14
18
|
*
|
|
15
19
|
* @remarks
|
|
16
20
|
* Returns every repository in the caller's org (org owner/admin only).
|
|
17
|
-
* Pure DB read.
|
|
21
|
+
* Pure DB read. With `kind`, only repositories of that kind; an untyped
|
|
22
|
+
* (legacy, `kind: null`) repository appears in the unfiltered listing
|
|
23
|
+
* only.
|
|
18
24
|
*/
|
|
19
25
|
async list(request, options) {
|
|
20
26
|
return unwrapAsync(reposList(this, request, options));
|
|
@@ -25,7 +31,9 @@ export class Repos extends ClientSDK {
|
|
|
25
31
|
* @remarks
|
|
26
32
|
* Provisions a repository (org owner/admin only): DB insert
|
|
27
33
|
* (authoritative) → Gitea create (rolled back on failure). The repository
|
|
28
|
-
* belongs to the caller's org.
|
|
34
|
+
* belongs to the caller's org. `kind` says what it will hold and defaults
|
|
35
|
+
* to `repo` (a plain git repository); it decides which protocol planes
|
|
36
|
+
* answer for the name (see the `Repo` schema).
|
|
29
37
|
*/
|
|
30
38
|
async create(request, options) {
|
|
31
39
|
return unwrapAsync(reposCreate(this, request, options));
|
|
@@ -54,9 +62,21 @@ export class Repos extends ClientSDK {
|
|
|
54
62
|
* Update a repository's labels
|
|
55
63
|
*
|
|
56
64
|
* @remarks
|
|
57
|
-
* Applies a label-only update (name/description); org owner/admin
|
|
58
|
-
* The repository id is stable, so a rename is a one-row DB update
|
|
59
|
-
* Gitea write. Omitted fields are left unchanged.
|
|
65
|
+
* Applies a label-only update (name/description/kind); org owner/admin
|
|
66
|
+
* only. The repository id is stable, so a rename is a one-row DB update
|
|
67
|
+
* — no Gitea write. Omitted fields are left unchanged.
|
|
68
|
+
*
|
|
69
|
+
* `kind` is the ONE way a repository's kind changes after creation (the
|
|
70
|
+
* protocol planes never change it): it types a legacy `kind: null`
|
|
71
|
+
* repository and corrects a wrong kind. `repo`, `model` and `dataset`
|
|
72
|
+
* convert freely and any repository may become `image`; a repository
|
|
73
|
+
* whose container images are still named by a tag can be given no
|
|
74
|
+
* other kind — leaving `image`, or typing a legacy `null` row as
|
|
75
|
+
* anything else, is refused with `409 kind_has_content` (list and
|
|
76
|
+
* delete the tags through this API first). A switch away from `image`
|
|
77
|
+
* collects every image no tag reaches before it is judged, so an image
|
|
78
|
+
* only ever pushed by digest, or untagged through the registry, never
|
|
79
|
+
* blocks it. A kind is never un-set.
|
|
60
80
|
*/
|
|
61
81
|
async update(request, options) {
|
|
62
82
|
return unwrapAsync(reposUpdate(this, request, options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repos.js","sourceRoot":"","sources":["../../../src/sdk/repos.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"repos.js","sourceRoot":"","sources":["../../../src/sdk/repos.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,OAAO,KAAM,SAAQ,SAAS;IAElC,IAAI,IAAI;QACN,OAAO,CAAC,IAAI,CAAC,KAAK,KAAV,IAAI,CAAC,KAAK,GAAK,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAClD,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,IAAI,CACR,OAAoC,EACpC,OAAwB;QAExB,OAAO,WAAW,CAAC,SAAS,CAC1B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,MAAM,CACV,OAAqC,EACrC,OAAwB;QAExB,OAAO,WAAW,CAAC,WAAW,CAC5B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CACV,OAAqC,EACrC,OAAwB;QAExB,OAAO,WAAW,CAAC,WAAW,CAC5B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,GAAG,CACP,OAAkC,EAClC,OAAwB;QAExB,OAAO,WAAW,CAAC,QAAQ,CACzB,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,MAAM,CACV,OAAoC,EACpC,OAAwB;QAExB,OAAO,WAAW,CAAC,WAAW,CAC5B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as components from "../models/components/index.js";
|
|
3
|
+
import * as operations from "../models/operations/index.js";
|
|
4
|
+
export declare class Tags extends ClientSDK {
|
|
5
|
+
/**
|
|
6
|
+
* List an image repository's tags
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* Lists the container-image tags a repository holds, newest-moved first,
|
|
10
|
+
* each with the manifest it points at, the manifest's media type, the
|
|
11
|
+
* image's declared size and when the tag last moved. The same access
|
|
12
|
+
* check as reading the repository (org owner/admin; `read:repos` for a
|
|
13
|
+
* key).
|
|
14
|
+
*
|
|
15
|
+
* It is a fact about what the repository HOLDS, not about its `kind`:
|
|
16
|
+
* a `model` lists `[]`, and a legacy `kind: null` repository that still
|
|
17
|
+
* holds images lists them — those are the tags a `409 kind_has_content`
|
|
18
|
+
* on PATCH is about, and deleting them through this API is what makes
|
|
19
|
+
* that PATCH go through.
|
|
20
|
+
*
|
|
21
|
+
* One page, of at most 1000 tags; `truncated` says whether the
|
|
22
|
+
* repository holds more. The registry's own `GET /v2/{org}/{name}/tags/list`
|
|
23
|
+
* is the paginated, names-only listing every OCI client speaks.
|
|
24
|
+
*/
|
|
25
|
+
list(request: operations.ListRepoTagsRequest, options?: RequestOptions): Promise<components.RepoTagList>;
|
|
26
|
+
/**
|
|
27
|
+
* Delete an image tag
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Removes one tag; org owner/admin only (`write:repos` for a key). The
|
|
31
|
+
* same untag as the registry's `DELETE /v2/{org}/{name}/manifests/{tag}`:
|
|
32
|
+
* the name goes and the image stays, reachable by digest and by any
|
|
33
|
+
* other tag that names it.
|
|
34
|
+
*
|
|
35
|
+
* What makes a repository convertible afterwards is the kind switch
|
|
36
|
+
* itself: `PATCH` to another `kind` first collects every image no tag
|
|
37
|
+
* reaches (a multi-arch index's per-platform images included) and is
|
|
38
|
+
* refused with `409 kind_has_content` only for images a tag still
|
|
39
|
+
* names. So delete the tags the listing shows, then switch.
|
|
40
|
+
*/
|
|
41
|
+
delete(request: operations.DeleteRepoTagRequest, options?: RequestOptions): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=tags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../src/sdk/tags.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,IAAK,SAAQ,SAAS;IACjC;;;;;;;;;;;;;;;;;;;OAmBG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC;IAQlC;;;;;;;;;;;;;;OAcG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;CAOjB"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { reposTagsDelete } from "../funcs/reposTagsDelete.js";
|
|
5
|
+
import { reposTagsList } from "../funcs/reposTagsList.js";
|
|
6
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
7
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
8
|
+
export class Tags extends ClientSDK {
|
|
9
|
+
/**
|
|
10
|
+
* List an image repository's tags
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* Lists the container-image tags a repository holds, newest-moved first,
|
|
14
|
+
* each with the manifest it points at, the manifest's media type, the
|
|
15
|
+
* image's declared size and when the tag last moved. The same access
|
|
16
|
+
* check as reading the repository (org owner/admin; `read:repos` for a
|
|
17
|
+
* key).
|
|
18
|
+
*
|
|
19
|
+
* It is a fact about what the repository HOLDS, not about its `kind`:
|
|
20
|
+
* a `model` lists `[]`, and a legacy `kind: null` repository that still
|
|
21
|
+
* holds images lists them — those are the tags a `409 kind_has_content`
|
|
22
|
+
* on PATCH is about, and deleting them through this API is what makes
|
|
23
|
+
* that PATCH go through.
|
|
24
|
+
*
|
|
25
|
+
* One page, of at most 1000 tags; `truncated` says whether the
|
|
26
|
+
* repository holds more. The registry's own `GET /v2/{org}/{name}/tags/list`
|
|
27
|
+
* is the paginated, names-only listing every OCI client speaks.
|
|
28
|
+
*/
|
|
29
|
+
async list(request, options) {
|
|
30
|
+
return unwrapAsync(reposTagsList(this, request, options));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Delete an image tag
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Removes one tag; org owner/admin only (`write:repos` for a key). The
|
|
37
|
+
* same untag as the registry's `DELETE /v2/{org}/{name}/manifests/{tag}`:
|
|
38
|
+
* the name goes and the image stays, reachable by digest and by any
|
|
39
|
+
* other tag that names it.
|
|
40
|
+
*
|
|
41
|
+
* What makes a repository convertible afterwards is the kind switch
|
|
42
|
+
* itself: `PATCH` to another `kind` first collects every image no tag
|
|
43
|
+
* reaches (a multi-arch index's per-platform images included) and is
|
|
44
|
+
* refused with `409 kind_has_content` only for images a tag still
|
|
45
|
+
* names. So delete the tags the listing shows, then switch.
|
|
46
|
+
*/
|
|
47
|
+
async delete(request, options) {
|
|
48
|
+
return unwrapAsync(reposTagsDelete(this, request, options));
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=tags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags.js","sourceRoot":"","sources":["../../../src/sdk/tags.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,IAAK,SAAQ,SAAS;IACjC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,IAAI,CACR,OAAuC,EACvC,OAAwB;QAExB,OAAO,WAAW,CAAC,aAAa,CAC9B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,MAAM,CACV,OAAwC,EACxC,OAAwB;QAExB,OAAO,WAAW,CAAC,eAAe,CAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Generate or replace an environment evaluation key
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Returns the new plaintext key once. Only its SHA-256 digest
|
|
33
|
+
* 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.
|
|
34
34
|
*
|
|
35
35
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
36
36
|
*/
|
package/src/funcs/reposCreate.ts
CHANGED
|
@@ -33,7 +33,9 @@ import { Result } from "../types/fp.js";
|
|
|
33
33
|
* @remarks
|
|
34
34
|
* Provisions a repository (org owner/admin only): DB insert
|
|
35
35
|
* (authoritative) → Gitea create (rolled back on failure). The repository
|
|
36
|
-
* belongs to the caller's org.
|
|
36
|
+
* belongs to the caller's org. `kind` says what it will hold and defaults
|
|
37
|
+
* to `repo` (a plain git repository); it decides which protocol planes
|
|
38
|
+
* answer for the name (see the `Repo` schema).
|
|
37
39
|
*
|
|
38
40
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
39
41
|
*/
|
package/src/funcs/reposList.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import { matchStatusCode } from "../lib/http.js";
|
|
8
8
|
import * as M from "../lib/matchers.js";
|
|
9
9
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -31,7 +31,9 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Returns every repository in the caller's org (org owner/admin only).
|
|
34
|
-
* Pure DB read.
|
|
34
|
+
* Pure DB read. With `kind`, only repositories of that kind; an untyped
|
|
35
|
+
* (legacy, `kind: null`) repository appears in the unfiltered listing
|
|
36
|
+
* only.
|
|
35
37
|
*
|
|
36
38
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
37
39
|
*/
|
|
@@ -94,6 +96,10 @@ async function $do(
|
|
|
94
96
|
|
|
95
97
|
const path = pathToFunc("/api/v1/repos")();
|
|
96
98
|
|
|
99
|
+
const query = encodeFormQuery({
|
|
100
|
+
"kind": payload.kind,
|
|
101
|
+
});
|
|
102
|
+
|
|
97
103
|
const headers = new Headers(compactMap({
|
|
98
104
|
Accept: "application/json",
|
|
99
105
|
"X-On-Behalf-Of": encodeSimple(
|
|
@@ -138,6 +144,7 @@ async function $do(
|
|
|
138
144
|
baseURL: options?.serverURL,
|
|
139
145
|
path: path,
|
|
140
146
|
headers: headers,
|
|
147
|
+
query: query,
|
|
141
148
|
body: body,
|
|
142
149
|
userAgent: client._options.userAgent,
|
|
143
150
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
@@ -176,7 +183,7 @@ async function $do(
|
|
|
176
183
|
| SDKValidationError
|
|
177
184
|
>(
|
|
178
185
|
M.json(200, operations.ListReposResponseBody$inboundSchema),
|
|
179
|
-
M.jsonErr([401, 403], errors.RepoError$inboundSchema),
|
|
186
|
+
M.jsonErr([400, 401, 403], errors.RepoError$inboundSchema),
|
|
180
187
|
M.jsonErr([500, 503], errors.RepoError$inboundSchema),
|
|
181
188
|
M.fail("4XX"),
|
|
182
189
|
M.fail("5XX"),
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { SDKCore } from "../core.js";
|
|
7
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Delete an image tag
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Removes one tag; org owner/admin only (`write:repos` for a key). The
|
|
35
|
+
* same untag as the registry's `DELETE /v2/{org}/{name}/manifests/{tag}`:
|
|
36
|
+
* the name goes and the image stays, reachable by digest and by any
|
|
37
|
+
* other tag that names it.
|
|
38
|
+
*
|
|
39
|
+
* What makes a repository convertible afterwards is the kind switch
|
|
40
|
+
* itself: `PATCH` to another `kind` first collects every image no tag
|
|
41
|
+
* reaches (a multi-arch index's per-platform images included) and is
|
|
42
|
+
* refused with `409 kind_has_content` only for images a tag still
|
|
43
|
+
* names. So delete the tags the listing shows, then switch.
|
|
44
|
+
*
|
|
45
|
+
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
46
|
+
*/
|
|
47
|
+
export function reposTagsDelete(
|
|
48
|
+
client: SDKCore,
|
|
49
|
+
request: operations.DeleteRepoTagRequest,
|
|
50
|
+
options?: RequestOptions,
|
|
51
|
+
): APIPromise<
|
|
52
|
+
Result<
|
|
53
|
+
void,
|
|
54
|
+
| errors.RepoError
|
|
55
|
+
| SDKError
|
|
56
|
+
| ResponseValidationError
|
|
57
|
+
| ConnectionError
|
|
58
|
+
| RequestAbortedError
|
|
59
|
+
| RequestTimeoutError
|
|
60
|
+
| InvalidRequestError
|
|
61
|
+
| UnexpectedClientError
|
|
62
|
+
| SDKValidationError
|
|
63
|
+
>
|
|
64
|
+
> {
|
|
65
|
+
return new APIPromise($do(
|
|
66
|
+
client,
|
|
67
|
+
request,
|
|
68
|
+
options,
|
|
69
|
+
));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
async function $do(
|
|
73
|
+
client: SDKCore,
|
|
74
|
+
request: operations.DeleteRepoTagRequest,
|
|
75
|
+
options?: RequestOptions,
|
|
76
|
+
): Promise<
|
|
77
|
+
[
|
|
78
|
+
Result<
|
|
79
|
+
void,
|
|
80
|
+
| errors.RepoError
|
|
81
|
+
| SDKError
|
|
82
|
+
| ResponseValidationError
|
|
83
|
+
| ConnectionError
|
|
84
|
+
| RequestAbortedError
|
|
85
|
+
| RequestTimeoutError
|
|
86
|
+
| InvalidRequestError
|
|
87
|
+
| UnexpectedClientError
|
|
88
|
+
| SDKValidationError
|
|
89
|
+
>,
|
|
90
|
+
APICall,
|
|
91
|
+
]
|
|
92
|
+
> {
|
|
93
|
+
const parsed = safeParse(
|
|
94
|
+
request,
|
|
95
|
+
(value) => operations.DeleteRepoTagRequest$outboundSchema.parse(value),
|
|
96
|
+
"Input validation failed",
|
|
97
|
+
);
|
|
98
|
+
if (!parsed.ok) {
|
|
99
|
+
return [parsed, { status: "invalid" }];
|
|
100
|
+
}
|
|
101
|
+
const payload = parsed.value;
|
|
102
|
+
const body = null;
|
|
103
|
+
|
|
104
|
+
const pathParams = {
|
|
105
|
+
name: encodeSimple("name", payload.name, {
|
|
106
|
+
explode: false,
|
|
107
|
+
charEncoding: "percent",
|
|
108
|
+
}),
|
|
109
|
+
org: encodeSimple("org", payload.org, {
|
|
110
|
+
explode: false,
|
|
111
|
+
charEncoding: "percent",
|
|
112
|
+
}),
|
|
113
|
+
tag: encodeSimple("tag", payload.tag, {
|
|
114
|
+
explode: false,
|
|
115
|
+
charEncoding: "percent",
|
|
116
|
+
}),
|
|
117
|
+
};
|
|
118
|
+
const path = pathToFunc("/api/v1/repos/{org}/{name}/tags/{tag}")(pathParams);
|
|
119
|
+
|
|
120
|
+
const headers = new Headers(compactMap({
|
|
121
|
+
Accept: "application/json",
|
|
122
|
+
"X-On-Behalf-Of": encodeSimple(
|
|
123
|
+
"X-On-Behalf-Of",
|
|
124
|
+
payload["X-On-Behalf-Of"],
|
|
125
|
+
{ explode: false, charEncoding: "none" },
|
|
126
|
+
),
|
|
127
|
+
}));
|
|
128
|
+
|
|
129
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
130
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
131
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
132
|
+
|
|
133
|
+
const context = {
|
|
134
|
+
options: client._options,
|
|
135
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
136
|
+
operationID: "deleteRepoTag",
|
|
137
|
+
oAuth2Scopes: null,
|
|
138
|
+
|
|
139
|
+
resolvedSecurity: requestSecurity,
|
|
140
|
+
|
|
141
|
+
securitySource: client._options.bearerAuth,
|
|
142
|
+
retryConfig: options?.retries
|
|
143
|
+
|| client._options.retryConfig
|
|
144
|
+
|| {
|
|
145
|
+
strategy: "backoff",
|
|
146
|
+
backoff: {
|
|
147
|
+
initialInterval: 500,
|
|
148
|
+
maxInterval: 5000,
|
|
149
|
+
exponent: 1.5,
|
|
150
|
+
maxElapsedTime: 15000,
|
|
151
|
+
},
|
|
152
|
+
retryConnectionErrors: true,
|
|
153
|
+
}
|
|
154
|
+
|| { strategy: "none" },
|
|
155
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
const requestRes = client._createRequest(context, {
|
|
159
|
+
security: requestSecurity,
|
|
160
|
+
method: "DELETE",
|
|
161
|
+
baseURL: options?.serverURL,
|
|
162
|
+
path: path,
|
|
163
|
+
headers: headers,
|
|
164
|
+
body: body,
|
|
165
|
+
userAgent: client._options.userAgent,
|
|
166
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
167
|
+
}, options);
|
|
168
|
+
if (!requestRes.ok) {
|
|
169
|
+
return [requestRes, { status: "invalid" }];
|
|
170
|
+
}
|
|
171
|
+
const req = requestRes.value;
|
|
172
|
+
|
|
173
|
+
const doResult = await client._do(req, {
|
|
174
|
+
context,
|
|
175
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
176
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
177
|
+
retryConfig: context.retryConfig,
|
|
178
|
+
retryCodes: context.retryCodes,
|
|
179
|
+
});
|
|
180
|
+
if (!doResult.ok) {
|
|
181
|
+
return [doResult, { status: "request-error", request: req }];
|
|
182
|
+
}
|
|
183
|
+
const response = doResult.value;
|
|
184
|
+
|
|
185
|
+
const responseFields = {
|
|
186
|
+
HttpMeta: { Response: response, Request: req },
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
const [result] = await M.match<
|
|
190
|
+
void,
|
|
191
|
+
| errors.RepoError
|
|
192
|
+
| SDKError
|
|
193
|
+
| ResponseValidationError
|
|
194
|
+
| ConnectionError
|
|
195
|
+
| RequestAbortedError
|
|
196
|
+
| RequestTimeoutError
|
|
197
|
+
| InvalidRequestError
|
|
198
|
+
| UnexpectedClientError
|
|
199
|
+
| SDKValidationError
|
|
200
|
+
>(
|
|
201
|
+
M.nil(204, z.void()),
|
|
202
|
+
M.jsonErr([401, 403, 404], errors.RepoError$inboundSchema),
|
|
203
|
+
M.jsonErr(500, errors.RepoError$inboundSchema),
|
|
204
|
+
M.fail("4XX"),
|
|
205
|
+
M.fail("5XX"),
|
|
206
|
+
)(response, req, { extraFields: responseFields });
|
|
207
|
+
if (!result.ok) {
|
|
208
|
+
return [result, { status: "complete", request: req, response }];
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
return [result, { status: "complete", request: req, response }];
|
|
212
|
+
}
|