@meeco/svx-api-sdk 1.0.0-stage.20231211153548.58a6d84 → 1.0.0-stage.20231218095603.d71b65e

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 (58) hide show
  1. package/.openapi-generator/FILES +4 -1
  2. package/lib/esm/apis/SharesApi.js +4 -4
  3. package/lib/esm/apis/VerifiableCredentialsApi.js +2 -2
  4. package/lib/esm/models/{VCGenerateCredentialDtoCnf.js → VCClaimsDto.js} +12 -9
  5. package/lib/esm/models/VCCredentialVerificationResultResponseDto.js +2 -1
  6. package/lib/esm/models/VCFieldsDto.js +3 -2
  7. package/lib/esm/models/VCFieldsDtoFilter.js +48 -0
  8. package/lib/esm/models/VCFilterDto.js +48 -0
  9. package/lib/esm/models/VCGenerateCredentialDto.js +5 -5
  10. package/lib/esm/models/VCGenerateCredentialDtoClaims.js +40 -0
  11. package/lib/esm/models/VCIdTokenVerificationResultResponseDto.js +2 -1
  12. package/lib/esm/models/VCOldPresentationRequestResponseVerificationResultResponseDto.js +2 -1
  13. package/lib/esm/models/VCPresentationRequestResponseVerificationOptionsDto.js +2 -1
  14. package/lib/esm/models/VCPresentationRequestResponseVerificationResultResponseDto.js +2 -1
  15. package/lib/esm/models/VCPresentationRequestUpdateVerificationResultRequestDto.js +2 -1
  16. package/lib/esm/models/VCPresentationRequestVerificationResultResponseDto.js +2 -1
  17. package/lib/esm/models/VCPresentationVerificationOptionsDto.js +2 -1
  18. package/lib/esm/models/VCPresentationVerificationResultResponseDto.js +2 -1
  19. package/lib/esm/models/index.js +4 -1
  20. package/lib/types/apis/SharesApi.d.ts +4 -4
  21. package/lib/types/apis/VerifiableCredentialsApi.d.ts +2 -2
  22. package/lib/types/models/VCClaimsDto.d.ts +38 -0
  23. package/lib/types/models/VCCredentialVerificationResultResponseDto.d.ts +1 -0
  24. package/lib/types/models/VCFieldsDto.d.ts +3 -2
  25. package/lib/types/models/VCFieldsDtoFilter.d.ts +43 -0
  26. package/lib/types/models/VCFilterDto.d.ts +43 -0
  27. package/lib/types/models/VCGenerateCredentialDto.d.ts +6 -6
  28. package/lib/types/models/VCGenerateCredentialDtoClaims.d.ts +39 -0
  29. package/lib/types/models/VCIdTokenVerificationResultResponseDto.d.ts +1 -0
  30. package/lib/types/models/VCOldPresentationRequestResponseVerificationResultResponseDto.d.ts +1 -0
  31. package/lib/types/models/VCPresentationRequestResponseVerificationOptionsDto.d.ts +2 -1
  32. package/lib/types/models/VCPresentationRequestResponseVerificationResultResponseDto.d.ts +1 -0
  33. package/lib/types/models/VCPresentationRequestUpdateVerificationResultRequestDto.d.ts +1 -0
  34. package/lib/types/models/VCPresentationRequestVerificationResultResponseDto.d.ts +1 -0
  35. package/lib/types/models/VCPresentationVerificationOptionsDto.d.ts +1 -0
  36. package/lib/types/models/VCPresentationVerificationResultResponseDto.d.ts +1 -0
  37. package/lib/types/models/index.d.ts +4 -1
  38. package/lib/umd/apis/SharesApi.js +4 -4
  39. package/lib/umd/apis/VerifiableCredentialsApi.js +2 -2
  40. package/lib/umd/models/VCClaimsDto.js +53 -0
  41. package/lib/umd/models/VCCredentialVerificationResultResponseDto.js +2 -1
  42. package/lib/umd/models/VCFieldsDto.js +3 -2
  43. package/lib/umd/models/VCFieldsDtoFilter.js +55 -0
  44. package/lib/umd/models/VCFilterDto.js +55 -0
  45. package/lib/umd/models/VCGenerateCredentialDto.js +5 -5
  46. package/lib/umd/models/VCGenerateCredentialDtoClaims.js +47 -0
  47. package/lib/umd/models/VCIdTokenVerificationResultResponseDto.js +2 -1
  48. package/lib/umd/models/VCOldPresentationRequestResponseVerificationResultResponseDto.js +2 -1
  49. package/lib/umd/models/VCPresentationRequestResponseVerificationOptionsDto.js +2 -1
  50. package/lib/umd/models/VCPresentationRequestResponseVerificationResultResponseDto.js +2 -1
  51. package/lib/umd/models/VCPresentationRequestUpdateVerificationResultRequestDto.js +2 -1
  52. package/lib/umd/models/VCPresentationRequestVerificationResultResponseDto.js +2 -1
  53. package/lib/umd/models/VCPresentationVerificationOptionsDto.js +2 -1
  54. package/lib/umd/models/VCPresentationVerificationResultResponseDto.js +2 -1
  55. package/lib/umd/models/index.js +4 -1
  56. package/package.json +1 -1
  57. package/lib/types/models/VCGenerateCredentialDtoCnf.d.ts +0 -31
  58. package/lib/umd/models/VCGenerateCredentialDtoCnf.js +0 -50
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * SVX API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.3.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.VCFilterDtoToJSON = exports.VCFilterDtoFromJSONTyped = exports.VCFilterDtoFromJSON = exports.instanceOfVCFilterDto = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the VCFilterDto interface.
20
+ */
21
+ function instanceOfVCFilterDto(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "type" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfVCFilterDto = instanceOfVCFilterDto;
27
+ function VCFilterDtoFromJSON(json) {
28
+ return VCFilterDtoFromJSONTyped(json, false);
29
+ }
30
+ exports.VCFilterDtoFromJSON = VCFilterDtoFromJSON;
31
+ function VCFilterDtoFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'type': json['type'],
37
+ '_const': !(0, runtime_1.exists)(json, 'const') ? undefined : json['const'],
38
+ 'pattern': !(0, runtime_1.exists)(json, 'pattern') ? undefined : json['pattern'],
39
+ };
40
+ }
41
+ exports.VCFilterDtoFromJSONTyped = VCFilterDtoFromJSONTyped;
42
+ function VCFilterDtoToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'type': value.type,
51
+ 'const': value._const,
52
+ 'pattern': value.pattern,
53
+ };
54
+ }
55
+ exports.VCFilterDtoToJSON = VCFilterDtoToJSON;
@@ -15,7 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.VCGenerateCredentialDtoToJSON = exports.VCGenerateCredentialDtoFromJSONTyped = exports.VCGenerateCredentialDtoFromJSON = exports.instanceOfVCGenerateCredentialDto = void 0;
17
17
  const runtime_1 = require("../runtime");
18
- const VCGenerateCredentialDtoCnf_1 = require("./VCGenerateCredentialDtoCnf");
18
+ const VCGenerateCredentialDtoClaims_1 = require("./VCGenerateCredentialDtoClaims");
19
19
  /**
20
20
  * Check if a given object implements the VCGenerateCredentialDto interface.
21
21
  */
@@ -38,10 +38,10 @@ function VCGenerateCredentialDtoFromJSONTyped(json, ignoreDiscriminator) {
38
38
  return {
39
39
  'credential_type_id': json['credential_type_id'],
40
40
  'issuer': json['issuer'],
41
- 'claims': json['claims'],
41
+ 'claims': (0, VCGenerateCredentialDtoClaims_1.VCGenerateCredentialDtoClaimsFromJSON)(json['claims']),
42
42
  'revocable': !(0, runtime_1.exists)(json, 'revocable') ? undefined : json['revocable'],
43
43
  'expires_at': !(0, runtime_1.exists)(json, 'expires_at') ? undefined : (new Date(json['expires_at'])),
44
- 'cnf': !(0, runtime_1.exists)(json, 'cnf') ? undefined : (0, VCGenerateCredentialDtoCnf_1.VCGenerateCredentialDtoCnfFromJSON)(json['cnf']),
44
+ 'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
45
45
  };
46
46
  }
47
47
  exports.VCGenerateCredentialDtoFromJSONTyped = VCGenerateCredentialDtoFromJSONTyped;
@@ -55,10 +55,10 @@ function VCGenerateCredentialDtoToJSON(value) {
55
55
  return {
56
56
  'credential_type_id': value.credential_type_id,
57
57
  'issuer': value.issuer,
58
- 'claims': value.claims,
58
+ 'claims': (0, VCGenerateCredentialDtoClaims_1.VCGenerateCredentialDtoClaimsToJSON)(value.claims),
59
59
  'revocable': value.revocable,
60
60
  'expires_at': value.expires_at === undefined ? undefined : (value.expires_at.toISOString()),
61
- 'cnf': (0, VCGenerateCredentialDtoCnf_1.VCGenerateCredentialDtoCnfToJSON)(value.cnf),
61
+ 'type': value.type,
62
62
  };
63
63
  }
64
64
  exports.VCGenerateCredentialDtoToJSON = VCGenerateCredentialDtoToJSON;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * SVX API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.3.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.VCGenerateCredentialDtoClaimsToJSON = exports.VCGenerateCredentialDtoClaimsFromJSONTyped = exports.VCGenerateCredentialDtoClaimsFromJSON = exports.instanceOfVCGenerateCredentialDtoClaims = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const VCCnfDto_1 = require("./VCCnfDto");
19
+ /**
20
+ * Check if a given object implements the VCGenerateCredentialDtoClaims interface.
21
+ */
22
+ function instanceOfVCGenerateCredentialDtoClaims(value) {
23
+ let isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfVCGenerateCredentialDtoClaims = instanceOfVCGenerateCredentialDtoClaims;
27
+ function VCGenerateCredentialDtoClaimsFromJSON(json) {
28
+ return VCGenerateCredentialDtoClaimsFromJSONTyped(json, false);
29
+ }
30
+ exports.VCGenerateCredentialDtoClaimsFromJSON = VCGenerateCredentialDtoClaimsFromJSON;
31
+ function VCGenerateCredentialDtoClaimsFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return Object.assign(Object.assign({}, json), { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'cnf': !(0, runtime_1.exists)(json, 'cnf') ? undefined : (0, VCCnfDto_1.VCCnfDtoFromJSON)(json['cnf']) });
36
+ }
37
+ exports.VCGenerateCredentialDtoClaimsFromJSONTyped = VCGenerateCredentialDtoClaimsFromJSONTyped;
38
+ function VCGenerateCredentialDtoClaimsToJSON(value) {
39
+ if (value === undefined) {
40
+ return undefined;
41
+ }
42
+ if (value === null) {
43
+ return null;
44
+ }
45
+ return Object.assign(Object.assign({}, value), { 'id': value.id, 'cnf': (0, VCCnfDto_1.VCCnfDtoToJSON)(value.cnf) });
46
+ }
47
+ exports.VCGenerateCredentialDtoClaimsToJSON = VCGenerateCredentialDtoClaimsToJSON;
@@ -24,7 +24,8 @@ exports.VCIdTokenVerificationResultResponseDtoChecksEnum = {
24
24
  Expiration: 'expiration',
25
25
  Nonce: 'nonce',
26
26
  Schema: 'schema',
27
- RevocationStatus: 'revocation_status'
27
+ RevocationStatus: 'revocation_status',
28
+ Constraints: 'constraints'
28
29
  };
29
30
  /**
30
31
  * Check if a given object implements the VCIdTokenVerificationResultResponseDto interface.
@@ -24,7 +24,8 @@ exports.VCOldPresentationRequestResponseVerificationResultResponseDtoChecksEnum
24
24
  Expiration: 'expiration',
25
25
  Nonce: 'nonce',
26
26
  Schema: 'schema',
27
- RevocationStatus: 'revocation_status'
27
+ RevocationStatus: 'revocation_status',
28
+ Constraints: 'constraints'
28
29
  };
29
30
  /**
30
31
  * Check if a given object implements the VCOldPresentationRequestResponseVerificationResultResponseDto interface.
@@ -22,7 +22,8 @@ const VCRequestVerificationOptionsDto_1 = require("./VCRequestVerificationOption
22
22
  * @export
23
23
  */
