@octokit/webhooks 6.2.1 → 6.2.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.
Files changed (2) hide show
  1. package/index.d.ts +405 -206
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -79,6 +79,7 @@ declare namespace Webhooks {
79
79
  description: string;
80
80
  privacy: string;
81
81
  url: string;
82
+ html_url: string;
82
83
  members_url: string;
83
84
  repositories_url: string;
84
85
  permission: string;
@@ -136,6 +137,7 @@ declare namespace Webhooks {
136
137
  description: string;
137
138
  privacy: string;
138
139
  url: string;
140
+ html_url: string;
139
141
  members_url: string;
140
142
  repositories_url: string;
141
143
  permission: string;
@@ -171,6 +173,7 @@ declare namespace Webhooks {
171
173
  type WebhookPayloadStatusBranchesItem = {
172
174
  name: string;
173
175
  commit: WebhookPayloadStatusBranchesItemCommit;
176
+ protected: boolean;
174
177
  };
175
178
  type WebhookPayloadStatusCommitCommitter = {
176
179
  login: string;
@@ -332,7 +335,7 @@ declare namespace Webhooks {
332
335
  action: string;
333
336
  security_advisory: WebhookPayloadSecurityAdvisorySecurityAdvisory;
334
337
  };
335
- type WebhookPayloadRepositoryVulnerabilityAlertAlertDismisser = {
338
+ type WebhookPayloadRepositoryVulnerabilityAlertSender = {
336
339
  login: string;
337
340
  id: number;
338
341
  node_id: string;
@@ -359,13 +362,12 @@ declare namespace Webhooks {
359
362
  external_reference: string;
360
363
  external_identifier: string;
361
364
  fixed_in: string;
362
- dismisser: WebhookPayloadRepositoryVulnerabilityAlertAlertDismisser;
363
- dismiss_reason: string;
364
- dismissed_at: string;
365
365
  };
366
366
  type WebhookPayloadRepositoryVulnerabilityAlert = {
367
367
  action: string;
368
368
  alert: WebhookPayloadRepositoryVulnerabilityAlertAlert;
369
+ repository: PayloadRepository;
370
+ sender: WebhookPayloadRepositoryVulnerabilityAlertSender;
369
371
  };
370
372
  type WebhookPayloadRepositoryImportSender = {
371
373
  login: string;
@@ -498,27 +500,7 @@ declare namespace Webhooks {
498
500
  repository: PayloadRepository;
499
501
  sender: WebhookPayloadReleaseSender;
500
502
  };
501
- type WebhookPayloadRegistryPackagePayloadSender = {
502
- login: string;
503
- id: number;
504
- node_id: string;
505
- avatar_url: string;
506
- gravatar_id: string;
507
- url: string;
508
- html_url: string;
509
- followers_url: string;
510
- following_url: string;
511
- gists_url: string;
512
- starred_url: string;
513
- subscriptions_url: string;
514
- organizations_url: string;
515
- repos_url: string;
516
- events_url: string;
517
- received_events_url: string;
518
- type: string;
519
- site_admin: boolean;
520
- };
521
- type WebhookPayloadRegistryPackagePayloadRepositoryOwner = {
503
+ type WebhookPayloadRegistryPackageSender = {
522
504
  login: string;
523
505
  id: number;
524
506
  node_id: string;
@@ -538,89 +520,14 @@ declare namespace Webhooks {
538
520
  type: string;
539
521
  site_admin: boolean;
540
522
  };
541
- type WebhookPayloadRegistryPackagePayloadRepository = {
542
- id: number;
543
- node_id: string;
544
- name: string;
545
- full_name: string;
546
- private: boolean;
547
- owner: WebhookPayloadRegistryPackagePayloadRepositoryOwner;
548
- html_url: string;
549
- description: null;
550
- fork: boolean;
551
- url: string;
552
- forks_url: string;
553
- keys_url: string;
554
- collaborators_url: string;
555
- teams_url: string;
556
- hooks_url: string;
557
- issue_events_url: string;
558
- events_url: string;
559
- assignees_url: string;
560
- branches_url: string;
561
- tags_url: string;
562
- blobs_url: string;
563
- git_tags_url: string;
564
- git_refs_url: string;
565
- trees_url: string;
566
- statuses_url: string;
567
- languages_url: string;
568
- stargazers_url: string;
569
- contributors_url: string;
570
- subscribers_url: string;
571
- subscription_url: string;
572
- commits_url: string;
573
- git_commits_url: string;
574
- comments_url: string;
575
- issue_comment_url: string;
576
- contents_url: string;
577
- compare_url: string;
578
- merges_url: string;
579
- archive_url: string;
580
- downloads_url: string;
581
- issues_url: string;
582
- pulls_url: string;
583
- milestones_url: string;
584
- notifications_url: string;
585
- labels_url: string;
586
- releases_url: string;
587
- deployments_url: string;
588
- created_at: string;
589
- updated_at: string;
590
- pushed_at: string;
591
- git_url: string;
592
- ssh_url: string;
593
- clone_url: string;
594
- svn_url: string;
595
- homepage: null;
596
- size: number;
597
- stargazers_count: number;
598
- watchers_count: number;
599
- language: string;
600
- has_issues: boolean;
601
- has_projects: boolean;
602
- has_downloads: boolean;
603
- has_wiki: boolean;
604
- has_pages: boolean;
605
- forks_count: number;
606
- mirror_url: null;
607
- archived: boolean;
608
- disabled: boolean;
609
- open_issues_count: number;
610
- license: null;
611
- forks: number;
612
- open_issues: number;
613
- watchers: number;
614
- default_branch: string;
615
- };
616
- type WebhookPayloadRegistryPackagePayloadRegistryPackageRegistry = {
523
+ type WebhookPayloadRegistryPackageRegistryPackageRegistry = {
617
524
  about_url: string;
618
525
  name: string;
619
526
  type: string;
620
527
  url: string;
621
528
  vendor: string;
622
529
  };
623
- type WebhookPayloadRegistryPackagePayloadRegistryPackagePackageVersionAuthor = {
530
+ type WebhookPayloadRegistryPackageRegistryPackagePackageVersionAuthor = {
624
531
  login: string;
625
532
  id: number;
626
533
  node_id: string;
@@ -640,7 +547,7 @@ declare namespace Webhooks {
640
547
  type: string;
641
548
  site_admin: boolean;
642
549
  };
643
- type WebhookPayloadRegistryPackagePayloadRegistryPackagePackageVersionPackageFilesItem = {
550
+ type WebhookPayloadRegistryPackageRegistryPackagePackageVersionPackageFilesItem = {
644
551
  download_url: string;
645
552
  id: number;
646
553
  name: string;
@@ -653,7 +560,7 @@ declare namespace Webhooks {
653
560
  created_at: string;
654
561
  updated_at: string;
655
562
  };
656
- type WebhookPayloadRegistryPackagePayloadRegistryPackagePackageVersionReleaseAuthor = {
563
+ type WebhookPayloadRegistryPackageRegistryPackagePackageVersionReleaseAuthor = {
657
564
  login: string;
658
565
  id: number;
659
566
  node_id: string;
@@ -673,7 +580,7 @@ declare namespace Webhooks {
673
580
  type: string;
674
581
  site_admin: boolean;
675
582
  };
676
- type WebhookPayloadRegistryPackagePayloadRegistryPackagePackageVersionRelease = {
583
+ type WebhookPayloadRegistryPackageRegistryPackagePackageVersionRelease = {
677
584
  url: string;
678
585
  html_url: string;
679
586
  id: number;
@@ -681,18 +588,18 @@ declare namespace Webhooks {
681
588
  target_commitish: string;
682
589
  name: string;
683
590
  draft: boolean;
684
- author: WebhookPayloadRegistryPackagePayloadRegistryPackagePackageVersionReleaseAuthor;
591
+ author: WebhookPayloadRegistryPackageRegistryPackagePackageVersionReleaseAuthor;
685
592
  prerelease: boolean;
686
593
  created_at: string;
687
594
  published_at: string;
688
595
  };
689
- type WebhookPayloadRegistryPackagePayloadRegistryPackagePackageVersion = {
596
+ type WebhookPayloadRegistryPackageRegistryPackagePackageVersion = {
690
597
  id: number;
691
598
  version: string;
692
599
  summary: string;
693
600
  body: string;
694
601
  body_html: string;
695
- release: WebhookPayloadRegistryPackagePayloadRegistryPackagePackageVersionRelease;
602
+ release: WebhookPayloadRegistryPackageRegistryPackagePackageVersionRelease;
696
603
  manifest: string;
697
604
  html_url: string;
698
605
  tag_name: string;
@@ -704,12 +611,12 @@ declare namespace Webhooks {
704
611
  updated_at: string;
705
612
  metadata: Array<any>;
706
613
  package_files: Array<
707
- WebhookPayloadRegistryPackagePayloadRegistryPackagePackageVersionPackageFilesItem
614
+ WebhookPayloadRegistryPackageRegistryPackagePackageVersionPackageFilesItem
708
615
  >;
709
- author: WebhookPayloadRegistryPackagePayloadRegistryPackagePackageVersionAuthor;
616
+ author: WebhookPayloadRegistryPackageRegistryPackagePackageVersionAuthor;
710
617
  installation_command: string;
711
618
  };
712
- type WebhookPayloadRegistryPackagePayloadRegistryPackageOwner = {
619
+ type WebhookPayloadRegistryPackageRegistryPackageOwner = {
713
620
  login: string;
714
621
  id: number;
715
622
  node_id: string;
@@ -729,26 +636,22 @@ declare namespace Webhooks {
729
636
  type: string;
730
637
  site_admin: boolean;
731
638
  };
732
- type WebhookPayloadRegistryPackagePayloadRegistryPackage = {
639
+ type WebhookPayloadRegistryPackageRegistryPackage = {
733
640
  id: number;
734
641
  name: string;
735
642
  package_type: string;
736
643
  html_url: string;
737
644
  created_at: string;
738
645
  updated_at: string;
739
- owner: WebhookPayloadRegistryPackagePayloadRegistryPackageOwner;
740
- package_version: WebhookPayloadRegistryPackagePayloadRegistryPackagePackageVersion;
741
- registry: WebhookPayloadRegistryPackagePayloadRegistryPackageRegistry;
742
- };
743
- type WebhookPayloadRegistryPackagePayload = {
744
- action: string;
745
- registry_package: WebhookPayloadRegistryPackagePayloadRegistryPackage;
746
- repository: WebhookPayloadRegistryPackagePayloadRepository;
747
- sender: WebhookPayloadRegistryPackagePayloadSender;
646
+ owner: WebhookPayloadRegistryPackageRegistryPackageOwner;
647
+ package_version: WebhookPayloadRegistryPackageRegistryPackagePackageVersion;
648
+ registry: WebhookPayloadRegistryPackageRegistryPackageRegistry;
748
649
  };
749
650
  type WebhookPayloadRegistryPackage = {
750
- event: string;
751
- payload: WebhookPayloadRegistryPackagePayload;
651
+ action: string;
652
+ registry_package: WebhookPayloadRegistryPackageRegistryPackage;
653
+ repository: PayloadRepository;
654
+ sender: WebhookPayloadRegistryPackageSender;
752
655
  };
753
656
  type WebhookPayloadPushSender = {
754
657
  login: string;
@@ -865,8 +768,8 @@ declare namespace Webhooks {
865
768
  node_id: string;
866
769
  name: string;
867
770
  full_name: string;
868
- owner: WebhookPayloadPullRequestReviewCommentPullRequestBaseRepoOwner;
869
771
  private: boolean;
772
+ owner: WebhookPayloadPullRequestReviewCommentPullRequestBaseRepoOwner;
870
773
  html_url: string;
871
774
  description: null;
872
775
  fork: boolean;
@@ -918,7 +821,7 @@ declare namespace Webhooks {
918
821
  size: number;
919
822
  stargazers_count: number;
920
823
  watchers_count: number;
921
- language: null;
824
+ language: string;
922
825
  has_issues: boolean;
923
826
  has_projects: boolean;
924
827
  has_downloads: boolean;
@@ -927,6 +830,7 @@ declare namespace Webhooks {
927
830
  forks_count: number;
928
831
  mirror_url: null;
929
832
  archived: boolean;
833
+ disabled: boolean;
930
834
  open_issues_count: number;
931
835
  license: null;
932
836
  forks: number;
@@ -986,8 +890,8 @@ declare namespace Webhooks {
986
890
  node_id: string;
987
891
  name: string;
988
892
  full_name: string;
989
- owner: WebhookPayloadPullRequestReviewCommentPullRequestHeadRepoOwner;
990
893
  private: boolean;
894
+ owner: WebhookPayloadPullRequestReviewCommentPullRequestHeadRepoOwner;
991
895
  html_url: string;
992
896
  description: null;
993
897
  fork: boolean;
@@ -1039,7 +943,7 @@ declare namespace Webhooks {
1039
943
  size: number;
1040
944
  stargazers_count: number;
1041
945
  watchers_count: number;
1042
- language: null;
946
+ language: string;
1043
947
  has_issues: boolean;
1044
948
  has_projects: boolean;
1045
949
  has_downloads: boolean;
@@ -1048,6 +952,7 @@ declare namespace Webhooks {
1048
952
  forks_count: number;
1049
953
  mirror_url: null;
1050
954
  archived: boolean;
955
+ disabled: boolean;
1051
956
  open_issues_count: number;
1052
957
  license: null;
1053
958
  forks: number;
@@ -1271,8 +1176,8 @@ declare namespace Webhooks {
1271
1176
  node_id: string;
1272
1177
  name: string;
1273
1178
  full_name: string;
1274
- owner: WebhookPayloadPullRequestReviewPullRequestBaseRepoOwner;
1275
1179
  private: boolean;
1180
+ owner: WebhookPayloadPullRequestReviewPullRequestBaseRepoOwner;
1276
1181
  html_url: string;
1277
1182
  description: null;
1278
1183
  fork: boolean;
@@ -1324,7 +1229,7 @@ declare namespace Webhooks {
1324
1229
  size: number;
1325
1230
  stargazers_count: number;
1326
1231
  watchers_count: number;
1327
- language: null;
1232
+ language: string;
1328
1233
  has_issues: boolean;
1329
1234
  has_projects: boolean;
1330
1235
  has_downloads: boolean;
@@ -1333,6 +1238,7 @@ declare namespace Webhooks {
1333
1238
  forks_count: number;
1334
1239
  mirror_url: null;
1335
1240
  archived: boolean;
1241
+ disabled: boolean;
1336
1242
  open_issues_count: number;
1337
1243
  license: null;
1338
1244
  forks: number;
@@ -1392,8 +1298,8 @@ declare namespace Webhooks {
1392
1298
  node_id: string;
1393
1299
  name: string;
1394
1300
  full_name: string;
1395
- owner: WebhookPayloadPullRequestReviewPullRequestHeadRepoOwner;
1396
1301
  private: boolean;
1302
+ owner: WebhookPayloadPullRequestReviewPullRequestHeadRepoOwner;
1397
1303
  html_url: string;
1398
1304
  description: null;
1399
1305
  fork: boolean;
@@ -1445,7 +1351,7 @@ declare namespace Webhooks {
1445
1351
  size: number;
1446
1352
  stargazers_count: number;
1447
1353
  watchers_count: number;
1448
- language: null;
1354
+ language: string;
1449
1355
  has_issues: boolean;
1450
1356
  has_projects: boolean;
1451
1357
  has_downloads: boolean;
@@ -1454,6 +1360,7 @@ declare namespace Webhooks {
1454
1360
  forks_count: number;
1455
1361
  mirror_url: null;
1456
1362
  archived: boolean;
1363
+ disabled: boolean;
1457
1364
  open_issues_count: number;
1458
1365
  license: null;
1459
1366
  forks: number;
@@ -1656,8 +1563,8 @@ declare namespace Webhooks {
1656
1563
  node_id: string;
1657
1564
  name: string;
1658
1565
  full_name: string;
1659
- owner: WebhookPayloadPullRequestPullRequestBaseRepoOwner;
1660
1566
  private: boolean;
1567
+ owner: WebhookPayloadPullRequestPullRequestBaseRepoOwner;
1661
1568
  html_url: string;
1662
1569
  description: null;
1663
1570
  fork: boolean;
@@ -1718,6 +1625,7 @@ declare namespace Webhooks {
1718
1625
  forks_count: number;
1719
1626
  mirror_url: null;
1720
1627
  archived: boolean;
1628
+ disabled: boolean;
1721
1629
  open_issues_count: number;
1722
1630
  license: null;
1723
1631
  forks: number;
@@ -1777,8 +1685,8 @@ declare namespace Webhooks {
1777
1685
  node_id: string;
1778
1686
  name: string;
1779
1687
  full_name: string;
1780
- owner: WebhookPayloadPullRequestPullRequestHeadRepoOwner;
1781
1688
  private: boolean;
1689
+ owner: WebhookPayloadPullRequestPullRequestHeadRepoOwner;
1782
1690
  html_url: string;
1783
1691
  description: null;
1784
1692
  fork: boolean;
@@ -1839,6 +1747,7 @@ declare namespace Webhooks {
1839
1747
  forks_count: number;
1840
1748
  mirror_url: null;
1841
1749
  archived: boolean;
1750
+ disabled: boolean;
1842
1751
  open_issues_count: number;
1843
1752
  license: null;
1844
1753
  forks: number;
@@ -1909,9 +1818,9 @@ declare namespace Webhooks {
1909
1818
  body: string;
1910
1819
  created_at: string;
1911
1820
  updated_at: string;
1912
- closed_at: string;
1821
+ closed_at: null;
1913
1822
  merged_at: null;
1914
- merge_commit_sha: string;
1823
+ merge_commit_sha: null;
1915
1824
  assignee: null;
1916
1825
  assignees: Array<any>;
1917
1826
  requested_reviewers: Array<any>;
@@ -1927,10 +1836,10 @@ declare namespace Webhooks {
1927
1836
  base: WebhookPayloadPullRequestPullRequestBase;
1928
1837
  _links: WebhookPayloadPullRequestPullRequestLinks;
1929
1838
  author_association: string;
1930
- merged: boolean;
1931
1839
  draft: boolean;
1932
- mergeable: boolean;
1933
- rebaseable: boolean;
1840
+ merged: boolean;
1841
+ mergeable: null;
1842
+ rebaseable: null;
1934
1843
  mergeable_state: string;
1935
1844
  merged_by: null;
1936
1845
  comments: number;
@@ -2117,6 +2026,7 @@ declare namespace Webhooks {
2117
2026
  id: number;
2118
2027
  node_id: string;
2119
2028
  note: string;
2029
+ archived: boolean;
2120
2030
  creator: WebhookPayloadProjectCardProjectCardCreator;
2121
2031
  created_at: string;
2122
2032
  updated_at: string;
@@ -2439,6 +2349,7 @@ declare namespace Webhooks {
2439
2349
  description: string;
2440
2350
  privacy: string;
2441
2351
  url: string;
2352
+ html_url: string;
2442
2353
  members_url: string;
2443
2354
  repositories_url: string;
2444
2355
  permission: string;
@@ -2511,10 +2422,6 @@ declare namespace Webhooks {
2511
2422
  type: string;
2512
2423
  site_admin: boolean;
2513
2424
  };
2514
- type WebhookPayloadMemberChangesPermission = { from: string };
2515
- type WebhookPayloadMemberChanges = {
2516
- permission: WebhookPayloadMemberChangesPermission;
2517
- };
2518
2425
  type WebhookPayloadMemberMember = {
2519
2426
  login: string;
2520
2427
  id: number;
@@ -2538,7 +2445,6 @@ declare namespace Webhooks {
2538
2445
  type WebhookPayloadMember = {
2539
2446
  action: string;
2540
2447
  member: WebhookPayloadMemberMember;
2541
- changes: WebhookPayloadMemberChanges;
2542
2448
  repository: PayloadRepository;
2543
2449
  sender: WebhookPayloadMemberSender;
2544
2450
  };
@@ -2649,6 +2555,84 @@ declare namespace Webhooks {
2649
2555
  site_admin: boolean;
2650
2556
  };
2651
2557
  type WebhookPayloadIssuesChanges = {};
2558
+ type WebhookPayloadIssuesIssueMilestoneCreator = {
2559
+ login: string;
2560
+ id: number;
2561
+ node_id: string;
2562
+ avatar_url: string;
2563
+ gravatar_id: string;
2564
+ url: string;
2565
+ html_url: string;
2566
+ followers_url: string;
2567
+ following_url: string;
2568
+ gists_url: string;
2569
+ starred_url: string;
2570
+ subscriptions_url: string;
2571
+ organizations_url: string;
2572
+ repos_url: string;
2573
+ events_url: string;
2574
+ received_events_url: string;
2575
+ type: string;
2576
+ site_admin: boolean;
2577
+ };
2578
+ type WebhookPayloadIssuesIssueMilestone = {
2579
+ url: string;
2580
+ html_url: string;
2581
+ labels_url: string;
2582
+ id: number;
2583
+ node_id: string;
2584
+ number: number;
2585
+ title: string;
2586
+ description: string;
2587
+ creator: WebhookPayloadIssuesIssueMilestoneCreator;
2588
+ open_issues: number;
2589
+ closed_issues: number;
2590
+ state: string;
2591
+ created_at: string;
2592
+ updated_at: string;
2593
+ due_on: string;
2594
+ closed_at: string;
2595
+ };
2596
+ type WebhookPayloadIssuesIssueAssigneesItem = {
2597
+ login: string;
2598
+ id: number;
2599
+ node_id: string;
2600
+ avatar_url: string;
2601
+ gravatar_id: string;
2602
+ url: string;
2603
+ html_url: string;
2604
+ followers_url: string;
2605
+ following_url: string;
2606
+ gists_url: string;
2607
+ starred_url: string;
2608
+ subscriptions_url: string;
2609
+ organizations_url: string;
2610
+ repos_url: string;
2611
+ events_url: string;
2612
+ received_events_url: string;
2613
+ type: string;
2614
+ site_admin: boolean;
2615
+ };
2616
+ type WebhookPayloadIssuesIssueAssignee = {
2617
+ login: string;
2618
+ id: number;
2619
+ node_id: string;
2620
+ avatar_url: string;
2621
+ gravatar_id: string;
2622
+ url: string;
2623
+ html_url: string;
2624
+ followers_url: string;
2625
+ following_url: string;
2626
+ gists_url: string;
2627
+ starred_url: string;
2628
+ subscriptions_url: string;
2629
+ organizations_url: string;
2630
+ repos_url: string;
2631
+ events_url: string;
2632
+ received_events_url: string;
2633
+ type: string;
2634
+ site_admin: boolean;
2635
+ };
2652
2636
  type WebhookPayloadIssuesIssueLabelsItem = {
2653
2637
  id: number;
2654
2638
  node_id: string;
@@ -2692,9 +2676,9 @@ declare namespace Webhooks {
2692
2676
  labels: Array<WebhookPayloadIssuesIssueLabelsItem>;
2693
2677
  state: string;
2694
2678
  locked: boolean;
2695
- assignee: null;
2696
- assignees: Array<any>;
2697
- milestone: null;
2679
+ assignee: WebhookPayloadIssuesIssueAssignee;
2680
+ assignees: Array<WebhookPayloadIssuesIssueAssigneesItem>;
2681
+ milestone: WebhookPayloadIssuesIssueMilestone;
2698
2682
  comments: number;
2699
2683
  created_at: string;
2700
2684
  updated_at: string;
@@ -2761,6 +2745,84 @@ declare namespace Webhooks {
2761
2745
  author_association: string;
2762
2746
  body: string;
2763
2747
  };
2748
+ type WebhookPayloadIssueCommentIssueMilestoneCreator = {
2749
+ login: string;
2750
+ id: number;
2751
+ node_id: string;
2752
+ avatar_url: string;
2753
+ gravatar_id: string;
2754
+ url: string;
2755
+ html_url: string;
2756
+ followers_url: string;
2757
+ following_url: string;
2758
+ gists_url: string;
2759
+ starred_url: string;
2760
+ subscriptions_url: string;
2761
+ organizations_url: string;
2762
+ repos_url: string;
2763
+ events_url: string;
2764
+ received_events_url: string;
2765
+ type: string;
2766
+ site_admin: boolean;
2767
+ };
2768
+ type WebhookPayloadIssueCommentIssueMilestone = {
2769
+ url: string;
2770
+ html_url: string;
2771
+ labels_url: string;
2772
+ id: number;
2773
+ node_id: string;
2774
+ number: number;
2775
+ title: string;
2776
+ description: string;
2777
+ creator: WebhookPayloadIssueCommentIssueMilestoneCreator;
2778
+ open_issues: number;
2779
+ closed_issues: number;
2780
+ state: string;
2781
+ created_at: string;
2782
+ updated_at: string;
2783
+ due_on: string;
2784
+ closed_at: string;
2785
+ };
2786
+ type WebhookPayloadIssueCommentIssueAssigneesItem = {
2787
+ login: string;
2788
+ id: number;
2789
+ node_id: string;
2790
+ avatar_url: string;
2791
+ gravatar_id: string;
2792
+ url: string;
2793
+ html_url: string;
2794
+ followers_url: string;
2795
+ following_url: string;
2796
+ gists_url: string;
2797
+ starred_url: string;
2798
+ subscriptions_url: string;
2799
+ organizations_url: string;
2800
+ repos_url: string;
2801
+ events_url: string;
2802
+ received_events_url: string;
2803
+ type: string;
2804
+ site_admin: boolean;
2805
+ };
2806
+ type WebhookPayloadIssueCommentIssueAssignee = {
2807
+ login: string;
2808
+ id: number;
2809
+ node_id: string;
2810
+ avatar_url: string;
2811
+ gravatar_id: string;
2812
+ url: string;
2813
+ html_url: string;
2814
+ followers_url: string;
2815
+ following_url: string;
2816
+ gists_url: string;
2817
+ starred_url: string;
2818
+ subscriptions_url: string;
2819
+ organizations_url: string;
2820
+ repos_url: string;
2821
+ events_url: string;
2822
+ received_events_url: string;
2823
+ type: string;
2824
+ site_admin: boolean;
2825
+ };
2764
2826
  type WebhookPayloadIssueCommentIssueLabelsItem = {
2765
2827
  id: number;
2766
2828
  node_id: string;
@@ -2804,9 +2866,9 @@ declare namespace Webhooks {
2804
2866
  labels: Array<WebhookPayloadIssueCommentIssueLabelsItem>;
2805
2867
  state: string;
2806
2868
  locked: boolean;
2807
- assignee: null;
2808
- assignees: Array<any>;
2809
- milestone: null;
2869
+ assignee: WebhookPayloadIssueCommentIssueAssignee;
2870
+ assignees: Array<WebhookPayloadIssueCommentIssueAssigneesItem>;
2871
+ milestone: WebhookPayloadIssueCommentIssueMilestone;
2810
2872
  comments: number;
2811
2873
  created_at: string;
2812
2874
  updated_at: string;
@@ -2841,16 +2903,26 @@ declare namespace Webhooks {
2841
2903
  type: string;
2842
2904
  site_admin: boolean;
2843
2905
  };
2844
- type WebhookPayloadInstallationRepositoriesRepositoriesRemovedItem = {
2906
+ type WebhookPayloadInstallationRepositoriesRepositoriesAddedItem = {
2845
2907
  id: number;
2908
+ node_id: string;
2846
2909
  name: string;
2847
2910
  full_name: string;
2848
2911
  private: boolean;
2849
2912
  };
2850
2913
  type WebhookPayloadInstallationRepositoriesInstallationPermissions = {
2851
- metadata: string;
2852
- contents: string;
2914
+ administration: string;
2915
+ statuses: string;
2916
+ repository_projects: string;
2917
+ repository_hooks: string;
2918
+ pull_requests: string;
2919
+ pages: string;
2853
2920
  issues: string;
2921
+ deployments: string;
2922
+ contents: string;
2923
+ checks: string;
2924
+ metadata: string;
2925
+ vulnerability_alerts: string;
2854
2926
  };
2855
2927
  type WebhookPayloadInstallationRepositoriesInstallationAccount = {
2856
2928
  login: string;
@@ -2883,19 +2955,19 @@ declare namespace Webhooks {
2883
2955
  target_id: number;
2884
2956
  target_type: string;
2885
2957
  permissions: WebhookPayloadInstallationRepositoriesInstallationPermissions;
2886
- events: Array<string>;
2958
+ events: Array<any>;
2887
2959
  created_at: number;
2888
2960
  updated_at: number;
2889
- single_file_name: string;
2961
+ single_file_name: null;
2890
2962
  };
2891
2963
  type WebhookPayloadInstallationRepositories = {
2892
2964
  action: string;
2893
2965
  installation: WebhookPayloadInstallationRepositoriesInstallation;
2894
2966
  repository_selection: string;
2895
- repositories_added: Array<any>;
2896
- repositories_removed: Array<
2897
- WebhookPayloadInstallationRepositoriesRepositoriesRemovedItem
2967
+ repositories_added: Array<
2968
+ WebhookPayloadInstallationRepositoriesRepositoriesAddedItem
2898
2969
  >;
2970
+ repositories_removed: Array<any>;
2899
2971
  sender: WebhookPayloadInstallationRepositoriesSender;
2900
2972
  };
2901
2973
  type WebhookPayloadInstallationSender = {
@@ -3073,8 +3145,8 @@ declare namespace Webhooks {
3073
3145
  node_id: string;
3074
3146
  name: string;
3075
3147
  full_name: string;
3076
- owner: WebhookPayloadForkForkeeOwner;
3077
3148
  private: boolean;
3149
+ owner: WebhookPayloadForkForkeeOwner;
3078
3150
  html_url: string;
3079
3151
  description: null;
3080
3152
  fork: boolean;
@@ -3135,6 +3207,7 @@ declare namespace Webhooks {
3135
3207
  forks_count: number;
3136
3208
  mirror_url: null;
3137
3209
  archived: boolean;
3210
+ disabled: boolean;
3138
3211
  open_issues_count: number;
3139
3212
  license: null;
3140
3213
  forks: number;
@@ -3197,6 +3270,7 @@ declare namespace Webhooks {
3197
3270
  ref: string;
3198
3271
  task: string;
3199
3272
  payload: WebhookPayloadDeploymentStatusDeploymentPayload;
3273
+ original_environment: string;
3200
3274
  environment: string;
3201
3275
  description: null;
3202
3276
  creator: WebhookPayloadDeploymentStatusDeploymentCreator;
@@ -3232,6 +3306,7 @@ declare namespace Webhooks {
3232
3306
  state: string;
3233
3307
  creator: WebhookPayloadDeploymentStatusDeploymentStatusCreator;
3234
3308
  description: string;
3309
+ environment: string;
3235
3310
  target_url: string;
3236
3311
  created_at: string;
3237
3312
  updated_at: string;
@@ -3293,6 +3368,7 @@ declare namespace Webhooks {
3293
3368
  ref: string;
3294
3369
  task: string;
3295
3370
  payload: WebhookPayloadDeploymentDeploymentPayload;
3371
+ original_environment: string;
3296
3372
  environment: string;
3297
3373
  description: null;
3298
3374
  creator: WebhookPayloadDeploymentDeploymentCreator;
@@ -3494,7 +3570,6 @@ declare namespace Webhooks {
3494
3570
  repository: PayloadRepository;
3495
3571
  sender: WebhookPayloadCommitCommentSender;
3496
3572
  };
3497
- type WebhookPayloadCheckSuiteInstallation = { id: number };
3498
3573
  type WebhookPayloadCheckSuiteSender = {
3499
3574
  login: string;
3500
3575
  id: number;
@@ -3515,20 +3590,6 @@ declare namespace Webhooks {
3515
3590
  type: string;
3516
3591
  site_admin: boolean;
3517
3592
  };
3518
- type WebhookPayloadCheckSuiteOrganization = {
3519
- login: string;
3520
- id: number;
3521
- node_id: string;
3522
- url: string;
3523
- repos_url: string;
3524
- events_url: string;
3525
- hooks_url: string;
3526
- issues_url: string;
3527
- members_url: string;
3528
- public_members_url: string;
3529
- avatar_url: string;
3530
- description: string;
3531
- };
3532
3593
  type WebhookPayloadCheckSuiteCheckSuiteHeadCommitCommitter = {
3533
3594
  name: string;
3534
3595
  email: string;
@@ -3545,6 +3606,27 @@ declare namespace Webhooks {
3545
3606
  author: WebhookPayloadCheckSuiteCheckSuiteHeadCommitAuthor;
3546
3607
  committer: WebhookPayloadCheckSuiteCheckSuiteHeadCommitCommitter;
3547
3608
  };
3609
+ type WebhookPayloadCheckSuiteCheckSuiteAppPermissions = {
3610
+ administration: string;
3611
+ checks: string;
3612
+ contents: string;
3613
+ deployments: string;
3614
+ issues: string;
3615
+ members: string;
3616
+ metadata: string;
3617
+ organization_administration: string;
3618
+ organization_hooks: string;
3619
+ organization_plan: string;
3620
+ organization_projects: string;
3621
+ organization_user_blocking: string;
3622
+ pages: string;
3623
+ pull_requests: string;
3624
+ repository_hooks: string;
3625
+ repository_projects: string;
3626
+ statuses: string;
3627
+ team_discussions: string;
3628
+ vulnerability_alerts: string;
3629
+ };
3548
3630
  type WebhookPayloadCheckSuiteCheckSuiteAppOwner = {
3549
3631
  login: string;
3550
3632
  id: number;
@@ -3570,14 +3652,44 @@ declare namespace Webhooks {
3570
3652
  node_id: string;
3571
3653
  owner: WebhookPayloadCheckSuiteCheckSuiteAppOwner;
3572
3654
  name: string;
3573
- description: null;
3655
+ description: string;
3574
3656
  external_url: string;
3575
3657
  html_url: string;
3576
3658
  created_at: string;
3577
3659
  updated_at: string;
3660
+ permissions: WebhookPayloadCheckSuiteCheckSuiteAppPermissions;
3661
+ events: Array<any>;
3662
+ };
3663
+ type WebhookPayloadCheckSuiteCheckSuitePullRequestsItemBaseRepo = {
3664
+ id: number;
3665
+ url: string;
3666
+ name: string;
3667
+ };
3668
+ type WebhookPayloadCheckSuiteCheckSuitePullRequestsItemBase = {
3669
+ ref: string;
3670
+ sha: string;
3671
+ repo: WebhookPayloadCheckSuiteCheckSuitePullRequestsItemBaseRepo;
3672
+ };
3673
+ type WebhookPayloadCheckSuiteCheckSuitePullRequestsItemHeadRepo = {
3674
+ id: number;
3675
+ url: string;
3676
+ name: string;
3677
+ };
3678
+ type WebhookPayloadCheckSuiteCheckSuitePullRequestsItemHead = {
3679
+ ref: string;
3680
+ sha: string;
3681
+ repo: WebhookPayloadCheckSuiteCheckSuitePullRequestsItemHeadRepo;
3682
+ };
3683
+ type WebhookPayloadCheckSuiteCheckSuitePullRequestsItem = {
3684
+ url: string;
3685
+ id: number;
3686
+ number: number;
3687
+ head: WebhookPayloadCheckSuiteCheckSuitePullRequestsItemHead;
3688
+ base: WebhookPayloadCheckSuiteCheckSuitePullRequestsItemBase;
3578
3689
  };
3579
3690
  type WebhookPayloadCheckSuiteCheckSuite = {
3580
3691
  id: number;
3692
+ node_id: string;
3581
3693
  head_branch: string;
3582
3694
  head_sha: string;
3583
3695
  status: string;
@@ -3585,7 +3697,7 @@ declare namespace Webhooks {
3585
3697
  url: string;
3586
3698
  before: string;
3587
3699
  after: string;
3588
- pull_requests: Array<any>;
3700
+ pull_requests: Array<WebhookPayloadCheckSuiteCheckSuitePullRequestsItem>;
3589
3701
  app: WebhookPayloadCheckSuiteCheckSuiteApp;
3590
3702
  created_at: string;
3591
3703
  updated_at: string;
@@ -3597,11 +3709,8 @@ declare namespace Webhooks {
3597
3709
  action: string;
3598
3710
  check_suite: WebhookPayloadCheckSuiteCheckSuite;
3599
3711
  repository: PayloadRepository;
3600
- organization: WebhookPayloadCheckSuiteOrganization;
3601
3712
  sender: WebhookPayloadCheckSuiteSender;
3602
- installation: WebhookPayloadCheckSuiteInstallation;
3603
3713
  };
3604
- type WebhookPayloadCheckRunInstallation = { id: number };
3605
3714
  type WebhookPayloadCheckRunSender = {
3606
3715
  login: string;
3607
3716
  id: number;
@@ -3622,20 +3731,6 @@ declare namespace Webhooks {
3622
3731
  type: string;
3623
3732
  site_admin: boolean;
3624
3733
  };
3625
- type WebhookPayloadCheckRunOrganization = {
3626
- login: string;
3627
- id: number;
3628
- node_id: string;
3629
- url: string;
3630
- repos_url: string;
3631
- events_url: string;
3632
- hooks_url: string;
3633
- issues_url: string;
3634
- members_url: string;
3635
- public_members_url: string;
3636
- avatar_url: string;
3637
- description: string;
3638
- };
3639
3734
  type PayloadRepositoryOwner = {
3640
3735
  login: string;
3641
3736
  id: number;
@@ -3663,8 +3758,8 @@ declare namespace Webhooks {
3663
3758
  node_id: string;
3664
3759
  name: string;
3665
3760
  full_name: string;
3666
- owner: PayloadRepositoryOwner;
3667
3761
  private: boolean;
3762
+ owner: PayloadRepositoryOwner;
3668
3763
  html_url: string;
3669
3764
  description: null;
3670
3765
  fork: boolean;
@@ -3716,7 +3811,7 @@ declare namespace Webhooks {
3716
3811
  size: number;
3717
3812
  stargazers_count: number;
3718
3813
  watchers_count: number;
3719
- language: null;
3814
+ language: string | null;
3720
3815
  has_issues: boolean;
3721
3816
  has_projects: boolean;
3722
3817
  has_downloads: boolean;
@@ -3725,6 +3820,7 @@ declare namespace Webhooks {
3725
3820
  forks_count: number;
3726
3821
  mirror_url: null;
3727
3822
  archived: boolean;
3823
+ disabled?: boolean;
3728
3824
  open_issues_count: number;
3729
3825
  license: null;
3730
3826
  forks: number;
@@ -3735,6 +3831,54 @@ declare namespace Webhooks {
3735
3831
  master_branch?: string;
3736
3832
  permissions?: PayloadRepositoryPermissions;
3737
3833
  };
3834
+ type WebhookPayloadCheckRunCheckRunPullRequestsItemBaseRepo = {
3835
+ id: number;
3836
+ url: string;
3837
+ name: string;
3838
+ };
3839
+ type WebhookPayloadCheckRunCheckRunPullRequestsItemBase = {
3840
+ ref: string;
3841
+ sha: string;
3842
+ repo: WebhookPayloadCheckRunCheckRunPullRequestsItemBaseRepo;
3843
+ };
3844
+ type WebhookPayloadCheckRunCheckRunPullRequestsItemHeadRepo = {
3845
+ id: number;
3846
+ url: string;
3847
+ name: string;
3848
+ };
3849
+ type WebhookPayloadCheckRunCheckRunPullRequestsItemHead = {
3850
+ ref: string;
3851
+ sha: string;
3852
+ repo: WebhookPayloadCheckRunCheckRunPullRequestsItemHeadRepo;
3853
+ };
3854
+ type WebhookPayloadCheckRunCheckRunPullRequestsItem = {
3855
+ url: string;
3856
+ id: number;
3857
+ number: number;
3858
+ head: WebhookPayloadCheckRunCheckRunPullRequestsItemHead;
3859
+ base: WebhookPayloadCheckRunCheckRunPullRequestsItemBase;
3860
+ };
3861
+ type WebhookPayloadCheckRunCheckRunAppPermissions = {
3862
+ administration: string;
3863
+ checks: string;
3864
+ contents: string;
3865
+ deployments: string;
3866
+ issues: string;
3867
+ members: string;
3868
+ metadata: string;
3869
+ organization_administration: string;
3870
+ organization_hooks: string;
3871
+ organization_plan: string;
3872
+ organization_projects: string;
3873
+ organization_user_blocking: string;
3874
+ pages: string;
3875
+ pull_requests: string;
3876
+ repository_hooks: string;
3877
+ repository_projects: string;
3878
+ statuses: string;
3879
+ team_discussions: string;
3880
+ vulnerability_alerts: string;
3881
+ };
3738
3882
  type WebhookPayloadCheckRunCheckRunAppOwner = {
3739
3883
  login: string;
3740
3884
  id: number;
@@ -3760,11 +3904,34 @@ declare namespace Webhooks {
3760
3904
  node_id: string;
3761
3905
  owner: WebhookPayloadCheckRunCheckRunAppOwner;
3762
3906
  name: string;
3763
- description: null;
3907
+ description: string;
3764
3908
  external_url: string;
3765
3909
  html_url: string;
3766
3910
  created_at: string;
3767
3911
  updated_at: string;
3912
+ permissions: WebhookPayloadCheckRunCheckRunAppPermissions;
3913
+ events: Array<any>;
3914
+ };
3915
+ type WebhookPayloadCheckRunCheckRunCheckSuiteAppPermissions = {
3916
+ administration: string;
3917
+ checks: string;
3918
+ contents: string;
3919
+ deployments: string;
3920
+ issues: string;
3921
+ members: string;
3922
+ metadata: string;
3923
+ organization_administration: string;
3924
+ organization_hooks: string;
3925
+ organization_plan: string;
3926
+ organization_projects: string;
3927
+ organization_user_blocking: string;
3928
+ pages: string;
3929
+ pull_requests: string;
3930
+ repository_hooks: string;
3931
+ repository_projects: string;
3932
+ statuses: string;
3933
+ team_discussions: string;
3934
+ vulnerability_alerts: string;
3768
3935
  };
3769
3936
  type WebhookPayloadCheckRunCheckRunCheckSuiteAppOwner = {
3770
3937
  login: string;
@@ -3791,56 +3958,88 @@ declare namespace Webhooks {
3791
3958
  node_id: string;
3792
3959
  owner: WebhookPayloadCheckRunCheckRunCheckSuiteAppOwner;
3793
3960
  name: string;
3794
- description: null;
3961
+ description: string;
3795
3962
  external_url: string;
3796
3963
  html_url: string;
3797
3964
  created_at: string;
3798
3965
  updated_at: string;
3966
+ permissions: WebhookPayloadCheckRunCheckRunCheckSuiteAppPermissions;
3967
+ events: Array<any>;
3968
+ };
3969
+ type WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItemBaseRepo = {
3970
+ id: number;
3971
+ url: string;
3972
+ name: string;
3973
+ };
3974
+ type WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItemBase = {
3975
+ ref: string;
3976
+ sha: string;
3977
+ repo: WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItemBaseRepo;
3978
+ };
3979
+ type WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItemHeadRepo = {
3980
+ id: number;
3981
+ url: string;
3982
+ name: string;
3983
+ };
3984
+ type WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItemHead = {
3985
+ ref: string;
3986
+ sha: string;
3987
+ repo: WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItemHeadRepo;
3988
+ };
3989
+ type WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItem = {
3990
+ url: string;
3991
+ id: number;
3992
+ number: number;
3993
+ head: WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItemHead;
3994
+ base: WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItemBase;
3799
3995
  };
3800
3996
  type WebhookPayloadCheckRunCheckRunCheckSuite = {
3801
3997
  id: number;
3998
+ node_id: string;
3802
3999
  head_branch: string;
3803
4000
  head_sha: string;
3804
4001
  status: string;
3805
- conclusion: string;
4002
+ conclusion: null;
3806
4003
  url: string;
3807
4004
  before: string;
3808
4005
  after: string;
3809
- pull_requests: Array<any>;
4006
+ pull_requests: Array<
4007
+ WebhookPayloadCheckRunCheckRunCheckSuitePullRequestsItem
4008
+ >;
3810
4009
  app: WebhookPayloadCheckRunCheckRunCheckSuiteApp;
3811
4010
  created_at: string;
3812
4011
  updated_at: string;
3813
4012
  };
3814
4013
  type WebhookPayloadCheckRunCheckRunOutput = {
3815
- title: string;
3816
- summary: string;
3817
- text: string;
4014
+ title: null;
4015
+ summary: null;
4016
+ text: null;
3818
4017
  annotations_count: number;
3819
4018
  annotations_url: string;
3820
4019
  };
3821
4020
  type WebhookPayloadCheckRunCheckRun = {
3822
4021
  id: number;
4022
+ node_id: string;
3823
4023
  head_sha: string;
3824
4024
  external_id: string;
3825
4025
  url: string;
3826
4026
  html_url: string;
4027
+ details_url: string;
3827
4028
  status: string;
3828
- conclusion: string;
4029
+ conclusion: null;
3829
4030
  started_at: string;
3830
- completed_at: string;
4031
+ completed_at: null;
3831
4032
  output: WebhookPayloadCheckRunCheckRunOutput;
3832
4033
  name: string;
3833
4034
  check_suite: WebhookPayloadCheckRunCheckRunCheckSuite;
3834
4035
  app: WebhookPayloadCheckRunCheckRunApp;
3835
- pull_requests: Array<any>;
4036
+ pull_requests: Array<WebhookPayloadCheckRunCheckRunPullRequestsItem>;
3836
4037
  };
3837
4038
  type WebhookPayloadCheckRun = {
3838
4039
  action: string;
3839
4040
  check_run: WebhookPayloadCheckRunCheckRun;
3840
4041
  repository: PayloadRepository;
3841
- organization: WebhookPayloadCheckRunOrganization;
3842
4042
  sender: WebhookPayloadCheckRunSender;
3843
- installation: WebhookPayloadCheckRunInstallation;
3844
4043
  };
3845
4044
 
3846
4045
  interface WebhookEvent<T> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octokit/webhooks",
3
- "version": "6.2.1",
3
+ "version": "6.2.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "devDependencies": {
17
17
  "@gimenete/type-writer": "^0.1.3",
18
- "@octokit/webhooks-definitions": "1.4.1",
18
+ "@octokit/webhooks-definitions": "1.4.2",
19
19
  "axios": "^0.18.0",
20
20
  "cheerio": "^1.0.0-rc.2",
21
21
  "coveralls": "^3.0.3",
@@ -28,7 +28,7 @@
28
28
  "simple-mock": "^0.8.0",
29
29
  "standard": "^12.0.1",
30
30
  "table-builder": "^2.1.1",
31
- "tap": "^13.0.3"
31
+ "tap": "^14.0.0"
32
32
  },
33
33
  "scripts": {
34
34
  "coverage": "tap --coverage-report=html && open coverage/lcov-report/index.html",