@truvity/sdk 0.0.1 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +5 -7
- package/Client.js +4 -9
- package/api/resources/credentials/client/Client.d.ts +151 -0
- package/api/resources/{pets → credentials}/client/Client.js +152 -135
- package/{dist/api/resources/pets/client/requests/PetCreateRequest.d.ts → api/resources/credentials/client/requests/CredentialCreateRequest.d.ts} +2 -2
- package/api/resources/{pets/client/requests/PetDeleteRequest.d.ts → credentials/client/requests/CredentialDeleteRequest.d.ts} +1 -1
- package/api/resources/{pets/client/requests/PetDownloadRequest.d.ts → credentials/client/requests/CredentialDownloadRequest.d.ts} +1 -1
- package/api/resources/{owners/client/requests/OwnerHistoryRequest.d.ts → credentials/client/requests/CredentialHistoryRequest.d.ts} +1 -1
- package/api/resources/{owners/client/requests/OwnerRevisionRequest.d.ts → credentials/client/requests/CredentialLatestRequest.d.ts} +1 -1
- package/{dist/api/resources/owners/client/requests/OwnerDeleteRequest.d.ts → api/resources/credentials/client/requests/CredentialRestoreRequest.d.ts} +1 -1
- package/api/resources/credentials/client/requests/CredentialRevisionRequest.d.ts +27 -0
- package/api/resources/credentials/client/requests/CredentialSearch.d.ts +14 -0
- package/api/resources/{pets/client/requests/PetUpdateRequest.d.ts → credentials/client/requests/CredentialUpdateRequest.d.ts} +2 -2
- package/api/resources/{pets/client/requests/UploadRequest.d.ts → credentials/client/requests/CredentialUploadRequest.d.ts} +1 -3
- package/api/resources/credentials/client/requests/index.d.ts +10 -0
- package/api/resources/index.d.ts +2 -4
- package/api/resources/index.js +3 -5
- package/api/types/Credential.d.ts +17 -0
- package/api/types/Credential11.d.ts +16 -0
- package/api/types/Credential20.d.ts +16 -0
- package/api/types/CredentialField.d.ts +21 -0
- package/api/types/{OwnerField.js → CredentialField.js} +7 -5
- package/{dist/api/types/OwnerFilter.d.ts → api/types/CredentialFilter.d.ts} +6 -5
- package/api/types/CredentialFilterData.d.ts +11 -0
- package/api/types/{PetList.d.ts → CredentialFilterKind.d.ts} +2 -5
- package/{dist/api/types/HashSha1.d.ts → api/types/CredentialId.d.ts} +2 -2
- package/api/types/{PetInput.d.ts → CredentialInput.d.ts} +2 -2
- package/api/types/CredentialIssuer.d.ts +7 -0
- package/api/types/{ChecksumCrc32.d.ts → CredentialList.d.ts} +3 -3
- package/api/types/{PetResource.d.ts → CredentialResource.d.ts} +3 -3
- package/api/types/{OwnerSort.d.ts → CredentialSort.d.ts} +3 -3
- package/api/types/CredentialSubject.d.ts +8 -0
- package/api/types/CredentialType.d.ts +7 -0
- package/api/types/CredentialValidFrom.d.ts +7 -0
- package/api/types/CredentialValidUntil.d.ts +7 -0
- package/api/types/{HashCrc32.d.ts → CredentilHolder.d.ts} +2 -2
- package/api/types/DataModelCredential.d.ts +16 -0
- package/api/types/FilterUriEqual.d.ts +10 -0
- package/api/types/FilterUriIsNotNull.d.ts +8 -0
- package/api/types/{HashSha1.d.ts → FilterUriIsNull.d.ts} +3 -2
- package/api/types/FilterUriNotEqual.d.ts +10 -0
- package/api/types/FilterUriOptional.d.ts +23 -0
- package/api/types/{ProblemResourceConflict.d.ts → ProblemConflictResource.d.ts} +4 -4
- package/api/types/{ProblemResourceMethodNotAllowed.d.ts → ProblemMethodNotAllowedResourceAlive.d.ts} +4 -6
- package/{dist/api/types/ProblemResourceMethodNotAllowed.d.ts → api/types/ProblemMethodNotAllowedResourceDeleted.d.ts} +4 -6
- package/api/types/ProblemNotFoundRevision.d.ts +2 -2
- package/api/types/Subject.d.ts +10 -0
- package/api/types/UploadResponse.d.ts +2 -2
- package/api/types/index.d.ts +28 -32
- package/api/types/index.js +28 -32
- package/core/schemas/builders/object/object.js +11 -15
- package/dist/Client.d.ts +5 -7
- package/dist/Client.js +4 -9
- package/dist/api/resources/credentials/client/Client.d.ts +151 -0
- package/dist/api/resources/{pets → credentials}/client/Client.js +152 -135
- package/{api/resources/pets/client/requests/PetCreateRequest.d.ts → dist/api/resources/credentials/client/requests/CredentialCreateRequest.d.ts} +2 -2
- package/{api/resources/owners/client/requests/OwnerDeleteRequest.d.ts → dist/api/resources/credentials/client/requests/CredentialDeleteRequest.d.ts} +1 -1
- package/dist/api/resources/{pets/client/requests/PetDownloadRequest.d.ts → credentials/client/requests/CredentialDownloadRequest.d.ts} +1 -1
- package/{api/resources/owners/client/requests/OwnerLatestRequest.d.ts → dist/api/resources/credentials/client/requests/CredentialHistoryRequest.d.ts} +1 -1
- package/{api/resources/pets/client/requests/PetHistoryRequest.d.ts → dist/api/resources/credentials/client/requests/CredentialLatestRequest.d.ts} +1 -1
- package/dist/api/resources/{pets/client/requests/PetDeleteRequest.d.ts → credentials/client/requests/CredentialRestoreRequest.d.ts} +1 -1
- package/dist/api/resources/credentials/client/requests/CredentialRevisionRequest.d.ts +27 -0
- package/dist/api/resources/credentials/client/requests/CredentialSearch.d.ts +14 -0
- package/dist/api/resources/{pets/client/requests/PetUpdateRequest.d.ts → credentials/client/requests/CredentialUpdateRequest.d.ts} +2 -2
- package/dist/api/resources/{pets/client/requests/UploadRequest.d.ts → credentials/client/requests/CredentialUploadRequest.d.ts} +1 -3
- package/dist/api/resources/credentials/client/requests/index.d.ts +10 -0
- package/dist/api/resources/index.d.ts +2 -4
- package/dist/api/resources/index.js +3 -5
- package/dist/api/types/Credential.d.ts +17 -0
- package/dist/api/types/Credential11.d.ts +16 -0
- package/dist/api/types/Credential20.d.ts +16 -0
- package/dist/api/types/CredentialField.d.ts +21 -0
- package/dist/api/types/{OwnerField.js → CredentialField.js} +7 -5
- package/{api/types/PetFilter.d.ts → dist/api/types/CredentialFilter.d.ts} +6 -5
- package/dist/api/types/CredentialFilterData.d.ts +11 -0
- package/dist/api/types/{PetList.d.ts → CredentialFilterKind.d.ts} +2 -5
- package/dist/api/types/{HashCrc32.d.ts → CredentialId.d.ts} +2 -2
- package/dist/api/types/{PetInput.d.ts → CredentialInput.d.ts} +2 -2
- package/dist/api/types/CredentialIssuer.d.ts +7 -0
- package/{api/types/ChecksumCrc32C.d.ts → dist/api/types/CredentialList.d.ts} +3 -3
- package/{api/types/OwnerResource.d.ts → dist/api/types/CredentialResource.d.ts} +3 -3
- package/{api/types/PetSort.d.ts → dist/api/types/CredentialSort.d.ts} +3 -3
- package/dist/api/types/CredentialSubject.d.ts +8 -0
- package/dist/api/types/CredentialType.d.ts +7 -0
- package/dist/api/types/CredentialValidFrom.d.ts +7 -0
- package/dist/api/types/CredentialValidUntil.d.ts +7 -0
- package/dist/api/types/CredentilHolder.d.ts +7 -0
- package/dist/api/types/DataModelCredential.d.ts +16 -0
- package/dist/api/types/FilterUriEqual.d.ts +10 -0
- package/dist/api/types/FilterUriIsNotNull.d.ts +8 -0
- package/dist/api/types/FilterUriIsNull.d.ts +8 -0
- package/dist/api/types/FilterUriNotEqual.d.ts +10 -0
- package/dist/api/types/FilterUriOptional.d.ts +23 -0
- package/dist/api/types/{ProblemResourceConflict.d.ts → ProblemConflictResource.d.ts} +4 -4
- package/dist/api/types/ProblemMethodNotAllowedResourceAlive.d.ts +24 -0
- package/dist/api/types/ProblemMethodNotAllowedResourceDeleted.d.ts +24 -0
- package/dist/api/types/ProblemNotFoundRevision.d.ts +2 -2
- package/dist/api/types/Subject.d.ts +10 -0
- package/dist/api/types/UploadResponse.d.ts +2 -2
- package/dist/api/types/index.d.ts +28 -32
- package/dist/api/types/index.js +28 -32
- package/dist/core/schemas/builders/object/object.js +11 -15
- package/dist/serialization/resources/credentials/client/requests/CredentialSearch.d.ts +15 -0
- package/dist/serialization/resources/credentials/client/requests/CredentialSearch.js +36 -0
- package/dist/serialization/resources/credentials/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/credentials/client/requests/index.js +5 -0
- package/dist/serialization/resources/index.d.ts +2 -4
- package/dist/serialization/resources/index.js +3 -5
- package/dist/serialization/types/Annotations.d.ts +2 -1
- package/dist/serialization/types/Annotations.js +2 -10
- package/dist/serialization/types/BadRequestErrorBody.d.ts +6 -3
- package/dist/serialization/types/BadRequestErrorBody.js +6 -12
- package/dist/serialization/types/Credential.d.ts +27 -0
- package/dist/serialization/types/{ChecksumCrc32C.js → Credential.js} +18 -12
- package/dist/serialization/types/Credential11.d.ts +25 -0
- package/{serialization/types/ChecksumSha1.js → dist/serialization/types/Credential11.js} +16 -12
- package/dist/serialization/types/Credential20.d.ts +25 -0
- package/dist/serialization/types/{ChecksumSha1.js → Credential20.js} +16 -12
- package/dist/serialization/types/CredentialField.d.ts +10 -0
- package/dist/serialization/types/{OwnerField.js → CredentialField.js} +7 -5
- package/dist/serialization/types/CredentialFilter.d.ts +30 -0
- package/dist/serialization/types/CredentialFilter.js +51 -0
- package/dist/serialization/types/CredentialFilterData.d.ts +18 -0
- package/dist/serialization/types/CredentialFilterData.js +39 -0
- package/dist/serialization/types/CredentialFilterKind.d.ts +13 -0
- package/dist/serialization/types/CredentialFilterKind.js +34 -0
- package/dist/serialization/types/{HashSha1.d.ts → CredentialId.d.ts} +2 -2
- package/dist/serialization/types/{HashCrc32C.js → CredentialId.js} +2 -2
- package/dist/serialization/types/CredentialInput.d.ts +15 -0
- package/dist/serialization/types/{Owner.js → CredentialInput.js} +6 -4
- package/dist/serialization/types/CredentialIssuer.d.ts +10 -0
- package/dist/serialization/types/CredentialIssuer.js +31 -0
- package/dist/serialization/types/CredentialList.d.ts +13 -0
- package/dist/serialization/types/CredentialList.js +34 -0
- package/dist/serialization/types/CredentialResource.d.ts +29 -0
- package/dist/serialization/types/CredentialResource.js +50 -0
- package/dist/serialization/types/CredentialSort.d.ts +15 -0
- package/dist/serialization/types/CredentialSort.js +36 -0
- package/dist/serialization/types/CredentialSubject.d.ts +11 -0
- package/dist/serialization/types/CredentialSubject.js +32 -0
- package/dist/serialization/types/CredentialType.d.ts +10 -0
- package/dist/serialization/types/CredentialType.js +31 -0
- package/dist/serialization/types/CredentialValidFrom.d.ts +10 -0
- package/dist/serialization/types/CredentialValidFrom.js +31 -0
- package/dist/serialization/types/CredentialValidUntil.d.ts +10 -0
- package/dist/serialization/types/CredentialValidUntil.js +31 -0
- package/dist/serialization/types/{HashCrc32.d.ts → CredentilHolder.d.ts} +2 -2
- package/dist/serialization/types/{HashSha1.js → CredentilHolder.js} +2 -2
- package/dist/serialization/types/DataModelCredential.d.ts +18 -0
- package/dist/serialization/types/DataModelCredential.js +41 -0
- package/dist/serialization/types/FilterId.d.ts +8 -4
- package/dist/serialization/types/FilterId.js +8 -13
- package/dist/serialization/types/FilterInteger.d.ts +14 -7
- package/dist/serialization/types/FilterInteger.js +14 -16
- package/dist/serialization/types/FilterString.d.ts +4 -2
- package/dist/serialization/types/FilterString.js +4 -11
- package/dist/serialization/types/FilterTimestamp.d.ts +14 -7
- package/dist/serialization/types/FilterTimestamp.js +14 -16
- package/dist/serialization/types/FilterTimestampOptional.d.ts +18 -9
- package/dist/serialization/types/FilterTimestampOptional.js +18 -18
- package/dist/serialization/types/FilterUriEqual.d.ts +12 -0
- package/dist/serialization/types/{ChecksumAlgorithm.js → FilterUriEqual.js} +4 -2
- package/dist/serialization/types/{PetList.d.ts → FilterUriIsNotNull.d.ts} +2 -3
- package/dist/serialization/types/FilterUriIsNotNull.js +31 -0
- package/{serialization/types/PetList.d.ts → dist/serialization/types/FilterUriIsNull.d.ts} +2 -3
- package/dist/serialization/types/FilterUriIsNull.js +31 -0
- package/dist/serialization/types/{OwnerList.d.ts → FilterUriNotEqual.d.ts} +3 -3
- package/dist/serialization/types/FilterUriNotEqual.js +33 -0
- package/dist/serialization/types/FilterUriOptional.d.ts +26 -0
- package/dist/serialization/types/FilterUriOptional.js +45 -0
- package/dist/serialization/types/Labels.d.ts +2 -1
- package/dist/serialization/types/Labels.js +2 -10
- package/dist/serialization/types/ProblemBodyContent.d.ts +2 -1
- package/dist/serialization/types/ProblemBodyContent.js +2 -10
- package/dist/serialization/types/ProblemConflictResource.d.ts +21 -0
- package/dist/serialization/types/ProblemConflictResource.js +42 -0
- package/dist/serialization/types/ProblemForbidden.d.ts +2 -1
- package/dist/serialization/types/ProblemForbidden.js +2 -10
- package/dist/serialization/types/ProblemInternalServerError.d.ts +2 -1
- package/dist/serialization/types/ProblemInternalServerError.js +2 -10
- package/dist/serialization/types/ProblemMethodNotAllowedResourceAlive.d.ts +19 -0
- package/dist/serialization/types/ProblemMethodNotAllowedResourceAlive.js +40 -0
- package/dist/serialization/types/ProblemMethodNotAllowedResourceDeleted.d.ts +19 -0
- package/dist/serialization/types/ProblemMethodNotAllowedResourceDeleted.js +40 -0
- package/dist/serialization/types/ProblemNotFoundBlob.d.ts +4 -2
- package/dist/serialization/types/ProblemNotFoundBlob.js +4 -11
- package/dist/serialization/types/ProblemNotFoundResource.d.ts +4 -2
- package/dist/serialization/types/ProblemNotFoundResource.js +4 -11
- package/dist/serialization/types/ProblemNotFoundRevision.d.ts +4 -2
- package/dist/serialization/types/ProblemNotFoundRevision.js +4 -11
- package/dist/serialization/types/ProblemNullUnicode.d.ts +2 -1
- package/dist/serialization/types/ProblemNullUnicode.js +2 -10
- package/dist/serialization/types/ProblemUnauthorized.d.ts +2 -1
- package/dist/serialization/types/ProblemUnauthorized.js +2 -10
- package/dist/serialization/types/ProblemUnsupportedMediaType.d.ts +4 -2
- package/dist/serialization/types/ProblemUnsupportedMediaType.js +4 -11
- package/dist/serialization/types/ProblemValidation.d.ts +4 -2
- package/dist/serialization/types/ProblemValidation.js +4 -2
- package/dist/serialization/types/Resource.d.ts +16 -9
- package/dist/serialization/types/Resource.js +16 -18
- package/dist/serialization/types/ResourceKind.d.ts +4 -2
- package/dist/serialization/types/ResourceKind.js +4 -11
- package/dist/serialization/types/{Owner.d.ts → Subject.d.ts} +3 -4
- package/dist/serialization/types/Subject.js +33 -0
- package/dist/serialization/types/UploadResponse.d.ts +5 -4
- package/dist/serialization/types/UploadResponse.js +5 -13
- package/dist/serialization/types/index.d.ts +28 -32
- package/dist/serialization/types/index.js +28 -32
- package/package.json +2 -7
- package/serialization/resources/credentials/client/requests/CredentialSearch.d.ts +15 -0
- package/serialization/resources/credentials/client/requests/CredentialSearch.js +36 -0
- package/serialization/resources/credentials/client/requests/index.d.ts +1 -0
- package/serialization/resources/credentials/client/requests/index.js +5 -0
- package/serialization/resources/index.d.ts +2 -4
- package/serialization/resources/index.js +3 -5
- package/serialization/types/Annotations.d.ts +2 -1
- package/serialization/types/Annotations.js +2 -10
- package/serialization/types/BadRequestErrorBody.d.ts +6 -3
- package/serialization/types/BadRequestErrorBody.js +6 -12
- package/serialization/types/Credential.d.ts +27 -0
- package/{dist/serialization/types/ChecksumSha256.js → serialization/types/Credential.js} +18 -12
- package/serialization/types/Credential11.d.ts +25 -0
- package/serialization/types/Credential11.js +46 -0
- package/serialization/types/Credential20.d.ts +25 -0
- package/serialization/types/Credential20.js +46 -0
- package/serialization/types/CredentialField.d.ts +10 -0
- package/{dist/serialization/types/PetField.js → serialization/types/CredentialField.js} +7 -6
- package/serialization/types/CredentialFilter.d.ts +30 -0
- package/serialization/types/CredentialFilter.js +51 -0
- package/serialization/types/CredentialFilterData.d.ts +18 -0
- package/serialization/types/CredentialFilterData.js +39 -0
- package/serialization/types/CredentialFilterKind.d.ts +13 -0
- package/serialization/types/CredentialFilterKind.js +34 -0
- package/{dist/serialization/types/HashCrc32C.d.ts → serialization/types/CredentialId.d.ts} +2 -2
- package/{dist/serialization/types/HashCrc32.js → serialization/types/CredentialId.js} +2 -2
- package/serialization/types/CredentialInput.d.ts +15 -0
- package/serialization/types/{Owner.js → CredentialInput.js} +6 -4
- package/serialization/types/CredentialIssuer.d.ts +10 -0
- package/serialization/types/CredentialIssuer.js +31 -0
- package/serialization/types/CredentialList.d.ts +13 -0
- package/serialization/types/CredentialList.js +34 -0
- package/serialization/types/CredentialResource.d.ts +29 -0
- package/serialization/types/CredentialResource.js +50 -0
- package/serialization/types/CredentialSort.d.ts +15 -0
- package/serialization/types/CredentialSort.js +36 -0
- package/serialization/types/CredentialSubject.d.ts +11 -0
- package/serialization/types/CredentialSubject.js +32 -0
- package/serialization/types/CredentialType.d.ts +10 -0
- package/serialization/types/CredentialType.js +31 -0
- package/serialization/types/CredentialValidFrom.d.ts +10 -0
- package/serialization/types/CredentialValidFrom.js +31 -0
- package/serialization/types/CredentialValidUntil.d.ts +10 -0
- package/serialization/types/CredentialValidUntil.js +31 -0
- package/{dist/serialization/types/HashSha256.d.ts → serialization/types/CredentilHolder.d.ts} +2 -2
- package/{dist/serialization/types/HashSha256.js → serialization/types/CredentilHolder.js} +2 -2
- package/serialization/types/DataModelCredential.d.ts +18 -0
- package/serialization/types/DataModelCredential.js +41 -0
- package/serialization/types/FilterId.d.ts +8 -4
- package/serialization/types/FilterId.js +8 -13
- package/serialization/types/FilterInteger.d.ts +14 -7
- package/serialization/types/FilterInteger.js +14 -16
- package/serialization/types/FilterString.d.ts +4 -2
- package/serialization/types/FilterString.js +4 -11
- package/serialization/types/FilterTimestamp.d.ts +14 -7
- package/serialization/types/FilterTimestamp.js +14 -16
- package/serialization/types/FilterTimestampOptional.d.ts +18 -9
- package/serialization/types/FilterTimestampOptional.js +18 -18
- package/serialization/types/FilterUriEqual.d.ts +12 -0
- package/serialization/types/FilterUriEqual.js +33 -0
- package/serialization/types/{Owner.d.ts → FilterUriIsNotNull.d.ts} +2 -4
- package/serialization/types/FilterUriIsNotNull.js +31 -0
- package/serialization/types/FilterUriIsNull.d.ts +11 -0
- package/serialization/types/FilterUriIsNull.js +31 -0
- package/{dist/serialization/types/ChecksumSha1.d.ts → serialization/types/FilterUriNotEqual.d.ts} +3 -3
- package/serialization/types/FilterUriNotEqual.js +33 -0
- package/serialization/types/FilterUriOptional.d.ts +26 -0
- package/serialization/types/FilterUriOptional.js +45 -0
- package/serialization/types/Labels.d.ts +2 -1
- package/serialization/types/Labels.js +2 -10
- package/serialization/types/ProblemBodyContent.d.ts +2 -1
- package/serialization/types/ProblemBodyContent.js +2 -10
- package/serialization/types/ProblemConflictResource.d.ts +21 -0
- package/serialization/types/ProblemConflictResource.js +42 -0
- package/serialization/types/ProblemForbidden.d.ts +2 -1
- package/serialization/types/ProblemForbidden.js +2 -10
- package/serialization/types/ProblemInternalServerError.d.ts +2 -1
- package/serialization/types/ProblemInternalServerError.js +2 -10
- package/serialization/types/ProblemMethodNotAllowedResourceAlive.d.ts +19 -0
- package/serialization/types/ProblemMethodNotAllowedResourceAlive.js +40 -0
- package/serialization/types/ProblemMethodNotAllowedResourceDeleted.d.ts +19 -0
- package/serialization/types/ProblemMethodNotAllowedResourceDeleted.js +40 -0
- package/serialization/types/ProblemNotFoundBlob.d.ts +4 -2
- package/serialization/types/ProblemNotFoundBlob.js +4 -11
- package/serialization/types/ProblemNotFoundResource.d.ts +4 -2
- package/serialization/types/ProblemNotFoundResource.js +4 -11
- package/serialization/types/ProblemNotFoundRevision.d.ts +4 -2
- package/serialization/types/ProblemNotFoundRevision.js +4 -11
- package/serialization/types/ProblemNullUnicode.d.ts +2 -1
- package/serialization/types/ProblemNullUnicode.js +2 -10
- package/serialization/types/ProblemUnauthorized.d.ts +2 -1
- package/serialization/types/ProblemUnauthorized.js +2 -10
- package/serialization/types/ProblemUnsupportedMediaType.d.ts +4 -2
- package/serialization/types/ProblemUnsupportedMediaType.js +4 -11
- package/serialization/types/ProblemValidation.d.ts +4 -2
- package/serialization/types/ProblemValidation.js +4 -2
- package/serialization/types/Resource.d.ts +16 -9
- package/serialization/types/Resource.js +16 -18
- package/serialization/types/ResourceKind.d.ts +4 -2
- package/serialization/types/ResourceKind.js +4 -11
- package/serialization/types/Subject.d.ts +12 -0
- package/serialization/types/Subject.js +33 -0
- package/serialization/types/UploadResponse.d.ts +5 -4
- package/serialization/types/UploadResponse.js +5 -13
- package/serialization/types/index.d.ts +28 -32
- package/serialization/types/index.js +28 -32
- package/api/resources/owners/client/Client.d.ts +0 -124
- package/api/resources/owners/client/Client.js +0 -711
- package/api/resources/owners/client/requests/OwnerCreateRequest.d.ts +0 -38
- package/api/resources/owners/client/requests/OwnerSearch.d.ts +0 -14
- package/api/resources/owners/client/requests/OwnerUpdateRequest.d.ts +0 -57
- package/api/resources/owners/client/requests/index.d.ts +0 -7
- package/api/resources/pets/client/Client.d.ts +0 -133
- package/api/resources/pets/client/requests/PetLatestRequest.d.ts +0 -27
- package/api/resources/pets/client/requests/PetRevisionRequest.d.ts +0 -27
- package/api/resources/pets/client/requests/PetSearch.d.ts +0 -14
- package/api/resources/pets/client/requests/index.d.ts +0 -9
- package/api/types/Checksum.d.ts +0 -22
- package/api/types/ChecksumAlgorithm.d.ts +0 -13
- package/api/types/ChecksumAlgorithm.js +0 -12
- package/api/types/ChecksumSha1.d.ts +0 -10
- package/api/types/ChecksumSha256.d.ts +0 -10
- package/api/types/HashCrc32C.d.ts +0 -7
- package/api/types/HashSha256.d.ts +0 -7
- package/api/types/HttpMethod.d.ts +0 -18
- package/api/types/HttpMethod.js +0 -17
- package/api/types/Owner.d.ts +0 -12
- package/api/types/OwnerField.d.ts +0 -19
- package/api/types/OwnerFilter.d.ts +0 -18
- package/api/types/OwnerFilterData.d.ts +0 -8
- package/api/types/OwnerInput.d.ts +0 -14
- package/api/types/OwnerList.d.ts +0 -10
- package/api/types/Pet.d.ts +0 -14
- package/api/types/PetField.d.ts +0 -20
- package/api/types/PetField.js +0 -19
- package/api/types/PetFilterData.d.ts +0 -9
- package/api/types/RequestedETag.d.ts +0 -12
- package/api/types/RequestedRevision.d.ts +0 -12
- package/api/types/Species.d.ts +0 -13
- package/api/types/Species.js +0 -11
- package/dist/api/resources/owners/client/Client.d.ts +0 -124
- package/dist/api/resources/owners/client/Client.js +0 -711
- package/dist/api/resources/owners/client/requests/OwnerCreateRequest.d.ts +0 -38
- package/dist/api/resources/owners/client/requests/OwnerHistoryRequest.d.ts +0 -27
- package/dist/api/resources/owners/client/requests/OwnerLatestRequest.d.ts +0 -27
- package/dist/api/resources/owners/client/requests/OwnerRevisionRequest.d.ts +0 -27
- package/dist/api/resources/owners/client/requests/OwnerSearch.d.ts +0 -14
- package/dist/api/resources/owners/client/requests/OwnerUpdateRequest.d.ts +0 -57
- package/dist/api/resources/owners/client/requests/index.d.ts +0 -7
- package/dist/api/resources/owners/client/requests/index.js +0 -2
- package/dist/api/resources/pets/client/Client.d.ts +0 -133
- package/dist/api/resources/pets/client/requests/PetHistoryRequest.d.ts +0 -27
- package/dist/api/resources/pets/client/requests/PetLatestRequest.d.ts +0 -27
- package/dist/api/resources/pets/client/requests/PetRevisionRequest.d.ts +0 -27
- package/dist/api/resources/pets/client/requests/PetSearch.d.ts +0 -14
- package/dist/api/resources/pets/client/requests/index.d.ts +0 -9
- package/dist/api/resources/pets/client/requests/index.js +0 -2
- package/dist/api/types/Checksum.d.ts +0 -22
- package/dist/api/types/ChecksumAlgorithm.d.ts +0 -13
- package/dist/api/types/ChecksumAlgorithm.js +0 -12
- package/dist/api/types/ChecksumCrc32.d.ts +0 -10
- package/dist/api/types/ChecksumCrc32C.d.ts +0 -10
- package/dist/api/types/ChecksumSha1.d.ts +0 -10
- package/dist/api/types/ChecksumSha256.d.ts +0 -10
- package/dist/api/types/HashCrc32C.d.ts +0 -7
- package/dist/api/types/HashSha256.d.ts +0 -7
- package/dist/api/types/HttpMethod.d.ts +0 -18
- package/dist/api/types/HttpMethod.js +0 -17
- package/dist/api/types/Owner.d.ts +0 -12
- package/dist/api/types/OwnerField.d.ts +0 -19
- package/dist/api/types/OwnerFilterData.d.ts +0 -8
- package/dist/api/types/OwnerInput.d.ts +0 -14
- package/dist/api/types/OwnerList.d.ts +0 -10
- package/dist/api/types/OwnerResource.d.ts +0 -19
- package/dist/api/types/OwnerSort.d.ts +0 -11
- package/dist/api/types/OwnerSort.js +0 -5
- package/dist/api/types/Pet.d.ts +0 -14
- package/dist/api/types/Pet.js +0 -5
- package/dist/api/types/PetField.d.ts +0 -20
- package/dist/api/types/PetField.js +0 -19
- package/dist/api/types/PetFilter.d.ts +0 -18
- package/dist/api/types/PetFilter.js +0 -5
- package/dist/api/types/PetFilterData.d.ts +0 -9
- package/dist/api/types/PetFilterData.js +0 -5
- package/dist/api/types/PetInput.js +0 -5
- package/dist/api/types/PetList.js +0 -5
- package/dist/api/types/PetResource.d.ts +0 -19
- package/dist/api/types/PetResource.js +0 -5
- package/dist/api/types/PetSort.d.ts +0 -11
- package/dist/api/types/PetSort.js +0 -5
- package/dist/api/types/ProblemResourceConflict.js +0 -5
- package/dist/api/types/ProblemResourceMethodNotAllowed.js +0 -5
- package/dist/api/types/RequestedETag.d.ts +0 -12
- package/dist/api/types/RequestedETag.js +0 -5
- package/dist/api/types/RequestedRevision.d.ts +0 -12
- package/dist/api/types/RequestedRevision.js +0 -5
- package/dist/api/types/Species.d.ts +0 -13
- package/dist/api/types/Species.js +0 -11
- package/dist/serialization/resources/owners/client/index.d.ts +0 -1
- package/dist/serialization/resources/owners/client/index.js +0 -17
- package/dist/serialization/resources/owners/client/requests/OwnerSearch.d.ts +0 -13
- package/dist/serialization/resources/owners/client/requests/OwnerSearch.js +0 -47
- package/dist/serialization/resources/owners/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/owners/client/requests/index.js +0 -5
- package/dist/serialization/resources/owners/index.d.ts +0 -1
- package/dist/serialization/resources/owners/index.js +0 -17
- package/dist/serialization/resources/pets/client/index.d.ts +0 -1
- package/dist/serialization/resources/pets/client/index.js +0 -17
- package/dist/serialization/resources/pets/client/requests/PetSearch.d.ts +0 -13
- package/dist/serialization/resources/pets/client/requests/PetSearch.js +0 -47
- package/dist/serialization/resources/pets/client/requests/UploadRequest.d.ts +0 -12
- package/dist/serialization/resources/pets/client/requests/UploadRequest.js +0 -42
- package/dist/serialization/resources/pets/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/pets/client/requests/index.js +0 -7
- package/dist/serialization/resources/pets/index.d.ts +0 -1
- package/dist/serialization/resources/pets/index.js +0 -17
- package/dist/serialization/types/Checksum.d.ts +0 -22
- package/dist/serialization/types/Checksum.js +0 -50
- package/dist/serialization/types/ChecksumAlgorithm.d.ts +0 -10
- package/dist/serialization/types/ChecksumCrc32.d.ts +0 -12
- package/dist/serialization/types/ChecksumCrc32.js +0 -42
- package/dist/serialization/types/ChecksumCrc32C.d.ts +0 -12
- package/dist/serialization/types/ChecksumSha256.d.ts +0 -12
- package/dist/serialization/types/HttpMethod.d.ts +0 -10
- package/dist/serialization/types/HttpMethod.js +0 -31
- package/dist/serialization/types/OwnerField.d.ts +0 -10
- package/dist/serialization/types/OwnerFilter.d.ts +0 -20
- package/dist/serialization/types/OwnerFilter.js +0 -50
- package/dist/serialization/types/OwnerFilterData.d.ts +0 -13
- package/dist/serialization/types/OwnerFilterData.js +0 -43
- package/dist/serialization/types/OwnerInput.d.ts +0 -14
- package/dist/serialization/types/OwnerInput.js +0 -44
- package/dist/serialization/types/OwnerList.js +0 -42
- package/dist/serialization/types/OwnerResource.d.ts +0 -21
- package/dist/serialization/types/OwnerResource.js +0 -51
- package/dist/serialization/types/OwnerSort.d.ts +0 -13
- package/dist/serialization/types/OwnerSort.js +0 -43
- package/dist/serialization/types/Pet.d.ts +0 -14
- package/dist/serialization/types/Pet.js +0 -44
- package/dist/serialization/types/PetField.d.ts +0 -10
- package/dist/serialization/types/PetFilter.d.ts +0 -20
- package/dist/serialization/types/PetFilter.js +0 -50
- package/dist/serialization/types/PetFilterData.d.ts +0 -14
- package/dist/serialization/types/PetFilterData.js +0 -44
- package/dist/serialization/types/PetInput.d.ts +0 -13
- package/dist/serialization/types/PetInput.js +0 -43
- package/dist/serialization/types/PetList.js +0 -42
- package/dist/serialization/types/PetResource.d.ts +0 -21
- package/dist/serialization/types/PetResource.js +0 -51
- package/dist/serialization/types/PetSort.d.ts +0 -13
- package/dist/serialization/types/PetSort.js +0 -43
- package/dist/serialization/types/ProblemResourceConflict.d.ts +0 -18
- package/dist/serialization/types/ProblemResourceConflict.js +0 -48
- package/dist/serialization/types/ProblemResourceMethodNotAllowed.d.ts +0 -19
- package/dist/serialization/types/ProblemResourceMethodNotAllowed.js +0 -49
- package/dist/serialization/types/RequestedETag.d.ts +0 -14
- package/dist/serialization/types/RequestedETag.js +0 -44
- package/dist/serialization/types/RequestedRevision.d.ts +0 -14
- package/dist/serialization/types/RequestedRevision.js +0 -44
- package/dist/serialization/types/Species.d.ts +0 -10
- package/dist/serialization/types/Species.js +0 -35
- package/jest.config.js +0 -5
- package/serialization/resources/owners/client/index.d.ts +0 -1
- package/serialization/resources/owners/client/index.js +0 -17
- package/serialization/resources/owners/client/requests/OwnerSearch.d.ts +0 -13
- package/serialization/resources/owners/client/requests/OwnerSearch.js +0 -47
- package/serialization/resources/owners/client/requests/index.d.ts +0 -1
- package/serialization/resources/owners/client/requests/index.js +0 -5
- package/serialization/resources/owners/index.d.ts +0 -1
- package/serialization/resources/owners/index.js +0 -17
- package/serialization/resources/pets/client/index.d.ts +0 -1
- package/serialization/resources/pets/client/index.js +0 -17
- package/serialization/resources/pets/client/requests/PetSearch.d.ts +0 -13
- package/serialization/resources/pets/client/requests/PetSearch.js +0 -47
- package/serialization/resources/pets/client/requests/UploadRequest.d.ts +0 -12
- package/serialization/resources/pets/client/requests/UploadRequest.js +0 -42
- package/serialization/resources/pets/client/requests/index.d.ts +0 -2
- package/serialization/resources/pets/client/requests/index.js +0 -7
- package/serialization/resources/pets/index.d.ts +0 -1
- package/serialization/resources/pets/index.js +0 -17
- package/serialization/types/Checksum.d.ts +0 -22
- package/serialization/types/Checksum.js +0 -50
- package/serialization/types/ChecksumAlgorithm.d.ts +0 -10
- package/serialization/types/ChecksumAlgorithm.js +0 -31
- package/serialization/types/ChecksumCrc32.d.ts +0 -12
- package/serialization/types/ChecksumCrc32.js +0 -42
- package/serialization/types/ChecksumCrc32C.d.ts +0 -12
- package/serialization/types/ChecksumCrc32C.js +0 -42
- package/serialization/types/ChecksumSha1.d.ts +0 -12
- package/serialization/types/ChecksumSha256.d.ts +0 -12
- package/serialization/types/ChecksumSha256.js +0 -42
- package/serialization/types/HashCrc32.d.ts +0 -10
- package/serialization/types/HashCrc32.js +0 -31
- package/serialization/types/HashCrc32C.d.ts +0 -10
- package/serialization/types/HashCrc32C.js +0 -31
- package/serialization/types/HashSha1.d.ts +0 -10
- package/serialization/types/HashSha1.js +0 -31
- package/serialization/types/HashSha256.d.ts +0 -10
- package/serialization/types/HashSha256.js +0 -31
- package/serialization/types/HttpMethod.d.ts +0 -10
- package/serialization/types/HttpMethod.js +0 -31
- package/serialization/types/OwnerField.d.ts +0 -10
- package/serialization/types/OwnerField.js +0 -42
- package/serialization/types/OwnerFilter.d.ts +0 -20
- package/serialization/types/OwnerFilter.js +0 -50
- package/serialization/types/OwnerFilterData.d.ts +0 -13
- package/serialization/types/OwnerFilterData.js +0 -43
- package/serialization/types/OwnerInput.d.ts +0 -14
- package/serialization/types/OwnerInput.js +0 -44
- package/serialization/types/OwnerList.d.ts +0 -12
- package/serialization/types/OwnerList.js +0 -42
- package/serialization/types/OwnerResource.d.ts +0 -21
- package/serialization/types/OwnerResource.js +0 -51
- package/serialization/types/OwnerSort.d.ts +0 -13
- package/serialization/types/OwnerSort.js +0 -43
- package/serialization/types/Pet.d.ts +0 -14
- package/serialization/types/Pet.js +0 -44
- package/serialization/types/PetField.d.ts +0 -10
- package/serialization/types/PetField.js +0 -43
- package/serialization/types/PetFilter.d.ts +0 -20
- package/serialization/types/PetFilter.js +0 -50
- package/serialization/types/PetFilterData.d.ts +0 -14
- package/serialization/types/PetFilterData.js +0 -44
- package/serialization/types/PetInput.d.ts +0 -13
- package/serialization/types/PetInput.js +0 -43
- package/serialization/types/PetList.js +0 -42
- package/serialization/types/PetResource.d.ts +0 -21
- package/serialization/types/PetResource.js +0 -51
- package/serialization/types/PetSort.d.ts +0 -13
- package/serialization/types/PetSort.js +0 -43
- package/serialization/types/ProblemResourceConflict.d.ts +0 -18
- package/serialization/types/ProblemResourceConflict.js +0 -48
- package/serialization/types/ProblemResourceMethodNotAllowed.d.ts +0 -19
- package/serialization/types/ProblemResourceMethodNotAllowed.js +0 -49
- package/serialization/types/RequestedETag.d.ts +0 -14
- package/serialization/types/RequestedETag.js +0 -44
- package/serialization/types/RequestedRevision.d.ts +0 -14
- package/serialization/types/RequestedRevision.js +0 -44
- package/serialization/types/Species.d.ts +0 -10
- package/serialization/types/Species.js +0 -35
- package/tests/client.test.ts +0 -11
- /package/api/resources/{owners → credentials}/client/index.d.ts +0 -0
- /package/api/resources/{owners → credentials}/client/index.js +0 -0
- /package/api/resources/{owners/client/requests/OwnerCreateRequest.js → credentials/client/requests/CredentialCreateRequest.js} +0 -0
- /package/api/resources/{owners/client/requests/OwnerDeleteRequest.js → credentials/client/requests/CredentialDeleteRequest.js} +0 -0
- /package/api/resources/{owners/client/requests/OwnerHistoryRequest.js → credentials/client/requests/CredentialDownloadRequest.js} +0 -0
- /package/api/resources/{owners/client/requests/OwnerLatestRequest.js → credentials/client/requests/CredentialHistoryRequest.js} +0 -0
- /package/api/resources/{owners/client/requests/OwnerRevisionRequest.js → credentials/client/requests/CredentialLatestRequest.js} +0 -0
- /package/api/resources/{owners/client/requests/OwnerSearch.js → credentials/client/requests/CredentialRestoreRequest.js} +0 -0
- /package/api/resources/{owners/client/requests/OwnerUpdateRequest.js → credentials/client/requests/CredentialRevisionRequest.js} +0 -0
- /package/api/resources/{pets/client/requests/PetCreateRequest.js → credentials/client/requests/CredentialSearch.js} +0 -0
- /package/api/resources/{pets/client/requests/PetDeleteRequest.js → credentials/client/requests/CredentialUpdateRequest.js} +0 -0
- /package/api/resources/{pets/client/requests/PetDownloadRequest.js → credentials/client/requests/CredentialUploadRequest.js} +0 -0
- /package/api/resources/{owners → credentials}/client/requests/index.js +0 -0
- /package/api/resources/{owners → credentials}/index.d.ts +0 -0
- /package/api/resources/{owners → credentials}/index.js +0 -0
- /package/api/{resources/pets/client/requests/PetHistoryRequest.js → types/Credential.js} +0 -0
- /package/api/{resources/pets/client/requests/PetLatestRequest.js → types/Credential11.js} +0 -0
- /package/api/{resources/pets/client/requests/PetRevisionRequest.js → types/Credential20.js} +0 -0
- /package/api/{resources/pets/client/requests/PetSearch.js → types/CredentialFilter.js} +0 -0
- /package/api/{resources/pets/client/requests/PetUpdateRequest.js → types/CredentialFilterData.js} +0 -0
- /package/api/{resources/pets/client/requests/UploadRequest.js → types/CredentialFilterKind.js} +0 -0
- /package/api/types/{Checksum.js → CredentialId.js} +0 -0
- /package/api/types/{ChecksumCrc32.js → CredentialInput.js} +0 -0
- /package/api/types/{ChecksumCrc32C.js → CredentialIssuer.js} +0 -0
- /package/api/types/{ChecksumSha1.js → CredentialList.js} +0 -0
- /package/api/types/{ChecksumSha256.js → CredentialResource.js} +0 -0
- /package/api/types/{HashCrc32.js → CredentialSort.js} +0 -0
- /package/api/types/{HashCrc32C.js → CredentialSubject.js} +0 -0
- /package/api/types/{HashSha1.js → CredentialType.js} +0 -0
- /package/api/types/{HashSha256.js → CredentialValidFrom.js} +0 -0
- /package/api/types/{Owner.js → CredentialValidUntil.js} +0 -0
- /package/api/types/{OwnerFilter.js → CredentilHolder.js} +0 -0
- /package/api/types/{OwnerFilterData.js → DataModelCredential.js} +0 -0
- /package/api/types/{OwnerInput.js → FilterUriEqual.js} +0 -0
- /package/api/types/{OwnerList.js → FilterUriIsNotNull.js} +0 -0
- /package/api/types/{OwnerResource.js → FilterUriIsNull.js} +0 -0
- /package/api/types/{OwnerSort.js → FilterUriNotEqual.js} +0 -0
- /package/api/types/{Pet.js → FilterUriOptional.js} +0 -0
- /package/api/types/{PetFilter.js → ProblemConflictResource.js} +0 -0
- /package/api/types/{PetFilterData.js → ProblemMethodNotAllowedResourceAlive.js} +0 -0
- /package/api/types/{PetInput.js → ProblemMethodNotAllowedResourceDeleted.js} +0 -0
- /package/api/types/{PetList.js → Subject.js} +0 -0
- /package/{api/resources/pets → dist/api/resources/credentials}/client/index.d.ts +0 -0
- /package/{api/resources/pets → dist/api/resources/credentials}/client/index.js +0 -0
- /package/{api/types/PetResource.js → dist/api/resources/credentials/client/requests/CredentialCreateRequest.js} +0 -0
- /package/{api/types/PetSort.js → dist/api/resources/credentials/client/requests/CredentialDeleteRequest.js} +0 -0
- /package/{api/types/ProblemResourceConflict.js → dist/api/resources/credentials/client/requests/CredentialDownloadRequest.js} +0 -0
- /package/{api/types/ProblemResourceMethodNotAllowed.js → dist/api/resources/credentials/client/requests/CredentialHistoryRequest.js} +0 -0
- /package/{api/types/RequestedETag.js → dist/api/resources/credentials/client/requests/CredentialLatestRequest.js} +0 -0
- /package/{api/types/RequestedRevision.js → dist/api/resources/credentials/client/requests/CredentialRestoreRequest.js} +0 -0
- /package/dist/api/resources/{owners/client/requests/OwnerCreateRequest.js → credentials/client/requests/CredentialRevisionRequest.js} +0 -0
- /package/dist/api/resources/{owners/client/requests/OwnerDeleteRequest.js → credentials/client/requests/CredentialSearch.js} +0 -0
- /package/dist/api/resources/{owners/client/requests/OwnerHistoryRequest.js → credentials/client/requests/CredentialUpdateRequest.js} +0 -0
- /package/dist/api/resources/{owners/client/requests/OwnerLatestRequest.js → credentials/client/requests/CredentialUploadRequest.js} +0 -0
- /package/{api/resources/pets → dist/api/resources/credentials}/client/requests/index.js +0 -0
- /package/{api/resources/pets → dist/api/resources/credentials}/index.d.ts +0 -0
- /package/{api/resources/pets → dist/api/resources/credentials}/index.js +0 -0
- /package/dist/api/{resources/owners/client/requests/OwnerRevisionRequest.js → types/Credential.js} +0 -0
- /package/dist/api/{resources/owners/client/requests/OwnerSearch.js → types/Credential11.js} +0 -0
- /package/dist/api/{resources/owners/client/requests/OwnerUpdateRequest.js → types/Credential20.js} +0 -0
- /package/dist/api/{resources/pets/client/requests/PetCreateRequest.js → types/CredentialFilter.js} +0 -0
- /package/dist/api/{resources/pets/client/requests/PetDeleteRequest.js → types/CredentialFilterData.js} +0 -0
- /package/dist/api/{resources/pets/client/requests/PetDownloadRequest.js → types/CredentialFilterKind.js} +0 -0
- /package/dist/api/{resources/pets/client/requests/PetHistoryRequest.js → types/CredentialId.js} +0 -0
- /package/dist/api/{resources/pets/client/requests/PetLatestRequest.js → types/CredentialInput.js} +0 -0
- /package/dist/api/{resources/pets/client/requests/PetRevisionRequest.js → types/CredentialIssuer.js} +0 -0
- /package/dist/api/{resources/pets/client/requests/PetSearch.js → types/CredentialList.js} +0 -0
- /package/dist/api/{resources/pets/client/requests/PetUpdateRequest.js → types/CredentialResource.js} +0 -0
- /package/dist/api/{resources/pets/client/requests/UploadRequest.js → types/CredentialSort.js} +0 -0
- /package/dist/api/types/{Checksum.js → CredentialSubject.js} +0 -0
- /package/dist/api/types/{ChecksumCrc32.js → CredentialType.js} +0 -0
- /package/dist/api/types/{ChecksumCrc32C.js → CredentialValidFrom.js} +0 -0
- /package/dist/api/types/{ChecksumSha1.js → CredentialValidUntil.js} +0 -0
- /package/dist/api/types/{ChecksumSha256.js → CredentilHolder.js} +0 -0
- /package/dist/api/types/{HashCrc32.js → DataModelCredential.js} +0 -0
- /package/dist/api/types/{HashCrc32C.js → FilterUriEqual.js} +0 -0
- /package/dist/api/types/{HashSha1.js → FilterUriIsNotNull.js} +0 -0
- /package/dist/api/types/{HashSha256.js → FilterUriIsNull.js} +0 -0
- /package/dist/api/types/{Owner.js → FilterUriNotEqual.js} +0 -0
- /package/dist/api/types/{OwnerFilter.js → FilterUriOptional.js} +0 -0
- /package/dist/api/types/{OwnerFilterData.js → ProblemConflictResource.js} +0 -0
- /package/dist/api/types/{OwnerInput.js → ProblemMethodNotAllowedResourceAlive.js} +0 -0
- /package/dist/api/types/{OwnerList.js → ProblemMethodNotAllowedResourceDeleted.js} +0 -0
- /package/dist/api/types/{OwnerResource.js → Subject.js} +0 -0
- /package/dist/{api/resources/owners → serialization/resources/credentials}/client/index.d.ts +0 -0
- /package/dist/{api/resources/owners → serialization/resources/credentials}/client/index.js +0 -0
- /package/dist/{api/resources/owners → serialization/resources/credentials}/index.d.ts +0 -0
- /package/dist/{api/resources/owners → serialization/resources/credentials}/index.js +0 -0
- /package/{dist/api/resources/pets → serialization/resources/credentials}/client/index.d.ts +0 -0
- /package/{dist/api/resources/pets → serialization/resources/credentials}/client/index.js +0 -0
- /package/{dist/api/resources/pets → serialization/resources/credentials}/index.d.ts +0 -0
- /package/{dist/api/resources/pets → serialization/resources/credentials}/index.js +0 -0
|
@@ -1,711 +0,0 @@
|
|
|
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 (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
-
};
|
|
40
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.Owners = void 0;
|
|
42
|
-
const environments = __importStar(require("../../../../environments"));
|
|
43
|
-
const core = __importStar(require("../../../../core"));
|
|
44
|
-
const Truvity = __importStar(require("../../.."));
|
|
45
|
-
const serializers = __importStar(require("../../../../serialization"));
|
|
46
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
47
|
-
const errors = __importStar(require("../../../../errors"));
|
|
48
|
-
/**
|
|
49
|
-
* Owners API for RESTful PetStore.
|
|
50
|
-
*/
|
|
51
|
-
class Owners {
|
|
52
|
-
constructor(_options = {}) {
|
|
53
|
-
this._options = _options;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Create owner's resource.
|
|
57
|
-
* @throws {@link Truvity.BadRequestError}
|
|
58
|
-
* @throws {@link Truvity.UnauthorizedError}
|
|
59
|
-
* @throws {@link Truvity.ForbiddenError}
|
|
60
|
-
* @throws {@link Truvity.InternalServerError}
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* await truvity.owners.ownerCreate({
|
|
64
|
-
* body: {
|
|
65
|
-
* data: {
|
|
66
|
-
* firstName: "first_name",
|
|
67
|
-
* lastName: "last_name"
|
|
68
|
-
* }
|
|
69
|
-
* }
|
|
70
|
-
* })
|
|
71
|
-
*/
|
|
72
|
-
ownerCreate(request, requestOptions) {
|
|
73
|
-
var _a, _b;
|
|
74
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
const { idempotencyKey, body: _body } = request;
|
|
76
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, "owners"),
|
|
78
|
-
method: "POST",
|
|
79
|
-
headers: {
|
|
80
|
-
"X-Fern-Language": "JavaScript",
|
|
81
|
-
"X-Fern-SDK-Name": "@truvity/sdk",
|
|
82
|
-
"X-Fern-SDK-Version": "0.0.1",
|
|
83
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
84
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
85
|
-
"Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined,
|
|
86
|
-
},
|
|
87
|
-
contentType: "application/json",
|
|
88
|
-
body: yield serializers.OwnerInput.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
89
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
90
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
91
|
-
});
|
|
92
|
-
if (_response.ok) {
|
|
93
|
-
return yield serializers.OwnerResource.parseOrThrow(_response.body, {
|
|
94
|
-
unrecognizedObjectKeys: "passthrough",
|
|
95
|
-
allowUnrecognizedUnionMembers: true,
|
|
96
|
-
allowUnrecognizedEnumValues: true,
|
|
97
|
-
breadcrumbsPrefix: ["response"],
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
if (_response.error.reason === "status-code") {
|
|
101
|
-
switch (_response.error.statusCode) {
|
|
102
|
-
case 400:
|
|
103
|
-
throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
|
|
104
|
-
unrecognizedObjectKeys: "passthrough",
|
|
105
|
-
allowUnrecognizedUnionMembers: true,
|
|
106
|
-
allowUnrecognizedEnumValues: true,
|
|
107
|
-
breadcrumbsPrefix: ["response"],
|
|
108
|
-
}));
|
|
109
|
-
case 401:
|
|
110
|
-
throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
|
|
111
|
-
unrecognizedObjectKeys: "passthrough",
|
|
112
|
-
allowUnrecognizedUnionMembers: true,
|
|
113
|
-
allowUnrecognizedEnumValues: true,
|
|
114
|
-
breadcrumbsPrefix: ["response"],
|
|
115
|
-
}));
|
|
116
|
-
case 403:
|
|
117
|
-
throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
|
|
118
|
-
unrecognizedObjectKeys: "passthrough",
|
|
119
|
-
allowUnrecognizedUnionMembers: true,
|
|
120
|
-
allowUnrecognizedEnumValues: true,
|
|
121
|
-
breadcrumbsPrefix: ["response"],
|
|
122
|
-
}));
|
|
123
|
-
case 500:
|
|
124
|
-
throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
|
|
125
|
-
unrecognizedObjectKeys: "passthrough",
|
|
126
|
-
allowUnrecognizedUnionMembers: true,
|
|
127
|
-
allowUnrecognizedEnumValues: true,
|
|
128
|
-
breadcrumbsPrefix: ["response"],
|
|
129
|
-
}));
|
|
130
|
-
default:
|
|
131
|
-
throw new errors.TruvityError({
|
|
132
|
-
statusCode: _response.error.statusCode,
|
|
133
|
-
body: _response.error.body,
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
switch (_response.error.reason) {
|
|
138
|
-
case "non-json":
|
|
139
|
-
throw new errors.TruvityError({
|
|
140
|
-
statusCode: _response.error.statusCode,
|
|
141
|
-
body: _response.error.rawBody,
|
|
142
|
-
});
|
|
143
|
-
case "timeout":
|
|
144
|
-
throw new errors.TruvityTimeoutError();
|
|
145
|
-
case "unknown":
|
|
146
|
-
throw new errors.TruvityError({
|
|
147
|
-
message: _response.error.errorMessage,
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Take a look at [GET with body payload](https://opensource.zalando.com/restful-api-guidelines/#get-with-body)
|
|
154
|
-
*
|
|
155
|
-
* - no resources created: Returns all owners matching the query passed as request input payload.
|
|
156
|
-
* @throws {@link Truvity.BadRequestError}
|
|
157
|
-
* @throws {@link Truvity.UnauthorizedError}
|
|
158
|
-
* @throws {@link Truvity.ForbiddenError}
|
|
159
|
-
* @throws {@link Truvity.InternalServerError}
|
|
160
|
-
*
|
|
161
|
-
* @example
|
|
162
|
-
* await truvity.owners.ownerSearch()
|
|
163
|
-
*/
|
|
164
|
-
ownerSearch(request = {}, requestOptions) {
|
|
165
|
-
var _a, _b;
|
|
166
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
168
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, "owners/search"),
|
|
169
|
-
method: "POST",
|
|
170
|
-
headers: {
|
|
171
|
-
"X-Fern-Language": "JavaScript",
|
|
172
|
-
"X-Fern-SDK-Name": "@truvity/sdk",
|
|
173
|
-
"X-Fern-SDK-Version": "0.0.1",
|
|
174
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
175
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
176
|
-
},
|
|
177
|
-
contentType: "application/json",
|
|
178
|
-
body: yield serializers.OwnerSearch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
179
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
180
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
181
|
-
});
|
|
182
|
-
if (_response.ok) {
|
|
183
|
-
return yield serializers.OwnerList.parseOrThrow(_response.body, {
|
|
184
|
-
unrecognizedObjectKeys: "passthrough",
|
|
185
|
-
allowUnrecognizedUnionMembers: true,
|
|
186
|
-
allowUnrecognizedEnumValues: true,
|
|
187
|
-
breadcrumbsPrefix: ["response"],
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
if (_response.error.reason === "status-code") {
|
|
191
|
-
switch (_response.error.statusCode) {
|
|
192
|
-
case 400:
|
|
193
|
-
throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
|
|
194
|
-
unrecognizedObjectKeys: "passthrough",
|
|
195
|
-
allowUnrecognizedUnionMembers: true,
|
|
196
|
-
allowUnrecognizedEnumValues: true,
|
|
197
|
-
breadcrumbsPrefix: ["response"],
|
|
198
|
-
}));
|
|
199
|
-
case 401:
|
|
200
|
-
throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
|
|
201
|
-
unrecognizedObjectKeys: "passthrough",
|
|
202
|
-
allowUnrecognizedUnionMembers: true,
|
|
203
|
-
allowUnrecognizedEnumValues: true,
|
|
204
|
-
breadcrumbsPrefix: ["response"],
|
|
205
|
-
}));
|
|
206
|
-
case 403:
|
|
207
|
-
throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
|
|
208
|
-
unrecognizedObjectKeys: "passthrough",
|
|
209
|
-
allowUnrecognizedUnionMembers: true,
|
|
210
|
-
allowUnrecognizedEnumValues: true,
|
|
211
|
-
breadcrumbsPrefix: ["response"],
|
|
212
|
-
}));
|
|
213
|
-
case 500:
|
|
214
|
-
throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
|
|
215
|
-
unrecognizedObjectKeys: "passthrough",
|
|
216
|
-
allowUnrecognizedUnionMembers: true,
|
|
217
|
-
allowUnrecognizedEnumValues: true,
|
|
218
|
-
breadcrumbsPrefix: ["response"],
|
|
219
|
-
}));
|
|
220
|
-
default:
|
|
221
|
-
throw new errors.TruvityError({
|
|
222
|
-
statusCode: _response.error.statusCode,
|
|
223
|
-
body: _response.error.body,
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
switch (_response.error.reason) {
|
|
228
|
-
case "non-json":
|
|
229
|
-
throw new errors.TruvityError({
|
|
230
|
-
statusCode: _response.error.statusCode,
|
|
231
|
-
body: _response.error.rawBody,
|
|
232
|
-
});
|
|
233
|
-
case "timeout":
|
|
234
|
-
throw new errors.TruvityTimeoutError();
|
|
235
|
-
case "unknown":
|
|
236
|
-
throw new errors.TruvityError({
|
|
237
|
-
message: _response.error.errorMessage,
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* Read the latest revision of the owner's resource.
|
|
244
|
-
* @throws {@link Truvity.BadRequestError}
|
|
245
|
-
* @throws {@link Truvity.UnauthorizedError}
|
|
246
|
-
* @throws {@link Truvity.ForbiddenError}
|
|
247
|
-
* @throws {@link Truvity.NotFoundError}
|
|
248
|
-
* @throws {@link Truvity.InternalServerError}
|
|
249
|
-
*
|
|
250
|
-
* @example
|
|
251
|
-
* await truvity.owners.ownerLatest("id")
|
|
252
|
-
*/
|
|
253
|
-
ownerLatest(id, request = {}, requestOptions) {
|
|
254
|
-
var _a, _b;
|
|
255
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
256
|
-
const { ifNoneMatch } = request;
|
|
257
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
258
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `owners/${yield serializers.ResourceId.jsonOrThrow(id)}`),
|
|
259
|
-
method: "GET",
|
|
260
|
-
headers: {
|
|
261
|
-
"X-Fern-Language": "JavaScript",
|
|
262
|
-
"X-Fern-SDK-Name": "@truvity/sdk",
|
|
263
|
-
"X-Fern-SDK-Version": "0.0.1",
|
|
264
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
265
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
266
|
-
"If-None-Match": ifNoneMatch != null ? ifNoneMatch : undefined,
|
|
267
|
-
},
|
|
268
|
-
contentType: "application/json",
|
|
269
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
270
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
271
|
-
});
|
|
272
|
-
if (_response.ok) {
|
|
273
|
-
return yield serializers.OwnerResource.parseOrThrow(_response.body, {
|
|
274
|
-
unrecognizedObjectKeys: "passthrough",
|
|
275
|
-
allowUnrecognizedUnionMembers: true,
|
|
276
|
-
allowUnrecognizedEnumValues: true,
|
|
277
|
-
breadcrumbsPrefix: ["response"],
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
if (_response.error.reason === "status-code") {
|
|
281
|
-
switch (_response.error.statusCode) {
|
|
282
|
-
case 400:
|
|
283
|
-
throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
|
|
284
|
-
unrecognizedObjectKeys: "passthrough",
|
|
285
|
-
allowUnrecognizedUnionMembers: true,
|
|
286
|
-
allowUnrecognizedEnumValues: true,
|
|
287
|
-
breadcrumbsPrefix: ["response"],
|
|
288
|
-
}));
|
|
289
|
-
case 401:
|
|
290
|
-
throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
|
|
291
|
-
unrecognizedObjectKeys: "passthrough",
|
|
292
|
-
allowUnrecognizedUnionMembers: true,
|
|
293
|
-
allowUnrecognizedEnumValues: true,
|
|
294
|
-
breadcrumbsPrefix: ["response"],
|
|
295
|
-
}));
|
|
296
|
-
case 403:
|
|
297
|
-
throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
|
|
298
|
-
unrecognizedObjectKeys: "passthrough",
|
|
299
|
-
allowUnrecognizedUnionMembers: true,
|
|
300
|
-
allowUnrecognizedEnumValues: true,
|
|
301
|
-
breadcrumbsPrefix: ["response"],
|
|
302
|
-
}));
|
|
303
|
-
case 404:
|
|
304
|
-
throw new Truvity.NotFoundError(_response.error.body);
|
|
305
|
-
case 500:
|
|
306
|
-
throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
|
|
307
|
-
unrecognizedObjectKeys: "passthrough",
|
|
308
|
-
allowUnrecognizedUnionMembers: true,
|
|
309
|
-
allowUnrecognizedEnumValues: true,
|
|
310
|
-
breadcrumbsPrefix: ["response"],
|
|
311
|
-
}));
|
|
312
|
-
default:
|
|
313
|
-
throw new errors.TruvityError({
|
|
314
|
-
statusCode: _response.error.statusCode,
|
|
315
|
-
body: _response.error.body,
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
switch (_response.error.reason) {
|
|
320
|
-
case "non-json":
|
|
321
|
-
throw new errors.TruvityError({
|
|
322
|
-
statusCode: _response.error.statusCode,
|
|
323
|
-
body: _response.error.rawBody,
|
|
324
|
-
});
|
|
325
|
-
case "timeout":
|
|
326
|
-
throw new errors.TruvityTimeoutError();
|
|
327
|
-
case "unknown":
|
|
328
|
-
throw new errors.TruvityError({
|
|
329
|
-
message: _response.error.errorMessage,
|
|
330
|
-
});
|
|
331
|
-
}
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* Update owner's resource.
|
|
336
|
-
* @throws {@link Truvity.BadRequestError}
|
|
337
|
-
* @throws {@link Truvity.UnauthorizedError}
|
|
338
|
-
* @throws {@link Truvity.ForbiddenError}
|
|
339
|
-
* @throws {@link Truvity.NotFoundError}
|
|
340
|
-
* @throws {@link Truvity.InternalServerError}
|
|
341
|
-
*
|
|
342
|
-
* @example
|
|
343
|
-
* await truvity.owners.ownerUpdate("id", {
|
|
344
|
-
* ifMatch: "If-Match",
|
|
345
|
-
* body: {
|
|
346
|
-
* data: {
|
|
347
|
-
* firstName: "first_name",
|
|
348
|
-
* lastName: "last_name"
|
|
349
|
-
* }
|
|
350
|
-
* }
|
|
351
|
-
* })
|
|
352
|
-
*/
|
|
353
|
-
ownerUpdate(id, request, requestOptions) {
|
|
354
|
-
var _a, _b;
|
|
355
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
356
|
-
const { idempotencyKey, ifMatch, body: _body } = request;
|
|
357
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
358
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `owners/${yield serializers.ResourceId.jsonOrThrow(id)}`),
|
|
359
|
-
method: "PUT",
|
|
360
|
-
headers: {
|
|
361
|
-
"X-Fern-Language": "JavaScript",
|
|
362
|
-
"X-Fern-SDK-Name": "@truvity/sdk",
|
|
363
|
-
"X-Fern-SDK-Version": "0.0.1",
|
|
364
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
365
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
366
|
-
"Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined,
|
|
367
|
-
"If-Match": ifMatch,
|
|
368
|
-
},
|
|
369
|
-
contentType: "application/json",
|
|
370
|
-
body: yield serializers.OwnerInput.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
371
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
372
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
373
|
-
});
|
|
374
|
-
if (_response.ok) {
|
|
375
|
-
return yield serializers.OwnerResource.parseOrThrow(_response.body, {
|
|
376
|
-
unrecognizedObjectKeys: "passthrough",
|
|
377
|
-
allowUnrecognizedUnionMembers: true,
|
|
378
|
-
allowUnrecognizedEnumValues: true,
|
|
379
|
-
breadcrumbsPrefix: ["response"],
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
if (_response.error.reason === "status-code") {
|
|
383
|
-
switch (_response.error.statusCode) {
|
|
384
|
-
case 400:
|
|
385
|
-
throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
|
|
386
|
-
unrecognizedObjectKeys: "passthrough",
|
|
387
|
-
allowUnrecognizedUnionMembers: true,
|
|
388
|
-
allowUnrecognizedEnumValues: true,
|
|
389
|
-
breadcrumbsPrefix: ["response"],
|
|
390
|
-
}));
|
|
391
|
-
case 401:
|
|
392
|
-
throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
|
|
393
|
-
unrecognizedObjectKeys: "passthrough",
|
|
394
|
-
allowUnrecognizedUnionMembers: true,
|
|
395
|
-
allowUnrecognizedEnumValues: true,
|
|
396
|
-
breadcrumbsPrefix: ["response"],
|
|
397
|
-
}));
|
|
398
|
-
case 403:
|
|
399
|
-
throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
|
|
400
|
-
unrecognizedObjectKeys: "passthrough",
|
|
401
|
-
allowUnrecognizedUnionMembers: true,
|
|
402
|
-
allowUnrecognizedEnumValues: true,
|
|
403
|
-
breadcrumbsPrefix: ["response"],
|
|
404
|
-
}));
|
|
405
|
-
case 404:
|
|
406
|
-
throw new Truvity.NotFoundError(_response.error.body);
|
|
407
|
-
case 500:
|
|
408
|
-
throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
|
|
409
|
-
unrecognizedObjectKeys: "passthrough",
|
|
410
|
-
allowUnrecognizedUnionMembers: true,
|
|
411
|
-
allowUnrecognizedEnumValues: true,
|
|
412
|
-
breadcrumbsPrefix: ["response"],
|
|
413
|
-
}));
|
|
414
|
-
default:
|
|
415
|
-
throw new errors.TruvityError({
|
|
416
|
-
statusCode: _response.error.statusCode,
|
|
417
|
-
body: _response.error.body,
|
|
418
|
-
});
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
switch (_response.error.reason) {
|
|
422
|
-
case "non-json":
|
|
423
|
-
throw new errors.TruvityError({
|
|
424
|
-
statusCode: _response.error.statusCode,
|
|
425
|
-
body: _response.error.rawBody,
|
|
426
|
-
});
|
|
427
|
-
case "timeout":
|
|
428
|
-
throw new errors.TruvityTimeoutError();
|
|
429
|
-
case "unknown":
|
|
430
|
-
throw new errors.TruvityError({
|
|
431
|
-
message: _response.error.errorMessage,
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
/**
|
|
437
|
-
* Delete owner's resource.
|
|
438
|
-
* @throws {@link Truvity.BadRequestError}
|
|
439
|
-
* @throws {@link Truvity.UnauthorizedError}
|
|
440
|
-
* @throws {@link Truvity.ForbiddenError}
|
|
441
|
-
* @throws {@link Truvity.NotFoundError}
|
|
442
|
-
* @throws {@link Truvity.InternalServerError}
|
|
443
|
-
*
|
|
444
|
-
* @example
|
|
445
|
-
* await truvity.owners.ownerDelete("id", {
|
|
446
|
-
* ifMatch: "If-Match"
|
|
447
|
-
* })
|
|
448
|
-
*/
|
|
449
|
-
ownerDelete(id, request, requestOptions) {
|
|
450
|
-
var _a, _b;
|
|
451
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
452
|
-
const { idempotencyKey, ifMatch } = request;
|
|
453
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
454
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `owners/${yield serializers.ResourceId.jsonOrThrow(id)}`),
|
|
455
|
-
method: "DELETE",
|
|
456
|
-
headers: {
|
|
457
|
-
"X-Fern-Language": "JavaScript",
|
|
458
|
-
"X-Fern-SDK-Name": "@truvity/sdk",
|
|
459
|
-
"X-Fern-SDK-Version": "0.0.1",
|
|
460
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
461
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
462
|
-
"Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined,
|
|
463
|
-
"If-Match": ifMatch,
|
|
464
|
-
},
|
|
465
|
-
contentType: "application/json",
|
|
466
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
467
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
468
|
-
});
|
|
469
|
-
if (_response.ok) {
|
|
470
|
-
return;
|
|
471
|
-
}
|
|
472
|
-
if (_response.error.reason === "status-code") {
|
|
473
|
-
switch (_response.error.statusCode) {
|
|
474
|
-
case 400:
|
|
475
|
-
throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
|
|
476
|
-
unrecognizedObjectKeys: "passthrough",
|
|
477
|
-
allowUnrecognizedUnionMembers: true,
|
|
478
|
-
allowUnrecognizedEnumValues: true,
|
|
479
|
-
breadcrumbsPrefix: ["response"],
|
|
480
|
-
}));
|
|
481
|
-
case 401:
|
|
482
|
-
throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
|
|
483
|
-
unrecognizedObjectKeys: "passthrough",
|
|
484
|
-
allowUnrecognizedUnionMembers: true,
|
|
485
|
-
allowUnrecognizedEnumValues: true,
|
|
486
|
-
breadcrumbsPrefix: ["response"],
|
|
487
|
-
}));
|
|
488
|
-
case 403:
|
|
489
|
-
throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
|
|
490
|
-
unrecognizedObjectKeys: "passthrough",
|
|
491
|
-
allowUnrecognizedUnionMembers: true,
|
|
492
|
-
allowUnrecognizedEnumValues: true,
|
|
493
|
-
breadcrumbsPrefix: ["response"],
|
|
494
|
-
}));
|
|
495
|
-
case 404:
|
|
496
|
-
throw new Truvity.NotFoundError(_response.error.body);
|
|
497
|
-
case 500:
|
|
498
|
-
throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
|
|
499
|
-
unrecognizedObjectKeys: "passthrough",
|
|
500
|
-
allowUnrecognizedUnionMembers: true,
|
|
501
|
-
allowUnrecognizedEnumValues: true,
|
|
502
|
-
breadcrumbsPrefix: ["response"],
|
|
503
|
-
}));
|
|
504
|
-
default:
|
|
505
|
-
throw new errors.TruvityError({
|
|
506
|
-
statusCode: _response.error.statusCode,
|
|
507
|
-
body: _response.error.body,
|
|
508
|
-
});
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
switch (_response.error.reason) {
|
|
512
|
-
case "non-json":
|
|
513
|
-
throw new errors.TruvityError({
|
|
514
|
-
statusCode: _response.error.statusCode,
|
|
515
|
-
body: _response.error.rawBody,
|
|
516
|
-
});
|
|
517
|
-
case "timeout":
|
|
518
|
-
throw new errors.TruvityTimeoutError();
|
|
519
|
-
case "unknown":
|
|
520
|
-
throw new errors.TruvityError({
|
|
521
|
-
message: _response.error.errorMessage,
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
});
|
|
525
|
-
}
|
|
526
|
-
/**
|
|
527
|
-
* History of the owners' resources.
|
|
528
|
-
* @throws {@link Truvity.BadRequestError}
|
|
529
|
-
* @throws {@link Truvity.UnauthorizedError}
|
|
530
|
-
* @throws {@link Truvity.ForbiddenError}
|
|
531
|
-
* @throws {@link Truvity.NotFoundError}
|
|
532
|
-
* @throws {@link Truvity.InternalServerError}
|
|
533
|
-
*
|
|
534
|
-
* @example
|
|
535
|
-
* await truvity.owners.ownerHistory("id")
|
|
536
|
-
*/
|
|
537
|
-
ownerHistory(id, request = {}, requestOptions) {
|
|
538
|
-
var _a, _b;
|
|
539
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
540
|
-
const { ifNoneMatch } = request;
|
|
541
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
542
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `owners/${yield serializers.ResourceId.jsonOrThrow(id)}/revisions`),
|
|
543
|
-
method: "GET",
|
|
544
|
-
headers: {
|
|
545
|
-
"X-Fern-Language": "JavaScript",
|
|
546
|
-
"X-Fern-SDK-Name": "@truvity/sdk",
|
|
547
|
-
"X-Fern-SDK-Version": "0.0.1",
|
|
548
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
549
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
550
|
-
"If-None-Match": ifNoneMatch != null ? ifNoneMatch : undefined,
|
|
551
|
-
},
|
|
552
|
-
contentType: "application/json",
|
|
553
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
554
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
555
|
-
});
|
|
556
|
-
if (_response.ok) {
|
|
557
|
-
return yield serializers.OwnerList.parseOrThrow(_response.body, {
|
|
558
|
-
unrecognizedObjectKeys: "passthrough",
|
|
559
|
-
allowUnrecognizedUnionMembers: true,
|
|
560
|
-
allowUnrecognizedEnumValues: true,
|
|
561
|
-
breadcrumbsPrefix: ["response"],
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
if (_response.error.reason === "status-code") {
|
|
565
|
-
switch (_response.error.statusCode) {
|
|
566
|
-
case 400:
|
|
567
|
-
throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
|
|
568
|
-
unrecognizedObjectKeys: "passthrough",
|
|
569
|
-
allowUnrecognizedUnionMembers: true,
|
|
570
|
-
allowUnrecognizedEnumValues: true,
|
|
571
|
-
breadcrumbsPrefix: ["response"],
|
|
572
|
-
}));
|
|
573
|
-
case 401:
|
|
574
|
-
throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
|
|
575
|
-
unrecognizedObjectKeys: "passthrough",
|
|
576
|
-
allowUnrecognizedUnionMembers: true,
|
|
577
|
-
allowUnrecognizedEnumValues: true,
|
|
578
|
-
breadcrumbsPrefix: ["response"],
|
|
579
|
-
}));
|
|
580
|
-
case 403:
|
|
581
|
-
throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
|
|
582
|
-
unrecognizedObjectKeys: "passthrough",
|
|
583
|
-
allowUnrecognizedUnionMembers: true,
|
|
584
|
-
allowUnrecognizedEnumValues: true,
|
|
585
|
-
breadcrumbsPrefix: ["response"],
|
|
586
|
-
}));
|
|
587
|
-
case 404:
|
|
588
|
-
throw new Truvity.NotFoundError(_response.error.body);
|
|
589
|
-
case 500:
|
|
590
|
-
throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
|
|
591
|
-
unrecognizedObjectKeys: "passthrough",
|
|
592
|
-
allowUnrecognizedUnionMembers: true,
|
|
593
|
-
allowUnrecognizedEnumValues: true,
|
|
594
|
-
breadcrumbsPrefix: ["response"],
|
|
595
|
-
}));
|
|
596
|
-
default:
|
|
597
|
-
throw new errors.TruvityError({
|
|
598
|
-
statusCode: _response.error.statusCode,
|
|
599
|
-
body: _response.error.body,
|
|
600
|
-
});
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
switch (_response.error.reason) {
|
|
604
|
-
case "non-json":
|
|
605
|
-
throw new errors.TruvityError({
|
|
606
|
-
statusCode: _response.error.statusCode,
|
|
607
|
-
body: _response.error.rawBody,
|
|
608
|
-
});
|
|
609
|
-
case "timeout":
|
|
610
|
-
throw new errors.TruvityTimeoutError();
|
|
611
|
-
case "unknown":
|
|
612
|
-
throw new errors.TruvityError({
|
|
613
|
-
message: _response.error.errorMessage,
|
|
614
|
-
});
|
|
615
|
-
}
|
|
616
|
-
});
|
|
617
|
-
}
|
|
618
|
-
/**
|
|
619
|
-
* Read the specific version of the owner's resource.
|
|
620
|
-
* @throws {@link Truvity.BadRequestError}
|
|
621
|
-
* @throws {@link Truvity.UnauthorizedError}
|
|
622
|
-
* @throws {@link Truvity.ForbiddenError}
|
|
623
|
-
* @throws {@link Truvity.NotFoundError}
|
|
624
|
-
* @throws {@link Truvity.InternalServerError}
|
|
625
|
-
*
|
|
626
|
-
* @example
|
|
627
|
-
* await truvity.owners.ownerRevision("id", 1)
|
|
628
|
-
*/
|
|
629
|
-
ownerRevision(id, revision, request = {}, requestOptions) {
|
|
630
|
-
var _a, _b;
|
|
631
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
632
|
-
const { ifNoneMatch } = request;
|
|
633
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
634
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `owners/${yield serializers.ResourceId.jsonOrThrow(id)}/revisions/${yield serializers.Revision.jsonOrThrow(revision)}`),
|
|
635
|
-
method: "GET",
|
|
636
|
-
headers: {
|
|
637
|
-
"X-Fern-Language": "JavaScript",
|
|
638
|
-
"X-Fern-SDK-Name": "@truvity/sdk",
|
|
639
|
-
"X-Fern-SDK-Version": "0.0.1",
|
|
640
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
641
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
642
|
-
"If-None-Match": ifNoneMatch != null ? ifNoneMatch : undefined,
|
|
643
|
-
},
|
|
644
|
-
contentType: "application/json",
|
|
645
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
646
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
647
|
-
});
|
|
648
|
-
if (_response.ok) {
|
|
649
|
-
return yield serializers.OwnerResource.parseOrThrow(_response.body, {
|
|
650
|
-
unrecognizedObjectKeys: "passthrough",
|
|
651
|
-
allowUnrecognizedUnionMembers: true,
|
|
652
|
-
allowUnrecognizedEnumValues: true,
|
|
653
|
-
breadcrumbsPrefix: ["response"],
|
|
654
|
-
});
|
|
655
|
-
}
|
|
656
|
-
if (_response.error.reason === "status-code") {
|
|
657
|
-
switch (_response.error.statusCode) {
|
|
658
|
-
case 400:
|
|
659
|
-
throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
|
|
660
|
-
unrecognizedObjectKeys: "passthrough",
|
|
661
|
-
allowUnrecognizedUnionMembers: true,
|
|
662
|
-
allowUnrecognizedEnumValues: true,
|
|
663
|
-
breadcrumbsPrefix: ["response"],
|
|
664
|
-
}));
|
|
665
|
-
case 401:
|
|
666
|
-
throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
|
|
667
|
-
unrecognizedObjectKeys: "passthrough",
|
|
668
|
-
allowUnrecognizedUnionMembers: true,
|
|
669
|
-
allowUnrecognizedEnumValues: true,
|
|
670
|
-
breadcrumbsPrefix: ["response"],
|
|
671
|
-
}));
|
|
672
|
-
case 403:
|
|
673
|
-
throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
|
|
674
|
-
unrecognizedObjectKeys: "passthrough",
|
|
675
|
-
allowUnrecognizedUnionMembers: true,
|
|
676
|
-
allowUnrecognizedEnumValues: true,
|
|
677
|
-
breadcrumbsPrefix: ["response"],
|
|
678
|
-
}));
|
|
679
|
-
case 404:
|
|
680
|
-
throw new Truvity.NotFoundError(_response.error.body);
|
|
681
|
-
case 500:
|
|
682
|
-
throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
|
|
683
|
-
unrecognizedObjectKeys: "passthrough",
|
|
684
|
-
allowUnrecognizedUnionMembers: true,
|
|
685
|
-
allowUnrecognizedEnumValues: true,
|
|
686
|
-
breadcrumbsPrefix: ["response"],
|
|
687
|
-
}));
|
|
688
|
-
default:
|
|
689
|
-
throw new errors.TruvityError({
|
|
690
|
-
statusCode: _response.error.statusCode,
|
|
691
|
-
body: _response.error.body,
|
|
692
|
-
});
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
switch (_response.error.reason) {
|
|
696
|
-
case "non-json":
|
|
697
|
-
throw new errors.TruvityError({
|
|
698
|
-
statusCode: _response.error.statusCode,
|
|
699
|
-
body: _response.error.rawBody,
|
|
700
|
-
});
|
|
701
|
-
case "timeout":
|
|
702
|
-
throw new errors.TruvityTimeoutError();
|
|
703
|
-
case "unknown":
|
|
704
|
-
throw new errors.TruvityError({
|
|
705
|
-
message: _response.error.errorMessage,
|
|
706
|
-
});
|
|
707
|
-
}
|
|
708
|
-
});
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
exports.Owners = Owners;
|