@effected/sbom 0.13.0 → 0.14.0
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/IdentityToken.js +1 -2
- package/InTotoStatement.js +1 -2
- package/NtiaReport.js +1 -2
- package/Sbom.js +1 -2
- package/SbomDocument.js +1 -2
- package/SbomMetadataSource.js +1 -2
- package/SigstoreBundle.js +1 -2
- package/SigstoreSigner.js +1 -2
- package/SlsaProvenance.js +1 -2
- package/index.d.ts +0 -18
- package/package.json +3 -3
package/IdentityToken.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context, Effect, Layer, Redacted, Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/IdentityToken.ts
|
|
4
4
|
/**
|
|
5
5
|
* Raised when an identity token cannot be obtained.
|
|
6
6
|
*
|
|
@@ -69,5 +69,4 @@ var IdentityToken = class IdentityToken extends Context.Service()("@effected/sbo
|
|
|
69
69
|
static layerTest = (overrides = {}) => Layer.succeed(IdentityToken, IdentityToken.makeTest(overrides));
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
//#endregion
|
|
73
72
|
export { IdentityToken, IdentityTokenError };
|
package/InTotoStatement.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Effect, Result, Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/InTotoStatement.ts
|
|
4
4
|
/**
|
|
5
5
|
* The in-toto Statement v1 type URI, stamped onto every statement this package
|
|
6
6
|
* emits.
|
|
@@ -159,5 +159,4 @@ var InTotoStatement = class InTotoStatement extends Schema.Class("InTotoStatemen
|
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
161
|
|
|
162
|
-
//#endregion
|
|
163
162
|
export { CYCLONEDX_BOM_PREDICATE, IN_TOTO_STATEMENT_V1, InTotoStatement, InTotoSubject, InvalidSha256DigestError, Sha256Digest };
|
package/NtiaReport.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/NtiaReport.ts
|
|
4
4
|
/**
|
|
5
5
|
* The seven NTIA minimum elements, by stable identifier.
|
|
6
6
|
*
|
|
@@ -141,5 +141,4 @@ elements: Schema.Array(NtiaElement) }) {
|
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
143
|
|
|
144
|
-
//#endregion
|
|
145
144
|
export { NtiaElement, NtiaElementId, NtiaReport };
|
package/Sbom.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BOM_FORMAT, SbomDocument, SbomMetadata, documentJson } from "./SbomDocument.js";
|
|
2
2
|
import { Effect, FileSystem, Schema } from "effect";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/Sbom.ts
|
|
5
5
|
/**
|
|
6
6
|
* Raised when a BOM cannot be written to disk.
|
|
7
7
|
*
|
|
@@ -98,5 +98,4 @@ var Sbom = class {
|
|
|
98
98
|
static write = write;
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
//#endregion
|
|
102
101
|
export { Sbom, SbomWriteError };
|
package/SbomDocument.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { License, isValidExpression } from "@effected/spdx";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/SbomDocument.ts
|
|
5
5
|
/** The BOM format discriminator. CycloneDX requires this exact string. */
|
|
6
6
|
const BOM_FORMAT = "CycloneDX";
|
|
7
7
|
/** The only specification version this package emits. */
|
|
@@ -219,5 +219,4 @@ const documentJson = (document) => compact({
|
|
|
219
219
|
components: document.components.map(componentJson)
|
|
220
220
|
});
|
|
221
221
|
|
|
222
|
-
//#endregion
|
|
223
222
|
export { BOM_FORMAT, Component, ComponentType, Contact, ExternalReference, ExternalReferenceType, SbomDocument, SbomMetadata, Supplier, documentJson };
|
package/SbomMetadataSource.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component, Contact, ExternalReference, SbomMetadata, Supplier } from "./SbomDocument.js";
|
|
2
2
|
import { Option } from "effect";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/SbomMetadataSource.ts
|
|
5
5
|
/** The purl namespace and name segments for an npm package name. */
|
|
6
6
|
const purlSegments = (name) => {
|
|
7
7
|
const separator = name.lastIndexOf("/");
|
|
@@ -205,5 +205,4 @@ var SbomMetadataSource = class {
|
|
|
205
205
|
static merge = merge;
|
|
206
206
|
};
|
|
207
207
|
|
|
208
|
-
//#endregion
|
|
209
208
|
export { SbomMetadataSource };
|
package/SigstoreBundle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/SigstoreBundle.ts
|
|
4
4
|
/**
|
|
5
5
|
* The Sigstore bundle media type this package produces.
|
|
6
6
|
*
|
|
@@ -44,5 +44,4 @@ var SigstoreBundle = class extends Schema.Class("SigstoreBundle")({
|
|
|
44
44
|
dsseEnvelope: Schema.Unknown
|
|
45
45
|
}) {};
|
|
46
46
|
|
|
47
|
-
//#endregion
|
|
48
47
|
export { IN_TOTO_PAYLOAD_TYPE, SIGSTORE_BUNDLE_V0_3_MEDIA_TYPE, SigstoreBundle };
|
package/SigstoreSigner.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Context, Effect, Layer, Redacted, Schema } from "effect";
|
|
|
4
4
|
import { bundleToJSON } from "@sigstore/bundle";
|
|
5
5
|
import { DSSEBundleBuilder, FulcioSigner, RekorWitness } from "@sigstore/sign";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/SigstoreSigner.ts
|
|
8
8
|
/**
|
|
9
9
|
* The OIDC audience Sigstore's certificate authority requires.
|
|
10
10
|
*
|
|
@@ -149,5 +149,4 @@ var SigstoreSigner = class SigstoreSigner extends Context.Service()("@effected/s
|
|
|
149
149
|
static layerTest = (overrides = {}) => Layer.succeed(SigstoreSigner, SigstoreSigner.makeTest(overrides));
|
|
150
150
|
};
|
|
151
151
|
|
|
152
|
-
//#endregion
|
|
153
152
|
export { SIGSTORE_OIDC_AUDIENCE, SigningError, SigningErrorKind, SigstoreSigner };
|
package/SlsaProvenance.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/SlsaProvenance.ts
|
|
4
4
|
/**
|
|
5
5
|
* The SLSA Provenance v1 predicate type URI.
|
|
6
6
|
*
|
|
@@ -154,5 +154,4 @@ var SlsaProvenance = class SlsaProvenance extends Schema.Class("SlsaProvenance")
|
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
//#endregion
|
|
158
157
|
export { GITHUB_BUILD_TYPE, SLSA_PROVENANCE_V1, SlsaBuildDefinition, SlsaProvenance, SlsaRunDetails };
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Package, Package as Package$1, Person, Repository } from "@effected/package-json";
|
|
2
2
|
import { Brand, Context, Effect, FileSystem, Layer, Redacted, Result, Schema } from "effect";
|
|
3
3
|
import { Signer, Witness } from "@sigstore/sign";
|
|
4
|
-
//#region src/IdentityToken.d.ts
|
|
5
4
|
declare const IdentityTokenError_base: Schema.Class<IdentityTokenError, Schema.TaggedStruct<"IdentityTokenError", {
|
|
6
5
|
/** The audience the token was requested for. */
|
|
7
6
|
readonly audience: Schema.String;
|
|
@@ -82,8 +81,6 @@ export declare class IdentityToken extends IdentityToken_base {
|
|
|
82
81
|
/** {@link (IdentityToken:class).makeTest} behind a `Layer`. */
|
|
83
82
|
static readonly layerTest: (overrides?: Partial<IdentityTokenShape>) => Layer.Layer<IdentityToken>;
|
|
84
83
|
}
|
|
85
|
-
//#endregion
|
|
86
|
-
//#region src/InTotoStatement.d.ts
|
|
87
84
|
/**
|
|
88
85
|
* The in-toto Statement v1 type URI, stamped onto every statement this package
|
|
89
86
|
* emits.
|
|
@@ -267,8 +264,6 @@ export declare class InTotoStatement extends InTotoStatement_base {
|
|
|
267
264
|
readonly space?: number | undefined;
|
|
268
265
|
}): string;
|
|
269
266
|
}
|
|
270
|
-
//#endregion
|
|
271
|
-
//#region src/SbomDocument.d.ts
|
|
272
267
|
/**
|
|
273
268
|
* The CycloneDX component types this package emits.
|
|
274
269
|
*
|
|
@@ -423,8 +418,6 @@ declare const SbomDocument_base: Schema.Class<SbomDocument, Schema.Struct<{
|
|
|
423
418
|
* @public
|
|
424
419
|
*/
|
|
425
420
|
export declare class SbomDocument extends SbomDocument_base {}
|
|
426
|
-
//#endregion
|
|
427
|
-
//#region src/NtiaReport.d.ts
|
|
428
421
|
/**
|
|
429
422
|
* The seven NTIA minimum elements, by stable identifier.
|
|
430
423
|
*
|
|
@@ -486,8 +479,6 @@ export declare class NtiaReport extends NtiaReport_base {
|
|
|
486
479
|
*/
|
|
487
480
|
static of(document: SbomDocument): NtiaReport;
|
|
488
481
|
}
|
|
489
|
-
//#endregion
|
|
490
|
-
//#region src/Sbom.d.ts
|
|
491
482
|
/**
|
|
492
483
|
* Input to {@link Sbom.generate}.
|
|
493
484
|
*
|
|
@@ -573,8 +564,6 @@ export declare class Sbom {
|
|
|
573
564
|
*/
|
|
574
565
|
static readonly write: (document: SbomDocument, path: string, options?: SbomJsonOptions | undefined) => Effect.Effect<void, SbomWriteError, FileSystem.FileSystem>;
|
|
575
566
|
}
|
|
576
|
-
//#endregion
|
|
577
|
-
//#region src/SbomMetadataSource.d.ts
|
|
578
567
|
/**
|
|
579
568
|
* What a manifest cannot supply, and the two places an explicit value wins.
|
|
580
569
|
*
|
|
@@ -736,8 +725,6 @@ export declare class SbomMetadataSource {
|
|
|
736
725
|
*/
|
|
737
726
|
static readonly merge: (base: SbomMetadata, override: SbomMetadata) => SbomMetadata;
|
|
738
727
|
}
|
|
739
|
-
//#endregion
|
|
740
|
-
//#region src/SigstoreBundle.d.ts
|
|
741
728
|
/**
|
|
742
729
|
* The Sigstore bundle media type this package produces.
|
|
743
730
|
*
|
|
@@ -781,8 +768,6 @@ declare const SigstoreBundle_base: Schema.Class<SigstoreBundle, Schema.Struct<{
|
|
|
781
768
|
* @public
|
|
782
769
|
*/
|
|
783
770
|
export declare class SigstoreBundle extends SigstoreBundle_base {}
|
|
784
|
-
//#endregion
|
|
785
|
-
//#region src/SigstoreSigner.d.ts
|
|
786
771
|
/**
|
|
787
772
|
* The OIDC audience Sigstore's certificate authority requires.
|
|
788
773
|
*
|
|
@@ -911,8 +896,6 @@ export declare class SigstoreSigner extends SigstoreSigner_base {
|
|
|
911
896
|
/** {@link (SigstoreSigner:class).makeTest} behind a `Layer`. */
|
|
912
897
|
static readonly layerTest: (overrides?: Partial<SigstoreSignerShape>) => Layer.Layer<SigstoreSigner>;
|
|
913
898
|
}
|
|
914
|
-
//#endregion
|
|
915
|
-
//#region src/SlsaProvenance.d.ts
|
|
916
899
|
/**
|
|
917
900
|
* The SLSA Provenance v1 predicate type URI.
|
|
918
901
|
*
|
|
@@ -1079,6 +1062,5 @@ export declare class SlsaProvenance extends SlsaProvenance_base {
|
|
|
1079
1062
|
*/
|
|
1080
1063
|
static forGitHubWorkflow(input: GitHubWorkflowProvenance): SlsaProvenance;
|
|
1081
1064
|
}
|
|
1082
|
-
//#endregion
|
|
1083
1065
|
export { type ComponentInput, type CopyrightYears, type GitHubWorkflowProvenance, type IdentityTokenShape, type InTotoStatementInput, type InTotoSubjectInput, Package, Person, type PredicateType, Repository, type SbomInput, type SbomJsonOptions, type SbomMetadataOptions, type SigstoreSignerOptions, type SigstoreSignerShape };
|
|
1084
1066
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/sbom",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "CycloneDX 1.6 SBOM construction, SLSA provenance, NTIA validation and Sigstore signing as typed services.",
|
|
6
6
|
"keywords": [
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"./package.json": "./package.json"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@effected/package-json": "^0.
|
|
43
|
-
"@effected/spdx": "^0.
|
|
42
|
+
"@effected/package-json": "^0.24.0",
|
|
43
|
+
"@effected/spdx": "^0.16.0",
|
|
44
44
|
"@sigstore/bundle": "^5.0.0",
|
|
45
45
|
"@sigstore/sign": "^5.0.0"
|
|
46
46
|
},
|