@sd-jwt/sd-jwt-vc 0.19.1-next.2 → 0.19.1-next.4

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/index.d.mts CHANGED
@@ -933,7 +933,7 @@ type ResolvedTypeMetadata = {
933
933
  };
934
934
  type TypeMetadataFormat = z.infer<typeof TypeMetadataFormatSchema>;
935
935
 
936
- type VcTFetcher = (uri: string, integrity?: string) => Promise<TypeMetadataFormat | undefined>;
936
+ type VCTFetcher = (uri: string, integrity?: string) => Promise<TypeMetadataFormat | undefined>;
937
937
 
938
938
  type StatusListFetcher = (uri: string) => Promise<string>;
939
939
  type StatusValidator = (status: number) => Promise<void>;
@@ -943,7 +943,7 @@ type StatusValidator = (status: number) => Promise<void>;
943
943
  type SDJWTVCConfig = SDJWTConfig & {
944
944
  statusListFetcher?: StatusListFetcher;
945
945
  statusValidator?: StatusValidator;
946
- vctFetcher?: VcTFetcher;
946
+ vctFetcher?: VCTFetcher;
947
947
  statusVerifier?: Verifier;
948
948
  loadTypeMetadataFormat?: boolean;
949
949
  timeout?: number;
@@ -1103,4 +1103,4 @@ declare class SDJwtVcInstance extends SDJwtInstance<SdJwtVcPayload> {
1103
1103
  private verifyStatus;
1104
1104
  }
1105
1105
 
1106
- export { type BackgroundImage, BackgroundImageSchema, type Claim, type ClaimDisplay, ClaimDisplaySchema, type ClaimPath, ClaimPathSchema, ClaimSchema, type ClaimSelectiveDisclosure, ClaimSelectiveDisclosureSchema, ColorSchemeSchema, ContrastSchema, type Display, DisplaySchema, type Logo, LogoSchema, OrientationSchema, type Rendering, RenderingSchema, type ResolvedTypeMetadata, type SDJWTVCConfig, type SDJWTVCStatusReference, SDJwtVcInstance, type SdJwtVcPayload, type SimpleRendering, SimpleRenderingSchema, type StatusListFetcher, type StatusValidator, type SvgTemplateProperties, SvgTemplatePropertiesSchema, type SvgTemplateRendering, SvgTemplateRenderingSchema, type TypeMetadataFormat, TypeMetadataFormatSchema, type VcTFetcher, type VerificationResult };
1106
+ export { type BackgroundImage, BackgroundImageSchema, type Claim, type ClaimDisplay, ClaimDisplaySchema, type ClaimPath, ClaimPathSchema, ClaimSchema, type ClaimSelectiveDisclosure, ClaimSelectiveDisclosureSchema, ColorSchemeSchema, ContrastSchema, type Display, DisplaySchema, type Logo, LogoSchema, OrientationSchema, type Rendering, RenderingSchema, type ResolvedTypeMetadata, type SDJWTVCConfig, type SDJWTVCStatusReference, SDJwtVcInstance, type SdJwtVcPayload, type SimpleRendering, SimpleRenderingSchema, type StatusListFetcher, type StatusValidator, type SvgTemplateProperties, SvgTemplatePropertiesSchema, type SvgTemplateRendering, SvgTemplateRenderingSchema, type TypeMetadataFormat, TypeMetadataFormatSchema, type VCTFetcher, type VerificationResult };
package/dist/index.d.ts CHANGED
@@ -933,7 +933,7 @@ type ResolvedTypeMetadata = {
933
933
  };
934
934
  type TypeMetadataFormat = z.infer<typeof TypeMetadataFormatSchema>;
935
935
 
936
- type VcTFetcher = (uri: string, integrity?: string) => Promise<TypeMetadataFormat | undefined>;
936
+ type VCTFetcher = (uri: string, integrity?: string) => Promise<TypeMetadataFormat | undefined>;
937
937
 
938
938
  type StatusListFetcher = (uri: string) => Promise<string>;
939
939
  type StatusValidator = (status: number) => Promise<void>;
@@ -943,7 +943,7 @@ type StatusValidator = (status: number) => Promise<void>;
943
943
  type SDJWTVCConfig = SDJWTConfig & {
944
944
  statusListFetcher?: StatusListFetcher;
945
945
  statusValidator?: StatusValidator;
946
- vctFetcher?: VcTFetcher;
946
+ vctFetcher?: VCTFetcher;
947
947
  statusVerifier?: Verifier;
948
948
  loadTypeMetadataFormat?: boolean;
949
949
  timeout?: number;
@@ -1103,4 +1103,4 @@ declare class SDJwtVcInstance extends SDJwtInstance<SdJwtVcPayload> {
1103
1103
  private verifyStatus;
1104
1104
  }
1105
1105
 
1106
- export { type BackgroundImage, BackgroundImageSchema, type Claim, type ClaimDisplay, ClaimDisplaySchema, type ClaimPath, ClaimPathSchema, ClaimSchema, type ClaimSelectiveDisclosure, ClaimSelectiveDisclosureSchema, ColorSchemeSchema, ContrastSchema, type Display, DisplaySchema, type Logo, LogoSchema, OrientationSchema, type Rendering, RenderingSchema, type ResolvedTypeMetadata, type SDJWTVCConfig, type SDJWTVCStatusReference, SDJwtVcInstance, type SdJwtVcPayload, type SimpleRendering, SimpleRenderingSchema, type StatusListFetcher, type StatusValidator, type SvgTemplateProperties, SvgTemplatePropertiesSchema, type SvgTemplateRendering, SvgTemplateRenderingSchema, type TypeMetadataFormat, TypeMetadataFormatSchema, type VcTFetcher, type VerificationResult };
1106
+ export { type BackgroundImage, BackgroundImageSchema, type Claim, type ClaimDisplay, ClaimDisplaySchema, type ClaimPath, ClaimPathSchema, ClaimSchema, type ClaimSelectiveDisclosure, ClaimSelectiveDisclosureSchema, ColorSchemeSchema, ContrastSchema, type Display, DisplaySchema, type Logo, LogoSchema, OrientationSchema, type Rendering, RenderingSchema, type ResolvedTypeMetadata, type SDJWTVCConfig, type SDJWTVCStatusReference, SDJwtVcInstance, type SdJwtVcPayload, type SimpleRendering, SimpleRenderingSchema, type StatusListFetcher, type StatusValidator, type SvgTemplateProperties, SvgTemplatePropertiesSchema, type SvgTemplateRendering, SvgTemplateRenderingSchema, type TypeMetadataFormat, TypeMetadataFormatSchema, type VCTFetcher, type VerificationResult };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-jwt/sd-jwt-vc",
3
- "version": "0.19.1-next.2+c96a9a0",
3
+ "version": "0.19.1-next.4+9d50361",
4
4
  "description": "sd-jwt draft 7 implementation in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -38,14 +38,14 @@
38
38
  },
39
39
  "license": "Apache-2.0",
40
40
  "dependencies": {
41
- "@sd-jwt/core": "0.19.1-next.2+c96a9a0",
42
- "@sd-jwt/jwt-status-list": "0.19.1-next.2+c96a9a0",
43
- "@sd-jwt/utils": "0.19.1-next.2+c96a9a0",
41
+ "@sd-jwt/core": "0.19.1-next.4+9d50361",
42
+ "@sd-jwt/jwt-status-list": "0.19.1-next.4+9d50361",
43
+ "@sd-jwt/utils": "0.19.1-next.4+9d50361",
44
44
  "zod": "^4.3.5"
45
45
  },
46
46
  "devDependencies": {
47
- "@sd-jwt/crypto-nodejs": "0.19.1-next.2+c96a9a0",
48
- "@sd-jwt/types": "0.19.1-next.2+c96a9a0",
47
+ "@sd-jwt/crypto-nodejs": "0.19.1-next.4+9d50361",
48
+ "@sd-jwt/types": "0.19.1-next.4+9d50361",
49
49
  "jose": "^6.1.2",
50
50
  "msw": "^2.12.3"
51
51
  },
@@ -65,5 +65,5 @@
65
65
  "esm"
66
66
  ]
