github-schema 1.2.5 → 1.3.1

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.
@@ -2200,7 +2200,7 @@ type BranchProtectionRule implements Node {
2200
2200
  id: ID!
2201
2201
 
2202
2202
  """
2203
- Can admins overwrite branch protection.
2203
+ Can admins override branch protection.
2204
2204
  """
2205
2205
  isAdminEnforced: Boolean!
2206
2206
 
@@ -6676,7 +6676,7 @@ input CreateBranchProtectionRuleInput {
6676
6676
  dismissesStaleReviews: Boolean
6677
6677
 
6678
6678
  """
6679
- Can admins overwrite branch protection.
6679
+ Can admins override branch protection.
6680
6680
  """
6681
6681
  isAdminEnforced: Boolean
6682
6682
 
@@ -8095,6 +8095,51 @@ type CreateTeamDiscussionPayload {
8095
8095
  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
8096
  }
8097
8097
 
8098
+ """
8099
+ Autogenerated input type of CreateUserList
8100
+ """
8101
+ input CreateUserListInput {
8102
+ """
8103
+ A unique identifier for the client performing the mutation.
8104
+ """
8105
+ clientMutationId: String
8106
+
8107
+ """
8108
+ A description of the list
8109
+ """
8110
+ description: String
8111
+
8112
+ """
8113
+ Whether or not the list is private
8114
+ """
8115
+ isPrivate: Boolean = false
8116
+
8117
+ """
8118
+ The name of the new list
8119
+ """
8120
+ name: String!
8121
+ }
8122
+
8123
+ """
8124
+ Autogenerated return type of CreateUserList
8125
+ """
8126
+ type CreateUserListPayload {
8127
+ """
8128
+ A unique identifier for the client performing the mutation.
8129
+ """
8130
+ clientMutationId: String
8131
+
8132
+ """
8133
+ The list that was just created
8134
+ """
8135
+ list: UserList
8136
+
8137
+ """
8138
+ The user who created the list
8139
+ """
8140
+ viewer: User
8141
+ }
8142
+
8098
8143
  """
8099
8144
  Represents the contribution a user made by committing to a repository.
8100
8145
  """
@@ -9295,6 +9340,36 @@ type DeleteTeamDiscussionPayload {
9295
9340
  clientMutationId: String
9296
9341
  }
9297
9342
 
9343
+ """
9344
+ Autogenerated input type of DeleteUserList
9345
+ """
9346
+ input DeleteUserListInput {
9347
+ """
9348
+ A unique identifier for the client performing the mutation.
9349
+ """
9350
+ clientMutationId: String
9351
+
9352
+ """
9353
+ The ID of the list to delete.
9354
+ """
9355
+ listId: ID!
9356
+ }
9357
+
9358
+ """
9359
+ Autogenerated return type of DeleteUserList
9360
+ """
9361
+ type DeleteUserListPayload {
9362
+ """
9363
+ A unique identifier for the client performing the mutation.
9364
+ """
9365
+ clientMutationId: String
9366
+
9367
+ """
9368
+ The owner of the list that will be deleted
9369
+ """
9370
+ user: User
9371
+ }
9372
+
9298
9373
  """
9299
9374
  Autogenerated input type of DeleteVerifiableDomain
9300
9375
  """
@@ -21863,6 +21938,16 @@ type Mutation {
21863
21938
  input: CreateTeamDiscussionCommentInput!
21864
21939
  ): CreateTeamDiscussionCommentPayload
21865
21940
 
21941
+ """
21942
+ Creates a new user list.
21943
+ """
21944
+ createUserList(
21945
+ """
21946
+ Parameters for CreateUserList
21947
+ """
21948
+ input: CreateUserListInput!
21949
+ ): CreateUserListPayload
21950
+
21866
21951
  """
21867
21952
  Rejects a suggested topic for the repository.
21868
21953
  """
@@ -22093,6 +22178,16 @@ type Mutation {
22093
22178
  input: DeleteTeamDiscussionCommentInput!
22094
22179
  ): DeleteTeamDiscussionCommentPayload
22095
22180
 
22181
+ """
22182
+ Deletes a user list.
22183
+ """
22184
+ deleteUserList(
22185
+ """
22186
+ Parameters for DeleteUserList
22187
+ """
22188
+ input: DeleteUserListInput!
22189
+ ): DeleteUserListPayload
22190
+
22096
22191
  """
22097
22192
  Deletes a verifiable domain.
22098
22193
  """
@@ -23207,7 +23302,7 @@ type Mutation {
23207
23302
  ): UpdateProjectColumnPayload
23208
23303
 
23209
23304
  """
23210
- Updates an existing project (beta).
23305
+ Updates an existing project.
23211
23306
  """
23212
23307
  updateProjectV2(
23213
23308
  """
@@ -23397,6 +23492,26 @@ type Mutation {
23397
23492
  input: UpdateTopicsInput!
23398
23493
  ): UpdateTopicsPayload
23399
23494
 
23495
+ """
23496
+ Updates an existing user list.
23497
+ """
23498
+ updateUserList(
23499
+ """
23500
+ Parameters for UpdateUserList
23501
+ """
23502
+ input: UpdateUserListInput!
23503
+ ): UpdateUserListPayload
23504
+
23505
+ """
23506
+ Updates which of the viewer's lists an item belongs to
23507
+ """
23508
+ updateUserListsForItem(
23509
+ """
23510
+ Parameters for UpdateUserListsForItem
23511
+ """
23512
+ input: UpdateUserListsForItemInput!
23513
+ ): UpdateUserListsForItemPayload
23514
+
23400
23515
  """
23401
23516
  Verify that a verifiable domain has the expected DNS record.
23402
23517
  """
@@ -32904,7 +33019,7 @@ enum ProjectV2OrderField {
32904
33019
  }
32905
33020
 
32906
33021
  """
32907
- Represents an owner of a project (beta).
33022
+ Represents an owner of a project.
32908
33023
  """
32909
33024
  interface ProjectV2Owner {
32910
33025
  """
@@ -38102,7 +38217,7 @@ enum RefOrderField {
38102
38217
  }
38103
38218
 
38104
38219
  """
38105
- A ref update rules for a viewer.
38220
+ Branch protection rules that are enforced on the viewer.
38106
38221
  """
38107
38222
  type RefUpdateRule {
38108
38223
  """
@@ -54706,7 +54821,7 @@ input UpdateBranchProtectionRuleInput {
54706
54821
  dismissesStaleReviews: Boolean
54707
54822
 
54708
54823
  """
54709
- Can admins overwrite branch protection.
54824
+ Can admins override branch protection.
54710
54825
  """
54711
54826
  isAdminEnforced: Boolean
54712
54827
 
@@ -57231,6 +57346,101 @@ type UpdateTopicsPayload {
57231
57346
  repository: Repository
57232
57347
  }
57233
57348
 
57349
+ """
57350
+ Autogenerated input type of UpdateUserList
57351
+ """
57352
+ input UpdateUserListInput {
57353
+ """
57354
+ A unique identifier for the client performing the mutation.
57355
+ """
57356
+ clientMutationId: String
57357
+
57358
+ """
57359
+ A description of the list
57360
+ """
57361
+ description: String
57362
+
57363
+ """
57364
+ Whether or not the list is private
57365
+ """
57366
+ isPrivate: Boolean
57367
+
57368
+ """
57369
+ The ID of the list to update.
57370
+ """
57371
+ listId: ID!
57372
+
57373
+ """
57374
+ The name of the list
57375
+ """
57376
+ name: String
57377
+ }
57378
+
57379
+ """
57380
+ Autogenerated return type of UpdateUserList
57381
+ """
57382
+ type UpdateUserListPayload {
57383
+ """
57384
+ A unique identifier for the client performing the mutation.
57385
+ """
57386
+ clientMutationId: String
57387
+
57388
+ """
57389
+ The list that was just updated
57390
+ """
57391
+ list: UserList
57392
+ }
57393
+
57394
+ """
57395
+ Autogenerated input type of UpdateUserListsForItem
57396
+ """
57397
+ input UpdateUserListsForItemInput {
57398
+ """
57399
+ A unique identifier for the client performing the mutation.
57400
+ """
57401
+ clientMutationId: String
57402
+
57403
+ """
57404
+ The item to add to the list
57405
+ """
57406
+ itemId: ID!
57407
+
57408
+ """
57409
+ The lists to which this item should belong
57410
+ """
57411
+ listIds: [ID!]!
57412
+
57413
+ """
57414
+ The suggested lists to create and add this item to
57415
+ """
57416
+ suggestedListIds: [ID!]
57417
+ }
57418
+
57419
+ """
57420
+ Autogenerated return type of UpdateUserListsForItem
57421
+ """
57422
+ type UpdateUserListsForItemPayload {
57423
+ """
57424
+ A unique identifier for the client performing the mutation.
57425
+ """
57426
+ clientMutationId: String
57427
+
57428
+ """
57429
+ The item that was added
57430
+ """
57431
+ item: UserListItems
57432
+
57433
+ """
57434
+ The lists to which this item belongs
57435
+ """
57436
+ lists: [UserList!]
57437
+
57438
+ """
57439
+ The user who owns the lists
57440
+ """
57441
+ user: User
57442
+ }
57443
+
57234
57444
  """
57235
57445
  A user is an individual's account on GitHub that owns repositories and can make new content.
57236
57446
  """
@@ -57673,6 +57883,31 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
57673
57883
  """
57674
57884
  itemShowcase: ProfileItemShowcase!
57675
57885
 
57886
+ """
57887
+ A user-curated list of repositories
57888
+ """
57889
+ lists(
57890
+ """
57891
+ Returns the elements in the list that come after the specified cursor.
57892
+ """
57893
+ after: String
57894
+
57895
+ """
57896
+ Returns the elements in the list that come before the specified cursor.
57897
+ """
57898
+ before: String
57899
+
57900
+ """
57901
+ Returns the first _n_ elements from the list.
57902
+ """
57903
+ first: Int
57904
+
57905
+ """
57906
+ Returns the last _n_ elements from the list.
57907
+ """
57908
+ last: Int
57909
+ ): UserListConnection!
57910
+
57676
57911
  """
57677
57912
  The user's public profile location.
57678
57913
  """
@@ -58656,6 +58891,11 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner &
58656
58891
  """
58657
58892
  status: UserStatus
58658
58893
 
58894
+ """
58895
+ Suggested names for user lists
58896
+ """
58897
+ suggestedListNames: [UserListSuggestion!]!
58898
+
58659
58899
  """
58660
58900
  Repositories the user has contributed to, ordered by contribution rank, plus repositories the user has created
58661
58901
  """
@@ -59028,6 +59268,181 @@ type UserEmailMetadata {
59028
59268
  value: String!
59029
59269
  }
59030
59270
 
59271
+ """
59272
+ A user-curated list of repositories
59273
+ """
59274
+ type UserList implements Node {
59275
+ """
59276
+ Identifies the date and time when the object was created.
59277
+ """
59278
+ createdAt: DateTime!
59279
+
59280
+ """
59281
+ The description of this list
59282
+ """
59283
+ description: String
59284
+
59285
+ """
59286
+ The Node ID of this object
59287
+ """
59288
+ id: ID!
59289
+
59290
+ """
59291
+ Whether or not this list is private
59292
+ """
59293
+ isPrivate: Boolean!
59294
+
59295
+ """
59296
+ The items associated with this list
59297
+ """
59298
+ items(
59299
+ """
59300
+ Returns the elements in the list that come after the specified cursor.
59301
+ """
59302
+ after: String
59303
+
59304
+ """
59305
+ Returns the elements in the list that come before the specified cursor.
59306
+ """
59307
+ before: String
59308
+
59309
+ """
59310
+ Returns the first _n_ elements from the list.
59311
+ """
59312
+ first: Int
59313
+
59314
+ """
59315
+ Returns the last _n_ elements from the list.
59316
+ """
59317
+ last: Int
59318
+ ): UserListItemsConnection!
59319
+
59320
+ """
59321
+ The date and time at which this list was created or last had items added to it
59322
+ """
59323
+ lastAddedAt: DateTime!
59324
+
59325
+ """
59326
+ The name of this list
59327
+ """
59328
+ name: String!
59329
+
59330
+ """
59331
+ The slug of this list
59332
+ """
59333
+ slug: String!
59334
+
59335
+ """
59336
+ Identifies the date and time when the object was last updated.
59337
+ """
59338
+ updatedAt: DateTime!
59339
+
59340
+ """
59341
+ The user to which this list belongs
59342
+ """
59343
+ user: User!
59344
+ }
59345
+
59346
+ """
59347
+ The connection type for UserList.
59348
+ """
59349
+ type UserListConnection {
59350
+ """
59351
+ A list of edges.
59352
+ """
59353
+ edges: [UserListEdge]
59354
+
59355
+ """
59356
+ A list of nodes.
59357
+ """
59358
+ nodes: [UserList]
59359
+
59360
+ """
59361
+ Information to aid in pagination.
59362
+ """
59363
+ pageInfo: PageInfo!
59364
+
59365
+ """
59366
+ Identifies the total count of items in the connection.
59367
+ """
59368
+ totalCount: Int!
59369
+ }
59370
+
59371
+ """
59372
+ An edge in a connection.
59373
+ """
59374
+ type UserListEdge {
59375
+ """
59376
+ A cursor for use in pagination.
59377
+ """
59378
+ cursor: String!
59379
+
59380
+ """
59381
+ The item at the end of the edge.
59382
+ """
59383
+ node: UserList
59384
+ }
59385
+
59386
+ """
59387
+ Types that can be added to a user list.
59388
+ """
59389
+ union UserListItems = Repository
59390
+
59391
+ """
59392
+ The connection type for UserListItems.
59393
+ """
59394
+ type UserListItemsConnection {
59395
+ """
59396
+ A list of edges.
59397
+ """
59398
+ edges: [UserListItemsEdge]
59399
+
59400
+ """
59401
+ A list of nodes.
59402
+ """
59403
+ nodes: [UserListItems]
59404
+
59405
+ """
59406
+ Information to aid in pagination.
59407
+ """
59408
+ pageInfo: PageInfo!
59409
+
59410
+ """
59411
+ Identifies the total count of items in the connection.
59412
+ """
59413
+ totalCount: Int!
59414
+ }
59415
+
59416
+ """
59417
+ An edge in a connection.
59418
+ """
59419
+ type UserListItemsEdge {
59420
+ """
59421
+ A cursor for use in pagination.
59422
+ """
59423
+ cursor: String!
59424
+
59425
+ """
59426
+ The item at the end of the edge.
59427
+ """
59428
+ node: UserListItems
59429
+ }
59430
+
59431
+ """
59432
+ Represents a suggested user list.
59433
+ """
59434
+ type UserListSuggestion {
59435
+ """
59436
+ The ID of the suggested user list
59437
+ """
59438
+ id: ID
59439
+
59440
+ """
59441
+ The name of the suggested user list
59442
+ """
59443
+ name: String
59444
+ }
59445
+
59031
59446
  """
59032
59447
  The user's description of what they're currently doing.
59033
59448
  """
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.3.1",
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,10 @@
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
+ "tsup": "^8.0.1",
102
+ "typescript": "^5.3.2"
100
103
  }
101
104
  }