@triveria/wallet 0.0.264 → 0.0.266
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 +353 -1
- package/api.js +658 -2
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export interface CertificateImportRequest {
|
|
|
59
59
|
export interface CertificateIssueRequest {
|
|
60
60
|
'csr': string;
|
|
61
61
|
'expirationDate': string;
|
|
62
|
+
'ca'?: boolean;
|
|
62
63
|
}
|
|
63
64
|
export interface CertificateIssueResponse {
|
|
64
65
|
'certificate': string;
|
|
@@ -551,6 +552,10 @@ export interface InitAuthOffer {
|
|
|
551
552
|
* Id of issuance queue item. Required when issuer type is CredentialQueue type and no clientId was provided when adding credential to queue.
|
|
552
553
|
*/
|
|
553
554
|
'issuanceQueueItemId'?: string;
|
|
555
|
+
/**
|
|
556
|
+
* ID of an WMP entity with which a WMP connection has already been established. If provided, WMP is used to send the credential offer to the specified recipient.
|
|
557
|
+
*/
|
|
558
|
+
'wmpEntityId'?: string;
|
|
554
559
|
}
|
|
555
560
|
/**
|
|
556
561
|
* Request for pre-authorized issuance process start. Consists of client id or id token request id, credential offer endpoint(most commonly only schema) and id\'s of credentials to be issued to client. Either clientId or idTokenRequestId MUST be present in the request.
|
|
@@ -898,6 +903,10 @@ export interface VerifyInitRequest {
|
|
|
898
903
|
'verifierId': string;
|
|
899
904
|
'createUrl'?: boolean;
|
|
900
905
|
'holderEntityId'?: string;
|
|
906
|
+
/**
|
|
907
|
+
* ID of an WMP entity with which a WMP connection has already been established. If provided, WMP is used to send the credential offer to the specified recipient.
|
|
908
|
+
*/
|
|
909
|
+
'wmpEntityId'?: string;
|
|
901
910
|
}
|
|
902
911
|
export interface VerifyInitResponse {
|
|
903
912
|
/**
|
|
@@ -1006,7 +1015,7 @@ export interface WalletNotification {
|
|
|
1006
1015
|
/**
|
|
1007
1016
|
* @type WalletNotificationEventDetails
|
|
1008
1017
|
*/
|
|
1009
|
-
export type WalletNotificationEventDetails = CredentialNotification | IdTokenReceivedNotification | OfferReceivedNotification | VpInvalidNotification | VpVerifiedNotification;
|
|
1018
|
+
export type WalletNotificationEventDetails = CredentialNotification | IdTokenReceivedNotification | OfferReceivedNotification | VpInvalidNotification | VpVerifiedNotification | WmpNotification;
|
|
1010
1019
|
export declare const WalletNotificationEventType: {
|
|
1011
1020
|
readonly VpVerified: "vp.verified";
|
|
1012
1021
|
readonly VpInvalid: "vp.invalid";
|
|
@@ -1017,6 +1026,10 @@ export declare const WalletNotificationEventType: {
|
|
|
1017
1026
|
readonly CredentialIssued: "credential.issued";
|
|
1018
1027
|
readonly CredentialReceived: "credential.received";
|
|
1019
1028
|
readonly CredentialRevoked: "credential.revoked";
|
|
1029
|
+
readonly WmpInvitationAccepted: "wmp.invitation_accepted";
|
|
1030
|
+
readonly WmpCredentialOffer: "wmp.credential_offer";
|
|
1031
|
+
readonly WmpCredentialVerificationRequest: "wmp.credential_verification_request";
|
|
1032
|
+
readonly WmpError: "wmp.error";
|
|
1020
1033
|
};
|
|
1021
1034
|
export type WalletNotificationEventType = typeof WalletNotificationEventType[keyof typeof WalletNotificationEventType];
|
|
1022
1035
|
export interface WalletNotificationHistory {
|
|
@@ -1036,6 +1049,60 @@ export interface WalletPatchPayload {
|
|
|
1036
1049
|
[key: string]: any;
|
|
1037
1050
|
};
|
|
1038
1051
|
}
|
|
1052
|
+
export interface WmpAcceptInvitationPayload {
|
|
1053
|
+
/**
|
|
1054
|
+
* URL of the invitation JWT
|
|
1055
|
+
*/
|
|
1056
|
+
'invitationUrl': string;
|
|
1057
|
+
}
|
|
1058
|
+
export interface WmpCreateInvitationResponse {
|
|
1059
|
+
/**
|
|
1060
|
+
* URL at which the invitation can be downloaded
|
|
1061
|
+
*/
|
|
1062
|
+
'invitationUrl': string;
|
|
1063
|
+
}
|
|
1064
|
+
export interface WmpEntityConnectionStatus {
|
|
1065
|
+
'connected': boolean;
|
|
1066
|
+
}
|
|
1067
|
+
/**
|
|
1068
|
+
* WMP Entity key identifier
|
|
1069
|
+
*/
|
|
1070
|
+
export interface WmpEntityKeyIdentifier {
|
|
1071
|
+
'type': SigningKeyIdentifier;
|
|
1072
|
+
'identifier': Array<string>;
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
* WMP Entity record
|
|
1076
|
+
*/
|
|
1077
|
+
export interface WmpEntityRecord {
|
|
1078
|
+
/**
|
|
1079
|
+
* WMP Entity ID
|
|
1080
|
+
*/
|
|
1081
|
+
'id': string;
|
|
1082
|
+
/**
|
|
1083
|
+
* WMP Entity name
|
|
1084
|
+
*/
|
|
1085
|
+
'name': string;
|
|
1086
|
+
/**
|
|
1087
|
+
* Wallet capabilities of the entity
|
|
1088
|
+
*/
|
|
1089
|
+
'roles': Array<WalletCapability>;
|
|
1090
|
+
'identifiers': Array<WmpEntityKeyIdentifier>;
|
|
1091
|
+
}
|
|
1092
|
+
export interface WmpNotification {
|
|
1093
|
+
'server': WmpEntityRecord;
|
|
1094
|
+
'id': string;
|
|
1095
|
+
'error'?: string;
|
|
1096
|
+
}
|
|
1097
|
+
export interface WmpRequest {
|
|
1098
|
+
'type': WmpRequestType;
|
|
1099
|
+
'requestUrl': string;
|
|
1100
|
+
}
|
|
1101
|
+
export declare const WmpRequestType: {
|
|
1102
|
+
readonly CredentialOffer: "credentialOffer";
|
|
1103
|
+
readonly CredentialVerificationRequest: "credentialVerificationRequest";
|
|
1104
|
+
};
|
|
1105
|
+
export type WmpRequestType = typeof WmpRequestType[keyof typeof WmpRequestType];
|
|
1039
1106
|
export declare const XadesSignatureType: {
|
|
1040
1107
|
readonly Tsl: "tsl";
|
|
1041
1108
|
};
|
|
@@ -1501,6 +1568,76 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1501
1568
|
* @throws {RequiredError}
|
|
1502
1569
|
*/
|
|
1503
1570
|
walletX509CertificateImport: (walletId: string, certificateImportRequest?: CertificateImportRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1571
|
+
/**
|
|
1572
|
+
* Accepts a WMP invitation
|
|
1573
|
+
* @param {string} walletId
|
|
1574
|
+
* @param {WmpAcceptInvitationPayload} [wmpAcceptInvitationPayload]
|
|
1575
|
+
* @param {*} [options] Override http request option.
|
|
1576
|
+
* @throws {RequiredError}
|
|
1577
|
+
*/
|
|
1578
|
+
wmpAcceptInvitation: (walletId: string, wmpAcceptInvitationPayload?: WmpAcceptInvitationPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1579
|
+
/**
|
|
1580
|
+
* Get pending WMP requests (credential offers or credential verification requests)
|
|
1581
|
+
* @param {string} walletId
|
|
1582
|
+
* @param {*} [options] Override http request option.
|
|
1583
|
+
* @throws {RequiredError}
|
|
1584
|
+
*/
|
|
1585
|
+
wmpClientGetPendingRequests: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1586
|
+
/**
|
|
1587
|
+
* Process WMP request
|
|
1588
|
+
* @param {string} walletId
|
|
1589
|
+
* @param {string} requestId
|
|
1590
|
+
* @param {*} [options] Override http request option.
|
|
1591
|
+
* @throws {RequiredError}
|
|
1592
|
+
*/
|
|
1593
|
+
wmpClientProcessRequest: (walletId: string, requestId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1594
|
+
/**
|
|
1595
|
+
* Creates a new WMP invitation
|
|
1596
|
+
* @param {string} walletId
|
|
1597
|
+
* @param {*} [options] Override http request option.
|
|
1598
|
+
* @throws {RequiredError}
|
|
1599
|
+
*/
|
|
1600
|
+
wmpCreateNewInvitation: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1601
|
+
/**
|
|
1602
|
+
* Get entity connection status
|
|
1603
|
+
* @param {string} walletId
|
|
1604
|
+
* @param {string} entityId
|
|
1605
|
+
* @param {*} [options] Override http request option.
|
|
1606
|
+
* @throws {RequiredError}
|
|
1607
|
+
*/
|
|
1608
|
+
wmpEntityConnectionGet: (walletId: string, entityId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1609
|
+
/**
|
|
1610
|
+
* Delete entity based on the entity ID
|
|
1611
|
+
* @param {string} walletId
|
|
1612
|
+
* @param {string} entityId
|
|
1613
|
+
* @param {*} [options] Override http request option.
|
|
1614
|
+
* @throws {RequiredError}
|
|
1615
|
+
*/
|
|
1616
|
+
wmpEntityDelete: (walletId: string, entityId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1617
|
+
/**
|
|
1618
|
+
* Get entity based on the entity ID
|
|
1619
|
+
* @param {string} walletId
|
|
1620
|
+
* @param {string} entityId
|
|
1621
|
+
* @param {*} [options] Override http request option.
|
|
1622
|
+
* @throws {RequiredError}
|
|
1623
|
+
*/
|
|
1624
|
+
wmpEntityGet: (walletId: string, entityId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1625
|
+
/**
|
|
1626
|
+
* Get all clients that have established WMP connection.
|
|
1627
|
+
* @param {string} walletId
|
|
1628
|
+
* @param {WmpEntityListEntityTypeEnum} entityType
|
|
1629
|
+
* @param {*} [options] Override http request option.
|
|
1630
|
+
* @throws {RequiredError}
|
|
1631
|
+
*/
|
|
1632
|
+
wmpEntityList: (walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1633
|
+
/**
|
|
1634
|
+
* Connect to a WMP server entity
|
|
1635
|
+
* @param {string} walletId
|
|
1636
|
+
* @param {string} entityId
|
|
1637
|
+
* @param {*} [options] Override http request option.
|
|
1638
|
+
* @throws {RequiredError}
|
|
1639
|
+
*/
|
|
1640
|
+
wmpEntityServerConnect: (walletId: string, entityId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1504
1641
|
};
|
|
1505
1642
|
/**
|
|
1506
1643
|
* DefaultApi - functional programming interface
|
|
@@ -1965,6 +2102,76 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1965
2102
|
* @throws {RequiredError}
|
|
1966
2103
|
*/
|
|
1967
2104
|
walletX509CertificateImport(walletId: string, certificateImportRequest?: CertificateImportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2105
|
+
/**
|
|
2106
|
+
* Accepts a WMP invitation
|
|
2107
|
+
* @param {string} walletId
|
|
2108
|
+
* @param {WmpAcceptInvitationPayload} [wmpAcceptInvitationPayload]
|
|
2109
|
+
* @param {*} [options] Override http request option.
|
|
2110
|
+
* @throws {RequiredError}
|
|
2111
|
+
*/
|
|
2112
|
+
wmpAcceptInvitation(walletId: string, wmpAcceptInvitationPayload?: WmpAcceptInvitationPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WmpEntityRecord>>;
|
|
2113
|
+
/**
|
|
2114
|
+
* Get pending WMP requests (credential offers or credential verification requests)
|
|
2115
|
+
* @param {string} walletId
|
|
2116
|
+
* @param {*} [options] Override http request option.
|
|
2117
|
+
* @throws {RequiredError}
|
|
2118
|
+
*/
|
|
2119
|
+
wmpClientGetPendingRequests(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WmpRequest>>>;
|
|
2120
|
+
/**
|
|
2121
|
+
* Process WMP request
|
|
2122
|
+
* @param {string} walletId
|
|
2123
|
+
* @param {string} requestId
|
|
2124
|
+
* @param {*} [options] Override http request option.
|
|
2125
|
+
* @throws {RequiredError}
|
|
2126
|
+
*/
|
|
2127
|
+
wmpClientProcessRequest(walletId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InteractionAuthorizationRequirements>>;
|
|
2128
|
+
/**
|
|
2129
|
+
* Creates a new WMP invitation
|
|
2130
|
+
* @param {string} walletId
|
|
2131
|
+
* @param {*} [options] Override http request option.
|
|
2132
|
+
* @throws {RequiredError}
|
|
2133
|
+
*/
|
|
2134
|
+
wmpCreateNewInvitation(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WmpCreateInvitationResponse>>;
|
|
2135
|
+
/**
|
|
2136
|
+
* Get entity connection status
|
|
2137
|
+
* @param {string} walletId
|
|
2138
|
+
* @param {string} entityId
|
|
2139
|
+
* @param {*} [options] Override http request option.
|
|
2140
|
+
* @throws {RequiredError}
|
|
2141
|
+
*/
|
|
2142
|
+
wmpEntityConnectionGet(walletId: string, entityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WmpEntityConnectionStatus>>;
|
|
2143
|
+
/**
|
|
2144
|
+
* Delete entity based on the entity ID
|
|
2145
|
+
* @param {string} walletId
|
|
2146
|
+
* @param {string} entityId
|
|
2147
|
+
* @param {*} [options] Override http request option.
|
|
2148
|
+
* @throws {RequiredError}
|
|
2149
|
+
*/
|
|
2150
|
+
wmpEntityDelete(walletId: string, entityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2151
|
+
/**
|
|
2152
|
+
* Get entity based on the entity ID
|
|
2153
|
+
* @param {string} walletId
|
|
2154
|
+
* @param {string} entityId
|
|
2155
|
+
* @param {*} [options] Override http request option.
|
|
2156
|
+
* @throws {RequiredError}
|
|
2157
|
+
*/
|
|
2158
|
+
wmpEntityGet(walletId: string, entityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WmpEntityRecord>>;
|
|
2159
|
+
/**
|
|
2160
|
+
* Get all clients that have established WMP connection.
|
|
2161
|
+
* @param {string} walletId
|
|
2162
|
+
* @param {WmpEntityListEntityTypeEnum} entityType
|
|
2163
|
+
* @param {*} [options] Override http request option.
|
|
2164
|
+
* @throws {RequiredError}
|
|
2165
|
+
*/
|
|
2166
|
+
wmpEntityList(walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WmpEntityRecord>>>;
|
|
2167
|
+
/**
|
|
2168
|
+
* Connect to a WMP server entity
|
|
2169
|
+
* @param {string} walletId
|
|
2170
|
+
* @param {string} entityId
|
|
2171
|
+
* @param {*} [options] Override http request option.
|
|
2172
|
+
* @throws {RequiredError}
|
|
2173
|
+
*/
|
|
2174
|
+
wmpEntityServerConnect(walletId: string, entityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1968
2175
|
};
|
|
1969
2176
|
/**
|
|
1970
2177
|
* DefaultApi - factory interface
|
|
@@ -2429,6 +2636,76 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2429
2636
|
* @throws {RequiredError}
|
|
2430
2637
|
*/
|
|
2431
2638
|
walletX509CertificateImport(walletId: string, certificateImportRequest?: CertificateImportRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2639
|
+
/**
|
|
2640
|
+
* Accepts a WMP invitation
|
|
2641
|
+
* @param {string} walletId
|
|
2642
|
+
* @param {WmpAcceptInvitationPayload} [wmpAcceptInvitationPayload]
|
|
2643
|
+
* @param {*} [options] Override http request option.
|
|
2644
|
+
* @throws {RequiredError}
|
|
2645
|
+
*/
|
|
2646
|
+
wmpAcceptInvitation(walletId: string, wmpAcceptInvitationPayload?: WmpAcceptInvitationPayload, options?: RawAxiosRequestConfig): AxiosPromise<WmpEntityRecord>;
|
|
2647
|
+
/**
|
|
2648
|
+
* Get pending WMP requests (credential offers or credential verification requests)
|
|
2649
|
+
* @param {string} walletId
|
|
2650
|
+
* @param {*} [options] Override http request option.
|
|
2651
|
+
* @throws {RequiredError}
|
|
2652
|
+
*/
|
|
2653
|
+
wmpClientGetPendingRequests(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<WmpRequest>>;
|
|
2654
|
+
/**
|
|
2655
|
+
* Process WMP request
|
|
2656
|
+
* @param {string} walletId
|
|
2657
|
+
* @param {string} requestId
|
|
2658
|
+
* @param {*} [options] Override http request option.
|
|
2659
|
+
* @throws {RequiredError}
|
|
2660
|
+
*/
|
|
2661
|
+
wmpClientProcessRequest(walletId: string, requestId: string, options?: RawAxiosRequestConfig): AxiosPromise<InteractionAuthorizationRequirements>;
|
|
2662
|
+
/**
|
|
2663
|
+
* Creates a new WMP invitation
|
|
2664
|
+
* @param {string} walletId
|
|
2665
|
+
* @param {*} [options] Override http request option.
|
|
2666
|
+
* @throws {RequiredError}
|
|
2667
|
+
*/
|
|
2668
|
+
wmpCreateNewInvitation(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<WmpCreateInvitationResponse>;
|
|
2669
|
+
/**
|
|
2670
|
+
* Get entity connection status
|
|
2671
|
+
* @param {string} walletId
|
|
2672
|
+
* @param {string} entityId
|
|
2673
|
+
* @param {*} [options] Override http request option.
|
|
2674
|
+
* @throws {RequiredError}
|
|
2675
|
+
*/
|
|
2676
|
+
wmpEntityConnectionGet(walletId: string, entityId: string, options?: RawAxiosRequestConfig): AxiosPromise<WmpEntityConnectionStatus>;
|
|
2677
|
+
/**
|
|
2678
|
+
* Delete entity based on the entity ID
|
|
2679
|
+
* @param {string} walletId
|
|
2680
|
+
* @param {string} entityId
|
|
2681
|
+
* @param {*} [options] Override http request option.
|
|
2682
|
+
* @throws {RequiredError}
|
|
2683
|
+
*/
|
|
2684
|
+
wmpEntityDelete(walletId: string, entityId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2685
|
+
/**
|
|
2686
|
+
* Get entity based on the entity ID
|
|
2687
|
+
* @param {string} walletId
|
|
2688
|
+
* @param {string} entityId
|
|
2689
|
+
* @param {*} [options] Override http request option.
|
|
2690
|
+
* @throws {RequiredError}
|
|
2691
|
+
*/
|
|
2692
|
+
wmpEntityGet(walletId: string, entityId: string, options?: RawAxiosRequestConfig): AxiosPromise<WmpEntityRecord>;
|
|
2693
|
+
/**
|
|
2694
|
+
* Get all clients that have established WMP connection.
|
|
2695
|
+
* @param {string} walletId
|
|
2696
|
+
* @param {WmpEntityListEntityTypeEnum} entityType
|
|
2697
|
+
* @param {*} [options] Override http request option.
|
|
2698
|
+
* @throws {RequiredError}
|
|
2699
|
+
*/
|
|
2700
|
+
wmpEntityList(walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<WmpEntityRecord>>;
|
|
2701
|
+
/**
|
|
2702
|
+
* Connect to a WMP server entity
|
|
2703
|
+
* @param {string} walletId
|
|
2704
|
+
* @param {string} entityId
|
|
2705
|
+
* @param {*} [options] Override http request option.
|
|
2706
|
+
* @throws {RequiredError}
|
|
2707
|
+
*/
|
|
2708
|
+
wmpEntityServerConnect(walletId: string, entityId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2432
2709
|
};
|
|
2433
2710
|
/**
|
|
2434
2711
|
* DefaultApi - object-oriented interface
|
|
@@ -2893,6 +3170,76 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2893
3170
|
* @throws {RequiredError}
|
|
2894
3171
|
*/
|
|
2895
3172
|
walletX509CertificateImport(walletId: string, certificateImportRequest?: CertificateImportRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3173
|
+
/**
|
|
3174
|
+
* Accepts a WMP invitation
|
|
3175
|
+
* @param {string} walletId
|
|
3176
|
+
* @param {WmpAcceptInvitationPayload} [wmpAcceptInvitationPayload]
|
|
3177
|
+
* @param {*} [options] Override http request option.
|
|
3178
|
+
* @throws {RequiredError}
|
|
3179
|
+
*/
|
|
3180
|
+
wmpAcceptInvitation(walletId: string, wmpAcceptInvitationPayload?: WmpAcceptInvitationPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpEntityRecord, any>>;
|
|
3181
|
+
/**
|
|
3182
|
+
* Get pending WMP requests (credential offers or credential verification requests)
|
|
3183
|
+
* @param {string} walletId
|
|
3184
|
+
* @param {*} [options] Override http request option.
|
|
3185
|
+
* @throws {RequiredError}
|
|
3186
|
+
*/
|
|
3187
|
+
wmpClientGetPendingRequests(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpRequest[], any>>;
|
|
3188
|
+
/**
|
|
3189
|
+
* Process WMP request
|
|
3190
|
+
* @param {string} walletId
|
|
3191
|
+
* @param {string} requestId
|
|
3192
|
+
* @param {*} [options] Override http request option.
|
|
3193
|
+
* @throws {RequiredError}
|
|
3194
|
+
*/
|
|
3195
|
+
wmpClientProcessRequest(walletId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InteractionAuthorizationRequirements, any>>;
|
|
3196
|
+
/**
|
|
3197
|
+
* Creates a new WMP invitation
|
|
3198
|
+
* @param {string} walletId
|
|
3199
|
+
* @param {*} [options] Override http request option.
|
|
3200
|
+
* @throws {RequiredError}
|
|
3201
|
+
*/
|
|
3202
|
+
wmpCreateNewInvitation(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpCreateInvitationResponse, any>>;
|
|
3203
|
+
/**
|
|
3204
|
+
* Get entity connection status
|
|
3205
|
+
* @param {string} walletId
|
|
3206
|
+
* @param {string} entityId
|
|
3207
|
+
* @param {*} [options] Override http request option.
|
|
3208
|
+
* @throws {RequiredError}
|
|
3209
|
+
*/
|
|
3210
|
+
wmpEntityConnectionGet(walletId: string, entityId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpEntityConnectionStatus, any>>;
|
|
3211
|
+
/**
|
|
3212
|
+
* Delete entity based on the entity ID
|
|
3213
|
+
* @param {string} walletId
|
|
3214
|
+
* @param {string} entityId
|
|
3215
|
+
* @param {*} [options] Override http request option.
|
|
3216
|
+
* @throws {RequiredError}
|
|
3217
|
+
*/
|
|
3218
|
+
wmpEntityDelete(walletId: string, entityId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3219
|
+
/**
|
|
3220
|
+
* Get entity based on the entity ID
|
|
3221
|
+
* @param {string} walletId
|
|
3222
|
+
* @param {string} entityId
|
|
3223
|
+
* @param {*} [options] Override http request option.
|
|
3224
|
+
* @throws {RequiredError}
|
|
3225
|
+
*/
|
|
3226
|
+
wmpEntityGet(walletId: string, entityId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpEntityRecord, any>>;
|
|
3227
|
+
/**
|
|
3228
|
+
* Get all clients that have established WMP connection.
|
|
3229
|
+
* @param {string} walletId
|
|
3230
|
+
* @param {WmpEntityListEntityTypeEnum} entityType
|
|
3231
|
+
* @param {*} [options] Override http request option.
|
|
3232
|
+
* @throws {RequiredError}
|
|
3233
|
+
*/
|
|
3234
|
+
wmpEntityList(walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpEntityRecord[], any>>;
|
|
3235
|
+
/**
|
|
3236
|
+
* Connect to a WMP server entity
|
|
3237
|
+
* @param {string} walletId
|
|
3238
|
+
* @param {string} entityId
|
|
3239
|
+
* @param {*} [options] Override http request option.
|
|
3240
|
+
* @throws {RequiredError}
|
|
3241
|
+
*/
|
|
3242
|
+
wmpEntityServerConnect(walletId: string, entityId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2896
3243
|
}
|
|
2897
3244
|
export declare const CredentialListInteractionEnum: {
|
|
2898
3245
|
readonly Issuance: "issuance";
|
|
@@ -2901,3 +3248,8 @@ export declare const CredentialListInteractionEnum: {
|
|
|
2901
3248
|
readonly TaoCredentials: "taoCredentials";
|
|
2902
3249
|
};
|
|
2903
3250
|
export type CredentialListInteractionEnum = typeof CredentialListInteractionEnum[keyof typeof CredentialListInteractionEnum];
|
|
3251
|
+
export declare const WmpEntityListEntityTypeEnum: {
|
|
3252
|
+
readonly Server: "server";
|
|
3253
|
+
readonly Client: "client";
|
|
3254
|
+
};
|
|
3255
|
+
export type WmpEntityListEntityTypeEnum = typeof WmpEntityListEntityTypeEnum[keyof typeof WmpEntityListEntityTypeEnum];
|
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.OidcRevisionOidc4vpEnum = exports.OidcRevisionOidc4vciEnum = exports.ObjectVerticalAlignment = exports.ObjectHorizontalAlignment = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.EntityAccreditationRequestTypeEnum = exports.DocumentSignatureValidityVerificationResultEnum = exports.DeferredStatusEnum = exports.CredentialNotificationEventTypeEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.AccreditationRequestTypeEnum = void 0;
|
|
28
|
+
exports.WmpEntityListEntityTypeEnum = exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.XadesSignatureType = exports.WmpRequestType = exports.WalletNotificationEventType = exports.WalletCapability = exports.TrustFrameworkType = exports.SystemImpactStatusEnum = exports.SigningKeyIdentifier = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.OidcRevisionOidc4vpEnum = exports.OidcRevisionOidc4vciEnum = exports.ObjectVerticalAlignment = exports.ObjectHorizontalAlignment = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.EntityAccreditationRequestTypeEnum = 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
|
|
@@ -164,7 +164,15 @@ exports.WalletNotificationEventType = {
|
|
|
164
164
|
CredentialCreated: 'credential.created',
|
|
165
165
|
CredentialIssued: 'credential.issued',
|
|
166
166
|
CredentialReceived: 'credential.received',
|
|
167
|
-
CredentialRevoked: 'credential.revoked'
|
|
167
|
+
CredentialRevoked: 'credential.revoked',
|
|
168
|
+
WmpInvitationAccepted: 'wmp.invitation_accepted',
|
|
169
|
+
WmpCredentialOffer: 'wmp.credential_offer',
|
|
170
|
+
WmpCredentialVerificationRequest: 'wmp.credential_verification_request',
|
|
171
|
+
WmpError: 'wmp.error'
|
|
172
|
+
};
|
|
173
|
+
exports.WmpRequestType = {
|
|
174
|
+
CredentialOffer: 'credentialOffer',
|
|
175
|
+
CredentialVerificationRequest: 'credentialVerificationRequest'
|
|
168
176
|
};
|
|
169
177
|
exports.XadesSignatureType = {
|
|
170
178
|
Tsl: 'tsl'
|
|
@@ -2220,6 +2228,332 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2220
2228
|
options: localVarRequestOptions,
|
|
2221
2229
|
};
|
|
2222
2230
|
}),
|
|
2231
|
+
/**
|
|
2232
|
+
* Accepts a WMP invitation
|
|
2233
|
+
* @param {string} walletId
|
|
2234
|
+
* @param {WmpAcceptInvitationPayload} [wmpAcceptInvitationPayload]
|
|
2235
|
+
* @param {*} [options] Override http request option.
|
|
2236
|
+
* @throws {RequiredError}
|
|
2237
|
+
*/
|
|
2238
|
+
wmpAcceptInvitation: (walletId, wmpAcceptInvitationPayload, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2239
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
2240
|
+
(0, common_1.assertParamExists)('wmpAcceptInvitation', 'walletId', walletId);
|
|
2241
|
+
const localVarPath = `/wmp/invitation/accept`;
|
|
2242
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2243
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2244
|
+
let baseOptions;
|
|
2245
|
+
if (configuration) {
|
|
2246
|
+
baseOptions = configuration.baseOptions;
|
|
2247
|
+
}
|
|
2248
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2249
|
+
const localVarHeaderParameter = {};
|
|
2250
|
+
const localVarQueryParameter = {};
|
|
2251
|
+
// authentication accessToken required
|
|
2252
|
+
// http bearer authentication required
|
|
2253
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2254
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2255
|
+
if (walletId != null) {
|
|
2256
|
+
localVarHeaderParameter['walletId'] = String(walletId);
|
|
2257
|
+
}
|
|
2258
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2259
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2260
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2261
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wmpAcceptInvitationPayload, localVarRequestOptions, configuration);
|
|
2262
|
+
return {
|
|
2263
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2264
|
+
options: localVarRequestOptions,
|
|
2265
|
+
};
|
|
2266
|
+
}),
|
|
2267
|
+
/**
|
|
2268
|
+
* Get pending WMP requests (credential offers or credential verification requests)
|
|
2269
|
+
* @param {string} walletId
|
|
2270
|
+
* @param {*} [options] Override http request option.
|
|
2271
|
+
* @throws {RequiredError}
|
|
2272
|
+
*/
|
|
2273
|
+
wmpClientGetPendingRequests: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2274
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
2275
|
+
(0, common_1.assertParamExists)('wmpClientGetPendingRequests', 'walletId', walletId);
|
|
2276
|
+
const localVarPath = `/wmp/client/requests`;
|
|
2277
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2278
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2279
|
+
let baseOptions;
|
|
2280
|
+
if (configuration) {
|
|
2281
|
+
baseOptions = configuration.baseOptions;
|
|
2282
|
+
}
|
|
2283
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2284
|
+
const localVarHeaderParameter = {};
|
|
2285
|
+
const localVarQueryParameter = {};
|
|
2286
|
+
// authentication accessToken required
|
|
2287
|
+
// http bearer authentication required
|
|
2288
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2289
|
+
if (walletId != null) {
|
|
2290
|
+
localVarHeaderParameter['walletId'] = String(walletId);
|
|
2291
|
+
}
|
|
2292
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2293
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2294
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2295
|
+
return {
|
|
2296
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2297
|
+
options: localVarRequestOptions,
|
|
2298
|
+
};
|
|
2299
|
+
}),
|
|
2300
|
+
/**
|
|
2301
|
+
* Process WMP request
|
|
2302
|
+
* @param {string} walletId
|
|
2303
|
+
* @param {string} requestId
|
|
2304
|
+
* @param {*} [options] Override http request option.
|
|
2305
|
+
* @throws {RequiredError}
|
|
2306
|
+
*/
|
|
2307
|
+
wmpClientProcessRequest: (walletId, requestId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2308
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
2309
|
+
(0, common_1.assertParamExists)('wmpClientProcessRequest', 'walletId', walletId);
|
|
2310
|
+
// verify required parameter 'requestId' is not null or undefined
|
|
2311
|
+
(0, common_1.assertParamExists)('wmpClientProcessRequest', 'requestId', requestId);
|
|
2312
|
+
const localVarPath = `/wmp/client/requests/{request_id}`
|
|
2313
|
+
.replace(`{${"request_id"}}`, encodeURIComponent(String(requestId)));
|
|
2314
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2315
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2316
|
+
let baseOptions;
|
|
2317
|
+
if (configuration) {
|
|
2318
|
+
baseOptions = configuration.baseOptions;
|
|
2319
|
+
}
|
|
2320
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2321
|
+
const localVarHeaderParameter = {};
|
|
2322
|
+
const localVarQueryParameter = {};
|
|
2323
|
+
// authentication accessToken required
|
|
2324
|
+
// http bearer authentication required
|
|
2325
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2326
|
+
if (walletId != null) {
|
|
2327
|
+
localVarHeaderParameter['walletId'] = String(walletId);
|
|
2328
|
+
}
|
|
2329
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2330
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2331
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2332
|
+
return {
|
|
2333
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2334
|
+
options: localVarRequestOptions,
|
|
2335
|
+
};
|
|
2336
|
+
}),
|
|
2337
|
+
/**
|
|
2338
|
+
* Creates a new WMP invitation
|
|
2339
|
+
* @param {string} walletId
|
|
2340
|
+
* @param {*} [options] Override http request option.
|
|
2341
|
+
* @throws {RequiredError}
|
|
2342
|
+
*/
|
|
2343
|
+
wmpCreateNewInvitation: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2344
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
2345
|
+
(0, common_1.assertParamExists)('wmpCreateNewInvitation', 'walletId', walletId);
|
|
2346
|
+
const localVarPath = `/wmp/invitation`;
|
|
2347
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2348
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2349
|
+
let baseOptions;
|
|
2350
|
+
if (configuration) {
|
|
2351
|
+
baseOptions = configuration.baseOptions;
|
|
2352
|
+
}
|
|
2353
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2354
|
+
const localVarHeaderParameter = {};
|
|
2355
|
+
const localVarQueryParameter = {};
|
|
2356
|
+
// authentication accessToken required
|
|
2357
|
+
// http bearer authentication required
|
|
2358
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2359
|
+
if (walletId != null) {
|
|
2360
|
+
localVarHeaderParameter['walletId'] = String(walletId);
|
|
2361
|
+
}
|
|
2362
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2363
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2364
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2365
|
+
return {
|
|
2366
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2367
|
+
options: localVarRequestOptions,
|
|
2368
|
+
};
|
|
2369
|
+
}),
|
|
2370
|
+
/**
|
|
2371
|
+
* Get entity connection status
|
|
2372
|
+
* @param {string} walletId
|
|
2373
|
+
* @param {string} entityId
|
|
2374
|
+
* @param {*} [options] Override http request option.
|
|
2375
|
+
* @throws {RequiredError}
|
|
2376
|
+
*/
|
|
2377
|
+
wmpEntityConnectionGet: (walletId, entityId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2378
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
2379
|
+
(0, common_1.assertParamExists)('wmpEntityConnectionGet', 'walletId', walletId);
|
|
2380
|
+
// verify required parameter 'entityId' is not null or undefined
|
|
2381
|
+
(0, common_1.assertParamExists)('wmpEntityConnectionGet', 'entityId', entityId);
|
|
2382
|
+
const localVarPath = `/wmp/entities/{entity_id}/connection`
|
|
2383
|
+
.replace(`{${"entity_id"}}`, encodeURIComponent(String(entityId)));
|
|
2384
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2385
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2386
|
+
let baseOptions;
|
|
2387
|
+
if (configuration) {
|
|
2388
|
+
baseOptions = configuration.baseOptions;
|
|
2389
|
+
}
|
|
2390
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2391
|
+
const localVarHeaderParameter = {};
|
|
2392
|
+
const localVarQueryParameter = {};
|
|
2393
|
+
// authentication accessToken required
|
|
2394
|
+
// http bearer authentication required
|
|
2395
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2396
|
+
if (walletId != null) {
|
|
2397
|
+
localVarHeaderParameter['walletId'] = String(walletId);
|
|
2398
|
+
}
|
|
2399
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2400
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2401
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2402
|
+
return {
|
|
2403
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2404
|
+
options: localVarRequestOptions,
|
|
2405
|
+
};
|
|
2406
|
+
}),
|
|
2407
|
+
/**
|
|
2408
|
+
* Delete entity based on the entity ID
|
|
2409
|
+
* @param {string} walletId
|
|
2410
|
+
* @param {string} entityId
|
|
2411
|
+
* @param {*} [options] Override http request option.
|
|
2412
|
+
* @throws {RequiredError}
|
|
2413
|
+
*/
|
|
2414
|
+
wmpEntityDelete: (walletId, entityId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2415
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
2416
|
+
(0, common_1.assertParamExists)('wmpEntityDelete', 'walletId', walletId);
|
|
2417
|
+
// verify required parameter 'entityId' is not null or undefined
|
|
2418
|
+
(0, common_1.assertParamExists)('wmpEntityDelete', 'entityId', entityId);
|
|
2419
|
+
const localVarPath = `/wmp/entities/{entity_id}`
|
|
2420
|
+
.replace(`{${"entity_id"}}`, encodeURIComponent(String(entityId)));
|
|
2421
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2422
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2423
|
+
let baseOptions;
|
|
2424
|
+
if (configuration) {
|
|
2425
|
+
baseOptions = configuration.baseOptions;
|
|
2426
|
+
}
|
|
2427
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2428
|
+
const localVarHeaderParameter = {};
|
|
2429
|
+
const localVarQueryParameter = {};
|
|
2430
|
+
// authentication accessToken required
|
|
2431
|
+
// http bearer authentication required
|
|
2432
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2433
|
+
if (walletId != null) {
|
|
2434
|
+
localVarHeaderParameter['walletId'] = String(walletId);
|
|
2435
|
+
}
|
|
2436
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2437
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2438
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2439
|
+
return {
|
|
2440
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2441
|
+
options: localVarRequestOptions,
|
|
2442
|
+
};
|
|
2443
|
+
}),
|
|
2444
|
+
/**
|
|
2445
|
+
* Get entity based on the entity ID
|
|
2446
|
+
* @param {string} walletId
|
|
2447
|
+
* @param {string} entityId
|
|
2448
|
+
* @param {*} [options] Override http request option.
|
|
2449
|
+
* @throws {RequiredError}
|
|
2450
|
+
*/
|
|
2451
|
+
wmpEntityGet: (walletId, entityId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2452
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
2453
|
+
(0, common_1.assertParamExists)('wmpEntityGet', 'walletId', walletId);
|
|
2454
|
+
// verify required parameter 'entityId' is not null or undefined
|
|
2455
|
+
(0, common_1.assertParamExists)('wmpEntityGet', 'entityId', entityId);
|
|
2456
|
+
const localVarPath = `/wmp/entities/{entity_id}`
|
|
2457
|
+
.replace(`{${"entity_id"}}`, encodeURIComponent(String(entityId)));
|
|
2458
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2459
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2460
|
+
let baseOptions;
|
|
2461
|
+
if (configuration) {
|
|
2462
|
+
baseOptions = configuration.baseOptions;
|
|
2463
|
+
}
|
|
2464
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2465
|
+
const localVarHeaderParameter = {};
|
|
2466
|
+
const localVarQueryParameter = {};
|
|
2467
|
+
// authentication accessToken required
|
|
2468
|
+
// http bearer authentication required
|
|
2469
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2470
|
+
if (walletId != null) {
|
|
2471
|
+
localVarHeaderParameter['walletId'] = String(walletId);
|
|
2472
|
+
}
|
|
2473
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2474
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2475
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2476
|
+
return {
|
|
2477
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2478
|
+
options: localVarRequestOptions,
|
|
2479
|
+
};
|
|
2480
|
+
}),
|
|
2481
|
+
/**
|
|
2482
|
+
* Get all clients that have established WMP connection.
|
|
2483
|
+
* @param {string} walletId
|
|
2484
|
+
* @param {WmpEntityListEntityTypeEnum} entityType
|
|
2485
|
+
* @param {*} [options] Override http request option.
|
|
2486
|
+
* @throws {RequiredError}
|
|
2487
|
+
*/
|
|
2488
|
+
wmpEntityList: (walletId, entityType, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2489
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
2490
|
+
(0, common_1.assertParamExists)('wmpEntityList', 'walletId', walletId);
|
|
2491
|
+
// verify required parameter 'entityType' is not null or undefined
|
|
2492
|
+
(0, common_1.assertParamExists)('wmpEntityList', 'entityType', entityType);
|
|
2493
|
+
const localVarPath = `/wmp/entities`;
|
|
2494
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2495
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2496
|
+
let baseOptions;
|
|
2497
|
+
if (configuration) {
|
|
2498
|
+
baseOptions = configuration.baseOptions;
|
|
2499
|
+
}
|
|
2500
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2501
|
+
const localVarHeaderParameter = {};
|
|
2502
|
+
const localVarQueryParameter = {};
|
|
2503
|
+
// authentication accessToken required
|
|
2504
|
+
// http bearer authentication required
|
|
2505
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2506
|
+
if (entityType !== undefined) {
|
|
2507
|
+
localVarQueryParameter['entityType'] = entityType;
|
|
2508
|
+
}
|
|
2509
|
+
if (walletId != null) {
|
|
2510
|
+
localVarHeaderParameter['walletId'] = String(walletId);
|
|
2511
|
+
}
|
|
2512
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2513
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2514
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2515
|
+
return {
|
|
2516
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2517
|
+
options: localVarRequestOptions,
|
|
2518
|
+
};
|
|
2519
|
+
}),
|
|
2520
|
+
/**
|
|
2521
|
+
* Connect to a WMP server entity
|
|
2522
|
+
* @param {string} walletId
|
|
2523
|
+
* @param {string} entityId
|
|
2524
|
+
* @param {*} [options] Override http request option.
|
|
2525
|
+
* @throws {RequiredError}
|
|
2526
|
+
*/
|
|
2527
|
+
wmpEntityServerConnect: (walletId, entityId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2528
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
2529
|
+
(0, common_1.assertParamExists)('wmpEntityServerConnect', 'walletId', walletId);
|
|
2530
|
+
// verify required parameter 'entityId' is not null or undefined
|
|
2531
|
+
(0, common_1.assertParamExists)('wmpEntityServerConnect', 'entityId', entityId);
|
|
2532
|
+
const localVarPath = `/wmp/entities/{entity_id}/connection`
|
|
2533
|
+
.replace(`{${"entity_id"}}`, encodeURIComponent(String(entityId)));
|
|
2534
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2535
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2536
|
+
let baseOptions;
|
|
2537
|
+
if (configuration) {
|
|
2538
|
+
baseOptions = configuration.baseOptions;
|
|
2539
|
+
}
|
|
2540
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2541
|
+
const localVarHeaderParameter = {};
|
|
2542
|
+
const localVarQueryParameter = {};
|
|
2543
|
+
// authentication accessToken required
|
|
2544
|
+
// http bearer authentication required
|
|
2545
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2546
|
+
if (walletId != null) {
|
|
2547
|
+
localVarHeaderParameter['walletId'] = String(walletId);
|
|
2548
|
+
}
|
|
2549
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2550
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2551
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2552
|
+
return {
|
|
2553
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2554
|
+
options: localVarRequestOptions,
|
|
2555
|
+
};
|
|
2556
|
+
}),
|
|
2223
2557
|
};
|
|
2224
2558
|
};
|
|
2225
2559
|
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
@@ -3134,6 +3468,148 @@ const DefaultApiFp = function (configuration) {
|
|
|
3134
3468
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3135
3469
|
});
|
|
3136
3470
|
},
|
|
3471
|
+
/**
|
|
3472
|
+
* Accepts a WMP invitation
|
|
3473
|
+
* @param {string} walletId
|
|
3474
|
+
* @param {WmpAcceptInvitationPayload} [wmpAcceptInvitationPayload]
|
|
3475
|
+
* @param {*} [options] Override http request option.
|
|
3476
|
+
* @throws {RequiredError}
|
|
3477
|
+
*/
|
|
3478
|
+
wmpAcceptInvitation(walletId, wmpAcceptInvitationPayload, options) {
|
|
3479
|
+
var _a, _b, _c;
|
|
3480
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3481
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.wmpAcceptInvitation(walletId, wmpAcceptInvitationPayload, options);
|
|
3482
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3483
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.wmpAcceptInvitation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3484
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3485
|
+
});
|
|
3486
|
+
},
|
|
3487
|
+
/**
|
|
3488
|
+
* Get pending WMP requests (credential offers or credential verification requests)
|
|
3489
|
+
* @param {string} walletId
|
|
3490
|
+
* @param {*} [options] Override http request option.
|
|
3491
|
+
* @throws {RequiredError}
|
|
3492
|
+
*/
|
|
3493
|
+
wmpClientGetPendingRequests(walletId, options) {
|
|
3494
|
+
var _a, _b, _c;
|
|
3495
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3496
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.wmpClientGetPendingRequests(walletId, options);
|
|
3497
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3498
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.wmpClientGetPendingRequests']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3499
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3500
|
+
});
|
|
3501
|
+
},
|
|
3502
|
+
/**
|
|
3503
|
+
* Process WMP request
|
|
3504
|
+
* @param {string} walletId
|
|
3505
|
+
* @param {string} requestId
|
|
3506
|
+
* @param {*} [options] Override http request option.
|
|
3507
|
+
* @throws {RequiredError}
|
|
3508
|
+
*/
|
|
3509
|
+
wmpClientProcessRequest(walletId, requestId, options) {
|
|
3510
|
+
var _a, _b, _c;
|
|
3511
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3512
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.wmpClientProcessRequest(walletId, requestId, options);
|
|
3513
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3514
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.wmpClientProcessRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3515
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3516
|
+
});
|
|
3517
|
+
},
|
|
3518
|
+
/**
|
|
3519
|
+
* Creates a new WMP invitation
|
|
3520
|
+
* @param {string} walletId
|
|
3521
|
+
* @param {*} [options] Override http request option.
|
|
3522
|
+
* @throws {RequiredError}
|
|
3523
|
+
*/
|
|
3524
|
+
wmpCreateNewInvitation(walletId, options) {
|
|
3525
|
+
var _a, _b, _c;
|
|
3526
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3527
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.wmpCreateNewInvitation(walletId, options);
|
|
3528
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3529
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.wmpCreateNewInvitation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3530
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3531
|
+
});
|
|
3532
|
+
},
|
|
3533
|
+
/**
|
|
3534
|
+
* Get entity connection status
|
|
3535
|
+
* @param {string} walletId
|
|
3536
|
+
* @param {string} entityId
|
|
3537
|
+
* @param {*} [options] Override http request option.
|
|
3538
|
+
* @throws {RequiredError}
|
|
3539
|
+
*/
|
|
3540
|
+
wmpEntityConnectionGet(walletId, entityId, options) {
|
|
3541
|
+
var _a, _b, _c;
|
|
3542
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3543
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.wmpEntityConnectionGet(walletId, entityId, options);
|
|
3544
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3545
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.wmpEntityConnectionGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3546
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3547
|
+
});
|
|
3548
|
+
},
|
|
3549
|
+
/**
|
|
3550
|
+
* Delete entity based on the entity ID
|
|
3551
|
+
* @param {string} walletId
|
|
3552
|
+
* @param {string} entityId
|
|
3553
|
+
* @param {*} [options] Override http request option.
|
|
3554
|
+
* @throws {RequiredError}
|
|
3555
|
+
*/
|
|
3556
|
+
wmpEntityDelete(walletId, entityId, options) {
|
|
3557
|
+
var _a, _b, _c;
|
|
3558
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3559
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.wmpEntityDelete(walletId, entityId, options);
|
|
3560
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3561
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.wmpEntityDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3562
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3563
|
+
});
|
|
3564
|
+
},
|
|
3565
|
+
/**
|
|
3566
|
+
* Get entity based on the entity ID
|
|
3567
|
+
* @param {string} walletId
|
|
3568
|
+
* @param {string} entityId
|
|
3569
|
+
* @param {*} [options] Override http request option.
|
|
3570
|
+
* @throws {RequiredError}
|
|
3571
|
+
*/
|
|
3572
|
+
wmpEntityGet(walletId, entityId, options) {
|
|
3573
|
+
var _a, _b, _c;
|
|
3574
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3575
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.wmpEntityGet(walletId, entityId, options);
|
|
3576
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3577
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.wmpEntityGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3578
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3579
|
+
});
|
|
3580
|
+
},
|
|
3581
|
+
/**
|
|
3582
|
+
* Get all clients that have established WMP connection.
|
|
3583
|
+
* @param {string} walletId
|
|
3584
|
+
* @param {WmpEntityListEntityTypeEnum} entityType
|
|
3585
|
+
* @param {*} [options] Override http request option.
|
|
3586
|
+
* @throws {RequiredError}
|
|
3587
|
+
*/
|
|
3588
|
+
wmpEntityList(walletId, entityType, options) {
|
|
3589
|
+
var _a, _b, _c;
|
|
3590
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3591
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.wmpEntityList(walletId, entityType, options);
|
|
3592
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3593
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.wmpEntityList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3594
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3595
|
+
});
|
|
3596
|
+
},
|
|
3597
|
+
/**
|
|
3598
|
+
* Connect to a WMP server entity
|
|
3599
|
+
* @param {string} walletId
|
|
3600
|
+
* @param {string} entityId
|
|
3601
|
+
* @param {*} [options] Override http request option.
|
|
3602
|
+
* @throws {RequiredError}
|
|
3603
|
+
*/
|
|
3604
|
+
wmpEntityServerConnect(walletId, entityId, options) {
|
|
3605
|
+
var _a, _b, _c;
|
|
3606
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3607
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.wmpEntityServerConnect(walletId, entityId, options);
|
|
3608
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3609
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.wmpEntityServerConnect']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3610
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3611
|
+
});
|
|
3612
|
+
},
|
|
3137
3613
|
};
|
|
3138
3614
|
};
|
|
3139
3615
|
exports.DefaultApiFp = DefaultApiFp;
|
|
@@ -3712,6 +4188,94 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
3712
4188
|
walletX509CertificateImport(walletId, certificateImportRequest, options) {
|
|
3713
4189
|
return localVarFp.walletX509CertificateImport(walletId, certificateImportRequest, options).then((request) => request(axios, basePath));
|
|
3714
4190
|
},
|
|
4191
|
+
/**
|
|
4192
|
+
* Accepts a WMP invitation
|
|
4193
|
+
* @param {string} walletId
|
|
4194
|
+
* @param {WmpAcceptInvitationPayload} [wmpAcceptInvitationPayload]
|
|
4195
|
+
* @param {*} [options] Override http request option.
|
|
4196
|
+
* @throws {RequiredError}
|
|
4197
|
+
*/
|
|
4198
|
+
wmpAcceptInvitation(walletId, wmpAcceptInvitationPayload, options) {
|
|
4199
|
+
return localVarFp.wmpAcceptInvitation(walletId, wmpAcceptInvitationPayload, options).then((request) => request(axios, basePath));
|
|
4200
|
+
},
|
|
4201
|
+
/**
|
|
4202
|
+
* Get pending WMP requests (credential offers or credential verification requests)
|
|
4203
|
+
* @param {string} walletId
|
|
4204
|
+
* @param {*} [options] Override http request option.
|
|
4205
|
+
* @throws {RequiredError}
|
|
4206
|
+
*/
|
|
4207
|
+
wmpClientGetPendingRequests(walletId, options) {
|
|
4208
|
+
return localVarFp.wmpClientGetPendingRequests(walletId, options).then((request) => request(axios, basePath));
|
|
4209
|
+
},
|
|
4210
|
+
/**
|
|
4211
|
+
* Process WMP request
|
|
4212
|
+
* @param {string} walletId
|
|
4213
|
+
* @param {string} requestId
|
|
4214
|
+
* @param {*} [options] Override http request option.
|
|
4215
|
+
* @throws {RequiredError}
|
|
4216
|
+
*/
|
|
4217
|
+
wmpClientProcessRequest(walletId, requestId, options) {
|
|
4218
|
+
return localVarFp.wmpClientProcessRequest(walletId, requestId, options).then((request) => request(axios, basePath));
|
|
4219
|
+
},
|
|
4220
|
+
/**
|
|
4221
|
+
* Creates a new WMP invitation
|
|
4222
|
+
* @param {string} walletId
|
|
4223
|
+
* @param {*} [options] Override http request option.
|
|
4224
|
+
* @throws {RequiredError}
|
|
4225
|
+
*/
|
|
4226
|
+
wmpCreateNewInvitation(walletId, options) {
|
|
4227
|
+
return localVarFp.wmpCreateNewInvitation(walletId, options).then((request) => request(axios, basePath));
|
|
4228
|
+
},
|
|
4229
|
+
/**
|
|
4230
|
+
* Get entity connection status
|
|
4231
|
+
* @param {string} walletId
|
|
4232
|
+
* @param {string} entityId
|
|
4233
|
+
* @param {*} [options] Override http request option.
|
|
4234
|
+
* @throws {RequiredError}
|
|
4235
|
+
*/
|
|
4236
|
+
wmpEntityConnectionGet(walletId, entityId, options) {
|
|
4237
|
+
return localVarFp.wmpEntityConnectionGet(walletId, entityId, options).then((request) => request(axios, basePath));
|
|
4238
|
+
},
|
|
4239
|
+
/**
|
|
4240
|
+
* Delete entity based on the entity ID
|
|
4241
|
+
* @param {string} walletId
|
|
4242
|
+
* @param {string} entityId
|
|
4243
|
+
* @param {*} [options] Override http request option.
|
|
4244
|
+
* @throws {RequiredError}
|
|
4245
|
+
*/
|
|
4246
|
+
wmpEntityDelete(walletId, entityId, options) {
|
|
4247
|
+
return localVarFp.wmpEntityDelete(walletId, entityId, options).then((request) => request(axios, basePath));
|
|
4248
|
+
},
|
|
4249
|
+
/**
|
|
4250
|
+
* Get entity based on the entity ID
|
|
4251
|
+
* @param {string} walletId
|
|
4252
|
+
* @param {string} entityId
|
|
4253
|
+
* @param {*} [options] Override http request option.
|
|
4254
|
+
* @throws {RequiredError}
|
|
4255
|
+
*/
|
|
4256
|
+
wmpEntityGet(walletId, entityId, options) {
|
|
4257
|
+
return localVarFp.wmpEntityGet(walletId, entityId, options).then((request) => request(axios, basePath));
|
|
4258
|
+
},
|
|
4259
|
+
/**
|
|
4260
|
+
* Get all clients that have established WMP connection.
|
|
4261
|
+
* @param {string} walletId
|
|
4262
|
+
* @param {WmpEntityListEntityTypeEnum} entityType
|
|
4263
|
+
* @param {*} [options] Override http request option.
|
|
4264
|
+
* @throws {RequiredError}
|
|
4265
|
+
*/
|
|
4266
|
+
wmpEntityList(walletId, entityType, options) {
|
|
4267
|
+
return localVarFp.wmpEntityList(walletId, entityType, options).then((request) => request(axios, basePath));
|
|
4268
|
+
},
|
|
4269
|
+
/**
|
|
4270
|
+
* Connect to a WMP server entity
|
|
4271
|
+
* @param {string} walletId
|
|
4272
|
+
* @param {string} entityId
|
|
4273
|
+
* @param {*} [options] Override http request option.
|
|
4274
|
+
* @throws {RequiredError}
|
|
4275
|
+
*/
|
|
4276
|
+
wmpEntityServerConnect(walletId, entityId, options) {
|
|
4277
|
+
return localVarFp.wmpEntityServerConnect(walletId, entityId, options).then((request) => request(axios, basePath));
|
|
4278
|
+
},
|
|
3715
4279
|
};
|
|
3716
4280
|
};
|
|
3717
4281
|
exports.DefaultApiFactory = DefaultApiFactory;
|
|
@@ -4288,6 +4852,94 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4288
4852
|
walletX509CertificateImport(walletId, certificateImportRequest, options) {
|
|
4289
4853
|
return (0, exports.DefaultApiFp)(this.configuration).walletX509CertificateImport(walletId, certificateImportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4290
4854
|
}
|
|
4855
|
+
/**
|
|
4856
|
+
* Accepts a WMP invitation
|
|
4857
|
+
* @param {string} walletId
|
|
4858
|
+
* @param {WmpAcceptInvitationPayload} [wmpAcceptInvitationPayload]
|
|
4859
|
+
* @param {*} [options] Override http request option.
|
|
4860
|
+
* @throws {RequiredError}
|
|
4861
|
+
*/
|
|
4862
|
+
wmpAcceptInvitation(walletId, wmpAcceptInvitationPayload, options) {
|
|
4863
|
+
return (0, exports.DefaultApiFp)(this.configuration).wmpAcceptInvitation(walletId, wmpAcceptInvitationPayload, options).then((request) => request(this.axios, this.basePath));
|
|
4864
|
+
}
|
|
4865
|
+
/**
|
|
4866
|
+
* Get pending WMP requests (credential offers or credential verification requests)
|
|
4867
|
+
* @param {string} walletId
|
|
4868
|
+
* @param {*} [options] Override http request option.
|
|
4869
|
+
* @throws {RequiredError}
|
|
4870
|
+
*/
|
|
4871
|
+
wmpClientGetPendingRequests(walletId, options) {
|
|
4872
|
+
return (0, exports.DefaultApiFp)(this.configuration).wmpClientGetPendingRequests(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
4873
|
+
}
|
|
4874
|
+
/**
|
|
4875
|
+
* Process WMP request
|
|
4876
|
+
* @param {string} walletId
|
|
4877
|
+
* @param {string} requestId
|
|
4878
|
+
* @param {*} [options] Override http request option.
|
|
4879
|
+
* @throws {RequiredError}
|
|
4880
|
+
*/
|
|
4881
|
+
wmpClientProcessRequest(walletId, requestId, options) {
|
|
4882
|
+
return (0, exports.DefaultApiFp)(this.configuration).wmpClientProcessRequest(walletId, requestId, options).then((request) => request(this.axios, this.basePath));
|
|
4883
|
+
}
|
|
4884
|
+
/**
|
|
4885
|
+
* Creates a new WMP invitation
|
|
4886
|
+
* @param {string} walletId
|
|
4887
|
+
* @param {*} [options] Override http request option.
|
|
4888
|
+
* @throws {RequiredError}
|
|
4889
|
+
*/
|
|
4890
|
+
wmpCreateNewInvitation(walletId, options) {
|
|
4891
|
+
return (0, exports.DefaultApiFp)(this.configuration).wmpCreateNewInvitation(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
4892
|
+
}
|
|
4893
|
+
/**
|
|
4894
|
+
* Get entity connection status
|
|
4895
|
+
* @param {string} walletId
|
|
4896
|
+
* @param {string} entityId
|
|
4897
|
+
* @param {*} [options] Override http request option.
|
|
4898
|
+
* @throws {RequiredError}
|
|
4899
|
+
*/
|
|
4900
|
+
wmpEntityConnectionGet(walletId, entityId, options) {
|
|
4901
|
+
return (0, exports.DefaultApiFp)(this.configuration).wmpEntityConnectionGet(walletId, entityId, options).then((request) => request(this.axios, this.basePath));
|
|
4902
|
+
}
|
|
4903
|
+
/**
|
|
4904
|
+
* Delete entity based on the entity ID
|
|
4905
|
+
* @param {string} walletId
|
|
4906
|
+
* @param {string} entityId
|
|
4907
|
+
* @param {*} [options] Override http request option.
|
|
4908
|
+
* @throws {RequiredError}
|
|
4909
|
+
*/
|
|
4910
|
+
wmpEntityDelete(walletId, entityId, options) {
|
|
4911
|
+
return (0, exports.DefaultApiFp)(this.configuration).wmpEntityDelete(walletId, entityId, options).then((request) => request(this.axios, this.basePath));
|
|
4912
|
+
}
|
|
4913
|
+
/**
|
|
4914
|
+
* Get entity based on the entity ID
|
|
4915
|
+
* @param {string} walletId
|
|
4916
|
+
* @param {string} entityId
|
|
4917
|
+
* @param {*} [options] Override http request option.
|
|
4918
|
+
* @throws {RequiredError}
|
|
4919
|
+
*/
|
|
4920
|
+
wmpEntityGet(walletId, entityId, options) {
|
|
4921
|
+
return (0, exports.DefaultApiFp)(this.configuration).wmpEntityGet(walletId, entityId, options).then((request) => request(this.axios, this.basePath));
|
|
4922
|
+
}
|
|
4923
|
+
/**
|
|
4924
|
+
* Get all clients that have established WMP connection.
|
|
4925
|
+
* @param {string} walletId
|
|
4926
|
+
* @param {WmpEntityListEntityTypeEnum} entityType
|
|
4927
|
+
* @param {*} [options] Override http request option.
|
|
4928
|
+
* @throws {RequiredError}
|
|
4929
|
+
*/
|
|
4930
|
+
wmpEntityList(walletId, entityType, options) {
|
|
4931
|
+
return (0, exports.DefaultApiFp)(this.configuration).wmpEntityList(walletId, entityType, options).then((request) => request(this.axios, this.basePath));
|
|
4932
|
+
}
|
|
4933
|
+
/**
|
|
4934
|
+
* Connect to a WMP server entity
|
|
4935
|
+
* @param {string} walletId
|
|
4936
|
+
* @param {string} entityId
|
|
4937
|
+
* @param {*} [options] Override http request option.
|
|
4938
|
+
* @throws {RequiredError}
|
|
4939
|
+
*/
|
|
4940
|
+
wmpEntityServerConnect(walletId, entityId, options) {
|
|
4941
|
+
return (0, exports.DefaultApiFp)(this.configuration).wmpEntityServerConnect(walletId, entityId, options).then((request) => request(this.axios, this.basePath));
|
|
4942
|
+
}
|
|
4291
4943
|
}
|
|
4292
4944
|
exports.DefaultApi = DefaultApi;
|
|
4293
4945
|
exports.CredentialListInteractionEnum = {
|
|
@@ -4296,3 +4948,7 @@ exports.CredentialListInteractionEnum = {
|
|
|
4296
4948
|
StatusList: 'statusList',
|
|
4297
4949
|
TaoCredentials: 'taoCredentials'
|
|
4298
4950
|
};
|
|
4951
|
+
exports.WmpEntityListEntityTypeEnum = {
|
|
4952
|
+
Server: 'server',
|
|
4953
|
+
Client: 'client'
|
|
4954
|
+
};
|