@mojaloop/api-snippets 13.0.6 → 13.0.9
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/CHANGELOG.md +21 -0
- package/CODEOWNERS +1 -1
- package/docs/thirdparty-openapi3-snippets.yaml +3019 -2484
- package/lib/thirdparty/index.d.ts +1 -4
- package/lib/thirdparty/openapi.d.ts +4955 -3959
- package/package.json +4 -4
- package/tests/dto/thirdparty.test.ts +4 -48
- package/thirdparty/v1_0/openapi3/components/headers/Content-Length.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/headers/Content-Type.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/parameters/Accept.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/parameters/Content-Length.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/parameters/Content-Type.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/parameters/Date.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/parameters/FSPIOP-Destination.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/parameters/FSPIOP-Encryption.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/parameters/FSPIOP-HTTP-Method.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/parameters/FSPIOP-Signature.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/parameters/FSPIOP-Source.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/parameters/FSPIOP-URI.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/parameters/ID.yaml +1 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/parameters/ServiceType.yaml +0 -0
- package/thirdparty/v1_0/openapi3/components/parameters/SubId.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/parameters/Type.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/parameters/X-Forwarded-For.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/responses/200.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/responses/202.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/responses/400.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/responses/401.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/responses/403.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/responses/404.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/responses/405.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/responses/406.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/responses/501.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/responses/503.yaml +1 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/Account.yaml +5 -2
- package/thirdparty/v1_0/openapi3/components/schemas/AccountAddress.yaml +25 -0
- package/thirdparty/v1_0/openapi3/components/schemas/AccountList.yaml +11 -0
- package/thirdparty/v1_0/openapi3/components/schemas/AccountsIDPutResponse.yaml +21 -0
- package/thirdparty/v1_0/openapi3/components/schemas/Amount.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/AmountType.yaml +1 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/AuthenticationResponse.yaml +4 -3
- package/thirdparty/v1_0/openapi3/components/schemas/AuthenticatorAssertionResponse.yaml +32 -0
- package/thirdparty/v1_0/openapi3/components/schemas/AuthenticatorAttestationResponse.yaml +23 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/AuthorizationResponseType.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/AuthorizationResponseTypeAccepted.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/AuthorizationResponseTypeRejected.yaml +0 -0
- package/thirdparty/v1_0/openapi3/components/schemas/BinaryString.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/ConsentRequestChannelType.yaml +9 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentRequestChannelTypeOTP.yaml +1 -1
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentRequestChannelTypeWeb.yaml +1 -1
- package/thirdparty/v1_0/openapi3/components/schemas/ConsentRequestsIDPatchRequest.yaml +17 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentRequestsIDPutResponseOTP.yaml +2 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentRequestsIDPutResponseWeb.yaml +2 -0
- package/thirdparty/v1_0/openapi3/components/schemas/ConsentRequestsPostRequest.yaml +51 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentStatus.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentStatusIssued.yaml +1 -1
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentStatusRevoked.yaml +1 -1
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentsIDPatchResponseRevoked.yaml +2 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentsIDPatchResponseVerified.yaml +3 -1
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentsIDPutResponseSigned.yaml +5 -3
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentsIDPutResponseVerified.yaml +5 -3
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentsPostRequestAUTH.yaml +6 -2
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentsPostRequestPISP.yaml +6 -4
- package/thirdparty/v1_0/openapi3/components/schemas/CorrelationId.yaml +1 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/CredentialStatusPending.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/CredentialStatusVerified.yaml +0 -0
- package/thirdparty/v1_0/openapi3/components/schemas/CredentialType.yaml +11 -0
- package/thirdparty/v1_0/openapi3/components/schemas/Currency.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/DateOfBirth.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/DateTime.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/ErrorCode.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/ErrorDescription.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/ErrorInformation.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/Extension.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/ExtensionKey.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/ExtensionList.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/ExtensionValue.yaml +1 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/FIDOPublicKeyCredentialAssertion.yaml +8 -3
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/FIDOPublicKeyCredentialAttestation.yaml +0 -0
- package/thirdparty/v1_0/openapi3/components/schemas/FirstName.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/FspId.yaml +1 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/GenericCredential.yaml +1 -1
- package/thirdparty/v1_0/openapi3/components/schemas/GeoCode.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/IlpCondition.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/IlpFulfilment.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/IlpPacket.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/Integer.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/LastName.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/Latitude.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/Longitude.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/MerchantClassificationCode.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/MiddleName.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/Money.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/Name.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/Note.yaml +1 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ParticipantsIDPutResponse.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ParticipantsPostRequest.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ParticipantsTypeIDPutResponse.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ParticipantsTypeIDSubIDPostRequest.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/PartiesTypeIDPutResponse.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/Party.yaml +0 -0
- package/thirdparty/v1_0/openapi3/components/schemas/PartyComplexName.yaml +1 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/PartyIdInfo.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/PartyIdInfoTPLink.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/PartyIdType.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/PartyIdTypeTPLink.yaml +0 -0
- package/thirdparty/v1_0/openapi3/components/schemas/PartyIdentifier.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/PartyName.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/PartyPersonalInfo.yaml +1 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/PartyResult.yaml +0 -0
- package/thirdparty/v1_0/openapi3/components/schemas/PartySubIdOrType.yaml +1 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/PartyTPLink.yaml +0 -0
- package/thirdparty/v1_0/openapi3/components/schemas/QuotesIDPutResponse.yaml +1 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/QuotesPostRequest.yaml +0 -0
- package/thirdparty/v1_0/openapi3/components/schemas/Scope.yaml +20 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ScopeAction.yaml +8 -6
- package/thirdparty/v1_0/openapi3/components/schemas/ServiceType.yaml +15 -0
- package/thirdparty/v1_0/openapi3/components/schemas/ServicesServiceTypePutResponse.yaml +26 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/SignedCredential.yaml +0 -0
- package/thirdparty/v1_0/openapi3/components/schemas/SignedPayloadFIDO.yaml +11 -0
- package/thirdparty/v1_0/openapi3/components/schemas/SignedPayloadGeneric.yaml +11 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/SignedPayloadType.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/SignedPayloadTypeFIDO.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/SignedPayloadTypeGeneric.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ThirdpartyRequestsAuthorizationsIDPutResponseFIDO.yaml +4 -11
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ThirdpartyRequestsAuthorizationsIDPutResponseGeneric.yaml +4 -11
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ThirdpartyRequestsAuthorizationsIDPutResponseRejected.yaml +2 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ThirdpartyRequestsAuthorizationsPostRequest.yaml +16 -4
- package/thirdparty/v1_0/openapi3/components/schemas/ThirdpartyRequestsTransactionsIDPatchResponse.yaml +27 -0
- package/thirdparty/v1_0/openapi3/components/schemas/ThirdpartyRequestsTransactionsIDPutResponse.yaml +20 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ThirdpartyRequestsTransactionsPostRequest.yaml +15 -2
- package/thirdparty/v1_0/openapi3/components/schemas/ThirdpartyRequestsVerificationsIDPutResponse.yaml +19 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ThirdpartyRequestsVerificationsPostRequestFIDO.yaml +4 -2
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ThirdpartyRequestsVerificationsPostRequestGeneric.yaml +4 -2
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/Transaction.yaml +0 -0
- package/thirdparty/v1_0/openapi3/components/schemas/TransactionRequestState.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/TransactionState.yaml +1 -0
- package/thirdparty/v1_0/openapi3/components/schemas/TransactionType.yaml +1 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/Uri.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/VerifiedCredential.yaml +6 -7
- package/thirdparty/{openapi3 → v1_0/openapi3}/openapi.yaml +9 -9
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/accounts_ID.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/accounts_ID_error.yaml +1 -1
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/consentRequests.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/consentRequests_ID.yaml +6 -6
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/consentRequests_ID_error.yaml +1 -1
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/consents.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/consents_ID.yaml +2 -2
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/consents_ID_error.yaml +1 -1
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/health.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/metrics.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/participants.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/participants_ID.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/participants_ID_error.yaml +1 -1
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/participants_Type_ID.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/participants_Type_ID_error.yaml +1 -1
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/services_ServiceType.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/services_ServiceType_error.yaml +1 -1
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_authorizations.yaml +1 -1
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_authorizations_ID.yaml +3 -3
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_authorizations_ID_error.yaml +1 -1
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_transactions.yaml +1 -1
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_transactions_ID.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_transactions_ID_error.yaml +1 -1
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_verifications.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_verifications_ID.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_verifications_ID_error.yaml +1 -1
- package/thirdparty/{openapi3 → v1_0/openapi3}/thirdparty-dfsp-api.template.yaml +0 -0
- package/thirdparty/{openapi3 → v1_0/openapi3}/thirdparty-dfsp-api.yaml +409 -313
- package/thirdparty/{openapi3 → v1_0/openapi3}/thirdparty-pisp-api.template.yaml +7 -7
- package/thirdparty/{openapi3 → v1_0/openapi3}/thirdparty-pisp-api.yaml +401 -308
- package/thirdparty/openapi3/components/headers/Content-Length.yaml +0 -1
- package/thirdparty/openapi3/components/headers/Content-Type.yaml +0 -1
- package/thirdparty/openapi3/components/parameters/Accept.yaml +0 -1
- package/thirdparty/openapi3/components/parameters/Content-Length.yaml +0 -1
- package/thirdparty/openapi3/components/parameters/Content-Type.yaml +0 -1
- package/thirdparty/openapi3/components/parameters/Date.yaml +0 -1
- package/thirdparty/openapi3/components/parameters/FSPIOP-Destination.yaml +0 -1
- package/thirdparty/openapi3/components/parameters/FSPIOP-Encryption.yaml +0 -1
- package/thirdparty/openapi3/components/parameters/FSPIOP-HTTP-Method.yaml +0 -1
- package/thirdparty/openapi3/components/parameters/FSPIOP-Signature.yaml +0 -1
- package/thirdparty/openapi3/components/parameters/FSPIOP-Source.yaml +0 -1
- package/thirdparty/openapi3/components/parameters/FSPIOP-URI.yaml +0 -1
- package/thirdparty/openapi3/components/parameters/ID.yaml +0 -1
- package/thirdparty/openapi3/components/parameters/SubId.yaml +0 -1
- package/thirdparty/openapi3/components/parameters/Type.yaml +0 -1
- package/thirdparty/openapi3/components/parameters/X-Forwarded-For.yaml +0 -1
- package/thirdparty/openapi3/components/responses/200.yaml +0 -1
- package/thirdparty/openapi3/components/responses/202.yaml +0 -1
- package/thirdparty/openapi3/components/responses/400.yaml +0 -1
- package/thirdparty/openapi3/components/responses/401.yaml +0 -1
- package/thirdparty/openapi3/components/responses/403.yaml +0 -1
- package/thirdparty/openapi3/components/responses/404.yaml +0 -1
- package/thirdparty/openapi3/components/responses/405.yaml +0 -1
- package/thirdparty/openapi3/components/responses/406.yaml +0 -1
- package/thirdparty/openapi3/components/responses/501.yaml +0 -1
- package/thirdparty/openapi3/components/responses/503.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/AccountAddress.yaml +0 -7
- package/thirdparty/openapi3/components/schemas/AccountsIDPutResponse.yaml +0 -11
- package/thirdparty/openapi3/components/schemas/Amount.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/AmountType.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/AuthenticationType.yaml +0 -11
- package/thirdparty/openapi3/components/schemas/AuthenticationValue.yaml +0 -9
- package/thirdparty/openapi3/components/schemas/AuthorizationChannelType.yaml +0 -11
- package/thirdparty/openapi3/components/schemas/AuthorizationsIDPutResponse.yaml +0 -10
- package/thirdparty/openapi3/components/schemas/AuthorizationsPostRequest.yaml +0 -24
- package/thirdparty/openapi3/components/schemas/BinaryString.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/ConsentRequestChannelType.yaml +0 -9
- package/thirdparty/openapi3/components/schemas/ConsentRequestsIDPatchRequest.yaml +0 -8
- package/thirdparty/openapi3/components/schemas/ConsentRequestsPostRequest.yaml +0 -35
- package/thirdparty/openapi3/components/schemas/CorrelationId.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/CredentialType.yaml +0 -9
- package/thirdparty/openapi3/components/schemas/Currency.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/DateOfBirth.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/DateTime.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/ErrorCode.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/ErrorDescription.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/ErrorInformation.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/Extension.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/ExtensionKey.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/ExtensionList.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/ExtensionValue.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/FirstName.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/FspId.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/GeoCode.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/IlpCondition.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/IlpFulfilment.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/IlpPacket.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/IndividualQuote.yaml +0 -51
- package/thirdparty/openapi3/components/schemas/IndividualQuoteResult.yaml +0 -46
- package/thirdparty/openapi3/components/schemas/Integer.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/LastName.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/Latitude.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/Longitude.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/MerchantClassificationCode.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/MiddleName.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/Money.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/Name.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/Note.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/PartyComplexName.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/PartyIdentifier.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/PartyName.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/PartyPersonalInfo.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/PartySubIdOrType.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/QuotesIDPutResponse.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/Scope.yaml +0 -15
- package/thirdparty/openapi3/components/schemas/ServiceType.yaml +0 -7
- package/thirdparty/openapi3/components/schemas/ServicesServiceTypePutResponse.yaml +0 -12
- package/thirdparty/openapi3/components/schemas/ThirdpartyRequestsTransactionsIDPatchResponse.yaml +0 -13
- package/thirdparty/openapi3/components/schemas/ThirdpartyRequestsTransactionsIDPutResponse.yaml +0 -8
- package/thirdparty/openapi3/components/schemas/ThirdpartyRequestsVerificationsIDPutResponse.yaml +0 -8
- package/thirdparty/openapi3/components/schemas/TransactionRequestState.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/TransactionRequestsPostRequest.yaml +0 -30
- package/thirdparty/openapi3/components/schemas/TransactionState.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/TransactionType.yaml +0 -1
- package/thirdparty/openapi3/components/schemas/U2FPIN.yaml +0 -8
- package/thirdparty/openapi3/components/schemas/U2FPinValue.yaml +0 -19
- package/thirdparty/openapi3/components/schemas/index.yaml +0 -182
- package/thirdparty/openapi3/paths/authorizations.yaml +0 -51
- package/thirdparty/openapi3/paths/authorizations_ID.yaml +0 -56
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/api-snippets",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.9",
|
|
4
4
|
"description": "Mojaloop API specification reusable snippets",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"build:openapi": "npm run build:v1.0; npm run build:v1.1; npm run build:thirdparty",
|
|
19
19
|
"build:v1.0": "openapi bundle --output docs/fspiop-rest-v1.0-openapi3-snippets.yaml --ext yaml fspiop/v1_0/openapi3/openapi.yaml && swagger-cli validate docs/fspiop-rest-v1.0-openapi3-snippets.yaml",
|
|
20
20
|
"build:v1.1": "openapi bundle --output docs/fspiop-rest-v1.1-openapi3-snippets.yaml --ext yaml fspiop/v1_1/openapi3/openapi.yaml && swagger-cli validate docs/fspiop-rest-v1.1-openapi3-snippets.yaml",
|
|
21
|
-
"build:thirdparty": "openapi bundle --dereferenced --output docs/thirdparty-openapi3-snippets.yaml --ext yaml thirdparty/openapi3/openapi.yaml && swagger-cli validate docs/thirdparty-openapi3-snippets.yaml",
|
|
22
|
-
"build:thirdparty-dfsp": "swagger-cli bundle -o ./thirdparty/openapi3/thirdparty-dfsp-api.yaml -t yaml ./thirdparty/openapi3/thirdparty-dfsp-api.template.yaml",
|
|
23
|
-
"build:thirdparty-pisp": "swagger-cli bundle -o ./thirdparty/openapi3/thirdparty-pisp-api.yaml -t yaml ./thirdparty/openapi3/thirdparty-pisp-api.template.yaml",
|
|
21
|
+
"build:thirdparty": "openapi bundle --dereferenced --output docs/thirdparty-openapi3-snippets.yaml --ext yaml thirdparty/v1_0/openapi3/openapi.yaml && swagger-cli validate docs/thirdparty-openapi3-snippets.yaml",
|
|
22
|
+
"build:thirdparty-dfsp": "swagger-cli bundle -o ./thirdparty/v1_0/openapi3/thirdparty-dfsp-api.yaml -t yaml ./thirdparty/v1_0/openapi3/thirdparty-dfsp-api.template.yaml",
|
|
23
|
+
"build:thirdparty-pisp": "swagger-cli bundle -o ./thirdparty/v1_0/openapi3/thirdparty-pisp-api.yaml -t yaml ./thirdparty/v1_0/openapi3/thirdparty-pisp-api.template.yaml",
|
|
24
24
|
"lint": "eslint ./src/**/*.ts *.js",
|
|
25
25
|
"prepare": "npm run build",
|
|
26
26
|
"release": "standard-version --releaseCommitMessageFormat 'chore(release): {{currentTag}} [skip ci]'",
|
|
@@ -2,7 +2,6 @@ import { Schemas } from '../../lib/thirdparty'
|
|
|
2
2
|
|
|
3
3
|
describe('thirdparty', () => {
|
|
4
4
|
const accountAddress: Schemas.AccountAddress = 'account-id'
|
|
5
|
-
const authenticationTypeQRCODE: Schemas.AuthenticationType = 'QRCODE'
|
|
6
5
|
const currency: Schemas.Currency = 'USD'
|
|
7
6
|
const name: Schemas.Name = 'name'
|
|
8
7
|
const account: Schemas.Account = {
|
|
@@ -10,7 +9,6 @@ describe('thirdparty', () => {
|
|
|
10
9
|
address: accountAddress,
|
|
11
10
|
currency
|
|
12
11
|
}
|
|
13
|
-
const authorizationChannelTypeU2F: Schemas.AuthorizationChannelType = 'U2F'
|
|
14
12
|
const extensionKey: Schemas.ExtensionKey = 'key'
|
|
15
13
|
const extensionValue: Schemas.ExtensionValue = 'value'
|
|
16
14
|
const extension: Schemas.Extension = {
|
|
@@ -43,17 +41,7 @@ describe('thirdparty', () => {
|
|
|
43
41
|
currency,
|
|
44
42
|
amount: '1'
|
|
45
43
|
}
|
|
46
|
-
|
|
47
|
-
transferAmount: money,
|
|
48
|
-
payeeReceiveAmount: money,
|
|
49
|
-
payeeFspFee: money,
|
|
50
|
-
payeeFspCommission: money,
|
|
51
|
-
expiration: dateTime,
|
|
52
|
-
geoCode,
|
|
53
|
-
ilpPacket,
|
|
54
|
-
condition: ilpCondition,
|
|
55
|
-
extensionList
|
|
56
|
-
}
|
|
44
|
+
|
|
57
45
|
const consentRequestChannelType: Schemas.ConsentRequestChannelType = 'WEB'
|
|
58
46
|
const consentRequestChannelTypeWeb: Schemas.ConsentRequestChannelTypeWeb = 'WEB'
|
|
59
47
|
const consentRequestChannelTypeOTP: Schemas.ConsentRequestChannelTypeOTP = 'OTP'
|
|
@@ -124,7 +112,7 @@ describe('thirdparty', () => {
|
|
|
124
112
|
const verifiedCredential: Schemas.VerifiedCredential = {
|
|
125
113
|
credentialType: credentialTypeFIDO,
|
|
126
114
|
status: 'VERIFIED',
|
|
127
|
-
|
|
115
|
+
fidoPayload: FIDOPublicKeyCredentialAttestation
|
|
128
116
|
}
|
|
129
117
|
|
|
130
118
|
const transactionType: Schemas.TransactionType = {
|
|
@@ -154,27 +142,11 @@ describe('thirdparty', () => {
|
|
|
154
142
|
expect(accountAddress).toBeDefined()
|
|
155
143
|
})
|
|
156
144
|
|
|
157
|
-
test('AuthorizationChannelType', () => {
|
|
158
|
-
expect(authorizationChannelTypeU2F).toBeDefined()
|
|
159
|
-
})
|
|
160
|
-
|
|
161
145
|
test('AuthorizationResponseType', () => {
|
|
162
146
|
const authorizationResponseType: Schemas.AuthorizationResponseType = 'ACCEPTED'
|
|
163
147
|
expect(authorizationResponseType).toBeDefined()
|
|
164
148
|
})
|
|
165
149
|
|
|
166
|
-
test('AuthorizationsPostRequest', () => {
|
|
167
|
-
const authorizationsPostRequest: Schemas.AuthorizationsPostRequest = {
|
|
168
|
-
authenticationType: authorizationChannelTypeU2F,
|
|
169
|
-
retriesLeft: integer,
|
|
170
|
-
amount: money,
|
|
171
|
-
transactionId: correlationId,
|
|
172
|
-
transactionRequestId: correlationId,
|
|
173
|
-
quote
|
|
174
|
-
}
|
|
175
|
-
expect(authorizationsPostRequest).toBeDefined()
|
|
176
|
-
})
|
|
177
|
-
|
|
178
150
|
test('BinaryString', () => {
|
|
179
151
|
const binaryString: Schemas.BinaryString = '1234'
|
|
180
152
|
expect(binaryString).toBeDefined()
|
|
@@ -227,7 +199,7 @@ describe('thirdparty', () => {
|
|
|
227
199
|
expect(scopeActionTransfer).toBeDefined()
|
|
228
200
|
expect(scopeActionStatement).toBeDefined()
|
|
229
201
|
})
|
|
230
|
-
|
|
202
|
+
|
|
231
203
|
test('ConsentsIDPatchResponseRevoked', () => {
|
|
232
204
|
const consentsIDPatchResponse: Schemas.ConsentsIDPatchResponseRevoked = {
|
|
233
205
|
status: consentStatusRevoked,
|
|
@@ -603,7 +575,7 @@ describe('thirdparty', () => {
|
|
|
603
575
|
responseType: 'ACCEPTED',
|
|
604
576
|
signedPayload: {
|
|
605
577
|
signedPayloadType: 'GENERIC',
|
|
606
|
-
genericSignedPayload: 'some signature utf-8 string'
|
|
578
|
+
genericSignedPayload: 'some signature utf-8 string'
|
|
607
579
|
}
|
|
608
580
|
}
|
|
609
581
|
expect(thirdpartyRequestsAuthorizationsIDPutResponseGeneric).toBeDefined()
|
|
@@ -623,22 +595,6 @@ describe('thirdparty', () => {
|
|
|
623
595
|
expect(transactionType).toBeDefined()
|
|
624
596
|
})
|
|
625
597
|
|
|
626
|
-
test('TransactionRequestsPostRequest', () => {
|
|
627
|
-
const transactionRequestsPostRequest: Schemas.TransactionRequestsPostRequest = {
|
|
628
|
-
transactionRequestId: correlationId,
|
|
629
|
-
payee: party,
|
|
630
|
-
payer: partyIdInfo,
|
|
631
|
-
amount: money,
|
|
632
|
-
transactionType,
|
|
633
|
-
note,
|
|
634
|
-
geoCode,
|
|
635
|
-
authenticationType: authenticationTypeQRCODE,
|
|
636
|
-
expiration: dateTime,
|
|
637
|
-
extensionList
|
|
638
|
-
}
|
|
639
|
-
expect(transactionRequestsPostRequest).toBeDefined()
|
|
640
|
-
})
|
|
641
|
-
|
|
642
598
|
test('ThirdpartyRequestsVerificationsIDPutResponse', () => {
|
|
643
599
|
const thirdpartyRequestsVerificationsIdPutResponse: Schemas.ThirdpartyRequestsVerificationsIDPutResponse = {
|
|
644
600
|
authenticationResponse: 'VERIFIED'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/headers/Content-Length.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/headers/Content-Type.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/parameters/Accept.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/parameters/Content-Length.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/parameters/Content-Type.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/parameters/Date.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/parameters/FSPIOP-Destination.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/parameters/FSPIOP-Encryption.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/parameters/FSPIOP-HTTP-Method.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/parameters/FSPIOP-Signature.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/parameters/FSPIOP-Source.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/parameters/FSPIOP-URI.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/parameters/ID.yaml'
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/parameters/SubId.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/parameters/Type.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/parameters/X-Forwarded-For.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/responses/200.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/responses/202.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/responses/400.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/responses/401.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/responses/403.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/responses/404.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/responses/405.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/responses/406.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/responses/501.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/responses/503.yaml'
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
title: Account
|
|
2
2
|
type: object
|
|
3
|
-
description:
|
|
3
|
+
description: >-
|
|
4
|
+
Data model for the complex type Account.
|
|
5
|
+
|
|
6
|
+
https://github.com/mojaloop/documentation/blob/master/website/versioned_docs/v1.0.1/api/thirdparty/data-models.md#3211-account
|
|
4
7
|
properties:
|
|
5
8
|
accountNickname:
|
|
6
9
|
$ref: ./Name.yaml
|
|
@@ -10,5 +13,5 @@ properties:
|
|
|
10
13
|
$ref: ./Currency.yaml
|
|
11
14
|
required:
|
|
12
15
|
- accountNickname
|
|
13
|
-
-
|
|
16
|
+
- address
|
|
14
17
|
- currency
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
title: AccountAddress
|
|
2
|
+
type: string
|
|
3
|
+
description: >-
|
|
4
|
+
The AccountAddress data type is a variable length string with a maximum size
|
|
5
|
+
of 1023 characters and consists of:
|
|
6
|
+
|
|
7
|
+
Alphanumeric characters, upper or lower case. (Addresses are case-sensitive
|
|
8
|
+
so that they can contain data encoded in formats such as base64url.)
|
|
9
|
+
|
|
10
|
+
- Underscore (_)
|
|
11
|
+
- Tilde (~)
|
|
12
|
+
- Hyphen (-)
|
|
13
|
+
- Period (.) Addresses MUST NOT end in a period (.) character
|
|
14
|
+
|
|
15
|
+
An entity providing accounts to parties (i.e. a participant) can provide any
|
|
16
|
+
value for an AccountAddress that is meaningful to that entity.
|
|
17
|
+
It does not need to provide an address that makes the account identifiable
|
|
18
|
+
outside the entity's domain.
|
|
19
|
+
|
|
20
|
+
IMPORTANT: The policy for defining addresses and the life-cycle of these is at the discretion of the address space owner (the payer DFSP in this case).
|
|
21
|
+
|
|
22
|
+
https://github.com/mojaloop/documentation/blob/master/website/versioned_docs/v1.0.1/api/thirdparty/data-models.md#3212-accountaddress
|
|
23
|
+
pattern: '^([0-9A-Za-z_~\-\.]+[0-9A-Za-z_~\-])$'
|
|
24
|
+
minLength: 1
|
|
25
|
+
maxLength: 1023
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
title: AccountList
|
|
2
|
+
type: array
|
|
3
|
+
description: >-
|
|
4
|
+
The AccountList data model is used to hold information about the accounts
|
|
5
|
+
that a party controls.
|
|
6
|
+
|
|
7
|
+
https://github.com/mojaloop/documentation/blob/master/website/versioned_docs/v1.0.1/api/thirdparty/data-models.md#3213-accountlist
|
|
8
|
+
items:
|
|
9
|
+
$ref: ./Account.yaml
|
|
10
|
+
minItems: 1
|
|
11
|
+
maxItems: 256
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
title: AccountsIDPutResponse
|
|
2
|
+
type: object
|
|
3
|
+
description: >-
|
|
4
|
+
Callback and data model information for GET /accounts/{ID}:
|
|
5
|
+
|
|
6
|
+
Callback - PUT /accounts/{ID}
|
|
7
|
+
Error Callback - PUT /accounts/{ID}/error
|
|
8
|
+
Data Model - Empty body
|
|
9
|
+
|
|
10
|
+
The PUT /accounts/{ID} response is used to inform the requester of the result
|
|
11
|
+
of a request for accounts information. The identifier ID given in the call
|
|
12
|
+
are the values given in the original request.
|
|
13
|
+
|
|
14
|
+
https://github.com/mojaloop/documentation/blob/master/website/versioned_docs/v1.0.1/api/thirdparty/data-models.md#31121--put-accountsid
|
|
15
|
+
properties:
|
|
16
|
+
accounts:
|
|
17
|
+
$ref: ./AccountList.yaml
|
|
18
|
+
extensionList:
|
|
19
|
+
$ref: ./ExtensionList.yaml
|
|
20
|
+
required:
|
|
21
|
+
- accounts
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/schemas/Amount.yaml'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/schemas/AmountType.yaml'
|
package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/AuthenticationResponse.yaml
RENAMED
|
@@ -2,8 +2,9 @@ title: AuthenticationResponse
|
|
|
2
2
|
type: string
|
|
3
3
|
enum:
|
|
4
4
|
- VERIFIED
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
description: >-
|
|
6
|
+
The AuthenticationResponse enumeration describes the result of authenticating
|
|
7
|
+
verification request.
|
|
8
|
+
|
|
7
9
|
Below are the allowed values for the enumeration AuthenticationResponse.
|
|
8
10
|
- VERIFIED - The challenge was correctly signed.
|
|
9
|
-
- REJECTED - The challenge was not correctly signed.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
title: FIDOPublicKeyCredentialAssertion
|
|
2
|
+
type: object
|
|
3
|
+
description: >-
|
|
4
|
+
A data model representing an AssertionStatement from WebAuthN.
|
|
5
|
+
|
|
6
|
+
https://github.com/mojaloop/documentation/blob/master/website/versioned_docs/v1.0.1/api/thirdparty/data-models.md#32130-authenticatorassertionresponse
|
|
7
|
+
properties:
|
|
8
|
+
authenticatorData:
|
|
9
|
+
type: string
|
|
10
|
+
description: |
|
|
11
|
+
Authenticator data object.
|
|
12
|
+
minLength: 49
|
|
13
|
+
maxLength: 256
|
|
14
|
+
clientDataJSON:
|
|
15
|
+
type: string
|
|
16
|
+
description: |
|
|
17
|
+
JSON string with client data.
|
|
18
|
+
minLength: 121
|
|
19
|
+
maxLength: 512
|
|
20
|
+
signature:
|
|
21
|
+
type: string
|
|
22
|
+
description: |
|
|
23
|
+
The signature generated by the private key associated with this credential.
|
|
24
|
+
minLength: 59
|
|
25
|
+
maxLength: 256
|
|
26
|
+
userHandle:
|
|
27
|
+
type: string
|
|
28
|
+
description: |
|
|
29
|
+
This field is optionally provided by the authenticator, and
|
|
30
|
+
represents the user.id that was supplied during registration.
|
|
31
|
+
minLength: 1
|
|
32
|
+
maxLength: 88
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
title: AuthenticatorAttestationResponse
|
|
2
|
+
type: object
|
|
3
|
+
description: |
|
|
4
|
+
A data model representing an AttestationStatement from WebAuthN.
|
|
5
|
+
|
|
6
|
+
https://github.com/mojaloop/documentation/blob/master/website/versioned_docs/v1.0.1/api/thirdparty/data-models.md#32129-authenticatorattestationresponse
|
|
7
|
+
properties:
|
|
8
|
+
clientDataJSON:
|
|
9
|
+
type: string
|
|
10
|
+
description: |
|
|
11
|
+
JSON string with client data
|
|
12
|
+
minLength: 121
|
|
13
|
+
maxLength: 512
|
|
14
|
+
attestationObject:
|
|
15
|
+
type: string
|
|
16
|
+
description: |
|
|
17
|
+
CBOR.encoded attestation object
|
|
18
|
+
minLength: 306
|
|
19
|
+
maxLength: 2048
|
|
20
|
+
required:
|
|
21
|
+
- clientDataJSON
|
|
22
|
+
- attestationObject
|
|
23
|
+
additionalProperties: false
|
package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/AuthorizationResponseType.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ref: '../../../../../fspiop/v1_1/openapi3/components/schemas/BinaryString.yaml'
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
title: ConsentRequestChannelType
|
|
2
|
+
type: string
|
|
3
|
+
enum:
|
|
4
|
+
- WEB
|
|
5
|
+
- OTP
|
|
6
|
+
description: |
|
|
7
|
+
The auth channel being used for the consent request.
|
|
8
|
+
- WEB - DFSP can support authorization via a web-based login.
|
|
9
|
+
- OTP - DFSP can support authorization via a One Time PIN.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
title: ConsentRequestsIDPatchRequest
|
|
2
|
+
type: object
|
|
3
|
+
description: >-
|
|
4
|
+
Used by: PISP
|
|
5
|
+
|
|
6
|
+
After the user completes an out-of-band authorization with the DFSP,
|
|
7
|
+
the PISP will receive a token which they can use to prove to the DFSP
|
|
8
|
+
that the user trusts this PISP.
|
|
9
|
+
|
|
10
|
+
https://github.com/mojaloop/documentation/blob/master/website/versioned_docs/v1.0.1/api/thirdparty/data-models.md#31222-patch-consentrequestsid
|
|
11
|
+
properties:
|
|
12
|
+
authToken:
|
|
13
|
+
$ref: ./BinaryString.yaml
|
|
14
|
+
extensionList:
|
|
15
|
+
$ref: ./ExtensionList.yaml
|
|
16
|
+
required:
|
|
17
|
+
- authToken
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
title: ConsentRequestsPostRequest
|
|
2
|
+
type: object
|
|
3
|
+
description: >-
|
|
4
|
+
Used by: PISP
|
|
5
|
+
|
|
6
|
+
The HTTP request POST /consentRequests is used to request a DFSP to grant
|
|
7
|
+
access to one or more accounts owned by a customer of the DFSP for the
|
|
8
|
+
PISP who sends the request.
|
|
9
|
+
|
|
10
|
+
Callback and data model for POST /consentRequests:
|
|
11
|
+
|
|
12
|
+
Callback: PUT /consentRequests/{ID}
|
|
13
|
+
Error callback: PUT /consentRequests/{ID}/error
|
|
14
|
+
Data model - see below url
|
|
15
|
+
|
|
16
|
+
https://github.com/mojaloop/documentation/blob/master/website/versioned_docs/v1.0.1/api/thirdparty/data-models.md#31212-post-consentrequests
|
|
17
|
+
properties:
|
|
18
|
+
consentRequestId:
|
|
19
|
+
$ref: ./CorrelationId.yaml
|
|
20
|
+
userId:
|
|
21
|
+
type: string
|
|
22
|
+
description: >-
|
|
23
|
+
The identifier used in the **GET /accounts/**_{ID}_.
|
|
24
|
+
Used by the DFSP to correlate an account lookup to a `consentRequest`
|
|
25
|
+
minLength: 1
|
|
26
|
+
maxLength: 128
|
|
27
|
+
scopes:
|
|
28
|
+
type: array
|
|
29
|
+
minLength: 1
|
|
30
|
+
maxLength: 256
|
|
31
|
+
items:
|
|
32
|
+
$ref: ./Scope.yaml
|
|
33
|
+
authChannels:
|
|
34
|
+
type: array
|
|
35
|
+
minLength: 1
|
|
36
|
+
maxLength: 256
|
|
37
|
+
items:
|
|
38
|
+
$ref: ./ConsentRequestChannelType.yaml
|
|
39
|
+
# The callback uri that the user will be redirected to after completing the
|
|
40
|
+
# out of band WEB authentication with the DFSP. Used to allow the DFSP to
|
|
41
|
+
# whitelist the PISP's url ahead of time.
|
|
42
|
+
callbackUri:
|
|
43
|
+
$ref: ./Uri.yaml
|
|
44
|
+
extensionList:
|
|
45
|
+
$ref: ./ExtensionList.yaml
|
|
46
|
+
required:
|
|
47
|
+
- consentRequestId
|
|
48
|
+
- userId
|
|
49
|
+
- scopes
|
|
50
|
+
- authChannels
|
|
51
|
+
- callbackUri
|
|
File without changes
|
|
@@ -2,7 +2,7 @@ title: ConsentsIDPatchResponseVerified
|
|
|
2
2
|
description: |
|
|
3
3
|
PATCH /consents/{ID} request object.
|
|
4
4
|
|
|
5
|
-
Sent by the DFSP to the PISP when a consent is verified.
|
|
5
|
+
Sent by the DFSP to the PISP when a consent is issued and verified.
|
|
6
6
|
Used in the "Register Credential" part of the Account linking flow.
|
|
7
7
|
type: object
|
|
8
8
|
properties:
|
|
@@ -13,5 +13,7 @@ properties:
|
|
|
13
13
|
$ref: ./CredentialStatusVerified.yaml
|
|
14
14
|
required:
|
|
15
15
|
- status
|
|
16
|
+
extensionList:
|
|
17
|
+
$ref: ./ExtensionList.yaml
|
|
16
18
|
required:
|
|
17
19
|
- credential
|
package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentsIDPutResponseSigned.yaml
RENAMED
|
@@ -7,15 +7,17 @@ description: >
|
|
|
7
7
|
Called by a `PISP` to after signing a challenge. Sent to a DFSP for
|
|
8
8
|
verification.
|
|
9
9
|
properties:
|
|
10
|
+
status:
|
|
11
|
+
$ref: ./ConsentStatusIssued.yaml
|
|
10
12
|
scopes:
|
|
11
13
|
type: array
|
|
12
14
|
items:
|
|
13
15
|
$ref: ./Scope.yaml
|
|
14
|
-
status:
|
|
15
|
-
$ref: ./ConsentStatusIssued.yaml
|
|
16
16
|
credential:
|
|
17
17
|
$ref: ./SignedCredential.yaml
|
|
18
|
+
extensionList:
|
|
19
|
+
$ref: ./ExtensionList.yaml
|
|
18
20
|
required:
|
|
19
21
|
- scopes
|
|
20
22
|
- credential
|
|
21
|
-
additionalProperties: false
|
|
23
|
+
additionalProperties: false
|
package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentsIDPutResponseVerified.yaml
RENAMED
|
@@ -7,15 +7,17 @@ description: >
|
|
|
7
7
|
Called by a `auth-service` to notify a DFSP that a credential has
|
|
8
8
|
been verified and registered.
|
|
9
9
|
properties:
|
|
10
|
+
status:
|
|
11
|
+
$ref: ./ConsentStatusIssued.yaml
|
|
10
12
|
scopes:
|
|
11
13
|
type: array
|
|
12
14
|
items:
|
|
13
15
|
$ref: ./Scope.yaml
|
|
14
|
-
status:
|
|
15
|
-
$ref: ./ConsentStatusIssued.yaml
|
|
16
16
|
credential:
|
|
17
17
|
$ref: ./VerifiedCredential.yaml
|
|
18
|
+
extensionList:
|
|
19
|
+
$ref: ./ExtensionList.yaml
|
|
18
20
|
required:
|
|
19
21
|
- scopes
|
|
20
22
|
- credential
|
|
21
|
-
additionalProperties: false
|
|
23
|
+
additionalProperties: false
|
package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentsPostRequestAUTH.yaml
RENAMED
|
@@ -10,6 +10,8 @@ properties:
|
|
|
10
10
|
description: |
|
|
11
11
|
Common ID between the PISP and FSP for the Consent object
|
|
12
12
|
determined by the DFSP who creates the Consent.
|
|
13
|
+
consentRequestId:
|
|
14
|
+
$ref: ./CorrelationId.yaml
|
|
13
15
|
scopes:
|
|
14
16
|
minLength: 1
|
|
15
17
|
maxLength: 256
|
|
@@ -20,10 +22,12 @@ properties:
|
|
|
20
22
|
allOf:
|
|
21
23
|
- $ref: ./SignedCredential.yaml
|
|
22
24
|
status:
|
|
23
|
-
$ref: ConsentStatus.yaml
|
|
25
|
+
$ref: ./ConsentStatus.yaml
|
|
26
|
+
extensionList:
|
|
27
|
+
$ref: ./ExtensionList.yaml
|
|
24
28
|
required:
|
|
25
29
|
- consentId
|
|
26
30
|
- scopes
|
|
27
31
|
- credential
|
|
28
|
-
- status
|
|
32
|
+
- status
|
|
29
33
|
additionalProperties: false
|