@learncard/credential-library 1.0.4 → 1.0.5

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.
@@ -229,6 +229,49 @@ var vcV2MultipleSubjects = {
229
229
  }
230
230
  };
231
231
 
232
+ // src/fixtures/render-method/render-method-example.ts
233
+ import { UnsignedVCValidator as UnsignedVCValidator6 } from "@learncard/types";
234
+ var vcV2RenderMethodExample = {
235
+ id: "vc-v2/render-method-example",
236
+ name: "VC v2 Render Method Example",
237
+ description: "Minimal VC v2 example that demonstrates top-level renderMethod support.",
238
+ spec: "vc-v2",
239
+ profile: "generic",
240
+ features: [],
241
+ source: "spec-example",
242
+ signed: false,
243
+ validity: "valid",
244
+ tags: ["render-method", "svg-mustache", "template"],
245
+ validator: UnsignedVCValidator6,
246
+ credential: {
247
+ "@context": [
248
+ "https://www.w3.org/ns/credentials/v2",
249
+ "https://digitalbazaar.github.io/vc-render-method-context/contexts/v2rc2.jsonld"
250
+ ],
251
+ id: "urn:uuid:99fc4030-3d05-4619-9e0e-46d0f711ccc9",
252
+ type: ["VerifiableCredential"],
253
+ issuer: {
254
+ id: "did:example:issuer123",
255
+ name: "Example Issuer"
256
+ },
257
+ name: "Render Method Example",
258
+ description: "A minimal VC v2 example for SVG Mustache rendering.",
259
+ validFrom: "2024-07-01T00:00:00Z",
260
+ credentialSubject: {
261
+ id: "did:example:subject456",
262
+ name: "Example Subject"
263
+ },
264
+ renderMethod: {
265
+ type: "TemplateRenderMethod",
266
+ renderSuite: "svg-mustache",
267
+ template: "https://templates.learncard.com/svg/card/card-1.0.0.svg",
268
+ outputPreference: {
269
+ mediaType: "image/svg+xml"
270
+ }
271
+ }
272
+ }
273
+ };
274
+
232
275
  // src/fixtures/obv3/minimal-badge.ts
233
276
  import { UnsignedAchievementCredentialValidator } from "@learncard/types";
234
277
  var obv3MinimalBadge = {
@@ -2076,7 +2119,7 @@ var boostDelegate = {
2076
2119
  };
2077
2120
 
2078
2121
  // src/fixtures/invalid/missing-context.ts
2079
- import { UnsignedVCValidator as UnsignedVCValidator6 } from "@learncard/types";
2122
+ import { UnsignedVCValidator as UnsignedVCValidator7 } from "@learncard/types";
2080
2123
  var invalidMissingContext = {
2081
2124
  id: "invalid/missing-context",
2082
2125
  name: "Missing @context",
@@ -2087,7 +2130,7 @@ var invalidMissingContext = {
2087
2130
  source: "synthetic",
2088
2131
  signed: false,
2089
2132
  validity: "invalid",
2090
- validator: UnsignedVCValidator6,
2133
+ validator: UnsignedVCValidator7,
2091
2134
  tags: ["negative-test"],
2092
2135
  credential: {
2093
2136
  // Intentionally missing '@context'
@@ -2100,7 +2143,7 @@ var invalidMissingContext = {
2100
2143
  };
2101
2144
 
2102
2145
  // src/fixtures/invalid/empty-type.ts
2103
- import { UnsignedVCValidator as UnsignedVCValidator7 } from "@learncard/types";
2146
+ import { UnsignedVCValidator as UnsignedVCValidator8 } from "@learncard/types";
2104
2147
  var invalidEmptyType = {
2105
2148
  id: "invalid/empty-type",
2106
2149
  name: "Empty type Array",
@@ -2111,7 +2154,7 @@ var invalidEmptyType = {
2111
2154
  source: "synthetic",
2112
2155
  signed: false,
2113
2156
  validity: "invalid",
2114
- validator: UnsignedVCValidator7,
2157
+ validator: UnsignedVCValidator8,
2115
2158
  tags: ["negative-test"],
2116
2159
  credential: {
2117
2160
  "@context": ["https://www.w3.org/ns/credentials/v2"],
@@ -2124,7 +2167,7 @@ var invalidEmptyType = {
2124
2167
  };
2125
2168
 
2126
2169
  // src/fixtures/invalid/missing-issuer.ts
2127
- import { UnsignedVCValidator as UnsignedVCValidator8 } from "@learncard/types";
2170
+ import { UnsignedVCValidator as UnsignedVCValidator9 } from "@learncard/types";
2128
2171
  var invalidMissingIssuer = {
2129
2172
  id: "invalid/missing-issuer",
2130
2173
  name: "Missing Issuer",
@@ -2135,7 +2178,7 @@ var invalidMissingIssuer = {
2135
2178
  source: "synthetic",
2136
2179
  signed: false,
2137
2180
  validity: "invalid",
2138
- validator: UnsignedVCValidator8,
2181
+ validator: UnsignedVCValidator9,
2139
2182
  tags: ["negative-test"],
2140
2183
  credential: {
2141
2184
  "@context": ["https://www.w3.org/ns/credentials/v2"],
@@ -10782,6 +10825,7 @@ var ALL_FIXTURES = [
10782
10825
  vcV2Basic,
10783
10826
  vcV2WithEvidence,
10784
10827
  vcV2MultipleSubjects,
10828
+ vcV2RenderMethodExample,
10785
10829
  // OBv3
10786
10830
  obv3MinimalBadge,
10787
10831
  obv3FullBadge,
@@ -11069,6 +11113,7 @@ export {
11069
11113
  vcV2LicenseCredential,
11070
11114
  vcV2MembershipCredential,
11071
11115
  vcV2MultipleSubjects,
11116
+ vcV2RenderMethodExample,
11072
11117
  vcV2WithEvidence
11073
11118
  };
11074
11119
  //# sourceMappingURL=credential-library.esm.js.map