@candriajs/git-neko-kit 0.8.5 → 0.8.6

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.d.ts CHANGED
@@ -1,6 +1,29 @@
1
1
  import { RawAxiosResponseHeaders, AxiosResponseHeaders } from 'axios';
2
2
  import { ExecException, exec } from 'child_process';
3
3
 
4
+ /**
5
+ * 获取本地仓库的默认分支
6
+ * @param local_path - 本地仓库路径
7
+ * @returns 默认分支名称
8
+ * @example
9
+ * ```ts
10
+ * console.log(await get_local_repo_default_branch('/path/to/repo'))
11
+ * -> 'main'
12
+ * ```
13
+ */
14
+ declare function get_local_repo_default_branch(local_path: string): Promise<string>;
15
+ /**
16
+ * 获取远程仓库的默认分支
17
+ * @param remote_url - 远程仓库URL
18
+ * @returns 默认分支名称
19
+ * @example
20
+ * ```ts
21
+ * console.log(await get_remote_repo_default_branch('https://github.com/CandriaJS/git-neko-kit'))
22
+ * -> 'main'
23
+ * ```
24
+ */
25
+ declare function get_remote_repo_default_branch(remote_url: string): Promise<string>;
26
+
4
27
  /** 代理地址类型 */
5
28
  type ProxyUrlType = string;
6
29
  /**
@@ -290,6 +313,228 @@ interface UserInfoResponseType {
290
313
  following: number;
291
314
  }
292
315
 
316
+ /** 仓库所有者参数类型 */
317
+ type RepoUser = Omit<UserInfoResponseType, 'followers' | 'following' | 'blog' | 'bio' | 'public_repos'>;
318
+ /** 仓库列表参数类型 */
319
+ interface RepoListBaseParamType {
320
+ /** 排序方式,可选created, updated, pushed, full_name, 默认为 full_name */
321
+ sort?: 'created' | 'updated' | 'pushed' | 'full_name';
322
+ /** 排序方式,可选asc, desc, 默认为 desc */
323
+ direction?: 'asc' | 'desc';
324
+ /** 每页数量 */
325
+ per_page?: number;
326
+ /** 页码 */
327
+ page?: number;
328
+ }
329
+ interface UserByTokenRepoListParamType extends RepoListBaseParamType {
330
+ /** 仓库的可见性,可选all, public, private, 默认为 all */
331
+ visibility?: 'all' | 'public' | 'private';
332
+ /** 仓库的状态,可选all, public, private, 默认为 all */
333
+ affiliation?: 'owner' | 'collaborator' | 'organization_member';
334
+ /** 类型,可选all, owner, member, 默认为 all */
335
+ type?: 'all' | 'owner' | 'member';
336
+ }
337
+ /** 仓库信息请求参数 */
338
+ type RepoInfoParamType = RepoBaseParamType;
339
+ /** * 仓库信息 */
340
+ interface RepoInfoResponseType {
341
+ /** * 仓库的唯一 ID */
342
+ id: number;
343
+ /** * 仓库的名称 */
344
+ name: string;
345
+ /** * 仓库的完整名称,包含用户名或组织名 */
346
+ full_name: string;
347
+ /** * 仓库拥有者的信息 */
348
+ owner: RepoUser;
349
+ /** 仓库是否公开 */
350
+ public: boolean;
351
+ /** * 仓库是否私有 */
352
+ private: boolean;
353
+ /** * 仓库的可见性 */
354
+ visibility: 'public' | 'private';
355
+ /** * 仓库是否是 fork 仓库 */
356
+ fork: boolean;
357
+ /** * 仓库是否已归档 */
358
+ archived: boolean;
359
+ /** * 仓库是否被禁用 */
360
+ disabled: boolean;
361
+ /** * 仓库的 HTML 页面 URL */
362
+ html_url: string;
363
+ /** * 仓库的描述信息 */
364
+ description: string | null;
365
+ /** * 仓库的 Stargazer 数量 */
366
+ stargazers_count: number;
367
+ /** * 仓库的 Watcher 数量 */
368
+ watchers_count: number;
369
+ /** * 仓库的主编程语言 */
370
+ language: string | null;
371
+ /** * 仓库的 fork 数量 */
372
+ forks_count: number;
373
+ /** * 开放的 issue 数量 */
374
+ open_issues_count: number;
375
+ /** * 仓库的默认分支 */
376
+ default_branch: string;
377
+ /** * 仓库的创建时间 */
378
+ created_at: string;
379
+ /** * 仓库的更新时间 */
380
+ updated_at: string;
381
+ /** * 仓库的推送时间 */
382
+ pushed_at: string;
383
+ }
384
+ /** 组织仓库列表参数类型 */
385
+ interface OrgRepoListParmType extends RepoListBaseParamType {
386
+ /** 组织名称 */
387
+ org: string;
388
+ /** 类型,可选all, public, private 默认为 all */
389
+ type?: 'all' | 'public' | 'private';
390
+ }
391
+ /**
392
+ * 组织仓库列表响应类型
393
+ * 该类型包含了多个仓库的信息,每个仓库都有自己的详细信息。
394
+ */
395
+ type OrgRepoListResponseType = RepoInfoResponseType[];
396
+ /** 创建组织仓库请求参数 */
397
+ interface OrgRepoCreateParamType extends OrgNameParamType {
398
+ /** 仓库名称 */
399
+ name: string;
400
+ /** 仓库描述 */
401
+ description?: string;
402
+ /** 仓库主页 */
403
+ homepage?: string;
404
+ /** 仓库可见性 */
405
+ visibility?: 'public' | 'private';
406
+ /** 是否开启议题issue */
407
+ has_issues?: boolean;
408
+ /** 是否开启wiki */
409
+ has_wiki?: boolean;
410
+ /** 仓库自动初始化 */
411
+ auto_init?: boolean;
412
+ }
413
+ /** 创建组织仓库响应类型 */
414
+ type OrgRepoCreateResponseType = RepoInfoResponseType;
415
+ /** 创建用户仓库参数类型 */
416
+ type UserRepoCreateParamType = Omit<OrgRepoCreateParamType, 'org'> & RepoOwnerParamType;
417
+ /** 创建用户仓库响应类型 */
418
+ type UserRepoCreateResponseType = RepoInfoResponseType;
419
+ /** 用户仓库列表参数类型 */
420
+ interface UserRepoListParamType extends RepoListBaseParamType {
421
+ /** 用户名 */
422
+ username: string;
423
+ /** 类型,可选all, owner, member, 默认为 all */
424
+ type?: 'all' | 'owner' | 'member';
425
+ }
426
+ /** 用户仓库列表类型 */
427
+ type UserRepoListType = Array<RepoInfoResponseType & {
428
+ /** * 仓库的角色名称 */
429
+ role_name?: string;
430
+ }>;
431
+ /** 仓库语言信息类型 */
432
+ interface LanguageInfo {
433
+ /** 编程语言名称 */
434
+ language: string;
435
+ /** 语言对应的颜色 */
436
+ color: string;
437
+ /** 在仓库中的占比(百分比) */
438
+ percent: number;
439
+ /** 该语言的代码字节数 */
440
+ bytes: number;
441
+ }
442
+ /** 仓库语言列表参数类型 */
443
+ type RepoLanguagesListParamType = RepoBaseParamType;
444
+ /** 仓库语言列表类型 */
445
+ interface RepoLanguagesListResponseType {
446
+ /** 仓库的语言统计信息列表 */
447
+ languages: LanguageInfo[];
448
+ }
449
+ /** 获取仓库可见性参数类型 */
450
+ type GetRepoVisibilityParamType = RepoBaseParamType;
451
+ /** 获取仓库可见性响应类型 */
452
+ type GetRepoVisibilityResponseType = RepoInfoResponseType['visibility'];
453
+ /** 获取仓库默认分支参数类型 */
454
+ type GetRepoDefaultBranchParamType = RepoBaseParamType;
455
+ /** 获取仓库默认分支响应类型 */
456
+ type GetRepoDefaultBranchResponseType = RepoInfoResponseType['default_branch'];
457
+ /** 获取仓库主要语言参数类型 */
458
+ type GetRepoMainLanguageParamType = RepoBaseParamType;
459
+ /** 仓库主要语言响应类型 */
460
+ type GetRepoMainLanguageResponseType = RepoInfoResponseType['language'];
461
+ /**
462
+ * 协作者权限 ,可选 pull,triage, push, maintain, admin,默认pull
463
+ * pull - 只读访问,协作者可以查看仓库内容。
464
+ * push - 允许推送代码到仓库分支,同时拥有 pull 权限。
465
+ * admin - 拥有仓库的完全控制权,包括更改设置和删除仓库。
466
+ */
467
+ type CollaboratorPermissionType = 'pull' | 'push' | 'admin';
468
+ /** 协作者参数类型 */
469
+ type CollaboratorParamType = RepoInfoParamType & UserNameParamType & {
470
+ /** 邀请的权限 */
471
+ permission?: CollaboratorPermissionType;
472
+ };
473
+ /** 邀请协作者响应类型 */
474
+ interface AddCollaboratorResponseType {
475
+ /** 被邀请者ID */
476
+ id: number;
477
+ /** 被邀请者用户名 */
478
+ login: string;
479
+ /** 被邀请者的别名 */
480
+ name: string | null;
481
+ /** 仓库的地址 */
482
+ html_url: string;
483
+ /** 被邀请者的权限 */
484
+ permissions: string;
485
+ }
486
+ /** 协作者列表参数类型 */
487
+ type GetCollaboratorListParamType = RepoInfoParamType & {
488
+ /**
489
+ * 筛选按隶属关系返回的协作者
490
+ * outside - 列出所有外部协作者,包括仓库成员和外部 collaborator。
491
+ * direct - 列出仓库成员。
492
+ * all - 列出仓库成员和外部 collaborator。
493
+ */
494
+ affiliation?: 'outside' | 'direct' | 'all';
495
+ /** 权限 */
496
+ permission?: CollaboratorPermissionType;
497
+ /** 每页数量 */
498
+ per_page?: number;
499
+ /** 页码 */
500
+ page?: number;
501
+ };
502
+ /** 协作者信息类型 */
503
+ interface CollaboratorInfoResponseType {
504
+ /** 协作者id */
505
+ id: number;
506
+ /** 协作者登录名 */
507
+ login: string;
508
+ /** 头像URL */
509
+ avatar_url: string;
510
+ /** 协作者邮箱 */
511
+ email: string | null;
512
+ /** 协作者姓名 */
513
+ name: string | null;
514
+ /** 权限设置 */
515
+ permissions: {
516
+ /** 拉取权限 */
517
+ pull: boolean;
518
+ /** 分类权限 */
519
+ triage: boolean;
520
+ /** 推送权限 */
521
+ push: boolean;
522
+ /** 维护权限 */
523
+ maintain: boolean;
524
+ /** 管理权限 */
525
+ admin: boolean;
526
+ };
527
+ }
528
+ /** 协作者列表响应类型 */
529
+ type GetCollaboratorListResponseType = CollaboratorInfoResponseType[];
530
+ /** 移除协作者参数类型 */
531
+ type RemoveCollaboratorParamType = RepoBaseParamType & UserNameParamType;
532
+ /** 移除协作者响应类型 */
533
+ interface RemoveCollaboratorResponseType {
534
+ /** 状态信息 */
535
+ info: string;
536
+ }
537
+
293
538
  type AppUser = Omit<UserInfoResponseType, 'bio' | 'blog' | 'followers' | 'following' | 'public_repos'>;
