@idunion/tl-sdk 0.0.29 → 0.0.31

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 CHANGED
@@ -15,127 +15,60 @@ import type { RequestArgs } from './base';
15
15
  import { BaseAPI } from './base';
16
16
  /**
17
17
  * Defines accreditations which were given to specific holder
18
- * @export
19
- * @interface AccreditedFor
20
18
  */
21
19
  export interface AccreditedFor {
22
20
  /**
23
21
  * Jurisdiction limitation based on geographical region defined by https://publications.europa.eu/resource/authority/atu
24
- * @type {string}
25
- * @memberof AccreditedFor
26
22
  */
27
23
  'limitJurisdiction'?: string;
28
24
  /**
29
25
  * Link to a schema for which the accreditation is given
30
- * @type {string}
31
- * @memberof AccreditedFor
32
26
  */
33
27
  'schemaId'?: string;
34
28
  /**
35
29
  * Comma separated VC type for which the accreditation is given
36
- * @type {string}
37
- * @memberof AccreditedFor
38
30
  */
39
31
  'types'?: string;
40
32
  }
41
- /**
42
- *
43
- * @export
44
- * @interface DidDocument
45
- */
46
33
  export interface DidDocument {
47
34
  /**
48
35
  * 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
49
- * @type {Array<string>}
50
- * @memberof DidDocument
51
36
  */
52
37
  '@context': Array<string>;
53
38
  /**
54
39
  * An entity that has the capability to make changes to a DID document. A DID might have more than one DID controller. The DID controller(s) can be denoted by the optional controller property at the top level of the DID document. Note that a DID controller might be the DID subject. https://www.w3.org/TR/did-1.0/#dfn-did-controllers
55
- * @type {Array<string>}
56
- * @memberof DidDocument
57
40
  */
58
41
  'controller'?: Array<string>;
59
- /**
60
- *
61
- * @type {string}
62
- * @memberof DidDocument
63
- */
64
42
  'id': string;
65
43
  /**
66
44
  * The verificationMethod property is OPTIONAL. If present, the value MUST be a set of verification methods, where each verification method is expressed using a map. The verification method map MUST include the id, type, controller, and specific verification material properties that are determined by the value of type and are defined in 5.2.1 Verification Material. A verification method MAY include additional properties. Verification methods SHOULD be registered in the DID Specification Registries [DID-SPEC-REGISTRIES]. https://www.w3.org/TR/did-1.0/#verification-methods
67
- * @type {Array<VerificationMethod>}
68
- * @memberof DidDocument
69
45
  */
70
46
  'verificationMethod'?: Array<VerificationMethod>;
71
47
  /**
72
48
  * The capabilityInvocation verification relationship is used to specify a verification method that might be used by the DID subject to invoke a cryptographic capability, such as the authorization to update the DID Document. https://www.w3.org/TR/did-1.0/#capability-invocation
73
- * @type {Array<string>}
74
- * @memberof DidDocument
75
49
  */
76
50
  'capabilityInvocation'?: Array<string>;
77
51
  /**
78
52
  * The authentication verification relationship is used to specify how the DID subject is expected to be authenticated, for purposes such as logging into a website or engaging in any sort of challenge-response protocol. https://www.w3.org/TR/did-1.0/#authentication
79
- * @type {Array<string>}
80
- * @memberof DidDocument
81
53
  */
82
54
  'authentication'?: Array<string>;
83
55
  /**
84
56
  * The assertionMethod verification relationship is used to specify how the DID subject is expected to express claims, such as for the purposes of issuing a Verifiable Credential [VC-DATA-MODEL]. https://www.w3.org/TR/did-1.0/#assertion
85
- * @type {Array<string>}
86
- * @memberof DidDocument
87
57
  */
88
58
  'assertionMethod'?: Array<string>;
89
- /**
90
- *
91
- * @type {Array<ServiceItem>}
92
- * @memberof DidDocument
93
- */
94
59
  'service'?: Array<ServiceItem>;
95
60
  }
96
- /**
97
- *
98
- * @export
99
- * @interface DidDocumentCreatePayload
100
- */
101
61
  export interface DidDocumentCreatePayload {
102
- /**
103
- *
104
- * @type {string}
105
- * @memberof DidDocumentCreatePayload
106
- */
107
62
  'didKey': string;
108
- /**
109
- *
110
- * @type {string}
111
- * @memberof DidDocumentCreatePayload
112
- */
113
63
  'orgName': string;
114
64
  }
115
- /**
116
- *
117
- * @export
118
- * @interface DidDocumentList
119
- */
120
65
  export interface DidDocumentList {
121
- /**
122
- *
123
- * @type {Array<string>}
124
- * @memberof DidDocumentList
125
- */
126
66
  'items'?: Array<string>;
127
67
  }
128
68
  /**
129
69
  * Health status of the system
130
- * @export
131
- * @interface HealthStatus
132
70
  */
133
71
  export interface HealthStatus {
134
- /**
135
- *
136
- * @type {string}
137
- * @memberof HealthStatus
138
- */
139
72
  'status': HealthStatusStatusEnum;
140
73
  }
141
74
  export declare const HealthStatusStatusEnum: {
@@ -144,160 +77,59 @@ export declare const HealthStatusStatusEnum: {
144
77
  readonly Critical: "critical";
145
78
  };
146
79
  export type HealthStatusStatusEnum = typeof HealthStatusStatusEnum[keyof typeof HealthStatusStatusEnum];
147
- /**
148
- *
149
- * @export
150
- * @interface IssuerDisplayItem
151
- */
152
80
  export interface IssuerDisplayItem {
153
- /**
154
- *
155
- * @type {string}
156
- * @memberof IssuerDisplayItem
157
- */
158
81
  'name'?: string;
159
- /**
160
- *
161
- * @type {string}
162
- * @memberof IssuerDisplayItem
163
- */
164
82
  'locale'?: string;
165
- /**
166
- *
167
- * @type {IssuerLogo}
168
- * @memberof IssuerDisplayItem
169
- */
170
83
  'logo'?: IssuerLogo;
171
84
  }
172
- /**
173
- *
174
- * @export
175
- * @interface IssuerLogo
176
- */
177
85
  export interface IssuerLogo {
178
- /**
179
- *
180
- * @type {string}
181
- * @memberof IssuerLogo
182
- */
183
86
  'uri'?: string;
184
- /**
185
- *
186
- * @type {string}
187
- * @memberof IssuerLogo
188
- */
189
87
  'alt_text'?: string;
190
88
  }
191
89
  /**
192
90
  * Common error message
193
- * @export
194
- * @interface ModelError
195
91
  */
196
92
  export interface ModelError {
197
- /**
198
- *
199
- * @type {string}
200
- * @memberof ModelError
201
- */
202
93
  'error': string;
203
- /**
204
- *
205
- * @type {string}
206
- * @memberof ModelError
207
- */
208
94
  'message': string;
209
95
  }
210
- /**
211
- *
212
- * @export
213
- * @interface OnboardingCredential
214
- */
215
96
  export interface OnboardingCredential {
216
- /**
217
- *
218
- * @type {string}
219
- * @memberof OnboardingCredential
220
- */
221
97
  'link': string;
222
- /**
223
- *
224
- * @type {string}
225
- * @memberof OnboardingCredential
226
- */
227
98
  'issuerDid': string;
228
- /**
229
- *
230
- * @type {Array<IssuerDisplayItem>}
231
- * @memberof OnboardingCredential
232
- */
233
99
  'issuerDisplay'?: Array<IssuerDisplayItem>;
234
100
  }
235
- /**
236
- *
237
- * @export
238
- * @interface OnboardingPayload
239
- */
240
101
  export interface OnboardingPayload {
241
102
  /**
242
103
  * The Verifier ID that should be used to verify the onboarding credential.
243
- * @type {string}
244
- * @memberof OnboardingPayload
245
104
  */
246
105
  'verifierId': string;
247
106
  }
248
- /**
249
- *
250
- * @export
251
- * @interface OnboardingResponse
252
- */
253
107
  export interface OnboardingResponse {
254
108
  /**
255
109
  * Url of verifier authorization server that contains the requested verifier scope.
256
- * @type {string}
257
- * @memberof OnboardingResponse
258
110
  */
259
111
  'verifierUrl': string;
260
112
  /**
261
113
  * A code that can be used to match the verified credential for later use.
262
- * @type {string}
263
- * @memberof OnboardingResponse
264
114
  */
265
115
  'verifierState': string;
266
116
  }
267
- /**
268
- *
269
- * @export
270
- * @interface OnboardingStatus
271
- */
272
117
  export interface OnboardingStatus {
273
118
  /**
274
119
  * When the status is completed the DID will be provided.
275
- * @type {string}
276
- * @memberof OnboardingStatus
277
120
  */
278
121
  'did'?: string;
279
122
  /**
280
123
  * The status message providing additional info on specific status.
281
- * @type {string}
282
- * @memberof OnboardingStatus
283
124
  */
284
125
  'message'?: string;
285
126
  /**
286
127
  * The onboarding process status
287
- * @type {string}
288
- * @memberof OnboardingStatus
289
128
  */
290
129
  'status': OnboardingStatusStatusEnum;
291
- /**
292
- *
293
- * @type {Tl}
294
- * @memberof OnboardingStatus
295
- */
296
130
  'tl'?: Tl;
297
131
  /**
298
132
  * After the onboarding is initiate this value will be provided
299
- * @type {string}
300
- * @memberof OnboardingStatus
301
133
  */
302
134
  'verifierUrl'?: string;
303
135
  }
@@ -309,175 +141,68 @@ export declare const OnboardingStatusStatusEnum: {
309
141
  export type OnboardingStatusStatusEnum = typeof OnboardingStatusStatusEnum[keyof typeof OnboardingStatusStatusEnum];
310
142
  /**
311
143
  * Services are used in DID documents to express ways of communicating with the DID subject or associated entities. A service can be any type of service the DID subject wants to advertise, including decentralized identity management services for further discovery, authentication, authorization, or interaction. https://www.w3.org/TR/did-1.0/#services
312
- * @export
313
- * @interface ServiceItem
314
144
  */
315
145
  export interface ServiceItem {
316
- /**
317
- *
318
- * @type {string}
319
- * @memberof ServiceItem
320
- */
321
146
  'id': string;
322
- /**
323
- *
324
- * @type {string}
325
- * @memberof ServiceItem
326
- */
327
147
  'type': string;
328
148
  /**
329
149
  * The value of the serviceEndpoint property MUST be a string, a map, or a set composed of one or more strings and/or maps. All string values MUST be valid URIs conforming to [RFC3986] and normalized according to the Normalization and Comparison rules in RFC3986 and to any normalization rules in its applicable URI scheme specification. https://www.w3.org/TR/did-1.0/#dfn-serviceendpoint
330
- * @type {string}
331
- * @memberof ServiceItem
332
150
  */
333
151
  'serviceEndpoint': string;
334
152
  }
335
153
  /**
336
154
  * Trust List meta info
337
- * @export
338
- * @interface Tl
339
155
  */
340
156
  export interface Tl {
341
- /**
342
- *
343
- * @type {string}
344
- * @memberof Tl
345
- */
346
157
  'id': string;
347
158
  /**
348
159
  * Trust List human-readable name
349
- * @type {string}
350
- * @memberof Tl
351
160
  */
352
161
  'name': string;
353
162
  /**
354
163
  * Trust List description
355
- * @type {string}
356
- * @memberof Tl
357
164
  */
358
165
  'description': string;
359
- /**
360
- *
361
- * @type {string}
362
- * @memberof Tl
363
- */
364
166
  'didBase': string;
365
- /**
366
- *
367
- * @type {string}
368
- * @memberof Tl
369
- */
370
167
  'governanceWalletId': string;
371
- /**
372
- *
373
- * @type {string}
374
- * @memberof Tl
375
- */
376
168
  'verifierId': string;
377
169
  }
378
- /**
379
- *
380
- * @export
381
- * @interface TlList
382
- */
383
170
  export interface TlList {
384
- /**
385
- *
386
- * @type {Array<Tl>}
387
- * @memberof TlList
388
- */
389
171
  'items'?: Array<Tl>;
390
172
  }
391
173
  /**
392
174
  * Trust List create payload
393
- * @export
394
- * @interface TlPayload
395
175
  */
396
176
  export interface TlPayload {
397
177
  /**
398
178
  * Trust List human-readable name
399
- * @type {string}
400
- * @memberof TlPayload
401
179
  */
402
180
  'name': string;
403
181
  /**
404
182
  * Trust List description
405
- * @type {string}
406
- * @memberof TlPayload
407
183
  */
408
184
  'description': string;
409
- /**
410
- *
411
- * @type {string}
412
- * @memberof TlPayload
413
- */
414
185
  'suggestedId'?: string;
415
186
  /**
416
187
  * The Wallet used by the Trust List for VC interactions
417
- * @type {string}
418
- * @memberof TlPayload
419
188
  */
420
189
  'governanceWalletId': string;
421
190
  /**
422
191
  * The Verifier used to verify onboarding credentials
423
- * @type {string}
424
- * @memberof TlPayload
425
192
  */
426
193
  'verifierId': string;
427
194
  }
428
- /**
429
- *
430
- * @export
431
- * @interface Tlr
432
- */
433
195
  export interface Tlr {
434
- /**
435
- *
436
- * @type {string}
437
- * @memberof Tlr
438
- */
439
196
  'orgName': string;
440
- /**
441
- *
442
- * @type {string}
443
- * @memberof Tlr
444
- */
445
197
  'id': string;
446
- /**
447
- *
448
- * @type {string}
449
- * @memberof Tlr
450
- */
451
198
  'did': string;
452
- /**
453
- *
454
- * @type {string}
455
- * @memberof Tlr
456
- */
457
199
  'tlId': string;
458
- /**
459
- *
460
- * @type {string}
461
- * @memberof Tlr
462
- */
463
200
  'tlName': string;
464
201
  /**
465
202
  * Denotes the Trust List record trust status. - Unverified record is created manually without presenting an onboarding VC - Verified record is created upon onboarding VC presentation - Trusted record is created upon onboarding VC presentation that was issued by an Issuer that is verified by IDunion SCE
466
- * @type {string}
467
- * @memberof Tlr
468
203
  */
469
204
  'status': TlrStatusEnum;
470
- /**
471
- *
472
- * @type {Array<AccreditedFor>}
473
- * @memberof Tlr
474
- */
475
205
  'accreditedFor'?: Array<AccreditedFor>;
476
- /**
477
- *
478
- * @type {Array<OnboardingCredential>}
479
- * @memberof Tlr
480
- */
481
206
  'onboardingCredentials'?: Array<OnboardingCredential>;
482
207
  }
483
208
  export declare const TlrStatusEnum: {
@@ -486,61 +211,26 @@ export declare const TlrStatusEnum: {
486
211
  readonly Trusted: "trusted";
487
212
  };
488
213
  export type TlrStatusEnum = typeof TlrStatusEnum[keyof typeof TlrStatusEnum];
489
- /**
490
- *
491
- * @export
492
- * @interface TlrList
493
- */
494
214
  export interface TlrList {
495
- /**
496
- *
497
- * @type {Array<Tlr>}
498
- * @memberof TlrList
499
- */
500
215
  'items'?: Array<Tlr>;
501
216
  }
502
- /**
503
- *
504
- * @export
505
- * @interface VerificationMethod
506
- */
507
217
  export interface VerificationMethod {
508
218
  [key: string]: any;
509
- /**
510
- *
511
- * @type {string}
512
- * @memberof VerificationMethod
513
- */
514
219
  'controller': string;
515
- /**
516
- *
517
- * @type {string}
518
- * @memberof VerificationMethod
519
- */
520
220
  'id': string;
521
221
  /**
522
222
  * The value of the type property MUST be a string that references exactly one verification method type. In order to maximize global interoperability, the verification method type SHOULD be registered in the DID Specification Registries [DID-SPEC-REGISTRIES].
523
- * @type {string}
524
- * @memberof VerificationMethod
525
223
  */
526
224
  'type': string;
527
225
  }
528
- /**
529
- *
530
- * @export
531
- * @interface VpResponse
532
- */
533
226
  export interface VpResponse {
534
227
  /**
535
228
  * Verifiable Presentation in JWT format
536
- * @type {string}
537
- * @memberof VpResponse
538
229
  */
539
230
  'vp': string;
540
231
  }
541
232
  /**
542
233
  * DefaultApi - axios parameter creator
543
- * @export
544
234
  */
545
235
  export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
546
236
  /**
@@ -603,6 +293,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
603
293
  * @throws {RequiredError}
604
294
  */
605
295
  tlCreate: (tlPayload?: TlPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
296
+ /**
297
+ * Destroys the Trust List.
298
+ * @param {string} tlId
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ */
302
+ tlDelete: (tlId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
606
303
  /**
607
304
  * Gets the specified Trust List
608
305
  * @param {string} tlId
@@ -667,7 +364,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
667
364
  };
668
365
  /**
669
366
  * DefaultApi - functional programming interface
670
- * @export
671
367
  */
672
368
  export declare const DefaultApiFp: (configuration?: Configuration) => {
673
369
  /**
@@ -730,6 +426,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
730
426
  * @throws {RequiredError}
731
427
  */
732
428
  tlCreate(tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tl>>;
429
+ /**
430
+ * Destroys the Trust List.
431
+ * @param {string} tlId
432
+ * @param {*} [options] Override http request option.
433
+ * @throws {RequiredError}
434
+ */
435
+ tlDelete(tlId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
733
436
  /**
734
437
  * Gets the specified Trust List
735
438
  * @param {string} tlId
@@ -794,7 +497,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
794
497
  };
795
498
  /**
796
499
  * DefaultApi - factory interface
797
- * @export
798
500
  */
799
501
  export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
800
502
  /**
@@ -857,6 +559,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
857
559
  * @throws {RequiredError}
858
560
  */
859
561
  tlCreate(tlPayload?: TlPayload, options?: RawAxiosRequestConfig): AxiosPromise<Tl>;
562
+ /**
563
+ * Destroys the Trust List.
564
+ * @param {string} tlId
565
+ * @param {*} [options] Override http request option.
566
+ * @throws {RequiredError}
567
+ */
568
+ tlDelete(tlId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
860
569
  /**
861
570
  * Gets the specified Trust List
862
571
  * @param {string} tlId
@@ -921,9 +630,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
921
630
  };
922
631
  /**
923
632
  * DefaultApi - object-oriented interface
924
- * @export
925
- * @class DefaultApi
926
- * @extends {BaseAPI}
927
633
  */
928
634
  export declare class DefaultApi extends BaseAPI {
929
635
  /**
@@ -932,7 +638,6 @@ export declare class DefaultApi extends BaseAPI {
932
638
  * @param {DidDocumentCreatePayload} [didDocumentCreatePayload] DID Document Create Payload.
933
639
  * @param {*} [options] Override http request option.
934
640
  * @throws {RequiredError}
935
- * @memberof DefaultApi
936
641
  */
937
642
  didDocumentCreate(tlId: string, didDocumentCreatePayload?: DidDocumentCreatePayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
938
643
  /**
@@ -941,7 +646,6 @@ export declare class DefaultApi extends BaseAPI {
941
646
  * @param {string} tlrId Trust List Record Identifier
942
647
  * @param {*} [options] Override http request option.
943
648
  * @throws {RequiredError}
944
- * @memberof DefaultApi
945
649
  */
946
650
  didGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DidDocument, any>>;
947
651
  /**
@@ -949,7 +653,6 @@ export declare class DefaultApi extends BaseAPI {
949
653
  * @param {string} tlId
950
654
  * @param {*} [options] Override http request option.
951
655
  * @throws {RequiredError}
952
- * @memberof DefaultApi
953
656
  */
954
657
  didSuggest(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
955
658
  /**
@@ -959,14 +662,12 @@ export declare class DefaultApi extends BaseAPI {
959
662
  * @param {VerificationMethod} [verificationMethod] Verification method.
960
663
  * @param {*} [options] Override http request option.
961
664
  * @throws {RequiredError}
962
- * @memberof DefaultApi
963
665
  */
964
666
  didVerificationMethodAdd(tlId: string, did: string, verificationMethod?: VerificationMethod, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
965
667
  /**
966
668
  *
967
669
  * @param {*} [options] Override http request option.
968
670
  * @throws {RequiredError}
969
- * @memberof DefaultApi
970
671
  */
971
672
  healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HealthStatus, any>>;
972
673
  /**
@@ -975,7 +676,6 @@ export declare class DefaultApi extends BaseAPI {
975
676
  * @param {OnboardingPayload} [onboardingPayload] DID onboarding init payload.
976
677
  * @param {*} [options] Override http request option.
977
678
  * @throws {RequiredError}
978
- * @memberof DefaultApi
979
679
  */
980
680
  onboardingInit(tlId: string, onboardingPayload?: OnboardingPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OnboardingResponse, any>>;
981
681
  /**
@@ -983,7 +683,6 @@ export declare class DefaultApi extends BaseAPI {
983
683
  * @param {string} verifierState Verifier state
984
684
  * @param {*} [options] Override http request option.
985
685
  * @throws {RequiredError}
986
- * @memberof DefaultApi
987
686
  */
988
687
  onboardingStatus(verifierState: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OnboardingStatus, any>>;
989
688
  /**
@@ -991,15 +690,20 @@ export declare class DefaultApi extends BaseAPI {
991
690
  * @param {TlPayload} [tlPayload] Trust List create payload.
992
691
  * @param {*} [options] Override http request option.
993
692
  * @throws {RequiredError}
994
- * @memberof DefaultApi
995
693
  */
996
694
  tlCreate(tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
695
+ /**
696
+ * Destroys the Trust List.
697
+ * @param {string} tlId
698
+ * @param {*} [options] Override http request option.
699
+ * @throws {RequiredError}
700
+ */
701
+ tlDelete(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
997
702
  /**
998
703
  * Gets the specified Trust List
999
704
  * @param {string} tlId
1000
705
  * @param {*} [options] Override http request option.
1001
706
  * @throws {RequiredError}
1002
- * @memberof DefaultApi
1003
707
  */
1004
708
  tlGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
1005
709
  /**
@@ -1007,7 +711,6 @@ export declare class DefaultApi extends BaseAPI {
1007
711
  * @param {string} [ownerId]
1008
712
  * @param {*} [options] Override http request option.
1009
713
  * @throws {RequiredError}
1010
- * @memberof DefaultApi
1011
714
  */
1012
715
  tlList(ownerId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlList, any>>;
1013
716
  /**
@@ -1016,7 +719,6 @@ export declare class DefaultApi extends BaseAPI {
1016
719
  * @param {TlPayload} [tlPayload] Trust List create payload.
1017
720
  * @param {*} [options] Override http request option.
1018
721
  * @throws {RequiredError}
1019
- * @memberof DefaultApi
1020
722
  */
1021
723
  tlPatch(tlId: string, tlPayload?: TlPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tl, any>>;
1022
724
  /**
@@ -1025,7 +727,6 @@ export declare class DefaultApi extends BaseAPI {
1025
727
  * @param {string} tlrId Trust List Record Identifier
1026
728
  * @param {*} [options] Override http request option.
1027
729
  * @throws {RequiredError}
1028
- * @memberof DefaultApi
1029
730
  */
1030
731
  tlrGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tlr, any>>;
1031
732
  /**
@@ -1033,7 +734,6 @@ export declare class DefaultApi extends BaseAPI {
1033
734
  * @param {string} orgName
1034
735
  * @param {*} [options] Override http request option.
1035
736
  * @throws {RequiredError}
1036
- * @memberof DefaultApi
1037
737
  */
1038
738
  tlrSearch(orgName: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlrList, any>>;
1039
739
  /**
@@ -1042,7 +742,6 @@ export declare class DefaultApi extends BaseAPI {
1042
742
  * @param {string} tlrId Trust List Record Identifier
1043
743
  * @param {*} [options] Override http request option.
1044
744
  * @throws {RequiredError}
1045
- * @memberof DefaultApi
1046
745
  */
1047
746
  tlrTrustChainGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tlr[], any>>;
1048
747
  /**
@@ -1050,7 +749,6 @@ export declare class DefaultApi extends BaseAPI {
1050
749
  * @param {string} tlId
1051
750
  * @param {*} [options] Override http request option.
1052
751
  * @throws {RequiredError}
1053
- * @memberof DefaultApi
1054
752
  */
1055
753
  tlrsGet(tlId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlrList, any>>;
1056
754
  /**
@@ -1060,7 +758,6 @@ export declare class DefaultApi extends BaseAPI {
1060
758
  * @param {string} id
1061
759
  * @param {*} [options] Override http request option.
1062
760
  * @throws {RequiredError}
1063
- * @memberof DefaultApi
1064
761
  */
1065
762
  vpGet(tlId: string, did: string, id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VpResponse, any>>;
1066
763
  }
package/api.js CHANGED
@@ -49,7 +49,6 @@ exports.TlrStatusEnum = {
49
49
  };
50
50
  /**
51
51
  * DefaultApi - axios parameter creator
52
- * @export
53
52
  */
54
53
  const DefaultApiAxiosParamCreator = function (configuration) {
55
54
  return {
@@ -301,6 +300,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
301
300
  options: localVarRequestOptions,
302
301
  };
303
302
  }),
303
+ /**
304
+ * Destroys the Trust List.
305
+ * @param {string} tlId
306
+ * @param {*} [options] Override http request option.
307
+ * @throws {RequiredError}
308
+ */
309
+ tlDelete: (tlId_1, ...args_1) => __awaiter(this, [tlId_1, ...args_1], void 0, function* (tlId, options = {}) {
310
+ // verify required parameter 'tlId' is not null or undefined
311
+ (0, common_1.assertParamExists)('tlDelete', 'tlId', tlId);
312
+ const localVarPath = `/{tl_id}`
313
+ .replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)));
314
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
315
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
316
+ let baseOptions;
317
+ if (configuration) {
318
+ baseOptions = configuration.baseOptions;
319
+ }
320
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
321
+ const localVarHeaderParameter = {};
322
+ const localVarQueryParameter = {};
323
+ // authentication accessToken required
324
+ // http bearer authentication required
325
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
326
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
327
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
328
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
329
+ return {
330
+ url: (0, common_1.toPathString)(localVarUrlObj),
331
+ options: localVarRequestOptions,
332
+ };
333
+ }),
304
334
  /**
305
335
  * Gets the specified Trust List
306
336
  * @param {string} tlId
@@ -564,7 +594,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
564
594
  exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
565
595
  /**
566
596
  * DefaultApi - functional programming interface
567
- * @export
568
597
  */
569
598
  const DefaultApiFp = function (configuration) {
570
599
  const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
@@ -693,6 +722,21 @@ const DefaultApiFp = function (configuration) {
693
722
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
694
723
  });
695
724
  },
725
+ /**
726
+ * Destroys the Trust List.
727
+ * @param {string} tlId
728
+ * @param {*} [options] Override http request option.
729
+ * @throws {RequiredError}
730
+ */
731
+ tlDelete(tlId, options) {
732
+ return __awaiter(this, void 0, void 0, function* () {
733
+ var _a, _b, _c;
734
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tlDelete(tlId, options);
735
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
736
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tlDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
737
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
738
+ });
739
+ },
696
740
  /**
697
741
  * Gets the specified Trust List
698
742
  * @param {string} tlId
@@ -823,7 +867,6 @@ const DefaultApiFp = function (configuration) {
823
867
  exports.DefaultApiFp = DefaultApiFp;
824
868
  /**
825
869
  * DefaultApi - factory interface
826
- * @export
827
870
  */
828
871
  const DefaultApiFactory = function (configuration, basePath, axios) {
829
872
  const localVarFp = (0, exports.DefaultApiFp)(configuration);
@@ -904,6 +947,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
904
947
  tlCreate(tlPayload, options) {
905
948
  return localVarFp.tlCreate(tlPayload, options).then((request) => request(axios, basePath));
906
949
  },
950
+ /**
951
+ * Destroys the Trust List.
952
+ * @param {string} tlId
953
+ * @param {*} [options] Override http request option.
954
+ * @throws {RequiredError}
955
+ */
956
+ tlDelete(tlId, options) {
957
+ return localVarFp.tlDelete(tlId, options).then((request) => request(axios, basePath));
958
+ },
907
959
  /**
908
960
  * Gets the specified Trust List
909
961
  * @param {string} tlId
@@ -986,9 +1038,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
986
1038
  exports.DefaultApiFactory = DefaultApiFactory;
987
1039
  /**
988
1040
  * DefaultApi - object-oriented interface
989
- * @export
990
- * @class DefaultApi
991
- * @extends {BaseAPI}
992
1041
  */
993
1042
  class DefaultApi extends base_1.BaseAPI {
994
1043
  /**
@@ -997,7 +1046,6 @@ class DefaultApi extends base_1.BaseAPI {
997
1046
  * @param {DidDocumentCreatePayload} [didDocumentCreatePayload] DID Document Create Payload.
998
1047
  * @param {*} [options] Override http request option.
999
1048
  * @throws {RequiredError}
1000
- * @memberof DefaultApi
1001
1049
  */
1002
1050
  didDocumentCreate(tlId, didDocumentCreatePayload, options) {
1003
1051
  return (0, exports.DefaultApiFp)(this.configuration).didDocumentCreate(tlId, didDocumentCreatePayload, options).then((request) => request(this.axios, this.basePath));
@@ -1008,7 +1056,6 @@ class DefaultApi extends base_1.BaseAPI {
1008
1056
  * @param {string} tlrId Trust List Record Identifier
1009
1057
  * @param {*} [options] Override http request option.
1010
1058
  * @throws {RequiredError}
1011
- * @memberof DefaultApi
1012
1059
  */
1013
1060
  didGet(tlId, tlrId, options) {
1014
1061
  return (0, exports.DefaultApiFp)(this.configuration).didGet(tlId, tlrId, options).then((request) => request(this.axios, this.basePath));
@@ -1018,7 +1065,6 @@ class DefaultApi extends base_1.BaseAPI {
1018
1065
  * @param {string} tlId
1019
1066
  * @param {*} [options] Override http request option.
1020
1067
  * @throws {RequiredError}
1021
- * @memberof DefaultApi
1022
1068
  */
1023
1069
  didSuggest(tlId, options) {
1024
1070
  return (0, exports.DefaultApiFp)(this.configuration).didSuggest(tlId, options).then((request) => request(this.axios, this.basePath));
@@ -1030,7 +1076,6 @@ class DefaultApi extends base_1.BaseAPI {
1030
1076
  * @param {VerificationMethod} [verificationMethod] Verification method.
1031
1077
  * @param {*} [options] Override http request option.
1032
1078
  * @throws {RequiredError}
1033
- * @memberof DefaultApi
1034
1079
  */
1035
1080
  didVerificationMethodAdd(tlId, did, verificationMethod, options) {
1036
1081
  return (0, exports.DefaultApiFp)(this.configuration).didVerificationMethodAdd(tlId, did, verificationMethod, options).then((request) => request(this.axios, this.basePath));
@@ -1039,7 +1084,6 @@ class DefaultApi extends base_1.BaseAPI {
1039
1084
  *
1040
1085
  * @param {*} [options] Override http request option.
1041
1086
  * @throws {RequiredError}
1042
- * @memberof DefaultApi
1043
1087
  */
1044
1088
  healthCheck(options) {
1045
1089
  return (0, exports.DefaultApiFp)(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
@@ -1050,7 +1094,6 @@ class DefaultApi extends base_1.BaseAPI {
1050
1094
  * @param {OnboardingPayload} [onboardingPayload] DID onboarding init payload.
1051
1095
  * @param {*} [options] Override http request option.
1052
1096
  * @throws {RequiredError}
1053
- * @memberof DefaultApi
1054
1097
  */
1055
1098
  onboardingInit(tlId, onboardingPayload, options) {
1056
1099
  return (0, exports.DefaultApiFp)(this.configuration).onboardingInit(tlId, onboardingPayload, options).then((request) => request(this.axios, this.basePath));
@@ -1060,7 +1103,6 @@ class DefaultApi extends base_1.BaseAPI {
1060
1103
  * @param {string} verifierState Verifier state
1061
1104
  * @param {*} [options] Override http request option.
1062
1105
  * @throws {RequiredError}
1063
- * @memberof DefaultApi
1064
1106
  */
1065
1107
  onboardingStatus(verifierState, options) {
1066
1108
  return (0, exports.DefaultApiFp)(this.configuration).onboardingStatus(verifierState, options).then((request) => request(this.axios, this.basePath));
@@ -1070,17 +1112,24 @@ class DefaultApi extends base_1.BaseAPI {
1070
1112
  * @param {TlPayload} [tlPayload] Trust List create payload.
1071
1113
  * @param {*} [options] Override http request option.
1072
1114
  * @throws {RequiredError}
1073
- * @memberof DefaultApi
1074
1115
  */
1075
1116
  tlCreate(tlPayload, options) {
1076
1117
  return (0, exports.DefaultApiFp)(this.configuration).tlCreate(tlPayload, options).then((request) => request(this.axios, this.basePath));
1077
1118
  }
1119
+ /**
1120
+ * Destroys the Trust List.
1121
+ * @param {string} tlId
1122
+ * @param {*} [options] Override http request option.
1123
+ * @throws {RequiredError}
1124
+ */
1125
+ tlDelete(tlId, options) {
1126
+ return (0, exports.DefaultApiFp)(this.configuration).tlDelete(tlId, options).then((request) => request(this.axios, this.basePath));
1127
+ }
1078
1128
  /**
1079
1129
  * Gets the specified Trust List
1080
1130
  * @param {string} tlId
1081
1131
  * @param {*} [options] Override http request option.
1082
1132
  * @throws {RequiredError}
1083
- * @memberof DefaultApi
1084
1133
  */
1085
1134
  tlGet(tlId, options) {
1086
1135
  return (0, exports.DefaultApiFp)(this.configuration).tlGet(tlId, options).then((request) => request(this.axios, this.basePath));
@@ -1090,7 +1139,6 @@ class DefaultApi extends base_1.BaseAPI {
1090
1139
  * @param {string} [ownerId]
1091
1140
  * @param {*} [options] Override http request option.
1092
1141
  * @throws {RequiredError}
1093
- * @memberof DefaultApi
1094
1142
  */
1095
1143
  tlList(ownerId, options) {
1096
1144
  return (0, exports.DefaultApiFp)(this.configuration).tlList(ownerId, options).then((request) => request(this.axios, this.basePath));
@@ -1101,7 +1149,6 @@ class DefaultApi extends base_1.BaseAPI {
1101
1149
  * @param {TlPayload} [tlPayload] Trust List create payload.
1102
1150
  * @param {*} [options] Override http request option.
1103
1151
  * @throws {RequiredError}
1104
- * @memberof DefaultApi
1105
1152
  */
1106
1153
  tlPatch(tlId, tlPayload, options) {
1107
1154
  return (0, exports.DefaultApiFp)(this.configuration).tlPatch(tlId, tlPayload, options).then((request) => request(this.axios, this.basePath));
@@ -1112,7 +1159,6 @@ class DefaultApi extends base_1.BaseAPI {
1112
1159
  * @param {string} tlrId Trust List Record Identifier
1113
1160
  * @param {*} [options] Override http request option.
1114
1161
  * @throws {RequiredError}
1115
- * @memberof DefaultApi
1116
1162
  */
1117
1163
  tlrGet(tlId, tlrId, options) {
1118
1164
  return (0, exports.DefaultApiFp)(this.configuration).tlrGet(tlId, tlrId, options).then((request) => request(this.axios, this.basePath));
@@ -1122,7 +1168,6 @@ class DefaultApi extends base_1.BaseAPI {
1122
1168
  * @param {string} orgName
1123
1169
  * @param {*} [options] Override http request option.
1124
1170
  * @throws {RequiredError}
1125
- * @memberof DefaultApi
1126
1171
  */
1127
1172
  tlrSearch(orgName, options) {
1128
1173
  return (0, exports.DefaultApiFp)(this.configuration).tlrSearch(orgName, options).then((request) => request(this.axios, this.basePath));
@@ -1133,7 +1178,6 @@ class DefaultApi extends base_1.BaseAPI {
1133
1178
  * @param {string} tlrId Trust List Record Identifier
1134
1179
  * @param {*} [options] Override http request option.
1135
1180
  * @throws {RequiredError}
1136
- * @memberof DefaultApi
1137
1181
  */
1138
1182
  tlrTrustChainGet(tlId, tlrId, options) {
1139
1183
  return (0, exports.DefaultApiFp)(this.configuration).tlrTrustChainGet(tlId, tlrId, options).then((request) => request(this.axios, this.basePath));
@@ -1143,7 +1187,6 @@ class DefaultApi extends base_1.BaseAPI {
1143
1187
  * @param {string} tlId
1144
1188
  * @param {*} [options] Override http request option.
1145
1189
  * @throws {RequiredError}
1146
- * @memberof DefaultApi
1147
1190
  */
1148
1191
  tlrsGet(tlId, options) {
1149
1192
  return (0, exports.DefaultApiFp)(this.configuration).tlrsGet(tlId, options).then((request) => request(this.axios, this.basePath));
@@ -1155,7 +1198,6 @@ class DefaultApi extends base_1.BaseAPI {
1155
1198
  * @param {string} id
1156
1199
  * @param {*} [options] Override http request option.
1157
1200
  * @throws {RequiredError}
1158
- * @memberof DefaultApi
1159
1201
  */
1160
1202
  vpGet(tlId, did, id, options) {
1161
1203
  return (0, exports.DefaultApiFp)(this.configuration).vpGet(tlId, did, id, options).then((request) => request(this.axios, this.basePath));
package/base.d.ts CHANGED
@@ -12,42 +12,22 @@
12
12
  import type { Configuration } from './configuration';
13
13
  import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  export declare const BASE_PATH: string;
15
- /**
16
- *
17
- * @export
18
- */
19
15
  export declare const COLLECTION_FORMATS: {
20
16
  csv: string;
21
17
  ssv: string;
22
18
  tsv: string;
23
19
  pipes: string;
24
20
  };
25
- /**
26
- *
27
- * @export
28
- * @interface RequestArgs
29
- */
30
21
  export interface RequestArgs {
31
22
  url: string;
32
23
  options: RawAxiosRequestConfig;
33
24
  }
34
- /**
35
- *
36
- * @export
37
- * @class BaseAPI
38
- */
39
25
  export declare class BaseAPI {
40
26
  protected basePath: string;
41
27
  protected axios: AxiosInstance;
42
28
  protected configuration: Configuration | undefined;
43
29
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
30
  }
45
- /**
46
- *
47
- * @export
48
- * @class RequiredError
49
- * @extends {Error}
50
- */
51
31
  export declare class RequiredError extends Error {
52
32
  field: string;
53
33
  constructor(field: string, msg?: string);
@@ -58,9 +38,5 @@ interface ServerMap {
58
38
  description: string;
59
39
  }[];
60
40
  }
61
- /**
62
- *
63
- * @export
64
- */
65
41
  export declare const operationServerMap: ServerMap;
66
42
  export {};
package/base.js CHANGED
@@ -19,21 +19,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
20
20
  const axios_1 = __importDefault(require("axios"));
21
21
  exports.BASE_PATH = "/api/v1".replace(/\/+$/, "");
22
- /**
23
- *
24
- * @export
25
- */
26
22
  exports.COLLECTION_FORMATS = {
27
23
  csv: ",",
28
24
  ssv: " ",
29
25
  tsv: "\t",
30
26
  pipes: "|",
31
27
  };
32
- /**
33
- *
34
- * @export
35
- * @class BaseAPI
36
- */
37
28
  class BaseAPI {
38
29
  constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
39
30
  var _a;
@@ -47,12 +38,6 @@ class BaseAPI {
47
38
  }
48
39
  exports.BaseAPI = BaseAPI;
49
40
  ;
50
- /**
51
- *
52
- * @export
53
- * @class RequiredError
54
- * @extends {Error}
55
- */
56
41
  class RequiredError extends Error {
57
42
  constructor(field, msg) {
58
43
  super(msg);
@@ -61,8 +46,4 @@ class RequiredError extends Error {
61
46
  }
62
47
  }
63
48
  exports.RequiredError = RequiredError;
64
- /**
65
- *
66
- * @export
67
- */
68
49
  exports.operationServerMap = {};
package/common.d.ts CHANGED
@@ -12,54 +12,17 @@
12
12
  import type { Configuration } from "./configuration";
13
13
  import type { RequestArgs } from "./base";
14
14
  import type { AxiosInstance, AxiosResponse } from 'axios';
15
- /**
16
- *
17
- * @export
18
- */
19
15
  export declare const DUMMY_BASE_URL = "https://example.com";
20
16
  /**
21
17
  *
22
18
  * @throws {RequiredError}
23
- * @export
24
19
  */
25
20
  export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
- /**
27
- *
28
- * @export
29
- */
30
21
  export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
- /**
32
- *
33
- * @export
34
- */
35
22
  export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
- /**
37
- *
38
- * @export
39
- */
40
23
  export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
- /**
42
- *
43
- * @export
44
- */
45
24
  export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
- /**
47
- *
48
- * @export
49
- */
50
25
  export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
- /**
52
- *
53
- * @export
54
- */
55
26
  export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
- /**
57
- *
58
- * @export
59
- */
60
27
  export declare const toPathString: (url: URL) => string;
61
- /**
62
- *
63
- * @export
64
- */
65
28
  export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
package/common.js CHANGED
@@ -24,15 +24,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
26
26
  const base_1 = require("./base");
27
- /**
28
- *
29
- * @export
30
- */
31
27
  exports.DUMMY_BASE_URL = 'https://example.com';
32
28
  /**
33
29
  *
34
30
  * @throws {RequiredError}
35
- * @export
36
31
  */
37
32
  const assertParamExists = function (functionName, paramName, paramValue) {
38
33
  if (paramValue === null || paramValue === undefined) {
@@ -40,10 +35,6 @@ const assertParamExists = function (functionName, paramName, paramValue) {
40
35
  }
41
36
  };
42
37
  exports.assertParamExists = assertParamExists;
43
- /**
44
- *
45
- * @export
46
- */
47
38
  const setApiKeyToObject = function (object, keyParamName, configuration) {
48
39
  return __awaiter(this, void 0, void 0, function* () {
49
40
  if (configuration && configuration.apiKey) {
@@ -55,20 +46,12 @@ const setApiKeyToObject = function (object, keyParamName, configuration) {
55
46
  });
56
47
  };
57
48
  exports.setApiKeyToObject = setApiKeyToObject;
58
- /**
59
- *
60
- * @export
61
- */
62
49
  const setBasicAuthToObject = function (object, configuration) {
63
50
  if (configuration && (configuration.username || configuration.password)) {
64
51
  object["auth"] = { username: configuration.username, password: configuration.password };
65
52
  }
66
53
  };
67
54
  exports.setBasicAuthToObject = setBasicAuthToObject;
68
- /**
69
- *
70
- * @export
71
- */
72
55
  const setBearerAuthToObject = function (object, configuration) {
73
56
  return __awaiter(this, void 0, void 0, function* () {
74
57
  if (configuration && configuration.accessToken) {
@@ -80,10 +63,6 @@ const setBearerAuthToObject = function (object, configuration) {
80
63
  });
81
64
  };
82
65
  exports.setBearerAuthToObject = setBearerAuthToObject;
83
- /**
84
- *
85
- * @export
86
- */
87
66
  const setOAuthToObject = function (object, name, scopes, configuration) {
88
67
  return __awaiter(this, void 0, void 0, function* () {
89
68
  if (configuration && configuration.accessToken) {
@@ -115,20 +94,12 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
115
94
  }
116
95
  }
117
96
  }
118
- /**
119
- *
120
- * @export
121
- */
122
97
  const setSearchParams = function (url, ...objects) {
123
98
  const searchParams = new URLSearchParams(url.search);
124
99
  setFlattenedQueryParams(searchParams, objects);
125
100
  url.search = searchParams.toString();
126
101
  };
127
102
  exports.setSearchParams = setSearchParams;
128
- /**
129
- *
130
- * @export
131
- */
132
103
  const serializeDataIfNeeded = function (value, requestOptions, configuration) {
133
104
  const nonString = typeof value !== 'string';
134
105
  const needsSerialization = nonString && configuration && configuration.isJsonMime
@@ -139,18 +110,10 @@ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
139
110
  : (value || "");
140
111
  };
141
112
  exports.serializeDataIfNeeded = serializeDataIfNeeded;
142
- /**
143
- *
144
- * @export
145
- */
146
113
  const toPathString = function (url) {
147
114
  return url.pathname + url.search + url.hash;
148
115
  };
149
116
  exports.toPathString = toPathString;
150
- /**
151
- *
152
- * @export
153
- */
154
117
  const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
155
118
  return (axios = globalAxios, basePath = BASE_PATH) => {
156
119
  var _a;
@@ -23,49 +23,32 @@ export declare class Configuration {
23
23
  /**
24
24
  * parameter for apiKey security
25
25
  * @param name security name
26
- * @memberof Configuration
27
26
  */
28
27
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
29
28
  /**
30
29
  * parameter for basic security
31
- *
32
- * @type {string}
33
- * @memberof Configuration
34
30
  */
35
31
  username?: string;
36
32
  /**
37
33
  * parameter for basic security
38
- *
39
- * @type {string}
40
- * @memberof Configuration
41
34
  */
42
35
  password?: string;
43
36
  /**
44
37
  * parameter for oauth2 security
45
38
  * @param name security name
46
39
  * @param scopes oauth2 scope
47
- * @memberof Configuration
48
40
  */
49
41
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
50
42
  /**
51
43
  * override base path
52
- *
53
- * @type {string}
54
- * @memberof Configuration
55
44
  */
56
45
  basePath?: string;
57
46
  /**
58
47
  * override server index
59
- *
60
- * @type {number}
61
- * @memberof Configuration
62
48
  */
63
49
  serverIndex?: number;
64
50
  /**
65
51
  * base options for axios calls
66
- *
67
- * @type {any}
68
- * @memberof Configuration
69
52
  */
70
53
  baseOptions?: any;
71
54
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idunion/tl-sdk",
3
3
  "private": false,
4
- "version": "0.0.29",
4
+ "version": "0.0.31",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {