@triveria/wallet 0.0.186 → 0.0.188

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 +39 -1
  2. package/api.js +6 -1
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -62,6 +62,7 @@ export interface AuthOffer {
62
62
  * @interface Credential
63
63
  */
64
64
  export interface Credential {
65
+ [key: string]: any;
65
66
  /**
66
67
  * The value of the @context property MUST be an ordered set where the first item is a URL with the value https://www.w3.org/ns/credentials/v2. Subsequent items in the array MUST express context information and be composed of any combination of URLs or objects. It is RECOMMENDED that each URL in the @context be one which, if dereferenced, results in a document containing machine-readable information about the @context. https://www.w3.org/TR/vc-data-model-2.0/#contexts
67
68
  * @type {Array<string>}
@@ -574,7 +575,13 @@ export interface CredentialType {
574
575
  * @type {Array<string>}
575
576
  * @memberof CredentialType
576
577
  */
577
- 'type': Array<string>;
578
+ 'type'?: Array<string>;
579
+ /**
580
+ *
581
+ * @type {string}
582
+ * @memberof CredentialType
583
+ */
584
+ 'doctype'?: string;
578
585
  }
579
586
  /**
580
587
  *
@@ -1219,6 +1226,25 @@ export interface OfferReceivedNotification {
1219
1226
  */
1220
1227
  'credentialId'?: string;
1221
1228
  }
1229
+ /**
1230
+ * 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
1231
+ * @export
1232
+ * @interface OidcRevision
1233
+ */
1234
+ export interface OidcRevision {
1235
+ /**
1236
+ *
1237
+ * @type {string}
1238
+ * @memberof OidcRevision
1239
+ */
1240
+ 'oidc4vci'?: OidcRevisionOidc4vciEnum;
1241
+ }
1242
+ export declare const OidcRevisionOidc4vciEnum: {
1243
+ readonly Draft11: "Draft11";
1244
+ readonly Draft13: "Draft13";
1245
+ readonly Release10: "Release10";
1246
+ };
1247
+ export type OidcRevisionOidc4vciEnum = typeof OidcRevisionOidc4vciEnum[keyof typeof OidcRevisionOidc4vciEnum];
1222
1248
  /**
1223
1249
  * On successful EBSI-onboarding result contains \"did:ebsi\" decentralized identifier
1224
1250
  * @export
@@ -1348,6 +1374,12 @@ export interface PresentationDefinitionFormat {
1348
1374
  * @memberof PresentationDefinitionFormat
1349
1375
  */
1350
1376
  'jwt_vp'?: PresentationDefinitionFormatAlg;
1377
+ /**
1378
+ *
1379
+ * @type {PresentationDefinitionFormatAlg}
1380
+ * @memberof PresentationDefinitionFormat
1381
+ */
1382
+ 'mso_mdoc'?: PresentationDefinitionFormatAlg;
1351
1383
  }
1352
1384
  /**
1353
1385
  *
@@ -1791,6 +1823,12 @@ export interface WalletConfig {
1791
1823
  * @memberof WalletConfig
1792
1824
  */
1793
1825
  'credentialVerifiers'?: Array<CredentialVerifierDefinition>;
1826
+ /**
1827
+ *
1828
+ * @type {OidcRevision}
1829
+ * @memberof WalletConfig
1830
+ */
1831
+ 'oidcRevision'?: OidcRevision;
1794
1832
  /**
1795
1833
  * 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
1834
  * @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.188",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {