@idunion/tl-sdk 0.0.13 → 0.0.15
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 +32 -155
- package/api.js +44 -231
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -749,19 +749,19 @@ export interface Tl {
|
|
|
749
749
|
* @type {string}
|
|
750
750
|
* @memberof Tl
|
|
751
751
|
*/
|
|
752
|
-
'
|
|
752
|
+
'didBase': string;
|
|
753
753
|
/**
|
|
754
754
|
*
|
|
755
755
|
* @type {string}
|
|
756
756
|
* @memberof Tl
|
|
757
757
|
*/
|
|
758
|
-
'
|
|
758
|
+
'governanceWalletId'?: string;
|
|
759
759
|
/**
|
|
760
760
|
*
|
|
761
761
|
* @type {string}
|
|
762
762
|
* @memberof Tl
|
|
763
763
|
*/
|
|
764
|
-
'verifierId'
|
|
764
|
+
'verifierId'?: string;
|
|
765
765
|
}
|
|
766
766
|
/**
|
|
767
767
|
*
|
|
@@ -795,57 +795,17 @@ export interface TlPayload {
|
|
|
795
795
|
*/
|
|
796
796
|
'suggestedId'?: string;
|
|
797
797
|
/**
|
|
798
|
-
* The
|
|
798
|
+
* The Wallet used by the Trust List for VC interactions
|
|
799
799
|
* @type {string}
|
|
800
800
|
* @memberof TlPayload
|
|
801
801
|
*/
|
|
802
|
-
'
|
|
803
|
-
}
|
|
804
|
-
/**
|
|
805
|
-
* Record defined by a schema
|
|
806
|
-
* @export
|
|
807
|
-
* @interface Tlr
|
|
808
|
-
*/
|
|
809
|
-
export interface Tlr {
|
|
810
|
-
[key: string]: any;
|
|
811
|
-
/**
|
|
812
|
-
* 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
|
|
813
|
-
* @type {Array<string>}
|
|
814
|
-
* @memberof Tlr
|
|
815
|
-
*/
|
|
816
|
-
'@context': Array<string>;
|
|
817
|
-
/**
|
|
818
|
-
*
|
|
819
|
-
* @type {TlrSchema}
|
|
820
|
-
* @memberof Tlr
|
|
821
|
-
*/
|
|
822
|
-
'tlrSchema': TlrSchema;
|
|
823
|
-
}
|
|
824
|
-
/**
|
|
825
|
-
*
|
|
826
|
-
* @export
|
|
827
|
-
* @interface TlrSchema
|
|
828
|
-
*/
|
|
829
|
-
export interface TlrSchema {
|
|
830
|
-
[key: string]: any;
|
|
831
|
-
/**
|
|
832
|
-
* A URL identifying the schema file
|
|
833
|
-
* @type {string}
|
|
834
|
-
* @memberof TlrSchema
|
|
835
|
-
*/
|
|
836
|
-
'id': string;
|
|
802
|
+
'governanceWalletId'?: string;
|
|
837
803
|
/**
|
|
838
|
-
*
|
|
839
|
-
* @type {string}
|
|
840
|
-
* @memberof TlrSchema
|
|
841
|
-
*/
|
|
842
|
-
'name'?: string;
|
|
843
|
-
/**
|
|
844
|
-
* Defines the schema type, for example, JsonSchema
|
|
804
|
+
* The Verifier used to verify onboarding credentials
|
|
845
805
|
* @type {string}
|
|
846
|
-
* @memberof
|
|
806
|
+
* @memberof TlPayload
|
|
847
807
|
*/
|
|
848
|
-
'
|
|
808
|
+
'verifierId'?: string;
|
|
849
809
|
}
|
|
850
810
|
/**
|
|
851
811
|
*
|
|
@@ -909,18 +869,20 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
909
869
|
didGet: (tlId: string, tlrId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
910
870
|
/**
|
|
911
871
|
* Initiates the onboarding process to the DID registry.
|
|
872
|
+
* @param {string} tlId Trust List Identifier
|
|
912
873
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
913
874
|
* @param {*} [options] Override http request option.
|
|
914
875
|
* @throws {RequiredError}
|
|
915
876
|
*/
|
|
916
|
-
didOnboardingInit: (didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
877
|
+
didOnboardingInit: (tlId: string, didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
917
878
|
/**
|
|
918
879
|
*
|
|
880
|
+
* @param {string} tlId Trust List Identifier
|
|
919
881
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
920
882
|
* @param {*} [options] Override http request option.
|
|
921
883
|
* @throws {RequiredError}
|
|
922
884
|
*/
|
|
923
|
-
didOnboardingStatus: (verifierState: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
885
|
+
didOnboardingStatus: (tlId: string, verifierState: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
924
886
|
/**
|
|
925
887
|
* Adds DID Verification method.
|
|
926
888
|
* @param {string} tlId Trust List Identifier
|
|
@@ -959,10 +921,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
959
921
|
tlGet: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
960
922
|
/**
|
|
961
923
|
* Gets Trust Lists for a specific owner
|
|
924
|
+
* @param {string} [ownerId]
|
|
962
925
|
* @param {*} [options] Override http request option.
|
|
963
926
|
* @throws {RequiredError}
|
|
964
927
|
*/
|
|
965
|
-
tlList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
928
|
+
tlList: (ownerId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
966
929
|
/**
|
|
967
930
|
* Updates a Trust List based on the specified payload.
|
|
968
931
|
* @param {string} tlId
|
|
@@ -971,29 +934,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
971
934
|
* @throws {RequiredError}
|
|
972
935
|
*/
|
|
973
936
|
tlPatch: (tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
974
|
-
/**
|
|
975
|
-
* Creates a new Trust List Record.
|
|
976
|
-
* @param {string} tlId
|
|
977
|
-
* @param {DidDocumentCreatePayload} [didDocumentCreatePayload] Trust List Record create payload.
|
|
978
|
-
* @param {*} [options] Override http request option.
|
|
979
|
-
* @throws {RequiredError}
|
|
980
|
-
*/
|
|
981
|
-
tlrCreate: (tlId: string, didDocumentCreatePayload?: DidDocumentCreatePayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
982
|
-
/**
|
|
983
|
-
* Retrieves a list of Trust List Records.
|
|
984
|
-
* @param {string} tlId
|
|
985
|
-
* @param {*} [options] Override http request option.
|
|
986
|
-
* @throws {RequiredError}
|
|
987
|
-
*/
|
|
988
|
-
tlrsGet: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
989
|
-
/**
|
|
990
|
-
* Retrieves a specific Trust List Record
|
|
991
|
-
* @param {string} tlId Trust List Identifier
|
|
992
|
-
* @param {string} tlrId Trust List Record Identifier
|
|
993
|
-
* @param {*} [options] Override http request option.
|
|
994
|
-
* @throws {RequiredError}
|
|
995
|
-
*/
|
|
996
|
-
trustListRecordGet: (tlId: string, tlrId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
997
937
|
/**
|
|
998
938
|
* Gets a Verifiable Presentation.
|
|
999
939
|
* @param {string} tlId
|
|
@@ -1027,18 +967,20 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1027
967
|
didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidDocument>>;
|
|
1028
968
|
/**
|
|
1029
969
|
* Initiates the onboarding process to the DID registry.
|
|
970
|
+
* @param {string} tlId Trust List Identifier
|
|
1030
971
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
1031
972
|
* @param {*} [options] Override http request option.
|
|
1032
973
|
* @throws {RequiredError}
|
|
1033
974
|
*/
|
|
1034
|
-
didOnboardingInit(didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidOnboardingResponse>>;
|
|
975
|
+
didOnboardingInit(tlId: string, didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidOnboardingResponse>>;
|
|
1035
976
|
/**
|
|
1036
977
|
*
|
|
978
|
+
* @param {string} tlId Trust List Identifier
|
|
1037
979
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
1038
980
|
* @param {*} [options] Override http request option.
|
|
1039
981
|
* @throws {RequiredError}
|
|
1040
982
|
*/
|
|
1041
|
-
didOnboardingStatus(verifierState: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidOnboardingStatus>>;
|
|
983
|
+
didOnboardingStatus(tlId: string, verifierState: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidOnboardingStatus>>;
|
|
1042
984
|
/**
|
|
1043
985
|
* Adds DID Verification method.
|
|
1044
986
|
* @param {string} tlId Trust List Identifier
|
|
@@ -1077,10 +1019,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1077
1019
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tl>>;
|
|
1078
1020
|
/**
|
|
1079
1021
|
* Gets Trust Lists for a specific owner
|
|
1022
|
+
* @param {string} [ownerId]
|
|
1080
1023
|
* @param {*} [options] Override http request option.
|
|
1081
1024
|
* @throws {RequiredError}
|
|
1082
1025
|
*/
|
|
1083
|
-
tlList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlList>>;
|
|
1026
|
+
tlList(ownerId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlList>>;
|
|
1084
1027
|
/**
|
|
1085
1028
|
* Updates a Trust List based on the specified payload.
|
|
1086
1029
|
* @param {string} tlId
|
|
@@ -1089,29 +1032,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1089
1032
|
* @throws {RequiredError}
|
|
1090
1033
|
*/
|
|
1091
1034
|
tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tl>>;
|
|
1092
|
-
/**
|
|
1093
|
-
* Creates a new Trust List Record.
|
|
1094
|
-
* @param {string} tlId
|
|
1095
|
-
* @param {DidDocumentCreatePayload} [didDocumentCreatePayload] Trust List Record create payload.
|
|
1096
|
-
* @param {*} [options] Override http request option.
|
|
1097
|
-
* @throws {RequiredError}
|
|
1098
|
-
*/
|
|
1099
|
-
tlrCreate(tlId: string, didDocumentCreatePayload?: DidDocumentCreatePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
1100
|
-
/**
|
|
1101
|
-
* Retrieves a list of Trust List Records.
|
|
1102
|
-
* @param {string} tlId
|
|
1103
|
-
* @param {*} [options] Override http request option.
|
|
1104
|
-
* @throws {RequiredError}
|
|
1105
|
-
*/
|
|
1106
|
-
tlrsGet(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DidDocumentList>>;
|
|
1107
|
-
/**
|
|
1108
|
-
* Retrieves a specific Trust List Record
|
|
1109
|
-
* @param {string} tlId Trust List Identifier
|
|
1110
|
-
* @param {string} tlrId Trust List Record Identifier
|
|
1111
|
-
* @param {*} [options] Override http request option.
|
|
1112
|
-
* @throws {RequiredError}
|
|
1113
|
-
*/
|
|
1114
|
-
trustListRecordGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tlr>>;
|
|
1115
1035
|
/**
|
|
1116
1036
|
* Gets a Verifiable Presentation.
|
|
1117
1037
|
* @param {string} tlId
|
|
@@ -1145,18 +1065,20 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1145
1065
|
didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): AxiosPromise<DidDocument>;
|
|
1146
1066
|
/**
|
|
1147
1067
|
* Initiates the onboarding process to the DID registry.
|
|
1068
|
+
* @param {string} tlId Trust List Identifier
|
|
1148
1069
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
1149
1070
|
* @param {*} [options] Override http request option.
|
|
1150
1071
|
* @throws {RequiredError}
|
|
1151
1072
|
*/
|
|
1152
|
-
didOnboardingInit(didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): AxiosPromise<DidOnboardingResponse>;
|
|
1073
|
+
didOnboardingInit(tlId: string, didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): AxiosPromise<DidOnboardingResponse>;
|
|
1153
1074
|
/**
|
|
1154
1075
|
*
|
|
1076
|
+
* @param {string} tlId Trust List Identifier
|
|
1155
1077
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
1156
1078
|
* @param {*} [options] Override http request option.
|
|
1157
1079
|
* @throws {RequiredError}
|
|
1158
1080
|
*/
|
|
1159
|
-
didOnboardingStatus(verifierState: string, options?: RawAxiosRequestConfig): AxiosPromise<DidOnboardingStatus>;
|
|
1081
|
+
didOnboardingStatus(tlId: string, verifierState: string, options?: RawAxiosRequestConfig): AxiosPromise<DidOnboardingStatus>;
|
|
1160
1082
|
/**
|
|
1161
1083
|
* Adds DID Verification method.
|
|
1162
1084
|
* @param {string} tlId Trust List Identifier
|
|
@@ -1195,10 +1117,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1195
1117
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<Tl>;
|
|
1196
1118
|
/**
|
|
1197
1119
|
* Gets Trust Lists for a specific owner
|
|
1120
|
+
* @param {string} [ownerId]
|
|
1198
1121
|
* @param {*} [options] Override http request option.
|
|
1199
1122
|
* @throws {RequiredError}
|
|
1200
1123
|
*/
|
|
1201
|
-
tlList(options?: RawAxiosRequestConfig): AxiosPromise<TlList>;
|
|
1124
|
+
tlList(ownerId?: string, options?: RawAxiosRequestConfig): AxiosPromise<TlList>;
|
|
1202
1125
|
/**
|
|
1203
1126
|
* Updates a Trust List based on the specified payload.
|
|
1204
1127
|
* @param {string} tlId
|
|
@@ -1207,29 +1130,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1207
1130
|
* @throws {RequiredError}
|
|
1208
1131
|
*/
|
|
1209
1132
|
tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): AxiosPromise<Tl>;
|
|
1210
|
-
/**
|
|
1211
|
-
* Creates a new Trust List Record.
|
|
1212
|
-
* @param {string} tlId
|
|
1213
|
-
* @param {DidDocumentCreatePayload} [didDocumentCreatePayload] Trust List Record create payload.
|
|
1214
|
-
* @param {*} [options] Override http request option.
|
|
1215
|
-
* @throws {RequiredError}
|
|
1216
|
-
*/
|
|
1217
|
-
tlrCreate(tlId: string, didDocumentCreatePayload?: DidDocumentCreatePayload, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
1218
|
-
/**
|
|
1219
|
-
* Retrieves a list of Trust List Records.
|
|
1220
|
-
* @param {string} tlId
|
|
1221
|
-
* @param {*} [options] Override http request option.
|
|
1222
|
-
* @throws {RequiredError}
|
|
1223
|
-
*/
|
|
1224
|
-
tlrsGet(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<DidDocumentList>;
|
|
1225
|
-
/**
|
|
1226
|
-
* Retrieves a specific Trust List Record
|
|
1227
|
-
* @param {string} tlId Trust List Identifier
|
|
1228
|
-
* @param {string} tlrId Trust List Record Identifier
|
|
1229
|
-
* @param {*} [options] Override http request option.
|
|
1230
|
-
* @throws {RequiredError}
|
|
1231
|
-
*/
|
|
1232
|
-
trustListRecordGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): AxiosPromise<Tlr>;
|
|
1233
1133
|
/**
|
|
1234
1134
|
* Gets a Verifiable Presentation.
|
|
1235
1135
|
* @param {string} tlId
|
|
@@ -1267,20 +1167,22 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1267
1167
|
didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidDocument, any>>;
|
|
1268
1168
|
/**
|
|
1269
1169
|
* Initiates the onboarding process to the DID registry.
|
|
1170
|
+
* @param {string} tlId Trust List Identifier
|
|
1270
1171
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
1271
1172
|
* @param {*} [options] Override http request option.
|
|
1272
1173
|
* @throws {RequiredError}
|
|
1273
1174
|
* @memberof DefaultApi
|
|
1274
1175
|
*/
|
|
1275
|
-
didOnboardingInit(didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidOnboardingResponse, any>>;
|
|
1176
|
+
didOnboardingInit(tlId: string, didOnboardingPayload?: DidOnboardingPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidOnboardingResponse, any>>;
|
|
1276
1177
|
/**
|
|
1277
1178
|
*
|
|
1179
|
+
* @param {string} tlId Trust List Identifier
|
|
1278
1180
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
1279
1181
|
* @param {*} [options] Override http request option.
|
|
1280
1182
|
* @throws {RequiredError}
|
|
1281
1183
|
* @memberof DefaultApi
|
|
1282
1184
|
*/
|
|
1283
|
-
didOnboardingStatus(verifierState: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidOnboardingStatus, any>>;
|
|
1185
|
+
didOnboardingStatus(tlId: string, verifierState: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidOnboardingStatus, any>>;
|
|
1284
1186
|
/**
|
|
1285
1187
|
* Adds DID Verification method.
|
|
1286
1188
|
* @param {string} tlId Trust List Identifier
|
|
@@ -1324,11 +1226,12 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1324
1226
|
tlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
|
|
1325
1227
|
/**
|
|
1326
1228
|
* Gets Trust Lists for a specific owner
|
|
1229
|
+
* @param {string} [ownerId]
|
|
1327
1230
|
* @param {*} [options] Override http request option.
|
|
1328
1231
|
* @throws {RequiredError}
|
|
1329
1232
|
* @memberof DefaultApi
|
|
1330
1233
|
*/
|
|
1331
|
-
tlList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlList, any>>;
|
|
1234
|
+
tlList(ownerId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlList, any>>;
|
|
1332
1235
|
/**
|
|
1333
1236
|
* Updates a Trust List based on the specified payload.
|
|
1334
1237
|
* @param {string} tlId
|
|
@@ -1338,32 +1241,6 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
1338
1241
|
* @memberof DefaultApi
|
|
1339
1242
|
*/
|
|
1340
1243
|
tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
|
|
1341
|
-
/**
|
|
1342
|
-
* Creates a new Trust List Record.
|
|
1343
|
-
* @param {string} tlId
|
|
1344
|
-
* @param {DidDocumentCreatePayload} [didDocumentCreatePayload] Trust List Record create payload.
|
|
1345
|
-
* @param {*} [options] Override http request option.
|
|
1346
|
-
* @throws {RequiredError}
|
|
1347
|
-
* @memberof DefaultApi
|
|
1348
|
-
*/
|
|
1349
|
-
tlrCreate(tlId: string, didDocumentCreatePayload?: DidDocumentCreatePayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
1350
|
-
/**
|
|
1351
|
-
* Retrieves a list of Trust List Records.
|
|
1352
|
-
* @param {string} tlId
|
|
1353
|
-
* @param {*} [options] Override http request option.
|
|
1354
|
-
* @throws {RequiredError}
|
|
1355
|
-
* @memberof DefaultApi
|
|
1356
|
-
*/
|
|
1357
|
-
tlrsGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidDocumentList, any>>;
|
|
1358
|
-
/**
|
|
1359
|
-
* Retrieves a specific Trust List Record
|
|
1360
|
-
* @param {string} tlId Trust List Identifier
|
|
1361
|
-
* @param {string} tlrId Trust List Record Identifier
|
|
1362
|
-
* @param {*} [options] Override http request option.
|
|
1363
|
-
* @throws {RequiredError}
|
|
1364
|
-
* @memberof DefaultApi
|
|
1365
|
-
*/
|
|
1366
|
-
trustListRecordGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tlr, any>>;
|
|
1367
1244
|
/**
|
|
1368
1245
|
* Gets a Verifiable Presentation.
|
|
1369
1246
|
* @param {string} tlId
|
package/api.js
CHANGED
|
@@ -127,12 +127,16 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
127
127
|
}),
|
|
128
128
|
/**
|
|
129
129
|
* Initiates the onboarding process to the DID registry.
|
|
130
|
+
* @param {string} tlId Trust List Identifier
|
|
130
131
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
131
132
|
* @param {*} [options] Override http request option.
|
|
132
133
|
* @throws {RequiredError}
|
|
133
134
|
*/
|
|
134
|
-
didOnboardingInit: (didOnboardingPayload_1, ...args_1) => __awaiter(this, [didOnboardingPayload_1, ...args_1], void 0, function* (didOnboardingPayload, options = {}) {
|
|
135
|
-
|
|
135
|
+
didOnboardingInit: (tlId_1, didOnboardingPayload_1, ...args_1) => __awaiter(this, [tlId_1, didOnboardingPayload_1, ...args_1], void 0, function* (tlId, didOnboardingPayload, options = {}) {
|
|
136
|
+
// verify required parameter 'tlId' is not null or undefined
|
|
137
|
+
(0, common_1.assertParamExists)('didOnboardingInit', 'tlId', tlId);
|
|
138
|
+
const localVarPath = `/{tl_id}/onboarding/did`
|
|
139
|
+
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
136
140
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
137
141
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
138
142
|
let baseOptions;
|
|
@@ -154,14 +158,18 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
154
158
|
}),
|
|
155
159
|
/**
|
|
156
160
|
*
|
|
161
|
+
* @param {string} tlId Trust List Identifier
|
|
157
162
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
158
163
|
* @param {*} [options] Override http request option.
|
|
159
164
|
* @throws {RequiredError}
|
|
160
165
|
*/
|
|
161
|
-
didOnboardingStatus: (verifierState_1, ...args_1) => __awaiter(this, [verifierState_1, ...args_1], void 0, function* (verifierState, options = {}) {
|
|
166
|
+
didOnboardingStatus: (tlId_1, verifierState_1, ...args_1) => __awaiter(this, [tlId_1, verifierState_1, ...args_1], void 0, function* (tlId, verifierState, options = {}) {
|
|
167
|
+
// verify required parameter 'tlId' is not null or undefined
|
|
168
|
+
(0, common_1.assertParamExists)('didOnboardingStatus', 'tlId', tlId);
|
|
162
169
|
// verify required parameter 'verifierState' is not null or undefined
|
|
163
170
|
(0, common_1.assertParamExists)('didOnboardingStatus', 'verifierState', verifierState);
|
|
164
|
-
const localVarPath = `/onboarding/did
|
|
171
|
+
const localVarPath = `/{tl_id}/onboarding/did`
|
|
172
|
+
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
165
173
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
166
174
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
175
|
let baseOptions;
|
|
@@ -338,10 +346,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
338
346
|
}),
|
|
339
347
|
/**
|
|
340
348
|
* Gets Trust Lists for a specific owner
|
|
349
|
+
* @param {string} [ownerId]
|
|
341
350
|
* @param {*} [options] Override http request option.
|
|
342
351
|
* @throws {RequiredError}
|
|
343
352
|
*/
|
|
344
|
-
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 = {}) {
|
|
345
354
|
const localVarPath = `/tl`;
|
|
346
355
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
347
356
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -355,6 +364,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
355
364
|
// authentication accessToken required
|
|
356
365
|
// http bearer authentication required
|
|
357
366
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
367
|
+
if (ownerId !== undefined) {
|
|
368
|
+
localVarQueryParameter['owner_id'] = ownerId;
|
|
369
|
+
}
|
|
358
370
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
359
371
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
360
372
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -397,106 +409,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
397
409
|
options: localVarRequestOptions,
|
|
398
410
|
};
|
|
399
411
|
}),
|
|
400
|
-
/**
|
|
401
|
-
* Creates a new Trust List Record.
|
|
402
|
-
* @param {string} tlId
|
|
403
|
-
* @param {DidDocumentCreatePayload} [didDocumentCreatePayload] Trust List Record create payload.
|
|
404
|
-
* @param {*} [options] Override http request option.
|
|
405
|
-
* @throws {RequiredError}
|
|
406
|
-
*/
|
|
407
|
-
tlrCreate: (tlId_1, didDocumentCreatePayload_1, ...args_1) => __awaiter(this, [tlId_1, didDocumentCreatePayload_1, ...args_1], void 0, function* (tlId, didDocumentCreatePayload, options = {}) {
|
|
408
|
-
// verify required parameter 'tlId' is not null or undefined
|
|
409
|
-
(0, common_1.assertParamExists)('tlrCreate', 'tlId', tlId);
|
|
410
|
-
const localVarPath = `/{tl_id}/tlrs`
|
|
411
|
-
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
412
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
413
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
414
|
-
let baseOptions;
|
|
415
|
-
if (configuration) {
|
|
416
|
-
baseOptions = configuration.baseOptions;
|
|
417
|
-
}
|
|
418
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
419
|
-
const localVarHeaderParameter = {};
|
|
420
|
-
const localVarQueryParameter = {};
|
|
421
|
-
// authentication accessToken required
|
|
422
|
-
// http bearer authentication required
|
|
423
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
424
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
425
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
426
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
427
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
428
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(didDocumentCreatePayload, localVarRequestOptions, configuration);
|
|
429
|
-
return {
|
|
430
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
431
|
-
options: localVarRequestOptions,
|
|
432
|
-
};
|
|
433
|
-
}),
|
|
434
|
-
/**
|
|
435
|
-
* Retrieves a list of Trust List Records.
|
|
436
|
-
* @param {string} tlId
|
|
437
|
-
* @param {*} [options] Override http request option.
|
|
438
|
-
* @throws {RequiredError}
|
|
439
|
-
*/
|
|
440
|
-
tlrsGet: (tlId_1, ...args_1) => __awaiter(this, [tlId_1, ...args_1], void 0, function* (tlId, options = {}) {
|
|
441
|
-
// verify required parameter 'tlId' is not null or undefined
|
|
442
|
-
(0, common_1.assertParamExists)('tlrsGet', 'tlId', tlId);
|
|
443
|
-
const localVarPath = `/{tl_id}/tlrs`
|
|
444
|
-
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
|
|
445
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
446
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
447
|
-
let baseOptions;
|
|
448
|
-
if (configuration) {
|
|
449
|
-
baseOptions = configuration.baseOptions;
|
|
450
|
-
}
|
|
451
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
452
|
-
const localVarHeaderParameter = {};
|
|
453
|
-
const localVarQueryParameter = {};
|
|
454
|
-
// authentication accessToken required
|
|
455
|
-
// http bearer authentication required
|
|
456
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
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
|
-
}),
|
|
465
|
-
/**
|
|
466
|
-
* Retrieves a specific Trust List Record
|
|
467
|
-
* @param {string} tlId Trust List Identifier
|
|
468
|
-
* @param {string} tlrId Trust List Record Identifier
|
|
469
|
-
* @param {*} [options] Override http request option.
|
|
470
|
-
* @throws {RequiredError}
|
|
471
|
-
*/
|
|
472
|
-
trustListRecordGet: (tlId_1, tlrId_1, ...args_1) => __awaiter(this, [tlId_1, tlrId_1, ...args_1], void 0, function* (tlId, tlrId, options = {}) {
|
|
473
|
-
// verify required parameter 'tlId' is not null or undefined
|
|
474
|
-
(0, common_1.assertParamExists)('trustListRecordGet', 'tlId', tlId);
|
|
475
|
-
// verify required parameter 'tlrId' is not null or undefined
|
|
476
|
-
(0, common_1.assertParamExists)('trustListRecordGet', 'tlrId', tlrId);
|
|
477
|
-
const localVarPath = `/{tl_id}/tlrs/{tlr_id}`
|
|
478
|
-
.replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)))
|
|
479
|
-
.replace(`{${"tlr_id"}}`, encodeURIComponent(String(tlrId)));
|
|
480
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
481
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
482
|
-
let baseOptions;
|
|
483
|
-
if (configuration) {
|
|
484
|
-
baseOptions = configuration.baseOptions;
|
|
485
|
-
}
|
|
486
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
487
|
-
const localVarHeaderParameter = {};
|
|
488
|
-
const localVarQueryParameter = {};
|
|
489
|
-
// authentication accessToken required
|
|
490
|
-
// http bearer authentication required
|
|
491
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
492
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
493
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
494
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
495
|
-
return {
|
|
496
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
497
|
-
options: localVarRequestOptions,
|
|
498
|
-
};
|
|
499
|
-
}),
|
|
500
412
|
/**
|
|
501
413
|
* Gets a Verifiable Presentation.
|
|
502
414
|
* @param {string} tlId
|
|
@@ -580,14 +492,15 @@ const DefaultApiFp = function (configuration) {
|
|
|
580
492
|
},
|
|
581
493
|
/**
|
|
582
494
|
* Initiates the onboarding process to the DID registry.
|
|
495
|
+
* @param {string} tlId Trust List Identifier
|
|
583
496
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
584
497
|
* @param {*} [options] Override http request option.
|
|
585
498
|
* @throws {RequiredError}
|
|
586
499
|
*/
|
|
587
|
-
didOnboardingInit(didOnboardingPayload, options) {
|
|
500
|
+
didOnboardingInit(tlId, didOnboardingPayload, options) {
|
|
588
501
|
return __awaiter(this, void 0, void 0, function* () {
|
|
589
502
|
var _a, _b, _c;
|
|
590
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingInit(didOnboardingPayload, options);
|
|
503
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingInit(tlId, didOnboardingPayload, options);
|
|
591
504
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
592
505
|
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;
|
|
593
506
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -595,14 +508,15 @@ const DefaultApiFp = function (configuration) {
|
|
|
595
508
|
},
|
|
596
509
|
/**
|
|
597
510
|
*
|
|
511
|
+
* @param {string} tlId Trust List Identifier
|
|
598
512
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
599
513
|
* @param {*} [options] Override http request option.
|
|
600
514
|
* @throws {RequiredError}
|
|
601
515
|
*/
|
|
602
|
-
didOnboardingStatus(verifierState, options) {
|
|
516
|
+
didOnboardingStatus(tlId, verifierState, options) {
|
|
603
517
|
return __awaiter(this, void 0, void 0, function* () {
|
|
604
518
|
var _a, _b, _c;
|
|
605
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingStatus(verifierState, options);
|
|
519
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.didOnboardingStatus(tlId, verifierState, options);
|
|
606
520
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
607
521
|
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;
|
|
608
522
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -686,13 +600,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
686
600
|
},
|
|
687
601
|
/**
|
|
688
602
|
* Gets Trust Lists for a specific owner
|
|
603
|
+
* @param {string} [ownerId]
|
|
689
604
|
* @param {*} [options] Override http request option.
|
|
690
605
|
* @throws {RequiredError}
|
|
691
606
|
*/
|
|
692
|
-
tlList(options) {
|
|
607
|
+
tlList(ownerId, options) {
|
|
693
608
|
return __awaiter(this, void 0, void 0, function* () {
|
|
694
609
|
var _a, _b, _c;
|
|
695
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.tlList(options);
|
|
610
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tlList(ownerId, options);
|
|
696
611
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
697
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;
|
|
698
613
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -714,53 +629,6 @@ const DefaultApiFp = function (configuration) {
|
|
|
714
629
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
715
630
|
});
|
|
716
631
|
},
|
|
717
|
-
/**
|
|
718
|
-
* Creates a new Trust List Record.
|
|
719
|
-
* @param {string} tlId
|
|
720
|
-
* @param {DidDocumentCreatePayload} [didDocumentCreatePayload] Trust List Record create payload.
|
|
721
|
-
* @param {*} [options] Override http request option.
|
|
722
|
-
* @throws {RequiredError}
|
|
723
|
-
*/
|
|
724
|
-
tlrCreate(tlId, didDocumentCreatePayload, options) {
|
|
725
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
726
|
-
var _a, _b, _c;
|
|
727
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.tlrCreate(tlId, didDocumentCreatePayload, options);
|
|
728
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
729
|
-
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;
|
|
730
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
731
|
-
});
|
|
732
|
-
},
|
|
733
|
-
/**
|
|
734
|
-
* Retrieves a list of Trust List Records.
|
|
735
|
-
* @param {string} tlId
|
|
736
|
-
* @param {*} [options] Override http request option.
|
|
737
|
-
* @throws {RequiredError}
|
|
738
|
-
*/
|
|
739
|
-
tlrsGet(tlId, options) {
|
|
740
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
741
|
-
var _a, _b, _c;
|
|
742
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.tlrsGet(tlId, options);
|
|
743
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
744
|
-
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;
|
|
745
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
746
|
-
});
|
|
747
|
-
},
|
|
748
|
-
/**
|
|
749
|
-
* Retrieves a specific Trust List Record
|
|
750
|
-
* @param {string} tlId Trust List Identifier
|
|
751
|
-
* @param {string} tlrId Trust List Record Identifier
|
|
752
|
-
* @param {*} [options] Override http request option.
|
|
753
|
-
* @throws {RequiredError}
|
|
754
|
-
*/
|
|
755
|
-
trustListRecordGet(tlId, tlrId, options) {
|
|
756
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
757
|
-
var _a, _b, _c;
|
|
758
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.trustListRecordGet(tlId, tlrId, options);
|
|
759
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
760
|
-
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;
|
|
761
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
762
|
-
});
|
|
763
|
-
},
|
|
764
632
|
/**
|
|
765
633
|
* Gets a Verifiable Presentation.
|
|
766
634
|
* @param {string} tlId
|
|
@@ -810,21 +678,23 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
810
678
|
},
|
|
811
679
|
/**
|
|
812
680
|
* Initiates the onboarding process to the DID registry.
|
|
681
|
+
* @param {string} tlId Trust List Identifier
|
|
813
682
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
814
683
|
* @param {*} [options] Override http request option.
|
|
815
684
|
* @throws {RequiredError}
|
|
816
685
|
*/
|
|
817
|
-
didOnboardingInit(didOnboardingPayload, options) {
|
|
818
|
-
return localVarFp.didOnboardingInit(didOnboardingPayload, options).then((request) => request(axios, basePath));
|
|
686
|
+
didOnboardingInit(tlId, didOnboardingPayload, options) {
|
|
687
|
+
return localVarFp.didOnboardingInit(tlId, didOnboardingPayload, options).then((request) => request(axios, basePath));
|
|
819
688
|
},
|
|
820
689
|
/**
|
|
821
690
|
*
|
|
691
|
+
* @param {string} tlId Trust List Identifier
|
|
822
692
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
823
693
|
* @param {*} [options] Override http request option.
|
|
824
694
|
* @throws {RequiredError}
|
|
825
695
|
*/
|
|
826
|
-
didOnboardingStatus(verifierState, options) {
|
|
827
|
-
return localVarFp.didOnboardingStatus(verifierState, options).then((request) => request(axios, basePath));
|
|
696
|
+
didOnboardingStatus(tlId, verifierState, options) {
|
|
697
|
+
return localVarFp.didOnboardingStatus(tlId, verifierState, options).then((request) => request(axios, basePath));
|
|
828
698
|
},
|
|
829
699
|
/**
|
|
830
700
|
* Adds DID Verification method.
|
|
@@ -874,11 +744,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
874
744
|
},
|
|
875
745
|
/**
|
|
876
746
|
* Gets Trust Lists for a specific owner
|
|
747
|
+
* @param {string} [ownerId]
|
|
877
748
|
* @param {*} [options] Override http request option.
|
|
878
749
|
* @throws {RequiredError}
|
|
879
750
|
*/
|
|
880
|
-
tlList(options) {
|
|
881
|
-
return localVarFp.tlList(options).then((request) => request(axios, basePath));
|
|
751
|
+
tlList(ownerId, options) {
|
|
752
|
+
return localVarFp.tlList(ownerId, options).then((request) => request(axios, basePath));
|
|
882
753
|
},
|
|
883
754
|
/**
|
|
884
755
|
* Updates a Trust List based on the specified payload.
|
|
@@ -890,35 +761,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
890
761
|
tlPatch(tlId, tlPayload, options) {
|
|
891
762
|
return localVarFp.tlPatch(tlId, tlPayload, options).then((request) => request(axios, basePath));
|
|
892
763
|
},
|
|
893
|
-
/**
|
|
894
|
-
* Creates a new Trust List Record.
|
|
895
|
-
* @param {string} tlId
|
|
896
|
-
* @param {DidDocumentCreatePayload} [didDocumentCreatePayload] Trust List Record create payload.
|
|
897
|
-
* @param {*} [options] Override http request option.
|
|
898
|
-
* @throws {RequiredError}
|
|
899
|
-
*/
|
|
900
|
-
tlrCreate(tlId, didDocumentCreatePayload, options) {
|
|
901
|
-
return localVarFp.tlrCreate(tlId, didDocumentCreatePayload, options).then((request) => request(axios, basePath));
|
|
902
|
-
},
|
|
903
|
-
/**
|
|
904
|
-
* Retrieves a list of Trust List Records.
|
|
905
|
-
* @param {string} tlId
|
|
906
|
-
* @param {*} [options] Override http request option.
|
|
907
|
-
* @throws {RequiredError}
|
|
908
|
-
*/
|
|
909
|
-
tlrsGet(tlId, options) {
|
|
910
|
-
return localVarFp.tlrsGet(tlId, options).then((request) => request(axios, basePath));
|
|
911
|
-
},
|
|
912
|
-
/**
|
|
913
|
-
* Retrieves a specific Trust List Record
|
|
914
|
-
* @param {string} tlId Trust List Identifier
|
|
915
|
-
* @param {string} tlrId Trust List Record Identifier
|
|
916
|
-
* @param {*} [options] Override http request option.
|
|
917
|
-
* @throws {RequiredError}
|
|
918
|
-
*/
|
|
919
|
-
trustListRecordGet(tlId, tlrId, options) {
|
|
920
|
-
return localVarFp.trustListRecordGet(tlId, tlrId, options).then((request) => request(axios, basePath));
|
|
921
|
-
},
|
|
922
764
|
/**
|
|
923
765
|
* Gets a Verifiable Presentation.
|
|
924
766
|
* @param {string} tlId
|
|
@@ -964,23 +806,25 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
964
806
|
}
|
|
965
807
|
/**
|
|
966
808
|
* Initiates the onboarding process to the DID registry.
|
|
809
|
+
* @param {string} tlId Trust List Identifier
|
|
967
810
|
* @param {DidOnboardingPayload} [didOnboardingPayload] DID onboarding init payload.
|
|
968
811
|
* @param {*} [options] Override http request option.
|
|
969
812
|
* @throws {RequiredError}
|
|
970
813
|
* @memberof DefaultApi
|
|
971
814
|
*/
|
|
972
|
-
didOnboardingInit(didOnboardingPayload, options) {
|
|
973
|
-
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingInit(didOnboardingPayload, options).then((request) => request(this.axios, this.basePath));
|
|
815
|
+
didOnboardingInit(tlId, didOnboardingPayload, options) {
|
|
816
|
+
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingInit(tlId, didOnboardingPayload, options).then((request) => request(this.axios, this.basePath));
|
|
974
817
|
}
|
|
975
818
|
/**
|
|
976
819
|
*
|
|
820
|
+
* @param {string} tlId Trust List Identifier
|
|
977
821
|
* @param {string} verifierState The verifier state provided by the onboarding endpoint
|
|
978
822
|
* @param {*} [options] Override http request option.
|
|
979
823
|
* @throws {RequiredError}
|
|
980
824
|
* @memberof DefaultApi
|
|
981
825
|
*/
|
|
982
|
-
didOnboardingStatus(verifierState, options) {
|
|
983
|
-
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingStatus(verifierState, options).then((request) => request(this.axios, this.basePath));
|
|
826
|
+
didOnboardingStatus(tlId, verifierState, options) {
|
|
827
|
+
return (0, exports.DefaultApiFp)(this.configuration).didOnboardingStatus(tlId, verifierState, options).then((request) => request(this.axios, this.basePath));
|
|
984
828
|
}
|
|
985
829
|
/**
|
|
986
830
|
* Adds DID Verification method.
|
|
@@ -1035,12 +879,13 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1035
879
|
}
|
|
1036
880
|
/**
|
|
1037
881
|
* Gets Trust Lists for a specific owner
|
|
882
|
+
* @param {string} [ownerId]
|
|
1038
883
|
* @param {*} [options] Override http request option.
|
|
1039
884
|
* @throws {RequiredError}
|
|
1040
885
|
* @memberof DefaultApi
|
|
1041
886
|
*/
|
|
1042
|
-
tlList(options) {
|
|
1043
|
-
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));
|
|
1044
889
|
}
|
|
1045
890
|
/**
|
|
1046
891
|
* Updates a Trust List based on the specified payload.
|
|
@@ -1053,38 +898,6 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1053
898
|
tlPatch(tlId, tlPayload, options) {
|
|
1054
899
|
return (0, exports.DefaultApiFp)(this.configuration).tlPatch(tlId, tlPayload, options).then((request) => request(this.axios, this.basePath));
|
|
1055
900
|
}
|
|
1056
|
-
/**
|
|
1057
|
-
* Creates a new Trust List Record.
|
|
1058
|
-
* @param {string} tlId
|
|
1059
|
-
* @param {DidDocumentCreatePayload} [didDocumentCreatePayload] Trust List Record create payload.
|
|
1060
|
-
* @param {*} [options] Override http request option.
|
|
1061
|
-
* @throws {RequiredError}
|
|
1062
|
-
* @memberof DefaultApi
|
|
1063
|
-
*/
|
|
1064
|
-
tlrCreate(tlId, didDocumentCreatePayload, options) {
|
|
1065
|
-
return (0, exports.DefaultApiFp)(this.configuration).tlrCreate(tlId, didDocumentCreatePayload, options).then((request) => request(this.axios, this.basePath));
|
|
1066
|
-
}
|
|
1067
|
-
/**
|
|
1068
|
-
* Retrieves a list of Trust List Records.
|
|
1069
|
-
* @param {string} tlId
|
|
1070
|
-
* @param {*} [options] Override http request option.
|
|
1071
|
-
* @throws {RequiredError}
|
|
1072
|
-
* @memberof DefaultApi
|
|
1073
|
-
*/
|
|
1074
|
-
tlrsGet(tlId, options) {
|
|
1075
|
-
return (0, exports.DefaultApiFp)(this.configuration).tlrsGet(tlId, options).then((request) => request(this.axios, this.basePath));
|
|
1076
|
-
}
|
|
1077
|
-
/**
|
|
1078
|
-
* Retrieves a specific Trust List Record
|
|
1079
|
-
* @param {string} tlId Trust List Identifier
|
|
1080
|
-
* @param {string} tlrId Trust List Record Identifier
|
|
1081
|
-
* @param {*} [options] Override http request option.
|
|
1082
|
-
* @throws {RequiredError}
|
|
1083
|
-
* @memberof DefaultApi
|
|
1084
|
-
*/
|
|
1085
|
-
trustListRecordGet(tlId, tlrId, options) {
|
|
1086
|
-
return (0, exports.DefaultApiFp)(this.configuration).trustListRecordGet(tlId, tlrId, options).then((request) => request(this.axios, this.basePath));
|
|
1087
|
-
}
|
|
1088
901
|
/**
|
|
1089
902
|
* Gets a Verifiable Presentation.
|
|
1090
903
|
* @param {string} tlId
|