@meetkai/mka1 0.53.29 → 0.53.30
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 +247 -226
- package/bin/mcp-server.js +1825 -688
- package/bin/mcp-server.js.map +38 -9
- package/dist/commonjs/funcs/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.d.ts +16 -0
- package/dist/commonjs/funcs/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.d.ts.map +1 -0
- package/dist/commonjs/funcs/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.js +130 -0
- package/dist/commonjs/funcs/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.js.map +1 -0
- package/dist/commonjs/funcs/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.d.ts +15 -0
- package/dist/commonjs/funcs/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.d.ts.map +1 -0
- package/dist/commonjs/funcs/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.js +125 -0
- package/dist/commonjs/funcs/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.js.map +1 -0
- package/dist/commonjs/funcs/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.d.ts +14 -0
- package/dist/commonjs/funcs/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.d.ts.map +1 -0
- package/dist/commonjs/funcs/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.js +125 -0
- package/dist/commonjs/funcs/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.js.map +1 -0
- package/dist/commonjs/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts +15 -0
- package/dist/commonjs/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js +125 -0
- package/dist/commonjs/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js.map +1 -0
- package/dist/commonjs/funcs/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.d.ts +15 -0
- package/dist/commonjs/funcs/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.js +125 -0
- package/dist/commonjs/funcs/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.js.map +1 -0
- package/dist/commonjs/funcs/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.d.ts +15 -0
- package/dist/commonjs/funcs/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.d.ts.map +1 -0
- package/dist/commonjs/funcs/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.js +125 -0
- package/dist/commonjs/funcs/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.js.map +1 -0
- package/dist/commonjs/funcs/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.d.ts +16 -0
- package/dist/commonjs/funcs/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.d.ts.map +1 -0
- package/dist/commonjs/funcs/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.js +132 -0
- package/dist/commonjs/funcs/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +15 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.js +63 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.js +63 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.js +62 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js +63 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.js +63 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.js +63 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.js +63 -0
- package/dist/commonjs/mcp-server/tools/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.js.map +1 -0
- package/dist/commonjs/models/components/authorizeintent.d.ts +21 -0
- package/dist/commonjs/models/components/authorizeintent.d.ts.map +1 -0
- package/dist/commonjs/models/components/authorizeintent.js +73 -0
- package/dist/commonjs/models/components/authorizeintent.js.map +1 -0
- package/dist/commonjs/models/components/connectedrepository.d.ts +25 -0
- package/dist/commonjs/models/components/connectedrepository.d.ts.map +1 -0
- package/dist/commonjs/models/components/connectedrepository.js +77 -0
- package/dist/commonjs/models/components/connectedrepository.js.map +1 -0
- package/dist/commonjs/models/components/connection.d.ts +26 -0
- package/dist/commonjs/models/components/connection.d.ts.map +1 -0
- package/dist/commonjs/models/components/connection.js +80 -0
- package/dist/commonjs/models/components/connection.js.map +1 -0
- package/dist/commonjs/models/components/connectionenvelope.d.ts +21 -0
- package/dist/commonjs/models/components/connectionenvelope.d.ts.map +1 -0
- package/dist/commonjs/models/components/connectionenvelope.js +59 -0
- package/dist/commonjs/models/components/connectionenvelope.js.map +1 -0
- package/dist/commonjs/models/components/connectrequest.d.ts +19 -0
- package/dist/commonjs/models/components/connectrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/connectrequest.js +60 -0
- package/dist/commonjs/models/components/connectrequest.js.map +1 -0
- package/dist/commonjs/models/components/githubreadclonerequest.d.ts +0 -2
- package/dist/commonjs/models/components/githubreadclonerequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/githubreadclonerequest.js +0 -4
- package/dist/commonjs/models/components/githubreadclonerequest.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +8 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +8 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/repositorylist.d.ts +18 -0
- package/dist/commonjs/models/components/repositorylist.d.ts.map +1 -0
- package/dist/commonjs/models/components/repositorylist.js +59 -0
- package/dist/commonjs/models/components/repositorylist.js.map +1 -0
- package/dist/commonjs/models/components/resolvedreference.d.ts +27 -0
- package/dist/commonjs/models/components/resolvedreference.d.ts.map +1 -0
- package/dist/commonjs/models/components/resolvedreference.js +79 -0
- package/dist/commonjs/models/components/resolvedreference.js.map +1 -0
- package/dist/commonjs/models/components/resolvereferencerequest.d.ts +19 -0
- package/dist/commonjs/models/components/resolvereferencerequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/resolvereferencerequest.js +69 -0
- package/dist/commonjs/models/components/resolvereferencerequest.js.map +1 -0
- package/dist/commonjs/models/operations/connectapiv1sandboxgithuboauthconnectionspost.d.ts +23 -0
- package/dist/commonjs/models/operations/connectapiv1sandboxgithuboauthconnectionspost.d.ts.map +1 -0
- package/dist/commonjs/models/operations/connectapiv1sandboxgithuboauthconnectionspost.js +72 -0
- package/dist/commonjs/models/operations/connectapiv1sandboxgithuboauthconnectionspost.js.map +1 -0
- package/dist/commonjs/models/operations/createintentapiv1sandboxgithuboauthintentspost.d.ts +20 -0
- package/dist/commonjs/models/operations/createintentapiv1sandboxgithuboauthintentspost.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createintentapiv1sandboxgithuboauthintentspost.js +67 -0
- package/dist/commonjs/models/operations/createintentapiv1sandboxgithuboauthintentspost.js.map +1 -0
- package/dist/commonjs/models/operations/disconnectapiv1sandboxgithuboauthconnectionsdelete.d.ts +20 -0
- package/dist/commonjs/models/operations/disconnectapiv1sandboxgithuboauthconnectionsdelete.d.ts.map +1 -0
- package/dist/commonjs/models/operations/disconnectapiv1sandboxgithuboauthconnectionsdelete.js +69 -0
- package/dist/commonjs/models/operations/disconnectapiv1sandboxgithuboauthconnectionsdelete.js.map +1 -0
- package/dist/commonjs/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.d.ts +20 -0
- package/dist/commonjs/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.js +69 -0
- package/dist/commonjs/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +7 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +7 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listrepositoriesapiv1sandboxgithubrepositoriesget.d.ts +20 -0
- package/dist/commonjs/models/operations/listrepositoriesapiv1sandboxgithubrepositoriesget.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listrepositoriesapiv1sandboxgithubrepositoriesget.js +69 -0
- package/dist/commonjs/models/operations/listrepositoriesapiv1sandboxgithubrepositoriesget.js.map +1 -0
- package/dist/commonjs/models/operations/refreshrepositoriesapiv1sandboxgithubrepositoriesrefreshpost.d.ts +20 -0
- package/dist/commonjs/models/operations/refreshrepositoriesapiv1sandboxgithubrepositoriesrefreshpost.d.ts.map +1 -0
- package/dist/commonjs/models/operations/refreshrepositoriesapiv1sandboxgithubrepositoriesrefreshpost.js +69 -0
- package/dist/commonjs/models/operations/refreshrepositoriesapiv1sandboxgithubrepositoriesrefreshpost.js.map +1 -0
- package/dist/commonjs/models/operations/resolvereferenceapiv1sandboxgithubrepositoriesresolvepost.d.ts +23 -0
- package/dist/commonjs/models/operations/resolvereferenceapiv1sandboxgithubrepositoriesresolvepost.d.ts.map +1 -0
- package/dist/commonjs/models/operations/resolvereferenceapiv1sandboxgithubrepositoriesresolvepost.js +74 -0
- package/dist/commonjs/models/operations/resolvereferenceapiv1sandboxgithubrepositoriesresolvepost.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +7 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +7 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.d.ts +27 -0
- package/dist/commonjs/react-query/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.d.ts.map +1 -0
- package/dist/commonjs/react-query/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.js +48 -0
- package/dist/commonjs/react-query/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.js.map +1 -0
- package/dist/commonjs/react-query/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.d.ts +26 -0
- package/dist/commonjs/react-query/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.d.ts.map +1 -0
- package/dist/commonjs/react-query/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.js +48 -0
- package/dist/commonjs/react-query/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.js.map +1 -0
- package/dist/commonjs/react-query/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.d.ts +25 -0
- package/dist/commonjs/react-query/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.d.ts.map +1 -0
- package/dist/commonjs/react-query/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.js +48 -0
- package/dist/commonjs/react-query/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.js.map +1 -0
- package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.d.ts +15 -0
- package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.js +41 -0
- package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.js.map +1 -0
- package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts +28 -0
- package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts.map +1 -0
- package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js +63 -0
- package/dist/commonjs/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js.map +1 -0
- package/dist/commonjs/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.core.d.ts +15 -0
- package/dist/commonjs/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.core.js +41 -0
- package/dist/commonjs/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.core.js.map +1 -0
- package/dist/commonjs/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.d.ts +28 -0
- package/dist/commonjs/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.d.ts.map +1 -0
- package/dist/commonjs/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.js +63 -0
- package/dist/commonjs/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.js.map +1 -0
- package/dist/commonjs/react-query/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.d.ts +26 -0
- package/dist/commonjs/react-query/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.d.ts.map +1 -0
- package/dist/commonjs/react-query/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.js +48 -0
- package/dist/commonjs/react-query/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.js.map +1 -0
- package/dist/commonjs/react-query/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.d.ts +27 -0
- package/dist/commonjs/react-query/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.d.ts.map +1 -0
- package/dist/commonjs/react-query/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.js +48 -0
- package/dist/commonjs/react-query/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.js.map +1 -0
- package/dist/commonjs/sdk/schema3other.d.ts +28 -0
- package/dist/commonjs/sdk/schema3other.d.ts.map +1 -1
- package/dist/commonjs/sdk/schema3other.js +49 -0
- package/dist/commonjs/sdk/schema3other.js.map +1 -1
- package/dist/esm/funcs/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.d.ts +16 -0
- package/dist/esm/funcs/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.d.ts.map +1 -0
- package/dist/esm/funcs/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.js +94 -0
- package/dist/esm/funcs/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.js.map +1 -0
- package/dist/esm/funcs/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.d.ts +15 -0
- package/dist/esm/funcs/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.d.ts.map +1 -0
- package/dist/esm/funcs/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.js +89 -0
- package/dist/esm/funcs/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.js.map +1 -0
- package/dist/esm/funcs/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.d.ts +14 -0
- package/dist/esm/funcs/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.d.ts.map +1 -0
- package/dist/esm/funcs/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.js +89 -0
- package/dist/esm/funcs/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.js.map +1 -0
- package/dist/esm/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts +15 -0
- package/dist/esm/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts.map +1 -0
- package/dist/esm/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js +89 -0
- package/dist/esm/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js.map +1 -0
- package/dist/esm/funcs/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.d.ts +15 -0
- package/dist/esm/funcs/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.d.ts.map +1 -0
- package/dist/esm/funcs/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.js +89 -0
- package/dist/esm/funcs/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.js.map +1 -0
- package/dist/esm/funcs/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.d.ts +15 -0
- package/dist/esm/funcs/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.d.ts.map +1 -0
- package/dist/esm/funcs/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.js +89 -0
- package/dist/esm/funcs/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.js.map +1 -0
- package/dist/esm/funcs/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.d.ts +16 -0
- package/dist/esm/funcs/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.d.ts.map +1 -0
- package/dist/esm/funcs/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.js +96 -0
- package/dist/esm/funcs/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +15 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.d.ts +8 -0
- package/dist/esm/mcp-server/tools/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.js +27 -0
- package/dist/esm/mcp-server/tools/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.js.map +1 -0
- package/dist/esm/mcp-server/tools/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.d.ts +8 -0
- package/dist/esm/mcp-server/tools/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.js +27 -0
- package/dist/esm/mcp-server/tools/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.js.map +1 -0
- package/dist/esm/mcp-server/tools/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.d.ts +8 -0
- package/dist/esm/mcp-server/tools/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.js +26 -0
- package/dist/esm/mcp-server/tools/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.js.map +1 -0
- package/dist/esm/mcp-server/tools/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js +27 -0
- package/dist/esm/mcp-server/tools/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js.map +1 -0
- package/dist/esm/mcp-server/tools/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.js +27 -0
- package/dist/esm/mcp-server/tools/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.js.map +1 -0
- package/dist/esm/mcp-server/tools/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.d.ts +8 -0
- package/dist/esm/mcp-server/tools/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.js +27 -0
- package/dist/esm/mcp-server/tools/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.js.map +1 -0
- package/dist/esm/mcp-server/tools/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.d.ts +8 -0
- package/dist/esm/mcp-server/tools/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.js +27 -0
- package/dist/esm/mcp-server/tools/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.js.map +1 -0
- package/dist/esm/models/components/authorizeintent.d.ts +21 -0
- package/dist/esm/models/components/authorizeintent.d.ts.map +1 -0
- package/dist/esm/models/components/authorizeintent.js +35 -0
- package/dist/esm/models/components/authorizeintent.js.map +1 -0
- package/dist/esm/models/components/connectedrepository.d.ts +25 -0
- package/dist/esm/models/components/connectedrepository.d.ts.map +1 -0
- package/dist/esm/models/components/connectedrepository.js +39 -0
- package/dist/esm/models/components/connectedrepository.js.map +1 -0
- package/dist/esm/models/components/connection.d.ts +26 -0
- package/dist/esm/models/components/connection.d.ts.map +1 -0
- package/dist/esm/models/components/connection.js +42 -0
- package/dist/esm/models/components/connection.js.map +1 -0
- package/dist/esm/models/components/connectionenvelope.d.ts +21 -0
- package/dist/esm/models/components/connectionenvelope.d.ts.map +1 -0
- package/dist/esm/models/components/connectionenvelope.js +21 -0
- package/dist/esm/models/components/connectionenvelope.js.map +1 -0
- package/dist/esm/models/components/connectrequest.d.ts +19 -0
- package/dist/esm/models/components/connectrequest.d.ts.map +1 -0
- package/dist/esm/models/components/connectrequest.js +22 -0
- package/dist/esm/models/components/connectrequest.js.map +1 -0
- package/dist/esm/models/components/githubreadclonerequest.d.ts +0 -2
- package/dist/esm/models/components/githubreadclonerequest.d.ts.map +1 -1
- package/dist/esm/models/components/githubreadclonerequest.js +0 -4
- package/dist/esm/models/components/githubreadclonerequest.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +8 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +8 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/repositorylist.d.ts +18 -0
- package/dist/esm/models/components/repositorylist.d.ts.map +1 -0
- package/dist/esm/models/components/repositorylist.js +21 -0
- package/dist/esm/models/components/repositorylist.js.map +1 -0
- package/dist/esm/models/components/resolvedreference.d.ts +27 -0
- package/dist/esm/models/components/resolvedreference.d.ts.map +1 -0
- package/dist/esm/models/components/resolvedreference.js +41 -0
- package/dist/esm/models/components/resolvedreference.js.map +1 -0
- package/dist/esm/models/components/resolvereferencerequest.d.ts +19 -0
- package/dist/esm/models/components/resolvereferencerequest.d.ts.map +1 -0
- package/dist/esm/models/components/resolvereferencerequest.js +31 -0
- package/dist/esm/models/components/resolvereferencerequest.js.map +1 -0
- package/dist/esm/models/operations/connectapiv1sandboxgithuboauthconnectionspost.d.ts +23 -0
- package/dist/esm/models/operations/connectapiv1sandboxgithuboauthconnectionspost.d.ts.map +1 -0
- package/dist/esm/models/operations/connectapiv1sandboxgithuboauthconnectionspost.js +34 -0
- package/dist/esm/models/operations/connectapiv1sandboxgithuboauthconnectionspost.js.map +1 -0
- package/dist/esm/models/operations/createintentapiv1sandboxgithuboauthintentspost.d.ts +20 -0
- package/dist/esm/models/operations/createintentapiv1sandboxgithuboauthintentspost.d.ts.map +1 -0
- package/dist/esm/models/operations/createintentapiv1sandboxgithuboauthintentspost.js +29 -0
- package/dist/esm/models/operations/createintentapiv1sandboxgithuboauthintentspost.js.map +1 -0
- package/dist/esm/models/operations/disconnectapiv1sandboxgithuboauthconnectionsdelete.d.ts +20 -0
- package/dist/esm/models/operations/disconnectapiv1sandboxgithuboauthconnectionsdelete.d.ts.map +1 -0
- package/dist/esm/models/operations/disconnectapiv1sandboxgithuboauthconnectionsdelete.js +31 -0
- package/dist/esm/models/operations/disconnectapiv1sandboxgithuboauthconnectionsdelete.js.map +1 -0
- package/dist/esm/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.d.ts +20 -0
- package/dist/esm/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.d.ts.map +1 -0
- package/dist/esm/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.js +31 -0
- package/dist/esm/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +7 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +7 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listrepositoriesapiv1sandboxgithubrepositoriesget.d.ts +20 -0
- package/dist/esm/models/operations/listrepositoriesapiv1sandboxgithubrepositoriesget.d.ts.map +1 -0
- package/dist/esm/models/operations/listrepositoriesapiv1sandboxgithubrepositoriesget.js +31 -0
- package/dist/esm/models/operations/listrepositoriesapiv1sandboxgithubrepositoriesget.js.map +1 -0
- package/dist/esm/models/operations/refreshrepositoriesapiv1sandboxgithubrepositoriesrefreshpost.d.ts +20 -0
- package/dist/esm/models/operations/refreshrepositoriesapiv1sandboxgithubrepositoriesrefreshpost.d.ts.map +1 -0
- package/dist/esm/models/operations/refreshrepositoriesapiv1sandboxgithubrepositoriesrefreshpost.js +31 -0
- package/dist/esm/models/operations/refreshrepositoriesapiv1sandboxgithubrepositoriesrefreshpost.js.map +1 -0
- package/dist/esm/models/operations/resolvereferenceapiv1sandboxgithubrepositoriesresolvepost.d.ts +23 -0
- package/dist/esm/models/operations/resolvereferenceapiv1sandboxgithubrepositoriesresolvepost.d.ts.map +1 -0
- package/dist/esm/models/operations/resolvereferenceapiv1sandboxgithubrepositoriesresolvepost.js +36 -0
- package/dist/esm/models/operations/resolvereferenceapiv1sandboxgithubrepositoriesresolvepost.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +7 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +7 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.d.ts +27 -0
- package/dist/esm/react-query/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.d.ts.map +1 -0
- package/dist/esm/react-query/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.js +43 -0
- package/dist/esm/react-query/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.js.map +1 -0
- package/dist/esm/react-query/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.d.ts +26 -0
- package/dist/esm/react-query/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.d.ts.map +1 -0
- package/dist/esm/react-query/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.js +43 -0
- package/dist/esm/react-query/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.js.map +1 -0
- package/dist/esm/react-query/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.d.ts +25 -0
- package/dist/esm/react-query/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.d.ts.map +1 -0
- package/dist/esm/react-query/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.js +43 -0
- package/dist/esm/react-query/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.js.map +1 -0
- package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.d.ts +15 -0
- package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.d.ts.map +1 -0
- package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.js +36 -0
- package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.js.map +1 -0
- package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts +28 -0
- package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.d.ts.map +1 -0
- package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js +53 -0
- package/dist/esm/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js.map +1 -0
- package/dist/esm/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.core.d.ts +15 -0
- package/dist/esm/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.core.d.ts.map +1 -0
- package/dist/esm/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.core.js +36 -0
- package/dist/esm/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.core.js.map +1 -0
- package/dist/esm/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.d.ts +28 -0
- package/dist/esm/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.d.ts.map +1 -0
- package/dist/esm/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.js +53 -0
- package/dist/esm/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.js.map +1 -0
- package/dist/esm/react-query/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.d.ts +26 -0
- package/dist/esm/react-query/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.d.ts.map +1 -0
- package/dist/esm/react-query/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.js +43 -0
- package/dist/esm/react-query/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.js.map +1 -0
- package/dist/esm/react-query/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.d.ts +27 -0
- package/dist/esm/react-query/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.d.ts.map +1 -0
- package/dist/esm/react-query/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.js +43 -0
- package/dist/esm/react-query/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.js.map +1 -0
- package/dist/esm/sdk/schema3other.d.ts +28 -0
- package/dist/esm/sdk/schema3other.d.ts.map +1 -1
- package/dist/esm/sdk/schema3other.js +49 -0
- package/dist/esm/sdk/schema3other.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.ts +187 -0
- package/src/funcs/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.ts +177 -0
- package/src/funcs/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.ts +177 -0
- package/src/funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.ts +177 -0
- package/src/funcs/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.ts +177 -0
- package/src/funcs/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.ts +180 -0
- package/src/funcs/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.ts +192 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +19 -1
- package/src/mcp-server/tools/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.ts +39 -0
- package/src/mcp-server/tools/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.ts +40 -0
- package/src/mcp-server/tools/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.ts +38 -0
- package/src/mcp-server/tools/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.ts +40 -0
- package/src/mcp-server/tools/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.ts +40 -0
- package/src/mcp-server/tools/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.ts +40 -0
- package/src/mcp-server/tools/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.ts +40 -0
- package/src/models/components/authorizeintent.ts +68 -0
- package/src/models/components/connectedrepository.ts +78 -0
- package/src/models/components/connection.ts +82 -0
- package/src/models/components/connectionenvelope.ts +60 -0
- package/src/models/components/connectrequest.ts +51 -0
- package/src/models/components/githubreadclonerequest.ts +0 -6
- package/src/models/components/index.ts +8 -0
- package/src/models/components/repositorylist.ts +53 -0
- package/src/models/components/resolvedreference.ts +82 -0
- package/src/models/components/resolvereferencerequest.ts +64 -0
- package/src/models/operations/connectapiv1sandboxgithuboauthconnectionspost.ts +81 -0
- package/src/models/operations/createintentapiv1sandboxgithuboauthintentspost.ts +74 -0
- package/src/models/operations/disconnectapiv1sandboxgithuboauthconnectionsdelete.ts +73 -0
- package/src/models/operations/getconnectionapiv1sandboxgithuboauthconnectionsget.ts +73 -0
- package/src/models/operations/index.ts +7 -0
- package/src/models/operations/listrepositoriesapiv1sandboxgithubrepositoriesget.ts +73 -0
- package/src/models/operations/refreshrepositoriesapiv1sandboxgithubrepositoriesrefreshpost.ts +76 -0
- package/src/models/operations/resolvereferenceapiv1sandboxgithubrepositoriesresolvepost.ts +80 -0
- package/src/react-query/index.ts +7 -0
- package/src/react-query/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.ts +128 -0
- package/src/react-query/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.ts +126 -0
- package/src/react-query/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.ts +126 -0
- package/src/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.core.ts +89 -0
- package/src/react-query/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.ts +149 -0
- package/src/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.core.ts +89 -0
- package/src/react-query/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.ts +149 -0
- package/src/react-query/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.ts +127 -0
- package/src/react-query/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.ts +129 -0
- package/src/sdk/schema3other.ts +124 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKCore } from "../core.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Resolve Reference
|
|
32
|
+
*/
|
|
33
|
+
export function schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost(
|
|
34
|
+
client: SDKCore,
|
|
35
|
+
request:
|
|
36
|
+
operations.ResolveReferenceApiV1SandboxGithubRepositoriesResolvePostRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<
|
|
39
|
+
Result<
|
|
40
|
+
components.ResolvedReference,
|
|
41
|
+
| errors.HTTPValidationError
|
|
42
|
+
| SDKError
|
|
43
|
+
| ResponseValidationError
|
|
44
|
+
| ConnectionError
|
|
45
|
+
| RequestAbortedError
|
|
46
|
+
| RequestTimeoutError
|
|
47
|
+
| InvalidRequestError
|
|
48
|
+
| UnexpectedClientError
|
|
49
|
+
| SDKValidationError
|
|
50
|
+
>
|
|
51
|
+
> {
|
|
52
|
+
return new APIPromise($do(
|
|
53
|
+
client,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function $do(
|
|
60
|
+
client: SDKCore,
|
|
61
|
+
request:
|
|
62
|
+
operations.ResolveReferenceApiV1SandboxGithubRepositoriesResolvePostRequest,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<
|
|
65
|
+
[
|
|
66
|
+
Result<
|
|
67
|
+
components.ResolvedReference,
|
|
68
|
+
| errors.HTTPValidationError
|
|
69
|
+
| SDKError
|
|
70
|
+
| ResponseValidationError
|
|
71
|
+
| ConnectionError
|
|
72
|
+
| RequestAbortedError
|
|
73
|
+
| RequestTimeoutError
|
|
74
|
+
| InvalidRequestError
|
|
75
|
+
| UnexpectedClientError
|
|
76
|
+
| SDKValidationError
|
|
77
|
+
>,
|
|
78
|
+
APICall,
|
|
79
|
+
]
|
|
80
|
+
> {
|
|
81
|
+
const parsed = safeParse(
|
|
82
|
+
request,
|
|
83
|
+
(value) =>
|
|
84
|
+
operations
|
|
85
|
+
.ResolveReferenceApiV1SandboxGithubRepositoriesResolvePostRequest$outboundSchema
|
|
86
|
+
.parse(value),
|
|
87
|
+
"Input validation failed",
|
|
88
|
+
);
|
|
89
|
+
if (!parsed.ok) {
|
|
90
|
+
return [parsed, { status: "invalid" }];
|
|
91
|
+
}
|
|
92
|
+
const payload = parsed.value;
|
|
93
|
+
const body = encodeJSON("body", payload.ResolveReferenceRequest, {
|
|
94
|
+
explode: true,
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
const path = pathToFunc("/api/v1/sandbox/github/repositories/resolve")();
|
|
98
|
+
|
|
99
|
+
const headers = new Headers(compactMap({
|
|
100
|
+
"Content-Type": "application/json",
|
|
101
|
+
Accept: "application/json",
|
|
102
|
+
"X-On-Behalf-Of": encodeSimple(
|
|
103
|
+
"X-On-Behalf-Of",
|
|
104
|
+
payload["X-On-Behalf-Of"],
|
|
105
|
+
{ explode: false, charEncoding: "none" },
|
|
106
|
+
),
|
|
107
|
+
}));
|
|
108
|
+
|
|
109
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
110
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
111
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
112
|
+
|
|
113
|
+
const context = {
|
|
114
|
+
options: client._options,
|
|
115
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
116
|
+
operationID:
|
|
117
|
+
"resolve_reference_api_v1_sandbox_github_repositories_resolve_post",
|
|
118
|
+
oAuth2Scopes: null,
|
|
119
|
+
|
|
120
|
+
resolvedSecurity: requestSecurity,
|
|
121
|
+
|
|
122
|
+
securitySource: client._options.bearerAuth,
|
|
123
|
+
retryConfig: options?.retries
|
|
124
|
+
|| client._options.retryConfig
|
|
125
|
+
|| {
|
|
126
|
+
strategy: "backoff",
|
|
127
|
+
backoff: {
|
|
128
|
+
initialInterval: 500,
|
|
129
|
+
maxInterval: 5000,
|
|
130
|
+
exponent: 1.5,
|
|
131
|
+
maxElapsedTime: 15000,
|
|
132
|
+
},
|
|
133
|
+
retryConnectionErrors: true,
|
|
134
|
+
}
|
|
135
|
+
|| { strategy: "none" },
|
|
136
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
const requestRes = client._createRequest(context, {
|
|
140
|
+
security: requestSecurity,
|
|
141
|
+
method: "POST",
|
|
142
|
+
baseURL: options?.serverURL,
|
|
143
|
+
path: path,
|
|
144
|
+
headers: headers,
|
|
145
|
+
body: body,
|
|
146
|
+
userAgent: client._options.userAgent,
|
|
147
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
148
|
+
}, options);
|
|
149
|
+
if (!requestRes.ok) {
|
|
150
|
+
return [requestRes, { status: "invalid" }];
|
|
151
|
+
}
|
|
152
|
+
const req = requestRes.value;
|
|
153
|
+
|
|
154
|
+
const doResult = await client._do(req, {
|
|
155
|
+
context,
|
|
156
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
157
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
158
|
+
retryConfig: context.retryConfig,
|
|
159
|
+
retryCodes: context.retryCodes,
|
|
160
|
+
});
|
|
161
|
+
if (!doResult.ok) {
|
|
162
|
+
return [doResult, { status: "request-error", request: req }];
|
|
163
|
+
}
|
|
164
|
+
const response = doResult.value;
|
|
165
|
+
|
|
166
|
+
const responseFields = {
|
|
167
|
+
HttpMeta: { Response: response, Request: req },
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
const [result] = await M.match<
|
|
171
|
+
components.ResolvedReference,
|
|
172
|
+
| errors.HTTPValidationError
|
|
173
|
+
| SDKError
|
|
174
|
+
| ResponseValidationError
|
|
175
|
+
| ConnectionError
|
|
176
|
+
| RequestAbortedError
|
|
177
|
+
| RequestTimeoutError
|
|
178
|
+
| InvalidRequestError
|
|
179
|
+
| UnexpectedClientError
|
|
180
|
+
| SDKValidationError
|
|
181
|
+
>(
|
|
182
|
+
M.json(200, components.ResolvedReference$inboundSchema),
|
|
183
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
184
|
+
M.fail("4XX"),
|
|
185
|
+
M.fail("5XX"),
|
|
186
|
+
)(response, req, { extraFields: responseFields });
|
|
187
|
+
if (!result.ok) {
|
|
188
|
+
return [result, { status: "complete", request: req, response }];
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
return [result, { status: "complete", request: req, response }];
|
|
192
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.1.0",
|
|
68
|
-
sdkVersion: "0.53.
|
|
69
|
-
genVersion: "2.
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.53.
|
|
68
|
+
sdkVersion: "0.53.30",
|
|
69
|
+
genVersion: "2.931.0",
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.53.30 2.931.0 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -334,7 +334,14 @@ import { tool$sandboxSetPricing } from "./tools/sandboxSetPricing.js";
|
|
|
334
334
|
import { tool$sandboxTerminate } from "./tools/sandboxTerminate.js";
|
|
335
335
|
import { tool$sandboxUploadArchive } from "./tools/sandboxUploadArchive.js";
|
|
336
336
|
import { tool$sandboxUploadFile } from "./tools/sandboxUploadFile.js";
|
|
337
|
+
import { tool$schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost } from "./tools/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.js";
|
|
338
|
+
import { tool$schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost } from "./tools/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.js";
|
|
339
|
+
import { tool$schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete } from "./tools/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.js";
|
|
340
|
+
import { tool$schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet } from "./tools/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js";
|
|
341
|
+
import { tool$schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet } from "./tools/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.js";
|
|
337
342
|
import { tool$schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost } from "./tools/schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost.js";
|
|
343
|
+
import { tool$schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost } from "./tools/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.js";
|
|
344
|
+
import { tool$schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost } from "./tools/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.js";
|
|
338
345
|
import { tool$usageCosts } from "./tools/usageCosts.js";
|
|
339
346
|
import { tool$usageSandbox } from "./tools/usageSandbox.js";
|
|
340
347
|
|
|
@@ -348,7 +355,7 @@ export function createMCPServer(deps: {
|
|
|
348
355
|
}) {
|
|
349
356
|
const server = new McpServer({
|
|
350
357
|
name: "SDK",
|
|
351
|
-
version: "0.53.
|
|
358
|
+
version: "0.53.30",
|
|
352
359
|
});
|
|
353
360
|
|
|
354
361
|
const client = new SDKCore({
|
|
@@ -383,6 +390,17 @@ export function createMCPServer(deps: {
|
|
|
383
390
|
tool(tool$guardrailsDeleteGuardrails);
|
|
384
391
|
tool(tool$guardrailsListGuardrailsPolicies);
|
|
385
392
|
tool(tool$guardrailsTestGuardrails);
|
|
393
|
+
tool(tool$schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost);
|
|
394
|
+
tool(tool$schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet);
|
|
395
|
+
tool(tool$schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost);
|
|
396
|
+
tool(tool$schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete);
|
|
397
|
+
tool(tool$schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet);
|
|
398
|
+
tool(
|
|
399
|
+
tool$schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost,
|
|
400
|
+
);
|
|
401
|
+
tool(
|
|
402
|
+
tool$schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost,
|
|
403
|
+
);
|
|
386
404
|
tool(
|
|
387
405
|
tool$schema3OtherReadCloneApiV1SandboxSessionsSessionIdGithubReadClonePost,
|
|
388
406
|
);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost } from "../../funcs/schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request:
|
|
11
|
+
operations
|
|
12
|
+
.ConnectApiV1SandboxGithubOauthConnectionsPostRequest$inboundSchema,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const tool$schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost:
|
|
16
|
+
ToolDefinition<typeof args> = {
|
|
17
|
+
name: "schema-3-other-connect-api-v1-sandbox-github-oauth-connections-post",
|
|
18
|
+
description: `Connect`,
|
|
19
|
+
args,
|
|
20
|
+
tool: async (client, args, ctx) => {
|
|
21
|
+
const [result, apiCall] =
|
|
22
|
+
await schema3OtherConnectApiV1SandboxGithubOauthConnectionsPost(
|
|
23
|
+
client,
|
|
24
|
+
args.request,
|
|
25
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
26
|
+
).$inspect();
|
|
27
|
+
|
|
28
|
+
if (!result.ok) {
|
|
29
|
+
return {
|
|
30
|
+
content: [{ type: "text", text: result.error.message }],
|
|
31
|
+
isError: true,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const value = result.value;
|
|
36
|
+
|
|
37
|
+
return formatResult(value, apiCall);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost } from "../../funcs/schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request:
|
|
11
|
+
operations
|
|
12
|
+
.CreateIntentApiV1SandboxGithubOauthIntentsPostRequest$inboundSchema,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const tool$schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost:
|
|
16
|
+
ToolDefinition<typeof args> = {
|
|
17
|
+
name:
|
|
18
|
+
"schema-3-other-create-intent-api-v1-sandbox-github-oauth-intents-post",
|
|
19
|
+
description: `Create Intent`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] =
|
|
23
|
+
await schema3OtherCreateIntentApiV1SandboxGithubOauthIntentsPost(
|
|
24
|
+
client,
|
|
25
|
+
args.request,
|
|
26
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
27
|
+
).$inspect();
|
|
28
|
+
|
|
29
|
+
if (!result.ok) {
|
|
30
|
+
return {
|
|
31
|
+
content: [{ type: "text", text: result.error.message }],
|
|
32
|
+
isError: true,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const value = result.value;
|
|
37
|
+
|
|
38
|
+
return formatResult(value, apiCall);
|
|
39
|
+
},
|
|
40
|
+
};
|
package/src/mcp-server/tools/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete } from "../../funcs/schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request:
|
|
11
|
+
operations
|
|
12
|
+
.DisconnectApiV1SandboxGithubOauthConnectionsDeleteRequest$inboundSchema,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const tool$schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete:
|
|
16
|
+
ToolDefinition<typeof args> = {
|
|
17
|
+
name:
|
|
18
|
+
"schema-3-other-disconnect-api-v1-sandbox-github-oauth-connections-delete",
|
|
19
|
+
description: `Disconnect`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] =
|
|
23
|
+
await schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete(
|
|
24
|
+
client,
|
|
25
|
+
args.request,
|
|
26
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
27
|
+
).$inspect();
|
|
28
|
+
|
|
29
|
+
if (!result.ok) {
|
|
30
|
+
return {
|
|
31
|
+
content: [{ type: "text", text: result.error.message }],
|
|
32
|
+
isError: true,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return formatResult(void 0, apiCall);
|
|
37
|
+
},
|
|
38
|
+
};
|
package/src/mcp-server/tools/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet } from "../../funcs/schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request:
|
|
11
|
+
operations
|
|
12
|
+
.GetConnectionApiV1SandboxGithubOauthConnectionsGetRequest$inboundSchema,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const tool$schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet:
|
|
16
|
+
ToolDefinition<typeof args> = {
|
|
17
|
+
name:
|
|
18
|
+
"schema-3-other-get-connection-api-v1-sandbox-github-oauth-connections-get",
|
|
19
|
+
description: `Get Connection`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] =
|
|
23
|
+
await schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet(
|
|
24
|
+
client,
|
|
25
|
+
args.request,
|
|
26
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
27
|
+
).$inspect();
|
|
28
|
+
|
|
29
|
+
if (!result.ok) {
|
|
30
|
+
return {
|
|
31
|
+
content: [{ type: "text", text: result.error.message }],
|
|
32
|
+
isError: true,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const value = result.value;
|
|
37
|
+
|
|
38
|
+
return formatResult(value, apiCall);
|
|
39
|
+
},
|
|
40
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet } from "../../funcs/schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request:
|
|
11
|
+
operations
|
|
12
|
+
.ListRepositoriesApiV1SandboxGithubRepositoriesGetRequest$inboundSchema,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const tool$schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet:
|
|
16
|
+
ToolDefinition<typeof args> = {
|
|
17
|
+
name:
|
|
18
|
+
"schema-3-other-list-repositories-api-v1-sandbox-github-repositories-get",
|
|
19
|
+
description: `List Repositories`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] =
|
|
23
|
+
await schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet(
|
|
24
|
+
client,
|
|
25
|
+
args.request,
|
|
26
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
27
|
+
).$inspect();
|
|
28
|
+
|
|
29
|
+
if (!result.ok) {
|
|
30
|
+
return {
|
|
31
|
+
content: [{ type: "text", text: result.error.message }],
|
|
32
|
+
isError: true,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const value = result.value;
|
|
37
|
+
|
|
38
|
+
return formatResult(value, apiCall);
|
|
39
|
+
},
|
|
40
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost } from "../../funcs/schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request:
|
|
11
|
+
operations
|
|
12
|
+
.RefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPostRequest$inboundSchema,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const tool$schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost:
|
|
16
|
+
ToolDefinition<typeof args> = {
|
|
17
|
+
name:
|
|
18
|
+
"schema-3-other-refresh-repositories-api-v1-sandbox-github-repositories-refresh-post",
|
|
19
|
+
description: `Refresh Repositories`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] =
|
|
23
|
+
await schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost(
|
|
24
|
+
client,
|
|
25
|
+
args.request,
|
|
26
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
27
|
+
).$inspect();
|
|
28
|
+
|
|
29
|
+
if (!result.ok) {
|
|
30
|
+
return {
|
|
31
|
+
content: [{ type: "text", text: result.error.message }],
|
|
32
|
+
isError: true,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const value = result.value;
|
|
37
|
+
|
|
38
|
+
return formatResult(value, apiCall);
|
|
39
|
+
},
|
|
40
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost } from "../../funcs/schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request:
|
|
11
|
+
operations
|
|
12
|
+
.ResolveReferenceApiV1SandboxGithubRepositoriesResolvePostRequest$inboundSchema,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const tool$schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost:
|
|
16
|
+
ToolDefinition<typeof args> = {
|
|
17
|
+
name:
|
|
18
|
+
"schema-3-other-resolve-reference-api-v1-sandbox-github-repositories-resolve-post",
|
|
19
|
+
description: `Resolve Reference`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] =
|
|
23
|
+
await schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResolvePost(
|
|
24
|
+
client,
|
|
25
|
+
args.request,
|
|
26
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
27
|
+
).$inspect();
|
|
28
|
+
|
|
29
|
+
if (!result.ok) {
|
|
30
|
+
return {
|
|
31
|
+
content: [{ type: "text", text: result.error.message }],
|
|
32
|
+
isError: true,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const value = result.value;
|
|
37
|
+
|
|
38
|
+
return formatResult(value, apiCall);
|
|
39
|
+
},
|
|
40
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type AuthorizeIntent = {
|
|
12
|
+
state: string;
|
|
13
|
+
authorizeUrl: string;
|
|
14
|
+
expiresInSeconds: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const AuthorizeIntent$inboundSchema: z.ZodType<
|
|
19
|
+
AuthorizeIntent,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
state: z.string(),
|
|
24
|
+
authorize_url: z.string(),
|
|
25
|
+
expires_in_seconds: z.number().int(),
|
|
26
|
+
}).transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
"authorize_url": "authorizeUrl",
|
|
29
|
+
"expires_in_seconds": "expiresInSeconds",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type AuthorizeIntent$Outbound = {
|
|
34
|
+
state: string;
|
|
35
|
+
authorize_url: string;
|
|
36
|
+
expires_in_seconds: number;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const AuthorizeIntent$outboundSchema: z.ZodType<
|
|
41
|
+
AuthorizeIntent$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
AuthorizeIntent
|
|
44
|
+
> = z.object({
|
|
45
|
+
state: z.string(),
|
|
46
|
+
authorizeUrl: z.string(),
|
|
47
|
+
expiresInSeconds: z.number().int(),
|
|
48
|
+
}).transform((v) => {
|
|
49
|
+
return remap$(v, {
|
|
50
|
+
authorizeUrl: "authorize_url",
|
|
51
|
+
expiresInSeconds: "expires_in_seconds",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export function authorizeIntentToJSON(
|
|
56
|
+
authorizeIntent: AuthorizeIntent,
|
|
57
|
+
): string {
|
|
58
|
+
return JSON.stringify(AuthorizeIntent$outboundSchema.parse(authorizeIntent));
|
|
59
|
+
}
|
|
60
|
+
export function authorizeIntentFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<AuthorizeIntent, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) => AuthorizeIntent$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'AuthorizeIntent' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type ConnectedRepository = {
|
|
12
|
+
repositoryId: number;
|
|
13
|
+
owner: string;
|
|
14
|
+
repository: string;
|
|
15
|
+
private: boolean;
|
|
16
|
+
defaultBranch?: string | null | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const ConnectedRepository$inboundSchema: z.ZodType<
|
|
21
|
+
ConnectedRepository,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
repository_id: z.number().int(),
|
|
26
|
+
owner: z.string(),
|
|
27
|
+
repository: z.string(),
|
|
28
|
+
private: z.boolean(),
|
|
29
|
+
default_branch: z.nullable(z.string()).optional(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"repository_id": "repositoryId",
|
|
33
|
+
"default_branch": "defaultBranch",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type ConnectedRepository$Outbound = {
|
|
38
|
+
repository_id: number;
|
|
39
|
+
owner: string;
|
|
40
|
+
repository: string;
|
|
41
|
+
private: boolean;
|
|
42
|
+
default_branch?: string | null | undefined;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const ConnectedRepository$outboundSchema: z.ZodType<
|
|
47
|
+
ConnectedRepository$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
ConnectedRepository
|
|
50
|
+
> = z.object({
|
|
51
|
+
repositoryId: z.number().int(),
|
|
52
|
+
owner: z.string(),
|
|
53
|
+
repository: z.string(),
|
|
54
|
+
private: z.boolean(),
|
|
55
|
+
defaultBranch: z.nullable(z.string()).optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
repositoryId: "repository_id",
|
|
59
|
+
defaultBranch: "default_branch",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export function connectedRepositoryToJSON(
|
|
64
|
+
connectedRepository: ConnectedRepository,
|
|
65
|
+
): string {
|
|
66
|
+
return JSON.stringify(
|
|
67
|
+
ConnectedRepository$outboundSchema.parse(connectedRepository),
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
export function connectedRepositoryFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<ConnectedRepository, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => ConnectedRepository$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'ConnectedRepository' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|