@triveria/wallet 0.0.255 → 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 +17 -7
- package/api.js +9 -2
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export interface AuthOffer {
|
|
|
38
38
|
export interface CSRCreateRequest {
|
|
39
39
|
'organizationName': string;
|
|
40
40
|
'organizationWebsite': string;
|
|
41
|
+
'email': string;
|
|
41
42
|
'streetAddress': string;
|
|
42
43
|
'locality': string;
|
|
43
44
|
'postalCode': string;
|
|
@@ -104,12 +105,6 @@ export interface CredentialIssuanceInit {
|
|
|
104
105
|
export interface CredentialIssuanceInitResult {
|
|
105
106
|
'issuanceQueueItemId': string;
|
|
106
107
|
}
|
|
107
|
-
export interface CredentialIssuedNotification {
|
|
108
|
-
'credentialType': string;
|
|
109
|
-
'offerId': string;
|
|
110
|
-
'issuerDid': string;
|
|
111
|
-
'credentialId': string;
|
|
112
|
-
}
|
|
113
108
|
/**
|
|
114
109
|
* Default value of signingKeyIdentifier is DID.
|
|
115
110
|
*/
|
|
@@ -209,6 +204,20 @@ export interface CredentialMetadataPatchPayload {
|
|
|
209
204
|
[key: string]: any;
|
|
210
205
|
'name'?: string;
|
|
211
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];
|
|
212
221
|
/**
|
|
213
222
|
* A Credential container used to create credentials with metadata.
|
|
214
223
|
*/
|
|
@@ -985,7 +994,7 @@ export interface WalletNotification {
|
|
|
985
994
|
/**
|
|
986
995
|
* @type WalletNotificationEventDetails
|
|
987
996
|
*/
|
|
988
|
-
export type WalletNotificationEventDetails =
|
|
997
|
+
export type WalletNotificationEventDetails = CredentialNotification | IdTokenReceivedNotification | OfferReceivedNotification | VpInvalidNotification | VpVerifiedNotification;
|
|
989
998
|
export declare const WalletNotificationEventType: {
|
|
990
999
|
readonly VpVerified: "vp.verified";
|
|
991
1000
|
readonly VpInvalid: "vp.invalid";
|
|
@@ -995,6 +1004,7 @@ export declare const WalletNotificationEventType: {
|
|
|
995
1004
|
readonly CredentialCreated: "credential.created";
|
|
996
1005
|
readonly CredentialIssued: "credential.issued";
|
|
997
1006
|
readonly CredentialReceived: "credential.received";
|
|
1007
|
+
readonly CredentialRevoked: "credential.revoked";
|
|
998
1008
|
};
|
|
999
1009
|
export type WalletNotificationEventType = typeof WalletNotificationEventType[keyof typeof WalletNotificationEventType];
|
|
1000
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'
|