@truvity/sdk 0.28.4 → 0.28.8
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 +2 -0
- package/Client.d.ts.map +1 -1
- package/Client.js.map +1 -1
- package/ExtendedClient.d.ts.map +1 -1
- package/ExtendedClient.js +3 -6
- package/ExtendedClient.js.map +1 -1
- package/api/resources/apiKeys/client/Client.d.ts +39 -10
- package/api/resources/apiKeys/client/Client.d.ts.map +1 -1
- package/api/resources/apiKeys/client/Client.js +183 -30
- package/api/resources/apiKeys/client/Client.js.map +1 -1
- package/api/resources/{drafts/client/requests/DraftCreateRequest.d.ts → apiKeys/client/requests/ApiKeyInput.d.ts} +7 -9
- package/api/resources/apiKeys/client/requests/ApiKeyInput.d.ts.map +1 -0
- package/api/resources/apiKeys/client/requests/ApiKeyInput.js.map +1 -0
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.d.ts +55 -0
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.d.ts.map +1 -0
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.js +6 -0
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.js.map +1 -0
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.d.ts +55 -0
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.d.ts.map +1 -0
- package/api/resources/{drafts/client/requests/DraftUpdateRequest.js → apiKeys/client/requests/ApiKeyUpdateLabelsInput.js} +1 -1
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.js.map +1 -0
- package/api/resources/apiKeys/client/requests/index.d.ts +3 -2
- package/api/resources/apiKeys/client/requests/index.d.ts.map +1 -1
- package/api/resources/apiKeys/client/requests/index.js.map +1 -1
- package/api/resources/credentials/client/Client.d.ts +61 -17
- package/api/resources/credentials/client/Client.d.ts.map +1 -1
- package/api/resources/credentials/client/Client.js +303 -37
- package/api/resources/credentials/client/Client.js.map +1 -1
- package/api/resources/credentials/client/requests/CredentialDownloadRequest.d.ts +0 -6
- package/api/resources/credentials/client/requests/CredentialDownloadRequest.d.ts.map +1 -1
- package/api/resources/credentials/client/requests/CredentialDownloadRequest.js.map +1 -1
- package/api/resources/credentials/client/requests/CredentialInput.d.ts +1 -8
- 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/credentials/client/requests/CredentialLatestRequest.d.ts +1 -3
- package/api/resources/credentials/client/requests/CredentialLatestRequest.d.ts.map +1 -1
- package/api/resources/credentials/client/requests/CredentialLatestRequest.js.map +1 -1
- package/api/resources/credentials/client/requests/CredentialRestoreRequest.d.ts +1 -2
- package/api/resources/credentials/client/requests/CredentialRestoreRequest.d.ts.map +1 -1
- package/api/resources/credentials/client/requests/CredentialRestoreRequest.js.map +1 -1
- package/api/resources/credentials/client/requests/CredentialRevisionRequest.d.ts +1 -3
- package/api/resources/credentials/client/requests/CredentialRevisionRequest.d.ts.map +1 -1
- package/api/resources/credentials/client/requests/CredentialRevisionRequest.js.map +1 -1
- package/api/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.d.ts +55 -0
- package/api/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.d.ts.map +1 -0
- package/api/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.js +6 -0
- package/api/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.js.map +1 -0
- package/api/resources/credentials/client/requests/CredentialUpdateLabelsInput.d.ts +55 -0
- package/api/resources/credentials/client/requests/CredentialUpdateLabelsInput.d.ts.map +1 -0
- package/api/resources/credentials/client/requests/CredentialUpdateLabelsInput.js +6 -0
- package/api/resources/credentials/client/requests/CredentialUpdateLabelsInput.js.map +1 -0
- package/api/resources/credentials/client/requests/index.d.ts +2 -0
- package/api/resources/credentials/client/requests/index.d.ts.map +1 -1
- package/api/resources/credentials/client/requests/index.js.map +1 -1
- package/api/resources/desk/client/Client.d.ts +2 -0
- package/api/resources/desk/client/Client.d.ts.map +1 -1
- package/api/resources/desk/client/Client.js +5 -5
- package/api/resources/desk/client/Client.js.map +1 -1
- package/api/resources/didcommMessages/client/Client.d.ts +56 -0
- package/api/resources/didcommMessages/client/Client.d.ts.map +1 -1
- package/api/resources/didcommMessages/client/Client.js +292 -14
- package/api/resources/didcommMessages/client/Client.js.map +1 -1
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.d.ts +55 -0
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.d.ts.map +1 -0
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.js +6 -0
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.js.map +1 -0
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.d.ts +55 -0
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.d.ts.map +1 -0
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.js +6 -0
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.js.map +1 -0
- package/api/resources/didcommMessages/client/requests/index.d.ts +2 -0
- package/api/resources/didcommMessages/client/requests/index.d.ts.map +1 -1
- package/api/resources/didcommMessages/client/requests/index.js.map +1 -1
- package/api/resources/dids/client/Client.d.ts +2 -0
- package/api/resources/dids/client/Client.d.ts.map +1 -1
- package/api/resources/dids/client/Client.js +2 -2
- package/api/resources/dids/client/Client.js.map +1 -1
- package/api/resources/drafts/client/Client.d.ts +63 -15
- package/api/resources/drafts/client/Client.d.ts.map +1 -1
- package/api/resources/drafts/client/Client.js +321 -37
- package/api/resources/drafts/client/Client.js.map +1 -1
- package/api/resources/drafts/client/requests/DraftExport.d.ts +0 -8
- package/api/resources/drafts/client/requests/DraftExport.d.ts.map +1 -1
- package/api/resources/drafts/client/requests/DraftExport.js.map +1 -1
- package/api/resources/{apiKeys/client/requests/ApiKeyCreateRequest.d.ts → drafts/client/requests/DraftInput.d.ts} +8 -7
- package/api/resources/drafts/client/requests/DraftInput.d.ts.map +1 -0
- package/api/resources/drafts/client/requests/DraftInput.js.map +1 -0
- package/api/resources/drafts/client/requests/DraftIssue.d.ts +1 -5
- 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/DraftUpdateAnnotationsInput.d.ts +55 -0
- package/api/resources/drafts/client/requests/DraftUpdateAnnotationsInput.d.ts.map +1 -0
- package/api/resources/drafts/client/requests/DraftUpdateAnnotationsInput.js +6 -0
- package/api/resources/drafts/client/requests/DraftUpdateAnnotationsInput.js.map +1 -0
- package/api/resources/{apiKeys/client/requests/ApiKeyUpdateRequest.d.ts → drafts/client/requests/DraftUpdateInput.d.ts} +5 -4
- package/api/resources/drafts/client/requests/DraftUpdateInput.d.ts.map +1 -0
- package/api/resources/drafts/client/requests/DraftUpdateInput.js +6 -0
- package/api/resources/drafts/client/requests/DraftUpdateInput.js.map +1 -0
- package/api/resources/drafts/client/requests/DraftUpdateLabelsInput.d.ts +55 -0
- package/api/resources/drafts/client/requests/DraftUpdateLabelsInput.d.ts.map +1 -0
- package/api/resources/{apiKeys/client/requests/ApiKeyCreateRequest.js → drafts/client/requests/DraftUpdateLabelsInput.js} +1 -1
- package/api/resources/drafts/client/requests/DraftUpdateLabelsInput.js.map +1 -0
- package/api/resources/drafts/client/requests/index.d.ts +4 -2
- 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/files/client/Client.d.ts +62 -9
- package/api/resources/files/client/Client.d.ts.map +1 -1
- package/api/resources/files/client/Client.js +327 -31
- package/api/resources/files/client/Client.js.map +1 -1
- package/api/resources/files/client/requests/FileDownloadRequest.d.ts +0 -6
- package/api/resources/files/client/requests/FileDownloadRequest.d.ts.map +1 -1
- package/api/resources/files/client/requests/FileDownloadRequest.js.map +1 -1
- package/api/resources/files/client/requests/{FileCreateRequest.d.ts → FileInput.d.ts} +8 -6
- package/api/resources/files/client/requests/FileInput.d.ts.map +1 -0
- package/api/resources/files/client/requests/FileInput.js.map +1 -0
- package/api/resources/files/client/requests/FileUpdateAnnotationsInput.d.ts +55 -0
- package/api/resources/files/client/requests/FileUpdateAnnotationsInput.d.ts.map +1 -0
- package/api/resources/files/client/requests/FileUpdateAnnotationsInput.js +6 -0
- package/api/resources/files/client/requests/FileUpdateAnnotationsInput.js.map +1 -0
- package/api/resources/files/client/requests/{FileUpdateRequest.d.ts → FileUpdateInput.d.ts} +5 -6
- package/api/resources/files/client/requests/FileUpdateInput.d.ts.map +1 -0
- package/api/resources/{keys/client/requests/KeyInput.js → files/client/requests/FileUpdateInput.js} +1 -1
- package/api/resources/files/client/requests/FileUpdateInput.js.map +1 -0
- package/api/resources/{keys/client/requests/KeyInput.d.ts → files/client/requests/FileUpdateLabelsInput.d.ts} +7 -6
- package/api/resources/files/client/requests/FileUpdateLabelsInput.d.ts.map +1 -0
- package/api/resources/{drafts/client/requests/DraftCreateRequest.js → files/client/requests/FileUpdateLabelsInput.js} +1 -1
- package/api/resources/files/client/requests/FileUpdateLabelsInput.js.map +1 -0
- package/api/resources/files/client/requests/index.d.ts +4 -2
- package/api/resources/files/client/requests/index.d.ts.map +1 -1
- package/api/resources/files/client/requests/index.js.map +1 -1
- package/api/resources/gdpr/client/Client.d.ts +3 -1
- package/api/resources/gdpr/client/Client.d.ts.map +1 -1
- package/api/resources/gdpr/client/Client.js +3 -3
- package/api/resources/gdpr/client/Client.js.map +1 -1
- package/api/resources/gdpr/client/requests/SupportRequest.d.ts +1 -1
- package/api/resources/gdpr/client/requests/SupportRequest.js.map +1 -1
- package/api/resources/keys/client/Client.d.ts +37 -5
- package/api/resources/keys/client/Client.d.ts.map +1 -1
- package/api/resources/keys/client/Client.js +176 -31
- package/api/resources/keys/client/Client.js.map +1 -1
- package/api/resources/keys/client/requests/CredentialSignRequest.d.ts +0 -7
- package/api/resources/keys/client/requests/CredentialSignRequest.d.ts.map +1 -1
- package/api/resources/keys/client/requests/CredentialSignRequest.js.map +1 -1
- package/api/resources/keys/client/requests/DidCommMessageSignRequest.d.ts +0 -7
- package/api/resources/keys/client/requests/DidCommMessageSignRequest.d.ts.map +1 -1
- package/api/resources/keys/client/requests/DidCommMessageSignRequest.js.map +1 -1
- package/api/resources/keys/client/requests/KeyUpdateAnnotationsInput.d.ts +55 -0
- package/api/resources/keys/client/requests/KeyUpdateAnnotationsInput.d.ts.map +1 -0
- package/api/resources/keys/client/requests/KeyUpdateAnnotationsInput.js +6 -0
- package/api/resources/keys/client/requests/{KeyInput.js.map → KeyUpdateAnnotationsInput.js.map} +1 -1
- package/api/resources/{drafts/client/requests/DraftUpdateRequest.d.ts → keys/client/requests/KeyUpdateLabelsInput.d.ts} +6 -6
- package/api/resources/keys/client/requests/KeyUpdateLabelsInput.d.ts.map +1 -0
- package/api/resources/{apiKeys/client/requests/ApiKeyUpdateRequest.js → keys/client/requests/KeyUpdateLabelsInput.js} +1 -1
- package/api/resources/keys/client/requests/KeyUpdateLabelsInput.js.map +1 -0
- package/api/resources/keys/client/requests/PresentationSignRequest.d.ts +0 -7
- package/api/resources/keys/client/requests/PresentationSignRequest.d.ts.map +1 -1
- package/api/resources/keys/client/requests/PresentationSignRequest.js.map +1 -1
- package/api/resources/keys/client/requests/index.d.ts +2 -1
- package/api/resources/keys/client/requests/index.d.ts.map +1 -1
- package/api/resources/keys/client/requests/index.js.map +1 -1
- package/api/resources/presentations/client/Client.d.ts +56 -0
- package/api/resources/presentations/client/Client.d.ts.map +1 -1
- package/api/resources/presentations/client/Client.js +302 -24
- package/api/resources/presentations/client/Client.js.map +1 -1
- package/api/resources/presentations/client/requests/PresentationDownloadRequest.d.ts +0 -6
- package/api/resources/presentations/client/requests/PresentationDownloadRequest.d.ts.map +1 -1
- package/api/resources/presentations/client/requests/PresentationDownloadRequest.js.map +1 -1
- package/api/resources/presentations/client/requests/PresentationExport.d.ts +1 -21
- 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/PresentationIssue.d.ts +1 -14
- 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/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.d.ts +55 -0
- package/api/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.d.ts.map +1 -0
- package/api/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.js +6 -0
- package/api/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.js.map +1 -0
- package/api/resources/presentations/client/requests/PresentationUpdateLabelsInput.d.ts +55 -0
- package/api/resources/presentations/client/requests/PresentationUpdateLabelsInput.d.ts.map +1 -0
- package/api/resources/presentations/client/requests/PresentationUpdateLabelsInput.js +6 -0
- package/api/resources/presentations/client/requests/PresentationUpdateLabelsInput.js.map +1 -0
- package/api/resources/presentations/client/requests/index.d.ts +2 -0
- package/api/resources/presentations/client/requests/index.d.ts.map +1 -1
- package/api/resources/presentations/client/requests/index.js.map +1 -1
- package/api/types/Credential.d.ts +1 -8
- package/api/types/Credential.d.ts.map +1 -1
- package/api/types/Credential.js.map +1 -1
- package/api/types/Credential11.d.ts +1 -8
- package/api/types/Credential11.d.ts.map +1 -1
- package/api/types/Credential11.js.map +1 -1
- package/api/types/FileData.d.ts +2 -0
- package/api/types/FileData.d.ts.map +1 -1
- package/api/types/FileData.js.map +1 -1
- package/api/types/FileFilterData.d.ts +1 -0
- package/api/types/FileFilterData.d.ts.map +1 -1
- package/api/types/FileFilterData.js.map +1 -1
- package/api/types/FileFilterDataContentType.d.ts +1 -7
- package/api/types/FileFilterDataContentType.d.ts.map +1 -1
- package/api/types/FileFilterDataContentType.js.map +1 -1
- package/api/types/FileFilterDataFilename.d.ts +1 -7
- package/api/types/FileFilterDataFilename.d.ts.map +1 -1
- package/api/types/FileFilterDataFilename.js.map +1 -1
- package/api/types/FileFilterDataFilesize.d.ts +1 -7
- package/api/types/FileFilterDataFilesize.d.ts.map +1 -1
- package/api/types/FileFilterDataFilesize.js.map +1 -1
- package/api/types/FileFilterDataId.d.ts +20 -0
- package/api/types/FileFilterDataId.d.ts.map +1 -0
- package/api/types/FileFilterDataId.js +6 -0
- package/api/types/FileFilterDataId.js.map +1 -0
- package/api/types/FileFilterDataMultihash.d.ts +1 -7
- package/api/types/FileFilterDataMultihash.d.ts.map +1 -1
- package/api/types/FileFilterDataMultihash.js.map +1 -1
- package/api/types/FileSortField.d.ts +2 -1
- package/api/types/FileSortField.d.ts.map +1 -1
- package/api/types/FileSortField.js +1 -0
- package/api/types/FileSortField.js.map +1 -1
- package/api/types/File_.d.ts +7 -5
- package/api/types/File_.d.ts.map +1 -1
- package/api/types/File_.js.map +1 -1
- package/api/types/Presentation.d.ts +1 -8
- package/api/types/Presentation.d.ts.map +1 -1
- package/api/types/Presentation.js.map +1 -1
- package/api/types/ProblemPreconditionFailedResource.d.ts +1 -1
- package/api/types/ProblemPreconditionFailedResource.js.map +1 -1
- package/api/types/index.d.ts +1 -7
- package/api/types/index.d.ts.map +1 -1
- package/api/types/index.js +1 -7
- package/api/types/index.js.map +1 -1
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/Fetcher.d.ts.map +1 -1
- package/core/fetcher/Fetcher.js.map +1 -1
- package/core/fetcher/getResponseBody.d.ts.map +1 -1
- package/core/fetcher/getResponseBody.js +3 -0
- package/core/fetcher/getResponseBody.js.map +1 -1
- package/core/fetcher/requestWithRetries.d.ts.map +1 -1
- package/core/fetcher/requestWithRetries.js +13 -4
- package/core/fetcher/requestWithRetries.js.map +1 -1
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +1 -2
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts.map +1 -1
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +4 -2
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js.map +1 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts.map +1 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js.map +1 -1
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts.map +1 -1
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +4 -2
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js.map +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js.map +1 -1
- package/core/schemas/Schema.d.ts +1 -0
- package/core/schemas/Schema.d.ts.map +1 -1
- package/core/schemas/Schema.js +1 -0
- package/core/schemas/Schema.js.map +1 -1
- package/core/schemas/builders/bigint/bigint.d.ts +3 -0
- package/core/schemas/builders/bigint/bigint.d.ts.map +1 -0
- package/core/schemas/builders/bigint/bigint.js +51 -0
- package/core/schemas/builders/bigint/bigint.js.map +1 -0
- package/core/schemas/builders/bigint/index.d.ts +2 -0
- package/core/schemas/builders/bigint/index.d.ts.map +1 -0
- package/core/schemas/builders/bigint/index.js +6 -0
- package/core/schemas/builders/bigint/index.js.map +1 -0
- package/core/schemas/builders/index.d.ts +1 -0
- package/core/schemas/builders/index.d.ts.map +1 -1
- package/core/schemas/builders/index.js +1 -0
- package/core/schemas/builders/index.js.map +1 -1
- package/core/schemas/builders/object/object.d.ts.map +1 -1
- package/core/schemas/builders/object/object.js +28 -0
- package/core/schemas/builders/object/object.js.map +1 -1
- package/core/schemas/builders/object/types.d.ts +5 -0
- package/core/schemas/builders/object/types.d.ts.map +1 -1
- package/core/schemas/builders/object/types.js.map +1 -1
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js.map +1 -1
- package/documents/credential/baseVerifiableCredential.d.ts +3 -1
- package/documents/credential/baseVerifiableCredential.d.ts.map +1 -1
- package/documents/credential/baseVerifiableCredential.js +32 -4
- package/documents/credential/baseVerifiableCredential.js.map +1 -1
- package/documents/credential/document.d.ts +1 -1
- package/documents/credential/document.d.ts.map +1 -1
- package/documents/credential/document.js +2 -2
- package/documents/credential/document.js.map +1 -1
- package/documents/credential/document.spec.d.ts +1 -1
- package/documents/credential/document.spec.d.ts.map +1 -1
- package/documents/credential/document.spec.js +4 -3
- package/documents/credential/document.spec.js.map +1 -1
- package/documents/credential/draft.d.ts +4 -2
- package/documents/credential/draft.d.ts.map +1 -1
- package/documents/credential/draft.js +42 -10
- package/documents/credential/draft.js.map +1 -1
- package/documents/credential/flavor.spec.js +3 -3
- package/documents/credential/flavor.spec.js.map +1 -1
- package/documents/credential/issued.d.ts +4 -2
- package/documents/credential/issued.d.ts.map +1 -1
- package/documents/credential/issued.js +28 -4
- package/documents/credential/issued.js.map +1 -1
- package/documents/credential/unknown.d.ts +2 -1
- package/documents/credential/unknown.d.ts.map +1 -1
- package/documents/credential/unknown.js +2 -2
- package/documents/credential/unknown.js.map +1 -1
- package/documents/credential.d.ts +4 -2
- package/documents/credential.d.ts.map +1 -1
- package/documents/credential.js +20 -17
- package/documents/credential.js.map +1 -1
- package/documents/models.d.ts +3 -1
- package/documents/models.d.ts.map +1 -1
- package/documents/models.js +86 -39
- package/documents/models.js.map +1 -1
- package/documents/presentation/issued.d.ts +1 -1
- package/documents/presentation/issued.d.ts.map +1 -1
- package/documents/presentation/issued.js +2 -2
- package/documents/presentation/issued.js.map +1 -1
- package/documents/presentation.d.ts +3 -1
- package/documents/presentation.d.ts.map +1 -1
- package/documents/presentation.js +2 -2
- package/documents/presentation.js.map +1 -1
- package/documents/types.d.ts +3 -0
- package/documents/types.d.ts.map +1 -1
- package/documents/types.js +3 -0
- package/documents/types.js.map +1 -1
- package/errors/TruvityTimeoutError.d.ts +1 -1
- package/errors/TruvityTimeoutError.d.ts.map +1 -1
- package/errors/TruvityTimeoutError.js +2 -2
- package/errors/TruvityTimeoutError.js.map +1 -1
- package/package.json +8 -4
- package/reference.md +740 -436
- package/serialization/resources/{keys/client/requests/KeyInput.d.ts → apiKeys/client/requests/ApiKeyInput.d.ts} +3 -3
- package/serialization/resources/apiKeys/client/requests/ApiKeyInput.d.ts.map +1 -0
- package/serialization/{types → resources/apiKeys/client/requests}/ApiKeyInput.js +1 -1
- package/serialization/resources/apiKeys/client/requests/ApiKeyInput.js.map +1 -0
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.d.ts +13 -0
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.d.ts.map +1 -0
- package/serialization/resources/{keys/client/requests/KeyInput.js → apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.js} +4 -5
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.js.map +1 -0
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.d.ts +13 -0
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.d.ts.map +1 -0
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.js +34 -0
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.js.map +1 -0
- package/serialization/resources/apiKeys/client/requests/index.d.ts +3 -0
- package/serialization/resources/apiKeys/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/apiKeys/client/requests/index.js +7 -1
- package/serialization/resources/apiKeys/client/requests/index.js.map +1 -1
- package/serialization/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.d.ts +13 -0
- package/serialization/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.d.ts.map +1 -0
- package/serialization/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.js +34 -0
- package/serialization/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.js.map +1 -0
- package/serialization/resources/credentials/client/requests/CredentialUpdateLabelsInput.d.ts +13 -0
- package/serialization/resources/credentials/client/requests/CredentialUpdateLabelsInput.d.ts.map +1 -0
- package/serialization/resources/credentials/client/requests/CredentialUpdateLabelsInput.js +34 -0
- package/serialization/resources/credentials/client/requests/CredentialUpdateLabelsInput.js.map +1 -0
- package/serialization/resources/credentials/client/requests/index.d.ts +2 -0
- package/serialization/resources/credentials/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/credentials/client/requests/index.js +5 -1
- package/serialization/resources/credentials/client/requests/index.js.map +1 -1
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.d.ts +13 -0
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.d.ts.map +1 -0
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.js +34 -0
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.js.map +1 -0
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.d.ts +13 -0
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.d.ts.map +1 -0
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.js +34 -0
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.js.map +1 -0
- package/serialization/resources/didcommMessages/client/requests/index.d.ts +2 -0
- package/serialization/resources/didcommMessages/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/didcommMessages/client/requests/index.js +5 -1
- package/serialization/resources/didcommMessages/client/requests/index.js.map +1 -1
- package/serialization/resources/drafts/client/requests/DraftInput.d.ts +16 -0
- package/serialization/resources/drafts/client/requests/DraftInput.d.ts.map +1 -0
- package/serialization/{types → resources/drafts/client/requests}/DraftInput.js +2 -2
- package/serialization/resources/drafts/client/requests/DraftInput.js.map +1 -0
- package/serialization/resources/drafts/client/requests/DraftUpdateAnnotationsInput.d.ts +13 -0
- package/serialization/resources/drafts/client/requests/DraftUpdateAnnotationsInput.d.ts.map +1 -0
- package/serialization/resources/drafts/client/requests/DraftUpdateAnnotationsInput.js +34 -0
- package/serialization/resources/drafts/client/requests/DraftUpdateAnnotationsInput.js.map +1 -0
- package/serialization/resources/drafts/client/requests/DraftUpdateInput.d.ts +14 -0
- package/serialization/resources/drafts/client/requests/DraftUpdateInput.d.ts.map +1 -0
- package/serialization/{types/IsNotNullFilesize.js → resources/drafts/client/requests/DraftUpdateInput.js} +7 -4
- package/serialization/resources/drafts/client/requests/DraftUpdateInput.js.map +1 -0
- package/serialization/resources/drafts/client/requests/DraftUpdateLabelsInput.d.ts +13 -0
- package/serialization/resources/drafts/client/requests/DraftUpdateLabelsInput.d.ts.map +1 -0
- package/serialization/resources/drafts/client/requests/DraftUpdateLabelsInput.js +34 -0
- package/serialization/resources/drafts/client/requests/DraftUpdateLabelsInput.js.map +1 -0
- package/serialization/resources/drafts/client/requests/index.d.ts +4 -0
- package/serialization/resources/drafts/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/drafts/client/requests/index.js +9 -1
- package/serialization/resources/drafts/client/requests/index.js.map +1 -1
- package/serialization/resources/files/client/requests/FileInput.d.ts +16 -0
- package/serialization/resources/files/client/requests/FileInput.d.ts.map +1 -0
- package/serialization/{types → resources/files/client/requests}/FileInput.js +2 -2
- package/serialization/resources/files/client/requests/FileInput.js.map +1 -0
- package/serialization/resources/files/client/requests/FileUpdateAnnotationsInput.d.ts +13 -0
- package/serialization/resources/files/client/requests/FileUpdateAnnotationsInput.d.ts.map +1 -0
- package/serialization/resources/files/client/requests/FileUpdateAnnotationsInput.js +34 -0
- package/serialization/resources/files/client/requests/FileUpdateAnnotationsInput.js.map +1 -0
- package/serialization/resources/files/client/requests/FileUpdateInput.d.ts +14 -0
- package/serialization/resources/files/client/requests/FileUpdateInput.d.ts.map +1 -0
- package/serialization/{types/IsNullFilesize.js → resources/files/client/requests/FileUpdateInput.js} +7 -4
- package/serialization/resources/files/client/requests/FileUpdateInput.js.map +1 -0
- package/serialization/resources/files/client/requests/FileUpdateLabelsInput.d.ts +13 -0
- package/serialization/resources/files/client/requests/FileUpdateLabelsInput.d.ts.map +1 -0
- package/serialization/resources/files/client/requests/FileUpdateLabelsInput.js +34 -0
- package/serialization/resources/files/client/requests/FileUpdateLabelsInput.js.map +1 -0
- package/serialization/resources/files/client/requests/index.d.ts +4 -0
- package/serialization/resources/files/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/files/client/requests/index.js +9 -1
- package/serialization/resources/files/client/requests/index.js.map +1 -1
- package/serialization/resources/keys/client/requests/KeyUpdateAnnotationsInput.d.ts +13 -0
- package/serialization/resources/keys/client/requests/KeyUpdateAnnotationsInput.d.ts.map +1 -0
- package/serialization/resources/keys/client/requests/KeyUpdateAnnotationsInput.js +34 -0
- package/serialization/resources/keys/client/requests/KeyUpdateAnnotationsInput.js.map +1 -0
- package/serialization/resources/keys/client/requests/KeyUpdateLabelsInput.d.ts +13 -0
- package/serialization/resources/keys/client/requests/KeyUpdateLabelsInput.d.ts.map +1 -0
- package/serialization/resources/keys/client/requests/KeyUpdateLabelsInput.js +34 -0
- package/serialization/resources/keys/client/requests/KeyUpdateLabelsInput.js.map +1 -0
- package/serialization/resources/keys/client/requests/index.d.ts +2 -1
- package/serialization/resources/keys/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/keys/client/requests/index.js +5 -3
- package/serialization/resources/keys/client/requests/index.js.map +1 -1
- package/serialization/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.d.ts +13 -0
- package/serialization/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.d.ts.map +1 -0
- package/serialization/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.js +34 -0
- package/serialization/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.js.map +1 -0
- package/serialization/resources/presentations/client/requests/PresentationUpdateLabelsInput.d.ts +13 -0
- package/serialization/resources/presentations/client/requests/PresentationUpdateLabelsInput.d.ts.map +1 -0
- package/serialization/resources/presentations/client/requests/PresentationUpdateLabelsInput.js +34 -0
- package/serialization/resources/presentations/client/requests/PresentationUpdateLabelsInput.js.map +1 -0
- package/serialization/resources/presentations/client/requests/index.d.ts +2 -0
- package/serialization/resources/presentations/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/presentations/client/requests/index.js +5 -1
- package/serialization/resources/presentations/client/requests/index.js.map +1 -1
- package/serialization/types/FileData.d.ts +1 -0
- package/serialization/types/FileData.d.ts.map +1 -1
- package/serialization/types/FileData.js +1 -0
- package/serialization/types/FileData.js.map +1 -1
- package/serialization/types/FileFilterData.d.ts +2 -0
- package/serialization/types/FileFilterData.d.ts.map +1 -1
- package/serialization/types/FileFilterData.js +2 -0
- package/serialization/types/FileFilterData.js.map +1 -1
- package/serialization/types/FileFilterDataContentType.d.ts +1 -9
- package/serialization/types/FileFilterDataContentType.d.ts.map +1 -1
- package/serialization/types/FileFilterDataContentType.js +0 -4
- package/serialization/types/FileFilterDataContentType.js.map +1 -1
- package/serialization/types/FileFilterDataFilename.d.ts +1 -9
- package/serialization/types/FileFilterDataFilename.d.ts.map +1 -1
- package/serialization/types/FileFilterDataFilename.js +0 -4
- package/serialization/types/FileFilterDataFilename.js.map +1 -1
- package/serialization/types/FileFilterDataFilesize.d.ts +1 -9
- package/serialization/types/FileFilterDataFilesize.d.ts.map +1 -1
- package/serialization/types/FileFilterDataFilesize.js +0 -4
- package/serialization/types/FileFilterDataFilesize.js.map +1 -1
- package/serialization/types/FileFilterDataId.d.ts +27 -0
- package/serialization/types/FileFilterDataId.d.ts.map +1 -0
- package/serialization/types/{NotModifiedProblems.js → FileFilterDataId.js} +12 -6
- package/serialization/types/FileFilterDataId.js.map +1 -0
- package/serialization/types/FileFilterDataMultihash.d.ts +1 -9
- package/serialization/types/FileFilterDataMultihash.d.ts.map +1 -1
- package/serialization/types/FileFilterDataMultihash.js +0 -4
- package/serialization/types/FileFilterDataMultihash.js.map +1 -1
- package/serialization/types/FileSortField.d.ts +1 -1
- package/serialization/types/FileSortField.d.ts.map +1 -1
- package/serialization/types/FileSortField.js +1 -0
- package/serialization/types/FileSortField.js.map +1 -1
- package/serialization/types/File_.d.ts +5 -4
- package/serialization/types/File_.d.ts.map +1 -1
- package/serialization/types/File_.js +5 -4
- package/serialization/types/File_.js.map +1 -1
- package/serialization/types/index.d.ts +1 -7
- package/serialization/types/index.d.ts.map +1 -1
- package/serialization/types/index.js +1 -7
- package/serialization/types/index.js.map +1 -1
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.d.ts.map +0 -1
- package/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.js.map +0 -1
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.d.ts.map +0 -1
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.js.map +0 -1
- package/api/resources/drafts/client/requests/DraftCreateRequest.d.ts.map +0 -1
- package/api/resources/drafts/client/requests/DraftCreateRequest.js.map +0 -1
- package/api/resources/drafts/client/requests/DraftUpdateRequest.d.ts.map +0 -1
- package/api/resources/drafts/client/requests/DraftUpdateRequest.js.map +0 -1
- package/api/resources/files/client/requests/FileCreateRequest.d.ts.map +0 -1
- package/api/resources/files/client/requests/FileCreateRequest.js +0 -6
- package/api/resources/files/client/requests/FileCreateRequest.js.map +0 -1
- package/api/resources/files/client/requests/FileUpdateRequest.d.ts.map +0 -1
- package/api/resources/files/client/requests/FileUpdateRequest.js +0 -6
- package/api/resources/files/client/requests/FileUpdateRequest.js.map +0 -1
- package/api/resources/keys/client/requests/KeyInput.d.ts.map +0 -1
- package/api/types/ApiKeyInput.d.ts +0 -13
- package/api/types/ApiKeyInput.d.ts.map +0 -1
- package/api/types/ApiKeyInput.js.map +0 -1
- package/api/types/DraftInput.d.ts +0 -15
- package/api/types/DraftInput.d.ts.map +0 -1
- package/api/types/DraftInput.js.map +0 -1
- package/api/types/FileInput.d.ts +0 -15
- package/api/types/FileInput.d.ts.map +0 -1
- package/api/types/FileInput.js.map +0 -1
- package/api/types/IsNotNullFilesize.d.ts +0 -9
- package/api/types/IsNotNullFilesize.d.ts.map +0 -1
- package/api/types/IsNotNullFilesize.js +0 -6
- package/api/types/IsNotNullFilesize.js.map +0 -1
- package/api/types/IsNullFilesize.d.ts +0 -9
- package/api/types/IsNullFilesize.d.ts.map +0 -1
- package/api/types/IsNullFilesize.js +0 -6
- package/api/types/IsNullFilesize.js.map +0 -1
- package/api/types/NotModifiedProblems.d.ts +0 -14
- package/api/types/NotModifiedProblems.d.ts.map +0 -1
- package/api/types/NotModifiedProblems.js +0 -6
- package/api/types/NotModifiedProblems.js.map +0 -1
- package/api/types/ProblemNotModified.d.ts +0 -20
- package/api/types/ProblemNotModified.d.ts.map +0 -1
- package/api/types/ProblemNotModified.js +0 -6
- package/api/types/ProblemNotModified.js.map +0 -1
- package/documents/credential/index.d.ts +0 -7
- package/documents/credential/index.d.ts.map +0 -1
- package/documents/credential/index.js +0 -23
- package/documents/credential/index.js.map +0 -1
- package/serialization/resources/keys/client/requests/KeyInput.d.ts.map +0 -1
- package/serialization/resources/keys/client/requests/KeyInput.js.map +0 -1
- package/serialization/types/ApiKeyInput.d.ts +0 -14
- package/serialization/types/ApiKeyInput.d.ts.map +0 -1
- package/serialization/types/ApiKeyInput.js.map +0 -1
- package/serialization/types/DraftInput.d.ts +0 -16
- package/serialization/types/DraftInput.d.ts.map +0 -1
- package/serialization/types/DraftInput.js.map +0 -1
- package/serialization/types/FileInput.d.ts +0 -16
- package/serialization/types/FileInput.d.ts.map +0 -1
- package/serialization/types/FileInput.js.map +0 -1
- package/serialization/types/IsNotNullFilesize.d.ts +0 -12
- package/serialization/types/IsNotNullFilesize.d.ts.map +0 -1
- package/serialization/types/IsNotNullFilesize.js.map +0 -1
- package/serialization/types/IsNullFilesize.d.ts +0 -12
- package/serialization/types/IsNullFilesize.d.ts.map +0 -1
- package/serialization/types/IsNullFilesize.js.map +0 -1
- package/serialization/types/NotModifiedProblems.d.ts +0 -15
- package/serialization/types/NotModifiedProblems.d.ts.map +0 -1
- package/serialization/types/NotModifiedProblems.js.map +0 -1
- package/serialization/types/ProblemNotModified.d.ts +0 -18
- package/serialization/types/ProblemNotModified.d.ts.map +0 -1
- package/serialization/types/ProblemNotModified.js +0 -39
- package/serialization/types/ProblemNotModified.js.map +0 -1
- /package/api/{types → resources/apiKeys/client/requests}/ApiKeyInput.js +0 -0
- /package/api/{types → resources/drafts/client/requests}/DraftInput.js +0 -0
- /package/api/{types → resources/files/client/requests}/FileInput.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialInput.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialInput.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {\n *
|
|
1
|
+
{"version":3,"file":"CredentialInput.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialInput.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {\n * blobId: \"blob_id\"\n * }\n */\nexport interface CredentialInput {\n /**\n * The primary and unique identifier of the resource (inside tenant)\n * according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).\n */\n blobId: string;\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **Idempotency-Key** is a free identifier created by the client to\n * identify a request. It is used by the service to identify repeated request\n * to ensure idempotent behavior by sending the same (or a similar) response\n * without executing the request a second time.\n *\n * Clients should be careful as any subsequent requests with the same key may\n * return the same response without further check. Thus, it is recommended to\n * use a UUID version 4 (random) or any other random string with enough\n * entropy to avoid collisions.\n *\n * Keys expire after 24 hours. Clients are responsible to stay within this\n * limit, if they require idempotent behavior.\n *\n * See [API Guideline Rule #181][api-230] for further details.\n *\n * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.\n */\n idempotencyKey?: string;\n /** The annotations of the resource. */\n annotations?: Record<string, string>;\n /** The labels of the resource. */\n labels?: Record<string, string>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialLatestRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialLatestRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH
|
|
1
|
+
{"version":3,"file":"CredentialLatestRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialLatestRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialLatestRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialLatestRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {
|
|
1
|
+
{"version":3,"file":"CredentialLatestRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialLatestRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {}\n */\nexport interface CredentialLatestRequest {\n /**\n * The ETag of the latest version of the resource.\n */\n ifNoneMatch?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialRestoreRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialRestoreRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH
|
|
1
|
+
{"version":3,"file":"CredentialRestoreRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialRestoreRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;;;;;;;;;;;;;;;OAkBG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialRestoreRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialRestoreRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {\n *
|
|
1
|
+
{"version":3,"file":"CredentialRestoreRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialRestoreRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {\n * ifMatch: \"If-Match\"\n * }\n */\nexport interface CredentialRestoreRequest {\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **Idempotency-Key** is a free identifier created by the client to\n * identify a request. It is used by the service to identify repeated request\n * to ensure idempotent behavior by sending the same (or a similar) response\n * without executing the request a second time.\n *\n * Clients should be careful as any subsequent requests with the same key may\n * return the same response without further check. Thus, it is recommended to\n * use a UUID version 4 (random) or any other random string with enough\n * entropy to avoid collisions.\n *\n * Keys expire after 24 hours. Clients are responsible to stay within this\n * limit, if they require idempotent behavior.\n *\n * See [API Guideline Rule #181][api-230] for further details.\n *\n * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.\n */\n idempotencyKey?: string;\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **If-Match** header field is used to declare a list of identifiers that\n * are required to match the current resource version identifier in at least\n * one position as a pre-condition for executing the request on the server\n * side. This behavior is used to validate and reject optimistic updates, by\n * checking if the resource version a consumer has based his changes on is\n * outdated on arrival of the change request to prevent lost updates.\n *\n * If the pre-condition fails the server will respond with status code **412**\n * (Precondition Failed). See [RFC 9110 Section 13.1.1][rfc-9110-13.1.1] as\n * well as [API Guideline Rule #182][api-182] for further details.\n *\n * [rfc-9110-13.1.1]: https://tools.ietf.org/html/rfc9110#section-13.1.1\n *\n * [api-182]: <https://opensource.zalando.com/restful-api-guidelines/#182>.\n */\n ifMatch: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialRevisionRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialRevisionRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH
|
|
1
|
+
{"version":3,"file":"CredentialRevisionRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialRevisionRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialRevisionRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialRevisionRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {
|
|
1
|
+
{"version":3,"file":"CredentialRevisionRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialRevisionRequest.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {}\n */\nexport interface CredentialRevisionRequest {\n /**\n * The ETag of the latest version of the resource.\n */\n ifNoneMatch?: string;\n}\n"]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* ifMatch: "If-Match",
|
|
8
|
+
* annotations: {
|
|
9
|
+
* "key": "value"
|
|
10
|
+
* }
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface CredentialUpdateAnnotationsInput {
|
|
14
|
+
/**
|
|
15
|
+
* From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).
|
|
16
|
+
* The **Idempotency-Key** is a free identifier created by the client to
|
|
17
|
+
* identify a request. It is used by the service to identify repeated request
|
|
18
|
+
* to ensure idempotent behavior by sending the same (or a similar) response
|
|
19
|
+
* without executing the request a second time.
|
|
20
|
+
*
|
|
21
|
+
* Clients should be careful as any subsequent requests with the same key may
|
|
22
|
+
* return the same response without further check. Thus, it is recommended to
|
|
23
|
+
* use a UUID version 4 (random) or any other random string with enough
|
|
24
|
+
* entropy to avoid collisions.
|
|
25
|
+
*
|
|
26
|
+
* Keys expire after 24 hours. Clients are responsible to stay within this
|
|
27
|
+
* limit, if they require idempotent behavior.
|
|
28
|
+
*
|
|
29
|
+
* See [API Guideline Rule #181][api-230] for further details.
|
|
30
|
+
*
|
|
31
|
+
* [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.
|
|
32
|
+
*/
|
|
33
|
+
idempotencyKey?: string;
|
|
34
|
+
/**
|
|
35
|
+
* From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).
|
|
36
|
+
* The **If-Match** header field is used to declare a list of identifiers that
|
|
37
|
+
* are required to match the current resource version identifier in at least
|
|
38
|
+
* one position as a pre-condition for executing the request on the server
|
|
39
|
+
* side. This behavior is used to validate and reject optimistic updates, by
|
|
40
|
+
* checking if the resource version a consumer has based his changes on is
|
|
41
|
+
* outdated on arrival of the change request to prevent lost updates.
|
|
42
|
+
*
|
|
43
|
+
* If the pre-condition fails the server will respond with status code **412**
|
|
44
|
+
* (Precondition Failed). See [RFC 9110 Section 13.1.1][rfc-9110-13.1.1] as
|
|
45
|
+
* well as [API Guideline Rule #182][api-182] for further details.
|
|
46
|
+
*
|
|
47
|
+
* [rfc-9110-13.1.1]: https://tools.ietf.org/html/rfc9110#section-13.1.1
|
|
48
|
+
*
|
|
49
|
+
* [api-182]: <https://opensource.zalando.com/restful-api-guidelines/#182>.
|
|
50
|
+
*/
|
|
51
|
+
ifMatch: string;
|
|
52
|
+
/** The annotations of the resource. */
|
|
53
|
+
annotations: Record<string, string>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=CredentialUpdateAnnotationsInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialUpdateAnnotationsInput.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;GAQG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;;;;;;;;;;;;;;;OAkBG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialUpdateAnnotationsInput.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {\n * ifMatch: \"If-Match\",\n * annotations: {\n * \"key\": \"value\"\n * }\n * }\n */\nexport interface CredentialUpdateAnnotationsInput {\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **Idempotency-Key** is a free identifier created by the client to\n * identify a request. It is used by the service to identify repeated request\n * to ensure idempotent behavior by sending the same (or a similar) response\n * without executing the request a second time.\n *\n * Clients should be careful as any subsequent requests with the same key may\n * return the same response without further check. Thus, it is recommended to\n * use a UUID version 4 (random) or any other random string with enough\n * entropy to avoid collisions.\n *\n * Keys expire after 24 hours. Clients are responsible to stay within this\n * limit, if they require idempotent behavior.\n *\n * See [API Guideline Rule #181][api-230] for further details.\n *\n * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.\n */\n idempotencyKey?: string;\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **If-Match** header field is used to declare a list of identifiers that\n * are required to match the current resource version identifier in at least\n * one position as a pre-condition for executing the request on the server\n * side. This behavior is used to validate and reject optimistic updates, by\n * checking if the resource version a consumer has based his changes on is\n * outdated on arrival of the change request to prevent lost updates.\n *\n * If the pre-condition fails the server will respond with status code **412**\n * (Precondition Failed). See [RFC 9110 Section 13.1.1][rfc-9110-13.1.1] as\n * well as [API Guideline Rule #182][api-182] for further details.\n *\n * [rfc-9110-13.1.1]: https://tools.ietf.org/html/rfc9110#section-13.1.1\n *\n * [api-182]: <https://opensource.zalando.com/restful-api-guidelines/#182>.\n */\n ifMatch: string;\n /** The annotations of the resource. */\n annotations: Record<string, string>;\n}\n"]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* ifMatch: "If-Match",
|
|
8
|
+
* labels: {
|
|
9
|
+
* "key": "value"
|
|
10
|
+
* }
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface CredentialUpdateLabelsInput {
|
|
14
|
+
/**
|
|
15
|
+
* From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).
|
|
16
|
+
* The **Idempotency-Key** is a free identifier created by the client to
|
|
17
|
+
* identify a request. It is used by the service to identify repeated request
|
|
18
|
+
* to ensure idempotent behavior by sending the same (or a similar) response
|
|
19
|
+
* without executing the request a second time.
|
|
20
|
+
*
|
|
21
|
+
* Clients should be careful as any subsequent requests with the same key may
|
|
22
|
+
* return the same response without further check. Thus, it is recommended to
|
|
23
|
+
* use a UUID version 4 (random) or any other random string with enough
|
|
24
|
+
* entropy to avoid collisions.
|
|
25
|
+
*
|
|
26
|
+
* Keys expire after 24 hours. Clients are responsible to stay within this
|
|
27
|
+
* limit, if they require idempotent behavior.
|
|
28
|
+
*
|
|
29
|
+
* See [API Guideline Rule #181][api-230] for further details.
|
|
30
|
+
*
|
|
31
|
+
* [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.
|
|
32
|
+
*/
|
|
33
|
+
idempotencyKey?: string;
|
|
34
|
+
/**
|
|
35
|
+
* From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).
|
|
36
|
+
* The **If-Match** header field is used to declare a list of identifiers that
|
|
37
|
+
* are required to match the current resource version identifier in at least
|
|
38
|
+
* one position as a pre-condition for executing the request on the server
|
|
39
|
+
* side. This behavior is used to validate and reject optimistic updates, by
|
|
40
|
+
* checking if the resource version a consumer has based his changes on is
|
|
41
|
+
* outdated on arrival of the change request to prevent lost updates.
|
|
42
|
+
*
|
|
43
|
+
* If the pre-condition fails the server will respond with status code **412**
|
|
44
|
+
* (Precondition Failed). See [RFC 9110 Section 13.1.1][rfc-9110-13.1.1] as
|
|
45
|
+
* well as [API Guideline Rule #182][api-182] for further details.
|
|
46
|
+
*
|
|
47
|
+
* [rfc-9110-13.1.1]: https://tools.ietf.org/html/rfc9110#section-13.1.1
|
|
48
|
+
*
|
|
49
|
+
* [api-182]: <https://opensource.zalando.com/restful-api-guidelines/#182>.
|
|
50
|
+
*/
|
|
51
|
+
ifMatch: string;
|
|
52
|
+
/** The labels of the resource. */
|
|
53
|
+
labels: Record<string, string>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=CredentialUpdateLabelsInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialUpdateLabelsInput.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialUpdateLabelsInput.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;GAQG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;;;;;;;;;;;;;;;OAkBG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialUpdateLabelsInput.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/CredentialUpdateLabelsInput.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\n/**\n * @example\n * {\n * ifMatch: \"If-Match\",\n * labels: {\n * \"key\": \"value\"\n * }\n * }\n */\nexport interface CredentialUpdateLabelsInput {\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **Idempotency-Key** is a free identifier created by the client to\n * identify a request. It is used by the service to identify repeated request\n * to ensure idempotent behavior by sending the same (or a similar) response\n * without executing the request a second time.\n *\n * Clients should be careful as any subsequent requests with the same key may\n * return the same response without further check. Thus, it is recommended to\n * use a UUID version 4 (random) or any other random string with enough\n * entropy to avoid collisions.\n *\n * Keys expire after 24 hours. Clients are responsible to stay within this\n * limit, if they require idempotent behavior.\n *\n * See [API Guideline Rule #181][api-230] for further details.\n *\n * [api-230]: <https://opensource.zalando.com/restful-api-guidelines/#230>.\n */\n idempotencyKey?: string;\n /**\n * From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).\n * The **If-Match** header field is used to declare a list of identifiers that\n * are required to match the current resource version identifier in at least\n * one position as a pre-condition for executing the request on the server\n * side. This behavior is used to validate and reject optimistic updates, by\n * checking if the resource version a consumer has based his changes on is\n * outdated on arrival of the change request to prevent lost updates.\n *\n * If the pre-condition fails the server will respond with status code **412**\n * (Precondition Failed). See [RFC 9110 Section 13.1.1][rfc-9110-13.1.1] as\n * well as [API Guideline Rule #182][api-182] for further details.\n *\n * [rfc-9110-13.1.1]: https://tools.ietf.org/html/rfc9110#section-13.1.1\n *\n * [api-182]: <https://opensource.zalando.com/restful-api-guidelines/#182>.\n */\n ifMatch: string;\n /** The labels of the resource. */\n labels: Record<string, string>;\n}\n"]}
|
|
@@ -3,6 +3,8 @@ export { type CredentialSearchRequest } from './CredentialSearchRequest';
|
|
|
3
3
|
export { type CredentialUploadRequest } from './CredentialUploadRequest';
|
|
4
4
|
export { type CredentialLatestRequest } from './CredentialLatestRequest';
|
|
5
5
|
export { type CredentialDeleteRequest } from './CredentialDeleteRequest';
|
|
6
|
+
export { type CredentialUpdateAnnotationsInput } from './CredentialUpdateAnnotationsInput';
|
|
7
|
+
export { type CredentialUpdateLabelsInput } from './CredentialUpdateLabelsInput';
|
|
6
8
|
export { type CredentialRestoreRequest } from './CredentialRestoreRequest';
|
|
7
9
|
export { type CredentialHistoryRequest } from './CredentialHistoryRequest';
|
|
8
10
|
export { type CredentialRevisionRequest } from './CredentialRevisionRequest';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type CredentialInput } from './CredentialInput';\nexport { type CredentialSearchRequest } from './CredentialSearchRequest';\nexport { type CredentialUploadRequest } from './CredentialUploadRequest';\nexport { type CredentialLatestRequest } from './CredentialLatestRequest';\nexport { type CredentialDeleteRequest } from './CredentialDeleteRequest';\nexport { type CredentialRestoreRequest } from './CredentialRestoreRequest';\nexport { type CredentialHistoryRequest } from './CredentialHistoryRequest';\nexport { type CredentialRevisionRequest } from './CredentialRevisionRequest';\nexport { type CredentialDownloadRequest } from './CredentialDownloadRequest';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/resources/credentials/client/requests/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type CredentialInput } from './CredentialInput';\nexport { type CredentialSearchRequest } from './CredentialSearchRequest';\nexport { type CredentialUploadRequest } from './CredentialUploadRequest';\nexport { type CredentialLatestRequest } from './CredentialLatestRequest';\nexport { type CredentialDeleteRequest } from './CredentialDeleteRequest';\nexport { type CredentialUpdateAnnotationsInput } from './CredentialUpdateAnnotationsInput';\nexport { type CredentialUpdateLabelsInput } from './CredentialUpdateLabelsInput';\nexport { type CredentialRestoreRequest } from './CredentialRestoreRequest';\nexport { type CredentialHistoryRequest } from './CredentialHistoryRequest';\nexport { type CredentialRevisionRequest } from './CredentialRevisionRequest';\nexport { type CredentialDownloadRequest } from './CredentialDownloadRequest';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/desk/client/Client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAK1C,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC1B,UAAU,OAAO;QACb,WAAW,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,kBAAkB,GAAG,MAAM,CAAC,CAAC;QACtE,MAAM,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;QAC3C,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC;KAChC;IAED,UAAU,cAAc;QACpB,0DAA0D;QAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,+DAA+D;QAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,mCAAmC;QACnC,WAAW,CAAC,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/desk/client/Client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAK1C,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC1B,UAAU,OAAO;QACb,WAAW,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,kBAAkB,GAAG,MAAM,CAAC,CAAC;QACtE,MAAM,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;QAC3C,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC;KAChC;IAED,UAAU,cAAc;QACpB,0DAA0D;QAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,+DAA+D;QAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,mCAAmC;QACnC,WAAW,CAAC,EAAE,WAAW,CAAC;QAC1B,oDAAoD;QACpD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACpC;CACJ;AAED;;GAEG;AACH,qBAAa,IAAI;IACD,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO;gBAAtB,QAAQ,GAAE,IAAI,CAAC,OAAY;IAE1D;;;;;;;;;;;;;OAaG;IACU,cAAc,CACvB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,OAAO,CAAC,qBAA0B,EAC3C,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,GACrC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC;IAsF/B;;;;;;;;;;;;;OAaG;IACU,kBAAkB,CAC3B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,GACrC,OAAO,CAAC,IAAI,CAAC;cAqFA,8BAA8B;;;CAIjD"}
|
|
@@ -73,7 +73,7 @@ class Desk {
|
|
|
73
73
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
74
74
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `${encodeURIComponent(tenantId)}/did.json`),
|
|
75
75
|
method: 'GET',
|
|
76
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
76
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.28.8', 'User-Agent': '@truvity/sdk/0.28.8', '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),
|
|
77
77
|
contentType: 'application/json',
|
|
78
78
|
requestType: 'json',
|
|
79
79
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -125,7 +125,7 @@ class Desk {
|
|
|
125
125
|
body: _response.error.rawBody,
|
|
126
126
|
});
|
|
127
127
|
case 'timeout':
|
|
128
|
-
throw new errors.TruvityTimeoutError();
|
|
128
|
+
throw new errors.TruvityTimeoutError('Timeout exceeded when calling GET /{tenant_id}/did.json.');
|
|
129
129
|
case 'unknown':
|
|
130
130
|
throw new errors.TruvityError({
|
|
131
131
|
message: _response.error.errorMessage,
|
|
@@ -153,8 +153,8 @@ class Desk {
|
|
|
153
153
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
154
154
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `${encodeURIComponent(tenantId)}/didcomm-messages/recv`),
|
|
155
155
|
method: 'POST',
|
|
156
|
-
headers: Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '
|
|
157
|
-
contentType: 'application/json',
|
|
156
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.28.8', 'User-Agent': '@truvity/sdk/0.28.8', '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),
|
|
157
|
+
contentType: 'application/didcomm-signed+json',
|
|
158
158
|
requestType: 'json',
|
|
159
159
|
body: serializers.desk.didCommMessageRecv.Request.jsonOrThrow(request, {
|
|
160
160
|
unrecognizedObjectKeys: 'strip',
|
|
@@ -204,7 +204,7 @@ class Desk {
|
|
|
204
204
|
body: _response.error.rawBody,
|
|
205
205
|
});
|
|
206
206
|
case 'timeout':
|
|
207
|
-
throw new errors.TruvityTimeoutError();
|
|
207
|
+
throw new errors.TruvityTimeoutError('Timeout exceeded when calling POST /{tenant_id}/didcomm-messages/recv.');
|
|
208
208
|
case 'unknown':
|
|
209
209
|
throw new errors.TruvityError({
|
|
210
210
|
message: _response.error.errorMessage,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../src/api/resources/desk/client/Client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uEAAyD;AACzD,uDAAyC;AACzC,wDAA0C;AAC1C,wDAA+B;AAC/B,6EAA+D;AAC/D,iEAAmD;AAmBnD;;GAEG;AACH,MAAa,IAAI;IACb,YAA+B,WAAyB,EAAE;QAA3B,aAAQ,GAAR,QAAQ,CAAmB;IAAG,CAAC;IAE9D;;;;;;;;;;;;;OAaG;IACU,cAAc,CACvB,QAAgB,EAChB,UAAyC,EAAE,EAC3C,cAAoC;;;YAEpC,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;YAChC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAA,IAAI,CAAC,QAAQ,CAAC,OAAO,mCAAI,IAAI,CAAC,OAAO,CAAC,CAAC;gBAC5D,GAAG,EAAE,IAAA,kBAAO,EACR,MAAA,CAAC,MAAM,IAAI,CAAC,QAA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AC;yBAClC,CAAC,CACL,CAAC;oBACN;wBACI,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;4BAC1B,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU;4BACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,IAAI;yBAC7B,CAAC,CAAC;iBACV;aACJ;YAED,QAAQ,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE;gBAC5B,KAAK,UAAU;oBACX,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;wBAC1B,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU;wBACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO;qBAChC,CAAC,CAAC;gBACP,KAAK,SAAS;oBACV,MAAM,IAAI,MAAM,CAAC,mBAAmB,EAAE,CAAC;gBAC3C,KAAK,SAAS;oBACV,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;wBAC1B,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,YAAY;qBACxC,CAAC,CAAC;aACV;;KACJ;IAEe,8BAA8B;;YAC1C,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAClE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;QACxC,CAAC;KAAA;CACJ;AAhND,oBAgNC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as environments from '../../../../environments';\nimport * as core from '../../../../core';\nimport * as Truvity from '../../../index';\nimport urlJoin from 'url-join';\nimport * as serializers from '../../../../serialization/index';\nimport * as errors from '../../../../errors/index';\n\nexport declare namespace Desk {\n interface Options {\n environment?: core.Supplier<environments.TruvityEnvironment | string>;\n apiKey?: core.Supplier<string | undefined>;\n fetcher?: core.FetchFunction;\n }\n\n interface RequestOptions {\n /** The maximum time to wait for a response in seconds. */\n timeoutInSeconds?: number;\n /** The number of times to retry the request. Defaults to 2. */\n maxRetries?: number;\n /** A hook to abort the request. */\n abortSignal?: AbortSignal;\n }\n}\n\n/**\n * The API to manage DID Documents and to receive DIDComm messages.\n */\nexport class Desk {\n constructor(protected readonly _options: Desk.Options = {}) {}\n\n /**\n * Get DID-Document for [did:web Method Specification](https://w3c-ccg.github.io/did-method-web/).\n *\n * @param {string} tenantId - The ID of the tenant.\n * @param {Truvity.DidDocumentGetRequest} request\n * @param {Desk.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.desk.didDocumentGet(\"tenant_id\")\n */\n public async didDocumentGet(\n tenantId: string,\n request: Truvity.DidDocumentGetRequest = {},\n requestOptions?: Desk.RequestOptions,\n ): Promise<Truvity.DidDocument> {\n const { ifNoneMatch } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `${encodeURIComponent(tenantId)}/did.json`,\n ),\n method: 'GET',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.4',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.DidDocument.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * Receive DIDComm Message.\n *\n * @param {string} tenantId - The ID of the tenant.\n * @param {string} request\n * @param {Desk.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnsupportedMediaTypeError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.desk.didCommMessageRecv(\"tenant_id\", \"string\")\n */\n public async didCommMessageRecv(\n tenantId: string,\n request: string,\n requestOptions?: Desk.RequestOptions,\n ): Promise<void> {\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `${encodeURIComponent(tenantId)}/didcomm-messages/recv`,\n ),\n method: 'POST',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': 'v0.28.4',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n ...(await this._getCustomAuthorizationHeaders()),\n },\n contentType: 'application/json',\n requestType: 'json',\n body: serializers.desk.didCommMessageRecv.Request.jsonOrThrow(request, {\n unrecognizedObjectKeys: 'strip',\n omitUndefined: true,\n }),\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return;\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 415:\n throw new Truvity.UnsupportedMediaTypeError(\n serializers.UnsupportedMediaTypeProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError();\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n protected async _getCustomAuthorizationHeaders() {\n const apiKeyValue = await core.Supplier.get(this._options.apiKey);\n return { 'X-API-KEY': apiKeyValue };\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../src/api/resources/desk/client/Client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uEAAyD;AACzD,uDAAyC;AACzC,wDAA0C;AAC1C,wDAA+B;AAC/B,6EAA+D;AAC/D,iEAAmD;AAqBnD;;GAEG;AACH,MAAa,IAAI;IACb,YAA+B,WAAyB,EAAE;QAA3B,aAAQ,GAAR,QAAQ,CAAmB;IAAG,CAAC;IAE9D;;;;;;;;;;;;;OAaG;IACU,cAAc,CACvB,QAAgB,EAChB,UAAyC,EAAE,EAC3C,cAAoC;;;YAEpC,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;YAChC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAA,IAAI,CAAC,QAAQ,CAAC,OAAO,mCAAI,IAAI,CAAC,OAAO,CAAC,CAAC;gBAC5D,GAAG,EAAE,IAAA,kBAAO,EACR,MAAA,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,mCAAI,YAAY,CAAC,kBAAkB,CAAC,OAAO,EAC/F,GAAG,kBAAkB,CAAC,QAAQ,CAAC,WAAW,CAC7C;gBACD,MAAM,EAAE,KAAK;gBACb,OAAO,gCACH,iBAAiB,EAAE,YAAY,EAC/B,iBAAiB,EAAE,cAAc,EACjC,oBAAoB,EAAE,QAAQ,EAC9B,YAAY,EAAE,qBAAqB,EACnC,gBAAgB,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,EACnC,wBAAwB,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,EAC9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CAAC,MAAM,EAAE;gBAC5B,KAAK,UAAU;oBACX,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;wBAC1B,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU;wBACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO;qBAChC,CAAC,CAAC;gBACP,KAAK,SAAS;oBACV,MAAM,IAAI,MAAM,CAAC,mBAAmB,CAChC,wEAAwE,CAC3E,CAAC;gBACN,KAAK,SAAS;oBACV,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;wBAC1B,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,YAAY;qBACxC,CAAC,CAAC;aACV;;KACJ;IAEe,8BAA8B;;YAC1C,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAClE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;QACxC,CAAC;KAAA;CACJ;AAtND,oBAsNC","sourcesContent":["/**\n * This file was auto-generated by Fern from our API Definition.\n */\n\nimport * as environments from '../../../../environments';\nimport * as core from '../../../../core';\nimport * as Truvity from '../../../index';\nimport urlJoin from 'url-join';\nimport * as serializers from '../../../../serialization/index';\nimport * as errors from '../../../../errors/index';\n\nexport declare namespace Desk {\n interface Options {\n environment?: core.Supplier<environments.TruvityEnvironment | string>;\n apiKey?: core.Supplier<string | undefined>;\n fetcher?: core.FetchFunction;\n }\n\n interface RequestOptions {\n /** The maximum time to wait for a response in seconds. */\n timeoutInSeconds?: number;\n /** The number of times to retry the request. Defaults to 2. */\n maxRetries?: number;\n /** A hook to abort the request. */\n abortSignal?: AbortSignal;\n /** Additional headers to include in the request. */\n headers?: Record<string, string>;\n }\n}\n\n/**\n * The API to manage DID Documents and to receive DIDComm messages.\n */\nexport class Desk {\n constructor(protected readonly _options: Desk.Options = {}) {}\n\n /**\n * Get DID-Document for [did:web Method Specification](https://w3c-ccg.github.io/did-method-web/).\n *\n * @param {string} tenantId - The ID of the tenant.\n * @param {Truvity.DidDocumentGetRequest} request\n * @param {Desk.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.desk.didDocumentGet(\"tenant_id\")\n */\n public async didDocumentGet(\n tenantId: string,\n request: Truvity.DidDocumentGetRequest = {},\n requestOptions?: Desk.RequestOptions,\n ): Promise<Truvity.DidDocument> {\n const { ifNoneMatch } = request;\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `${encodeURIComponent(tenantId)}/did.json`,\n ),\n method: 'GET',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': '0.28.8',\n 'User-Agent': '@truvity/sdk/0.28.8',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n 'If-None-Match': ifNoneMatch != null ? ifNoneMatch : undefined,\n ...(await this._getCustomAuthorizationHeaders()),\n ...requestOptions?.headers,\n },\n contentType: 'application/json',\n requestType: 'json',\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return serializers.DidDocument.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n });\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 429:\n throw new Truvity.TooManyRequestsError(\n serializers.TooManyRequestsProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError('Timeout exceeded when calling GET /{tenant_id}/did.json.');\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n /**\n * Receive DIDComm Message.\n *\n * @param {string} tenantId - The ID of the tenant.\n * @param {string} request\n * @param {Desk.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnsupportedMediaTypeError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.desk.didCommMessageRecv(\"tenant_id\", \"string\")\n */\n public async didCommMessageRecv(\n tenantId: string,\n request: string,\n requestOptions?: Desk.RequestOptions,\n ): Promise<void> {\n const _response = await (this._options.fetcher ?? core.fetcher)({\n url: urlJoin(\n (await core.Supplier.get(this._options.environment)) ?? environments.TruvityEnvironment.Default,\n `${encodeURIComponent(tenantId)}/didcomm-messages/recv`,\n ),\n method: 'POST',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': '0.28.8',\n 'User-Agent': '@truvity/sdk/0.28.8',\n 'X-Fern-Runtime': core.RUNTIME.type,\n 'X-Fern-Runtime-Version': core.RUNTIME.version,\n ...(await this._getCustomAuthorizationHeaders()),\n ...requestOptions?.headers,\n },\n contentType: 'application/didcomm-signed+json',\n requestType: 'json',\n body: serializers.desk.didCommMessageRecv.Request.jsonOrThrow(request, {\n unrecognizedObjectKeys: 'strip',\n omitUndefined: true,\n }),\n timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,\n maxRetries: requestOptions?.maxRetries,\n abortSignal: requestOptions?.abortSignal,\n });\n if (_response.ok) {\n return;\n }\n\n if (_response.error.reason === 'status-code') {\n switch (_response.error.statusCode) {\n case 400:\n throw new Truvity.BadRequestError(\n serializers.BadRequestProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 415:\n throw new Truvity.UnsupportedMediaTypeError(\n serializers.UnsupportedMediaTypeProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n case 500:\n throw new Truvity.InternalServerError(\n serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n });\n }\n }\n\n switch (_response.error.reason) {\n case 'non-json':\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.rawBody,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError(\n 'Timeout exceeded when calling POST /{tenant_id}/didcomm-messages/recv.',\n );\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n });\n }\n }\n\n protected async _getCustomAuthorizationHeaders() {\n const apiKeyValue = await core.Supplier.get(this._options.apiKey);\n return { 'X-API-KEY': apiKeyValue };\n }\n}\n"]}
|
|
@@ -17,6 +17,8 @@ export declare namespace DidcommMessages {
|
|
|
17
17
|
maxRetries?: number;
|
|
18
18
|
/** A hook to abort the request. */
|
|
19
19
|
abortSignal?: AbortSignal;
|
|
20
|
+
/** Additional headers to include in the request. */
|
|
21
|
+
headers?: Record<string, string>;
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
@@ -106,6 +108,60 @@ export declare class DidcommMessages {
|
|
|
106
108
|
* })
|
|
107
109
|
*/
|
|
108
110
|
didcommMessageDelete(id: string, request: Truvity.DidcommMessageDeleteRequest, requestOptions?: DidcommMessages.RequestOptions): Promise<void>;
|
|
111
|
+
/**
|
|
112
|
+
* Update annotations of DIDComm Message's resource.
|
|
113
|
+
*
|
|
114
|
+
* @param {string} id - The primary and unique identifier of the resource (inside tenant)
|
|
115
|
+
* according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
|
|
116
|
+
* @param {Truvity.DidcommMessageUpdateAnnotationsInput} request
|
|
117
|
+
* @param {DidcommMessages.RequestOptions} requestOptions - Request-specific configuration.
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link Truvity.BadRequestError}
|
|
120
|
+
* @throws {@link Truvity.UnauthorizedError}
|
|
121
|
+
* @throws {@link Truvity.ForbiddenError}
|
|
122
|
+
* @throws {@link Truvity.NotFoundError}
|
|
123
|
+
* @throws {@link Truvity.MethodNotAllowedError}
|
|
124
|
+
* @throws {@link Truvity.PreconditionFailedError}
|
|
125
|
+
* @throws {@link Truvity.UnsupportedMediaTypeError}
|
|
126
|
+
* @throws {@link Truvity.TooManyRequestsError}
|
|
127
|
+
* @throws {@link Truvity.InternalServerError}
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* await client.didcommMessages.didcommMessageUpdateAnnotations("id", {
|
|
131
|
+
* ifMatch: "If-Match",
|
|
132
|
+
* annotations: {
|
|
133
|
+
* "key": "value"
|
|
134
|
+
* }
|
|
135
|
+
* })
|
|
136
|
+
*/
|
|
137
|
+
didcommMessageUpdateAnnotations(id: string, request: Truvity.DidcommMessageUpdateAnnotationsInput, requestOptions?: DidcommMessages.RequestOptions): Promise<Truvity.ResourceDidCommMessage>;
|
|
138
|
+
/**
|
|
139
|
+
* Update labels of DIDComm Message's resource.
|
|
140
|
+
*
|
|
141
|
+
* @param {string} id - The primary and unique identifier of the resource (inside tenant)
|
|
142
|
+
* according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
|
|
143
|
+
* @param {Truvity.DidcommMessageUpdateLabelsInput} request
|
|
144
|
+
* @param {DidcommMessages.RequestOptions} requestOptions - Request-specific configuration.
|
|
145
|
+
*
|
|
146
|
+
* @throws {@link Truvity.BadRequestError}
|
|
147
|
+
* @throws {@link Truvity.UnauthorizedError}
|
|
148
|
+
* @throws {@link Truvity.ForbiddenError}
|
|
149
|
+
* @throws {@link Truvity.NotFoundError}
|
|
150
|
+
* @throws {@link Truvity.MethodNotAllowedError}
|
|
151
|
+
* @throws {@link Truvity.PreconditionFailedError}
|
|
152
|
+
* @throws {@link Truvity.UnsupportedMediaTypeError}
|
|
153
|
+
* @throws {@link Truvity.TooManyRequestsError}
|
|
154
|
+
* @throws {@link Truvity.InternalServerError}
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* await client.didcommMessages.didcommMessageUpdateLabels("id", {
|
|
158
|
+
* ifMatch: "If-Match",
|
|
159
|
+
* labels: {
|
|
160
|
+
* "key": "value"
|
|
161
|
+
* }
|
|
162
|
+
* })
|
|
163
|
+
*/
|
|
164
|
+
didcommMessageUpdateLabels(id: string, request: Truvity.DidcommMessageUpdateLabelsInput, requestOptions?: DidcommMessages.RequestOptions): Promise<Truvity.ResourceDidCommMessage>;
|
|
109
165
|
/**
|
|
110
166
|
* Restore DIDComm Message's resource.
|
|
111
167
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/didcommMessages/client/Client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAK1C,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACrC,UAAU,OAAO;QACb,WAAW,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,kBAAkB,GAAG,MAAM,CAAC,CAAC;QACtE,MAAM,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;QAC3C,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC;KAChC;IAED,UAAU,cAAc;QACpB,0DAA0D;QAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,+DAA+D;QAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,mCAAmC;QACnC,WAAW,CAAC,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/didcommMessages/client/Client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAK1C,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACrC,UAAU,OAAO;QACb,WAAW,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,kBAAkB,GAAG,MAAM,CAAC,CAAC;QACtE,MAAM,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,SAAS,C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