@firestartr/cli 2.6.0-snapshot-1 → 2.6.0-snapshot-3
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 +36405 -36720
- package/build/packages/gh_provisioner/src/entities/base.d.ts +5 -0
- package/build/packages/gh_provisioner/src/tp_bridge.d.ts +3 -1
- package/build/packages/github/index.d.ts +6 -10
- package/build/packages/github/src/auth.d.ts +0 -3
- package/build/packages/github/src/auth_installation.d.ts +0 -1
- package/build/packages/github/src/branches.d.ts +984 -4
- package/build/packages/github/src/encrypt.d.ts +6 -3
- 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/team.d.ts +129 -6
- package/build/packages/github/src/user.d.ts +1 -1
- package/build/packages/github/src/workflow.d.ts +4 -4
- package/build/packages/terraform_provisioner/src/project_tf.d.ts +3 -0
- package/build/packages/terraform_provisioner/src/project_tf_remote.d.ts +2 -0
- package/build/packages/terraform_provisioner/src/schema.d.ts +5 -0
- package/build/packages/terraform_provisioner/src/utils.d.ts +14 -0
- package/package.json +1 -1
- package/build/packages/github/src/config_resolver.d.ts +0 -8
- package/build/packages/github/src/profile.d.ts +0 -20
- package/build/packages/github/src/with_profile.d.ts +0 -888
- package/build/packages/operator/src/operator-env.d.ts +0 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export type RepoSecretsSection = 'actions' | 'dependabot' | 'codespaces';
|
|
2
|
-
export declare function getRepoPublicKey(owner: string, repo: string, section: RepoSecretsSection
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare function getRepoPublicKey(owner: string, repo: string, section: RepoSecretsSection): Promise<{
|
|
3
|
+
key_id: string;
|
|
4
|
+
key: string;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function encryptRepoSecret(owner: string, repo: string, section: RepoSecretsSection, plaintextValue: string): Promise<{
|
|
7
|
+
key_id: string;
|
|
5
8
|
encrypted_value: string;
|
|
6
9
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare function create(owner: string, repo: string, title: string, body: string, labels?: string[]
|
|
2
|
-
declare function update(owner: string, repo: string, issue_number: number, title: string, body: string, labels?: string[]
|
|
3
|
-
declare function filterBy(owner: string, repo: string, title: string, labels: string, state?: 'open' | 'closed' | 'all', creator?: string | undefined, assignee?: string | undefined
|
|
4
|
-
declare function upsertByTitle(owner: string, repo: string, title: string, body: string, labels?: string[]
|
|
5
|
-
declare function close(owner: string, repo: string, issue_number: number
|
|
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>;
|
|
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
|
|
2
|
-
export declare function getTeamList(org: string, perPageEntries?: number
|
|
3
|
-
export declare function getUserList(org: string, perPageEntries?: number
|
|
4
|
-
export declare function validateMember(username: string, org: string
|
|
5
|
-
export declare function getUserRoleInOrg(username: string, org: string
|
|
6
|
-
export declare function getOrgInfo(org: string
|
|
7
|
-
export declare function getWebhookList(org: string
|
|
8
|
-
export declare function getOrgTeamsDirectAccess(org: string
|
|
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<"admin" | "member" | "billing_manager">;
|
|
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>;
|
|
9
9
|
export declare function transformGraphQLResponse(response: any): any;
|
|
10
|
-
export declare function getOrgPlanName(org: string
|
|
10
|
+
export declare function getOrgPlanName(org: string): Promise<any>;
|
|
11
11
|
declare const _default: {
|
|
12
12
|
getRepositoryList: typeof getRepositoryList;
|
|
13
13
|
getTeamList: typeof getTeamList;
|
|
@@ -1,9 +1,132 @@
|
|
|
1
|
-
export declare function getTeamMembers(team: string, org: string
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
export declare function getTeamMembers(team: string, org: string): Promise<{
|
|
2
|
+
name?: string;
|
|
3
|
+
email?: string;
|
|
4
|
+
login: string;
|
|
5
|
+
id: number;
|
|
6
|
+
node_id: string;
|
|
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>;
|
|
7
130
|
declare const _default: {
|
|
8
131
|
getTeamMembers: typeof getTeamMembers;
|
|
9
132
|
getTeamInfo: typeof getTeamInfo;
|
|
@@ -22,14 +22,14 @@ export interface WorkflowCompletionResult {
|
|
|
22
22
|
* @param ref - Git ref to run on (branch, tag, or SHA)
|
|
23
23
|
* @param inputs - Workflow input key-value pairs (strings, numbers, or booleans)
|
|
24
24
|
*/
|
|
25
|
-
export declare function triggerWorkflow(owner: string, repo: string, workflowId: string | number, ref: string, inputs?: WorkflowDispatchInputs
|
|
25
|
+
export declare function triggerWorkflow(owner: string, repo: string, workflowId: string | number, ref: string, inputs?: WorkflowDispatchInputs): Promise<void>;
|
|
26
26
|
/**
|
|
27
27
|
* Get workflow run details
|
|
28
28
|
* @param owner - GitHub organization
|
|
29
29
|
* @param repo - Repository name
|
|
30
30
|
* @param runId - Workflow run ID
|
|
31
31
|
*/
|
|
32
|
-
export declare function getWorkflowRun(owner: string, repo: string, runId: number
|
|
32
|
+
export declare function getWorkflowRun(owner: string, repo: string, runId: number): Promise<WorkflowRunSummary>;
|
|
33
33
|
/**
|
|
34
34
|
* List recent workflow runs
|
|
35
35
|
* @param owner - GitHub organization
|
|
@@ -38,7 +38,7 @@ export declare function getWorkflowRun(owner: string, repo: string, runId: numbe
|
|
|
38
38
|
* @param branch - Optional branch name to filter by
|
|
39
39
|
* @param status - Optional status to filter by
|
|
40
40
|
*/
|
|
41
|
-
export declare function listWorkflowRuns(owner: string, repo: string, workflowId?: string | number, branch?: string, status?: WorkflowRunStatusFilter
|
|
41
|
+
export declare function listWorkflowRuns(owner: string, repo: string, workflowId?: string | number, branch?: string, status?: WorkflowRunStatusFilter): Promise<WorkflowRunSummary[]>;
|
|
42
42
|
/**
|
|
43
43
|
* Wait for workflow to complete with timeout
|
|
44
44
|
* Polls on the provided interval. Default timeout is 5 minutes (300000ms).
|
|
@@ -48,7 +48,7 @@ export declare function listWorkflowRuns(owner: string, repo: string, workflowId
|
|
|
48
48
|
* @param timeoutMs - Maximum time to wait in milliseconds (default: 300000ms / 5 minutes)
|
|
49
49
|
* @param pollIntervalMs - Polling interval in milliseconds (default: 10000ms / 10 seconds)
|
|
50
50
|
*/
|
|
51
|
-
export declare function waitForWorkflowCompletion(owner: string, repo: string, runId: number, timeoutMs?: number, pollIntervalMs?: number
|
|
51
|
+
export declare function waitForWorkflowCompletion(owner: string, repo: string, runId: number, timeoutMs?: number, pollIntervalMs?: number): Promise<WorkflowCompletionResult>;
|
|
52
52
|
declare const _default: {
|
|
53
53
|
triggerWorkflow: typeof triggerWorkflow;
|
|
54
54
|
getWorkflowRun: typeof getWorkflowRun;
|
|
@@ -6,6 +6,9 @@ import { WriterAdditionalFiles } from './writer_additional_files';
|
|
|
6
6
|
import { PassThrough } from 'stream';
|
|
7
7
|
import type { ProcessHandler } from './process_handler';
|
|
8
8
|
export declare class TFProjectManager {
|
|
9
|
+
tearUpProject(): Promise<void>;
|
|
10
|
+
ctx: any;
|
|
11
|
+
private _reuseActive;
|
|
9
12
|
mainTfWriter: WriterMainTf;
|
|
10
13
|
providerJsonWriter: WriterProviderJson;
|
|
11
14
|
tfVarsJsonWriter: WriterTfVarsJson;
|
|
@@ -6,7 +6,9 @@ import { WriterAdditionalFiles } from './writer_additional_files';
|
|
|
6
6
|
import { PassThrough } from 'stream';
|
|
7
7
|
import type { ProcessHandler } from './process_handler';
|
|
8
8
|
export declare class TFProjectManagerRemote {
|
|
9
|
+
tearUpProject(): Promise<void>;
|
|
9
10
|
writerTerraform: WriterTerraform;
|
|
11
|
+
private _reuseActive;
|
|
10
12
|
providerJsonWriter: WriterProviderJson;
|
|
11
13
|
tfVarsJsonWriter: WriterTfVarsJson;
|
|
12
14
|
additionalFilesWriter: WriterAdditionalFiles;
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { PassThrough } from 'stream';
|
|
3
3
|
import type { ProcessHandler } from './process_handler';
|
|
4
|
+
export declare function shouldWriteProviderJson(ctx: any): Promise<boolean>;
|
|
5
|
+
/**
|
|
6
|
+
* Compute the expected generated workspace files for Inline projects.
|
|
7
|
+
*/
|
|
8
|
+
export declare function computeInlineWorkspaceFiles(ctx: any): Promise<string[]>;
|
|
9
|
+
/**
|
|
10
|
+
* Compute the expected generated workspace files for Remote projects.
|
|
11
|
+
*/
|
|
12
|
+
export declare function computeRemoteWorkspaceFiles(ctx: any): Promise<string[]>;
|
|
13
|
+
/**
|
|
14
|
+
* Validate workspace structure: checks for existence of all required files/dirs.
|
|
15
|
+
* Returns array of missing paths (or [] if all exist).
|
|
16
|
+
*/
|
|
17
|
+
export declare function validateWorkspaceStructure(projectPath: string, expectedFiles: string[]): string[];
|
|
4
18
|
export declare function validate(path: string, secrets: any[]): Promise<unknown>;
|
|
5
19
|
export declare function init(path: string, secrets: any[], stream?: PassThrough, ctl?: ProcessHandler): Promise<unknown>;
|
|
6
20
|
export declare function initFromModule(path: string, source: string, secrets: any[], stream?: PassThrough, ctl?: ProcessHandler): Promise<unknown>;
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
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;
|