@triveria/wallet 0.0.256 → 0.0.258
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 +16 -11
- package/api.js +9 -2
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -105,12 +105,6 @@ export interface CredentialIssuanceInit {
|
|
|
105
105
|
export interface CredentialIssuanceInitResult {
|
|
106
106
|
'issuanceQueueItemId': string;
|
|
107
107
|
}
|
|
108
|
-
export interface CredentialIssuedNotification {
|
|
109
|
-
'credentialType': string;
|
|
110
|
-
'offerId': string;
|
|
111
|
-
'issuerDid': string;
|
|
112
|
-
'credentialId': string;
|
|
113
|
-
}
|
|
114
108
|
/**
|
|
115
109
|
* Default value of signingKeyIdentifier is DID.
|
|
116
110
|
*/
|
|
@@ -177,10 +171,6 @@ export interface CredentialMetadata {
|
|
|
177
171
|
'interaction': CredentialMetadataInteractionEnum;
|
|
178
172
|
'message'?: string;
|
|
179
173
|
'type': string;
|
|
180
|
-
/**
|
|
181
|
-
* In case of issued credential this is the DID of the holder wallet
|
|
182
|
-
*/
|
|
183
|
-
'offeredToClientId'?: string;
|
|
184
174
|
'created': string;
|
|
185
175
|
'updated': string;
|
|
186
176
|
'issuanceDate': string;
|
|
@@ -210,6 +200,20 @@ export interface CredentialMetadataPatchPayload {
|
|
|
210
200
|
[key: string]: any;
|
|
211
201
|
'name'?: string;
|
|
212
202
|
}
|
|
203
|
+
export interface CredentialNotification {
|
|
204
|
+
'eventType': CredentialNotificationEventTypeEnum;
|
|
205
|
+
'credentialType': string;
|
|
206
|
+
'offerId': string;
|
|
207
|
+
'issuerDid': string;
|
|
208
|
+
'credentialId': string;
|
|
209
|
+
}
|
|
210
|
+
export declare const CredentialNotificationEventTypeEnum: {
|
|
211
|
+
readonly CredentialCreated: "credential.created";
|
|
212
|
+
readonly CredentialIssued: "credential.issued";
|
|
213
|
+
readonly CredentialReceived: "credential.received";
|
|
214
|
+
readonly CredentialRevoked: "credential.revoked";
|
|
215
|
+
};
|
|
216
|
+
export type CredentialNotificationEventTypeEnum = typeof CredentialNotificationEventTypeEnum[keyof typeof CredentialNotificationEventTypeEnum];
|
|
213
217
|
/**
|
|
214
218
|
* A Credential container used to create credentials with metadata.
|
|
215
219
|
*/
|
|
@@ -986,7 +990,7 @@ export interface WalletNotification {
|
|
|
986
990
|
/**
|
|
987
991
|
* @type WalletNotificationEventDetails
|
|
988
992
|
*/
|
|
989
|
-
export type WalletNotificationEventDetails =
|
|
993
|
+
export type WalletNotificationEventDetails = CredentialNotification | IdTokenReceivedNotification | OfferReceivedNotification | VpInvalidNotification | VpVerifiedNotification;
|
|
990
994
|
export declare const WalletNotificationEventType: {
|
|
991
995
|
readonly VpVerified: "vp.verified";
|
|
992
996
|
readonly VpInvalid: "vp.invalid";
|
|
@@ -996,6 +1000,7 @@ export declare const WalletNotificationEventType: {
|
|
|
996
1000
|
readonly CredentialCreated: "credential.created";
|
|
997
1001
|
readonly CredentialIssued: "credential.issued";
|
|
998
1002
|
readonly CredentialReceived: "credential.received";
|
|
1003
|
+
readonly CredentialRevoked: "credential.revoked";
|
|
999
1004
|
};
|
|
1000
1005
|
export type WalletNotificationEventType = typeof WalletNotificationEventType[keyof typeof WalletNotificationEventType];
|
|
1001
1006
|
export interface WalletNotificationHistory {
|
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.XadesSignatureType = exports.WalletNotificationEventType = exports.WalletCapability = exports.TrustFrameworkType = exports.SystemImpactStatusEnum = exports.SigningKeyIdentifier = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.OidcRevisionOidc4vpEnum = exports.OidcRevisionOidc4vciEnum = exports.ObjectVerticalAlignment = exports.ObjectHorizontalAlignment = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DocumentSignatureValidityVerificationResultEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.AccreditationRequestTypeEnum = void 0;
|
|
28
|
+
exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.XadesSignatureType = exports.WalletNotificationEventType = exports.WalletCapability = exports.TrustFrameworkType = exports.SystemImpactStatusEnum = exports.SigningKeyIdentifier = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.OidcRevisionOidc4vpEnum = exports.OidcRevisionOidc4vciEnum = exports.ObjectVerticalAlignment = exports.ObjectHorizontalAlignment = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DocumentSignatureValidityVerificationResultEnum = exports.DeferredStatusEnum = exports.CredentialNotificationEventTypeEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = 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
|
|
@@ -62,6 +62,12 @@ exports.CredentialMetadataStatusEnum = {
|
|
|
62
62
|
Valid: 'valid',
|
|
63
63
|
Invalid: 'invalid'
|
|
64
64
|
};
|
|
65
|
+
exports.CredentialNotificationEventTypeEnum = {
|
|
66
|
+
CredentialCreated: 'credential.created',
|
|
67
|
+
CredentialIssued: 'credential.issued',
|
|
68
|
+
CredentialReceived: 'credential.received',
|
|
69
|
+
CredentialRevoked: 'credential.revoked'
|
|
70
|
+
};
|
|
65
71
|
exports.DeferredStatusEnum = {
|
|
66
72
|
InProgress: 'in_progress',
|
|
67
73
|
Completed: 'completed',
|
|
@@ -157,7 +163,8 @@ exports.WalletNotificationEventType = {
|
|
|
157
163
|
OfferInitiated: 'offer.initiated',
|
|
158
164
|
CredentialCreated: 'credential.created',
|
|
159
165
|
CredentialIssued: 'credential.issued',
|
|
160
|
-
CredentialReceived: 'credential.received'
|
|
166
|
+
CredentialReceived: 'credential.received',
|
|
167
|
+
CredentialRevoked: 'credential.revoked'
|
|
161
168
|
};
|
|
162
169
|
exports.XadesSignatureType = {
|
|
163
170
|
Tsl: 'tsl'
|