67
67
  },
68
- "gitHead": "c96a9a0e73d09d2978db5004a3f7ca307bb926f3"
68
+ "gitHead": "9d50361f5d4a3e833dfd6fada51bd865f3c06384"
69
69
  }
@@ -1,5 +1,5 @@
1
1
  import type { SDJWTConfig, Verifier } from '@sd-jwt/types';
2
- import type { VcTFetcher } from './sd-jwt-vc-vct';
2
+ import type { VCTFetcher } from './sd-jwt-vc-vct';
3
3
 
4
4
  export type StatusListFetcher = (uri: string) => Promise<string>;
5
5
  export type StatusValidator = (status: number) => Promise<void>;
@@ -13,7 +13,7 @@ export type SDJWTVCConfig = SDJWTConfig & {
13
13
  // validte the status and decide if the status is valid or not. If not provided, the code will continue if it is 0, otherwise it will throw an error.
14
14
  statusValidator?: StatusValidator;
15
15
  // a function that fetches the type metadata format from the uri. If not provided, the library will assume that the response is a TypeMetadataFormat. Caching has to be implemented in this function. If the integrity value is passed, it to be validated according to https://www.w3.org/TR/SRI/
16
- vctFetcher?: VcTFetcher;
16
+ vctFetcher?: VCTFetcher;
17
17
  // a function that verifies the status of the JWT. If not provided, the library will assume that the status is valid if it is 0.
18
18
  statusVerifier?: Verifier;
19
19
  // if set to true, it will load the metadata format based on the vct value. If not provided, it will default to false.
@@ -1,6 +1,6 @@
1
1
  import type { TypeMetadataFormat } from './sd-jwt-vc-type-metadata-format';
2
2
 
3
- export type VcTFetcher = (
3
+ export type VCTFetcher = (
4
4
  uri: string,
5
5
  integrity?: string,
6
6
  ) => Promise<TypeMetadataFormat | undefined>;