github-schema 1.21.10 → 1.22.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.
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as gql } from "./raw-BzDaq_4U.mjs";
1
+ import { gql } from "./raw.mjs";
2
2
  import gqlTyped from "graphql-tag";
3
3
 
4
4
  export { gql, gqlTyped };
package/dist/raw.cjs CHANGED
@@ -1,3 +1,14 @@
1
- const require_raw = require('./raw-Hx1rD-vR.cjs');
2
1
 
3
- exports.gql = require_raw.gql;
2
+ //#region src/raw.ts
3
+ /**
4
+ * Returns a GraphQL query string by interpolating variables into a template string.
5
+ * @param {TemplateStringsArray} raw - The template string.
6
+ * @param {...string} keys - The variables to interpolate.
7
+ * @returns {string} The interpolated GraphQL query string.
8
+ */
9
+ function gql(raw, ...keys) {
10
+ return keys.length === 0 ? raw[0] : String.raw({ raw }, ...keys);
11
+ }
12
+
13
+ //#endregion
14
+ exports.gql = gql;
package/dist/raw.d.cts CHANGED
@@ -1,2 +1,10 @@
1
- import { t as gql } from "./raw-CmEdncua.cjs";
1
+ //#region src/raw.d.ts
2
+ /**
3
+ * Returns a GraphQL query string by interpolating variables into a template string.
4
+ * @param {TemplateStringsArray} raw - The template string.
5
+ * @param {...string} keys - The variables to interpolate.
6
+ * @returns {string} The interpolated GraphQL query string.
7
+ */
8
+ declare function gql(raw: TemplateStringsArray, ...keys: string[]): string;
9
+ //#endregion
2
10
  export { gql };
package/dist/raw.d.mts CHANGED
@@ -1,2 +1,10 @@
1
- import { t as gql } from "./raw-52kerwqc.mjs";
1
+ //#region src/raw.d.ts
2
+ /**
3
+ * Returns a GraphQL query string by interpolating variables into a template string.
4
+ * @param {TemplateStringsArray} raw - The template string.
5
+ * @param {...string} keys - The variables to interpolate.
6
+ * @returns {string} The interpolated GraphQL query string.
7
+ */
8
+ declare function gql(raw: TemplateStringsArray, ...keys: string[]): string;
9
+ //#endregion
2
10
  export { gql };
package/dist/raw.mjs CHANGED
@@ -1,3 +1,13 @@
1
- import { t as gql } from "./raw-BzDaq_4U.mjs";
1
+ //#region src/raw.ts
2
+ /**
3
+ * Returns a GraphQL query string by interpolating variables into a template string.
4
+ * @param {TemplateStringsArray} raw - The template string.
5
+ * @param {...string} keys - The variables to interpolate.
6
+ * @returns {string} The interpolated GraphQL query string.
7
+ */
8
+ function gql(raw, ...keys) {
9
+ return keys.length === 0 ? raw[0] : String.raw({ raw }, ...keys);
10
+ }
2
11
 
12
+ //#endregion
3
13
  export { gql };
@@ -9097,53 +9097,6 @@ type CreateSponsorshipsPayload {
9097
9097
  sponsorables: [Sponsorable!]
9098
9098
  }
9099
9099
 
9100
- """
9101
- Autogenerated input type of CreateTeamDiscussionComment
9102
- """
9103
- input CreateTeamDiscussionCommentInput {
9104
- """
9105
- The content of the comment. This field is required.
9106
-
9107
- **Upcoming Change on 2024-07-01 UTC**
9108
- **Description:** `body` will be removed. Follow the guide at
9109
- https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to
9110
- find a suitable replacement.
9111
- **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions.
9112
- """
9113
- body: String
9114
-
9115
- """
9116
- A unique identifier for the client performing the mutation.
9117
- """
9118
- clientMutationId: String
9119
-
9120
- """
9121
- The ID of the discussion to which the comment belongs. This field is required.
9122
-
9123
- **Upcoming Change on 2024-07-01 UTC**
9124
- **Description:** `discussionId` will be removed. Follow the guide at
9125
- https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to
9126
- find a suitable replacement.
9127
- **Reason:** The Team Discussions feature is deprecated in favor of Organization Discussions.
9128
- """
9129
- discussionId: ID
9130
- }
9131
-
9132
- """
9133
- Autogenerated return type of CreateTeamDiscussionComment.
9134
- """
9135
- type CreateTeamDiscussionCommentPayload {
9136
- """
9137
- A unique identifier for the client performing the mutation.
9138
- """
9139
- clientMutationId: String
9140
-
9141
- """
9142
- The new comment.
9143
- """
9144
- teamDiscussionComment: TeamDiscussionComment @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.")
9145
- }
9146
-
9147
9100
  """
9148
9101
  Autogenerated input type of CreateTeamDiscussion
9149
9102
  """
@@ -10645,31 +10598,6 @@ type DeleteRepositoryRulesetPayload {
10645
10598
  clientMutationId: String
10646
10599
  }
10647
10600
 
10648
- """
10649
- Autogenerated input type of DeleteTeamDiscussionComment
10650
- """
10651
- input DeleteTeamDiscussionCommentInput {
10652
- """
10653
- A unique identifier for the client performing the mutation.
10654
- """
10655
- clientMutationId: String
10656
-
10657
- """
10658
- The ID of the comment to delete.
10659
- """
10660
- id: ID!
10661
- }
10662
-
10663
- """
10664
- Autogenerated return type of DeleteTeamDiscussionComment.
10665
- """
10666
- type DeleteTeamDiscussionCommentPayload {
10667
- """
10668
- A unique identifier for the client performing the mutation.
10669
- """
10670
- clientMutationId: String
10671
- }
10672
-
10673
10601
  """
10674
10602
  Autogenerated input type of DeleteTeamDiscussion
10675
10603
  """
@@ -25129,16 +25057,6 @@ type Mutation {
25129
25057
  input: CreateTeamDiscussionInput!
25130
25058
  ): CreateTeamDiscussionPayload
25131
25059
 
25132
- """
25133
- Creates a new team discussion comment.
25134
- """
25135
- createTeamDiscussionComment(
25136
- """
25137
- Parameters for CreateTeamDiscussionComment
25138
- """
25139
- input: CreateTeamDiscussionCommentInput!
25140
- ): CreateTeamDiscussionCommentPayload
25141
-
25142
25060
  """
25143
25061
  Creates a new user list.
25144
25062
  """
@@ -25419,16 +25337,6 @@ type Mutation {
25419
25337
  input: DeleteTeamDiscussionInput!
25420
25338
  ): DeleteTeamDiscussionPayload
25421
25339
 
25422
- """
25423
- Deletes a team discussion comment.
25424
- """
25425
- deleteTeamDiscussionComment(
25426
- """
25427
- Parameters for DeleteTeamDiscussionComment
25428
- """
25429
- input: DeleteTeamDiscussionCommentInput!
25430
- ): DeleteTeamDiscussionCommentPayload
25431
-
25432
25340
  """
25433
25341
  Deletes a user list.
25434
25342
  """
@@ -26911,16 +26819,6 @@ type Mutation {
26911
26819
  input: UpdateTeamDiscussionInput!
26912
26820
  ): UpdateTeamDiscussionPayload
26913
26821
 
26914
- """
26915
- Updates a discussion comment.
26916
- """
26917
- updateTeamDiscussionComment(
26918
- """
26919
- Parameters for UpdateTeamDiscussionComment
26920
- """
26921
- input: UpdateTeamDiscussionCommentInput!
26922
- ): UpdateTeamDiscussionCommentPayload
26923
-
26924
26822
  """
26925
26823
  Updates team review assignment.
26926
26824
  """
@@ -58380,41 +58278,6 @@ type TeamDiscussion implements Comment & Deletable & Node & Reactable & Subscrib
58380
58278
  """
58381
58279
  bodyVersion: String! @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.")
58382
58280
 
58383
- """
58384
- A list of comments on this discussion.
58385
- """
58386
- comments(
58387
- """
58388
- Returns the elements in the list that come after the specified cursor.
58389
- """
58390
- after: String
58391
-
58392
- """
58393
- Returns the elements in the list that come before the specified cursor.
58394
- """
58395
- before: String
58396
-
58397
- """
58398
- Returns the first _n_ elements from the list.
58399
- """
58400
- first: Int
58401
-
58402
- """
58403
- When provided, filters the connection such that results begin with the comment with this number.
58404
- """
58405
- fromComment: Int
58406
-
58407
- """
58408
- Returns the last _n_ elements from the list.
58409
- """
58410
- last: Int
58411
-
58412
- """
58413
- Order for connection
58414
- """
58415
- orderBy: TeamDiscussionCommentOrder
58416
- ): TeamDiscussionCommentConnection! @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.")
58417
-
58418
58281
  """
58419
58282
  The HTTP path for discussion comments
