@opentdf/sdk 0.9.0-rc.82 → 0.10.0-beta.95
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 +2 -2
- package/dist/cjs/src/access/access-fetch.js +1 -2
- package/dist/cjs/src/access/access-rpc.js +1 -3
- package/dist/cjs/src/access.js +1 -14
- package/dist/cjs/src/auth/auth.js +13 -10
- package/dist/cjs/src/auth/dpop.js +121 -0
- package/dist/cjs/src/auth/oidc-clientcredentials-provider.js +37 -3
- package/dist/cjs/src/auth/oidc-externaljwt-provider.js +37 -3
- package/dist/cjs/src/auth/oidc-refreshtoken-provider.js +37 -3
- package/dist/cjs/src/auth/oidc.js +10 -8
- package/dist/cjs/src/auth/providers.js +35 -12
- package/dist/cjs/src/crypto/enums.js +1 -1
- package/dist/cjs/src/crypto/index.js +16 -2
- package/dist/cjs/src/crypto/pemPublicToCrypto.js +24 -20
- package/dist/cjs/src/errors.js +14 -2
- package/dist/cjs/src/index.js +8 -2
- package/dist/cjs/src/opentdf.js +50 -13
- package/dist/cjs/src/policy/discovery.js +188 -0
- package/dist/cjs/src/version.js +2 -2
- package/dist/cjs/tdf3/index.js +4 -2
- package/dist/cjs/tdf3/src/assertions.js +71 -31
- package/dist/cjs/tdf3/src/ciphers/aes-gcm-cipher.js +1 -1
- package/dist/cjs/tdf3/src/ciphers/symmetric-cipher-base.js +4 -2
- package/dist/cjs/tdf3/src/client/index.js +23 -33
- package/dist/cjs/tdf3/src/crypto/crypto-utils.js +12 -5
- package/dist/cjs/tdf3/src/crypto/declarations.js +1 -1
- package/dist/cjs/tdf3/src/crypto/index.js +849 -88
- package/dist/cjs/tdf3/src/crypto/jose/jwt-claims-set.js +11 -0
- package/dist/cjs/tdf3/src/crypto/jose/validate-crit.js +8 -0
- package/dist/cjs/tdf3/src/crypto/jose/vendor/lib/buffer_utils.js +41 -0
- package/dist/cjs/tdf3/src/crypto/jose/vendor/lib/epoch.js +6 -0
- package/dist/cjs/tdf3/src/crypto/jose/vendor/lib/is_object.js +21 -0
- package/dist/cjs/tdf3/src/crypto/jose/vendor/lib/jwt_claims_set.js +112 -0
- package/dist/cjs/tdf3/src/crypto/jose/vendor/lib/secs.js +60 -0
- package/dist/cjs/tdf3/src/crypto/jose/vendor/lib/validate_crit.js +38 -0
- package/dist/cjs/tdf3/src/crypto/jose/vendor/util/errors.js +135 -0
- package/dist/cjs/tdf3/src/crypto/jwt.js +183 -0
- package/dist/cjs/tdf3/src/crypto/salt.js +14 -8
- package/dist/cjs/tdf3/src/models/encryption-information.js +17 -20
- package/dist/cjs/tdf3/src/models/key-access.js +43 -63
- package/dist/cjs/tdf3/src/tdf.js +75 -75
- package/dist/cjs/tdf3/src/utils/index.js +5 -39
- package/dist/types/src/access/access-fetch.d.ts.map +1 -1
- package/dist/types/src/access/access-rpc.d.ts.map +1 -1
- package/dist/types/src/access.d.ts +0 -5
- package/dist/types/src/access.d.ts.map +1 -1
- package/dist/types/src/auth/auth.d.ts +9 -6
- package/dist/types/src/auth/auth.d.ts.map +1 -1
- package/dist/types/src/auth/dpop.d.ts +60 -0
- package/dist/types/src/auth/dpop.d.ts.map +1 -0
- package/dist/types/src/auth/oidc-clientcredentials-provider.d.ts +3 -2
- package/dist/types/src/auth/oidc-clientcredentials-provider.d.ts.map +1 -1
- package/dist/types/src/auth/oidc-externaljwt-provider.d.ts +3 -2
- package/dist/types/src/auth/oidc-externaljwt-provider.d.ts.map +1 -1
- package/dist/types/src/auth/oidc-refreshtoken-provider.d.ts +3 -2
- package/dist/types/src/auth/oidc-refreshtoken-provider.d.ts.map +1 -1
- package/dist/types/src/auth/oidc.d.ts +6 -4
- package/dist/types/src/auth/oidc.d.ts.map +1 -1
- package/dist/types/src/auth/providers.d.ts +5 -4
- package/dist/types/src/auth/providers.d.ts.map +1 -1
- package/dist/types/src/crypto/enums.d.ts +1 -1
- package/dist/types/src/crypto/index.d.ts +2 -1
- package/dist/types/src/crypto/index.d.ts.map +1 -1
- package/dist/types/src/crypto/pemPublicToCrypto.d.ts +18 -0
- package/dist/types/src/crypto/pemPublicToCrypto.d.ts.map +1 -1
- package/dist/types/src/errors.d.ts +8 -0
- package/dist/types/src/errors.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/opentdf.d.ts +26 -7
- package/dist/types/src/opentdf.d.ts.map +1 -1
- package/dist/types/src/policy/discovery.d.ts +74 -0
- package/dist/types/src/policy/discovery.d.ts.map +1 -0
- package/dist/types/src/version.d.ts +1 -1
- package/dist/types/src/version.d.ts.map +1 -1
- package/dist/types/tdf3/index.d.ts +3 -3
- package/dist/types/tdf3/index.d.ts.map +1 -1
- package/dist/types/tdf3/src/assertions.d.ts +23 -8
- package/dist/types/tdf3/src/assertions.d.ts.map +1 -1
- package/dist/types/tdf3/src/ciphers/aes-gcm-cipher.d.ts +3 -3
- package/dist/types/tdf3/src/ciphers/aes-gcm-cipher.d.ts.map +1 -1
- package/dist/types/tdf3/src/ciphers/symmetric-cipher-base.d.ts +4 -4
- package/dist/types/tdf3/src/ciphers/symmetric-cipher-base.d.ts.map +1 -1
- package/dist/types/tdf3/src/client/builders.d.ts +2 -2
- package/dist/types/tdf3/src/client/builders.d.ts.map +1 -1
- package/dist/types/tdf3/src/client/index.d.ts +6 -5
- package/dist/types/tdf3/src/client/index.d.ts.map +1 -1
- package/dist/types/tdf3/src/crypto/crypto-utils.d.ts +14 -4
- package/dist/types/tdf3/src/crypto/crypto-utils.d.ts.map +1 -1
- package/dist/types/tdf3/src/crypto/declarations.d.ts +283 -18
- package/dist/types/tdf3/src/crypto/declarations.d.ts.map +1 -1
- package/dist/types/tdf3/src/crypto/index.d.ts +105 -28
- package/dist/types/tdf3/src/crypto/index.d.ts.map +1 -1
- package/dist/types/tdf3/src/crypto/jose/jwt-claims-set.d.ts +3 -0
- package/dist/types/tdf3/src/crypto/jose/jwt-claims-set.d.ts.map +1 -0
- package/dist/types/tdf3/src/crypto/jose/validate-crit.d.ts +5 -0
- package/dist/types/tdf3/src/crypto/jose/validate-crit.d.ts.map +1 -0
- package/dist/types/tdf3/src/crypto/jose/vendor/lib/buffer_utils.d.ts +6 -0
- package/dist/types/tdf3/src/crypto/jose/vendor/lib/buffer_utils.d.ts.map +1 -0
- package/dist/types/tdf3/src/crypto/jose/vendor/lib/epoch.d.ts +3 -0
- package/dist/types/tdf3/src/crypto/jose/vendor/lib/epoch.d.ts.map +1 -0
- package/dist/types/tdf3/src/crypto/jose/vendor/lib/is_object.d.ts +3 -0
- package/dist/types/tdf3/src/crypto/jose/vendor/lib/is_object.d.ts.map +1 -0
- package/dist/types/tdf3/src/crypto/jose/vendor/lib/jwt_claims_set.d.ts +3 -0
- package/dist/types/tdf3/src/crypto/jose/vendor/lib/jwt_claims_set.d.ts.map +1 -0
- package/dist/types/tdf3/src/crypto/jose/vendor/lib/secs.d.ts +3 -0
- package/dist/types/tdf3/src/crypto/jose/vendor/lib/secs.d.ts.map +1 -0
- package/dist/types/tdf3/src/crypto/jose/vendor/lib/validate_crit.d.ts +3 -0
- package/dist/types/tdf3/src/crypto/jose/vendor/lib/validate_crit.d.ts.map +1 -0
- package/dist/types/tdf3/src/crypto/jose/vendor/util/errors.d.ts +76 -0
- package/dist/types/tdf3/src/crypto/jose/vendor/util/errors.d.ts.map +1 -0
- package/dist/types/tdf3/src/crypto/jwt.d.ts +76 -0
- package/dist/types/tdf3/src/crypto/jwt.d.ts.map +1 -0
- package/dist/types/tdf3/src/crypto/salt.d.ts +6 -1
- package/dist/types/tdf3/src/crypto/salt.d.ts.map +1 -1
- package/dist/types/tdf3/src/models/encryption-information.d.ts +4 -4
- package/dist/types/tdf3/src/models/encryption-information.d.ts.map +1 -1
- package/dist/types/tdf3/src/models/key-access.d.ts +8 -5
- package/dist/types/tdf3/src/models/key-access.d.ts.map +1 -1
- package/dist/types/tdf3/src/tdf.d.ts +8 -8
- package/dist/types/tdf3/src/tdf.d.ts.map +1 -1
- package/dist/types/tdf3/src/utils/index.d.ts +4 -3
- package/dist/types/tdf3/src/utils/index.d.ts.map +1 -1
- package/dist/web/src/access/access-fetch.js +3 -4
- package/dist/web/src/access/access-rpc.js +3 -5
- package/dist/web/src/access.js +1 -13
- package/dist/web/src/auth/auth.js +13 -10
- package/dist/web/src/auth/dpop.js +118 -0
- package/dist/web/src/auth/oidc-clientcredentials-provider.js +4 -3
- package/dist/web/src/auth/oidc-externaljwt-provider.js +4 -3
- package/dist/web/src/auth/oidc-refreshtoken-provider.js +4 -3
- package/dist/web/src/auth/oidc.js +11 -9
- package/dist/web/src/auth/providers.js +13 -12
- package/dist/web/src/crypto/enums.js +1 -1
- package/dist/web/src/crypto/index.js +4 -2
- package/dist/web/src/crypto/pemPublicToCrypto.js +18 -18
- package/dist/web/src/errors.js +12 -1
- package/dist/web/src/index.js +3 -2
- package/dist/web/src/opentdf.js +17 -13
- package/dist/web/src/policy/discovery.js +182 -0
- package/dist/web/src/version.js +2 -2
- package/dist/web/tdf3/index.js +3 -2
- package/dist/web/tdf3/src/assertions.js +71 -31
- package/dist/web/tdf3/src/ciphers/aes-gcm-cipher.js +1 -1
- package/dist/web/tdf3/src/ciphers/symmetric-cipher-base.js +4 -2
- package/dist/web/tdf3/src/client/index.js +25 -35
- package/dist/web/tdf3/src/crypto/crypto-utils.js +12 -5
- package/dist/web/tdf3/src/crypto/declarations.js +1 -1
- package/dist/web/tdf3/src/crypto/index.js +830 -84
- package/dist/web/tdf3/src/crypto/jose/jwt-claims-set.js +5 -0
- package/dist/web/tdf3/src/crypto/jose/validate-crit.js +3 -0
- package/dist/web/tdf3/src/crypto/jose/vendor/lib/buffer_utils.js +35 -0
- package/dist/web/tdf3/src/crypto/jose/vendor/lib/epoch.js +4 -0
- package/dist/web/tdf3/src/crypto/jose/vendor/lib/is_object.js +19 -0
- package/dist/web/tdf3/src/crypto/jose/vendor/lib/jwt_claims_set.js +107 -0
- package/dist/web/tdf3/src/crypto/jose/vendor/lib/secs.js +58 -0
- package/dist/web/tdf3/src/crypto/jose/vendor/lib/validate_crit.js +36 -0
- package/dist/web/tdf3/src/crypto/jose/vendor/util/errors.js +117 -0
- package/dist/web/tdf3/src/crypto/jwt.js +174 -0
- package/dist/web/tdf3/src/crypto/salt.js +13 -7
- package/dist/web/tdf3/src/models/encryption-information.js +11 -14
- package/dist/web/tdf3/src/models/key-access.js +44 -31
- package/dist/web/tdf3/src/tdf.js +71 -71
- package/dist/web/tdf3/src/utils/index.js +5 -6
- package/package.json +11 -4
- package/src/access/access-fetch.ts +2 -8
- package/src/access/access-rpc.ts +0 -7
- package/src/access.ts +0 -17
- package/src/auth/auth.ts +21 -12
- package/src/auth/dpop.ts +222 -0
- package/src/auth/oidc-clientcredentials-provider.ts +23 -15
- package/src/auth/oidc-externaljwt-provider.ts +23 -15
- package/src/auth/oidc-refreshtoken-provider.ts +23 -15
- package/src/auth/oidc.ts +21 -10
- package/src/auth/providers.ts +46 -29
- package/src/crypto/enums.ts +1 -1
- package/src/crypto/index.ts +21 -1
- package/src/crypto/pemPublicToCrypto.ts +18 -20
- package/src/errors.ts +9 -0
- package/src/index.ts +7 -0
- package/src/opentdf.ts +36 -17
- package/src/policy/discovery.ts +222 -0
- package/src/version.ts +1 -1
- package/tdf3/index.ts +32 -5
- package/tdf3/src/assertions.ts +99 -30
- package/tdf3/src/ciphers/aes-gcm-cipher.ts +7 -2
- package/tdf3/src/ciphers/symmetric-cipher-base.ts +7 -4
- package/tdf3/src/client/builders.ts +2 -2
- package/tdf3/src/client/index.ts +60 -59
- package/tdf3/src/crypto/crypto-utils.ts +15 -8
- package/tdf3/src/crypto/declarations.ts +338 -22
- package/tdf3/src/crypto/index.ts +1021 -118
- package/tdf3/src/crypto/jose/jwt-claims-set.ts +10 -0
- package/tdf3/src/crypto/jose/validate-crit.ts +9 -0
- package/tdf3/src/crypto/jose/vendor/lib/buffer_utils.ts +34 -0
- package/tdf3/src/crypto/jose/vendor/lib/epoch.ts +3 -0
- package/tdf3/src/crypto/jose/vendor/lib/is_object.ts +18 -0
- package/tdf3/src/crypto/jose/vendor/lib/jwt_claims_set.ts +106 -0
- package/tdf3/src/crypto/jose/vendor/lib/secs.ts +57 -0
- package/tdf3/src/crypto/jose/vendor/lib/validate_crit.ts +35 -0
- package/tdf3/src/crypto/jose/vendor/util/errors.ts +101 -0
- package/tdf3/src/crypto/jwt.ts +256 -0
- package/tdf3/src/crypto/salt.ts +16 -8
- package/tdf3/src/models/encryption-information.ts +14 -21
- package/tdf3/src/models/key-access.ts +57 -41
- package/tdf3/src/tdf.ts +110 -93
- package/tdf3/src/utils/index.ts +5 -6
|
@@ -2,6 +2,7 @@ import { type AuthProvider } from './auth/providers.js';
|
|
|
2
2
|
export { Client as TDF3Client } from '../tdf3/src/client/index.js';
|
|
3
3
|
import { type Source } from './seekable.js';
|
|
4
4
|
import { Client as TDF3Client } from '../tdf3/src/client/index.js';
|
|
5
|
+
import { type CryptoService, type KeyPair } from '../tdf3/src/crypto/declarations.js';
|
|
5
6
|
import { type Assertion, AssertionConfig, AssertionVerificationKeys } from '../tdf3/src/assertions.js';
|
|
6
7
|
import { type KasPublicKeyAlgorithm, isPublicKeyAlgorithm } from './access.js';
|
|
7
8
|
import { type Manifest } from '../tdf3/src/models/manifest.js';
|
|
@@ -9,7 +10,7 @@ import { type Payload } from '../tdf3/src/models/payload.js';
|
|
|
9
10
|
import { type Segment, type SplitType, type EncryptionInformation } from '../tdf3/src/models/encryption-information.js';
|
|
10
11
|
import { type KeyAccessObject } from '../tdf3/src/models/key-access.js';
|
|
11
12
|
import { type IntegrityAlgorithm } from '../tdf3/src/tdf.js';
|
|
12
|
-
export { type Assertion, type EncryptionInformation, type IntegrityAlgorithm, type KasPublicKeyAlgorithm, type KeyAccessObject, type Manifest, type Payload, type Segment, type SplitType, isPublicKeyAlgorithm, };
|
|
13
|
+
export { type Assertion, type CryptoService, type EncryptionInformation, type IntegrityAlgorithm, type KasPublicKeyAlgorithm, type KeyAccessObject, type Manifest, type Payload, type Segment, type SplitType, isPublicKeyAlgorithm, };
|
|
13
14
|
/** A map of key identifiers to cryptographic keys. */
|
|
14
15
|
export type Keys = {
|
|
15
16
|
[keyID: string]: CryptoKey | CryptoKeyPair;
|
|
@@ -51,7 +52,10 @@ export type SplitStep = {
|
|
|
51
52
|
*/
|
|
52
53
|
sid?: string;
|
|
53
54
|
};
|
|
54
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* Options specific to the ZTDF container format.
|
|
57
|
+
* @deprecated Use {@link CreateTDFOptions} instead.
|
|
58
|
+
*/
|
|
55
59
|
export type CreateZTDFOptions = CreateOptions & {
|
|
56
60
|
/** Configuration for bound metadata. */
|
|
57
61
|
assertionConfigs?: AssertionConfig[];
|
|
@@ -71,6 +75,8 @@ export type CreateZTDFOptions = CreateOptions & {
|
|
|
71
75
|
/** TDF spec version to target. */
|
|
72
76
|
tdfSpecVersion?: '4.2.2' | '4.3.0';
|
|
73
77
|
};
|
|
78
|
+
/** Options for creating a TDF. */
|
|
79
|
+
export type CreateTDFOptions = CreateZTDFOptions;
|
|
74
80
|
/** Settings for decrypting any variety of TDF file. */
|
|
75
81
|
export type ReadOptions = {
|
|
76
82
|
/** The ciphertext source. */
|
|
@@ -111,7 +117,13 @@ export type OpenTDFOptions = {
|
|
|
111
117
|
* These often must be registered via a DPoP flow with the IdP
|
|
112
118
|
* which is out of the scope of this library.
|
|
113
119
|
*/
|
|
114
|
-
dpopKeys?: Promise<
|
|
120
|
+
dpopKeys?: Promise<KeyPair>;
|
|
121
|
+
/**
|
|
122
|
+
* Optional custom CryptoService implementation.
|
|
123
|
+
* If not provided, defaults to the browser's native Web Crypto API.
|
|
124
|
+
* This allows injecting HSM-backed or other secure crypto implementations.
|
|
125
|
+
*/
|
|
126
|
+
cryptoService?: CryptoService;
|
|
115
127
|
};
|
|
116
128
|
/** A decorated readable stream. */
|
|
117
129
|
export type DecoratedStream = ReadableStream<Uint8Array> & {
|
|
@@ -168,7 +180,7 @@ export type TDFReader = {
|
|
|
168
180
|
* platformUrl: 'https://platform.example.com',
|
|
169
181
|
* });
|
|
170
182
|
*
|
|
171
|
-
* const cipherText = await client.
|
|
183
|
+
* const cipherText = await client.createTDF({
|
|
172
184
|
* source: { type: 'stream', location: source },
|
|
173
185
|
* autoconfigure: false,
|
|
174
186
|
* });
|
|
@@ -190,11 +202,18 @@ export declare class OpenTDF {
|
|
|
190
202
|
/** Default options for reading TDF objects. */
|
|
191
203
|
defaultReadOptions: Omit<ReadOptions, 'source'>;
|
|
192
204
|
/** The DPoP keys for this instance, if any. */
|
|
193
|
-
readonly dpopKeys: Promise<
|
|
205
|
+
readonly dpopKeys: Promise<KeyPair>;
|
|
206
|
+
/** The CryptoService implementation for this instance. */
|
|
207
|
+
readonly cryptoService: CryptoService;
|
|
194
208
|
/** The TDF3 client for encrypting and decrypting ZTDF files. */
|
|
195
209
|
readonly tdf3Client: TDF3Client;
|
|
196
|
-
constructor({ authProvider, dpopKeys, defaultCreateOptions, defaultReadOptions, disableDPoP, policyEndpoint, platformUrl, }: OpenTDFOptions);
|
|
197
|
-
/** Creates a new
|
|
210
|
+
constructor({ authProvider, dpopKeys, defaultCreateOptions, defaultReadOptions, disableDPoP, policyEndpoint, platformUrl, cryptoService, }: OpenTDFOptions);
|
|
211
|
+
/** Creates a new TDF stream. */
|
|
212
|
+
createTDF(opts: CreateTDFOptions): Promise<DecoratedStream>;
|
|
213
|
+
/**
|
|
214
|
+
* Creates a new TDF stream.
|
|
215
|
+
* @deprecated Use {@link createTDF} instead.
|
|
216
|
+
*/
|
|
198
217
|
createZTDF(opts: CreateZTDFOptions): Promise<DecoratedStream>;
|
|
199
218
|
/** Opens a TDF file for inspection and decryption. */
|
|
200
219
|
open(opts: ReadOptions): TDFReader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opentdf.d.ts","sourceRoot":"","sources":["../../../src/opentdf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,qB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AAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,kDAAkD;IAClD,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,4CAA4C;IAC5C,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,gDAAgD;IAChD,oBAAoB,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;IACpD,+CAA+C;IAC/C,kBAAkB,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IAChD,+CAA+C;IAC/C,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IACpC,0DAA0D;IAC1D,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,gEAAgE;IAChE,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;gBAEpB,EACV,YAAY,EACZ,QAAQ,EACR,oBAAoB,EACpB,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,WAAW,EACX,aAAa,GACd,EAAE,cAAc;IA0BjB,gCAAgC;IAC1B,SAAS,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;IAIjE;;;OAGG;IACG,UAAU,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,eAAe,CAAC;IAwBnE,sDAAsD;IACtD,IAAI,CAAC,IAAI,EAAE,WAAW,GAAG,SAAS;IAKlC,2BAA2B;IACrB,IAAI,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,eAAe,CAAC;IAKvD,8DAA8D;IAC9D,KAAK;CAGN"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type AuthProvider } from '../auth/auth.js';
|
|
2
|
+
import type { Attribute } from '../platform/policy/objects_pb.js';
|
|
3
|
+
/**
|
|
4
|
+
* Returns all active attributes available on the platform, auto-paginating through all results.
|
|
5
|
+
* An optional namespace name or ID may be provided to filter results.
|
|
6
|
+
*
|
|
7
|
+
* Use this before calling `createTDF()` to see what attributes are available for data tagging.
|
|
8
|
+
*
|
|
9
|
+
* @param platformUrl The platform base URL.
|
|
10
|
+
* @param authProvider An auth provider for the request.
|
|
11
|
+
* @param namespace Optional namespace name or ID to filter results.
|
|
12
|
+
* @returns All active {@link Attribute} objects on the platform.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const attrs = await listAttributes(platformUrl, authProvider);
|
|
17
|
+
* for (const a of attrs) {
|
|
18
|
+
* console.log(a.fqn);
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function listAttributes(platformUrl: string, authProvider: AuthProvider, namespace?: string): Promise<Attribute[]>;
|
|
23
|
+
/**
|
|
24
|
+
* Checks that all provided attribute value FQNs exist on the platform.
|
|
25
|
+
* Validates FQN format first, then verifies existence via the platform API.
|
|
26
|
+
*
|
|
27
|
+
* Use this before `createTDF()` to catch missing or misspelled attributes early
|
|
28
|
+
* instead of discovering the problem at decryption time.
|
|
29
|
+
*
|
|
30
|
+
* @param platformUrl The platform base URL.
|
|
31
|
+
* @param authProvider An auth provider for the request.
|
|
32
|
+
* @param fqns Attribute value FQNs to validate, in the form
|
|
33
|
+
* `https://<namespace>/attr/<name>/value/<value>`.
|
|
34
|
+
* @throws {@link AttributeNotFoundError} if any FQNs are not found on the platform.
|
|
35
|
+
* @throws {@link ConfigurationError} if the FQN format is invalid or there are too many FQNs.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* await validateAttributes(platformUrl, authProvider, [
|
|
40
|
+
* 'https://opentdf.io/attr/department/value/marketing',
|
|
41
|
+
* ]);
|
|
42
|
+
* // Safe to encrypt — all attributes confirmed present
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare function validateAttributes(platformUrl: string, authProvider: AuthProvider, fqns: string[]): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Reports whether the attribute definition identified by `attributeFqn` exists on the platform.
|
|
48
|
+
*
|
|
49
|
+
* `attributeFqn` should be an attribute-level FQN (no `/value/` segment):
|
|
50
|
+
* `https://<namespace>/attr/<attribute_name>`
|
|
51
|
+
*
|
|
52
|
+
* @param platformUrl The platform base URL.
|
|
53
|
+
* @param authProvider An auth provider for the request.
|
|
54
|
+
* @param attributeFqn The attribute-level FQN to check.
|
|
55
|
+
* @returns `true` if the attribute exists, `false` if it does not.
|
|
56
|
+
* @throws {@link ConfigurationError} if the FQN format is invalid or the URL is insecure.
|
|
57
|
+
* @throws {@link NetworkError} if a non-not-found service error occurs.
|
|
58
|
+
*/
|
|
59
|
+
export declare function attributeExists(platformUrl: string, authProvider: AuthProvider, attributeFqn: string): Promise<boolean>;
|
|
60
|
+
/**
|
|
61
|
+
* Reports whether the attribute value FQN exists on the platform.
|
|
62
|
+
*
|
|
63
|
+
* `valueFqn` should be a full attribute value FQN (with `/value/` segment):
|
|
64
|
+
* `https://<namespace>/attr/<attribute_name>/value/<value>`
|
|
65
|
+
*
|
|
66
|
+
* @param platformUrl The platform base URL.
|
|
67
|
+
* @param authProvider An auth provider for the request.
|
|
68
|
+
* @param valueFqn The attribute value FQN to check.
|
|
69
|
+
* @returns `true` if the value exists, `false` if it does not.
|
|
70
|
+
* @throws {@link ConfigurationError} if the FQN format is invalid or the URL is insecure.
|
|
71
|
+
* @throws {@link NetworkError} if a service error occurs.
|
|
72
|
+
*/
|
|
73
|
+
export declare function attributeValueExists(platformUrl: string, authProvider: AuthProvider, valueFqn: string): Promise<boolean>;
|
|
74
|
+
//# sourceMappingURL=discovery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../../../src/policy/discovery.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAyBlE;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,cAAc,CAClC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,YAAY,EAC1B,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,SAAS,EAAE,CAAC,CA6BtB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,YAAY,EAC1B,IAAI,EAAE,MAAM,EAAE,GACb,OAAO,CAAC,IAAI,CAAC,CAkCf;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,eAAe,CACnC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,OAAO,CAAC,CAqBlB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,oBAAoB,CACxC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,OAAO,CAAC,CAkBlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,OAAO,WAAW,CAAC;AAEhC;;GAEG;AACH,eAAO,MAAM,UAAU,YAAY,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,cAAc,UAAU,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { Binary } from './src/binary.js';
|
|
|
2
2
|
import { DecoratedReadableStream } from './src/client/DecoratedReadableStream.js';
|
|
3
3
|
import { type DecryptParams, DecryptParamsBuilder, type DecryptSource, type EncryptParams, type EncryptKeyMiddleware, type EncryptStreamMiddleware, type DecryptKeyMiddleware, type DecryptStreamMiddleware, EncryptParamsBuilder, type SplitStep } from './src/client/builders.js';
|
|
4
4
|
import { type ClientConfig, createSessionKeys } from './src/client/index.js';
|
|
5
|
-
import { type CryptoService, type DecryptResult, type EncryptResult, type PemKeyPair } from './src/crypto/declarations.js';
|
|
5
|
+
import { type AsymmetricSigningAlgorithm, type CryptoService, type DecryptResult, type ECCurve, type EncryptResult, type HashAlgorithm, type HkdfParams, type KeyPair, type KeyOptions, type KeyAlgorithm, type PemKeyPair, type PrivateKey, type PublicKey, type PublicKeyInfo, type SigningAlgorithm, type SymmetricKey, type SymmetricSigningAlgorithm } from './src/crypto/declarations.js';
|
|
6
6
|
import { Client, Errors, TDF3Client } from './src/index.js';
|
|
7
7
|
import { type KeyInfo, SplitKey, type EncryptionInformation } from './src/models/encryption-information.js';
|
|
8
8
|
import { AuthProvider, type HttpMethod, HttpRequest, withHeaders } from '../src/auth/auth.js';
|
|
@@ -11,8 +11,8 @@ import * as AuthProviders from '../src/auth/providers.js';
|
|
|
11
11
|
import { version, clientType } from '../src/version.js';
|
|
12
12
|
import { Algorithms, type AlgorithmName, type AlgorithmUrn } from './src/ciphers/algorithms.js';
|
|
13
13
|
import { type Chunker } from '../src/seekable.js';
|
|
14
|
-
export type { AlgorithmName, AlgorithmUrn, AuthProvider, Chunker, CryptoService, DecryptResult, EncryptResult, HttpMethod, PemKeyPair,
|
|
14
|
+
export type { AlgorithmName, AlgorithmUrn, AsymmetricSigningAlgorithm, AuthProvider, Chunker, CryptoService, DecryptKeyMiddleware, DecryptResult, DecryptStreamMiddleware, ECCurve, EncryptKeyMiddleware, EncryptResult, EncryptStreamMiddleware, HashAlgorithm, HkdfParams, HttpMethod, KeyPair, KeyOptions, KeyAlgorithm, PemKeyPair, PrivateKey, PublicKey, PublicKeyInfo, SigningAlgorithm, SplitStep, SymmetricKey, SymmetricSigningAlgorithm, };
|
|
15
15
|
export { AesGcmCipher, Algorithms, AuthProviders, Binary, Client, ClientConfig, DecoratedReadableStream, DecryptParams, DecryptParamsBuilder, DecryptSource, EncryptionInformation, EncryptParams, EncryptParamsBuilder, Errors, HttpRequest, KeyInfo, SplitKey, TDF3Client, clientType, createSessionKeys, withHeaders, version, };
|
|
16
|
-
export
|
|
16
|
+
export { DefaultCryptoService as WebCryptoService } from './src/crypto/index.js';
|
|
17
17
|
export { type CreateOptions, type CreateZTDFOptions, type DecoratedStream, type Keys, type OpenTDFOptions, type ReadOptions, type TDFReader, OpenTDF, } from '../src/opentdf.js';
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../tdf3/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EACL,KAAK,aAAa,EAClB,oBAAoB,EACpB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,oBAAoB,EACpB,KAAK,SAAS,EACf,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,KAAK,YAAY,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../tdf3/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EACL,KAAK,aAAa,EAClB,oBAAoB,EACpB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,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B,aAAa,EACb,UAAU,EACV,UAAU,EACV,OAAO,EACP,UAAU,EACV,YAAY,EACZ,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,yBAAyB,GAC1B,CAAC;AAEF,OAAO,EACL,YAAY,EACZ,UAAU,EACV,aAAa,EACb,MAAM,EACN,MAAM,EACN,YAAY,EACZ,uBAAuB,EACvB,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,oBAAoB,EACpB,MAAM,EACN,WAAW,EACX,OAAO,EACP,QAAQ,EACR,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,OAAO,GACR,CAAC;AAEF,OAAO,EAAE,oBAAoB,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEjF,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,IAAI,EACT,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,OAAO,GACR,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type CryptoService, type PrivateKey, type PublicKey, type SymmetricKey } from './crypto/declarations.js';
|
|
1
2
|
export type AssertionKeyAlg = 'ES256' | 'RS256' | 'HS256';
|
|
2
3
|
export type AssertionType = 'handling' | 'other';
|
|
3
4
|
export type Scope = 'tdo' | 'payload';
|
|
@@ -27,28 +28,42 @@ export type AssertionPayload = {
|
|
|
27
28
|
/**
|
|
28
29
|
* Computes the SHA-256 hash of the assertion object, excluding the 'binding' and 'hash' properties.
|
|
29
30
|
*
|
|
31
|
+
* @param a - The assertion to hash
|
|
32
|
+
* @param cryptoService - The crypto service to use for hashing
|
|
30
33
|
* @returns the hexadecimal string representation of the hash
|
|
31
34
|
*/
|
|
32
|
-
export declare function hash(a: Assertion): Promise<string>;
|
|
35
|
+
export declare function hash(a: Assertion, cryptoService: CryptoService): Promise<string>;
|
|
33
36
|
export declare function isAssertionConfig(obj: unknown): obj is AssertionConfig;
|
|
34
37
|
/**
|
|
35
38
|
* Verifies the signature of the assertion using the provided key.
|
|
36
39
|
*
|
|
37
|
-
* @param
|
|
38
|
-
* @
|
|
39
|
-
* @
|
|
40
|
+
* @param thiz - The assertion to verify.
|
|
41
|
+
* @param aggregateHash - The aggregate hash for integrity checking.
|
|
42
|
+
* @param key - The key used for verification.
|
|
43
|
+
* @param isLegacyTDF - Whether this is a legacy TDF format.
|
|
44
|
+
* @param cryptoService - The crypto service to use for verification.
|
|
45
|
+
* @throws {InvalidFileError} If the verification fails.
|
|
46
|
+
* @throws {IntegrityError} If the integrity check fails.
|
|
40
47
|
*/
|
|
41
|
-
export declare function verify(thiz: Assertion, aggregateHash: Uint8Array, key: AssertionKey, isLegacyTDF: boolean): Promise<void>;
|
|
48
|
+
export declare function verify(thiz: Assertion, aggregateHash: Uint8Array, key: AssertionKey, isLegacyTDF: boolean, cryptoService: CryptoService): Promise<void>;
|
|
42
49
|
/**
|
|
43
50
|
* Creates an Assertion object with the specified properties.
|
|
51
|
+
*
|
|
52
|
+
* @param aggregateHash - The aggregate hash for the assertion.
|
|
53
|
+
* @param assertionConfig - The configuration for the assertion.
|
|
54
|
+
* @param cryptoService - The crypto service to use for signing.
|
|
55
|
+
* @param targetVersion - The target TDF spec version.
|
|
56
|
+
* @returns The created assertion.
|
|
44
57
|
*/
|
|
58
|
+
export declare function CreateAssertion(aggregateHash: Uint8Array | string, assertionConfig: AssertionConfig, cryptoService: CryptoService, targetVersion?: string): Promise<Assertion>;
|
|
45
59
|
/**
|
|
46
|
-
*
|
|
60
|
+
* Key used for signing or verifying assertions.
|
|
61
|
+
* For asymmetric algorithms (RS256, ES256): PEM string, PrivateKey (for signing), or PublicKey (for verification).
|
|
62
|
+
* For symmetric algorithms (HS256): Uint8Array or SymmetricKey (opaque).
|
|
47
63
|
*/
|
|
48
|
-
export declare function CreateAssertion(aggregateHash: Uint8Array | string, assertionConfig: AssertionConfig, targetVersion?: string): Promise<Assertion>;
|
|
49
64
|
export type AssertionKey = {
|
|
50
65
|
alg: AssertionKeyAlg;
|
|
51
|
-
key:
|
|
66
|
+
key: string | Uint8Array | PrivateKey | PublicKey | SymmetricKey;
|
|
52
67
|
};
|
|
53
68
|
export type AssertionConfig = {
|
|
54
69
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertions.d.ts","sourceRoot":"","sources":["../../../../tdf3/src/assertions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"assertions.d.ts","sourceRoot":"","sources":["../../../../tdf3/src/assertions.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,YAAY,EAClB,MAAM,0BAA0B,CAAC;AAGlC,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAC1D,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,OAAO,CAAC;AACjD,MAAM,MAAM,KAAK,GAAG,KAAK,GAAG,SAAS,CAAC;AACtC,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,aAAa,CAAC;AACzD,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC;AAGlC,MAAM,MAAM,SAAS,GAAG;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAGF,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAGF,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,SAAS,EAAE,SAAS,CAAC;IAC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AC,MAAM,EAAE,YAAY,CAAC,CAAC;CACpC,CAAC;AAcF;;GAEG;AACH,wBAAgB,gCAAgC,IAAI,eAAe,CA+BlE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Binary } from '../binary.js';
|
|
2
2
|
import { SymmetricCipher } from './symmetric-cipher-base.js';
|
|
3
|
-
import { type CryptoService, type DecryptResult, type EncryptResult } from '../crypto/declarations.js';
|
|
3
|
+
import { type CryptoService, type DecryptResult, type EncryptResult, type SymmetricKey } from '../crypto/declarations.js';
|
|
4
4
|
export declare class AesGcmCipher extends SymmetricCipher {
|
|
5
5
|
constructor(cryptoService: CryptoService);
|
|
6
6
|
/**
|
|
@@ -8,11 +8,11 @@ export declare class AesGcmCipher extends SymmetricCipher {
|
|
|
8
8
|
* result from the crypto service and construct the payload automatically from
|
|
9
9
|
* it's parts. There is no need to process the payload.
|
|
10
10
|
*/
|
|
11
|
-
encrypt(payload: Binary, key:
|
|
11
|
+
encrypt(payload: Binary, key: SymmetricKey, iv: Binary): Promise<EncryptResult>;
|
|
12
12
|
/**
|
|
13
13
|
* Encrypts the payload using AES w/ CBC mode
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
|
-
decrypt(buffer: ArrayBuffer, key:
|
|
16
|
+
decrypt(buffer: ArrayBuffer, key: SymmetricKey, iv?: Binary): Promise<DecryptResult>;
|
|
17
17
|
}
|
|
18
18
|
//# sourceMappingURL=aes-gcm-cipher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aes-gcm-cipher.d.ts","sourceRoot":"","sources":["../../../../../tdf3/src/ciphers/aes-gcm-cipher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAG7D,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"aes-gcm-cipher.d.ts","sourceRoot":"","sources":["../../../../../tdf3/src/ciphers/aes-gcm-cipher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAG7D,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,2BAA2B,CAAC;AAyBnC,qBAAa,YAAa,SAAQ,eAAe;gBACnC,aAAa,EAAE,aAAa;IAOxC;;;;OAIG;IACY,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAY9F;;;OAGG;IAEY,OAAO,CACpB,MAAM,EAAE,WAAW,EACnB,GAAG,EAAE,YAAY,EACjB,EAAE,CAAC,EAAE,MAAM,GACV,OAAO,CAAC,aAAa,CAAC;CAW1B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Binary } from '../binary.js';
|
|
2
|
-
import { type CryptoService, type DecryptResult, type EncryptResult } from '../crypto/declarations.js';
|
|
2
|
+
import { type CryptoService, type DecryptResult, type EncryptResult, type SymmetricKey } from '../crypto/declarations.js';
|
|
3
3
|
export declare abstract class SymmetricCipher {
|
|
4
4
|
cryptoService: CryptoService;
|
|
5
5
|
name?: string;
|
|
@@ -7,8 +7,8 @@ export declare abstract class SymmetricCipher {
|
|
|
7
7
|
keyLength?: number;
|
|
8
8
|
constructor(cryptoService: CryptoService);
|
|
9
9
|
generateInitializationVector(): Promise<string>;
|
|
10
|
-
generateKey(): Promise<
|
|
11
|
-
abstract encrypt(payload: Binary, key:
|
|
12
|
-
abstract decrypt(payload: Uint8Array, key:
|
|
10
|
+
generateKey(): Promise<SymmetricKey>;
|
|
11
|
+
abstract encrypt(payload: Binary, key: SymmetricKey, iv: Binary): Promise<EncryptResult>;
|
|
12
|
+
abstract decrypt(payload: Uint8Array, key: SymmetricKey, iv?: Binary): Promise<DecryptResult>;
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=symmetric-cipher-base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"symmetric-cipher-base.d.ts","sourceRoot":"","sources":["../../../../../tdf3/src/ciphers/symmetric-cipher-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"symmetric-cipher-base.d.ts","sourceRoot":"","sources":["../../../../../tdf3/src/ciphers/symmetric-cipher-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,2BAA2B,CAAC;AAGnC,8BAAsB,eAAe;IACnC,aAAa,EAAE,aAAa,CAAC;IAE7B,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,SAAS,CAAC,EAAE,MAAM,CAAC;gBAEP,aAAa,EAAE,aAAa;IAIlC,4BAA4B,IAAI,OAAO,CAAC,MAAM,CAAC;IAQ/C,WAAW,IAAI,OAAO,CAAC,YAAY,CAAC;IAO1C,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAExF,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAC9F"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AttributeObject, KeyInfo, Policy } from '../models/index.js';
|
|
2
2
|
import { type Metadata } from '../tdf.js';
|
|
3
3
|
import { Binary } from '../binary.js';
|
|
4
|
-
import { PemKeyPair } from '../crypto/declarations.js';
|
|
4
|
+
import { PemKeyPair, type SymmetricKey } from '../crypto/declarations.js';
|
|
5
5
|
import { DecoratedReadableStream } from './DecoratedReadableStream.js';
|
|
6
6
|
import { type Chunker } from '../../../src/seekable.js';
|
|
7
7
|
import { AssertionConfig, AssertionVerificationKeys } from '../assertions.js';
|
|
@@ -302,7 +302,7 @@ declare class EncryptParamsBuilder {
|
|
|
302
302
|
*/
|
|
303
303
|
withSystemMetadataAssertion(systemMetadataAssertion: boolean): EncryptParamsBuilder;
|
|
304
304
|
}
|
|
305
|
-
export type DecryptKeyMiddleware = (key:
|
|
305
|
+
export type DecryptKeyMiddleware = (key: SymmetricKey) => Promise<SymmetricKey>;
|
|
306
306
|
export type DecryptStreamMiddleware = (stream: DecoratedReadableStream) => Promise<DecoratedReadableStream>;
|
|
307
307
|
export type DecryptSource = {
|
|
308
308
|
type: 'buffer';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../../../../../tdf3/src/client/builders.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../../../../../tdf3/src/client/builders.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,KAAK,QAAQ,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H,YAAY,CAAC,GAAG,EAAE,MAAM;IAOxB;;;;OAIG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAKhC;;;OAGG;IACH,eAAe,CAAC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC;IAIlD;;;OAGG;IACH,gBAAgB,CAAC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI;IAW1D;;;OAGG;IACH,eAAe,CAAC,MAAM,EAAE,MAAM;IAI9B;;;;OAIG;IACH,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAKtC;;;;OAIG;IACH,aAAa,CAAC,MAAM,EAAE,IAAI;IAO1B;;;;OAIG;IACH,cAAc,CAAC,MAAM,EAAE,IAAI,GAAG,IAAI;IAKlC;;;;;;;;OAQG;IACH,oBAAoB,CAAC,WAAW,EAAE,WAAW;IAI7C;;;;;OAKG;IACH,qBAAqB,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI;IAKrD,kCAAkC;IAClC,sBAAsB,CAAC,CAAC,EAAE,OAAO,GAAG,oBAAoB;IAKxD;;;;;OAKG;IACH,6BAA6B,CAC3B,yBAAyB,EAAE,yBAAyB,GACnD,oBAAoB;IAKvB,SAAS,CAAC,OAAO,EAAE,aAAa;gBA1LxB,aAAa;oBACT,eAAe;wBACX,oBAAoB;2BACjB,uBAAuB;oCACd,yBAAyB;2BAClC,MAAM;6BACJ,OAAO;+BACL,qBAAqB;oCAChB,MAAM,EAAE;;IAsLpC,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,oBAAoB;IAKzD;;;;OAIG;IACH,KAAK,IAAI,QAAQ,CAAC,aAAa,CAAC;CAMjC;AAED,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -4,12 +4,13 @@ import { type AuthProvider, HttpRequest, withHeaders } from '../../../src/auth/a
|
|
|
4
4
|
import { type DecryptParams, DecryptParamsBuilder, type DecryptSource, type EncryptParams, EncryptParamsBuilder } from './builders.js';
|
|
5
5
|
import { DecoratedReadableStream } from './DecoratedReadableStream.js';
|
|
6
6
|
import { type KasPublicKeyInfo, OriginAllowList } from '../../../src/access.js';
|
|
7
|
-
|
|
7
|
+
import { type KeyPair } from '../crypto/declarations.js';
|
|
8
|
+
export declare const resolveKasInfo: (pem: string, uri: string, cryptoService: CryptoService, kid?: string) => Promise<KasPublicKeyInfo>;
|
|
8
9
|
export interface ClientConfig {
|
|
9
10
|
cryptoService?: CryptoService;
|
|
10
11
|
clientId?: string;
|
|
11
12
|
dpopEnabled?: boolean;
|
|
12
|
-
dpopKeys?: Promise<
|
|
13
|
+
dpopKeys?: Promise<KeyPair>;
|
|
13
14
|
kasEndpoint: string;
|
|
14
15
|
/**
|
|
15
16
|
* Service to use to look up ABAC. Used during autoconfigure. Defaults to
|
|
@@ -45,8 +46,8 @@ export interface ClientConfig {
|
|
|
45
46
|
export declare function createSessionKeys({ authProvider, cryptoService, dpopKeys, }: {
|
|
46
47
|
authProvider?: AuthProvider;
|
|
47
48
|
cryptoService: CryptoService;
|
|
48
|
-
dpopKeys?: Promise<
|
|
49
|
-
}): Promise<
|
|
49
|
+
dpopKeys?: Promise<KeyPair>;
|
|
50
|
+
}): Promise<KeyPair>;
|
|
50
51
|
type KasKeyInfoCache = [
|
|
51
52
|
...Parameters<typeof fetchKasPublicKey>,
|
|
52
53
|
keyInfoPromise: ReturnType<typeof fetchKasPublicKey>
|
|
@@ -88,7 +89,7 @@ export declare class Client {
|
|
|
88
89
|
/**
|
|
89
90
|
* Session binding keys. Used for DPoP and signed request bodies.
|
|
90
91
|
*/
|
|
91
|
-
readonly dpopKeys: Promise<
|
|
92
|
+
readonly dpopKeys: Promise<KeyPair>;
|
|
92
93
|
readonly dpopEnabled: boolean;
|
|
93
94
|
readonly clientConfig: ClientConfig;
|
|
94
95
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../tdf3/src/client/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ACpE,yBAAyB,EACzB,kBAAkB,EAClB,gBAAoB,EACpB,oBAAoB,EACpB,yBAA8B,GAC/B,EAAE,aAAa,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAyCnD;;;;;;;;;OASG;IACG,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,aAAa,CAAA;KAAE;IASjD,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,aAAa,CAAA;KAAE;CAI1D;AAED,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,oBAAoB,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type PemKeyPair } from './declarations.js';
|
|
2
2
|
/**
|
|
3
3
|
* Validates a specified key size
|
|
4
4
|
* @param size in bits requested
|
|
@@ -28,7 +28,17 @@ export declare const formatAsPem: (bytes: ArrayBuffer, label: string) => string;
|
|
|
28
28
|
* @return String with formatting removed
|
|
29
29
|
*/
|
|
30
30
|
export declare const removePemFormatting: (input: string) => string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Type guard to check if a key pair is a PemKeyPair.
|
|
33
|
+
*/
|
|
34
|
+
export declare const isPemKeyPair: (i: PemKeyPair | CryptoKeyPair) => i is PemKeyPair;
|
|
35
|
+
/**
|
|
36
|
+
* Type guard to check if a key pair is a CryptoKeyPair.
|
|
37
|
+
*/
|
|
38
|
+
export declare const isCryptoKeyPair: (i: PemKeyPair | CryptoKeyPair) => i is CryptoKeyPair;
|
|
39
|
+
/**
|
|
40
|
+
* Convert a PemKeyPair to CryptoKeyPair for internal use.
|
|
41
|
+
* This is needed when interfacing with APIs that still require CryptoKey objects.
|
|
42
|
+
*/
|
|
43
|
+
export declare const toCryptoKeyPair: (input: PemKeyPair) => Promise<CryptoKeyPair>;
|
|
34
44
|
//# sourceMappingURL=crypto-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crypto-utils.d.ts","sourceRoot":"","sources":["../../../../../tdf3/src/crypto/crypto-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"crypto-utils.d.ts","sourceRoot":"","sources":["../../../../../tdf3/src/crypto/crypto-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,MAAM,MAAM,GAAG,SAAS,EAAE,UAAU,MAAM,KAAG,OAWrF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,WAAW,EAAE,OAAO,MAAM,KAAG,MAc/D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,KAAG,MAWnD,CAAC;AAKF;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,GAAG,UAAU,GAAG,aAAa,KAAG,CAAC,IAAI,UAcjE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,GAAG,UAAU,GAAG,aAAa,KAAG,CAAC,IAAI,aASpE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAU,OAAO,UAAU,KAAG,OAAO,CAAC,aAAa,CAa9E,CAAC"}
|