@credo-ts/core 0.6.0-pr-2102-20241122200537 → 0.6.0-pr-2102-20241124110714

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.
@@ -1,4 +1,4 @@
1
- import type { MdocNameSpacesRecord, MdocRecord } from '../../mdoc';
1
+ import type { MdocNameSpaces, MdocRecord } from '../../mdoc';
2
2
  import type { SdJwtVcRecord } from '../../sd-jwt-vc';
3
3
  import type { ClaimFormat, W3cCredentialRecord } from '../../vc';
4
4
  export interface DifPexCredentialsForRequest {
@@ -114,7 +114,7 @@ export type SubmissionEntryCredential = {
114
114
  } | {
115
115
  type: ClaimFormat.MsoMdoc;
116
116
  credentialRecord: MdocRecord;
117
- disclosedPayload: MdocNameSpacesRecord;
117
+ disclosedPayload: MdocNameSpaces;
118
118
  };
119
119
  /**
120
120
  * Mapping of selected credentials for an input descriptor
@@ -1,4 +1,4 @@
1
- import type { MdocSignOptions, MdocNameSpacesRecord, MdocVerifyOptions } from './MdocOptions';
1
+ import type { MdocSignOptions, MdocNameSpaces, MdocVerifyOptions } from './MdocOptions';
2
2
  import type { AgentContext } from '../../agent';
3
3
  import { JwaSignatureAlgorithm } from '../../crypto';
4
4
  /**
@@ -15,8 +15,8 @@ export declare class Mdoc {
15
15
  get docType(): string;
16
16
  get alg(): JwaSignatureAlgorithm;
17
17
  get validityInfo(): import("@animo-id/mdoc").ValidityInfo;
18
- get deviceSignedNamespaces(): MdocNameSpacesRecord;
19
- get issuerSignedNamespaces(): MdocNameSpacesRecord;
18
+ get deviceSignedNamespaces(): MdocNameSpaces;
19
+ get issuerSignedNamespaces(): MdocNameSpaces;
20
20
  static sign(agentContext: AgentContext, options: MdocSignOptions): Promise<Mdoc>;
21
21
  verify(agentContext: AgentContext, options?: MdocVerifyOptions): Promise<{
22
22
  isValid: true;
@@ -2,7 +2,7 @@ import type { Mdoc } from './Mdoc';
2
2
  import type { Key } from '../../crypto/Key';
3
3
  import type { DifPresentationExchangeDefinition } from '../dif-presentation-exchange';
4
4
  import type { ValidityInfo } from '@animo-id/mdoc';
5
- export type MdocNameSpacesRecord = Record<string, Record<string, unknown>>;
5
+ export type MdocNameSpaces = Record<string, Record<string, unknown>>;
6
6
  export interface MdocVerificationContext {
7
7
  /**
8
8
  * The `id` of the `OpenId4VcVerificationSessionRecord` that this verification is bound to.
@@ -23,7 +23,7 @@ export type MdocOpenId4VpSessionTranscriptOptions = {
23
23
  export type MdocDeviceResponseOpenId4VpOptions = {
24
24
  mdocs: [Mdoc, ...Mdoc[]];
25
25
  presentationDefinition: DifPresentationExchangeDefinition;
26
- deviceNameSpaces?: MdocNameSpacesRecord;
26
+ deviceNameSpaces?: MdocNameSpaces;
27
27
  sessionTranscriptOptions: MdocOpenId4VpSessionTranscriptOptions;
28
28
  };
29
29
  export type MdocDeviceResponseVerifyOptions = {
@@ -39,7 +39,7 @@ export type MdocDeviceResponseVerifyOptions = {
39
39
  export type MdocSignOptions = {
40
40
  docType: 'org.iso.18013.5.1.mDL' | (string & {});
41
41
  validityInfo?: Partial<ValidityInfo>;
42
- namespaces: MdocNameSpacesRecord;
42
+ namespaces: MdocNameSpaces;
43
43
  /**
44
44
  *
45
45
  * The trusted base64-encoded issuer certificate string in the DER-format.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@credo-ts/core",
3
3
  "main": "build/index",
4
4
  "types": "build/index",
5
- "version": "0.6.0-pr-2102-20241122200537",
5
+ "version": "0.6.0-pr-2102-20241124110714",
6
6
  "files": [
7
7
  "build"
8
8
  ],