github-schema 1.2.5 → 1.4.0

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.
@@ -108,13 +108,21 @@ input AcceptTopicSuggestionInput {
108
108
 
109
109
  """
110
110
  The name of the suggested topic.
111
+
112
+ **Upcoming Change on 2024-04-01 UTC**
113
+ **Description:** `name` will be removed.
114
+ **Reason:** Suggested topics are no longer supported
111
115
  """
112
- name: String!
116
+ name: String
113
117
 
114
118
  """
115
119
  The Node ID of the repository.
120
+
121
+ **Upcoming Change on 2024-04-01 UTC**
122
+ **Description:** `repositoryId` will be removed.
123
+ **Reason:** Suggested topics are no longer supported
116
124
  """
117
- repositoryId: ID!
125
+ repositoryId: ID
118
126
  }
119
127
 
120
128
  """
@@ -129,7 +137,7 @@ type AcceptTopicSuggestionPayload {
129
137
  """
130
138
  The accepted topic.
131
139
  """
132
- topic: Topic
140
+ topic: Topic @deprecated(reason: "Suggested topics are no longer supported Removal on 2024-04-01 UTC.")
133
141
  }
134
142
 
135
143
  """
@@ -2200,7 +2208,7 @@ type BranchProtectionRule implements Node {
2200
2208
  id: ID!
2201
2209
 
2202
2210
  """
2203
- Can admins overwrite branch protection.
2211
+ Can admins override branch protection.
2204
2212
  """
2205
2213
  isAdminEnforced: Boolean!
2206
2214
 
@@ -6676,7 +6684,7 @@ input CreateBranchProtectionRuleInput {
6676
6684
  dismissesStaleReviews: Boolean
6677
6685
 
6678
6686
  """
6679
- Can admins overwrite branch protection.
6687
+ Can admins override branch protection.
6680
6688
  """
6681
6689
  isAdminEnforced: Boolean
6682
6690
 
@@ -8095,6 +8103,51 @@ type CreateTeamDiscussionPayload {
8095
8103
  teamDiscussion: TeamDiscussion @deprecated(reason: "The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC.")
8096
8104
  }
8097
8105
 
8106
+ """
8107
+ Autogenerated input type of CreateUserList
8108
+ """
8109
+ input CreateUserListInput {
8110
+ """
8111
+ A unique identifier for the client performing the mutation.
8112
+ """
8113
+ clientMutationId: String
8114
+
8115
+ """
8116
+ A description of the list
8117
+ """
8118
+ description: String
8119
+
8120
+ """
8121
+ Whether or not the list is private
8122
+ """
8123
+ isPrivate: Boolean = false
8124
+
8125
+ """
8126
+ The name of the new list
8127
+ """
8128
+ name: String!
8129
+ }
8130
+
8131
+ """
8132
+ Autogenerated return type of CreateUserList
8133
+ """
8134
+ type CreateUserListPayload {
8135
+ """
8136
+ A unique identifier for the client performing the mutation.
8137
+ """
8138
+ clientMutationId: String
8139
+
8140
+ """
8141
+ The list that was just created
8142
+ """
8143
+ list: UserList
8144
+
8145
+ """
8146
+ The user who created the list
8147
+ """
8148
+ viewer: User
8149
+ }
8150
+
8098
8151
  """
8099
8152
  Represents the contribution a user made by committing to a repository.
8100
8153
  """
@@ -8586,18 +8639,30 @@ input DeclineTopicSuggestionInput {
8586
8639
 
8587
8640
  """
8588
8641
  The name of the suggested topic.
8642
+
8643
+ **Upcoming Change on 2024-04-01 UTC**
8644
+ **Description:** `name` will be removed.
8645
+ **Reason:** Suggested topics are no longer supported
8589
8646
  """
8590
- name: String!
8647
+ name: String
8591
8648
 
8592
8649
  """
8593
8650
  The reason why the suggested topic is declined.
8651
+
8652
+ **Upcoming Change on 2024-04-01 UTC**
8653
+ **Description:** `reason` will be removed.
8654
+ **Reason:** Suggested topics are no longer supported
8594
8655
  """
8595
- reason: TopicSuggestionDeclineReason!
8656
+ reason: TopicSuggestionDeclineReason
8596
8657
 
8597
8658
  """
8598
8659
  The Node ID of the repository.
8660
+
8661
+ **Upcoming Change on 2024-04-01 UTC**
8662
+ **Description:** `repositoryId` will be removed.
8663
+ **Reason:** Suggested topics are no longer supported
8599
8664
  """
8600
- repositoryId: ID!
8665
+ repositoryId: ID
8601
8666
  }
8602
8667
 
8603
8668
  """
@@ -8612,7 +8677,7 @@ type DeclineTopicSuggestionPayload {
8612
8677
  """
8613
8678
  The declined topic.
8614
8679
  """
8615
- topic: Topic
8680
+ topic: Topic @deprecated(reason: "Suggested topics are no longer supported Removal on 2024-04-01 UTC.")
8616
8681
  }
8617
8682
 
8618
8683
  """
@@ -9295,6 +9360,36 @@ type DeleteTeamDiscussionPayload {
9295
9360
  clientMutationId: String
9296
9361
  }
9297
9362
 
9363
+ """
9364
+ Autogenerated input type of DeleteUserList
9365
+ """
9366
+ input DeleteUserListInput {
9367
+ """
9368
+ A unique identifier for the client performing the mutation.
9369
+ """
9370
+ clientMutationId: String
9371
+
9372
+ """
9373
+ The ID of the list to delete.
9374
+ """
9375
+ listId: ID!
9376
+ }
9377
+
9378
+ """
9379
+ Autogenerated return type of DeleteUserList
9380
+ """
9381
+ type DeleteUserListPayload {
9382
+ """
9383
+ A unique identifier for the client performing the mutation.
9384
+ """
9385
+ clientMutationId: String
9386
+
9387
+ """
9388
+ The owner of the list that will be deleted
9389
+ """
9390
+ user: User
9391
+ }
9392
+
9298
9393
  """
9299
9394
  Autogenerated input type of DeleteVerifiableDomain
9300
9395
  """
@@ -21863,6 +21958,16 @@ type Mutation {
21863
21958
  input: CreateTeamDiscussionCommentInput!
21864
21959
  ): CreateTeamDiscussionCommentPayload
21865
21960
 
21961
+ """
21962
+ Creates a new user list.
21963
+ """
21964
+ createUserList(
21965
+ """
21966
+ Parameters for CreateUserList
21967
+ """
21968
+ input: CreateUserListInput!
21969
+ ): CreateUserListPayload
21970
+
21866
21971
  """
21867
21972
  Rejects a suggested topic for the repository.
21868
21973
  """
@@ -22093,6 +22198,16 @@ type Mutation {
22093
22198
  input: DeleteTeamDiscussionCommentInput!
22094
22199
  ): DeleteTeamDiscussionCommentPayload
22095
22200
 
22201
+ """
22202
+ Deletes a user list.
22203
+ """
22204
+ deleteUserList(
22205
+ """
22206
+ Parameters for DeleteUserList
22207
+ """
22208
+ input: DeleteUserListInput!
22209
+ ): DeleteUserListPayload
22210
+
22096
22211
  """
22097
22212
  Deletes a verifiable domain.
22098
22213
  """
@@ -23207,7 +23322,7 @@ type Mutation {
23207
23322
  ): UpdateProjectColumnPayload
23208
23323
 
23209
23324
  """
23210
- Updates an existing project (beta).
23325
+ Updates an existing project.
23211
23326
  """
23212
23327
  updateProjectV2(
23213
23328
  """
@@ -23397,6 +23512,26 @@ type Mutation {
23397
23512
  input: UpdateTopicsInput!
23398
23513
  ): UpdateTopicsPayload
23399
23514
 
23515
+ """
23516
+ Updates an existing user list.
23517
+ """
23518
+ updateUserList(
23519
+ """
23520
+ Parameters for UpdateUserList
23521
+ """
23522
+ input: UpdateUserListInput!
23523
+ ): UpdateUserListPayload
23524
+
23525
+ """
23526
+ Updates which of the viewer's lists an item belongs to
23527
+ """
23528
+ updateUserListsForItem(
23529
+ """
23530
+ Parameters for UpdateUserListsForItem
23531
+ """
23532
+ input: UpdateUserListsForItemInput!
23533
+ ): UpdateUserListsForItemPayload
23534
+
23400
23535
  """
23401
23536
  Verify that a verifiable domain has the expected DNS record.
23402
23537
  """
@@ -32904,7 +33039,7 @@ enum ProjectV2OrderField {
32904
33039
  }
32905
33040
 
32906
33041
  """
32907
- Represents an owner of a project (beta).
33042
+ Represents an owner of a project.
32908
33043
  """
32909
33044
  interface ProjectV2Owner {
32910
33045
  """
@@ -38102,7 +38237,7 @@ enum RefOrderField {
38102
38237
  }
38103
38238
 
38104
38239
  """
38105
- A ref update rules for a viewer.
38240
+ Branch protection rules that are enforced on the viewer.
38106
38241
  """
38107
38242
  type RefUpdateRule {
38108
38243
  """
@@ -53627,22 +53762,22 @@ enum TopicSuggestionDeclineReason {
53627
53762
  """
53628
53763
  The suggested topic is not relevant to the repository.
53629
53764
  """
53630
- NOT_RELEVANT
53765
+ NOT_RELEVANT @deprecated(reason: "Suggested topics are no longer supported Removal on 2024-04-01 UTC.")
53631
53766
 
53632
53767
  """
53633
53768
  The viewer does not like the suggested topic.
53634
53769
  """
53635
- PERSONAL_PREFERENCE
53770
+ PERSONAL_PREFERENCE @deprecated(reason: "Suggested topics are no longer supported Removal on 2024-04-01 UTC.")
53636
53771
 
53637
53772
  """
53638
53773
  The suggested topic is too general for the repository.
53639
53774
  """
53640
- TOO_GENERAL
53775
+ TOO_GENERAL @deprecated(reason: "Suggested topics are no longer supported Removal on 2024-04-01 UTC.")
53641
53776
 
53642
53777
  """
53643
53778
  The suggested topic is too specific for the repository (e.g. #ruby-on-rails-version-4-2-1).
53644
53779
  """
53645
- TOO_SPECIFIC
53780
+ TOO_SPECIFIC @deprecated(reason: "Suggested topics are no longer supported Removal on 2024-04-01 UTC.")
53646
53781
  }
53647
53782
 
53648
53783
  """
@@ -54706,7 +54841,7 @@ input UpdateBranchProtectionRuleInput {
54706
54841
  dismissesStaleReviews: Boolean
54707
54842
 
54708
54843
  """
54709
- Can admins overwrite branch protection.
54844
+ Can admins override branch protection.
54710
54845
  """
54711
54846
  isAdminEnforced: Boolean
54712
54847
 
@@ -57231,6 +57366,101 @@ type UpdateTopicsPayload {
57231
57366
  repository: Repository
57232
57367
  }
57233
57368
 
57369
+ """
57370
+ Autogenerated input type of UpdateUserList
57371
+ """
57372
+ input UpdateUserListInput {
57373
+ """
57374
+ A unique identifier for the client performing the mutation.
57375
+ """
57376
+ clientMutationId: String
57377
+
57378
+ """
57379
+ A description of the list
57380
+ """
57381
+ description: String
57382
+
57383
+ """
57384
+ Whether or not the list is private
57385
+ """
57386
+ isPrivate: Boolean
57387
+
57388
+ """
57389
+ The ID of the list to update.
57390
+ """
57391
+ listId: ID!
57392
+
57393
+ """
57394
+ The name of the list
57395
+ """
57396
+ name: String
57397
+ }
57398
+
57399
+ """
57400
+ Autogenerated return type of UpdateUserList
57401
+ """
57402
+ type UpdateUserListPayload {
57403
+ """
57404
+ A unique identifier for the client performing the mutation.
57405
+ """
57406
+ clientMutationId: String
57407
+
57408
+ """
57409
+ The list that was just updated
57410
+ """
57411
+ list: UserList
57412
+ }
57413
+
57414
+ """
57415
+ Autogenerated input type of UpdateUserListsForItem
57416
+ """
57417
+ input UpdateUserListsForItemInput {
57418
+ """
57419
+ A unique identifier for the client performing the mutation.
57420
+ """
57421
+ clientMutationId: String
57422
+
57423
+ """
57424
+ The item to add to the list
57425
+ """
57426
+ itemId: ID!
57427
+
57428
+ """
57429
+ The lists to which this item should belong
57430
+ """
57431
+ listIds: [ID!]!
57432
+
57433
+ """
57434
+ The suggested lists to create and add this item to
57435
+ """
57436
+ suggestedListIds: [ID!]
57437
+ }
57438
+
57439
+ """
57440
+ Autogenerated return type of UpdateUserListsForItem
57441
+ """
57442
+ type UpdateUserListsForItemPayload {
57443
+ """
57444
+ A unique identifier for the client performing the mutation.
57445
+ """
57446
+ clientMutationId: String
57447
+
57448
+ """
57449
+ The item that was added
57450
+ """
57451
+ item: UserListItems
57452
+
57453
+ """
57454
+ The lists to which this item belongs
57455
+ """
57456
+ lists: [UserList!]
57457
+
57458
+ """
57459
+ The user who owns the lists
57460
+ """
57461
+ user: User
57462
+ }
57463
+
57234
57464
  """
57235
57465
  A user is an individual's account on GitHub that owns repositories and can make new content.
57236
57466
  """
@@ -57673,6 +57903,31 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
57673
57903
  """
57674
57904
  itemShowcase: ProfileItemShowcase!
57675
57905
 
57906
+ """
57907
+ A user-curated list of repositories
57908
+ """
57909
+ lists(
57910
+ """
57911
+ Returns the elements in the list that come after the specified cursor.
57912
+ """
57913
+ after: String
57914
+
57915
+ """
57916
+ Returns the elements in the list that come before the specified cursor.
57917
+ """
57918
+ before: String
57919
+
57920
+ """
57921
+ Returns the first _n_ elements from the list.
57922
+ """
57923
+ first: Int
57924
+
57925
+ """
57926
+ Returns the last _n_ elements from the list.
57927
+ """
57928
+ last: Int
57929
+ ): UserListConnection!
57930
+
57676
57931
  """
57677
57932
  The user's public profile location.
57678
57933
  """
@@ -58656,6 +58911,11 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
58656
58911
  """
58657
58912
  status: UserStatus
58658
58913
 
58914
+ """
58915
+ Suggested names for user lists
58916
+ """
58917
+ suggestedListNames: [UserListSuggestion!]!
58918
+
58659
58919
  """
58660
58920
  Repositories the user has contributed to, ordered by contribution rank, plus repositories the user has created
58661
58921
  """
@@ -59028,6 +59288,181 @@ type UserEmailMetadata {
59028
59288
  value: String!
59029
59289
  }
59030
59290
 
59291
+ """
59292
+ A user-curated list of repositories
59293
+ """
59294
+ type UserList implements Node {
59295
+ """
59296
+ Identifies the date and time when the object was created.
59297
+ """
59298
+ createdAt: DateTime!
59299
+
59300
+ """
59301
+ The description of this list
59302
+ """
59303
+ description: String
59304
+
59305
+ """
59306
+ The Node ID of this object
59307
+ """
59308
+ id: ID!
59309
+
59310
+ """
59311
+ Whether or not this list is private
59312
+ """
59313
+ isPrivate: Boolean!
59314
+
59315
+ """
59316
+ The items associated with this list
59317
+ """
59318
+ items(
59319
+ """
59320
+ Returns the elements in the list that come after the specified cursor.
59321
+ """
59322
+ after: String
59323
+
59324
+ """
59325
+ Returns the elements in the list that come before the specified cursor.
59326
+ """
59327
+ before: String
59328
+
59329
+ """
59330
+ Returns the first _n_ elements from the list.
59331
+ """
59332
+ first: Int
59333
+
59334
+ """
59335
+ Returns the last _n_ elements from the list.
59336
+ """
59337
+ last: Int
59338
+ ): UserListItemsConnection!
59339
+
59340
+ """
59341
+ The date and time at which this list was created or last had items added to it
59342
+ """
59343
+ lastAddedAt: DateTime!
59344
+
59345
+ """
59346
+ The name of this list
59347
+ """
59348
+ name: String!
59349
+
59350
+ """
59351
+ The slug of this list
59352
+ """
59353
+ slug: String!
59354
+
59355
+ """
59356
+ Identifies the date and time when the object was last updated.
59357
+ """
59358
+ updatedAt: DateTime!
59359
+
59360
+ """
59361
+ The user to which this list belongs
59362
+ """
59363
+ user: User!
59364
+ }
59365
+
59366
+ """
59367
+ The connection type for UserList.
59368
+ """
59369
+ type UserListConnection {
59370
+ """
59371
+ A list of edges.
59372
+ """
59373
+ edges: [UserListEdge]
59374
+
59375
+ """
59376
+ A list of nodes.
59377
+ """
59378
+ nodes: [UserList]
59379
+
59380
+ """
59381
+ Information to aid in pagination.
59382
+ """
59383
+ pageInfo: PageInfo!
59384
+
59385
+ """
59386
+ Identifies the total count of items in the connection.
59387
+ """
59388
+ totalCount: Int!
59389
+ }
59390
+
59391
+ """
59392
+ An edge in a connection.
59393
+ """
59394
+ type UserListEdge {
59395
+ """
59396
+ A cursor for use in pagination.
59397
+ """
59398
+ cursor: String!
59399
+
59400
+ """
59401
+ The item at the end of the edge.
59402
+ """
59403
+ node: UserList
59404
+ }
59405
+
59406
+ """
59407
+ Types that can be added to a user list.
59408
+ """
59409
+ union UserListItems = Repository
59410
+
59411
+ """
59412
+ The connection type for UserListItems.
59413
+ """
59414
+ type UserListItemsConnection {
59415
+ """
59416
+ A list of edges.
59417
+ """
59418
+ edges: [UserListItemsEdge]
59419
+
59420
+ """
59421
+ A list of nodes.
59422
+ """
59423
+ nodes: [UserListItems]
59424
+
59425
+ """
59426
+ Information to aid in pagination.
59427
+ """
59428
+ pageInfo: PageInfo!
59429
+
59430
+ """
59431
+ Identifies the total count of items in the connection.
59432
+ """
59433
+ totalCount: Int!
59434
+ }
59435
+
59436
+ """
59437
+ An edge in a connection.
59438
+ """
59439
+ type UserListItemsEdge {
59440
+ """
59441
+ A cursor for use in pagination.
59442
+ """
59443
+ cursor: String!
59444
+
59445
+ """
59446
+ The item at the end of the edge.
59447
+ """
59448
+ node: UserListItems
59449
+ }
59450
+
59451
+ """
59452
+ Represents a suggested user list.
59453
+ """
59454
+ type UserListSuggestion {
59455
+ """
59456
+ The ID of the suggested user list
59457
+ """
59458
+ id: ID
59459
+
59460
+ """
59461
+ The name of the suggested user list
59462
+ """
59463
+ name: String
59464
+ }
59465
+
59031
59466
  """
59032
59467
  The user's description of what they're currently doing.
59033
59468
  """
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "github-schema",
3
- "type": "module",
4
- "version": "1.2.5",
5
- "packageManager": "bun@1.0.13",
3
+ "version": "1.4.0",
6
4
  "description": "GitHub's GraphQL schema",
5
+ "type": "module",
7
6
  "author": {
8
7
  "name": "Lucas Nørgård",
9
8
  "email": "lucasnrgaard@gmail.com",
10
9
  "url": "https://luxass.dev"
11
10
  },
11
+ "packageManager": "pnpm@8.10.1",
12
12
  "license": "MIT",
13
13
  "homepage": "https://github.com/luxass/github-schema",
14
14
  "repository": {
@@ -76,11 +76,14 @@
76
76
  "github-schema.d.ts",
77
77
  "github-schema.graphql"
78
78
  ],
79
+ "engines": {
80
+ "node": ">=18"
81
+ },
79
82
  "scripts": {
80
83
  "build": "tsup",
81
- "schema:download": "bun run scripts/download.ts",
84
+ "schema:download": "pnpx tsx --env-file=.env ./scripts/download.ts",
82
85
  "schema:codegen": "graphql-codegen",
83
- "prepublishOnly": "bun run schema:download && bun run schema:codegen && bun run build",
86
+ "prepublishOnly": "pnpm run schema:download && pnpm run schema:codegen && pnpm run build",
84
87
  "lint": "eslint .",
85
88
  "typecheck": "tsc --noEmit"
86
89
  },
@@ -92,10 +95,11 @@
92
95
  "@graphql-codegen/add": "^5.0.0",
93
96
  "@graphql-codegen/cli": "^5.0.0",
94
97
  "@graphql-codegen/typescript": "^4.0.1",
95
- "@luxass/eslint-config": "^4.0.0-beta.4",
96
- "bun-types": "^1.0.13",
98
+ "@luxass/eslint-config": "^4.0.0-beta.13",
99
+ "@types/node": "^18.19.0",
97
100
  "eslint": "^8.54.0",
98
- "tsup": "^8.0.0",
99
- "typescript": "^5.2.2"
101
+ "eslint-plugin-format": "^0.1.0",
102
+ "tsup": "^8.0.1",
103
+ "typescript": "^5.3.2"
100
104
  }
101
105
  }