@idunion/tl-sdk 0.0.22 → 0.0.23
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 +79 -0
- package/api.js +62 -0
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -434,6 +434,12 @@ export interface DidDocumentCreatePayload {
|
|
|
434
434
|
* @memberof DidDocumentCreatePayload
|
|
435
435
|
*/
|
|
436
436
|
'didKey': string;
|
|
437
|
+
/**
|
|
438
|
+
*
|
|
439
|
+
* @type {string}
|
|
440
|
+
* @memberof DidDocumentCreatePayload
|
|
441
|
+
*/
|
|
442
|
+
'orgName': string;
|
|
437
443
|
}
|
|
438
444
|
/**
|
|
439
445
|
*
|
|
@@ -825,6 +831,50 @@ export interface TlPayload {
|
|
|
825
831
|
*/
|
|
826
832
|
'verifierId': string;
|
|
827
833
|
}
|
|
834
|
+
/**
|
|
835
|
+
*
|
|
836
|
+
* @export
|
|
837
|
+
* @interface Tlr
|
|
838
|
+
*/
|
|
839
|
+
export interface Tlr {
|
|
840
|
+
/**
|
|
841
|
+
*
|
|
842
|
+
* @type {string}
|
|
843
|
+
* @memberof Tlr
|
|
844
|
+
*/
|
|
845
|
+
'orgName': string;
|
|
846
|
+
/**
|
|
847
|
+
*
|
|
848
|
+
* @type {string}
|
|
849
|
+
* @memberof Tlr
|
|
850
|
+
*/
|
|
851
|
+
'did': string;
|
|
852
|
+
/**
|
|
853
|
+
*
|
|
854
|
+
* @type {string}
|
|
855
|
+
* @memberof Tlr
|
|
856
|
+
*/
|
|
857
|
+
'tlId': string;
|
|
858
|
+
/**
|
|
859
|
+
*
|
|
860
|
+
* @type {string}
|
|
861
|
+
* @memberof Tlr
|
|
862
|
+
*/
|
|
863
|
+
'tlName': string;
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
*
|
|
867
|
+
* @export
|
|
868
|
+
* @interface TlrList
|
|
869
|
+
*/
|
|
870
|
+
export interface TlrList {
|
|
871
|
+
/**
|
|
872
|
+
*
|
|
873
|
+
* @type {Array<Tlr>}
|
|
874
|
+
* @memberof TlrList
|
|
875
|
+
*/
|
|
876
|
+
'items'?: Array<Tlr>;
|
|
877
|
+
}
|
|
828
878
|
/**
|
|
829
879
|
*
|
|
830
880
|
* @export
|
|
@@ -958,6 +1008,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
958
1008
|
* @throws {RequiredError}
|
|
959
1009
|
*/
|
|
960
1010
|
tlPatch: (tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1011
|
+
/**
|
|
1012
|
+
* Retrieves a list of Trust List Records.
|
|
1013
|
+
* @param {string} orgName
|
|
1014
|
+
* @param {*} [options] Override http request option.
|
|
1015
|
+
* @throws {RequiredError}
|
|
1016
|
+
*/
|
|
1017
|
+
tlrSearch: (orgName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
961
1018
|
/**
|
|
962
1019
|
* Gets a Verifiable Presentation.
|
|
963
1020
|
* @param {string} tlId
|
|
@@ -1062,6 +1119,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1062
1119
|
* @throws {RequiredError}
|
|
1063
1120
|
*/
|
|
1064
1121
|
tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tl>>;
|
|
1122
|
+
/**
|
|
1123
|
+
* Retrieves a list of Trust List Records.
|
|
1124
|
+
* @param {string} orgName
|
|
1125
|
+
* @param {*} [options] Override http request option.
|
|
1126
|
+
* @throws {RequiredError}
|
|
1127
|
+
*/
|
|
1128
|
+
tlrSearch(orgName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlrList>>;
|
|
1065
1129
|
/**
|
|
1066
1130
|
* Gets a Verifiable Presentation.
|
|
1067
1131
|
* @param {string} tlId
|
|
@@ -1166,6 +1230,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1166
1230
|
* @throws {RequiredError}
|
|
1167
1231
|
*/
|
|
1168
1232
|
tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): AxiosPromise<Tl>;
|
|
1233
|
+
/**
|
|
1234
|
+
* Retrieves a list of Trust List Records.
|
|
1235
|
+
* @param {string} orgName
|
|
1236
|
+
* @param {*} [options] Override http request option.
|
|
1237
|
+
* @throws {RequiredError}
|
|
1238
|
+
*/
|
|
1239
|
+
tlrSearch(orgName: string, options?: RawAxiosRequestConfig): AxiosPromise<TlrList>;
|
|
1169
1240
|
/**
|
|
1170
1241
|
* Gets a Verifiable Presentation.
|
|
1171
1242
|
* @param {string} tlId
|
|
@@ -1284,6 +1355,14 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1284
1355
|
* @memberof DefaultApi
|
|
1285
1356
|
*/
|
|
1286
1357
|
tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
|
|
1358
|
+
/**
|
|
1359
|
+
* Retrieves a list of Trust List Records.
|
|
1360
|
+
* @param {string} orgName
|
|
1361
|
+
* @param {*} [options] Override http request option.
|
|
1362
|
+
* @throws {RequiredError}
|
|
1363
|
+
* @memberof DefaultApi
|
|
1364
|
+
*/
|
|
1365
|
+
tlrSearch(orgName: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlrList, any>>;
|
|
1287
1366
|
/**
|
|
1288
1367
|
* Gets a Verifiable Presentation.
|
|
1289
1368
|
* @param {string} tlId
|
package/api.js
CHANGED
|
@@ -434,6 +434,34 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
434
434
|
options: localVarRequestOptions,
|
|
435
435
|
};
|
|
436
436
|
}),
|
|
437
|
+
/**
|
|
438
|
+
* Retrieves a list of Trust List Records.
|
|
439
|
+
* @param {string} orgName
|
|
440
|
+
* @param {*} [options] Override http request option.
|
|
441
|
+
* @throws {RequiredError}
|
|
442
|
+
*/
|
|
443
|
+
tlrSearch: (orgName_1, ...args_1) => __awaiter(this, [orgName_1, ...args_1], void 0, function* (orgName, options = {}) {
|
|
444
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
445
|
+
(0, common_1.assertParamExists)('tlrSearch', 'orgName', orgName);
|
|
446
|
+
const localVarPath = `/tlrs/{org_name}`
|
|
447
|
+
.replace(`{${"org_name"}}`, encodeURIComponent(String(orgName)));
|
|
448
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
449
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
450
|
+
let baseOptions;
|
|
451
|
+
if (configuration) {
|
|
452
|
+
baseOptions = configuration.baseOptions;
|
|
453
|
+
}
|
|
454
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
455
|
+
const localVarHeaderParameter = {};
|
|
456
|
+
const localVarQueryParameter = {};
|
|
457
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
458
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
459
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
460
|
+
return {
|
|
461
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
462
|
+
options: localVarRequestOptions,
|
|
463
|
+
};
|
|
464
|
+
}),
|
|
437
465
|
/**
|
|
438
466
|
* Gets a Verifiable Presentation.
|
|
439
467
|
* @param {string} tlId
|
|
@@ -668,6 +696,21 @@ const DefaultApiFp = function (configuration) {
|
|
|
668
696
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
669
697
|
});
|
|
670
698
|
},
|
|
699
|
+
/**
|
|
700
|
+
* Retrieves a list of Trust List Records.
|
|
701
|
+
* @param {string} orgName
|
|
702
|
+
* @param {*} [options] Override http request option.
|
|
703
|
+
* @throws {RequiredError}
|
|
704
|
+
*/
|
|
705
|
+
tlrSearch(orgName, options) {
|
|
706
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
707
|
+
var _a, _b, _c;
|
|
708
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tlrSearch(orgName, options);
|
|
709
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
710
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tlrSearch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
711
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
712
|
+
});
|
|
713
|
+
},
|
|
671
714
|
/**
|
|
672
715
|
* Gets a Verifiable Presentation.
|
|
673
716
|
* @param {string} tlId
|
|
@@ -808,6 +851,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
808
851
|
tlPatch(tlId, tlPayload, options) {
|
|
809
852
|
return localVarFp.tlPatch(tlId, tlPayload, options).then((request) => request(axios, basePath));
|
|
810
853
|
},
|
|
854
|
+
/**
|
|
855
|
+
* Retrieves a list of Trust List Records.
|
|
856
|
+
* @param {string} orgName
|
|
857
|
+
* @param {*} [options] Override http request option.
|
|
858
|
+
* @throws {RequiredError}
|
|
859
|
+
*/
|
|
860
|
+
tlrSearch(orgName, options) {
|
|
861
|
+
return localVarFp.tlrSearch(orgName, options).then((request) => request(axios, basePath));
|
|
862
|
+
},
|
|
811
863
|
/**
|
|
812
864
|
* Gets a Verifiable Presentation.
|
|
813
865
|
* @param {string} tlId
|
|
@@ -954,6 +1006,16 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
954
1006
|
tlPatch(tlId, tlPayload, options) {
|
|
955
1007
|
return (0, exports.DefaultApiFp)(this.configuration).tlPatch(tlId, tlPayload, options).then((request) => request(this.axios, this.basePath));
|
|
956
1008
|
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Retrieves a list of Trust List Records.
|
|
1011
|
+
* @param {string} orgName
|
|
1012
|
+
* @param {*} [options] Override http request option.
|
|
1013
|
+
* @throws {RequiredError}
|
|
1014
|
+
* @memberof DefaultApi
|
|
1015
|
+
*/
|
|
1016
|
+
tlrSearch(orgName, options) {
|
|
1017
|
+
return (0, exports.DefaultApiFp)(this.configuration).tlrSearch(orgName, options).then((request) => request(this.axios, this.basePath));
|
|
1018
|
+
}
|
|
957
1019
|
/**
|
|
958
1020
|
* Gets a Verifiable Presentation.
|
|
959
1021
|
* @param {string} tlId
|