@meeco/svx-api-sdk 1.0.0-stage.20231211153548.58a6d84 → 1.0.0-stage.20240301124316.cffdd63

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 (80) hide show
  1. package/.openapi-generator/FILES +8 -2
  2. package/lib/esm/apis/OrganisationsApi.js +5 -2
  3. package/lib/esm/apis/SharesApi.js +4 -4
  4. package/lib/esm/apis/VerifiableCredentialsApi.js +2 -2
  5. package/lib/esm/models/{ATOMOrgIdAndName.js → ATOMAdministeredArchivedOrg.js} +6 -6
  6. package/lib/esm/models/ATOMAdministeredOrg.js +60 -0
  7. package/lib/esm/models/ATOMWhoAmI.js +9 -3
  8. package/lib/esm/models/IDPForgotPasswordDto.js +43 -0
  9. package/lib/esm/models/IDPLoginRequestDto.js +3 -0
  10. package/lib/esm/models/{VCGenerateCredentialDtoCnf.js → IDPResetPasswordDto.js} +9 -9
  11. package/lib/esm/models/VCClaimsDto.js +46 -0
  12. package/lib/esm/models/VCCredentialVerificationResultResponseDto.js +2 -1
  13. package/lib/esm/models/VCFieldsDto.js +3 -2
  14. package/lib/esm/models/VCFieldsDtoFilter.js +48 -0
  15. package/lib/esm/models/VCFilterDto.js +48 -0
  16. package/lib/esm/models/VCGenerateCredentialDto.js +5 -5
  17. package/lib/esm/models/VCGenerateCredentialDtoClaims.js +40 -0
  18. package/lib/esm/models/VCIdTokenVerificationResultResponseDto.js +2 -1
  19. package/lib/esm/models/VCOldPresentationRequestResponseVerificationResultResponseDto.js +2 -1
  20. package/lib/esm/models/VCPresentationRequestResponseVerificationOptionsDto.js +2 -1
  21. package/lib/esm/models/VCPresentationRequestResponseVerificationResultResponseDto.js +2 -1
  22. package/lib/esm/models/VCPresentationRequestUpdateVerificationResultRequestDto.js +2 -1
  23. package/lib/esm/models/VCPresentationRequestVerificationResultResponseDto.js +2 -1
  24. package/lib/esm/models/VCPresentationVerificationOptionsDto.js +2 -1
  25. package/lib/esm/models/VCPresentationVerificationResultResponseDto.js +2 -1
  26. package/lib/esm/models/index.js +8 -2
  27. package/lib/types/apis/OrganisationsApi.d.ts +2 -1
  28. package/lib/types/apis/SharesApi.d.ts +4 -4
  29. package/lib/types/apis/VerifiableCredentialsApi.d.ts +2 -2
  30. package/lib/types/models/{ATOMOrgIdAndName.d.ts → ATOMAdministeredArchivedOrg.d.ts} +13 -13
  31. package/lib/types/models/ATOMAdministeredOrg.d.ts +67 -0
  32. package/lib/types/models/ATOMTenantInJwtForWhoAmI.d.ts +1 -1
  33. package/lib/types/models/ATOMWhoAmI.d.ts +16 -3
  34. package/lib/types/models/IDPForgotPasswordDto.d.ts +31 -0
  35. package/lib/types/models/IDPLoginRequestDto.d.ts +6 -0
  36. package/lib/types/models/IDPResetPasswordDto.d.ts +31 -0
  37. package/lib/types/models/VCClaimsDto.d.ts +38 -0
  38. package/lib/types/models/VCCredentialVerificationResultResponseDto.d.ts +1 -0
  39. package/lib/types/models/VCFieldsDto.d.ts +3 -2
  40. package/lib/types/models/VCFieldsDtoFilter.d.ts +43 -0
  41. package/lib/types/models/VCFilterDto.d.ts +43 -0
  42. package/lib/types/models/VCGenerateCredentialDto.d.ts +6 -6
  43. package/lib/types/models/VCGenerateCredentialDtoClaims.d.ts +39 -0
  44. package/lib/types/models/VCIdTokenVerificationResultResponseDto.d.ts +1 -0
  45. package/lib/types/models/VCOldPresentationRequestResponseVerificationResultResponseDto.d.ts +1 -0
  46. package/lib/types/models/VCPresentationRequestResponseVerificationOptionsDto.d.ts +2 -1
  47. package/lib/types/models/VCPresentationRequestResponseVerificationResultResponseDto.d.ts +1 -0
  48. package/lib/types/models/VCPresentationRequestUpdateVerificationResultRequestDto.d.ts +1 -0
  49. package/lib/types/models/VCPresentationRequestVerificationResultResponseDto.d.ts +1 -0
  50. package/lib/types/models/VCPresentationVerificationOptionsDto.d.ts +1 -0
  51. package/lib/types/models/VCPresentationVerificationResultResponseDto.d.ts +1 -0
  52. package/lib/types/models/index.d.ts +8 -2
  53. package/lib/umd/apis/OrganisationsApi.js +5 -2
  54. package/lib/umd/apis/SharesApi.js +4 -4
  55. package/lib/umd/apis/VerifiableCredentialsApi.js +2 -2
  56. package/lib/umd/models/{ATOMOrgIdAndName.js → ATOMAdministeredArchivedOrg.js} +11 -11
  57. package/lib/umd/models/ATOMAdministeredOrg.js +67 -0
  58. package/lib/umd/models/ATOMWhoAmI.js +9 -3
  59. package/lib/umd/models/IDPForgotPasswordDto.js +50 -0
  60. package/lib/umd/models/IDPLoginRequestDto.js +3 -0
  61. package/lib/umd/models/IDPResetPasswordDto.js +50 -0
  62. package/lib/umd/models/VCClaimsDto.js +53 -0
  63. package/lib/umd/models/VCCredentialVerificationResultResponseDto.js +2 -1
  64. package/lib/umd/models/VCFieldsDto.js +3 -2
  65. package/lib/umd/models/VCFieldsDtoFilter.js +55 -0
  66. package/lib/umd/models/VCFilterDto.js +55 -0
  67. package/lib/umd/models/VCGenerateCredentialDto.js +5 -5
  68. package/lib/umd/models/VCGenerateCredentialDtoClaims.js +47 -0
  69. package/lib/umd/models/VCIdTokenVerificationResultResponseDto.js +2 -1
  70. package/lib/umd/models/VCOldPresentationRequestResponseVerificationResultResponseDto.js +2 -1
  71. package/lib/umd/models/VCPresentationRequestResponseVerificationOptionsDto.js +2 -1
  72. package/lib/umd/models/VCPresentationRequestResponseVerificationResultResponseDto.js +2 -1
  73. package/lib/umd/models/VCPresentationRequestUpdateVerificationResultRequestDto.js +2 -1
  74. package/lib/umd/models/VCPresentationRequestVerificationResultResponseDto.js +2 -1
  75. package/lib/umd/models/VCPresentationVerificationOptionsDto.js +2 -1
  76. package/lib/umd/models/VCPresentationVerificationResultResponseDto.js +2 -1
  77. package/lib/umd/models/index.js +8 -2
  78. package/package.json +1 -1
  79. package/lib/types/models/VCGenerateCredentialDtoCnf.d.ts +0 -31
  80. package/lib/umd/models/VCGenerateCredentialDtoCnf.js +0 -50
@@ -19,6 +19,8 @@ apis/index.ts
19
19
  index.ts
20
20
  models/ATOMActiveAndArchivedOrgList.ts
21
21
  models/ATOMAdmin.ts
22
+ models/ATOMAdministeredArchivedOrg.ts
23
+ models/ATOMAdministeredOrg.ts
22
24
  models/ATOMAgentList.ts
23
25
  models/ATOMAgentToken.ts
24
26
  models/ATOMApplicationVersion.ts
@@ -42,7 +44,6 @@ models/ATOMOneUser.ts
42
44
  models/ATOMOrg.ts
43
45
  models/ATOMOrgAgent.ts
44
46
  models/ATOMOrgDescription.ts
45
- models/ATOMOrgIdAndName.ts
46
47
  models/ATOMOrgList.ts
47
48
  models/ATOMPaginatedAdminList.ts
48
49
  models/ATOMPaginatedOrgList.ts
@@ -168,6 +169,7 @@ models/IDPEndUserResponseModelDto.ts
168
169
  models/IDPEndUsersResponseDto.ts
169
170
  models/IDPErrorResponseModel.ts
170
171
  models/IDPErrorsResponseModelDto.ts
172
+ models/IDPForgotPasswordDto.ts
171
173
  models/IDPGenerateShortLivedAccessTokenDto.ts
172
174
  models/IDPGenerateShortLivedAccessTokenPayloadDto.ts
173
175
  models/IDPInvitationResponseDto.ts
@@ -178,6 +180,7 @@ models/IDPJwtIssuerJWKSKeys.ts
178
180
  models/IDPJwtIssuerResponseDto.ts
179
181
  models/IDPLoginRequestDto.ts
180
182
  models/IDPMeta.ts
183
+ models/IDPResetPasswordDto.ts
181
184
  models/IDPUpdateClientDto.ts
182
185
  models/IDPUpdateClientPayloadDto.ts
183
186
  models/IDPUserDto.ts
@@ -265,6 +268,7 @@ models/ShreIntentListResponse.ts
265
268
  models/UpdateDelegationsRequest.ts
266
269
  models/VCApp.ts
267
270
  models/VCAppSignal.ts
271
+ models/VCClaimsDto.ts
268
272
  models/VCCnfDto.ts
269
273
  models/VCComponent.ts
270
274
  models/VCConstraintsDto.ts
@@ -297,9 +301,11 @@ models/VCDatabase.ts
297
301
  models/VCErrorResponseDto.ts
298
302
  models/VCErrorsResponseDto.ts
299
303
  models/VCFieldsDto.ts
304
+ models/VCFieldsDtoFilter.ts
305
+ models/VCFilterDto.ts
300
306
  models/VCFormatDto.ts
301
307
  models/VCGenerateCredentialDto.ts
302
- models/VCGenerateCredentialDtoCnf.ts
308
+ models/VCGenerateCredentialDtoClaims.ts
303
309
  models/VCGenerateCredentialPayloadDto.ts
304
310
  models/VCGeneratePresentationDto.ts
305
311
  models/VCGeneratePresentationPayloadDto.ts
@@ -866,6 +866,9 @@ export class OrganisationsApi extends runtime.BaseAPI {
866
866
  if (requestParameters.noFirstUser !== undefined) {
867
867
  queryParameters['no_first_user'] = requestParameters.noFirstUser;
868
868
  }
869
+ if (requestParameters.addAllExternalSecurityRights !== undefined) {
870
+ queryParameters['add_all_external_security_rights'] = requestParameters.addAllExternalSecurityRights;
871
+ }
869
872
  const headerParameters = {};
870
873
  headerParameters['Content-Type'] = 'application/json';
871
874
  if (this.configuration && this.configuration.accessToken) {
@@ -889,9 +892,9 @@ export class OrganisationsApi extends runtime.BaseAPI {
889
892
  * Create an organisation. In order to execute this action the current user must have security right `atom:tenant:create_org` for the tenant with the ID in parameter `tenant_id`.
890
893
  * Create an organisation
891
894
  */
892
- tenantsTenantIdOrgsPost(tenantId, aTOMCreateOrUpdateOrgRequest, noFirstUser, initOverrides) {
895
+ tenantsTenantIdOrgsPost(tenantId, aTOMCreateOrUpdateOrgRequest, noFirstUser, addAllExternalSecurityRights, initOverrides) {
893
896
  return __awaiter(this, void 0, void 0, function* () {
894
- const response = yield this.tenantsTenantIdOrgsPostRaw({ tenantId: tenantId, aTOMCreateOrUpdateOrgRequest: aTOMCreateOrUpdateOrgRequest, noFirstUser: noFirstUser }, initOverrides);
897
+ const response = yield this.tenantsTenantIdOrgsPostRaw({ tenantId: tenantId, aTOMCreateOrUpdateOrgRequest: aTOMCreateOrUpdateOrgRequest, noFirstUser: noFirstUser, addAllExternalSecurityRights: addAllExternalSecurityRights }, initOverrides);
895
898
  return yield response.value();
896
899
  });
897
900
  }
@@ -347,7 +347,7 @@ export class SharesApi extends runtime.BaseAPI {
347
347
  });
348
348
  }
349
349
  /**
350
- * Share your item with connected users. Each share can be a share of all slots of the item, in that case `slot_id` is `NULL`, or it can be a share of just one slot. In this case `slot_id` references one of the slots of the item. There are 3 users involved in each share: * owner - the owner of the shared item * sender - the user who shares data. Can be the owner or one of the recipients * recipient - the user who recieves the shared data. Whether a non-owner may on-share a shared slot is defined in field `onsharing_permitted`. Only the owner of the item can set `onsharing_permitted` to `true`. If `onsharing_permitted` is `false`, the recipient may on-share the item, but when that recipient creates an on-share, `onsharing_permitted` in that on-share is forced to be `false`. In other words, the depth of on-sharing in limited to 3: OWNER ==> RECIPIENT AND SENDER ==> RECIPIENT Some shares require that the recipient accepts the terms of the share. Until the terms are not accepted the share DEK is hidden. Data in slots is initially encrypted with the DEK in field `encrypted_dek`. The DEK in `encrypted_dek` is encrypted with the public key of the share recipient. When processing a share the client application is expected to decrypt the slot data and re-encrypt with the private DEK. A public key of the recipient is needed to encrypt the share DEK. Updating all shares of the same item is performed by the owner in one go. In a situation when a share has been created by a recipient, not the owner, and there is no connection between the owner and the recipient, the owner has no access to a public key of the recipient. In order to address this problem when a share is created we also add fields `public_key` and `keypair_external_id` from the connection record between the recipient and the sender. `keypair_external_id` identifies the keypair that the public key belongs to. When a recipient of a share on-shares the data with someone else, nothing prevents him/her to encrypt some other data instead of the original data. We need a way to enforce integrity of on-shares. We do this with help of HMAC - hash-based message authentication code obtained by running a cryptographic hash function over the data and a shared secret key. Two fields in each slot are used for this purpose: * `encrypted_value_verification_key` - is a value verification key encrypted in the same way as the value itself: with the share DEK * `value_verification_hash` - the result of the HMAC function run on the slot value using `encrypted_value_verification_key`. `value_verification_hash` is stored as-is, unencrypted. Only the owner of the data may send `encrypted_value_verification_key` when creating or updating the share. When other senders create a share, `encrypted_value_verification_key` must be `NULL`. `value_verification_hash` may and should be sent by every sender, owner or not, because `value_verification_hash` must be re-encrypted with the share DEK for each share. If the sender replaces `encrypted_value_verification_key` and/or the slot value, this will break the client-side verification against `encrypted_value_verification_key`. Field `encrypted_value` may be `NULL`. If `encrypted_value` is `NULL`, then `encrypted_value_verification_key` and `value_verification_hash` may also be `NULL`. If `encrypted_value` is present, then `encrypted_value_verification_key` and `value_verification_hash` are mandatory.
350
+ * Share your item with connected users. Each share can be a share of all slots of the item, in that case `slot_id` is `NULL`, or it can be a share of just one slot. In this case `slot_id` references one of the slots of the item. There are 3 users involved in each share: * owner - the owner of the shared item * sender - the user who shares data. Can be the owner or one of the recipients * recipient - the user who recieves the shared data. Whether a non-owner may on-share a shared slot is defined in field `onsharing_permitted`. Only the owner of the item can set `onsharing_permitted` to `true`. If `onsharing_permitted` is `false`, the recipient may on-share the item, but when that recipient creates an on-share, `onsharing_permitted` in that on-share is forced to be `false`. In other words, the depth of on-sharing in limited to 3: OWNER ==> RECIPIENT AND SENDER ==> RECIPIENT Some shares require that the recipient accepts the terms of the share. Until the terms are not accepted the share DEK is hidden. Data in slots is initially encrypted with the DEK in field `encrypted_dek`. The DEK in `encrypted_dek` is encrypted with the public key of the share recipient. When processing a share the client application is expected to decrypt the slot data and re-encrypt with the private DEK. A public key of the recipient is needed to encrypt the share DEK. Updating all shares of the same item is performed by the owner in one go. In a situation when a share has been created by a recipient, not the owner, and there is no connection between the owner and the recipient, the owner has no access to a public key of the recipient. In order to address this problem when a share is created we also add fields `public_key` and `keypair_external_id` from the connection record between the recipient and the sender. `keypair_external_id` identifies the keypair that the public key belongs to. When a recipient of a share on-shares the data with someone else, nothing prevents him/her to encrypt some other data instead of the original data. We need a way to enforce integrity of on-shares. We do this with help of HMAC - hash-based message authentication code obtained by running a cryptographic hash function over the data and a shared secret key. Two fields in each slot are used for this purpose: * `encrypted_value_verification_key` - is a value verification key encrypted in the same way as the value itself: with the share DEK * `value_verification_hash` - the result of the HMAC function run on the slot value using `encrypted_value_verification_key`. `value_verification_hash` is stored as-is, unencrypted. Only the owner of the data may send `value_verification_hash` when creating or updating the share. When other senders create a share, `value_verification_hash` must be `NULL`. `encrypted_value_verification_key` may and should be sent by every sender, owner or not, because `encrypted_value_verification_key` must be re-encrypted with the share DEK for each share. If the sender replaces `encrypted_value_verification_key` and/or the slot value, this will break the client-side verification against `encrypted_value_verification_key`. Field `encrypted_value` may be `NULL`. If `encrypted_value` is `NULL`, then `encrypted_value_verification_key` and `value_verification_hash` may also be `NULL`. If `encrypted_value` is present, then `encrypted_value_verification_key` and `value_verification_hash` are mandatory.
351
351
  * Share your item with connected users
352
352
  */
353
353
  itemsIdSharesPostRaw(requestParameters, initOverrides) {
@@ -382,7 +382,7 @@ export class SharesApi extends runtime.BaseAPI {
382
382
  });
383
383
  }
384
384
  /**
385
- * Share your item with connected users. Each share can be a share of all slots of the item, in that case `slot_id` is `NULL`, or it can be a share of just one slot. In this case `slot_id` references one of the slots of the item. There are 3 users involved in each share: * owner - the owner of the shared item * sender - the user who shares data. Can be the owner or one of the recipients * recipient - the user who recieves the shared data. Whether a non-owner may on-share a shared slot is defined in field `onsharing_permitted`. Only the owner of the item can set `onsharing_permitted` to `true`. If `onsharing_permitted` is `false`, the recipient may on-share the item, but when that recipient creates an on-share, `onsharing_permitted` in that on-share is forced to be `false`. In other words, the depth of on-sharing in limited to 3: OWNER ==> RECIPIENT AND SENDER ==> RECIPIENT Some shares require that the recipient accepts the terms of the share. Until the terms are not accepted the share DEK is hidden. Data in slots is initially encrypted with the DEK in field `encrypted_dek`. The DEK in `encrypted_dek` is encrypted with the public key of the share recipient. When processing a share the client application is expected to decrypt the slot data and re-encrypt with the private DEK. A public key of the recipient is needed to encrypt the share DEK. Updating all shares of the same item is performed by the owner in one go. In a situation when a share has been created by a recipient, not the owner, and there is no connection between the owner and the recipient, the owner has no access to a public key of the recipient. In order to address this problem when a share is created we also add fields `public_key` and `keypair_external_id` from the connection record between the recipient and the sender. `keypair_external_id` identifies the keypair that the public key belongs to. When a recipient of a share on-shares the data with someone else, nothing prevents him/her to encrypt some other data instead of the original data. We need a way to enforce integrity of on-shares. We do this with help of HMAC - hash-based message authentication code obtained by running a cryptographic hash function over the data and a shared secret key. Two fields in each slot are used for this purpose: * `encrypted_value_verification_key` - is a value verification key encrypted in the same way as the value itself: with the share DEK * `value_verification_hash` - the result of the HMAC function run on the slot value using `encrypted_value_verification_key`. `value_verification_hash` is stored as-is, unencrypted. Only the owner of the data may send `encrypted_value_verification_key` when creating or updating the share. When other senders create a share, `encrypted_value_verification_key` must be `NULL`. `value_verification_hash` may and should be sent by every sender, owner or not, because `value_verification_hash` must be re-encrypted with the share DEK for each share. If the sender replaces `encrypted_value_verification_key` and/or the slot value, this will break the client-side verification against `encrypted_value_verification_key`. Field `encrypted_value` may be `NULL`. If `encrypted_value` is `NULL`, then `encrypted_value_verification_key` and `value_verification_hash` may also be `NULL`. If `encrypted_value` is present, then `encrypted_value_verification_key` and `value_verification_hash` are mandatory.
385
+ * Share your item with connected users. Each share can be a share of all slots of the item, in that case `slot_id` is `NULL`, or it can be a share of just one slot. In this case `slot_id` references one of the slots of the item. There are 3 users involved in each share: * owner - the owner of the shared item * sender - the user who shares data. Can be the owner or one of the recipients * recipient - the user who recieves the shared data. Whether a non-owner may on-share a shared slot is defined in field `onsharing_permitted`. Only the owner of the item can set `onsharing_permitted` to `true`. If `onsharing_permitted` is `false`, the recipient may on-share the item, but when that recipient creates an on-share, `onsharing_permitted` in that on-share is forced to be `false`. In other words, the depth of on-sharing in limited to 3: OWNER ==> RECIPIENT AND SENDER ==> RECIPIENT Some shares require that the recipient accepts the terms of the share. Until the terms are not accepted the share DEK is hidden. Data in slots is initially encrypted with the DEK in field `encrypted_dek`. The DEK in `encrypted_dek` is encrypted with the public key of the share recipient. When processing a share the client application is expected to decrypt the slot data and re-encrypt with the private DEK. A public key of the recipient is needed to encrypt the share DEK. Updating all shares of the same item is performed by the owner in one go. In a situation when a share has been created by a recipient, not the owner, and there is no connection between the owner and the recipient, the owner has no access to a public key of the recipient. In order to address this problem when a share is created we also add fields `public_key` and `keypair_external_id` from the connection record between the recipient and the sender. `keypair_external_id` identifies the keypair that the public key belongs to. When a recipient of a share on-shares the data with someone else, nothing prevents him/her to encrypt some other data instead of the original data. We need a way to enforce integrity of on-shares. We do this with help of HMAC - hash-based message authentication code obtained by running a cryptographic hash function over the data and a shared secret key. Two fields in each slot are used for this purpose: * `encrypted_value_verification_key` - is a value verification key encrypted in the same way as the value itself: with the share DEK * `value_verification_hash` - the result of the HMAC function run on the slot value using `encrypted_value_verification_key`. `value_verification_hash` is stored as-is, unencrypted. Only the owner of the data may send `value_verification_hash` when creating or updating the share. When other senders create a share, `value_verification_hash` must be `NULL`. `encrypted_value_verification_key` may and should be sent by every sender, owner or not, because `encrypted_value_verification_key` must be re-encrypted with the share DEK for each share. If the sender replaces `encrypted_value_verification_key` and/or the slot value, this will break the client-side verification against `encrypted_value_verification_key`. Field `encrypted_value` may be `NULL`. If `encrypted_value` is `NULL`, then `encrypted_value_verification_key` and `value_verification_hash` may also be `NULL`. If `encrypted_value` is present, then `encrypted_value_verification_key` and `value_verification_hash` are mandatory.
386
386
  * Share your item with connected users
387
387
  */
388
388
  itemsIdSharesPost(id, meecoDelegationId, meecoOrganisationId, postItemSharesRequest, initOverrides) {
@@ -392,7 +392,7 @@ export class SharesApi extends runtime.BaseAPI {
392
392
  });
393
393
  }
394
394
  /**
395
- * Updating all shares of one item is done by the item owner in one go. Before calling this endpoint the client application is expected to retrieve the list of shares IDs and public keys via `GET /items/{id}/shares`. The POST body of this endpoint contains * a list of share DEKs encrypted with public keys of share recipients * a list of slot values for each slot and each share, each encrypted with the DEK of the share that the slot belongs to * Optionally: a list of completed `ClientTask` tasks When a recipient of a share on-shares the data with someone else, nothing prevents him/her to encrypt some other data instead of the original data. We need a way to enforce integrity of on-shares. We do this with help of HMAC - hash-based message authentication code obtained by running a cryptographic hash function over the data and a shared secret key. Two fields in each slot are used for this purpose: * `encrypted_value_verification_key` - is a value verification key encrypted in the same way as the value itself: with the share DEK * `value_verification_hash` - the result of the HMAC function run on the slot value using `encrypted_value_verification_key`. `value_verification_hash` is stored as-is, unencrypted. Only the owner of the data may send `encrypted_value_verification_key` when creating or updating the share. When other senders create a share, `encrypted_value_verification_key` must be `NULL`. `value_verification_hash` may and should be sent by every sender, owner or not, because `value_verification_hash` must be re-encrypted with the share DEK for each share. If the sender replaces `encrypted_value_verification_key` and/or the slot value, this will break the client-side verification against `encrypted_value_verification_key`. Field `encrypted_value` may be `NULL`. If `encrypted_value` is `NULL`, then `encrypted_value_verification_key` and `value_verification_hash` may also be `NULL`. If `encrypted_value` is present, then `encrypted_value_verification_key` and `value_verification_hash` are mandatory.
395
+ * Updating all shares of one item is done by the item owner in one go. Before calling this endpoint the client application is expected to retrieve the list of shares IDs and public keys via `GET /items/{id}/shares`. The POST body of this endpoint contains * a list of share DEKs encrypted with public keys of share recipients * a list of slot values for each slot and each share, each encrypted with the DEK of the share that the slot belongs to * Optionally: a list of completed `ClientTask` tasks When a recipient of a share on-shares the data with someone else, nothing prevents him/her to encrypt some other data instead of the original data. We need a way to enforce integrity of on-shares. We do this with help of HMAC - hash-based message authentication code obtained by running a cryptographic hash function over the data and a shared secret key. Two fields in each slot are used for this purpose: * `encrypted_value_verification_key` - is a value verification key encrypted in the same way as the value itself: with the share DEK * `value_verification_hash` - the result of the HMAC function run on the slot value using `encrypted_value_verification_key`. `value_verification_hash` is stored as-is, unencrypted. Only the owner of the data may send `value_verification_hash` when creating or updating the share. When other senders create a share, `value_verification_hash` must be `NULL`. `encrypted_value_verification_key` may and should be sent by every sender, owner or not, because `encrypted_value_verification_key` must be re-encrypted with the share DEK for each share. If the sender replaces `encrypted_value_verification_key` and/or the slot value, this will break the client-side verification against `encrypted_value_verification_key`. Field `encrypted_value` may be `NULL`. If `encrypted_value` is `NULL`, then `encrypted_value_verification_key` and `value_verification_hash` may also be `NULL`. If `encrypted_value` is present, then `encrypted_value_verification_key` and `value_verification_hash` are mandatory.
396
396
  * Update all shares of one item
397
397
  */
398
398
  itemsIdSharesPutRaw(requestParameters, initOverrides) {
@@ -427,7 +427,7 @@ export class SharesApi extends runtime.BaseAPI {
427
427
  });
428
428
  }
429
429
  /**
430
- * Updating all shares of one item is done by the item owner in one go. Before calling this endpoint the client application is expected to retrieve the list of shares IDs and public keys via `GET /items/{id}/shares`. The POST body of this endpoint contains * a list of share DEKs encrypted with public keys of share recipients * a list of slot values for each slot and each share, each encrypted with the DEK of the share that the slot belongs to * Optionally: a list of completed `ClientTask` tasks When a recipient of a share on-shares the data with someone else, nothing prevents him/her to encrypt some other data instead of the original data. We need a way to enforce integrity of on-shares. We do this with help of HMAC - hash-based message authentication code obtained by running a cryptographic hash function over the data and a shared secret key. Two fields in each slot are used for this purpose: * `encrypted_value_verification_key` - is a value verification key encrypted in the same way as the value itself: with the share DEK * `value_verification_hash` - the result of the HMAC function run on the slot value using `encrypted_value_verification_key`. `value_verification_hash` is stored as-is, unencrypted. Only the owner of the data may send `encrypted_value_verification_key` when creating or updating the share. When other senders create a share, `encrypted_value_verification_key` must be `NULL`. `value_verification_hash` may and should be sent by every sender, owner or not, because `value_verification_hash` must be re-encrypted with the share DEK for each share. If the sender replaces `encrypted_value_verification_key` and/or the slot value, this will break the client-side verification against `encrypted_value_verification_key`. Field `encrypted_value` may be `NULL`. If `encrypted_value` is `NULL`, then `encrypted_value_verification_key` and `value_verification_hash` may also be `NULL`. If `encrypted_value` is present, then `encrypted_value_verification_key` and `value_verification_hash` are mandatory.
430
+ * Updating all shares of one item is done by the item owner in one go. Before calling this endpoint the client application is expected to retrieve the list of shares IDs and public keys via `GET /items/{id}/shares`. The POST body of this endpoint contains * a list of share DEKs encrypted with public keys of share recipients * a list of slot values for each slot and each share, each encrypted with the DEK of the share that the slot belongs to * Optionally: a list of completed `ClientTask` tasks When a recipient of a share on-shares the data with someone else, nothing prevents him/her to encrypt some other data instead of the original data. We need a way to enforce integrity of on-shares. We do this with help of HMAC - hash-based message authentication code obtained by running a cryptographic hash function over the data and a shared secret key. Two fields in each slot are used for this purpose: * `encrypted_value_verification_key` - is a value verification key encrypted in the same way as the value itself: with the share DEK * `value_verification_hash` - the result of the HMAC function run on the slot value using `encrypted_value_verification_key`. `value_verification_hash` is stored as-is, unencrypted. Only the owner of the data may send `value_verification_hash` when creating or updating the share. When other senders create a share, `value_verification_hash` must be `NULL`. `encrypted_value_verification_key` may and should be sent by every sender, owner or not, because `encrypted_value_verification_key` must be re-encrypted with the share DEK for each share. If the sender replaces `encrypted_value_verification_key` and/or the slot value, this will break the client-side verification against `encrypted_value_verification_key`. Field `encrypted_value` may be `NULL`. If `encrypted_value` is `NULL`, then `encrypted_value_verification_key` and `value_verification_hash` may also be `NULL`. If `encrypted_value` is present, then `encrypted_value_verification_key` and `value_verification_hash` are mandatory.
431
431
  * Update all shares of one item
432
432
  */
433
433
  itemsIdSharesPut(id, meecoDelegationId, meecoOrganisationId, putItemSharesRequest, initOverrides) {
@@ -304,7 +304,7 @@ export class VerifiableCredentialsApi extends runtime.BaseAPI {
304
304
  });
305
305
  }
306
306
  /**
307
- * <h4>Requires the following security rights:</h4><ul><li><code>vc:org:manage</code></li></ul><br /><hr /><p>Generates unsigned verifiable credential token in JWT format. Client is expected to sign it with a private key.</p><hr /><p>An example of how credential signing in Javascript:</p><pre><code>import { generateKeyPairFromSeed } from \'@stablelib/ed25519\'; <br />import { EdDSASigner, hexToBytes } from \'did-jwt\'; <br /><br />const key = generateKeyPairFromSeed(hexToBytes(SECRET_HEX)); <br />const signerFn = EdDSASigner(key.secretKey); <br /><br />const signature = await signerFn(unsignedJwt); <br />const vcJwt = [unsignedJwt, signature].join(\'.\');</code></pre><hr /><br /><h4>Issuer property caveat</h4><p>We use <b>openapi-generator</b> to generate Typescript SDK for the given API swagger definition. However, <b>openapi-generator</b> does not support <b>oneOf</b> configuration properly and generates an invalid Typescript SDK. To avoid the problem, swagger defines <b>issuer</b> property only as string for the moment. While in fact, endpoint accepts issuer as an object in format of <code>{id: string; name: string;}</code> as well.</p>
307
+ * <h4>Requires the following security rights:</h4><ul><li><code>vc:org:manage</code></li></ul><br /><hr /><p>Generates unsigned verifiable credential token in JWT format. Client is expected to sign it with a private key.</p><hr /><p>An example of how credential signing in Javascript:</p><pre><code>import { generateKeyPairFromSeed } from \'@stablelib/ed25519\'; <br />import { EdDSASigner, hexToBytes } from \'did-jwt\'; <br /><br />const key = generateKeyPairFromSeed(hexToBytes(SECRET_HEX)); <br />const signerFn = EdDSASigner(key.secretKey); <br /><br />const signature = await signerFn(unsignedJwt); <br />const vcJwt = [unsignedJwt, signature].join(\'.\');</code></pre><hr /><br /><h4>Issuer property caveat</h4><p>We use <b>openapi-generator</b> to generate Typescript SDK for the given API swagger definition. However, <b>openapi-generator</b> does not support <b>oneOf</b> configuration properly and generates an invalid Typescript SDK. To avoid the problem, swagger defines <b>issuer</b> property only as string for the moment. While in fact, endpoint accepts issuer as an object in format of <code>{id: string; name: string;}</code> as well.</p><br /><h4>Type property caveat</h4><p> <code>Type</code> is required for <code>vc+sd-jwt</code> format and must be a string <br /> however, endpoint accepts <code>Type</code> as an Array of string for <code>JWT VC</code> in format of <code>[\"VerifiableCredential\", \"AlumniCredential\"]</code> as well. <br /></p>
308
308
  * Generate credential based on type and claims provided
309
309
  */
310
310
  credentialsGeneratePostRaw(requestParameters, initOverrides) {
@@ -342,7 +342,7 @@ export class VerifiableCredentialsApi extends runtime.BaseAPI {
342
342
  });
343
343
  }
344
344
  /**
345
- * <h4>Requires the following security rights:</h4><ul><li><code>vc:org:manage</code></li></ul><br /><hr /><p>Generates unsigned verifiable credential token in JWT format. Client is expected to sign it with a private key.</p><hr /><p>An example of how credential signing in Javascript:</p><pre><code>import { generateKeyPairFromSeed } from \'@stablelib/ed25519\'; <br />import { EdDSASigner, hexToBytes } from \'did-jwt\'; <br /><br />const key = generateKeyPairFromSeed(hexToBytes(SECRET_HEX)); <br />const signerFn = EdDSASigner(key.secretKey); <br /><br />const signature = await signerFn(unsignedJwt); <br />const vcJwt = [unsignedJwt, signature].join(\'.\');</code></pre><hr /><br /><h4>Issuer property caveat</h4><p>We use <b>openapi-generator</b> to generate Typescript SDK for the given API swagger definition. However, <b>openapi-generator</b> does not support <b>oneOf</b> configuration properly and generates an invalid Typescript SDK. To avoid the problem, swagger defines <b>issuer</b> property only as string for the moment. While in fact, endpoint accepts issuer as an object in format of <code>{id: string; name: string;}</code> as well.</p>
345
+ * <h4>Requires the following security rights:</h4><ul><li><code>vc:org:manage</code></li></ul><br /><hr /><p>Generates unsigned verifiable credential token in JWT format. Client is expected to sign it with a private key.</p><hr /><p>An example of how credential signing in Javascript:</p><pre><code>import { generateKeyPairFromSeed } from \'@stablelib/ed25519\'; <br />import { EdDSASigner, hexToBytes } from \'did-jwt\'; <br /><br />const key = generateKeyPairFromSeed(hexToBytes(SECRET_HEX)); <br />const signerFn = EdDSASigner(key.secretKey); <br /><br />const signature = await signerFn(unsignedJwt); <br />const vcJwt = [unsignedJwt, signature].join(\'.\');</code></pre><hr /><br /><h4>Issuer property caveat</h4><p>We use <b>openapi-generator</b> to generate Typescript SDK for the given API swagger definition. However, <b>openapi-generator</b> does not support <b>oneOf</b> configuration properly and generates an invalid Typescript SDK. To avoid the problem, swagger defines <b>issuer</b> property only as string for the moment. While in fact, endpoint accepts issuer as an object in format of <code>{id: string; name: string;}</code> as well.</p><br /><h4>Type property caveat</h4><p> <code>Type</code> is required for <code>vc+sd-jwt</code> format and must be a string <br /> however, endpoint accepts <code>Type</code> as an Array of string for <code>JWT VC</code> in format of <code>[\"VerifiableCredential\", \"AlumniCredential\"]</code> as well. <br /></p>
346
346
  * Generate credential based on type and claims provided
347
347
  */
