@firestartr/cli 2.11.0-snapshot-patch-claims-4 → 2.11.0-snapshot-org-secrets-01

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.
Files changed (31) hide show
  1. package/build/index.js +1881 -1475
  2. package/build/packages/cdk8s_renderer/imports/firestartr.dev.d.ts +491 -0
  3. package/build/packages/cdk8s_renderer/src/charts/github/index.d.ts +1 -0
  4. package/build/packages/cdk8s_renderer/src/charts/github/orgSecretSectionChart.d.ts +8 -0
  5. package/build/packages/cdk8s_renderer/src/charts/index.d.ts +2 -1
  6. package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +89 -0
  7. package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +89 -0
  8. package/build/packages/cdk8s_renderer/src/claims/github/orgSecrets.schema.d.ts +67 -0
  9. package/build/packages/cdk8s_renderer/src/claims/github/orgSettings.d.ts +20 -0
  10. package/build/packages/cdk8s_renderer/src/claims/github/orgsettings.schema.d.ts +24 -0
  11. package/build/packages/cdk8s_renderer/src/overriders/featureOverride.d.ts +11 -2
  12. package/build/packages/cdk8s_renderer/src/renderer/claims-render.d.ts +1 -1
  13. package/build/packages/cdk8s_renderer/src/validations/githubOrgSecretSection.d.ts +4 -0
  14. package/build/packages/features_preparer/index.d.ts +0 -3
  15. package/build/packages/features_preparer/src/index.d.ts +2 -5
  16. package/build/packages/features_preparer/src/installer.d.ts +0 -2
  17. package/build/packages/features_preparer/src/renderer.d.ts +0 -2
  18. package/build/packages/features_renderer/index.d.ts +1 -4
  19. package/build/packages/features_renderer/src/auxiliar.d.ts +3 -6
  20. package/build/packages/features_renderer/src/render.d.ts +1 -2
  21. package/build/packages/features_renderer/src/schema.d.ts +1 -7
  22. package/build/packages/gh_provisioner/src/entities/ghorgsecretsection/index.d.ts +7 -0
  23. package/build/packages/gh_provisioner/src/entities/ghorgsecretsection/secrets.d.ts +16 -0
  24. package/build/packages/github/index.d.ts +9 -3
  25. package/build/packages/github/src/orgSecrets.d.ts +10 -0
  26. package/build/packages/github/src/with_profile.d.ts +1 -1
  27. package/package.json +1 -1
  28. package/build/packages/cdk8s_renderer/src/claims/stitching/errors.d.ts +0 -14
  29. package/build/packages/cdk8s_renderer/src/claims/stitching/protectedPaths.d.ts +0 -3
  30. package/build/packages/cdk8s_renderer/src/claims/stitching/stitching.d.ts +0 -20
  31. package/build/packages/cdk8s_renderer/src/claims/stitching/validateFeatureDescriptors.d.ts +0 -1
@@ -529,6 +529,30 @@ export declare const GithubSchemas: ({
529
529
  }[];
530
530
  };
531
531
  };
532
+ org_secrets: {
533
+ type: string;
534
+ properties: {
535
+ actions: {
536
+ type: string;
537
+ items: {
538
+ $ref: string;
539
+ };
540
+ };
541
+ codespaces: {
542
+ type: string;
543
+ items: {
544
+ $ref: string;
545
+ };
546
+ };
547
+ dependabot: {
548
+ type: string;
549
+ items: {
550
+ $ref: string;
551
+ };
552
+ };
553
+ };
554
+ additionalProperties: boolean;
555
+ };
532
556
  };
533
557
  additionalProperties: boolean;
534
558
  required: string[];
@@ -699,4 +723,69 @@ export declare const GithubSchemas: ({
699
723
  };
700
724
  };
701
725
  };
