@tomsd/github-repo-js 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1790,6 +1790,22 @@ export interface ConnectedEvent {
1790
1790
  subject: ReferencedSubject;
1791
1791
  __typename: 'ConnectedEvent';
1792
1792
  }
1793
+ /** The content warning for a repository */
1794
+ export interface ContentWarning {
1795
+ /** The content warning' category. E.g. 'mis_dis_information' */
1796
+ category: Scalars['String'];
1797
+ /** The content warning's custom sub category text. E.g. 'dangerous stuff.' */
1798
+ customSubCategory: (Scalars['String'] | null);
1799
+ /** The content warning's sub category. E.g. 'medical_scientific' */
1800
+ subCategory: (Scalars['String'] | null);
1801
+ /** The content warning's sub title. E.g. 'The information contained in this page has not been verified.' */
1802
+ subTitle: (Scalars['String'] | null);
1803
+ /** The content warning's title. E.g. 'This page may contain false or misleading information.' */
1804
+ title: Scalars['String'];
1805
+ /** The type of content warning. E.g. 'interstitial' */
1806
+ type: Scalars['String'];
1807
+ __typename: 'ContentWarning';
1808
+ }
1793
1809
  /** The Contributing Guidelines for a repository. */
1794
1810
  export interface ContributingGuidelines {
1795
1811
  /** The body of the Contributing Guidelines. */
@@ -12275,7 +12291,7 @@ export interface ProjectV2FieldEdge {
12275
12291
  /** Properties by which project v2 field connections can be ordered. */
12276
12292
  export type ProjectV2FieldOrderField = 'POSITION' | 'CREATED_AT' | 'NAME';
12277
12293
  /** The type of a project field. */
12278
- export type ProjectV2FieldType = 'ASSIGNEES' | 'LINKED_PULL_REQUESTS' | 'REVIEWERS' | 'LABELS' | 'MILESTONE' | 'REPOSITORY' | 'TITLE' | 'TEXT' | 'SINGLE_SELECT' | 'NUMBER' | 'DATE' | 'ITERATION' | 'TRACKS' | 'TRACKED_BY' | 'ISSUE_TYPE' | 'PARENT_ISSUE' | 'SUB_ISSUES_PROGRESS';
12294
+ export type ProjectV2FieldType = 'ASSIGNEES' | 'LINKED_PULL_REQUESTS' | 'REVIEWERS' | 'LABELS' | 'MILESTONE' | 'REPOSITORY' | 'TITLE' | 'TEXT' | 'SINGLE_SELECT' | 'NUMBER' | 'DATE' | 'ITERATION' | 'TRACKS' | 'TRACKED_BY' | 'ISSUE_TYPE' | 'PARENT_ISSUE' | 'SUB_ISSUES_PROGRESS' | 'CREATED' | 'UPDATED' | 'CLOSED';
12279
12295
  /** Possible issue field values for a Project item. */
12280
12296
  export type ProjectV2IssueFieldValues = (IssueFieldDateValue | IssueFieldNumberValue | IssueFieldSingleSelectValue | IssueFieldTextValue) & {
12281
12297
  __isUnion?: true;
@@ -16771,6 +16787,8 @@ export interface Repository {
16771
16787
  viewerCanSubscribe: Scalars['Boolean'];
16772
16788
  /** Indicates whether the viewer can update the topics of this repository. */
16773
16789
  viewerCanUpdateTopics: Scalars['Boolean'];
16790
+ /** The content warning for this repository for the viewer. */
16791
+ viewerContentWarning: (ContentWarning | null);
16774
16792
  /** The last commit email for the viewer. */
16775
16793
  viewerDefaultCommitEmail: (Scalars['String'] | null);
16776
16794
  /** The last used merge method by the viewer or the default for the repository. */
@@ -17179,7 +17197,7 @@ export interface RepositoryRuleEdge {
17179
17197
  /** Properties by which repository rule connections can be ordered. */
17180
17198
  export type RepositoryRuleOrderField = 'UPDATED_AT' | 'CREATED_AT' | 'TYPE';
17181
17199
  /** The rule types supported in rulesets */
17182
- export type RepositoryRuleType = 'CREATION' | 'UPDATE' | 'DELETION' | 'REQUIRED_LINEAR_HISTORY' | 'MERGE_QUEUE' | 'REQUIRED_REVIEW_THREAD_RESOLUTION' | 'REQUIRED_DEPLOYMENTS' | 'REQUIRED_SIGNATURES' | 'PULL_REQUEST' | 'REQUIRED_STATUS_CHECKS' | 'REQUIRED_WORKFLOW_STATUS_CHECKS' | 'NON_FAST_FORWARD' | 'AUTHORIZATION' | 'TAG' | 'MERGE_QUEUE_LOCKED_REF' | 'LOCK_BRANCH' | 'MAX_REF_UPDATES' | 'COMMIT_MESSAGE_PATTERN' | 'COMMIT_AUTHOR_EMAIL_PATTERN' | 'COMMITTER_EMAIL_PATTERN' | 'BRANCH_NAME_PATTERN' | 'TAG_NAME_PATTERN' | 'FILE_PATH_RESTRICTION' | 'MAX_FILE_PATH_LENGTH' | 'FILE_EXTENSION_RESTRICTION' | 'MAX_FILE_SIZE' | 'WORKFLOWS' | 'SECRET_SCANNING' | 'WORKFLOW_UPDATES' | 'CODE_SCANNING' | 'COPILOT_CODE_REVIEW';
17200
+ export type RepositoryRuleType = 'CREATION' | 'UPDATE' | 'DELETION' | 'REQUIRED_LINEAR_HISTORY' | 'MERGE_QUEUE' | 'REQUIRED_REVIEW_THREAD_RESOLUTION' | 'REQUIRED_DEPLOYMENTS' | 'REQUIRED_SIGNATURES' | 'PULL_REQUEST' | 'REQUIRED_STATUS_CHECKS' | 'REQUIRED_WORKFLOW_STATUS_CHECKS' | 'NON_FAST_FORWARD' | 'AUTHORIZATION' | 'TAG' | 'MERGE_QUEUE_LOCKED_REF' | 'LOCK_BRANCH' | 'MAX_REF_UPDATES' | 'COMMIT_MESSAGE_PATTERN' | 'COMMIT_AUTHOR_EMAIL_PATTERN' | 'COMMITTER_EMAIL_PATTERN' | 'BRANCH_NAME_PATTERN' | 'TAG_NAME_PATTERN' | 'WORKFLOWS' | 'WORKFLOW_UPDATES' | 'CODE_SCANNING' | 'COPILOT_CODE_REVIEW' | 'FILE_PATH_RESTRICTION' | 'MAX_FILE_PATH_LENGTH' | 'FILE_EXTENSION_RESTRICTION' | 'MAX_FILE_SIZE' | 'SECRET_SCANNING';
17183
17201
  /** A repository ruleset. */
17184
17202
  export interface RepositoryRuleset {
17185
17203
  /** The actors that can bypass this ruleset */
@@ -24727,6 +24745,23 @@ export interface ConnectedEventGenqlSelection {
24727
24745
  __typename?: boolean | number;
24728
24746
  __scalar?: boolean | number;
24729
24747
  }
24748
+ /** The content warning for a repository */
24749
+ export interface ContentWarningGenqlSelection {
24750
+ /** The content warning' category. E.g. 'mis_dis_information' */
24751
+ category?: boolean | number;
24752
+ /** The content warning's custom sub category text. E.g. 'dangerous stuff.' */
24753
+ customSubCategory?: boolean | number;
24754
+ /** The content warning's sub category. E.g. 'medical_scientific' */
24755
+ subCategory?: boolean | number;
24756
+ /** The content warning's sub title. E.g. 'The information contained in this page has not been verified.' */
24757
+ subTitle?: boolean | number;
24758
+ /** The content warning's title. E.g. 'This page may contain false or misleading information.' */
24759
+ title?: boolean | number;
24760
+ /** The type of content warning. E.g. 'interstitial' */
24761
+ type?: boolean | number;
24762
+ __typename?: boolean | number;
24763
+ __scalar?: boolean | number;
24764
+ }
24730
24765
  /** The Contributing Guidelines for a repository. */
24731
24766
  export interface ContributingGuidelinesGenqlSelection {
24732
24767
  /** The body of the Contributing Guidelines. */
@@ -48652,6 +48687,8 @@ export interface RepositoryGenqlSelection {
48652
48687
  viewerCanSubscribe?: boolean | number;
48653
48688
  /** Indicates whether the viewer can update the topics of this repository. */
48654
48689
  viewerCanUpdateTopics?: boolean | number;
48690
+ /** The content warning for this repository for the viewer. */
48691
+ viewerContentWarning?: ContentWarningGenqlSelection;
48655
48692
  /** The last commit email for the viewer. */
48656
48693
  viewerDefaultCommitEmail?: boolean | number;
48657
48694
  /** The last used merge method by the viewer or the default for the repository. */
@@ -49488,7 +49525,7 @@ export interface RepositoryRulesetBypassActorEdgeGenqlSelection {
49488
49525
  __typename?: boolean | number;
49489
49526
  __scalar?: boolean | number;
49490
49527
  }
49491
- /** Specifies the attributes for a new or updated ruleset bypass actor. Only one of `actor_id`, `repository_role_database_id`, `organization_admin`, or `deploy_key` should be specified. */
49528
+ /** Specifies the attributes for a new or updated ruleset bypass actor. Only one of `actor_id`, `repository_role_database_id`, `organization_admin`, `enterprise_owner`, or `deploy_key` should be specified. */
49492
49529
  export interface RepositoryRulesetBypassActorInput {
49493
49530
  /** For Team, Integration and User bypasses, the Team, Integration, or User ID */
49494
49531
  actorId?: (Scalars['ID'] | null);
@@ -50387,6 +50424,12 @@ export interface RuleParametersInput {
50387
50424
  branchNamePattern?: (BranchNamePatternParametersInput | null);
50388
50425
  /** Parameters used for the `tag_name_pattern` rule type */
50389
50426
  tagNamePattern?: (TagNamePatternParametersInput | null);
50427
+ /** Parameters used for the `workflows` rule type */
50428
+ workflows?: (WorkflowsParametersInput | null);
50429
+ /** Parameters used for the `code_scanning` rule type */
50430
+ codeScanning?: (CodeScanningParametersInput | null);
50431
+ /** Parameters used for the `copilot_code_review` rule type */
50432
+ copilotCodeReview?: (CopilotCodeReviewParametersInput | null);
50390
50433
  /** Parameters used for the `file_path_restriction` rule type */
50391
50434
  filePathRestriction?: (FilePathRestrictionParametersInput | null);
50392
50435
  /** Parameters used for the `max_file_path_length` rule type */
@@ -50395,12 +50438,6 @@ export interface RuleParametersInput {
50395
50438
  fileExtensionRestriction?: (FileExtensionRestrictionParametersInput | null);
50396
50439
  /** Parameters used for the `max_file_size` rule type */
50397
50440
  maxFileSize?: (MaxFileSizeParametersInput | null);
50398
- /** Parameters used for the `workflows` rule type */
50399
- workflows?: (WorkflowsParametersInput | null);
50400
- /** Parameters used for the `code_scanning` rule type */
50401
- codeScanning?: (CodeScanningParametersInput | null);
50402
- /** Parameters used for the `copilot_code_review` rule type */
50403
- copilotCodeReview?: (CopilotCodeReviewParametersInput | null);
50404
50441
  }
50405
50442
  /** Types which can have `RepositoryRule` objects. */
50406
50443
  export interface RuleSourceGenqlSelection {
@@ -57492,6 +57529,9 @@ export declare const isComparisonCommitConnection: (obj?: {
57492
57529
  export declare const isConnectedEvent: (obj?: {
57493
57530
  __typename?: any;
57494
57531
  } | null) => obj is ConnectedEvent;
57532
+ export declare const isContentWarning: (obj?: {
57533
+ __typename?: any;
57534
+ } | null) => obj is ContentWarning;
57495
57535
  export declare const isContributingGuidelines: (obj?: {
57496
57536
  __typename?: any;
57497
57537
  } | null) => obj is ContributingGuidelines;
@@ -61162,6 +61202,9 @@ export declare const enumProjectV2FieldType: {
61162
61202
  ISSUE_TYPE: "ISSUE_TYPE";
61163
61203
  PARENT_ISSUE: "PARENT_ISSUE";
61164
61204
  SUB_ISSUES_PROGRESS: "SUB_ISSUES_PROGRESS";
61205
+ CREATED: "CREATED";
61206
+ UPDATED: "UPDATED";
61207
+ CLOSED: "CLOSED";
61165
61208
  };
61166
61209
  export declare const enumProjectV2ItemFieldValueOrderField: {
61167
61210
  POSITION: "POSITION";
@@ -61531,15 +61574,15 @@ export declare const enumRepositoryRuleType: {
61531
61574
  COMMITTER_EMAIL_PATTERN: "COMMITTER_EMAIL_PATTERN";
61532
61575
  BRANCH_NAME_PATTERN: "BRANCH_NAME_PATTERN";
61533
61576
  TAG_NAME_PATTERN: "TAG_NAME_PATTERN";
61577
+ WORKFLOWS: "WORKFLOWS";
61578
+ WORKFLOW_UPDATES: "WORKFLOW_UPDATES";
61579
+ CODE_SCANNING: "CODE_SCANNING";
61580
+ COPILOT_CODE_REVIEW: "COPILOT_CODE_REVIEW";
61534
61581
  FILE_PATH_RESTRICTION: "FILE_PATH_RESTRICTION";
61535
61582
  MAX_FILE_PATH_LENGTH: "MAX_FILE_PATH_LENGTH";
61536
61583
  FILE_EXTENSION_RESTRICTION: "FILE_EXTENSION_RESTRICTION";
61537
61584
  MAX_FILE_SIZE: "MAX_FILE_SIZE";
61538
- WORKFLOWS: "WORKFLOWS";
61539
61585
  SECRET_SCANNING: "SECRET_SCANNING";
61540
- WORKFLOW_UPDATES: "WORKFLOW_UPDATES";
61541
- CODE_SCANNING: "CODE_SCANNING";
61542
- COPILOT_CODE_REVIEW: "COPILOT_CODE_REVIEW";
61543
61586
  };
61544
61587
  export declare const enumRepositoryRulesetBypassActorBypassMode: {
61545
61588
  ALWAYS: "ALWAYS";
@@ -1830,6 +1830,15 @@ declare const _default: {
1830
1830
  subject: number[];
1831
1831
  __typename: number[];
1832
1832
  };
1833
+ ContentWarning: {
1834
+ category: number[];
1835
+ customSubCategory: number[];
1836
+ subCategory: number[];
1837
+ subTitle: number[];
1838
+ title: number[];
1839
+ type: number[];
1840
+ __typename: number[];
1841
+ };
1833
1842
  ContributingGuidelines: {
1834
1843
  body: number[];
1835
1844
  resourcePath: number[];
@@ -13008,6 +13017,7 @@ declare const _default: {
13008
13017
  viewerCanSeeIssueFields: number[];
13009
13018
  viewerCanSubscribe: number[];
13010
13019
  viewerCanUpdateTopics: number[];
13020
+ viewerContentWarning: number[];
13011
13021
  viewerDefaultCommitEmail: number[];
13012
13022
  viewerDefaultMergeMethod: number[];
13013
13023
  viewerHasStarred: number[];
@@ -13964,13 +13974,13 @@ declare const _default: {
13964
13974
  committerEmailPattern: number[];
13965
13975
  branchNamePattern: number[];
13966
13976
  tagNamePattern: number[];
13977
+ workflows: number[];
13978
+ codeScanning: number[];
13979
+ copilotCodeReview: number[];
13967
13980
  filePathRestriction: number[];
13968
13981
  maxFilePathLength: number[];
13969
13982
  fileExtensionRestriction: number[];
13970
13983
  maxFileSize: number[];
13971
- workflows: number[];
13972
- codeScanning: number[];
13973
- copilotCodeReview: number[];
13974
13984
  __typename: number[];
13975
13985
  };
13976
13986
  RuleSource: {