348
348
  credentialsGeneratePost(meecoOrganisationID, vCGenerateCredentialPayloadDto, accept, initOverrides) {
@@ -13,9 +13,9 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  /**
16
- * Check if a given object implements the ATOMOrgIdAndName interface.
16
+ * Check if a given object implements the ATOMAdministeredArchivedOrg interface.
17
17
  */
18
- export function instanceOfATOMOrgIdAndName(value) {
18
+ export function instanceOfATOMAdministeredArchivedOrg(value) {
19
19
  let isInstance = true;
20
20
  isInstance = isInstance && "color" in value;
21
21
  isInstance = isInstance && "id" in value;
@@ -24,10 +24,10 @@ export function instanceOfATOMOrgIdAndName(value) {
24
24
  isInstance = isInstance && "tenant_id" in value;
25
25
  return isInstance;
26
26
  }
27
- export function ATOMOrgIdAndNameFromJSON(json) {
28
- return ATOMOrgIdAndNameFromJSONTyped(json, false);
27
+ export function ATOMAdministeredArchivedOrgFromJSON(json) {
28
+ return ATOMAdministeredArchivedOrgFromJSONTyped(json, false);
29
29
  }
30
- export function ATOMOrgIdAndNameFromJSONTyped(json, ignoreDiscriminator) {
30
+ export function ATOMAdministeredArchivedOrgFromJSONTyped(json, ignoreDiscriminator) {
31
31
  if ((json === undefined) || (json === null)) {
32
32
  return json;
33
33
  }
@@ -40,7 +40,7 @@ export function ATOMOrgIdAndNameFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'tenant_id': json['tenant_id'],
41
41
  };
42
42
  }
43
- export function ATOMOrgIdAndNameToJSON(value) {
43
+ export function ATOMAdministeredArchivedOrgToJSON(value) {
44
44
  if (value === undefined) {
45
45
  return undefined;
46
46
  }
@@ -0,0 +1,60 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * SVX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.3.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the ATOMAdministeredOrg interface.
17
+ */
18
+ export function instanceOfATOMAdministeredOrg(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "color" in value;
21
+ isInstance = isInstance && "id" in value;
22
+ isInstance = isInstance && "logo_url" in value;
23
+ isInstance = isInstance && "name" in value;
24
+ isInstance = isInstance && "tenant_id" in value;
25
+ return isInstance;
26
+ }
27
+ export function ATOMAdministeredOrgFromJSON(json) {
28
+ return ATOMAdministeredOrgFromJSONTyped(json, false);
29
+ }
30
+ export function ATOMAdministeredOrgFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'color': json['color'],
36
+ 'id': json['id'],
37
+ 'logo_url': json['logo_url'],
38
+ 'name': json['name'],
39
+ 'tenant_active': !exists(json, 'tenant_active') ? undefined : json['tenant_active'],
40
+ 'tenant_id': json['tenant_id'],
41
+ 'user_became_org_admin_at': !exists(json, 'user_became_org_admin_at') ? undefined : (new Date(json['user_became_org_admin_at'])),
42
+ };
43
+ }
44
+ export function ATOMAdministeredOrgToJSON(value) {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ return {
52
+ 'color': value.color,
53
+ 'id': value.id,
54
+ 'logo_url': value.logo_url,
55
+ 'name': value.name,
56
+ 'tenant_active': value.tenant_active,
57
+ 'tenant_id': value.tenant_id,
58
+ 'user_became_org_admin_at': value.user_became_org_admin_at === undefined ? undefined : (value.user_became_org_admin_at.toISOString()),
59
+ };
60
+ }
@@ -11,7 +11,9 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { ATOMOrgIdAndNameFromJSON, ATOMOrgIdAndNameToJSON, } from './ATOMOrgIdAndName';
14
+ import { exists } from '../runtime';
15
+ import { ATOMAdministeredArchivedOrgFromJSON, ATOMAdministeredArchivedOrgToJSON, } from './ATOMAdministeredArchivedOrg';
16
+ import { ATOMAdministeredOrgFromJSON, ATOMAdministeredOrgToJSON, } from './ATOMAdministeredOrg';
15
17
  import { ATOMTenantIdAndNameFromJSON, ATOMTenantIdAndNameToJSON, } from './ATOMTenantIdAndName';
16
18
  import { ATOMTenantInJwtForWhoAmIFromJSON, ATOMTenantInJwtForWhoAmIToJSON, } from './ATOMTenantInJwtForWhoAmI';
17
19
  /**
@@ -37,7 +39,9 @@ export function ATOMWhoAmIFromJSONTyped(json, ignoreDiscriminator) {
37
39
  return json;
38
40
  }
39
41
  return {
40
- 'administered_orgs': (json['administered_orgs'].map(ATOMOrgIdAndNameFromJSON)),
42
+ 'administered_archived_orgs': !exists(json, 'administered_archived_orgs') ? undefined : (json['administered_archived_orgs'].map(ATOMAdministeredArchivedOrgFromJSON)),
43
+ 'administered_archived_tenants': !exists(json, 'administered_archived_tenants') ? undefined : (json['administered_archived_tenants'].map(ATOMTenantIdAndNameFromJSON)),
44
+ 'administered_orgs': (json['administered_orgs'].map(ATOMAdministeredOrgFromJSON)),
41
45
  'administered_tenants': (json['administered_tenants'].map(ATOMTenantIdAndNameFromJSON)),
42
46
  'family_name': json['family_name'],
43
47
  'given_name': json['given_name'],
@@ -55,7 +59,9 @@ export function ATOMWhoAmIToJSON(value) {
55
59
  return null;
56
60
  }
57
61
  return {
58
- 'administered_orgs': (value.administered_orgs.map(ATOMOrgIdAndNameToJSON)),
62
+ 'administered_archived_orgs': value.administered_archived_orgs === undefined ? undefined : (value.administered_archived_orgs.map(ATOMAdministeredArchivedOrgToJSON)),
63
+ 'administered_archived_tenants': value.administered_archived_tenants === undefined ? undefined : (value.administered_archived_tenants.map(ATOMTenantIdAndNameToJSON)),
64
+ 'administered_orgs': (value.administered_orgs.map(ATOMAdministeredOrgToJSON)),
59
65
  'administered_tenants': (value.administered_tenants.map(ATOMTenantIdAndNameToJSON)),
60
66
  'family_name': value.family_name,
61
67
  'given_name': value.given_name,
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * SVX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.3.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the IDPForgotPasswordDto interface.
16
+ */
17
+ export function instanceOfIDPForgotPasswordDto(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "g_recaptcha_response" in value;
20
+ return isInstance;
21
+ }
22
+ export function IDPForgotPasswordDtoFromJSON(json) {
23
+ return IDPForgotPasswordDtoFromJSONTyped(json, false);
24
+ }
25
+ export function IDPForgotPasswordDtoFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'g_recaptcha_response': json['g-recaptcha-response'],
31
+ };
32
+ }
33
+ export function IDPForgotPasswordDtoToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'g-recaptcha-response': value.g_recaptcha_response,
42
+ };
43
+ }
@@ -16,6 +16,7 @@
16
16
  */
