@triveria/wallet 0.0.256 → 0.0.257
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 -7
- 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
|
*/
|
|
@@ -210,6 +204,20 @@ export interface CredentialMetadataPatchPayload {
|
|
|
210
204
|
[key: string]: any;
|
|
211
205
|
'name'?: string;
|
|
212
206
|
}
|
|
207
|
+
export interface CredentialNotification {
|
|
208
|
+
'eventType': CredentialNotificationEventTypeEnum;
|
|
209
|
+
'credentialType': string;
|
|
210
|
+
'offerId': string;
|
|
211
|
+
'issuerDid': string;
|
|
212
|
+
'credentialId': string;
|
|
213
|
+
}
|
|
214
|
+
export declare const CredentialNotificationEventTypeEnum: {
|
|
215
|
+
readonly CredentialCreated: "credential.created";
|
|
216
|
+
readonly CredentialIssued: "credential.issued";
|
|
217
|
+
readonly CredentialReceived: "credential.received";
|
|
218
|
+
readonly CredentialRevoked: "credential.revoked";
|
|
219
|
+
};
|
|
220
|
+
export type CredentialNotificationEventTypeEnum = typeof CredentialNotificationEventTypeEnum[keyof typeof CredentialNotificationEventTypeEnum];
|
|
213
221
|
/**
|
|
214
222
|
* A Credential container used to create credentials with metadata.
|
|
215
223
|
*/
|
|
@@ -986,7 +994,7 @@ export interface WalletNotification {
|
|
|
986
994
|
/**
|
|
987
995
|
* @type WalletNotificationEventDetails
|
|
988
996
|
*/
|
|
989
|
-
export type WalletNotificationEventDetails =
|
|
997
|
+
export type WalletNotificationEventDetails = CredentialNotification | IdTokenReceivedNotification | OfferReceivedNotification | VpInvalidNotification | VpVerifiedNotification;
|
|
990
998
|
export declare const WalletNotificationEventType: {
|
|
991
999
|
readonly VpVerified: "vp.verified";
|
|
992
1000
|
readonly VpInvalid: "vp.invalid";
|
|
@@ -996,6 +1004,7 @@ export declare const WalletNotificationEventType: {
|
|
|
996
1004
|
readonly CredentialCreated: "credential.created";
|
|
997
1005
|
readonly CredentialIssued: "credential.issued";
|
|
998
1006
|
readonly CredentialReceived: "credential.received";
|
|
1007
|
+
readonly CredentialRevoked: "credential.revoked";
|
|
999
1008
|
};
|
|
1000
1009
|
export type WalletNotificationEventType = typeof WalletNotificationEventType[keyof typeof WalletNotificationEventType];
|
|
1001
1010
|
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'
|