@idunion/tl-sdk 0.0.26 → 0.0.27

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.
Files changed (3) hide show
  1. package/api.d.ts +71 -482
  2. package/api.js +70 -12
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -14,358 +14,29 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import type { RequestArgs } from './base';
15
15
  import { BaseAPI } from './base';
16
16
  /**
17
- *
18
- * @export
19
- * @interface Credential
20
- */
21
- export interface Credential {
22
- [key: string]: any;
23
- /**
24
- * The value of the @context property MUST be an ordered set where the first item is a URL with the value https://www.w3.org/ns/credentials/v2. Subsequent items in the array MUST express context information and be composed of any combination of URLs or objects. It is RECOMMENDED that each URL in the @context be one which, if dereferenced, results in a document containing machine-readable information about the @context. https://www.w3.org/TR/vc-data-model-2.0/#contexts
25
- * @type {Array<string>}
26
- * @memberof Credential
27
- */
28
- '@context'?: Array<string>;
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof Credential
33
- */
34
- 'id'?: string;
35
- /**
36
- * The value of the type property MUST be, or map to (through interpretation of the @context property), one or more URLs. If more than one URL is provided, the URLs MUST be interpreted as an unordered set. Syntactic conveniences SHOULD be used to ease developer usage. Such conveniences might include JSON-LD terms. It is RECOMMENDED that each URL in the type be one which, if dereferenced, results in a document containing machine-readable information about the type. https://www.w3.org/TR/vc-data-model-2.0/#types
37
- * @type {Array<string>}
38
- * @memberof Credential
39
- */
40
- 'type'?: Array<string>;
41
- /**
42
- *
43
- * @type {CredentialSchema}
44
- * @memberof Credential
45
- */
46
- 'credentialSchema'?: CredentialSchema;
47
- /**
48
- *
49
- * @type {CredentialSubject}
50
- * @memberof Credential
51
- */
52
- 'credentialSubject'?: CredentialSubject;
53
- /**
54
- *
55
- * @type {CredentialStatus}
56
- * @memberof Credential
57
- */
58
- 'credentialStatus'?: CredentialStatus;
59
- /**
60
- *
61
- * @type {Array<EvidenceItem>}
62
- * @memberof Credential
63
- */
64
- 'evidence'?: Array<EvidenceItem>;
65
- /**
66
- * Date Time Stamp string value representing the date and time the credential becomes valid https://www.w3.org/TR/vc-data-model-2.0/#defn-validFrom
67
- * @type {string}
68
- * @memberof Credential
69
- */
70
- 'validFrom'?: string;
71
- /**
72
- * Date Time Stamp string value representing the date and time the credential ceases to be valid https://www.w3.org/TR/vc-data-model-2.0/#defn-validUntil
73
- * @type {string}
74
- * @memberof Credential
75
- */
76
- 'validUntil'?: string;
77
- /**
78
- * EBSI specific field defining the date of issuance.
79
- * @type {string}
80
- * @memberof Credential
81
- */
82
- 'issued'?: string;
83
- /**
84
- * EBSI specific field defining the date of issuance.
85
- * @type {string}
86
- * @memberof Credential
87
- */
88
- 'issuanceDate'?: string;
89
- /**
90
- * EBSI specific field defining the date of expiration.
91
- * @type {string}
92
- * @memberof Credential
93
- */
94
- 'expirationDate'?: string;
95
- /**
96
- * Either a URL or an object containing an id property https://www.w3.org/TR/vc-data-model-2.0/#defn-holder
97
- * @type {string}
98
- * @memberof Credential
99
- */
100
- 'holder'?: string;
101
- /**
102
- * Either a URL or an object containing an id property https://www.w3.org/TR/vc-data-model-2.0/#defn-issuer
103
- * @type {string}
104
- * @memberof Credential
105
- */
106
- 'issuer'?: string;
107
- /**
108
- * Array of specific VC field disclosures
109
- * @type {Array<string>}
110
- * @memberof Credential
111
- */
112
- '_sd'?: Array<string>;
113
- /**
114
- * Algorithm used for hashing disclosure digests
115
- * @type {string}
116
- * @memberof Credential
117
- */
118
- '_sd_alg'?: string;
119
- /**
120
- *
121
- * @type {RefreshService}
122
- * @memberof Credential
123
- */
124
- 'refreshService'?: RefreshService;
125
- /**
126
- *
127
- * @type {TermsOfUse}
128
- * @memberof Credential
129
- */
130
- 'termsOfUse'?: TermsOfUse;
131
- /**
132
- *
133
- * @type {Proof}
134
- * @memberof Credential
135
- */
136
- 'proof'?: Proof;
137
- }
138
- /**
139
- *
140
- * @export
141
- * @interface CredentialIdObject
142
- */
143
- export interface CredentialIdObject {
144
- /**
145
- *
146
- * @type {string}
147
- * @memberof CredentialIdObject
148
- */
149
- 'id': string;
150
- }
151
- /**
152
- * Any Credential related accompanying key, value pairs that are not part of the Issued Credential
153
- * @export
154
- * @interface CredentialMetadata
155
- */
156
- export interface CredentialMetadata {
157
- [key: string]: any;
158
- /**
159
- *
160
- * @type {string}
161
- * @memberof CredentialMetadata
162
- */
163
- 'id': string;
164
- /**
165
- *
166
- * @type {string}
167
- * @memberof CredentialMetadata
168
- */
169
- 'walletId': string;
170
- /**
171
- *
172
- * @type {string}
173
- * @memberof CredentialMetadata
174
- */
175
- 'ownerId': string;
176
- /**
177
- *
178
- * @type {string}
179
- * @memberof CredentialMetadata
180
- */
181
- 'name': string;
182
- /**
183
- *
184
- * @type {string}
185
- * @memberof CredentialMetadata
186
- */
187
- 'interaction': CredentialMetadataInteractionEnum;
188
- /**
189
- *
190
- * @type {string}
191
- * @memberof CredentialMetadata
192
- */
193
- 'message'?: string;
194
- /**
195
- *
196
- * @type {string}
197
- * @memberof CredentialMetadata
198
- */
199
- 'type': string;
200
- /**
201
- * In case of issued credential this is the DID of the holder wallet
202
- * @type {string}
203
- * @memberof CredentialMetadata
204
- */
205
- 'offeredToClientId'?: string;
206
- /**
207
- *
208
- * @type {string}
209
- * @memberof CredentialMetadata
210
- */
211
- 'created': string;
212
- /**
213
- *
214
- * @type {string}
215
- * @memberof CredentialMetadata
216
- */
217
- 'updated': string;
218
- /**
219
- *
220
- * @type {string}
221
- * @memberof CredentialMetadata
222
- */
223
- 'status': CredentialMetadataStatusEnum;
224
- /**
225
- *
226
- * @type {Array<string>}
227
- * @memberof CredentialMetadata
228
- */
229
- 'disclosableFields'?: Array<string>;
230
- /**
231
- * Array of objects, where each object contains display properties of a Credential Issuer for a certain language.
232
- * @type {Array<IssuerDisplayItem>}
233
- * @memberof CredentialMetadata
234
- */
235
- 'issuerDisplay'?: Array<IssuerDisplayItem>;
236
- }
237
- export declare const CredentialMetadataInteractionEnum: {
238
- readonly Issuance: "issuance";
239
- readonly Receive: "receive";
240
- readonly StatusList: "statusList";
241
- readonly TaoCredentials: "taoCredentials";
242
- };
243
- export type CredentialMetadataInteractionEnum = typeof CredentialMetadataInteractionEnum[keyof typeof CredentialMetadataInteractionEnum];
244
- export declare const CredentialMetadataStatusEnum: {
245
- readonly Draft: "draft";
246
- readonly Valid: "valid";
247
- readonly Invalid: "invalid";
248
- };
249
- export type CredentialMetadataStatusEnum = typeof CredentialMetadataStatusEnum[keyof typeof CredentialMetadataStatusEnum];
250
- /**
251
- * @type CredentialSchema
252
- * One or more data schemas that provide verifiers with enough information to determine if the provided data conforms to the provided schema(s) https://www.w3.org/TR/vc-data-model-2.0/#defn-credentialSchema
17
+ * Defines accreditations which were given to specific holder
253
18
  * @export
19
+ * @interface AccreditedFor
254
20
  */