726
+ } | {
727
+ $schema: string;
728
+ $id: string;
729
+ definitions: {
730
+ GithubOrgClaimSecrets: {
731
+ $id: string;
732
+ type: string;
733
+ description: string;
734
+ properties: {
735
+ actions: {
736
+ type: string;
737
+ items: {
738
+ $ref: string;
739
+ };
740
+ };
741
+ codespaces: {
742
+ type: string;
743
+ items: {
744
+ $ref: string;
745
+ };
746
+ };
747
+ dependabot: {
748
+ type: string;
749
+ items: {
750
+ $ref: string;
751
+ };
752
+ };
753
+ };
754
+ additionalProperties: boolean;
755
+ };
756
+ GithubOrgClaimSecretRef: {
757
+ $id: string;
758
+ type: string;
759
+ description: string;
760
+ pattern: string;
761
+ };
762
+ GithubOrgClaimSecret: {
763
+ $id: string;
764
+ type: string;
765
+ description: string;
766
+ properties: {
767
+ name: {
768
+ type: string;
769
+ description: string;
770
+ };
771
+ value: {
772
+ $ref: string;
773
+ };
774
+ visibility: {
775
+ type: string;
776
+ enum: string[];
777
+ description: string;
778
+ };
779
+ selected_repositories: {
780
+ type: string;
781
+ items: {
782
+ type: string;
783
+ };
784
+ description: string;
785
+ };
786
+ };
787
+ required: string[];
788
+ additionalProperties: boolean;
789
+ };
790
+ };
702
791
  })[];
@@ -0,0 +1,67 @@
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;
@@ -35,6 +35,26 @@ 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
+ };
38
58
  };
39
59
  };
40
60
  }
@@ -146,6 +146,30 @@ 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
+ };
149
173
  };
150
174
  additionalProperties: boolean;
151
175
  required: string[];
@@ -12,7 +12,7 @@ export declare class FeaturesOverrider extends OverriderPatches {
12
12
  getFeatureConfig(cr: any): any;
13
13
  setUpAndRunRenderer(cr: any): any;
14
14
  __validate(): Promise<boolean>;
15
- __patches(claim: any, _previousCR: any): Promise<{
15
+ __patches(claim: any, _previousCR: any): Promise<({
16
16
  validate(_cr: any): boolean;
17
17
  apply(cr: any): Promise<any>;
18
18
  identify(): string;
@@ -20,5 +20,14 @@ export declare class FeaturesOverrider extends OverriderPatches {
20
20
  applicableProviders: string[];
21
21
  };
22
22
  post(cr: any): Promise<import("../claims/github/repositoryFeature").IGithubRepositoryFeatureClaim>;
23
- }[]>;
23
+ isPostPatch?: undefined;
24
+ } | {
25
+ isPostPatch: boolean;
26
+ validate(): boolean;
27
+ apply(cr: any): Promise<any>;
28
+ identify(): string;
29
+ applicable(): {
30
+ applicableProviders: string[];
31
+ };
32
+ })[]>;
24
33
  }
@@ -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[], crs?: any): 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[], crs?: any, secretSectionPreviousCR?: any | false, secretSectionPatches?: ICustomResourcePatch[]): Promise<IRenderClaimResult>;
12
12
  export declare function renameVariantCrFiles(outputDir: string, renderedMap: RenderedCrMap): void;
@@ -0,0 +1,4 @@
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;
@@ -5,8 +5,5 @@ declare const _default: {
5
5
  renderFeatureFromPath: typeof import("./src/renderer").renderFeatureFromPath;
6
6
  getFeatureConfig: typeof import("./src/installer").getFeatureConfig;
7
7
  getFeatureConfigFromRef: typeof import("./src/installer").getFeatureConfigFromRef;
8
- getFeatureClaimPatches: typeof import("./src/installer").getFeatureClaimPatches;
9
- getFeatureClaimPatchesFromRef: typeof import("./src/installer").getFeatureClaimPatchesFromRef;
10
- getFeatureClaimPatchesFromPath: typeof import("./src/renderer").getFeatureClaimPatchesFromPath;
11
8
  };
12
9
  export default _default;
@@ -1,11 +1,8 @@
1
- import { getFeatureConfigFromRef, getFeatureConfig, getFeatureClaimPatches, getFeatureClaimPatchesFromRef, prepareFeature } from './installer';
2
- import { renderFeature, renderFeatureFromPath, getFeatureClaimPatchesFromPath } from './renderer';
1
+ import { getFeatureConfigFromRef, getFeatureConfig, prepareFeature } from './installer';
2
+ import { renderFeature, renderFeatureFromPath } from './renderer';
3
3
  declare const _default: {
4
4
  renderFeature: typeof renderFeature;
5
5
  renderFeatureFromPath: typeof renderFeatureFromPath;
6
- getFeatureClaimPatches: typeof getFeatureClaimPatches;
7
- getFeatureClaimPatchesFromRef: typeof getFeatureClaimPatchesFromRef;
8
- getFeatureClaimPatchesFromPath: typeof getFeatureClaimPatchesFromPath;
9
6
  getFeatureConfigFromRef: typeof getFeatureConfigFromRef;
10
7
  getFeatureConfig: typeof getFeatureConfig;
11
8
  prepareFeature: typeof prepareFeature;
@@ -2,8 +2,6 @@ export declare function getFeatureConfigFromRef(featureName: string, featureRef:
2
2
  featureArgs?: any, repo?: string, owner?: string): Promise<any>;
3
3
  export declare function getFeatureConfig(featureName: string, version: string, featureOwner: any, // -> cr
4
4
  featureArgs?: any, repo?: string, owner?: string): Promise<any>;
5
- export declare function getFeatureClaimPatches(featureName: string, version: string, featureOwner: any, featureArgs?: any, repo?: string, owner?: string): Promise<any[]>;
6
- export declare function getFeatureClaimPatchesFromRef(featureName: string, featureRef: string, featureOwner: any, featureArgs?: any, repo?: string, owner?: string): Promise<any[]>;
7
5
  export declare function resolveFeatureCommit(owner: string, repo: string, reference: string): Promise<{
8
6
  sha: string;
9
7
  tags: string[];
@@ -1,4 +1,2 @@
1
1
  export declare function renderFeature(featureName: string, version: string, owner: any, repo: any, featureOwner: any, renderPath?: string, featureArgs?: any): any;
2
2
  export declare function renderFeatureFromPath(extractPath: string, renderedPath: string, featureOwner: any, featureArgs?: any): any;
3
- export declare function getFeatureClaimPatches(featureName: string, version: string, owner: any, repo: any, featureOwner: any, featureArgs?: any): any[];
4
- export declare function getFeatureClaimPatchesFromPath(extractPath: string, featureOwner: any, featureArgs?: any): any[];
@@ -1,8 +1,7 @@
1
1
  import validate from './src/validate';
2
- import render, { buildContext, renderContent, expandFiles, getClaimPatches } from './src/render';
2
+ import render, { buildContext, renderContent, expandFiles } from './src/render';
3
3
  import updateFileContent from './src/update_file';
4
4
  import { validateFeatureArgs } from './src/featureArgsValidation';
5
- export { getClaimPatches, buildContext, renderContent, expandFiles };
6
5
  declare const _default: {
7
6
  validate: typeof validate;
8
7
  render: typeof render;
@@ -13,12 +12,10 @@ declare const _default: {
13
12
  buildExpectedOutput: (config: import("./src/auxiliar").FeatureConfig, renderDir: string) => import("./src/auxiliar").ExpectedOutput;
14
13
  loadAndValidateRenderTests: (featurePath: string) => import("./src/auxiliar").RenderTestsFile;
15
14
  resolveCrPath: (featurePath: string, crRelPath: string) => string;
16
- resolveClaimPath: (featurePath: string, claimRelPath: string) => string;
17
15
  };
18
16
  buildContext: typeof buildContext;
19
17
  renderContent: typeof renderContent;
20
18
  expandFiles: typeof expandFiles;
21
19
  validateFeatureArgs: typeof validateFeatureArgs;
22
- getClaimPatches: typeof getClaimPatches;
23
20
  };
24
21
  export default _default;
@@ -11,7 +11,7 @@ export interface ConfigFile {
11
11
  }
12
12
  export interface FeatureConfig {
13
13
  files?: ConfigFile[];
14
- claimPatches?: unknown[];
14
+ patches?: unknown[];
15
15
  }
16
16
  export interface ExpectedFile {
17
17
  localPath: string;
@@ -31,13 +31,12 @@ export interface Traceability {
31
31
  }
32
32
  export interface ExpectedOutput {
33
33
  files: ExpectedFile[];
34
- claimPatches: unknown[];
34
+ patches: unknown[];
35
35
  traceability?: Traceability;
36
36
  }
37
37
  export interface RenderTest {
38
38
  name: string;
39
- cr?: string;
40
- claim?: string;
39
+ cr: string;
41
40
  args?: Record<string, unknown>;
42
41
  }
43
42
  export interface RenderTestsFile {
@@ -72,7 +71,6 @@ export interface RenderContext {
72
71
  export declare function formatAjvErrors(errors: ErrorObject[] | null | undefined): string;
73
72
  declare function loadAndValidateRenderTests(featurePath: string): RenderTestsFile;
74
73
  declare function resolveCrPath(featurePath: string, crRelPath: string): string;
75
- declare function resolveClaimPath(featurePath: string, claimRelPath: string): string;
76
74
  export declare function listYamlFiles(dir: string): string[];
77
75
  declare function loadYaml<T = unknown>(file: string): T;
78
76
  declare function mkNamedTmp(...names: string[]): Promise<string>;
@@ -85,6 +83,5 @@ declare const _default: {
85
83
  buildExpectedOutput: typeof buildExpectedOutput;
86
84
  loadAndValidateRenderTests: typeof loadAndValidateRenderTests;
87
85
  resolveCrPath: typeof resolveCrPath;
88
- resolveClaimPath: typeof resolveClaimPath;
89
86
  };
90
87
  export default _default;
@@ -1,6 +1,5 @@
1
1
  export default function render(featurePath: string, featureRenderPath: string, entity: any, firestartrConfig?: any, featureArgs?: any): any;
2
- export declare function getClaimPatches(featurePath: string, entity: any, firestartrConfig?: any, featureArgs?: any): any[];
3
- export declare function buildContext(stitchedClaim: any, args: any, firestartrConfig: any, featureArgs: any): any;
2
+ export declare function buildContext(entity: any, args: any, firestartrConfig: any, featureArgs: any): any;
4
3
  export declare function expandFiles(featurePath: string, configData: any, context: any): void;
5
4
  export declare function renderContent(template: string, ctx: any): any;
6
5
  export declare function assertNonEmptyString(value: unknown, what: string): asserts value is string;
@@ -18,12 +18,6 @@ declare const _default: {
18
18
  $ref: string;
19
19
  };
20
20
  };
21
- claimPatches: {
22
- type: string;
23
- items: {
24
- $ref: string;
25
- };
26
- };
27
21
  patches: {
28
22
  type: string;
29
23
  patternProperties: {
@@ -135,7 +129,7 @@ declare const _default: {
135
129
  type: string;
136
130
  };
137
131
  value: {
138
- type: string[];
132
+ type: string;
139
133
  };
140
134
  };
141
135
  required: string[];
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,16 @@
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>;
@@ -2,7 +2,9 @@ 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';
5
6
  import type { RepoSecretsSection } from './src/encrypt';
7
+ import type { OrgSecretsSection } from './src/orgSecrets';
6
8
  import type { WorkflowCompletionResult, WorkflowDispatchInputs, WorkflowRunConclusion, WorkflowRunStatus, WorkflowRunStatusFilter, WorkflowRunSummary } from './src/workflow';
7
9
  import { withProfile } from './src/with_profile';
8
10
  import { createProfile } from './src/profile';
@@ -68,7 +70,7 @@ declare const _default: {
68
70
  getPrFiles: typeof import("./src/pull_request").getPrFiles;
69
71
  filterPrBy: (filter: {
70
72
  title: string;
71
- state: "closed" | "all" | "open";
73
+ state: "all" | "closed" | "open";
72
74
  repo: string;
73
75
  owner: string;
74
76
  userType: "Bot" | "User";
@@ -80,7 +82,7 @@ declare const _default: {
80
82
  create: (owner: string, repo: string, title: string, body: string, labels?: string[], octokit?: any) => Promise<any>;
81
83
  update: (owner: string, repo: string, issue_number: number, title: string, body: string, labels?: string[], octokit?: any) => Promise<any>;
82
84
  close: (owner: string, repo: string, issue_number: number, octokit?: any) => Promise<any>;
83
- filterBy: (owner: string, repo: string, title: string, labels: string, state?: "closed" | "all" | "open", creator?: string, assignee?: string, octokit?: any) => Promise<any>;
85
+ filterBy: (owner: string, repo: string, title: string, labels: string, state?: "all" | "closed" | "open", creator?: string, assignee?: string, octokit?: any) => Promise<any>;
84
86
  upsertByTitle: (owner: string, repo: string, title: string, body: string, labels?: string[], octokit?: any) => Promise<any>;
85
87
  };
86
88
  branches: {
@@ -103,10 +105,14 @@ declare const _default: {
103
105
  encryption: {
104
106
  encryptRepoSecret: typeof encryptRepoSecret;
105
107
  getRepoPublicKey: typeof getRepoPublicKey;
108
+ getOrgPublicKey: typeof getOrgPublicKey;
109
+ encryptOrgSecret: typeof encryptOrgSecret;
110
+ getOrgSecret: typeof getOrgSecret;
106
111
  };
107
112
  withProfile: typeof withProfile;
108
113
  createProfile: typeof createProfile;
109
114
  };
110
115
  export default _default;
111
- export { RepoSecretsSection, createProfile };
116
+ export { createProfile };
117
+ export type { RepoSecretsSection, OrgSecretsSection };
112
118
  export type { WorkflowCompletionResult, WorkflowDispatchInputs, WorkflowRunConclusion, WorkflowRunStatus, WorkflowRunStatusFilter, WorkflowRunSummary, };
@@ -0,0 +1,10 @@
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>;
@@ -853,7 +853,7 @@ export declare function withProfile(profileName: string): {
853
853
  create: (owner: string, repo: string, title: string, body: string, labels?: string[]) => Promise<any>;
854
854
  update: (owner: string, repo: string, issue_number: number, title: string, body: string, labels?: string[]) => Promise<any>;
855
855
  close: (owner: string, repo: string, issue_number: number) => Promise<any>;
856
- filterBy: (owner: string, repo: string, title: string, labels: string, state?: "closed" | "all" | "open", creator?: string, assignee?: string) => Promise<any>;
856
+ filterBy: (owner: string, repo: string, title: string, labels: string, state?: "all" | "closed" | "open", creator?: string, assignee?: string) => Promise<any>;
857
857
  upsertByTitle: (owner: string, repo: string, title: string, body: string, labels?: string[]) => Promise<any>;
858
858
  };
859
859
  workflow: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "2.11.0-snapshot-patch-claims-4",
3
+ "version": "2.11.0-snapshot-org-secrets-01",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",
@@ -1,14 +0,0 @@
1
- export type StitchingViolationReason = 'protected-path' | 'overwrite-protected' | 'duplicate-path' | 'user-declared-path';
2
- export interface StitchingViolation {
3
- feature: string;
4
- op: string;
5
- path: string;
6
- reason: StitchingViolationReason;
7
- conflictingFeature?: string;
8
- message: string;
9
- }
10
- export declare class StitchingError extends Error {
11
- violations: StitchingViolation[];
12
- constructor(violations: StitchingViolation[]);
13
- }
14
- export declare function formatStitchingError(error: StitchingError): string;
@@ -1,3 +0,0 @@
1
- export declare const PROTECTED_CLAIM_PATHS: string[];
2
- export declare function isProtectedPath(patchPath: string): boolean;
3
- export declare function normalizePointer(pointer: string): string;
@@ -1,20 +0,0 @@
1
- export interface FeaturePatchEnvelope {
2
- feature: string;
3
- patches: Array<{
4
- op: string;
5
- path: string;
6
- value?: unknown;
7
- name?: string;
8
- }>;
9
- }
10
- export declare function MOCK_STITCHING_FEATURES(mock?: (claim: unknown) => Promise<FeaturePatchEnvelope[]>): void;
11
- export declare const STITCHED_CLAIM: unique symbol;
12
- export declare function stitchClaim(claimAfterDefaults: unknown, preCollectedEnvelopes?: FeaturePatchEnvelope[], originalClaim?: unknown): Promise<unknown>;
13
- export declare function extractClaimPatches(rendered: {
14
- claimPatches?: unknown;
15
- }): Array<{
16
- op: string;
17
- path: string;
18
- value?: unknown;
19
- name?: string;
20
- }>;
@@ -1 +0,0 @@
1
- export declare function validateFeatureDescriptors(claim: unknown): void;