@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.
Files changed (260) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/CODEOWNERS +1 -1
  3. package/docs/thirdparty-openapi3-snippets.yaml +3019 -2484
  4. package/lib/thirdparty/index.d.ts +1 -4
  5. package/lib/thirdparty/openapi.d.ts +4955 -3959
  6. package/package.json +4 -4
  7. package/tests/dto/thirdparty.test.ts +4 -48
  8. package/thirdparty/v1_0/openapi3/components/headers/Content-Length.yaml +1 -0
  9. package/thirdparty/v1_0/openapi3/components/headers/Content-Type.yaml +1 -0
  10. package/thirdparty/v1_0/openapi3/components/parameters/Accept.yaml +1 -0
  11. package/thirdparty/v1_0/openapi3/components/parameters/Content-Length.yaml +1 -0
  12. package/thirdparty/v1_0/openapi3/components/parameters/Content-Type.yaml +1 -0
  13. package/thirdparty/v1_0/openapi3/components/parameters/Date.yaml +1 -0
  14. package/thirdparty/v1_0/openapi3/components/parameters/FSPIOP-Destination.yaml +1 -0
  15. package/thirdparty/v1_0/openapi3/components/parameters/FSPIOP-Encryption.yaml +1 -0
  16. package/thirdparty/v1_0/openapi3/components/parameters/FSPIOP-HTTP-Method.yaml +1 -0
  17. package/thirdparty/v1_0/openapi3/components/parameters/FSPIOP-Signature.yaml +1 -0
  18. package/thirdparty/v1_0/openapi3/components/parameters/FSPIOP-Source.yaml +1 -0
  19. package/thirdparty/v1_0/openapi3/components/parameters/FSPIOP-URI.yaml +1 -0
  20. package/thirdparty/v1_0/openapi3/components/parameters/ID.yaml +1 -0
  21. package/thirdparty/{openapi3 → v1_0/openapi3}/components/parameters/ServiceType.yaml +0 -0
  22. package/thirdparty/v1_0/openapi3/components/parameters/SubId.yaml +1 -0
  23. package/thirdparty/v1_0/openapi3/components/parameters/Type.yaml +1 -0
  24. package/thirdparty/v1_0/openapi3/components/parameters/X-Forwarded-For.yaml +1 -0
  25. package/thirdparty/v1_0/openapi3/components/responses/200.yaml +1 -0
  26. package/thirdparty/v1_0/openapi3/components/responses/202.yaml +1 -0
  27. package/thirdparty/v1_0/openapi3/components/responses/400.yaml +1 -0
  28. package/thirdparty/v1_0/openapi3/components/responses/401.yaml +1 -0
  29. package/thirdparty/v1_0/openapi3/components/responses/403.yaml +1 -0
  30. package/thirdparty/v1_0/openapi3/components/responses/404.yaml +1 -0
  31. package/thirdparty/v1_0/openapi3/components/responses/405.yaml +1 -0
  32. package/thirdparty/v1_0/openapi3/components/responses/406.yaml +1 -0
  33. package/thirdparty/v1_0/openapi3/components/responses/501.yaml +1 -0
  34. package/thirdparty/v1_0/openapi3/components/responses/503.yaml +1 -0
  35. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/Account.yaml +5 -2
  36. package/thirdparty/v1_0/openapi3/components/schemas/AccountAddress.yaml +25 -0
  37. package/thirdparty/v1_0/openapi3/components/schemas/AccountList.yaml +11 -0
  38. package/thirdparty/v1_0/openapi3/components/schemas/AccountsIDPutResponse.yaml +21 -0
  39. package/thirdparty/v1_0/openapi3/components/schemas/Amount.yaml +1 -0
  40. package/thirdparty/v1_0/openapi3/components/schemas/AmountType.yaml +1 -0
  41. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/AuthenticationResponse.yaml +4 -3
  42. package/thirdparty/v1_0/openapi3/components/schemas/AuthenticatorAssertionResponse.yaml +32 -0
  43. package/thirdparty/v1_0/openapi3/components/schemas/AuthenticatorAttestationResponse.yaml +23 -0
  44. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/AuthorizationResponseType.yaml +0 -0
  45. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/AuthorizationResponseTypeAccepted.yaml +0 -0
  46. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/AuthorizationResponseTypeRejected.yaml +0 -0
  47. package/thirdparty/v1_0/openapi3/components/schemas/BinaryString.yaml +1 -0
  48. package/thirdparty/v1_0/openapi3/components/schemas/ConsentRequestChannelType.yaml +9 -0
  49. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentRequestChannelTypeOTP.yaml +1 -1
  50. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentRequestChannelTypeWeb.yaml +1 -1
  51. package/thirdparty/v1_0/openapi3/components/schemas/ConsentRequestsIDPatchRequest.yaml +17 -0
  52. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentRequestsIDPutResponseOTP.yaml +2 -0
  53. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentRequestsIDPutResponseWeb.yaml +2 -0
  54. package/thirdparty/v1_0/openapi3/components/schemas/ConsentRequestsPostRequest.yaml +51 -0
  55. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentStatus.yaml +0 -0
  56. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentStatusIssued.yaml +1 -1
  57. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentStatusRevoked.yaml +1 -1
  58. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentsIDPatchResponseRevoked.yaml +2 -0
  59. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentsIDPatchResponseVerified.yaml +3 -1
  60. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentsIDPutResponseSigned.yaml +5 -3
  61. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentsIDPutResponseVerified.yaml +5 -3
  62. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentsPostRequestAUTH.yaml +6 -2
  63. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ConsentsPostRequestPISP.yaml +6 -4
  64. package/thirdparty/v1_0/openapi3/components/schemas/CorrelationId.yaml +1 -0
  65. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/CredentialStatusPending.yaml +0 -0
  66. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/CredentialStatusVerified.yaml +0 -0
  67. package/thirdparty/v1_0/openapi3/components/schemas/CredentialType.yaml +11 -0
  68. package/thirdparty/v1_0/openapi3/components/schemas/Currency.yaml +1 -0
  69. package/thirdparty/v1_0/openapi3/components/schemas/DateOfBirth.yaml +1 -0
  70. package/thirdparty/v1_0/openapi3/components/schemas/DateTime.yaml +1 -0
  71. package/thirdparty/v1_0/openapi3/components/schemas/ErrorCode.yaml +1 -0
  72. package/thirdparty/v1_0/openapi3/components/schemas/ErrorDescription.yaml +1 -0
  73. package/thirdparty/v1_0/openapi3/components/schemas/ErrorInformation.yaml +1 -0
  74. package/thirdparty/v1_0/openapi3/components/schemas/Extension.yaml +1 -0
  75. package/thirdparty/v1_0/openapi3/components/schemas/ExtensionKey.yaml +1 -0
  76. package/thirdparty/v1_0/openapi3/components/schemas/ExtensionList.yaml +1 -0
  77. package/thirdparty/v1_0/openapi3/components/schemas/ExtensionValue.yaml +1 -0
  78. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/FIDOPublicKeyCredentialAssertion.yaml +8 -3
  79. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/FIDOPublicKeyCredentialAttestation.yaml +0 -0
  80. package/thirdparty/v1_0/openapi3/components/schemas/FirstName.yaml +1 -0
  81. package/thirdparty/v1_0/openapi3/components/schemas/FspId.yaml +1 -0
  82. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/GenericCredential.yaml +1 -1
  83. package/thirdparty/v1_0/openapi3/components/schemas/GeoCode.yaml +1 -0
  84. package/thirdparty/v1_0/openapi3/components/schemas/IlpCondition.yaml +1 -0
  85. package/thirdparty/v1_0/openapi3/components/schemas/IlpFulfilment.yaml +1 -0
  86. package/thirdparty/v1_0/openapi3/components/schemas/IlpPacket.yaml +1 -0
  87. package/thirdparty/v1_0/openapi3/components/schemas/Integer.yaml +1 -0
  88. package/thirdparty/v1_0/openapi3/components/schemas/LastName.yaml +1 -0
  89. package/thirdparty/v1_0/openapi3/components/schemas/Latitude.yaml +1 -0
  90. package/thirdparty/v1_0/openapi3/components/schemas/Longitude.yaml +1 -0
  91. package/thirdparty/v1_0/openapi3/components/schemas/MerchantClassificationCode.yaml +1 -0
  92. package/thirdparty/v1_0/openapi3/components/schemas/MiddleName.yaml +1 -0
  93. package/thirdparty/v1_0/openapi3/components/schemas/Money.yaml +1 -0
  94. package/thirdparty/v1_0/openapi3/components/schemas/Name.yaml +1 -0
  95. package/thirdparty/v1_0/openapi3/components/schemas/Note.yaml +1 -0
  96. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ParticipantsIDPutResponse.yaml +0 -0
  97. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ParticipantsPostRequest.yaml +0 -0
  98. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ParticipantsTypeIDPutResponse.yaml +0 -0
  99. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ParticipantsTypeIDSubIDPostRequest.yaml +0 -0
  100. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/PartiesTypeIDPutResponse.yaml +0 -0
  101. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/Party.yaml +0 -0
  102. package/thirdparty/v1_0/openapi3/components/schemas/PartyComplexName.yaml +1 -0
  103. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/PartyIdInfo.yaml +0 -0
  104. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/PartyIdInfoTPLink.yaml +0 -0
  105. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/PartyIdType.yaml +0 -0
  106. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/PartyIdTypeTPLink.yaml +0 -0
  107. package/thirdparty/v1_0/openapi3/components/schemas/PartyIdentifier.yaml +1 -0
  108. package/thirdparty/v1_0/openapi3/components/schemas/PartyName.yaml +1 -0
  109. package/thirdparty/v1_0/openapi3/components/schemas/PartyPersonalInfo.yaml +1 -0
  110. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/PartyResult.yaml +0 -0
  111. package/thirdparty/v1_0/openapi3/components/schemas/PartySubIdOrType.yaml +1 -0
  112. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/PartyTPLink.yaml +0 -0
  113. package/thirdparty/v1_0/openapi3/components/schemas/QuotesIDPutResponse.yaml +1 -0
  114. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/QuotesPostRequest.yaml +0 -0
  115. package/thirdparty/v1_0/openapi3/components/schemas/Scope.yaml +20 -0
  116. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ScopeAction.yaml +8 -6
  117. package/thirdparty/v1_0/openapi3/components/schemas/ServiceType.yaml +15 -0
  118. package/thirdparty/v1_0/openapi3/components/schemas/ServicesServiceTypePutResponse.yaml +26 -0
  119. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/SignedCredential.yaml +0 -0
  120. package/thirdparty/v1_0/openapi3/components/schemas/SignedPayloadFIDO.yaml +11 -0
  121. package/thirdparty/v1_0/openapi3/components/schemas/SignedPayloadGeneric.yaml +11 -0
  122. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/SignedPayloadType.yaml +0 -0
  123. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/SignedPayloadTypeFIDO.yaml +0 -0
  124. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/SignedPayloadTypeGeneric.yaml +0 -0
  125. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ThirdpartyRequestsAuthorizationsIDPutResponseFIDO.yaml +4 -11
  126. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ThirdpartyRequestsAuthorizationsIDPutResponseGeneric.yaml +4 -11
  127. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ThirdpartyRequestsAuthorizationsIDPutResponseRejected.yaml +2 -0
  128. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ThirdpartyRequestsAuthorizationsPostRequest.yaml +16 -4
  129. package/thirdparty/v1_0/openapi3/components/schemas/ThirdpartyRequestsTransactionsIDPatchResponse.yaml +27 -0
  130. package/thirdparty/v1_0/openapi3/components/schemas/ThirdpartyRequestsTransactionsIDPutResponse.yaml +20 -0
  131. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ThirdpartyRequestsTransactionsPostRequest.yaml +15 -2
  132. package/thirdparty/v1_0/openapi3/components/schemas/ThirdpartyRequestsVerificationsIDPutResponse.yaml +19 -0
  133. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ThirdpartyRequestsVerificationsPostRequestFIDO.yaml +4 -2
  134. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/ThirdpartyRequestsVerificationsPostRequestGeneric.yaml +4 -2
  135. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/Transaction.yaml +0 -0
  136. package/thirdparty/v1_0/openapi3/components/schemas/TransactionRequestState.yaml +1 -0
  137. package/thirdparty/v1_0/openapi3/components/schemas/TransactionState.yaml +1 -0
  138. package/thirdparty/v1_0/openapi3/components/schemas/TransactionType.yaml +1 -0
  139. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/Uri.yaml +0 -0
  140. package/thirdparty/{openapi3 → v1_0/openapi3}/components/schemas/VerifiedCredential.yaml +6 -7
  141. package/thirdparty/{openapi3 → v1_0/openapi3}/openapi.yaml +9 -9
  142. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/accounts_ID.yaml +0 -0
  143. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/accounts_ID_error.yaml +1 -1
  144. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/consentRequests.yaml +0 -0
  145. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/consentRequests_ID.yaml +6 -6
  146. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/consentRequests_ID_error.yaml +1 -1
  147. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/consents.yaml +0 -0
  148. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/consents_ID.yaml +2 -2
  149. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/consents_ID_error.yaml +1 -1
  150. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/health.yaml +0 -0
  151. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/metrics.yaml +0 -0
  152. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/participants.yaml +0 -0
  153. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/participants_ID.yaml +0 -0
  154. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/participants_ID_error.yaml +1 -1
  155. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/participants_Type_ID.yaml +0 -0
  156. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/participants_Type_ID_error.yaml +1 -1
  157. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/services_ServiceType.yaml +0 -0
  158. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/services_ServiceType_error.yaml +1 -1
  159. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_authorizations.yaml +1 -1
  160. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_authorizations_ID.yaml +3 -3
  161. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_authorizations_ID_error.yaml +1 -1
  162. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_transactions.yaml +1 -1
  163. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_transactions_ID.yaml +0 -0
  164. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_transactions_ID_error.yaml +1 -1
  165. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_verifications.yaml +0 -0
  166. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_verifications_ID.yaml +0 -0
  167. package/thirdparty/{openapi3 → v1_0/openapi3}/paths/thirdpartyRequests_verifications_ID_error.yaml +1 -1
  168. package/thirdparty/{openapi3 → v1_0/openapi3}/thirdparty-dfsp-api.template.yaml +0 -0
  169. package/thirdparty/{openapi3 → v1_0/openapi3}/thirdparty-dfsp-api.yaml +409 -313
  170. package/thirdparty/{openapi3 → v1_0/openapi3}/thirdparty-pisp-api.template.yaml +7 -7
  171. package/thirdparty/{openapi3 → v1_0/openapi3}/thirdparty-pisp-api.yaml +401 -308
  172. package/thirdparty/openapi3/components/headers/Content-Length.yaml +0 -1
  173. package/thirdparty/openapi3/components/headers/Content-Type.yaml +0 -1
  174. package/thirdparty/openapi3/components/parameters/Accept.yaml +0 -1
  175. package/thirdparty/openapi3/components/parameters/Content-Length.yaml +0 -1
  176. package/thirdparty/openapi3/components/parameters/Content-Type.yaml +0 -1
  177. package/thirdparty/openapi3/components/parameters/Date.yaml +0 -1
  178. package/thirdparty/openapi3/components/parameters/FSPIOP-Destination.yaml +0 -1
  179. package/thirdparty/openapi3/components/parameters/FSPIOP-Encryption.yaml +0 -1
  180. package/thirdparty/openapi3/components/parameters/FSPIOP-HTTP-Method.yaml +0 -1
  181. package/thirdparty/openapi3/components/parameters/FSPIOP-Signature.yaml +0 -1
  182. package/thirdparty/openapi3/components/parameters/FSPIOP-Source.yaml +0 -1
  183. package/thirdparty/openapi3/components/parameters/FSPIOP-URI.yaml +0 -1
  184. package/thirdparty/openapi3/components/parameters/ID.yaml +0 -1
  185. package/thirdparty/openapi3/components/parameters/SubId.yaml +0 -1
  186. package/thirdparty/openapi3/components/parameters/Type.yaml +0 -1
  187. package/thirdparty/openapi3/components/parameters/X-Forwarded-For.yaml +0 -1
  188. package/thirdparty/openapi3/components/responses/200.yaml +0 -1
  189. package/thirdparty/openapi3/components/responses/202.yaml +0 -1
  190. package/thirdparty/openapi3/components/responses/400.yaml +0 -1
  191. package/thirdparty/openapi3/components/responses/401.yaml +0 -1
  192. package/thirdparty/openapi3/components/responses/403.yaml +0 -1
  193. package/thirdparty/openapi3/components/responses/404.yaml +0 -1
  194. package/thirdparty/openapi3/components/responses/405.yaml +0 -1
  195. package/thirdparty/openapi3/components/responses/406.yaml +0 -1
  196. package/thirdparty/openapi3/components/responses/501.yaml +0 -1
  197. package/thirdparty/openapi3/components/responses/503.yaml +0 -1
  198. package/thirdparty/openapi3/components/schemas/AccountAddress.yaml +0 -7
  199. package/thirdparty/openapi3/components/schemas/AccountsIDPutResponse.yaml +0 -11
  200. package/thirdparty/openapi3/components/schemas/Amount.yaml +0 -1
  201. package/thirdparty/openapi3/components/schemas/AmountType.yaml +0 -1
  202. package/thirdparty/openapi3/components/schemas/AuthenticationType.yaml +0 -11
  203. package/thirdparty/openapi3/components/schemas/AuthenticationValue.yaml +0 -9
  204. package/thirdparty/openapi3/components/schemas/AuthorizationChannelType.yaml +0 -11
  205. package/thirdparty/openapi3/components/schemas/AuthorizationsIDPutResponse.yaml +0 -10
  206. package/thirdparty/openapi3/components/schemas/AuthorizationsPostRequest.yaml +0 -24
  207. package/thirdparty/openapi3/components/schemas/BinaryString.yaml +0 -1
  208. package/thirdparty/openapi3/components/schemas/ConsentRequestChannelType.yaml +0 -9
  209. package/thirdparty/openapi3/components/schemas/ConsentRequestsIDPatchRequest.yaml +0 -8
  210. package/thirdparty/openapi3/components/schemas/ConsentRequestsPostRequest.yaml +0 -35
  211. package/thirdparty/openapi3/components/schemas/CorrelationId.yaml +0 -1
  212. package/thirdparty/openapi3/components/schemas/CredentialType.yaml +0 -9
  213. package/thirdparty/openapi3/components/schemas/Currency.yaml +0 -1
  214. package/thirdparty/openapi3/components/schemas/DateOfBirth.yaml +0 -1
  215. package/thirdparty/openapi3/components/schemas/DateTime.yaml +0 -1
  216. package/thirdparty/openapi3/components/schemas/ErrorCode.yaml +0 -1
  217. package/thirdparty/openapi3/components/schemas/ErrorDescription.yaml +0 -1
  218. package/thirdparty/openapi3/components/schemas/ErrorInformation.yaml +0 -1
  219. package/thirdparty/openapi3/components/schemas/Extension.yaml +0 -1
  220. package/thirdparty/openapi3/components/schemas/ExtensionKey.yaml +0 -1
  221. package/thirdparty/openapi3/components/schemas/ExtensionList.yaml +0 -1
  222. package/thirdparty/openapi3/components/schemas/ExtensionValue.yaml +0 -1
  223. package/thirdparty/openapi3/components/schemas/FirstName.yaml +0 -1
  224. package/thirdparty/openapi3/components/schemas/FspId.yaml +0 -1
  225. package/thirdparty/openapi3/components/schemas/GeoCode.yaml +0 -1
  226. package/thirdparty/openapi3/components/schemas/IlpCondition.yaml +0 -1
  227. package/thirdparty/openapi3/components/schemas/IlpFulfilment.yaml +0 -1
  228. package/thirdparty/openapi3/components/schemas/IlpPacket.yaml +0 -1
  229. package/thirdparty/openapi3/components/schemas/IndividualQuote.yaml +0 -51
  230. package/thirdparty/openapi3/components/schemas/IndividualQuoteResult.yaml +0 -46
  231. package/thirdparty/openapi3/components/schemas/Integer.yaml +0 -1
  232. package/thirdparty/openapi3/components/schemas/LastName.yaml +0 -1
  233. package/thirdparty/openapi3/components/schemas/Latitude.yaml +0 -1
  234. package/thirdparty/openapi3/components/schemas/Longitude.yaml +0 -1
  235. package/thirdparty/openapi3/components/schemas/MerchantClassificationCode.yaml +0 -1
  236. package/thirdparty/openapi3/components/schemas/MiddleName.yaml +0 -1
  237. package/thirdparty/openapi3/components/schemas/Money.yaml +0 -1
  238. package/thirdparty/openapi3/components/schemas/Name.yaml +0 -1
  239. package/thirdparty/openapi3/components/schemas/Note.yaml +0 -1
  240. package/thirdparty/openapi3/components/schemas/PartyComplexName.yaml +0 -1
  241. package/thirdparty/openapi3/components/schemas/PartyIdentifier.yaml +0 -1
  242. package/thirdparty/openapi3/components/schemas/PartyName.yaml +0 -1
  243. package/thirdparty/openapi3/components/schemas/PartyPersonalInfo.yaml +0 -1
  244. package/thirdparty/openapi3/components/schemas/PartySubIdOrType.yaml +0 -1
  245. package/thirdparty/openapi3/components/schemas/QuotesIDPutResponse.yaml +0 -1
  246. package/thirdparty/openapi3/components/schemas/Scope.yaml +0 -15
  247. package/thirdparty/openapi3/components/schemas/ServiceType.yaml +0 -7
  248. package/thirdparty/openapi3/components/schemas/ServicesServiceTypePutResponse.yaml +0 -12
  249. package/thirdparty/openapi3/components/schemas/ThirdpartyRequestsTransactionsIDPatchResponse.yaml +0 -13
  250. package/thirdparty/openapi3/components/schemas/ThirdpartyRequestsTransactionsIDPutResponse.yaml +0 -8
  251. package/thirdparty/openapi3/components/schemas/ThirdpartyRequestsVerificationsIDPutResponse.yaml +0 -8
  252. package/thirdparty/openapi3/components/schemas/TransactionRequestState.yaml +0 -1
  253. package/thirdparty/openapi3/components/schemas/TransactionRequestsPostRequest.yaml +0 -30
  254. package/thirdparty/openapi3/components/schemas/TransactionState.yaml +0 -1
  255. package/thirdparty/openapi3/components/schemas/TransactionType.yaml +0 -1
  256. package/thirdparty/openapi3/components/schemas/U2FPIN.yaml +0 -8
  257. package/thirdparty/openapi3/components/schemas/U2FPinValue.yaml +0 -19
  258. package/thirdparty/openapi3/components/schemas/index.yaml +0 -182
  259. package/thirdparty/openapi3/paths/authorizations.yaml +0 -51
  260. 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.6",
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
- const quote: Schemas.QuotesIDPutResponse = {
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
- payload: FIDOPublicKeyCredentialAttestation
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'
@@ -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: Data model for the complex type Account.
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
- - id
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'
@@ -2,8 +2,9 @@ title: AuthenticationResponse
2
2
  type: string
3
3
  enum:
4
4
  - VERIFIED
5
- - REJECTED
6
- description: |-
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
@@ -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.
@@ -3,4 +3,4 @@ type: string
3
3
  enum:
4
4
  - OTP
5
5
  description: |
6
- The OTP auth channel being used for PUT consentRequest/{ID} request.
6
+ The OTP auth channel being used for `PUT /consentRequests/{ID}` request.
@@ -3,4 +3,4 @@ type: string
3
3
  enum:
4
4
  - WEB
5
5
  description: |
6
- The web auth channel being used for PUT consentRequest/{ID} request.
6
+ The web auth channel being used for `PUT /consentRequest/{ID}` request.
@@ -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
@@ -22,6 +22,8 @@ properties:
22
22
  # whitelist the PISP's url ahead of time.
23
23
  callbackUri:
24
24
  $ref: ./Uri.yaml
25
+ extensionList:
26
+ $ref: ./ExtensionList.yaml
25
27
  required:
26
28
  - scopes
27
29
  - authChannels
@@ -29,6 +29,8 @@ properties:
29
29
  # login.
30
30
  authUri:
31
31
  $ref: ./Uri.yaml
32
+ extensionList:
33
+ $ref: ./ExtensionList.yaml
32
34
  required:
33
35
  - scopes
34
36
  - authChannels
@@ -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
@@ -1,4 +1,4 @@
1
- title: ConsentStatus
1
+ title: ConsentStatusIssued
2
2
  type: string
3
3
  enum:
4
4
  - ISSUED
@@ -1,4 +1,4 @@
1
- title: ConsentStatus
1
+ title: ConsentStatusRevoked
2
2
  type: string
3
3
  enum:
4
4
  - REVOKED
@@ -10,6 +10,8 @@ properties:
10
10
  $ref: ./ConsentStatusRevoked.yaml
11
11
  revokedAt:
12
12
  $ref: ./DateTime.yaml
13
+ extensionList:
14
+ $ref: ./ExtensionList.yaml
13
15
  required:
14
16
  - status
15
17
  - revokedAt
@@ -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
@@ -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
@@ -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
@@ -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