@triveria/wallet 0.0.223 → 0.0.225
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 +45 -6
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -148,11 +148,11 @@ export interface Credential {
|
|
|
148
148
|
*/
|
|
149
149
|
'holder'?: string;
|
|
150
150
|
/**
|
|
151
|
-
*
|
|
152
|
-
* @type {
|
|
151
|
+
*
|
|
152
|
+
* @type {VerifiableCredentialIssuer}
|
|
153
153
|
* @memberof Credential
|
|
154
154
|
*/
|
|
155
|
-
'issuer'?:
|
|
155
|
+
'issuer'?: VerifiableCredentialIssuer;
|
|
156
156
|
/**
|
|
157
157
|
* Array of specific VC field disclosures
|
|
158
158
|
* @type {Array<string>}
|
|
@@ -1312,6 +1312,20 @@ export interface IssuerLogo {
|
|
|
1312
1312
|
*/
|
|
1313
1313
|
'alt_text'?: string;
|
|
1314
1314
|
}
|
|
1315
|
+
/**
|
|
1316
|
+
* Object containing an `id` property.
|
|
1317
|
+
* @export
|
|
1318
|
+
* @interface IssuerMeta
|
|
1319
|
+
*/
|
|
1320
|
+
export interface IssuerMeta {
|
|
1321
|
+
[key: string]: any;
|
|
1322
|
+
/**
|
|
1323
|
+
*
|
|
1324
|
+
* @type {string}
|
|
1325
|
+
* @memberof IssuerMeta
|
|
1326
|
+
*/
|
|
1327
|
+
'id': string;
|
|
1328
|
+
}
|
|
1315
1329
|
/**
|
|
1316
1330
|
*
|
|
1317
1331
|
* @export
|
|
@@ -2025,6 +2039,12 @@ export interface VcOffer {
|
|
|
2025
2039
|
*/
|
|
2026
2040
|
'Url': string;
|
|
2027
2041
|
}
|
|
2042
|
+
/**
|
|
2043
|
+
* @type VerifiableCredentialIssuer
|
|
2044
|
+
* Either a URL or an object containing an id property https://www.w3.org/TR/vc-data-model-2.0/#defn-issuer
|
|
2045
|
+
* @export
|
|
2046
|
+
*/
|
|
2047
|
+
export type VerifiableCredentialIssuer = IssuerMeta | string;
|
|
2028
2048
|
/**
|
|
2029
2049
|
*
|
|
2030
2050
|
* @export
|
|
@@ -2044,6 +2064,25 @@ export interface VerifiedLinkedVp {
|
|
|
2044
2064
|
*/
|
|
2045
2065
|
'credentials': Array<Credential>;
|
|
2046
2066
|
}
|
|
2067
|
+
/**
|
|
2068
|
+
* Wrapped result of successful verification interaction.
|
|
2069
|
+
* @export
|
|
2070
|
+
* @interface VerifiedWrapper
|
|
2071
|
+
*/
|
|
2072
|
+
export interface VerifiedWrapper {
|
|
2073
|
+
/**
|
|
2074
|
+
*
|
|
2075
|
+
* @type {Array<Credential>}
|
|
2076
|
+
* @memberof VerifiedWrapper
|
|
2077
|
+
*/
|
|
2078
|
+
'credentials': Array<Credential>;
|
|
2079
|
+
/**
|
|
2080
|
+
* The Verifiable Presentation that was presented during the interaction.
|
|
2081
|
+
* @type {string}
|
|
2082
|
+
* @memberof VerifiedWrapper
|
|
2083
|
+
*/
|
|
2084
|
+
'vp': string;
|
|
2085
|
+
}
|
|
2047
2086
|
/**
|
|
2048
2087
|
* Request for the creation of URL used by holder to present credentials to a verifier.
|
|
2049
2088
|
* @export
|
|
@@ -3034,7 +3073,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
3034
3073
|
* @param {*} [options] Override http request option.
|
|
3035
3074
|
* @throws {RequiredError}
|
|
3036
3075
|
*/
|
|
3037
|
-
walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3076
|
+
walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifiedWrapper>>;
|
|
3038
3077
|
/**
|
|
3039
3078
|
* Deletes a specific verified credentials by state
|
|
3040
3079
|
* @param {string} walletId Wallet ID
|
|
@@ -3417,7 +3456,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3417
3456
|
* @param {*} [options] Override http request option.
|
|
3418
3457
|
* @throws {RequiredError}
|
|
3419
3458
|
*/
|
|
3420
|
-
walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3459
|
+
walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): AxiosPromise<VerifiedWrapper>;
|
|
3421
3460
|
/**
|
|
3422
3461
|
* Deletes a specific verified credentials by state
|
|
3423
3462
|
* @param {string} walletId Wallet ID
|
|
@@ -3848,7 +3887,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3848
3887
|
* @throws {RequiredError}
|
|
3849
3888
|
* @memberof DefaultApi
|
|
3850
3889
|
*/
|
|
3851
|
-
walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
3890
|
+
walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifiedWrapper, any>>;
|
|
3852
3891
|
/**
|
|
3853
3892
|
* Deletes a specific verified credentials by state
|
|
3854
3893
|
* @param {string} walletId Wallet ID
|