294
539
  /**
295
540
  * 定义 Base 应用所需的权限
@@ -312,8 +557,6 @@ interface AppInfoParamType {
312
557
  * 是https://github.com/settings/apps/:app_slug的
313
558
  * */
314
559
  app_slug: string;
315
- /** 访问令牌 */
316
- access_token?: AccessTokenType['access_token'];
317
560
  }
318
561
  /**
319
562
  * 应用的详细信息
@@ -375,6 +618,148 @@ interface AppRepoInfoResponseType {
375
618
  /** 更新时间 */
376
619
  updated_at: string;
377
620
  }
621
+ /** 通过仓库信息获取应用信息参数类型 */
622
+ type GetAppInfoByRepoParamType = RepoInfoParamType;
623
+ /** 通过仓库信息获取应用信息响应类型 */
624
+ type GetAppInfoByRepoResponseType = AppRepoInfoResponseType;
625
+ /** 通过用户信息获取应用信息参数 */
626
+ type GetAppInfoByUserParamType = UserNameParamType;
627
+ /** 通过用户信息获取应用信息响应类型 */
628
+ type GetAppInfoByUserResponseType = AppRepoInfoResponseType;
629
+ /** 通过用户信息获取应用信息参数 */
630
+ type GetAppInfoByOrgParamType = OrgNameParamType;
631
+ /** 通过用户信息获取应用信息响应类型 */
632
+ type GetAppInfoByOrgResponseType = AppRepoInfoResponseType;
633
+ /** 访问令牌权限 */
634
+ interface AccessTokenPermissionsType {
635
+ /** GitHub Actions 工作流、工作流运行和工件的权限 */
636
+ actions: 'read' | 'write';
637
+ /** 存储库创建、删除、设置、团队和协作者创建的权限 */
638
+ administration: 'read' | 'write';
639
+ /** 代码检查的权限 */
640
+ checks: 'read' | 'write';
641
+ /** 创建、编辑、删除和列出 GitHub Codespaces 的权限 */
642
+ codespaces: 'read' | 'write';
643
+ /** 存储库内容、提交、分支、下载、发布和合并的权限 */
644
+ contents: 'read' | 'write';
645
+ /** 管理 Dependabot 密钥的权限 */
646
+ dependabot_secrets: 'read' | 'write';
647
+ /** 部署和部署状态的权限 */
648
+ deployments: 'read' | 'write';
649
+ /** 管理存储库环境的权限 */
650
+ environments: 'read' | 'write';
651
+ /** 问题和相关评论、指派、标签和里程碑的权限 */
652
+ issues: 'read' | 'write';
653
+ /** 搜索存储库、列出协作者和访问存储库元数据的权限 */
654
+ metadata: 'read' | 'write';
655
+ /** 管理 GitHub Packages 发布的包的权限 */
656
+ packages: 'read' | 'write';
657
+ /** 获取 Pages 状态、配置和构建的权限,并创建新的构建 */
658
+ pages: 'read' | 'write';
659
+ /** 管理拉取请求及相关评论、指派、标签、里程碑和合并的权限 */
660
+ pull_requests: 'read' | 'write';
661
+ /** 查看和编辑存储库自定义属性的权限 */
662
+ repository_custom_properties: 'read' | 'write';
663
+ /** 管理存储库的 post-receive 钩子的权限 */
664
+ repository_hooks: 'read' | 'write';
665
+ /** 管理存储库项目、列和卡片的权限 */
666
+ repository_projects: 'read' | 'write' | 'admin';
667
+ /** 查看和管理秘密扫描警报的权限 */
668
+ secret_scanning_alerts: 'read' | 'write';
669
+ /** 管理存储库秘密的权限 */
670
+ secrets: 'read' | 'write';
671
+ /** 查看和管理安全事件的权限,比如代码扫描警报 */
672
+ security_events: 'read' | 'write';
673
+ /** 只管理单个文件的权限 */
674
+ single_file: 'read' | 'write';
675
+ /** 管理提交状态的权限 */
676
+ statuses: 'read' | 'write';
677
+ /** 管理 Dependabot 警报的权限 */
678
+ vulnerability_alerts: 'read' | 'write';
679
+ /** 更新 GitHub Actions 工作流文件的权限 */
680
+ workflows: 'write';
681
+ /** 管理组织团队和成员的权限 */
682
+ members: 'read' | 'write';
683
+ /** 管理组织访问权限的权限 */
684
+ organization_administration: 'read' | 'write';
685
+ /** 管理自定义存储库角色的权限 */
686
+ organization_custom_roles: 'read' | 'write';
687
+ /** 管理自定义组织角色的权限 */
688
+ organization_custom_org_roles: 'read' | 'write';
689
+ /** 管理自定义属性的权限 */
690
+ organization_custom_properties: 'read' | 'write' | 'admin';
691
+ /** 管理 GitHub Copilot 组织成员访问权限的权限 */
692
+ organization_copilot_seat_management: 'write';
693
+ /** 查看和管理组织公告横幅的权限 */
694
+ organization_announcement_banners: 'read' | 'write';
695
+ /** 查看组织活动的权限 */
696
+ organization_events: 'read';
697
+ /** 管理组织的 post-receive 钩子的权限 */
698
+ organization_hooks: 'read' | 'write';
699
+ /** 查看和管理组织的个人访问令牌请求的权限 */
700
+ organization_personal_access_tokens: 'read' | 'write';
701
+ /** 查看和管理组织批准的个人访问令牌的权限 */
702
+ organization_personal_access_token_requests: 'read' | 'write';
703
+ /** 查看组织计划的权限 */
704
+ organization_plan: 'read';
705
+ /** 管理组织项目的权限 */
706
+ organization_projects: 'read' | 'write' | 'admin';
707
+ /** 管理组织 GitHub Packages 包的权限 */
708
+ organization_packages: 'read' | 'write';
709
+ /** 管理组织秘密的权限 */
710
+ organization_secrets: 'read' | 'write';
711
+ /** 查看和管理组织 GitHub Actions 自托管运行器的权限 */
712
+ organization_self_hosted_runners: 'read' | 'write';
713
+ /** 查看和管理被组织屏蔽的用户的权限 */
714
+ organization_user_blocking: 'read' | 'write';
715
+ /** 管理团队讨论和相关评论的权限 */
716
+ team_discussions: 'read' | 'write';
717
+ /** 管理用户的电子邮件地址的权限 */
718
+ email_addresses: 'read' | 'write';
719
+ /** 管理用户的关注者的权限 */
720
+ followers: 'read' | 'write';
721
+ /** 管理 Git SSH 密钥的权限 */
722
+ git_ssh_keys: 'read' | 'write';
723
+ /** 查看和管理 GPG 密钥的权限 */
724
+ gpg_keys: 'read' | 'write';
725
+ /** 查看和管理存储库的互动限制的权限 */
726
+ interaction_limits: 'read' | 'write';
727
+ /** 管理用户的个人资料设置的权限 */
728
+ profile: 'write';
729
+ /** 列出和管理用户标星的存储库的权限 */
730
+ starring: 'read' | 'write';
731
+ }
732
+ /** 为应用创建访问令牌参数类型 */
733
+ interface CreateAccessTokenForAppParamType {
734
+ /** 应用安装id */
735
+ installation_id: number;
736
+ /** 存储库名称列表 */
737
+ repositories: Array<string>;
738
+ /** 存储库id列表 */
739
+ repository_ids: Array<number>;
740
+ /** 访问令牌权限 */
741
+ permissions: AccessTokenPermissionsType;
742
+ }
743
+ /** 为应用创建访问令牌响应类型 */
744
+ interface CreateAccessTokenForAppResponseType {
745
+ /** 访问令牌 */
746
+ token: string;
747
+ /** 访问令牌过期时间 */
748
+ expires_at: string;
749
+ /** 访问令牌权限 */
750
+ permissions: Record<string, string>;
751
+ /** 访问令牌仓库选择范围 */
752
+ repository_selection: 'all' | 'selected';
753
+ /** 访问令牌仓库列表 */
754
+ repositories: Array<RepoInfoResponseType>;
755
+ }
756
+ /** 撤销应用程序访问令牌响应类型 */
757
+ interface RevokeAccessTokenResponseType {
758
+ /** 是否撤销成功 */
759
+ success: boolean;
760
+ /** 撤销结果信息 */
761
+ info: string;
762
+ }
378
763
 
