@idunion/tl-sdk 0.0.2 → 0.0.5
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 +55 -54
- package/api.js +74 -95
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -521,6 +521,12 @@ export interface DidOnboardingStatus {
|
|
|
521
521
|
* @memberof DidOnboardingStatus
|
|
522
522
|
*/
|
|
523
523
|
'status': DidOnboardingStatusStatusEnum;
|
|
524
|
+
/**
|
|
525
|
+
* Trust List ID
|
|
526
|
+
* @type {string}
|
|
527
|
+
* @memberof DidOnboardingStatus
|
|
528
|
+
*/
|
|
529
|
+
'trustListId'?: string;
|
|
524
530
|
}
|
|
525
531
|
export declare const DidOnboardingStatusStatusEnum: {
|
|
526
532
|
readonly InProgress: "in_progress";
|
|
@@ -748,25 +754,32 @@ export interface Tl {
|
|
|
748
754
|
* @type {string}
|
|
749
755
|
* @memberof Tl
|
|
750
756
|
*/
|
|
751
|
-
'id'
|
|
757
|
+
'id': string;
|
|
752
758
|
/**
|
|
753
759
|
* Trust List human-readable name
|
|
754
760
|
* @type {string}
|
|
755
761
|
* @memberof Tl
|
|
756
762
|
*/
|
|
757
|
-
'name'
|
|
763
|
+
'name': string;
|
|
758
764
|
/**
|
|
759
765
|
*
|
|
760
766
|
* @type {string}
|
|
761
767
|
* @memberof Tl
|
|
762
768
|
*/
|
|
763
|
-
'
|
|
769
|
+
'ownerId': string;
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
*
|
|
773
|
+
* @export
|
|
774
|
+
* @interface TlList
|
|
775
|
+
*/
|
|
776
|
+
export interface TlList {
|
|
764
777
|
/**
|
|
765
778
|
*
|
|
766
|
-
* @type {
|
|
767
|
-
* @memberof
|
|
779
|
+
* @type {Array<Tl>}
|
|
780
|
+
* @memberof TlList
|
|
768
781
|
*/
|
|
769
|
-
'
|
|
782
|
+
'items'?: Array<Tl>;
|
|
770
783
|
}
|
|
771
784
|
/**
|
|
772
785
|
* Trust List create payload
|
|
@@ -779,13 +792,13 @@ export interface TlPayload {
|
|
|
779
792
|
* @type {string}
|
|
780
793
|
* @memberof TlPayload
|
|
781
794
|
*/
|
|
782
|
-
'name'
|
|
795
|
+
'name': string;
|
|
783
796
|
/**
|
|
784
797
|
*
|
|
785
|
-
* @type {
|
|
798
|
+
* @type {string}
|
|
786
799
|
* @memberof TlPayload
|
|
787
800
|
*/
|
|
788
|
-
'
|
|
801
|
+
'suggestedId'?: string;
|
|
789
802
|
}
|
|
790
803
|
/**
|
|
791
804
|
* Record defined by a schema
|
|
@@ -877,13 +890,6 @@ export interface VpResponse {
|
|
|
877
890
|
* @export
|
|
878
891
|
*/
|
|
879
892
|
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
880
|
-
/**
|
|
881
|
-
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
882
|
-
* @param {string} credentialId Verifiable Credential Identifier
|
|
883
|
-
* @param {*} [options] Override http request option.
|
|
884
|
-
* @throws {RequiredError}
|
|
885
|
-
*/
|
|
886
|
-
credentialGet: (credentialId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
887
893
|
/**
|
|
888
894
|
* Creates a new DID Document.
|
|
889
895
|
* @param {string} tlId
|
|
@@ -902,20 +908,18 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
902
908
|
didGet: (tlId: string, did: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
903
909
|
/**
|
|
904
910
|
* Initiates the onboarding process to the DID registry.
|
|
905
|
-
* @param {string} tlId
|
|
906
911
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
907
912
|
* @param {*} [options] Override http request option.
|
|
908
913
|
* @throws {RequiredError}
|
|
909
914
|
*/
|
|
910
|
-
didOnboardingInit: (
|
|
915
|
+
didOnboardingInit: (didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
911
916
|
/**
|
|
912
917
|
*
|
|
913
|
-
* @param {string} tlId
|
|
914
918
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
915
919
|
* @param {*} [options] Override http request option.
|
|
916
920
|
* @throws {RequiredError}
|
|
917
921
|
*/
|
|
918
|
-
didOnboardingStatus: (
|
|
922
|
+
didOnboardingStatus: (verifierState: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
919
923
|
/**
|
|
920
924
|
* Adds DID Verification method.
|
|
921
925
|
* @param {string} tlId Trust List Identifier
|
|
@@ -952,6 +956,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
952
956
|
* @throws {RequiredError}
|
|
953
957
|
*/
|
|
954
958
|
tlGet: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
959
|
+
/**
|
|
960
|
+
* Gets Trust Lists for a specific owner
|
|
961
|
+
* @param {*} [options] Override http request option.
|
|
962
|
+
* @throws {RequiredError}
|
|
963
|
+
*/
|
|
964
|
+
tlList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
955
965
|
/**
|
|
956
966
|
* Updates a Trust List based on the specified payload.
|
|
957
967
|
* @param {string} tlId
|
|
@@ -998,13 +1008,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
998
1008
|
* @export
|
|
999
1009
|
*/
|
|
1000
1010
|
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
1001
|
-
/**
|
|
1002
|
-
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
1003
|
-
* @param {string} credentialId Verifiable Credential Identifier
|
|
1004
|
-
* @param {*} [options] Override http request option.
|
|
1005
|
-
* @throws {RequiredError}
|
|
1006
|
-
*/
|
|
1007
|
-
credentialGet(credentialId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialWrapper>>;
|
|
1008
1011
|
/**
|
|
1009
1012
|
* Creates a new DID Document.
|
|
1010
1013
|
* @param {string} tlId
|
|
@@ -1023,20 +1026,18 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1023
1026
|
didGet(tlId: string, did: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidDocument>>;
|
|
1024
1027
|
/**
|
|
1025
1028
|
* Initiates the onboarding process to the DID registry.
|
|
1026
|
-
* @param {string} tlId
|
|
1027
1029
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
1028
1030
|
* @param {*} [options] Override http request option.
|
|
1029
1031
|
* @throws {RequiredError}
|
|
1030
1032
|
*/
|
|
1031
|
-
didOnboardingInit(
|
|
1033
|
+
didOnboardingInit(didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidOnboardingResponse>>;
|
|
1032
1034
|
/**
|
|
1033
1035
|
*
|
|
1034
|
-
* @param {string} tlId
|
|
1035
1036
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
1036
1037
|
* @param {*} [options] Override http request option.
|
|
1037
1038
|
* @throws {RequiredError}
|
|
1038
1039
|
*/
|
|
1039
|
-
didOnboardingStatus(
|
|
1040
|
+
didOnboardingStatus(verifierState: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidOnboardingStatus>>;
|
|
1040
1041
|
/**
|
|
1041
1042
|
* Adds DID Verification method.
|
|
1042
1043
|
* @param {string} tlId Trust List Identifier
|
|
@@ -1073,6 +1074,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1073
1074
|
* @throws {RequiredError}
|
|
1074
1075
|
*/
|
|
1075
1076
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tl>>;
|
|
1077
|
+
/**
|
|
1078
|
+
* Gets Trust Lists for a specific owner
|
|
1079
|
+
* @param {*} [options] Override http request option.
|
|
1080
|
+
* @throws {RequiredError}
|
|
1081
|
+
*/
|
|
1082
|
+
tlList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlList>>;
|
|
1076
1083
|
/**
|
|
1077
1084
|
* Updates a Trust List based on the specified payload.
|
|
1078
1085
|
* @param {string} tlId
|
|
@@ -1119,13 +1126,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1119
1126
|
* @export
|
|
1120
1127
|
*/
|
|
1121
1128
|
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1122
|
-
/**
|
|
1123
|
-
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
1124
|
-
* @param {string} credentialId Verifiable Credential Identifier
|
|
1125
|
-
* @param {*} [options] Override http request option.
|
|
1126
|
-
* @throws {RequiredError}
|
|
1127
|
-
*/
|
|
1128
|
-
credentialGet(credentialId: string, options?: RawAxiosRequestConfig): AxiosPromise<CredentialWrapper>;
|
|
1129
1129
|
/**
|
|
1130
1130
|
* Creates a new DID Document.
|
|
1131
1131
|
* @param {string} tlId
|
|
@@ -1144,20 +1144,18 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1144
1144
|
didGet(tlId: string, did: string, options?: RawAxiosRequestConfig): AxiosPromise<DidDocument>;
|
|
1145
1145
|
/**
|
|
1146
1146
|
* Initiates the onboarding process to the DID registry.
|
|
1147
|
-
* @param {string} tlId
|
|
1148
1147
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
1149
1148
|
* @param {*} [options] Override http request option.
|
|
1150
1149
|
* @throws {RequiredError}
|
|
1151
1150
|
*/
|
|
1152
|
-
didOnboardingInit(
|
|
1151
|
+
didOnboardingInit(didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): AxiosPromise<DidOnboardingResponse>;
|
|
1153
1152
|
/**
|
|
1154
1153
|
*
|
|
1155
|
-
* @param {string} tlId
|
|
1156
1154
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
1157
1155
|
* @param {*} [options] Override http request option.
|
|
1158
1156
|
* @throws {RequiredError}
|
|
1159
1157
|
*/
|
|
1160
|
-
didOnboardingStatus(
|
|
1158
|
+
didOnboardingStatus(verifierState: string, options?: RawAxiosRequestConfig): AxiosPromise<DidOnboardingStatus>;
|
|
1161
1159
|
/**
|
|
1162
1160
|
* Adds DID Verification method.
|
|
1163
1161
|
* @param {string} tlId Trust List Identifier
|
|
@@ -1194,6 +1192,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1194
1192
|
* @throws {RequiredError}
|
|
1195
1193
|
*/
|
|
1196
1194
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<Tl>;
|
|
1195
|
+
/**
|
|
1196
|
+
* Gets Trust Lists for a specific owner
|
|
1197
|
+
* @param {*} [options] Override http request option.
|
|
1198
|
+
* @throws {RequiredError}
|
|
1199
|
+
*/
|
|
1200
|
+
tlList(options?: RawAxiosRequestConfig): AxiosPromise<TlList>;
|
|
1197
1201
|
/**
|
|
1198
1202
|
* Updates a Trust List based on the specified payload.
|
|
1199
1203
|
* @param {string} tlId
|
|
@@ -1242,14 +1246,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1242
1246
|
* @extends {BaseAPI}
|
|
1243
1247
|
*/
|
|
1244
1248
|
export declare class DefaultApi extends BaseAPI {
|
|
1245
|
-
/**
|
|
1246
|
-
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
1247
|
-
* @param {string} credentialId Verifiable Credential Identifier
|
|
1248
|
-
* @param {*} [options] Override http request option.
|
|
1249
|
-
* @throws {RequiredError}
|
|
1250
|
-
* @memberof DefaultApi
|
|
1251
|
-
*/
|
|
1252
|
-
credentialGet(credentialId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialWrapper, any>>;
|
|
1253
1249
|
/**
|
|
1254
1250
|
* Creates a new DID Document.
|
|
1255
1251
|
* @param {string} tlId
|
|
@@ -1270,22 +1266,20 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1270
1266
|
didGet(tlId: string, did: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidDocument, any>>;
|
|
1271
1267
|
/**
|
|
1272
1268
|
* Initiates the onboarding process to the DID registry.
|
|
1273
|
-
* @param {string} tlId
|
|
1274
1269
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
1275
1270
|
* @param {*} [options] Override http request option.
|
|
1276
1271
|
* @throws {RequiredError}
|
|
1277
1272
|
* @memberof DefaultApi
|
|
1278
1273
|
*/
|
|
1279
|
-
didOnboardingInit(
|
|
1274
|
+
didOnboardingInit(didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidOnboardingResponse, any>>;
|
|
1280
1275
|
/**
|
|
1281
1276
|
*
|
|
1282
|
-
* @param {string} tlId
|
|
1283
1277
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
1284
1278
|
* @param {*} [options] Override http request option.
|
|
1285
1279
|
* @throws {RequiredError}
|
|
1286
1280
|
* @memberof DefaultApi
|
|
1287
1281
|
*/
|
|
1288
|
-
didOnboardingStatus(
|
|
1282
|
+
didOnboardingStatus(verifierState: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidOnboardingStatus, any>>;
|
|
1289
1283
|
/**
|
|
1290
1284
|
* Adds DID Verification method.
|
|
1291
1285
|
* @param {string} tlId Trust List Identifier
|
|
@@ -1327,6 +1321,13 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1327
1321
|
* @memberof DefaultApi
|
|
1328
1322
|
*/
|
|
1329
1323
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
|
|
1324
|
+
/**
|
|
1325
|
+
* Gets Trust Lists for a specific owner
|
|
1326
|
+
* @param {*} [options] Override http request option.
|
|
1327
|
+
* @throws {RequiredError}
|
|
1328
|
+
* @memberof DefaultApi
|
|
1329
|
+
*/
|
|
1330
|
+
tlList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlList, any>>;
|
|
1330
1331
|
/**
|
|
1331
1332
|
* Updates a Trust List based on the specified payload.
|
|
1332
1333
|
* @param {string} tlId
|
package/api.js
CHANGED
|
@@ -59,37 +59,6 @@ exports.HealthStatusStatusEnum = {
|
|
|
59
59
|
*/
|
|
60
60
|
const DefaultApiAxiosParamCreator = function (configuration) {
|
|
61
61
|
return {
|
|
62
|
-
/**
|
|
63
|
-
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
64
|
-
* @param {string} credentialId Verifiable Credential Identifier
|
|
65
|
-
* @param {*} [options] Override http request option.
|
|
66
|
-
* @throws {RequiredError}
|
|
67
|
-
*/
|
|
68
|
-
credentialGet: (credentialId_1, ...args_1) => __awaiter(this, [credentialId_1, ...args_1], void 0, function* (credentialId, options = {}) {
|
|
69
|
-
// verify required parameter 'credentialId' is not null or undefined
|
|
70
|
-
(0, common_1.assertParamExists)('credentialGet', 'credentialId', credentialId);
|
|
71
|
-
const localVarPath = `/credentials/{credential_id}`
|
|
72
|
-
.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
|
|
73
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
74
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
75
|
-
let baseOptions;
|
|
76
|
-
if (configuration) {
|
|
77
|
-
baseOptions = configuration.baseOptions;
|
|
78
|
-
}
|
|
79
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
80
|
-
const localVarHeaderParameter = {};
|
|
81
|
-
const localVarQueryParameter = {};
|
|
82
|
-
// authentication accessToken required
|
|
83
|
-
// http bearer authentication required
|
|
84
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
85
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
86
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
87
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
88
|
-
return {
|
|
89
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
90
|
-
options: localVarRequestOptions,
|
|
91
|
-
};
|
|
92
|
-
}),
|
|
93
62
|
/**
|
|
94
63
|
* Creates a new DID Document.
|
|
95
64
|
* @param {string} tlId
|
|
@@ -158,16 +127,12 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
158
127
|
}),
|
|
159
128
|
/**
|
|
160
129
|
* Initiates the onboarding process to the DID registry.
|
|
161
|
-
* @param {string} tlId
|
|
162
130
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
163
131
|
* @param {*} [options] Override http request option.
|
|
164
132
|
* @throws {RequiredError}
|
|
165
133
|
*/
|
|
166
|
-
didOnboardingInit: (
|
|
167
|
-
|
|
168
|
-
(0, common_1.assertParamExists)('didOnboardingInit', 'tlId', tlId);
|
|
169
|
-
const localVarPath = `/{tl_id}/dids/onboarding`
|
|
170
|
-
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
134
|
+
didOnboardingInit: (didOnboardingPayload_1, ...args_1) => __awaiter(this, [didOnboardingPayload_1, ...args_1], void 0, function* (didOnboardingPayload, options = {}) {
|
|
135
|
+
const localVarPath = `/onboarding/did`;
|
|
171
136
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
172
137
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
173
138
|
let baseOptions;
|
|
@@ -189,18 +154,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
189
154
|
}),
|
|
190
155
|
/**
|
|
191
156
|
*
|
|
192
|
-
* @param {string} tlId
|
|
193
157
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
194
158
|
* @param {*} [options] Override http request option.
|
|
195
159
|
* @throws {RequiredError}
|
|
196
160
|
*/
|
|
197
|
-
didOnboardingStatus: (
|
|
198
|
-
// verify required parameter 'tlId' is not null or undefined
|
|
199
|
-
(0, common_1.assertParamExists)('didOnboardingStatus', 'tlId', tlId);
|
|
161
|
+
didOnboardingStatus: (verifierState_1, ...args_1) => __awaiter(this, [verifierState_1, ...args_1], void 0, function* (verifierState, options = {}) {
|
|
200
162
|
// verify required parameter 'verifierState' is not null or undefined
|
|
201
163
|
(0, common_1.assertParamExists)('didOnboardingStatus', 'verifierState', verifierState);
|
|
202
|
-
const localVarPath = `/
|
|
203
|
-
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
164
|
+
const localVarPath = `/onboarding/did`;
|
|
204
165
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
205
166
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
206
167
|
let baseOptions;
|
|
@@ -375,6 +336,33 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
375
336
|
options: localVarRequestOptions,
|
|
376
337
|
};
|
|
377
338
|
}),
|
|
339
|
+
/**
|
|
340
|
+
* Gets Trust Lists for a specific owner
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
*/
|
|
344
|
+
tlList: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
345
|
+
const localVarPath = `/`;
|
|
346
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
347
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
348
|
+
let baseOptions;
|
|
349
|
+
if (configuration) {
|
|
350
|
+
baseOptions = configuration.baseOptions;
|
|
351
|
+
}
|
|
352
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
353
|
+
const localVarHeaderParameter = {};
|
|
354
|
+
const localVarQueryParameter = {};
|
|
355
|
+
// authentication accessToken required
|
|
356
|
+
// http bearer authentication required
|
|
357
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
358
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
359
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
360
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
361
|
+
return {
|
|
362
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
363
|
+
options: localVarRequestOptions,
|
|
364
|
+
};
|
|
365
|
+
}),
|
|
378
366
|
/**
|
|
379
367
|
* Updates a Trust List based on the specified payload.
|
|
380
368
|
* @param {string} tlId
|
|
@@ -558,21 +546,6 @@ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
|
558
546
|
const DefaultApiFp = function (configuration) {
|
|
559
547
|
const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
560
548
|
return {
|
|
561
|
-
/**
|
|
562
|
-
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
563
|
-
* @param {string} credentialId Verifiable Credential Identifier
|
|
564
|
-
* @param {*} [options] Override http request option.
|
|
565
|
-
* @throws {RequiredError}
|
|
566
|
-
*/
|
|
567
|
-
credentialGet(credentialId, options) {
|
|
568
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
569
|
-
var _a, _b, _c;
|
|
570
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialGet(credentialId, options);
|
|
571
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
572
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
573
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
574
|
-
});
|
|
575
|
-
},
|
|
576
549
|
/**
|
|
577
550
|
* Creates a new DID Document.
|
|
578
551
|
* @param {string} tlId
|
|
@@ -607,15 +580,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
607
580
|
},
|
|
608
581
|
/**
|
|
609
582
|
* Initiates the onboarding process to the DID registry.
|
|
610
|
-
* @param {string} tlId
|
|
611
583
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
612
584
|
* @param {*} [options] Override http request option.
|
|
613
585
|
* @throws {RequiredError}
|
|
614
586
|
*/
|
|
615
|
-
didOnboardingInit(
|
|
587
|
+
didOnboardingInit(didOnboardingPayload, options) {
|
|
616
588
|
return __awaiter(this, void 0, void 0, function* () {
|
|
617
589
|
var _a, _b, _c;
|
|
618
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingInit(
|
|
590
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingInit(didOnboardingPayload, options);
|
|
619
591
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
620
592
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.didOnboardingInit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
621
593
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -623,15 +595,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
623
595
|
},
|
|
624
596
|
/**
|
|
625
597
|
*
|
|
626
|
-
* @param {string} tlId
|
|
627
598
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
628
599
|
* @param {*} [options] Override http request option.
|
|
629
600
|
* @throws {RequiredError}
|
|
630
601
|
*/
|
|
631
|
-
didOnboardingStatus(
|
|
602
|
+
didOnboardingStatus(verifierState, options) {
|
|
632
603
|
return __awaiter(this, void 0, void 0, function* () {
|
|
633
604
|
var _a, _b, _c;
|
|
634
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingStatus(
|
|
605
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingStatus(verifierState, options);
|
|
635
606
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
636
607
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.didOnboardingStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
637
608
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -713,6 +684,20 @@ const DefaultApiFp = function (configuration) {
|
|
|
713
684
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
714
685
|
});
|
|
715
686
|
},
|
|
687
|
+
/**
|
|
688
|
+
* Gets Trust Lists for a specific owner
|
|
689
|
+
* @param {*} [options] Override http request option.
|
|
690
|
+
* @throws {RequiredError}
|
|
691
|
+
*/
|
|
692
|
+
tlList(options) {
|
|
693
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
694
|
+
var _a, _b, _c;
|
|
695
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tlList(options);
|
|
696
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
697
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tlList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
698
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
699
|
+
});
|
|
700
|
+
},
|
|
716
701
|
/**
|
|
717
702
|
* Updates a Trust List based on the specified payload.
|
|
718
703
|
* @param {string} tlId
|
|
@@ -803,15 +788,6 @@ exports.DefaultApiFp = DefaultApiFp;
|
|
|
803
788
|
const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
804
789
|
const localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
805
790
|
return {
|
|
806
|
-
/**
|
|
807
|
-
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
808
|
-
* @param {string} credentialId Verifiable Credential Identifier
|
|
809
|
-
* @param {*} [options] Override http request option.
|
|
810
|
-
* @throws {RequiredError}
|
|
811
|
-
*/
|
|
812
|
-
credentialGet(credentialId, options) {
|
|
813
|
-
return localVarFp.credentialGet(credentialId, options).then((request) => request(axios, basePath));
|
|
814
|
-
},
|
|
815
791
|
/**
|
|
816
792
|
* Creates a new DID Document.
|
|
817
793
|
* @param {string} tlId
|
|
@@ -834,23 +810,21 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
834
810
|
},
|
|
835
811
|
/**
|
|
836
812
|
* Initiates the onboarding process to the DID registry.
|
|
837
|
-
* @param {string} tlId
|
|
838
813
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
839
814
|
* @param {*} [options] Override http request option.
|
|
840
815
|
* @throws {RequiredError}
|
|
841
816
|
*/
|
|
842
|
-
didOnboardingInit(
|
|
843
|
-
return localVarFp.didOnboardingInit(
|
|
817
|
+
didOnboardingInit(didOnboardingPayload, options) {
|
|
818
|
+
return localVarFp.didOnboardingInit(didOnboardingPayload, options).then((request) => request(axios, basePath));
|
|
844
819
|
},
|
|
845
820
|
/**
|
|
846
821
|
*
|
|
847
|
-
* @param {string} tlId
|
|
848
822
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
849
823
|
* @param {*} [options] Override http request option.
|
|
850
824
|
* @throws {RequiredError}
|
|
851
825
|
*/
|
|
852
|
-
didOnboardingStatus(
|
|
853
|
-
return localVarFp.didOnboardingStatus(
|
|
826
|
+
didOnboardingStatus(verifierState, options) {
|
|
827
|
+
return localVarFp.didOnboardingStatus(verifierState, options).then((request) => request(axios, basePath));
|
|
854
828
|
},
|
|
855
829
|
/**
|
|
856
830
|
* Adds DID Verification method.
|
|
@@ -898,6 +872,14 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
898
872
|
tlGet(tlId, options) {
|
|
899
873
|
return localVarFp.tlGet(tlId, options).then((request) => request(axios, basePath));
|
|
900
874
|
},
|
|
875
|
+
/**
|
|
876
|
+
* Gets Trust Lists for a specific owner
|
|
877
|
+
* @param {*} [options] Override http request option.
|
|
878
|
+
* @throws {RequiredError}
|
|
879
|
+
*/
|
|
880
|
+
tlList(options) {
|
|
881
|
+
return localVarFp.tlList(options).then((request) => request(axios, basePath));
|
|
882
|
+
},
|
|
901
883
|
/**
|
|
902
884
|
* Updates a Trust List based on the specified payload.
|
|
903
885
|
* @param {string} tlId
|
|
@@ -958,16 +940,6 @@ exports.DefaultApiFactory = DefaultApiFactory;
|
|
|
958
940
|
* @extends {BaseAPI}
|
|
959
941
|
*/
|
|
960
942
|
class DefaultApi extends base_1.BaseAPI {
|
|
961
|
-
/**
|
|
962
|
-
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
963
|
-
* @param {string} credentialId Verifiable Credential Identifier
|
|
964
|
-
* @param {*} [options] Override http request option.
|
|
965
|
-
* @throws {RequiredError}
|
|
966
|
-
* @memberof DefaultApi
|
|
967
|
-
*/
|
|
968
|
-
credentialGet(credentialId, options) {
|
|
969
|
-
return (0, exports.DefaultApiFp)(this.configuration).credentialGet(credentialId, options).then((request) => request(this.axios, this.basePath));
|
|
970
|
-
}
|
|
971
943
|
/**
|
|
972
944
|
* Creates a new DID Document.
|
|
973
945
|
* @param {string} tlId
|
|
@@ -992,25 +964,23 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
992
964
|
}
|
|
993
965
|
/**
|
|
994
966
|
* Initiates the onboarding process to the DID registry.
|
|
995
|
-
* @param {string} tlId
|
|
996
967
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
997
968
|
* @param {*} [options] Override http request option.
|
|
998
969
|
* @throws {RequiredError}
|
|
999
970
|
* @memberof DefaultApi
|
|
1000
971
|
*/
|
|
1001
|
-
didOnboardingInit(
|
|
1002
|
-
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingInit(
|
|
972
|
+
didOnboardingInit(didOnboardingPayload, options) {
|
|
973
|
+
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingInit(didOnboardingPayload, options).then((request) => request(this.axios, this.basePath));
|
|
1003
974
|
}
|
|
1004
975
|
/**
|
|
1005
976
|
*
|
|
1006
|
-
* @param {string} tlId
|
|
1007
977
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
1008
978
|
* @param {*} [options] Override http request option.
|
|
1009
979
|
* @throws {RequiredError}
|
|
1010
980
|
* @memberof DefaultApi
|
|
1011
981
|
*/
|
|
1012
|
-
didOnboardingStatus(
|
|
1013
|
-
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingStatus(
|
|
982
|
+
didOnboardingStatus(verifierState, options) {
|
|
983
|
+
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingStatus(verifierState, options).then((request) => request(this.axios, this.basePath));
|
|
1014
984
|
}
|
|
1015
985
|
/**
|
|
1016
986
|
* Adds DID Verification method.
|
|
@@ -1063,6 +1033,15 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1063
1033
|
tlGet(tlId, options) {
|
|
1064
1034
|
return (0, exports.DefaultApiFp)(this.configuration).tlGet(tlId, options).then((request) => request(this.axios, this.basePath));
|
|
1065
1035
|
}
|
|
1036
|
+
/**
|
|
1037
|
+
* Gets Trust Lists for a specific owner
|
|
1038
|
+
* @param {*} [options] Override http request option.
|
|
1039
|
+
* @throws {RequiredError}
|
|
1040
|
+
* @memberof DefaultApi
|
|
1041
|
+
*/
|
|
1042
|
+
tlList(options) {
|
|
1043
|
+
return (0, exports.DefaultApiFp)(this.configuration).tlList(options).then((request) => request(this.axios, this.basePath));
|
|
1044
|
+
}
|
|
1066
1045
|
/**
|
|
1067
1046
|
* Updates a Trust List based on the specified payload.
|
|
1068
1047
|
* @param {string} tlId
|