@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,177 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { SDKCore } from "../core.js";
|
|
7
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Disconnect
|
|
31
|
+
*/
|
|
32
|
+
export function schema3OtherDisconnectApiV1SandboxGithubOauthConnectionsDelete(
|
|
33
|
+
client: SDKCore,
|
|
34
|
+
request: operations.DisconnectApiV1SandboxGithubOauthConnectionsDeleteRequest,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): APIPromise<
|
|
37
|
+
Result<
|
|
38
|
+
void,
|
|
39
|
+
| SDKError
|
|
40
|
+
| ResponseValidationError
|
|
41
|
+
| ConnectionError
|
|
42
|
+
| RequestAbortedError
|
|
43
|
+
| RequestTimeoutError
|
|
44
|
+
| InvalidRequestError
|
|
45
|
+
| UnexpectedClientError
|
|
46
|
+
| SDKValidationError
|
|
47
|
+
>
|
|
48
|
+
> {
|
|
49
|
+
return new APIPromise($do(
|
|
50
|
+
client,
|
|
51
|
+
request,
|
|
52
|
+
options,
|
|
53
|
+
));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async function $do(
|
|
57
|
+
client: SDKCore,
|
|
58
|
+
request: operations.DisconnectApiV1SandboxGithubOauthConnectionsDeleteRequest,
|
|
59
|
+
options?: RequestOptions,
|
|
60
|
+
): Promise<
|
|
61
|
+
[
|
|
62
|
+
Result<
|
|
63
|
+
void,
|
|
64
|
+
| SDKError
|
|
65
|
+
| ResponseValidationError
|
|
66
|
+
| ConnectionError
|
|
67
|
+
| RequestAbortedError
|
|
68
|
+
| RequestTimeoutError
|
|
69
|
+
| InvalidRequestError
|
|
70
|
+
| UnexpectedClientError
|
|
71
|
+
| SDKValidationError
|
|
72
|
+
>,
|
|
73
|
+
APICall,
|
|
74
|
+
]
|
|
75
|
+
> {
|
|
76
|
+
const parsed = safeParse(
|
|
77
|
+
request,
|
|
78
|
+
(value) =>
|
|
79
|
+
operations
|
|
80
|
+
.DisconnectApiV1SandboxGithubOauthConnectionsDeleteRequest$outboundSchema
|
|
81
|
+
.parse(value),
|
|
82
|
+
"Input validation failed",
|
|
83
|
+
);
|
|
84
|
+
if (!parsed.ok) {
|
|
85
|
+
return [parsed, { status: "invalid" }];
|
|
86
|
+
}
|
|
87
|
+
const payload = parsed.value;
|
|
88
|
+
const body = null;
|
|
89
|
+
|
|
90
|
+
const path = pathToFunc("/api/v1/sandbox/github/oauth/connections")();
|
|
91
|
+
|
|
92
|
+
const headers = new Headers(compactMap({
|
|
93
|
+
Accept: "*/*",
|
|
94
|
+
"X-On-Behalf-Of": encodeSimple(
|
|
95
|
+
"X-On-Behalf-Of",
|
|
96
|
+
payload["X-On-Behalf-Of"],
|
|
97
|
+
{ explode: false, charEncoding: "none" },
|
|
98
|
+
),
|
|
99
|
+
}));
|
|
100
|
+
|
|
101
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
102
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
103
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
104
|
+
|
|
105
|
+
const context = {
|
|
106
|
+
options: client._options,
|
|
107
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
108
|
+
operationID: "disconnect_api_v1_sandbox_github_oauth_connections_delete",
|
|
109
|
+
oAuth2Scopes: null,
|
|
110
|
+
|
|
111
|
+
resolvedSecurity: requestSecurity,
|
|
112
|
+
|
|
113
|
+
securitySource: client._options.bearerAuth,
|
|
114
|
+
retryConfig: options?.retries
|
|
115
|
+
|| client._options.retryConfig
|
|
116
|
+
|| {
|
|
117
|
+
strategy: "backoff",
|
|
118
|
+
backoff: {
|
|
119
|
+
initialInterval: 500,
|
|
120
|
+
maxInterval: 5000,
|
|
121
|
+
exponent: 1.5,
|
|
122
|
+
maxElapsedTime: 15000,
|
|
123
|
+
},
|
|
124
|
+
retryConnectionErrors: true,
|
|
125
|
+
}
|
|
126
|
+
|| { strategy: "none" },
|
|
127
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const requestRes = client._createRequest(context, {
|
|
131
|
+
security: requestSecurity,
|
|
132
|
+
method: "DELETE",
|
|
133
|
+
baseURL: options?.serverURL,
|
|
134
|
+
path: path,
|
|
135
|
+
headers: headers,
|
|
136
|
+
body: body,
|
|
137
|
+
userAgent: client._options.userAgent,
|
|
138
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
139
|
+
}, options);
|
|
140
|
+
if (!requestRes.ok) {
|
|
141
|
+
return [requestRes, { status: "invalid" }];
|
|
142
|
+
}
|
|
143
|
+
const req = requestRes.value;
|
|
144
|
+
|
|
145
|
+
const doResult = await client._do(req, {
|
|
146
|
+
context,
|
|
147
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
148
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
149
|
+
retryConfig: context.retryConfig,
|
|
150
|
+
retryCodes: context.retryCodes,
|
|
151
|
+
});
|
|
152
|
+
if (!doResult.ok) {
|
|
153
|
+
return [doResult, { status: "request-error", request: req }];
|
|
154
|
+
}
|
|
155
|
+
const response = doResult.value;
|
|
156
|
+
|
|
157
|
+
const [result] = await M.match<
|
|
158
|
+
void,
|
|
159
|
+
| SDKError
|
|
160
|
+
| ResponseValidationError
|
|
161
|
+
| ConnectionError
|
|
162
|
+
| RequestAbortedError
|
|
163
|
+
| RequestTimeoutError
|
|
164
|
+
| InvalidRequestError
|
|
165
|
+
| UnexpectedClientError
|
|
166
|
+
| SDKValidationError
|
|
167
|
+
>(
|
|
168
|
+
M.nil(204, z.void()),
|
|
169
|
+
M.fail("4XX"),
|
|
170
|
+
M.fail("5XX"),
|
|
171
|
+
)(response, req);
|
|
172
|
+
if (!result.ok) {
|
|
173
|
+
return [result, { status: "complete", request: req, response }];
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return [result, { status: "complete", request: req, response }];
|
|
177
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Get Connection
|
|
31
|
+
*/
|
|
32
|
+
export function schema3OtherGetConnectionApiV1SandboxGithubOauthConnectionsGet(
|
|
33
|
+
client: SDKCore,
|
|
34
|
+
request: operations.GetConnectionApiV1SandboxGithubOauthConnectionsGetRequest,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): APIPromise<
|
|
37
|
+
Result<
|
|
38
|
+
components.ConnectionEnvelope,
|
|
39
|
+
| SDKError
|
|
40
|
+
| ResponseValidationError
|
|
41
|
+
| ConnectionError
|
|
42
|
+
| RequestAbortedError
|
|
43
|
+
| RequestTimeoutError
|
|
44
|
+
| InvalidRequestError
|
|
45
|
+
| UnexpectedClientError
|
|
46
|
+
| SDKValidationError
|
|
47
|
+
>
|
|
48
|
+
> {
|
|
49
|
+
return new APIPromise($do(
|
|
50
|
+
client,
|
|
51
|
+
request,
|
|
52
|
+
options,
|
|
53
|
+
));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async function $do(
|
|
57
|
+
client: SDKCore,
|
|
58
|
+
request: operations.GetConnectionApiV1SandboxGithubOauthConnectionsGetRequest,
|
|
59
|
+
options?: RequestOptions,
|
|
60
|
+
): Promise<
|
|
61
|
+
[
|
|
62
|
+
Result<
|
|
63
|
+
components.ConnectionEnvelope,
|
|
64
|
+
| SDKError
|
|
65
|
+
| ResponseValidationError
|
|
66
|
+
| ConnectionError
|
|
67
|
+
| RequestAbortedError
|
|
68
|
+
| RequestTimeoutError
|
|
69
|
+
| InvalidRequestError
|
|
70
|
+
| UnexpectedClientError
|
|
71
|
+
| SDKValidationError
|
|
72
|
+
>,
|
|
73
|
+
APICall,
|
|
74
|
+
]
|
|
75
|
+
> {
|
|
76
|
+
const parsed = safeParse(
|
|
77
|
+
request,
|
|
78
|
+
(value) =>
|
|
79
|
+
operations
|
|
80
|
+
.GetConnectionApiV1SandboxGithubOauthConnectionsGetRequest$outboundSchema
|
|
81
|
+
.parse(value),
|
|
82
|
+
"Input validation failed",
|
|
83
|
+
);
|
|
84
|
+
if (!parsed.ok) {
|
|
85
|
+
return [parsed, { status: "invalid" }];
|
|
86
|
+
}
|
|
87
|
+
const payload = parsed.value;
|
|
88
|
+
const body = null;
|
|
89
|
+
|
|
90
|
+
const path = pathToFunc("/api/v1/sandbox/github/oauth/connections")();
|
|
91
|
+
|
|
92
|
+
const headers = new Headers(compactMap({
|
|
93
|
+
Accept: "application/json",
|
|
94
|
+
"X-On-Behalf-Of": encodeSimple(
|
|
95
|
+
"X-On-Behalf-Of",
|
|
96
|
+
payload["X-On-Behalf-Of"],
|
|
97
|
+
{ explode: false, charEncoding: "none" },
|
|
98
|
+
),
|
|
99
|
+
}));
|
|
100
|
+
|
|
101
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
102
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
103
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
104
|
+
|
|
105
|
+
const context = {
|
|
106
|
+
options: client._options,
|
|
107
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
108
|
+
operationID: "get_connection_api_v1_sandbox_github_oauth_connections_get",
|
|
109
|
+
oAuth2Scopes: null,
|
|
110
|
+
|
|
111
|
+
resolvedSecurity: requestSecurity,
|
|
112
|
+
|
|
113
|
+
securitySource: client._options.bearerAuth,
|
|
114
|
+
retryConfig: options?.retries
|
|
115
|
+
|| client._options.retryConfig
|
|
116
|
+
|| {
|
|
117
|
+
strategy: "backoff",
|
|
118
|
+
backoff: {
|
|
119
|
+
initialInterval: 500,
|
|
120
|
+
maxInterval: 5000,
|
|
121
|
+
exponent: 1.5,
|
|
122
|
+
maxElapsedTime: 15000,
|
|
123
|
+
},
|
|
124
|
+
retryConnectionErrors: true,
|
|
125
|
+
}
|
|
126
|
+
|| { strategy: "none" },
|
|
127
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const requestRes = client._createRequest(context, {
|
|
131
|
+
security: requestSecurity,
|
|
132
|
+
method: "GET",
|
|
133
|
+
baseURL: options?.serverURL,
|
|
134
|
+
path: path,
|
|
135
|
+
headers: headers,
|
|
136
|
+
body: body,
|
|
137
|
+
userAgent: client._options.userAgent,
|
|
138
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
139
|
+
}, options);
|
|
140
|
+
if (!requestRes.ok) {
|
|
141
|
+
return [requestRes, { status: "invalid" }];
|
|
142
|
+
}
|
|
143
|
+
const req = requestRes.value;
|
|
144
|
+
|
|
145
|
+
const doResult = await client._do(req, {
|
|
146
|
+
context,
|
|
147
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
148
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
149
|
+
retryConfig: context.retryConfig,
|
|
150
|
+
retryCodes: context.retryCodes,
|
|
151
|
+
});
|
|
152
|
+
if (!doResult.ok) {
|
|
153
|
+
return [doResult, { status: "request-error", request: req }];
|
|
154
|
+
}
|
|
155
|
+
const response = doResult.value;
|
|
156
|
+
|
|
157
|
+
const [result] = await M.match<
|
|
158
|
+
components.ConnectionEnvelope,
|
|
159
|
+
| SDKError
|
|
160
|
+
| ResponseValidationError
|
|
161
|
+
| ConnectionError
|
|
162
|
+
| RequestAbortedError
|
|
163
|
+
| RequestTimeoutError
|
|
164
|
+
| InvalidRequestError
|
|
165
|
+
| UnexpectedClientError
|
|
166
|
+
| SDKValidationError
|
|
167
|
+
>(
|
|
168
|
+
M.json(200, components.ConnectionEnvelope$inboundSchema),
|
|
169
|
+
M.fail("4XX"),
|
|
170
|
+
M.fail("5XX"),
|
|
171
|
+
)(response, req);
|
|
172
|
+
if (!result.ok) {
|
|
173
|
+
return [result, { status: "complete", request: req, response }];
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return [result, { status: "complete", request: req, response }];
|
|
177
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* List Repositories
|
|
31
|
+
*/
|
|
32
|
+
export function schema3OtherListRepositoriesApiV1SandboxGithubRepositoriesGet(
|
|
33
|
+
client: SDKCore,
|
|
34
|
+
request: operations.ListRepositoriesApiV1SandboxGithubRepositoriesGetRequest,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): APIPromise<
|
|
37
|
+
Result<
|
|
38
|
+
components.RepositoryList,
|
|
39
|
+
| SDKError
|
|
40
|
+
| ResponseValidationError
|
|
41
|
+
| ConnectionError
|
|
42
|
+
| RequestAbortedError
|
|
43
|
+
| RequestTimeoutError
|
|
44
|
+
| InvalidRequestError
|
|
45
|
+
| UnexpectedClientError
|
|
46
|
+
| SDKValidationError
|
|
47
|
+
>
|
|
48
|
+
> {
|
|
49
|
+
return new APIPromise($do(
|
|
50
|
+
client,
|
|
51
|
+
request,
|
|
52
|
+
options,
|
|
53
|
+
));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async function $do(
|
|
57
|
+
client: SDKCore,
|
|
58
|
+
request: operations.ListRepositoriesApiV1SandboxGithubRepositoriesGetRequest,
|
|
59
|
+
options?: RequestOptions,
|
|
60
|
+
): Promise<
|
|
61
|
+
[
|
|
62
|
+
Result<
|
|
63
|
+
components.RepositoryList,
|
|
64
|
+
| SDKError
|
|
65
|
+
| ResponseValidationError
|
|
66
|
+
| ConnectionError
|
|
67
|
+
| RequestAbortedError
|
|
68
|
+
| RequestTimeoutError
|
|
69
|
+
| InvalidRequestError
|
|
70
|
+
| UnexpectedClientError
|
|
71
|
+
| SDKValidationError
|
|
72
|
+
>,
|
|
73
|
+
APICall,
|
|
74
|
+
]
|
|
75
|
+
> {
|
|
76
|
+
const parsed = safeParse(
|
|
77
|
+
request,
|
|
78
|
+
(value) =>
|
|
79
|
+
operations
|
|
80
|
+
.ListRepositoriesApiV1SandboxGithubRepositoriesGetRequest$outboundSchema
|
|
81
|
+
.parse(value),
|
|
82
|
+
"Input validation failed",
|
|
83
|
+
);
|
|
84
|
+
if (!parsed.ok) {
|
|
85
|
+
return [parsed, { status: "invalid" }];
|
|
86
|
+
}
|
|
87
|
+
const payload = parsed.value;
|
|
88
|
+
const body = null;
|
|
89
|
+
|
|
90
|
+
const path = pathToFunc("/api/v1/sandbox/github/repositories")();
|
|
91
|
+
|
|
92
|
+
const headers = new Headers(compactMap({
|
|
93
|
+
Accept: "application/json",
|
|
94
|
+
"X-On-Behalf-Of": encodeSimple(
|
|
95
|
+
"X-On-Behalf-Of",
|
|
96
|
+
payload["X-On-Behalf-Of"],
|
|
97
|
+
{ explode: false, charEncoding: "none" },
|
|
98
|
+
),
|
|
99
|
+
}));
|
|
100
|
+
|
|
101
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
102
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
103
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
104
|
+
|
|
105
|
+
const context = {
|
|
106
|
+
options: client._options,
|
|
107
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
108
|
+
operationID: "list_repositories_api_v1_sandbox_github_repositories_get",
|
|
109
|
+
oAuth2Scopes: null,
|
|
110
|
+
|
|
111
|
+
resolvedSecurity: requestSecurity,
|
|
112
|
+
|
|
113
|
+
securitySource: client._options.bearerAuth,
|
|
114
|
+
retryConfig: options?.retries
|
|
115
|
+
|| client._options.retryConfig
|
|
116
|
+
|| {
|
|
117
|
+
strategy: "backoff",
|
|
118
|
+
backoff: {
|
|
119
|
+
initialInterval: 500,
|
|
120
|
+
maxInterval: 5000,
|
|
121
|
+
exponent: 1.5,
|
|
122
|
+
maxElapsedTime: 15000,
|
|
123
|
+
},
|
|
124
|
+
retryConnectionErrors: true,
|
|
125
|
+
}
|
|
126
|
+
|| { strategy: "none" },
|
|
127
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const requestRes = client._createRequest(context, {
|
|
131
|
+
security: requestSecurity,
|
|
132
|
+
method: "GET",
|
|
133
|
+
baseURL: options?.serverURL,
|
|
134
|
+
path: path,
|
|
135
|
+
headers: headers,
|
|
136
|
+
body: body,
|
|
137
|
+
userAgent: client._options.userAgent,
|
|
138
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
139
|
+
}, options);
|
|
140
|
+
if (!requestRes.ok) {
|
|
141
|
+
return [requestRes, { status: "invalid" }];
|
|
142
|
+
}
|
|
143
|
+
const req = requestRes.value;
|
|
144
|
+
|
|
145
|
+
const doResult = await client._do(req, {
|
|
146
|
+
context,
|
|
147
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
148
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
149
|
+
retryConfig: context.retryConfig,
|
|
150
|
+
retryCodes: context.retryCodes,
|
|
151
|
+
});
|
|
152
|
+
if (!doResult.ok) {
|
|
153
|
+
return [doResult, { status: "request-error", request: req }];
|
|
154
|
+
}
|
|
155
|
+
const response = doResult.value;
|
|
156
|
+
|
|
157
|
+
const [result] = await M.match<
|
|
158
|
+
components.RepositoryList,
|
|
159
|
+
| SDKError
|
|
160
|
+
| ResponseValidationError
|
|
161
|
+
| ConnectionError
|
|
162
|
+
| RequestAbortedError
|
|
163
|
+
| RequestTimeoutError
|
|
164
|
+
| InvalidRequestError
|
|
165
|
+
| UnexpectedClientError
|
|
166
|
+
| SDKValidationError
|
|
167
|
+
>(
|
|
168
|
+
M.json(200, components.RepositoryList$inboundSchema),
|
|
169
|
+
M.fail("4XX"),
|
|
170
|
+
M.fail("5XX"),
|
|
171
|
+
)(response, req);
|
|
172
|
+
if (!result.ok) {
|
|
173
|
+
return [result, { status: "complete", request: req, response }];
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return [result, { status: "complete", request: req, response }];
|
|
177
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Refresh Repositories
|
|
31
|
+
*/
|
|
32
|
+
export function schema3OtherRefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPost(
|
|
33
|
+
client: SDKCore,
|
|
34
|
+
request:
|
|
35
|
+
operations.RefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPostRequest,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): APIPromise<
|
|
38
|
+
Result<
|
|
39
|
+
components.RepositoryList,
|
|
40
|
+
| SDKError
|
|
41
|
+
| ResponseValidationError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
| RequestAbortedError
|
|
44
|
+
| RequestTimeoutError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| UnexpectedClientError
|
|
47
|
+
| SDKValidationError
|
|
48
|
+
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client,
|
|
52
|
+
request,
|
|
53
|
+
options,
|
|
54
|
+
));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function $do(
|
|
58
|
+
client: SDKCore,
|
|
59
|
+
request:
|
|
60
|
+
operations.RefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPostRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
components.RepositoryList,
|
|
66
|
+
| SDKError
|
|
67
|
+
| ResponseValidationError
|
|
68
|
+
| ConnectionError
|
|
69
|
+
| RequestAbortedError
|
|
70
|
+
| RequestTimeoutError
|
|
71
|
+
| InvalidRequestError
|
|
72
|
+
| UnexpectedClientError
|
|
73
|
+
| SDKValidationError
|
|
74
|
+
>,
|
|
75
|
+
APICall,
|
|
76
|
+
]
|
|
77
|
+
> {
|
|
78
|
+
const parsed = safeParse(
|
|
79
|
+
request,
|
|
80
|
+
(value) =>
|
|
81
|
+
operations
|
|
82
|
+
.RefreshRepositoriesApiV1SandboxGithubRepositoriesRefreshPostRequest$outboundSchema
|
|
83
|
+
.parse(value),
|
|
84
|
+
"Input validation failed",
|
|
85
|
+
);
|
|
86
|
+
if (!parsed.ok) {
|
|
87
|
+
return [parsed, { status: "invalid" }];
|
|
88
|
+
}
|
|
89
|
+
const payload = parsed.value;
|
|
90
|
+
const body = null;
|
|
91
|
+
|
|
92
|
+
const path = pathToFunc("/api/v1/sandbox/github/repositories/refresh")();
|
|
93
|
+
|
|
94
|
+
const headers = new Headers(compactMap({
|
|
95
|
+
Accept: "application/json",
|
|
96
|
+
"X-On-Behalf-Of": encodeSimple(
|
|
97
|
+
"X-On-Behalf-Of",
|
|
98
|
+
payload["X-On-Behalf-Of"],
|
|
99
|
+
{ explode: false, charEncoding: "none" },
|
|
100
|
+
),
|
|
101
|
+
}));
|
|
102
|
+
|
|
103
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
104
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
105
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
106
|
+
|
|
107
|
+
const context = {
|
|
108
|
+
options: client._options,
|
|
109
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
110
|
+
operationID:
|
|
111
|
+
"refresh_repositories_api_v1_sandbox_github_repositories_refresh_post",
|
|
112
|
+
oAuth2Scopes: null,
|
|
113
|
+
|
|
114
|
+
resolvedSecurity: requestSecurity,
|
|
115
|
+
|
|
116
|
+
securitySource: client._options.bearerAuth,
|
|
117
|
+
retryConfig: options?.retries
|
|
118
|
+
|| client._options.retryConfig
|
|
119
|
+
|| {
|
|
120
|
+
strategy: "backoff",
|
|
121
|
+
backoff: {
|
|
122
|
+
initialInterval: 500,
|
|
123
|
+
maxInterval: 5000,
|
|
124
|
+
exponent: 1.5,
|
|
125
|
+
maxElapsedTime: 15000,
|
|
126
|
+
},
|
|
127
|
+
retryConnectionErrors: true,
|
|
128
|
+
}
|
|
129
|
+
|| { strategy: "none" },
|
|
130
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
const requestRes = client._createRequest(context, {
|
|
134
|
+
security: requestSecurity,
|
|
135
|
+
method: "POST",
|
|
136
|
+
baseURL: options?.serverURL,
|
|
137
|
+
path: path,
|
|
138
|
+
headers: headers,
|
|
139
|
+
body: body,
|
|
140
|
+
userAgent: client._options.userAgent,
|
|
141
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
142
|
+
}, options);
|
|
143
|
+
if (!requestRes.ok) {
|
|
144
|
+
return [requestRes, { status: "invalid" }];
|
|
145
|
+
}
|
|
146
|
+
const req = requestRes.value;
|
|
147
|
+
|
|
148
|
+
const doResult = await client._do(req, {
|
|
149
|
+
context,
|
|
150
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
151
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
152
|
+
retryConfig: context.retryConfig,
|
|
153
|
+
retryCodes: context.retryCodes,
|
|
154
|
+
});
|
|
155
|
+
if (!doResult.ok) {
|
|
156
|
+
return [doResult, { status: "request-error", request: req }];
|
|
157
|
+
}
|
|
158
|
+
const response = doResult.value;
|
|
159
|
+
|
|
160
|
+
const [result] = await M.match<
|
|
161
|
+
components.RepositoryList,
|
|
162
|
+
| SDKError
|
|
163
|
+
| ResponseValidationError
|
|
164
|
+
| ConnectionError
|
|
165
|
+
| RequestAbortedError
|
|
166
|
+
| RequestTimeoutError
|
|
167
|
+
| InvalidRequestError
|
|
168
|
+
| UnexpectedClientError
|
|
169
|
+
| SDKValidationError
|
|
170
|
+
>(
|
|
171
|
+
M.json(200, components.RepositoryList$inboundSchema),
|
|
172
|
+
M.fail("4XX"),
|
|
173
|
+
M.fail("5XX"),
|
|
174
|
+
)(response, req);
|
|
175
|
+
if (!result.ok) {
|
|
176
|
+
return [result, { status: "complete", request: req, response }];
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
return [result, { status: "complete", request: req, response }];
|
|
180
|
+
}
|