@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,213 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.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
|
+
* List an image repository's tags
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Lists the container-image tags a repository holds, newest-moved first,
|
|
35
|
+
* each with the manifest it points at, the manifest's media type, the
|
|
36
|
+
* image's declared size and when the tag last moved. The same access
|
|
37
|
+
* check as reading the repository (org owner/admin; `read:repos` for a
|
|
38
|
+
* key).
|
|
39
|
+
*
|
|
40
|
+
* It is a fact about what the repository HOLDS, not about its `kind`:
|
|
41
|
+
* a `model` lists `[]`, and a legacy `kind: null` repository that still
|
|
42
|
+
* holds images lists them — those are the tags a `409 kind_has_content`
|
|
43
|
+
* on PATCH is about, and deleting them through this API is what makes
|
|
44
|
+
* that PATCH go through.
|
|
45
|
+
*
|
|
46
|
+
* One page, of at most 1000 tags; `truncated` says whether the
|
|
47
|
+
* repository holds more. The registry's own `GET /v2/{org}/{name}/tags/list`
|
|
48
|
+
* is the paginated, names-only listing every OCI client speaks.
|
|
49
|
+
*
|
|
50
|
+
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
51
|
+
*/
|
|
52
|
+
export function reposTagsList(
|
|
53
|
+
client: SDKCore,
|
|
54
|
+
request: operations.ListRepoTagsRequest,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): APIPromise<
|
|
57
|
+
Result<
|
|
58
|
+
components.RepoTagList,
|
|
59
|
+
| errors.RepoError
|
|
60
|
+
| SDKError
|
|
61
|
+
| ResponseValidationError
|
|
62
|
+
| ConnectionError
|
|
63
|
+
| RequestAbortedError
|
|
64
|
+
| RequestTimeoutError
|
|
65
|
+
| InvalidRequestError
|
|
66
|
+
| UnexpectedClientError
|
|
67
|
+
| SDKValidationError
|
|
68
|
+
>
|
|
69
|
+
> {
|
|
70
|
+
return new APIPromise($do(
|
|
71
|
+
client,
|
|
72
|
+
request,
|
|
73
|
+
options,
|
|
74
|
+
));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
async function $do(
|
|
78
|
+
client: SDKCore,
|
|
79
|
+
request: operations.ListRepoTagsRequest,
|
|
80
|
+
options?: RequestOptions,
|
|
81
|
+
): Promise<
|
|
82
|
+
[
|
|
83
|
+
Result<
|
|
84
|
+
components.RepoTagList,
|
|
85
|
+
| errors.RepoError
|
|
86
|
+
| SDKError
|
|
87
|
+
| ResponseValidationError
|
|
88
|
+
| ConnectionError
|
|
89
|
+
| RequestAbortedError
|
|
90
|
+
| RequestTimeoutError
|
|
91
|
+
| InvalidRequestError
|
|
92
|
+
| UnexpectedClientError
|
|
93
|
+
| SDKValidationError
|
|
94
|
+
>,
|
|
95
|
+
APICall,
|
|
96
|
+
]
|
|
97
|
+
> {
|
|
98
|
+
const parsed = safeParse(
|
|
99
|
+
request,
|
|
100
|
+
(value) => operations.ListRepoTagsRequest$outboundSchema.parse(value),
|
|
101
|
+
"Input validation failed",
|
|
102
|
+
);
|
|
103
|
+
if (!parsed.ok) {
|
|
104
|
+
return [parsed, { status: "invalid" }];
|
|
105
|
+
}
|
|
106
|
+
const payload = parsed.value;
|
|
107
|
+
const body = null;
|
|
108
|
+
|
|
109
|
+
const pathParams = {
|
|
110
|
+
name: encodeSimple("name", payload.name, {
|
|
111
|
+
explode: false,
|
|
112
|
+
charEncoding: "percent",
|
|
113
|
+
}),
|
|
114
|
+
org: encodeSimple("org", payload.org, {
|
|
115
|
+
explode: false,
|
|
116
|
+
charEncoding: "percent",
|
|
117
|
+
}),
|
|
118
|
+
};
|
|
119
|
+
const path = pathToFunc("/api/v1/repos/{org}/{name}/tags")(pathParams);
|
|
120
|
+
|
|
121
|
+
const headers = new Headers(compactMap({
|
|
122
|
+
Accept: "application/json",
|
|
123
|
+
"X-On-Behalf-Of": encodeSimple(
|
|
124
|
+
"X-On-Behalf-Of",
|
|
125
|
+
payload["X-On-Behalf-Of"],
|
|
126
|
+
{ explode: false, charEncoding: "none" },
|
|
127
|
+
),
|
|
128
|
+
}));
|
|
129
|
+
|
|
130
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
131
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
132
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
133
|
+
|
|
134
|
+
const context = {
|
|
135
|
+
options: client._options,
|
|
136
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
137
|
+
operationID: "listRepoTags",
|
|
138
|
+
oAuth2Scopes: null,
|
|
139
|
+
|
|
140
|
+
resolvedSecurity: requestSecurity,
|
|
141
|
+
|
|
142
|
+
securitySource: client._options.bearerAuth,
|
|
143
|
+
retryConfig: options?.retries
|
|
144
|
+
|| client._options.retryConfig
|
|
145
|
+
|| {
|
|
146
|
+
strategy: "backoff",
|
|
147
|
+
backoff: {
|
|
148
|
+
initialInterval: 500,
|
|
149
|
+
maxInterval: 5000,
|
|
150
|
+
exponent: 1.5,
|
|
151
|
+
maxElapsedTime: 15000,
|
|
152
|
+
},
|
|
153
|
+
retryConnectionErrors: true,
|
|
154
|
+
}
|
|
155
|
+
|| { strategy: "none" },
|
|
156
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
const requestRes = client._createRequest(context, {
|
|
160
|
+
security: requestSecurity,
|
|
161
|
+
method: "GET",
|
|
162
|
+
baseURL: options?.serverURL,
|
|
163
|
+
path: path,
|
|
164
|
+
headers: headers,
|
|
165
|
+
body: body,
|
|
166
|
+
userAgent: client._options.userAgent,
|
|
167
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
168
|
+
}, options);
|
|
169
|
+
if (!requestRes.ok) {
|
|
170
|
+
return [requestRes, { status: "invalid" }];
|
|
171
|
+
}
|
|
172
|
+
const req = requestRes.value;
|
|
173
|
+
|
|
174
|
+
const doResult = await client._do(req, {
|
|
175
|
+
context,
|
|
176
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
177
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
178
|
+
retryConfig: context.retryConfig,
|
|
179
|
+
retryCodes: context.retryCodes,
|
|
180
|
+
});
|
|
181
|
+
if (!doResult.ok) {
|
|
182
|
+
return [doResult, { status: "request-error", request: req }];
|
|
183
|
+
}
|
|
184
|
+
const response = doResult.value;
|
|
185
|
+
|
|
186
|
+
const responseFields = {
|
|
187
|
+
HttpMeta: { Response: response, Request: req },
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
const [result] = await M.match<
|
|
191
|
+
components.RepoTagList,
|
|
192
|
+
| errors.RepoError
|
|
193
|
+
| SDKError
|
|
194
|
+
| ResponseValidationError
|
|
195
|
+
| ConnectionError
|
|
196
|
+
| RequestAbortedError
|
|
197
|
+
| RequestTimeoutError
|
|
198
|
+
| InvalidRequestError
|
|
199
|
+
| UnexpectedClientError
|
|
200
|
+
| SDKValidationError
|
|
201
|
+
>(
|
|
202
|
+
M.json(200, components.RepoTagList$inboundSchema),
|
|
203
|
+
M.jsonErr([401, 403, 404], errors.RepoError$inboundSchema),
|
|
204
|
+
M.jsonErr(500, errors.RepoError$inboundSchema),
|
|
205
|
+
M.fail("4XX"),
|
|
206
|
+
M.fail("5XX"),
|
|
207
|
+
)(response, req, { extraFields: responseFields });
|
|
208
|
+
if (!result.ok) {
|
|
209
|
+
return [result, { status: "complete", request: req, response }];
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return [result, { status: "complete", request: req, response }];
|
|
213
|
+
}
|
package/src/funcs/reposUpdate.ts
CHANGED
|
@@ -31,9 +31,21 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Update a repository's labels
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Applies a label-only update (name/description); org owner/admin
|
|
35
|
-
* The repository id is stable, so a rename is a one-row DB update
|
|
36
|
-
* Gitea write. Omitted fields are left unchanged.
|
|
34
|
+
* Applies a label-only update (name/description/kind); org owner/admin
|
|
35
|
+
* only. The repository id is stable, so a rename is a one-row DB update
|
|
36
|
+
* — no Gitea write. Omitted fields are left unchanged.
|
|
37
|
+
*
|
|
38
|
+
* `kind` is the ONE way a repository's kind changes after creation (the
|
|
39
|
+
* protocol planes never change it): it types a legacy `kind: null`
|
|
40
|
+
* repository and corrects a wrong kind. `repo`, `model` and `dataset`
|
|
41
|
+
* convert freely and any repository may become `image`; a repository
|
|
42
|
+
* whose container images are still named by a tag can be given no
|
|
43
|
+
* other kind — leaving `image`, or typing a legacy `null` row as
|
|
44
|
+
* anything else, is refused with `409 kind_has_content` (list and
|
|
45
|
+
* delete the tags through this API first). A switch away from `image`
|
|
46
|
+
* collects every image no tag reaches before it is judged, so an image
|
|
47
|
+
* only ever pushed by digest, or untagged through the registry, never
|
|
48
|
+
* blocks it. A kind is never un-set.
|
|
37
49
|
*
|
|
38
50
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
39
51
|
*/
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.1.0",
|
|
68
|
-
sdkVersion: "0.54.
|
|
69
|
-
genVersion: "2.
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.54.
|
|
68
|
+
sdkVersion: "0.54.51",
|
|
69
|
+
genVersion: "2.941.0",
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.54.51 2.941.0 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -394,6 +394,8 @@ import { tool$reposCreate } from "./tools/reposCreate.js";
|
|
|
394
394
|
import { tool$reposDelete } from "./tools/reposDelete.js";
|
|
395
395
|
import { tool$reposGet } from "./tools/reposGet.js";
|
|
396
396
|
import { tool$reposList } from "./tools/reposList.js";
|
|
397
|
+
import { tool$reposTagsDelete } from "./tools/reposTagsDelete.js";
|
|
398
|
+
import { tool$reposTagsList } from "./tools/reposTagsList.js";
|
|
397
399
|
import { tool$reposUpdate } from "./tools/reposUpdate.js";
|
|
398
400
|
import { tool$sandboxCreate } from "./tools/sandboxCreate.js";
|
|
399
401
|
import { tool$sandboxDownloadArchive } from "./tools/sandboxDownloadArchive.js";
|
|
@@ -468,7 +470,7 @@ export function createMCPServer(deps: {
|
|
|
468
470
|
}) {
|
|
469
471
|
const server = new McpServer({
|
|
470
472
|
name: "SDK",
|
|
471
|
-
version: "0.54.
|
|
473
|
+
version: "0.54.51",
|
|
472
474
|
});
|
|
473
475
|
|
|
474
476
|
const client = new SDKCore({
|
|
@@ -919,6 +921,8 @@ export function createMCPServer(deps: {
|
|
|
919
921
|
tool(tool$authClusterInviteInfo);
|
|
920
922
|
tool(tool$authClusterAcceptInvite);
|
|
921
923
|
tool(tool$authApiKeyGetJwtFromKey);
|
|
924
|
+
tool(tool$reposTagsList);
|
|
925
|
+
tool(tool$reposTagsDelete);
|
|
922
926
|
tool(tool$trackingExperimentsCreate);
|
|
923
927
|
tool(tool$trackingExperimentsSearch);
|
|
924
928
|
tool(tool$trackingExperimentsGet);
|
|
@@ -16,7 +16,7 @@ export const tool$flagsEnvironmentsGenerateEvaluationKey: ToolDefinition<
|
|
|
16
16
|
name: "flags-environments-generate-evaluation-key",
|
|
17
17
|
description: `Generate or replace an environment evaluation key
|
|
18
18
|
|
|
19
|
-
Returns the new plaintext key once. Only its SHA-256 digest
|
|
19
|
+
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.`,
|
|
20
20
|
args,
|
|
21
21
|
tool: async (client, args, ctx) => {
|
|
22
22
|
const [result, apiCall] = await flagsEnvironmentsGenerateEvaluationKey(
|
|
@@ -16,7 +16,9 @@ export const tool$reposCreate: ToolDefinition<typeof args> = {
|
|
|
16
16
|
|
|
17
17
|
Provisions a repository (org owner/admin only): DB insert
|
|
18
18
|
(authoritative) → Gitea create (rolled back on failure). The repository
|
|
19
|
-
belongs to the caller's org.
|
|
19
|
+
belongs to the caller's org. \`kind\` says what it will hold and defaults
|
|
20
|
+
to \`repo\` (a plain git repository); it decides which protocol planes
|
|
21
|
+
answer for the name (see the \`Repo\` schema).
|
|
20
22
|
`,
|
|
21
23
|
args,
|
|
22
24
|
tool: async (client, args, ctx) => {
|
|
@@ -15,7 +15,9 @@ export const tool$reposList: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `List the caller's org's repositories
|
|
16
16
|
|
|
17
17
|
Returns every repository in the caller's org (org owner/admin only).
|
|
18
|
-
Pure DB read.
|
|
18
|
+
Pure DB read. With \`kind\`, only repositories of that kind; an untyped
|
|
19
|
+
(legacy, \`kind: null\`) repository appears in the unfiltered listing
|
|
20
|
+
only.
|
|
19
21
|
`,
|
|
20
22
|
args,
|
|
21
23
|
tool: async (client, args, ctx) => {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { reposTagsDelete } from "../../funcs/reposTagsDelete.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.DeleteRepoTagRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$reposTagsDelete: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "repos-tags-delete",
|
|
15
|
+
description: `Delete an image tag
|
|
16
|
+
|
|
17
|
+
Removes one tag; org owner/admin only (\`write:repos\` for a key). The
|
|
18
|
+
same untag as the registry's \`DELETE /v2/{org}/{name}/manifests/{tag}\`:
|
|
19
|
+
the name goes and the image stays, reachable by digest and by any
|
|
20
|
+
other tag that names it.
|
|
21
|
+
|
|
22
|
+
What makes a repository convertible afterwards is the kind switch
|
|
23
|
+
itself: \`PATCH\` to another \`kind\` first collects every image no tag
|
|
24
|
+
reaches (a multi-arch index's per-platform images included) and is
|
|
25
|
+
refused with \`409 kind_has_content\` only for images a tag still
|
|
26
|
+
names. So delete the tags the listing shows, then switch.
|
|
27
|
+
`,
|
|
28
|
+
args,
|
|
29
|
+
tool: async (client, args, ctx) => {
|
|
30
|
+
const [result, apiCall] = await reposTagsDelete(
|
|
31
|
+
client,
|
|
32
|
+
args.request,
|
|
33
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
34
|
+
).$inspect();
|
|
35
|
+
|
|
36
|
+
if (!result.ok) {
|
|
37
|
+
return {
|
|
38
|
+
content: [{ type: "text", text: result.error.message }],
|
|
39
|
+
isError: true,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return formatResult(void 0, apiCall);
|
|
44
|
+
},
|
|
45
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { reposTagsList } from "../../funcs/reposTagsList.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ListRepoTagsRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$reposTagsList: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "repos-tags-list",
|
|
15
|
+
description: `List an image repository's tags
|
|
16
|
+
|
|
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
|
+
args,
|
|
34
|
+
tool: async (client, args, ctx) => {
|
|
35
|
+
const [result, apiCall] = await reposTagsList(
|
|
36
|
+
client,
|
|
37
|
+
args.request,
|
|
38
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
39
|
+
).$inspect();
|
|
40
|
+
|
|
41
|
+
if (!result.ok) {
|
|
42
|
+
return {
|
|
43
|
+
content: [{ type: "text", text: result.error.message }],
|
|
44
|
+
isError: true,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const value = result.value;
|
|
49
|
+
|
|
50
|
+
return formatResult(value, apiCall);
|
|
51
|
+
},
|
|
52
|
+
};
|
|
@@ -14,9 +14,21 @@ export const tool$reposUpdate: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "repos-update",
|
|
15
15
|
description: `Update a repository's labels
|
|
16
16
|
|
|
17
|
-
Applies a label-only update (name/description); org owner/admin
|
|
18
|
-
The repository id is stable, so a rename is a one-row DB update
|
|
19
|
-
Gitea write. Omitted fields are left unchanged.
|
|
17
|
+
Applies a label-only update (name/description/kind); org owner/admin
|
|
18
|
+
only. The repository id is stable, so a rename is a one-row DB update
|
|
19
|
+
— no Gitea write. Omitted fields are left unchanged.
|
|
20
|
+
|
|
21
|
+
\`kind\` is the ONE way a repository's kind changes after creation (the
|
|
22
|
+
protocol planes never change it): it types a legacy \`kind: null\`
|
|
23
|
+
repository and corrects a wrong kind. \`repo\`, \`model\` and \`dataset\`
|
|
24
|
+
convert freely and any repository may become \`image\`; a repository
|
|
25
|
+
whose container images are still named by a tag can be given no
|
|
26
|
+
other kind — leaving \`image\`, or typing a legacy \`null\` row as
|
|
27
|
+
anything else, is refused with \`409 kind_has_content\` (list and
|
|
28
|
+
delete the tags through this API first). A switch away from \`image\`
|
|
29
|
+
collects every image no tag reaches before it is judged, so an image
|
|
30
|
+
only ever pushed by digest, or untagged through the registry, never
|
|
31
|
+
blocks it. A kind is never un-set.
|
|
20
32
|
`,
|
|
21
33
|
args,
|
|
22
34
|
tool: async (client, args, ctx) => {
|
|
@@ -4,11 +4,30 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
10
|
|
|
11
|
+
/**
|
|
12
|
+
* What the repository will hold. Defaults to `repo`.
|
|
13
|
+
*/
|
|
14
|
+
export const CreateRepoRequestKind = {
|
|
15
|
+
Repo: "repo",
|
|
16
|
+
Model: "model",
|
|
17
|
+
Dataset: "dataset",
|
|
18
|
+
Image: "image",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* What the repository will hold. Defaults to `repo`.
|
|
22
|
+
*/
|
|
23
|
+
export type CreateRepoRequestKind = ClosedEnum<typeof CreateRepoRequestKind>;
|
|
24
|
+
|
|
10
25
|
export type CreateRepoRequest = {
|
|
11
26
|
description?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* What the repository will hold. Defaults to `repo`.
|
|
29
|
+
*/
|
|
30
|
+
kind?: CreateRepoRequestKind | undefined;
|
|
12
31
|
/**
|
|
13
32
|
* The repository name. Must start with an alphanumeric character and
|
|
14
33
|
*
|
|
@@ -18,6 +37,15 @@ export type CreateRepoRequest = {
|
|
|
18
37
|
name: string;
|
|
19
38
|
};
|
|
20
39
|
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const CreateRepoRequestKind$inboundSchema: z.ZodNativeEnum<
|
|
42
|
+
typeof CreateRepoRequestKind
|
|
43
|
+
> = z.nativeEnum(CreateRepoRequestKind);
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const CreateRepoRequestKind$outboundSchema: z.ZodNativeEnum<
|
|
46
|
+
typeof CreateRepoRequestKind
|
|
47
|
+
> = CreateRepoRequestKind$inboundSchema;
|
|
48
|
+
|
|
21
49
|
/** @internal */
|
|
22
50
|
export const CreateRepoRequest$inboundSchema: z.ZodType<
|
|
23
51
|
CreateRepoRequest,
|
|
@@ -25,11 +53,13 @@ export const CreateRepoRequest$inboundSchema: z.ZodType<
|
|
|
25
53
|
unknown
|
|
26
54
|
> = z.object({
|
|
27
55
|
description: z.string().optional(),
|
|
56
|
+
kind: CreateRepoRequestKind$inboundSchema.default("repo"),
|
|
28
57
|
name: z.string(),
|
|
29
58
|
});
|
|
30
59
|
/** @internal */
|
|
31
60
|
export type CreateRepoRequest$Outbound = {
|
|
32
61
|
description?: string | undefined;
|
|
62
|
+
kind: string;
|
|
33
63
|
name: string;
|
|
34
64
|
};
|
|
35
65
|
|
|
@@ -40,6 +70,7 @@ export const CreateRepoRequest$outboundSchema: z.ZodType<
|
|
|
40
70
|
CreateRepoRequest
|
|
41
71
|
> = z.object({
|
|
42
72
|
description: z.string().optional(),
|
|
73
|
+
kind: CreateRepoRequestKind$outboundSchema.default("repo"),
|
|
43
74
|
name: z.string(),
|
|
44
75
|
});
|
|
45
76
|
|
|
@@ -10,6 +10,14 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
|
|
11
11
|
export type FeatureFlagEnvironment = {
|
|
12
12
|
createdAt: Date;
|
|
13
|
+
/**
|
|
14
|
+
* Whether the environment has an active evaluation key.
|
|
15
|
+
*/
|
|
16
|
+
evaluationKeyConfigured: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* The active key's prefix plus the first and last four characters of its payload, for display. Null when no key is configured, or when the active key was generated before hints were recorded.
|
|
19
|
+
*/
|
|
20
|
+
evaluationKeyHint: string | null;
|
|
13
21
|
id: string;
|
|
14
22
|
key: string;
|
|
15
23
|
name: string;
|
|
@@ -23,6 +31,8 @@ export const FeatureFlagEnvironment$inboundSchema: z.ZodType<
|
|
|
23
31
|
unknown
|
|
24
32
|
> = z.object({
|
|
25
33
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
34
|
+
evaluation_key_configured: z.boolean(),
|
|
35
|
+
evaluation_key_hint: z.nullable(z.string()),
|
|
26
36
|
id: z.string(),
|
|
27
37
|
key: z.string(),
|
|
28
38
|
name: z.string(),
|
|
@@ -30,12 +40,16 @@ export const FeatureFlagEnvironment$inboundSchema: z.ZodType<
|
|
|
30
40
|
}).transform((v) => {
|
|
31
41
|
return remap$(v, {
|
|
32
42
|
"created_at": "createdAt",
|
|
43
|
+
"evaluation_key_configured": "evaluationKeyConfigured",
|
|
44
|
+
"evaluation_key_hint": "evaluationKeyHint",
|
|
33
45
|
"updated_at": "updatedAt",
|
|
34
46
|
});
|
|
35
47
|
});
|
|
36
48
|
/** @internal */
|
|
37
49
|
export type FeatureFlagEnvironment$Outbound = {
|
|
38
50
|
created_at: string;
|
|
51
|
+
evaluation_key_configured: boolean;
|
|
52
|
+
evaluation_key_hint: string | null;
|
|
39
53
|
id: string;
|
|
40
54
|
key: string;
|
|
41
55
|
name: string;
|
|
@@ -49,6 +63,8 @@ export const FeatureFlagEnvironment$outboundSchema: z.ZodType<
|
|
|
49
63
|
FeatureFlagEnvironment
|
|
50
64
|
> = z.object({
|
|
51
65
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
66
|
+
evaluationKeyConfigured: z.boolean(),
|
|
67
|
+
evaluationKeyHint: z.nullable(z.string()),
|
|
52
68
|
id: z.string(),
|
|
53
69
|
key: z.string(),
|
|
54
70
|
name: z.string(),
|
|
@@ -56,6 +72,8 @@ export const FeatureFlagEnvironment$outboundSchema: z.ZodType<
|
|
|
56
72
|
}).transform((v) => {
|
|
57
73
|
return remap$(v, {
|
|
58
74
|
createdAt: "created_at",
|
|
75
|
+
evaluationKeyConfigured: "evaluation_key_configured",
|
|
76
|
+
evaluationKeyHint: "evaluation_key_hint",
|
|
59
77
|
updatedAt: "updated_at",
|
|
60
78
|
});
|
|
61
79
|
});
|
|
@@ -521,7 +521,10 @@ export * from "./registrymodelorigin.js";
|
|
|
521
521
|
export * from "./registrysource.js";
|
|
522
522
|
export * from "./reinforcementhyperparameters.js";
|
|
523
523
|
export * from "./repo.js";
|
|
524
|
+
export * from "./repokind.js";
|
|
524
525
|
export * from "./repositorylist.js";
|
|
526
|
+
export * from "./repotag.js";
|
|
527
|
+
export * from "./repotaglist.js";
|
|
525
528
|
export * from "./requestcounts.js";
|
|
526
529
|
export * from "./resolvedreference.js";
|
|
527
530
|
export * from "./resolvereferencerequest.js";
|
|
@@ -6,6 +6,11 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
RepoKind,
|
|
11
|
+
RepoKind$inboundSchema,
|
|
12
|
+
RepoKind$outboundSchema,
|
|
13
|
+
} from "./repokind.js";
|
|
9
14
|
|
|
10
15
|
/**
|
|
11
16
|
* A partial update. Every field is optional; an omitted field is left
|
|
@@ -15,6 +20,13 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
15
20
|
*/
|
|
16
21
|
export type PatchRepoRequest = {
|
|
17
22
|
description?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Switch the repository's kind (see the operation description for
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* the rules). Cannot be `null`: a kind is never un-set.
|
|
28
|
+
*/
|
|
29
|
+
kind?: RepoKind | undefined;
|
|
18
30
|
name?: string | undefined;
|
|
19
31
|
};
|
|
20
32
|
|
|
@@ -25,11 +37,13 @@ export const PatchRepoRequest$inboundSchema: z.ZodType<
|
|
|
25
37
|
unknown
|
|
26
38
|
> = z.object({
|
|
27
39
|
description: z.string().optional(),
|
|
40
|
+
kind: RepoKind$inboundSchema.optional(),
|
|
28
41
|
name: z.string().optional(),
|
|
29
42
|
});
|
|
30
43
|
/** @internal */
|
|
31
44
|
export type PatchRepoRequest$Outbound = {
|
|
32
45
|
description?: string | undefined;
|
|
46
|
+
kind?: string | undefined;
|
|
33
47
|
name?: string | undefined;
|
|
34
48
|
};
|
|
35
49
|
|
|
@@ -40,6 +54,7 @@ export const PatchRepoRequest$outboundSchema: z.ZodType<
|
|
|
40
54
|
PatchRepoRequest
|
|
41
55
|
> = z.object({
|
|
42
56
|
description: z.string().optional(),
|
|
57
|
+
kind: RepoKind$outboundSchema.optional(),
|
|
43
58
|
name: z.string().optional(),
|
|
44
59
|
});
|
|
45
60
|
|