@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/ExtendedClient.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { Readable } from 'stream';
|
|
2
2
|
import { TruvityClient } from './Client';
|
|
3
|
-
import { LinkedFile, VcDecorator, VpDecorator } from './documents';
|
|
4
3
|
import { Claims, Ctor } from './documents/types';
|
|
4
|
+
import { LinkedFile, VcDecorator, VpDecorator } from './documents';
|
|
5
|
+
import { Middleware } from './middlewares';
|
|
6
|
+
type ExtendedTruvityClientOptions = TruvityClient.Options & {
|
|
7
|
+
fetcherMiddlewares?: Middleware<any>[];
|
|
8
|
+
};
|
|
5
9
|
export declare class ExtendedTruvityClient extends TruvityClient {
|
|
10
|
+
constructor({ fetcherMiddlewares, fetcher: customFetcher, ...options }?: ExtendedTruvityClientOptions);
|
|
6
11
|
createVcDecorator<T extends Claims>(model: Ctor<T>): VcDecorator<T>;
|
|
7
12
|
createVpDecorator(): VpDecorator;
|
|
8
13
|
createLinkedFile(file: Buffer | Readable, params?: {
|
|
@@ -11,4 +16,5 @@ export declare class ExtendedTruvityClient extends TruvityClient {
|
|
|
11
16
|
labels?: Record<string, string>;
|
|
12
17
|
}): Promise<LinkedFile>;
|
|
13
18
|
}
|
|
19
|
+
export {};
|
|
14
20
|
//# sourceMappingURL=ExtendedClient.d.ts.map
|
package/ExtendedClient.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtendedClient.d.ts","sourceRoot":"","sources":["../src/ExtendedClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"ExtendedClient.d.ts","sourceRoot":"","sources":["../src/ExtendedClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAgC,UAAU,EAAE,MAAM,eAAe,CAAC;AAEzE,KAAK,4BAA4B,GAAG,aAAa,CAAC,OAAO,GAAG;IACxD,kBAAkB,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;CAC1C,CAAC;AAEF,qBAAa,qBAAsB,SAAQ,aAAa;gBACxC,EAAE,kBAAkB,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,GAAE,4BAAiC;IASlG,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC;IAInE,iBAAiB,IAAI,WAAW;IAI1B,gBAAgB,CACzB,IAAI,EAAE,MAAM,GAAG,QAAQ,EACvB,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,GACtG,OAAO,CAAC,UAAU,CAAC;CAkBzB"}
|
package/ExtendedClient.js
CHANGED
|
@@ -8,15 +8,34 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
+
var t = {};
|
|
13
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
+
t[p] = s[p];
|
|
15
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
+
t[p[i]] = s[p[i]];
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
11
22
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
23
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
24
|
};
|
|
14
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
26
|
exports.ExtendedTruvityClient = void 0;
|
|
16
27
|
const node_fetch_1 = __importDefault(require("node-fetch"));
|
|
28
|
+
const core_1 = require("./core");
|
|
17
29
|
const Client_1 = require("./Client");
|
|
18
30
|
const documents_1 = require("./documents");
|
|
31
|
+
const middlewares_1 = require("./middlewares");
|
|
19
32
|
class ExtendedTruvityClient extends Client_1.TruvityClient {
|
|
33
|
+
constructor(_a = {}) {
|
|
34
|
+
var { fetcherMiddlewares, fetcher: customFetcher } = _a, options = __rest(_a, ["fetcherMiddlewares", "fetcher"]);
|
|
35
|
+
super(Object.assign(Object.assign({}, options), { fetcher: fetcherMiddlewares
|
|
36
|
+
? (0, middlewares_1.createFetcherWithMiddlewares)(customFetcher !== null && customFetcher !== void 0 ? customFetcher : core_1.fetcher, fetcherMiddlewares)
|
|
37
|
+
: customFetcher }));
|
|
38
|
+
}
|
|
20
39
|
createVcDecorator(model) {
|
|
21
40
|
return new documents_1.VcDecorator(this, model);
|
|
22
41
|
}
|
package/ExtendedClient.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtendedClient.js","sourceRoot":"","sources":["../src/ExtendedClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExtendedClient.js","sourceRoot":"","sources":["../src/ExtendedClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAA+B;AAE/B,iCAAiC;AACjC,qCAAyC;AAEzC,2CAAmE;AACnE,+CAAyE;AAMzE,MAAa,qBAAsB,SAAQ,sBAAa;IACpD,YAAY,KAA2F,EAAE;YAA7F,EAAE,kBAAkB,EAAE,OAAO,EAAE,aAAa,OAAiD,EAA5C,OAAO,cAAxD,iCAA0D,CAAF;QAChE,KAAK,iCACE,OAAO,KACV,OAAO,EAAE,kBAAkB;gBACvB,CAAC,CAAC,IAAA,0CAA4B,EAAC,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,cAAO,EAAE,kBAAkB,CAAC;gBAC5E,CAAC,CAAC,aAAa,IACrB,CAAC;IACP,CAAC;IAEM,iBAAiB,CAAmB,KAAc;QACrD,OAAO,IAAI,uBAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;IAEM,iBAAiB;QACpB,OAAO,IAAI,uBAAW,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAEY,gBAAgB,CACzB,IAAuB,EACvB,MAAqG;;YAErG,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;YAE9E,MAAM,IAAA,oBAAK,EAAC,gBAAgB,EAAE;gBAC1B,MAAM,EAAE,KAAK;gBACb,IAAI,EAAE,IAAI;aACb,CAAC,CAAC;YAEH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,+BACxC,MAAM,IACH,MAAM,KACT,IAAI,EAAE;oBACF,QAAQ,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ;iBAC7B,IACH,CAAC;YAEH,OAAO,IAAI,sBAAU,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC5E,CAAC;KAAA;CACJ;AAvCD,sDAuCC","sourcesContent":["import fetch from 'node-fetch';\nimport { Readable } from 'stream';\nimport { fetcher } from './core';\nimport { TruvityClient } from './Client';\nimport { Claims, Ctor } from './documents/types';\nimport { LinkedFile, VcDecorator, VpDecorator } from './documents';\nimport { createFetcherWithMiddlewares, Middleware } from './middlewares';\n\ntype ExtendedTruvityClientOptions = TruvityClient.Options & {\n fetcherMiddlewares?: Middleware<any>[];\n};\n\nexport class ExtendedTruvityClient extends TruvityClient {\n constructor({ fetcherMiddlewares, fetcher: customFetcher, ...options }: ExtendedTruvityClientOptions = {}) {\n super({\n ...options,\n fetcher: fetcherMiddlewares\n ? createFetcherWithMiddlewares(customFetcher ?? fetcher, fetcherMiddlewares)\n : customFetcher,\n });\n }\n\n public createVcDecorator<T extends Claims>(model: Ctor<T>): VcDecorator<T> {\n return new VcDecorator(this, model);\n }\n\n public createVpDecorator(): VpDecorator {\n return new VpDecorator(this);\n }\n\n public async createLinkedFile(\n file: Buffer | Readable,\n params?: { filename?: string; annotations?: Record<string, string>; labels?: Record<string, string> },\n ): Promise<LinkedFile> {\n const { blobId, uploadUri: initialUploadUri } = await this.files.fileUpload();\n\n await fetch(initialUploadUri, {\n method: 'PUT',\n body: file,\n });\n\n const resource = await this.files.fileCreate({\n blobId,\n ...params,\n data: {\n filename: params?.filename,\n },\n });\n\n return new LinkedFile(this, resource.id, resource.data.digestMultibase);\n }\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from '../../errors/index';
|
|
5
|
+
import * as Truvity from '../index';
|
|
6
|
+
import * as core from '../../core';
|
|
7
|
+
export declare class ServiceUnavailableError extends errors.TruvityError {
|
|
8
|
+
constructor(body: Truvity.ServiceUnavailableProblems, rawResponse?: core.RawResponse);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=ServiceUnavailableError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServiceUnavailableError.d.ts","sourceRoot":"","sources":["../../../src/api/errors/ServiceUnavailableError.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,OAAO,MAAM,UAAU,CAAC;AACpC,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,uBAAwB,SAAQ,MAAM,CAAC,YAAY;gBAChD,IAAI,EAAE,OAAO,CAAC,0BAA0B,EAAE,WAAW,CAAC,EAAE,IAAI,CAAC,WAAW;CASvF"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ServiceUnavailableError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index"));
|
|
41
|
+
class ServiceUnavailableError extends errors.TruvityError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: 'ServiceUnavailableError',
|
|
45
|
+
statusCode: 503,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, ServiceUnavailableError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.ServiceUnavailableError = ServiceUnavailableError;
|
|
53
|
+
//# sourceMappingURL=ServiceUnavailableError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServiceUnavailableError.js","sourceRoot":"","sources":["../../../src/api/errors/ServiceUnavailableError.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2DAA6C;AAI7C,MAAa,uBAAwB,SAAQ,MAAM,CAAC,YAAY;IAC5D,YAAY,IAAwC,EAAE,WAA8B;QAChF,KAAK,CAAC;YACF,OAAO,EAAE,yBAAyB;YAClC,UAAU,EAAE,GAAG;YACf,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,WAAW;SAC3B,CAAC,CAAC;QACH,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;IACnE,CAAC;CACJ;AAVD,0DAUC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as errors from '../../errors/index';\nimport * as Truvity from '../index';\nimport * as core from '../../core';\n\nexport class ServiceUnavailableError extends errors.TruvityError {\n constructor(body: Truvity.ServiceUnavailableProblems, rawResponse?: core.RawResponse) {\n super({\n message: 'ServiceUnavailableError',\n statusCode: 503,\n body: body,\n rawResponse: rawResponse,\n });\n Object.setPrototypeOf(this, ServiceUnavailableError.prototype);\n }\n}\n"]}
|
package/api/errors/index.d.ts
CHANGED
|
@@ -7,5 +7,6 @@ export * from './InternalServerError';
|
|
|
7
7
|
export * from './NotFoundError';
|
|
8
8
|
export * from './MethodNotAllowedError';
|
|
9
9
|
export * from './PreconditionFailedError';
|
|
10
|
+
export * from './ServiceUnavailableError';
|
|
10
11
|
export * from './ConflictError';
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|
package/api/errors/index.js
CHANGED
|
@@ -23,5 +23,6 @@ __exportStar(require("./InternalServerError"), exports);
|
|
|
23
23
|
__exportStar(require("./NotFoundError"), exports);
|
|
24
24
|
__exportStar(require("./MethodNotAllowedError"), exports);
|
|
25
25
|
__exportStar(require("./PreconditionFailedError"), exports);
|
|
26
|
+
__exportStar(require("./ServiceUnavailableError"), exports);
|
|
26
27
|
__exportStar(require("./ConflictError"), exports);
|
|
27
28
|
//# sourceMappingURL=index.js.map
|
package/api/errors/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,sDAAoC;AACpC,mDAAiC;AACjC,8DAA4C;AAC5C,yDAAuC;AACvC,wDAAsC;AACtC,kDAAgC;AAChC,0DAAwC;AACxC,4DAA0C;AAC1C,kDAAgC","sourcesContent":["export * from './BadRequestError';\nexport * from './UnauthorizedError';\nexport * from './ForbiddenError';\nexport * from './UnsupportedMediaTypeError';\nexport * from './TooManyRequestsError';\nexport * from './InternalServerError';\nexport * from './NotFoundError';\nexport * from './MethodNotAllowedError';\nexport * from './PreconditionFailedError';\nexport * from './ConflictError';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,sDAAoC;AACpC,mDAAiC;AACjC,8DAA4C;AAC5C,yDAAuC;AACvC,wDAAsC;AACtC,kDAAgC;AAChC,0DAAwC;AACxC,4DAA0C;AAC1C,4DAA0C;AAC1C,kDAAgC","sourcesContent":["export * from './BadRequestError';\nexport * from './UnauthorizedError';\nexport * from './ForbiddenError';\nexport * from './UnsupportedMediaTypeError';\nexport * from './TooManyRequestsError';\nexport * from './InternalServerError';\nexport * from './NotFoundError';\nexport * from './MethodNotAllowedError';\nexport * from './PreconditionFailedError';\nexport * from './ServiceUnavailableError';\nexport * from './ConflictError';\n"]}
|
|
@@ -99,7 +99,7 @@ class ApiKeys {
|
|
|
99
99
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
100
100
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, 'api-keys'),
|
|
101
101
|
method: 'POST',
|
|
102
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
102
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
103
103
|
contentType: 'application/json',
|
|
104
104
|
requestType: 'json',
|
|
105
105
|
body: serializers.ApiKeyInput.jsonOrThrow(_body, { unrecognizedObjectKeys: 'strip', omitUndefined: true }),
|
|
@@ -212,7 +212,7 @@ class ApiKeys {
|
|
|
212
212
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
213
213
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, 'api-keys/search'),
|
|
214
214
|
method: 'POST',
|
|
215
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
215
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
216
216
|
contentType: 'application/json',
|
|
217
217
|
requestType: 'json',
|
|
218
218
|
body: serializers.ApiKeySearchRequest.jsonOrThrow(request, {
|
|
@@ -330,7 +330,7 @@ class ApiKeys {
|
|
|
330
330
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
331
331
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}`),
|
|
332
332
|
method: 'GET',
|
|
333
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
333
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
334
334
|
contentType: 'application/json',
|
|
335
335
|
requestType: 'json',
|
|
336
336
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -449,7 +449,7 @@ class ApiKeys {
|
|
|
449
449
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
450
450
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}`),
|
|
451
451
|
method: 'DELETE',
|
|
452
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
452
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
453
453
|
contentType: 'application/json',
|
|
454
454
|
requestType: 'json',
|
|
455
455
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -578,7 +578,7 @@ class ApiKeys {
|
|
|
578
578
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
579
579
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/annotations`),
|
|
580
580
|
method: 'PATCH',
|
|
581
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
581
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
582
582
|
contentType: 'application/json',
|
|
583
583
|
requestType: 'json',
|
|
584
584
|
body: serializers.ApiKeyUpdateAnnotationsInput.jsonOrThrow(_body, {
|
|
@@ -726,7 +726,7 @@ class ApiKeys {
|
|
|
726
726
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
727
727
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/labels`),
|
|
728
728
|
method: 'PATCH',
|
|
729
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
729
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
730
730
|
contentType: 'application/json',
|
|
731
731
|
requestType: 'json',
|
|
732
732
|
body: serializers.ApiKeyUpdateLabelsInput.jsonOrThrow(_body, {
|
|
@@ -870,7 +870,7 @@ class ApiKeys {
|
|
|
870
870
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
871
871
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/restore`),
|
|
872
872
|
method: 'POST',
|
|
873
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
873
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
874
874
|
contentType: 'application/json',
|
|
875
875
|
requestType: 'json',
|
|
876
876
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -998,7 +998,7 @@ class ApiKeys {
|
|
|
998
998
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
999
999
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/revisions`),
|
|
1000
1000
|
method: 'GET',
|
|
1001
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1001
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1002
1002
|
contentType: 'application/json',
|
|
1003
1003
|
requestType: 'json',
|
|
1004
1004
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1113,7 +1113,7 @@ class ApiKeys {
|
|
|
1113
1113
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1114
1114
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `api-keys/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`),
|
|
1115
1115
|
method: 'GET',
|
|
1116
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1116
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.36.2', 'User-Agent': '@truvity/sdk/0.36.2', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1117
1117
|
contentType: 'application/json',
|
|
1118
1118
|
requestType: 'json',
|
|
1119
1119
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|