@idunion/tl-sdk 0.0.14 → 0.0.16
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 +11 -154
- package/api.js +14 -215
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -505,11 +505,11 @@ export interface DidOnboardingStatus {
|
|
|
505
505
|
*/
|
|
506
506
|
'status': DidOnboardingStatusStatusEnum;
|
|
507
507
|
/**
|
|
508
|
-
*
|
|
509
|
-
* @type {
|
|
508
|
+
*
|
|
509
|
+
* @type {Tl}
|
|
510
510
|
* @memberof DidOnboardingStatus
|
|
511
511
|
*/
|
|
512
|
-
'
|
|
512
|
+
'tl'?: Tl;
|
|
513
513
|
}
|
|
514
514
|
export declare const DidOnboardingStatusStatusEnum: {
|
|
515
515
|
readonly InProgress: "in_progress";
|
|
@@ -744,12 +744,6 @@ export interface Tl {
|
|
|
744
744
|
* @memberof Tl
|
|
745
745
|
*/
|
|
746
746
|
'name': string;
|
|
747
|
-
/**
|
|
748
|
-
*
|
|
749
|
-
* @type {string}
|
|
750
|
-
* @memberof Tl
|
|
751
|
-
*/
|
|
752
|
-
'ownerId': string;
|
|
753
747
|
/**
|
|
754
748
|
*
|
|
755
749
|
* @type {string}
|
|
@@ -813,52 +807,6 @@ export interface TlPayload {
|
|
|
813
807
|
*/
|
|
814
808
|
'verifierId'?: string;
|
|
815
809
|
}
|
|
816
|
-
/**
|
|
817
|
-
* Record defined by a schema
|
|
818
|
-
* @export
|
|
819
|
-
* @interface Tlr
|
|
820
|
-
*/
|
|
821
|
-
export interface Tlr {
|
|
822
|
-
[key: string]: any;
|
|
823
|
-
/**
|
|
824
|
-
* The JSON-LD Context is either a string or a list containing any combination of strings and/or ordered maps. https://www.w3.org/TR/did-1.0/#dfn-context
|
|
825
|
-
* @type {Array<string>}
|
|
826
|
-
* @memberof Tlr
|
|
827
|
-
*/
|
|
828
|
-
'@context': Array<string>;
|
|
829
|
-
/**
|
|
830
|
-
*
|
|
831
|
-
* @type {TlrSchema}
|
|
832
|
-
* @memberof Tlr
|
|
833
|
-
*/
|
|
834
|
-
'tlrSchema': TlrSchema;
|
|
835
|
-
}
|
|
836
|
-
/**
|
|
837
|
-
*
|
|
838
|
-
* @export
|
|
839
|
-
* @interface TlrSchema
|
|
840
|
-
*/
|
|
841
|
-
export interface TlrSchema {
|
|
842
|
-
[key: string]: any;
|
|
843
|
-
/**
|
|
844
|
-
* A URL identifying the schema file
|
|
845
|
-
* @type {string}
|
|
846
|
-
* @memberof TlrSchema
|
|
847
|
-
*/
|
|
848
|
-
'id': string;
|
|
849
|
-
/**
|
|
850
|
-
*
|
|
851
|
-
* @type {string}
|
|
852
|
-
* @memberof TlrSchema
|
|
853
|
-
*/
|
|
854
|
-
'name'?: string;
|
|
855
|
-
/**
|
|
856
|
-
* Defines the schema type, for example, JsonSchema
|
|
857
|
-
* @type {string}
|
|
858
|
-
* @memberof TlrSchema
|
|
859
|
-
*/
|
|
860
|
-
'type': string;
|
|
861
|
-
}
|
|
862
810
|
/**
|
|
863
811
|
*
|
|
864
812
|
* @export
|
|
@@ -973,10 +921,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
973
921
|
tlGet: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
974
922
|
/**
|
|
975
923
|
* Gets Trust Lists for a specific owner
|
|
924
|
+
* @param {string} [ownerId]
|
|
976
925
|
* @param {*} [options] Override http request option.
|
|
977
926
|
* @throws {RequiredError}
|
|
978
927
|
*/
|
|
979
|
-
tlList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
928
|
+
tlList: (ownerId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
980
929
|
/**
|
|
981
930
|
* Updates a Trust List based on the specified payload.
|
|
982
931
|
* @param {string} tlId
|
|
@@ -985,29 +934,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
985
934
|
* @throws {RequiredError}
|
|
986
935
|
*/
|
|
987
936
|
tlPatch: (tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
988
|
-
/**
|
|
989
|
-
* Creates a new Trust List Record.
|
|
990
|
-
* @param {string} tlId
|
|
991
|
-
* @param {DidDocumentCreatePayload} [didDocumentCreatePayload] Trust List Record create payload.
|
|
992
|
-
* @param {*} [options] Override http request option.
|
|
993
|
-
* @throws {RequiredError}
|
|
994
|
-
*/
|
|
995
|
-
tlrCreate: (tlId: string, didDocumentCreatePayload?: DidDocumentCreatePayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
996
|
-
/**
|
|
997
|
-
* Retrieves a list of Trust List Records.
|
|
998
|
-
* @param {string} tlId
|
|
999
|
-
* @param {*} [options] Override http request option.
|
|
1000
|
-
* @throws {RequiredError}
|
|
1001
|
-
*/
|
|
1002
|
-
tlrsGet: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1003
|
-
/**
|
|
1004
|
-
* Retrieves a specific Trust List Record
|
|
1005
|
-
* @param {string} tlId Trust List Identifier
|
|
1006
|
-
* @param {string} tlrId Trust List Record Identifier
|
|
1007
|
-
* @param {*} [options] Override http request option.
|
|
1008
|
-
* @throws {RequiredError}
|
|
1009
|
-
*/
|
|
1010
|
-
trustListRecordGet: (tlId: string, tlrId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1011
937
|
/**
|
|
1012
938
|
* Gets a Verifiable Presentation.
|
|
1013
939
|
* @param {string} tlId
|
|
@@ -1093,10 +1019,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1093
1019
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tl>>;
|
|
1094
1020
|
/**
|
|
1095
1021
|
* Gets Trust Lists for a specific owner
|
|
1022
|
+
* @param {string} [ownerId]
|
|
1096
1023
|
* @param {*} [options] Override http request option.
|
|
1097
1024
|
* @throws {RequiredError}
|
|
1098
1025
|
*/
|
|
1099
|
-
tlList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlList>>;
|
|
1026
|
+
tlList(ownerId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlList>>;
|
|
1100
1027
|
/**
|
|
1101
1028
|
* Updates a Trust List based on the specified payload.
|
|
1102
1029
|
* @param {string} tlId
|
|
@@ -1105,29 +1032,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1105
1032
|
* @throws {RequiredError}
|
|
1106
1033
|
*/
|
|
1107
1034
|
tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tl>>;
|
|
1108
|
-
/**
|
|
1109
|
-
* Creates a new Trust List Record.
|
|
1110
|
-
* @param {string} tlId
|
|
1111
|
-
* @param {DidDocumentCreatePayload} [didDocumentCreatePayload] Trust List Record create payload.
|
|
1112
|
-
* @param {*} [options] Override http request option.
|
|
1113
|
-
* @throws {RequiredError}
|
|
1114
|
-
*/
|
|
1115
|
-
tlrCreate(tlId: string, didDocumentCreatePayload?: DidDocumentCreatePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
1116
|
-
/**
|
|
1117
|
-
* Retrieves a list of Trust List Records.
|
|
1118
|
-
* @param {string} tlId
|
|
1119
|
-
* @param {*} [options] Override http request option.
|
|
1120
|
-
* @throws {RequiredError}
|
|
1121
|
-
*/
|
|
1122
|
-
tlrsGet(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidDocumentList>>;
|
|
1123
|
-
/**
|
|
1124
|
-
* Retrieves a specific Trust List Record
|
|
1125
|
-
* @param {string} tlId Trust List Identifier
|
|
1126
|
-
* @param {string} tlrId Trust List Record Identifier
|
|
1127
|
-
* @param {*} [options] Override http request option.
|
|
1128
|
-
* @throws {RequiredError}
|
|
1129
|
-
*/
|
|
1130
|
-
trustListRecordGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tlr>>;
|
|
1131
1035
|
/**
|
|
1132
1036
|
* Gets a Verifiable Presentation.
|
|
1133
1037
|
* @param {string} tlId
|
|
@@ -1213,10 +1117,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1213
1117
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<Tl>;
|
|
1214
1118
|
/**
|
|
1215
1119
|
* Gets Trust Lists for a specific owner
|
|
1120
|
+
* @param {string} [ownerId]
|
|
1216
1121
|
* @param {*} [options] Override http request option.
|
|
1217
1122
|
* @throws {RequiredError}
|
|
1218
1123
|
*/
|
|
1219
|
-
tlList(options?: RawAxiosRequestConfig): AxiosPromise<TlList>;
|
|
1124
|
+
tlList(ownerId?: string, options?: RawAxiosRequestConfig): AxiosPromise<TlList>;
|
|
1220
1125
|
/**
|
|
1221
1126
|
* Updates a Trust List based on the specified payload.
|
|
1222
1127
|
* @param {string} tlId
|
|
@@ -1225,29 +1130,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1225
1130
|
* @throws {RequiredError}
|
|
1226
1131
|
*/
|
|
1227
1132
|
tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): AxiosPromise<Tl>;
|
|
1228
|
-
/**
|
|
1229
|
-
* Creates a new Trust List Record.
|
|
1230
|
-
* @param {string} tlId
|
|
1231
|
-
* @param {DidDocumentCreatePayload} [didDocumentCreatePayload] Trust List Record create payload.
|
|
1232
|
-
* @param {*} [options] Override http request option.
|
|
1233
|
-
* @throws {RequiredError}
|
|
1234
|
-
*/
|
|
1235
|
-
tlrCreate(tlId: string, didDocumentCreatePayload?: DidDocumentCreatePayload, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
1236
|
-
/**
|
|
1237
|
-
* Retrieves a list of Trust List Records.
|
|
1238
|
-
* @param {string} tlId
|
|
1239
|
-
* @param {*} [options] Override http request option.
|
|
1240
|
-
* @throws {RequiredError}
|
|
1241
|
-
*/
|
|
1242
|
-
tlrsGet(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<DidDocumentList>;
|
|
1243
|
-
/**
|
|
1244
|
-
* Retrieves a specific Trust List Record
|
|
1245
|
-
* @param {string} tlId Trust List Identifier
|
|
1246
|
-
* @param {string} tlrId Trust List Record Identifier
|
|
1247
|
-
* @param {*} [options] Override http request option.
|
|
1248
|
-
* @throws {RequiredError}
|
|
1249
|
-
*/
|
|
1250
|
-
trustListRecordGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): AxiosPromise<Tlr>;
|
|
1251
1133
|
/**
|
|
1252
1134
|
* Gets a Verifiable Presentation.
|
|
1253
1135
|
* @param {string} tlId
|
|
@@ -1344,11 +1226,12 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1344
1226
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
|
|
1345
1227
|
/**
|
|
1346
1228
|
* Gets Trust Lists for a specific owner
|
|
1229
|
+
* @param {string} [ownerId]
|
|
1347
1230
|
* @param {*} [options] Override http request option.
|
|
1348
1231
|
* @throws {RequiredError}
|
|
1349
1232
|
* @memberof DefaultApi
|
|
1350
1233
|
*/
|
|
1351
|
-
tlList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlList, any>>;
|
|
1234
|
+
tlList(ownerId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlList, any>>;
|
|
1352
1235
|
/**
|
|
1353
1236
|
* Updates a Trust List based on the specified payload.
|
|
1354
1237
|
* @param {string} tlId
|
|
@@ -1358,32 +1241,6 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1358
1241
|
* @memberof DefaultApi
|
|
1359
1242
|
*/
|
|
1360
1243
|
tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
|
|
1361
|
-
/**
|
|
1362
|
-
* Creates a new Trust List Record.
|
|
1363
|
-
* @param {string} tlId
|
|
1364
|
-
* @param {DidDocumentCreatePayload} [didDocumentCreatePayload] Trust List Record create payload.
|
|
1365
|
-
* @param {*} [options] Override http request option.
|
|
1366
|
-
* @throws {RequiredError}
|
|
1367
|
-
* @memberof DefaultApi
|
|
1368
|
-
*/
|
|
1369
|
-
tlrCreate(tlId: string, didDocumentCreatePayload?: DidDocumentCreatePayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
1370
|
-
/**
|
|
1371
|
-
* Retrieves a list of Trust List Records.
|
|
1372
|
-
* @param {string} tlId
|
|
1373
|
-
* @param {*} [options] Override http request option.
|
|
1374
|
-
* @throws {RequiredError}
|
|
1375
|
-
* @memberof DefaultApi
|
|
1376
|
-
*/
|
|
1377
|
-
tlrsGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidDocumentList, any>>;
|
|
1378
|
-
/**
|
|
1379
|
-
* Retrieves a specific Trust List Record
|
|
1380
|
-
* @param {string} tlId Trust List Identifier
|
|
1381
|
-
* @param {string} tlrId Trust List Record Identifier
|
|
1382
|
-
* @param {*} [options] Override http request option.
|
|
1383
|
-
* @throws {RequiredError}
|
|
1384
|
-
* @memberof DefaultApi
|
|
1385
|
-
*/
|
|
1386
|
-
trustListRecordGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tlr, any>>;
|
|
1387
1244
|
/**
|
|
1388
1245
|
* Gets a Verifiable Presentation.
|
|
1389
1246
|
* @param {string} tlId
|
package/api.js
CHANGED
|
@@ -346,10 +346,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
346
346
|
}),
|
|
347
347
|
/**
|
|
348
348
|
* Gets Trust Lists for a specific owner
|
|
349
|
+
* @param {string} [ownerId]
|
|
349
350
|
* @param {*} [options] Override http request option.
|
|
350
351
|
* @throws {RequiredError}
|
|
351
352
|
*/
|
|
352
|
-
tlList: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
353
|
+
tlList: (ownerId_1, ...args_1) => __awaiter(this, [ownerId_1, ...args_1], void 0, function* (ownerId, options = {}) {
|
|
353
354
|
const localVarPath = `/tl`;
|
|
354
355
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
355
356
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -363,6 +364,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
363
364
|
// authentication accessToken required
|
|
364
365
|
// http bearer authentication required
|
|
365
366
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
367
|
+
if (ownerId !== undefined) {
|
|
368
|
+
localVarQueryParameter['owner_id'] = ownerId;
|
|
369
|
+
}
|
|
366
370
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
367
371
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
368
372
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -405,106 +409,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
405
409
|
options: localVarRequestOptions,
|
|
406
410
|
};
|
|
407
411
|
}),
|
|
408
|
-
/**
|
|
409
|
-
* Creates a new Trust List Record.
|
|
410
|
-
* @param {string} tlId
|
|
411
|
-
* @param {DidDocumentCreatePayload} [didDocumentCreatePayload] Trust List Record create payload.
|
|
412
|
-
* @param {*} [options] Override http request option.
|
|
413
|
-
* @throws {RequiredError}
|
|
414
|
-
*/
|
|
415
|
-
tlrCreate: (tlId_1, didDocumentCreatePayload_1, ...args_1) => __awaiter(this, [tlId_1, didDocumentCreatePayload_1, ...args_1], void 0, function* (tlId, didDocumentCreatePayload, options = {}) {
|
|
416
|
-
// verify required parameter 'tlId' is not null or undefined
|
|
417
|
-
(0, common_1.assertParamExists)('tlrCreate', 'tlId', tlId);
|
|
418
|
-
const localVarPath = `/{tl_id}/tlrs`
|
|
419
|
-
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
420
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
421
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
422
|
-
let baseOptions;
|
|
423
|
-
if (configuration) {
|
|
424
|
-
baseOptions = configuration.baseOptions;
|
|
425
|
-
}
|
|
426
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
427
|
-
const localVarHeaderParameter = {};
|
|
428
|
-
const localVarQueryParameter = {};
|
|
429
|
-
// authentication accessToken required
|
|
430
|
-
// http bearer authentication required
|
|
431
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
432
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
433
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
434
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
435
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
436
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(didDocumentCreatePayload, localVarRequestOptions, configuration);
|
|
437
|
-
return {
|
|
438
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
439
|
-
options: localVarRequestOptions,
|
|
440
|
-
};
|
|
441
|
-
}),
|
|
442
|
-
/**
|
|
443
|
-
* Retrieves a list of Trust List Records.
|
|
444
|
-
* @param {string} tlId
|
|
445
|
-
* @param {*} [options] Override http request option.
|
|
446
|
-
* @throws {RequiredError}
|
|
447
|
-
*/
|
|
448
|
-
tlrsGet: (tlId_1, ...args_1) => __awaiter(this, [tlId_1, ...args_1], void 0, function* (tlId, options = {}) {
|
|
449
|
-
// verify required parameter 'tlId' is not null or undefined
|
|
450
|
-
(0, common_1.assertParamExists)('tlrsGet', 'tlId', tlId);
|
|
451
|
-
const localVarPath = `/{tl_id}/tlrs`
|
|
452
|
-
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
453
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
454
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
455
|
-
let baseOptions;
|
|
456
|
-
if (configuration) {
|
|
457
|
-
baseOptions = configuration.baseOptions;
|
|
458
|
-
}
|
|
459
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
460
|
-
const localVarHeaderParameter = {};
|
|
461
|
-
const localVarQueryParameter = {};
|
|
462
|
-
// authentication accessToken required
|
|
463
|
-
// http bearer authentication required
|
|
464
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
465
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
466
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
467
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
468
|
-
return {
|
|
469
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
470
|
-
options: localVarRequestOptions,
|
|
471
|
-
};
|
|
472
|
-
}),
|
|
473
|
-
/**
|
|
474
|
-
* Retrieves a specific Trust List Record
|
|
475
|
-
* @param {string} tlId Trust List Identifier
|
|
476
|
-
* @param {string} tlrId Trust List Record Identifier
|
|
477
|
-
* @param {*} [options] Override http request option.
|
|
478
|
-
* @throws {RequiredError}
|
|
479
|
-
*/
|
|
480
|
-
trustListRecordGet: (tlId_1, tlrId_1, ...args_1) => __awaiter(this, [tlId_1, tlrId_1, ...args_1], void 0, function* (tlId, tlrId, options = {}) {
|
|
481
|
-
// verify required parameter 'tlId' is not null or undefined
|
|
482
|
-
(0, common_1.assertParamExists)('trustListRecordGet', 'tlId', tlId);
|
|
483
|
-
// verify required parameter 'tlrId' is not null or undefined
|
|
484
|
-
(0, common_1.assertParamExists)('trustListRecordGet', 'tlrId', tlrId);
|
|
485
|
-
const localVarPath = `/{tl_id}/tlrs/{tlr_id}`
|
|
486
|
-
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)))
|
|
487
|
-
.replace(`{${"tlr_id"}}`, encodeURIComponent(String(tlrId)));
|
|
488
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
489
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
490
|
-
let baseOptions;
|
|
491
|
-
if (configuration) {
|
|
492
|
-
baseOptions = configuration.baseOptions;
|
|
493
|
-
}
|
|
494
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
495
|
-
const localVarHeaderParameter = {};
|
|
496
|
-
const localVarQueryParameter = {};
|
|
497
|
-
// authentication accessToken required
|
|
498
|
-
// http bearer authentication required
|
|
499
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
500
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
501
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
502
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
503
|
-
return {
|
|
504
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
505
|
-
options: localVarRequestOptions,
|
|
506
|
-
};
|
|
507
|
-
}),
|
|
508
412
|
/**
|
|
509
413
|
* Gets a Verifiable Presentation.
|
|
510
414
|
* @param {string} tlId
|
|
@@ -696,13 +600,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
696
600
|
},
|
|
697
601
|
/**
|
|
698
602
|
* Gets Trust Lists for a specific owner
|
|
603
|
+
* @param {string} [ownerId]
|
|
699
604
|
* @param {*} [options] Override http request option.
|
|
700
605
|
* @throws {RequiredError}
|
|
701
606
|
*/
|
|
702
|
-
tlList(options) {
|
|
607
|
+
tlList(ownerId, options) {
|
|
703
608
|
return __awaiter(this, void 0, void 0, function* () {
|
|
704
609
|
var _a, _b, _c;
|
|
705
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.tlList(options);
|
|
610
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tlList(ownerId, options);
|
|
706
611
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
707
612
|
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;
|
|
708
613
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -724,53 +629,6 @@ const DefaultApiFp = function (configuration) {
|
|
|
724
629
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
725
630
|
});
|
|
726
631
|
},
|
|
727
|
-
/**
|
|
728
|
-
* Creates a new Trust List Record.
|
|
729
|
-
* @param {string} tlId
|
|
730
|
-
* @param {DidDocumentCreatePayload} [didDocumentCreatePayload] Trust List Record create payload.
|
|
731
|
-
* @param {*} [options] Override http request option.
|
|
732
|
-
* @throws {RequiredError}
|
|
733
|
-
*/
|
|
734
|
-
tlrCreate(tlId, didDocumentCreatePayload, options) {
|
|
735
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
736
|
-
var _a, _b, _c;
|
|
737
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.tlrCreate(tlId, didDocumentCreatePayload, options);
|
|
738
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
739
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tlrCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
740
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
741
|
-
});
|
|
742
|
-
},
|
|
743
|
-
/**
|
|
744
|
-
* Retrieves a list of Trust List Records.
|
|
745
|
-
* @param {string} tlId
|
|
746
|
-
* @param {*} [options] Override http request option.
|
|
747
|
-
* @throws {RequiredError}
|
|
748
|
-
*/
|
|
749
|
-
tlrsGet(tlId, options) {
|
|
750
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
751
|
-
var _a, _b, _c;
|
|
752
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.tlrsGet(tlId, options);
|
|
753
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
754
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tlrsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
755
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
756
|
-
});
|
|
757
|
-
},
|
|
758
|
-
/**
|
|
759
|
-
* Retrieves a specific Trust List Record
|
|
760
|
-
* @param {string} tlId Trust List Identifier
|
|
761
|
-
* @param {string} tlrId Trust List Record Identifier
|
|
762
|
-
* @param {*} [options] Override http request option.
|
|
763
|
-
* @throws {RequiredError}
|
|
764
|
-
*/
|
|
765
|
-
trustListRecordGet(tlId, tlrId, options) {
|
|
766
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
767
|
-
var _a, _b, _c;
|
|
768
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.trustListRecordGet(tlId, tlrId, options);
|
|
769
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
770
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.trustListRecordGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
771
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
772
|
-
});
|
|
773
|
-
},
|
|
774
632
|
/**
|
|
775
633
|
* Gets a Verifiable Presentation.
|
|
776
634
|
* @param {string} tlId
|
|
@@ -886,11 +744,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
886
744
|
},
|
|
887
745
|
/**
|
|
888
746
|
* Gets Trust Lists for a specific owner
|
|
747
|
+
* @param {string} [ownerId]
|
|
889
748
|
* @param {*} [options] Override http request option.
|
|
890
749
|
* @throws {RequiredError}
|
|
891
750
|
*/
|
|
892
|
-
tlList(options) {
|
|
893
|
-
return localVarFp.tlList(options).then((request) => request(axios, basePath));
|
|
751
|
+
tlList(ownerId, options) {
|
|
752
|
+
return localVarFp.tlList(ownerId, options).then((request) => request(axios, basePath));
|
|
894
753
|
},
|
|
895
754
|
/**
|
|
896
755
|
* Updates a Trust List based on the specified payload.
|
|
@@ -902,35 +761,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
902
761
|
tlPatch(tlId, tlPayload, options) {
|
|
903
762
|
return localVarFp.tlPatch(tlId, tlPayload, options).then((request) => request(axios, basePath));
|
|
904
763
|
},
|
|
905
|
-
/**
|
|
906
|
-
* Creates a new Trust List Record.
|
|
907
|
-
* @param {string} tlId
|
|
908
|
-
* @param {DidDocumentCreatePayload} [didDocumentCreatePayload] Trust List Record create payload.
|
|
909
|
-
* @param {*} [options] Override http request option.
|
|
910
|
-
* @throws {RequiredError}
|
|
911
|
-
*/
|
|
912
|
-
tlrCreate(tlId, didDocumentCreatePayload, options) {
|
|
913
|
-
return localVarFp.tlrCreate(tlId, didDocumentCreatePayload, options).then((request) => request(axios, basePath));
|
|
914
|
-
},
|
|
915
|
-
/**
|
|
916
|
-
* Retrieves a list of Trust List Records.
|
|
917
|
-
* @param {string} tlId
|
|
918
|
-
* @param {*} [options] Override http request option.
|
|
919
|
-
* @throws {RequiredError}
|
|
920
|
-
*/
|
|
921
|
-
tlrsGet(tlId, options) {
|
|
922
|
-
return localVarFp.tlrsGet(tlId, options).then((request) => request(axios, basePath));
|
|
923
|
-
},
|
|
924
|
-
/**
|
|
925
|
-
* Retrieves a specific Trust List Record
|
|
926
|
-
* @param {string} tlId Trust List Identifier
|
|
927
|
-
* @param {string} tlrId Trust List Record Identifier
|
|
928
|
-
* @param {*} [options] Override http request option.
|
|
929
|
-
* @throws {RequiredError}
|
|
930
|
-
*/
|
|
931
|
-
trustListRecordGet(tlId, tlrId, options) {
|
|
932
|
-
return localVarFp.trustListRecordGet(tlId, tlrId, options).then((request) => request(axios, basePath));
|
|
933
|
-
},
|
|
934
764
|
/**
|
|
935
765
|
* Gets a Verifiable Presentation.
|
|
936
766
|
* @param {string} tlId
|
|
@@ -1049,12 +879,13 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1049
879
|
}
|
|
1050
880
|
/**
|
|
1051
881
|
* Gets Trust Lists for a specific owner
|
|
882
|
+
* @param {string} [ownerId]
|
|
1052
883
|
* @param {*} [options] Override http request option.
|
|
1053
884
|
* @throws {RequiredError}
|
|
1054
885
|
* @memberof DefaultApi
|
|
1055
886
|
*/
|
|
1056
|
-
tlList(options) {
|
|
1057
|
-
return (0, exports.DefaultApiFp)(this.configuration).tlList(options).then((request) => request(this.axios, this.basePath));
|
|
887
|
+
tlList(ownerId, options) {
|
|
888
|
+
return (0, exports.DefaultApiFp)(this.configuration).tlList(ownerId, options).then((request) => request(this.axios, this.basePath));
|
|
1058
889
|
}
|
|
1059
890
|
/**
|
|
1060
891
|
* Updates a Trust List based on the specified payload.
|
|
@@ -1067,38 +898,6 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1067
898
|
tlPatch(tlId, tlPayload, options) {
|
|
1068
899
|
return (0, exports.DefaultApiFp)(this.configuration).tlPatch(tlId, tlPayload, options).then((request) => request(this.axios, this.basePath));
|
|
1069
900
|
}
|
|
1070
|
-
/**
|
|
1071
|
-
* Creates a new Trust List Record.
|
|
1072
|
-
* @param {string} tlId
|
|
1073
|
-
* @param {DidDocumentCreatePayload} [didDocumentCreatePayload] Trust List Record create payload.
|
|
1074
|
-
* @param {*} [options] Override http request option.
|
|
1075
|
-
* @throws {RequiredError}
|
|
1076
|
-
* @memberof DefaultApi
|
|
1077
|
-
*/
|
|
1078
|
-
tlrCreate(tlId, didDocumentCreatePayload, options) {
|
|
1079
|
-
return (0, exports.DefaultApiFp)(this.configuration).tlrCreate(tlId, didDocumentCreatePayload, options).then((request) => request(this.axios, this.basePath));
|
|
1080
|
-
}
|
|
1081
|
-
/**
|
|
1082
|
-
* Retrieves a list of Trust List Records.
|
|
1083
|
-
* @param {string} tlId
|
|
1084
|
-
* @param {*} [options] Override http request option.
|
|
1085
|
-
* @throws {RequiredError}
|
|
1086
|
-
* @memberof DefaultApi
|
|
1087
|
-
*/
|
|
1088
|
-
tlrsGet(tlId, options) {
|
|
1089
|
-
return (0, exports.DefaultApiFp)(this.configuration).tlrsGet(tlId, options).then((request) => request(this.axios, this.basePath));
|
|
1090
|
-
}
|
|
1091
|
-
/**
|
|
1092
|
-
* Retrieves a specific Trust List Record
|
|
1093
|
-
* @param {string} tlId Trust List Identifier
|
|
1094
|
-
* @param {string} tlrId Trust List Record Identifier
|
|
1095
|
-
* @param {*} [options] Override http request option.
|
|
1096
|
-
* @throws {RequiredError}
|
|
1097
|
-
* @memberof DefaultApi
|
|
1098
|
-
*/
|
|
1099
|
-
trustListRecordGet(tlId, tlrId, options) {
|
|
1100
|
-
return (0, exports.DefaultApiFp)(this.configuration).trustListRecordGet(tlId, tlrId, options).then((request) => request(this.axios, this.basePath));
|
|
1101
|
-
}
|
|
1102
901
|
/**
|
|
1103
902
|
* Gets a Verifiable Presentation.
|
|
1104
903
|
* @param {string} tlId
|