diff --git a/.gitignore b/.gitignore index 59ce014..2d24213 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ +.idea /.idea/.gitignore /.idea/misc.xml /.idea/modules.xml /.idea/pf-waas-api.iml /.idea/vcs.xml +**.**~ +**.iml diff --git a/README.md b/README.md index fcddd91..1474821 100644 --- a/README.md +++ b/README.md @@ -1 +1,23 @@ # pf-waas-api + +## Обновление Async API + +### Предварительно установить библиотеку + +``` bash +npm install -g @asyncapi/html-template@0.16.0 +``` + +### Запустить пересборку HTML вручную + +``` bash +cd async-api/site/ +ag ../waas-async-api.yaml @asyncapi/html-template +``` +NB! Перед тем, как запускать генерацию HTML нужно закоммитить все изменения в git. +И следовать всем инструкциям. + +### Пересборка оформлена в виде скрипта (linux only) + +> update-async-api.sh + diff --git a/api/waas-api.json b/api/waas-api.json new file mode 100644 index 0000000..e26dff6 --- /dev/null +++ b/api/waas-api.json @@ -0,0 +1,3081 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Profee WaaS integration API", + "description": "

Welcome to the Profee wallet-as-a-service API documentation.

\n

Our API allow you to embed financial services into your product: enable your users to hold funds, manage cash flow,\n issue virtual card and make payments.

\n

\n This documentation provides you with the following information divided into sections:\n

\n\n

\n list of tokenized cards issued in other banks available for user to make transfers.\n

\n

\n This is a living document to be updated regularly with new functionality. To access our sandbox or address questions\n to our developers please contact: waasteam@profeelab.net\n

", + "license": { + "name": "Profee", + "url": "http://profee.com" + }, + "version": "v0.0.1" + }, + "servers": [ + { + "url": "http://localhost:8080", + "description": "Generated server url" + } + ], + "tags": [ + { + "name": "Payments", + "description": "We provide the list of payments methods for registered users. For each payment method, we give you a unique `methodId`.\n\nPayment methods are divided by types, provided in `methodType`.\n\n### Method types:\n\n- `Wallet to wallet` - a payment between users and their wallets.\n- `Wallet to partner` - a payment from user's wallet to partner.\n- `Paysafecash to wallet` - a topping up user’s wallet via Paysafecash. Give the opportunity to up user’s wallet with cash.\n- `Shift to card`- a payment from user's wallet to card issued via Profee.\n- `Shift to wallet` - a payment from card issued via Profee to user's wallet.\n\n![WAAS API - payment methods](img/WAAS_API_-_Payment_methods.jpg)\n\nOverview of steps:\n\n![WAAS API - payments steps](img/WAAS_API_-_Payment_steps.jpg)" + }, + { + "name": "Wallets", + "description": "We create a wallet for each User of our partner, which is the registration of users.\nIt is the starting point for interacting with our service\n\nWe have several critical restrictions for registering clients creating wallets:\n\n- The User must be over 18 years old\n- Unique phone number\n- Unique email\n\nOverview of steps:\n\n![WAAS API - Wallet steps](img/WAAS_API_-_Wallet_steps.jpg)" + }, + { + "name": "Cards", + "description": "Our service allows you to issue bank cards for users. We can issue virtual and plastic cards. We also have a partner who will deliver plastic cards. Check the list of countries supported for cards delivery.\n\nWe will provide you different `productId` in order to issue plastic and virtual card on stage and product environments.\n\n> 💡 Сard issuing is available only for verified users and users with level PLUS or PREMIUM. You can check it via request `/get-wallet`\n\nOverview of steps:\n\n![WAAS API - card](img/WAAS_API_-_Card.jpg)" + } + ], + "paths": { + "/wallet/get-wallet": { + "post": { + "tags": [ + "Wallets" + ], + "summary": "Get wallet", + "description": "Returns current limit and wallet status.", + "operationId": "getWallet", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiRequestContainerGetWalletRequestDto" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiResponseContainerWalletDto" + } + } + } + } + } + } + }, + "/wallet/get-documents-status": { + "post": { + "tags": [ + "Wallets" + ], + "summary": "Getting the status of added documents", + "description": "Get the status of all added documents for verification with a single request. \n\nTo understand what is happening with customer's documents, you should look at the status of each added document in response.\n\n### Warnings\n\nFirst, you need to look at is `documentStatusDTO/warnings`. It will show the precheck result. You can ignore it, or communicate to the customer and ask him to re-upload a particular `documentType`. \n\n### Review answers\n\nGeneral answer on screening of particular document and `documentType` you can find in `documentStatusDTO/reviewResult/reviewAnswer`. \n\n- GREEN - The `documentType`can be accepted and successfully verified. You can upload more then one document for each `documentType`, if you get one `GREEN` for one of them it means this `documentType` approved and you can ignore other documents with the same `documentType`.\n- RED - The document for a particular `documentType` has been rejected.\n\n### Reject types of review answers\n\nYou need to look in `documentStatusDTO/reviewResult/reviewRejectType` to quickly understand is it final or not.\nIf you got `reviewAnswer` RED- `reviewAnswer` we have to understand is it Final or not. \n\n- `Final` - means that document finally rejected, and customer also rejected and will not be approved with another document.\n- `Retry` - The \"retry\" rejection means that customer needs to re-upload a document. For example, by uploading a better quality image. More information about the reason and what to suggest to the customer you can find in the `rejectLabels`.\n", + "operationId": "getDocumentsStatus", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiRequestContainerDocumentsStatusRequestDto" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiResponseContainerDocumentsStatusDto" + } + } + } + } + } + } + }, + "/wallet/create-wallet": { + "post": { + "tags": [ + "Wallets" + ], + "summary": "Create wallet", + "description": "Creates a wallet to register your users in our system. Specify all the necessary data for new wallet registration.", + "operationId": "createWallet", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiRequestContainerCreateWalletRequestDto" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiResponseContainerWalletDto" + } + } + } + } + } + } + }, + "/wallet/add-document": { + "post": { + "tags": [ + "Wallets" + ], + "summary": "Add verification document", + "description": "To verify a User’s identity with Profee, we need to receive documentation:\n\n- A document to confirm the User’s identity.\n- A separate document to confirm the User’s place of residence\n- A selfie holding the document provided in the previous point", + "operationId": "addDocument", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiRequestContainerAddDocumentRequestDto" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiResponseContainerAddDocumentResponseDto" + } + } + } + } + } + } + }, + "/payment/get-payment": { + "post": { + "tags": [ + "Payments" + ], + "summary": "Get payment", + "description": "Returns current information about the payment and its status.", + "operationId": "getPayment", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiRequestContainerGetPaymentRequestDto" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiResponseContainerBasePaymentResponseDto" + } + } + } + } + } + } + }, + "/payment/create-payment": { + "post": { + "tags": [ + "Payments" + ], + "summary": "Create payment", + "description": "Creates a payment on a pre-placed payment order. ", + "operationId": "createPayment", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiRequestContainerCreatePaymentRequestDto" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiResponseContainerBasePaymentResponseDto" + } + } + } + } + } + } + }, + "/payment/create-payment-order": { + "post": { + "tags": [ + "Payments" + ], + "summary": "Create payment order", + "description": "Creates an order to make a payment for registered users.\n\nIt is the first step of making payment. Here we check the possibility to process a payment and calculate fees.\n\nWhen checking the possibility of making payments, we check:\n\n- balance of payment sender\n- daily and monthly limits of wallet\n- availability of another wallet for `Wallet to wallet` payment type\n\n> 💡 You can set up`/to/amount` for many payment methods and `/from/amount`. You should use only one of them: `/to/amount` OR `/from/amount.` This functionality makes it possible to calculate the missing amount by direct or reverse calculation, and we will do it ourselves.\n", + "operationId": "createPaymentOrder", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiRequestContainerBasePaymentOrderRequestDto" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiResponseContainerBasePaymentOrderResponseDto" + } + } + } + } + } + } + }, + "/card/get-card": { + "post": { + "tags": [ + "Cards" + ], + "summary": "Get Profee card information", + "description": "Get general information about the issued card and its current status.", + "operationId": "getCard", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiRequestContainerGetCardRequestDto" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiResponseContainerCardDto" + } + } + } + } + } + } + }, + "/card/get-card-tokens": { + "post": { + "tags": [ + "Cards" + ], + "summary": "Get card tokens", + "description": "After funding a Profee wallet with a bank card, the card data is saved in the form of a token.
The token can be used for subsequent transactions to top up the wallet and withdrawals to the card.
The request allows you to get all tokens linked to the wallet", + "operationId": "getCardTokens", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiRequestContainerCardTokensRequestDto" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiResponseContainerCardTokensDto" + } + } + } + } + } + } + }, + "/card/get-card-operations": { + "post": { + "tags": [ + "Cards" + ], + "summary": "Get Profee card operation history", + "description": "Returns the history of operations by one card for any 31 days. You just need to specify two parameters :\n\n- `fromDate` - starting date in the past which you want to get transactions from. Format is `YYYY-MM-DD`\n- `daysCount` - days from starting date to the future\n\nExamples:\n\n- if you want to see history for January 2022, you should specify `\"fromDate\": \"2022-01-01\"` with `\"daysCount\": \"31\"` days\n- If you want to see history for the current day, you should specify `\"fromDate\": [Current date]` with `\"daysCount\": \"1\"` days\n", + "operationId": "getCardOperations", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiRequestContainerCardOperationsRequestDto" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiResponseContainerCardOperationsDto" + } + } + } + } + } + } + }, + "/card/get-card-details": { + "post": { + "tags": [ + "Cards" + ], + "summary": "Get Profee card details", + "description": "Returns sensitive card details. We use the RSA algorithm to encrypt sensitive data in response. To operate request `/get-card-details`, you need to generate for us a public RSA key with 4096-bit size. Please keep private key in safe. Better to prepare two couples of keys at once: one couple for testing and another one for production.\n\nWe encrypt a few fields in the response: pan, CVV, expiry date. For decryption, you need to use your private keys.", + "operationId": "getCardDetails", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiRequestContainerGetCardDetailsRequestDto" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiResponseContainerCardSecureDto" + } + } + } + } + } + } + }, + "/card/get-card-balance": { + "post": { + "tags": [ + "Cards" + ], + "summary": "Get Profee card balance", + "description": "Returns the current balance of the card and the amount of active holds.\n\n- For details:\n\n> balance - available balance\n> \n> authorizedBalance - total amount of active holds", + "operationId": "getCardBalance", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiRequestContainerGetCardBalanceRequestDto" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiResponseContainerCardBalanceDto" + } + } + } + } + } + } + }, + "/card/create-card": { + "post": { + "tags": [ + "Cards" + ], + "summary": "Create Profee card", + "description": "Issue new Profee card.", + "operationId": "createCard", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiRequestContainerCreateCardRequestDto" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiResponseContainerCardDto" + } + } + } + } + } + } + }, + "/card/change-card-status": { + "post": { + "tags": [ + "Cards" + ], + "summary": "Freeze/Unfreeze Profee card", + "operationId": "changeCardStatus", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiRequestContainerChangeCardStatusRequestDto" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiResponseContainerChangeCardStatusResponseDto" + } + } + } + } + } + } + }, + "/card/activate-plastic-card": { + "post": { + "tags": [ + "Cards" + ], + "summary": "Plactic Profee card activation", + "description": "In the case of issuing the plastic card, we deliver a postal envelope to the customer with plastic card and approval code. Customer need to activate the card with an approval code.", + "operationId": "activatePlasticCard", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiRequestContainerPlasticCardActivationRequestDto" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiResponseContainerCardDto" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "ApiRequestContainerGetWalletRequestDto": { + "required": [ + "request", + "signature" + ], + "type": "object", + "properties": { + "request": { + "$ref": "#/components/schemas/GetWalletRequestDto" + }, + "signature": { + "type": "string", + "description": "Signature of request content" + } + }, + "description": "Request wrapper" + }, + "GetWalletRequestDto": { + "required": [ + "walletId" + ], + "type": "object", + "properties": { + "walletId": { + "type": "string", + "description": "User's Wallet ID" + } + }, + "description": "Request model to Get Wallet" + }, + "ApiResponseContainerWalletDto": { + "required": [ + "signature", + "status" + ], + "type": "object", + "properties": { + "response": { + "$ref": "#/components/schemas/WalletDto" + }, + "status": { + "$ref": "#/components/schemas/ResponseStatus" + }, + "signature": { + "type": "string", + "description": "Signature of response content" + } + }, + "description": "Response wrapper" + }, + "BalanceDto": { + "required": [ + "money" + ], + "type": "object", + "properties": { + "money": { + "$ref": "#/components/schemas/MoneyDto" + } + }, + "description": "Balance" + }, + "LimitDto": { + "required": [ + "sum", + "type" + ], + "type": "object", + "properties": { + "sum": { + "$ref": "#/components/schemas/MoneyDto" + }, + "type": { + "type": "string", + "description": "Limit type", + "enum": [ + "DAILY_TO", + "DAILY_FROM", + "MONTHLY_TO", + "MONTHLY_FROM", + "YEARLY_TO", + "YEARLY_FROM", + "GAMBLE" + ] + } + }, + "description": "Limit information" + }, + "MoneyDto": { + "required": [ + "currency" + ], + "type": "object", + "properties": { + "amount": { + "type": "number", + "description": "Amount of money. Can be null." + }, + "currency": { + "type": "string", + "description": "Currency represented in alpha codes ISO 4217" + } + }, + "description": "Amount and currency" + }, + "ResponseStatus": { + "required": [ + "code", + "message" + ], + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "Response code (for machine)", + "enum": [ + "OK", + "CREATED", + "BAD_REQUEST", + "UNEXPECTED_ERROR", + "CONFLICT", + "EMAIL_IS_NOT_VERIFIED", + "PRODUCT_NOT_FOUND", + "WRONG_PRODUCT", + "CARD_NOT_FOUND", + "WALLET_NOT_FOUND", + "MAX_CARD_COUNT_REACHED", + "WAAS_PARTNER_NOT_CONFIGURED", + "VERIFICATION_LEVEL_NOT_ENOUGH", + "WRONG_CARD_STATUS", + "FAILED_TO_ACTIVATE_PLASTIC_CARD", + "WRONG_WALLET_IDENT_STATUS", + "PAYMENT_ALREADY_EXISTS", + "INVALID_DAYS_COUNT", + "CHANGE_CARD_STATUS_FAILED", + "UNAPPROPRIATE_CARD_STATUS" + ] + }, + "message": { + "type": "string", + "description": "Response message (for developer)" + } + }, + "description": "Response status" + }, + "WalletDto": { + "required": [ + "balances", + "externalId", + "limits", + "status", + "verificationLevel", + "walletId" + ], + "type": "object", + "properties": { + "walletId": { + "type": "string", + "description": "User's Wallet ID" + }, + "balances": { + "type": "array", + "description": "Balances in all available currencies", + "items": { + "$ref": "#/components/schemas/BalanceDto" + } + }, + "limits": { + "type": "array", + "description": "Limits information in all available currencies", + "items": { + "$ref": "#/components/schemas/LimitDto" + } + }, + "verificationLevel": { + "type": "string", + "description": "User's Wallet verification level (KYC)", + "enum": [ + "UNVERIFIED", + "BASIC", + "PLUS", + "PREMIUM" + ] + }, + "status": { + "type": "string", + "description": "Wallet Status", + "enum": [ + "ACTIVE", + "LOCKED", + "BLOCKED" + ] + }, + "externalId": { + "type": "string", + "description": "External ID - Wallet ID in Merchant system" + } + }, + "description": "Wallet information" + }, + "ApiRequestContainerDocumentsStatusRequestDto": { + "required": [ + "request", + "signature" + ], + "type": "object", + "properties": { + "request": { + "$ref": "#/components/schemas/DocumentsStatusRequestDto" + }, + "signature": { + "type": "string", + "description": "Signature of request content" + } + }, + "description": "Request wrapper" + }, + "DocumentsStatusRequestDto": { + "required": [ + "walletId" + ], + "type": "object", + "properties": { + "walletId": { + "type": "string", + "description": "User's Wallet ID" + } + }, + "description": "Request to get the status of added user documents" + }, + "ApiResponseContainerDocumentsStatusDto": { + "required": [ + "signature", + "status" + ], + "type": "object", + "properties": { + "response": { + "$ref": "#/components/schemas/DocumentsStatusDto" + }, + "status": { + "$ref": "#/components/schemas/ResponseStatus" + }, + "signature": { + "type": "string", + "description": "Signature of response content" + } + }, + "description": "Response wrapper" + }, + "DocumentStatusDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Document ID, generated when adding a document" + }, + "documentType": { + "type": "string", + "description": "Document type", + "enum": [ + "ID_CARD", + "PASSPORT", + "DRIVERS", + "BANK_CARD", + "UTILITY_BILL", + "BANK_STATEMENT", + "SELFIE", + "VIDEO_SELFIE", + "PROFILE_IMAGE", + "ID_DOC_PHOTO", + "AGREEMENT", + "CONTRACT", + "RESIDENCE_PERMIT", + "EMPLOYMENT_CERTIFICATE", + "DRIVERS_TRANSLATION", + "INVESTOR_DOC", + "VEHICLE_REGISTRATION_CERTIFICATE", + "INCOME_SOURCE", + "PAYMENT_METHOD", + "OTHER" + ] + }, + "documentSubType": { + "type": "string", + "description": "Document sub type", + "enum": [ + "FRONT_SIDE", + "BACK_SIDE" + ] + }, + "proofSubject": { + "type": "string", + "description": "Proof subject of document. Can be proof of residence, proof of identity or selfie", + "enum": [ + "POI", + "SELFIE", + "POR" + ] + }, + "reviewResult": { + "$ref": "#/components/schemas/ReviewResult" + } + }, + "description": "Status of added document" + }, + "DocumentsStatusDto": { + "required": [ + "documentsStatus", + "walletId" + ], + "type": "object", + "properties": { + "walletId": { + "type": "string", + "description": "User's Wallet ID" + }, + "documentsStatus": { + "type": "array", + "description": "Added documents status", + "items": { + "$ref": "#/components/schemas/DocumentStatusDto" + } + } + }, + "description": "Added documents status" + }, + "ReviewResult": { + "type": "object", + "properties": { + "moderationComment": { + "type": "string", + "description": "Moderation comment" + }, + "clientComment": { + "type": "string", + "description": "Client comment" + }, + "reviewAnswer": { + "type": "string", + "description": "The overall result of the test. Green means the document was successfully verified, red - violations detected.", + "enum": [ + "GREEN", + "RED" + ] + }, + "rejectLabels": { + "type": "array", + "description": "A list of violation codes found during document verification.\n\n|Value|Default| reviewRejectTypeDescription|\n|-----|--------|-------------------------------|\n|FORGERY|FINAL|Forgery attempt has been made|\n|DOCUMENT_TEMPLATE|FINAL|Documents supplied are templates, downloaded from internet|\n|LOW_QUALITY|RETRY|Documents have low-quality that does not allow definitive conclusions to be made|\n|SPAM|FINAL|An applicant has been created by mistake or is just a spam user (irrelevant images were supplied)|\n|NOT_DOCUMENT|RETRY|Documents supplied are not relevant for the verification procedure|\n|SELFIE_MISMATCH|FINAL|A user photo (profile image) does not match a photo on the provided documents|\n|ID_INVALID|RETRY|A document that identifies a person (like a passport or an ID card) is not valid|\n|FOREIGNER|FINAL|When a client does not accept applicants from a different country or e.g. without a residence permit|\n|DUPLICATE|FINAL|This applicant was already created for this client, and duplicates are not allowed by the regulations|\n|BAD_AVATAR|RETRY|When avatar does not meet the client's requirements|\n|WRONG_USER_REGION|FINAL|When applicants from certain regions/countries are not allowed to be registered|\n|INCOMPLETE_DOCUMENT|RETRY|Some information is missing from the document, or it's partially visible|\n|BLACKLIST|FINAL|User is blacklisted|\n|UNSATISFACTORY_PHOTOS|RETRY|There were problems with the photos, like poor quality or masked information|\n|DOCUMENT_PAGE_MISSING|RETRY|Some pages of a document are missing (if applicable)|\n|DOCUMENT_DAMAGED|RETRY|Document is damaged|\n|REGULATIONS_VIOLATIONS|FINAL|Regulations violations|\n|INCONSISTENT_PROFILE|FINAL|Data or documents of different persons were uploaded to one applicant|\n|PROBLEMATIC_APPLICANT_DATA|RETRY|Applicant data does not match the data in the documents|\n|ADDITIONAL_DOCUMENT_REQUIRED|RETRY|Additional documents required to pass the check|\n|AGE_REQUIREMENT_MISMATCH|FINAL|Age requirement is not met (e.g. cannot rent a car to a person below 25yo)|\n|EXPERIENCE_REQUIREMENT_MISMATCH|FINAL|Not enough experience (e.g. driving experience is not enough)|\n|CRIMINAL|FINAL|The user is involved in illegal actions|\n|WRONG_ADDRESS|RETRY|The address from the documents doesn't match the address that the user entered|\n|GRAPHIC_EDITOR|RETRY|The document has been edited by a graphical editor|\n|DOCUMENT_DEPRIVED|RETRY|The user has been deprived of the document|\n|COMPROMISED_PERSONS|FINAL|The user does not correspond to Compromised Person Politics|\n|PEP|FINAL|The user belongs to the PEP category|\n|ADVERSE_MEDIA|FINAL|The user was found in the adverse media|\n|FRAUDULENT_PATTERNS|FINAL|Fraudulent behavior was detected|\n|SANCTIONS|FINAL|The user was found on sanction lists|\n|NOT_ALL_CHECKS_COMPLETED|RETRY|All checks were not completed|\n|FRONT_SIDE_MISSING|RETRY|Front side of the document is missing|\n|BACK_SIDE_MISSING|RETRY|Back side of the document is missing|\n|SCREENSHOTS|RETRY|The user uploaded screenshots|\n|BLACK_AND_WHITE|RETRY|The user uploaded black and white photos of documents|\n|INCOMPATIBLE_LANGUAGE|RETRY|The user should upload translation of his document|\n|EXPIRATION_DATE|RETRY|The user uploaded expired document|\n|UNFILLED_ID|RETRY|The user uploaded the document without signatures and stamps|\n|BAD_SELFIE|RETRY|The user uploaded a bad selfie|\n|BAD_VIDEO_SELFIE|RETRY|The user uploaded a bad video selfie|\n|BAD_FACE_MATCHING|RETRY|Face check between document and selfie failed|\n|BAD_PROOF_OF_IDENTITY|RETRY|The user uploaded a bad ID document|\n|BAD_PROOF_OF_ADDRESS|RETRY|The user uploaded a bad proof of address|\n|BAD_PROOF_OF_PAYMENT|RETRY|The user uploaded a bad proof of payment|\n|SELFIE_WITH_PAPER|RETRY|The user should upload a special selfie (e.g. selfie with paper and date on it)|\n|FRAUDULENT_LIVENESS|FINAL|There was an attempt to bypass liveness check|\n|OTHER|RETRY|Some unclassified reason|\n|REQUESTED_DATA_MISMATCH|RETRY|Provided info doesn't match with recognized from document data|\n|OK|RETRY|Custom reject label|\n|COMPANY_NOT_DEFINED_STRUCTURE|RETRY|Could not establish the entity's control structure|\n|COMPANY_NOT_DEFINED_BENEFICIARIES|RETRY|Could not identify and duly verify the entity's beneficial owners|\n|COMPANY_NOT_VALIDATED_BENEFICIARIES|RETRY|Beneficiaries are not validated|\n|COMPANY_NOT_DEFINED_REPRESENTATIVES|RETRY|Representatives are not defined|\n|COMPANY_NOT_VALIDATED_REPRESENTATIVES|RETRY|Representatives are not validated|\n", + "items": { + "type": "string", + "description": "A list of violation codes found during document verification.\n\n|Value|Default| reviewRejectTypeDescription|\n|-----|--------|-------------------------------|\n|FORGERY|FINAL|Forgery attempt has been made|\n|DOCUMENT_TEMPLATE|FINAL|Documents supplied are templates, downloaded from internet|\n|LOW_QUALITY|RETRY|Documents have low-quality that does not allow definitive conclusions to be made|\n|SPAM|FINAL|An applicant has been created by mistake or is just a spam user (irrelevant images were supplied)|\n|NOT_DOCUMENT|RETRY|Documents supplied are not relevant for the verification procedure|\n|SELFIE_MISMATCH|FINAL|A user photo (profile image) does not match a photo on the provided documents|\n|ID_INVALID|RETRY|A document that identifies a person (like a passport or an ID card) is not valid|\n|FOREIGNER|FINAL|When a client does not accept applicants from a different country or e.g. without a residence permit|\n|DUPLICATE|FINAL|This applicant was already created for this client, and duplicates are not allowed by the regulations|\n|BAD_AVATAR|RETRY|When avatar does not meet the client's requirements|\n|WRONG_USER_REGION|FINAL|When applicants from certain regions/countries are not allowed to be registered|\n|INCOMPLETE_DOCUMENT|RETRY|Some information is missing from the document, or it's partially visible|\n|BLACKLIST|FINAL|User is blacklisted|\n|UNSATISFACTORY_PHOTOS|RETRY|There were problems with the photos, like poor quality or masked information|\n|DOCUMENT_PAGE_MISSING|RETRY|Some pages of a document are missing (if applicable)|\n|DOCUMENT_DAMAGED|RETRY|Document is damaged|\n|REGULATIONS_VIOLATIONS|FINAL|Regulations violations|\n|INCONSISTENT_PROFILE|FINAL|Data or documents of different persons were uploaded to one applicant|\n|PROBLEMATIC_APPLICANT_DATA|RETRY|Applicant data does not match the data in the documents|\n|ADDITIONAL_DOCUMENT_REQUIRED|RETRY|Additional documents required to pass the check|\n|AGE_REQUIREMENT_MISMATCH|FINAL|Age requirement is not met (e.g. cannot rent a car to a person below 25yo)|\n|EXPERIENCE_REQUIREMENT_MISMATCH|FINAL|Not enough experience (e.g. driving experience is not enough)|\n|CRIMINAL|FINAL|The user is involved in illegal actions|\n|WRONG_ADDRESS|RETRY|The address from the documents doesn't match the address that the user entered|\n|GRAPHIC_EDITOR|RETRY|The document has been edited by a graphical editor|\n|DOCUMENT_DEPRIVED|RETRY|The user has been deprived of the document|\n|COMPROMISED_PERSONS|FINAL|The user does not correspond to Compromised Person Politics|\n|PEP|FINAL|The user belongs to the PEP category|\n|ADVERSE_MEDIA|FINAL|The user was found in the adverse media|\n|FRAUDULENT_PATTERNS|FINAL|Fraudulent behavior was detected|\n|SANCTIONS|FINAL|The user was found on sanction lists|\n|NOT_ALL_CHECKS_COMPLETED|RETRY|All checks were not completed|\n|FRONT_SIDE_MISSING|RETRY|Front side of the document is missing|\n|BACK_SIDE_MISSING|RETRY|Back side of the document is missing|\n|SCREENSHOTS|RETRY|The user uploaded screenshots|\n|BLACK_AND_WHITE|RETRY|The user uploaded black and white photos of documents|\n|INCOMPATIBLE_LANGUAGE|RETRY|The user should upload translation of his document|\n|EXPIRATION_DATE|RETRY|The user uploaded expired document|\n|UNFILLED_ID|RETRY|The user uploaded the document without signatures and stamps|\n|BAD_SELFIE|RETRY|The user uploaded a bad selfie|\n|BAD_VIDEO_SELFIE|RETRY|The user uploaded a bad video selfie|\n|BAD_FACE_MATCHING|RETRY|Face check between document and selfie failed|\n|BAD_PROOF_OF_IDENTITY|RETRY|The user uploaded a bad ID document|\n|BAD_PROOF_OF_ADDRESS|RETRY|The user uploaded a bad proof of address|\n|BAD_PROOF_OF_PAYMENT|RETRY|The user uploaded a bad proof of payment|\n|SELFIE_WITH_PAPER|RETRY|The user should upload a special selfie (e.g. selfie with paper and date on it)|\n|FRAUDULENT_LIVENESS|FINAL|There was an attempt to bypass liveness check|\n|OTHER|RETRY|Some unclassified reason|\n|REQUESTED_DATA_MISMATCH|RETRY|Provided info doesn't match with recognized from document data|\n|OK|RETRY|Custom reject label|\n|COMPANY_NOT_DEFINED_STRUCTURE|RETRY|Could not establish the entity's control structure|\n|COMPANY_NOT_DEFINED_BENEFICIARIES|RETRY|Could not identify and duly verify the entity's beneficial owners|\n|COMPANY_NOT_VALIDATED_BENEFICIARIES|RETRY|Beneficiaries are not validated|\n|COMPANY_NOT_DEFINED_REPRESENTATIVES|RETRY|Representatives are not defined|\n|COMPANY_NOT_VALIDATED_REPRESENTATIVES|RETRY|Representatives are not validated|\n", + "enum": [ + "FORGERY", + "DOCUMENT_TEMPLATE", + "LOW_QUALITY", + "SPAM", + "NOT_DOCUMENT", + "SELFIE_MISMATCH", + "ID_INVALID", + "FOREIGNER", + "DUPLICATE", + "BAD_AVATAR", + "WRONG_USER_REGION", + "INCOMPLETE_DOCUMENT", + "BLACKLIST", + "UNSATISFACTORY_PHOTOS", + "DOCUMENT_PAGE_MISSING", + "DOCUMENT_DAMAGED", + "REGULATIONS_VIOLATIONS", + "INCONSISTENT_PROFILE", + "PROBLEMATIC_APPLICANT_DATA", + "ADDITIONAL_DOCUMENT_REQUIRED", + "AGE_REQUIREMENT_MISMATCH", + "EXPERIENCE_REQUIREMENT_MISMATCH", + "CRIMINAL", + "WRONG_ADDRESS", + "GRAPHIC_EDITOR", + "DOCUMENT_DEPRIVED", + "COMPROMISED_PERSONS", + "PEP", + "ADVERSE_MEDIA", + "FRAUDULENT_PATTERNS", + "SANCTIONS", + "NOT_ALL_CHECKS_COMPLETED", + "FRONT_SIDE_MISSING", + "BACK_SIDE_MISSING", + "SCREENSHOTS", + "BLACK_AND_WHITE", + "INCOMPATIBLE_LANGUAGE", + "EXPIRATION_DATE", + "UNFILLED_ID", + "BAD_SELFIE", + "BAD_VIDEO_SELFIE", + "BAD_FACE_MATCHING", + "BAD_PROOF_OF_IDENTITY", + "BAD_PROOF_OF_ADDRESS", + "BAD_PROOF_OF_PAYMENT", + "SELFIE_WITH_PAPER", + "OTHER" + ] + } + }, + "reviewRejectType": { + "type": "string", + "description": "Whether the rejection is final. The \"retry\" rejection can be corrected, for example, by uploading a better quality image (more information in the rejection labels)", + "enum": [ + "FINAL", + "RETRY", + "EXTERNAL" + ] + } + }, + "description": "The results of the document verification" + }, + "AddressDto": { + "required": [ + "buildingName", + "city", + "flatNumber", + "postalCode", + "streetName" + ], + "type": "object", + "properties": { + "city": { + "type": "string" + }, + "postalCode": { + "type": "string" + }, + "streetName": { + "type": "string" + }, + "buildingName": { + "type": "string" + }, + "flatNumber": { + "type": "string" + } + }, + "description": "User's residential address" + }, + "ApiRequestContainerCreateWalletRequestDto": { + "required": [ + "request", + "signature" + ], + "type": "object", + "properties": { + "request": { + "$ref": "#/components/schemas/CreateWalletRequestDto" + }, + "signature": { + "type": "string", + "description": "Signature of request content" + } + }, + "description": "Request wrapper" + }, + "CreateWalletRequestDto": { + "required": [ + "citizenship", + "dateOfBirth", + "email", + "externalId", + "firstName", + "lastName", + "residence", + "residentialAddress" + ], + "type": "object", + "properties": { + "phone": { + "type": "integer", + "description": "User's phone number (must be verified before performing request)", + "format": "int64" + }, + "email": { + "type": "string", + "description": "User's email" + }, + "firstName": { + "type": "string", + "description": "User's first name" + }, + "lastName": { + "type": "string", + "description": "User's last name" + }, + "dateOfBirth": { + "pattern": "yyyy-MM-dd", + "type": "string", + "description": "User's date of birth", + "format": "date" + }, + "citizenship": { + "maxLength": 3, + "minLength": 3, + "pattern": "[a-zA-Z]{3}", + "type": "string", + "description": "User's citizenship Alpha-3 code" + }, + "residence": { + "maxLength": 3, + "minLength": 3, + "pattern": "[a-zA-Z]{3}", + "type": "string", + "description": "User's residence Alpha-3 code" + }, + "residentialAddress": { + "$ref": "#/components/schemas/AddressDto" + }, + "externalId": { + "type": "string", + "description": "External ID - Wallet ID in Merchant system" + } + }, + "description": "Request model to Create Wallet" + }, + "AddDocumentRequestDto": { + "required": [ + "countryCode", + "documentContent", + "documentType", + "proofSubject", + "walletId" + ], + "type": "object", + "properties": { + "walletId": { + "type": "string", + "description": "User's Wallet ID" + }, + "documentType": { + "type": "string", + "description": "Personal document type", + "enum": [ + "ID_CARD", + "PASSPORT", + "DRIVERS", + "BANK_CARD", + "UTILITY_BILL", + "BANK_STATEMENT", + "SELFIE", + "VIDEO_SELFIE", + "PROFILE_IMAGE", + "ID_DOC_PHOTO", + "AGREEMENT", + "CONTRACT", + "RESIDENCE_PERMIT", + "EMPLOYMENT_CERTIFICATE", + "DRIVERS_TRANSLATION", + "INVESTOR_DOC", + "VEHICLE_REGISTRATION_CERTIFICATE", + "INCOME_SOURCE", + "PAYMENT_METHOD", + "OTHER" + ] + }, + "documentSubType": { + "type": "string", + "description": "Personal document sub-type", + "enum": [ + "FRONT_SIDE", + "BACK_SIDE" + ] + }, + "proofSubject": { + "type": "string", + "description": "Proof subject of document. Can be proof of residence, proof of identity or selfie", + "enum": [ + "POI", + "SELFIE", + "POR" + ] + }, + "countryCode": { + "maxLength": 3, + "minLength": 0, + "type": "string", + "description": "3-letter country code" + }, + "firstName": { + "type": "string", + "description": "First name" + }, + "middleName": { + "type": "string", + "description": "Middle name" + }, + "lastName": { + "type": "string", + "description": "Last name" + }, + "issuedDate": { + "type": "string", + "description": "Issued date (format YYYY-mm-dd, e.g. 2001-09-25)", + "format": "date" + }, + "validUntil": { + "type": "string", + "description": "Valid until date (format YYYY-mm-dd, e.g. 2001-09-26)", + "format": "date" + }, + "number": { + "type": "string", + "description": "Document number" + }, + "dateOfBirth": { + "type": "string", + "description": "Date of birth (format YYYY-mm-dd, e.g. 2001-09-27)", + "format": "date" + }, + "placeOfBirth": { + "type": "string", + "description": "Place of birth" + }, + "documentContent": { + "type": "string", + "description": "Personal document content (Base64 encoded file image content)" + } + }, + "description": "Request model to Upgrade User's wallet" + }, + "ApiRequestContainerAddDocumentRequestDto": { + "required": [ + "request", + "signature" + ], + "type": "object", + "properties": { + "request": { + "$ref": "#/components/schemas/AddDocumentRequestDto" + }, + "signature": { + "type": "string", + "description": "Signature of request content" + } + }, + "description": "Request wrapper" + }, + "AddDocumentResponseDto": { + "required": [ + "countryCode", + "documentType", + "id", + "proofSubject", + "walletId" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Document ID in Profee storage" + }, + "walletId": { + "type": "string", + "description": "User's Wallet ID" + }, + "documentType": { + "type": "string", + "description": "Personal document type", + "enum": [ + "ID_CARD", + "PASSPORT", + "DRIVERS", + "BANK_CARD", + "UTILITY_BILL", + "BANK_STATEMENT", + "SELFIE", + "VIDEO_SELFIE", + "PROFILE_IMAGE", + "ID_DOC_PHOTO", + "AGREEMENT", + "CONTRACT", + "RESIDENCE_PERMIT", + "EMPLOYMENT_CERTIFICATE", + "DRIVERS_TRANSLATION", + "INVESTOR_DOC", + "VEHICLE_REGISTRATION_CERTIFICATE", + "INCOME_SOURCE", + "PAYMENT_METHOD", + "OTHER" + ] + }, + "documentSubType": { + "type": "string", + "description": "Personal document sub-type", + "enum": [ + "FRONT_SIDE", + "BACK_SIDE" + ] + }, + "proofSubject": { + "type": "string", + "description": "Proof subject of document. Can be proof of residence, proof of identity or selfie", + "enum": [ + "POI", + "SELFIE", + "POR" + ] + }, + "countryCode": { + "maxLength": 3, + "minLength": 0, + "type": "string", + "description": "3-letter country code" + }, + "firstName": { + "type": "string", + "description": "First name" + }, + "middleName": { + "type": "string", + "description": "Middle name" + }, + "lastName": { + "type": "string", + "description": "Last name" + }, + "issuedDate": { + "type": "string", + "description": "Issued date (format YYYY-mm-dd, e.g. 2001-09-25)", + "format": "date" + }, + "validUntil": { + "type": "string", + "description": "Valid until date (format YYYY-mm-dd, e.g. 2001-09-26)", + "format": "date" + }, + "number": { + "type": "string", + "description": "Document number" + }, + "dateOfBirth": { + "type": "string", + "description": "Date of birth (format YYYY-mm-dd, e.g. 2001-09-27)", + "format": "date" + }, + "placeOfBirth": { + "type": "string", + "description": "Place of birth" + } + }, + "description": "Request model to Upgrade User's wallet" + }, + "ApiResponseContainerAddDocumentResponseDto": { + "required": [ + "signature", + "status" + ], + "type": "object", + "properties": { + "response": { + "$ref": "#/components/schemas/AddDocumentResponseDto" + }, + "status": { + "$ref": "#/components/schemas/ResponseStatus" + }, + "signature": { + "type": "string", + "description": "Signature of response content" + } + }, + "description": "Response wrapper" + }, + "ApiRequestContainerGetPaymentRequestDto": { + "required": [ + "request", + "signature" + ], + "type": "object", + "properties": { + "request": { + "$ref": "#/components/schemas/GetPaymentRequestDto" + }, + "signature": { + "type": "string", + "description": "Signature of request content" + } + }, + "description": "Request wrapper" + }, + "GetPaymentRequestDto": { + "type": "object", + "properties": { + "paymentId": { + "type": "string", + "description": "Payment ID obtained from Create payment request" + }, + "externalId": { + "type": "string", + "description": "Operation ID in waas-partner system" + } + }, + "description": "Request model to get payment information and status. Either paymentId or externalId must be specified. If both are specified, the search will be performed by paymentId." + }, + "ApiResponseContainerBasePaymentResponseDto": { + "required": [ + "signature", + "status" + ], + "type": "object", + "properties": { + "response": { + "$ref": "#/components/schemas/BasePaymentResponseDto" + }, + "status": { + "$ref": "#/components/schemas/ResponseStatus" + }, + "signature": { + "type": "string", + "description": "Signature of response content" + } + }, + "description": "Response wrapper" + }, + "BasePaymentResponseDto": { + "required": [ + "creatorWalletId", + "datetime", + "externalId", + "feeSum", + "fromSum", + "id", + "lifetimeMinutes", + "methodId", + "methodType", + "paymentOrderId", + "state", + "toSum" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Payment id" + }, + "externalId": { + "type": "string", + "description": "Payment UID in waas partner's system" + }, + "paymentOrderId": { + "type": "string", + "description": "Payment order id" + }, + "methodId": { + "type": "string", + "description": "Payment method id" + }, + "methodType": { + "type": "string", + "description": "Payment method type", + "enum": [ + "WALLET_TO_WALLET", + "WALLET_TO_PARTNER", + "PARTNER_TO_WALLET", + "PAYSAFECASH_TO_WALLET", + "WAAS_SHIFT_TO_CARD", + "WAAS_SHIFT_TO_WALLET", + "WALLET_TO_CARD", + "WAAS_CARD_ISSUING" + ] + }, + "creatorWalletId": { + "type": "string", + "description": "Wallet id of user, initiated payment" + }, + "datetime": { + "type": "string", + "description": "Date and time of payment", + "format": "date-time" + }, + "state": { + "$ref": "#/components/schemas/PaymentStateDto" + }, + "lifetimeMinutes": { + "type": "integer", + "description": "Payment lifetime. If lifetime is passed and payment is not complete, it will failed", + "format": "int32" + }, + "fromSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "toSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "feeSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "comment": { + "type": "string", + "description": "Comment by a user" + } + }, + "description": "Model of payment", + "oneOf": [ + { + "$ref": "#/components/schemas/WalletToWalletPaymentResponseDto" + }, + { + "$ref": "#/components/schemas/WalletToPartnerPaymentResponseDto" + }, + { + "$ref": "#/components/schemas/PaySafeCashToWalletPaymentResponseDto" + }, + { + "$ref": "#/components/schemas/ShiftToCardPaymentResponseDto" + }, + { + "$ref": "#/components/schemas/ShiftToWalletPaymentResponseDto" + } + ] + }, + "MinorUnitMoneyDto": { + "required": [ + "currency" + ], + "type": "object", + "properties": { + "amount": { + "type": "number", + "description": "Amount of money in minor units. Can be null." + }, + "currency": { + "type": "string", + "description": "Currency represented in alpha codes ISO 4217" + } + }, + "description": "Amount in minor units and currency" + }, + "PaySafeCashToWalletPaymentResponseDto": { + "required": [ + "creatorWalletId", + "datetime", + "externalId", + "feeSum", + "fromSum", + "id", + "lifetimeMinutes", + "methodId", + "methodType", + "paymentOrderId", + "state", + "toSum" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Payment id" + }, + "externalId": { + "type": "string", + "description": "Payment UID in waas partner's system" + }, + "paymentOrderId": { + "type": "string", + "description": "Payment order id" + }, + "methodId": { + "type": "string", + "description": "Payment method id" + }, + "methodType": { + "type": "string", + "description": "Payment method type", + "enum": [ + "WALLET_TO_WALLET", + "WALLET_TO_PARTNER", + "PARTNER_TO_WALLET", + "PAYSAFECASH_TO_WALLET", + "WAAS_SHIFT_TO_CARD", + "WAAS_SHIFT_TO_WALLET", + "WALLET_TO_CARD", + "WAAS_CARD_ISSUING" + ] + }, + "creatorWalletId": { + "type": "string", + "description": "Wallet id of user, initiated payment" + }, + "datetime": { + "type": "string", + "description": "Date and time of payment", + "format": "date-time" + }, + "state": { + "$ref": "#/components/schemas/PaymentStateDto" + }, + "lifetimeMinutes": { + "type": "integer", + "description": "Payment lifetime. If lifetime is passed and payment is not complete, it will failed", + "format": "int32" + }, + "fromSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "toSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "feeSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "comment": { + "type": "string", + "description": "Comment by a user" + }, + "redirectUrl": { + "type": "string", + "description": "Redirect url to the Paysafecash payment panel" + } + }, + "description": "Top up wallet from PaySafeCash system" + }, + "PaymentStateDto": { + "type": "object", + "properties": { + "code": { + "type": "string", + "enum": [ + "CONFIRMATION_REQUIRED", + "ACS_CHECK_REQUIRED", + "PAYMENT_IN_PROGRESS", + "EXTERNAL_PAYMENT", + "PAID_WAIT_NEXT_PAYMENT", + "PAID", + "ERROR_GENERAL" + ] + }, + "isFinal": { + "type": "boolean" + } + }, + "description": "Payment actual state" + }, + "ShiftToCardPaymentResponseDto": { + "required": [ + "creatorWalletId", + "datetime", + "externalId", + "feeSum", + "fromSum", + "id", + "lifetimeMinutes", + "methodId", + "methodType", + "paymentOrderId", + "state", + "toSum" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Payment id" + }, + "externalId": { + "type": "string", + "description": "Payment UID in waas partner's system" + }, + "paymentOrderId": { + "type": "string", + "description": "Payment order id" + }, + "methodId": { + "type": "string", + "description": "Payment method id" + }, + "methodType": { + "type": "string", + "description": "Payment method type", + "enum": [ + "WALLET_TO_WALLET", + "WALLET_TO_PARTNER", + "PARTNER_TO_WALLET", + "PAYSAFECASH_TO_WALLET", + "WAAS_SHIFT_TO_CARD", + "WAAS_SHIFT_TO_WALLET", + "WALLET_TO_CARD", + "WAAS_CARD_ISSUING" + ] + }, + "creatorWalletId": { + "type": "string", + "description": "Wallet id of user, initiated payment" + }, + "datetime": { + "type": "string", + "description": "Date and time of payment", + "format": "date-time" + }, + "state": { + "$ref": "#/components/schemas/PaymentStateDto" + }, + "lifetimeMinutes": { + "type": "integer", + "description": "Payment lifetime. If lifetime is passed and payment is not complete, it will failed", + "format": "int32" + }, + "fromSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "toSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "feeSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "comment": { + "type": "string", + "description": "Comment by a user" + } + } + }, + "ShiftToWalletPaymentResponseDto": { + "required": [ + "creatorWalletId", + "datetime", + "externalId", + "feeSum", + "fromSum", + "id", + "lifetimeMinutes", + "methodId", + "methodType", + "paymentOrderId", + "state", + "toSum" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Payment id" + }, + "externalId": { + "type": "string", + "description": "Payment UID in waas partner's system" + }, + "paymentOrderId": { + "type": "string", + "description": "Payment order id" + }, + "methodId": { + "type": "string", + "description": "Payment method id" + }, + "methodType": { + "type": "string", + "description": "Payment method type", + "enum": [ + "WALLET_TO_WALLET", + "WALLET_TO_PARTNER", + "PARTNER_TO_WALLET", + "PAYSAFECASH_TO_WALLET", + "WAAS_SHIFT_TO_CARD", + "WAAS_SHIFT_TO_WALLET", + "WALLET_TO_CARD", + "WAAS_CARD_ISSUING" + ] + }, + "creatorWalletId": { + "type": "string", + "description": "Wallet id of user, initiated payment" + }, + "datetime": { + "type": "string", + "description": "Date and time of payment", + "format": "date-time" + }, + "state": { + "$ref": "#/components/schemas/PaymentStateDto" + }, + "lifetimeMinutes": { + "type": "integer", + "description": "Payment lifetime. If lifetime is passed and payment is not complete, it will failed", + "format": "int32" + }, + "fromSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "toSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "feeSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "comment": { + "type": "string", + "description": "Comment by a user" + } + } + }, + "WalletToPartnerPaymentResponseDto": { + "required": [ + "creatorWalletId", + "datetime", + "externalId", + "feeSum", + "fromSum", + "id", + "lifetimeMinutes", + "methodId", + "methodType", + "paymentOrderId", + "state", + "toSum" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Payment id" + }, + "externalId": { + "type": "string", + "description": "Payment UID in waas partner's system" + }, + "paymentOrderId": { + "type": "string", + "description": "Payment order id" + }, + "methodId": { + "type": "string", + "description": "Payment method id" + }, + "methodType": { + "type": "string", + "description": "Payment method type", + "enum": [ + "WALLET_TO_WALLET", + "WALLET_TO_PARTNER", + "PARTNER_TO_WALLET", + "PAYSAFECASH_TO_WALLET", + "WAAS_SHIFT_TO_CARD", + "WAAS_SHIFT_TO_WALLET", + "WALLET_TO_CARD", + "WAAS_CARD_ISSUING" + ] + }, + "creatorWalletId": { + "type": "string", + "description": "Wallet id of user, initiated payment" + }, + "datetime": { + "type": "string", + "description": "Date and time of payment", + "format": "date-time" + }, + "state": { + "$ref": "#/components/schemas/PaymentStateDto" + }, + "lifetimeMinutes": { + "type": "integer", + "description": "Payment lifetime. If lifetime is passed and payment is not complete, it will failed", + "format": "int32" + }, + "fromSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "toSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "feeSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "comment": { + "type": "string", + "description": "Comment by a user" + } + } + }, + "WalletToWalletPaymentResponseDto": { + "required": [ + "creatorWalletId", + "datetime", + "externalId", + "feeSum", + "fromSum", + "id", + "lifetimeMinutes", + "methodId", + "methodType", + "paymentOrderId", + "state", + "toSum" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Payment id" + }, + "externalId": { + "type": "string", + "description": "Payment UID in waas partner's system" + }, + "paymentOrderId": { + "type": "string", + "description": "Payment order id" + }, + "methodId": { + "type": "string", + "description": "Payment method id" + }, + "creatorWalletId": { + "type": "string", + "description": "Wallet id of user, initiated payment" + }, + "methodType": { + "type": "string", + "description": "Payment method type", + "enum": [ + "WALLET_TO_WALLET", + "WALLET_TO_PARTNER", + "PARTNER_TO_WALLET", + "PAYSAFECASH_TO_WALLET", + "WAAS_SHIFT_TO_CARD", + "WAAS_SHIFT_TO_WALLET", + "WALLET_TO_CARD", + "WAAS_CARD_ISSUING" + ] + }, + "datetime": { + "type": "string", + "description": "Date and time of payment", + "format": "date-time" + }, + "state": { + "$ref": "#/components/schemas/PaymentStateDto" + }, + "lifetimeMinutes": { + "type": "integer", + "description": "Payment lifetime. If lifetime is passed and payment is not complete, it will failed", + "format": "int32" + }, + "fromSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "toSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "feeSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "from": { + "type": "string", + "writeOnly": true + }, + "to": { + "type": "string", + "writeOnly": true + }, + "comment": { + "type": "string", + "description": "Comment by a user" + }, + "toWalletId": { + "type": "string" + } + } + }, + "ApiRequestContainerCreatePaymentRequestDto": { + "required": [ + "request", + "signature" + ], + "type": "object", + "properties": { + "request": { + "$ref": "#/components/schemas/CreatePaymentRequestDto" + }, + "signature": { + "type": "string", + "description": "Signature of request content" + } + }, + "description": "Request wrapper" + }, + "CreatePaymentRequestDto": { + "required": [ + "paymentOrderId" + ], + "type": "object", + "properties": { + "paymentOrderId": { + "type": "string", + "description": "Payment order ID obtained from Create payment order request" + }, + "comment": { + "type": "string", + "description": "User comment for a payment" + } + }, + "description": "Request model to Create payment" + }, + "ApiRequestContainerBasePaymentOrderRequestDto": { + "required": [ + "request", + "signature" + ], + "type": "object", + "properties": { + "request": { + "$ref": "#/components/schemas/BasePaymentOrderRequestDto" + }, + "signature": { + "type": "string", + "description": "Signature of request content" + } + }, + "description": "Request wrapper" + }, + "BasePaymentOrderRequestDto": { + "required": [ + "externalId", + "from", + "methodId", + "methodType", + "to", + "walletId" + ], + "type": "object", + "properties": { + "externalId": { + "type": "string", + "description": "Operation ID in waas-partner system" + }, + "walletId": { + "type": "string", + "description": "Payment order creator wallet id" + }, + "methodId": { + "type": "string", + "description": "Payment method ID" + }, + "methodType": { + "type": "string", + "description": "Payment method type", + "enum": [ + "WALLET_TO_WALLET", + "WALLET_TO_PARTNER", + "PARTNER_TO_WALLET", + "PAYSAFECASH_TO_WALLET", + "WAAS_SHIFT_TO_CARD", + "WAAS_SHIFT_TO_WALLET", + "WALLET_TO_CARD", + "WAAS_CARD_ISSUING" + ] + }, + "from": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "to": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + } + }, + "description": "Model of payment order", + "oneOf": [ + { + "$ref": "#/components/schemas/WalletToWalletPaymentOrderRequestDto" + }, + { + "$ref": "#/components/schemas/WalletToPartnerPaymentOrderRequestDto" + }, + { + "$ref": "#/components/schemas/PaysafecashToWalletPaymentOrderRequestDto" + }, + { + "$ref": "#/components/schemas/ShiftToCardPaymentOrderRequestDto" + }, + { + "$ref": "#/components/schemas/ShiftToWalletPaymentOrderRequestDto" + } + ] + }, + "PaysafecashToWalletPaymentOrderRequestDto": { + "required": [ + "externalId", + "from", + "methodId", + "methodType", + "to", + "walletId" + ], + "type": "object", + "properties": { + "externalId": { + "type": "string", + "description": "Operation ID in waas-partner system" + }, + "walletId": { + "type": "string", + "description": "Payment order creator wallet id" + }, + "methodId": { + "type": "string", + "description": "Payment method ID" + }, + "methodType": { + "type": "string", + "description": "Payment method type", + "enum": [ + "WALLET_TO_WALLET", + "WALLET_TO_PARTNER", + "PARTNER_TO_WALLET", + "PAYSAFECASH_TO_WALLET", + "WAAS_SHIFT_TO_CARD", + "WAAS_SHIFT_TO_WALLET", + "WALLET_TO_CARD", + "WAAS_CARD_ISSUING" + ] + }, + "from": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "to": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "redirectSuccessUrl": { + "type": "string", + "description": "Payment recipient wallet URLs to redirect after successful authorization in PaySafeCash system" + }, + "redirectFailUrl": { + "type": "string", + "description": "Payment recipient wallet URLs to redirect after failed authorization in PaySafeCash system" + } + }, + "description": "Order to top up wallet from Paysafecash system" + }, + "ShiftToCardPaymentOrderRequestDto": { + "required": [ + "cardId", + "externalId", + "from", + "methodId", + "methodType", + "to", + "walletId" + ], + "type": "object", + "properties": { + "externalId": { + "type": "string", + "description": "Operation ID in waas-partner system" + }, + "walletId": { + "type": "string", + "description": "Payment order creator wallet id" + }, + "methodId": { + "type": "string", + "description": "Payment method ID" + }, + "methodType": { + "type": "string", + "description": "Payment method type", + "enum": [ + "WALLET_TO_WALLET", + "WALLET_TO_PARTNER", + "PARTNER_TO_WALLET", + "PAYSAFECASH_TO_WALLET", + "WAAS_SHIFT_TO_CARD", + "WAAS_SHIFT_TO_WALLET", + "WALLET_TO_CARD", + "WAAS_CARD_ISSUING" + ] + }, + "from": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "to": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "cardId": { + "type": "string", + "description": "Card to be top upped" + } + }, + "description": "Order to shift money from client wallet to card" + }, + "ShiftToWalletPaymentOrderRequestDto": { + "required": [ + "cardId", + "externalId", + "from", + "methodId", + "methodType", + "to", + "walletId" + ], + "type": "object", + "properties": { + "externalId": { + "type": "string", + "description": "Operation ID in waas-partner system" + }, + "walletId": { + "type": "string", + "description": "Payment order creator wallet id" + }, + "methodId": { + "type": "string", + "description": "Payment method ID" + }, + "methodType": { + "type": "string", + "description": "Payment method type", + "enum": [ + "WALLET_TO_WALLET", + "WALLET_TO_PARTNER", + "PARTNER_TO_WALLET", + "PAYSAFECASH_TO_WALLET", + "WAAS_SHIFT_TO_CARD", + "WAAS_SHIFT_TO_WALLET", + "WALLET_TO_CARD", + "WAAS_CARD_ISSUING" + ] + }, + "from": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "to": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "cardId": { + "type": "string", + "description": "Card to withdraw" + } + }, + "description": "Order to shift money from client card to wallet" + }, + "WalletToPartnerPaymentOrderRequestDto": { + "required": [ + "externalId", + "from", + "methodId", + "methodType", + "to", + "walletId" + ], + "type": "object", + "properties": { + "externalId": { + "type": "string", + "description": "Operation ID in waas-partner system" + }, + "walletId": { + "type": "string", + "description": "Payment order creator wallet id" + }, + "methodId": { + "type": "string", + "description": "Payment method ID" + }, + "methodType": { + "type": "string", + "description": "Payment method type", + "enum": [ + "WALLET_TO_WALLET", + "WALLET_TO_PARTNER", + "PARTNER_TO_WALLET", + "PAYSAFECASH_TO_WALLET", + "WAAS_SHIFT_TO_CARD", + "WAAS_SHIFT_TO_WALLET", + "WALLET_TO_CARD", + "WAAS_CARD_ISSUING" + ] + }, + "from": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "to": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + } + }, + "description": "Order to payment from wallet to waas partner" + }, + "WalletToWalletPaymentOrderRequestDto": { + "required": [ + "externalId", + "from", + "methodId", + "methodType", + "to", + "toWalletId", + "walletId" + ], + "type": "object", + "properties": { + "externalId": { + "type": "string", + "description": "Operation ID in waas-partner system" + }, + "walletId": { + "type": "string", + "description": "Payment order creator wallet id" + }, + "methodId": { + "type": "string", + "description": "Payment method ID" + }, + "methodType": { + "type": "string", + "description": "Payment method type", + "enum": [ + "WALLET_TO_WALLET", + "WALLET_TO_PARTNER", + "PARTNER_TO_WALLET", + "PAYSAFECASH_TO_WALLET", + "WAAS_SHIFT_TO_CARD", + "WAAS_SHIFT_TO_WALLET", + "WALLET_TO_CARD", + "WAAS_CARD_ISSUING" + ] + }, + "from": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "to": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "toWalletId": { + "type": "string", + "description": "Payment recipient wallet ID" + } + }, + "description": "Order to payment from wallet to another wallet" + }, + "ApiResponseContainerBasePaymentOrderResponseDto": { + "required": [ + "signature", + "status" + ], + "type": "object", + "properties": { + "response": { + "$ref": "#/components/schemas/BasePaymentOrderResponseDto" + }, + "status": { + "$ref": "#/components/schemas/ResponseStatus" + }, + "signature": { + "type": "string", + "description": "Signature of response content" + } + }, + "description": "Response wrapper" + }, + "BasePaymentOrderResponseDto": { + "required": [ + "externalId", + "feeSum", + "fromSum", + "methodId", + "methodType", + "paymentOrderId", + "toSum" + ], + "type": "object", + "properties": { + "externalId": { + "type": "string", + "description": "Operation ID in waas-partner system" + }, + "methodType": { + "type": "string", + "enum": [ + "WALLET_TO_WALLET", + "WALLET_TO_PARTNER", + "PARTNER_TO_WALLET", + "PAYSAFECASH_TO_WALLET", + "WAAS_SHIFT_TO_CARD", + "WAAS_SHIFT_TO_WALLET", + "WALLET_TO_CARD", + "WAAS_CARD_ISSUING" + ] + }, + "fromSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "toSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "feeSum": { + "$ref": "#/components/schemas/MinorUnitMoneyDto" + }, + "paymentOrderId": { + "type": "string" + }, + "methodId": { + "type": "string" + } + }, + "description": "Response model of payment order" + }, + "ApiRequestContainerGetCardRequestDto": { + "required": [ + "request", + "signature" + ], + "type": "object", + "properties": { + "request": { + "$ref": "#/components/schemas/GetCardRequestDto" + }, + "signature": { + "type": "string", + "description": "Signature of request content" + } + }, + "description": "Request wrapper" + }, + "GetCardRequestDto": { + "required": [ + "cardId", + "walletId" + ], + "type": "object", + "properties": { + "walletId": { + "type": "string", + "description": "User's Wallet ID" + }, + "cardId": { + "type": "string", + "description": "Profee card ID" + } + }, + "description": "Request model to get Profee card information" + }, + "ApiResponseContainerCardDto": { + "required": [ + "signature", + "status" + ], + "type": "object", + "properties": { + "response": { + "$ref": "#/components/schemas/CardDto" + }, + "status": { + "$ref": "#/components/schemas/ResponseStatus" + }, + "signature": { + "type": "string", + "description": "Signature of response content" + } + }, + "description": "Response wrapper" + }, + "CardDto": { + "required": [ + "cardId", + "cardStatus", + "currency", + "paymentSystem", + "productId", + "walletId" + ], + "type": "object", + "properties": { + "walletId": { + "type": "string", + "description": "User's Wallet ID" + }, + "cardId": { + "type": "string", + "description": "Profee card ID" + }, + "cardStatus": { + "type": "string", + "description": "Profee card status", + "enum": [ + "INIT", + "ISSUED", + "EXPIRED", + "FAILED", + "CLOSED", + "FROZEN", + "DELIVERY", + "BLOCKED" + ] + }, + "currency": { + "type": "string", + "description": "Profee card currency" + }, + "paymentSystem": { + "type": "string", + "description": "Profee card payment system", + "enum": [ + "VISA" + ] + }, + "productId": { + "type": "string", + "description": "Profee payment product ID" + }, + "maskedPan": { + "type": "string", + "description": "Profee card masked pan" + } + }, + "description": "Model Profee card" + }, + "ApiRequestContainerCardTokensRequestDto": { + "required": [ + "request", + "signature" + ], + "type": "object", + "properties": { + "request": { + "$ref": "#/components/schemas/CardTokensRequestDto" + }, + "signature": { + "type": "string", + "description": "Signature of request content" + } + }, + "description": "Request wrapper" + }, + "CardTokensRequestDto": { + "required": [ + "walletId" + ], + "type": "object", + "properties": { + "walletId": { + "type": "string", + "description": "User's Wallet ID" + } + }, + "description": "Model card tokens" + }, + "ApiResponseContainerCardTokensDto": { + "required": [ + "signature", + "status" + ], + "type": "object", + "properties": { + "response": { + "$ref": "#/components/schemas/CardTokensDto" + }, + "status": { + "$ref": "#/components/schemas/ResponseStatus" + }, + "signature": { + "type": "string", + "description": "Signature of response content" + } + }, + "description": "Response wrapper" + }, + "CardTokenDto": { + "required": [ + "PAN", + "cardStatus", + "cardholder", + "paymentSystem", + "token" + ], + "type": "object", + "properties": { + "token": { + "type": "string", + "description": "Card token" + }, + "PAN": { + "type": "string", + "description": "Masked PAN" + }, + "cardholder": { + "type": "string", + "description": "Cardholder" + }, + "paymentSystem": { + "type": "string", + "description": "Card payment system", + "enum": [ + "VISA", + "MASTERCARD" + ] + }, + "cardStatus": { + "type": "string", + "description": "Card status", + "enum": [ + "ISSUED", + "FROZEN" + ] + } + }, + "description": "Сard token" + }, + "CardTokensDto": { + "required": [ + "tokens" + ], + "type": "object", + "properties": { + "tokens": { + "type": "array", + "description": "External card tokens", + "items": { + "$ref": "#/components/schemas/CardTokenDto" + } + } + }, + "description": "List of card tokens" + }, + "ApiRequestContainerCardOperationsRequestDto": { + "required": [ + "request", + "signature" + ], + "type": "object", + "properties": { + "request": { + "$ref": "#/components/schemas/CardOperationsRequestDto" + }, + "signature": { + "type": "string", + "description": "Signature of request content" + } + }, + "description": "Request wrapper" + }, + "CardOperationsRequestDto": { + "required": [ + "cardId", + "daysCount", + "fromDate", + "walletId" + ], + "type": "object", + "properties": { + "walletId": { + "type": "string", + "description": "User's Wallet ID" + }, + "cardId": { + "type": "string", + "description": "Profee card ID" + }, + "fromDate": { + "pattern": "yyyy-MM-dd", + "type": "string", + "description": "From this date the history of operations will be returned", + "format": "date" + }, + "daysCount": { + "type": "integer", + "description": "The number of days which the history of operations will be provided for. For technical reasons we restricted this value in 31 days", + "format": "int32" + } + }, + "description": "Request model to get Profee card operations history" + }, + "ApiResponseContainerCardOperationsDto": { + "required": [ + "signature", + "status" + ], + "type": "object", + "properties": { + "response": { + "$ref": "#/components/schemas/CardOperationsDto" + }, + "status": { + "$ref": "#/components/schemas/ResponseStatus" + }, + "signature": { + "type": "string", + "description": "Signature of response content" + } + }, + "description": "Response wrapper" + }, + "CardOperationDto": { + "type": "object", + "properties": { + "state": { + "type": "string", + "description": "Card operation state, available values are:\n\n| State | Description |\n|----------------|---------------------------------------------|\n| AUTH_DECLINE | Operation declined |\n| AUTH_REVERSAL | Operation was reversed |\n| AUTH_APPROVE | Operation approved |\n| TRANSACTION_A | Operation by acquirer with authorization |\n| TRANSACTION_AS | Operation by acquirer without authorization |\n| TRANSACTION_M | Operation by merchant with authorisation |\n| TRANSACTION_MS | Operation by merchant without authorisation |", + "enum": [ + "AUTH_DECLINE", + "AUTH_REVERSAL", + "AUTH_APPROVE", + "TRANSACTION_A", + "TRANSACTION_AS", + "TRANSACTION_M", + "TRANSACTION_MS" + ] + }, + "type": { + "$ref": "#/components/schemas/CardOperationType" + }, + "mcc": { + "type": "string", + "description": "Card operation MCC" + }, + "authDate": { + "type": "string", + "description": "Card operation authorization date" + }, + "authTime": { + "type": "string", + "description": "Card operation authorization time" + }, + "postingDate": { + "type": "string", + "description": "Card operation posting date" + }, + "authCode": { + "type": "string", + "description": "Card operation authorization code" + }, + "rrn": { + "type": "string", + "description": "Card operation RRN (Reference Retrieval Number)" + }, + "merchantId": { + "type": "string", + "description": "Card operation merchant ID" + }, + "terminalId": { + "type": "string", + "description": "Card operation terminal ID" + }, + "merchantName": { + "type": "string", + "description": "Card operation merchant name" + }, + "merchantCity": { + "type": "string", + "description": "Card operation merchant city" + }, + "merchantCountry": { + "type": "string", + "description": "Card operation merchant country" + }, + "merchantSum": { + "$ref": "#/components/schemas/MoneyDto" + }, + "cardSum": { + "$ref": "#/components/schemas/MoneyDto" + }, + "authDescription": { + "type": "string", + "description": "Card operation description of authorization" + } + }, + "description": "Card operation" + }, + "CardOperationType": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "direction": { + "type": "string", + "enum": [ + "DEBIT", + "CREDIT" + ] + }, + "description": { + "type": "string" + } + }, + "description": "Card operation type, available values are:\n\n| State | Direction | Description |\n|-------|-----------|-----------------------------|\n| AUTH | DEBIT | Debit Authorisation |\n| ATHP | CREDIT | Credit Authorisation |\n| SALK | DEBIT | Debit Transaction |\n| REFK | CREDIT | Credit Transaction |\n| AJDC | DEBIT | Debit Adjustment |\n| AJCC | CREDIT | Credit Adjustment |\n| VSAK | CREDIT | Reversal Debit Transaction |\n| VREK | DEBIT | Reversal Credit Transaction |\n| VAJC | CREDIT | Reversal Debit Adjustment |\n| VACC | DEBIT | Reversal Credit Adjustment |\n\n> 💡 In card terminology:\n> - DEBIT is withdrawal funds from card\n> - CREDIT is card top up with funds\n" + }, + "CardOperationsDto": { + "required": [ + "cardId", + "daysCount", + "fromDate", + "operations", + "walletId" + ], + "type": "object", + "properties": { + "walletId": { + "type": "string", + "description": "User's Wallet ID" + }, + "cardId": { + "type": "string", + "description": "Profee card ID" + }, + "fromDate": { + "pattern": "yyyy-MM-dd", + "type": "string", + "description": "From this date the history of operations will was requested", + "format": "date" + }, + "daysCount": { + "type": "integer", + "description": "The number of days which the history of operations was requested for.", + "format": "int32" + }, + "operations": { + "type": "array", + "description": "Profee card operations history", + "items": { + "$ref": "#/components/schemas/CardOperationDto" + } + } + }, + "description": "Model Profee card operations history" + }, + "ApiRequestContainerGetCardDetailsRequestDto": { + "required": [ + "request", + "signature" + ], + "type": "object", + "properties": { + "request": { + "$ref": "#/components/schemas/GetCardDetailsRequestDto" + }, + "signature": { + "type": "string", + "description": "Signature of request content" + } + }, + "description": "Request wrapper" + }, + "GetCardDetailsRequestDto": { + "required": [ + "cardId", + "walletId" + ], + "type": "object", + "properties": { + "walletId": { + "type": "string", + "description": "User's Wallet ID" + }, + "cardId": { + "type": "string", + "description": "Profee card ID" + } + }, + "description": "Request model to get Profee card information" + }, + "ApiResponseContainerCardSecureDto": { + "required": [ + "signature", + "status" + ], + "type": "object", + "properties": { + "response": { + "$ref": "#/components/schemas/CardSecureDto" + }, + "status": { + "$ref": "#/components/schemas/ResponseStatus" + }, + "signature": { + "type": "string", + "description": "Signature of response content" + } + }, + "description": "Response wrapper" + }, + "CardSecureDto": { + "required": [ + "cardHolder", + "cardId", + "cvv", + "expiryDate", + "pan", + "walletId" + ], + "type": "object", + "properties": { + "walletId": { + "type": "string", + "description": "User's Wallet ID" + }, + "cardId": { + "type": "string", + "description": "Profee card ID" + }, + "pan": { + "type": "string", + "description": "Profee card pan" + }, + "cvv": { + "type": "string", + "description": "Profee card cvv" + }, + "expiryDate": { + "type": "string", + "description": "Profee card expiry date" + }, + "cardHolder": { + "type": "string", + "description": "Cardholder name" + } + }, + "description": "Model Profee card details. May be unavailable due to PCI DSS compliance" + }, + "ApiRequestContainerGetCardBalanceRequestDto": { + "required": [ + "request", + "signature" + ], + "type": "object", + "properties": { + "request": { + "$ref": "#/components/schemas/GetCardBalanceRequestDto" + }, + "signature": { + "type": "string", + "description": "Signature of request content" + } + }, + "description": "Request wrapper" + }, + "GetCardBalanceRequestDto": { + "required": [ + "cardId", + "walletId" + ], + "type": "object", + "properties": { + "walletId": { + "type": "string", + "description": "User's Wallet ID" + }, + "cardId": { + "type": "string", + "description": "Profee card ID" + } + }, + "description": "Request to get Profee card balance" + }, + "ApiResponseContainerCardBalanceDto": { + "required": [ + "signature", + "status" + ], + "type": "object", + "properties": { + "response": { + "$ref": "#/components/schemas/CardBalanceDto" + }, + "status": { + "$ref": "#/components/schemas/ResponseStatus" + }, + "signature": { + "type": "string", + "description": "Signature of response content" + } + }, + "description": "Response wrapper" + }, + "CardBalanceDto": { + "required": [ + "authorizedBalance", + "balance", + "cardId", + "walletId" + ], + "type": "object", + "properties": { + "walletId": { + "type": "string", + "description": "User's Wallet ID" + }, + "cardId": { + "type": "string", + "description": "Profee card ID" + }, + "balance": { + "$ref": "#/components/schemas/MoneyDto" + }, + "authorizedBalance": { + "$ref": "#/components/schemas/MoneyDto" + } + }, + "description": "Model Profee card balance" + }, + "ApiRequestContainerCreateCardRequestDto": { + "required": [ + "request", + "signature" + ], + "type": "object", + "properties": { + "request": { + "$ref": "#/components/schemas/CreateCardRequestDto" + }, + "signature": { + "type": "string", + "description": "Signature of request content" + } + }, + "description": "Request wrapper" + }, + "CreateCardRequestDto": { + "required": [ + "productId", + "walletId" + ], + "type": "object", + "properties": { + "walletId": { + "type": "string", + "description": "User's Wallet ID" + }, + "productId": { + "type": "string", + "description": "Profee Card product ID" + } + }, + "description": "Request model to create Profee card" + }, + "ApiRequestContainerChangeCardStatusRequestDto": { + "required": [ + "request", + "signature" + ], + "type": "object", + "properties": { + "request": { + "$ref": "#/components/schemas/ChangeCardStatusRequestDto" + }, + "signature": { + "type": "string", + "description": "Signature of request content" + } + }, + "description": "Request wrapper" + }, + "ChangeCardStatusRequestDto": { + "required": [ + "cardId", + "status", + "walletId" + ], + "type": "object", + "properties": { + "walletId": { + "type": "string", + "description": "User's Wallet ID" + }, + "cardId": { + "type": "string", + "description": "Profee card ID" + }, + "status": { + "type": "string", + "description": "New card status ('FROZEN' for freeze, 'ISSUED' for unfreeze)", + "enum": [ + "FROZEN", + "ISSUED" + ] + } + }, + "description": "Request to freeze/unfreeze Profee card" + }, + "ApiResponseContainerChangeCardStatusResponseDto": { + "required": [ + "signature", + "status" + ], + "type": "object", + "properties": { + "response": { + "$ref": "#/components/schemas/ChangeCardStatusResponseDto" + }, + "status": { + "$ref": "#/components/schemas/ResponseStatus" + }, + "signature": { + "type": "string", + "description": "Signature of response content" + } + }, + "description": "Response wrapper" + }, + "ChangeCardStatusResponseDto": { + "type": "object", + "properties": { + "cardId": { + "type": "string", + "description": "Card ID hash" + }, + "cardStatus": { + "type": "string", + "description": "Card status after success operation" + }, + "status": { + "type": "string", + "description": "Operation result status", + "enum": [ + "SUCCESS", + "FAILED" + ] + }, + "description": { + "type": "string", + "description": "Error description" + } + }, + "description": "Response to request to freeze/unfreeze Profee Card" + }, + "ApiRequestContainerPlasticCardActivationRequestDto": { + "required": [ + "request", + "signature" + ], + "type": "object", + "properties": { + "request": { + "$ref": "#/components/schemas/PlasticCardActivationRequestDto" + }, + "signature": { + "type": "string", + "description": "Signature of request content" + } + }, + "description": "Request wrapper" + }, + "PlasticCardActivationRequestDto": { + "required": [ + "approvalCode", + "cardId", + "walletId" + ], + "type": "object", + "properties": { + "walletId": { + "type": "string", + "description": "User's Wallet ID" + }, + "cardId": { + "type": "string", + "description": "Profee card ID" + }, + "approvalCode": { + "type": "string", + "description": "Approval code, received by Post" + } + }, + "description": "Request for Plastic Profee card activation" + } + }, + "securitySchemes": { + "basic": { + "type": "http", + "name": "X-Merchant-Id", + "in": "header", + "scheme": "basic" + } + } + } +} \ No newline at end of file diff --git a/async-api/site/css/asyncapi.min.css b/async-api/site/css/asyncapi.min.css new file mode 100644 index 0000000..ea55878 --- /dev/null +++ b/async-api/site/css/asyncapi.min.css @@ -0,0 +1,5 @@ +.aui-root .hljs{display:block;overflow-x:auto;padding:.5em;background:#011627;color:#d6deeb}.aui-root .hljs-keyword{color:#c792ea;font-style:italic}.aui-root .hljs-built_in{color:#addb67;font-style:italic}.aui-root .hljs-type{color:#82aaff}.aui-root .hljs-literal{color:#ff5874}.aui-root .hljs-number{color:#f78c6c}.aui-root .hljs-regexp{color:#5ca7e4}.aui-root .hljs-string{color:#ecc48d}.aui-root .hljs-subst{color:#d3423e}.aui-root .hljs-symbol{color:#82aaff}.aui-root .hljs-class{color:#ffcb8b}.aui-root .hljs-function{color:#82aaff}.aui-root .hljs-title{color:#dcdcaa;font-style:italic}.aui-root .hljs-params{color:#7fdbca}.aui-root .hljs-comment{color:#637777;font-style:italic}.aui-root .hljs-doctag{color:#7fdbca}.aui-root .hljs-meta,.aui-root .hljs-meta-keyword{color:#82aaff}.aui-root .hljs-meta-string{color:#ecc48d}.aui-root .hljs-section{color:#82b1ff}.aui-root .hljs-attr,.aui-root .hljs-builtin-name,.aui-root .hljs-name,.aui-root .hljs-tag{color:#7fdbca}.aui-root .hljs-attribute{color:#80cbc4}.aui-root .hljs-variable{color:#addb67}.aui-root .hljs-bullet{color:#d9f5dd}.aui-root .hljs-code{color:#80cbc4}.aui-root .hljs-emphasis{color:#c792ea;font-style:italic}.aui-root .hljs-strong{color:#addb67;font-weight:700}.aui-root .hljs-formula{color:#c792ea}.aui-root .hljs-link{color:#ff869a}.aui-root .hljs-quote{color:#697098;font-style:italic}.aui-root .hljs-selector-tag{color:#ff6363}.aui-root .hljs-selector-id{color:#fad430}.aui-root .hljs-selector-class{color:#addb67;font-style:italic}.aui-root .hljs-selector-attr,.aui-root .hljs-selector-pseudo{color:#c792ea;font-style:italic}.aui-root .hljs-template-tag{color:#c792ea}.aui-root .hljs-template-variable{color:#addb67}.aui-root .hljs-addition{color:#addb67;font-style:italic}.aui-root .hljs-deletion{color:rgba(239,83,80,.5647058823529412);font-style:italic} + +/*! tailwindcss v2.2.19 | MIT License | https://tailwindcss.com*/ + +/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */.aui-root html{-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.15;-webkit-text-size-adjust:100%}.aui-root body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji}.aui-root hr{height:0;color:inherit}.aui-root abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.aui-root b,.aui-root strong{font-weight:bolder}.aui-root code,.aui-root kbd,.aui-root pre,.aui-root samp{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}.aui-root small{font-size:80%}.aui-root sub,.aui-root sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.aui-root sub{bottom:-.25em}.aui-root sup{top:-.5em}.aui-root table{text-indent:0;border-color:inherit}.aui-root button,.aui-root input,.aui-root optgroup,.aui-root select,.aui-root textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}.aui-root button,.aui-root select{text-transform:none}.aui-root [type=button],.aui-root button{-webkit-appearance:button}.aui-root legend{padding:0}.aui-root progress{vertical-align:baseline}.aui-root summary{display:list-item}.aui-root blockquote,.aui-root dd,.aui-root dl,.aui-root figure,.aui-root h1,.aui-root h2,.aui-root h3,.aui-root h4,.aui-root h5,.aui-root h6,.aui-root hr,.aui-root p,.aui-root pre{margin:0}.aui-root button{background-color:transparent;background-image:none}.aui-root fieldset{margin:0;padding:0}.aui-root ol,.aui-root ul{list-style:none;margin:0;padding:0}.aui-root html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}.aui-root body{font-family:inherit;line-height:inherit}.aui-root *,.aui-root :after,.aui-root :before{box-sizing:border-box;border:0 solid}.aui-root hr{border-top-width:1px}.aui-root img{border-style:solid}.aui-root textarea{resize:vertical}.aui-root input::-moz-placeholder, .aui-root textarea::-moz-placeholder{opacity:1;color:#cbd5e0}.aui-root input:-ms-input-placeholder, .aui-root textarea:-ms-input-placeholder{opacity:1;color:#cbd5e0}.aui-root input::placeholder,.aui-root textarea::placeholder{opacity:1;color:#cbd5e0}.aui-root button{cursor:pointer}.aui-root table{border-collapse:collapse}.aui-root h1,.aui-root h2,.aui-root h3,.aui-root h4,.aui-root h5,.aui-root h6{font-size:inherit;font-weight:inherit}.aui-root a{color:inherit;text-decoration:inherit}.aui-root button,.aui-root input,.aui-root optgroup,.aui-root select,.aui-root textarea{padding:0;line-height:inherit;color:inherit}.aui-root code,.aui-root kbd,.aui-root pre,.aui-root samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.aui-root audio,.aui-root canvas,.aui-root embed,.aui-root iframe,.aui-root img,.aui-root object,.aui-root svg,.aui-root video{display:block;vertical-align:middle}.aui-root img,.aui-root video{max-width:100%;height:auto}.aui-root [hidden]{display:none}.aui-root *,.aui-root :after,.aui-root :before{--tw-border-opacity:1;border-color:rgba(203,213,224,var(--tw-border-opacity))}.aui-root .prose{color:#4a5568;max-width:65ch}.aui-root .prose [class~=lead]{color:#718096;font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.aui-root .prose a{color:#1a202c;text-decoration:underline;font-weight:500}.aui-root .prose strong{color:#1a202c;font-weight:600}.aui-root .prose ol[type=a]{--list-counter-style:lower-alpha}.aui-root .prose ol[type=i]{--list-counter-style:lower-roman}.aui-root .prose ol[type="1"]{--list-counter-style:decimal}.aui-root .prose ol>li{position:relative;padding-left:1.75em}.aui-root .prose ol>li:before{content:counter(list-item,var(--list-counter-style,decimal)) ".";position:absolute;font-weight:400;color:#a0aec0;left:0}.aui-root .prose ul>li{position:relative;padding-left:1.75em}.aui-root .prose ul>li:before{content:"";position:absolute;background-color:#e2e8f0;border-radius:50%;width:.375em;height:.375em;top:.6875em;left:.25em}.aui-root .prose hr{border-color:#edf2f7;border-top-width:1px;margin-top:3em;margin-bottom:3em}.aui-root .prose blockquote{font-weight:500;font-style:italic;color:#1a202c;border-left-width:.25rem;border-left-color:#edf2f7;quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.aui-root .prose blockquote p:first-of-type:before{content:open-quote}.aui-root .prose blockquote p:last-of-type:after{content:close-quote}.aui-root .prose h1{color:#1a202c;font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.aui-root .prose h2{color:#1a202c;font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.aui-root .prose h3{color:#1a202c;font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.aui-root .prose h4{color:#1a202c;font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.aui-root .prose figure figcaption{color:#a0aec0;font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.aui-root .prose code{color:#1a202c;font-weight:600;font-size:.875em}.aui-root .prose code:after,.aui-root .prose code:before{content:"`"}.aui-root .prose a code{color:#1a202c}.aui-root .prose pre{color:#edf2f7;background-color:#1a202c;overflow-x:auto;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.aui-root .prose pre code{background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:400;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.aui-root .prose pre code:after,.aui-root .prose pre code:before{content:none}.aui-root .prose table{width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.aui-root .prose thead{color:#1a202c;font-weight:600;border-bottom-width:1px;border-bottom-color:#e2e8f0}.aui-root .prose thead th{vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.aui-root .prose tbody tr{border-bottom-width:1px;border-bottom-color:#edf2f7}.aui-root .prose tbody tr:last-child{border-bottom-width:0}.aui-root .prose tbody td{vertical-align:top;padding:.5714286em}.aui-root .prose{font-size:1rem;line-height:1.75}.aui-root .prose p{margin-top:1.25em;margin-bottom:1.25em}.aui-root .prose figure,.aui-root .prose img,.aui-root .prose video{margin-top:2em;margin-bottom:2em}.aui-root .prose figure>*{margin-top:0;margin-bottom:0}.aui-root .prose h2 code{font-size:.875em}.aui-root .prose h3 code{font-size:.9em}.aui-root .prose ol,.aui-root .prose ul{margin-top:1.25em;margin-bottom:1.25em}.aui-root .prose li{margin-top:.5em;margin-bottom:.5em}.aui-root .prose>ul>li p{margin-top:.75em;margin-bottom:.75em}.aui-root .prose>ul>li>:first-child{margin-top:1.25em}.aui-root .prose>ul>li>:last-child{margin-bottom:1.25em}.aui-root .prose>ol>li>:first-child{margin-top:1.25em}.aui-root .prose>ol>li>:last-child{margin-bottom:1.25em}.aui-root .prose ol ol,.aui-root .prose ol ul,.aui-root .prose ul ol,.aui-root .prose ul ul{margin-top:.75em;margin-bottom:.75em}.aui-root .prose h2+*,.aui-root .prose h3+*,.aui-root .prose h4+*,.aui-root .prose hr+*{margin-top:0}.aui-root .prose thead th:first-child{padding-left:0}.aui-root .prose thead th:last-child{padding-right:0}.aui-root .prose tbody td:first-child{padding-left:0}.aui-root .prose tbody td:last-child{padding-right:0}.aui-root .prose>:first-child{margin-top:0}.aui-root .prose>:last-child{margin-bottom:0}@media (min-width:1024px){.aui-root .container\:base .burger-menu{display:none}}@media (min-width:1024px){.aui-root .container\:base .sidebar{position:relative;display:block;height:auto;width:16rem}}@media (min-width:1024px){.aui-root .container\:base .sidebar--content{width:14rem}}.aui-root .container\:xl .sidebar--content{position:absolute;left:50%;transform:translate(-50%)}@media (min-width:1536px){.aui-root .container\:base .panel-item{display:flex}}.aui-root .container\:xl .panel-item{display:block}@media (min-width:1536px){.aui-root .container\:base .panel--center .panel-item--center{width:58.333333%}}@media (min-width:1536px){.aui-root .container\:base .panel--center .panel-item--right{width:41.666667%}}.aui-root .container\:xl .panel--center .panel-item--center,.aui-root .container\:xl .panel--center .panel-item--right{width:100%}@media (min-width:1536px){.aui-root .container\:base .examples{margin-top:0;padding:0}}.aui-root .container\:base .panel--right{display:none}@media (min-width:1536px){.aui-root .container\:base .panel--right{display:block;width:41.666667%}}.aui-root .container\:xl .panel--right{display:none}.aui-root .prose pre{white-space:pre-wrap}.aui-root .fixed{position:fixed}.aui-root .absolute{position:absolute}.aui-root .relative{position:relative}.aui-root .top-0{top:0}.aui-root .right-0{right:0}.aui-root .right-8{right:2rem}.aui-root .bottom-16{bottom:4rem}.aui-root .z-10{z-index:10}.aui-root .z-20{z-index:20}.aui-root .z-30{z-index:30}.aui-root .mx-2{margin-left:.5rem;margin-right:.5rem}.aui-root .-mx-8{margin-left:-2rem;margin-right:-2rem}.aui-root .my-2{margin-top:.5rem;margin-bottom:.5rem}.aui-root .mt-1{margin-top:.25rem}.aui-root .mt-2{margin-top:.5rem}.aui-root .mt-4{margin-top:1rem}.aui-root .mt-9{margin-top:2.25rem}.aui-root .mt-10{margin-top:2.5rem}.aui-root .mt-16{margin-top:4rem}.aui-root .mr-1{margin-right:.25rem}.aui-root .mr-2{margin-right:.5rem}.aui-root .mb-2{margin-bottom:.5rem}.aui-root .mb-3{margin-bottom:.75rem}.aui-root .mb-4{margin-bottom:1rem}.aui-root .mb-12{margin-bottom:3rem}.aui-root .-mb-1{margin-bottom:-.25rem}.aui-root .ml-1{margin-left:.25rem}.aui-root .ml-2{margin-left:.5rem}.aui-root .block{display:block}.aui-root .inline-block{display:inline-block}.aui-root .flex{display:flex}.aui-root .table{display:table}.aui-root .hidden{display:none}.aui-root .h-6{height:1.5rem}.aui-root .h-16{height:4rem}.aui-root .h-full{height:100%}.aui-root .max-h-screen{max-height:100vh}.aui-root .w-5{width:1.25rem}.aui-root .w-16{width:4rem}.aui-root .w-64{width:16rem}.aui-root .w-full{width:100%}.aui-root .min-w-1\/4{min-width:25%}.aui-root .max-w-none{max-width:none}.aui-root .flex-1{flex:1 1 0%}.aui-root .transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.aui-root .-rotate-180{--tw-rotate:-180deg}.aui-root .-rotate-90{--tw-rotate:-90deg}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}@-webkit-keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}.aui-root .cursor-pointer{cursor:pointer}.aui-root .flex-wrap{flex-wrap:wrap}.aui-root .items-center{align-items:center}.aui-root .justify-center{justify-content:center}.aui-root .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.5rem*var(--tw-space-x-reverse));margin-left:calc(0.5rem*(1 - var(--tw-space-x-reverse)))}.aui-root .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem*var(--tw-space-y-reverse))}.aui-root .overflow-auto{overflow:auto}.aui-root .overflow-y-auto{overflow-y:auto}.aui-root .whitespace-pre-wrap{white-space:pre-wrap}.aui-root .break-words{overflow-wrap:break-word}.aui-root .break-all{word-break:break-all}.aui-root .rounded{border-radius:.25rem}.aui-root .rounded-full{border-radius:9999px}.aui-root .border{border-width:1px}.aui-root .border-l-8{border-left-width:8px}.aui-root .border-solid{border-style:solid}.aui-root .border-gray-400{--tw-border-opacity:1;border-color:rgba(203,213,224,var(--tw-border-opacity))}.aui-root .border-red-500{--tw-border-opacity:1;border-color:rgba(245,101,101,var(--tw-border-opacity))}.aui-root .border-orange-300{--tw-border-opacity:1;border-color:rgba(251,211,141,var(--tw-border-opacity))}.aui-root .border-green-600{--tw-border-opacity:1;border-color:rgba(56,161,105,var(--tw-border-opacity))}.aui-root .border-blue-300{--tw-border-opacity:1;border-color:rgba(144,205,244,var(--tw-border-opacity))}.aui-root .border-blue-600{--tw-border-opacity:1;border-color:rgba(49,130,206,var(--tw-border-opacity))}.aui-root .border-purple-300{--tw-border-opacity:1;border-color:rgba(214,188,250,var(--tw-border-opacity))}.aui-root .bg-white{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.aui-root .bg-gray-100{--tw-bg-opacity:1;background-color:rgba(247,250,252,var(--tw-bg-opacity))}.aui-root .bg-gray-200{--tw-bg-opacity:1;background-color:rgba(237,242,247,var(--tw-bg-opacity))}.aui-root .bg-gray-800{--tw-bg-opacity:1;background-color:rgba(45,55,72,var(--tw-bg-opacity))}.aui-root .bg-yellow-600{--tw-bg-opacity:1;background-color:rgba(214,158,46,var(--tw-bg-opacity))}.aui-root .bg-green-600{--tw-bg-opacity:1;background-color:rgba(56,161,105,var(--tw-bg-opacity))}.aui-root .bg-teal-500{--tw-bg-opacity:1;background-color:rgba(56,178,172,var(--tw-bg-opacity))}.aui-root .bg-blue-400{--tw-bg-opacity:1;background-color:rgba(99,179,237,var(--tw-bg-opacity))}.aui-root .bg-blue-500{--tw-bg-opacity:1;background-color:rgba(66,153,225,var(--tw-bg-opacity))}.aui-root .bg-blue-600{--tw-bg-opacity:1;background-color:rgba(49,130,206,var(--tw-bg-opacity))}.aui-root .bg-indigo-400{--tw-bg-opacity:1;background-color:rgba(127,156,245,var(--tw-bg-opacity))}.aui-root .bg-purple-600{--tw-bg-opacity:1;background-color:rgba(128,90,213,var(--tw-bg-opacity))}.aui-root .hover\:bg-orange-300:hover{--tw-bg-opacity:1;background-color:rgba(251,211,141,var(--tw-bg-opacity))}.aui-root .hover\:bg-blue-300:hover{--tw-bg-opacity:1;background-color:rgba(144,205,244,var(--tw-bg-opacity))}.aui-root .hover\:bg-purple-300:hover{--tw-bg-opacity:1;background-color:rgba(214,188,250,var(--tw-bg-opacity))}.aui-root .fill-current{fill:currentColor}.aui-root .p-1{padding:.25rem}.aui-root .p-2{padding:.5rem}.aui-root .p-4{padding:1rem}.aui-root .p-8{padding:2rem}.aui-root .px-1{padding-left:.25rem;padding-right:.25rem}.aui-root .px-2{padding-left:.5rem;padding-right:.5rem}.aui-root .px-3{padding-left:.75rem;padding-right:.75rem}.aui-root .px-4{padding-left:1rem;padding-right:1rem}.aui-root .px-8{padding-left:2rem;padding-right:2rem}.aui-root .py-0{padding-top:0;padding-bottom:0}.aui-root .py-1{padding-top:.25rem;padding-bottom:.25rem}.aui-root .py-2{padding-top:.5rem;padding-bottom:.5rem}.aui-root .py-4{padding-top:1rem;padding-bottom:1rem}.aui-root .py-8{padding-bottom:2rem}.aui-root .pt-8,.aui-root .py-8{padding-top:2rem}.aui-root .pb-16{padding-bottom:4rem}.aui-root .text-left{text-align:left}.aui-root .align-baseline{vertical-align:baseline}.aui-root .font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.aui-root .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.aui-root .text-xs{font-size:.75rem}.aui-root .text-sm{font-size:.875rem}.aui-root .text-base{font-size:1rem}.aui-root .text-lg{font-size:1.125rem}.aui-root .text-2xl{font-size:1.5rem}.aui-root .text-3xl{font-size:1.875rem}.aui-root .text-4xl{font-size:2.25rem}.aui-root .font-thin{font-weight:100}.aui-root .font-extralight{font-weight:200}.aui-root .font-light{font-weight:300}.aui-root .font-bold{font-weight:700}.aui-root .uppercase{text-transform:uppercase}.aui-root .lowercase{text-transform:lowercase}.aui-root .capitalize{text-transform:capitalize}.aui-root .italic{font-style:italic}.aui-root .leading-normal{line-height:1.5}.aui-root .text-white{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.aui-root .text-gray-200{--tw-text-opacity:1;color:rgba(237,242,247,var(--tw-text-opacity))}.aui-root .text-gray-500{--tw-text-opacity:1;color:rgba(160,174,192,var(--tw-text-opacity))}.aui-root .text-gray-600{--tw-text-opacity:1;color:rgba(113,128,150,var(--tw-text-opacity))}.aui-root .text-gray-700{--tw-text-opacity:1;color:rgba(74,85,104,var(--tw-text-opacity))}.aui-root .text-red-600{--tw-text-opacity:1;color:rgba(229,62,62,var(--tw-text-opacity))}.aui-root .text-orange-500{--tw-text-opacity:1;color:rgba(237,137,54,var(--tw-text-opacity))}.aui-root .text-orange-600{--tw-text-opacity:1;color:rgba(221,107,32,var(--tw-text-opacity))}.aui-root .text-green-600{--tw-text-opacity:1;color:rgba(56,161,105,var(--tw-text-opacity))}.aui-root .text-teal-500{--tw-text-opacity:1;color:rgba(56,178,172,var(--tw-text-opacity))}.aui-root .text-blue-500{--tw-text-opacity:1;color:rgba(66,153,225,var(--tw-text-opacity))}.aui-root .text-purple-500{--tw-text-opacity:1;color:rgba(159,122,234,var(--tw-text-opacity))}.aui-root .hover\:text-gray-900:hover{--tw-text-opacity:1;color:rgba(26,32,44,var(--tw-text-opacity))}.aui-root .hover\:text-orange-600:hover{--tw-text-opacity:1;color:rgba(221,107,32,var(--tw-text-opacity))}.aui-root .hover\:text-blue-600:hover{--tw-text-opacity:1;color:rgba(49,130,206,var(--tw-text-opacity))}.aui-root .hover\:text-purple-600:hover{--tw-text-opacity:1;color:rgba(128,90,213,var(--tw-text-opacity))}.aui-root .underline{text-decoration:underline}.aui-root .no-underline{text-decoration:none}.aui-root *,.aui-root :after,.aui-root :before{--tw-shadow:0 0 transparent}.aui-root .shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06)}.aui-root .shadow,.aui-root .shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.aui-root .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -1px rgba(0,0,0,0.06)}.aui-root .focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.aui-root *,.aui-root :after,.aui-root :before{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(66,153,225,0.5);--tw-ring-offset-shadow:0 0 transparent;--tw-ring-shadow:0 0 transparent}.aui-root .filter{--tw-blur:var(--tw-empty,/*!*/ /*!*/);--tw-brightness:var(--tw-empty,/*!*/ /*!*/);--tw-contrast:var(--tw-empty,/*!*/ /*!*/);--tw-grayscale:var(--tw-empty,/*!*/ /*!*/);--tw-hue-rotate:var(--tw-empty,/*!*/ /*!*/);--tw-invert:var(--tw-empty,/*!*/ /*!*/);--tw-saturate:var(--tw-empty,/*!*/ /*!*/);--tw-sepia:var(--tw-empty,/*!*/ /*!*/);--tw-drop-shadow:var(--tw-empty,/*!*/ /*!*/);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.aui-root .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.aui-root .duration-150{transition-duration:.15s}.aui-root .ease-linear{transition-timing-function:linear}@media (min-width:768px){.aui-root .md\:flex{display:flex}}@media (min-width:1536px){.aui-root .\32xl\:mx-0{margin-left:0;margin-right:0}.aui-root .\32xl\:w-7\/12{width:58.333333%}.aui-root .\32xl\:rounded{border-radius:.25rem}.aui-root .\32xl\:px-4{padding-left:1rem;padding-right:1rem}} \ No newline at end of file diff --git a/async-api/site/css/global.min.css b/async-api/site/css/global.min.css new file mode 100644 index 0000000..525e227 --- /dev/null +++ b/async-api/site/css/global.min.css @@ -0,0 +1 @@ +html{-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji} diff --git a/async-api/site/index.html b/async-api/site/index.html new file mode 100644 index 0000000..a15978f --- /dev/null +++ b/async-api/site/index.html @@ -0,0 +1,67 @@ + + + + + + Profee WAAS Notificatioins API 1.0 documentation + + + + + + + + +
Profee WAAS Notificatioins API 1.0

