@firestartr/cli 2.5.0 → 2.6.0-snapshot-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +36519 -35832
- package/build/packages/github/index.d.ts +10 -6
- package/build/packages/github/src/auth.d.ts +3 -0
- package/build/packages/github/src/auth_installation.d.ts +1 -0
- package/build/packages/github/src/branches.d.ts +4 -984
- package/build/packages/github/src/config_resolver.d.ts +8 -0
- package/build/packages/github/src/encrypt.d.ts +3 -6
- package/build/packages/github/src/issues.d.ts +5 -5
- package/build/packages/github/src/organization.d.ts +9 -9
- package/build/packages/github/src/profile.d.ts +20 -0
- package/build/packages/github/src/team.d.ts +6 -129
- package/build/packages/github/src/user.d.ts +1 -1
- package/build/packages/github/src/with_profile.d.ts +888 -0
- package/build/packages/github/src/workflow.d.ts +4 -4
- package/build/packages/operator/src/operator-env.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
export type RepoSecretsSection = 'actions' | 'dependabot' | 'codespaces';
|
|
2
|
-
export declare function getRepoPublicKey(owner: string, repo: string, section: RepoSecretsSection): Promise<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}>;
|
|
6
|
-
export declare function encryptRepoSecret(owner: string, repo: string, section: RepoSecretsSection, plaintextValue: string): Promise<{
|
|
7
|
-
key_id: string;
|
|
2
|
+
export declare function getRepoPublicKey(owner: string, repo: string, section: RepoSecretsSection, octokit?: any): Promise<any>;
|
|
3
|
+
export declare function encryptRepoSecret(owner: string, repo: string, section: RepoSecretsSection, plaintextValue: string, octokit?: any): Promise<{
|
|
4
|
+
key_id: any;
|
|
8
5
|
encrypted_value: string;
|
|
9
6
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare function create(owner: string, repo: string, title: string, body: string, labels?: string[]): Promise<any>;
|
|
2
|
-
declare function update(owner: string, repo: string, issue_number: number, title: string, body: string, labels?: string[]): Promise<any>;
|
|
3
|
-
declare function filterBy(owner: string, repo: string, title: string, labels: string, state?: 'open' | 'closed' | 'all', creator?: string | undefined, assignee?: string | undefined): Promise<any>;
|
|
4
|
-
declare function upsertByTitle(owner: string, repo: string, title: string, body: string, labels?: string[]): Promise<any>;
|
|
5
|
-
declare function close(owner: string, repo: string, issue_number: number): Promise<any>;
|
|
1
|
+
declare function create(owner: string, repo: string, title: string, body: string, labels?: string[], octokit?: any): Promise<any>;
|
|
2
|
+
declare function update(owner: string, repo: string, issue_number: number, title: string, body: string, labels?: string[], octokit?: any): Promise<any>;
|
|
3
|
+
declare function filterBy(owner: string, repo: string, title: string, labels: string, state?: 'open' | 'closed' | 'all', creator?: string | undefined, assignee?: string | undefined, octokit?: any): Promise<any>;
|
|
4
|
+
declare function upsertByTitle(owner: string, repo: string, title: string, body: string, labels?: string[], octokit?: any): Promise<any>;
|
|
5
|
+
declare function close(owner: string, repo: string, issue_number: number, octokit?: any): Promise<any>;
|
|
6
6
|
declare const _default: {
|
|
7
7
|
create: typeof create;
|
|
8
8
|
update: typeof update;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export declare function getRepositoryList(org: string, perPageEntries?: number): Promise<any>;
|
|
2
|
-
export declare function getTeamList(org: string, perPageEntries?: number): Promise<any>;
|
|
3
|
-
export declare function getUserList(org: string, perPageEntries?: number): Promise<any>;
|
|
4
|
-
export declare function validateMember(username: string, org: string): Promise<any>;
|
|
5
|
-
export declare function getUserRoleInOrg(username: string, org: string): Promise<
|
|
6
|
-
export declare function getOrgInfo(org: string): Promise<any>;
|
|
7
|
-
export declare function getWebhookList(org: string): Promise<any>;
|
|
8
|
-
export declare function getOrgTeamsDirectAccess(org: string): Promise<any>;
|
|
1
|
+
export declare function getRepositoryList(org: string, perPageEntries?: number, octokit?: any): Promise<any>;
|
|
2
|
+
export declare function getTeamList(org: string, perPageEntries?: number, octokit?: any): Promise<any>;
|
|
3
|
+
export declare function getUserList(org: string, perPageEntries?: number, octokit?: any): Promise<any>;
|
|
4
|
+
export declare function validateMember(username: string, org: string, octokit?: any): Promise<any>;
|
|
5
|
+
export declare function getUserRoleInOrg(username: string, org: string, octokit?: any): Promise<any>;
|
|
6
|
+
export declare function getOrgInfo(org: string, octokit?: any): Promise<any>;
|
|
7
|
+
export declare function getWebhookList(org: string, octokit?: any): Promise<any>;
|
|
8
|
+
export declare function getOrgTeamsDirectAccess(org: string, octokit?: any): Promise<any>;
|
|
9
9
|
export declare function transformGraphQLResponse(response: any): any;
|
|
10
|
-
export declare function getOrgPlanName(org: string): Promise<any>;
|
|
10
|
+
export declare function getOrgPlanName(org: string, octokit?: any): Promise<any>;
|
|
11
11
|
declare const _default: {
|
|
12
12
|
getRepositoryList: typeof getRepositoryList;
|
|
13
13
|
getTeamList: typeof getTeamList;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type GithubProfileType = 'snapshot' | 'ambient';
|
|
2
|
+
export interface GithubProfile {
|
|
3
|
+
name: string;
|
|
4
|
+
type: GithubProfileType;
|
|
5
|
+
config?: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Create or ensure a GitHub profile.
|
|
9
|
+
* Snapshots store a frozen config; ambient profiles resolve env dynamically.
|
|
10
|
+
* Idempotent: matching is a no-op, conflict throws.
|
|
11
|
+
*/
|
|
12
|
+
export declare function createProfile(name: string, profile: Omit<GithubProfile, 'name'>): void;
|
|
13
|
+
/**
|
|
14
|
+
* Lookup a stored github profile by name.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getProfile(name: string): GithubProfile | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Internal use: clear all profiles (for testing).
|
|
19
|
+
*/
|
|
20
|
+
export declare function _clearProfiles(): void;
|
|
@@ -1,132 +1,9 @@
|
|
|
1
|
-
export declare function getTeamMembers(team: string, org: string): Promise<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
avatar_url: string;
|
|
8
|
-
gravatar_id: string;
|
|
9
|
-
url: string;
|
|
10
|
-
html_url: string;
|
|
11
|
-
followers_url: string;
|
|
12
|
-
following_url: string;
|
|
13
|
-
gists_url: string;
|
|
14
|
-
starred_url: string;
|
|
15
|
-
subscriptions_url: string;
|
|
16
|
-
organizations_url: string;
|
|
17
|
-
repos_url: string;
|
|
18
|
-
events_url: string;
|
|
19
|
-
received_events_url: string;
|
|
20
|
-
type: string;
|
|
21
|
-
site_admin: boolean;
|
|
22
|
-
starred_at?: string;
|
|
23
|
-
user_view_type?: string;
|
|
24
|
-
}[]>;
|
|
25
|
-
export declare function getTeamInfo(team: string, org: string): Promise<{
|
|
26
|
-
id: number;
|
|
27
|
-
node_id: string;
|
|
28
|
-
url: string;
|
|
29
|
-
html_url: string;
|
|
30
|
-
name: string;
|
|
31
|
-
slug: string;
|
|
32
|
-
description: string;
|
|
33
|
-
privacy?: "closed" | "secret";
|
|
34
|
-
notification_setting?: "notifications_enabled" | "notifications_disabled";
|
|
35
|
-
permission: string;
|
|
36
|
-
members_url: string;
|
|
37
|
-
repositories_url: string;
|
|
38
|
-
parent?: {
|
|
39
|
-
id: number;
|
|
40
|
-
node_id: string;
|
|
41
|
-
url: string;
|
|
42
|
-
members_url: string;
|
|
43
|
-
name: string;
|
|
44
|
-
description: string;
|
|
45
|
-
permission: string;
|
|
46
|
-
privacy?: string;
|
|
47
|
-
notification_setting?: string;
|
|
48
|
-
html_url: string;
|
|
49
|
-
repositories_url: string;
|
|
50
|
-
slug: string;
|
|
51
|
-
ldap_dn?: string;
|
|
52
|
-
type: "enterprise" | "organization";
|
|
53
|
-
organization_id?: number;
|
|
54
|
-
enterprise_id?: number;
|
|
55
|
-
};
|
|
56
|
-
members_count: number;
|
|
57
|
-
repos_count: number;
|
|
58
|
-
created_at: string;
|
|
59
|
-
updated_at: string;
|
|
60
|
-
organization: {
|
|
61
|
-
login: string;
|
|
62
|
-
id: number;
|
|
63
|
-
node_id: string;
|
|
64
|
-
url: string;
|
|
65
|
-
repos_url: string;
|
|
66
|
-
events_url: string;
|
|
67
|
-
hooks_url: string;
|
|
68
|
-
issues_url: string;
|
|
69
|
-
members_url: string;
|
|
70
|
-
public_members_url: string;
|
|
71
|
-
avatar_url: string;
|
|
72
|
-
description: string;
|
|
73
|
-
name?: string;
|
|
74
|
-
company?: string;
|
|
75
|
-
blog?: string;
|
|
76
|
-
location?: string;
|
|
77
|
-
email?: string;
|
|
78
|
-
twitter_username?: string;
|
|
79
|
-
is_verified?: boolean;
|
|
80
|
-
has_organization_projects: boolean;
|
|
81
|
-
has_repository_projects: boolean;
|
|
82
|
-
public_repos: number;
|
|
83
|
-
public_gists: number;
|
|
84
|
-
followers: number;
|
|
85
|
-
following: number;
|
|
86
|
-
html_url: string;
|
|
87
|
-
created_at: string;
|
|
88
|
-
type: string;
|
|
89
|
-
total_private_repos?: number;
|
|
90
|
-
owned_private_repos?: number;
|
|
91
|
-
private_gists?: number;
|
|
92
|
-
disk_usage?: number;
|
|
93
|
-
collaborators?: number;
|
|
94
|
-
billing_email?: string;
|
|
95
|
-
plan?: {
|
|
96
|
-
name: string;
|
|
97
|
-
space: number;
|
|
98
|
-
private_repos: number;
|
|
99
|
-
filled_seats?: number;
|
|
100
|
-
seats?: number;
|
|
101
|
-
};
|
|
102
|
-
default_repository_permission?: string;
|
|
103
|
-
members_can_create_repositories?: boolean;
|
|
104
|
-
two_factor_requirement_enabled?: boolean;
|
|
105
|
-
members_allowed_repository_creation_type?: string;
|
|
106
|
-
members_can_create_public_repositories?: boolean;
|
|
107
|
-
members_can_create_private_repositories?: boolean;
|
|
108
|
-
members_can_create_internal_repositories?: boolean;
|
|
109
|
-
members_can_create_pages?: boolean;
|
|
110
|
-
members_can_create_public_pages?: boolean;
|
|
111
|
-
members_can_create_private_pages?: boolean;
|
|
112
|
-
members_can_fork_private_repositories?: boolean;
|
|
113
|
-
web_commit_signoff_required?: boolean;
|
|
114
|
-
updated_at: string;
|
|
115
|
-
archived_at: string;
|
|
116
|
-
};
|
|
117
|
-
ldap_dn?: string;
|
|
118
|
-
type: "enterprise" | "organization";
|
|
119
|
-
organization_id?: number;
|
|
120
|
-
enterprise_id?: number;
|
|
121
|
-
}>;
|
|
122
|
-
export declare function getTeamRoleUser(org: string, team: string, username: string): Promise<{
|
|
123
|
-
url: string;
|
|
124
|
-
role: "member" | "maintainer";
|
|
125
|
-
state: "pending" | "active";
|
|
126
|
-
}>;
|
|
127
|
-
export declare function create(org: string, team: string, privacy?: 'secret' | 'closed'): Promise<any>;
|
|
128
|
-
export declare function addOrUpdateMember(org: string, team: string, username: string, role?: 'member' | 'maintainer'): Promise<any>;
|
|
129
|
-
export declare function removeMember(org: string, team: string, username: string): Promise<any>;
|
|
1
|
+
export declare function getTeamMembers(team: string, org: string, octokit?: any): Promise<any>;
|
|
2
|
+
export declare function getTeamInfo(team: string, org: string, octokit?: any): Promise<any>;
|
|
3
|
+
export declare function getTeamRoleUser(org: string, team: string, username: string, octokit?: any): Promise<any>;
|
|
4
|
+
export declare function create(org: string, team: string, privacy?: 'secret' | 'closed', octokit?: any): Promise<any>;
|
|
5
|
+
export declare function addOrUpdateMember(org: string, team: string, username: string, role?: 'member' | 'maintainer', octokit?: any): Promise<any>;
|
|
6
|
+
export declare function removeMember(org: string, team: string, username: string, octokit?: any): Promise<any>;
|
|
130
7
|
declare const _default: {
|
|
131
8
|
getTeamMembers: typeof getTeamMembers;
|
|
132
9
|
getTeamInfo: typeof getTeamInfo;
|