@midnight-ntwrk/midnight-js-types 4.1.0 → 4.1.1

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/dist/errors.d.ts CHANGED
@@ -14,13 +14,13 @@ export declare class InvalidProtocolSchemeError extends Error {
14
14
  * An error thrown when exporting private states fails.
15
15
  */
16
16
  export declare class PrivateStateExportError extends Error {
17
- constructor(message: string);
17
+ constructor(message: string, options?: ErrorOptions);
18
18
  }
19
19
  /**
20
20
  * An error thrown when exporting signing keys fails.
21
21
  */
22
22
  export declare class SigningKeyExportError extends Error {
23
- constructor(message: string);
23
+ constructor(message: string, options?: ErrorOptions);
24
24
  }
25
25
  /**
26
26
  * Cause types for private state import errors.
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAeA;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,KAAK;aAMjC,aAAa,EAAE,MAAM;aACrB,gBAAgB,EAAE,MAAM,EAAE;IAN5C;;;OAGG;gBAEe,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,MAAM,EAAE;CAI7C;AAED;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,KAAK;gBACpC,OAAO,EAAE,MAAM;CAI5B;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,KAAK;gBAClC,OAAO,EAAE,MAAM;CAI5B;AAED;;GAEG;AACH,MAAM,MAAM,4BAA4B,GACpC,mBAAmB,GACnB,gBAAgB,GAChB,UAAU,GACV,SAAS,CAAC;AAEd;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,KAAK;aAG9B,KAAK,CAAC,EAAE,4BAA4B;gBADpD,OAAO,EAAE,MAAM,EACC,KAAK,CAAC,EAAE,4BAA4B,YAAA;CAKvD;AAED;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,uBAAuB;;CAQjE;AAED;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,uBAAuB;gBACvD,OAAO,SAA0B;CAI9C;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,uBAAuB;aAE5C,aAAa,EAAE,MAAM;gBAArB,aAAa,EAAE,MAAM,EACrC,UAAU,SAAkB;CAQ/B"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAeA;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,KAAK;aAMjC,aAAa,EAAE,MAAM;aACrB,gBAAgB,EAAE,MAAM,EAAE;IAN5C;;;OAGG;gBAEe,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,MAAM,EAAE;CAI7C;AAED;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,KAAK;gBACpC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,KAAK;gBAClC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD;AAED;;GAEG;AACH,MAAM,MAAM,4BAA4B,GACpC,mBAAmB,GACnB,gBAAgB,GAChB,UAAU,GACV,SAAS,CAAC;AAEd;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,KAAK;aAG9B,KAAK,CAAC,EAAE,4BAA4B;gBADpD,OAAO,EAAE,MAAM,EACC,KAAK,CAAC,EAAE,4BAA4B,YAAA;CAKvD;AAED;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,uBAAuB;;CAQjE;AAED;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,uBAAuB;gBACvD,OAAO,SAA0B;CAI9C;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,uBAAuB;aAE5C,aAAa,EAAE,MAAM;gBAArB,aAAa,EAAE,MAAM,EACrC,UAAU,SAAkB;CAQ/B"}
package/dist/index.cjs CHANGED
@@ -143,8 +143,8 @@ class InvalidProtocolSchemeError extends Error {
143
143
  * An error thrown when exporting private states fails.
144
144
  */
145
145
  class PrivateStateExportError extends Error {
146
- constructor(message) {
147
- super(message);
146
+ constructor(message, options) {
147
+ super(message, options);
148
148
  this.name = 'PrivateStateExportError';
149
149
  }
150
150
  }
@@ -152,8 +152,8 @@ class PrivateStateExportError extends Error {
152
152
  * An error thrown when exporting signing keys fails.
153
153
  */
154
154
  class SigningKeyExportError extends Error {
155
- constructor(message) {
156
- super(message);
155
+ constructor(message, options) {
156
+ super(message, options);
157
157
  this.name = 'SigningKeyExportError';
158
158
  }
159
159
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../src/contract.ts","../src/errors.ts","../src/logger-provider.ts","../src/midnight-types.ts","../src/private-state-provider.ts","../src/proof-provider.ts","../src/zk-config-provider.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":["Effect","Option","Contract","ZKConfigurationReadError","Layer","ZKConfiguration","Configuration","ConfigProvider","ContractExecutableRuntime","Exit","Cause","ContractAddress","LogLevel","CostModel"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;AAaG;AAWH;;;;;;;;AAQG;AACH,MAAM,iBAAiB,GAAG,CAAsC,gBAA0C,KACxG,CAAC,gBAA0D,KACzDA,eAAM,CAAC,GAAG,CAAC,aAAS;;;IAGlB,MAAM,cAAc,GAAG,CAAC,iBAAgD,KACtEA,eAAM,CAAC,UAAU,CAAC;AAChB,QAAA,GAAG,EAAE,MAAM,gBAAgB,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,KAAKC,eAAM,CAAC,IAAI,CAACC,eAAQ,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC;AACnI,QAAA,KAAK,EAAE,CAAC,GAAY,KAAKC,+BAAwB,CAAC,IAAI,CAAC,gBAAgB,CAAC,GAAG,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG;AACpH,KAAA,CAAC;IACJ,OAAO;QACL,cAAc;QACd,eAAe,EAAE,CAAC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S,CAAC,gBAAgB,EAAE,MAChC;IACnB,MAAM,OAAO,CAAC,UAA+B,EAAA;QAC3C,OAAO,UAAU,CAAC,KAAK,CAAC,eAAe,EAAE,SAAS,CAAC;IACrD;AACD,CAAA;;ACpED;;;;;;;;;;;;;AAaG;AAaH;;;;;;AAMG;MACmB,gBAAgB,CAAA;AAmBpC;;;AAGG;IACH,MAAM,eAAe,CAAC,UAAe,EAAA;AACnC,QAAA,OAAO,OAAO,CAAC,GAAG,CAChB,UAAU,CAAC,GAAG,CAAC,OAAO,EAAE,KAAI;YAC1B,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;AACzC,YAAA,OAAO,CAAC,EAAE,EAAE,GAAG,CAAC;QAClB,CAAC,CAAC,CACH;IACH;AAEA;;;AAGG;IACH,MAAM,GAAG,CAAC,SAAY,EAAA;QACpB,OAAO;YACL,SAAS;AACT,YAAA,SAAS,EAAE,MAAM,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC;AAC7C,YAAA,WAAW,EAAE,MAAM,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC;AACjD,YAAA,IAAI,EAAE,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS;SACnC;IACH;IAEA,qBAAqB,GAAA;AACnB,QAAA,OAAO,IAA2B;IACpC;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":["../src/contract.ts","../src/errors.ts","../src/logger-provider.ts","../src/midnight-types.ts","../src/private-state-provider.ts","../src/proof-provider.ts","../src/zk-config-provider.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":["Effect","Option","Contract","ZKConfigurationReadError","Layer","ZKConfiguration","Configuration","ConfigProvider","ContractExecutableRuntime","Exit","Cause","ContractAddress","LogLevel","CostModel"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;AAaG;AAWH;;;;;;;;AAQG;AACH,MAAM,iBAAiB,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AAM,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC;AACjD,YAAA,IAAI,EAAE,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS;SACnC;IACH;IAEA,qBAAqB,GAAA;AACnB,QAAA,OAAO,IAA2B;IACpC;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.d.cts CHANGED
@@ -362,13 +362,13 @@ declare class InvalidProtocolSchemeError extends Error {
362
362
  * An error thrown when exporting private states fails.
363
363
  */
364
364
  declare class PrivateStateExportError extends Error {
365
- constructor(message: string);
365
+ constructor(message: string, options?: ErrorOptions);
366
366
  }
367
367
  /**
368
368
  * An error thrown when exporting signing keys fails.
369
369
  */
370
370
  declare class SigningKeyExportError extends Error {
371
- constructor(message: string);
371
+ constructor(message: string, options?: ErrorOptions);
372
372
  }
373
373
  /**
374
374
  * Cause types for private state import errors.
@@ -643,6 +643,40 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
643
643
  * Retrieve the private state at the given private state ID.
644
644
  *
645
645
  * @param privateStateId The private state identifier.
646
+ * @returns The stored private state, or `null` if either:
647
+ * - the key is absent from the underlying store, or
648
+ * - the stored value deserializes to `undefined`.
649
+ *
650
+ * Callers should treat both `null` outcomes equivalently as "no usable
651
+ * value". The provider does not distinguish between an absent key and an
652
+ * explicitly-undefined stored value; if the distinction matters for your
653
+ * application, store a sentinel value instead.
654
+ *
655
+ * @throws If `setContractAddress` has not been called prior to invocation.
656
+ * @throws If the password returned by the configured password provider does
657
+ * not satisfy the minimum strength policy. Validation runs on every
658
+ * invocation against the password returned by the provider — it is not
659
+ * cached.
660
+ * @throws If decryption of the stored value fails (wrong password, salt
661
+ * mismatch, unsupported encryption version, or authentication tag
662
+ * mismatch). Decryption errors are propagated to the caller and do **not**
663
+ * collapse to `null`.
664
+ * @throws If a concurrent password rotation does not release its lock
665
+ * within the internal default timeout (5 minutes on the read path; the
666
+ * read path does not expose a configuration knob).
667
+ * @throws Underlying store I/O errors are propagated; callers should not
668
+ * include them in user-facing messages without redacting paths and
669
+ * OS-level metadata.
670
+ *
671
+ * @remarks
672
+ * Implementations may lazily migrate legacy or unencrypted entries on
673
+ * read, which means a successful logical read can trigger a write to the
674
+ * underlying store. In read-only environments (mounted-read-only file
675
+ * systems, quota-exhausted backends), `get` may reject with an I/O error
676
+ * even when the value is present and decryptable. The list of decryption
677
+ * failure modes above is illustrative, not exhaustive — payload
678
+ * encoding/parse errors, crypto-backend availability errors, and other
679
+ * corruption modes are also surfaced as throws rather than `null`.
646
680
  */
647
681
  get(privateStateId: PSI): Promise<PS | null>;
648
682
  /**
@@ -666,6 +700,41 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
666
700
  * Retrieve the signing key for a contract.
667
701
  *
668
702
  * @param address The address of the contract for which to get the signing key.
703
+ * @returns The stored signing key, or `null` if either:
704
+ * - no signing key is stored for the given address, or
705
+ * - the stored value deserializes to `undefined`.
706
+ *
707
+ * Callers should treat both `null` outcomes equivalently as "no usable
708
+ * value".
709
+ *
710
+ * @throws If the password returned by the configured password provider does
711
+ * not satisfy the minimum strength policy. Validation runs on every
712
+ * invocation against the password returned by the provider — it is not
713
+ * cached.
714
+ * @throws If decryption of the stored value fails (wrong password, salt
715
+ * mismatch, unsupported encryption version, or authentication tag
716
+ * mismatch). Decryption errors are propagated to the caller and do **not**
717
+ * collapse to `null`.
718
+ * @throws If a concurrent password rotation does not release its lock
719
+ * within the internal default timeout (5 minutes on the read path; the
720
+ * read path does not expose a configuration knob).
721
+ * @throws Underlying store I/O errors are propagated; callers should not
722
+ * include them in user-facing messages without redacting paths and
723
+ * OS-level metadata.
724
+ *
725
+ * @remarks
726
+ * Unlike {@link PrivateStateProvider.get}, this method does **not** require
727
+ * {@link PrivateStateProvider.setContractAddress} to have been called first —
728
+ * the contract address is supplied as an argument.
729
+ *
730
+ * Implementations may lazily migrate legacy or unencrypted entries on
731
+ * read, which means a successful logical read can trigger a write to the
732
+ * underlying store. In read-only environments, `getSigningKey` may reject
733
+ * with an I/O error even when the value is present and decryptable. The
734
+ * list of decryption failure modes above is illustrative, not exhaustive
735
+ * — payload encoding/parse errors, crypto-backend availability errors,
736
+ * and other corruption modes are also surfaced as throws rather than
737
+ * `null`.
669
738
  */
670
739
  getSigningKey(address: ContractAddress$2): Promise<SigningKey | null>;
671
740
  /**
@@ -685,7 +754,17 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
685
754
  *
686
755
  * @param options Export options including optional custom password and state limit.
687
756
  * @returns A JSON-serializable export structure that can be saved or transmitted.
688
- * @throws {PrivateStateExportError} If no states exist to export or limit exceeded.
757
+ * @throws {PrivateStateExportError} If no states exist to export, the state
758
+ * limit is exceeded, or a caller-supplied `options.password` does not
759
+ * satisfy the minimum-length policy.
760
+ * @throws If implementations require a scoped operating context (for
761
+ * example, an account or contract address) and that context is not set.
762
+ * @throws If the password returned by the configured password provider
763
+ * does not satisfy the minimum strength policy (validation runs on
764
+ * every invocation).
765
+ * @throws If reading existing entries fails for any of the reasons listed
766
+ * on {@link PrivateStateProvider.get} (decryption failure, rotation
767
+ * lock timeout, store I/O).
689
768
  */
690
769
  exportPrivateStates(options?: ExportPrivateStatesOptions): Promise<PrivateStateExport>;
691
770
  /**
@@ -697,6 +776,13 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
697
776
  * @throws {ExportDecryptionError} If decryption fails (wrong password or corrupted data).
698
777
  * @throws {InvalidExportFormatError} If the export format is invalid or unsupported.
699
778
  * @throws {ImportConflictError} If conflictStrategy is 'error' and conflicts exist.
779
+ * @throws {PrivateStateExportError} If a caller-supplied `options.password`
780
+ * does not satisfy the minimum-length policy.
781
+ * @throws If implementations require a scoped operating context (for
782
+ * example, an account or contract address) and that context is not set.
783
+ * @throws If reading or writing the underlying store fails for any of the
784
+ * reasons listed on {@link PrivateStateProvider.get} or
785
+ * {@link PrivateStateProvider.set}.
700
786
  */
701
787
  importPrivateStates(exportData: PrivateStateExport, options?: ImportPrivateStatesOptions): Promise<ImportPrivateStatesResult>;
702
788
  /**
@@ -704,7 +790,14 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
704
790
  *
705
791
  * @param options Export options including optional custom password and key limit.
706
792
  * @returns A JSON-serializable export structure that can be saved or transmitted.
707
- * @throws {SigningKeyExportError} If no keys exist to export or limit exceeded.
793
+ * @throws {SigningKeyExportError} If no keys exist to export, the key limit
794
+ * is exceeded, or a caller-supplied `options.password` does not satisfy
795
+ * the minimum-length policy.
796
+ * @throws If the password returned by the configured password provider
797
+ * does not satisfy the minimum strength policy (validation runs on
798
+ * every invocation).
799
+ * @throws If reading existing entries fails for any of the reasons listed
800
+ * on {@link PrivateStateProvider.getSigningKey}.
708
801
  */
709
802
  exportSigningKeys(options?: ExportSigningKeysOptions): Promise<SigningKeyExport>;
710
803
  /**
@@ -716,6 +809,11 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
716
809
  * @throws {ExportDecryptionError} If decryption fails (wrong password or corrupted data).
717
810
  * @throws {InvalidExportFormatError} If the export format is invalid or unsupported.
718
811
  * @throws {ImportConflictError} If conflictStrategy is 'error' and conflicts exist.
812
+ * @throws {SigningKeyExportError} If a caller-supplied `options.password`
813
+ * does not satisfy the minimum-length policy.
814
+ * @throws If reading or writing the underlying store fails for any of the
815
+ * reasons listed on {@link PrivateStateProvider.getSigningKey} or
816
+ * {@link PrivateStateProvider.setSigningKey}.
719
817
  */
720
818
  importSigningKeys(exportData: SigningKeyExport, options?: ImportSigningKeysOptions): Promise<ImportSigningKeysResult>;
721
819
  }
package/dist/index.d.mts CHANGED
@@ -362,13 +362,13 @@ declare class InvalidProtocolSchemeError extends Error {
362
362
  * An error thrown when exporting private states fails.
363
363
  */
364
364
  declare class PrivateStateExportError extends Error {
365
- constructor(message: string);
365
+ constructor(message: string, options?: ErrorOptions);
366
366
  }
367
367
  /**
368
368
  * An error thrown when exporting signing keys fails.
369
369
  */
370
370
  declare class SigningKeyExportError extends Error {
371
- constructor(message: string);
371
+ constructor(message: string, options?: ErrorOptions);
372
372
  }
373
373
  /**
374
374
  * Cause types for private state import errors.
@@ -643,6 +643,40 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
643
643
  * Retrieve the private state at the given private state ID.
644
644
  *
645
645
  * @param privateStateId The private state identifier.
646
+ * @returns The stored private state, or `null` if either:
647
+ * - the key is absent from the underlying store, or
648
+ * - the stored value deserializes to `undefined`.
649
+ *
650
+ * Callers should treat both `null` outcomes equivalently as "no usable
651
+ * value". The provider does not distinguish between an absent key and an
652
+ * explicitly-undefined stored value; if the distinction matters for your
653
+ * application, store a sentinel value instead.
654
+ *
655
+ * @throws If `setContractAddress` has not been called prior to invocation.
656
+ * @throws If the password returned by the configured password provider does
657
+ * not satisfy the minimum strength policy. Validation runs on every
658
+ * invocation against the password returned by the provider — it is not
659
+ * cached.
660
+ * @throws If decryption of the stored value fails (wrong password, salt
661
+ * mismatch, unsupported encryption version, or authentication tag
662
+ * mismatch). Decryption errors are propagated to the caller and do **not**
663
+ * collapse to `null`.
664
+ * @throws If a concurrent password rotation does not release its lock
665
+ * within the internal default timeout (5 minutes on the read path; the
666
+ * read path does not expose a configuration knob).
667
+ * @throws Underlying store I/O errors are propagated; callers should not
668
+ * include them in user-facing messages without redacting paths and
669
+ * OS-level metadata.
670
+ *
671
+ * @remarks
672
+ * Implementations may lazily migrate legacy or unencrypted entries on
673
+ * read, which means a successful logical read can trigger a write to the
674
+ * underlying store. In read-only environments (mounted-read-only file
675
+ * systems, quota-exhausted backends), `get` may reject with an I/O error
676
+ * even when the value is present and decryptable. The list of decryption
677
+ * failure modes above is illustrative, not exhaustive — payload
678
+ * encoding/parse errors, crypto-backend availability errors, and other
679
+ * corruption modes are also surfaced as throws rather than `null`.
646
680
  */
647
681
  get(privateStateId: PSI): Promise<PS | null>;
648
682
  /**
@@ -666,6 +700,41 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
666
700
  * Retrieve the signing key for a contract.
667
701
  *
668
702
  * @param address The address of the contract for which to get the signing key.
703
+ * @returns The stored signing key, or `null` if either:
704
+ * - no signing key is stored for the given address, or
705
+ * - the stored value deserializes to `undefined`.
706
+ *
707
+ * Callers should treat both `null` outcomes equivalently as "no usable
708
+ * value".
709
+ *
710
+ * @throws If the password returned by the configured password provider does
711
+ * not satisfy the minimum strength policy. Validation runs on every
712
+ * invocation against the password returned by the provider — it is not
713
+ * cached.
714
+ * @throws If decryption of the stored value fails (wrong password, salt
715
+ * mismatch, unsupported encryption version, or authentication tag
716
+ * mismatch). Decryption errors are propagated to the caller and do **not**
717
+ * collapse to `null`.
718
+ * @throws If a concurrent password rotation does not release its lock
719
+ * within the internal default timeout (5 minutes on the read path; the
720
+ * read path does not expose a configuration knob).
721
+ * @throws Underlying store I/O errors are propagated; callers should not
722
+ * include them in user-facing messages without redacting paths and
723
+ * OS-level metadata.
724
+ *
725
+ * @remarks
726
+ * Unlike {@link PrivateStateProvider.get}, this method does **not** require
727
+ * {@link PrivateStateProvider.setContractAddress} to have been called first —
728
+ * the contract address is supplied as an argument.
729
+ *
730
+ * Implementations may lazily migrate legacy or unencrypted entries on
731
+ * read, which means a successful logical read can trigger a write to the
732
+ * underlying store. In read-only environments, `getSigningKey` may reject
733
+ * with an I/O error even when the value is present and decryptable. The
734
+ * list of decryption failure modes above is illustrative, not exhaustive
735
+ * — payload encoding/parse errors, crypto-backend availability errors,
736
+ * and other corruption modes are also surfaced as throws rather than
737
+ * `null`.
669
738
  */
670
739
  getSigningKey(address: ContractAddress$2): Promise<SigningKey | null>;
671
740
  /**
@@ -685,7 +754,17 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
685
754
  *
686
755
  * @param options Export options including optional custom password and state limit.
687
756
  * @returns A JSON-serializable export structure that can be saved or transmitted.
688
- * @throws {PrivateStateExportError} If no states exist to export or limit exceeded.
757
+ * @throws {PrivateStateExportError} If no states exist to export, the state
758
+ * limit is exceeded, or a caller-supplied `options.password` does not
759
+ * satisfy the minimum-length policy.
760
+ * @throws If implementations require a scoped operating context (for
761
+ * example, an account or contract address) and that context is not set.
762
+ * @throws If the password returned by the configured password provider
763
+ * does not satisfy the minimum strength policy (validation runs on
764
+ * every invocation).
765
+ * @throws If reading existing entries fails for any of the reasons listed
766
+ * on {@link PrivateStateProvider.get} (decryption failure, rotation
767
+ * lock timeout, store I/O).
689
768
  */
690
769
  exportPrivateStates(options?: ExportPrivateStatesOptions): Promise<PrivateStateExport>;
691
770
  /**
@@ -697,6 +776,13 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
697
776
  * @throws {ExportDecryptionError} If decryption fails (wrong password or corrupted data).
698
777
  * @throws {InvalidExportFormatError} If the export format is invalid or unsupported.
699
778
  * @throws {ImportConflictError} If conflictStrategy is 'error' and conflicts exist.
779
+ * @throws {PrivateStateExportError} If a caller-supplied `options.password`
780
+ * does not satisfy the minimum-length policy.
781
+ * @throws If implementations require a scoped operating context (for
782
+ * example, an account or contract address) and that context is not set.
783
+ * @throws If reading or writing the underlying store fails for any of the
784
+ * reasons listed on {@link PrivateStateProvider.get} or
785
+ * {@link PrivateStateProvider.set}.
700
786
  */
701
787
  importPrivateStates(exportData: PrivateStateExport, options?: ImportPrivateStatesOptions): Promise<ImportPrivateStatesResult>;
702
788
  /**
@@ -704,7 +790,14 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
704
790
  *
705
791
  * @param options Export options including optional custom password and key limit.
706
792
  * @returns A JSON-serializable export structure that can be saved or transmitted.
707
- * @throws {SigningKeyExportError} If no keys exist to export or limit exceeded.
793
+ * @throws {SigningKeyExportError} If no keys exist to export, the key limit
794
+ * is exceeded, or a caller-supplied `options.password` does not satisfy
795
+ * the minimum-length policy.
796
+ * @throws If the password returned by the configured password provider
797
+ * does not satisfy the minimum strength policy (validation runs on
798
+ * every invocation).
799
+ * @throws If reading existing entries fails for any of the reasons listed
800
+ * on {@link PrivateStateProvider.getSigningKey}.
708
801
  */
709
802
  exportSigningKeys(options?: ExportSigningKeysOptions): Promise<SigningKeyExport>;
710
803
  /**
@@ -716,6 +809,11 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
716
809
  * @throws {ExportDecryptionError} If decryption fails (wrong password or corrupted data).
717
810
  * @throws {InvalidExportFormatError} If the export format is invalid or unsupported.
718
811
  * @throws {ImportConflictError} If conflictStrategy is 'error' and conflicts exist.
812
+ * @throws {SigningKeyExportError} If a caller-supplied `options.password`
813
+ * does not satisfy the minimum-length policy.
814
+ * @throws If reading or writing the underlying store fails for any of the
815
+ * reasons listed on {@link PrivateStateProvider.getSigningKey} or
816
+ * {@link PrivateStateProvider.setSigningKey}.
719
817
  */
720
818
  importSigningKeys(exportData: SigningKeyExport, options?: ImportSigningKeysOptions): Promise<ImportSigningKeysResult>;
721
819
  }
package/dist/index.d.ts CHANGED
@@ -362,13 +362,13 @@ declare class InvalidProtocolSchemeError extends Error {
362
362
  * An error thrown when exporting private states fails.
363
363
  */
364
364
  declare class PrivateStateExportError extends Error {
365
- constructor(message: string);
365
+ constructor(message: string, options?: ErrorOptions);
366
366
  }
367
367
  /**
368
368
  * An error thrown when exporting signing keys fails.
369
369
  */
370
370
  declare class SigningKeyExportError extends Error {
371
- constructor(message: string);
371
+ constructor(message: string, options?: ErrorOptions);
372
372
  }
373
373
  /**
374
374
  * Cause types for private state import errors.
@@ -643,6 +643,40 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
643
643
  * Retrieve the private state at the given private state ID.
644
644
  *
645
645
  * @param privateStateId The private state identifier.
646
+ * @returns The stored private state, or `null` if either:
647
+ * - the key is absent from the underlying store, or
648
+ * - the stored value deserializes to `undefined`.
649
+ *
650
+ * Callers should treat both `null` outcomes equivalently as "no usable
651
+ * value". The provider does not distinguish between an absent key and an
652
+ * explicitly-undefined stored value; if the distinction matters for your
653
+ * application, store a sentinel value instead.
654
+ *
655
+ * @throws If `setContractAddress` has not been called prior to invocation.
656
+ * @throws If the password returned by the configured password provider does
657
+ * not satisfy the minimum strength policy. Validation runs on every
658
+ * invocation against the password returned by the provider — it is not
659
+ * cached.
660
+ * @throws If decryption of the stored value fails (wrong password, salt
661
+ * mismatch, unsupported encryption version, or authentication tag
662
+ * mismatch). Decryption errors are propagated to the caller and do **not**
663
+ * collapse to `null`.
664
+ * @throws If a concurrent password rotation does not release its lock
665
+ * within the internal default timeout (5 minutes on the read path; the
666
+ * read path does not expose a configuration knob).
667
+ * @throws Underlying store I/O errors are propagated; callers should not
668
+ * include them in user-facing messages without redacting paths and
669
+ * OS-level metadata.
670
+ *
671
+ * @remarks
672
+ * Implementations may lazily migrate legacy or unencrypted entries on
673
+ * read, which means a successful logical read can trigger a write to the
674
+ * underlying store. In read-only environments (mounted-read-only file
675
+ * systems, quota-exhausted backends), `get` may reject with an I/O error
676
+ * even when the value is present and decryptable. The list of decryption
677
+ * failure modes above is illustrative, not exhaustive — payload
678
+ * encoding/parse errors, crypto-backend availability errors, and other
679
+ * corruption modes are also surfaced as throws rather than `null`.
646
680
  */
647
681
  get(privateStateId: PSI): Promise<PS | null>;
648
682
  /**
@@ -666,6 +700,41 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
666
700
  * Retrieve the signing key for a contract.
667
701
  *
668
702
  * @param address The address of the contract for which to get the signing key.
703
+ * @returns The stored signing key, or `null` if either:
704
+ * - no signing key is stored for the given address, or
705
+ * - the stored value deserializes to `undefined`.
706
+ *
707
+ * Callers should treat both `null` outcomes equivalently as "no usable
708
+ * value".
709
+ *
710
+ * @throws If the password returned by the configured password provider does
711
+ * not satisfy the minimum strength policy. Validation runs on every
712
+ * invocation against the password returned by the provider — it is not
713
+ * cached.
714
+ * @throws If decryption of the stored value fails (wrong password, salt
715
+ * mismatch, unsupported encryption version, or authentication tag
716
+ * mismatch). Decryption errors are propagated to the caller and do **not**
717
+ * collapse to `null`.
718
+ * @throws If a concurrent password rotation does not release its lock
719
+ * within the internal default timeout (5 minutes on the read path; the
720
+ * read path does not expose a configuration knob).
721
+ * @throws Underlying store I/O errors are propagated; callers should not
722
+ * include them in user-facing messages without redacting paths and
723
+ * OS-level metadata.
724
+ *
725
+ * @remarks
726
+ * Unlike {@link PrivateStateProvider.get}, this method does **not** require
727
+ * {@link PrivateStateProvider.setContractAddress} to have been called first —
728
+ * the contract address is supplied as an argument.
729
+ *
730
+ * Implementations may lazily migrate legacy or unencrypted entries on
731
+ * read, which means a successful logical read can trigger a write to the
732
+ * underlying store. In read-only environments, `getSigningKey` may reject
733
+ * with an I/O error even when the value is present and decryptable. The
734
+ * list of decryption failure modes above is illustrative, not exhaustive
735
+ * — payload encoding/parse errors, crypto-backend availability errors,
736
+ * and other corruption modes are also surfaced as throws rather than
737
+ * `null`.
669
738
  */
670
739
  getSigningKey(address: ContractAddress$2): Promise<SigningKey | null>;
671
740
  /**
@@ -685,7 +754,17 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
685
754
  *
686
755
  * @param options Export options including optional custom password and state limit.
687
756
  * @returns A JSON-serializable export structure that can be saved or transmitted.
688
- * @throws {PrivateStateExportError} If no states exist to export or limit exceeded.
757
+ * @throws {PrivateStateExportError} If no states exist to export, the state
758
+ * limit is exceeded, or a caller-supplied `options.password` does not
759
+ * satisfy the minimum-length policy.
760
+ * @throws If implementations require a scoped operating context (for
761
+ * example, an account or contract address) and that context is not set.
762
+ * @throws If the password returned by the configured password provider
763
+ * does not satisfy the minimum strength policy (validation runs on
764
+ * every invocation).
765
+ * @throws If reading existing entries fails for any of the reasons listed
766
+ * on {@link PrivateStateProvider.get} (decryption failure, rotation
767
+ * lock timeout, store I/O).
689
768
  */
690
769
  exportPrivateStates(options?: ExportPrivateStatesOptions): Promise<PrivateStateExport>;
691
770
  /**
@@ -697,6 +776,13 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
697
776
  * @throws {ExportDecryptionError} If decryption fails (wrong password or corrupted data).
698
777
  * @throws {InvalidExportFormatError} If the export format is invalid or unsupported.
699
778
  * @throws {ImportConflictError} If conflictStrategy is 'error' and conflicts exist.
779
+ * @throws {PrivateStateExportError} If a caller-supplied `options.password`
780
+ * does not satisfy the minimum-length policy.
781
+ * @throws If implementations require a scoped operating context (for
782
+ * example, an account or contract address) and that context is not set.
783
+ * @throws If reading or writing the underlying store fails for any of the
784
+ * reasons listed on {@link PrivateStateProvider.get} or
785
+ * {@link PrivateStateProvider.set}.
700
786
  */
701
787
  importPrivateStates(exportData: PrivateStateExport, options?: ImportPrivateStatesOptions): Promise<ImportPrivateStatesResult>;
702
788
  /**
@@ -704,7 +790,14 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
704
790
  *
705
791
  * @param options Export options including optional custom password and key limit.
706
792
  * @returns A JSON-serializable export structure that can be saved or transmitted.
707
- * @throws {SigningKeyExportError} If no keys exist to export or limit exceeded.
793
+ * @throws {SigningKeyExportError} If no keys exist to export, the key limit
794
+ * is exceeded, or a caller-supplied `options.password` does not satisfy
795
+ * the minimum-length policy.
796
+ * @throws If the password returned by the configured password provider
797
+ * does not satisfy the minimum strength policy (validation runs on
798
+ * every invocation).
799
+ * @throws If reading existing entries fails for any of the reasons listed
800
+ * on {@link PrivateStateProvider.getSigningKey}.
708
801
  */
709
802
  exportSigningKeys(options?: ExportSigningKeysOptions): Promise<SigningKeyExport>;
710
803
  /**
@@ -716,6 +809,11 @@ interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateId, PS =
716
809
  * @throws {ExportDecryptionError} If decryption fails (wrong password or corrupted data).
717
810
  * @throws {InvalidExportFormatError} If the export format is invalid or unsupported.
718
811
  * @throws {ImportConflictError} If conflictStrategy is 'error' and conflicts exist.
812
+ * @throws {SigningKeyExportError} If a caller-supplied `options.password`
813
+ * does not satisfy the minimum-length policy.
814
+ * @throws If reading or writing the underlying store fails for any of the
815
+ * reasons listed on {@link PrivateStateProvider.getSigningKey} or
816
+ * {@link PrivateStateProvider.setSigningKey}.
719
817
  */
720
818
  importSigningKeys(exportData: SigningKeyExport, options?: ImportSigningKeysOptions): Promise<ImportSigningKeysResult>;
721
819
  }
package/dist/index.mjs CHANGED
@@ -123,8 +123,8 @@ class InvalidProtocolSchemeError extends Error {
123
123
  * An error thrown when exporting private states fails.
124
124
  */
125
125
  class PrivateStateExportError extends Error {
126
- constructor(message) {
127
- super(message);
126
+ constructor(message, options) {
127
+ super(message, options);
128
128
  this.name = 'PrivateStateExportError';
129
129
  }
130
130
  }
@@ -132,8 +132,8 @@ class PrivateStateExportError extends Error {
132
132
  * An error thrown when exporting signing keys fails.
133
133
  */
134
134
  class SigningKeyExportError extends Error {
135
- constructor(message) {
136
- super(message);
135
+ constructor(message, options) {
136
+ super(message, options);
137
137
  this.name = 'SigningKeyExportError';
138
138
  }
139
139
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../src/contract.ts","../src/errors.ts","../src/logger-provider.ts","../src/midnight-types.ts","../src/private-state-provider.ts","../src/proof-provider.ts","../src/zk-config-provider.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;AAaG;AAWH;;;;;;;;AAQG;AACH,MAAM,iBAAiB,GAAG,CAAsC,gBAA0C,KACxG,CAAC,gBAA0D,KACzD,MAAM,CAAC,GAAG,CAAC,aAAS;;;IAGlB,MAAM,cAAc,GAAG,CAAC,iBAAgD,KACtE,MAAM,CAAC,UAAU,CAAC;AAChB,QAAA,GAAG,EAAE,MAAM,gBAAgB,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,KAAK,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC;AACnI,QAAA,KAAK,EAAE,CAAC,GAAY,KAAK,wBAAwB,CAAC,IAAI,CAAC,gBAAgB,CAAC,GAAG,EAAE,iBA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AACI,MAAM,mBAAmB,GAAG,CACjC,eAAgC,EAChC,SAAA,GAAuB,SAAS,CAAC,gBAAgB,EAAE,MAChC;IACnB,MAAM,OAAO,CAAC,UAA+B,EAAA;QAC3C,OAAO,UAAU,CAAC,KAAK,CAAC,eAAe,EAAE,SAAS,CAAC;IACrD;AACD,CAAA;;ACpED;;;;;;;;;;;;;AAaG;AAaH;;;;;;AAMG;MACmB,gBAAgB,CAAA;AAmBpC;;;AAGG;IACH,MAAM,eAAe,CAAC,UAAe,EAAA;AACnC,QAAA,OAAO,OAAO,CAAC,GAAG,CAChB,UAAU,CAAC,GAAG,CAAC,OAAO,EAAE,KAAI;YAC1B,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;AACzC,YAAA,OAAO,CAAC,EAAE,EAAE,GAAG,CAAC;QAClB,CAAC,CAAC,CACH;IACH;AAEA;;;AAGG;IACH,MAAM,GAAG,CAAC,SAAY,EAAA;QACpB,OAAO;YACL,SAAS;AACT,YAAA,SAAS,EAAE,MAAM,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC;AAC7C,YAAA,WAAW,EAAE,MAAM,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC;AACjD,YAAA,IAAI,EAAE,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS;SACnC;IACH;IAEA,qBAAqB,GAAA;AACnB,QAAA,OAAO,IAA2B;IACpC;AACD;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../src/contract.ts","../src/errors.ts","../src/logger-provider.ts","../src/midnight-types.ts","../src/private-state-provider.ts","../src/proof-provider.ts","../src/zk-config-provider.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;AAaG;AAWH;;;;;;;;AAQG;AACH,MAAM,iBAAiB,GAAG,CAAsC,gBAA0C,KACxG,CAAC,gBAA0D,KACzD,MAAM,CAAC,GAAG,CAAC,aAAS;;;IAGlB,MAAM,cAAc,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nB,QAAA,OAAO,IAA2B;IACpC;AACD;;;;"}
@@ -197,6 +197,40 @@ export interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateI
197
197
  * Retrieve the private state at the given private state ID.
198
198
  *
199
199
  * @param privateStateId The private state identifier.
200
+ * @returns The stored private state, or `null` if either:
201
+ * - the key is absent from the underlying store, or
202
+ * - the stored value deserializes to `undefined`.
203
+ *
204
+ * Callers should treat both `null` outcomes equivalently as "no usable
205
+ * value". The provider does not distinguish between an absent key and an
206
+ * explicitly-undefined stored value; if the distinction matters for your
207
+ * application, store a sentinel value instead.
208
+ *
209
+ * @throws If `setContractAddress` has not been called prior to invocation.
210
+ * @throws If the password returned by the configured password provider does
211
+ * not satisfy the minimum strength policy. Validation runs on every
212
+ * invocation against the password returned by the provider — it is not
213
+ * cached.
214
+ * @throws If decryption of the stored value fails (wrong password, salt
215
+ * mismatch, unsupported encryption version, or authentication tag
216
+ * mismatch). Decryption errors are propagated to the caller and do **not**
217
+ * collapse to `null`.
218
+ * @throws If a concurrent password rotation does not release its lock
219
+ * within the internal default timeout (5 minutes on the read path; the
220
+ * read path does not expose a configuration knob).
221
+ * @throws Underlying store I/O errors are propagated; callers should not
222
+ * include them in user-facing messages without redacting paths and
223
+ * OS-level metadata.
224
+ *
225
+ * @remarks
226
+ * Implementations may lazily migrate legacy or unencrypted entries on
227
+ * read, which means a successful logical read can trigger a write to the
228
+ * underlying store. In read-only environments (mounted-read-only file
229
+ * systems, quota-exhausted backends), `get` may reject with an I/O error
230
+ * even when the value is present and decryptable. The list of decryption
231
+ * failure modes above is illustrative, not exhaustive — payload
232
+ * encoding/parse errors, crypto-backend availability errors, and other
233
+ * corruption modes are also surfaced as throws rather than `null`.
200
234
  */
201
235
  get(privateStateId: PSI): Promise<PS | null>;
202
236
  /**
@@ -220,6 +254,41 @@ export interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateI
220
254
  * Retrieve the signing key for a contract.
221
255
  *
222
256
  * @param address The address of the contract for which to get the signing key.
257
+ * @returns The stored signing key, or `null` if either:
258
+ * - no signing key is stored for the given address, or
259
+ * - the stored value deserializes to `undefined`.
260
+ *
261
+ * Callers should treat both `null` outcomes equivalently as "no usable
262
+ * value".
263
+ *
264
+ * @throws If the password returned by the configured password provider does
265
+ * not satisfy the minimum strength policy. Validation runs on every
266
+ * invocation against the password returned by the provider — it is not
267
+ * cached.
268
+ * @throws If decryption of the stored value fails (wrong password, salt
269
+ * mismatch, unsupported encryption version, or authentication tag
270
+ * mismatch). Decryption errors are propagated to the caller and do **not**
271
+ * collapse to `null`.
272
+ * @throws If a concurrent password rotation does not release its lock
273
+ * within the internal default timeout (5 minutes on the read path; the
274
+ * read path does not expose a configuration knob).
275
+ * @throws Underlying store I/O errors are propagated; callers should not
276
+ * include them in user-facing messages without redacting paths and
277
+ * OS-level metadata.
278
+ *
279
+ * @remarks
280
+ * Unlike {@link PrivateStateProvider.get}, this method does **not** require
281
+ * {@link PrivateStateProvider.setContractAddress} to have been called first —
282
+ * the contract address is supplied as an argument.
283
+ *
284
+ * Implementations may lazily migrate legacy or unencrypted entries on
285
+ * read, which means a successful logical read can trigger a write to the
286
+ * underlying store. In read-only environments, `getSigningKey` may reject
287
+ * with an I/O error even when the value is present and decryptable. The
288
+ * list of decryption failure modes above is illustrative, not exhaustive
289
+ * — payload encoding/parse errors, crypto-backend availability errors,
290
+ * and other corruption modes are also surfaced as throws rather than
291
+ * `null`.
223
292
  */
224
293
  getSigningKey(address: ContractAddress): Promise<SigningKey | null>;
225
294
  /**
@@ -239,7 +308,17 @@ export interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateI
239
308
  *
240
309
  * @param options Export options including optional custom password and state limit.
241
310
  * @returns A JSON-serializable export structure that can be saved or transmitted.
242
- * @throws {PrivateStateExportError} If no states exist to export or limit exceeded.
311
+ * @throws {PrivateStateExportError} If no states exist to export, the state
312
+ * limit is exceeded, or a caller-supplied `options.password` does not
313
+ * satisfy the minimum-length policy.
314
+ * @throws If implementations require a scoped operating context (for
315
+ * example, an account or contract address) and that context is not set.
316
+ * @throws If the password returned by the configured password provider
317
+ * does not satisfy the minimum strength policy (validation runs on
318
+ * every invocation).
319
+ * @throws If reading existing entries fails for any of the reasons listed
320
+ * on {@link PrivateStateProvider.get} (decryption failure, rotation
321
+ * lock timeout, store I/O).
243
322
  */
244
323
  exportPrivateStates(options?: ExportPrivateStatesOptions): Promise<PrivateStateExport>;
245
324
  /**
@@ -251,6 +330,13 @@ export interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateI
251
330
  * @throws {ExportDecryptionError} If decryption fails (wrong password or corrupted data).
252
331
  * @throws {InvalidExportFormatError} If the export format is invalid or unsupported.
253
332
  * @throws {ImportConflictError} If conflictStrategy is 'error' and conflicts exist.
333
+ * @throws {PrivateStateExportError} If a caller-supplied `options.password`
334
+ * does not satisfy the minimum-length policy.
335
+ * @throws If implementations require a scoped operating context (for
336
+ * example, an account or contract address) and that context is not set.
337
+ * @throws If reading or writing the underlying store fails for any of the
338
+ * reasons listed on {@link PrivateStateProvider.get} or
339
+ * {@link PrivateStateProvider.set}.
254
340
  */
255
341
  importPrivateStates(exportData: PrivateStateExport, options?: ImportPrivateStatesOptions): Promise<ImportPrivateStatesResult>;
256
342
  /**
@@ -258,7 +344,14 @@ export interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateI
258
344
  *
259
345
  * @param options Export options including optional custom password and key limit.
260
346
  * @returns A JSON-serializable export structure that can be saved or transmitted.
261
- * @throws {SigningKeyExportError} If no keys exist to export or limit exceeded.
347
+ * @throws {SigningKeyExportError} If no keys exist to export, the key limit
348
+ * is exceeded, or a caller-supplied `options.password` does not satisfy
349
+ * the minimum-length policy.
350
+ * @throws If the password returned by the configured password provider
351
+ * does not satisfy the minimum strength policy (validation runs on
352
+ * every invocation).
353
+ * @throws If reading existing entries fails for any of the reasons listed
354
+ * on {@link PrivateStateProvider.getSigningKey}.
262
355
  */
263
356
  exportSigningKeys(options?: ExportSigningKeysOptions): Promise<SigningKeyExport>;
264
357
  /**
@@ -270,6 +363,11 @@ export interface PrivateStateProvider<PSI extends PrivateStateId = PrivateStateI
270
363
  * @throws {ExportDecryptionError} If decryption fails (wrong password or corrupted data).
271
364
  * @throws {InvalidExportFormatError} If the export format is invalid or unsupported.
272
365
  * @throws {ImportConflictError} If conflictStrategy is 'error' and conflicts exist.
366
+ * @throws {SigningKeyExportError} If a caller-supplied `options.password`
367
+ * does not satisfy the minimum-length policy.
368
+ * @throws If reading or writing the underlying store fails for any of the
369
+ * reasons listed on {@link PrivateStateProvider.getSigningKey} or
370
+ * {@link PrivateStateProvider.setSigningKey}.
273
371
  */
274
372
  importSigningKeys(exportData: SigningKeyExport, options?: ImportSigningKeysOptions): Promise<ImportSigningKeysResult>;
275
373
  }
@@ -1 +1 @@
1
- {"version":3,"file":"private-state-provider.d.ts","sourceRoot":"","sources":["../src/private-state-provider.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,eAAe,EAAC,UAAU,EAAE,MAAM,sDAAsD,CAAC;AAEvG;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,+BAA+B,CAAC;IAEjD;;;OAGG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAElC;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,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OAcG;IACH,iBAAiB,CACf,UAAU,EAAE,gBAAgB,EAC5B,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACrC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midnight-ntwrk/midnight-js-types",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Shared data types and interfaces for MidnightJS modules",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -29,7 +29,12 @@
29
29
  "dist/"
30
30
  ],
31
31
  "dependencies": {
32
- "@midnight-ntwrk/midnight-js-protocol": "4.1.0",
33
- "rxjs": "^7.5.0"
32
+ "@midnight-ntwrk/midnight-js-protocol": "4.1.1",
33
+ "effect": "^3.20.0",
34
+ "pino": "^10.3.1",
35
+ "rxjs": "^7.8.2"
36
+ },
37
+ "devDependencies": {
38
+ "vitest": "^4.1.7"
34
39
  }
35
40
  }