379
764
  /** Github 授权令牌接口返回类型 */
380
765
  interface TokenResponseType {
@@ -831,325 +1216,103 @@ interface IssueCommentListParamType extends RepoBaseParamType {
831
1216
  * @example "2023-01-01T00:00:00Z"
832
1217
  */
833
1218
  since?: string;
834
- /**
835
- * 每页结果数量
836
- * @default 30
837
- * @remarks 取值范围:1-100
838
- */
839
- per_page?: number;
840
- /**
841
- * 页码
842
- * @default 1
843
- * @remarks 取值范围:1-100
844
- */
845
- page?: number;
846
- }
847
- /** 议题评论列表响应类型 */
848
- type IssueCommentListResponseType = IssueCommentInfoResponseType[];
849
- /** 创建议题评论参数类型 */
850
- interface CreteIssueCommentParamType extends RepoBaseParamType {
851
- /** 议题ID */
852
- issue_number: IssueNumberParamType['issue_number'];
853
- /** 评论内容 */
854
- body: string;
855
- }
856
- /** 创建议题评论响应类型 */
857
- type CreteIssueCommentResponseType = IssueCommentInfoResponseType;
858
- /** 更新议题评论参数类型 */
859
- interface UpdateIssueCommentParamType extends IssueCommentInfoParamType {
860
- /** 评论内容 */
861
- body: string;
862
- }
863
- /** 更新议题评论响应类型 */
864
- type UpdateIssueCommentResponseType = IssueCommentInfoResponseType;
865
- /** 删除议题评论参数类型 */
866
- interface RemoveIssueCommentParamType extends RepoBaseParamType {
867
- /** 评论ID */
868
- comment_id: string | number;
869
- }
870
- /** 删除议题评论响应类型 */
871
- interface RemoveIssueCommentResponseType {
872
- /** 删除状态信息 */
873
- info: string;
874
- }
875
- /** 获取子议题列表参数类型 */
876
- interface SubIssueListParamType extends RepoBaseParamType {
877
- /** 议题ID */
878
- issue_number: IssueNumberParamType['issue_number'];
879
- /**
880
- * 每页结果数量
881
- * @default 30
882
- */
883
- per_page?: number;
884
- /**
885
- * 页码
886
- * @default 1
887
- */
888
- page?: number;
889
- }
890
- /** 获取子议题列表响应类型 */
891
- type SubIssueListResponseType = IssueInfoResponseType[];
892
- /** 添加子议题参数类型 */
893
- interface CreateSubIssueParamType extends RepoBaseParamType {
894
- /** 议题ID */
895
- issue_number: IssueNumberParamType['issue_number'];
896
- /** * 子议题ID */
897
- sub_issue_id: IssueNumberParamType['issue_number'];
898
- /** * 是否替换父议题 */
899
- replace_parent: boolean;
900
- }
901
- /** 添加子议题响应类型 */
902
- type CreateSubIssueResponseType = IssueInfoResponseType;
903
- /** 删除子议题参数类型 */
904
- interface RemoveSubIssueParamType extends RepoBaseParamType {
905
- /** 议题ID */
906
- issue_number: IssueNumberParamType['issue_number'];
907
- /** 子议题ID */
908
- sub_issue_id: IssueNumberParamType['issue_number'];
909
- }
910
- /** 删除子议题响应类型 */
911
- type RemoveSubIssueResponseType = IssueInfoResponseType;
912
- /** 重新确定子议题优先级参数类型 */
913
- interface ReprioritizeSubIssueParamType extends RepoBaseParamType {
914
- /** 议题ID */
915
- issue_number: IssueNumberParamType['issue_number'];
916
- /** 子议题ID */
917
- sub_issue_id: IssueNumberParamType['issue_number'];
918
- /**
919
- * 要优先排序的子问题的 ID(与 before_id 互斥,只能指定其中一个)
920
- * 在此 ID 之后放置子问题
921
- */
922
- after_id?: IssueNumberParamType['issue_number'];
923
- /**
924
- * 要优先排序的子问题的 ID(与 after_id 互斥,只能指定其中一个)
925
- * 在此 ID 之前放置子问题
926
- */
927
- before_id?: IssueNumberParamType['issue_number'];
928
- }
929
- /** 重新确定子议题优先级响应类型 */
930
- type ReprioritizeSubIssueResponseType = IssueInfoResponseType;
931
-
932
- /** 仓库所有者参数类型 */
933
- type RepoUser = Omit<UserInfoResponseType, 'followers' | 'following' | 'blog' | 'bio' | 'public_repos'>;
934
- /** 仓库列表参数类型 */
935
- interface RepoListBaseParamType {
936
- /** 排序方式,可选created, updated, pushed, full_name, 默认为 full_name */
937
- sort?: 'created' | 'updated' | 'pushed' | 'full_name';
938
- /** 排序方式,可选asc, desc, 默认为 desc */
939
- direction?: 'asc' | 'desc';
940
- /** 每页数量 */
941
- per_page?: number;
942
- /** 页码 */
943
- page?: number;
944
- }
945
- interface UserByTokenRepoListParamType extends RepoListBaseParamType {
946
- /** 仓库的可见性,可选all, public, private, 默认为 all */
947
- visibility?: 'all' | 'public' | 'private';
948
- /** 仓库的状态,可选all, public, private, 默认为 all */
949
- affiliation?: 'owner' | 'collaborator' | 'organization_member';
950
- /** 类型,可选all, owner, member, 默认为 all */
951
- type?: 'all' | 'owner' | 'member';
952
- }
953
- /** 仓库信息请求参数 */
954
- type RepoInfoParamType = RepoBaseParamType;
955
- /** * 仓库信息 */
956
- interface RepoInfoResponseType {
957
- /** * 仓库的唯一 ID */
958
- id: number;
959
- /** * 仓库的名称 */
960
- name: string;
961
- /** * 仓库的完整名称,包含用户名或组织名 */
962
- full_name: string;
963
- /** * 仓库拥有者的信息 */
964
- owner: RepoUser;
965
- /** 仓库是否公开 */
966
- public: boolean;
967
- /** * 仓库是否私有 */
968
- private: boolean;
969
- /** * 仓库的可见性 */
970
- visibility: 'public' | 'private';
971
- /** * 仓库是否是 fork 仓库 */
972
- fork: boolean;
973
- /** * 仓库是否已归档 */
974
- archived: boolean;
975
- /** * 仓库是否被禁用 */
976
- disabled: boolean;
977
- /** * 仓库的 HTML 页面 URL */
978
- html_url: string;
979
- /** * 仓库的描述信息 */
980
- description: string | null;
981
- /** * 仓库的 Stargazer 数量 */
982
- stargazers_count: number;
983
- /** * 仓库的 Watcher 数量 */
984
- watchers_count: number;
985
- /** * 仓库的主编程语言 */
986
- language: string | null;
987
- /** * 仓库的 fork 数量 */
988
- forks_count: number;
989
- /** * 开放的 issue 数量 */
990
- open_issues_count: number;
991
- /** * 仓库的默认分支 */
992
- default_branch: string;
993
- /** * 仓库的创建时间 */
994
- created_at: string;
995
- /** * 仓库的更新时间 */
996
- updated_at: string;
997
- /** * 仓库的推送时间 */
998
- pushed_at: string;
999
- }
1000
- /** 组织仓库列表参数类型 */
1001
- interface OrgRepoListParmType extends RepoListBaseParamType {
1002
- /** 组织名称 */
1003
- org: string;
1004
- /** 类型,可选all, public, private 默认为 all */
1005
- type?: 'all' | 'public' | 'private';
1006
- }
1007
- /**
1008
- * 组织仓库列表响应类型
1009
- * 该类型包含了多个仓库的信息,每个仓库都有自己的详细信息。
1010
- */
1011
- type OrgRepoListResponseType = RepoInfoResponseType[];
1012
- /** 创建组织仓库请求参数 */
1013
- interface OrgRepoCreateParamType extends OrgNameParamType {
1014
- /** 仓库名称 */
1015
- name: string;
1016
- /** 仓库描述 */
1017
- description?: string;
1018
- /** 仓库主页 */
1019
- homepage?: string;
1020
- /** 仓库可见性 */
1021
- visibility?: 'public' | 'private';
1022
- /** 是否开启议题issue */
1023
- has_issues?: boolean;
1024
- /** 是否开启wiki */
1025
- has_wiki?: boolean;
1026
- /** 仓库自动初始化 */
1027
- auto_init?: boolean;
1219
+ /**
1220
+ * 每页结果数量
1221
+ * @default 30
1222
+ * @remarks 取值范围:1-100
1223
+ */
1224
+ per_page?: number;
1225
+ /**
1226
+ * 页码
1227
+ * @default 1
1228
+ * @remarks 取值范围:1-100
1229
+ */
1230
+ page?: number;
1028
1231
  }
1029
- /** 创建组织仓库响应类型 */
1030
- type OrgRepoCreateResponseType = RepoInfoResponseType;
1031
- /** 创建用户仓库参数类型 */
1032
- type UserRepoCreateParamType = Omit<OrgRepoCreateParamType, 'org'> & RepoOwnerParamType;
1033
- /** 创建用户仓库响应类型 */
1034
- type UserRepoCreateResponseType = RepoInfoResponseType;
1035
- /** 用户仓库列表参数类型 */
1036
- interface UserRepoListParamType extends RepoListBaseParamType {
1037
- /** 用户名 */
1038
- username: string;
1039
- /** 类型,可选all, owner, member, 默认为 all */
1040
- type?: 'all' | 'owner' | 'member';
1232
+ /** 议题评论列表响应类型 */
1233
+ type IssueCommentListResponseType = IssueCommentInfoResponseType[];
1234
+ /** 创建议题评论参数类型 */
1235
+ interface CreteIssueCommentParamType extends RepoBaseParamType {
1236
+ /** 议题ID */
1237
+ issue_number: IssueNumberParamType['issue_number'];
1238
+ /** 评论内容 */
1239
+ body: string;
1041
1240
  }
1042
- /** 用户仓库列表类型 */
1043
- type UserRepoListType = Array<RepoInfoResponseType & {
1044
- /** * 仓库的角色名称 */
1045
- role_name?: string;
1046
- }>;
1047
- /** 仓库语言信息类型 */
1048
- interface LanguageInfo {
1049
- /** 编程语言名称 */
1050
- language: string;
1051
- /** 语言对应的颜色 */
1052
- color: string;
1053
- /** 在仓库中的占比(百分比) */
1054
- percent: number;
1055
- /** 该语言的代码字节数 */
1056
- bytes: number;
1241
+ /** 创建议题评论响应类型 */
1242
+ type CreteIssueCommentResponseType = IssueCommentInfoResponseType;
1243
+ /** 更新议题评论参数类型 */
1244
+ interface UpdateIssueCommentParamType extends IssueCommentInfoParamType {
1245
+ /** 评论内容 */
1246
+ body: string;
1057
1247
  }
1058
- /** 仓库语言列表参数类型 */
1059
- type RepoLanguagesListParamType = RepoBaseParamType;
1060
- /** 仓库语言列表类型 */
1061
- interface RepoLanguagesListResponseType {
1062
- /** 仓库的语言统计信息列表 */
1063
- languages: LanguageInfo[];
1248
+ /** 更新议题评论响应类型 */
1249
+ type UpdateIssueCommentResponseType = IssueCommentInfoResponseType;
1250
+ /** 删除议题评论参数类型 */
1251
+ interface RemoveIssueCommentParamType extends RepoBaseParamType {
1252
+ /** 评论ID */
1253
+ comment_id: string | number;
1064
1254
  }
1065
- /** 获取仓库可见性参数类型 */
1066
- type GetRepoVisibilityParamType = RepoBaseParamType;
1067
- /** 获取仓库可见性响应类型 */
1068
- type GetRepoVisibilityResponseType = RepoInfoResponseType['visibility'];
1069
- /** 获取仓库默认分支参数类型 */
1070
- type GetRepoDefaultBranchParamType = RepoBaseParamType;
1071
- /** 获取仓库默认分支响应类型 */
1072
- type GetRepoDefaultBranchResponseType = RepoInfoResponseType['default_branch'];
1073
- /** 获取仓库主要语言参数类型 */
1074
- type GetRepoMainLanguageParamType = RepoBaseParamType;
1075
- /** 仓库主要语言响应类型 */
1076
- type GetRepoMainLanguageResponseType = RepoInfoResponseType['language'];
1077
- /**
1078
- * 协作者权限 ,可选 pull,triage, push, maintain, admin,默认pull
1079
- * pull - 只读访问,协作者可以查看仓库内容。
1080
- * push - 允许推送代码到仓库分支,同时拥有 pull 权限。
1081
- * admin - 拥有仓库的完全控制权,包括更改设置和删除仓库。
1082
- */
1083
- type CollaboratorPermissionType = 'pull' | 'push' | 'admin';
1084
- /** 协作者参数类型 */
1085
- type CollaboratorParamType = RepoInfoParamType & UserNameParamType & {
1086
- /** 邀请的权限 */
1087
- permission?: CollaboratorPermissionType;
1088
- };
1089
- /** 邀请协作者响应类型 */
1090
- interface AddCollaboratorResponseType {
1091
- /** 被邀请者ID */
1092
- id: number;
1093
- /** 被邀请者用户名 */
1094
- login: string;
1095
- /** 被邀请者的别名 */
1096
- name: string | null;
1097
- /** 仓库的地址 */
1098
- html_url: string;
1099
- /** 被邀请者的权限 */
1100
- permissions: string;
1255
+ /** 删除议题评论响应类型 */
1256
+ interface RemoveIssueCommentResponseType {
1257
+ /** 删除状态信息 */
1258
+ info: string;
1101
1259
  }
1102
- /** 协作者列表参数类型 */
1103
- type GetCollaboratorListParamType = RepoInfoParamType & {
1260
+ /** 获取子议题列表参数类型 */
1261
+ interface SubIssueListParamType extends RepoBaseParamType {
1262
+ /** 议题ID */
1263
+ issue_number: IssueNumberParamType['issue_number'];
1104
1264
  /**
1105
- * 筛选按隶属关系返回的协作者
1106
- * outside - 列出所有外部协作者,包括仓库成员和外部 collaborator。
1107
- * direct - 列出仓库成员。
1108
- * all - 列出仓库成员和外部 collaborator。
1109
- */
1110
- affiliation?: 'outside' | 'direct' | 'all';
1111
- /** 权限 */
1112
- permission?: CollaboratorPermissionType;
1113
- /** 每页数量 */
1265
+ * 每页结果数量
1266
+ * @default 30
1267
+ */
1114
1268
  per_page?: number;
1115
- /** 页码 */
1269
+ /**
1270
+ * 页码
1271
+ * @default 1
1272
+ */
1116
1273
  page?: number;
1117
- };
1118
- /** 协作者信息类型 */
1119
- interface CollaboratorInfoResponseType {
1120
- /** 协作者id */
1121
- id: number;
1122
- /** 协作者登录名 */
1123
- login: string;
1124
- /** 头像URL */
1125
- avatar_url: string;
1126
- /** 协作者邮箱 */
1127
- email: string | null;
1128
- /** 协作者姓名 */
1129
- name: string | null;
1130
- /** 权限设置 */
1131
- permissions: {
1132
- /** 拉取权限 */
1133
- pull: boolean;
1134
- /** 分类权限 */
1135
- triage: boolean;
1136
- /** 推送权限 */
1137
- push: boolean;
1138
- /** 维护权限 */
1139
- maintain: boolean;
1140
- /** 管理权限 */
1141
- admin: boolean;
1142
- };
1143
1274
  }
1144
- /** 协作者列表响应类型 */
1145
- type GetCollaboratorListResponseType = CollaboratorInfoResponseType[];
1146
- /** 移除协作者参数类型 */
1147
- type RemoveCollaboratorParamType = RepoBaseParamType & UserNameParamType;
1148
- /** 移除协作者响应类型 */
1149
- interface RemoveCollaboratorResponseType {
1150
- /** 状态信息 */
1151
- info: string;
1275
+ /** 获取子议题列表响应类型 */
1276
+ type SubIssueListResponseType = IssueInfoResponseType[];
1277
+ /** 添加子议题参数类型 */
1278
+ interface CreateSubIssueParamType extends RepoBaseParamType {
1279
+ /** 议题ID */
1280
+ issue_number: IssueNumberParamType['issue_number'];
1281
+ /** * 子议题ID */
1282
+ sub_issue_id: IssueNumberParamType['issue_number'];
1283
+ /** * 是否替换父议题 */
1284
+ replace_parent: boolean;
1285
+ }
1286
+ /** 添加子议题响应类型 */
1287
+ type CreateSubIssueResponseType = IssueInfoResponseType;
1288
+ /** 删除子议题参数类型 */
1289
+ interface RemoveSubIssueParamType extends RepoBaseParamType {
1290
+ /** 议题ID */
1291
+ issue_number: IssueNumberParamType['issue_number'];
1292
+ /** 子议题ID */
1293
+ sub_issue_id: IssueNumberParamType['issue_number'];
1294
+ }
1295
+ /** 删除子议题响应类型 */
1296
+ type RemoveSubIssueResponseType = IssueInfoResponseType;
1297
+ /** 重新确定子议题优先级参数类型 */
1298
+ interface ReprioritizeSubIssueParamType extends RepoBaseParamType {
1299
+ /** 议题ID */
1300
+ issue_number: IssueNumberParamType['issue_number'];
1301
+ /** 子议题ID */
1302
+ sub_issue_id: IssueNumberParamType['issue_number'];
1303
+ /**
1304
+ * 要优先排序的子问题的 ID(与 before_id 互斥,只能指定其中一个)
1305
+ * 在此 ID 之后放置子问题
1306
+ */
1307
+ after_id?: IssueNumberParamType['issue_number'];
1308
+ /**
1309
+ * 要优先排序的子问题的 ID(与 after_id 互斥,只能指定其中一个)
1310
+ * 在此 ID 之前放置子问题
1311
+ */
1312
+ before_id?: IssueNumberParamType['issue_number'];
1152
1313
  }
1314
+ /** 重新确定子议题优先级响应类型 */
1315
+ type ReprioritizeSubIssueResponseType = IssueInfoResponseType;
1153
1316
 
1154
1317
  /** 组织信息参数类型 */
1155
1318
  type OrgInfoParamType = OrgNameParamType;
@@ -1634,28 +1797,6 @@ declare function format_date(dateString: string, locale?: string, format?: strin
1634
1797
  * ```
1635
1798
  */
1636
1799
  declare function get_relative_time(dateString: string, locale?: string): Promise<string>;
1637
- /**
1638
- * 获取本地仓库的默认分支
1639
- * @param local_path - 本地仓库路径
1640
- * @returns 默认分支名称
1641
- * @example
1642
- * ```ts
1643
- * console.log(await get_local_repo_default_branch('/path/to/repo'))
1644
- * -> 'main'
1645
- * ```
1646
- */
1647
- declare function get_local_repo_default_branch(local_path: string): Promise<string>;
1648
- /**
1649
- * 获取远程仓库的默认分支
1650
- * @param remote_url - 远程仓库URL
1651
- * @returns 默认分支名称
1652
- * @example
1653
- * ```ts
1654
- * console.log(await get_remote_repo_default_branch('https://github.com/CandriaJS/git-neko-kit'))
1655
- * -> 'main'
1656
- * ```
1657
- */
1658
- declare function get_remote_repo_default_branch(remote_url: string): Promise<string>;
1659
1800
  /**
1660
1801
  * 根据语言名称获取对应的颜色值
1661
1802
  * @param language - 语言名称
@@ -3085,6 +3226,11 @@ declare class GitHubClient {
3085
3226
  * @param options.APP_ID GitHub App ID
3086
3227
  * @param options.Private_Key 私钥内容
3087
3228
  * @returns 返回生成的 JWT
3229
+ * @example
3230
+ * ```ts
3231
+ * const jwt = await client.generate_jwt()
3232
+ * -> 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MjYxNjEyMjAsImlhdCI6MTYyNjE2MTIyMCwiaXNzIjoiMTIzNDU2Nzg5In0.XxXxXxXxXx
3233
+ * ```
3088
3234
  */
3089
3235
  private generate_jwt;
3090
3236
  /**
@@ -3182,7 +3328,7 @@ declare class App extends GitHubClient {
3182
3328
  * -> app的信息
3183
3329
  * ```
3184
3330
  */
3185
- private get_app_info_by_auth;
3331
+ get_app_info_by_auth(): Promise<ApiResponseType<AppInfoResponseType>>;
3186
3332
  /**
3187
3333
  * 获取仓库的应用安装信息
3188
3334
  * 权限:
@@ -3193,11 +3339,54 @@ declare class App extends GitHubClient {
3193
3339
  * @returns 返回应用安装信息
3194
3340
  * @example
3195
3341
  * ```ts
3196
- * const app = base.get_app()
3197
- * console.log(app.get_app_installation_by_repo({owner: 'owner', repo: 'repo'})) // 输出仓库的应用信息
3342
+ * console.log(app.get_app_installation_by_repo({owner: 'owner', repo: 'repo'}))
3343
+ * -> 仓库安装应用信息
3344
+ * ```
3345
+ */
3346
+ get_app_installation_by_repo(options: GetAppInfoByRepoParamType): Promise<ApiResponseType<GetAppInfoByRepoResponseType>>;
3347
+ /**
3348
+ * 获取用户的应用安装信息
3349
+ * 权限:
3350
+ * - `none` 此节点仅App Client可用
3351
+ * @param options - 仓库安装应用参数对象
3352
+ * - owner 拥有者
3353
+ * - repo 仓库名
3354
+ * @returns 返回应用安装信息
3355
+ * @example
3356
+ * ```ts
3357
+ * console.log(app.get_app_installation_by_repo({owner: 'owner', repo: 'repo'}))
3358
+ * -> 用户安装应用信息
3359
+ * ```
3360
+ */
3361
+ get_app_installation_by_user(options: GetAppInfoByUserParamType): Promise<ApiResponseType<GetAppInfoByUserResponseType>>;
3362
+ /**
3363
+ * 获取组织的应用安装信息
3364
+ * 权限:
3365
+ * - `none` 此节点仅App Client可用
3366
+ * @param options - 仓库安装应用参数对象
3367
+ * - owner 拥有者
3368
+ * - repo 仓库名
3369
+ * @returns 返回应用安装信息
3370
+ * @example
3371
+ * ```ts
3372
+ * console.log(app.get_app_installation_by_repo({owner: 'owner', repo: 'repo'}))
3373
+ * -> 组织安装应用信息
3374
+ * ```
3375
+ */
3376
+ get_app_installation_by_org(options: GetAppInfoByOrgParamType): Promise<ApiResponseType<GetAppInfoByOrgResponseType>>;
3377
+ /**
3378
+ * 为应用程序创建访问令牌
3379
+ * @param options
3380
+ * - installation_id - 安装 ID
3381
+ * @returns 创建访问令牌对象
3382
+ * @example
3383
+ * ```ts
3384
+ * const accessToken = await app.create_access_token_for_app({ installation_id: 123456 })
3385
+ * -> 创建访问令牌对象
3198
3386
  * ```
3199
3387
  */
3200
- get_app_installation_by_repo(options: RepoInfoParamType): Promise<ApiResponseType<AppRepoInfoResponseType>>;
3388
+ create_access_token_for_app(options: CreateAccessTokenForAppParamType): Promise<ApiResponseType<CreateAccessTokenForAppResponseType>>;
3389
+ revoke_access_token_for_app(): Promise<ApiResponseType<RevokeAccessTokenResponseType>>;
3201
3390
  /**
3202
3391
  * 生成Github App 安装链接
3203
3392
  * @param state_id - 随机生成的 state_id,用于验证授权请求的状态,可选,默认不使用
@@ -3279,4 +3468,4 @@ declare class Client {
3279
3468
  constructor(options: ClientType);
3280
3469
  }
3281
3470
 
3282
- export { type AccessCodeType, type AccessTokenClentTYpe, type AccessTokenType, type AddCollaboratorResponseType, type AddMemberParamType, type AddMemberResponseType, type ApiResponseType, type AppClientType, type AppInfoParamType, type AppInfoResponseType, type AppPermissions, type AppRepoInfoResponseType, type AppUser, type CheckTokenResponseType, Client, type ClientType, type CloseIssueParamType, type CloseIssueResponseType, type CollaboratorInfoResponseType, type CollaboratorParamType, type CollaboratorPermissionType, type CommentIdParamType, type Commit$1 as Commit, type CommitInfoCommonParamType, type CommitInfoParamType, type CommitInfoResponseType, type CommitListParamType, type CommitListResponseType, type CommitStats, type CommonProxyType, type ContributionData, type ContributionResult, type CreateIssueResponseType, type CreatePullRequestCommentParamType, type CreatePullRequestCommentResponseType, type CreatePullRequestParamType, type CreatePullRequestResponseType, type CreateReleaseParamType, type CreateReleaseResponseType, type CreateSubIssueParamType, type CreateSubIssueResponseType, type CreteIssueCommentParamType, type CreteIssueCommentResponseType, type CreteIssueParamType, type DeletePullRequestCommentParamType, type DeletePullRequestCommentResponseType, type DeleteReleaseParamType, type DeleteReleaseResponseType, type DiffEntry, type ExecOptions, type ExecReturn, type ExecType, type GetCollaboratorListParamType, type GetCollaboratorListResponseType, type GetPullRequestCommentInfoParamType, type GetPullRequestCommentInfoResponseType, type GetPullRequestCommentsListParamType, type GetPullRequestCommentsListResponseType, type GetPullRequestFilesListParamType, type GetPullRequestFilesListResponseType, type GetRepoDefaultBranchParamType, type GetRepoDefaultBranchResponseType, type GetRepoMainLanguageParamType, type GetRepoMainLanguageResponseType, type GetRepoVisibilityParamType, type GetRepoVisibilityResponseType, type GitHubBaseClient, GitHubClient, type GitHubClientType, type GitType, type GitUser, type HttpProxyType, type HttpsProxyType, type IssueCommentInfoParamType, type IssueCommentInfoResponseType, type IssueCommentListParamType, type IssueCommentListResponseType, type IssueInfoParamType, type IssueInfoResponseType, type IssueLabelType, type IssueListResponseType, type IssueNumberParamType, type IssueUser, type LanguageInfo, type LockIssueParamType, type LockIssueResponseType, type MergeMethodType, type MergePullRequestParamType, type MergePullRequestResponseType, type MilestoneType, type OpenIssueParamType, type OpenIssueResponseType, type OrgInfoParamType, type OrgInfoResponseType, type OrgNameParamType, type OrgRepoCreateParamType, type OrgRepoCreateResponseType, type OrgRepoListParmType, type OrgRepoListResponseType, type ParentCommit, type PkgInfoType, type PrRepo, type PrUser, type ProxyParamsType, type ProxyType, type ProxyUrlType, type PullRequestFilesListType, type PullRequestInfoParamType, type PullRequestInfoResponseType, type PullRequestListParamType, type PullRequestListResponseType, type PullRequestNumberParamType, type ReactionInfoType, type RefreshTokenResponseType, type RefreshTokenType, type ReleaseAssetsType, type ReleaseInfoByTagParamType, type ReleaseInfoByTagResponseType, type ReleaseInfoParamType, type ReleaseInfoResponseType, type ReleaseLatestParamTypeType, type ReleaseLatestResponseType, type ReleaseListParamType, type ReleaseListResponseType, type ReleaseUser, type RemoveCollaboratorParamType, type RemoveCollaboratorResponseType, type RemoveIssueCommentParamType, type RemoveIssueCommentResponseType, type RemoveSubIssueParamType, type RemoveSubIssueResponseType, type RepoBaseParamType, type RepoCommentListParamType, type RepoCommentListResponseType, type RepoInfoParamType, type RepoInfoResponseType, type RepoIssueListParamType, type RepoLanguagesListParamType, type RepoLanguagesListResponseType, type RepoListBaseParamType, type RepoNameParamType, type RepoOwnerParamType, type RepoParamType, type RepoUrlParamType, type RepoUser, type ReprioritizeSubIssueParamType, type ReprioritizeSubIssueResponseType, type RequestConfigType, type RequestTokenType, type ResponseHeadersType, type ResponseMsgType, type ResponseStatusCodeType, type ResponseSuccessType, type ResponseType, type ReverseProxyType, type ShaParamType, type Socks5ProxyType, type SocksProxyType, type SubIssueListParamType, type SubIssueListResponseType, type TokenResponseType, type UnLockIssueParamType, type UnLockIssueResponseType, type UpdateIssueCommentParamType, type UpdateIssueCommentResponseType, type UpdateIssueParamType, type UpdateIssueResponseType, type UpdatePullRequestCommentParamType, type UpdatePullRequestCommentResponseType, type UpdatePullRequestParamType, type UpdatePullRequestResponseType, type UpdateReleaseParamType, type UpdateReleaseResponseType, type UserByTokenRepoListParamType, type UserIdParamType, type UserInfoByIdParamType, type UserInfoParamType, type UserInfoResponseType, type UserNameParamType, type UserRepoCreateParamType, type UserRepoCreateResponseType, type UserRepoListParamType, type UserRepoListType, type WebHookSignatureParamType, type WebHookSignatureResponseType, create_state_id, Client as default, type formatParamType, format_date, get_langage_color, get_local_repo_default_branch, get_relative_time, get_remote_repo_default_branch, index as github };
3471
+ export { type AccessCodeType, type AccessTokenClentTYpe, type AccessTokenPermissionsType, type AccessTokenType, type AddCollaboratorResponseType, type AddMemberParamType, type AddMemberResponseType, type ApiResponseType, type AppClientType, type AppInfoParamType, type AppInfoResponseType, type AppPermissions, type AppRepoInfoResponseType, type AppUser, type CheckTokenResponseType, Client, type ClientType, type CloseIssueParamType, type CloseIssueResponseType, type CollaboratorInfoResponseType, type CollaboratorParamType, type CollaboratorPermissionType, type CommentIdParamType, type Commit$1 as Commit, type CommitInfoCommonParamType, type CommitInfoParamType, type CommitInfoResponseType, type CommitListParamType, type CommitListResponseType, type CommitStats, type CommonProxyType, type ContributionData, type ContributionResult, type CreateAccessTokenForAppParamType, type CreateAccessTokenForAppResponseType, type CreateIssueResponseType, type CreatePullRequestCommentParamType, type CreatePullRequestCommentResponseType, type CreatePullRequestParamType, type CreatePullRequestResponseType, type CreateReleaseParamType, type CreateReleaseResponseType, type CreateSubIssueParamType, type CreateSubIssueResponseType, type CreteIssueCommentParamType, type CreteIssueCommentResponseType, type CreteIssueParamType, type DeletePullRequestCommentParamType, type DeletePullRequestCommentResponseType, type DeleteReleaseParamType, type DeleteReleaseResponseType, type DiffEntry, type ExecOptions, type ExecReturn, type ExecType, type GetAppInfoByOrgParamType, type GetAppInfoByOrgResponseType, type GetAppInfoByRepoParamType, type GetAppInfoByRepoResponseType, type GetAppInfoByUserParamType, type GetAppInfoByUserResponseType, type GetCollaboratorListParamType, type GetCollaboratorListResponseType, type GetPullRequestCommentInfoParamType, type GetPullRequestCommentInfoResponseType, type GetPullRequestCommentsListParamType, type GetPullRequestCommentsListResponseType, type GetPullRequestFilesListParamType, type GetPullRequestFilesListResponseType, type GetRepoDefaultBranchParamType, type GetRepoDefaultBranchResponseType, type GetRepoMainLanguageParamType, type GetRepoMainLanguageResponseType, type GetRepoVisibilityParamType, type GetRepoVisibilityResponseType, type GitHubBaseClient, GitHubClient, type GitHubClientType, type GitType, type GitUser, type HttpProxyType, type HttpsProxyType, type IssueCommentInfoParamType, type IssueCommentInfoResponseType, type IssueCommentListParamType, type IssueCommentListResponseType, type IssueInfoParamType, type IssueInfoResponseType, type IssueLabelType, type IssueListResponseType, type IssueNumberParamType, type IssueUser, type LanguageInfo, type LockIssueParamType, type LockIssueResponseType, type MergeMethodType, type MergePullRequestParamType, type MergePullRequestResponseType, type MilestoneType, type OpenIssueParamType, type OpenIssueResponseType, type OrgInfoParamType, type OrgInfoResponseType, type OrgNameParamType, type OrgRepoCreateParamType, type OrgRepoCreateResponseType, type OrgRepoListParmType, type OrgRepoListResponseType, type ParentCommit, type PkgInfoType, type PrRepo, type PrUser, type ProxyParamsType, type ProxyType, type ProxyUrlType, type PullRequestFilesListType, type PullRequestInfoParamType, type PullRequestInfoResponseType, type PullRequestListParamType, type PullRequestListResponseType, type PullRequestNumberParamType, type ReactionInfoType, type RefreshTokenResponseType, type RefreshTokenType, type ReleaseAssetsType, type ReleaseInfoByTagParamType, type ReleaseInfoByTagResponseType, type ReleaseInfoParamType, type ReleaseInfoResponseType, type ReleaseLatestParamTypeType, type ReleaseLatestResponseType, type ReleaseListParamType, type ReleaseListResponseType, type ReleaseUser, type RemoveCollaboratorParamType, type RemoveCollaboratorResponseType, type RemoveIssueCommentParamType, type RemoveIssueCommentResponseType, type RemoveSubIssueParamType, type RemoveSubIssueResponseType, type RepoBaseParamType, type RepoCommentListParamType, type RepoCommentListResponseType, type RepoInfoParamType, type RepoInfoResponseType, type RepoIssueListParamType, type RepoLanguagesListParamType, type RepoLanguagesListResponseType, type RepoListBaseParamType, type RepoNameParamType, type RepoOwnerParamType, type RepoParamType, type RepoUrlParamType, type RepoUser, type ReprioritizeSubIssueParamType, type ReprioritizeSubIssueResponseType, type RequestConfigType, type RequestTokenType, type ResponseHeadersType, type ResponseMsgType, type ResponseStatusCodeType, type ResponseSuccessType, type ResponseType, type ReverseProxyType, type RevokeAccessTokenResponseType, type ShaParamType, type Socks5ProxyType, type SocksProxyType, type SubIssueListParamType, type SubIssueListResponseType, type TokenResponseType, type UnLockIssueParamType, type UnLockIssueResponseType, type UpdateIssueCommentParamType, type UpdateIssueCommentResponseType, type UpdateIssueParamType, type UpdateIssueResponseType, type UpdatePullRequestCommentParamType, type UpdatePullRequestCommentResponseType, type UpdatePullRequestParamType, type UpdatePullRequestResponseType, type UpdateReleaseParamType, type UpdateReleaseResponseType, type UserByTokenRepoListParamType, type UserIdParamType, type UserInfoByIdParamType, type UserInfoParamType, type UserInfoResponseType, type UserNameParamType, type UserRepoCreateParamType, type UserRepoCreateResponseType, type UserRepoListParamType, type UserRepoListType, type WebHookSignatureParamType, type WebHookSignatureResponseType, create_state_id, Client as default, type formatParamType, format_date, get_langage_color, get_local_repo_default_branch, get_relative_time, get_remote_repo_default_branch, index as github };