255
- export type CredentialSchema = Array<CredentialSchemaItem> | CredentialSchemaItem;
256
- /**
257
- *
258
- * @export
259
- * @interface CredentialSchemaItem
260
- */
261
- export interface CredentialSchemaItem {
262
- [key: string]: any;
263
- /**
264
- * A URL identifying the schema file
265
- * @type {string}
266
- * @memberof CredentialSchemaItem
267
- */
268
- 'id': string;
269
- /**
270
- *
271
- * @type {string}
272
- * @memberof CredentialSchemaItem
273
- */
274
- 'name'?: string;
275
- /**
276
- * Defines the schema type, for example, JsonSchema
277
- * @type {string}
278
- * @memberof CredentialSchemaItem
279
- */
280
- 'type': string;
281
- }
282
- /**
283
- * It is expected that the value will provide enough information to determine the current status of the credential and that machine readable information will be retrievable from the URL https://www.w3.org/TR/vc-data-model-2.0/#defn-credentialStatus
284
- * @export
285
- * @interface CredentialStatus
286
- */
287
- export interface CredentialStatus {
288
- /**
289
- *
290
- * @type {string}
291
- * @memberof CredentialStatus
292
- */
293
- 'id': string;
294
- /**
295
- *
296
- * @type {string}
297
- * @memberof CredentialStatus
298
- */
299
- 'type': string;
300
- /**
301
- *
302
- * @type {string}
303
- * @memberof CredentialStatus
304
- */
305
- 'statusPurpose'?: string;
21
+ export interface AccreditedFor {
306
22
  /**
307
- *
23
+ * Jurisdiction limitation based on geographical region defined by https://publications.europa.eu/resource/authority/atu
308
24
  * @type {string}
309
- * @memberof CredentialStatus
25
+ * @memberof AccreditedFor
310
26
  */
311
- 'statusListIndex'?: string;
27
+ 'limitJurisdiction'?: string;
312
28
  /**
313
- *
29
+ * Link to a schema for which the accreditation is given
314
30
  * @type {string}
315
- * @memberof CredentialStatus
316
- */
317
- 'statusListCredential'?: string;
318
- }
319
- /**
320
- * @type CredentialSubject
321
- * Set of objects that MUST contain one or more claims that are each related to a subject of the verifiable credential https://www.w3.org/TR/vc-data-model-2.0/#defn-credentialSubject. Currently we support only one subject in the verifiable credential because there is no consensus about \"vc-jwt\" encoding of multi-subject verifiable credentials
322
- * @export
323
- */
324
- export type CredentialSubject = Array<CredentialSubjectItem> | CredentialSubjectItem;
325
- /**
326
- *
327
- * @export
328
- * @interface CredentialSubjectItem
329
- */
330
- export interface CredentialSubjectItem {
331
- [key: string]: any;
332
- /**
333
- *
334
- * @type {string}
335
- * @memberof CredentialSubjectItem
336
- */
337
- 'id'?: string;
338
- /**
339
- * Array of specific VC subject field disclosures
340
- * @type {Array<string>}
341
- * @memberof CredentialSubjectItem
31
+ * @memberof AccreditedFor
342
32
  */
343
- '_sd'?: Array<string>;
344
- }
345
- /**
346
- * The wrapper contains Verifiable Credential in both, the Credential and as Base64 signed format alongside with metadata.
347
- * @export
348
- * @interface CredentialWrapper
349
- */
350
- export interface CredentialWrapper {
33
+ 'schemaId'?: string;
351
34
  /**
352
- *
353
- * @type {CredentialMetadata}
354
- * @memberof CredentialWrapper
355
- */
356
- 'metadata': CredentialMetadata;
357
- /**
358
- *
359
- * @type {Credential}
360
- * @memberof CredentialWrapper
361
- */
362
- 'vc': Credential;
363
- /**
364
- * The base64 encoded Verifiable Credential in its final signed form
35
+ * Comma separated VC type for which the accreditation is given
365
36
  * @type {string}
366
- * @memberof CredentialWrapper
37
+ * @memberof AccreditedFor
367
38
  */
368
- 'signedVc'?: string;
39
+ 'types'?: string;
369
40
  }
370
41
  /**
371
42
  *
@@ -454,26 +125,6 @@ export interface DidDocumentList {
454
125
  */
455
126
  'items'?: Array<string>;
456
127
  }
457
- /**
458
- * A scheme providing enough information for a verifier to determine whether the evidence gathered by the issuer meets its confidence requirements for relying on the credential
459
- * @export
460
- * @interface EvidenceItem
461
- */
462
- export interface EvidenceItem {
463
- [key: string]: any;
464
- /**
465
- * URL that points to where more information about this instance of evidence can be found
466
- * @type {string}
467
- * @memberof EvidenceItem
468
- */
469
- 'id'?: string;
470
- /**
471
- * The precise content of each evidence scheme is determined by the specific evidence type definition.
472
- * @type {Array<string>}
473
- * @memberof EvidenceItem
474
- */
475
- 'type': Array<string>;
476
- }
477
128
  /**
478
129
  * Health status of the system
479
130
  * @export
@@ -494,67 +145,42 @@ export declare const HealthStatusStatusEnum: {
494
145
  };
495
146
  export type HealthStatusStatusEnum = typeof HealthStatusStatusEnum[keyof typeof HealthStatusStatusEnum];
496
147
  /**
497
- *
148
+ * Common error message
498
149
  * @export
499
- * @interface IssuerDisplayItem
150
+ * @interface ModelError
500
151
  */
501
- export interface IssuerDisplayItem {
152
+ export interface ModelError {
502
153
  /**
503
154
  *
504
155
  * @type {string}
505
- * @memberof IssuerDisplayItem
156
+ * @memberof ModelError
506
157
  */
507
- 'name'?: string;
158
+ 'error': string;
508
159
  /**
509
160
  *
510
161
  * @type {string}
511
- * @memberof IssuerDisplayItem
512
- */
513
- 'locale'?: string;
514
- /**
515
- *
516
- * @type {IssuerLogo}
517
- * @memberof IssuerDisplayItem
162
+ * @memberof ModelError
518
163
  */
519
- 'logo'?: IssuerLogo;
164
+ 'message': string;
520
165
  }
521
166
  /**
522
167
  *
523
168
  * @export
524
- * @interface IssuerLogo
169
+ * @interface OnboardingCredential
525
170
  */
526
- export interface IssuerLogo {
171
+ export interface OnboardingCredential {
527
172
  /**
528
173
  *
529
174
  * @type {string}
530
- * @memberof IssuerLogo
175
+ * @memberof OnboardingCredential
531
176
  */
532
- 'uri'?: string;
177
+ 'link': string;
533
178
  /**
534
- *
179
+ * DID or x509
535
180
  * @type {string}
536
- * @memberof IssuerLogo
181
+ * @memberof OnboardingCredential
537
182
  */
538
- 'alt_text'?: string;
539
- }
540
- /**
541
- * Common error message
542
- * @export
543
- * @interface ModelError
544
- */
545
- export interface ModelError {
546
- /**
547
- *
548
- * @type {string}
549
- * @memberof ModelError
550
- */
551
- 'error': string;
552
- /**
553
- *
554
- * @type {string}
555
- * @memberof ModelError
556
- */
557
- 'message': string;
183
+ 'issuer': string;
558
184
  }
559
185
  /**
560
186
  *
@@ -631,68 +257,6 @@ export declare const OnboardingStatusStatusEnum: {
631
257
  readonly Error: "error";
632
258
  };
633
259
  export type OnboardingStatusStatusEnum = typeof OnboardingStatusStatusEnum[keyof typeof OnboardingStatusStatusEnum];
634
- /**
635
- * One or more cryptographic proofs that can be used to detect tampering and verify the authorship of a verifiable credential or verifiable presentation https://www.w3.org/TR/vc-data-model-2.0/#securing-verifiable-credentials
636
- * @export
637
- * @interface Proof
638
- */
639
- export interface Proof {
640
- /**
641
- *
642
- * @type {string}
643
- * @memberof Proof
644
- */
645
- 'type': string;
646
- /**
647
- *
648
- * @type {string}
649
- * @memberof Proof
650
- */
651
- 'created': string;
652
- /**
653
- *
654
- * @type {string}
655
- * @memberof Proof
656
- */
657
- 'verificationMethod': string;
658
- /**
659
- *
660
- * @type {string}
661
- * @memberof Proof
662
- */
663
- 'proofPurpose': string;
664
- /**
665
- *
666
- * @type {string}
667
- * @memberof Proof
668
- */
669
- 'proofValue'?: string;
670
- }
671
- /**
672
- * @type RefreshService
673
- * A refresh service is a mechanism that can be utilized by software agents to retrieve an updated copy of a Verifiable Credential https://www.w3.org/TR/vc-data-model-2.0/#defn-refreshService
674
- * @export
675
- */
676
- export type RefreshService = Array<RefreshServiceItem> | RefreshServiceItem;
677
- /**
678
- *
679
- * @export
680
- * @interface RefreshServiceItem
681
- */
682
- export interface RefreshServiceItem {
683
- /**
684
- * The URL of the service
685
- * @type {string}
686
- * @memberof RefreshServiceItem
687
- */
688
- 'id': string;
689
- /**
690
- *
691
- * @type {string}
692
- * @memberof RefreshServiceItem
693
- */
694
- 'type': string;
695
- }
696
260
  /**
697
261
  * 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
698
262
  * @export
@@ -718,26 +282,6 @@ export interface ServiceItem {
718
282
  */
719
283
  'serviceEndpoint': string;
720
284
  }
721
- /**
722
- * Policy under which the creator issued the credential or presentation https://www.w3.org/TR/vc-data-model-2.0/#defn-termsOfUse
723
- * @export
724
- * @interface TermsOfUse
725
- */
726
- export interface TermsOfUse {
727
- [key: string]: any;
728
- /**
729
- *
730
- * @type {string}
731
- * @memberof TermsOfUse
732
- */
733
- 'id'?: string;
734
- /**
735
- *
736
- * @type {string}
737
- * @memberof TermsOfUse
738
- */
739
- 'type': string;
740
- }
741
285
  /**
742
286
  * Trust List meta info
743
287
  * @export
@@ -867,6 +411,18 @@ export interface Tlr {
867
411
  * @memberof Tlr
868
412
  */
869
413
  'status': TlrStatusEnum;
414
+ /**
415
+ *
416
+ * @type {Array<AccreditedFor>}
417
+ * @memberof Tlr
418
+ */
419
+ 'accreditedFor'?: Array<AccreditedFor>;
420
+ /**
421
+ *
422
+ * @type {Array<OnboardingCredential>}
423
+ * @memberof Tlr
424
+ */
425
+ 'onboardingCredentials'?: Array<OnboardingCredential>;
870
426
  }