24
24
  exports.VCPresentationRequestResponseVerificationOptionsDtoChecksEnum = {
25
- Format: 'format'
25
+ Format: 'format',
26
+ Constraints: 'constraints'
26
27
  };
27
28
  /**
28
29
  * Check if a given object implements the VCPresentationRequestResponseVerificationOptionsDto interface.
@@ -27,7 +27,8 @@ exports.VCPresentationRequestResponseVerificationResultResponseDtoChecksEnum = {
27
27
  Expiration: 'expiration',
28
28
  Nonce: 'nonce',
29
29
  Schema: 'schema',
30
- RevocationStatus: 'revocation_status'
30
+ RevocationStatus: 'revocation_status',
31
+ Constraints: 'constraints'
31
32
  };
32
33
  /**
33
34
  * Check if a given object implements the VCPresentationRequestResponseVerificationResultResponseDto interface.
@@ -27,7 +27,8 @@ exports.VCPresentationRequestUpdateVerificationResultRequestDtoChecksEnum = {
27
27
  Expiration: 'expiration',
28
28
  Nonce: 'nonce',
29
29
  Schema: 'schema',
30
- RevocationStatus: 'revocation_status'
30
+ RevocationStatus: 'revocation_status',
31
+ Constraints: 'constraints'
31
32
  };
32
33
  /**
33
34
  * Check if a given object implements the VCPresentationRequestUpdateVerificationResultRequestDto interface.
@@ -24,7 +24,8 @@ exports.VCPresentationRequestVerificationResultResponseDtoChecksEnum = {
24
24
  Expiration: 'expiration',
25
25
  Nonce: 'nonce',
26
26
  Schema: 'schema',
27
- RevocationStatus: 'revocation_status'
27
+ RevocationStatus: 'revocation_status',
28
+ Constraints: 'constraints'
28
29
  };
29
30
  /**
30
31
  * Check if a given object implements the VCPresentationRequestVerificationResultResponseDto interface.
@@ -22,7 +22,8 @@ exports.VCPresentationVerificationOptionsDtoChecksEnum = {
22
22
  Format: 'format',
23
23
  Signature: 'signature',
24
24
  Expiration: 'expiration',
25
- Nonce: 'nonce'
25
+ Nonce: 'nonce',
26
+ Constraints: 'constraints'
26
27
  };
27
28
  /**
28
29
  * Check if a given object implements the VCPresentationVerificationOptionsDto interface.
@@ -25,7 +25,8 @@ exports.VCPresentationVerificationResultResponseDtoChecksEnum = {
25
25
  Expiration: 'expiration',
26
26
  Nonce: 'nonce',
27
27
  Schema: 'schema',
28
- RevocationStatus: 'revocation_status'
28
+ RevocationStatus: 'revocation_status',
29
+ Constraints: 'constraints'
29
30
  };
30
31
  /**
31
32
  * Check if a given object implements the VCPresentationVerificationResultResponseDto interface.
@@ -264,6 +264,7 @@ __exportStar(require("./ShreIntentListResponse"), exports);
264
264
  __exportStar(require("./UpdateDelegationsRequest"), exports);
265
265
  __exportStar(require("./VCApp"), exports);
266
266
  __exportStar(require("./VCAppSignal"), exports);
267
+ __exportStar(require("./VCClaimsDto"), exports);
267
268
  __exportStar(require("./VCCnfDto"), exports);
268
269
  __exportStar(require("./VCComponent"), exports);
269
270
  __exportStar(require("./VCConstraintsDto"), exports);
@@ -296,9 +297,11 @@ __exportStar(require("./VCDatabase"), exports);
296
297
  __exportStar(require("./VCErrorResponseDto"), exports);
297
298
  __exportStar(require("./VCErrorsResponseDto"), exports);
298
299
  __exportStar(require("./VCFieldsDto"), exports);
300
+ __exportStar(require("./VCFieldsDtoFilter"), exports);
301
+ __exportStar(require("./VCFilterDto"), exports);
299
302
  __exportStar(require("./VCFormatDto"), exports);
300
303
  __exportStar(require("./VCGenerateCredentialDto"), exports);
301
- __exportStar(require("./VCGenerateCredentialDtoCnf"), exports);
304
+ __exportStar(require("./VCGenerateCredentialDtoClaims"), exports);
302
305
  __exportStar(require("./VCGenerateCredentialPayloadDto"), exports);
303
306
  __exportStar(require("./VCGeneratePresentationDto"), exports);
304
307
  __exportStar(require("./VCGeneratePresentationPayloadDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meeco/svx-api-sdk",
3
- "version": "1.0.0-stage.20231211153548.58a6d84",
3
+ "version": "1.0.0-stage.20231218095603.d71b65e",
4
4
  "description": "Meeco SVX API SDK",
5
5
  "types": "./lib/types/index.d.ts",
6
6
  "browser": "./lib/esm/index.js",
@@ -1,31 +0,0 @@
1
- /**
2
- * SVX API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 1.3.1
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface VCGenerateCredentialDtoCnf
16
- */
17
- export interface VCGenerateCredentialDtoCnf {
18
- /**
19
- *
20
- * @type {object}
21
- * @memberof VCGenerateCredentialDtoCnf
22
- */
23
- jwk: object;
24
- }
25
- /**
26
- * Check if a given object implements the VCGenerateCredentialDtoCnf interface.
27
- */
28
- export declare function instanceOfVCGenerateCredentialDtoCnf(value: object): boolean;
29
- export declare function VCGenerateCredentialDtoCnfFromJSON(json: any): VCGenerateCredentialDtoCnf;
30
- export declare function VCGenerateCredentialDtoCnfFromJSONTyped(json: any, ignoreDiscriminator: boolean): VCGenerateCredentialDtoCnf;
31
- export declare function VCGenerateCredentialDtoCnfToJSON(value?: VCGenerateCredentialDtoCnf | null): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * SVX API
6
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
- *
8
- * The version of the OpenAPI document: 1.3.1
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.VCGenerateCredentialDtoCnfToJSON = exports.VCGenerateCredentialDtoCnfFromJSONTyped = exports.VCGenerateCredentialDtoCnfFromJSON = exports.instanceOfVCGenerateCredentialDtoCnf = void 0;
17
- /**
18
- * Check if a given object implements the VCGenerateCredentialDtoCnf interface.
19
- */
20
- function instanceOfVCGenerateCredentialDtoCnf(value) {
21
- let isInstance = true;
22
- isInstance = isInstance && "jwk" in value;
23
- return isInstance;
24
- }
25
- exports.instanceOfVCGenerateCredentialDtoCnf = instanceOfVCGenerateCredentialDtoCnf;
26
- function VCGenerateCredentialDtoCnfFromJSON(json) {
27
- return VCGenerateCredentialDtoCnfFromJSONTyped(json, false);
28
- }
29
- exports.VCGenerateCredentialDtoCnfFromJSON = VCGenerateCredentialDtoCnfFromJSON;
30
- function VCGenerateCredentialDtoCnfFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
32
- return json;
33
- }
34
- return {
35
- 'jwk': json['jwk'],
36
- };
37
- }
38
- exports.VCGenerateCredentialDtoCnfFromJSONTyped = VCGenerateCredentialDtoCnfFromJSONTyped;
39
- function VCGenerateCredentialDtoCnfToJSON(value) {
40
- if (value === undefined) {
41
- return undefined;
42
- }
43
- if (value === null) {
44
- return null;
45
- }
46
- return {
47
- 'jwk': value.jwk,
48
- };
49
- }
50
- exports.VCGenerateCredentialDtoCnfToJSON = VCGenerateCredentialDtoCnfToJSON;