The following notifications will be sent to partner system. Please provide us with URLs which will be responsible in every notification.

+

Operations

  • PUB card/authorization

    Accepts the following message:

    CardOperationNotificationDto
    object

    Examples

Messages

  • #1CardOperationNotificationDto
    object
+ + + + + + + + \ No newline at end of file diff --git a/async-api/site/js/asyncapi-ui.min.js b/async-api/site/js/asyncapi-ui.min.js new file mode 100644 index 0000000..06deb94 --- /dev/null +++ b/async-api/site/js/asyncapi-ui.min.js @@ -0,0 +1,41 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("AsyncApiStandalone",[],t):"object"==typeof exports?exports.AsyncApiStandalone=t():e.AsyncApiStandalone=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=272)}({0:function(e,t,n){"use strict";e.exports=n(69)},1:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"j",(function(){return a})),n.d(t,"h",(function(){return i})),n.d(t,"i",(function(){return o})),n.d(t,"c",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"f",(function(){return f})),n.d(t,"b",(function(){return d}));var r="https://www.iana.org/assignments/media-types",a="https://github.com/asyncapi/parser-js/validation-errors",i="Terms of service",o="Support",l="External Docs",u="Servers",s="Operations",c="Messages",f="Schemas",d="Error"},10:function(e,t,n){const{createMapOfType:r,getMapValueOfType:a,mix:i}=n(2),o=n(3),{xParserCircle:l,xParserCircleProps:u}=n(24),s=n(6),c=n(17),f=n(4);class d extends o{constructor(e,t){super(e),this.options=t||{}}uid(){return this.$id()||this.ext("x-parser-schema-id")}$id(){return this._json.$id}multipleOf(){return this._json.multipleOf}maximum(){return this._json.maximum}exclusiveMaximum(){return this._json.exclusiveMaximum}minimum(){return this._json.minimum}exclusiveMinimum(){return this._json.exclusiveMinimum}maxLength(){return this._json.maxLength}minLength(){return this._json.minLength}pattern(){return this._json.pattern}maxItems(){return this._json.maxItems}minItems(){return this._json.minItems}uniqueItems(){return!!this._json.uniqueItems}maxProperties(){return this._json.maxProperties}minProperties(){return this._json.minProperties}required(){return this._json.required}enum(){return this._json.enum}type(){return this._json.type}allOf(){return this._json.allOf?this._json.allOf.map(e=>new d(e,{parent:this})):null}oneOf(){return this._json.oneOf?this._json.oneOf.map(e=>new d(e,{parent:this})):null}anyOf(){return this._json.anyOf?this._json.anyOf.map(e=>new d(e,{parent:this})):null}not(){return this._json.not?new d(this._json.not,{parent:this}):null}items(){return this._json.items?Array.isArray(this._json.items)?this._json.items.map(e=>new d(e,{parent:this})):new d(this._json.items,{parent:this}):null}properties(){return r(this._json.properties,d,{parent:this})}property(e){return a(this._json.properties,e,d,{parent:this})}additionalProperties(){const e=this._json.additionalProperties;if(null!=e)return"boolean"==typeof e?e:new d(e,{parent:this})}additionalItems(){const e=this._json.additionalItems;if(null!=e)return new d(e,{parent:this})}patternProperties(){return r(this._json.patternProperties,d,{parent:this})}const(){return this._json.const}contains(){return this._json.contains?new d(this._json.contains,{parent:this}):null}dependencies(){if(!this._json.dependencies)return null;const e={};return Object.entries(this._json.dependencies).forEach(([t,n])=>{e[String(t)]=Array.isArray(n)?n:new d(n,{parent:this})}),e}propertyNames(){return this._json.propertyNames?new d(this._json.propertyNames,{parent:this}):null}if(){return this._json.if?new d(this._json.if,{parent:this}):null}then(){return this._json.then?new d(this._json.then,{parent:this}):null}else(){return this._json.else?new d(this._json.else,{parent:this}):null}format(){return this._json.format}contentEncoding(){return this._json.contentEncoding}contentMediaType(){return this._json.contentMediaType}definitions(){return r(this._json.definitions,d,{parent:this})}title(){return this._json.title}default(){return this._json.default}deprecated(){return this._json.deprecated}discriminator(){return this._json.discriminator}readOnly(){return!!this._json.readOnly}writeOnly(){return!!this._json.writeOnly}examples(){return this._json.examples}isBooleanSchema(){return"boolean"==typeof this._json}isCircular(){if(this.ext(l))return!0;let e=this.options.parent;for(;e;){if(e._json===this._json)return!0;e=e.options&&e.options.parent}return!1}circularSchema(){let e=this.options.parent;for(;e;){if(e._json===this._json)return e;e=e.options&&e.options.parent}}hasCircularProps(){return Array.isArray(this.ext(u))?this.ext(u).length>0:Object.entries(this.properties()||{}).map(([e,t])=>{if(t.isCircular())return e}).filter(Boolean).length>0}circularProps(){return Array.isArray(this.ext(u))?this.ext(u):Object.entries(this.properties()||{}).map(([e,t])=>{if(t.isCircular())return e}).filter(Boolean)}}e.exports=i(d,s,c,f)},11:function(e,t,n){"use strict";(function(e){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +var r=n(81),a=n(82),i=n(62);function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return L(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,a);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,a){var i,o=1,l=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,l/=2,u/=2,n/=2}function s(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var c=-1;for(i=n;il&&(n=l-u),i=n;i>=0;i--){for(var f=!0,d=0;da&&(r=a):r=a;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var o=0;o>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a239?4:s>223?3:s>191?2:1;if(a+f<=n)switch(f){case 1:s<128&&(c=s);break;case 2:128==(192&(i=e[a+1]))&&(u=(31&s)<<6|63&i)>127&&(c=u);break;case 3:i=e[a+1],o=e[a+2],128==(192&i)&&128==(192&o)&&(u=(15&s)<<12|(63&i)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[a+1],o=e[a+2],l=e[a+3],128==(192&i)&&128==(192&o)&&128==(192&l)&&(u=(15&s)<<18|(63&i)<<12|(63&o)<<6|63&l)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),a+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,a){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),l=Math.min(i,o),s=this.slice(r,a),c=e.slice(t,n),f=0;fa)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return D(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;ar)&&(n=r);for(var a="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,n,r,a,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,i=Math.min(e.length-n,2);a>>8*(r?a:1-a)}function P(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,i=Math.min(e.length-n,4);a>>8*(r?a:3-a)&255}function R(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,i){return i||R(e,0,n,4),a.write(e,t,n,r,23,4),n+4}function I(e,t,n,r,i){return i||R(e,0,n,8),a.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(a*=256);)r+=this[e+--t]*a;return r},u.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],a=1,i=0;++i=(a*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=t,a=1,i=this[e+--r];r>0&&(a*=256);)i+=this[e+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),a.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),a.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),a.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),a.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||F(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+a]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);F(this,e,t,n,a-1,-a)}var i=0,o=1,l=0;for(this[t]=255&e;++i>0)-l&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);F(this,e,t,n,a-1,-a)}var i=n-1,o=1,l=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/o>>0)-l&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){for(var a=0;a=t.length||a>=e.length);++a)t[a+n]=e[a];return a}}).call(this,n(13))},128:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(22),a=n.n(r),i=function(){function e(){}return e.retrieveParsedSpec=function(e){if(e){if(e.constructor&&"AsyncAPIDocument"===e.constructor.name)return e;if("function"==typeof e.version&&e._json&&e._json.asyncapi)return e;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return}return"object"==typeof e&&!0===e["x-parser-spec-parsed"]?!0===e["x-parser-spec-stringified"]?a.a.parse(e):new a.a(e):void 0}},e.containTags=function(e,t){var n="function"==typeof e.tags?e.tags():void 0;return!(void 0===n||!Array.isArray(n))&&(t=Array.isArray(t)?t:[t],n.some((function(e){return t.some((function(t){return t.name()===e.name()}))})))},e.operationsTags=function(e){var t=new Map;return Object.entries(e.channels()).forEach((function(e){e[0];var n=e[1],r=n.publish();r&&r.hasTags()&&r.tags().forEach((function(e){return t.set(e.name(),e)}));var a=n.subscribe();a&&a.hasTags()&&a.tags().forEach((function(e){return t.set(e.name(),e)}))})),Array.from(t.values())},e}()},13:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},15:function(e,t){function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var r=e[t];"object"!=typeof r||Object.isFrozen(r)||n(r)})),e}var r=n,a=n;r.default=a;class i{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function o(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function l(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const u=e=>!!e.kind;class s{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=o(e)}openNode(e){if(!u(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){u(e)&&(this.buffer+="")}value(){return this.buffer}span(e){this.buffer+=``}}class c{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{c._collapse(e)}))}}class f extends c{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){return new s(this,this.options).value()}finalize(){return!0}}function d(e){return e?"string"==typeof e?e:e.source:null}const p=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;const h="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",m={begin:"\\\\[\\s\\S]",relevance:0},g={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[m]},y={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[m]},b={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},v=function(e,t,n={}){const r=l({className:"comment",begin:e,end:t,contains:[]},n);return r.contains.push(b),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},x=v("//","$"),E=v("/\\*","\\*/"),w=v("#","$"),D={className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},k={className:"number",begin:h,relevance:0},A={className:"number",begin:"\\b(0b[01]+)",relevance:0},_={className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},C={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[m,{begin:/\[/,end:/\]/,relevance:0,contains:[m]}]}]},T={className:"title",begin:"[a-zA-Z]\\w*",relevance:0},S={className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},N={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var O=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:h,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map(e=>d(e)).join("")}(t,/.*\b/,e.binary,/\b.*/)),l({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:m,APOS_STRING_MODE:g,QUOTE_STRING_MODE:y,PHRASAL_WORDS_MODE:b,COMMENT:v,C_LINE_COMMENT_MODE:x,C_BLOCK_COMMENT_MODE:E,HASH_COMMENT_MODE:w,NUMBER_MODE:D,C_NUMBER_MODE:k,BINARY_NUMBER_MODE:A,CSS_NUMBER_MODE:_,REGEXP_MODE:C,TITLE_MODE:T,UNDERSCORE_TITLE_MODE:S,METHOD_GUARD:N,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function F(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function j(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=F,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function P(e,t){Array.isArray(e.illegal)&&(e.illegal=function(...e){return"("+e.map(e=>d(e)).join("|")+")"}(...e.illegal))}function R(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function B(e,t){void 0===e.relevance&&(e.relevance=1)}const I=["of","and","for","in","not","or","if","then","parent","list","value"];function M(e,t){return t?Number(t):function(e){return I.includes(e.toLowerCase())}(e)?0:1}function z(e,{plugins:t}){function n(t,n){return new RegExp(d(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=n(function(e,t="|"){let n=0;return e.map(e=>{n+=1;const t=n;let r=d(e),a="";for(;r.length>0;){const e=p.exec(r);if(!e){a+=r;break}a+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?a+="\\"+String(Number(e[1])+t):(a+=e[0],"("===e[0]&&n++)}return a}).map(e=>`(${e})`).join(t)}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new r;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=l(e.classNameAliases||{}),function t(r,i){const o=r;if(r.isCompiled)return o;[R].forEach(e=>e(r,i)),e.compilerExtensions.forEach(e=>e(r,i)),r.__beforeBegin=null,[j,P,B].forEach(e=>e(r,i)),r.isCompiled=!0;let u=null;if("object"==typeof r.keywords&&(u=r.keywords.$pattern,delete r.keywords.$pattern),r.keywords&&(r.keywords=function e(t,n,r="keyword"){const a={};return"string"==typeof t?i(r,t.split(" ")):Array.isArray(t)?i(r,t):Object.keys(t).forEach((function(r){Object.assign(a,e(t[r],n,r))})),a;function i(e,t){n&&(t=t.map(e=>e.toLowerCase())),t.forEach((function(t){const n=t.split("|");a[n[0]]=[e,M(n[0],n[1])]}))}}(r.keywords,e.case_insensitive)),r.lexemes&&u)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return u=u||r.lexemes||/\w+/,o.keywordPatternRe=n(u,!0),i&&(r.begin||(r.begin=/\B|\b/),o.beginRe=n(r.begin),r.endSameAsBegin&&(r.end=r.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(o.endRe=n(r.end)),o.terminatorEnd=d(r.end)||"",r.endsWithParent&&i.terminatorEnd&&(o.terminatorEnd+=(r.end?"|":"")+i.terminatorEnd)),r.illegal&&(o.illegalRe=n(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return l(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants;if(function e(t){return!!t&&(t.endsWithParent||e(t.starts))}(e))return l(e,{starts:e.starts?l(e.starts):null});if(Object.isFrozen(e))return l(e);return e}("self"===e?r:e)}))),r.contains.forEach((function(e){t(e,o)})),r.starts&&t(r.starts,i),o.matcher=function(e){const t=new a;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(o),o}(e)}function L(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,o(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const U={"after:highlightElement":({el:e,result:t,text:n})=>{const r=H(e);if(!r.length)return;const a=document.createElement("div");a.innerHTML=t.value,t.value=function(e,t,n){let r=0,a="";const i=[];function l(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset"}function s(e){a+=""}function c(e){("start"===e.event?u:s)(e.node)}for(;e.length||t.length;){let t=l();if(a+=o(n.substring(r,t[0].offset)),r=t[0].offset,t===e){i.reverse().forEach(s);do{c(t.splice(0,1)[0]),t=l()}while(t===e&&t.length&&t[0].offset===r);i.reverse().forEach(u)}else"start"===t[0].event?i.push(t[0].node):i.pop(),c(t.splice(0,1)[0])}return a+o(n.substr(r))}(r,H(a),n)}};function $(e){return e.nodeName.toLowerCase()}function H(e){const t=[];return function e(n,r){for(let a=n.firstChild;a;a=a.nextSibling)3===a.nodeType?r+=a.nodeValue.length:1===a.nodeType&&(t.push({event:"start",offset:r,node:a}),r=e(a,r),$(a).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:a}));return r}(e,0),t}const V={},W=e=>{console.error(e)},q=(e,...t)=>{console.log("WARN: "+e,...t)},Y=(e,t)=>{V[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),V[`${e}/${t}`]=!0)},Q=o,K=l,Z=Symbol("nomatch");var G=function(e){const t=Object.create(null),n=Object.create(null),a=[];let o=!0;const l=/(^(<[^>]+>|\t|)+|\n)/gm,u="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let c={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:f};function d(e){return c.noHighlightRe.test(e)}function p(e,t,n,r){let a="",i="";"object"==typeof t?(a=e,n=t.ignoreIllegals,i=t.language,r=void 0):(Y("10.7.0","highlight(lang, code, ...args) has been deprecated."),Y("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=e,a=t);const o={code:a,language:i};_("before:highlight",o);const l=o.result?o.result:h(o.language,o.code,n,r);return l.code=o.code,_("after:highlight",l),l}function h(e,n,r,l){function s(e,t){const n=x.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}function f(){null!=k.subLanguage?function(){if(""===C)return;let e=null;if("string"==typeof k.subLanguage){if(!t[k.subLanguage])return void _.addText(C);e=h(k.subLanguage,C,!0,A[k.subLanguage]),A[k.subLanguage]=e.top}else e=m(C,k.subLanguage.length?k.subLanguage:null);k.relevance>0&&(T+=e.relevance),_.addSublanguage(e.emitter,e.language)}():function(){if(!k.keywords)return void _.addText(C);let e=0;k.keywordPatternRe.lastIndex=0;let t=k.keywordPatternRe.exec(C),n="";for(;t;){n+=C.substring(e,t.index);const r=s(k,t);if(r){const[e,a]=r;if(_.addText(n),n="",T+=a,e.startsWith("_"))n+=t[0];else{const n=x.classNameAliases[e]||e;_.addKeyword(t[0],n)}}else n+=t[0];e=k.keywordPatternRe.lastIndex,t=k.keywordPatternRe.exec(C)}n+=C.substr(e),_.addText(n)}(),C=""}function d(e){return e.className&&_.openNode(x.classNameAliases[e.className]||e.className),k=Object.create(e,{parent:{value:k}}),k}function p(e){return 0===k.matcher.regexIndex?(C+=e[0],1):(O=!0,0)}function g(e){const t=e[0],n=e.rule,r=new i(n),a=[n.__beforeBegin,n["on:begin"]];for(const n of a)if(n&&(n(e,r),r.isMatchIgnored))return p(t);return n&&n.endSameAsBegin&&(n.endRe=new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),n.skip?C+=t:(n.excludeBegin&&(C+=t),f(),n.returnBegin||n.excludeBegin||(C=t)),d(n),n.returnBegin?0:t.length}function y(e){const t=e[0],r=n.substr(e.index),a=function e(t,n,r){let a=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(t.endRe,r);if(a){if(t["on:end"]){const e=new i(t);t["on:end"](n,e),e.isMatchIgnored&&(a=!1)}if(a){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return e(t.parent,n,r)}(k,e,r);if(!a)return Z;const o=k;o.skip?C+=t:(o.returnEnd||o.excludeEnd||(C+=t),f(),o.excludeEnd&&(C=t));do{k.className&&_.closeNode(),k.skip||k.subLanguage||(T+=k.relevance),k=k.parent}while(k!==a.parent);return a.starts&&(a.endSameAsBegin&&(a.starts.endRe=a.endRe),d(a.starts)),o.returnEnd?0:t.length}let b={};function v(t,a){const i=a&&a[0];if(C+=t,null==i)return f(),0;if("begin"===b.type&&"end"===a.type&&b.index===a.index&&""===i){if(C+=n.slice(a.index,a.index+1),!o){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=b.rule,t}return 1}if(b=a,"begin"===a.type)return g(a);if("illegal"===a.type&&!r){const e=new Error('Illegal lexeme "'+i+'" for mode "'+(k.className||"")+'"');throw e.mode=k,e}if("end"===a.type){const e=y(a);if(e!==Z)return e}if("illegal"===a.type&&""===i)return 1;if(N>1e5&&N>3*a.index){throw new Error("potential infinite loop, way more iterations than matches")}return C+=i,i.length}const x=D(e);if(!x)throw W(u.replace("{}",e)),new Error('Unknown language: "'+e+'"');const E=z(x,{plugins:a});let w="",k=l||E;const A={},_=new c.__emitter(c);!function(){const e=[];for(let t=k;t!==x;t=t.parent)t.className&&e.unshift(t.className);e.forEach(e=>_.openNode(e))}();let C="",T=0,S=0,N=0,O=!1;try{for(k.matcher.considerAll();;){N++,O?O=!1:k.matcher.considerAll(),k.matcher.lastIndex=S;const e=k.matcher.exec(n);if(!e)break;const t=v(n.substring(S,e.index),e);S=e.index+t}return v(n.substr(S)),_.closeAllNodes(),_.finalize(),w=_.toHTML(),{relevance:Math.floor(T),value:w,language:e,illegal:!1,emitter:_,top:k}}catch(t){if(t.message&&t.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:t.message,context:n.slice(S-100,S+100),mode:t.mode},sofar:w,relevance:0,value:Q(n),emitter:_};if(o)return{illegal:!1,relevance:0,value:Q(n),emitter:_,language:e,top:k,errorRaised:t};throw t}}function m(e,n){n=n||c.languages||Object.keys(t);const r=function(e){const t={relevance:0,emitter:new c.__emitter(c),value:Q(e),illegal:!1,top:s};return t.emitter.addText(e),t}(e),a=n.filter(D).filter(A).map(t=>h(t,e,!1));a.unshift(r);const i=a.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(D(e.language).supersetOf===t.language)return 1;if(D(t.language).supersetOf===e.language)return-1}return 0}),[o,l]=i,u=o;return u.second_best=l,u}const g={"before:highlightElement":({el:e})=>{c.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n"))},"after:highlightElement":({result:e})=>{c.useBR&&(e.value=e.value.replace(/\n/g,"
"))}},y=/^(<[^>]+>|\t)+/gm,b={"after:highlightElement":({result:e})=>{c.tabReplace&&(e.value=e.value.replace(y,e=>e.replace(/\t/g,c.tabReplace)))}};function v(e){let t=null;const r=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=c.languageDetectRe.exec(t);if(n){const t=D(n[1]);return t||(q(u.replace("{}",n[1])),q("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>d(e)||D(e))}(e);if(d(r))return;_("before:highlightElement",{el:e,language:r}),t=e;const a=t.textContent,i=r?p(a,{language:r,ignoreIllegals:!0}):m(a);_("after:highlightElement",{el:e,result:i,text:a}),e.innerHTML=i.value,function(e,t,r){const a=t?n[t]:r;e.classList.add("hljs"),a&&e.classList.add(a)}(e,r,i.language),e.result={language:i.language,re:i.relevance,relavance:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance,relavance:i.second_best.relevance})}const x=()=>{if(x.called)return;x.called=!0,Y("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead.");document.querySelectorAll("pre code").forEach(v)};let E=!1;function w(){if("loading"===document.readyState)return void(E=!0);document.querySelectorAll("pre code").forEach(v)}function D(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function k(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{n[e.toLowerCase()]=t})}function A(e){const t=D(e);return t&&!t.disableAutodetect}function _(e,t){const n=e;a.forEach((function(e){e[n]&&e[n](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){E&&w()}),!1),Object.assign(e,{highlight:p,highlightAuto:m,highlightAll:w,fixMarkup:function(e){return Y("10.2.0","fixMarkup will be removed entirely in v11.0"),Y("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),t=e,c.tabReplace||c.useBR?t.replace(l,e=>"\n"===e?c.useBR?"
":e:c.tabReplace?e.replace(/\t/g,c.tabReplace):e):t;var t},highlightElement:v,highlightBlock:function(e){return Y("10.7.0","highlightBlock will be removed entirely in v12.0"),Y("10.7.0","Please use highlightElement now."),v(e)},configure:function(e){e.useBR&&(Y("10.3.0","'useBR' will be removed entirely in v11.0"),Y("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),c=K(c,e)},initHighlighting:x,initHighlightingOnLoad:function(){Y("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),E=!0},registerLanguage:function(n,r){let a=null;try{a=r(e)}catch(e){if(W("Language definition for '{}' could not be registered.".replace("{}",n)),!o)throw e;W(e),a=s}a.name||(a.name=n),t[n]=a,a.rawDefinition=r.bind(null,e),a.aliases&&k(a.aliases,{languageName:n})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(n))n[t]===e&&delete n[t]},listLanguages:function(){return Object.keys(t)},getLanguage:D,registerAliases:k,requireLanguage:function(e){Y("10.4.0","requireLanguage will be removed entirely in v11."),Y("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=D(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:A,inherit:K,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),a.push(e)},vuePlugin:L(e).VuePlugin}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString="10.7.3";for(const e in O)"object"==typeof O[e]&&r(O[e]);return Object.assign(e,O),e.addPlugin(g),e.addPlugin(U),e.addPlugin(b),e}({});e.exports=G},17:function(e,t,n){const{getMapValueOfType:r}=n(2),a=n(78),i={hasExternalDocs(){return!(!this._json.externalDocs||!Object.keys(this._json.externalDocs).length)},externalDocs(){return r(this._json,"externalDocs",a)}};e.exports=i},2:function(e,t){const n=e.exports,r=(e,t,n,r)=>{if("string"!=typeof t||!e)return null;const a=e[String(t)];return void 0===a?null:n?new n(a,r):a};n.createMapOfType=(e,t,n)=>{const r={};return e?(Object.entries(e).forEach(([e,a])=>{r[String(e)]=new t(a,n)}),r):r},n.getMapValueOfType=(e,t,n,a)=>r(e,t,n,a),n.getMapValueByKey=(e,t)=>r(e,t),n.mix=(e,...t)=>{let n=!1;if(t.some((function(t){return e===t||(n=Object.keys(t).some(t=>e.prototype.hasOwnProperty(t)),n)})))throw n?new Error(`invalid mix function: model ${e.name} has at least one method that it is trying to replace by mixin`):new Error(`invalid mix function: cannot use the model ${e.name} as a mixin`);return t.forEach(t=>Object.assign(e.prototype,t)),e}},21:function(e,t,n){const{getMapValueByKey:r}=n(2),a={hasBindings(){return!(!this._json.bindings||!Object.keys(this._json.bindings).length)},bindings(){return this.hasBindings()?this._json.bindings:{}},bindingProtocols(){return Object.keys(this.bindings())},hasBinding(e){return this.hasBindings()&&!!this._json.bindings[String(e)]},binding(e){return r(this._json.bindings,e)}};e.exports=a},22:function(e,t,n){const{createMapOfType:r,getMapValueOfType:a,mix:i}=n(2),o=n(3),l=n(73),u=n(38),s=n(39),c=n(84),f=n(17),d=n(25),p=n(4),{xParserSpecParsed:h,xParserSpecStringified:m,xParserCircle:g}=n(24),{assignNameToAnonymousMessages:y,assignNameToComponentMessages:b,assignUidToComponentSchemas:v,assignUidToParameterSchemas:x,assignIdToAnonymousSchemas:E,assignUidToComponentParameterSchemas:w}=n(87),{traverseAsyncApiDocument:D}=n(47);class k extends o{constructor(...e){super(...e),!0!==this.ext(h)&&(b(this),y(this),v(this),w(this),x(this),E(this),this.json()[String(h)]=!0)}version(){return this._json.asyncapi}info(){return new l(this._json.info)}id(){return this._json.id}hasServers(){return!!this._json.servers}servers(){return r(this._json.servers,u)}serverNames(){return this._json.servers?Object.keys(this._json.servers):[]}server(e){return a(this._json.servers,e,u)}hasDefaultContentType(){return!!this._json.defaultContentType}defaultContentType(){return this._json.defaultContentType||null}hasChannels(){return!!this._json.channels}channels(){return r(this._json.channels,s,this)}channelNames(){return this._json.channels?Object.keys(this._json.channels):[]}channel(e){return a(this._json.channels,e,s,this)}hasComponents(){return!!this._json.components}components(){return this._json.components?new c(this._json.components):null}hasMessages(){return!!this.allMessages().size}allMessages(){const e=new Map;return this.hasChannels()&&this.channelNames().forEach(t=>{const n=this.channel(t);n.hasPublish()&&n.publish().messages().forEach(t=>{e.set(t.uid(),t)}),n.hasSubscribe()&&n.subscribe().messages().forEach(t=>{e.set(t.uid(),t)})}),this.hasComponents()&&Object.values(this.components().messages()).forEach(t=>{e.set(t.uid(),t)}),e}allSchemas(){const e=new Map;return D(this,t=>{t.uid()&&e.set(t.uid(),t)}),e}hasCircular(){return!!this._json[String(g)]}traverseSchemas(e,t){D(this,e,t)}static stringify(e,t){const n={...e.json()};return n[String(m)]=!0,JSON.stringify(n,function(){const e=new Map,t=new Map;let n=null;return function(r,a){const i=e.get(this)+(Array.isArray(this)?`[${r}]`:"."+r),o=a===Object(a);o&&e.set(a,i);const l=t.get(a)||"";if(!l&&o){const e=i.replace(/undefined\.\.?/,"");t.set(a,e)}const u="["===l[0]?"$":"$.";let s=l?`$ref:${u}${l}`:a;return null===n?n=a:s===n&&(s="$ref:$"),s}}(),t)}static parse(e){let t=e;if("string"==typeof e?t=JSON.parse(e):"object"==typeof e&&(t={...t}),"object"!=typeof t||!t[String(h)])throw new Error("Cannot parse invalid AsyncAPI document");if(!t[String(m)])return new k(t);delete t[String(m)];return function e(t,n,r,a,i){let o=t,l="$ref:$";if(void 0!==n){o=t[String(n)];const e=n?"."+n:"";l=a.get(t)+(Array.isArray(t)?`[${n}]`:e)}a.set(o,l),i.set(l,o);const u=i.get(o);u&&(t[String(n)]=u);"$ref:$"!==o&&"$ref:$"!==u||(t[String(n)]=r);if(o===Object(o))for(const t in o)e(o,t,r,a,i)}(t,void 0,t,new Map,new Map),new k(t)}}e.exports=i(k,d,f,p)},23:function(e,t){const n=(e,t)=>(t.type=e.type.startsWith("https://github.com/asyncapi/parser-js/")?e.type:"https://github.com/asyncapi/parser-js/"+e.type,t.title=e.title,e.detail&&(t.detail=e.detail),e.validationErrors&&(t.validationErrors=e.validationErrors),e.parsedJSON&&(t.parsedJSON=e.parsedJSON),e.location&&(t.location=e.location),e.refs&&(t.refs=e.refs),t);class r extends Error{constructor(e){super(),n(e,this),this.message=e.title}toJS(){return n(this,{})}}e.exports=r},24:function(e,t){e.exports={xParserSpecParsed:"x-parser-spec-parsed",xParserSpecStringified:"x-parser-spec-stringified",xParserMessageName:"x-parser-message-name",xParserSchemaId:"x-parser-schema-id",xParserCircle:"x-parser-circular",xParserCircleProps:"x-parser-circular-props"}},25:function(e,t,n){const r=n(80),a={hasTags(){return!(!Array.isArray(this._json.tags)||!this._json.tags.length)},tags(){return this.hasTags()?this._json.tags.map(e=>new r(e)):[]},tagNames(){return this.hasTags()?this._json.tags.map(e=>e.name):[]},hasTag(e){return this.hasTags()&&this._json.tags.some(t=>t.name===e)},tag(e){const t=this.hasTags()&&this._json.tags.find(t=>t.name===e);return t?new r(t):null}};e.exports=a},272:function(e,t,n){"use strict";n.r(t);var r=n(36),a=n(28),i=n(15),o=n.n(i);t.default={render:Object(a.b)(r.a),hydrate:Object(a.a)(r.a),hljs:o.a}},28:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var r=n(0),a=n.n(r),i=n(29);function o(e){return"undefined"!=typeof document?document.querySelector(e):null}function l(e){return function(t,n,r){null!==(n=n||o("asyncapi"))&&Object(i.render)(a.a.createElement(e,t),n,r)}}function u(e){return function(t,n,r){null!==(n=n||o("asyncapi"))&&Object(i.hydrate)(a.a.createElement(e,t),n,r)}}},29:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(70)},3:function(e,t,n){const r=n(23);e.exports=class{constructor(e){if(null==e)throw new r(`Invalid JSON to instantiate the ${this.constructor.name} object.`);this._json=e}json(e){return void 0===e?this._json:this._json?this._json[String(e)]:void 0}}},30:function(e,t,n){const r=n(41),a=n(42),i=n(46);e.exports=class extends r{hasMultipleMessages(){return!!(this._json.message&&this._json.message.oneOf&&this._json.message.oneOf.length>1)||(this._json.message,!1)}traits(){const e=this._json["x-parser-original-traits"]||this._json.traits;return e?e.map(e=>new i(e)):[]}hasTraits(){return!!this._json["x-parser-original-traits"]||!!this._json.traits}messages(){return this._json.message?this._json.message.oneOf?this._json.message.oneOf.map(e=>new a(e)):[new a(this._json.message)]:[]}message(e){return this._json.message?this._json.message.oneOf?"number"!=typeof e||e>this._json.message.oneOf.length-1?null:new a(this._json.message.oneOf[+e]):new a(this._json.message):null}}},36:function(e,t,n){"use strict";var r=n(0),a=n.n(r),i=n(128),o={schemaID:"",show:{sidebar:!1,info:!0,servers:!0,operations:!0,messages:!0,schemas:!0,errors:!0},sidebar:{showOperations:"byOperationsTags"}};var l=function(e){void 0===e&&(e={});var t=e.onResize,n=Object(r.useRef)(void 0);n.current=t;var a=Object(r.useRef)(),i=Object(r.useState)({width:void 0,height:void 0}),o=i[0],l=i[1],u=Object(r.useRef)(!1);Object(r.useEffect)((function(){return function(){u.current=!0}}),[]);var s=Object(r.useRef)({width:void 0,height:void 0}),c=function(e,t){var n=Object(r.useRef)(null),a=Object(r.useCallback)((function(e){n.current=e,l()}),[]),i=Object(r.useRef)(null),o=Object(r.useRef)(),l=function(){var r=null;n.current?r=n.current:t&&(r=t instanceof HTMLElement?t:t.current),i.current!==r&&(o.current&&(o.current(),o.current=null),i.current=r,r&&(o.current=e(r)))};return Object(r.useEffect)((function(){l()}),[t]),a}((function(e){return a.current||(a.current=new ResizeObserver((function(e){if(Array.isArray(e)){var t=e[0],r=Math.round(t.contentRect.width),a=Math.round(t.contentRect.height);if(s.current.width!==r||s.current.height!==a){var i={width:r,height:a};n.current?n.current(i):(s.current.width=r,s.current.height=a,u.current||l(i))}}}))),a.current.observe(e),function(){a.current&&a.current.unobserve(e)}}),e.ref);return Object(r.useMemo)((function(){return{ref:c,width:o.width,height:o.height}}),[c,o?o.width:null,o?o.height:null])},u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a.a.createElement("li",{className:"mb-3 mt-9"},a.a.createElement("a",{className:"text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900",href:"#messages",onClick:function(){return o(!1)}},"Messages"),a.a.createElement("ul",{className:"text-sm mt-2"},Object.entries(h).map((function(e){var t=e[0],n=e[1];return a.a.createElement("li",{key:t},a.a.createElement("a",{className:"flex break-words no-underline text-gray-700 mt-2 hover:text-gray-900",href:"#message-".concat(t),onClick:function(){return o(!1)}},a.a.createElement("div",{className:"break-all inline-block"},n.uid())))})))),E=b&&Object.keys(b).length>0&&a.a.createElement("li",{className:"mb-3 mt-9"},a.a.createElement("a",{className:"text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900",href:"#schemas",onClick:function(){return o(!1)}},"Schemas"),a.a.createElement("ul",{className:"text-sm mt-2"},Object.keys(b).map((function(e){return a.a.createElement("li",{key:e},a.a.createElement("a",{className:"flex break-words no-underline text-gray-700 mt-2 hover:text-gray-900",href:"#schema-".concat(e),onClick:function(){return o(!1)}},a.a.createElement("div",{className:"break-all inline-block"},e)))}))));return a.a.createElement(p.Provider,{value:{setShowSidebar:o}},a.a.createElement("div",{className:"burger-menu rounded-full h-16 w-16 bg-white fixed bottom-16 right-8 flex items-center justify-center z-30 cursor-pointer shadow-md bg-teal-500",onClick:function(){return o((function(e){return!e}))},"data-lol":i},a.a.createElement("svg",{viewBox:"0 0 100 70",width:"40",height:"30",className:"fill-current text-gray-200"},a.a.createElement("rect",{width:"100",height:"10"}),a.a.createElement("rect",{y:"30",width:"100",height:"10"}),a.a.createElement("rect",{y:"60",width:"100",height:"10"}))),a.a.createElement("div",{className:"".concat(i?"block fixed w-full":"hidden"," sidebar relative w-64 max-h-screen h-full bg-gray-200 shadow z-20")},a.a.createElement("div",{className:"".concat(i?"w-full":""," block fixed max-h-screen h-full font-sans px-4 pt-8 pb-16 overflow-y-auto bg-gray-200")},a.a.createElement("div",{className:"sidebar--content"},a.a.createElement("div",null,c?a.a.createElement("img",{src:c,alt:"".concat(s.title()," logo, ").concat(s.version()," version")}):a.a.createElement("h1",{className:"text-2xl font-light"},s.title()," ",s.version())),a.a.createElement("ul",{className:"text-sm mt-10 relative"},a.a.createElement("li",{className:"mb-3"},a.a.createElement("a",{className:"text-gray-700 no-underline hover:text-gray-900",href:"#introduction",onClick:function(){return o(!1)}},"Introduction")),u.hasServers()&&a.a.createElement("li",{className:"mb-3"},a.a.createElement("a",{className:"text-gray-700 no-underline hover:text-gray-900",href:"#servers",onClick:function(){return o(!1)}},"Servers")),u.hasChannels()&&a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"mb-3 mt-9"},a.a.createElement("a",{className:"text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900",href:"#operations",onClick:function(){return o(!1)}},"Operations"),a.a.createElement(v,null)),x,E))))))},m=function(){var e=d().channels(),t=[];return Object.entries(e).forEach((function(e){var n=e[0],r=e[1];r.hasPublish()&&t.push(a.a.createElement(v,{channelName:n,key:"pub-".concat(n)})),r.hasSubscribe()&&t.push(a.a.createElement(x,{channelName:n,key:"sub-".concat(n)}))})),a.a.createElement("ul",{className:"text-sm mt-2"},t)},g=function(){var e=d(),t=e.channels(),n=e.tags(),r=function(e){var n=[];return Object.entries(t).forEach((function(t){var r=t[0],o=t[1];o.hasPublish()&&i.a.containTags(o.publish(),e)&&n.push(a.a.createElement(v,{channelName:r,key:"pub-".concat(r)})),o.hasSubscribe()&&i.a.containTags(o.subscribe(),e)&&n.push(a.a.createElement(x,{channelName:r,key:"sub-".concat(r)}))})),n},o=[];return Object.entries(t).forEach((function(e){var t=e[0],r=e[1];!r.hasPublish()||r.publish().hasTags()&&i.a.containTags(r.publish(),n)||o.push(a.a.createElement(v,{channelName:t,key:"pub-".concat(t)})),!r.hasSubscribe()||r.subscribe().hasTags()&&i.a.containTags(r.subscribe(),n)||o.push(a.a.createElement(x,{channelName:t,key:"sub-".concat(t)}))})),a.a.createElement("div",null,a.a.createElement("ul",null,n&&n.map((function(e){return r(e).length>0&&a.a.createElement("li",{key:e.name()},a.a.createElement(b,{tagName:e.name()},r(e)))})),o.length>0&&a.a.createElement("li",null,a.a.createElement(b,{tagName:"Untagged"},o))))},y=function(){var e=d(),t=e.channels(),n=i.a.operationsTags(e),r=function(e){var n=[];return Object.entries(t).forEach((function(t){var r=t[0],o=t[1];o.hasPublish()&&i.a.containTags(o.publish(),e)&&n.push(a.a.createElement(v,{channelName:r,key:"pub-".concat(r)})),o.hasSubscribe()&&i.a.containTags(o.subscribe(),e)&&n.push(a.a.createElement(x,{channelName:r,key:"sub-".concat(r)}))})),n},o=[];return Object.entries(t).forEach((function(e){var t=e[0],r=e[1];!r.hasPublish()||r.publish().hasTags()&&i.a.containTags(r.publish(),n)||o.push(a.a.createElement(v,{channelName:t,key:"pub-".concat(t)})),!r.hasSubscribe()||r.subscribe().hasTags()&&i.a.containTags(r.subscribe(),n)||o.push(a.a.createElement(x,{channelName:t,key:"sub-".concat(t)}))})),a.a.createElement("div",null,a.a.createElement("ul",null,n&&n.map((function(e){return r(e).length>0&&a.a.createElement("li",{key:e.name()},a.a.createElement(b,{tagName:e.name()},r(e)))})),o.length>0&&a.a.createElement("li",null,a.a.createElement(b,{tagName:"Untagged"},o))))},b=function(e){var t=e.tagName,n=e.children,i=Object(r.useState)(!1),o=i[0],l=i[1];return a.a.createElement("div",null,a.a.createElement(c,{onClick:function(){return l((function(e){return!e}))},chevronProps:{className:o?"-rotate-180":"-rotate-90"}},a.a.createElement("span",{className:"text-sm inline-block mt-1 font-extralight"},t)),a.a.createElement("ul",{className:"".concat(o?"block":"hidden"," text-sm mt-2 font-light")},n))},v=function(e){var t=e.channelName,n=Object(r.useContext)(p).setShowSidebar;return a.a.createElement("li",null,a.a.createElement("a",{className:"flex no-underline text-gray-700 mb-2 hover:text-gray-900",href:"#operation-publish-".concat(t),onClick:function(){return n(!1)}},a.a.createElement("span",{className:"bg-blue-600 font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs",title:"Publish"},"Pub"),a.a.createElement("span",{className:"break-all inline-block"},t)))},x=function(e){var t=e.channelName,n=Object(r.useContext)(p).setShowSidebar;return a.a.createElement("li",null,a.a.createElement("a",{className:"flex no-underline text-gray-700 mb-2 hover:text-gray-900",href:"#operation-subscribe-".concat(t),onClick:function(){return n(!1)}},a.a.createElement("span",{className:"bg-green-600 font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs",title:"Subscribe"},"SUB"),a.a.createElement("span",{className:"break-all inline-block"},t)))},E=function(e){var t=e.href,n=e.title,r=e.className,i=e.children;return a.a.createElement("a",{href:t,title:n,className:r,target:"_blank",rel:"nofollow noopener noreferrer"},i)},w=n(55),D=n(56),k=n(15),A=n.n(k),_=n(57),C=n.n(_),T=n(58),S=n.n(T),N=n(59),O=n.n(N);A.a.registerLanguage("json",C.a),A.a.registerLanguage("yaml",S.a),A.a.registerLanguage("bash",O.a);var F={langPrefix:"hljs language-",highlight:function(e,t){if(!A.a.getLanguage(t))return e;try{return A.a.highlight(e,{language:t}).value}catch(t){return e}}};var j=function(e){var t,n=e.children;return n?"string"!=typeof n?a.a.createElement(a.a.Fragment,null,n):a.a.createElement("div",{className:"prose max-w-none text-sm",dangerouslySetInnerHTML:{__html:Object(w.sanitize)((t=n,Object(D.marked)(t,F)))}}):null},P=function(e){var t=e.tag,n="#".concat(t.name()),r=t.description()||"",i=t.externalDocs(),o=a.a.createElement("div",{title:r,className:"border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs rounded px-3 py-1"},a.a.createElement("span",{className:i?"underline":""},n));return i?a.a.createElement(E,{href:i.url(),title:r},o):o},R=function(e){var t=e.tags;return t&&t.length?a.a.createElement("ul",{className:"flex flex-wrap leading-normal"},t.map((function(e){return a.a.createElement("li",{className:"inline-block mt-2 mr-2",key:e.name()},a.a.createElement(P,{tag:e}))}))):null},B=n(1),I=function(){var e=d(),t=e.info();if(!t)return null;var n=e.id(),r=e.externalDocs(),i=t.license(),o=t.termsOfService(),l=e.defaultContentType(),u=t.contact(),s=i||o||l||u||r;return a.a.createElement("div",{className:"panel-item"},a.a.createElement("div",{className:"panel-item--center px-8 text-left",id:"introduction"},a.a.createElement("div",{className:"text-4xl"},t.title()," ",t.version()),s&&a.a.createElement("ul",{className:"flex flex-wrap mt-2 leading-normal"},i&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.url()?a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:i.url()},a.a.createElement("span",null,i.name())):a.a.createElement("span",{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1"},i.name())),o&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:o},a.a.createElement("span",null,B.h))),l&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:"".concat(B.a,"/").concat(l)},a.a.createElement("span",null,l))),r&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:r.url()},a.a.createElement("span",null,B.c))),u&&a.a.createElement(a.a.Fragment,null,u.url()&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement(E,{className:"border border-solid border-purple-300 hover:bg-purple-300 hover:text-purple-600 text-purple-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:u.url()},a.a.createElement("span",null,u.name()||B.i))),u.email()&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement(E,{className:"border border-solid border-purple-300 hover:bg-purple-300 hover:text-purple-600 text-purple-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:"mailto:".concat(u.email())},a.a.createElement("span",null,u.email())))),n&&a.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.a.createElement("span",{className:"border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs uppercase rounded px-3 py-1"},"ID: ",n))),t.hasDescription()&&a.a.createElement("div",{className:"mt-4"},a.a.createElement(j,null,t.description())),e.hasTags()&&a.a.createElement("div",{className:"mt-4"},a.a.createElement(R,{tags:e.tags()}))),a.a.createElement("div",{className:"panel-item--right"}))},M=function(){function e(){}return e.securityType=function(e){switch(e){case"apiKey":return"API key";case"oauth2":return"OAuth2";case"openIdConnect":return"Open ID";case"http":return"HTTP";case"userPassword":return"User/Password";case"X509":return"X509:";case"symmetricEncryption":return"Symmetric Encription";case"asymmetricEncryption":return"Asymmetric Encription";case"httpApiKey":return"HTTP API key";case"scramSha256":return"ScramSha256";case"scramSha512":return"ScramSha512";case"gssapi":return"GSSAPI";default:return"API key"}},e.flowName=function(e){switch(e){case"implicit":return"Implicit";case"password":return"Password";case"clientCredentials":return"Client credentials";case"authorizationCode":return"Authorization Code";default:return"Implicit"}},e.getKafkaSecurity=function(e,t){var n,r;if(n="kafka"===e?t?"SASL_PLAINTEXT":"PLAINTEXT":t?"SASL_SSL":"SSL",t)switch(t.type()){case"plain":r="PLAIN";break;case"scramSha256":r="SCRAM-SHA-256";break;case"scramSha512":r="SCRAM-SHA-512";break;case"oauth2":r="OAUTHBEARER";break;case"gssapi":r="GSSAPI";break;case"X509":n="SSL"}return{securityProtocol:n,saslMechanism:r}},e}(),z=function(e){var t,n=e.serverRequirements,r=void 0===n?[]:n,i=e.protocol,o=void 0===i?"":i,l=d(),u=l.hasComponents()&&l.components().securitySchemes();if(r&&r.length&&u&&Object.keys(u).length){var s=r.map((function(e){var t=u[Object.keys(e.json())[0]];return t?a.a.createElement(U,{protocol:o,securitySchema:t,key:t.type()}):null})).filter(Boolean);t=a.a.createElement("ul",null,s.map((function(e,t){return a.a.createElement("li",{className:"mt-2",key:t},e)})))}else"kafka"!==o&&"kafka-secure"!==o||(t=a.a.createElement(U,{protocol:o,securitySchema:null}));return t?a.a.createElement("div",{className:"text-sm mt-4"},a.a.createElement("h5",{className:"text-gray-700 text-base"},"Security:"),t):null};var L,U=function(e){var t,n=e.securitySchema,r=e.protocol,i=function(e){var t=[];return e&&(e.name()&&t.push(a.a.createElement("span",null,"Name: ",e.name())),e.in()&&t.push(a.a.createElement("span",null,"In: ",e.in())),e.scheme()&&t.push(a.a.createElement("span",null,"Scheme: ",e.scheme())),e.bearerFormat()&&t.push(a.a.createElement("span",null,"Bearer format: ",e.bearerFormat())),e.openIdConnectUrl()&&t.push(a.a.createElement(E,{href:e.openIdConnectUrl(),className:"underline"},"Connect URL"))),t}(n);if(["kafka","kafka-secure"].includes(r)){var o=M.getKafkaSecurity(r,n),l=o.securityProtocol,u=o.saslMechanism;t=a.a.createElement("div",{className:"px-4 py-2 ml-2 mb-2 border border-gray-400 bg-gray-100 rounded"},l&&a.a.createElement("div",{className:"mt-1"},a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"security.protocol:"),a.a.createElement("span",{className:"inline-block font-bold no-underline bg-indigo-400 text-white text-xs rounded py-0 px-1 ml-1"},l)),u&&a.a.createElement("div",{className:"mt-1"},a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"sasl.mechanism:"),a.a.createElement("span",{className:"inline-block font-bold no-underline bg-indigo-400 text-white text-xs rounded py-0 px-1 ml-1"},u)))}var s=n&&n.flows(),c=s&&Object.entries(s).map((function(e){var t=e[0],n=e[1],r=n.authorizationUrl(),i=n.tokenUrl(),o=n.refreshUrl(),l=n.scopes();return a.a.createElement("div",{className:"px-4 py-2 ml-2 mb-2 border border-gray-400 bg-gray-100 rounded",key:t},a.a.createElement("div",null,a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Flow:"),a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},M.flowName(t))),r&&a.a.createElement("div",{className:"mt-1"},a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Auth URL:"),a.a.createElement(E,{href:r,className:"underline"},r)),i&&a.a.createElement("div",{className:"mt-1"},a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Token URL:"),a.a.createElement(E,{href:i,className:"underline"},i)),o&&a.a.createElement("div",{className:"mt-1"},a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Refresh URL:"),a.a.createElement(E,{href:o,className:"underline"},o)),l&&a.a.createElement("div",{className:"mt-1"},a.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Scopes:"),a.a.createElement("ul",{className:"inline-block"},l&&Object.entries(l).map((function(e){var t=e[0],n=e[1];return a.a.createElement("li",{className:"inline-block font-bold no-underline bg-indigo-400 text-white text-xs rounded py-0 px-1 ml-1",title:n,key:t},t)})))))}));return a.a.createElement("div",null,n&&i&&a.a.createElement("div",null,a.a.createElement("span",null,M.securityType(n.type()),i.length>0&&a.a.createElement("ul",{className:"inline-block ml-2"},i.map((function(e,t){return a.a.createElement("li",{className:"inline-block font-bold no-underline bg-blue-400 text-white text-xs uppercase rounded px-2 py-0 ml-1",key:t},e)}))))),n&&n.hasDescription()&&a.a.createElement("div",null,a.a.createElement(j,null,n.description())),c&&c.length>0&&a.a.createElement("ul",{className:"my-2"},a.a.createElement("li",null,c)),t&&a.a.createElement("div",null,t))},$=n(10),H=n.n($);!function(e){e.ANY="any",e.RESTRICTED_ANY="restricted any",e.NEVER="never",e.UNKNOWN="unknown"}(L||(L={}));var V=["string","number","integer","boolean","array","object","null"],W=Object.keys({maxLength:"string",minLength:"string",pattern:"string",contentMediaType:"string",contentEncoding:"string",multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",contains:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",properties:"object",patternProperties:"object",propertyNames:"object",dependencies:"object",additionalProperties:"object"}),q=function(){function e(){}return e.toSchemaType=function(e){var t=this;if(!e||"function"!=typeof e.json)return L.UNKNOWN;if(e.isBooleanSchema())return!0===e.json()?L.ANY:L.NEVER;if(0===Object.keys(e.json()).length)return L.ANY;var n=e.not();if(n&&this.inferType(n)===L.ANY)return L.NEVER;var r=this.inferType(e);if(Array.isArray(r))return r.map((function(n){return t.toType(n,e)})).join(" | ");r=this.toType(r,e);var a=this.toCombinedType(e);return r&&a?"".concat(r," ").concat(a):a||r},e.prettifyValue=function(e){var t=typeof e;return"string"===t?'"'.concat(e,'"'):"number"===t||"bigint"===t||"boolean"===t?e:Array.isArray(e)?"[".concat(e.toString(),"]"):JSON.stringify(e)},e.humanizeConstraints=function(e){var t=[],n=this.humanizeNumberRangeConstraint(e.minimum(),e.exclusiveMinimum(),e.maximum(),e.exclusiveMaximum());void 0!==n&&t.push(n);var r=this.humanizeMultipleOfConstraint(e.multipleOf());void 0!==r&&t.push(r);var a=this.humanizeRangeConstraint("characters",e.minLength(),e.maxLength());void 0!==a&&t.push(a);var i=e.uniqueItems(),o=this.humanizeRangeConstraint(i?"unique items":"items",e.minItems(),e.maxItems());void 0!==o&&t.push(o);var l=this.humanizeRangeConstraint("properties",e.minProperties(),e.maxProperties());return void 0!==l&&t.push(l),t},e.isExpandable=function(e){var t=this.inferType(e);if((t=Array.isArray(t)?t:[t]).includes("object")||t.includes("array"))return!0;if(e.oneOf()||e.anyOf()||e.allOf()||Object.keys(e.properties()).length||e.items()||e.not()||e.if()||e.then()||e.else())return!0;var n=this.getCustomExtensions(e);return!(!n||!Object.keys(n).length)},e.serverVariablesToSchema=function(e){var t;if(e&&Object.keys(e).length){var n=((t={type:"object",properties:Object.entries(e).reduce((function(e,t){var n=t[0],r=t[1];return e[n]=Object.assign({},r.json()),e[n].type="string",e}),{}),required:Object.keys(e)})[this.extRenderType]=!1,t[this.extRenderAdditionalInfo]=!1,t);return new H.a(n)}},e.parametersToSchema=function(e){var t,n=this;if(e&&Object.keys(e).length){var r=((t={type:"object",properties:Object.entries(e).reduce((function(e,t){var r=t[0],a=t[1];return e[r]=Object.assign({},a.schema().json()),e[r].description=a.description()||e[r].description,e[r][n.extParameterLocation]=a.location(),e}),{}),required:Object.keys(e)})[this.extRenderType]=!1,t[this.extRenderAdditionalInfo]=!1,t);return new H.a(r)}},e.jsonToSchema=function(e){var t=this.jsonFieldToSchema(e);return new H.a(t)},e.getCustomExtensions=function(e){if(e&&"function"==typeof e.extensions)return Object.entries(e.extensions()||{}).reduce((function(e,t){var n=t[0],r=t[1];return n.startsWith("x-parser-")||n.startsWith("x-schema-private-")||(e[n]=r),e}),{})},e.getDependentRequired=function(e,t){var n=[],r=t.dependencies();if(r){for(var a=0,i=Object.entries(r);a")}return e},e.toItemsType=function(e,t){var n=this,r=e.map((function(e){return n.toSchemaType(e)})).join(", "),a=t.additionalItems();if(void 0===a||a.json()){var i=void 0===a||!0===a.json()?L.ANY:this.toSchemaType(a);return"tuple<".concat(r||L.UNKNOWN,", ...optional<").concat(i,">>")}return"tuple<".concat(r||L.UNKNOWN,">")},e.toCombinedType=function(e){return e.oneOf()?"oneOf":e.anyOf()?"anyOf":e.allOf()?"allOf":void 0},e.inferType=function(e){var t=e.type();if(void 0!==t)return Array.isArray(t)?(t.includes("integer")&&t.includes("number")&&(t=t.filter((function(e){return"integer"!==e}))),1===t.length?t[0]:t):t;var n=e.const();if(void 0!==n)return typeof n;var r=e.enum();if(Array.isArray(r)&&r.length){var a=Array.from(new Set(r.map((function(e){return typeof e}))));return 1===a.length?a[0]:a}var i=Object.keys(e.json()||{})||[];return!0===W.some((function(e){return i.includes(e)}))?L.RESTRICTED_ANY:this.toCombinedType(e)?"":L.ANY},e.humanizeNumberRangeConstraint=function(e,t,n,r){var a,i=void 0!==t,o=void 0!==e||i,l=void 0!==r,u=void 0!==n||l;return o&&u?(a=i?"( ":"[ ",a+=i?t:e,a+=" .. ",a+=l?r:n,a+=l?" )":" ]"):o?(a=i?"> ":">= ",a+=i?t:e):u&&(a=l?"< ":"<= ",a+=l?r:n),a},e.humanizeMultipleOfConstraint=function(e){if(void 0!==e){var t=e.toString(10);return/^0\.0*1$/.test(t)?"decimal places <= ".concat(t.split(".")[1].length):"multiple of ".concat(t)}},e.humanizeRangeConstraint=function(e,t,n){var r;return void 0!==t&&void 0!==n?r=t===n?"".concat(t," ").concat(e):"[ ".concat(t," .. ").concat(n," ] ").concat(e):void 0!==n?r="<= ".concat(n," ").concat(e):void 0!==t&&(r=1===t?"non-empty":">= ".concat(t," ").concat(e)),r},e.jsonFieldToSchema=function(e){var t,n,r,a,i=this;return null==e?((t={type:"string",const:""})[this.extRawValue]=!0,t):"object"!=typeof e?((n={type:"string",const:"function"==typeof e.toString?e.toString():e})[this.extRawValue]=!0,n):this.isJSONSchema(e)?e:Array.isArray(e)?((r={type:"array",items:e.map((function(e){return i.jsonFieldToSchema(e)}))})[this.extRenderType]=!1,r[this.extRenderAdditionalInfo]=!1,r):((a={type:"object",properties:Object.entries(e).reduce((function(e,t){var n=t[0],r=t[1];return e[n]=i.jsonFieldToSchema(r),e}),{})})[this.extRenderType]=!1,a[this.extRenderAdditionalInfo]=!1,a)},e.isJSONSchema=function(e){return!(!e||"object"!=typeof e||!(V.includes(e.type)||Array.isArray(e.type)&&e.type.some((function(e){return!V.includes(e)}))))},e.extRenderType="x-schema-private-render-type",e.extRenderAdditionalInfo="x-schema-private-render-additional-info",e.extRawValue="x-schema-private-raw-value",e.extParameterLocation="x-schema-private-parameter-location",e}(),Y=function(e){var t=e.name,n=void 0===t?"Extensions":t,r=e.item,i=q.getCustomExtensions(r);if(!i||!Object.keys(i).length)return null;var o=q.jsonToSchema(i);return o&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(K,{schemaName:n,schema:o,onlyTitle:!0}))},Q=a.a.createContext({reverse:!1}),K=function(e){var t=e.schemaName,n=e.schema,i=e.required,o=void 0!==i&&i,l=e.isPatternProperty,u=void 0!==l&&l,s=e.isProperty,f=void 0!==s&&s,d=e.isCircular,p=void 0!==d&&d,h=e.dependentRequired,m=e.expanded,g=void 0!==m&&m,y=e.onlyTitle,b=void 0!==y&&y,v=Object(r.useContext)(Q).reverse,x=Object(r.useState)(g),w=x[0],D=x[1];if(!n||"string"==typeof t&&((null==t?void 0:t.startsWith("x-parser-"))||(null==t?void 0:t.startsWith("x-schema-private-"))))return null;var k=q.getDependentSchemas(n),A=q.humanizeConstraints(n),_=n.externalDocs(),C=!1!==n.ext(q.extRenderType),T=!0===n.ext(q.extRawValue),S=n.ext(q.extParameterLocation),N=q.isExpandable(n)||k,O=q.toSchemaType(n);p=p||n.isCircular()||n.ext("x-parser-circular")||!1;var F=n.uid(),P=n.items();P&&!Array.isArray(P)?(p=p||P.isCircular()||P.ext("x-parser-circular")||!1,F=P.uid(),p&&"function"==typeof P.circularSchema&&(O=q.toSchemaType(P.circularSchema()))):p&&"function"==typeof n.circularSchema&&(O=q.toSchemaType(n.circularSchema()));var R=f?"italic":"",B="string"==typeof t?a.a.createElement("span",{className:"break-words text-sm ".concat(R)},t):t;return a.a.createElement(Q.Provider,{value:{reverse:!v}},a.a.createElement("div",null,a.a.createElement("div",{className:"flex py-2"},a.a.createElement("div",{className:"".concat(b?"":"min-w-1/4"," mr-2")},N&&!p?a.a.createElement(c,{onClick:function(){return D((function(e){return!e}))},chevronProps:{className:w?"-rotate-180":"-rotate-90"}},B):a.a.createElement("span",{className:"break-words text-sm ".concat(f?"italic":"")},t),u&&a.a.createElement("div",{className:"text-gray-500 text-xs italic"},"(pattern property)"),o&&a.a.createElement("div",{className:"text-red-600 text-xs"},"required"),h&&a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"text-gray-500 text-xs"},"required when defined:"),a.a.createElement("div",{className:"text-red-600 text-xs"},h.join(", "))),n.deprecated()&&a.a.createElement("div",{className:"text-red-600 text-xs"},"deprecated"),n.writeOnly()&&a.a.createElement("div",{className:"text-gray-500 text-xs"},"write-only"),n.readOnly()&&a.a.createElement("div",{className:"text-gray-500 text-xs"},"read-only")),T?a.a.createElement("div",null,a.a.createElement("div",{className:"text-sm"},n.const())):a.a.createElement("div",null,a.a.createElement("div",null,C&&a.a.createElement("div",{className:"capitalize text-sm text-teal-500 font-bold inline-block mr-2"},p?"".concat(O," [CIRCULAR]"):O),a.a.createElement("div",{className:"inline-block"},n.format()&&a.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"format: ",n.format()),void 0!==n.pattern()&&a.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"must match: ",n.pattern()),void 0!==n.contentMediaType()&&a.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"media type: ",n.contentMediaType()),void 0!==n.contentEncoding()&&a.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"encoding: ",n.contentEncoding()),!!A.length&&A.map((function(e){return a.a.createElement("span",{className:"bg-purple-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs",key:e},e)})),F&&!F.startsWith("e.length?e.repeat(Math.trunc(t/e.length)+1).substring(0,t):e}function se(...e){const t=e=>e&&"object"==typeof e;return e.reduce((e,n)=>(Object.keys(n).forEach(r=>{const a=e[r],i=n[r];t(a)&&t(i)?e[r]=se(a,i):e[r]=i}),e),Array.isArray(e[e.length-1])?[]:{})}function ce(e){return{value:"object"===e?{}:"array"===e?[]:void 0}}function fe(e,t){t&&e.pop()}const de={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function pe(e){if(void 0!==e.type)return Array.isArray(e.type)?0===e.type.length?null:e.type[0]:e.type;const t=Object.keys(de);for(var n=0;nt.maxSampleDepth)return fe(ye,r),ce(pe(e));if(e.$ref){if(!n)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let a=decodeURIComponent(e.$ref);a.startsWith("#")&&(a=a.substring(1));const i=me.a.get(n,a);let o;if(!0!==ge[a])ge[a]=!0,o=xe(i,t,n,r),ge[a]=!1;else{o=ce(pe(i))}return fe(ye,r),o}if(void 0!==e.example)return fe(ye,r),{value:e.example,readOnly:e.readOnly,writeOnly:e.writeOnly,type:e.type};if(void 0!==e.allOf)return fe(ye,r),ve(e)||function(e,t,n,r,a){let i=xe(e,n,r);const o=[];for(let e of t){const{type:t,readOnly:l,writeOnly:u,value:s}=xe({type:i.type,...e},n,r,a);i.type&&t&&t!==i.type&&(console.warn("allOf: schemas with different types can't be merged"),i.type=t),i.type=i.type||t,i.readOnly=i.readOnly||l,i.writeOnly=i.writeOnly||u,null!=s&&o.push(s)}if("object"===i.type)return i.value=se(i.value||{},...o.filter(e=>"object"==typeof e)),i;{"array"===i.type&&(n.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));const e=o[o.length-1];return i.value=null!=e?e:i.value,i}}({...e,allOf:void 0},e.allOf,t,n,r);if(e.oneOf&&e.oneOf.length){e.anyOf&&(t.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),fe(ye,r);const a=Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.oneOf[0]);return ve(e)||xe(a,t,n,r)}if(e.anyOf&&e.anyOf.length)return fe(ye,r),ve(e)||xe(e.anyOf[0],t,n,r);if(e.if&&e.then)return fe(ye,r),ve(e)||xe(se(e.if,e.then),t,n,r);let a=be(e),i=null;if(void 0===a){a=null,i=e.type,Array.isArray(i)&&e.type.length>0&&(i=e.type[0]),i||(i=pe(e));let o=Ae[i];o&&(a=o(e,t,n,r))}return fe(ye,r),{value:a,readOnly:e.readOnly,writeOnly:e.writeOnly,type:i}}function Ee(e){let t=0;if("boolean"==typeof e.exclusiveMinimum||"boolean"==typeof e.exclusiveMaximum){if(e.maximum&&e.minimum)return t=e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum,(e.exclusiveMaximum&&t>=e.maximum||!e.exclusiveMaximum&&t>e.maximum)&&(t=(e.maximum+e.minimum)/2),t;if(e.minimum)return e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum;if(e.maximum)return e.exclusiveMaximum?e.maximum>0?0:Math.floor(e.maximum)-1:e.maximum>0?0:e.maximum}else{if(e.minimum)return e.minimum;e.exclusiveMinimum?(t=Math.floor(e.exclusiveMinimum)+1,t===e.exclusiveMaximum&&(t=(t+Math.floor(e.exclusiveMaximum)-1)/2)):e.exclusiveMaximum?t=Math.floor(e.exclusiveMaximum)-1:e.maximum&&(t=e.maximum)}return t}function we({min:e,max:t,omitTime:n,omitDate:r}){let a=function(e,t,n,r){var a=n?"":e.getUTCFullYear()+"-"+le(e.getUTCMonth()+1)+"-"+le(e.getUTCDate());return t||(a+="T"+le(e.getUTCHours())+":"+le(e.getUTCMinutes())+":"+le(e.getUTCSeconds())+(r?"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5):"")+"Z"),a}(new Date("2019-08-24T14:15:22.123Z"),n,r,!1);return a.lengtht&&console.warn(`Using maxLength = ${t} is incorrect with format "date-time"`),a}function De(e,t){let n=ue("string",e);return t&&n.length>t&&(n=n.substring(0,t)),n}const ke={email:function(){return"user@example.com"},"idn-email":function(){return"пошта@укр.нет"},password:function(e,t){let n="pa$$word";return e>n.length&&(n+="_",n+=ue("qwerty!@#$%^123456",e-n.length).substring(0,e-n.length)),n},"date-time":function(e,t){return we({min:e,max:t,omitTime:!1,omitDate:!1})},date:function(e,t){return we({min:e,max:t,omitTime:!0,omitDate:!1})},time:function(e,t){return we({min:e,max:t,omitTime:!1,omitDate:!0}).slice(1)},ipv4:function(){return"192.168.0.1"},ipv6:function(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"},hostname:function(){return"example.com"},"idn-hostname":function(){return"приклад.укр"},iri:function(){return"http://example.com"},"iri-reference":function(){return"../словник"},uri:function(){return"http://example.com"},"uri-reference":function(){return"../dictionary"},"uri-template":function(){return"http://example.com/{endpoint}"},uuid:function(e,t,n){return l=function(e){var t=0;if(0==e.length)return t;for(var n=0;n>>5)|0;return r=a^((i|=0)<<17|i>>>15),a=i+(o|=0)|0,i=o+e|0,((o=r+e|0)>>>0)/4294967296},"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{var t=16*u()%16|0;return("x"==e?t:3&t|8).toString(16)});var r,a,i,o,l,u},default:De,"json-pointer":function(){return"/json/pointer"},"relative-json-pointer":function(){return"1/relative/json/pointer"},regex:function(){return"/regex/"}};var Ae={};const _e={skipReadOnly:!1,maxSampleDepth:15};function Ce(e,t,n){let r=Object.assign({},_e,t);return ge={},ye=[],xe(e,r,n).value}function Te(e,t){Ae[e]=t}Te("array",(function(e,t={},n,r){const a=r&&r.depth||1;let i=Math.min(null!=e.maxItems?e.maxItems:1/0,e.minItems||1);const o=e.items||e.contains;Array.isArray(o)&&(i=Math.max(i,o.length));let l=[];if(!o)return l;for(let r=0;r(e[t]=!0,e),{});Object.keys(e.properties).forEach(o=>{if(t.skipNonRequired&&!r.hasOwnProperty(o))return;const l=xe(e.properties[o],t,n,{propertyName:o,depth:i+1});t.skipReadOnly&&l.readOnly||t.skipWriteOnly&&l.writeOnly||(a[o]=l.value)})}return e&&"object"==typeof e.additionalProperties&&(a.property1=xe(e.additionalProperties,t,n,{depth:i+1}).value,a.property2=xe(e.additionalProperties,t,n,{depth:i+1}).value),a})),Te("string",(function(e,t,n,r){let a=e.format||"default",i=ke[a]||De,o=r&&r.propertyName;return i(0|e.minLength,e.maxLength,o)}));var Se,Ne=function(){function e(){}return e.generateExample=function(e,t){void 0===t&&(t={});try{return this.sanitizeExample(Ce(e,t))||""}catch(e){return""}},e.sanitizeExample=function(e){var t=this;return"object"==typeof e&&e&&!Array.isArray(e)?Object.entries(e).reduce((function(e,n){var r=n[0],a=n[1];return r.startsWith("x-parser-")||r.startsWith("x-schema-private-")||(e[r]=t.sanitizeExample(a)),e}),{}):e},e.getPayloadExamples=function(e){var t=e.examples();if(Array.isArray(t)&&t.some((function(e){return e.payload}))){var n=t.flatMap((function(e){if(e.payload)return{name:e.name,summary:e.summary,example:e.payload}})).filter(Boolean);if(n.length>0)return n}var r=e.payload();if(r&&r.examples())return r.examples().map((function(e){return{example:e}}))},e.getHeadersExamples=function(e){var t=e.examples();if(Array.isArray(t)&&t.some((function(e){return e.headers}))){var n=t.flatMap((function(e){if(e.headers)return{name:e.name,summary:e.summary,example:e.headers}})).filter(Boolean);if(n.length>0)return n}var r=e.headers();if(r&&r.examples())return r.examples().map((function(e){return{example:e}}))},e}(),Oe=function(e){var t=e.message;if(!t)return null;var n=t.payload(),r=t.headers();return a.a.createElement("div",{className:"bg-gray-800 px-8 py-4 mt-4 -mx-8 2xl:mx-0 2xl:px-4 2xl:rounded examples"},a.a.createElement("h4",{className:"text-white text-lg"},"Examples"),n&&a.a.createElement(Fe,{type:"Payload",schema:n,examples:Ne.getPayloadExamples(t)}),r&&a.a.createElement(Fe,{type:"Headers",schema:r,examples:Ne.getHeadersExamples(t)}))},Fe=function(e){var t=e.type,n=void 0===t?"Payload":t,i=e.schema,o=e.examples,l=void 0===o?[]:o,u=Object(r.useState)(!1),s=u[0],f=u[1];return a.a.createElement("div",{className:"mt-4"},a.a.createElement("div",null,a.a.createElement(c,{onClick:function(){return f((function(e){return!e}))},chevronProps:{className:"fill-current text-gray-200 ".concat(s?"-rotate-180":"-rotate-90")}},a.a.createElement("span",{className:"px-2 py-1 mr-2 text-gray-200 text-sm border rounded focus:outline-none"},n))),a.a.createElement("div",{className:s?"block":"hidden"},l&&l.length>0?a.a.createElement("ul",null,l.map((function(e,t){return a.a.createElement("li",{className:"mt-4",key:t},a.a.createElement("h5",{className:"text-xs font-bold text-gray-500"},e.name?"#".concat(t+1," Example - ").concat(e.name):"#".concat(t+1," Example")),e.summary&&a.a.createElement("p",{className:"text-xs font-bold text-gray-500"},e.summary),a.a.createElement("div",{className:"mt-1"},a.a.createElement(oe,{snippet:Ne.sanitizeExample(e.example)})))}))):a.a.createElement("div",{className:"mt-4"},a.a.createElement(oe,{snippet:Ne.generateExample(i.json())}),a.a.createElement("h6",{className:"text-xs font-bold text-gray-600 italic mt-2"},"This example has been generated automatically."))))},je=function(e){var t=e.message,n=e.messageName,r=e.index,i=e.showExamples,o=void 0!==i&&i,l=ne();if(!t)return null;var u=t.title(),s=t.summary(),c=t.payload(),f=t.headers(),d=t.correlationId(),p=t.contentType(),h=t.externalDocs(),m=p||h;return a.a.createElement("div",{className:"panel-item"},a.a.createElement("div",{className:"panel-item--center px-8"},a.a.createElement("div",{className:"shadow rounded bg-gray-200 p-4 border"},a.a.createElement("div",null,void 0!==r&&a.a.createElement("span",{className:"text-gray-700 font-bold mr-2"},"#",r),u&&a.a.createElement("span",{className:"text-gray-700 mr-2"},u),a.a.createElement("span",{className:"border text-orange-600 rounded text-xs py-0 px-2"},t.uid())),s&&a.a.createElement("p",{className:"text-gray-600 text-sm"},s),m&&a.a.createElement("ul",{className:"leading-normal mt-2 mb-4 space-x-2 space-y-2"},p&&a.a.createElement("li",{className:"inline-block"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:"".concat(B.a,"/").concat(p)},a.a.createElement("span",null,p))),h&&a.a.createElement("li",{className:"inline-block"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:h.url()},a.a.createElement("span",null,B.c)))),d&&a.a.createElement("div",{className:"border bg-gray-100 rounded px-4 py-2 mt-2"},a.a.createElement("div",{className:"text-sm text-gray-700"},"Correlation ID",a.a.createElement("span",{className:"border text-orange-600 rounded text-xs ml-2 py-0 px-2"},d.location())),d.hasDescription()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(j,null,d.description()))),t.hasDescription()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(j,null,t.description())),c&&a.a.createElement("div",{className:"mt-2",id:n?re.getIdentifier("message-".concat(n,"-payload"),l):void 0},a.a.createElement(K,{schemaName:"Payload",schema:c})),f&&a.a.createElement("div",{className:"mt-2",id:n?re.getIdentifier("message-".concat(n,"-headers"),l):void 0},a.a.createElement(K,{schemaName:"Headers",schema:f})),t.hasBindings()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(ee,{name:"Message specific information",bindings:t.bindings()})),a.a.createElement(Y,{item:t}),t.hasTags()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(R,{tags:t.tags()})))),o&&a.a.createElement("div",{className:"panel-item--right px-8"},a.a.createElement(Oe,{message:t})))},Pe=n(7),Re=function(){return(Re=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?a.a.createElement("div",{className:"mt-2 text-sm"},a.a.createElement("p",null,"Available only on servers:"),a.a.createElement("ul",{className:"flex flex-wrap leading-normal"},u.map((function(e){return a.a.createElement("li",{className:"inline-block mt-2 mr-2",key:e},a.a.createElement("a",{href:"#".concat(re.getIdentifier("server-"+e,t)),className:"border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs rounded px-3 py-1 cursor-pointer"},a.a.createElement("span",{className:"underline"},e)))})))):null,s&&a.a.createElement("div",{className:"mt-2",id:re.getIdentifier("operation-".concat(r,"-").concat(o,"-parameters"),t)},a.a.createElement(K,{schemaName:"Parameters",schema:s,expanded:!0})),l.hasBindings()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(ee,{name:"Channel specific information",bindings:l.bindings()})),a.a.createElement(Y,{name:"Channel Extensions",item:l}),i.hasBindings()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(ee,{name:"Operation specific information",bindings:i.bindings()})),a.a.createElement(Y,{name:"Operation Extensions",item:i}),i.hasTags()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(R,{tags:i.tags()}))),a.a.createElement("div",{className:"w-full mt-4",id:re.getIdentifier("operation-".concat(r,"-").concat(o,"-message"),t)},i.hasMultipleMessages()?a.a.createElement("div",{className:"mt-2"},a.a.createElement("p",{className:"px-8"},"Accepts ",a.a.createElement("strong",null,"one of")," the following messages:"),a.a.createElement("ul",null,i.messages().map((function(e,t){return a.a.createElement("li",{className:"mt-4",key:t},a.a.createElement(je,{message:e,index:t,showExamples:!0}))})))):a.a.createElement("div",{className:"mt-2"},a.a.createElement("p",{className:"px-8"},"Accepts the following message:"),a.a.createElement("div",{className:"mt-2"},a.a.createElement(je,{message:i.message(0),showExamples:!0})))))},Ie=function(e){var t=e.type,n=void 0===t?Pe.a.PUBLISH:t,r=e.operation,i=e.channelName,o=e.channel,l=r.summary(),u=r.externalDocs(),s=r.id();return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"mb-4"},a.a.createElement("h3",null,a.a.createElement("span",{className:"font-mono border uppercase p-1 rounded mr-2 ".concat(n===Pe.a.PUBLISH?"border-blue-600 text-blue-500":"border-green-600 text-green-600"),title:n},n===Pe.a.PUBLISH?"PUB":"SUB")," ",a.a.createElement("span",{className:"font-mono text-base"},i))),o.hasDescription()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(j,null,o.description())),l&&a.a.createElement("p",{className:"text-gray-600 text-sm mt-2"},l),r.hasDescription()&&a.a.createElement("div",{className:"mt-2"},a.a.createElement(j,null,r.description())),u&&a.a.createElement("ul",{className:"leading-normal mt-2 mb-4 space-x-2 space-y-2"},u&&a.a.createElement("li",{className:"inline-block"},a.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:u.url()},a.a.createElement("span",null,B.c)))),s&&a.a.createElement("div",{className:"border bg-gray-100 rounded px-4 py-2 mt-2"},a.a.createElement("div",{className:"text-sm text-gray-700"},"Operation ID",a.a.createElement("span",{className:"border text-orange-600 rounded text-xs ml-2 py-0 px-2"},s))))},Me=function(){var e=d().channels(),t=ne();if(!Object.keys(e).length)return null;var n=[];return Object.entries(e).forEach((function(e){var r=e[0],i=e[1];i.hasPublish()&&n.push(a.a.createElement("li",{className:"mb-12",key:"pub-".concat(r),id:re.getIdentifier("operation-".concat(Pe.a.PUBLISH,"-").concat(r),t)},a.a.createElement(Be,{type:Pe.a.PUBLISH,operation:i.publish(),channelName:r,channel:i}))),i.hasSubscribe()&&n.push(a.a.createElement("li",{className:"mb-12",key:"sub-".concat(r),id:re.getIdentifier("operation-".concat(Pe.a.SUBSCRIBE,"-").concat(r),t)},a.a.createElement(Be,{type:Pe.a.SUBSCRIBE,operation:i.subscribe(),channelName:r,channel:i})))})),a.a.createElement("section",{id:"".concat(re.getIdentifier("operations",t)),className:"mt-16"},a.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},B.e),a.a.createElement("ul",null,n))},ze=function(){var e=d(),t=ne(),n=e.hasComponents()&&e.components().messages();return n&&0!==Object.keys(n).length?a.a.createElement("section",{id:"".concat(re.getIdentifier("messages",t)),className:"mt-16"},a.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},B.d),a.a.createElement("ul",null,Object.entries(n).map((function(e,n){var r=e[0],i=e[1];return a.a.createElement("li",{className:"mb-4",key:r,id:re.getIdentifier("message-".concat(r),t)},a.a.createElement(je,{messageName:r,message:i,index:n+1,key:r}))})))):null},Le=function(e){var t=e.schemaName,n=e.schema;return n?a.a.createElement("div",null,a.a.createElement("div",{className:"panel-item--center px-8"},a.a.createElement("div",{className:"shadow rounded px-4 py-2 border bg-gray-200"},a.a.createElement(K,{schemaName:t,schema:n}))),a.a.createElement("div",{className:"w-full mt-4"})):null},Ue=function(){var e=d(),t=ne(),n=e.hasComponents()&&e.components().schemas();return n&&0!==Object.keys(n).length?a.a.createElement("section",{id:"".concat(re.getIdentifier("schemas",t)),className:"mt-16"},a.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},B.f),a.a.createElement("ul",null,Object.entries(n).map((function(e){var n=e[0],r=e[1];return a.a.createElement("li",{className:"mb-4",key:n,id:re.getIdentifier("schema-".concat(n),t)},a.a.createElement(Le,{schemaName:n,schema:r}))})))):null},$e=function(e){var t=e.error;if(!t)return null;var n,r=t.title,i=t.validationErrors;return a.a.createElement("div",{className:"panel-item"},a.a.createElement("div",{className:"panel-item--center p-8"},a.a.createElement("section",{className:"shadow rounded bg-gray-200 border-red-500 border-l-8"},a.a.createElement("h2",{className:"p-2"},r?"".concat(B.b,": ").concat(r):B.b),i&&i.length?a.a.createElement("div",{className:"bg-gray-800 text-white text-xs p-2"},a.a.createElement("pre",null,(n=i)?n.map((function(e,t){return e&&e.title&&e.location?a.a.createElement("div",{key:t,className:"flex"},a.a.createElement("span",null,"".concat(e.location.startLine,".")),a.a.createElement("code",{className:"whitespace-pre-wrap break-all ml-2"},e.title)):null})).filter(Boolean):null)):null)),a.a.createElement("div",{className:"panel-item--right"}))},He=function(e){var t,n,i,o,u,s,c,d=e.asyncapi,p=e.config,m=e.error,g=void 0===m?null:m,y=Object(r.useState)("container:xl"),b=y[0],v=y[1],x=l({onResize:function(e){var t=e.width;requestAnimationFrame((function(){if(void 0!==t){var e=t<=1280?"container:xl":"container:base";e!==b&&v(e)}}))}}).ref;return a.a.createElement(te.Provider,{value:p},a.a.createElement(f.Provider,{value:d},a.a.createElement("section",{className:"aui-root"},a.a.createElement("div",{className:"".concat(b," relative md:flex bg-white leading-normal"),id:p.schemaID||void 0,ref:x},(null===(t=p.show)||void 0===t?void 0:t.sidebar)&&a.a.createElement(h,{config:p.sidebar}),a.a.createElement("div",{className:"panel--center relative py-8 flex-1"},a.a.createElement("div",{className:"relative z-10"},(null===(n=p.show)||void 0===n?void 0:n.errors)&&g&&a.a.createElement($e,{error:g}),(null===(i=p.show)||void 0===i?void 0:i.info)&&a.a.createElement(I,null),(null===(o=p.show)||void 0===o?void 0:o.servers)&&a.a.createElement(ie,null),(null===(u=p.show)||void 0===u?void 0:u.operations)&&a.a.createElement(Me,null),(null===(s=p.show)||void 0===s?void 0:s.messages)&&a.a.createElement(ze,null),(null===(c=p.show)||void 0===c?void 0:c.schemas)&&a.a.createElement(Ue,null)),a.a.createElement("div",{className:"panel--right absolute top-0 right-0 h-full bg-gray-800"}))))))},Ve=(Se=function(e,t){return(Se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Se(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),We=function(){return(We=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]new u(e)):null}},s,c,f)},39:function(e,t,n){const{createMapOfType:r,getMapValueOfType:a,mix:i}=n(2),o=n(3),l=n(40),u=n(79),s=n(83),c=n(6),f=n(21),d=n(4);e.exports=i(class extends o{parameters(){return r(this._json.parameters,l)}parameter(e){return a(this._json.parameters,e,l)}hasParameters(){return!!this._json.parameters}hasServers(){return!!this._json.servers}servers(){return this._json.servers?this._json.servers:[]}server(e){return this._json.servers?"number"!=typeof e||e>this._json.servers.length-1?null:this._json.servers[+e]:null}publish(){return this._json.publish?new u(this._json.publish):null}subscribe(){return this._json.subscribe?new s(this._json.subscribe):null}hasPublish(){return!!this._json.publish}hasSubscribe(){return!!this._json.subscribe}},c,f,d)},4:function(e,t){const n={hasExtensions(){return!!this.extensionKeys().length},extensions(){const e={};return Object.entries(this._json).forEach(([t,n])=>{/^x-[\w\d\.\-\_]+$/.test(t)&&(e[String(t)]=n)}),e},extensionKeys(){return Object.keys(this.extensions())},extKeys(){return this.extensionKeys()},hasExtension(e){return!!e.startsWith("x-")&&!!this._json[String(e)]},extension(e){return e.startsWith("x-")?this._json[String(e)]:null},hasExt(e){return this.hasExtension(e)},ext(e){return this.extension(e)}};e.exports=n},40:function(e,t,n){const{mix:r}=n(2),a=n(3),i=n(10),o=n(6),l=n(4);e.exports=r(class extends a{location(){return this._json.location}schema(){return this._json.schema?new i(this._json.schema):null}},o,l)},41:function(e,t,n){const{mix:r}=n(2),a=n(3),i=n(6),o=n(25),l=n(17),u=n(21),s=n(4);e.exports=r(class extends a{id(){return this._json.operationId}summary(){return this._json.summary}},i,o,l,u,s)},42:function(e,t,n){(function(t){const r=n(43),a=n(44),i=n(10);e.exports=class extends a{uid(){return this.name()||this.ext("x-parser-message-name")||t.from(JSON.stringify(this._json)).toString("base64")}payload(){return this._json.payload?new i(this._json.payload):null}traits(){const e=this._json["x-parser-original-traits"]||this._json.traits;return e?e.map(e=>new r(e)):[]}hasTraits(){return!!this._json["x-parser-original-traits"]||!!this._json.traits}originalPayload(){return this._json["x-parser-original-payload"]||this.payload()}originalSchemaFormat(){return this._json["x-parser-original-schema-format"]||this.schemaFormat()}}}).call(this,n(11).Buffer)},43:function(e,t,n){const r=n(44);e.exports=class extends r{}},44:function(e,t,n){const{getMapValueOfType:r,mix:a}=n(2),i=n(3),o=n(10),l=n(45),u=n(6),s=n(17),c=n(25),f=n(21),d=n(4);e.exports=a(class extends i{headers(){return this._json.headers?new o(this._json.headers):null}header(e){return this._json.headers?r(this._json.headers.properties,e,o):null}correlationId(){return this._json.correlationId?new l(this._json.correlationId):null}schemaFormat(){return this._json.schemaFormat}contentType(){return this._json.contentType}name(){return this._json.name}title(){return this._json.title}summary(){return this._json.summary}examples(){return this._json.examples}},u,c,s,f,d)},45:function(e,t,n){const{mix:r}=n(2),a=n(3),i=n(6),o=n(4);e.exports=r(class extends a{location(){return this._json.location}},o,i)},46:function(e,t,n){const r=n(41);e.exports=class extends r{}},47:function(e,t){const n=Object.freeze({NEW_SCHEMA:"NEW_SCHEMA",END_SCHEMA:"END_SCHEMA"}),r=Object.freeze({parameters:"parameters",payloads:"payloads",headers:"headers",components:"components",objects:"objects",arrays:"arrays",oneOfs:"oneOfs",allOfs:"allOfs",anyOfs:"anyOfs",nots:"nots",propertyNames:"propertyNames",patternProperties:"patternProperties",contains:"contains",ifs:"ifs",thenes:"thenes",elses:"elses",dependencies:"dependencies",definitions:"definitions"});function a(e,t,i){if(!e)return;const{callback:o,schemaTypesToIterate:l,seenSchemas:u}=i,s=e.json();if(u.has(s))return;u.add(s);let c=e.type()||[];Array.isArray(c)||(c=[c]),!l.includes(r.objects)&&c.includes("object")||!l.includes(r.arrays)&&c.includes("array")||!1!==o(e,t,n.NEW_SCHEMA)&&(l.includes(r.objects)&&c.includes("object")&&function(e,t){Object.entries(e.properties()||{}).forEach(([e,n])=>{a(n,e,t)});const n=e.additionalProperties();"object"==typeof n&&a(n,null,t);const i=t.schemaTypesToIterate;i.includes(r.propertyNames)&&e.propertyNames()&&a(e.propertyNames(),null,t);i.includes(r.patternProperties)&&Object.entries(e.patternProperties()||{}).forEach(([e,n])=>{a(n,e,t)})}(e,i),l.includes(r.arrays)&&c.includes("array")&&function(e,t){const n=e.items();n&&(Array.isArray(n)?n.forEach((e,n)=>{a(e,n,t)}):a(n,null,t));const i=e.additionalItems();"object"==typeof i&&a(i,null,t);t.schemaTypesToIterate.includes(r.contains)&&e.contains()&&a(e.contains(),null,t)}(e,i),l.includes(r.oneOfs)&&(e.oneOf()||[]).forEach((e,t)=>{a(e,t,i)}),l.includes(r.anyOfs)&&(e.anyOf()||[]).forEach((e,t)=>{a(e,t,i)}),l.includes(r.allOfs)&&(e.allOf()||[]).forEach((e,t)=>{a(e,t,i)}),l.includes(r.nots)&&e.not()&&a(e.not(),null,i),l.includes(r.ifs)&&e.if()&&a(e.if(),null,i),l.includes(r.thenes)&&e.then()&&a(e.then(),null,i),l.includes(r.elses)&&e.else()&&a(e.else(),null,i),l.includes(r.dependencies)&&Object.entries(e.dependencies()||{}).forEach(([e,t])=>{t&&!Array.isArray(t)&&a(t,e,i)}),l.includes(r.definitions)&&Object.entries(e.definitions()||{}).forEach(([e,t])=>{a(t,e,i)}),o(e,t,n.END_SCHEMA),u.delete(s))}function i(e,t){if(!e)return;const{schemaTypesToIterate:n}=t;n.includes(r.headers)&&a(e.headers(),null,t),n.includes(r.payloads)&&a(e.payload(),null,t)}e.exports={SchemaIteratorCallbackType:n,SchemaTypesToIterate:r,traverseAsyncApiDocument:function(e,t,n){n||(n=Object.values(r));const o={callback:t,schemaTypesToIterate:n,seenSchemas:new Set};if(e.hasChannels()&&Object.values(e.channels()).forEach(e=>{!function(e,t){if(!e)return;const{schemaTypesToIterate:n}=t;n.includes(r.parameters)&&Object.values(e.parameters()||{}).forEach(e=>{a(e.schema(),null,t)});e.hasPublish()&&e.publish().messages().forEach(e=>{i(e,t)});e.hasSubscribe()&&e.subscribe().messages().forEach(e=>{i(e,t)})}(e,o)}),n.includes(r.components)&&e.hasComponents()){const t=e.components();Object.values(t.messages()||{}).forEach(e=>{i(e,o)}),Object.values(t.schemas()||{}).forEach(e=>{a(e,null,o)}),n.includes(r.parameters)&&Object.values(t.parameters()||{}).forEach(e=>{a(e.schema(),null,o)}),Object.values(t.messageTraits()||{}).forEach(e=>{!function(e,t){if(!e)return;const{schemaTypesToIterate:n}=t;n.includes(r.headers)&&a(e.headers(),null,t)}(e,o)})}}}},48:function(e,t,n){ +/*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */ +e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,a=Object.getOwnPropertyDescriptor,i=Object.freeze,o=Object.seal,l=Object.create,u="undefined"!=typeof Reflect&&Reflect,s=u.apply,c=u.construct;s||(s=function(e,t,n){return e.apply(t,n)}),i||(i=function(e){return e}),o||(o=function(e){return e}),c||(c=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?n-1:0),a=1;a/gm),z=o(/^data-[\-\w.\u00B7-\uFFFF]/),L=o(/^aria-[\-\w]+$/),U=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=o(/^(?:\w+script|data):/i),H=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function W(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:q(),n=function(t){return e(t)};if(n.version="2.3.3",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,a=t.document,o=t.DocumentFragment,l=t.HTMLTemplateElement,u=t.Node,s=t.Element,c=t.NodeFilter,f=t.NamedNodeMap,w=void 0===f?t.NamedNodeMap||t.MozNamedAttrMap:f,Q=t.Text,K=t.Comment,Z=t.DOMParser,G=t.trustedTypes,X=s.prototype,J=A(X,"cloneNode"),ee=A(X,"nextSibling"),te=A(X,"childNodes"),ne=A(X,"parentNode");if("function"==typeof l){var re=a.createElement("template");re.content&&re.content.ownerDocument&&(a=re.content.ownerDocument)}var ae=Y(G,r),ie=ae&&Ie?ae.createHTML(""):"",oe=a,le=oe.implementation,ue=oe.createNodeIterator,se=oe.createDocumentFragment,ce=oe.getElementsByTagName,fe=r.importNode,de={};try{de=k(a).documentMode?a.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof ne&&le&&void 0!==le.createHTMLDocument&&9!==de;var he=I,me=M,ge=z,ye=L,be=$,ve=H,xe=U,Ee=null,we=D({},[].concat(W(_),W(C),W(T),W(N),W(F))),De=null,ke=D({},[].concat(W(j),W(P),W(R),W(B))),Ae=null,_e=null,Ce=!0,Te=!0,Se=!1,Ne=!1,Oe=!1,Fe=!1,je=!1,Pe=!1,Re=!1,Be=!0,Ie=!1,Me=!0,ze=!0,Le=!1,Ue={},$e=null,He=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ve=null,We=D({},["audio","video","img","source","image","track"]),qe=null,Ye=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml",Ge=Ze,Xe=!1,Je=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",nt=void 0,rt=null,at=a.createElement("form"),it=function(e){rt&&rt===e||(e&&"object"===(void 0===e?"undefined":V(e))||(e={}),e=k(e),Ee="ALLOWED_TAGS"in e?D({},e.ALLOWED_TAGS):we,De="ALLOWED_ATTR"in e?D({},e.ALLOWED_ATTR):ke,qe="ADD_URI_SAFE_ATTR"in e?D(k(Ye),e.ADD_URI_SAFE_ATTR):Ye,Ve="ADD_DATA_URI_TAGS"in e?D(k(We),e.ADD_DATA_URI_TAGS):We,$e="FORBID_CONTENTS"in e?D({},e.FORBID_CONTENTS):He,Ae="FORBID_TAGS"in e?D({},e.FORBID_TAGS):{},_e="FORBID_ATTR"in e?D({},e.FORBID_ATTR):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,Ce=!1!==e.ALLOW_ARIA_ATTR,Te=!1!==e.ALLOW_DATA_ATTR,Se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=e.SAFE_FOR_TEMPLATES||!1,Oe=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,Re=e.RETURN_DOM_FRAGMENT||!1,Be=!1!==e.RETURN_DOM_IMPORT,Ie=e.RETURN_TRUSTED_TYPE||!1,je=e.FORCE_BODY||!1,Me=!1!==e.SANITIZE_DOM,ze=!1!==e.KEEP_CONTENT,Le=e.IN_PLACE||!1,xe=e.ALLOWED_URI_REGEXP||xe,Ge=e.NAMESPACE||Ze,Je=Je=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?tt:e.PARSER_MEDIA_TYPE,nt="application/xhtml+xml"===Je?function(e){return e}:m,Ne&&(Te=!1),Re&&(Pe=!0),Ue&&(Ee=D({},[].concat(W(F))),De=[],!0===Ue.html&&(D(Ee,_),D(De,j)),!0===Ue.svg&&(D(Ee,C),D(De,P),D(De,B)),!0===Ue.svgFilters&&(D(Ee,T),D(De,P),D(De,B)),!0===Ue.mathMl&&(D(Ee,N),D(De,R),D(De,B))),e.ADD_TAGS&&(Ee===we&&(Ee=k(Ee)),D(Ee,e.ADD_TAGS)),e.ADD_ATTR&&(De===ke&&(De=k(De)),D(De,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&D(qe,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&($e===He&&($e=k($e)),D($e,e.FORBID_CONTENTS)),ze&&(Ee["#text"]=!0),Oe&&D(Ee,["html","head","body"]),Ee.table&&(D(Ee,["tbody"]),delete Ae.tbody),i&&i(e),rt=e)},ot=D({},["mi","mo","mn","ms","mtext"]),lt=D({},["foreignobject","desc","title","annotation-xml"]),ut=D({},C);D(ut,T),D(ut,S);var st=D({},N);D(st,O);var ct=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Ze,tagName:"template"});var n=m(e.tagName),r=m(t.tagName);if(e.namespaceURI===Ke)return t.namespaceURI===Ze?"svg"===n:t.namespaceURI===Qe?"svg"===n&&("annotation-xml"===r||ot[r]):Boolean(ut[n]);if(e.namespaceURI===Qe)return t.namespaceURI===Ze?"math"===n:t.namespaceURI===Ke?"math"===n&<[r]:Boolean(st[n]);if(e.namespaceURI===Ze){if(t.namespaceURI===Ke&&!lt[r])return!1;if(t.namespaceURI===Qe&&!ot[r])return!1;var a=D({},["title","style","font","a","script"]);return!st[n]&&(a[n]||!ut[n])}return!1},ft=function(e){h(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},dt=function(e,t){try{h(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!De[e])if(Pe||Re)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},pt=function(e){var t=void 0,n=void 0;if(je)e=""+e;else{var r=g(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===Je&&(e=''+e+"");var i=ae?ae.createHTML(e):e;if(Ge===Ze)try{t=(new Z).parseFromString(i,Je)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(Ge,"template",null);try{t.documentElement.innerHTML=Xe?"":i}catch(e){}}var o=t.body||t.documentElement;return e&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),Ge===Ze?ce.call(t,Oe?"html":"body")[0]:Oe?t.documentElement:o},ht=function(e){return ue.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},mt=function(e){return!(e instanceof Q||e instanceof K||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof w&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},gt=function(e){return"object"===(void 0===u?"undefined":V(u))?e instanceof u:e&&"object"===(void 0===e?"undefined":V(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},yt=function(e,t,r){pe[e]&&d(pe[e],(function(e){e.call(n,t,r,rt)}))},bt=function(e){var t=void 0;if(yt("beforeSanitizeElements",e,null),mt(e))return ft(e),!0;if(g(e.nodeName,/[\u0080-\uFFFF]/))return ft(e),!0;var r=nt(e.nodeName);if(yt("uponSanitizeElement",e,{tagName:r,allowedTags:Ee}),!gt(e.firstElementChild)&&(!gt(e.content)||!gt(e.content.firstElementChild))&&x(/<[/\w]/g,e.innerHTML)&&x(/<[/\w]/g,e.textContent))return ft(e),!0;if("select"===r&&x(/