@firestartr/cli 2.6.0-snapshot → 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/README.md +0 -2
- package/build/index.js +37271 -44315
- package/build/packages/catalog_common/index.d.ts +9 -1
- package/build/packages/catalog_common/src/codeowners/index.d.ts +26 -0
- package/build/packages/catalog_common/src/types/envvars.d.ts +0 -4
- package/build/packages/cdk8s_renderer/src/charts/catalog/tfWorkspaceChart.d.ts +2 -2
- package/build/packages/cdk8s_renderer/src/normalizers/refValues.d.ts +6 -10
- package/build/packages/cdk8s_renderer/src/normalizers/tfworkspace.d.ts +1 -4
- package/build/packages/cdk8s_renderer/src/refsSorter/refsExtractor.d.ts +3 -6
- package/build/packages/gh_provisioner/src/entities/ghrepo/helpers/branch_protections.d.ts +7 -0
- package/build/packages/gh_provisioner/src/entities/ghrepo/helpers/index.d.ts +1 -0
- package/build/packages/gh_provisioner/src/entities/ghrepo/index.d.ts +1 -0
- package/build/packages/github/index.d.ts +11 -7
- 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/repository.d.ts +2 -2
- 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/importer/src/decanter/gh/github_repo.d.ts +2 -0
- package/build/packages/operator/src/definitions.d.ts +15 -1
- package/build/packages/operator/src/operator-env.d.ts +1 -0
- package/build/packages/operator/src/processItem.blocks.d.ts +40 -0
- package/build/packages/operator/src/processItem.d.ts +2 -1
- package/build/packages/operator/src/processItem.slot.d.ts +5 -2
- package/build/packages/operator/src/tfm_mirrors.d.ts +5 -0
- package/build/packages/terraform_provisioner/index.d.ts +21 -1
- package/build/packages/terraform_provisioner/src/index.d.ts +2 -0
- package/build/packages/terraform_provisioner/src/mirror-repos/index.d.ts +41 -0
- package/build/packages/terraform_provisioner/src/mirror-repos.d.ts +13 -0
- package/build/packages/terraform_provisioner/src/project_tf_remote.d.ts +0 -1
- package/build/packages/terraform_provisioner/src/utils.d.ts +19 -1
- package/package.json +1 -1
- package/build/202.index.js +0 -46
- package/build/697.index.js +0 -80
- package/build/87.index.js +0 -80
- package/build/902.index.js +0 -36
- package/build/915.index.js +0 -79
- package/build/packages/cdk8s_renderer/src/utils/tfwp-refs.d.ts +0 -13
|
@@ -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;
|
|
@@ -1322,12 +1322,12 @@ export declare function uploadFile(destinationPath: string, filePath: string, re
|
|
|
1322
1322
|
export declare function deleteFile(path: string, repo: string, owner?: string, branch?: string, message?: string): Promise<void>;
|
|
1323
1323
|
export declare function addStatusCheck(output: any, is_failure: boolean, head_sha: string, name: string, status: string, repo: string, owner?: string): Promise<void>;
|
|
1324
1324
|
export declare function addCommitStatus(state: commitStatusState, sha: string, repo: string, owner?: string, target_url?: string, description?: string, context?: string): Promise<void>;
|
|
1325
|
-
export declare function tryCreateRef(ref: string, sha: string, repo: string, owner?: string): Promise<boolean>;
|
|
1326
1325
|
export declare function getRepoIssuesLabels(owner: string, repo: string): Promise<{
|
|
1327
1326
|
name: string;
|
|
1328
1327
|
description: string;
|
|
1329
1328
|
color: string;
|
|
1330
1329
|
}[]>;
|
|
1330
|
+
export declare function isEmptyRepo(owner: string, name: string): Promise<boolean>;
|
|
1331
1331
|
declare const _default: {
|
|
1332
1332
|
listReleases: typeof listReleases;
|
|
1333
1333
|
getReleaseByTag: typeof getReleaseByTag;
|
|
@@ -1344,7 +1344,7 @@ declare const _default: {
|
|
|
1344
1344
|
getOIDCRepo: typeof getOIDCRepo;
|
|
1345
1345
|
addStatusCheck: typeof addStatusCheck;
|
|
1346
1346
|
addCommitStatus: typeof addCommitStatus;
|
|
1347
|
-
tryCreateRef: typeof tryCreateRef;
|
|
1348
1347
|
getRepoIssuesLabels: typeof getRepoIssuesLabels;
|
|
1348
|
+
isEmptyRepo: typeof isEmptyRepo;
|
|
1349
1349
|
};
|
|
1350
1350
|
export default _default;
|
|
@@ -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;
|