declare namespace io.flow.github.v0.enums { type ContentsType = 'file' | 'dir' | 'symlink' | 'submodule'; type Encoding = 'base64' | 'utf-8'; type HookEvent = 'push' | 'pull_request'; type NodeType = 'blob' | 'tree' | 'commit'; type OwnerType = 'User'; type Visibility = 'all' | 'public' | 'private'; } declare namespace io.flow.github.v0.models { interface Blob { readonly 'content': string; readonly 'encoding': io.flow.github.v0.enums.Encoding; readonly 'url': string; readonly 'sha': string; readonly 'size': number; } interface BlobCreated { readonly 'url': string; readonly 'sha': string; } interface BlobForm { readonly 'content': string; readonly 'encoding': io.flow.github.v0.enums.Encoding; } interface Commit { readonly 'sha': string; readonly 'url': string; readonly 'html_url': string; readonly 'author': io.flow.github.v0.models.Person; readonly 'committer': io.flow.github.v0.models.Person; readonly 'tree': io.flow.github.v0.models.TreeSummary; readonly 'message': string; readonly 'parents': io.flow.github.v0.models.CommitSummary[]; } interface CommitForm { readonly 'message': string; readonly 'tree': string; readonly 'parents': string[]; readonly 'author': io.flow.github.v0.models.Person; readonly 'committer': io.flow.github.v0.models.Person; } interface CommitResponse { readonly 'sha': string; readonly 'url': string; readonly 'author': io.flow.github.v0.models.Person; readonly 'committer': io.flow.github.v0.models.Person; readonly 'message': string; readonly 'tree': io.flow.github.v0.models.TreeSummary; readonly 'parents': io.flow.github.v0.models.TreeSummary[]; } interface CommitSummary { readonly 'sha': string; readonly 'url': string; } interface Contents { readonly 'type': io.flow.github.v0.enums.ContentsType; readonly 'encoding': io.flow.github.v0.enums.Encoding; readonly 'size': number; readonly 'name': string; readonly 'path': string; readonly 'content'?: string; readonly 'sha': string; readonly 'url': string; readonly 'git_url': string; readonly 'html_url': string; readonly 'download_url': string; } interface CreateTreeForm { readonly 'base_tree': string; readonly 'tree': io.flow.github.v0.models.TreeForm[]; } interface CreateTreeResponse { readonly 'sha': string; readonly 'url': string; readonly 'tree_result': io.flow.github.v0.models.Tree; } interface Error { readonly 'resource': string; readonly 'field': string; readonly 'code': string; } interface GithubObject { readonly 'type': string; readonly 'sha': string; readonly 'url': string; } interface Hook { readonly 'id': number; readonly 'url': string; readonly 'test_url': string; readonly 'ping_url': string; readonly 'name': string; readonly 'events': io.flow.github.v0.enums.HookEvent[]; readonly 'active': boolean; readonly 'config': io.flow.github.v0.models.HookConfig; readonly 'updated_at': string; readonly 'created_at': string; } interface HookConfig { readonly 'url'?: string; readonly 'content_type'?: string; } interface HookForm { readonly 'name': string; readonly 'config': io.flow.github.v0.models.HookConfig; readonly 'events': io.flow.github.v0.enums.HookEvent[]; readonly 'active': boolean; } interface Node { readonly 'path': string; readonly 'mode': string; readonly 'type': io.flow.github.v0.enums.NodeType; readonly 'size': number; readonly 'sha': string; readonly 'url': string; } interface NodeForm { readonly 'path': string; readonly 'mode': string; readonly 'type': io.flow.github.v0.enums.NodeType; readonly 'sha': string; } interface Person { readonly 'name': string; readonly 'email': string; readonly 'date': string; } interface PullRequest { readonly 'id': number; readonly 'url': string; readonly 'number': number; readonly 'html_url': string; readonly 'head': io.flow.github.v0.models.PullRequestHead; } interface PullRequestForm { readonly 'title': string; readonly 'head': string; readonly 'base': string; readonly 'body'?: string; } interface PullRequestHead { readonly 'ref': string; } interface Ref { readonly 'ref': string; readonly 'url': string; readonly 'object': io.flow.github.v0.models.GithubObject; } interface RefForm { readonly 'ref': string; readonly 'sha': string; } interface RefUpdateForm { readonly 'sha': string; } interface Repository { readonly 'id': number; readonly 'owner': io.flow.github.v0.models.User; readonly 'name': string; readonly 'full_name': string; readonly 'private': boolean; readonly 'description'?: string; readonly 'url': string; readonly 'html_url': string; readonly 'default_branch': string; } interface Tag { readonly 'tag': string; readonly 'sha': string; readonly 'url': string; readonly 'message': string; readonly 'tagger': io.flow.github.v0.models.Tagger; readonly 'object': io.flow.github.v0.models.GithubObject; } interface TagForm { readonly 'tag': string; readonly 'message': string; readonly 'object': string; readonly 'type': string; readonly 'tagger': io.flow.github.v0.models.Tagger; } interface TagSummary { readonly 'name': string; readonly 'commit': io.flow.github.v0.models.CommitSummary; } interface Tagger { readonly 'name': string; readonly 'email': string; readonly 'date': string; } interface Tree { readonly 'sha': string; readonly 'url': string; readonly 'truncated': boolean; readonly 'tree': io.flow.github.v0.models.Node[]; } interface TreeForm { readonly 'path': string; readonly 'mode': string; readonly 'type': io.flow.github.v0.enums.NodeType; readonly 'sha'?: string; readonly 'content'?: string; } interface TreeResult { readonly 'path': string; readonly 'mode': string; readonly 'type': io.flow.github.v0.enums.NodeType; readonly 'size': number; readonly 'sha': string; readonly 'url': string; } interface TreeSummary { readonly 'url': string; readonly 'sha': string; } interface UnprocessableEntity { readonly 'message': string; readonly 'errors'?: io.flow.github.v0.models.Error[]; } interface User { readonly 'id': number; readonly 'login': string; readonly 'name'?: string; readonly 'email'?: string; readonly 'avatar_url'?: string; readonly 'gravatar_id'?: string; readonly 'url': string; readonly 'html_url': string; readonly 'type': io.flow.github.v0.enums.OwnerType; } interface UserEmail { readonly 'email': string; readonly 'verified': boolean; readonly 'primary': boolean; } interface UserOrg { readonly 'login': string; } }