diff --git a/sdkgen.lock b/sdkgen.lock index 4359dad..3e4518e 100644 --- a/sdkgen.lock +++ b/sdkgen.lock @@ -1 +1 @@ -{"typehub/sdk":{"baseUrl":"http://127.0.0.1/website/typehub.cloud/backend/public/","security":{"type":"oauth2","tokenUrl":"http://127.0.0.1/website/typehub.cloud/backend/public/authorization/token","scopes":["commit","default","document","explore","issue","pull_request","star","tag","trigger"]},"operations":{"tag.changelog":{"path":"/document/:user/:document/changelog","method":"POST","return":{"code":200,"schema":{"$ref":"TagChangelog"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Generates the changelog for the current release","stability":1,"security":["tag"],"authorization":true,"tags":["tag"]},"tag.create":{"path":"/document/:user/:document/tag","method":"POST","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Creates a new tag","stability":1,"security":["tag"],"authorization":true,"tags":["tag"]},"tag.get":{"path":"/document/:user/:document/tag/:id","method":"GET","return":{"code":200,"schema":{"$ref":"Tag"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns a tag","stability":1,"security":[],"authorization":false,"tags":["tag"]},"tag.getAll":{"path":"/document/:user/:document/tag","method":"GET","return":{"code":200,"schema":{"$ref":"TagCollection"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns all tags for a document","stability":1,"security":[],"authorization":false,"tags":["tag"]},"star.getAll":{"path":"/star","method":"GET","return":{"code":200,"schema":{"$ref":"DocumentCollection"}},"arguments":{"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns all stared documents for the current user","stability":1,"security":["star"],"authorization":true,"tags":["star"]},"trigger.execute":{"path":"/document/:user/:document/trigger/:id/execute","method":"POST","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Executes a trigger","stability":1,"security":["trigger"],"authorization":true,"tags":["trigger"]},"trigger.delete":{"path":"/document/:user/:document/trigger/:id","method":"DELETE","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Removes a trigger","stability":1,"security":["trigger"],"authorization":true,"tags":["trigger"]},"trigger.create":{"path":"/document/:user/:document/trigger","method":"POST","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"TriggerCreate"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Creates a new trigger","stability":1,"security":["trigger"],"authorization":true,"tags":["trigger"]},"trigger.get":{"path":"/document/:user/:document/trigger/:id","method":"GET","return":{"code":200,"schema":{"$ref":"Trigger"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns a trigger","stability":1,"security":["trigger"],"authorization":true,"tags":["trigger"]},"trigger.getAll":{"path":"/document/:user/:document/trigger","method":"GET","return":{"code":200,"schema":{"$ref":"TriggerCollection"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns all configured triggers","stability":1,"security":["trigger"],"authorization":true,"tags":["trigger"]},"pull_request.reactComment":{"path":"/document/:user/:document/pull_request/:id/comment/:comment/:reaction","method":"POST","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"comment":{"in":"path","schema":{"type":"string"}},"reaction":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Reacts to a comment","stability":1,"security":["pull_request"],"authorization":true,"tags":["pull_request"]},"pull_request.createComment":{"path":"/document/:user/:document/pull_request/:id/comment","method":"POST","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"CommentCreate"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Creates a new pull request comment","stability":1,"security":["pull_request"],"authorization":true,"tags":["pull_request"]},"pull_request.getAllComments":{"path":"/document/:user/:document/pull_request/:id/comment","method":"GET","return":{"code":200,"schema":{"$ref":"CommentCollection"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Shows all pull request comments","stability":1,"security":[],"authorization":false,"tags":["pull_request"]},"pull_request.delete":{"path":"/document/:user/:document/pull_request/:id","method":"DELETE","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Removes a pull request","stability":1,"security":["pull_request"],"authorization":true,"tags":["pull_request"]},"pull_request.update":{"path":"/document/:user/:document/pull_request/:id","method":"PUT","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Merges a pull request","stability":1,"security":["pull_request"],"authorization":true,"tags":["pull_request"]},"pull_request.create":{"path":"/document/:user/:document/pull_request","method":"POST","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"PullRequestCreate"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Creates a new pull request","stability":1,"security":["pull_request"],"authorization":true,"tags":["pull_request"]},"pull_request.get":{"path":"/document/:user/:document/pull_request/:id","method":"GET","return":{"code":200,"schema":{"$ref":"PullRequest"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns a pull request","stability":1,"security":[],"authorization":false,"tags":["pull_request"]},"pull_request.getAll":{"path":"/document/:user/:document/pull_request","method":"GET","return":{"code":200,"schema":{"$ref":"PullRequestCollection"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"status":{"in":"query","schema":{"type":"integer"}},"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns all pull requests","stability":1,"security":[],"authorization":false,"tags":["pull_request"]},"issue.reactComment":{"path":"/document/:user/:document/issue/:id/comment/:comment/:reaction","method":"POST","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"comment":{"in":"path","schema":{"type":"string"}},"reaction":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Reacts to a comment","stability":1,"security":["issue"],"authorization":true,"tags":["issue"]},"issue.createComment":{"path":"/document/:user/:document/issue/:id/comment","method":"POST","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"CommentCreate"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Creates a new issue comment","stability":1,"security":["issue"],"authorization":true,"tags":["issue"]},"issue.getAllComments":{"path":"/document/:user/:document/issue/:id/comment","method":"GET","return":{"code":200,"schema":{"$ref":"CommentCollection"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Shows all issue comments","stability":1,"security":[],"authorization":false,"tags":["issue"]},"issue.delete":{"path":"/document/:user/:document/issue/:id","method":"DELETE","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Removes an issue","stability":1,"security":["issue"],"authorization":true,"tags":["issue"]},"issue.create":{"path":"/document/:user/:document/issue","method":"POST","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"IssueCreate"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Creates a new issue","stability":1,"security":["issue"],"authorization":true,"tags":["issue"]},"issue.get":{"path":"/document/:user/:document/issue/:id","method":"GET","return":{"code":200,"schema":{"$ref":"Issue"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns an issue","stability":1,"security":[],"authorization":false,"tags":["issue"]},"issue.getAll":{"path":"/document/:user/:document/issue","method":"GET","return":{"code":200,"schema":{"$ref":"IssueCollection"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"status":{"in":"query","schema":{"type":"integer"}},"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns all issues","stability":1,"security":[],"authorization":false,"tags":["issue"]},"explore.getAll":{"path":"/explore","method":"GET","return":{"code":200,"schema":{"$ref":"DocumentCollection"}},"arguments":{"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns trending documents","stability":1,"security":[],"authorization":false,"tags":["explore"]},"document.revert":{"path":"/document/:user/:document/revert/:id","method":"POST","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Reverts your document to this commit","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.reset":{"path":"/document/:user/:document/reset","method":"POST","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Resets your document to the latest source","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.fork":{"path":"/document/:user/:document/fork","method":"GET","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Fork this document","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.import":{"path":"/document/:user/:document/import","method":"POST","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Import a TypeAPI specification to this document","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.export":{"path":"/document/:user/:document/export","method":"POST","return":{"code":200,"schema":{"$ref":"DocumentExportResponse"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"DocumentExportRequest"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Export this document","stability":1,"security":[],"authorization":false,"tags":["document"]},"document.star":{"path":"/document/:user/:document/star","method":"POST","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Stars this document","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.delete":{"path":"/document/:user/:document","method":"DELETE","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Removes a document","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.meta":{"path":"/document/:user/:document/meta","method":"PUT","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"DocumentMeta"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Updates the meta data of an document","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.update":{"path":"/document/:user/:document","method":"PUT","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"DocumentUpdate"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Updates a document","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.create":{"path":"/document/:user","method":"POST","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"DocumentCreate"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Creates a new document","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.showPreview":{"path":"/document/:user/:document/preview","method":"GET","return":{"code":200,"schema":{"$ref":"DocumentPreview"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"version":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns a document preview","stability":1,"security":[],"authorization":false,"tags":["document"]},"document.get":{"path":"/document/:user/:document","method":"GET","return":{"code":200,"schema":{"$ref":"Document"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"version":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns a document","stability":1,"security":[],"authorization":false,"tags":["document"]},"document.getAll":{"path":"/document/:user","method":"GET","return":{"code":200,"schema":{"$ref":"DocumentCollection"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns all documents","stability":1,"security":[],"authorization":false,"tags":["document"]},"commit.get":{"path":"/document/:user/:document/commit/:id","method":"GET","return":{"code":200,"schema":{"$ref":"Commit"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns a commit","stability":1,"security":[],"authorization":false,"tags":["commit"]},"commit.getAll":{"path":"/document/:user/:document/commit","method":"GET","return":{"code":200,"schema":{"$ref":"CommitCollection"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns all commits for a document","stability":1,"security":[],"authorization":false,"tags":["commit"]},"authorization.getWhoami":{"path":"/authorization/whoami","method":"GET","return":{"code":200,"schema":{"$ref":"Backend_User"}},"arguments":[],"throws":[{"code":500,"schema":{"$ref":"Common_Message"}}],"description":"","stability":2,"security":["authorization"],"authorization":true,"tags":["authorization"]},"authorization.revoke":{"path":"/authorization/revoke","method":"POST","return":{"code":200,"schema":{"$ref":"Common_Message"}},"arguments":[],"throws":[{"code":400,"schema":{"$ref":"Common_Message"}},{"code":500,"schema":{"$ref":"Common_Message"}}],"description":"","stability":2,"security":["authorization"],"authorization":true,"tags":["authorization"]},"meta.getAbout":{"path":"/","method":"GET","return":{"code":200,"schema":{"$ref":"System_About"}},"arguments":[],"throws":[],"description":"","stability":2,"security":[],"authorization":false,"tags":[]}},"definitions":{"Backend_App":{"type":"object","properties":{"id":{"type":"integer"},"userId":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string","pattern":"^[a-zA-Z0-9\\-\\_]{3,64}$"},"url":{"type":"string"},"parameters":{"type":"string"},"appKey":{"type":"string"},"appSecret":{"type":"string"},"metadata":{"$ref":"Common_Metadata"},"date":{"format":"date-time","type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"tokens":{"type":"array","items":{"$ref":"Backend_Token"}}}},"Backend_Token":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"ip":{"type":"string"},"expire":{"format":"date-time","type":"string"},"date":{"format":"date-time","type":"string"}}},"Backend_User":{"type":"object","properties":{"id":{"type":"integer"},"roleId":{"type":"integer"},"planId":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string","pattern":"^[a-zA-Z0-9\\-\\_\\.]{3,32}$"},"email":{"type":"string"},"points":{"type":"integer"},"scopes":{"type":"array","items":{"type":"string"}},"apps":{"type":"array","items":{"$ref":"Backend_App"}},"metadata":{"$ref":"Common_Metadata"},"date":{"format":"date-time","type":"string"}}},"Collection":{"type":"object","properties":{"totalResults":{"type":"integer"},"startIndex":{"type":"integer"},"itemsPerPage":{"type":"integer"},"entry":{"type":"array","items":{"$generic":"T"}}}},"Comment":{"type":"object","properties":{"id":{"type":"integer"},"user":{"$ref":"User"},"status":{"type":"integer"},"reaction":{"$ref":"CommentReactions"},"comment":{"type":"string"},"updateDate":{"format":"date-time","type":"string"},"insertDate":{"format":"date-time","type":"string"}}},"CommentCollection":{"$ref":"Collection","$template":{"T":"Comment"}},"CommentCreate":{"$extends":"Comment","type":"object","required":["comment"]},"CommentReactions":{"type":"object","properties":{"like":{"type":"integer"},"dislike":{"type":"integer"},"laugh":{"type":"integer"},"hooray":{"type":"integer"},"confused":{"type":"integer"},"heart":{"type":"integer"},"rocket":{"type":"integer"},"eyes":{"type":"integer"}}},"Commit":{"type":"object","properties":{"id":{"type":"integer"},"document":{"$ref":"Document"},"user":{"$ref":"User"},"previous":{"$ref":"CommitPrevious"},"message":{"type":"string"},"commitHash":{"type":"string"},"spec":{"type":"any"},"insertDate":{"format":"date-time","type":"string"}}},"CommitCollection":{"$ref":"Collection","$template":{"T":"Commit"}},"CommitPrevious":{"type":"object","properties":{"id":{"type":"integer"},"message":{"type":"string"},"commitHash":{"type":"string"},"spec":{"type":"any"},"insertDate":{"format":"date-time","type":"string"}}},"Common_Message":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"id":{"type":"string"}}},"Common_Metadata":{"type":"object","additionalProperties":{"type":"string"}},"Document":{"type":"object","properties":{"id":{"type":"integer"},"user":{"$ref":"User"},"source":{"$ref":"Document"},"status":{"type":"integer"},"stars":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"private":{"type":"boolean"},"baseVersion":{"type":"string"},"developmentMode":{"type":"boolean"},"homepage":{"type":"string"},"spec":{"type":"any"},"updateDate":{"format":"date-time","type":"string"},"insertDate":{"format":"date-time","type":"string"}}},"DocumentCollection":{"$ref":"Collection","$template":{"T":"Document"}},"DocumentCreate":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"private":{"type":"boolean"},"baseVersion":{"type":"string"},"homepage":{"type":"string"}},"required":["name"]},"DocumentExportRequest":{"type":"object","properties":{"version":{"type":"string"},"format":{"type":"string"},"namespace":{"type":"string"}}},"DocumentExportResponse":{"type":"object","properties":{"href":{"type":"string"}}},"DocumentMeta":{"type":"object","properties":{"description":{"type":"string"},"private":{"type":"boolean"},"baseVersion":{"type":"string"},"developmentMode":{"type":"boolean"},"homepage":{"type":"string"}}},"DocumentPreview":{"type":"object","properties":{"tags":{"type":"array","items":{"$ref":"Tag"}},"types":{"type":"array","items":{"type":"string"}}}},"DocumentUpdate":{"type":"object","properties":{"spec":{"type":"any"}},"required":["spec"]},"Issue":{"type":"object","properties":{"id":{"type":"integer"},"user":{"$ref":"User"},"document":{"$ref":"Document"},"status":{"type":"integer"},"title":{"type":"string"},"updateDate":{"format":"date-time","type":"string"},"insertDate":{"format":"date-time","type":"string"}}},"IssueCollection":{"$ref":"Collection","$template":{"T":"Issue"}},"IssueCreate":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"}}},"Message":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}},"Passthru":{"description":"No schema information available","type":"object","additionalProperties":{"type":"any"}},"PullRequest":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"source":{"$ref":"Document"},"target":{"$ref":"Document"},"user":{"$ref":"User"},"title":{"type":"string"},"updateDate":{"format":"date-time","type":"string"},"insertDate":{"format":"date-time","type":"string"}}},"PullRequestCollection":{"$ref":"Collection","$template":{"T":"PullRequest"}},"PullRequestCreate":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"}}},"System_About":{"type":"object","properties":{"apiVersion":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string"},"contactName":{"type":"string"},"contactUrl":{"type":"string"},"contactEmail":{"type":"string"},"licenseName":{"type":"string"},"licenseUrl":{"type":"string"},"paymentCurrency":{"type":"string"},"categories":{"type":"array","items":{"type":"string"}},"scopes":{"type":"array","items":{"type":"string"}},"apps":{"$ref":"System_AboutApps"},"links":{"type":"array","items":{"$ref":"System_AboutLink"}}}},"System_AboutApps":{"type":"object","additionalProperties":{"type":"string"}},"System_AboutLink":{"type":"object","properties":{"rel":{"type":"string"},"href":{"type":"string"}}},"Tag":{"type":"object","properties":{"id":{"type":"string"},"document":{"$ref":"Document"},"user":{"$ref":"User"},"version":{"type":"string"},"changelog":{"type":"string"},"spec":{"type":"any"},"insertDate":{"format":"date-time","type":"string"}}},"TagChangelog":{"type":"object","properties":{"master":{"type":"any"},"tag":{"type":"any"},"version":{"type":"string"},"changelog":{"type":"array","items":{"type":"string"}}}},"TagCollection":{"$ref":"Collection","$template":{"T":"Tag"}},"Trigger":{"type":"object","properties":{"id":{"type":"integer"},"user":{"$ref":"User"},"document":{"$ref":"Document"},"type":{"type":"string"},"config":{"$ref":"TriggerConfig"},"updateDate":{"format":"date-time","type":"string"},"insertDate":{"format":"date-time","type":"string"}}},"TriggerCollection":{"$ref":"Collection","$template":{"T":"Trigger"}},"TriggerConfig":{"type":"object","additionalProperties":{"type":"string"}},"TriggerCreate":{"$extends":"Trigger","type":"object"},"User":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}}}}}} \ No newline at end of file +{"typehub/sdk":{"baseUrl":"https://api.typehub.cloud/","security":{"type":"oauth2","tokenUrl":"https://api.typehub.cloud/authorization/token","scopes":["commit","default","document","explore","issue","pull_request","star","tag","trigger"]},"operations":{"tag.changelog":{"path":"/document/:user/:document/changelog","method":"POST","return":{"code":200,"schema":{"$ref":"TagChangelog"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Generates the changelog for the current release","stability":1,"security":["tag"],"authorization":true,"tags":["tag"]},"tag.create":{"path":"/document/:user/:document/tag","method":"POST","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Creates a new tag","stability":1,"security":["tag"],"authorization":true,"tags":["tag"]},"tag.get":{"path":"/document/:user/:document/tag/:id","method":"GET","return":{"code":200,"schema":{"$ref":"Tag"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns a tag","stability":1,"security":[],"authorization":false,"tags":["tag"]},"tag.getAll":{"path":"/document/:user/:document/tag","method":"GET","return":{"code":200,"schema":{"$ref":"TagCollection"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns all tags for a document","stability":1,"security":[],"authorization":false,"tags":["tag"]},"star.getAll":{"path":"/star","method":"GET","return":{"code":200,"schema":{"$ref":"DocumentCollection"}},"arguments":{"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns all stared documents for the current user","stability":1,"security":["star"],"authorization":true,"tags":["star"]},"trigger.execute":{"path":"/document/:user/:document/trigger/:id/execute","method":"POST","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Executes a trigger","stability":1,"security":["trigger"],"authorization":true,"tags":["trigger"]},"trigger.delete":{"path":"/document/:user/:document/trigger/:id","method":"DELETE","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Removes a trigger","stability":1,"security":["trigger"],"authorization":true,"tags":["trigger"]},"trigger.create":{"path":"/document/:user/:document/trigger","method":"POST","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"TriggerCreate"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Creates a new trigger","stability":1,"security":["trigger"],"authorization":true,"tags":["trigger"]},"trigger.get":{"path":"/document/:user/:document/trigger/:id","method":"GET","return":{"code":200,"schema":{"$ref":"Trigger"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns a trigger","stability":1,"security":["trigger"],"authorization":true,"tags":["trigger"]},"trigger.getAll":{"path":"/document/:user/:document/trigger","method":"GET","return":{"code":200,"schema":{"$ref":"TriggerCollection"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns all configured triggers","stability":1,"security":["trigger"],"authorization":true,"tags":["trigger"]},"pull_request.reactComment":{"path":"/document/:user/:document/pull_request/:id/comment/:comment/:reaction","method":"POST","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"comment":{"in":"path","schema":{"type":"string"}},"reaction":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Reacts to a comment","stability":1,"security":["pull_request"],"authorization":true,"tags":["pull_request"]},"pull_request.createComment":{"path":"/document/:user/:document/pull_request/:id/comment","method":"POST","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"CommentCreate"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Creates a new pull request comment","stability":1,"security":["pull_request"],"authorization":true,"tags":["pull_request"]},"pull_request.getAllComments":{"path":"/document/:user/:document/pull_request/:id/comment","method":"GET","return":{"code":200,"schema":{"$ref":"CommentCollection"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Shows all pull request comments","stability":1,"security":[],"authorization":false,"tags":["pull_request"]},"pull_request.delete":{"path":"/document/:user/:document/pull_request/:id","method":"DELETE","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Removes a pull request","stability":1,"security":["pull_request"],"authorization":true,"tags":["pull_request"]},"pull_request.update":{"path":"/document/:user/:document/pull_request/:id","method":"PUT","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Merges a pull request","stability":1,"security":["pull_request"],"authorization":true,"tags":["pull_request"]},"pull_request.create":{"path":"/document/:user/:document/pull_request","method":"POST","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"PullRequestCreate"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Creates a new pull request","stability":1,"security":["pull_request"],"authorization":true,"tags":["pull_request"]},"pull_request.get":{"path":"/document/:user/:document/pull_request/:id","method":"GET","return":{"code":200,"schema":{"$ref":"PullRequest"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns a pull request","stability":1,"security":[],"authorization":false,"tags":["pull_request"]},"pull_request.getAll":{"path":"/document/:user/:document/pull_request","method":"GET","return":{"code":200,"schema":{"$ref":"PullRequestCollection"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"status":{"in":"query","schema":{"type":"integer"}},"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns all pull requests","stability":1,"security":[],"authorization":false,"tags":["pull_request"]},"issue.reactComment":{"path":"/document/:user/:document/issue/:id/comment/:comment/:reaction","method":"POST","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"comment":{"in":"path","schema":{"type":"string"}},"reaction":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Reacts to a comment","stability":1,"security":["issue"],"authorization":true,"tags":["issue"]},"issue.createComment":{"path":"/document/:user/:document/issue/:id/comment","method":"POST","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"CommentCreate"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Creates a new issue comment","stability":1,"security":["issue"],"authorization":true,"tags":["issue"]},"issue.getAllComments":{"path":"/document/:user/:document/issue/:id/comment","method":"GET","return":{"code":200,"schema":{"$ref":"CommentCollection"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Shows all issue comments","stability":1,"security":[],"authorization":false,"tags":["issue"]},"issue.delete":{"path":"/document/:user/:document/issue/:id","method":"DELETE","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Removes an issue","stability":1,"security":["issue"],"authorization":true,"tags":["issue"]},"issue.create":{"path":"/document/:user/:document/issue","method":"POST","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"IssueCreate"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Creates a new issue","stability":1,"security":["issue"],"authorization":true,"tags":["issue"]},"issue.get":{"path":"/document/:user/:document/issue/:id","method":"GET","return":{"code":200,"schema":{"$ref":"Issue"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns an issue","stability":1,"security":[],"authorization":false,"tags":["issue"]},"issue.getAll":{"path":"/document/:user/:document/issue","method":"GET","return":{"code":200,"schema":{"$ref":"IssueCollection"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"status":{"in":"query","schema":{"type":"integer"}},"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns all issues","stability":1,"security":[],"authorization":false,"tags":["issue"]},"explore.getAll":{"path":"/explore","method":"GET","return":{"code":200,"schema":{"$ref":"DocumentCollection"}},"arguments":{"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns trending documents","stability":1,"security":[],"authorization":false,"tags":["explore"]},"document.revert":{"path":"/document/:user/:document/revert/:id","method":"POST","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Reverts your document to this commit","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.reset":{"path":"/document/:user/:document/reset","method":"POST","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Resets your document to the latest source","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.fork":{"path":"/document/:user/:document/fork","method":"GET","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Fork this document","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.import":{"path":"/document/:user/:document/import","method":"POST","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Import a TypeAPI specification to this document","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.export":{"path":"/document/:user/:document/export","method":"POST","return":{"code":200,"schema":{"$ref":"DocumentExportResponse"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"DocumentExportRequest"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Export this document","stability":1,"security":[],"authorization":false,"tags":["document"]},"document.star":{"path":"/document/:user/:document/star","method":"POST","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Passthru"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Stars this document","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.delete":{"path":"/document/:user/:document","method":"DELETE","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Removes a document","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.meta":{"path":"/document/:user/:document/meta","method":"PUT","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"DocumentMeta"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Updates the meta data of an document","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.update":{"path":"/document/:user/:document","method":"PUT","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"DocumentUpdate"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Updates a document","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.create":{"path":"/document/:user","method":"POST","return":{"code":201,"schema":{"$ref":"Message"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"DocumentCreate"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Creates a new document","stability":1,"security":["document"],"authorization":true,"tags":["document"]},"document.showPreview":{"path":"/document/:user/:document/preview","method":"GET","return":{"code":200,"schema":{"$ref":"DocumentPreview"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"version":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns a document preview","stability":1,"security":[],"authorization":false,"tags":["document"]},"document.get":{"path":"/document/:user/:document","method":"GET","return":{"code":200,"schema":{"$ref":"Document"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"version":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns a document","stability":1,"security":[],"authorization":false,"tags":["document"]},"document.getAll":{"path":"/document/:user","method":"GET","return":{"code":200,"schema":{"$ref":"DocumentCollection"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns all documents","stability":1,"security":[],"authorization":false,"tags":["document"]},"commit.get":{"path":"/document/:user/:document/commit/:id","method":"GET","return":{"code":200,"schema":{"$ref":"Commit"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns a commit","stability":1,"security":[],"authorization":false,"tags":["commit"]},"commit.getAll":{"path":"/document/:user/:document/commit","method":"GET","return":{"code":200,"schema":{"$ref":"CommitCollection"}},"arguments":{"user":{"in":"path","schema":{"type":"string"}},"document":{"in":"path","schema":{"type":"string"}},"startIndex":{"in":"query","schema":{"type":"integer"}},"count":{"in":"query","schema":{"type":"integer"}},"search":{"in":"query","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Message"}},{"code":404,"schema":{"$ref":"Message"}},{"code":500,"schema":{"$ref":"Message"}}],"description":"Returns all commits for a document","stability":1,"security":[],"authorization":false,"tags":["commit"]},"authorization.getWhoami":{"path":"/authorization/whoami","method":"GET","return":{"code":200,"schema":{"$ref":"Backend_User"}},"arguments":[],"throws":[{"code":500,"schema":{"$ref":"Common_Message"}}],"description":"","stability":2,"security":["authorization"],"authorization":true,"tags":["authorization"]},"authorization.revoke":{"path":"/authorization/revoke","method":"POST","return":{"code":200,"schema":{"$ref":"Common_Message"}},"arguments":[],"throws":[{"code":400,"schema":{"$ref":"Common_Message"}},{"code":500,"schema":{"$ref":"Common_Message"}}],"description":"","stability":2,"security":["authorization"],"authorization":true,"tags":["authorization"]},"meta.getAbout":{"path":"/","method":"GET","return":{"code":200,"schema":{"$ref":"System_About"}},"arguments":[],"throws":[],"description":"","stability":2,"security":[],"authorization":false,"tags":[]}},"definitions":{"Backend_App":{"type":"object","properties":{"id":{"type":"integer"},"userId":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string","pattern":"^[a-zA-Z0-9\\-\\_]{3,64}$"},"url":{"type":"string"},"parameters":{"type":"string"},"appKey":{"type":"string"},"appSecret":{"type":"string"},"metadata":{"$ref":"Common_Metadata"},"date":{"format":"date-time","type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"tokens":{"type":"array","items":{"$ref":"Backend_Token"}}}},"Backend_Token":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"ip":{"type":"string"},"expire":{"format":"date-time","type":"string"},"date":{"format":"date-time","type":"string"}}},"Backend_User":{"type":"object","properties":{"id":{"type":"integer"},"roleId":{"type":"integer"},"planId":{"type":"integer"},"status":{"type":"integer"},"name":{"type":"string","pattern":"^[a-zA-Z0-9\\-\\_\\.]{3,32}$"},"email":{"type":"string"},"points":{"type":"integer"},"scopes":{"type":"array","items":{"type":"string"}},"apps":{"type":"array","items":{"$ref":"Backend_App"}},"metadata":{"$ref":"Common_Metadata"},"date":{"format":"date-time","type":"string"}}},"Collection":{"type":"object","properties":{"totalResults":{"type":"integer"},"startIndex":{"type":"integer"},"itemsPerPage":{"type":"integer"},"entry":{"type":"array","items":{"$generic":"T"}}}},"Comment":{"type":"object","properties":{"id":{"type":"integer"},"user":{"$ref":"User"},"status":{"type":"integer"},"reaction":{"$ref":"CommentReactions"},"comment":{"type":"string"},"updateDate":{"format":"date-time","type":"string"},"insertDate":{"format":"date-time","type":"string"}}},"CommentCollection":{"$ref":"Collection","$template":{"T":"Comment"}},"CommentCreate":{"$extends":"Comment","type":"object","required":["comment"]},"CommentReactions":{"type":"object","properties":{"like":{"type":"integer"},"dislike":{"type":"integer"},"laugh":{"type":"integer"},"hooray":{"type":"integer"},"confused":{"type":"integer"},"heart":{"type":"integer"},"rocket":{"type":"integer"},"eyes":{"type":"integer"}}},"Commit":{"type":"object","properties":{"id":{"type":"integer"},"document":{"$ref":"Document"},"user":{"$ref":"User"},"previous":{"$ref":"CommitPrevious"},"message":{"type":"string"},"commitHash":{"type":"string"},"spec":{"type":"any"},"insertDate":{"format":"date-time","type":"string"}}},"CommitCollection":{"$ref":"Collection","$template":{"T":"Commit"}},"CommitPrevious":{"type":"object","properties":{"id":{"type":"integer"},"message":{"type":"string"},"commitHash":{"type":"string"},"spec":{"type":"any"},"insertDate":{"format":"date-time","type":"string"}}},"Common_Message":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"id":{"type":"string"}}},"Common_Metadata":{"type":"object","additionalProperties":{"type":"string"}},"Document":{"type":"object","properties":{"id":{"type":"integer"},"user":{"$ref":"User"},"source":{"$ref":"Document"},"status":{"type":"integer"},"stars":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"private":{"type":"boolean"},"baseVersion":{"type":"string"},"developmentMode":{"type":"boolean"},"homepage":{"type":"string"},"spec":{"type":"any"},"updateDate":{"format":"date-time","type":"string"},"insertDate":{"format":"date-time","type":"string"}}},"DocumentCollection":{"$ref":"Collection","$template":{"T":"Document"}},"DocumentCreate":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"private":{"type":"boolean"},"baseVersion":{"type":"string"},"homepage":{"type":"string"}},"required":["name"]},"DocumentExportRequest":{"type":"object","properties":{"version":{"type":"string"},"format":{"type":"string"},"namespace":{"type":"string"}}},"DocumentExportResponse":{"type":"object","properties":{"href":{"type":"string"}}},"DocumentMeta":{"type":"object","properties":{"description":{"type":"string"},"private":{"type":"boolean"},"baseVersion":{"type":"string"},"developmentMode":{"type":"boolean"},"homepage":{"type":"string"}}},"DocumentPreview":{"type":"object","properties":{"tags":{"type":"array","items":{"$ref":"Tag"}},"types":{"type":"array","items":{"type":"string"}}}},"DocumentUpdate":{"type":"object","properties":{"spec":{"type":"any"}},"required":["spec"]},"Issue":{"type":"object","properties":{"id":{"type":"integer"},"user":{"$ref":"User"},"document":{"$ref":"Document"},"status":{"type":"integer"},"title":{"type":"string"},"updateDate":{"format":"date-time","type":"string"},"insertDate":{"format":"date-time","type":"string"}}},"IssueCollection":{"$ref":"Collection","$template":{"T":"Issue"}},"IssueCreate":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"}}},"Message":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}},"Passthru":{"description":"No schema information available","type":"object","additionalProperties":{"type":"any"}},"PullRequest":{"type":"object","properties":{"id":{"type":"integer"},"status":{"type":"integer"},"source":{"$ref":"Document"},"target":{"$ref":"Document"},"user":{"$ref":"User"},"title":{"type":"string"},"updateDate":{"format":"date-time","type":"string"},"insertDate":{"format":"date-time","type":"string"}}},"PullRequestCollection":{"$ref":"Collection","$template":{"T":"PullRequest"}},"PullRequestCreate":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"}}},"System_About":{"type":"object","properties":{"apiVersion":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string"},"contactName":{"type":"string"},"contactUrl":{"type":"string"},"contactEmail":{"type":"string"},"licenseName":{"type":"string"},"licenseUrl":{"type":"string"},"paymentCurrency":{"type":"string"},"categories":{"type":"array","items":{"type":"string"}},"scopes":{"type":"array","items":{"type":"string"}},"apps":{"$ref":"System_AboutApps"},"links":{"type":"array","items":{"$ref":"System_AboutLink"}}}},"System_AboutApps":{"type":"object","additionalProperties":{"type":"string"}},"System_AboutLink":{"type":"object","properties":{"rel":{"type":"string"},"href":{"type":"string"}}},"Tag":{"type":"object","properties":{"id":{"type":"string"},"document":{"$ref":"Document"},"user":{"$ref":"User"},"version":{"type":"string"},"changelog":{"type":"string"},"spec":{"type":"any"},"insertDate":{"format":"date-time","type":"string"}}},"TagChangelog":{"type":"object","properties":{"master":{"type":"any"},"tag":{"type":"any"},"version":{"type":"string"},"changelog":{"type":"array","items":{"type":"string"}}}},"TagCollection":{"$ref":"Collection","$template":{"T":"Tag"}},"Trigger":{"type":"object","properties":{"id":{"type":"integer"},"user":{"$ref":"User"},"document":{"$ref":"Document"},"type":{"type":"string"},"config":{"$ref":"TriggerConfig"},"updateDate":{"format":"date-time","type":"string"},"insertDate":{"format":"date-time","type":"string"}}},"TriggerCollection":{"$ref":"Collection","$template":{"T":"Trigger"}},"TriggerConfig":{"type":"object","additionalProperties":{"type":"string"}},"TriggerCreate":{"$extends":"Trigger","type":"object"},"User":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}}}}}} \ No newline at end of file diff --git a/src/Client.ts b/src/Client.ts index fd4a8e9..52d54b3 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -104,6 +104,6 @@ export class Client extends ClientAbstract { public static build(clientId: string, clientSecret: string, tokenStore: TokenStoreInterface|null, scopes: Array|null): Client { - return new Client('http://127.0.0.1/website/typehub.cloud/backend/public/', new OAuth2(clientId, clientSecret, 'http://127.0.0.1/website/typehub.cloud/backend/public/authorization/token', '', tokenStore, scopes)); + return new Client('https://api.typehub.cloud/', new OAuth2(clientId, clientSecret, 'https://api.typehub.cloud/authorization/token', '', tokenStore, scopes)); } }