58420
58283
  """
@@ -58611,261 +58474,6 @@ type TeamDiscussion implements Comment & Deletable & Node & Reactable & Subscrib
58611
58474
  viewerSubscription: SubscriptionState
58612
58475
  }
58613
58476
 
58614
- """
58615
- A comment on a team discussion.
58616
- """
58617
- type TeamDiscussionComment implements Comment & Deletable & Node & Reactable & UniformResourceLocatable & Updatable & UpdatableComment {
58618
- """
58619
- The actor who authored the comment.
58620
- """
58621
- author: Actor
58622
-
58623
- """
58624
- Author's association with the comment's team.
58625
- """
58626
- authorAssociation: CommentAuthorAssociation! @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.")
58627
-
58628
- """
58629
- The body as Markdown.
58630
- """
58631
- body: String!
58632
-
58633
- """
58634
- The body rendered to HTML.
58635
- """
58636
- bodyHTML: HTML!
58637
-
58638
- """
58639
- The body rendered to text.
58640
- """
58641
- bodyText: String!
58642
-
58643
- """
58644
- The current version of the body content.
58645
- """
58646
- bodyVersion: String! @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.")
58647
-
58648
- """
58649
- Identifies the date and time when the object was created.
58650
- """
58651
- createdAt: DateTime!
58652
-
58653
- """
58654
- Check if this comment was created via an email reply.
58655
- """
58656
- createdViaEmail: Boolean!
58657
-
58658
- """
58659
- Identifies the primary key from the database.
58660
- """
58661
- databaseId: Int
58662
-
58663
- """
58664
- The discussion this comment is about.
58665
- """
58666
- discussion: 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.")
58667
-
58668
- """
58669
- The actor who edited the comment.
58670
- """
58671
- editor: Actor
58672
-
58673
- """
58674
- The Node ID of the TeamDiscussionComment object
58675
- """
58676
- id: ID!
58677
-
58678
- """
58679
- Check if this comment was edited and includes an edit with the creation data
58680
- """
58681
- includesCreatedEdit: Boolean!
58682
-
58683
- """
58684
- The moment the editor made the last edit
58685
- """
58686
- lastEditedAt: DateTime
58687
-
58688
- """
58689
- Identifies the comment number.
58690
- """
58691
- number: Int! @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.")
58692
-
58693
- """
58694
- Identifies when the comment was published at.
58695
- """
58696
- publishedAt: DateTime
58697
-
58698
- """
58699
- A list of reactions grouped by content left on the subject.
58700
- """
58701
- reactionGroups: [ReactionGroup!]
58702
-
58703
- """
58704
- A list of Reactions left on the Issue.
58705
- """
58706
- reactions(
58707
- """
58708
- Returns the elements in the list that come after the specified cursor.
58709
- """
58710
- after: String
58711
-
58712
- """
58713
- Returns the elements in the list that come before the specified cursor.
58714
- """
58715
- before: String
58716
-
58717
- """
58718
- Allows filtering Reactions by emoji.
58719
- """
58720
- content: ReactionContent
58721
-
58722
- """
58723
- Returns the first _n_ elements from the list.
58724
- """
58725
- first: Int
58726
-
58727
- """
58728
- Returns the last _n_ elements from the list.
58729
- """
58730
- last: Int
58731
-
58732
- """
58733
- Allows specifying the order in which reactions are returned.
58734
- """
58735
- orderBy: ReactionOrder
58736
- ): ReactionConnection!
58737
-
58738
- """
58739
- The HTTP path for this comment
58740
- """
58741
- resourcePath: URI! @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.")
58742
-
58743
- """
58744
- Identifies the date and time when the object was last updated.
58745
- """
58746
- updatedAt: DateTime!
58747
-
58748
- """
58749
- The HTTP URL for this comment
58750
- """
58751
- url: URI! @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.")
58752
-
58753
- """
58754
- A list of edits to this content.
58755
- """
58756
- userContentEdits(
58757
- """
58758
- Returns the elements in the list that come after the specified cursor.
58759
- """
58760
- after: String
58761
-
58762
- """
58763
- Returns the elements in the list that come before the specified cursor.
58764
- """
58765
- before: String
58766
-
58767
- """
58768
- Returns the first _n_ elements from the list.
58769
- """
58770
- first: Int
58771
-
58772
- """
58773
- Returns the last _n_ elements from the list.
58774
- """
58775
- last: Int
58776
- ): UserContentEditConnection
58777
-
58778
- """
58779
- Check if the current viewer can delete this object.
58780
- """
58781
- viewerCanDelete: Boolean!
58782
-
58783
- """
58784
- Can user react to this subject
58785
- """
58786
- viewerCanReact: Boolean!
58787
-
58788
- """
58789
- Check if the current viewer can update this object.
58790
- """
58791
- viewerCanUpdate: Boolean!
58792
-
58793
- """
58794
- Reasons why the current viewer can not update this comment.
58795
- """
58796
- viewerCannotUpdateReasons: [CommentCannotUpdateReason!]!
58797
-
58798
- """
58799
- Did the viewer author this comment.
58800
- """
58801
- viewerDidAuthor: Boolean!
58802
- }
58803
-
58804
- """
58805
- The connection type for TeamDiscussionComment.
58806
- """
58807
- type TeamDiscussionCommentConnection {
58808
- """
58809
- A list of edges.
58810
- """
58811
- edges: [TeamDiscussionCommentEdge]
58812
-
58813
- """
58814
- A list of nodes.
58815
- """
58816
- nodes: [TeamDiscussionComment]
58817
-
58818
- """
58819
- Information to aid in pagination.
58820
- """
58821
- pageInfo: PageInfo!
58822
-
58823
- """
58824
- Identifies the total count of items in the connection.
58825
- """
58826
- totalCount: Int!
58827
- }
58828
-
58829
- """
58830
- An edge in a connection.
58831
- """
58832
- type TeamDiscussionCommentEdge {
58833
- """
58834
- A cursor for use in pagination.
58835
- """
58836
- cursor: String!
58837
-
58838
- """
58839
- The item at the end of the edge.
58840
- """
58841
- node: TeamDiscussionComment
58842
- }
58843
-
58844
- """
58845
- Ways in which team discussion comment connections can be ordered.
58846
- """
58847
- input TeamDiscussionCommentOrder {
58848
- """
58849
- The direction in which to order nodes.
58850
- """
58851
- direction: OrderDirection!
58852
-
58853
- """
58854
- The field by which to order nodes.
58855
- """
58856
- field: TeamDiscussionCommentOrderField!
58857
- }
58858
-
58859
- """
58860
- Properties by which team discussion comment connections can be ordered.
58861
- """
58862
- enum TeamDiscussionCommentOrderField {
58863
- """
58864
- Allows sequential ordering of team discussion comments (which is equivalent to chronological ordering).
58865
- """
58866
- NUMBER
58867
- }
58868
-
58869
58477
  """
58870
58478
  The connection type for TeamDiscussion.
58871
58479
  """
@@ -63610,46 +63218,6 @@ type UpdateSubscriptionPayload {
63610
63218
  subscribable: Subscribable
63611
63219
  }
63612
63220
 
63613
- """
63614
- Autogenerated input type of UpdateTeamDiscussionComment
63615
- """
63616
- input UpdateTeamDiscussionCommentInput {
63617
- """
63618
- The updated text of the comment.
63619
- """
63620
- body: String!
63621
-
63622
- """
63623
- The current version of the body content.
63624
- """
63625
- bodyVersion: String
63626
-
63627
- """
63628
- A unique identifier for the client performing the mutation.
63629
- """
63630
- clientMutationId: String
63631
-
63632
- """
63633
- The ID of the comment to modify.
63634
- """
63635
- id: ID!
63636
- }
63637
-
63638
- """
63639
- Autogenerated return type of UpdateTeamDiscussionComment.
63640
- """
63641
- type UpdateTeamDiscussionCommentPayload {
63642
- """
63643
- A unique identifier for the client performing the mutation.
63644
- """
63645
- clientMutationId: String
63646
-
63647
- """
63648
- The updated comment.
63649
- """
63650
- teamDiscussionComment: TeamDiscussionComment
63651
- }
63652
-
63653
63221
  """
63654
63222
  Autogenerated input type of UpdateTeamDiscussion
63655
63223
  """
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github-schema",
3
- "version": "1.21.10",
3
+ "version": "1.22.0",
4
4
  "description": "GitHub's GraphQL schema",
5
5
  "type": "module",
6
6
  "author": {
@@ -55,14 +55,14 @@
55
55
  },
56
56
  "devDependencies": {
57
57
  "@graphql-codegen/add": "6.0.0",
58
- "@graphql-codegen/cli": "6.0.2",
59
- "@graphql-codegen/typescript": "5.0.4",
58
+ "@graphql-codegen/cli": "6.1.0",
59
+ "@graphql-codegen/typescript": "5.0.6",
60
60
  "@luxass/eslint-config": "6.0.3",
61
- "@types/node": "24.10.0",
62
- "eslint": "9.39.1",
63
- "eslint-plugin-format": "1.0.2",
64
- "publint": "0.3.15",
65
- "tsdown": "0.16.5",
61
+ "@types/node": "24.10.4",
62
+ "eslint": "9.39.2",
63
+ "eslint-plugin-format": "1.1.0",
64
+ "publint": "0.3.16",
65
+ "tsdown": "0.18.1",
66
66
  "typescript": "5.9.3"
67
67
  },
68
68
  "scripts": {