871
427
  export declare const TlrStatusEnum: {
872
428
  readonly Unverified: "unverified";
@@ -1028,6 +584,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1028
584
  * @throws {RequiredError}
1029
585
  */
1030
586
  tlrSearch: (orgName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
587
+ /**
588
+ * Retrieves a specific Trust List record
589
+ * @param {string} tlId Trust List Identifier
590
+ * @param {string} tlrId Trust List Record Identifier
591
+ * @param {*} [options] Override http request option.
592
+ * @throws {RequiredError}
593
+ */
594
+ tlrTrustChainGet: (tlId: string, tlrId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1031
595
  /**
1032
596
  * Retrieves a list of Trust List records.
1033
597
  * @param {string} tlId
@@ -1147,6 +711,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1147
711
  * @throws {RequiredError}
1148
712
  */
1149
713
  tlrSearch(orgName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TlrList>>;
714
+ /**
715
+ * Retrieves a specific Trust List record
716
+ * @param {string} tlId Trust List Identifier
717
+ * @param {string} tlrId Trust List Record Identifier
718
+ * @param {*} [options] Override http request option.
719
+ * @throws {RequiredError}
720
+ */
721
+ tlrTrustChainGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tlr>>;
1150
722
  /**
1151
723
  * Retrieves a list of Trust List records.
1152
724
  * @param {string} tlId
@@ -1266,6 +838,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1266
838
  * @throws {RequiredError}
1267
839
  */
1268
840
  tlrSearch(orgName: string, options?: RawAxiosRequestConfig): AxiosPromise<TlrList>;
841
+ /**
842
+ * Retrieves a specific Trust List record
843
+ * @param {string} tlId Trust List Identifier
844
+ * @param {string} tlrId Trust List Record Identifier
845
+ * @param {*} [options] Override http request option.
846
+ * @throws {RequiredError}
847
+ */
848
+ tlrTrustChainGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): AxiosPromise<Tlr>;
1269
849
  /**
1270
850
  * Retrieves a list of Trust List records.
1271
851
  * @param {string} tlId
@@ -1400,6 +980,15 @@ export declare class DefaultApi extends BaseAPI {
1400
980
  * @memberof DefaultApi
1401
981
  */
1402
982
  tlrSearch(orgName: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TlrList, any>>;
983
+ /**
984
+ * Retrieves a specific Trust List record
985
+ * @param {string} tlId Trust List Identifier
986
+ * @param {string} tlrId Trust List Record Identifier
987
+ * @param {*} [options] Override http request option.
988
+ * @throws {RequiredError}
989
+ * @memberof DefaultApi
990
+ */
991
+ tlrTrustChainGet(tlId: string, tlrId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tlr, any>>;
1403
992
  /**
1404
993
  * Retrieves a list of Trust List records.
1405
994
  * @param {string} tlId
package/api.js CHANGED
@@ -25,24 +25,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.TlrStatusEnum = exports.OnboardingStatusStatusEnum = exports.HealthStatusStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = void 0;
28
+ exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.TlrStatusEnum = exports.OnboardingStatusStatusEnum = exports.HealthStatusStatusEnum = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
32
32
  const common_1 = require("./common");
33
33
  // @ts-ignore
34
34
  const base_1 = require("./base");
35
- exports.CredentialMetadataInteractionEnum = {
36
- Issuance: 'issuance',
37
- Receive: 'receive',
38
- StatusList: 'statusList',
39
- TaoCredentials: 'taoCredentials'
40
- };
41
- exports.CredentialMetadataStatusEnum = {
42
- Draft: 'draft',
43
- Valid: 'valid',
44
- Invalid: 'invalid'
45
- };
46
35
  exports.HealthStatusStatusEnum = {
47
36
  Ok: 'ok',
48
37
  Limited: 'limited',
@@ -468,6 +457,38 @@ const DefaultApiAxiosParamCreator = function (configuration) {
468
457
  options: localVarRequestOptions,
469
458
  };
470
459
  }),
460
+ /**
461
+ * Retrieves a specific Trust List record
462
+ * @param {string} tlId Trust List Identifier
463
+ * @param {string} tlrId Trust List Record Identifier
464
+ * @param {*} [options] Override http request option.
465
+ * @throws {RequiredError}
466
+ */
467
+ tlrTrustChainGet: (tlId_1, tlrId_1, ...args_1) => __awaiter(this, [tlId_1, tlrId_1, ...args_1], void 0, function* (tlId, tlrId, options = {}) {
468
+ // verify required parameter 'tlId' is not null or undefined
469
+ (0, common_1.assertParamExists)('tlrTrustChainGet', 'tlId', tlId);
470
+ // verify required parameter 'tlrId' is not null or undefined
471
+ (0, common_1.assertParamExists)('tlrTrustChainGet', 'tlrId', tlrId);
472
+ const localVarPath = `/{tl_id}/{tlr_id}/trust-chain`
473
+ .replace(`{${"tl_id"}}`, encodeURIComponent(String(tlId)))
474
+ .replace(`{${"tlr_id"}}`, encodeURIComponent(String(tlrId)));
475
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
476
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
477
+ let baseOptions;
478
+ if (configuration) {
479
+ baseOptions = configuration.baseOptions;
480
+ }
481
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
482
+ const localVarHeaderParameter = {};
483
+ const localVarQueryParameter = {};
484
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
485
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
486
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
487
+ return {
488
+ url: (0, common_1.toPathString)(localVarUrlObj),
489
+ options: localVarRequestOptions,
490
+ };
491
+ }),
471
492
  /**
472
493
  * Retrieves a list of Trust List records.
473
494
  * @param {string} tlId
@@ -749,6 +770,22 @@ const DefaultApiFp = function (configuration) {
749
770
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
750
771
  });
751
772
  },
773
+ /**
774
+ * Retrieves a specific Trust List record
775
+ * @param {string} tlId Trust List Identifier
776
+ * @param {string} tlrId Trust List Record Identifier
777
+ * @param {*} [options] Override http request option.
778
+ * @throws {RequiredError}
779
+ */
780
+ tlrTrustChainGet(tlId, tlrId, options) {
781
+ return __awaiter(this, void 0, void 0, function* () {
782
+ var _a, _b, _c;
783
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tlrTrustChainGet(tlId, tlrId, options);
784
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
785
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tlrTrustChainGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
786
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
787
+ });
788
+ },
752
789
  /**
753
790
  * Retrieves a list of Trust List records.
754
791
  * @param {string} tlId
@@ -914,6 +951,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
914
951
  tlrSearch(orgName, options) {
915
952
  return localVarFp.tlrSearch(orgName, options).then((request) => request(axios, basePath));
916
953
  },
954
+ /**
955
+ * Retrieves a specific Trust List record
956
+ * @param {string} tlId Trust List Identifier
957
+ * @param {string} tlrId Trust List Record Identifier
958
+ * @param {*} [options] Override http request option.
959
+ * @throws {RequiredError}
960
+ */
961
+ tlrTrustChainGet(tlId, tlrId, options) {
962
+ return localVarFp.tlrTrustChainGet(tlId, tlrId, options).then((request) => request(axios, basePath));
963
+ },
917
964
  /**
918
965
  * Retrieves a list of Trust List records.
919
966
  * @param {string} tlId
@@ -1080,6 +1127,17 @@ class DefaultApi extends base_1.BaseAPI {
1080
1127
  tlrSearch(orgName, options) {
1081
1128
  return (0, exports.DefaultApiFp)(this.configuration).tlrSearch(orgName, options).then((request) => request(this.axios, this.basePath));
1082
1129
  }
1130
+ /**
1131
+ * Retrieves a specific Trust List record
1132
+ * @param {string} tlId Trust List Identifier
1133
+ * @param {string} tlrId Trust List Record Identifier
1134
+ * @param {*} [options] Override http request option.
1135
+ * @throws {RequiredError}
1136
+ * @memberof DefaultApi
1137
+ */
1138
+ tlrTrustChainGet(tlId, tlrId, options) {
1139
+ return (0, exports.DefaultApiFp)(this.configuration).tlrTrustChainGet(tlId, tlrId, options).then((request) => request(this.axios, this.basePath));
1140
+ }
1083
1141
  /**
1084
1142
  * Retrieves a list of Trust List records.
1085
1143
  * @param {string} tlId
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idunion/tl-sdk",
3
3
  "private": false,
4
- "version": "0.0.26",
4
+ "version": "0.0.27",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {