responses

package
v0.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comments added in v0.4.2

type Comments struct {
	ID           int                    `json:"id"`
	Phid         string                 `json:"phid"`
	Version      int                    `json:"version"`
	AuthorPHID   string                 `json:"authorPHID"`
	DateCreated  util.UnixTimestamp     `json:"dateCreated"`
	DateModified util.UnixTimestamp     `json:"dateModified"`
	Removed      bool                   `json:"removed"`
	Content      map[string]interface{} `json:"content"`
}

Comments is a struct embedded in the Data struct.

type CommitParentsQueryResponse added in v0.4.2

type CommitParentsQueryResponse []string

CommitParentsQueryResponse represents the result of calling commit.commitparentsquery.

type ConduitCapabilitiesResponse

type ConduitCapabilitiesResponse struct {
	Authentication []string `json:"authentication"`
	Signatures     []string `json:"signatures"`
	Input          []string `json:"input"`
	Output         []string `json:"output"`
}

ConduitCapabilitiesResponse represents a response from calling conduit.capabilities.

type ConduitConnectResponse

type ConduitConnectResponse struct {
	SessionKey   string `json:"sessionKey"`
	ConnectionID int64  `json:"connectionID"`
}

ConduitConnectResponse represents the response from calling conduit.connect.

type ConduitQueryResponse added in v0.2.0

type ConduitQueryResponse map[string]*entities.ConduitMethod

ConduitQueryResponse is the response of calling conduit.query.

type Data added in v0.4.2

type Data struct {
	ID           int                    `json:"id"`
	Phid         string                 `json:"phid"`
	Type         string                 `json:"type"`
	AuthorPHID   string                 `json:"authorPHID"`
	ObjectPHID   string                 `json:"objectPHID"`
	DateCreated  util.UnixTimestamp     `json:"dateCreated"`
	DateModified util.UnixTimestamp     `json:"dateModified"`
	GroupID      string                 `json:"groupID"`
	Comments     []Comments             `json:"comments"`
	Fields       map[string]interface{} `json:"fields,omitempty"`
}

Data is a struct embedded in the TransactionSearchResponse.

type DifferentialGetRawDiffResponse added in v0.4.2

type DifferentialGetRawDiffResponse *entities.DifferentialRawDiff

DifferentialGetRawDiffResponse is the response from calling differential.getrawdiff.

type DifferentialQueryDiffsResponse added in v0.4.2

type DifferentialQueryDiffsResponse map[string]*entities.DifferentialDiff

DifferentialQueryDiffsResponse is the response of calling differential.querydiffs.

type DifferentialQueryResponse

type DifferentialQueryResponse []*entities.DifferentialRevision

DifferentialQueryResponse is the response of calling differential.query.

type DiffusionBranchQueryResponse added in v0.4.2

type DiffusionBranchQueryResponse []*entities.DiffusionBranch

DiffusionBranchQueryResponse represents a response of the diffusion.branchquery call.

type DiffusionQueryCommitsResponse

type DiffusionQueryCommitsResponse struct {
	Data          map[string]entities.DiffusionCommit `json:"data"`
	IdentifierMap map[string]string                   `json:"identifierMap"`
	Cursor        entities.Cursor                     `json:"cursor"`
}

DiffusionQueryCommitsResponse represents a response of the diffusion.querycommits call.

type Edge added in v0.4.2

type Edge struct {
	SourcePhid      string `json:"sourcePHID"`
	DestinationPhid string `json:"destinationPHID"`
	EdgeType        string `json:"edgeType"`
}

type EdgeSearchResponse added in v0.4.2

type EdgeSearchResponse struct {
	Data   []Edge `json:"data"`
	Cursor struct {
		Limit  int         `json:"limit"`
		After  interface{} `json:"after"`
		Before interface{} `json:"before"`
	} `json:"cursor"`
}

EdgeSearchResponse is the result of calling edge.search and is a list of object relationships.

type EditResponse added in v0.4.2

type EditResponse struct {
	// Object contains information about the object that was created or edited.
	Object struct {
		PHID entities.PHID `json:"phid"`
	} `json:"object"`
	// Transactions contains information about the transactions that were actually applied.
	Transactions []struct {
		TransactionPHID entities.PHID `json:"phid"`
	} `json:"transactions"`
}

EditResponse is likely to change as ApplicationEditor evolves.

