@triveria/wallet 0.0.186 → 0.0.187

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.
Files changed (3) hide show
  1. package/api.d.ts +38 -1
  2. package/api.js +6 -1
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -574,7 +574,13 @@ export interface CredentialType {
574
574
  * @type {Array<string>}
575
575
  * @memberof CredentialType
576
576
  */
577
- 'type': Array<string>;
577
+ 'type'?: Array<string>;
578
+ /**
579
+ *
580
+ * @type {string}
581
+ * @memberof CredentialType
582
+ */
583
+ 'doctype'?: string;
578
584
  }
579
585
  /**
580
586
  *
@@ -1219,6 +1225,25 @@ export interface OfferReceivedNotification {
1219
1225
  */
1220
1226
  'credentialId'?: string;
1221
1227
  }
1228
+ /**
1229
+ * OIDC specifications are differs drastically from version to version. EBSI needs Draft 11 revision, EUDI uses Release 1.0 revision, so this field should set the revision wallet uses. If omited Draft11 for OIDC4VCI, and Draft16 for OIDC4VP are used for the EBSI compatibility
1230
+ * @export
1231
+ * @interface OidcRevision
1232
+ */
1233
+ export interface OidcRevision {
1234
+ /**
1235
+ *
1236
+ * @type {string}
1237
+ * @memberof OidcRevision
1238
+ */
1239
+ 'oidc4vci'?: OidcRevisionOidc4vciEnum;
1240
+ }
1241
+ export declare const OidcRevisionOidc4vciEnum: {
1242
+ readonly Draft11: "Draft11";
1243
+ readonly Draft13: "Draft13";
1244
+ readonly Release10: "Release10";
1245
+ };
1246
+ export type OidcRevisionOidc4vciEnum = typeof OidcRevisionOidc4vciEnum[keyof typeof OidcRevisionOidc4vciEnum];
1222
1247
  /**
1223
1248
  * On successful EBSI-onboarding result contains \"did:ebsi\" decentralized identifier
1224
1249
  * @export
@@ -1348,6 +1373,12 @@ export interface PresentationDefinitionFormat {
1348
1373
  * @memberof PresentationDefinitionFormat
1349
1374
  */
1350
1375
  'jwt_vp'?: PresentationDefinitionFormatAlg;
1376
+ /**
1377
+ *
1378
+ * @type {PresentationDefinitionFormatAlg}
1379
+ * @memberof PresentationDefinitionFormat
1380
+ */
1381
+ 'mso_mdoc'?: PresentationDefinitionFormatAlg;
1351
1382
  }
1352
1383
  /**
1353
1384
  *
@@ -1791,6 +1822,12 @@ export interface WalletConfig {
1791
1822
  * @memberof WalletConfig
1792
1823
  */
1793
1824
  'credentialVerifiers'?: Array<CredentialVerifierDefinition>;
1825
+ /**
1826
+ *
1827
+ * @type {OidcRevision}
1828
+ * @memberof WalletConfig
1829
+ */
1830
+ 'oidcRevision'?: OidcRevision;
1794
1831
  /**
1795
1832
  * What trust framework should we use with this wallet. This property COULD NOT change later. Supported frameworks: EBSI - the European Blockchain Services Infrastructure, TTS - Triveria Trust Service, Noop - did:key based no-op trust framework (mainly for the personal use)
1796
1833
  * @type {string}
package/api.js CHANGED
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventType = exports.WalletConfigTrustFrameworkEnum = exports.WalletCapability = exports.SystemImpactStatusEnum = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.AccreditationRequestTypeEnum = void 0;
28
+ exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventType = exports.WalletConfigTrustFrameworkEnum = exports.WalletCapability = exports.SystemImpactStatusEnum = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.OidcRevisionOidc4vciEnum = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.AccreditationRequestTypeEnum = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -79,6 +79,11 @@ exports.ListSort = {
79
79
  Asc: 'asc',
80
80
  Desc: 'desc'
81
81
  };
82
+ exports.OidcRevisionOidc4vciEnum = {
83
+ Draft11: 'Draft11',
84
+ Draft13: 'Draft13',
85
+ Release10: 'Release10'
86
+ };
82
87
  exports.PrepareToAccreditRequestTypeEnum = {
83
88
  TrustedIssuer: 'TrustedIssuer',
84
89
  TrustedAccreditationOrganisation: 'TrustedAccreditationOrganisation'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.186",
4
+ "version": "0.0.187",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {