-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathopenapi-spec.json
1 lines (1 loc) · 32.4 KB
/
openapi-spec.json
1
{"openapi":"3.0.0","paths":{"/api/sign-in-requests":{"get":{"operationId":"getSignInRequests","parameters":[{"name":"status","required":true,"in":"query","schema":{}},{"name":"network","required":true,"in":"query","schema":{}},{"name":"address","required":true,"in":"query","schema":{}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PartialDappDto"}}}}}},"tags":["sign-in-requests"]},"post":{"operationId":"createSignInRequest","summary":"","description":"Create a new sign-in-request","parameters":[{"name":"x-timestamp","in":"header","description":"The timestamp of the request","schema":{"type":"string"}},{"name":"x-signature","in":"header","description":"The signature of the request","schema":{"type":"string"}},{"name":"x-api-key","in":"header","description":"The API key of the dApp","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInRequestDto"}}}}},"tags":["sign-in-requests"]}},"/api/sign-in-requests/dapp/{apiKey}":{"get":{"operationId":"getSignInRequestsByDApp","parameters":[{"name":"apiKey","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SignInRequestDto"}}}}}},"tags":["sign-in-requests"]}},"/api/sign-in-requests/{token}":{"get":{"operationId":"getSignInRequest","parameters":[{"name":"token","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInRequestDto"}}}}},"tags":["sign-in-requests"]}},"/api/sign-in-requests/{token}/status":{"get":{"operationId":"getSignInRequestStatus","parameters":[{"name":"token","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInRequestStatusDto"}}}}},"tags":["sign-in-requests"]}},"/api/sign-in-requests/{token}/sign":{"post":{"operationId":"signIn","parameters":[{"name":"token","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignedSignInRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInRequestDto"}}}}},"tags":["sign-in-requests"]}},"/api/sign-in-requests/{token}/decline":{"post":{"operationId":"declineSignInRequest","parameters":[{"name":"token","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInRequestDto"}}}}},"tags":["sign-in-requests"]}},"/api/sign-in-requests/disconnect":{"post":{"operationId":"disconnect","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisconnectRequest"}}}},"responses":{"201":{"description":""}},"tags":["sign-in-requests"]}},"/api/auth/login":{"post":{"operationId":"login","summary":"Authenticate user with email","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthCredentialsDto"}}}},"400":{"content":{"application/json":{"examples":{"BusinessException":{"description":"INVALID_CREDENTIALS","value":{"statusCode":400,"message":"INVALID_CREDENTIALS","error":"INVALID_CREDENTIALS"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":400},"message":{"type":"string","example":"INVALID_CREDENTIALS"},"error":{"type":"string","example":"INVALID_CREDENTIALS"}},"required":["statusCode","message"]}}},"description":""}},"tags":["authenticate"]}},"/api/auth/google":{"get":{"operationId":"googleAuth","summary":"Authenticate user with Google","parameters":[],"responses":{"200":{"description":""}},"tags":["authenticate"]}},"/api/auth/google/callback":{"get":{"operationId":"googleAuthRedirect","summary":"Google auth callback","parameters":[],"responses":{"200":{"description":""}},"tags":["authenticate"]}},"/api/auth/verify-email":{"post":{"operationId":"verifyEmail","summary":"Verify user email","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateEmailRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthCredentialsDto"}}}},"404":{"content":{"application/json":{"examples":{"BusinessException":{"description":"TOKEN_NOT_FOUND","value":{"statusCode":404,"message":"TOKEN_NOT_FOUND","error":"TOKEN_NOT_FOUND"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"message":{"type":"string","example":"TOKEN_NOT_FOUND"},"error":{"type":"string","example":"TOKEN_NOT_FOUND"}},"required":["statusCode","message"]}}},"description":""},"409":{"content":{"application/json":{"examples":{"BusinessException":{"description":"TOKEN_ALREADY_VERIFIED","value":{"statusCode":409,"message":"TOKEN_ALREADY_VERIFIED","error":"TOKEN_ALREADY_VERIFIED"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":409},"message":{"type":"string","example":"TOKEN_ALREADY_VERIFIED"},"error":{"type":"string","example":"TOKEN_ALREADY_VERIFIED"}},"required":["statusCode","message"]}}},"description":""}},"tags":["authenticate"]}},"/api/auth/recover-password":{"post":{"operationId":"requestResetPassword","summary":"Request Password Reset","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoverPasswordRequest"}}}},"responses":{"200":{"description":""},"404":{"content":{"application/json":{"examples":{"BusinessException":{"description":"USER_NOT_FOUND","value":{"statusCode":404,"message":"USER_NOT_FOUND","error":"USER_NOT_FOUND"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"message":{"type":"string","example":"USER_NOT_FOUND"},"error":{"type":"string","example":"USER_NOT_FOUND"}},"required":["statusCode","message"]}}},"description":""}},"tags":["authenticate"]}},"/api/auth/reset-password":{"post":{"operationId":"resetPassword","summary":"Password Reset","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}}},"responses":{"200":{"description":""},"404":{"content":{"application/json":{"examples":{"BusinessException":{"description":"TOKEN_NOT_FOUND","value":{"statusCode":404,"message":"TOKEN_NOT_FOUND","error":"TOKEN_NOT_FOUND"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":404},"message":{"type":"string","example":"TOKEN_NOT_FOUND"},"error":{"type":"string","example":"TOKEN_NOT_FOUND"}},"required":["statusCode","message"]}}},"description":""},"409":{"content":{"application/json":{"examples":{"BusinessException":{"description":"TOKEN_EXPIRED","value":{"statusCode":409,"message":"TOKEN_EXPIRED","error":"TOKEN_EXPIRED"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":409},"message":{"type":"string","example":"TOKEN_EXPIRED"},"error":{"type":"string","example":"TOKEN_EXPIRED"}},"required":["statusCode","message"]}}},"description":""}},"tags":["authenticate"]}},"/api/user":{"get":{"operationId":"info","summary":"Get user info","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDto"}}}},"401":{"content":{"application/json":{"examples":{"UnauthorizedException":{"description":"Unauthorized","value":{"statusCode":401,"message":"Unauthorized","error":"Unauthorized"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":401},"message":{"type":"string","example":"Unauthorized"},"error":{"type":"string","example":"Unauthorized"}},"required":["statusCode","message"]}}},"description":""},"403":{"content":{"application/json":{"examples":{"ForbiddenException":{"description":"Forbidden","value":{"statusCode":403,"message":"Forbidden","error":"Forbidden"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":403},"message":{"type":"string","example":"Forbidden"},"error":{"type":"string","example":"Forbidden"}},"required":["statusCode","message"]}}},"description":""}},"tags":["user"],"security":[{"bearer":[]}]},"post":{"operationId":"register","summary":"Register a new user","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserRequest"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivateUserDto"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivateUserDto"}}}}},"tags":["user"]},"patch":{"operationId":"update","summary":"Update user","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserRequest"}}}},"responses":{"200":{"description":""},"401":{"content":{"application/json":{"examples":{"UnauthorizedException":{"description":"Unauthorized","value":{"statusCode":401,"message":"Unauthorized","error":"Unauthorized"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":401},"message":{"type":"string","example":"Unauthorized"},"error":{"type":"string","example":"Unauthorized"}},"required":["statusCode","message"]}}},"description":""},"403":{"content":{"application/json":{"examples":{"ForbiddenException":{"description":"Forbidden","value":{"statusCode":403,"message":"Forbidden","error":"Forbidden"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":403},"message":{"type":"string","example":"Forbidden"},"error":{"type":"string","example":"Forbidden"}},"required":["statusCode","message"]}}},"description":""}},"tags":["user"],"security":[{"bearer":[]}]},"delete":{"operationId":"delete","summary":"Delete user","parameters":[],"responses":{"200":{"description":""},"401":{"content":{"application/json":{"examples":{"UnauthorizedException":{"description":"Unauthorized","value":{"statusCode":401,"message":"Unauthorized","error":"Unauthorized"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":401},"message":{"type":"string","example":"Unauthorized"},"error":{"type":"string","example":"Unauthorized"}},"required":["statusCode","message"]}}},"description":""},"403":{"content":{"application/json":{"examples":{"ForbiddenException":{"description":"Forbidden","value":{"statusCode":403,"message":"Forbidden","error":"Forbidden"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":403},"message":{"type":"string","example":"Forbidden"},"error":{"type":"string","example":"Forbidden"}},"required":["statusCode","message"]}}},"description":""}},"tags":["user"],"security":[{"bearer":[]}]}},"/api/user/verificationToken":{"post":{"operationId":"verificationToken","summary":"Resends an verification email","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVerificationTokenRequest"}}}},"responses":{"201":{"description":""}},"tags":["user"]}},"/api/dapps":{"post":{"operationId":"create","summary":"","description":"Create a new dApp","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDappRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteDAppDto"}}}},"401":{"content":{"application/json":{"examples":{"UnauthorizedException":{"description":"Unauthorized","value":{"statusCode":401,"message":"Unauthorized","error":"Unauthorized"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":401},"message":{"type":"string","example":"Unauthorized"},"error":{"type":"string","example":"Unauthorized"}},"required":["statusCode","message"]}}},"description":""},"403":{"content":{"application/json":{"examples":{"ForbiddenException":{"description":"Forbidden","value":{"statusCode":403,"message":"Forbidden","error":"Forbidden"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":403},"message":{"type":"string","example":"Forbidden"},"error":{"type":"string","example":"Forbidden"}},"required":["statusCode","message"]}}},"description":""}},"tags":["dapps"],"security":[{"bearer":[]}]},"get":{"operationId":"findAll","summary":"","description":"Get all dApp","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PartialDappDto"}}}}},"401":{"content":{"application/json":{"examples":{"UnauthorizedException":{"description":"Unauthorized","value":{"statusCode":401,"message":"Unauthorized","error":"Unauthorized"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":401},"message":{"type":"string","example":"Unauthorized"},"error":{"type":"string","example":"Unauthorized"}},"required":["statusCode","message"]}}},"description":""},"403":{"content":{"application/json":{"examples":{"ForbiddenException":{"description":"Forbidden","value":{"statusCode":403,"message":"Forbidden","error":"Forbidden"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":403},"message":{"type":"string","example":"Forbidden"},"error":{"type":"string","example":"Forbidden"}},"required":["statusCode","message"]}}},"description":""}},"tags":["dapps"],"security":[{"bearer":[]}]}},"/api/dapps/{id}":{"get":{"operationId":"findOne","summary":"","description":"Get a single dApp","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartialDappDto"}}}},"401":{"content":{"application/json":{"examples":{"UnauthorizedException":{"description":"Unauthorized","value":{"statusCode":401,"message":"Unauthorized","error":"Unauthorized"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":401},"message":{"type":"string","example":"Unauthorized"},"error":{"type":"string","example":"Unauthorized"}},"required":["statusCode","message"]}}},"description":""},"403":{"content":{"application/json":{"examples":{"ForbiddenException":{"description":"Forbidden","value":{"statusCode":403,"message":"Forbidden","error":"Forbidden"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":403},"message":{"type":"string","example":"Forbidden"},"error":{"type":"string","example":"Forbidden"}},"required":["statusCode","message"]}}},"description":""}},"tags":["dapps"],"security":[{"bearer":[]}]},"patch":{"operationId":"update","summary":"","description":"Updates a dApp","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDappRequest"}}}},"responses":{"200":{"description":""},"401":{"content":{"application/json":{"examples":{"UnauthorizedException":{"description":"Unauthorized","value":{"statusCode":401,"message":"Unauthorized","error":"Unauthorized"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":401},"message":{"type":"string","example":"Unauthorized"},"error":{"type":"string","example":"Unauthorized"}},"required":["statusCode","message"]}}},"description":""},"403":{"content":{"application/json":{"examples":{"ForbiddenException":{"description":"Forbidden","value":{"statusCode":403,"message":"Forbidden","error":"Forbidden"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":403},"message":{"type":"string","example":"Forbidden"},"error":{"type":"string","example":"Forbidden"}},"required":["statusCode","message"]}}},"description":""}},"tags":["dapps"],"security":[{"bearer":[]}]},"delete":{"operationId":"remove","summary":"","description":"Deletes a dApp","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""},"401":{"content":{"application/json":{"examples":{"UnauthorizedException":{"description":"Unauthorized","value":{"statusCode":401,"message":"Unauthorized","error":"Unauthorized"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":401},"message":{"type":"string","example":"Unauthorized"},"error":{"type":"string","example":"Unauthorized"}},"required":["statusCode","message"]}}},"description":""},"403":{"content":{"application/json":{"examples":{"ForbiddenException":{"description":"Forbidden","value":{"statusCode":403,"message":"Forbidden","error":"Forbidden"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":403},"message":{"type":"string","example":"Forbidden"},"error":{"type":"string","example":"Forbidden"}},"required":["statusCode","message"]}}},"description":""}},"tags":["dapps"],"security":[{"bearer":[]}]}},"/api/dapps/{id}/credentials":{"get":{"operationId":"generateNewApiSecret","summary":"","description":"Generate new API secret for a dApp","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretDto"}}}},"401":{"content":{"application/json":{"examples":{"UnauthorizedException":{"description":"Unauthorized","value":{"statusCode":401,"message":"Unauthorized","error":"Unauthorized"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":401},"message":{"type":"string","example":"Unauthorized"},"error":{"type":"string","example":"Unauthorized"}},"required":["statusCode","message"]}}},"description":""},"403":{"content":{"application/json":{"examples":{"ForbiddenException":{"description":"Forbidden","value":{"statusCode":403,"message":"Forbidden","error":"Forbidden"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":403},"message":{"type":"string","example":"Forbidden"},"error":{"type":"string","example":"Forbidden"}},"required":["statusCode","message"]}}},"description":""}},"tags":["dapps"],"security":[{"bearer":[]}]}},"/api/file/image":{"post":{"operationId":"uploadFile","summary":"","description":"Upload an image","parameters":[],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"content":{"application/json":{"examples":{"UnauthorizedException":{"description":"Unauthorized","value":{"statusCode":401,"message":"Unauthorized","error":"Unauthorized"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":401},"message":{"type":"string","example":"Unauthorized"},"error":{"type":"string","example":"Unauthorized"}},"required":["statusCode","message"]}}},"description":""},"403":{"content":{"application/json":{"examples":{"ForbiddenException":{"description":"Forbidden","value":{"statusCode":403,"message":"Forbidden","error":"Forbidden"}}},"schema":{"type":"object","properties":{"statusCode":{"type":"number","example":403},"message":{"type":"string","example":"Forbidden"},"error":{"type":"string","example":"Forbidden"}},"required":["statusCode","message"]}}},"description":""}},"tags":["file"],"security":[{"bearer":[]}]}},"/api/transaction-request":{"get":{"operationId":"getTransactionRequests","parameters":[{"name":"status","required":true,"in":"query","schema":{}},{"name":"network","required":true,"in":"query","schema":{}},{"name":"address","required":true,"in":"query","schema":{}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompleteTransactionRequestDto"}}}}}},"tags":["transaction-request"]},"post":{"operationId":"createTransactionRequest","summary":"","description":"Create a new sign-in-request","parameters":[{"name":"x-timestamp","in":"header","description":"The timestamp of the request","schema":{"type":"string"}},{"name":"x-signature","in":"header","description":"The signature of the request","schema":{"type":"string"}},{"name":"x-api-key","in":"header","description":"The API key of the dApp","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTransactionRequestBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleTransactionRequestDto"}}}}},"tags":["transaction-request"]}},"/api/transaction-request/dapp/{apiKey}":{"get":{"operationId":"getTransactionRequestsByDApp","parameters":[{"name":"apiKey","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompleteTransactionRequestDto"}}}}}},"tags":["transaction-request"]}},"/api/transaction-request/{transactionToken}":{"get":{"operationId":"getTransactionRequestByTransactionToken","parameters":[{"name":"transactionToken","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleTransactionRequestDto"}}}}},"tags":["transaction-request"]}},"/api/transaction-request/{transactionToken}/status":{"get":{"operationId":"getTransactionRequestStatus","parameters":[{"name":"transactionToken","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionRequestStatusDto"}}}}},"tags":["transaction-request"]}},"/api/transaction-request/generate-native-token-transaction":{"post":{"operationId":"generateTransactionSkeleton","summary":"","description":"Generates a new TransactionSkeleton Object","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateNativeTokenTransactionSkeleton"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["transaction-request"]}},"/api/transaction-request/generate-nft-transaction":{"post":{"operationId":"generateNftTransactionSkeleton","summary":"","description":"Generates a new TransactionSkeleton Object","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateNftTransactionSkeleton"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["transaction-request"]}},"/api/transaction-request/{transactionToken}/sign":{"post":{"operationId":"signTransactionRequest","parameters":[{"name":"transactionToken","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignTransactionRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleTransactionRequestDto"}}}}},"tags":["transaction-request"]}},"/api/transaction-request/{transactionToken}/decline":{"post":{"operationId":"declineTransactionRequest","parameters":[{"name":"transactionToken","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeclineTransactionRequest"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleTransactionRequestDto"}}}}},"tags":["transaction-request"]}}},"info":{"title":"backend","description":"Base backend API","version":"0.0.0","contact":{}},"tags":[],"servers":[],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"PartialDappDto":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"email":{"type":"string"},"projectUrl":{"type":"string"},"supportUrl":{"type":"string"},"apiKey":{"type":"string"},"termsUrl":{"type":"string"},"privacyPolicyUrl":{"type":"string"},"image":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","name","description","email","projectUrl","supportUrl","apiKey","createdAt","updatedAt"]},"AccountMetadataDto":{"type":"object","properties":{"address":{"type":"string"},"network":{"type":"string","enum":["mainnet","testnet"]}},"required":["address","network"]},"SignInRequestDto":{"type":"object","properties":{"id":{"type":"number"},"signInToken":{"type":"string"},"status":{"enum":["pending","signed","declined","request_expired","session_expired"],"type":"string"},"createdAt":{"format":"date-time","type":"string"},"expiresAt":{"format":"date-time","type":"string"},"sessionExpiresAt":{"format":"date-time","type":"string"},"metadata":{"$ref":"#/components/schemas/AccountMetadataDto"},"app":{"$ref":"#/components/schemas/PartialDappDto"}},"required":["id","signInToken","status","createdAt","expiresAt","sessionExpiresAt","metadata","app"]},"SignInRequestStatusDto":{"type":"object","properties":{"signInToken":{"type":"string"},"status":{"enum":["pending","signed","declined","request_expired","session_expired"],"type":"string"}},"required":["signInToken","status"]},"SignedSignInRequest":{"type":"object","properties":{"metadata":{"description":"The signIn token","allOf":[{"$ref":"#/components/schemas/AccountMetadataDto"}]}},"required":["metadata"]},"DisconnectRequest":{"type":"object","properties":{}},"ApiException":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"]},"LoginRequest":{"type":"object","properties":{"email":{"type":"string","format":"email"},"password":{"type":"string","description":"Min 8, at least 1 uppercase, 1 lowercase, 1 special( !@$%^&(){}[]:;<>,.?/~_+-=| ) characters"}},"required":["email","password"]},"AuthCredentialsDto":{"type":"object","properties":{"access_token":{"type":"string"}},"required":["access_token"]},"ValidateEmailRequest":{"type":"object","properties":{"token":{"type":"string"}},"required":["token"]},"RecoverPasswordRequest":{"type":"object","properties":{"email":{"type":"string","format":"email"}},"required":["email"]},"ResetPasswordRequest":{"type":"object","properties":{"password":{"type":"string","description":"at least 8 characters long, 1 uppercase & 1 lowercase letter, 1 number, 1 special character","pattern":"(?=.{8,})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[\\W_]).*"},"token":{"type":"string"}},"required":["password","token"]},"UserDto":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"email":{"type":"string"},"type":{"type":"string","enum":["admin","user"]},"googleAuth":{"type":"boolean"}},"required":["id","name","email","type","googleAuth"]},"CreateUserRequest":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string","format":"email"},"password":{"type":"string","description":"at least 8 characters long, 1 uppercase & 1 lowercase letter, 1 number, 1 special character","pattern":"(?=.{8,})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[\\W_]).*"}},"required":["name","email","password"]},"PrivateUserDto":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"email":{"type":"string"},"type":{"enum":["admin","user"],"type":"string"},"googleAuth":{"type":"boolean"},"emailVerified":{"type":"boolean"}},"required":["id","name","email","type","googleAuth","emailVerified"]},"UpdateUserRequest":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"password":{"type":"string"}}},"CreateVerificationTokenRequest":{"type":"object","properties":{"email":{"type":"string"}},"required":["email"]},"CreateDappRequest":{"type":"object","properties":{"name":{"type":"string","minimum":4,"maximum":32},"description":{"type":"string"},"email":{"type":"string"},"projectUrl":{"type":"string"},"supportUrl":{"type":"string"},"termsUrl":{"type":"string"},"privacyPolicyUrl":{"type":"string"},"image":{"type":"string"}},"required":["name","description","email","projectUrl","supportUrl"]},"CompleteDAppDto":{"type":"object","properties":{"apiSecret":{"type":"string"},"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"email":{"type":"string"},"projectUrl":{"type":"string"},"supportUrl":{"type":"string"},"apiKey":{"type":"string"},"termsUrl":{"type":"string"},"privacyPolicyUrl":{"type":"string"},"image":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["apiSecret","id","name","description","email","projectUrl","supportUrl","apiKey","createdAt","updatedAt"]},"UpdateDappRequest":{"type":"object","properties":{"name":{"type":"string","minimum":4,"maximum":32},"description":{"type":"string"},"email":{"type":"string"},"projectUrl":{"type":"string"},"supportUrl":{"type":"string"},"termsUrl":{"type":"string"},"privacyPolicyUrl":{"type":"string"},"image":{"type":"string"}}},"SecretDto":{"type":"object","properties":{"apiSecret":{"type":"string"}},"required":["apiSecret"]},"TransactionDto":{"type":"object","properties":{"id":{"type":"number"},"transactionHash":{"type":"string","nullable":true},"transaction":{"type":"object"}},"required":["id","transactionHash","transaction"]},"CompleteTransactionRequestDto":{"type":"object","properties":{"id":{"type":"number"},"transactionToken":{"type":"string"},"status":{"enum":["pending","signed","expired","declined"],"type":"string"},"transaction":{"$ref":"#/components/schemas/TransactionDto"},"createdAt":{"format":"date-time","type":"string"},"expiresAt":{"format":"date-time","type":"string"},"signInRequest":{"$ref":"#/components/schemas/SignInRequestDto"}},"required":["id","transactionToken","status","transaction","createdAt","expiresAt","signInRequest"]},"SimpleSignInRequestDto":{"type":"object","properties":{"id":{"type":"number"},"signInToken":{"type":"string"},"status":{"type":"string","enum":["pending","signed","declined","request_expired","session_expired"]},"createdAt":{"format":"date-time","type":"string"},"expiresAt":{"format":"date-time","type":"string"},"sessionExpiresAt":{"format":"date-time","type":"string"}},"required":["id","signInToken","status","createdAt","expiresAt","sessionExpiresAt"]},"SimpleTransactionRequestDto":{"type":"object","properties":{"id":{"type":"number"},"transactionToken":{"type":"string"},"status":{"enum":["pending","signed","expired","declined"],"type":"string"},"transaction":{"$ref":"#/components/schemas/TransactionDto"},"createdAt":{"format":"date-time","type":"string"},"expiresAt":{"format":"date-time","type":"string"},"signInRequest":{"$ref":"#/components/schemas/SimpleSignInRequestDto"}},"required":["id","transactionToken","status","transaction","createdAt","expiresAt","signInRequest"]},"TransactionRequestStatusDto":{"type":"object","properties":{"transactionToken":{"type":"string"},"status":{"type":"string","enum":["pending","signed","expired","declined"]}},"required":["transactionToken","status"]},"CreateTransactionRequestBody":{"type":"object","properties":{"signInToken":{"type":"string","description":"The signIn token that was used to create the transaction request"},"transaction":{"type":"object","description":"The transaction request content","default":{"cellProvider":null,"cellDeps":[],"headerDeps":[],"inputs":[],"outputs":[],"witnesses":[],"fixedEntries":[],"signingEntries":[],"inputSinces":{}}}},"required":["signInToken","transaction"]},"GenerateNativeTokenTransactionSkeleton":{"type":"object","properties":{"amount":{"type":"string","description":"The amount to send"},"to":{"type":"string","description":"The address of the sender"}},"required":["amount","to"]},"GenerateNftTransactionSkeleton":{"type":"object","properties":{"to":{"type":"string","description":"The address of the sender"},"nft":{"type":"string","description":"The nft to send"}},"required":["to","nft"]},"SignTransactionRequest":{"type":"object","properties":{"signInToken":{"type":"string","description":"The signInToken of the signInRequest that made the transactionRequest"},"transaction":{"type":"object","description":"The transaction to sign","default":{"id":1,"transactionHash":"transactionHash","transaction":{"cellProvider":null,"cellDeps":[],"headerDeps":[],"inputs":[],"outputs":[],"witnesses":[],"fixedEntries":[],"signingEntries":[],"inputSinces":{}}}}},"required":["signInToken","transaction"]},"DeclineTransactionRequest":{"type":"object","properties":{"signInToken":{"type":"string","description":"The signInToken of the signInRequest that made the transactionRequest"}},"required":["signInToken"]}}}}