@idunion/tl-sdk 0.0.5 → 0.0.7

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 +15 -20
  2. package/api.js +2 -2
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -13,11 +13,6 @@ import type { Configuration } from './configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import type { RequestArgs } from './base';
15
15
  import { BaseAPI } from './base';
16
- /**
17
- * @type CapabilityInvocationInner
18
- * @export
19
- */
20
- export type CapabilityInvocationInner = VerificationMethod | string;
21
16
  /**
22
17
  *
23
18
  * @export
@@ -404,28 +399,28 @@ export interface DidDocument {
404
399
  'verificationMethod'?: Array<VerificationMethod>;
405
400
  /**
406
401
  * 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
407
- * @type {Array<CapabilityInvocationInner>}
402
+ * @type {Array<string>}
408
403
  * @memberof DidDocument
409
404
  */
410
- 'capabilityInvocation'?: Array<CapabilityInvocationInner>;
405
+ 'capabilityInvocation'?: Array<string>;
411
406
  /**
412
407
  * 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
413
- * @type {Array<CapabilityInvocationInner>}
408
+ * @type {Array<string>}
414
409
  * @memberof DidDocument
415
410
  */
416
- 'authentication'?: Array<CapabilityInvocationInner>;
411
+ 'authentication'?: Array<string>;
417
412
  /**
418
413
  * 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
419
- * @type {Array<CapabilityInvocationInner>}
414
+ * @type {Array<string>}
420
415
  * @memberof DidDocument
421
416
  */
422
- 'assertionMethod'?: Array<CapabilityInvocationInner>;
417
+ 'assertionMethod'?: Array<string>;
423
418
  /**
424
419
  *
425
- * @type {Services}
420
+ * @type {Array<ServiceItem>}
426
421
  * @memberof DidDocument
427
422
  */
428
- 'services'?: Services;
423
+ 'service'?: Array<ServiceItem>;
429
424
  }
430
425
  /**
431
426
  *
@@ -701,27 +696,27 @@ export interface RefreshServiceItem {
701
696
  /**
702
697
  * 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
703
698
  * @export
704
- * @interface Services
699
+ * @interface ServiceItem
705
700
  */
706
- export interface Services {
701
+ export interface ServiceItem {
707
702
  /**
708
703
  *
709
704
  * @type {string}
710
- * @memberof Services
705
+ * @memberof ServiceItem
711
706
  */
712
707
  'id': string;
713
708
  /**
714
709
  *
715
710
  * @type {string}
716
- * @memberof Services
711
+ * @memberof ServiceItem
717
712
  */
718
713
  'type': string;
719
714
  /**
720
715
  * 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
721
- * @type {Array<string>}
722
- * @memberof Services
716
+ * @type {string}
717
+ * @memberof ServiceItem
723
718
  */
724
- 'serviceEndpoint': Array<string>;
719
+ 'serviceEndpoint': string;
725
720
  }
726
721
  /**
727
722
  * Policy under which the creator issued the credential or presentation https://www.w3.org/TR/vc-data-model-2.0/#defn-termsOfUse
package/api.js CHANGED
@@ -282,7 +282,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
282
282
  * @throws {RequiredError}
283
283
  */
284
284
  tlCreate: (tlPayload_1, ...args_1) => __awaiter(this, [tlPayload_1, ...args_1], void 0, function* (tlPayload, options = {}) {
285
- const localVarPath = `/`;
285
+ const localVarPath = `/tl`;
286
286
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
287
287
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
288
288
  let baseOptions;
@@ -342,7 +342,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
342
342
  * @throws {RequiredError}
343
343
  */
344
344
  tlList: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
345
- const localVarPath = `/`;
345
+ const localVarPath = `/tl`;
346
346
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
347
347
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
348
348
  let baseOptions;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idunion/tl-sdk",
3
3
  "private": false,
4
- "version": "0.0.5",
4
+ "version": "0.0.7",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {