@triveria/wallet 0.0.280 → 0.0.282

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/api.d.ts CHANGED
@@ -975,6 +975,9 @@ export interface VpInvalidNotification {
975
975
  'verifierId': string;
976
976
  'error': string;
977
977
  }
978
+ export interface VpPresentedNotification {
979
+ 'credentialIds': Array<string>;
980
+ }
978
981
  export interface VpVerifiedNotification {
979
982
  'verifierId': string;
980
983
  }
@@ -1060,7 +1063,10 @@ export interface WalletListItem {
1060
1063
  'capabilities': Array<WalletCapability>;
1061
1064
  }
1062
1065
  export interface WalletNotification {
1063
- 'subjectDid': string;
1066
+ /**
1067
+ * In most cases it is the DID of the counter party. However it may be also URL or x509 certificate.
1068
+ */
1069
+ 'subjectIdentifier': string;
1064
1070
  'eventType': WalletNotificationEventType;
1065
1071
  'eventDetails'?: WalletNotificationEventDetails;
1066
1072
  /**
@@ -1072,10 +1078,11 @@ export interface WalletNotification {
1072
1078
  /**
1073
1079
  * @type WalletNotificationEventDetails
1074
1080
  */
1075
- export type WalletNotificationEventDetails = CredentialNotification | IdTokenReceivedNotification | OfferReceivedNotification | VpInvalidNotification | VpVerifiedNotification | WmpNotification;
1081
+ export type WalletNotificationEventDetails = CredentialNotification | IdTokenReceivedNotification | OfferReceivedNotification | VpInvalidNotification | VpPresentedNotification | VpVerifiedNotification | WmpNotification;
1076
1082
  export declare const WalletNotificationEventType: {
1077
1083
  readonly VpVerified: "vp.verified";
1078
1084
  readonly VpInvalid: "vp.invalid";
1085
+ readonly VpPresented: "vp.presented";
1079
1086
  readonly IdTokenReceived: "idToken.received";
1080
1087
  readonly OfferProcessed: "offer.processed";
1081
1088
  readonly OfferInitiated: "offer.initiated";
package/api.js CHANGED
@@ -174,6 +174,7 @@ exports.WalletCapability = {
174
174
  exports.WalletNotificationEventType = {
175
175
  VpVerified: 'vp.verified',
176
176
  VpInvalid: 'vp.invalid',
177
+ VpPresented: 'vp.presented',
177
178
  IdTokenReceived: 'idToken.received',
178
179
  OfferProcessed: 'offer.processed',
179
180
  OfferInitiated: 'offer.initiated',
package/common.d.ts CHANGED
@@ -28,7 +28,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
28
28
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
29
29
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
30
30
  */
31
- export declare const replaceWithSerializableTypeIfNeeded: (key: any, value: any) => any;
31
+ export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
32
32
  export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
33
33
  export declare const toPathString: (url: URL) => string;
34
34
  export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
package/common.js CHANGED
@@ -105,6 +105,7 @@ exports.setSearchParams = setSearchParams;
105
105
  * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
106
106
  * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
107
107
  */
108
+ // @ts-ignore
108
109
  const replaceWithSerializableTypeIfNeeded = function (key, value) {
109
110
  if (value instanceof Set) {
110
111
  return Array.from(value);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.280",
4
+ "version": "0.0.282",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {