@firestartr/cli 2.11.0-snapshot-orgsettings-binding-2 → 2.11.0-snapshot-objects-in-patches-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.
@@ -551,30 +551,6 @@ export declare const GithubSchemas: ({
551
551
  }[];
552
552
  };
553
553
  };
554
- org_secrets: {
555
- type: string;
556
- properties: {
557
- actions: {
558
- type: string;
559
- items: {
560
- $ref: string;
561
- };
562
- };
563
- codespaces: {
564
- type: string;
565
- items: {
566
- $ref: string;
567
- };
568
- };
569
- dependabot: {
570
- type: string;
571
- items: {
572
- $ref: string;
573
- };
574
- };
575
- };
576
- additionalProperties: boolean;
577
- };
578
554
  };
579
555
  additionalProperties: boolean;
580
556
  required: string[];
@@ -694,69 +670,4 @@ export declare const GithubSchemas: ({
694
670
  additionalProperties: boolean;
695
671
  };
696
672
  };
697
- } | {
698
- $schema: string;
699
- $id: string;
700
- definitions: {
701
- GithubOrgClaimSecrets: {
702
- $id: string;
703
- type: string;
704
- description: string;
705
- properties: {
706
- actions: {
707
- type: string;
708
- items: {
709
- $ref: string;
710
- };
711
- };
712
- codespaces: {
713
- type: string;
714
- items: {
715
- $ref: string;
716
- };
717
- };
718
- dependabot: {
719
- type: string;
720
- items: {
721
- $ref: string;
722
- };
723
- };
724
- };
725
- additionalProperties: boolean;
726
- };
727
- GithubOrgClaimSecretRef: {
728
- $id: string;
729
- type: string;
730
- description: string;
731
- pattern: string;
732
- };
733
- GithubOrgClaimSecret: {
734
- $id: string;
735
- type: string;
736
- description: string;
737
- properties: {
738
- name: {
739
- type: string;
740
- description: string;
741
- };
742
- value: {
743
- $ref: string;
744
- };
745
- visibility: {
746
- type: string;
747
- enum: string[];
748
- description: string;
749
- };
750
- selected_repositories: {
751
- type: string;
752
- items: {
753
- type: string;
754
- };
755
- description: string;
756
- };
757
- };
758
- required: string[];
759
- additionalProperties: boolean;
760
- };
761
- };
762
673
  })[];
@@ -35,26 +35,6 @@ export interface IGithubOrgSettingsClaim extends IOrgSettingsClaim {
35
35
  visibility: 'all' | 'private' | 'selected';
36
36
  selected_repositories?: string[];
37
37
  }[];
38
- org_secrets?: {
39
- actions?: {
40
- name: string;
41
- value: string;
42
- visibility?: 'all' | 'private' | 'selected';
43
- selected_repositories?: string[];
44
- }[];
45
- codespaces?: {
46
- name: string;
47
- value: string;
48
- visibility?: 'all' | 'private' | 'selected';
49
- selected_repositories?: string[];
50
- }[];
51
- dependabot?: {
52
- name: string;
53
- value: string;
54
- visibility?: 'all' | 'private' | 'selected';
55
- selected_repositories?: string[];
56
- }[];
57
- };
58
38
  };
59
39
  };
60
40
  }
@@ -146,30 +146,6 @@ declare const _default: {
146
146
  }[];
147
147
  };
148
148
  };
149
- org_secrets: {
150
- type: string;
151
- properties: {
152
- actions: {
153
- type: string;
154
- items: {
155
- $ref: string;
156
- };
157
- };
158
- codespaces: {
159
- type: string;
160
- items: {
161
- $ref: string;
162
- };
163
- };
164
- dependabot: {
165
- type: string;
166
- items: {
167
- $ref: string;
168
- };
169
- };
170
- };
171
- additionalProperties: boolean;
172
- };
173
149
  };
174
150
  additionalProperties: boolean;
175
151
  required: string[];
@@ -8,5 +8,5 @@ export declare function renderClaims(catalogScope: Construct, firestartrScope: C
8
8
  crs: any;
9
9
  renames?: IRenameResult[];
10
10
  }): Promise<RenderedCrMap>;
11
- export declare function renderClaim(catalogScope: Construct, firestartrScope: Construct, claim: any, patches: ICustomResourcePatch[], previousCR?: any | null, claimPath?: string, variableSectionPreviousCR?: any | false, variableSectionPatches?: ICustomResourcePatch[], secretSectionPreviousCR?: any | false, secretSectionPatches?: ICustomResourcePatch[]): Promise<IRenderClaimResult>;
11
+ export declare function renderClaim(catalogScope: Construct, firestartrScope: Construct, claim: any, patches: ICustomResourcePatch[], previousCR?: any | null, claimPath?: string, variableSectionPreviousCR?: any | false, variableSectionPatches?: ICustomResourcePatch[]): Promise<IRenderClaimResult>;
12
12
  export declare function renameVariantCrFiles(outputDir: string, renderedMap: RenderedCrMap): void;
@@ -129,7 +129,7 @@ declare const _default: {
129
129
  type: string;
130
130
  };
131
131
  value: {
132
- type: string;
132
+ type: string[];
133
133
  };
134
134
  };
135
135
  required: string[];
@@ -2,9 +2,7 @@ import { createCheckRun } from './src/check_run';
2
2
  import { upsertMultiPartStickyComments } from './src/sticky_comment';
3
3
  import { getOctokitForOrg, getGithubAppToken, getOctokitFromPat } from './src/auth';
4
4
  import { encryptRepoSecret, getRepoPublicKey } from './src/encrypt';
5
- import { getOrgPublicKey, encryptOrgSecret, getOrgSecret } from './src/orgSecrets';
6
5
  import type { RepoSecretsSection } from './src/encrypt';
7
- import type { OrgSecretsSection } from './src/orgSecrets';
8
6
  import type { WorkflowCompletionResult, WorkflowDispatchInputs, WorkflowRunConclusion, WorkflowRunStatus, WorkflowRunStatusFilter, WorkflowRunSummary } from './src/workflow';
9
7
  import { withProfile } from './src/with_profile';
10
8
  import { createProfile } from './src/profile';
@@ -105,14 +103,10 @@ declare const _default: {
105
103
  encryption: {
106
104
  encryptRepoSecret: typeof encryptRepoSecret;
107
105
  getRepoPublicKey: typeof getRepoPublicKey;
108
- getOrgPublicKey: typeof getOrgPublicKey;
109
- encryptOrgSecret: typeof encryptOrgSecret;
110
- getOrgSecret: typeof getOrgSecret;
111
106
  };
112
107
  withProfile: typeof withProfile;
113
108
  createProfile: typeof createProfile;
114
109
  };
115
110
  export default _default;
116
- export { createProfile };
117
- export type { RepoSecretsSection, OrgSecretsSection };
111
+ export { RepoSecretsSection, createProfile };
118
112
  export type { WorkflowCompletionResult, WorkflowDispatchInputs, WorkflowRunConclusion, WorkflowRunStatus, WorkflowRunStatusFilter, WorkflowRunSummary, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "2.11.0-snapshot-orgsettings-binding-2",
3
+ "version": "2.11.0-snapshot-objects-in-patches-2",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",
@@ -1,8 +0,0 @@
1
- import { FirestartrGithubOrganizationSecretSection, FirestartrGithubOrganizationSecretSectionProps } from '../../../imports/firestartr.dev';
2
- import { IUnitializedStateKey } from '../../claims/base';
3
- import { BaseGithubChart } from './base';
4
- export declare class GithubOrgSecretSectionChart extends BaseGithubChart {
5
- template(): FirestartrGithubOrganizationSecretSectionProps | IUnitializedStateKey;
6
- gvk(): import("cdk8s").GroupVersionKind;
7
- instanceApiObject(template: any): FirestartrGithubOrganizationSecretSection;
8
- }
@@ -1,67 +0,0 @@
1
- declare const _default: {
2
- $schema: string;
3
- $id: string;
4
- definitions: {
5
- GithubOrgClaimSecrets: {
6
- $id: string;
7
- type: string;
8
- description: string;
9
- properties: {
10
- actions: {
11
- type: string;
12
- items: {
13
- $ref: string;
14
- };
15
- };
16
- codespaces: {
17
- type: string;
18
- items: {
19
- $ref: string;
20
- };
21
- };
22
- dependabot: {
23
- type: string;
24
- items: {
25
- $ref: string;
26
- };
27
- };
28
- };
29
- additionalProperties: boolean;
30
- };
31
- GithubOrgClaimSecretRef: {
32
- $id: string;
33
- type: string;
34
- description: string;
35
- pattern: string;
36
- };
37
- GithubOrgClaimSecret: {
38
- $id: string;
39
- type: string;
40
- description: string;
41
- properties: {
42
- name: {
43
- type: string;
44
- description: string;
45
- };
46
- value: {
47
- $ref: string;
48
- };
49
- visibility: {
50
- type: string;
51
- enum: string[];
52
- description: string;
53
- };
54
- selected_repositories: {
55
- type: string;
56
- items: {
57
- type: string;
58
- };
59
- description: string;
60
- };
61
- };
62
- required: string[];
63
- additionalProperties: boolean;
64
- };
65
- };
66
- };
67
- export default _default;
@@ -1,4 +0,0 @@
1
- import { RenderClaims, RenderedCrMap } from '../renderer/types';
2
- export declare function validateGithubOrgSecretSectionSingleton(crs: RenderedCrMap): void;
3
- export declare function validateSecretNamesUniqueness(crs: RenderedCrMap): void;
4
- export declare function validateOrgSecretsCrossReferences(renderClaims: RenderClaims): void;
@@ -1,7 +0,0 @@
1
- import { Entity } from '../base';
2
- export declare class EntityGHOrgSecretSection extends Entity {
3
- constructor(artifact: any);
4
- loadResources(tfOp: string): Promise<void>;
5
- postProvision(_tfOp: string): Promise<void>;
6
- loadAddressesToImport(): Promise<void>;
7
- }
@@ -1,16 +0,0 @@
1
- import type { EntityGHOrgSecretSection } from '.';
2
- import { type OrgSecretsSection } from 'github';
3
- export type SecretEntry = {
4
- name: string;
5
- ref: {
6
- kind: string;
7
- name: string;
8
- key: string;
9
- };
10
- visibility: string;
11
- selectedRepositories?: string[];
12
- };
13
- declare const SECTIONS: OrgSecretsSection[];
14
- export { SECTIONS };
15
- export declare function provisionOrgSecrets(entity: EntityGHOrgSecretSection, secrets: Record<string, SecretEntry[]>): Promise<void>;
16
- export declare function adoptSecretsIfNeeded(entity: EntityGHOrgSecretSection, secrets: Record<string, SecretEntry[]>): Promise<void>;
@@ -1,10 +0,0 @@
1
- export type OrgSecretsSection = 'actions' | 'dependabot' | 'codespaces';
2
- export declare function getOrgPublicKey(org: string, section: OrgSecretsSection, octokit?: any): Promise<any>;
3
- export declare function encryptOrgSecret(org: string, section: OrgSecretsSection, plaintextValue: string, preFetchedKey?: {
4
- key_id: string;
5
- key: string;
6
- }, octokit?: any): Promise<{
7
- key_id: any;
8
- encrypted_value: string;
9
- }>;
10
- export declare function getOrgSecret(org: string, section: OrgSecretsSection, name: string, octokit?: any): Promise<any>;