unison-share-projects-api-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.Share.API.Projects

Synopsis

API

Get project

type GetProjectAPI = "project" :> (QueryParam "id" Text :> (QueryParam "name" Text :> Verb 'GET 200 '[JSON] GetProjectResponse)) Source #

GET /project?id=XXX
Get a project by id.
GET /project?name=XXX
Get a project by name.

data GetProjectResponse Source #

GET /project response.

Instances

Instances details
FromJSON GetProjectResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

ToJSON GetProjectResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

Generic GetProjectResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

Associated Types

type Rep GetProjectResponse :: Type -> Type #

Show GetProjectResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

Eq GetProjectResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep GetProjectResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep GetProjectResponse = D1 ('MetaData "GetProjectResponse" "Unison.Share.API.Projects" "unison-share-projects-api-0.0.0-18MtWoC7HSJHr6aNRu4qyV" 'False) (C1 ('MetaCons "GetProjectResponseNotFound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NotFound)) :+: (C1 ('MetaCons "GetProjectResponseUnauthorized" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Unauthorized)) :+: C1 ('MetaCons "GetProjectResponseSuccess" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Project))))

Create project

type CreateProjectAPI = "create-project" :> (ReqBody '[JSON] CreateProjectRequest :> Verb 'POST 200 '[JSON] CreateProjectResponse) Source #

POST /create-project
Create a project

data CreateProjectRequest Source #

POST /create-project request.

Constructors

CreateProjectRequest 

Fields

Instances

Instances details
FromJSON CreateProjectRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

ToJSON CreateProjectRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

Generic CreateProjectRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

Associated Types

type Rep CreateProjectRequest :: Type -> Type #

Show CreateProjectRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

Eq CreateProjectRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep CreateProjectRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep CreateProjectRequest = D1 ('MetaData "CreateProjectRequest" "Unison.Share.API.Projects" "unison-share-projects-api-0.0.0-18MtWoC7HSJHr6aNRu4qyV" 'False) (C1 ('MetaCons "CreateProjectRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "projectName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data CreateProjectResponse Source #

POST /create-project response.

Instances

Instances details
FromJSON CreateProjectResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

ToJSON CreateProjectResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

Generic CreateProjectResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

Associated Types

type Rep CreateProjectResponse :: Type -> Type #

Show CreateProjectResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

Eq CreateProjectResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep CreateProjectResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep CreateProjectResponse = D1 ('MetaData "CreateProjectResponse" "Unison.Share.API.Projects" "unison-share-projects-api-0.0.0-18MtWoC7HSJHr6aNRu4qyV" 'False) (C1 ('MetaCons "CreateProjectResponseUnauthorized" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Unauthorized)) :+: (C1 ('MetaCons "CreateProjectResponseNotFound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NotFound)) :+: C1 ('MetaCons "CreateProjectResponseSuccess" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Project))))

Get project branch

type GetProjectBranchAPI = "project-branch" :> (QueryParam' '[Required, Strict] "projectId" Text :> (QueryParam "branchId" Text :> (QueryParam "branchName" Text :> (QueryFlag "includeSquashed" :> Verb 'GET 200 '[JSON] GetProjectBranchResponse)))) Source #

GET /project-branch?projectId=XXX&branchId=YYY
Get a project branch by id.
GET /project-branch?projectId=XXX&branchName=YYY
Get a project branch by name.

data GetProjectBranchResponse Source #

GET /project-branch response.

Instances

Instances details
FromJSON GetProjectBranchResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

ToJSON GetProjectBranchResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

Generic GetProjectBranchResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

Associated Types

type Rep GetProjectBranchResponse :: Type -> Type #

Show GetProjectBranchResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

Eq GetProjectBranchResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep GetProjectBranchResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep GetProjectBranchResponse = D1 ('MetaData "GetProjectBranchResponse" "Unison.Share.API.Projects" "unison-share-projects-api-0.0.0-18MtWoC7HSJHr6aNRu4qyV" 'False) ((C1 ('MetaCons "GetProjectBranchResponseProjectNotFound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NotFound)) :+: C1 ('MetaCons "GetProjectBranchResponseBranchNotFound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NotFound))) :+: (C1 ('MetaCons "GetProjectBranchResponseUnauthorized" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Unauthorized)) :+: C1 ('MetaCons "GetProjectBranchResponseSuccess" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ProjectBranch))))

Create project branch

type CreateProjectBranchAPI = "create-project-branch" :> (ReqBody '[JSON] CreateProjectBranchRequest :> Verb 'POST 200 '[JSON] CreateProjectBranchResponse) Source #

POST /create-project-branch
Create a project branch

data CreateProjectBranchRequest Source #

POST /create-project-branch request.

Instances

Instances details
FromJSON CreateProjectBranchRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

ToJSON CreateProjectBranchRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

Generic CreateProjectBranchRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

Associated Types

type Rep CreateProjectBranchRequest :: Type -> Type #

Show CreateProjectBranchRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

Eq CreateProjectBranchRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep CreateProjectBranchRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep CreateProjectBranchRequest = D1 ('MetaData "CreateProjectBranchRequest" "Unison.Share.API.Projects" "unison-share-projects-api-0.0.0-18MtWoC7HSJHr6aNRu4qyV" 'False) (C1 ('MetaCons "CreateProjectBranchRequest" 'PrefixI 'True) ((S1 ('MetaSel ('Just "projectId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "branchName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "branchCausalHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Hash32) :*: S1 ('MetaSel ('Just "branchMergeTarget") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ProjectBranchIds)))))

data CreateProjectBranchResponse Source #

POST /create-project-branch response.

Instances

Instances details
FromJSON CreateProjectBranchResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

ToJSON CreateProjectBranchResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

Generic CreateProjectBranchResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

Associated Types

type Rep CreateProjectBranchResponse :: Type -> Type #

Show CreateProjectBranchResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

Eq CreateProjectBranchResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep CreateProjectBranchResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep CreateProjectBranchResponse = D1 ('MetaData "CreateProjectBranchResponse" "Unison.Share.API.Projects" "unison-share-projects-api-0.0.0-18MtWoC7HSJHr6aNRu4qyV" 'False) ((C1 ('MetaCons "CreateProjectBranchResponseUnauthorized" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Unauthorized)) :+: C1 ('MetaCons "CreateProjectBranchResponseNotFound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NotFound))) :+: (C1 ('MetaCons "CreateProjectBranchResponseMissingCausalHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Hash32)) :+: C1 ('MetaCons "CreateProjectBranchResponseSuccess" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ProjectBranch))))

Set project branch head

type SetProjectBranchHeadAPI = "set-project-branch-head" :> (ReqBody '[JSON] SetProjectBranchHeadRequest :> Verb 'POST 200 '[JSON] SetProjectBranchHeadResponse) Source #

POST /set-project-branch-head
Make a project branch point at an already-uploaded causal

data SetProjectBranchHeadRequest Source #

POST /set-project-branch-head request.

Constructors

SetProjectBranchHeadRequest 

Fields

Instances

Instances details
FromJSON SetProjectBranchHeadRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

ToJSON SetProjectBranchHeadRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

Generic SetProjectBranchHeadRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

Associated Types

type Rep SetProjectBranchHeadRequest :: Type -> Type #

Show SetProjectBranchHeadRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

Eq SetProjectBranchHeadRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep SetProjectBranchHeadRequest Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep SetProjectBranchHeadRequest = D1 ('MetaData "SetProjectBranchHeadRequest" "Unison.Share.API.Projects" "unison-share-projects-api-0.0.0-18MtWoC7HSJHr6aNRu4qyV" 'False) (C1 ('MetaCons "SetProjectBranchHeadRequest" 'PrefixI 'True) ((S1 ('MetaSel ('Just "projectId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "branchId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "branchOldCausalHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Hash32)) :*: S1 ('MetaSel ('Just "branchNewCausalHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Hash32))))

data SetProjectBranchHeadResponse Source #

POST /set-project-branch-hash response.

Instances

Instances details
FromJSON SetProjectBranchHeadResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

ToJSON SetProjectBranchHeadResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

Generic SetProjectBranchHeadResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

Associated Types

type Rep SetProjectBranchHeadResponse :: Type -> Type #

Show SetProjectBranchHeadResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

Eq SetProjectBranchHeadResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep SetProjectBranchHeadResponse Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep SetProjectBranchHeadResponse = D1 ('MetaData "SetProjectBranchHeadResponse" "Unison.Share.API.Projects" "unison-share-projects-api-0.0.0-18MtWoC7HSJHr6aNRu4qyV" 'False) ((C1 ('MetaCons "SetProjectBranchHeadResponseUnauthorized" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Unauthorized)) :+: (C1 ('MetaCons "SetProjectBranchHeadResponseNotFound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NotFound)) :+: C1 ('MetaCons "SetProjectBranchHeadResponseMissingCausalHash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Hash32)))) :+: ((C1 ('MetaCons "SetProjectBranchHeadResponseExpectedCausalHashMismatch" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Hash32) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Hash32)) :+: C1 ('MetaCons "SetProjectBranchHeadResponsePublishedReleaseIsImmutable" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "SetProjectBranchHeadResponseDeprecatedReleaseIsImmutable" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SetProjectBranchHeadResponseSuccess" 'PrefixI 'False) (U1 :: Type -> Type))))

Types

data Project Source #

A project.

Constructors

Project 

Instances

Instances details
FromJSON Project Source # 
Instance details

Defined in Unison.Share.API.Projects

ToJSON Project Source # 
Instance details

Defined in Unison.Share.API.Projects

Generic Project Source # 
Instance details

Defined in Unison.Share.API.Projects

Associated Types

type Rep Project :: Type -> Type #

Methods

from :: Project -> Rep Project x #

to :: Rep Project x -> Project #

Show Project Source # 
Instance details

Defined in Unison.Share.API.Projects

Eq Project Source # 
Instance details

Defined in Unison.Share.API.Projects

Methods

(==) :: Project -> Project -> Bool #

(/=) :: Project -> Project -> Bool #

type Rep Project Source # 
Instance details

Defined in Unison.Share.API.Projects

data ProjectBranch Source #

A project branch.

Instances

Instances details
FromJSON ProjectBranch Source # 
Instance details

Defined in Unison.Share.API.Projects

ToJSON ProjectBranch Source # 
Instance details

Defined in Unison.Share.API.Projects

Generic ProjectBranch Source # 
Instance details

Defined in Unison.Share.API.Projects

Associated Types

type Rep ProjectBranch :: Type -> Type #

Show ProjectBranch Source # 
Instance details

Defined in Unison.Share.API.Projects

Eq ProjectBranch Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep ProjectBranch Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep ProjectBranch = D1 ('MetaData "ProjectBranch" "Unison.Share.API.Projects" "unison-share-projects-api-0.0.0-18MtWoC7HSJHr6aNRu4qyV" 'False) (C1 ('MetaCons "ProjectBranch" 'PrefixI 'True) ((S1 ('MetaSel ('Just "projectId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "projectName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "branchId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "branchName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "branchHead") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HashJWT) :*: S1 ('MetaSel ('Just "squashedBranchHead") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe HashJWT))))))

data ProjectBranchIds Source #

A project id and branch id.

Constructors

ProjectBranchIds 

Fields

Instances

Instances details
FromJSON ProjectBranchIds Source # 
Instance details

Defined in Unison.Share.API.Projects

ToJSON ProjectBranchIds Source # 
Instance details

Defined in Unison.Share.API.Projects

Generic ProjectBranchIds Source # 
Instance details

Defined in Unison.Share.API.Projects

Associated Types

type Rep ProjectBranchIds :: Type -> Type #

Show ProjectBranchIds Source # 
Instance details

Defined in Unison.Share.API.Projects

Eq ProjectBranchIds Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep ProjectBranchIds Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep ProjectBranchIds = D1 ('MetaData "ProjectBranchIds" "Unison.Share.API.Projects" "unison-share-projects-api-0.0.0-18MtWoC7HSJHr6aNRu4qyV" 'False) (C1 ('MetaCons "ProjectBranchIds" 'PrefixI 'True) (S1 ('MetaSel ('Just "projectId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "branchId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data NotFound Source #

Constructors

NotFound 

Fields

Instances

Instances details
FromJSON NotFound Source # 
Instance details

Defined in Unison.Share.API.Projects

ToJSON NotFound Source # 
Instance details

Defined in Unison.Share.API.Projects

Generic NotFound Source # 
Instance details

Defined in Unison.Share.API.Projects

Associated Types

type Rep NotFound :: Type -> Type #

Methods

from :: NotFound -> Rep NotFound x #

to :: Rep NotFound x -> NotFound #

Show NotFound Source # 
Instance details

Defined in Unison.Share.API.Projects

Eq NotFound Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep NotFound Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep NotFound = D1 ('MetaData "NotFound" "Unison.Share.API.Projects" "unison-share-projects-api-0.0.0-18MtWoC7HSJHr6aNRu4qyV" 'False) (C1 ('MetaCons "NotFound" 'PrefixI 'True) (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data Unauthorized Source #

Constructors

Unauthorized 

Fields

Instances

Instances details
FromJSON Unauthorized Source # 
Instance details

Defined in Unison.Share.API.Projects

ToJSON Unauthorized Source # 
Instance details

Defined in Unison.Share.API.Projects

Generic Unauthorized Source # 
Instance details

Defined in Unison.Share.API.Projects

Associated Types

type Rep Unauthorized :: Type -> Type #

Show Unauthorized Source # 
Instance details

Defined in Unison.Share.API.Projects

Eq Unauthorized Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep Unauthorized Source # 
Instance details

Defined in Unison.Share.API.Projects

type Rep Unauthorized = D1 ('MetaData "Unauthorized" "Unison.Share.API.Projects" "unison-share-projects-api-0.0.0-18MtWoC7HSJHr6aNRu4qyV" 'False) (C1 ('MetaCons "Unauthorized" 'PrefixI 'True) (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

type BranchName = Text Source #

A project branch name segment. Does not contain a project or contributor segment.

E.g. "main"