@truvity/sdk 0.36.2 → 0.37.0
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/api/resources/apiKeys/client/Client.d.ts +6 -6
- package/api/resources/apiKeys/client/Client.d.ts.map +1 -1
- package/api/resources/apiKeys/client/Client.js +18 -15
- package/api/resources/apiKeys/client/Client.js.map +1 -1
- package/api/resources/apiKeys/client/requests/{ApiKeyInput.d.ts → ApiKeyCreateRequest.d.ts} +2 -2
- package/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.d.ts.map +1 -0
- package/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.js +6 -0
- package/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.js.map +1 -0
- package/api/resources/{drafts/client/requests/DraftUpdateAnnotationsInput.d.ts → apiKeys/client/requests/ApiKeyUpdateAnnotationsRequest.d.ts} +2 -2
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsRequest.d.ts.map +1 -0
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsRequest.js +6 -0
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsRequest.js.map +1 -0
- package/api/resources/{keys/client/requests/KeyUpdateLabelsInput.d.ts → apiKeys/client/requests/ApiKeyUpdateLabelsRequest.d.ts} +2 -2
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateLabelsRequest.d.ts.map +1 -0
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateLabelsRequest.js +6 -0
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateLabelsRequest.js.map +1 -0
- package/api/resources/apiKeys/client/requests/index.d.ts +3 -3
- 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 +6 -6
- package/api/resources/credentials/client/Client.d.ts.map +1 -1
- package/api/resources/credentials/client/Client.js +18 -18
- package/api/resources/credentials/client/Client.js.map +1 -1
- package/api/resources/credentials/client/requests/{CredentialInput.d.ts → CredentialImportRequest.d.ts} +2 -2
- package/api/resources/credentials/client/requests/CredentialImportRequest.d.ts.map +1 -0
- package/api/resources/{didcommMessages/client/requests/DidCommMessageSendInput.js → credentials/client/requests/CredentialImportRequest.js} +1 -1
- package/api/resources/credentials/client/requests/CredentialImportRequest.js.map +1 -0
- package/api/resources/credentials/client/requests/{CredentialUpdateAnnotationsInput.d.ts → CredentialUpdateAnnotationsRequest.d.ts} +2 -2
- package/api/resources/credentials/client/requests/CredentialUpdateAnnotationsRequest.d.ts.map +1 -0
- package/api/resources/credentials/client/requests/CredentialUpdateAnnotationsRequest.js +6 -0
- package/api/resources/credentials/client/requests/CredentialUpdateAnnotationsRequest.js.map +1 -0
- package/api/resources/credentials/client/requests/{CredentialUpdateLabelsInput.d.ts → CredentialUpdateLabelsRequest.d.ts} +2 -2
- package/api/resources/credentials/client/requests/CredentialUpdateLabelsRequest.d.ts.map +1 -0
- package/api/resources/credentials/client/requests/CredentialUpdateLabelsRequest.js +6 -0
- package/api/resources/credentials/client/requests/CredentialUpdateLabelsRequest.js.map +1 -0
- package/api/resources/credentials/client/requests/index.d.ts +3 -3
- 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.js +2 -2
- package/api/resources/desk/client/Client.js.map +1 -1
- package/api/resources/didcommMessages/client/Client.d.ts +6 -6
- package/api/resources/didcommMessages/client/Client.d.ts.map +1 -1
- package/api/resources/didcommMessages/client/Client.js +15 -15
- package/api/resources/didcommMessages/client/Client.js.map +1 -1
- package/api/resources/didcommMessages/client/requests/{DidCommMessageSendInput.d.ts → DidCommMessageSendRequest.d.ts} +2 -2
- package/api/resources/didcommMessages/client/requests/DidCommMessageSendRequest.d.ts.map +1 -0
- package/api/resources/didcommMessages/client/requests/DidCommMessageSendRequest.js +6 -0
- package/api/resources/didcommMessages/client/requests/DidCommMessageSendRequest.js.map +1 -0
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsRequest.d.ts +52 -0
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsRequest.d.ts.map +1 -0
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsRequest.js +6 -0
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsRequest.js.map +1 -0
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsRequest.d.ts +52 -0
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsRequest.d.ts.map +1 -0
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsRequest.js +6 -0
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsRequest.js.map +1 -0
- package/api/resources/didcommMessages/client/requests/index.d.ts +3 -3
- 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.js +1 -1
- package/api/resources/dids/client/Client.js.map +1 -1
- package/api/resources/drafts/client/Client.d.ts +11 -11
- package/api/resources/drafts/client/Client.d.ts.map +1 -1
- package/api/resources/drafts/client/Client.js +30 -24
- package/api/resources/drafts/client/Client.js.map +1 -1
- package/api/resources/drafts/client/requests/{DraftInput.d.ts → DraftCreateRequest.d.ts} +2 -2
- package/api/resources/drafts/client/requests/DraftCreateRequest.d.ts.map +1 -0
- package/api/resources/{credentials/client/requests/CredentialInput.js → drafts/client/requests/DraftCreateRequest.js} +1 -1
- package/api/resources/drafts/client/requests/DraftCreateRequest.js.map +1 -0
- package/api/resources/drafts/client/requests/{DraftExport.d.ts → DraftExportRequest.d.ts} +2 -2
- package/api/resources/drafts/client/requests/DraftExportRequest.d.ts.map +1 -0
- package/api/resources/drafts/client/requests/DraftExportRequest.js +6 -0
- package/api/resources/drafts/client/requests/DraftExportRequest.js.map +1 -0
- package/api/resources/drafts/client/requests/{DraftIssue.d.ts → DraftIssueRequest.d.ts} +3 -3
- package/api/resources/drafts/client/requests/DraftIssueRequest.d.ts.map +1 -0
- package/api/resources/drafts/client/requests/{DraftInput.js → DraftIssueRequest.js} +1 -1
- package/api/resources/drafts/client/requests/DraftIssueRequest.js.map +1 -0
- package/api/resources/{files/client/requests/FileUpdateAnnotationsInput.d.ts → drafts/client/requests/DraftUpdateAnnotationsRequest.d.ts} +2 -2
- package/api/resources/drafts/client/requests/DraftUpdateAnnotationsRequest.d.ts.map +1 -0
- package/api/resources/drafts/client/requests/DraftUpdateAnnotationsRequest.js +6 -0
- package/api/resources/drafts/client/requests/DraftUpdateAnnotationsRequest.js.map +1 -0
- package/api/resources/{apiKeys/client/requests/ApiKeyUpdateLabelsInput.d.ts → drafts/client/requests/DraftUpdateLabelsRequest.d.ts} +2 -2
- package/api/resources/drafts/client/requests/DraftUpdateLabelsRequest.d.ts.map +1 -0
- package/api/resources/drafts/client/requests/DraftUpdateLabelsRequest.js +6 -0
- package/api/resources/drafts/client/requests/DraftUpdateLabelsRequest.js.map +1 -0
- package/api/resources/drafts/client/requests/{DraftUpdateInput.d.ts → DraftUpdateRequest.d.ts} +2 -2
- package/api/resources/drafts/client/requests/DraftUpdateRequest.d.ts.map +1 -0
- package/api/resources/drafts/client/requests/DraftUpdateRequest.js +6 -0
- package/api/resources/drafts/client/requests/DraftUpdateRequest.js.map +1 -0
- package/api/resources/drafts/client/requests/index.d.ts +6 -6
- package/api/resources/drafts/client/requests/index.d.ts.map +1 -1
- package/api/resources/drafts/client/requests/index.js.map +1 -1
- package/api/resources/drafts/types/{DraftIssueDidMethod.d.ts → DraftIssueRequestDidMethod.d.ts} +3 -3
- package/api/resources/drafts/types/DraftIssueRequestDidMethod.d.ts.map +1 -0
- package/api/resources/drafts/types/{DraftIssueDidMethod.js → DraftIssueRequestDidMethod.js} +3 -3
- package/api/resources/drafts/types/DraftIssueRequestDidMethod.js.map +1 -0
- package/api/resources/drafts/types/index.d.ts +1 -1
- package/api/resources/drafts/types/index.d.ts.map +1 -1
- package/api/resources/drafts/types/index.js +1 -1
- package/api/resources/drafts/types/index.js.map +1 -1
- package/api/resources/files/client/Client.d.ts +6 -6
- package/api/resources/files/client/Client.d.ts.map +1 -1
- package/api/resources/files/client/Client.js +20 -17
- package/api/resources/files/client/Client.js.map +1 -1
- package/api/resources/files/client/requests/{FileInput.d.ts → FileCreateRequest.d.ts} +2 -2
- package/api/resources/files/client/requests/FileCreateRequest.d.ts.map +1 -0
- package/api/resources/{apiKeys/client/requests/ApiKeyInput.js → files/client/requests/FileCreateRequest.js} +1 -1
- package/api/resources/files/client/requests/FileCreateRequest.js.map +1 -0
- package/api/resources/{apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.d.ts → files/client/requests/FileUpdateAnnotationsRequest.d.ts} +2 -2
- package/api/resources/files/client/requests/FileUpdateAnnotationsRequest.d.ts.map +1 -0
- package/api/resources/{apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.js → files/client/requests/FileUpdateAnnotationsRequest.js} +1 -1
- package/api/resources/files/client/requests/FileUpdateAnnotationsRequest.js.map +1 -0
- package/api/resources/{drafts/client/requests/DraftUpdateLabelsInput.d.ts → files/client/requests/FileUpdateLabelsRequest.d.ts} +2 -2
- package/api/resources/files/client/requests/FileUpdateLabelsRequest.d.ts.map +1 -0
- package/api/resources/{apiKeys/client/requests/ApiKeyUpdateLabelsInput.js → files/client/requests/FileUpdateLabelsRequest.js} +1 -1
- package/api/resources/files/client/requests/FileUpdateLabelsRequest.js.map +1 -0
- package/api/resources/files/client/requests/index.d.ts +3 -3
- 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 +2 -2
- 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 → SupportRequestCreateRequest.d.ts} +3 -3
- package/api/resources/gdpr/client/requests/SupportRequestCreateRequest.d.ts.map +1 -0
- package/api/resources/{credentials/client/requests/CredentialUpdateLabelsInput.js → gdpr/client/requests/SupportRequestCreateRequest.js} +1 -1
- package/api/resources/gdpr/client/requests/SupportRequestCreateRequest.js.map +1 -0
- package/api/resources/gdpr/client/requests/index.d.ts +1 -1
- package/api/resources/gdpr/client/requests/index.d.ts.map +1 -1
- package/api/resources/gdpr/client/requests/index.js.map +1 -1
- package/api/resources/gdpr/types/{SupportRequestType.d.ts → SupportRequestCreateRequestType.d.ts} +3 -3
- package/api/resources/gdpr/types/SupportRequestCreateRequestType.d.ts.map +1 -0
- package/api/resources/gdpr/types/{SupportRequestType.js → SupportRequestCreateRequestType.js} +3 -3
- package/api/resources/gdpr/types/SupportRequestCreateRequestType.js.map +1 -0
- package/api/resources/gdpr/types/index.d.ts +1 -1
- package/api/resources/gdpr/types/index.d.ts.map +1 -1
- package/api/resources/gdpr/types/index.js +1 -1
- package/api/resources/gdpr/types/index.js.map +1 -1
- package/api/resources/keys/client/Client.d.ts +8 -8
- package/api/resources/keys/client/Client.d.ts.map +1 -1
- package/api/resources/keys/client/Client.js +21 -21
- package/api/resources/keys/client/Client.js.map +1 -1
- package/api/resources/keys/client/requests/{KeyGenerateInput.d.ts → KeyGenerateRequest.d.ts} +2 -2
- package/api/resources/keys/client/requests/KeyGenerateRequest.d.ts.map +1 -0
- package/api/resources/keys/client/requests/KeyGenerateRequest.js +6 -0
- package/api/resources/keys/client/requests/KeyGenerateRequest.js.map +1 -0
- package/api/resources/keys/client/requests/{KeyImportSecretInput.d.ts → KeyImportRequest.d.ts} +2 -2
- package/api/resources/keys/client/requests/KeyImportRequest.d.ts.map +1 -0
- package/api/resources/{drafts/client/requests/DraftExport.js → keys/client/requests/KeyImportRequest.js} +1 -1
- package/api/resources/keys/client/requests/KeyImportRequest.js.map +1 -0
- package/api/resources/keys/client/requests/{KeyUpdateAnnotationsInput.d.ts → KeyUpdateAnnotationsRequest.d.ts} +2 -2
- package/api/resources/keys/client/requests/KeyUpdateAnnotationsRequest.d.ts.map +1 -0
- package/api/resources/keys/client/requests/KeyUpdateAnnotationsRequest.js +6 -0
- package/api/resources/keys/client/requests/KeyUpdateAnnotationsRequest.js.map +1 -0
- package/api/resources/{files/client/requests/FileUpdateLabelsInput.d.ts → keys/client/requests/KeyUpdateLabelsRequest.d.ts} +2 -2
- package/api/resources/keys/client/requests/KeyUpdateLabelsRequest.d.ts.map +1 -0
- package/api/resources/keys/client/requests/KeyUpdateLabelsRequest.js +6 -0
- package/api/resources/keys/client/requests/KeyUpdateLabelsRequest.js.map +1 -0
- package/api/resources/keys/client/requests/index.d.ts +4 -4
- 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 +9 -9
- package/api/resources/presentations/client/Client.d.ts.map +1 -1
- package/api/resources/presentations/client/Client.js +23 -23
- package/api/resources/presentations/client/Client.js.map +1 -1
- package/api/resources/presentations/client/requests/{PresentationExport.d.ts → PresentationExportRequest.d.ts} +2 -2
- package/api/resources/presentations/client/requests/PresentationExportRequest.d.ts.map +1 -0
- package/api/resources/presentations/client/requests/PresentationExportRequest.js +6 -0
- package/api/resources/presentations/client/requests/PresentationExportRequest.js.map +1 -0
- package/api/resources/presentations/client/requests/{PresentationInput.d.ts → PresentationImportRequest.d.ts} +2 -2
- package/api/resources/presentations/client/requests/PresentationImportRequest.d.ts.map +1 -0
- package/api/resources/presentations/client/requests/PresentationImportRequest.js +6 -0
- package/api/resources/presentations/client/requests/PresentationImportRequest.js.map +1 -0
- package/api/resources/presentations/client/requests/{PresentationIssue.d.ts → PresentationIssueRequest.d.ts} +3 -3
- package/api/resources/presentations/client/requests/PresentationIssueRequest.d.ts.map +1 -0
- package/api/resources/presentations/client/requests/PresentationIssueRequest.js +6 -0
- package/api/resources/presentations/client/requests/PresentationIssueRequest.js.map +1 -0
- package/api/resources/{didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.d.ts → presentations/client/requests/PresentationUpdateAnnotationsRequest.d.ts} +2 -2
- package/api/resources/presentations/client/requests/PresentationUpdateAnnotationsRequest.d.ts.map +1 -0
- package/api/resources/presentations/client/requests/PresentationUpdateAnnotationsRequest.js +6 -0
- package/api/resources/presentations/client/requests/PresentationUpdateAnnotationsRequest.js.map +1 -0
- package/api/resources/{didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.d.ts → presentations/client/requests/PresentationUpdateLabelsRequest.d.ts} +2 -2
- package/api/resources/presentations/client/requests/PresentationUpdateLabelsRequest.d.ts.map +1 -0
- package/api/resources/presentations/client/requests/PresentationUpdateLabelsRequest.js +6 -0
- package/api/resources/presentations/client/requests/PresentationUpdateLabelsRequest.js.map +1 -0
- package/api/resources/presentations/client/requests/index.d.ts +5 -5
- 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/resources/presentations/types/PresentationIssueRequestDidMethod.d.ts +12 -0
- package/api/resources/presentations/types/PresentationIssueRequestDidMethod.d.ts.map +1 -0
- package/api/resources/presentations/types/{PresentationIssueDidMethod.js → PresentationIssueRequestDidMethod.js} +3 -3
- package/api/resources/presentations/types/PresentationIssueRequestDidMethod.js.map +1 -0
- package/api/resources/presentations/types/index.d.ts +1 -1
- package/api/resources/presentations/types/index.d.ts.map +1 -1
- package/api/resources/presentations/types/index.js +1 -1
- package/api/resources/presentations/types/index.js.map +1 -1
- package/api/types/BadRequestProblems.d.ts +4 -1
- package/api/types/BadRequestProblems.d.ts.map +1 -1
- package/api/types/BadRequestProblems.js.map +1 -1
- package/api/types/Credential.d.ts +0 -4
- package/api/types/Credential.d.ts.map +1 -1
- package/api/types/Credential.js.map +1 -1
- package/api/types/CredentialFilterData.d.ts +0 -2
- package/api/types/CredentialFilterData.d.ts.map +1 -1
- package/api/types/CredentialFilterData.js.map +1 -1
- package/api/types/CredentialSortField.d.ts +1 -3
- package/api/types/CredentialSortField.d.ts.map +1 -1
- package/api/types/CredentialSortField.js +0 -2
- package/api/types/CredentialSortField.js.map +1 -1
- package/api/types/Draft.d.ts +0 -4
- package/api/types/Draft.d.ts.map +1 -1
- package/api/types/Draft.js.map +1 -1
- package/api/types/DraftFilterData.d.ts +0 -2
- package/api/types/DraftFilterData.d.ts.map +1 -1
- package/api/types/DraftFilterData.js.map +1 -1
- package/api/types/DraftSortField.d.ts +1 -3
- package/api/types/DraftSortField.d.ts.map +1 -1
- package/api/types/DraftSortField.js +0 -2
- package/api/types/DraftSortField.js.map +1 -1
- package/api/types/File_.d.ts +1 -1
- package/api/types/File_.d.ts.map +1 -1
- package/api/types/File_.js.map +1 -1
- package/api/types/Presentation.d.ts +0 -2
- package/api/types/Presentation.d.ts.map +1 -1
- package/api/types/Presentation.js.map +1 -1
- package/api/types/PresentationFilterData.d.ts +0 -1
- package/api/types/PresentationFilterData.d.ts.map +1 -1
- package/api/types/PresentationFilterData.js.map +1 -1
- package/api/types/PresentationSortField.d.ts +1 -2
- package/api/types/PresentationSortField.d.ts.map +1 -1
- package/api/types/PresentationSortField.js +0 -1
- package/api/types/PresentationSortField.js.map +1 -1
- package/api/types/ProblemBadRequestPayloadTooLarge.d.ts +20 -0
- package/api/types/ProblemBadRequestPayloadTooLarge.d.ts.map +1 -0
- package/api/types/ProblemBadRequestPayloadTooLarge.js +6 -0
- package/api/types/ProblemBadRequestPayloadTooLarge.js.map +1 -0
- 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/documents/credential/claims.d.ts.map +1 -1
- package/documents/credential/claims.js +7 -3
- package/documents/credential/claims.js.map +1 -1
- package/documents/credential/credential.d.ts +22 -0
- package/documents/credential/credential.d.ts.map +1 -0
- package/documents/credential/credential.js +56 -0
- package/documents/credential/credential.js.map +1 -0
- package/documents/credential/draft/draft.d.ts +19 -0
- package/documents/credential/draft/draft.d.ts.map +1 -0
- package/documents/credential/draft/draft.js +72 -0
- package/documents/credential/draft/draft.js.map +1 -0
- package/documents/credential/draft/unknown.d.ts +10 -0
- package/documents/credential/draft/unknown.d.ts.map +1 -0
- package/documents/credential/draft/unknown.js +42 -0
- package/documents/credential/draft/unknown.js.map +1 -0
- package/documents/credential/draft/with-claims.d.ts +17 -0
- package/documents/credential/draft/with-claims.d.ts.map +1 -0
- package/documents/credential/{draft.js → draft/with-claims.js} +18 -51
- package/documents/credential/draft/with-claims.js.map +1 -0
- package/documents/credential/unknown.d.ts +15 -20
- package/documents/credential/unknown.d.ts.map +1 -1
- package/documents/credential/unknown.js +29 -31
- package/documents/credential/unknown.js.map +1 -1
- package/documents/credential/verifiable/unknown.d.ts +10 -0
- package/documents/credential/verifiable/unknown.d.ts.map +1 -0
- package/documents/credential/verifiable/unknown.js +35 -0
- package/documents/credential/verifiable/unknown.js.map +1 -0
- package/documents/credential/{verifiable.d.ts → verifiable/verifiable.d.ts} +5 -5
- package/documents/credential/verifiable/verifiable.d.ts.map +1 -0
- package/documents/credential/{verifiable.js → verifiable/verifiable.js} +5 -5
- package/documents/credential/verifiable/verifiable.js.map +1 -0
- package/documents/credential/verifiable/with-claims.d.ts +15 -0
- package/documents/credential/verifiable/with-claims.d.ts.map +1 -0
- package/documents/credential/verifiable/with-claims.js +55 -0
- package/documents/credential/verifiable/with-claims.js.map +1 -0
- package/documents/credential/with-claims.d.ts +15 -11
- package/documents/credential/with-claims.d.ts.map +1 -1
- package/documents/credential/with-claims.js +27 -33
- package/documents/credential/with-claims.js.map +1 -1
- package/documents/credential.d.ts +6 -6
- package/documents/credential.d.ts.map +1 -1
- package/documents/credential.js +8 -8
- package/documents/credential.js.map +1 -1
- package/documents/models.d.ts +26 -9
- package/documents/models.d.ts.map +1 -1
- package/documents/models.js +64 -9
- package/documents/models.js.map +1 -1
- package/documents/models.spec.js +33 -1
- package/documents/models.spec.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 +1 -1
- package/documents/presentation/issued.js.map +1 -1
- package/documents/presentation.d.ts +4 -3
- package/documents/presentation.d.ts.map +1 -1
- package/documents/presentation.js +7 -4
- package/documents/presentation.js.map +1 -1
- package/documents/types.d.ts +5 -3
- package/documents/types.d.ts.map +1 -1
- package/documents/types.js.map +1 -1
- package/documents/utils/error.d.ts +2 -0
- package/documents/utils/error.d.ts.map +1 -1
- package/documents/utils/error.js +3 -1
- package/documents/utils/error.js.map +1 -1
- package/documents/utils/error.spec.js +1 -1
- package/documents/utils/error.spec.js.map +1 -1
- package/package.json +1 -1
- package/reference.md +26 -26
- package/serialization/resources/apiKeys/client/requests/{ApiKeyInput.d.ts → ApiKeyCreateRequest.d.ts} +3 -3
- package/serialization/resources/apiKeys/client/requests/ApiKeyCreateRequest.d.ts.map +1 -0
- package/serialization/resources/apiKeys/client/requests/{ApiKeyInput.js → ApiKeyCreateRequest.js} +3 -3
- package/serialization/resources/apiKeys/client/requests/ApiKeyCreateRequest.js.map +1 -0
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsRequest.d.ts +13 -0
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsRequest.d.ts.map +1 -0
- package/serialization/resources/{keys/client/requests/KeyUpdateAnnotationsInput.js → apiKeys/client/requests/ApiKeyUpdateAnnotationsRequest.js} +3 -3
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsRequest.js.map +1 -0
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateLabelsRequest.d.ts +13 -0
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateLabelsRequest.d.ts.map +1 -0
- package/serialization/resources/{keys/client/requests/KeyUpdateLabelsInput.js → apiKeys/client/requests/ApiKeyUpdateLabelsRequest.js} +3 -3
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateLabelsRequest.js.map +1 -0
- package/serialization/resources/apiKeys/client/requests/index.d.ts +3 -3
- package/serialization/resources/apiKeys/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/apiKeys/client/requests/index.js +7 -7
- package/serialization/resources/apiKeys/client/requests/index.js.map +1 -1
- package/serialization/resources/credentials/client/requests/{CredentialInput.d.ts → CredentialImportRequest.d.ts} +3 -3
- package/serialization/resources/credentials/client/requests/CredentialImportRequest.d.ts.map +1 -0
- package/serialization/resources/{presentations/client/requests/PresentationInput.js → credentials/client/requests/CredentialImportRequest.js} +3 -3
- package/serialization/resources/credentials/client/requests/CredentialImportRequest.js.map +1 -0
- package/serialization/resources/{presentations/client/requests/PresentationUpdateAnnotationsInput.d.ts → credentials/client/requests/CredentialUpdateAnnotationsRequest.d.ts} +3 -3
- package/serialization/resources/credentials/client/requests/CredentialUpdateAnnotationsRequest.d.ts.map +1 -0
- package/serialization/resources/{presentations/client/requests/PresentationUpdateAnnotationsInput.js → credentials/client/requests/CredentialUpdateAnnotationsRequest.js} +3 -3
- package/serialization/resources/credentials/client/requests/CredentialUpdateAnnotationsRequest.js.map +1 -0
- package/serialization/resources/credentials/client/requests/CredentialUpdateLabelsRequest.d.ts +13 -0
- package/serialization/resources/credentials/client/requests/CredentialUpdateLabelsRequest.d.ts.map +1 -0
- package/serialization/resources/{presentations/client/requests/PresentationUpdateLabelsInput.js → credentials/client/requests/CredentialUpdateLabelsRequest.js} +3 -3
- package/serialization/resources/credentials/client/requests/CredentialUpdateLabelsRequest.js.map +1 -0
- package/serialization/resources/credentials/client/requests/index.d.ts +3 -3
- package/serialization/resources/credentials/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/credentials/client/requests/index.js +7 -7
- package/serialization/resources/credentials/client/requests/index.js.map +1 -1
- package/serialization/resources/didcommMessages/client/requests/{DidCommMessageSendInput.d.ts → DidCommMessageSendRequest.d.ts} +3 -3
- package/serialization/resources/didcommMessages/client/requests/DidCommMessageSendRequest.d.ts.map +1 -0
- package/serialization/resources/didcommMessages/client/requests/{DidCommMessageSendInput.js → DidCommMessageSendRequest.js} +3 -3
- package/serialization/resources/didcommMessages/client/requests/DidCommMessageSendRequest.js.map +1 -0
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsRequest.d.ts +13 -0
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsRequest.d.ts.map +1 -0
- package/serialization/resources/{credentials/client/requests/CredentialUpdateAnnotationsInput.js → didcommMessages/client/requests/DidcommMessageUpdateAnnotationsRequest.js} +3 -3
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsRequest.js.map +1 -0
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsRequest.d.ts +13 -0
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsRequest.d.ts.map +1 -0
- package/serialization/resources/{credentials/client/requests/CredentialUpdateLabelsInput.js → didcommMessages/client/requests/DidcommMessageUpdateLabelsRequest.js} +3 -3
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsRequest.js.map +1 -0
- package/serialization/resources/didcommMessages/client/requests/index.d.ts +3 -3
- package/serialization/resources/didcommMessages/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/didcommMessages/client/requests/index.js +7 -7
- package/serialization/resources/didcommMessages/client/requests/index.js.map +1 -1
- package/serialization/resources/drafts/client/requests/{DraftInput.d.ts → DraftCreateRequest.d.ts} +3 -3
- package/serialization/resources/drafts/client/requests/DraftCreateRequest.d.ts.map +1 -0
- package/serialization/resources/drafts/client/requests/{DraftInput.js → DraftCreateRequest.js} +3 -3
- package/serialization/resources/drafts/client/requests/DraftCreateRequest.js.map +1 -0
- package/serialization/resources/drafts/client/requests/{DraftExport.d.ts → DraftExportRequest.d.ts} +3 -3
- package/serialization/resources/drafts/client/requests/DraftExportRequest.d.ts.map +1 -0
- package/serialization/resources/drafts/client/requests/{DraftExport.js → DraftExportRequest.js} +3 -3
- package/serialization/resources/drafts/client/requests/DraftExportRequest.js.map +1 -0
- package/serialization/resources/drafts/client/requests/{DraftIssue.d.ts → DraftIssueRequest.d.ts} +5 -5
- package/serialization/resources/drafts/client/requests/DraftIssueRequest.d.ts.map +1 -0
- package/serialization/resources/drafts/client/requests/{DraftIssue.js → DraftIssueRequest.js} +5 -5
- package/serialization/resources/drafts/client/requests/DraftIssueRequest.js.map +1 -0
- package/serialization/resources/drafts/client/requests/DraftUpdateAnnotationsRequest.d.ts +13 -0
- package/serialization/resources/drafts/client/requests/DraftUpdateAnnotationsRequest.d.ts.map +1 -0
- package/serialization/resources/{files/client/requests/FileUpdateAnnotationsInput.js → drafts/client/requests/DraftUpdateAnnotationsRequest.js} +3 -3
- package/serialization/resources/drafts/client/requests/DraftUpdateAnnotationsRequest.js.map +1 -0
- package/serialization/resources/drafts/client/requests/DraftUpdateLabelsRequest.d.ts +13 -0
- package/serialization/resources/drafts/client/requests/DraftUpdateLabelsRequest.d.ts.map +1 -0
- package/serialization/resources/{apiKeys/client/requests/ApiKeyUpdateLabelsInput.js → drafts/client/requests/DraftUpdateLabelsRequest.js} +3 -3
- package/serialization/resources/drafts/client/requests/DraftUpdateLabelsRequest.js.map +1 -0
- package/serialization/resources/drafts/client/requests/{DraftUpdateInput.d.ts → DraftUpdateRequest.d.ts} +3 -3
- package/serialization/resources/drafts/client/requests/DraftUpdateRequest.d.ts.map +1 -0
- package/serialization/resources/drafts/client/requests/{DraftUpdateInput.js → DraftUpdateRequest.js} +3 -3
- package/serialization/resources/drafts/client/requests/DraftUpdateRequest.js.map +1 -0
- package/serialization/resources/drafts/client/requests/index.d.ts +6 -6
- package/serialization/resources/drafts/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/drafts/client/requests/index.js +13 -13
- package/serialization/resources/drafts/client/requests/index.js.map +1 -1
- package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.d.ts +11 -0
- package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.d.ts.map +1 -0
- package/serialization/resources/{presentations/types/PresentationIssueDidMethod.js → drafts/types/DraftIssueRequestDidMethod.js} +3 -3
- package/serialization/resources/drafts/types/DraftIssueRequestDidMethod.js.map +1 -0
- package/serialization/resources/drafts/types/index.d.ts +1 -1
- package/serialization/resources/drafts/types/index.d.ts.map +1 -1
- package/serialization/resources/drafts/types/index.js +1 -1
- package/serialization/resources/drafts/types/index.js.map +1 -1
- package/serialization/resources/files/client/requests/{FileInput.d.ts → FileCreateRequest.d.ts} +3 -3
- package/serialization/resources/files/client/requests/FileCreateRequest.d.ts.map +1 -0
- package/serialization/resources/files/client/requests/{FileInput.js → FileCreateRequest.js} +3 -3
- package/serialization/resources/files/client/requests/FileCreateRequest.js.map +1 -0
- package/serialization/resources/files/client/requests/FileUpdateAnnotationsRequest.d.ts +13 -0
- package/serialization/resources/files/client/requests/FileUpdateAnnotationsRequest.d.ts.map +1 -0
- package/serialization/resources/{apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.js → files/client/requests/FileUpdateAnnotationsRequest.js} +3 -3
- package/serialization/resources/files/client/requests/FileUpdateAnnotationsRequest.js.map +1 -0
- package/serialization/resources/{drafts/client/requests/DraftUpdateLabelsInput.d.ts → files/client/requests/FileUpdateLabelsRequest.d.ts} +3 -3
- package/serialization/resources/files/client/requests/FileUpdateLabelsRequest.d.ts.map +1 -0
- package/serialization/resources/files/client/requests/{FileUpdateLabelsInput.js → FileUpdateLabelsRequest.js} +3 -3
- package/serialization/resources/files/client/requests/FileUpdateLabelsRequest.js.map +1 -0
- package/serialization/resources/files/client/requests/index.d.ts +3 -3
- package/serialization/resources/files/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/files/client/requests/index.js +7 -7
- package/serialization/resources/files/client/requests/index.js.map +1 -1
- package/serialization/resources/gdpr/client/requests/SupportRequestCreateRequest.d.ts +15 -0
- package/serialization/resources/gdpr/client/requests/SupportRequestCreateRequest.d.ts.map +1 -0
- package/serialization/resources/gdpr/client/requests/{SupportRequest.js → SupportRequestCreateRequest.js} +5 -5
- package/serialization/resources/gdpr/client/requests/SupportRequestCreateRequest.js.map +1 -0
- package/serialization/resources/gdpr/client/requests/index.d.ts +1 -1
- package/serialization/resources/gdpr/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/gdpr/client/requests/index.js +3 -3
- package/serialization/resources/gdpr/client/requests/index.js.map +1 -1
- package/serialization/resources/gdpr/types/SupportRequestCreateRequestType.d.ts +11 -0
- package/serialization/resources/gdpr/types/SupportRequestCreateRequestType.d.ts.map +1 -0
- package/serialization/resources/gdpr/types/{SupportRequestType.js → SupportRequestCreateRequestType.js} +3 -3
- package/serialization/resources/gdpr/types/SupportRequestCreateRequestType.js.map +1 -0
- package/serialization/resources/gdpr/types/index.d.ts +1 -1
- package/serialization/resources/gdpr/types/index.d.ts.map +1 -1
- package/serialization/resources/gdpr/types/index.js +1 -1
- package/serialization/resources/gdpr/types/index.js.map +1 -1
- package/serialization/resources/keys/client/requests/{KeyGenerateInput.d.ts → KeyGenerateRequest.d.ts} +3 -3
- package/serialization/resources/keys/client/requests/KeyGenerateRequest.d.ts.map +1 -0
- package/serialization/resources/keys/client/requests/{KeyGenerateInput.js → KeyGenerateRequest.js} +3 -3
- package/serialization/resources/keys/client/requests/KeyGenerateRequest.js.map +1 -0
- package/serialization/resources/keys/client/requests/{KeyImportSecretInput.d.ts → KeyImportRequest.d.ts} +3 -3
- package/serialization/resources/keys/client/requests/KeyImportRequest.d.ts.map +1 -0
- package/serialization/resources/keys/client/requests/{KeyImportSecretInput.js → KeyImportRequest.js} +3 -3
- package/serialization/resources/keys/client/requests/KeyImportRequest.js.map +1 -0
- package/serialization/resources/keys/client/requests/KeyUpdateAnnotationsRequest.d.ts +13 -0
- package/serialization/resources/keys/client/requests/KeyUpdateAnnotationsRequest.d.ts.map +1 -0
- package/serialization/resources/{drafts/client/requests/DraftUpdateAnnotationsInput.js → keys/client/requests/KeyUpdateAnnotationsRequest.js} +3 -3
- package/serialization/resources/keys/client/requests/KeyUpdateAnnotationsRequest.js.map +1 -0
- package/serialization/resources/keys/client/requests/{KeyUpdateLabelsInput.d.ts → KeyUpdateLabelsRequest.d.ts} +3 -3
- package/serialization/resources/keys/client/requests/KeyUpdateLabelsRequest.d.ts.map +1 -0
- package/serialization/resources/{drafts/client/requests/DraftUpdateLabelsInput.js → keys/client/requests/KeyUpdateLabelsRequest.js} +3 -3
- package/serialization/resources/keys/client/requests/KeyUpdateLabelsRequest.js.map +1 -0
- package/serialization/resources/keys/client/requests/index.d.ts +4 -4
- package/serialization/resources/keys/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/keys/client/requests/index.js +9 -9
- package/serialization/resources/keys/client/requests/index.js.map +1 -1
- package/serialization/resources/presentations/client/requests/{PresentationExport.d.ts → PresentationExportRequest.d.ts} +3 -3
- package/serialization/resources/presentations/client/requests/PresentationExportRequest.d.ts.map +1 -0
- package/serialization/resources/presentations/client/requests/{PresentationExport.js → PresentationExportRequest.js} +3 -3
- package/serialization/resources/presentations/client/requests/PresentationExportRequest.js.map +1 -0
- package/serialization/resources/presentations/client/requests/{PresentationInput.d.ts → PresentationImportRequest.d.ts} +3 -3
- package/serialization/resources/presentations/client/requests/PresentationImportRequest.d.ts.map +1 -0
- package/serialization/resources/{credentials/client/requests/CredentialInput.js → presentations/client/requests/PresentationImportRequest.js} +3 -3
- package/serialization/resources/presentations/client/requests/PresentationImportRequest.js.map +1 -0
- package/serialization/resources/presentations/client/requests/PresentationIssueRequest.d.ts +17 -0
- package/serialization/resources/presentations/client/requests/PresentationIssueRequest.d.ts.map +1 -0
- package/serialization/resources/presentations/client/requests/{PresentationIssue.js → PresentationIssueRequest.js} +5 -5
- package/serialization/resources/presentations/client/requests/PresentationIssueRequest.js.map +1 -0
- package/serialization/resources/{didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.d.ts → presentations/client/requests/PresentationUpdateAnnotationsRequest.d.ts} +3 -3
- package/serialization/resources/presentations/client/requests/PresentationUpdateAnnotationsRequest.d.ts.map +1 -0
- package/serialization/resources/{didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.js → presentations/client/requests/PresentationUpdateAnnotationsRequest.js} +3 -3
- package/serialization/resources/presentations/client/requests/PresentationUpdateAnnotationsRequest.js.map +1 -0
- package/serialization/resources/presentations/client/requests/PresentationUpdateLabelsRequest.d.ts +13 -0
- package/serialization/resources/presentations/client/requests/PresentationUpdateLabelsRequest.d.ts.map +1 -0
- package/serialization/resources/{didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.js → presentations/client/requests/PresentationUpdateLabelsRequest.js} +3 -3
- package/serialization/resources/presentations/client/requests/PresentationUpdateLabelsRequest.js.map +1 -0
- package/serialization/resources/presentations/client/requests/index.d.ts +5 -5
- package/serialization/resources/presentations/client/requests/index.d.ts.map +1 -1
- package/serialization/resources/presentations/client/requests/index.js +11 -11
- package/serialization/resources/presentations/client/requests/index.js.map +1 -1
- package/serialization/resources/presentations/types/PresentationIssueRequestDidMethod.d.ts +11 -0
- package/serialization/resources/presentations/types/PresentationIssueRequestDidMethod.d.ts.map +1 -0
- package/serialization/resources/{drafts/types/DraftIssueDidMethod.js → presentations/types/PresentationIssueRequestDidMethod.js} +3 -3
- package/serialization/resources/presentations/types/PresentationIssueRequestDidMethod.js.map +1 -0
- package/serialization/resources/presentations/types/index.d.ts +1 -1
- package/serialization/resources/presentations/types/index.d.ts.map +1 -1
- package/serialization/resources/presentations/types/index.js +1 -1
- package/serialization/resources/presentations/types/index.js.map +1 -1
- package/serialization/types/BadRequestProblems.d.ts +5 -1
- package/serialization/types/BadRequestProblems.d.ts.map +1 -1
- package/serialization/types/BadRequestProblems.js +2 -0
- package/serialization/types/BadRequestProblems.js.map +1 -1
- package/serialization/types/Credential.d.ts +0 -2
- package/serialization/types/Credential.d.ts.map +1 -1
- package/serialization/types/Credential.js +0 -2
- package/serialization/types/Credential.js.map +1 -1
- package/serialization/types/CredentialFilterData.d.ts +0 -4
- package/serialization/types/CredentialFilterData.d.ts.map +1 -1
- package/serialization/types/CredentialFilterData.js +0 -4
- package/serialization/types/CredentialFilterData.js.map +1 -1
- package/serialization/types/CredentialSortField.d.ts +1 -1
- package/serialization/types/CredentialSortField.d.ts.map +1 -1
- package/serialization/types/CredentialSortField.js +0 -2
- package/serialization/types/CredentialSortField.js.map +1 -1
- package/serialization/types/Draft.d.ts +0 -2
- package/serialization/types/Draft.d.ts.map +1 -1
- package/serialization/types/Draft.js +0 -2
- package/serialization/types/Draft.js.map +1 -1
- package/serialization/types/DraftFilterData.d.ts +0 -4
- package/serialization/types/DraftFilterData.d.ts.map +1 -1
- package/serialization/types/DraftFilterData.js +0 -4
- package/serialization/types/DraftFilterData.js.map +1 -1
- package/serialization/types/DraftSortField.d.ts +1 -1
- package/serialization/types/DraftSortField.d.ts.map +1 -1
- package/serialization/types/DraftSortField.js +0 -2
- package/serialization/types/DraftSortField.js.map +1 -1
- package/serialization/types/File_.d.ts +1 -1
- package/serialization/types/File_.d.ts.map +1 -1
- package/serialization/types/File_.js +1 -1
- package/serialization/types/File_.js.map +1 -1
- package/serialization/types/Presentation.d.ts +0 -1
- package/serialization/types/Presentation.d.ts.map +1 -1
- package/serialization/types/Presentation.js +0 -1
- package/serialization/types/Presentation.js.map +1 -1
- package/serialization/types/PresentationFilterData.d.ts +0 -2
- package/serialization/types/PresentationFilterData.d.ts.map +1 -1
- package/serialization/types/PresentationFilterData.js +0 -2
- package/serialization/types/PresentationFilterData.js.map +1 -1
- package/serialization/types/PresentationSortField.d.ts +1 -1
- package/serialization/types/PresentationSortField.d.ts.map +1 -1
- package/serialization/types/PresentationSortField.js +0 -1
- package/serialization/types/PresentationSortField.js.map +1 -1
- package/serialization/types/ProblemBadRequestPayloadTooLarge.d.ts +18 -0
- package/serialization/types/ProblemBadRequestPayloadTooLarge.d.ts.map +1 -0
- package/serialization/types/{NestedInUri.js → ProblemBadRequestPayloadTooLarge.js} +9 -4
- package/serialization/types/ProblemBadRequestPayloadTooLarge.js.map +1 -0
- 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/api/resources/apiKeys/client/requests/ApiKeyInput.d.ts.map +0 -1
- package/api/resources/apiKeys/client/requests/ApiKeyInput.js.map +0 -1
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.d.ts.map +0 -1
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.js.map +0 -1
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.d.ts.map +0 -1
- package/api/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.js.map +0 -1
- package/api/resources/credentials/client/requests/CredentialInput.d.ts.map +0 -1
- package/api/resources/credentials/client/requests/CredentialInput.js.map +0 -1
- package/api/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.d.ts.map +0 -1
- package/api/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.js +0 -6
- package/api/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.js.map +0 -1
- package/api/resources/credentials/client/requests/CredentialUpdateLabelsInput.d.ts.map +0 -1
- package/api/resources/credentials/client/requests/CredentialUpdateLabelsInput.js.map +0 -1
- package/api/resources/didcommMessages/client/requests/DidCommMessageSendInput.d.ts.map +0 -1
- package/api/resources/didcommMessages/client/requests/DidCommMessageSendInput.js.map +0 -1
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.d.ts.map +0 -1
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.js +0 -6
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.js.map +0 -1
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.d.ts.map +0 -1
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.js +0 -6
- package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.js.map +0 -1
- package/api/resources/drafts/client/requests/DraftExport.d.ts.map +0 -1
- package/api/resources/drafts/client/requests/DraftExport.js.map +0 -1
- package/api/resources/drafts/client/requests/DraftInput.d.ts.map +0 -1
- package/api/resources/drafts/client/requests/DraftInput.js.map +0 -1
- package/api/resources/drafts/client/requests/DraftIssue.d.ts.map +0 -1
- package/api/resources/drafts/client/requests/DraftIssue.js +0 -6
- package/api/resources/drafts/client/requests/DraftIssue.js.map +0 -1
- package/api/resources/drafts/client/requests/DraftUpdateAnnotationsInput.d.ts.map +0 -1
- package/api/resources/drafts/client/requests/DraftUpdateAnnotationsInput.js +0 -6
- package/api/resources/drafts/client/requests/DraftUpdateAnnotationsInput.js.map +0 -1
- package/api/resources/drafts/client/requests/DraftUpdateInput.d.ts.map +0 -1
- package/api/resources/drafts/client/requests/DraftUpdateInput.js +0 -6
- package/api/resources/drafts/client/requests/DraftUpdateInput.js.map +0 -1
- package/api/resources/drafts/client/requests/DraftUpdateLabelsInput.d.ts.map +0 -1
- package/api/resources/drafts/client/requests/DraftUpdateLabelsInput.js +0 -6
- package/api/resources/drafts/client/requests/DraftUpdateLabelsInput.js.map +0 -1
- package/api/resources/drafts/types/DraftIssueDidMethod.d.ts.map +0 -1
- package/api/resources/drafts/types/DraftIssueDidMethod.js.map +0 -1
- package/api/resources/files/client/requests/FileInput.d.ts.map +0 -1
- package/api/resources/files/client/requests/FileInput.js +0 -6
- package/api/resources/files/client/requests/FileInput.js.map +0 -1
- package/api/resources/files/client/requests/FileUpdateAnnotationsInput.d.ts.map +0 -1
- package/api/resources/files/client/requests/FileUpdateAnnotationsInput.js +0 -6
- package/api/resources/files/client/requests/FileUpdateAnnotationsInput.js.map +0 -1
- package/api/resources/files/client/requests/FileUpdateLabelsInput.d.ts.map +0 -1
- package/api/resources/files/client/requests/FileUpdateLabelsInput.js +0 -6
- package/api/resources/files/client/requests/FileUpdateLabelsInput.js.map +0 -1
- package/api/resources/gdpr/client/requests/SupportRequest.d.ts.map +0 -1
- package/api/resources/gdpr/client/requests/SupportRequest.js +0 -6
- package/api/resources/gdpr/client/requests/SupportRequest.js.map +0 -1
- package/api/resources/gdpr/types/SupportRequestType.d.ts.map +0 -1
- package/api/resources/gdpr/types/SupportRequestType.js.map +0 -1
- package/api/resources/keys/client/requests/KeyGenerateInput.d.ts.map +0 -1
- package/api/resources/keys/client/requests/KeyGenerateInput.js +0 -6
- package/api/resources/keys/client/requests/KeyGenerateInput.js.map +0 -1
- package/api/resources/keys/client/requests/KeyImportSecretInput.d.ts.map +0 -1
- package/api/resources/keys/client/requests/KeyImportSecretInput.js +0 -6
- package/api/resources/keys/client/requests/KeyImportSecretInput.js.map +0 -1
- package/api/resources/keys/client/requests/KeyUpdateAnnotationsInput.d.ts.map +0 -1
- package/api/resources/keys/client/requests/KeyUpdateAnnotationsInput.js +0 -6
- package/api/resources/keys/client/requests/KeyUpdateAnnotationsInput.js.map +0 -1
- package/api/resources/keys/client/requests/KeyUpdateLabelsInput.d.ts.map +0 -1
- package/api/resources/keys/client/requests/KeyUpdateLabelsInput.js +0 -6
- package/api/resources/keys/client/requests/KeyUpdateLabelsInput.js.map +0 -1
- package/api/resources/presentations/client/requests/PresentationExport.d.ts.map +0 -1
- package/api/resources/presentations/client/requests/PresentationExport.js +0 -6
- package/api/resources/presentations/client/requests/PresentationExport.js.map +0 -1
- package/api/resources/presentations/client/requests/PresentationInput.d.ts.map +0 -1
- package/api/resources/presentations/client/requests/PresentationInput.js +0 -6
- package/api/resources/presentations/client/requests/PresentationInput.js.map +0 -1
- package/api/resources/presentations/client/requests/PresentationIssue.d.ts.map +0 -1
- package/api/resources/presentations/client/requests/PresentationIssue.js +0 -6
- package/api/resources/presentations/client/requests/PresentationIssue.js.map +0 -1
- package/api/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.d.ts +0 -52
- package/api/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.d.ts.map +0 -1
- package/api/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.js +0 -6
- package/api/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.js.map +0 -1
- package/api/resources/presentations/client/requests/PresentationUpdateLabelsInput.d.ts +0 -52
- package/api/resources/presentations/client/requests/PresentationUpdateLabelsInput.d.ts.map +0 -1
- package/api/resources/presentations/client/requests/PresentationUpdateLabelsInput.js +0 -6
- package/api/resources/presentations/client/requests/PresentationUpdateLabelsInput.js.map +0 -1
- package/api/resources/presentations/types/PresentationIssueDidMethod.d.ts +0 -12
- package/api/resources/presentations/types/PresentationIssueDidMethod.d.ts.map +0 -1
- package/api/resources/presentations/types/PresentationIssueDidMethod.js.map +0 -1
- package/api/types/CredentialFilterDataLinkedCredentials.d.ts +0 -20
- package/api/types/CredentialFilterDataLinkedCredentials.d.ts.map +0 -1
- package/api/types/CredentialFilterDataLinkedCredentials.js +0 -6
- package/api/types/CredentialFilterDataLinkedCredentials.js.map +0 -1
- package/api/types/CredentialFilterDataLinkedFiles.d.ts +0 -20
- package/api/types/CredentialFilterDataLinkedFiles.d.ts.map +0 -1
- package/api/types/CredentialFilterDataLinkedFiles.js +0 -6
- package/api/types/CredentialFilterDataLinkedFiles.js.map +0 -1
- package/api/types/DraftFilterDataLinkedCredentials.d.ts +0 -20
- package/api/types/DraftFilterDataLinkedCredentials.d.ts.map +0 -1
- package/api/types/DraftFilterDataLinkedCredentials.js +0 -6
- package/api/types/DraftFilterDataLinkedCredentials.js.map +0 -1
- package/api/types/DraftFilterDataLinkedDrafts.d.ts +0 -20
- package/api/types/DraftFilterDataLinkedDrafts.d.ts.map +0 -1
- package/api/types/DraftFilterDataLinkedDrafts.js +0 -6
- package/api/types/DraftFilterDataLinkedDrafts.js.map +0 -1
- package/api/types/NestedInUri.d.ts +0 -11
- package/api/types/NestedInUri.d.ts.map +0 -1
- package/api/types/NestedInUri.js +0 -6
- package/api/types/NestedInUri.js.map +0 -1
- package/api/types/NestedNotInUri.d.ts +0 -11
- package/api/types/NestedNotInUri.d.ts.map +0 -1
- package/api/types/NestedNotInUri.js +0 -6
- package/api/types/NestedNotInUri.js.map +0 -1
- package/api/types/PresentationFilterDataLinkedCredentials.d.ts +0 -14
- package/api/types/PresentationFilterDataLinkedCredentials.d.ts.map +0 -1
- package/api/types/PresentationFilterDataLinkedCredentials.js +0 -6
- package/api/types/PresentationFilterDataLinkedCredentials.js.map +0 -1
- package/documents/credential/draft.d.ts +0 -23
- package/documents/credential/draft.d.ts.map +0 -1
- package/documents/credential/draft.js.map +0 -1
- package/documents/credential/verifiable.d.ts.map +0 -1
- package/documents/credential/verifiable.js.map +0 -1
- package/serialization/resources/apiKeys/client/requests/ApiKeyInput.d.ts.map +0 -1
- package/serialization/resources/apiKeys/client/requests/ApiKeyInput.js.map +0 -1
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.d.ts +0 -13
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.d.ts.map +0 -1
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateAnnotationsInput.js.map +0 -1
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.d.ts +0 -13
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.d.ts.map +0 -1
- package/serialization/resources/apiKeys/client/requests/ApiKeyUpdateLabelsInput.js.map +0 -1
- package/serialization/resources/credentials/client/requests/CredentialInput.d.ts.map +0 -1
- package/serialization/resources/credentials/client/requests/CredentialInput.js.map +0 -1
- package/serialization/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.d.ts +0 -13
- package/serialization/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.d.ts.map +0 -1
- package/serialization/resources/credentials/client/requests/CredentialUpdateAnnotationsInput.js.map +0 -1
- package/serialization/resources/credentials/client/requests/CredentialUpdateLabelsInput.d.ts +0 -13
- package/serialization/resources/credentials/client/requests/CredentialUpdateLabelsInput.d.ts.map +0 -1
- package/serialization/resources/credentials/client/requests/CredentialUpdateLabelsInput.js.map +0 -1
- package/serialization/resources/didcommMessages/client/requests/DidCommMessageSendInput.d.ts.map +0 -1
- package/serialization/resources/didcommMessages/client/requests/DidCommMessageSendInput.js.map +0 -1
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.d.ts.map +0 -1
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsInput.js.map +0 -1
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.d.ts +0 -13
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.d.ts.map +0 -1
- package/serialization/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsInput.js.map +0 -1
- package/serialization/resources/drafts/client/requests/DraftExport.d.ts.map +0 -1
- package/serialization/resources/drafts/client/requests/DraftExport.js.map +0 -1
- package/serialization/resources/drafts/client/requests/DraftInput.d.ts.map +0 -1
- package/serialization/resources/drafts/client/requests/DraftInput.js.map +0 -1
- package/serialization/resources/drafts/client/requests/DraftIssue.d.ts.map +0 -1
- package/serialization/resources/drafts/client/requests/DraftIssue.js.map +0 -1
- package/serialization/resources/drafts/client/requests/DraftUpdateAnnotationsInput.d.ts +0 -13
- package/serialization/resources/drafts/client/requests/DraftUpdateAnnotationsInput.d.ts.map +0 -1
- package/serialization/resources/drafts/client/requests/DraftUpdateAnnotationsInput.js.map +0 -1
- package/serialization/resources/drafts/client/requests/DraftUpdateInput.d.ts.map +0 -1
- package/serialization/resources/drafts/client/requests/DraftUpdateInput.js.map +0 -1
- package/serialization/resources/drafts/client/requests/DraftUpdateLabelsInput.d.ts.map +0 -1
- package/serialization/resources/drafts/client/requests/DraftUpdateLabelsInput.js.map +0 -1
- package/serialization/resources/drafts/types/DraftIssueDidMethod.d.ts +0 -11
- package/serialization/resources/drafts/types/DraftIssueDidMethod.d.ts.map +0 -1
- package/serialization/resources/drafts/types/DraftIssueDidMethod.js.map +0 -1
- package/serialization/resources/files/client/requests/FileInput.d.ts.map +0 -1
- package/serialization/resources/files/client/requests/FileInput.js.map +0 -1
- package/serialization/resources/files/client/requests/FileUpdateAnnotationsInput.d.ts +0 -13
- package/serialization/resources/files/client/requests/FileUpdateAnnotationsInput.d.ts.map +0 -1
- package/serialization/resources/files/client/requests/FileUpdateAnnotationsInput.js.map +0 -1
- package/serialization/resources/files/client/requests/FileUpdateLabelsInput.d.ts +0 -13
- package/serialization/resources/files/client/requests/FileUpdateLabelsInput.d.ts.map +0 -1
- package/serialization/resources/files/client/requests/FileUpdateLabelsInput.js.map +0 -1
- package/serialization/resources/gdpr/client/requests/SupportRequest.d.ts +0 -15
- package/serialization/resources/gdpr/client/requests/SupportRequest.d.ts.map +0 -1
- package/serialization/resources/gdpr/client/requests/SupportRequest.js.map +0 -1
- package/serialization/resources/gdpr/types/SupportRequestType.d.ts +0 -11
- package/serialization/resources/gdpr/types/SupportRequestType.d.ts.map +0 -1
- package/serialization/resources/gdpr/types/SupportRequestType.js.map +0 -1
- package/serialization/resources/keys/client/requests/KeyGenerateInput.d.ts.map +0 -1
- package/serialization/resources/keys/client/requests/KeyGenerateInput.js.map +0 -1
- package/serialization/resources/keys/client/requests/KeyImportSecretInput.d.ts.map +0 -1
- package/serialization/resources/keys/client/requests/KeyImportSecretInput.js.map +0 -1
- package/serialization/resources/keys/client/requests/KeyUpdateAnnotationsInput.d.ts +0 -13
- package/serialization/resources/keys/client/requests/KeyUpdateAnnotationsInput.d.ts.map +0 -1
- package/serialization/resources/keys/client/requests/KeyUpdateAnnotationsInput.js.map +0 -1
- package/serialization/resources/keys/client/requests/KeyUpdateLabelsInput.d.ts.map +0 -1
- package/serialization/resources/keys/client/requests/KeyUpdateLabelsInput.js.map +0 -1
- package/serialization/resources/presentations/client/requests/PresentationExport.d.ts.map +0 -1
- package/serialization/resources/presentations/client/requests/PresentationExport.js.map +0 -1
- package/serialization/resources/presentations/client/requests/PresentationInput.d.ts.map +0 -1
- package/serialization/resources/presentations/client/requests/PresentationInput.js.map +0 -1
- package/serialization/resources/presentations/client/requests/PresentationIssue.d.ts +0 -17
- package/serialization/resources/presentations/client/requests/PresentationIssue.d.ts.map +0 -1
- package/serialization/resources/presentations/client/requests/PresentationIssue.js.map +0 -1
- package/serialization/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.d.ts.map +0 -1
- package/serialization/resources/presentations/client/requests/PresentationUpdateAnnotationsInput.js.map +0 -1
- package/serialization/resources/presentations/client/requests/PresentationUpdateLabelsInput.d.ts +0 -13
- package/serialization/resources/presentations/client/requests/PresentationUpdateLabelsInput.d.ts.map +0 -1
- package/serialization/resources/presentations/client/requests/PresentationUpdateLabelsInput.js.map +0 -1
- package/serialization/resources/presentations/types/PresentationIssueDidMethod.d.ts +0 -11
- package/serialization/resources/presentations/types/PresentationIssueDidMethod.d.ts.map +0 -1
- package/serialization/resources/presentations/types/PresentationIssueDidMethod.js.map +0 -1
- package/serialization/types/CredentialFilterDataLinkedCredentials.d.ts +0 -27
- package/serialization/types/CredentialFilterDataLinkedCredentials.d.ts.map +0 -1
- package/serialization/types/CredentialFilterDataLinkedCredentials.js +0 -56
- package/serialization/types/CredentialFilterDataLinkedCredentials.js.map +0 -1
- package/serialization/types/CredentialFilterDataLinkedFiles.d.ts +0 -27
- package/serialization/types/CredentialFilterDataLinkedFiles.d.ts.map +0 -1
- package/serialization/types/CredentialFilterDataLinkedFiles.js +0 -56
- package/serialization/types/CredentialFilterDataLinkedFiles.js.map +0 -1
- package/serialization/types/DraftFilterDataLinkedCredentials.d.ts +0 -27
- package/serialization/types/DraftFilterDataLinkedCredentials.d.ts.map +0 -1
- package/serialization/types/DraftFilterDataLinkedCredentials.js +0 -56
- package/serialization/types/DraftFilterDataLinkedCredentials.js.map +0 -1
- package/serialization/types/DraftFilterDataLinkedDrafts.d.ts +0 -27
- package/serialization/types/DraftFilterDataLinkedDrafts.d.ts.map +0 -1
- package/serialization/types/DraftFilterDataLinkedDrafts.js +0 -56
- package/serialization/types/DraftFilterDataLinkedDrafts.js.map +0 -1
- package/serialization/types/NestedInUri.d.ts +0 -13
- package/serialization/types/NestedInUri.d.ts.map +0 -1
- package/serialization/types/NestedInUri.js.map +0 -1
- package/serialization/types/NestedNotInUri.d.ts +0 -13
- package/serialization/types/NestedNotInUri.d.ts.map +0 -1
- package/serialization/types/NestedNotInUri.js +0 -44
- package/serialization/types/NestedNotInUri.js.map +0 -1
- package/serialization/types/PresentationFilterDataLinkedCredentials.d.ts +0 -19
- package/serialization/types/PresentationFilterDataLinkedCredentials.d.ts.map +0 -1
- package/serialization/types/PresentationFilterDataLinkedCredentials.js +0 -52
- package/serialization/types/PresentationFilterDataLinkedCredentials.js.map +0 -1
package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsRequest.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
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 DidcommMessageUpdateAnnotationsRequest {
|
|
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](https://opensource.zalando.com/restful-api-guidelines/#230) for further details.
|
|
30
|
+
*/
|
|
31
|
+
idempotencyKey?: string;
|
|
32
|
+
/**
|
|
33
|
+
* From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).
|
|
34
|
+
* The **If-Match** header field is used to declare a list of identifiers that
|
|
35
|
+
* are required to match the current resource version identifier in at least
|
|
36
|
+
* one position as a pre-condition for executing the request on the server
|
|
37
|
+
* side. This behavior is used to validate and reject optimistic updates, by
|
|
38
|
+
* checking if the resource version a consumer has based his changes on is
|
|
39
|
+
* outdated on arrival of the change request to prevent lost updates.
|
|
40
|
+
*
|
|
41
|
+
* If the pre-condition fails the server will respond with status code **412**
|
|
42
|
+
* (Precondition Failed). See [RFC 9110 Section 13.1.1][rfc-9110-13.1.1] as
|
|
43
|
+
* well as [API Guideline Rule #182][api-182] for further details.
|
|
44
|
+
*
|
|
45
|
+
* [rfc-9110-13.1.1]: <https://tools.ietf.org/html/rfc9110#section-13.1.1>
|
|
46
|
+
* [api-182]: <https://opensource.zalando.com/restful-api-guidelines/#182>.
|
|
47
|
+
*/
|
|
48
|
+
ifMatch: string;
|
|
49
|
+
/** The annotations of the resource. */
|
|
50
|
+
annotations: Record<string, string>;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=DidcommMessageUpdateAnnotationsRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidcommMessageUpdateAnnotationsRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;GAQG;AACH,MAAM,WAAW,sCAAsC;IACnD;;;;;;;;;;;;;;;;OAgBG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;;;;;OAeG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC"}
|
package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsRequest.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidcommMessageUpdateAnnotationsRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/didcommMessages/client/requests/DidcommMessageUpdateAnnotationsRequest.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 DidcommMessageUpdateAnnotationsRequest {\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](https://opensource.zalando.com/restful-api-guidelines/#230) for further details.\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 * [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,52 @@
|
|
|
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 DidcommMessageUpdateLabelsRequest {
|
|
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](https://opensource.zalando.com/restful-api-guidelines/#230) for further details.
|
|
30
|
+
*/
|
|
31
|
+
idempotencyKey?: string;
|
|
32
|
+
/**
|
|
33
|
+
* From [Zalando RESTful API Guidelines - models/headers-1.0.0.yaml](https://opensource.zalando.com/restful-api-guidelines/models/headers-1.0.0.yaml).
|
|
34
|
+
* The **If-Match** header field is used to declare a list of identifiers that
|
|
35
|
+
* are required to match the current resource version identifier in at least
|
|
36
|
+
* one position as a pre-condition for executing the request on the server
|
|
37
|
+
* side. This behavior is used to validate and reject optimistic updates, by
|
|
38
|
+
* checking if the resource version a consumer has based his changes on is
|
|
39
|
+
* outdated on arrival of the change request to prevent lost updates.
|
|
40
|
+
*
|
|
41
|
+
* If the pre-condition fails the server will respond with status code **412**
|
|
42
|
+
* (Precondition Failed). See [RFC 9110 Section 13.1.1][rfc-9110-13.1.1] as
|
|
43
|
+
* well as [API Guideline Rule #182][api-182] for further details.
|
|
44
|
+
*
|
|
45
|
+
* [rfc-9110-13.1.1]: <https://tools.ietf.org/html/rfc9110#section-13.1.1>
|
|
46
|
+
* [api-182]: <https://opensource.zalando.com/restful-api-guidelines/#182>.
|
|
47
|
+
*/
|
|
48
|
+
ifMatch: string;
|
|
49
|
+
/** The labels of the resource. */
|
|
50
|
+
labels: Record<string, string>;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=DidcommMessageUpdateLabelsRequest.d.ts.map
|
package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsRequest.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidcommMessageUpdateLabelsRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;GAQG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;;;;;;;;;;;;;;;OAgBG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;;;;;OAeG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC"}
|
package/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsRequest.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DidcommMessageUpdateLabelsRequest.js","sourceRoot":"","sources":["../../../../../../src/api/resources/didcommMessages/client/requests/DidcommMessageUpdateLabelsRequest.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 DidcommMessageUpdateLabelsRequest {\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](https://opensource.zalando.com/restful-api-guidelines/#230) for further details.\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 * [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"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { type DidcommMessageSearchRequest } from './DidcommMessageSearchRequest';
|
|
2
|
-
export { type
|
|
2
|
+
export { type DidCommMessageSendRequest } from './DidCommMessageSendRequest';
|
|
3
3
|
export { type DidcommMessageLatestRequest } from './DidcommMessageLatestRequest';
|
|
4
4
|
export { type DidcommMessageDeleteRequest } from './DidcommMessageDeleteRequest';
|
|
5
|
-
export { type
|
|
6
|
-
export { type
|
|
5
|
+
export { type DidcommMessageUpdateAnnotationsRequest } from './DidcommMessageUpdateAnnotationsRequest';
|
|
6
|
+
export { type DidcommMessageUpdateLabelsRequest } from './DidcommMessageUpdateLabelsRequest';
|
|
7
7
|
export { type DidcommMessageRestoreRequest } from './DidcommMessageRestoreRequest';
|
|
8
8
|
export { type DidcommMessageHistoryRequest } from './DidcommMessageHistoryRequest';
|
|
9
9
|
export { type DidcommMessageRevisionRequest } from './DidcommMessageRevisionRequest';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/didcommMessages/client/requests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/resources/didcommMessages/client/requests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,KAAK,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AACvG,OAAO,EAAE,KAAK,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAC7F,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/resources/didcommMessages/client/requests/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type DidcommMessageSearchRequest } from './DidcommMessageSearchRequest';\nexport { type
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/api/resources/didcommMessages/client/requests/index.ts"],"names":[],"mappings":"","sourcesContent":["export { type DidcommMessageSearchRequest } from './DidcommMessageSearchRequest';\nexport { type DidCommMessageSendRequest } from './DidCommMessageSendRequest';\nexport { type DidcommMessageLatestRequest } from './DidcommMessageLatestRequest';\nexport { type DidcommMessageDeleteRequest } from './DidcommMessageDeleteRequest';\nexport { type DidcommMessageUpdateAnnotationsRequest } from './DidcommMessageUpdateAnnotationsRequest';\nexport { type DidcommMessageUpdateLabelsRequest } from './DidcommMessageUpdateLabelsRequest';\nexport { type DidcommMessageRestoreRequest } from './DidcommMessageRestoreRequest';\nexport { type DidcommMessageHistoryRequest } from './DidcommMessageHistoryRequest';\nexport { type DidcommMessageRevisionRequest } from './DidcommMessageRevisionRequest';\n"]}
|
|
@@ -88,7 +88,7 @@ class Dids {
|
|
|
88
88
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
89
89
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, 'dids/self'),
|
|
90
90
|
method: 'GET',
|
|
91
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
91
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', '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),
|
|
92
92
|
contentType: 'application/json',
|
|
93
93
|
requestType: 'json',
|
|
94
94
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../src/api/resources/dids/client/Client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uEAAyD;AACzD,uDAAyC;AACzC,wDAA0C;AAC1C,wDAA+B;AAC/B,6EAA+D;AAC/D,iEAAmD;AAuBnD;;GAEG;AACH,MAAa,IAAI;IACb,YAA+B,WAAyB,EAAE;QAA3B,aAAQ,GAAR,QAAQ,CAAmB;IAAG,CAAC;IAE9D;;;;;;;;;;;;;;;OAeG;IACI,kBAAkB,CACrB,UAA6C,EAAE,EAC/C,cAAoC;QAEpC,OAAO,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;IACpG,CAAC;IAEa,oBAAoB;6DAC9B,UAA6C,EAAE,EAC/C,cAAoC;;YAEpC,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;YAChC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAA,IAAI,CAAC,QAAQ,CAAC,OAAO,mCA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+CAA+C,CAAC,CAAC;gBAC1F,KAAK,SAAS;oBACV,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC;wBAC1B,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,YAAY;wBACrC,WAAW,EAAE,SAAS,CAAC,WAAW;qBACrC,CAAC,CAAC;YACX,CAAC;QACL,CAAC;KAAA;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;AAtJD,oBAsJC","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 Dids {\n export interface Options {\n environment?: core.Supplier<environments.TruvityEnvironment | string>;\n /** Specify a custom URL to connect the client to. */\n baseUrl?: core.Supplier<string>;\n apiKey?: core.Supplier<string | undefined>;\n fetcher?: core.FetchFunction;\n }\n\n export 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.\n */\nexport class Dids {\n constructor(protected readonly _options: Dids.Options = {}) {}\n\n /**\n * Return the tenant's DID(did:web) document.\n * Comparing to [DIDDocumentGet](#tag/desk/operation/DIDDocumentGet) endpoint, this one returns the tenant's DID(did:web) document for the authenticated tenant only.\n *\n * @param {Truvity.DidDocumentSelfGetRequest} request\n * @param {Dids.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.dids.didDocumentSelfGet()\n */\n public didDocumentSelfGet(\n request: Truvity.DidDocumentSelfGetRequest = {},\n requestOptions?: Dids.RequestOptions,\n ): core.HttpResponsePromise<Truvity.DidDocument> {\n return core.HttpResponsePromise.fromPromise(this.__didDocumentSelfGet(request, requestOptions));\n }\n\n private async __didDocumentSelfGet(\n request: Truvity.DidDocumentSelfGetRequest = {},\n requestOptions?: Dids.RequestOptions,\n ): Promise<core.WithRawResponse<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.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.TruvityEnvironment.Default,\n 'dids/self',\n ),\n method: 'GET',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': '0.36.2',\n 'User-Agent': '@truvity/sdk/0.36.2',\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 {\n data: serializers.DidDocument.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n rawResponse: _response.rawResponse,\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 _response.rawResponse,\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n _response.rawResponse,\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n _response.rawResponse,\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 _response.rawResponse,\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 _response.rawResponse,\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\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 rawResponse: _response.rawResponse,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError('Timeout exceeded when calling GET /dids/self.');\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n rawResponse: _response.rawResponse,\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/dids/client/Client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uEAAyD;AACzD,uDAAyC;AACzC,wDAA0C;AAC1C,wDAA+B;AAC/B,6EAA+D;AAC/D,iEAAmD;AAuBnD;;GAEG;AACH,MAAa,IAAI;IACb,YAA+B,WAAyB,EAAE;QAA3B,aAAQ,GAAR,QAAQ,CAAmB;IAAG,CAAC;IAE9D;;;;;;;;;;;;;;;OAeG;IACI,kBAAkB,CACrB,UAA6C,EAAE,EAC/C,cAAoC;QAEpC,OAAO,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;IACpG,CAAC;IAEa,oBAAoB;6DAC9B,UAA6C,EAAE,EAC/C,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,MAAA,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,mCAC5C,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,mCACpD,YAAY,CAAC,kBAAkB,CAAC,OAAO,EAC3C,WAAW,CACd;gBACD,MAAM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AClE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;QACxC,CAAC;KAAA;CACJ;AAtJD,oBAsJC","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 Dids {\n export interface Options {\n environment?: core.Supplier<environments.TruvityEnvironment | string>;\n /** Specify a custom URL to connect the client to. */\n baseUrl?: core.Supplier<string>;\n apiKey?: core.Supplier<string | undefined>;\n fetcher?: core.FetchFunction;\n }\n\n export 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.\n */\nexport class Dids {\n constructor(protected readonly _options: Dids.Options = {}) {}\n\n /**\n * Return the tenant's DID(did:web) document.\n * Comparing to [DIDDocumentGet](#tag/desk/operation/DIDDocumentGet) endpoint, this one returns the tenant's DID(did:web) document for the authenticated tenant only.\n *\n * @param {Truvity.DidDocumentSelfGetRequest} request\n * @param {Dids.RequestOptions} requestOptions - Request-specific configuration.\n *\n * @throws {@link Truvity.BadRequestError}\n * @throws {@link Truvity.UnauthorizedError}\n * @throws {@link Truvity.ForbiddenError}\n * @throws {@link Truvity.TooManyRequestsError}\n * @throws {@link Truvity.InternalServerError}\n *\n * @example\n * await client.dids.didDocumentSelfGet()\n */\n public didDocumentSelfGet(\n request: Truvity.DidDocumentSelfGetRequest = {},\n requestOptions?: Dids.RequestOptions,\n ): core.HttpResponsePromise<Truvity.DidDocument> {\n return core.HttpResponsePromise.fromPromise(this.__didDocumentSelfGet(request, requestOptions));\n }\n\n private async __didDocumentSelfGet(\n request: Truvity.DidDocumentSelfGetRequest = {},\n requestOptions?: Dids.RequestOptions,\n ): Promise<core.WithRawResponse<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.baseUrl)) ??\n (await core.Supplier.get(this._options.environment)) ??\n environments.TruvityEnvironment.Default,\n 'dids/self',\n ),\n method: 'GET',\n headers: {\n 'X-Fern-Language': 'JavaScript',\n 'X-Fern-SDK-Name': '@truvity/sdk',\n 'X-Fern-SDK-Version': '0.37.0',\n 'User-Agent': '@truvity/sdk/0.37.0',\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 {\n data: serializers.DidDocument.parseOrThrow(_response.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n rawResponse: _response.rawResponse,\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 _response.rawResponse,\n );\n case 401:\n throw new Truvity.UnauthorizedError(\n serializers.UnauthorizedProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n _response.rawResponse,\n );\n case 403:\n throw new Truvity.ForbiddenError(\n serializers.ForbiddenProblems.parseOrThrow(_response.error.body, {\n unrecognizedObjectKeys: 'passthrough',\n allowUnrecognizedUnionMembers: true,\n allowUnrecognizedEnumValues: true,\n breadcrumbsPrefix: ['response'],\n }),\n _response.rawResponse,\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 _response.rawResponse,\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 _response.rawResponse,\n );\n default:\n throw new errors.TruvityError({\n statusCode: _response.error.statusCode,\n body: _response.error.body,\n rawResponse: _response.rawResponse,\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 rawResponse: _response.rawResponse,\n });\n case 'timeout':\n throw new errors.TruvityTimeoutError('Timeout exceeded when calling GET /dids/self.');\n case 'unknown':\n throw new errors.TruvityError({\n message: _response.error.errorMessage,\n rawResponse: _response.rawResponse,\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"]}
|
|
@@ -33,7 +33,7 @@ export declare class Drafts {
|
|
|
33
33
|
/**
|
|
34
34
|
* Creates Draft's resource.
|
|
35
35
|
*
|
|
36
|
-
* @param {Truvity.
|
|
36
|
+
* @param {Truvity.DraftCreateRequest} request
|
|
37
37
|
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
38
|
*
|
|
39
39
|
* @throws {@link Truvity.BadRequestError}
|
|
@@ -57,7 +57,7 @@ export declare class Drafts {
|
|
|
57
57
|
* }
|
|
58
58
|
* })
|
|
59
59
|
*/
|
|
60
|
-
draftCreate(request: Truvity.
|
|
60
|
+
draftCreate(request: Truvity.DraftCreateRequest, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Truvity.ResourceDraft>;
|
|
61
61
|
private __draftCreate;
|
|
62
62
|
/**
|
|
63
63
|
* Search for Drafts with extended filters capabilities.
|
|
@@ -125,7 +125,7 @@ export declare class Drafts {
|
|
|
125
125
|
*
|
|
126
126
|
* @param {string} id - The primary and unique identifier of the resource (inside tenant)
|
|
127
127
|
* according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
|
|
128
|
-
* @param {Truvity.
|
|
128
|
+
* @param {Truvity.DraftUpdateRequest} request
|
|
129
129
|
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
130
130
|
*
|
|
131
131
|
* @throws {@link Truvity.BadRequestError}
|
|
@@ -144,14 +144,14 @@ export declare class Drafts {
|
|
|
144
144
|
* data: {}
|
|
145
145
|
* })
|
|
146
146
|
*/
|
|
147
|
-
draftUpdate(id: string, request: Truvity.
|
|
147
|
+
draftUpdate(id: string, request: Truvity.DraftUpdateRequest, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Truvity.ResourceDraft>;
|
|
148
148
|
private __draftUpdate;
|
|
149
149
|
/**
|
|
150
150
|
* Update annotations of Draft's resource.
|
|
151
151
|
*
|
|
152
152
|
* @param {string} id - The primary and unique identifier of the resource (inside tenant)
|
|
153
153
|
* according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
|
|
154
|
-
* @param {Truvity.
|
|
154
|
+
* @param {Truvity.DraftUpdateAnnotationsRequest} request
|
|
155
155
|
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
156
156
|
*
|
|
157
157
|
* @throws {@link Truvity.BadRequestError}
|
|
@@ -172,7 +172,7 @@ export declare class Drafts {
|
|
|
172
172
|
* }
|
|
173
173
|
* })
|
|
174
174
|
*/
|
|
175
|
-
draftUpdateAnnotations(id: string, request: Truvity.
|
|
175
|
+
draftUpdateAnnotations(id: string, request: Truvity.DraftUpdateAnnotationsRequest, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Truvity.ResourceDraft>;
|
|
176
176
|
private __draftUpdateAnnotations;
|
|
177
177
|
/**
|
|
178
178
|
* This operation issues a Verifiable Credential from a Draft resource. Operational Lifecycle:
|
|
@@ -227,7 +227,7 @@ export declare class Drafts {
|
|
|
227
227
|
*
|
|
228
228
|
* @param {string} id - The primary and unique identifier of the resource (inside tenant)
|
|
229
229
|
* according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
|
|
230
|
-
* @param {Truvity.
|
|
230
|
+
* @param {Truvity.DraftUpdateLabelsRequest} request
|
|
231
231
|
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
232
232
|
*
|
|
233
233
|
* @throws {@link Truvity.BadRequestError}
|
|
@@ -248,7 +248,7 @@ export declare class Drafts {
|
|
|
248
248
|
* }
|
|
249
249
|
* })
|
|
250
250
|
*/
|
|
251
|
-
draftUpdateLabels(id: string, request: Truvity.
|
|
251
|
+
draftUpdateLabels(id: string, request: Truvity.DraftUpdateLabelsRequest, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Truvity.ResourceDraft>;
|
|
252
252
|
private __draftUpdateLabels;
|
|
253
253
|
/**
|
|
254
254
|
* Restore Draft's resource.
|
|
@@ -322,7 +322,7 @@ export declare class Drafts {
|
|
|
322
322
|
* @throws {@link Truvity.TooManyRequestsError}
|
|
323
323
|
* @throws {@link Truvity.InternalServerError}
|
|
324
324
|
*/
|
|
325
|
-
draftExport(id: string, revision: number, request: Truvity.
|
|
325
|
+
draftExport(id: string, revision: number, request: Truvity.DraftExportRequest, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<stream.Readable>;
|
|
326
326
|
private __draftExport;
|
|
327
327
|
/**
|
|
328
328
|
* Deprecated: please use new endpoint [DraftIssue](#tag/drafts/operation/DraftIssueWithoutRevision).This operation issues a Verifiable Credential from a Draft resource. Operational Lifecycle:
|
|
@@ -353,7 +353,7 @@ export declare class Drafts {
|
|
|
353
353
|
*
|
|
354
354
|
* @param {string} id - The ID of the resource.
|
|
355
355
|
* @param {number} revision - The revision of the resource.
|
|
356
|
-
* @param {Truvity.
|
|
356
|
+
* @param {Truvity.DraftIssueRequest} request
|
|
357
357
|
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
358
358
|
*
|
|
359
359
|
* @throws {@link Truvity.BadRequestError}
|
|
@@ -371,7 +371,7 @@ export declare class Drafts {
|
|
|
371
371
|
* keyId: "key_id"
|
|
372
372
|
* })
|
|
373
373
|
*/
|
|
374
|
-
draftIssue(id: string, revision: number, request: Truvity.
|
|
374
|
+
draftIssue(id: string, revision: number, request: Truvity.DraftIssueRequest, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Truvity.ResourceCredential>;
|
|
375
375
|
private __draftIssue;
|
|
376
376
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
377
377
|
'X-API-KEY': string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/drafts/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;AAI1C,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC5B,UAAiB,OAAO;QACpB,WAAW,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,kBAAkB,GAAG,MAAM,CAAC,CAAC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
|
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
81
|
*
|
|
82
82
|
* @throws {@link Truvity.BadRequestError}
|
|
@@ -110,10 +110,13 @@ class Drafts {
|
|
|
110
110
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
111
111
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, 'drafts'),
|
|
112
112
|
method: 'POST',
|
|
113
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
113
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
114
114
|
contentType: 'application/json',
|
|
115
115
|
requestType: 'json',
|
|
116
|
-
body: serializers.
|
|
116
|
+
body: serializers.DraftCreateRequest.jsonOrThrow(_body, {
|
|
117
|
+
unrecognizedObjectKeys: 'strip',
|
|
118
|
+
omitUndefined: true,
|
|
119
|
+
}),
|
|
117
120
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
118
121
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
119
122
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -223,7 +226,7 @@ class Drafts {
|
|
|
223
226
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
224
227
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, 'drafts/search'),
|
|
225
228
|
method: 'POST',
|
|
226
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
229
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', '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),
|
|
227
230
|
contentType: 'application/json',
|
|
228
231
|
requestType: 'json',
|
|
229
232
|
body: serializers.DraftSearchRequest.jsonOrThrow(request, {
|
|
@@ -341,7 +344,7 @@ class Drafts {
|
|
|
341
344
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
342
345
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}`),
|
|
343
346
|
method: 'GET',
|
|
344
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
347
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', '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),
|
|
345
348
|
contentType: 'application/json',
|
|
346
349
|
requestType: 'json',
|
|
347
350
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -460,7 +463,7 @@ class Drafts {
|
|
|
460
463
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
461
464
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}`),
|
|
462
465
|
method: 'DELETE',
|
|
463
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
466
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
464
467
|
contentType: 'application/json',
|
|
465
468
|
requestType: 'json',
|
|
466
469
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -558,7 +561,7 @@ class Drafts {
|
|
|
558
561
|
*
|
|
559
562
|
* @param {string} id - The primary and unique identifier of the resource (inside tenant)
|
|
560
563
|
* according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
|
|
561
|
-
* @param {Truvity.
|
|
564
|
+
* @param {Truvity.DraftUpdateRequest} request
|
|
562
565
|
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
563
566
|
*
|
|
564
567
|
* @throws {@link Truvity.BadRequestError}
|
|
@@ -587,10 +590,10 @@ class Drafts {
|
|
|
587
590
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
588
591
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}`),
|
|
589
592
|
method: 'PATCH',
|
|
590
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
593
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
591
594
|
contentType: 'application/json',
|
|
592
595
|
requestType: 'json',
|
|
593
|
-
body: serializers.
|
|
596
|
+
body: serializers.DraftUpdateRequest.jsonOrThrow(_body, {
|
|
594
597
|
unrecognizedObjectKeys: 'strip',
|
|
595
598
|
omitUndefined: true,
|
|
596
599
|
}),
|
|
@@ -704,7 +707,7 @@ class Drafts {
|
|
|
704
707
|
*
|
|
705
708
|
* @param {string} id - The primary and unique identifier of the resource (inside tenant)
|
|
706
709
|
* according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
|
|
707
|
-
* @param {Truvity.
|
|
710
|
+
* @param {Truvity.DraftUpdateAnnotationsRequest} request
|
|
708
711
|
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
709
712
|
*
|
|
710
713
|
* @throws {@link Truvity.BadRequestError}
|
|
@@ -735,10 +738,10 @@ class Drafts {
|
|
|
735
738
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
736
739
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}/annotations`),
|
|
737
740
|
method: 'PATCH',
|
|
738
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
741
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
739
742
|
contentType: 'application/json',
|
|
740
743
|
requestType: 'json',
|
|
741
|
-
body: serializers.
|
|
744
|
+
body: serializers.DraftUpdateAnnotationsRequest.jsonOrThrow(_body, {
|
|
742
745
|
unrecognizedObjectKeys: 'strip',
|
|
743
746
|
omitUndefined: true,
|
|
744
747
|
}),
|
|
@@ -903,7 +906,7 @@ class Drafts {
|
|
|
903
906
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
904
907
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}/issue`),
|
|
905
908
|
method: 'PATCH',
|
|
906
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
909
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-Match': ifMatch != null ? ifMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
907
910
|
contentType: 'application/json',
|
|
908
911
|
requestType: 'json',
|
|
909
912
|
body: serializers.DraftLatestIssueRequest.jsonOrThrow(_body, {
|
|
@@ -1020,7 +1023,7 @@ class Drafts {
|
|
|
1020
1023
|
*
|
|
1021
1024
|
* @param {string} id - The primary and unique identifier of the resource (inside tenant)
|
|
1022
1025
|
* according to [RFC 4122](https://www.rfc-editor.org/info/rfc4122).
|
|
1023
|
-
* @param {Truvity.
|
|
1026
|
+
* @param {Truvity.DraftUpdateLabelsRequest} request
|
|
1024
1027
|
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
1025
1028
|
*
|
|
1026
1029
|
* @throws {@link Truvity.BadRequestError}
|
|
@@ -1051,10 +1054,10 @@ class Drafts {
|
|
|
1051
1054
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1052
1055
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}/labels`),
|
|
1053
1056
|
method: 'PATCH',
|
|
1054
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1057
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1055
1058
|
contentType: 'application/json',
|
|
1056
1059
|
requestType: 'json',
|
|
1057
|
-
body: serializers.
|
|
1060
|
+
body: serializers.DraftUpdateLabelsRequest.jsonOrThrow(_body, {
|
|
1058
1061
|
unrecognizedObjectKeys: 'strip',
|
|
1059
1062
|
omitUndefined: true,
|
|
1060
1063
|
}),
|
|
@@ -1195,7 +1198,7 @@ class Drafts {
|
|
|
1195
1198
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1196
1199
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}/restore`),
|
|
1197
1200
|
method: 'POST',
|
|
1198
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1201
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'Idempotency-Key': idempotencyKey != null ? idempotencyKey : undefined, 'If-Match': ifMatch }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1199
1202
|
contentType: 'application/json',
|
|
1200
1203
|
requestType: 'json',
|
|
1201
1204
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1323,7 +1326,7 @@ class Drafts {
|
|
|
1323
1326
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1324
1327
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}/revisions`),
|
|
1325
1328
|
method: 'GET',
|
|
1326
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1329
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', '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),
|
|
1327
1330
|
contentType: 'application/json',
|
|
1328
1331
|
requestType: 'json',
|
|
1329
1332
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1438,7 +1441,7 @@ class Drafts {
|
|
|
1438
1441
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1439
1442
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}`),
|
|
1440
1443
|
method: 'GET',
|
|
1441
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1444
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', '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),
|
|
1442
1445
|
contentType: 'application/json',
|
|
1443
1446
|
requestType: 'json',
|
|
1444
1447
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1543,10 +1546,10 @@ class Drafts {
|
|
|
1543
1546
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1544
1547
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}/export`),
|
|
1545
1548
|
method: 'POST',
|
|
1546
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1549
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', '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),
|
|
1547
1550
|
contentType: 'application/json',
|
|
1548
1551
|
requestType: 'json',
|
|
1549
|
-
body: serializers.
|
|
1552
|
+
body: serializers.DraftExportRequest.jsonOrThrow(request, {
|
|
1550
1553
|
unrecognizedObjectKeys: 'strip',
|
|
1551
1554
|
omitUndefined: true,
|
|
1552
1555
|
}),
|
|
@@ -1656,7 +1659,7 @@ class Drafts {
|
|
|
1656
1659
|
*
|
|
1657
1660
|
* @param {string} id - The ID of the resource.
|
|
1658
1661
|
* @param {number} revision - The revision of the resource.
|
|
1659
|
-
* @param {Truvity.
|
|
1662
|
+
* @param {Truvity.DraftIssueRequest} request
|
|
1660
1663
|
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
1661
1664
|
*
|
|
1662
1665
|
* @throws {@link Truvity.BadRequestError}
|
|
@@ -1684,10 +1687,13 @@ class Drafts {
|
|
|
1684
1687
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1685
1688
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.TruvityEnvironment.Default, `drafts/${encodeURIComponent(id)}/revisions/${encodeURIComponent(revision)}/issue`),
|
|
1686
1689
|
method: 'PATCH',
|
|
1687
|
-
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.
|
|
1690
|
+
headers: Object.assign(Object.assign({ 'X-Fern-Language': 'JavaScript', 'X-Fern-SDK-Name': '@truvity/sdk', 'X-Fern-SDK-Version': '0.37.0', 'User-Agent': '@truvity/sdk/0.37.0', 'X-Fern-Runtime': core.RUNTIME.type, 'X-Fern-Runtime-Version': core.RUNTIME.version, 'If-Match': ifMatch != null ? ifMatch : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1688
1691
|
contentType: 'application/json',
|
|
1689
1692
|
requestType: 'json',
|
|
1690
|
-
body: serializers.
|
|
1693
|
+
body: serializers.DraftIssueRequest.jsonOrThrow(_body, {
|
|
1694
|
+
unrecognizedObjectKeys: 'strip',
|
|
1695
|
+
omitUndefined: true,
|
|
1696
|
+
}),
|
|
1691
1697
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1692
1698
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1693
1699
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|