enum.go

  1// Code generated by gen.go; DO NOT EDIT.
  2
  3package githubv4
  4
  5// CollaboratorAffiliation represents collaborators affiliation level with a subject.
  6type CollaboratorAffiliation string
  7
  8// Collaborators affiliation level with a subject.
  9const (
 10	CollaboratorAffiliationOutside CollaboratorAffiliation = "OUTSIDE" // All outside collaborators of an organization-owned subject.
 11	CollaboratorAffiliationDirect  CollaboratorAffiliation = "DIRECT"  // All collaborators with permissions to an organization-owned subject, regardless of organization membership status.
 12	CollaboratorAffiliationAll     CollaboratorAffiliation = "ALL"     // All collaborators the authenticated user can see.
 13)
 14
 15// CommentAuthorAssociation represents a comment author association with repository.
 16type CommentAuthorAssociation string
 17
 18// A comment author association with repository.
 19const (
 20	CommentAuthorAssociationMember               CommentAuthorAssociation = "MEMBER"                 // Author is a member of the organization that owns the repository.
 21	CommentAuthorAssociationOwner                CommentAuthorAssociation = "OWNER"                  // Author is the owner of the repository.
 22	CommentAuthorAssociationCollaborator         CommentAuthorAssociation = "COLLABORATOR"           // Author has been invited to collaborate on the repository.
 23	CommentAuthorAssociationContributor          CommentAuthorAssociation = "CONTRIBUTOR"            // Author has previously committed to the repository.
 24	CommentAuthorAssociationFirstTimeContributor CommentAuthorAssociation = "FIRST_TIME_CONTRIBUTOR" // Author has not previously committed to the repository.
 25	CommentAuthorAssociationFirstTimer           CommentAuthorAssociation = "FIRST_TIMER"            // Author has not previously committed to GitHub.
 26	CommentAuthorAssociationNone                 CommentAuthorAssociation = "NONE"                   // Author has no association with the repository.
 27)
 28
 29// CommentCannotUpdateReason represents the possible errors that will prevent a user from updating a comment.
 30type CommentCannotUpdateReason string
 31
 32// The possible errors that will prevent a user from updating a comment.
 33const (
 34	CommentCannotUpdateReasonInsufficientAccess    CommentCannotUpdateReason = "INSUFFICIENT_ACCESS"     // You must be the author or have write access to this repository to update this comment.
 35	CommentCannotUpdateReasonLocked                CommentCannotUpdateReason = "LOCKED"                  // Unable to create comment because issue is locked.
 36	CommentCannotUpdateReasonLoginRequired         CommentCannotUpdateReason = "LOGIN_REQUIRED"          // You must be logged in to update this comment.
 37	CommentCannotUpdateReasonMaintenance           CommentCannotUpdateReason = "MAINTENANCE"             // Repository is under maintenance.
 38	CommentCannotUpdateReasonVerifiedEmailRequired CommentCannotUpdateReason = "VERIFIED_EMAIL_REQUIRED" // At least one email address must be verified to update this comment.
 39	CommentCannotUpdateReasonDenied                CommentCannotUpdateReason = "DENIED"                  // You cannot update this comment.
 40)
 41
 42// CommitContributionOrderField represents properties by which commit contribution connections can be ordered.
 43type CommitContributionOrderField string
 44
 45// Properties by which commit contribution connections can be ordered.
 46const (
 47	CommitContributionOrderFieldOccurredAt  CommitContributionOrderField = "OCCURRED_AT"  // Order commit contributions by when they were made.
 48	CommitContributionOrderFieldCommitCount CommitContributionOrderField = "COMMIT_COUNT" // Order commit contributions by how many commits they represent.
 49)
 50
 51// ContributionOrderField represents properties by which contribution connections can be ordered.
 52type ContributionOrderField string
 53
 54// Properties by which contribution connections can be ordered.
 55const (
 56	ContributionOrderFieldOccurredAt ContributionOrderField = "OCCURRED_AT" // Order contributions by when they were made.
 57)
 58
 59// DefaultRepositoryPermissionField represents the possible default permissions for repositories.
 60type DefaultRepositoryPermissionField string
 61
 62// The possible default permissions for repositories.
 63const (
 64	DefaultRepositoryPermissionFieldNone  DefaultRepositoryPermissionField = "NONE"  // No access.
 65	DefaultRepositoryPermissionFieldRead  DefaultRepositoryPermissionField = "READ"  // Can read repos by default.
 66	DefaultRepositoryPermissionFieldWrite DefaultRepositoryPermissionField = "WRITE" // Can read and write repos by default.
 67	DefaultRepositoryPermissionFieldAdmin DefaultRepositoryPermissionField = "ADMIN" // Can read, write, and administrate repos by default.
 68)
 69
 70// DeploymentOrderField represents properties by which deployment connections can be ordered.
 71type DeploymentOrderField string
 72
 73// Properties by which deployment connections can be ordered.
 74const (
 75	DeploymentOrderFieldCreatedAt DeploymentOrderField = "CREATED_AT" // Order collection by creation time.
 76)
 77
 78// DeploymentState represents the possible states in which a deployment can be.
 79type DeploymentState string
 80
 81// The possible states in which a deployment can be.
 82const (
 83	DeploymentStateAbandoned  DeploymentState = "ABANDONED"   // The pending deployment was not updated after 30 minutes.
 84	DeploymentStateActive     DeploymentState = "ACTIVE"      // The deployment is currently active.
 85	DeploymentStateDestroyed  DeploymentState = "DESTROYED"   // An inactive transient deployment.
 86	DeploymentStateError      DeploymentState = "ERROR"       // The deployment experienced an error.
 87	DeploymentStateFailure    DeploymentState = "FAILURE"     // The deployment has failed.
 88	DeploymentStateInactive   DeploymentState = "INACTIVE"    // The deployment is inactive.
 89	DeploymentStatePending    DeploymentState = "PENDING"     // The deployment is pending.
 90	DeploymentStateQueued     DeploymentState = "QUEUED"      // The deployment has queued.
 91	DeploymentStateInProgress DeploymentState = "IN_PROGRESS" // The deployment is in progress.
 92)
 93
 94// DeploymentStatusState represents the possible states for a deployment status.
 95type DeploymentStatusState string
 96
 97// The possible states for a deployment status.
 98const (
 99	DeploymentStatusStatePending    DeploymentStatusState = "PENDING"     // The deployment is pending.
100	DeploymentStatusStateSuccess    DeploymentStatusState = "SUCCESS"     // The deployment was successful.
101	DeploymentStatusStateFailure    DeploymentStatusState = "FAILURE"     // The deployment has failed.
102	DeploymentStatusStateInactive   DeploymentStatusState = "INACTIVE"    // The deployment is inactive.
103	DeploymentStatusStateError      DeploymentStatusState = "ERROR"       // The deployment experienced an error.
104	DeploymentStatusStateQueued     DeploymentStatusState = "QUEUED"      // The deployment is queued.
105	DeploymentStatusStateInProgress DeploymentStatusState = "IN_PROGRESS" // The deployment is in progress.
106)
107
108// GistOrderField represents properties by which gist connections can be ordered.
109type GistOrderField string
110
111// Properties by which gist connections can be ordered.
112const (
113	GistOrderFieldCreatedAt GistOrderField = "CREATED_AT" // Order gists by creation time.
114	GistOrderFieldUpdatedAt GistOrderField = "UPDATED_AT" // Order gists by update time.
115	GistOrderFieldPushedAt  GistOrderField = "PUSHED_AT"  // Order gists by push time.
116)
117
118// GistPrivacy represents the privacy of a Gist.
119type GistPrivacy string
120
121// The privacy of a Gist.
122const (
123	GistPrivacyPublic GistPrivacy = "PUBLIC" // Public.
124	GistPrivacySecret GistPrivacy = "SECRET" // Secret.
125	GistPrivacyAll    GistPrivacy = "ALL"    // Gists that are public and secret.
126)
127
128// GitSignatureState represents the state of a Git signature.
129type GitSignatureState string
130
131// The state of a Git signature.
132const (
133	GitSignatureStateValid                GitSignatureState = "VALID"                 // Valid signature and verified by GitHub.
134	GitSignatureStateInvalid              GitSignatureState = "INVALID"               // Invalid signature.
135	GitSignatureStateMalformedSig         GitSignatureState = "MALFORMED_SIG"         // Malformed signature.
136	GitSignatureStateUnknownKey           GitSignatureState = "UNKNOWN_KEY"           // Key used for signing not known to GitHub.
137	GitSignatureStateBadEmail             GitSignatureState = "BAD_EMAIL"             // Invalid email used for signing.
138	GitSignatureStateUnverifiedEmail      GitSignatureState = "UNVERIFIED_EMAIL"      // Email used for signing unverified on GitHub.
139	GitSignatureStateNoUser               GitSignatureState = "NO_USER"               // Email used for signing not known to GitHub.
140	GitSignatureStateUnknownSigType       GitSignatureState = "UNKNOWN_SIG_TYPE"      // Unknown signature type.
141	GitSignatureStateUnsigned             GitSignatureState = "UNSIGNED"              // Unsigned.
142	GitSignatureStateGpgverifyUnavailable GitSignatureState = "GPGVERIFY_UNAVAILABLE" // Internal error - the GPG verification service is unavailable at the moment.
143	GitSignatureStateGpgverifyError       GitSignatureState = "GPGVERIFY_ERROR"       // Internal error - the GPG verification service misbehaved.
144	GitSignatureStateNotSigningKey        GitSignatureState = "NOT_SIGNING_KEY"       // The usage flags for the key that signed this don't allow signing.
145	GitSignatureStateExpiredKey           GitSignatureState = "EXPIRED_KEY"           // Signing key expired.
146	GitSignatureStateOcspPending          GitSignatureState = "OCSP_PENDING"          // Valid signature, pending certificate revocation checking.
147	GitSignatureStateOcspError            GitSignatureState = "OCSP_ERROR"            // Valid siganture, though certificate revocation check failed.
148	GitSignatureStateBadCert              GitSignatureState = "BAD_CERT"              // The signing certificate or its chain could not be verified.
149	GitSignatureStateOcspRevoked          GitSignatureState = "OCSP_REVOKED"          // One or more certificates in chain has been revoked.
150)
151
152// IdentityProviderConfigurationState represents the possible states in which authentication can be configured with an identity provider.
153type IdentityProviderConfigurationState string
154
155// The possible states in which authentication can be configured with an identity provider.
156const (
157	IdentityProviderConfigurationStateEnforced     IdentityProviderConfigurationState = "ENFORCED"     // Authentication with an identity provider is configured and enforced.
158	IdentityProviderConfigurationStateConfigured   IdentityProviderConfigurationState = "CONFIGURED"   // Authentication with an identity provider is configured but not enforced.
159	IdentityProviderConfigurationStateUnconfigured IdentityProviderConfigurationState = "UNCONFIGURED" // Authentication with an identity provider is not configured.
160)
161
162// IssueOrderField represents properties by which issue connections can be ordered.
163type IssueOrderField string
164
165// Properties by which issue connections can be ordered.
166const (
167	IssueOrderFieldCreatedAt IssueOrderField = "CREATED_AT" // Order issues by creation time.
168	IssueOrderFieldUpdatedAt IssueOrderField = "UPDATED_AT" // Order issues by update time.
169	IssueOrderFieldComments  IssueOrderField = "COMMENTS"   // Order issues by comment count.
170)
171
172// IssuePubSubTopic represents the possible PubSub channels for an issue.
173type IssuePubSubTopic string
174
175// The possible PubSub channels for an issue.
176const (
177	IssuePubSubTopicUpdated    IssuePubSubTopic = "UPDATED"    // The channel ID for observing issue updates.
178	IssuePubSubTopicMarkasread IssuePubSubTopic = "MARKASREAD" // The channel ID for marking an issue as read.
179	IssuePubSubTopicTimeline   IssuePubSubTopic = "TIMELINE"   // The channel ID for updating items on the issue timeline.
180	IssuePubSubTopicState      IssuePubSubTopic = "STATE"      // The channel ID for observing issue state updates.
181)
182
183// IssueState represents the possible states of an issue.
184type IssueState string
185
186// The possible states of an issue.
187const (
188	IssueStateOpen   IssueState = "OPEN"   // An issue that is still open.
189	IssueStateClosed IssueState = "CLOSED" // An issue that has been closed.
190)
191
192// IssueTimelineItemsItemType represents the possible item types found in a timeline.
193type IssueTimelineItemsItemType string
194
195// The possible item types found in a timeline.
196const (
197	IssueTimelineItemsItemTypeIssueComment               IssueTimelineItemsItemType = "ISSUE_COMMENT"                  // Represents a comment on an Issue.
198	IssueTimelineItemsItemTypeCrossReferencedEvent       IssueTimelineItemsItemType = "CROSS_REFERENCED_EVENT"         // Represents a mention made by one issue or pull request to another.
199	IssueTimelineItemsItemTypeAddedToProjectEvent        IssueTimelineItemsItemType = "ADDED_TO_PROJECT_EVENT"         // Represents a 'added_to_project' event on a given issue or pull request.
200	IssueTimelineItemsItemTypeAssignedEvent              IssueTimelineItemsItemType = "ASSIGNED_EVENT"                 // Represents an 'assigned' event on any assignable object.
201	IssueTimelineItemsItemTypeClosedEvent                IssueTimelineItemsItemType = "CLOSED_EVENT"                   // Represents a 'closed' event on any `Closable`.
202	IssueTimelineItemsItemTypeCommentDeletedEvent        IssueTimelineItemsItemType = "COMMENT_DELETED_EVENT"          // Represents a 'comment_deleted' event on a given issue or pull request.
203	IssueTimelineItemsItemTypeConvertedNoteToIssueEvent  IssueTimelineItemsItemType = "CONVERTED_NOTE_TO_ISSUE_EVENT"  // Represents a 'converted_note_to_issue' event on a given issue or pull request.
204	IssueTimelineItemsItemTypeDemilestonedEvent          IssueTimelineItemsItemType = "DEMILESTONED_EVENT"             // Represents a 'demilestoned' event on a given issue or pull request.
205	IssueTimelineItemsItemTypeLabeledEvent               IssueTimelineItemsItemType = "LABELED_EVENT"                  // Represents a 'labeled' event on a given issue or pull request.
206	IssueTimelineItemsItemTypeLockedEvent                IssueTimelineItemsItemType = "LOCKED_EVENT"                   // Represents a 'locked' event on a given issue or pull request.
207	IssueTimelineItemsItemTypeMentionedEvent             IssueTimelineItemsItemType = "MENTIONED_EVENT"                // Represents a 'mentioned' event on a given issue or pull request.
208	IssueTimelineItemsItemTypeMilestonedEvent            IssueTimelineItemsItemType = "MILESTONED_EVENT"               // Represents a 'milestoned' event on a given issue or pull request.
209	IssueTimelineItemsItemTypeMovedColumnsInProjectEvent IssueTimelineItemsItemType = "MOVED_COLUMNS_IN_PROJECT_EVENT" // Represents a 'moved_columns_in_project' event on a given issue or pull request.
210	IssueTimelineItemsItemTypePinnedEvent                IssueTimelineItemsItemType = "PINNED_EVENT"                   // Represents a 'pinned' event on a given issue or pull request.
211	IssueTimelineItemsItemTypeReferencedEvent            IssueTimelineItemsItemType = "REFERENCED_EVENT"               // Represents a 'referenced' event on a given `ReferencedSubject`.
212	IssueTimelineItemsItemTypeRemovedFromProjectEvent    IssueTimelineItemsItemType = "REMOVED_FROM_PROJECT_EVENT"     // Represents a 'removed_from_project' event on a given issue or pull request.
213	IssueTimelineItemsItemTypeRenamedTitleEvent          IssueTimelineItemsItemType = "RENAMED_TITLE_EVENT"            // Represents a 'renamed' event on a given issue or pull request.
214	IssueTimelineItemsItemTypeReopenedEvent              IssueTimelineItemsItemType = "REOPENED_EVENT"                 // Represents a 'reopened' event on any `Closable`.
215	IssueTimelineItemsItemTypeSubscribedEvent            IssueTimelineItemsItemType = "SUBSCRIBED_EVENT"               // Represents a 'subscribed' event on a given `Subscribable`.
216	IssueTimelineItemsItemTypeTransferredEvent           IssueTimelineItemsItemType = "TRANSFERRED_EVENT"              // Represents a 'transferred' event on a given issue or pull request.
217	IssueTimelineItemsItemTypeUnassignedEvent            IssueTimelineItemsItemType = "UNASSIGNED_EVENT"               // Represents an 'unassigned' event on any assignable object.
218	IssueTimelineItemsItemTypeUnlabeledEvent             IssueTimelineItemsItemType = "UNLABELED_EVENT"                // Represents an 'unlabeled' event on a given issue or pull request.
219	IssueTimelineItemsItemTypeUnlockedEvent              IssueTimelineItemsItemType = "UNLOCKED_EVENT"                 // Represents an 'unlocked' event on a given issue or pull request.
220	IssueTimelineItemsItemTypeUserBlockedEvent           IssueTimelineItemsItemType = "USER_BLOCKED_EVENT"             // Represents a 'user_blocked' event on a given user.
221	IssueTimelineItemsItemTypeUnpinnedEvent              IssueTimelineItemsItemType = "UNPINNED_EVENT"                 // Represents an 'unpinned' event on a given issue or pull request.
222	IssueTimelineItemsItemTypeUnsubscribedEvent          IssueTimelineItemsItemType = "UNSUBSCRIBED_EVENT"             // Represents an 'unsubscribed' event on a given `Subscribable`.
223)
224
225// LanguageOrderField represents properties by which language connections can be ordered.
226type LanguageOrderField string
227
228// Properties by which language connections can be ordered.
229const (
230	LanguageOrderFieldSize LanguageOrderField = "SIZE" // Order languages by the size of all files containing the language.
231)
232
233// LockReason represents the possible reasons that an issue or pull request was locked.
234type LockReason string
235
236// The possible reasons that an issue or pull request was locked.
237const (
238	LockReasonOffTopic  LockReason = "OFF_TOPIC"  // The issue or pull request was locked because the conversation was off-topic.
239	LockReasonTooHeated LockReason = "TOO_HEATED" // The issue or pull request was locked because the conversation was too heated.
240	LockReasonResolved  LockReason = "RESOLVED"   // The issue or pull request was locked because the conversation was resolved.
241	LockReasonSpam      LockReason = "SPAM"       // The issue or pull request was locked because the conversation was spam.
242)
243
244// MergeableState represents whether or not a PullRequest can be merged.
245type MergeableState string
246
247// Whether or not a PullRequest can be merged.
248const (
249	MergeableStateMergeable   MergeableState = "MERGEABLE"   // The pull request can be merged.
250	MergeableStateConflicting MergeableState = "CONFLICTING" // The pull request cannot be merged due to merge conflicts.
251	MergeableStateUnknown     MergeableState = "UNKNOWN"     // The mergeability of the pull request is still being calculated.
252)
253
254// MilestoneOrderField represents properties by which milestone connections can be ordered.
255type MilestoneOrderField string
256
257// Properties by which milestone connections can be ordered.
258const (
259	MilestoneOrderFieldDueDate   MilestoneOrderField = "DUE_DATE"   // Order milestones by when they are due.
260	MilestoneOrderFieldCreatedAt MilestoneOrderField = "CREATED_AT" // Order milestones by when they were created.
261	MilestoneOrderFieldUpdatedAt MilestoneOrderField = "UPDATED_AT" // Order milestones by when they were last updated.
262	MilestoneOrderFieldNumber    MilestoneOrderField = "NUMBER"     // Order milestones by their number.
263)
264
265// MilestoneState represents the possible states of a milestone.
266type MilestoneState string
267
268// The possible states of a milestone.
269const (
270	MilestoneStateOpen   MilestoneState = "OPEN"   // A milestone that is still open.
271	MilestoneStateClosed MilestoneState = "CLOSED" // A milestone that has been closed.
272)
273
274// OrderDirection represents possible directions in which to order a list of items when provided an `orderBy` argument.
275type OrderDirection string
276
277// Possible directions in which to order a list of items when provided an `orderBy` argument.
278const (
279	OrderDirectionAsc  OrderDirection = "ASC"  // Specifies an ascending order for a given `orderBy` argument.
280	OrderDirectionDesc OrderDirection = "DESC" // Specifies a descending order for a given `orderBy` argument.
281)
282
283// OrganizationInvitationRole represents the possible organization invitation roles.
284type OrganizationInvitationRole string
285
286// The possible organization invitation roles.
287const (
288	OrganizationInvitationRoleDirectMember   OrganizationInvitationRole = "DIRECT_MEMBER"   // The user is invited to be a direct member of the organization.
289	OrganizationInvitationRoleAdmin          OrganizationInvitationRole = "ADMIN"           // The user is invited to be an admin of the organization.
290	OrganizationInvitationRoleBillingManager OrganizationInvitationRole = "BILLING_MANAGER" // The user is invited to be a billing manager of the organization.
291	OrganizationInvitationRoleReinstate      OrganizationInvitationRole = "REINSTATE"       // The user's previous role will be reinstated.
292)
293
294// OrganizationInvitationType represents the possible organization invitation types.
295type OrganizationInvitationType string
296
297// The possible organization invitation types.
298const (
299	OrganizationInvitationTypeUser  OrganizationInvitationType = "USER"  // The invitation was to an existing user.
300	OrganizationInvitationTypeEmail OrganizationInvitationType = "EMAIL" // The invitation was to an email address.
301)
302
303// OrganizationMemberRole represents the possible roles within an organization for its members.
304type OrganizationMemberRole string
305
306// The possible roles within an organization for its members.
307const (
308	OrganizationMemberRoleMember OrganizationMemberRole = "MEMBER" // The user is a member of the organization.
309	OrganizationMemberRoleAdmin  OrganizationMemberRole = "ADMIN"  // The user is an administrator of the organization.
310)
311
312// PinnableItemType represents represents items that can be pinned to a profile page or dashboard.
313type PinnableItemType string
314
315// Represents items that can be pinned to a profile page or dashboard.
316const (
317	PinnableItemTypeRepository PinnableItemType = "REPOSITORY" // A repository.
318	PinnableItemTypeGist       PinnableItemType = "GIST"       // A gist.
319	PinnableItemTypeIssue      PinnableItemType = "ISSUE"      // An issue.
320)
321
322// ProjectCardArchivedState represents the possible archived states of a project card.
323type ProjectCardArchivedState string
324
325// The possible archived states of a project card.
326const (
327	ProjectCardArchivedStateArchived    ProjectCardArchivedState = "ARCHIVED"     // A project card that is archived.
328	ProjectCardArchivedStateNotArchived ProjectCardArchivedState = "NOT_ARCHIVED" // A project card that is not archived.
329)
330
331// ProjectCardState represents various content states of a ProjectCard.
332type ProjectCardState string
333
334// Various content states of a ProjectCard.
335const (
336	ProjectCardStateContentOnly ProjectCardState = "CONTENT_ONLY" // The card has content only.
337	ProjectCardStateNoteOnly    ProjectCardState = "NOTE_ONLY"    // The card has a note only.
338	ProjectCardStateRedacted    ProjectCardState = "REDACTED"     // The card is redacted.
339)
340
341// ProjectColumnPurpose represents the semantic purpose of the column - todo, in progress, or done.
342type ProjectColumnPurpose string
343
344// The semantic purpose of the column - todo, in progress, or done.
345const (
346	ProjectColumnPurposeTodo       ProjectColumnPurpose = "TODO"        // The column contains cards still to be worked on.
347	ProjectColumnPurposeInProgress ProjectColumnPurpose = "IN_PROGRESS" // The column contains cards which are currently being worked on.
348	ProjectColumnPurposeDone       ProjectColumnPurpose = "DONE"        // The column contains cards which are complete.
349)
350
351// ProjectOrderField represents properties by which project connections can be ordered.
352type ProjectOrderField string
353
354// Properties by which project connections can be ordered.
355const (
356	ProjectOrderFieldCreatedAt ProjectOrderField = "CREATED_AT" // Order projects by creation time.
357	ProjectOrderFieldUpdatedAt ProjectOrderField = "UPDATED_AT" // Order projects by update time.
358	ProjectOrderFieldName      ProjectOrderField = "NAME"       // Order projects by name.
359)
360
361// ProjectState represents state of the project; either 'open' or 'closed'.
362type ProjectState string
363
364// State of the project; either 'open' or 'closed'.
365const (
366	ProjectStateOpen   ProjectState = "OPEN"   // The project is open.
367	ProjectStateClosed ProjectState = "CLOSED" // The project is closed.
368)
369
370// PullRequestOrderField represents properties by which pull_requests connections can be ordered.
371type PullRequestOrderField string
372
373// Properties by which pull_requests connections can be ordered.
374const (
375	PullRequestOrderFieldCreatedAt PullRequestOrderField = "CREATED_AT" // Order pull_requests by creation time.
376	PullRequestOrderFieldUpdatedAt PullRequestOrderField = "UPDATED_AT" // Order pull_requests by update time.
377)
378
379// PullRequestPubSubTopic represents the possible PubSub channels for a pull request.
380type PullRequestPubSubTopic string
381
382// The possible PubSub channels for a pull request.
383const (
384	PullRequestPubSubTopicUpdated    PullRequestPubSubTopic = "UPDATED"    // The channel ID for observing pull request updates.
385	PullRequestPubSubTopicMarkasread PullRequestPubSubTopic = "MARKASREAD" // The channel ID for marking an pull request as read.
386	PullRequestPubSubTopicHeadRef    PullRequestPubSubTopic = "HEAD_REF"   // The channel ID for observing head ref updates.
387	PullRequestPubSubTopicTimeline   PullRequestPubSubTopic = "TIMELINE"   // The channel ID for updating items on the pull request timeline.
388	PullRequestPubSubTopicState      PullRequestPubSubTopic = "STATE"      // The channel ID for observing pull request state updates.
389)
390
391// PullRequestReviewCommentState represents the possible states of a pull request review comment.
392type PullRequestReviewCommentState string
393
394// The possible states of a pull request review comment.
395const (
396	PullRequestReviewCommentStatePending   PullRequestReviewCommentState = "PENDING"   // A comment that is part of a pending review.
397	PullRequestReviewCommentStateSubmitted PullRequestReviewCommentState = "SUBMITTED" // A comment that is part of a submitted review.
398)
399
400// PullRequestReviewEvent represents the possible events to perform on a pull request review.
401type PullRequestReviewEvent string
402
403// The possible events to perform on a pull request review.
404const (
405	PullRequestReviewEventComment        PullRequestReviewEvent = "COMMENT"         // Submit general feedback without explicit approval.
406	PullRequestReviewEventApprove        PullRequestReviewEvent = "APPROVE"         // Submit feedback and approve merging these changes.
407	PullRequestReviewEventRequestChanges PullRequestReviewEvent = "REQUEST_CHANGES" // Submit feedback that must be addressed before merging.
408	PullRequestReviewEventDismiss        PullRequestReviewEvent = "DISMISS"         // Dismiss review so it now longer effects merging.
409)
410
411// PullRequestReviewState represents the possible states of a pull request review.
412type PullRequestReviewState string
413
414// The possible states of a pull request review.
415const (
416	PullRequestReviewStatePending          PullRequestReviewState = "PENDING"           // A review that has not yet been submitted.
417	PullRequestReviewStateCommented        PullRequestReviewState = "COMMENTED"         // An informational review.
418	PullRequestReviewStateApproved         PullRequestReviewState = "APPROVED"          // A review allowing the pull request to merge.
419	PullRequestReviewStateChangesRequested PullRequestReviewState = "CHANGES_REQUESTED" // A review blocking the pull request from merging.
420	PullRequestReviewStateDismissed        PullRequestReviewState = "DISMISSED"         // A review that has been dismissed.
421)
422
423// PullRequestState represents the possible states of a pull request.
424type PullRequestState string
425
426// The possible states of a pull request.
427const (
428	PullRequestStateOpen   PullRequestState = "OPEN"   // A pull request that is still open.
429	PullRequestStateClosed PullRequestState = "CLOSED" // A pull request that has been closed without being merged.
430	PullRequestStateMerged PullRequestState = "MERGED" // A pull request that has been closed by being merged.
431)
432
433// PullRequestTimelineItemsItemType represents the possible item types found in a timeline.
434type PullRequestTimelineItemsItemType string
435
436// The possible item types found in a timeline.
437const (
438	PullRequestTimelineItemsItemTypePullRequestCommit                 PullRequestTimelineItemsItemType = "PULL_REQUEST_COMMIT"                  // Represents a Git commit part of a pull request.
439	PullRequestTimelineItemsItemTypePullRequestCommitCommentThread    PullRequestTimelineItemsItemType = "PULL_REQUEST_COMMIT_COMMENT_THREAD"   // Represents a commit comment thread part of a pull request.
440	PullRequestTimelineItemsItemTypePullRequestReview                 PullRequestTimelineItemsItemType = "PULL_REQUEST_REVIEW"                  // A review object for a given pull request.
441	PullRequestTimelineItemsItemTypePullRequestReviewThread           PullRequestTimelineItemsItemType = "PULL_REQUEST_REVIEW_THREAD"           // A threaded list of comments for a given pull request.
442	PullRequestTimelineItemsItemTypePullRequestRevisionMarker         PullRequestTimelineItemsItemType = "PULL_REQUEST_REVISION_MARKER"         // Represents the latest point in the pull request timeline for which the viewer has seen the pull request's commits.
443	PullRequestTimelineItemsItemTypeBaseRefChangedEvent               PullRequestTimelineItemsItemType = "BASE_REF_CHANGED_EVENT"               // Represents a 'base_ref_changed' event on a given issue or pull request.
444	PullRequestTimelineItemsItemTypeBaseRefForcePushedEvent           PullRequestTimelineItemsItemType = "BASE_REF_FORCE_PUSHED_EVENT"          // Represents a 'base_ref_force_pushed' event on a given pull request.
445	PullRequestTimelineItemsItemTypeDeployedEvent                     PullRequestTimelineItemsItemType = "DEPLOYED_EVENT"                       // Represents a 'deployed' event on a given pull request.
446	PullRequestTimelineItemsItemTypeDeploymentEnvironmentChangedEvent PullRequestTimelineItemsItemType = "DEPLOYMENT_ENVIRONMENT_CHANGED_EVENT" // Represents a 'deployment_environment_changed' event on a given pull request.
447	PullRequestTimelineItemsItemTypeHeadRefDeletedEvent               PullRequestTimelineItemsItemType = "HEAD_REF_DELETED_EVENT"               // Represents a 'head_ref_deleted' event on a given pull request.
448	PullRequestTimelineItemsItemTypeHeadRefForcePushedEvent           PullRequestTimelineItemsItemType = "HEAD_REF_FORCE_PUSHED_EVENT"          // Represents a 'head_ref_force_pushed' event on a given pull request.
449	PullRequestTimelineItemsItemTypeHeadRefRestoredEvent              PullRequestTimelineItemsItemType = "HEAD_REF_RESTORED_EVENT"              // Represents a 'head_ref_restored' event on a given pull request.
450	PullRequestTimelineItemsItemTypeMergedEvent                       PullRequestTimelineItemsItemType = "MERGED_EVENT"                         // Represents a 'merged' event on a given pull request.
451	PullRequestTimelineItemsItemTypeReviewDismissedEvent              PullRequestTimelineItemsItemType = "REVIEW_DISMISSED_EVENT"               // Represents a 'review_dismissed' event on a given issue or pull request.
452	PullRequestTimelineItemsItemTypeReviewRequestedEvent              PullRequestTimelineItemsItemType = "REVIEW_REQUESTED_EVENT"               // Represents an 'review_requested' event on a given pull request.
453	PullRequestTimelineItemsItemTypeReviewRequestRemovedEvent         PullRequestTimelineItemsItemType = "REVIEW_REQUEST_REMOVED_EVENT"         // Represents an 'review_request_removed' event on a given pull request.
454	PullRequestTimelineItemsItemTypeIssueComment                      PullRequestTimelineItemsItemType = "ISSUE_COMMENT"                        // Represents a comment on an Issue.
455	PullRequestTimelineItemsItemTypeCrossReferencedEvent              PullRequestTimelineItemsItemType = "CROSS_REFERENCED_EVENT"               // Represents a mention made by one issue or pull request to another.
456	PullRequestTimelineItemsItemTypeAddedToProjectEvent               PullRequestTimelineItemsItemType = "ADDED_TO_PROJECT_EVENT"               // Represents a 'added_to_project' event on a given issue or pull request.
457	PullRequestTimelineItemsItemTypeAssignedEvent                     PullRequestTimelineItemsItemType = "ASSIGNED_EVENT"                       // Represents an 'assigned' event on any assignable object.
458	PullRequestTimelineItemsItemTypeClosedEvent                       PullRequestTimelineItemsItemType = "CLOSED_EVENT"                         // Represents a 'closed' event on any `Closable`.
459	PullRequestTimelineItemsItemTypeCommentDeletedEvent               PullRequestTimelineItemsItemType = "COMMENT_DELETED_EVENT"                // Represents a 'comment_deleted' event on a given issue or pull request.
460	PullRequestTimelineItemsItemTypeConvertedNoteToIssueEvent         PullRequestTimelineItemsItemType = "CONVERTED_NOTE_TO_ISSUE_EVENT"        // Represents a 'converted_note_to_issue' event on a given issue or pull request.
461	PullRequestTimelineItemsItemTypeDemilestonedEvent                 PullRequestTimelineItemsItemType = "DEMILESTONED_EVENT"                   // Represents a 'demilestoned' event on a given issue or pull request.
462	PullRequestTimelineItemsItemTypeLabeledEvent                      PullRequestTimelineItemsItemType = "LABELED_EVENT"                        // Represents a 'labeled' event on a given issue or pull request.
463	PullRequestTimelineItemsItemTypeLockedEvent                       PullRequestTimelineItemsItemType = "LOCKED_EVENT"                         // Represents a 'locked' event on a given issue or pull request.
464	PullRequestTimelineItemsItemTypeMentionedEvent                    PullRequestTimelineItemsItemType = "MENTIONED_EVENT"                      // Represents a 'mentioned' event on a given issue or pull request.
465	PullRequestTimelineItemsItemTypeMilestonedEvent                   PullRequestTimelineItemsItemType = "MILESTONED_EVENT"                     // Represents a 'milestoned' event on a given issue or pull request.
466	PullRequestTimelineItemsItemTypeMovedColumnsInProjectEvent        PullRequestTimelineItemsItemType = "MOVED_COLUMNS_IN_PROJECT_EVENT"       // Represents a 'moved_columns_in_project' event on a given issue or pull request.
467	PullRequestTimelineItemsItemTypePinnedEvent                       PullRequestTimelineItemsItemType = "PINNED_EVENT"                         // Represents a 'pinned' event on a given issue or pull request.
468	PullRequestTimelineItemsItemTypeReferencedEvent                   PullRequestTimelineItemsItemType = "REFERENCED_EVENT"                     // Represents a 'referenced' event on a given `ReferencedSubject`.
469	PullRequestTimelineItemsItemTypeRemovedFromProjectEvent           PullRequestTimelineItemsItemType = "REMOVED_FROM_PROJECT_EVENT"           // Represents a 'removed_from_project' event on a given issue or pull request.
470	PullRequestTimelineItemsItemTypeRenamedTitleEvent                 PullRequestTimelineItemsItemType = "RENAMED_TITLE_EVENT"                  // Represents a 'renamed' event on a given issue or pull request.
471	PullRequestTimelineItemsItemTypeReopenedEvent                     PullRequestTimelineItemsItemType = "REOPENED_EVENT"                       // Represents a 'reopened' event on any `Closable`.
472	PullRequestTimelineItemsItemTypeSubscribedEvent                   PullRequestTimelineItemsItemType = "SUBSCRIBED_EVENT"                     // Represents a 'subscribed' event on a given `Subscribable`.
473	PullRequestTimelineItemsItemTypeTransferredEvent                  PullRequestTimelineItemsItemType = "TRANSFERRED_EVENT"                    // Represents a 'transferred' event on a given issue or pull request.
474	PullRequestTimelineItemsItemTypeUnassignedEvent                   PullRequestTimelineItemsItemType = "UNASSIGNED_EVENT"                     // Represents an 'unassigned' event on any assignable object.
475	PullRequestTimelineItemsItemTypeUnlabeledEvent                    PullRequestTimelineItemsItemType = "UNLABELED_EVENT"                      // Represents an 'unlabeled' event on a given issue or pull request.
476	PullRequestTimelineItemsItemTypeUnlockedEvent                     PullRequestTimelineItemsItemType = "UNLOCKED_EVENT"                       // Represents an 'unlocked' event on a given issue or pull request.
477	PullRequestTimelineItemsItemTypeUserBlockedEvent                  PullRequestTimelineItemsItemType = "USER_BLOCKED_EVENT"                   // Represents a 'user_blocked' event on a given user.
478	PullRequestTimelineItemsItemTypeUnpinnedEvent                     PullRequestTimelineItemsItemType = "UNPINNED_EVENT"                       // Represents an 'unpinned' event on a given issue or pull request.
479	PullRequestTimelineItemsItemTypeUnsubscribedEvent                 PullRequestTimelineItemsItemType = "UNSUBSCRIBED_EVENT"                   // Represents an 'unsubscribed' event on a given `Subscribable`.
480)
481
482// ReactionContent represents emojis that can be attached to Issues, Pull Requests and Comments.
483type ReactionContent string
484
485// Emojis that can be attached to Issues, Pull Requests and Comments.
486const (
487	ReactionContentThumbsUp   ReactionContent = "THUMBS_UP"   // Represents the 👍 emoji.
488	ReactionContentThumbsDown ReactionContent = "THUMBS_DOWN" // Represents the 👎 emoji.
489	ReactionContentLaugh      ReactionContent = "LAUGH"       // Represents the 😄 emoji.
490	ReactionContentHooray     ReactionContent = "HOORAY"      // Represents the 🎉 emoji.
491	ReactionContentConfused   ReactionContent = "CONFUSED"    // Represents the 😕 emoji.
492	ReactionContentHeart      ReactionContent = "HEART"       // Represents the ❤️ emoji.
493	ReactionContentRocket     ReactionContent = "ROCKET"      // Represents the 🚀 emoji.
494	ReactionContentEyes       ReactionContent = "EYES"        // Represents the 👀 emoji.
495)
496
497// ReactionOrderField represents a list of fields that reactions can be ordered by.
498type ReactionOrderField string
499
500// A list of fields that reactions can be ordered by.
501const (
502	ReactionOrderFieldCreatedAt ReactionOrderField = "CREATED_AT" // Allows ordering a list of reactions by when they were created.
503)
504
505// RefOrderField represents properties by which ref connections can be ordered.
506type RefOrderField string
507
508// Properties by which ref connections can be ordered.
509const (
510	RefOrderFieldTagCommitDate RefOrderField = "TAG_COMMIT_DATE" // Order refs by underlying commit date if the ref prefix is refs/tags/.
511	RefOrderFieldAlphabetical  RefOrderField = "ALPHABETICAL"    // Order refs by their alphanumeric name.
512)
513
514// ReleaseOrderField represents properties by which release connections can be ordered.
515type ReleaseOrderField string
516
517// Properties by which release connections can be ordered.
518const (
519	ReleaseOrderFieldCreatedAt ReleaseOrderField = "CREATED_AT" // Order releases by creation time.
520	ReleaseOrderFieldName      ReleaseOrderField = "NAME"       // Order releases alphabetically by name.
521)
522
523// ReportedContentClassifiers represents the reasons a piece of content can be reported or minimized.
524type ReportedContentClassifiers string
525
526// The reasons a piece of content can be reported or minimized.
527const (
528	ReportedContentClassifiersSpam     ReportedContentClassifiers = "SPAM"      // A spammy piece of content.
529	ReportedContentClassifiersAbuse    ReportedContentClassifiers = "ABUSE"     // An abusive or harassing piece of content.
530	ReportedContentClassifiersOffTopic ReportedContentClassifiers = "OFF_TOPIC" // An irrelevant piece of content.
531	ReportedContentClassifiersOutdated ReportedContentClassifiers = "OUTDATED"  // An outdated piece of content.
532	ReportedContentClassifiersResolved ReportedContentClassifiers = "RESOLVED"  // The content has been resolved.
533)
534
535// RepositoryAffiliation represents the affiliation of a user to a repository.
536type RepositoryAffiliation string
537
538// The affiliation of a user to a repository.
539const (
540	RepositoryAffiliationOwner              RepositoryAffiliation = "OWNER"               // Repositories that are owned by the authenticated user.
541	RepositoryAffiliationCollaborator       RepositoryAffiliation = "COLLABORATOR"        // Repositories that the user has been added to as a collaborator.
542	RepositoryAffiliationOrganizationMember RepositoryAffiliation = "ORGANIZATION_MEMBER" // Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on.
543)
544
545// RepositoryCollaboratorAffiliation represents the affiliation type between collaborator and repository.
546type RepositoryCollaboratorAffiliation string
547
548// The affiliation type between collaborator and repository.
549const (
550	RepositoryCollaboratorAffiliationAll     RepositoryCollaboratorAffiliation = "ALL"     // All collaborators of the repository.
551	RepositoryCollaboratorAffiliationOutside RepositoryCollaboratorAffiliation = "OUTSIDE" // All outside collaborators of an organization-owned repository.
552)
553
554// RepositoryContributionType represents the reason a repository is listed as 'contributed'.
555type RepositoryContributionType string
556
557// The reason a repository is listed as 'contributed'.
558const (
559	RepositoryContributionTypeCommit            RepositoryContributionType = "COMMIT"              // Created a commit.
560	RepositoryContributionTypeIssue             RepositoryContributionType = "ISSUE"               // Created an issue.
561	RepositoryContributionTypePullRequest       RepositoryContributionType = "PULL_REQUEST"        // Created a pull request.
562	RepositoryContributionTypeRepository        RepositoryContributionType = "REPOSITORY"          // Created the repository.
563	RepositoryContributionTypePullRequestReview RepositoryContributionType = "PULL_REQUEST_REVIEW" // Reviewed a pull request.
564)
565
566// RepositoryLockReason represents the possible reasons a given repository could be in a locked state.
567type RepositoryLockReason string
568
569// The possible reasons a given repository could be in a locked state.
570const (
571	RepositoryLockReasonMoving    RepositoryLockReason = "MOVING"    // The repository is locked due to a move.
572	RepositoryLockReasonBilling   RepositoryLockReason = "BILLING"   // The repository is locked due to a billing related reason.
573	RepositoryLockReasonRename    RepositoryLockReason = "RENAME"    // The repository is locked due to a rename.
574	RepositoryLockReasonMigrating RepositoryLockReason = "MIGRATING" // The repository is locked due to a migration.
575)
576
577// RepositoryOrderField represents properties by which repository connections can be ordered.
578type RepositoryOrderField string
579
580// Properties by which repository connections can be ordered.
581const (
582	RepositoryOrderFieldCreatedAt  RepositoryOrderField = "CREATED_AT" // Order repositories by creation time.
583	RepositoryOrderFieldUpdatedAt  RepositoryOrderField = "UPDATED_AT" // Order repositories by update time.
584	RepositoryOrderFieldPushedAt   RepositoryOrderField = "PUSHED_AT"  // Order repositories by push time.
585	RepositoryOrderFieldName       RepositoryOrderField = "NAME"       // Order repositories by name.
586	RepositoryOrderFieldStargazers RepositoryOrderField = "STARGAZERS" // Order repositories by number of stargazers.
587)
588
589// RepositoryPermission represents the access level to a repository.
590type RepositoryPermission string
591
592// The access level to a repository.
593const (
594	RepositoryPermissionAdmin    RepositoryPermission = "ADMIN"    // Can read, clone, and push to this repository. Can also manage issues, pull requests, and repository settings, including adding collaborators.
595	RepositoryPermissionMaintain RepositoryPermission = "MAINTAIN" // Can read, clone, and push to this repository. They can also manage issues, pull requests, and some repository settings.
596	RepositoryPermissionWrite    RepositoryPermission = "WRITE"    // Can read, clone, and push to this repository. Can also manage issues and pull requests.
597	RepositoryPermissionTriage   RepositoryPermission = "TRIAGE"   // Can read and clone this repository. Can also manage issues and pull requests.
598	RepositoryPermissionRead     RepositoryPermission = "READ"     // Can read and clone this repository. Can also open and comment on issues and pull requests.
599)
600
601// RepositoryPrivacy represents the privacy of a repository.
602type RepositoryPrivacy string
603
604// The privacy of a repository.
605const (
606	RepositoryPrivacyPublic  RepositoryPrivacy = "PUBLIC"  // Public.
607	RepositoryPrivacyPrivate RepositoryPrivacy = "PRIVATE" // Private.
608)
609
610// SearchType represents represents the individual results of a search.
611type SearchType string
612
613// Represents the individual results of a search.
614const (
615	SearchTypeIssue      SearchType = "ISSUE"      // Returns results matching issues in repositories.
616	SearchTypeRepository SearchType = "REPOSITORY" // Returns results matching repositories.
617	SearchTypeUser       SearchType = "USER"       // Returns results matching users and organizations on GitHub.
618)
619
620// SecurityAdvisoryEcosystem represents the possible ecosystems of a security vulnerability's package.
621type SecurityAdvisoryEcosystem string
622
623// The possible ecosystems of a security vulnerability's package.
624const (
625	SecurityAdvisoryEcosystemRubygems SecurityAdvisoryEcosystem = "RUBYGEMS" // Ruby gems hosted at RubyGems.org.
626	SecurityAdvisoryEcosystemNpm      SecurityAdvisoryEcosystem = "NPM"      // JavaScript packages hosted at npmjs.com.
627	SecurityAdvisoryEcosystemPip      SecurityAdvisoryEcosystem = "PIP"      // Python packages hosted at PyPI.org.
628	SecurityAdvisoryEcosystemMaven    SecurityAdvisoryEcosystem = "MAVEN"    // Java artifacts hosted at the Maven central repository.
629	SecurityAdvisoryEcosystemNuget    SecurityAdvisoryEcosystem = "NUGET"    // .NET packages hosted at the NuGet Gallery.
630)
631
632// SecurityAdvisoryIdentifierType represents identifier formats available for advisories.
633type SecurityAdvisoryIdentifierType string
634
635// Identifier formats available for advisories.
636const (
637	SecurityAdvisoryIdentifierTypeCve  SecurityAdvisoryIdentifierType = "CVE"  // Common Vulnerabilities and Exposures Identifier.
638	SecurityAdvisoryIdentifierTypeGhsa SecurityAdvisoryIdentifierType = "GHSA" // GitHub Security Advisory ID.
639)
640
641// SecurityAdvisoryOrderField represents properties by which security advisory connections can be ordered.
642type SecurityAdvisoryOrderField string
643
644// Properties by which security advisory connections can be ordered.
645const (
646	SecurityAdvisoryOrderFieldPublishedAt SecurityAdvisoryOrderField = "PUBLISHED_AT" // Order advisories by publication time.
647	SecurityAdvisoryOrderFieldUpdatedAt   SecurityAdvisoryOrderField = "UPDATED_AT"   // Order advisories by update time.
648)
649
650// SecurityAdvisorySeverity represents severity of the vulnerability.
651type SecurityAdvisorySeverity string
652
653// Severity of the vulnerability.
654const (
655	SecurityAdvisorySeverityLow      SecurityAdvisorySeverity = "LOW"      // Low.
656	SecurityAdvisorySeverityModerate SecurityAdvisorySeverity = "MODERATE" // Moderate.
657	SecurityAdvisorySeverityHigh     SecurityAdvisorySeverity = "HIGH"     // High.
658	SecurityAdvisorySeverityCritical SecurityAdvisorySeverity = "CRITICAL" // Critical.
659)
660
661// SecurityVulnerabilityOrderField represents properties by which security vulnerability connections can be ordered.
662type SecurityVulnerabilityOrderField string
663
664// Properties by which security vulnerability connections can be ordered.
665const (
666	SecurityVulnerabilityOrderFieldUpdatedAt SecurityVulnerabilityOrderField = "UPDATED_AT" // Order vulnerability by update time.
667)
668
669// StarOrderField represents properties by which star connections can be ordered.
670type StarOrderField string
671
672// Properties by which star connections can be ordered.
673const (
674	StarOrderFieldStarredAt StarOrderField = "STARRED_AT" // Allows ordering a list of stars by when they were created.
675)
676
677// StatusState represents the possible commit status states.
678type StatusState string
679
680// The possible commit status states.
681const (
682	StatusStateExpected StatusState = "EXPECTED" // Status is expected.
683	StatusStateError    StatusState = "ERROR"    // Status is errored.
684	StatusStateFailure  StatusState = "FAILURE"  // Status is failing.
685	StatusStatePending  StatusState = "PENDING"  // Status is pending.
686	StatusStateSuccess  StatusState = "SUCCESS"  // Status is successful.
687)
688
689// SubscriptionState represents the possible states of a subscription.
690type SubscriptionState string
691
692// The possible states of a subscription.
693const (
694	SubscriptionStateUnsubscribed SubscriptionState = "UNSUBSCRIBED" // The User is only notified when participating or @mentioned.
695	SubscriptionStateSubscribed   SubscriptionState = "SUBSCRIBED"   // The User is notified of all conversations.
696	SubscriptionStateIgnored      SubscriptionState = "IGNORED"      // The User is never notified.
697)
698
699// TeamMemberOrderField represents properties by which team member connections can be ordered.
700type TeamMemberOrderField string
701
702// Properties by which team member connections can be ordered.
703const (
704	TeamMemberOrderFieldLogin     TeamMemberOrderField = "LOGIN"      // Order team members by login.
705	TeamMemberOrderFieldCreatedAt TeamMemberOrderField = "CREATED_AT" // Order team members by creation time.
706)
707
708// TeamMemberRole represents the possible team member roles; either 'maintainer' or 'member'.
709type TeamMemberRole string
710
711// The possible team member roles; either 'maintainer' or 'member'.
712const (
713	TeamMemberRoleMaintainer TeamMemberRole = "MAINTAINER" // A team maintainer has permission to add and remove team members.
714	TeamMemberRoleMember     TeamMemberRole = "MEMBER"     // A team member has no administrative permissions on the team.
715)
716
717// TeamMembershipType represents defines which types of team members are included in the returned list. Can be one of IMMEDIATE, CHILD_TEAM or ALL.
718type TeamMembershipType string
719
720// Defines which types of team members are included in the returned list. Can be one of IMMEDIATE, CHILD_TEAM or ALL.
721const (
722	TeamMembershipTypeImmediate TeamMembershipType = "IMMEDIATE"  // Includes only immediate members of the team.
723	TeamMembershipTypeChildTeam TeamMembershipType = "CHILD_TEAM" // Includes only child team members for the team.
724	TeamMembershipTypeAll       TeamMembershipType = "ALL"        // Includes immediate and child team members for the team.
725)
726
727// TeamOrderField represents properties by which team connections can be ordered.
728type TeamOrderField string
729
730// Properties by which team connections can be ordered.
731const (
732	TeamOrderFieldName TeamOrderField = "NAME" // Allows ordering a list of teams by name.
733)
734
735// TeamPrivacy represents the possible team privacy values.
736type TeamPrivacy string
737
738// The possible team privacy values.
739const (
740	TeamPrivacySecret  TeamPrivacy = "SECRET"  // A secret team can only be seen by its members.
741	TeamPrivacyVisible TeamPrivacy = "VISIBLE" // A visible team can be seen and @mentioned by every member of the organization.
742)
743
744// TeamRepositoryOrderField represents properties by which team repository connections can be ordered.
745type TeamRepositoryOrderField string
746
747// Properties by which team repository connections can be ordered.
748const (
749	TeamRepositoryOrderFieldCreatedAt  TeamRepositoryOrderField = "CREATED_AT" // Order repositories by creation time.
750	TeamRepositoryOrderFieldUpdatedAt  TeamRepositoryOrderField = "UPDATED_AT" // Order repositories by update time.
751	TeamRepositoryOrderFieldPushedAt   TeamRepositoryOrderField = "PUSHED_AT"  // Order repositories by push time.
752	TeamRepositoryOrderFieldName       TeamRepositoryOrderField = "NAME"       // Order repositories by name.
753	TeamRepositoryOrderFieldPermission TeamRepositoryOrderField = "PERMISSION" // Order repositories by permission.
754	TeamRepositoryOrderFieldStargazers TeamRepositoryOrderField = "STARGAZERS" // Order repositories by number of stargazers.
755)
756
757// TeamRole represents the role of a user on a team.
758type TeamRole string
759
760// The role of a user on a team.
761const (
762	TeamRoleAdmin  TeamRole = "ADMIN"  // User has admin rights on the team.
763	TeamRoleMember TeamRole = "MEMBER" // User is a member of the team.
764)
765
766// TopicSuggestionDeclineReason represents reason that the suggested topic is declined.
767type TopicSuggestionDeclineReason string
768
769// Reason that the suggested topic is declined.
770const (
771	TopicSuggestionDeclineReasonNotRelevant        TopicSuggestionDeclineReason = "NOT_RELEVANT"        // The suggested topic is not relevant to the repository.
772	TopicSuggestionDeclineReasonTooSpecific        TopicSuggestionDeclineReason = "TOO_SPECIFIC"        // The suggested topic is too specific for the repository (e.g. #ruby-on-rails-version-4-2-1).
773	TopicSuggestionDeclineReasonPersonalPreference TopicSuggestionDeclineReason = "PERSONAL_PREFERENCE" // The viewer does not like the suggested topic.
774	TopicSuggestionDeclineReasonTooGeneral         TopicSuggestionDeclineReason = "TOO_GENERAL"         // The suggested topic is too general for the repository.
775)
776
777// UserBlockDuration represents the possible durations that a user can be blocked for.
778type UserBlockDuration string
779
780// The possible durations that a user can be blocked for.
781const (
782	UserBlockDurationOneDay    UserBlockDuration = "ONE_DAY"    // The user was blocked for 1 day.
783	UserBlockDurationThreeDays UserBlockDuration = "THREE_DAYS" // The user was blocked for 3 days.
784	UserBlockDurationOneWeek   UserBlockDuration = "ONE_WEEK"   // The user was blocked for 7 days.
785	UserBlockDurationOneMonth  UserBlockDuration = "ONE_MONTH"  // The user was blocked for 30 days.
786	UserBlockDurationPermanent UserBlockDuration = "PERMANENT"  // The user was blocked permanently.
787)
788
789// UserStatusOrderField represents properties by which user status connections can be ordered.
790type UserStatusOrderField string
791
792// Properties by which user status connections can be ordered.
793const (
794	UserStatusOrderFieldUpdatedAt UserStatusOrderField = "UPDATED_AT" // Order user statuses by when they were updated.
795)