@triveria/wallet 0.0.217 → 0.0.219
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 +51 -15
- package/api.js +11 -1
- package/configuration.js +1 -1
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -289,10 +289,10 @@ export interface CredentialIssuerDefinition {
|
|
|
289
289
|
'credentialIssuer': CredentialIssuerDefinitionCredentialIssuerEnum;
|
|
290
290
|
/**
|
|
291
291
|
*
|
|
292
|
-
* @type {
|
|
292
|
+
* @type {CredentialIssuerDefinitionIssuerConfiguration}
|
|
293
293
|
* @memberof CredentialIssuerDefinition
|
|
294
294
|
*/
|
|
295
|
-
'issuerConfiguration'?:
|
|
295
|
+
'issuerConfiguration'?: CredentialIssuerDefinitionIssuerConfiguration;
|
|
296
296
|
/**
|
|
297
297
|
* Format of the issued credential
|
|
298
298
|
* @type {string}
|
|
@@ -314,6 +314,11 @@ export declare const CredentialIssuerDefinitionCredentialIssuerEnum: {
|
|
|
314
314
|
readonly CredentialRequirements: "CredentialRequirements";
|
|
315
315
|
};
|
|
316
316
|
export type CredentialIssuerDefinitionCredentialIssuerEnum = typeof CredentialIssuerDefinitionCredentialIssuerEnum[keyof typeof CredentialIssuerDefinitionCredentialIssuerEnum];
|
|
317
|
+
/**
|
|
318
|
+
* @type CredentialIssuerDefinitionIssuerConfiguration
|
|
319
|
+
* @export
|
|
320
|
+
*/
|
|
321
|
+
export type CredentialIssuerDefinitionIssuerConfiguration = CredentialRequirementsIssuerConfig | CtWalletSameIssuerConfig | VPDrivenIssuerConfig;
|
|
317
322
|
/**
|
|
318
323
|
*
|
|
319
324
|
* @export
|
|
@@ -560,6 +565,19 @@ export interface CredentialRequirements {
|
|
|
560
565
|
*/
|
|
561
566
|
'mapping': object;
|
|
562
567
|
}
|
|
568
|
+
/**
|
|
569
|
+
*
|
|
570
|
+
* @export
|
|
571
|
+
* @interface CredentialRequirementsIssuerConfig
|
|
572
|
+
*/
|
|
573
|
+
export interface CredentialRequirementsIssuerConfig {
|
|
574
|
+
/**
|
|
575
|
+
* ID of the verifier used for verification of presented credential.
|
|
576
|
+
* @type {string}
|
|
577
|
+
* @memberof CredentialRequirementsIssuerConfig
|
|
578
|
+
*/
|
|
579
|
+
'credentialVerifierId': string;
|
|
580
|
+
}
|
|
563
581
|
/**
|
|
564
582
|
* @type CredentialSchema
|
|
565
583
|
* One or more data schemas that provide verifiers with enough information to determine if the provided data conforms to the provided schema(s) https://www.w3.org/TR/vc-data-model-2.0/#defn-credentialSchema
|
|
@@ -755,6 +773,25 @@ export interface CredentialWrapper {
|
|
|
755
773
|
*/
|
|
756
774
|
'signedVc'?: string;
|
|
757
775
|
}
|
|
776
|
+
/**
|
|
777
|
+
*
|
|
778
|
+
* @export
|
|
779
|
+
* @interface CtWalletSameIssuerConfig
|
|
780
|
+
*/
|
|
781
|
+
export interface CtWalletSameIssuerConfig {
|
|
782
|
+
/**
|
|
783
|
+
* Default credential schema
|
|
784
|
+
* @type {string}
|
|
785
|
+
* @memberof CtWalletSameIssuerConfig
|
|
786
|
+
*/
|
|
787
|
+
'defaultSchema'?: string;
|
|
788
|
+
/**
|
|
789
|
+
* Default values for the credentialSubject property.
|
|
790
|
+
* @type {object}
|
|
791
|
+
* @memberof CtWalletSameIssuerConfig
|
|
792
|
+
*/
|
|
793
|
+
'defaultCredentialSubject'?: object;
|
|
794
|
+
}
|
|
758
795
|
/**
|
|
759
796
|
* The deferred process status. Can be either in progress, or completed, or error. When the status is completed, the Id property will be set to the value of the resulting object ID.
|
|
760
797
|
* @export
|
|
@@ -1460,6 +1497,12 @@ export interface OidcRevision {
|
|
|
1460
1497
|
* @memberof OidcRevision
|
|
1461
1498
|
*/
|
|
1462
1499
|
'oidc4vci'?: OidcRevisionOidc4vciEnum;
|
|
1500
|
+
/**
|
|
1501
|
+
*
|
|
1502
|
+
* @type {string}
|
|
1503
|
+
* @memberof OidcRevision
|
|
1504
|
+
*/
|
|
1505
|
+
'oidc4vp'?: OidcRevisionOidc4vpEnum;
|
|
1463
1506
|
}
|
|
1464
1507
|
export declare const OidcRevisionOidc4vciEnum: {
|
|
1465
1508
|
readonly Draft11: "Draft11";
|
|
@@ -1467,6 +1510,11 @@ export declare const OidcRevisionOidc4vciEnum: {
|
|
|
1467
1510
|
readonly Release10: "Release10";
|
|
1468
1511
|
};
|
|
1469
1512
|
export type OidcRevisionOidc4vciEnum = typeof OidcRevisionOidc4vciEnum[keyof typeof OidcRevisionOidc4vciEnum];
|
|
1513
|
+
export declare const OidcRevisionOidc4vpEnum: {
|
|
1514
|
+
readonly Draft16: "Draft16";
|
|
1515
|
+
readonly Draft23: "Draft23";
|
|
1516
|
+
};
|
|
1517
|
+
export type OidcRevisionOidc4vpEnum = typeof OidcRevisionOidc4vpEnum[keyof typeof OidcRevisionOidc4vpEnum];
|
|
1470
1518
|
/**
|
|
1471
1519
|
* On successful EBSI-onboarding result contains \"did:ebsi\" decentralized identifier
|
|
1472
1520
|
* @export
|
|
@@ -1978,23 +2026,11 @@ export interface VerifiedLinkedVp {
|
|
|
1978
2026
|
'credentials': Array<Credential>;
|
|
1979
2027
|
}
|
|
1980
2028
|
/**
|
|
1981
|
-
* Request for the creation of URL used by holder to present credentials to a verifier.
|
|
2029
|
+
* Request for the creation of URL used by holder to present credentials to a verifier.
|
|
1982
2030
|
* @export
|
|
1983
2031
|
* @interface VerifyInitRequest
|
|
1984
2032
|
*/
|
|
1985
2033
|
export interface VerifyInitRequest {
|
|
1986
|
-
/**
|
|
1987
|
-
* DID of client for which verification url is created
|
|
1988
|
-
* @type {string}
|
|
1989
|
-
* @memberof VerifyInitRequest
|
|
1990
|
-
*/
|
|
1991
|
-
'clientId'?: string;
|
|
1992
|
-
/**
|
|
1993
|
-
* Id of ID token request with which the client shares its did
|
|
1994
|
-
* @type {string}
|
|
1995
|
-
* @memberof VerifyInitRequest
|
|
1996
|
-
*/
|
|
1997
|
-
'idTokenRequestId'?: string;
|
|
1998
2034
|
/**
|
|
1999
2035
|
*
|
|
2000
2036
|
* @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.OidcRevisionOidc4vciEnum = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = 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.WalletNotificationEventType = exports.WalletConfigTrustFrameworkEnum = exports.WalletCapability = exports.SystemImpactStatusEnum = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.OidcRevisionOidc4vpEnum = exports.OidcRevisionOidc4vciEnum = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = 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
|
|
@@ -92,6 +92,10 @@ exports.OidcRevisionOidc4vciEnum = {
|
|
|
92
92
|
Draft13: 'Draft13',
|
|
93
93
|
Release10: 'Release10'
|
|
94
94
|
};
|
|
95
|
+
exports.OidcRevisionOidc4vpEnum = {
|
|
96
|
+
Draft16: 'Draft16',
|
|
97
|
+
Draft23: 'Draft23'
|
|
98
|
+
};
|
|
95
99
|
exports.PrepareToAccreditRequestTypeEnum = {
|
|
96
100
|
TrustedIssuer: 'TrustedIssuer',
|
|
97
101
|
TrustedAccreditationOrganisation: 'TrustedAccreditationOrganisation'
|
|
@@ -380,6 +384,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
380
384
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
381
385
|
const localVarHeaderParameter = {};
|
|
382
386
|
const localVarQueryParameter = {};
|
|
387
|
+
// authentication accessToken required
|
|
388
|
+
// http bearer authentication required
|
|
389
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
383
390
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
384
391
|
if (walletId != null) {
|
|
385
392
|
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
@@ -417,6 +424,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
417
424
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
418
425
|
const localVarHeaderParameter = {};
|
|
419
426
|
const localVarQueryParameter = {};
|
|
427
|
+
// authentication accessToken required
|
|
428
|
+
// http bearer authentication required
|
|
429
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
420
430
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
421
431
|
if (walletId != null) {
|
|
422
432
|
localVarHeaderParameter['wallet-id'] = String(walletId);
|
package/configuration.js
CHANGED
|
@@ -23,7 +23,7 @@ class Configuration {
|
|
|
23
23
|
this.accessToken = param.accessToken;
|
|
24
24
|
this.basePath = param.basePath;
|
|
25
25
|
this.serverIndex = param.serverIndex;
|
|
26
|
-
this.baseOptions = Object.assign({ headers: Object.assign(
|
|
26
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
27
27
|
this.formDataCtor = param.formDataCtor;
|
|
28
28
|
}
|
|
29
29
|
/**
|