17
17
  export function instanceOfIDPLoginRequestDto(value) {
18
18
  let isInstance = true;
19
+ isInstance = isInstance && "g_recaptcha_response" in value;
19
20
  isInstance = isInstance && "user" in value;
20
21
  isInstance = isInstance && "password" in value;
21
22
  return isInstance;
@@ -28,6 +29,7 @@ export function IDPLoginRequestDtoFromJSONTyped(json, ignoreDiscriminator) {
28
29
  return json;
29
30
  }
30
31
  return {
32
+ 'g_recaptcha_response': json['g-recaptcha-response'],
31
33
  'user': json['user'],
32
34
  'password': json['password'],
33
35
  };
@@ -40,6 +42,7 @@ export function IDPLoginRequestDtoToJSON(value) {
40
42
  return null;
41
43
  }
42
44
  return {
45
+ 'g-recaptcha-response': value.g_recaptcha_response,
43
46
  'user': value.user,
44
47
  'password': value.password,
45
48
  };
@@ -12,25 +12,25 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  /**
15
- * Check if a given object implements the VCGenerateCredentialDtoCnf interface.
15
+ * Check if a given object implements the IDPResetPasswordDto interface.
16
16
  */
17
- export function instanceOfVCGenerateCredentialDtoCnf(value) {
17
+ export function instanceOfIDPResetPasswordDto(value) {
18
18
  let isInstance = true;
19
- isInstance = isInstance && "jwk" in value;
19
+ isInstance = isInstance && "g_recaptcha_response" in value;
20
20
  return isInstance;
21
21
  }
22
- export function VCGenerateCredentialDtoCnfFromJSON(json) {
23
- return VCGenerateCredentialDtoCnfFromJSONTyped(json, false);
22
+ export function IDPResetPasswordDtoFromJSON(json) {
23
+ return IDPResetPasswordDtoFromJSONTyped(json, false);
24
24
  }
25
- export function VCGenerateCredentialDtoCnfFromJSONTyped(json, ignoreDiscriminator) {
25
+ export function IDPResetPasswordDtoFromJSONTyped(json, ignoreDiscriminator) {
26
26
  if ((json === undefined) || (json === null)) {
27
27
  return json;
28
28
  }
29
29
  return {
30
- 'jwk': json['jwk'],
30
+ 'g_recaptcha_response': json['g-recaptcha-response'],
31
31
  };
32
32
  }
33
- export function VCGenerateCredentialDtoCnfToJSON(value) {
33
+ export function IDPResetPasswordDtoToJSON(value) {
34
34
  if (value === undefined) {
35
35
  return undefined;
36
36
  }
@@ -38,6 +38,6 @@ export function VCGenerateCredentialDtoCnfToJSON(value) {
38
38
  return null;
39
39
  }
40
40
  return {
41
- 'jwk': value.jwk,
41
+ 'g-recaptcha-response': value.g_recaptcha_response,
42
42
  };
43
43
  }
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * SVX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.3.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { exists } from '../runtime';
15
+ import { VCCnfDtoFromJSON, VCCnfDtoToJSON, } from './VCCnfDto';
16
+ /**
17
+ * Check if a given object implements the VCClaimsDto interface.
18
+ */
19
+ export function instanceOfVCClaimsDto(value) {
20
+ let isInstance = true;
21
+ return isInstance;
22
+ }
23
+ export function VCClaimsDtoFromJSON(json) {
24
+ return VCClaimsDtoFromJSONTyped(json, false);
25
+ }
26
+ export function VCClaimsDtoFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'id': !exists(json, 'id') ? undefined : json['id'],
32
+ 'cnf': !exists(json, 'cnf') ? undefined : VCCnfDtoFromJSON(json['cnf']),
33
+ };
34
+ }
35
+ export function VCClaimsDtoToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'id': value.id,
44
+ 'cnf': VCCnfDtoToJSON(value.cnf),
45
+ };
46
+ }
@@ -21,7 +21,8 @@ export const VCCredentialVerificationResultResponseDtoChecksEnum = {
21
21
  Expiration: 'expiration',
22
22
  Nonce: 'nonce',
23
23
  Schema: 'schema',
24
- RevocationStatus: 'revocation_status'
24
+ RevocationStatus: 'revocation_status',
25
+ Constraints: 'constraints'
25
26
  };
26
27
  /**
27
28
  * Check if a given object implements the VCCredentialVerificationResultResponseDto interface.
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
+ import { VCFieldsDtoFilterFromJSON, VCFieldsDtoFilterToJSON, } from './VCFieldsDtoFilter';
15
16
  /**
16
17
  * Check if a given object implements the VCFieldsDto interface.
17
18
  */
@@ -30,7 +31,7 @@ export function VCFieldsDtoFromJSONTyped(json, ignoreDiscriminator) {
30
31
  return {
31
32
  'path': json['path'],
32
33
  'purpose': !exists(json, 'purpose') ? undefined : json['purpose'],
33
- 'filter': !exists(json, 'filter') ? undefined : json['filter'],
34
+ 'filter': !exists(json, 'filter') ? undefined : VCFieldsDtoFilterFromJSON(json['filter']),
34
35
  };
35
36
  }
36
37
  export function VCFieldsDtoToJSON(value) {
@@ -43,6 +44,6 @@ export function VCFieldsDtoToJSON(value) {
43
44
  return {
44
45
  'path': value.path,
45
46
  'purpose': value.purpose,
46
- 'filter': value.filter,
47
+ 'filter': VCFieldsDtoFilterToJSON(value.filter),
47
48
  };
48
49
  }
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * SVX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.3.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the VCFieldsDtoFilter interface.
17
+ */
18
+ export function instanceOfVCFieldsDtoFilter(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "type" in value;
21
+ return isInstance;
22
+ }
23
+ export function VCFieldsDtoFilterFromJSON(json) {
24
+ return VCFieldsDtoFilterFromJSONTyped(json, false);
25
+ }
26
+ export function VCFieldsDtoFilterFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'type': json['type'],
32
+ '_const': !exists(json, 'const') ? undefined : json['const'],
33
+ 'pattern': !exists(json, 'pattern') ? undefined : json['pattern'],
34
+ };
35
+ }
36
+ export function VCFieldsDtoFilterToJSON(value) {
37
+ if (value === undefined) {
38
+ return undefined;
39
+ }
40
+ if (value === null) {
41
+ return null;
42
+ }
43
+ return {
44
+ 'type': value.type,
45
+ 'const': value._const,
46
+ 'pattern': value.pattern,
47
+ };
48
+ }
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * SVX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.3.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the VCFilterDto interface.
17
+ */
18
+ export function instanceOfVCFilterDto(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "type" in value;
21
+ return isInstance;
22
+ }
23
+ export function VCFilterDtoFromJSON(json) {
24
+ return VCFilterDtoFromJSONTyped(json, false);
25
+ }
26
+ export function VCFilterDtoFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'type': json['type'],
32
+ '_const': !exists(json, 'const') ? undefined : json['const'],
33
+ 'pattern': !exists(json, 'pattern') ? undefined : json['pattern'],
34
+ };
35
+ }
36
+ export function VCFilterDtoToJSON(value) {
37
+ if (value === undefined) {
38
+ return undefined;
39
+ }
40
+ if (value === null) {
41
+ return null;
42
+ }
43
+ return {
44
+ 'type': value.type,
45
+ 'const': value._const,
46
+ 'pattern': value.pattern,
47
+ };
48
+ }
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
- import { VCGenerateCredentialDtoCnfFromJSON, VCGenerateCredentialDtoCnfToJSON, } from './VCGenerateCredentialDtoCnf';
15
+ import { VCGenerateCredentialDtoClaimsFromJSON, VCGenerateCredentialDtoClaimsToJSON, } from './VCGenerateCredentialDtoClaims';
16
16
  /**
17
17
  * Check if a given object implements the VCGenerateCredentialDto interface.
18
18
  */
@@ -33,10 +33,10 @@ export function VCGenerateCredentialDtoFromJSONTyped(json, ignoreDiscriminator)
33
33
  return {
34
34
  'credential_type_id': json['credential_type_id'],
35
35
  'issuer': json['issuer'],
36
- 'claims': json['claims'],
36
+ 'claims': VCGenerateCredentialDtoClaimsFromJSON(json['claims']),
37
37
  'revocable': !exists(json, 'revocable') ? undefined : json['revocable'],
38
38
  'expires_at': !exists(json, 'expires_at') ? undefined : (new Date(json['expires_at'])),
39
- 'cnf': !exists(json, 'cnf') ? undefined : VCGenerateCredentialDtoCnfFromJSON(json['cnf']),
39
+ 'type': !exists(json, 'type') ? undefined : json['type'],
40
40
  };
41
41
  }
42
42
  export function VCGenerateCredentialDtoToJSON(value) {
@@ -49,9 +49,9 @@ export function VCGenerateCredentialDtoToJSON(value) {
49
49
  return {
50
50
  'credential_type_id': value.credential_type_id,
51
51
  'issuer': value.issuer,
52
- 'claims': value.claims,
52
+ 'claims': VCGenerateCredentialDtoClaimsToJSON(value.claims),
53
53
  'revocable': value.revocable,
54
54
  'expires_at': value.expires_at === undefined ? undefined : (value.expires_at.toISOString()),
55
- 'cnf': VCGenerateCredentialDtoCnfToJSON(value.cnf),
55
+ 'type': value.type,
56
56
  };
57
57
  }