@verii/server-credentialagent 1.0.7 → 1.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verii/server-credentialagent",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Credential Agent application",
5
5
  "main": "src/index.js",
6
6
  "repository": "https://github.com/LFDT-Verii/core",
@@ -40,31 +40,31 @@
40
40
  "@fastify/view": "^11.0.0",
41
41
  "@spencejs/spence-factories": "^0.10.2",
42
42
  "@spencejs/spence-mongo-repos": "^0.10.2",
43
- "@verii/auth": "1.0.7",
44
- "@verii/base-contract-io": "1.0.7",
45
- "@verii/blockchain-functions": "1.0.7",
46
- "@verii/common-fetchers": "1.0.7",
47
- "@verii/common-functions": "1.0.7",
48
- "@verii/common-schemas": "1.0.7",
49
- "@verii/config": "1.0.7",
50
- "@verii/contract-permissions": "1.0.7",
51
- "@verii/crypto": "1.0.7",
52
- "@verii/csv-parser": "1.0.7",
53
- "@verii/db-kms": "1.0.7",
54
- "@verii/did-doc": "1.0.7",
55
- "@verii/fastify-plugins": "1.0.7",
56
- "@verii/jwt": "1.0.7",
57
- "@verii/metadata-registration": "1.0.7",
58
- "@verii/organizations-registry": "1.0.7",
59
- "@verii/request": "1.0.7",
60
- "@verii/rest-queries": "1.0.7",
61
- "@verii/server-provider": "1.0.7",
62
- "@verii/spencer-mongo-extensions": "1.0.7",
63
- "@verii/test-regexes": "1.0.7",
64
- "@verii/validation": "1.0.7",
65
- "@verii/vc-checks": "1.0.7",
66
- "@verii/verii-issuing": "1.0.7",
67
- "@verii/verii-verification": "1.0.7",
43
+ "@verii/auth": "1.0.8",
44
+ "@verii/base-contract-io": "1.0.8",
45
+ "@verii/blockchain-functions": "1.0.8",
46
+ "@verii/common-fetchers": "1.0.8",
47
+ "@verii/common-functions": "1.0.8",
48
+ "@verii/common-schemas": "1.0.8",
49
+ "@verii/config": "1.0.8",
50
+ "@verii/contract-permissions": "1.0.8",
51
+ "@verii/crypto": "1.0.8",
52
+ "@verii/csv-parser": "1.0.8",
53
+ "@verii/db-kms": "1.0.8",
54
+ "@verii/did-doc": "1.0.8",
55
+ "@verii/fastify-plugins": "1.0.8",
56
+ "@verii/jwt": "1.0.8",
57
+ "@verii/metadata-registration": "1.0.8",
58
+ "@verii/organizations-registry": "1.0.8",
59
+ "@verii/request": "1.0.8",
60
+ "@verii/rest-queries": "1.0.8",
61
+ "@verii/server-provider": "1.0.8",
62
+ "@verii/spencer-mongo-extensions": "1.0.8",
63
+ "@verii/test-regexes": "1.0.8",
64
+ "@verii/validation": "1.0.8",
65
+ "@verii/vc-checks": "1.0.8",
66
+ "@verii/verii-issuing": "1.0.8",
67
+ "@verii/verii-verification": "1.0.8",
68
68
  "ajv": "8.17.1",
69
69
  "canonicalize": "^2.1.0",
70
70
  "date-fns": "~3.6.0",
@@ -83,10 +83,10 @@
83
83
  },
84
84
  "devDependencies": {
85
85
  "@spencejs/spence-config": "0.10.2",
86
- "@verii/endpoints-organizations-registrar": "1.0.7",
87
- "@verii/sample-data": "1.0.7",
86
+ "@verii/endpoints-organizations-registrar": "1.0.8",
87
+ "@verii/sample-data": "1.0.8",
88
88
  "@verii/test-regexes": "0.5.0-build",
89
- "@verii/tests-helpers": "1.0.7",
89
+ "@verii/tests-helpers": "1.0.8",
90
90
  "cheerio": "1.1.2",
91
91
  "dotenv": "16.6.1",
92
92
  "eslint": "8.57.1",
@@ -107,5 +107,5 @@
107
107
  "prettier": "2.8.8",
108
108
  "qs": "6.14.0"
109
109
  },
110
- "gitHead": "58e69421c811102a5923801e7f50619548e6feb0"
110
+ "gitHead": "2622c6ef2e0ce8ed85df9d1246436c81c21292bb"
111
111
  }
@@ -108,7 +108,6 @@ describe('get credential manifests', () => {
108
108
  types: [{ type: 'EmailV1.0' }],
109
109
  vendorEndpoint: VendorEndpoint.ISSUING_IDENTIFICATION,
110
110
  purpose: 'Identification',
111
- duration: '6y',
112
111
  });
113
112
  exchange = await persistOfferExchange({ tenant, disclosure });
114
113
 
@@ -176,7 +175,6 @@ describe('get credential manifests', () => {
176
175
  types: [{ type: 'EmailV1.0' }],
177
176
  vendorEndpoint: VendorEndpoint.ISSUING_IDENTIFICATION,
178
177
  purpose: 'Identification',
179
- duration: '6y',
180
178
  });
181
179
 
182
180
  nockRegistrarGetOrganizationDidDoc(nonDidTenant.did, orgDidDoc);
@@ -729,8 +727,6 @@ describe('get credential manifests', () => {
729
727
  types: [{ type: 'EmailV1.0' }],
730
728
  vendorEndpoint: VendorEndpoint.INTEGRATED_ISSUING_IDENTIFICATION,
731
729
  purpose: 'Identification',
732
- deactivationDate: '2025-12-01T00:00:00.000Z',
733
- duration: '6y',
734
730
  });
735
731
  nockRegistrarGetOrganizationVerifiedProfile(
736
732
  tenant.did,
@@ -893,8 +889,6 @@ describe('get credential manifests', () => {
893
889
  types: [{ type: 'EmailV1.0' }],
894
890
  vendorEndpoint: VendorEndpoint.INTEGRATED_ISSUING_IDENTIFICATION,
895
891
  purpose: 'Identification',
896
- deactivationDate: '2025-12-01T00:00:00.000Z',
897
- duration: '6y',
898
892
  });
899
893
  nockRegistrarGetOrganizationVerifiedProfile(
900
894
  tenant.did,
@@ -1077,7 +1071,6 @@ describe('get credential manifests', () => {
1077
1071
  types: [{ type: 'EmailV1.0' }],
1078
1072
  vendorEndpoint: VendorEndpoint.INTEGRATED_ISSUING_IDENTIFICATION,
1079
1073
  purpose: 'Identification',
1080
- duration: '6y',
1081
1074
  });
1082
1075
  nockRegistrarGetOrganizationVerifiedProfile(
1083
1076
  customTenant.did,
@@ -1203,8 +1196,6 @@ describe('get credential manifests', () => {
1203
1196
  description: 'Integrated Credential Issuance disclosure',
1204
1197
  vendorEndpoint: VendorEndpoint.INTEGRATED_ISSUING_IDENTIFICATION,
1205
1198
  purpose: 'fooPurpose from disclosure',
1206
- deactivationDate: '2025-12-01T00:00:00.000Z',
1207
- duration: '6y',
1208
1199
  presentationDefinition: omit(['purpose'], samplePresentationDefinition),
1209
1200
  });
1210
1201
  nockRegistrarGetOrganizationVerifiedProfile(
@@ -1387,8 +1378,6 @@ describe('get credential manifests', () => {
1387
1378
  description: 'Integrated Credential Issuance disclosure',
1388
1379
  vendorEndpoint: VendorEndpoint.INTEGRATED_ISSUING_IDENTIFICATION,
1389
1380
  purpose: 'Identification',
1390
- deactivationDate: '2025-12-01T00:00:00.000Z',
1391
- duration: '6y',
1392
1381
  presentationDefinition: {
1393
1382
  ...samplePresentationDefinition,
1394
1383
  purpose: 'fooPurpose',
@@ -1718,7 +1707,6 @@ describe('get credential manifests', () => {
1718
1707
  types: [{ type: 'EmailV1.0' }],
1719
1708
  vendorEndpoint: VendorEndpoint.INTEGRATED_ISSUING_IDENTIFICATION,
1720
1709
  purpose: 'Identification',
1721
- duration: '6y',
1722
1710
  });
1723
1711
  nockRegistrarGetOrganizationVerifiedProfile(
1724
1712
  customTenant.did,
@@ -2088,7 +2076,6 @@ describe('get credential manifests', () => {
2088
2076
  types: [{ type: 'EmailV1.0' }],
2089
2077
  vendorEndpoint: VendorEndpoint.INTEGRATED_ISSUING_IDENTIFICATION,
2090
2078
  purpose: 'Identification',
2091
- duration: '6y',
2092
2079
  });
2093
2080
  const customExchange = await persistOfferExchange({
2094
2081
  tenant,
@@ -2251,7 +2238,6 @@ describe('get credential manifests', () => {
2251
2238
  types: [{ type: 'EmailV1.0' }],
2252
2239
  vendorEndpoint: VendorEndpoint.INTEGRATED_ISSUING_IDENTIFICATION,
2253
2240
  purpose: 'Identification',
2254
- duration: '6y',
2255
2241
  });
2256
2242
  const customExchange = await persistOfferExchange({
2257
2243
  tenant,
@@ -2971,7 +2957,6 @@ describe('get credential manifests', () => {
2971
2957
  types: [{ type: 'EmailV1.0' }],
2972
2958
  vendorEndpoint: VendorEndpoint.INTEGRATED_ISSUING_IDENTIFICATION,
2973
2959
  purpose: 'Identification',
2974
- duration: '6y',
2975
2960
  tenantId: new ObjectId(tenant._id),
2976
2961
  vendorDisclosureId: 'HR-PKG-USPS-CLRK',
2977
2962
  termsUrl: 'https://www.lipsum.com/feed/html',
@@ -3046,7 +3031,6 @@ describe('get credential manifests', () => {
3046
3031
  types: [{ type: 'EmailV1.0' }],
3047
3032
  vendorEndpoint: VendorEndpoint.INTEGRATED_ISSUING_IDENTIFICATION,
3048
3033
  purpose: 'Identification',
3049
- duration: '6y',
3050
3034
  });
3051
3035
 
3052
3036
  expect(tenant.defaultIssuingDisclosureId).toBeUndefined();
@@ -275,12 +275,14 @@ describe('e2e issuing tests', { timeout: 45000 }, () => {
275
275
 
276
276
  const metadataListAllocation = await mongoDb()
277
277
  .collection('allocations')
278
- .findOne({ entityName: 'metadataListAllocations' });
278
+ .findOne({
279
+ entityName: 'HEX_AES_256_MetadataListAllocations',
280
+ });
279
281
  expect(metadataListAllocation).toEqual({
280
282
  _id: expect.any(ObjectId),
281
283
  createdAt: expect.any(Date),
282
284
  currentListId: expect.any(Number),
283
- entityName: 'metadataListAllocations',
285
+ entityName: 'HEX_AES_256_MetadataListAllocations',
284
286
  freeIndexes: expect.any(Array),
285
287
  operatorAddress: toEthereumAddress(operatorKeyPair.publicKey),
286
288
  tenantId: new ObjectId(tenant._id),
@@ -330,12 +332,12 @@ describe('e2e issuing tests', { timeout: 45000 }, () => {
330
332
 
331
333
  const metadataListAllocation = await mongoDb()
332
334
  .collection('allocations')
333
- .findOne({ entityName: 'metadataListAllocations' });
335
+ .findOne({ entityName: 'HEX_AES_256_MetadataListAllocations' });
334
336
  expect(metadataListAllocation).toEqual({
335
337
  _id: expect.any(ObjectId),
336
338
  createdAt: expect.any(Date),
337
339
  currentListId: expect.any(Number),
338
- entityName: 'metadataListAllocations',
340
+ entityName: 'HEX_AES_256_MetadataListAllocations',
339
341
  freeIndexes: expect.any(Array),
340
342
  operatorAddress: toEthereumAddress(operatorKeyPair.publicKey),
341
343
  tenantId: new ObjectId(tenant._id),
@@ -385,12 +387,12 @@ describe('e2e issuing tests', { timeout: 45000 }, () => {
385
387
 
386
388
  const metadataListAllocation = await mongoDb()
387
389
  .collection('allocations')
388
- .findOne({ entityName: 'metadataListAllocations' });
390
+ .findOne({ entityName: 'HEX_AES_256_MetadataListAllocations' });
389
391
  expect(metadataListAllocation).toEqual({
390
392
  _id: expect.any(ObjectId),
391
393
  createdAt: expect.any(Date),
392
394
  currentListId: expect.any(Number),
393
- entityName: 'metadataListAllocations',
395
+ entityName: 'HEX_AES_256_MetadataListAllocations',
394
396
  freeIndexes: expect.any(Array),
395
397
  operatorAddress: toEthereumAddress(operatorKeyPair.publicKey),
396
398
  tenantId: new ObjectId(tenant._id),
@@ -342,7 +342,7 @@ describe('vc-api credentials endpoints', () => {
342
342
  expect.any(Object),
343
343
  expect.any(String),
344
344
  'did:ion:cao',
345
- 'cosekey:aes-256-gcm',
345
+ 'aes-256-gcm',
346
346
  ],
347
347
  ]);
348
348
  });