@truvity/sdk 0.33.1 → 0.36.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ExtendedClient.d.ts +7 -1
- package/ExtendedClient.d.ts.map +1 -1
- package/ExtendedClient.js +19 -0
- package/ExtendedClient.js.map +1 -1
- package/api/errors/ServiceUnavailableError.d.ts +10 -0
- package/api/errors/ServiceUnavailableError.d.ts.map +1 -0
- package/api/errors/ServiceUnavailableError.js +53 -0
- package/api/errors/ServiceUnavailableError.js.map +1 -0
- package/api/errors/index.d.ts +1 -0
- package/api/errors/index.d.ts.map +1 -1
- package/api/errors/index.js +1 -0
- package/api/errors/index.js.map +1 -1
- package/api/resources/apiKeys/client/Client.js +9 -9
- package/api/resources/apiKeys/client/Client.js.map +1 -1
- package/api/resources/credentials/client/Client.js +12 -12
- package/api/resources/credentials/client/Client.js.map +1 -1
- package/api/resources/credentials/client/requests/CredentialInput.d.ts +1 -2
- package/api/resources/credentials/client/requests/CredentialInput.d.ts.map +1 -1
- package/api/resources/credentials/client/requests/CredentialInput.js.map +1 -1
- package/api/resources/desk/client/Client.js +2 -2
- package/api/resources/desk/client/Client.js.map +1 -1
- package/api/resources/didcommMessages/client/Client.d.ts +2 -2
- package/api/resources/didcommMessages/client/Client.js +11 -11
- package/api/resources/didcommMessages/client/Client.js.map +1 -1
- package/api/resources/didcommMessages/client/requests/DidCommMessageSendInput.d.ts +3 -3
- package/api/resources/didcommMessages/client/requests/DidCommMessageSendInput.d.ts.map +1 -1
- package/api/resources/didcommMessages/client/requests/DidCommMessageSendInput.js.map +1 -1
- package/api/resources/dids/client/Client.js +1 -1
- package/api/resources/dids/client/Client.js.map +1 -1
- package/api/resources/drafts/client/Client.d.ts +75 -7
- package/api/resources/drafts/client/Client.d.ts.map +1 -1
- package/api/resources/drafts/client/Client.js +214 -19
- package/api/resources/drafts/client/Client.js.map +1 -1
- package/api/resources/drafts/client/requests/DraftInput.d.ts +3 -3
- package/api/resources/drafts/client/requests/DraftInput.d.ts.map +1 -1
- package/api/resources/drafts/client/requests/DraftInput.js.map +1 -1
- package/api/resources/drafts/client/requests/DraftIssue.d.ts +6 -2
- package/api/resources/drafts/client/requests/DraftIssue.d.ts.map +1 -1
- package/api/resources/drafts/client/requests/DraftIssue.js.map +1 -1
- package/api/resources/drafts/client/requests/DraftLatestIssueRequest.d.ts +44 -0
- package/api/resources/drafts/client/requests/DraftLatestIssueRequest.d.ts.map +1 -0
- package/api/resources/drafts/client/requests/DraftLatestIssueRequest.js +6 -0
- package/api/resources/drafts/client/requests/DraftLatestIssueRequest.js.map +1 -0
- package/api/resources/drafts/client/requests/index.d.ts +1 -0
- package/api/resources/drafts/client/requests/index.d.ts.map +1 -1
- package/api/resources/drafts/client/requests/index.js.map +1 -1
- package/api/resources/drafts/types/DraftLatestIssueRequestDidMethod.d.ts +12 -0
- package/api/resources/drafts/types/DraftLatestIssueRequestDidMethod.d.ts.map +1 -0
- package/api/resources/drafts/types/DraftLatestIssueRequestDidMethod.js +11 -0
- package/api/resources/drafts/types/DraftLatestIssueRequestDidMethod.js.map +1 -0
- package/api/resources/drafts/types/index.d.ts +1 -0
- package/api/resources/drafts/types/index.d.ts.map +1 -1
- package/api/resources/drafts/types/index.js +1 -0
- package/api/resources/drafts/types/index.js.map +1 -1
- package/api/resources/files/client/Client.js +11 -11
- package/api/resources/files/client/Client.js.map +1 -1
- package/api/resources/files/client/requests/FileInput.d.ts +1 -2
- package/api/resources/files/client/requests/FileInput.d.ts.map +1 -1
- package/api/resources/files/client/requests/FileInput.js.map +1 -1
- package/api/resources/gdpr/client/Client.js +1 -1
- package/api/resources/gdpr/client/Client.js.map +1 -1
- package/api/resources/keys/client/Client.js +13 -13
- package/api/resources/keys/client/Client.js.map +1 -1
- package/api/resources/keys/client/requests/KeyGenerateInput.d.ts +1 -1
- package/api/resources/keys/client/requests/KeyGenerateInput.d.ts.map +1 -1
- package/api/resources/keys/client/requests/KeyGenerateInput.js.map +1 -1
- package/api/resources/keys/client/requests/KeyImportSecretInput.d.ts +2 -2
- package/api/resources/keys/client/requests/KeyImportSecretInput.d.ts.map +1 -1
- package/api/resources/keys/client/requests/KeyImportSecretInput.js.map +1 -1
- package/api/resources/presentations/client/Client.d.ts +2 -2
- package/api/resources/presentations/client/Client.js +16 -16
- package/api/resources/presentations/client/Client.js.map +1 -1
- package/api/resources/presentations/client/requests/PresentationExport.d.ts +1 -1
- package/api/resources/presentations/client/requests/PresentationExport.d.ts.map +1 -1
- package/api/resources/presentations/client/requests/PresentationExport.js.map +1 -1
- package/api/resources/presentations/client/requests/PresentationInput.d.ts +1 -2
- package/api/resources/presentations/client/requests/PresentationInput.d.ts.map +1 -1
- package/api/resources/presentations/client/requests/PresentationInput.js.map +1 -1
- package/api/resources/presentations/client/requests/PresentationIssue.d.ts +4 -4
- package/api/resources/presentations/client/requests/PresentationIssue.d.ts.map +1 -1
- package/api/resources/presentations/client/requests/PresentationIssue.js.map +1 -1
- package/api/types/ApiKeyFull.d.ts +2 -2
- package/api/types/ApiKeyFull.d.ts.map +1 -1
- package/api/types/ApiKeyFull.js.map +1 -1
- package/api/types/Credential.d.ts +12 -8
- package/api/types/Credential.d.ts.map +1 -1
- package/api/types/Credential.js.map +1 -1
- package/api/types/Credential11.d.ts +7 -7
- package/api/types/Credential11.d.ts.map +1 -1
- package/api/types/Credential11.js.map +1 -1
- package/api/types/CredentialFilter.d.ts +4 -1
- package/api/types/CredentialFilter.d.ts.map +1 -1
- package/api/types/CredentialFilter.js.map +1 -1
- package/api/types/CredentialFilterData.d.ts +1 -1
- package/api/types/CredentialFilterData.d.ts.map +1 -1
- package/api/types/CredentialFilterData.js.map +1 -1
- package/api/types/CredentialProof.d.ts +2 -2
- package/api/types/CredentialProof.d.ts.map +1 -1
- package/api/types/CredentialProof.js.map +1 -1
- package/api/types/DidCommMessage.d.ts +3 -3
- package/api/types/DidCommMessage.d.ts.map +1 -1
- package/api/types/DidCommMessage.js.map +1 -1
- package/api/types/DidCommMessageSend.d.ts +7 -7
- package/api/types/DidCommMessageSend.d.ts.map +1 -1
- package/api/types/DidCommMessageSend.js.map +1 -1
- package/api/types/DidDocument.d.ts +6 -6
- package/api/types/DidDocument.d.ts.map +1 -1
- package/api/types/DidDocument.js.map +1 -1
- package/api/types/Draft.d.ts +8 -4
- package/api/types/Draft.d.ts.map +1 -1
- package/api/types/Draft.js.map +1 -1
- package/api/types/DraftCreate.d.ts +2 -2
- package/api/types/DraftCreate.d.ts.map +1 -1
- package/api/types/DraftCreate.js.map +1 -1
- package/api/types/DraftEnumValue.d.ts +2 -2
- package/api/types/DraftEnumValue.d.ts.map +1 -1
- package/api/types/DraftEnumValue.js.map +1 -1
- package/api/types/DraftFieldBooleanValue.d.ts +2 -2
- package/api/types/DraftFieldBooleanValue.d.ts.map +1 -1
- package/api/types/DraftFieldBooleanValue.js.map +1 -1
- package/api/types/DraftFieldDateTimeValue.d.ts +2 -2
- package/api/types/DraftFieldDateTimeValue.d.ts.map +1 -1
- package/api/types/DraftFieldDateTimeValue.js.map +1 -1
- package/api/types/DraftFieldDateValue.d.ts +2 -2
- package/api/types/DraftFieldDateValue.d.ts.map +1 -1
- package/api/types/DraftFieldDateValue.js.map +1 -1
- package/api/types/DraftFieldFileValue.d.ts +2 -2
- package/api/types/DraftFieldFileValue.d.ts.map +1 -1
- package/api/types/DraftFieldFileValue.js.map +1 -1
- package/api/types/DraftFieldLinkValue.d.ts +2 -2
- package/api/types/DraftFieldLinkValue.d.ts.map +1 -1
- package/api/types/DraftFieldLinkValue.js.map +1 -1
- package/api/types/DraftFieldNumberValue.d.ts +2 -2
- package/api/types/DraftFieldNumberValue.d.ts.map +1 -1
- package/api/types/DraftFieldNumberValue.js.map +1 -1
- package/api/types/DraftFieldStringValue.d.ts +2 -2
- package/api/types/DraftFieldStringValue.d.ts.map +1 -1
- package/api/types/DraftFieldStringValue.js.map +1 -1
- package/api/types/DraftFieldStructValue.d.ts +6 -6
- package/api/types/DraftFieldStructValue.d.ts.map +1 -1
- package/api/types/DraftFieldStructValue.js.map +1 -1
- package/api/types/DraftFilter.d.ts +4 -1
- package/api/types/DraftFilter.d.ts.map +1 -1
- package/api/types/DraftFilter.js.map +1 -1
- package/api/types/DraftFilterData.d.ts +1 -1
- package/api/types/DraftFilterData.d.ts.map +1 -1
- package/api/types/DraftFilterData.js.map +1 -1
- package/api/types/DraftSchema.d.ts +11 -11
- package/api/types/DraftSchema.d.ts.map +1 -1
- package/api/types/DraftSchema.js.map +1 -1
- package/api/types/DraftUpdate.d.ts +0 -2
- package/api/types/DraftUpdate.d.ts.map +1 -1
- package/api/types/DraftUpdate.js.map +1 -1
- package/api/types/EcdsaSecp256K1VerificationKey2019.d.ts +6 -6
- package/api/types/EcdsaSecp256K1VerificationKey2019.d.ts.map +1 -1
- package/api/types/EcdsaSecp256K1VerificationKey2019.js.map +1 -1
- package/api/types/ErrorModel.d.ts +4 -4
- package/api/types/ErrorModel.d.ts.map +1 -1
- package/api/types/ErrorModel.js.map +1 -1
- package/api/types/File_.d.ts +4 -4
- package/api/types/File_.d.ts.map +1 -1
- package/api/types/File_.js.map +1 -1
- package/api/types/KeyFilterData.d.ts +1 -1
- package/api/types/KeyFilterData.d.ts.map +1 -1
- package/api/types/KeyFilterData.js.map +1 -1
- package/api/types/KeyPublic.d.ts +20 -20
- package/api/types/KeyPublic.d.ts.map +1 -1
- package/api/types/KeyPublic.js.map +1 -1
- package/api/types/LinkedRef.d.ts +22 -0
- package/api/types/LinkedRef.d.ts.map +1 -0
- package/api/types/LinkedRef.js +6 -0
- package/api/types/LinkedRef.js.map +1 -0
- package/api/types/LinkedResourceRef.d.ts +14 -0
- package/api/types/LinkedResourceRef.d.ts.map +1 -0
- package/api/types/LinkedResourceRef.js +6 -0
- package/api/types/LinkedResourceRef.js.map +1 -0
- package/api/types/Presentation.d.ts +9 -6
- package/api/types/Presentation.d.ts.map +1 -1
- package/api/types/Presentation.js.map +1 -1
- package/api/types/PresentationFilter.d.ts +3 -1
- package/api/types/PresentationFilter.d.ts.map +1 -1
- package/api/types/PresentationFilter.js.map +1 -1
- package/api/types/PresentationFilterData.d.ts +1 -1
- package/api/types/PresentationFilterData.d.ts.map +1 -1
- package/api/types/PresentationFilterData.js.map +1 -1
- package/api/types/ProblemBadRequest.d.ts +4 -4
- package/api/types/ProblemBadRequest.d.ts.map +1 -1
- package/api/types/ProblemBadRequest.js.map +1 -1
- package/api/types/ProblemBadRequestBlobEmptyData.d.ts +4 -4
- package/api/types/ProblemBadRequestBlobEmptyData.d.ts.map +1 -1
- package/api/types/ProblemBadRequestBlobEmptyData.js.map +1 -1
- package/api/types/ProblemBadRequestBlobInvalidJson.d.ts +4 -4
- package/api/types/ProblemBadRequestBlobInvalidJson.d.ts.map +1 -1
- package/api/types/ProblemBadRequestBlobInvalidJson.js.map +1 -1
- package/api/types/ProblemBadRequestHasNullUnicodeCharacter.d.ts +4 -4
- package/api/types/ProblemBadRequestHasNullUnicodeCharacter.d.ts.map +1 -1
- package/api/types/ProblemBadRequestHasNullUnicodeCharacter.js.map +1 -1
- package/api/types/ProblemBlobNotFound.d.ts +9 -9
- package/api/types/ProblemBlobNotFound.d.ts.map +1 -1
- package/api/types/ProblemBlobNotFound.js.map +1 -1
- package/api/types/ProblemConflict.d.ts +4 -4
- package/api/types/ProblemConflict.d.ts.map +1 -1
- package/api/types/ProblemConflict.js.map +1 -1
- package/api/types/ProblemConflictBlobRestoreInProgress.d.ts +4 -4
- package/api/types/ProblemConflictBlobRestoreInProgress.d.ts.map +1 -1
- package/api/types/ProblemConflictBlobRestoreInProgress.js.map +1 -1
- package/api/types/ProblemConflictResource.d.ts +4 -4
- package/api/types/ProblemConflictResource.d.ts.map +1 -1
- package/api/types/ProblemConflictResource.js.map +1 -1
- package/api/types/ProblemForbidden.d.ts +4 -4
- package/api/types/ProblemForbidden.d.ts.map +1 -1
- package/api/types/ProblemForbidden.js.map +1 -1
- package/api/types/ProblemInternalServerError.d.ts +6 -6
- package/api/types/ProblemInternalServerError.d.ts.map +1 -1
- package/api/types/ProblemInternalServerError.js.map +1 -1
- package/api/types/ProblemMethodNotAllowed.d.ts +4 -4
- package/api/types/ProblemMethodNotAllowed.d.ts.map +1 -1
- package/api/types/ProblemMethodNotAllowed.js.map +1 -1
- package/api/types/ProblemMethodNotAllowedAlive.d.ts +4 -4
- package/api/types/ProblemMethodNotAllowedAlive.d.ts.map +1 -1
- package/api/types/ProblemMethodNotAllowedAlive.js.map +1 -1
- package/api/types/ProblemMethodNotAllowedDeleted.d.ts +4 -4
- package/api/types/ProblemMethodNotAllowedDeleted.d.ts.map +1 -1
- package/api/types/ProblemMethodNotAllowedDeleted.js.map +1 -1
- package/api/types/ProblemMethodNotAllowedRoute.d.ts +4 -4
- package/api/types/ProblemMethodNotAllowedRoute.d.ts.map +1 -1
- package/api/types/ProblemMethodNotAllowedRoute.js.map +1 -1
- package/api/types/ProblemNotFound.d.ts +4 -4
- package/api/types/ProblemNotFound.d.ts.map +1 -1
- package/api/types/ProblemNotFound.js.map +1 -1
- package/api/types/ProblemPreconditionFailed.d.ts +4 -4
- package/api/types/ProblemPreconditionFailed.d.ts.map +1 -1
- package/api/types/ProblemPreconditionFailed.js.map +1 -1
- package/api/types/ProblemPreconditionFailedBlob.d.ts +9 -9
- package/api/types/ProblemPreconditionFailedBlob.d.ts.map +1 -1
- package/api/types/ProblemPreconditionFailedBlob.js.map +1 -1
- package/api/types/ProblemPreconditionFailedResource.d.ts +5 -5
- package/api/types/ProblemPreconditionFailedResource.d.ts.map +1 -1
- package/api/types/ProblemPreconditionFailedResource.js.map +1 -1
- package/api/types/ProblemResourceNotFound.d.ts +9 -9
- package/api/types/ProblemResourceNotFound.d.ts.map +1 -1
- package/api/types/ProblemResourceNotFound.js.map +1 -1
- package/api/types/ProblemResourceRevisionNotFound.d.ts +5 -5
- package/api/types/ProblemResourceRevisionNotFound.d.ts.map +1 -1
- package/api/types/ProblemResourceRevisionNotFound.js.map +1 -1
- package/api/types/ProblemServiceUnavailable.d.ts +20 -0
- package/api/types/ProblemServiceUnavailable.d.ts.map +1 -0
- package/api/types/ProblemServiceUnavailable.js +6 -0
- package/api/types/ProblemServiceUnavailable.js.map +1 -0
- package/api/types/ProblemTooManyRequests.d.ts +4 -4
- package/api/types/ProblemTooManyRequests.d.ts.map +1 -1
- package/api/types/ProblemTooManyRequests.js.map +1 -1
- package/api/types/ProblemUnauthorized.d.ts +4 -4
- package/api/types/ProblemUnauthorized.d.ts.map +1 -1
- package/api/types/ProblemUnauthorized.js.map +1 -1
- package/api/types/ProblemUnsupportedMediaType.d.ts +4 -4
- package/api/types/ProblemUnsupportedMediaType.d.ts.map +1 -1
- package/api/types/ProblemUnsupportedMediaType.js.map +1 -1
- package/api/types/Resource.d.ts +11 -11
- package/api/types/Resource.d.ts.map +1 -1
- package/api/types/Resource.js.map +1 -1
- package/api/types/ResourceApiKey.d.ts +14 -14
- package/api/types/ResourceApiKey.d.ts.map +1 -1
- package/api/types/ResourceApiKey.js.map +1 -1
- package/api/types/ResourceApiKeyFull.d.ts +14 -14
- package/api/types/ResourceApiKeyFull.d.ts.map +1 -1
- package/api/types/ResourceApiKeyFull.js.map +1 -1
- package/api/types/ResourceCredential.d.ts +14 -14
- package/api/types/ResourceCredential.d.ts.map +1 -1
- package/api/types/ResourceCredential.js.map +1 -1
- package/api/types/ResourceDidCommMessage.d.ts +14 -14
- package/api/types/ResourceDidCommMessage.d.ts.map +1 -1
- package/api/types/ResourceDidCommMessage.js.map +1 -1
- package/api/types/ResourceDraft.d.ts +14 -14
- package/api/types/ResourceDraft.d.ts.map +1 -1
- package/api/types/ResourceDraft.js.map +1 -1
- package/api/types/ResourceFile.d.ts +14 -14
- package/api/types/ResourceFile.d.ts.map +1 -1
- package/api/types/ResourceFile.js.map +1 -1
- package/api/types/ResourceKeyPublic.d.ts +14 -14
- package/api/types/ResourceKeyPublic.d.ts.map +1 -1
- package/api/types/ResourceKeyPublic.js.map +1 -1
- package/api/types/ResourcePresentation.d.ts +14 -14
- package/api/types/ResourcePresentation.d.ts.map +1 -1
- package/api/types/ResourcePresentation.js.map +1 -1
- package/api/types/Service.d.ts +2 -2
- package/api/types/Service.d.ts.map +1 -1
- package/api/types/Service.js.map +1 -1
- package/api/types/ServiceUnavailableProblems.d.ts +14 -0
- package/api/types/ServiceUnavailableProblems.d.ts.map +1 -0
- package/api/types/ServiceUnavailableProblems.js +6 -0
- package/api/types/ServiceUnavailableProblems.js.map +1 -0
- package/api/types/UploadResponse.d.ts +1 -4
- package/api/types/UploadResponse.d.ts.map +1 -1
- package/api/types/UploadResponse.js.map +1 -1
- package/api/types/VerificationMethodMultikey.d.ts +6 -6
- package/api/types/VerificationMethodMultikey.d.ts.map +1 -1
- package/api/types/VerificationMethodMultikey.js.map +1 -1
- package/api/types/index.d.ts +8 -4
- package/api/types/index.d.ts.map +1 -1
- package/api/types/index.js +8 -4
- package/api/types/index.js.map +1 -1
- package/core/fetcher/Headers.d.ts +3 -0
- package/core/fetcher/Headers.d.ts.map +1 -0
- package/core/fetcher/Headers.js +85 -0
- package/core/fetcher/Headers.js.map +1 -0
- package/core/fetcher/RawResponse.d.ts.map +1 -1
- package/core/fetcher/RawResponse.js +3 -2
- package/core/fetcher/RawResponse.js.map +1 -1
- package/documents/credential/claims.d.ts.map +1 -1
- package/documents/credential/claims.js +10 -9
- package/documents/credential/claims.js.map +1 -1
- package/documents/credential.d.ts.map +1 -1
- package/documents/credential.js +3 -2
- package/documents/credential.js.map +1 -1
- package/documents/utils/error.d.ts +9 -0
- package/documents/utils/error.d.ts.map +1 -0
- package/documents/utils/error.js +14 -0
- package/documents/utils/error.js.map +1 -0
- package/documents/utils/error.spec.d.ts +2 -0
- package/documents/utils/error.spec.d.ts.map +1 -0
- package/documents/utils/error.spec.js +9 -0
- package/documents/utils/error.spec.js.map +1 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/middlewares/csrf/csrf.d.ts +27 -0
- package/middlewares/csrf/csrf.d.ts.map +1 -0
- package/middlewares/csrf/csrf.js +88 -0
- package/middlewares/csrf/csrf.js.map +1 -0
- package/middlewares/csrf/csrf.spec.d.ts +2 -0
- package/middlewares/csrf/csrf.spec.d.ts.map +1 -0
- package/middlewares/csrf/csrf.spec.js +136 -0
- package/middlewares/csrf/csrf.spec.js.map +1 -0
- package/middlewares/csrf/index.d.ts +2 -0
- package/middlewares/csrf/index.d.ts.map +1 -0
- package/middlewares/csrf/index.js +18 -0
- package/middlewares/csrf/index.js.map +1 -0
- package/middlewares/index.d.ts +3 -0
- package/middlewares/index.d.ts.map +1 -0
- package/middlewares/index.js +19 -0
- package/middlewares/index.js.map +1 -0
- package/middlewares/middleware.d.ts +6 -0
- package/middlewares/middleware.d.ts.map +1 -0
- package/middlewares/middleware.js +17 -0
- package/middlewares/middleware.js.map +1 -0
- package/middlewares/middleware.spec.d.ts +9 -0
- package/middlewares/middleware.spec.d.ts.map +1 -0
- package/middlewares/middleware.spec.js +121 -0
- package/middlewares/middleware.spec.js.map +1 -0
- package/package.json +1 -1
- package/reference.md +127 -11
- package/serialization/resources/didcommMessages/client/requests/DidCommMessageSendInput.d.ts +1 -1
- package/serialization/resources/didcommMessages/client/requests/DidCommMessageSendInput.d.ts.map +1 -1
- package/serialization/resources/didcommMessages/client/requests/DidCommMessageSendInput.js +1 -1
- package/serialization/resources/didcommMessages/client/requests/DidCommMessageSendInput.js.map +1 -1
- package/serialization/resources/drafts/client/requests/DraftInput.d.ts +1 -1
- package/serialization/resources/drafts/client/requests/DraftInput.d.ts.map +1 -1
- package/serialization/resources/drafts/client/requests/DraftInput.js +1 -1
- package/serialization/resources/drafts/client/requests/DraftInput.js.map +1 -1
- package/serialization/resources/drafts/client/requests/DraftIssue.d.ts +3 -1
- package/serialization/resources/drafts/client/requests/DraftIssue.d.ts.map +1 -1
- package/serialization/resources/drafts/client/requests/DraftIssue.js +3 -1
- package/serialization/resources/drafts/client/requests/DraftIssue.js.map +1 -1
- package/serialization/resources/drafts/client/requests/DraftLatestIssueRequest.d.ts +20 -0
- package/serialization/resources/drafts/client/requests/DraftLatestIssueRequest.d.ts.map +1 -0
- package/serialization/resources/drafts/client/requests/DraftLatestIssueRequest.js +51 -0
- package/serialization/resources/drafts/client/requests/DraftLatestIssueRequest.js.map +1 -0
- package/serialization/resources/drafts/client/requests/index.d.ts +1 -0
- package/serialization/resources/drafts/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/drafts/client/requests/index.js +3 -1
- package/serialization/resources/drafts/client/requests/index.js.map +1 -1
- package/serialization/resources/drafts/types/DraftLatestIssueRequestDidMethod.d.ts +11 -0
- package/serialization/resources/drafts/types/DraftLatestIssueRequestDidMethod.d.ts.map +1 -0
- package/serialization/resources/drafts/types/DraftLatestIssueRequestDidMethod.js +42 -0
- package/serialization/resources/drafts/types/DraftLatestIssueRequestDidMethod.js.map +1 -0
- package/serialization/resources/drafts/types/index.d.ts +1 -0
- package/serialization/resources/drafts/types/index.d.ts.map +1 -1
- package/serialization/resources/drafts/types/index.js +1 -0
- package/serialization/resources/drafts/types/index.js.map +1 -1
- package/serialization/resources/keys/client/requests/KeyGenerateInput.d.ts +1 -1
- package/serialization/resources/keys/client/requests/KeyGenerateInput.d.ts.map +1 -1
- package/serialization/resources/keys/client/requests/KeyGenerateInput.js +1 -1
- package/serialization/resources/keys/client/requests/KeyGenerateInput.js.map +1 -1
- package/serialization/resources/keys/client/requests/KeyImportSecretInput.d.ts +1 -1
- package/serialization/resources/keys/client/requests/KeyImportSecretInput.d.ts.map +1 -1
- package/serialization/resources/keys/client/requests/KeyImportSecretInput.js +1 -1
- package/serialization/resources/keys/client/requests/KeyImportSecretInput.js.map +1 -1
- package/serialization/resources/presentations/client/requests/PresentationExport.d.ts +1 -1
- package/serialization/resources/presentations/client/requests/PresentationExport.d.ts.map +1 -1
- package/serialization/resources/presentations/client/requests/PresentationExport.js +1 -1
- package/serialization/resources/presentations/client/requests/PresentationExport.js.map +1 -1
- package/serialization/resources/presentations/client/requests/PresentationIssue.d.ts +1 -1
- package/serialization/resources/presentations/client/requests/PresentationIssue.d.ts.map +1 -1
- package/serialization/resources/presentations/client/requests/PresentationIssue.js +1 -1
- package/serialization/resources/presentations/client/requests/PresentationIssue.js.map +1 -1
- package/serialization/types/ApiKeyFull.d.ts +1 -1
- package/serialization/types/ApiKeyFull.d.ts.map +1 -1
- package/serialization/types/ApiKeyFull.js +1 -1
- package/serialization/types/ApiKeyFull.js.map +1 -1
- package/serialization/types/Credential.d.ts +7 -4
- package/serialization/types/Credential.d.ts.map +1 -1
- package/serialization/types/Credential.js +7 -4
- package/serialization/types/Credential.js.map +1 -1
- package/serialization/types/Credential11.d.ts +4 -4
- package/serialization/types/Credential11.d.ts.map +1 -1
- package/serialization/types/Credential11.js +4 -4
- package/serialization/types/Credential11.js.map +1 -1
- package/serialization/types/CredentialFilter.d.ts +5 -1
- package/serialization/types/CredentialFilter.d.ts.map +1 -1
- package/serialization/types/CredentialFilter.js +41 -1
- package/serialization/types/CredentialFilter.js.map +1 -1
- package/serialization/types/CredentialFilterData.d.ts +2 -2
- package/serialization/types/CredentialFilterData.d.ts.map +1 -1
- package/serialization/types/CredentialFilterData.js +2 -2
- package/serialization/types/CredentialFilterData.js.map +1 -1
- package/serialization/types/CredentialProof.d.ts +1 -1
- package/serialization/types/CredentialProof.d.ts.map +1 -1
- package/serialization/types/CredentialProof.js +1 -1
- package/serialization/types/CredentialProof.js.map +1 -1
- package/serialization/types/DidCommMessage.d.ts +2 -2
- package/serialization/types/DidCommMessage.d.ts.map +1 -1
- package/serialization/types/DidCommMessage.js +2 -2
- package/serialization/types/DidCommMessage.js.map +1 -1
- package/serialization/types/DidCommMessageSend.d.ts +2 -2
- package/serialization/types/DidCommMessageSend.d.ts.map +1 -1
- package/serialization/types/DidCommMessageSend.js +2 -2
- package/serialization/types/DidCommMessageSend.js.map +1 -1
- package/serialization/types/DidDocument.d.ts +4 -4
- package/serialization/types/DidDocument.d.ts.map +1 -1
- package/serialization/types/DidDocument.js +4 -4
- package/serialization/types/DidDocument.js.map +1 -1
- package/serialization/types/Draft.d.ts +7 -3
- package/serialization/types/Draft.d.ts.map +1 -1
- package/serialization/types/Draft.js +7 -3
- package/serialization/types/Draft.js.map +1 -1
- package/serialization/types/DraftCreate.d.ts +2 -2
- package/serialization/types/DraftCreate.d.ts.map +1 -1
- package/serialization/types/DraftCreate.js +2 -2
- package/serialization/types/DraftCreate.js.map +1 -1
- package/serialization/types/DraftEnumValue.d.ts +1 -1
- package/serialization/types/DraftEnumValue.d.ts.map +1 -1
- package/serialization/types/DraftEnumValue.js +1 -1
- package/serialization/types/DraftEnumValue.js.map +1 -1
- package/serialization/types/DraftFieldBooleanValue.d.ts +1 -1
- package/serialization/types/DraftFieldBooleanValue.d.ts.map +1 -1
- package/serialization/types/DraftFieldBooleanValue.js +1 -1
- package/serialization/types/DraftFieldBooleanValue.js.map +1 -1
- package/serialization/types/DraftFieldDateTimeValue.d.ts +1 -1
- package/serialization/types/DraftFieldDateTimeValue.d.ts.map +1 -1
- package/serialization/types/DraftFieldDateTimeValue.js +1 -1
- package/serialization/types/DraftFieldDateTimeValue.js.map +1 -1
- package/serialization/types/DraftFieldDateValue.d.ts +1 -1
- package/serialization/types/DraftFieldDateValue.d.ts.map +1 -1
- package/serialization/types/DraftFieldDateValue.js +1 -1
- package/serialization/types/DraftFieldDateValue.js.map +1 -1
- package/serialization/types/DraftFieldFileValue.d.ts +1 -1
- package/serialization/types/DraftFieldFileValue.d.ts.map +1 -1
- package/serialization/types/DraftFieldFileValue.js +1 -1
- package/serialization/types/DraftFieldFileValue.js.map +1 -1
- package/serialization/types/DraftFieldLinkValue.d.ts +1 -1
- package/serialization/types/DraftFieldLinkValue.d.ts.map +1 -1
- package/serialization/types/DraftFieldLinkValue.js +1 -1
- package/serialization/types/DraftFieldLinkValue.js.map +1 -1
- package/serialization/types/DraftFieldNumberValue.d.ts +1 -1
- package/serialization/types/DraftFieldNumberValue.d.ts.map +1 -1
- package/serialization/types/DraftFieldNumberValue.js +1 -1
- package/serialization/types/DraftFieldNumberValue.js.map +1 -1
- package/serialization/types/DraftFieldStringValue.d.ts +1 -1
- package/serialization/types/DraftFieldStringValue.d.ts.map +1 -1
- package/serialization/types/DraftFieldStringValue.js +1 -1
- package/serialization/types/DraftFieldStringValue.js.map +1 -1
- package/serialization/types/DraftFieldStructValue.d.ts +3 -3
- package/serialization/types/DraftFieldStructValue.d.ts.map +1 -1
- package/serialization/types/DraftFieldStructValue.js +3 -3
- package/serialization/types/DraftFieldStructValue.js.map +1 -1
- package/serialization/types/DraftFilter.d.ts +5 -1
- package/serialization/types/DraftFilter.d.ts.map +1 -1
- package/serialization/types/DraftFilter.js +41 -1
- package/serialization/types/DraftFilter.js.map +1 -1
- package/serialization/types/DraftFilterData.d.ts +2 -2
- package/serialization/types/DraftFilterData.d.ts.map +1 -1
- package/serialization/types/DraftFilterData.js +2 -2
- package/serialization/types/DraftFilterData.js.map +1 -1
- package/serialization/types/DraftSchema.d.ts +2 -2
- package/serialization/types/DraftSchema.d.ts.map +1 -1
- package/serialization/types/DraftSchema.js +2 -2
- package/serialization/types/DraftSchema.js.map +1 -1
- package/serialization/types/DraftUpdate.d.ts +0 -2
- package/serialization/types/DraftUpdate.d.ts.map +1 -1
- package/serialization/types/DraftUpdate.js +0 -2
- package/serialization/types/DraftUpdate.js.map +1 -1
- package/serialization/types/EcdsaSecp256K1VerificationKey2019.d.ts +3 -3
- package/serialization/types/EcdsaSecp256K1VerificationKey2019.d.ts.map +1 -1
- package/serialization/types/EcdsaSecp256K1VerificationKey2019.js +3 -3
- package/serialization/types/EcdsaSecp256K1VerificationKey2019.js.map +1 -1
- package/serialization/types/ErrorModel.d.ts +2 -2
- package/serialization/types/ErrorModel.d.ts.map +1 -1
- package/serialization/types/ErrorModel.js +2 -2
- package/serialization/types/ErrorModel.js.map +1 -1
- package/serialization/types/File_.d.ts +2 -2
- package/serialization/types/File_.d.ts.map +1 -1
- package/serialization/types/File_.js +2 -2
- package/serialization/types/File_.js.map +1 -1
- package/serialization/types/KeyFilterData.d.ts +2 -2
- package/serialization/types/KeyFilterData.d.ts.map +1 -1
- package/serialization/types/KeyFilterData.js +2 -2
- package/serialization/types/KeyFilterData.js.map +1 -1
- package/serialization/types/KeyPublic.d.ts +3 -3
- package/serialization/types/KeyPublic.d.ts.map +1 -1
- package/serialization/types/KeyPublic.js +3 -3
- package/serialization/types/KeyPublic.js.map +1 -1
- package/serialization/types/LinkedRef.d.ts +15 -0
- package/serialization/types/LinkedRef.d.ts.map +1 -0
- package/serialization/types/LinkedRef.js +46 -0
- package/serialization/types/LinkedRef.js.map +1 -0
- package/serialization/types/LinkedResourceRef.d.ts +13 -0
- package/serialization/types/LinkedResourceRef.d.ts.map +1 -0
- package/serialization/types/LinkedResourceRef.js +44 -0
- package/serialization/types/LinkedResourceRef.js.map +1 -0
- package/serialization/types/Presentation.d.ts +4 -2
- package/serialization/types/Presentation.d.ts.map +1 -1
- package/serialization/types/Presentation.js +4 -2
- package/serialization/types/Presentation.js.map +1 -1
- package/serialization/types/PresentationFilter.d.ts +4 -1
- package/serialization/types/PresentationFilter.d.ts.map +1 -1
- package/serialization/types/PresentationFilter.js +40 -1
- package/serialization/types/PresentationFilter.js.map +1 -1
- package/serialization/types/PresentationFilterData.d.ts +2 -2
- package/serialization/types/PresentationFilterData.d.ts.map +1 -1
- package/serialization/types/PresentationFilterData.js +2 -2
- package/serialization/types/PresentationFilterData.js.map +1 -1
- package/serialization/types/ProblemBadRequest.d.ts +2 -2
- package/serialization/types/ProblemBadRequest.d.ts.map +1 -1
- package/serialization/types/ProblemBadRequest.js +2 -2
- package/serialization/types/ProblemBadRequest.js.map +1 -1
- package/serialization/types/ProblemBadRequestBlobEmptyData.d.ts +2 -2
- package/serialization/types/ProblemBadRequestBlobEmptyData.d.ts.map +1 -1
- package/serialization/types/ProblemBadRequestBlobEmptyData.js +2 -2
- package/serialization/types/ProblemBadRequestBlobEmptyData.js.map +1 -1
- package/serialization/types/ProblemBadRequestBlobInvalidJson.d.ts +2 -2
- package/serialization/types/ProblemBadRequestBlobInvalidJson.d.ts.map +1 -1
- package/serialization/types/ProblemBadRequestBlobInvalidJson.js +2 -2
- package/serialization/types/ProblemBadRequestBlobInvalidJson.js.map +1 -1
- package/serialization/types/ProblemBadRequestHasNullUnicodeCharacter.d.ts +2 -2
- package/serialization/types/ProblemBadRequestHasNullUnicodeCharacter.d.ts.map +1 -1
- package/serialization/types/ProblemBadRequestHasNullUnicodeCharacter.js +2 -2
- package/serialization/types/ProblemBadRequestHasNullUnicodeCharacter.js.map +1 -1
- package/serialization/types/ProblemBlobNotFound.d.ts +4 -4
- package/serialization/types/ProblemBlobNotFound.d.ts.map +1 -1
- package/serialization/types/ProblemBlobNotFound.js +4 -4
- package/serialization/types/ProblemBlobNotFound.js.map +1 -1
- package/serialization/types/ProblemConflict.d.ts +2 -2
- package/serialization/types/ProblemConflict.d.ts.map +1 -1
- package/serialization/types/ProblemConflict.js +2 -2
- package/serialization/types/ProblemConflict.js.map +1 -1
- package/serialization/types/ProblemConflictBlobRestoreInProgress.d.ts +2 -2
- package/serialization/types/ProblemConflictBlobRestoreInProgress.d.ts.map +1 -1
- package/serialization/types/ProblemConflictBlobRestoreInProgress.js +2 -2
- package/serialization/types/ProblemConflictBlobRestoreInProgress.js.map +1 -1
- package/serialization/types/ProblemConflictResource.d.ts +2 -2
- package/serialization/types/ProblemConflictResource.d.ts.map +1 -1
- package/serialization/types/ProblemConflictResource.js +2 -2
- package/serialization/types/ProblemConflictResource.js.map +1 -1
- package/serialization/types/ProblemForbidden.d.ts +2 -2
- package/serialization/types/ProblemForbidden.d.ts.map +1 -1
- package/serialization/types/ProblemForbidden.js +2 -2
- package/serialization/types/ProblemForbidden.js.map +1 -1
- package/serialization/types/ProblemInternalServerError.d.ts +3 -3
- package/serialization/types/ProblemInternalServerError.d.ts.map +1 -1
- package/serialization/types/ProblemInternalServerError.js +3 -3
- package/serialization/types/ProblemInternalServerError.js.map +1 -1
- package/serialization/types/ProblemMethodNotAllowed.d.ts +2 -2
- package/serialization/types/ProblemMethodNotAllowed.d.ts.map +1 -1
- package/serialization/types/ProblemMethodNotAllowed.js +2 -2
- package/serialization/types/ProblemMethodNotAllowed.js.map +1 -1
- package/serialization/types/ProblemMethodNotAllowedAlive.d.ts +2 -2
- package/serialization/types/ProblemMethodNotAllowedAlive.d.ts.map +1 -1
- package/serialization/types/ProblemMethodNotAllowedAlive.js +2 -2
- package/serialization/types/ProblemMethodNotAllowedAlive.js.map +1 -1
- package/serialization/types/ProblemMethodNotAllowedDeleted.d.ts +2 -2
- package/serialization/types/ProblemMethodNotAllowedDeleted.d.ts.map +1 -1
- package/serialization/types/ProblemMethodNotAllowedDeleted.js +2 -2
- package/serialization/types/ProblemMethodNotAllowedDeleted.js.map +1 -1
- package/serialization/types/ProblemMethodNotAllowedRoute.d.ts +2 -2
- package/serialization/types/ProblemMethodNotAllowedRoute.d.ts.map +1 -1
- package/serialization/types/ProblemMethodNotAllowedRoute.js +2 -2
- package/serialization/types/ProblemMethodNotAllowedRoute.js.map +1 -1
- package/serialization/types/ProblemNotFound.d.ts +2 -2
- package/serialization/types/ProblemNotFound.d.ts.map +1 -1
- package/serialization/types/ProblemNotFound.js +2 -2
- package/serialization/types/ProblemNotFound.js.map +1 -1
- package/serialization/types/ProblemPreconditionFailed.d.ts +2 -2
- package/serialization/types/ProblemPreconditionFailed.d.ts.map +1 -1
- package/serialization/types/ProblemPreconditionFailed.js +2 -2
- package/serialization/types/ProblemPreconditionFailed.js.map +1 -1
- package/serialization/types/ProblemPreconditionFailedBlob.d.ts +4 -4
- package/serialization/types/ProblemPreconditionFailedBlob.d.ts.map +1 -1
- package/serialization/types/ProblemPreconditionFailedBlob.js +4 -4
- package/serialization/types/ProblemPreconditionFailedBlob.js.map +1 -1
- package/serialization/types/ProblemPreconditionFailedResource.d.ts +4 -4
- package/serialization/types/ProblemPreconditionFailedResource.d.ts.map +1 -1
- package/serialization/types/ProblemPreconditionFailedResource.js +4 -4
- package/serialization/types/ProblemPreconditionFailedResource.js.map +1 -1
- package/serialization/types/ProblemResourceNotFound.d.ts +4 -4
- package/serialization/types/ProblemResourceNotFound.d.ts.map +1 -1
- package/serialization/types/ProblemResourceNotFound.js +4 -4
- package/serialization/types/ProblemResourceNotFound.js.map +1 -1
- package/serialization/types/ProblemResourceRevisionNotFound.d.ts +4 -4
- package/serialization/types/ProblemResourceRevisionNotFound.d.ts.map +1 -1
- package/serialization/types/ProblemResourceRevisionNotFound.js +4 -4
- package/serialization/types/ProblemResourceRevisionNotFound.js.map +1 -1
- package/serialization/types/ProblemServiceUnavailable.d.ts +18 -0
- package/serialization/types/ProblemServiceUnavailable.d.ts.map +1 -0
- package/serialization/types/ProblemServiceUnavailable.js +49 -0
- package/serialization/types/ProblemServiceUnavailable.js.map +1 -0
- package/serialization/types/ProblemTooManyRequests.d.ts +2 -2
- package/serialization/types/ProblemTooManyRequests.d.ts.map +1 -1
- package/serialization/types/ProblemTooManyRequests.js +2 -2
- package/serialization/types/ProblemTooManyRequests.js.map +1 -1
- package/serialization/types/ProblemUnauthorized.d.ts +2 -2
- package/serialization/types/ProblemUnauthorized.d.ts.map +1 -1
- package/serialization/types/ProblemUnauthorized.js +2 -2
- package/serialization/types/ProblemUnauthorized.js.map +1 -1
- package/serialization/types/ProblemUnsupportedMediaType.d.ts +2 -2
- package/serialization/types/ProblemUnsupportedMediaType.d.ts.map +1 -1
- package/serialization/types/ProblemUnsupportedMediaType.js +2 -2
- package/serialization/types/ProblemUnsupportedMediaType.js.map +1 -1
- package/serialization/types/Resource.d.ts +6 -6
- package/serialization/types/Resource.d.ts.map +1 -1
- package/serialization/types/Resource.js +6 -6
- package/serialization/types/Resource.js.map +1 -1
- package/serialization/types/ResourceApiKey.d.ts +8 -8
- package/serialization/types/ResourceApiKey.d.ts.map +1 -1
- package/serialization/types/ResourceApiKey.js +8 -8
- package/serialization/types/ResourceApiKey.js.map +1 -1
- package/serialization/types/ResourceApiKeyFull.d.ts +8 -8
- package/serialization/types/ResourceApiKeyFull.d.ts.map +1 -1
- package/serialization/types/ResourceApiKeyFull.js +8 -8
- package/serialization/types/ResourceApiKeyFull.js.map +1 -1
- package/serialization/types/ResourceCredential.d.ts +8 -8
- package/serialization/types/ResourceCredential.d.ts.map +1 -1
- package/serialization/types/ResourceCredential.js +8 -8
- package/serialization/types/ResourceCredential.js.map +1 -1
- package/serialization/types/ResourceDidCommMessage.d.ts +8 -8
- package/serialization/types/ResourceDidCommMessage.d.ts.map +1 -1
- package/serialization/types/ResourceDidCommMessage.js +8 -8
- package/serialization/types/ResourceDidCommMessage.js.map +1 -1
- package/serialization/types/ResourceDraft.d.ts +8 -8
- package/serialization/types/ResourceDraft.d.ts.map +1 -1
- package/serialization/types/ResourceDraft.js +8 -8
- package/serialization/types/ResourceDraft.js.map +1 -1
- package/serialization/types/ResourceFile.d.ts +8 -8
- package/serialization/types/ResourceFile.d.ts.map +1 -1
- package/serialization/types/ResourceFile.js +8 -8
- package/serialization/types/ResourceFile.js.map +1 -1
- package/serialization/types/ResourceKeyPublic.d.ts +8 -8
- package/serialization/types/ResourceKeyPublic.d.ts.map +1 -1
- package/serialization/types/ResourceKeyPublic.js +8 -8
- package/serialization/types/ResourceKeyPublic.js.map +1 -1
- package/serialization/types/ResourcePresentation.d.ts +8 -8
- package/serialization/types/ResourcePresentation.d.ts.map +1 -1
- package/serialization/types/ResourcePresentation.js +8 -8
- package/serialization/types/ResourcePresentation.js.map +1 -1
- package/serialization/types/Service.d.ts +1 -1
- package/serialization/types/Service.d.ts.map +1 -1
- package/serialization/types/Service.js +1 -1
- package/serialization/types/Service.js.map +1 -1
- package/serialization/types/ServiceUnavailableProblems.d.ts +15 -0
- package/serialization/types/ServiceUnavailableProblems.d.ts.map +1 -0
- package/serialization/types/ServiceUnavailableProblems.js +50 -0
- package/serialization/types/ServiceUnavailableProblems.js.map +1 -0
- package/serialization/types/VerificationMethodMultikey.d.ts +3 -3
- package/serialization/types/VerificationMethodMultikey.d.ts.map +1 -1
- package/serialization/types/VerificationMethodMultikey.js +3 -3
- package/serialization/types/VerificationMethodMultikey.js.map +1 -1
- package/serialization/types/index.d.ts +8 -4
- package/serialization/types/index.d.ts.map +1 -1
- package/serialization/types/index.js +8 -4
- package/serialization/types/index.js.map +1 -1
package/api/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,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;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC"}
|
package/api/types/index.js
CHANGED
|
@@ -50,13 +50,13 @@ __exportStar(require("./CredentialBaseFilterModifiedAt"), exports);
|
|
|
50
50
|
__exportStar(require("./CredentialBaseFilterRevision"), exports);
|
|
51
51
|
__exportStar(require("./CredentialBaseFilter"), exports);
|
|
52
52
|
__exportStar(require("./CredentialFilter"), exports);
|
|
53
|
-
__exportStar(require("./CredentialFilterDataType"), exports);
|
|
54
53
|
__exportStar(require("./CredentialFilterDataDigestMultibase"), exports);
|
|
55
54
|
__exportStar(require("./CredentialFilterDataHolder"), exports);
|
|
56
55
|
__exportStar(require("./CredentialFilterDataId"), exports);
|
|
57
56
|
__exportStar(require("./CredentialFilterDataIssuer"), exports);
|
|
58
57
|
__exportStar(require("./CredentialFilterDataLinkedCredentials"), exports);
|
|
59
58
|
__exportStar(require("./CredentialFilterDataLinkedFiles"), exports);
|
|
59
|
+
__exportStar(require("./CredentialFilterDataType"), exports);
|
|
60
60
|
__exportStar(require("./CredentialFilterDataValidFrom"), exports);
|
|
61
61
|
__exportStar(require("./CredentialFilterDataValidUntil"), exports);
|
|
62
62
|
__exportStar(require("./CredentialFilterData"), exports);
|
|
@@ -110,9 +110,9 @@ __exportStar(require("./DraftFieldStringValue"), exports);
|
|
|
110
110
|
__exportStar(require("./DraftFieldStructValueFieldsItem"), exports);
|
|
111
111
|
__exportStar(require("./DraftFieldStructValue"), exports);
|
|
112
112
|
__exportStar(require("./DraftFilter"), exports);
|
|
113
|
-
__exportStar(require("./DraftFilterDataType"), exports);
|
|
114
113
|
__exportStar(require("./DraftFilterDataLinkedCredentials"), exports);
|
|
115
114
|
__exportStar(require("./DraftFilterDataLinkedDrafts"), exports);
|
|
115
|
+
__exportStar(require("./DraftFilterDataType"), exports);
|
|
116
116
|
__exportStar(require("./DraftFilterData"), exports);
|
|
117
117
|
__exportStar(require("./DraftFilterMetaSubject"), exports);
|
|
118
118
|
__exportStar(require("./DraftFilterMetaValidFrom"), exports);
|
|
@@ -203,10 +203,10 @@ __exportStar(require("./KeyBaseFilter"), exports);
|
|
|
203
203
|
__exportStar(require("./KeyEqualAnnotationKeyAnnotationValue"), exports);
|
|
204
204
|
__exportStar(require("./KeyEqualLabelKeyLabelValue"), exports);
|
|
205
205
|
__exportStar(require("./KeyFilter"), exports);
|
|
206
|
-
__exportStar(require("./KeyFilterDataType"), exports);
|
|
207
206
|
__exportStar(require("./KeyFilterDataPublicKeyBase58"), exports);
|
|
208
207
|
__exportStar(require("./KeyFilterDataPublicKeyMultibase"), exports);
|
|
209
208
|
__exportStar(require("./KeyFilterDataPublicKeyPem"), exports);
|
|
209
|
+
__exportStar(require("./KeyFilterDataType"), exports);
|
|
210
210
|
__exportStar(require("./KeyFilterData"), exports);
|
|
211
211
|
__exportStar(require("./KeyGenerateType"), exports);
|
|
212
212
|
__exportStar(require("./KeyGenerate"), exports);
|
|
@@ -228,6 +228,8 @@ __exportStar(require("./LessThanFilesize"), exports);
|
|
|
228
228
|
__exportStar(require("./LessThanOrEqualFilesize"), exports);
|
|
229
229
|
__exportStar(require("./LessThanOrEqualRevision"), exports);
|
|
230
230
|
__exportStar(require("./LessThanRevision"), exports);
|
|
231
|
+
__exportStar(require("./LinkedRef"), exports);
|
|
232
|
+
__exportStar(require("./LinkedResourceRef"), exports);
|
|
231
233
|
__exportStar(require("./ListApiKey"), exports);
|
|
232
234
|
__exportStar(require("./ListCredential"), exports);
|
|
233
235
|
__exportStar(require("./ListDidCommMessage"), exports);
|
|
@@ -283,10 +285,10 @@ __exportStar(require("./PresentationBaseFilterModifiedAt"), exports);
|
|
|
283
285
|
__exportStar(require("./PresentationBaseFilterRevision"), exports);
|
|
284
286
|
__exportStar(require("./PresentationBaseFilter"), exports);
|
|
285
287
|
__exportStar(require("./PresentationFilter"), exports);
|
|
286
|
-
__exportStar(require("./PresentationFilterDataType"), exports);
|
|
287
288
|
__exportStar(require("./PresentationFilterDataDigestMultibase"), exports);
|
|
288
289
|
__exportStar(require("./PresentationFilterDataId"), exports);
|
|
289
290
|
__exportStar(require("./PresentationFilterDataLinkedCredentials"), exports);
|
|
291
|
+
__exportStar(require("./PresentationFilterDataType"), exports);
|
|
290
292
|
__exportStar(require("./PresentationFilterData"), exports);
|
|
291
293
|
__exportStar(require("./PresentationSortField"), exports);
|
|
292
294
|
__exportStar(require("./PresentationSortOrder"), exports);
|
|
@@ -312,6 +314,7 @@ __exportStar(require("./ProblemPreconditionFailedBlob"), exports);
|
|
|
312
314
|
__exportStar(require("./ProblemPreconditionFailedResource"), exports);
|
|
313
315
|
__exportStar(require("./ProblemResourceNotFound"), exports);
|
|
314
316
|
__exportStar(require("./ProblemResourceRevisionNotFound"), exports);
|
|
317
|
+
__exportStar(require("./ProblemServiceUnavailable"), exports);
|
|
315
318
|
__exportStar(require("./ProblemTooManyRequests"), exports);
|
|
316
319
|
__exportStar(require("./ProblemUnauthorized"), exports);
|
|
317
320
|
__exportStar(require("./ProblemUnsupportedMediaType"), exports);
|
|
@@ -326,6 +329,7 @@ __exportStar(require("./ResourceKeyPublic"), exports);
|
|
|
326
329
|
__exportStar(require("./ResourceKind"), exports);
|
|
327
330
|
__exportStar(require("./ResourcePresentation"), exports);
|
|
328
331
|
__exportStar(require("./Service"), exports);
|
|
332
|
+
__exportStar(require("./ServiceUnavailableProblems"), exports);
|
|
329
333
|
__exportStar(require("./TimestampBetween"), exports);
|
|
330
334
|
__exportStar(require("./TimestampGreaterThan"), exports);
|
|
331
335
|
__exportStar(require("./TimestampGreaterThanOrEqual"), exports);
|
package/api/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api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uC;AACvC,8CAA4B;AAC5B,kDAAgC;AAChC,yDAAuC;AACvC,4DAA0C;AAC1C,sDAAoC;AACpC,2DAAyC;AACzC,iDAA+B;AAC/B,yDAAuC;AACvC,oDAAkC;AAClC,kDAAgC;AAChC,mDAAiC;AACjC,6CAA2B;AAC3B,+DAA6C;AAC7C,iDAA+B;AAC/B,0EAAwD;AACxD,oEAAkD;AAClD,oEAAkD;AAClD,+DAA6C;AAC7C,6DAA2C;AAC3C,qEAAmD;AACnD,qEAAmD;AACnD,mEAAiD;AACjD,2DAAyC;AACzC,uDAAqC;AACrC,+DAA6C;AAC7C,0EAAwD;AACxD,6DAA2C;AAC3C,4EAA0D;AAC1D,2DAAyC;AACzC,0DAAwC;AACxC,0DAAwC;AACxC,qDAAmC;AACnC,uDAAqC;AACrC,sDAAoC;AACpC,mEAAiD;AACjD,qEAAmD;AACnD,6EAA2D;AAC3D,wDAAsC;AACtC,oDAAkC;AAClC,yEAAuD;AACvD,4DAA0C;AAC1C,qDAAmC;AACnC,+DAA6C;AAC7C,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,iEAA+C;AAC/C,oDAAkC;AAClC,8DAA4C;AAC5C,kEAAgD;AAChD,sEAAoD;AACpD,4DAA0C;AAC1C,oEAAkD;AAClD,2DAAyC;AACzC,wDAAsC;AACtC,gEAA8C;AAC9C,6CAA2B;AAC3B,mDAAiC;AACjC,uDAAqC;AACrC,uDAAqC;AACrC,2DAAyC;AACzC,kDAAgC;AAChC,iDAA+B;AAC/B,sDAAoC;AACpC,iDAA+B;AAC/B,yDAAuC;AACvC,4CAA0B;AAC1B,qDAAmC;AACnC,yDAAuC;AACvC,gEAA8C;AAC9C,sDAAoC;AACpC,6DAA2C;AAC3C,4DAA0C;AAC1C,yDAAuC;AACvC,iEAA+C;AAC/C,mDAAiC;AACjC,mEAAiD;AACjD,+DAA6C","sourcesContent":["export * from './ApiKey';\nexport * from './ApiKeyBaseFilterAnnotationsItem';\nexport * from './ApiKeyBaseFilterCreatedAt';\nexport * from './ApiKeyBaseFilterDeletedAt';\nexport * from './ApiKeyBaseFilterEtag';\nexport * from './ApiKeyBaseFilterId';\nexport * from './ApiKeyBaseFilterLabelsItem';\nexport * from './ApiKeyBaseFilterModifiedAt';\nexport * from './ApiKeyBaseFilterRevision';\nexport * from './ApiKeyBaseFilter';\nexport * from './ApiKeyFilter';\nexport * from './ApiKeyFilterDataExpiration';\nexport * from './ApiKeyFilterDataSubjectId';\nexport * from './ApiKeyFilterData';\nexport * from './ApiKeyFull';\nexport * from './ApiKeySortField';\nexport * from './ApiKeySortOrder';\nexport * from './ApiKeySort';\nexport * from './BadRequestProblems';\nexport * from './BetweenFilesize';\nexport * from './BetweenRevision';\nexport * from './ConflictProblems';\nexport * from './CredentialDataModel';\nexport * from './Credential';\nexport * from './Credential11Proof';\nexport * from './Credential11';\nexport * from './CredentialBaseFilterAnnotationsItem';\nexport * from './CredentialBaseFilterCreatedAt';\nexport * from './CredentialBaseFilterDeletedAt';\nexport * from './CredentialBaseFilterEtag';\nexport * from './CredentialBaseFilterId';\nexport * from './CredentialBaseFilterLabelsItem';\nexport * from './CredentialBaseFilterModifiedAt';\nexport * from './CredentialBaseFilterRevision';\nexport * from './CredentialBaseFilter';\nexport * from './CredentialFilter';\nexport * from './CredentialFilterDataType';\nexport * from './CredentialFilterDataDigestMultibase';\nexport * from './CredentialFilterDataHolder';\nexport * from './CredentialFilterDataId';\nexport * from './CredentialFilterDataIssuer';\nexport * from './CredentialFilterDataLinkedCredentials';\nexport * from './CredentialFilterDataLinkedFiles';\nexport * from './CredentialFilterDataValidFrom';\nexport * from './CredentialFilterDataValidUntil';\nexport * from './CredentialFilterData';\nexport * from './CredentialProof';\nexport * from './CredentialProofs';\nexport * from './CredentialSortField';\nexport * from './CredentialSortOrder';\nexport * from './CredentialSort';\nexport * from './CredentialVerify';\nexport * from './DidCommMessage';\nexport * from './DidCommMessageSend';\nexport * from './DidDocumentVerificationMethodItem';\nexport * from './DidDocument';\nexport * from './DidcommMessageBaseFilterAnnotationsItem';\nexport * from './DidcommMessageBaseFilterCreatedAt';\nexport * from './DidcommMessageBaseFilterDeletedAt';\nexport * from './DidcommMessageBaseFilterEtag';\nexport * from './DidcommMessageBaseFilterId';\nexport * from './DidcommMessageBaseFilterLabelsItem';\nexport * from './DidcommMessageBaseFilterModifiedAt';\nexport * from './DidcommMessageBaseFilterRevision';\nexport * from './DidcommMessageBaseFilter';\nexport * from './DidcommMessageFilter';\nexport * from './DidcommMessageFilterDataCredentials';\nexport * from './DidcommMessageFilterDataFrom';\nexport * from './DidcommMessageFilterDataPresentations';\nexport * from './DidcommMessageFilterDataTo';\nexport * from './DidcommMessageFilterData';\nexport * from './DidcommMessageSortField';\nexport * from './DidcommMessageSortOrder';\nexport * from './DidcommMessageSort';\nexport * from './Draft';\nexport * from './DraftBaseFilterAnnotationsItem';\nexport * from './DraftBaseFilterCreatedAt';\nexport * from './DraftBaseFilterDeletedAt';\nexport * from './DraftBaseFilterEtag';\nexport * from './DraftBaseFilterId';\nexport * from './DraftBaseFilterLabelsItem';\nexport * from './DraftBaseFilterModifiedAt';\nexport * from './DraftBaseFilterRevision';\nexport * from './DraftBaseFilter';\nexport * from './DraftCreate';\nexport * from './DraftEnumValue';\nexport * from './DraftFieldBooleanValue';\nexport * from './DraftFieldDateTimeValue';\nexport * from './DraftFieldDateValue';\nexport * from './DraftFieldFileValue';\nexport * from './DraftFieldLinkValue';\nexport * from './DraftFieldNumberValue';\nexport * from './DraftFieldStringValue';\nexport * from './DraftFieldStructValueFieldsItem';\nexport * from './DraftFieldStructValue';\nexport * from './DraftFilter';\nexport * from './DraftFilterDataType';\nexport * from './DraftFilterDataLinkedCredentials';\nexport * from './DraftFilterDataLinkedDrafts';\nexport * from './DraftFilterData';\nexport * from './DraftFilterMetaSubject';\nexport * from './DraftFilterMetaValidFrom';\nexport * from './DraftFilterMetaValidUntil';\nexport * from './DraftFilterMeta';\nexport * from './DraftMeta';\nexport * from './DraftSchemaFieldsItem';\nexport * from './DraftSchema';\nexport * from './DraftSortField';\nexport * from './DraftSortOrder';\nexport * from './DraftSort';\nexport * from './DraftUpdate';\nexport * from './EcdsaSecp256K1VerificationKey2019Type';\nexport * from './EcdsaSecp256K1VerificationKey2019';\nexport * from './EqualDid';\nexport * from './EqualDigestMultibase';\nexport * from './EqualETag';\nexport * from './EqualFilesize';\nexport * from './EqualKeyPublicBase58';\nexport * from './EqualKeyPublicMultibase';\nexport * from './EqualKeyPublicPem';\nexport * from './EqualKeyTypeValue';\nexport * from './EqualKeyType';\nexport * from './EqualPrimitiveString';\nexport * from './EqualResourceId';\nexport * from './EqualRevision';\nexport * from './EqualSubjectId';\nexport * from './EqualUri';\nexport * from './ErrorDetail';\nexport * from './ErrorModel';\nexport * from './File_';\nexport * from './FileBaseFilterAnnotationsItem';\nexport * from './FileBaseFilterCreatedAt';\nexport * from './FileBaseFilterDeletedAt';\nexport * from './FileBaseFilterEtag';\nexport * from './FileBaseFilterId';\nexport * from './FileBaseFilterLabelsItem';\nexport * from './FileBaseFilterModifiedAt';\nexport * from './FileBaseFilterRevision';\nexport * from './FileBaseFilter';\nexport * from './FileData';\nexport * from './FileFilter';\nexport * from './FileFilterDataContentType';\nexport * from './FileFilterDataDigestMultibase';\nexport * from './FileFilterDataFilename';\nexport * from './FileFilterDataFilesize';\nexport * from './FileFilterDataId';\nexport * from './FileFilterData';\nexport * from './FileSortField';\nexport * from './FileSortOrder';\nexport * from './FileSort';\nexport * from './ForbiddenProblems';\nexport * from './GreaterThanFilesize';\nexport * from './GreaterThanOrEqualFilesize';\nexport * from './GreaterThanOrEqualRevision';\nexport * from './GreaterThanRevision';\nexport * from './InDid';\nexport * from './InDigestMultibase';\nexport * from './InETag';\nexport * from './InFilesize';\nexport * from './InKeyPublicBase58';\nexport * from './InKeyPublicMultibase';\nexport * from './InKeyPublicPem';\nexport * from './InKeyTypeValuesItem';\nexport * from './InKeyType';\nexport * from './InPrimitiveString';\nexport * from './InResourceId';\nexport * from './InRevision';\nexport * from './InSubjectId';\nexport * from './InUri';\nexport * from './IsNotNullPrimitiveString';\nexport * from './IsNotNullResourceId';\nexport * from './IsNotNullTimestamp';\nexport * from './IsNotNullUri';\nexport * from './IsNullPrimitiveString';\nexport * from './IsNullResourceId';\nexport * from './IsNullTimestamp';\nexport * from './IsNullUri';\nexport * from './KeyBaseFilterAnnotationsItem';\nexport * from './KeyBaseFilterCreatedAt';\nexport * from './KeyBaseFilterDeletedAt';\nexport * from './KeyBaseFilterEtag';\nexport * from './KeyBaseFilterId';\nexport * from './KeyBaseFilterLabelsItem';\nexport * from './KeyBaseFilterModifiedAt';\nexport * from './KeyBaseFilterRevision';\nexport * from './KeyBaseFilter';\nexport * from './KeyEqualAnnotationKeyAnnotationValue';\nexport * from './KeyEqualLabelKeyLabelValue';\nexport * from './KeyFilter';\nexport * from './KeyFilterDataType';\nexport * from './KeyFilterDataPublicKeyBase58';\nexport * from './KeyFilterDataPublicKeyMultibase';\nexport * from './KeyFilterDataPublicKeyPem';\nexport * from './KeyFilterData';\nexport * from './KeyGenerateType';\nexport * from './KeyGenerate';\nexport * from './KeyIsNotNullAnnotationKey';\nexport * from './KeyIsNotNullLabelKey';\nexport * from './KeyIsNullAnnotationKey';\nexport * from './KeyIsNullLabelKey';\nexport * from './KeyNotEqualAnnotationKeyAnnotationValue';\nexport * from './KeyNotEqualLabelKeyLabelValue';\nexport * from './KeyPublicType';\nexport * from './KeyPublic';\nexport * from './KeySecretEc';\nexport * from './KeySecretJwk';\nexport * from './KeySecretPkcs8';\nexport * from './KeySortField';\nexport * from './KeySortOrder';\nexport * from './KeySort';\nexport * from './LessThanFilesize';\nexport * from './LessThanOrEqualFilesize';\nexport * from './LessThanOrEqualRevision';\nexport * from './LessThanRevision';\nexport * from './ListApiKey';\nexport * from './ListCredential';\nexport * from './ListDidCommMessage';\nexport * from './ListDraft';\nexport * from './ListFile';\nexport * from './ListKeyPublic';\nexport * from './ListPresentation';\nexport * from './MethodNotAllowedProblems';\nexport * from './NestedInPrimitiveString';\nexport * from './NestedInResourceId';\nexport * from './NestedInUri';\nexport * from './NestedNotInPrimitiveString';\nexport * from './NestedNotInResourceId';\nexport * from './NestedNotInUri';\nexport * from './NotEqualDid';\nexport * from './NotEqualDigestMultibase';\nexport * from './NotEqualETag';\nexport * from './NotEqualFilesize';\nexport * from './NotEqualKeyPublicBase58';\nexport * from './NotEqualKeyPublicMultibase';\nexport * from './NotEqualKeyPublicPem';\nexport * from './NotEqualKeyTypeValue';\nexport * from './NotEqualKeyType';\nexport * from './NotEqualPrimitiveString';\nexport * from './NotEqualResourceId';\nexport * from './NotEqualRevision';\nexport * from './NotEqualSubjectId';\nexport * from './NotEqualUri';\nexport * from './NotFoundProblems';\nexport * from './NotInDid';\nexport * from './NotInDigestMultibase';\nexport * from './NotInETag';\nexport * from './NotInFilesize';\nexport * from './NotInKeyPublicBase58';\nexport * from './NotInKeyPublicMultibase';\nexport * from './NotInKeyPublicPem';\nexport * from './NotInKeyTypeValuesItem';\nexport * from './NotInKeyType';\nexport * from './NotInPrimitiveString';\nexport * from './NotInResourceId';\nexport * from './NotInRevision';\nexport * from './NotInSubjectId';\nexport * from './NotInUri';\nexport * from './PreconditionFailedProblems';\nexport * from './Presentation';\nexport * from './PresentationBaseFilterAnnotationsItem';\nexport * from './PresentationBaseFilterCreatedAt';\nexport * from './PresentationBaseFilterDeletedAt';\nexport * from './PresentationBaseFilterEtag';\nexport * from './PresentationBaseFilterId';\nexport * from './PresentationBaseFilterLabelsItem';\nexport * from './PresentationBaseFilterModifiedAt';\nexport * from './PresentationBaseFilterRevision';\nexport * from './PresentationBaseFilter';\nexport * from './PresentationFilter';\nexport * from './PresentationFilterDataType';\nexport * from './PresentationFilterDataDigestMultibase';\nexport * from './PresentationFilterDataId';\nexport * from './PresentationFilterDataLinkedCredentials';\nexport * from './PresentationFilterData';\nexport * from './PresentationSortField';\nexport * from './PresentationSortOrder';\nexport * from './PresentationSort';\nexport * from './PresentationVerify';\nexport * from './ProblemBadRequest';\nexport * from './ProblemBadRequestBlobEmptyData';\nexport * from './ProblemBadRequestBlobInvalidJson';\nexport * from './ProblemBadRequestHasNullUnicodeCharacter';\nexport * from './ProblemBlobNotFound';\nexport * from './ProblemConflict';\nexport * from './ProblemConflictBlobRestoreInProgress';\nexport * from './ProblemConflictResource';\nexport * from './ProblemForbidden';\nexport * from './ProblemInternalServerError';\nexport * from './ProblemMethodNotAllowed';\nexport * from './ProblemMethodNotAllowedAlive';\nexport * from './ProblemMethodNotAllowedDeleted';\nexport * from './ProblemMethodNotAllowedRoute';\nexport * from './ProblemNotFound';\nexport * from './ProblemPreconditionFailed';\nexport * from './ProblemPreconditionFailedBlob';\nexport * from './ProblemPreconditionFailedResource';\nexport * from './ProblemResourceNotFound';\nexport * from './ProblemResourceRevisionNotFound';\nexport * from './ProblemTooManyRequests';\nexport * from './ProblemUnauthorized';\nexport * from './ProblemUnsupportedMediaType';\nexport * from './Resource';\nexport * from './ResourceApiKey';\nexport * from './ResourceApiKeyFull';\nexport * from './ResourceCredential';\nexport * from './ResourceDidCommMessage';\nexport * from './ResourceDraft';\nexport * from './ResourceFile';\nexport * from './ResourceKeyPublic';\nexport * from './ResourceKind';\nexport * from './ResourcePresentation';\nexport * from './Service';\nexport * from './TimestampBetween';\nexport * from './TimestampGreaterThan';\nexport * from './TimestampGreaterThanOrEqual';\nexport * from './TimestampLessThan';\nexport * from './TimestampLessThanOrEqual';\nexport * from './TooManyRequestsProblems';\nexport * from './UnauthorizedProblems';\nexport * from './UnsupportedMediaTypeProblems';\nexport * from './UploadResponse';\nexport * from './VerificationMethodMultikeyType';\nexport * from './VerificationMethodMultikey';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,oEAAkD;AAClD,8DAA4C;AAC5C,8DAA4C;AAC5C,yDAAuC;AACvC,uDAAqC;AACrC,+D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C/B,yDAAuC;AACvC,oDAAkC;AAClC,kDAAgC;AAChC,mDAAiC;AACjC,6CAA2B;AAC3B,+DAA6C;AAC7C,iDAA+B;AAC/B,0EAAwD;AACxD,oEAAkD;AAClD,oEAAkD;AAClD,+DAA6C;AAC7C,6DAA2C;AAC3C,qEAAmD;AACnD,qEAAmD;AACnD,mEAAiD;AACjD,2DAAyC;AACzC,uDAAqC;AACrC,0EAAwD;AACxD,6DAA2C;AAC3C,4EAA0D;AAC1D,+DAA6C;AAC7C,2DAAyC;AACzC,0DAAwC;AACxC,0DAAwC;AACxC,qDAAmC;AACnC,uDAAqC;AACrC,sDAAoC;AACpC,mEAAiD;AACjD,qEAAmD;AACnD,6EAA2D;AAC3D,wDAAsC;AACtC,oDAAkC;AAClC,yEAAuD;AACvD,4DAA0C;AAC1C,qDAAmC;AACnC,+DAA6C;AAC7C,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,iEAA+C;AAC/C,oDAAkC;AAClC,8DAA4C;AAC5C,kEAAgD;AAChD,sEAAoD;AACpD,4DAA0C;AAC1C,oEAAkD;AAClD,8DAA4C;AAC5C,2DAAyC;AACzC,wDAAsC;AACtC,gEAA8C;AAC9C,6CAA2B;AAC3B,mDAAiC;AACjC,uDAAqC;AACrC,uDAAqC;AACrC,2DAAyC;AACzC,kDAAgC;AAChC,iDAA+B;AAC/B,sDAAoC;AACpC,iDAA+B;AAC/B,yDAAuC;AACvC,4CAA0B;AAC1B,+DAA6C;AAC7C,qDAAmC;AACnC,yDAAuC;AACvC,gEAA8C;AAC9C,sDAAoC;AACpC,6DAA2C;AAC3C,4DAA0C;AAC1C,yDAAuC;AACvC,iEAA+C;AAC/C,mDAAiC;AACjC,mEAAiD;AACjD,+DAA6C","sourcesContent":["export * from './ApiKey';\nexport * from './ApiKeyBaseFilterAnnotationsItem';\nexport * from './ApiKeyBaseFilterCreatedAt';\nexport * from './ApiKeyBaseFilterDeletedAt';\nexport * from './ApiKeyBaseFilterEtag';\nexport * from './ApiKeyBaseFilterId';\nexport * from './ApiKeyBaseFilterLabelsItem';\nexport * from './ApiKeyBaseFilterModifiedAt';\nexport * from './ApiKeyBaseFilterRevision';\nexport * from './ApiKeyBaseFilter';\nexport * from './ApiKeyFilter';\nexport * from './ApiKeyFilterDataExpiration';\nexport * from './ApiKeyFilterDataSubjectId';\nexport * from './ApiKeyFilterData';\nexport * from './ApiKeyFull';\nexport * from './ApiKeySortField';\nexport * from './ApiKeySortOrder';\nexport * from './ApiKeySort';\nexport * from './BadRequestProblems';\nexport * from './BetweenFilesize';\nexport * from './BetweenRevision';\nexport * from './ConflictProblems';\nexport * from './CredentialDataModel';\nexport * from './Credential';\nexport * from './Credential11Proof';\nexport * from './Credential11';\nexport * from './CredentialBaseFilterAnnotationsItem';\nexport * from './CredentialBaseFilterCreatedAt';\nexport * from './CredentialBaseFilterDeletedAt';\nexport * from './CredentialBaseFilterEtag';\nexport * from './CredentialBaseFilterId';\nexport * from './CredentialBaseFilterLabelsItem';\nexport * from './CredentialBaseFilterModifiedAt';\nexport * from './CredentialBaseFilterRevision';\nexport * from './CredentialBaseFilter';\nexport * from './CredentialFilter';\nexport * from './CredentialFilterDataDigestMultibase';\nexport * from './CredentialFilterDataHolder';\nexport * from './CredentialFilterDataId';\nexport * from './CredentialFilterDataIssuer';\nexport * from './CredentialFilterDataLinkedCredentials';\nexport * from './CredentialFilterDataLinkedFiles';\nexport * from './CredentialFilterDataType';\nexport * from './CredentialFilterDataValidFrom';\nexport * from './CredentialFilterDataValidUntil';\nexport * from './CredentialFilterData';\nexport * from './CredentialProof';\nexport * from './CredentialProofs';\nexport * from './CredentialSortField';\nexport * from './CredentialSortOrder';\nexport * from './CredentialSort';\nexport * from './CredentialVerify';\nexport * from './DidCommMessage';\nexport * from './DidCommMessageSend';\nexport * from './DidDocumentVerificationMethodItem';\nexport * from './DidDocument';\nexport * from './DidcommMessageBaseFilterAnnotationsItem';\nexport * from './DidcommMessageBaseFilterCreatedAt';\nexport * from './DidcommMessageBaseFilterDeletedAt';\nexport * from './DidcommMessageBaseFilterEtag';\nexport * from './DidcommMessageBaseFilterId';\nexport * from './DidcommMessageBaseFilterLabelsItem';\nexport * from './DidcommMessageBaseFilterModifiedAt';\nexport * from './DidcommMessageBaseFilterRevision';\nexport * from './DidcommMessageBaseFilter';\nexport * from './DidcommMessageFilter';\nexport * from './DidcommMessageFilterDataCredentials';\nexport * from './DidcommMessageFilterDataFrom';\nexport * from './DidcommMessageFilterDataPresentations';\nexport * from './DidcommMessageFilterDataTo';\nexport * from './DidcommMessageFilterData';\nexport * from './DidcommMessageSortField';\nexport * from './DidcommMessageSortOrder';\nexport * from './DidcommMessageSort';\nexport * from './Draft';\nexport * from './DraftBaseFilterAnnotationsItem';\nexport * from './DraftBaseFilterCreatedAt';\nexport * from './DraftBaseFilterDeletedAt';\nexport * from './DraftBaseFilterEtag';\nexport * from './DraftBaseFilterId';\nexport * from './DraftBaseFilterLabelsItem';\nexport * from './DraftBaseFilterModifiedAt';\nexport * from './DraftBaseFilterRevision';\nexport * from './DraftBaseFilter';\nexport * from './DraftCreate';\nexport * from './DraftEnumValue';\nexport * from './DraftFieldBooleanValue';\nexport * from './DraftFieldDateTimeValue';\nexport * from './DraftFieldDateValue';\nexport * from './DraftFieldFileValue';\nexport * from './DraftFieldLinkValue';\nexport * from './DraftFieldNumberValue';\nexport * from './DraftFieldStringValue';\nexport * from './DraftFieldStructValueFieldsItem';\nexport * from './DraftFieldStructValue';\nexport * from './DraftFilter';\nexport * from './DraftFilterDataLinkedCredentials';\nexport * from './DraftFilterDataLinkedDrafts';\nexport * from './DraftFilterDataType';\nexport * from './DraftFilterData';\nexport * from './DraftFilterMetaSubject';\nexport * from './DraftFilterMetaValidFrom';\nexport * from './DraftFilterMetaValidUntil';\nexport * from './DraftFilterMeta';\nexport * from './DraftMeta';\nexport * from './DraftSchemaFieldsItem';\nexport * from './DraftSchema';\nexport * from './DraftSortField';\nexport * from './DraftSortOrder';\nexport * from './DraftSort';\nexport * from './DraftUpdate';\nexport * from './EcdsaSecp256K1VerificationKey2019Type';\nexport * from './EcdsaSecp256K1VerificationKey2019';\nexport * from './EqualDid';\nexport * from './EqualDigestMultibase';\nexport * from './EqualETag';\nexport * from './EqualFilesize';\nexport * from './EqualKeyPublicBase58';\nexport * from './EqualKeyPublicMultibase';\nexport * from './EqualKeyPublicPem';\nexport * from './EqualKeyTypeValue';\nexport * from './EqualKeyType';\nexport * from './EqualPrimitiveString';\nexport * from './EqualResourceId';\nexport * from './EqualRevision';\nexport * from './EqualSubjectId';\nexport * from './EqualUri';\nexport * from './ErrorDetail';\nexport * from './ErrorModel';\nexport * from './File_';\nexport * from './FileBaseFilterAnnotationsItem';\nexport * from './FileBaseFilterCreatedAt';\nexport * from './FileBaseFilterDeletedAt';\nexport * from './FileBaseFilterEtag';\nexport * from './FileBaseFilterId';\nexport * from './FileBaseFilterLabelsItem';\nexport * from './FileBaseFilterModifiedAt';\nexport * from './FileBaseFilterRevision';\nexport * from './FileBaseFilter';\nexport * from './FileData';\nexport * from './FileFilter';\nexport * from './FileFilterDataContentType';\nexport * from './FileFilterDataDigestMultibase';\nexport * from './FileFilterDataFilename';\nexport * from './FileFilterDataFilesize';\nexport * from './FileFilterDataId';\nexport * from './FileFilterData';\nexport * from './FileSortField';\nexport * from './FileSortOrder';\nexport * from './FileSort';\nexport * from './ForbiddenProblems';\nexport * from './GreaterThanFilesize';\nexport * from './GreaterThanOrEqualFilesize';\nexport * from './GreaterThanOrEqualRevision';\nexport * from './GreaterThanRevision';\nexport * from './InDid';\nexport * from './InDigestMultibase';\nexport * from './InETag';\nexport * from './InFilesize';\nexport * from './InKeyPublicBase58';\nexport * from './InKeyPublicMultibase';\nexport * from './InKeyPublicPem';\nexport * from './InKeyTypeValuesItem';\nexport * from './InKeyType';\nexport * from './InPrimitiveString';\nexport * from './InResourceId';\nexport * from './InRevision';\nexport * from './InSubjectId';\nexport * from './InUri';\nexport * from './IsNotNullPrimitiveString';\nexport * from './IsNotNullResourceId';\nexport * from './IsNotNullTimestamp';\nexport * from './IsNotNullUri';\nexport * from './IsNullPrimitiveString';\nexport * from './IsNullResourceId';\nexport * from './IsNullTimestamp';\nexport * from './IsNullUri';\nexport * from './KeyBaseFilterAnnotationsItem';\nexport * from './KeyBaseFilterCreatedAt';\nexport * from './KeyBaseFilterDeletedAt';\nexport * from './KeyBaseFilterEtag';\nexport * from './KeyBaseFilterId';\nexport * from './KeyBaseFilterLabelsItem';\nexport * from './KeyBaseFilterModifiedAt';\nexport * from './KeyBaseFilterRevision';\nexport * from './KeyBaseFilter';\nexport * from './KeyEqualAnnotationKeyAnnotationValue';\nexport * from './KeyEqualLabelKeyLabelValue';\nexport * from './KeyFilter';\nexport * from './KeyFilterDataPublicKeyBase58';\nexport * from './KeyFilterDataPublicKeyMultibase';\nexport * from './KeyFilterDataPublicKeyPem';\nexport * from './KeyFilterDataType';\nexport * from './KeyFilterData';\nexport * from './KeyGenerateType';\nexport * from './KeyGenerate';\nexport * from './KeyIsNotNullAnnotationKey';\nexport * from './KeyIsNotNullLabelKey';\nexport * from './KeyIsNullAnnotationKey';\nexport * from './KeyIsNullLabelKey';\nexport * from './KeyNotEqualAnnotationKeyAnnotationValue';\nexport * from './KeyNotEqualLabelKeyLabelValue';\nexport * from './KeyPublicType';\nexport * from './KeyPublic';\nexport * from './KeySecretEc';\nexport * from './KeySecretJwk';\nexport * from './KeySecretPkcs8';\nexport * from './KeySortField';\nexport * from './KeySortOrder';\nexport * from './KeySort';\nexport * from './LessThanFilesize';\nexport * from './LessThanOrEqualFilesize';\nexport * from './LessThanOrEqualRevision';\nexport * from './LessThanRevision';\nexport * from './LinkedRef';\nexport * from './LinkedResourceRef';\nexport * from './ListApiKey';\nexport * from './ListCredential';\nexport * from './ListDidCommMessage';\nexport * from './ListDraft';\nexport * from './ListFile';\nexport * from './ListKeyPublic';\nexport * from './ListPresentation';\nexport * from './MethodNotAllowedProblems';\nexport * from './NestedInPrimitiveString';\nexport * from './NestedInResourceId';\nexport * from './NestedInUri';\nexport * from './NestedNotInPrimitiveString';\nexport * from './NestedNotInResourceId';\nexport * from './NestedNotInUri';\nexport * from './NotEqualDid';\nexport * from './NotEqualDigestMultibase';\nexport * from './NotEqualETag';\nexport * from './NotEqualFilesize';\nexport * from './NotEqualKeyPublicBase58';\nexport * from './NotEqualKeyPublicMultibase';\nexport * from './NotEqualKeyPublicPem';\nexport * from './NotEqualKeyTypeValue';\nexport * from './NotEqualKeyType';\nexport * from './NotEqualPrimitiveString';\nexport * from './NotEqualResourceId';\nexport * from './NotEqualRevision';\nexport * from './NotEqualSubjectId';\nexport * from './NotEqualUri';\nexport * from './NotFoundProblems';\nexport * from './NotInDid';\nexport * from './NotInDigestMultibase';\nexport * from './NotInETag';\nexport * from './NotInFilesize';\nexport * from './NotInKeyPublicBase58';\nexport * from './NotInKeyPublicMultibase';\nexport * from './NotInKeyPublicPem';\nexport * from './NotInKeyTypeValuesItem';\nexport * from './NotInKeyType';\nexport * from './NotInPrimitiveString';\nexport * from './NotInResourceId';\nexport * from './NotInRevision';\nexport * from './NotInSubjectId';\nexport * from './NotInUri';\nexport * from './PreconditionFailedProblems';\nexport * from './Presentation';\nexport * from './PresentationBaseFilterAnnotationsItem';\nexport * from './PresentationBaseFilterCreatedAt';\nexport * from './PresentationBaseFilterDeletedAt';\nexport * from './PresentationBaseFilterEtag';\nexport * from './PresentationBaseFilterId';\nexport * from './PresentationBaseFilterLabelsItem';\nexport * from './PresentationBaseFilterModifiedAt';\nexport * from './PresentationBaseFilterRevision';\nexport * from './PresentationBaseFilter';\nexport * from './PresentationFilter';\nexport * from './PresentationFilterDataDigestMultibase';\nexport * from './PresentationFilterDataId';\nexport * from './PresentationFilterDataLinkedCredentials';\nexport * from './PresentationFilterDataType';\nexport * from './PresentationFilterData';\nexport * from './PresentationSortField';\nexport * from './PresentationSortOrder';\nexport * from './PresentationSort';\nexport * from './PresentationVerify';\nexport * from './ProblemBadRequest';\nexport * from './ProblemBadRequestBlobEmptyData';\nexport * from './ProblemBadRequestBlobInvalidJson';\nexport * from './ProblemBadRequestHasNullUnicodeCharacter';\nexport * from './ProblemBlobNotFound';\nexport * from './ProblemConflict';\nexport * from './ProblemConflictBlobRestoreInProgress';\nexport * from './ProblemConflictResource';\nexport * from './ProblemForbidden';\nexport * from './ProblemInternalServerError';\nexport * from './ProblemMethodNotAllowed';\nexport * from './ProblemMethodNotAllowedAlive';\nexport * from './ProblemMethodNotAllowedDeleted';\nexport * from './ProblemMethodNotAllowedRoute';\nexport * from './ProblemNotFound';\nexport * from './ProblemPreconditionFailed';\nexport * from './ProblemPreconditionFailedBlob';\nexport * from './ProblemPreconditionFailedResource';\nexport * from './ProblemResourceNotFound';\nexport * from './ProblemResourceRevisionNotFound';\nexport * from './ProblemServiceUnavailable';\nexport * from './ProblemTooManyRequests';\nexport * from './ProblemUnauthorized';\nexport * from './ProblemUnsupportedMediaType';\nexport * from './Resource';\nexport * from './ResourceApiKey';\nexport * from './ResourceApiKeyFull';\nexport * from './ResourceCredential';\nexport * from './ResourceDidCommMessage';\nexport * from './ResourceDraft';\nexport * from './ResourceFile';\nexport * from './ResourceKeyPublic';\nexport * from './ResourceKind';\nexport * from './ResourcePresentation';\nexport * from './Service';\nexport * from './ServiceUnavailableProblems';\nexport * from './TimestampBetween';\nexport * from './TimestampGreaterThan';\nexport * from './TimestampGreaterThanOrEqual';\nexport * from './TimestampLessThan';\nexport * from './TimestampLessThanOrEqual';\nexport * from './TooManyRequestsProblems';\nexport * from './UnauthorizedProblems';\nexport * from './UnsupportedMediaTypeProblems';\nexport * from './UploadResponse';\nexport * from './VerificationMethodMultikeyType';\nexport * from './VerificationMethodMultikey';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Headers.d.ts","sourceRoot":"","sources":["../../../src/core/fetcher/Headers.ts"],"names":[],"mappings":"AAAA,QAAA,IAAI,OAAO,EAAE,OAAO,UAAU,CAAC,OAAO,CAAC;AA4FvC,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Headers = void 0;
|
|
4
|
+
let Headers;
|
|
5
|
+
if (typeof globalThis.Headers !== 'undefined') {
|
|
6
|
+
exports.Headers = Headers = globalThis.Headers;
|
|
7
|
+
}
|
|
8
|
+
else {
|
|
9
|
+
exports.Headers = Headers = class Headers {
|
|
10
|
+
constructor(init) {
|
|
11
|
+
this.headers = new Map();
|
|
12
|
+
if (init) {
|
|
13
|
+
if (init instanceof Headers) {
|
|
14
|
+
init.forEach((value, key) => this.append(key, value));
|
|
15
|
+
}
|
|
16
|
+
else if (Array.isArray(init)) {
|
|
17
|
+
for (const [key, value] of init) {
|
|
18
|
+
if (typeof key === 'string' && typeof value === 'string') {
|
|
19
|
+
this.append(key, value);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
throw new TypeError('Each header entry must be a [string, string] tuple');
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
for (const [key, value] of Object.entries(init)) {
|
|
28
|
+
if (typeof value === 'string') {
|
|
29
|
+
this.append(key, value);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
throw new TypeError('Header values must be strings');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
append(name, value) {
|
|
39
|
+
const key = name.toLowerCase();
|
|
40
|
+
const existing = this.headers.get(key) || [];
|
|
41
|
+
this.headers.set(key, [...existing, value]);
|
|
42
|
+
}
|
|
43
|
+
delete(name) {
|
|
44
|
+
const key = name.toLowerCase();
|
|
45
|
+
this.headers.delete(key);
|
|
46
|
+
}
|
|
47
|
+
get(name) {
|
|
48
|
+
const key = name.toLowerCase();
|
|
49
|
+
const values = this.headers.get(key);
|
|
50
|
+
return values ? values.join(', ') : null;
|
|
51
|
+
}
|
|
52
|
+
has(name) {
|
|
53
|
+
const key = name.toLowerCase();
|
|
54
|
+
return this.headers.has(key);
|
|
55
|
+
}
|
|
56
|
+
set(name, value) {
|
|
57
|
+
const key = name.toLowerCase();
|
|
58
|
+
this.headers.set(key, [value]);
|
|
59
|
+
}
|
|
60
|
+
forEach(callbackfn, thisArg) {
|
|
61
|
+
const boundCallback = thisArg ? callbackfn.bind(thisArg) : callbackfn;
|
|
62
|
+
this.headers.forEach((values, key) => boundCallback(values.join(', '), key, this));
|
|
63
|
+
}
|
|
64
|
+
getSetCookie() {
|
|
65
|
+
return this.headers.get('set-cookie') || [];
|
|
66
|
+
}
|
|
67
|
+
*entries() {
|
|
68
|
+
for (const [key, values] of this.headers.entries()) {
|
|
69
|
+
yield [key, values.join(', ')];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
*keys() {
|
|
73
|
+
yield* this.headers.keys();
|
|
74
|
+
}
|
|
75
|
+
*values() {
|
|
76
|
+
for (const values of this.headers.values()) {
|
|
77
|
+
yield values.join(', ');
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
[Symbol.iterator]() {
|
|
81
|
+
return this.entries();
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=Headers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Headers.js","sourceRoot":"","sources":["../../../src/core/fetcher/Headers.ts"],"names":[],"mappings":";;;AAAA,IAAI,OAAkC,CAAC;AAEvC,IAAI,OAAO,UAAU,CAAC,OAAO,KAAK,WAAW,EAAE,CAAC;IAC5C,kBAAA,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;AACjC,CAAC;KAAM,CAAC;IACJ,kBAAA,OAAO,GAAG,MAAM,OAAO;QAGnB,YAAY,IAAkB;YAC1B,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;YAEzB,IAAI,IAAI,EA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D,CAAC;QAED,CAAC,OAAO;YACJ,KAAK,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;gBACjD,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YACnC,CAAC;QACL,CAAC;QAED,CAAC,IAAI;YACD,KAAK,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QAC/B,CAAC;QAED,CAAC,MAAM;YACH,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;gBACzC,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC5B,CAAC;QACL,CAAC;QAED,CAAC,MAAM,CAAC,QAAQ,CAAC;YACb,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;QAC1B,CAAC;KACJ,CAAC;AACN,CAAC","sourcesContent":["let Headers: typeof globalThis.Headers;\n\nif (typeof globalThis.Headers !== 'undefined') {\n Headers = globalThis.Headers;\n} else {\n Headers = class Headers implements Headers {\n private headers: Map<string, string[]>;\n\n constructor(init?: HeadersInit) {\n this.headers = new Map();\n\n if (init) {\n if (init instanceof Headers) {\n init.forEach((value, key) => this.append(key, value));\n } else if (Array.isArray(init)) {\n for (const [key, value] of init) {\n if (typeof key === 'string' && typeof value === 'string') {\n this.append(key, value);\n } else {\n throw new TypeError('Each header entry must be a [string, string] tuple');\n }\n }\n } else {\n for (const [key, value] of Object.entries(init)) {\n if (typeof value === 'string') {\n this.append(key, value);\n } else {\n throw new TypeError('Header values must be strings');\n }\n }\n }\n }\n }\n\n append(name: string, value: string): void {\n const key = name.toLowerCase();\n const existing = this.headers.get(key) || [];\n this.headers.set(key, [...existing, value]);\n }\n\n delete(name: string): void {\n const key = name.toLowerCase();\n this.headers.delete(key);\n }\n\n get(name: string): string | null {\n const key = name.toLowerCase();\n const values = this.headers.get(key);\n return values ? values.join(', ') : null;\n }\n\n has(name: string): boolean {\n const key = name.toLowerCase();\n return this.headers.has(key);\n }\n\n set(name: string, value: string): void {\n const key = name.toLowerCase();\n this.headers.set(key, [value]);\n }\n\n forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: unknown): void {\n const boundCallback = thisArg ? callbackfn.bind(thisArg) : callbackfn;\n this.headers.forEach((values, key) => boundCallback(values.join(', '), key, this));\n }\n\n getSetCookie(): string[] {\n return this.headers.get('set-cookie') || [];\n }\n\n *entries(): HeadersIterator<[string, string]> {\n for (const [key, values] of this.headers.entries()) {\n yield [key, values.join(', ')];\n }\n }\n\n *keys(): HeadersIterator<string> {\n yield* this.headers.keys();\n }\n\n *values(): HeadersIterator<string> {\n for (const values of this.headers.values()) {\n yield values.join(', ');\n }\n }\n\n [Symbol.iterator](): HeadersIterator<[string, string]> {\n return this.entries();\n }\n };\n}\n\nexport { Headers };\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RawResponse.d.ts","sourceRoot":"","sources":["../../../src/core/fetcher/RawResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RawResponse.d.ts","sourceRoot":"","sources":["../../../src/core/fetcher/RawResponse.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,CAC1B;KACK,CAAC,IAAI,MAAM,QAAQ,IAAI,QAAQ,CAAC,CAAC,CAAC,SAAS,QAAQ,GAAG,KAAK,GAAG,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC;CACjF,EACD,IAAI,GAAG,MAAM,GAAG,UAAU,CAC7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAOrB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,WAOvB,CAAC;AAEX;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,WAAW,CAS7D;AAED;;GAEG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC;IAC9B,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IACjB,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;CACrC"}
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.unknownRawResponse = exports.abortRawResponse = void 0;
|
|
4
4
|
exports.toRawResponse = toRawResponse;
|
|
5
|
+
const Headers_1 = require("./Headers");
|
|
5
6
|
/**
|
|
6
7
|
* A raw response indicating that the request was aborted.
|
|
7
8
|
*/
|
|
8
9
|
exports.abortRawResponse = {
|
|
9
|
-
headers: new Headers(),
|
|
10
|
+
headers: new Headers_1.Headers(),
|
|
10
11
|
redirected: false,
|
|
11
12
|
status: 499,
|
|
12
13
|
statusText: 'Client Closed Request',
|
|
@@ -17,7 +18,7 @@ exports.abortRawResponse = {
|
|
|
17
18
|
* A raw response indicating an unknown error.
|
|
18
19
|
*/
|
|
19
20
|
exports.unknownRawResponse = {
|
|
20
|
-
headers: new Headers(),
|
|
21
|
+
headers: new Headers_1.Headers(),
|
|
21
22
|
redirected: false,
|
|
22
23
|
status: 0,
|
|
23
24
|
statusText: 'Unknown Error',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RawResponse.js","sourceRoot":"","sources":["../../../src/core/fetcher/RawResponse.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"RawResponse.js","sourceRoot":"","sources":["../../../src/core/fetcher/RawResponse.ts"],"names":[],"mappings":";;;AA2CA,sCASC;AApDD,uCAAoC;AAYpC;;GAEG;AACU,QAAA,gBAAgB,GAAgB;IACzC,OAAO,EAAE,IAAI,iBAAO,EAAE;IACtB,UAAU,EAAE,KAAK;IACjB,MAAM,EAAE,GAAG;IACX,UAAU,EAAE,uBAAuB;IACnC,IAAI,EAAE,OAAO;IACb,GAAG,EAAE,EAAE;CACD,CAAC;AAEX;;GAEG;AACU,QAAA,kBAAkB,GAAgB;IAC3C,OAAO,EAAE,IAAI,iBAAO,EAAE;IACtB,UAAU,EAAE,KAAK;IACjB,MAAM,EAAE,CAAC;IACT,UAAU,EAAE,eAAe;IAC3B,IAAI,EAAE,OAAO;IACb,GAAG,EAAE,EAAE;CACD,CAAC;AAEX;;;;;;GAMG;AACH,SAAgB,aAAa,CAAC,QAAkB;IAC5C,OAAO;QACH,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,UAAU,EAAE,QAAQ,CAAC,UAAU;QAC/B,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,UAAU,EAAE,QAAQ,CAAC,UAAU;QAC/B,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,GAAG,EAAE,QAAQ,CAAC,GAAG;KACpB,CAAC;AACN,CAAC","sourcesContent":["import { Headers } from './Headers';\n\n/**\n * The raw response from the fetch call excluding the body.\n */\nexport type RawResponse = Omit<\n {\n [K in keyof Response as Response[K] extends Function ? never : K]: Response[K]; // strips out functions\n },\n 'ok' | 'body' | 'bodyUsed'\n>; // strips out body and bodyUsed\n\n/**\n * A raw response indicating that the request was aborted.\n */\nexport const abortRawResponse: RawResponse = {\n headers: new Headers(),\n redirected: false,\n status: 499,\n statusText: 'Client Closed Request',\n type: 'error',\n url: '',\n} as const;\n\n/**\n * A raw response indicating an unknown error.\n */\nexport const unknownRawResponse: RawResponse = {\n headers: new Headers(),\n redirected: false,\n status: 0,\n statusText: 'Unknown Error',\n type: 'error',\n url: '',\n} as const;\n\n/**\n * Converts a `RawResponse` object into a `RawResponse` by extracting its properties,\n * excluding the `body` and `bodyUsed` fields.\n *\n * @param response - The `RawResponse` object to convert.\n * @returns A `RawResponse` object containing the extracted properties of the input response.\n */\nexport function toRawResponse(response: Response): RawResponse {\n return {\n headers: response.headers,\n redirected: response.redirected,\n status: response.status,\n statusText: response.statusText,\n type: response.type,\n url: response.url,\n };\n}\n\n/**\n * Creates a `RawResponse` from a standard `Response` object.\n */\nexport interface WithRawResponse<T> {\n readonly data: T;\n readonly rawResponse: RawResponse;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claims.d.ts","sourceRoot":"","sources":["../../../src/documents/credential/claims.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,SAAS,EACT,MAAM,EACN,IAAI,EAGJ,gBAAgB,EAChB,eAAe,EACf,UAAU,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,EACH,eAAe,EAKlB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAG/D,OAAO,EAAE,gBAAgB,EAAmB,IAAI,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"claims.d.ts","sourceRoot":"","sources":["../../../src/documents/credential/claims.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,SAAS,EACT,MAAM,EACN,IAAI,EAGJ,gBAAgB,EAChB,eAAe,EACf,UAAU,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,EACH,eAAe,EAKlB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAG/D,OAAO,EAAE,gBAAgB,EAAmB,IAAI,EAAE,MAAM,SAAS,CAAC;AAIlE,qBAAa,SAAS,CAAC,CAAC,SAAS,MAAM;IAE/B,SAAS,CAAC,MAAM,EAAE,SAAS;IAC3B,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC;gBADpB,MAAM,EAAE,SAAS,EACjB,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC;IAGlC,OAAO,CAAC,aAAa;IAkCrB,OAAO,CAAC,gBAAgB;IAYxB,qGAAqG;IACrG,SAAS,CAAC,qBAAqB,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,GAAG,CAAC;IAiEnF,oGAAoG;IACpG,SAAS,CAAC,qBAAqB,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,gBAAgB;IA2D/F,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,qBAAqB;IAuG9F;;;OAGG;IACH,aAAa,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,IAAI;IAI/C;;;OAGG;IACH,sBAAsB,CAAC,KAAK,EAAE,IAAI,GAAG,eAAe,CAAC,CAAC,CAAC;IAIvD,2BAA2B,CAAC,KAAK,EAAE,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC;IAIvD,cAAc,IAAI,WAAW;CAmBhC"}
|
|
@@ -40,6 +40,7 @@ const models_1 = require("../models");
|
|
|
40
40
|
const converters_1 = require("../utils/converters");
|
|
41
41
|
const serialization = __importStar(require("../../serialization"));
|
|
42
42
|
const verifiable_1 = require("./verifiable");
|
|
43
|
+
const error_1 = require("../utils/error");
|
|
43
44
|
class UdtClaims {
|
|
44
45
|
constructor(client, claimsModel) {
|
|
45
46
|
this.client = client;
|
|
@@ -60,7 +61,7 @@ class UdtClaims {
|
|
|
60
61
|
});
|
|
61
62
|
}
|
|
62
63
|
else {
|
|
63
|
-
throw new
|
|
64
|
+
throw new error_1.DocumentedError(error_1.ErrorCode.UnexpectedTypeInSerialization, `Can't convert received value as it has an unexpected type. The value is defined in UDT as "Array".`);
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
else {
|
|
@@ -95,19 +96,19 @@ class UdtClaims {
|
|
|
95
96
|
}
|
|
96
97
|
if (typeInfo === Date) {
|
|
97
98
|
if (typeof value !== 'string') {
|
|
98
|
-
throw new
|
|
99
|
+
throw new error_1.DocumentedError(error_1.ErrorCode.UnexpectedTypeInSerialization, `Can't convert received value as it has an unexpected type. The value is defined in UDT as "Date".`);
|
|
99
100
|
}
|
|
100
101
|
return new Date(value);
|
|
101
102
|
}
|
|
102
103
|
if (typeInfo === models_1.Rfc3339DateTime) {
|
|
103
104
|
if (typeof value !== 'string') {
|
|
104
|
-
throw new
|
|
105
|
+
throw new error_1.DocumentedError(error_1.ErrorCode.UnexpectedTypeInSerialization, `Can't convert received value as it has an unexpected type. The value is defined in UDT as "Rfc3339DateTime".`);
|
|
105
106
|
}
|
|
106
107
|
return new models_1.Rfc3339DateTime(value);
|
|
107
108
|
}
|
|
108
109
|
if (typeInfo === models_1.Rfc3339Date) {
|
|
109
110
|
if (typeof value !== 'string') {
|
|
110
|
-
throw new
|
|
111
|
+
throw new error_1.DocumentedError(error_1.ErrorCode.UnexpectedTypeInSerialization, `Can't convert received value as it has an unexpected type. The value is defined in UDT as "Rfc3339Date".`);
|
|
111
112
|
}
|
|
112
113
|
return new models_1.Rfc3339Date(value);
|
|
113
114
|
}
|
|
@@ -116,7 +117,7 @@ class UdtClaims {
|
|
|
116
117
|
return value;
|
|
117
118
|
}
|
|
118
119
|
if (!(value instanceof Object)) {
|
|
119
|
-
throw new
|
|
120
|
+
throw new error_1.DocumentedError(error_1.ErrorCode.UnexpectedTypeInSerialization, `Can't convert received value as it has an unexpected type. The value is defined in UDT as "${typeInfo.name}".`);
|
|
120
121
|
}
|
|
121
122
|
return this.convertApiValuesToUdt(typeInfo, value);
|
|
122
123
|
};
|
|
@@ -152,7 +153,7 @@ class UdtClaims {
|
|
|
152
153
|
return value;
|
|
153
154
|
}
|
|
154
155
|
if (!(value instanceof Object)) {
|
|
155
|
-
throw new
|
|
156
|
+
throw new error_1.DocumentedError(error_1.ErrorCode.UnexpectedTypeInSerialization, `Can't convert received value as it has an unexpected type. The value is defined in UDT as "${typeInfo.name}".`);
|
|
156
157
|
}
|
|
157
158
|
return this.convertUdtToApiValues(typeInfo, value);
|
|
158
159
|
};
|
|
@@ -171,7 +172,7 @@ class UdtClaims {
|
|
|
171
172
|
const claimNestedType = claim.nestedType;
|
|
172
173
|
const nestedContextInfo = (0, decorators_1.getContextJsonLdMetadata)(claimNestedType);
|
|
173
174
|
if (!nestedContextInfo) {
|
|
174
|
-
throw new
|
|
175
|
+
throw new error_1.DocumentedError(error_1.ErrorCode.VcContextAnnotationMissing, `The information about the VC context was not found in the "${claimNestedType.name}" model. Please use the "@VcContext" decorator to define the necessary information.`);
|
|
175
176
|
}
|
|
176
177
|
return (0, converters_1.strictlyConvertToApiType)(serialization.DraftSchemaFieldsItem, Object.assign(Object.assign({}, draftBaseFieldValue), { kind: 'STRUCT', fields: (0, decorators_1.getRegisteredClaimsList)(claimNestedType).map((nestedClaim) => {
|
|
177
178
|
return this.mapClaimToApi(nestedClaim, claimNestedType);
|
|
@@ -198,7 +199,7 @@ class UdtClaims {
|
|
|
198
199
|
case models_1.LinkedCredential:
|
|
199
200
|
return (0, converters_1.strictlyConvertToApiType)(serialization.DraftSchemaFieldsItem, Object.assign(Object.assign({}, draftBaseFieldValue), { kind: 'LINK', linkType: undefined }));
|
|
200
201
|
default:
|
|
201
|
-
throw new
|
|
202
|
+
throw new error_1.DocumentedError(error_1.ErrorCode.UnexpectedTypeInSerialization, `Unsupported primitive data type: ${tsDataType.name}. Please use one of the supported types.`);
|
|
202
203
|
}
|
|
203
204
|
}
|
|
204
205
|
/**
|
|
@@ -221,7 +222,7 @@ class UdtClaims {
|
|
|
221
222
|
getDraftSchema() {
|
|
222
223
|
const vcContextMetadata = (0, decorators_1.getContextJsonLdMetadata)(this.claimsModel);
|
|
223
224
|
if (!vcContextMetadata) {
|
|
224
|
-
throw new
|
|
225
|
+
throw new error_1.DocumentedError(error_1.ErrorCode.VcContextAnnotationMissing, `Unable to find JSON-LD metadata. Make sure you have defined the claims model with the @VcContext decorator`);
|
|
225
226
|
}
|
|
226
227
|
return (0, converters_1.strictlyConvertToApiType)(serialization.DraftSchema, {
|
|
227
228
|
fields: (0, decorators_1.getRegisteredClaimsList)(this.claimsModel).map((claim) => this.mapClaimToApi(claim, this.claimsModel)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claims.js","sourceRoot":"","sources":["../../../src/documents/credential/claims.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oCASkB;AAClB,8CAMuB;AACvB,sCAAuF;AAEvF,oDAA8E;AAC9E,mEAAqD;AAErD,6CAAoD;AAEpD,MAAa,SAAS;IAClB,YACc,MAAiB,EACjB,WAAoB;QADpB,WAAM,GAAN,MAAM,CAAW;QACjB,gBAAW,GAAX,WAAW,CAAS;IAC/B,CAAC;IAEI,aAAa,CACjB,KAAgB,EAChB,KAAW,EACX,YAAsE,EACtE,YAAe;QAEf,OAAO,IAAA,oCAAuB,EAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;YAChE,IAAI,UAAU,CAAC,IAAI,IAAI,KAAK,EAAE,CAAC;gBAC3B,MAAM,KAAK,GAAY,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBAC9C,IAAI,cAAuB,CAAC;gBAE5B,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;oBACrB,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;wBAChB,cAAc,GAAG,IAAI,CAAC;oBAC1B,CAAC;yBAAM,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;wBAC9B,cAAc,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;4BAChC,OAAO,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;wBAC1C,CAAC,CAAC,CAAC;oBACP,CAAC;yBAAM,CAAC;wBACJ,MAAM,IAAI,KAAK,CACX,gJAAgJ,CACnJ,CAAC;oBACN,CAAC;gBACL,CAAC;qBAAM,CAAC;oBACJ,cAAc,GAAG,YAAY,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,CAAC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AE,iBAAiB,CAAC,SAAS;YAC3C,SAAS,EAAE,iBAAiB,CAAC,IAAI;YACjC,MAAM,EAAE,iBAAiB,CAAC,MAAM;SACnC,CAAC,CAAC;IACP,CAAC;CACJ;AAvTD,8BAuTC","sourcesContent":["import {\n ApiClient,\n Claims,\n Ctor,\n isLinkedEntityDescriptor,\n isValueWithId,\n UserUpdateClaims,\n ReadDraftClaims,\n ReadClaims,\n} from '../types';\nimport {\n ClaimDescriptor,\n getClaimJsonLdTypeMetadata,\n getContextJsonLdMetadata,\n getRegisteredClaimsList,\n getTsDataTypeMetadata,\n} from '../decorators';\nimport { Rfc3339Date, LinkedCredential, LinkedFile, Rfc3339DateTime } from '../models';\nimport { DraftSchema, DraftSchemaFieldsItem } from '../../api';\nimport { strictlyConvertToApiType, StrictPartial } from '../utils/converters';\nimport * as serialization from '../../serialization';\nimport { CredentialClaims, DraftFieldValue, Json } from './types';\nimport { VerifiableCredential } from './verifiable';\n\nexport class UdtClaims<T extends Claims> {\n constructor(\n protected client: ApiClient,\n protected claimsModel: Ctor<T>,\n ) {}\n\n private processValues<K extends Claims>(\n model: Ctor<any>,\n input: Json,\n processValue: (descriptor: ClaimDescriptor, value: unknown) => unknown,\n initialValue: K,\n ): K {\n return getRegisteredClaimsList(model).reduce((result, descriptor) => {\n if (descriptor.name in input) {\n const value: unknown = input[descriptor.name];\n let processedValue: unknown;\n\n if (descriptor.isArray) {\n if (value == null) {\n processedValue = null;\n } else if (Array.isArray(value)) {\n processedValue = value.map((item) => {\n return processValue(descriptor, item);\n });\n } else {\n throw new Error(\n `Can't convert received value as it has an unexpected type. The value is defined in UDT as \"Array\". Please reach out to support for assistance.`,\n );\n }\n } else {\n processedValue = processValue(descriptor, value);\n }\n Reflect.set(result, descriptor.name, processedValue);\n }\n\n return result;\n }, initialValue);\n }\n\n private getClaimTypeInfo(model: Ctor<any>, descriptor: ClaimDescriptor): Ctor<any> {\n const typeInfo = descriptor.nestedType ? descriptor.nestedType : getTsDataTypeMetadata(model, descriptor.name);\n\n if (typeInfo == null) {\n throw new Error(\n `Can't convert received value. Inconsistent data definition. Please reach out to support for assistance.`,\n );\n }\n\n return typeInfo;\n }\n\n /** convertApiValuesToUdt maps and converts the API received claims values to the UDT claims model */\n protected convertApiValuesToUdt<K extends Claims>(model: Ctor<any>, input: Json): K {\n const processValue = (descriptor: ClaimDescriptor, value: unknown): unknown => {\n if (value == null) {\n return null;\n }\n\n const typeInfo = this.getClaimTypeInfo(model, descriptor);\n\n if (isLinkedEntityDescriptor(value)) {\n if (typeInfo == LinkedCredential) {\n return new LinkedCredential(this.client, value.id, value.digestMultibase);\n }\n\n if (typeInfo === LinkedFile) {\n return new LinkedFile(this.client, value.id, value.digestMultibase);\n }\n }\n\n if (typeInfo === Date) {\n if (typeof value !== 'string') {\n throw new Error(\n `Can't convert received value as it has an unexpected type. The value is defined in UDT as \"Date\". Please reach out to support for assistance.`,\n );\n }\n return new Date(value);\n }\n\n if (typeInfo === Rfc3339DateTime) {\n if (typeof value !== 'string') {\n throw new Error(\n `Can't convert received value as it has an unexpected type. The value is defined in UDT as \"Rfc3339DateTime\". Please reach out to support for assistance.`,\n );\n }\n return new Rfc3339DateTime(value);\n }\n\n if (typeInfo === Rfc3339Date) {\n if (typeof value !== 'string') {\n throw new Error(\n `Can't convert received value as it has an unexpected type. The value is defined in UDT as \"Rfc3339Date\". Please reach out to support for assistance.`,\n );\n }\n return new Rfc3339Date(value);\n }\n\n // Primitive values should be returned as-is\n if (Array.of<Ctor<any>>(String, Number, Boolean, Object).includes(typeInfo)) {\n return value;\n }\n\n if (!(value instanceof Object)) {\n throw new Error(\n `Can't convert received value as it has an unexpected type. The value is defined in UDT as \"${typeInfo.name}\". Please reach out to support for assistance.`,\n );\n }\n return this.convertApiValuesToUdt(typeInfo, value);\n };\n\n return this.processValues<K>(model, input, processValue, new model());\n }\n\n /** convertUdtToApiValues maps and converts the user received claims values onto UDT claims model */\n protected convertUdtToApiValues<K extends Claims>(model: Ctor<any>, input: K): CredentialClaims {\n const processValue = (descriptor: ClaimDescriptor, value: unknown): unknown => {\n if (value == null) {\n return null;\n }\n\n const typeInfo = this.getClaimTypeInfo(model, descriptor);\n\n if (typeInfo == LinkedCredential) {\n if (value instanceof LinkedCredential) {\n return value.toJSON();\n }\n\n if (value instanceof VerifiableCredential) {\n return value.toLinkedCredential().toJSON();\n }\n\n if (isValueWithId(value)) {\n return LinkedCredential.createClaimValue(value.id, value.digestMultibase);\n }\n }\n\n if (typeInfo === LinkedFile) {\n if (value instanceof LinkedFile) {\n return value.toJSON();\n }\n\n if (isValueWithId(value)) {\n return LinkedFile.createClaimValue(value.id, value.digestMultibase);\n }\n }\n\n if (\n Array.of<Ctor<any>>(\n String,\n Number,\n Date,\n Rfc3339DateTime,\n Rfc3339Date,\n Boolean,\n Object,\n Function,\n ).includes(typeInfo)\n ) {\n return value;\n }\n\n if (!(value instanceof Object)) {\n throw new Error(\n `Can't convert received value as it has an unexpected type. The value is defined in UDT as \"${typeInfo.name}\". Please reach out to support for assistance.`,\n );\n }\n return this.convertUdtToApiValues(typeInfo, value);\n };\n\n return this.processValues(model, input, processValue, {});\n }\n\n protected mapClaimToApi(claim: ClaimDescriptor, claimsModel: Ctor<any>): DraftSchemaFieldsItem {\n const claimJsonLdType = getClaimJsonLdTypeMetadata(claimsModel, claim.name);\n const draftBaseFieldValue: StrictPartial<DraftFieldValue> = {\n name: claim.name,\n title: claim.title,\n notEmpty: claim.notEmpty,\n isArray: claim.isArray || undefined,\n };\n\n if (\n claim.nestedType &&\n !Array.of<Ctor<any>>(\n String,\n Number,\n Date,\n Rfc3339DateTime,\n Rfc3339Date,\n Boolean,\n LinkedFile,\n LinkedCredential,\n ).includes(claim.nestedType)\n ) {\n const claimNestedType = claim.nestedType;\n const nestedContextInfo = getContextJsonLdMetadata(claimNestedType);\n\n if (!nestedContextInfo) {\n throw new Error(\n `The information about the VC context was not found in the \"${claimNestedType.name}\" model. Please use the \"@VcContext\" decorator to define the necessary information.`,\n );\n }\n\n return strictlyConvertToApiType(serialization.DraftSchemaFieldsItem, {\n ...draftBaseFieldValue,\n kind: 'STRUCT',\n fields: getRegisteredClaimsList(claimNestedType).map((nestedClaim) => {\n return this.mapClaimToApi(nestedClaim, claimNestedType);\n }),\n vocabNamespace: nestedContextInfo.namespace,\n vocabName: nestedContextInfo.name,\n });\n }\n\n const tsDataType = claim.nestedType || getTsDataTypeMetadata(claimsModel, claim.name);\n\n if (!tsDataType) {\n throw new Error(\n `The information about the VC claim data type was not found for the \"${claim.name}\" property. Ensure that \"emitDecoratorMetadata\" is enabled in your \"tsconfig.json\".`,\n );\n }\n\n switch (tsDataType) {\n case String:\n return strictlyConvertToApiType(serialization.DraftSchemaFieldsItem, {\n ...draftBaseFieldValue,\n kind: 'STRING',\n type: claimJsonLdType,\n enum: claim.enumValuesDescriptor,\n });\n case Number:\n return strictlyConvertToApiType(serialization.DraftSchemaFieldsItem, {\n ...draftBaseFieldValue,\n kind: 'NUMBER',\n type: claimJsonLdType,\n });\n case Boolean:\n return strictlyConvertToApiType(serialization.DraftSchemaFieldsItem, {\n ...draftBaseFieldValue,\n kind: 'BOOLEAN',\n type: claimJsonLdType,\n });\n case Rfc3339Date:\n return strictlyConvertToApiType(serialization.DraftSchemaFieldsItem, {\n ...draftBaseFieldValue,\n kind: 'DATE',\n type: claimJsonLdType,\n });\n case Rfc3339DateTime:\n case Date:\n return strictlyConvertToApiType(serialization.DraftSchemaFieldsItem, {\n ...draftBaseFieldValue,\n kind: 'DATETIME',\n type: claimJsonLdType,\n });\n case LinkedFile:\n return strictlyConvertToApiType(serialization.DraftSchemaFieldsItem, {\n ...draftBaseFieldValue,\n kind: 'FILE',\n });\n case LinkedCredential:\n return strictlyConvertToApiType(serialization.DraftSchemaFieldsItem, {\n ...draftBaseFieldValue,\n kind: 'LINK',\n linkType: undefined,\n });\n default:\n throw new Error(\n `Unsupported primitive data type: ${tsDataType.name}. Please use one of the supported types. You can find more information in the documentation.`,\n );\n }\n }\n\n /**\n * Marshalling is the process of transforming the internal representation of values to a data format suitable\n * for transmission.\n */\n marshalValues(input: UserUpdateClaims<T>): Json {\n return this.convertUdtToApiValues(this.claimsModel, input);\n }\n\n /**\n * Unmarshalling is the reverse process of marshalling. It involves converting data from a serialized format back\n * into an internal representation.\n */\n unmarshalValuesToDraft(input: Json): ReadDraftClaims<T> {\n return this.convertApiValuesToUdt(this.claimsModel, input);\n }\n\n unmarshalValuesToCredential(input: Json): ReadClaims<T> {\n return this.convertApiValuesToUdt(this.claimsModel, input);\n }\n\n getDraftSchema(): DraftSchema {\n const vcContextMetadata = getContextJsonLdMetadata(this.claimsModel);\n\n if (!vcContextMetadata) {\n throw new Error(\n `Unable to find JSON-LD metadata. Make sure you have defined the claims model with the @VcContext decorator`,\n );\n }\n\n return strictlyConvertToApiType(serialization.DraftSchema, {\n fields: getRegisteredClaimsList(this.claimsModel).map((claim) =>\n this.mapClaimToApi(claim, this.claimsModel),\n ),\n vocabNamespace: vcContextMetadata.namespace,\n vocabName: vcContextMetadata.name,\n vcType: vcContextMetadata.vcType,\n });\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"claims.js","sourceRoot":"","sources":["../../../src/documents/credential/claims.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oCASkB;AAClB,8CAMuB;AACvB,sCAAuF;AAEvF,oDAA8E;AAC9E,mEAAqD;AAErD,6CAAoD;AACpD,0CAA4D;AAE5D,MAAa,SAAS;IAClB,YACc,MAAiB,EACjB,WAAoB;QADpB,WAAM,GAAN,MAAM,CAAW;QACjB,gBAAW,GAAX,WAAW,CAAS;IAC/B,CAAC;IAEI,aAAa,CACjB,KAAgB,EAChB,KAAW,EACX,YAAsE,EACtE,YAAe;QAEf,OAAO,IAAA,oCAAuB,EAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;YAChE,IAAI,UAAU,CAAC,IAAI,IAAI,KAAK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,oCAAoC,UAAU,CAAC,IAAI,0CAA0C,CAChG,CAAC;QACV,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,aAAa,CAAC,KAA0B;QACpC,OAAO,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;IAED;;;OAGG;IACH,sBAAsB,CAAC,KAAW;QAC9B,OAAO,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;IAED,2BAA2B,CAAC,KAAW;QACnC,OAAO,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;IAED,cAAc;QACV,MAAM,iBAAiB,GAAG,IAAA,qCAAwB,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAErE,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACrB,MAAM,IAAI,uBAAe,CACrB,iBAAS,CAAC,0BAA0B,EACpC,4GAA4G,CAC/G,CAAC;QACN,CAAC;QAED,OAAO,IAAA,qCAAwB,EAAC,aAAa,CAAC,WAAW,EAAE;YACvD,MAAM,EAAE,IAAA,oCAAuB,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAC5D,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,CAC9C;YACD,cAAc,EAAE,iBAAiB,CAAC,SAAS;YAC3C,SAAS,EAAE,iBAAiB,CAAC,IAAI;YACjC,MAAM,EAAE,iBAAiB,CAAC,MAAM;SACnC,CAAC,CAAC;IACP,CAAC;CACJ;AAhUD,8BAgUC","sourcesContent":["import {\n ApiClient,\n Claims,\n Ctor,\n isLinkedEntityDescriptor,\n isValueWithId,\n UserUpdateClaims,\n ReadDraftClaims,\n ReadClaims,\n} from '../types';\nimport {\n ClaimDescriptor,\n getClaimJsonLdTypeMetadata,\n getContextJsonLdMetadata,\n getRegisteredClaimsList,\n getTsDataTypeMetadata,\n} from '../decorators';\nimport { Rfc3339Date, LinkedCredential, LinkedFile, Rfc3339DateTime } from '../models';\nimport { DraftSchema, DraftSchemaFieldsItem } from '../../api';\nimport { strictlyConvertToApiType, StrictPartial } from '../utils/converters';\nimport * as serialization from '../../serialization';\nimport { CredentialClaims, DraftFieldValue, Json } from './types';\nimport { VerifiableCredential } from './verifiable';\nimport { DocumentedError, ErrorCode } from '../utils/error';\n\nexport class UdtClaims<T extends Claims> {\n constructor(\n protected client: ApiClient,\n protected claimsModel: Ctor<T>,\n ) {}\n\n private processValues<K extends Claims>(\n model: Ctor<any>,\n input: Json,\n processValue: (descriptor: ClaimDescriptor, value: unknown) => unknown,\n initialValue: K,\n ): K {\n return getRegisteredClaimsList(model).reduce((result, descriptor) => {\n if (descriptor.name in input) {\n const value: unknown = input[descriptor.name];\n let processedValue: unknown;\n\n if (descriptor.isArray) {\n if (value == null) {\n processedValue = null;\n } else if (Array.isArray(value)) {\n processedValue = value.map((item) => {\n return processValue(descriptor, item);\n });\n } else {\n throw new DocumentedError(\n ErrorCode.UnexpectedTypeInSerialization,\n `Can't convert received value as it has an unexpected type. The value is defined in UDT as \"Array\".`,\n );\n }\n } else {\n processedValue = processValue(descriptor, value);\n }\n Reflect.set(result, descriptor.name, processedValue);\n }\n\n return result;\n }, initialValue);\n }\n\n private getClaimTypeInfo(model: Ctor<any>, descriptor: ClaimDescriptor): Ctor<any> {\n const typeInfo = descriptor.nestedType ? descriptor.nestedType : getTsDataTypeMetadata(model, descriptor.name);\n\n if (typeInfo == null) {\n throw new Error(\n `Can't convert received value. Inconsistent data definition. Please reach out to support for assistance.`,\n );\n }\n\n return typeInfo;\n }\n\n /** convertApiValuesToUdt maps and converts the API received claims values to the UDT claims model */\n protected convertApiValuesToUdt<K extends Claims>(model: Ctor<any>, input: Json): K {\n const processValue = (descriptor: ClaimDescriptor, value: unknown): unknown => {\n if (value == null) {\n return null;\n }\n\n const typeInfo = this.getClaimTypeInfo(model, descriptor);\n\n if (isLinkedEntityDescriptor(value)) {\n if (typeInfo == LinkedCredential) {\n return new LinkedCredential(this.client, value.id, value.digestMultibase);\n }\n\n if (typeInfo === LinkedFile) {\n return new LinkedFile(this.client, value.id, value.digestMultibase);\n }\n }\n\n if (typeInfo === Date) {\n if (typeof value !== 'string') {\n throw new DocumentedError(\n ErrorCode.UnexpectedTypeInSerialization,\n `Can't convert received value as it has an unexpected type. The value is defined in UDT as \"Date\".`,\n );\n }\n return new Date(value);\n }\n\n if (typeInfo === Rfc3339DateTime) {\n if (typeof value !== 'string') {\n throw new DocumentedError(\n ErrorCode.UnexpectedTypeInSerialization,\n `Can't convert received value as it has an unexpected type. The value is defined in UDT as \"Rfc3339DateTime\".`,\n );\n }\n return new Rfc3339DateTime(value);\n }\n\n if (typeInfo === Rfc3339Date) {\n if (typeof value !== 'string') {\n throw new DocumentedError(\n ErrorCode.UnexpectedTypeInSerialization,\n `Can't convert received value as it has an unexpected type. The value is defined in UDT as \"Rfc3339Date\".`,\n );\n }\n return new Rfc3339Date(value);\n }\n\n // Primitive values should be returned as-is\n if (Array.of<Ctor<any>>(String, Number, Boolean, Object).includes(typeInfo)) {\n return value;\n }\n\n if (!(value instanceof Object)) {\n throw new DocumentedError(\n ErrorCode.UnexpectedTypeInSerialization,\n `Can't convert received value as it has an unexpected type. The value is defined in UDT as \"${typeInfo.name}\".`,\n );\n }\n return this.convertApiValuesToUdt(typeInfo, value);\n };\n\n return this.processValues<K>(model, input, processValue, new model());\n }\n\n /** convertUdtToApiValues maps and converts the user received claims values onto UDT claims model */\n protected convertUdtToApiValues<K extends Claims>(model: Ctor<any>, input: K): CredentialClaims {\n const processValue = (descriptor: ClaimDescriptor, value: unknown): unknown => {\n if (value == null) {\n return null;\n }\n\n const typeInfo = this.getClaimTypeInfo(model, descriptor);\n\n if (typeInfo == LinkedCredential) {\n if (value instanceof LinkedCredential) {\n return value.toJSON();\n }\n\n if (value instanceof VerifiableCredential) {\n return value.toLinkedCredential().toJSON();\n }\n\n if (isValueWithId(value)) {\n return LinkedCredential.createClaimValue(value.id, value.digestMultibase);\n }\n }\n\n if (typeInfo === LinkedFile) {\n if (value instanceof LinkedFile) {\n return value.toJSON();\n }\n\n if (isValueWithId(value)) {\n return LinkedFile.createClaimValue(value.id, value.digestMultibase);\n }\n }\n\n if (\n Array.of<Ctor<any>>(\n String,\n Number,\n Date,\n Rfc3339DateTime,\n Rfc3339Date,\n Boolean,\n Object,\n Function,\n ).includes(typeInfo)\n ) {\n return value;\n }\n\n if (!(value instanceof Object)) {\n throw new DocumentedError(\n ErrorCode.UnexpectedTypeInSerialization,\n `Can't convert received value as it has an unexpected type. The value is defined in UDT as \"${typeInfo.name}\".`,\n );\n }\n return this.convertUdtToApiValues(typeInfo, value);\n };\n\n return this.processValues(model, input, processValue, {});\n }\n\n protected mapClaimToApi(claim: ClaimDescriptor, claimsModel: Ctor<any>): DraftSchemaFieldsItem {\n const claimJsonLdType = getClaimJsonLdTypeMetadata(claimsModel, claim.name);\n const draftBaseFieldValue: StrictPartial<DraftFieldValue> = {\n name: claim.name,\n title: claim.title,\n notEmpty: claim.notEmpty,\n isArray: claim.isArray || undefined,\n };\n\n if (\n claim.nestedType &&\n !Array.of<Ctor<any>>(\n String,\n Number,\n Date,\n Rfc3339DateTime,\n Rfc3339Date,\n Boolean,\n LinkedFile,\n LinkedCredential,\n ).includes(claim.nestedType)\n ) {\n const claimNestedType = claim.nestedType;\n const nestedContextInfo = getContextJsonLdMetadata(claimNestedType);\n\n if (!nestedContextInfo) {\n throw new DocumentedError(\n ErrorCode.VcContextAnnotationMissing,\n `The information about the VC context was not found in the \"${claimNestedType.name}\" model. Please use the \"@VcContext\" decorator to define the necessary information.`,\n );\n }\n\n return strictlyConvertToApiType(serialization.DraftSchemaFieldsItem, {\n ...draftBaseFieldValue,\n kind: 'STRUCT',\n fields: getRegisteredClaimsList(claimNestedType).map((nestedClaim) => {\n return this.mapClaimToApi(nestedClaim, claimNestedType);\n }),\n vocabNamespace: nestedContextInfo.namespace,\n vocabName: nestedContextInfo.name,\n });\n }\n\n const tsDataType = claim.nestedType || getTsDataTypeMetadata(claimsModel, claim.name);\n\n if (!tsDataType) {\n throw new Error(\n `The information about the VC claim data type was not found for the \"${claim.name}\" property. Ensure that \"emitDecoratorMetadata\" is enabled in your \"tsconfig.json\".`,\n );\n }\n\n switch (tsDataType) {\n case String:\n return strictlyConvertToApiType(serialization.DraftSchemaFieldsItem, {\n ...draftBaseFieldValue,\n kind: 'STRING',\n type: claimJsonLdType,\n enum: claim.enumValuesDescriptor,\n });\n case Number:\n return strictlyConvertToApiType(serialization.DraftSchemaFieldsItem, {\n ...draftBaseFieldValue,\n kind: 'NUMBER',\n type: claimJsonLdType,\n });\n case Boolean:\n return strictlyConvertToApiType(serialization.DraftSchemaFieldsItem, {\n ...draftBaseFieldValue,\n kind: 'BOOLEAN',\n type: claimJsonLdType,\n });\n case Rfc3339Date:\n return strictlyConvertToApiType(serialization.DraftSchemaFieldsItem, {\n ...draftBaseFieldValue,\n kind: 'DATE',\n type: claimJsonLdType,\n });\n case Rfc3339DateTime:\n case Date:\n return strictlyConvertToApiType(serialization.DraftSchemaFieldsItem, {\n ...draftBaseFieldValue,\n kind: 'DATETIME',\n type: claimJsonLdType,\n });\n case LinkedFile:\n return strictlyConvertToApiType(serialization.DraftSchemaFieldsItem, {\n ...draftBaseFieldValue,\n kind: 'FILE',\n });\n case LinkedCredential:\n return strictlyConvertToApiType(serialization.DraftSchemaFieldsItem, {\n ...draftBaseFieldValue,\n kind: 'LINK',\n linkType: undefined,\n });\n default:\n throw new DocumentedError(\n ErrorCode.UnexpectedTypeInSerialization,\n `Unsupported primitive data type: ${tsDataType.name}. Please use one of the supported types.`,\n );\n }\n }\n\n /**\n * Marshalling is the process of transforming the internal representation of values to a data format suitable\n * for transmission.\n */\n marshalValues(input: UserUpdateClaims<T>): Json {\n return this.convertUdtToApiValues(this.claimsModel, input);\n }\n\n /**\n * Unmarshalling is the reverse process of marshalling. It involves converting data from a serialized format back\n * into an internal representation.\n */\n unmarshalValuesToDraft(input: Json): ReadDraftClaims<T> {\n return this.convertApiValuesToUdt(this.claimsModel, input);\n }\n\n unmarshalValuesToCredential(input: Json): ReadClaims<T> {\n return this.convertApiValuesToUdt(this.claimsModel, input);\n }\n\n getDraftSchema(): DraftSchema {\n const vcContextMetadata = getContextJsonLdMetadata(this.claimsModel);\n\n if (!vcContextMetadata) {\n throw new DocumentedError(\n ErrorCode.VcContextAnnotationMissing,\n `Unable to find JSON-LD metadata. Make sure you have defined the claims model with the @VcContext decorator`,\n );\n }\n\n return strictlyConvertToApiType(serialization.DraftSchema, {\n fields: getRegisteredClaimsList(this.claimsModel).map((claim) =>\n this.mapClaimToApi(claim, this.claimsModel),\n ),\n vocabNamespace: vcContextMetadata.namespace,\n vocabName: vcContextMetadata.name,\n vcType: vcContextMetadata.vcType,\n });\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential.d.ts","sourceRoot":"","sources":["../../src/documents/credential.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,SAAS,EAET,IAAI,EACJ,SAAS,EAET,4BAA4B,EAC5B,aAAa,EAChB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAiB,kBAAkB,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAI1E,OAAO,EAAE,MAAM,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"credential.d.ts","sourceRoot":"","sources":["../../src/documents/credential.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,SAAS,EAET,IAAI,EACJ,SAAS,EAET,4BAA4B,EAC5B,aA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,8BAA8B,CAAC,CAAC,CAAC;YAuBnD,UAAU;IA6BlB,MAAM,CAAC,OAAO,CAAC,EAAE,uBAAuB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAkBzE,KAAK,CACP,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,GACzC,OAAO,CAAC,8BAA8B,CAAC,CAAC,CAAC,CAAC;IAIvC,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAQvE,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC,CAAC,CAAC;IAQ3F,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;IA2BjE,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC,CAAC,CAAC;CAK/G"}
|
package/documents/credential.js
CHANGED
|
@@ -24,6 +24,7 @@ const draft_1 = require("./credential/draft");
|
|
|
24
24
|
const flavor_1 = require("./credential/flavor");
|
|
25
25
|
const with_claims_1 = require("./credential/with-claims");
|
|
26
26
|
const schemas_1 = require("./schemas");
|
|
27
|
+
const error_1 = require("./utils/error");
|
|
27
28
|
class VcDecorator {
|
|
28
29
|
constructor(client, claimsModel) {
|
|
29
30
|
this.client = client;
|
|
@@ -37,13 +38,13 @@ class VcDecorator {
|
|
|
37
38
|
getIri() {
|
|
38
39
|
const vcContextMetadata = (0, decorators_1.getContextJsonLdMetadata)(this.claimsModel);
|
|
39
40
|
if (!vcContextMetadata)
|
|
40
|
-
throw new
|
|
41
|
+
throw new error_1.DocumentedError(error_1.ErrorCode.VcContextAnnotationMissing, "Can't find IRI information. Make sure you have defined the claims model with the @VcContext decorator.");
|
|
41
42
|
return `${vcContextMetadata.namespace}#${vcContextMetadata.name}`;
|
|
42
43
|
}
|
|
43
44
|
getCredentialTerm() {
|
|
44
45
|
const vcContextMetadata = (0, decorators_1.getContextJsonLdMetadata)(this.claimsModel);
|
|
45
46
|
if (!vcContextMetadata)
|
|
46
|
-
throw new
|
|
47
|
+
throw new error_1.DocumentedError(error_1.ErrorCode.VcContextAnnotationMissing, "Can't find credential term information. Make sure you have defined the claims model with the @VcContext decorator");
|
|
47
48
|
return `${vcContextMetadata.name}Credential`;
|
|
48
49
|
}
|
|
49
50
|
canMap(input) {
|