@meetkai/mka1 0.51.25 → 0.51.26
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 +259 -228
- package/bin/mcp-server.js +2154 -732
- package/bin/mcp-server.js.map +40 -9
- package/dist/commonjs/funcs/reposCollaboratorsAdd.d.ts +21 -0
- package/dist/commonjs/funcs/reposCollaboratorsAdd.d.ts.map +1 -0
- package/dist/commonjs/funcs/reposCollaboratorsAdd.js +149 -0
- package/dist/commonjs/funcs/reposCollaboratorsAdd.js.map +1 -0
- package/dist/commonjs/funcs/reposCollaboratorsList.d.ts +19 -0
- package/dist/commonjs/funcs/reposCollaboratorsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/reposCollaboratorsList.js +140 -0
- package/dist/commonjs/funcs/reposCollaboratorsList.js.map +1 -0
- package/dist/commonjs/funcs/reposCollaboratorsRemove.d.ts +19 -0
- package/dist/commonjs/funcs/reposCollaboratorsRemove.d.ts.map +1 -0
- package/dist/commonjs/funcs/reposCollaboratorsRemove.js +145 -0
- package/dist/commonjs/funcs/reposCollaboratorsRemove.js.map +1 -0
- package/dist/commonjs/funcs/reposCreate.d.ts +21 -0
- package/dist/commonjs/funcs/reposCreate.d.ts.map +1 -0
- package/dist/commonjs/funcs/reposCreate.js +133 -0
- package/dist/commonjs/funcs/reposCreate.js.map +1 -0
- package/dist/commonjs/funcs/reposDelete.d.ts +19 -0
- package/dist/commonjs/funcs/reposDelete.d.ts.map +1 -0
- package/dist/commonjs/funcs/reposDelete.js +141 -0
- package/dist/commonjs/funcs/reposDelete.js.map +1 -0
- package/dist/commonjs/funcs/reposGet.d.ts +19 -0
- package/dist/commonjs/funcs/reposGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/reposGet.js +140 -0
- package/dist/commonjs/funcs/reposGet.js.map +1 -0
- package/dist/commonjs/funcs/reposList.d.ts +19 -0
- package/dist/commonjs/funcs/reposList.d.ts.map +1 -0
- package/dist/commonjs/funcs/reposList.js +130 -0
- package/dist/commonjs/funcs/reposList.js.map +1 -0
- package/dist/commonjs/funcs/reposUpdate.d.ts +22 -0
- package/dist/commonjs/funcs/reposUpdate.d.ts.map +1 -0
- package/dist/commonjs/funcs/reposUpdate.js +144 -0
- package/dist/commonjs/funcs/reposUpdate.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- 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 +17 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsAdd.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsAdd.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsAdd.js +67 -0
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsAdd.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsList.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsList.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsList.js +66 -0
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsList.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsRemove.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsRemove.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsRemove.js +65 -0
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsRemove.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposCreate.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/reposCreate.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposCreate.js +67 -0
- package/dist/commonjs/mcp-server/tools/reposCreate.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposDelete.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/reposDelete.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposDelete.js +65 -0
- package/dist/commonjs/mcp-server/tools/reposDelete.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposGet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/reposGet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposGet.js +64 -0
- package/dist/commonjs/mcp-server/tools/reposGet.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposList.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/reposList.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposList.js +66 -0
- package/dist/commonjs/mcp-server/tools/reposList.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposUpdate.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/reposUpdate.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/reposUpdate.js +68 -0
- package/dist/commonjs/mcp-server/tools/reposUpdate.js.map +1 -0
- package/dist/commonjs/models/components/collaboratorrequest.d.ts +45 -0
- package/dist/commonjs/models/components/collaboratorrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/collaboratorrequest.js +72 -0
- package/dist/commonjs/models/components/collaboratorrequest.js.map +1 -0
- package/dist/commonjs/models/components/createreporequest.d.ts +46 -0
- package/dist/commonjs/models/components/createreporequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/createreporequest.js +73 -0
- package/dist/commonjs/models/components/createreporequest.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +6 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +6 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/member.d.ts +51 -0
- package/dist/commonjs/models/components/member.d.ts.map +1 -0
- package/dist/commonjs/models/components/member.js +77 -0
- package/dist/commonjs/models/components/member.js.map +1 -0
- package/dist/commonjs/models/components/patchreporequest.d.ts +34 -0
- package/dist/commonjs/models/components/patchreporequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/patchreporequest.js +63 -0
- package/dist/commonjs/models/components/patchreporequest.js.map +1 -0
- package/dist/commonjs/models/components/repo.d.ts +43 -0
- package/dist/commonjs/models/components/repo.d.ts.map +1 -0
- package/dist/commonjs/models/components/repo.js +79 -0
- package/dist/commonjs/models/components/repo.js.map +1 -0
- package/dist/commonjs/models/components/visibility.d.ts +24 -0
- package/dist/commonjs/models/components/visibility.d.ts.map +1 -0
- package/dist/commonjs/models/components/visibility.js +56 -0
- package/dist/commonjs/models/components/visibility.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/repoerror.d.ts +41 -0
- package/dist/commonjs/models/errors/repoerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/repoerror.js +92 -0
- package/dist/commonjs/models/errors/repoerror.js.map +1 -0
- package/dist/commonjs/models/operations/createrepo.d.ts +23 -0
- package/dist/commonjs/models/operations/createrepo.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createrepo.js +72 -0
- package/dist/commonjs/models/operations/createrepo.js.map +1 -0
- package/dist/commonjs/models/operations/deletecollaborator.d.ts +35 -0
- package/dist/commonjs/models/operations/deletecollaborator.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletecollaborator.js +73 -0
- package/dist/commonjs/models/operations/deletecollaborator.js.map +1 -0
- package/dist/commonjs/models/operations/deleterepo.d.ts +30 -0
- package/dist/commonjs/models/operations/deleterepo.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deleterepo.js +71 -0
- package/dist/commonjs/models/operations/deleterepo.js.map +1 -0
- package/dist/commonjs/models/operations/getrepo.d.ts +30 -0
- package/dist/commonjs/models/operations/getrepo.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getrepo.js +71 -0
- package/dist/commonjs/models/operations/getrepo.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +8 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +8 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listcollaborators.d.ts +47 -0
- package/dist/commonjs/models/operations/listcollaborators.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listcollaborators.js +88 -0
- package/dist/commonjs/models/operations/listcollaborators.js.map +1 -0
- package/dist/commonjs/models/operations/listrepos.d.ts +37 -0
- package/dist/commonjs/models/operations/listrepos.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listrepos.js +84 -0
- package/dist/commonjs/models/operations/listrepos.js.map +1 -0
- package/dist/commonjs/models/operations/patchrepo.d.ts +33 -0
- package/dist/commonjs/models/operations/patchrepo.d.ts.map +1 -0
- package/dist/commonjs/models/operations/patchrepo.js +76 -0
- package/dist/commonjs/models/operations/patchrepo.js.map +1 -0
- package/dist/commonjs/models/operations/putcollaborator.d.ts +38 -0
- package/dist/commonjs/models/operations/putcollaborator.d.ts.map +1 -0
- package/dist/commonjs/models/operations/putcollaborator.js +78 -0
- package/dist/commonjs/models/operations/putcollaborator.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +8 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +8 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/reposCollaboratorsAdd.d.ts +32 -0
- package/dist/commonjs/react-query/reposCollaboratorsAdd.d.ts.map +1 -0
- package/dist/commonjs/react-query/reposCollaboratorsAdd.js +49 -0
- package/dist/commonjs/react-query/reposCollaboratorsAdd.js.map +1 -0
- package/dist/commonjs/react-query/reposCollaboratorsList.core.d.ts +14 -0
- package/dist/commonjs/react-query/reposCollaboratorsList.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/reposCollaboratorsList.core.js +36 -0
- package/dist/commonjs/react-query/reposCollaboratorsList.core.js.map +1 -0
- package/dist/commonjs/react-query/reposCollaboratorsList.d.ts +43 -0
- package/dist/commonjs/react-query/reposCollaboratorsList.d.ts.map +1 -0
- package/dist/commonjs/react-query/reposCollaboratorsList.js +62 -0
- package/dist/commonjs/react-query/reposCollaboratorsList.js.map +1 -0
- package/dist/commonjs/react-query/reposCollaboratorsRemove.d.ts +30 -0
- package/dist/commonjs/react-query/reposCollaboratorsRemove.d.ts.map +1 -0
- package/dist/commonjs/react-query/reposCollaboratorsRemove.js +48 -0
- package/dist/commonjs/react-query/reposCollaboratorsRemove.js.map +1 -0
- package/dist/commonjs/react-query/reposCreate.d.ts +32 -0
- package/dist/commonjs/react-query/reposCreate.d.ts.map +1 -0
- package/dist/commonjs/react-query/reposCreate.js +49 -0
- package/dist/commonjs/react-query/reposCreate.js.map +1 -0
- package/dist/commonjs/react-query/reposDelete.d.ts +30 -0
- package/dist/commonjs/react-query/reposDelete.d.ts.map +1 -0
- package/dist/commonjs/react-query/reposDelete.js +48 -0
- package/dist/commonjs/react-query/reposDelete.js.map +1 -0
- package/dist/commonjs/react-query/reposGet.core.d.ts +15 -0
- package/dist/commonjs/react-query/reposGet.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/reposGet.core.js +36 -0
- package/dist/commonjs/react-query/reposGet.core.js.map +1 -0
- package/dist/commonjs/react-query/reposGet.d.ts +41 -0
- package/dist/commonjs/react-query/reposGet.d.ts.map +1 -0
- package/dist/commonjs/react-query/reposGet.js +60 -0
- package/dist/commonjs/react-query/reposGet.js.map +1 -0
- package/dist/commonjs/react-query/reposList.core.d.ts +14 -0
- package/dist/commonjs/react-query/reposList.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/reposList.core.js +34 -0
- package/dist/commonjs/react-query/reposList.core.js.map +1 -0
- package/dist/commonjs/react-query/reposList.d.ts +37 -0
- package/dist/commonjs/react-query/reposList.d.ts.map +1 -0
- package/dist/commonjs/react-query/reposList.js +62 -0
- package/dist/commonjs/react-query/reposList.js.map +1 -0
- package/dist/commonjs/react-query/reposUpdate.d.ts +33 -0
- package/dist/commonjs/react-query/reposUpdate.d.ts.map +1 -0
- package/dist/commonjs/react-query/reposUpdate.js +50 -0
- package/dist/commonjs/react-query/reposUpdate.js.map +1 -0
- package/dist/commonjs/sdk/collaborators.d.ts +31 -0
- package/dist/commonjs/sdk/collaborators.d.ts.map +1 -0
- package/dist/commonjs/sdk/collaborators.js +46 -0
- package/dist/commonjs/sdk/collaborators.js.map +1 -0
- package/dist/commonjs/sdk/repos.d.ts +51 -0
- package/dist/commonjs/sdk/repos.d.ts.map +1 -0
- package/dist/commonjs/sdk/repos.js +73 -0
- package/dist/commonjs/sdk/repos.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/reposCollaboratorsAdd.d.ts +21 -0
- package/dist/esm/funcs/reposCollaboratorsAdd.d.ts.map +1 -0
- package/dist/esm/funcs/reposCollaboratorsAdd.js +113 -0
- package/dist/esm/funcs/reposCollaboratorsAdd.js.map +1 -0
- package/dist/esm/funcs/reposCollaboratorsList.d.ts +19 -0
- package/dist/esm/funcs/reposCollaboratorsList.d.ts.map +1 -0
- package/dist/esm/funcs/reposCollaboratorsList.js +104 -0
- package/dist/esm/funcs/reposCollaboratorsList.js.map +1 -0
- package/dist/esm/funcs/reposCollaboratorsRemove.d.ts +19 -0
- package/dist/esm/funcs/reposCollaboratorsRemove.d.ts.map +1 -0
- package/dist/esm/funcs/reposCollaboratorsRemove.js +109 -0
- package/dist/esm/funcs/reposCollaboratorsRemove.js.map +1 -0
- package/dist/esm/funcs/reposCreate.d.ts +21 -0
- package/dist/esm/funcs/reposCreate.d.ts.map +1 -0
- package/dist/esm/funcs/reposCreate.js +97 -0
- package/dist/esm/funcs/reposCreate.js.map +1 -0
- package/dist/esm/funcs/reposDelete.d.ts +19 -0
- package/dist/esm/funcs/reposDelete.d.ts.map +1 -0
- package/dist/esm/funcs/reposDelete.js +105 -0
- package/dist/esm/funcs/reposDelete.js.map +1 -0
- package/dist/esm/funcs/reposGet.d.ts +19 -0
- package/dist/esm/funcs/reposGet.d.ts.map +1 -0
- package/dist/esm/funcs/reposGet.js +104 -0
- package/dist/esm/funcs/reposGet.js.map +1 -0
- package/dist/esm/funcs/reposList.d.ts +19 -0
- package/dist/esm/funcs/reposList.d.ts.map +1 -0
- package/dist/esm/funcs/reposList.js +94 -0
- package/dist/esm/funcs/reposList.js.map +1 -0
- package/dist/esm/funcs/reposUpdate.d.ts +22 -0
- package/dist/esm/funcs/reposUpdate.d.ts.map +1 -0
- package/dist/esm/funcs/reposUpdate.js +108 -0
- package/dist/esm/funcs/reposUpdate.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- 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 +17 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/reposCollaboratorsAdd.d.ts +8 -0
- package/dist/esm/mcp-server/tools/reposCollaboratorsAdd.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/reposCollaboratorsAdd.js +31 -0
- package/dist/esm/mcp-server/tools/reposCollaboratorsAdd.js.map +1 -0
- package/dist/esm/mcp-server/tools/reposCollaboratorsList.d.ts +8 -0
- package/dist/esm/mcp-server/tools/reposCollaboratorsList.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/reposCollaboratorsList.js +30 -0
- package/dist/esm/mcp-server/tools/reposCollaboratorsList.js.map +1 -0
- package/dist/esm/mcp-server/tools/reposCollaboratorsRemove.d.ts +8 -0
- package/dist/esm/mcp-server/tools/reposCollaboratorsRemove.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/reposCollaboratorsRemove.js +29 -0
- package/dist/esm/mcp-server/tools/reposCollaboratorsRemove.js.map +1 -0
- package/dist/esm/mcp-server/tools/reposCreate.d.ts +8 -0
- package/dist/esm/mcp-server/tools/reposCreate.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/reposCreate.js +31 -0
- package/dist/esm/mcp-server/tools/reposCreate.js.map +1 -0
- package/dist/esm/mcp-server/tools/reposDelete.d.ts +8 -0
- package/dist/esm/mcp-server/tools/reposDelete.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/reposDelete.js +29 -0
- package/dist/esm/mcp-server/tools/reposDelete.js.map +1 -0
- package/dist/esm/mcp-server/tools/reposGet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/reposGet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/reposGet.js +28 -0
- package/dist/esm/mcp-server/tools/reposGet.js.map +1 -0
- package/dist/esm/mcp-server/tools/reposList.d.ts +8 -0
- package/dist/esm/mcp-server/tools/reposList.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/reposList.js +30 -0
- package/dist/esm/mcp-server/tools/reposList.js.map +1 -0
- package/dist/esm/mcp-server/tools/reposUpdate.d.ts +8 -0
- package/dist/esm/mcp-server/tools/reposUpdate.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/reposUpdate.js +32 -0
- package/dist/esm/mcp-server/tools/reposUpdate.js.map +1 -0
- package/dist/esm/models/components/collaboratorrequest.d.ts +45 -0
- package/dist/esm/models/components/collaboratorrequest.d.ts.map +1 -0
- package/dist/esm/models/components/collaboratorrequest.js +34 -0
- package/dist/esm/models/components/collaboratorrequest.js.map +1 -0
- package/dist/esm/models/components/createreporequest.d.ts +46 -0
- package/dist/esm/models/components/createreporequest.d.ts.map +1 -0
- package/dist/esm/models/components/createreporequest.js +35 -0
- package/dist/esm/models/components/createreporequest.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +6 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +6 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/member.d.ts +51 -0
- package/dist/esm/models/components/member.d.ts.map +1 -0
- package/dist/esm/models/components/member.js +39 -0
- package/dist/esm/models/components/member.js.map +1 -0
- package/dist/esm/models/components/patchreporequest.d.ts +34 -0
- package/dist/esm/models/components/patchreporequest.d.ts.map +1 -0
- package/dist/esm/models/components/patchreporequest.js +25 -0
- package/dist/esm/models/components/patchreporequest.js.map +1 -0
- package/dist/esm/models/components/repo.d.ts +43 -0
- package/dist/esm/models/components/repo.d.ts.map +1 -0
- package/dist/esm/models/components/repo.js +41 -0
- package/dist/esm/models/components/repo.js.map +1 -0
- package/dist/esm/models/components/visibility.d.ts +24 -0
- package/dist/esm/models/components/visibility.d.ts.map +1 -0
- package/dist/esm/models/components/visibility.js +20 -0
- package/dist/esm/models/components/visibility.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/repoerror.d.ts +41 -0
- package/dist/esm/models/errors/repoerror.d.ts.map +1 -0
- package/dist/esm/models/errors/repoerror.js +55 -0
- package/dist/esm/models/errors/repoerror.js.map +1 -0
- package/dist/esm/models/operations/createrepo.d.ts +23 -0
- package/dist/esm/models/operations/createrepo.d.ts.map +1 -0
- package/dist/esm/models/operations/createrepo.js +34 -0
- package/dist/esm/models/operations/createrepo.js.map +1 -0
- package/dist/esm/models/operations/deletecollaborator.d.ts +35 -0
- package/dist/esm/models/operations/deletecollaborator.d.ts.map +1 -0
- package/dist/esm/models/operations/deletecollaborator.js +35 -0
- package/dist/esm/models/operations/deletecollaborator.js.map +1 -0
- package/dist/esm/models/operations/deleterepo.d.ts +30 -0
- package/dist/esm/models/operations/deleterepo.d.ts.map +1 -0
- package/dist/esm/models/operations/deleterepo.js +33 -0
- package/dist/esm/models/operations/deleterepo.js.map +1 -0
- package/dist/esm/models/operations/getrepo.d.ts +30 -0
- package/dist/esm/models/operations/getrepo.d.ts.map +1 -0
- package/dist/esm/models/operations/getrepo.js +33 -0
- package/dist/esm/models/operations/getrepo.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +8 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +8 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listcollaborators.d.ts +47 -0
- package/dist/esm/models/operations/listcollaborators.d.ts.map +1 -0
- package/dist/esm/models/operations/listcollaborators.js +48 -0
- package/dist/esm/models/operations/listcollaborators.js.map +1 -0
- package/dist/esm/models/operations/listrepos.d.ts +37 -0
- package/dist/esm/models/operations/listrepos.d.ts.map +1 -0
- package/dist/esm/models/operations/listrepos.js +44 -0
- package/dist/esm/models/operations/listrepos.js.map +1 -0
- package/dist/esm/models/operations/patchrepo.d.ts +33 -0
- package/dist/esm/models/operations/patchrepo.d.ts.map +1 -0
- package/dist/esm/models/operations/patchrepo.js +38 -0
- package/dist/esm/models/operations/patchrepo.js.map +1 -0
- package/dist/esm/models/operations/putcollaborator.d.ts +38 -0
- package/dist/esm/models/operations/putcollaborator.d.ts.map +1 -0
- package/dist/esm/models/operations/putcollaborator.js +40 -0
- package/dist/esm/models/operations/putcollaborator.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +8 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +8 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/reposCollaboratorsAdd.d.ts +32 -0
- package/dist/esm/react-query/reposCollaboratorsAdd.d.ts.map +1 -0
- package/dist/esm/react-query/reposCollaboratorsAdd.js +44 -0
- package/dist/esm/react-query/reposCollaboratorsAdd.js.map +1 -0
- package/dist/esm/react-query/reposCollaboratorsList.core.d.ts +14 -0
- package/dist/esm/react-query/reposCollaboratorsList.core.d.ts.map +1 -0
- package/dist/esm/react-query/reposCollaboratorsList.core.js +31 -0
- package/dist/esm/react-query/reposCollaboratorsList.core.js.map +1 -0
- package/dist/esm/react-query/reposCollaboratorsList.d.ts +43 -0
- package/dist/esm/react-query/reposCollaboratorsList.d.ts.map +1 -0
- package/dist/esm/react-query/reposCollaboratorsList.js +52 -0
- package/dist/esm/react-query/reposCollaboratorsList.js.map +1 -0
- package/dist/esm/react-query/reposCollaboratorsRemove.d.ts +30 -0
- package/dist/esm/react-query/reposCollaboratorsRemove.d.ts.map +1 -0
- package/dist/esm/react-query/reposCollaboratorsRemove.js +43 -0
- package/dist/esm/react-query/reposCollaboratorsRemove.js.map +1 -0
- package/dist/esm/react-query/reposCreate.d.ts +32 -0
- package/dist/esm/react-query/reposCreate.d.ts.map +1 -0
- package/dist/esm/react-query/reposCreate.js +44 -0
- package/dist/esm/react-query/reposCreate.js.map +1 -0
- package/dist/esm/react-query/reposDelete.d.ts +30 -0
- package/dist/esm/react-query/reposDelete.d.ts.map +1 -0
- package/dist/esm/react-query/reposDelete.js +43 -0
- package/dist/esm/react-query/reposDelete.js.map +1 -0
- package/dist/esm/react-query/reposGet.core.d.ts +15 -0
- package/dist/esm/react-query/reposGet.core.d.ts.map +1 -0
- package/dist/esm/react-query/reposGet.core.js +31 -0
- package/dist/esm/react-query/reposGet.core.js.map +1 -0
- package/dist/esm/react-query/reposGet.d.ts +41 -0
- package/dist/esm/react-query/reposGet.d.ts.map +1 -0
- package/dist/esm/react-query/reposGet.js +50 -0
- package/dist/esm/react-query/reposGet.js.map +1 -0
- package/dist/esm/react-query/reposList.core.d.ts +14 -0
- package/dist/esm/react-query/reposList.core.d.ts.map +1 -0
- package/dist/esm/react-query/reposList.core.js +29 -0
- package/dist/esm/react-query/reposList.core.js.map +1 -0
- package/dist/esm/react-query/reposList.d.ts +37 -0
- package/dist/esm/react-query/reposList.d.ts.map +1 -0
- package/dist/esm/react-query/reposList.js +52 -0
- package/dist/esm/react-query/reposList.js.map +1 -0
- package/dist/esm/react-query/reposUpdate.d.ts +33 -0
- package/dist/esm/react-query/reposUpdate.d.ts.map +1 -0
- package/dist/esm/react-query/reposUpdate.js +45 -0
- package/dist/esm/react-query/reposUpdate.js.map +1 -0
- package/dist/esm/sdk/collaborators.d.ts +31 -0
- package/dist/esm/sdk/collaborators.d.ts.map +1 -0
- package/dist/esm/sdk/collaborators.js +42 -0
- package/dist/esm/sdk/collaborators.js.map +1 -0
- package/dist/esm/sdk/repos.d.ts +51 -0
- package/dist/esm/sdk/repos.d.ts.map +1 -0
- package/dist/esm/sdk/repos.js +69 -0
- package/dist/esm/sdk/repos.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/reposCollaboratorsAdd.ts +208 -0
- package/src/funcs/reposCollaboratorsList.ts +198 -0
- package/src/funcs/reposCollaboratorsRemove.ts +204 -0
- package/src/funcs/reposCreate.ts +190 -0
- package/src/funcs/reposDelete.ts +198 -0
- package/src/funcs/reposGet.ts +196 -0
- package/src/funcs/reposList.ts +187 -0
- package/src/funcs/reposUpdate.ts +201 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +17 -1
- package/src/mcp-server/tools/reposCollaboratorsAdd.ts +40 -0
- package/src/mcp-server/tools/reposCollaboratorsList.ts +39 -0
- package/src/mcp-server/tools/reposCollaboratorsRemove.ts +37 -0
- package/src/mcp-server/tools/reposCreate.ts +40 -0
- package/src/mcp-server/tools/reposDelete.ts +37 -0
- package/src/mcp-server/tools/reposGet.ts +37 -0
- package/src/mcp-server/tools/reposList.ts +39 -0
- package/src/mcp-server/tools/reposUpdate.ts +41 -0
- package/src/models/components/collaboratorrequest.ts +87 -0
- package/src/models/components/createreporequest.ts +92 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/member.ts +84 -0
- package/src/models/components/patchreporequest.ts +76 -0
- package/src/models/components/repo.ts +92 -0
- package/src/models/components/visibility.ts +31 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/repoerror.ts +97 -0
- package/src/models/operations/createrepo.ts +70 -0
- package/src/models/operations/deletecollaborator.ts +84 -0
- package/src/models/operations/deleterepo.ts +77 -0
- package/src/models/operations/getrepo.ts +73 -0
- package/src/models/operations/index.ts +8 -0
- package/src/models/operations/listcollaborators.ts +126 -0
- package/src/models/operations/listrepos.ts +110 -0
- package/src/models/operations/patchrepo.ts +84 -0
- package/src/models/operations/putcollaborator.ts +91 -0
- package/src/react-query/index.ts +8 -0
- package/src/react-query/reposCollaboratorsAdd.ts +113 -0
- package/src/react-query/reposCollaboratorsList.core.ts +77 -0
- package/src/react-query/reposCollaboratorsList.ts +150 -0
- package/src/react-query/reposCollaboratorsRemove.ts +111 -0
- package/src/react-query/reposCreate.ts +113 -0
- package/src/react-query/reposDelete.ts +111 -0
- package/src/react-query/reposGet.core.ts +73 -0
- package/src/react-query/reposGet.ts +136 -0
- package/src/react-query/reposList.core.ts +68 -0
- package/src/react-query/reposList.ts +130 -0
- package/src/react-query/reposUpdate.ts +114 -0
- package/src/sdk/collaborators.ts +68 -0
- package/src/sdk/repos.ts +113 -0
- package/src/sdk/sdk.ts +6 -0
package/bin/mcp-server.js
CHANGED
|
@@ -52876,9 +52876,9 @@ var init_config = __esm(() => {
|
|
|
52876
52876
|
SDK_METADATA = {
|
|
52877
52877
|
language: "typescript",
|
|
52878
52878
|
openapiDocVersion: "1.1.0",
|
|
52879
|
-
sdkVersion: "0.51.
|
|
52879
|
+
sdkVersion: "0.51.26",
|
|
52880
52880
|
genVersion: "2.924.0",
|
|
52881
|
-
userAgent: "speakeasy-sdk/typescript 0.51.
|
|
52881
|
+
userAgent: "speakeasy-sdk/typescript 0.51.26 2.924.0 1.1.0 @meetkai/mka1"
|
|
52882
52882
|
};
|
|
52883
52883
|
});
|
|
52884
52884
|
|
|
@@ -57914,6 +57914,24 @@ var init_coderesult = __esm(() => {
|
|
|
57914
57914
|
});
|
|
57915
57915
|
});
|
|
57916
57916
|
|
|
57917
|
+
// src/models/components/collaboratorrequest.ts
|
|
57918
|
+
var CollaboratorRequestRole, CollaboratorRequestRole$inboundSchema, CollaboratorRequestRole$outboundSchema, CollaboratorRequest$inboundSchema, CollaboratorRequest$outboundSchema;
|
|
57919
|
+
var init_collaboratorrequest = __esm(() => {
|
|
57920
|
+
init_esm();
|
|
57921
|
+
CollaboratorRequestRole = {
|
|
57922
|
+
Reader: "reader",
|
|
57923
|
+
Writer: "writer"
|
|
57924
|
+
};
|
|
57925
|
+
CollaboratorRequestRole$inboundSchema = nativeEnumType(CollaboratorRequestRole);
|
|
57926
|
+
CollaboratorRequestRole$outboundSchema = CollaboratorRequestRole$inboundSchema;
|
|
57927
|
+
CollaboratorRequest$inboundSchema = objectType({
|
|
57928
|
+
role: CollaboratorRequestRole$inboundSchema
|
|
57929
|
+
});
|
|
57930
|
+
CollaboratorRequest$outboundSchema = objectType({
|
|
57931
|
+
role: CollaboratorRequestRole$outboundSchema
|
|
57932
|
+
});
|
|
57933
|
+
});
|
|
57934
|
+
|
|
57917
57935
|
// src/models/components/commandrequest.ts
|
|
57918
57936
|
var CommandRequest$inboundSchema, CommandRequest$outboundSchema;
|
|
57919
57937
|
var init_commandrequest = __esm(() => {
|
|
@@ -62498,6 +62516,28 @@ var init_createpromptresponse = __esm(() => {
|
|
|
62498
62516
|
});
|
|
62499
62517
|
});
|
|
62500
62518
|
|
|
62519
|
+
// src/models/components/createreporequest.ts
|
|
62520
|
+
var CreateRepoRequestVisibility, CreateRepoRequestVisibility$inboundSchema, CreateRepoRequestVisibility$outboundSchema, CreateRepoRequest$inboundSchema, CreateRepoRequest$outboundSchema;
|
|
62521
|
+
var init_createreporequest = __esm(() => {
|
|
62522
|
+
init_esm();
|
|
62523
|
+
CreateRepoRequestVisibility = {
|
|
62524
|
+
Private: "private",
|
|
62525
|
+
Team: "team"
|
|
62526
|
+
};
|
|
62527
|
+
CreateRepoRequestVisibility$inboundSchema = nativeEnumType(CreateRepoRequestVisibility);
|
|
62528
|
+
CreateRepoRequestVisibility$outboundSchema = CreateRepoRequestVisibility$inboundSchema;
|
|
62529
|
+
CreateRepoRequest$inboundSchema = objectType({
|
|
62530
|
+
description: stringType().optional(),
|
|
62531
|
+
name: stringType(),
|
|
62532
|
+
visibility: CreateRepoRequestVisibility$inboundSchema.default("private")
|
|
62533
|
+
});
|
|
62534
|
+
CreateRepoRequest$outboundSchema = objectType({
|
|
62535
|
+
description: stringType().optional(),
|
|
62536
|
+
name: stringType(),
|
|
62537
|
+
visibility: CreateRepoRequestVisibility$outboundSchema.default("private")
|
|
62538
|
+
});
|
|
62539
|
+
});
|
|
62540
|
+
|
|
62501
62541
|
// src/models/components/memorymountaccess.ts
|
|
62502
62542
|
var MemoryMountAccess, MemoryMountAccess$inboundSchema, MemoryMountAccess$outboundSchema;
|
|
62503
62543
|
var init_memorymountaccess = __esm(() => {
|
|
@@ -67721,6 +67761,27 @@ var init_mcptoolcallwithid = __esm(() => {
|
|
|
67721
67761
|
});
|
|
67722
67762
|
});
|
|
67723
67763
|
|
|
67764
|
+
// src/models/components/member.ts
|
|
67765
|
+
var MemberRole, MemberRole$inboundSchema, MemberRole$outboundSchema, Member$inboundSchema, Member$outboundSchema;
|
|
67766
|
+
var init_member = __esm(() => {
|
|
67767
|
+
init_esm();
|
|
67768
|
+
MemberRole = {
|
|
67769
|
+
Reader: "reader",
|
|
67770
|
+
Writer: "writer",
|
|
67771
|
+
Owner: "owner"
|
|
67772
|
+
};
|
|
67773
|
+
MemberRole$inboundSchema = nativeEnumType(MemberRole);
|
|
67774
|
+
MemberRole$outboundSchema = MemberRole$inboundSchema;
|
|
67775
|
+
Member$inboundSchema = objectType({
|
|
67776
|
+
role: MemberRole$inboundSchema,
|
|
67777
|
+
user: stringType()
|
|
67778
|
+
});
|
|
67779
|
+
Member$outboundSchema = objectType({
|
|
67780
|
+
role: MemberRole$outboundSchema,
|
|
67781
|
+
user: stringType()
|
|
67782
|
+
});
|
|
67783
|
+
});
|
|
67784
|
+
|
|
67724
67785
|
// src/models/components/memoryentry.ts
|
|
67725
67786
|
var MemoryEntry$inboundSchema, MemoryEntry$outboundSchema;
|
|
67726
67787
|
var init_memoryentry = __esm(() => {
|
|
@@ -69491,6 +69552,35 @@ var init_pageservingtenant = __esm(() => {
|
|
|
69491
69552
|
});
|
|
69492
69553
|
});
|
|
69493
69554
|
|
|
69555
|
+
// src/models/components/visibility.ts
|
|
69556
|
+
var Visibility, Visibility$inboundSchema, Visibility$outboundSchema;
|
|
69557
|
+
var init_visibility = __esm(() => {
|
|
69558
|
+
init_esm();
|
|
69559
|
+
Visibility = {
|
|
69560
|
+
Private: "private",
|
|
69561
|
+
Team: "team"
|
|
69562
|
+
};
|
|
69563
|
+
Visibility$inboundSchema = nativeEnumType(Visibility);
|
|
69564
|
+
Visibility$outboundSchema = Visibility$inboundSchema;
|
|
69565
|
+
});
|
|
69566
|
+
|
|
69567
|
+
// src/models/components/patchreporequest.ts
|
|
69568
|
+
var PatchRepoRequest$inboundSchema, PatchRepoRequest$outboundSchema;
|
|
69569
|
+
var init_patchreporequest = __esm(() => {
|
|
69570
|
+
init_esm();
|
|
69571
|
+
init_visibility();
|
|
69572
|
+
PatchRepoRequest$inboundSchema = objectType({
|
|
69573
|
+
description: stringType().optional(),
|
|
69574
|
+
name: stringType().optional(),
|
|
69575
|
+
visibility: Visibility$inboundSchema.optional()
|
|
69576
|
+
});
|
|
69577
|
+
PatchRepoRequest$outboundSchema = objectType({
|
|
69578
|
+
description: stringType().optional(),
|
|
69579
|
+
name: stringType().optional(),
|
|
69580
|
+
visibility: Visibility$outboundSchema.optional()
|
|
69581
|
+
});
|
|
69582
|
+
});
|
|
69583
|
+
|
|
69494
69584
|
// src/models/components/preconfiguredskill.ts
|
|
69495
69585
|
var PreconfiguredSkill$inboundSchema, PreconfiguredSkill$outboundSchema;
|
|
69496
69586
|
var init_preconfiguredskill = __esm(() => {
|
|
@@ -69705,6 +69795,38 @@ var init_registrymanagementlistresponse = __esm(() => {
|
|
|
69705
69795
|
});
|
|
69706
69796
|
});
|
|
69707
69797
|
|
|
69798
|
+
// src/models/components/repo.ts
|
|
69799
|
+
var Repo$inboundSchema, Repo$outboundSchema;
|
|
69800
|
+
var init_repo = __esm(() => {
|
|
69801
|
+
init_esm();
|
|
69802
|
+
init_primitives();
|
|
69803
|
+
init_visibility();
|
|
69804
|
+
Repo$inboundSchema = objectType({
|
|
69805
|
+
created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
69806
|
+
description: stringType(),
|
|
69807
|
+
id: stringType(),
|
|
69808
|
+
name: stringType(),
|
|
69809
|
+
org: stringType(),
|
|
69810
|
+
visibility: Visibility$inboundSchema
|
|
69811
|
+
}).transform((v2) => {
|
|
69812
|
+
return remap(v2, {
|
|
69813
|
+
created_at: "createdAt"
|
|
69814
|
+
});
|
|
69815
|
+
});
|
|
69816
|
+
Repo$outboundSchema = objectType({
|
|
69817
|
+
createdAt: dateType().transform((v2) => v2.toISOString()),
|
|
69818
|
+
description: stringType(),
|
|
69819
|
+
id: stringType(),
|
|
69820
|
+
name: stringType(),
|
|
69821
|
+
org: stringType(),
|
|
69822
|
+
visibility: Visibility$outboundSchema
|
|
69823
|
+
}).transform((v2) => {
|
|
69824
|
+
return remap(v2, {
|
|
69825
|
+
createdAt: "created_at"
|
|
69826
|
+
});
|
|
69827
|
+
});
|
|
69828
|
+
});
|
|
69829
|
+
|
|
69708
69830
|
// src/models/components/responsestatus.ts
|
|
69709
69831
|
var ResponseStatus, ResponseStatus$inboundSchema, ResponseStatus$outboundSchema;
|
|
69710
69832
|
var init_responsestatus = __esm(() => {
|
|
@@ -76131,6 +76253,7 @@ var init_components = __esm(() => {
|
|
|
76131
76253
|
init_coderequest();
|
|
76132
76254
|
init_coderesult();
|
|
76133
76255
|
init_coderuntime();
|
|
76256
|
+
init_collaboratorrequest();
|
|
76134
76257
|
init_commandrequest();
|
|
76135
76258
|
init_commandresult();
|
|
76136
76259
|
init_compactedresponse();
|
|
@@ -76174,6 +76297,7 @@ var init_components = __esm(() => {
|
|
|
76174
76297
|
init_creatememorystorerequest();
|
|
76175
76298
|
init_createpromptrequest();
|
|
76176
76299
|
init_createpromptresponse();
|
|
76300
|
+
init_createreporequest();
|
|
76177
76301
|
init_createsessionrequest();
|
|
76178
76302
|
init_createsessionresponse();
|
|
76179
76303
|
init_createtelegramagentconnectorrequest();
|
|
@@ -76355,6 +76479,7 @@ var init_components = __esm(() => {
|
|
|
76355
76479
|
init_mcptoolchoice();
|
|
76356
76480
|
init_mcptooldefinition();
|
|
76357
76481
|
init_mcptoolfilter();
|
|
76482
|
+
init_member();
|
|
76358
76483
|
init_memoryentry();
|
|
76359
76484
|
init_memoryentrydeleted();
|
|
76360
76485
|
init_memoryentrylist();
|
|
@@ -76391,6 +76516,7 @@ var init_components = __esm(() => {
|
|
|
76391
76516
|
init_pagerun();
|
|
76392
76517
|
init_pagesecret();
|
|
76393
76518
|
init_pageservingtenant();
|
|
76519
|
+
init_patchreporequest();
|
|
76394
76520
|
init_pendingsafetycheck();
|
|
76395
76521
|
init_preconfiguredskill();
|
|
76396
76522
|
init_preconfiguredskilllist();
|
|
@@ -76412,6 +76538,7 @@ var init_components = __esm(() => {
|
|
|
76412
76538
|
init_registrymodelorigin();
|
|
76413
76539
|
init_registrysource();
|
|
76414
76540
|
init_reinforcementhyperparameters();
|
|
76541
|
+
init_repo();
|
|
76415
76542
|
init_requestcounts();
|
|
76416
76543
|
init_resourcerole();
|
|
76417
76544
|
init_responsecancelledevent();
|
|
@@ -76605,6 +76732,7 @@ var init_components = __esm(() => {
|
|
|
76605
76732
|
init_vectorstorelist();
|
|
76606
76733
|
init_vectorstoresearchresults();
|
|
76607
76734
|
init_vectorstoresgroupby();
|
|
76735
|
+
init_visibility();
|
|
76608
76736
|
init_waitaction();
|
|
76609
76737
|
init_wakeagentrunrequest();
|
|
76610
76738
|
init_websearchaction();
|
|
@@ -81063,6 +81191,51 @@ var init_removeteammember = __esm(() => {
|
|
|
81063
81191
|
}));
|
|
81064
81192
|
});
|
|
81065
81193
|
|
|
81194
|
+
// src/models/errors/repoerror.ts
|
|
81195
|
+
var RepoError, RepoError$inboundSchema, RepoError$outboundSchema;
|
|
81196
|
+
var init_repoerror = __esm(() => {
|
|
81197
|
+
init_esm();
|
|
81198
|
+
init_primitives();
|
|
81199
|
+
init_sdkerror();
|
|
81200
|
+
RepoError = class RepoError extends SDKError {
|
|
81201
|
+
correlationId;
|
|
81202
|
+
error;
|
|
81203
|
+
data$;
|
|
81204
|
+
constructor(err, httpMeta) {
|
|
81205
|
+
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
81206
|
+
super(message, httpMeta);
|
|
81207
|
+
this.data$ = err;
|
|
81208
|
+
this.correlationId = err.correlationId;
|
|
81209
|
+
this.error = err.error;
|
|
81210
|
+
this.name = "RepoError";
|
|
81211
|
+
}
|
|
81212
|
+
};
|
|
81213
|
+
RepoError$inboundSchema = objectType({
|
|
81214
|
+
correlation_id: stringType(),
|
|
81215
|
+
error: stringType(),
|
|
81216
|
+
request$: instanceOfType(Request),
|
|
81217
|
+
response$: instanceOfType(Response),
|
|
81218
|
+
body$: stringType()
|
|
81219
|
+
}).transform((v2) => {
|
|
81220
|
+
const remapped = remap(v2, {
|
|
81221
|
+
correlation_id: "correlationId"
|
|
81222
|
+
});
|
|
81223
|
+
return new RepoError(remapped, {
|
|
81224
|
+
request: v2.request$,
|
|
81225
|
+
response: v2.response$,
|
|
81226
|
+
body: v2.body$
|
|
81227
|
+
});
|
|
81228
|
+
});
|
|
81229
|
+
RepoError$outboundSchema = instanceOfType(RepoError).transform((v2) => v2.data$).pipe(objectType({
|
|
81230
|
+
correlationId: stringType(),
|
|
81231
|
+
error: stringType()
|
|
81232
|
+
}).transform((v2) => {
|
|
81233
|
+
return remap(v2, {
|
|
81234
|
+
correlationId: "correlation_id"
|
|
81235
|
+
});
|
|
81236
|
+
}));
|
|
81237
|
+
});
|
|
81238
|
+
|
|
81066
81239
|
// src/models/errors/revokeclusterinvite.ts
|
|
81067
81240
|
var RevokeClusterInviteAuthClusterResponse429ResponseBody, RevokeClusterInviteAuthClusterResponse409ResponseBody, RevokeClusterInviteAuthClusterResponse404ResponseBody, RevokeClusterInviteAuthClusterResponseResponseBody, RevokeClusterInviteAuthClusterResponseBody, RevokeClusterInviteResponseBody, RevokeClusterInviteAuthClusterResponse429ResponseBody$inboundSchema, RevokeClusterInviteAuthClusterResponse429ResponseBody$outboundSchema, RevokeClusterInviteAuthClusterResponse409ResponseBody$inboundSchema, RevokeClusterInviteAuthClusterResponse409ResponseBody$outboundSchema, RevokeClusterInviteAuthClusterResponse404ResponseBody$inboundSchema, RevokeClusterInviteAuthClusterResponse404ResponseBody$outboundSchema, RevokeClusterInviteAuthClusterResponseResponseBody$inboundSchema, RevokeClusterInviteAuthClusterResponseResponseBody$outboundSchema, RevokeClusterInviteAuthClusterResponseBody$inboundSchema, RevokeClusterInviteAuthClusterResponseBody$outboundSchema, RevokeClusterInviteResponseBody$inboundSchema, RevokeClusterInviteResponseBody$outboundSchema;
|
|
81068
81241
|
var init_revokeclusterinvite = __esm(() => {
|
|
@@ -82360,6 +82533,7 @@ var init_errors4 = __esm(() => {
|
|
|
82360
82533
|
init_regenerateserviceaccountapikey();
|
|
82361
82534
|
init_reissueownerkey();
|
|
82362
82535
|
init_removeteammember();
|
|
82536
|
+
init_repoerror();
|
|
82363
82537
|
init_responsevalidationerror();
|
|
82364
82538
|
init_revokeclusterinvite();
|
|
82365
82539
|
init_sdkerror();
|
|
@@ -82547,7 +82721,7 @@ var init_addmodelcatalogorgaccess = __esm(() => {
|
|
|
82547
82721
|
});
|
|
82548
82722
|
|
|
82549
82723
|
// src/models/operations/addteammember.ts
|
|
82550
|
-
var AddTeamMemberRequestBody$inboundSchema, AddTeamMemberRequestBody$outboundSchema, AddTeamMemberRequest$inboundSchema, AddTeamMemberRequest$outboundSchema, Member$
|
|
82724
|
+
var AddTeamMemberRequestBody$inboundSchema, AddTeamMemberRequestBody$outboundSchema, AddTeamMemberRequest$inboundSchema, AddTeamMemberRequest$outboundSchema, Member$inboundSchema2, Member$outboundSchema2, AddTeamMemberResponseBody$inboundSchema2, AddTeamMemberResponseBody$outboundSchema2;
|
|
82551
82725
|
var init_addteammember2 = __esm(() => {
|
|
82552
82726
|
init_esm();
|
|
82553
82727
|
init_primitives();
|
|
@@ -82579,23 +82753,23 @@ var init_addteammember2 = __esm(() => {
|
|
|
82579
82753
|
requestBody: "RequestBody"
|
|
82580
82754
|
});
|
|
82581
82755
|
});
|
|
82582
|
-
Member$
|
|
82756
|
+
Member$inboundSchema2 = objectType({
|
|
82583
82757
|
id: stringType(),
|
|
82584
82758
|
teamId: stringType(),
|
|
82585
82759
|
userId: stringType(),
|
|
82586
82760
|
createdAt: stringType()
|
|
82587
82761
|
});
|
|
82588
|
-
Member$
|
|
82762
|
+
Member$outboundSchema2 = objectType({
|
|
82589
82763
|
id: stringType(),
|
|
82590
82764
|
teamId: stringType(),
|
|
82591
82765
|
userId: stringType(),
|
|
82592
82766
|
createdAt: stringType()
|
|
82593
82767
|
});
|
|
82594
82768
|
AddTeamMemberResponseBody$inboundSchema2 = objectType({
|
|
82595
|
-
member: lazyType(() => Member$
|
|
82769
|
+
member: lazyType(() => Member$inboundSchema2)
|
|
82596
82770
|
});
|
|
82597
82771
|
AddTeamMemberResponseBody$outboundSchema2 = objectType({
|
|
82598
|
-
member: lazyType(() => Member$
|
|
82772
|
+
member: lazyType(() => Member$outboundSchema2)
|
|
82599
82773
|
});
|
|
82600
82774
|
});
|
|
82601
82775
|
|
|
@@ -85032,6 +85206,32 @@ var init_createpromptversion = __esm(() => {
|
|
|
85032
85206
|
});
|
|
85033
85207
|
});
|
|
85034
85208
|
|
|
85209
|
+
// src/models/operations/createrepo.ts
|
|
85210
|
+
var CreateRepoRequest$inboundSchema2, CreateRepoRequest$outboundSchema2;
|
|
85211
|
+
var init_createrepo = __esm(() => {
|
|
85212
|
+
init_esm();
|
|
85213
|
+
init_primitives();
|
|
85214
|
+
init_components();
|
|
85215
|
+
CreateRepoRequest$inboundSchema2 = objectType({
|
|
85216
|
+
"X-On-Behalf-Of": stringType().optional(),
|
|
85217
|
+
CreateRepoRequest: CreateRepoRequest$inboundSchema
|
|
85218
|
+
}).transform((v2) => {
|
|
85219
|
+
return remap(v2, {
|
|
85220
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
85221
|
+
CreateRepoRequest: "createRepoRequest"
|
|
85222
|
+
});
|
|
85223
|
+
});
|
|
85224
|
+
CreateRepoRequest$outboundSchema2 = objectType({
|
|
85225
|
+
xOnBehalfOf: stringType().optional(),
|
|
85226
|
+
createRepoRequest: CreateRepoRequest$outboundSchema
|
|
85227
|
+
}).transform((v2) => {
|
|
85228
|
+
return remap(v2, {
|
|
85229
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
85230
|
+
createRepoRequest: "CreateRepoRequest"
|
|
85231
|
+
});
|
|
85232
|
+
});
|
|
85233
|
+
});
|
|
85234
|
+
|
|
85035
85235
|
// src/lib/event-streams.ts
|
|
85036
85236
|
function findBoundary(buf, len, from) {
|
|
85037
85237
|
for (let i = from;i < len; i++) {
|
|
@@ -85967,6 +86167,33 @@ var init_deleteclusterorg2 = __esm(() => {
|
|
|
85967
86167
|
});
|
|
85968
86168
|
});
|
|
85969
86169
|
|
|
86170
|
+
// src/models/operations/deletecollaborator.ts
|
|
86171
|
+
var DeleteCollaboratorRequest$inboundSchema, DeleteCollaboratorRequest$outboundSchema;
|
|
86172
|
+
var init_deletecollaborator = __esm(() => {
|
|
86173
|
+
init_esm();
|
|
86174
|
+
init_primitives();
|
|
86175
|
+
DeleteCollaboratorRequest$inboundSchema = objectType({
|
|
86176
|
+
org: stringType(),
|
|
86177
|
+
name: stringType(),
|
|
86178
|
+
user: stringType(),
|
|
86179
|
+
"X-On-Behalf-Of": stringType().optional()
|
|
86180
|
+
}).transform((v2) => {
|
|
86181
|
+
return remap(v2, {
|
|
86182
|
+
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
86183
|
+
});
|
|
86184
|
+
});
|
|
86185
|
+
DeleteCollaboratorRequest$outboundSchema = objectType({
|
|
86186
|
+
org: stringType(),
|
|
86187
|
+
name: stringType(),
|
|
86188
|
+
user: stringType(),
|
|
86189
|
+
xOnBehalfOf: stringType().optional()
|
|
86190
|
+
}).transform((v2) => {
|
|
86191
|
+
return remap(v2, {
|
|
86192
|
+
xOnBehalfOf: "X-On-Behalf-Of"
|
|
86193
|
+
});
|
|
86194
|
+
});
|
|
86195
|
+
});
|
|
86196
|
+
|
|
85970
86197
|
// src/models/operations/deleteevalrun.ts
|
|
85971
86198
|
var DeleteEvalRunRequest$inboundSchema, DeleteEvalRunRequest$outboundSchema;
|
|
85972
86199
|
var init_deleteevalrun = __esm(() => {
|
|
@@ -86339,6 +86566,31 @@ var init_deleteprompt = __esm(() => {
|
|
|
86339
86566
|
});
|
|
86340
86567
|
});
|
|
86341
86568
|
|
|
86569
|
+
// src/models/operations/deleterepo.ts
|
|
86570
|
+
var DeleteRepoRequest$inboundSchema, DeleteRepoRequest$outboundSchema;
|
|
86571
|
+
var init_deleterepo = __esm(() => {
|
|
86572
|
+
init_esm();
|
|
86573
|
+
init_primitives();
|
|
86574
|
+
DeleteRepoRequest$inboundSchema = objectType({
|
|
86575
|
+
org: stringType(),
|
|
86576
|
+
name: stringType(),
|
|
86577
|
+
"X-On-Behalf-Of": stringType().optional()
|
|
86578
|
+
}).transform((v2) => {
|
|
86579
|
+
return remap(v2, {
|
|
86580
|
+
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
86581
|
+
});
|
|
86582
|
+
});
|
|
86583
|
+
DeleteRepoRequest$outboundSchema = objectType({
|
|
86584
|
+
org: stringType(),
|
|
86585
|
+
name: stringType(),
|
|
86586
|
+
xOnBehalfOf: stringType().optional()
|
|
86587
|
+
}).transform((v2) => {
|
|
86588
|
+
return remap(v2, {
|
|
86589
|
+
xOnBehalfOf: "X-On-Behalf-Of"
|
|
86590
|
+
});
|
|
86591
|
+
});
|
|
86592
|
+
});
|
|
86593
|
+
|
|
86342
86594
|
// src/models/operations/deleteresponse.ts
|
|
86343
86595
|
var DeleteResponseRequest$inboundSchema, DeleteResponseRequest$outboundSchema;
|
|
86344
86596
|
var init_deleteresponse = __esm(() => {
|
|
@@ -89519,6 +89771,31 @@ var init_getpromptversion = __esm(() => {
|
|
|
89519
89771
|
});
|
|
89520
89772
|
});
|
|
89521
89773
|
|
|
89774
|
+
// src/models/operations/getrepo.ts
|
|
89775
|
+
var GetRepoRequest$inboundSchema, GetRepoRequest$outboundSchema;
|
|
89776
|
+
var init_getrepo = __esm(() => {
|
|
89777
|
+
init_esm();
|
|
89778
|
+
init_primitives();
|
|
89779
|
+
GetRepoRequest$inboundSchema = objectType({
|
|
89780
|
+
org: stringType(),
|
|
89781
|
+
name: stringType(),
|
|
89782
|
+
"X-On-Behalf-Of": stringType().optional()
|
|
89783
|
+
}).transform((v2) => {
|
|
89784
|
+
return remap(v2, {
|
|
89785
|
+
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
89786
|
+
});
|
|
89787
|
+
});
|
|
89788
|
+
GetRepoRequest$outboundSchema = objectType({
|
|
89789
|
+
org: stringType(),
|
|
89790
|
+
name: stringType(),
|
|
89791
|
+
xOnBehalfOf: stringType().optional()
|
|
89792
|
+
}).transform((v2) => {
|
|
89793
|
+
return remap(v2, {
|
|
89794
|
+
xOnBehalfOf: "X-On-Behalf-Of"
|
|
89795
|
+
});
|
|
89796
|
+
});
|
|
89797
|
+
});
|
|
89798
|
+
|
|
89522
89799
|
// src/models/operations/getresponse.ts
|
|
89523
89800
|
var Include2, Include$inboundSchema2, Include$outboundSchema2, GetResponseRequest$inboundSchema, GetResponseRequest$outboundSchema, GetResponseResponseBody$inboundSchema, GetResponseResponseBody$outboundSchema, GetResponseResponse$inboundSchema, GetResponseResponse$outboundSchema;
|
|
89524
89801
|
var init_getresponse = __esm(() => {
|
|
@@ -91083,6 +91360,38 @@ var init_listclusterprices = __esm(() => {
|
|
|
91083
91360
|
});
|
|
91084
91361
|
});
|
|
91085
91362
|
|
|
91363
|
+
// src/models/operations/listcollaborators.ts
|
|
91364
|
+
var ListCollaboratorsRequest$inboundSchema, ListCollaboratorsRequest$outboundSchema, ListCollaboratorsResponseBody$inboundSchema, ListCollaboratorsResponseBody$outboundSchema;
|
|
91365
|
+
var init_listcollaborators = __esm(() => {
|
|
91366
|
+
init_esm();
|
|
91367
|
+
init_primitives();
|
|
91368
|
+
init_components();
|
|
91369
|
+
ListCollaboratorsRequest$inboundSchema = objectType({
|
|
91370
|
+
org: stringType(),
|
|
91371
|
+
name: stringType(),
|
|
91372
|
+
"X-On-Behalf-Of": stringType().optional()
|
|
91373
|
+
}).transform((v2) => {
|
|
91374
|
+
return remap(v2, {
|
|
91375
|
+
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
91376
|
+
});
|
|
91377
|
+
});
|
|
91378
|
+
ListCollaboratorsRequest$outboundSchema = objectType({
|
|
91379
|
+
org: stringType(),
|
|
91380
|
+
name: stringType(),
|
|
91381
|
+
xOnBehalfOf: stringType().optional()
|
|
91382
|
+
}).transform((v2) => {
|
|
91383
|
+
return remap(v2, {
|
|
91384
|
+
xOnBehalfOf: "X-On-Behalf-Of"
|
|
91385
|
+
});
|
|
91386
|
+
});
|
|
91387
|
+
ListCollaboratorsResponseBody$inboundSchema = objectType({
|
|
91388
|
+
collaborators: arrayType(Member$inboundSchema)
|
|
91389
|
+
});
|
|
91390
|
+
ListCollaboratorsResponseBody$outboundSchema = objectType({
|
|
91391
|
+
collaborators: arrayType(Member$outboundSchema)
|
|
91392
|
+
});
|
|
91393
|
+
});
|
|
91394
|
+
|
|
91086
91395
|
// src/models/operations/listcompletionfeedback.ts
|
|
91087
91396
|
var ListCompletionFeedbackQueryParamOrder, QueryParamRating, ListCompletionFeedbackQueryParamOrder$inboundSchema, ListCompletionFeedbackQueryParamOrder$outboundSchema, QueryParamRating$inboundSchema, QueryParamRating$outboundSchema, ListCompletionFeedbackRequest$inboundSchema, ListCompletionFeedbackRequest$outboundSchema;
|
|
91088
91397
|
var init_listcompletionfeedback = __esm(() => {
|
|
@@ -92823,6 +93132,34 @@ var init_listpromptversions = __esm(() => {
|
|
|
92823
93132
|
});
|
|
92824
93133
|
});
|
|
92825
93134
|
|
|
93135
|
+
// src/models/operations/listrepos.ts
|
|
93136
|
+
var ListReposRequest$inboundSchema, ListReposRequest$outboundSchema, ListReposResponseBody$inboundSchema, ListReposResponseBody$outboundSchema;
|
|
93137
|
+
var init_listrepos = __esm(() => {
|
|
93138
|
+
init_esm();
|
|
93139
|
+
init_primitives();
|
|
93140
|
+
init_components();
|
|
93141
|
+
ListReposRequest$inboundSchema = objectType({
|
|
93142
|
+
"X-On-Behalf-Of": stringType().optional()
|
|
93143
|
+
}).transform((v2) => {
|
|
93144
|
+
return remap(v2, {
|
|
93145
|
+
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
93146
|
+
});
|
|
93147
|
+
});
|
|
93148
|
+
ListReposRequest$outboundSchema = objectType({
|
|
93149
|
+
xOnBehalfOf: stringType().optional()
|
|
93150
|
+
}).transform((v2) => {
|
|
93151
|
+
return remap(v2, {
|
|
93152
|
+
xOnBehalfOf: "X-On-Behalf-Of"
|
|
93153
|
+
});
|
|
93154
|
+
});
|
|
93155
|
+
ListReposResponseBody$inboundSchema = objectType({
|
|
93156
|
+
repos: arrayType(Repo$inboundSchema)
|
|
93157
|
+
});
|
|
93158
|
+
ListReposResponseBody$outboundSchema = objectType({
|
|
93159
|
+
repos: arrayType(Repo$outboundSchema)
|
|
93160
|
+
});
|
|
93161
|
+
});
|
|
93162
|
+
|
|
92826
93163
|
// src/models/operations/listresponsefeedback.ts
|
|
92827
93164
|
var ListResponseFeedbackQueryParamOrder, ListResponseFeedbackQueryParamRating, ListResponseFeedbackQueryParamOrder$inboundSchema, ListResponseFeedbackQueryParamOrder$outboundSchema, ListResponseFeedbackQueryParamRating$inboundSchema, ListResponseFeedbackQueryParamRating$outboundSchema, ListResponseFeedbackRequest$inboundSchema, ListResponseFeedbackRequest$outboundSchema;
|
|
92828
93165
|
var init_listresponsefeedback = __esm(() => {
|
|
@@ -93657,6 +93994,36 @@ var init_modifyvectorstore = __esm(() => {
|
|
|
93657
93994
|
});
|
|
93658
93995
|
});
|
|
93659
93996
|
|
|
93997
|
+
// src/models/operations/patchrepo.ts
|
|
93998
|
+
var PatchRepoRequest$inboundSchema2, PatchRepoRequest$outboundSchema2;
|
|
93999
|
+
var init_patchrepo = __esm(() => {
|
|
94000
|
+
init_esm();
|
|
94001
|
+
init_primitives();
|
|
94002
|
+
init_components();
|
|
94003
|
+
PatchRepoRequest$inboundSchema2 = objectType({
|
|
94004
|
+
org: stringType(),
|
|
94005
|
+
name: stringType(),
|
|
94006
|
+
"X-On-Behalf-Of": stringType().optional(),
|
|
94007
|
+
PatchRepoRequest: PatchRepoRequest$inboundSchema
|
|
94008
|
+
}).transform((v2) => {
|
|
94009
|
+
return remap(v2, {
|
|
94010
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
94011
|
+
PatchRepoRequest: "patchRepoRequest"
|
|
94012
|
+
});
|
|
94013
|
+
});
|
|
94014
|
+
PatchRepoRequest$outboundSchema2 = objectType({
|
|
94015
|
+
org: stringType(),
|
|
94016
|
+
name: stringType(),
|
|
94017
|
+
xOnBehalfOf: stringType().optional(),
|
|
94018
|
+
patchRepoRequest: PatchRepoRequest$outboundSchema
|
|
94019
|
+
}).transform((v2) => {
|
|
94020
|
+
return remap(v2, {
|
|
94021
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
94022
|
+
patchRepoRequest: "PatchRepoRequest"
|
|
94023
|
+
});
|
|
94024
|
+
});
|
|
94025
|
+
});
|
|
94026
|
+
|
|
93660
94027
|
// src/models/operations/pauseagentschedule.ts
|
|
93661
94028
|
var PauseAgentScheduleRequest$inboundSchema, PauseAgentScheduleRequest$outboundSchema;
|
|
93662
94029
|
var init_pauseagentschedule = __esm(() => {
|
|
@@ -93740,6 +94107,38 @@ var init_proxybrowserportrequest = __esm(() => {
|
|
|
93740
94107
|
});
|
|
93741
94108
|
});
|
|
93742
94109
|
|
|
94110
|
+
// src/models/operations/putcollaborator.ts
|
|
94111
|
+
var PutCollaboratorRequest$inboundSchema, PutCollaboratorRequest$outboundSchema;
|
|
94112
|
+
var init_putcollaborator = __esm(() => {
|
|
94113
|
+
init_esm();
|
|
94114
|
+
init_primitives();
|
|
94115
|
+
init_components();
|
|
94116
|
+
PutCollaboratorRequest$inboundSchema = objectType({
|
|
94117
|
+
org: stringType(),
|
|
94118
|
+
name: stringType(),
|
|
94119
|
+
user: stringType(),
|
|
94120
|
+
"X-On-Behalf-Of": stringType().optional(),
|
|
94121
|
+
CollaboratorRequest: CollaboratorRequest$inboundSchema
|
|
94122
|
+
}).transform((v2) => {
|
|
94123
|
+
return remap(v2, {
|
|
94124
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
94125
|
+
CollaboratorRequest: "collaboratorRequest"
|
|
94126
|
+
});
|
|
94127
|
+
});
|
|
94128
|
+
PutCollaboratorRequest$outboundSchema = objectType({
|
|
94129
|
+
org: stringType(),
|
|
94130
|
+
name: stringType(),
|
|
94131
|
+
user: stringType(),
|
|
94132
|
+
xOnBehalfOf: stringType().optional(),
|
|
94133
|
+
collaboratorRequest: CollaboratorRequest$outboundSchema
|
|
94134
|
+
}).transform((v2) => {
|
|
94135
|
+
return remap(v2, {
|
|
94136
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
94137
|
+
collaboratorRequest: "CollaboratorRequest"
|
|
94138
|
+
});
|
|
94139
|
+
});
|
|
94140
|
+
});
|
|
94141
|
+
|
|
93743
94142
|
// src/models/operations/putorgautomodel.ts
|
|
93744
94143
|
var PutOrgAutoModelRequest$inboundSchema2, PutOrgAutoModelRequest$outboundSchema2;
|
|
93745
94144
|
var init_putorgautomodel = __esm(() => {
|
|
@@ -97096,6 +97495,7 @@ var init_operations = __esm(() => {
|
|
|
97096
97495
|
init_creatememorystore();
|
|
97097
97496
|
init_createprompt();
|
|
97098
97497
|
init_createpromptversion();
|
|
97498
|
+
init_createrepo();
|
|
97099
97499
|
init_createresponse();
|
|
97100
97500
|
init_createresponsefeedback();
|
|
97101
97501
|
init_createscopedapikey2();
|
|
@@ -97116,6 +97516,7 @@ var init_operations = __esm(() => {
|
|
|
97116
97516
|
init_deleteagentschedule();
|
|
97117
97517
|
init_deleteapikeybudget();
|
|
97118
97518
|
init_deleteclusterorg2();
|
|
97519
|
+
init_deletecollaborator();
|
|
97119
97520
|
init_deleteevalrun();
|
|
97120
97521
|
init_deleteevalschedule();
|
|
97121
97522
|
init_deleteevalsuite();
|
|
@@ -97130,6 +97531,7 @@ var init_operations = __esm(() => {
|
|
|
97130
97531
|
init_deleteorgautomodel();
|
|
97131
97532
|
init_deleteorgbudget();
|
|
97132
97533
|
init_deleteprompt();
|
|
97534
|
+
init_deleterepo();
|
|
97133
97535
|
init_deleteresponse();
|
|
97134
97536
|
init_deletesecret();
|
|
97135
97537
|
init_deleteserviceaccount2();
|
|
@@ -97190,6 +97592,7 @@ var init_operations = __esm(() => {
|
|
|
97190
97592
|
init_getorgratelimit2();
|
|
97191
97593
|
init_getprompt();
|
|
97192
97594
|
init_getpromptversion();
|
|
97595
|
+
init_getrepo();
|
|
97193
97596
|
init_getresponse();
|
|
97194
97597
|
init_getresponsefeedback();
|
|
97195
97598
|
init_getresponsesusage();
|
|
@@ -97231,6 +97634,7 @@ var init_operations = __esm(() => {
|
|
|
97231
97634
|
init_listclusterinvites2();
|
|
97232
97635
|
init_listclusterorgs2();
|
|
97233
97636
|
init_listclusterprices();
|
|
97637
|
+
init_listcollaborators();
|
|
97234
97638
|
init_listcompletionfeedback();
|
|
97235
97639
|
init_listeffectiveprices();
|
|
97236
97640
|
init_listembeddingmodels();
|
|
@@ -97258,6 +97662,7 @@ var init_operations = __esm(() => {
|
|
|
97258
97662
|
init_listpreconfiguredskills();
|
|
97259
97663
|
init_listprompts();
|
|
97260
97664
|
init_listpromptversions();
|
|
97665
|
+
init_listrepos();
|
|
97261
97666
|
init_listresponsefeedback();
|
|
97262
97667
|
init_listresponses();
|
|
97263
97668
|
init_listscopedapikeys2();
|
|
@@ -97281,9 +97686,11 @@ var init_operations = __esm(() => {
|
|
|
97281
97686
|
init_llmgrant();
|
|
97282
97687
|
init_llmrevoke();
|
|
97283
97688
|
init_modifyvectorstore();
|
|
97689
|
+
init_patchrepo();
|
|
97284
97690
|
init_pauseagentschedule();
|
|
97285
97691
|
init_pausefinetuningjob();
|
|
97286
97692
|
init_proxybrowserportrequest();
|
|
97693
|
+
init_putcollaborator();
|
|
97287
97694
|
init_putorgautomodel();
|
|
97288
97695
|
init_regeneratescopedapikey2();
|
|
97289
97696
|
init_regenerateserviceaccountapikey2();
|
|
@@ -130059,20 +130466,34 @@ Revoke a role from a user for a resource, or remove public access by using "*" a
|
|
|
130059
130466
|
};
|
|
130060
130467
|
});
|
|
130061
130468
|
|
|
130062
|
-
// src/funcs/
|
|
130063
|
-
function
|
|
130469
|
+
// src/funcs/reposCollaboratorsAdd.ts
|
|
130470
|
+
function reposCollaboratorsAdd(client, request, options) {
|
|
130064
130471
|
return new APIPromise($do279(client, request, options));
|
|
130065
130472
|
}
|
|
130066
130473
|
async function $do279(client, request, options) {
|
|
130067
|
-
const parsed = safeParse4(request, (value) =>
|
|
130474
|
+
const parsed = safeParse4(request, (value) => PutCollaboratorRequest$outboundSchema.parse(value), "Input validation failed");
|
|
130068
130475
|
if (!parsed.ok) {
|
|
130069
130476
|
return [parsed, { status: "invalid" }];
|
|
130070
130477
|
}
|
|
130071
130478
|
const payload = parsed.value;
|
|
130072
|
-
const body = encodeJSON("body", payload.
|
|
130479
|
+
const body = encodeJSON("body", payload.CollaboratorRequest, {
|
|
130073
130480
|
explode: true
|
|
130074
130481
|
});
|
|
130075
|
-
const
|
|
130482
|
+
const pathParams = {
|
|
130483
|
+
name: encodeSimple("name", payload.name, {
|
|
130484
|
+
explode: false,
|
|
130485
|
+
charEncoding: "percent"
|
|
130486
|
+
}),
|
|
130487
|
+
org: encodeSimple("org", payload.org, {
|
|
130488
|
+
explode: false,
|
|
130489
|
+
charEncoding: "percent"
|
|
130490
|
+
}),
|
|
130491
|
+
user: encodeSimple("user", payload.user, {
|
|
130492
|
+
explode: false,
|
|
130493
|
+
charEncoding: "percent"
|
|
130494
|
+
})
|
|
130495
|
+
};
|
|
130496
|
+
const path = pathToFunc("/api/v1/repos/{org}/{name}/collaborators/{user}")(pathParams);
|
|
130076
130497
|
const headers = new Headers(compactMap({
|
|
130077
130498
|
"Content-Type": "application/json",
|
|
130078
130499
|
Accept: "application/json",
|
|
@@ -130084,7 +130505,7 @@ async function $do279(client, request, options) {
|
|
|
130084
130505
|
const context = {
|
|
130085
130506
|
options: client._options,
|
|
130086
130507
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
130087
|
-
operationID: "
|
|
130508
|
+
operationID: "putCollaborator",
|
|
130088
130509
|
oAuth2Scopes: null,
|
|
130089
130510
|
resolvedSecurity: requestSecurity,
|
|
130090
130511
|
securitySource: client._options.bearerAuth,
|
|
@@ -130102,7 +130523,7 @@ async function $do279(client, request, options) {
|
|
|
130102
130523
|
};
|
|
130103
130524
|
const requestRes = client._createRequest(context, {
|
|
130104
130525
|
security: requestSecurity,
|
|
130105
|
-
method: "
|
|
130526
|
+
method: "PUT",
|
|
130106
130527
|
baseURL: options?.serverURL,
|
|
130107
130528
|
path,
|
|
130108
130529
|
headers,
|
|
@@ -130127,13 +130548,13 @@ async function $do279(client, request, options) {
|
|
|
130127
130548
|
const responseFields = {
|
|
130128
130549
|
HttpMeta: { Response: response, Request: req }
|
|
130129
130550
|
};
|
|
130130
|
-
const [result] = await match(json(
|
|
130551
|
+
const [result] = await match(json(200, Member$inboundSchema), jsonErr([400, 401, 403, 404], RepoError$inboundSchema), jsonErr(500, RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
130131
130552
|
if (!result.ok) {
|
|
130132
130553
|
return [result, { status: "complete", request: req, response }];
|
|
130133
130554
|
}
|
|
130134
130555
|
return [result, { status: "complete", request: req, response }];
|
|
130135
130556
|
}
|
|
130136
|
-
var
|
|
130557
|
+
var init_reposCollaboratorsAdd = __esm(() => {
|
|
130137
130558
|
init_encodings();
|
|
130138
130559
|
init_http();
|
|
130139
130560
|
init_matchers();
|
|
@@ -130147,23 +130568,26 @@ var init_sandboxCreate = __esm(() => {
|
|
|
130147
130568
|
init_async();
|
|
130148
130569
|
});
|
|
130149
130570
|
|
|
130150
|
-
// src/mcp-server/tools/
|
|
130151
|
-
var args271, tool$
|
|
130152
|
-
var
|
|
130153
|
-
|
|
130571
|
+
// src/mcp-server/tools/reposCollaboratorsAdd.ts
|
|
130572
|
+
var args271, tool$reposCollaboratorsAdd;
|
|
130573
|
+
var init_reposCollaboratorsAdd2 = __esm(() => {
|
|
130574
|
+
init_reposCollaboratorsAdd();
|
|
130154
130575
|
init_operations();
|
|
130155
130576
|
init_tools();
|
|
130156
130577
|
args271 = {
|
|
130157
|
-
request:
|
|
130578
|
+
request: PutCollaboratorRequest$inboundSchema
|
|
130158
130579
|
};
|
|
130159
|
-
tool$
|
|
130160
|
-
name: "
|
|
130161
|
-
description: `
|
|
130580
|
+
tool$reposCollaboratorsAdd = {
|
|
130581
|
+
name: "repos-collaborators-add",
|
|
130582
|
+
description: `Add or re-role a collaborator
|
|
130162
130583
|
|
|
130163
|
-
|
|
130584
|
+
Adds a collaborator or changes their role (owner or org admin only): DB
|
|
130585
|
+
upsert (authoritative) then a best-effort fga grant. Owner is not a
|
|
130586
|
+
grantable role — it is fixed to the creator at create time.
|
|
130587
|
+
`,
|
|
130164
130588
|
args: args271,
|
|
130165
130589
|
tool: async (client, args272, ctx) => {
|
|
130166
|
-
const [result, apiCall] = await
|
|
130590
|
+
const [result, apiCall] = await reposCollaboratorsAdd(client, args272.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
130167
130591
|
if (!result.ok) {
|
|
130168
130592
|
return {
|
|
130169
130593
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -130176,32 +130600,30 @@ Create a sandbox session and return its public session metadata, session token,
|
|
|
130176
130600
|
};
|
|
130177
130601
|
});
|
|
130178
130602
|
|
|
130179
|
-
// src/funcs/
|
|
130180
|
-
function
|
|
130603
|
+
// src/funcs/reposCollaboratorsList.ts
|
|
130604
|
+
function reposCollaboratorsList(client, request, options) {
|
|
130181
130605
|
return new APIPromise($do280(client, request, options));
|
|
130182
130606
|
}
|
|
130183
130607
|
async function $do280(client, request, options) {
|
|
130184
|
-
const parsed = safeParse4(request, (value) =>
|
|
130608
|
+
const parsed = safeParse4(request, (value) => ListCollaboratorsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
130185
130609
|
if (!parsed.ok) {
|
|
130186
130610
|
return [parsed, { status: "invalid" }];
|
|
130187
130611
|
}
|
|
130188
130612
|
const payload = parsed.value;
|
|
130189
|
-
const body =
|
|
130190
|
-
explode: true
|
|
130191
|
-
});
|
|
130613
|
+
const body = null;
|
|
130192
130614
|
const pathParams = {
|
|
130193
|
-
|
|
130615
|
+
name: encodeSimple("name", payload.name, {
|
|
130616
|
+
explode: false,
|
|
130617
|
+
charEncoding: "percent"
|
|
130618
|
+
}),
|
|
130619
|
+
org: encodeSimple("org", payload.org, {
|
|
130194
130620
|
explode: false,
|
|
130195
130621
|
charEncoding: "percent"
|
|
130196
130622
|
})
|
|
130197
130623
|
};
|
|
130198
|
-
const path = pathToFunc("/api/v1/
|
|
130199
|
-
const query = encodeFormQuery({
|
|
130200
|
-
session_token: payload.session_token
|
|
130201
|
-
});
|
|
130624
|
+
const path = pathToFunc("/api/v1/repos/{org}/{name}/collaborators")(pathParams);
|
|
130202
130625
|
const headers = new Headers(compactMap({
|
|
130203
|
-
|
|
130204
|
-
Accept: "application/zip",
|
|
130626
|
+
Accept: "application/json",
|
|
130205
130627
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
130206
130628
|
}));
|
|
130207
130629
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
@@ -130210,7 +130632,7 @@ async function $do280(client, request, options) {
|
|
|
130210
130632
|
const context = {
|
|
130211
130633
|
options: client._options,
|
|
130212
130634
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
130213
|
-
operationID: "
|
|
130635
|
+
operationID: "listCollaborators",
|
|
130214
130636
|
oAuth2Scopes: null,
|
|
130215
130637
|
resolvedSecurity: requestSecurity,
|
|
130216
130638
|
securitySource: client._options.bearerAuth,
|
|
@@ -130228,11 +130650,10 @@ async function $do280(client, request, options) {
|
|
|
130228
130650
|
};
|
|
130229
130651
|
const requestRes = client._createRequest(context, {
|
|
130230
130652
|
security: requestSecurity,
|
|
130231
|
-
method: "
|
|
130653
|
+
method: "GET",
|
|
130232
130654
|
baseURL: options?.serverURL,
|
|
130233
130655
|
path,
|
|
130234
130656
|
headers,
|
|
130235
|
-
query,
|
|
130236
130657
|
body,
|
|
130237
130658
|
userAgent: client._options.userAgent,
|
|
130238
130659
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -130254,16 +130675,13 @@ async function $do280(client, request, options) {
|
|
|
130254
130675
|
const responseFields = {
|
|
130255
130676
|
HttpMeta: { Response: response, Request: req }
|
|
130256
130677
|
};
|
|
130257
|
-
const [result] = await match(
|
|
130258
|
-
ctype: "application/zip"
|
|
130259
|
-
}), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
130678
|
+
const [result] = await match(json(200, ListCollaboratorsResponseBody$inboundSchema), jsonErr([401, 403, 404], RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
130260
130679
|
if (!result.ok) {
|
|
130261
130680
|
return [result, { status: "complete", request: req, response }];
|
|
130262
130681
|
}
|
|
130263
130682
|
return [result, { status: "complete", request: req, response }];
|
|
130264
130683
|
}
|
|
130265
|
-
var
|
|
130266
|
-
init_esm();
|
|
130684
|
+
var init_reposCollaboratorsList = __esm(() => {
|
|
130267
130685
|
init_encodings();
|
|
130268
130686
|
init_http();
|
|
130269
130687
|
init_matchers();
|
|
@@ -130276,23 +130694,25 @@ var init_sandboxDownloadArchive = __esm(() => {
|
|
|
130276
130694
|
init_async();
|
|
130277
130695
|
});
|
|
130278
130696
|
|
|
130279
|
-
// src/mcp-server/tools/
|
|
130280
|
-
var args272, tool$
|
|
130281
|
-
var
|
|
130282
|
-
|
|
130697
|
+
// src/mcp-server/tools/reposCollaboratorsList.ts
|
|
130698
|
+
var args272, tool$reposCollaboratorsList;
|
|
130699
|
+
var init_reposCollaboratorsList2 = __esm(() => {
|
|
130700
|
+
init_reposCollaboratorsList();
|
|
130283
130701
|
init_operations();
|
|
130284
130702
|
init_tools();
|
|
130285
130703
|
args272 = {
|
|
130286
|
-
request:
|
|
130704
|
+
request: ListCollaboratorsRequest$inboundSchema
|
|
130287
130705
|
};
|
|
130288
|
-
tool$
|
|
130289
|
-
name: "
|
|
130290
|
-
description: `
|
|
130706
|
+
tool$reposCollaboratorsList = {
|
|
130707
|
+
name: "repos-collaborators-list",
|
|
130708
|
+
description: `List a repository's collaborators
|
|
130291
130709
|
|
|
130292
|
-
|
|
130710
|
+
Lists the repository's explicit collaborators (\`repo_members\`). Any
|
|
130711
|
+
caller with reader access may see them.
|
|
130712
|
+
`,
|
|
130293
130713
|
args: args272,
|
|
130294
130714
|
tool: async (client, args273, ctx) => {
|
|
130295
|
-
const [result, apiCall] = await
|
|
130715
|
+
const [result, apiCall] = await reposCollaboratorsList(client, args273.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
130296
130716
|
if (!result.ok) {
|
|
130297
130717
|
return {
|
|
130298
130718
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -130305,33 +130725,34 @@ Download a zip archive containing the selected workspace paths.`,
|
|
|
130305
130725
|
};
|
|
130306
130726
|
});
|
|
130307
130727
|
|
|
130308
|
-
// src/funcs/
|
|
130309
|
-
function
|
|
130728
|
+
// src/funcs/reposCollaboratorsRemove.ts
|
|
130729
|
+
function reposCollaboratorsRemove(client, request, options) {
|
|
130310
130730
|
return new APIPromise($do281(client, request, options));
|
|
130311
130731
|
}
|
|
130312
130732
|
async function $do281(client, request, options) {
|
|
130313
|
-
const parsed = safeParse4(request, (value) =>
|
|
130733
|
+
const parsed = safeParse4(request, (value) => DeleteCollaboratorRequest$outboundSchema.parse(value), "Input validation failed");
|
|
130314
130734
|
if (!parsed.ok) {
|
|
130315
130735
|
return [parsed, { status: "invalid" }];
|
|
130316
130736
|
}
|
|
130317
130737
|
const payload = parsed.value;
|
|
130318
130738
|
const body = null;
|
|
130319
130739
|
const pathParams = {
|
|
130320
|
-
|
|
130740
|
+
name: encodeSimple("name", payload.name, {
|
|
130321
130741
|
explode: false,
|
|
130322
130742
|
charEncoding: "percent"
|
|
130323
130743
|
}),
|
|
130324
|
-
|
|
130744
|
+
org: encodeSimple("org", payload.org, {
|
|
130745
|
+
explode: false,
|
|
130746
|
+
charEncoding: "percent"
|
|
130747
|
+
}),
|
|
130748
|
+
user: encodeSimple("user", payload.user, {
|
|
130325
130749
|
explode: false,
|
|
130326
130750
|
charEncoding: "percent"
|
|
130327
130751
|
})
|
|
130328
130752
|
};
|
|
130329
|
-
const path = pathToFunc("/api/v1/
|
|
130330
|
-
const query = encodeFormQuery({
|
|
130331
|
-
session_token: payload.session_token
|
|
130332
|
-
});
|
|
130753
|
+
const path = pathToFunc("/api/v1/repos/{org}/{name}/collaborators/{user}")(pathParams);
|
|
130333
130754
|
const headers = new Headers(compactMap({
|
|
130334
|
-
Accept: "application/
|
|
130755
|
+
Accept: "application/json",
|
|
130335
130756
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
130336
130757
|
}));
|
|
130337
130758
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
@@ -130340,7 +130761,7 @@ async function $do281(client, request, options) {
|
|
|
130340
130761
|
const context = {
|
|
130341
130762
|
options: client._options,
|
|
130342
130763
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
130343
|
-
operationID: "
|
|
130764
|
+
operationID: "deleteCollaborator",
|
|
130344
130765
|
oAuth2Scopes: null,
|
|
130345
130766
|
resolvedSecurity: requestSecurity,
|
|
130346
130767
|
securitySource: client._options.bearerAuth,
|
|
@@ -130358,11 +130779,10 @@ async function $do281(client, request, options) {
|
|
|
130358
130779
|
};
|
|
130359
130780
|
const requestRes = client._createRequest(context, {
|
|
130360
130781
|
security: requestSecurity,
|
|
130361
|
-
method: "
|
|
130782
|
+
method: "DELETE",
|
|
130362
130783
|
baseURL: options?.serverURL,
|
|
130363
130784
|
path,
|
|
130364
130785
|
headers,
|
|
130365
|
-
query,
|
|
130366
130786
|
body,
|
|
130367
130787
|
userAgent: client._options.userAgent,
|
|
130368
130788
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -130384,13 +130804,13 @@ async function $do281(client, request, options) {
|
|
|
130384
130804
|
const responseFields = {
|
|
130385
130805
|
HttpMeta: { Response: response, Request: req }
|
|
130386
130806
|
};
|
|
130387
|
-
const [result] = await match(
|
|
130807
|
+
const [result] = await match(nil(204, voidType()), jsonErr([401, 403, 404], RepoError$inboundSchema), jsonErr(500, RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
130388
130808
|
if (!result.ok) {
|
|
130389
130809
|
return [result, { status: "complete", request: req, response }];
|
|
130390
130810
|
}
|
|
130391
130811
|
return [result, { status: "complete", request: req, response }];
|
|
130392
130812
|
}
|
|
130393
|
-
var
|
|
130813
|
+
var init_reposCollaboratorsRemove = __esm(() => {
|
|
130394
130814
|
init_esm();
|
|
130395
130815
|
init_encodings();
|
|
130396
130816
|
init_http();
|
|
@@ -130404,54 +130824,50 @@ var init_sandboxDownloadFile = __esm(() => {
|
|
|
130404
130824
|
init_async();
|
|
130405
130825
|
});
|
|
130406
130826
|
|
|
130407
|
-
// src/mcp-server/tools/
|
|
130408
|
-
var args273, tool$
|
|
130409
|
-
var
|
|
130410
|
-
|
|
130827
|
+
// src/mcp-server/tools/reposCollaboratorsRemove.ts
|
|
130828
|
+
var args273, tool$reposCollaboratorsRemove;
|
|
130829
|
+
var init_reposCollaboratorsRemove2 = __esm(() => {
|
|
130830
|
+
init_reposCollaboratorsRemove();
|
|
130411
130831
|
init_operations();
|
|
130412
130832
|
init_tools();
|
|
130413
130833
|
args273 = {
|
|
130414
|
-
request:
|
|
130834
|
+
request: DeleteCollaboratorRequest$inboundSchema
|
|
130415
130835
|
};
|
|
130416
|
-
tool$
|
|
130417
|
-
name: "
|
|
130418
|
-
description: `
|
|
130836
|
+
tool$reposCollaboratorsRemove = {
|
|
130837
|
+
name: "repos-collaborators-remove",
|
|
130838
|
+
description: `Remove a collaborator
|
|
130419
130839
|
|
|
130420
|
-
|
|
130840
|
+
Removes a collaborator (owner or org admin only): DB delete
|
|
130841
|
+
(authoritative) then a best-effort fga revoke of the removed role.
|
|
130842
|
+
`,
|
|
130421
130843
|
args: args273,
|
|
130422
130844
|
tool: async (client, args274, ctx) => {
|
|
130423
|
-
const [result, apiCall] = await
|
|
130845
|
+
const [result, apiCall] = await reposCollaboratorsRemove(client, args274.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
130424
130846
|
if (!result.ok) {
|
|
130425
130847
|
return {
|
|
130426
130848
|
content: [{ type: "text", text: result.error.message }],
|
|
130427
130849
|
isError: true
|
|
130428
130850
|
};
|
|
130429
130851
|
}
|
|
130430
|
-
|
|
130431
|
-
return formatResult(value, apiCall);
|
|
130852
|
+
return formatResult(undefined, apiCall);
|
|
130432
130853
|
}
|
|
130433
130854
|
};
|
|
130434
130855
|
});
|
|
130435
130856
|
|
|
130436
|
-
// src/funcs/
|
|
130437
|
-
function
|
|
130857
|
+
// src/funcs/reposCreate.ts
|
|
130858
|
+
function reposCreate(client, request, options) {
|
|
130438
130859
|
return new APIPromise($do282(client, request, options));
|
|
130439
130860
|
}
|
|
130440
130861
|
async function $do282(client, request, options) {
|
|
130441
|
-
const parsed = safeParse4(request, (value) =>
|
|
130862
|
+
const parsed = safeParse4(request, (value) => CreateRepoRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
130442
130863
|
if (!parsed.ok) {
|
|
130443
130864
|
return [parsed, { status: "invalid" }];
|
|
130444
130865
|
}
|
|
130445
130866
|
const payload = parsed.value;
|
|
130446
|
-
const body =
|
|
130447
|
-
const
|
|
130448
|
-
session_id: encodeSimple("session_id", payload.session_id, {
|
|
130449
|
-
explode: false,
|
|
130450
|
-
charEncoding: "percent"
|
|
130451
|
-
})
|
|
130452
|
-
};
|
|
130453
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}")(pathParams);
|
|
130867
|
+
const body = encodeJSON("body", payload.CreateRepoRequest, { explode: true });
|
|
130868
|
+
const path = pathToFunc("/api/v1/repos")();
|
|
130454
130869
|
const headers = new Headers(compactMap({
|
|
130870
|
+
"Content-Type": "application/json",
|
|
130455
130871
|
Accept: "application/json",
|
|
130456
130872
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
130457
130873
|
}));
|
|
@@ -130461,7 +130877,7 @@ async function $do282(client, request, options) {
|
|
|
130461
130877
|
const context = {
|
|
130462
130878
|
options: client._options,
|
|
130463
130879
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
130464
|
-
operationID: "
|
|
130880
|
+
operationID: "createRepo",
|
|
130465
130881
|
oAuth2Scopes: null,
|
|
130466
130882
|
resolvedSecurity: requestSecurity,
|
|
130467
130883
|
securitySource: client._options.bearerAuth,
|
|
@@ -130479,7 +130895,7 @@ async function $do282(client, request, options) {
|
|
|
130479
130895
|
};
|
|
130480
130896
|
const requestRes = client._createRequest(context, {
|
|
130481
130897
|
security: requestSecurity,
|
|
130482
|
-
method: "
|
|
130898
|
+
method: "POST",
|
|
130483
130899
|
baseURL: options?.serverURL,
|
|
130484
130900
|
path,
|
|
130485
130901
|
headers,
|
|
@@ -130504,13 +130920,13 @@ async function $do282(client, request, options) {
|
|
|
130504
130920
|
const responseFields = {
|
|
130505
130921
|
HttpMeta: { Response: response, Request: req }
|
|
130506
130922
|
};
|
|
130507
|
-
const [result] = await match(json(
|
|
130923
|
+
const [result] = await match(json(201, Repo$inboundSchema), jsonErr([400, 401, 409], RepoError$inboundSchema), jsonErr([500, 502, 503], RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
130508
130924
|
if (!result.ok) {
|
|
130509
130925
|
return [result, { status: "complete", request: req, response }];
|
|
130510
130926
|
}
|
|
130511
130927
|
return [result, { status: "complete", request: req, response }];
|
|
130512
130928
|
}
|
|
130513
|
-
var
|
|
130929
|
+
var init_reposCreate = __esm(() => {
|
|
130514
130930
|
init_encodings();
|
|
130515
130931
|
init_http();
|
|
130516
130932
|
init_matchers();
|
|
@@ -130524,23 +130940,26 @@ var init_sandboxGet = __esm(() => {
|
|
|
130524
130940
|
init_async();
|
|
130525
130941
|
});
|
|
130526
130942
|
|
|
130527
|
-
// src/mcp-server/tools/
|
|
130528
|
-
var args274, tool$
|
|
130529
|
-
var
|
|
130530
|
-
|
|
130943
|
+
// src/mcp-server/tools/reposCreate.ts
|
|
130944
|
+
var args274, tool$reposCreate;
|
|
130945
|
+
var init_reposCreate2 = __esm(() => {
|
|
130946
|
+
init_reposCreate();
|
|
130531
130947
|
init_operations();
|
|
130532
130948
|
init_tools();
|
|
130533
130949
|
args274 = {
|
|
130534
|
-
request:
|
|
130950
|
+
request: CreateRepoRequest$inboundSchema2
|
|
130535
130951
|
};
|
|
130536
|
-
tool$
|
|
130537
|
-
name: "
|
|
130538
|
-
description: `
|
|
130952
|
+
tool$reposCreate = {
|
|
130953
|
+
name: "repos-create",
|
|
130954
|
+
description: `Create a repository
|
|
130539
130955
|
|
|
130540
|
-
|
|
130956
|
+
Provisions a repository: DB insert (authoritative) → Gitea create
|
|
130957
|
+
(rolled back on failure) → best-effort fga owner tuple. The caller
|
|
130958
|
+
becomes the owner.
|
|
130959
|
+
`,
|
|
130541
130960
|
args: args274,
|
|
130542
130961
|
tool: async (client, args275, ctx) => {
|
|
130543
|
-
const [result, apiCall] = await
|
|
130962
|
+
const [result, apiCall] = await reposCreate(client, args275.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
130544
130963
|
if (!result.ok) {
|
|
130545
130964
|
return {
|
|
130546
130965
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -130553,27 +130972,28 @@ Return the current state, configuration, and resource allocation for a sandbox s
|
|
|
130553
130972
|
};
|
|
130554
130973
|
});
|
|
130555
130974
|
|
|
130556
|
-
// src/funcs/
|
|
130557
|
-
function
|
|
130975
|
+
// src/funcs/reposDelete.ts
|
|
130976
|
+
function reposDelete(client, request, options) {
|
|
130558
130977
|
return new APIPromise($do283(client, request, options));
|
|
130559
130978
|
}
|
|
130560
130979
|
async function $do283(client, request, options) {
|
|
130561
|
-
const parsed = safeParse4(request, (value) =>
|
|
130980
|
+
const parsed = safeParse4(request, (value) => DeleteRepoRequest$outboundSchema.parse(value), "Input validation failed");
|
|
130562
130981
|
if (!parsed.ok) {
|
|
130563
130982
|
return [parsed, { status: "invalid" }];
|
|
130564
130983
|
}
|
|
130565
130984
|
const payload = parsed.value;
|
|
130566
130985
|
const body = null;
|
|
130567
130986
|
const pathParams = {
|
|
130568
|
-
|
|
130987
|
+
name: encodeSimple("name", payload.name, {
|
|
130988
|
+
explode: false,
|
|
130989
|
+
charEncoding: "percent"
|
|
130990
|
+
}),
|
|
130991
|
+
org: encodeSimple("org", payload.org, {
|
|
130569
130992
|
explode: false,
|
|
130570
130993
|
charEncoding: "percent"
|
|
130571
130994
|
})
|
|
130572
130995
|
};
|
|
130573
|
-
const path = pathToFunc("/api/v1/
|
|
130574
|
-
const query = encodeFormQuery({
|
|
130575
|
-
session_token: payload.session_token
|
|
130576
|
-
});
|
|
130996
|
+
const path = pathToFunc("/api/v1/repos/{org}/{name}")(pathParams);
|
|
130577
130997
|
const headers = new Headers(compactMap({
|
|
130578
130998
|
Accept: "application/json",
|
|
130579
130999
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
@@ -130584,7 +131004,7 @@ async function $do283(client, request, options) {
|
|
|
130584
131004
|
const context = {
|
|
130585
131005
|
options: client._options,
|
|
130586
131006
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
130587
|
-
operationID: "
|
|
131007
|
+
operationID: "deleteRepo",
|
|
130588
131008
|
oAuth2Scopes: null,
|
|
130589
131009
|
resolvedSecurity: requestSecurity,
|
|
130590
131010
|
securitySource: client._options.bearerAuth,
|
|
@@ -130602,11 +131022,10 @@ async function $do283(client, request, options) {
|
|
|
130602
131022
|
};
|
|
130603
131023
|
const requestRes = client._createRequest(context, {
|
|
130604
131024
|
security: requestSecurity,
|
|
130605
|
-
method: "
|
|
131025
|
+
method: "DELETE",
|
|
130606
131026
|
baseURL: options?.serverURL,
|
|
130607
131027
|
path,
|
|
130608
131028
|
headers,
|
|
130609
|
-
query,
|
|
130610
131029
|
body,
|
|
130611
131030
|
userAgent: client._options.userAgent,
|
|
130612
131031
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -130628,13 +131047,14 @@ async function $do283(client, request, options) {
|
|
|
130628
131047
|
const responseFields = {
|
|
130629
131048
|
HttpMeta: { Response: response, Request: req }
|
|
130630
131049
|
};
|
|
130631
|
-
const [result] = await match(
|
|
131050
|
+
const [result] = await match(nil(204, voidType()), jsonErr([401, 403, 404], RepoError$inboundSchema), jsonErr(500, RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
130632
131051
|
if (!result.ok) {
|
|
130633
131052
|
return [result, { status: "complete", request: req, response }];
|
|
130634
131053
|
}
|
|
130635
131054
|
return [result, { status: "complete", request: req, response }];
|
|
130636
131055
|
}
|
|
130637
|
-
var
|
|
131056
|
+
var init_reposDelete = __esm(() => {
|
|
131057
|
+
init_esm();
|
|
130638
131058
|
init_encodings();
|
|
130639
131059
|
init_http();
|
|
130640
131060
|
init_matchers();
|
|
@@ -130642,156 +131062,63 @@ var init_sandboxGetBrowserUrl = __esm(() => {
|
|
|
130642
131062
|
init_schemas4();
|
|
130643
131063
|
init_security();
|
|
130644
131064
|
init_url();
|
|
130645
|
-
init_components();
|
|
130646
131065
|
init_errors4();
|
|
130647
131066
|
init_operations();
|
|
130648
131067
|
init_async();
|
|
130649
131068
|
});
|
|
130650
131069
|
|
|
130651
|
-
// src/mcp-server/tools/
|
|
130652
|
-
var args275, tool$
|
|
130653
|
-
var
|
|
130654
|
-
|
|
131070
|
+
// src/mcp-server/tools/reposDelete.ts
|
|
131071
|
+
var args275, tool$reposDelete;
|
|
131072
|
+
var init_reposDelete2 = __esm(() => {
|
|
131073
|
+
init_reposDelete();
|
|
130655
131074
|
init_operations();
|
|
130656
131075
|
init_tools();
|
|
130657
131076
|
args275 = {
|
|
130658
|
-
request:
|
|
131077
|
+
request: DeleteRepoRequest$inboundSchema
|
|
130659
131078
|
};
|
|
130660
|
-
tool$
|
|
130661
|
-
name: "
|
|
130662
|
-
description: `
|
|
131079
|
+
tool$reposDelete = {
|
|
131080
|
+
name: "repos-delete",
|
|
131081
|
+
description: `Delete a repository
|
|
130663
131082
|
|
|
130664
|
-
|
|
131083
|
+
Removes a repository; owner or org admin only. The DB delete is
|
|
131084
|
+
authoritative; the Gitea and fga teardowns are best-effort cleanup.
|
|
131085
|
+
`,
|
|
130665
131086
|
args: args275,
|
|
130666
131087
|
tool: async (client, args276, ctx) => {
|
|
130667
|
-
const [result, apiCall] = await
|
|
131088
|
+
const [result, apiCall] = await reposDelete(client, args276.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
130668
131089
|
if (!result.ok) {
|
|
130669
131090
|
return {
|
|
130670
131091
|
content: [{ type: "text", text: result.error.message }],
|
|
130671
131092
|
isError: true
|
|
130672
131093
|
};
|
|
130673
131094
|
}
|
|
130674
|
-
|
|
130675
|
-
return formatResult(value, apiCall);
|
|
130676
|
-
}
|
|
130677
|
-
};
|
|
130678
|
-
});
|
|
130679
|
-
|
|
130680
|
-
// src/funcs/sandboxGetPricing.ts
|
|
130681
|
-
function sandboxGetPricing(client, options) {
|
|
130682
|
-
return new APIPromise($do284(client, options));
|
|
130683
|
-
}
|
|
130684
|
-
async function $do284(client, options) {
|
|
130685
|
-
const path = pathToFunc("/api/v1/sandbox/pricing")();
|
|
130686
|
-
const headers = new Headers(compactMap({
|
|
130687
|
-
Accept: "application/json"
|
|
130688
|
-
}));
|
|
130689
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
130690
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
130691
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
130692
|
-
const context = {
|
|
130693
|
-
options: client._options,
|
|
130694
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
130695
|
-
operationID: "getSandboxPricing",
|
|
130696
|
-
oAuth2Scopes: null,
|
|
130697
|
-
resolvedSecurity: requestSecurity,
|
|
130698
|
-
securitySource: client._options.bearerAuth,
|
|
130699
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
130700
|
-
strategy: "backoff",
|
|
130701
|
-
backoff: {
|
|
130702
|
-
initialInterval: 500,
|
|
130703
|
-
maxInterval: 5000,
|
|
130704
|
-
exponent: 1.5,
|
|
130705
|
-
maxElapsedTime: 15000
|
|
130706
|
-
},
|
|
130707
|
-
retryConnectionErrors: true
|
|
130708
|
-
},
|
|
130709
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
130710
|
-
};
|
|
130711
|
-
const requestRes = client._createRequest(context, {
|
|
130712
|
-
security: requestSecurity,
|
|
130713
|
-
method: "GET",
|
|
130714
|
-
baseURL: options?.serverURL,
|
|
130715
|
-
path,
|
|
130716
|
-
headers,
|
|
130717
|
-
userAgent: client._options.userAgent,
|
|
130718
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
130719
|
-
}, options);
|
|
130720
|
-
if (!requestRes.ok) {
|
|
130721
|
-
return [requestRes, { status: "invalid" }];
|
|
130722
|
-
}
|
|
130723
|
-
const req = requestRes.value;
|
|
130724
|
-
const doResult = await client._do(req, {
|
|
130725
|
-
context,
|
|
130726
|
-
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
130727
|
-
retryConfig: context.retryConfig,
|
|
130728
|
-
retryCodes: context.retryCodes
|
|
130729
|
-
});
|
|
130730
|
-
if (!doResult.ok) {
|
|
130731
|
-
return [doResult, { status: "request-error", request: req }];
|
|
130732
|
-
}
|
|
130733
|
-
const response = doResult.value;
|
|
130734
|
-
const [result] = await match(json(200, SandboxPricingCard$inboundSchema), fail("4XX"), fail("5XX"))(response, req);
|
|
130735
|
-
if (!result.ok) {
|
|
130736
|
-
return [result, { status: "complete", request: req, response }];
|
|
130737
|
-
}
|
|
130738
|
-
return [result, { status: "complete", request: req, response }];
|
|
130739
|
-
}
|
|
130740
|
-
var init_sandboxGetPricing = __esm(() => {
|
|
130741
|
-
init_http();
|
|
130742
|
-
init_matchers();
|
|
130743
|
-
init_primitives();
|
|
130744
|
-
init_security();
|
|
130745
|
-
init_url();
|
|
130746
|
-
init_components();
|
|
130747
|
-
init_async();
|
|
130748
|
-
});
|
|
130749
|
-
|
|
130750
|
-
// src/mcp-server/tools/sandboxGetPricing.ts
|
|
130751
|
-
var tool$sandboxGetPricing;
|
|
130752
|
-
var init_sandboxGetPricing2 = __esm(() => {
|
|
130753
|
-
init_sandboxGetPricing();
|
|
130754
|
-
init_tools();
|
|
130755
|
-
tool$sandboxGetPricing = {
|
|
130756
|
-
name: "sandbox-get-pricing",
|
|
130757
|
-
description: `Get Sandbox Pricing
|
|
130758
|
-
|
|
130759
|
-
Current sandbox pricing rate card, keyed by SKU (\`standard\`, \`browser\`, \`eval-python\`). Metered sandbox usage is billed \`hours × (per_hour + reserved_memory_GiB × per_gib_hour)\`; SKUs without a configured rate accrue no spend. Cluster admins only.`,
|
|
130760
|
-
tool: async (client, ctx) => {
|
|
130761
|
-
const [result, apiCall] = await sandboxGetPricing(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
130762
|
-
if (!result.ok) {
|
|
130763
|
-
return {
|
|
130764
|
-
content: [{ type: "text", text: result.error.message }],
|
|
130765
|
-
isError: true
|
|
130766
|
-
};
|
|
130767
|
-
}
|
|
130768
|
-
const value = result.value;
|
|
130769
|
-
return formatResult(value, apiCall);
|
|
131095
|
+
return formatResult(undefined, apiCall);
|
|
130770
131096
|
}
|
|
130771
131097
|
};
|
|
130772
131098
|
});
|
|
130773
131099
|
|
|
130774
|
-
// src/funcs/
|
|
130775
|
-
function
|
|
130776
|
-
return new APIPromise($
|
|
131100
|
+
// src/funcs/reposGet.ts
|
|
131101
|
+
function reposGet(client, request, options) {
|
|
131102
|
+
return new APIPromise($do284(client, request, options));
|
|
130777
131103
|
}
|
|
130778
|
-
async function $
|
|
130779
|
-
const parsed = safeParse4(request, (value) =>
|
|
131104
|
+
async function $do284(client, request, options) {
|
|
131105
|
+
const parsed = safeParse4(request, (value) => GetRepoRequest$outboundSchema.parse(value), "Input validation failed");
|
|
130780
131106
|
if (!parsed.ok) {
|
|
130781
131107
|
return [parsed, { status: "invalid" }];
|
|
130782
131108
|
}
|
|
130783
131109
|
const payload = parsed.value;
|
|
130784
131110
|
const body = null;
|
|
130785
131111
|
const pathParams = {
|
|
130786
|
-
|
|
131112
|
+
name: encodeSimple("name", payload.name, {
|
|
131113
|
+
explode: false,
|
|
131114
|
+
charEncoding: "percent"
|
|
131115
|
+
}),
|
|
131116
|
+
org: encodeSimple("org", payload.org, {
|
|
130787
131117
|
explode: false,
|
|
130788
131118
|
charEncoding: "percent"
|
|
130789
131119
|
})
|
|
130790
131120
|
};
|
|
130791
|
-
const path = pathToFunc("/api/v1/
|
|
130792
|
-
const query = encodeFormQuery({
|
|
130793
|
-
session_token: payload.session_token
|
|
130794
|
-
});
|
|
131121
|
+
const path = pathToFunc("/api/v1/repos/{org}/{name}")(pathParams);
|
|
130795
131122
|
const headers = new Headers(compactMap({
|
|
130796
131123
|
Accept: "application/json",
|
|
130797
131124
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
@@ -130802,7 +131129,7 @@ async function $do285(client, request, options) {
|
|
|
130802
131129
|
const context = {
|
|
130803
131130
|
options: client._options,
|
|
130804
131131
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
130805
|
-
operationID: "
|
|
131132
|
+
operationID: "getRepo",
|
|
130806
131133
|
oAuth2Scopes: null,
|
|
130807
131134
|
resolvedSecurity: requestSecurity,
|
|
130808
131135
|
securitySource: client._options.bearerAuth,
|
|
@@ -130824,7 +131151,6 @@ async function $do285(client, request, options) {
|
|
|
130824
131151
|
baseURL: options?.serverURL,
|
|
130825
131152
|
path,
|
|
130826
131153
|
headers,
|
|
130827
|
-
query,
|
|
130828
131154
|
body,
|
|
130829
131155
|
userAgent: client._options.userAgent,
|
|
130830
131156
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -130846,13 +131172,13 @@ async function $do285(client, request, options) {
|
|
|
130846
131172
|
const responseFields = {
|
|
130847
131173
|
HttpMeta: { Response: response, Request: req }
|
|
130848
131174
|
};
|
|
130849
|
-
const [result] = await match(json(200,
|
|
131175
|
+
const [result] = await match(json(200, Repo$inboundSchema), jsonErr([401, 403, 404], RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
130850
131176
|
if (!result.ok) {
|
|
130851
131177
|
return [result, { status: "complete", request: req, response }];
|
|
130852
131178
|
}
|
|
130853
131179
|
return [result, { status: "complete", request: req, response }];
|
|
130854
131180
|
}
|
|
130855
|
-
var
|
|
131181
|
+
var init_reposGet = __esm(() => {
|
|
130856
131182
|
init_encodings();
|
|
130857
131183
|
init_http();
|
|
130858
131184
|
init_matchers();
|
|
@@ -130866,23 +131192,23 @@ var init_sandboxGetWorkspace = __esm(() => {
|
|
|
130866
131192
|
init_async();
|
|
130867
131193
|
});
|
|
130868
131194
|
|
|
130869
|
-
// src/mcp-server/tools/
|
|
130870
|
-
var args276, tool$
|
|
130871
|
-
var
|
|
130872
|
-
|
|
131195
|
+
// src/mcp-server/tools/reposGet.ts
|
|
131196
|
+
var args276, tool$reposGet;
|
|
131197
|
+
var init_reposGet2 = __esm(() => {
|
|
131198
|
+
init_reposGet();
|
|
130873
131199
|
init_operations();
|
|
130874
131200
|
init_tools();
|
|
130875
131201
|
args276 = {
|
|
130876
|
-
request:
|
|
131202
|
+
request: GetRepoRequest$inboundSchema
|
|
130877
131203
|
};
|
|
130878
|
-
tool$
|
|
130879
|
-
name: "
|
|
130880
|
-
description: `Get
|
|
131204
|
+
tool$reposGet = {
|
|
131205
|
+
name: "repos-get",
|
|
131206
|
+
description: `Get a repository
|
|
130881
131207
|
|
|
130882
|
-
|
|
131208
|
+
Reads a single repository after a reader-level access check.`,
|
|
130883
131209
|
args: args276,
|
|
130884
131210
|
tool: async (client, args277, ctx) => {
|
|
130885
|
-
const [result, apiCall] = await
|
|
131211
|
+
const [result, apiCall] = await reposGet(client, args277.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
130886
131212
|
if (!result.ok) {
|
|
130887
131213
|
return {
|
|
130888
131214
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -130895,18 +131221,18 @@ List files currently stored in the session workspace, including paths, sizes, an
|
|
|
130895
131221
|
};
|
|
130896
131222
|
});
|
|
130897
131223
|
|
|
130898
|
-
// src/funcs/
|
|
130899
|
-
function
|
|
130900
|
-
return new APIPromise($
|
|
131224
|
+
// src/funcs/reposList.ts
|
|
131225
|
+
function reposList(client, request, options) {
|
|
131226
|
+
return new APIPromise($do285(client, request, options));
|
|
130901
131227
|
}
|
|
130902
|
-
async function $
|
|
130903
|
-
const parsed = safeParse4(request, (value) =>
|
|
131228
|
+
async function $do285(client, request, options) {
|
|
131229
|
+
const parsed = safeParse4(request, (value) => ListReposRequest$outboundSchema.parse(value), "Input validation failed");
|
|
130904
131230
|
if (!parsed.ok) {
|
|
130905
131231
|
return [parsed, { status: "invalid" }];
|
|
130906
131232
|
}
|
|
130907
131233
|
const payload = parsed.value;
|
|
130908
131234
|
const body = null;
|
|
130909
|
-
const path = pathToFunc("/api/v1/
|
|
131235
|
+
const path = pathToFunc("/api/v1/repos")();
|
|
130910
131236
|
const headers = new Headers(compactMap({
|
|
130911
131237
|
Accept: "application/json",
|
|
130912
131238
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
@@ -130917,7 +131243,7 @@ async function $do286(client, request, options) {
|
|
|
130917
131243
|
const context = {
|
|
130918
131244
|
options: client._options,
|
|
130919
131245
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
130920
|
-
operationID: "
|
|
131246
|
+
operationID: "listRepos",
|
|
130921
131247
|
oAuth2Scopes: null,
|
|
130922
131248
|
resolvedSecurity: requestSecurity,
|
|
130923
131249
|
securitySource: client._options.bearerAuth,
|
|
@@ -130960,14 +131286,13 @@ async function $do286(client, request, options) {
|
|
|
130960
131286
|
const responseFields = {
|
|
130961
131287
|
HttpMeta: { Response: response, Request: req }
|
|
130962
131288
|
};
|
|
130963
|
-
const [result] = await match(json(200,
|
|
131289
|
+
const [result] = await match(json(200, ListReposResponseBody$inboundSchema), jsonErr(401, RepoError$inboundSchema), jsonErr(500, RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
130964
131290
|
if (!result.ok) {
|
|
130965
131291
|
return [result, { status: "complete", request: req, response }];
|
|
130966
131292
|
}
|
|
130967
131293
|
return [result, { status: "complete", request: req, response }];
|
|
130968
131294
|
}
|
|
130969
|
-
var
|
|
130970
|
-
init_esm();
|
|
131295
|
+
var init_reposList = __esm(() => {
|
|
130971
131296
|
init_encodings();
|
|
130972
131297
|
init_http();
|
|
130973
131298
|
init_matchers();
|
|
@@ -130975,29 +131300,30 @@ var init_sandboxList = __esm(() => {
|
|
|
130975
131300
|
init_schemas4();
|
|
130976
131301
|
init_security();
|
|
130977
131302
|
init_url();
|
|
130978
|
-
init_components();
|
|
130979
131303
|
init_errors4();
|
|
130980
131304
|
init_operations();
|
|
130981
131305
|
init_async();
|
|
130982
131306
|
});
|
|
130983
131307
|
|
|
130984
|
-
// src/mcp-server/tools/
|
|
130985
|
-
var args277, tool$
|
|
130986
|
-
var
|
|
130987
|
-
|
|
131308
|
+
// src/mcp-server/tools/reposList.ts
|
|
131309
|
+
var args277, tool$reposList;
|
|
131310
|
+
var init_reposList2 = __esm(() => {
|
|
131311
|
+
init_reposList();
|
|
130988
131312
|
init_operations();
|
|
130989
131313
|
init_tools();
|
|
130990
131314
|
args277 = {
|
|
130991
|
-
request:
|
|
131315
|
+
request: ListReposRequest$inboundSchema
|
|
130992
131316
|
};
|
|
130993
|
-
tool$
|
|
130994
|
-
name: "
|
|
130995
|
-
description: `List
|
|
131317
|
+
tool$reposList = {
|
|
131318
|
+
name: "repos-list",
|
|
131319
|
+
description: `List the caller's repositories
|
|
130996
131320
|
|
|
130997
|
-
|
|
131321
|
+
Returns the repositories visible to the caller within their (org, team),
|
|
131322
|
+
widened to the whole (org, team) for an org admin. Pure DB read.
|
|
131323
|
+
`,
|
|
130998
131324
|
args: args277,
|
|
130999
131325
|
tool: async (client, args278, ctx) => {
|
|
131000
|
-
const [result, apiCall] = await
|
|
131326
|
+
const [result, apiCall] = await reposList(client, args278.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
131001
131327
|
if (!result.ok) {
|
|
131002
131328
|
return {
|
|
131003
131329
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -131010,36 +131336,30 @@ List sandbox sessions visible to the authenticated caller.`,
|
|
|
131010
131336
|
};
|
|
131011
131337
|
});
|
|
131012
131338
|
|
|
131013
|
-
// src/funcs/
|
|
131014
|
-
function
|
|
131015
|
-
return new APIPromise($
|
|
131339
|
+
// src/funcs/reposUpdate.ts
|
|
131340
|
+
function reposUpdate(client, request, options) {
|
|
131341
|
+
return new APIPromise($do286(client, request, options));
|
|
131016
131342
|
}
|
|
131017
|
-
async function $
|
|
131018
|
-
const parsed = safeParse4(request, (value) =>
|
|
131343
|
+
async function $do286(client, request, options) {
|
|
131344
|
+
const parsed = safeParse4(request, (value) => PatchRepoRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
131019
131345
|
if (!parsed.ok) {
|
|
131020
131346
|
return [parsed, { status: "invalid" }];
|
|
131021
131347
|
}
|
|
131022
131348
|
const payload = parsed.value;
|
|
131023
|
-
const body =
|
|
131349
|
+
const body = encodeJSON("body", payload.PatchRepoRequest, { explode: true });
|
|
131024
131350
|
const pathParams = {
|
|
131025
|
-
|
|
131026
|
-
explode: false,
|
|
131027
|
-
charEncoding: "percent"
|
|
131028
|
-
}),
|
|
131029
|
-
session_id: encodeSimple("session_id", payload.session_id, {
|
|
131351
|
+
name: encodeSimple("name", payload.name, {
|
|
131030
131352
|
explode: false,
|
|
131031
131353
|
charEncoding: "percent"
|
|
131032
131354
|
}),
|
|
131033
|
-
|
|
131355
|
+
org: encodeSimple("org", payload.org, {
|
|
131034
131356
|
explode: false,
|
|
131035
131357
|
charEncoding: "percent"
|
|
131036
131358
|
})
|
|
131037
131359
|
};
|
|
131038
|
-
const path = pathToFunc("/api/v1/
|
|
131039
|
-
const query = encodeFormQuery({
|
|
131040
|
-
session_token: payload.session_token
|
|
131041
|
-
});
|
|
131360
|
+
const path = pathToFunc("/api/v1/repos/{org}/{name}")(pathParams);
|
|
131042
131361
|
const headers = new Headers(compactMap({
|
|
131362
|
+
"Content-Type": "application/json",
|
|
131043
131363
|
Accept: "application/json",
|
|
131044
131364
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
131045
131365
|
}));
|
|
@@ -131049,7 +131369,7 @@ async function $do287(client, request, options) {
|
|
|
131049
131369
|
const context = {
|
|
131050
131370
|
options: client._options,
|
|
131051
131371
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
131052
|
-
operationID: "
|
|
131372
|
+
operationID: "patchRepo",
|
|
131053
131373
|
oAuth2Scopes: null,
|
|
131054
131374
|
resolvedSecurity: requestSecurity,
|
|
131055
131375
|
securitySource: client._options.bearerAuth,
|
|
@@ -131067,11 +131387,10 @@ async function $do287(client, request, options) {
|
|
|
131067
131387
|
};
|
|
131068
131388
|
const requestRes = client._createRequest(context, {
|
|
131069
131389
|
security: requestSecurity,
|
|
131070
|
-
method: "
|
|
131390
|
+
method: "PATCH",
|
|
131071
131391
|
baseURL: options?.serverURL,
|
|
131072
131392
|
path,
|
|
131073
131393
|
headers,
|
|
131074
|
-
query,
|
|
131075
131394
|
body,
|
|
131076
131395
|
userAgent: client._options.userAgent,
|
|
131077
131396
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -131093,14 +131412,13 @@ async function $do287(client, request, options) {
|
|
|
131093
131412
|
const responseFields = {
|
|
131094
131413
|
HttpMeta: { Response: response, Request: req }
|
|
131095
131414
|
};
|
|
131096
|
-
const [result] = await match(json(200,
|
|
131415
|
+
const [result] = await match(json(200, Repo$inboundSchema), jsonErr([400, 401, 403, 404, 409], RepoError$inboundSchema), jsonErr(500, RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
131097
131416
|
if (!result.ok) {
|
|
131098
131417
|
return [result, { status: "complete", request: req, response }];
|
|
131099
131418
|
}
|
|
131100
131419
|
return [result, { status: "complete", request: req, response }];
|
|
131101
131420
|
}
|
|
131102
|
-
var
|
|
131103
|
-
init_esm();
|
|
131421
|
+
var init_reposUpdate = __esm(() => {
|
|
131104
131422
|
init_encodings();
|
|
131105
131423
|
init_http();
|
|
131106
131424
|
init_matchers();
|
|
@@ -131108,28 +131426,33 @@ var init_sandboxProxyBrowserPortRequest = __esm(() => {
|
|
|
131108
131426
|
init_schemas4();
|
|
131109
131427
|
init_security();
|
|
131110
131428
|
init_url();
|
|
131429
|
+
init_components();
|
|
131111
131430
|
init_errors4();
|
|
131112
131431
|
init_operations();
|
|
131113
131432
|
init_async();
|
|
131114
131433
|
});
|
|
131115
131434
|
|
|
131116
|
-
// src/mcp-server/tools/
|
|
131117
|
-
var args278, tool$
|
|
131118
|
-
var
|
|
131119
|
-
|
|
131435
|
+
// src/mcp-server/tools/reposUpdate.ts
|
|
131436
|
+
var args278, tool$reposUpdate;
|
|
131437
|
+
var init_reposUpdate2 = __esm(() => {
|
|
131438
|
+
init_reposUpdate();
|
|
131120
131439
|
init_operations();
|
|
131121
131440
|
init_tools();
|
|
131122
131441
|
args278 = {
|
|
131123
|
-
request:
|
|
131442
|
+
request: PatchRepoRequest$inboundSchema2
|
|
131124
131443
|
};
|
|
131125
|
-
tool$
|
|
131126
|
-
name: "
|
|
131127
|
-
description: `
|
|
131444
|
+
tool$reposUpdate = {
|
|
131445
|
+
name: "repos-update",
|
|
131446
|
+
description: `Update a repository's labels
|
|
131128
131447
|
|
|
131129
|
-
|
|
131448
|
+
Applies a label-only update (name/visibility/description); owner or org
|
|
131449
|
+
admin only. The repository id is stable, so a rename is a one-row DB
|
|
131450
|
+
update — no Gitea/fga writes. Omitted fields are left unchanged;
|
|
131451
|
+
\`visibility\` cannot be set to empty.
|
|
131452
|
+
`,
|
|
131130
131453
|
args: args278,
|
|
131131
131454
|
tool: async (client, args279, ctx) => {
|
|
131132
|
-
const [result, apiCall] = await
|
|
131455
|
+
const [result, apiCall] = await reposUpdate(client, args279.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
131133
131456
|
if (!result.ok) {
|
|
131134
131457
|
return {
|
|
131135
131458
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -131142,24 +131465,20 @@ Proxy an HTTP request to an exposed browser-session port through the gateway. Us
|
|
|
131142
131465
|
};
|
|
131143
131466
|
});
|
|
131144
131467
|
|
|
131145
|
-
// src/funcs/
|
|
131146
|
-
function
|
|
131147
|
-
return new APIPromise($
|
|
131468
|
+
// src/funcs/sandboxCreate.ts
|
|
131469
|
+
function sandboxCreate(client, request, options) {
|
|
131470
|
+
return new APIPromise($do287(client, request, options));
|
|
131148
131471
|
}
|
|
131149
|
-
async function $
|
|
131150
|
-
const parsed = safeParse4(request, (value) =>
|
|
131472
|
+
async function $do287(client, request, options) {
|
|
131473
|
+
const parsed = safeParse4(request, (value) => CreateSessionRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
131151
131474
|
if (!parsed.ok) {
|
|
131152
131475
|
return [parsed, { status: "invalid" }];
|
|
131153
131476
|
}
|
|
131154
131477
|
const payload = parsed.value;
|
|
131155
|
-
const body = encodeJSON("body", payload.
|
|
131156
|
-
|
|
131157
|
-
|
|
131158
|
-
|
|
131159
|
-
charEncoding: "percent"
|
|
131160
|
-
})
|
|
131161
|
-
};
|
|
131162
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/code")(pathParams);
|
|
131478
|
+
const body = encodeJSON("body", payload.CreateSessionRequest, {
|
|
131479
|
+
explode: true
|
|
131480
|
+
});
|
|
131481
|
+
const path = pathToFunc("/api/v1/sandbox/sessions")();
|
|
131163
131482
|
const headers = new Headers(compactMap({
|
|
131164
131483
|
"Content-Type": "application/json",
|
|
131165
131484
|
Accept: "application/json",
|
|
@@ -131171,7 +131490,7 @@ async function $do288(client, request, options) {
|
|
|
131171
131490
|
const context = {
|
|
131172
131491
|
options: client._options,
|
|
131173
131492
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
131174
|
-
operationID: "
|
|
131493
|
+
operationID: "createSession",
|
|
131175
131494
|
oAuth2Scopes: null,
|
|
131176
131495
|
resolvedSecurity: requestSecurity,
|
|
131177
131496
|
securitySource: client._options.bearerAuth,
|
|
@@ -131214,13 +131533,13 @@ async function $do288(client, request, options) {
|
|
|
131214
131533
|
const responseFields = {
|
|
131215
131534
|
HttpMeta: { Response: response, Request: req }
|
|
131216
131535
|
};
|
|
131217
|
-
const [result] = await match(json(200,
|
|
131536
|
+
const [result] = await match(json([200, 202], CreateSessionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail([501, "5XX"]))(response, req, { extraFields: responseFields });
|
|
131218
131537
|
if (!result.ok) {
|
|
131219
131538
|
return [result, { status: "complete", request: req, response }];
|
|
131220
131539
|
}
|
|
131221
131540
|
return [result, { status: "complete", request: req, response }];
|
|
131222
131541
|
}
|
|
131223
|
-
var
|
|
131542
|
+
var init_sandboxCreate = __esm(() => {
|
|
131224
131543
|
init_encodings();
|
|
131225
131544
|
init_http();
|
|
131226
131545
|
init_matchers();
|
|
@@ -131234,23 +131553,23 @@ var init_sandboxRunCode = __esm(() => {
|
|
|
131234
131553
|
init_async();
|
|
131235
131554
|
});
|
|
131236
131555
|
|
|
131237
|
-
// src/mcp-server/tools/
|
|
131238
|
-
var args279, tool$
|
|
131239
|
-
var
|
|
131240
|
-
|
|
131556
|
+
// src/mcp-server/tools/sandboxCreate.ts
|
|
131557
|
+
var args279, tool$sandboxCreate;
|
|
131558
|
+
var init_sandboxCreate2 = __esm(() => {
|
|
131559
|
+
init_sandboxCreate();
|
|
131241
131560
|
init_operations();
|
|
131242
131561
|
init_tools();
|
|
131243
131562
|
args279 = {
|
|
131244
|
-
request:
|
|
131563
|
+
request: CreateSessionRequest$inboundSchema2
|
|
131245
131564
|
};
|
|
131246
|
-
tool$
|
|
131247
|
-
name: "sandbox-
|
|
131248
|
-
description: `
|
|
131565
|
+
tool$sandboxCreate = {
|
|
131566
|
+
name: "sandbox-create",
|
|
131567
|
+
description: `Create Session
|
|
131249
131568
|
|
|
131250
|
-
|
|
131569
|
+
Create a sandbox session and return its public session metadata, session token, and provider. Set \`session_kind\` to \`browser\` to start a browser-backed session instead of a standard command/code sandbox. Set \`queue_if_full\` to \`true\` to queue the request instead of failing when runner capacity is temporarily unavailable. It does not queue requests for session kinds the deployment does not support. Browser sessions require a Firecracker-backed deployment; standard-only deployments reject them immediately with \`browser_sessions_not_enabled\`.`,
|
|
131251
131570
|
args: args279,
|
|
131252
131571
|
tool: async (client, args280, ctx) => {
|
|
131253
|
-
const [result, apiCall] = await
|
|
131572
|
+
const [result, apiCall] = await sandboxCreate(client, args280.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
131254
131573
|
if (!result.ok) {
|
|
131255
131574
|
return {
|
|
131256
131575
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -131263,27 +131582,32 @@ Execute source code in the session workspace using a supported runtime and retur
|
|
|
131263
131582
|
};
|
|
131264
131583
|
});
|
|
131265
131584
|
|
|
131266
|
-
// src/funcs/
|
|
131267
|
-
function
|
|
131268
|
-
return new APIPromise($
|
|
131585
|
+
// src/funcs/sandboxDownloadArchive.ts
|
|
131586
|
+
function sandboxDownloadArchive(client, request, options) {
|
|
131587
|
+
return new APIPromise($do288(client, request, options));
|
|
131269
131588
|
}
|
|
131270
|
-
async function $
|
|
131271
|
-
const parsed = safeParse4(request, (value) =>
|
|
131589
|
+
async function $do288(client, request, options) {
|
|
131590
|
+
const parsed = safeParse4(request, (value) => DownloadWorkspaceArchiveRequest$outboundSchema.parse(value), "Input validation failed");
|
|
131272
131591
|
if (!parsed.ok) {
|
|
131273
131592
|
return [parsed, { status: "invalid" }];
|
|
131274
131593
|
}
|
|
131275
131594
|
const payload = parsed.value;
|
|
131276
|
-
const body = encodeJSON("body", payload.
|
|
131595
|
+
const body = encodeJSON("body", payload.WorkspaceArchiveRequest, {
|
|
131596
|
+
explode: true
|
|
131597
|
+
});
|
|
131277
131598
|
const pathParams = {
|
|
131278
131599
|
session_id: encodeSimple("session_id", payload.session_id, {
|
|
131279
131600
|
explode: false,
|
|
131280
131601
|
charEncoding: "percent"
|
|
131281
131602
|
})
|
|
131282
131603
|
};
|
|
131283
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/
|
|
131604
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/archive")(pathParams);
|
|
131605
|
+
const query = encodeFormQuery({
|
|
131606
|
+
session_token: payload.session_token
|
|
131607
|
+
});
|
|
131284
131608
|
const headers = new Headers(compactMap({
|
|
131285
131609
|
"Content-Type": "application/json",
|
|
131286
|
-
Accept: "application/
|
|
131610
|
+
Accept: "application/zip",
|
|
131287
131611
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
131288
131612
|
}));
|
|
131289
131613
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
@@ -131292,7 +131616,7 @@ async function $do289(client, request, options) {
|
|
|
131292
131616
|
const context = {
|
|
131293
131617
|
options: client._options,
|
|
131294
131618
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
131295
|
-
operationID: "
|
|
131619
|
+
operationID: "downloadWorkspaceArchive",
|
|
131296
131620
|
oAuth2Scopes: null,
|
|
131297
131621
|
resolvedSecurity: requestSecurity,
|
|
131298
131622
|
securitySource: client._options.bearerAuth,
|
|
@@ -131314,6 +131638,7 @@ async function $do289(client, request, options) {
|
|
|
131314
131638
|
baseURL: options?.serverURL,
|
|
131315
131639
|
path,
|
|
131316
131640
|
headers,
|
|
131641
|
+
query,
|
|
131317
131642
|
body,
|
|
131318
131643
|
userAgent: client._options.userAgent,
|
|
131319
131644
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -131335,13 +131660,16 @@ async function $do289(client, request, options) {
|
|
|
131335
131660
|
const responseFields = {
|
|
131336
131661
|
HttpMeta: { Response: response, Request: req }
|
|
131337
131662
|
};
|
|
131338
|
-
const [result] = await match(
|
|
131663
|
+
const [result] = await match(stream(200, instanceOfType(ReadableStream), {
|
|
131664
|
+
ctype: "application/zip"
|
|
131665
|
+
}), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
131339
131666
|
if (!result.ok) {
|
|
131340
131667
|
return [result, { status: "complete", request: req, response }];
|
|
131341
131668
|
}
|
|
131342
131669
|
return [result, { status: "complete", request: req, response }];
|
|
131343
131670
|
}
|
|
131344
|
-
var
|
|
131671
|
+
var init_sandboxDownloadArchive = __esm(() => {
|
|
131672
|
+
init_esm();
|
|
131345
131673
|
init_encodings();
|
|
131346
131674
|
init_http();
|
|
131347
131675
|
init_matchers();
|
|
@@ -131349,29 +131677,28 @@ var init_sandboxRunCommand = __esm(() => {
|
|
|
131349
131677
|
init_schemas4();
|
|
131350
131678
|
init_security();
|
|
131351
131679
|
init_url();
|
|
131352
|
-
init_components();
|
|
131353
131680
|
init_errors4();
|
|
131354
131681
|
init_operations();
|
|
131355
131682
|
init_async();
|
|
131356
131683
|
});
|
|
131357
131684
|
|
|
131358
|
-
// src/mcp-server/tools/
|
|
131359
|
-
var args280, tool$
|
|
131360
|
-
var
|
|
131361
|
-
|
|
131685
|
+
// src/mcp-server/tools/sandboxDownloadArchive.ts
|
|
131686
|
+
var args280, tool$sandboxDownloadArchive;
|
|
131687
|
+
var init_sandboxDownloadArchive2 = __esm(() => {
|
|
131688
|
+
init_sandboxDownloadArchive();
|
|
131362
131689
|
init_operations();
|
|
131363
131690
|
init_tools();
|
|
131364
131691
|
args280 = {
|
|
131365
|
-
request:
|
|
131692
|
+
request: DownloadWorkspaceArchiveRequest$inboundSchema
|
|
131366
131693
|
};
|
|
131367
|
-
tool$
|
|
131368
|
-
name: "sandbox-
|
|
131369
|
-
description: `
|
|
131694
|
+
tool$sandboxDownloadArchive = {
|
|
131695
|
+
name: "sandbox-download-archive",
|
|
131696
|
+
description: `Download Workspace Archive
|
|
131370
131697
|
|
|
131371
|
-
|
|
131698
|
+
Download a zip archive containing the selected workspace paths.`,
|
|
131372
131699
|
args: args280,
|
|
131373
131700
|
tool: async (client, args281, ctx) => {
|
|
131374
|
-
const [result, apiCall] = await
|
|
131701
|
+
const [result, apiCall] = await sandboxDownloadArchive(client, args281.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
131375
131702
|
if (!result.ok) {
|
|
131376
131703
|
return {
|
|
131377
131704
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -131384,21 +131711,34 @@ Run a command in the session workspace and return stdout, stderr, exit code, and
|
|
|
131384
131711
|
};
|
|
131385
131712
|
});
|
|
131386
131713
|
|
|
131387
|
-
// src/funcs/
|
|
131388
|
-
function
|
|
131389
|
-
return new APIPromise($
|
|
131714
|
+
// src/funcs/sandboxDownloadFile.ts
|
|
131715
|
+
function sandboxDownloadFile(client, request, options) {
|
|
131716
|
+
return new APIPromise($do289(client, request, options));
|
|
131390
131717
|
}
|
|
131391
|
-
async function $
|
|
131392
|
-
const parsed = safeParse4(request, (value) =>
|
|
131718
|
+
async function $do289(client, request, options) {
|
|
131719
|
+
const parsed = safeParse4(request, (value) => DownloadWorkspaceFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
131393
131720
|
if (!parsed.ok) {
|
|
131394
131721
|
return [parsed, { status: "invalid" }];
|
|
131395
131722
|
}
|
|
131396
131723
|
const payload = parsed.value;
|
|
131397
|
-
const body =
|
|
131398
|
-
const
|
|
131724
|
+
const body = null;
|
|
131725
|
+
const pathParams = {
|
|
131726
|
+
file_path: encodeSimple("file_path", payload.file_path, {
|
|
131727
|
+
explode: false,
|
|
131728
|
+
charEncoding: "percent"
|
|
131729
|
+
}),
|
|
131730
|
+
session_id: encodeSimple("session_id", payload.session_id, {
|
|
131731
|
+
explode: false,
|
|
131732
|
+
charEncoding: "percent"
|
|
131733
|
+
})
|
|
131734
|
+
};
|
|
131735
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/files/{file_path}")(pathParams);
|
|
131736
|
+
const query = encodeFormQuery({
|
|
131737
|
+
session_token: payload.session_token
|
|
131738
|
+
});
|
|
131399
131739
|
const headers = new Headers(compactMap({
|
|
131400
|
-
|
|
131401
|
-
|
|
131740
|
+
Accept: "application/octet-stream",
|
|
131741
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
131402
131742
|
}));
|
|
131403
131743
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
131404
131744
|
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
@@ -131406,7 +131746,7 @@ async function $do290(client, request, options) {
|
|
|
131406
131746
|
const context = {
|
|
131407
131747
|
options: client._options,
|
|
131408
131748
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
131409
|
-
operationID: "
|
|
131749
|
+
operationID: "downloadWorkspaceFile",
|
|
131410
131750
|
oAuth2Scopes: null,
|
|
131411
131751
|
resolvedSecurity: requestSecurity,
|
|
131412
131752
|
securitySource: client._options.bearerAuth,
|
|
@@ -131424,10 +131764,11 @@ async function $do290(client, request, options) {
|
|
|
131424
131764
|
};
|
|
131425
131765
|
const requestRes = client._createRequest(context, {
|
|
131426
131766
|
security: requestSecurity,
|
|
131427
|
-
method: "
|
|
131767
|
+
method: "GET",
|
|
131428
131768
|
baseURL: options?.serverURL,
|
|
131429
131769
|
path,
|
|
131430
131770
|
headers,
|
|
131771
|
+
query,
|
|
131431
131772
|
body,
|
|
131432
131773
|
userAgent: client._options.userAgent,
|
|
131433
131774
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -131449,13 +131790,14 @@ async function $do290(client, request, options) {
|
|
|
131449
131790
|
const responseFields = {
|
|
131450
131791
|
HttpMeta: { Response: response, Request: req }
|
|
131451
131792
|
};
|
|
131452
|
-
const [result] = await match(
|
|
131793
|
+
const [result] = await match(stream(200, instanceOfType(ReadableStream)), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
131453
131794
|
if (!result.ok) {
|
|
131454
131795
|
return [result, { status: "complete", request: req, response }];
|
|
131455
131796
|
}
|
|
131456
131797
|
return [result, { status: "complete", request: req, response }];
|
|
131457
131798
|
}
|
|
131458
|
-
var
|
|
131799
|
+
var init_sandboxDownloadFile = __esm(() => {
|
|
131800
|
+
init_esm();
|
|
131459
131801
|
init_encodings();
|
|
131460
131802
|
init_http();
|
|
131461
131803
|
init_matchers();
|
|
@@ -131463,28 +131805,28 @@ var init_sandboxSetPricing = __esm(() => {
|
|
|
131463
131805
|
init_schemas4();
|
|
131464
131806
|
init_security();
|
|
131465
131807
|
init_url();
|
|
131466
|
-
init_components();
|
|
131467
131808
|
init_errors4();
|
|
131809
|
+
init_operations();
|
|
131468
131810
|
init_async();
|
|
131469
131811
|
});
|
|
131470
131812
|
|
|
131471
|
-
// src/mcp-server/tools/
|
|
131472
|
-
var args281, tool$
|
|
131473
|
-
var
|
|
131474
|
-
|
|
131475
|
-
|
|
131813
|
+
// src/mcp-server/tools/sandboxDownloadFile.ts
|
|
131814
|
+
var args281, tool$sandboxDownloadFile;
|
|
131815
|
+
var init_sandboxDownloadFile2 = __esm(() => {
|
|
131816
|
+
init_sandboxDownloadFile();
|
|
131817
|
+
init_operations();
|
|
131476
131818
|
init_tools();
|
|
131477
131819
|
args281 = {
|
|
131478
|
-
request:
|
|
131820
|
+
request: DownloadWorkspaceFileRequest$inboundSchema
|
|
131479
131821
|
};
|
|
131480
|
-
tool$
|
|
131481
|
-
name: "sandbox-
|
|
131482
|
-
description: `
|
|
131822
|
+
tool$sandboxDownloadFile = {
|
|
131823
|
+
name: "sandbox-download-file",
|
|
131824
|
+
description: `Download Workspace File
|
|
131483
131825
|
|
|
131484
|
-
|
|
131826
|
+
Download raw bytes from a file in the session workspace.`,
|
|
131485
131827
|
args: args281,
|
|
131486
131828
|
tool: async (client, args282, ctx) => {
|
|
131487
|
-
const [result, apiCall] = await
|
|
131829
|
+
const [result, apiCall] = await sandboxDownloadFile(client, args282.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
131488
131830
|
if (!result.ok) {
|
|
131489
131831
|
return {
|
|
131490
131832
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -131497,28 +131839,25 @@ Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from
|
|
|
131497
131839
|
};
|
|
131498
131840
|
});
|
|
131499
131841
|
|
|
131500
|
-
// src/funcs/
|
|
131501
|
-
function
|
|
131502
|
-
return new APIPromise($
|
|
131842
|
+
// src/funcs/sandboxGet.ts
|
|
131843
|
+
function sandboxGet(client, request, options) {
|
|
131844
|
+
return new APIPromise($do290(client, request, options));
|
|
131503
131845
|
}
|
|
131504
|
-
async function $
|
|
131505
|
-
const parsed = safeParse4(request, (value) =>
|
|
131846
|
+
async function $do290(client, request, options) {
|
|
131847
|
+
const parsed = safeParse4(request, (value) => GetSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
131506
131848
|
if (!parsed.ok) {
|
|
131507
131849
|
return [parsed, { status: "invalid" }];
|
|
131508
131850
|
}
|
|
131509
131851
|
const payload = parsed.value;
|
|
131510
|
-
const body =
|
|
131511
|
-
explode: true
|
|
131512
|
-
});
|
|
131852
|
+
const body = null;
|
|
131513
131853
|
const pathParams = {
|
|
131514
131854
|
session_id: encodeSimple("session_id", payload.session_id, {
|
|
131515
131855
|
explode: false,
|
|
131516
131856
|
charEncoding: "percent"
|
|
131517
131857
|
})
|
|
131518
131858
|
};
|
|
131519
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}
|
|
131859
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}")(pathParams);
|
|
131520
131860
|
const headers = new Headers(compactMap({
|
|
131521
|
-
"Content-Type": "application/json",
|
|
131522
131861
|
Accept: "application/json",
|
|
131523
131862
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
131524
131863
|
}));
|
|
@@ -131528,7 +131867,7 @@ async function $do291(client, request, options) {
|
|
|
131528
131867
|
const context = {
|
|
131529
131868
|
options: client._options,
|
|
131530
131869
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
131531
|
-
operationID: "
|
|
131870
|
+
operationID: "getSession",
|
|
131532
131871
|
oAuth2Scopes: null,
|
|
131533
131872
|
resolvedSecurity: requestSecurity,
|
|
131534
131873
|
securitySource: client._options.bearerAuth,
|
|
@@ -131546,7 +131885,7 @@ async function $do291(client, request, options) {
|
|
|
131546
131885
|
};
|
|
131547
131886
|
const requestRes = client._createRequest(context, {
|
|
131548
131887
|
security: requestSecurity,
|
|
131549
|
-
method: "
|
|
131888
|
+
method: "GET",
|
|
131550
131889
|
baseURL: options?.serverURL,
|
|
131551
131890
|
path,
|
|
131552
131891
|
headers,
|
|
@@ -131571,13 +131910,13 @@ async function $do291(client, request, options) {
|
|
|
131571
131910
|
const responseFields = {
|
|
131572
131911
|
HttpMeta: { Response: response, Request: req }
|
|
131573
131912
|
};
|
|
131574
|
-
const [result] = await match(json(200,
|
|
131913
|
+
const [result] = await match(json(200, SessionRecord$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
131575
131914
|
if (!result.ok) {
|
|
131576
131915
|
return [result, { status: "complete", request: req, response }];
|
|
131577
131916
|
}
|
|
131578
131917
|
return [result, { status: "complete", request: req, response }];
|
|
131579
131918
|
}
|
|
131580
|
-
var
|
|
131919
|
+
var init_sandboxGet = __esm(() => {
|
|
131581
131920
|
init_encodings();
|
|
131582
131921
|
init_http();
|
|
131583
131922
|
init_matchers();
|
|
@@ -131591,23 +131930,23 @@ var init_sandboxTerminate = __esm(() => {
|
|
|
131591
131930
|
init_async();
|
|
131592
131931
|
});
|
|
131593
131932
|
|
|
131594
|
-
// src/mcp-server/tools/
|
|
131595
|
-
var args282, tool$
|
|
131596
|
-
var
|
|
131597
|
-
|
|
131933
|
+
// src/mcp-server/tools/sandboxGet.ts
|
|
131934
|
+
var args282, tool$sandboxGet;
|
|
131935
|
+
var init_sandboxGet2 = __esm(() => {
|
|
131936
|
+
init_sandboxGet();
|
|
131598
131937
|
init_operations();
|
|
131599
131938
|
init_tools();
|
|
131600
131939
|
args282 = {
|
|
131601
|
-
request:
|
|
131940
|
+
request: GetSessionRequest$inboundSchema
|
|
131602
131941
|
};
|
|
131603
|
-
tool$
|
|
131604
|
-
name: "sandbox-
|
|
131605
|
-
description: `
|
|
131942
|
+
tool$sandboxGet = {
|
|
131943
|
+
name: "sandbox-get",
|
|
131944
|
+
description: `Get Session
|
|
131606
131945
|
|
|
131607
|
-
|
|
131946
|
+
Return the current state, configuration, and resource allocation for a sandbox session.`,
|
|
131608
131947
|
args: args282,
|
|
131609
131948
|
tool: async (client, args283, ctx) => {
|
|
131610
|
-
const [result, apiCall] = await
|
|
131949
|
+
const [result, apiCall] = await sandboxGet(client, args283.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
131611
131950
|
if (!result.ok) {
|
|
131612
131951
|
return {
|
|
131613
131952
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -131620,29 +131959,28 @@ Stop a sandbox session and release the backing sandbox resources.`,
|
|
|
131620
131959
|
};
|
|
131621
131960
|
});
|
|
131622
131961
|
|
|
131623
|
-
// src/funcs/
|
|
131624
|
-
function
|
|
131625
|
-
return new APIPromise($
|
|
131962
|
+
// src/funcs/sandboxGetBrowserUrl.ts
|
|
131963
|
+
function sandboxGetBrowserUrl(client, request, options) {
|
|
131964
|
+
return new APIPromise($do291(client, request, options));
|
|
131626
131965
|
}
|
|
131627
|
-
async function $
|
|
131628
|
-
const parsed = safeParse4(request, (value) =>
|
|
131966
|
+
async function $do291(client, request, options) {
|
|
131967
|
+
const parsed = safeParse4(request, (value) => GetBrowserSessionUrlRequest$outboundSchema.parse(value), "Input validation failed");
|
|
131629
131968
|
if (!parsed.ok) {
|
|
131630
131969
|
return [parsed, { status: "invalid" }];
|
|
131631
131970
|
}
|
|
131632
131971
|
const payload = parsed.value;
|
|
131633
|
-
const body =
|
|
131972
|
+
const body = null;
|
|
131634
131973
|
const pathParams = {
|
|
131635
131974
|
session_id: encodeSimple("session_id", payload.session_id, {
|
|
131636
131975
|
explode: false,
|
|
131637
131976
|
charEncoding: "percent"
|
|
131638
131977
|
})
|
|
131639
131978
|
};
|
|
131640
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/
|
|
131979
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/browser-url")(pathParams);
|
|
131641
131980
|
const query = encodeFormQuery({
|
|
131642
131981
|
session_token: payload.session_token
|
|
131643
131982
|
});
|
|
131644
131983
|
const headers = new Headers(compactMap({
|
|
131645
|
-
"Content-Type": "application/zip",
|
|
131646
131984
|
Accept: "application/json",
|
|
131647
131985
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
131648
131986
|
}));
|
|
@@ -131652,7 +131990,7 @@ async function $do292(client, request, options) {
|
|
|
131652
131990
|
const context = {
|
|
131653
131991
|
options: client._options,
|
|
131654
131992
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
131655
|
-
operationID: "
|
|
131993
|
+
operationID: "getBrowserSessionUrl",
|
|
131656
131994
|
oAuth2Scopes: null,
|
|
131657
131995
|
resolvedSecurity: requestSecurity,
|
|
131658
131996
|
securitySource: client._options.bearerAuth,
|
|
@@ -131670,7 +132008,7 @@ async function $do292(client, request, options) {
|
|
|
131670
132008
|
};
|
|
131671
132009
|
const requestRes = client._createRequest(context, {
|
|
131672
132010
|
security: requestSecurity,
|
|
131673
|
-
method: "
|
|
132011
|
+
method: "GET",
|
|
131674
132012
|
baseURL: options?.serverURL,
|
|
131675
132013
|
path,
|
|
131676
132014
|
headers,
|
|
@@ -131696,14 +132034,13 @@ async function $do292(client, request, options) {
|
|
|
131696
132034
|
const responseFields = {
|
|
131697
132035
|
HttpMeta: { Response: response, Request: req }
|
|
131698
132036
|
};
|
|
131699
|
-
const [result] = await match(json(200,
|
|
132037
|
+
const [result] = await match(json(200, SessionUrlResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail([501, "5XX"]))(response, req, { extraFields: responseFields });
|
|
131700
132038
|
if (!result.ok) {
|
|
131701
132039
|
return [result, { status: "complete", request: req, response }];
|
|
131702
132040
|
}
|
|
131703
132041
|
return [result, { status: "complete", request: req, response }];
|
|
131704
132042
|
}
|
|
131705
|
-
var
|
|
131706
|
-
init_esm();
|
|
132043
|
+
var init_sandboxGetBrowserUrl = __esm(() => {
|
|
131707
132044
|
init_encodings();
|
|
131708
132045
|
init_http();
|
|
131709
132046
|
init_matchers();
|
|
@@ -131711,28 +132048,29 @@ var init_sandboxUploadArchive = __esm(() => {
|
|
|
131711
132048
|
init_schemas4();
|
|
131712
132049
|
init_security();
|
|
131713
132050
|
init_url();
|
|
132051
|
+
init_components();
|
|
131714
132052
|
init_errors4();
|
|
131715
132053
|
init_operations();
|
|
131716
132054
|
init_async();
|
|
131717
132055
|
});
|
|
131718
132056
|
|
|
131719
|
-
// src/mcp-server/tools/
|
|
131720
|
-
var args283, tool$
|
|
131721
|
-
var
|
|
131722
|
-
|
|
132057
|
+
// src/mcp-server/tools/sandboxGetBrowserUrl.ts
|
|
132058
|
+
var args283, tool$sandboxGetBrowserUrl;
|
|
132059
|
+
var init_sandboxGetBrowserUrl2 = __esm(() => {
|
|
132060
|
+
init_sandboxGetBrowserUrl();
|
|
131723
132061
|
init_operations();
|
|
131724
132062
|
init_tools();
|
|
131725
132063
|
args283 = {
|
|
131726
|
-
request:
|
|
132064
|
+
request: GetBrowserSessionUrlRequest$inboundSchema
|
|
131727
132065
|
};
|
|
131728
|
-
tool$
|
|
131729
|
-
name: "sandbox-
|
|
131730
|
-
description: `
|
|
132066
|
+
tool$sandboxGetBrowserUrl = {
|
|
132067
|
+
name: "sandbox-get-browser-url",
|
|
132068
|
+
description: `Get Browser Session URL
|
|
131731
132069
|
|
|
131732
|
-
|
|
132070
|
+
Return the public gateway URL for a browser session's Chrome DevTools Protocol endpoint. Playwright can use this HTTP endpoint directly. For clients that require a WebSocket endpoint, request \`json/version\` and use its rewritten \`webSocketDebuggerUrl\`. Insert subpaths before the query string; for example, use \`/ports/9222/json/version?session_token=...\`. Send the same MKA1 API-key authorization header on the HTTP and WebSocket requests. Standard sessions do not expose a public URL; use the command, code, and workspace operations instead.`,
|
|
131733
132071
|
args: args283,
|
|
131734
132072
|
tool: async (client, args284, ctx) => {
|
|
131735
|
-
const [result, apiCall] = await
|
|
132073
|
+
const [result, apiCall] = await sandboxGetBrowserUrl(client, args284.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
131736
132074
|
if (!result.ok) {
|
|
131737
132075
|
return {
|
|
131738
132076
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -131745,35 +132083,14 @@ Upload a zip archive and extract its files into the session workspace.`,
|
|
|
131745
132083
|
};
|
|
131746
132084
|
});
|
|
131747
132085
|
|
|
131748
|
-
// src/funcs/
|
|
131749
|
-
function
|
|
131750
|
-
return new APIPromise($
|
|
132086
|
+
// src/funcs/sandboxGetPricing.ts
|
|
132087
|
+
function sandboxGetPricing(client, options) {
|
|
132088
|
+
return new APIPromise($do292(client, options));
|
|
131751
132089
|
}
|
|
131752
|
-
async function $
|
|
131753
|
-
const
|
|
131754
|
-
if (!parsed.ok) {
|
|
131755
|
-
return [parsed, { status: "invalid" }];
|
|
131756
|
-
}
|
|
131757
|
-
const payload = parsed.value;
|
|
131758
|
-
const body = payload.RequestBody instanceof Uint8Array ? new Uint8Array(payload.RequestBody).buffer : payload.RequestBody;
|
|
131759
|
-
const pathParams = {
|
|
131760
|
-
file_path: encodeSimple("file_path", payload.file_path, {
|
|
131761
|
-
explode: false,
|
|
131762
|
-
charEncoding: "percent"
|
|
131763
|
-
}),
|
|
131764
|
-
session_id: encodeSimple("session_id", payload.session_id, {
|
|
131765
|
-
explode: false,
|
|
131766
|
-
charEncoding: "percent"
|
|
131767
|
-
})
|
|
131768
|
-
};
|
|
131769
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/files/{file_path}")(pathParams);
|
|
131770
|
-
const query = encodeFormQuery({
|
|
131771
|
-
session_token: payload.session_token
|
|
131772
|
-
});
|
|
132090
|
+
async function $do292(client, options) {
|
|
132091
|
+
const path = pathToFunc("/api/v1/sandbox/pricing")();
|
|
131773
132092
|
const headers = new Headers(compactMap({
|
|
131774
|
-
|
|
131775
|
-
Accept: "application/json",
|
|
131776
|
-
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
132093
|
+
Accept: "application/json"
|
|
131777
132094
|
}));
|
|
131778
132095
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
131779
132096
|
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
@@ -131781,7 +132098,7 @@ async function $do293(client, request, options) {
|
|
|
131781
132098
|
const context = {
|
|
131782
132099
|
options: client._options,
|
|
131783
132100
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
131784
|
-
operationID: "
|
|
132101
|
+
operationID: "getSandboxPricing",
|
|
131785
132102
|
oAuth2Scopes: null,
|
|
131786
132103
|
resolvedSecurity: requestSecurity,
|
|
131787
132104
|
securitySource: client._options.bearerAuth,
|
|
@@ -131799,12 +132116,10 @@ async function $do293(client, request, options) {
|
|
|
131799
132116
|
};
|
|
131800
132117
|
const requestRes = client._createRequest(context, {
|
|
131801
132118
|
security: requestSecurity,
|
|
131802
|
-
method: "
|
|
132119
|
+
method: "GET",
|
|
131803
132120
|
baseURL: options?.serverURL,
|
|
131804
132121
|
path,
|
|
131805
132122
|
headers,
|
|
131806
|
-
query,
|
|
131807
|
-
body,
|
|
131808
132123
|
userAgent: client._options.userAgent,
|
|
131809
132124
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
131810
132125
|
}, options);
|
|
@@ -131822,46 +132137,34 @@ async function $do293(client, request, options) {
|
|
|
131822
132137
|
return [doResult, { status: "request-error", request: req }];
|
|
131823
132138
|
}
|
|
131824
132139
|
const response = doResult.value;
|
|
131825
|
-
const
|
|
131826
|
-
HttpMeta: { Response: response, Request: req }
|
|
131827
|
-
};
|
|
131828
|
-
const [result] = await match(json(200, recordType(stringType())), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
132140
|
+
const [result] = await match(json(200, SandboxPricingCard$inboundSchema), fail("4XX"), fail("5XX"))(response, req);
|
|
131829
132141
|
if (!result.ok) {
|
|
131830
132142
|
return [result, { status: "complete", request: req, response }];
|
|
131831
132143
|
}
|
|
131832
132144
|
return [result, { status: "complete", request: req, response }];
|
|
131833
132145
|
}
|
|
131834
|
-
var
|
|
131835
|
-
init_esm();
|
|
131836
|
-
init_encodings();
|
|
132146
|
+
var init_sandboxGetPricing = __esm(() => {
|
|
131837
132147
|
init_http();
|
|
131838
132148
|
init_matchers();
|
|
131839
132149
|
init_primitives();
|
|
131840
|
-
init_schemas4();
|
|
131841
132150
|
init_security();
|
|
131842
132151
|
init_url();
|
|
131843
|
-
|
|
131844
|
-
init_operations();
|
|
132152
|
+
init_components();
|
|
131845
132153
|
init_async();
|
|
131846
132154
|
});
|
|
131847
132155
|
|
|
131848
|
-
// src/mcp-server/tools/
|
|
131849
|
-
var
|
|
131850
|
-
var
|
|
131851
|
-
|
|
131852
|
-
init_operations();
|
|
132156
|
+
// src/mcp-server/tools/sandboxGetPricing.ts
|
|
132157
|
+
var tool$sandboxGetPricing;
|
|
132158
|
+
var init_sandboxGetPricing2 = __esm(() => {
|
|
132159
|
+
init_sandboxGetPricing();
|
|
131853
132160
|
init_tools();
|
|
131854
|
-
|
|
131855
|
-
|
|
131856
|
-
|
|
131857
|
-
tool$sandboxUploadFile = {
|
|
131858
|
-
name: "sandbox-upload-file",
|
|
131859
|
-
description: `Upload Workspace File
|
|
132161
|
+
tool$sandboxGetPricing = {
|
|
132162
|
+
name: "sandbox-get-pricing",
|
|
132163
|
+
description: `Get Sandbox Pricing
|
|
131860
132164
|
|
|
131861
|
-
|
|
131862
|
-
|
|
131863
|
-
|
|
131864
|
-
const [result, apiCall] = await sandboxUploadFile(client, args285.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
132165
|
+
Current sandbox pricing rate card, keyed by SKU (\`standard\`, \`browser\`, \`eval-python\`). Metered sandbox usage is billed \`hours × (per_hour + reserved_memory_GiB × per_gib_hour)\`; SKUs without a configured rate accrue no spend. Cluster admins only.`,
|
|
132166
|
+
tool: async (client, ctx) => {
|
|
132167
|
+
const [result, apiCall] = await sandboxGetPricing(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
131865
132168
|
if (!result.ok) {
|
|
131866
132169
|
return {
|
|
131867
132170
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -131874,24 +132177,27 @@ Upload raw bytes into the session workspace at the given path.`,
|
|
|
131874
132177
|
};
|
|
131875
132178
|
});
|
|
131876
132179
|
|
|
131877
|
-
// src/funcs/
|
|
131878
|
-
function
|
|
131879
|
-
return new APIPromise($
|
|
132180
|
+
// src/funcs/sandboxGetWorkspace.ts
|
|
132181
|
+
function sandboxGetWorkspace(client, request, options) {
|
|
132182
|
+
return new APIPromise($do293(client, request, options));
|
|
131880
132183
|
}
|
|
131881
|
-
async function $
|
|
131882
|
-
const parsed = safeParse4(request, (value) =>
|
|
132184
|
+
async function $do293(client, request, options) {
|
|
132185
|
+
const parsed = safeParse4(request, (value) => GetWorkspaceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
131883
132186
|
if (!parsed.ok) {
|
|
131884
132187
|
return [parsed, { status: "invalid" }];
|
|
131885
132188
|
}
|
|
131886
132189
|
const payload = parsed.value;
|
|
131887
132190
|
const body = null;
|
|
131888
132191
|
const pathParams = {
|
|
131889
|
-
|
|
132192
|
+
session_id: encodeSimple("session_id", payload.session_id, {
|
|
131890
132193
|
explode: false,
|
|
131891
132194
|
charEncoding: "percent"
|
|
131892
132195
|
})
|
|
131893
132196
|
};
|
|
131894
|
-
const path = pathToFunc("/api/v1/
|
|
132197
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace")(pathParams);
|
|
132198
|
+
const query = encodeFormQuery({
|
|
132199
|
+
session_token: payload.session_token
|
|
132200
|
+
});
|
|
131895
132201
|
const headers = new Headers(compactMap({
|
|
131896
132202
|
Accept: "application/json",
|
|
131897
132203
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
@@ -131902,7 +132208,7 @@ async function $do294(client, request, options) {
|
|
|
131902
132208
|
const context = {
|
|
131903
132209
|
options: client._options,
|
|
131904
132210
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
131905
|
-
operationID: "
|
|
132211
|
+
operationID: "getWorkspace",
|
|
131906
132212
|
oAuth2Scopes: null,
|
|
131907
132213
|
resolvedSecurity: requestSecurity,
|
|
131908
132214
|
securitySource: client._options.bearerAuth,
|
|
@@ -131924,6 +132230,7 @@ async function $do294(client, request, options) {
|
|
|
131924
132230
|
baseURL: options?.serverURL,
|
|
131925
132231
|
path,
|
|
131926
132232
|
headers,
|
|
132233
|
+
query,
|
|
131927
132234
|
body,
|
|
131928
132235
|
userAgent: client._options.userAgent,
|
|
131929
132236
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -131945,13 +132252,13 @@ async function $do294(client, request, options) {
|
|
|
131945
132252
|
const responseFields = {
|
|
131946
132253
|
HttpMeta: { Response: response, Request: req }
|
|
131947
132254
|
};
|
|
131948
|
-
const [result] = await match(json(200,
|
|
132255
|
+
const [result] = await match(json(200, WorkspaceManifest$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
131949
132256
|
if (!result.ok) {
|
|
131950
132257
|
return [result, { status: "complete", request: req, response }];
|
|
131951
132258
|
}
|
|
131952
132259
|
return [result, { status: "complete", request: req, response }];
|
|
131953
132260
|
}
|
|
131954
|
-
var
|
|
132261
|
+
var init_sandboxGetWorkspace = __esm(() => {
|
|
131955
132262
|
init_encodings();
|
|
131956
132263
|
init_http();
|
|
131957
132264
|
init_matchers();
|
|
@@ -131965,23 +132272,23 @@ var init_servingAcceleratorsGet = __esm(() => {
|
|
|
131965
132272
|
init_async();
|
|
131966
132273
|
});
|
|
131967
132274
|
|
|
131968
|
-
// src/mcp-server/tools/
|
|
131969
|
-
var
|
|
131970
|
-
var
|
|
131971
|
-
|
|
132275
|
+
// src/mcp-server/tools/sandboxGetWorkspace.ts
|
|
132276
|
+
var args284, tool$sandboxGetWorkspace;
|
|
132277
|
+
var init_sandboxGetWorkspace2 = __esm(() => {
|
|
132278
|
+
init_sandboxGetWorkspace();
|
|
131972
132279
|
init_operations();
|
|
131973
132280
|
init_tools();
|
|
131974
|
-
|
|
131975
|
-
request:
|
|
132281
|
+
args284 = {
|
|
132282
|
+
request: GetWorkspaceRequest$inboundSchema
|
|
131976
132283
|
};
|
|
131977
|
-
tool$
|
|
131978
|
-
name: "
|
|
131979
|
-
description: `Get
|
|
132284
|
+
tool$sandboxGetWorkspace = {
|
|
132285
|
+
name: "sandbox-get-workspace",
|
|
132286
|
+
description: `Get Workspace Manifest
|
|
131980
132287
|
|
|
131981
|
-
|
|
131982
|
-
args:
|
|
131983
|
-
tool: async (client,
|
|
131984
|
-
const [result, apiCall] = await
|
|
132288
|
+
List files currently stored in the session workspace, including paths, sizes, and etags.`,
|
|
132289
|
+
args: args284,
|
|
132290
|
+
tool: async (client, args285, ctx) => {
|
|
132291
|
+
const [result, apiCall] = await sandboxGetWorkspace(client, args285.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
131985
132292
|
if (!result.ok) {
|
|
131986
132293
|
return {
|
|
131987
132294
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -131994,18 +132301,18 @@ Retrieve one accelerator type from the curated catalog, including its workload a
|
|
|
131994
132301
|
};
|
|
131995
132302
|
});
|
|
131996
132303
|
|
|
131997
|
-
// src/funcs/
|
|
131998
|
-
function
|
|
131999
|
-
return new APIPromise($
|
|
132304
|
+
// src/funcs/sandboxList.ts
|
|
132305
|
+
function sandboxList(client, request, options) {
|
|
132306
|
+
return new APIPromise($do294(client, request, options));
|
|
132000
132307
|
}
|
|
132001
|
-
async function $
|
|
132002
|
-
const parsed = safeParse4(request, (value) =>
|
|
132308
|
+
async function $do294(client, request, options) {
|
|
132309
|
+
const parsed = safeParse4(request, (value) => ListSessionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
132003
132310
|
if (!parsed.ok) {
|
|
132004
132311
|
return [parsed, { status: "invalid" }];
|
|
132005
132312
|
}
|
|
132006
132313
|
const payload = parsed.value;
|
|
132007
132314
|
const body = null;
|
|
132008
|
-
const path = pathToFunc("/api/v1/
|
|
132315
|
+
const path = pathToFunc("/api/v1/sandbox/sessions")();
|
|
132009
132316
|
const headers = new Headers(compactMap({
|
|
132010
132317
|
Accept: "application/json",
|
|
132011
132318
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
@@ -132016,7 +132323,7 @@ async function $do295(client, request, options) {
|
|
|
132016
132323
|
const context = {
|
|
132017
132324
|
options: client._options,
|
|
132018
132325
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
132019
|
-
operationID: "
|
|
132326
|
+
operationID: "listSessions",
|
|
132020
132327
|
oAuth2Scopes: null,
|
|
132021
132328
|
resolvedSecurity: requestSecurity,
|
|
132022
132329
|
securitySource: client._options.bearerAuth,
|
|
@@ -132059,13 +132366,14 @@ async function $do295(client, request, options) {
|
|
|
132059
132366
|
const responseFields = {
|
|
132060
132367
|
HttpMeta: { Response: response, Request: req }
|
|
132061
132368
|
};
|
|
132062
|
-
const [result] = await match(json(200,
|
|
132369
|
+
const [result] = await match(json(200, arrayType(SessionRecord$inboundSchema)), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
132063
132370
|
if (!result.ok) {
|
|
132064
132371
|
return [result, { status: "complete", request: req, response }];
|
|
132065
132372
|
}
|
|
132066
132373
|
return [result, { status: "complete", request: req, response }];
|
|
132067
132374
|
}
|
|
132068
|
-
var
|
|
132375
|
+
var init_sandboxList = __esm(() => {
|
|
132376
|
+
init_esm();
|
|
132069
132377
|
init_encodings();
|
|
132070
132378
|
init_http();
|
|
132071
132379
|
init_matchers();
|
|
@@ -132079,23 +132387,23 @@ var init_servingAcceleratorsList = __esm(() => {
|
|
|
132079
132387
|
init_async();
|
|
132080
132388
|
});
|
|
132081
132389
|
|
|
132082
|
-
// src/mcp-server/tools/
|
|
132083
|
-
var
|
|
132084
|
-
var
|
|
132085
|
-
|
|
132390
|
+
// src/mcp-server/tools/sandboxList.ts
|
|
132391
|
+
var args285, tool$sandboxList;
|
|
132392
|
+
var init_sandboxList2 = __esm(() => {
|
|
132393
|
+
init_sandboxList();
|
|
132086
132394
|
init_operations();
|
|
132087
132395
|
init_tools();
|
|
132088
|
-
|
|
132089
|
-
request:
|
|
132396
|
+
args285 = {
|
|
132397
|
+
request: ListSessionsRequest$inboundSchema
|
|
132090
132398
|
};
|
|
132091
|
-
tool$
|
|
132092
|
-
name: "
|
|
132093
|
-
description: `List
|
|
132399
|
+
tool$sandboxList = {
|
|
132400
|
+
name: "sandbox-list",
|
|
132401
|
+
description: `List Sessions
|
|
132094
132402
|
|
|
132095
|
-
List
|
|
132096
|
-
args:
|
|
132097
|
-
tool: async (client,
|
|
132098
|
-
const [result, apiCall] = await
|
|
132403
|
+
List sandbox sessions visible to the authenticated caller.`,
|
|
132404
|
+
args: args285,
|
|
132405
|
+
tool: async (client, args286, ctx) => {
|
|
132406
|
+
const [result, apiCall] = await sandboxList(client, args286.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
132099
132407
|
if (!result.ok) {
|
|
132100
132408
|
return {
|
|
132101
132409
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -132108,20 +132416,36 @@ List the accelerator types available to your organization (GPU, NPU, TPU).`,
|
|
|
132108
132416
|
};
|
|
132109
132417
|
});
|
|
132110
132418
|
|
|
132111
|
-
// src/funcs/
|
|
132112
|
-
function
|
|
132113
|
-
return new APIPromise($
|
|
132419
|
+
// src/funcs/sandboxProxyBrowserPortRequest.ts
|
|
132420
|
+
function sandboxProxyBrowserPortRequest(client, request, options) {
|
|
132421
|
+
return new APIPromise($do295(client, request, options));
|
|
132114
132422
|
}
|
|
132115
|
-
async function $
|
|
132116
|
-
const parsed = safeParse4(request, (value) =>
|
|
132423
|
+
async function $do295(client, request, options) {
|
|
132424
|
+
const parsed = safeParse4(request, (value) => ProxyBrowserPortRequestRequest$outboundSchema.parse(value), "Input validation failed");
|
|
132117
132425
|
if (!parsed.ok) {
|
|
132118
132426
|
return [parsed, { status: "invalid" }];
|
|
132119
132427
|
}
|
|
132120
132428
|
const payload = parsed.value;
|
|
132121
|
-
const body =
|
|
132122
|
-
const
|
|
132429
|
+
const body = null;
|
|
132430
|
+
const pathParams = {
|
|
132431
|
+
port: encodeSimple("port", payload.port, {
|
|
132432
|
+
explode: false,
|
|
132433
|
+
charEncoding: "percent"
|
|
132434
|
+
}),
|
|
132435
|
+
session_id: encodeSimple("session_id", payload.session_id, {
|
|
132436
|
+
explode: false,
|
|
132437
|
+
charEncoding: "percent"
|
|
132438
|
+
}),
|
|
132439
|
+
subpath: encodeSimple("subpath", payload.subpath, {
|
|
132440
|
+
explode: false,
|
|
132441
|
+
charEncoding: "percent"
|
|
132442
|
+
})
|
|
132443
|
+
};
|
|
132444
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/ports/{port}/{subpath}")(pathParams);
|
|
132445
|
+
const query = encodeFormQuery({
|
|
132446
|
+
session_token: payload.session_token
|
|
132447
|
+
});
|
|
132123
132448
|
const headers = new Headers(compactMap({
|
|
132124
|
-
"Content-Type": "application/json",
|
|
132125
132449
|
Accept: "application/json",
|
|
132126
132450
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
132127
132451
|
}));
|
|
@@ -132131,7 +132455,7 @@ async function $do296(client, request, options) {
|
|
|
132131
132455
|
const context = {
|
|
132132
132456
|
options: client._options,
|
|
132133
132457
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
132134
|
-
operationID: "
|
|
132458
|
+
operationID: "proxyBrowserPortRequest",
|
|
132135
132459
|
oAuth2Scopes: null,
|
|
132136
132460
|
resolvedSecurity: requestSecurity,
|
|
132137
132461
|
securitySource: client._options.bearerAuth,
|
|
@@ -132149,10 +132473,11 @@ async function $do296(client, request, options) {
|
|
|
132149
132473
|
};
|
|
132150
132474
|
const requestRes = client._createRequest(context, {
|
|
132151
132475
|
security: requestSecurity,
|
|
132152
|
-
method: "
|
|
132476
|
+
method: "GET",
|
|
132153
132477
|
baseURL: options?.serverURL,
|
|
132154
132478
|
path,
|
|
132155
132479
|
headers,
|
|
132480
|
+
query,
|
|
132156
132481
|
body,
|
|
132157
132482
|
userAgent: client._options.userAgent,
|
|
132158
132483
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -132174,13 +132499,14 @@ async function $do296(client, request, options) {
|
|
|
132174
132499
|
const responseFields = {
|
|
132175
132500
|
HttpMeta: { Response: response, Request: req }
|
|
132176
132501
|
};
|
|
132177
|
-
const [result] = await match(json(
|
|
132502
|
+
const [result] = await match(json(200, anyType()), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
132178
132503
|
if (!result.ok) {
|
|
132179
132504
|
return [result, { status: "complete", request: req, response }];
|
|
132180
132505
|
}
|
|
132181
132506
|
return [result, { status: "complete", request: req, response }];
|
|
132182
132507
|
}
|
|
132183
|
-
var
|
|
132508
|
+
var init_sandboxProxyBrowserPortRequest = __esm(() => {
|
|
132509
|
+
init_esm();
|
|
132184
132510
|
init_encodings();
|
|
132185
132511
|
init_http();
|
|
132186
132512
|
init_matchers();
|
|
@@ -132188,29 +132514,28 @@ var init_servingSecretsCreate = __esm(() => {
|
|
|
132188
132514
|
init_schemas4();
|
|
132189
132515
|
init_security();
|
|
132190
132516
|
init_url();
|
|
132191
|
-
init_components();
|
|
132192
132517
|
init_errors4();
|
|
132193
132518
|
init_operations();
|
|
132194
132519
|
init_async();
|
|
132195
132520
|
});
|
|
132196
132521
|
|
|
132197
|
-
// src/mcp-server/tools/
|
|
132198
|
-
var
|
|
132199
|
-
var
|
|
132200
|
-
|
|
132522
|
+
// src/mcp-server/tools/sandboxProxyBrowserPortRequest.ts
|
|
132523
|
+
var args286, tool$sandboxProxyBrowserPortRequest;
|
|
132524
|
+
var init_sandboxProxyBrowserPortRequest2 = __esm(() => {
|
|
132525
|
+
init_sandboxProxyBrowserPortRequest();
|
|
132201
132526
|
init_operations();
|
|
132202
132527
|
init_tools();
|
|
132203
|
-
|
|
132204
|
-
request:
|
|
132528
|
+
args286 = {
|
|
132529
|
+
request: ProxyBrowserPortRequestRequest$inboundSchema
|
|
132205
132530
|
};
|
|
132206
|
-
tool$
|
|
132207
|
-
name: "
|
|
132208
|
-
description: `
|
|
132531
|
+
tool$sandboxProxyBrowserPortRequest = {
|
|
132532
|
+
name: "sandbox-proxy-browser-port-request",
|
|
132533
|
+
description: `Proxy Browser Port Request
|
|
132209
132534
|
|
|
132210
|
-
|
|
132211
|
-
args:
|
|
132212
|
-
tool: async (client,
|
|
132213
|
-
const [result, apiCall] = await
|
|
132535
|
+
Proxy an HTTP request to an exposed browser-session port through the gateway. Use the URL returned by \`GET /sessions/{session_id}/browser-url\` as the base. Insert CDP subpaths such as \`json/version\` or \`json/list\` before its query string, preserving the \`session_token\` parameter. This low-level proxy is intended for browser sessions on port \`9222\` and still requires the normal MKA1 API-key authorization header.`,
|
|
132536
|
+
args: args286,
|
|
132537
|
+
tool: async (client, args287, ctx) => {
|
|
132538
|
+
const [result, apiCall] = await sandboxProxyBrowserPortRequest(client, args287.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
132214
132539
|
if (!result.ok) {
|
|
132215
132540
|
return {
|
|
132216
132541
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -132223,25 +132548,26 @@ Create a secret whose values are injected into your workloads as env vars.`,
|
|
|
132223
132548
|
};
|
|
132224
132549
|
});
|
|
132225
132550
|
|
|
132226
|
-
// src/funcs/
|
|
132227
|
-
function
|
|
132228
|
-
return new APIPromise($
|
|
132551
|
+
// src/funcs/sandboxRunCode.ts
|
|
132552
|
+
function sandboxRunCode(client, request, options) {
|
|
132553
|
+
return new APIPromise($do296(client, request, options));
|
|
132229
132554
|
}
|
|
132230
|
-
async function $
|
|
132231
|
-
const parsed = safeParse4(request, (value) =>
|
|
132555
|
+
async function $do296(client, request, options) {
|
|
132556
|
+
const parsed = safeParse4(request, (value) => RunCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
132232
132557
|
if (!parsed.ok) {
|
|
132233
132558
|
return [parsed, { status: "invalid" }];
|
|
132234
132559
|
}
|
|
132235
132560
|
const payload = parsed.value;
|
|
132236
|
-
const body =
|
|
132561
|
+
const body = encodeJSON("body", payload.CodeRequest, { explode: true });
|
|
132237
132562
|
const pathParams = {
|
|
132238
|
-
|
|
132563
|
+
session_id: encodeSimple("session_id", payload.session_id, {
|
|
132239
132564
|
explode: false,
|
|
132240
132565
|
charEncoding: "percent"
|
|
132241
132566
|
})
|
|
132242
132567
|
};
|
|
132243
|
-
const path = pathToFunc("/api/v1/
|
|
132568
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/code")(pathParams);
|
|
132244
132569
|
const headers = new Headers(compactMap({
|
|
132570
|
+
"Content-Type": "application/json",
|
|
132245
132571
|
Accept: "application/json",
|
|
132246
132572
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
132247
132573
|
}));
|
|
@@ -132251,7 +132577,7 @@ async function $do297(client, request, options) {
|
|
|
132251
132577
|
const context = {
|
|
132252
132578
|
options: client._options,
|
|
132253
132579
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
132254
|
-
operationID: "
|
|
132580
|
+
operationID: "runCode",
|
|
132255
132581
|
oAuth2Scopes: null,
|
|
132256
132582
|
resolvedSecurity: requestSecurity,
|
|
132257
132583
|
securitySource: client._options.bearerAuth,
|
|
@@ -132269,7 +132595,7 @@ async function $do297(client, request, options) {
|
|
|
132269
132595
|
};
|
|
132270
132596
|
const requestRes = client._createRequest(context, {
|
|
132271
132597
|
security: requestSecurity,
|
|
132272
|
-
method: "
|
|
132598
|
+
method: "POST",
|
|
132273
132599
|
baseURL: options?.serverURL,
|
|
132274
132600
|
path,
|
|
132275
132601
|
headers,
|
|
@@ -132294,14 +132620,13 @@ async function $do297(client, request, options) {
|
|
|
132294
132620
|
const responseFields = {
|
|
132295
132621
|
HttpMeta: { Response: response, Request: req }
|
|
132296
132622
|
};
|
|
132297
|
-
const [result] = await match(
|
|
132623
|
+
const [result] = await match(json(200, CodeResult$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
132298
132624
|
if (!result.ok) {
|
|
132299
132625
|
return [result, { status: "complete", request: req, response }];
|
|
132300
132626
|
}
|
|
132301
132627
|
return [result, { status: "complete", request: req, response }];
|
|
132302
132628
|
}
|
|
132303
|
-
var
|
|
132304
|
-
init_esm();
|
|
132629
|
+
var init_sandboxRunCode = __esm(() => {
|
|
132305
132630
|
init_encodings();
|
|
132306
132631
|
init_http();
|
|
132307
132632
|
init_matchers();
|
|
@@ -132309,58 +132634,61 @@ var init_servingSecretsDelete = __esm(() => {
|
|
|
132309
132634
|
init_schemas4();
|
|
132310
132635
|
init_security();
|
|
132311
132636
|
init_url();
|
|
132637
|
+
init_components();
|
|
132312
132638
|
init_errors4();
|
|
132313
132639
|
init_operations();
|
|
132314
132640
|
init_async();
|
|
132315
132641
|
});
|
|
132316
132642
|
|
|
132317
|
-
// src/mcp-server/tools/
|
|
132318
|
-
var
|
|
132319
|
-
var
|
|
132320
|
-
|
|
132643
|
+
// src/mcp-server/tools/sandboxRunCode.ts
|
|
132644
|
+
var args287, tool$sandboxRunCode;
|
|
132645
|
+
var init_sandboxRunCode2 = __esm(() => {
|
|
132646
|
+
init_sandboxRunCode();
|
|
132321
132647
|
init_operations();
|
|
132322
132648
|
init_tools();
|
|
132323
|
-
|
|
132324
|
-
request:
|
|
132649
|
+
args287 = {
|
|
132650
|
+
request: RunCodeRequest$inboundSchema
|
|
132325
132651
|
};
|
|
132326
|
-
tool$
|
|
132327
|
-
name: "
|
|
132328
|
-
description: `
|
|
132652
|
+
tool$sandboxRunCode = {
|
|
132653
|
+
name: "sandbox-run-code",
|
|
132654
|
+
description: `Run Code
|
|
132329
132655
|
|
|
132330
|
-
|
|
132331
|
-
args:
|
|
132332
|
-
tool: async (client,
|
|
132333
|
-
const [result, apiCall] = await
|
|
132656
|
+
Execute source code in the session workspace using a supported runtime and return the execution result.`,
|
|
132657
|
+
args: args287,
|
|
132658
|
+
tool: async (client, args288, ctx) => {
|
|
132659
|
+
const [result, apiCall] = await sandboxRunCode(client, args288.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
132334
132660
|
if (!result.ok) {
|
|
132335
132661
|
return {
|
|
132336
132662
|
content: [{ type: "text", text: result.error.message }],
|
|
132337
132663
|
isError: true
|
|
132338
132664
|
};
|
|
132339
132665
|
}
|
|
132340
|
-
|
|
132666
|
+
const value = result.value;
|
|
132667
|
+
return formatResult(value, apiCall);
|
|
132341
132668
|
}
|
|
132342
132669
|
};
|
|
132343
132670
|
});
|
|
132344
132671
|
|
|
132345
|
-
// src/funcs/
|
|
132346
|
-
function
|
|
132347
|
-
return new APIPromise($
|
|
132672
|
+
// src/funcs/sandboxRunCommand.ts
|
|
132673
|
+
function sandboxRunCommand(client, request, options) {
|
|
132674
|
+
return new APIPromise($do297(client, request, options));
|
|
132348
132675
|
}
|
|
132349
|
-
async function $
|
|
132350
|
-
const parsed = safeParse4(request, (value) =>
|
|
132676
|
+
async function $do297(client, request, options) {
|
|
132677
|
+
const parsed = safeParse4(request, (value) => RunCommandRequest$outboundSchema.parse(value), "Input validation failed");
|
|
132351
132678
|
if (!parsed.ok) {
|
|
132352
132679
|
return [parsed, { status: "invalid" }];
|
|
132353
132680
|
}
|
|
132354
132681
|
const payload = parsed.value;
|
|
132355
|
-
const body =
|
|
132682
|
+
const body = encodeJSON("body", payload.CommandRequest, { explode: true });
|
|
132356
132683
|
const pathParams = {
|
|
132357
|
-
|
|
132684
|
+
session_id: encodeSimple("session_id", payload.session_id, {
|
|
132358
132685
|
explode: false,
|
|
132359
132686
|
charEncoding: "percent"
|
|
132360
132687
|
})
|
|
132361
132688
|
};
|
|
132362
|
-
const path = pathToFunc("/api/v1/
|
|
132689
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/commands")(pathParams);
|
|
132363
132690
|
const headers = new Headers(compactMap({
|
|
132691
|
+
"Content-Type": "application/json",
|
|
132364
132692
|
Accept: "application/json",
|
|
132365
132693
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
132366
132694
|
}));
|
|
@@ -132370,7 +132698,7 @@ async function $do298(client, request, options) {
|
|
|
132370
132698
|
const context = {
|
|
132371
132699
|
options: client._options,
|
|
132372
132700
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
132373
|
-
operationID: "
|
|
132701
|
+
operationID: "runCommand",
|
|
132374
132702
|
oAuth2Scopes: null,
|
|
132375
132703
|
resolvedSecurity: requestSecurity,
|
|
132376
132704
|
securitySource: client._options.bearerAuth,
|
|
@@ -132388,7 +132716,7 @@ async function $do298(client, request, options) {
|
|
|
132388
132716
|
};
|
|
132389
132717
|
const requestRes = client._createRequest(context, {
|
|
132390
132718
|
security: requestSecurity,
|
|
132391
|
-
method: "
|
|
132719
|
+
method: "POST",
|
|
132392
132720
|
baseURL: options?.serverURL,
|
|
132393
132721
|
path,
|
|
132394
132722
|
headers,
|
|
@@ -132413,13 +132741,13 @@ async function $do298(client, request, options) {
|
|
|
132413
132741
|
const responseFields = {
|
|
132414
132742
|
HttpMeta: { Response: response, Request: req }
|
|
132415
132743
|
};
|
|
132416
|
-
const [result] = await match(json(200,
|
|
132744
|
+
const [result] = await match(json(200, CommandResult$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
132417
132745
|
if (!result.ok) {
|
|
132418
132746
|
return [result, { status: "complete", request: req, response }];
|
|
132419
132747
|
}
|
|
132420
132748
|
return [result, { status: "complete", request: req, response }];
|
|
132421
132749
|
}
|
|
132422
|
-
var
|
|
132750
|
+
var init_sandboxRunCommand = __esm(() => {
|
|
132423
132751
|
init_encodings();
|
|
132424
132752
|
init_http();
|
|
132425
132753
|
init_matchers();
|
|
@@ -132433,23 +132761,23 @@ var init_servingSecretsGet = __esm(() => {
|
|
|
132433
132761
|
init_async();
|
|
132434
132762
|
});
|
|
132435
132763
|
|
|
132436
|
-
// src/mcp-server/tools/
|
|
132437
|
-
var
|
|
132438
|
-
var
|
|
132439
|
-
|
|
132764
|
+
// src/mcp-server/tools/sandboxRunCommand.ts
|
|
132765
|
+
var args288, tool$sandboxRunCommand;
|
|
132766
|
+
var init_sandboxRunCommand2 = __esm(() => {
|
|
132767
|
+
init_sandboxRunCommand();
|
|
132440
132768
|
init_operations();
|
|
132441
132769
|
init_tools();
|
|
132442
|
-
|
|
132443
|
-
request:
|
|
132770
|
+
args288 = {
|
|
132771
|
+
request: RunCommandRequest$inboundSchema
|
|
132444
132772
|
};
|
|
132445
|
-
tool$
|
|
132446
|
-
name: "
|
|
132447
|
-
description: `
|
|
132773
|
+
tool$sandboxRunCommand = {
|
|
132774
|
+
name: "sandbox-run-command",
|
|
132775
|
+
description: `Run Command
|
|
132448
132776
|
|
|
132449
|
-
|
|
132450
|
-
args:
|
|
132451
|
-
tool: async (client,
|
|
132452
|
-
const [result, apiCall] = await
|
|
132777
|
+
Run a command in the session workspace and return stdout, stderr, exit code, and changed files.`,
|
|
132778
|
+
args: args288,
|
|
132779
|
+
tool: async (client, args289, ctx) => {
|
|
132780
|
+
const [result, apiCall] = await sandboxRunCommand(client, args289.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
132453
132781
|
if (!result.ok) {
|
|
132454
132782
|
return {
|
|
132455
132783
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -132462,25 +132790,21 @@ Retrieve secret metadata: key names and allowed use. Values are never returned.`
|
|
|
132462
132790
|
};
|
|
132463
132791
|
});
|
|
132464
132792
|
|
|
132465
|
-
// src/funcs/
|
|
132466
|
-
function
|
|
132467
|
-
return new APIPromise($
|
|
132793
|
+
// src/funcs/sandboxSetPricing.ts
|
|
132794
|
+
function sandboxSetPricing(client, request, options) {
|
|
132795
|
+
return new APIPromise($do298(client, request, options));
|
|
132468
132796
|
}
|
|
132469
|
-
async function $
|
|
132470
|
-
const parsed = safeParse4(request, (value) =>
|
|
132797
|
+
async function $do298(client, request, options) {
|
|
132798
|
+
const parsed = safeParse4(request, (value) => SandboxPricingUpdate$outboundSchema.parse(value), "Input validation failed");
|
|
132471
132799
|
if (!parsed.ok) {
|
|
132472
132800
|
return [parsed, { status: "invalid" }];
|
|
132473
132801
|
}
|
|
132474
132802
|
const payload = parsed.value;
|
|
132475
|
-
const body =
|
|
132476
|
-
const path = pathToFunc("/api/v1/
|
|
132477
|
-
const query = encodeFormQuery({
|
|
132478
|
-
cursor: payload.cursor,
|
|
132479
|
-
limit: payload.limit
|
|
132480
|
-
});
|
|
132803
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
132804
|
+
const path = pathToFunc("/api/v1/sandbox/pricing")();
|
|
132481
132805
|
const headers = new Headers(compactMap({
|
|
132482
|
-
|
|
132483
|
-
|
|
132806
|
+
"Content-Type": "application/json",
|
|
132807
|
+
Accept: "application/json"
|
|
132484
132808
|
}));
|
|
132485
132809
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
132486
132810
|
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
@@ -132488,7 +132812,7 @@ async function $do299(client, request, options) {
|
|
|
132488
132812
|
const context = {
|
|
132489
132813
|
options: client._options,
|
|
132490
132814
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
132491
|
-
operationID: "
|
|
132815
|
+
operationID: "setSandboxPricing",
|
|
132492
132816
|
oAuth2Scopes: null,
|
|
132493
132817
|
resolvedSecurity: requestSecurity,
|
|
132494
132818
|
securitySource: client._options.bearerAuth,
|
|
@@ -132506,11 +132830,10 @@ async function $do299(client, request, options) {
|
|
|
132506
132830
|
};
|
|
132507
132831
|
const requestRes = client._createRequest(context, {
|
|
132508
132832
|
security: requestSecurity,
|
|
132509
|
-
method: "
|
|
132833
|
+
method: "PUT",
|
|
132510
132834
|
baseURL: options?.serverURL,
|
|
132511
132835
|
path,
|
|
132512
132836
|
headers,
|
|
132513
|
-
query,
|
|
132514
132837
|
body,
|
|
132515
132838
|
userAgent: client._options.userAgent,
|
|
132516
132839
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -132532,13 +132855,13 @@ async function $do299(client, request, options) {
|
|
|
132532
132855
|
const responseFields = {
|
|
132533
132856
|
HttpMeta: { Response: response, Request: req }
|
|
132534
132857
|
};
|
|
132535
|
-
const [result] = await match(json(200,
|
|
132858
|
+
const [result] = await match(json(200, SandboxPricingCard$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
132536
132859
|
if (!result.ok) {
|
|
132537
132860
|
return [result, { status: "complete", request: req, response }];
|
|
132538
132861
|
}
|
|
132539
132862
|
return [result, { status: "complete", request: req, response }];
|
|
132540
132863
|
}
|
|
132541
|
-
var
|
|
132864
|
+
var init_sandboxSetPricing = __esm(() => {
|
|
132542
132865
|
init_encodings();
|
|
132543
132866
|
init_http();
|
|
132544
132867
|
init_matchers();
|
|
@@ -132548,27 +132871,26 @@ var init_servingSecretsList = __esm(() => {
|
|
|
132548
132871
|
init_url();
|
|
132549
132872
|
init_components();
|
|
132550
132873
|
init_errors4();
|
|
132551
|
-
init_operations();
|
|
132552
132874
|
init_async();
|
|
132553
132875
|
});
|
|
132554
132876
|
|
|
132555
|
-
// src/mcp-server/tools/
|
|
132556
|
-
var
|
|
132557
|
-
var
|
|
132558
|
-
|
|
132559
|
-
|
|
132877
|
+
// src/mcp-server/tools/sandboxSetPricing.ts
|
|
132878
|
+
var args289, tool$sandboxSetPricing;
|
|
132879
|
+
var init_sandboxSetPricing2 = __esm(() => {
|
|
132880
|
+
init_sandboxSetPricing();
|
|
132881
|
+
init_components();
|
|
132560
132882
|
init_tools();
|
|
132561
|
-
|
|
132562
|
-
request:
|
|
132883
|
+
args289 = {
|
|
132884
|
+
request: SandboxPricingUpdate$inboundSchema
|
|
132563
132885
|
};
|
|
132564
|
-
tool$
|
|
132565
|
-
name: "
|
|
132566
|
-
description: `
|
|
132886
|
+
tool$sandboxSetPricing = {
|
|
132887
|
+
name: "sandbox-set-pricing",
|
|
132888
|
+
description: `Set Sandbox Pricing
|
|
132567
132889
|
|
|
132568
|
-
|
|
132569
|
-
args:
|
|
132570
|
-
tool: async (client,
|
|
132571
|
-
const [result, apiCall] = await
|
|
132890
|
+
Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.`,
|
|
132891
|
+
args: args289,
|
|
132892
|
+
tool: async (client, args290, ctx) => {
|
|
132893
|
+
const [result, apiCall] = await sandboxSetPricing(client, args290.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
132572
132894
|
if (!result.ok) {
|
|
132573
132895
|
return {
|
|
132574
132896
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -132581,23 +132903,28 @@ List your secrets by name (values are never returned).`,
|
|
|
132581
132903
|
};
|
|
132582
132904
|
});
|
|
132583
132905
|
|
|
132584
|
-
// src/funcs/
|
|
132585
|
-
function
|
|
132586
|
-
return new APIPromise($
|
|
132906
|
+
// src/funcs/sandboxTerminate.ts
|
|
132907
|
+
function sandboxTerminate(client, request, options) {
|
|
132908
|
+
return new APIPromise($do299(client, request, options));
|
|
132587
132909
|
}
|
|
132588
|
-
async function $
|
|
132589
|
-
const parsed = safeParse4(request, (value) =>
|
|
132910
|
+
async function $do299(client, request, options) {
|
|
132911
|
+
const parsed = safeParse4(request, (value) => TerminateSessionRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
132590
132912
|
if (!parsed.ok) {
|
|
132591
132913
|
return [parsed, { status: "invalid" }];
|
|
132592
132914
|
}
|
|
132593
132915
|
const payload = parsed.value;
|
|
132594
|
-
const body =
|
|
132595
|
-
|
|
132596
|
-
const query = encodeFormQuery({
|
|
132597
|
-
end: payload.end,
|
|
132598
|
-
start: payload.start
|
|
132916
|
+
const body = encodeJSON("body", payload.TerminateSessionRequest, {
|
|
132917
|
+
explode: true
|
|
132599
132918
|
});
|
|
132919
|
+
const pathParams = {
|
|
132920
|
+
session_id: encodeSimple("session_id", payload.session_id, {
|
|
132921
|
+
explode: false,
|
|
132922
|
+
charEncoding: "percent"
|
|
132923
|
+
})
|
|
132924
|
+
};
|
|
132925
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/terminate")(pathParams);
|
|
132600
132926
|
const headers = new Headers(compactMap({
|
|
132927
|
+
"Content-Type": "application/json",
|
|
132601
132928
|
Accept: "application/json",
|
|
132602
132929
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
132603
132930
|
}));
|
|
@@ -132607,7 +132934,7 @@ async function $do300(client, request, options) {
|
|
|
132607
132934
|
const context = {
|
|
132608
132935
|
options: client._options,
|
|
132609
132936
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
132610
|
-
operationID: "
|
|
132937
|
+
operationID: "terminateSession",
|
|
132611
132938
|
oAuth2Scopes: null,
|
|
132612
132939
|
resolvedSecurity: requestSecurity,
|
|
132613
132940
|
securitySource: client._options.bearerAuth,
|
|
@@ -132625,11 +132952,10 @@ async function $do300(client, request, options) {
|
|
|
132625
132952
|
};
|
|
132626
132953
|
const requestRes = client._createRequest(context, {
|
|
132627
132954
|
security: requestSecurity,
|
|
132628
|
-
method: "
|
|
132955
|
+
method: "POST",
|
|
132629
132956
|
baseURL: options?.serverURL,
|
|
132630
132957
|
path,
|
|
132631
132958
|
headers,
|
|
132632
|
-
query,
|
|
132633
132959
|
body,
|
|
132634
132960
|
userAgent: client._options.userAgent,
|
|
132635
132961
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -132651,13 +132977,13 @@ async function $do300(client, request, options) {
|
|
|
132651
132977
|
const responseFields = {
|
|
132652
132978
|
HttpMeta: { Response: response, Request: req }
|
|
132653
132979
|
};
|
|
132654
|
-
const [result] = await match(json(200,
|
|
132980
|
+
const [result] = await match(json(200, TerminateSessionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
132655
132981
|
if (!result.ok) {
|
|
132656
132982
|
return [result, { status: "complete", request: req, response }];
|
|
132657
132983
|
}
|
|
132658
132984
|
return [result, { status: "complete", request: req, response }];
|
|
132659
132985
|
}
|
|
132660
|
-
var
|
|
132986
|
+
var init_sandboxTerminate = __esm(() => {
|
|
132661
132987
|
init_encodings();
|
|
132662
132988
|
init_http();
|
|
132663
132989
|
init_matchers();
|
|
@@ -132671,23 +132997,23 @@ var init_servingSpendGet = __esm(() => {
|
|
|
132671
132997
|
init_async();
|
|
132672
132998
|
});
|
|
132673
132999
|
|
|
132674
|
-
// src/mcp-server/tools/
|
|
132675
|
-
var
|
|
132676
|
-
var
|
|
132677
|
-
|
|
133000
|
+
// src/mcp-server/tools/sandboxTerminate.ts
|
|
133001
|
+
var args290, tool$sandboxTerminate;
|
|
133002
|
+
var init_sandboxTerminate2 = __esm(() => {
|
|
133003
|
+
init_sandboxTerminate();
|
|
132678
133004
|
init_operations();
|
|
132679
133005
|
init_tools();
|
|
132680
|
-
|
|
132681
|
-
request:
|
|
133006
|
+
args290 = {
|
|
133007
|
+
request: TerminateSessionRequest$inboundSchema2
|
|
132682
133008
|
};
|
|
132683
|
-
tool$
|
|
132684
|
-
name: "
|
|
132685
|
-
description: `
|
|
133009
|
+
tool$sandboxTerminate = {
|
|
133010
|
+
name: "sandbox-terminate",
|
|
133011
|
+
description: `Terminate Session
|
|
132686
133012
|
|
|
132687
|
-
|
|
132688
|
-
args:
|
|
132689
|
-
tool: async (client,
|
|
132690
|
-
const [result, apiCall] = await
|
|
133013
|
+
Stop a sandbox session and release the backing sandbox resources.`,
|
|
133014
|
+
args: args290,
|
|
133015
|
+
tool: async (client, args291, ctx) => {
|
|
133016
|
+
const [result, apiCall] = await sandboxTerminate(client, args291.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
132691
133017
|
if (!result.ok) {
|
|
132692
133018
|
return {
|
|
132693
133019
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -132700,25 +133026,29 @@ Aggregate spend for your organization, computed from retained compute ledgers as
|
|
|
132700
133026
|
};
|
|
132701
133027
|
});
|
|
132702
133028
|
|
|
132703
|
-
// src/funcs/
|
|
132704
|
-
function
|
|
132705
|
-
return new APIPromise($
|
|
133029
|
+
// src/funcs/sandboxUploadArchive.ts
|
|
133030
|
+
function sandboxUploadArchive(client, request, options) {
|
|
133031
|
+
return new APIPromise($do300(client, request, options));
|
|
132706
133032
|
}
|
|
132707
|
-
async function $
|
|
132708
|
-
const parsed = safeParse4(request, (value) =>
|
|
133033
|
+
async function $do300(client, request, options) {
|
|
133034
|
+
const parsed = safeParse4(request, (value) => UploadWorkspaceArchiveRequest$outboundSchema.parse(value), "Input validation failed");
|
|
132709
133035
|
if (!parsed.ok) {
|
|
132710
133036
|
return [parsed, { status: "invalid" }];
|
|
132711
133037
|
}
|
|
132712
133038
|
const payload = parsed.value;
|
|
132713
|
-
const body =
|
|
133039
|
+
const body = payload.RequestBody instanceof Uint8Array ? new Uint8Array(payload.RequestBody).buffer : payload.RequestBody;
|
|
132714
133040
|
const pathParams = {
|
|
132715
|
-
|
|
133041
|
+
session_id: encodeSimple("session_id", payload.session_id, {
|
|
132716
133042
|
explode: false,
|
|
132717
133043
|
charEncoding: "percent"
|
|
132718
133044
|
})
|
|
132719
133045
|
};
|
|
132720
|
-
const path = pathToFunc("/api/v1/
|
|
133046
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/archive")(pathParams);
|
|
133047
|
+
const query = encodeFormQuery({
|
|
133048
|
+
session_token: payload.session_token
|
|
133049
|
+
});
|
|
132721
133050
|
const headers = new Headers(compactMap({
|
|
133051
|
+
"Content-Type": "application/zip",
|
|
132722
133052
|
Accept: "application/json",
|
|
132723
133053
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
132724
133054
|
}));
|
|
@@ -132728,7 +133058,7 @@ async function $do301(client, request, options) {
|
|
|
132728
133058
|
const context = {
|
|
132729
133059
|
options: client._options,
|
|
132730
133060
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
132731
|
-
operationID: "
|
|
133061
|
+
operationID: "uploadWorkspaceArchive",
|
|
132732
133062
|
oAuth2Scopes: null,
|
|
132733
133063
|
resolvedSecurity: requestSecurity,
|
|
132734
133064
|
securitySource: client._options.bearerAuth,
|
|
@@ -132746,10 +133076,11 @@ async function $do301(client, request, options) {
|
|
|
132746
133076
|
};
|
|
132747
133077
|
const requestRes = client._createRequest(context, {
|
|
132748
133078
|
security: requestSecurity,
|
|
132749
|
-
method: "
|
|
133079
|
+
method: "PUT",
|
|
132750
133080
|
baseURL: options?.serverURL,
|
|
132751
133081
|
path,
|
|
132752
133082
|
headers,
|
|
133083
|
+
query,
|
|
132753
133084
|
body,
|
|
132754
133085
|
userAgent: client._options.userAgent,
|
|
132755
133086
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -132771,13 +133102,14 @@ async function $do301(client, request, options) {
|
|
|
132771
133102
|
const responseFields = {
|
|
132772
133103
|
HttpMeta: { Response: response, Request: req }
|
|
132773
133104
|
};
|
|
132774
|
-
const [result] = await match(json(200,
|
|
133105
|
+
const [result] = await match(json(200, recordType(stringType())), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
132775
133106
|
if (!result.ok) {
|
|
132776
133107
|
return [result, { status: "complete", request: req, response }];
|
|
132777
133108
|
}
|
|
132778
133109
|
return [result, { status: "complete", request: req, response }];
|
|
132779
133110
|
}
|
|
132780
|
-
var
|
|
133111
|
+
var init_sandboxUploadArchive = __esm(() => {
|
|
133112
|
+
init_esm();
|
|
132781
133113
|
init_encodings();
|
|
132782
133114
|
init_http();
|
|
132783
133115
|
init_matchers();
|
|
@@ -132785,29 +133117,28 @@ var init_servingTenantsGet = __esm(() => {
|
|
|
132785
133117
|
init_schemas4();
|
|
132786
133118
|
init_security();
|
|
132787
133119
|
init_url();
|
|
132788
|
-
init_components();
|
|
132789
133120
|
init_errors4();
|
|
132790
133121
|
init_operations();
|
|
132791
133122
|
init_async();
|
|
132792
133123
|
});
|
|
132793
133124
|
|
|
132794
|
-
// src/mcp-server/tools/
|
|
132795
|
-
var
|
|
132796
|
-
var
|
|
132797
|
-
|
|
133125
|
+
// src/mcp-server/tools/sandboxUploadArchive.ts
|
|
133126
|
+
var args291, tool$sandboxUploadArchive;
|
|
133127
|
+
var init_sandboxUploadArchive2 = __esm(() => {
|
|
133128
|
+
init_sandboxUploadArchive();
|
|
132798
133129
|
init_operations();
|
|
132799
133130
|
init_tools();
|
|
132800
|
-
|
|
132801
|
-
request:
|
|
133131
|
+
args291 = {
|
|
133132
|
+
request: UploadWorkspaceArchiveRequest$inboundSchema
|
|
132802
133133
|
};
|
|
132803
|
-
tool$
|
|
132804
|
-
name: "
|
|
132805
|
-
description: `
|
|
133134
|
+
tool$sandboxUploadArchive = {
|
|
133135
|
+
name: "sandbox-upload-archive",
|
|
133136
|
+
description: `Upload Workspace Archive
|
|
132806
133137
|
|
|
132807
|
-
|
|
132808
|
-
args:
|
|
132809
|
-
tool: async (client,
|
|
132810
|
-
const [result, apiCall] = await
|
|
133138
|
+
Upload a zip archive and extract its files into the session workspace.`,
|
|
133139
|
+
args: args291,
|
|
133140
|
+
tool: async (client, args292, ctx) => {
|
|
133141
|
+
const [result, apiCall] = await sandboxUploadArchive(client, args292.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
132811
133142
|
if (!result.ok) {
|
|
132812
133143
|
return {
|
|
132813
133144
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -132820,23 +133151,33 @@ Get one organization's serving enablement record. Cluster administrators only. D
|
|
|
132820
133151
|
};
|
|
132821
133152
|
});
|
|
132822
133153
|
|
|
132823
|
-
// src/funcs/
|
|
132824
|
-
function
|
|
132825
|
-
return new APIPromise($
|
|
133154
|
+
// src/funcs/sandboxUploadFile.ts
|
|
133155
|
+
function sandboxUploadFile(client, request, options) {
|
|
133156
|
+
return new APIPromise($do301(client, request, options));
|
|
132826
133157
|
}
|
|
132827
|
-
async function $
|
|
132828
|
-
const parsed = safeParse4(request, (value) =>
|
|
133158
|
+
async function $do301(client, request, options) {
|
|
133159
|
+
const parsed = safeParse4(request, (value) => UploadWorkspaceFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
132829
133160
|
if (!parsed.ok) {
|
|
132830
133161
|
return [parsed, { status: "invalid" }];
|
|
132831
133162
|
}
|
|
132832
133163
|
const payload = parsed.value;
|
|
132833
|
-
const body =
|
|
132834
|
-
const
|
|
133164
|
+
const body = payload.RequestBody instanceof Uint8Array ? new Uint8Array(payload.RequestBody).buffer : payload.RequestBody;
|
|
133165
|
+
const pathParams = {
|
|
133166
|
+
file_path: encodeSimple("file_path", payload.file_path, {
|
|
133167
|
+
explode: false,
|
|
133168
|
+
charEncoding: "percent"
|
|
133169
|
+
}),
|
|
133170
|
+
session_id: encodeSimple("session_id", payload.session_id, {
|
|
133171
|
+
explode: false,
|
|
133172
|
+
charEncoding: "percent"
|
|
133173
|
+
})
|
|
133174
|
+
};
|
|
133175
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/files/{file_path}")(pathParams);
|
|
132835
133176
|
const query = encodeFormQuery({
|
|
132836
|
-
|
|
132837
|
-
limit: payload.limit
|
|
133177
|
+
session_token: payload.session_token
|
|
132838
133178
|
});
|
|
132839
133179
|
const headers = new Headers(compactMap({
|
|
133180
|
+
"Content-Type": "application/octet-stream",
|
|
132840
133181
|
Accept: "application/json",
|
|
132841
133182
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
132842
133183
|
}));
|
|
@@ -132846,7 +133187,7 @@ async function $do302(client, request, options) {
|
|
|
132846
133187
|
const context = {
|
|
132847
133188
|
options: client._options,
|
|
132848
133189
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
132849
|
-
operationID: "
|
|
133190
|
+
operationID: "uploadWorkspaceFile",
|
|
132850
133191
|
oAuth2Scopes: null,
|
|
132851
133192
|
resolvedSecurity: requestSecurity,
|
|
132852
133193
|
securitySource: client._options.bearerAuth,
|
|
@@ -132864,7 +133205,1072 @@ async function $do302(client, request, options) {
|
|
|
132864
133205
|
};
|
|
132865
133206
|
const requestRes = client._createRequest(context, {
|
|
132866
133207
|
security: requestSecurity,
|
|
132867
|
-
method: "
|
|
133208
|
+
method: "PUT",
|
|
133209
|
+
baseURL: options?.serverURL,
|
|
133210
|
+
path,
|
|
133211
|
+
headers,
|
|
133212
|
+
query,
|
|
133213
|
+
body,
|
|
133214
|
+
userAgent: client._options.userAgent,
|
|
133215
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
133216
|
+
}, options);
|
|
133217
|
+
if (!requestRes.ok) {
|
|
133218
|
+
return [requestRes, { status: "invalid" }];
|
|
133219
|
+
}
|
|
133220
|
+
const req = requestRes.value;
|
|
133221
|
+
const doResult = await client._do(req, {
|
|
133222
|
+
context,
|
|
133223
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
133224
|
+
retryConfig: context.retryConfig,
|
|
133225
|
+
retryCodes: context.retryCodes
|
|
133226
|
+
});
|
|
133227
|
+
if (!doResult.ok) {
|
|
133228
|
+
return [doResult, { status: "request-error", request: req }];
|
|
133229
|
+
}
|
|
133230
|
+
const response = doResult.value;
|
|
133231
|
+
const responseFields = {
|
|
133232
|
+
HttpMeta: { Response: response, Request: req }
|
|
133233
|
+
};
|
|
133234
|
+
const [result] = await match(json(200, recordType(stringType())), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
133235
|
+
if (!result.ok) {
|
|
133236
|
+
return [result, { status: "complete", request: req, response }];
|
|
133237
|
+
}
|
|
133238
|
+
return [result, { status: "complete", request: req, response }];
|
|
133239
|
+
}
|
|
133240
|
+
var init_sandboxUploadFile = __esm(() => {
|
|
133241
|
+
init_esm();
|
|
133242
|
+
init_encodings();
|
|
133243
|
+
init_http();
|
|
133244
|
+
init_matchers();
|
|
133245
|
+
init_primitives();
|
|
133246
|
+
init_schemas4();
|
|
133247
|
+
init_security();
|
|
133248
|
+
init_url();
|
|
133249
|
+
init_errors4();
|
|
133250
|
+
init_operations();
|
|
133251
|
+
init_async();
|
|
133252
|
+
});
|
|
133253
|
+
|
|
133254
|
+
// src/mcp-server/tools/sandboxUploadFile.ts
|
|
133255
|
+
var args292, tool$sandboxUploadFile;
|
|
133256
|
+
var init_sandboxUploadFile2 = __esm(() => {
|
|
133257
|
+
init_sandboxUploadFile();
|
|
133258
|
+
init_operations();
|
|
133259
|
+
init_tools();
|
|
133260
|
+
args292 = {
|
|
133261
|
+
request: UploadWorkspaceFileRequest$inboundSchema
|
|
133262
|
+
};
|
|
133263
|
+
tool$sandboxUploadFile = {
|
|
133264
|
+
name: "sandbox-upload-file",
|
|
133265
|
+
description: `Upload Workspace File
|
|
133266
|
+
|
|
133267
|
+
Upload raw bytes into the session workspace at the given path.`,
|
|
133268
|
+
args: args292,
|
|
133269
|
+
tool: async (client, args293, ctx) => {
|
|
133270
|
+
const [result, apiCall] = await sandboxUploadFile(client, args293.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
133271
|
+
if (!result.ok) {
|
|
133272
|
+
return {
|
|
133273
|
+
content: [{ type: "text", text: result.error.message }],
|
|
133274
|
+
isError: true
|
|
133275
|
+
};
|
|
133276
|
+
}
|
|
133277
|
+
const value = result.value;
|
|
133278
|
+
return formatResult(value, apiCall);
|
|
133279
|
+
}
|
|
133280
|
+
};
|
|
133281
|
+
});
|
|
133282
|
+
|
|
133283
|
+
// src/funcs/servingAcceleratorsGet.ts
|
|
133284
|
+
function servingAcceleratorsGet(client, request, options) {
|
|
133285
|
+
return new APIPromise($do302(client, request, options));
|
|
133286
|
+
}
|
|
133287
|
+
async function $do302(client, request, options) {
|
|
133288
|
+
const parsed = safeParse4(request, (value) => GetAcceleratorRequest$outboundSchema.parse(value), "Input validation failed");
|
|
133289
|
+
if (!parsed.ok) {
|
|
133290
|
+
return [parsed, { status: "invalid" }];
|
|
133291
|
+
}
|
|
133292
|
+
const payload = parsed.value;
|
|
133293
|
+
const body = null;
|
|
133294
|
+
const pathParams = {
|
|
133295
|
+
name: encodeSimple("name", payload.name, {
|
|
133296
|
+
explode: false,
|
|
133297
|
+
charEncoding: "percent"
|
|
133298
|
+
})
|
|
133299
|
+
};
|
|
133300
|
+
const path = pathToFunc("/api/v1/serving/accelerators/{name}")(pathParams);
|
|
133301
|
+
const headers = new Headers(compactMap({
|
|
133302
|
+
Accept: "application/json",
|
|
133303
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
133304
|
+
}));
|
|
133305
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
133306
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
133307
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
133308
|
+
const context = {
|
|
133309
|
+
options: client._options,
|
|
133310
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
133311
|
+
operationID: "getAccelerator",
|
|
133312
|
+
oAuth2Scopes: null,
|
|
133313
|
+
resolvedSecurity: requestSecurity,
|
|
133314
|
+
securitySource: client._options.bearerAuth,
|
|
133315
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
133316
|
+
strategy: "backoff",
|
|
133317
|
+
backoff: {
|
|
133318
|
+
initialInterval: 500,
|
|
133319
|
+
maxInterval: 5000,
|
|
133320
|
+
exponent: 1.5,
|
|
133321
|
+
maxElapsedTime: 15000
|
|
133322
|
+
},
|
|
133323
|
+
retryConnectionErrors: true
|
|
133324
|
+
},
|
|
133325
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
133326
|
+
};
|
|
133327
|
+
const requestRes = client._createRequest(context, {
|
|
133328
|
+
security: requestSecurity,
|
|
133329
|
+
method: "GET",
|
|
133330
|
+
baseURL: options?.serverURL,
|
|
133331
|
+
path,
|
|
133332
|
+
headers,
|
|
133333
|
+
body,
|
|
133334
|
+
userAgent: client._options.userAgent,
|
|
133335
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
133336
|
+
}, options);
|
|
133337
|
+
if (!requestRes.ok) {
|
|
133338
|
+
return [requestRes, { status: "invalid" }];
|
|
133339
|
+
}
|
|
133340
|
+
const req = requestRes.value;
|
|
133341
|
+
const doResult = await client._do(req, {
|
|
133342
|
+
context,
|
|
133343
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
133344
|
+
retryConfig: context.retryConfig,
|
|
133345
|
+
retryCodes: context.retryCodes
|
|
133346
|
+
});
|
|
133347
|
+
if (!doResult.ok) {
|
|
133348
|
+
return [doResult, { status: "request-error", request: req }];
|
|
133349
|
+
}
|
|
133350
|
+
const response = doResult.value;
|
|
133351
|
+
const responseFields = {
|
|
133352
|
+
HttpMeta: { Response: response, Request: req }
|
|
133353
|
+
};
|
|
133354
|
+
const [result] = await match(json(200, AcceleratorType$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
133355
|
+
if (!result.ok) {
|
|
133356
|
+
return [result, { status: "complete", request: req, response }];
|
|
133357
|
+
}
|
|
133358
|
+
return [result, { status: "complete", request: req, response }];
|
|
133359
|
+
}
|
|
133360
|
+
var init_servingAcceleratorsGet = __esm(() => {
|
|
133361
|
+
init_encodings();
|
|
133362
|
+
init_http();
|
|
133363
|
+
init_matchers();
|
|
133364
|
+
init_primitives();
|
|
133365
|
+
init_schemas4();
|
|
133366
|
+
init_security();
|
|
133367
|
+
init_url();
|
|
133368
|
+
init_components();
|
|
133369
|
+
init_errors4();
|
|
133370
|
+
init_operations();
|
|
133371
|
+
init_async();
|
|
133372
|
+
});
|
|
133373
|
+
|
|
133374
|
+
// src/mcp-server/tools/servingAcceleratorsGet.ts
|
|
133375
|
+
var args293, tool$servingAcceleratorsGet;
|
|
133376
|
+
var init_servingAcceleratorsGet2 = __esm(() => {
|
|
133377
|
+
init_servingAcceleratorsGet();
|
|
133378
|
+
init_operations();
|
|
133379
|
+
init_tools();
|
|
133380
|
+
args293 = {
|
|
133381
|
+
request: GetAcceleratorRequest$inboundSchema
|
|
133382
|
+
};
|
|
133383
|
+
tool$servingAcceleratorsGet = {
|
|
133384
|
+
name: "serving-accelerators-get",
|
|
133385
|
+
description: `Get an accelerator type
|
|
133386
|
+
|
|
133387
|
+
Retrieve one accelerator type from the curated catalog, including its workload affinity, placements, and live market fields when available.`,
|
|
133388
|
+
args: args293,
|
|
133389
|
+
tool: async (client, args294, ctx) => {
|
|
133390
|
+
const [result, apiCall] = await servingAcceleratorsGet(client, args294.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
133391
|
+
if (!result.ok) {
|
|
133392
|
+
return {
|
|
133393
|
+
content: [{ type: "text", text: result.error.message }],
|
|
133394
|
+
isError: true
|
|
133395
|
+
};
|
|
133396
|
+
}
|
|
133397
|
+
const value = result.value;
|
|
133398
|
+
return formatResult(value, apiCall);
|
|
133399
|
+
}
|
|
133400
|
+
};
|
|
133401
|
+
});
|
|
133402
|
+
|
|
133403
|
+
// src/funcs/servingAcceleratorsList.ts
|
|
133404
|
+
function servingAcceleratorsList(client, request, options) {
|
|
133405
|
+
return new APIPromise($do303(client, request, options));
|
|
133406
|
+
}
|
|
133407
|
+
async function $do303(client, request, options) {
|
|
133408
|
+
const parsed = safeParse4(request, (value) => ListAcceleratorsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
133409
|
+
if (!parsed.ok) {
|
|
133410
|
+
return [parsed, { status: "invalid" }];
|
|
133411
|
+
}
|
|
133412
|
+
const payload = parsed.value;
|
|
133413
|
+
const body = null;
|
|
133414
|
+
const path = pathToFunc("/api/v1/serving/accelerators")();
|
|
133415
|
+
const headers = new Headers(compactMap({
|
|
133416
|
+
Accept: "application/json",
|
|
133417
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
133418
|
+
}));
|
|
133419
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
133420
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
133421
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
133422
|
+
const context = {
|
|
133423
|
+
options: client._options,
|
|
133424
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
133425
|
+
operationID: "listAccelerators",
|
|
133426
|
+
oAuth2Scopes: null,
|
|
133427
|
+
resolvedSecurity: requestSecurity,
|
|
133428
|
+
securitySource: client._options.bearerAuth,
|
|
133429
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
133430
|
+
strategy: "backoff",
|
|
133431
|
+
backoff: {
|
|
133432
|
+
initialInterval: 500,
|
|
133433
|
+
maxInterval: 5000,
|
|
133434
|
+
exponent: 1.5,
|
|
133435
|
+
maxElapsedTime: 15000
|
|
133436
|
+
},
|
|
133437
|
+
retryConnectionErrors: true
|
|
133438
|
+
},
|
|
133439
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
133440
|
+
};
|
|
133441
|
+
const requestRes = client._createRequest(context, {
|
|
133442
|
+
security: requestSecurity,
|
|
133443
|
+
method: "GET",
|
|
133444
|
+
baseURL: options?.serverURL,
|
|
133445
|
+
path,
|
|
133446
|
+
headers,
|
|
133447
|
+
body,
|
|
133448
|
+
userAgent: client._options.userAgent,
|
|
133449
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
133450
|
+
}, options);
|
|
133451
|
+
if (!requestRes.ok) {
|
|
133452
|
+
return [requestRes, { status: "invalid" }];
|
|
133453
|
+
}
|
|
133454
|
+
const req = requestRes.value;
|
|
133455
|
+
const doResult = await client._do(req, {
|
|
133456
|
+
context,
|
|
133457
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
133458
|
+
retryConfig: context.retryConfig,
|
|
133459
|
+
retryCodes: context.retryCodes
|
|
133460
|
+
});
|
|
133461
|
+
if (!doResult.ok) {
|
|
133462
|
+
return [doResult, { status: "request-error", request: req }];
|
|
133463
|
+
}
|
|
133464
|
+
const response = doResult.value;
|
|
133465
|
+
const responseFields = {
|
|
133466
|
+
HttpMeta: { Response: response, Request: req }
|
|
133467
|
+
};
|
|
133468
|
+
const [result] = await match(json(200, PageAcceleratorType$inboundSchema), jsonErr(403, ServingError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
133469
|
+
if (!result.ok) {
|
|
133470
|
+
return [result, { status: "complete", request: req, response }];
|
|
133471
|
+
}
|
|
133472
|
+
return [result, { status: "complete", request: req, response }];
|
|
133473
|
+
}
|
|
133474
|
+
var init_servingAcceleratorsList = __esm(() => {
|
|
133475
|
+
init_encodings();
|
|
133476
|
+
init_http();
|
|
133477
|
+
init_matchers();
|
|
133478
|
+
init_primitives();
|
|
133479
|
+
init_schemas4();
|
|
133480
|
+
init_security();
|
|
133481
|
+
init_url();
|
|
133482
|
+
init_components();
|
|
133483
|
+
init_errors4();
|
|
133484
|
+
init_operations();
|
|
133485
|
+
init_async();
|
|
133486
|
+
});
|
|
133487
|
+
|
|
133488
|
+
// src/mcp-server/tools/servingAcceleratorsList.ts
|
|
133489
|
+
var args294, tool$servingAcceleratorsList;
|
|
133490
|
+
var init_servingAcceleratorsList2 = __esm(() => {
|
|
133491
|
+
init_servingAcceleratorsList();
|
|
133492
|
+
init_operations();
|
|
133493
|
+
init_tools();
|
|
133494
|
+
args294 = {
|
|
133495
|
+
request: ListAcceleratorsRequest$inboundSchema
|
|
133496
|
+
};
|
|
133497
|
+
tool$servingAcceleratorsList = {
|
|
133498
|
+
name: "serving-accelerators-list",
|
|
133499
|
+
description: `List available accelerator types
|
|
133500
|
+
|
|
133501
|
+
List the accelerator types available to your organization (GPU, NPU, TPU).`,
|
|
133502
|
+
args: args294,
|
|
133503
|
+
tool: async (client, args295, ctx) => {
|
|
133504
|
+
const [result, apiCall] = await servingAcceleratorsList(client, args295.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
133505
|
+
if (!result.ok) {
|
|
133506
|
+
return {
|
|
133507
|
+
content: [{ type: "text", text: result.error.message }],
|
|
133508
|
+
isError: true
|
|
133509
|
+
};
|
|
133510
|
+
}
|
|
133511
|
+
const value = result.value;
|
|
133512
|
+
return formatResult(value, apiCall);
|
|
133513
|
+
}
|
|
133514
|
+
};
|
|
133515
|
+
});
|
|
133516
|
+
|
|
133517
|
+
// src/funcs/servingSecretsCreate.ts
|
|
133518
|
+
function servingSecretsCreate(client, request, options) {
|
|
133519
|
+
return new APIPromise($do304(client, request, options));
|
|
133520
|
+
}
|
|
133521
|
+
async function $do304(client, request, options) {
|
|
133522
|
+
const parsed = safeParse4(request, (value) => CreateSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
133523
|
+
if (!parsed.ok) {
|
|
133524
|
+
return [parsed, { status: "invalid" }];
|
|
133525
|
+
}
|
|
133526
|
+
const payload = parsed.value;
|
|
133527
|
+
const body = encodeJSON("body", payload.SecretCreate, { explode: true });
|
|
133528
|
+
const path = pathToFunc("/api/v1/serving/secrets")();
|
|
133529
|
+
const headers = new Headers(compactMap({
|
|
133530
|
+
"Content-Type": "application/json",
|
|
133531
|
+
Accept: "application/json",
|
|
133532
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
133533
|
+
}));
|
|
133534
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
133535
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
133536
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
133537
|
+
const context = {
|
|
133538
|
+
options: client._options,
|
|
133539
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
133540
|
+
operationID: "createSecret",
|
|
133541
|
+
oAuth2Scopes: null,
|
|
133542
|
+
resolvedSecurity: requestSecurity,
|
|
133543
|
+
securitySource: client._options.bearerAuth,
|
|
133544
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
133545
|
+
strategy: "backoff",
|
|
133546
|
+
backoff: {
|
|
133547
|
+
initialInterval: 500,
|
|
133548
|
+
maxInterval: 5000,
|
|
133549
|
+
exponent: 1.5,
|
|
133550
|
+
maxElapsedTime: 15000
|
|
133551
|
+
},
|
|
133552
|
+
retryConnectionErrors: true
|
|
133553
|
+
},
|
|
133554
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
133555
|
+
};
|
|
133556
|
+
const requestRes = client._createRequest(context, {
|
|
133557
|
+
security: requestSecurity,
|
|
133558
|
+
method: "POST",
|
|
133559
|
+
baseURL: options?.serverURL,
|
|
133560
|
+
path,
|
|
133561
|
+
headers,
|
|
133562
|
+
body,
|
|
133563
|
+
userAgent: client._options.userAgent,
|
|
133564
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
133565
|
+
}, options);
|
|
133566
|
+
if (!requestRes.ok) {
|
|
133567
|
+
return [requestRes, { status: "invalid" }];
|
|
133568
|
+
}
|
|
133569
|
+
const req = requestRes.value;
|
|
133570
|
+
const doResult = await client._do(req, {
|
|
133571
|
+
context,
|
|
133572
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
133573
|
+
retryConfig: context.retryConfig,
|
|
133574
|
+
retryCodes: context.retryCodes
|
|
133575
|
+
});
|
|
133576
|
+
if (!doResult.ok) {
|
|
133577
|
+
return [doResult, { status: "request-error", request: req }];
|
|
133578
|
+
}
|
|
133579
|
+
const response = doResult.value;
|
|
133580
|
+
const responseFields = {
|
|
133581
|
+
HttpMeta: { Response: response, Request: req }
|
|
133582
|
+
};
|
|
133583
|
+
const [result] = await match(json(201, Secret$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
133584
|
+
if (!result.ok) {
|
|
133585
|
+
return [result, { status: "complete", request: req, response }];
|
|
133586
|
+
}
|
|
133587
|
+
return [result, { status: "complete", request: req, response }];
|
|
133588
|
+
}
|
|
133589
|
+
var init_servingSecretsCreate = __esm(() => {
|
|
133590
|
+
init_encodings();
|
|
133591
|
+
init_http();
|
|
133592
|
+
init_matchers();
|
|
133593
|
+
init_primitives();
|
|
133594
|
+
init_schemas4();
|
|
133595
|
+
init_security();
|
|
133596
|
+
init_url();
|
|
133597
|
+
init_components();
|
|
133598
|
+
init_errors4();
|
|
133599
|
+
init_operations();
|
|
133600
|
+
init_async();
|
|
133601
|
+
});
|
|
133602
|
+
|
|
133603
|
+
// src/mcp-server/tools/servingSecretsCreate.ts
|
|
133604
|
+
var args295, tool$servingSecretsCreate;
|
|
133605
|
+
var init_servingSecretsCreate2 = __esm(() => {
|
|
133606
|
+
init_servingSecretsCreate();
|
|
133607
|
+
init_operations();
|
|
133608
|
+
init_tools();
|
|
133609
|
+
args295 = {
|
|
133610
|
+
request: CreateSecretRequest$inboundSchema
|
|
133611
|
+
};
|
|
133612
|
+
tool$servingSecretsCreate = {
|
|
133613
|
+
name: "serving-secrets-create",
|
|
133614
|
+
description: `Create a secret
|
|
133615
|
+
|
|
133616
|
+
Create a secret whose values are injected into your workloads as env vars.`,
|
|
133617
|
+
args: args295,
|
|
133618
|
+
tool: async (client, args296, ctx) => {
|
|
133619
|
+
const [result, apiCall] = await servingSecretsCreate(client, args296.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
133620
|
+
if (!result.ok) {
|
|
133621
|
+
return {
|
|
133622
|
+
content: [{ type: "text", text: result.error.message }],
|
|
133623
|
+
isError: true
|
|
133624
|
+
};
|
|
133625
|
+
}
|
|
133626
|
+
const value = result.value;
|
|
133627
|
+
return formatResult(value, apiCall);
|
|
133628
|
+
}
|
|
133629
|
+
};
|
|
133630
|
+
});
|
|
133631
|
+
|
|
133632
|
+
// src/funcs/servingSecretsDelete.ts
|
|
133633
|
+
function servingSecretsDelete(client, request, options) {
|
|
133634
|
+
return new APIPromise($do305(client, request, options));
|
|
133635
|
+
}
|
|
133636
|
+
async function $do305(client, request, options) {
|
|
133637
|
+
const parsed = safeParse4(request, (value) => DeleteSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
133638
|
+
if (!parsed.ok) {
|
|
133639
|
+
return [parsed, { status: "invalid" }];
|
|
133640
|
+
}
|
|
133641
|
+
const payload = parsed.value;
|
|
133642
|
+
const body = null;
|
|
133643
|
+
const pathParams = {
|
|
133644
|
+
secret_id: encodeSimple("secret_id", payload.secret_id, {
|
|
133645
|
+
explode: false,
|
|
133646
|
+
charEncoding: "percent"
|
|
133647
|
+
})
|
|
133648
|
+
};
|
|
133649
|
+
const path = pathToFunc("/api/v1/serving/secrets/{secret_id}")(pathParams);
|
|
133650
|
+
const headers = new Headers(compactMap({
|
|
133651
|
+
Accept: "application/json",
|
|
133652
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
133653
|
+
}));
|
|
133654
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
133655
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
133656
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
133657
|
+
const context = {
|
|
133658
|
+
options: client._options,
|
|
133659
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
133660
|
+
operationID: "deleteSecret",
|
|
133661
|
+
oAuth2Scopes: null,
|
|
133662
|
+
resolvedSecurity: requestSecurity,
|
|
133663
|
+
securitySource: client._options.bearerAuth,
|
|
133664
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
133665
|
+
strategy: "backoff",
|
|
133666
|
+
backoff: {
|
|
133667
|
+
initialInterval: 500,
|
|
133668
|
+
maxInterval: 5000,
|
|
133669
|
+
exponent: 1.5,
|
|
133670
|
+
maxElapsedTime: 15000
|
|
133671
|
+
},
|
|
133672
|
+
retryConnectionErrors: true
|
|
133673
|
+
},
|
|
133674
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
133675
|
+
};
|
|
133676
|
+
const requestRes = client._createRequest(context, {
|
|
133677
|
+
security: requestSecurity,
|
|
133678
|
+
method: "DELETE",
|
|
133679
|
+
baseURL: options?.serverURL,
|
|
133680
|
+
path,
|
|
133681
|
+
headers,
|
|
133682
|
+
body,
|
|
133683
|
+
userAgent: client._options.userAgent,
|
|
133684
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
133685
|
+
}, options);
|
|
133686
|
+
if (!requestRes.ok) {
|
|
133687
|
+
return [requestRes, { status: "invalid" }];
|
|
133688
|
+
}
|
|
133689
|
+
const req = requestRes.value;
|
|
133690
|
+
const doResult = await client._do(req, {
|
|
133691
|
+
context,
|
|
133692
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
133693
|
+
retryConfig: context.retryConfig,
|
|
133694
|
+
retryCodes: context.retryCodes
|
|
133695
|
+
});
|
|
133696
|
+
if (!doResult.ok) {
|
|
133697
|
+
return [doResult, { status: "request-error", request: req }];
|
|
133698
|
+
}
|
|
133699
|
+
const response = doResult.value;
|
|
133700
|
+
const responseFields = {
|
|
133701
|
+
HttpMeta: { Response: response, Request: req }
|
|
133702
|
+
};
|
|
133703
|
+
const [result] = await match(nil(204, voidType()), jsonErr([403, 404, 409], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
133704
|
+
if (!result.ok) {
|
|
133705
|
+
return [result, { status: "complete", request: req, response }];
|
|
133706
|
+
}
|
|
133707
|
+
return [result, { status: "complete", request: req, response }];
|
|
133708
|
+
}
|
|
133709
|
+
var init_servingSecretsDelete = __esm(() => {
|
|
133710
|
+
init_esm();
|
|
133711
|
+
init_encodings();
|
|
133712
|
+
init_http();
|
|
133713
|
+
init_matchers();
|
|
133714
|
+
init_primitives();
|
|
133715
|
+
init_schemas4();
|
|
133716
|
+
init_security();
|
|
133717
|
+
init_url();
|
|
133718
|
+
init_errors4();
|
|
133719
|
+
init_operations();
|
|
133720
|
+
init_async();
|
|
133721
|
+
});
|
|
133722
|
+
|
|
133723
|
+
// src/mcp-server/tools/servingSecretsDelete.ts
|
|
133724
|
+
var args296, tool$servingSecretsDelete;
|
|
133725
|
+
var init_servingSecretsDelete2 = __esm(() => {
|
|
133726
|
+
init_servingSecretsDelete();
|
|
133727
|
+
init_operations();
|
|
133728
|
+
init_tools();
|
|
133729
|
+
args296 = {
|
|
133730
|
+
request: DeleteSecretRequest$inboundSchema
|
|
133731
|
+
};
|
|
133732
|
+
tool$servingSecretsDelete = {
|
|
133733
|
+
name: "serving-secrets-delete",
|
|
133734
|
+
description: `Delete a secret
|
|
133735
|
+
|
|
133736
|
+
Delete a secret.`,
|
|
133737
|
+
args: args296,
|
|
133738
|
+
tool: async (client, args297, ctx) => {
|
|
133739
|
+
const [result, apiCall] = await servingSecretsDelete(client, args297.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
133740
|
+
if (!result.ok) {
|
|
133741
|
+
return {
|
|
133742
|
+
content: [{ type: "text", text: result.error.message }],
|
|
133743
|
+
isError: true
|
|
133744
|
+
};
|
|
133745
|
+
}
|
|
133746
|
+
return formatResult(undefined, apiCall);
|
|
133747
|
+
}
|
|
133748
|
+
};
|
|
133749
|
+
});
|
|
133750
|
+
|
|
133751
|
+
// src/funcs/servingSecretsGet.ts
|
|
133752
|
+
function servingSecretsGet(client, request, options) {
|
|
133753
|
+
return new APIPromise($do306(client, request, options));
|
|
133754
|
+
}
|
|
133755
|
+
async function $do306(client, request, options) {
|
|
133756
|
+
const parsed = safeParse4(request, (value) => GetSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
133757
|
+
if (!parsed.ok) {
|
|
133758
|
+
return [parsed, { status: "invalid" }];
|
|
133759
|
+
}
|
|
133760
|
+
const payload = parsed.value;
|
|
133761
|
+
const body = null;
|
|
133762
|
+
const pathParams = {
|
|
133763
|
+
secret_id: encodeSimple("secret_id", payload.secret_id, {
|
|
133764
|
+
explode: false,
|
|
133765
|
+
charEncoding: "percent"
|
|
133766
|
+
})
|
|
133767
|
+
};
|
|
133768
|
+
const path = pathToFunc("/api/v1/serving/secrets/{secret_id}")(pathParams);
|
|
133769
|
+
const headers = new Headers(compactMap({
|
|
133770
|
+
Accept: "application/json",
|
|
133771
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
133772
|
+
}));
|
|
133773
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
133774
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
133775
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
133776
|
+
const context = {
|
|
133777
|
+
options: client._options,
|
|
133778
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
133779
|
+
operationID: "getSecret",
|
|
133780
|
+
oAuth2Scopes: null,
|
|
133781
|
+
resolvedSecurity: requestSecurity,
|
|
133782
|
+
securitySource: client._options.bearerAuth,
|
|
133783
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
133784
|
+
strategy: "backoff",
|
|
133785
|
+
backoff: {
|
|
133786
|
+
initialInterval: 500,
|
|
133787
|
+
maxInterval: 5000,
|
|
133788
|
+
exponent: 1.5,
|
|
133789
|
+
maxElapsedTime: 15000
|
|
133790
|
+
},
|
|
133791
|
+
retryConnectionErrors: true
|
|
133792
|
+
},
|
|
133793
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
133794
|
+
};
|
|
133795
|
+
const requestRes = client._createRequest(context, {
|
|
133796
|
+
security: requestSecurity,
|
|
133797
|
+
method: "GET",
|
|
133798
|
+
baseURL: options?.serverURL,
|
|
133799
|
+
path,
|
|
133800
|
+
headers,
|
|
133801
|
+
body,
|
|
133802
|
+
userAgent: client._options.userAgent,
|
|
133803
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
133804
|
+
}, options);
|
|
133805
|
+
if (!requestRes.ok) {
|
|
133806
|
+
return [requestRes, { status: "invalid" }];
|
|
133807
|
+
}
|
|
133808
|
+
const req = requestRes.value;
|
|
133809
|
+
const doResult = await client._do(req, {
|
|
133810
|
+
context,
|
|
133811
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
133812
|
+
retryConfig: context.retryConfig,
|
|
133813
|
+
retryCodes: context.retryCodes
|
|
133814
|
+
});
|
|
133815
|
+
if (!doResult.ok) {
|
|
133816
|
+
return [doResult, { status: "request-error", request: req }];
|
|
133817
|
+
}
|
|
133818
|
+
const response = doResult.value;
|
|
133819
|
+
const responseFields = {
|
|
133820
|
+
HttpMeta: { Response: response, Request: req }
|
|
133821
|
+
};
|
|
133822
|
+
const [result] = await match(json(200, Secret$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
133823
|
+
if (!result.ok) {
|
|
133824
|
+
return [result, { status: "complete", request: req, response }];
|
|
133825
|
+
}
|
|
133826
|
+
return [result, { status: "complete", request: req, response }];
|
|
133827
|
+
}
|
|
133828
|
+
var init_servingSecretsGet = __esm(() => {
|
|
133829
|
+
init_encodings();
|
|
133830
|
+
init_http();
|
|
133831
|
+
init_matchers();
|
|
133832
|
+
init_primitives();
|
|
133833
|
+
init_schemas4();
|
|
133834
|
+
init_security();
|
|
133835
|
+
init_url();
|
|
133836
|
+
init_components();
|
|
133837
|
+
init_errors4();
|
|
133838
|
+
init_operations();
|
|
133839
|
+
init_async();
|
|
133840
|
+
});
|
|
133841
|
+
|
|
133842
|
+
// src/mcp-server/tools/servingSecretsGet.ts
|
|
133843
|
+
var args297, tool$servingSecretsGet;
|
|
133844
|
+
var init_servingSecretsGet2 = __esm(() => {
|
|
133845
|
+
init_servingSecretsGet();
|
|
133846
|
+
init_operations();
|
|
133847
|
+
init_tools();
|
|
133848
|
+
args297 = {
|
|
133849
|
+
request: GetSecretRequest$inboundSchema
|
|
133850
|
+
};
|
|
133851
|
+
tool$servingSecretsGet = {
|
|
133852
|
+
name: "serving-secrets-get",
|
|
133853
|
+
description: `Get a secret
|
|
133854
|
+
|
|
133855
|
+
Retrieve secret metadata: key names and allowed use. Values are never returned.`,
|
|
133856
|
+
args: args297,
|
|
133857
|
+
tool: async (client, args298, ctx) => {
|
|
133858
|
+
const [result, apiCall] = await servingSecretsGet(client, args298.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
133859
|
+
if (!result.ok) {
|
|
133860
|
+
return {
|
|
133861
|
+
content: [{ type: "text", text: result.error.message }],
|
|
133862
|
+
isError: true
|
|
133863
|
+
};
|
|
133864
|
+
}
|
|
133865
|
+
const value = result.value;
|
|
133866
|
+
return formatResult(value, apiCall);
|
|
133867
|
+
}
|
|
133868
|
+
};
|
|
133869
|
+
});
|
|
133870
|
+
|
|
133871
|
+
// src/funcs/servingSecretsList.ts
|
|
133872
|
+
function servingSecretsList(client, request, options) {
|
|
133873
|
+
return new APIPromise($do307(client, request, options));
|
|
133874
|
+
}
|
|
133875
|
+
async function $do307(client, request, options) {
|
|
133876
|
+
const parsed = safeParse4(request, (value) => ListSecretsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
133877
|
+
if (!parsed.ok) {
|
|
133878
|
+
return [parsed, { status: "invalid" }];
|
|
133879
|
+
}
|
|
133880
|
+
const payload = parsed.value;
|
|
133881
|
+
const body = null;
|
|
133882
|
+
const path = pathToFunc("/api/v1/serving/secrets")();
|
|
133883
|
+
const query = encodeFormQuery({
|
|
133884
|
+
cursor: payload.cursor,
|
|
133885
|
+
limit: payload.limit
|
|
133886
|
+
});
|
|
133887
|
+
const headers = new Headers(compactMap({
|
|
133888
|
+
Accept: "application/json",
|
|
133889
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
133890
|
+
}));
|
|
133891
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
133892
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
133893
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
133894
|
+
const context = {
|
|
133895
|
+
options: client._options,
|
|
133896
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
133897
|
+
operationID: "listSecrets",
|
|
133898
|
+
oAuth2Scopes: null,
|
|
133899
|
+
resolvedSecurity: requestSecurity,
|
|
133900
|
+
securitySource: client._options.bearerAuth,
|
|
133901
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
133902
|
+
strategy: "backoff",
|
|
133903
|
+
backoff: {
|
|
133904
|
+
initialInterval: 500,
|
|
133905
|
+
maxInterval: 5000,
|
|
133906
|
+
exponent: 1.5,
|
|
133907
|
+
maxElapsedTime: 15000
|
|
133908
|
+
},
|
|
133909
|
+
retryConnectionErrors: true
|
|
133910
|
+
},
|
|
133911
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
133912
|
+
};
|
|
133913
|
+
const requestRes = client._createRequest(context, {
|
|
133914
|
+
security: requestSecurity,
|
|
133915
|
+
method: "GET",
|
|
133916
|
+
baseURL: options?.serverURL,
|
|
133917
|
+
path,
|
|
133918
|
+
headers,
|
|
133919
|
+
query,
|
|
133920
|
+
body,
|
|
133921
|
+
userAgent: client._options.userAgent,
|
|
133922
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
133923
|
+
}, options);
|
|
133924
|
+
if (!requestRes.ok) {
|
|
133925
|
+
return [requestRes, { status: "invalid" }];
|
|
133926
|
+
}
|
|
133927
|
+
const req = requestRes.value;
|
|
133928
|
+
const doResult = await client._do(req, {
|
|
133929
|
+
context,
|
|
133930
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
133931
|
+
retryConfig: context.retryConfig,
|
|
133932
|
+
retryCodes: context.retryCodes
|
|
133933
|
+
});
|
|
133934
|
+
if (!doResult.ok) {
|
|
133935
|
+
return [doResult, { status: "request-error", request: req }];
|
|
133936
|
+
}
|
|
133937
|
+
const response = doResult.value;
|
|
133938
|
+
const responseFields = {
|
|
133939
|
+
HttpMeta: { Response: response, Request: req }
|
|
133940
|
+
};
|
|
133941
|
+
const [result] = await match(json(200, PageSecret$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
133942
|
+
if (!result.ok) {
|
|
133943
|
+
return [result, { status: "complete", request: req, response }];
|
|
133944
|
+
}
|
|
133945
|
+
return [result, { status: "complete", request: req, response }];
|
|
133946
|
+
}
|
|
133947
|
+
var init_servingSecretsList = __esm(() => {
|
|
133948
|
+
init_encodings();
|
|
133949
|
+
init_http();
|
|
133950
|
+
init_matchers();
|
|
133951
|
+
init_primitives();
|
|
133952
|
+
init_schemas4();
|
|
133953
|
+
init_security();
|
|
133954
|
+
init_url();
|
|
133955
|
+
init_components();
|
|
133956
|
+
init_errors4();
|
|
133957
|
+
init_operations();
|
|
133958
|
+
init_async();
|
|
133959
|
+
});
|
|
133960
|
+
|
|
133961
|
+
// src/mcp-server/tools/servingSecretsList.ts
|
|
133962
|
+
var args298, tool$servingSecretsList;
|
|
133963
|
+
var init_servingSecretsList2 = __esm(() => {
|
|
133964
|
+
init_servingSecretsList();
|
|
133965
|
+
init_operations();
|
|
133966
|
+
init_tools();
|
|
133967
|
+
args298 = {
|
|
133968
|
+
request: ListSecretsRequest$inboundSchema
|
|
133969
|
+
};
|
|
133970
|
+
tool$servingSecretsList = {
|
|
133971
|
+
name: "serving-secrets-list",
|
|
133972
|
+
description: `List secrets (names only)
|
|
133973
|
+
|
|
133974
|
+
List your secrets by name (values are never returned).`,
|
|
133975
|
+
args: args298,
|
|
133976
|
+
tool: async (client, args299, ctx) => {
|
|
133977
|
+
const [result, apiCall] = await servingSecretsList(client, args299.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
133978
|
+
if (!result.ok) {
|
|
133979
|
+
return {
|
|
133980
|
+
content: [{ type: "text", text: result.error.message }],
|
|
133981
|
+
isError: true
|
|
133982
|
+
};
|
|
133983
|
+
}
|
|
133984
|
+
const value = result.value;
|
|
133985
|
+
return formatResult(value, apiCall);
|
|
133986
|
+
}
|
|
133987
|
+
};
|
|
133988
|
+
});
|
|
133989
|
+
|
|
133990
|
+
// src/funcs/servingSpendGet.ts
|
|
133991
|
+
function servingSpendGet(client, request, options) {
|
|
133992
|
+
return new APIPromise($do308(client, request, options));
|
|
133993
|
+
}
|
|
133994
|
+
async function $do308(client, request, options) {
|
|
133995
|
+
const parsed = safeParse4(request, (value) => GetServingUsageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
133996
|
+
if (!parsed.ok) {
|
|
133997
|
+
return [parsed, { status: "invalid" }];
|
|
133998
|
+
}
|
|
133999
|
+
const payload = parsed.value;
|
|
134000
|
+
const body = null;
|
|
134001
|
+
const path = pathToFunc("/api/v1/serving/usage")();
|
|
134002
|
+
const query = encodeFormQuery({
|
|
134003
|
+
end: payload.end,
|
|
134004
|
+
start: payload.start
|
|
134005
|
+
});
|
|
134006
|
+
const headers = new Headers(compactMap({
|
|
134007
|
+
Accept: "application/json",
|
|
134008
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
134009
|
+
}));
|
|
134010
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
134011
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
134012
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
134013
|
+
const context = {
|
|
134014
|
+
options: client._options,
|
|
134015
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134016
|
+
operationID: "getServingUsage",
|
|
134017
|
+
oAuth2Scopes: null,
|
|
134018
|
+
resolvedSecurity: requestSecurity,
|
|
134019
|
+
securitySource: client._options.bearerAuth,
|
|
134020
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
134021
|
+
strategy: "backoff",
|
|
134022
|
+
backoff: {
|
|
134023
|
+
initialInterval: 500,
|
|
134024
|
+
maxInterval: 5000,
|
|
134025
|
+
exponent: 1.5,
|
|
134026
|
+
maxElapsedTime: 15000
|
|
134027
|
+
},
|
|
134028
|
+
retryConnectionErrors: true
|
|
134029
|
+
},
|
|
134030
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
134031
|
+
};
|
|
134032
|
+
const requestRes = client._createRequest(context, {
|
|
134033
|
+
security: requestSecurity,
|
|
134034
|
+
method: "GET",
|
|
134035
|
+
baseURL: options?.serverURL,
|
|
134036
|
+
path,
|
|
134037
|
+
headers,
|
|
134038
|
+
query,
|
|
134039
|
+
body,
|
|
134040
|
+
userAgent: client._options.userAgent,
|
|
134041
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
134042
|
+
}, options);
|
|
134043
|
+
if (!requestRes.ok) {
|
|
134044
|
+
return [requestRes, { status: "invalid" }];
|
|
134045
|
+
}
|
|
134046
|
+
const req = requestRes.value;
|
|
134047
|
+
const doResult = await client._do(req, {
|
|
134048
|
+
context,
|
|
134049
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
134050
|
+
retryConfig: context.retryConfig,
|
|
134051
|
+
retryCodes: context.retryCodes
|
|
134052
|
+
});
|
|
134053
|
+
if (!doResult.ok) {
|
|
134054
|
+
return [doResult, { status: "request-error", request: req }];
|
|
134055
|
+
}
|
|
134056
|
+
const response = doResult.value;
|
|
134057
|
+
const responseFields = {
|
|
134058
|
+
HttpMeta: { Response: response, Request: req }
|
|
134059
|
+
};
|
|
134060
|
+
const [result] = await match(json(200, SpendSummary$inboundSchema), jsonErr([401, 403], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), jsonErr([500, 503], ServingError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
134061
|
+
if (!result.ok) {
|
|
134062
|
+
return [result, { status: "complete", request: req, response }];
|
|
134063
|
+
}
|
|
134064
|
+
return [result, { status: "complete", request: req, response }];
|
|
134065
|
+
}
|
|
134066
|
+
var init_servingSpendGet = __esm(() => {
|
|
134067
|
+
init_encodings();
|
|
134068
|
+
init_http();
|
|
134069
|
+
init_matchers();
|
|
134070
|
+
init_primitives();
|
|
134071
|
+
init_schemas4();
|
|
134072
|
+
init_security();
|
|
134073
|
+
init_url();
|
|
134074
|
+
init_components();
|
|
134075
|
+
init_errors4();
|
|
134076
|
+
init_operations();
|
|
134077
|
+
init_async();
|
|
134078
|
+
});
|
|
134079
|
+
|
|
134080
|
+
// src/mcp-server/tools/servingSpendGet.ts
|
|
134081
|
+
var args299, tool$servingSpendGet;
|
|
134082
|
+
var init_servingSpendGet2 = __esm(() => {
|
|
134083
|
+
init_servingSpendGet();
|
|
134084
|
+
init_operations();
|
|
134085
|
+
init_tools();
|
|
134086
|
+
args299 = {
|
|
134087
|
+
request: GetServingUsageRequest$inboundSchema
|
|
134088
|
+
};
|
|
134089
|
+
tool$servingSpendGet = {
|
|
134090
|
+
name: "serving-spend-get",
|
|
134091
|
+
description: `Cost and spend summary
|
|
134092
|
+
|
|
134093
|
+
Aggregate spend for your organization, computed from retained compute ledgers as price × runtime overlap with the requested window. Spend is derived on read and is never stored.`,
|
|
134094
|
+
args: args299,
|
|
134095
|
+
tool: async (client, args300, ctx) => {
|
|
134096
|
+
const [result, apiCall] = await servingSpendGet(client, args300.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134097
|
+
if (!result.ok) {
|
|
134098
|
+
return {
|
|
134099
|
+
content: [{ type: "text", text: result.error.message }],
|
|
134100
|
+
isError: true
|
|
134101
|
+
};
|
|
134102
|
+
}
|
|
134103
|
+
const value = result.value;
|
|
134104
|
+
return formatResult(value, apiCall);
|
|
134105
|
+
}
|
|
134106
|
+
};
|
|
134107
|
+
});
|
|
134108
|
+
|
|
134109
|
+
// src/funcs/servingTenantsGet.ts
|
|
134110
|
+
function servingTenantsGet(client, request, options) {
|
|
134111
|
+
return new APIPromise($do309(client, request, options));
|
|
134112
|
+
}
|
|
134113
|
+
async function $do309(client, request, options) {
|
|
134114
|
+
const parsed = safeParse4(request, (value) => GetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134115
|
+
if (!parsed.ok) {
|
|
134116
|
+
return [parsed, { status: "invalid" }];
|
|
134117
|
+
}
|
|
134118
|
+
const payload = parsed.value;
|
|
134119
|
+
const body = null;
|
|
134120
|
+
const pathParams = {
|
|
134121
|
+
org_id: encodeSimple("org_id", payload.org_id, {
|
|
134122
|
+
explode: false,
|
|
134123
|
+
charEncoding: "percent"
|
|
134124
|
+
})
|
|
134125
|
+
};
|
|
134126
|
+
const path = pathToFunc("/api/v1/serving/tenants/{org_id}")(pathParams);
|
|
134127
|
+
const headers = new Headers(compactMap({
|
|
134128
|
+
Accept: "application/json",
|
|
134129
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
134130
|
+
}));
|
|
134131
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
134132
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
134133
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
134134
|
+
const context = {
|
|
134135
|
+
options: client._options,
|
|
134136
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134137
|
+
operationID: "getServingTenant",
|
|
134138
|
+
oAuth2Scopes: null,
|
|
134139
|
+
resolvedSecurity: requestSecurity,
|
|
134140
|
+
securitySource: client._options.bearerAuth,
|
|
134141
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
134142
|
+
strategy: "backoff",
|
|
134143
|
+
backoff: {
|
|
134144
|
+
initialInterval: 500,
|
|
134145
|
+
maxInterval: 5000,
|
|
134146
|
+
exponent: 1.5,
|
|
134147
|
+
maxElapsedTime: 15000
|
|
134148
|
+
},
|
|
134149
|
+
retryConnectionErrors: true
|
|
134150
|
+
},
|
|
134151
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
134152
|
+
};
|
|
134153
|
+
const requestRes = client._createRequest(context, {
|
|
134154
|
+
security: requestSecurity,
|
|
134155
|
+
method: "GET",
|
|
134156
|
+
baseURL: options?.serverURL,
|
|
134157
|
+
path,
|
|
134158
|
+
headers,
|
|
134159
|
+
body,
|
|
134160
|
+
userAgent: client._options.userAgent,
|
|
134161
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
134162
|
+
}, options);
|
|
134163
|
+
if (!requestRes.ok) {
|
|
134164
|
+
return [requestRes, { status: "invalid" }];
|
|
134165
|
+
}
|
|
134166
|
+
const req = requestRes.value;
|
|
134167
|
+
const doResult = await client._do(req, {
|
|
134168
|
+
context,
|
|
134169
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
134170
|
+
retryConfig: context.retryConfig,
|
|
134171
|
+
retryCodes: context.retryCodes
|
|
134172
|
+
});
|
|
134173
|
+
if (!doResult.ok) {
|
|
134174
|
+
return [doResult, { status: "request-error", request: req }];
|
|
134175
|
+
}
|
|
134176
|
+
const response = doResult.value;
|
|
134177
|
+
const responseFields = {
|
|
134178
|
+
HttpMeta: { Response: response, Request: req }
|
|
134179
|
+
};
|
|
134180
|
+
const [result] = await match(json(200, ServingTenant$inboundSchema), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
134181
|
+
if (!result.ok) {
|
|
134182
|
+
return [result, { status: "complete", request: req, response }];
|
|
134183
|
+
}
|
|
134184
|
+
return [result, { status: "complete", request: req, response }];
|
|
134185
|
+
}
|
|
134186
|
+
var init_servingTenantsGet = __esm(() => {
|
|
134187
|
+
init_encodings();
|
|
134188
|
+
init_http();
|
|
134189
|
+
init_matchers();
|
|
134190
|
+
init_primitives();
|
|
134191
|
+
init_schemas4();
|
|
134192
|
+
init_security();
|
|
134193
|
+
init_url();
|
|
134194
|
+
init_components();
|
|
134195
|
+
init_errors4();
|
|
134196
|
+
init_operations();
|
|
134197
|
+
init_async();
|
|
134198
|
+
});
|
|
134199
|
+
|
|
134200
|
+
// src/mcp-server/tools/servingTenantsGet.ts
|
|
134201
|
+
var args300, tool$servingTenantsGet;
|
|
134202
|
+
var init_servingTenantsGet2 = __esm(() => {
|
|
134203
|
+
init_servingTenantsGet();
|
|
134204
|
+
init_operations();
|
|
134205
|
+
init_tools();
|
|
134206
|
+
args300 = {
|
|
134207
|
+
request: GetServingTenantRequest$inboundSchema
|
|
134208
|
+
};
|
|
134209
|
+
tool$servingTenantsGet = {
|
|
134210
|
+
name: "serving-tenants-get",
|
|
134211
|
+
description: `Get a serving tenant
|
|
134212
|
+
|
|
134213
|
+
Get one organization's serving enablement record. Cluster administrators only. Deprecated: this operation has moved to the operator admin plane at \`GET /api/v1/admin/tenants/{org_id}\`. This path keeps working for one transition release (responses carry \`Deprecation: true\` and a \`Link\` successor header) and is removed from this document in the next SDK major.`,
|
|
134214
|
+
args: args300,
|
|
134215
|
+
tool: async (client, args301, ctx) => {
|
|
134216
|
+
const [result, apiCall] = await servingTenantsGet(client, args301.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134217
|
+
if (!result.ok) {
|
|
134218
|
+
return {
|
|
134219
|
+
content: [{ type: "text", text: result.error.message }],
|
|
134220
|
+
isError: true
|
|
134221
|
+
};
|
|
134222
|
+
}
|
|
134223
|
+
const value = result.value;
|
|
134224
|
+
return formatResult(value, apiCall);
|
|
134225
|
+
}
|
|
134226
|
+
};
|
|
134227
|
+
});
|
|
134228
|
+
|
|
134229
|
+
// src/funcs/servingTenantsList.ts
|
|
134230
|
+
function servingTenantsList(client, request, options) {
|
|
134231
|
+
return new APIPromise($do310(client, request, options));
|
|
134232
|
+
}
|
|
134233
|
+
async function $do310(client, request, options) {
|
|
134234
|
+
const parsed = safeParse4(request, (value) => ListServingTenantsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134235
|
+
if (!parsed.ok) {
|
|
134236
|
+
return [parsed, { status: "invalid" }];
|
|
134237
|
+
}
|
|
134238
|
+
const payload = parsed.value;
|
|
134239
|
+
const body = null;
|
|
134240
|
+
const path = pathToFunc("/api/v1/serving/tenants")();
|
|
134241
|
+
const query = encodeFormQuery({
|
|
134242
|
+
cursor: payload.cursor,
|
|
134243
|
+
limit: payload.limit
|
|
134244
|
+
});
|
|
134245
|
+
const headers = new Headers(compactMap({
|
|
134246
|
+
Accept: "application/json",
|
|
134247
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
134248
|
+
}));
|
|
134249
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
134250
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
134251
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
134252
|
+
const context = {
|
|
134253
|
+
options: client._options,
|
|
134254
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134255
|
+
operationID: "listServingTenants",
|
|
134256
|
+
oAuth2Scopes: null,
|
|
134257
|
+
resolvedSecurity: requestSecurity,
|
|
134258
|
+
securitySource: client._options.bearerAuth,
|
|
134259
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
134260
|
+
strategy: "backoff",
|
|
134261
|
+
backoff: {
|
|
134262
|
+
initialInterval: 500,
|
|
134263
|
+
maxInterval: 5000,
|
|
134264
|
+
exponent: 1.5,
|
|
134265
|
+
maxElapsedTime: 15000
|
|
134266
|
+
},
|
|
134267
|
+
retryConnectionErrors: true
|
|
134268
|
+
},
|
|
134269
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
134270
|
+
};
|
|
134271
|
+
const requestRes = client._createRequest(context, {
|
|
134272
|
+
security: requestSecurity,
|
|
134273
|
+
method: "GET",
|
|
132868
134274
|
baseURL: options?.serverURL,
|
|
132869
134275
|
path,
|
|
132870
134276
|
headers,
|
|
@@ -132911,12 +134317,12 @@ var init_servingTenantsList = __esm(() => {
|
|
|
132911
134317
|
});
|
|
132912
134318
|
|
|
132913
134319
|
// src/mcp-server/tools/servingTenantsList.ts
|
|
132914
|
-
var
|
|
134320
|
+
var args301, tool$servingTenantsList;
|
|
132915
134321
|
var init_servingTenantsList2 = __esm(() => {
|
|
132916
134322
|
init_servingTenantsList();
|
|
132917
134323
|
init_operations();
|
|
132918
134324
|
init_tools();
|
|
132919
|
-
|
|
134325
|
+
args301 = {
|
|
132920
134326
|
request: ListServingTenantsRequest$inboundSchema
|
|
132921
134327
|
};
|
|
132922
134328
|
tool$servingTenantsList = {
|
|
@@ -132924,9 +134330,9 @@ var init_servingTenantsList2 = __esm(() => {
|
|
|
132924
134330
|
description: `List serving tenants
|
|
132925
134331
|
|
|
132926
134332
|
List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned. Deprecated: this operation has moved to the operator admin plane at \`GET /api/v1/admin/tenants\`. This path keeps working for one transition release (responses carry \`Deprecation: true\` and a \`Link\` successor header) and is removed from this document in the next SDK major.`,
|
|
132927
|
-
args:
|
|
132928
|
-
tool: async (client,
|
|
132929
|
-
const [result, apiCall] = await servingTenantsList(client,
|
|
134333
|
+
args: args301,
|
|
134334
|
+
tool: async (client, args302, ctx) => {
|
|
134335
|
+
const [result, apiCall] = await servingTenantsList(client, args302.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
132930
134336
|
if (!result.ok) {
|
|
132931
134337
|
return {
|
|
132932
134338
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -132941,9 +134347,9 @@ List organization-wide serving enablement records. Cluster administrators only;
|
|
|
132941
134347
|
|
|
132942
134348
|
// src/funcs/servingTenantsSet.ts
|
|
132943
134349
|
function servingTenantsSet(client, request, options) {
|
|
132944
|
-
return new APIPromise($
|
|
134350
|
+
return new APIPromise($do311(client, request, options));
|
|
132945
134351
|
}
|
|
132946
|
-
async function $
|
|
134352
|
+
async function $do311(client, request, options) {
|
|
132947
134353
|
const parsed = safeParse4(request, (value) => SetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
132948
134354
|
if (!parsed.ok) {
|
|
132949
134355
|
return [parsed, { status: "invalid" }];
|
|
@@ -133032,12 +134438,12 @@ var init_servingTenantsSet = __esm(() => {
|
|
|
133032
134438
|
});
|
|
133033
134439
|
|
|
133034
134440
|
// src/mcp-server/tools/servingTenantsSet.ts
|
|
133035
|
-
var
|
|
134441
|
+
var args302, tool$servingTenantsSet;
|
|
133036
134442
|
var init_servingTenantsSet2 = __esm(() => {
|
|
133037
134443
|
init_servingTenantsSet();
|
|
133038
134444
|
init_operations();
|
|
133039
134445
|
init_tools();
|
|
133040
|
-
|
|
134446
|
+
args302 = {
|
|
133041
134447
|
request: SetServingTenantRequest$inboundSchema
|
|
133042
134448
|
};
|
|
133043
134449
|
tool$servingTenantsSet = {
|
|
@@ -133045,9 +134451,9 @@ var init_servingTenantsSet2 = __esm(() => {
|
|
|
133045
134451
|
description: `Set serving tenant enablement
|
|
133046
134452
|
|
|
133047
134453
|
Enable or disable serving for an organization and all of its teams. Disabling blocks product API access but does not stop existing workloads or callbacks. Cluster administrators only. Deprecated: this operation has moved to the operator admin plane at \`PUT /api/v1/admin/tenants/{org_id}\`. This path keeps working for one transition release (responses carry \`Deprecation: true\` and a \`Link\` successor header) and is removed from this document in the next SDK major.`,
|
|
133048
|
-
args:
|
|
133049
|
-
tool: async (client,
|
|
133050
|
-
const [result, apiCall] = await servingTenantsSet(client,
|
|
134454
|
+
args: args302,
|
|
134455
|
+
tool: async (client, args303, ctx) => {
|
|
134456
|
+
const [result, apiCall] = await servingTenantsSet(client, args303.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
133051
134457
|
if (!result.ok) {
|
|
133052
134458
|
return {
|
|
133053
134459
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -133062,9 +134468,9 @@ Enable or disable serving for an organization and all of its teams. Disabling bl
|
|
|
133062
134468
|
|
|
133063
134469
|
// src/funcs/usageCosts.ts
|
|
133064
134470
|
function usageCosts(client, request, options) {
|
|
133065
|
-
return new APIPromise($
|
|
134471
|
+
return new APIPromise($do312(client, request, options));
|
|
133066
134472
|
}
|
|
133067
|
-
async function $
|
|
134473
|
+
async function $do312(client, request, options) {
|
|
133068
134474
|
const parsed = safeParse4(request, (value) => GetCostsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
133069
134475
|
if (!parsed.ok) {
|
|
133070
134476
|
return [parsed, { status: "invalid" }];
|
|
@@ -133147,12 +134553,12 @@ var init_usageCosts = __esm(() => {
|
|
|
133147
134553
|
});
|
|
133148
134554
|
|
|
133149
134555
|
// src/mcp-server/tools/usageCosts.ts
|
|
133150
|
-
var
|
|
134556
|
+
var args303, tool$usageCosts;
|
|
133151
134557
|
var init_usageCosts2 = __esm(() => {
|
|
133152
134558
|
init_usageCosts();
|
|
133153
134559
|
init_operations();
|
|
133154
134560
|
init_tools();
|
|
133155
|
-
|
|
134561
|
+
args303 = {
|
|
133156
134562
|
request: GetCostsRequest$inboundSchema
|
|
133157
134563
|
};
|
|
133158
134564
|
tool$usageCosts = {
|
|
@@ -133160,9 +134566,9 @@ var init_usageCosts2 = __esm(() => {
|
|
|
133160
134566
|
description: `Aggregate cost by dimension
|
|
133161
134567
|
|
|
133162
134568
|
Sums stored per-entry cost over [start_time, end_time), grouped by any of service, task_type, model, api_key_id, team_id, user_id, external_user_id, org_id. Point-in-time correct for chargeback/showback.`,
|
|
133163
|
-
args:
|
|
133164
|
-
tool: async (client,
|
|
133165
|
-
const [result, apiCall] = await usageCosts(client,
|
|
134569
|
+
args: args303,
|
|
134570
|
+
tool: async (client, args304, ctx) => {
|
|
134571
|
+
const [result, apiCall] = await usageCosts(client, args304.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
133166
134572
|
if (!result.ok) {
|
|
133167
134573
|
return {
|
|
133168
134574
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -133177,9 +134583,9 @@ Sums stored per-entry cost over [start_time, end_time), grouped by any of servic
|
|
|
133177
134583
|
|
|
133178
134584
|
// src/funcs/usageSandbox.ts
|
|
133179
134585
|
function usageSandbox(client, request, options) {
|
|
133180
|
-
return new APIPromise($
|
|
134586
|
+
return new APIPromise($do313(client, request, options));
|
|
133181
134587
|
}
|
|
133182
|
-
async function $
|
|
134588
|
+
async function $do313(client, request, options) {
|
|
133183
134589
|
const parsed = safeParse4(request, (value) => GetSandboxUsageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
133184
134590
|
if (!parsed.ok) {
|
|
133185
134591
|
return [parsed, { status: "invalid" }];
|
|
@@ -133270,12 +134676,12 @@ var init_usageSandbox = __esm(() => {
|
|
|
133270
134676
|
});
|
|
133271
134677
|
|
|
133272
134678
|
// src/mcp-server/tools/usageSandbox.ts
|
|
133273
|
-
var
|
|
134679
|
+
var args304, tool$usageSandbox;
|
|
133274
134680
|
var init_usageSandbox2 = __esm(() => {
|
|
133275
134681
|
init_usageSandbox();
|
|
133276
134682
|
init_operations();
|
|
133277
134683
|
init_tools();
|
|
133278
|
-
|
|
134684
|
+
args304 = {
|
|
133279
134685
|
request: GetSandboxUsageRequest$inboundSchema
|
|
133280
134686
|
};
|
|
133281
134687
|
tool$usageSandbox = {
|
|
@@ -133283,9 +134689,9 @@ var init_usageSandbox2 = __esm(() => {
|
|
|
133283
134689
|
description: `Get Sandbox Usage
|
|
133284
134690
|
|
|
133285
134691
|
Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass \`all_orgs\` or \`org_ids\`. Cost and spend reporting lives in the budgeting API (\`/api/v1/budgeting/usage/costs\`).`,
|
|
133286
|
-
args:
|
|
133287
|
-
tool: async (client,
|
|
133288
|
-
const [result, apiCall] = await usageSandbox(client,
|
|
134692
|
+
args: args304,
|
|
134693
|
+
tool: async (client, args305, ctx) => {
|
|
134694
|
+
const [result, apiCall] = await usageSandbox(client, args305.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
133289
134695
|
if (!result.ok) {
|
|
133290
134696
|
return {
|
|
133291
134697
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -133302,7 +134708,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
|
|
|
133302
134708
|
function createMCPServer(deps) {
|
|
133303
134709
|
const server = new McpServer({
|
|
133304
134710
|
name: "SDK",
|
|
133305
|
-
version: "0.51.
|
|
134711
|
+
version: "0.51.26"
|
|
133306
134712
|
});
|
|
133307
134713
|
const client = new SDKCore({
|
|
133308
134714
|
bearerAuth: deps.bearerAuth,
|
|
@@ -133382,6 +134788,11 @@ function createMCPServer(deps) {
|
|
|
133382
134788
|
tool(tool$fineTuneJobsGetServingRunEvents);
|
|
133383
134789
|
tool(tool$fineTuneJobsGetServingRunLogs);
|
|
133384
134790
|
tool(tool$deploymentsDeleteServingRun);
|
|
134791
|
+
tool(tool$reposList);
|
|
134792
|
+
tool(tool$reposCreate);
|
|
134793
|
+
tool(tool$reposDelete);
|
|
134794
|
+
tool(tool$reposGet);
|
|
134795
|
+
tool(tool$reposUpdate);
|
|
133385
134796
|
tool(tool$permissionsLlmGrant);
|
|
133386
134797
|
tool(tool$permissionsLlmRevoke);
|
|
133387
134798
|
tool(tool$permissionsLlmCheck);
|
|
@@ -133621,6 +135032,9 @@ function createMCPServer(deps) {
|
|
|
133621
135032
|
tool(tool$servingTenantsGet);
|
|
133622
135033
|
tool(tool$servingTenantsSet);
|
|
133623
135034
|
tool(tool$servingSpendGet);
|
|
135035
|
+
tool(tool$reposCollaboratorsList);
|
|
135036
|
+
tool(tool$reposCollaboratorsRemove);
|
|
135037
|
+
tool(tool$reposCollaboratorsAdd);
|
|
133624
135038
|
return server;
|
|
133625
135039
|
}
|
|
133626
135040
|
var init_server2 = __esm(() => {
|
|
@@ -133906,6 +135320,14 @@ var init_server2 = __esm(() => {
|
|
|
133906
135320
|
init_permissionsLlmCheck2();
|
|
133907
135321
|
init_permissionsLlmGrant2();
|
|
133908
135322
|
init_permissionsLlmRevoke2();
|
|
135323
|
+
init_reposCollaboratorsAdd2();
|
|
135324
|
+
init_reposCollaboratorsList2();
|
|
135325
|
+
init_reposCollaboratorsRemove2();
|
|
135326
|
+
init_reposCreate2();
|
|
135327
|
+
init_reposDelete2();
|
|
135328
|
+
init_reposGet2();
|
|
135329
|
+
init_reposList2();
|
|
135330
|
+
init_reposUpdate2();
|
|
133909
135331
|
init_sandboxCreate2();
|
|
133910
135332
|
init_sandboxDownloadArchive2();
|
|
133911
135333
|
init_sandboxDownloadFile2();
|
|
@@ -135110,7 +136532,7 @@ var routes = rn({
|
|
|
135110
136532
|
var app = Ve(routes, {
|
|
135111
136533
|
name: "mcp",
|
|
135112
136534
|
versionInfo: {
|
|
135113
|
-
currentVersion: "0.51.
|
|
136535
|
+
currentVersion: "0.51.26"
|
|
135114
136536
|
}
|
|
135115
136537
|
});
|
|
135116
136538
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -135118,5 +136540,5 @@ export {
|
|
|
135118
136540
|
app
|
|
135119
136541
|
};
|
|
135120
136542
|
|
|
135121
|
-
//# debugId=
|
|
136543
|
+
//# debugId=537E673D7CD84EB664756E2164756E21
|
|
135122
136544
|
//# sourceMappingURL=mcp-server.js.map
|