type FileContentQueryResponse added in v0.4.2

type FileContentQueryResponse struct {
	TooSlow  bool   `json:"tooSlow"`
	TooHuge  bool   `json:"tooHuge"`
	FilePHID string `json:"filePHID"`
}

FileContentQueryResponse represents a response of the diffusion.filecontentquery call.

type FileDownloadResponse

type FileDownloadResponse string

FileDownloadResponse represents a response from calling file.download.

type HarbormasterCreateArtifactResponse added in v0.4.2

type HarbormasterCreateArtifactResponse struct {
	Result struct {
		Data []struct {
			PHID string `json:"phid"`
		} `json:"data"`
	} `json:"result"`
}

HarbormasterCreateArtifactResponse is the response of calling harbormaster.createartifact.

type HarbormasterSendMessageResponse added in v0.4.2

type HarbormasterSendMessageResponse struct {
	Result struct {
	} `json:"result"`
}

HarbormasterSendMessageResponse is the response of calling harbormaster.sendmessage.

type MacroCreateMemeResponse

type MacroCreateMemeResponse struct {
	URI string `json:"uri"`
}

MacroCreateMemeResponse represents a response from calling macro.creatememe.

type ManiphestGetTaskTransactionsResponse added in v0.4.2

type ManiphestGetTaskTransactionsResponse map[string][]*entities.ManiphestTaskTransaction

ManiphestGetTaskTransactionsResponse is the response of calling maniphest.query.

type ManiphestQueryResponse

type ManiphestQueryResponse map[string]*entities.ManiphestTask

ManiphestQueryResponse is the response of calling maniphest.query.

func (ManiphestQueryResponse) Get

Get gets the task with the speicfied numeric ID.

type PHIDLookupResponse

type PHIDLookupResponse map[string]*entities.PHIDResult

PHIDLookupResponse is the result of phid.lookup operations.

type PHIDQueryResponse

type PHIDQueryResponse map[string]*entities.PHIDResult

PHIDQueryResponse is the result of phid.query operations.

type PasteCreateResponse

type PasteCreateResponse *entities.PasteItem

PasteCreateResponse represents the result of calling paste.create.

type PasteQueryResponse

type PasteQueryResponse map[string]*entities.PasteItem

PasteQueryResponse represents the result of calling paste.query.

type PhrictionInfoResponse added in v0.4.2

type PhrictionInfoResponse entities.PhrictionDocument

type ProjectQueryResponse

type ProjectQueryResponse struct {
	Data    map[string]entities.Project `json:"data"`
	SlugMap map[string]string           `json:"sligMap"`
	Cursor  entities.Cursor             `json:"cursor"`
}

ProjectQueryResponse represents a response from calling project.query.

type RemarkupProcessResponse added in v0.4.2

type RemarkupProcessResponse []*entities.RemarkupDocument

type RepositoryQueryResponse

type RepositoryQueryResponse []*entities.Repository

RepositoryQueryResponse is the result of repository.query operations.

type ResolveRefsResponse added in v0.4.2

type ResolveRefsResponse map[string][]*entities.ResolvedRef

ResolveRefsResponse represents the result of calling diffusion.resolverefs.

type SearchData added in v0.4.2

type SearchData struct {
	ID          int                               `json:"id"`
	Type        string                            `json:"type"`
	PHID        string                            `json:"phid"`
	Fields      map[string]interface{}            `json:"fields"`
	Attachments map[string]map[string]interface{} `json:"attachments"`
}

SearchData is a single response item from a search.

type SearchResponse added in v0.4.2

type SearchResponse struct {
	Data   []SearchData `json:"data"`
	Cursor struct {
		Limit  int                   `json:"limit"`
		After  string                `json:"after"`
		Before string                `json:"before"`
		Order  constants.SearchOrder `json:"order"`
	} `json:"cursor"`
}

SearchResponse is the response of calling one of the .search endpoints.

type TransactionSearchResponse added in v0.4.2

type TransactionSearchResponse struct {
	Data   []Data `json:"data"`
	Cursor struct {
		Limit  int         `json:"limit"`
		After  interface{} `json:"after"`
		Before interface{} `json:"before"`
	} `json:"cursor"`
}

TransactionSearchResponse is the response of calling transaction.search.

type UserQueryResponse added in v0.4.2

type UserQueryResponse []entities.User

UserQueryResponse a response from calling user.query.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL